@ptcwebops/ptcw-design 6.4.7-beta → 6.4.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/blog-detail-content_2.cjs.entry.js +1 -1
- package/dist/cjs/blogs-search-section.cjs.entry.js +1 -4
- package/dist/cjs/bundle-example.cjs.entry.js +1 -1
- package/dist/cjs/buying-option-card.cjs.entry.js +1 -1
- package/dist/cjs/buying-option-cards-slider.cjs.entry.js +43 -1
- package/dist/cjs/{component-6a178a16.js → component-06dda623.js} +1494 -3305
- package/dist/cjs/component-5b5b6a98.js +1819 -0
- package/dist/cjs/dynamic-box-bundle.cjs.entry.js +1 -3
- package/dist/cjs/event-podcast-slider-example.cjs.entry.js +1 -1
- package/dist/cjs/featured-events-slider-example.cjs.entry.js +1 -1
- package/dist/cjs/featured-list.cjs.entry.js +1 -1
- package/dist/cjs/homepage-jumbotron.cjs.entry.js +1 -1
- package/dist/cjs/homepage-toggled-content.cjs.entry.js +2 -4
- package/dist/cjs/innovator-toggle-container.cjs.entry.js +1 -1
- package/dist/cjs/jumbotron-sub-menu.cjs.entry.js +1 -1
- package/dist/cjs/list-item.cjs.entry.js +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/ptc-announcement.cjs.entry.js +2 -3
- package/dist/cjs/ptc-back-to-top.cjs.entry.js +1 -1
- package/dist/cjs/ptc-background-video.cjs.entry.js +1 -1
- package/dist/cjs/ptc-bio-card.cjs.entry.js +1 -1
- package/dist/cjs/ptc-card-bottom_2.cjs.entry.js +1 -3
- package/dist/cjs/ptc-card_2.cjs.entry.js +5 -6
- package/dist/cjs/ptc-case-studies-slider.cjs.entry.js +1 -1
- package/dist/cjs/ptc-checkbox-group.cjs.entry.js +1 -1
- package/dist/cjs/ptc-checkbox.cjs.entry.js +1 -1
- package/dist/cjs/ptc-close-icon_2.cjs.entry.js +24 -24
- package/dist/cjs/ptc-collapse-list.cjs.entry.js +1 -1
- package/dist/cjs/ptc-data-lookup.cjs.entry.js +2 -1
- package/dist/cjs/ptc-ellipsis-dropdown.cjs.entry.js +1 -1
- package/dist/cjs/ptc-featured-list.cjs.entry.js +1 -1
- package/dist/cjs/ptc-filter-dropdown_4.cjs.entry.js +1 -1
- package/dist/cjs/ptc-filter-level-theater.cjs.entry.js +1 -1
- package/dist/cjs/ptc-footer.cjs.entry.js +1 -1
- package/dist/cjs/{ptc-form-checkbox_4.cjs.entry.js → ptc-form-checkbox_2.cjs.entry.js} +6 -724
- package/dist/cjs/ptc-form-radio-button.cjs.entry.js +1 -1
- package/dist/cjs/ptc-homepage-image-feature.cjs.entry.js +1 -1
- package/dist/cjs/ptc-icon-card-slider-example.cjs.entry.js +1 -1
- package/dist/cjs/ptc-icon-component.cjs.entry.js +1 -1
- package/dist/cjs/ptc-image-download-strip.cjs.entry.js +1 -1
- package/dist/cjs/ptc-img.cjs.entry.js +7 -87
- package/dist/cjs/ptc-info-tile.cjs.entry.js +1 -1
- package/dist/cjs/ptc-inline-cta.cjs.entry.js +1 -1
- package/dist/cjs/ptc-jumbotron.cjs.entry.js +5 -11
- package/dist/cjs/ptc-link.cjs.entry.js +1 -1
- package/dist/cjs/ptc-media-card.cjs.entry.js +1 -1
- package/dist/cjs/ptc-minimized-nav.cjs.entry.js +1 -1
- package/dist/cjs/ptc-modal-quiz.cjs.entry.js +2 -5
- package/dist/cjs/ptc-multi-select_2.cjs.entry.js +730 -0
- package/dist/cjs/ptc-nav-card.cjs.entry.js +1 -1
- package/dist/cjs/ptc-nav-submenu.cjs.entry.js +1 -1
- package/dist/cjs/ptc-office-location-card.cjs.entry.js +1 -1
- package/dist/cjs/ptc-office-locations.cjs.entry.js +1 -1
- package/dist/cjs/ptc-para.cjs.entry.js +1 -1
- package/dist/cjs/ptc-picture.cjs.entry.js +18 -1
- package/dist/cjs/ptc-podcast-card.cjs.entry.js +1 -1
- package/dist/cjs/ptc-preloader.cjs.entry.js +1 -1
- package/dist/cjs/ptc-previous-url.cjs.entry.js +2 -11
- package/dist/cjs/ptc-pricing-packaging-table.cjs.entry.js +10 -26
- package/dist/cjs/ptc-pricing-tabs.cjs.entry.js +2 -2
- package/dist/cjs/ptc-product-card.cjs.entry.js +1 -1
- package/dist/cjs/ptc-product-category.cjs.entry.js +1 -1
- package/dist/cjs/ptc-product-highlight-card.cjs.entry.js +1 -1
- package/dist/cjs/ptc-quantity-counter.cjs.entry.js +1 -1
- package/dist/cjs/ptc-readmore-char.cjs.entry.js +1 -1
- package/dist/cjs/ptc-readmore-v3.cjs.entry.js +1 -1
- package/dist/cjs/ptc-related-card-rail.cjs.entry.js +1 -1
- package/dist/cjs/ptc-search-field.cjs.entry.js +1 -1
- package/dist/cjs/ptc-slit-card.cjs.entry.js +1 -1
- package/dist/cjs/ptc-social-icons.cjs.entry.js +1 -1
- package/dist/cjs/ptc-subnav-v2.cjs.entry.js +430 -0
- package/dist/cjs/ptc-svg-btn.cjs.entry.js +1 -1
- package/dist/cjs/ptc-text-copy-with-background.cjs.entry.js +1 -1
- package/dist/cjs/ptc-theater-video-modal.cjs.entry.js +1 -1
- package/dist/cjs/ptc-tooltip-v2.cjs.entry.js +1 -1
- package/dist/cjs/ptc-value-led-speed-bump.cjs.entry.js +1 -1
- package/dist/cjs/ptc-white-paper.cjs.entry.js +9 -19
- package/dist/cjs/ptcw-design.cjs.js +1 -1
- package/dist/cjs/sequential-bundle-example.cjs.entry.js +1 -1
- package/dist/cjs/storefront-enhanced-product-list-alt-example.cjs.entry.js +1 -1
- package/dist/cjs/storefront-enhanced-product-list-example.cjs.entry.js +1 -1
- package/dist/collection/collection-manifest.json +1 -1
- package/dist/collection/components/buying-option-card/buying-option-card.css +11 -10
- package/dist/collection/components/buying-option-cards-slider/buying-option-cards-slider.css +25 -19
- package/dist/collection/components/buying-option-cards-slider/buying-option-cards-slider.js +42 -0
- package/dist/collection/components/dynamic-box-bundle/dynamic-box-bundle.js +1 -3
- package/dist/collection/components/icon-asset/media/designer-v6.0.7.svg +2 -30
- package/dist/collection/components/innovator-toggle-container/innovator-toggle-container.css +2 -25
- package/dist/collection/components/jumbotron-sub-menu/jumbotron-sub-menu.css +1 -0
- package/dist/collection/components/list-item/list-item.css +2 -1
- package/dist/collection/components/organism-bundles/blog-detail-content/blog-detail-content.css +1 -0
- package/dist/collection/components/organism-bundles/blogs-search-section/blogs-search-section.js +1 -4
- package/dist/collection/components/organism-bundles/bundle-example/bundle-example.css +1 -1
- package/dist/collection/components/organism-bundles/bundle-featured-list/featured-list.css +383 -263
- package/dist/collection/components/organism-bundles/bundle-featured-list/featured-list.js +1 -1
- package/dist/collection/components/organism-bundles/event-podcast-slider-example/event-podcast-slider-example.css +13 -17
- package/dist/collection/components/organism-bundles/featured-events-slider-example/featured-events-slider-example.css +13 -17
- package/dist/collection/components/organism-bundles/homepage-jumbotron/homepage-jumbotron.css +11 -16
- package/dist/collection/components/organism-bundles/homepage-toggled-content/homepage-toggled-content.css +2 -1
- package/dist/collection/components/organism-bundles/homepage-toggled-content/homepage-toggled-content.js +1 -3
- package/dist/collection/components/organism-bundles/ptc-icon-card-slider-example/ptc-icon-card-slider-example.css +11 -16
- package/dist/collection/components/organism-bundles/sequential-bundle-example/sequential-bundle-example.css +11 -16
- package/dist/collection/components/organism-bundles/storefront-enhanced-product-list-example/storefront-enhanced-product-list-example.css +12 -16
- package/dist/collection/components/ptc-announcement/ptc-announcement.css +0 -2
- package/dist/collection/components/ptc-announcement/ptc-announcement.js +1 -2
- package/dist/collection/components/ptc-back-to-top/ptc-back-to-top.css +1 -0
- package/dist/collection/components/ptc-background-video/ptc-background-video.css +8 -4
- package/dist/collection/components/ptc-bio-card/ptc-bio-card.css +4 -26
- package/dist/collection/components/ptc-card/ptc-card.css +4 -40
- package/dist/collection/components/ptc-card-wrapper/ptc-card-wrapper.js +1 -3
- package/dist/collection/components/ptc-case-studies-slider/ptc-case-studies-slider.css +11 -40
- package/dist/collection/components/ptc-checkbox/ptc-checkbox.css +3 -1
- package/dist/collection/components/ptc-checkbox-group/ptc-checkbox-group.css +3 -1
- package/dist/collection/components/ptc-collapse-list/ptc-collapse-list.css +3 -0
- package/dist/collection/components/ptc-ellipsis-dropdown/ptc-ellipsis-dropdown.css +2 -0
- package/dist/collection/components/ptc-featured-list/ptc-featured-list.css +0 -24
- package/dist/collection/components/ptc-filter-dropdown/ptc-filter-dropdown.css +3 -4
- package/dist/collection/components/ptc-filter-level-theater/ptc-filter-level-theater.css +1 -29
- package/dist/collection/components/ptc-footer/ptc-footer-v2.css +3 -0
- package/dist/collection/components/ptc-form-radio-button/ptc-form-radio-button.css +2 -0
- package/dist/collection/components/ptc-homepage-image-feature/ptc-homepage-image-feature.css +1 -0
- package/dist/collection/components/ptc-icon-component/ptc-icon-component.css +11 -16
- package/dist/collection/components/ptc-image-download-strip/ptc-image-download-strip.css +0 -1
- package/dist/collection/components/ptc-img/ptc-img.css +0 -76
- package/dist/collection/components/ptc-img/ptc-img.js +7 -132
- package/dist/collection/components/ptc-info-tile/ptc-info-tile.css +2 -1
- package/dist/collection/components/ptc-inline-cta/ptc-inline-cta.css +3 -0
- package/dist/collection/components/ptc-jumbotron/ptc-jumbotron.css +38 -38
- package/dist/collection/components/ptc-jumbotron/ptc-jumbotron.js +4 -28
- package/dist/collection/components/ptc-link/ptc-link.css +2 -1
- package/dist/collection/components/ptc-media-card/ptc-media-card.css +4 -2
- package/dist/collection/components/ptc-minimized-nav/ptc-minimized-nav.css +0 -6
- package/dist/collection/components/ptc-modal/ptc-modal.css +2 -5
- package/dist/collection/components/ptc-modal/ptc-modal.js +25 -25
- package/dist/collection/components/ptc-modal-quiz/ptc-modal-quiz.css +2 -0
- package/dist/collection/components/ptc-modal-quiz/ptc-modal-quiz.js +1 -4
- package/dist/collection/components/ptc-multi-select/ptc-multi-select.css +4 -1
- package/dist/collection/components/ptc-nav-card/ptc-nav-card.css +0 -34
- package/dist/collection/components/ptc-office-location-card/ptc-office-location-card.css +2 -0
- package/dist/collection/components/ptc-office-locations/ptc-office-locations.css +3 -3
- package/dist/collection/components/ptc-para/ptc-para.css +0 -3
- package/dist/collection/components/ptc-para/ptc-para.js +2 -2
- package/dist/collection/components/ptc-picture/ptc-picture.css +14 -7
- package/dist/collection/components/ptc-picture/ptc-picture.js +40 -0
- package/dist/collection/components/ptc-podcast-card/ptc-podcast-card.css +0 -49
- package/dist/collection/components/ptc-preloader/ptc-preloader.css +111 -147
- package/dist/collection/components/ptc-preloader/ptc-preloader.js +1 -1
- package/dist/collection/components/ptc-preloader-section/ptc-preloader-section.css +21 -9
- package/dist/collection/components/ptc-preloader-section/ptc-preloader-section.js +3 -4
- package/dist/collection/components/ptc-previous-url/ptc-previous-url.css +0 -16
- package/dist/collection/components/ptc-previous-url/ptc-previous-url.js +1 -28
- package/dist/collection/components/ptc-pricing-packaging-table/ptc-pricing-packaging-table.css +1 -0
- package/dist/collection/components/ptc-pricing-packaging-table/ptc-pricing-packaging-table.js +9 -25
- package/dist/collection/components/ptc-pricing-tabs/ptc-pricing-tabs.css +28 -12
- package/dist/collection/components/ptc-pricing-tabs/ptc-pricing-tabs.js +1 -1
- package/dist/collection/components/ptc-product-card/ptc-product-card.css +0 -24
- package/dist/collection/components/ptc-product-category/ptc-product-category.css +0 -24
- package/dist/collection/components/ptc-product-highlight-card/ptc-product-highlight-card.css +0 -24
- package/dist/collection/components/ptc-quantity-counter/ptc-quantity-counter.css +3 -1
- package/dist/collection/components/ptc-readmore-char/ptc-readmore-char.css +0 -24
- package/dist/collection/components/ptc-readmore-v3/ptc-readmore-v3.css +0 -24
- package/dist/collection/components/ptc-related-card-rail/ptc-related-card-rail.css +2 -1
- package/dist/collection/components/ptc-search-field/ptc-search-field.css +13 -0
- package/dist/collection/components/ptc-seo-title/ptc-seo-title.js +3 -3
- package/dist/collection/components/ptc-slit-card/ptc-slit-card.css +0 -8
- package/dist/collection/components/ptc-social-icons/ptc-social-icons.css +1 -0
- package/dist/collection/components/ptc-subnav-v2/ptc-subnav-v2.css +396 -0
- package/dist/collection/components/ptc-subnav-v2/ptc-subnav-v2.js +483 -0
- package/dist/collection/components/ptc-svg-btn/ptc-svg-btn.css +0 -16
- package/dist/collection/components/ptc-text-copy-with-background/ptc-text-copy-with-background.css +0 -2
- package/dist/collection/components/ptc-textfield/ptc-textfield.css +11 -1
- package/dist/collection/components/ptc-textfield/ptc-textfield.js +5 -3
- package/dist/collection/components/ptc-theater-video-modal/ptc-theater-video-modal.css +1 -25
- package/dist/collection/components/ptc-tooltip-v2/ptc-tooltip-v2.css +1 -24
- package/dist/collection/components/ptc-value-led-speed-bump/ptc-value-led-speed-bump.css +0 -24
- package/dist/collection/components/ptc-white-paper/ptc-white-paper.css +3 -54
- package/dist/collection/components/ptc-white-paper/ptc-white-paper.js +8 -18
- package/dist/collection/components/subnav/ptc-nav-submenu/ptc-nav-submenu.css +2 -1
- package/dist/collection/stories/organisms/ptc/Buying Options Cards Slider/preview.stories.js +7 -6
- package/dist/collection/stories/organisms/ptc/Subnav New/preview.stories.js +360 -0
- package/dist/custom-elements/index.d.ts +6 -6
- package/dist/custom-elements/index.js +629 -381
- package/dist/esm/blog-detail-content_2.entry.js +2 -2
- package/dist/esm/blog-detail-layout.entry.js +1 -1
- package/dist/esm/blogs-search-section.entry.js +2 -5
- package/dist/esm/bundle-example.entry.js +1 -1
- package/dist/esm/buying-option-card.entry.js +1 -1
- package/dist/esm/buying-option-cards-slider.entry.js +43 -1
- package/dist/esm/{component-80f298b4.js → component-274da230.js} +1482 -3281
- package/dist/esm/component-341e4eaa.js +1802 -0
- package/dist/esm/dynamic-box-bundle.entry.js +1 -3
- package/dist/esm/event-podcast-slider-example.entry.js +1 -1
- package/dist/esm/featured-events-slider-example.entry.js +1 -1
- package/dist/esm/featured-list.entry.js +1 -1
- package/dist/esm/homepage-jumbotron.entry.js +2 -2
- package/dist/esm/homepage-toggled-content.entry.js +3 -5
- package/dist/esm/innovator-toggle-container.entry.js +2 -2
- package/dist/esm/jumbotron-sub-menu.entry.js +1 -1
- package/dist/esm/list-item.entry.js +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/esm/most-popular-news.entry.js +1 -1
- package/dist/esm/my-component.entry.js +1 -1
- package/dist/esm/ptc-accordion-item.entry.js +1 -1
- package/dist/esm/ptc-announcement.entry.js +2 -3
- package/dist/esm/ptc-back-to-top.entry.js +1 -1
- package/dist/esm/ptc-background-video.entry.js +2 -2
- package/dist/esm/ptc-bio-card.entry.js +1 -1
- package/dist/esm/ptc-button.entry.js +1 -1
- package/dist/esm/ptc-card-bottom_2.entry.js +1 -3
- package/dist/esm/ptc-card_2.entry.js +5 -6
- package/dist/esm/ptc-case-studies-slider.entry.js +1 -1
- package/dist/esm/ptc-checkbox-group.entry.js +1 -1
- package/dist/esm/ptc-checkbox.entry.js +1 -1
- package/dist/esm/ptc-close-icon_2.entry.js +24 -24
- package/dist/esm/ptc-collapse-list.entry.js +2 -2
- package/dist/esm/ptc-data-lookup.entry.js +2 -1
- package/dist/esm/ptc-ellipsis-dropdown.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-footer.entry.js +1 -1
- package/dist/esm/{ptc-form-checkbox_4.entry.js → ptc-form-checkbox_2.entry.js} +8 -724
- package/dist/esm/ptc-form-radio-button.entry.js +1 -1
- package/dist/esm/ptc-homepage-image-feature.entry.js +2 -2
- package/dist/esm/ptc-homepage-video-background.entry.js +1 -1
- package/dist/esm/ptc-icon-card-slider-example.entry.js +1 -1
- package/dist/esm/ptc-icon-card.entry.js +1 -1
- package/dist/esm/ptc-icon-component.entry.js +1 -1
- package/dist/esm/ptc-image-download-strip.entry.js +1 -1
- package/dist/esm/ptc-img.entry.js +7 -87
- package/dist/esm/ptc-info-tile.entry.js +1 -1
- package/dist/esm/ptc-inline-cta.entry.js +1 -1
- package/dist/esm/ptc-jumbotron.entry.js +5 -11
- package/dist/esm/ptc-link.entry.js +2 -2
- package/dist/esm/ptc-media-card.entry.js +2 -2
- package/dist/esm/ptc-minimized-nav.entry.js +1 -1
- package/dist/esm/ptc-modal-quiz.entry.js +2 -5
- package/dist/esm/ptc-multi-select_2.entry.js +725 -0
- package/dist/esm/ptc-nav-card.entry.js +1 -1
- package/dist/esm/ptc-nav-submenu.entry.js +1 -1
- package/dist/esm/ptc-office-location-card.entry.js +1 -1
- package/dist/esm/ptc-office-locations.entry.js +1 -1
- package/dist/esm/ptc-para.entry.js +2 -2
- package/dist/esm/ptc-picture.entry.js +18 -1
- package/dist/esm/ptc-podcast-card.entry.js +1 -1
- package/dist/esm/ptc-preloader.entry.js +1 -1
- package/dist/esm/ptc-previous-url.entry.js +2 -11
- package/dist/esm/ptc-pricing-packaging-table.entry.js +11 -27
- package/dist/esm/ptc-pricing-tabs.entry.js +3 -3
- 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-highlight-card.entry.js +1 -1
- package/dist/esm/ptc-quantity-counter.entry.js +1 -1
- package/dist/esm/ptc-readmore-char.entry.js +1 -1
- package/dist/esm/ptc-readmore-v3.entry.js +1 -1
- package/dist/esm/ptc-related-card-rail.entry.js +1 -1
- package/dist/esm/ptc-search-field.entry.js +1 -1
- package/dist/esm/ptc-slit-card.entry.js +1 -1
- package/dist/esm/ptc-social-icons-footer.entry.js +1 -1
- package/dist/esm/ptc-social-icons.entry.js +1 -1
- package/dist/esm/ptc-subnav-v2.entry.js +426 -0
- package/dist/esm/ptc-svg-btn.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-title.entry.js +1 -1
- package/dist/esm/ptc-tooltip-v2.entry.js +1 -1
- package/dist/esm/ptc-value-led-speed-bump.entry.js +1 -1
- package/dist/esm/ptc-white-paper.entry.js +9 -19
- package/dist/esm/ptcw-design.js +1 -1
- package/dist/esm/sequential-bundle-example.entry.js +1 -1
- package/dist/esm/storefront-enhanced-product-list-alt-example.entry.js +1 -1
- package/dist/esm/storefront-enhanced-product-list-example.entry.js +1 -1
- package/dist/esm/{utils-bdd0cc16.js → utils-a64ba942.js} +1 -1
- package/dist/ptcw-design/media/designer-v6.0.7.svg +2 -30
- package/dist/ptcw-design/p-009fbf1f.entry.js +1 -0
- package/dist/ptcw-design/p-00e21489.entry.js +1 -0
- package/dist/ptcw-design/p-09be9b46.entry.js +1 -0
- package/dist/ptcw-design/p-0a86d91a.entry.js +1 -0
- package/dist/ptcw-design/{p-e5369c4d.entry.js → p-0c914932.entry.js} +1 -1
- package/dist/ptcw-design/{p-4c89d63d.entry.js → p-0df868d2.entry.js} +1 -1
- package/dist/ptcw-design/p-100a7cc8.entry.js +1 -0
- package/dist/ptcw-design/{p-bf8fbba7.entry.js → p-18d699f0.entry.js} +1 -1
- package/dist/ptcw-design/p-1a853854.entry.js +1 -0
- package/dist/ptcw-design/p-1c63c812.entry.js +1 -0
- package/dist/ptcw-design/p-1d789cd7.entry.js +1 -0
- package/dist/ptcw-design/{p-43a8ccc3.entry.js → p-1e32a493.entry.js} +1 -1
- package/dist/ptcw-design/p-1f0daed2.entry.js +1 -0
- package/dist/ptcw-design/p-1f15239e.entry.js +1 -0
- package/dist/ptcw-design/p-2270dbd2.entry.js +1 -0
- package/dist/ptcw-design/{p-c7e948b2.js → p-22cf00e7.js} +1 -1
- package/dist/ptcw-design/{p-db1dcce0.entry.js → p-23cb5b5b.entry.js} +1 -1
- package/dist/ptcw-design/{p-ddb898c7.entry.js → p-2a22123e.entry.js} +1 -1
- package/dist/ptcw-design/{p-7235425a.entry.js → p-2a3c8a30.entry.js} +1 -1
- package/dist/ptcw-design/{p-04ff81ef.entry.js → p-2b08a37d.entry.js} +1 -1
- package/dist/ptcw-design/p-2bfd8371.entry.js +1 -0
- package/dist/ptcw-design/p-2cd2a8bd.entry.js +1 -0
- package/dist/ptcw-design/p-2e6e2a9d.entry.js +1 -0
- package/dist/ptcw-design/{p-26b70120.entry.js → p-2f21b69b.entry.js} +1 -1
- package/dist/ptcw-design/p-2f4efddd.entry.js +68 -0
- package/dist/ptcw-design/{p-4703e417.entry.js → p-34374e4d.entry.js} +1 -1
- package/dist/ptcw-design/p-3e4861a2.entry.js +1 -0
- package/dist/ptcw-design/p-3ed4a7ed.entry.js +1 -0
- package/dist/ptcw-design/{p-9c6cad16.entry.js → p-456c5cbb.entry.js} +1 -1
- package/dist/ptcw-design/{p-0e63560d.entry.js → p-46b47ed7.entry.js} +1 -1
- package/dist/ptcw-design/p-46c518c8.entry.js +1 -0
- package/dist/ptcw-design/p-50569afd.entry.js +1 -0
- package/dist/ptcw-design/p-506dac1f.entry.js +1 -0
- package/dist/ptcw-design/{p-e3b1af2b.entry.js → p-567535fb.entry.js} +1 -1
- package/dist/ptcw-design/p-56a73429.entry.js +1 -0
- package/dist/ptcw-design/{p-4f0b8ca2.entry.js → p-575861b3.entry.js} +1 -1
- package/dist/ptcw-design/p-5af60742.entry.js +1 -0
- package/dist/ptcw-design/{p-c3b27836.entry.js → p-5cf5b9f8.entry.js} +1 -1
- package/dist/ptcw-design/{p-f61a3476.entry.js → p-5dd538c4.entry.js} +1 -1
- package/dist/ptcw-design/p-6115c067.entry.js +1 -0
- package/dist/ptcw-design/{p-3a40c41f.entry.js → p-614b66d8.entry.js} +1 -1
- package/dist/ptcw-design/{p-674acf91.entry.js → p-62e3cd51.entry.js} +1 -1
- package/dist/ptcw-design/p-6ac4cfab.entry.js +1 -0
- package/dist/ptcw-design/p-74f6bb23.entry.js +1 -0
- package/dist/ptcw-design/p-7714bbaf.entry.js +1 -0
- package/dist/ptcw-design/{p-fb790fa9.entry.js → p-7834cfee.entry.js} +1 -1
- package/dist/ptcw-design/{p-e5e1e8fb.entry.js → p-82f766d2.entry.js} +1 -1
- package/dist/ptcw-design/{p-4d11aafc.entry.js → p-84c15835.entry.js} +1 -1
- package/dist/ptcw-design/p-850a6205.entry.js +1 -0
- package/dist/ptcw-design/p-8aeb229a.entry.js +1 -0
- package/dist/ptcw-design/{p-769b5691.entry.js → p-9063956c.entry.js} +1 -1
- package/dist/ptcw-design/{p-9e2fd13c.entry.js → p-927373d4.entry.js} +1 -1
- package/dist/ptcw-design/{p-3cb011c9.entry.js → p-92ad78c5.entry.js} +1 -1
- package/dist/ptcw-design/{p-89177041.entry.js → p-92e76318.entry.js} +1 -1
- package/dist/ptcw-design/p-9493dfa0.entry.js +1 -0
- package/dist/ptcw-design/p-95efe7ee.entry.js +1 -0
- package/dist/ptcw-design/{p-5793ca02.entry.js → p-9ca635fa.entry.js} +1 -1
- package/dist/ptcw-design/{p-0a214a22.entry.js → p-9efa8199.entry.js} +1 -1
- package/dist/ptcw-design/{p-3ca1b46e.entry.js → p-9fb21bdf.entry.js} +1 -1
- package/dist/ptcw-design/p-a8304a3e.entry.js +1 -0
- package/dist/ptcw-design/p-a993c0a6.entry.js +1 -0
- package/dist/ptcw-design/p-ab4906a7.entry.js +1 -0
- package/dist/ptcw-design/{p-77cad16c.entry.js → p-ac7b2779.entry.js} +1 -1
- package/dist/ptcw-design/p-b19cda95.entry.js +1 -0
- package/dist/ptcw-design/p-b44f4fb1.entry.js +1 -0
- package/dist/ptcw-design/p-b89136c6.entry.js +1 -0
- package/dist/ptcw-design/{p-9da57f76.entry.js → p-bc31938f.entry.js} +1 -1
- package/dist/ptcw-design/p-bd3d71f1.entry.js +1 -0
- package/dist/ptcw-design/p-be533f0d.js +134 -0
- package/dist/ptcw-design/{p-b209c116.entry.js → p-c061b32d.entry.js} +1 -1
- package/dist/ptcw-design/p-c1513c3f.js +203 -0
- package/dist/ptcw-design/{p-3cfe0126.entry.js → p-c160bda4.entry.js} +1 -1
- package/dist/ptcw-design/{p-f731fc96.entry.js → p-c4674bc8.entry.js} +1 -1
- package/dist/ptcw-design/p-cc652ebe.entry.js +1 -0
- package/dist/ptcw-design/p-cc7d5eb7.entry.js +1 -0
- package/dist/ptcw-design/p-d391c01b.entry.js +1 -0
- package/dist/ptcw-design/{p-8c49d736.entry.js → p-d8b2466d.entry.js} +1 -1
- package/dist/ptcw-design/{p-4cee12b8.entry.js → p-e0e87d61.entry.js} +1 -1
- package/dist/ptcw-design/p-e7220c36.entry.js +1 -0
- package/dist/ptcw-design/p-e73a1a0b.entry.js +1 -0
- package/dist/ptcw-design/p-e7c00e48.entry.js +1 -0
- package/dist/ptcw-design/p-ec70069f.entry.js +1 -0
- package/dist/ptcw-design/p-ef897c5a.entry.js +1 -0
- package/dist/ptcw-design/p-f0958536.entry.js +1 -0
- package/dist/ptcw-design/{p-5a2ed8fb.entry.js → p-f2675bb0.entry.js} +1 -1
- package/dist/ptcw-design/p-f3d3c161.entry.js +1 -0
- package/dist/ptcw-design/{p-258963da.entry.js → p-ff66587b.entry.js} +1 -1
- package/dist/ptcw-design/ptcw-design.css +3 -4
- package/dist/ptcw-design/ptcw-design.esm.js +1 -1
- package/dist/types/components/buying-option-cards-slider/buying-option-cards-slider.d.ts +1 -0
- package/dist/types/components/ptc-img/ptc-img.d.ts +1 -29
- package/dist/types/components/ptc-jumbotron/ptc-jumbotron.d.ts +0 -4
- package/dist/types/components/ptc-modal/ptc-modal.d.ts +1 -1
- package/dist/types/components/ptc-para/ptc-para.d.ts +1 -1
- package/dist/types/components/ptc-picture/ptc-picture.d.ts +2 -0
- package/dist/types/components/ptc-previous-url/ptc-previous-url.d.ts +0 -2
- package/dist/types/components/ptc-subnav-v2/ptc-subnav-v2.d.ts +55 -0
- package/dist/types/components.d.ts +84 -113
- package/package.json +101 -98
- package/readme.md +19 -23
- package/dist/cjs/modal-form-example.cjs.entry.js +0 -109
- package/dist/collection/components/organism-bundles/form/modal-from-example/modal-form-example.css +0 -26
- package/dist/collection/components/organism-bundles/form/modal-from-example/modal-form-example.js +0 -114
- package/dist/collection/stories/organisms/eSupport/CaseTracker/preview.stories.js +0 -45
- package/dist/collection/stories/organisms/eSupport/SupportArticle/preview.stories.js +0 -47
- package/dist/collection/stories/organisms/eSupport/SupportPage/preview.stories.js +0 -157
- package/dist/esm/modal-form-example.entry.js +0 -105
- package/dist/ptcw-design/p-056748b3.entry.js +0 -1
- package/dist/ptcw-design/p-0a7cc9e4.entry.js +0 -1
- package/dist/ptcw-design/p-1c52250d.entry.js +0 -1
- package/dist/ptcw-design/p-1e3bf09c.entry.js +0 -1
- package/dist/ptcw-design/p-214d9da6.entry.js +0 -1
- package/dist/ptcw-design/p-2670ac97.entry.js +0 -1
- package/dist/ptcw-design/p-2afea59e.entry.js +0 -1
- package/dist/ptcw-design/p-312c41b8.entry.js +0 -1
- package/dist/ptcw-design/p-349f43d5.entry.js +0 -1
- package/dist/ptcw-design/p-36abe396.entry.js +0 -1
- package/dist/ptcw-design/p-36ee2e12.entry.js +0 -1
- package/dist/ptcw-design/p-390c0dee.entry.js +0 -1
- package/dist/ptcw-design/p-464d8e22.entry.js +0 -1
- package/dist/ptcw-design/p-50308f02.entry.js +0 -1
- package/dist/ptcw-design/p-5a8e7557.entry.js +0 -1
- package/dist/ptcw-design/p-5c81c755.entry.js +0 -1
- package/dist/ptcw-design/p-63b3bcbe.entry.js +0 -1
- package/dist/ptcw-design/p-656e8773.entry.js +0 -1
- package/dist/ptcw-design/p-672a349f.js +0 -336
- package/dist/ptcw-design/p-684ef1e5.entry.js +0 -1
- package/dist/ptcw-design/p-6e8ed2ee.entry.js +0 -1
- package/dist/ptcw-design/p-6f9f55b3.entry.js +0 -1
- package/dist/ptcw-design/p-7218fe2c.entry.js +0 -1
- package/dist/ptcw-design/p-74097f89.entry.js +0 -1
- package/dist/ptcw-design/p-761a31f8.entry.js +0 -1
- package/dist/ptcw-design/p-799afee5.entry.js +0 -1
- package/dist/ptcw-design/p-7a3e9ecd.entry.js +0 -1
- package/dist/ptcw-design/p-81bcde85.entry.js +0 -1
- package/dist/ptcw-design/p-8fb48953.entry.js +0 -1
- package/dist/ptcw-design/p-94a76216.entry.js +0 -68
- package/dist/ptcw-design/p-95187918.entry.js +0 -1
- package/dist/ptcw-design/p-ac766cb3.entry.js +0 -1
- package/dist/ptcw-design/p-af831c13.entry.js +0 -1
- package/dist/ptcw-design/p-b533cd17.entry.js +0 -1
- package/dist/ptcw-design/p-b684ca9d.entry.js +0 -1
- package/dist/ptcw-design/p-c09a8288.entry.js +0 -1
- package/dist/ptcw-design/p-cb0e3ec2.entry.js +0 -1
- package/dist/ptcw-design/p-ce121fb3.entry.js +0 -1
- package/dist/ptcw-design/p-d2cc0297.entry.js +0 -1
- package/dist/ptcw-design/p-d9df1a16.entry.js +0 -1
- package/dist/ptcw-design/p-da02913d.entry.js +0 -1
- package/dist/ptcw-design/p-dbf8da08.entry.js +0 -1
- package/dist/ptcw-design/p-de960790.entry.js +0 -1
- package/dist/ptcw-design/p-e03d7060.entry.js +0 -1
- package/dist/ptcw-design/p-e4eb925f.entry.js +0 -1
- package/dist/ptcw-design/p-e93714e9.entry.js +0 -1
- package/dist/ptcw-design/p-f57f32ee.entry.js +0 -1
- package/dist/types/components/organism-bundles/form/modal-from-example/modal-form-example.d.ts +0 -25
|
@@ -0,0 +1,426 @@
|
|
|
1
|
+
import { r as registerInstance, h, H as Host, g as getElement } from './index-c83db688.js';
|
|
2
|
+
|
|
3
|
+
const ptcSubnavV2Css = "h1,h2,h3,h4,h5,h6,p,ul,li,ptc-subnav,ptc-tab-list,ptc-link,ptc-square-card,.hyphenate-text,ptc-footer{word-break:break-word;hyphens:manual;-webkit-hyphens:manual;-moz-hyphens:manual;-ms-hyphens:manual}@supports (hyphenate-limit-chars: 12 3 3){h1,h2,h3,h4,h5,h6,p,ul,li,ptc-subnav,ptc-tab-list,ptc-link,ptc-square-card,.hyphenate-text,ptc-footer{hyphens:auto;-webkit-hyphenate-limit-before:3;-webkit-hyphenate-limit-after:3;hyphenate-limit-chars:12 3 3;hyphenate-limit-lines:2;hyphenate-limit-last:always;hyphenate-limit-zone:6%;-webkit-hyphens:auto;-webkit-hyphenate-limit-before:3;-webkit-hyphenate-limit-after:3;-webkit-hyphenate-limit-chars:12 3 3;-webkit-hyphenate-limit-lines:2;-moz-hyphens:auto;-moz-hyphenate-limit-chars:12 3 3;-moz-hyphenate-limit-lines:2;-ms-hyphens:auto;-ms-hyphenate-limit-chars:12 3 3;-ms-hyphenate-limit-lines:2}}:host .mobile-dropdown-container .mobile-dropdown-button,:host .subnav-menu-left .overflow-menu-container .overflow-button,:host .subnav-menu-left ul.desktop-menu li a{color:var(--color-gray-07);text-decoration:none;padding:8px 12px;font-size:var(--ptc-font-size-xx-small);font-weight:var(--ptc-font-weight-bold);line-height:var(--ptc-line-height-densest);display:flex;align-items:center;position:relative;border-bottom:3px solid transparent;height:100%;box-sizing:border-box}:host .subnav-menu-left .overflow-menu-container .overflow-dropdown{position:absolute;top:100%;right:0;background:var(--color-white);border-radius:var(--ptc-border-radius-standard);box-shadow:var(--ptc-shadow-x-large);min-width:200px;z-index:1001;padding:14px 0;margin-top:-4px;max-width:312px;width:-moz-max-content;width:max-content}:host .mobile-dropdown-container .mobile-dropdown li .mobile-dropdown-item,:host .subnav-menu-left .overflow-menu-container .overflow-dropdown a{display:block;padding:10px 32px 10px 24px;color:var(--color-gray-07);text-decoration:none;font-size:var(--ptc-font-size-xx-small);font-weight:var(--ptc-font-weight-bold);line-height:var(--ptc-line-height-densest);transition:all 0.2s ease;position:relative;border:none}:host{display:block;font-family:var(--ptc-font-latin);position:sticky;top:0;z-index:105;background-color:var(--color-standard-gray);box-shadow:var(--ptc-shadow-small)}:host .subnav-container{display:flex;flex-direction:row;justify-content:space-between;align-items:center;padding:0 24px;margin:0 auto;max-width:1200px;gap:24px}@media only screen and (min-width: 768px){:host .subnav-container{flex-wrap:wrap;gap:48px}}@media only screen and (min-width: 1200px){:host .subnav-container{padding:0;max-width:1136px}}@media only screen and (min-width: 1440px){:host .subnav-container{padding:0;max-width:1200px}}:host .subnav-container.full-width{justify-content:flex-start}:host .subnav-menu-left{display:flex;align-items:center;flex:1;align-self:stretch}@media only screen and (min-width: 768px){:host .subnav-menu-left{justify-content:flex-start}}:host .subnav-menu-left ul.desktop-menu{list-style:none;padding:0;margin:0;display:flex;align-items:center;justify-content:center;gap:4px;flex-wrap:wrap;align-self:stretch}@media only screen and (min-width: 768px){:host .subnav-menu-left ul.desktop-menu{justify-content:flex-start;gap:32px}}:host .subnav-menu-left ul.desktop-menu li{display:inline-block;height:100%}@media only screen and (min-width: 768px){:host .subnav-menu-left ul.desktop-menu li a{padding:20px 0}}:host .subnav-menu-left ul.desktop-menu li a:hover{color:var(--color-gray-10)}:host .subnav-menu-left ul.desktop-menu li a.active{color:var(--color-gray-10);border-bottom:3px solid var(--color-green-07)}:host .subnav-menu-left ul.desktop-menu li a:focus-visible{border-radius:var(--ptc-border-radius-standard);outline:5px solid var(--keyboard-nav-outline)}:host .subnav-menu-left .overflow-menu-container{position:relative;display:none}@media only screen and (min-width: 768px){:host .subnav-menu-left .overflow-menu-container{display:inline-block}}:host .subnav-menu-left .overflow-menu-container .overflow-button{background:none;border:none;padding:20px 0;cursor:pointer;justify-content:center;min-width:32px}:host .subnav-menu-left .overflow-menu-container .overflow-button:hover{color:var(--color-gray-10)}:host .subnav-menu-left .overflow-menu-container .overflow-button:focus-visible{border-radius:var(--ptc-border-radius-standard);outline:5px solid var(--keyboard-nav-outline)}:host .subnav-menu-left .overflow-menu-container .overflow-button .overflow-dots{border-radius:2px;border:1px solid var(--color-gray-07);line-height:1;width:18px;height:18px;display:flex;align-items:center;justify-content:center;cursor:pointer;transition:all 0.2s ease}:host .subnav-menu-left .overflow-menu-container .overflow-button .overflow-dots:hover{background-color:var(--color-gray-04);border-color:var(--color-gray-04)}:host .subnav-menu-left .overflow-menu-container .overflow-button .overflow-dots:hover svg circle{fill:var(--color-gray-10)}:host .subnav-menu-left .overflow-menu-container .overflow-button .overflow-dots:focus-visible{border-radius:var(--ptc-border-radius-standard);outline:5px solid var(--keyboard-nav-outline)}:host .subnav-menu-left .overflow-menu-container .overflow-button[aria-expanded],:host .subnav-menu-left .overflow-menu-container .overflow-button.selected-active{border-bottom:3px solid var(--color-green-07)}:host .subnav-menu-left .overflow-menu-container .overflow-button[aria-expanded] .overflow-dots,:host .subnav-menu-left .overflow-menu-container .overflow-button.selected-active .overflow-dots{background-color:var(--color-green-07);border-color:var(--color-green-07)}:host .subnav-menu-left .overflow-menu-container .overflow-button[aria-expanded] .overflow-dots svg circle,:host .subnav-menu-left .overflow-menu-container .overflow-button.selected-active .overflow-dots svg circle{fill:var(--color-white)}:host .subnav-menu-left .overflow-menu-container .overflow-dropdown a:hover{background-color:var(--color-gray-02);color:var(--color-gray-10)}:host .subnav-menu-left .overflow-menu-container .overflow-dropdown a.active{color:var(--color-gray-10);border-bottom:none}:host .subnav-menu-left .overflow-menu-container .overflow-dropdown a.active::before{content:\"\";display:block;width:2px;height:100%;background-color:var(--color-green-07);position:absolute;left:16px;top:0}:host .subnav-menu-left .overflow-menu-container .overflow-dropdown a:focus-visible{border-radius:var(--ptc-border-radius-standard);outline:5px solid var(--keyboard-nav-outline)}:host .subnav-menu-left.full-width{flex:1;width:100%;justify-content:flex-start}:host .subnav-menu-left.full-width .desktop-menu{width:100%}:host .mobile-dropdown-container{position:relative;display:block;height:100%;box-sizing:border-box}@media only screen and (min-width: 768px){:host .mobile-dropdown-container{display:none !important}}:host .mobile-dropdown-container .mobile-dropdown-button{background:transparent;border:none;border-bottom:3px solid var(--color-green-07);padding:20px 0;justify-content:center;gap:10px;cursor:pointer}:host .mobile-dropdown-container .mobile-dropdown-button:hover{border-color:var(--color-gray-04);color:var(--color-gray-10)}:host .mobile-dropdown-container .mobile-dropdown-button:focus-visible{border-radius:var(--ptc-border-radius-standard);outline:5px solid var(--keyboard-nav-outline)}:host .mobile-dropdown-container .mobile-dropdown-button[aria-expanded]{border-color:var(--color-green-07);color:var(--color-gray-10)}:host .mobile-dropdown-container .mobile-dropdown-button .mobile-selected-item{flex:1;text-align:left;color:var(--color-gray-07);font-size:var(--ptc-font-size-xx-small);font-weight:var(--ptc-font-weight-bold);line-height:var(--ptc-line-height-densest);display:-webkit-box;line-clamp:1;-webkit-line-clamp:1;-webkit-box-orient:vertical;overflow:hidden;text-overflow:ellipsis;max-width:100%}:host .mobile-dropdown-container .mobile-dropdown-button .mobile-arrow{display:flex;align-items:center;justify-content:center;transition:transform 0.2s ease}:host .mobile-dropdown-container .mobile-dropdown-button .mobile-arrow svg{transition:transform 0.2s ease}:host .mobile-dropdown-container .mobile-dropdown-button .mobile-arrow.rotated svg{transform:rotate(180deg)}:host .mobile-dropdown-container .mobile-dropdown{position:absolute;top:calc(100% - 4px);background:var(--color-white);border:1px solid var(--color-gray-02);border-radius:var(--ptc-border-radius-standard);box-shadow:var(--ptc-shadow-medium);z-index:1001;margin:4px 0 0 0;overflow-y:auto;min-width:280px;width:-moz-fit-content;width:fit-content;list-style:none;padding:14px 0}:host .mobile-dropdown-container .mobile-dropdown li{display:block}:host .mobile-dropdown-container .mobile-dropdown li:last-child{border-bottom:none}:host .mobile-dropdown-container .mobile-dropdown li .mobile-dropdown-item{width:100%;background:none;text-align:left;cursor:pointer;word-break:break-word;display:block}:host .mobile-dropdown-container .mobile-dropdown li .mobile-dropdown-item.active{color:var(--color-gray-10)}:host .mobile-dropdown-container .mobile-dropdown li .mobile-dropdown-item.active::before{content:\"\";display:block;width:2px;height:100%;background-color:var(--color-green-07);position:absolute;left:16px;top:0}:host .mobile-dropdown-container .mobile-dropdown li .mobile-dropdown-item:focus-visible{border-radius:var(--ptc-border-radius-standard);outline:5px solid var(--keyboard-nav-outline)}:host .subnav-menu-right{max-width:50%;padding:12px 0}@media only screen and (min-width: 768px){:host .subnav-menu-right{margin-left:48px;width:auto;max-width:300px}}";
|
|
4
|
+
|
|
5
|
+
const PtcSubnavV2 = class {
|
|
6
|
+
constructor(hostRef) {
|
|
7
|
+
registerInstance(this, hostRef);
|
|
8
|
+
this.cachedNavItems = null;
|
|
9
|
+
this.handleClickOutside = (event) => {
|
|
10
|
+
if (!this.el.contains(event.target)) {
|
|
11
|
+
this.showOverflowMenu = false;
|
|
12
|
+
}
|
|
13
|
+
};
|
|
14
|
+
this.handleKeyDown = (event) => {
|
|
15
|
+
var _a;
|
|
16
|
+
if (event.key === "Escape" && this.showOverflowMenu) {
|
|
17
|
+
this.showOverflowMenu = false;
|
|
18
|
+
(_a = this.overflowButton) === null || _a === void 0 ? void 0 : _a.focus();
|
|
19
|
+
}
|
|
20
|
+
};
|
|
21
|
+
this.handleScroll = () => {
|
|
22
|
+
// Throttle scroll events for better performance
|
|
23
|
+
if (this.scrollThrottleTimeout) {
|
|
24
|
+
return;
|
|
25
|
+
}
|
|
26
|
+
this.scrollThrottleTimeout = window.setTimeout(() => {
|
|
27
|
+
// Don't update active state if user just manually navigated
|
|
28
|
+
if (this.isManualNavigation) {
|
|
29
|
+
this.scrollThrottleTimeout = null;
|
|
30
|
+
return;
|
|
31
|
+
}
|
|
32
|
+
// Fallback scroll handler to ensure active state is updated
|
|
33
|
+
const navItems = this.getNavItems();
|
|
34
|
+
const subnavHeight = this.el.offsetHeight;
|
|
35
|
+
const scrollPosition = window.scrollY + subnavHeight + 100; // Offset for better detection
|
|
36
|
+
// Find the section that should be active based on scroll position
|
|
37
|
+
let activeSection = navItems[0].id; // Default to first section
|
|
38
|
+
for (let i = navItems.length - 1; i >= 0; i--) {
|
|
39
|
+
const section = document.getElementById(navItems[i].id);
|
|
40
|
+
if (section && section.offsetTop <= scrollPosition) {
|
|
41
|
+
activeSection = navItems[i].id;
|
|
42
|
+
break;
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
// Only update if different from current active
|
|
46
|
+
if (activeSection !== this.currentActive) {
|
|
47
|
+
this.currentActive = activeSection;
|
|
48
|
+
// Update mobile selected item if in mobile mode
|
|
49
|
+
if (this.isMobile) {
|
|
50
|
+
const activeItem = navItems.find((item) => item.id === activeSection);
|
|
51
|
+
if (activeItem) {
|
|
52
|
+
this.selectedMobileItem = activeItem;
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
this.scrollThrottleTimeout = null;
|
|
57
|
+
}, 16); // ~60fps throttling
|
|
58
|
+
};
|
|
59
|
+
this.handleResize = () => {
|
|
60
|
+
this.navContainer && setTimeout(() => this.calculateVisibleItems(), 10);
|
|
61
|
+
};
|
|
62
|
+
this.setupIntersectionObserver = () => {
|
|
63
|
+
// Get all sections that correspond to our navigation items
|
|
64
|
+
const navItems = this.getNavItems();
|
|
65
|
+
// Create intersection observer
|
|
66
|
+
this.intersectionObserver = new IntersectionObserver((entries) => {
|
|
67
|
+
// Clear any existing timeout
|
|
68
|
+
if (this.scrollTimeout) {
|
|
69
|
+
clearTimeout(this.scrollTimeout);
|
|
70
|
+
}
|
|
71
|
+
// Debounce the intersection changes
|
|
72
|
+
this.scrollTimeout = window.setTimeout(() => {
|
|
73
|
+
// Don't update active state if user just manually navigated
|
|
74
|
+
if (this.isManualNavigation) {
|
|
75
|
+
return;
|
|
76
|
+
}
|
|
77
|
+
// Find all intersecting sections
|
|
78
|
+
const intersectingSections = entries.filter((entry) => entry.isIntersecting);
|
|
79
|
+
if (intersectingSections.length > 0) {
|
|
80
|
+
// Sort by intersection ratio (how much of the section is visible)
|
|
81
|
+
// and then by position (top to bottom)
|
|
82
|
+
intersectingSections.sort((a, b) => {
|
|
83
|
+
// First sort by intersection ratio (higher = more visible)
|
|
84
|
+
if (b.intersectionRatio !== a.intersectionRatio) {
|
|
85
|
+
return (b.intersectionRatio - a.intersectionRatio);
|
|
86
|
+
}
|
|
87
|
+
// If intersection ratios are equal, sort by position
|
|
88
|
+
return (a.boundingClientRect.top -
|
|
89
|
+
b.boundingClientRect.top);
|
|
90
|
+
});
|
|
91
|
+
// Get the most visible section
|
|
92
|
+
const mostVisibleSection = intersectingSections[0];
|
|
93
|
+
const sectionId = mostVisibleSection.target.id;
|
|
94
|
+
if (sectionId && sectionId !== this.currentActive) {
|
|
95
|
+
this.currentActive = sectionId;
|
|
96
|
+
// Update mobile selected item if in mobile mode
|
|
97
|
+
if (this.isMobile) {
|
|
98
|
+
const activeItem = navItems.find((item) => item.id === sectionId);
|
|
99
|
+
if (activeItem) {
|
|
100
|
+
this.selectedMobileItem = activeItem;
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
}, 100); // Increased debounce time for better performance
|
|
106
|
+
}, {
|
|
107
|
+
root: null,
|
|
108
|
+
rootMargin: "-20% 0px -60% 0px",
|
|
109
|
+
threshold: [0, 0.1, 0.25, 0.5, 0.75, 1.0], // Multiple thresholds for better detection
|
|
110
|
+
});
|
|
111
|
+
// Observe all sections
|
|
112
|
+
navItems.forEach((item) => {
|
|
113
|
+
const section = document.getElementById(item.id);
|
|
114
|
+
if (section) {
|
|
115
|
+
this.intersectionObserver.observe(section);
|
|
116
|
+
}
|
|
117
|
+
});
|
|
118
|
+
};
|
|
119
|
+
this.extractNavItemsFromSlots = () => {
|
|
120
|
+
const slotElement = this.el.querySelector('[slot="nav-items"]');
|
|
121
|
+
if (!slotElement)
|
|
122
|
+
return null;
|
|
123
|
+
const links = slotElement.querySelectorAll("a");
|
|
124
|
+
const items = Array.from(links)
|
|
125
|
+
.map((link) => {
|
|
126
|
+
var _a, _b;
|
|
127
|
+
return ({
|
|
128
|
+
id: ((_a = link.getAttribute("href")) === null || _a === void 0 ? void 0 : _a.substring(1)) || "",
|
|
129
|
+
label: ((_b = link.textContent) === null || _b === void 0 ? void 0 : _b.trim()) || "",
|
|
130
|
+
title: link.getAttribute("title") || undefined,
|
|
131
|
+
trackerId: link.getAttribute("tracker-id") || undefined,
|
|
132
|
+
});
|
|
133
|
+
})
|
|
134
|
+
.filter((item) => Boolean(item.id && item.label));
|
|
135
|
+
return items.length > 0 ? items : null;
|
|
136
|
+
};
|
|
137
|
+
this.getNavItems = () => {
|
|
138
|
+
// Return cached items if available
|
|
139
|
+
if (this.cachedNavItems) {
|
|
140
|
+
return this.cachedNavItems;
|
|
141
|
+
}
|
|
142
|
+
// Extract navigation items from slots (SEO-friendly approach)
|
|
143
|
+
const slotItems = this.extractNavItemsFromSlots();
|
|
144
|
+
if (slotItems) {
|
|
145
|
+
this.cachedNavItems = slotItems;
|
|
146
|
+
return slotItems;
|
|
147
|
+
}
|
|
148
|
+
// If navItems prop is provided, parse and use it (fallback)
|
|
149
|
+
const propItems = this.parsePropNavItems();
|
|
150
|
+
if (propItems) {
|
|
151
|
+
this.cachedNavItems = propItems;
|
|
152
|
+
return propItems;
|
|
153
|
+
}
|
|
154
|
+
// Return empty array if no navigation items found
|
|
155
|
+
console.warn("No navigation items found in slots or props for ptc-subnav-v2");
|
|
156
|
+
return [];
|
|
157
|
+
};
|
|
158
|
+
this.calculateMobileDropdownItems = () => {
|
|
159
|
+
this.mobileDropdownItems = this.getNavItems();
|
|
160
|
+
};
|
|
161
|
+
this.hasActiveOverflowItem = () => {
|
|
162
|
+
return this.overflowItems.some((item) => item.id === this.currentActive);
|
|
163
|
+
};
|
|
164
|
+
this.hasSubnavMenuRightContent = () => {
|
|
165
|
+
const slotElement = this.el.querySelector('[slot="subnav-menu-right"]');
|
|
166
|
+
return Boolean(slotElement === null || slotElement === void 0 ? void 0 : slotElement.children.length);
|
|
167
|
+
};
|
|
168
|
+
this.calculateVisibleItems = () => {
|
|
169
|
+
const navItems = this.getNavItems();
|
|
170
|
+
// Handle case where no navigation items are found
|
|
171
|
+
if (navItems.length === 0) {
|
|
172
|
+
this.visibleItems = [];
|
|
173
|
+
this.overflowItems = [];
|
|
174
|
+
this.selectedMobileItem = null;
|
|
175
|
+
return;
|
|
176
|
+
}
|
|
177
|
+
// Check if we're in mobile mode (below 767px)
|
|
178
|
+
const wasMobile = this.isMobile;
|
|
179
|
+
this.isMobile = window.innerWidth <= 767;
|
|
180
|
+
// Force re-render if mobile state changed
|
|
181
|
+
if (wasMobile !== this.isMobile) {
|
|
182
|
+
this.showOverflowMenu = false; // Close any open menus when switching modes
|
|
183
|
+
}
|
|
184
|
+
if (this.isMobile) {
|
|
185
|
+
// On mobile, show only the current active item
|
|
186
|
+
const activeItem = navItems.find((item) => item.id === this.currentActive) ||
|
|
187
|
+
navItems[0];
|
|
188
|
+
this.selectedMobileItem = activeItem;
|
|
189
|
+
this.visibleItems = [activeItem];
|
|
190
|
+
this.overflowItems = navItems.filter((item) => item.id !== activeItem.id);
|
|
191
|
+
}
|
|
192
|
+
else {
|
|
193
|
+
// Desktop behavior - calculate based on available width
|
|
194
|
+
const containerWidth = this.navContainer
|
|
195
|
+
? this.navContainer.offsetWidth
|
|
196
|
+
: 0;
|
|
197
|
+
const buttonWidth = this.overflowButton
|
|
198
|
+
? this.overflowButton.offsetWidth + 32
|
|
199
|
+
: 0; // 32px for gap
|
|
200
|
+
const availableWidth = containerWidth - buttonWidth - 48; // 48px for right margin
|
|
201
|
+
// Fallback if container width is not available yet
|
|
202
|
+
if (containerWidth === 0) {
|
|
203
|
+
this.visibleItems = navItems;
|
|
204
|
+
this.overflowItems = [];
|
|
205
|
+
return;
|
|
206
|
+
}
|
|
207
|
+
let visibleCount = 0;
|
|
208
|
+
let totalWidth = 0;
|
|
209
|
+
// Create temporary elements to measure width
|
|
210
|
+
const tempContainer = document.createElement("div");
|
|
211
|
+
tempContainer.style.position = "absolute";
|
|
212
|
+
tempContainer.style.visibility = "hidden";
|
|
213
|
+
tempContainer.style.whiteSpace = "nowrap";
|
|
214
|
+
tempContainer.style.fontSize = "14px";
|
|
215
|
+
tempContainer.style.fontWeight = "700";
|
|
216
|
+
tempContainer.style.padding = "20px 0 20px 0";
|
|
217
|
+
document.body.appendChild(tempContainer);
|
|
218
|
+
for (let i = 0; i < navItems.length; i++) {
|
|
219
|
+
const item = navItems[i];
|
|
220
|
+
tempContainer.textContent = item.label;
|
|
221
|
+
const itemWidth = tempContainer.offsetWidth + 32; // 32px for gap
|
|
222
|
+
if (totalWidth + itemWidth <= availableWidth) {
|
|
223
|
+
totalWidth += itemWidth;
|
|
224
|
+
visibleCount++;
|
|
225
|
+
}
|
|
226
|
+
else {
|
|
227
|
+
break;
|
|
228
|
+
}
|
|
229
|
+
}
|
|
230
|
+
document.body.removeChild(tempContainer);
|
|
231
|
+
this.visibleItems = navItems.slice(0, visibleCount);
|
|
232
|
+
this.overflowItems = navItems.slice(visibleCount);
|
|
233
|
+
}
|
|
234
|
+
// Don't automatically show overflow menu - it should be closed by default
|
|
235
|
+
// this.showOverflowMenu = this.overflowItems.length > 0;
|
|
236
|
+
};
|
|
237
|
+
this.toggleOverflowMenu = () => {
|
|
238
|
+
this.showOverflowMenu = !this.showOverflowMenu;
|
|
239
|
+
};
|
|
240
|
+
this.handleNavClick = (event, section) => {
|
|
241
|
+
event.preventDefault();
|
|
242
|
+
this.currentActive = section;
|
|
243
|
+
// Update mobile selected item if in mobile mode
|
|
244
|
+
if (this.isMobile) {
|
|
245
|
+
const navItems = this.getNavItems();
|
|
246
|
+
const activeItem = navItems.find((item) => item.id === section);
|
|
247
|
+
if (activeItem) {
|
|
248
|
+
this.selectedMobileItem = activeItem;
|
|
249
|
+
this.calculateMobileDropdownItems();
|
|
250
|
+
}
|
|
251
|
+
}
|
|
252
|
+
// Set manual navigation flag to prevent intersection observer from overriding
|
|
253
|
+
this.isManualNavigation = true;
|
|
254
|
+
// Clear any existing manual navigation timeout
|
|
255
|
+
if (this.manualNavigationTimeout) {
|
|
256
|
+
clearTimeout(this.manualNavigationTimeout);
|
|
257
|
+
}
|
|
258
|
+
// Reset manual navigation flag after scroll animation completes
|
|
259
|
+
this.manualNavigationTimeout = window.setTimeout(() => {
|
|
260
|
+
this.isManualNavigation = false;
|
|
261
|
+
}, 1500); // Give enough time for smooth scroll to complete
|
|
262
|
+
// Emit custom event for parent components
|
|
263
|
+
const customEvent = new CustomEvent("sectionChange", {
|
|
264
|
+
detail: { section },
|
|
265
|
+
bubbles: true,
|
|
266
|
+
composed: true,
|
|
267
|
+
});
|
|
268
|
+
this.el.dispatchEvent(customEvent);
|
|
269
|
+
// Smooth scroll to section if it exists
|
|
270
|
+
const targetElement = document.querySelector(`#${section}`);
|
|
271
|
+
if (targetElement) {
|
|
272
|
+
targetElement.scrollIntoView({
|
|
273
|
+
behavior: "smooth",
|
|
274
|
+
block: "start",
|
|
275
|
+
});
|
|
276
|
+
}
|
|
277
|
+
};
|
|
278
|
+
this.activeSection = "overview";
|
|
279
|
+
this.navItems = "";
|
|
280
|
+
this.currentActive = "overview";
|
|
281
|
+
this.visibleItems = [];
|
|
282
|
+
this.overflowItems = [];
|
|
283
|
+
this.showOverflowMenu = false;
|
|
284
|
+
this.isMobile = false;
|
|
285
|
+
this.selectedMobileItem = null;
|
|
286
|
+
this.isManualNavigation = false;
|
|
287
|
+
this.mobileDropdownItems = [];
|
|
288
|
+
}
|
|
289
|
+
componentWillLoad() {
|
|
290
|
+
this.currentActive = this.activeSection;
|
|
291
|
+
this.initializeMobileItem();
|
|
292
|
+
this.calculateMobileDropdownItems();
|
|
293
|
+
}
|
|
294
|
+
initializeMobileItem() {
|
|
295
|
+
const navItems = this.getNavItems();
|
|
296
|
+
this.selectedMobileItem =
|
|
297
|
+
navItems.length > 0
|
|
298
|
+
? navItems.find((item) => item.id === this.activeSection) ||
|
|
299
|
+
navItems[0]
|
|
300
|
+
: null;
|
|
301
|
+
}
|
|
302
|
+
componentDidLoad() {
|
|
303
|
+
this.bindEventHandlers();
|
|
304
|
+
this.calculateMobileDropdownItems();
|
|
305
|
+
this.handleResize();
|
|
306
|
+
this.addEventListeners();
|
|
307
|
+
this.setupIntersectionObserver();
|
|
308
|
+
}
|
|
309
|
+
bindEventHandlers() {
|
|
310
|
+
this.boundHandleResize = this.handleResize.bind(this);
|
|
311
|
+
this.boundHandleClickOutside = this.handleClickOutside.bind(this);
|
|
312
|
+
this.boundHandleScroll = this.handleScroll.bind(this);
|
|
313
|
+
this.boundHandleKeyDown = this.handleKeyDown.bind(this);
|
|
314
|
+
}
|
|
315
|
+
addEventListeners() {
|
|
316
|
+
window.addEventListener("resize", this.boundHandleResize);
|
|
317
|
+
document.addEventListener("click", this.boundHandleClickOutside);
|
|
318
|
+
document.addEventListener("keydown", this.boundHandleKeyDown);
|
|
319
|
+
window.addEventListener("scroll", this.boundHandleScroll, {
|
|
320
|
+
passive: true,
|
|
321
|
+
});
|
|
322
|
+
}
|
|
323
|
+
disconnectedCallback() {
|
|
324
|
+
this.removeEventListeners();
|
|
325
|
+
this.cleanupTimeouts();
|
|
326
|
+
this.cleanupIntersectionObserver();
|
|
327
|
+
}
|
|
328
|
+
removeEventListeners() {
|
|
329
|
+
window.removeEventListener("resize", this.boundHandleResize);
|
|
330
|
+
document.removeEventListener("click", this.boundHandleClickOutside);
|
|
331
|
+
document.removeEventListener("keydown", this.boundHandleKeyDown);
|
|
332
|
+
window.removeEventListener("scroll", this.boundHandleScroll);
|
|
333
|
+
}
|
|
334
|
+
cleanupTimeouts() {
|
|
335
|
+
[
|
|
336
|
+
this.scrollTimeout,
|
|
337
|
+
this.scrollThrottleTimeout,
|
|
338
|
+
this.manualNavigationTimeout,
|
|
339
|
+
]
|
|
340
|
+
.filter(Boolean)
|
|
341
|
+
.forEach((timeout) => clearTimeout(timeout));
|
|
342
|
+
}
|
|
343
|
+
cleanupIntersectionObserver() {
|
|
344
|
+
if (this.intersectionObserver) {
|
|
345
|
+
this.intersectionObserver.disconnect();
|
|
346
|
+
}
|
|
347
|
+
}
|
|
348
|
+
parsePropNavItems() {
|
|
349
|
+
var _a;
|
|
350
|
+
if (!((_a = this.navItems) === null || _a === void 0 ? void 0 : _a.trim()))
|
|
351
|
+
return null;
|
|
352
|
+
try {
|
|
353
|
+
const parsedItems = JSON.parse(this.navItems);
|
|
354
|
+
if (Array.isArray(parsedItems) && parsedItems.length > 0) {
|
|
355
|
+
const validItems = parsedItems.filter((item) => Boolean(item &&
|
|
356
|
+
typeof item.id === "string" &&
|
|
357
|
+
typeof item.label === "string"));
|
|
358
|
+
return validItems.length > 0 ? validItems : null;
|
|
359
|
+
}
|
|
360
|
+
}
|
|
361
|
+
catch (error) {
|
|
362
|
+
console.warn("Invalid navItems JSON provided to ptc-subnav-v2:", error);
|
|
363
|
+
}
|
|
364
|
+
return null;
|
|
365
|
+
}
|
|
366
|
+
render() {
|
|
367
|
+
var _a, _b;
|
|
368
|
+
const navItems = this.getNavItems();
|
|
369
|
+
// If no navigation items, don't render the navigation
|
|
370
|
+
if (navItems.length === 0) {
|
|
371
|
+
const hasRightContent = this.hasSubnavMenuRightContent();
|
|
372
|
+
return (h(Host, null, h("div", { class: `subnav-container ${!hasRightContent ? "full-width" : ""}` }, hasRightContent && (h("div", { class: "subnav-menu-right" }, h("slot", { name: "subnav-menu-right" }))))));
|
|
373
|
+
}
|
|
374
|
+
const hasRightContent = this.hasSubnavMenuRightContent();
|
|
375
|
+
return (h(Host, null, h("div", { class: `subnav-container ${!hasRightContent ? "full-width" : ""}` }, h("nav", { class: `subnav-menu-left ${!hasRightContent ? "full-width" : ""}`, role: "navigation", "aria-label": "Sub navigation", ref: (el) => (this.navContainer = el) }, this.isMobile ? (
|
|
376
|
+
// Mobile layout - dropdown with arrows
|
|
377
|
+
h("div", { class: "mobile-dropdown-container" }, h("button", { class: "mobile-dropdown-button", onClick: this.toggleOverflowMenu, onKeyDown: (e) => {
|
|
378
|
+
if (e.key === "Enter" ||
|
|
379
|
+
e.key === " ") {
|
|
380
|
+
e.preventDefault();
|
|
381
|
+
this.toggleOverflowMenu();
|
|
382
|
+
}
|
|
383
|
+
}, "aria-expanded": this.showOverflowMenu, "aria-haspopup": "true", "aria-label": `${((_a = this.selectedMobileItem) === null || _a === void 0 ? void 0 : _a.label) || "Select Section"} - Choose navigation section`, "tracker-id": "mobile-dropdown-button", ref: (el) => (this.overflowButton = el) }, h("span", { class: "mobile-selected-item" }, ((_b = this.selectedMobileItem) === null || _b === void 0 ? void 0 : _b.label) ||
|
|
384
|
+
"Select Section"), h("span", { class: `mobile-arrow ${this.showOverflowMenu ? "rotated" : ""}`, "aria-hidden": "true" }, h("svg", { xmlns: "http://www.w3.org/2000/svg", width: "12", height: "8", viewBox: "0 0 12 8", fill: "none", "aria-hidden": "true" }, h("path", { d: "M1 1.5L5.94975 6.44975L10.8995 1.5", stroke: "#00890B", "stroke-width": "2", "stroke-linecap": "round" })))), this.showOverflowMenu && (h("ul", { class: "mobile-dropdown", role: "menu", "aria-label": "Navigation sections" }, this.mobileDropdownItems.map((item) => (h("li", { key: item.id }, h("a", { href: `#${item.id}`, class: `mobile-dropdown-item mf-listen ${this
|
|
385
|
+
.currentActive ===
|
|
386
|
+
item.id
|
|
387
|
+
? "active"
|
|
388
|
+
: ""}`, role: "menuitem", "aria-current": this
|
|
389
|
+
.currentActive ===
|
|
390
|
+
item.id
|
|
391
|
+
? "page"
|
|
392
|
+
: undefined, "tracker-id": item.trackerId ||
|
|
393
|
+
`mobile-nav-${item.id}`, title: item.title || "", onClick: (e) => {
|
|
394
|
+
this.handleNavClick(e, item.id);
|
|
395
|
+
this.showOverflowMenu = false;
|
|
396
|
+
} }, item.label)))))))) : (
|
|
397
|
+
// Desktop layout - original behavior
|
|
398
|
+
h("ul", { class: "desktop-menu" }, this.visibleItems.map((item) => (h("li", { key: item.id, class: "mf-listen", "tracker-id": item.trackerId || `nav-${item.id}` }, h("a", { href: `#${item.id}`, class: this.currentActive === item.id
|
|
399
|
+
? "active"
|
|
400
|
+
: "", title: item.title || "", onClick: (e) => this.handleNavClick(e, item.id), "aria-current": this.currentActive === item.id
|
|
401
|
+
? "page"
|
|
402
|
+
: undefined }, item.label)))), this.overflowItems.length > 0 && (h("li", { class: "overflow-menu-container mf-listen", "tracker-id": "overflow-menu" }, h("button", { class: `overflow-button ${this.hasActiveOverflowItem() ? "selected-active" : ""}`, onClick: this.toggleOverflowMenu, onKeyDown: (e) => {
|
|
403
|
+
if (e.key === "Enter" ||
|
|
404
|
+
e.key === " ") {
|
|
405
|
+
e.preventDefault();
|
|
406
|
+
this.toggleOverflowMenu();
|
|
407
|
+
}
|
|
408
|
+
}, "aria-expanded": this.showOverflowMenu, "aria-haspopup": "true", "aria-label": "Show more navigation items", "tracker-id": "overflow-button", ref: (el) => (this.overflowButton = el) }, h("span", { class: "overflow-dots", "aria-hidden": "true" }, h("svg", { xmlns: "http://www.w3.org/2000/svg", width: "10", height: "10", viewBox: "0 0 10 10", fill: "none", "aria-hidden": "true" }, h("circle", { cx: "1.25", cy: "5", r: "1.25", fill: "#617480" }), h("circle", { cx: "5", cy: "5", r: "1.25", fill: "#617480" }), h("circle", { cx: "8.75", cy: "5", r: "1.25", fill: "#617480" })))), this.showOverflowMenu && (h("div", { class: "overflow-dropdown", role: "menu", "aria-label": "Additional navigation sections" }, this.overflowItems.map((item) => (h("a", { key: item.id, href: `#${item.id}`, class: `mf-listen ${this
|
|
409
|
+
.currentActive ===
|
|
410
|
+
item.id
|
|
411
|
+
? "active"
|
|
412
|
+
: ""}`, title: item.title || "", "tracker-id": item.trackerId ||
|
|
413
|
+
`overflow-link-${item.id}`, role: "menuitem", onClick: (e) => {
|
|
414
|
+
this.handleNavClick(e, item.id);
|
|
415
|
+
this.showOverflowMenu = false;
|
|
416
|
+
}, "aria-current": this
|
|
417
|
+
.currentActive ===
|
|
418
|
+
item.id
|
|
419
|
+
? "page"
|
|
420
|
+
: undefined }, item.label)))))))))), hasRightContent && (h("div", { class: "subnav-menu-right" }, h("slot", { name: "subnav-menu-right" }))))));
|
|
421
|
+
}
|
|
422
|
+
get el() { return getElement(this); }
|
|
423
|
+
};
|
|
424
|
+
PtcSubnavV2.style = ptcSubnavV2Css;
|
|
425
|
+
|
|
426
|
+
export { PtcSubnavV2 as ptc_subnav_v2 };
|
|
@@ -87,7 +87,7 @@ const play = `<svg width="84" height="84" viewBox="0 0 84 84" fill="none" xmlns=
|
|
|
87
87
|
</svg>
|
|
88
88
|
`;
|
|
89
89
|
|
|
90
|
-
const ptcSvgBtnCss = "h1,h2,h3,h4,h5,h6,p,ul,li,ptc-subnav,ptc-tab-list,ptc-link,ptc-square-card,.hyphenate-text,ptc-footer{word-break:break-word;hyphens:manual;-webkit-hyphens:manual;-moz-hyphens:manual;-ms-hyphens:manual}@supports (hyphenate-limit-chars: 12 3 3){h1,h2,h3,h4,h5,h6,p,ul,li,ptc-subnav,ptc-tab-list,ptc-link,ptc-square-card,.hyphenate-text,ptc-footer{hyphens:auto;-webkit-hyphenate-limit-before:3;-webkit-hyphenate-limit-after:3;hyphenate-limit-chars:12 3 3;hyphenate-limit-lines:2;hyphenate-limit-last:always;hyphenate-limit-zone:6%;-webkit-hyphens:auto;-webkit-hyphenate-limit-before:3;-webkit-hyphenate-limit-after:3;-webkit-hyphenate-limit-chars:12 3 3;-webkit-hyphenate-limit-lines:2;-moz-hyphens:auto;-moz-hyphenate-limit-chars:12 3 3;-moz-hyphenate-limit-lines:2;-ms-hyphens:auto;-ms-hyphenate-limit-chars:12 3 3;-ms-hyphenate-limit-lines:2}}:host{cursor:pointer}:host(.block){display:block}:host(.inline){display:inline}:host(.inline-block){display:inline-block}:host(.flex){display:flex}:host(:focus-visible){outline:none}:host(.backarrow){margin:8px 8px 0px -2px}:focus-visible{outline:none}.svg-close svg .cls-1,.svg-close svg .cls-2{fill:none;stroke-width:2px}.svg-close svg .cls-1{stroke:var(--color-gray-10);stroke-linecap:square}.svg-close svg .cls-2{stroke:var(--color-gray-10)}.svg-close svg path{transition:all var(--ptc-transition-medium) var(--ptc-ease-inout)}.svg-close svg .cls-1:first-child{
|
|
90
|
+
const ptcSvgBtnCss = "h1,h2,h3,h4,h5,h6,p,ul,li,ptc-subnav,ptc-tab-list,ptc-link,ptc-square-card,.hyphenate-text,ptc-footer{word-break:break-word;hyphens:manual;-webkit-hyphens:manual;-moz-hyphens:manual;-ms-hyphens:manual}@supports (hyphenate-limit-chars: 12 3 3){h1,h2,h3,h4,h5,h6,p,ul,li,ptc-subnav,ptc-tab-list,ptc-link,ptc-square-card,.hyphenate-text,ptc-footer{hyphens:auto;-webkit-hyphenate-limit-before:3;-webkit-hyphenate-limit-after:3;hyphenate-limit-chars:12 3 3;hyphenate-limit-lines:2;hyphenate-limit-last:always;hyphenate-limit-zone:6%;-webkit-hyphens:auto;-webkit-hyphenate-limit-before:3;-webkit-hyphenate-limit-after:3;-webkit-hyphenate-limit-chars:12 3 3;-webkit-hyphenate-limit-lines:2;-moz-hyphens:auto;-moz-hyphenate-limit-chars:12 3 3;-moz-hyphenate-limit-lines:2;-ms-hyphens:auto;-ms-hyphenate-limit-chars:12 3 3;-ms-hyphenate-limit-lines:2}}:host{cursor:pointer}:host(.block){display:block}:host(.inline){display:inline}:host(.inline-block){display:inline-block}:host(.flex){display:flex}:host(:focus-visible){outline:none}:host(.backarrow){margin:8px 8px 0px -2px}:focus-visible{outline:none}.svg-close svg .cls-1,.svg-close svg .cls-2{fill:none;stroke-width:2px}.svg-close svg .cls-1{stroke:var(--color-gray-10);stroke-linecap:square}.svg-close svg .cls-2{stroke:var(--color-gray-10)}.svg-close svg path{transition:all var(--ptc-transition-medium) var(--ptc-ease-inout)}.svg-close svg .cls-1:first-child{transform:translate(175.5px, 135.5px)}.svg-close svg .cls-1:nth-child(2){transform:translate(175.5px, 174.985px)}.svg-close svg .cls-1:nth-child(3){transform:translate(215.5px, 141.393px)}.svg-close svg .cls-1:nth-child(4){transform:translate(175.5px, 135.5px)}.svg-close:hover svg .cls-1:first-child{transform:translate(175.5px, 162px)}.svg-close:hover svg .cls-1:nth-child(2){transform:translate(149px, 174.985px)}.svg-close:hover svg .cls-1:nth-child(3){transform:translate(215.5px, 174px)}.svg-close:hover svg .cls-1:nth-child(4){transform:translate(152.5px, 135.5px)}.svg-close.svg-close-white .cls-1{stroke:var(--color-white)}.slider-left,.slider-right{transition:all var(--ptc-transition-medium) var(--ptc-ease-inout)}.slider-left svg .arrow,.slider-right svg .arrow{fill:var(--color-gray-10)}.slider-left:hover svg .arrow,.slider-right:hover svg .arrow{fill:var(--color-green-06)}.back-arrow{display:inline-block;fill:none;stroke-width:30px;stroke:var(--color-gray-10);stroke-linecap:square;height:10px;width:20px;position:relative;top:1px;text-align:center}@media only screen and (max-width: 1024px) and (min-width: 576px){:host(.back-arrow){margin:8px 8px 16px -2px}}";
|
|
91
91
|
|
|
92
92
|
const PtcSvgBtn = class {
|
|
93
93
|
constructor(hostRef) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { r as registerInstance, h, H as Host, g as getElement } from './index-c83db688.js';
|
|
2
2
|
|
|
3
|
-
const ptcTextCopyWithBackgroundCss = "h1,h2,h3,h4,h5,h6,p,ul,li,ptc-subnav,ptc-tab-list,ptc-link,ptc-square-card,.hyphenate-text,ptc-footer{word-break:break-word;hyphens:manual;-webkit-hyphens:manual;-moz-hyphens:manual;-ms-hyphens:manual}@supports (hyphenate-limit-chars: 12 3 3){h1,h2,h3,h4,h5,h6,p,ul,li,ptc-subnav,ptc-tab-list,ptc-link,ptc-square-card,.hyphenate-text,ptc-footer{hyphens:auto;-webkit-hyphenate-limit-before:3;-webkit-hyphenate-limit-after:3;hyphenate-limit-chars:12 3 3;hyphenate-limit-lines:2;hyphenate-limit-last:always;hyphenate-limit-zone:6%;-webkit-hyphens:auto;-webkit-hyphenate-limit-before:3;-webkit-hyphenate-limit-after:3;-webkit-hyphenate-limit-chars:12 3 3;-webkit-hyphenate-limit-lines:2;-moz-hyphens:auto;-moz-hyphenate-limit-chars:12 3 3;-moz-hyphenate-limit-lines:2;-ms-hyphens:auto;-ms-hyphenate-limit-chars:12 3 3;-ms-hyphenate-limit-lines:2}}:host{display:block;position:relative;width:100%;padding:var(--ptc-layout-spacing-05) var(--ptc-layout-spacing-01);color:var(--color-white)}@media only screen and (min-width: 768px){:host{padding:var(--ptc-layout-spacing-05) var(--ptc-layout-spacing-03)}}@media only screen and (min-width: 992px){:host{padding:var(--ptc-layout-spacing-06) 0}}@media only screen and (min-width: 1200px){:host{padding:var(--ptc-layout-spacing-06) var(--ptc-layout-spacing-03)}}:host .content-wrap{position:relative}:host .tcb-top-slit{fill:#f3f3f3;transform:scale(1.5, -1);position:absolute;top:-1px;right:80px;z-index:99;display:none}@media only screen and (min-width: 992px){:host .tcb-top-slit{display:block}}:host .bg-img-filter{
|
|
3
|
+
const ptcTextCopyWithBackgroundCss = "h1,h2,h3,h4,h5,h6,p,ul,li,ptc-subnav,ptc-tab-list,ptc-link,ptc-square-card,.hyphenate-text,ptc-footer{word-break:break-word;hyphens:manual;-webkit-hyphens:manual;-moz-hyphens:manual;-ms-hyphens:manual}@supports (hyphenate-limit-chars: 12 3 3){h1,h2,h3,h4,h5,h6,p,ul,li,ptc-subnav,ptc-tab-list,ptc-link,ptc-square-card,.hyphenate-text,ptc-footer{hyphens:auto;-webkit-hyphenate-limit-before:3;-webkit-hyphenate-limit-after:3;hyphenate-limit-chars:12 3 3;hyphenate-limit-lines:2;hyphenate-limit-last:always;hyphenate-limit-zone:6%;-webkit-hyphens:auto;-webkit-hyphenate-limit-before:3;-webkit-hyphenate-limit-after:3;-webkit-hyphenate-limit-chars:12 3 3;-webkit-hyphenate-limit-lines:2;-moz-hyphens:auto;-moz-hyphenate-limit-chars:12 3 3;-moz-hyphenate-limit-lines:2;-ms-hyphens:auto;-ms-hyphenate-limit-chars:12 3 3;-ms-hyphenate-limit-lines:2}}:host{display:block;position:relative;width:100%;padding:var(--ptc-layout-spacing-05) var(--ptc-layout-spacing-01);color:var(--color-white)}@media only screen and (min-width: 768px){:host{padding:var(--ptc-layout-spacing-05) var(--ptc-layout-spacing-03)}}@media only screen and (min-width: 992px){:host{padding:var(--ptc-layout-spacing-06) 0}}@media only screen and (min-width: 1200px){:host{padding:var(--ptc-layout-spacing-06) var(--ptc-layout-spacing-03)}}:host .content-wrap{position:relative}:host .tcb-top-slit{fill:#f3f3f3;transform:scale(1.5, -1);position:absolute;top:-1px;right:80px;z-index:99;display:none}@media only screen and (min-width: 992px){:host .tcb-top-slit{display:block}}:host .bg-img-filter{filter:url(#blur);-webkit-mask:linear-gradient(90deg, var(--color-black) 30%, rgba(0, 0, 0, 0));-webkit-filter:blur(7px)}:host .copy-bg-image{top:0;left:0;height:100%;width:100%;position:absolute;-o-object-fit:cover;object-fit:cover}@media only screen and (min-width: 992px){:host .copy-bg-image{display:block}}:host .copy-bg-overlay-layer{position:absolute;top:0;left:0;height:100%;width:100%;background:var(--color-black);opacity:0.6}:host(.hero-footer-cta){padding:var(--ptc-layout-spacing-05) 0}@media only screen and (min-width: 768px){:host(.hero-footer-cta){padding:calc(var(--ptc-layout-spacing-06) + var(--ptc-layout-spacing-01)) 0}}:host(.hero-footer-cta) .copy-bg-overlay-layer{opacity:0.6}:host(.tab-cta-with-background){min-height:300px;padding:var(--ptc-layout-spacing-02)}:host(.tab-cta-with-background) .copy-bg-image{top:0;left:0;height:100%;width:100%;position:absolute;-o-object-fit:cover;object-fit:cover;display:none;border-radius:4px}@media only screen and (min-width: 992px){:host(.tab-cta-with-background){min-height:400px}:host(.tab-cta-with-background) .copy-bg-image{display:block}}@media only screen and (min-width: 992px){:host(.tab-cta-with-background){display:flex;align-items:center;padding:var(--ptc-element-spacing-09)}}:host(.tab-cta-with-background) .copy-bg-overlay-layer{background:initial;opacity:1;background-image:linear-gradient(180deg, #fff 30%, rgba(255, 255, 255, 0.9) 63%, rgba(176, 188, 194, 0) 95%)}@media only screen and (min-width: 992px){:host(.tab-cta-with-background) .copy-bg-overlay-layer{background-image:linear-gradient(90deg, rgba(255, 255, 255, 0.95) 43%, rgba(176, 188, 194, 0) 95%)}}:host(.bottom-right) .tcb-top-slit{top:auto;bottom:-1px;transform:scale(1.5, 1)}:host(.bottom-left) .tcb-top-slit{top:auto;bottom:-1px;transform:scale(1.5, 1) scaleX(-1);left:80px;right:auto}:host(.top-left) .tcb-top-slit{top:-1px;bottom:auto;transform:scale(1.5, 1) rotate(180deg);left:80px;right:auto}:host(.case-studies){min-height:25rem;height:auto;margin-bottom:10rem;display:flex;align-items:center}@media only screen and (min-width: 768px){:host(.case-studies){min-height:33.75rem;height:auto;margin-bottom:0;padding-top:var(--ptc-layout-spacing-06)}}:host(.case-studies) .card-wrap{position:relative;border:1px solid transparent;width:100%;height:100%;max-width:540px;bottom:-13rem}@media only screen and (min-width: 768px){:host(.case-studies) .card-wrap{bottom:auto}}:host(.case-studies) .card-wrap::after{position:absolute;width:0;height:1px;content:\"\";background:#fff;top:0px;left:0px;animation:widthAnimate 0.2s linear 0.2s 1 forwards}:host(.case-studies) .card-wrap::before{position:absolute;width:1px;height:0;content:\"\";background:#fff;top:0px;right:0px;animation:heightAnimate 0.2s linear 0.4s 1 forwards}:host(.case-studies) .card-wrap .card-animated-border{border:1px solid transparent;position:absolute;left:-1px;right:0;bottom:0px;top:-1px;width:100%;height:100%;box-shadow:var(--ptc-shadow-x-small)}:host(.case-studies) .card-wrap .card-animated-border::after{position:absolute;width:0;height:1px;content:\"\";background:#fff;bottom:0px;right:0px;animation:widthAnimate 0.2s linear 0.6s 1 forwards}:host(.case-studies) .card-wrap .card-animated-border::before{position:absolute;width:1px;height:0;content:\"\";background:#fff;bottom:0px;left:0px;animation:heightAnimate 0.2s linear 0.8s 1 forwards}:host(.case-studies) .card-wrap .card-content{opacity:0;animation:fadeIn 0.5s ease-in 0.9s 1 forwards;background-color:transparent;width:100%;height:100%}:host(.case-studies) .card-wrap .card-content .card-layout{padding:var(--ptc-layout-spacing-04);background-color:#fff}@keyframes widthAnimate{0%{width:0}100%{width:100%}}@keyframes heightAnimate{0%{height:0}100%{height:100%}}@keyframes fadeIn{0%{opacity:0}100%{opacity:1}}:host(.case-studies) .content-wrap{width:100%}:host(.case-studies) .ptc-container{padding-right:24px;padding-left:24px;margin-right:auto;margin-left:auto}@media only screen and (min-width: 1200px){:host(.case-studies) .ptc-container{padding-left:0;padding-right:0;max-width:1136px}}@media only screen and (min-width: 1440px){:host(.case-studies) .ptc-container{padding-left:0;padding-right:0;max-width:1200px}}@media (prefers-reduced-motion: reduce){:host(.case-studies) .card-wrap::after{animation:none}:host(.case-studies) .card-wrap::before{animation:none}:host(.case-studies) .card-wrap .card-animated-border::before{animation:none}:host(.case-studies) .card-wrap .card-animated-border::after{animation:none}:host(.case-studies) .card-wrap .card-content{opacity:1;visibility:visible;animation:none}}:host(.bg-image-absent){padding:0rem}";
|
|
4
4
|
|
|
5
5
|
const PtcTextCopyWithBackground = class {
|
|
6
6
|
constructor(hostRef) {
|