@ptcwebops/ptcw-design 6.4.26-beta → 6.4.28-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.
- package/dist/cjs/icon-asset_17.cjs.entry.js +1660 -0
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/ptc-subnav-v2.cjs.entry.js +2 -1
- package/dist/cjs/ptcw-design.cjs.js +1 -1
- package/dist/collection/components/ptc-breadcrumb/ptc-breadcrumb.js +2 -9
- package/dist/collection/components/ptc-product-card/ptc-product-card.css +14 -0
- package/dist/collection/components/ptc-subnav-v2/ptc-subnav-v2.js +2 -1
- package/dist/custom-elements/index.js +5 -11
- package/dist/esm/academic-form-test.entry.js +1 -1
- package/dist/esm/author-listing-example.entry.js +1 -1
- package/dist/esm/blog-detail-content_2.entry.js +2 -2
- package/dist/esm/blog-detail-layout.entry.js +2 -2
- package/dist/esm/blogs-search-section.entry.js +2 -2
- package/dist/esm/bundle-example.entry.js +1 -1
- package/dist/esm/bundle-jumbotron-example.entry.js +1 -1
- package/dist/esm/buying-option-card.entry.js +1 -1
- package/dist/esm/buying-option-cards-slider.entry.js +1 -1
- package/dist/esm/dropdown-item.entry.js +1 -1
- package/dist/esm/dynamic-box-bundle.entry.js +1 -1
- package/dist/esm/embedded-form.entry.js +1 -1
- package/dist/esm/event-jumbotron-example.entry.js +1 -1
- package/dist/esm/event-podcast-slider-example.entry.js +1 -1
- package/dist/esm/featured-events-slider-example.entry.js +1 -1
- package/dist/esm/featured-list.entry.js +1 -1
- package/dist/esm/fl-tab-content_3.entry.js +1 -1
- package/dist/esm/footer-form.entry.js +1 -1
- package/dist/esm/homepage-clickable-tab.entry.js +1 -1
- package/dist/esm/homepage-jumbotron.entry.js +2 -2
- package/dist/esm/homepage-toggled-content.entry.js +2 -2
- package/dist/esm/icon-asset_17.entry.js +1640 -0
- package/dist/esm/{index-c83db688.js → index-0bf594c4.js} +1 -1
- package/dist/esm/innovator-toggle-container.entry.js +2 -2
- package/dist/esm/{interfaces-4caedd26.js → interfaces-7c0243be.js} +1 -1
- package/dist/esm/jumbotron-sub-menu.entry.js +1 -1
- package/dist/esm/jumbotron-sub-mune.entry.js +1 -1
- package/dist/esm/loader.js +3 -3
- package/dist/esm/max-width-container.entry.js +1 -1
- package/dist/esm/modal-form-example.entry.js +1 -1
- package/dist/esm/most-popular-news.entry.js +2 -2
- package/dist/esm/my-component.entry.js +2 -2
- package/dist/esm/news-search-result.entry.js +1 -1
- package/dist/esm/ptc-accordion-item.entry.js +2 -2
- package/dist/esm/ptc-accordion.entry.js +1 -1
- package/dist/esm/ptc-announcement.entry.js +1 -1
- package/dist/esm/ptc-background-video.entry.js +2 -2
- package/dist/esm/ptc-badge.entry.js +1 -1
- package/dist/esm/ptc-bio-card.entry.js +1 -1
- package/dist/esm/ptc-brightcov-video.entry.js +1 -1
- package/dist/esm/ptc-card-bottom_2.entry.js +1 -1
- package/dist/esm/ptc-card-content.entry.js +1 -1
- package/dist/esm/ptc-card_2.entry.js +1 -1
- package/dist/esm/ptc-case-studies-slider.entry.js +1 -1
- package/dist/esm/ptc-checkbox-group.entry.js +1 -1
- package/dist/esm/ptc-checkbox.entry.js +1 -1
- package/dist/esm/ptc-close-icon_2.entry.js +1 -1
- package/dist/esm/ptc-collapse-list.entry.js +2 -2
- package/dist/esm/ptc-container.entry.js +1 -1
- package/dist/esm/ptc-countdown.entry.js +1 -1
- package/dist/esm/ptc-data-lookup.entry.js +1 -1
- package/dist/esm/ptc-date.entry.js +1 -1
- package/dist/esm/ptc-dropdown.entry.js +1 -1
- package/dist/esm/ptc-dynamic-card.entry.js +1 -1
- package/dist/esm/ptc-ellipsis-dropdown.entry.js +1 -1
- package/dist/esm/ptc-embedded-quiz.entry.js +1 -1
- package/dist/esm/ptc-enhanced-product-listing-card.entry.js +1 -1
- package/dist/esm/ptc-featured-list.entry.js +1 -1
- package/dist/esm/ptc-filter-dropdown_4.entry.js +1 -1
- package/dist/esm/ptc-filter-level-theater.entry.js +1 -1
- package/dist/esm/ptc-filter-tag_2.entry.js +1 -1
- package/dist/esm/ptc-footer.entry.js +1 -1
- package/dist/esm/ptc-form-checkbox_4.entry.js +2 -2
- package/dist/esm/ptc-form-radio-button.entry.js +1 -1
- package/dist/esm/ptc-form-radio-group.entry.js +1 -1
- package/dist/esm/ptc-form.entry.js +1 -1
- package/dist/esm/ptc-hero-footer-cta.entry.js +1 -1
- package/dist/esm/ptc-hero.entry.js +1 -1
- package/dist/esm/ptc-homepage-image-feature.entry.js +2 -2
- package/dist/esm/ptc-homepage-video-background.entry.js +2 -2
- package/dist/esm/ptc-icon-card-slider-example.entry.js +1 -1
- package/dist/esm/ptc-icon-card.entry.js +2 -2
- package/dist/esm/ptc-icon-component.entry.js +1 -1
- package/dist/esm/ptc-icon-list.entry.js +1 -1
- package/dist/esm/ptc-icon-minimize.entry.js +1 -1
- package/dist/esm/ptc-image-download-strip.entry.js +1 -1
- package/dist/esm/ptc-img.entry.js +2 -2
- package/dist/esm/ptc-info-tile.entry.js +1 -1
- package/dist/esm/ptc-inline-cta.entry.js +1 -1
- package/dist/esm/ptc-jumbotron.entry.js +1 -1
- package/dist/esm/ptc-link.entry.js +2 -2
- package/dist/esm/ptc-list.entry.js +1 -1
- package/dist/esm/ptc-media-card.entry.js +2 -2
- package/dist/esm/ptc-minimized-nav.entry.js +1 -1
- package/dist/esm/ptc-mobile-select.entry.js +1 -1
- package/dist/esm/ptc-modal-quiz.entry.js +1 -1
- package/dist/esm/ptc-nav-card.entry.js +1 -1
- package/dist/esm/ptc-nav-link.entry.js +1 -1
- package/dist/esm/ptc-nav-pills.entry.js +1 -1
- package/dist/esm/ptc-nav-skip-to-content.entry.js +1 -1
- package/dist/esm/ptc-nav-slider.entry.js +1 -1
- package/dist/esm/ptc-nav-submenu.entry.js +1 -1
- package/dist/esm/ptc-nav-tile.entry.js +1 -1
- package/dist/esm/ptc-news.entry.js +1 -1
- package/dist/esm/ptc-office-location-card.entry.js +1 -1
- package/dist/esm/ptc-office-locations.entry.js +1 -1
- package/dist/esm/ptc-overlay.entry.js +1 -1
- package/dist/esm/ptc-podcast-card.entry.js +1 -1
- package/dist/esm/ptc-preferance-center-form.entry.js +1 -1
- package/dist/esm/ptc-preloader.entry.js +1 -1
- package/dist/esm/ptc-previous-url.entry.js +1 -1
- package/dist/esm/ptc-pricing-add-on-card.entry.js +1 -1
- package/dist/esm/ptc-pricing-add-on-section.entry.js +1 -1
- package/dist/esm/ptc-pricing-block.entry.js +1 -1
- package/dist/esm/ptc-pricing-packaging-table.entry.js +2 -2
- package/dist/esm/ptc-pricing-tabs.entry.js +2 -2
- package/dist/esm/ptc-progress-bar.entry.js +1 -1
- package/dist/esm/ptc-quantity-counter.entry.js +1 -1
- package/dist/esm/ptc-quote.entry.js +1 -1
- package/dist/esm/ptc-readmore-char.entry.js +1 -1
- package/dist/esm/ptc-readmore-new.entry.js +1 -1
- package/dist/esm/ptc-readmore-v3.entry.js +1 -1
- package/dist/esm/ptc-related-card-rail.entry.js +1 -1
- package/dist/esm/ptc-responsive-wrapper.entry.js +1 -1
- package/dist/esm/ptc-scroll-button.entry.js +1 -1
- package/dist/esm/ptc-search-field.entry.js +1 -1
- package/dist/esm/ptc-seo-title.entry.js +1 -1
- package/dist/esm/ptc-shopping-cart.entry.js +1 -1
- package/dist/esm/ptc-showcase-card.entry.js +1 -1
- package/dist/esm/ptc-skeleton.entry.js +1 -1
- package/dist/esm/ptc-slit-card.entry.js +1 -1
- package/dist/esm/ptc-social-icons-footer.entry.js +2 -2
- package/dist/esm/ptc-social-icons.entry.js +1 -1
- package/dist/esm/ptc-span.entry.js +1 -1
- package/dist/esm/ptc-square-card.entry.js +1 -1
- package/dist/esm/ptc-sticky-icons.entry.js +1 -1
- package/dist/esm/ptc-sticky-section.entry.js +1 -1
- package/dist/esm/ptc-sticky-title.entry.js +1 -1
- package/dist/esm/ptc-subnav-card.entry.js +1 -1
- package/dist/esm/ptc-subnav-v2.entry.js +3 -2
- package/dist/esm/ptc-subnav.entry.js +1 -1
- package/dist/esm/ptc-svg-btn.entry.js +1 -1
- package/dist/esm/ptc-tab-list.entry.js +1 -1
- package/dist/esm/ptc-tab.entry.js +1 -1
- package/dist/esm/ptc-tabs.entry.js +1 -1
- package/dist/esm/ptc-text-copy-with-background.entry.js +1 -1
- package/dist/esm/ptc-theater-video-modal.entry.js +1 -1
- package/dist/esm/ptc-tooltip-v2.entry.js +1 -1
- package/dist/esm/ptc-tooltip-v3.entry.js +1 -1
- package/dist/esm/ptc-two-column-media.entry.js +1 -1
- package/dist/esm/ptc-value-led-card.entry.js +1 -1
- package/dist/esm/ptc-value-led-content-highlight.entry.js +1 -1
- package/dist/esm/ptc-value-led-content.entry.js +1 -1
- package/dist/esm/ptc-value-led-intro.entry.js +1 -1
- package/dist/esm/ptc-value-led-layout.entry.js +1 -1
- package/dist/esm/ptc-value-led-speed-bump.entry.js +1 -1
- package/dist/esm/ptc-value-prop-card.entry.js +1 -1
- package/dist/esm/ptc-video-embed.entry.js +1 -1
- package/dist/esm/ptc-white-paper.entry.js +1 -1
- package/dist/esm/ptcw-design.js +3 -3
- package/dist/esm/sequential-bundle-example.entry.js +1 -1
- package/dist/esm/sequential-bundle.entry.js +1 -1
- package/dist/esm/storefront-enhanced-product-list-alt-example.entry.js +1 -1
- package/dist/esm/storefront-enhanced-product-list-example.entry.js +1 -1
- package/dist/esm/tab-content.entry.js +1 -1
- package/dist/esm/tab-header.entry.js +1 -1
- package/dist/esm/{utils-bdd0cc16.js → utils-a64ba942.js} +1 -1
- package/dist/ptcw-design/{p-4ab3249d.entry.js → p-045c468a.entry.js} +1 -1
- package/dist/ptcw-design/{p-58909b95.entry.js → p-07b46e6e.entry.js} +1 -1
- package/dist/ptcw-design/p-0824f503.entry.js +1 -0
- package/dist/ptcw-design/{p-96f346c4.entry.js → p-0aa52a96.entry.js} +1 -1
- package/dist/ptcw-design/{p-9ac99185.entry.js → p-0abb6e77.entry.js} +1 -1
- package/dist/ptcw-design/{p-e235bf27.entry.js → p-0bb3ea9a.entry.js} +1 -1
- package/dist/ptcw-design/p-0ec2a26d.entry.js +1 -0
- package/dist/ptcw-design/{p-fb8584e4.entry.js → p-0ed4609e.entry.js} +1 -1
- package/dist/ptcw-design/{p-a9533f9c.entry.js → p-11e86045.entry.js} +1 -1
- package/dist/ptcw-design/{p-349f43d5.entry.js → p-1238e070.entry.js} +1 -1
- package/dist/ptcw-design/{p-f6b70f68.entry.js → p-138b2434.entry.js} +1 -1
- package/dist/ptcw-design/{p-27e47c25.entry.js → p-14c77b5e.entry.js} +1 -1
- package/dist/ptcw-design/{p-85f32bf5.entry.js → p-1ab6201b.entry.js} +1 -1
- package/dist/ptcw-design/{p-3b40bfbf.entry.js → p-1b1fd60d.entry.js} +1 -1
- package/dist/ptcw-design/{p-46f67bec.entry.js → p-1e9f25fc.entry.js} +1 -1
- package/dist/ptcw-design/{p-17b8281a.entry.js → p-20f04b2a.entry.js} +1 -1
- package/dist/ptcw-design/p-212cdacd.entry.js +1 -0
- package/dist/ptcw-design/{p-c7e948b2.js → p-22cf00e7.js} +1 -1
- package/dist/ptcw-design/{p-9b26ea67.entry.js → p-290012e3.entry.js} +1 -1
- package/dist/ptcw-design/{p-9354b7fd.entry.js → p-2ba77e9d.entry.js} +1 -1
- package/dist/ptcw-design/p-2bc4bf65.entry.js +1 -0
- package/dist/ptcw-design/{p-3cb011c9.entry.js → p-2fa5814b.entry.js} +1 -1
- package/dist/ptcw-design/{p-21fa5abe.entry.js → p-2fd01953.entry.js} +1 -1
- package/dist/ptcw-design/{p-7714bbaf.entry.js → p-2fdd81d4.entry.js} +1 -1
- package/dist/ptcw-design/{p-2c287230.entry.js → p-315b7885.entry.js} +1 -1
- package/dist/ptcw-design/{p-bfadd78e.entry.js → p-3596ce5a.entry.js} +1 -1
- package/dist/ptcw-design/{p-cc652ebe.entry.js → p-384548ef.entry.js} +1 -1
- package/dist/ptcw-design/p-39255f59.entry.js +1 -0
- package/dist/ptcw-design/{p-799afee5.entry.js → p-3ada2482.entry.js} +1 -1
- package/dist/ptcw-design/{p-8533988f.entry.js → p-3c52fabe.entry.js} +1 -1
- package/dist/ptcw-design/{p-3e4861a2.entry.js → p-3c941935.entry.js} +1 -1
- package/dist/ptcw-design/{p-76d98c5a.entry.js → p-3e13b735.entry.js} +1 -1
- package/dist/ptcw-design/{p-66ecd7b9.entry.js → p-3e13f29c.entry.js} +1 -1
- package/dist/ptcw-design/{p-f010c07f.entry.js → p-3ef5c51f.entry.js} +1 -1
- package/dist/ptcw-design/{p-502f534b.entry.js → p-41cec14d.entry.js} +1 -1
- package/dist/ptcw-design/{p-c6a0dd99.entry.js → p-43756439.entry.js} +1 -1
- package/dist/ptcw-design/{p-0451b768.entry.js → p-4619f5a6.entry.js} +1 -1
- package/dist/ptcw-design/{p-7235425a.entry.js → p-4c4a64bb.entry.js} +1 -1
- package/dist/ptcw-design/{p-d9df1a16.entry.js → p-4e8c1ba6.entry.js} +1 -1
- package/dist/ptcw-design/{p-757954b2.entry.js → p-522cb451.entry.js} +1 -1
- package/dist/ptcw-design/{p-c4674bc8.entry.js → p-5344a1f4.entry.js} +1 -1
- package/dist/ptcw-design/{p-e3867512.entry.js → p-53d2547b.entry.js} +1 -1
- package/dist/ptcw-design/{p-2c2f895a.entry.js → p-54891548.entry.js} +1 -1
- package/dist/ptcw-design/{p-6aa9ed95.entry.js → p-575c7fc0.entry.js} +1 -1
- package/dist/ptcw-design/{p-d6ee094b.entry.js → p-5aed43be.entry.js} +1 -1
- package/dist/ptcw-design/p-5bbfd7b3.entry.js +1 -0
- package/dist/ptcw-design/{p-04891836.entry.js → p-5d6f17e3.entry.js} +1 -1
- package/dist/ptcw-design/{p-61d28206.entry.js → p-5fb671ee.entry.js} +1 -1
- package/dist/ptcw-design/{p-c631608f.entry.js → p-61a5012d.entry.js} +1 -1
- package/dist/ptcw-design/{p-9e4e21a4.entry.js → p-6251a6d6.entry.js} +1 -1
- package/dist/ptcw-design/p-63da8f22.entry.js +1 -0
- package/dist/ptcw-design/{p-13963d40.entry.js → p-681d26ef.entry.js} +1 -1
- package/dist/ptcw-design/{p-9de963f8.entry.js → p-6d628113.entry.js} +1 -1
- package/dist/ptcw-design/{p-ab4906a7.entry.js → p-6f1cc5e5.entry.js} +1 -1
- package/dist/ptcw-design/{p-a4dd4e83.entry.js → p-7398874a.entry.js} +1 -1
- package/dist/ptcw-design/{p-6f2acce5.entry.js → p-746337da.entry.js} +1 -1
- package/dist/ptcw-design/{p-04aae3f5.entry.js → p-74a845fd.entry.js} +1 -1
- package/dist/ptcw-design/{p-1f356fcf.entry.js → p-752159e2.entry.js} +1 -1
- package/dist/ptcw-design/{p-546bacfd.entry.js → p-7524411a.entry.js} +1 -1
- package/dist/ptcw-design/{p-d74ccb19.entry.js → p-75d8b6ec.entry.js} +1 -1
- package/dist/ptcw-design/{p-1bffeaed.entry.js → p-7815e38b.entry.js} +1 -1
- package/dist/ptcw-design/{p-cb0e3ec2.entry.js → p-784c16ce.entry.js} +1 -1
- package/dist/ptcw-design/{p-b436f56d.entry.js → p-79762cf6.entry.js} +1 -1
- package/dist/ptcw-design/p-79a6e764.entry.js +1 -0
- package/dist/ptcw-design/p-7b89a8e1.entry.js +1 -0
- package/dist/ptcw-design/{p-5dd538c4.entry.js → p-7c6d6a5e.entry.js} +1 -1
- package/dist/ptcw-design/{p-5980d65d.entry.js → p-807ad5c4.entry.js} +1 -1
- package/dist/ptcw-design/{p-931650bb.entry.js → p-80c56c81.entry.js} +1 -1
- package/dist/ptcw-design/{p-d77531c8.entry.js → p-81736d6a.entry.js} +1 -1
- package/dist/ptcw-design/{p-53dee19b.entry.js → p-83632220.entry.js} +1 -1
- package/dist/ptcw-design/p-83c3d6c9.entry.js +1 -0
- package/dist/ptcw-design/p-87a9a028.entry.js +1 -0
- package/dist/ptcw-design/{p-14ba0f06.entry.js → p-87e4c337.entry.js} +1 -1
- package/dist/ptcw-design/{p-15e36f30.entry.js → p-8cdcfb51.entry.js} +1 -1
- package/dist/ptcw-design/{p-ef870202.entry.js → p-8e24e586.entry.js} +1 -1
- package/dist/ptcw-design/{p-9a335b5b.entry.js → p-8eb36507.entry.js} +1 -1
- package/dist/ptcw-design/{p-761a31f8.entry.js → p-8ffdd794.entry.js} +1 -1
- package/dist/ptcw-design/{p-1c63c812.entry.js → p-908ad455.entry.js} +1 -1
- package/dist/ptcw-design/{p-506dac1f.entry.js → p-91e5c8d4.entry.js} +1 -1
- package/dist/ptcw-design/{p-ac75c7ad.js → p-944c5be8.js} +1 -1
- package/dist/ptcw-design/p-9461c4eb.entry.js +1 -0
- package/dist/ptcw-design/p-973b06d1.entry.js +1 -0
- package/dist/ptcw-design/{p-fbd9c8fc.entry.js → p-973c69d8.entry.js} +1 -1
- package/dist/ptcw-design/{p-bfacfe67.entry.js → p-9a28ded2.entry.js} +1 -1
- package/dist/ptcw-design/p-9d8a9a72.entry.js +1 -0
- package/dist/ptcw-design/{p-4f3dea53.entry.js → p-a1dc7ae5.entry.js} +1 -1
- package/dist/ptcw-design/{p-257a68df.entry.js → p-a22d7ae8.entry.js} +1 -1
- package/dist/ptcw-design/{p-3872fce7.entry.js → p-a2710bbf.entry.js} +1 -1
- package/dist/ptcw-design/{p-4c89d63d.entry.js → p-a31f22a1.entry.js} +1 -1
- package/dist/ptcw-design/{p-2670ac97.entry.js → p-a668ad65.entry.js} +1 -1
- package/dist/ptcw-design/{p-8191928d.entry.js → p-a974f98f.entry.js} +1 -1
- package/dist/ptcw-design/{p-a04bedc2.entry.js → p-afb5bdb9.entry.js} +1 -1
- package/dist/ptcw-design/{p-e73a1a0b.entry.js → p-b1053240.entry.js} +1 -1
- package/dist/ptcw-design/{p-aea09a70.entry.js → p-b293a0b1.entry.js} +1 -1
- package/dist/ptcw-design/{p-a41c7e39.entry.js → p-b6cc4c2a.entry.js} +1 -1
- package/dist/ptcw-design/{p-b19cda95.entry.js → p-b82dd7f9.entry.js} +1 -1
- package/dist/ptcw-design/{p-6b9e4a18.entry.js → p-b8c38d83.entry.js} +1 -1
- package/dist/ptcw-design/{p-3cfe0126.entry.js → p-b9966f20.entry.js} +1 -1
- package/dist/ptcw-design/{p-560b05a5.entry.js → p-bca81995.entry.js} +1 -1
- package/dist/ptcw-design/p-bdb2e42c.entry.js +1 -0
- package/dist/ptcw-design/{p-a7cb3851.entry.js → p-be00fb74.entry.js} +1 -1
- package/dist/ptcw-design/{p-89ba3dfd.entry.js → p-bf2f9183.entry.js} +1 -1
- package/dist/ptcw-design/{p-74097f89.entry.js → p-c137315d.entry.js} +1 -1
- package/dist/ptcw-design/{p-aac082cf.entry.js → p-c5417010.entry.js} +1 -1
- package/dist/ptcw-design/{p-0c914932.entry.js → p-c80265d9.entry.js} +1 -1
- package/dist/ptcw-design/{p-575861b3.entry.js → p-c8de7309.entry.js} +1 -1
- package/dist/ptcw-design/{p-04f0b1ba.entry.js → p-c9a73ad1.entry.js} +1 -1
- package/dist/ptcw-design/{p-baeee2b4.entry.js → p-ca039722.entry.js} +1 -1
- package/dist/ptcw-design/{p-312c41b8.entry.js → p-ca63a0c9.entry.js} +1 -1
- package/dist/ptcw-design/{p-5946d7c9.entry.js → p-cab0274c.entry.js} +1 -1
- package/dist/ptcw-design/{p-98610430.entry.js → p-ce125ef2.entry.js} +1 -1
- package/dist/ptcw-design/{p-927373d4.entry.js → p-cf0f6559.entry.js} +1 -1
- package/dist/ptcw-design/{p-8b480abd.entry.js → p-d0013567.entry.js} +1 -1
- package/dist/ptcw-design/{p-e3bf092e.entry.js → p-d1f57070.entry.js} +1 -1
- package/dist/ptcw-design/{p-f5d8a3b1.entry.js → p-d6271974.entry.js} +1 -1
- package/dist/ptcw-design/{p-260ecfef.entry.js → p-d9ec506c.entry.js} +1 -1
- package/dist/ptcw-design/{p-ac766cb3.entry.js → p-da4b7e23.entry.js} +1 -1
- package/dist/ptcw-design/{p-a54c6da5.entry.js → p-dabb1b70.entry.js} +1 -1
- package/dist/ptcw-design/{p-a0bf3dd2.entry.js → p-dadbab48.entry.js} +1 -1
- package/dist/ptcw-design/{p-c5f42895.entry.js → p-dd38bf84.entry.js} +1 -1
- package/dist/ptcw-design/{p-a8504f11.entry.js → p-de663192.entry.js} +1 -1
- package/dist/ptcw-design/{p-74305746.entry.js → p-e076d2ba.entry.js} +1 -1
- package/dist/ptcw-design/{p-92e76318.entry.js → p-e1bd2c43.entry.js} +1 -1
- package/dist/ptcw-design/{p-ac7b2779.entry.js → p-e249cd90.entry.js} +1 -1
- package/dist/ptcw-design/{p-5a2ed8fb.entry.js → p-e2da8109.entry.js} +1 -1
- package/dist/ptcw-design/{p-a37c5209.entry.js → p-e2e33ddb.entry.js} +1 -1
- package/dist/ptcw-design/{p-a993c0a6.entry.js → p-e50a5a46.entry.js} +1 -1
- package/dist/ptcw-design/{p-6a561487.entry.js → p-e69a0445.entry.js} +1 -1
- package/dist/ptcw-design/{p-fdee2cdc.entry.js → p-e6ebc832.entry.js} +1 -1
- package/dist/ptcw-design/{p-c68d31c6.entry.js → p-e87a4ff8.entry.js} +1 -1
- package/dist/ptcw-design/{p-db0fc94d.entry.js → p-e880b556.entry.js} +1 -1
- package/dist/ptcw-design/{p-0a9ee6c2.entry.js → p-e8b51e7d.entry.js} +1 -1
- package/dist/ptcw-design/{p-cbbe2bba.entry.js → p-e9f834fa.entry.js} +1 -1
- package/dist/ptcw-design/p-eabf87be.entry.js +1 -0
- package/dist/ptcw-design/{p-5877f093.entry.js → p-ec395ae9.entry.js} +1 -1
- package/dist/ptcw-design/{p-7a1db471.entry.js → p-ecfc8211.entry.js} +1 -1
- package/dist/ptcw-design/p-ed49544c.entry.js +1 -0
- package/dist/ptcw-design/{p-a8304a3e.entry.js → p-ed53cb3a.entry.js} +1 -1
- package/dist/ptcw-design/{p-4f4f97a6.entry.js → p-ed5a467e.entry.js} +1 -1
- package/dist/ptcw-design/p-edaf241d.entry.js +1 -0
- package/dist/ptcw-design/{p-711bcdad.js → p-ee1183b2.js} +1 -1
- package/dist/ptcw-design/{p-de960790.entry.js → p-ef55ab3c.entry.js} +1 -1
- package/dist/ptcw-design/p-efd6ee3b.entry.js +1 -0
- package/dist/ptcw-design/{p-0ddf2a09.entry.js → p-f004e5de.entry.js} +1 -1
- package/dist/ptcw-design/{p-f5c97ab2.entry.js → p-f2006b03.entry.js} +1 -1
- package/dist/ptcw-design/{p-2a22123e.entry.js → p-f20e4230.entry.js} +1 -1
- package/dist/ptcw-design/{p-18d699f0.entry.js → p-f418ef26.entry.js} +1 -1
- package/dist/ptcw-design/{p-2b08a37d.entry.js → p-f4ae5a99.entry.js} +1 -1
- package/dist/ptcw-design/{p-d8b2466d.entry.js → p-f5665cfe.entry.js} +1 -1
- package/dist/ptcw-design/{p-26e8ad2e.entry.js → p-fa045097.entry.js} +1 -1
- package/dist/ptcw-design/{p-c061b32d.entry.js → p-fb0c3eeb.entry.js} +1 -1
- package/dist/ptcw-design/{p-187ef77b.entry.js → p-fb0f4459.entry.js} +1 -1
- package/dist/ptcw-design/{p-ee91170c.entry.js → p-fe56e336.entry.js} +1 -1
- package/dist/ptcw-design/p-fef688c2.entry.js +1 -0
- package/dist/ptcw-design/{p-84c15835.entry.js → p-ff369ed7.entry.js} +1 -1
- package/dist/ptcw-design/ptcw-design.esm.js +1 -1
- package/package.json +1 -1
- package/readme.md +1 -1
- package/dist/cjs/icon-asset.cjs.entry.js +0 -65
- package/dist/cjs/list-item.cjs.entry.js +0 -52
- package/dist/cjs/ptc-back-to-top.cjs.entry.js +0 -100
- package/dist/cjs/ptc-breadcrumb.cjs.entry.js +0 -70
- package/dist/cjs/ptc-button.cjs.entry.js +0 -117
- package/dist/cjs/ptc-para.cjs.entry.js +0 -139
- package/dist/cjs/ptc-picture.cjs.entry.js +0 -185
- package/dist/cjs/ptc-product-card.cjs.entry.js +0 -61
- package/dist/cjs/ptc-product-category.cjs.entry.js +0 -20
- package/dist/cjs/ptc-product-dropdown.cjs.entry.js +0 -80
- package/dist/cjs/ptc-product-highlight-card.cjs.entry.js +0 -28
- package/dist/cjs/ptc-product-list.cjs.entry.js +0 -172
- package/dist/cjs/ptc-product-sidebar.cjs.entry.js +0 -178
- package/dist/cjs/ptc-readmore.cjs.entry.js +0 -186
- package/dist/cjs/ptc-spacer.cjs.entry.js +0 -38
- package/dist/cjs/ptc-title.cjs.entry.js +0 -161
- package/dist/cjs/ptc-tooltip.cjs.entry.js +0 -113
- package/dist/esm/icon-asset.entry.js +0 -61
- package/dist/esm/list-item.entry.js +0 -48
- package/dist/esm/ptc-back-to-top.entry.js +0 -96
- package/dist/esm/ptc-breadcrumb.entry.js +0 -66
- package/dist/esm/ptc-button.entry.js +0 -113
- package/dist/esm/ptc-para.entry.js +0 -135
- package/dist/esm/ptc-picture.entry.js +0 -181
- package/dist/esm/ptc-product-card.entry.js +0 -57
- package/dist/esm/ptc-product-category.entry.js +0 -16
- package/dist/esm/ptc-product-dropdown.entry.js +0 -76
- package/dist/esm/ptc-product-highlight-card.entry.js +0 -24
- package/dist/esm/ptc-product-list.entry.js +0 -168
- package/dist/esm/ptc-product-sidebar.entry.js +0 -174
- package/dist/esm/ptc-readmore.entry.js +0 -182
- package/dist/esm/ptc-spacer.entry.js +0 -34
- package/dist/esm/ptc-title.entry.js +0 -157
- package/dist/esm/ptc-tooltip.entry.js +0 -109
- package/dist/ptcw-design/p-0a86d91a.entry.js +0 -1
- package/dist/ptcw-design/p-0c69ea52.entry.js +0 -1
- package/dist/ptcw-design/p-0fbdcd78.entry.js +0 -1
- package/dist/ptcw-design/p-13e338a5.entry.js +0 -1
- package/dist/ptcw-design/p-1a853854.entry.js +0 -1
- package/dist/ptcw-design/p-23cb5b5b.entry.js +0 -1
- package/dist/ptcw-design/p-26b70120.entry.js +0 -1
- package/dist/ptcw-design/p-37f92bb4.entry.js +0 -1
- package/dist/ptcw-design/p-390c0dee.entry.js +0 -1
- package/dist/ptcw-design/p-3ddb6c50.entry.js +0 -1
- package/dist/ptcw-design/p-4703e417.entry.js +0 -1
- package/dist/ptcw-design/p-567535fb.entry.js +0 -1
- package/dist/ptcw-design/p-5dd13e2d.entry.js +0 -1
- package/dist/ptcw-design/p-5e4c1edf.entry.js +0 -1
- package/dist/ptcw-design/p-6f9f55b3.entry.js +0 -1
- package/dist/ptcw-design/p-7218fe2c.entry.js +0 -1
- package/dist/ptcw-design/p-7d29a418.entry.js +0 -1
- package/dist/ptcw-design/p-80ee97a2.entry.js +0 -1
- package/dist/ptcw-design/p-97eb1025.entry.js +0 -1
- package/dist/ptcw-design/p-99daf693.entry.js +0 -1
- package/dist/ptcw-design/p-9c6cad16.entry.js +0 -1
- package/dist/ptcw-design/p-9efa8199.entry.js +0 -1
- package/dist/ptcw-design/p-ad0e7843.entry.js +0 -1
- package/dist/ptcw-design/p-af9912b6.entry.js +0 -1
- package/dist/ptcw-design/p-b684ca9d.entry.js +0 -1
- package/dist/ptcw-design/p-bb9a879f.entry.js +0 -1
- package/dist/ptcw-design/p-bf84ecc0.entry.js +0 -1
- package/dist/ptcw-design/p-c09a8288.entry.js +0 -1
- package/dist/ptcw-design/p-c3b27836.entry.js +0 -1
- package/dist/ptcw-design/p-c89030e4.entry.js +0 -1
- package/dist/ptcw-design/p-e01173ca.entry.js +0 -1
- package/dist/ptcw-design/p-e0e87d61.entry.js +0 -1
- package/dist/ptcw-design/p-e5e1e8fb.entry.js +0 -1
- package/dist/ptcw-design/p-e7220c36.entry.js +0 -1
- package/dist/ptcw-design/p-fb2335c1.entry.js +0 -1
- package/dist/ptcw-design/p-fd7e5935.entry.js +0 -1
|
@@ -0,0 +1,1660 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
const index = require('./index-63ddc79c.js');
|
|
6
|
+
const utils = require('./utils-0ff09a53.js');
|
|
7
|
+
const interfaces = require('./interfaces-574e6df7.js');
|
|
8
|
+
|
|
9
|
+
const iconAssetCss = ".svg-inline--fa.sc-icon-asset,svg.sc-icon-asset:not(:root).svg-inline--fa{overflow:visible}.svg-inline--fa.sc-icon-asset{display:inline-block;font-size:inherit;height:1em;vertical-align:-.125em}.svg-inline--fa.fa-lg.sc-icon-asset{vertical-align:-.225em}.svg-inline--fa.fa-w-1.sc-icon-asset{width:.0625em}.svg-inline--fa.fa-w-2.sc-icon-asset{width:.125em}.svg-inline--fa.fa-w-3.sc-icon-asset{width:.1875em}.svg-inline--fa.fa-w-4.sc-icon-asset{width:.25em}.svg-inline--fa.fa-w-5.sc-icon-asset{width:.3125em}.svg-inline--fa.fa-w-6.sc-icon-asset{width:.375em}.svg-inline--fa.fa-w-7.sc-icon-asset{width:.4375em}.svg-inline--fa.fa-w-8.sc-icon-asset{width:.5em}.svg-inline--fa.fa-w-9.sc-icon-asset{width:.5625em}.svg-inline--fa.fa-w-10.sc-icon-asset{width:.625em}.svg-inline--fa.fa-w-11.sc-icon-asset{width:.6875em}.svg-inline--fa.fa-w-12.sc-icon-asset{width:.75em}.svg-inline--fa.fa-w-13.sc-icon-asset{width:.8125em}.svg-inline--fa.fa-w-14.sc-icon-asset{width:.875em}.svg-inline--fa.fa-w-15.sc-icon-asset{width:.9375em}.svg-inline--fa.fa-w-16.sc-icon-asset{width:1em}.svg-inline--fa.fa-w-17.sc-icon-asset{width:1.0625em}.svg-inline--fa.fa-w-18.sc-icon-asset{width:1.125em}.svg-inline--fa.fa-w-19.sc-icon-asset{width:1.1875em}.svg-inline--fa.fa-w-20.sc-icon-asset{width:1.25em}.svg-inline--fa.fa-pull-left.sc-icon-asset{margin-right:.3em;width:auto}.svg-inline--fa.fa-pull-right.sc-icon-asset{margin-left:.3em;width:auto}.svg-inline--fa.fa-border.sc-icon-asset{height:1.5em}.svg-inline--fa.fa-li.sc-icon-asset{width:2em}.svg-inline--fa.fa-fw.sc-icon-asset{width:1.25em}.fa-layers.sc-icon-asset svg.svg-inline--fa.sc-icon-asset{bottom:0;left:0;margin:auto;position:absolute;right:0;top:0}.fa-layers.sc-icon-asset{display:inline-block;height:1em;position:relative;text-align:center;vertical-align:-.125em;width:1em}.fa-layers.sc-icon-asset svg.svg-inline--fa.sc-icon-asset{-webkit-transform-origin:center center;transform-origin:center center}.fa-layers-counter.sc-icon-asset,.fa-layers-text.sc-icon-asset{display:inline-block;position:absolute;text-align:center}.fa-layers-text.sc-icon-asset{left:50%;top:50%;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%);-webkit-transform-origin:center center;transform-origin:center center}.fa-layers-counter.sc-icon-asset{background-color:#ff253a;border-radius:1em;-webkit-box-sizing:border-box;box-sizing:border-box;color:#fff;height:1.5em;line-height:1;max-width:5em;min-width:1.5em;overflow:hidden;padding:.25em;right:0;text-overflow:ellipsis;top:0;-webkit-transform:scale(.25);transform:scale(.25);-webkit-transform-origin:top right;transform-origin:top right}.fa-layers-bottom-right.sc-icon-asset{bottom:0;right:0;top:auto;-webkit-transform:scale(.25);transform:scale(.25);-webkit-transform-origin:bottom right;transform-origin:bottom right}.fa-layers-bottom-left.sc-icon-asset{bottom:0;left:0;right:auto;top:auto;-webkit-transform:scale(.25);transform:scale(.25);-webkit-transform-origin:bottom left;transform-origin:bottom left}.fa-layers-top-right.sc-icon-asset{right:0;top:0;-webkit-transform:scale(.25);transform:scale(.25);-webkit-transform-origin:top right;transform-origin:top right}.fa-layers-top-left.sc-icon-asset{left:0;right:auto;top:0;-webkit-transform:scale(.25);transform:scale(.25);-webkit-transform-origin:top left;transform-origin:top left}.fa-lg.sc-icon-asset{font-size:1.33333em;line-height:.75em;vertical-align:-.0667em}.fa-xs.sc-icon-asset{font-size:.75em}.fa-sm.sc-icon-asset{font-size:.875em}.fa-1x.sc-icon-asset{font-size:1em}.fa-2x.sc-icon-asset{font-size:2em}.fa-3x.sc-icon-asset{font-size:3em}.fa-4x.sc-icon-asset{font-size:4em}.fa-5x.sc-icon-asset{font-size:5em}.fa-6x.sc-icon-asset{font-size:6em}.fa-7x.sc-icon-asset{font-size:7em}.fa-8x.sc-icon-asset{font-size:8em}.fa-9x.sc-icon-asset{font-size:9em}.fa-10x.sc-icon-asset{font-size:10em}.fa-fw.sc-icon-asset{text-align:center;width:1.25em}.fa-ul.sc-icon-asset{list-style-type:none;margin-left:2.5em;padding-left:0}.fa-ul.sc-icon-asset>li.sc-icon-asset{position:relative}.fa-li.sc-icon-asset{left:-2em;position:absolute;text-align:center;width:2em;line-height:inherit}.fa-border.sc-icon-asset{border:.08em solid #eee;border-radius:.1em;padding:.2em .25em .15em}.fa-pull-left.sc-icon-asset{float:left}.fa-pull-right.sc-icon-asset{float:right}.fa.fa-pull-left.sc-icon-asset,.fab.fa-pull-left.sc-icon-asset,.fal.fa-pull-left.sc-icon-asset,.far.fa-pull-left.sc-icon-asset,.fas.fa-pull-left.sc-icon-asset{margin-right:.3em}.fa.fa-pull-right.sc-icon-asset,.fab.fa-pull-right.sc-icon-asset,.fal.fa-pull-right.sc-icon-asset,.far.fa-pull-right.sc-icon-asset,.fas.fa-pull-right.sc-icon-asset{margin-left:.3em}.fa-spin.sc-icon-asset{-webkit-animation:fa-spin 2s linear infinite;animation:fa-spin 2s linear infinite}.fa-pulse.sc-icon-asset{-webkit-animation:fa-spin 1s steps(8) infinite;animation:fa-spin 1s steps(8) infinite}@-webkit-keyframes fa-spin{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}to{-webkit-transform:rotate(1turn);transform:rotate(1turn)}}@keyframes fa-spin{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}to{-webkit-transform:rotate(1turn);transform:rotate(1turn)}}.fa-rotate-90.sc-icon-asset{-ms-filter:\"progid:DXImageTransform.Microsoft.BasicImage(rotation=1)\";-webkit-transform:rotate(90deg);transform:rotate(90deg)}.fa-rotate-180.sc-icon-asset{-ms-filter:\"progid:DXImageTransform.Microsoft.BasicImage(rotation=2)\";-webkit-transform:rotate(180deg);transform:rotate(180deg)}.fa-rotate-270.sc-icon-asset{-ms-filter:\"progid:DXImageTransform.Microsoft.BasicImage(rotation=3)\";-webkit-transform:rotate(270deg);transform:rotate(270deg)}.fa-flip-horizontal.sc-icon-asset{-ms-filter:\"progid:DXImageTransform.Microsoft.BasicImage(rotation=0, mirror=1)\";-webkit-transform:scaleX(-1);transform:scaleX(-1)}.fa-flip-vertical.sc-icon-asset{-webkit-transform:scaleY(-1);transform:scaleY(-1)}.fa-flip-both.sc-icon-asset,.fa-flip-horizontal.fa-flip-vertical.sc-icon-asset,.fa-flip-vertical.sc-icon-asset{-ms-filter:\"progid:DXImageTransform.Microsoft.BasicImage(rotation=2, mirror=1)\"}.fa-flip-both.sc-icon-asset,.fa-flip-horizontal.fa-flip-vertical.sc-icon-asset{-webkit-transform:scale(-1);transform:scale(-1)}.sc-icon-asset:root .fa-flip-both.sc-icon-asset,.sc-icon-asset:root .fa-flip-horizontal.sc-icon-asset,.sc-icon-asset:root .fa-flip-vertical.sc-icon-asset,.sc-icon-asset:root .fa-rotate-90.sc-icon-asset,.sc-icon-asset:root .fa-rotate-180.sc-icon-asset,.sc-icon-asset:root .fa-rotate-270.sc-icon-asset{-webkit-filter:none;filter:none}.fa-stack.sc-icon-asset{display:inline-block;height:2em;position:relative;width:2.5em}.fa-stack-1x.sc-icon-asset,.fa-stack-2x.sc-icon-asset{bottom:0;left:0;margin:auto;position:absolute;right:0;top:0}.svg-inline--fa.fa-stack-1x.sc-icon-asset{height:1em;width:1.25em}.svg-inline--fa.fa-stack-2x.sc-icon-asset{height:2em;width:2.5em}.fa-inverse.sc-icon-asset{color:#fff}.sr-only.sc-icon-asset{border:0;clip:rect(0,0,0,0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px}.sr-only-focusable.sc-icon-asset:active,.sr-only-focusable.sc-icon-asset:focus{clip:auto;height:auto;margin:0;overflow:visible;position:static;width:auto}.svg-inline--fa.sc-icon-asset .fa-primary.sc-icon-asset{fill:var(--fa-primary-color,currentColor);opacity:1;opacity:var(--fa-primary-opacity,1)}.svg-inline--fa.sc-icon-asset .fa-secondary.sc-icon-asset{fill:var(--fa-secondary-color,currentColor)}.svg-inline--fa.sc-icon-asset .fa-secondary.sc-icon-asset,.svg-inline--fa.fa-swap-opacity.sc-icon-asset .fa-primary.sc-icon-asset{opacity:.4;opacity:var(--fa-secondary-opacity,.4)}.svg-inline--fa.fa-swap-opacity.sc-icon-asset .fa-secondary.sc-icon-asset{opacity:1;opacity:var(--fa-primary-opacity,1)}.svg-inline--fa.sc-icon-asset mask.sc-icon-asset .fa-primary.sc-icon-asset,.svg-inline--fa.sc-icon-asset mask.sc-icon-asset .fa-secondary.sc-icon-asset{fill:#000}.fad.fa-inverse.sc-icon-asset{color:#fff}h1.sc-icon-asset,h2.sc-icon-asset,h3.sc-icon-asset,h4.sc-icon-asset,h5.sc-icon-asset,h6.sc-icon-asset,p.sc-icon-asset,ul.sc-icon-asset,li.sc-icon-asset,ptc-subnav.sc-icon-asset,ptc-tab-list.sc-icon-asset,ptc-link.sc-icon-asset,ptc-square-card.sc-icon-asset,.hyphenate-text.sc-icon-asset,ptc-footer.sc-icon-asset{word-break:break-word;hyphens:manual;-webkit-hyphens:manual;-moz-hyphens:manual;-ms-hyphens:manual}@supports (hyphenate-limit-chars: 12 3 3){h1.sc-icon-asset,h2.sc-icon-asset,h3.sc-icon-asset,h4.sc-icon-asset,h5.sc-icon-asset,h6.sc-icon-asset,p.sc-icon-asset,ul.sc-icon-asset,li.sc-icon-asset,ptc-subnav.sc-icon-asset,ptc-tab-list.sc-icon-asset,ptc-link.sc-icon-asset,ptc-square-card.sc-icon-asset,.hyphenate-text.sc-icon-asset,ptc-footer.sc-icon-asset{hyphens:auto;-webkit-hyphenate-limit-before:3;-webkit-hyphenate-limit-after:3;hyphenate-limit-chars:12 3 3;hyphenate-limit-lines:2;hyphenate-limit-last:always;hyphenate-limit-zone:6%;-webkit-hyphens:auto;-webkit-hyphenate-limit-before:3;-webkit-hyphenate-limit-after:3;-webkit-hyphenate-limit-chars:12 3 3;-webkit-hyphenate-limit-lines:2;-moz-hyphens:auto;-moz-hyphenate-limit-chars:12 3 3;-moz-hyphenate-limit-lines:2;-ms-hyphens:auto;-ms-hyphenate-limit-chars:12 3 3;-ms-hyphenate-limit-lines:2}}icon-asset.sc-icon-asset{vertical-align:middle}svg.sc-icon-asset{transition:all var(--ptc-transition-medium) var(--ptc-ease-inout)}svg.micro.sc-icon-asset{width:calc(var(--ptc-font-size-x-small) / 2);height:calc(var(--ptc-font-size-x-small) / 2)}svg.xxx-small.sc-icon-asset{width:var(--ptc-font-size-xxx-small);height:var(--ptc-font-size-xxx-small)}svg.xx-small.sc-icon-asset{width:var(--ptc-font-size-xx-small);height:var(--ptc-font-size-xx-small)}svg.x-small.sc-icon-asset{width:var(--ptc-font-size-x-small);height:var(--ptc-font-size-x-small)}svg.small.sc-icon-asset{width:var(--ptc-font-size-small);height:var(--ptc-font-size-small)}svg.medium.sc-icon-asset{width:var(--ptc-font-size-medium);height:var(--ptc-font-size-medium)}svg.large.sc-icon-asset{width:var(--ptc-font-size-large);height:var(--ptc-font-size-large)}svg.x-large.sc-icon-asset{width:var(--ptc-font-size-x-large);height:var(--ptc-font-size-x-large)}svg.xx-large.sc-icon-asset{width:var(--ptc-font-size-xx-large);height:var(--ptc-font-size-xx-large)}svg.xxx-large.sc-icon-asset{width:var(--ptc-font-size-xxx-large);height:var(--ptc-font-size-xxx-large)}svg.xxxx-large.sc-icon-asset{width:var(--ptc-font-size-xxxx-large);height:var(--ptc-font-size-xxxx-large)}svg.white.sc-icon-asset{fill:var(--color-white)}svg.white.sc-icon-asset use[href$=\"#minus\"].sc-icon-asset,svg.white.sc-icon-asset use[href$=\"#plus\"].sc-icon-asset,svg.white.sc-icon-asset use[href$=\"#checkmark\"].sc-icon-asset{stroke:var(--color-white)}svg.black.sc-icon-asset{fill:var(--color-black)}svg.black.sc-icon-asset use[href$=\"#minus\"].sc-icon-asset,svg.black.sc-icon-asset use[href$=\"#plus\"].sc-icon-asset,svg.black.sc-icon-asset use[href$=\"#checkmark\"].sc-icon-asset{stroke:var(--color-black)}svg.ptc-green.sc-icon-asset{fill:var(--color-green-07)}svg.ptc-green.sc-icon-asset use[href$=\"#minus\"].sc-icon-asset,svg.ptc-green.sc-icon-asset use[href$=\"#plus\"].sc-icon-asset,svg.ptc-green.sc-icon-asset use[href$=\"#checkmark\"].sc-icon-asset{stroke:var(--color-green-07)}svg.gray.sc-icon-asset{fill:var(--color-gray-06)}svg.gray.sc-icon-asset use[href$=\"#minus\"].sc-icon-asset,svg.gray.sc-icon-asset use[href$=\"#plus\"].sc-icon-asset,svg.gray.sc-icon-asset use[href$=\"#checkmark\"].sc-icon-asset{stroke:var(--color-gray-06)}svg.light-gray.sc-icon-asset{fill:var(--color-gray-05)}svg.light-gray.sc-icon-asset use[href$=\"#minus\"].sc-icon-asset,svg.light-gray.sc-icon-asset use[href$=\"#plus\"].sc-icon-asset,svg.light-gray.sc-icon-asset use[href$=\"#checkmark\"].sc-icon-asset{stroke:var(--color-gray-05)}svg.disabled.sc-icon-asset{fill:var(--color-gray-03)}svg.disabled.sc-icon-asset use[href$=\"#minus\"].sc-icon-asset,svg.disabled.sc-icon-asset use[href$=\"#plus\"].sc-icon-asset,svg.disabled.sc-icon-asset use[href$=\"#checkmark\"].sc-icon-asset{stroke:var(--color-gray-03)}svg.primary-gray.sc-icon-asset{fill:var(--color-gray-10)}svg.inherit.sc-icon-asset{fill:inherit}svg.inherit.sc-icon-asset use[href$=\"#minus\"].sc-icon-asset,svg.inherit.sc-icon-asset use[href$=\"#plus\"].sc-icon-asset,svg.inherit.sc-icon-asset use[href$=\"#checkmark\"].sc-icon-asset{stroke:inherit}svg.sc-icon-asset:focus{outline:none !important}svg[tabIndex=\"0\"].sc-icon-asset:focus-visible{border-radius:var(--ptc-border-radius-standard);outline:5px solid var(--keyboard-nav-outline)}svg[tabIndex=\"0\"].sc-icon-asset:focus{outline:none !important}";
|
|
10
|
+
|
|
11
|
+
const IconAsset = class {
|
|
12
|
+
constructor(hostRef) {
|
|
13
|
+
index.registerInstance(this, hostRef);
|
|
14
|
+
this.ready = index.createEvent(this, "ready", 7);
|
|
15
|
+
this.regularSprite = index.getAssetPath("./media/regular.svg");
|
|
16
|
+
this.solidSprite = index.getAssetPath("./media/solid.svg");
|
|
17
|
+
this.brandSprite = index.getAssetPath("./media/brands.svg");
|
|
18
|
+
this.ptcSprite = index.getAssetPath("./media/designer-v6.0.7.svg");
|
|
19
|
+
this.name = undefined;
|
|
20
|
+
this.size = "xx-small";
|
|
21
|
+
this.type = "regular";
|
|
22
|
+
this.spin = "";
|
|
23
|
+
this.pulse = "";
|
|
24
|
+
this.color = "default";
|
|
25
|
+
this.isMobileSelect = undefined;
|
|
26
|
+
this.injectedStyle = undefined;
|
|
27
|
+
this.focusOn = false;
|
|
28
|
+
this.trackerId = "";
|
|
29
|
+
}
|
|
30
|
+
componentDidLoad() {
|
|
31
|
+
this.ready.emit({
|
|
32
|
+
"regular-icons": this.regularSprite,
|
|
33
|
+
"sold-icons": this.solidSprite,
|
|
34
|
+
"brand-icons": this.brandSprite,
|
|
35
|
+
"ptc-icons": this.ptcSprite,
|
|
36
|
+
});
|
|
37
|
+
}
|
|
38
|
+
render() {
|
|
39
|
+
const classMap = this.getCssClassMap();
|
|
40
|
+
if (this.type == "brands") {
|
|
41
|
+
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}` }))));
|
|
42
|
+
}
|
|
43
|
+
else if (this.type == "solid") {
|
|
44
|
+
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}` }))));
|
|
45
|
+
}
|
|
46
|
+
else if (this.type == "ptc") {
|
|
47
|
+
return (index.h(index.Host, null, this.injectedStyle && index.h("style", null, this.injectedStyle), index.h("svg", { class: classMap, "aria-hidden": this.isMobileSelect && "true", tabindex: this.focusOn ? 0 : -1, id: this.trackerId }, index.h("use", { href: `${this.ptcSprite}#${this.name}` }))));
|
|
48
|
+
}
|
|
49
|
+
else {
|
|
50
|
+
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}` }))));
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
getCssClassMap() {
|
|
54
|
+
return {
|
|
55
|
+
[this.size]: true,
|
|
56
|
+
[this.spin]: true,
|
|
57
|
+
[this.pulse]: true,
|
|
58
|
+
[this.color]: true,
|
|
59
|
+
["ismobileselect"]: this.isMobileSelect ? true : false,
|
|
60
|
+
["mf-listen"]: this.trackerId !== "" ? true : false,
|
|
61
|
+
};
|
|
62
|
+
}
|
|
63
|
+
static get assetsDirs() { return ["media"]; }
|
|
64
|
+
};
|
|
65
|
+
IconAsset.style = iconAssetCss;
|
|
66
|
+
|
|
67
|
+
const listItemCss = "h1,h2,h3,h4,h5,h6,p,ul,li,ptc-subnav,ptc-tab-list,ptc-link,ptc-square-card,.hyphenate-text,ptc-footer{word-break:break-word;hyphens:manual;-webkit-hyphens:manual;-moz-hyphens:manual;-ms-hyphens:manual}@supports (hyphenate-limit-chars: 12 3 3){h1,h2,h3,h4,h5,h6,p,ul,li,ptc-subnav,ptc-tab-list,ptc-link,ptc-square-card,.hyphenate-text,ptc-footer{hyphens:auto;-webkit-hyphenate-limit-before:3;-webkit-hyphenate-limit-after:3;hyphenate-limit-chars:12 3 3;hyphenate-limit-lines:2;hyphenate-limit-last:always;hyphenate-limit-zone:6%;-webkit-hyphens:auto;-webkit-hyphenate-limit-before:3;-webkit-hyphenate-limit-after:3;-webkit-hyphenate-limit-chars:12 3 3;-webkit-hyphenate-limit-lines:2;-moz-hyphens:auto;-moz-hyphenate-limit-chars:12 3 3;-moz-hyphenate-limit-lines:2;-ms-hyphens:auto;-ms-hyphenate-limit-chars:12 3 3;-ms-hyphenate-limit-lines:2}}:host(.list-primary){display:block}:host(.flush-before) li::before{content:\"\" !important}:host(.breadcrumb){display:inline-block}:host(.breadcrumb) li{position:relative;display:inline-block;color:var(--color-white);font-weight:var(--ptc-font-weight-bold);font-size:var(--ptc-font-size-xxx-small);line-height:var(--ptc-line-height-densest);display:flex;align-items:baseline}:host(.breadcrumb) li::before{content:\"/\";top:0;left:0;margin-left:2px}:host(.breadcrumb) li a.item-link{color:var(--color-white);font-weight:var(--ptc-font-weight-bold) !important;font-size:var(--ptc-font-size-xxx-small) !important;line-height:var(--ptc-line-height-densest);text-decoration:underline;text-decoration-color:transparent;text-underline-offset:2px;text-decoration-thickness:1px;outline:none;transition:text-decoration-color var(--ptc-transition-medium) var(--ptc-ease-inout)}:host(.breadcrumb) li a.item-link:hover{text-decoration:underline;text-decoration-color:var(--color-green-07);outline:none}:host(.breadcrumb) li a.item-link:focus-visible{transition:none;border-radius:var(--ptc-border-radius-standard);border:2px solid white;outline:5px solid var(--keyboard-nav-outline);padding-bottom:5px;padding-right:5px}:host(.breadcrumb-center) li{display:inline}:host(.list-green){display:block;margin-bottom:16px}:host(.list-green) li a{font-size:var(--ptc-font-size-xx-small);color:var(--color-gray-10);text-decoration:underline;text-decoration-thickness:1.5px;text-decoration-color:var(--color-green-04);font-weight:var(--ptc-font-weight-bold);transition:color var(--ptc-transition-medium) var(--ptc-ease-inout);line-height:var(--ptc-line-height-p);text-underline-offset:4px}:host(.list-green) li a:hover{color:var(--color-green-04)}:host(:not(.flush-before)) li::before{margin-right:2px}:host(.list-footer) li{display:inline-block;font-size:var(--ptc-font-size-xx-small);font-weight:var(--ptc-font-weight-regular);font-style:normal;font-stretch:normal;line-height:var(--ptc-line-height-denser);letter-spacing:normal;color:var(--color-white);margin:0 0.5rem}:host(.list-footer) li a{color:var(--color-white-grey);border-bottom:1px solid transparent;display:inline-block;text-decoration:none}:host(.list-footer) li a:hover,:host(.list-footer) li a:focus{text-decoration:none;border-bottom:1px solid var(--color-green-06);color:var(--color-white-grey);transition:border var(--ptc-ease-inout) var(--ptc-transition-medium)}:host(.list-footer) li a:active{text-decoration:none;border-bottom:1px solid var(--color-green-06);color:var(--color-white-grey)}:host(.list-footer) li a:focus{outline:3px solid var(--color-blue-07);outline-offset:2px;border-radius:var(--ptc-border-radius-standard);text-decoration:none;border-color:transparent !important}:host(.list-footer) li a:focus-visible{border-radius:var(--ptc-border-radius-standard);border:2px solid white;outline:5px solid var(--keyboard-nav-outline);transition:none !important;border-color:white !important}:host(.white) li{color:var(--color-white)}:host(.white) li a.item-link{color:var(--color-white)}:host(.light-gray) li{color:var(--color-gray-01)}:host(.light-gray) li a.item-link{color:var(--color-gray-01)}:host(.primary-gray) li{color:var(--color-gray-10)}:host(.primary-gray) li a.item-link{color:var(--color-gray-10)}:host(.list-underline) li{color:var(--color-gray-10);list-style:none;-webkit-text-decoration:underline 1px solid;text-decoration:underline 1px solid;text-underline-offset:2px;line-height:var(--ptc-line-height-p)}:host(.list-underline) li a{display:inline-block;padding:4px 0}:host(.list-underline) li a.item-link{color:var(--color-gray-10)}:host(.list-underline) li a:focus-visible{border-radius:var(--ptc-border-radius-standard);outline:5px solid var(--keyboard-nav-outline)}:host li .has-before-home-icon{display:block}@media only screen and (min-width: 480px){:host li .has-before-home-icon{display:none}}";
|
|
68
|
+
|
|
69
|
+
const ListItem = class {
|
|
70
|
+
constructor(hostRef) {
|
|
71
|
+
index.registerInstance(this, hostRef);
|
|
72
|
+
this.listType = "list-primary";
|
|
73
|
+
this.linkHref = undefined;
|
|
74
|
+
this.flushBefore = false;
|
|
75
|
+
this.linkTarget = "_self";
|
|
76
|
+
this.hasBeforeHomeIcon = false;
|
|
77
|
+
this.trackerId = undefined;
|
|
78
|
+
this.color = undefined;
|
|
79
|
+
this.styles = undefined;
|
|
80
|
+
this.ariaLabel = "";
|
|
81
|
+
}
|
|
82
|
+
render() {
|
|
83
|
+
const classMap = this.getCssClassMap();
|
|
84
|
+
return (index.h(index.Host, { class: classMap }, this.styles && index.h("style", null, this.styles), index.h("li", { id: this.trackerId }, this.linkHref ? (index.h("a", Object.assign({ class: "item-link", target: this.linkTarget }, (this.linkHref ? { href: this.linkHref } : {}), (this.ariaLabel !== ""
|
|
85
|
+
? { "aria-label": this.ariaLabel }
|
|
86
|
+
: {}), { tabindex: "0" }), index.h("slot", null))) : (index.h("slot", null)))));
|
|
87
|
+
}
|
|
88
|
+
getCssClassMap() {
|
|
89
|
+
let bcEnable = false;
|
|
90
|
+
if (this.hostElement && this.hostElement.parentElement) {
|
|
91
|
+
try {
|
|
92
|
+
bcEnable =
|
|
93
|
+
this.hostElement.parentElement.classList.contains("center") &&
|
|
94
|
+
this.hostElement.parentElement.tagName === "PTC-BREADCRUMB";
|
|
95
|
+
}
|
|
96
|
+
catch (err) {
|
|
97
|
+
console.log(err);
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
return {
|
|
101
|
+
[this.listType]: true,
|
|
102
|
+
["flush-before"]: this.flushBefore ? true : false,
|
|
103
|
+
[this.color]: !!this.color ? true : false,
|
|
104
|
+
["breadcrumb-center"]: bcEnable,
|
|
105
|
+
["mf-listen"]: true,
|
|
106
|
+
};
|
|
107
|
+
}
|
|
108
|
+
get hostElement() { return index.getElement(this); }
|
|
109
|
+
};
|
|
110
|
+
ListItem.style = listItemCss;
|
|
111
|
+
|
|
112
|
+
const ptcBackToTopCss = "h1,h2,h3,h4,h5,h6,p,ul,li,ptc-subnav,ptc-tab-list,ptc-link,ptc-square-card,.hyphenate-text,ptc-footer{word-break:break-word;hyphens:manual;-webkit-hyphens:manual;-moz-hyphens:manual;-ms-hyphens:manual}@supports (hyphenate-limit-chars: 12 3 3){h1,h2,h3,h4,h5,h6,p,ul,li,ptc-subnav,ptc-tab-list,ptc-link,ptc-square-card,.hyphenate-text,ptc-footer{hyphens:auto;-webkit-hyphenate-limit-before:3;-webkit-hyphenate-limit-after:3;hyphenate-limit-chars:12 3 3;hyphenate-limit-lines:2;hyphenate-limit-last:always;hyphenate-limit-zone:6%;-webkit-hyphens:auto;-webkit-hyphenate-limit-before:3;-webkit-hyphenate-limit-after:3;-webkit-hyphenate-limit-chars:12 3 3;-webkit-hyphenate-limit-lines:2;-moz-hyphens:auto;-moz-hyphenate-limit-chars:12 3 3;-moz-hyphenate-limit-lines:2;-ms-hyphens:auto;-ms-hyphenate-limit-chars:12 3 3;-ms-hyphenate-limit-lines:2}}:host{display:block}:host .back-to-top-button{right:24px;width:64px;height:auto;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);padding-top:4px;padding-bottom:4px;z-index:1050}:host .back-to-top-button:hover{opacity:1}:host .back-to-top-button:focus-visible{border-radius:var(--ptc-border-radius-standard);outline:5px solid var(--keyboard-nav-outline)}:host .back-to-top-button-fixed{position:fixed;bottom:140px}:host .back-to-top-button-absolute{position:absolute;bottom:150px}:host .arrow{margin-bottom:5px}";
|
|
113
|
+
|
|
114
|
+
const PtcBackToTop = class {
|
|
115
|
+
constructor(hostRef) {
|
|
116
|
+
index.registerInstance(this, hostRef);
|
|
117
|
+
this.handleScroll = () => {
|
|
118
|
+
const scrollY = window.pageYOffset || document.documentElement.scrollTop;
|
|
119
|
+
const containerHeight = document.querySelector(".ptc-container-relative");
|
|
120
|
+
this.showButton = scrollY > window.innerHeight * 1;
|
|
121
|
+
if (containerHeight) {
|
|
122
|
+
if (this.showButton &&
|
|
123
|
+
scrollY <= containerHeight.clientHeight - window.innerHeight) {
|
|
124
|
+
const btnelement = this.el.shadowRoot.querySelector(".back-to-top-button");
|
|
125
|
+
if (btnelement) {
|
|
126
|
+
if (!btnelement.classList.contains("back-to-top-button-fixed")) {
|
|
127
|
+
btnelement.classList.add("back-to-top-button-fixed");
|
|
128
|
+
}
|
|
129
|
+
if (btnelement.classList.contains("back-to-top-button-absolute")) {
|
|
130
|
+
btnelement.classList.remove("back-to-top-button-absolute");
|
|
131
|
+
}
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
else if (this.showButton &&
|
|
135
|
+
scrollY > containerHeight.clientHeight - window.innerHeight) {
|
|
136
|
+
const btnelement = this.el.shadowRoot.querySelector(".back-to-top-button");
|
|
137
|
+
if (btnelement) {
|
|
138
|
+
if (btnelement.classList.contains("back-to-top-button-fixed")) {
|
|
139
|
+
btnelement.classList.remove("back-to-top-button-fixed");
|
|
140
|
+
}
|
|
141
|
+
if (!btnelement.classList.contains("back-to-top-button-absolute")) {
|
|
142
|
+
btnelement.classList.add("back-to-top-button-absolute");
|
|
143
|
+
}
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
}
|
|
147
|
+
else {
|
|
148
|
+
if (this.showButton) {
|
|
149
|
+
const btnelement = this.el.shadowRoot.querySelector(".back-to-top-button");
|
|
150
|
+
if (btnelement) {
|
|
151
|
+
if (!btnelement.classList.contains("back-to-top-button-fixed")) {
|
|
152
|
+
btnelement.classList.add("back-to-top-button-fixed");
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
}
|
|
156
|
+
}
|
|
157
|
+
};
|
|
158
|
+
this.showButton = false;
|
|
159
|
+
this.backToTop = "Back to Top";
|
|
160
|
+
}
|
|
161
|
+
componentDidLoad() {
|
|
162
|
+
window.addEventListener("scroll", this.handleScroll);
|
|
163
|
+
}
|
|
164
|
+
disconnectedCallback() {
|
|
165
|
+
window.removeEventListener("scroll", this.handleScroll);
|
|
166
|
+
}
|
|
167
|
+
handleClick() {
|
|
168
|
+
this.scrollToTop();
|
|
169
|
+
}
|
|
170
|
+
scrollToTop() {
|
|
171
|
+
if ("scrollBehavior" in document.documentElement.style) {
|
|
172
|
+
// Smooth scrolling is supported
|
|
173
|
+
window.scrollTo({
|
|
174
|
+
top: 0,
|
|
175
|
+
behavior: "smooth",
|
|
176
|
+
});
|
|
177
|
+
}
|
|
178
|
+
else {
|
|
179
|
+
// Fallback for browsers that do not support smooth scrolling
|
|
180
|
+
window.scrollTo(0, 0);
|
|
181
|
+
}
|
|
182
|
+
// Focus the first focusable element after a short delay to ensure scroll completes
|
|
183
|
+
setTimeout(() => {
|
|
184
|
+
const focusableSelector = [
|
|
185
|
+
"a[href]",
|
|
186
|
+
"button:not([disabled])",
|
|
187
|
+
"textarea:not([disabled])",
|
|
188
|
+
'input:not([type="hidden"]):not([disabled])',
|
|
189
|
+
"select:not([disabled])",
|
|
190
|
+
'[tabindex]:not([tabindex="-1"])',
|
|
191
|
+
].join(",");
|
|
192
|
+
const focusableElements = document.querySelectorAll(focusableSelector);
|
|
193
|
+
if (focusableElements.length > 0) {
|
|
194
|
+
focusableElements[1].focus();
|
|
195
|
+
}
|
|
196
|
+
}, 300);
|
|
197
|
+
}
|
|
198
|
+
render() {
|
|
199
|
+
return (index.h(index.Host, null, this.showButton && (index.h("button", { class: "back-to-top-button hyphenate-text", title: this.backToTop }, 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" }, this.backToTop)))));
|
|
200
|
+
}
|
|
201
|
+
get el() { return index.getElement(this); }
|
|
202
|
+
};
|
|
203
|
+
PtcBackToTop.style = ptcBackToTopCss;
|
|
204
|
+
|
|
205
|
+
const ptcBreadcrumbCss = "h1.sc-ptc-breadcrumb,h2.sc-ptc-breadcrumb,h3.sc-ptc-breadcrumb,h4.sc-ptc-breadcrumb,h5.sc-ptc-breadcrumb,h6.sc-ptc-breadcrumb,p.sc-ptc-breadcrumb,ul.sc-ptc-breadcrumb,li.sc-ptc-breadcrumb,ptc-subnav.sc-ptc-breadcrumb,ptc-tab-list.sc-ptc-breadcrumb,ptc-link.sc-ptc-breadcrumb,ptc-square-card.sc-ptc-breadcrumb,.hyphenate-text.sc-ptc-breadcrumb,ptc-footer.sc-ptc-breadcrumb{word-break:break-word;hyphens:manual;-webkit-hyphens:manual;-moz-hyphens:manual;-ms-hyphens:manual}@supports (hyphenate-limit-chars: 12 3 3){h1.sc-ptc-breadcrumb,h2.sc-ptc-breadcrumb,h3.sc-ptc-breadcrumb,h4.sc-ptc-breadcrumb,h5.sc-ptc-breadcrumb,h6.sc-ptc-breadcrumb,p.sc-ptc-breadcrumb,ul.sc-ptc-breadcrumb,li.sc-ptc-breadcrumb,ptc-subnav.sc-ptc-breadcrumb,ptc-tab-list.sc-ptc-breadcrumb,ptc-link.sc-ptc-breadcrumb,ptc-square-card.sc-ptc-breadcrumb,.hyphenate-text.sc-ptc-breadcrumb,ptc-footer.sc-ptc-breadcrumb{hyphens:auto;-webkit-hyphenate-limit-before:3;-webkit-hyphenate-limit-after:3;hyphenate-limit-chars:12 3 3;hyphenate-limit-lines:2;hyphenate-limit-last:always;hyphenate-limit-zone:6%;-webkit-hyphens:auto;-webkit-hyphenate-limit-before:3;-webkit-hyphenate-limit-after:3;-webkit-hyphenate-limit-chars:12 3 3;-webkit-hyphenate-limit-lines:2;-moz-hyphens:auto;-moz-hyphenate-limit-chars:12 3 3;-moz-hyphenate-limit-lines:2;-ms-hyphens:auto;-ms-hyphenate-limit-chars:12 3 3;-ms-hyphenate-limit-lines:2}}.sc-ptc-breadcrumb-h{margin-top:var(--ptc-element-spacing-05);display:flex;align-items:flex-start}.sc-ptc-breadcrumb-h .visually-hidden.sc-ptc-breadcrumb{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0, 0, 0, 0);white-space:nowrap;border:0}.sc-ptc-breadcrumb-h .ptc-breadcrumb-ol.sc-ptc-breadcrumb{position:relative;list-style:none;margin:0;padding:0 0 0 22px}.sc-ptc-breadcrumb-h .ptc-breadcrumb-ol.sc-ptc-breadcrumb li.sc-ptc-breadcrumb{position:relative;display:inline;font-weight:var(--ptc-font-weight-bold);font-size:var(--ptc-font-size-xxx-small);line-height:var(--ptc-line-height-densest);word-break:initial;color:var(--color-white)}.sc-ptc-breadcrumb-h .ptc-breadcrumb-ol.sc-ptc-breadcrumb li.sc-ptc-breadcrumb::before{content:\"/\";margin:0 3px}.sc-ptc-breadcrumb-h .ptc-breadcrumb-ol.sc-ptc-breadcrumb li.home-link.sc-ptc-breadcrumb{position:absolute;left:0;margin-top:-3px}.sc-ptc-breadcrumb-h .ptc-breadcrumb-ol.sc-ptc-breadcrumb li.home-link.sc-ptc-breadcrumb::before{display:none}.sc-ptc-breadcrumb-h .ptc-breadcrumb-ol.sc-ptc-breadcrumb li.sc-ptc-breadcrumb a.sc-ptc-breadcrumb{font-weight:var(--ptc-font-weight-bold) !important;font-size:var(--ptc-font-size-xxx-small) !important;line-height:var(--ptc-line-height-densest);text-decoration:underline;text-decoration-color:transparent;text-underline-offset:2px;text-decoration-thickness:1px;outline:none;transition:text-decoration-color var(--ptc-transition-medium) var(--ptc-ease-inout);color:var(--color-white)}.sc-ptc-breadcrumb-h .ptc-breadcrumb-ol.sc-ptc-breadcrumb li.sc-ptc-breadcrumb a.sc-ptc-breadcrumb:active{transition:none}.sc-ptc-breadcrumb-h .ptc-breadcrumb-ol.sc-ptc-breadcrumb li.sc-ptc-breadcrumb a.sc-ptc-breadcrumb:hover{text-decoration:underline;text-decoration-color:var(--color-green-07);outline:none}.sc-ptc-breadcrumb-h .ptc-breadcrumb-ol.sc-ptc-breadcrumb li.sc-ptc-breadcrumb a.breadcrumb-item-link.sc-ptc-breadcrumb:focus-visible{border-radius:var(--ptc-border-radius-standard);border:2px solid white;outline:5px solid var(--keyboard-nav-outline);display:inline-block}.sc-ptc-breadcrumb-h .ptc-breadcrumb-ol.sc-ptc-breadcrumb li.sc-ptc-breadcrumb a.breadcrumb-item-link.sc-ptc-breadcrumb:focus-visible.dark-mode-link:focus-visible{border-radius:var(--ptc-border-radius-standard);outline:5px solid var(--keyboard-nav-outline)}.white.sc-ptc-breadcrumb-h .ptc-breadcrumb-ol.sc-ptc-breadcrumb li.sc-ptc-breadcrumb{color:var(--color-white)}.white.sc-ptc-breadcrumb-h .ptc-breadcrumb-ol.sc-ptc-breadcrumb li.sc-ptc-breadcrumb a.sc-ptc-breadcrumb{color:var(--color-white)}.black.sc-ptc-breadcrumb-h .ptc-breadcrumb-ol.sc-ptc-breadcrumb li.sc-ptc-breadcrumb{color:var(--color-black)}.black.sc-ptc-breadcrumb-h .ptc-breadcrumb-ol.sc-ptc-breadcrumb li.sc-ptc-breadcrumb a.sc-ptc-breadcrumb{color:var(--color-black)}.ptc-green.sc-ptc-breadcrumb-h .ptc-breadcrumb-ol.sc-ptc-breadcrumb li.sc-ptc-breadcrumb{color:var(--color-green-07)}.ptc-green.sc-ptc-breadcrumb-h .ptc-breadcrumb-ol.sc-ptc-breadcrumb li.sc-ptc-breadcrumb a.sc-ptc-breadcrumb{color:var(--color-green-07)}.gray.sc-ptc-breadcrumb-h .ptc-breadcrumb-ol.sc-ptc-breadcrumb li.sc-ptc-breadcrumb{color:var(--color-gray-06)}.gray.sc-ptc-breadcrumb-h .ptc-breadcrumb-ol.sc-ptc-breadcrumb li.sc-ptc-breadcrumb a.sc-ptc-breadcrumb{color:var(--color-gray-06)}.light-gray.sc-ptc-breadcrumb-h .ptc-breadcrumb-ol.sc-ptc-breadcrumb li.sc-ptc-breadcrumb{color:var(--color-gray-05)}.light-gray.sc-ptc-breadcrumb-h .ptc-breadcrumb-ol.sc-ptc-breadcrumb li.sc-ptc-breadcrumb a.sc-ptc-breadcrumb{color:var(--color-gray-05)}.primary-gray.sc-ptc-breadcrumb-h .ptc-breadcrumb-ol.sc-ptc-breadcrumb li.sc-ptc-breadcrumb{color:var(--color-gray-10)}.primary-gray.sc-ptc-breadcrumb-h .ptc-breadcrumb-ol.sc-ptc-breadcrumb li.sc-ptc-breadcrumb a.sc-ptc-breadcrumb{color:var(--color-gray-10)}.left.sc-ptc-breadcrumb-h{display:flex;justify-content:flex-start;align-items:flex-end}.center.sc-ptc-breadcrumb-h{display:flex;justify-content:center}.center.sc-ptc-breadcrumb-h .ptc-breadcrumb-ol.sc-ptc-breadcrumb{padding:0;text-align:center}.center.sc-ptc-breadcrumb-h .ptc-breadcrumb-ol.sc-ptc-breadcrumb li.sc-ptc-breadcrumb{display:inline-block}.center.sc-ptc-breadcrumb-h .ptc-breadcrumb-ol.sc-ptc-breadcrumb li.home-link.sc-ptc-breadcrumb{position:relative;left:auto;margin-top:0;vertical-align:text-bottom;margin-bottom:-1px}.right.sc-ptc-breadcrumb-h{display:flex;justify-content:flex-end}.remove-top-margin.sc-ptc-breadcrumb-h{margin-top:0px !important}";
|
|
206
|
+
|
|
207
|
+
const PtcBreadcrumb = class {
|
|
208
|
+
constructor(hostRef) {
|
|
209
|
+
index.registerInstance(this, hostRef);
|
|
210
|
+
this.position = undefined;
|
|
211
|
+
this.removeTopMargin = false;
|
|
212
|
+
this.color = "white";
|
|
213
|
+
this.isDarkMode = false;
|
|
214
|
+
this.styles = undefined;
|
|
215
|
+
this.type = undefined;
|
|
216
|
+
}
|
|
217
|
+
componentWillLoad() {
|
|
218
|
+
this.listItems = this.hostElement.querySelectorAll("list-item");
|
|
219
|
+
}
|
|
220
|
+
componentDidLoad() {
|
|
221
|
+
if (this.listItems) {
|
|
222
|
+
this.hostElement.querySelectorAll("list-item").forEach((item) => {
|
|
223
|
+
item.remove();
|
|
224
|
+
});
|
|
225
|
+
}
|
|
226
|
+
}
|
|
227
|
+
render() {
|
|
228
|
+
const classMap = this.getCssClassMap();
|
|
229
|
+
//const childListItems: any = this.listItems[0].getAttribute("list-type") === "home" && this.listItems[0].getAttribute("link-href") !== "" ? Array.from(this.listItems).slice(1) : this.listItems;
|
|
230
|
+
const childListItems = Array.from(this.listItems).filter((item) => item.getAttribute("list-type") === "home" && this.listItems[0].getAttribute("link-href") !== "");
|
|
231
|
+
const hasChildListItems = childListItems.length > 0;
|
|
232
|
+
// Remove childListItems from listItems if any exist
|
|
233
|
+
const filteredArray = hasChildListItems ? Array.from(this.listItems).filter((item) => !childListItems.includes(item)) : Array.from(this.listItems);
|
|
234
|
+
return (index.h(index.Host, { class: classMap }, this.styles && index.h("style", null, this.styles), index.h("nav", { "aria-label": "Breadcrumb" }, index.h("ol", { class: "ptc-breadcrumb-ol" }, index.h("li", { class: "home-link mf-listen", id: "homeLinkID" }, hasChildListItems ? (index.h("a", { href: childListItems[0].getAttribute("link-href"), "aria-label": "Home Link", class: {
|
|
235
|
+
["breadcrumb-item-link"]: true,
|
|
236
|
+
["dark-mode-link"]: this.isDarkMode,
|
|
237
|
+
} }, index.h("icon-asset", { type: "ptc", size: "medium", name: "icon-home", color: this.color })))
|
|
238
|
+
: (index.h("a", { href: "/", "aria-label": "Home Link", class: {
|
|
239
|
+
["breadcrumb-item-link"]: true,
|
|
240
|
+
["dark-mode-link"]: this.isDarkMode,
|
|
241
|
+
} }, index.h("icon-asset", { type: "ptc", size: "medium", name: "icon-home", color: this.color })))), filteredArray.map((item, index$1, array) => {
|
|
242
|
+
const textContent = item.textContent.trim();
|
|
243
|
+
const href = item.getAttribute("link-href");
|
|
244
|
+
return (index.h("li", { key: index$1, class: "mf-listen", id: `breadcrumb` + index$1 + `ID` }, index$1 < array.length - 1 ? (index.h("a", { href: href, target: "_self", class: {
|
|
245
|
+
["breadcrumb-item-link"]: true,
|
|
246
|
+
["dark-mode-link"]: this.isDarkMode,
|
|
247
|
+
} }, textContent)) : (textContent), index.h("span", { class: "visually-hidden" }, "/")));
|
|
248
|
+
})))));
|
|
249
|
+
}
|
|
250
|
+
getCssClassMap() {
|
|
251
|
+
return {
|
|
252
|
+
[this.position]: !!this.position && this.position !== undefined ? true : false,
|
|
253
|
+
["remove-top-margin"]: this.removeTopMargin ? true : false,
|
|
254
|
+
[this.color]: true,
|
|
255
|
+
};
|
|
256
|
+
}
|
|
257
|
+
get hostElement() { return index.getElement(this); }
|
|
258
|
+
};
|
|
259
|
+
PtcBreadcrumb.style = ptcBreadcrumbCss;
|
|
260
|
+
|
|
261
|
+
const ptcButtonCss = "h1,h2,h3,h4,h5,h6,p,ul,li,ptc-subnav,ptc-tab-list,ptc-link,ptc-square-card,.hyphenate-text,ptc-footer{word-break:break-word;hyphens:manual;-webkit-hyphens:manual;-moz-hyphens:manual;-ms-hyphens:manual}@supports (hyphenate-limit-chars: 12 3 3){h1,h2,h3,h4,h5,h6,p,ul,li,ptc-subnav,ptc-tab-list,ptc-link,ptc-square-card,.hyphenate-text,ptc-footer{hyphens:auto;-webkit-hyphenate-limit-before:3;-webkit-hyphenate-limit-after:3;hyphenate-limit-chars:12 3 3;hyphenate-limit-lines:2;hyphenate-limit-last:always;hyphenate-limit-zone:6%;-webkit-hyphens:auto;-webkit-hyphenate-limit-before:3;-webkit-hyphenate-limit-after:3;-webkit-hyphenate-limit-chars:12 3 3;-webkit-hyphenate-limit-lines:2;-moz-hyphens:auto;-moz-hyphenate-limit-chars:12 3 3;-moz-hyphenate-limit-lines:2;-ms-hyphens:auto;-ms-hyphenate-limit-chars:12 3 3;-ms-hyphenate-limit-lines:2}}button.disabled{pointer-events:none;opacity:0.6}button{background-color:var(--color-gray-10);display:inline-block;border-style:solid;border-width:1px;white-space:normal;position:relative;text-decoration:none;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;cursor:pointer;padding:9.4px 17.5px;border-radius:var(--ptc-border-radius-standard)}button.reveal-down .content{transition:opacity var(--ptc-transition-medium) var(--ptc-ease-out);opacity:0;font-size:var(--ptc-font-size-xx-small)}button.reveal-down .icon-wrapper{position:relative;display:flex;align-items:center;justify-content:center;align-content:center;height:16px}button.reveal-down .icon-wrapper .icon{transition:top var(--ptc-transition-fast) var(--ptc-ease-out);position:absolute;display:inline-block;top:-12px}button:hover.reveal-down .content{opacity:1}button:hover.reveal-down .icon-wrapper .icon{top:4px}button.animation-right ::slotted([slot=slot-after-text]),button.animation-right ::slotted([slot=slot-before-text]),button.animation-down ::slotted([slot=slot-after-text]),button.animation-down ::slotted([slot=slot-before-text]){transition:transform var(--ptc-transition-medium) var(--ptc-ease-inout);position:relative;display:inline-block}button:hover.animation-right ::slotted([slot=slot-after-text]),button:hover.animation-right ::slotted([slot=slot-before-text]){transform:translateX(var(--ptc-element-spacing-02))}button:hover.animation-down ::slotted([slot=slot-after-text]),button:hover.animation-down ::slotted([slot=slot-before-text]){transform:translateY(var(--ptc-element-spacing-02))}button span{font-family:var(--ptc-font-latin);font-size:var(--ptc-font-size-small);font-weight:bold;line-height:var(--ptc-line-height-densest)}button.left{text-align:left}button.right{text-align:right}button.center{text-align:center}.icon-left ::slotted([slot=slot-before-text]){margin-right:var(--ptc-element-spacing-01)}.icon-right ::slotted([slot=slot-after-text]){margin-left:var(--ptc-element-spacing-01)}.blackgrey{box-shadow:var(--ptc-shadow-x-small);border:solid 1px var(--color-gray-10);background-image:linear-gradient(285deg, var(--color-gray-10) 155%, var(--color-gray-07) 62%)}.blackgrey:hover{box-shadow:var(--ptc-shadow-x-large)}.blackgrey span{color:var(--color-white)}.turtlegreen{box-shadow:var(--ptc-shadow-x-small);border:solid 1px var(--color-green-07);background-image:linear-gradient(285deg, var(--color-green-07) 155%, var(--color-green-07) 62%)}.turtlegreen:hover{box-shadow:var(--ptc-shadow-x-large)}.turtlegreen span{color:var(--color-white)}.offwhite{box-shadow:var(--ptc-shadow-x-small);border:solid 1px var(--color-gray-10);background-image:linear-gradient(to right, var(--color-white), var(--color-gray-02), var(--color-gray-01))}.offwhite:hover{box-shadow:var(--ptc-shadow-x-large)}.offwhite span{color:var(--color-gray-10)}.legacy-green{margin-left:10px;padding:10px 20px;margin-bottom:var(--ptc-element-spacing-01);margin-top:var(--ptc-element-spacing-01);box-shadow:var(--ptc-shadow-large);border:solid 2.5px var(--color-green-08);background-image:linear-gradient(to right, var(--color-green-06), var(--color-green-08))}.legacy-green:after{position:absolute;content:\"\";top:-1px;left:0;bottom:0;right:0;width:100%;height:103%;background-image:linear-gradient(to right, var(--color-green-08), var(--color-green-06));opacity:0;transition:opacity var(--ptc-transition-x-slow) var(--ptc-ease-inout);border-radius:2px}.legacy-green:hover{box-shadow:var(--ptc-shadow-x-large)}.legacy-green:hover span{color:var(--color-white)}.legacy-green:hover:after{opacity:1}.legacy-green span{font-family:var(--ptc-font-secondary-latin);color:var(--color-white);z-index:100;position:relative;text-transform:uppercase;font-weight:var(--ptc-font-weight-bold);letter-spacing:var(--ptc-letter-spacing-normal);font-size:var(--ptc-font-size-x-small)}@media only screen and (min-width: 768px){.legacy-green span{font-size:var(--ptc-font-size-small);letter-spacing:var(--ptc-letter-spacing-loose)}}.legacy-green icon-asset{display:inline}a{border-style:solid;border-width:1px;position:relative;text-decoration:none;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;padding:9.4px 17.5px;border-radius:var(--ptc-border-radius-standard);display:inline-block;position:relative}a.animation-right ::slotted([slot=slot-after-text]),a.animation-right ::slotted([slot=slot-before-text]),a.animation-down ::slotted([slot=slot-after-text]),a.animation-down ::slotted([slot=slot-before-text]){transition:all var(--ptc-ease-inout) var(--ptc-transition-medium);position:relative;display:inline-block;margin-left:5px}a:hover.animation-right ::slotted([slot=slot-after-text]),a:hover.animation-right ::slotted([slot=slot-before-text]){transform:translateX(var(--ptc-element-spacing-02))}a:hover.animation-down ::slotted([slot=slot-after-text]),a:hover.animation-down ::slotted([slot=slot-before-text]){transform:translateY(var(--ptc-element-spacing-02))}a.left{text-align:left}a.right{text-align:right}a.center{text-align:center}.nav{font-family:var(--ptc-font-latin);background-color:var(--color-gray-10);border-radius:var(--ptc-border-radius-standard);border:1px solid var(--color-white);border-bottom-style:solid;border-bottom-width:1px;box-sizing:border-box;color:var(--color-white);display:inline-block;font-size:var(--ptc-font-size-xx-small);font-stretch:100%;font-weight:var(--ptc-font-weight-bold);line-height:var(--ptc-line-height-loose);list-style:none;padding:3px var(--ptc-element-spacing-04);position:relative;text-align:center;text-decoration:none;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;transition:background-color var(--ptc-transition-medium) var(--ptc-ease-inout)}.nav:focus-visible{border-radius:4px !important;border:2px solid #fff !important;outline:5px solid #003dd6 !important;background-color:transparent !important;outline-offset:0px !important}.nav:focus{text-decoration:none;border:solid 2px transparent;outline:none}.nav:hover{background-color:var(--color-gray-12)}.nav-store-btn{font-family:var(--ptc-font-latin);background-color:var(--color-green-07);border-radius:var(--ptc-border-radius-standard);border:1px solid var(--color-green-07);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-store-btn:focus-visible{border-radius:4px !important;border:2px solid #fff !important;outline:5px solid #003dd6 !important;background-color:var(--color-green-07) !important;outline-offset:0px !important}.nav-store-btn:focus{text-decoration:none;border:solid 2px transparent;outline:none}.nav-store-btn:hover{background-color:var(--color-green-08)}.nav-store-btn:active{background-color:var(--color-green-09);transition:none}.ptc-primary,.ptc-quaternary,.ptc-secondary,.ptc-tertiary,.icon-toggle{padding:var(--ptc-font-size-xx-small) var(--ptc-font-size-medium);transition:background-color var(--ptc-ease-inout) var(--ptc-transition-medium);line-height:20px}.ptc-primary.disabled,.ptc-quaternary.disabled,.ptc-secondary.disabled,.ptc-tertiary.disabled,.icon-toggle.disabled{pointer-events:none;border-color:var(--color-gray-03);background:var(--color-gray-02)}.ptc-primary.disabled span,.ptc-quaternary.disabled span,.ptc-secondary.disabled span,.ptc-tertiary.disabled span,.icon-toggle.disabled span{color:var(--color-gray-03)}.ptc-primary.disabled ::slotted([slot=slot-after-text]),.ptc-quaternary.disabled ::slotted([slot=slot-after-text]),.ptc-secondary.disabled ::slotted([slot=slot-after-text]),.ptc-tertiary.disabled ::slotted([slot=slot-after-text]),.icon-toggle.disabled ::slotted([slot=slot-after-text]){fill:var(--color-gray-03) !important}.ptc-primary:focus-visible,.ptc-quaternary:focus-visible,.ptc-secondary:focus-visible,.ptc-tertiary:focus-visible,.icon-toggle:focus-visible{border-radius:var(--ptc-border-radius-standard);outline:5px solid var(--keyboard-nav-outline)}.ptc-primary span,.ptc-quaternary span,.ptc-secondary span,.ptc-tertiary span,.icon-toggle span{font-family:var(--ptc-font-latin);font-weight:var(--ptc-font-weight-bold);font-size:var(--ptc-font-size-small);line-height:var(--ptc-line-height-densest);letter-spacing:normal}.ptc-primary.small,.ptc-quaternary.small,.ptc-secondary.small,.ptc-tertiary.small,.icon-toggle.small{padding:var(--ptc-element-spacing-03) var(--ptc-element-spacing-04)}.ptc-primary.small span,.ptc-quaternary.small span,.ptc-secondary.small span,.ptc-tertiary.small span,.icon-toggle.small span{font-size:var(--ptc-font-size-xx-small)}.ptc-primary.medium,.ptc-quaternary.medium,.ptc-secondary.medium,.ptc-tertiary.medium,.icon-toggle.medium{padding:14px 20px}.ptc-primary.medium span,.ptc-quaternary.medium span,.ptc-secondary.medium span,.ptc-tertiary.medium span,.icon-toggle.medium span{font-size:var(--ptc-font-size-small)}.ptc-primary.large,.ptc-quaternary.large,.ptc-secondary.large,.ptc-tertiary.large,.icon-toggle.large{padding:var(--ptc-element-spacing-04) var(--ptc-element-spacing-06)}.ptc-primary.large span,.ptc-quaternary.large span,.ptc-secondary.large span,.ptc-tertiary.large span,.icon-toggle.large span{font-size:var(--ptc-font-size-large)}.ptc-primary.acc-alt-style:focus-visible,.ptc-quaternary.acc-alt-style:focus-visible,.ptc-secondary.acc-alt-style:focus-visible,.ptc-tertiary.acc-alt-style:focus-visible,.icon-toggle.acc-alt-style:focus-visible{border-radius:var(--ptc-border-radius-standard);border:2px solid white;outline:5px solid var(--keyboard-nav-outline)}.ptc-primary{background:var(--color-gray-12);border:2px solid var(--color-green-07);border-radius:var(--ptc-border-radius-standard)}.ptc-primary:hover{background-color:var(--color-gray-10)}.ptc-primary:active{background-color:var(--color-black);transition:none}.ptc-primary span{color:var(--color-white)}.ptc-primary ::slotted([slot=slot-after-text]){fill:var(--color-white) !important}.ptc-secondary{background:var(--color-gray-12);border:2px solid var(--color-gray-08);border-radius:var(--ptc-border-radius-standard)}.ptc-secondary:hover{background-color:var(--color-gray-10)}.ptc-secondary:active{background-color:var(--color-black);transition:none}.ptc-secondary span{color:var(--color-white)}.ptc-secondary ::slotted([slot=slot-after-text]){fill:var(--color-white) !important}.ptc-tertiary{background:var(--color-white);border:2px solid var(--color-gray-10);border-radius:var(--ptc-border-radius-standard)}.ptc-tertiary:hover{background-color:var(--color-gray-02)}.ptc-tertiary:active{background-color:var(--color-gray-03);transition:none}.ptc-tertiary span{color:var(--color-gray-10)}.ptc-tertiary ::slotted([slot=slot-after-text]){fill:var(--color-gray-10) !important}.ptc-tertiary ::slotted(a){color:var(--color-gray-10) !important;text-decoration-line:none !important}.ptc-quaternary{background:var(--color-green-07);border:2px solid var(--color-green-07);border-radius:var(--ptc-border-radius-standard);cursor:pointer}.ptc-quaternary:hover{background-color:var(--color-green-08)}.ptc-quaternary:active{background-color:var(--color-green-09);transition:none}.ptc-quaternary span{color:var(--color-white)}.ptc-quaternary ::slotted([slot=slot-after-text]){fill:var(--color-white) !important}.icon-toggle{background:var(--color-white);border:1px solid var(--color-gray-10);border-radius:var(--ptc-border-radius-standard);padding:0;height:2.125rem;width:2.125rem;box-shadow:var(--ptc-shadow-medium)}.icon-toggle:hover{background-color:var(--color-gray-02)}.icon-toggle:active{transition:none;background-color:var(--color-gray-03)}.icon-toggle.active{background-color:var(--color-gray-04)}.icon-toggle.active:hover{background-color:var(--color-gray-05)}.icon-toggle.active:active{transition:none;background-color:var(--color-gray-03)}.icon-toggle:focus{outline:2px solid var(--color-blue-07);outline-offset:1px}.icon-toggle span{color:var(--color-gray-10);padding:0}.icon-toggle ::slotted([slot=slot-after-text]){fill:var(--color-gray-10) !important}.icon-toggle ::slotted(icon-asset){display:block;margin:auto;height:18px;width:18px}.clear-search{border:none;padding:0px;line-height:var(----ptc-line-height-densest);background-color:transparent}.clear-search:hover{text-decoration:underline;text-decoration-color:var(--color-white)}.clear-search span{color:var(--color-white);font-weight:var(--ptc-font-weight-semibold);font-size:var(--ptc-font-size-x-small);-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}.tracker-div{display:inline;display:inline-block}.focus-state-dark-background:focus-visible{border-radius:var(--ptc-border-radius-standard);border:2px solid white;outline:5px solid var(--keyboard-nav-outline)}.secondary-cta-light,.secondary-cta-dark,.primary-cta{padding:0.875rem 1.25rem;font-size:var(--ptc-font-size-small);font-style:normal;font-weight:var(--ptc-font-weight-bold);line-height:var(--ptc-line-height-densest);color:var(--color-white);border:2px solid transparent;text-decoration:none}.medium.secondary-cta-light,.medium.secondary-cta-dark,.medium.primary-cta{padding:0.75rem 1rem}.medium.secondary-cta-light span,.medium.secondary-cta-dark span,.medium.primary-cta span{font-size:var(--ptc-font-size-xx-small);font-weight:var(--ptc-font-weight-extrabold)}.small.secondary-cta-light,.small.secondary-cta-dark,.small.primary-cta{padding:0.5rem 0.75rem}.small.secondary-cta-light span,.small.secondary-cta-dark span,.small.primary-cta span{font-size:var(--ptc-font-size-xx-small);font-weight:var(--ptc-font-weight-extrabold)}.disabled.secondary-cta-light,.disabled.secondary-cta-dark,.disabled.primary-cta{pointer-events:none;color:var(--color-gray-03);border-color:var(--color-gray-03);background-color:var(--color-gray-02)}.disabled.secondary-cta-light icon-asset svg,.disabled.secondary-cta-dark icon-asset svg,.disabled.primary-cta icon-asset svg{fill:var(--color-gray-03)}.disabled.secondary-cta-light:focus-visible,.disabled.secondary-cta-dark:focus-visible,.disabled.primary-cta:focus-visible{background-color:var(--color-gray-02)}.secondary-cta-light:focus-visible,.secondary-cta-dark:focus-visible,.primary-cta:focus-visible{border-radius:var(--ptc-border-radius-standard);border:2px solid white;outline:5px solid var(--keyboard-nav-outline)}.full-width.secondary-cta-light,.full-width.secondary-cta-dark,.full-width.primary-cta{width:100%}.secondary-cta-light .cta-content-wrap,.secondary-cta-dark .cta-content-wrap,.primary-cta .cta-content-wrap{display:flex;justify-content:center;align-items:center;text-align:center}.secondary-cta-light .cta-content-wrap icon-asset,.secondary-cta-dark .cta-content-wrap icon-asset,.primary-cta .cta-content-wrap icon-asset{margin-right:8px;line-height:0}.secondary-cta-light .cta-content-wrap icon-asset+span,.secondary-cta-dark .cta-content-wrap icon-asset+span,.primary-cta .cta-content-wrap icon-asset+span{text-align:left}.primary-cta{background-color:var(--color-green-07);border-color:var(--color-green-07);transition:all 0.2s ease}.primary-cta:hover{background-color:var(--color-green-08)}.primary-cta:active{background-color:var(--color-green-09)}.primary-cta:focus-visible{background-color:var(--color-green-07)}.secondary-cta-dark{background-color:var(--color-gray-12);border-color:var(--color-gray-08)}.secondary-cta-dark:hover{background-color:var(--color-gray-10)}.secondary-cta-dark:active{background-color:var(--color-black)}.secondary-cta-dark:focus-visible{background-color:var(--color-gray-12)}.secondary-cta-light{background-color:var(--color-white);border-color:var(--color-gray-10);color:var(--color-gray-10)}.secondary-cta-light:hover{background-color:var(--color-gray-02)}.secondary-cta-light:active{background-color:var(--color-gray-03)}.secondary-cta-light:focus-visible{background-color:var(--color-white)}";
|
|
262
|
+
|
|
263
|
+
const PtcButton = class {
|
|
264
|
+
constructor(hostRef) {
|
|
265
|
+
index.registerInstance(this, hostRef);
|
|
266
|
+
this.clickEvent = index.createEvent(this, "clickEvent", 7);
|
|
267
|
+
this.disabled = false;
|
|
268
|
+
this.active = false;
|
|
269
|
+
this.type = "button";
|
|
270
|
+
this.color = "ptc-primary";
|
|
271
|
+
this.iconAnimation = "";
|
|
272
|
+
this.iconPosition = "icon-right";
|
|
273
|
+
this.linkHref = undefined;
|
|
274
|
+
this.linkTitle = undefined;
|
|
275
|
+
this.target = "_self";
|
|
276
|
+
this.rel = undefined;
|
|
277
|
+
this.tabNav = 0;
|
|
278
|
+
this.styles = undefined;
|
|
279
|
+
this.textAlign = undefined;
|
|
280
|
+
this.enableAccessibilityAltStyle = false;
|
|
281
|
+
this.size = undefined;
|
|
282
|
+
this.buttonTitle = undefined;
|
|
283
|
+
this.ariaLabel = "";
|
|
284
|
+
this.seoCompatibilityMode = false;
|
|
285
|
+
this.maintainContent = false;
|
|
286
|
+
this.trackerId = undefined;
|
|
287
|
+
this.darkFocusState = false;
|
|
288
|
+
this.ctaWidth = "default";
|
|
289
|
+
}
|
|
290
|
+
clickEventHandler() {
|
|
291
|
+
this.clickEvent.emit();
|
|
292
|
+
}
|
|
293
|
+
componentWillLoad() {
|
|
294
|
+
utils.CheckDarkFocusState(this, this.el);
|
|
295
|
+
}
|
|
296
|
+
seoCompRender() {
|
|
297
|
+
const classMap = this.getCssClassMap();
|
|
298
|
+
const Tag = !!this.linkHref ? "a" : "button";
|
|
299
|
+
const [TagType, firstChild] = utils.getSeoTagType(this.el, Tag);
|
|
300
|
+
const html = firstChild && firstChild.innerHTML;
|
|
301
|
+
if (this.el == firstChild) {
|
|
302
|
+
this.el.innerHTML = "";
|
|
303
|
+
}
|
|
304
|
+
if (this.maintainContent) {
|
|
305
|
+
this.el.innerHTML = html;
|
|
306
|
+
}
|
|
307
|
+
return (index.h(index.Host, null, this.styles && index.h("style", null, this.styles), index.h("div", Object.assign({ id: this.trackerId, class: "tracker-div mf-listen" }, (this.ctaWidth === "full-width"
|
|
308
|
+
? { style: { display: "block" } }
|
|
309
|
+
: {})), index.h(TagType, Object.assign({ class: classMap, onClick: this.clickEventHandler.bind(this) }, (!!this.linkHref ? { href: this.linkHref } : {}), (!this.linkHref ? { type: this.type } : {}), (!!this.target && !!this.linkHref
|
|
310
|
+
? { target: this.target }
|
|
311
|
+
: {}), (!!this.rel && !!this.linkHref
|
|
312
|
+
? { rel: this.rel }
|
|
313
|
+
: {}), (!!this.linkHref
|
|
314
|
+
? {
|
|
315
|
+
title: this.linkTitle
|
|
316
|
+
? this.linkTitle
|
|
317
|
+
: this.linkHref,
|
|
318
|
+
}
|
|
319
|
+
: {}), (!!this.tabNav
|
|
320
|
+
? { tabindex: -1 }
|
|
321
|
+
: { tabindex: 0 }), { title: this.buttonTitle }, (this.ariaLabel !== ""
|
|
322
|
+
? { ariaLabel: this.ariaLabel }
|
|
323
|
+
: {})), index.h("span", { innerHTML: html, class: "cta-content-wrap" }, index.h("slot", { name: "slot-before-text" }), index.h("slot", { name: "slot-after-text" }))))));
|
|
324
|
+
}
|
|
325
|
+
standardRender() {
|
|
326
|
+
const classMap = this.getCssClassMap();
|
|
327
|
+
const Tag = !!this.linkHref ? "a" : "button";
|
|
328
|
+
return (index.h(index.Host, null, this.styles && index.h("style", null, this.styles), index.h("div", { id: this.trackerId, class: "tracker-div mf-listen" }, index.h(Tag, Object.assign({ class: classMap, onClick: this.clickEventHandler.bind(this) }, (!!this.linkHref ? { href: this.linkHref } : {}), (!this.linkHref ? { type: this.type } : {}), (!!this.target && !!this.linkHref
|
|
329
|
+
? { target: this.target }
|
|
330
|
+
: {}), (!!this.rel && !!this.linkHref
|
|
331
|
+
? { rel: this.rel }
|
|
332
|
+
: {}), (!!this.linkHref
|
|
333
|
+
? {
|
|
334
|
+
title: this.linkTitle
|
|
335
|
+
? this.linkTitle
|
|
336
|
+
: this.linkHref,
|
|
337
|
+
}
|
|
338
|
+
: {}), (!!this.tabNav
|
|
339
|
+
? { tabindex: -1 }
|
|
340
|
+
: { tabindex: 0 }), { title: this.buttonTitle }, (this.ariaLabel !== ""
|
|
341
|
+
? { ariaLabel: this.ariaLabel }
|
|
342
|
+
: {})), this.iconAnimation == "reveal-down" ? (index.h("span", null, index.h("div", { class: "content" }, index.h("slot", null)), index.h("div", { class: "icon-wrapper" }, index.h("div", { class: "icon" }, index.h("slot", { name: "slot-after-text" }))))) : (index.h("span", null, index.h("slot", { name: "slot-before-text" }), index.h("slot", null), index.h("slot", { name: "slot-after-text" })))))));
|
|
343
|
+
}
|
|
344
|
+
render() {
|
|
345
|
+
if (this.seoCompatibilityMode) {
|
|
346
|
+
return this.seoCompRender();
|
|
347
|
+
}
|
|
348
|
+
else {
|
|
349
|
+
return this.standardRender();
|
|
350
|
+
}
|
|
351
|
+
}
|
|
352
|
+
getCssClassMap() {
|
|
353
|
+
return {
|
|
354
|
+
[this.color]: true,
|
|
355
|
+
[this.iconAnimation]: true,
|
|
356
|
+
[this.iconPosition]: true,
|
|
357
|
+
["disabled"]: this.disabled ? true : false,
|
|
358
|
+
["active"]: this.active ? true : false,
|
|
359
|
+
[this.textAlign]: true,
|
|
360
|
+
[this.size]: true,
|
|
361
|
+
["acc-alt-style"]: this.enableAccessibilityAltStyle,
|
|
362
|
+
["focus-state-dark-background"]: this.darkFocusState,
|
|
363
|
+
[this.ctaWidth]: true,
|
|
364
|
+
};
|
|
365
|
+
}
|
|
366
|
+
get el() { return index.getElement(this); }
|
|
367
|
+
};
|
|
368
|
+
PtcButton.style = ptcButtonCss;
|
|
369
|
+
|
|
370
|
+
const ptcParaCss = "h1,h2,h3,h4,h5,h6,p,ul,li,ptc-subnav,ptc-tab-list,ptc-link,ptc-square-card,.hyphenate-text,ptc-footer{word-break:break-word;hyphens:manual;-webkit-hyphens:manual;-moz-hyphens:manual;-ms-hyphens:manual}@supports (hyphenate-limit-chars: 12 3 3){h1,h2,h3,h4,h5,h6,p,ul,li,ptc-subnav,ptc-tab-list,ptc-link,ptc-square-card,.hyphenate-text,ptc-footer{hyphens:auto;-webkit-hyphenate-limit-before:3;-webkit-hyphenate-limit-after:3;hyphenate-limit-chars:12 3 3;hyphenate-limit-lines:2;hyphenate-limit-last:always;hyphenate-limit-zone:6%;-webkit-hyphens:auto;-webkit-hyphenate-limit-before:3;-webkit-hyphenate-limit-after:3;-webkit-hyphenate-limit-chars:12 3 3;-webkit-hyphenate-limit-lines:2;-moz-hyphens:auto;-moz-hyphenate-limit-chars:12 3 3;-moz-hyphenate-limit-lines:2;-ms-hyphens:auto;-ms-hyphenate-limit-chars:12 3 3;-ms-hyphenate-limit-lines:2}}:host{position:relative;z-index:1}:host .tooltip-enabled{position:relative}:host(.white){color:var(--color-white)}:host(.z-1){z-index:1}:host(.z-2){z-index:2}:host(.z-3){z-index:3}:host(.z-99){z-index:99}:host(.z-999){z-index:999}:host(.z-auto){z-index:auto}p.default{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;}p.main{text-shadow:0 3px 6px var(--color-white);line-height:var(--ptc-line-height-dense);color:var(--color-gray-10)}p.primary-grey{color:var(--color-gray-10)}p.primary-green{color:var(--color-green-06)}p.gray-darker{color:var(--color-gray-11)}p.white{color:var(--color-white)}p.xxx-small{font-size:var(--ptc-font-size-xxx-small)}p.xx-small{font-size:var(--ptc-font-size-xx-small)}p.x-small{font-size:var(--ptc-font-size-x-small)}p.small{font-size:var(--ptc-font-size-small)}p.medium{font-size:var(--ptc-font-size-medium)}p.large{font-size:var(--ptc-font-size-large)}p.x-large{font-size:var(--ptc-font-size-x-large)}p.xx-large{font-size:var(--ptc-font-size-xx-large)}p.xxx-large{font-size:var(--ptc-font-size-xxx-large)}p.xxxx-large{font-size:var(--ptc-font-size-xxxx-large)}p.htmlquote-para{font-size:var(--ptc-font-size-small)}@media only screen and (min-width: 992px){p.htmlquote-para{font-size:var(--ptc-font-size-large)}}p.w-3{font-weight:var(--ptc-font-weight-thin)}p.w-4{font-weight:var(--ptc-font-weight-regular)}p.w-5{font-weight:var(--ptc-font-weight-medium)}p.w-6{font-weight:var(--ptc-font-weight-semibold)}p.w-7{font-weight:var(--ptc-font-weight-bold)}p.w-8{font-weight:var(--ptc-font-weight-extrabold)}p.w-8 ::slotted(a){font-weight:var(--ptc-font-weight-extrabold) !important}p.w-9{font-weight:var(--ptc-font-weight-black)}p.w-9 ::slotted(a){font-weight:var(--ptc-font-weight-black) !important}p.margin-flush{margin-top:0;margin-bottom:0}p.margin-top-1{margin-top:var(--ptc-element-spacing-01);margin-bottom:0}p.margin-top-2{margin-top:var(--ptc-element-spacing-02);margin-bottom:0}p.margin-top-3{margin-top:var(--ptc-element-spacing-03);margin-bottom:0}p.margin-top-4{margin-top:var(--ptc-element-spacing-04);margin-bottom:0}p.margin-top-5{margin-top:var(--ptc-element-spacing-05);margin-bottom:0}p.margin-top-6{margin-top:var(--ptc-element-spacing-06);margin-bottom:0}p.margin-bottom-1{margin-bottom:var(--ptc-element-spacing-01);margin-top:0}p.margin-bottom-2{margin-bottom:var(--ptc-element-spacing-02);margin-top:0}p.margin-bottom-3{margin-bottom:var(--ptc-element-spacing-03);margin-top:0}p.margin-bottom-4{margin-bottom:var(--ptc-element-spacing-04);margin-top:0}p.margin-bottom-5{margin-bottom:var(--ptc-element-spacing-05);margin-top:0}p.margin-bottom-6{margin-bottom:var(--ptc-element-spacing-06);margin-top:0}p.margin-1{margin-top:var(--ptc-element-spacing-01);margin-bottom:var(--ptc-element-spacing-01)}p.margin-2{margin-top:var(--ptc-element-spacing-02);margin-bottom:var(--ptc-element-spacing-02)}p.margin-3{margin-top:var(--ptc-element-spacing-03);margin-bottom:var(--ptc-element-spacing-03)}p.margin-4{margin-top:var(--ptc-element-spacing-04);margin-bottom:var(--ptc-element-spacing-04)}p.margin-5{margin-top:var(--ptc-element-spacing-05);margin-bottom:var(--ptc-element-spacing-05)}p.margin-6{margin-top:var(--ptc-element-spacing-06);margin-bottom:var(--ptc-element-spacing-06)}p.line-height-densest{line-height:var(--ptc-line-height-densest)}p.line-height-denser{line-height:var(--ptc-line-height-denser)}p.line-height-p{line-height:var(--ptc-line-height-p)}p.line-height-dense{line-height:var(--ptc-line-height-dense)}p.line-height-normal{line-height:var(--ptc-line-height-normal)}p.line-height-loose{line-height:var(--ptc-line-height-loose)}p.line-height-looser{line-height:var(--ptc-line-height-looser)}p.left{text-align:left}p.right{text-align:right}p.center{text-align:center}p.justify{text-align:justify}p.right-768above{text-align:left}@media (min-width: 768px){p.right-768above{text-align:right}}p.announcement{text-transform:uppercase;font-size:var(--ptc-font-size-small);color:var(--color-gray-07);line-height:var(--ptc-line-height-looser);letter-spacing:var(--ptc-letter-spacing-loose)}p.ellipsis-boxing{display:-webkit-box;-webkit-line-clamp:1;-webkit-box-orient:vertical;overflow:hidden;text-overflow:ellipsis;overflow-wrap:break-word}p.line-clamp-title{display:-webkit-box !important;-webkit-box-orient:vertical;overflow:hidden}@media (max-width: 768px){:host(.hide-tooltip-on-mobile) .line-clamp-title{-webkit-line-clamp:initial !important}}";
|
|
371
|
+
|
|
372
|
+
const PtcPara = class {
|
|
373
|
+
constructor(hostRef) {
|
|
374
|
+
index.registerInstance(this, hostRef);
|
|
375
|
+
this.fontSize = "x-small";
|
|
376
|
+
this.fontWeight = "w-4";
|
|
377
|
+
this.paraStyle = "default";
|
|
378
|
+
this.paraColor = "primary-grey";
|
|
379
|
+
this.paraLineH = "line-height-normal";
|
|
380
|
+
this.paraMargin = undefined;
|
|
381
|
+
this.paraAlign = undefined;
|
|
382
|
+
this.ellipsisLineCutoff = undefined;
|
|
383
|
+
this.paraZIndex = undefined;
|
|
384
|
+
this.styles = undefined;
|
|
385
|
+
this.seoCompatibilityMode = false;
|
|
386
|
+
this.tooltipZIndex = "auto";
|
|
387
|
+
this.tooltipPosition = "bottom";
|
|
388
|
+
this.tooltipTheme = "standard";
|
|
389
|
+
this.enableTooltip = false;
|
|
390
|
+
this.maxChars = undefined;
|
|
391
|
+
this.maxLines = undefined;
|
|
392
|
+
this.hideTooltipOnMobile = false;
|
|
393
|
+
this.ismob = undefined;
|
|
394
|
+
this.noOverflow = false;
|
|
395
|
+
this.tooltipWidth = "default";
|
|
396
|
+
}
|
|
397
|
+
// Tooltip Properties ends
|
|
398
|
+
render() {
|
|
399
|
+
if (this.seoCompatibilityMode) {
|
|
400
|
+
utils.seoSlotReset(this.el);
|
|
401
|
+
}
|
|
402
|
+
return this.standardRender();
|
|
403
|
+
}
|
|
404
|
+
//tooltip code
|
|
405
|
+
getSortedText(content) {
|
|
406
|
+
if (!this.enableTooltip)
|
|
407
|
+
return;
|
|
408
|
+
const trimmedContent = content.trim();
|
|
409
|
+
const shouldTruncate = trimmedContent.length > this.maxChars && !this.maxLines;
|
|
410
|
+
return shouldTruncate
|
|
411
|
+
? `${trimmedContent.slice(0, this.maxChars).trimEnd()}\u00A0\u2026`
|
|
412
|
+
: trimmedContent;
|
|
413
|
+
}
|
|
414
|
+
componentDidLoad() {
|
|
415
|
+
if (this.hideTooltipOnMobile) {
|
|
416
|
+
this.el.classList.add("hide-tooltip-on-mobile");
|
|
417
|
+
}
|
|
418
|
+
this.el.addEventListener("mouseenter", () => {
|
|
419
|
+
this.toggleTitleTooltip(true);
|
|
420
|
+
});
|
|
421
|
+
this.el.addEventListener("mouseleave", () => {
|
|
422
|
+
this.toggleTitleTooltip(false);
|
|
423
|
+
});
|
|
424
|
+
if (this.enableTooltip) {
|
|
425
|
+
let paraContent = this.el.innerText || this.el.textContent;
|
|
426
|
+
this.tooltipText = paraContent.trim();
|
|
427
|
+
this.el.innerText = this.getSortedText(paraContent);
|
|
428
|
+
}
|
|
429
|
+
}
|
|
430
|
+
toggleTitleTooltip(show) {
|
|
431
|
+
const tooltipClass = "tooltip-box";
|
|
432
|
+
const existingTooltip = this.el.querySelector(`.${tooltipClass}`);
|
|
433
|
+
const text = this.el.shadowRoot.querySelectorAll(".line-clamp-title");
|
|
434
|
+
let maxLinesShowCheck = false;
|
|
435
|
+
if (text) {
|
|
436
|
+
text.forEach((t) => {
|
|
437
|
+
maxLinesShowCheck = t.scrollHeight > t.clientHeight;
|
|
438
|
+
});
|
|
439
|
+
}
|
|
440
|
+
const ifCharExceeds = this.maxChars
|
|
441
|
+
? this.tooltipText.length > this.maxChars && !this.maxLines
|
|
442
|
+
: false;
|
|
443
|
+
const ifLinesExceeds = this.maxLines && maxLinesShowCheck;
|
|
444
|
+
if (show && this.enableTooltip) {
|
|
445
|
+
if (((!existingTooltip && ifCharExceeds) ||
|
|
446
|
+
(!existingTooltip && ifLinesExceeds)) &&
|
|
447
|
+
!this.noOverflow) {
|
|
448
|
+
const tooltipMarkup = document.createElement("div");
|
|
449
|
+
tooltipMarkup.className = tooltipClass;
|
|
450
|
+
tooltipMarkup.innerText = this.tooltipText;
|
|
451
|
+
tooltipMarkup.style.zIndex = String(this.tooltipZIndex); // Ensures zIndex is a string
|
|
452
|
+
tooltipMarkup.classList.add(this.tooltipPosition, this.tooltipTheme, this.tooltipWidth);
|
|
453
|
+
if (this.hideTooltipOnMobile) {
|
|
454
|
+
tooltipMarkup.classList.add("hide-tooltip-mobile");
|
|
455
|
+
}
|
|
456
|
+
this.el.appendChild(tooltipMarkup);
|
|
457
|
+
}
|
|
458
|
+
}
|
|
459
|
+
else {
|
|
460
|
+
existingTooltip === null || existingTooltip === void 0 ? void 0 : existingTooltip.remove();
|
|
461
|
+
}
|
|
462
|
+
}
|
|
463
|
+
//tooltip code ends
|
|
464
|
+
standardRender() {
|
|
465
|
+
const classMap = this.getCssClassMap();
|
|
466
|
+
const colorClass = this.addWhiteClass();
|
|
467
|
+
const cutOff = this.getLineCuttoff();
|
|
468
|
+
return (index.h(index.Host, { class: `${colorClass} ${this.paraZIndex} trunc-text` }, this.styles && index.h("style", null, this.styles), index.h("p", { class: classMap, part: "part-para", style: cutOff }, index.h("slot", null))));
|
|
469
|
+
}
|
|
470
|
+
getCssClassMap() {
|
|
471
|
+
return {
|
|
472
|
+
[this.fontSize]: true,
|
|
473
|
+
[this.fontWeight]: true,
|
|
474
|
+
[this.paraStyle]: true,
|
|
475
|
+
[this.paraMargin]: !!this.paraMargin ? true : false,
|
|
476
|
+
[this.paraColor]: true,
|
|
477
|
+
[this.paraLineH]: true,
|
|
478
|
+
[this.paraAlign]: !!this.paraAlign ? true : false,
|
|
479
|
+
["ellipsis-boxing"]: this.ellipsisLineCutoff && this.ellipsisLineCutoff > 0,
|
|
480
|
+
["line-clamp-title"]: this.maxLines && this.maxLines > 0, //tooltip code,
|
|
481
|
+
};
|
|
482
|
+
}
|
|
483
|
+
//WEB-2392
|
|
484
|
+
addWhiteClass() {
|
|
485
|
+
if (this.paraColor == "white") {
|
|
486
|
+
return {
|
|
487
|
+
[this.paraColor]: true,
|
|
488
|
+
};
|
|
489
|
+
}
|
|
490
|
+
}
|
|
491
|
+
getLineCuttoff() {
|
|
492
|
+
const lineClamp = this.ellipsisLineCutoff > 0
|
|
493
|
+
? this.ellipsisLineCutoff
|
|
494
|
+
: this.maxLines;
|
|
495
|
+
return lineClamp > 0 ? { "-webkit-line-clamp": `${lineClamp}` } : {};
|
|
496
|
+
}
|
|
497
|
+
get el() { return index.getElement(this); }
|
|
498
|
+
};
|
|
499
|
+
PtcPara.style = ptcParaCss;
|
|
500
|
+
|
|
501
|
+
const ptcPictureCss = "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;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{-o-object-fit:cover;object-fit:cover}.fill{-o-object-fit:fill;object-fit:fill}.contain{-o-object-fit:contain;object-fit:contain}.scale-down{-o-object-fit:scale-down;object-fit:scale-down}.none{-o-object-fit:none;object-fit:none}.initial{-o-object-fit:initial;object-fit:initial}.inherit{-o-object-fit:inherit;object-fit:inherit}.radius-standard{border-radius:var(--ptc-border-radius-standard)}.radius-large{border-radius:var(--ptc-border-radius-large)}.radius-pill{border-radius:var(--ptc-border-radius-pill)}.radius-circle{border-radius:var(--ptc-border-radius-circle)}.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}";
|
|
502
|
+
|
|
503
|
+
const PtcPicture = class {
|
|
504
|
+
constructor(hostRef) {
|
|
505
|
+
index.registerInstance(this, hostRef);
|
|
506
|
+
this.src = undefined;
|
|
507
|
+
this.alt = "image";
|
|
508
|
+
this.sizeXs = "510x340";
|
|
509
|
+
this.sizeSm = "1240x496";
|
|
510
|
+
this.sizeMd = "1366x500";
|
|
511
|
+
this.sizeLg = "1920x1080";
|
|
512
|
+
this.disableResize = false;
|
|
513
|
+
this.oldSrc = undefined;
|
|
514
|
+
this.imagePosition = "static";
|
|
515
|
+
this.borderRadius = undefined;
|
|
516
|
+
this.height = undefined;
|
|
517
|
+
this.width = undefined;
|
|
518
|
+
this.objectFit = "cover";
|
|
519
|
+
this.isFullHeight = false;
|
|
520
|
+
this.isFullWidth = false;
|
|
521
|
+
this.styles = undefined;
|
|
522
|
+
this.imageAlignment = "left";
|
|
523
|
+
this.maxWidth = undefined;
|
|
524
|
+
this.displayImage = "block";
|
|
525
|
+
}
|
|
526
|
+
WindowResize() {
|
|
527
|
+
this.addIntersectionObserver();
|
|
528
|
+
}
|
|
529
|
+
componentWillLoad() {
|
|
530
|
+
if (this.disableResize) {
|
|
531
|
+
this.sizeXs = undefined;
|
|
532
|
+
this.sizeSm = undefined;
|
|
533
|
+
this.sizeMd = undefined;
|
|
534
|
+
this.sizeLg = undefined;
|
|
535
|
+
}
|
|
536
|
+
}
|
|
537
|
+
componentDidLoad() {
|
|
538
|
+
this.addIntersectionObserver();
|
|
539
|
+
}
|
|
540
|
+
componentWillUpdate() {
|
|
541
|
+
if (this.src !== this.oldSrc) {
|
|
542
|
+
this.addIntersectionObserver();
|
|
543
|
+
}
|
|
544
|
+
this.oldSrc = this.src;
|
|
545
|
+
}
|
|
546
|
+
//lazy-loading
|
|
547
|
+
addIntersectionObserver() {
|
|
548
|
+
if (!this.src) {
|
|
549
|
+
return;
|
|
550
|
+
}
|
|
551
|
+
if ("IntersectionObserver" in window) {
|
|
552
|
+
let lazyLoadImages = new IntersectionObserver((entries) => {
|
|
553
|
+
entries.forEach((entry) => {
|
|
554
|
+
if (entry.isIntersecting) {
|
|
555
|
+
const image = this.el.shadowRoot.querySelector("img");
|
|
556
|
+
image.src = this.setResponsiveBg();
|
|
557
|
+
lazyLoadImages.unobserve(image);
|
|
558
|
+
}
|
|
559
|
+
});
|
|
560
|
+
});
|
|
561
|
+
let tempImg = this.el.shadowRoot.querySelector("img");
|
|
562
|
+
if (tempImg) {
|
|
563
|
+
lazyLoadImages.observe(tempImg);
|
|
564
|
+
}
|
|
565
|
+
this.observer = lazyLoadImages;
|
|
566
|
+
}
|
|
567
|
+
else {
|
|
568
|
+
// fall back to setTimeout for Safari and IE
|
|
569
|
+
setTimeout(() => {
|
|
570
|
+
const image = this.el.shadowRoot.querySelector("img");
|
|
571
|
+
image.src = this.setResponsiveBg();
|
|
572
|
+
image.onload = () => {
|
|
573
|
+
image.removeAttribute("data-src");
|
|
574
|
+
};
|
|
575
|
+
}, 5000);
|
|
576
|
+
}
|
|
577
|
+
}
|
|
578
|
+
//responsive image
|
|
579
|
+
setResponsiveBg() {
|
|
580
|
+
// Define local variables
|
|
581
|
+
let backgrounds = (this.el.shadowRoot || document).querySelectorAll("img"), el, elData, currentBreakpoint = this.getCurrentBreakPoints();
|
|
582
|
+
for (var i = 0, len = backgrounds.length; i < len; i++) {
|
|
583
|
+
// Set current variables
|
|
584
|
+
el = backgrounds[i];
|
|
585
|
+
elData = el.getAttribute("data-" + currentBreakpoint);
|
|
586
|
+
if (elData !== null) {
|
|
587
|
+
return elData;
|
|
588
|
+
}
|
|
589
|
+
else {
|
|
590
|
+
if (typeof console == "object") {
|
|
591
|
+
console.warn("Data attribute: data-" +
|
|
592
|
+
currentBreakpoint +
|
|
593
|
+
" not found on element:\n\n" +
|
|
594
|
+
el.outerHTML +
|
|
595
|
+
"\n\n\n");
|
|
596
|
+
}
|
|
597
|
+
}
|
|
598
|
+
}
|
|
599
|
+
}
|
|
600
|
+
//manually load image
|
|
601
|
+
async LoadImage() {
|
|
602
|
+
const image = this.el.shadowRoot.querySelector("img");
|
|
603
|
+
if (!image) {
|
|
604
|
+
return;
|
|
605
|
+
}
|
|
606
|
+
if (!image.src) {
|
|
607
|
+
image.src = this.setResponsiveBg();
|
|
608
|
+
image.onload = () => {
|
|
609
|
+
image.removeAttribute("data-src");
|
|
610
|
+
};
|
|
611
|
+
}
|
|
612
|
+
if (this.observer) {
|
|
613
|
+
this.observer.unobserve(image);
|
|
614
|
+
}
|
|
615
|
+
}
|
|
616
|
+
render() {
|
|
617
|
+
const classMap = this.getCssClassMap();
|
|
618
|
+
const classMapHost = this.getCssClassMapHost();
|
|
619
|
+
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.src}`, "data-sm": !!this.sizeSm ? `${this.src}` : `${this.src}`, "data-md": !!this.sizeMd ? `${this.src}` : `${this.src}`, "data-lg": !!this.sizeLg ? `${this.src}` : `${this.src}` }, (!!this.width ? { width: this.width } : {}), (!!this.height ? { height: this.height } : {}), { alt: this.alt, style: Object.assign({}, (!!this.maxWidth
|
|
620
|
+
? { maxWidth: this.maxWidth + "px" }
|
|
621
|
+
: {})) })), index.h("slot", null)));
|
|
622
|
+
}
|
|
623
|
+
getCurrentBreakPoints() {
|
|
624
|
+
// Define local variables
|
|
625
|
+
let doc = window.document, temp = doc.createElement("div"), env;
|
|
626
|
+
// Append test node
|
|
627
|
+
doc.body.appendChild(temp);
|
|
628
|
+
// Loop through breakpoints
|
|
629
|
+
for (let i = interfaces.ResponsivePictureVariables.envs.length - 1; i >= 0; i--) {
|
|
630
|
+
env = interfaces.ResponsivePictureVariables.envs[i];
|
|
631
|
+
// Add classes
|
|
632
|
+
temp.className = "hidden-" + env;
|
|
633
|
+
// Found breakpoint
|
|
634
|
+
if (temp.offsetParent === null) {
|
|
635
|
+
// Remove our test node
|
|
636
|
+
doc.body.removeChild(temp);
|
|
637
|
+
// Return current breakpoint
|
|
638
|
+
return env;
|
|
639
|
+
}
|
|
640
|
+
}
|
|
641
|
+
// Breakpoint not found, try fallback
|
|
642
|
+
doc.body.removeChild(temp);
|
|
643
|
+
return this.getFallbackBreakpoint();
|
|
644
|
+
}
|
|
645
|
+
getFallbackBreakpoint() {
|
|
646
|
+
if (window.matchMedia("(min-width: 992px)").matches) {
|
|
647
|
+
return "lg";
|
|
648
|
+
}
|
|
649
|
+
else if (window.matchMedia("(min-width: 768px)").matches) {
|
|
650
|
+
return "md";
|
|
651
|
+
}
|
|
652
|
+
else if (window.matchMedia("(min-width: 576px)").matches) {
|
|
653
|
+
return "sm";
|
|
654
|
+
}
|
|
655
|
+
else {
|
|
656
|
+
return "xs";
|
|
657
|
+
}
|
|
658
|
+
}
|
|
659
|
+
getCssClassMap() {
|
|
660
|
+
return {
|
|
661
|
+
[this.borderRadius]: this.borderRadius ? true : false,
|
|
662
|
+
[this.objectFit]: true,
|
|
663
|
+
[this.isFullHeight ? "is-full-height" : "is-normal-height"]: true,
|
|
664
|
+
[this.isFullWidth ? "is-full-width" : "is-normal-width"]: true,
|
|
665
|
+
[this.displayImage]: true,
|
|
666
|
+
};
|
|
667
|
+
}
|
|
668
|
+
getCssClassMapHost() {
|
|
669
|
+
return {
|
|
670
|
+
[this.imagePosition]: true,
|
|
671
|
+
[this.imageAlignment]: true,
|
|
672
|
+
};
|
|
673
|
+
}
|
|
674
|
+
get el() { return index.getElement(this); }
|
|
675
|
+
};
|
|
676
|
+
PtcPicture.style = ptcPictureCss;
|
|
677
|
+
|
|
678
|
+
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)}.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}}";
|
|
679
|
+
|
|
680
|
+
const PtcProductCard = class {
|
|
681
|
+
constructor(hostRef) {
|
|
682
|
+
index.registerInstance(this, hostRef);
|
|
683
|
+
this.cardImage = undefined;
|
|
684
|
+
this.cardImageAltText = undefined;
|
|
685
|
+
this.cardDescription = undefined;
|
|
686
|
+
this.cardCtaText = undefined;
|
|
687
|
+
this.toggleCtaTitle = undefined;
|
|
688
|
+
this.isOpen = false;
|
|
689
|
+
this.isSlotEmpty = undefined;
|
|
690
|
+
}
|
|
691
|
+
togglePanel() {
|
|
692
|
+
this.isOpen = !this.isOpen;
|
|
693
|
+
}
|
|
694
|
+
handleReadmoreToggle(event) {
|
|
695
|
+
const siblingCards = Array.from(this.hostElement.querySelectorAll(".ptc-product-highlight-card"));
|
|
696
|
+
siblingCards.forEach((card) => {
|
|
697
|
+
var _a, _b;
|
|
698
|
+
const readmoreComponent = card === null || card === void 0 ? void 0 : card.querySelector("ptc-readmore");
|
|
699
|
+
const rmText = (_a = readmoreComponent.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelector(".read-more-text");
|
|
700
|
+
const isReadMore = rmText.scrollHeight > rmText.clientHeight;
|
|
701
|
+
const rmCheckbox = (_b = readmoreComponent.shadowRoot) === null || _b === void 0 ? void 0 : _b.querySelector("#expanded");
|
|
702
|
+
if (readmoreComponent &&
|
|
703
|
+
readmoreComponent !== event.detail.sender) {
|
|
704
|
+
// Update the sibling readmore component
|
|
705
|
+
rmCheckbox.checked = event.detail.isExpanded;
|
|
706
|
+
// Trigger the update programmatically
|
|
707
|
+
const cta = readmoreComponent.shadowRoot.querySelector(".read-more-cta-label");
|
|
708
|
+
if (cta) {
|
|
709
|
+
event.detail.isExpanded
|
|
710
|
+
? (cta.innerHTML = `<span>${readmoreComponent.lessText || ""}</span>`)
|
|
711
|
+
: (cta.innerHTML = `<span>${readmoreComponent.moreText || ""}</span>`);
|
|
712
|
+
if (event.detail.isExpanded) {
|
|
713
|
+
if (isReadMore) {
|
|
714
|
+
cta.classList.add("show-less-cta");
|
|
715
|
+
}
|
|
716
|
+
}
|
|
717
|
+
else {
|
|
718
|
+
cta.classList.remove("show-less-cta");
|
|
719
|
+
}
|
|
720
|
+
}
|
|
721
|
+
rmText.classList[isReadMore ? "add" : "remove"]("truncated");
|
|
722
|
+
}
|
|
723
|
+
});
|
|
724
|
+
}
|
|
725
|
+
render() {
|
|
726
|
+
return (index.h(index.Host, null, index.h("div", { class: "card-wrap" }, this.cardImage && (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("slot", { name: "title" }), index.h("ptc-spacer", { size: "x-small" }), index.h("ptc-spacer", { size: "xx-small", breakpoint: "x-small" }), index.h("div", null, index.h("slot", { name: "content" }))), index.h("div", { class: "cta-wrap" }, index.h("slot", { name: "cta" })))), this.toggleCtaTitle && (index.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 }, index.h("span", { class: "toggleText" }, this.toggleCtaTitle))), index.h("div", { class: "product-highlights-container" }, index.h("slot", null))));
|
|
727
|
+
}
|
|
728
|
+
get hostElement() { return index.getElement(this); }
|
|
729
|
+
};
|
|
730
|
+
PtcProductCard.style = ptcProductCardCss;
|
|
731
|
+
|
|
732
|
+
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)}.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}}";
|
|
733
|
+
|
|
734
|
+
const PtcProductCategory = class {
|
|
735
|
+
constructor(hostRef) {
|
|
736
|
+
index.registerInstance(this, hostRef);
|
|
737
|
+
this.categoryDescription = undefined;
|
|
738
|
+
}
|
|
739
|
+
render() {
|
|
740
|
+
return (index.h(index.Host, null, index.h("div", { class: "category-header" }, index.h("slot", { name: "title" }), 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", "enable-tooltip": true, "max-lines": "9", "tooltip-z-index": "999", "tooltip-width": "full-width", "seo-compatibility-mode": true }, this.categoryDescription)), index.h("slot", null)));
|
|
741
|
+
}
|
|
742
|
+
};
|
|
743
|
+
PtcProductCategory.style = ptcProductCategoryCss;
|
|
744
|
+
|
|
745
|
+
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)}";
|
|
746
|
+
|
|
747
|
+
const PtcProductDropdown = class {
|
|
748
|
+
constructor(hostRef) {
|
|
749
|
+
index.registerInstance(this, hostRef);
|
|
750
|
+
this.selectedValues = index.createEvent(this, "selectedValues", 7);
|
|
751
|
+
this.dropdownTouched = index.createEvent(this, "dropdownTouched", 7);
|
|
752
|
+
this.internalOptions = undefined;
|
|
753
|
+
this.newOptions = undefined;
|
|
754
|
+
this.selectedOptions = [];
|
|
755
|
+
this.placeholder = undefined;
|
|
756
|
+
this.isOpen = false;
|
|
757
|
+
}
|
|
758
|
+
parseOptions() {
|
|
759
|
+
let options = Array.from(this.hostElement.querySelectorAll("span"));
|
|
760
|
+
if (options) {
|
|
761
|
+
this.internalOptions = options.map((option) => {
|
|
762
|
+
return option.textContent;
|
|
763
|
+
});
|
|
764
|
+
}
|
|
765
|
+
}
|
|
766
|
+
toggleDropdown() {
|
|
767
|
+
this.isOpen = !this.isOpen;
|
|
768
|
+
this.dropdownTouched.emit({
|
|
769
|
+
sender: this,
|
|
770
|
+
isOpen: this.isOpen,
|
|
771
|
+
});
|
|
772
|
+
}
|
|
773
|
+
handleSearchResult(event) {
|
|
774
|
+
const { sender, searchTerm } = event.detail;
|
|
775
|
+
if (sender) {
|
|
776
|
+
if (searchTerm === "") {
|
|
777
|
+
this.selectedOptions = [];
|
|
778
|
+
this.isOpen = false;
|
|
779
|
+
}
|
|
780
|
+
}
|
|
781
|
+
}
|
|
782
|
+
handleinputChanged(event) {
|
|
783
|
+
const { sender } = event.detail;
|
|
784
|
+
if (sender) {
|
|
785
|
+
this.selectedOptions = [];
|
|
786
|
+
this.isOpen = false;
|
|
787
|
+
}
|
|
788
|
+
}
|
|
789
|
+
handleCheckboxChange(option) {
|
|
790
|
+
const index = this.selectedOptions.indexOf(option);
|
|
791
|
+
if (index > -1) {
|
|
792
|
+
this.selectedOptions.splice(index, 1);
|
|
793
|
+
this.selectedValues.emit({
|
|
794
|
+
sender: this,
|
|
795
|
+
selectedOptions: this.selectedOptions,
|
|
796
|
+
});
|
|
797
|
+
}
|
|
798
|
+
else {
|
|
799
|
+
this.selectedOptions.push(option);
|
|
800
|
+
this.selectedValues.emit({
|
|
801
|
+
sender: this,
|
|
802
|
+
selectedOptions: this.selectedOptions,
|
|
803
|
+
});
|
|
804
|
+
}
|
|
805
|
+
}
|
|
806
|
+
componentWillLoad() {
|
|
807
|
+
this.parseOptions();
|
|
808
|
+
}
|
|
809
|
+
render() {
|
|
810
|
+
return (index.h(index.Host, null, index.h("div", { class: "dropdown" }, index.h("div", { class: "dropdown-toggle", onClick: () => this.toggleDropdown(), onKeyDown: (e) => {
|
|
811
|
+
e.key === "Enter" ? this.toggleDropdown() : null;
|
|
812
|
+
}, tabIndex: 0 }, index.h("span", { class: "dropdown-placeholder" }, this.placeholder), index.h("span", { class: "caret" }, index.h("svg", { width: "12", height: "8", viewBox: "0 0 12 8", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, index.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 && (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))));
|
|
813
|
+
}
|
|
814
|
+
get hostElement() { return index.getElement(this); }
|
|
815
|
+
};
|
|
816
|
+
PtcProductDropdown.style = ptcProductDropdownCss;
|
|
817
|
+
|
|
818
|
+
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)}.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)}";
|
|
819
|
+
|
|
820
|
+
const PtcProductHighlightCard = class {
|
|
821
|
+
constructor(hostRef) {
|
|
822
|
+
index.registerInstance(this, hostRef);
|
|
823
|
+
this.cardTitle = undefined;
|
|
824
|
+
this.cardImage = undefined;
|
|
825
|
+
this.cardImageAltText = undefined;
|
|
826
|
+
this.moreText = "More";
|
|
827
|
+
this.lessText = "Less";
|
|
828
|
+
this.cardDescription = undefined;
|
|
829
|
+
this.browserFirefox = false;
|
|
830
|
+
this.currentLanguage = undefined;
|
|
831
|
+
}
|
|
832
|
+
render() {
|
|
833
|
+
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: this.cardImageAltText, 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" }, this.browserFirefox &&
|
|
834
|
+
this.currentLanguage.toLowerCase().includes("ja") ? (index.h("slot", null)) : (index.h("ptc-readmore", { "more-text": this.moreText, "less-text": this.lessText, "visible-lines-custom": "8", "read-more-position": "left" }, index.h("slot", null))))));
|
|
835
|
+
}
|
|
836
|
+
};
|
|
837
|
+
PtcProductHighlightCard.style = ptcProductHighlightCardCss;
|
|
838
|
+
|
|
839
|
+
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}";
|
|
840
|
+
|
|
841
|
+
const PtcProductList = class {
|
|
842
|
+
constructor(hostRef) {
|
|
843
|
+
index.registerInstance(this, hostRef);
|
|
844
|
+
this.clearCtaClicked = index.createEvent(this, "clearCtaClicked", 7);
|
|
845
|
+
this.emptyTitle = undefined;
|
|
846
|
+
this.emptySubTitle = undefined;
|
|
847
|
+
this.clearButtonLabel = undefined;
|
|
848
|
+
}
|
|
849
|
+
handleSearchResult(event) {
|
|
850
|
+
const { sender, searchTerm } = event.detail;
|
|
851
|
+
if (sender) {
|
|
852
|
+
this.sortCards(searchTerm);
|
|
853
|
+
}
|
|
854
|
+
}
|
|
855
|
+
handleMultipleSearchResult(event) {
|
|
856
|
+
const { sender, selectedOptions } = event.detail;
|
|
857
|
+
if (sender) {
|
|
858
|
+
this.sortMultipleCards(selectedOptions);
|
|
859
|
+
}
|
|
860
|
+
}
|
|
861
|
+
handleEmptyResult(event) {
|
|
862
|
+
const { sender, searchTerm } = event.detail;
|
|
863
|
+
if (sender) {
|
|
864
|
+
this.noresultSection.classList.add("show");
|
|
865
|
+
this.sortCards(searchTerm);
|
|
866
|
+
}
|
|
867
|
+
}
|
|
868
|
+
sortMultipleCards(searchItems) {
|
|
869
|
+
const categoryList = Array.from(this.hostElement.querySelectorAll("ptc-product-category"));
|
|
870
|
+
categoryList.forEach((category) => {
|
|
871
|
+
const categoryTitle = category.getAttribute("category-title");
|
|
872
|
+
const productList = Array.from(category.querySelectorAll("ptc-product-card"));
|
|
873
|
+
if (searchItems.length > 0) {
|
|
874
|
+
const shouldDisplayCategory = searchItems.some((searchItem) => categoryTitle && categoryTitle.includes(searchItem));
|
|
875
|
+
category.style.display = shouldDisplayCategory
|
|
876
|
+
? "block"
|
|
877
|
+
: "none";
|
|
878
|
+
if (shouldDisplayCategory) {
|
|
879
|
+
productList.forEach((product) => {
|
|
880
|
+
product.style.display = "block";
|
|
881
|
+
});
|
|
882
|
+
}
|
|
883
|
+
else {
|
|
884
|
+
productList.forEach((product) => {
|
|
885
|
+
const productTitle = product.getAttribute("card-title");
|
|
886
|
+
const shouldDisplayProduct = searchItems.some((searchItem) => productTitle &&
|
|
887
|
+
productTitle.includes(searchItem));
|
|
888
|
+
product.style.display = shouldDisplayProduct
|
|
889
|
+
? "block"
|
|
890
|
+
: "none";
|
|
891
|
+
});
|
|
892
|
+
}
|
|
893
|
+
}
|
|
894
|
+
else {
|
|
895
|
+
category.style.display = "block";
|
|
896
|
+
productList.forEach((product) => {
|
|
897
|
+
product.style.display = "block";
|
|
898
|
+
});
|
|
899
|
+
}
|
|
900
|
+
});
|
|
901
|
+
}
|
|
902
|
+
// Sorting the
|
|
903
|
+
sortCards(searchItem) {
|
|
904
|
+
const categoryList = this.hostElement.querySelectorAll("ptc-product-category");
|
|
905
|
+
categoryList.forEach((category) => {
|
|
906
|
+
const categoryTitle = category.getAttribute("category-title");
|
|
907
|
+
const productList = category.querySelectorAll("ptc-product-card");
|
|
908
|
+
category.style.display = "none";
|
|
909
|
+
if (searchItem === "") {
|
|
910
|
+
category.style.display = "block";
|
|
911
|
+
productList.forEach((product) => {
|
|
912
|
+
product.style.display = "block";
|
|
913
|
+
});
|
|
914
|
+
this.noresultSection.classList.remove("show");
|
|
915
|
+
}
|
|
916
|
+
else {
|
|
917
|
+
const searchItemLowerCase = searchItem; //
|
|
918
|
+
if (searchItemLowerCase === categoryTitle) {
|
|
919
|
+
category.style.display = "block";
|
|
920
|
+
productList.forEach((product) => {
|
|
921
|
+
product.style.display = "block";
|
|
922
|
+
});
|
|
923
|
+
}
|
|
924
|
+
else {
|
|
925
|
+
productList.forEach((product) => {
|
|
926
|
+
const productTitle = product.getAttribute("card-title");
|
|
927
|
+
product.style.display = "none";
|
|
928
|
+
if (searchItemLowerCase === productTitle) {
|
|
929
|
+
product.style.display = "block";
|
|
930
|
+
category.style.display = "block";
|
|
931
|
+
}
|
|
932
|
+
});
|
|
933
|
+
}
|
|
934
|
+
}
|
|
935
|
+
});
|
|
936
|
+
}
|
|
937
|
+
componentDidLoad() {
|
|
938
|
+
// ptcLogger.log('Component loaded!');
|
|
939
|
+
// ptcLogger.info('Component loaded!');
|
|
940
|
+
// ptcLogger.warn('Component loaded!');
|
|
941
|
+
// ptcLogger.error('Component loaded!');
|
|
942
|
+
this.addIds();
|
|
943
|
+
this.noresultSection = this.hostElement.shadowRoot.querySelector(".no-result-wrap");
|
|
944
|
+
this.productList = this.hostElement.shadowRoot.querySelector(".product-list");
|
|
945
|
+
const productCards = this.hostElement.querySelectorAll("ptc-product-category ptc-product-card");
|
|
946
|
+
productCards.forEach((card) => {
|
|
947
|
+
const toggleBtn = card.shadowRoot.querySelector(".toggle-btn");
|
|
948
|
+
if (toggleBtn) {
|
|
949
|
+
const handleToggle = () => {
|
|
950
|
+
if (card.classList.contains("has-opened")) {
|
|
951
|
+
card.classList.remove("has-opened");
|
|
952
|
+
}
|
|
953
|
+
else {
|
|
954
|
+
card.classList.add("has-opened");
|
|
955
|
+
}
|
|
956
|
+
this.hideAllCards(card);
|
|
957
|
+
};
|
|
958
|
+
toggleBtn.addEventListener("click", handleToggle);
|
|
959
|
+
toggleBtn.addEventListener("keydown", (event) => {
|
|
960
|
+
if (event.key === "Enter") {
|
|
961
|
+
handleToggle();
|
|
962
|
+
}
|
|
963
|
+
});
|
|
964
|
+
}
|
|
965
|
+
});
|
|
966
|
+
}
|
|
967
|
+
hideAllCards(selectedCard) {
|
|
968
|
+
const productCards = this.hostElement.querySelectorAll("ptc-product-category ptc-product-card");
|
|
969
|
+
productCards.forEach((card) => {
|
|
970
|
+
if (selectedCard != card) {
|
|
971
|
+
card.classList.remove("has-opened");
|
|
972
|
+
}
|
|
973
|
+
});
|
|
974
|
+
}
|
|
975
|
+
handleClick(event) {
|
|
976
|
+
this.clearCtaClicked.emit({
|
|
977
|
+
sender: this,
|
|
978
|
+
event: event,
|
|
979
|
+
});
|
|
980
|
+
}
|
|
981
|
+
// Adding id to the category and product cards
|
|
982
|
+
addIds() {
|
|
983
|
+
const categoryList = this.hostElement.querySelectorAll("ptc-product-category");
|
|
984
|
+
categoryList.forEach((category) => {
|
|
985
|
+
const categoryTitle = category.getAttribute("category-title");
|
|
986
|
+
category.setAttribute("id", categoryTitle);
|
|
987
|
+
const productList = category.querySelectorAll("ptc-product-card");
|
|
988
|
+
productList.forEach((product) => {
|
|
989
|
+
const productTitle = product.getAttribute("card-title");
|
|
990
|
+
product.setAttribute("id", productTitle);
|
|
991
|
+
});
|
|
992
|
+
});
|
|
993
|
+
}
|
|
994
|
+
render() {
|
|
995
|
+
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" }, this.emptyTitle || "No Results Found"), index.h("ptc-para", { "font-size": "x-small" }, this.emptySubTitle ||
|
|
996
|
+
"Try changing or removing some of your filters"), index.h("ptc-button", { type: "link", color: "ptc-quaternary", target: "_blank", onClick: (e) => {
|
|
997
|
+
this.handleClick(e);
|
|
998
|
+
} }, this.clearButtonLabel || "Clear Filters"))))));
|
|
999
|
+
}
|
|
1000
|
+
get hostElement() { return index.getElement(this); }
|
|
1001
|
+
};
|
|
1002
|
+
PtcProductList.style = ptcProductListCss;
|
|
1003
|
+
|
|
1004
|
+
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}";
|
|
1005
|
+
|
|
1006
|
+
const PtcProductSidebar = class {
|
|
1007
|
+
constructor(hostRef) {
|
|
1008
|
+
index.registerInstance(this, hostRef);
|
|
1009
|
+
this.selectedResult = index.createEvent(this, "selectedResult", 7);
|
|
1010
|
+
this.clearsearch = index.createEvent(this, "clearsearch", 7);
|
|
1011
|
+
this.inputChanged = index.createEvent(this, "inputChanged", 7);
|
|
1012
|
+
this.emptyResult = index.createEvent(this, "emptyResult", 7);
|
|
1013
|
+
this.searchTerm = "";
|
|
1014
|
+
this.suggestions = [];
|
|
1015
|
+
this.filterResults = "Filter Results";
|
|
1016
|
+
this.filterText = "Filter";
|
|
1017
|
+
this.clearText = "Clear";
|
|
1018
|
+
this.technologyText = "Technology";
|
|
1019
|
+
this.jumpToProduct = "Jump to Product";
|
|
1020
|
+
this.selectTechnology = "Select a technology";
|
|
1021
|
+
this.suggestionList = [];
|
|
1022
|
+
}
|
|
1023
|
+
componentWillLoad() {
|
|
1024
|
+
this.getDomData();
|
|
1025
|
+
}
|
|
1026
|
+
componentDidLoad() {
|
|
1027
|
+
this.productListWrap = this.hostElement.shadowRoot.querySelector(".product-list-wrap");
|
|
1028
|
+
this.clearBtn = this.hostElement.shadowRoot.querySelector(".clear-cta");
|
|
1029
|
+
this.inputBox = this.hostElement.shadowRoot.querySelector("#searchBox");
|
|
1030
|
+
}
|
|
1031
|
+
// Getting category title and products list
|
|
1032
|
+
getDomData() {
|
|
1033
|
+
const categoryList = document.querySelectorAll("ptc-product-category");
|
|
1034
|
+
categoryList.forEach((category) => {
|
|
1035
|
+
let categoryTitle = category.getAttribute("category-title");
|
|
1036
|
+
let categoryObject = { categoryName: categoryTitle, products: [] };
|
|
1037
|
+
this.suggestionList.push(categoryObject);
|
|
1038
|
+
let productList = category.querySelectorAll("ptc-product-card");
|
|
1039
|
+
productList.forEach((product) => {
|
|
1040
|
+
let productTitle = product.getAttribute("card-title");
|
|
1041
|
+
categoryObject.products.push(productTitle);
|
|
1042
|
+
});
|
|
1043
|
+
});
|
|
1044
|
+
}
|
|
1045
|
+
handleInputChange(event) {
|
|
1046
|
+
const inputElement = event.target;
|
|
1047
|
+
this.searchTerm = inputElement.value.toLocaleLowerCase();
|
|
1048
|
+
this.clearBtn.classList.add("show");
|
|
1049
|
+
this.getSuggestions();
|
|
1050
|
+
this.inputChanged.emit({
|
|
1051
|
+
sender: this,
|
|
1052
|
+
event: event,
|
|
1053
|
+
});
|
|
1054
|
+
}
|
|
1055
|
+
getSuggestions() {
|
|
1056
|
+
const searchTerm = this.searchTerm.toLowerCase();
|
|
1057
|
+
const suggestions = this.suggestionList.reduce((acc, item) => {
|
|
1058
|
+
if (item.categoryName.toLowerCase().includes(searchTerm)) {
|
|
1059
|
+
acc.push(item.categoryName); // Include the category if it matches the search term
|
|
1060
|
+
}
|
|
1061
|
+
const matchedProducts = item.products.filter((product) => product.toLowerCase().includes(searchTerm));
|
|
1062
|
+
if (matchedProducts.length > 0) {
|
|
1063
|
+
acc.push(...matchedProducts); // Include the matching products
|
|
1064
|
+
}
|
|
1065
|
+
return acc;
|
|
1066
|
+
}, []);
|
|
1067
|
+
this.suggestions = suggestions;
|
|
1068
|
+
}
|
|
1069
|
+
handleSelectSuggestion(suggestion, event) {
|
|
1070
|
+
this.searchTerm = suggestion;
|
|
1071
|
+
this.productListWrap.classList.add("hide");
|
|
1072
|
+
this.selectedResult.emit({
|
|
1073
|
+
sender: this,
|
|
1074
|
+
event: event,
|
|
1075
|
+
searchTerm: this.searchTerm,
|
|
1076
|
+
});
|
|
1077
|
+
}
|
|
1078
|
+
handleKeyUp(e) {
|
|
1079
|
+
const inputElement = e.target;
|
|
1080
|
+
this.searchTerm = inputElement.value.toLocaleLowerCase();
|
|
1081
|
+
if (e.keyCode === 13 && this.suggestions.length == 0) {
|
|
1082
|
+
this.emptyResult.emit({
|
|
1083
|
+
sender: this,
|
|
1084
|
+
event: e,
|
|
1085
|
+
});
|
|
1086
|
+
}
|
|
1087
|
+
else if (e.key === "Escape") {
|
|
1088
|
+
this.clearSearch(e);
|
|
1089
|
+
this.inputBox.focus();
|
|
1090
|
+
}
|
|
1091
|
+
}
|
|
1092
|
+
handleKeyDownClearCta(e) {
|
|
1093
|
+
if (e.key === "Enter") {
|
|
1094
|
+
this.clearSearch(e);
|
|
1095
|
+
}
|
|
1096
|
+
}
|
|
1097
|
+
clearSearch(event) {
|
|
1098
|
+
let input = this.hostElement.shadowRoot.querySelector("input");
|
|
1099
|
+
this.productListWrap.classList.remove("hide");
|
|
1100
|
+
this.clearBtn.classList.remove("show");
|
|
1101
|
+
if (input) {
|
|
1102
|
+
input.value = "";
|
|
1103
|
+
}
|
|
1104
|
+
this.suggestions = [];
|
|
1105
|
+
this.clearsearch.emit({
|
|
1106
|
+
sender: this,
|
|
1107
|
+
event: event,
|
|
1108
|
+
searchTerm: input.value,
|
|
1109
|
+
});
|
|
1110
|
+
}
|
|
1111
|
+
handleDropdownTouched(event) {
|
|
1112
|
+
const { sender, isOpen } = event.detail;
|
|
1113
|
+
if (sender) {
|
|
1114
|
+
if (isOpen) {
|
|
1115
|
+
let input = this.hostElement.shadowRoot.querySelector("input");
|
|
1116
|
+
if (input) {
|
|
1117
|
+
input.value = "";
|
|
1118
|
+
}
|
|
1119
|
+
}
|
|
1120
|
+
}
|
|
1121
|
+
}
|
|
1122
|
+
handleClick() {
|
|
1123
|
+
this.suggestions = [];
|
|
1124
|
+
}
|
|
1125
|
+
handleclearCtaClicked(eve) {
|
|
1126
|
+
const { sender, event } = eve.detail;
|
|
1127
|
+
if (sender) {
|
|
1128
|
+
this.clearSearch(event);
|
|
1129
|
+
}
|
|
1130
|
+
}
|
|
1131
|
+
handleSelectedValues(event) {
|
|
1132
|
+
const { sender, selectedOptions } = event.detail;
|
|
1133
|
+
if (sender) {
|
|
1134
|
+
if (selectedOptions.length > 0) {
|
|
1135
|
+
this.clearBtn.classList.add("show");
|
|
1136
|
+
this.productListWrap.classList.add("hide");
|
|
1137
|
+
}
|
|
1138
|
+
else {
|
|
1139
|
+
this.clearBtn.classList.remove("show");
|
|
1140
|
+
this.productListWrap.classList.remove("hide");
|
|
1141
|
+
}
|
|
1142
|
+
}
|
|
1143
|
+
}
|
|
1144
|
+
handleSuggestionKeyDown(e, index, suggestion) {
|
|
1145
|
+
var _a;
|
|
1146
|
+
const listItems = (_a = e.currentTarget.parentElement) === null || _a === void 0 ? void 0 : _a.querySelectorAll("li");
|
|
1147
|
+
if (!listItems)
|
|
1148
|
+
return;
|
|
1149
|
+
if (e.key === "Enter") {
|
|
1150
|
+
this.handleSelectSuggestion(suggestion, e);
|
|
1151
|
+
this.suggestions = [];
|
|
1152
|
+
}
|
|
1153
|
+
else if (e.key === "Tab") {
|
|
1154
|
+
e.preventDefault();
|
|
1155
|
+
const isShift = e.shiftKey;
|
|
1156
|
+
const nextIndex = isShift
|
|
1157
|
+
? (index - 1 + listItems.length) % listItems.length
|
|
1158
|
+
: (index + 1) % listItems.length;
|
|
1159
|
+
listItems[nextIndex].focus();
|
|
1160
|
+
}
|
|
1161
|
+
else if (e.key === "Escape") {
|
|
1162
|
+
this.clearSearch(e);
|
|
1163
|
+
this.inputBox.focus();
|
|
1164
|
+
}
|
|
1165
|
+
}
|
|
1166
|
+
render() {
|
|
1167
|
+
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", "title-height": "densest" }, this.filterResults), index.h("span", { class: "clear-cta", onClick: (e) => this.clearSearch(e), tabIndex: 0, onKeyDown: (e) => {
|
|
1168
|
+
this.handleKeyDownClearCta(e);
|
|
1169
|
+
} }, this.clearText)), index.h("div", { class: "sort-wrap" }, index.h("div", { class: "typeahead-input" }, index.h("label", { htmlFor: "searchBox" }, this.filterText), 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 && (index.h("div", { class: "suggestion-wrap" }, index.h("ul", { class: "suggestions" }, this.suggestions.map((suggestion, index$1) => (index.h("li", { onClick: (e) => this.handleSelectSuggestion(suggestion, e), tabIndex: 0, onKeyDown: (e) => this.handleSuggestionKeyDown(e, index$1, suggestion) }, suggestion))))))), index.h("div", { class: "dropdwon-filter" }, index.h("label", { htmlFor: "tech-dropdown" }, this.technologyText), index.h("ptc-product-dropdown", { placeholder: this.selectTechnology, id: "tech-dropdown" }, this.suggestionList.map((item) => (index.h("span", null, item.categoryName))))))), index.h("ptc-spacer", { size: "large" }), 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", "title-height": "densest" }, this.jumpToProduct), 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 }, index.h("ptc-tooltip", { "text-display": "inline", "text-lines": "4", "z-index": "z-2", description: item.categoryName, position: "bottom" }))), 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)))))))))));
|
|
1170
|
+
}
|
|
1171
|
+
get hostElement() { return index.getElement(this); }
|
|
1172
|
+
};
|
|
1173
|
+
PtcProductSidebar.style = ptcProductSidebarCss;
|
|
1174
|
+
|
|
1175
|
+
const ptcReadmoreCss = "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}.box input{opacity:0;position:absolute;pointer-events:none}.box .read-more-text{display:-webkit-box;-webkit-box-orient:vertical;margin:0;overflow:hidden;word-wrap:break-word}.box .line1{-webkit-line-clamp:1}.box .line2{-webkit-line-clamp:2}.box .line3{-webkit-line-clamp:3}.box .line4{-webkit-line-clamp:4}.box .line5{-webkit-line-clamp:5}.box .line10{-webkit-line-clamp:10}.box input~label{display:block;position:relative;cursor:pointer;right:0;margin-top:var(--ptc-element-spacing-02);font-weight:var(--ptc-font-weight-bold);font-size:var(--ptc-font-size-x-small);line-height:var(--ptc-line-height-densest);text-decoration-line:underline;color:var(--color-hyperlink);text-align:right;margin-right:var(--ptc-element-spacing-07)}.box input~label.left{text-align:left}.box input~label.right{text-align:right}.box input~label.center{text-align:center;margin-right:0}.box label:focus-visible{outline:none}.box label:focus-visible span{border-radius:var(--ptc-border-radius-standard);outline:5px solid var(--keyboard-nav-outline)}.box .z-auto{z-index:auto}.box .z-1{z-index:1}.box .z-2{z-index:2}.box .z-3{z-index:3}.box .z-999{z-index:999}.box input:checked+.read-more-text{-webkit-line-clamp:unset !important}.box .read-more-text:not(.truncated)~label{display:none}.box .show-less-cta{display:block !important}:host .box.add-icon .read-more-cta-label span{display:inline-block;position:relative;padding-right:var(--ptc-element-spacing-03)}:host .box.add-icon .read-more-cta-label span::after{content:\"\";background-image:url(\"data:image/svg+xml,%3Csvg viewBox='0 0 10 7' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L5 5L9 1' stroke='%2300890B' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E\");width:10px;height:7px;background-size:cover;position:absolute;right:-5px;bottom:7px}:host .box.add-icon .read-more-cta-label.show-less-cta span::after{transform:rotate(180deg)}:host .box.blue .read-more-cta-label{color:var(--color-hyperlink)}:host .box.gray .read-more-cta-label{color:var(--color-gray-10)}:host .box.green .read-more-cta-label{color:var(--color-green-07)}:host .box.initial .read-more-cta-label{color:initial}:host .box.small .read-more-cta-label{font-size:var(--ptc-font-size-x-small);line-height:var(--ptc-line-height-densest)}:host .box.medium .read-more-cta-label{font-size:var(--ptc-font-size-small);line-height:var(--ptc-line-height-p)}:host .box.large .read-more-cta-label{font-size:var(--ptc-font-size-large);line-height:var(--ptc-line-height-p)}:host .box.large.add-icon .read-more-cta-label span{padding-right:var(--ptc-element-spacing-04)}:host .box.large.add-icon .read-more-cta-label span::after{width:15px;height:10px}";
|
|
1176
|
+
|
|
1177
|
+
const PtcReadmore = class {
|
|
1178
|
+
constructor(hostRef) {
|
|
1179
|
+
index.registerInstance(this, hostRef);
|
|
1180
|
+
this.readmoreToggle = index.createEvent(this, "readmoreToggle", 7);
|
|
1181
|
+
/**
|
|
1182
|
+
* Handle keyboard interactions
|
|
1183
|
+
*/
|
|
1184
|
+
this.handleKeyDown = (event) => {
|
|
1185
|
+
if (event.key !== "Enter")
|
|
1186
|
+
return;
|
|
1187
|
+
const checkBoxEl = this.el.shadowRoot.querySelector("#expanded");
|
|
1188
|
+
const cta = this.el.shadowRoot.querySelector(".read-more-cta-label");
|
|
1189
|
+
if (!checkBoxEl || !cta)
|
|
1190
|
+
return;
|
|
1191
|
+
checkBoxEl.checked = !checkBoxEl.checked;
|
|
1192
|
+
const isExpanded = checkBoxEl.checked;
|
|
1193
|
+
cta.innerHTML = `<span>${isExpanded ? this.lessText || "" : this.moreText || ""}</span>`;
|
|
1194
|
+
cta.classList.toggle("show-less-cta", isExpanded);
|
|
1195
|
+
if (isExpanded) {
|
|
1196
|
+
// Focus on the first element with tabindex="-1" within 'ptc-readmore'
|
|
1197
|
+
const firstTabIndexMinusOne = this.el.querySelector('[tabindex="-1"]');
|
|
1198
|
+
firstTabIndexMinusOne === null || firstTabIndexMinusOne === void 0 ? void 0 : firstTabIndexMinusOne.focus();
|
|
1199
|
+
}
|
|
1200
|
+
else {
|
|
1201
|
+
cta.focus();
|
|
1202
|
+
const readMoreText = this.el.shadowRoot.querySelector(".read-more-text");
|
|
1203
|
+
readMoreText === null || readMoreText === void 0 ? void 0 : readMoreText.classList.add("truncated");
|
|
1204
|
+
}
|
|
1205
|
+
this.setTabIndex();
|
|
1206
|
+
// if lessText content is not present then add tabindex=-1 to the more/less label
|
|
1207
|
+
if (cta.textContent == "") {
|
|
1208
|
+
cta.setAttribute("tabindex", "-1");
|
|
1209
|
+
}
|
|
1210
|
+
};
|
|
1211
|
+
this.moreText = "read more";
|
|
1212
|
+
this.lessText = undefined;
|
|
1213
|
+
this.readMorePosition = "right";
|
|
1214
|
+
this.display = "inline";
|
|
1215
|
+
this.visibleLines = "line2";
|
|
1216
|
+
this.visibleLinesCustom = undefined;
|
|
1217
|
+
this.zIndex = "z-auto";
|
|
1218
|
+
this.checked = false;
|
|
1219
|
+
this.size = "small";
|
|
1220
|
+
this.isIcon = false;
|
|
1221
|
+
this.color = "blue";
|
|
1222
|
+
this.isContentSlotted = false;
|
|
1223
|
+
}
|
|
1224
|
+
async updateReadmoreStatus() {
|
|
1225
|
+
setTimeout(() => {
|
|
1226
|
+
this.addBtnTruncated();
|
|
1227
|
+
}, 100);
|
|
1228
|
+
}
|
|
1229
|
+
addBtnTruncated() {
|
|
1230
|
+
const appRoot = this.el.shadowRoot;
|
|
1231
|
+
const ps = appRoot.querySelectorAll(".read-more-text");
|
|
1232
|
+
ps.forEach((p) => {
|
|
1233
|
+
// if (this.visibleCharacters){
|
|
1234
|
+
// const truncatedText = p.textContent.slice(0, this.visibleCharacters);
|
|
1235
|
+
// p.textContent = truncatedText;
|
|
1236
|
+
// }
|
|
1237
|
+
p.classList[p.scrollHeight > p.clientHeight ? "add" : "remove"]("truncated");
|
|
1238
|
+
});
|
|
1239
|
+
}
|
|
1240
|
+
// Created this function to initialize the truncate function on specific elements like tabs
|
|
1241
|
+
enableAddTruncatedClass(element) {
|
|
1242
|
+
const allTabHeaders = document.querySelectorAll(element);
|
|
1243
|
+
for (const element of Array.from(allTabHeaders)) {
|
|
1244
|
+
let tabHeader = element;
|
|
1245
|
+
if (tabHeader) {
|
|
1246
|
+
tabHeader.addEventListener("click", () => {
|
|
1247
|
+
setTimeout(() => {
|
|
1248
|
+
this.addBtnTruncated();
|
|
1249
|
+
}, 100);
|
|
1250
|
+
});
|
|
1251
|
+
}
|
|
1252
|
+
}
|
|
1253
|
+
}
|
|
1254
|
+
componentDidLoad() {
|
|
1255
|
+
this.addBtnTruncated();
|
|
1256
|
+
document.addEventListener("readystatechange", () => {
|
|
1257
|
+
if (document.readyState === "complete") {
|
|
1258
|
+
this.addBtnTruncated();
|
|
1259
|
+
}
|
|
1260
|
+
});
|
|
1261
|
+
this.enableAddTruncatedClass("tab-header");
|
|
1262
|
+
this.enableAddTruncatedClass("ptc-ellipsis-dropdown");
|
|
1263
|
+
this.enableAddTruncatedClass("ptc-product-card");
|
|
1264
|
+
// added code for tabnavigation
|
|
1265
|
+
setTimeout(() => {
|
|
1266
|
+
this.setTabIndex();
|
|
1267
|
+
}, 400);
|
|
1268
|
+
}
|
|
1269
|
+
setTabIndex() {
|
|
1270
|
+
var _a, _b, _c;
|
|
1271
|
+
//debugger
|
|
1272
|
+
let links;
|
|
1273
|
+
if (!this.isContentSlotted) {
|
|
1274
|
+
links = (_a = this.el) === null || _a === void 0 ? void 0 : _a.querySelectorAll('button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])');
|
|
1275
|
+
}
|
|
1276
|
+
else {
|
|
1277
|
+
let slot = (_b = this.el) === null || _b === void 0 ? void 0 : _b.querySelector("slot").assignedNodes();
|
|
1278
|
+
links =
|
|
1279
|
+
slot[0] instanceof HTMLElement
|
|
1280
|
+
? slot[0].querySelectorAll('button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])')
|
|
1281
|
+
: null;
|
|
1282
|
+
}
|
|
1283
|
+
let bottom = 999999;
|
|
1284
|
+
let rects = (_c = this.el.shadowRoot
|
|
1285
|
+
.querySelector(".read-more-text")) === null || _c === void 0 ? void 0 : _c.getClientRects();
|
|
1286
|
+
if (rects && rects.length > 0) {
|
|
1287
|
+
bottom = rects[0].bottom;
|
|
1288
|
+
}
|
|
1289
|
+
if (links) {
|
|
1290
|
+
links.forEach((link) => {
|
|
1291
|
+
let linkRects = link.getClientRects();
|
|
1292
|
+
if (linkRects && linkRects.length > 0) {
|
|
1293
|
+
if (linkRects[0].top < bottom) {
|
|
1294
|
+
link.setAttribute("tabindex", "0");
|
|
1295
|
+
}
|
|
1296
|
+
else {
|
|
1297
|
+
link.setAttribute("tabindex", "-1");
|
|
1298
|
+
}
|
|
1299
|
+
}
|
|
1300
|
+
});
|
|
1301
|
+
}
|
|
1302
|
+
}
|
|
1303
|
+
// click event handler
|
|
1304
|
+
handleClick(event) {
|
|
1305
|
+
var _a;
|
|
1306
|
+
let links = (_a = this.el) === null || _a === void 0 ? void 0 : _a.querySelectorAll('button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])');
|
|
1307
|
+
this.addBtnTruncated();
|
|
1308
|
+
// check if the input box is checked
|
|
1309
|
+
this.checked = event.target.checked;
|
|
1310
|
+
// Getting cta element
|
|
1311
|
+
const cta = this.el.shadowRoot.querySelector(".read-more-cta-label");
|
|
1312
|
+
// Updating the cta text
|
|
1313
|
+
this.checked
|
|
1314
|
+
? (cta.innerHTML = `<span> ${this.lessText ? this.lessText : ""} </span>`)
|
|
1315
|
+
: (cta.innerHTML = `<span> ${this.moreText ? this.moreText : ""}</span>`);
|
|
1316
|
+
this.checked
|
|
1317
|
+
? cta.classList.add("show-less-cta")
|
|
1318
|
+
: cta.classList.remove("show-less-cta");
|
|
1319
|
+
// Emit the state change event
|
|
1320
|
+
this.readmoreToggle.emit({
|
|
1321
|
+
event: event,
|
|
1322
|
+
sender: this.el,
|
|
1323
|
+
isExpanded: this.checked,
|
|
1324
|
+
});
|
|
1325
|
+
if (links) {
|
|
1326
|
+
if (this.checked) {
|
|
1327
|
+
links.forEach((link) => {
|
|
1328
|
+
link.setAttribute("tabindex", "0");
|
|
1329
|
+
});
|
|
1330
|
+
}
|
|
1331
|
+
else {
|
|
1332
|
+
this.setTabIndex();
|
|
1333
|
+
}
|
|
1334
|
+
}
|
|
1335
|
+
}
|
|
1336
|
+
render() {
|
|
1337
|
+
const classMap = this.getCssClassMap();
|
|
1338
|
+
return (index.h(index.Host, { class: this.display }, index.h("div", { class: classMap }, index.h("input", { type: "checkbox", id: "expanded", onClick: (e) => this.handleClick(e), tabIndex: -1 }), !!this.visibleLines || !!this.visibleLinesCustom ? (index.h("p", { class: `read-more-text ${this.visibleLines}`, style: {
|
|
1339
|
+
WebkitLineClamp: `${this.visibleLinesCustom}`,
|
|
1340
|
+
} }, index.h("slot", null))) : null, index.h("label", { onKeyDown: this.handleKeyDown, htmlFor: "expanded", role: "button", class: `${this.zIndex + " " + this.readMorePosition} read-more-cta-label mf-listen`, tabIndex: 0 }, index.h("span", null, this.moreText)))));
|
|
1341
|
+
}
|
|
1342
|
+
getCssClassMap() {
|
|
1343
|
+
return {
|
|
1344
|
+
["box"]: true,
|
|
1345
|
+
[this.color]: true,
|
|
1346
|
+
[this.size]: true,
|
|
1347
|
+
["add-icon"]: this.isIcon,
|
|
1348
|
+
};
|
|
1349
|
+
}
|
|
1350
|
+
get el() { return index.getElement(this); }
|
|
1351
|
+
};
|
|
1352
|
+
PtcReadmore.style = ptcReadmoreCss;
|
|
1353
|
+
|
|
1354
|
+
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}}";
|
|
1355
|
+
|
|
1356
|
+
const PtcSpacer = class {
|
|
1357
|
+
constructor(hostRef) {
|
|
1358
|
+
index.registerInstance(this, hostRef);
|
|
1359
|
+
this.breakpoint = "";
|
|
1360
|
+
this.size = "medium";
|
|
1361
|
+
this.direction = "vertical";
|
|
1362
|
+
}
|
|
1363
|
+
render() {
|
|
1364
|
+
const classMap = this.getCssClassMap();
|
|
1365
|
+
return index.h(index.Host, { class: classMap });
|
|
1366
|
+
}
|
|
1367
|
+
getCssClassMap() {
|
|
1368
|
+
return {
|
|
1369
|
+
[this.size]: true,
|
|
1370
|
+
["ptc-spacer-horizontal"]: this.direction === "horizontal",
|
|
1371
|
+
["ptc-spacer-vertical"]: this.direction === "vertical",
|
|
1372
|
+
["ptc-spacer-xx-small"]: this.breakpoint === "xx-small",
|
|
1373
|
+
["ptc-spacer-x-small"]: this.breakpoint === "x-small",
|
|
1374
|
+
["ptc-spacer-small"]: this.breakpoint === "small",
|
|
1375
|
+
["ptc-spacer-medium"]: this.breakpoint === "medium",
|
|
1376
|
+
["ptc-spacer-large"]: this.breakpoint === "large",
|
|
1377
|
+
["ptc-spacer-x-large"]: this.breakpoint === "x-large",
|
|
1378
|
+
["ptc-spacer-xx-large"]: this.breakpoint === "xx-large",
|
|
1379
|
+
["ptc-spacer-xxx-large"]: this.breakpoint === "xxx-large",
|
|
1380
|
+
};
|
|
1381
|
+
}
|
|
1382
|
+
};
|
|
1383
|
+
PtcSpacer.style = ptcSpacerCss;
|
|
1384
|
+
|
|
1385
|
+
const ptcTitleCss = "h1.sc-ptc-title,h2.sc-ptc-title,h3.sc-ptc-title,h4.sc-ptc-title,h5.sc-ptc-title,h6.sc-ptc-title,p.sc-ptc-title,ul.sc-ptc-title,li.sc-ptc-title,ptc-subnav.sc-ptc-title,ptc-tab-list.sc-ptc-title,ptc-link.sc-ptc-title,ptc-square-card.sc-ptc-title,.hyphenate-text.sc-ptc-title,ptc-footer.sc-ptc-title{word-break:break-word;hyphens:manual;-webkit-hyphens:manual;-moz-hyphens:manual;-ms-hyphens:manual}@supports (hyphenate-limit-chars: 12 3 3){h1.sc-ptc-title,h2.sc-ptc-title,h3.sc-ptc-title,h4.sc-ptc-title,h5.sc-ptc-title,h6.sc-ptc-title,p.sc-ptc-title,ul.sc-ptc-title,li.sc-ptc-title,ptc-subnav.sc-ptc-title,ptc-tab-list.sc-ptc-title,ptc-link.sc-ptc-title,ptc-square-card.sc-ptc-title,.hyphenate-text.sc-ptc-title,ptc-footer.sc-ptc-title{hyphens:auto;-webkit-hyphenate-limit-before:3;-webkit-hyphenate-limit-after:3;hyphenate-limit-chars:12 3 3;hyphenate-limit-lines:2;hyphenate-limit-last:always;hyphenate-limit-zone:6%;-webkit-hyphens:auto;-webkit-hyphenate-limit-before:3;-webkit-hyphenate-limit-after:3;-webkit-hyphenate-limit-chars:12 3 3;-webkit-hyphenate-limit-lines:2;-moz-hyphens:auto;-moz-hyphenate-limit-chars:12 3 3;-moz-hyphenate-limit-lines:2;-ms-hyphens:auto;-ms-hyphenate-limit-chars:12 3 3;-ms-hyphenate-limit-lines:2}}div.center.sc-ptc-title{text-align:center}div.center.dotted.sc-ptc-title h1.sc-ptc-title::before,div.center.dotted.sc-ptc-title h2.sc-ptc-title::before,div.center.dotted.sc-ptc-title h3.sc-ptc-title::before,div.center.dotted.sc-ptc-title h4.sc-ptc-title::before,div.center.dotted.sc-ptc-title h5.sc-ptc-title::before,div.center.dotted.sc-ptc-title h6.sc-ptc-title::before{left:50%;transform:translateX(-50%)}div.left.sc-ptc-title{text-align:left;width:100%}div.left.dotted.sc-ptc-title h1.sc-ptc-title::before,div.left.dotted.sc-ptc-title h2.sc-ptc-title::before,div.left.dotted.sc-ptc-title h3.sc-ptc-title::before,div.left.dotted.sc-ptc-title h4.sc-ptc-title::before,div.left.dotted.sc-ptc-title h5.sc-ptc-title::before,div.left.dotted.sc-ptc-title h6.sc-ptc-title::before{left:0%}div.right.sc-ptc-title{text-align:right}div.right.dotted.sc-ptc-title h1.sc-ptc-title::before,div.right.dotted.sc-ptc-title h2.sc-ptc-title::before,div.right.dotted.sc-ptc-title h3.sc-ptc-title::before,div.right.dotted.sc-ptc-title h4.sc-ptc-title::before,div.right.dotted.sc-ptc-title h5.sc-ptc-title::before,div.right.dotted.sc-ptc-title h6.sc-ptc-title::before{right:0%}div.inherit.sc-ptc-title{text-align:inherit}div.dotted.sc-ptc-title h1.sc-ptc-title::before,div.dotted.sc-ptc-title h2.sc-ptc-title::before,div.dotted.sc-ptc-title h3.sc-ptc-title::before,div.dotted.sc-ptc-title h4.sc-ptc-title::before,div.dotted.sc-ptc-title h5.sc-ptc-title::before,div.dotted.sc-ptc-title h6.sc-ptc-title::before{content:\"\";position:absolute;top:-6px;width:30%;display:block;border-top:3px dashed var(--color-green-07)}div.solid.sc-ptc-title h1.sc-ptc-title,div.solid.sc-ptc-title h2.sc-ptc-title,div.solid.sc-ptc-title h3.sc-ptc-title,div.solid.sc-ptc-title h4.sc-ptc-title,div.solid.sc-ptc-title h5.sc-ptc-title,div.solid.sc-ptc-title h6.sc-ptc-title{padding-top:12px}div.solid.sc-ptc-title h1.sc-ptc-title::before,div.solid.sc-ptc-title h2.sc-ptc-title::before,div.solid.sc-ptc-title h3.sc-ptc-title::before,div.solid.sc-ptc-title h4.sc-ptc-title::before,div.solid.sc-ptc-title h5.sc-ptc-title::before,div.solid.sc-ptc-title h6.sc-ptc-title::before{content:\"\";position:absolute;width:100%;height:0.7px;background-color:var(--color-gray-03);opacity:0.9;left:0px;top:0}div.solid.sc-ptc-title h1.sc-ptc-title::after,div.solid.sc-ptc-title h2.sc-ptc-title::after,div.solid.sc-ptc-title h3.sc-ptc-title::after,div.solid.sc-ptc-title h4.sc-ptc-title::after,div.solid.sc-ptc-title h5.sc-ptc-title::after,div.solid.sc-ptc-title h6.sc-ptc-title::after{content:\"\";position:absolute;width:56px;height:2px;background-color:var(--color-green-07);top:-2px;left:0px}div.is-standard.sc-ptc-title h1.sc-ptc-title,div.is-standard.sc-ptc-title h2.sc-ptc-title,div.is-standard.sc-ptc-title h3.sc-ptc-title,div.is-standard.sc-ptc-title h4.sc-ptc-title,div.is-standard.sc-ptc-title h5.sc-ptc-title,div.is-standard.sc-ptc-title h6.sc-ptc-title{display:inline-block;position:relative}div.is-standard.sc-ptc-title h1.sc-ptc-title{font-size:var(--ptc-font-size-xxx-large);line-height:var(--ptc-line-height-densest);font-weight:var(--ptc-font-weight-extrabold);letter-spacing:0px;color:var(--color-gray-10)}@media only screen and (min-width: 768px){div.is-standard.sc-ptc-title h1.sc-ptc-title{font-size:var(--ptc-font-size-xxxx-large)}}div.is-standard.sc-ptc-title h2.sc-ptc-title{font-size:var(--ptc-font-size-x-large);line-height:var(--ptc-line-height-densest);font-weight:var(--ptc-font-weight-extrabold);color:var(--color-gray-10)}@media only screen and (min-width: 768px){div.is-standard.sc-ptc-title h2.sc-ptc-title{font-size:var(--ptc-font-size-xx-large)}}div.is-plm-hub.sc-ptc-title h1.sc-ptc-title,div.is-plm-hub.sc-ptc-title h2.sc-ptc-title,div.is-plm-hub.sc-ptc-title h3.sc-ptc-title,div.is-plm-hub.sc-ptc-title h4.sc-ptc-title,div.is-plm-hub.sc-ptc-title h5.sc-ptc-title,div.is-plm-hub.sc-ptc-title h6.sc-ptc-title{display:inline-block;position:relative;margin-block-start:0em;margin-block-end:0em;margin-inline-start:0px;margin-inline-end:0px;color:var(--color-white) !important}div.margin-flush.sc-ptc-title{margin-top:0;margin-bottom:0}div.margin-flush.sc-ptc-title h1.sc-ptc-title,div.margin-flush.sc-ptc-title h2.sc-ptc-title,div.margin-flush.sc-ptc-title h3.sc-ptc-title,div.margin-flush.sc-ptc-title h4.sc-ptc-title,div.margin-flush.sc-ptc-title h5.sc-ptc-title{margin-top:0;margin-bottom:0}div.margin-top-2.sc-ptc-title{margin-top:var(--ptc-element-spacing-02);margin-bottom:0}div.margin-top-3.sc-ptc-title{margin-top:var(--ptc-element-spacing-03);margin-bottom:0}div.margin-top-4.sc-ptc-title{margin-top:var(--ptc-element-spacing-04);margin-bottom:0}div.margin-top-5.sc-ptc-title{margin-top:var(--ptc-element-spacing-05);margin-bottom:0}div.margin-top-6.sc-ptc-title{margin-top:var(--ptc-element-spacing-06);margin-bottom:0}div.margin-bottom-2.sc-ptc-title{margin-bottom:var(--ptc-element-spacing-02);margin-top:0}div.margin-bottom-3.sc-ptc-title{margin-bottom:var(--ptc-element-spacing-03);margin-top:0}div.margin-bottom-4.sc-ptc-title{margin-bottom:var(--ptc-element-spacing-04);margin-top:0}div.margin-bottom-5.sc-ptc-title{margin-bottom:var(--ptc-element-spacing-05);margin-top:0}div.margin-bottom-6.sc-ptc-title{margin-bottom:var(--ptc-element-spacing-06);margin-top:0}div.margin-2.sc-ptc-title{margin-top:var(--ptc-element-spacing-02);margin-bottom:var(--ptc-element-spacing-02)}div.margin-3.sc-ptc-title{margin-top:var(--ptc-element-spacing-03);margin-bottom:var(--ptc-element-spacing-03)}div.margin-4.sc-ptc-title{margin-top:var(--ptc-element-spacing-04);margin-bottom:var(--ptc-element-spacing-04)}div.margin-5.sc-ptc-title{margin-top:var(--ptc-element-spacing-05);margin-bottom:var(--ptc-element-spacing-05)}div.margin-5.sc-ptc-title h4.sc-ptc-title{margin-top:0;margin-bottom:0}div.margin-6.sc-ptc-title{margin-top:var(--ptc-element-spacing-06);margin-bottom:var(--ptc-element-spacing-06)}div.margin-9.sc-ptc-title{margin-top:var(--ptc-element-spacing-09);margin-bottom:var(--ptc-element-spacing-09)}div.green.sc-ptc-title h1.sc-ptc-title,div.green.sc-ptc-title h2.sc-ptc-title,div.green.sc-ptc-title h3.sc-ptc-title,div.green.sc-ptc-title h4.sc-ptc-title,div.green.sc-ptc-title h5.sc-ptc-title,div.green.sc-ptc-title h6.sc-ptc-title{text-shadow:0px 0px var(--ptc-element-spacing-03) var(--color-green-07)}div.blue.sc-ptc-title h1.sc-ptc-title,div.blue.sc-ptc-title h2.sc-ptc-title,div.blue.sc-ptc-title h3.sc-ptc-title,div.blue.sc-ptc-title h4.sc-ptc-title,div.blue.sc-ptc-title h5.sc-ptc-title,div.blue.sc-ptc-title h6.sc-ptc-title{text-shadow:0px 0px var(--ptc-element-spacing-03) var(--color-blue-07)}div.red.sc-ptc-title h1.sc-ptc-title,div.red.sc-ptc-title h2.sc-ptc-title,div.red.sc-ptc-title h3.sc-ptc-title,div.red.sc-ptc-title h4.sc-ptc-title,div.red.sc-ptc-title h5.sc-ptc-title,div.red.sc-ptc-title h6.sc-ptc-title{text-shadow:0px 0px var(--ptc-element-spacing-03) var(--color-red-07)}div.orange.sc-ptc-title h1.sc-ptc-title,div.orange.sc-ptc-title h2.sc-ptc-title,div.orange.sc-ptc-title h3.sc-ptc-title,div.orange.sc-ptc-title h4.sc-ptc-title,div.orange.sc-ptc-title h5.sc-ptc-title,div.orange.sc-ptc-title h6.sc-ptc-title{text-shadow:0px 0px var(--ptc-element-spacing-03) var(--color-orange-07)}div.slate-grey.sc-ptc-title h1.sc-ptc-title,div.slate-grey.sc-ptc-title h2.sc-ptc-title,div.slate-grey.sc-ptc-title h3.sc-ptc-title,div.slate-grey.sc-ptc-title h4.sc-ptc-title,div.slate-grey.sc-ptc-title h5.sc-ptc-title,div.slate-grey.sc-ptc-title h6.sc-ptc-title{text-shadow:0px 0px var(--ptc-element-spacing-03) var(--color-gray-07)}div.w-3.sc-ptc-title h1.sc-ptc-title,div.w-3.sc-ptc-title h2.sc-ptc-title,div.w-3.sc-ptc-title h3.sc-ptc-title,div.w-3.sc-ptc-title h4.sc-ptc-title,div.w-3.sc-ptc-title h5.sc-ptc-title,div.w-3.sc-ptc-title h6.sc-ptc-title{font-weight:var(--ptc-font-weight-thin)}div.w-4.sc-ptc-title h1.sc-ptc-title,div.w-4.sc-ptc-title h2.sc-ptc-title,div.w-4.sc-ptc-title h3.sc-ptc-title,div.w-4.sc-ptc-title h4.sc-ptc-title,div.w-4.sc-ptc-title h5.sc-ptc-title,div.w-4.sc-ptc-title h6.sc-ptc-title{font-weight:var(--ptc-font-weight-regular)}div.w-5.sc-ptc-title h1.sc-ptc-title,div.w-5.sc-ptc-title h2.sc-ptc-title,div.w-5.sc-ptc-title h3.sc-ptc-title,div.w-5.sc-ptc-title h4.sc-ptc-title,div.w-5.sc-ptc-title h5.sc-ptc-title,div.w-5.sc-ptc-title h6.sc-ptc-title{font-weight:var(--ptc-font-weight-medium)}div.w-6.sc-ptc-title h1.sc-ptc-title,div.w-6.sc-ptc-title h2.sc-ptc-title,div.w-6.sc-ptc-title h3.sc-ptc-title,div.w-6.sc-ptc-title h4.sc-ptc-title,div.w-6.sc-ptc-title h5.sc-ptc-title,div.w-6.sc-ptc-title h6.sc-ptc-title{font-weight:var(--ptc-font-weight-semibold)}div.w-7.sc-ptc-title h1.sc-ptc-title,div.w-7.sc-ptc-title h2.sc-ptc-title,div.w-7.sc-ptc-title h3.sc-ptc-title,div.w-7.sc-ptc-title h4.sc-ptc-title,div.w-7.sc-ptc-title h5.sc-ptc-title,div.w-7.sc-ptc-title h6.sc-ptc-title{font-weight:var(--ptc-font-weight-bold)}div.w-8.sc-ptc-title h1.sc-ptc-title,div.w-8.sc-ptc-title h2.sc-ptc-title,div.w-8.sc-ptc-title h3.sc-ptc-title,div.w-8.sc-ptc-title h4.sc-ptc-title,div.w-8.sc-ptc-title h5.sc-ptc-title,div.w-8.sc-ptc-title h6.sc-ptc-title{font-weight:var(--ptc-font-weight-extrabold)}div.w-9.sc-ptc-title h1.sc-ptc-title,div.w-9.sc-ptc-title h2.sc-ptc-title,div.w-9.sc-ptc-title h3.sc-ptc-title,div.w-9.sc-ptc-title h4.sc-ptc-title,div.w-9.sc-ptc-title h5.sc-ptc-title,div.w-9.sc-ptc-title h6.sc-ptc-title{font-weight:var(--ptc-font-weight-black)}div.xx-small.sc-ptc-title h1.sc-ptc-title,div.xx-small.sc-ptc-title h2.sc-ptc-title,div.xx-small.sc-ptc-title h3.sc-ptc-title,div.xx-small.sc-ptc-title h4.sc-ptc-title,div.xx-small.sc-ptc-title h5.sc-ptc-title,div.xx-small.sc-ptc-title h6.sc-ptc-title{font-size:var(--ptc-font-size-xx-small)}div.x-small.sc-ptc-title h1.sc-ptc-title,div.x-small.sc-ptc-title h2.sc-ptc-title,div.x-small.sc-ptc-title h3.sc-ptc-title,div.x-small.sc-ptc-title h4.sc-ptc-title,div.x-small.sc-ptc-title h5.sc-ptc-title,div.x-small.sc-ptc-title h6.sc-ptc-title{font-size:var(--ptc-font-size-x-small)}div.small.sc-ptc-title h1.sc-ptc-title,div.small.sc-ptc-title h2.sc-ptc-title,div.small.sc-ptc-title h3.sc-ptc-title,div.small.sc-ptc-title h4.sc-ptc-title,div.small.sc-ptc-title h5.sc-ptc-title,div.small.sc-ptc-title h6.sc-ptc-title{font-size:var(--ptc-font-size-small)}div.medium.sc-ptc-title h1.sc-ptc-title,div.medium.sc-ptc-title h2.sc-ptc-title,div.medium.sc-ptc-title h3.sc-ptc-title,div.medium.sc-ptc-title h4.sc-ptc-title,div.medium.sc-ptc-title h5.sc-ptc-title,div.medium.sc-ptc-title h6.sc-ptc-title{font-size:var(--ptc-font-size-medium)}div.large.sc-ptc-title h1.sc-ptc-title,div.large.sc-ptc-title h2.sc-ptc-title,div.large.sc-ptc-title h3.sc-ptc-title,div.large.sc-ptc-title h4.sc-ptc-title,div.large.sc-ptc-title h5.sc-ptc-title,div.large.sc-ptc-title h6.sc-ptc-title{font-size:var(--ptc-font-size-large)}div.large.sc-ptc-title h3.sc-ptc-title{font-size:var(--ptc-font-size-medium)}@media only screen and (min-width: 768px){div.large.sc-ptc-title h3.sc-ptc-title{font-size:var(--ptc-font-size-large)}}div.x-large.sc-ptc-title h1.sc-ptc-title,div.x-large.sc-ptc-title h2.sc-ptc-title,div.x-large.sc-ptc-title h3.sc-ptc-title,div.x-large.sc-ptc-title h4.sc-ptc-title,div.x-large.sc-ptc-title h5.sc-ptc-title,div.x-large.sc-ptc-title h6.sc-ptc-title{font-size:var(--ptc-font-size-x-large)}div.xx-large.sc-ptc-title h1.sc-ptc-title,div.xx-large.sc-ptc-title h2.sc-ptc-title,div.xx-large.sc-ptc-title h3.sc-ptc-title,div.xx-large.sc-ptc-title h4.sc-ptc-title{font-size:var(--ptc-font-size-x-large)}@media only screen and (min-width: 768px){div.xx-large.sc-ptc-title h1.sc-ptc-title,div.xx-large.sc-ptc-title h2.sc-ptc-title,div.xx-large.sc-ptc-title h3.sc-ptc-title,div.xx-large.sc-ptc-title h4.sc-ptc-title{font-size:var(--ptc-font-size-xx-large)}}div.xxx-large.sc-ptc-title h1.sc-ptc-title,div.xxx-large.sc-ptc-title h2.sc-ptc-title,div.xxx-large.sc-ptc-title h3.sc-ptc-title,div.xxx-large.sc-ptc-title h4.sc-ptc-title,div.xxx-large.sc-ptc-title h5.sc-ptc-title,div.xxx-large.sc-ptc-title h6.sc-ptc-title{font-size:var(--ptc-font-size-xx-large)}@media only screen and (min-width: 768px){div.xxx-large.sc-ptc-title h1.sc-ptc-title,div.xxx-large.sc-ptc-title h2.sc-ptc-title,div.xxx-large.sc-ptc-title h3.sc-ptc-title,div.xxx-large.sc-ptc-title h4.sc-ptc-title,div.xxx-large.sc-ptc-title h5.sc-ptc-title,div.xxx-large.sc-ptc-title h6.sc-ptc-title{font-size:var(--ptc-font-size-xxx-large)}}div.xxxx-large.sc-ptc-title h1.sc-ptc-title,div.xxxx-large.sc-ptc-title h2.sc-ptc-title,div.xxxx-large.sc-ptc-title h3.sc-ptc-title,div.xxxx-large.sc-ptc-title h4.sc-ptc-title,div.xxxx-large.sc-ptc-title h5.sc-ptc-title,div.xxxx-large.sc-ptc-title h6.sc-ptc-title{font-size:var(--ptc-font-size-xxx-large)}@media only screen and (min-width: 768px){div.xxxx-large.sc-ptc-title h1.sc-ptc-title,div.xxxx-large.sc-ptc-title h2.sc-ptc-title,div.xxxx-large.sc-ptc-title h3.sc-ptc-title,div.xxxx-large.sc-ptc-title h4.sc-ptc-title,div.xxxx-large.sc-ptc-title h5.sc-ptc-title,div.xxxx-large.sc-ptc-title h6.sc-ptc-title{font-size:var(--ptc-font-size-xxxx-large)}}div.xx-large-allbp.sc-ptc-title h1.sc-ptc-title,div.xx-large-allbp.sc-ptc-title h2.sc-ptc-title,div.xx-large-allbp.sc-ptc-title h3.sc-ptc-title,div.xx-large-allbp.sc-ptc-title h4.sc-ptc-title,div.xx-large-allbp.sc-ptc-title h5.sc-ptc-title,div.xx-large-allbp.sc-ptc-title h6.sc-ptc-title{font-size:var(--ptc-font-size-xx-large)}div.xxxx-large-allbp.sc-ptc-title h1.sc-ptc-title,div.xxxx-large-allbp.sc-ptc-title h2.sc-ptc-title,div.xxxx-large-allbp.sc-ptc-title h3.sc-ptc-title,div.xxxx-large-allbp.sc-ptc-title h4.sc-ptc-title,div.xxxx-large-allbp.sc-ptc-title h5.sc-ptc-title,div.xxxx-large-allbp.sc-ptc-title h6.sc-ptc-title{font-size:var(--ptc-font-size-xxxx-large)}div.xxxx-large-desktop.sc-ptc-title h1.sc-ptc-title,div.xxxx-large-desktop.sc-ptc-title h2.sc-ptc-title,div.xxxx-large-desktop.sc-ptc-title h3.sc-ptc-title,div.xxxx-large-desktop.sc-ptc-title h4.sc-ptc-title,div.xxxx-large-desktop.sc-ptc-title h5.sc-ptc-title,div.xxxx-large-desktop.sc-ptc-title h6.sc-ptc-title{font-size:var(--ptc-font-size-xxx-large)}@media only screen and (min-width: 992px){div.xxxx-large-desktop.sc-ptc-title h1.sc-ptc-title,div.xxxx-large-desktop.sc-ptc-title h2.sc-ptc-title,div.xxxx-large-desktop.sc-ptc-title h3.sc-ptc-title,div.xxxx-large-desktop.sc-ptc-title h4.sc-ptc-title,div.xxxx-large-desktop.sc-ptc-title h5.sc-ptc-title,div.xxxx-large-desktop.sc-ptc-title h6.sc-ptc-title{font-size:var(--ptc-font-size-xxxx-large)}}div.xxxx-large-store.sc-ptc-title h1.sc-ptc-title,div.xxxx-large-store.sc-ptc-title h2.sc-ptc-title,div.xxxx-large-store.sc-ptc-title h3.sc-ptc-title,div.xxxx-large-store.sc-ptc-title h4.sc-ptc-title,div.xxxx-large-store.sc-ptc-title h5.sc-ptc-title,div.xxxx-large-store.sc-ptc-title h6.sc-ptc-title{font-size:var(--ptc-font-size-xxx-large)}@media only screen and (min-width: 992px){div.xxxx-large-store.sc-ptc-title h1.sc-ptc-title,div.xxxx-large-store.sc-ptc-title h2.sc-ptc-title,div.xxxx-large-store.sc-ptc-title h3.sc-ptc-title,div.xxxx-large-store.sc-ptc-title h4.sc-ptc-title,div.xxxx-large-store.sc-ptc-title h5.sc-ptc-title,div.xxxx-large-store.sc-ptc-title h6.sc-ptc-title{font-size:var(--ptc-font-size-xxxx-large)}}div.densest.sc-ptc-title h1.sc-ptc-title,div.densest.sc-ptc-title h2.sc-ptc-title,div.densest.sc-ptc-title h3.sc-ptc-title,div.densest.sc-ptc-title h4.sc-ptc-title,div.densest.sc-ptc-title h5.sc-ptc-title,div.densest.sc-ptc-title h6.sc-ptc-title{line-height:var(--ptc-line-height-densest)}div.denser.sc-ptc-title h1.sc-ptc-title,div.denser.sc-ptc-title h2.sc-ptc-title,div.denser.sc-ptc-title h3.sc-ptc-title,div.denser.sc-ptc-title h4.sc-ptc-title,div.denser.sc-ptc-title h5.sc-ptc-title,div.denser.sc-ptc-title h6.sc-ptc-title{line-height:var(--ptc-line-height-denser)}div.dense.sc-ptc-title h1.sc-ptc-title,div.dense.sc-ptc-title h2.sc-ptc-title,div.dense.sc-ptc-title h3.sc-ptc-title,div.dense.sc-ptc-title h4.sc-ptc-title,div.dense.sc-ptc-title h5.sc-ptc-title,div.dense.sc-ptc-title h6.sc-ptc-title{line-height:var(--ptc-line-height-dense)}div.normal.sc-ptc-title h1.sc-ptc-title,div.normal.sc-ptc-title h2.sc-ptc-title,div.normal.sc-ptc-title h3.sc-ptc-title,div.normal.sc-ptc-title h4.sc-ptc-title,div.normal.sc-ptc-title h5.sc-ptc-title,div.normal.sc-ptc-title h6.sc-ptc-title{line-height:var(--ptc-line-height-normal)}div.loose.sc-ptc-title h1.sc-ptc-title,div.loose.sc-ptc-title h2.sc-ptc-title,div.loose.sc-ptc-title h3.sc-ptc-title,div.loose.sc-ptc-title h4.sc-ptc-title,div.loose.sc-ptc-title h5.sc-ptc-title,div.loose.sc-ptc-title h6.sc-ptc-title{line-height:var(--ptc-line-height-loose)}div.looser.sc-ptc-title h1.sc-ptc-title,div.looser.sc-ptc-title h2.sc-ptc-title,div.looser.sc-ptc-title h3.sc-ptc-title,div.looser.sc-ptc-title h4.sc-ptc-title,div.looser.sc-ptc-title h5.sc-ptc-title,div.looser.sc-ptc-title h6.sc-ptc-title{line-height:var(--ptc-line-height-looser)}div.paragraph.sc-ptc-title h1.sc-ptc-title,div.paragraph.sc-ptc-title h2.sc-ptc-title,div.paragraph.sc-ptc-title h3.sc-ptc-title,div.paragraph.sc-ptc-title h4.sc-ptc-title,div.paragraph.sc-ptc-title h5.sc-ptc-title,div.paragraph.sc-ptc-title h6.sc-ptc-title{line-height:var(--ptc-line-height-paragraph)}div.black.sc-ptc-title h1.sc-ptc-title,div.black.sc-ptc-title h2.sc-ptc-title,div.black.sc-ptc-title h3.sc-ptc-title,div.black.sc-ptc-title h4.sc-ptc-title,div.black.sc-ptc-title h5.sc-ptc-title,div.black.sc-ptc-title h6.sc-ptc-title{color:var(--color-black)}div.white.sc-ptc-title h1.sc-ptc-title,div.white.sc-ptc-title h2.sc-ptc-title,div.white.sc-ptc-title h3.sc-ptc-title,div.white.sc-ptc-title h4.sc-ptc-title,div.white.sc-ptc-title h5.sc-ptc-title,div.white.sc-ptc-title h6.sc-ptc-title{color:var(--color-white)}div.gray-1.sc-ptc-title h1.sc-ptc-title,div.gray-1.sc-ptc-title h2.sc-ptc-title,div.gray-1.sc-ptc-title h3.sc-ptc-title,div.gray-1.sc-ptc-title h4.sc-ptc-title,div.gray-1.sc-ptc-title h5.sc-ptc-title,div.gray-1.sc-ptc-title h6.sc-ptc-title{color:var(--color-gray-01)}div.gray.sc-ptc-title h1.sc-ptc-title,div.gray.sc-ptc-title h2.sc-ptc-title,div.gray.sc-ptc-title h3.sc-ptc-title,div.gray.sc-ptc-title h4.sc-ptc-title,div.gray.sc-ptc-title h5.sc-ptc-title,div.gray.sc-ptc-title h6.sc-ptc-title{color:var(--color-gray-10)}div.gray-darker.sc-ptc-title h1.sc-ptc-title,div.gray-darker.sc-ptc-title h2.sc-ptc-title,div.gray-darker.sc-ptc-title h3.sc-ptc-title,div.gray-darker.sc-ptc-title h4.sc-ptc-title,div.gray-darker.sc-ptc-title h5.sc-ptc-title,div.gray-darker.sc-ptc-title h6.sc-ptc-title{color:var(--color-gray-11)}div.ellipsis-boxing.sc-ptc-title h1.sc-ptc-title,div.ellipsis-boxing.sc-ptc-title h2.sc-ptc-title,div.ellipsis-boxing.sc-ptc-title h3.sc-ptc-title,div.ellipsis-boxing.sc-ptc-title h4.sc-ptc-title,div.ellipsis-boxing.sc-ptc-title h5.sc-ptc-title,div.ellipsis-boxing.sc-ptc-title h6.sc-ptc-title{display:-webkit-box;-webkit-line-clamp:1;-webkit-box-orient:vertical;overflow:hidden;text-overflow:ellipsis;overflow-wrap:break-word;padding-bottom:0}div.block.sc-ptc-title h1.sc-ptc-title,div.block.sc-ptc-title h2.sc-ptc-title,div.block.sc-ptc-title h3.sc-ptc-title,div.block.sc-ptc-title h4.sc-ptc-title,div.block.sc-ptc-title h5.sc-ptc-title,div.block.sc-ptc-title h6.sc-ptc-title{display:block}.line-clamp-title.sc-ptc-title{display:-webkit-box !important;-webkit-box-orient:vertical;overflow:hidden}.sc-ptc-title-h{display:block}.sc-ptc-title-h div.sc-ptc-title{position:relative}";
|
|
1386
|
+
|
|
1387
|
+
const PtcTitle = class {
|
|
1388
|
+
constructor(hostRef) {
|
|
1389
|
+
index.registerInstance(this, hostRef);
|
|
1390
|
+
this.isPlmHub = false;
|
|
1391
|
+
this.type = "h2";
|
|
1392
|
+
this.textAlign = undefined;
|
|
1393
|
+
this.upperline = "dotted";
|
|
1394
|
+
this.titleShadow = undefined;
|
|
1395
|
+
this.titleColor = "gray";
|
|
1396
|
+
this.titleMargin = undefined;
|
|
1397
|
+
this.titleWeight = undefined;
|
|
1398
|
+
this.titleSize = undefined;
|
|
1399
|
+
this.titleHeight = "densest";
|
|
1400
|
+
this.styles = undefined;
|
|
1401
|
+
this.ellipsisLineCutoff = undefined;
|
|
1402
|
+
this.titleDisplay = "inline-block";
|
|
1403
|
+
this.seoCompatibilityMode = false;
|
|
1404
|
+
this.tooltipZIndex = "auto";
|
|
1405
|
+
this.tooltipPosition = "bottom";
|
|
1406
|
+
this.tooltipTheme = "standard";
|
|
1407
|
+
this.enableTooltip = false;
|
|
1408
|
+
this.maxChars = undefined;
|
|
1409
|
+
this.maxLines = undefined;
|
|
1410
|
+
this.hideTooltipOnMobile = false;
|
|
1411
|
+
this.ismob = undefined;
|
|
1412
|
+
this.tooltipWidth = "default";
|
|
1413
|
+
}
|
|
1414
|
+
// Tooltip Properties ends
|
|
1415
|
+
componentDidLoad() {
|
|
1416
|
+
if (this.hideTooltipOnMobile) {
|
|
1417
|
+
this.el.classList.add("hide-tooltip-on-mobile");
|
|
1418
|
+
}
|
|
1419
|
+
this.el.addEventListener("mouseenter", () => this.toggleTitleTooltip(true));
|
|
1420
|
+
this.el.addEventListener("mouseleave", () => this.toggleTitleTooltip(false));
|
|
1421
|
+
}
|
|
1422
|
+
render() {
|
|
1423
|
+
if (this.seoCompatibilityMode) {
|
|
1424
|
+
return this.seoCompRender();
|
|
1425
|
+
}
|
|
1426
|
+
else {
|
|
1427
|
+
return this.standardRender();
|
|
1428
|
+
}
|
|
1429
|
+
}
|
|
1430
|
+
getSortedText(content) {
|
|
1431
|
+
if (!this.enableTooltip)
|
|
1432
|
+
return;
|
|
1433
|
+
const trimmedContent = content.trim();
|
|
1434
|
+
const shouldTruncate = trimmedContent.length > this.maxChars && !this.maxLines;
|
|
1435
|
+
return shouldTruncate
|
|
1436
|
+
? trimmedContent.slice(0, this.maxChars) + "..."
|
|
1437
|
+
: trimmedContent;
|
|
1438
|
+
}
|
|
1439
|
+
toggleTitleTooltip(show) {
|
|
1440
|
+
var _a;
|
|
1441
|
+
const tooltipClass = "tooltip-box";
|
|
1442
|
+
const existingTooltip = this.el.querySelector(`.${tooltipClass}`);
|
|
1443
|
+
const text = this.el.querySelectorAll(".line-clamp-title");
|
|
1444
|
+
let maxLinesShowCheck = false;
|
|
1445
|
+
if (text) {
|
|
1446
|
+
text.forEach((t) => {
|
|
1447
|
+
maxLinesShowCheck = t.scrollHeight > t.clientHeight;
|
|
1448
|
+
});
|
|
1449
|
+
}
|
|
1450
|
+
const ifCharExceeds = this.tooltipText &&
|
|
1451
|
+
this.tooltipText.length > this.maxChars &&
|
|
1452
|
+
!this.maxLines;
|
|
1453
|
+
const ifLinesExceeds = this.maxLines && maxLinesShowCheck;
|
|
1454
|
+
if (show && this.enableTooltip) {
|
|
1455
|
+
if ((!existingTooltip && ifCharExceeds) ||
|
|
1456
|
+
(!existingTooltip && ifLinesExceeds)) {
|
|
1457
|
+
const tooltipMarkup = document.createElement("div");
|
|
1458
|
+
tooltipMarkup.className = tooltipClass;
|
|
1459
|
+
tooltipMarkup.innerText = this.tooltipText;
|
|
1460
|
+
tooltipMarkup.style.zIndex = String(this.tooltipZIndex); // Ensures zIndex is a string
|
|
1461
|
+
tooltipMarkup.classList.add(this.tooltipPosition, this.tooltipTheme, this.tooltipWidth);
|
|
1462
|
+
if (this.hideTooltipOnMobile) {
|
|
1463
|
+
tooltipMarkup.classList.add("hide-tooltip-mobile");
|
|
1464
|
+
}
|
|
1465
|
+
(_a = this.el.querySelector("div")) === null || _a === void 0 ? void 0 : _a.appendChild(tooltipMarkup);
|
|
1466
|
+
}
|
|
1467
|
+
}
|
|
1468
|
+
else {
|
|
1469
|
+
existingTooltip === null || existingTooltip === void 0 ? void 0 : existingTooltip.remove();
|
|
1470
|
+
}
|
|
1471
|
+
}
|
|
1472
|
+
seoCompRender() {
|
|
1473
|
+
const classMap = this.getCssClassMap();
|
|
1474
|
+
const cutOff = this.getLineCuttoff();
|
|
1475
|
+
const [TagType, firstChild] = utils.getSeoTagType(this.el, this.type);
|
|
1476
|
+
let html = firstChild && firstChild.innerHTML;
|
|
1477
|
+
// added for tooltip
|
|
1478
|
+
this.tooltipText = html.trim();
|
|
1479
|
+
let eleText = firstChild && firstChild.innerText;
|
|
1480
|
+
html = this.enableTooltip ? this.getSortedText(eleText) : html;
|
|
1481
|
+
if (this.el == firstChild) {
|
|
1482
|
+
this.el.innerHTML = "";
|
|
1483
|
+
}
|
|
1484
|
+
return (index.h(index.Host, null, this.styles && index.h("style", null, this.styles), index.h("div", { class: classMap }, index.h(TagType, { innerHTML: html, style: cutOff, class: this.maxLines && this.maxLines > 0
|
|
1485
|
+
? "line-clamp-title"
|
|
1486
|
+
: "" }))));
|
|
1487
|
+
}
|
|
1488
|
+
standardRender() {
|
|
1489
|
+
const classMap = this.getCssClassMap();
|
|
1490
|
+
const cutOff = this.getLineCuttoff();
|
|
1491
|
+
let TagType;
|
|
1492
|
+
switch (this.type) {
|
|
1493
|
+
case "h1":
|
|
1494
|
+
TagType = "h1";
|
|
1495
|
+
break;
|
|
1496
|
+
case "h3":
|
|
1497
|
+
TagType = "h3";
|
|
1498
|
+
break;
|
|
1499
|
+
case "h4":
|
|
1500
|
+
TagType = "h4";
|
|
1501
|
+
break;
|
|
1502
|
+
case "h5":
|
|
1503
|
+
TagType = "h5";
|
|
1504
|
+
break;
|
|
1505
|
+
case "h6":
|
|
1506
|
+
TagType = "h6";
|
|
1507
|
+
break;
|
|
1508
|
+
default:
|
|
1509
|
+
TagType = "h2";
|
|
1510
|
+
}
|
|
1511
|
+
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)))));
|
|
1512
|
+
}
|
|
1513
|
+
getCssClassMap() {
|
|
1514
|
+
return {
|
|
1515
|
+
[this.textAlign]: !!this.textAlign ? true : false,
|
|
1516
|
+
[this.upperline]: true,
|
|
1517
|
+
[this.isPlmHub ? "is-plm-hub" : "is-standard"]: true,
|
|
1518
|
+
[this.titleMargin]: !!this.titleMargin ? true : false,
|
|
1519
|
+
[this.titleShadow]: !!this.titleShadow ? true : false,
|
|
1520
|
+
[this.titleWeight]: !!this.titleWeight ? true : false,
|
|
1521
|
+
[this.titleSize]: !!this.titleSize ? true : false,
|
|
1522
|
+
[this.titleHeight]: !!this.titleHeight ? true : false,
|
|
1523
|
+
[this.titleColor]: !!this.titleColor ? true : false,
|
|
1524
|
+
["ellipsis-boxing"]: this.ellipsisLineCutoff && this.ellipsisLineCutoff > 0,
|
|
1525
|
+
[this.titleDisplay]: !!this.titleDisplay ? true : false,
|
|
1526
|
+
};
|
|
1527
|
+
}
|
|
1528
|
+
getLineCuttoff() {
|
|
1529
|
+
const lineClamp = this.ellipsisLineCutoff > 0
|
|
1530
|
+
? this.ellipsisLineCutoff
|
|
1531
|
+
: this.maxLines;
|
|
1532
|
+
return lineClamp > 0 ? { "-webkit-line-clamp": `${lineClamp}` } : {};
|
|
1533
|
+
}
|
|
1534
|
+
get el() { return index.getElement(this); }
|
|
1535
|
+
};
|
|
1536
|
+
PtcTitle.style = ptcTitleCss;
|
|
1537
|
+
|
|
1538
|
+
const ptcTooltipCss = "h1.sc-ptc-tooltip,h2.sc-ptc-tooltip,h3.sc-ptc-tooltip,h4.sc-ptc-tooltip,h5.sc-ptc-tooltip,h6.sc-ptc-tooltip,p.sc-ptc-tooltip,ul.sc-ptc-tooltip,li.sc-ptc-tooltip,ptc-subnav.sc-ptc-tooltip,ptc-tab-list.sc-ptc-tooltip,ptc-link.sc-ptc-tooltip,ptc-square-card.sc-ptc-tooltip,.hyphenate-text.sc-ptc-tooltip,ptc-footer.sc-ptc-tooltip{word-break:break-word;hyphens:manual;-webkit-hyphens:manual;-moz-hyphens:manual;-ms-hyphens:manual}@supports (hyphenate-limit-chars: 12 3 3){h1.sc-ptc-tooltip,h2.sc-ptc-tooltip,h3.sc-ptc-tooltip,h4.sc-ptc-tooltip,h5.sc-ptc-tooltip,h6.sc-ptc-tooltip,p.sc-ptc-tooltip,ul.sc-ptc-tooltip,li.sc-ptc-tooltip,ptc-subnav.sc-ptc-tooltip,ptc-tab-list.sc-ptc-tooltip,ptc-link.sc-ptc-tooltip,ptc-square-card.sc-ptc-tooltip,.hyphenate-text.sc-ptc-tooltip,ptc-footer.sc-ptc-tooltip{hyphens:auto;-webkit-hyphenate-limit-before:3;-webkit-hyphenate-limit-after:3;hyphenate-limit-chars:12 3 3;hyphenate-limit-lines:2;hyphenate-limit-last:always;hyphenate-limit-zone:6%;-webkit-hyphens:auto;-webkit-hyphenate-limit-before:3;-webkit-hyphenate-limit-after:3;-webkit-hyphenate-limit-chars:12 3 3;-webkit-hyphenate-limit-lines:2;-moz-hyphens:auto;-moz-hyphenate-limit-chars:12 3 3;-moz-hyphenate-limit-lines:2;-ms-hyphens:auto;-ms-hyphenate-limit-chars:12 3 3;-ms-hyphenate-limit-lines:2}}.sc-ptc-tooltip-h{position:relative}.inline.sc-ptc-tooltip-h{display:inline}.inline.sc-ptc-tooltip-h .text-content.sc-ptc-tooltip{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}.tooltip.sc-ptc-tooltip span.sc-ptc-tooltip{word-break:initial}@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-hyperlink)}.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(60%, 8px) !important}@media screen and (min-width: 992px){.tooltip.right{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)}.tooltip.side-left.sc-ptc-tooltip{bottom:12px;transform:translateX(-112%)}@media only screen and (min-width: 768px){.tooltip.side-left.sc-ptc-tooltip{bottom:4px}}.tooltip.side-left.sc-ptc-tooltip::after{top:50%;right:-15px;transform:translateY(-50%);border:8px solid transparent;border-left:8px solid var(--color-gray-09)}.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%}}.no-overflow.sc-ptc-tooltip-h .tooltip.sc-ptc-tooltip{display:none !important}.no-overflow.sc-ptc-tooltip-h .truncated.sc-ptc-tooltip.sc-ptc-tooltip{cursor:pointer}";
|
|
1539
|
+
|
|
1540
|
+
const PtcTooltip = class {
|
|
1541
|
+
constructor(hostRef) {
|
|
1542
|
+
index.registerInstance(this, hostRef);
|
|
1543
|
+
this.textDisplay = "inline";
|
|
1544
|
+
this.maxLength = 45;
|
|
1545
|
+
this.textLines = undefined;
|
|
1546
|
+
this.description = "This is a tooltip text placeholder";
|
|
1547
|
+
this.zIndex = "z-auto";
|
|
1548
|
+
this.position = "bottom";
|
|
1549
|
+
this.styles = undefined;
|
|
1550
|
+
this.mode = "text-only";
|
|
1551
|
+
this.theme = "standard";
|
|
1552
|
+
this.width = "default";
|
|
1553
|
+
this.hideOnMobile = false;
|
|
1554
|
+
this.isSmallScreen = undefined;
|
|
1555
|
+
this.noOverflow = false;
|
|
1556
|
+
}
|
|
1557
|
+
addTruncatedClass() {
|
|
1558
|
+
const appRoot = this.el;
|
|
1559
|
+
const text = appRoot.querySelectorAll(".ellipsis-by-line-boxing");
|
|
1560
|
+
text.forEach((t) => {
|
|
1561
|
+
t.classList[t.scrollHeight > t.clientHeight ? "add" : "remove"]("truncated");
|
|
1562
|
+
});
|
|
1563
|
+
}
|
|
1564
|
+
windowResize() {
|
|
1565
|
+
this.verifiyScreenSize();
|
|
1566
|
+
}
|
|
1567
|
+
verifiyScreenSize() {
|
|
1568
|
+
this.isSmallScreen = window.innerWidth < 768;
|
|
1569
|
+
}
|
|
1570
|
+
// Created this function to initialize the truncate function on specific elements like tabs
|
|
1571
|
+
enableAddTruncatedClass(element) {
|
|
1572
|
+
const allTabHeaders = document.querySelectorAll(element);
|
|
1573
|
+
for (const element of Array.from(allTabHeaders)) {
|
|
1574
|
+
let tabHeader = element;
|
|
1575
|
+
if (tabHeader) {
|
|
1576
|
+
tabHeader.addEventListener("click", () => {
|
|
1577
|
+
setTimeout(() => {
|
|
1578
|
+
this.addTruncatedClass();
|
|
1579
|
+
}, 100);
|
|
1580
|
+
});
|
|
1581
|
+
}
|
|
1582
|
+
}
|
|
1583
|
+
}
|
|
1584
|
+
componentWillLoad() {
|
|
1585
|
+
this.verifiyScreenSize();
|
|
1586
|
+
}
|
|
1587
|
+
componentDidLoad() {
|
|
1588
|
+
//this.addTruncatedClass();
|
|
1589
|
+
setTimeout(() => {
|
|
1590
|
+
this.addTruncatedClass();
|
|
1591
|
+
}, 1000);
|
|
1592
|
+
this.enableAddTruncatedClass("tab-header");
|
|
1593
|
+
this.enableAddTruncatedClass("ptc-ellipsis-dropdown");
|
|
1594
|
+
this.enableAddTruncatedClass("ptc-product-card");
|
|
1595
|
+
document.addEventListener("readystatechange", () => {
|
|
1596
|
+
if (document.readyState === "complete") {
|
|
1597
|
+
this.addTruncatedClass();
|
|
1598
|
+
}
|
|
1599
|
+
});
|
|
1600
|
+
}
|
|
1601
|
+
render() {
|
|
1602
|
+
if (this.mode == "wrapper") {
|
|
1603
|
+
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 && (index.h("span", { innerHTML: this.description }))))));
|
|
1604
|
+
}
|
|
1605
|
+
else {
|
|
1606
|
+
const classMap = this.getCssClassMap();
|
|
1607
|
+
const cutOff = this.getLineCuttoff();
|
|
1608
|
+
let truncatedText = this.description.substring(0, this.maxLength);
|
|
1609
|
+
if (this.description.length > this.maxLength) {
|
|
1610
|
+
//const lastSpace = truncatedText.lastIndexOf(' ');
|
|
1611
|
+
//truncatedText = truncatedText.substring(0, lastSpace);
|
|
1612
|
+
truncatedText += "... ";
|
|
1613
|
+
}
|
|
1614
|
+
return (index.h(index.Host, { class: {
|
|
1615
|
+
[this.textDisplay]: true,
|
|
1616
|
+
[this.width]: true,
|
|
1617
|
+
"no-overflow": this.noOverflow,
|
|
1618
|
+
} }, this.styles && index.h("style", null, this.styles), this.hideOnMobile && this.isSmallScreen ? (index.h("div", null, this.description)) : (index.h("div", { class: "text-content" }, this.textLines > 0 && !!this.textLines ? (index.h("div", { class: "ellipsis-by-line-boxing", style: cutOff, innerHTML: this.description })) : (index.h("div", { class: classMap }, truncatedText)), index.h("div", { class: `tooltip ${this.position} ${this.theme}`, innerHTML: this.description })))));
|
|
1619
|
+
}
|
|
1620
|
+
}
|
|
1621
|
+
getCssClassMap() {
|
|
1622
|
+
return {
|
|
1623
|
+
// ['ellipsis-by-line-boxing']: this.textLines && this.textLines > 0,
|
|
1624
|
+
["text-ellipsis"]: true,
|
|
1625
|
+
[this.zIndex]: this.description.length > this.maxLength ? true : false,
|
|
1626
|
+
["truncated"]: this.description.length > this.maxLength && !this.textLines
|
|
1627
|
+
? true
|
|
1628
|
+
: false,
|
|
1629
|
+
};
|
|
1630
|
+
}
|
|
1631
|
+
getLineCuttoff() {
|
|
1632
|
+
let result;
|
|
1633
|
+
if (this.textLines && this.textLines > 0) {
|
|
1634
|
+
result = {
|
|
1635
|
+
["-webkit-line-clamp"]: `${this.textLines}`,
|
|
1636
|
+
};
|
|
1637
|
+
}
|
|
1638
|
+
return result;
|
|
1639
|
+
}
|
|
1640
|
+
get el() { return index.getElement(this); }
|
|
1641
|
+
};
|
|
1642
|
+
PtcTooltip.style = ptcTooltipCss;
|
|
1643
|
+
|
|
1644
|
+
exports.icon_asset = IconAsset;
|
|
1645
|
+
exports.list_item = ListItem;
|
|
1646
|
+
exports.ptc_back_to_top = PtcBackToTop;
|
|
1647
|
+
exports.ptc_breadcrumb = PtcBreadcrumb;
|
|
1648
|
+
exports.ptc_button = PtcButton;
|
|
1649
|
+
exports.ptc_para = PtcPara;
|
|
1650
|
+
exports.ptc_picture = PtcPicture;
|
|
1651
|
+
exports.ptc_product_card = PtcProductCard;
|
|
1652
|
+
exports.ptc_product_category = PtcProductCategory;
|
|
1653
|
+
exports.ptc_product_dropdown = PtcProductDropdown;
|
|
1654
|
+
exports.ptc_product_highlight_card = PtcProductHighlightCard;
|
|
1655
|
+
exports.ptc_product_list = PtcProductList;
|
|
1656
|
+
exports.ptc_product_sidebar = PtcProductSidebar;
|
|
1657
|
+
exports.ptc_readmore = PtcReadmore;
|
|
1658
|
+
exports.ptc_spacer = PtcSpacer;
|
|
1659
|
+
exports.ptc_title = PtcTitle;
|
|
1660
|
+
exports.ptc_tooltip = PtcTooltip;
|