@ptcwebops/ptcw-design 6.2.12-beta → 6.2.12
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/blog-detail-layout.cjs.entry.js +1 -1
- package/dist/cjs/blogs-search-section.cjs.entry.js +1 -1
- package/dist/cjs/{component-6a178a16.js → component-06dda623.js} +1494 -3305
- package/dist/cjs/component-5b5b6a98.js +1819 -0
- package/dist/cjs/event-jumbotron-example_16.cjs.entry.js +1320 -0
- 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 +1 -1
- package/dist/cjs/innovator-toggle-container.cjs.entry.js +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/most-popular-news.cjs.entry.js +1 -1
- package/dist/cjs/my-component.cjs.entry.js +1 -1
- package/dist/cjs/ptc-accordion-item.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.cjs.entry.js +46 -0
- package/dist/cjs/ptc-case-studies-slider.cjs.entry.js +1 -1
- package/dist/cjs/ptc-collapse-list.cjs.entry.js +1 -14
- package/dist/cjs/ptc-data-lookup.cjs.entry.js +2 -1
- package/dist/cjs/ptc-featured-list.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} +5 -787
- package/dist/cjs/ptc-homepage-image-feature.cjs.entry.js +1 -1
- package/dist/cjs/ptc-homepage-video-background.cjs.entry.js +1 -1
- package/dist/cjs/ptc-icon-card.cjs.entry.js +2 -8
- package/dist/cjs/ptc-icon-minimize.cjs.entry.js +1 -1
- package/dist/cjs/ptc-jumbotron.cjs.entry.js +1 -1
- package/dist/cjs/ptc-media-card.cjs.entry.js +1 -1
- package/dist/cjs/ptc-multi-select_2.cjs.entry.js +670 -0
- package/dist/cjs/ptc-nav-submenu.cjs.entry.js +1 -1
- package/dist/cjs/ptc-podcast-card.cjs.entry.js +1 -1
- package/dist/cjs/ptc-previous-url.cjs.entry.js +2 -10
- package/dist/cjs/ptc-pricing-packaging-table.cjs.entry.js +1 -1
- package/dist/cjs/ptc-pricing-tabs.cjs.entry.js +1 -1
- 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-readmore-char.cjs.entry.js +1 -1
- package/dist/cjs/ptc-readmore-v3.cjs.entry.js +1 -1
- package/dist/cjs/ptc-social-icons-footer.cjs.entry.js +2 -7
- 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 +1 -1
- package/dist/cjs/ptcw-design.cjs.js +1 -1
- package/dist/cjs/{utils-ad441b07.js → utils-87d7b99f.js} +0 -9
- package/dist/cjs/validation-messages-33a4f26b.js +126 -0
- package/dist/collection/collection-manifest.json +0 -1
- package/dist/collection/components/icon-asset/media/designer-v6.0.6.svg +2 -30
- package/dist/collection/components/innovator-toggle-container/innovator-toggle-container.css +5 -20
- package/dist/collection/components/organism-bundles/bundle-featured-list/featured-list.css +1 -19
- package/dist/collection/components/organism-bundles/event-jumbotron-example/event-jumbotron-example.css +0 -21
- package/dist/collection/components/organism-bundles/event-jumbotron-example/event-jumbotron-example.js +1 -23
- package/dist/collection/components/ptc-bio-card/ptc-bio-card.css +9 -20
- package/dist/collection/components/ptc-button/ptc-button.js +1 -4
- package/dist/collection/components/ptc-case-studies-slider/ptc-case-studies-slider.css +5 -20
- package/dist/collection/components/ptc-collapse-list/ptc-collapse-list.js +0 -31
- package/dist/collection/components/ptc-featured-list/ptc-featured-list.css +5 -20
- package/dist/collection/components/ptc-filter-level-theater/ptc-filter-level-theater.css +5 -20
- package/dist/collection/components/ptc-footer/ptc-footer-v2.css +1 -14
- package/dist/collection/components/ptc-icon-card/ptc-icon-card.css +0 -10
- package/dist/collection/components/ptc-icon-card/ptc-icon-card.js +1 -25
- package/dist/collection/components/ptc-icon-minimize/ptc-icon-minimize.css +17 -0
- package/dist/collection/components/ptc-jumbotron/ptc-jumbotron.css +5 -20
- package/dist/collection/components/ptc-link/ptc-link.css +0 -8
- package/dist/collection/components/ptc-link/ptc-link.js +1 -4
- package/dist/collection/components/ptc-modal/ptc-modal.css +0 -66
- package/dist/collection/components/ptc-modal/ptc-modal.js +4 -81
- 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-podcast-card/ptc-podcast-card.css +5 -20
- 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 -27
- package/dist/collection/components/ptc-product-card/ptc-product-card.css +5 -20
- package/dist/collection/components/ptc-product-category/ptc-product-category.css +5 -20
- package/dist/collection/components/ptc-product-highlight-card/ptc-product-highlight-card.css +5 -20
- package/dist/collection/components/ptc-readmore-char/ptc-readmore-char.css +5 -20
- package/dist/collection/components/ptc-readmore-v3/ptc-readmore-v3.css +5 -20
- package/dist/collection/components/ptc-scroll-button/ptc-scroll-button.js +1 -41
- package/dist/collection/components/ptc-social-icons-footer/ptc-social-icons-footer.css +0 -10
- package/dist/collection/components/ptc-social-icons-footer/ptc-social-icons-footer.js +1 -24
- package/dist/collection/components/ptc-tooltip-v2/ptc-tooltip-v2.css +5 -20
- package/dist/collection/components/ptc-value-led-speed-bump/ptc-value-led-speed-bump.css +5 -20
- package/dist/collection/components/ptc-white-paper/ptc-white-paper.css +5 -20
- package/dist/collection/components/subnav/ptc-nav-submenu/ptc-nav-submenu.css +0 -7
- package/dist/collection/utils/utils.js +0 -8
- package/dist/custom-elements/index.d.ts +0 -6
- package/dist/custom-elements/index.js +41 -226
- package/dist/esm/blog-detail-content_2.entry.js +1 -1
- package/dist/esm/blog-detail-layout.entry.js +1 -1
- package/dist/esm/blogs-search-section.entry.js +1 -1
- package/dist/esm/{component-80f298b4.js → component-274da230.js} +1482 -3281
- package/dist/esm/component-341e4eaa.js +1802 -0
- package/dist/esm/event-jumbotron-example_16.entry.js +1301 -0
- package/dist/esm/featured-list.entry.js +1 -1
- package/dist/esm/homepage-jumbotron.entry.js +1 -1
- package/dist/esm/homepage-toggled-content.entry.js +1 -1
- package/dist/esm/innovator-toggle-container.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-background-video.entry.js +1 -1
- package/dist/esm/ptc-bio-card.entry.js +1 -1
- package/dist/esm/ptc-card-bottom.entry.js +42 -0
- package/dist/esm/ptc-case-studies-slider.entry.js +1 -1
- package/dist/esm/ptc-collapse-list.entry.js +1 -14
- package/dist/esm/ptc-data-lookup.entry.js +2 -1
- package/dist/esm/ptc-featured-list.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} +4 -784
- package/dist/esm/ptc-homepage-image-feature.entry.js +1 -1
- package/dist/esm/ptc-homepage-video-background.entry.js +1 -1
- package/dist/esm/ptc-icon-card.entry.js +3 -9
- package/dist/esm/ptc-icon-minimize.entry.js +1 -1
- package/dist/esm/ptc-jumbotron.entry.js +1 -1
- package/dist/esm/ptc-media-card.entry.js +1 -1
- package/dist/esm/ptc-multi-select_2.entry.js +665 -0
- package/dist/esm/ptc-nav-submenu.entry.js +1 -1
- package/dist/esm/ptc-podcast-card.entry.js +1 -1
- package/dist/esm/ptc-previous-url.entry.js +2 -10
- 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-highlight-card.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-social-icons-footer.entry.js +2 -7
- 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 +1 -1
- package/dist/esm/ptcw-design.js +1 -1
- package/dist/esm/{utils-63eab4bd.js → utils-b7c6422e.js} +1 -9
- package/dist/esm/validation-messages-adbb6518.js +124 -0
- package/dist/ptcw-design/media/designer-v6.0.6.svg +2 -30
- package/dist/ptcw-design/p-00e21489.entry.js +1 -0
- package/dist/ptcw-design/{p-72df6678.entry.js → p-085e82b8.entry.js} +1 -1
- package/dist/ptcw-design/p-1022ad8b.entry.js +1 -0
- package/dist/ptcw-design/{p-627103d8.entry.js → p-103ec637.entry.js} +1 -1
- package/dist/ptcw-design/p-136a91bf.entry.js +1 -0
- package/dist/ptcw-design/p-14e53256.entry.js +1 -0
- package/dist/ptcw-design/p-18a5a338.js +1 -0
- package/dist/ptcw-design/p-18f59395.entry.js +1 -0
- package/dist/ptcw-design/p-1b7087e7.entry.js +1 -0
- package/dist/ptcw-design/p-1ca8a5bf.entry.js +1 -0
- package/dist/ptcw-design/{p-0d806031.entry.js → p-1cff585f.entry.js} +1 -1
- package/dist/ptcw-design/{p-d3229458.entry.js → p-2335d57c.entry.js} +1 -1
- package/dist/ptcw-design/{p-821f0ff9.entry.js → p-29639cd4.entry.js} +1 -1
- package/dist/ptcw-design/{p-48c33817.entry.js → p-34610052.entry.js} +1 -1
- package/dist/ptcw-design/{p-28be539b.entry.js → p-34b270c1.entry.js} +1 -1
- package/dist/ptcw-design/p-3f71553e.entry.js +1 -0
- package/dist/ptcw-design/{p-d756db27.entry.js → p-48183365.entry.js} +1 -1
- package/dist/ptcw-design/p-4a5f7fd0.entry.js +68 -0
- package/dist/ptcw-design/{p-6a3caf2b.entry.js → p-4c096997.entry.js} +1 -1
- package/dist/ptcw-design/p-4e2bb0e0.entry.js +1 -0
- package/dist/ptcw-design/{p-6f5fecae.entry.js → p-52b82ac5.entry.js} +1 -1
- package/dist/ptcw-design/p-583608d9.entry.js +1 -0
- package/dist/ptcw-design/{p-139a02e6.entry.js → p-69686408.entry.js} +1 -1
- package/dist/ptcw-design/p-710de12d.entry.js +1 -0
- package/dist/ptcw-design/{p-d2825140.entry.js → p-760507e1.entry.js} +1 -1
- package/dist/ptcw-design/{p-49e54079.entry.js → p-7e7ebf0a.entry.js} +1 -1
- package/dist/ptcw-design/p-841b807d.js +1 -0
- package/dist/ptcw-design/p-8daf00ae.entry.js +1 -0
- package/dist/ptcw-design/{p-17f6e145.entry.js → p-999d1c9f.entry.js} +1 -1
- package/dist/ptcw-design/p-a2d9831c.entry.js +1 -0
- package/dist/ptcw-design/{p-bb902570.entry.js → p-a3a04f4e.entry.js} +1 -1
- package/dist/ptcw-design/p-be533f0d.js +134 -0
- package/dist/ptcw-design/p-c1513c3f.js +203 -0
- package/dist/ptcw-design/{p-cbee4653.entry.js → p-cffebefe.entry.js} +1 -1
- package/dist/ptcw-design/{p-77cad16c.entry.js → p-d1857ada.entry.js} +1 -1
- package/dist/ptcw-design/{p-ea7369e9.entry.js → p-d3e5b65c.entry.js} +1 -1
- package/dist/ptcw-design/p-d734b373.entry.js +1 -0
- package/dist/ptcw-design/p-dc488936.entry.js +1 -0
- package/dist/ptcw-design/p-dd73c4d1.entry.js +1 -0
- package/dist/ptcw-design/{p-e577ad62.entry.js → p-df8526a2.entry.js} +1 -1
- package/dist/ptcw-design/{p-eec2f3da.entry.js → p-e38ed0e3.entry.js} +1 -1
- package/dist/ptcw-design/p-e7937ac1.entry.js +1 -0
- package/dist/ptcw-design/p-e9a7475b.entry.js +1 -0
- package/dist/ptcw-design/{p-4ee98a3e.entry.js → p-eab1042e.entry.js} +1 -1
- package/dist/ptcw-design/p-f05fec22.entry.js +1 -0
- package/dist/ptcw-design/{p-2749c178.entry.js → p-fce2bd81.entry.js} +1 -1
- package/dist/ptcw-design/ptcw-design.css +2 -2
- package/dist/ptcw-design/ptcw-design.esm.js +1 -1
- package/dist/types/components/organism-bundles/event-jumbotron-example/event-jumbotron-example.d.ts +0 -1
- package/dist/types/components/ptc-button/ptc-button.d.ts +0 -1
- package/dist/types/components/ptc-collapse-list/ptc-collapse-list.d.ts +0 -2
- package/dist/types/components/ptc-icon-card/ptc-icon-card.d.ts +0 -6
- package/dist/types/components/ptc-link/ptc-link.d.ts +0 -1
- package/dist/types/components/ptc-modal/ptc-modal.d.ts +1 -5
- package/dist/types/components/ptc-para/ptc-para.d.ts +1 -1
- package/dist/types/components/ptc-previous-url/ptc-previous-url.d.ts +0 -2
- package/dist/types/components/ptc-scroll-button/ptc-scroll-button.d.ts +0 -10
- package/dist/types/components/ptc-social-icons-footer/ptc-social-icons-footer.d.ts +0 -5
- package/dist/types/components.d.ts +4 -47
- package/dist/types/utils/utils.d.ts +0 -1
- package/package.json +1 -1
- package/readme.md +1 -5
- package/dist/cjs/event-jumbotron-example.cjs.entry.js +0 -131
- package/dist/cjs/icon-asset.cjs.entry.js +0 -65
- package/dist/cjs/list-item.cjs.entry.js +0 -48
- package/dist/cjs/modal-form-example.cjs.entry.js +0 -94
- package/dist/cjs/ptc-breadcrumb.cjs.entry.js +0 -47
- package/dist/cjs/ptc-button.cjs.entry.js +0 -87
- package/dist/cjs/ptc-card-bottom_2.cjs.entry.js +0 -132
- package/dist/cjs/ptc-card-content.cjs.entry.js +0 -68
- package/dist/cjs/ptc-close-icon_2.cjs.entry.js +0 -222
- package/dist/cjs/ptc-img.cjs.entry.js +0 -133
- package/dist/cjs/ptc-link.cjs.entry.js +0 -98
- package/dist/cjs/ptc-overlay.cjs.entry.js +0 -34
- package/dist/cjs/ptc-para.cjs.entry.js +0 -127
- package/dist/cjs/ptc-scroll-button.cjs.entry.js +0 -122
- package/dist/cjs/ptc-spacer.cjs.entry.js +0 -38
- package/dist/cjs/ptc-title.cjs.entry.js +0 -152
- 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 -99
- 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/event-jumbotron-example.entry.js +0 -127
- package/dist/esm/icon-asset.entry.js +0 -61
- package/dist/esm/list-item.entry.js +0 -44
- package/dist/esm/modal-form-example.entry.js +0 -90
- package/dist/esm/ptc-breadcrumb.entry.js +0 -43
- package/dist/esm/ptc-button.entry.js +0 -83
- package/dist/esm/ptc-card-bottom_2.entry.js +0 -127
- package/dist/esm/ptc-card-content.entry.js +0 -64
- package/dist/esm/ptc-close-icon_2.entry.js +0 -217
- package/dist/esm/ptc-img.entry.js +0 -129
- package/dist/esm/ptc-link.entry.js +0 -94
- package/dist/esm/ptc-overlay.entry.js +0 -30
- package/dist/esm/ptc-para.entry.js +0 -123
- package/dist/esm/ptc-scroll-button.entry.js +0 -118
- package/dist/esm/ptc-spacer.entry.js +0 -34
- package/dist/esm/ptc-title.entry.js +0 -148
- package/dist/ptcw-design/p-0968cadd.entry.js +0 -1
- package/dist/ptcw-design/p-0c69ea52.entry.js +0 -1
- package/dist/ptcw-design/p-1070f8a3.entry.js +0 -1
- package/dist/ptcw-design/p-257deac0.entry.js +0 -1
- package/dist/ptcw-design/p-25a25451.entry.js +0 -1
- package/dist/ptcw-design/p-291072b4.entry.js +0 -1
- package/dist/ptcw-design/p-29240ef8.entry.js +0 -1
- package/dist/ptcw-design/p-2ac5ed9c.entry.js +0 -1
- package/dist/ptcw-design/p-34c50b3e.entry.js +0 -1
- package/dist/ptcw-design/p-50d68602.entry.js +0 -1
- package/dist/ptcw-design/p-5c97ee54.entry.js +0 -1
- package/dist/ptcw-design/p-5d885144.entry.js +0 -1
- package/dist/ptcw-design/p-5ef23b5c.entry.js +0 -1
- package/dist/ptcw-design/p-672a349f.js +0 -336
- package/dist/ptcw-design/p-6f3ac999.entry.js +0 -1
- package/dist/ptcw-design/p-743e3cf5.entry.js +0 -68
- package/dist/ptcw-design/p-7793babb.entry.js +0 -1
- package/dist/ptcw-design/p-77b1221e.js +0 -1
- package/dist/ptcw-design/p-799afee5.entry.js +0 -1
- package/dist/ptcw-design/p-8e297cd7.entry.js +0 -1
- package/dist/ptcw-design/p-90c4f08b.entry.js +0 -1
- package/dist/ptcw-design/p-92d22c78.entry.js +0 -1
- package/dist/ptcw-design/p-95187918.entry.js +0 -1
- package/dist/ptcw-design/p-9a6bd91f.entry.js +0 -1
- package/dist/ptcw-design/p-9e9ae28c.entry.js +0 -1
- package/dist/ptcw-design/p-b3bbd17d.entry.js +0 -1
- package/dist/ptcw-design/p-b8ee8699.entry.js +0 -1
- package/dist/ptcw-design/p-ba8c58a7.entry.js +0 -1
- package/dist/ptcw-design/p-bf18b622.entry.js +0 -1
- package/dist/ptcw-design/p-c01ea76f.entry.js +0 -1
- package/dist/ptcw-design/p-d2e26642.entry.js +0 -1
- package/dist/ptcw-design/p-de960790.entry.js +0 -1
- package/dist/ptcw-design/p-e90fbbad.entry.js +0 -1
- package/dist/ptcw-design/p-f8512dc9.entry.js +0 -1
- package/dist/ptcw-design/p-fd394e84.entry.js +0 -1
- package/dist/types/components/organism-bundles/form/modal-from-example/modal-form-example.d.ts +0 -25
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as e,h as i,H as t,g as r}from"./p-ac75c7ad.js";import{h as s,j as a,e as o,a as n,k as p,l,S as c}from"./p-5292a000.js";import{N as d,P as w}from"./p-f5dfa530.js";function h({swiper:e,extendParams:i,on:t,emit:r,params:a}){let o,n;e.autoplay={running:!1,paused:!1,timeLeft:0},i({autoplay:{enabled:!1,delay:3e3,waitForTransition:!0,disableOnInteraction:!0,stopOnLastSlide:!1,reverseDirection:!1,pauseOnMouseEnter:!1}});let p,l,c,d,w,h,g,u=a&&a.autoplay?a.autoplay.delay:3e3,b=a&&a.autoplay?a.autoplay.delay:3e3,m=(new Date).getTime;function f(i){e&&!e.destroyed&&e.wrapperEl&&i.target===e.wrapperEl&&(e.wrapperEl.removeEventListener("transitionend",f),z())}const v=()=>{if(e.destroyed||!e.autoplay.running)return;e.autoplay.paused?l=!0:l&&(b=p,l=!1);const i=e.autoplay.paused?p:m+b-(new Date).getTime();e.autoplay.timeLeft=i,r("autoplayTimeLeft",i,i/u),n=requestAnimationFrame((()=>{v()}))},A=i=>{if(e.destroyed||!e.autoplay.running)return;cancelAnimationFrame(n),v();let t=void 0===i?e.params.autoplay.delay:i;u=e.params.autoplay.delay,b=e.params.autoplay.delay;const s=(()=>{let i;if(i=e.virtual&&e.params.virtual.enabled?e.slides.filter((e=>e.classList.contains("swiper-slide-active")))[0]:e.slides[e.activeIndex],i)return parseInt(i.getAttribute("data-swiper-autoplay"),10)})();!Number.isNaN(s)&&s>0&&void 0===i&&(t=s,u=s,b=s),p=t;const a=e.params.speed,l=()=>{e&&!e.destroyed&&(e.params.autoplay.reverseDirection?!e.isBeginning||e.params.loop||e.params.rewind?(e.slidePrev(a,!0,!0),r("autoplay")):e.params.autoplay.stopOnLastSlide||(e.slideTo(e.slides.length-1,a,!0,!0),r("autoplay")):!e.isEnd||e.params.loop||e.params.rewind?(e.slideNext(a,!0,!0),r("autoplay")):e.params.autoplay.stopOnLastSlide||(e.slideTo(0,a,!0,!0),r("autoplay")),e.params.cssMode&&(m=(new Date).getTime(),requestAnimationFrame((()=>{A()}))))};return t>0?(clearTimeout(o),o=setTimeout((()=>{l()}),t)):requestAnimationFrame((()=>{l()})),t},y=()=>{e.autoplay.running=!0,A(),r("autoplayStart")},k=()=>{e.autoplay.running=!1,clearTimeout(o),cancelAnimationFrame(n),r("autoplayStop")},x=(i,t)=>{if(e.destroyed||!e.autoplay.running)return;clearTimeout(o),i||(g=!0);const s=()=>{r("autoplayPause"),e.params.autoplay.waitForTransition?e.wrapperEl.addEventListener("transitionend",f):z()};if(e.autoplay.paused=!0,t)return h&&(p=e.params.autoplay.delay),h=!1,void s();p=(p||e.params.autoplay.delay)-((new Date).getTime()-m),e.isEnd&&p<0&&!e.params.loop||(p<0&&(p=0),s())},z=()=>{e.isEnd&&p<0&&!e.params.loop||e.destroyed||!e.autoplay.running||(m=(new Date).getTime(),g?(g=!1,A(p)):A(),e.autoplay.paused=!1,r("autoplayResume"))},B=()=>{if(e.destroyed||!e.autoplay.running)return;const i=s();"hidden"===i.visibilityState&&(g=!0,x(!0)),"visible"===i.visibilityState&&z()},M=e=>{"mouse"===e.pointerType&&(g=!0,x(!0))},Y=i=>{"mouse"===i.pointerType&&e.autoplay.paused&&z()};t("init",(()=>{e.params.autoplay.enabled&&(e.params.autoplay.pauseOnMouseEnter&&(e.el.addEventListener("pointerenter",M),e.el.addEventListener("pointerleave",Y)),s().addEventListener("visibilitychange",B),m=(new Date).getTime(),y())})),t("destroy",(()=>{e.el.removeEventListener("pointerenter",M),e.el.removeEventListener("pointerleave",Y),s().removeEventListener("visibilitychange",B),e.autoplay.running&&k()})),t("beforeTransitionStart",((i,t,r)=>{!e.destroyed&&e.autoplay.running&&(r||!e.params.autoplay.disableOnInteraction?x(!0,!0):k())})),t("sliderFirstMove",(()=>{!e.destroyed&&e.autoplay.running&&(e.params.autoplay.disableOnInteraction?k():(c=!0,d=!1,g=!1,w=setTimeout((()=>{g=!0,d=!0,x(!0)}),200)))})),t("touchEnd",(()=>{if(!e.destroyed&&e.autoplay.running&&c){if(clearTimeout(w),clearTimeout(o),e.params.autoplay.disableOnInteraction)return d=!1,void(c=!1);d&&e.params.cssMode&&z(),d=!1,c=!1}})),t("slideChange",(()=>{!e.destroyed&&e.autoplay.running&&(h=!0)})),Object.assign(e.autoplay,{start:y,stop:k,pause:x,resume:z})}function g({swiper:e,extendParams:i,on:t}){i({thumbs:{swiper:null,multipleActiveThumbs:!0,autoScrollOffset:0,slideThumbActiveClass:"swiper-slide-thumb-active",thumbsContainerClass:"swiper-thumbs"}});let r=!1,n=!1;function p(){const i=e.thumbs.swiper;if(!i||i.destroyed)return;const t=i.clickedIndex,r=i.clickedSlide;if(r&&r.classList.contains(e.params.thumbs.slideThumbActiveClass))return;if(null==t)return;let s;s=i.params.loop?parseInt(i.clickedSlide.getAttribute("data-swiper-slide-index"),10):t,e.params.loop?e.slideToLoop(s):e.slideTo(s)}function l(){const{thumbs:i}=e.params;if(r)return!1;r=!0;const t=e.constructor;if(i.swiper instanceof t)e.thumbs.swiper=i.swiper,Object.assign(e.thumbs.swiper.originalParams,{watchSlidesProgress:!0,slideToClickedSlide:!1}),Object.assign(e.thumbs.swiper.params,{watchSlidesProgress:!0,slideToClickedSlide:!1}),e.thumbs.swiper.update();else if(a(i.swiper)){const r=Object.assign({},i.swiper);Object.assign(r,{watchSlidesProgress:!0,slideToClickedSlide:!1}),e.thumbs.swiper=new t(r),n=!0}return e.thumbs.swiper.el.classList.add(e.params.thumbs.thumbsContainerClass),e.thumbs.swiper.on("tap",p),!0}function c(i){const t=e.thumbs.swiper;if(!t||t.destroyed)return;const r="auto"===t.params.slidesPerView?t.slidesPerViewDynamic():t.params.slidesPerView;let s=1;const a=e.params.thumbs.slideThumbActiveClass;if(e.params.slidesPerView>1&&!e.params.centeredSlides&&(s=e.params.slidesPerView),e.params.thumbs.multipleActiveThumbs||(s=1),s=Math.floor(s),t.slides.forEach((e=>e.classList.remove(a))),t.params.loop||t.params.virtual&&t.params.virtual.enabled)for(let i=0;i<s;i+=1)o(t.slidesEl,`[data-swiper-slide-index="${e.realIndex+i}"]`).forEach((e=>{e.classList.add(a)}));else for(let i=0;i<s;i+=1)t.slides[e.realIndex+i]&&t.slides[e.realIndex+i].classList.add(a);const n=e.params.thumbs.autoScrollOffset,p=n&&!t.params.loop;if(e.realIndex!==t.realIndex||p){const s=t.activeIndex;let a,o;if(t.params.loop){const i=t.slides.filter((i=>i.getAttribute("data-swiper-slide-index")===`${e.realIndex}`))[0];a=t.slides.indexOf(i),o=e.activeIndex>e.previousIndex?"next":"prev"}else a=e.realIndex,o=a>e.previousIndex?"next":"prev";p&&(a+="next"===o?n:-1*n),t.visibleSlidesIndexes&&t.visibleSlidesIndexes.indexOf(a)<0&&(t.params.centeredSlides&&(a=a>s?a-Math.floor(r/2)+1:a+Math.floor(r/2)-1),t.slideTo(a,i?0:void 0))}}e.thumbs={swiper:null},t("beforeInit",(()=>{const{thumbs:i}=e.params;if(i&&i.swiper)if("string"==typeof i.swiper||i.swiper instanceof HTMLElement){const t=s(),r=()=>{const r="string"==typeof i.swiper?t.querySelector(i.swiper):i.swiper;if(r&&r.swiper)i.swiper=r.swiper,l(),c(!0);else if(r){const t=s=>{i.swiper=s.detail[0],r.removeEventListener("init",t),l(),c(!0),i.swiper.update(),e.update()};r.addEventListener("init",t)}return r},a=()=>{e.destroyed||r()||requestAnimationFrame(a)};requestAnimationFrame(a)}else l(),c(!0)})),t("slideChange update resize observerUpdate",(()=>{c()})),t("setTransition",((i,t)=>{const r=e.thumbs.swiper;r&&!r.destroyed&&r.setTransition(t)})),t("beforeDestroy",(()=>{const i=e.thumbs.swiper;i&&!i.destroyed&&n&&i.destroy()})),Object.assign(e.thumbs,{init:l,update:c})}function u({swiper:e,extendParams:i,emit:t,once:r}){i({freeMode:{enabled:!1,momentum:!0,momentumRatio:1,momentumBounce:!0,momentumBounceRatio:1,momentumVelocityRatio:1,sticky:!1,minimumVelocity:.02}}),Object.assign(e,{freeMode:{onTouchStart:function(){if(e.params.cssMode)return;const i=e.getTranslate();e.setTranslate(i),e.setTransition(0),e.touchEventsData.velocities.length=0,e.freeMode.onTouchEnd({currentPos:e.rtl?e.translate:-e.translate})},onTouchMove:function(){if(e.params.cssMode)return;const{touchEventsData:i,touches:t}=e;0===i.velocities.length&&i.velocities.push({position:t[e.isHorizontal()?"startX":"startY"],time:i.touchStartTime}),i.velocities.push({position:t[e.isHorizontal()?"currentX":"currentY"],time:n()})},onTouchEnd:function({currentPos:i}){if(e.params.cssMode)return;const{params:s,wrapperEl:a,rtlTranslate:o,snapGrid:l,touchEventsData:c}=e,d=n()-c.touchStartTime;if(i<-e.minTranslate())e.slideTo(e.activeIndex);else if(i>-e.maxTranslate())e.slideTo(e.slides.length<l.length?l.length-1:e.slides.length-1);else{if(s.freeMode.momentum){if(c.velocities.length>1){const i=c.velocities.pop(),t=c.velocities.pop(),r=i.time-t.time;e.velocity=(i.position-t.position)/r,e.velocity/=2,Math.abs(e.velocity)<s.freeMode.minimumVelocity&&(e.velocity=0),(r>150||n()-i.time>300)&&(e.velocity=0)}else e.velocity=0;e.velocity*=s.freeMode.momentumVelocityRatio,c.velocities.length=0;let i=1e3*s.freeMode.momentumRatio,d=e.translate+e.velocity*i;o&&(d=-d);let w,h=!1;const g=20*Math.abs(e.velocity)*s.freeMode.momentumBounceRatio;let u;if(d<e.maxTranslate())s.freeMode.momentumBounce?(d+e.maxTranslate()<-g&&(d=e.maxTranslate()-g),w=e.maxTranslate(),h=!0,c.allowMomentumBounce=!0):d=e.maxTranslate(),s.loop&&s.centeredSlides&&(u=!0);else if(d>e.minTranslate())s.freeMode.momentumBounce?(d-e.minTranslate()>g&&(d=e.minTranslate()+g),w=e.minTranslate(),h=!0,c.allowMomentumBounce=!0):d=e.minTranslate(),s.loop&&s.centeredSlides&&(u=!0);else if(s.freeMode.sticky){let i;for(let e=0;e<l.length;e+=1)if(l[e]>-d){i=e;break}d=Math.abs(l[i]-d)<Math.abs(l[i-1]-d)||"next"===e.swipeDirection?l[i]:l[i-1],d=-d}if(u&&r("transitionEnd",(()=>{e.loopFix()})),0!==e.velocity){if(i=o?Math.abs((-d-e.translate)/e.velocity):Math.abs((d-e.translate)/e.velocity),s.freeMode.sticky){const t=Math.abs((o?-d:d)-e.translate),r=e.slidesSizesGrid[e.activeIndex];i=t<r?s.speed:t<2*r?1.5*s.speed:2.5*s.speed}}else if(s.freeMode.sticky)return void e.slideToClosest();s.freeMode.momentumBounce&&h?(e.updateProgress(w),e.setTransition(i),e.setTranslate(d),e.transitionStart(!0,e.swipeDirection),e.animating=!0,p(a,(()=>{e&&!e.destroyed&&c.allowMomentumBounce&&(t("momentumBounce"),e.setTransition(s.speed),setTimeout((()=>{e.setTranslate(w),p(a,(()=>{e&&!e.destroyed&&e.transitionEnd()}))}),0))}))):e.velocity?(t("_freeModeNoMomentumRelease"),e.updateProgress(d),e.setTransition(i),e.setTranslate(d),e.transitionStart(!0,e.swipeDirection),e.animating||(e.animating=!0,p(a,(()=>{e&&!e.destroyed&&e.transitionEnd()})))):e.updateProgress(d),e.updateActiveIndex(),e.updateSlidesClasses()}else{if(s.freeMode.sticky)return void e.slideToClosest();s.freeMode&&t("_freeModeNoMomentumRelease")}(!s.freeMode.momentum||d>=s.longSwipesMs)&&(e.updateProgress(),e.updateActiveIndex(),e.updateSlidesClasses())}}}})}function b({swiper:e,extendParams:i}){let t,r,s;i({grid:{rows:1,fill:"column"}});const a=()=>{let i=e.params.spaceBetween;return"string"==typeof i&&i.indexOf("%")>=0?i=parseFloat(i.replace("%",""))/100*e.size:"string"==typeof i&&(i=parseFloat(i)),i};e.grid={initSlides:i=>{const{slidesPerView:a}=e.params,{rows:o,fill:n}=e.params.grid;s=Math.floor(i/o),t=Math.floor(i/o)===i/o?i:Math.ceil(i/o)*o,"auto"!==a&&"row"===n&&(t=Math.max(t,a*o)),r=t/o},updateSlide:(i,o,n,p)=>{const{slidesPerGroup:l}=e.params,c=a(),{rows:d,fill:w}=e.params.grid;let h,g,u;if("row"===w&&l>1){const e=Math.floor(i/(l*d)),r=i-d*l*e,s=0===e?l:Math.min(Math.ceil((n-e*d*l)/d),l);u=Math.floor(r/s),g=r-u*s+e*l,h=g+u*t/d,o.style.order=h}else"column"===w?(g=Math.floor(i/d),u=i-g*d,(g>s||g===s&&u===d-1)&&(u+=1,u>=d&&(u=0,g+=1))):(u=Math.floor(i/r),g=i-u*r);o.row=u,o.column=g,o.style[p("margin-top")]=0!==u?c&&`${c}px`:""},updateWrapperSize:(i,r,s)=>{const{centeredSlides:o,roundLengths:n}=e.params,p=a(),{rows:l}=e.params.grid;if(e.virtualSize=(i+p)*t,e.virtualSize=Math.ceil(e.virtualSize/l)-p,e.wrapperEl.style[s("width")]=`${e.virtualSize+p}px`,o){const i=[];for(let t=0;t<r.length;t+=1){let s=r[t];n&&(s=Math.floor(s)),r[t]<e.virtualSize+r[0]&&i.push(s)}r.splice(0,r.length),r.push(...i)}}}}function m(e,i){const t=l(i);return t!==i&&(t.style.backfaceVisibility="hidden",t.style["-webkit-backface-visibility"]="hidden"),t}function f({swiper:e,extendParams:i,on:t}){i({fadeEffect:{crossFade:!1}}),function(e){const{effect:i,swiper:t,on:r,setTranslate:s,setTransition:a,overwriteParams:o,perspective:n,recreateShadows:p,getEffectParams:l}=e;let c;r("beforeInit",(()=>{if(t.params.effect!==i)return;t.classNames.push(`${t.params.containerModifierClass}${i}`),n&&n()&&t.classNames.push(`${t.params.containerModifierClass}3d`);const e=o?o():{};Object.assign(t.params,e),Object.assign(t.originalParams,e)})),r("setTranslate",(()=>{t.params.effect===i&&s()})),r("setTransition",((e,r)=>{t.params.effect===i&&a(r)})),r("transitionEnd",(()=>{if(t.params.effect===i&&p){if(!l||!l().slideShadows)return;t.slides.forEach((e=>{e.querySelectorAll(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").forEach((e=>e.remove()))})),p()}})),r("virtualUpdate",(()=>{t.params.effect===i&&(t.slides.length||(c=!0),requestAnimationFrame((()=>{c&&t.slides&&t.slides.length&&(s(),c=!1)})))}))}({effect:"fade",swiper:e,on:t,setTranslate:()=>{const{slides:i}=e;for(let t=0;t<i.length;t+=1){const i=e.slides[t];let r=-i.swiperSlideOffset;e.params.virtualTranslate||(r-=e.translate);let s=0;e.isHorizontal()||(s=r,r=0);const a=e.params.fadeEffect.crossFade?Math.max(1-Math.abs(i.progress),0):1+Math.min(Math.max(i.progress,-1),0),o=m(0,i);o.style.opacity=a,o.style.transform=`translate3d(${r}px, ${s}px, 0px)`}},setTransition:i=>{const t=e.slides.map((e=>l(e)));t.forEach((e=>{e.style.transitionDuration=`${i}ms`})),function({swiper:e,duration:i,transformElements:t,allSlides:r}){const{activeIndex:s}=e;if(e.params.virtualTranslate&&0!==i){let i,a=!1;i=r?t:t.filter((i=>{const t=i.classList.contains("swiper-slide-transform")?(i=>i.parentElement?i.parentElement:e.slides.filter((e=>e.shadowEl&&e.shadowEl===i.parentNode))[0])(i):i;return e.getSlideIndex(t)===s})),i.forEach((i=>{p(i,(()=>{if(a)return;if(!e||e.destroyed)return;a=!0,e.animating=!1;const i=new window.CustomEvent("transitionend",{bubbles:!0,cancelable:!0});e.wrapperEl.dispatchEvent(i)}))}))}}({swiper:e,duration:i,transformElements:t,allSlides:!0})},overwriteParams:()=>({slidesPerView:1,slidesPerGroup:1,watchSlidesProgress:!0,spaceBetween:0,virtualTranslate:!e.params.cssMode})})}const v=class{constructor(i){e(this,i),this.caseStudiesThumbs=null,this.caseStudiesSlides=null,this.tabs=[],this.tabPanels=[],this.activeTabIndex=0,this.firstTab=null,this.lastTab=null}componentDidLoad(){this.renderSlides("swiper-slide-thumb","swiper-wrapper-thumbs"),this.renderSlides("swiper-slide-content","swiper-wrapper-content"),this.initializeTabs(),this.initSlider(),this.slideChangeHandler(),setTimeout((()=>{this.initSlider()}),3100)}initializeTabs(){var e,i;const t=null===(e=this.caeStudiesThumbRef)||void 0===e?void 0:e.querySelector(".swiper-wrapper-thumbs");if(!t)return;this.tabs=Array.from(t.querySelectorAll(".swiper-slide-thumb")),this.tabPanels=Array.from((null===(i=this.caseStudiesSlidesRef)||void 0===i?void 0:i.querySelectorAll(".swiper-slide-content"))||[]),this.tabs.forEach(((e,i)=>{e.setAttribute("role","tab"),e.setAttribute("aria-selected","false"),e.setAttribute("aria-controls",`tabpanel-${i}`),e.setAttribute("tabindex","-1"),e.id=`tab-${i}`,0===i&&(this.firstTab=e),this.lastTab=e}));const r=this.caeStudiesThumbRef;r&&(r.setAttribute("role","tablist"),r.setAttribute("aria-label","Case Studies Tabs")),this.tabs.length>0&&this.setSelectedTab(0)}setSelectedTab(e){this.tabs.forEach(((i,t)=>{var r;t===e?(i.setAttribute("aria-selected","true"),i.setAttribute("tabindex","0"),this.tabPanels[t].classList.remove("is-hidden"),null===(r=this.caseStudiesSlides)||void 0===r||r.slideTo(t),this.activeTabIndex=t):(i.setAttribute("aria-selected","false"),i.setAttribute("tabindex","-1"),this.tabPanels[t].classList.add("is-hidden"))}))}handleKeyDown(e){const i=e.currentTarget;let t=!1;switch(e.key){case"ArrowRight":this.moveFocusToNextTab(i),t=!0;break;case"ArrowLeft":this.moveFocusToPreviousTab(i),t=!0;break;case"Enter":case" ":const e=this.tabs.indexOf(i);-1!==e&&(this.setSelectedTab(e),t=!0)}t&&(e.stopPropagation(),e.preventDefault())}moveFocusToTab(e){e.focus()}moveFocusToPreviousTab(e){if(e===this.firstTab)this.lastTab&&this.moveFocusToTab(this.lastTab);else{const i=this.tabs.indexOf(e);i>0&&this.moveFocusToTab(this.tabs[i-1])}}moveFocusToNextTab(e){if(e===this.lastTab)this.firstTab&&this.moveFocusToTab(this.firstTab);else{const i=this.tabs.indexOf(e);i<this.tabs.length-1&&this.moveFocusToTab(this.tabs[i+1])}}initSlider(){this.caeStudiesThumbRef&&!this.caseStudiesThumbs&&(this.caseStudiesThumbs=new c(this.caeStudiesThumbRef,{modules:[d,w,u,b],loop:!1,slidesPerView:"auto",freeMode:!0,watchSlidesProgress:!0,centerInsufficientSlides:!0,breakpoints:{992:{slidesPerView:7}}})),this.caseStudiesSlidesRef&&!this.caseStudiesSlides&&(this.caseStudiesSlides=new c(this.caseStudiesSlidesRef,{modules:[d,w,g,h,f],loop:!1,grabCursor:!0,effect:"fade",autoplay:{delay:2e4,disableOnInteraction:!1,waitForTransition:!0},thumbs:{swiper:this.caseStudiesThumbs},pagination:{el:this.paginationRef,clickable:!0},keyboard:{enabled:!1}}))}slideChangeHandler(){this.caseStudiesSlides&&this.caseStudiesSlides.on("slideChange",(()=>{var e;const i=this.caseStudiesSlides.activeIndex;this.setSelectedTab(i);const t=null===(e=this.caseStudiesSlides.slides[i].querySelector("ptc-text-copy-with-background"))||void 0===e?void 0:e.shadowRoot;if(t){const e=t.querySelector(".card-wrap"),i=null==e?void 0:e.parentNode;i&&e&&(i.removeChild(e),i.appendChild(e))}}))}renderSlides(e,i){const t=Array.from(this.hostElement.querySelectorAll("."+e));if(t.length>0){const e=this.hostElement.shadowRoot.querySelector("."+i);t.forEach(((i,t)=>{const r=i.cloneNode(!0);e.appendChild(r),r.addEventListener("keydown",(e=>this.handleKeyDown(e)));const s=r.querySelector("img");s&&s.addEventListener("click",(()=>{var e;null===(e=this.caseStudiesSlides)||void 0===e||e.slideTo(t)}))}))}}render(){return i(t,null,i("div",{class:"ptc-container"},i("div",{class:"case-studies-thumbs swiper",ref:e=>this.caeStudiesThumbRef=e},i("span",{class:"hide"},i("slot",{name:"thumb-slides"})),i("div",{class:"swiper-wrapper swiper-wrapper-thumbs"}))),i("div",{class:"case-studies-slides swiper",ref:e=>this.caseStudiesSlidesRef=e},i("span",{class:"hide"},i("slot",{name:"content-slides"})),i("div",{class:"swiper-wrapper swiper-wrapper-content"}),i("div",{class:"swiper-pagination",ref:e=>this.paginationRef=e})))}get hostElement(){return r(this)}};v.style="@font-face{font-family:'swiper-icons';src:url('data:application/font-woff;charset=utf-8;base64, d09GRgABAAAAAAZgABAAAAAADAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABGRlRNAAAGRAAAABoAAAAci6qHkUdERUYAAAWgAAAAIwAAACQAYABXR1BPUwAABhQAAAAuAAAANuAY7+xHU1VCAAAFxAAAAFAAAABm2fPczU9TLzIAAAHcAAAASgAAAGBP9V5RY21hcAAAAkQAAACIAAABYt6F0cBjdnQgAAACzAAAAAQAAAAEABEBRGdhc3AAAAWYAAAACAAAAAj//wADZ2x5ZgAAAywAAADMAAAD2MHtryVoZWFkAAABbAAAADAAAAA2E2+eoWhoZWEAAAGcAAAAHwAAACQC9gDzaG10eAAAAigAAAAZAAAArgJkABFsb2NhAAAC0AAAAFoAAABaFQAUGG1heHAAAAG8AAAAHwAAACAAcABAbmFtZQAAA/gAAAE5AAACXvFdBwlwb3N0AAAFNAAAAGIAAACE5s74hXjaY2BkYGAAYpf5Hu/j+W2+MnAzMYDAzaX6QjD6/4//Bxj5GA8AuRwMYGkAPywL13jaY2BkYGA88P8Agx4j+/8fQDYfA1AEBWgDAIB2BOoAeNpjYGRgYNBh4GdgYgABEMnIABJzYNADCQAACWgAsQB42mNgYfzCOIGBlYGB0YcxjYGBwR1Kf2WQZGhhYGBiYGVmgAFGBiQQkOaawtDAoMBQxXjg/wEGPcYDDA4wNUA2CCgwsAAAO4EL6gAAeNpj2M0gyAACqxgGNWBkZ2D4/wMA+xkDdgAAAHjaY2BgYGaAYBkGRgYQiAHyGMF8FgYHIM3DwMHABGQrMOgyWDLEM1T9/w8UBfEMgLzE////P/5//f/V/xv+r4eaAAeMbAxwIUYmIMHEgKYAYjUcsDAwsLKxc3BycfPw8jEQA/gZBASFhEVExcQlJKWkZWTl5BUUlZRVVNXUNTQZBgMAAMR+E+gAEQFEAAAAKgAqACoANAA+AEgAUgBcAGYAcAB6AIQAjgCYAKIArAC2AMAAygDUAN4A6ADyAPwBBgEQARoBJAEuATgBQgFMAVYBYAFqAXQBfgGIAZIBnAGmAbIBzgHsAAB42u2NMQ6CUAyGW568x9AneYYgm4MJbhKFaExIOAVX8ApewSt4Bic4AfeAid3VOBixDxfPYEza5O+Xfi04YADggiUIULCuEJK8VhO4bSvpdnktHI5QCYtdi2sl8ZnXaHlqUrNKzdKcT8cjlq+rwZSvIVczNiezsfnP/uznmfPFBNODM2K7MTQ45YEAZqGP81AmGGcF3iPqOop0r1SPTaTbVkfUe4HXj97wYE+yNwWYxwWu4v1ugWHgo3S1XdZEVqWM7ET0cfnLGxWfkgR42o2PvWrDMBSFj/IHLaF0zKjRgdiVMwScNRAoWUoH78Y2icB/yIY09An6AH2Bdu/UB+yxopYshQiEvnvu0dURgDt8QeC8PDw7Fpji3fEA4z/PEJ6YOB5hKh4dj3EvXhxPqH/SKUY3rJ7srZ4FZnh1PMAtPhwP6fl2PMJMPDgeQ4rY8YT6Gzao0eAEA409DuggmTnFnOcSCiEiLMgxCiTI6Cq5DZUd3Qmp10vO0LaLTd2cjN4fOumlc7lUYbSQcZFkutRG7g6JKZKy0RmdLY680CDnEJ+UMkpFFe1RN7nxdVpXrC4aTtnaurOnYercZg2YVmLN/d/gczfEimrE/fs/bOuq29Zmn8tloORaXgZgGa78yO9/cnXm2BpaGvq25Dv9S4E9+5SIc9PqupJKhYFSSl47+Qcr1mYNAAAAeNptw0cKwkAAAMDZJA8Q7OUJvkLsPfZ6zFVERPy8qHh2YER+3i/BP83vIBLLySsoKimrqKqpa2hp6+jq6RsYGhmbmJqZSy0sraxtbO3sHRydnEMU4uR6yx7JJXveP7WrDycAAAAAAAH//wACeNpjYGRgYOABYhkgZgJCZgZNBkYGLQZtIJsFLMYAAAw3ALgAeNolizEKgDAQBCchRbC2sFER0YD6qVQiBCv/H9ezGI6Z5XBAw8CBK/m5iQQVauVbXLnOrMZv2oLdKFa8Pjuru2hJzGabmOSLzNMzvutpB3N42mNgZGBg4GKQYzBhYMxJLMlj4GBgAYow/P/PAJJhLM6sSoWKfWCAAwDAjgbRAAB42mNgYGBkAIIbCZo5IPrmUn0hGA0AO8EFTQAA');font-weight:400;font-style:normal}:root{--swiper-theme-color:#007aff;}.swiper,swiper-container{margin-left:auto;margin-right:auto;position:relative;overflow:hidden;list-style:none;padding:0;z-index:1;display:block}.swiper-vertical>.swiper-wrapper{flex-direction:column}.swiper-wrapper{position:relative;width:100%;height:100%;z-index:1;display:flex;transition-property:transform;transition-timing-function:var(--swiper-wrapper-transition-timing-function, initial);box-sizing:content-box}.swiper-android .swiper-slide,.swiper-wrapper{transform:translate3d(0px, 0, 0)}.swiper-horizontal{touch-action:pan-y}.swiper-vertical{touch-action:pan-x}.swiper-slide,swiper-slide{flex-shrink:0;width:100%;height:100%;position:relative;transition-property:transform;display:block}.swiper-slide-invisible-blank{visibility:hidden}.swiper-autoheight,.swiper-autoheight .swiper-slide{height:auto}.swiper-autoheight .swiper-wrapper{align-items:flex-start;transition-property:transform, height}.swiper-backface-hidden .swiper-slide{transform:translateZ(0);-webkit-backface-visibility:hidden;backface-visibility:hidden}.swiper-3d.swiper-css-mode .swiper-wrapper{perspective:1200px}.swiper-3d .swiper-wrapper{transform-style:preserve-3d}.swiper-3d{perspective:1200px}.swiper-3d .swiper-slide,.swiper-3d .swiper-slide-shadow,.swiper-3d .swiper-slide-shadow-left,.swiper-3d .swiper-slide-shadow-right,.swiper-3d .swiper-slide-shadow-top,.swiper-3d .swiper-slide-shadow-bottom,.swiper-3d .swiper-cube-shadow{transform-style:preserve-3d}.swiper-3d .swiper-slide-shadow,.swiper-3d .swiper-slide-shadow-left,.swiper-3d .swiper-slide-shadow-right,.swiper-3d .swiper-slide-shadow-top,.swiper-3d .swiper-slide-shadow-bottom{position:absolute;left:0;top:0;width:100%;height:100%;pointer-events:none;z-index:10}.swiper-3d .swiper-slide-shadow{background:rgba(0, 0, 0, 0.15)}.swiper-3d .swiper-slide-shadow-left{background-image:linear-gradient(to left, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0))}.swiper-3d .swiper-slide-shadow-right{background-image:linear-gradient(to right, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0))}.swiper-3d .swiper-slide-shadow-top{background-image:linear-gradient(to top, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0))}.swiper-3d .swiper-slide-shadow-bottom{background-image:linear-gradient(to bottom, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0))}.swiper-css-mode>.swiper-wrapper{overflow:auto;scrollbar-width:none;-ms-overflow-style:none;}.swiper-css-mode>.swiper-wrapper::-webkit-scrollbar{display:none}.swiper-css-mode>.swiper-wrapper>.swiper-slide{scroll-snap-align:start start}.swiper-horizontal.swiper-css-mode>.swiper-wrapper{scroll-snap-type:x mandatory}.swiper-vertical.swiper-css-mode>.swiper-wrapper{scroll-snap-type:y mandatory}.swiper-css-mode.swiper-free-mode>.swiper-wrapper{scroll-snap-type:none}.swiper-css-mode.swiper-free-mode>.swiper-wrapper>.swiper-slide{scroll-snap-align:none}.swiper-centered>.swiper-wrapper::before{content:'';flex-shrink:0;order:9999}.swiper-centered>.swiper-wrapper>.swiper-slide{scroll-snap-align:center center;scroll-snap-stop:always}.swiper-centered.swiper-horizontal>.swiper-wrapper>.swiper-slide:first-child{margin-inline-start:var(--swiper-centered-offset-before)}.swiper-centered.swiper-horizontal>.swiper-wrapper::before{height:100%;min-height:1px;width:var(--swiper-centered-offset-after)}.swiper-centered.swiper-vertical>.swiper-wrapper>.swiper-slide:first-child{margin-block-start:var(--swiper-centered-offset-before)}.swiper-centered.swiper-vertical>.swiper-wrapper::before{width:100%;min-width:1px;height:var(--swiper-centered-offset-after)}.swiper-lazy-preloader{width:42px;height:42px;position:absolute;left:50%;top:50%;margin-left:-21px;margin-top:-21px;z-index:10;transform-origin:50%;box-sizing:border-box;border:4px solid var(--swiper-preloader-color, var(--swiper-theme-color));border-radius:50%;border-top-color:transparent}.swiper:not(.swiper-watch-progress) .swiper-lazy-preloader,swiper-container:not(.swiper-watch-progress) .swiper-lazy-preloader,.swiper-watch-progress .swiper-slide-visible .swiper-lazy-preloader{animation:swiper-preloader-spin 1s infinite linear}.swiper-lazy-preloader-white{--swiper-preloader-color:#fff}.swiper-lazy-preloader-black{--swiper-preloader-color:#000}@keyframes swiper-preloader-spin{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}.swiper-virtual .swiper-slide{-webkit-backface-visibility:hidden;transform:translateZ(0)}.swiper-virtual.swiper-css-mode .swiper-wrapper::after{content:'';position:absolute;left:0;top:0;pointer-events:none}.swiper-virtual.swiper-css-mode.swiper-horizontal .swiper-wrapper::after{height:1px;width:var(--swiper-virtual-size)}.swiper-virtual.swiper-css-mode.swiper-vertical .swiper-wrapper::after{width:1px;height:var(--swiper-virtual-size)}:root{--swiper-navigation-size:44px;}.swiper-button-prev,.swiper-button-next{position:absolute;top:var(--swiper-navigation-top-offset, 50%);width:calc(var(--swiper-navigation-size) / 44 * 27);height:var(--swiper-navigation-size);margin-top:calc(0px - (var(--swiper-navigation-size) / 2));z-index:10;cursor:pointer;display:flex;align-items:center;justify-content:center;color:var(--swiper-navigation-color, var(--swiper-theme-color))}.swiper-button-prev.swiper-button-disabled,.swiper-button-next.swiper-button-disabled{opacity:0.35;cursor:auto;pointer-events:none}.swiper-button-prev.swiper-button-hidden,.swiper-button-next.swiper-button-hidden{opacity:0;cursor:auto;pointer-events:none}.swiper-navigation-disabled .swiper-button-prev,.swiper-navigation-disabled .swiper-button-next{display:none !important}.swiper-button-prev:after,.swiper-button-next:after{font-family:swiper-icons;font-size:var(--swiper-navigation-size);text-transform:none !important;letter-spacing:0;font-variant:initial;line-height:1}.swiper-button-prev,.swiper-rtl .swiper-button-next{left:var(--swiper-navigation-sides-offset, 10px);right:auto}.swiper-button-prev:after,.swiper-rtl .swiper-button-next:after{content:'prev'}.swiper-button-next,.swiper-rtl .swiper-button-prev{right:var(--swiper-navigation-sides-offset, 10px);left:auto}.swiper-button-next:after,.swiper-rtl .swiper-button-prev:after{content:'next'}.swiper-button-lock{display:none}:root{}.swiper-pagination{position:absolute;text-align:center;transition:300ms opacity;transform:translate3d(0, 0, 0);z-index:10}.swiper-pagination.swiper-pagination-hidden{opacity:0}.swiper-pagination-disabled>.swiper-pagination,.swiper-pagination.swiper-pagination-disabled{display:none !important}.swiper-pagination-fraction,.swiper-pagination-custom,.swiper-horizontal>.swiper-pagination-bullets,.swiper-pagination-bullets.swiper-pagination-horizontal{bottom:var(--swiper-pagination-bottom, 8px);top:var(--swiper-pagination-top, auto);left:0;width:100%}.swiper-pagination-bullets-dynamic{overflow:hidden;font-size:0}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet{transform:scale(0.33);position:relative}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active{transform:scale(1)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-main{transform:scale(1)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-prev{transform:scale(0.66)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-prev-prev{transform:scale(0.33)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-next{transform:scale(0.66)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-next-next{transform:scale(0.33)}.swiper-pagination-bullet{width:var(--swiper-pagination-bullet-width, var(--swiper-pagination-bullet-size, 8px));height:var(--swiper-pagination-bullet-height, var(--swiper-pagination-bullet-size, 8px));display:inline-block;border-radius:var(--swiper-pagination-bullet-border-radius, 50%);background:var(--swiper-pagination-bullet-inactive-color, #000);opacity:var(--swiper-pagination-bullet-inactive-opacity, 0.2)}button.swiper-pagination-bullet{border:none;margin:0;padding:0;box-shadow:none;-webkit-appearance:none;appearance:none}.swiper-pagination-clickable .swiper-pagination-bullet{cursor:pointer}.swiper-pagination-bullet:only-child{display:none !important}.swiper-pagination-bullet-active{opacity:var(--swiper-pagination-bullet-opacity, 1);background:var(--swiper-pagination-color, var(--swiper-theme-color))}.swiper-vertical>.swiper-pagination-bullets,.swiper-pagination-vertical.swiper-pagination-bullets{right:var(--swiper-pagination-right, 8px);left:var(--swiper-pagination-left, auto);top:50%;transform:translate3d(0px, -50%, 0)}.swiper-vertical>.swiper-pagination-bullets .swiper-pagination-bullet,.swiper-pagination-vertical.swiper-pagination-bullets .swiper-pagination-bullet{margin:var(--swiper-pagination-bullet-vertical-gap, 6px) 0;display:block}.swiper-vertical>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic,.swiper-pagination-vertical.swiper-pagination-bullets.swiper-pagination-bullets-dynamic{top:50%;transform:translateY(-50%);width:8px}.swiper-vertical>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet,.swiper-pagination-vertical.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet{display:inline-block;transition:200ms transform, 200ms top}.swiper-horizontal>.swiper-pagination-bullets .swiper-pagination-bullet,.swiper-pagination-horizontal.swiper-pagination-bullets .swiper-pagination-bullet{margin:0 var(--swiper-pagination-bullet-horizontal-gap, 4px)}.swiper-horizontal>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic,.swiper-pagination-horizontal.swiper-pagination-bullets.swiper-pagination-bullets-dynamic{left:50%;transform:translateX(-50%);white-space:nowrap}.swiper-horizontal>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet,.swiper-pagination-horizontal.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet{transition:200ms transform, 200ms left}.swiper-horizontal.swiper-rtl>.swiper-pagination-bullets-dynamic .swiper-pagination-bullet,:host(.swiper-horizontal.swiper-rtl) .swiper-pagination-bullets-dynamic .swiper-pagination-bullet{transition:200ms transform, 200ms right}.swiper-pagination-fraction{color:var(--swiper-pagination-fraction-color, inherit)}.swiper-pagination-progressbar{background:var(--swiper-pagination-progressbar-bg-color, rgba(0, 0, 0, 0.25));position:absolute;}.swiper-pagination-progressbar .swiper-pagination-progressbar-fill{background:var(--swiper-pagination-color, var(--swiper-theme-color));position:absolute;left:0;top:0;width:100%;height:100%;transform:scale(0);transform-origin:left top}.swiper-rtl .swiper-pagination-progressbar .swiper-pagination-progressbar-fill{transform-origin:right top}.swiper-horizontal>.swiper-pagination-progressbar,.swiper-pagination-progressbar.swiper-pagination-horizontal,.swiper-vertical>.swiper-pagination-progressbar.swiper-pagination-progressbar-opposite,.swiper-pagination-progressbar.swiper-pagination-vertical.swiper-pagination-progressbar-opposite{width:100%;height:var(--swiper-pagination-progressbar-size, 4px);left:0;top:0}.swiper-vertical>.swiper-pagination-progressbar,.swiper-pagination-progressbar.swiper-pagination-vertical,.swiper-horizontal>.swiper-pagination-progressbar.swiper-pagination-progressbar-opposite,.swiper-pagination-progressbar.swiper-pagination-horizontal.swiper-pagination-progressbar-opposite{width:var(--swiper-pagination-progressbar-size, 4px);height:100%;left:0;top:0}.swiper-pagination-lock{display:none}:root{}.swiper-scrollbar{border-radius:var(--swiper-scrollbar-border-radius, 10px);position:relative;-ms-touch-action:none;background:var(--swiper-scrollbar-bg-color, rgba(0, 0, 0, 0.1))}.swiper-scrollbar-disabled>.swiper-scrollbar,.swiper-scrollbar.swiper-scrollbar-disabled{display:none !important}.swiper-horizontal>.swiper-scrollbar,.swiper-scrollbar.swiper-scrollbar-horizontal{position:absolute;left:var(--swiper-scrollbar-sides-offset, 1%);bottom:var(--swiper-scrollbar-bottom, 4px);top:var(--swiper-scrollbar-top, auto);z-index:50;height:var(--swiper-scrollbar-size, 4px);width:calc(100% - 2 * var(--swiper-scrollbar-sides-offset, 1%))}.swiper-vertical>.swiper-scrollbar,.swiper-scrollbar.swiper-scrollbar-vertical{position:absolute;left:var(--swiper-scrollbar-left, auto);right:var(--swiper-scrollbar-right, 4px);top:var(--swiper-scrollbar-sides-offset, 1%);z-index:50;width:var(--swiper-scrollbar-size, 4px);height:calc(100% - 2 * var(--swiper-scrollbar-sides-offset, 1%))}.swiper-scrollbar-drag{height:100%;width:100%;position:relative;background:var(--swiper-scrollbar-drag-bg-color, rgba(0, 0, 0, 0.5));border-radius:var(--swiper-scrollbar-border-radius, 10px);left:0;top:0}.swiper-scrollbar-cursor-drag{cursor:move}.swiper-scrollbar-lock{display:none}.swiper-zoom-container{width:100%;height:100%;display:flex;justify-content:center;align-items:center;text-align:center}.swiper-zoom-container>img,.swiper-zoom-container>svg,.swiper-zoom-container>canvas{max-width:100%;max-height:100%;object-fit:contain}.swiper-slide-zoomed{cursor:move;touch-action:none}.swiper .swiper-notification,swiper-container .swiper-notification{position:absolute;left:0;top:0;pointer-events:none;opacity:0;z-index:-1000}.swiper-free-mode>.swiper-wrapper{transition-timing-function:ease-out;margin:0 auto}.swiper-grid>.swiper-wrapper{flex-wrap:wrap}.swiper-grid-column>.swiper-wrapper{flex-wrap:wrap;flex-direction:column}.swiper-fade.swiper-free-mode .swiper-slide{transition-timing-function:ease-out}.swiper-fade .swiper-slide{pointer-events:none;transition-property:opacity}.swiper-fade .swiper-slide .swiper-slide{pointer-events:none}.swiper-fade .swiper-slide-active,.swiper-fade .swiper-slide-active .swiper-slide-active{pointer-events:auto}.swiper-cube{overflow:visible}.swiper-cube .swiper-slide{pointer-events:none;-webkit-backface-visibility:hidden;backface-visibility:hidden;z-index:1;visibility:hidden;transform-origin:0 0;width:100%;height:100%}.swiper-cube .swiper-slide .swiper-slide{pointer-events:none}.swiper-cube.swiper-rtl .swiper-slide{transform-origin:100% 0}.swiper-cube .swiper-slide-active,.swiper-cube .swiper-slide-active .swiper-slide-active{pointer-events:auto}.swiper-cube .swiper-slide-active,.swiper-cube .swiper-slide-next,.swiper-cube .swiper-slide-prev,.swiper-cube .swiper-slide-next+.swiper-slide{pointer-events:auto;visibility:visible}.swiper-cube .swiper-slide-shadow-top,.swiper-cube .swiper-slide-shadow-bottom,.swiper-cube .swiper-slide-shadow-left,.swiper-cube .swiper-slide-shadow-right{z-index:0;-webkit-backface-visibility:hidden;backface-visibility:hidden}.swiper-cube .swiper-cube-shadow{position:absolute;left:0;bottom:0px;width:100%;height:100%;opacity:0.6;z-index:0}.swiper-cube .swiper-cube-shadow:before{content:'';background:#000;position:absolute;left:0;top:0;bottom:0;right:0;filter:blur(50px)}.swiper-flip{overflow:visible}.swiper-flip .swiper-slide{pointer-events:none;-webkit-backface-visibility:hidden;backface-visibility:hidden;z-index:1}.swiper-flip .swiper-slide .swiper-slide{pointer-events:none}.swiper-flip .swiper-slide-active,.swiper-flip .swiper-slide-active .swiper-slide-active{pointer-events:auto}.swiper-flip .swiper-slide-shadow-top,.swiper-flip .swiper-slide-shadow-bottom,.swiper-flip .swiper-slide-shadow-left,.swiper-flip .swiper-slide-shadow-right{z-index:0;-webkit-backface-visibility:hidden;backface-visibility:hidden}.swiper-creative .swiper-slide{-webkit-backface-visibility:hidden;backface-visibility:hidden;overflow:hidden;transition-property:transform, opacity, height}.swiper-cards{overflow:visible}.swiper-cards .swiper-slide{transform-origin:center bottom;-webkit-backface-visibility:hidden;backface-visibility:hidden;overflow:hidden}h1,h2,h3,h4,h5,h6,p,ul,li,ptc-subnav,ptc-tab-list,ptc-link,ptc-square-card,.hyphenate-text,ptc-footer{word-break:break-word;hyphens:manual;-webkit-hyphens:manual;-moz-hyphens:manual;-ms-hyphens:manual}@supports (hyphenate-limit-chars: 12 3 3){h1,h2,h3,h4,h5,h6,p,ul,li,ptc-subnav,ptc-tab-list,ptc-link,ptc-square-card,.hyphenate-text,ptc-footer{hyphens:auto;-webkit-hyphenate-limit-before:3;-webkit-hyphenate-limit-after:3;hyphenate-limit-chars:12 3 3;hyphenate-limit-lines:2;hyphenate-limit-last:always;hyphenate-limit-zone:6%;-webkit-hyphens:auto;-webkit-hyphenate-limit-before:3;-webkit-hyphenate-limit-after:3;-webkit-hyphenate-limit-chars:12 3 3;-webkit-hyphenate-limit-lines:2;-moz-hyphens:auto;-moz-hyphenate-limit-chars:12 3 3;-moz-hyphenate-limit-lines:2;-ms-hyphens:auto;-ms-hyphenate-limit-chars:12 3 3;-ms-hyphenate-limit-lines:2}}a{font-family:var(--ptc-font-latin);font-style:var(--ptc-font-style-normal);text-decoration-line:underline;color:var(--color-hyperlink);transition:color var(--ptc-transition-medium) var(--ptc-ease-out);font-weight:var(--ptc-font-weight-bold)}a:visited{color:var(--color-blue-10)}a:active,a:visited:active{transition:none;color:var(--color-blue-09)}a:hover,a:visited:hover{color:var(--color-blue-08)}a.disabled{color:var(--color-gray-04) !important;cursor:not-allowed}a:focus-visible{outline:5px solid #003DD6 !important;outline-offset:0px !important;border-radius:var(--ptc-border-radius-standard)}.light-links a:not(.hero-footer-form-wrapper a,ptc-modal inline-form a,.podcast-cta-section a),.light-links a.light-link,.background-grey-10 a:not(.hero-footer-form-wrapper a,ptc-modal inline-form a,.podcast-cta-section a),.background-grey-10 a.light-link,.background-plm-grey a:not(.hero-footer-form-wrapper a,ptc-modal inline-form a,.podcast-cta-section a),.background-plm-grey a.light-link{color:var(--color-blue-04);margin:-2px;border:2px solid transparent}.light-links a:not(.hero-footer-form-wrapper a,ptc-modal inline-form a,.podcast-cta-section a):visited,.light-links a.light-link:visited,.background-grey-10 a:not(.hero-footer-form-wrapper a,ptc-modal inline-form a,.podcast-cta-section a):visited,.background-grey-10 a.light-link:visited,.background-plm-grey a:not(.hero-footer-form-wrapper a,ptc-modal inline-form a,.podcast-cta-section a):visited,.background-plm-grey a.light-link:visited{color:var(--color-blue-06)}.light-links a:not(.hero-footer-form-wrapper a,ptc-modal inline-form a,.podcast-cta-section a):active,.light-links a:not(.hero-footer-form-wrapper a,ptc-modal inline-form a,.podcast-cta-section a):visited:active,.light-links a.light-link:active,.light-links a.light-link:visited:active,.background-grey-10 a:not(.hero-footer-form-wrapper a,ptc-modal inline-form a,.podcast-cta-section a):active,.background-grey-10 a:not(.hero-footer-form-wrapper a,ptc-modal inline-form a,.podcast-cta-section a):visited:active,.background-grey-10 a.light-link:active,.background-grey-10 a.light-link:visited:active,.background-plm-grey a:not(.hero-footer-form-wrapper a,ptc-modal inline-form a,.podcast-cta-section a):active,.background-plm-grey a:not(.hero-footer-form-wrapper a,ptc-modal inline-form a,.podcast-cta-section a):visited:active,.background-plm-grey a.light-link:active,.background-plm-grey a.light-link:visited:active{transition:none;color:var(--color-blue-07)}.light-links a:not(.hero-footer-form-wrapper a,ptc-modal inline-form a,.podcast-cta-section a):hover,.light-links a:not(.hero-footer-form-wrapper a,ptc-modal inline-form a,.podcast-cta-section a):visited:hover,.light-links a.light-link:hover,.light-links a.light-link:visited:hover,.background-grey-10 a:not(.hero-footer-form-wrapper a,ptc-modal inline-form a,.podcast-cta-section a):hover,.background-grey-10 a:not(.hero-footer-form-wrapper a,ptc-modal inline-form a,.podcast-cta-section a):visited:hover,.background-grey-10 a.light-link:hover,.background-grey-10 a.light-link:visited:hover,.background-plm-grey a:not(.hero-footer-form-wrapper a,ptc-modal inline-form a,.podcast-cta-section a):hover,.background-plm-grey a:not(.hero-footer-form-wrapper a,ptc-modal inline-form a,.podcast-cta-section a):visited:hover,.background-plm-grey a.light-link:hover,.background-plm-grey a.light-link:visited:hover{color:var(--color-blue-05)}.light-links a:not(.hero-footer-form-wrapper a,ptc-modal inline-form a,.podcast-cta-section a).disabled,.light-links a.light-link.disabled,.background-grey-10 a:not(.hero-footer-form-wrapper a,ptc-modal inline-form a,.podcast-cta-section a).disabled,.background-grey-10 a.light-link.disabled,.background-plm-grey a:not(.hero-footer-form-wrapper a,ptc-modal inline-form a,.podcast-cta-section a).disabled,.background-plm-grey a.light-link.disabled{color:var(--color-gray-04) !important;cursor:not-allowed}.light-links a:not(.hero-footer-form-wrapper a,ptc-modal inline-form a,.podcast-cta-section a):focus-visible,.light-links a.light-link:focus-visible,.background-grey-10 a:not(.hero-footer-form-wrapper a,ptc-modal inline-form a,.podcast-cta-section a):focus-visible,.background-grey-10 a.light-link:focus-visible,.background-plm-grey a:not(.hero-footer-form-wrapper a,ptc-modal inline-form a,.podcast-cta-section a):focus-visible,.background-plm-grey a.light-link:focus-visible{border-radius:var(--ptc-border-radius-standard);border:2px solid white;outline:5px solid var(--keyboard-nav-outline)}.light-links .podcast-cta-section a,.background-grey-10 .podcast-cta-section a,.background-plm-grey .podcast-cta-section a{border:2px solid transparent}.light-links .podcast-cta-section a:focus-visible,.background-grey-10 .podcast-cta-section a:focus-visible,.background-plm-grey .podcast-cta-section a:focus-visible{border-radius:var(--ptc-border-radius-standard);border:2px solid white;outline:5px solid var(--keyboard-nav-outline)}.ptc-link{color:var(--color-gray-10);text-decoration:underline;text-decoration-thickness:2px;text-decoration-color:var(--color-green-06);text-underline-offset:5px;transition:text-decoration-color var(--ptc-transition-medium) var(--ptc-ease-inout)}.ptc-link:hover{color:var(--color-green-06)}.ptc-link:visited{color:var(--color-gray-10)}.ptc-link:active,.ptc-link:visited:active{transition:none;color:var(--color-green-06)}.ptc-link:hover,.ptc-link:visited:hover{color:var(--color-green-06)}.ptc-link-dark{color:var(--color-white);text-decoration:underline;text-decoration-thickness:2px;text-decoration-color:var(--color-green-06);text-underline-offset:5px;transition:text-decoration-color var(--ptc-transition-medium) var(--ptc-ease-inout)}.ptc-link-dark:hover{color:var(--color-green-06)}.ptc-link-dark:visited{color:var(--color-white)}.ptc-link-dark:active,.ptc-link-dark:visited:active{transition:none;color:var(--color-green-06)}.ptc-link-dark:hover,.ptc-link-dark:visited:hover{color:var(--color-green-06)}:host{display:block;overflow:hidden}:host *{box-sizing:border-box}:host .hide{display:none}:host .case-studies-slides{height:80%;width:100%;padding-bottom:20px;position:relative}@media only screen and (min-width: 768px){:host .case-studies-slides{padding-bottom:0px}}:host .case-studies-slides .swiper-slide{visibility:hidden;display:flex;justify-content:center;align-items:center;padding-bottom:30px}:host .case-studies-slides .swiper-slide.swiper-slide-prev{visibility:hidden}:host .case-studies-slides .swiper-slide.swiper-slide-visible{visibility:visible}:host .case-studies-slides ptc-text-copy-with-background ptc-title .sc-ptc-title-s .sc-ptc-title-s{padding:0;line-height:var(--ptc-line-height-densest)}:host .case-studies-slides ptc-text-copy-with-background ptc-title .sc-ptc-title-s .sc-ptc-title-s::before,:host .case-studies-slides ptc-text-copy-with-background ptc-title .sc-ptc-title-s .sc-ptc-title-s::after{display:none}:host .case-studies-thumbs{height:20%;box-sizing:border-box;padding:10px;background-color:transparent}@media only screen and (min-width: 992px){:host .case-studies-thumbs{display:flex;justify-content:center}}@media only screen and (min-width: 992px){:host .case-studies-thumbs .swiper-wrapper{transform:none !important;justify-content:center}}:host .case-studies-thumbs .swiper-slide{width:auto;height:auto;max-width:8.75rem;display:flex;justify-items:center;align-items:center;padding:0 10px;cursor:pointer}@media only screen and (min-width: 992px){:host .case-studies-thumbs .swiper-slide{max-width:12.5rem}}:host .case-studies-thumbs .swiper-slide:focus-visible{border-radius:var(--ptc-border-radius-standard);outline:5px solid var(--keyboard-nav-outline)}:host .case-studies-thumbs .swiper-slide img{display:block;width:100%;opacity:0.4}@-moz-document url-prefix(){:host .case-studies-thumbs .swiper-slide img{min-width:140px}}:host .case-studies-thumbs .swiper-slide::after{content:\"\";height:7.5px;width:100%;position:absolute;bottom:-10px;left:0}:host .case-studies-thumbs .swiper-slide.swiper-slide-thumb-active{opacity:1}:host .case-studies-thumbs .swiper-slide.swiper-slide-thumb-active.swiper-slide img{opacity:1}:host .case-studies-thumbs .swiper-slide.swiper-slide-thumb-active::after{background-color:var(--color-green-07)}:host .swiper-button-prev,:host .swiper-button-next{display:none}:host .swiper-pagination{display:block;bottom:5px}@media only screen and (min-width: 768px){:host .swiper-pagination{display:none}}:host .swiper-pagination .swiper-pagination-bullet{background:transparent;display:inline-block;height:1rem;width:1rem;outline:none;line-height:0;font-size:0;border:1px solid var(--color-gray-10);padding:5px;cursor:pointer;margin-right:20px !important;position:relative;opacity:1}@media only screen and (min-width: 480px){:host .swiper-pagination .swiper-pagination-bullet{margin-right:32px !important}}:host .swiper-pagination .swiper-pagination-bullet::after{content:\"\";display:block;position:absolute;width:25px;height:2px;background-color:var(--color-gray-10);margin-left:10px;margin-top:1px}@media only screen and (min-width: 480px){:host .swiper-pagination .swiper-pagination-bullet::after{width:37px}}:host .swiper-pagination .swiper-pagination-bullet:last-child::after{display:none}:host .swiper-pagination .swiper-pagination-bullet.swiper-pagination-bullet-active{background:var(--color-orange-07)}:host .ptc-container{padding-right:0;padding-left:0;margin-right:auto;margin-left:auto}:host ptc-text-copy-with-background{padding-right:0;padding-left:0}@media only screen and (min-width: 1200px){:host .ptc-container{padding-left:0;padding-right:0;max-width:1136px}}@media only screen and (min-width: 1440px){:host .ptc-container{padding-left:0;padding-right:0;max-width:1200px}}";export{v as ptc_case_studies_slider}
|
|
1
|
+
import{r as e,h as i,H as t,g as r}from"./p-ac75c7ad.js";import{h as s,j as a,e as o,a as n,k as p,l,S as d}from"./p-5292a000.js";import{N as c,P as w}from"./p-f5dfa530.js";function h({swiper:e,extendParams:i,on:t,emit:r,params:a}){let o,n;e.autoplay={running:!1,paused:!1,timeLeft:0},i({autoplay:{enabled:!1,delay:3e3,waitForTransition:!0,disableOnInteraction:!0,stopOnLastSlide:!1,reverseDirection:!1,pauseOnMouseEnter:!1}});let p,l,d,c,w,h,g,u=a&&a.autoplay?a.autoplay.delay:3e3,b=a&&a.autoplay?a.autoplay.delay:3e3,m=(new Date).getTime;function f(i){e&&!e.destroyed&&e.wrapperEl&&i.target===e.wrapperEl&&(e.wrapperEl.removeEventListener("transitionend",f),z())}const v=()=>{if(e.destroyed||!e.autoplay.running)return;e.autoplay.paused?l=!0:l&&(b=p,l=!1);const i=e.autoplay.paused?p:m+b-(new Date).getTime();e.autoplay.timeLeft=i,r("autoplayTimeLeft",i,i/u),n=requestAnimationFrame((()=>{v()}))},A=i=>{if(e.destroyed||!e.autoplay.running)return;cancelAnimationFrame(n),v();let t=void 0===i?e.params.autoplay.delay:i;u=e.params.autoplay.delay,b=e.params.autoplay.delay;const s=(()=>{let i;if(i=e.virtual&&e.params.virtual.enabled?e.slides.filter((e=>e.classList.contains("swiper-slide-active")))[0]:e.slides[e.activeIndex],i)return parseInt(i.getAttribute("data-swiper-autoplay"),10)})();!Number.isNaN(s)&&s>0&&void 0===i&&(t=s,u=s,b=s),p=t;const a=e.params.speed,l=()=>{e&&!e.destroyed&&(e.params.autoplay.reverseDirection?!e.isBeginning||e.params.loop||e.params.rewind?(e.slidePrev(a,!0,!0),r("autoplay")):e.params.autoplay.stopOnLastSlide||(e.slideTo(e.slides.length-1,a,!0,!0),r("autoplay")):!e.isEnd||e.params.loop||e.params.rewind?(e.slideNext(a,!0,!0),r("autoplay")):e.params.autoplay.stopOnLastSlide||(e.slideTo(0,a,!0,!0),r("autoplay")),e.params.cssMode&&(m=(new Date).getTime(),requestAnimationFrame((()=>{A()}))))};return t>0?(clearTimeout(o),o=setTimeout((()=>{l()}),t)):requestAnimationFrame((()=>{l()})),t},y=()=>{e.autoplay.running=!0,A(),r("autoplayStart")},k=()=>{e.autoplay.running=!1,clearTimeout(o),cancelAnimationFrame(n),r("autoplayStop")},x=(i,t)=>{if(e.destroyed||!e.autoplay.running)return;clearTimeout(o),i||(g=!0);const s=()=>{r("autoplayPause"),e.params.autoplay.waitForTransition?e.wrapperEl.addEventListener("transitionend",f):z()};if(e.autoplay.paused=!0,t)return h&&(p=e.params.autoplay.delay),h=!1,void s();p=(p||e.params.autoplay.delay)-((new Date).getTime()-m),e.isEnd&&p<0&&!e.params.loop||(p<0&&(p=0),s())},z=()=>{e.isEnd&&p<0&&!e.params.loop||e.destroyed||!e.autoplay.running||(m=(new Date).getTime(),g?(g=!1,A(p)):A(),e.autoplay.paused=!1,r("autoplayResume"))},B=()=>{if(e.destroyed||!e.autoplay.running)return;const i=s();"hidden"===i.visibilityState&&(g=!0,x(!0)),"visible"===i.visibilityState&&z()},M=e=>{"mouse"===e.pointerType&&(g=!0,x(!0))},Y=i=>{"mouse"===i.pointerType&&e.autoplay.paused&&z()};t("init",(()=>{e.params.autoplay.enabled&&(e.params.autoplay.pauseOnMouseEnter&&(e.el.addEventListener("pointerenter",M),e.el.addEventListener("pointerleave",Y)),s().addEventListener("visibilitychange",B),m=(new Date).getTime(),y())})),t("destroy",(()=>{e.el.removeEventListener("pointerenter",M),e.el.removeEventListener("pointerleave",Y),s().removeEventListener("visibilitychange",B),e.autoplay.running&&k()})),t("beforeTransitionStart",((i,t,r)=>{!e.destroyed&&e.autoplay.running&&(r||!e.params.autoplay.disableOnInteraction?x(!0,!0):k())})),t("sliderFirstMove",(()=>{!e.destroyed&&e.autoplay.running&&(e.params.autoplay.disableOnInteraction?k():(d=!0,c=!1,g=!1,w=setTimeout((()=>{g=!0,c=!0,x(!0)}),200)))})),t("touchEnd",(()=>{if(!e.destroyed&&e.autoplay.running&&d){if(clearTimeout(w),clearTimeout(o),e.params.autoplay.disableOnInteraction)return c=!1,void(d=!1);c&&e.params.cssMode&&z(),c=!1,d=!1}})),t("slideChange",(()=>{!e.destroyed&&e.autoplay.running&&(h=!0)})),Object.assign(e.autoplay,{start:y,stop:k,pause:x,resume:z})}function g({swiper:e,extendParams:i,on:t}){i({thumbs:{swiper:null,multipleActiveThumbs:!0,autoScrollOffset:0,slideThumbActiveClass:"swiper-slide-thumb-active",thumbsContainerClass:"swiper-thumbs"}});let r=!1,n=!1;function p(){const i=e.thumbs.swiper;if(!i||i.destroyed)return;const t=i.clickedIndex,r=i.clickedSlide;if(r&&r.classList.contains(e.params.thumbs.slideThumbActiveClass))return;if(null==t)return;let s;s=i.params.loop?parseInt(i.clickedSlide.getAttribute("data-swiper-slide-index"),10):t,e.params.loop?e.slideToLoop(s):e.slideTo(s)}function l(){const{thumbs:i}=e.params;if(r)return!1;r=!0;const t=e.constructor;if(i.swiper instanceof t)e.thumbs.swiper=i.swiper,Object.assign(e.thumbs.swiper.originalParams,{watchSlidesProgress:!0,slideToClickedSlide:!1}),Object.assign(e.thumbs.swiper.params,{watchSlidesProgress:!0,slideToClickedSlide:!1}),e.thumbs.swiper.update();else if(a(i.swiper)){const r=Object.assign({},i.swiper);Object.assign(r,{watchSlidesProgress:!0,slideToClickedSlide:!1}),e.thumbs.swiper=new t(r),n=!0}return e.thumbs.swiper.el.classList.add(e.params.thumbs.thumbsContainerClass),e.thumbs.swiper.on("tap",p),!0}function d(i){const t=e.thumbs.swiper;if(!t||t.destroyed)return;const r="auto"===t.params.slidesPerView?t.slidesPerViewDynamic():t.params.slidesPerView;let s=1;const a=e.params.thumbs.slideThumbActiveClass;if(e.params.slidesPerView>1&&!e.params.centeredSlides&&(s=e.params.slidesPerView),e.params.thumbs.multipleActiveThumbs||(s=1),s=Math.floor(s),t.slides.forEach((e=>e.classList.remove(a))),t.params.loop||t.params.virtual&&t.params.virtual.enabled)for(let i=0;i<s;i+=1)o(t.slidesEl,`[data-swiper-slide-index="${e.realIndex+i}"]`).forEach((e=>{e.classList.add(a)}));else for(let i=0;i<s;i+=1)t.slides[e.realIndex+i]&&t.slides[e.realIndex+i].classList.add(a);const n=e.params.thumbs.autoScrollOffset,p=n&&!t.params.loop;if(e.realIndex!==t.realIndex||p){const s=t.activeIndex;let a,o;if(t.params.loop){const i=t.slides.filter((i=>i.getAttribute("data-swiper-slide-index")===`${e.realIndex}`))[0];a=t.slides.indexOf(i),o=e.activeIndex>e.previousIndex?"next":"prev"}else a=e.realIndex,o=a>e.previousIndex?"next":"prev";p&&(a+="next"===o?n:-1*n),t.visibleSlidesIndexes&&t.visibleSlidesIndexes.indexOf(a)<0&&(t.params.centeredSlides&&(a=a>s?a-Math.floor(r/2)+1:a+Math.floor(r/2)-1),t.slideTo(a,i?0:void 0))}}e.thumbs={swiper:null},t("beforeInit",(()=>{const{thumbs:i}=e.params;if(i&&i.swiper)if("string"==typeof i.swiper||i.swiper instanceof HTMLElement){const t=s(),r=()=>{const r="string"==typeof i.swiper?t.querySelector(i.swiper):i.swiper;if(r&&r.swiper)i.swiper=r.swiper,l(),d(!0);else if(r){const t=s=>{i.swiper=s.detail[0],r.removeEventListener("init",t),l(),d(!0),i.swiper.update(),e.update()};r.addEventListener("init",t)}return r},a=()=>{e.destroyed||r()||requestAnimationFrame(a)};requestAnimationFrame(a)}else l(),d(!0)})),t("slideChange update resize observerUpdate",(()=>{d()})),t("setTransition",((i,t)=>{const r=e.thumbs.swiper;r&&!r.destroyed&&r.setTransition(t)})),t("beforeDestroy",(()=>{const i=e.thumbs.swiper;i&&!i.destroyed&&n&&i.destroy()})),Object.assign(e.thumbs,{init:l,update:d})}function u({swiper:e,extendParams:i,emit:t,once:r}){i({freeMode:{enabled:!1,momentum:!0,momentumRatio:1,momentumBounce:!0,momentumBounceRatio:1,momentumVelocityRatio:1,sticky:!1,minimumVelocity:.02}}),Object.assign(e,{freeMode:{onTouchStart:function(){if(e.params.cssMode)return;const i=e.getTranslate();e.setTranslate(i),e.setTransition(0),e.touchEventsData.velocities.length=0,e.freeMode.onTouchEnd({currentPos:e.rtl?e.translate:-e.translate})},onTouchMove:function(){if(e.params.cssMode)return;const{touchEventsData:i,touches:t}=e;0===i.velocities.length&&i.velocities.push({position:t[e.isHorizontal()?"startX":"startY"],time:i.touchStartTime}),i.velocities.push({position:t[e.isHorizontal()?"currentX":"currentY"],time:n()})},onTouchEnd:function({currentPos:i}){if(e.params.cssMode)return;const{params:s,wrapperEl:a,rtlTranslate:o,snapGrid:l,touchEventsData:d}=e,c=n()-d.touchStartTime;if(i<-e.minTranslate())e.slideTo(e.activeIndex);else if(i>-e.maxTranslate())e.slideTo(e.slides.length<l.length?l.length-1:e.slides.length-1);else{if(s.freeMode.momentum){if(d.velocities.length>1){const i=d.velocities.pop(),t=d.velocities.pop(),r=i.time-t.time;e.velocity=(i.position-t.position)/r,e.velocity/=2,Math.abs(e.velocity)<s.freeMode.minimumVelocity&&(e.velocity=0),(r>150||n()-i.time>300)&&(e.velocity=0)}else e.velocity=0;e.velocity*=s.freeMode.momentumVelocityRatio,d.velocities.length=0;let i=1e3*s.freeMode.momentumRatio,c=e.translate+e.velocity*i;o&&(c=-c);let w,h=!1;const g=20*Math.abs(e.velocity)*s.freeMode.momentumBounceRatio;let u;if(c<e.maxTranslate())s.freeMode.momentumBounce?(c+e.maxTranslate()<-g&&(c=e.maxTranslate()-g),w=e.maxTranslate(),h=!0,d.allowMomentumBounce=!0):c=e.maxTranslate(),s.loop&&s.centeredSlides&&(u=!0);else if(c>e.minTranslate())s.freeMode.momentumBounce?(c-e.minTranslate()>g&&(c=e.minTranslate()+g),w=e.minTranslate(),h=!0,d.allowMomentumBounce=!0):c=e.minTranslate(),s.loop&&s.centeredSlides&&(u=!0);else if(s.freeMode.sticky){let i;for(let e=0;e<l.length;e+=1)if(l[e]>-c){i=e;break}c=Math.abs(l[i]-c)<Math.abs(l[i-1]-c)||"next"===e.swipeDirection?l[i]:l[i-1],c=-c}if(u&&r("transitionEnd",(()=>{e.loopFix()})),0!==e.velocity){if(i=o?Math.abs((-c-e.translate)/e.velocity):Math.abs((c-e.translate)/e.velocity),s.freeMode.sticky){const t=Math.abs((o?-c:c)-e.translate),r=e.slidesSizesGrid[e.activeIndex];i=t<r?s.speed:t<2*r?1.5*s.speed:2.5*s.speed}}else if(s.freeMode.sticky)return void e.slideToClosest();s.freeMode.momentumBounce&&h?(e.updateProgress(w),e.setTransition(i),e.setTranslate(c),e.transitionStart(!0,e.swipeDirection),e.animating=!0,p(a,(()=>{e&&!e.destroyed&&d.allowMomentumBounce&&(t("momentumBounce"),e.setTransition(s.speed),setTimeout((()=>{e.setTranslate(w),p(a,(()=>{e&&!e.destroyed&&e.transitionEnd()}))}),0))}))):e.velocity?(t("_freeModeNoMomentumRelease"),e.updateProgress(c),e.setTransition(i),e.setTranslate(c),e.transitionStart(!0,e.swipeDirection),e.animating||(e.animating=!0,p(a,(()=>{e&&!e.destroyed&&e.transitionEnd()})))):e.updateProgress(c),e.updateActiveIndex(),e.updateSlidesClasses()}else{if(s.freeMode.sticky)return void e.slideToClosest();s.freeMode&&t("_freeModeNoMomentumRelease")}(!s.freeMode.momentum||c>=s.longSwipesMs)&&(e.updateProgress(),e.updateActiveIndex(),e.updateSlidesClasses())}}}})}function b({swiper:e,extendParams:i}){let t,r,s;i({grid:{rows:1,fill:"column"}});const a=()=>{let i=e.params.spaceBetween;return"string"==typeof i&&i.indexOf("%")>=0?i=parseFloat(i.replace("%",""))/100*e.size:"string"==typeof i&&(i=parseFloat(i)),i};e.grid={initSlides:i=>{const{slidesPerView:a}=e.params,{rows:o,fill:n}=e.params.grid;s=Math.floor(i/o),t=Math.floor(i/o)===i/o?i:Math.ceil(i/o)*o,"auto"!==a&&"row"===n&&(t=Math.max(t,a*o)),r=t/o},updateSlide:(i,o,n,p)=>{const{slidesPerGroup:l}=e.params,d=a(),{rows:c,fill:w}=e.params.grid;let h,g,u;if("row"===w&&l>1){const e=Math.floor(i/(l*c)),r=i-c*l*e,s=0===e?l:Math.min(Math.ceil((n-e*c*l)/c),l);u=Math.floor(r/s),g=r-u*s+e*l,h=g+u*t/c,o.style.order=h}else"column"===w?(g=Math.floor(i/c),u=i-g*c,(g>s||g===s&&u===c-1)&&(u+=1,u>=c&&(u=0,g+=1))):(u=Math.floor(i/r),g=i-u*r);o.row=u,o.column=g,o.style[p("margin-top")]=0!==u?d&&`${d}px`:""},updateWrapperSize:(i,r,s)=>{const{centeredSlides:o,roundLengths:n}=e.params,p=a(),{rows:l}=e.params.grid;if(e.virtualSize=(i+p)*t,e.virtualSize=Math.ceil(e.virtualSize/l)-p,e.wrapperEl.style[s("width")]=`${e.virtualSize+p}px`,o){const i=[];for(let t=0;t<r.length;t+=1){let s=r[t];n&&(s=Math.floor(s)),r[t]<e.virtualSize+r[0]&&i.push(s)}r.splice(0,r.length),r.push(...i)}}}}function m(e,i){const t=l(i);return t!==i&&(t.style.backfaceVisibility="hidden",t.style["-webkit-backface-visibility"]="hidden"),t}function f({swiper:e,extendParams:i,on:t}){i({fadeEffect:{crossFade:!1}}),function(e){const{effect:i,swiper:t,on:r,setTranslate:s,setTransition:a,overwriteParams:o,perspective:n,recreateShadows:p,getEffectParams:l}=e;let d;r("beforeInit",(()=>{if(t.params.effect!==i)return;t.classNames.push(`${t.params.containerModifierClass}${i}`),n&&n()&&t.classNames.push(`${t.params.containerModifierClass}3d`);const e=o?o():{};Object.assign(t.params,e),Object.assign(t.originalParams,e)})),r("setTranslate",(()=>{t.params.effect===i&&s()})),r("setTransition",((e,r)=>{t.params.effect===i&&a(r)})),r("transitionEnd",(()=>{if(t.params.effect===i&&p){if(!l||!l().slideShadows)return;t.slides.forEach((e=>{e.querySelectorAll(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").forEach((e=>e.remove()))})),p()}})),r("virtualUpdate",(()=>{t.params.effect===i&&(t.slides.length||(d=!0),requestAnimationFrame((()=>{d&&t.slides&&t.slides.length&&(s(),d=!1)})))}))}({effect:"fade",swiper:e,on:t,setTranslate:()=>{const{slides:i}=e;for(let t=0;t<i.length;t+=1){const i=e.slides[t];let r=-i.swiperSlideOffset;e.params.virtualTranslate||(r-=e.translate);let s=0;e.isHorizontal()||(s=r,r=0);const a=e.params.fadeEffect.crossFade?Math.max(1-Math.abs(i.progress),0):1+Math.min(Math.max(i.progress,-1),0),o=m(0,i);o.style.opacity=a,o.style.transform=`translate3d(${r}px, ${s}px, 0px)`}},setTransition:i=>{const t=e.slides.map((e=>l(e)));t.forEach((e=>{e.style.transitionDuration=`${i}ms`})),function({swiper:e,duration:i,transformElements:t,allSlides:r}){const{activeIndex:s}=e;if(e.params.virtualTranslate&&0!==i){let i,a=!1;i=r?t:t.filter((i=>{const t=i.classList.contains("swiper-slide-transform")?(i=>i.parentElement?i.parentElement:e.slides.filter((e=>e.shadowEl&&e.shadowEl===i.parentNode))[0])(i):i;return e.getSlideIndex(t)===s})),i.forEach((i=>{p(i,(()=>{if(a)return;if(!e||e.destroyed)return;a=!0,e.animating=!1;const i=new window.CustomEvent("transitionend",{bubbles:!0,cancelable:!0});e.wrapperEl.dispatchEvent(i)}))}))}}({swiper:e,duration:i,transformElements:t,allSlides:!0})},overwriteParams:()=>({slidesPerView:1,slidesPerGroup:1,watchSlidesProgress:!0,spaceBetween:0,virtualTranslate:!e.params.cssMode})})}const v=class{constructor(i){e(this,i),this.caseStudiesThumbs=null,this.caseStudiesSlides=null,this.tabs=[],this.tabPanels=[],this.activeTabIndex=0,this.firstTab=null,this.lastTab=null}componentDidLoad(){this.renderSlides("swiper-slide-thumb","swiper-wrapper-thumbs"),this.renderSlides("swiper-slide-content","swiper-wrapper-content"),this.initializeTabs(),this.initSlider(),this.slideChangeHandler(),setTimeout((()=>{this.initSlider()}),3100)}initializeTabs(){var e,i;const t=null===(e=this.caeStudiesThumbRef)||void 0===e?void 0:e.querySelector(".swiper-wrapper-thumbs");if(!t)return;this.tabs=Array.from(t.querySelectorAll(".swiper-slide-thumb")),this.tabPanels=Array.from((null===(i=this.caseStudiesSlidesRef)||void 0===i?void 0:i.querySelectorAll(".swiper-slide-content"))||[]),this.tabs.forEach(((e,i)=>{e.setAttribute("role","tab"),e.setAttribute("aria-selected","false"),e.setAttribute("aria-controls",`tabpanel-${i}`),e.setAttribute("tabindex","-1"),e.id=`tab-${i}`,0===i&&(this.firstTab=e),this.lastTab=e}));const r=this.caeStudiesThumbRef;r&&(r.setAttribute("role","tablist"),r.setAttribute("aria-label","Case Studies Tabs")),this.tabs.length>0&&this.setSelectedTab(0)}setSelectedTab(e){this.tabs.forEach(((i,t)=>{var r;t===e?(i.setAttribute("aria-selected","true"),i.setAttribute("tabindex","0"),this.tabPanels[t].classList.remove("is-hidden"),null===(r=this.caseStudiesSlides)||void 0===r||r.slideTo(t),this.activeTabIndex=t):(i.setAttribute("aria-selected","false"),i.setAttribute("tabindex","-1"),this.tabPanels[t].classList.add("is-hidden"))}))}handleKeyDown(e){const i=e.currentTarget;let t=!1;switch(e.key){case"ArrowRight":this.moveFocusToNextTab(i),t=!0;break;case"ArrowLeft":this.moveFocusToPreviousTab(i),t=!0;break;case"Enter":case" ":const e=this.tabs.indexOf(i);-1!==e&&(this.setSelectedTab(e),t=!0)}t&&(e.stopPropagation(),e.preventDefault())}moveFocusToTab(e){e.focus()}moveFocusToPreviousTab(e){if(e===this.firstTab)this.lastTab&&this.moveFocusToTab(this.lastTab);else{const i=this.tabs.indexOf(e);i>0&&this.moveFocusToTab(this.tabs[i-1])}}moveFocusToNextTab(e){if(e===this.lastTab)this.firstTab&&this.moveFocusToTab(this.firstTab);else{const i=this.tabs.indexOf(e);i<this.tabs.length-1&&this.moveFocusToTab(this.tabs[i+1])}}initSlider(){this.caeStudiesThumbRef&&!this.caseStudiesThumbs&&(this.caseStudiesThumbs=new d(this.caeStudiesThumbRef,{modules:[c,w,u,b],loop:!1,slidesPerView:"auto",freeMode:!0,watchSlidesProgress:!0,centerInsufficientSlides:!0,breakpoints:{992:{slidesPerView:7}}})),this.caseStudiesSlidesRef&&!this.caseStudiesSlides&&(this.caseStudiesSlides=new d(this.caseStudiesSlidesRef,{modules:[c,w,g,h,f],loop:!1,grabCursor:!0,effect:"fade",autoplay:{delay:2e4,disableOnInteraction:!1,waitForTransition:!0},thumbs:{swiper:this.caseStudiesThumbs},pagination:{el:this.paginationRef,clickable:!0},keyboard:{enabled:!1}}))}slideChangeHandler(){this.caseStudiesSlides&&this.caseStudiesSlides.on("slideChange",(()=>{var e;const i=this.caseStudiesSlides.activeIndex;this.setSelectedTab(i);const t=null===(e=this.caseStudiesSlides.slides[i].querySelector("ptc-text-copy-with-background"))||void 0===e?void 0:e.shadowRoot;if(t){const e=t.querySelector(".card-wrap"),i=null==e?void 0:e.parentNode;i&&e&&(i.removeChild(e),i.appendChild(e))}}))}renderSlides(e,i){const t=Array.from(this.hostElement.querySelectorAll("."+e));if(t.length>0){const e=this.hostElement.shadowRoot.querySelector("."+i);t.forEach(((i,t)=>{const r=i.cloneNode(!0);e.appendChild(r),r.addEventListener("keydown",(e=>this.handleKeyDown(e)));const s=r.querySelector("img");s&&s.addEventListener("click",(()=>{var e;null===(e=this.caseStudiesSlides)||void 0===e||e.slideTo(t)}))}))}}render(){return i(t,null,i("div",{class:"ptc-container"},i("div",{class:"case-studies-thumbs swiper",ref:e=>this.caeStudiesThumbRef=e},i("span",{class:"hide"},i("slot",{name:"thumb-slides"})),i("div",{class:"swiper-wrapper swiper-wrapper-thumbs"}))),i("div",{class:"case-studies-slides swiper",ref:e=>this.caseStudiesSlidesRef=e},i("span",{class:"hide"},i("slot",{name:"content-slides"})),i("div",{class:"swiper-wrapper swiper-wrapper-content"}),i("div",{class:"swiper-pagination",ref:e=>this.paginationRef=e})))}get hostElement(){return r(this)}};v.style="@font-face{font-family:'swiper-icons';src:url('data:application/font-woff;charset=utf-8;base64, d09GRgABAAAAAAZgABAAAAAADAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABGRlRNAAAGRAAAABoAAAAci6qHkUdERUYAAAWgAAAAIwAAACQAYABXR1BPUwAABhQAAAAuAAAANuAY7+xHU1VCAAAFxAAAAFAAAABm2fPczU9TLzIAAAHcAAAASgAAAGBP9V5RY21hcAAAAkQAAACIAAABYt6F0cBjdnQgAAACzAAAAAQAAAAEABEBRGdhc3AAAAWYAAAACAAAAAj//wADZ2x5ZgAAAywAAADMAAAD2MHtryVoZWFkAAABbAAAADAAAAA2E2+eoWhoZWEAAAGcAAAAHwAAACQC9gDzaG10eAAAAigAAAAZAAAArgJkABFsb2NhAAAC0AAAAFoAAABaFQAUGG1heHAAAAG8AAAAHwAAACAAcABAbmFtZQAAA/gAAAE5AAACXvFdBwlwb3N0AAAFNAAAAGIAAACE5s74hXjaY2BkYGAAYpf5Hu/j+W2+MnAzMYDAzaX6QjD6/4//Bxj5GA8AuRwMYGkAPywL13jaY2BkYGA88P8Agx4j+/8fQDYfA1AEBWgDAIB2BOoAeNpjYGRgYNBh4GdgYgABEMnIABJzYNADCQAACWgAsQB42mNgYfzCOIGBlYGB0YcxjYGBwR1Kf2WQZGhhYGBiYGVmgAFGBiQQkOaawtDAoMBQxXjg/wEGPcYDDA4wNUA2CCgwsAAAO4EL6gAAeNpj2M0gyAACqxgGNWBkZ2D4/wMA+xkDdgAAAHjaY2BgYGaAYBkGRgYQiAHyGMF8FgYHIM3DwMHABGQrMOgyWDLEM1T9/w8UBfEMgLzE////P/5//f/V/xv+r4eaAAeMbAxwIUYmIMHEgKYAYjUcsDAwsLKxc3BycfPw8jEQA/gZBASFhEVExcQlJKWkZWTl5BUUlZRVVNXUNTQZBgMAAMR+E+gAEQFEAAAAKgAqACoANAA+AEgAUgBcAGYAcAB6AIQAjgCYAKIArAC2AMAAygDUAN4A6ADyAPwBBgEQARoBJAEuATgBQgFMAVYBYAFqAXQBfgGIAZIBnAGmAbIBzgHsAAB42u2NMQ6CUAyGW568x9AneYYgm4MJbhKFaExIOAVX8ApewSt4Bic4AfeAid3VOBixDxfPYEza5O+Xfi04YADggiUIULCuEJK8VhO4bSvpdnktHI5QCYtdi2sl8ZnXaHlqUrNKzdKcT8cjlq+rwZSvIVczNiezsfnP/uznmfPFBNODM2K7MTQ45YEAZqGP81AmGGcF3iPqOop0r1SPTaTbVkfUe4HXj97wYE+yNwWYxwWu4v1ugWHgo3S1XdZEVqWM7ET0cfnLGxWfkgR42o2PvWrDMBSFj/IHLaF0zKjRgdiVMwScNRAoWUoH78Y2icB/yIY09An6AH2Bdu/UB+yxopYshQiEvnvu0dURgDt8QeC8PDw7Fpji3fEA4z/PEJ6YOB5hKh4dj3EvXhxPqH/SKUY3rJ7srZ4FZnh1PMAtPhwP6fl2PMJMPDgeQ4rY8YT6Gzao0eAEA409DuggmTnFnOcSCiEiLMgxCiTI6Cq5DZUd3Qmp10vO0LaLTd2cjN4fOumlc7lUYbSQcZFkutRG7g6JKZKy0RmdLY680CDnEJ+UMkpFFe1RN7nxdVpXrC4aTtnaurOnYercZg2YVmLN/d/gczfEimrE/fs/bOuq29Zmn8tloORaXgZgGa78yO9/cnXm2BpaGvq25Dv9S4E9+5SIc9PqupJKhYFSSl47+Qcr1mYNAAAAeNptw0cKwkAAAMDZJA8Q7OUJvkLsPfZ6zFVERPy8qHh2YER+3i/BP83vIBLLySsoKimrqKqpa2hp6+jq6RsYGhmbmJqZSy0sraxtbO3sHRydnEMU4uR6yx7JJXveP7WrDycAAAAAAAH//wACeNpjYGRgYOABYhkgZgJCZgZNBkYGLQZtIJsFLMYAAAw3ALgAeNolizEKgDAQBCchRbC2sFER0YD6qVQiBCv/H9ezGI6Z5XBAw8CBK/m5iQQVauVbXLnOrMZv2oLdKFa8Pjuru2hJzGabmOSLzNMzvutpB3N42mNgZGBg4GKQYzBhYMxJLMlj4GBgAYow/P/PAJJhLM6sSoWKfWCAAwDAjgbRAAB42mNgYGBkAIIbCZo5IPrmUn0hGA0AO8EFTQAA');font-weight:400;font-style:normal}:root{--swiper-theme-color:#007aff;}.swiper,swiper-container{margin-left:auto;margin-right:auto;position:relative;overflow:hidden;list-style:none;padding:0;z-index:1;display:block}.swiper-vertical>.swiper-wrapper{flex-direction:column}.swiper-wrapper{position:relative;width:100%;height:100%;z-index:1;display:flex;transition-property:transform;transition-timing-function:var(--swiper-wrapper-transition-timing-function, initial);box-sizing:content-box}.swiper-android .swiper-slide,.swiper-wrapper{transform:translate3d(0px, 0, 0)}.swiper-horizontal{touch-action:pan-y}.swiper-vertical{touch-action:pan-x}.swiper-slide,swiper-slide{flex-shrink:0;width:100%;height:100%;position:relative;transition-property:transform;display:block}.swiper-slide-invisible-blank{visibility:hidden}.swiper-autoheight,.swiper-autoheight .swiper-slide{height:auto}.swiper-autoheight .swiper-wrapper{align-items:flex-start;transition-property:transform, height}.swiper-backface-hidden .swiper-slide{transform:translateZ(0);-webkit-backface-visibility:hidden;backface-visibility:hidden}.swiper-3d.swiper-css-mode .swiper-wrapper{perspective:1200px}.swiper-3d .swiper-wrapper{transform-style:preserve-3d}.swiper-3d{perspective:1200px}.swiper-3d .swiper-slide,.swiper-3d .swiper-slide-shadow,.swiper-3d .swiper-slide-shadow-left,.swiper-3d .swiper-slide-shadow-right,.swiper-3d .swiper-slide-shadow-top,.swiper-3d .swiper-slide-shadow-bottom,.swiper-3d .swiper-cube-shadow{transform-style:preserve-3d}.swiper-3d .swiper-slide-shadow,.swiper-3d .swiper-slide-shadow-left,.swiper-3d .swiper-slide-shadow-right,.swiper-3d .swiper-slide-shadow-top,.swiper-3d .swiper-slide-shadow-bottom{position:absolute;left:0;top:0;width:100%;height:100%;pointer-events:none;z-index:10}.swiper-3d .swiper-slide-shadow{background:rgba(0, 0, 0, 0.15)}.swiper-3d .swiper-slide-shadow-left{background-image:linear-gradient(to left, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0))}.swiper-3d .swiper-slide-shadow-right{background-image:linear-gradient(to right, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0))}.swiper-3d .swiper-slide-shadow-top{background-image:linear-gradient(to top, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0))}.swiper-3d .swiper-slide-shadow-bottom{background-image:linear-gradient(to bottom, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0))}.swiper-css-mode>.swiper-wrapper{overflow:auto;scrollbar-width:none;-ms-overflow-style:none;}.swiper-css-mode>.swiper-wrapper::-webkit-scrollbar{display:none}.swiper-css-mode>.swiper-wrapper>.swiper-slide{scroll-snap-align:start start}.swiper-horizontal.swiper-css-mode>.swiper-wrapper{scroll-snap-type:x mandatory}.swiper-vertical.swiper-css-mode>.swiper-wrapper{scroll-snap-type:y mandatory}.swiper-css-mode.swiper-free-mode>.swiper-wrapper{scroll-snap-type:none}.swiper-css-mode.swiper-free-mode>.swiper-wrapper>.swiper-slide{scroll-snap-align:none}.swiper-centered>.swiper-wrapper::before{content:'';flex-shrink:0;order:9999}.swiper-centered>.swiper-wrapper>.swiper-slide{scroll-snap-align:center center;scroll-snap-stop:always}.swiper-centered.swiper-horizontal>.swiper-wrapper>.swiper-slide:first-child{margin-inline-start:var(--swiper-centered-offset-before)}.swiper-centered.swiper-horizontal>.swiper-wrapper::before{height:100%;min-height:1px;width:var(--swiper-centered-offset-after)}.swiper-centered.swiper-vertical>.swiper-wrapper>.swiper-slide:first-child{margin-block-start:var(--swiper-centered-offset-before)}.swiper-centered.swiper-vertical>.swiper-wrapper::before{width:100%;min-width:1px;height:var(--swiper-centered-offset-after)}.swiper-lazy-preloader{width:42px;height:42px;position:absolute;left:50%;top:50%;margin-left:-21px;margin-top:-21px;z-index:10;transform-origin:50%;box-sizing:border-box;border:4px solid var(--swiper-preloader-color, var(--swiper-theme-color));border-radius:50%;border-top-color:transparent}.swiper:not(.swiper-watch-progress) .swiper-lazy-preloader,swiper-container:not(.swiper-watch-progress) .swiper-lazy-preloader,.swiper-watch-progress .swiper-slide-visible .swiper-lazy-preloader{animation:swiper-preloader-spin 1s infinite linear}.swiper-lazy-preloader-white{--swiper-preloader-color:#fff}.swiper-lazy-preloader-black{--swiper-preloader-color:#000}@keyframes swiper-preloader-spin{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}.swiper-virtual .swiper-slide{-webkit-backface-visibility:hidden;transform:translateZ(0)}.swiper-virtual.swiper-css-mode .swiper-wrapper::after{content:'';position:absolute;left:0;top:0;pointer-events:none}.swiper-virtual.swiper-css-mode.swiper-horizontal .swiper-wrapper::after{height:1px;width:var(--swiper-virtual-size)}.swiper-virtual.swiper-css-mode.swiper-vertical .swiper-wrapper::after{width:1px;height:var(--swiper-virtual-size)}:root{--swiper-navigation-size:44px;}.swiper-button-prev,.swiper-button-next{position:absolute;top:var(--swiper-navigation-top-offset, 50%);width:calc(var(--swiper-navigation-size) / 44 * 27);height:var(--swiper-navigation-size);margin-top:calc(0px - (var(--swiper-navigation-size) / 2));z-index:10;cursor:pointer;display:flex;align-items:center;justify-content:center;color:var(--swiper-navigation-color, var(--swiper-theme-color))}.swiper-button-prev.swiper-button-disabled,.swiper-button-next.swiper-button-disabled{opacity:0.35;cursor:auto;pointer-events:none}.swiper-button-prev.swiper-button-hidden,.swiper-button-next.swiper-button-hidden{opacity:0;cursor:auto;pointer-events:none}.swiper-navigation-disabled .swiper-button-prev,.swiper-navigation-disabled .swiper-button-next{display:none !important}.swiper-button-prev:after,.swiper-button-next:after{font-family:swiper-icons;font-size:var(--swiper-navigation-size);text-transform:none !important;letter-spacing:0;font-variant:initial;line-height:1}.swiper-button-prev,.swiper-rtl .swiper-button-next{left:var(--swiper-navigation-sides-offset, 10px);right:auto}.swiper-button-prev:after,.swiper-rtl .swiper-button-next:after{content:'prev'}.swiper-button-next,.swiper-rtl .swiper-button-prev{right:var(--swiper-navigation-sides-offset, 10px);left:auto}.swiper-button-next:after,.swiper-rtl .swiper-button-prev:after{content:'next'}.swiper-button-lock{display:none}:root{}.swiper-pagination{position:absolute;text-align:center;transition:300ms opacity;transform:translate3d(0, 0, 0);z-index:10}.swiper-pagination.swiper-pagination-hidden{opacity:0}.swiper-pagination-disabled>.swiper-pagination,.swiper-pagination.swiper-pagination-disabled{display:none !important}.swiper-pagination-fraction,.swiper-pagination-custom,.swiper-horizontal>.swiper-pagination-bullets,.swiper-pagination-bullets.swiper-pagination-horizontal{bottom:var(--swiper-pagination-bottom, 8px);top:var(--swiper-pagination-top, auto);left:0;width:100%}.swiper-pagination-bullets-dynamic{overflow:hidden;font-size:0}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet{transform:scale(0.33);position:relative}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active{transform:scale(1)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-main{transform:scale(1)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-prev{transform:scale(0.66)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-prev-prev{transform:scale(0.33)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-next{transform:scale(0.66)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-next-next{transform:scale(0.33)}.swiper-pagination-bullet{width:var(--swiper-pagination-bullet-width, var(--swiper-pagination-bullet-size, 8px));height:var(--swiper-pagination-bullet-height, var(--swiper-pagination-bullet-size, 8px));display:inline-block;border-radius:var(--swiper-pagination-bullet-border-radius, 50%);background:var(--swiper-pagination-bullet-inactive-color, #000);opacity:var(--swiper-pagination-bullet-inactive-opacity, 0.2)}button.swiper-pagination-bullet{border:none;margin:0;padding:0;box-shadow:none;-webkit-appearance:none;appearance:none}.swiper-pagination-clickable .swiper-pagination-bullet{cursor:pointer}.swiper-pagination-bullet:only-child{display:none !important}.swiper-pagination-bullet-active{opacity:var(--swiper-pagination-bullet-opacity, 1);background:var(--swiper-pagination-color, var(--swiper-theme-color))}.swiper-vertical>.swiper-pagination-bullets,.swiper-pagination-vertical.swiper-pagination-bullets{right:var(--swiper-pagination-right, 8px);left:var(--swiper-pagination-left, auto);top:50%;transform:translate3d(0px, -50%, 0)}.swiper-vertical>.swiper-pagination-bullets .swiper-pagination-bullet,.swiper-pagination-vertical.swiper-pagination-bullets .swiper-pagination-bullet{margin:var(--swiper-pagination-bullet-vertical-gap, 6px) 0;display:block}.swiper-vertical>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic,.swiper-pagination-vertical.swiper-pagination-bullets.swiper-pagination-bullets-dynamic{top:50%;transform:translateY(-50%);width:8px}.swiper-vertical>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet,.swiper-pagination-vertical.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet{display:inline-block;transition:200ms transform, 200ms top}.swiper-horizontal>.swiper-pagination-bullets .swiper-pagination-bullet,.swiper-pagination-horizontal.swiper-pagination-bullets .swiper-pagination-bullet{margin:0 var(--swiper-pagination-bullet-horizontal-gap, 4px)}.swiper-horizontal>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic,.swiper-pagination-horizontal.swiper-pagination-bullets.swiper-pagination-bullets-dynamic{left:50%;transform:translateX(-50%);white-space:nowrap}.swiper-horizontal>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet,.swiper-pagination-horizontal.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet{transition:200ms transform, 200ms left}.swiper-horizontal.swiper-rtl>.swiper-pagination-bullets-dynamic .swiper-pagination-bullet,:host(.swiper-horizontal.swiper-rtl) .swiper-pagination-bullets-dynamic .swiper-pagination-bullet{transition:200ms transform, 200ms right}.swiper-pagination-fraction{color:var(--swiper-pagination-fraction-color, inherit)}.swiper-pagination-progressbar{background:var(--swiper-pagination-progressbar-bg-color, rgba(0, 0, 0, 0.25));position:absolute;}.swiper-pagination-progressbar .swiper-pagination-progressbar-fill{background:var(--swiper-pagination-color, var(--swiper-theme-color));position:absolute;left:0;top:0;width:100%;height:100%;transform:scale(0);transform-origin:left top}.swiper-rtl .swiper-pagination-progressbar .swiper-pagination-progressbar-fill{transform-origin:right top}.swiper-horizontal>.swiper-pagination-progressbar,.swiper-pagination-progressbar.swiper-pagination-horizontal,.swiper-vertical>.swiper-pagination-progressbar.swiper-pagination-progressbar-opposite,.swiper-pagination-progressbar.swiper-pagination-vertical.swiper-pagination-progressbar-opposite{width:100%;height:var(--swiper-pagination-progressbar-size, 4px);left:0;top:0}.swiper-vertical>.swiper-pagination-progressbar,.swiper-pagination-progressbar.swiper-pagination-vertical,.swiper-horizontal>.swiper-pagination-progressbar.swiper-pagination-progressbar-opposite,.swiper-pagination-progressbar.swiper-pagination-horizontal.swiper-pagination-progressbar-opposite{width:var(--swiper-pagination-progressbar-size, 4px);height:100%;left:0;top:0}.swiper-pagination-lock{display:none}:root{}.swiper-scrollbar{border-radius:var(--swiper-scrollbar-border-radius, 10px);position:relative;-ms-touch-action:none;background:var(--swiper-scrollbar-bg-color, rgba(0, 0, 0, 0.1))}.swiper-scrollbar-disabled>.swiper-scrollbar,.swiper-scrollbar.swiper-scrollbar-disabled{display:none !important}.swiper-horizontal>.swiper-scrollbar,.swiper-scrollbar.swiper-scrollbar-horizontal{position:absolute;left:var(--swiper-scrollbar-sides-offset, 1%);bottom:var(--swiper-scrollbar-bottom, 4px);top:var(--swiper-scrollbar-top, auto);z-index:50;height:var(--swiper-scrollbar-size, 4px);width:calc(100% - 2 * var(--swiper-scrollbar-sides-offset, 1%))}.swiper-vertical>.swiper-scrollbar,.swiper-scrollbar.swiper-scrollbar-vertical{position:absolute;left:var(--swiper-scrollbar-left, auto);right:var(--swiper-scrollbar-right, 4px);top:var(--swiper-scrollbar-sides-offset, 1%);z-index:50;width:var(--swiper-scrollbar-size, 4px);height:calc(100% - 2 * var(--swiper-scrollbar-sides-offset, 1%))}.swiper-scrollbar-drag{height:100%;width:100%;position:relative;background:var(--swiper-scrollbar-drag-bg-color, rgba(0, 0, 0, 0.5));border-radius:var(--swiper-scrollbar-border-radius, 10px);left:0;top:0}.swiper-scrollbar-cursor-drag{cursor:move}.swiper-scrollbar-lock{display:none}.swiper-zoom-container{width:100%;height:100%;display:flex;justify-content:center;align-items:center;text-align:center}.swiper-zoom-container>img,.swiper-zoom-container>svg,.swiper-zoom-container>canvas{max-width:100%;max-height:100%;object-fit:contain}.swiper-slide-zoomed{cursor:move;touch-action:none}.swiper .swiper-notification,swiper-container .swiper-notification{position:absolute;left:0;top:0;pointer-events:none;opacity:0;z-index:-1000}.swiper-free-mode>.swiper-wrapper{transition-timing-function:ease-out;margin:0 auto}.swiper-grid>.swiper-wrapper{flex-wrap:wrap}.swiper-grid-column>.swiper-wrapper{flex-wrap:wrap;flex-direction:column}.swiper-fade.swiper-free-mode .swiper-slide{transition-timing-function:ease-out}.swiper-fade .swiper-slide{pointer-events:none;transition-property:opacity}.swiper-fade .swiper-slide .swiper-slide{pointer-events:none}.swiper-fade .swiper-slide-active,.swiper-fade .swiper-slide-active .swiper-slide-active{pointer-events:auto}.swiper-cube{overflow:visible}.swiper-cube .swiper-slide{pointer-events:none;-webkit-backface-visibility:hidden;backface-visibility:hidden;z-index:1;visibility:hidden;transform-origin:0 0;width:100%;height:100%}.swiper-cube .swiper-slide .swiper-slide{pointer-events:none}.swiper-cube.swiper-rtl .swiper-slide{transform-origin:100% 0}.swiper-cube .swiper-slide-active,.swiper-cube .swiper-slide-active .swiper-slide-active{pointer-events:auto}.swiper-cube .swiper-slide-active,.swiper-cube .swiper-slide-next,.swiper-cube .swiper-slide-prev,.swiper-cube .swiper-slide-next+.swiper-slide{pointer-events:auto;visibility:visible}.swiper-cube .swiper-slide-shadow-top,.swiper-cube .swiper-slide-shadow-bottom,.swiper-cube .swiper-slide-shadow-left,.swiper-cube .swiper-slide-shadow-right{z-index:0;-webkit-backface-visibility:hidden;backface-visibility:hidden}.swiper-cube .swiper-cube-shadow{position:absolute;left:0;bottom:0px;width:100%;height:100%;opacity:0.6;z-index:0}.swiper-cube .swiper-cube-shadow:before{content:'';background:#000;position:absolute;left:0;top:0;bottom:0;right:0;filter:blur(50px)}.swiper-flip{overflow:visible}.swiper-flip .swiper-slide{pointer-events:none;-webkit-backface-visibility:hidden;backface-visibility:hidden;z-index:1}.swiper-flip .swiper-slide .swiper-slide{pointer-events:none}.swiper-flip .swiper-slide-active,.swiper-flip .swiper-slide-active .swiper-slide-active{pointer-events:auto}.swiper-flip .swiper-slide-shadow-top,.swiper-flip .swiper-slide-shadow-bottom,.swiper-flip .swiper-slide-shadow-left,.swiper-flip .swiper-slide-shadow-right{z-index:0;-webkit-backface-visibility:hidden;backface-visibility:hidden}.swiper-creative .swiper-slide{-webkit-backface-visibility:hidden;backface-visibility:hidden;overflow:hidden;transition-property:transform, opacity, height}.swiper-cards{overflow:visible}.swiper-cards .swiper-slide{transform-origin:center bottom;-webkit-backface-visibility:hidden;backface-visibility:hidden;overflow:hidden}h1,h2,h3,h4,h5,h6,p,ul,li,ptc-subnav,ptc-tab-list,ptc-link,ptc-square-card,.hyphenate-text,ptc-footer{word-break:break-word;hyphens:manual;-webkit-hyphens:manual;-moz-hyphens:manual;-ms-hyphens:manual}@supports (hyphenate-limit-chars: 12 3 3){h1,h2,h3,h4,h5,h6,p,ul,li,ptc-subnav,ptc-tab-list,ptc-link,ptc-square-card,.hyphenate-text,ptc-footer{hyphens:auto;-webkit-hyphenate-limit-before:3;-webkit-hyphenate-limit-after:3;hyphenate-limit-chars:12 3 3;hyphenate-limit-lines:2;hyphenate-limit-last:always;hyphenate-limit-zone:6%;-webkit-hyphens:auto;-webkit-hyphenate-limit-before:3;-webkit-hyphenate-limit-after:3;-webkit-hyphenate-limit-chars:12 3 3;-webkit-hyphenate-limit-lines:2;-moz-hyphens:auto;-moz-hyphenate-limit-chars:12 3 3;-moz-hyphenate-limit-lines:2;-ms-hyphens:auto;-ms-hyphenate-limit-chars:12 3 3;-ms-hyphenate-limit-lines:2}}a{font-family:var(--ptc-font-latin);font-style:var(--ptc-font-style-normal);text-decoration-line:underline;color:var(--color-hyperlink);transition:color var(--ptc-transition-medium) var(--ptc-ease-out);font-weight:var(--ptc-font-weight-bold)}a:visited{color:var(--color-blue-10)}a:active,a:visited:active{transition:none;color:var(--color-blue-09)}a:hover,a:visited:hover{color:var(--color-blue-08)}a.disabled{color:var(--color-gray-04) !important;cursor:not-allowed}a:focus-visible{outline:5px solid #003DD6 !important;outline-offset:0px !important;border-radius:var(--ptc-border-radius-standard)}.light-links a:not(.hero-footer-form-wrapper a,ptc-modal inline-form a),.light-links a.light-link,.background-grey-10 a:not(.hero-footer-form-wrapper a,ptc-modal inline-form a),.background-grey-10 a.light-link,.background-plm-grey a:not(.hero-footer-form-wrapper a,ptc-modal inline-form a),.background-plm-grey a.light-link{color:var(--color-blue-04)}.light-links a:not(.hero-footer-form-wrapper a,ptc-modal inline-form a):visited,.light-links a.light-link:visited,.background-grey-10 a:not(.hero-footer-form-wrapper a,ptc-modal inline-form a):visited,.background-grey-10 a.light-link:visited,.background-plm-grey a:not(.hero-footer-form-wrapper a,ptc-modal inline-form a):visited,.background-plm-grey a.light-link:visited{color:var(--color-blue-06)}.light-links a:not(.hero-footer-form-wrapper a,ptc-modal inline-form a):active,.light-links a:not(.hero-footer-form-wrapper a,ptc-modal inline-form a):visited:active,.light-links a.light-link:active,.light-links a.light-link:visited:active,.background-grey-10 a:not(.hero-footer-form-wrapper a,ptc-modal inline-form a):active,.background-grey-10 a:not(.hero-footer-form-wrapper a,ptc-modal inline-form a):visited:active,.background-grey-10 a.light-link:active,.background-grey-10 a.light-link:visited:active,.background-plm-grey a:not(.hero-footer-form-wrapper a,ptc-modal inline-form a):active,.background-plm-grey a:not(.hero-footer-form-wrapper a,ptc-modal inline-form a):visited:active,.background-plm-grey a.light-link:active,.background-plm-grey a.light-link:visited:active{transition:none;color:var(--color-blue-07)}.light-links a:not(.hero-footer-form-wrapper a,ptc-modal inline-form a):hover,.light-links a:not(.hero-footer-form-wrapper a,ptc-modal inline-form a):visited:hover,.light-links a.light-link:hover,.light-links a.light-link:visited:hover,.background-grey-10 a:not(.hero-footer-form-wrapper a,ptc-modal inline-form a):hover,.background-grey-10 a:not(.hero-footer-form-wrapper a,ptc-modal inline-form a):visited:hover,.background-grey-10 a.light-link:hover,.background-grey-10 a.light-link:visited:hover,.background-plm-grey a:not(.hero-footer-form-wrapper a,ptc-modal inline-form a):hover,.background-plm-grey a:not(.hero-footer-form-wrapper a,ptc-modal inline-form a):visited:hover,.background-plm-grey a.light-link:hover,.background-plm-grey a.light-link:visited:hover{color:var(--color-blue-05)}.light-links a:not(.hero-footer-form-wrapper a,ptc-modal inline-form a).disabled,.light-links a.light-link.disabled,.background-grey-10 a:not(.hero-footer-form-wrapper a,ptc-modal inline-form a).disabled,.background-grey-10 a.light-link.disabled,.background-plm-grey a:not(.hero-footer-form-wrapper a,ptc-modal inline-form a).disabled,.background-plm-grey a.light-link.disabled{color:var(--color-gray-04) !important;cursor:not-allowed}.ptc-link{color:var(--color-gray-10);text-decoration:underline;text-decoration-thickness:2px;text-decoration-color:var(--color-green-06);text-underline-offset:5px;transition:text-decoration-color var(--ptc-transition-medium) var(--ptc-ease-inout)}.ptc-link:hover{color:var(--color-green-06)}.ptc-link:visited{color:var(--color-gray-10)}.ptc-link:active,.ptc-link:visited:active{transition:none;color:var(--color-green-06)}.ptc-link:hover,.ptc-link:visited:hover{color:var(--color-green-06)}.ptc-link-dark{color:var(--color-white);text-decoration:underline;text-decoration-thickness:2px;text-decoration-color:var(--color-green-06);text-underline-offset:5px;transition:text-decoration-color var(--ptc-transition-medium) var(--ptc-ease-inout)}.ptc-link-dark:hover{color:var(--color-green-06)}.ptc-link-dark:visited{color:var(--color-white)}.ptc-link-dark:active,.ptc-link-dark:visited:active{transition:none;color:var(--color-green-06)}.ptc-link-dark:hover,.ptc-link-dark:visited:hover{color:var(--color-green-06)}:host{display:block;overflow:hidden}:host *{box-sizing:border-box}:host .hide{display:none}:host .case-studies-slides{height:80%;width:100%;padding-bottom:20px;position:relative}@media only screen and (min-width: 768px){:host .case-studies-slides{padding-bottom:0px}}:host .case-studies-slides .swiper-slide{visibility:hidden;display:flex;justify-content:center;align-items:center;padding-bottom:30px}:host .case-studies-slides .swiper-slide.swiper-slide-prev{visibility:hidden}:host .case-studies-slides .swiper-slide.swiper-slide-visible{visibility:visible}:host .case-studies-slides ptc-text-copy-with-background ptc-title .sc-ptc-title-s .sc-ptc-title-s{padding:0;line-height:var(--ptc-line-height-densest)}:host .case-studies-slides ptc-text-copy-with-background ptc-title .sc-ptc-title-s .sc-ptc-title-s::before,:host .case-studies-slides ptc-text-copy-with-background ptc-title .sc-ptc-title-s .sc-ptc-title-s::after{display:none}:host .case-studies-thumbs{height:20%;box-sizing:border-box;padding:10px;background-color:transparent}@media only screen and (min-width: 992px){:host .case-studies-thumbs{display:flex;justify-content:center}}@media only screen and (min-width: 992px){:host .case-studies-thumbs .swiper-wrapper{transform:none !important;justify-content:center}}:host .case-studies-thumbs .swiper-slide{width:auto;height:auto;max-width:8.75rem;display:flex;justify-items:center;align-items:center;padding:0 10px;cursor:pointer}@media only screen and (min-width: 992px){:host .case-studies-thumbs .swiper-slide{max-width:12.5rem}}:host .case-studies-thumbs .swiper-slide:focus-visible{border-radius:var(--ptc-border-radius-standard);outline:5px solid var(--keyboard-nav-outline)}:host .case-studies-thumbs .swiper-slide img{display:block;width:100%;opacity:0.4}@-moz-document url-prefix(){:host .case-studies-thumbs .swiper-slide img{min-width:140px}}:host .case-studies-thumbs .swiper-slide::after{content:\"\";height:7.5px;width:100%;position:absolute;bottom:-10px;left:0}:host .case-studies-thumbs .swiper-slide.swiper-slide-thumb-active{opacity:1}:host .case-studies-thumbs .swiper-slide.swiper-slide-thumb-active.swiper-slide img{opacity:1}:host .case-studies-thumbs .swiper-slide.swiper-slide-thumb-active::after{background-color:var(--color-green-07)}:host .swiper-button-prev,:host .swiper-button-next{display:none}:host .swiper-pagination{display:block;bottom:5px}@media only screen and (min-width: 768px){:host .swiper-pagination{display:none}}:host .swiper-pagination .swiper-pagination-bullet{background:transparent;display:inline-block;height:1rem;width:1rem;outline:none;line-height:0;font-size:0;border:1px solid var(--color-gray-10);padding:5px;cursor:pointer;margin-right:20px !important;position:relative;opacity:1}@media only screen and (min-width: 480px){:host .swiper-pagination .swiper-pagination-bullet{margin-right:32px !important}}:host .swiper-pagination .swiper-pagination-bullet::after{content:\"\";display:block;position:absolute;width:25px;height:2px;background-color:var(--color-gray-10);margin-left:10px;margin-top:1px}@media only screen and (min-width: 480px){:host .swiper-pagination .swiper-pagination-bullet::after{width:37px}}:host .swiper-pagination .swiper-pagination-bullet:last-child::after{display:none}:host .swiper-pagination .swiper-pagination-bullet.swiper-pagination-bullet-active{background:var(--color-orange-07)}:host .ptc-container{padding-right:0;padding-left:0;margin-right:auto;margin-left:auto}:host ptc-text-copy-with-background{padding-right:0;padding-left:0}@media only screen and (min-width: 1200px){:host .ptc-container{padding-left:0;padding-right:0;max-width:1136px}}@media only screen and (min-width: 1440px){:host .ptc-container{padding-left:0;padding-right:0;max-width:1200px}}";export{v as ptc_case_studies_slider}
|
|
@@ -0,0 +1,134 @@
|
|
|
1
|
+
import{_ as t,a as i,b as n,c as e,M as s,m as r,d as u,e as o,f as h,g as c,h as f,i as a,j as l,k as d,l as m}from"./p-c1513c3f.js";
|
|
2
|
+
/**
|
|
3
|
+
* @license
|
|
4
|
+
* Copyright 2018 Google Inc.
|
|
5
|
+
*
|
|
6
|
+
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
7
|
+
* of this software and associated documentation files (the "Software"), to deal
|
|
8
|
+
* in the Software without restriction, including without limitation the rights
|
|
9
|
+
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
10
|
+
* copies of the Software, and to permit persons to whom the Software is
|
|
11
|
+
* furnished to do so, subject to the following conditions:
|
|
12
|
+
*
|
|
13
|
+
* The above copyright notice and this permission notice shall be included in
|
|
14
|
+
* all copies or substantial portions of the Software.
|
|
15
|
+
*
|
|
16
|
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
17
|
+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
18
|
+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
19
|
+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
20
|
+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
21
|
+
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
22
|
+
* THE SOFTWARE.
|
|
23
|
+
*/var b,E,I,A,v={ANCHOR:"mdc-menu-surface--anchor",ANIMATING_CLOSED:"mdc-menu-surface--animating-closed",ANIMATING_OPEN:"mdc-menu-surface--animating-open",FIXED:"mdc-menu-surface--fixed",IS_OPEN_BELOW:"mdc-menu-surface--is-open-below",OPEN:"mdc-menu-surface--open",ROOT:"mdc-menu-surface"},g={CLOSED_EVENT:"MDCMenuSurface:closed",CLOSING_EVENT:"MDCMenuSurface:closing",OPENED_EVENT:"MDCMenuSurface:opened",OPENING_EVENT:"MDCMenuSurface:opening",FOCUSABLE_ELEMENTS:["button:not(:disabled)",'[href]:not([aria-disabled="true"])',"input:not(:disabled)","select:not(:disabled)","textarea:not(:disabled)",'[tabindex]:not([tabindex="-1"]):not([aria-disabled="true"])'].join(", ")},C={TRANSITION_OPEN_DURATION:120,TRANSITION_CLOSE_DURATION:75,MARGIN_TO_EDGE:32,ANCHOR_TO_MENU_SURFACE_WIDTH_RATIO:.67,TOUCH_EVENT_WAIT_MS:30};!function(t){t[t.BOTTOM=1]="BOTTOM",t[t.CENTER=2]="CENTER",t[t.RIGHT=4]="RIGHT",t[t.FLIP_RTL=8]="FLIP_RTL"}(b||(b={})),function(t){t[t.TOP_LEFT=0]="TOP_LEFT",t[t.TOP_RIGHT=4]="TOP_RIGHT",t[t.BOTTOM_LEFT=1]="BOTTOM_LEFT",t[t.BOTTOM_RIGHT=5]="BOTTOM_RIGHT",t[t.TOP_START=8]="TOP_START",t[t.TOP_END=12]="TOP_END",t[t.BOTTOM_START=9]="BOTTOM_START",t[t.BOTTOM_END=13]="BOTTOM_END"}(E||(E={}));var T={LIST_ITEM_ACTIVATED_CLASS:"mdc-list-item--activated",LIST_ITEM_CLASS:"mdc-list-item",LIST_ITEM_DISABLED_CLASS:"mdc-list-item--disabled",LIST_ITEM_SELECTED_CLASS:"mdc-list-item--selected",LIST_ITEM_TEXT_CLASS:"mdc-list-item__text",LIST_ITEM_PRIMARY_TEXT_CLASS:"mdc-list-item__primary-text",ROOT:"mdc-list"},O=((I={})[""+T.LIST_ITEM_ACTIVATED_CLASS]="mdc-list-item--activated",I[""+T.LIST_ITEM_CLASS]="mdc-list-item",I[""+T.LIST_ITEM_DISABLED_CLASS]="mdc-list-item--disabled",I[""+T.LIST_ITEM_SELECTED_CLASS]="mdc-list-item--selected",I[""+T.LIST_ITEM_PRIMARY_TEXT_CLASS]="mdc-list-item__primary-text",I[""+T.ROOT]="mdc-list",I),_=((A={})[""+T.LIST_ITEM_ACTIVATED_CLASS]="mdc-deprecated-list-item--activated",A[""+T.LIST_ITEM_CLASS]="mdc-deprecated-list-item",A[""+T.LIST_ITEM_DISABLED_CLASS]="mdc-deprecated-list-item--disabled",A[""+T.LIST_ITEM_SELECTED_CLASS]="mdc-deprecated-list-item--selected",A[""+T.LIST_ITEM_TEXT_CLASS]="mdc-deprecated-list-item__text",A[""+T.LIST_ITEM_PRIMARY_TEXT_CLASS]="mdc-deprecated-list-item__primary-text",A[""+T.ROOT]="mdc-deprecated-list",A),x={ACTION_EVENT:"MDCList:action",SELECTION_CHANGE_EVENT:"MDCList:selectionChange",ARIA_CHECKED:"aria-checked",ARIA_CHECKED_CHECKBOX_SELECTOR:'[role="checkbox"][aria-checked="true"]',ARIA_CHECKED_RADIO_SELECTOR:'[role="radio"][aria-checked="true"]',ARIA_CURRENT:"aria-current",ARIA_DISABLED:"aria-disabled",ARIA_ORIENTATION:"aria-orientation",ARIA_ORIENTATION_HORIZONTAL:"horizontal",ARIA_ROLE_CHECKBOX_SELECTOR:'[role="checkbox"]',ARIA_SELECTED:"aria-selected",ARIA_INTERACTIVE_ROLES_SELECTOR:'[role="listbox"], [role="menu"]',ARIA_MULTI_SELECTABLE_SELECTOR:'[aria-multiselectable="true"]',CHECKBOX_RADIO_SELECTOR:'input[type="checkbox"], input[type="radio"]',CHECKBOX_SELECTOR:'input[type="checkbox"]',CHILD_ELEMENTS_TO_TOGGLE_TABINDEX:"\n ."+T.LIST_ITEM_CLASS+" button:not(:disabled),\n ."+T.LIST_ITEM_CLASS+" a,\n ."+_[T.LIST_ITEM_CLASS]+" button:not(:disabled),\n ."+_[T.LIST_ITEM_CLASS]+" a\n ",DEPRECATED_SELECTOR:".mdc-deprecated-list",FOCUSABLE_CHILD_ELEMENTS:"\n ."+T.LIST_ITEM_CLASS+" button:not(:disabled),\n ."+T.LIST_ITEM_CLASS+" a,\n ."+T.LIST_ITEM_CLASS+' input[type="radio"]:not(:disabled),\n .'+T.LIST_ITEM_CLASS+' input[type="checkbox"]:not(:disabled),\n .'+_[T.LIST_ITEM_CLASS]+" button:not(:disabled),\n ."+_[T.LIST_ITEM_CLASS]+" a,\n ."+_[T.LIST_ITEM_CLASS]+' input[type="radio"]:not(:disabled),\n .'+_[T.LIST_ITEM_CLASS]+' input[type="checkbox"]:not(:disabled)\n ',RADIO_SELECTOR:'input[type="radio"]',SELECTED_ITEM_SELECTOR:'[aria-selected="true"], [aria-current="true"]'},S={UNSET_INDEX:-1,TYPEAHEAD_BUFFER_CLEAR_TIMEOUT_MS:300},p="Backspace",L="Enter",R="Spacebar",w="PageUp",y="PageDown",M="End",D="Home",N="ArrowLeft",F="ArrowUp",k="ArrowRight",j="ArrowDown",B="Delete",H="Escape",U=new Set;U.add(p),U.add(L),U.add(R),U.add(w),U.add(y),U.add(M),U.add(D),U.add(N),U.add(F),U.add(k),U.add(j),U.add(B),U.add(H),U.add("Tab");var P=new Map;P.set(8,p),P.set(13,L),P.set(32,R),P.set(33,w),P.set(34,y),P.set(35,M),P.set(36,D),P.set(37,N),P.set(38,F),P.set(39,k),P.set(40,j),P.set(46,B),P.set(27,H),P.set(9,"Tab");var V=new Set;function G(t){var i=t.key;return U.has(i)?i:P.get(t.keyCode)||"Unknown"}
|
|
24
|
+
/**
|
|
25
|
+
* @license
|
|
26
|
+
* Copyright 2020 Google Inc.
|
|
27
|
+
*
|
|
28
|
+
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
29
|
+
* of this software and associated documentation files (the "Software"), to deal
|
|
30
|
+
* in the Software without restriction, including without limitation the rights
|
|
31
|
+
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
32
|
+
* copies of the Software, and to permit persons to whom the Software is
|
|
33
|
+
* furnished to do so, subject to the following conditions:
|
|
34
|
+
*
|
|
35
|
+
* The above copyright notice and this permission notice shall be included in
|
|
36
|
+
* all copies or substantial portions of the Software.
|
|
37
|
+
*
|
|
38
|
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
39
|
+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
40
|
+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
41
|
+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
42
|
+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
43
|
+
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
44
|
+
* THE SOFTWARE.
|
|
45
|
+
*/V.add(w),V.add(y),V.add(M),V.add(D),V.add(N),V.add(F),V.add(k),V.add(j);var X=["input","button","textarea","select"],q=function(t){var i=t.target;if(i){var n=(""+i.tagName).toLowerCase();-1===X.indexOf(n)&&t.preventDefault()}};function W(t,i){var n,e=t.nextChar,s=t.focusItemAtIndex,r=t.sortedIndexByFirstChar,u=t.focusedItemIndex,o=t.skipFocus,h=t.isItemAtIndexDisabled;return clearTimeout(i.bufferClearTimeout),i.bufferClearTimeout=setTimeout((function(){z(i)}),S.TYPEAHEAD_BUFFER_CLEAR_TIMEOUT_MS),i.typeaheadBuffer=i.typeaheadBuffer+e,n=1===i.typeaheadBuffer.length?function(t,i,n,e){var s=e.typeaheadBuffer[0],r=t.get(s);if(!r)return-1;if(s===e.currentFirstChar&&r[e.sortedIndexCursor].index===i){e.sortedIndexCursor=(e.sortedIndexCursor+1)%r.length;var u=r[e.sortedIndexCursor].index;if(!n(u))return u}e.currentFirstChar=s;var o,h=-1;for(o=0;o<r.length;o++)if(!n(r[o].index)){h=o;break}for(;o<r.length;o++)if(r[o].index>i&&!n(r[o].index)){h=o;break}return-1!==h?(e.sortedIndexCursor=h,r[e.sortedIndexCursor].index):-1}(r,u,h,i):function(t,i,n){var e=t.get(n.typeaheadBuffer[0]);if(!e)return-1;var s=e[n.sortedIndexCursor];if(0===s.text.lastIndexOf(n.typeaheadBuffer,0)&&!i(s.index))return s.index;for(var r=(n.sortedIndexCursor+1)%e.length,u=-1;r!==n.sortedIndexCursor;){var o=e[r],h=0===o.text.lastIndexOf(n.typeaheadBuffer,0),c=!i(o.index);if(h&&c){u=r;break}r=(r+1)%e.length}return-1!==u?(n.sortedIndexCursor=u,e[n.sortedIndexCursor].index):-1}(r,h,i),-1===n||o||s(n),n}function K(t){return t.typeaheadBuffer.length>0}function z(t){t.typeaheadBuffer=""}function Y(t,i){var n=t.event,e=t.isTargetListItem,s=t.focusedItemIndex,r=t.focusItemAtIndex,u=t.sortedIndexByFirstChar,o=t.isItemAtIndexDisabled,h="ArrowLeft"===G(n),c="ArrowUp"===G(n),f="ArrowRight"===G(n),a="ArrowDown"===G(n),l="Home"===G(n),d="End"===G(n),m="Enter"===G(n),b="Spacebar"===G(n);return n.altKey||n.ctrlKey||n.metaKey||h||c||f||a||l||d||m?-1:b||1!==n.key.length?b?(e&&q(n),e&&K(i)?W({focusItemAtIndex:r,focusedItemIndex:s,nextChar:" ",sortedIndexByFirstChar:u,skipFocus:!1,isItemAtIndexDisabled:o},i):-1):-1:(q(n),W({focusItemAtIndex:r,focusedItemIndex:s,nextChar:n.key.toLowerCase(),sortedIndexByFirstChar:u,skipFocus:!1,isItemAtIndexDisabled:o},i))}
|
|
46
|
+
/**
|
|
47
|
+
* @license
|
|
48
|
+
* Copyright 2018 Google Inc.
|
|
49
|
+
*
|
|
50
|
+
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
51
|
+
* of this software and associated documentation files (the "Software"), to deal
|
|
52
|
+
* in the Software without restriction, including without limitation the rights
|
|
53
|
+
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
54
|
+
* copies of the Software, and to permit persons to whom the Software is
|
|
55
|
+
* furnished to do so, subject to the following conditions:
|
|
56
|
+
*
|
|
57
|
+
* The above copyright notice and this permission notice shall be included in
|
|
58
|
+
* all copies or substantial portions of the Software.
|
|
59
|
+
*
|
|
60
|
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
61
|
+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
62
|
+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
63
|
+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
64
|
+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
65
|
+
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
66
|
+
* THE SOFTWARE.
|
|
67
|
+
*/var Q=["Alt","Control","Meta","Shift"];function Z(t){var i=new Set(t?Q.filter((function(i){return t.getModifierState(i)})):[]);return function(t){return t.every((function(t){return i.has(t)}))&&t.length===i.size}}var J,$=function(s){function r(t){var n=s.call(this,i(i({},r.defaultAdapter),t))||this;return n.wrapFocus=!1,n.isVertical=!0,n.isSingleSelectionList=!1,n.areDisabledItemsFocusable=!0,n.selectedIndex=S.UNSET_INDEX,n.focusedItemIndex=S.UNSET_INDEX,n.useActivatedClass=!1,n.useSelectedAttr=!1,n.ariaCurrentAttrValue=null,n.isCheckboxList=!1,n.isRadioList=!1,n.lastSelectedIndex=null,n.hasTypeahead=!1,n.typeaheadState={bufferClearTimeout:0,currentFirstChar:"",sortedIndexCursor:0,typeaheadBuffer:""},n.sortedIndexByFirstChar=new Map,n}return t(r,s),Object.defineProperty(r,"strings",{get:function(){return x},enumerable:!1,configurable:!0}),Object.defineProperty(r,"cssClasses",{get:function(){return T},enumerable:!1,configurable:!0}),Object.defineProperty(r,"numbers",{get:function(){return S},enumerable:!1,configurable:!0}),Object.defineProperty(r,"defaultAdapter",{get:function(){return{addClassForElementIndex:function(){},focusItemAtIndex:function(){},getAttributeForElementIndex:function(){return null},getFocusedElementIndex:function(){return 0},getListItemCount:function(){return 0},hasCheckboxAtIndex:function(){return!1},hasRadioAtIndex:function(){return!1},isCheckboxCheckedAtIndex:function(){return!1},isFocusInsideList:function(){return!1},isRootFocused:function(){return!1},listItemAtIndexHasClass:function(){return!1},notifyAction:function(){},notifySelectionChange:function(){},removeClassForElementIndex:function(){},setAttributeForElementIndex:function(){},setCheckedCheckboxOrRadioAtIndex:function(){},setTabIndexForListItemChildren:function(){},getPrimaryTextAtIndex:function(){return""}}},enumerable:!1,configurable:!0}),r.prototype.layout=function(){0!==this.adapter.getListItemCount()&&(this.adapter.hasCheckboxAtIndex(0)?this.isCheckboxList=!0:this.adapter.hasRadioAtIndex(0)?this.isRadioList=!0:this.maybeInitializeSingleSelection(),this.hasTypeahead&&(this.sortedIndexByFirstChar=this.typeaheadInitSortedIndex()))},r.prototype.getFocusedItemIndex=function(){return this.focusedItemIndex},r.prototype.setWrapFocus=function(t){this.wrapFocus=t},r.prototype.setVerticalOrientation=function(t){this.isVertical=t},r.prototype.setSingleSelection=function(t){this.isSingleSelectionList=t,t&&(this.maybeInitializeSingleSelection(),this.selectedIndex=this.getSelectedIndexFromDOM())},r.prototype.setDisabledItemsFocusable=function(t){this.areDisabledItemsFocusable=t},r.prototype.maybeInitializeSingleSelection=function(){var t=this.getSelectedIndexFromDOM();t!==S.UNSET_INDEX&&(this.adapter.listItemAtIndexHasClass(t,T.LIST_ITEM_ACTIVATED_CLASS)&&this.setUseActivatedClass(!0),this.isSingleSelectionList=!0,this.selectedIndex=t)},r.prototype.getSelectedIndexFromDOM=function(){for(var t=S.UNSET_INDEX,i=this.adapter.getListItemCount(),n=0;n<i;n++){var e=this.adapter.listItemAtIndexHasClass(n,T.LIST_ITEM_SELECTED_CLASS),s=this.adapter.listItemAtIndexHasClass(n,T.LIST_ITEM_ACTIVATED_CLASS);if(e||s){t=n;break}}return t},r.prototype.setHasTypeahead=function(t){this.hasTypeahead=t,t&&(this.sortedIndexByFirstChar=this.typeaheadInitSortedIndex())},r.prototype.isTypeaheadInProgress=function(){return this.hasTypeahead&&K(this.typeaheadState)},r.prototype.setUseActivatedClass=function(t){this.useActivatedClass=t},r.prototype.setUseSelectedAttribute=function(t){this.useSelectedAttr=t},r.prototype.getSelectedIndex=function(){return this.selectedIndex},r.prototype.setSelectedIndex=function(t,i){void 0===i&&(i={}),this.isIndexValid(t)&&(this.isCheckboxList?this.setCheckboxAtIndex(t,i):this.isRadioList?this.setRadioAtIndex(t,i):this.setSingleSelectionAtIndex(t,i))},r.prototype.handleFocusIn=function(t){t>=0&&(this.focusedItemIndex=t,this.adapter.setAttributeForElementIndex(t,"tabindex","0"),this.adapter.setTabIndexForListItemChildren(t,"0"))},r.prototype.handleFocusOut=function(t){var i=this;t>=0&&(this.adapter.setAttributeForElementIndex(t,"tabindex","-1"),this.adapter.setTabIndexForListItemChildren(t,"-1")),setTimeout((function(){i.adapter.isFocusInsideList()||i.setTabindexToFirstSelectedOrFocusedItem()}),0)},r.prototype.isIndexDisabled=function(t){return this.adapter.listItemAtIndexHasClass(t,T.LIST_ITEM_DISABLED_CLASS)},r.prototype.handleKeydown=function(t,i,n){var e,s=this,r="ArrowLeft"===G(t),u="ArrowUp"===G(t),o="ArrowRight"===G(t),h="ArrowDown"===G(t),c="Home"===G(t),f="End"===G(t),a="Enter"===G(t),l="Spacebar"===G(t),d=this.isVertical&&h||!this.isVertical&&o,m=this.isVertical&&u||!this.isVertical&&r,b="A"===t.key||"a"===t.key,E=Z(t);if(this.adapter.isRootFocused())(m||f)&&E([])?(t.preventDefault(),this.focusLastElement()):(d||c)&&E([])?(t.preventDefault(),this.focusFirstElement()):m&&E(["Shift"])&&this.isCheckboxList?(t.preventDefault(),-1!==(A=this.focusLastElement())&&this.setSelectedIndexOnAction(A,!1)):d&&E(["Shift"])&&this.isCheckboxList&&(t.preventDefault(),-1!==(A=this.focusFirstElement())&&this.setSelectedIndexOnAction(A,!1)),this.hasTypeahead&&Y({event:t,focusItemAtIndex:function(t){s.focusItemAtIndex(t)},focusedItemIndex:-1,isTargetListItem:i,sortedIndexByFirstChar:this.sortedIndexByFirstChar,isItemAtIndexDisabled:function(t){return s.isIndexDisabled(t)}},this.typeaheadState);else{var I=this.adapter.getFocusedElementIndex();if(!(-1===I&&(I=n)<0)){if(d&&E([]))q(t),this.focusNextElement(I);else if(m&&E([]))q(t),this.focusPrevElement(I);else if(d&&E(["Shift"])&&this.isCheckboxList)q(t),-1!==(A=this.focusNextElement(I))&&this.setSelectedIndexOnAction(A,!1);else if(m&&E(["Shift"])&&this.isCheckboxList){var A;q(t),-1!==(A=this.focusPrevElement(I))&&this.setSelectedIndexOnAction(A,!1)}else if(c&&E([]))q(t),this.focusFirstElement();else if(f&&E([]))q(t),this.focusLastElement();else if(c&&E(["Control","Shift"])&&this.isCheckboxList){if(q(t),this.isIndexDisabled(I))return;this.focusFirstElement(),this.toggleCheckboxRange(0,I,I)}else if(f&&E(["Control","Shift"])&&this.isCheckboxList){if(q(t),this.isIndexDisabled(I))return;this.focusLastElement(),this.toggleCheckboxRange(I,this.adapter.getListItemCount()-1,I)}else if(b&&E(["Control"])&&this.isCheckboxList)t.preventDefault(),this.checkboxListToggleAll(this.selectedIndex===S.UNSET_INDEX?[]:this.selectedIndex,!0);else if((a||l)&&E([])){if(i){if((v=t.target)&&"A"===v.tagName&&a)return;if(q(t),this.isIndexDisabled(I))return;this.isTypeaheadInProgress()||(this.isSelectableList()&&this.setSelectedIndexOnAction(I,!1),this.adapter.notifyAction(I))}}else if((a||l)&&E(["Shift"])&&this.isCheckboxList){var v;if((v=t.target)&&"A"===v.tagName&&a)return;if(q(t),this.isIndexDisabled(I))return;this.isTypeaheadInProgress()||(this.toggleCheckboxRange(null!==(e=this.lastSelectedIndex)&&void 0!==e?e:I,I,I),this.adapter.notifyAction(I))}this.hasTypeahead&&Y({event:t,focusItemAtIndex:function(t){s.focusItemAtIndex(t)},focusedItemIndex:this.focusedItemIndex,isTargetListItem:i,sortedIndexByFirstChar:this.sortedIndexByFirstChar,isItemAtIndexDisabled:function(t){return s.isIndexDisabled(t)}},this.typeaheadState)}}},r.prototype.handleClick=function(t,i,n){var e,s=Z(n);t!==S.UNSET_INDEX&&(this.isIndexDisabled(t)||(s([])?(this.isSelectableList()&&this.setSelectedIndexOnAction(t,i),this.adapter.notifyAction(t)):this.isCheckboxList&&s(["Shift"])&&(this.toggleCheckboxRange(null!==(e=this.lastSelectedIndex)&&void 0!==e?e:t,t,t),this.adapter.notifyAction(t))))},r.prototype.focusNextElement=function(t){var i=this.adapter.getListItemCount(),n=t,e=null;do{if(++n>=i){if(!this.wrapFocus)return t;n=0}if(n===e)return-1;e=null!=e?e:n}while(!this.areDisabledItemsFocusable&&this.isIndexDisabled(n));return this.focusItemAtIndex(n),n},r.prototype.focusPrevElement=function(t){var i=this.adapter.getListItemCount(),n=t,e=null;do{if(--n<0){if(!this.wrapFocus)return t;n=i-1}if(n===e)return-1;e=null!=e?e:n}while(!this.areDisabledItemsFocusable&&this.isIndexDisabled(n));return this.focusItemAtIndex(n),n},r.prototype.focusFirstElement=function(){return this.focusNextElement(-1)},r.prototype.focusLastElement=function(){return this.focusPrevElement(this.adapter.getListItemCount())},r.prototype.focusInitialElement=function(){var t=this.getFirstSelectedOrFocusedItemIndex();return this.focusItemAtIndex(t),t},r.prototype.setEnabled=function(t,i){this.isIndexValid(t,!1)&&(i?(this.adapter.removeClassForElementIndex(t,T.LIST_ITEM_DISABLED_CLASS),this.adapter.setAttributeForElementIndex(t,x.ARIA_DISABLED,"false")):(this.adapter.addClassForElementIndex(t,T.LIST_ITEM_DISABLED_CLASS),this.adapter.setAttributeForElementIndex(t,x.ARIA_DISABLED,"true")))},r.prototype.setSingleSelectionAtIndex=function(t,i){if(void 0===i&&(i={}),this.selectedIndex!==t||i.forceUpdate){var n=T.LIST_ITEM_SELECTED_CLASS;this.useActivatedClass&&(n=T.LIST_ITEM_ACTIVATED_CLASS),this.selectedIndex!==S.UNSET_INDEX&&this.adapter.removeClassForElementIndex(this.selectedIndex,n),this.setAriaForSingleSelectionAtIndex(t),this.setTabindexAtIndex(t),t!==S.UNSET_INDEX&&this.adapter.addClassForElementIndex(t,n),this.selectedIndex=t,i.isUserInteraction&&!i.forceUpdate&&this.adapter.notifySelectionChange([t])}},r.prototype.setAriaForSingleSelectionAtIndex=function(t){this.selectedIndex===S.UNSET_INDEX&&(this.ariaCurrentAttrValue=this.adapter.getAttributeForElementIndex(t,x.ARIA_CURRENT));var i=null!==this.ariaCurrentAttrValue,n=i?x.ARIA_CURRENT:x.ARIA_SELECTED;this.selectedIndex!==S.UNSET_INDEX&&this.adapter.setAttributeForElementIndex(this.selectedIndex,n,"false"),t!==S.UNSET_INDEX&&this.adapter.setAttributeForElementIndex(t,n,i?this.ariaCurrentAttrValue:"true")},r.prototype.getSelectionAttribute=function(){return this.useSelectedAttr?x.ARIA_SELECTED:x.ARIA_CHECKED},r.prototype.setRadioAtIndex=function(t,i){void 0===i&&(i={});var n=this.getSelectionAttribute();this.adapter.setCheckedCheckboxOrRadioAtIndex(t,!0),(this.selectedIndex!==t||i.forceUpdate)&&(this.selectedIndex!==S.UNSET_INDEX&&this.adapter.setAttributeForElementIndex(this.selectedIndex,n,"false"),this.adapter.setAttributeForElementIndex(t,n,"true"),this.selectedIndex=t,i.isUserInteraction&&!i.forceUpdate&&this.adapter.notifySelectionChange([t]))},r.prototype.setCheckboxAtIndex=function(t,i){void 0===i&&(i={});for(var n=this.selectedIndex,e=i.isUserInteraction?new Set(n===S.UNSET_INDEX?[]:n):null,s=this.getSelectionAttribute(),r=[],u=0;u<this.adapter.getListItemCount();u++){var o=null==e?void 0:e.has(u),h=t.indexOf(u)>=0;h!==o&&r.push(u),this.adapter.setCheckedCheckboxOrRadioAtIndex(u,h),this.adapter.setAttributeForElementIndex(u,s,h?"true":"false")}this.selectedIndex=t,i.isUserInteraction&&r.length&&this.adapter.notifySelectionChange(r)},r.prototype.toggleCheckboxRange=function(t,i,s){this.lastSelectedIndex=s;for(var r=new Set(this.selectedIndex===S.UNSET_INDEX?[]:this.selectedIndex),u=!(null==r?void 0:r.has(s)),o=n([t,i].sort(),2),h=o[0],c=o[1],f=this.getSelectionAttribute(),a=[],l=h;l<=c;l++)this.isIndexDisabled(l)||u!==r.has(l)&&(a.push(l),this.adapter.setCheckedCheckboxOrRadioAtIndex(l,u),this.adapter.setAttributeForElementIndex(l,f,""+u),u?r.add(l):r.delete(l));a.length&&(this.selectedIndex=e([],n(r)),this.adapter.notifySelectionChange(a))},r.prototype.setTabindexAtIndex=function(t){this.focusedItemIndex===S.UNSET_INDEX&&0!==t?this.adapter.setAttributeForElementIndex(0,"tabindex","-1"):this.focusedItemIndex>=0&&this.focusedItemIndex!==t&&this.adapter.setAttributeForElementIndex(this.focusedItemIndex,"tabindex","-1"),this.selectedIndex instanceof Array||this.selectedIndex===t||this.adapter.setAttributeForElementIndex(this.selectedIndex,"tabindex","-1"),t!==S.UNSET_INDEX&&this.adapter.setAttributeForElementIndex(t,"tabindex","0")},r.prototype.isSelectableList=function(){return this.isSingleSelectionList||this.isCheckboxList||this.isRadioList},r.prototype.setTabindexToFirstSelectedOrFocusedItem=function(){var t=this.getFirstSelectedOrFocusedItemIndex();this.setTabindexAtIndex(t)},r.prototype.getFirstSelectedOrFocusedItemIndex=function(){return this.isSelectableList()?"number"==typeof this.selectedIndex&&this.selectedIndex!==S.UNSET_INDEX?this.selectedIndex:this.selectedIndex instanceof Array&&this.selectedIndex.length>0?this.selectedIndex.reduce((function(t,i){return Math.min(t,i)})):0:Math.max(this.focusedItemIndex,0)},r.prototype.isIndexValid=function(t,i){var n=this;if(void 0===i&&(i=!0),t instanceof Array){if(!this.isCheckboxList&&i)throw new Error("MDCListFoundation: Array of index is only supported for checkbox based list");return 0===t.length||t.some((function(t){return n.isIndexInRange(t)}))}if("number"==typeof t){if(this.isCheckboxList&&i)throw new Error("MDCListFoundation: Expected array of index for checkbox based list but got number: "+t);return this.isIndexInRange(t)||this.isSingleSelectionList&&t===S.UNSET_INDEX}return!1},r.prototype.isIndexInRange=function(t){var i=this.adapter.getListItemCount();return t>=0&&t<i},r.prototype.setSelectedIndexOnAction=function(t,i){this.lastSelectedIndex=t,this.isCheckboxList?(this.toggleCheckboxAtIndex(t,i),this.adapter.notifySelectionChange([t])):this.setSelectedIndex(t,{isUserInteraction:!0})},r.prototype.toggleCheckboxAtIndex=function(t,i){var n,e=this.getSelectionAttribute(),s=this.adapter.isCheckboxCheckedAtIndex(t);i?n=s:this.adapter.setCheckedCheckboxOrRadioAtIndex(t,n=!s),this.adapter.setAttributeForElementIndex(t,e,n?"true":"false");var r=this.selectedIndex===S.UNSET_INDEX?[]:this.selectedIndex.slice();n?r.push(t):r=r.filter((function(i){return i!==t})),this.selectedIndex=r},r.prototype.focusItemAtIndex=function(t){this.adapter.focusItemAtIndex(t),this.focusedItemIndex=t},r.prototype.checkboxListToggleAll=function(t,i){var n=this.adapter.getListItemCount();if(t.length===n)this.setCheckboxAtIndex([],{isUserInteraction:i});else{for(var e=[],s=0;s<n;s++)(!this.isIndexDisabled(s)||t.indexOf(s)>-1)&&e.push(s);this.setCheckboxAtIndex(e,{isUserInteraction:i})}},r.prototype.typeaheadMatchItem=function(t,i,n){var e=this;return void 0===n&&(n=!1),W({focusItemAtIndex:function(t){e.focusItemAtIndex(t)},focusedItemIndex:i||this.focusedItemIndex,nextChar:t,sortedIndexByFirstChar:this.sortedIndexByFirstChar,skipFocus:n,isItemAtIndexDisabled:function(t){return e.isIndexDisabled(t)}},this.typeaheadState)},r.prototype.typeaheadInitSortedIndex=function(){return function(t,i){for(var n=new Map,e=0;e<t;e++){var s=i(e).trim();if(s){var r=s[0].toLowerCase();n.has(r)||n.set(r,[]),n.get(r).push({text:s.toLowerCase(),index:e})}}return n.forEach((function(t){t.sort((function(t,i){return t.index-i.index}))})),n}(this.adapter.getListItemCount(),this.adapter.getPrimaryTextAtIndex)},r.prototype.clearTypeaheadBuffer=function(){z(this.typeaheadState)},r}(s),tt=function(i){function n(){return null!==i&&i.apply(this,arguments)||this}return t(n,i),Object.defineProperty(n.prototype,"vertical",{set:function(t){this.foundation.setVerticalOrientation(t)},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"listElements",{get:function(){return Array.from(this.root.querySelectorAll("."+this.classNameMap[T.LIST_ITEM_CLASS]))},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"wrapFocus",{set:function(t){this.foundation.setWrapFocus(t)},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"typeaheadInProgress",{get:function(){return this.foundation.isTypeaheadInProgress()},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"hasTypeahead",{set:function(t){this.foundation.setHasTypeahead(t)},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"singleSelection",{set:function(t){this.foundation.setSingleSelection(t)},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"disabledItemsFocusable",{set:function(t){this.foundation.setDisabledItemsFocusable(t)},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"selectedIndex",{get:function(){return this.foundation.getSelectedIndex()},set:function(t){this.foundation.setSelectedIndex(t)},enumerable:!1,configurable:!0}),n.attachTo=function(t){return new n(t)},n.prototype.initialSyncWithDOM=function(){this.isEvolutionEnabled="evolution"in this.root.dataset,this.classNameMap=this.isEvolutionEnabled?O:r(this.root,x.DEPRECATED_SELECTOR)?_:Object.values(T).reduce((function(t,i){return t[i]=i,t}),{}),this.handleClick=this.handleClickEvent.bind(this),this.handleKeydown=this.handleKeydownEvent.bind(this),this.focusInEventListener=this.handleFocusInEvent.bind(this),this.focusOutEventListener=this.handleFocusOutEvent.bind(this),this.listen("keydown",this.handleKeydown),this.listen("click",this.handleClick),this.listen("focusin",this.focusInEventListener),this.listen("focusout",this.focusOutEventListener),this.layout(),this.initializeListType(),this.ensureFocusable()},n.prototype.destroy=function(){this.unlisten("keydown",this.handleKeydown),this.unlisten("click",this.handleClick),this.unlisten("focusin",this.focusInEventListener),this.unlisten("focusout",this.focusOutEventListener)},n.prototype.layout=function(){var t=this.root.getAttribute(x.ARIA_ORIENTATION);this.vertical=t!==x.ARIA_ORIENTATION_HORIZONTAL;var i=x.FOCUSABLE_CHILD_ELEMENTS,n=this.root.querySelectorAll("."+this.classNameMap[T.LIST_ITEM_CLASS]+":not([tabindex])");n.length&&Array.prototype.forEach.call(n,(function(t){t.setAttribute("tabindex","-1")}));var e=this.root.querySelectorAll(i);e.length&&Array.prototype.forEach.call(e,(function(t){t.setAttribute("tabindex","-1")})),this.isEvolutionEnabled&&this.foundation.setUseSelectedAttribute(!0),this.foundation.layout()},n.prototype.getPrimaryText=function(t){var i,n=t.querySelector("."+this.classNameMap[T.LIST_ITEM_PRIMARY_TEXT_CLASS]);if(this.isEvolutionEnabled||n)return null!==(i=null==n?void 0:n.textContent)&&void 0!==i?i:"";var e=t.querySelector("."+this.classNameMap[T.LIST_ITEM_TEXT_CLASS]);return e&&e.textContent||""},n.prototype.initializeListType=function(){var t=this;if(this.isInteractive=r(this.root,x.ARIA_INTERACTIVE_ROLES_SELECTOR),this.isEvolutionEnabled&&this.isInteractive){var i=Array.from(this.root.querySelectorAll(x.SELECTED_ITEM_SELECTOR),(function(i){return t.listElements.indexOf(i)}));r(this.root,x.ARIA_MULTI_SELECTABLE_SELECTOR)?this.selectedIndex=i:i.length>0&&(this.selectedIndex=i[0])}else{var n=this.root.querySelectorAll(x.ARIA_ROLE_CHECKBOX_SELECTOR),e=this.root.querySelector(x.ARIA_CHECKED_RADIO_SELECTOR);if(n.length){var s=this.root.querySelectorAll(x.ARIA_CHECKED_CHECKBOX_SELECTOR);this.selectedIndex=Array.from(s,(function(i){return t.listElements.indexOf(i)}))}else e&&(this.selectedIndex=this.listElements.indexOf(e))}},n.prototype.setEnabled=function(t,i){this.foundation.setEnabled(t,i)},n.prototype.typeaheadMatchItem=function(t,i){return this.foundation.typeaheadMatchItem(t,i,!0)},n.prototype.getDefaultFoundation=function(){var t=this;return new $({addClassForElementIndex:function(i,n){var e=t.listElements[i];e&&e.classList.add(t.classNameMap[n])},focusItemAtIndex:function(i){var n=t.listElements[i];n&&n.focus()},getAttributeForElementIndex:function(i,n){return t.listElements[i].getAttribute(n)},getFocusedElementIndex:function(){return t.listElements.indexOf(document.activeElement)},getListItemCount:function(){return t.listElements.length},getPrimaryTextAtIndex:function(i){return t.getPrimaryText(t.listElements[i])},hasCheckboxAtIndex:function(i){return!!t.listElements[i].querySelector(x.CHECKBOX_SELECTOR)},hasRadioAtIndex:function(i){return!!t.listElements[i].querySelector(x.RADIO_SELECTOR)},isCheckboxCheckedAtIndex:function(i){return t.listElements[i].querySelector(x.CHECKBOX_SELECTOR).checked},isFocusInsideList:function(){return t.root!==document.activeElement&&t.root.contains(document.activeElement)},isRootFocused:function(){return document.activeElement===t.root},listItemAtIndexHasClass:function(i,n){return t.listElements[i].classList.contains(t.classNameMap[n])},notifyAction:function(i){t.emit(x.ACTION_EVENT,{index:i},!0)},notifySelectionChange:function(i){t.emit(x.SELECTION_CHANGE_EVENT,{changedIndices:i},!0)},removeClassForElementIndex:function(i,n){var e=t.listElements[i];e&&e.classList.remove(t.classNameMap[n])},setAttributeForElementIndex:function(i,n,e){var s=t.listElements[i];s&&s.setAttribute(n,e)},setCheckedCheckboxOrRadioAtIndex:function(i,n){var e=t.listElements[i].querySelector(x.CHECKBOX_RADIO_SELECTOR);e.checked=n;var s=document.createEvent("Event");s.initEvent("change",!0,!0),e.dispatchEvent(s)},setTabIndexForListItemChildren:function(i,n){Array.prototype.forEach.call(t.listElements[i].querySelectorAll(x.CHILD_ELEMENTS_TO_TOGGLE_TABINDEX),(function(t){t.setAttribute("tabindex",n)}))}})},n.prototype.ensureFocusable=function(){if(this.isEvolutionEnabled&&this.isInteractive&&!this.root.querySelector("."+this.classNameMap[T.LIST_ITEM_CLASS]+'[tabindex="0"]')){var t=this.initialFocusIndex();-1!==t&&(this.listElements[t].tabIndex=0)}},n.prototype.initialFocusIndex=function(){if(this.selectedIndex instanceof Array&&this.selectedIndex.length>0)return this.selectedIndex[0];if("number"==typeof this.selectedIndex&&this.selectedIndex!==S.UNSET_INDEX)return this.selectedIndex;var t=this.root.querySelector("."+this.classNameMap[T.LIST_ITEM_CLASS]+":not(."+this.classNameMap[T.LIST_ITEM_DISABLED_CLASS]+")");return null===t?-1:this.getListItemIndex(t)},n.prototype.getListItemIndex=function(t){var i=u(t,"."+this.classNameMap[T.LIST_ITEM_CLASS]+", ."+this.classNameMap[T.ROOT]);return i&&r(i,"."+this.classNameMap[T.LIST_ITEM_CLASS])?this.listElements.indexOf(i):-1},n.prototype.handleFocusInEvent=function(t){var i=this.getListItemIndex(t.target);this.foundation.handleFocusIn(i)},n.prototype.handleFocusOutEvent=function(t){var i=this.getListItemIndex(t.target);this.foundation.handleFocusOut(i)},n.prototype.handleKeydownEvent=function(t){var i=this.getListItemIndex(t.target);this.foundation.handleKeydown(t,t.target.classList.contains(this.classNameMap[T.LIST_ITEM_CLASS]),i)},n.prototype.handleClickEvent=function(t){var i=this.getListItemIndex(t.target),n=!r(t.target,x.CHECKBOX_RADIO_SELECTOR);this.foundation.handleClick(i,n,t)},n}(o),it=function(n){function e(t){var s=n.call(this,i(i({},e.defaultAdapter),t))||this;return s.isSurfaceOpen=!1,s.isQuickOpen=!1,s.isHoistedElement=!1,s.isFixedPosition=!1,s.isHorizontallyCenteredOnViewport=!1,s.maxHeight=0,s.openBottomBias=0,s.openAnimationEndTimerId=0,s.closeAnimationEndTimerId=0,s.animationRequestId=0,s.anchorCorner=E.TOP_START,s.originCorner=E.TOP_START,s.anchorMargin={top:0,right:0,bottom:0,left:0},s.position={x:0,y:0},s}return t(e,n),Object.defineProperty(e,"cssClasses",{get:function(){return v},enumerable:!1,configurable:!0}),Object.defineProperty(e,"strings",{get:function(){return g},enumerable:!1,configurable:!0}),Object.defineProperty(e,"numbers",{get:function(){return C},enumerable:!1,configurable:!0}),Object.defineProperty(e,"Corner",{get:function(){return E},enumerable:!1,configurable:!0}),Object.defineProperty(e,"defaultAdapter",{get:function(){return{addClass:function(){},removeClass:function(){},hasClass:function(){return!1},hasAnchor:function(){return!1},isElementInContainer:function(){return!1},isFocused:function(){return!1},isRtl:function(){return!1},getInnerDimensions:function(){return{height:0,width:0}},getAnchorDimensions:function(){return null},getWindowDimensions:function(){return{height:0,width:0}},getBodyDimensions:function(){return{height:0,width:0}},getWindowScroll:function(){return{x:0,y:0}},setPosition:function(){},setMaxHeight:function(){},setTransformOrigin:function(){},saveFocus:function(){},restoreFocus:function(){},notifyClose:function(){},notifyClosing:function(){},notifyOpen:function(){},notifyOpening:function(){}}},enumerable:!1,configurable:!0}),e.prototype.init=function(){var t=e.cssClasses,i=t.ROOT,n=t.OPEN;if(!this.adapter.hasClass(i))throw new Error(i+" class required in root element.");this.adapter.hasClass(n)&&(this.isSurfaceOpen=!0)},e.prototype.destroy=function(){clearTimeout(this.openAnimationEndTimerId),clearTimeout(this.closeAnimationEndTimerId),cancelAnimationFrame(this.animationRequestId)},e.prototype.setAnchorCorner=function(t){this.anchorCorner=t},e.prototype.flipCornerHorizontally=function(){this.originCorner=this.originCorner^b.RIGHT},e.prototype.setAnchorMargin=function(t){this.anchorMargin.top=t.top||0,this.anchorMargin.right=t.right||0,this.anchorMargin.bottom=t.bottom||0,this.anchorMargin.left=t.left||0},e.prototype.setIsHoisted=function(t){this.isHoistedElement=t},e.prototype.setFixedPosition=function(t){this.isFixedPosition=t},e.prototype.isFixed=function(){return this.isFixedPosition},e.prototype.setAbsolutePosition=function(t,i){this.position.x=this.isFinite(t)?t:0,this.position.y=this.isFinite(i)?i:0},e.prototype.setIsHorizontallyCenteredOnViewport=function(t){this.isHorizontallyCenteredOnViewport=t},e.prototype.setQuickOpen=function(t){this.isQuickOpen=t},e.prototype.setMaxHeight=function(t){this.maxHeight=t},e.prototype.setOpenBottomBias=function(t){this.openBottomBias=t},e.prototype.isOpen=function(){return this.isSurfaceOpen},e.prototype.open=function(){var t=this;this.isSurfaceOpen||(this.adapter.notifyOpening(),this.adapter.saveFocus(),this.isQuickOpen?(this.isSurfaceOpen=!0,this.adapter.addClass(e.cssClasses.OPEN),this.dimensions=this.adapter.getInnerDimensions(),this.autoposition(),this.adapter.notifyOpen()):(this.adapter.addClass(e.cssClasses.ANIMATING_OPEN),this.animationRequestId=requestAnimationFrame((function(){t.dimensions=t.adapter.getInnerDimensions(),t.autoposition(),t.adapter.addClass(e.cssClasses.OPEN),t.openAnimationEndTimerId=setTimeout((function(){t.openAnimationEndTimerId=0,t.adapter.removeClass(e.cssClasses.ANIMATING_OPEN),t.adapter.notifyOpen()}),C.TRANSITION_OPEN_DURATION)})),this.isSurfaceOpen=!0))},e.prototype.close=function(t){var i=this;if(void 0===t&&(t=!1),this.isSurfaceOpen){if(this.adapter.notifyClosing(),this.isQuickOpen)return this.isSurfaceOpen=!1,t||this.maybeRestoreFocus(),this.adapter.removeClass(e.cssClasses.OPEN),this.adapter.removeClass(e.cssClasses.IS_OPEN_BELOW),void this.adapter.notifyClose();this.adapter.addClass(e.cssClasses.ANIMATING_CLOSED),requestAnimationFrame((function(){i.adapter.removeClass(e.cssClasses.OPEN),i.adapter.removeClass(e.cssClasses.IS_OPEN_BELOW),i.closeAnimationEndTimerId=setTimeout((function(){i.closeAnimationEndTimerId=0,i.adapter.removeClass(e.cssClasses.ANIMATING_CLOSED),i.adapter.notifyClose()}),C.TRANSITION_CLOSE_DURATION)})),this.isSurfaceOpen=!1,t||this.maybeRestoreFocus()}},e.prototype.handleBodyClick=function(t){this.adapter.isElementInContainer(t.target)||this.close()},e.prototype.handleKeydown=function(t){("Escape"===t.key||27===t.keyCode)&&this.close()},e.prototype.autoposition=function(){var t;this.measurements=this.getAutoLayoutmeasurements();var i=this.getoriginCorner(),n=this.getMenuSurfaceMaxHeight(i),s=this.hasBit(i,b.BOTTOM)?"bottom":"top",r=this.hasBit(i,b.RIGHT)?"right":"left",u=this.getHorizontalOriginOffset(i),o=this.getVerticalOriginOffset(i),h=this.measurements,c=h.anchorSize,f=h.surfaceSize,a=((t={})[r]=u,t[s]=o,t);c.width/f.width>C.ANCHOR_TO_MENU_SURFACE_WIDTH_RATIO&&(r="center"),(this.isHoistedElement||this.isFixedPosition)&&this.adjustPositionForHoistedElement(a),this.adapter.setTransformOrigin(r+" "+s),this.adapter.setPosition(a),this.adapter.setMaxHeight(n?n+"px":""),this.hasBit(i,b.BOTTOM)||this.adapter.addClass(e.cssClasses.IS_OPEN_BELOW)},e.prototype.getAutoLayoutmeasurements=function(){var t=this.adapter.getAnchorDimensions(),i=this.adapter.getBodyDimensions(),n=this.adapter.getWindowDimensions(),e=this.adapter.getWindowScroll();return t||(t={top:this.position.y,right:this.position.x,bottom:this.position.y,left:this.position.x,width:0,height:0}),{anchorSize:t,bodySize:i,surfaceSize:this.dimensions,viewportDistance:{top:t.top,right:n.width-t.right,bottom:n.height-t.bottom,left:t.left},viewportSize:n,windowScroll:e}},e.prototype.getoriginCorner=function(){var t,i,n=this.originCorner,s=this.measurements,r=s.viewportDistance,u=s.anchorSize,o=s.surfaceSize,h=e.numbers.MARGIN_TO_EDGE;this.hasBit(this.anchorCorner,b.BOTTOM)?(t=r.top-h+this.anchorMargin.bottom,i=r.bottom-h-this.anchorMargin.bottom):(t=r.top-h+this.anchorMargin.top,i=r.bottom-h+u.height-this.anchorMargin.top),!(i-o.height>0)&&t>i+this.openBottomBias&&(n=this.setBit(n,b.BOTTOM));var c,f,a,l=this.adapter.isRtl(),d=this.hasBit(this.anchorCorner,b.FLIP_RTL),m=this.hasBit(this.anchorCorner,b.RIGHT)||this.hasBit(n,b.RIGHT);(a=l&&d?!m:m)?(c=r.left+u.width+this.anchorMargin.right,f=r.right-this.anchorMargin.right):(c=r.left+this.anchorMargin.left,f=r.right+u.width-this.anchorMargin.left);var E=c-o.width>0,I=f-o.width>0,A=this.hasBit(n,b.FLIP_RTL)&&this.hasBit(n,b.RIGHT);return I&&A&&l||!E&&A?n=this.unsetBit(n,b.RIGHT):(E&&a&&l||E&&!a&&m||!I&&c>=f)&&(n=this.setBit(n,b.RIGHT)),n},e.prototype.getMenuSurfaceMaxHeight=function(t){if(this.maxHeight>0)return this.maxHeight;var i=this.measurements.viewportDistance,n=0,s=this.hasBit(t,b.BOTTOM),r=this.hasBit(this.anchorCorner,b.BOTTOM),u=e.numbers.MARGIN_TO_EDGE;return s?(n=i.top+this.anchorMargin.top-u,r||(n+=this.measurements.anchorSize.height)):(n=i.bottom-this.anchorMargin.bottom+this.measurements.anchorSize.height-u,r&&(n-=this.measurements.anchorSize.height)),n},e.prototype.getHorizontalOriginOffset=function(t){var i=this.measurements.anchorSize,n=this.hasBit(t,b.RIGHT),e=this.hasBit(this.anchorCorner,b.RIGHT);if(n){var s=e?i.width-this.anchorMargin.left:this.anchorMargin.right;return this.isHoistedElement||this.isFixedPosition?s-(this.measurements.viewportSize.width-this.measurements.bodySize.width):s}return e?i.width-this.anchorMargin.right:this.anchorMargin.left},e.prototype.getVerticalOriginOffset=function(t){var i=this.measurements.anchorSize,n=this.hasBit(t,b.BOTTOM),e=this.hasBit(this.anchorCorner,b.BOTTOM);return n?e?i.height-this.anchorMargin.top:-this.anchorMargin.bottom:e?i.height+this.anchorMargin.bottom:this.anchorMargin.top},e.prototype.adjustPositionForHoistedElement=function(t){var i,n,e=this.measurements,s=e.windowScroll,r=e.viewportDistance,u=e.surfaceSize,o=e.viewportSize,c=Object.keys(t);try{for(var f=h(c),a=f.next();!a.done;a=f.next()){var l=a.value,d=t[l]||0;!this.isHorizontallyCenteredOnViewport||"left"!==l&&"right"!==l?(d+=r[l],this.isFixedPosition||("top"===l?d+=s.y:"bottom"===l?d-=s.y:"left"===l?d+=s.x:d-=s.x),t[l]=d):t[l]=(o.width-u.width)/2}}catch(t){i={error:t}}finally{try{a&&!a.done&&(n=f.return)&&n.call(f)}finally{if(i)throw i.error}}},e.prototype.maybeRestoreFocus=function(){var t=this,i=this.adapter.isFocused(),n=this.adapter.getOwnerDocument?this.adapter.getOwnerDocument():document,e=n.activeElement&&this.adapter.isElementInContainer(n.activeElement);(i||e)&&setTimeout((function(){t.adapter.restoreFocus()}),C.TOUCH_EVENT_WAIT_MS)},e.prototype.hasBit=function(t,i){return Boolean(t&i)},e.prototype.setBit=function(t,i){return t|i},e.prototype.unsetBit=function(t,i){return t^i},e.prototype.isFinite=function(t){return"number"==typeof t&&isFinite(t)},e}(s),nt=function(i){function n(){return null!==i&&i.apply(this,arguments)||this}return t(n,i),n.attachTo=function(t){return new n(t)},n.prototype.initialSyncWithDOM=function(){var t=this,i=this.root.parentElement;this.anchorElement=i&&i.classList.contains(v.ANCHOR)?i:null,this.root.classList.contains(v.FIXED)&&this.setFixedPosition(!0),this.handleKeydown=function(i){t.foundation.handleKeydown(i)},this.handleBodyClick=function(i){t.foundation.handleBodyClick(i)},this.registerBodyClickListener=function(){document.body.addEventListener("click",t.handleBodyClick,{capture:!0})},this.deregisterBodyClickListener=function(){document.body.removeEventListener("click",t.handleBodyClick,{capture:!0})},this.listen("keydown",this.handleKeydown),this.listen(g.OPENED_EVENT,this.registerBodyClickListener),this.listen(g.CLOSED_EVENT,this.deregisterBodyClickListener)},n.prototype.destroy=function(){this.unlisten("keydown",this.handleKeydown),this.unlisten(g.OPENED_EVENT,this.registerBodyClickListener),this.unlisten(g.CLOSED_EVENT,this.deregisterBodyClickListener),i.prototype.destroy.call(this)},n.prototype.isOpen=function(){return this.foundation.isOpen()},n.prototype.open=function(){this.foundation.open()},n.prototype.close=function(t){void 0===t&&(t=!1),this.foundation.close(t)},Object.defineProperty(n.prototype,"quickOpen",{set:function(t){this.foundation.setQuickOpen(t)},enumerable:!1,configurable:!0}),n.prototype.setIsHoisted=function(t){this.foundation.setIsHoisted(t)},n.prototype.setMenuSurfaceAnchorElement=function(t){this.anchorElement=t},n.prototype.setFixedPosition=function(t){t?this.root.classList.add(v.FIXED):this.root.classList.remove(v.FIXED),this.foundation.setFixedPosition(t)},n.prototype.setAbsolutePosition=function(t,i){this.foundation.setAbsolutePosition(t,i),this.setIsHoisted(!0)},n.prototype.setAnchorCorner=function(t){this.foundation.setAnchorCorner(t)},n.prototype.setAnchorMargin=function(t){this.foundation.setAnchorMargin(t)},n.prototype.getDefaultFoundation=function(){var t=this;return new it({addClass:function(i){return t.root.classList.add(i)},removeClass:function(i){return t.root.classList.remove(i)},hasClass:function(i){return t.root.classList.contains(i)},hasAnchor:function(){return!!t.anchorElement},notifyClose:function(){return t.emit(it.strings.CLOSED_EVENT,{})},notifyClosing:function(){t.emit(it.strings.CLOSING_EVENT,{})},notifyOpen:function(){return t.emit(it.strings.OPENED_EVENT,{})},notifyOpening:function(){return t.emit(it.strings.OPENING_EVENT,{})},isElementInContainer:function(i){return t.root.contains(i)},isRtl:function(){return"rtl"===getComputedStyle(t.root).getPropertyValue("direction")},setTransformOrigin:function(i){var n=c(window,"transform")+"-origin";t.root.style.setProperty(n,i)},isFocused:function(){return document.activeElement===t.root},saveFocus:function(){t.previousFocus=document.activeElement},restoreFocus:function(){t.root.contains(document.activeElement)&&t.previousFocus&&t.previousFocus.focus&&t.previousFocus.focus()},getInnerDimensions:function(){return{width:t.root.offsetWidth,height:t.root.offsetHeight}},getAnchorDimensions:function(){return t.anchorElement?t.anchorElement.getBoundingClientRect():null},getWindowDimensions:function(){return{width:window.innerWidth,height:window.innerHeight}},getBodyDimensions:function(){return{width:document.body.clientWidth,height:document.body.clientHeight}},getWindowScroll:function(){return{x:window.pageXOffset,y:window.pageYOffset}},setPosition:function(i){var n=t.root;n.style.left="left"in i?i.left+"px":"",n.style.right="right"in i?i.right+"px":"",n.style.top="top"in i?i.top+"px":"",n.style.bottom="bottom"in i?i.bottom+"px":""},setMaxHeight:function(i){t.root.style.maxHeight=i}})},n}(o),et={MENU_SELECTED_LIST_ITEM:"mdc-menu-item--selected",MENU_SELECTION_GROUP:"mdc-menu__selection-group",ROOT:"mdc-menu"},st={ARIA_CHECKED_ATTR:"aria-checked",ARIA_DISABLED_ATTR:"aria-disabled",CHECKBOX_SELECTOR:'input[type="checkbox"]',LIST_SELECTOR:".mdc-list,.mdc-deprecated-list",SELECTED_EVENT:"MDCMenu:selected",SKIP_RESTORE_FOCUS:"data-menu-item-skip-restore-focus"},rt={FOCUS_ROOT_INDEX:-1};
|
|
68
|
+
/**
|
|
69
|
+
* @license
|
|
70
|
+
* Copyright 2018 Google Inc.
|
|
71
|
+
*
|
|
72
|
+
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
73
|
+
* of this software and associated documentation files (the "Software"), to deal
|
|
74
|
+
* in the Software without restriction, including without limitation the rights
|
|
75
|
+
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
76
|
+
* copies of the Software, and to permit persons to whom the Software is
|
|
77
|
+
* furnished to do so, subject to the following conditions:
|
|
78
|
+
*
|
|
79
|
+
* The above copyright notice and this permission notice shall be included in
|
|
80
|
+
* all copies or substantial portions of the Software.
|
|
81
|
+
*
|
|
82
|
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
83
|
+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
84
|
+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
85
|
+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
86
|
+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
87
|
+
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
88
|
+
* THE SOFTWARE.
|
|
89
|
+
*/!function(t){t[t.NONE=0]="NONE",t[t.LIST_ROOT=1]="LIST_ROOT",t[t.FIRST_ITEM=2]="FIRST_ITEM",t[t.LAST_ITEM=3]="LAST_ITEM"}(J||(J={}));
|
|
90
|
+
/**
|
|
91
|
+
* @license
|
|
92
|
+
* Copyright 2018 Google Inc.
|
|
93
|
+
*
|
|
94
|
+
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
95
|
+
* of this software and associated documentation files (the "Software"), to deal
|
|
96
|
+
* in the Software without restriction, including without limitation the rights
|
|
97
|
+
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
98
|
+
* copies of the Software, and to permit persons to whom the Software is
|
|
99
|
+
* furnished to do so, subject to the following conditions:
|
|
100
|
+
*
|
|
101
|
+
* The above copyright notice and this permission notice shall be included in
|
|
102
|
+
* all copies or substantial portions of the Software.
|
|
103
|
+
*
|
|
104
|
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
105
|
+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
106
|
+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
107
|
+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
108
|
+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
109
|
+
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
110
|
+
* THE SOFTWARE.
|
|
111
|
+
*/
|
|
112
|
+
var ut=function(n){function e(t){var s=n.call(this,i(i({},e.defaultAdapter),t))||this;return s.closeAnimationEndTimerId=0,s.defaultFocusState=J.LIST_ROOT,s.selectedIndex=-1,s}return t(e,n),Object.defineProperty(e,"cssClasses",{get:function(){return et},enumerable:!1,configurable:!0}),Object.defineProperty(e,"strings",{get:function(){return st},enumerable:!1,configurable:!0}),Object.defineProperty(e,"numbers",{get:function(){return rt},enumerable:!1,configurable:!0}),Object.defineProperty(e,"defaultAdapter",{get:function(){return{addClassToElementAtIndex:function(){},removeClassFromElementAtIndex:function(){},addAttributeToElementAtIndex:function(){},removeAttributeFromElementAtIndex:function(){},getAttributeFromElementAtIndex:function(){return null},elementContainsClass:function(){return!1},closeSurface:function(){},getElementIndex:function(){return-1},notifySelected:function(){},getMenuItemCount:function(){return 0},focusItemAtIndex:function(){},focusListRoot:function(){},getSelectedSiblingOfItemAtIndex:function(){return-1},isSelectableItemAtIndex:function(){return!1}}},enumerable:!1,configurable:!0}),e.prototype.destroy=function(){this.closeAnimationEndTimerId&&clearTimeout(this.closeAnimationEndTimerId),this.adapter.closeSurface()},e.prototype.handleKeydown=function(t){("Tab"===t.key||9===t.keyCode)&&this.adapter.closeSurface(!0)},e.prototype.handleItemAction=function(t){var i=this,n=this.adapter.getElementIndex(t);if(!(n<0)){this.adapter.notifySelected({index:n});var e="true"===this.adapter.getAttributeFromElementAtIndex(n,st.SKIP_RESTORE_FOCUS);this.adapter.closeSurface(e),this.closeAnimationEndTimerId=setTimeout((function(){var n=i.adapter.getElementIndex(t);n>=0&&i.adapter.isSelectableItemAtIndex(n)&&i.setSelectedIndex(n)}),it.numbers.TRANSITION_CLOSE_DURATION)}},e.prototype.handleMenuSurfaceOpened=function(){switch(this.defaultFocusState){case J.FIRST_ITEM:this.adapter.focusItemAtIndex(0);break;case J.LAST_ITEM:this.adapter.focusItemAtIndex(this.adapter.getMenuItemCount()-1);break;case J.NONE:break;default:this.adapter.focusListRoot()}},e.prototype.setDefaultFocusState=function(t){this.defaultFocusState=t},e.prototype.getSelectedIndex=function(){return this.selectedIndex},e.prototype.setSelectedIndex=function(t){if(this.validatedIndex(t),!this.adapter.isSelectableItemAtIndex(t))throw new Error("MDCMenuFoundation: No selection group at specified index.");var i=this.adapter.getSelectedSiblingOfItemAtIndex(t);i>=0&&(this.adapter.removeAttributeFromElementAtIndex(i,st.ARIA_CHECKED_ATTR),this.adapter.removeClassFromElementAtIndex(i,et.MENU_SELECTED_LIST_ITEM)),this.adapter.addClassToElementAtIndex(t,et.MENU_SELECTED_LIST_ITEM),this.adapter.addAttributeToElementAtIndex(t,st.ARIA_CHECKED_ATTR,"true"),this.selectedIndex=t},e.prototype.setEnabled=function(t,i){this.validatedIndex(t),i?(this.adapter.removeClassFromElementAtIndex(t,T.LIST_ITEM_DISABLED_CLASS),this.adapter.addAttributeToElementAtIndex(t,st.ARIA_DISABLED_ATTR,"false")):(this.adapter.addClassToElementAtIndex(t,T.LIST_ITEM_DISABLED_CLASS),this.adapter.addAttributeToElementAtIndex(t,st.ARIA_DISABLED_ATTR,"true"))},e.prototype.validatedIndex=function(t){var i=this.adapter.getMenuItemCount();if(!(t>=0&&t<i))throw new Error("MDCMenuFoundation: No list item at specified index.")},e}(s),ot=function(i){function n(){return null!==i&&i.apply(this,arguments)||this}return t(n,i),n.attachTo=function(t){return new n(t)},n.prototype.initialize=function(t,i){void 0===t&&(t=function(t){return new nt(t)}),void 0===i&&(i=function(t){return new tt(t)}),this.menuSurfaceFactory=t,this.listFactory=i},n.prototype.initialSyncWithDOM=function(){var t=this;this.menuSurface=this.menuSurfaceFactory(this.root);var i=this.root.querySelector(st.LIST_SELECTOR);i?(this.list=this.listFactory(i),this.list.wrapFocus=!0):this.list=null,this.handleKeydown=function(i){t.foundation.handleKeydown(i)},this.handleItemAction=function(i){t.foundation.handleItemAction(t.items[i.detail.index])},this.handleMenuSurfaceOpened=function(){t.foundation.handleMenuSurfaceOpened()},this.menuSurface.listen(it.strings.OPENED_EVENT,this.handleMenuSurfaceOpened),this.listen("keydown",this.handleKeydown),this.listen($.strings.ACTION_EVENT,this.handleItemAction)},n.prototype.destroy=function(){this.list&&this.list.destroy(),this.menuSurface.destroy(),this.menuSurface.unlisten(it.strings.OPENED_EVENT,this.handleMenuSurfaceOpened),this.unlisten("keydown",this.handleKeydown),this.unlisten($.strings.ACTION_EVENT,this.handleItemAction),i.prototype.destroy.call(this)},Object.defineProperty(n.prototype,"open",{get:function(){return this.menuSurface.isOpen()},set:function(t){t?this.menuSurface.open():this.menuSurface.close()},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"wrapFocus",{get:function(){return!!this.list&&this.list.wrapFocus},set:function(t){this.list&&(this.list.wrapFocus=t)},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"hasTypeahead",{set:function(t){this.list&&(this.list.hasTypeahead=t)},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"typeaheadInProgress",{get:function(){return!!this.list&&this.list.typeaheadInProgress},enumerable:!1,configurable:!0}),n.prototype.typeaheadMatchItem=function(t,i){return this.list?this.list.typeaheadMatchItem(t,i):-1},n.prototype.layout=function(){this.list&&this.list.layout()},Object.defineProperty(n.prototype,"items",{get:function(){return this.list?this.list.listElements:[]},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"singleSelection",{set:function(t){this.list&&(this.list.singleSelection=t)},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"selectedIndex",{get:function(){return this.list?this.list.selectedIndex:S.UNSET_INDEX},set:function(t){this.list&&(this.list.selectedIndex=t)},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"quickOpen",{set:function(t){this.menuSurface.quickOpen=t},enumerable:!1,configurable:!0}),n.prototype.setDefaultFocusState=function(t){this.foundation.setDefaultFocusState(t)},n.prototype.setAnchorCorner=function(t){this.menuSurface.setAnchorCorner(t)},n.prototype.setAnchorMargin=function(t){this.menuSurface.setAnchorMargin(t)},n.prototype.setSelectedIndex=function(t){this.foundation.setSelectedIndex(t)},n.prototype.setEnabled=function(t,i){this.foundation.setEnabled(t,i)},n.prototype.getOptionByIndex=function(t){return t<this.items.length?this.items[t]:null},n.prototype.getPrimaryTextAtIndex=function(t){var i=this.getOptionByIndex(t);return i&&this.list&&this.list.getPrimaryText(i)||""},n.prototype.setFixedPosition=function(t){this.menuSurface.setFixedPosition(t)},n.prototype.setIsHoisted=function(t){this.menuSurface.setIsHoisted(t)},n.prototype.setAbsolutePosition=function(t,i){this.menuSurface.setAbsolutePosition(t,i)},n.prototype.setAnchorElement=function(t){this.menuSurface.anchorElement=t},n.prototype.getDefaultFoundation=function(){var t=this;return new ut({addClassToElementAtIndex:function(i,n){t.items[i].classList.add(n)},removeClassFromElementAtIndex:function(i,n){t.items[i].classList.remove(n)},addAttributeToElementAtIndex:function(i,n,e){t.items[i].setAttribute(n,e)},removeAttributeFromElementAtIndex:function(i,n){t.items[i].removeAttribute(n)},getAttributeFromElementAtIndex:function(i,n){return t.items[i].getAttribute(n)},elementContainsClass:function(t,i){return t.classList.contains(i)},closeSurface:function(i){t.menuSurface.close(i)},getElementIndex:function(i){return t.items.indexOf(i)},notifySelected:function(i){t.emit(st.SELECTED_EVENT,{index:i.index,item:t.items[i.index]})},getMenuItemCount:function(){return t.items.length},focusItemAtIndex:function(i){t.items[i].focus()},focusListRoot:function(){t.root.querySelector(st.LIST_SELECTOR).focus()},isSelectableItemAtIndex:function(i){return!!u(t.items[i],"."+et.MENU_SELECTION_GROUP)},getSelectedSiblingOfItemAtIndex:function(i){var n=u(t.items[i],"."+et.MENU_SELECTION_GROUP).querySelector("."+et.MENU_SELECTED_LIST_ITEM);return n?t.items.indexOf(n):-1}})},n}(o),ht={ACTIVATED:"mdc-select--activated",DISABLED:"mdc-select--disabled",FOCUSED:"mdc-select--focused",INVALID:"mdc-select--invalid",MENU_INVALID:"mdc-select__menu--invalid",OUTLINED:"mdc-select--outlined",REQUIRED:"mdc-select--required",ROOT:"mdc-select",WITH_LEADING_ICON:"mdc-select--with-leading-icon"},ct={ARIA_CONTROLS:"aria-controls",ARIA_DESCRIBEDBY:"aria-describedby",ARIA_SELECTED_ATTR:"aria-selected",CHANGE_EVENT:"MDCSelect:change",HIDDEN_INPUT_SELECTOR:'input[type="hidden"]',LABEL_SELECTOR:".mdc-floating-label",LEADING_ICON_SELECTOR:".mdc-select__icon",LINE_RIPPLE_SELECTOR:".mdc-line-ripple",MENU_SELECTOR:".mdc-select__menu",OUTLINE_SELECTOR:".mdc-notched-outline",SELECTED_TEXT_SELECTOR:".mdc-select__selected-text",SELECT_ANCHOR_SELECTOR:".mdc-select__anchor",VALUE_ATTR:"data-value"},ft={LABEL_SCALE:.75,UNSET_INDEX:-1,CLICK_DEBOUNCE_TIMEOUT_MS:330},at=function(n){function e(t,s){void 0===s&&(s={});var r=n.call(this,i(i({},e.defaultAdapter),t))||this;return r.disabled=!1,r.isMenuOpen=!1,r.useDefaultValidation=!0,r.customValidity=!0,r.lastSelectedIndex=ft.UNSET_INDEX,r.clickDebounceTimeout=0,r.recentlyClicked=!1,r.leadingIcon=s.leadingIcon,r.helperText=s.helperText,r}return t(e,n),Object.defineProperty(e,"cssClasses",{get:function(){return ht},enumerable:!1,configurable:!0}),Object.defineProperty(e,"numbers",{get:function(){return ft},enumerable:!1,configurable:!0}),Object.defineProperty(e,"strings",{get:function(){return ct},enumerable:!1,configurable:!0}),Object.defineProperty(e,"defaultAdapter",{get:function(){return{addClass:function(){},removeClass:function(){},hasClass:function(){return!1},activateBottomLine:function(){},deactivateBottomLine:function(){},getSelectedIndex:function(){return-1},setSelectedIndex:function(){},hasLabel:function(){return!1},floatLabel:function(){},getLabelWidth:function(){return 0},setLabelRequired:function(){},hasOutline:function(){return!1},notchOutline:function(){},closeOutline:function(){},setRippleCenter:function(){},notifyChange:function(){},setSelectedText:function(){},isSelectAnchorFocused:function(){return!1},getSelectAnchorAttr:function(){return""},setSelectAnchorAttr:function(){},removeSelectAnchorAttr:function(){},addMenuClass:function(){},removeMenuClass:function(){},openMenu:function(){},closeMenu:function(){},getAnchorElement:function(){return null},setMenuAnchorElement:function(){},setMenuAnchorCorner:function(){},setMenuWrapFocus:function(){},focusMenuItemAtIndex:function(){},getMenuItemCount:function(){return 0},getMenuItemValues:function(){return[]},getMenuItemTextAtIndex:function(){return""},isTypeaheadInProgress:function(){return!1},typeaheadMatchItem:function(){return-1}}},enumerable:!1,configurable:!0}),e.prototype.getSelectedIndex=function(){return this.adapter.getSelectedIndex()},e.prototype.setSelectedIndex=function(t,i,n){void 0===i&&(i=!1),void 0===n&&(n=!1),t>=this.adapter.getMenuItemCount()||(this.adapter.setSelectedText(t===ft.UNSET_INDEX?"":this.adapter.getMenuItemTextAtIndex(t).trim()),this.adapter.setSelectedIndex(t),i&&this.adapter.closeMenu(),n||this.lastSelectedIndex===t||this.handleChange(),this.lastSelectedIndex=t)},e.prototype.setValue=function(t,i){void 0===i&&(i=!1);var n=this.adapter.getMenuItemValues().indexOf(t);this.setSelectedIndex(n,!1,i)},e.prototype.getValue=function(){var t=this.adapter.getSelectedIndex(),i=this.adapter.getMenuItemValues();return t!==ft.UNSET_INDEX?i[t]:""},e.prototype.getDisabled=function(){return this.disabled},e.prototype.setDisabled=function(t){this.disabled=t,this.disabled?(this.adapter.addClass(ht.DISABLED),this.adapter.closeMenu()):this.adapter.removeClass(ht.DISABLED),this.leadingIcon&&this.leadingIcon.setDisabled(this.disabled),this.disabled?this.adapter.removeSelectAnchorAttr("tabindex"):this.adapter.setSelectAnchorAttr("tabindex","0"),this.adapter.setSelectAnchorAttr("aria-disabled",this.disabled.toString())},e.prototype.openMenu=function(){this.adapter.addClass(ht.ACTIVATED),this.adapter.openMenu(),this.isMenuOpen=!0,this.adapter.setSelectAnchorAttr("aria-expanded","true")},e.prototype.setHelperTextContent=function(t){this.helperText&&this.helperText.setContent(t)},e.prototype.layout=function(){if(this.adapter.hasLabel()){var t=this.getValue().length>0,i=this.adapter.hasClass(ht.FOCUSED),n=t||i,e=this.adapter.hasClass(ht.REQUIRED);this.notchOutline(n),this.adapter.floatLabel(n),this.adapter.setLabelRequired(e)}},e.prototype.layoutOptions=function(){var t=this.adapter.getMenuItemValues().indexOf(this.getValue());this.setSelectedIndex(t,!1,!0)},e.prototype.handleMenuOpened=function(){if(0!==this.adapter.getMenuItemValues().length){var t=this.getSelectedIndex();this.adapter.focusMenuItemAtIndex(t>=0?t:0)}},e.prototype.handleMenuClosing=function(){this.adapter.setSelectAnchorAttr("aria-expanded","false")},e.prototype.handleMenuClosed=function(){this.adapter.removeClass(ht.ACTIVATED),this.isMenuOpen=!1,this.adapter.isSelectAnchorFocused()||this.blur()},e.prototype.handleChange=function(){this.layout(),this.adapter.notifyChange(this.getValue()),this.adapter.hasClass(ht.REQUIRED)&&this.useDefaultValidation&&this.setValid(this.isValid())},e.prototype.handleMenuItemAction=function(t){this.setSelectedIndex(t,!0)},e.prototype.handleFocus=function(){this.adapter.addClass(ht.FOCUSED),this.layout(),this.adapter.activateBottomLine()},e.prototype.handleBlur=function(){this.isMenuOpen||this.blur()},e.prototype.handleClick=function(t){this.disabled||this.recentlyClicked||(this.setClickDebounceTimeout(),this.isMenuOpen?this.adapter.closeMenu():(this.adapter.setRippleCenter(t),this.openMenu()))},e.prototype.handleKeydown=function(t){if(!this.isMenuOpen&&this.adapter.hasClass(ht.FOCUSED)){var i=G(t)===L,n=G(t)===R,e=G(t)===F,s=G(t)===j;if(!t.ctrlKey&&!t.metaKey&&(!n&&t.key&&1===t.key.length||n&&this.adapter.isTypeaheadInProgress())){var r=this.adapter.typeaheadMatchItem(n?" ":t.key,this.getSelectedIndex());return r>=0&&this.setSelectedIndex(r),void t.preventDefault()}(i||n||e||s)&&(this.openMenu(),t.preventDefault())}},e.prototype.notchOutline=function(t){if(this.adapter.hasOutline()){var i=this.adapter.hasClass(ht.FOCUSED);if(t){var n=ft.LABEL_SCALE,e=this.adapter.getLabelWidth()*n;this.adapter.notchOutline(e)}else i||this.adapter.closeOutline()}},e.prototype.setLeadingIconAriaLabel=function(t){this.leadingIcon&&this.leadingIcon.setAriaLabel(t)},e.prototype.setLeadingIconContent=function(t){this.leadingIcon&&this.leadingIcon.setContent(t)},e.prototype.getUseDefaultValidation=function(){return this.useDefaultValidation},e.prototype.setUseDefaultValidation=function(t){this.useDefaultValidation=t},e.prototype.setValid=function(t){this.useDefaultValidation||(this.customValidity=t),this.adapter.setSelectAnchorAttr("aria-invalid",(!t).toString()),t?(this.adapter.removeClass(ht.INVALID),this.adapter.removeMenuClass(ht.MENU_INVALID)):(this.adapter.addClass(ht.INVALID),this.adapter.addMenuClass(ht.MENU_INVALID)),this.syncHelperTextValidity(t)},e.prototype.isValid=function(){return this.useDefaultValidation&&this.adapter.hasClass(ht.REQUIRED)&&!this.adapter.hasClass(ht.DISABLED)?this.getSelectedIndex()!==ft.UNSET_INDEX&&(0!==this.getSelectedIndex()||Boolean(this.getValue())):this.customValidity},e.prototype.setRequired=function(t){t?this.adapter.addClass(ht.REQUIRED):this.adapter.removeClass(ht.REQUIRED),this.adapter.setSelectAnchorAttr("aria-required",t.toString()),this.adapter.setLabelRequired(t)},e.prototype.getRequired=function(){return"true"===this.adapter.getSelectAnchorAttr("aria-required")},e.prototype.init=function(){var t=this.adapter.getAnchorElement();t&&(this.adapter.setMenuAnchorElement(t),this.adapter.setMenuAnchorCorner(E.BOTTOM_START)),this.adapter.setMenuWrapFocus(!1),this.setDisabled(this.adapter.hasClass(ht.DISABLED)),this.syncHelperTextValidity(!this.adapter.hasClass(ht.INVALID)),this.layout(),this.layoutOptions()},e.prototype.blur=function(){this.adapter.removeClass(ht.FOCUSED),this.layout(),this.adapter.deactivateBottomLine(),this.adapter.hasClass(ht.REQUIRED)&&this.useDefaultValidation&&this.setValid(this.isValid())},e.prototype.syncHelperTextValidity=function(t){if(this.helperText){this.helperText.setValidity(t);var i=this.helperText.isVisible(),n=this.helperText.getId();i&&n?this.adapter.setSelectAnchorAttr(ct.ARIA_DESCRIBEDBY,n):this.adapter.removeSelectAnchorAttr(ct.ARIA_DESCRIBEDBY)}},e.prototype.setClickDebounceTimeout=function(){var t=this;clearTimeout(this.clickDebounceTimeout),this.clickDebounceTimeout=setTimeout((function(){t.recentlyClicked=!1}),ft.CLICK_DEBOUNCE_TIMEOUT_MS),this.recentlyClicked=!0},e}(s),lt={ARIA_HIDDEN:"aria-hidden",ROLE:"role"},dt={HELPER_TEXT_VALIDATION_MSG:"mdc-select-helper-text--validation-msg",HELPER_TEXT_VALIDATION_MSG_PERSISTENT:"mdc-select-helper-text--validation-msg-persistent"},mt=function(n){function e(t){return n.call(this,i(i({},e.defaultAdapter),t))||this}return t(e,n),Object.defineProperty(e,"cssClasses",{get:function(){return dt},enumerable:!1,configurable:!0}),Object.defineProperty(e,"strings",{get:function(){return lt},enumerable:!1,configurable:!0}),Object.defineProperty(e,"defaultAdapter",{get:function(){return{addClass:function(){},removeClass:function(){},hasClass:function(){return!1},setAttr:function(){},getAttr:function(){return null},removeAttr:function(){},setContent:function(){}}},enumerable:!1,configurable:!0}),e.prototype.getId=function(){return this.adapter.getAttr("id")},e.prototype.isVisible=function(){return"true"!==this.adapter.getAttr(lt.ARIA_HIDDEN)},e.prototype.setContent=function(t){this.adapter.setContent(t)},e.prototype.setValidation=function(t){t?this.adapter.addClass(dt.HELPER_TEXT_VALIDATION_MSG):this.adapter.removeClass(dt.HELPER_TEXT_VALIDATION_MSG)},e.prototype.setValidationMsgPersistent=function(t){t?this.adapter.addClass(dt.HELPER_TEXT_VALIDATION_MSG_PERSISTENT):this.adapter.removeClass(dt.HELPER_TEXT_VALIDATION_MSG_PERSISTENT)},e.prototype.getIsValidation=function(){return this.adapter.hasClass(dt.HELPER_TEXT_VALIDATION_MSG)},e.prototype.getIsValidationMsgPersistent=function(){return this.adapter.hasClass(dt.HELPER_TEXT_VALIDATION_MSG_PERSISTENT)},e.prototype.setValidity=function(t){if(this.adapter.hasClass(dt.HELPER_TEXT_VALIDATION_MSG)){var i=this.adapter.hasClass(dt.HELPER_TEXT_VALIDATION_MSG_PERSISTENT);if(!t||i)return this.showToScreenReader(),void(t?this.adapter.removeAttr(lt.ROLE):this.adapter.setAttr(lt.ROLE,"alert"));this.adapter.removeAttr(lt.ROLE),this.hide()}},e.prototype.showToScreenReader=function(){this.adapter.removeAttr(lt.ARIA_HIDDEN)},e.prototype.hide=function(){this.adapter.setAttr(lt.ARIA_HIDDEN,"true")},e}(s),bt=function(i){function n(){return null!==i&&i.apply(this,arguments)||this}return t(n,i),n.attachTo=function(t){return new n(t)},Object.defineProperty(n.prototype,"foundationForSelect",{get:function(){return this.foundation},enumerable:!1,configurable:!0}),n.prototype.getDefaultFoundation=function(){var t=this;return new mt({addClass:function(i){return t.root.classList.add(i)},removeClass:function(i){return t.root.classList.remove(i)},hasClass:function(i){return t.root.classList.contains(i)},getAttr:function(i){return t.root.getAttribute(i)},setAttr:function(i,n){return t.root.setAttribute(i,n)},removeAttr:function(i){return t.root.removeAttribute(i)},setContent:function(i){t.root.textContent=i}})},n}(o),Et={ICON_EVENT:"MDCSelect:icon",ICON_ROLE:"button"},It=["click","keydown"],At=function(n){function e(t){var s=n.call(this,i(i({},e.defaultAdapter),t))||this;return s.savedTabIndex=null,s.interactionHandler=function(t){s.handleInteraction(t)},s}return t(e,n),Object.defineProperty(e,"strings",{get:function(){return Et},enumerable:!1,configurable:!0}),Object.defineProperty(e,"defaultAdapter",{get:function(){return{getAttr:function(){return null},setAttr:function(){},removeAttr:function(){},setContent:function(){},registerInteractionHandler:function(){},deregisterInteractionHandler:function(){},notifyIconAction:function(){}}},enumerable:!1,configurable:!0}),e.prototype.init=function(){var t,i;this.savedTabIndex=this.adapter.getAttr("tabindex");try{for(var n=h(It),e=n.next();!e.done;e=n.next())this.adapter.registerInteractionHandler(e.value,this.interactionHandler)}catch(i){t={error:i}}finally{try{e&&!e.done&&(i=n.return)&&i.call(n)}finally{if(t)throw t.error}}},e.prototype.destroy=function(){var t,i;try{for(var n=h(It),e=n.next();!e.done;e=n.next())this.adapter.deregisterInteractionHandler(e.value,this.interactionHandler)}catch(i){t={error:i}}finally{try{e&&!e.done&&(i=n.return)&&i.call(n)}finally{if(t)throw t.error}}},e.prototype.setDisabled=function(t){this.savedTabIndex&&(t?(this.adapter.setAttr("tabindex","-1"),this.adapter.removeAttr("role")):(this.adapter.setAttr("tabindex",this.savedTabIndex),this.adapter.setAttr("role",Et.ICON_ROLE)))},e.prototype.setAriaLabel=function(t){this.adapter.setAttr("aria-label",t)},e.prototype.setContent=function(t){this.adapter.setContent(t)},e.prototype.handleInteraction=function(t){("click"===t.type||"Enter"===t.key||13===t.keyCode)&&this.adapter.notifyIconAction()},e}(s),vt=function(i){function n(){return null!==i&&i.apply(this,arguments)||this}return t(n,i),n.attachTo=function(t){return new n(t)},Object.defineProperty(n.prototype,"foundationForSelect",{get:function(){return this.foundation},enumerable:!1,configurable:!0}),n.prototype.getDefaultFoundation=function(){var t=this;return new At({getAttr:function(i){return t.root.getAttribute(i)},setAttr:function(i,n){return t.root.setAttribute(i,n)},removeAttr:function(i){return t.root.removeAttribute(i)},setContent:function(i){t.root.textContent=i},registerInteractionHandler:function(i,n){return t.listen(i,n)},deregisterInteractionHandler:function(i,n){return t.unlisten(i,n)},notifyIconAction:function(){return t.emit(At.strings.ICON_EVENT,{},!0)}})},n}(o),gt=function(n){function e(){return null!==n&&n.apply(this,arguments)||this}return t(e,n),e.attachTo=function(t){return new e(t)},e.prototype.initialize=function(t,i,n,e,s,r){if(void 0===t&&(t=function(t){return new l(t)}),void 0===i&&(i=function(t){return new d(t)}),void 0===n&&(n=function(t){return new m(t)}),void 0===e&&(e=function(t){return new ot(t)}),void 0===s&&(s=function(t){return new vt(t)}),void 0===r&&(r=function(t){return new bt(t)}),this.selectAnchor=this.root.querySelector(ct.SELECT_ANCHOR_SELECTOR),this.selectedText=this.root.querySelector(ct.SELECTED_TEXT_SELECTOR),this.hiddenInput=this.root.querySelector(ct.HIDDEN_INPUT_SELECTOR),!this.selectedText)throw new Error("MDCSelect: Missing required element: The following selector must be present: '"+ct.SELECTED_TEXT_SELECTOR+"'");if(this.selectAnchor.hasAttribute(ct.ARIA_CONTROLS)){var u=document.getElementById(this.selectAnchor.getAttribute(ct.ARIA_CONTROLS));u&&(this.helperText=r(u))}this.menuSetup(e);var o=this.root.querySelector(ct.LABEL_SELECTOR);this.label=o?t(o):null;var h=this.root.querySelector(ct.LINE_RIPPLE_SELECTOR);this.lineRipple=h?i(h):null;var c=this.root.querySelector(ct.OUTLINE_SELECTOR);this.outline=c?n(c):null;var f=this.root.querySelector(ct.LEADING_ICON_SELECTOR);f&&(this.leadingIcon=s(f)),this.root.classList.contains(ht.OUTLINED)||(this.ripple=this.createRipple())},e.prototype.initialSyncWithDOM=function(){var t=this;if(this.handleFocus=function(){t.foundation.handleFocus()},this.handleBlur=function(){t.foundation.handleBlur()},this.handleClick=function(i){t.selectAnchor.focus(),t.foundation.handleClick(t.getNormalizedXCoordinate(i))},this.handleKeydown=function(i){t.foundation.handleKeydown(i)},this.handleMenuItemAction=function(i){t.foundation.handleMenuItemAction(i.detail.index)},this.handleMenuOpened=function(){t.foundation.handleMenuOpened()},this.handleMenuClosed=function(){t.foundation.handleMenuClosed()},this.handleMenuClosing=function(){t.foundation.handleMenuClosing()},this.selectAnchor.addEventListener("focus",this.handleFocus),this.selectAnchor.addEventListener("blur",this.handleBlur),this.selectAnchor.addEventListener("click",this.handleClick),this.selectAnchor.addEventListener("keydown",this.handleKeydown),this.menu.listen(g.CLOSED_EVENT,this.handleMenuClosed),this.menu.listen(g.CLOSING_EVENT,this.handleMenuClosing),this.menu.listen(g.OPENED_EVENT,this.handleMenuOpened),this.menu.listen(st.SELECTED_EVENT,this.handleMenuItemAction),this.hiddenInput){if(this.hiddenInput.value)return this.foundation.setValue(this.hiddenInput.value,!0),void this.foundation.layout();this.hiddenInput.value=this.value}},e.prototype.destroy=function(){this.selectAnchor.removeEventListener("focus",this.handleFocus),this.selectAnchor.removeEventListener("blur",this.handleBlur),this.selectAnchor.removeEventListener("keydown",this.handleKeydown),this.selectAnchor.removeEventListener("click",this.handleClick),this.menu.unlisten(g.CLOSED_EVENT,this.handleMenuClosed),this.menu.unlisten(g.OPENED_EVENT,this.handleMenuOpened),this.menu.unlisten(st.SELECTED_EVENT,this.handleMenuItemAction),this.menu.destroy(),this.ripple&&this.ripple.destroy(),this.outline&&this.outline.destroy(),this.leadingIcon&&this.leadingIcon.destroy(),this.helperText&&this.helperText.destroy(),n.prototype.destroy.call(this)},Object.defineProperty(e.prototype,"value",{get:function(){return this.foundation.getValue()},set:function(t){this.foundation.setValue(t)},enumerable:!1,configurable:!0}),e.prototype.setValue=function(t,i){void 0===i&&(i=!1),this.foundation.setValue(t,i)},Object.defineProperty(e.prototype,"selectedIndex",{get:function(){return this.foundation.getSelectedIndex()},set:function(t){this.foundation.setSelectedIndex(t,!0)},enumerable:!1,configurable:!0}),e.prototype.setSelectedIndex=function(t,i){void 0===i&&(i=!1),this.foundation.setSelectedIndex(t,!0,i)},Object.defineProperty(e.prototype,"disabled",{get:function(){return this.foundation.getDisabled()},set:function(t){this.foundation.setDisabled(t),this.hiddenInput&&(this.hiddenInput.disabled=t)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"leadingIconAriaLabel",{set:function(t){this.foundation.setLeadingIconAriaLabel(t)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"leadingIconContent",{set:function(t){this.foundation.setLeadingIconContent(t)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"helperTextContent",{set:function(t){this.foundation.setHelperTextContent(t)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"useDefaultValidation",{set:function(t){this.foundation.setUseDefaultValidation(t)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"valid",{get:function(){return this.foundation.isValid()},set:function(t){this.foundation.setValid(t)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"required",{get:function(){return this.foundation.getRequired()},set:function(t){this.foundation.setRequired(t)},enumerable:!1,configurable:!0}),e.prototype.layout=function(){this.foundation.layout()},e.prototype.layoutOptions=function(){this.foundation.layoutOptions(),this.menu.layout(),this.menuItemValues=this.menu.items.map((function(t){return t.getAttribute(ct.VALUE_ATTR)||""})),this.hiddenInput&&(this.hiddenInput.value=this.value)},e.prototype.getDefaultFoundation=function(){var t=i(i(i(i({},this.getSelectAdapterMethods()),this.getCommonAdapterMethods()),this.getOutlineAdapterMethods()),this.getLabelAdapterMethods());return new at(t,this.getFoundationMap())},e.prototype.menuSetup=function(t){this.menuElement=this.root.querySelector(ct.MENU_SELECTOR),this.menu=t(this.menuElement),this.menu.hasTypeahead=!0,this.menu.singleSelection=!0,this.menuItemValues=this.menu.items.map((function(t){return t.getAttribute(ct.VALUE_ATTR)||""}))},e.prototype.createRipple=function(){var t=this,n=i(i({},f.createAdapter({root:this.selectAnchor})),{registerInteractionHandler:function(i,n){t.selectAnchor.addEventListener(i,n)},deregisterInteractionHandler:function(i,n){t.selectAnchor.removeEventListener(i,n)}});return new f(this.selectAnchor,new a(n))},e.prototype.getSelectAdapterMethods=function(){var t=this;return{getMenuItemAttr:function(t,i){return t.getAttribute(i)},setSelectedText:function(i){t.selectedText.textContent=i},isSelectAnchorFocused:function(){return document.activeElement===t.selectAnchor},getSelectAnchorAttr:function(i){return t.selectAnchor.getAttribute(i)},setSelectAnchorAttr:function(i,n){t.selectAnchor.setAttribute(i,n)},removeSelectAnchorAttr:function(i){t.selectAnchor.removeAttribute(i)},addMenuClass:function(i){t.menuElement.classList.add(i)},removeMenuClass:function(i){t.menuElement.classList.remove(i)},openMenu:function(){t.menu.open=!0},closeMenu:function(){t.menu.open=!1},getAnchorElement:function(){return t.root.querySelector(ct.SELECT_ANCHOR_SELECTOR)},setMenuAnchorElement:function(i){t.menu.setAnchorElement(i)},setMenuAnchorCorner:function(i){t.menu.setAnchorCorner(i)},setMenuWrapFocus:function(i){t.menu.wrapFocus=i},getSelectedIndex:function(){var i=t.menu.selectedIndex;return i instanceof Array?i[0]:i},setSelectedIndex:function(i){t.menu.selectedIndex=i},focusMenuItemAtIndex:function(i){t.menu.items[i].focus()},getMenuItemCount:function(){return t.menu.items.length},getMenuItemValues:function(){return t.menuItemValues},getMenuItemTextAtIndex:function(i){return t.menu.getPrimaryTextAtIndex(i)},isTypeaheadInProgress:function(){return t.menu.typeaheadInProgress},typeaheadMatchItem:function(i,n){return t.menu.typeaheadMatchItem(i,n)}}},e.prototype.getCommonAdapterMethods=function(){var t=this;return{addClass:function(i){t.root.classList.add(i)},removeClass:function(i){t.root.classList.remove(i)},hasClass:function(i){return t.root.classList.contains(i)},setRippleCenter:function(i){t.lineRipple&&t.lineRipple.setRippleCenter(i)},activateBottomLine:function(){t.lineRipple&&t.lineRipple.activate()},deactivateBottomLine:function(){t.lineRipple&&t.lineRipple.deactivate()},notifyChange:function(i){t.hiddenInput&&(t.hiddenInput.value=i),t.emit(ct.CHANGE_EVENT,{value:i,index:t.selectedIndex},!0)}}},e.prototype.getOutlineAdapterMethods=function(){var t=this;return{hasOutline:function(){return Boolean(t.outline)},notchOutline:function(i){t.outline&&t.outline.notch(i)},closeOutline:function(){t.outline&&t.outline.closeNotch()}}},e.prototype.getLabelAdapterMethods=function(){var t=this;return{hasLabel:function(){return!!t.label},floatLabel:function(i){t.label&&t.label.float(i)},getLabelWidth:function(){return t.label?t.label.getWidth():0},setLabelRequired:function(i){t.label&&t.label.setRequired(i)}}},e.prototype.getNormalizedXCoordinate=function(t){var i=t.target.getBoundingClientRect();return(this.isTouchEvent(t)?t.touches[0].clientX:t.clientX)-i.left},e.prototype.isTouchEvent=function(t){return Boolean(t.touches)},e.prototype.getFoundationMap=function(){return{helperText:this.helperText?this.helperText.foundationForSelect:void 0,leadingIcon:this.leadingIcon?this.leadingIcon.foundationForSelect:void 0}},e}(o);
|
|
113
|
+
/**
|
|
114
|
+
* @license
|
|
115
|
+
* Copyright 2018 Google Inc.
|
|
116
|
+
*
|
|
117
|
+
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
118
|
+
* of this software and associated documentation files (the "Software"), to deal
|
|
119
|
+
* in the Software without restriction, including without limitation the rights
|
|
120
|
+
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
121
|
+
* copies of the Software, and to permit persons to whom the Software is
|
|
122
|
+
* furnished to do so, subject to the following conditions:
|
|
123
|
+
*
|
|
124
|
+
* The above copyright notice and this permission notice shall be included in
|
|
125
|
+
* all copies or substantial portions of the Software.
|
|
126
|
+
*
|
|
127
|
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
128
|
+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
129
|
+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
130
|
+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
131
|
+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
132
|
+
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
133
|
+
* THE SOFTWARE.
|
|
134
|
+
*/export{gt as M}
|