@ptcwebops/ptcw-design 3.8.5 → 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/ptc-square-card.cjs.entry.js +1 -1
- 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-icon-component/ptc-icon-component.css +3 -7
- package/dist/collection/components/ptc-icon-component/ptc-icon-component.js +10 -3
- package/dist/collection/components/ptc-office-locations/ptc-office-locations.js +3 -2
- package/dist/collection/components/ptc-readmore-char/ptc-readmore-char.js +18 -0
- 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/collection/components/ptc-square-card/ptc-square-card.css +0 -5
- package/dist/custom-elements/index.js +24 -11
- 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 +2 -2
- 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-d7a4d8d1.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-readmore-char/ptc-readmore-char.d.ts +1 -0
- package/dist/types/components/ptc-shopping-cart/ptc-shopping-cart.d.ts +1 -0
- package/dist/types/components.d.ts +3 -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 -1116
- 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 -1103
- 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-13658bc2.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-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
|
@@ -1,194 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
-
|
|
5
|
-
const index = require('./index-4b85b38a.js');
|
|
6
|
-
|
|
7
|
-
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}";
|
|
8
|
-
|
|
9
|
-
const PtcModal = class {
|
|
10
|
-
constructor(hostRef) {
|
|
11
|
-
index.registerInstance(this, hostRef);
|
|
12
|
-
this.closed = index.createEvent(this, "closed", 7);
|
|
13
|
-
this.opened = index.createEvent(this, "opened", 7);
|
|
14
|
-
this.iframeUrl = undefined;
|
|
15
|
-
this.size = 'sm';
|
|
16
|
-
this.show = false;
|
|
17
|
-
this.overlay = true;
|
|
18
|
-
this.fixed = false;
|
|
19
|
-
this.keepInViewport = false;
|
|
20
|
-
this.closeOnBlur = false;
|
|
21
|
-
this.rounded = false;
|
|
22
|
-
this.hideContainer = false;
|
|
23
|
-
this.showHeaderFooter = false;
|
|
24
|
-
this.overlayHeight = undefined;
|
|
25
|
-
this.borderRadius = 'standard';
|
|
26
|
-
this.isBioModal = false;
|
|
27
|
-
this.styles = undefined;
|
|
28
|
-
this.bodyOverflowSetting = undefined;
|
|
29
|
-
}
|
|
30
|
-
fireOnClosed(modal) {
|
|
31
|
-
this.closed.emit(modal);
|
|
32
|
-
}
|
|
33
|
-
fireOnOpened(modal) {
|
|
34
|
-
this.opened.emit(modal);
|
|
35
|
-
}
|
|
36
|
-
componentWillLoad() {
|
|
37
|
-
let body = document.querySelector('body');
|
|
38
|
-
this.bodyOverflowSetting = {
|
|
39
|
-
//overflow: body.style['overflow'],
|
|
40
|
-
overflowY: body.style['overflowY'],
|
|
41
|
-
overflowX: body.style['overflowX'],
|
|
42
|
-
};
|
|
43
|
-
}
|
|
44
|
-
componentWillRender() {
|
|
45
|
-
let body = document.querySelector('body');
|
|
46
|
-
if (body) {
|
|
47
|
-
if (this.show) {
|
|
48
|
-
//body.style['overflow'] = 'hidden';
|
|
49
|
-
if (this.fixed) {
|
|
50
|
-
body.style['overflowY'] = 'hidden';
|
|
51
|
-
body.style['overflowX'] = 'hidden';
|
|
52
|
-
}
|
|
53
|
-
else {
|
|
54
|
-
body.style['overflowY'] = 'scroll';
|
|
55
|
-
body.style['overflowX'] = 'hidden';
|
|
56
|
-
}
|
|
57
|
-
}
|
|
58
|
-
else {
|
|
59
|
-
//body.style['overflow'] = this.bodyOverflowSetting.overflow;
|
|
60
|
-
body.style['overflowY'] = this.bodyOverflowSetting.overflowY;
|
|
61
|
-
body.style['overflowX'] = this.bodyOverflowSetting.overflowX;
|
|
62
|
-
}
|
|
63
|
-
}
|
|
64
|
-
}
|
|
65
|
-
componentDidLoad() {
|
|
66
|
-
if (this.show) {
|
|
67
|
-
this.fireOnOpened(this);
|
|
68
|
-
}
|
|
69
|
-
if (this.showHeaderFooter) {
|
|
70
|
-
this.handleScroll();
|
|
71
|
-
}
|
|
72
|
-
}
|
|
73
|
-
componentDidUpdate() {
|
|
74
|
-
if (this.show) {
|
|
75
|
-
this.fireOnOpened(this);
|
|
76
|
-
}
|
|
77
|
-
else {
|
|
78
|
-
this.fireOnClosed(this);
|
|
79
|
-
}
|
|
80
|
-
}
|
|
81
|
-
resizeIframe(e) {
|
|
82
|
-
let iFrame = e.target;
|
|
83
|
-
setTimeout(() => {
|
|
84
|
-
try {
|
|
85
|
-
if (iFrame.contentDocument) {
|
|
86
|
-
iFrame.height = `${iFrame.contentDocument.body.scrollHeight}px`;
|
|
87
|
-
}
|
|
88
|
-
else {
|
|
89
|
-
iFrame.height = '616px'; //default
|
|
90
|
-
iFrame.removeAttribute('scrolling');
|
|
91
|
-
}
|
|
92
|
-
}
|
|
93
|
-
catch (error) {
|
|
94
|
-
console.log(error);
|
|
95
|
-
iFrame.height = '616px'; //default
|
|
96
|
-
iFrame.removeAttribute('scrolling');
|
|
97
|
-
}
|
|
98
|
-
iFrame.classList.add('ready');
|
|
99
|
-
}, 50);
|
|
100
|
-
}
|
|
101
|
-
handleScroll() {
|
|
102
|
-
let modal = this.el.shadowRoot.querySelector('.shadow-scroller');
|
|
103
|
-
if (modal) {
|
|
104
|
-
let body = modal.querySelector('.modal-body');
|
|
105
|
-
var height = body.clientHeight;
|
|
106
|
-
var scrollHeight = body.scrollHeight;
|
|
107
|
-
var scrollTop = body.scrollTop;
|
|
108
|
-
var offset = body.offsetHeight;
|
|
109
|
-
if (height < scrollHeight) { //has scrollbar
|
|
110
|
-
if (scrollTop > 0) { //can scroll up
|
|
111
|
-
modal.classList.add('scroll-top');
|
|
112
|
-
}
|
|
113
|
-
else {
|
|
114
|
-
modal.classList.remove('scroll-top');
|
|
115
|
-
}
|
|
116
|
-
if (offset + scrollTop < scrollHeight) { //can scroll down
|
|
117
|
-
modal.classList.add('scroll-bottom');
|
|
118
|
-
}
|
|
119
|
-
else {
|
|
120
|
-
modal.classList.remove('scroll-bottom');
|
|
121
|
-
}
|
|
122
|
-
}
|
|
123
|
-
}
|
|
124
|
-
}
|
|
125
|
-
close() {
|
|
126
|
-
this.show = false;
|
|
127
|
-
}
|
|
128
|
-
render() {
|
|
129
|
-
let content;
|
|
130
|
-
let overlay;
|
|
131
|
-
let type = this.iframeUrl ? 'frame' : 'html';
|
|
132
|
-
let closebtn = (index.h("div", { class: "close" }, index.h("a", { href: "#", onClick: (e) => { e.preventDefault(); this.close(); } }, this.isBioModal
|
|
133
|
-
?
|
|
134
|
-
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)" })))
|
|
135
|
-
:
|
|
136
|
-
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" })))));
|
|
137
|
-
if (this.iframeUrl) {
|
|
138
|
-
content = (index.h("iframe", { src: this.iframeUrl, frameBorder: 0, allowFullScreen: false, height: "100%", width: "100%", scrolling: "no", onLoad: this.resizeIframe }));
|
|
139
|
-
}
|
|
140
|
-
else {
|
|
141
|
-
if (this.showHeaderFooter) {
|
|
142
|
-
content = (index.h("slot", { name: "body" }));
|
|
143
|
-
}
|
|
144
|
-
else {
|
|
145
|
-
content = (index.h("slot", null));
|
|
146
|
-
}
|
|
147
|
-
}
|
|
148
|
-
if (this.overlay) {
|
|
149
|
-
if (this.closeOnBlur) {
|
|
150
|
-
overlay = index.h("div", { class: "overlay", onClick: (_) => this.close() });
|
|
151
|
-
}
|
|
152
|
-
else {
|
|
153
|
-
overlay = index.h("div", { class: "overlay" });
|
|
154
|
-
}
|
|
155
|
-
}
|
|
156
|
-
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 ? [
|
|
157
|
-
index.h("div", { class: "modal-header" }, index.h("slot", { name: "header" }), closebtn),
|
|
158
|
-
index.h("div", { class: "modal-body", onScroll: () => this.handleScroll() }, content),
|
|
159
|
-
index.h("div", { class: "modal-footer" }, index.h("slot", { name: "footer" }))
|
|
160
|
-
] : [
|
|
161
|
-
closebtn,
|
|
162
|
-
index.h("div", { class: "modal-body" }, content)
|
|
163
|
-
]))));
|
|
164
|
-
}
|
|
165
|
-
getCssClassMap() {
|
|
166
|
-
return {
|
|
167
|
-
["no-container"]: this.hideContainer,
|
|
168
|
-
["bio-modal"]: this.isBioModal,
|
|
169
|
-
["enclose-modal"]: !this.isBioModal && this.keepInViewport,
|
|
170
|
-
[this.borderRadius]: true
|
|
171
|
-
};
|
|
172
|
-
}
|
|
173
|
-
async showModal() {
|
|
174
|
-
this.show = true;
|
|
175
|
-
}
|
|
176
|
-
async hideModal() {
|
|
177
|
-
this.show = false;
|
|
178
|
-
}
|
|
179
|
-
async toggleModal() {
|
|
180
|
-
this.show = !this.show;
|
|
181
|
-
}
|
|
182
|
-
async reloadIframe() {
|
|
183
|
-
if (this.iframeUrl) {
|
|
184
|
-
let iframe = this.el.shadowRoot.querySelector('iframe');
|
|
185
|
-
if (iframe) {
|
|
186
|
-
iframe.src = iframe.src;
|
|
187
|
-
}
|
|
188
|
-
}
|
|
189
|
-
}
|
|
190
|
-
get el() { return index.getElement(this); }
|
|
191
|
-
};
|
|
192
|
-
PtcModal.style = ptcModalCss;
|
|
193
|
-
|
|
194
|
-
exports.ptc_modal = PtcModal;
|
|
@@ -1,63 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
-
|
|
5
|
-
const index = require('./index-4b85b38a.js');
|
|
6
|
-
const showMapIcon = require('./show-map-icon-c1cca913.js');
|
|
7
|
-
|
|
8
|
-
const phone = `
|
|
9
|
-
<svg width="16" height="20" viewBox="0 0 16 20" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
10
|
-
<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"/>
|
|
11
|
-
</svg>
|
|
12
|
-
`;
|
|
13
|
-
|
|
14
|
-
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">
|
|
15
|
-
<path
|
|
16
|
-
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"
|
|
17
|
-
fill="#40434A" />
|
|
18
|
-
<path
|
|
19
|
-
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"
|
|
20
|
-
fill="#40434A" />
|
|
21
|
-
<path
|
|
22
|
-
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"
|
|
23
|
-
fill="#40434A" />
|
|
24
|
-
<path
|
|
25
|
-
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"
|
|
26
|
-
fill="#40434A" />
|
|
27
|
-
</svg>
|
|
28
|
-
`;
|
|
29
|
-
|
|
30
|
-
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)}";
|
|
31
|
-
|
|
32
|
-
const PtcOfficeLocationCard = class {
|
|
33
|
-
constructor(hostRef) {
|
|
34
|
-
index.registerInstance(this, hostRef);
|
|
35
|
-
this.officeCardClicked = index.createEvent(this, "officeCardClicked", 7);
|
|
36
|
-
this.region = undefined;
|
|
37
|
-
this.country = undefined;
|
|
38
|
-
this.address = undefined;
|
|
39
|
-
this.isContactEmpty = false;
|
|
40
|
-
this.officeName = undefined;
|
|
41
|
-
this.showFullAddressModal = false;
|
|
42
|
-
}
|
|
43
|
-
handleClick() {
|
|
44
|
-
// Emit the addressClicked event with the address as the detail
|
|
45
|
-
this.officeCardClicked.emit(this.address);
|
|
46
|
-
}
|
|
47
|
-
showFullAddress(event) {
|
|
48
|
-
event.stopPropagation();
|
|
49
|
-
const modal = this.hostElement.shadowRoot.querySelector('#show-full-add');
|
|
50
|
-
modal.show = true;
|
|
51
|
-
}
|
|
52
|
-
render() {
|
|
53
|
-
return (index.h(index.Host, null, index.h("div", { class: 'ofc-card-wrapper', onClick: () => this.handleClick() }, this.showFullAddressModal &&
|
|
54
|
-
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: showMapIcon.showMapSVG }), index.h("slot", { name: "map-link" })), index.h("div", { class: 'contact-number' }, !this.isContactEmpty &&
|
|
55
|
-
index.h("span", { class: "ofc-icon", innerHTML: phone }), index.h("slot", { name: "contact-number" })), index.h("slot", null)), this.showFullAddressModal &&
|
|
56
|
-
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: showMapIcon.showMapSVG }), index.h("slot", { name: 'map-link-modal' })), index.h("div", { class: 'contact-number' }, !this.isContactEmpty &&
|
|
57
|
-
index.h("span", { class: "ofc-icon", innerHTML: phone }), index.h("slot", { name: 'contact-number-modal' })))));
|
|
58
|
-
}
|
|
59
|
-
get hostElement() { return index.getElement(this); }
|
|
60
|
-
};
|
|
61
|
-
PtcOfficeLocationCard.style = ptcOfficeLocationCardCss;
|
|
62
|
-
|
|
63
|
-
exports.ptc_office_location_card = PtcOfficeLocationCard;
|
|
@@ -1,223 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
-
|
|
5
|
-
const index = require('./index-4b85b38a.js');
|
|
6
|
-
const showMapIcon = require('./show-map-icon-c1cca913.js');
|
|
7
|
-
|
|
8
|
-
const filterSVG = `
|
|
9
|
-
<svg width="19" height="16" viewBox="0 0 19 16" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
10
|
-
<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"/>
|
|
11
|
-
<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"/>
|
|
12
|
-
<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"/>
|
|
13
|
-
<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"/>
|
|
14
|
-
<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"/>
|
|
15
|
-
<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"/>
|
|
16
|
-
<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"/>
|
|
17
|
-
<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"/>
|
|
18
|
-
<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"/>
|
|
19
|
-
</svg>
|
|
20
|
-
`;
|
|
21
|
-
|
|
22
|
-
const hideMapSVG = `<svg width="16" height="17" viewBox="0 0 16 17" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
23
|
-
<path fill-rule="evenodd" clip-rule="evenodd"
|
|
24
|
-
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"
|
|
25
|
-
fill="#40434A" />
|
|
26
|
-
<path d="M1 15L15 1" stroke="#40434A" />
|
|
27
|
-
</svg>
|
|
28
|
-
`;
|
|
29
|
-
|
|
30
|
-
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}";
|
|
31
|
-
|
|
32
|
-
const PtcOfficeLocations = class {
|
|
33
|
-
constructor(hostRef) {
|
|
34
|
-
index.registerInstance(this, hostRef);
|
|
35
|
-
this.locations = [];
|
|
36
|
-
this.regions = [];
|
|
37
|
-
this.openRegion = '';
|
|
38
|
-
this.isMobile = undefined;
|
|
39
|
-
this.address = undefined;
|
|
40
|
-
this.showMap = false;
|
|
41
|
-
}
|
|
42
|
-
handleResize() {
|
|
43
|
-
this.isMobile = window.innerWidth < 992;
|
|
44
|
-
if (this.isMobile) {
|
|
45
|
-
this.showMap = false;
|
|
46
|
-
}
|
|
47
|
-
}
|
|
48
|
-
handleAddressClicked(event) {
|
|
49
|
-
// CustomEvent's detail property contains the address
|
|
50
|
-
this.address = event.detail;
|
|
51
|
-
if (!this.isMobile) {
|
|
52
|
-
this.showMap = true;
|
|
53
|
-
}
|
|
54
|
-
}
|
|
55
|
-
componentWillLoad() {
|
|
56
|
-
this.isMobile = window.innerWidth < 992;
|
|
57
|
-
const officeCards = document.querySelectorAll('ptc-office-location-card');
|
|
58
|
-
officeCards.forEach((card, index) => {
|
|
59
|
-
const region = card.getAttribute('region');
|
|
60
|
-
const country = card.getAttribute('country');
|
|
61
|
-
if (region && country) {
|
|
62
|
-
this.locations.push({ id: index, region, country });
|
|
63
|
-
}
|
|
64
|
-
});
|
|
65
|
-
// Extract unique regions from locations array
|
|
66
|
-
const uniqueRegions = Array.from(new Set(this.locations.map(location => location.region)));
|
|
67
|
-
// Save unique regions to regions array
|
|
68
|
-
this.regions = uniqueRegions;
|
|
69
|
-
this.showFirstMap();
|
|
70
|
-
}
|
|
71
|
-
toggleCountryList(region) {
|
|
72
|
-
// Toggle open/close state for the clicked region
|
|
73
|
-
if (this.openRegion === region) {
|
|
74
|
-
// If the clicked region is already open, close it
|
|
75
|
-
this.openRegion = '';
|
|
76
|
-
}
|
|
77
|
-
else {
|
|
78
|
-
// Close any previously open region and open the clicked region
|
|
79
|
-
this.openRegion = region;
|
|
80
|
-
}
|
|
81
|
-
}
|
|
82
|
-
getCheckboxes(region) {
|
|
83
|
-
return this.hostEl.shadowRoot.querySelectorAll(`.country-list #region-list-${region.replace(/\s+/g, '')} input[type="checkbox"]`);
|
|
84
|
-
}
|
|
85
|
-
selectedCheckboxes() {
|
|
86
|
-
const selectedOptions = Array.from(this.hostEl.shadowRoot.querySelectorAll('.country-list input[type="checkbox"]:checked'))
|
|
87
|
-
.map((checkbox) => checkbox.value);
|
|
88
|
-
return selectedOptions;
|
|
89
|
-
}
|
|
90
|
-
updateOfficeList() {
|
|
91
|
-
const selectedOptions = this.selectedCheckboxes();
|
|
92
|
-
const officeCards = document.querySelectorAll('ptc-office-location-card');
|
|
93
|
-
officeCards.forEach((card) => {
|
|
94
|
-
const region = card.getAttribute('region');
|
|
95
|
-
const country = card.getAttribute('country');
|
|
96
|
-
// Hide show checboxes
|
|
97
|
-
if (selectedOptions.length > 0) {
|
|
98
|
-
if (selectedOptions.includes(region) || selectedOptions.includes(country)) {
|
|
99
|
-
card.style.display = "block";
|
|
100
|
-
}
|
|
101
|
-
else {
|
|
102
|
-
card.style.display = "none";
|
|
103
|
-
}
|
|
104
|
-
}
|
|
105
|
-
else {
|
|
106
|
-
card.style.display = "block";
|
|
107
|
-
}
|
|
108
|
-
});
|
|
109
|
-
this.showFirstMap();
|
|
110
|
-
}
|
|
111
|
-
applyFilter(region) {
|
|
112
|
-
this.updateOfficeList();
|
|
113
|
-
this.toggleCountryList(region);
|
|
114
|
-
}
|
|
115
|
-
clearFilter(region) {
|
|
116
|
-
const checkboxes = this.getCheckboxes(region);
|
|
117
|
-
const regionWrap = this.hostEl.shadowRoot.querySelector(`#region-wrap-${region.replace(/\s+/g, '')}`);
|
|
118
|
-
checkboxes.forEach((checkbox) => {
|
|
119
|
-
checkbox.checked = false;
|
|
120
|
-
});
|
|
121
|
-
regionWrap.classList.remove('selected');
|
|
122
|
-
this.updateOfficeList();
|
|
123
|
-
this.toggleCountryList(region);
|
|
124
|
-
}
|
|
125
|
-
updateCheckboxStatus(region, e) {
|
|
126
|
-
const regionWrap = this.hostEl.shadowRoot.querySelector(`#region-wrap-${region.replace(/\s+/g, '')}`);
|
|
127
|
-
const checkboxes = this.getCheckboxes(region);
|
|
128
|
-
const isAllRegionsCheckboxClicked = e.target.id === `all-regions-${region.replace(/\s+/g, '')}`;
|
|
129
|
-
let anyCheckboxSelected = false;
|
|
130
|
-
checkboxes.forEach((checkbox) => {
|
|
131
|
-
if (isAllRegionsCheckboxClicked) {
|
|
132
|
-
checkbox.checked = checkbox.classList.contains('all-region-label') ? e.target.checked : false;
|
|
133
|
-
}
|
|
134
|
-
else if (checkbox.classList.contains('all-region-label')) {
|
|
135
|
-
checkbox.checked = false;
|
|
136
|
-
}
|
|
137
|
-
if (checkbox.checked) {
|
|
138
|
-
anyCheckboxSelected = true;
|
|
139
|
-
}
|
|
140
|
-
});
|
|
141
|
-
regionWrap.classList.toggle('selected', anyCheckboxSelected);
|
|
142
|
-
}
|
|
143
|
-
updateSelectedClass(region) {
|
|
144
|
-
this.fadeInWrapper();
|
|
145
|
-
const regionWrap = this.hostEl.shadowRoot.querySelector(`#region-wrap-${region.replace(/\s+/g, '')}`);
|
|
146
|
-
const checkboxes = this.getCheckboxes(region);
|
|
147
|
-
let isAllRegionSelected;
|
|
148
|
-
checkboxes.forEach((checkbox) => {
|
|
149
|
-
if (!checkbox.classList.contains('all-region-label')) {
|
|
150
|
-
checkbox.checked = false;
|
|
151
|
-
}
|
|
152
|
-
if (checkbox.classList.contains('all-region-label')) {
|
|
153
|
-
checkbox.checked = !checkbox.checked;
|
|
154
|
-
isAllRegionSelected = checkbox.checked;
|
|
155
|
-
}
|
|
156
|
-
});
|
|
157
|
-
regionWrap.classList.toggle('selected', isAllRegionSelected);
|
|
158
|
-
this.updateOfficeList();
|
|
159
|
-
this.toggleCountryList('');
|
|
160
|
-
}
|
|
161
|
-
fadeInWrapper() {
|
|
162
|
-
const ele = this.hostEl.shadowRoot.querySelector('.office-location-list-wrapper');
|
|
163
|
-
ele.classList.add('updating');
|
|
164
|
-
// Listen for transitionend event to remove the class after the transition completes
|
|
165
|
-
ele.addEventListener('transitionend', () => {
|
|
166
|
-
ele.classList.remove('updating');
|
|
167
|
-
}, { once: true });
|
|
168
|
-
}
|
|
169
|
-
// mobile functions
|
|
170
|
-
openFilterModal() {
|
|
171
|
-
const modal = this.hostEl.shadowRoot.querySelector('ptc-modal');
|
|
172
|
-
modal.show = true;
|
|
173
|
-
}
|
|
174
|
-
clearFiltersMobile() {
|
|
175
|
-
const allChecboxes = this.hostEl.shadowRoot.querySelectorAll(`input[type=checkbox]`);
|
|
176
|
-
allChecboxes.forEach((checkbox) => {
|
|
177
|
-
checkbox.checked = false;
|
|
178
|
-
});
|
|
179
|
-
this.updateOfficeList();
|
|
180
|
-
const modal = this.hostEl.shadowRoot.querySelector('ptc-modal');
|
|
181
|
-
modal.show = false;
|
|
182
|
-
}
|
|
183
|
-
applyFilterMobile() {
|
|
184
|
-
this.updateOfficeList();
|
|
185
|
-
const modal = this.hostEl.shadowRoot.querySelector('ptc-modal');
|
|
186
|
-
modal.show = false;
|
|
187
|
-
}
|
|
188
|
-
renderCountrylist(region) {
|
|
189
|
-
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' }))), this.locations
|
|
190
|
-
.filter(location => location.region === region)
|
|
191
|
-
.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' })))))));
|
|
192
|
-
}
|
|
193
|
-
toggleMap() {
|
|
194
|
-
this.showMap = !this.showMap;
|
|
195
|
-
}
|
|
196
|
-
showFirstMap() {
|
|
197
|
-
const nodeList = document.querySelectorAll('ptc-office-location-card');
|
|
198
|
-
const elementsArray = Array.from(nodeList);
|
|
199
|
-
const filteredElements = elementsArray.filter(element => {
|
|
200
|
-
return element.style.display === "" || element.style.display === 'block';
|
|
201
|
-
});
|
|
202
|
-
const firstMatchingElement = filteredElements.length > 0 ? filteredElements[0] : null;
|
|
203
|
-
this.address = firstMatchingElement.getAttribute('address');
|
|
204
|
-
}
|
|
205
|
-
render() {
|
|
206
|
-
const classMap = this.getCssClassMap();
|
|
207
|
-
return (index.h(index.Host, null, !this.isMobile &&
|
|
208
|
-
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 : showMapIcon.showMapSVG }), index.h("span", null, this.showMap ? 'Hide Map' : 'Show Map', " "))), this.isMobile &&
|
|
209
|
-
index.h("button", { class: "filter-cta", onClick: () => { this.openFilterModal(); } }, " ", index.h("span", { class: "svg-close", innerHTML: filterSVG }), "Filters"), this.isMobile &&
|
|
210
|
-
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 &&
|
|
211
|
-
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}` })))));
|
|
212
|
-
}
|
|
213
|
-
getCssClassMap() {
|
|
214
|
-
return {
|
|
215
|
-
['office-location-list-wrapper']: true,
|
|
216
|
-
['showing-map']: this.showMap
|
|
217
|
-
};
|
|
218
|
-
}
|
|
219
|
-
get hostEl() { return index.getElement(this); }
|
|
220
|
-
};
|
|
221
|
-
PtcOfficeLocations.style = ptcOfficeLocationsCss;
|
|
222
|
-
|
|
223
|
-
exports.ptc_office_locations = PtcOfficeLocations;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
const showMapSVG = `<svg width="16" height="20" viewBox="0 0 16 20" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
4
|
-
<path fill-rule="evenodd" clip-rule="evenodd"
|
|
5
|
-
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"
|
|
6
|
-
fill="#40434A" />
|
|
7
|
-
</svg>
|
|
8
|
-
`;
|
|
9
|
-
|
|
10
|
-
exports.showMapSVG = showMapSVG;
|
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
import { r as registerInstance, a as getAssetPath, h, H as Host } from './index-abb9f744.js';
|
|
2
|
-
|
|
3
|
-
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}";
|
|
4
|
-
|
|
5
|
-
const IconAsset = class {
|
|
6
|
-
constructor(hostRef) {
|
|
7
|
-
registerInstance(this, hostRef);
|
|
8
|
-
this.regularSprite = getAssetPath('./media/regular.svg');
|
|
9
|
-
this.solidSprite = getAssetPath('./media/solid.svg');
|
|
10
|
-
this.brandSprite = getAssetPath('./media/brands.svg');
|
|
11
|
-
this.ptcSprite = getAssetPath('./media/designer.svg');
|
|
12
|
-
this.name = undefined;
|
|
13
|
-
this.size = 'xx-small';
|
|
14
|
-
this.type = 'regular';
|
|
15
|
-
this.spin = '';
|
|
16
|
-
this.pulse = '';
|
|
17
|
-
this.color = 'default';
|
|
18
|
-
this.isMobileSelect = undefined;
|
|
19
|
-
this.injectedStyle = undefined;
|
|
20
|
-
}
|
|
21
|
-
render() {
|
|
22
|
-
const classMap = this.getCssClassMap();
|
|
23
|
-
if (this.type == 'brands') {
|
|
24
|
-
return (h(Host, null, this.injectedStyle && h("style", null, this.injectedStyle), h("svg", { class: classMap }, h("use", { href: `${this.brandSprite}#${this.name}` }))));
|
|
25
|
-
}
|
|
26
|
-
else if (this.type == 'solid') {
|
|
27
|
-
return (h(Host, null, this.injectedStyle && h("style", null, this.injectedStyle), h("svg", { class: classMap }, h("use", { href: `${this.solidSprite}#${this.name}` }))));
|
|
28
|
-
}
|
|
29
|
-
else if (this.type == 'ptc') {
|
|
30
|
-
return (h(Host, null, this.injectedStyle && h("style", null, this.injectedStyle), h("svg", { class: classMap }, h("use", { href: `${this.ptcSprite}#${this.name}` }))));
|
|
31
|
-
}
|
|
32
|
-
else {
|
|
33
|
-
return (h(Host, null, this.injectedStyle && h("style", null, this.injectedStyle), h("svg", { class: classMap }, h("use", { href: `${this.regularSprite}#${this.name}` }))));
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
getCssClassMap() {
|
|
37
|
-
return {
|
|
38
|
-
[this.size]: true,
|
|
39
|
-
[this.spin]: true,
|
|
40
|
-
[this.pulse]: true,
|
|
41
|
-
[this.color]: true,
|
|
42
|
-
['ismobileselect']: this.isMobileSelect ? true : false
|
|
43
|
-
};
|
|
44
|
-
}
|
|
45
|
-
static get assetsDirs() { return ["media"]; }
|
|
46
|
-
};
|
|
47
|
-
IconAsset.style = iconAssetCss;
|
|
48
|
-
|
|
49
|
-
export { IconAsset as icon_asset };
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
let ResponsiveBgVariables = {
|
|
2
|
-
envs: ['xs', 'sm', 'md', 'lg'],
|
|
3
|
-
selector: '.ptc-img',
|
|
4
|
-
interval: 250
|
|
5
|
-
};
|
|
6
|
-
let ResponsivePictureVariables = {
|
|
7
|
-
envs: ['xs', 'sm', 'md', 'lg'],
|
|
8
|
-
selector: '.ptc-picture',
|
|
9
|
-
interval: 250
|
|
10
|
-
};
|
|
11
|
-
|
|
12
|
-
export { ResponsivePictureVariables as R, ResponsiveBgVariables as a };
|