@ptcwebops/ptcw-design 3.8.6 → 3.8.7
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_16.cjs.entry.js +1479 -0
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/ptc-bio-card.cjs.entry.js +1 -1
- package/dist/cjs/ptc-icon-component.cjs.entry.js +429 -0
- package/dist/cjs/ptc-link.cjs.entry.js +91 -0
- package/dist/cjs/ptc-readmore-char.cjs.entry.js +39 -0
- package/dist/cjs/ptc-readmore.cjs.entry.js +93 -0
- package/dist/cjs/ptc-shopping-cart.cjs.entry.js +3 -2
- package/dist/cjs/ptcw-design.cjs.js +1 -1
- package/dist/collection/components/ptc-bio-card/ptc-bio-card.css +7 -7
- package/dist/collection/components/ptc-office-locations/ptc-office-locations.js +3 -2
- package/dist/collection/components/ptc-shopping-cart/ptc-shopping-cart.css +44 -16
- package/dist/collection/components/ptc-shopping-cart/ptc-shopping-cart.js +20 -1
- package/dist/custom-elements/index.js +8 -6
- package/dist/esm/academic-form-test.entry.js +1 -1
- package/dist/esm/author-listing-example.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/{core-1977536e.js → core-ebde74a2.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/icon-asset_16.entry.js +1460 -0
- package/dist/esm/{index-abb9f744.js → index-3309fc22.js} +1 -1
- package/dist/esm/innovator-toggle-container.entry.js +1 -1
- package/dist/esm/loader.js +3 -3
- 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/{pagination-58bf50d9.js → pagination-726fafd1.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-badge.entry.js +1 -1
- package/dist/esm/ptc-bio-card.entry.js +2 -2
- 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 +3 -3
- 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-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 +1 -1
- package/dist/esm/ptc-filter-level-theater.entry.js +1 -1
- package/dist/esm/ptc-filter-tag.entry.js +1 -1
- package/dist/esm/ptc-form-checkbox_3.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-icon-component.entry.js +425 -0
- 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-link.entry.js +87 -0
- package/dist/esm/ptc-list.entry.js +1 -1
- package/dist/esm/ptc-media-card.entry.js +1 -1
- 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-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-overlay.entry.js +1 -1
- package/dist/esm/ptc-pagenation.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-section.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-quote.entry.js +1 -1
- package/dist/esm/ptc-readmore-char.entry.js +35 -0
- package/dist/esm/ptc-readmore.entry.js +89 -0
- 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-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-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.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-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-white-paper.entry.js +1 -1
- package/dist/esm/ptcw-design.js +3 -3
- package/dist/esm/sequential-bundle-example.entry.js +2 -2
- package/dist/esm/sequential-bundle.entry.js +2 -2
- package/dist/esm/tab-content.entry.js +1 -1
- package/dist/esm/tab-header.entry.js +1 -1
- package/dist/ptcw-design/p-0076bd4d.entry.js +1 -0
- package/dist/ptcw-design/{p-36604862.entry.js → p-020f66f1.entry.js} +1 -1
- package/dist/ptcw-design/{p-1ee3dc05.entry.js → p-03ca130e.entry.js} +1 -1
- package/dist/ptcw-design/{p-17d4b8be.entry.js → p-054912ed.entry.js} +1 -1
- package/dist/ptcw-design/{p-a300231c.entry.js → p-16e0673e.entry.js} +1 -1
- package/dist/ptcw-design/{p-c17a2f3c.entry.js → p-17a8b8e3.entry.js} +1 -1
- package/dist/ptcw-design/{p-b90455f9.entry.js → p-1904359b.entry.js} +1 -1
- package/dist/ptcw-design/{p-4655bc27.entry.js → p-1dde0467.entry.js} +1 -1
- package/dist/ptcw-design/{p-0b9ac7cf.entry.js → p-207855ea.entry.js} +1 -1
- package/dist/ptcw-design/{p-6c002d42.entry.js → p-22887237.entry.js} +1 -1
- package/dist/ptcw-design/{p-7d8a978c.entry.js → p-238e7d54.entry.js} +1 -1
- package/dist/ptcw-design/{p-c45ab8e7.entry.js → p-24144029.entry.js} +1 -1
- package/dist/ptcw-design/{p-ed4b9aab.entry.js → p-25fbc2d0.entry.js} +1 -1
- package/dist/ptcw-design/p-25fbffd9.entry.js +1 -0
- package/dist/ptcw-design/{p-ea8bdc99.entry.js → p-261afbc1.entry.js} +1 -1
- package/dist/ptcw-design/{p-f9e8439f.entry.js → p-2675f0fe.entry.js} +1 -1
- package/dist/ptcw-design/{p-5d82cdaa.entry.js → p-29ff7857.entry.js} +1 -1
- package/dist/ptcw-design/{p-0311ceb2.entry.js → p-2c877fb9.entry.js} +1 -1
- package/dist/ptcw-design/{p-5cda8f30.entry.js → p-2d65dfcf.entry.js} +1 -1
- package/dist/ptcw-design/{p-9fa2a419.entry.js → p-2daf7fbe.entry.js} +1 -1
- package/dist/ptcw-design/{p-a00a829a.entry.js → p-33a7506c.entry.js} +1 -1
- package/dist/ptcw-design/{p-d2eb622e.entry.js → p-362d54d2.entry.js} +1 -1
- package/dist/ptcw-design/{p-731cd57d.entry.js → p-371d7474.entry.js} +1 -1
- package/dist/ptcw-design/{p-03bfbe0a.entry.js → p-39d018d6.entry.js} +1 -1
- package/dist/ptcw-design/{p-64466623.entry.js → p-3d1851a4.entry.js} +1 -1
- package/dist/ptcw-design/{p-b27ab783.entry.js → p-3e43113a.entry.js} +1 -1
- package/dist/ptcw-design/{p-a99adbbb.entry.js → p-423b590f.entry.js} +1 -1
- package/dist/ptcw-design/{p-3760236d.entry.js → p-42c50034.entry.js} +1 -1
- package/dist/ptcw-design/{p-683bb8c6.entry.js → p-45411fff.entry.js} +1 -1
- package/dist/ptcw-design/{p-77e477ff.entry.js → p-4a5bdc6a.entry.js} +1 -1
- package/dist/ptcw-design/p-4ae0e239.entry.js +1 -0
- package/dist/ptcw-design/{p-0be388fc.entry.js → p-4bdd8e95.entry.js} +1 -1
- package/dist/ptcw-design/{p-ca8fa3f3.entry.js → p-4d9bbf31.entry.js} +1 -1
- package/dist/ptcw-design/{p-2d223899.entry.js → p-4dafb772.entry.js} +1 -1
- package/dist/ptcw-design/{p-9d929e56.entry.js → p-4dd32631.entry.js} +1 -1
- package/dist/ptcw-design/{p-d37f1d5a.entry.js → p-4e237216.entry.js} +1 -1
- package/dist/ptcw-design/p-5150c774.entry.js +1 -0
- package/dist/ptcw-design/{p-06ec3a76.entry.js → p-51b6b420.entry.js} +1 -1
- package/dist/ptcw-design/{p-3459ce75.entry.js → p-5407c0c0.entry.js} +1 -1
- package/dist/ptcw-design/{p-e19ec1fb.entry.js → p-54708a83.entry.js} +1 -1
- package/dist/ptcw-design/{p-c974da46.entry.js → p-55637af9.entry.js} +1 -1
- package/dist/ptcw-design/{p-84692a5f.entry.js → p-5883f603.entry.js} +1 -1
- package/dist/ptcw-design/p-58b1b9a7.entry.js +1 -0
- package/dist/ptcw-design/{p-290c1c76.entry.js → p-59633fe2.entry.js} +1 -1
- package/dist/ptcw-design/{p-51cc6129.entry.js → p-5e8a4cd8.entry.js} +1 -1
- package/dist/ptcw-design/{p-7c218213.entry.js → p-5f137f3f.entry.js} +1 -1
- package/dist/ptcw-design/{p-66c2c3a3.entry.js → p-5f39f3f1.entry.js} +1 -1
- package/dist/ptcw-design/{p-7328af64.entry.js → p-6344d3a2.entry.js} +1 -1
- package/dist/ptcw-design/{p-cc61eec9.entry.js → p-6430ad2e.entry.js} +1 -1
- package/dist/ptcw-design/{p-b9036669.entry.js → p-66b1fc5e.entry.js} +1 -1
- package/dist/ptcw-design/{p-b123bf35.js → p-6914b70c.js} +1 -1
- package/dist/ptcw-design/{p-5fb6dbe5.entry.js → p-6bdb7900.entry.js} +1 -1
- package/dist/ptcw-design/{p-86592455.entry.js → p-6d90575f.entry.js} +1 -1
- package/dist/ptcw-design/{p-c7d46065.entry.js → p-71788f6d.entry.js} +1 -1
- package/dist/ptcw-design/{p-10ee3772.entry.js → p-7621fd18.entry.js} +1 -1
- package/dist/ptcw-design/{p-a120b60a.entry.js → p-764a0229.entry.js} +1 -1
- package/dist/ptcw-design/{p-404c847a.entry.js → p-7e5dd25c.entry.js} +1 -1
- package/dist/ptcw-design/p-854c9f75.entry.js +1 -0
- package/dist/ptcw-design/{p-ebe80b3e.entry.js → p-8594e32b.entry.js} +1 -1
- package/dist/ptcw-design/p-8875b669.entry.js +1 -0
- package/dist/ptcw-design/{p-12d3e601.entry.js → p-8ba615c2.entry.js} +1 -1
- package/dist/ptcw-design/p-8d44305a.entry.js +1 -0
- package/dist/ptcw-design/{p-7202bba3.js → p-8f6af405.js} +1 -1
- package/dist/ptcw-design/{p-a8d92a3b.entry.js → p-90758751.entry.js} +1 -1
- package/dist/ptcw-design/{p-ac7ca899.entry.js → p-94466d17.entry.js} +1 -1
- package/dist/ptcw-design/{p-42944d66.entry.js → p-965ea4cf.entry.js} +1 -1
- package/dist/ptcw-design/{p-ea51e7c2.entry.js → p-96af9e48.entry.js} +1 -1
- package/dist/ptcw-design/{p-c5a80410.entry.js → p-96dbabd9.entry.js} +1 -1
- package/dist/ptcw-design/{p-5860b07d.entry.js → p-96ff713c.entry.js} +1 -1
- package/dist/ptcw-design/{p-7fc3edca.entry.js → p-993adcc2.entry.js} +1 -1
- package/dist/ptcw-design/{p-ab300826.entry.js → p-9d13225e.entry.js} +1 -1
- package/dist/ptcw-design/{p-e262f5d8.entry.js → p-9e0bca7a.entry.js} +1 -1
- package/dist/ptcw-design/{p-0226ece0.js → p-9e0fd244.js} +1 -1
- package/dist/ptcw-design/{p-fe077ba0.entry.js → p-9e3c7de6.entry.js} +1 -1
- package/dist/ptcw-design/{p-eb9d6227.entry.js → p-a60d6a4c.entry.js} +1 -1
- package/dist/ptcw-design/{p-7ffefba9.entry.js → p-a7e3d3b2.entry.js} +1 -1
- package/dist/ptcw-design/{p-7b225938.entry.js → p-a90c79c0.entry.js} +1 -1
- package/dist/ptcw-design/p-ac37629c.entry.js +1 -0
- package/dist/ptcw-design/{p-547229d0.entry.js → p-ac5bc788.entry.js} +1 -1
- package/dist/ptcw-design/{p-08beb0ab.entry.js → p-acf282f7.entry.js} +1 -1
- package/dist/ptcw-design/{p-479f36f0.entry.js → p-af0e69ac.entry.js} +1 -1
- package/dist/ptcw-design/p-b18b5261.entry.js +1 -0
- package/dist/ptcw-design/{p-fed496fd.entry.js → p-b1d77d16.entry.js} +1 -1
- package/dist/ptcw-design/{p-4f7140ea.entry.js → p-b1f64951.entry.js} +1 -1
- package/dist/ptcw-design/{p-cf31d87c.entry.js → p-b581f151.entry.js} +1 -1
- package/dist/ptcw-design/{p-65d6be32.entry.js → p-b65c7a66.entry.js} +1 -1
- package/dist/ptcw-design/p-b81a6576.entry.js +1 -0
- package/dist/ptcw-design/{p-5680c8e9.entry.js → p-b8f9e9b4.entry.js} +1 -1
- package/dist/ptcw-design/{p-14bc4ffe.entry.js → p-b94d99f5.entry.js} +1 -1
- package/dist/ptcw-design/{p-d6f1ebbe.entry.js → p-baaedc25.entry.js} +1 -1
- package/dist/ptcw-design/{p-d2889bb8.entry.js → p-bee9c818.entry.js} +1 -1
- package/dist/ptcw-design/p-c1a3d271.entry.js +1 -0
- package/dist/ptcw-design/{p-305f897c.entry.js → p-c5ddb505.entry.js} +1 -1
- package/dist/ptcw-design/{p-3fa8c043.entry.js → p-cdafd0be.entry.js} +1 -1
- package/dist/ptcw-design/{p-2fde11cf.entry.js → p-ce9f7592.entry.js} +1 -1
- package/dist/ptcw-design/{p-ff682ea1.entry.js → p-d060593a.entry.js} +1 -1
- package/dist/ptcw-design/p-d5d4a714.entry.js +1 -0
- package/dist/ptcw-design/p-d624c8ca.entry.js +1 -0
- package/dist/ptcw-design/{p-4af7a016.entry.js → p-d9056a49.entry.js} +1 -1
- package/dist/ptcw-design/{p-3ad691c2.entry.js → p-de157f09.entry.js} +1 -1
- package/dist/ptcw-design/{p-26ce367b.entry.js → p-df4be90f.entry.js} +1 -1
- package/dist/ptcw-design/{p-be0c9a50.entry.js → p-e202c50a.entry.js} +1 -1
- package/dist/ptcw-design/p-e28086c9.entry.js +1 -0
- package/dist/ptcw-design/{p-2ebc621f.entry.js → p-e4b4e5fc.entry.js} +1 -1
- package/dist/ptcw-design/{p-a67b3072.entry.js → p-e786003c.entry.js} +1 -1
- package/dist/ptcw-design/{p-bd7c3586.entry.js → p-e9506045.entry.js} +1 -1
- package/dist/ptcw-design/{p-b7154ac6.entry.js → p-e99379c4.entry.js} +1 -1
- package/dist/ptcw-design/{p-b35f3f21.entry.js → p-ead74368.entry.js} +1 -1
- package/dist/ptcw-design/{p-dd73e3af.entry.js → p-ecf0f7d4.entry.js} +1 -1
- package/dist/ptcw-design/p-edfaa4b5.entry.js +1 -0
- package/dist/ptcw-design/{p-2d1a0b56.entry.js → p-f0329b38.entry.js} +1 -1
- package/dist/ptcw-design/{p-9896f967.entry.js → p-f378b843.entry.js} +1 -1
- package/dist/ptcw-design/{p-f078ec7d.entry.js → p-f90c075c.entry.js} +1 -1
- package/dist/ptcw-design/{p-671f1e11.entry.js → p-fa1b3b95.entry.js} +1 -1
- package/dist/ptcw-design/{p-622c768f.entry.js → p-fd2b7ff0.entry.js} +1 -1
- package/dist/ptcw-design/{p-95955ed3.entry.js → p-fde4ca9c.entry.js} +1 -1
- package/dist/ptcw-design/p-fe4fdc57.entry.js +1 -0
- package/dist/ptcw-design/{p-49f52c33.entry.js → p-ff392584.entry.js} +1 -1
- package/dist/ptcw-design/ptcw-design.esm.js +1 -1
- package/dist/types/components/ptc-shopping-cart/ptc-shopping-cart.d.ts +1 -0
- package/dist/types/components.d.ts +2 -0
- package/package.json +1 -1
- package/readme.md +1 -1
- package/dist/cjs/icon-asset.cjs.entry.js +0 -53
- package/dist/cjs/interfaces-574e6df7.js +0 -15
- package/dist/cjs/list-item.cjs.entry.js +0 -46
- package/dist/cjs/max-width-container_10.cjs.entry.js +0 -1127
- package/dist/cjs/ptc-background-video.cjs.entry.js +0 -68
- package/dist/cjs/ptc-breadcrumb_2.cjs.entry.js +0 -164
- package/dist/cjs/ptc-button.cjs.entry.js +0 -75
- package/dist/cjs/ptc-img.cjs.entry.js +0 -133
- package/dist/cjs/ptc-modal.cjs.entry.js +0 -194
- package/dist/cjs/ptc-office-location-card.cjs.entry.js +0 -63
- package/dist/cjs/ptc-office-locations.cjs.entry.js +0 -223
- package/dist/cjs/show-map-icon-c1cca913.js +0 -10
- package/dist/esm/icon-asset.entry.js +0 -49
- package/dist/esm/interfaces-7c0243be.js +0 -12
- package/dist/esm/list-item.entry.js +0 -42
- package/dist/esm/max-width-container_10.entry.js +0 -1114
- package/dist/esm/ptc-background-video.entry.js +0 -64
- package/dist/esm/ptc-breadcrumb_2.entry.js +0 -159
- package/dist/esm/ptc-button.entry.js +0 -71
- package/dist/esm/ptc-img.entry.js +0 -129
- package/dist/esm/ptc-modal.entry.js +0 -190
- package/dist/esm/ptc-office-location-card.entry.js +0 -59
- package/dist/esm/ptc-office-locations.entry.js +0 -219
- package/dist/esm/show-map-icon-6d9dce32.js +0 -8
- package/dist/ptcw-design/p-03698164.entry.js +0 -1
- package/dist/ptcw-design/p-2f4f6ccd.js +0 -1
- package/dist/ptcw-design/p-38baf163.entry.js +0 -1
- package/dist/ptcw-design/p-4533c844.entry.js +0 -1
- package/dist/ptcw-design/p-465d7bce.entry.js +0 -1
- package/dist/ptcw-design/p-51f387a0.entry.js +0 -1
- package/dist/ptcw-design/p-5e911124.entry.js +0 -1
- package/dist/ptcw-design/p-62eadf3e.entry.js +0 -1
- package/dist/ptcw-design/p-70edb5f4.entry.js +0 -1
- package/dist/ptcw-design/p-91991667.entry.js +0 -1
- package/dist/ptcw-design/p-9e15fa58.entry.js +0 -1
- package/dist/ptcw-design/p-9f0379c7.entry.js +0 -1
- package/dist/ptcw-design/p-a698e82b.entry.js +0 -1
- package/dist/ptcw-design/p-ab22665e.entry.js +0 -1
- package/dist/ptcw-design/p-ad472068.entry.js +0 -1
- package/dist/ptcw-design/p-be29d609.entry.js +0 -1
- package/dist/ptcw-design/p-c152b9e3.entry.js +0 -1
- package/dist/ptcw-design/p-cdd46a55.entry.js +0 -1
- package/dist/ptcw-design/p-cfa01ed7.entry.js +0 -1
- package/dist/ptcw-design/p-d75e8fec.entry.js +0 -1
- package/dist/ptcw-design/p-dcf7d8b1.entry.js +0 -1
- package/dist/ptcw-design/p-dfaa4e99.entry.js +0 -1
- package/dist/ptcw-design/p-ee1183b2.js +0 -1
- package/dist/ptcw-design/p-f96ff659.entry.js +0 -1
|
@@ -0,0 +1,1479 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
const index = require('./index-4b85b38a.js');
|
|
6
|
+
const utils = require('./utils-03d92070.js');
|
|
7
|
+
|
|
8
|
+
const iconAssetCss = ".svg-inline--fa.sc-icon-asset,svg.sc-icon-asset:not(:root).svg-inline--fa{overflow:visible}.svg-inline--fa.sc-icon-asset{display:inline-block;font-size:inherit;height:1em;vertical-align:-.125em}.svg-inline--fa.fa-lg.sc-icon-asset{vertical-align:-.225em}.svg-inline--fa.fa-w-1.sc-icon-asset{width:.0625em}.svg-inline--fa.fa-w-2.sc-icon-asset{width:.125em}.svg-inline--fa.fa-w-3.sc-icon-asset{width:.1875em}.svg-inline--fa.fa-w-4.sc-icon-asset{width:.25em}.svg-inline--fa.fa-w-5.sc-icon-asset{width:.3125em}.svg-inline--fa.fa-w-6.sc-icon-asset{width:.375em}.svg-inline--fa.fa-w-7.sc-icon-asset{width:.4375em}.svg-inline--fa.fa-w-8.sc-icon-asset{width:.5em}.svg-inline--fa.fa-w-9.sc-icon-asset{width:.5625em}.svg-inline--fa.fa-w-10.sc-icon-asset{width:.625em}.svg-inline--fa.fa-w-11.sc-icon-asset{width:.6875em}.svg-inline--fa.fa-w-12.sc-icon-asset{width:.75em}.svg-inline--fa.fa-w-13.sc-icon-asset{width:.8125em}.svg-inline--fa.fa-w-14.sc-icon-asset{width:.875em}.svg-inline--fa.fa-w-15.sc-icon-asset{width:.9375em}.svg-inline--fa.fa-w-16.sc-icon-asset{width:1em}.svg-inline--fa.fa-w-17.sc-icon-asset{width:1.0625em}.svg-inline--fa.fa-w-18.sc-icon-asset{width:1.125em}.svg-inline--fa.fa-w-19.sc-icon-asset{width:1.1875em}.svg-inline--fa.fa-w-20.sc-icon-asset{width:1.25em}.svg-inline--fa.fa-pull-left.sc-icon-asset{margin-right:.3em;width:auto}.svg-inline--fa.fa-pull-right.sc-icon-asset{margin-left:.3em;width:auto}.svg-inline--fa.fa-border.sc-icon-asset{height:1.5em}.svg-inline--fa.fa-li.sc-icon-asset{width:2em}.svg-inline--fa.fa-fw.sc-icon-asset{width:1.25em}.fa-layers.sc-icon-asset svg.svg-inline--fa.sc-icon-asset{bottom:0;left:0;margin:auto;position:absolute;right:0;top:0}.fa-layers.sc-icon-asset{display:inline-block;height:1em;position:relative;text-align:center;vertical-align:-.125em;width:1em}.fa-layers.sc-icon-asset svg.svg-inline--fa.sc-icon-asset{-webkit-transform-origin:center center;transform-origin:center center}.fa-layers-counter.sc-icon-asset,.fa-layers-text.sc-icon-asset{display:inline-block;position:absolute;text-align:center}.fa-layers-text.sc-icon-asset{left:50%;top:50%;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%);-webkit-transform-origin:center center;transform-origin:center center}.fa-layers-counter.sc-icon-asset{background-color:#ff253a;border-radius:1em;-webkit-box-sizing:border-box;box-sizing:border-box;color:#fff;height:1.5em;line-height:1;max-width:5em;min-width:1.5em;overflow:hidden;padding:.25em;right:0;text-overflow:ellipsis;top:0;-webkit-transform:scale(.25);transform:scale(.25);-webkit-transform-origin:top right;transform-origin:top right}.fa-layers-bottom-right.sc-icon-asset{bottom:0;right:0;top:auto;-webkit-transform:scale(.25);transform:scale(.25);-webkit-transform-origin:bottom right;transform-origin:bottom right}.fa-layers-bottom-left.sc-icon-asset{bottom:0;left:0;right:auto;top:auto;-webkit-transform:scale(.25);transform:scale(.25);-webkit-transform-origin:bottom left;transform-origin:bottom left}.fa-layers-top-right.sc-icon-asset{right:0;top:0;-webkit-transform:scale(.25);transform:scale(.25);-webkit-transform-origin:top right;transform-origin:top right}.fa-layers-top-left.sc-icon-asset{left:0;right:auto;top:0;-webkit-transform:scale(.25);transform:scale(.25);-webkit-transform-origin:top left;transform-origin:top left}.fa-lg.sc-icon-asset{font-size:1.33333em;line-height:.75em;vertical-align:-.0667em}.fa-xs.sc-icon-asset{font-size:.75em}.fa-sm.sc-icon-asset{font-size:.875em}.fa-1x.sc-icon-asset{font-size:1em}.fa-2x.sc-icon-asset{font-size:2em}.fa-3x.sc-icon-asset{font-size:3em}.fa-4x.sc-icon-asset{font-size:4em}.fa-5x.sc-icon-asset{font-size:5em}.fa-6x.sc-icon-asset{font-size:6em}.fa-7x.sc-icon-asset{font-size:7em}.fa-8x.sc-icon-asset{font-size:8em}.fa-9x.sc-icon-asset{font-size:9em}.fa-10x.sc-icon-asset{font-size:10em}.fa-fw.sc-icon-asset{text-align:center;width:1.25em}.fa-ul.sc-icon-asset{list-style-type:none;margin-left:2.5em;padding-left:0}.fa-ul.sc-icon-asset>li.sc-icon-asset{position:relative}.fa-li.sc-icon-asset{left:-2em;position:absolute;text-align:center;width:2em;line-height:inherit}.fa-border.sc-icon-asset{border:.08em solid #eee;border-radius:.1em;padding:.2em .25em .15em}.fa-pull-left.sc-icon-asset{float:left}.fa-pull-right.sc-icon-asset{float:right}.fa.fa-pull-left.sc-icon-asset,.fab.fa-pull-left.sc-icon-asset,.fal.fa-pull-left.sc-icon-asset,.far.fa-pull-left.sc-icon-asset,.fas.fa-pull-left.sc-icon-asset{margin-right:.3em}.fa.fa-pull-right.sc-icon-asset,.fab.fa-pull-right.sc-icon-asset,.fal.fa-pull-right.sc-icon-asset,.far.fa-pull-right.sc-icon-asset,.fas.fa-pull-right.sc-icon-asset{margin-left:.3em}.fa-spin.sc-icon-asset{-webkit-animation:fa-spin 2s linear infinite;animation:fa-spin 2s linear infinite}.fa-pulse.sc-icon-asset{-webkit-animation:fa-spin 1s steps(8) infinite;animation:fa-spin 1s steps(8) infinite}@-webkit-keyframes fa-spin{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}to{-webkit-transform:rotate(1turn);transform:rotate(1turn)}}@keyframes fa-spin{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}to{-webkit-transform:rotate(1turn);transform:rotate(1turn)}}.fa-rotate-90.sc-icon-asset{-ms-filter:\"progid:DXImageTransform.Microsoft.BasicImage(rotation=1)\";-webkit-transform:rotate(90deg);transform:rotate(90deg)}.fa-rotate-180.sc-icon-asset{-ms-filter:\"progid:DXImageTransform.Microsoft.BasicImage(rotation=2)\";-webkit-transform:rotate(180deg);transform:rotate(180deg)}.fa-rotate-270.sc-icon-asset{-ms-filter:\"progid:DXImageTransform.Microsoft.BasicImage(rotation=3)\";-webkit-transform:rotate(270deg);transform:rotate(270deg)}.fa-flip-horizontal.sc-icon-asset{-ms-filter:\"progid:DXImageTransform.Microsoft.BasicImage(rotation=0, mirror=1)\";-webkit-transform:scaleX(-1);transform:scaleX(-1)}.fa-flip-vertical.sc-icon-asset{-webkit-transform:scaleY(-1);transform:scaleY(-1)}.fa-flip-both.sc-icon-asset,.fa-flip-horizontal.fa-flip-vertical.sc-icon-asset,.fa-flip-vertical.sc-icon-asset{-ms-filter:\"progid:DXImageTransform.Microsoft.BasicImage(rotation=2, mirror=1)\"}.fa-flip-both.sc-icon-asset,.fa-flip-horizontal.fa-flip-vertical.sc-icon-asset{-webkit-transform:scale(-1);transform:scale(-1)}.sc-icon-asset:root .fa-flip-both.sc-icon-asset,.sc-icon-asset:root .fa-flip-horizontal.sc-icon-asset,.sc-icon-asset:root .fa-flip-vertical.sc-icon-asset,.sc-icon-asset:root .fa-rotate-90.sc-icon-asset,.sc-icon-asset:root .fa-rotate-180.sc-icon-asset,.sc-icon-asset:root .fa-rotate-270.sc-icon-asset{-webkit-filter:none;filter:none}.fa-stack.sc-icon-asset{display:inline-block;height:2em;position:relative;width:2.5em}.fa-stack-1x.sc-icon-asset,.fa-stack-2x.sc-icon-asset{bottom:0;left:0;margin:auto;position:absolute;right:0;top:0}.svg-inline--fa.fa-stack-1x.sc-icon-asset{height:1em;width:1.25em}.svg-inline--fa.fa-stack-2x.sc-icon-asset{height:2em;width:2.5em}.fa-inverse.sc-icon-asset{color:#fff}.sr-only.sc-icon-asset{border:0;clip:rect(0,0,0,0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px}.sr-only-focusable.sc-icon-asset:active,.sr-only-focusable.sc-icon-asset:focus{clip:auto;height:auto;margin:0;overflow:visible;position:static;width:auto}.svg-inline--fa.sc-icon-asset .fa-primary.sc-icon-asset{fill:var(--fa-primary-color,currentColor);opacity:1;opacity:var(--fa-primary-opacity,1)}.svg-inline--fa.sc-icon-asset .fa-secondary.sc-icon-asset{fill:var(--fa-secondary-color,currentColor)}.svg-inline--fa.sc-icon-asset .fa-secondary.sc-icon-asset,.svg-inline--fa.fa-swap-opacity.sc-icon-asset .fa-primary.sc-icon-asset{opacity:.4;opacity:var(--fa-secondary-opacity,.4)}.svg-inline--fa.fa-swap-opacity.sc-icon-asset .fa-secondary.sc-icon-asset{opacity:1;opacity:var(--fa-primary-opacity,1)}.svg-inline--fa.sc-icon-asset mask.sc-icon-asset .fa-primary.sc-icon-asset,.svg-inline--fa.sc-icon-asset mask.sc-icon-asset .fa-secondary.sc-icon-asset{fill:#000}.fad.fa-inverse.sc-icon-asset{color:#fff}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{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{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.primary-gray.sc-icon-asset{fill:var(--color-gray-10)}svg.inherit.sc-icon-asset{fill:inherit}svg.inherit.sc-icon-asset use[href$=\"#minus\"].sc-icon-asset,svg.inherit.sc-icon-asset use[href$=\"#plus\"].sc-icon-asset,svg.inherit.sc-icon-asset use[href$=\"#checkmark\"].sc-icon-asset{stroke:inherit}";
|
|
9
|
+
|
|
10
|
+
const IconAsset = class {
|
|
11
|
+
constructor(hostRef) {
|
|
12
|
+
index.registerInstance(this, hostRef);
|
|
13
|
+
this.regularSprite = index.getAssetPath('./media/regular.svg');
|
|
14
|
+
this.solidSprite = index.getAssetPath('./media/solid.svg');
|
|
15
|
+
this.brandSprite = index.getAssetPath('./media/brands.svg');
|
|
16
|
+
this.ptcSprite = index.getAssetPath('./media/designer.svg');
|
|
17
|
+
this.name = undefined;
|
|
18
|
+
this.size = 'xx-small';
|
|
19
|
+
this.type = 'regular';
|
|
20
|
+
this.spin = '';
|
|
21
|
+
this.pulse = '';
|
|
22
|
+
this.color = 'default';
|
|
23
|
+
this.isMobileSelect = undefined;
|
|
24
|
+
this.injectedStyle = undefined;
|
|
25
|
+
}
|
|
26
|
+
render() {
|
|
27
|
+
const classMap = this.getCssClassMap();
|
|
28
|
+
if (this.type == 'brands') {
|
|
29
|
+
return (index.h(index.Host, null, this.injectedStyle && index.h("style", null, this.injectedStyle), index.h("svg", { class: classMap }, index.h("use", { href: `${this.brandSprite}#${this.name}` }))));
|
|
30
|
+
}
|
|
31
|
+
else if (this.type == 'solid') {
|
|
32
|
+
return (index.h(index.Host, null, this.injectedStyle && index.h("style", null, this.injectedStyle), index.h("svg", { class: classMap }, index.h("use", { href: `${this.solidSprite}#${this.name}` }))));
|
|
33
|
+
}
|
|
34
|
+
else if (this.type == 'ptc') {
|
|
35
|
+
return (index.h(index.Host, null, this.injectedStyle && index.h("style", null, this.injectedStyle), index.h("svg", { class: classMap }, index.h("use", { href: `${this.ptcSprite}#${this.name}` }))));
|
|
36
|
+
}
|
|
37
|
+
else {
|
|
38
|
+
return (index.h(index.Host, null, this.injectedStyle && index.h("style", null, this.injectedStyle), index.h("svg", { class: classMap }, index.h("use", { href: `${this.regularSprite}#${this.name}` }))));
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
getCssClassMap() {
|
|
42
|
+
return {
|
|
43
|
+
[this.size]: true,
|
|
44
|
+
[this.spin]: true,
|
|
45
|
+
[this.pulse]: true,
|
|
46
|
+
[this.color]: true,
|
|
47
|
+
['ismobileselect']: this.isMobileSelect ? true : false
|
|
48
|
+
};
|
|
49
|
+
}
|
|
50
|
+
static get assetsDirs() { return ["media"]; }
|
|
51
|
+
};
|
|
52
|
+
IconAsset.style = iconAssetCss;
|
|
53
|
+
|
|
54
|
+
const listItemCss = "h1,h2,h3,h4,h5,h6,p,ul,li,ptc-subnav,ptc-tab-list,ptc-link,ptc-square-card{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{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-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,:host(.list-footer) li a:active{text-decoration:none;border-bottom:1px solid var(--color-green-06);color:var(--color-white-grey);transition:border var(--ptc-ease-inout) var(--ptc-transition-medium)}:host(.list-footer) li a:focus{outline:3px solid var(--color-blue-07);outline-offset:2px;border-radius:var(--ptc-border-radius-standard);text-decoration:none;border-color:transparent !important}:host(.white) li{color:var(--color-white)}:host(.white) li a.item-link{color:var(--color-white)}:host(.light-gray) li{color:var(--color-gray-01)}:host(.light-gray) li a.item-link{color:var(--color-gray-01)}:host(.primary-gray) li{color:var(--color-gray-10)}:host(.primary-gray) li a.item-link{color:var(--color-gray-10)}:host(.list-underline) li{color:var(--color-gray-10);list-style:none;text-decoration:underline 1px solid;text-underline-offset:2px;line-height:var(--ptc-line-height-p)}:host(.list-underline) li a{display:inline-block;padding:4px 0}:host(.list-underline) li a.item-link{color:var(--color-gray-10)}:host li .has-before-home-icon{display:block}@media only screen and (min-width: 480px){:host li .has-before-home-icon{display:none}}";
|
|
55
|
+
|
|
56
|
+
const ListItem = class {
|
|
57
|
+
constructor(hostRef) {
|
|
58
|
+
index.registerInstance(this, hostRef);
|
|
59
|
+
this.listType = 'list-primary';
|
|
60
|
+
this.linkHref = undefined;
|
|
61
|
+
this.flushBefore = false;
|
|
62
|
+
this.linkTarget = '_self';
|
|
63
|
+
this.hasBeforeHomeIcon = false;
|
|
64
|
+
this.color = undefined;
|
|
65
|
+
this.styles = undefined;
|
|
66
|
+
this.ariaLabel = '';
|
|
67
|
+
}
|
|
68
|
+
render() {
|
|
69
|
+
const classMap = this.getCssClassMap();
|
|
70
|
+
return (index.h(index.Host, { class: classMap }, this.styles && index.h("style", null, this.styles), index.h("li", null, this.linkHref ? (index.h("a", Object.assign({ class: "item-link", target: this.linkTarget }, (this.linkHref ? { href: this.linkHref } : {}), (this.ariaLabel !== '' ? { 'aria-label': this.ariaLabel } : {})), index.h("slot", null))) : (index.h("slot", null)))));
|
|
71
|
+
}
|
|
72
|
+
getCssClassMap() {
|
|
73
|
+
let bcEnable = false;
|
|
74
|
+
if (this.hostElement && this.hostElement.parentElement) {
|
|
75
|
+
try {
|
|
76
|
+
bcEnable = (this.hostElement.parentElement.classList.contains('center') && this.hostElement.parentElement.tagName === 'PTC-BREADCRUMB');
|
|
77
|
+
}
|
|
78
|
+
catch (err) {
|
|
79
|
+
console.log(err);
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
return {
|
|
83
|
+
[this.listType]: true,
|
|
84
|
+
['flush-before']: this.flushBefore ? true : false,
|
|
85
|
+
[this.color]: !!this.color ? true : false,
|
|
86
|
+
['breadcrumb-center']: bcEnable
|
|
87
|
+
};
|
|
88
|
+
}
|
|
89
|
+
get hostElement() { return index.getElement(this); }
|
|
90
|
+
};
|
|
91
|
+
ListItem.style = listItemCss;
|
|
92
|
+
|
|
93
|
+
const maxWidthContainerCss = ":host{display:block}:host(.left){margin:auto auto auto 0}:host(.right){margin:auto 0 auto auto}:host(.center){margin:0 auto}";
|
|
94
|
+
|
|
95
|
+
const MaxWidthContainer = class {
|
|
96
|
+
constructor(hostRef) {
|
|
97
|
+
index.registerInstance(this, hostRef);
|
|
98
|
+
this.maxWidthP = undefined;
|
|
99
|
+
this.maxWidth = undefined;
|
|
100
|
+
this.breakpoint = 768;
|
|
101
|
+
this.contentAlign = 'center';
|
|
102
|
+
this.styles = undefined;
|
|
103
|
+
}
|
|
104
|
+
componentDidLoad() {
|
|
105
|
+
this.handleResize();
|
|
106
|
+
window.addEventListener('resize', this.handleResize.bind(this));
|
|
107
|
+
}
|
|
108
|
+
disconnectedCallback() {
|
|
109
|
+
window.removeEventListener('resize', this.handleResize);
|
|
110
|
+
}
|
|
111
|
+
render() {
|
|
112
|
+
const classMap = this.getCssClassMap();
|
|
113
|
+
return (index.h(index.Host, { class: classMap }, this.styles && index.h("style", null, this.styles), index.h("slot", null)));
|
|
114
|
+
}
|
|
115
|
+
getCssClassMap() {
|
|
116
|
+
return {
|
|
117
|
+
[this.contentAlign]: true,
|
|
118
|
+
};
|
|
119
|
+
}
|
|
120
|
+
handleResize() {
|
|
121
|
+
// const selectedContainer = this.el.querySelector('.max-width-container');
|
|
122
|
+
if (this.el) {
|
|
123
|
+
if (window.innerWidth >= this.breakpoint) {
|
|
124
|
+
if (this.maxWidthP) {
|
|
125
|
+
this.el.style.maxWidth = `${this.maxWidthP}%`;
|
|
126
|
+
}
|
|
127
|
+
else {
|
|
128
|
+
this.el.style.maxWidth = `${this.maxWidth}px`;
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
else {
|
|
132
|
+
this.el.style.maxWidth = 'initial';
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
get el() { return index.getElement(this); }
|
|
137
|
+
};
|
|
138
|
+
MaxWidthContainer.style = maxWidthContainerCss;
|
|
139
|
+
|
|
140
|
+
const ptcBackgroundVideoCss = "h1,h2,h3,h4,h5,h6,p,ul,li,ptc-subnav,ptc-tab-list,ptc-link,ptc-square-card{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{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 video{position:absolute;top:0px;left:0px;right:0;width:100%;height:100%;overflow:hidden;pointer-events:none;z-index:-100;object-fit:cover}:host .video-overlay{z-index:1;display:block;position:absolute;width:100%;height:100%;top:0;left:0;opacity:0.8;background-image:linear-gradient(270deg, rgba(30, 38, 38, 0) 26%, #1e2626)}:host(.legacy){display:block;position:absolute;top:0px;left:0px;right:0;width:100%;height:100%;overflow:hidden;pointer-events:none;z-index:-100}:host(.legacy) video{object-fit:cover;position:absolute;top:0px;left:0px;right:0;width:100%;height:100%;overflow:hidden}:host .iframe-wrapper{position:absolute;top:0px;left:0px;right:0;width:100%;height:100%;overflow:hidden;pointer-events:none;z-index:-100}:host .iframe-wrapper .background-video-embed{position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);width:100%;height:100%}:host .iframe-wrapper .player .vp-video-wrapper .vp-telecine-cover video{object-fit:cover}:host .play-button{position:absolute;top:1.5rem;right:1.5rem;width:34px;height:34px;z-index:99}@media (min-width: 768px){:host .play-button{top:unset;bottom:3.75rem;right:2rem}}:host .play-button ptc-button{display:inline-block;padding:5px;position:relative;top:-5px;left:-5px;cursor:pointer}@media only screen and (min-width: 768px){:host .play-button ptc-button{top:auto;left:auto}}@media only screen and (min-width: 992px){:host .play-button ptc-button{padding:0}}";
|
|
141
|
+
|
|
142
|
+
const PtcBackgroundVideo = class {
|
|
143
|
+
constructor(hostRef) {
|
|
144
|
+
index.registerInstance(this, hostRef);
|
|
145
|
+
this.videoSrc = undefined;
|
|
146
|
+
this.posterSrc = undefined;
|
|
147
|
+
this.overlay = true;
|
|
148
|
+
this.playButtonTitle = undefined;
|
|
149
|
+
this.pauseButtonTitle = undefined;
|
|
150
|
+
this.paused = undefined;
|
|
151
|
+
this.type = 'default';
|
|
152
|
+
this.isIframe = false;
|
|
153
|
+
}
|
|
154
|
+
// componentDidLoad() {
|
|
155
|
+
// if(this.isIframe){
|
|
156
|
+
// const iframe:HTMLIFrameElement = this.el.shadowRoot.querySelector('iframe');
|
|
157
|
+
// const iframeDoc = iframe.contentDocument
|
|
158
|
+
// const iframeVideo = iframeDoc.querySelector('video');
|
|
159
|
+
// console.log("iframe ele: " + iframeDoc.querySelectorAll('video'));
|
|
160
|
+
// iframeVideo.style.objectFit = 'cover';
|
|
161
|
+
// }
|
|
162
|
+
// }
|
|
163
|
+
// @Method()
|
|
164
|
+
// async toggleVideo() {
|
|
165
|
+
// // show a prompt
|
|
166
|
+
// this.paused = !this.paused;
|
|
167
|
+
// let video = this.el.shadowRoot.querySelector('video') as HTMLVideoElement;
|
|
168
|
+
// if (video) {
|
|
169
|
+
// if (this.paused) {
|
|
170
|
+
// video.pause();
|
|
171
|
+
// } else {
|
|
172
|
+
// video.play().catch(z => console.error(z));
|
|
173
|
+
// }
|
|
174
|
+
// }
|
|
175
|
+
// console.log('Hello, I am a publish method from ptc-background-video!');
|
|
176
|
+
// }
|
|
177
|
+
componentWillLoad() {
|
|
178
|
+
this.paused = false;
|
|
179
|
+
}
|
|
180
|
+
render() {
|
|
181
|
+
const videoContent = this.isIframe ? (index.h("div", { class: "iframe-wrapper" }, index.h("iframe", { id: "jumbotron-iframe", src: this.videoSrc, frameborder: 0, allow: "autoplay", allowFullScreen: true, class: "background-video-embed" }))) : (index.h("video", { src: this.videoSrc, poster: this.posterSrc, autoplay: true, loop: true, muted: true, playsinline: true }));
|
|
182
|
+
return (index.h(index.Host, { class: this.type }, videoContent, !!this.videoSrc && this.playButtonTitle && (index.h("div", { class: "play-button" }, this.paused && (index.h("ptc-tooltip", { class: "play-btn", mode: "wrapper", description: this.playButtonTitle, position: "bottom-right", styles: ".wrapper-content.sc-ptc-tooltip .tooltip.sc-ptc-tooltip{min-width:unset!important;}" }, index.h("ptc-button", { type: "button", color: "icon-toggle", onClick: e => this.toggleVideoPlay(e), styles: "button.icon-toggle { padding :0px 8px; }", "aria-label": "Video Play button" }, index.h("icon-asset", { name: "play", size: "small", type: "ptc", color: "black" })))), !this.paused && !!this.pauseButtonTitle && (index.h("ptc-tooltip", { class: "pause-btn", mode: "wrapper", description: this.pauseButtonTitle, position: "bottom-right", styles: ".wrapper-content.sc-ptc-tooltip .tooltip.sc-ptc-tooltip{min-width:unset!important;}" }, index.h("ptc-button", { type: "button", color: "icon-toggle", onClick: e => this.toggleVideoPlay(e), "aria-label": "Video Pause button" }, index.h("icon-asset", { name: "pause", size: "small", type: "ptc", color: "black" })))))), this.overlay ? index.h("div", { class: "video-overlay" }) : '', this.type == 'default' ? index.h("slot", null) : ''));
|
|
183
|
+
}
|
|
184
|
+
toggleVideoPlay(e) {
|
|
185
|
+
e.preventDefault();
|
|
186
|
+
this.paused = !this.paused;
|
|
187
|
+
let video = this.el.shadowRoot.querySelector('video');
|
|
188
|
+
if (video) {
|
|
189
|
+
if (this.paused) {
|
|
190
|
+
video.pause();
|
|
191
|
+
}
|
|
192
|
+
else {
|
|
193
|
+
video.play().catch(z => console.error(z));
|
|
194
|
+
}
|
|
195
|
+
}
|
|
196
|
+
}
|
|
197
|
+
get el() { return index.getElement(this); }
|
|
198
|
+
};
|
|
199
|
+
PtcBackgroundVideo.style = ptcBackgroundVideoCss;
|
|
200
|
+
|
|
201
|
+
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{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{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-flex;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:hover{text-decoration:underline;text-decoration-color:var(--color-green-07);outline:none}.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}";
|
|
202
|
+
|
|
203
|
+
const PtcBreadcrumb = class {
|
|
204
|
+
constructor(hostRef) {
|
|
205
|
+
index.registerInstance(this, hostRef);
|
|
206
|
+
this.position = undefined;
|
|
207
|
+
this.removeTopMargin = false;
|
|
208
|
+
this.color = 'white';
|
|
209
|
+
this.styles = undefined;
|
|
210
|
+
}
|
|
211
|
+
componentWillLoad() {
|
|
212
|
+
this.listItems = this.hostElement.querySelectorAll('list-item');
|
|
213
|
+
}
|
|
214
|
+
componentDidLoad() {
|
|
215
|
+
if (this.listItems) {
|
|
216
|
+
this.hostElement.querySelectorAll('list-item').forEach((item) => {
|
|
217
|
+
item.remove();
|
|
218
|
+
});
|
|
219
|
+
}
|
|
220
|
+
}
|
|
221
|
+
render() {
|
|
222
|
+
const classMap = this.getCssClassMap();
|
|
223
|
+
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' }, index.h("a", { href: "/", "aria-label": "Home Link" }, index.h("icon-asset", { type: "ptc", size: "medium", name: "icon-home", color: this.color }))), Array.from(this.listItems).map((item, index$1, array) => {
|
|
224
|
+
const textContent = item.textContent.trim();
|
|
225
|
+
const href = item.getAttribute('link-href');
|
|
226
|
+
return (index.h("li", { key: index$1 }, index$1 < array.length - 1 ? (index.h("a", { href: href, target: '_self' }, textContent)) : (textContent), index.h("span", { class: "visually-hidden" }, "/")));
|
|
227
|
+
})))));
|
|
228
|
+
}
|
|
229
|
+
getCssClassMap() {
|
|
230
|
+
return {
|
|
231
|
+
[this.position]: !!this.position && this.position !== undefined ? true : false,
|
|
232
|
+
['remove-top-margin']: this.removeTopMargin ? true : false,
|
|
233
|
+
[this.color]: true
|
|
234
|
+
};
|
|
235
|
+
}
|
|
236
|
+
get hostElement() { return index.getElement(this); }
|
|
237
|
+
};
|
|
238
|
+
PtcBreadcrumb.style = ptcBreadcrumbCss;
|
|
239
|
+
|
|
240
|
+
const ptcButtonCss = "h1,h2,h3,h4,h5,h6,p,ul,li,ptc-subnav,ptc-tab-list,ptc-link,ptc-square-card{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{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{outline:3px solid var(--color-blue-07);outline-offset:2px}.nav:hover{background-color:var(--color-gray-12)}.ptc-primary,.ptc-quaternary,.ptc-secondary,.ptc-tertiary,.icon-toggle{padding:var(--ptc-font-size-xx-small) var(--ptc-font-size-medium);transition:background-color var(--ptc-ease-inout) var(--ptc-transition-medium);line-height:20px}.ptc-primary.disabled,.ptc-quaternary.disabled,.ptc-secondary.disabled,.ptc-tertiary.disabled,.icon-toggle.disabled{pointer-events:none;border-color:var(--color-gray-03);background:var(--color-gray-02)}.ptc-primary.disabled span,.ptc-quaternary.disabled span,.ptc-secondary.disabled span,.ptc-tertiary.disabled span,.icon-toggle.disabled span{color:var(--color-gray-03)}.ptc-primary.disabled ::slotted([slot=slot-after-text]),.ptc-quaternary.disabled ::slotted([slot=slot-after-text]),.ptc-secondary.disabled ::slotted([slot=slot-after-text]),.ptc-tertiary.disabled ::slotted([slot=slot-after-text]),.icon-toggle.disabled ::slotted([slot=slot-after-text]){fill:var(--color-gray-03) !important}.ptc-primary:focus,.ptc-quaternary:focus,.ptc-secondary:focus,.ptc-tertiary:focus,.icon-toggle:focus{outline:3px solid var(--color-blue-07);outline-offset:2px}.ptc-primary span,.ptc-quaternary span,.ptc-secondary span,.ptc-tertiary span,.icon-toggle span{font-family:var(--ptc-font-latin);font-weight:var(--ptc-font-weight-bold);font-size:var(--ptc-font-size-small);line-height:var(--ptc-line-height-densest);letter-spacing:normal}.ptc-primary.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{background:var(--color-gray-12);border:2px solid var(--color-green-07);border-radius:var(--ptc-border-radius-standard)}.ptc-primary:hover{background-color:var(--color-gray-10)}.ptc-primary:active{background-color:var(--color-black)}.ptc-primary span{color:var(--color-white)}.ptc-primary ::slotted([slot=slot-after-text]){fill:var(--color-white) !important}.ptc-secondary{background:var(--color-gray-12);border:2px solid var(--color-gray-08);border-radius:var(--ptc-border-radius-standard)}.ptc-secondary:hover{background-color:var(--color-gray-10)}.ptc-secondary:active{background-color:var(--color-black)}.ptc-secondary span{color:var(--color-white)}.ptc-secondary ::slotted([slot=slot-after-text]){fill:var(--color-white) !important}.ptc-tertiary{background:var(--color-white);border:2px solid var(--color-gray-10);border-radius:var(--ptc-border-radius-standard)}.ptc-tertiary:hover{background-color:var(--color-gray-02)}.ptc-tertiary:active{background-color:var(--color-gray-03)}.ptc-tertiary span{color:var(--color-gray-10)}.ptc-tertiary ::slotted([slot=slot-after-text]){fill:var(--color-gray-10) !important}.ptc-quaternary{background:var(--color-green-07);border:2px solid var(--color-green-07);border-radius:var(--ptc-border-radius-standard)}.ptc-quaternary:hover{background-color:var(--color-green-08)}.ptc-quaternary:active{background-color:var(--color-green-09)}.ptc-quaternary span{color:var(--color-white)}.ptc-quaternary ::slotted([slot=slot-after-text]){fill:var(--color-white) !important}.icon-toggle{background:var(--color-white);border:1px solid var(--color-gray-10);border-radius:var(--ptc-border-radius-standard);padding:0;height:2.125rem;width:2.125rem;box-shadow:var(--ptc-shadow-medium)}.icon-toggle:hover{background-color:var(--color-gray-02)}.icon-toggle:active{background-color:var(--color-gray-03)}.icon-toggle.active{background-color:var(--color-gray-04)}.icon-toggle.active:hover{background-color:var(--color-gray-05)}.icon-toggle.active:active{background-color:var(--color-gray-03)}.icon-toggle:focus{outline:2px solid var(--color-blue-07);outline-offset:1px}.icon-toggle span{color:var(--color-gray-10);padding:0}.icon-toggle ::slotted([slot=slot-after-text]){fill:var(--color-gray-10) !important}.icon-toggle ::slotted(icon-asset){display:block;margin:auto;height:18px;width:18px}.clear-search{border:none;padding:0px;line-height:var(----ptc-line-height-densest);background-color:transparent}.clear-search:hover{text-decoration:underline;text-decoration-color:var(--color-white)}.clear-search span{color:var(--color-white);font-weight:var(--ptc-font-weight-semibold);font-size:var(--ptc-font-size-x-small);-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}";
|
|
241
|
+
|
|
242
|
+
const PtcButton = class {
|
|
243
|
+
constructor(hostRef) {
|
|
244
|
+
index.registerInstance(this, hostRef);
|
|
245
|
+
this.clickEvent = index.createEvent(this, "clickEvent", 7);
|
|
246
|
+
this.disabled = false;
|
|
247
|
+
this.active = false;
|
|
248
|
+
this.type = 'button';
|
|
249
|
+
this.color = 'ptc-primary';
|
|
250
|
+
this.iconAnimation = '';
|
|
251
|
+
this.iconPosition = 'icon-right';
|
|
252
|
+
this.linkHref = undefined;
|
|
253
|
+
this.linkTitle = undefined;
|
|
254
|
+
this.target = '_self';
|
|
255
|
+
this.rel = undefined;
|
|
256
|
+
this.tabNav = 0;
|
|
257
|
+
this.styles = undefined;
|
|
258
|
+
this.textAlign = undefined;
|
|
259
|
+
this.size = undefined;
|
|
260
|
+
this.buttonTitle = undefined;
|
|
261
|
+
this.ariaLabel = '';
|
|
262
|
+
this.seoCompatibilityMode = false;
|
|
263
|
+
}
|
|
264
|
+
clickEventHandler() {
|
|
265
|
+
this.clickEvent.emit();
|
|
266
|
+
}
|
|
267
|
+
seoCompRender() {
|
|
268
|
+
const classMap = this.getCssClassMap();
|
|
269
|
+
const Tag = !!this.linkHref ? 'a' : 'button';
|
|
270
|
+
const [TagType, firstChild] = utils.getSeoTagType(this.el, Tag);
|
|
271
|
+
const html = firstChild && firstChild.innerHTML;
|
|
272
|
+
if (this.el == firstChild) {
|
|
273
|
+
this.el.innerHTML = '';
|
|
274
|
+
}
|
|
275
|
+
return (index.h(index.Host, null, this.styles && index.h("style", null, this.styles), 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 ? { target: this.target } : {}), (!!this.rel && !!this.linkHref ? { rel: this.rel } : {}), (!!this.linkHref ? { title: this.linkTitle ? this.linkTitle : this.linkHref } : {}), (!!this.tabNav ? { tabindex: -1 } : { tabindex: 0 }), { title: this.buttonTitle }, (this.ariaLabel !== '' ? { ariaLabel: this.ariaLabel } : {})), index.h("span", { innerHTML: html }, index.h("slot", { name: "slot-before-text" }), index.h("slot", { name: "slot-after-text" })))));
|
|
276
|
+
}
|
|
277
|
+
standardRender() {
|
|
278
|
+
const classMap = this.getCssClassMap();
|
|
279
|
+
const Tag = !!this.linkHref ? 'a' : 'button';
|
|
280
|
+
return (index.h(index.Host, null, this.styles && index.h("style", null, this.styles), index.h(Tag, Object.assign({ class: classMap, onClick: this.clickEventHandler.bind(this) }, (!!this.linkHref ? { href: this.linkHref } : {}), (!this.linkHref ? { type: this.type } : {}), (!!this.target && !!this.linkHref ? { target: this.target } : {}), (!!this.rel && !!this.linkHref ? { rel: this.rel } : {}), (!!this.linkHref ? { title: this.linkTitle ? this.linkTitle : this.linkHref } : {}), (!!this.tabNav ? { tabindex: -1 } : { tabindex: 0 }), { title: this.buttonTitle }, (this.ariaLabel !== '' ? { ariaLabel: this.ariaLabel } : {})), this.iconAnimation == 'reveal-down' ?
|
|
281
|
+
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" })))) :
|
|
282
|
+
index.h("span", null, index.h("slot", { name: "slot-before-text" }), index.h("slot", null), index.h("slot", { name: "slot-after-text" })))));
|
|
283
|
+
}
|
|
284
|
+
render() {
|
|
285
|
+
if (this.seoCompatibilityMode) {
|
|
286
|
+
return this.seoCompRender();
|
|
287
|
+
}
|
|
288
|
+
else {
|
|
289
|
+
return this.standardRender();
|
|
290
|
+
}
|
|
291
|
+
}
|
|
292
|
+
getCssClassMap() {
|
|
293
|
+
return {
|
|
294
|
+
[this.color]: true,
|
|
295
|
+
[this.iconAnimation]: true,
|
|
296
|
+
[this.iconPosition]: true,
|
|
297
|
+
['disabled']: this.disabled ? true : false,
|
|
298
|
+
['active']: this.active ? true : false,
|
|
299
|
+
[this.textAlign]: true,
|
|
300
|
+
[this.size]: true
|
|
301
|
+
};
|
|
302
|
+
}
|
|
303
|
+
get el() { return index.getElement(this); }
|
|
304
|
+
};
|
|
305
|
+
PtcButton.style = ptcButtonCss;
|
|
306
|
+
|
|
307
|
+
let ResponsiveBgVariables = {
|
|
308
|
+
envs: ['xs', 'sm', 'md', 'lg'],
|
|
309
|
+
selector: '.ptc-img',
|
|
310
|
+
interval: 250
|
|
311
|
+
};
|
|
312
|
+
let ResponsivePictureVariables = {
|
|
313
|
+
envs: ['xs', 'sm', 'md', 'lg'],
|
|
314
|
+
selector: '.ptc-picture',
|
|
315
|
+
interval: 250
|
|
316
|
+
};
|
|
317
|
+
|
|
318
|
+
const ptcImgCss = "h1,h2,h3,h4,h5,h6,p,ul,li,ptc-subnav,ptc-tab-list,ptc-link,ptc-square-card{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{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}}";
|
|
319
|
+
|
|
320
|
+
const PtcImg = class {
|
|
321
|
+
constructor(hostRef) {
|
|
322
|
+
index.registerInstance(this, hostRef);
|
|
323
|
+
this.sizeXs = '510x340';
|
|
324
|
+
this.sizeSm = '1240x496';
|
|
325
|
+
this.sizeMd = '1366x500';
|
|
326
|
+
this.sizeLg = '1920x1080';
|
|
327
|
+
this.imgUrl = undefined;
|
|
328
|
+
this.imageType = 'smart-bg';
|
|
329
|
+
this.borderRadius = '';
|
|
330
|
+
this.loadMode = 'lazy-bg';
|
|
331
|
+
this.styles = undefined;
|
|
332
|
+
}
|
|
333
|
+
/**
|
|
334
|
+
* Image Z Index
|
|
335
|
+
*/
|
|
336
|
+
// @Prop() imageZIndex: 'z-index-auto' | 'z-index-n-2' | 'z-index-n-1' | 'z-index-p-1' | 'z-index-p-2' = 'z-index-auto';
|
|
337
|
+
WindowResize() {
|
|
338
|
+
this.setResponsiveBg();
|
|
339
|
+
}
|
|
340
|
+
render() {
|
|
341
|
+
const classMap = this.getCssClassMap();
|
|
342
|
+
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)));
|
|
343
|
+
}
|
|
344
|
+
componentDidLoad() {
|
|
345
|
+
this.addIntersectionObserver();
|
|
346
|
+
this.setResponsiveBg();
|
|
347
|
+
}
|
|
348
|
+
componentWillUpdate() {
|
|
349
|
+
this.addIntersectionObserver();
|
|
350
|
+
this.setResponsiveBg();
|
|
351
|
+
}
|
|
352
|
+
//responsive image
|
|
353
|
+
setResponsiveBg() {
|
|
354
|
+
// Define local variables
|
|
355
|
+
let backgrounds = (this.el || document).querySelectorAll(ResponsiveBgVariables.selector), el, elData, currentBreakpoint = this.getCurrentBreakPoints();
|
|
356
|
+
// Loop through all target elements
|
|
357
|
+
for (var i = 0, len = backgrounds.length; i < len; i++) {
|
|
358
|
+
// Set current variables
|
|
359
|
+
el = backgrounds[i];
|
|
360
|
+
elData = el.getAttribute('data-' + currentBreakpoint);
|
|
361
|
+
// If the data attribute exists, set the background
|
|
362
|
+
if (elData !== null) {
|
|
363
|
+
el.style.backgroundImage = "url('" + elData + "')";
|
|
364
|
+
}
|
|
365
|
+
else {
|
|
366
|
+
if (typeof console == 'object') {
|
|
367
|
+
console.warn('Data attribute: data-' + currentBreakpoint + ' not found on element:\n\n' + el.outerHTML + '\n\n\n');
|
|
368
|
+
}
|
|
369
|
+
}
|
|
370
|
+
}
|
|
371
|
+
}
|
|
372
|
+
//lazy loading
|
|
373
|
+
addIntersectionObserver() {
|
|
374
|
+
if (!this.imgUrl) {
|
|
375
|
+
console.log('no image!');
|
|
376
|
+
return;
|
|
377
|
+
}
|
|
378
|
+
if ('IntersectionObserver' in window) {
|
|
379
|
+
let lazyLoadBgs = (this.el || document).querySelectorAll('.lazy-bg');
|
|
380
|
+
let bgObserver = new IntersectionObserver(entries => {
|
|
381
|
+
entries.forEach(entry => {
|
|
382
|
+
if (entry.isIntersecting) {
|
|
383
|
+
const image = entry.target;
|
|
384
|
+
image.classList.remove('lazy-bg');
|
|
385
|
+
bgObserver.unobserve(image);
|
|
386
|
+
}
|
|
387
|
+
});
|
|
388
|
+
});
|
|
389
|
+
lazyLoadBgs.forEach(image => {
|
|
390
|
+
bgObserver.observe(image);
|
|
391
|
+
});
|
|
392
|
+
}
|
|
393
|
+
}
|
|
394
|
+
getCssClassMap() {
|
|
395
|
+
return {
|
|
396
|
+
[this.imageType]: true,
|
|
397
|
+
'ptc-img': true,
|
|
398
|
+
[this.borderRadius]: true,
|
|
399
|
+
[this.loadMode]: true,
|
|
400
|
+
// [this.imageZIndex] : true
|
|
401
|
+
};
|
|
402
|
+
}
|
|
403
|
+
getCurrentBreakPoints() {
|
|
404
|
+
// Define local variables
|
|
405
|
+
let doc = window.document, temp = doc.createElement('div'), env;
|
|
406
|
+
// Append test node
|
|
407
|
+
doc.body.appendChild(temp);
|
|
408
|
+
// Loop through breakpoints
|
|
409
|
+
for (let i = ResponsiveBgVariables.envs.length - 1; i >= 0; i--) {
|
|
410
|
+
env = ResponsiveBgVariables.envs[i];
|
|
411
|
+
// Add classes
|
|
412
|
+
temp.className = 'hidden-' + env;
|
|
413
|
+
// Found breakpoint
|
|
414
|
+
if (temp.offsetParent === null) {
|
|
415
|
+
// Remove our test node
|
|
416
|
+
doc.body.removeChild(temp);
|
|
417
|
+
// Return current breakpoint
|
|
418
|
+
return env;
|
|
419
|
+
}
|
|
420
|
+
}
|
|
421
|
+
// Breakpoint not found, try fallback
|
|
422
|
+
doc.body.removeChild(temp);
|
|
423
|
+
return this.getFallbackBreakpoint();
|
|
424
|
+
}
|
|
425
|
+
getFallbackBreakpoint() {
|
|
426
|
+
if (window.matchMedia('(min-width: 992px)').matches) {
|
|
427
|
+
return 'lg';
|
|
428
|
+
}
|
|
429
|
+
else if (window.matchMedia('(min-width: 768px)').matches) {
|
|
430
|
+
return 'md';
|
|
431
|
+
}
|
|
432
|
+
else if (window.matchMedia('(min-width: 576px)').matches) {
|
|
433
|
+
return 'sm';
|
|
434
|
+
}
|
|
435
|
+
else {
|
|
436
|
+
return 'xs';
|
|
437
|
+
}
|
|
438
|
+
}
|
|
439
|
+
get el() { return index.getElement(this); }
|
|
440
|
+
};
|
|
441
|
+
PtcImg.style = ptcImgCss;
|
|
442
|
+
|
|
443
|
+
const ptcJumbotronCss = "h1,h2,h3,h4,h5,h6,p,ul,li,ptc-subnav,ptc-tab-list,ptc-link,ptc-square-card{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{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}}.ptc-container{padding-right:24px;padding-left:24px;margin-right:auto;margin-left:auto}@media only screen and (min-width: 1200px){.ptc-container{padding-left:0;padding-right:0;max-width:1136px}}@media only screen and (min-width: 1440px){.ptc-container{padding-left:0;padding-right:0;max-width:1200px}}.ptc-container-lg{padding-right:15px;padding-left:15px;margin-right:auto;margin-left:auto}@media only screen and (min-width: 480px){.ptc-container-lg{padding-left:var(--ptc-layout-spacing-03);padding-right:var(--ptc-layout-spacing-03)}}@media only screen and (min-width: 768px){.ptc-container-lg{padding-left:var(--ptc-layout-spacing-04);padding-right:var(--ptc-layout-spacing-04)}}@media only screen and (min-width: 992px){.ptc-container-lg{padding-left:var(--ptc-element-spacing-08);padding-right:var(--ptc-element-spacing-08)}}@media only screen and (min-width: 1980px){.ptc-container-lg{padding-left:0;padding-right:0;max-width:1900px}}.ptc-container-fluid{width:100%}.u-para-sm{font-size:var(--ptc-font-size-small) !important}.u-para-md{font-size:var(--ptc-font-size-medium) !important}.u-para-lg{font-size:var(--ptc-font-size-large) !important}.u-para-xl{font-size:var(--ptc-font-size-x-large) !important}.u-para-xxl{font-size:var(--ptc-font-size-xx-large) !important}.u-para-xxxl{font-size:var(--ptc-font-size-xxx-large) !important}@media only screen and (min-width: 768px){.u-para-sm{font-size:calc(var(--ptc-font-size-small) + 0.05vw) !important}.u-para-md{font-size:calc(var(--ptc-font-size-medium) + 0.05vw) !important}.u-para-lg{font-size:calc(var(--ptc-font-size-large) + 0.05vw) !important}.u-para-xl{font-size:calc(var(--ptc-font-size-x-large) + 0.05vw) !important}.u-para-xxl{font-size:calc(var(--ptc-font-size-xx-large) + 0.05vw) !important}.u-para-xxxl{font-size:calc(var(--ptc-font-size-xxx-large) + 0.05vw) !important}}@media only screen and (min-width: 992px){.u-para-sm{font-size:calc(var(--ptc-font-size-small) + 0.1vw) !important}.u-para-md{font-size:calc(var(--ptc-font-size-medium) + 0.1vw) !important}.u-para-lg{font-size:calc(var(--ptc-font-size-large) + 0.1vw) !important}.u-para-xl{font-size:calc(var(--ptc-font-size-x-large) + 0.1vw) !important}.u-para-xxl{font-size:calc(var(--ptc-font-size-xx-large) + 0.1vw) !important}.u-para-xxxl{font-size:calc(var(--ptc-font-size-xxx-large) + 0.1vw) !important}}@media only screen and (min-width: 1200px){.u-para-sm{font-size:calc(var(--ptc-font-size-small) + 0.15vw) !important}.u-para-md{font-size:calc(var(--ptc-font-size-medium) + 0.15vw) !important}.u-para-lg{font-size:calc(var(--ptc-font-size-large) + 0.15vw) !important}.u-para-xl{font-size:calc(var(--ptc-font-size-x-large) + 0.15vw) !important}.u-para-xxl{font-size:calc(var(--ptc-font-size-xx-large) + 0.15vw) !important}.u-para-xxxl{font-size:calc(var(--ptc-font-size-xxx-large) + 0.15vw) !important}}@media only screen and (min-width: 1440px){.u-para-sm{font-size:calc(var(--ptc-font-size-small) + 0.2vw) !important}.u-para-md{font-size:calc(var(--ptc-font-size-medium) + 0.2vw) !important}.u-para-lg{font-size:calc(var(--ptc-font-size-large) + 0.2vw) !important}.u-para-xl{font-size:calc(var(--ptc-font-size-x-large) + 0.2vw) !important}.u-para-xxl{font-size:calc(var(--ptc-font-size-xx-large) + 0.2vw) !important}.u-para-xxxl{font-size:calc(var(--ptc-font-size-xxx-large) + 0.2vw) !important}}@media only screen and (min-width: 1600px){.u-para-sm{font-size:calc(var(--ptc-font-size-small) + 0.25vw) !important}.u-para-md{font-size:calc(var(--ptc-font-size-medium) + 0.25vw) !important}.u-para-lg{font-size:calc(var(--ptc-font-size-large) + 0.25vw) !important}.u-para-xl{font-size:calc(var(--ptc-font-size-x-large) + 0.25vw) !important}.u-para-xxl{font-size:calc(var(--ptc-font-size-xx-large) + 0.25vw) !important}.u-para-xxxl{font-size:calc(var(--ptc-font-size-xxx-large) + 0.25vw) !important}}@media only screen and (min-width: 1980px){.u-para-sm{font-size:calc(var(--ptc-font-size-small) + 0.3vw) !important}.u-para-md{font-size:calc(var(--ptc-font-size-medium) + 0.3vw) !important}.u-para-lg{font-size:calc(var(--ptc-font-size-large) + 0.3vw) !important}.u-para-xl{font-size:calc(var(--ptc-font-size-x-large) + 0.3vw) !important}.u-para-xxl{font-size:calc(var(--ptc-font-size-xx-large) + 0.3vw) !important}.u-para-xxxl{font-size:calc(var(--ptc-font-size-xxx-large) + 0.3vw) !important}}@media only screen and (min-width: 2600px){.u-para-sm{font-size:calc(var(--ptc-font-size-small) + 0.35vw) !important}.u-para-md{font-size:calc(var(--ptc-font-size-medium) + 0.35vw) !important}.u-para-lg{font-size:calc(var(--ptc-font-size-large) + 0.35vw) !important}.u-para-xl{font-size:calc(var(--ptc-font-size-x-large) + 0.35vw) !important}.u-para-xxl{font-size:calc(var(--ptc-font-size-xx-large) + 0.35vw) !important}.u-para-xxxl{font-size:calc(var(--ptc-font-size-xxx-large) + 0.35vw) !important}}.u-para-body{font-size:var(--ptc-font-size-medium) !important}.u-color-white{color:var(--color-white) !important}.u-uppercase{text-transform:uppercase !important}.u-margin-flush{margin:0 !important}.u-marginTop-flush{margin-top:0 !important}.u-marginLeft-flush{margin-left:0 !important}.u-marginRight-flush{margin-right:0 !important}.u-marginBottom-flush{margin-bottom:0 !important}.u-padding-flush{padding:0 !important}.u-paddingTop-flush{padding-top:0 !important}.u-paddingLeft-flush{padding-left:0 !important}.u-paddingRight-flush{padding-right:0 !important}.u-paddingBottom-flush{padding-bottom:0 !important}.u-margin-xs{margin:var(--ptc-element-spacing-01) !important}.u-marginTop-xs{margin-top:var(--ptc-element-spacing-01) !important}.u-marginLeft-xs{margin-left:var(--ptc-element-spacing-01) !important}.u-marginRight-xs{margin-right:var(--ptc-element-spacing-01) !important}.u-marginBottom-xs{margin-bottom:var(--ptc-element-spacing-01) !important}.u-margin-sm{margin:var(--ptc-element-spacing-02) !important}.u-marginTop-sm{margin-top:var(--ptc-element-spacing-02) !important}.u-marginLeft-sm{margin-left:var(--ptc-element-spacing-02) !important}.u-marginRight-sm{margin-right:var(--ptc-element-spacing-02) !important}.u-marginBottom-sm{margin-bottom:var(--ptc-element-spacing-02) !important}.u-margin-md{margin:var(--ptc-element-spacing-03) !important}.u-marginTop-md{margin-top:var(--ptc-element-spacing-03) !important}.u-marginLeft-md{margin-left:var(--ptc-element-spacing-03) !important}.u-marginRight-md{margin-right:var(--ptc-element-spacing-03) !important}.u-marginBottom-md{margin-bottom:var(--ptc-element-spacing-03) !important}.u-margin-lg{margin:var(--ptc-element-spacing-04) !important}.u-marginTop-lg{margin-top:var(--ptc-element-spacing-04) !important}.u-marginLeft-lg{margin-left:var(--ptc-element-spacing-04) !important}.u-marginRight-lg{margin-right:var(--ptc-element-spacing-04) !important}.u-marginBottom-lg{margin-bottom:var(--ptc-element-spacing-04) !important}.u-margin-xl{margin:var(--ptc-element-spacing-05) !important}.u-marginTop-xl{margin-top:var(--ptc-element-spacing-05) !important}.u-marginLeft-xl{margin-left:var(--ptc-element-spacing-05) !important}.u-marginRight-xl{margin-right:var(--ptc-element-spacing-05) !important}.u-marginBottom-xl{margin-bottom:var(--ptc-element-spacing-05) !important}.u-margin-xxl{margin:var(--ptc-element-spacing-06) !important}.u-marginTop-xxl{margin-top:var(--ptc-element-spacing-06) !important}.u-marginLeft-xxl{margin-left:var(--ptc-element-spacing-06) !important}.u-marginRight-xxl{margin-right:var(--ptc-element-spacing-06) !important}.u-marginBottom-xxl{margin-bottom:var(--ptc-element-spacing-06) !important}.u-margin-xxxl{margin:var(--ptc-element-spacing-07) !important}.u-marginTop-xxxl{margin-top:var(--ptc-element-spacing-07) !important}.u-marginLeft-xxxl{margin-left:var(--ptc-element-spacing-07) !important}.u-marginRight-xxxl{margin-right:var(--ptc-element-spacing-07) !important}.u-marginBottom-xxxl{margin-bottom:var(--ptc-element-spacing-07) !important}.u-margin-4xl{margin:var(--ptc-element-spacing-08) !important}.u-marginTop-4xl{margin-top:var(--ptc-element-spacing-08) !important}.u-marginLeft-4xl{margin-left:var(--ptc-element-spacing-08) !important}.u-marginRight-4xl{margin-right:var(--ptc-element-spacing-08) !important}.u-marginBottom-4xl{margin-bottom:var(--ptc-element-spacing-08) !important}.u-textAlign-ctr{text-align:center !important}.u-textAlign-right{text-align:right !important}.u-textAlign-left{text-align:left !important}.u-textWhite{color:var(--color-white) !important}.u-textGreen1{color:var(--color-green-07) !important}.u-textGreen2{color:var(--color-green-06) !important}.u-text-nowrap{white-space:nowrap}.u-text-bold{font-weight:var(--ptc-font-weight-bold)}.u-text-thin{font-weight:var(--ptc-font-weight-thin)}.u-textStyle-normal{font-style:normal !important}.u-no-scroll{overflow:hidden}.u-background-white{background-color:var(--color-white)}.u-background-reset{background-color:transparent !important}.u-white-overylay{background:rgba(242, 242, 242, 0.9)}.u-cursor-pointer{cursor:pointer}.u-clear{clear:both}.u-border-radius-standard{border-radius:var(--ptc-border-radius-standard)}.u-border-radius-large{border-radius:var(--ptc-border-radius-large)}.u-border-radius-pill{border-radius:var(--ptc-border-radius-pill)}.u-border-radius-circle{border-radius:var(--ptc-border-radius-circle)}.u-border-none{border:none}.u-shadow-x-small{box-shadow:var(--ptc-shadow-x-small)}.u-shadow-small{box-shadow:var(--ptc-shadow-small)}.u-shadow-medium{box-shadow:var(--ptc-shadow-medium)}.u-shadow-large{box-shadow:var(--ptc-shadow-large)}.u-shadow-x-large{box-shadow:var(--ptc-shadow-x-large)}@media only screen and (min-width: 768px){.u-hero-width{width:525px}.u-margin-center{margin:0 auto}.u-justify-self-end{justify-self:flex-end}}.u-hero-pushup{transform:translateY(-120px)}@media only screen and (min-width: 768px){.u-hero-pushup{transform:translateY(-144px)}}@media only screen and (min-width: 768px){.grid-order-1-md{order:1}.grid-order-2-md{order:2}.grid-order-3-md{order:3}}@media only screen and (min-width: 992px){.grid-order-1-lg{order:1}.grid-order-2-lg{order:2}.grid-order-3-lg{order:3}}.standard-list{list-style:none;margin-left:0;margin-bottom:20px;padding:0}.is-spaced-between{justify-content:space-between}.h-100{height:100%}.grid-large-col-gap-md{column-gap:0}@media only screen and (min-width: 992px){.grid-large-col-gap-md{column-gap:3rem}}.grid-large-col-gap-sm{column-gap:0}@media only screen and (min-width: 768px){.grid-large-col-gap-sm{column-gap:3rem}}.grid-x-large-col-gap-md{column-gap:0}@media only screen and (min-width: 992px){.grid-x-large-col-gap-md{column-gap:4rem}}.grid-x-large-col-gap-sm{column-gap:0}@media only screen and (min-width: 768px){.grid-x-large-col-gap-sm{column-gap:4rem}}.grid-medium-col-gap-md{column-gap:0}@media only screen and (min-width: 992px){.grid-medium-col-gap-md{column-gap:2rem}}.grid-medium-col-gap-sm{column-gap:0}@media only screen and (min-width: 768px){.grid-medium-col-gap-sm{column-gap:2rem}}.is-float-left{float:left}.is-float-right{float:right}.is-mobile{display:block}.is-desktop{display:none}@media only screen and (min-width: 992px){.is-mobile{display:none}.is-desktop{display:block}}.ptc-section{padding-top:3rem;padding-bottom:3rem}.ptc-section-standard{padding-top:3rem;padding-bottom:3rem}.ptc-section-half{padding-top:1.5rem;padding-bottom:1.5rem}.u-flex{display:flex}@media only screen and (min-width: 480px){.u-flex-xs{display:flex}}@media only screen and (min-width: 768px){.u-flex-sm{display:flex}}@media only screen and (min-width: 992px){.u-flex-md{display:flex}}@media only screen and (min-width: 1200px){.u-flex-lg{display:flex}}@media only screen and (min-width: 1440px){.u-flex-xl{display:flex}}@media only screen and (min-width: 1600px){.u-flex-xxl{display:flex}}@media only screen and (min-width: 1980px){.u-flex-2k{display:flex}}@media only screen and (min-width: 2600px){.u-flex-4k{display:flex}}.u-align-center{margin:auto;align-self:center}.u-align-left{margin-right:auto;align-self:center}.u-align-right{margin-left:auto;align-self:center}.u-align-x-center{margin-right:auto;margin-left:auto}.u-align-x-left{margin-right:auto}.u-align-x-right{margin-left:auto}.u-align-y-center{align-self:center}.u-align-y-top{align-self:flex-start}.u-align-y-bottom{align-self:flex-end}.is-flex-column{flex-direction:column}.flex-align-items{align-items:flex-end}.flex-align-items-center{align-items:center}.u-flex-nowrap{flex-wrap:nowrap}.u-flex-wrap{flex-wrap:wrap}.u-align-self-start{align-self:start}.u-align-self-center{align-self:center}.u-align-self-stretch{align-self:stretch}.u-justify-self-start{justify-self:start}.u-justify-self-center{justify-self:center}.u-justify-self-stretch{justify-self:stretch}.u-flex-justify-center{justify-content:center}.u-flex-justify-flexend{justify-content:flex-end}.u-section-heading-wrapper{max-width:768px;margin-left:auto;margin-right:auto}.embed-responsive{position:relative;display:block;height:0;padding:0;overflow:hidden}.embed-responsive-16by9{padding-bottom:56.25%}.embed-responsive .embed-responsive-item,.embed-responsive embed,.embed-responsive iframe,.embed-responsive object,.embed-responsive video{position:absolute;top:0;bottom:0;left:0;width:100%;height:100%;border:0}@media only screen and (min-width: 768px){.is-grid.grid-large-col-gap-xs-0{row-gap:0}}.max-content{max-width:90%;margin:auto}@media only screen and (min-width: 480px){.max-content{max-width:80%}}.u-justify-space-between{justify-content:space-between}.all-product-banner{padding:50px 0 44px 0px}@media only screen and (min-width: 992px){.all-product-banner{padding:50px 0 72px 0px;display:flex;min-height:300px;justify-content:center;align-items:center}}.all-product-gradient{background:linear-gradient(180deg, #f3f3f3 2.6%, rgba(225, 241, 226, 0.2) 40.63%, #f3f3f3 82.29%), linear-gradient(0deg, #f3f3f3, #f3f3f3)}.menu-right ptc-nav-submenu{position:relative}.media-thumb-feature{display:block}@media only screen and (min-width: 992px){.media-thumb-feature{display:flex;justify-content:space-between}}.media-thumb-feature .media-thumb{width:100%;margin-bottom:2rem}@media only screen and (min-width: 992px){.media-thumb-feature .media-thumb{width:340px;flex:0 0 340px}}.media-thumb-feature .media-thumb>ptc-picture:not(:last-of-type),.media-thumb-feature .media-thumb>img:not(:last-of-type){margin-bottom:1.5rem}.media-thumb-feature .media-feature{width:100%;margin-bottom:2rem}@media only screen and (min-width: 992px){.media-thumb-feature .media-feature{width:auto;flex:1 1 auto}}.partner-card-desc h5.description{font-family:var(--ptc-font-latin);color:var(--color-gray-10);font-size:var(--ptc-font-size-x-small);font-weight:var(--ptc-font-weight-medium);letter-spacing:var(--ptc-letter-spacing-normal);line-height:var(--ptc-line-height-medium);margin:0 0 10px 0}.partner-card-desc .tags{margin-bottom:0.75rem}.partner-card-desc .tags .tag:not(:first-child){border-left:2px solid var(--color-green-07);padding:0 8px}.partner-card-desc .tags .tag:first-child{padding:0 8px 0 0}.partner-card-desc .tags .tag{color:var(--color-gray-10);display:inline;font-size:var(--ptc-font-size-xx-small);font-weight:var(--ptc-font-weight-bold);letter-spacing:var(--ptc-letter-spacing-loose);margin:0 0 10px 0;padding:0 8px}.u-3-col-grid{width:100%;display:flex;flex-wrap:wrap;grid-row-gap:1rem;grid-column-gap:1rem}.u-3-col-grid .u-3-col{width:100%}@media only screen and (min-width: 768px){.u-3-col-grid .u-3-col{width:calc(50% - 10.66666666px)}}@media only screen and (min-width: 992px){.u-3-col-grid .u-3-col{width:calc(33.3333333333% - 10.66666666px)}}.u-3-col-grid.u-col-space-lg{grid-row-gap:2rem;grid-column-gap:2rem}.u-3-col-grid.u-col-space-lg .u-3-col{width:100%}@media only screen and (min-width: 768px){.u-3-col-grid.u-col-space-lg .u-3-col{width:calc(50% - 21.3333333px)}}@media only screen and (min-width: 992px){.u-3-col-grid.u-col-space-lg .u-3-col{width:calc(33.3333333333% - 21.3333333px)}}.u-display-none{display:none}ptc-preloader-section.min-height{min-height:150vh}@media only screen and (min-width: 1200px){.ms-mobile-select{display:none}}.ms-mobile-select.ms-show{position:fixed}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{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}.light-links a:not(.hero-footer-form-wrapper a,ptc-modal inline-form a),.light-links a.light-link,.background-grey-10 a:not(.hero-footer-form-wrapper a,ptc-modal inline-form a),.background-grey-10 a.light-link,.background-plm-grey a:not(.hero-footer-form-wrapper a,ptc-modal inline-form a),.background-plm-grey a.light-link{color:var(--color-blue-04)}.light-links a:not(.hero-footer-form-wrapper a,ptc-modal inline-form a):visited,.light-links a.light-link:visited,.background-grey-10 a:not(.hero-footer-form-wrapper a,ptc-modal inline-form a):visited,.background-grey-10 a.light-link:visited,.background-plm-grey a:not(.hero-footer-form-wrapper a,ptc-modal inline-form 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):active,.light-links a:not(.hero-footer-form-wrapper a,ptc-modal inline-form 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):active,.background-grey-10 a:not(.hero-footer-form-wrapper a,ptc-modal inline-form 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):active,.background-plm-grey a:not(.hero-footer-form-wrapper a,ptc-modal inline-form a):visited:active,.background-plm-grey a.light-link:active,.background-plm-grey a.light-link:visited:active{color:var(--color-blue-07)}.light-links a:not(.hero-footer-form-wrapper a,ptc-modal inline-form a):hover,.light-links a:not(.hero-footer-form-wrapper a,ptc-modal inline-form 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):hover,.background-grey-10 a:not(.hero-footer-form-wrapper a,ptc-modal inline-form 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):hover,.background-plm-grey a:not(.hero-footer-form-wrapper a,ptc-modal inline-form 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).disabled,.light-links a.light-link.disabled,.background-grey-10 a:not(.hero-footer-form-wrapper a,ptc-modal inline-form a).disabled,.background-grey-10 a.light-link.disabled,.background-plm-grey a:not(.hero-footer-form-wrapper a,ptc-modal inline-form a).disabled,.background-plm-grey a.light-link.disabled{color:var(--color-gray-04) !important;cursor:not-allowed}.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{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{color:var(--color-green-06)}.ptc-link-dark:hover,.ptc-link-dark:visited:hover{color:var(--color-green-06)}:host{display:block}@media only screen and (min-width: 992px){:host(:not(.png-jumbotron):not(.text-jumbotron):not(.gif-jumbotron)) .content-container{padding-top:20px;padding-bottom:16px}}.parent{display:grid;grid-template-columns:1fr;grid-template-rows:auto 1fr;grid-column-gap:0px;grid-row-gap:0px;position:relative;z-index:1}.div1{grid-area:1/1/2/2;min-height:300px}.div1.hidden{display:none}.mobile-media-image{display:flex;justify-content:center;align-items:center}@media only screen and (min-width: 992px){.mobile-media-image{display:none}}.gif-bg{background-color:#F3F3F3}.gif-bg img{width:100%;height:auto}@media only screen and (min-width: 768px){.gif-bg img{width:auto}}.video-ratio{position:relative;overflow:hidden;height:100%}.div2{grid-area:2/1/3/2;position:relative}.bg-overlay{position:absolute;width:100%;height:100%;top:0;left:0}.content-layout{display:flex;flex-direction:column}@media only screen and (min-width: 992px){.content-layout{flex-direction:row}}.gap-adjustment{gap:var(--ptc-element-spacing-04);margin-bottom:var(--ptc-element-spacing-07)}@media only screen and (min-width: 992px){.gap-adjustment{gap:var(--ptc-element-spacing-07)}}.text-adjustment{justify-content:center}.desktop-media-image{width:40%;display:none}@media only screen and (min-width: 992px){.desktop-media-image{display:block}}.desk-gif-adjustment{z-index:3;display:none;justify-content:center;align-items:center}@media only screen and (min-width: 992px){.desk-gif-adjustment{display:flex}}.desk-gif-adjustment img{width:100%}@media only screen and (min-width: 992px){.parent{grid-template-columns:1fr;grid-template-rows:1fr;grid-column-gap:0px;grid-row-gap:0px;min-height:500px;position:relative}.div1{grid-area:1/1/2/2;min-height:unset}.div2{grid-area:1/1/2/2;align-self:center;position:unset}}:host(.text-jumbotron) .parent{min-height:120px;padding:48px 0 24px 0}:host(.text-jumbotron) .parent .text-adjustment{margin-bottom:0;margin-top:20px}:host(.png-jumbotron) .desktop-media-image,:host(.png-jumbotron) .mobile-media-image{position:relative}:host(.png-jumbotron) .desktop-media-image .media-image-wrapper,:host(.png-jumbotron) .mobile-media-image .media-image-wrapper{height:100%;width:100%;display:flex;align-items:center;justify-content:center}:host(.png-jumbotron) ::slotted(ptc-svg-btn){position:absolute;left:50% !important;top:50% !important;transform:translate(-50%, -50%) !important}@media only screen and (min-width: 992px){:host(.png-jumbotron) max-width-container{box-sizing:border-box;padding-right:2rem}}.dl-img-wrap{position:relative;width:100%;height:100%}:host(.dark-video-jumbotron) .mobile-modal-play-btn ::slotted(ptc-svg-btn),:host(.light-video-jumbotron) .mobile-modal-play-btn ::slotted(ptc-svg-btn),:host(.light-jumbotron) .mobile-modal-play-btn ::slotted(ptc-svg-btn),:host(.dark-jumbotron) .mobile-modal-play-btn ::slotted(ptc-svg-btn){left:50% !important;top:50% !important;transform:translate(-50%, -50%) !important}";
|
|
444
|
+
|
|
445
|
+
const PtcJumbotron = class {
|
|
446
|
+
constructor(hostRef) {
|
|
447
|
+
index.registerInstance(this, hostRef);
|
|
448
|
+
this.jumbotronType = 'light';
|
|
449
|
+
this.hasPopupVideo = false;
|
|
450
|
+
this.mainTitle = 'Lorem Ipsum Dolor Sit Amet Consectetur';
|
|
451
|
+
this.subTitle = 'Lorem Ipsum Dolor Sit Amet Consectetur Adipiscing Lorem Ipsum Dolor Sit Amet Consectetur Adipisci Lorem Ipsum Dolor Sit Amet';
|
|
452
|
+
this.pngSrc = undefined;
|
|
453
|
+
this.gifSrc = undefined;
|
|
454
|
+
this.bgVideoSrc = undefined;
|
|
455
|
+
this.bgSrc = undefined;
|
|
456
|
+
this.isIframe = false;
|
|
457
|
+
this.playButtonTitle = undefined;
|
|
458
|
+
this.pauseButtonTitle = undefined;
|
|
459
|
+
this.contentBackground = undefined;
|
|
460
|
+
this.contentColor = undefined;
|
|
461
|
+
this.textAlign = 'left';
|
|
462
|
+
this.isMobile = undefined;
|
|
463
|
+
this.hasCtaSlot = undefined;
|
|
464
|
+
}
|
|
465
|
+
componentWillLoad() {
|
|
466
|
+
this.hasCtaSlot = !!this.el.querySelector('[slot="j-cta"]');
|
|
467
|
+
}
|
|
468
|
+
handleResize() {
|
|
469
|
+
this.getContentBackground();
|
|
470
|
+
//this.adjustJumbotronHeight();
|
|
471
|
+
}
|
|
472
|
+
connectedCallback() {
|
|
473
|
+
this.getContentBackground();
|
|
474
|
+
}
|
|
475
|
+
componentDidLoad() {
|
|
476
|
+
//this.adjustJumbotronHeight();
|
|
477
|
+
}
|
|
478
|
+
render() {
|
|
479
|
+
const classMap = this.getCssClassMap();
|
|
480
|
+
let mediaElement;
|
|
481
|
+
switch (this.jumbotronType) {
|
|
482
|
+
case 'png':
|
|
483
|
+
mediaElement = (index.h("div", { class: "mobile-media-image" }, index.h("div", { class: "media-image-wrapper" }, index.h("ptc-picture", { src: this.pngSrc }), (this.hasPopupVideo && this.isMobile) ? index.h("slot", { name: "video" }) : null)));
|
|
484
|
+
break;
|
|
485
|
+
case 'gif':
|
|
486
|
+
mediaElement = (index.h("div", { class: "mobile-media-image gif-bg" }, index.h("img", { src: this.gifSrc })));
|
|
487
|
+
break;
|
|
488
|
+
case 'dark-video':
|
|
489
|
+
case 'light-video':
|
|
490
|
+
mediaElement = (index.h("ptc-background-video", { class: "video-ratio", overlay: false, "video-src": this.bgVideoSrc, isIframe: this.isIframe, "play-button-title": this.playButtonTitle, "pause-button-title": this.pauseButtonTitle }, " ", (this.hasPopupVideo && this.isMobile) ? index.h("div", { class: 'mobile-modal-play-btn' }, " ", index.h("slot", { name: "video" })) : null));
|
|
491
|
+
break;
|
|
492
|
+
case 'dark':
|
|
493
|
+
case 'light':
|
|
494
|
+
mediaElement = (index.h("div", { class: 'dl-img-wrap' }, index.h("ptc-img", { "img-url": this.bgSrc, styles: ".smart-bg{background-position:right !important;}" }), (this.hasPopupVideo && this.isMobile) ? index.h("div", { class: 'mobile-modal-play-btn' }, " ", index.h("slot", { name: "video" })) : null));
|
|
495
|
+
break;
|
|
496
|
+
default:
|
|
497
|
+
mediaElement = index.h("ptc-img", { "img-url": this.bgSrc, styles: ".smart-bg{background-position:right !important;}" });
|
|
498
|
+
}
|
|
499
|
+
return (index.h(index.Host, { class: classMap }, index.h("div", { class: { 'parent': true, 'light-links': (this.jumbotronType === 'dark' || this.jumbotronType === 'dark-video') } }, index.h("div", { class: `div1 image-container ${this.jumbotronType === 'text' ? 'hidden' : ''}` }, mediaElement), index.h("div", { class: "div2 content-container" }, index.h("div", { class: "bg-overlay", style: { background: this.contentBackground } }), index.h("div", { class: "ptc-container content-layout" }, index.h("max-width-container", { "max-width-p": "60", breakpoint: 992, "content-align": this.jumbotronType === 'text' ? 'center' : this.textAlign, styles: ":host{z-index: 999}" }, index.h("slot", { name: "breadcrumb" }), index.h("ptc-spacer", { breakpoint: "small", size: "small" }), index.h("ptc-spacer", { breakpoint: "x-small", size: "medium" }), index.h("slot", { name: "main-title" }), (this.jumbotronType !== 'text' || (this.jumbotronType === 'text' && this.subTitle)) && (index.h("div", null, index.h("ptc-spacer", { breakpoint: "small", size: "small" }), index.h("ptc-spacer", { breakpoint: "x-small", size: "medium" }))), index.h("ptc-para", { "font-size": this.jumbotronType === 'text' && this.isMobile ? 'x-small' : 'small', "font-weight": 'w-4', "para-margin": `${this.jumbotronType === 'text' ? 'margin-flush' : 'margin-bottom-6'}`, "para-color": "white", "para-line-h": "line-height-p", "para-align": this.jumbotronType === 'text' ? 'center' : 'left' }, index.h("ptc-tooltip", { "text-lines": "8", description: this.subTitle, position: "right", styles: `.ellipsis-by-line-boxing{color: ${this.contentColor};}` })), this.hasCtaSlot &&
|
|
500
|
+
index.h("div", { class: `u-flex u-flex-wrap gap-adjustment${this.jumbotronType === 'text' ? ' text-adjustment' : ''}` }, index.h("slot", { name: "j-cta" }))), (this.hasPopupVideo && this.jumbotronType !== 'png') ? index.h("slot", { name: "video" }) : null, this.jumbotronType === 'png' ? (index.h("div", { class: "desktop-media-image" }, index.h("div", { class: "media-image-wrapper" }, index.h("ptc-picture", { "is-full-width": true, src: this.pngSrc }), this.hasPopupVideo ? index.h("slot", { name: "video" }) : null))) : null, this.jumbotronType === 'gif' ? (index.h("div", { class: "desktop-media-image desk-gif-adjustment" }, index.h("img", { src: this.gifSrc }))) : null)))));
|
|
501
|
+
}
|
|
502
|
+
getCssClassMap() {
|
|
503
|
+
return {
|
|
504
|
+
// [this.imageZIndex] : true
|
|
505
|
+
"text-jumbotron": this.jumbotronType === "text" ? true : false,
|
|
506
|
+
"png-jumbotron": this.jumbotronType === "png" ? true : false,
|
|
507
|
+
"gif-jumbotron": this.jumbotronType === "gif" ? true : false,
|
|
508
|
+
"dark-video-jumbotron light-links": this.jumbotronType === "dark-video" ? true : false,
|
|
509
|
+
"light-video-jumbotron": this.jumbotronType === "light-video" ? true : false,
|
|
510
|
+
"dark-jumbotron light-links": this.jumbotronType === "dark" ? true : false,
|
|
511
|
+
"light-jumbotron": this.jumbotronType === "light" ? true : false
|
|
512
|
+
};
|
|
513
|
+
}
|
|
514
|
+
getContentBackground() {
|
|
515
|
+
if (window.innerWidth < 992) {
|
|
516
|
+
switch (this.jumbotronType) {
|
|
517
|
+
case 'light':
|
|
518
|
+
case 'light-video':
|
|
519
|
+
this.contentBackground = 'var(--color-white)';
|
|
520
|
+
this.contentColor = 'var(--color-gray-10)';
|
|
521
|
+
break;
|
|
522
|
+
case 'dark':
|
|
523
|
+
case 'dark-video':
|
|
524
|
+
this.contentBackground = 'var(--color-gray-09)';
|
|
525
|
+
this.contentColor = 'var(--color-gray-01)';
|
|
526
|
+
break;
|
|
527
|
+
default:
|
|
528
|
+
this.contentBackground = 'transparent';
|
|
529
|
+
this.contentColor = 'var(--color-gray-10)';
|
|
530
|
+
}
|
|
531
|
+
this.isMobile = true;
|
|
532
|
+
}
|
|
533
|
+
else {
|
|
534
|
+
switch (this.jumbotronType) {
|
|
535
|
+
case 'light':
|
|
536
|
+
case 'light-video':
|
|
537
|
+
this.contentBackground = 'linear-gradient(90.19deg, rgba(255, 255, 255, 0.9) 62.55%, rgba(228, 231, 233, 0) 99.86%)';
|
|
538
|
+
this.contentColor = 'var(--color-gray-10)';
|
|
539
|
+
break;
|
|
540
|
+
case 'dark':
|
|
541
|
+
case 'dark-video':
|
|
542
|
+
this.contentBackground = 'linear-gradient(90deg, rgba(0, 0, 0, 0.63) 52.42%, rgba(40, 47, 53, 0) 100%)';
|
|
543
|
+
this.contentColor = 'var(--color-gray-01)';
|
|
544
|
+
break;
|
|
545
|
+
case 'gif':
|
|
546
|
+
this.contentBackground = '#F3F3F3';
|
|
547
|
+
this.contentColor = 'var(--color-gray-10)';
|
|
548
|
+
break;
|
|
549
|
+
default:
|
|
550
|
+
this.contentBackground = 'transparent';
|
|
551
|
+
this.contentColor = 'var(--color-gray-10)';
|
|
552
|
+
}
|
|
553
|
+
this.isMobile = false;
|
|
554
|
+
}
|
|
555
|
+
}
|
|
556
|
+
get el() { return index.getElement(this); }
|
|
557
|
+
};
|
|
558
|
+
PtcJumbotron.style = ptcJumbotronCss;
|
|
559
|
+
|
|
560
|
+
const ptcModalCss = "h1,h2,h3,h4,h5,h6,p,ul,li,ptc-subnav,ptc-tab-list,ptc-link,ptc-square-card{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{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}.wrapper{position:absolute;width:100vw;height:100%;top:0;left:0;z-index:500001;display:none}.wrapper.fixed{position:fixed}.wrapper .modal-popup{margin:7.5rem auto 1rem;background-color:var(--color-white);box-shadow:var(--ptc-shadow-large);max-width:22.5625rem;width:80%;display:flex;flex-direction:column;align-items:flex-end;align-content:flex-end;z-index:50020;transform:translateY(-100%)}@media only screen and (min-width: 992px){.wrapper .modal-popup{max-width:29.125rem}}.wrapper .modal-popup.md{max-width:44.125rem}.wrapper .modal-popup.lg{max-width:56.25rem}.wrapper .modal-popup.xl{max-width:64.0625rem}.wrapper .modal-popup.max{width:calc(100% - 4rem);max-width:75rem;height:80vh;margin:auto;overflow:hidden}.wrapper .modal-popup.max .close{margin:var(--ptc-element-spacing-03) var(--ptc-element-spacing-06)}.wrapper .modal-popup.max .modal-body iframe{height:100%}.wrapper .modal-popup .modal-body{width:100%}.wrapper .modal-popup .modal-body iframe{opacity:0;overflow:hidden;width:100%;border:0;transition:opacity var(--ptc-ease-inout) var(--ptc-transition-medium)}.wrapper .modal-popup .modal-body iframe.ready{opacity:1}.wrapper .modal-popup .modal-body.frame{overflow:hidden;overflow-y:hidden;overflow-x:hidden}.wrapper .modal-popup .modal-body.html{overflow:hidden}.wrapper .modal-popup.frame .modal-body{display:flex;flex:1;height:100%}.wrapper .modal-popup .close{margin-right:var(--ptc-element-spacing-03);margin-top:var(--ptc-element-spacing-03)}.wrapper .modal-popup.shadow-scroller{max-height:calc(100vh - 220px)}@media only screen and (min-width: 992px){.wrapper .modal-popup.shadow-scroller{max-height:756px}}.wrapper .modal-popup.shadow-scroller .modal-header{transition:box-shadow ease-in-out 250ms;position:relative;min-height:57px;border-bottom:1px solid var(--color-gray-02);width:100%}.wrapper .modal-popup.shadow-scroller .modal-header .close{position:absolute;top:var(--spacing-md);right:var(--spacing-md);margin:0}.wrapper .modal-popup.shadow-scroller .modal-body{min-height:200px;overflow-x:hidden}.wrapper .modal-popup.shadow-scroller .modal-footer{transition:box-shadow ease-in-out 250ms;width:100%;min-height:60px;border-top:1px solid var(--color-gray-02);padding-top:1rem}.wrapper .modal-popup.shadow-scroller.scroll-top .modal-header{box-shadow:0px 4px 12px rgba(0, 0, 0, 0.12)}.wrapper .modal-popup.shadow-scroller.scroll-bottom .modal-footer{box-shadow:0px -8px 12px rgba(0, 0, 0, 0.12)}.wrapper.show{display:flex;align-items:flex-start}.wrapper.show .modal-popup{transform:translateY(0)}.wrapper.show .modal-popup.rounded{border-radius:var(--ptc-border-radius-standard)}.overlay{width:100vw;height:100vh;position:fixed;top:0;left:0;z-index:50010;display:block;background-color:rgba(0, 0, 0, 0.6)}:host(.standard) .modal-popup{border-radius:var(--ptc-border-radius-standard)}:host(.large) .modal-popup{border-radius:var(--ptc-border-radius-large)}:host(.pill) .modal-popup{border-radius:var(--ptc-border-radius-pill)}:host(.circle) .modal-popup{border-radius:var(--ptc-border-radius-circle)}:host(.enclose-modal) .modal-popup{max-height:calc(100vh - 180px)}:host(.enclose-modal) .modal-popup:not(.frame){overflow-y:auto}:host(.bio-modal) .wrapper.show{align-items:flex-start}@media only screen and (min-width: 768px){:host(.bio-modal) .wrapper.show{align-items:center}}:host(.bio-modal) .modal-popup{padding:30px 15px 30px 0;max-width:1200px;margin:20px auto 0 auto;max-height:calc(100vh - 180px);width:90%;height:100%}:host(.bio-modal) .modal-popup .modal-body{height:100%}@media only screen and (min-width: 768px){:host(.bio-modal) .modal-popup .modal-body{height:auto}}@media (max-height: 450px){:host(.bio-modal) .modal-popup .modal-body{height:100%}}@media only screen and (min-width: 768px){:host(.bio-modal) .modal-popup{max-height:none;width:80%;margin-top:0px;height:auto}}@media only screen and (min-width: 1440px){:host(.bio-modal) .modal-popup{max-width:1400px}}@media (max-height: 450px){:host(.bio-modal) .modal-popup{max-height:calc(100vh - 180px);height:100%}}:host(.bio-modal) .close{position:absolute;margin:0;right:15px;top:30px}:host(.bio-modal) .close svg .cls-1,:host(.bio-modal) .close svg .cls-2{fill:none;stroke-width:2px}:host(.bio-modal) .close svg .cls-1{stroke:#1c2439;stroke-linecap:square}:host(.bio-modal) .close svg .cls-2{stroke:#74c34d}:host(.bio-modal) .close svg path{transition:all ease-in-out 250ms}:host(.bio-modal) .close svg .cls-1:nth-child(1){transform:translate(175.5px, 135.5px)}:host(.bio-modal) .close svg .cls-1:nth-child(2){transform:translate(175.5px, 174.985px)}:host(.bio-modal) .close svg .cls-1:nth-child(3){transform:translate(215.5px, 141.393px)}:host(.bio-modal) .close svg .cls-1:nth-child(4){transform:translate(175.5px, 135.5px)}:host(.bio-modal) .close:hover svg .cls-1:nth-child(1){transform:translate(175.5px, 162px)}:host(.bio-modal) .close:hover svg .cls-1:nth-child(2){transform:translate(149px, 174.985px)}:host(.bio-modal) .close:hover svg .cls-1:nth-child(3){transform:translate(215.5px, 174px)}:host(.bio-modal) .close:hover svg .cls-1:nth-child(4){transform:translate(152.5px, 135.5px)}:host(.no-container) .wrapper .modal-popup.xl{max-width:80rem !important;background:transparent;box-shadow:none}:host(.no-container) .wrapper .modal-popup .close{display:none}";
|
|
561
|
+
|
|
562
|
+
const PtcModal = class {
|
|
563
|
+
constructor(hostRef) {
|
|
564
|
+
index.registerInstance(this, hostRef);
|
|
565
|
+
this.closed = index.createEvent(this, "closed", 7);
|
|
566
|
+
this.opened = index.createEvent(this, "opened", 7);
|
|
567
|
+
this.iframeUrl = undefined;
|
|
568
|
+
this.size = 'sm';
|
|
569
|
+
this.show = false;
|
|
570
|
+
this.overlay = true;
|
|
571
|
+
this.fixed = false;
|
|
572
|
+
this.keepInViewport = false;
|
|
573
|
+
this.closeOnBlur = false;
|
|
574
|
+
this.rounded = false;
|
|
575
|
+
this.hideContainer = false;
|
|
576
|
+
this.showHeaderFooter = false;
|
|
577
|
+
this.overlayHeight = undefined;
|
|
578
|
+
this.borderRadius = 'standard';
|
|
579
|
+
this.isBioModal = false;
|
|
580
|
+
this.styles = undefined;
|
|
581
|
+
this.bodyOverflowSetting = undefined;
|
|
582
|
+
}
|
|
583
|
+
fireOnClosed(modal) {
|
|
584
|
+
this.closed.emit(modal);
|
|
585
|
+
}
|
|
586
|
+
fireOnOpened(modal) {
|
|
587
|
+
this.opened.emit(modal);
|
|
588
|
+
}
|
|
589
|
+
componentWillLoad() {
|
|
590
|
+
let body = document.querySelector('body');
|
|
591
|
+
this.bodyOverflowSetting = {
|
|
592
|
+
//overflow: body.style['overflow'],
|
|
593
|
+
overflowY: body.style['overflowY'],
|
|
594
|
+
overflowX: body.style['overflowX'],
|
|
595
|
+
};
|
|
596
|
+
}
|
|
597
|
+
componentWillRender() {
|
|
598
|
+
let body = document.querySelector('body');
|
|
599
|
+
if (body) {
|
|
600
|
+
if (this.show) {
|
|
601
|
+
//body.style['overflow'] = 'hidden';
|
|
602
|
+
if (this.fixed) {
|
|
603
|
+
body.style['overflowY'] = 'hidden';
|
|
604
|
+
body.style['overflowX'] = 'hidden';
|
|
605
|
+
}
|
|
606
|
+
else {
|
|
607
|
+
body.style['overflowY'] = 'scroll';
|
|
608
|
+
body.style['overflowX'] = 'hidden';
|
|
609
|
+
}
|
|
610
|
+
}
|
|
611
|
+
else {
|
|
612
|
+
//body.style['overflow'] = this.bodyOverflowSetting.overflow;
|
|
613
|
+
body.style['overflowY'] = this.bodyOverflowSetting.overflowY;
|
|
614
|
+
body.style['overflowX'] = this.bodyOverflowSetting.overflowX;
|
|
615
|
+
}
|
|
616
|
+
}
|
|
617
|
+
}
|
|
618
|
+
componentDidLoad() {
|
|
619
|
+
if (this.show) {
|
|
620
|
+
this.fireOnOpened(this);
|
|
621
|
+
}
|
|
622
|
+
if (this.showHeaderFooter) {
|
|
623
|
+
this.handleScroll();
|
|
624
|
+
}
|
|
625
|
+
}
|
|
626
|
+
componentDidUpdate() {
|
|
627
|
+
if (this.show) {
|
|
628
|
+
this.fireOnOpened(this);
|
|
629
|
+
}
|
|
630
|
+
else {
|
|
631
|
+
this.fireOnClosed(this);
|
|
632
|
+
}
|
|
633
|
+
}
|
|
634
|
+
resizeIframe(e) {
|
|
635
|
+
let iFrame = e.target;
|
|
636
|
+
setTimeout(() => {
|
|
637
|
+
try {
|
|
638
|
+
if (iFrame.contentDocument) {
|
|
639
|
+
iFrame.height = `${iFrame.contentDocument.body.scrollHeight}px`;
|
|
640
|
+
}
|
|
641
|
+
else {
|
|
642
|
+
iFrame.height = '616px'; //default
|
|
643
|
+
iFrame.removeAttribute('scrolling');
|
|
644
|
+
}
|
|
645
|
+
}
|
|
646
|
+
catch (error) {
|
|
647
|
+
console.log(error);
|
|
648
|
+
iFrame.height = '616px'; //default
|
|
649
|
+
iFrame.removeAttribute('scrolling');
|
|
650
|
+
}
|
|
651
|
+
iFrame.classList.add('ready');
|
|
652
|
+
}, 50);
|
|
653
|
+
}
|
|
654
|
+
handleScroll() {
|
|
655
|
+
let modal = this.el.shadowRoot.querySelector('.shadow-scroller');
|
|
656
|
+
if (modal) {
|
|
657
|
+
let body = modal.querySelector('.modal-body');
|
|
658
|
+
var height = body.clientHeight;
|
|
659
|
+
var scrollHeight = body.scrollHeight;
|
|
660
|
+
var scrollTop = body.scrollTop;
|
|
661
|
+
var offset = body.offsetHeight;
|
|
662
|
+
if (height < scrollHeight) { //has scrollbar
|
|
663
|
+
if (scrollTop > 0) { //can scroll up
|
|
664
|
+
modal.classList.add('scroll-top');
|
|
665
|
+
}
|
|
666
|
+
else {
|
|
667
|
+
modal.classList.remove('scroll-top');
|
|
668
|
+
}
|
|
669
|
+
if (offset + scrollTop < scrollHeight) { //can scroll down
|
|
670
|
+
modal.classList.add('scroll-bottom');
|
|
671
|
+
}
|
|
672
|
+
else {
|
|
673
|
+
modal.classList.remove('scroll-bottom');
|
|
674
|
+
}
|
|
675
|
+
}
|
|
676
|
+
}
|
|
677
|
+
}
|
|
678
|
+
close() {
|
|
679
|
+
this.show = false;
|
|
680
|
+
}
|
|
681
|
+
render() {
|
|
682
|
+
let content;
|
|
683
|
+
let overlay;
|
|
684
|
+
let type = this.iframeUrl ? 'frame' : 'html';
|
|
685
|
+
let closebtn = (index.h("div", { class: "close" }, index.h("a", { href: "#", onClick: (e) => { e.preventDefault(); this.close(); } }, this.isBioModal
|
|
686
|
+
?
|
|
687
|
+
index.h("svg", { xmlns: "http://www.w3.org/2000/svg", width: "42", height: "41.485", viewBox: "0 0 42 41.485" }, index.h("g", { "data-name": "Group 1042", transform: "rotate(180 108.25 87.993)" }, index.h("path", { d: "M0 0v39.486", class: "cls-1", "data-name": "Line 446" }), index.h("path", { d: "M0 0h40", class: "cls-1", "data-name": "Line 447" }), index.h("path", { d: "M0 33.592V0", class: "cls-1", "data-name": "Line 448" }), index.h("path", { d: "M23.994 0H0", class: "cls-1", "data-name": "Line 449" }), index.h("path", { d: "M0 0l17.596 17.596", class: "cls-2", "data-name": "Line 450", transform: "translate(187.229 147.226)" }), index.h("path", { d: "M0 7.198L7.199 0", class: "cls-2", "data-name": "Line 451", transform: "translate(197.55 147.312)" }), index.h("path", { d: "M0 7.2L7.2 0", class: "cls-2", "data-name": "Path 114", transform: "translate(187.313 157.549)" })))
|
|
688
|
+
:
|
|
689
|
+
index.h("svg", { xmlns: "http://www.w3.org/2000/svg", width: "14", height: "14", viewBox: "0 0 14 14", fill: "none" }, index.h("path", { d: "M1 1L13 13", stroke: "black" }), index.h("path", { d: "M13 1L1 13", stroke: "black" })))));
|
|
690
|
+
if (this.iframeUrl) {
|
|
691
|
+
content = (index.h("iframe", { src: this.iframeUrl, frameBorder: 0, allowFullScreen: false, height: "100%", width: "100%", scrolling: "no", onLoad: this.resizeIframe }));
|
|
692
|
+
}
|
|
693
|
+
else {
|
|
694
|
+
if (this.showHeaderFooter) {
|
|
695
|
+
content = (index.h("slot", { name: "body" }));
|
|
696
|
+
}
|
|
697
|
+
else {
|
|
698
|
+
content = (index.h("slot", null));
|
|
699
|
+
}
|
|
700
|
+
}
|
|
701
|
+
if (this.overlay) {
|
|
702
|
+
if (this.closeOnBlur) {
|
|
703
|
+
overlay = index.h("div", { class: "overlay", onClick: (_) => this.close() });
|
|
704
|
+
}
|
|
705
|
+
else {
|
|
706
|
+
overlay = index.h("div", { class: "overlay" });
|
|
707
|
+
}
|
|
708
|
+
}
|
|
709
|
+
return (index.h(index.Host, { class: this.getCssClassMap() }, this.styles && index.h("style", null, this.styles), index.h("div", { class: `wrapper ${this.show ? "show" : "hide"} ${this.fixed ? 'fixed' : ''} ` }, overlay, index.h("div", { class: `modal-popup ${this.size} ${type} ${this.rounded ? 'rounded' : ''} ${this.showHeaderFooter ? 'shadow-scroller' : ''} ` }, this.showHeaderFooter ? [
|
|
710
|
+
index.h("div", { class: "modal-header" }, index.h("slot", { name: "header" }), closebtn),
|
|
711
|
+
index.h("div", { class: "modal-body", onScroll: () => this.handleScroll() }, content),
|
|
712
|
+
index.h("div", { class: "modal-footer" }, index.h("slot", { name: "footer" }))
|
|
713
|
+
] : [
|
|
714
|
+
closebtn,
|
|
715
|
+
index.h("div", { class: "modal-body" }, content)
|
|
716
|
+
]))));
|
|
717
|
+
}
|
|
718
|
+
getCssClassMap() {
|
|
719
|
+
return {
|
|
720
|
+
["no-container"]: this.hideContainer,
|
|
721
|
+
["bio-modal"]: this.isBioModal,
|
|
722
|
+
["enclose-modal"]: !this.isBioModal && this.keepInViewport,
|
|
723
|
+
[this.borderRadius]: true
|
|
724
|
+
};
|
|
725
|
+
}
|
|
726
|
+
async showModal() {
|
|
727
|
+
this.show = true;
|
|
728
|
+
}
|
|
729
|
+
async hideModal() {
|
|
730
|
+
this.show = false;
|
|
731
|
+
}
|
|
732
|
+
async toggleModal() {
|
|
733
|
+
this.show = !this.show;
|
|
734
|
+
}
|
|
735
|
+
async reloadIframe() {
|
|
736
|
+
if (this.iframeUrl) {
|
|
737
|
+
let iframe = this.el.shadowRoot.querySelector('iframe');
|
|
738
|
+
if (iframe) {
|
|
739
|
+
iframe.src = iframe.src;
|
|
740
|
+
}
|
|
741
|
+
}
|
|
742
|
+
}
|
|
743
|
+
get el() { return index.getElement(this); }
|
|
744
|
+
};
|
|
745
|
+
PtcModal.style = ptcModalCss;
|
|
746
|
+
|
|
747
|
+
const showMapSVG = `<svg width="16" height="20" viewBox="0 0 16 20" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
748
|
+
<path fill-rule="evenodd" clip-rule="evenodd"
|
|
749
|
+
d="M8 20C8 20 16 12.4183 16 8C16 3.58172 12.4183 0 8 0C3.58172 0 0 3.58172 0 8C0 12.4183 8 20 8 20ZM7.99996 12C10.2091 12 12 10.2091 12 8.00001C12 5.79087 10.2091 4.00001 7.99996 4.00001C5.79082 4.00001 3.99996 5.79087 3.99996 8.00001C3.99996 10.2091 5.79082 12 7.99996 12Z"
|
|
750
|
+
fill="#40434A" />
|
|
751
|
+
</svg>
|
|
752
|
+
`;
|
|
753
|
+
|
|
754
|
+
const phone = `
|
|
755
|
+
<svg width="16" height="20" viewBox="0 0 16 20" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
756
|
+
<path d="M15.9902 16.6115C15.9672 16.448 15.6893 16.163 15.1565 15.7565C15.0145 15.6335 12.6694 13.5744 12.559 13.4924C12.4485 13.4104 12.3345 13.3585 12.2177 13.3373C12.0513 13.3071 11.822 13.3915 11.5297 13.5904C11.2369 13.7907 10.9611 14.0162 10.7055 14.2646C10.5444 14.4209 10.212 14.705 10.212 14.705L9.84109 14.9888C9.59663 15.1585 9.40545 15.2308 9.26754 15.2056C9.1924 15.1919 8.29273 14.5193 8.27776 14.5077C7.24698 13.648 6.37687 12.7367 5.70389 11.7471C5.03092 10.7576 4.49606 9.60254 4.06403 8.3109C4.05882 8.29161 4.02462 8.20179 3.962 8.04012C3.89938 7.87844 3.75234 7.1916 3.76559 7.11459C3.78959 6.97451 3.91815 6.81662 4.15017 6.64077L4.53583 6.37819C4.72177 6.26033 4.91515 6.14922 5.11598 6.04487C5.42974 5.88223 5.72956 5.6925 6.01221 5.47772C6.29477 5.26306 6.45049 5.06975 6.47938 4.8978C6.49974 4.77807 6.49158 4.64997 6.45453 4.51516C6.41724 4.37965 5.34032 1.4061 5.27662 1.2267C5.17083 0.861105 5.07258 0.585353 4.98186 0.39945C4.91025 0.252936 4.84323 0.162222 4.78081 0.127311C4.75216 0.108083 4.71438 0.0908609 4.66746 0.0756436C4.6208 0.0608755 4.57324 0.0492726 4.52511 0.0409101C4.30025 0.000202494 3.999 -0.0101256 3.62135 0.00992609C3.24371 0.0299777 2.94267 0.0682131 2.71823 0.124632C2.60239 0.151743 2.48103 0.201406 2.35414 0.273619C2.32869 0.28815 2.30301 0.303559 2.27708 0.319847L1.90066 0.607067C1.6583 0.821784 1.3991 1.10462 1.12306 1.45558C1.03738 1.56652 0.956681 1.67822 0.880955 1.79068C0.458524 2.41695 0.189921 3.06519 0.0751441 3.73541C0.0358113 3.9615 0.0116542 4.19011 0.00284494 4.41961C-0.00547723 4.64394 0.00445899 4.90045 0.032653 5.18914C0.0606603 5.47734 0.0862267 5.6921 0.109353 5.83342C0.132479 5.97474 0.177157 6.22857 0.243388 6.59491C0.309805 6.96112 0.348735 7.18468 0.360098 7.26696C0.508457 8.16162 0.725847 8.97588 1.01227 9.70974C1.48239 10.9277 2.18658 12.2265 3.12482 13.6059C3.63237 14.3522 4.14183 15.0243 4.65322 15.6224C5.08653 16.129 5.52131 16.5823 5.95756 16.9824C6.00291 17.0243 6.04877 17.066 6.09516 17.1074C6.63551 17.5885 7.25834 18.0358 7.96364 18.4492C8.0342 18.4883 8.22538 18.6026 8.53719 18.7921C8.84797 18.9813 9.06402 19.1112 9.18536 19.1819C9.30699 19.2533 9.49432 19.3508 9.74783 19.4775C10.0015 19.6029 10.2322 19.7 10.44 19.7686C10.6521 19.8388 10.8687 19.8939 11.0882 19.9334C11.8558 20.0728 12.6689 19.9946 13.5275 19.6989C13.9475 19.5497 14.2978 19.3934 14.5782 19.23L14.9674 18.9624C15.1049 18.8482 15.2114 18.7308 15.2868 18.6102C15.2879 18.6086 15.2889 18.607 15.2899 18.6055C15.4179 18.4077 15.5543 18.1312 15.7011 17.7755C15.8485 17.4169 15.9422 17.1218 15.9822 16.8902C16.0029 16.7695 16.0055 16.677 15.9902 16.6115Z" fill="#40434A"/>
|
|
757
|
+
</svg>
|
|
758
|
+
`;
|
|
759
|
+
|
|
760
|
+
const showAll = `<svg class="ol-full-icon" width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
761
|
+
<path
|
|
762
|
+
d="M7.51557e-07 5.8973C7.45775e-07 6.09464 0.0783039 6.2839 0.217689 6.42346C0.357075 6.56302 0.546129 6.64145 0.743274 6.64149H0.758399C0.955544 6.64145 1.1446 6.56302 1.28398 6.42346C1.42337 6.2839 1.50167 6.09464 1.50167 5.8973V2.56619L4.93013 5.99805C5.06957 6.13756 5.25865 6.21592 5.4558 6.21592C5.65295 6.21592 5.84203 6.13756 5.98148 5.99805L5.9921 5.98742C6.13146 5.84784 6.20975 5.65857 6.20975 5.46122C6.20975 5.26388 6.13146 5.07461 5.9921 4.93503L2.56365 1.50316H5.84067C5.93833 1.50323 6.03505 1.48404 6.1253 1.44669C6.21555 1.40933 6.29757 1.35454 6.36666 1.28545C6.43575 1.21636 6.49056 1.13432 6.52797 1.04401C6.56538 0.953708 6.58464 0.856911 6.58467 0.759152V0.744012C6.58462 0.546672 6.50627 0.35743 6.36685 0.217906C6.22743 0.0783817 6.03836 7.46516e-07 5.84121 7.52304e-07H0.54107C0.469983 -0.000117944 0.399571 0.0138101 0.333872 0.0409864C0.268173 0.0681627 0.208479 0.108053 0.158212 0.158369C0.107945 0.208686 0.068095 0.268439 0.0409457 0.334204C0.0137964 0.399968 -0.000117827 0.47045 7.51557e-07 0.541608V5.8973Z"
|
|
763
|
+
fill="#40434A" />
|
|
764
|
+
<path
|
|
765
|
+
d="M9.3584 0.744087V0.759227C9.35845 0.956505 9.43675 1.14569 9.57609 1.28521C9.71543 1.42472 9.90441 1.50314 10.1015 1.50324H13.3785L9.95096 4.9351C9.8116 5.07469 9.73331 5.26395 9.73331 5.4613C9.73331 5.65864 9.8116 5.84791 9.95096 5.9875L9.96159 5.99813C10.101 6.13763 10.2901 6.216 10.4873 6.216C10.6844 6.216 10.8735 6.13763 11.0129 5.99813L14.4409 2.56627V5.89738C14.4409 5.99511 14.4601 6.09188 14.4974 6.18217C14.5348 6.27246 14.5896 6.3545 14.6586 6.4236C14.7276 6.49271 14.8096 6.54752 14.8998 6.58492C14.99 6.62232 15.0867 6.64157 15.1843 6.64157H15.1993C15.2969 6.64157 15.3936 6.62232 15.4838 6.58492C15.574 6.54752 15.6559 6.49271 15.725 6.4236C15.794 6.3545 15.8488 6.27246 15.8861 6.18217C15.9235 6.09188 15.9427 5.99511 15.9427 5.89738V0.541683C15.9427 0.398279 15.8858 0.260748 15.7845 0.159346C15.6832 0.0579437 15.5458 0.000976563 15.4025 0.000976562H10.1015C9.90457 0.00107184 9.71572 0.0793713 9.5764 0.21869C9.43709 0.358009 9.35868 0.546965 9.3584 0.744087Z"
|
|
766
|
+
fill="#40434A" />
|
|
767
|
+
<path
|
|
768
|
+
d="M5.9921 10.0125L5.98148 10.0018C5.84203 9.86234 5.65295 9.78397 5.4558 9.78397C5.25865 9.78397 5.06957 9.86234 4.93013 10.0018L1.50167 13.4337V10.1026C1.50167 9.90525 1.42337 9.71599 1.28398 9.57643C1.1446 9.43687 0.955543 9.35845 0.758398 9.3584H0.743273C0.546128 9.35845 0.357074 9.43687 0.217689 9.57643C0.0783032 9.71599 -5.78131e-09 9.90525 0 10.1026L0 15.4583C-9.86272e-08 15.5294 0.0140016 15.5998 0.0412039 15.6654C0.0684062 15.7311 0.108275 15.7907 0.15853 15.8409C0.208785 15.8912 0.268439 15.931 0.334079 15.9581C0.39972 15.9852 0.470058 15.9991 0.54107 15.999H5.84121C6.03836 15.999 6.22743 15.9206 6.36685 15.7811C6.50627 15.6416 6.58462 15.4523 6.58467 15.255V15.2398C6.58462 15.0425 6.50627 14.8533 6.36685 14.7137C6.22743 14.5742 6.03836 14.4958 5.84121 14.4958H2.56418L5.9921 11.0649C6.13146 10.9253 6.20975 10.736 6.20975 10.5387C6.20975 10.3413 6.13146 10.1521 5.9921 10.0125Z"
|
|
769
|
+
fill="#40434A" />
|
|
770
|
+
<path
|
|
771
|
+
d="M14.4983 13.4337L11.0698 10.0027C10.9304 9.86324 10.7413 9.78487 10.5442 9.78487C10.347 9.78487 10.1579 9.86324 10.0185 10.0027L10.0079 10.0134C9.8685 10.153 9.79021 10.3422 9.79021 10.5396C9.79021 10.7369 9.8685 10.9262 10.0079 11.0658L13.4363 14.4967H10.1593C9.96216 14.4967 9.77311 14.5751 9.63372 14.7146C9.49432 14.8542 9.41602 15.0434 9.41602 15.2407V15.2559C9.41602 15.4532 9.49432 15.6424 9.63372 15.782C9.77311 15.9215 9.96216 15.9999 10.1593 15.9999H15.4589C15.6022 15.9999 15.7395 15.9429 15.8408 15.8415C15.9422 15.7401 15.9991 15.6026 15.9991 15.4592V10.1026C15.9991 9.90525 15.9208 9.71599 15.7814 9.57643C15.642 9.43687 15.4529 9.35845 15.2558 9.3584H15.2407C15.0435 9.35845 14.8545 9.43687 14.7151 9.57643C14.5757 9.71599 14.4974 9.90525 14.4974 10.1026L14.4983 13.4337Z"
|
|
772
|
+
fill="#40434A" />
|
|
773
|
+
</svg>
|
|
774
|
+
`;
|
|
775
|
+
|
|
776
|
+
const ptcOfficeLocationCardCss = "h1,h2,h3,h4,h5,h6,p,ul,li,ptc-subnav,ptc-tab-list,ptc-link,ptc-square-card{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{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 .ofc-card-wrapper{padding:2rem;border:1px solid var(--color-gray-02);cursor:pointer;color:var(--color-gray-10);height:100%;box-sizing:border-box;border-radius:var(--ptc-border-radius-standard)}:host .ofc-card-wrapper:hover{border-color:var(--color-gray-10)}:host .map-link,:host .contact-number{margin-top:20px;display:flex;align-items:center;color:var(--color-gray-10)}:host .map-link a,:host .contact-number a{color:#2bad56 !important}:host .ofc-icon{margin-right:1rem}:host .show-full-cta{position:absolute;top:12px;right:12px;font-size:var(--ptc-font-size-xx-small);font-weight:var(--ptc-font-weight-medium);line-height:var(--ptc-line-height-densest);display:flex}:host .show-full-cta span{margin-left:8px}:host .ofc-title{color:var(--color-gray-10);font-size:var(--ptc-font-size-large);font-weight:var(--ptc-font-weight-extrabold);line-height:var(--ptc-line-height-densest)}";
|
|
777
|
+
|
|
778
|
+
const PtcOfficeLocationCard = class {
|
|
779
|
+
constructor(hostRef) {
|
|
780
|
+
index.registerInstance(this, hostRef);
|
|
781
|
+
this.officeCardClicked = index.createEvent(this, "officeCardClicked", 7);
|
|
782
|
+
this.region = undefined;
|
|
783
|
+
this.country = undefined;
|
|
784
|
+
this.address = undefined;
|
|
785
|
+
this.isContactEmpty = false;
|
|
786
|
+
this.officeName = undefined;
|
|
787
|
+
this.showFullAddressModal = false;
|
|
788
|
+
}
|
|
789
|
+
handleClick() {
|
|
790
|
+
// Emit the addressClicked event with the address as the detail
|
|
791
|
+
this.officeCardClicked.emit(this.address);
|
|
792
|
+
}
|
|
793
|
+
showFullAddress(event) {
|
|
794
|
+
event.stopPropagation();
|
|
795
|
+
const modal = this.hostElement.shadowRoot.querySelector('#show-full-add');
|
|
796
|
+
modal.show = true;
|
|
797
|
+
}
|
|
798
|
+
render() {
|
|
799
|
+
return (index.h(index.Host, null, index.h("div", { class: 'ofc-card-wrapper', onClick: () => this.handleClick() }, this.showFullAddressModal &&
|
|
800
|
+
index.h("div", { class: 'show-full-cta', onClick: (e) => { this.showFullAddress(e); } }, "Show Full Address", index.h("span", { innerHTML: showAll })), index.h("div", { class: 'ofc-title' }, this.officeName), index.h("div", { class: 'map-link' }, index.h("span", { class: "ofc-icon", innerHTML: showMapSVG }), index.h("slot", { name: "map-link" })), index.h("div", { class: 'contact-number' }, !this.isContactEmpty &&
|
|
801
|
+
index.h("span", { class: "ofc-icon", innerHTML: phone }), index.h("slot", { name: "contact-number" })), index.h("slot", null)), this.showFullAddressModal &&
|
|
802
|
+
index.h("ptc-modal", { id: "show-full-add", show: false, size: "md", fixed: true, rounded: true, overlay: true, "keep-in-viewport": true, styles: ".modal-body{padding: 0 32px 32px 32px;box-sizing: border-box;}" }, index.h("div", { class: 'ofc-title' }, this.officeName), index.h("div", { class: 'map-link' }, index.h("span", { class: "ofc-icon", innerHTML: showMapSVG }), index.h("slot", { name: 'map-link-modal' })), index.h("div", { class: 'contact-number' }, !this.isContactEmpty &&
|
|
803
|
+
index.h("span", { class: "ofc-icon", innerHTML: phone }), index.h("slot", { name: 'contact-number-modal' })))));
|
|
804
|
+
}
|
|
805
|
+
get hostElement() { return index.getElement(this); }
|
|
806
|
+
};
|
|
807
|
+
PtcOfficeLocationCard.style = ptcOfficeLocationCardCss;
|
|
808
|
+
|
|
809
|
+
const filterSVG = `
|
|
810
|
+
<svg width="19" height="16" viewBox="0 0 19 16" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
811
|
+
<path d="M18.3883 7.52054H6.17773C6.24693 7.83585 6.24693 8.16265 6.17773 8.47797H18.3883C18.4509 8.47867 18.5131 8.4668 18.5712 8.44305C18.6292 8.41931 18.6821 8.38416 18.7266 8.33964C18.7712 8.29511 18.8065 8.2421 18.8307 8.18368C18.8548 8.12525 18.8672 8.06256 18.8672 7.99925C18.8672 7.93594 18.8548 7.87325 18.8307 7.81483C18.8065 7.7564 18.7712 7.70339 18.7266 7.65887C18.6821 7.61435 18.6292 7.5792 18.5712 7.55545C18.5131 7.53171 18.4509 7.51984 18.3883 7.52054V7.52054Z" fill="#40434A"/>
|
|
812
|
+
<path d="M1.88029 7.52054H0.478934C0.41629 7.51984 0.354131 7.53171 0.296055 7.55545C0.237979 7.5792 0.185141 7.61435 0.140598 7.65887C0.096056 7.70339 0.0606943 7.7564 0.0365604 7.81483C0.0124266 7.87325 0 7.93594 0 7.99925C0 8.06256 0.0124266 8.12525 0.0365604 8.18368C0.0606943 8.2421 0.096056 8.29511 0.140598 8.33964C0.185141 8.38416 0.237979 8.41931 0.296055 8.44305C0.354131 8.4668 0.41629 8.47867 0.478934 8.47797H1.88029C1.81109 8.16265 1.81109 7.83585 1.88029 7.52054V7.52054Z" fill="#40434A"/>
|
|
813
|
+
<path d="M18.3894 1.74612H17.207C17.2762 2.06144 17.2762 2.38824 17.207 2.70356H18.3894C18.4521 2.70426 18.5142 2.69239 18.5723 2.66865C18.6304 2.6449 18.6832 2.60975 18.7278 2.56523C18.7723 2.52071 18.8077 2.4677 18.8318 2.40927C18.8559 2.35084 18.8684 2.28816 18.8684 2.22484C18.8684 2.16153 18.8559 2.09884 18.8318 2.04041C18.8077 1.98199 18.7723 1.92898 18.7278 1.88446C18.6832 1.83993 18.6304 1.80478 18.5723 1.78104C18.5142 1.75729 18.4521 1.74543 18.3894 1.74612V1.74612Z" fill="#40434A"/>
|
|
814
|
+
<path d="M12.9086 1.74612H0.478933C0.416289 1.74543 0.35413 1.75729 0.296054 1.78104C0.237979 1.80478 0.18514 1.83993 0.140598 1.88446C0.0960558 1.92898 0.0606941 1.98199 0.0365603 2.04041C0.0124266 2.09884 0 2.16153 0 2.22484C0 2.28816 0.0124266 2.35084 0.0365603 2.40927C0.0606941 2.4677 0.0960558 2.52071 0.140598 2.56523C0.18514 2.60975 0.237979 2.6449 0.296054 2.66865C0.35413 2.69239 0.416289 2.70426 0.478933 2.70356H12.9086C12.8394 2.38824 12.8394 2.06144 12.9086 1.74612V1.74612Z" fill="#40434A"/>
|
|
815
|
+
<path d="M18.3886 13.2969H13.2285C13.2978 13.6122 13.2978 13.939 13.2285 14.2543H18.3886C18.4512 14.255 18.5134 14.2432 18.5715 14.2194C18.6295 14.1957 18.6824 14.1605 18.7269 14.116C18.7715 14.0715 18.8068 14.0185 18.831 13.96C18.8551 13.9016 18.8675 13.8389 18.8675 13.7756C18.8675 13.7123 18.8551 13.6496 18.831 13.5912C18.8068 13.5328 18.7715 13.4798 18.7269 13.4352C18.6824 13.3907 18.6295 13.3556 18.5715 13.3318C18.5134 13.3081 18.4512 13.2962 18.3886 13.2969V13.2969Z" fill="#40434A"/>
|
|
816
|
+
<path d="M8.93086 13.2969H0.478936C0.416291 13.2962 0.354132 13.3081 0.296056 13.3318C0.23798 13.3556 0.185142 13.3907 0.140599 13.4352C0.0960564 13.4798 0.0606945 13.5328 0.0365606 13.5912C0.0124266 13.6496 0 13.7123 0 13.7756C0 13.8389 0.0124266 13.9016 0.0365606 13.96C0.0606945 14.0185 0.0960564 14.0715 0.140599 14.116C0.185142 14.1605 0.23798 14.1957 0.296056 14.2194C0.354132 14.2432 0.416291 14.255 0.478936 14.2543H8.93086C8.86166 13.939 8.86166 13.6122 8.93086 13.2969V13.2969Z" fill="#40434A"/>
|
|
817
|
+
<path d="M17.2049 1.74544C16.9877 0.748413 16.107 0 15.0561 0C14.0052 0 13.1245 0.748413 12.9074 1.74544C12.8382 2.06076 12.8382 2.38756 12.9074 2.70288C13.1247 3.69991 14.0053 4.44838 15.0563 4.44838C16.1072 4.44838 16.9877 3.69991 17.2049 2.70317C17.2741 2.38785 17.2741 2.06105 17.2049 1.74573V1.74544ZM15.0561 3.49094C14.365 3.49094 13.8027 2.92266 13.8027 2.22419C13.8027 1.52572 14.365 0.957435 15.0561 0.957435C15.7472 0.957435 16.3095 1.52566 16.3095 2.22419C16.3095 2.92271 15.7472 3.49094 15.0561 3.49094Z" fill="#40434A"/>
|
|
818
|
+
<path d="M6.17784 7.5218C5.96049 6.52478 5.0798 5.77637 4.02893 5.77637C2.97806 5.77637 2.09737 6.52478 1.88002 7.5218C1.81083 7.83711 1.81083 8.16392 1.88002 8.47923C2.09737 9.47626 2.97801 10.2247 4.02893 10.2247C5.07986 10.2247 5.96049 9.47626 6.17784 8.47923C6.24704 8.16392 6.24704 7.83711 6.17784 7.5218V7.5218ZM4.02893 9.26724C3.33781 9.26724 2.77549 8.69901 2.77549 8.00049C2.77549 7.30196 3.33781 6.7338 4.02893 6.7338C4.72006 6.7338 5.28237 7.30208 5.28237 8.00049C5.28237 8.69889 4.72006 9.26724 4.02893 9.26724Z" fill="#40434A"/>
|
|
819
|
+
<path d="M13.2286 13.2973C13.0113 12.3002 12.1306 11.5518 11.0797 11.5518C10.0287 11.5518 9.1481 12.3002 8.9308 13.2973C8.86161 13.6126 8.86161 13.9394 8.9308 14.2547C9.1481 15.2517 10.0288 16.0002 11.0797 16.0002C12.1305 16.0002 13.0113 15.2517 13.2286 14.2547C13.2978 13.9394 13.2978 13.6126 13.2286 13.2973ZM11.0797 15.0427C10.3885 15.0427 9.82628 14.4745 9.82628 13.776C9.82628 13.0774 10.3885 12.5092 11.0797 12.5092C11.7708 12.5092 12.3333 13.0775 12.3333 13.776C12.3333 14.4744 11.7708 15.0427 11.0797 15.0427Z" fill="#40434A"/>
|
|
820
|
+
</svg>
|
|
821
|
+
`;
|
|
822
|
+
|
|
823
|
+
const hideMapSVG = `<svg width="16" height="17" viewBox="0 0 16 17" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
824
|
+
<path fill-rule="evenodd" clip-rule="evenodd"
|
|
825
|
+
d="M10.5868 2.58474C9.80356 2.2099 8.92629 2 8 2C4.68629 2 2 4.68629 2 8C2 8.72579 2.28784 9.5654 2.73742 10.4342L5.00454 8.16703C5.00151 8.11174 4.99997 8.05605 4.99997 8.00001C4.99997 6.34315 6.34312 5.00001 7.99997 5.00001C8.05602 5.00001 8.11171 5.00154 8.16699 5.00458L10.5868 2.58474ZM7.83299 10.9954C7.88826 10.9985 7.94394 11 7.99997 11C9.65683 11 11 9.65686 11 8.00001C11 7.94397 10.9984 7.8883 10.9954 7.83302L13.4153 5.41317C13.7901 6.19644 14 7.07371 14 8C14 11.3137 8 17 8 17C8 17 6.52564 15.6027 5.03862 13.7898L7.83299 10.9954Z"
|
|
826
|
+
fill="#40434A" />
|
|
827
|
+
<path d="M1 15L15 1" stroke="#40434A" />
|
|
828
|
+
</svg>
|
|
829
|
+
`;
|
|
830
|
+
|
|
831
|
+
const ptcOfficeLocationsCss = "h1,h2,h3,h4,h5,h6,p,ul,li,ptc-subnav,ptc-tab-list,ptc-link,ptc-square-card{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{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 .country-list{z-index:1;min-width:278px;position:absolute;top:100%;left:0;width:max-content;margin-top:8px;-webkit-box-orient:vertical;-webkit-box-direction:normal;border-radius:var(--ptc-border-radius-standard);box-shadow:0 8px 24px rgba(0, 0, 0, 0.25);background-color:var(--color-white);border-top:none;overflow:hidden;max-height:0;transition:max-height 0.25s ease-out}:host .country-list ul{list-style:none;margin:0;padding:24px 24px 8px 24px;border-bottom:1px solid var(--color-gray-02)}:host .country-list li{margin-bottom:1rem;cursor:pointer;transition:background-color 0.3s ease}:host .country-list li label{display:block;position:relative;padding:0 0 4px 32px;font-weight:var(--ptc-font-weight-medium);color:var(--color-gray-10);cursor:pointer}:host .country-list li label .checkmark{background-color:var(--color-white);border:1px solid var(--color-gray-12);border-radius:var(--ptc-border-radius-standard);-webkit-box-sizing:border-box;box-sizing:border-box;height:20px;left:0;position:absolute;top:0;width:20px}:host .country-list li label .checkmark::after{background-image:url('data:image/svg+xml,<svg width=\"14\" height=\"10\" viewBox=\"0 0 14 10\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"M1.5 4L5.5 8L12.5 1\" stroke=\"white\" stroke-width=\"2\"/></svg>');background-position:50%;background-repeat:no-repeat;background-size:75% 100%;content:\"\";display:none;height:20px;left:-1px;position:absolute;top:-1px;width:20px}:host .country-list li label input[type=checkbox]{cursor:pointer;height:0;opacity:0;position:absolute;width:0;margin:0}:host .country-list li label input:checked~.checkmark{background-color:#1f2024}:host .country-list li label input:checked~.checkmark::after{display:block}:host .country-list li label:hover .checkmark{background-color:var(--color-gray-02)}:host .country-list .country-list-footer{align-items:center;display:flex;flex-direction:row;justify-content:space-between;padding:1rem}:host .country-list.country-list-mobile{display:block;position:relative;overflow:auto;max-height:100%;width:100%;box-shadow:none;margin:0;padding:24px 32px;border-top:1px solid var(--color-gray-02)}:host .country-list.country-list-mobile .continent-name{color:var(--color-gray-10);font-size:var(--ptc-font-size-large);font-weight:var(--ptc-font-weight-bold);margin-bottom:1rem}:host .country-list.country-list-mobile ul{border:none;padding:16px 0 0 0}:host .region-list{display:flex;justify-content:center;height:100%}:host .region-list .region{position:relative;height:100%}:host .region-list .region .region-btn{margin:0 0.5rem;height:100%;display:flex;cursor:pointer;position:relative}@media only screen and (min-width: 1200px){:host .region-list .region .region-btn{margin:0 1rem}}:host .region-list .region .region-btn .continent-arrow,:host .region-list .region .region-btn .continent-name{background-color:var(--color-gray-02);transition:background-color ease-out 250ms;font-size:var(--ptc-font-size-x-small);font-weight:var(--ptc-font-weight-semibold);color:var(--color-gray-10)}:host .region-list .region .region-btn .continent-arrow:hover,:host .region-list .region .region-btn .continent-name:hover{background-color:var(--color-gray-03)}:host .region-list .region .region-btn .continent-name{display:flex;border-top-left-radius:270px;border-bottom-left-radius:270px;align-items:center;padding:12px 8px 12px 16px;border-right:1px solid var(--color-gray-03)}@media only screen and (min-width: 1200px){:host .region-list .region .region-btn .continent-name{padding:12px 12px 12px 20px}}:host .region-list .region .region-btn .continent-arrow{display:flex;align-items:center;border-top-right-radius:270px;border-bottom-right-radius:270px;padding:12px 16px 12px 12px}@media only screen and (min-width: 1200px){:host .region-list .region .region-btn .continent-arrow{padding:12px 18px 12px 12px}}:host .region-list .region .region-btn .continent-arrow svg{transition:transform ease-out 250ms}:host .region-list .region.active .country-list{max-height:800px;}:host .region-list .region.active .region-btn .continent-arrow svg{transform:rotate(-180deg)}:host .region-list .region.selected .continent-arrow,:host .region-list .region.selected .continent-name{background-color:var(--color-gray-12);transition:background-color ease-out 250ms;color:var(--color-white)}:host .region-list .region.selected .continent-arrow:hover,:host .region-list .region.selected .continent-name:hover{background-color:var(--color-gray-12);color:var(--color-white)}:host .region-list .region.selected .continent-arrow svg path{stroke:var(--color-white)}:host .office-location-list-wrapper{opacity:1;transition:opacity 0.25s ease-out;margin-top:2rem}:host .office-location-list-wrapper.updating{opacity:0}:host .office-location-list-wrapper .ol-list-bg{background-color:var(--color-white);display:grid;align-content:flex-start;padding:16px;column-gap:16px;row-gap:16px;grid-template-columns:1fr;overflow-y:auto}@media only screen and (min-width: 768px){:host .office-location-list-wrapper .ol-list-bg{grid-template-columns:1fr 1fr}}@media only screen and (min-width: 1200px){:host .office-location-list-wrapper .ol-list-bg{grid-template-columns:1fr 1fr 1fr}}:host .office-location-list-wrapper .map-embed{display:none}:host .office-location-list-wrapper.showing-map{display:flex;flex-direction:row;height:56rem;max-width:1736rem}:host .office-location-list-wrapper.showing-map .ol-list-bg{width:100%;grid-template-columns:1fr}@media only screen and (min-width: 992px){:host .office-location-list-wrapper.showing-map .ol-list-bg{width:40%}}@media only screen and (min-width: 1200px){:host .office-location-list-wrapper.showing-map .ol-list-bg{width:35%}}@media only screen and (min-width: 1440px){:host .office-location-list-wrapper.showing-map .ol-list-bg{width:65%;grid-template-columns:1fr 1fr}}@media only screen and (min-width: 992px){:host .office-location-list-wrapper.showing-map .map-embed{width:60%}}@media only screen and (min-width: 1200px){:host .office-location-list-wrapper.showing-map .map-embed{width:65%}}@media only screen and (min-width: 1440px){:host .office-location-list-wrapper.showing-map .map-embed{width:35%}}:host .office-location-list-wrapper.showing-map .map-embed{display:block}:host .filter-cta{background:var(--color-white);border:1px solid transparent;border-radius:var(--ptc-border-radius-pill);display:flex;flex-direction:row;margin:0 auto;padding:12px 20px;transition:border 0.25s ease-out;font-weight:var(--ptc-font-weight-semibold);font-size:var(--ptc-font-size-x-small);color:var(--color-gray-10)}:host .filter-cta svg{margin-right:10px}:host .filter-cta:hover{border:1px solid var(--color-gray-02)}:host .modal-footer{display:flex;justify-items:center;justify-content:space-between;padding:0 1rem}:host .map-btn{margin:0 0.5rem;height:100%;display:flex;align-items:center;cursor:pointer;position:relative;background-color:var(--color-white);padding:9px 20px;font-size:var(--ptc-font-size-x-small);font-weight:var(--ptc-font-weight-semibold);border-radius:var(--ptc-border-radius-pill);color:var(--color-gray-10);border:1px solid transparent;transition:border 0.25s ease-out;height:43px;box-sizing:border-box}@media only screen and (min-width: 1200px){:host .map-btn{margin:0 1rem}}:host .map-btn:hover{border:1px solid var(--color-gray-04)}:host .map-btn .map-icon{margin-right:10px;min-height:20px}";
|
|
832
|
+
|
|
833
|
+
const PtcOfficeLocations = class {
|
|
834
|
+
constructor(hostRef) {
|
|
835
|
+
index.registerInstance(this, hostRef);
|
|
836
|
+
this.locations = [];
|
|
837
|
+
this.regions = [];
|
|
838
|
+
this.openRegion = '';
|
|
839
|
+
this.isMobile = undefined;
|
|
840
|
+
this.address = undefined;
|
|
841
|
+
this.showMap = false;
|
|
842
|
+
}
|
|
843
|
+
handleResize() {
|
|
844
|
+
this.isMobile = window.innerWidth < 992;
|
|
845
|
+
if (this.isMobile) {
|
|
846
|
+
this.showMap = false;
|
|
847
|
+
}
|
|
848
|
+
}
|
|
849
|
+
handleAddressClicked(event) {
|
|
850
|
+
// CustomEvent's detail property contains the address
|
|
851
|
+
this.address = event.detail;
|
|
852
|
+
if (!this.isMobile) {
|
|
853
|
+
this.showMap = true;
|
|
854
|
+
}
|
|
855
|
+
}
|
|
856
|
+
componentWillLoad() {
|
|
857
|
+
this.isMobile = window.innerWidth < 992;
|
|
858
|
+
const officeCards = document.querySelectorAll('ptc-office-location-card');
|
|
859
|
+
officeCards.forEach((card, index) => {
|
|
860
|
+
const region = card.getAttribute('region');
|
|
861
|
+
const country = card.getAttribute('country');
|
|
862
|
+
if (region && country) {
|
|
863
|
+
this.locations.push({ id: index, region, country });
|
|
864
|
+
}
|
|
865
|
+
});
|
|
866
|
+
// Extract unique regions from locations array
|
|
867
|
+
const uniqueRegions = Array.from(new Set(this.locations.map(location => location.region)));
|
|
868
|
+
// Save unique regions to regions array
|
|
869
|
+
this.regions = uniqueRegions;
|
|
870
|
+
this.showFirstMap();
|
|
871
|
+
}
|
|
872
|
+
toggleCountryList(region) {
|
|
873
|
+
// Toggle open/close state for the clicked region
|
|
874
|
+
if (this.openRegion === region) {
|
|
875
|
+
// If the clicked region is already open, close it
|
|
876
|
+
this.openRegion = '';
|
|
877
|
+
}
|
|
878
|
+
else {
|
|
879
|
+
// Close any previously open region and open the clicked region
|
|
880
|
+
this.openRegion = region;
|
|
881
|
+
}
|
|
882
|
+
}
|
|
883
|
+
getCheckboxes(region) {
|
|
884
|
+
return this.hostEl.shadowRoot.querySelectorAll(`.country-list #region-list-${region.replace(/\s+/g, '')} input[type="checkbox"]`);
|
|
885
|
+
}
|
|
886
|
+
selectedCheckboxes() {
|
|
887
|
+
const selectedOptions = Array.from(this.hostEl.shadowRoot.querySelectorAll('.country-list input[type="checkbox"]:checked'))
|
|
888
|
+
.map((checkbox) => checkbox.value);
|
|
889
|
+
return selectedOptions;
|
|
890
|
+
}
|
|
891
|
+
updateOfficeList() {
|
|
892
|
+
const selectedOptions = this.selectedCheckboxes();
|
|
893
|
+
const officeCards = document.querySelectorAll('ptc-office-location-card');
|
|
894
|
+
officeCards.forEach((card) => {
|
|
895
|
+
const region = card.getAttribute('region');
|
|
896
|
+
const country = card.getAttribute('country');
|
|
897
|
+
// Hide show checboxes
|
|
898
|
+
if (selectedOptions.length > 0) {
|
|
899
|
+
if (selectedOptions.includes(region) || selectedOptions.includes(country)) {
|
|
900
|
+
card.style.display = "block";
|
|
901
|
+
}
|
|
902
|
+
else {
|
|
903
|
+
card.style.display = "none";
|
|
904
|
+
}
|
|
905
|
+
}
|
|
906
|
+
else {
|
|
907
|
+
card.style.display = "block";
|
|
908
|
+
}
|
|
909
|
+
});
|
|
910
|
+
this.showFirstMap();
|
|
911
|
+
}
|
|
912
|
+
applyFilter(region) {
|
|
913
|
+
this.updateOfficeList();
|
|
914
|
+
this.toggleCountryList(region);
|
|
915
|
+
}
|
|
916
|
+
clearFilter(region) {
|
|
917
|
+
const checkboxes = this.getCheckboxes(region);
|
|
918
|
+
const regionWrap = this.hostEl.shadowRoot.querySelector(`#region-wrap-${region.replace(/\s+/g, '')}`);
|
|
919
|
+
checkboxes.forEach((checkbox) => {
|
|
920
|
+
checkbox.checked = false;
|
|
921
|
+
});
|
|
922
|
+
regionWrap.classList.remove('selected');
|
|
923
|
+
this.updateOfficeList();
|
|
924
|
+
this.toggleCountryList(region);
|
|
925
|
+
}
|
|
926
|
+
updateCheckboxStatus(region, e) {
|
|
927
|
+
const regionWrap = this.hostEl.shadowRoot.querySelector(`#region-wrap-${region.replace(/\s+/g, '')}`);
|
|
928
|
+
const checkboxes = this.getCheckboxes(region);
|
|
929
|
+
const isAllRegionsCheckboxClicked = e.target.id === `all-regions-${region.replace(/\s+/g, '')}`;
|
|
930
|
+
let anyCheckboxSelected = false;
|
|
931
|
+
checkboxes.forEach((checkbox) => {
|
|
932
|
+
if (isAllRegionsCheckboxClicked) {
|
|
933
|
+
checkbox.checked = checkbox.classList.contains('all-region-label') ? e.target.checked : false;
|
|
934
|
+
}
|
|
935
|
+
else if (checkbox.classList.contains('all-region-label')) {
|
|
936
|
+
checkbox.checked = false;
|
|
937
|
+
}
|
|
938
|
+
if (checkbox.checked) {
|
|
939
|
+
anyCheckboxSelected = true;
|
|
940
|
+
}
|
|
941
|
+
});
|
|
942
|
+
regionWrap.classList.toggle('selected', anyCheckboxSelected);
|
|
943
|
+
}
|
|
944
|
+
updateSelectedClass(region) {
|
|
945
|
+
this.fadeInWrapper();
|
|
946
|
+
const regionWrap = this.hostEl.shadowRoot.querySelector(`#region-wrap-${region.replace(/\s+/g, '')}`);
|
|
947
|
+
const checkboxes = this.getCheckboxes(region);
|
|
948
|
+
let isAllRegionSelected;
|
|
949
|
+
checkboxes.forEach((checkbox) => {
|
|
950
|
+
if (!checkbox.classList.contains('all-region-label')) {
|
|
951
|
+
checkbox.checked = false;
|
|
952
|
+
}
|
|
953
|
+
if (checkbox.classList.contains('all-region-label')) {
|
|
954
|
+
checkbox.checked = !checkbox.checked;
|
|
955
|
+
isAllRegionSelected = checkbox.checked;
|
|
956
|
+
}
|
|
957
|
+
});
|
|
958
|
+
regionWrap.classList.toggle('selected', isAllRegionSelected);
|
|
959
|
+
this.updateOfficeList();
|
|
960
|
+
this.toggleCountryList('');
|
|
961
|
+
}
|
|
962
|
+
fadeInWrapper() {
|
|
963
|
+
const ele = this.hostEl.shadowRoot.querySelector('.office-location-list-wrapper');
|
|
964
|
+
ele.classList.add('updating');
|
|
965
|
+
// Listen for transitionend event to remove the class after the transition completes
|
|
966
|
+
ele.addEventListener('transitionend', () => {
|
|
967
|
+
ele.classList.remove('updating');
|
|
968
|
+
}, { once: true });
|
|
969
|
+
}
|
|
970
|
+
// mobile functions
|
|
971
|
+
openFilterModal() {
|
|
972
|
+
const modal = this.hostEl.shadowRoot.querySelector('ptc-modal');
|
|
973
|
+
modal.show = true;
|
|
974
|
+
}
|
|
975
|
+
clearFiltersMobile() {
|
|
976
|
+
const allChecboxes = this.hostEl.shadowRoot.querySelectorAll(`input[type=checkbox]`);
|
|
977
|
+
allChecboxes.forEach((checkbox) => {
|
|
978
|
+
checkbox.checked = false;
|
|
979
|
+
});
|
|
980
|
+
this.updateOfficeList();
|
|
981
|
+
const modal = this.hostEl.shadowRoot.querySelector('ptc-modal');
|
|
982
|
+
modal.show = false;
|
|
983
|
+
}
|
|
984
|
+
applyFilterMobile() {
|
|
985
|
+
this.updateOfficeList();
|
|
986
|
+
const modal = this.hostEl.shadowRoot.querySelector('ptc-modal');
|
|
987
|
+
modal.show = false;
|
|
988
|
+
}
|
|
989
|
+
renderCountrylist(region) {
|
|
990
|
+
const uniqueLocations = [...new Map(this.locations
|
|
991
|
+
.filter(location => location.region === region).map(item => [item['country'], item])).values()];
|
|
992
|
+
return (index.h("ul", { id: 'region-list-' + region.replace(/\s+/g, '') }, index.h("li", null, index.h("label", { htmlFor: 'all-regions-' + region.replace(/\s+/g, '') }, "All Regions", index.h("input", { type: "checkbox", class: 'all-region-label', id: 'all-regions-' + region.replace(/\s+/g, ''), value: region, onChange: (e) => this.updateCheckboxStatus(region.replace(/\s+/g, ''), e) }), index.h("span", { class: 'checkmark' }))), uniqueLocations
|
|
993
|
+
.map(location => (index.h("li", { key: location.id }, index.h("label", { htmlFor: location.country }, location.country, index.h("input", { type: "checkbox", id: location.country, value: location.country, onChange: (e) => this.updateCheckboxStatus(region.replace(/\s+/g, ''), e) }), index.h("span", { class: 'checkmark' })))))));
|
|
994
|
+
}
|
|
995
|
+
toggleMap() {
|
|
996
|
+
this.showMap = !this.showMap;
|
|
997
|
+
}
|
|
998
|
+
showFirstMap() {
|
|
999
|
+
const nodeList = document.querySelectorAll('ptc-office-location-card');
|
|
1000
|
+
const elementsArray = Array.from(nodeList);
|
|
1001
|
+
const filteredElements = elementsArray.filter(element => {
|
|
1002
|
+
return element.style.display === "" || element.style.display === 'block';
|
|
1003
|
+
});
|
|
1004
|
+
const firstMatchingElement = filteredElements.length > 0 ? filteredElements[0] : null;
|
|
1005
|
+
this.address = firstMatchingElement.getAttribute('address');
|
|
1006
|
+
}
|
|
1007
|
+
render() {
|
|
1008
|
+
const classMap = this.getCssClassMap();
|
|
1009
|
+
return (index.h(index.Host, null, !this.isMobile &&
|
|
1010
|
+
index.h("div", { class: "region-list" }, this.regions.map(region => (index.h("div", { class: `region ${this.openRegion === region ? 'active' : ''}`, key: region.id, id: 'region-wrap-' + region.replace(/\s+/g, '') }, index.h("span", { class: "region-btn" }, index.h("span", { class: "continent-name", onClick: () => { this.updateSelectedClass(region.replace(/\s+/g, '')); } }, region), index.h("span", { class: "continent-arrow", onClick: () => this.toggleCountryList(region) }, index.h("svg", { width: "10", height: "7", viewBox: "0 0 10 7", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, index.h("path", { d: "M1 1L5 5L9 1", stroke: "#40434A", "stroke-width": "2", "stroke-linecap": "round" })))), index.h("div", { class: `country-list` }, this.renderCountrylist(region), index.h("div", { class: "country-list-footer" }, index.h("ptc-button", { color: "ptc-tertiary", "link-title": "Clear", type: "button", size: "small", onClick: () => this.clearFilter(region), styles: 'button { border: none !important;} button:hover { background-color: transparent !important;} button:hover span{ text-decoration: underline !important}' }, "Clear"), index.h("ptc-button", { color: "ptc-secondary", "link-title": "Apply", type: "button", size: "small", onClick: () => this.applyFilter(region) }, "Apply")))))), index.h("span", { class: "map-btn", onClick: () => { this.toggleMap(); } }, index.h("span", { class: 'map-icon', innerHTML: this.showMap ? hideMapSVG : showMapSVG }), index.h("span", null, this.showMap ? 'Hide Map' : 'Show Map', " "))), this.isMobile &&
|
|
1011
|
+
index.h("button", { class: "filter-cta", onClick: () => { this.openFilterModal(); } }, " ", index.h("span", { class: "svg-close", innerHTML: filterSVG }), "Filters"), this.isMobile &&
|
|
1012
|
+
index.h("ptc-modal", { id: "modal-example", show: false, size: "lg", fixed: true, rounded: true, "show-header-footer": "true" }, index.h("div", { slot: "header" }, index.h("ptc-title", { type: 'h4', upperline: "no-upperline", "text-align": 'center', "title-margin": "margin-5" }, "Filters")), index.h("div", { slot: "footer", class: 'modal-footer' }, index.h("ptc-button", { color: "ptc-tertiary", "link-title": "Clear", type: "button", size: "small", onClick: () => { this.clearFiltersMobile(); }, styles: 'button { border: none !important;} button:hover { background-color: transparent !important;} button:hover span{ text-decoration: underline !important}' }, "Clear"), index.h("ptc-button", { color: "ptc-secondary", "link-title": "Apply", type: "button", size: "small", onClick: () => { this.applyFilterMobile(); } }, "Apply")), index.h("div", { slot: "body" }, index.h("div", { class: "filter-modal-body" }, this.regions.map(region => (index.h("div", { class: "country-list country-list-mobile", key: region.id, id: 'region-wrap-' + region.replace(/\s+/g, '') }, index.h("span", { class: "continent-name" }, region), this.renderCountrylist(region))))))), index.h("div", { class: classMap }, index.h("div", { class: `ol-list-bg ` }, index.h("slot", null)), !this.isMobile &&
|
|
1013
|
+
index.h("div", { class: "map-embed" }, index.h("iframe", { frameborder: "0", referrerPolicy: "no-referrer-when-downgrade", width: '100%', height: '100%', style: { border: '0' }, allowfullScreen: true, src: `https://www.google.com/maps/embed/v1/place?key=AIzaSyATvSgSVv2hH0yXiKMcBYsF26j67d3oPLg&q=${this.address}` })))));
|
|
1014
|
+
}
|
|
1015
|
+
getCssClassMap() {
|
|
1016
|
+
return {
|
|
1017
|
+
['office-location-list-wrapper']: true,
|
|
1018
|
+
['showing-map']: this.showMap
|
|
1019
|
+
};
|
|
1020
|
+
}
|
|
1021
|
+
get hostEl() { return index.getElement(this); }
|
|
1022
|
+
};
|
|
1023
|
+
PtcOfficeLocations.style = ptcOfficeLocationsCss;
|
|
1024
|
+
|
|
1025
|
+
const ptcParaCss = "h1,h2,h3,h4,h5,h6,p,ul,li,ptc-subnav,ptc-tab-list,ptc-link,ptc-square-card{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{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(.white){color:var(--color-white)}:host(.z-1){z-index:1}:host(.z-2){z-index:2}:host(.z-3){z-index:3}:host(.z-99){z-index:99}:host(.z-999){z-index:999}:host(.z-auto){z-index:auto}p.default{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;}p.main{text-shadow:0 3px 6px var(--color-white);line-height:var(--ptc-line-height-dense);color:var(--color-gray-10)}p.primary-grey{color:var(--color-gray-10)}p.gray-darker{color:var(--color-gray-11)}p.white{color:var(--color-white)}p.xxx-small{font-size:var(--ptc-font-size-xxx-small)}p.xx-small{font-size:var(--ptc-font-size-xx-small)}p.x-small{font-size:var(--ptc-font-size-x-small)}p.small{font-size:var(--ptc-font-size-small)}p.medium{font-size:var(--ptc-font-size-medium)}p.large{font-size:var(--ptc-font-size-large)}p.x-large{font-size:var(--ptc-font-size-x-large)}p.xx-large{font-size:var(--ptc-font-size-xx-large)}p.xxx-large{font-size:var(--ptc-font-size-xxx-large)}p.xxxx-large{font-size:var(--ptc-font-size-xxxx-large)}p.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-9{font-weight:var(--ptc-font-weight-black)}p.margin-flush{margin-top:0;margin-bottom:0}p.margin-top-1{margin-top:var(--ptc-element-spacing-01);margin-bottom:0}p.margin-top-2{margin-top:var(--ptc-element-spacing-02);margin-bottom:0}p.margin-top-3{margin-top:var(--ptc-element-spacing-03);margin-bottom:0}p.margin-top-4{margin-top:var(--ptc-element-spacing-04);margin-bottom:0}p.margin-top-5{margin-top:var(--ptc-element-spacing-05);margin-bottom:0}p.margin-top-6{margin-top:var(--ptc-element-spacing-06);margin-bottom:0}p.margin-bottom-1{margin-bottom:var(--ptc-element-spacing-01);margin-top:0}p.margin-bottom-2{margin-bottom:var(--ptc-element-spacing-02);margin-top:0}p.margin-bottom-3{margin-bottom:var(--ptc-element-spacing-03);margin-top:0}p.margin-bottom-4{margin-bottom:var(--ptc-element-spacing-04);margin-top:0}p.margin-bottom-5{margin-bottom:var(--ptc-element-spacing-05);margin-top:0}p.margin-bottom-6{margin-bottom:var(--ptc-element-spacing-06);margin-top:0}p.margin-1{margin-top:var(--ptc-element-spacing-01);margin-bottom:var(--ptc-element-spacing-01)}p.margin-2{margin-top:var(--ptc-element-spacing-02);margin-bottom:var(--ptc-element-spacing-02)}p.margin-3{margin-top:var(--ptc-element-spacing-03);margin-bottom:var(--ptc-element-spacing-03)}p.margin-4{margin-top:var(--ptc-element-spacing-04);margin-bottom:var(--ptc-element-spacing-04)}p.margin-5{margin-top:var(--ptc-element-spacing-05);margin-bottom:var(--ptc-element-spacing-05)}p.margin-6{margin-top:var(--ptc-element-spacing-06);margin-bottom:var(--ptc-element-spacing-06)}p.line-height-densest{line-height:var(--ptc-line-height-densest)}p.line-height-denser{line-height:var(--ptc-line-height-denser)}p.line-height-p{line-height:var(--ptc-line-height-p)}p.line-height-dense{line-height:var(--ptc-line-height-dense)}p.line-height-normal{line-height:var(--ptc-line-height-normal)}p.line-height-loose{line-height:var(--ptc-line-height-loose)}p.line-height-looser{line-height:var(--ptc-line-height-looser)}p.left{text-align:left}p.right{text-align:right}p.center{text-align:center}p.justify{text-align:justify}p.announcement{text-transform:uppercase;font-size:var(--ptc-font-size-small);color:var(--color-gray-07);line-height:var(--ptc-line-height-looser);letter-spacing:var(--ptc-letter-spacing-loose)}p.ellipsis-boxing{display:-webkit-box;-webkit-line-clamp:1;-webkit-box-orient:vertical;overflow:hidden;text-overflow:ellipsis;overflow-wrap:break-word}";
|
|
1026
|
+
|
|
1027
|
+
const PtcPara = class {
|
|
1028
|
+
constructor(hostRef) {
|
|
1029
|
+
index.registerInstance(this, hostRef);
|
|
1030
|
+
this.fontSize = 'x-small';
|
|
1031
|
+
this.fontWeight = 'w-4';
|
|
1032
|
+
this.paraStyle = 'default';
|
|
1033
|
+
this.paraColor = 'primary-grey';
|
|
1034
|
+
this.paraLineH = 'line-height-normal';
|
|
1035
|
+
this.paraMargin = undefined;
|
|
1036
|
+
this.paraAlign = undefined;
|
|
1037
|
+
this.ellipsisLineCutoff = undefined;
|
|
1038
|
+
this.paraZIndex = undefined;
|
|
1039
|
+
this.styles = undefined;
|
|
1040
|
+
this.seoCompatibilityMode = false;
|
|
1041
|
+
}
|
|
1042
|
+
render() {
|
|
1043
|
+
if (this.seoCompatibilityMode) {
|
|
1044
|
+
utils.seoSlotReset(this.el);
|
|
1045
|
+
}
|
|
1046
|
+
return this.standardRender();
|
|
1047
|
+
}
|
|
1048
|
+
standardRender() {
|
|
1049
|
+
const classMap = this.getCssClassMap();
|
|
1050
|
+
const colorClass = this.addWhiteClass();
|
|
1051
|
+
const cutOff = this.getLineCuttoff();
|
|
1052
|
+
return (index.h(index.Host, { class: `${colorClass} ${this.paraZIndex}` }, this.styles && index.h("style", null, this.styles), index.h("p", { class: classMap, part: "part-para", style: cutOff }, index.h("slot", null))));
|
|
1053
|
+
}
|
|
1054
|
+
getCssClassMap() {
|
|
1055
|
+
return {
|
|
1056
|
+
[this.fontSize]: true,
|
|
1057
|
+
[this.fontWeight]: true,
|
|
1058
|
+
[this.paraStyle]: true,
|
|
1059
|
+
[this.paraMargin]: !!this.paraMargin ? true : false,
|
|
1060
|
+
[this.paraColor]: true,
|
|
1061
|
+
[this.paraLineH]: true,
|
|
1062
|
+
[this.paraAlign]: !!this.paraAlign ? true : false,
|
|
1063
|
+
['ellipsis-boxing']: this.ellipsisLineCutoff && this.ellipsisLineCutoff > 0,
|
|
1064
|
+
};
|
|
1065
|
+
}
|
|
1066
|
+
//WEB-2392
|
|
1067
|
+
addWhiteClass() {
|
|
1068
|
+
if (this.paraColor == 'white') {
|
|
1069
|
+
return {
|
|
1070
|
+
[this.paraColor]: true,
|
|
1071
|
+
};
|
|
1072
|
+
}
|
|
1073
|
+
}
|
|
1074
|
+
getLineCuttoff() {
|
|
1075
|
+
let result;
|
|
1076
|
+
if (this.ellipsisLineCutoff && this.ellipsisLineCutoff > 0) {
|
|
1077
|
+
result = {
|
|
1078
|
+
['-webkit-line-clamp']: `${this.ellipsisLineCutoff}`,
|
|
1079
|
+
};
|
|
1080
|
+
}
|
|
1081
|
+
return result;
|
|
1082
|
+
}
|
|
1083
|
+
get el() { return index.getElement(this); }
|
|
1084
|
+
};
|
|
1085
|
+
PtcPara.style = ptcParaCss;
|
|
1086
|
+
|
|
1087
|
+
const ptcPictureCss = "h1,h2,h3,h4,h5,h6,p,ul,li,ptc-subnav,ptc-tab-list,ptc-link,ptc-square-card{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{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{object-fit:cover}.fill{object-fit:fill}.contain{object-fit:contain}.scale-down{object-fit:scale-down}.none{object-fit:none}.initial{object-fit:initial}.inherit{object-fit:inherit}.radius-standard{border-radius:var(--ptc-border-radius-standard)}.radius-large{border-radius:var(--ptc-border-radius-large)}.is-full-height{height:100%}.is-full-width{width:100%}:host(.left){text-align:left}:host(.right){text-align:right}:host(.center){text-align:center}";
|
|
1088
|
+
|
|
1089
|
+
const PtcPicture = class {
|
|
1090
|
+
constructor(hostRef) {
|
|
1091
|
+
index.registerInstance(this, hostRef);
|
|
1092
|
+
this.src = undefined;
|
|
1093
|
+
this.alt = 'image';
|
|
1094
|
+
this.sizeXs = '510x340';
|
|
1095
|
+
this.sizeSm = '1240x496';
|
|
1096
|
+
this.sizeMd = '1366x500';
|
|
1097
|
+
this.sizeLg = '1920x1080';
|
|
1098
|
+
this.disableResize = false;
|
|
1099
|
+
this.oldSrc = undefined;
|
|
1100
|
+
this.imagePosition = 'static';
|
|
1101
|
+
this.borderRadius = undefined;
|
|
1102
|
+
this.height = undefined;
|
|
1103
|
+
this.width = undefined;
|
|
1104
|
+
this.objectFit = 'cover';
|
|
1105
|
+
this.isFullHeight = false;
|
|
1106
|
+
this.isFullWidth = false;
|
|
1107
|
+
this.styles = undefined;
|
|
1108
|
+
this.imageAlignment = 'left';
|
|
1109
|
+
this.maxWidth = undefined;
|
|
1110
|
+
this.displayImage = 'block';
|
|
1111
|
+
}
|
|
1112
|
+
WindowResize() {
|
|
1113
|
+
this.addIntersectionObserver();
|
|
1114
|
+
}
|
|
1115
|
+
componentWillLoad() {
|
|
1116
|
+
if (this.disableResize) {
|
|
1117
|
+
this.sizeXs = undefined;
|
|
1118
|
+
this.sizeSm = undefined;
|
|
1119
|
+
this.sizeMd = undefined;
|
|
1120
|
+
this.sizeLg = undefined;
|
|
1121
|
+
}
|
|
1122
|
+
}
|
|
1123
|
+
componentDidLoad() {
|
|
1124
|
+
this.addIntersectionObserver();
|
|
1125
|
+
}
|
|
1126
|
+
componentWillUpdate() {
|
|
1127
|
+
if (this.src !== this.oldSrc) {
|
|
1128
|
+
this.addIntersectionObserver();
|
|
1129
|
+
}
|
|
1130
|
+
this.oldSrc = this.src;
|
|
1131
|
+
}
|
|
1132
|
+
//lazy-loading
|
|
1133
|
+
addIntersectionObserver() {
|
|
1134
|
+
if (!this.src) {
|
|
1135
|
+
return;
|
|
1136
|
+
}
|
|
1137
|
+
if ('IntersectionObserver' in window) {
|
|
1138
|
+
let lazyLoadImages = new IntersectionObserver(entries => {
|
|
1139
|
+
entries.forEach(entry => {
|
|
1140
|
+
if (entry.isIntersecting) {
|
|
1141
|
+
const image = this.el.shadowRoot.querySelector('img');
|
|
1142
|
+
image.src = this.setResponsiveBg();
|
|
1143
|
+
lazyLoadImages.unobserve(image);
|
|
1144
|
+
}
|
|
1145
|
+
});
|
|
1146
|
+
});
|
|
1147
|
+
let tempImg = this.el.shadowRoot.querySelector('img');
|
|
1148
|
+
if (tempImg) {
|
|
1149
|
+
lazyLoadImages.observe(tempImg);
|
|
1150
|
+
}
|
|
1151
|
+
}
|
|
1152
|
+
else {
|
|
1153
|
+
// fall back to setTimeout for Safari and IE
|
|
1154
|
+
setTimeout(() => {
|
|
1155
|
+
const image = this.el.shadowRoot.querySelector('img');
|
|
1156
|
+
image.src = this.setResponsiveBg();
|
|
1157
|
+
image.onload = () => {
|
|
1158
|
+
image.removeAttribute('data-src');
|
|
1159
|
+
console.log('loaded fallback');
|
|
1160
|
+
};
|
|
1161
|
+
}, 5000);
|
|
1162
|
+
}
|
|
1163
|
+
}
|
|
1164
|
+
//responsive image
|
|
1165
|
+
setResponsiveBg() {
|
|
1166
|
+
// Define local variables
|
|
1167
|
+
let backgrounds = (this.el.shadowRoot || document).querySelectorAll('img'), el, elData, currentBreakpoint = this.getCurrentBreakPoints();
|
|
1168
|
+
for (var i = 0, len = backgrounds.length; i < len; i++) {
|
|
1169
|
+
// Set current variables
|
|
1170
|
+
el = backgrounds[i];
|
|
1171
|
+
elData = el.getAttribute('data-' + currentBreakpoint);
|
|
1172
|
+
if (elData !== null) {
|
|
1173
|
+
return elData;
|
|
1174
|
+
}
|
|
1175
|
+
else {
|
|
1176
|
+
if (typeof console == 'object') {
|
|
1177
|
+
console.warn('Data attribute: data-' + currentBreakpoint + ' not found on element:\n\n' + el.outerHTML + '\n\n\n');
|
|
1178
|
+
}
|
|
1179
|
+
}
|
|
1180
|
+
}
|
|
1181
|
+
}
|
|
1182
|
+
render() {
|
|
1183
|
+
const classMap = this.getCssClassMap();
|
|
1184
|
+
const classMapHost = this.getCssClassMapHost();
|
|
1185
|
+
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 ? { maxWidth: this.maxWidth + 'px' } : {})) })), index.h("slot", null)));
|
|
1186
|
+
}
|
|
1187
|
+
getCurrentBreakPoints() {
|
|
1188
|
+
// Define local variables
|
|
1189
|
+
let doc = window.document, temp = doc.createElement('div'), env;
|
|
1190
|
+
// Append test node
|
|
1191
|
+
doc.body.appendChild(temp);
|
|
1192
|
+
// Loop through breakpoints
|
|
1193
|
+
for (let i = ResponsivePictureVariables.envs.length - 1; i >= 0; i--) {
|
|
1194
|
+
env = ResponsivePictureVariables.envs[i];
|
|
1195
|
+
// Add classes
|
|
1196
|
+
temp.className = 'hidden-' + env;
|
|
1197
|
+
// Found breakpoint
|
|
1198
|
+
if (temp.offsetParent === null) {
|
|
1199
|
+
// Remove our test node
|
|
1200
|
+
doc.body.removeChild(temp);
|
|
1201
|
+
// Return current breakpoint
|
|
1202
|
+
return env;
|
|
1203
|
+
}
|
|
1204
|
+
}
|
|
1205
|
+
// Breakpoint not found, try fallback
|
|
1206
|
+
doc.body.removeChild(temp);
|
|
1207
|
+
return this.getFallbackBreakpoint();
|
|
1208
|
+
}
|
|
1209
|
+
getFallbackBreakpoint() {
|
|
1210
|
+
if (window.matchMedia('(min-width: 992px)').matches) {
|
|
1211
|
+
return 'lg';
|
|
1212
|
+
}
|
|
1213
|
+
else if (window.matchMedia('(min-width: 768px)').matches) {
|
|
1214
|
+
return 'md';
|
|
1215
|
+
}
|
|
1216
|
+
else if (window.matchMedia('(min-width: 576px)').matches) {
|
|
1217
|
+
return 'sm';
|
|
1218
|
+
}
|
|
1219
|
+
else {
|
|
1220
|
+
return 'xs';
|
|
1221
|
+
}
|
|
1222
|
+
}
|
|
1223
|
+
getCssClassMap() {
|
|
1224
|
+
return {
|
|
1225
|
+
[this.borderRadius]: this.borderRadius ? true : false,
|
|
1226
|
+
[this.objectFit]: true,
|
|
1227
|
+
[this.isFullHeight ? 'is-full-height' : 'is-normal-height']: true,
|
|
1228
|
+
[this.isFullWidth ? 'is-full-width' : 'is-normal-width']: true,
|
|
1229
|
+
[this.displayImage]: true
|
|
1230
|
+
};
|
|
1231
|
+
}
|
|
1232
|
+
getCssClassMapHost() {
|
|
1233
|
+
return {
|
|
1234
|
+
[this.imagePosition]: true,
|
|
1235
|
+
[this.imageAlignment]: true,
|
|
1236
|
+
};
|
|
1237
|
+
}
|
|
1238
|
+
get el() { return index.getElement(this); }
|
|
1239
|
+
};
|
|
1240
|
+
PtcPicture.style = ptcPictureCss;
|
|
1241
|
+
|
|
1242
|
+
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}}";
|
|
1243
|
+
|
|
1244
|
+
const PtcSpacer = class {
|
|
1245
|
+
constructor(hostRef) {
|
|
1246
|
+
index.registerInstance(this, hostRef);
|
|
1247
|
+
this.breakpoint = '';
|
|
1248
|
+
this.size = 'medium';
|
|
1249
|
+
this.direction = 'vertical';
|
|
1250
|
+
}
|
|
1251
|
+
render() {
|
|
1252
|
+
const classMap = this.getCssClassMap();
|
|
1253
|
+
return (index.h(index.Host, { class: classMap }));
|
|
1254
|
+
}
|
|
1255
|
+
getCssClassMap() {
|
|
1256
|
+
return {
|
|
1257
|
+
[this.size]: true,
|
|
1258
|
+
['ptc-spacer-horizontal']: this.direction === 'horizontal',
|
|
1259
|
+
['ptc-spacer-vertical']: this.direction === 'vertical',
|
|
1260
|
+
['ptc-spacer-xx-small']: this.breakpoint === 'xx-small',
|
|
1261
|
+
['ptc-spacer-x-small']: this.breakpoint === 'x-small',
|
|
1262
|
+
['ptc-spacer-small']: this.breakpoint === 'small',
|
|
1263
|
+
['ptc-spacer-medium']: this.breakpoint === 'medium',
|
|
1264
|
+
['ptc-spacer-large']: this.breakpoint === 'large',
|
|
1265
|
+
['ptc-spacer-x-large']: this.breakpoint === 'x-large',
|
|
1266
|
+
['ptc-spacer-xx-large']: this.breakpoint === 'xx-large',
|
|
1267
|
+
['ptc-spacer-xxx-large']: this.breakpoint === 'xxx-large',
|
|
1268
|
+
};
|
|
1269
|
+
}
|
|
1270
|
+
};
|
|
1271
|
+
PtcSpacer.style = ptcSpacerCss;
|
|
1272
|
+
|
|
1273
|
+
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{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{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}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}";
|
|
1274
|
+
|
|
1275
|
+
const PtcTitle = class {
|
|
1276
|
+
constructor(hostRef) {
|
|
1277
|
+
index.registerInstance(this, hostRef);
|
|
1278
|
+
this.isPlmHub = false;
|
|
1279
|
+
this.type = 'h2';
|
|
1280
|
+
this.textAlign = undefined;
|
|
1281
|
+
this.upperline = 'dotted';
|
|
1282
|
+
this.titleShadow = undefined;
|
|
1283
|
+
this.titleColor = 'gray';
|
|
1284
|
+
this.titleMargin = undefined;
|
|
1285
|
+
this.titleWeight = undefined;
|
|
1286
|
+
this.titleSize = undefined;
|
|
1287
|
+
this.titleHeight = 'densest';
|
|
1288
|
+
this.styles = undefined;
|
|
1289
|
+
this.ellipsisLineCutoff = undefined;
|
|
1290
|
+
this.titleDisplay = 'inline-block';
|
|
1291
|
+
this.seoCompatibilityMode = false;
|
|
1292
|
+
}
|
|
1293
|
+
render() {
|
|
1294
|
+
if (this.seoCompatibilityMode) {
|
|
1295
|
+
return this.seoCompRender();
|
|
1296
|
+
}
|
|
1297
|
+
else {
|
|
1298
|
+
return this.standardRender();
|
|
1299
|
+
}
|
|
1300
|
+
}
|
|
1301
|
+
seoCompRender() {
|
|
1302
|
+
const classMap = this.getCssClassMap();
|
|
1303
|
+
const cutOff = this.getLineCuttoff();
|
|
1304
|
+
const [TagType, firstChild] = utils.getSeoTagType(this.el, this.type);
|
|
1305
|
+
const html = firstChild && firstChild.innerHTML;
|
|
1306
|
+
if (this.el == firstChild) {
|
|
1307
|
+
this.el.innerHTML = '';
|
|
1308
|
+
}
|
|
1309
|
+
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 }))));
|
|
1310
|
+
}
|
|
1311
|
+
standardRender() {
|
|
1312
|
+
const classMap = this.getCssClassMap();
|
|
1313
|
+
const cutOff = this.getLineCuttoff();
|
|
1314
|
+
let TagType;
|
|
1315
|
+
switch (this.type) {
|
|
1316
|
+
case 'h1':
|
|
1317
|
+
TagType = 'h1';
|
|
1318
|
+
break;
|
|
1319
|
+
case 'h3':
|
|
1320
|
+
TagType = 'h3';
|
|
1321
|
+
break;
|
|
1322
|
+
case 'h4':
|
|
1323
|
+
TagType = 'h4';
|
|
1324
|
+
break;
|
|
1325
|
+
case 'h5':
|
|
1326
|
+
TagType = 'h5';
|
|
1327
|
+
break;
|
|
1328
|
+
case 'h6':
|
|
1329
|
+
TagType = 'h6';
|
|
1330
|
+
break;
|
|
1331
|
+
default:
|
|
1332
|
+
TagType = 'h2';
|
|
1333
|
+
}
|
|
1334
|
+
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)))));
|
|
1335
|
+
}
|
|
1336
|
+
getCssClassMap() {
|
|
1337
|
+
return {
|
|
1338
|
+
[this.textAlign]: !!this.textAlign ? true : false,
|
|
1339
|
+
[this.upperline]: true,
|
|
1340
|
+
[this.isPlmHub ? 'is-plm-hub' : 'is-standard']: true,
|
|
1341
|
+
[this.titleMargin]: !!this.titleMargin ? true : false,
|
|
1342
|
+
[this.titleShadow]: !!this.titleShadow ? true : false,
|
|
1343
|
+
[this.titleWeight]: !!this.titleWeight ? true : false,
|
|
1344
|
+
[this.titleSize]: !!this.titleSize ? true : false,
|
|
1345
|
+
[this.titleHeight]: !!this.titleHeight ? true : false,
|
|
1346
|
+
[this.titleColor]: !!this.titleColor ? true : false,
|
|
1347
|
+
['ellipsis-boxing']: this.ellipsisLineCutoff && this.ellipsisLineCutoff > 0,
|
|
1348
|
+
[this.titleDisplay]: !!this.titleDisplay ? true : false,
|
|
1349
|
+
};
|
|
1350
|
+
}
|
|
1351
|
+
getLineCuttoff() {
|
|
1352
|
+
let result;
|
|
1353
|
+
if (this.ellipsisLineCutoff && this.ellipsisLineCutoff > 0) {
|
|
1354
|
+
result = {
|
|
1355
|
+
['-webkit-line-clamp']: `${this.ellipsisLineCutoff}`,
|
|
1356
|
+
};
|
|
1357
|
+
}
|
|
1358
|
+
return result;
|
|
1359
|
+
}
|
|
1360
|
+
get el() { return index.getElement(this); }
|
|
1361
|
+
};
|
|
1362
|
+
PtcTitle.style = ptcTitleCss;
|
|
1363
|
+
|
|
1364
|
+
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{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{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)}.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}";
|
|
1365
|
+
|
|
1366
|
+
const PtcTooltip = class {
|
|
1367
|
+
constructor(hostRef) {
|
|
1368
|
+
index.registerInstance(this, hostRef);
|
|
1369
|
+
this.textDisplay = 'inline';
|
|
1370
|
+
this.maxLength = 45;
|
|
1371
|
+
this.textLines = undefined;
|
|
1372
|
+
this.description = 'This is a tooltip text placeholder';
|
|
1373
|
+
this.zIndex = 'z-auto';
|
|
1374
|
+
this.position = 'bottom';
|
|
1375
|
+
this.styles = undefined;
|
|
1376
|
+
this.mode = 'text-only';
|
|
1377
|
+
this.theme = 'standard';
|
|
1378
|
+
this.width = 'default';
|
|
1379
|
+
this.hideOnMobile = false;
|
|
1380
|
+
this.isSmallScreen = undefined;
|
|
1381
|
+
this.noOverflow = false;
|
|
1382
|
+
}
|
|
1383
|
+
addTruncatedClass() {
|
|
1384
|
+
const appRoot = this.el;
|
|
1385
|
+
const text = appRoot.querySelectorAll('.ellipsis-by-line-boxing');
|
|
1386
|
+
text.forEach(t => {
|
|
1387
|
+
t.classList[t.scrollHeight > t.clientHeight ? 'add' : 'remove']('truncated');
|
|
1388
|
+
});
|
|
1389
|
+
}
|
|
1390
|
+
windowResize() {
|
|
1391
|
+
this.verifiyScreenSize();
|
|
1392
|
+
}
|
|
1393
|
+
verifiyScreenSize() {
|
|
1394
|
+
this.isSmallScreen = window.innerWidth < 768;
|
|
1395
|
+
}
|
|
1396
|
+
// Created this function to initialize the truncate function on specific elements like tabs
|
|
1397
|
+
enableAddTruncatedClass(element) {
|
|
1398
|
+
const allTabHeaders = document.querySelectorAll(element);
|
|
1399
|
+
for (const element of Array.from(allTabHeaders)) {
|
|
1400
|
+
let tabHeader = element;
|
|
1401
|
+
if (tabHeader) {
|
|
1402
|
+
tabHeader.addEventListener('click', () => {
|
|
1403
|
+
setTimeout(() => {
|
|
1404
|
+
this.addTruncatedClass();
|
|
1405
|
+
}, 100);
|
|
1406
|
+
});
|
|
1407
|
+
}
|
|
1408
|
+
}
|
|
1409
|
+
}
|
|
1410
|
+
componentWillLoad() {
|
|
1411
|
+
this.verifiyScreenSize();
|
|
1412
|
+
}
|
|
1413
|
+
componentDidLoad() {
|
|
1414
|
+
//this.addTruncatedClass();
|
|
1415
|
+
setTimeout(() => {
|
|
1416
|
+
this.addTruncatedClass();
|
|
1417
|
+
}, 1000);
|
|
1418
|
+
this.enableAddTruncatedClass('tab-header');
|
|
1419
|
+
this.enableAddTruncatedClass('ptc-ellipsis-dropdown');
|
|
1420
|
+
this.enableAddTruncatedClass('ptc-product-card');
|
|
1421
|
+
document.addEventListener('readystatechange', () => {
|
|
1422
|
+
if (document.readyState === 'complete') {
|
|
1423
|
+
this.addTruncatedClass();
|
|
1424
|
+
}
|
|
1425
|
+
});
|
|
1426
|
+
}
|
|
1427
|
+
render() {
|
|
1428
|
+
if (this.mode == 'wrapper') {
|
|
1429
|
+
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 })))));
|
|
1430
|
+
}
|
|
1431
|
+
else {
|
|
1432
|
+
const classMap = this.getCssClassMap();
|
|
1433
|
+
const cutOff = this.getLineCuttoff();
|
|
1434
|
+
let truncatedText = this.description.substring(0, this.maxLength);
|
|
1435
|
+
if (this.description.length > this.maxLength) {
|
|
1436
|
+
//const lastSpace = truncatedText.lastIndexOf(' ');
|
|
1437
|
+
//truncatedText = truncatedText.substring(0, lastSpace);
|
|
1438
|
+
truncatedText += '... ';
|
|
1439
|
+
}
|
|
1440
|
+
return (index.h(index.Host, { class: { [this.textDisplay]: true, [this.width]: true, 'no-overflow': this.noOverflow } }, 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 })))));
|
|
1441
|
+
}
|
|
1442
|
+
}
|
|
1443
|
+
getCssClassMap() {
|
|
1444
|
+
return {
|
|
1445
|
+
// ['ellipsis-by-line-boxing']: this.textLines && this.textLines > 0,
|
|
1446
|
+
['text-ellipsis']: true,
|
|
1447
|
+
[this.zIndex]: this.description.length > this.maxLength ? true : false,
|
|
1448
|
+
['truncated']: this.description.length > this.maxLength && !this.textLines ? true : false,
|
|
1449
|
+
};
|
|
1450
|
+
}
|
|
1451
|
+
getLineCuttoff() {
|
|
1452
|
+
let result;
|
|
1453
|
+
if (this.textLines && this.textLines > 0) {
|
|
1454
|
+
result = {
|
|
1455
|
+
['-webkit-line-clamp']: `${this.textLines}`,
|
|
1456
|
+
};
|
|
1457
|
+
}
|
|
1458
|
+
return result;
|
|
1459
|
+
}
|
|
1460
|
+
get el() { return index.getElement(this); }
|
|
1461
|
+
};
|
|
1462
|
+
PtcTooltip.style = ptcTooltipCss;
|
|
1463
|
+
|
|
1464
|
+
exports.icon_asset = IconAsset;
|
|
1465
|
+
exports.list_item = ListItem;
|
|
1466
|
+
exports.max_width_container = MaxWidthContainer;
|
|
1467
|
+
exports.ptc_background_video = PtcBackgroundVideo;
|
|
1468
|
+
exports.ptc_breadcrumb = PtcBreadcrumb;
|
|
1469
|
+
exports.ptc_button = PtcButton;
|
|
1470
|
+
exports.ptc_img = PtcImg;
|
|
1471
|
+
exports.ptc_jumbotron = PtcJumbotron;
|
|
1472
|
+
exports.ptc_modal = PtcModal;
|
|
1473
|
+
exports.ptc_office_location_card = PtcOfficeLocationCard;
|
|
1474
|
+
exports.ptc_office_locations = PtcOfficeLocations;
|
|
1475
|
+
exports.ptc_para = PtcPara;
|
|
1476
|
+
exports.ptc_picture = PtcPicture;
|
|
1477
|
+
exports.ptc_spacer = PtcSpacer;
|
|
1478
|
+
exports.ptc_title = PtcTitle;
|
|
1479
|
+
exports.ptc_tooltip = PtcTooltip;
|