@ptcwebops/ptcw-design 5.9.2 → 5.9.4
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/blog-detail-content_2.cjs.entry.js +271 -0
- package/dist/cjs/blog-detail-layout.cjs.entry.js +70 -0
- package/dist/cjs/icon-asset_10.cjs.entry.js +739 -0
- package/dist/cjs/interfaces-574e6df7.js +15 -0
- package/dist/cjs/list-item.cjs.entry.js +47 -0
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/max-width-container.cjs.entry.js +54 -0
- package/dist/cjs/ptc-background-video.cjs.entry.js +86 -0
- package/dist/cjs/ptc-breadcrumb.cjs.entry.js +47 -0
- package/dist/cjs/ptc-button.cjs.entry.js +84 -0
- package/dist/cjs/ptc-card_2.cjs.entry.js +67 -42
- package/dist/cjs/ptc-case-studies-slider.cjs.entry.js +6 -6
- package/dist/cjs/ptc-date.cjs.entry.js +61 -0
- package/dist/cjs/{ptc-filter-dropdown_4.cjs.entry.js → ptc-filter-dropdown_3.cjs.entry.js} +0 -74
- package/dist/cjs/ptc-img.cjs.entry.js +133 -0
- package/dist/cjs/ptc-inline-cta.cjs.entry.js +125 -0
- package/dist/cjs/ptc-jumbotron.cjs.entry.js +148 -0
- package/dist/cjs/ptc-link.cjs.entry.js +92 -0
- package/dist/cjs/ptc-para.cjs.entry.js +125 -0
- package/dist/cjs/ptc-quantity-counter.cjs.entry.js +2 -2
- package/dist/cjs/ptc-related-card-rail.cjs.entry.js +2 -2
- package/dist/cjs/ptc-shopping-cart.cjs.entry.js +3 -2
- package/dist/cjs/ptc-social-icons.cjs.entry.js +33 -0
- package/dist/cjs/ptc-spacer.cjs.entry.js +38 -0
- package/dist/cjs/ptc-text-copy-with-background.cjs.entry.js +56 -0
- package/dist/cjs/ptc-tooltip.cjs.entry.js +107 -0
- package/dist/cjs/ptcw-design.cjs.js +1 -1
- package/dist/collection/components/list-item/list-item.css +13 -0
- package/dist/collection/components/ptc-case-studies-slider/ptc-case-studies-slider.js +6 -6
- package/dist/collection/components/ptc-image-download-strip/ptc-image-download-strip.css +5 -0
- package/dist/collection/components/ptc-image-download-strip/ptc-image-download-strip.js +19 -1
- package/dist/collection/components/ptc-minimized-nav/ptc-minimized-nav.css +7 -0
- package/dist/collection/components/ptc-minimized-nav/ptc-minimized-nav.js +1 -1
- package/dist/collection/components/ptc-quantity-counter/ptc-quantity-counter.css +12 -0
- package/dist/collection/components/ptc-quantity-counter/ptc-quantity-counter.js +1 -1
- package/dist/collection/components/ptc-related-card-rail/ptc-related-card-rail.css +4 -0
- package/dist/collection/components/ptc-related-card-rail/ptc-related-card-rail.js +1 -1
- package/dist/collection/components/ptc-shopping-cart/ptc-shopping-cart.css +5 -0
- package/dist/collection/components/ptc-shopping-cart/ptc-shopping-cart.js +2 -1
- package/dist/collection/components/ptc-social-share/ptc-social-share.css +5 -0
- package/dist/collection/components/ptc-social-share/ptc-social-share.js +24 -1
- package/dist/custom-elements/index.js +29 -21
- 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 +266 -0
- package/dist/esm/blog-detail-layout.entry.js +66 -0
- package/dist/esm/blogs-search-section.entry.js +1 -1
- package/dist/esm/bundle-example.entry.js +1 -1
- package/dist/esm/bundle-jumbotron-example.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/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 +1 -1
- package/dist/esm/homepage-toggled-content.entry.js +1 -1
- package/dist/esm/icon-asset_10.entry.js +726 -0
- package/dist/esm/{index-c83db688.js → index-0bf594c4.js} +1 -1
- package/dist/esm/innovator-toggle-container.entry.js +1 -1
- package/dist/esm/interfaces-7c0243be.js +12 -0
- package/dist/esm/jumbotron-sub-menu.entry.js +1 -1
- package/dist/esm/jumbotron-sub-mune.entry.js +1 -1
- package/dist/esm/list-item.entry.js +43 -0
- package/dist/esm/loader.js +3 -3
- package/dist/esm/max-width-container.entry.js +50 -0
- package/dist/esm/most-popular-news.entry.js +1 -1
- package/dist/esm/my-component.entry.js +1 -1
- package/dist/esm/news-search-result.entry.js +1 -1
- package/dist/esm/ptc-accordion-item.entry.js +1 -1
- package/dist/esm/ptc-accordion.entry.js +1 -1
- package/dist/esm/ptc-announcement.entry.js +1 -1
- package/dist/esm/ptc-back-to-top.entry.js +1 -1
- package/dist/esm/ptc-background-video.entry.js +82 -0
- package/dist/esm/ptc-badge.entry.js +1 -1
- package/dist/esm/ptc-bio-card.entry.js +1 -1
- package/dist/esm/ptc-breadcrumb.entry.js +43 -0
- package/dist/esm/ptc-brightcov-video.entry.js +1 -1
- package/dist/esm/ptc-button.entry.js +80 -0
- 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 +68 -43
- package/dist/esm/ptc-case-studies-slider.entry.js +7 -7
- package/dist/esm/ptc-checkbox-group.entry.js +1 -1
- package/dist/esm/ptc-checkbox.entry.js +1 -1
- package/dist/esm/ptc-collapse-list.entry.js +1 -1
- package/dist/esm/ptc-container.entry.js +1 -1
- package/dist/esm/ptc-data-lookup.entry.js +1 -1
- package/dist/esm/ptc-date.entry.js +57 -0
- 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-featured-list.entry.js +1 -1
- package/dist/esm/{ptc-filter-dropdown_4.entry.js → ptc-filter-dropdown_3.entry.js} +2 -75
- 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_2.entry.js +1 -1
- 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 +1 -1
- package/dist/esm/ptc-homepage-video-background.entry.js +1 -1
- package/dist/esm/ptc-icon-card.entry.js +1 -1
- 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-img.entry.js +129 -0
- package/dist/esm/ptc-info-tile.entry.js +1 -1
- package/dist/esm/ptc-inline-cta.entry.js +121 -0
- package/dist/esm/ptc-jumbotron.entry.js +144 -0
- package/dist/esm/ptc-link.entry.js +88 -0
- package/dist/esm/ptc-list.entry.js +1 -1
- package/dist/esm/ptc-media-card.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-multi-select_2.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-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-para.entry.js +121 -0
- 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-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 +1 -1
- package/dist/esm/ptc-pricing-tabs.entry.js +1 -1
- package/dist/esm/ptc-product-card.entry.js +1 -1
- package/dist/esm/ptc-product-category.entry.js +1 -1
- package/dist/esm/ptc-product-dropdown.entry.js +1 -1
- package/dist/esm/ptc-product-highlight-card.entry.js +1 -1
- package/dist/esm/ptc-product-list.entry.js +1 -1
- package/dist/esm/ptc-product-sidebar.entry.js +1 -1
- package/dist/esm/ptc-progress-bar.entry.js +1 -1
- package/dist/esm/ptc-quantity-counter.entry.js +3 -3
- 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-readmore.entry.js +1 -1
- package/dist/esm/ptc-related-card-rail.entry.js +3 -3
- package/dist/esm/ptc-responsive-wrapper.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 +4 -3
- 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 +1 -1
- package/dist/esm/ptc-social-icons.entry.js +29 -0
- package/dist/esm/ptc-spacer.entry.js +34 -0
- package/dist/esm/ptc-span.entry.js +1 -1
- package/dist/esm/ptc-square-card.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.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 +52 -0
- 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-tooltip.entry.js +103 -0
- 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/tab-content.entry.js +1 -1
- package/dist/esm/tab-header.entry.js +1 -1
- package/dist/ptcw-design/{p-03a917f8.entry.js → p-02f0460b.entry.js} +1 -1
- package/dist/ptcw-design/{p-9c112fb9.entry.js → p-040621d3.entry.js} +1 -1
- package/dist/ptcw-design/{p-428b050e.entry.js → p-072dd199.entry.js} +1 -1
- package/dist/ptcw-design/{p-9e2fd13c.entry.js → p-0a558a22.entry.js} +1 -1
- package/dist/ptcw-design/{p-9ac99185.entry.js → p-0abb6e77.entry.js} +1 -1
- package/dist/ptcw-design/p-107dd637.entry.js +1 -0
- package/dist/ptcw-design/{p-e5fdd222.entry.js → p-11315f18.entry.js} +1 -1
- package/dist/ptcw-design/{p-c0bb1ad0.entry.js → p-13131b4d.entry.js} +1 -1
- package/dist/ptcw-design/{p-99b45d23.entry.js → p-139ca5d2.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-1acd3617.entry.js +1 -0
- package/dist/ptcw-design/{p-1f8ca0be.entry.js → p-1d040924.entry.js} +1 -1
- package/dist/ptcw-design/{p-b3bbd17d.entry.js → p-1e44cf5e.entry.js} +1 -1
- package/dist/ptcw-design/{p-46f67bec.entry.js → p-1e9f25fc.entry.js} +1 -1
- package/dist/ptcw-design/p-1eb92079.entry.js +1 -0
- package/dist/ptcw-design/{p-6b32020a.entry.js → p-1ec32cbc.entry.js} +1 -1
- package/dist/ptcw-design/{p-de680809.entry.js → p-1ff6a79e.entry.js} +1 -1
- package/dist/ptcw-design/{p-8c49d736.entry.js → p-212d0145.entry.js} +1 -1
- package/dist/ptcw-design/p-21612ffa.entry.js +1 -0
- package/dist/ptcw-design/{p-2c634cfd.entry.js → p-2294d50a.entry.js} +1 -1
- package/dist/ptcw-design/{p-85cc23f7.entry.js → p-251513ee.entry.js} +1 -1
- package/dist/ptcw-design/{p-9b26ea67.entry.js → p-290012e3.entry.js} +1 -1
- package/dist/ptcw-design/{p-8798a958.entry.js → p-29816755.entry.js} +1 -1
- package/dist/ptcw-design/{p-9b0df204.entry.js → p-298d02ab.entry.js} +1 -1
- package/dist/ptcw-design/{p-e90fbbad.entry.js → p-2a3735a5.entry.js} +1 -1
- package/dist/ptcw-design/{p-dc488936.entry.js → p-2aa419ae.entry.js} +1 -1
- package/dist/ptcw-design/{p-bdc2f146.entry.js → p-2c5df150.entry.js} +1 -1
- package/dist/ptcw-design/{p-21fa5abe.entry.js → p-2fd01953.entry.js} +1 -1
- package/dist/ptcw-design/{p-092388f5.entry.js → p-32b9f5da.entry.js} +1 -1
- package/dist/ptcw-design/p-397276af.entry.js +1 -0
- package/dist/ptcw-design/{p-f618e1d4.entry.js → p-3a67aedf.entry.js} +1 -1
- package/dist/ptcw-design/{p-cfd07b95.entry.js → p-3b93096b.entry.js} +1 -1
- package/dist/ptcw-design/{p-8533988f.entry.js → p-3c52fabe.entry.js} +1 -1
- package/dist/ptcw-design/{p-58e91cb8.entry.js → p-3c72e82d.entry.js} +1 -1
- package/dist/ptcw-design/{p-6e0bf873.entry.js → p-3cb0f54d.entry.js} +1 -1
- package/dist/ptcw-design/{p-76d98c5a.entry.js → p-3e13b735.entry.js} +1 -1
- package/dist/ptcw-design/p-3e90100b.entry.js +1 -0
- package/dist/ptcw-design/{p-f2a67fc5.entry.js → p-3f3713cd.entry.js} +1 -1
- package/dist/ptcw-design/{p-e3d38b0c.entry.js → p-407253be.entry.js} +1 -1
- package/dist/ptcw-design/p-4335d7f3.entry.js +1 -0
- package/dist/ptcw-design/{p-c6a0dd99.entry.js → p-43756439.entry.js} +1 -1
- package/dist/ptcw-design/{p-0c20d1f1.entry.js → p-47496762.entry.js} +1 -1
- package/dist/ptcw-design/{p-ae7aa3b1.entry.js → p-4af3a6d4.entry.js} +1 -1
- package/dist/ptcw-design/{p-ee534211.entry.js → p-4b23b4c3.entry.js} +1 -1
- package/dist/ptcw-design/{p-e3bce6bf.entry.js → p-4f6c9992.entry.js} +1 -1
- package/dist/ptcw-design/p-50605d7c.entry.js +1 -0
- package/dist/ptcw-design/{p-374734fb.entry.js → p-5177c7e0.entry.js} +1 -1
- package/dist/ptcw-design/{p-1ca8a5bf.entry.js → p-520542e2.entry.js} +1 -1
- package/dist/ptcw-design/p-53cd14ba.entry.js +1 -0
- package/dist/ptcw-design/p-53d88f2b.entry.js +1 -0
- package/dist/ptcw-design/{p-2c2f895a.entry.js → p-54891548.entry.js} +1 -1
- package/dist/ptcw-design/{p-a83d18b8.entry.js → p-595d3ad5.entry.js} +1 -1
- package/dist/ptcw-design/{p-f731fc96.entry.js → p-5da98805.entry.js} +1 -1
- package/dist/ptcw-design/{p-dca69b87.entry.js → p-5dee4e02.entry.js} +1 -1
- package/dist/ptcw-design/{p-c631608f.entry.js → p-61a5012d.entry.js} +1 -1
- package/dist/ptcw-design/{p-849655f7.entry.js → p-65b9b38b.entry.js} +1 -1
- package/dist/ptcw-design/{p-ec94b1d2.entry.js → p-66754504.entry.js} +1 -1
- package/dist/ptcw-design/p-6b64f167.entry.js +1 -0
- package/dist/ptcw-design/p-72681e91.entry.js +1 -0
- package/dist/ptcw-design/{p-b65b59ab.entry.js → p-75f3b444.entry.js} +1 -1
- package/dist/ptcw-design/{p-99ee8a0e.entry.js → p-761f71c4.entry.js} +1 -1
- package/dist/ptcw-design/{p-83a0be46.entry.js → p-7698c568.entry.js} +1 -1
- package/dist/ptcw-design/{p-8038bf31.entry.js → p-779c3f21.entry.js} +1 -1
- package/dist/ptcw-design/{p-612c0f9b.entry.js → p-79232125.entry.js} +1 -1
- package/dist/ptcw-design/p-7964e154.entry.js +1 -0
- package/dist/ptcw-design/p-79883a07.entry.js +1 -0
- package/dist/ptcw-design/{p-081e969d.entry.js → p-7b75091d.entry.js} +1 -1
- package/dist/ptcw-design/p-7e1507e1.entry.js +1 -0
- package/dist/ptcw-design/{p-4b192f5e.entry.js → p-7e19be10.entry.js} +1 -1
- package/dist/ptcw-design/p-7e4a71ff.entry.js +1 -0
- package/dist/ptcw-design/{p-ebb04883.entry.js → p-7ea4b858.entry.js} +1 -1
- package/dist/ptcw-design/{p-3c3a7b54.entry.js → p-7edef9ed.entry.js} +1 -1
- package/dist/ptcw-design/p-8039fa0d.entry.js +1 -0
- 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-8436f21f.entry.js +1 -0
- package/dist/ptcw-design/p-875594e4.entry.js +1 -0
- package/dist/ptcw-design/{p-1eecdb7f.entry.js → p-879f4796.entry.js} +1 -1
- package/dist/ptcw-design/{p-ae16e7f9.entry.js → p-887c44ae.entry.js} +1 -1
- package/dist/ptcw-design/{p-9a335b5b.entry.js → p-8eb36507.entry.js} +1 -1
- package/dist/ptcw-design/{p-ac75c7ad.js → p-944c5be8.js} +1 -1
- package/dist/ptcw-design/{p-7b71abaf.entry.js → p-94c59fac.entry.js} +1 -1
- package/dist/ptcw-design/p-973b06d1.entry.js +1 -0
- package/dist/ptcw-design/{p-daa07e11.entry.js → p-982c3ef3.entry.js} +1 -1
- package/dist/ptcw-design/{p-0e796d1a.entry.js → p-9a7b6c70.entry.js} +1 -1
- package/dist/ptcw-design/p-9ae901e2.entry.js +1 -0
- package/dist/ptcw-design/{p-5db7f70b.entry.js → p-9d32f1bc.entry.js} +1 -1
- package/dist/ptcw-design/{p-3ee2a531.entry.js → p-9dde477c.entry.js} +1 -1
- package/dist/ptcw-design/p-9f2823a1.entry.js +1 -0
- package/dist/ptcw-design/{p-d1857ada.entry.js → p-9fa81b74.entry.js} +1 -1
- package/dist/ptcw-design/{p-cea1077c.entry.js → p-a1a34215.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-2a6a0034.entry.js → p-a31b8cad.entry.js} +1 -1
- package/dist/ptcw-design/{p-58c10456.entry.js → p-a5ae3230.entry.js} +1 -1
- package/dist/ptcw-design/{p-51a275df.entry.js → p-a9df5985.entry.js} +1 -1
- package/dist/ptcw-design/{p-de1367a8.entry.js → p-ab49b93b.entry.js} +1 -1
- package/dist/ptcw-design/{p-00e21489.entry.js → p-ad4f4f33.entry.js} +1 -1
- package/dist/ptcw-design/{p-e61d7e23.entry.js → p-ad8b3161.entry.js} +1 -1
- package/dist/ptcw-design/{p-dc85c302.entry.js → p-afbe8e2c.entry.js} +1 -1
- package/dist/ptcw-design/{p-aea09a70.entry.js → p-b293a0b1.entry.js} +1 -1
- package/dist/ptcw-design/{p-fdc65d81.entry.js → p-b44dbb3f.entry.js} +1 -1
- package/dist/ptcw-design/p-b67d4f9c.entry.js +1 -0
- package/dist/ptcw-design/{p-5b21bdc1.entry.js → p-b6e5c0f7.entry.js} +1 -1
- package/dist/ptcw-design/p-b72f0796.entry.js +1 -0
- package/dist/ptcw-design/{p-00980d4d.entry.js → p-b912ff93.entry.js} +1 -1
- package/dist/ptcw-design/{p-8c2ef359.entry.js → p-bacd25a1.entry.js} +1 -1
- package/dist/ptcw-design/{p-971b8a7d.entry.js → p-be00fb74.entry.js} +1 -1
- package/dist/ptcw-design/{p-1fb78c17.entry.js → p-bedf2794.entry.js} +1 -1
- package/dist/ptcw-design/{p-89ba3dfd.entry.js → p-bf2f9183.entry.js} +1 -1
- package/dist/ptcw-design/{p-dbbe35bf.entry.js → p-bf439f9b.entry.js} +1 -1
- package/dist/ptcw-design/{p-38a56ed6.entry.js → p-c05e326f.entry.js} +1 -1
- package/dist/ptcw-design/{p-af9026f2.entry.js → p-c1e07fde.entry.js} +1 -1
- package/dist/ptcw-design/p-c2a171a7.entry.js +1 -0
- package/dist/ptcw-design/{p-927f537c.entry.js → p-c3bd5805.entry.js} +1 -1
- package/dist/ptcw-design/{p-ffb0ff97.entry.js → p-c415ab42.entry.js} +1 -1
- package/dist/ptcw-design/{p-aac082cf.entry.js → p-c5417010.entry.js} +1 -1
- package/dist/ptcw-design/{p-768ceec1.entry.js → p-c8b29c81.entry.js} +1 -1
- package/dist/ptcw-design/{p-04f0b1ba.entry.js → p-c9a73ad1.entry.js} +1 -1
- package/dist/ptcw-design/{p-5946d7c9.entry.js → p-cab0274c.entry.js} +1 -1
- package/dist/ptcw-design/{p-16429296.entry.js → p-ccebb76c.entry.js} +1 -1
- package/dist/ptcw-design/{p-5857be70.entry.js → p-ccf1dacd.entry.js} +1 -1
- package/dist/ptcw-design/{p-6ddefda6.entry.js → p-cd0fe5b4.entry.js} +1 -1
- package/dist/ptcw-design/{p-e3bf092e.entry.js → p-d1f57070.entry.js} +1 -1
- package/dist/ptcw-design/p-d52cc1ee.entry.js +1 -0
- package/dist/ptcw-design/{p-0ee01112.entry.js → p-d5fbe774.entry.js} +1 -1
- package/dist/ptcw-design/{p-37480ed1.entry.js → p-d9b2186d.entry.js} +1 -1
- package/dist/ptcw-design/p-d9ec506c.entry.js +1 -0
- 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-68cf7811.entry.js → p-df712bfe.entry.js} +1 -1
- package/dist/ptcw-design/{p-2bbc5d85.entry.js → p-e5f38e09.entry.js} +1 -1
- package/dist/ptcw-design/{p-fdee2cdc.entry.js → p-e6ebc832.entry.js} +1 -1
- package/dist/ptcw-design/p-e75dff95.entry.js +1 -0
- package/dist/ptcw-design/{p-6ce1cc72.entry.js → p-e7ede17d.entry.js} +1 -1
- package/dist/ptcw-design/{p-c68d31c6.entry.js → p-e87a4ff8.entry.js} +1 -1
- package/dist/ptcw-design/p-e9bde223.entry.js +1 -0
- package/dist/ptcw-design/p-ec22d0b8.entry.js +1 -0
- package/dist/ptcw-design/{p-7a1db471.entry.js → p-ecfc8211.entry.js} +1 -1
- package/dist/ptcw-design/{p-c1820648.entry.js → p-eddff1f7.entry.js} +1 -1
- package/dist/ptcw-design/p-ee1183b2.js +1 -0
- package/dist/ptcw-design/p-ef0079b0.entry.js +1 -0
- package/dist/ptcw-design/{p-f5c97ab2.entry.js → p-f2006b03.entry.js} +1 -1
- package/dist/ptcw-design/p-f26ea42b.entry.js +1 -0
- package/dist/ptcw-design/{p-94cc3bb8.entry.js → p-f2ed73d6.entry.js} +1 -1
- package/dist/ptcw-design/{p-4f93c631.entry.js → p-f77c7c78.entry.js} +1 -1
- package/dist/ptcw-design/{p-3e5f19f9.entry.js → p-fda8d2a8.entry.js} +1 -1
- package/dist/ptcw-design/p-fe2e34d4.entry.js +1 -0
- package/dist/ptcw-design/ptcw-design.esm.js +1 -1
- package/dist/types/components/ptc-case-studies-slider/ptc-case-studies-slider.d.ts +0 -1
- package/dist/types/components/ptc-image-download-strip/ptc-image-download-strip.d.ts +4 -0
- package/dist/types/components/ptc-social-share/ptc-social-share.d.ts +2 -0
- package/dist/types/components.d.ts +10 -0
- package/package.json +1 -1
- package/readme.md +1 -1
- package/dist/cjs/blog-detail-content_21.cjs.entry.js +0 -1859
- package/dist/cjs/ptc-close-icon_2.cjs.entry.js +0 -206
- package/dist/cjs/ptc-image-download-strip.cjs.entry.js +0 -29
- package/dist/cjs/ptc-minimized-nav.cjs.entry.js +0 -23
- package/dist/cjs/ptc-news.cjs.entry.js +0 -32
- package/dist/cjs/ptc-sticky-icons.cjs.entry.js +0 -43
- package/dist/esm/blog-detail-content_21.entry.js +0 -1835
- package/dist/esm/ptc-close-icon_2.entry.js +0 -201
- package/dist/esm/ptc-image-download-strip.entry.js +0 -25
- package/dist/esm/ptc-minimized-nav.entry.js +0 -19
- package/dist/esm/ptc-news.entry.js +0 -28
- package/dist/esm/ptc-sticky-icons.entry.js +0 -39
- package/dist/ptcw-design/p-07b497ce.entry.js +0 -1
- package/dist/ptcw-design/p-0e5932f0.entry.js +0 -1
- package/dist/ptcw-design/p-0eb16aec.entry.js +0 -1
- package/dist/ptcw-design/p-1f1510fc.entry.js +0 -1
- package/dist/ptcw-design/p-2cfeeac8.entry.js +0 -1
- package/dist/ptcw-design/p-3dae22b8.entry.js +0 -1
- package/dist/ptcw-design/p-57c17ddf.entry.js +0 -1
- package/dist/ptcw-design/p-592d99fd.entry.js +0 -1
- package/dist/ptcw-design/p-5ede7718.entry.js +0 -1
- package/dist/ptcw-design/p-6b6c09c7.entry.js +0 -1
- package/dist/ptcw-design/p-7eb22ed5.entry.js +0 -1
- package/dist/ptcw-design/p-8bf47996.entry.js +0 -1
- package/dist/ptcw-design/p-8c692bd6.entry.js +0 -1
- package/dist/ptcw-design/p-94ec3187.entry.js +0 -1
- package/dist/ptcw-design/p-97eb1025.entry.js +0 -1
- package/dist/ptcw-design/p-a4f65d28.entry.js +0 -1
- package/dist/ptcw-design/p-ab7224b7.entry.js +0 -1
- package/dist/ptcw-design/p-b50f71dd.entry.js +0 -1
- package/dist/ptcw-design/p-d7275289.entry.js +0 -1
- package/dist/ptcw-design/p-fae82882.entry.js +0 -1
- package/dist/ptcw-design/p-fc51fc29.entry.js +0 -1
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
const index = require('./index-63ddc79c.js');
|
|
6
|
+
|
|
7
|
+
const ptcDateCss = "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(.small) span{font-size:var(--ptc-font-size-xx-small)}:host(.medium) span{font-size:var(--ptc-font-size-x-small)}:host(.primary-grey){color:var(--color-primary-gray-new)}:host(.white) span{color:var(--color-white)}:host(.date-m-top){margin-top:var(--ptc-element-spacing-01)}";
|
|
8
|
+
|
|
9
|
+
const PtcDate = class {
|
|
10
|
+
constructor(hostRef) {
|
|
11
|
+
index.registerInstance(this, hostRef);
|
|
12
|
+
this.year = 1900;
|
|
13
|
+
this.month = 0;
|
|
14
|
+
this.day = 1;
|
|
15
|
+
this.country = 'en-US';
|
|
16
|
+
this.dateString = undefined;
|
|
17
|
+
this.dateColor = undefined;
|
|
18
|
+
this.dateStyles = undefined;
|
|
19
|
+
this.dataSize = 'small';
|
|
20
|
+
this.formatOptions = undefined;
|
|
21
|
+
}
|
|
22
|
+
render() {
|
|
23
|
+
// const newDate = new Date(this.year, this.month, this.day);
|
|
24
|
+
const classMap = this.getCssClassMap();
|
|
25
|
+
return (index.h(index.Host, { class: classMap }, this.dateStyles && index.h("style", null, this.dateStyles), index.h("span", { part: "part-ptc-date" }, this.getDate().toLocaleDateString(this.country, this.getOptions()))));
|
|
26
|
+
}
|
|
27
|
+
getCssClassMap() {
|
|
28
|
+
return {
|
|
29
|
+
[this.dateColor]: !!this.dateColor ? true : false,
|
|
30
|
+
[this.dataSize]: !!this.dataSize ? true : false,
|
|
31
|
+
};
|
|
32
|
+
}
|
|
33
|
+
getOptions() {
|
|
34
|
+
let result = { year: 'numeric', month: 'short', day: 'numeric' };
|
|
35
|
+
if (this.formatOptions) {
|
|
36
|
+
try {
|
|
37
|
+
var json = JSON.parse(this.formatOptions);
|
|
38
|
+
if (json) {
|
|
39
|
+
result = json;
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
catch (e) {
|
|
43
|
+
//debugger
|
|
44
|
+
console.log(e);
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
return result;
|
|
48
|
+
}
|
|
49
|
+
getDate() {
|
|
50
|
+
if (this.dateString) {
|
|
51
|
+
let newDate = new Date(this.dateString.replace(/-/g, '/'));
|
|
52
|
+
return newDate;
|
|
53
|
+
}
|
|
54
|
+
else {
|
|
55
|
+
return new Date(this.year, this.month - 1, this.day);
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
};
|
|
59
|
+
PtcDate.style = ptcDateCss;
|
|
60
|
+
|
|
61
|
+
exports.ptc_date = PtcDate;
|
|
@@ -84,79 +84,6 @@ const PtcFilterDropdown = class {
|
|
|
84
84
|
};
|
|
85
85
|
PtcFilterDropdown.style = ptcFilterDropdownCss;
|
|
86
86
|
|
|
87
|
-
const ptcSocialShareCss = "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(.inline-block){display:inline-block}:host(.block){display:block}:host(.inline){display:inline}:host(.flex){display:flex}:host(.ptc-social-share){cursor:pointer}@media only screen and (min-width: 1200px){:host(.ptc-social-m-left){margin-left:var(--ptc-element-spacing-04)}}";
|
|
88
|
-
|
|
89
|
-
const PtcSocialShare = class {
|
|
90
|
-
constructor(hostRef) {
|
|
91
|
-
index.registerInstance(this, hostRef);
|
|
92
|
-
this.display = 'inline-block';
|
|
93
|
-
this.shareType = 'twitter';
|
|
94
|
-
this.shareTitle = undefined;
|
|
95
|
-
this.text = undefined;
|
|
96
|
-
this.url = undefined;
|
|
97
|
-
this.source = '';
|
|
98
|
-
this.recipient = '';
|
|
99
|
-
this.iconColor = 'white';
|
|
100
|
-
this.iconHoverColor = 'gray';
|
|
101
|
-
this.isHover = false;
|
|
102
|
-
this.iconSize = 'large';
|
|
103
|
-
}
|
|
104
|
-
render() {
|
|
105
|
-
const classMap = this.getCssClassMap();
|
|
106
|
-
return (index.h(index.Host, { class: classMap }, index.h("div", { onClick: () => this.share(), onMouseEnter: () => this.hoverToggle(), onMouseLeave: () => this.hoverToggle() }, this.shareType == 'mail' ? index.h("icon-asset", Object.assign({ type: "ptc", size: this.iconSize, name: "plm-mail" }, (this.isHover ? { color: this.iconHoverColor } : { color: this.iconColor }))) : null, this.shareType == 'linkedin' ? index.h("icon-asset", Object.assign({ type: "ptc", size: this.iconSize, name: "plm-linkedin" }, (this.isHover ? { color: this.iconHoverColor } : { color: this.iconColor }))) : null, this.shareType == 'twitter' ? index.h("icon-asset", Object.assign({ type: "ptc", size: this.iconSize, name: "twitter-x" }, (this.isHover ? { color: this.iconHoverColor } : { color: this.iconColor }))) : null, this.shareType == 'facebook' ? index.h("icon-asset", Object.assign({ type: "ptc", size: this.iconSize, name: "plm-fb" }, (this.isHover ? { color: this.iconHoverColor } : { color: this.iconColor }))) : null, this.shareType == 'blog-mail' ? index.h("icon-asset", Object.assign({ type: "ptc", size: this.iconSize, name: "mail-blogs-icon" }, (this.isHover ? { color: this.iconHoverColor } : { color: this.iconColor }))) : null, this.shareType == 'blog-linkedin' ? index.h("icon-asset", Object.assign({ type: "ptc", size: this.iconSize, name: "linkedin-blogs-icon" }, (this.isHover ? { color: this.iconHoverColor } : { color: this.iconColor }))) : null, this.shareType == 'blog-twitter' ? index.h("icon-asset", Object.assign({ type: "ptc", size: this.iconSize, name: "twitter-x-dark-circle" }, (this.isHover ? { color: this.iconHoverColor } : { color: this.iconColor }))) : null, this.shareType == 'blog-facebook' ? index.h("icon-asset", Object.assign({ type: "ptc", size: this.iconSize, name: "facebook-blogs-icon" }, (this.isHover ? { color: this.iconHoverColor } : { color: this.iconColor }))) : null, this.shareType == 'share-api' ? index.h("icon-asset", Object.assign({ type: "solid", size: this.iconSize, name: "share-square" }, (this.isHover ? { color: this.iconHoverColor } : { color: this.iconColor }))) : null, this.shareType == 'download' ? index.h("icon-asset", Object.assign({ type: "ptc", size: this.iconSize, name: "download-arrow-news", color: "inherit" }, (this.isHover ? { color: this.iconHoverColor } : { color: this.iconColor }))) : null), this.shareType == 'download' &&
|
|
107
|
-
index.h("ptc-modal", { id: "download-modal", show: false, size: "lg", fixed: true, "is-bio-modal": true }, index.h("ptc-title", { type: 'h2', "text-align": 'center', "title-weight": "w-5", upperline: "no-upperline" }, "Thanks For Downloading"))));
|
|
108
|
-
}
|
|
109
|
-
getCssClassMap() {
|
|
110
|
-
return {
|
|
111
|
-
['ptc-social-share']: true,
|
|
112
|
-
[this.display]: true,
|
|
113
|
-
};
|
|
114
|
-
}
|
|
115
|
-
hoverToggle() {
|
|
116
|
-
this.isHover = !this.isHover;
|
|
117
|
-
}
|
|
118
|
-
share() {
|
|
119
|
-
if (this.shareType == 'twitter' || this.shareType == "blog-twitter") {
|
|
120
|
-
window.open(`https://twitter.com/share?text=${this.text}&url=${this.url}`);
|
|
121
|
-
}
|
|
122
|
-
if (this.shareType == 'facebook' || this.shareType == "blog-facebook") {
|
|
123
|
-
window.open(`https://www.facebook.com/sharer/sharer.php?u=${this.url}`);
|
|
124
|
-
}
|
|
125
|
-
if (this.shareType == 'linkedin' || this.shareType == "blog-linkedin") {
|
|
126
|
-
window.open(`https://www.linkedin.com/shareArticle?mini=true&url=${this.url}&title=${this.shareTitle}&summary=${this.text}&source=${this.source}`);
|
|
127
|
-
}
|
|
128
|
-
if (this.shareType == 'mail' || this.shareType == "blog-mail") {
|
|
129
|
-
window.open(`mailto:${this.recipient}?subject=${this.text}&body=${this.url}`);
|
|
130
|
-
}
|
|
131
|
-
if (this.shareType == 'share-api') {
|
|
132
|
-
if (navigator.share) {
|
|
133
|
-
navigator
|
|
134
|
-
.share({
|
|
135
|
-
title: this.shareTitle,
|
|
136
|
-
text: this.text,
|
|
137
|
-
url: this.url,
|
|
138
|
-
})
|
|
139
|
-
.then(() => console.log('Successful share'))
|
|
140
|
-
.catch(error => console.log('Error sharing', error));
|
|
141
|
-
}
|
|
142
|
-
else {
|
|
143
|
-
// fallback to sharing to twitter
|
|
144
|
-
window.open(`http://twitter.com/share?text=${this.text}&url=${this.url}`);
|
|
145
|
-
}
|
|
146
|
-
}
|
|
147
|
-
if (this.shareType == 'download') {
|
|
148
|
-
let modal = this.el.shadowRoot.querySelector('#download-modal');
|
|
149
|
-
modal.setAttribute('show', 'true');
|
|
150
|
-
setTimeout(() => {
|
|
151
|
-
modal.setAttribute('show', 'false');
|
|
152
|
-
window.open(`${this.url}`, "_self");
|
|
153
|
-
}, 1000);
|
|
154
|
-
}
|
|
155
|
-
}
|
|
156
|
-
get el() { return index.getElement(this); }
|
|
157
|
-
};
|
|
158
|
-
PtcSocialShare.style = ptcSocialShareCss;
|
|
159
|
-
|
|
160
87
|
const ptcTheaterVideoCss = "h1.sc-ptc-theater-video,h2.sc-ptc-theater-video,h3.sc-ptc-theater-video,h4.sc-ptc-theater-video,h5.sc-ptc-theater-video,h6.sc-ptc-theater-video,p.sc-ptc-theater-video,ul.sc-ptc-theater-video,li.sc-ptc-theater-video,ptc-subnav.sc-ptc-theater-video,ptc-tab-list.sc-ptc-theater-video,ptc-link.sc-ptc-theater-video,ptc-square-card.sc-ptc-theater-video,.hyphenate-text.sc-ptc-theater-video,ptc-footer.sc-ptc-theater-video{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-theater-video,h2.sc-ptc-theater-video,h3.sc-ptc-theater-video,h4.sc-ptc-theater-video,h5.sc-ptc-theater-video,h6.sc-ptc-theater-video,p.sc-ptc-theater-video,ul.sc-ptc-theater-video,li.sc-ptc-theater-video,ptc-subnav.sc-ptc-theater-video,ptc-tab-list.sc-ptc-theater-video,ptc-link.sc-ptc-theater-video,ptc-square-card.sc-ptc-theater-video,.hyphenate-text.sc-ptc-theater-video,ptc-footer.sc-ptc-theater-video{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-theater-video-h{display:block;max-width:205px;min-width:205px;color:var(--color-white)}.hide.sc-ptc-theater-video-h{display:none}.show.sc-ptc-theater-video-h{display:inline-block}@media only screen and (min-width: 768px){.sc-ptc-theater-video-h{min-width:auto;min-width:205px}}@media only screen and (min-width: 1200px){.sc-ptc-theater-video-h{max-width:260px;min-width:260px}}.sc-ptc-theater-video-h .img-wrap.sc-ptc-theater-video{position:relative;border-radius:12px;box-shadow:0px 2px 6px 0px rgba(0, 0, 0, 0.24);cursor:pointer}.sc-ptc-theater-video-h .img-wrap.sc-ptc-theater-video img.sc-ptc-theater-video{max-width:100%;border-radius:12px}.sc-ptc-theater-video-h .img-wrap.sc-ptc-theater-video svg.sc-ptc-theater-video{fill:#FFF;filter:drop-shadow(0px 8px 12px rgba(0, 0, 0, 0.5));position:absolute;top:50%;left:50%;transform:translate(-50%, -50%)}.sc-ptc-theater-video-h .img-wrap.sc-ptc-theater-video .card-number.sc-ptc-theater-video{position:absolute;left:6px;top:6px;width:32px;height:32px;background-color:var(--color-gray-09);border-radius:50%;border:2px solid var(--color-green-05);text-align:center;color:#FFF;font-size:18px;font-weight:700;display:flex;align-items:center;justify-content:center;box-sizing:border-box;padding-bottom:3px}.sc-ptc-theater-video-h h3.sc-ptc-theater-video{margin:12px 0 0 0;font-size:var(--ptc-font-size-x-small);font-weight:var(--ptc-font-weight-bold);color:var(--color-white)}.sc-ptc-theater-video-h .hidden.sc-ptc-theater-video{display:none}";
|
|
161
88
|
|
|
162
89
|
const PtcTheaterVideo = class {
|
|
@@ -305,6 +232,5 @@ const PtcTheaterVideoPlaylist = class {
|
|
|
305
232
|
PtcTheaterVideoPlaylist.style = ptcTheaterVideoPlaylistCss;
|
|
306
233
|
|
|
307
234
|
exports.ptc_filter_dropdown = PtcFilterDropdown;
|
|
308
|
-
exports.ptc_social_share = PtcSocialShare;
|
|
309
235
|
exports.ptc_theater_video = PtcTheaterVideo;
|
|
310
236
|
exports.ptc_theater_video_playlist = PtcTheaterVideoPlaylist;
|
|
@@ -0,0 +1,133 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
const index = require('./index-63ddc79c.js');
|
|
6
|
+
const interfaces = require('./interfaces-574e6df7.js');
|
|
7
|
+
|
|
8
|
+
const ptcImgCss = "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}}.smart-bg{width:100%;height:100%;background-size:cover;background-repeat:no-repeat;background-position:50% 50%}.smart-img{position:absolute;display:block;width:100%;height:100%;top:0;left:0;background-size:cover;background-repeat:no-repeat;background-position:50% 50%}.radius-standard{border-radius:var(--ptc-border-radius-standard)}.radius-standard-top{border-top-left-radius:var(--ptc-border-radius-standard);border-top-right-radius:var(--ptc-border-radius-standard)}.radius-large{border-radius:var(--ptc-border-radius-large)}.radius-large-top{border-top-left-radius:var(--ptc-border-radius-large);border-top-right-radius:var(--ptc-border-radius-large)}.lazy-bg{background-image:none !important;background-color:var(--color-gray-03)}@media only screen and (min-width: 768px){.hidden-xs{display:none !important}}@media (min-width: 768px) and (max-width: 991px){.hidden-sm{display:none !important}}@media (min-width: 992px) and (max-width: 1199px){.hidden-md{display:none !important}}@media only screen and (min-width: 768px){.hidden-lg{display:none !important}}";
|
|
9
|
+
|
|
10
|
+
const PtcImg = class {
|
|
11
|
+
constructor(hostRef) {
|
|
12
|
+
index.registerInstance(this, hostRef);
|
|
13
|
+
this.sizeXs = '510x340';
|
|
14
|
+
this.sizeSm = '1240x496';
|
|
15
|
+
this.sizeMd = '1366x500';
|
|
16
|
+
this.sizeLg = '1920x1080';
|
|
17
|
+
this.imgUrl = undefined;
|
|
18
|
+
this.imageType = 'smart-bg';
|
|
19
|
+
this.borderRadius = '';
|
|
20
|
+
this.loadMode = 'lazy-bg';
|
|
21
|
+
this.styles = undefined;
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* Image Z Index
|
|
25
|
+
*/
|
|
26
|
+
// @Prop() imageZIndex: 'z-index-auto' | 'z-index-n-2' | 'z-index-n-1' | 'z-index-p-1' | 'z-index-p-2' = 'z-index-auto';
|
|
27
|
+
WindowResize() {
|
|
28
|
+
this.setResponsiveBg();
|
|
29
|
+
}
|
|
30
|
+
render() {
|
|
31
|
+
const classMap = this.getCssClassMap();
|
|
32
|
+
return (index.h(index.Host, null, this.styles && index.h("style", null, this.styles), index.h("div", { class: classMap, "data-xs": `${this.imgUrl}`, "data-sm": `${this.imgUrl}`, "data-md": `${this.imgUrl}`, "data-lg": `${this.imgUrl}` }, this.imageType == 'smart-bg' ? index.h("slot", null) : null)));
|
|
33
|
+
}
|
|
34
|
+
componentDidLoad() {
|
|
35
|
+
this.addIntersectionObserver();
|
|
36
|
+
this.setResponsiveBg();
|
|
37
|
+
}
|
|
38
|
+
componentWillUpdate() {
|
|
39
|
+
this.addIntersectionObserver();
|
|
40
|
+
this.setResponsiveBg();
|
|
41
|
+
}
|
|
42
|
+
//responsive image
|
|
43
|
+
setResponsiveBg() {
|
|
44
|
+
// Define local variables
|
|
45
|
+
let backgrounds = (this.el || document).querySelectorAll(interfaces.ResponsiveBgVariables.selector), el, elData, currentBreakpoint = this.getCurrentBreakPoints();
|
|
46
|
+
// Loop through all target elements
|
|
47
|
+
for (var i = 0, len = backgrounds.length; i < len; i++) {
|
|
48
|
+
// Set current variables
|
|
49
|
+
el = backgrounds[i];
|
|
50
|
+
elData = el.getAttribute('data-' + currentBreakpoint);
|
|
51
|
+
// If the data attribute exists, set the background
|
|
52
|
+
if (elData !== null) {
|
|
53
|
+
el.style.backgroundImage = "url('" + elData + "')";
|
|
54
|
+
}
|
|
55
|
+
else {
|
|
56
|
+
if (typeof console == 'object') {
|
|
57
|
+
console.warn('Data attribute: data-' + currentBreakpoint + ' not found on element:\n\n' + el.outerHTML + '\n\n\n');
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
//lazy loading
|
|
63
|
+
addIntersectionObserver() {
|
|
64
|
+
if (!this.imgUrl) {
|
|
65
|
+
console.log('no image!');
|
|
66
|
+
return;
|
|
67
|
+
}
|
|
68
|
+
if ('IntersectionObserver' in window) {
|
|
69
|
+
let lazyLoadBgs = (this.el || document).querySelectorAll('.lazy-bg');
|
|
70
|
+
let bgObserver = new IntersectionObserver(entries => {
|
|
71
|
+
entries.forEach(entry => {
|
|
72
|
+
if (entry.isIntersecting) {
|
|
73
|
+
const image = entry.target;
|
|
74
|
+
image.classList.remove('lazy-bg');
|
|
75
|
+
bgObserver.unobserve(image);
|
|
76
|
+
}
|
|
77
|
+
});
|
|
78
|
+
});
|
|
79
|
+
lazyLoadBgs.forEach(image => {
|
|
80
|
+
bgObserver.observe(image);
|
|
81
|
+
});
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
getCssClassMap() {
|
|
85
|
+
return {
|
|
86
|
+
[this.imageType]: true,
|
|
87
|
+
'ptc-img': true,
|
|
88
|
+
[this.borderRadius]: true,
|
|
89
|
+
[this.loadMode]: true,
|
|
90
|
+
// [this.imageZIndex] : true
|
|
91
|
+
};
|
|
92
|
+
}
|
|
93
|
+
getCurrentBreakPoints() {
|
|
94
|
+
// Define local variables
|
|
95
|
+
let doc = window.document, temp = doc.createElement('div'), env;
|
|
96
|
+
// Append test node
|
|
97
|
+
doc.body.appendChild(temp);
|
|
98
|
+
// Loop through breakpoints
|
|
99
|
+
for (let i = interfaces.ResponsiveBgVariables.envs.length - 1; i >= 0; i--) {
|
|
100
|
+
env = interfaces.ResponsiveBgVariables.envs[i];
|
|
101
|
+
// Add classes
|
|
102
|
+
temp.className = 'hidden-' + env;
|
|
103
|
+
// Found breakpoint
|
|
104
|
+
if (temp.offsetParent === null) {
|
|
105
|
+
// Remove our test node
|
|
106
|
+
doc.body.removeChild(temp);
|
|
107
|
+
// Return current breakpoint
|
|
108
|
+
return env;
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
// Breakpoint not found, try fallback
|
|
112
|
+
doc.body.removeChild(temp);
|
|
113
|
+
return this.getFallbackBreakpoint();
|
|
114
|
+
}
|
|
115
|
+
getFallbackBreakpoint() {
|
|
116
|
+
if (window.matchMedia('(min-width: 992px)').matches) {
|
|
117
|
+
return 'lg';
|
|
118
|
+
}
|
|
119
|
+
else if (window.matchMedia('(min-width: 768px)').matches) {
|
|
120
|
+
return 'md';
|
|
121
|
+
}
|
|
122
|
+
else if (window.matchMedia('(min-width: 576px)').matches) {
|
|
123
|
+
return 'sm';
|
|
124
|
+
}
|
|
125
|
+
else {
|
|
126
|
+
return 'xs';
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
get el() { return index.getElement(this); }
|
|
130
|
+
};
|
|
131
|
+
PtcImg.style = ptcImgCss;
|
|
132
|
+
|
|
133
|
+
exports.ptc_img = PtcImg;
|
|
@@ -0,0 +1,125 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
const index = require('./index-63ddc79c.js');
|
|
6
|
+
|
|
7
|
+
const ptcInlineCtaCss = "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 .small-inline-cta-container{width:100%;height:max-content;display:grid;position:relative;align-items:center}:host .small-inline-cta-container .cta-bg{display:none}:host .small-inline-cta-container .cta-content{width:100%;display:flex;flex-direction:column;box-sizing:border-box;background-color:var(--color-gray-08);border-radius:var(--ptc-border-radius-standard);padding:var(--ptc-element-spacing-05);box-sizing:border-box}:host .small-inline-cta-container .cta-content .cta-image{width:100%;height:200px}:host .small-inline-cta-container .cta-content .cta-body{width:100%;margin-top:var(--ptc-element-spacing-05);padding:0}:host .small-inline-cta-container .cta-content .cta-body .link-wrapper{display:block;outline:none;text-decoration:none;position:relative}:host .small-inline-cta-container .cta-content .cta-body .link-wrapper:before{content:\"\";position:absolute;display:inline-block;width:100%;height:100%;padding:16px;margin:-16px}:host .small-inline-cta-container .cta-content .cta-body .link-wrapper:hover{outline:none;text-decoration:none}:host .small-inline-cta-container .cta-content .cta-body .link-wrapper:focus-visible{padding:2px;border-radius:var(--ptc-border-radius-standard);border:2px solid white;outline:5px solid var(--keyboard-nav-outline)}@media only screen and (min-width: 768px){:host .small-inline-cta-container{margin-top:calc(var(--ptc-element-spacing-06) + var(--ptc-element-spacing-01));margin-bottom:calc(var(--ptc-element-spacing-06) + var(--ptc-element-spacing-01))}:host .small-inline-cta-container .cta-bg{display:block;width:80%;height:calc(100% + 16px + 16px);position:absolute;right:0;z-index:-1;background-color:var(--color-gray-08);border-radius:var(--ptc-border-radius-standard)}:host .small-inline-cta-container .cta-content{flex-direction:row;align-items:center;background-color:transparent;border-radius:none;padding:0}:host .small-inline-cta-container .cta-content .cta-image{width:35%;height:164px}:host .small-inline-cta-container .cta-content .cta-body{width:65%;justify-self:right;display:flex;align-items:center;box-sizing:border-box;padding-right:var(--ptc-element-spacing-07);padding-left:var(--ptc-element-spacing-07);margin-top:0;margin-bottom:0}}:host .big-inline-cta-container{width:100%;height:max-content;display:grid;position:relative;align-items:center}:host .big-inline-cta-container .cta-bg{display:none}:host .big-inline-cta-container .cta-content{width:100%;display:flex;flex-direction:column;border-radius:var(--ptc-border-radius-standard);padding:var(--ptc-element-spacing-05);box-sizing:border-box;background-color:var(--color-green-08)}:host .big-inline-cta-container .cta-content .cta-image{width:100%;height:300px}:host .big-inline-cta-container .cta-content .cta-body{width:100%;margin-top:var(--ptc-element-spacing-06)}:host .big-inline-cta-container .cta-content .cta-body .link-wrapper{display:block;outline:none;text-decoration:none;position:relative}:host .big-inline-cta-container .cta-content .cta-body .link-wrapper:before{content:\"\";position:absolute;display:inline-block;width:100%;height:100%;padding:24px;margin:-24px}:host .big-inline-cta-container .cta-content .cta-body .link-wrapper:hover{outline:none;text-decoration:none}:host .big-inline-cta-container .cta-content .cta-body .link-wrapper:focus-visible{padding:2px;border-radius:var(--ptc-border-radius-standard);border:2px solid white;outline:5px solid var(--keyboard-nav-outline)}@media only screen and (min-width: 480px){:host .big-inline-cta-container .cta-content .cta-body{margin-top:var(--ptc-element-spacing-04)}}@media only screen and (min-width: 768px){:host .big-inline-cta-container{margin-top:calc(var(--ptc-element-spacing-06) + var(--ptc-element-spacing-01));margin-bottom:calc(var(--ptc-element-spacing-06) + var(--ptc-element-spacing-01))}:host .big-inline-cta-container .cta-bg{display:block;width:80%;height:calc(100% + 24px + 24px);position:absolute;right:0;z-index:-1;border-radius:var(--ptc-border-radius-standard);background-color:var(--color-green-08)}:host .big-inline-cta-container .cta-content{flex-direction:row;align-items:center;border-radius:none;padding:0;background-color:transparent}:host .big-inline-cta-container .cta-content .cta-image{width:40%;height:400px;justify-self:left}:host .big-inline-cta-container .cta-content .cta-body{width:60%;justify-self:right;display:flex;align-items:center;box-sizing:border-box;padding-top:calc(var(--ptc-element-spacing-07) + var(--ptc-element-spacing-05));padding-right:var(--ptc-element-spacing-07);padding-bottom:calc(var(--ptc-element-spacing-08) + var(--ptc-element-spacing-04));padding-left:var(--ptc-element-spacing-07);margin-top:0}}:host .big-inline-cta-container.green .cta-content{background-color:var(--color-green-08)}@media only screen and (min-width: 768px){:host .big-inline-cta-container.green .cta-bg{background-color:var(--color-green-08)}:host .big-inline-cta-container.green .cta-content{background-color:transparent}}:host .big-inline-cta-container.blue .cta-content{background-color:var(--color-blue-08)}@media only screen and (min-width: 768px){:host .big-inline-cta-container.blue .cta-bg{background-color:var(--color-blue-08)}:host .big-inline-cta-container.blue .cta-content{background-color:transparent}}:host .big-inline-cta-container.gray .cta-content{background-color:var(--color-gray-08)}@media only screen and (min-width: 768px){:host .big-inline-cta-container.gray .cta-bg{background-color:var(--color-gray-08)}:host .big-inline-cta-container.gray .cta-content{background-color:transparent}}:host .bottom-inline-cta-container{background-color:#FFF;padding:var(--ptc-element-spacing-06);display:flex;gap:var(--ptc-element-spacing-06);flex-direction:column;border-radius:var(--ptc-border-radius-standard)}:host .bottom-inline-cta-container .cta-image{flex:none;height:230px}:host .bottom-inline-cta-container .link-wrapper{display:block;outline:none;text-decoration:none;position:relative}:host .bottom-inline-cta-container .link-wrapper:before{content:\"\";position:absolute;display:inline-block;width:100%;height:100%;padding:24px;margin:-24px}:host .bottom-inline-cta-container .link-wrapper:hover{outline:none;text-decoration:none}:host .bottom-inline-cta-container .link-wrapper:focus-visible{padding:2px;border-radius:var(--ptc-border-radius-standard);border:2px solid white;outline:5px solid var(--keyboard-nav-outline)}@media only screen and (min-width: 768px){:host .bottom-inline-cta-container{flex-direction:row;gap:0}:host .bottom-inline-cta-container .cta-image{height:inherit;width:50%;display:block;position:relative}:host .bottom-inline-cta-container .cta-image ptc-picture{position:absolute;top:0;right:12px;bottom:0;left:0}:host .bottom-inline-cta-container .cta-body{height:max-content;width:50%;display:block;padding-left:12px}}";
|
|
8
|
+
|
|
9
|
+
const idxBgClassMapper = {
|
|
10
|
+
0: "green",
|
|
11
|
+
1: "blue",
|
|
12
|
+
2: "gray",
|
|
13
|
+
};
|
|
14
|
+
const PtcInlineCta = class {
|
|
15
|
+
constructor(hostRef) {
|
|
16
|
+
index.registerInstance(this, hostRef);
|
|
17
|
+
this.captureSlots = () => {
|
|
18
|
+
var _a, _b, _c, _d;
|
|
19
|
+
this.image = (_a = this.hostEle) === null || _a === void 0 ? void 0 : _a.querySelector('[slot="cta-image"]');
|
|
20
|
+
this.cta = (_b = this.hostEle) === null || _b === void 0 ? void 0 : _b.querySelector('[slot="cta-link"]');
|
|
21
|
+
const heading = (_c = this.hostEle) === null || _c === void 0 ? void 0 : _c.querySelector('[slot="cta-heading"]');
|
|
22
|
+
const description = (_d = this.hostEle) === null || _d === void 0 ? void 0 : _d.querySelector('[slot="cta-description"]');
|
|
23
|
+
this.heading = (heading === null || heading === void 0 ? void 0 : heading.innerText) || "";
|
|
24
|
+
this.description = (description === null || description === void 0 ? void 0 : description.innerText) || "";
|
|
25
|
+
};
|
|
26
|
+
this.setBgColor = () => {
|
|
27
|
+
var _a;
|
|
28
|
+
let inlineCtas = null;
|
|
29
|
+
if (this.containerSelector) {
|
|
30
|
+
const container = document.querySelector(this.containerSelector);
|
|
31
|
+
if (this.containerIsShadow) {
|
|
32
|
+
inlineCtas = (_a = container === null || container === void 0 ? void 0 : container.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelectorAll('ptc-inline-cta');
|
|
33
|
+
}
|
|
34
|
+
else {
|
|
35
|
+
inlineCtas = container === null || container === void 0 ? void 0 : container.querySelectorAll('ptc-inline-cta');
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
else {
|
|
39
|
+
inlineCtas = document.querySelectorAll('ptc-inline-cta');
|
|
40
|
+
}
|
|
41
|
+
inlineCtas && inlineCtas.forEach((cta, idx) => {
|
|
42
|
+
var _a, _b;
|
|
43
|
+
if (cta == this.hostEle) {
|
|
44
|
+
const bgVariationCount = Object.keys(idxBgClassMapper).length;
|
|
45
|
+
const bgClass = idxBgClassMapper[idx % bgVariationCount];
|
|
46
|
+
const ctaContainer = (_b = (_a = this.hostEle) === null || _a === void 0 ? void 0 : _a.shadowRoot) === null || _b === void 0 ? void 0 : _b.querySelector('.big-inline-cta-container');
|
|
47
|
+
if (ctaContainer) {
|
|
48
|
+
ctaContainer.classList.add(bgClass);
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
});
|
|
52
|
+
};
|
|
53
|
+
this.truncate = (str, limit) => {
|
|
54
|
+
return (str.length <= limit) ? str : (str.substring(0, limit) + "...");
|
|
55
|
+
};
|
|
56
|
+
this.handleFocus = (e, linkWrapper) => {
|
|
57
|
+
var _a, _b, _c, _d;
|
|
58
|
+
switch (this.type) {
|
|
59
|
+
case 'small':
|
|
60
|
+
(_a = linkWrapper.querySelector('ptc-link')) === null || _a === void 0 ? void 0 : _a.focus();
|
|
61
|
+
break;
|
|
62
|
+
default:
|
|
63
|
+
if (e.relatedTarget.nodeName !== 'PTC-BUTTON') {
|
|
64
|
+
(_d = (_c = (_b = linkWrapper.querySelector('ptc-button')) === null || _b === void 0 ? void 0 : _b.shadowRoot) === null || _c === void 0 ? void 0 : _c.querySelector('button')) === null || _d === void 0 ? void 0 : _d.focus();
|
|
65
|
+
}
|
|
66
|
+
break;
|
|
67
|
+
}
|
|
68
|
+
};
|
|
69
|
+
this.componentWillLoad = () => {
|
|
70
|
+
this.captureSlots();
|
|
71
|
+
};
|
|
72
|
+
this.componentWillRender = () => {
|
|
73
|
+
// const linkWrapper = this.hostEle?.shadowRoot?.querySelector<HTMLAnchorElement>('a.link-wrapper');
|
|
74
|
+
// if (linkWrapper) {
|
|
75
|
+
// linkWrapper.addEventListener('focus', e => this.handleFocus(e, linkWrapper));
|
|
76
|
+
// }
|
|
77
|
+
};
|
|
78
|
+
this.componentDidLoad = () => {
|
|
79
|
+
if (this.type === 'big') {
|
|
80
|
+
this.setBgColor();
|
|
81
|
+
}
|
|
82
|
+
};
|
|
83
|
+
this.disconnectedCallback = () => {
|
|
84
|
+
// const linkWrapper = this.hostEle?.shadowRoot?.querySelector<HTMLAnchorElement>('a.link-wrapper');
|
|
85
|
+
// if (linkWrapper) {
|
|
86
|
+
// linkWrapper.removeEventListener('focus', e => this.handleFocus(e, linkWrapper));
|
|
87
|
+
// }
|
|
88
|
+
};
|
|
89
|
+
this.type = undefined;
|
|
90
|
+
this.containerSelector = '';
|
|
91
|
+
this.containerIsShadow = false;
|
|
92
|
+
this.trackerId = "";
|
|
93
|
+
this.image = undefined;
|
|
94
|
+
this.heading = "";
|
|
95
|
+
this.description = "";
|
|
96
|
+
this.cta = undefined;
|
|
97
|
+
}
|
|
98
|
+
render() {
|
|
99
|
+
const Small = () => {
|
|
100
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
101
|
+
return index.h("div", { class: "small-inline-cta-container" }, index.h("div", { class: "cta-bg" }), index.h("div", { class: "cta-content" }, index.h("div", { class: "cta-image" }, !!((_a = this.image) === null || _a === void 0 ? void 0 : _a.src) && index.h("ptc-picture", { alt: (_b = this.image) === null || _b === void 0 ? void 0 : _b.alt, "display-image": "block", "image-alignment": "center", "image-position": "relative", "is-full-height": "true", "is-full-width": "true", "object-fit": "cover", src: (_c = this.image) === null || _c === void 0 ? void 0 : _c.src, styles: "\r\n\t\t\t\t\t\t\t\t:host {\r\n\t\t\t\t\t\t\t\t\theight: 100%;\r\n\r\n\t\t\t\t\t\t\t\t\timg {\r\n\t\t\t\t\t\t\t\t\t\tborder-radius: var(--ptc-border-radius-standard);\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t" })), index.h("div", { class: "cta-body", id: this.trackerId }, index.h("a", { class: "cta-body-inner link-wrapper", href: (_d = this.cta) === null || _d === void 0 ? void 0 : _d.href, target: (_e = this.cta) === null || _e === void 0 ? void 0 : _e.target, title: (_f = this.cta) === null || _f === void 0 ? void 0 : _f.title, tabindex: "0", "aria-label": "Inline CTA" }, !!this.heading && index.h("ptc-title", { "seo-compatibility-mode": true, type: "h4", "title-size": "medium", "title-weight": "w-7", "title-color": "white", "title-height": "densest", "title-margin": "margin-flush", upperline: 'no-upperline', "is-plm-hub": false }, index.h("h4", null, this.truncate(this.heading, 70))), !!this.description && index.h(index.Fragment, null, index.h("ptc-spacer", { breakpoint: 'x-small', size: 'small' }), index.h("ptc-spacer", { breakpoint: 'small', size: 'x-small' }), index.h("ptc-para", { "font-size": "x-small", "font-weight": "w-4", "para-color": "white", "para-line-h": "line-height-p", "para-margin": "margin-flush" }, this.truncate(this.description, 100))), !!((_g = this.cta) === null || _g === void 0 ? void 0 : _g.href) && index.h(index.Fragment, null, index.h("ptc-spacer", { breakpoint: 'x-small', size: 'small' }), index.h("ptc-spacer", { breakpoint: 'small', size: 'x-small' }), index.h("ptc-link", { disabled: false, "font-size": "small", theme: "d-green-underline", styles: ".d-green-underline {line-height: var(--ptc-line-height-p)}", "link-title": (_h = this.cta) === null || _h === void 0 ? void 0 : _h.title }, (_j = this.cta) === null || _j === void 0 ? void 0 : _j.innerText))))));
|
|
102
|
+
};
|
|
103
|
+
const Big = () => {
|
|
104
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
105
|
+
return index.h("div", { class: "big-inline-cta-container" }, index.h("div", { class: "cta-bg" }), index.h("div", { class: "cta-content" }, index.h("div", { class: "cta-image" }, !!((_a = this.image) === null || _a === void 0 ? void 0 : _a.src) && index.h("ptc-picture", { alt: (_b = this.image) === null || _b === void 0 ? void 0 : _b.alt, "display-image": "block", "image-alignment": "center", "image-position": "relative", "is-full-height": "true", "is-full-width": "true", "object-fit": "cover", src: (_c = this.image) === null || _c === void 0 ? void 0 : _c.src, styles: "\r\n\t\t\t\t\t\t\t\t:host {\r\n\t\t\t\t\t\t\t\t\theight: 100%;\r\n\r\n\t\t\t\t\t\t\t\t\timg {\r\n\t\t\t\t\t\t\t\t\t\tborder-radius: var(--ptc-border-radius-standard);\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t};\r\n\t\t\t\t\t\t\t" })), index.h("div", { class: "cta-body", id: this.trackerId }, index.h("a", { class: "cta-body-inner link-wrapper", href: (_d = this.cta) === null || _d === void 0 ? void 0 : _d.href, target: (_e = this.cta) === null || _e === void 0 ? void 0 : _e.target, title: (_f = this.cta) === null || _f === void 0 ? void 0 : _f.title, tabindex: "0", "aria-label": "Inline CTA" }, !!this.heading && index.h("ptc-title", { "seo-compatibility-mode": true, type: "h3", "title-size": "large", "title-weight": "w-7", "title-color": "white", "title-height": "densest", "title-margin": "margin-flush", upperline: 'no-upperline', "is-plm-hub": false }, index.h("h3", null, this.truncate(this.heading, 70))), !!this.description && index.h(index.Fragment, null, index.h("ptc-spacer", { breakpoint: 'x-small', size: 'large' }), index.h("ptc-spacer", { breakpoint: 'small', size: 'medium' }), index.h("ptc-para", { "font-size": "small", "font-weight": "w-4", "para-color": "white", "para-line-h": "line-height-p", "para-margin": "margin-flush" }, this.truncate(this.description, 200))), !!((_g = this.cta) === null || _g === void 0 ? void 0 : _g.href) && index.h(index.Fragment, null, index.h("ptc-spacer", { breakpoint: 'x-small', size: 'xx-large' }), index.h("ptc-spacer", { breakpoint: 'small', size: 'x-large' }), index.h("ptc-spacer", { breakpoint: 'x-small', size: 'x-small' }), index.h("ptc-spacer", { breakpoint: 'small', size: 'xx-small' }), index.h("ptc-button", { color: "ptc-tertiary", disabled: false, type: "button", styles: ".ptc-tertiary {border: 2px solid #FFFFFF !important}", "tab-nav": "-1", "button-title": (_h = this.cta) === null || _h === void 0 ? void 0 : _h.title }, (_j = this.cta) === null || _j === void 0 ? void 0 : _j.innerText))))));
|
|
106
|
+
};
|
|
107
|
+
const Bottom = () => {
|
|
108
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
109
|
+
return index.h("div", { class: "bottom-inline-cta-container" }, index.h("div", { class: "cta-image" }, !!((_a = this.image) === null || _a === void 0 ? void 0 : _a.src) && index.h("ptc-picture", { alt: (_b = this.image) === null || _b === void 0 ? void 0 : _b.alt, "display-image": "block", "image-alignment": "center", "image-position": "relative", "is-full-height": "true", "is-full-width": "true", "object-fit": "cover", src: (_c = this.image) === null || _c === void 0 ? void 0 : _c.src, styles: ":host {height: 100%;}" })), index.h("div", { id: this.trackerId, class: "cta-body" }, index.h("a", { class: "link-wrapper", href: (_d = this.cta) === null || _d === void 0 ? void 0 : _d.href, target: (_e = this.cta) === null || _e === void 0 ? void 0 : _e.target, title: (_f = this.cta) === null || _f === void 0 ? void 0 : _f.title, tabindex: "0", "aria-label": "Inline CTA" }, !!this.heading && index.h("ptc-title", { "seo-compatibility-mode": true, type: "h2", "title-size": "xx-large", "title-weight": "w-8", "title-line-h": "densest", "title-margin": "margin-flush", upperline: 'no-upperline', "is-plm-hub": false }, index.h("h2", null, this.truncate(this.heading, 70))), !!this.description && index.h(index.Fragment, null, index.h("ptc-spacer", { breakpoint: 'x-small', size: 'small' }), index.h("ptc-spacer", { breakpoint: 'x-small', size: 'large' }), index.h("ptc-spacer", { breakpoint: 'small', size: 'medium' }), index.h("ptc-para", { "font-size": "small", "font-weight": "w-4", "para-line-h": "line-height-p", "para-margin": "margin-bottom-4" }, this.truncate(this.description, 100))), !!((_g = this.cta) === null || _g === void 0 ? void 0 : _g.href) && index.h("ptc-button", { color: "ptc-primary", disabled: false, type: "button", "tab-nav": "-1", "button-title": (_h = this.cta) === null || _h === void 0 ? void 0 : _h.title }, (_j = this.cta) === null || _j === void 0 ? void 0 : _j.innerText))));
|
|
110
|
+
};
|
|
111
|
+
const InlineCta = () => {
|
|
112
|
+
switch (this.type) {
|
|
113
|
+
case 'small': return index.h(Small, null);
|
|
114
|
+
case 'big': return index.h(Big, null);
|
|
115
|
+
case 'bottom': return index.h(Bottom, null);
|
|
116
|
+
default: return null;
|
|
117
|
+
}
|
|
118
|
+
};
|
|
119
|
+
return (index.h(index.Host, null, index.h("ptc-spacer", { breakpoint: "x-small", size: "xxxx-large" }), index.h("ptc-spacer", { breakpoint: "small", size: "xxx-large" }), index.h("div", null, index.h(InlineCta, null)), (this.type === 'bottom') ? null : index.h(index.Fragment, null, index.h("ptc-spacer", { breakpoint: "x-small", size: "xxxx-large" }), index.h("ptc-spacer", { breakpoint: "small", size: "xxx-large" }))));
|
|
120
|
+
}
|
|
121
|
+
get hostEle() { return index.getElement(this); }
|
|
122
|
+
};
|
|
123
|
+
PtcInlineCta.style = ptcInlineCtaCss;
|
|
124
|
+
|
|
125
|
+
exports.ptc_inline_cta = PtcInlineCta;
|