@ptcwebops/ptcw-design 1.5.3 → 1.5.5
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/bundle-jumbotron-example.cjs.entry.js +50 -0
- package/dist/cjs/{bundle-jumbotron-example_14.cjs.entry.js → icon-asset_16.cjs.entry.js} +416 -405
- package/dist/cjs/interfaces-0ecd8027.js +15 -0
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/max-width-container_3.cjs.entry.js +236 -0
- package/dist/cjs/ptc-jumbotron.cjs.entry.js +135 -0
- package/dist/cjs/ptc-pricing-tabs.cjs.entry.js +1 -1
- package/dist/cjs/ptc-text-copy-with-background.cjs.entry.js +2 -1
- package/dist/cjs/ptcw-design.cjs.js +1 -1
- package/dist/collection/collection-manifest.json +7 -0
- package/dist/collection/components/list-item/list-item.css +15 -0
- package/dist/collection/components/list-item/list-item.js +2 -2
- package/dist/collection/components/ptc-back-to-top/ptc-back-to-top.css +30 -0
- package/dist/collection/components/ptc-back-to-top/ptc-back-to-top.js +61 -0
- package/dist/collection/components/ptc-jumbotron/ptc-jumbotron.css +33 -12
- package/dist/collection/components/ptc-picture/ptc-picture.css +7 -1
- package/dist/collection/components/ptc-picture/ptc-picture.js +20 -0
- package/dist/collection/components/ptc-pricing-tabs/ptc-pricing-tabs.css +33 -12
- package/dist/collection/components/ptc-product-card/ptc-product-card.css +61 -0
- package/dist/collection/components/ptc-product-card/ptc-product-card.js +179 -0
- package/dist/collection/components/ptc-product-category/ptc-product-category.css +4 -0
- package/dist/collection/components/ptc-product-category/ptc-product-category.js +60 -0
- package/dist/collection/components/ptc-product-dropdown/ptc-product-dropdown.css +79 -0
- package/dist/collection/components/ptc-product-dropdown/ptc-product-dropdown.js +185 -0
- package/dist/collection/components/ptc-product-highlight-card/ptc-product-highlight-card.css +11 -0
- package/dist/collection/components/ptc-product-highlight-card/ptc-product-highlight-card.js +96 -0
- package/dist/collection/components/ptc-product-list/ptc-product-list.css +23 -0
- package/dist/collection/components/ptc-product-list/ptc-product-list.js +171 -0
- package/dist/collection/components/ptc-product-sidebar/ptc-product-sidebar.css +150 -0
- package/dist/collection/components/ptc-product-sidebar/ptc-product-sidebar.js +237 -0
- package/dist/collection/components/ptc-text-copy-with-background/ptc-text-copy-with-background.js +2 -1
- package/dist/collection/components/ptc-title/ptc-title.css +8 -0
- package/dist/collection/components/ptc-title/ptc-title.js +2 -2
- package/dist/collection/components/ptc-tooltip/ptc-tooltip.css +9 -0
- package/dist/collection/components/ptc-tooltip/ptc-tooltip.js +21 -1
- package/dist/custom-elements/index.d.ts +42 -0
- package/dist/custom-elements/index.js +456 -11
- package/dist/esm/bundle-jumbotron-example.entry.js +46 -0
- package/dist/esm/{bundle-jumbotron-example_14.entry.js → icon-asset_16.entry.js} +409 -400
- package/dist/esm/interfaces-c1c73092.js +12 -0
- package/dist/esm/loader.js +1 -1
- package/dist/esm/max-width-container_3.entry.js +230 -0
- package/dist/esm/ptc-jumbotron.entry.js +131 -0
- package/dist/esm/ptc-pricing-tabs.entry.js +1 -1
- package/dist/esm/ptc-text-copy-with-background.entry.js +2 -1
- package/dist/esm/ptcw-design.js +1 -1
- package/dist/ptcw-design/p-50e52c88.js +1 -0
- package/dist/ptcw-design/p-6927c111.entry.js +1 -0
- package/dist/ptcw-design/p-73ea7065.entry.js +1 -0
- package/dist/ptcw-design/p-9379f3b6.entry.js +1 -0
- package/dist/ptcw-design/p-a0ead888.entry.js +1 -0
- package/dist/ptcw-design/{p-face0c41.entry.js → p-e2c96087.entry.js} +1 -1
- package/dist/ptcw-design/p-f9129612.entry.js +1 -0
- package/dist/ptcw-design/ptcw-design.css +2 -2
- package/dist/ptcw-design/ptcw-design.esm.js +1 -1
- package/dist/types/components/list-item/list-item.d.ts +1 -1
- package/dist/types/components/ptc-back-to-top/ptc-back-to-top.d.ts +9 -0
- package/dist/types/components/ptc-picture/ptc-picture.d.ts +4 -0
- package/dist/types/components/ptc-product-card/ptc-product-card.d.ts +39 -0
- package/dist/types/components/ptc-product-category/ptc-product-category.d.ts +5 -0
- package/dist/types/components/ptc-product-dropdown/ptc-product-dropdown.d.ts +18 -0
- package/dist/types/components/ptc-product-highlight-card/ptc-product-highlight-card.d.ts +23 -0
- package/dist/types/components/ptc-product-list/ptc-product-list.d.ts +17 -0
- package/dist/types/components/ptc-product-sidebar/ptc-product-sidebar.d.ts +30 -0
- package/dist/types/components/ptc-title/ptc-title.d.ts +1 -1
- package/dist/types/components/ptc-tooltip/ptc-tooltip.d.ts +4 -0
- package/dist/types/components.d.ts +229 -4
- package/package.json +1 -1
- package/readme.md +1 -1
- package/dist/ptcw-design/p-81bd0113.entry.js +0 -1
- package/dist/ptcw-design/p-df275994.entry.js +0 -1
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
let ResponsiveBgVariables = {
|
|
2
|
+
envs: ['xs', 'sm', 'md', 'lg'],
|
|
3
|
+
selector: '.ptc-img',
|
|
4
|
+
interval: 250
|
|
5
|
+
};
|
|
6
|
+
let ResponsivePictureVariables = {
|
|
7
|
+
envs: ['xs', 'sm', 'md', 'lg'],
|
|
8
|
+
selector: '.ptc-picture',
|
|
9
|
+
interval: 250
|
|
10
|
+
};
|
|
11
|
+
|
|
12
|
+
export { ResponsivePictureVariables as R, ResponsiveBgVariables as a };
|
package/dist/esm/loader.js
CHANGED
|
@@ -11,7 +11,7 @@ const patchEsm = () => {
|
|
|
11
11
|
const defineCustomElements = (win, options) => {
|
|
12
12
|
if (typeof window === 'undefined') return Promise.resolve();
|
|
13
13
|
return patchEsm().then(() => {
|
|
14
|
-
return bootstrapLazy(JSON.parse("[[\"bundle-jumbotron-example_14\",[[1,\"bundle-jumbotron-example\",{\"jumbotron\":[1],\"isIframe\":[4,\"is-iframe\"]}],[1,\"ptc-jumbotron\",{\"jumbotronType\":[1,\"jumbotron-type\"],\"hasPopupVideo\":[4,\"has-popup-video\"],\"mainTitle\":[1,\"main-title\"],\"subTitle\":[1,\"sub-title\"],\"pngSrc\":[1,\"png-src\"],\"gifSrc\":[1,\"gif-src\"],\"bgVideoSrc\":[1,\"bg-video-src\"],\"bgSrc\":[1,\"bg-src\"],\"isIframe\":[4,\"is-iframe\"],\"playButtonTitle\":[1,\"play-button-title\"],\"pauseButtonTitle\":[1,\"pause-button-title\"],\"contentBackground\":[32],\"contentColor\":[32],\"textAlign\":[32],\"isMobile\":[32]},[[9,\"resize\",\"handleResize\"]]],[1,\"ptc-breadcrumb\",{\"position\":[1],\"removeTopMargin\":[4,\"remove-top-margin\"],\"color\":[1],\"styles\":[1]}],[1,\"ptc-background-video\",{\"videoSrc\":[1,\"video-src\"],\"posterSrc\":[1,\"poster-src\"],\"overlay\":[4],\"playButtonTitle\":[1,\"play-button-title\"],\"pauseButtonTitle\":[1,\"pause-button-title\"],\"type\":[1],\"isIframe\":[4,\"is-iframe\"],\"paused\":[32]}],[1,\"max-width-container\",{\"maxWidth\":[2,\"max-width\"],\"breakpoint\":[2],\"contentAlign\":[1,\"content-align\"]}],[4,\"ptc-img\",{\"sizeXs\":[1025,\"size-xs\"],\"sizeSm\":[1025,\"size-sm\"],\"sizeMd\":[1025,\"size-md\"],\"sizeLg\":[1025,\"size-lg\"],\"imgUrl\":[1,\"img-url\"],\"imageType\":[1,\"image-type\"],\"borderRadius\":[1,\"border-radius\"],\"loadMode\":[1,\"load-mode\"],\"styles\":[1]},[[9,\"resize\",\"WindowResize\"]]],[6,\"ptc-title\",{\"isPlmHub\":[4,\"is-plm-hub\"],\"type\":[1],\"textAlign\":[1,\"text-align\"],\"upperline\":[1],\"titleShadow\":[1,\"title-shadow\"],\"titleColor\":[1,\"title-color\"],\"titleMargin\":[1,\"title-margin\"],\"titleWeight\":[1,\"title-weight\"],\"titleSize\":[1,\"title-size\"],\"titleHeight\":[1,\"title-height\"],\"styles\":[1],\"ellipsisLineCutoff\":[2,\"ellipsis-line-cutoff\"],\"titleDisplay\":[1,\"title-display\"]}],[1,\"list-item\",{\"listType\":[1,\"list-type\"],\"linkHref\":[1,\"link-href\"],\"flushBefore\":[4,\"flush-before\"],\"linkTarget\":[1,\"link-target\"],\"color\":[1],\"styles\":[1]}],[1,\"ptc-spacer\",{\"breakpoint\":[1],\"size\":[1],\"direction\":[1]}],[6,\"ptc-tooltip\",{\"textDisplay\":[1,\"text-display\"],\"maxLength\":[2,\"max-length\"],\"textLines\":[2,\"text-lines\"],\"description\":[1],\"zIndex\":[1,\"z-index\"],\"position\":[1],\"styles\":[1],\"mode\":[1],\"theme\":[1],\"hideOnMobile\":[4,\"hide-on-mobile\"],\"isSmallScreen\":[4,\"is-small-screen\"]},[[9,\"resize\",\"addTruncatedClass\"],[9,\"resize\",\"windowResize\"]]],[1,\"ptc-button\",{\"disabled\":[516],\"active\":[516],\"type\":[1],\"color\":[1],\"iconAnimation\":[1,\"icon-animation\"],\"iconPosition\":[1,\"icon-position\"],\"linkHref\":[1,\"link-href\"],\"linkTitle\":[1,\"link-title\"],\"target\":[1],\"rel\":[1],\"tabNav\":[2,\"tab-nav\"],\"styles\":[1]}],[1,\"ptc-para\",{\"fontSize\":[1,\"font-size\"],\"fontWeight\":[1,\"font-weight\"],\"paraStyle\":[1,\"para-style\"],\"paraColor\":[1,\"para-color\"],\"paraLineH\":[1,\"para-line-h\"],\"paraMargin\":[1,\"para-margin\"],\"paraAlign\":[1,\"para-align\"],\"ellipsisLineCutoff\":[2,\"ellipsis-line-cutoff\"],\"paraZIndex\":[1,\"para-z-index\"],\"styles\":[1]}],[1,\"ptc-picture\",{\"src\":[1],\"alt\":[1],\"sizeXs\":[1025,\"size-xs\"],\"sizeSm\":[1025,\"size-sm\"],\"sizeMd\":[1025,\"size-md\"],\"sizeLg\":[1025,\"size-lg\"],\"imagePosition\":[1,\"image-position\"],\"borderRadius\":[1,\"border-radius\"],\"height\":[1],\"width\":[1],\"objectFit\":[1,\"object-fit\"],\"isFullHeight\":[4,\"is-full-height\"],\"isFullWidth\":[4,\"is-full-width\"],\"styles\":[1],\"imageAlignment\":[1,\"image-alignment\"],\"maxWidth\":[1,\"max-width\"],\"oldSrc\":[32]},[[9,\"resize\",\"WindowResize\"]]],[2,\"icon-asset\",{\"name\":[1],\"size\":[1],\"type\":[1],\"spin\":[1],\"pulse\":[1],\"color\":[1],\"isMobileSelect\":[4,\"is-mobile-select\"],\"injectedStyle\":[1,\"injected-style\"]}]]],[\"sequential-bundle\",[[1,\"sequential-bundle\",{\"isMobile\":[32]},[[9,\"resize\",\"handleResize\"]]]]],[\"sequential-bundle-example\",[[1,\"sequential-bundle-example\",{\"isInteralCardsExpanded\":[1040],\"isMobile\":[32],\"expandedCardIndex\":[32]},[[9,\"resize\",\"handleResize\"]]]]],[\"bundle-example\",[[1,\"bundle-example\",{\"isLoading\":[32],\"picWidth\":[32],\"picHeight\":[32]},[[9,\"resize\",\"handleWindowResize\"]]]]],[\"innovator-toggle-container\",[[1,\"innovator-toggle-container\",{\"sectionTitle\":[1,\"section-title\"],\"description\":[1],\"backgroundImage\":[1,\"background-image\"]}]]],[\"ptc-announcement\",[[1,\"ptc-announcement\",{\"barTitle\":[1025,\"bar-title\"],\"description\":[1025],\"linkText\":[513,\"link-text\"],\"linkTitle\":[513,\"link-title\"],\"visible\":[1540],\"linkUrl\":[1537,\"link-url\"],\"insideContainer\":[4,\"inside-container\"],\"target\":[1025],\"windowSize\":[32]},[[9,\"resize\",\"handleResize\"]]]]],[\"ptc-tab-list\",[[4,\"ptc-tab-list\",{\"type\":[1],\"selectedValue\":[32]},[[0,\"tabClicked\",\"onSelectedTab\"],[9,\"resize\",\"calculateHeaderTabsRendering\"]]]]],[\"ptc-card\",[[1,\"ptc-card\",{\"cardType\":[1,\"card-type\"],\"cardHref\":[1,\"card-href\"],\"target\":[1],\"rel\":[1],\"hasImage\":[4,\"has-image\"],\"hasVideo\":[4,\"has-video\"],\"hasLottie\":[4,\"has-lottie\"],\"heading\":[1],\"headingTransform\":[1,\"heading-transform\"],\"cardDate\":[1,\"card-date\"],\"country\":[1],\"styles\":[1],\"ribbonText\":[1,\"ribbon-text\"],\"eventType\":[1,\"event-type\"],\"cardLogo\":[1,\"card-logo\"],\"titleLineCutOff\":[2,\"title-line-cut-off\"]}]]],[\"ptc-collapse-list\",[[1,\"ptc-collapse-list\",{\"header\":[1],\"listItems\":[1040],\"placeholderText\":[1025,\"placeholder-text\"],\"debounceUpdateDelay\":[1026,\"debounce-update-delay\"],\"data\":[32],\"searchText\":[32],\"selectedValue\":[32],\"selectedItems\":[32],\"hashMap\":[32],\"debouncedUpdatedEvent\":[32],\"refreshBuffer\":[32],\"removeSelectedItem\":[64],\"addSelectedItem\":[64]}]]],[\"ptc-hero\",[[1,\"ptc-hero\",{\"heroType\":[1,\"hero-type\"],\"bgUrl\":[1,\"bg-url\"],\"contentAlignment\":[1,\"content-alignment\"]}]]],[\"ptc-previous-url\",[[1,\"ptc-previous-url\",{\"href\":[1],\"text\":[1],\"styles\":[1]}]]],[\"ptc-pricing-tabs\",[[1,\"ptc-pricing-tabs\",{\"productTag\":[1,\"product-tag\"],\"header\":[1],\"tabLabel\":[1,\"tab-label\"],\"filterTag\":[1,\"filter-tag\"],\"styles\":[1],\"tabItems\":[32],\"isMobileViewPort\":[32],\"isDesktopViewPort\":[32]},[[9,\"resize\",\"setIsMobileViewPort\"]]]]],[\"ptc-bio-card\",[[1,\"ptc-bio-card\",{\"name\":[1],\"jobTitle\":[1,\"job-title\"],\"image\":[1],\"linkedin\":[1],\"twitter\":[1],\"showModal\":[32]}]]],[\"ptc-checkbox\",[[1,\"ptc-checkbox\",{\"checked\":[1025],\"value\":[1025],\"disabled\":[1028],\"inputName\":[1,\"input-name\"]}]]],[\"ptc-dropdown\",[[1,\"ptc-dropdown\",{\"theme\":[1],\"label\":[1],\"listItems\":[16],\"toggle\":[32],\"selectedItem\":[32]},[[4,\"click\",\"offClick\"]]]]],[\"ptc-filter-tag\",[[1,\"ptc-filter-tag\",{\"theme\":[1],\"iconColorMap\":[32]}]]],[\"ptc-icon-minimize\",[[1,\"ptc-icon-minimize\",{\"heading\":[1025],\"opened\":[1028],\"timeStamp\":[32],\"Refresh\":[64]}]]],[\"ptc-list\",[[1,\"ptc-list\",{\"listType\":[1,\"list-type\"],\"listItems\":[16]}]]],[\"ptc-lottie\",[[1,\"ptc-lottie\",{\"jsonSrc\":[1025,\"json-src\"],\"speed\":[1026]}]]],[\"ptc-media-card\",[[1,\"ptc-media-card\",{\"cardType\":[1,\"card-type\"],\"cardHref\":[1,\"card-href\"],\"target\":[1],\"rel\":[1],\"activeBackgroundImage\":[1025,\"active-background-image\"],\"hoverBackgroundImage\":[1025,\"hover-background-image\"],\"heading\":[1025],\"headingTransform\":[1025,\"heading-transform\"],\"category\":[1025],\"isHovered\":[32]}]]],[\"ptc-mobile-select\",[[0,\"ptc-mobile-select\",{\"triggerName\":[1,\"trigger-name\"],\"selectedText\":[1,\"selected-text\"],\"wheelData\":[1040],\"selectedId\":[1,\"selected-id\"],\"ensureBtnText\":[1,\"ensure-btn-text\"],\"cancelBtnText\":[1,\"cancel-btn-text\"],\"listTitle\":[1,\"list-title\"]}]]],[\"ptc-nav-submenu\",[[1,\"ptc-nav-submenu\",{\"label\":[1],\"iconAssetName\":[1025,\"icon-asset-name\"]}]]],[\"ptc-pagenation\",[[1,\"ptc-pagenation\",{\"totalCount\":[2,\"total-count\"],\"numberOfItems\":[2,\"number-of-items\"],\"previousValue\":[1,\"previous-value\"],\"lastValue\":[1,\"last-value\"],\"minPageNumber\":[2,\"min-page-number\"],\"maxPageNumber\":[2,\"max-page-number\"],\"clickedPageNumber\":[2,\"clicked-page-number\"],\"appendArray\":[4,\"append-array\"],\"prevArrowImg\":[1,\"prev-arrow-img\"],\"nextArrowImg\":[1,\"next-arrow-img\"],\"theme\":[1],\"styles\":[1],\"pageNumbers\":[32],\"isSmallScreen\":[32]},[[9,\"resize\",\"windowResize\"]]]]],[\"ptc-quote\",[[1,\"ptc-quote\",{\"quoteType\":[1025,\"quote-type\"],\"quoteName\":[1025,\"quote-name\"],\"ctaText\":[1,\"cta-text\"],\"ctaUrl\":[1,\"cta-url\"],\"imgSrc\":[1,\"img-src\"],\"imgTitle\":[1,\"img-title\"]}]]],[\"ptc-search-field\",[[1,\"ptc-search-field\",{\"textValue\":[1,\"text-value\"],\"placeholderLabel\":[1,\"placeholder-label\"],\"darkTheme\":[4,\"dark-theme\"],\"elevation\":[1],\"enableClear\":[4,\"enable-clear\"],\"styles\":[1],\"clearSearchValue\":[64]}]]],[\"ptc-social-share\",[[1,\"ptc-social-share\",{\"display\":[1],\"shareType\":[1,\"share-type\"],\"shareTitle\":[1,\"share-title\"],\"text\":[1],\"url\":[1],\"source\":[1],\"recipient\":[1],\"iconColor\":[1,\"icon-color\"],\"iconHoverColor\":[1,\"icon-hover-color\"],\"isHover\":[32]}]]],[\"ptc-subnav-card\",[[1,\"ptc-subnav-card\",{\"cardTitle\":[1,\"card-title\"],\"cardHref\":[1,\"card-href\"],\"cardImageSrc\":[1,\"card-image-src\"],\"cardImageAlt\":[1,\"card-image-alt\"],\"ctaText\":[1,\"cta-text\"],\"ctaIconAssetName\":[1,\"cta-icon-asset-name\"]}]]],[\"tab-header\",[[0,\"tab-header\",{\"name\":[1],\"tooltip\":[1],\"tabHeaderText\":[1,\"tab-header-text\"],\"isSelected\":[32],\"maxLength\":[32],\"getChild\":[64]},[[9,\"resize\",\"handleWindowResize\"]]]]],[\"dynamic-box-bundle\",[[1,\"dynamic-box-bundle\",{\"topImgSrc\":[1,\"top-img-src\"],\"topImgAlt\":[1,\"top-img-alt\"],\"boxHeight\":[2,\"box-height\"],\"isHovering\":[32]},[[1,\"mouseover\",\"handleMouseOver\"],[1,\"mouseout\",\"handleMouseOut\"]]]]],[\"my-component\",[[1,\"my-component\",{\"first\":[1],\"middle\":[1],\"last\":[1]}]]],[\"ptc-accordion\",[[1,\"ptc-accordion\",{\"multiple\":[4]},[[0,\"opened\",\"openHandler\"]]]]],[\"ptc-accordion-item\",[[1,\"ptc-accordion-item\",{\"heading\":[1],\"headingTag\":[1,\"heading-tag\"],\"autoHeight\":[4,\"auto-height\"],\"active\":[1540],\"hasHeadingSlot\":[32],\"hasArrowSlot\":[32],\"toggle\":[64],\"close\":[64],\"open\":[64]}]]],[\"ptc-container\",[[1,\"ptc-container\",{\"backgroundColor\":[1,\"background-color\"],\"elevation\":[1],\"containerType\":[1,\"container-type\"],\"spacing\":[1],\"styles\":[1]}]]],[\"ptc-hero-footer-cta\",[[6,\"ptc-hero-footer-cta\",{\"ctaTitle\":[1,\"cta-title\"],\"description\":[1],\"backgroundImage\":[1,\"background-image\"]}]]],[\"ptc-icon-list\",[[1,\"ptc-icon-list\",{\"listType\":[1,\"list-type\"],\"valueWithUnit\":[1,\"value-with-unit\"],\"valueText\":[1,\"value-text\"],\"listContent\":[1,\"list-content\"],\"isLastItem\":[4,\"is-last-item\"]}]]],[\"ptc-link\",[[1,\"ptc-link\",{\"disabled\":[516],\"external\":[516],\"href\":[1],\"target\":[1],\"linkTitle\":[1,\"link-title\"],\"theme\":[1],\"fontSize\":[1,\"font-size\"],\"fontWeight\":[1,\"font-weight\"],\"linkArea\":[1,\"link-area\"]}]]],[\"ptc-minimized-footer\",[[1,\"ptc-minimized-footer\"]]],[\"ptc-minimized-header\",[[1,\"ptc-minimized-header\",{\"linkUrl\":[513,\"link-url\"],\"imgSrc\":[513,\"img-src\"],\"imgAlt\":[513,\"img-alt\"]}]]],[\"ptc-nav-card\",[[1,\"ptc-nav-card\",{\"cardType\":[1025,\"card-type\"],\"cardHref\":[1025,\"card-href\"],\"logoAlt\":[1025,\"logo-alt\"],\"target\":[1025],\"rel\":[1025],\"linkTitle\":[1025,\"link-title\"],\"cardLogo\":[1025,\"card-logo\"],\"heading\":[1025],\"description\":[1025],\"windowSize\":[32]},[[9,\"resize\",\"handleResize\"]]]]],[\"ptc-nav-link\",[[1,\"ptc-nav-link\",{\"href\":[1025],\"isOutsideLink\":[1028,\"is-outside-link\"],\"titleText\":[1025,\"title-text\"]},[[2,\"click\",\"handleClick\"]]]]],[\"ptc-nav-slider\",[[1,\"ptc-nav-slider\",{\"sliderId\":[1,\"slider-id\"]},[[0,\"dropdownClickEvent\",\"handledropdownClickEvent\"]]]]],[\"ptc-responsive-wrapper\",[[1,\"ptc-responsive-wrapper\"]]],[\"ptc-shopping-cart\",[[1,\"ptc-shopping-cart\",{\"cartCount\":[1,\"cart-count\"],\"color\":[1]}]]],[\"ptc-span\",[[1,\"ptc-span\",{\"spanStyle\":[1,\"span-style\"],\"display\":[1],\"styles\":[1]}]]],[\"ptc-sticky-icons\",[[1,\"ptc-sticky-icons\",null,[[9,\"resize\",\"handleResize\"]]]]],[\"ptc-sticky-section\",[[1,\"ptc-sticky-section\",null,[[9,\"scroll\",\"handleScroll\"]]]]],[\"ptc-subnav\",[[1,\"ptc-subnav\",{\"navOpen\":[32]},[[9,\"scroll\",\"handleScroll\"]]]]],[\"ptc-tab\",[[1,\"ptc-tab\",{\"optionClicked\":[1540,\"option-clicked\"],\"label\":[1],\"price\":[1],\"active\":[4],\"disabled\":[516]}]]],[\"ptc-tabs\",[[1,\"ptc-tabs\",{\"tabs\":[32],\"openTab\":[64]}]]],[\"ptc-text-copy-with-background\",[[1,\"ptc-text-copy-with-background\",{\"type\":[1],\"backgroundImage\":[1,\"background-image\"],\"ImageAltText\":[1,\"image-alt-text\"],\"topSlitBackgroundColor\":[1,\"top-slit-background-color\"],\"slitPosition\":[1,\"slit-position\"],\"isBackgroundBlur\":[4,\"is-background-blur\"],\"overlay\":[4]}]]],[\"ptc-two-column-media\",[[1,\"ptc-two-column-media\",{\"componentType\":[1,\"component-type\"]}]]],[\"tab-content\",[[4,\"tab-content\",{\"name\":[1],\"isSelected\":[32],\"getChild\":[64]}]]],[\"ptc-ellipsis-dropdown\",[[1,\"ptc-ellipsis-dropdown\",{\"dataItems\":[16],\"selectedTab\":[1,\"selected-tab\"],\"isDropdownOpen\":[32]},[[4,\"click\",\"offClick\"]]]]],[\"lottie-player\",[[1,\"lottie-player\",{\"mode\":[1],\"autoplay\":[4],\"background\":[513],\"controls\":[4],\"count\":[2],\"direction\":[2],\"hover\":[4],\"loop\":[516],\"renderer\":[1],\"speed\":[2],\"src\":[1],\"currentState\":[1,\"current-state\"],\"seeker\":[8],\"intermission\":[2],\"play\":[64],\"pause\":[64],\"stop\":[64],\"seek\":[64],\"getLottie\":[64],\"setSpeed\":[64],\"setDirection\":[64],\"setLooping\":[64],\"togglePlay\":[64],\"toggleLooping\":[64]}]]],[\"ptc-date\",[[1,\"ptc-date\",{\"year\":[2],\"month\":[2],\"day\":[2],\"country\":[1],\"dateString\":[1,\"date-string\"],\"dateColor\":[1,\"date-color\"],\"dateStyles\":[1,\"date-styles\"],\"dataSize\":[1,\"data-size\"],\"formatOptions\":[1,\"format-options\"]}]]],[\"ptc-modal\",[[1,\"ptc-modal\",{\"iframeUrl\":[1025,\"iframe-url\"],\"size\":[1025],\"show\":[1028],\"overlay\":[1028],\"fixed\":[1028],\"closeOnBlur\":[1028,\"close-on-blur\"],\"rounded\":[1028],\"showHeaderFooter\":[1028,\"show-header-footer\"],\"borderRadius\":[1025,\"border-radius\"],\"isBioModal\":[1028,\"is-bio-modal\"],\"overlayHeight\":[32],\"bodyOverflowSetting\":[32]}]]],[\"ptc-pricing-block\",[[1,\"ptc-pricing-block\",{\"active\":[4],\"optionClicked\":[1540,\"option-clicked\"]}]]],[\"ptc-readmore\",[[1,\"ptc-readmore\",{\"moreText\":[1025,\"more-text\"],\"lessText\":[1025,\"less-text\"],\"readMorePosition\":[1,\"read-more-position\"],\"display\":[1],\"visibleLines\":[1,\"visible-lines\"],\"visibleLinesCustom\":[2,\"visible-lines-custom\"],\"zIndex\":[1,\"z-index\"],\"checked\":[1028],\"size\":[1],\"isIcon\":[4,\"is-icon\"],\"color\":[1]},[[9,\"resize\",\"addBtnTruncated\"]]]]],[\"ptc-svg-btn\",[[1,\"ptc-svg-btn\",{\"svgName\":[1,\"svg-name\"],\"display\":[1],\"zIndex\":[1,\"z-index\"],\"styles\":[2]}]]],[\"ptc-card-content\",[[1,\"ptc-card-content\",{\"cardType\":[1,\"card-type\"],\"outlineColor\":[1,\"outline-color\"],\"styles\":[1],\"isLoading\":[4,\"is-loading\"],\"setHeight\":[64],\"removeInlineHeight\":[64]}]]],[\"ptc-dynamic-card\",[[1,\"ptc-dynamic-card\",{\"cardType\":[1,\"card-type\"],\"cardTitle\":[1,\"card-title\"],\"cardImgSrc\":[1,\"card-img-src\"],\"cardImgAlt\":[1,\"card-img-alt\"],\"cardScreen\":[1,\"card-screen\"],\"isExpanded\":[4,\"is-expanded\"],\"overlayExists\":[32]}]]],[\"dropdown-item\",[[4,\"dropdown-item\",{\"linkHref\":[1,\"link-href\"],\"linkTarget\":[1,\"link-target\"]}]]],[\"ptc-card-bottom_3\",[[1,\"ptc-card-bottom\",{\"cardType\":[1,\"card-type\"],\"styles\":[1]}],[1,\"ptc-card-wrapper\",{\"cardType\":[1,\"card-type\"],\"cardLink\":[1,\"card-link\"],\"linkTitle\":[1,\"link-title\"],\"linkTarget\":[1,\"link-target\"],\"isLoading\":[4,\"is-loading\"]},[[9,\"resize\",\"handleResize\"]]],[1,\"ptc-skeleton\",{\"isLoading\":[4,\"is-loading\"],\"animated\":[4],\"width\":[1],\"borderRadius\":[1,\"border-radius\"],\"topMargin\":[1,\"top-margin\"],\"btmMargin\":[1,\"btm-margin\"]}]]],[\"ptc-overlay\",[[1,\"ptc-overlay\",{\"filterColor\":[1,\"filter-color\"],\"borderRadius\":[1,\"border-radius\"],\"overlayZIndex\":[1,\"overlay-z-index\"],\"styles\":[1],\"setOverlay\":[64]}]]]]"), options);
|
|
14
|
+
return bootstrapLazy(JSON.parse("[[\"icon-asset_16\",[[1,\"ptc-product-sidebar\",{\"suggestionList\":[16],\"searchTerm\":[32],\"suggestions\":[32]},[[4,\"dropdownTouched\",\"handleDropdownTouched\"],[0,\"click\",\"handleClick\"],[4,\"clearCtaClicked\",\"handleclearCtaClicked\"]]],[1,\"ptc-product-card\",{\"cardTitle\":[1,\"card-title\"],\"cardImage\":[1,\"card-image\"],\"cardImageAltText\":[1,\"card-image-alt-text\"],\"cardDescription\":[1,\"card-description\"],\"cardCtaText\":[1,\"card-cta-text\"],\"toggleCtaTitle\":[1,\"toggle-cta-title\"],\"isSlotEmpty\":[4,\"is-slot-empty\"],\"isOpen\":[32]}],[1,\"ptc-product-category\",{\"categoryTitle\":[1,\"category-title\"],\"categoryDescription\":[1,\"category-description\"]}],[1,\"ptc-product-highlight-card\",{\"cardTitle\":[1,\"card-title\"],\"cardImage\":[1,\"card-image\"],\"cardImageAltText\":[1,\"card-image-alt-text\"],\"cardDescription\":[1,\"card-description\"]}],[1,\"ptc-product-list\",null,[[4,\"selectedResult\",\"handleSearchResult\"],[4,\"clearsearch\",\"handleSearchResult\"],[4,\"selectedValues\",\"handleMultipleSearchResult\"],[4,\"emptyResult\",\"handleEmptyResult\"]]],[1,\"ptc-back-to-top\",{\"showButton\":[32]},[[0,\"click\",\"handleClick\"]]],[1,\"ptc-breadcrumb\",{\"position\":[1],\"removeTopMargin\":[4,\"remove-top-margin\"],\"color\":[1],\"styles\":[1]}],[1,\"ptc-product-dropdown\",{\"newOptions\":[16],\"selectedOptions\":[16],\"placeholder\":[1],\"internalOptions\":[32],\"isOpen\":[32]},[[4,\"clearsearch\",\"handleSearchResult\"],[4,\"inputChanged\",\"handleinputChanged\"]]],[1,\"list-item\",{\"listType\":[1,\"list-type\"],\"linkHref\":[1,\"link-href\"],\"flushBefore\":[4,\"flush-before\"],\"linkTarget\":[1,\"link-target\"],\"color\":[1],\"styles\":[1]}],[1,\"ptc-button\",{\"disabled\":[516],\"active\":[516],\"type\":[1],\"color\":[1],\"iconAnimation\":[1,\"icon-animation\"],\"iconPosition\":[1,\"icon-position\"],\"linkHref\":[1,\"link-href\"],\"linkTitle\":[1,\"link-title\"],\"target\":[1],\"rel\":[1],\"tabNav\":[2,\"tab-nav\"],\"styles\":[1]}],[1,\"ptc-spacer\",{\"breakpoint\":[1],\"size\":[1],\"direction\":[1]}],[6,\"ptc-title\",{\"isPlmHub\":[4,\"is-plm-hub\"],\"type\":[1],\"textAlign\":[1,\"text-align\"],\"upperline\":[1],\"titleShadow\":[1,\"title-shadow\"],\"titleColor\":[1,\"title-color\"],\"titleMargin\":[1,\"title-margin\"],\"titleWeight\":[1,\"title-weight\"],\"titleSize\":[1,\"title-size\"],\"titleHeight\":[1,\"title-height\"],\"styles\":[1],\"ellipsisLineCutoff\":[2,\"ellipsis-line-cutoff\"],\"titleDisplay\":[1,\"title-display\"]}],[6,\"ptc-tooltip\",{\"textDisplay\":[1,\"text-display\"],\"maxLength\":[2,\"max-length\"],\"textLines\":[2,\"text-lines\"],\"description\":[1],\"zIndex\":[1,\"z-index\"],\"position\":[1],\"styles\":[1],\"mode\":[1],\"theme\":[1],\"width\":[1],\"hideOnMobile\":[4,\"hide-on-mobile\"],\"isSmallScreen\":[4,\"is-small-screen\"]},[[9,\"resize\",\"addTruncatedClass\"],[9,\"resize\",\"windowResize\"]]],[1,\"ptc-picture\",{\"src\":[1],\"alt\":[1],\"sizeXs\":[1025,\"size-xs\"],\"sizeSm\":[1025,\"size-sm\"],\"sizeMd\":[1025,\"size-md\"],\"sizeLg\":[1025,\"size-lg\"],\"imagePosition\":[1,\"image-position\"],\"borderRadius\":[1,\"border-radius\"],\"height\":[1],\"width\":[1],\"objectFit\":[1,\"object-fit\"],\"isFullHeight\":[4,\"is-full-height\"],\"isFullWidth\":[4,\"is-full-width\"],\"styles\":[1],\"imageAlignment\":[1,\"image-alignment\"],\"maxWidth\":[1,\"max-width\"],\"displayImage\":[1,\"display-image\"],\"oldSrc\":[32]},[[9,\"resize\",\"WindowResize\"]]],[1,\"ptc-para\",{\"fontSize\":[1,\"font-size\"],\"fontWeight\":[1,\"font-weight\"],\"paraStyle\":[1,\"para-style\"],\"paraColor\":[1,\"para-color\"],\"paraLineH\":[1,\"para-line-h\"],\"paraMargin\":[1,\"para-margin\"],\"paraAlign\":[1,\"para-align\"],\"ellipsisLineCutoff\":[2,\"ellipsis-line-cutoff\"],\"paraZIndex\":[1,\"para-z-index\"],\"styles\":[1]}],[2,\"icon-asset\",{\"name\":[1],\"size\":[1],\"type\":[1],\"spin\":[1],\"pulse\":[1],\"color\":[1],\"isMobileSelect\":[4,\"is-mobile-select\"],\"injectedStyle\":[1,\"injected-style\"]}]]],[\"bundle-jumbotron-example\",[[1,\"bundle-jumbotron-example\",{\"jumbotron\":[1],\"isIframe\":[4,\"is-iframe\"]}]]],[\"sequential-bundle\",[[1,\"sequential-bundle\",{\"isMobile\":[32]},[[9,\"resize\",\"handleResize\"]]]]],[\"sequential-bundle-example\",[[1,\"sequential-bundle-example\",{\"isInteralCardsExpanded\":[1040],\"isMobile\":[32],\"expandedCardIndex\":[32]},[[9,\"resize\",\"handleResize\"]]]]],[\"bundle-example\",[[1,\"bundle-example\",{\"isLoading\":[32],\"picWidth\":[32],\"picHeight\":[32]},[[9,\"resize\",\"handleWindowResize\"]]]]],[\"innovator-toggle-container\",[[1,\"innovator-toggle-container\",{\"sectionTitle\":[1,\"section-title\"],\"description\":[1],\"backgroundImage\":[1,\"background-image\"]}]]],[\"ptc-announcement\",[[1,\"ptc-announcement\",{\"barTitle\":[1025,\"bar-title\"],\"description\":[1025],\"linkText\":[513,\"link-text\"],\"linkTitle\":[513,\"link-title\"],\"visible\":[1540],\"linkUrl\":[1537,\"link-url\"],\"insideContainer\":[4,\"inside-container\"],\"target\":[1025],\"windowSize\":[32]},[[9,\"resize\",\"handleResize\"]]]]],[\"ptc-tab-list\",[[4,\"ptc-tab-list\",{\"type\":[1],\"selectedValue\":[32]},[[0,\"tabClicked\",\"onSelectedTab\"],[9,\"resize\",\"calculateHeaderTabsRendering\"]]]]],[\"ptc-card\",[[1,\"ptc-card\",{\"cardType\":[1,\"card-type\"],\"cardHref\":[1,\"card-href\"],\"target\":[1],\"rel\":[1],\"hasImage\":[4,\"has-image\"],\"hasVideo\":[4,\"has-video\"],\"hasLottie\":[4,\"has-lottie\"],\"heading\":[1],\"headingTransform\":[1,\"heading-transform\"],\"cardDate\":[1,\"card-date\"],\"country\":[1],\"styles\":[1],\"ribbonText\":[1,\"ribbon-text\"],\"eventType\":[1,\"event-type\"],\"cardLogo\":[1,\"card-logo\"],\"titleLineCutOff\":[2,\"title-line-cut-off\"]}]]],[\"ptc-collapse-list\",[[1,\"ptc-collapse-list\",{\"header\":[1],\"listItems\":[1040],\"placeholderText\":[1025,\"placeholder-text\"],\"debounceUpdateDelay\":[1026,\"debounce-update-delay\"],\"data\":[32],\"searchText\":[32],\"selectedValue\":[32],\"selectedItems\":[32],\"hashMap\":[32],\"debouncedUpdatedEvent\":[32],\"refreshBuffer\":[32],\"removeSelectedItem\":[64],\"addSelectedItem\":[64]}]]],[\"ptc-hero\",[[1,\"ptc-hero\",{\"heroType\":[1,\"hero-type\"],\"bgUrl\":[1,\"bg-url\"],\"contentAlignment\":[1,\"content-alignment\"]}]]],[\"ptc-previous-url\",[[1,\"ptc-previous-url\",{\"href\":[1],\"text\":[1],\"styles\":[1]}]]],[\"ptc-pricing-tabs\",[[1,\"ptc-pricing-tabs\",{\"productTag\":[1,\"product-tag\"],\"header\":[1],\"tabLabel\":[1,\"tab-label\"],\"filterTag\":[1,\"filter-tag\"],\"styles\":[1],\"tabItems\":[32],\"isMobileViewPort\":[32],\"isDesktopViewPort\":[32]},[[9,\"resize\",\"setIsMobileViewPort\"]]]]],[\"ptc-bio-card\",[[1,\"ptc-bio-card\",{\"name\":[1],\"jobTitle\":[1,\"job-title\"],\"image\":[1],\"linkedin\":[1],\"twitter\":[1],\"showModal\":[32]}]]],[\"ptc-checkbox\",[[1,\"ptc-checkbox\",{\"checked\":[1025],\"value\":[1025],\"disabled\":[1028],\"inputName\":[1,\"input-name\"]}]]],[\"ptc-dropdown\",[[1,\"ptc-dropdown\",{\"theme\":[1],\"label\":[1],\"listItems\":[16],\"toggle\":[32],\"selectedItem\":[32]},[[4,\"click\",\"offClick\"]]]]],[\"ptc-filter-tag\",[[1,\"ptc-filter-tag\",{\"theme\":[1],\"iconColorMap\":[32]}]]],[\"ptc-icon-minimize\",[[1,\"ptc-icon-minimize\",{\"heading\":[1025],\"opened\":[1028],\"timeStamp\":[32],\"Refresh\":[64]}]]],[\"ptc-list\",[[1,\"ptc-list\",{\"listType\":[1,\"list-type\"],\"listItems\":[16]}]]],[\"ptc-lottie\",[[1,\"ptc-lottie\",{\"jsonSrc\":[1025,\"json-src\"],\"speed\":[1026]}]]],[\"ptc-media-card\",[[1,\"ptc-media-card\",{\"cardType\":[1,\"card-type\"],\"cardHref\":[1,\"card-href\"],\"target\":[1],\"rel\":[1],\"activeBackgroundImage\":[1025,\"active-background-image\"],\"hoverBackgroundImage\":[1025,\"hover-background-image\"],\"heading\":[1025],\"headingTransform\":[1025,\"heading-transform\"],\"category\":[1025],\"isHovered\":[32]}]]],[\"ptc-mobile-select\",[[0,\"ptc-mobile-select\",{\"triggerName\":[1,\"trigger-name\"],\"selectedText\":[1,\"selected-text\"],\"wheelData\":[1040],\"selectedId\":[1,\"selected-id\"],\"ensureBtnText\":[1,\"ensure-btn-text\"],\"cancelBtnText\":[1,\"cancel-btn-text\"],\"listTitle\":[1,\"list-title\"]}]]],[\"ptc-nav-submenu\",[[1,\"ptc-nav-submenu\",{\"label\":[1],\"iconAssetName\":[1025,\"icon-asset-name\"]}]]],[\"ptc-pagenation\",[[1,\"ptc-pagenation\",{\"totalCount\":[2,\"total-count\"],\"numberOfItems\":[2,\"number-of-items\"],\"previousValue\":[1,\"previous-value\"],\"lastValue\":[1,\"last-value\"],\"minPageNumber\":[2,\"min-page-number\"],\"maxPageNumber\":[2,\"max-page-number\"],\"clickedPageNumber\":[2,\"clicked-page-number\"],\"appendArray\":[4,\"append-array\"],\"prevArrowImg\":[1,\"prev-arrow-img\"],\"nextArrowImg\":[1,\"next-arrow-img\"],\"theme\":[1],\"styles\":[1],\"pageNumbers\":[32],\"isSmallScreen\":[32]},[[9,\"resize\",\"windowResize\"]]]]],[\"ptc-quote\",[[1,\"ptc-quote\",{\"quoteType\":[1025,\"quote-type\"],\"quoteName\":[1025,\"quote-name\"],\"ctaText\":[1,\"cta-text\"],\"ctaUrl\":[1,\"cta-url\"],\"imgSrc\":[1,\"img-src\"],\"imgTitle\":[1,\"img-title\"]}]]],[\"ptc-search-field\",[[1,\"ptc-search-field\",{\"textValue\":[1,\"text-value\"],\"placeholderLabel\":[1,\"placeholder-label\"],\"darkTheme\":[4,\"dark-theme\"],\"elevation\":[1],\"enableClear\":[4,\"enable-clear\"],\"styles\":[1],\"clearSearchValue\":[64]}]]],[\"ptc-social-share\",[[1,\"ptc-social-share\",{\"display\":[1],\"shareType\":[1,\"share-type\"],\"shareTitle\":[1,\"share-title\"],\"text\":[1],\"url\":[1],\"source\":[1],\"recipient\":[1],\"iconColor\":[1,\"icon-color\"],\"iconHoverColor\":[1,\"icon-hover-color\"],\"isHover\":[32]}]]],[\"ptc-subnav-card\",[[1,\"ptc-subnav-card\",{\"cardTitle\":[1,\"card-title\"],\"cardHref\":[1,\"card-href\"],\"cardImageSrc\":[1,\"card-image-src\"],\"cardImageAlt\":[1,\"card-image-alt\"],\"ctaText\":[1,\"cta-text\"],\"ctaIconAssetName\":[1,\"cta-icon-asset-name\"]}]]],[\"tab-header\",[[0,\"tab-header\",{\"name\":[1],\"tooltip\":[1],\"tabHeaderText\":[1,\"tab-header-text\"],\"isSelected\":[32],\"maxLength\":[32],\"getChild\":[64]},[[9,\"resize\",\"handleWindowResize\"]]]]],[\"dynamic-box-bundle\",[[1,\"dynamic-box-bundle\",{\"topImgSrc\":[1,\"top-img-src\"],\"topImgAlt\":[1,\"top-img-alt\"],\"boxHeight\":[2,\"box-height\"],\"isHovering\":[32]},[[1,\"mouseover\",\"handleMouseOver\"],[1,\"mouseout\",\"handleMouseOut\"]]]]],[\"my-component\",[[1,\"my-component\",{\"first\":[1],\"middle\":[1],\"last\":[1]}]]],[\"ptc-accordion\",[[1,\"ptc-accordion\",{\"multiple\":[4]},[[0,\"opened\",\"openHandler\"]]]]],[\"ptc-accordion-item\",[[1,\"ptc-accordion-item\",{\"heading\":[1],\"headingTag\":[1,\"heading-tag\"],\"autoHeight\":[4,\"auto-height\"],\"active\":[1540],\"hasHeadingSlot\":[32],\"hasArrowSlot\":[32],\"toggle\":[64],\"close\":[64],\"open\":[64]}]]],[\"ptc-container\",[[1,\"ptc-container\",{\"backgroundColor\":[1,\"background-color\"],\"elevation\":[1],\"containerType\":[1,\"container-type\"],\"spacing\":[1],\"styles\":[1]}]]],[\"ptc-hero-footer-cta\",[[6,\"ptc-hero-footer-cta\",{\"ctaTitle\":[1,\"cta-title\"],\"description\":[1],\"backgroundImage\":[1,\"background-image\"]}]]],[\"ptc-icon-list\",[[1,\"ptc-icon-list\",{\"listType\":[1,\"list-type\"],\"valueWithUnit\":[1,\"value-with-unit\"],\"valueText\":[1,\"value-text\"],\"listContent\":[1,\"list-content\"],\"isLastItem\":[4,\"is-last-item\"]}]]],[\"ptc-link\",[[1,\"ptc-link\",{\"disabled\":[516],\"external\":[516],\"href\":[1],\"target\":[1],\"linkTitle\":[1,\"link-title\"],\"theme\":[1],\"fontSize\":[1,\"font-size\"],\"fontWeight\":[1,\"font-weight\"],\"linkArea\":[1,\"link-area\"]}]]],[\"ptc-minimized-footer\",[[1,\"ptc-minimized-footer\"]]],[\"ptc-minimized-header\",[[1,\"ptc-minimized-header\",{\"linkUrl\":[513,\"link-url\"],\"imgSrc\":[513,\"img-src\"],\"imgAlt\":[513,\"img-alt\"]}]]],[\"ptc-nav-card\",[[1,\"ptc-nav-card\",{\"cardType\":[1025,\"card-type\"],\"cardHref\":[1025,\"card-href\"],\"logoAlt\":[1025,\"logo-alt\"],\"target\":[1025],\"rel\":[1025],\"linkTitle\":[1025,\"link-title\"],\"cardLogo\":[1025,\"card-logo\"],\"heading\":[1025],\"description\":[1025],\"windowSize\":[32]},[[9,\"resize\",\"handleResize\"]]]]],[\"ptc-nav-link\",[[1,\"ptc-nav-link\",{\"href\":[1025],\"isOutsideLink\":[1028,\"is-outside-link\"],\"titleText\":[1025,\"title-text\"]},[[2,\"click\",\"handleClick\"]]]]],[\"ptc-nav-slider\",[[1,\"ptc-nav-slider\",{\"sliderId\":[1,\"slider-id\"]},[[0,\"dropdownClickEvent\",\"handledropdownClickEvent\"]]]]],[\"ptc-responsive-wrapper\",[[1,\"ptc-responsive-wrapper\"]]],[\"ptc-shopping-cart\",[[1,\"ptc-shopping-cart\",{\"cartCount\":[1,\"cart-count\"],\"color\":[1]}]]],[\"ptc-span\",[[1,\"ptc-span\",{\"spanStyle\":[1,\"span-style\"],\"display\":[1],\"styles\":[1]}]]],[\"ptc-sticky-icons\",[[1,\"ptc-sticky-icons\",null,[[9,\"resize\",\"handleResize\"]]]]],[\"ptc-sticky-section\",[[1,\"ptc-sticky-section\",null,[[9,\"scroll\",\"handleScroll\"]]]]],[\"ptc-subnav\",[[1,\"ptc-subnav\",{\"navOpen\":[32]},[[9,\"scroll\",\"handleScroll\"]]]]],[\"ptc-tab\",[[1,\"ptc-tab\",{\"optionClicked\":[1540,\"option-clicked\"],\"label\":[1],\"price\":[1],\"active\":[4],\"disabled\":[516]}]]],[\"ptc-tabs\",[[1,\"ptc-tabs\",{\"tabs\":[32],\"openTab\":[64]}]]],[\"ptc-text-copy-with-background\",[[1,\"ptc-text-copy-with-background\",{\"type\":[1],\"backgroundImage\":[1,\"background-image\"],\"ImageAltText\":[1,\"image-alt-text\"],\"topSlitBackgroundColor\":[1,\"top-slit-background-color\"],\"slitPosition\":[1,\"slit-position\"],\"isBackgroundBlur\":[4,\"is-background-blur\"],\"overlay\":[4]}]]],[\"ptc-two-column-media\",[[1,\"ptc-two-column-media\",{\"componentType\":[1,\"component-type\"]}]]],[\"tab-content\",[[4,\"tab-content\",{\"name\":[1],\"isSelected\":[32],\"getChild\":[64]}]]],[\"ptc-jumbotron\",[[1,\"ptc-jumbotron\",{\"jumbotronType\":[1,\"jumbotron-type\"],\"hasPopupVideo\":[4,\"has-popup-video\"],\"mainTitle\":[1,\"main-title\"],\"subTitle\":[1,\"sub-title\"],\"pngSrc\":[1,\"png-src\"],\"gifSrc\":[1,\"gif-src\"],\"bgVideoSrc\":[1,\"bg-video-src\"],\"bgSrc\":[1,\"bg-src\"],\"isIframe\":[4,\"is-iframe\"],\"playButtonTitle\":[1,\"play-button-title\"],\"pauseButtonTitle\":[1,\"pause-button-title\"],\"contentBackground\":[32],\"contentColor\":[32],\"textAlign\":[32],\"isMobile\":[32]},[[9,\"resize\",\"handleResize\"]]]]],[\"ptc-ellipsis-dropdown\",[[1,\"ptc-ellipsis-dropdown\",{\"dataItems\":[16],\"selectedTab\":[1,\"selected-tab\"],\"isDropdownOpen\":[32]},[[4,\"click\",\"offClick\"]]]]],[\"lottie-player\",[[1,\"lottie-player\",{\"mode\":[1],\"autoplay\":[4],\"background\":[513],\"controls\":[4],\"count\":[2],\"direction\":[2],\"hover\":[4],\"loop\":[516],\"renderer\":[1],\"speed\":[2],\"src\":[1],\"currentState\":[1,\"current-state\"],\"seeker\":[8],\"intermission\":[2],\"play\":[64],\"pause\":[64],\"stop\":[64],\"seek\":[64],\"getLottie\":[64],\"setSpeed\":[64],\"setDirection\":[64],\"setLooping\":[64],\"togglePlay\":[64],\"toggleLooping\":[64]}]]],[\"ptc-date\",[[1,\"ptc-date\",{\"year\":[2],\"month\":[2],\"day\":[2],\"country\":[1],\"dateString\":[1,\"date-string\"],\"dateColor\":[1,\"date-color\"],\"dateStyles\":[1,\"date-styles\"],\"dataSize\":[1,\"data-size\"],\"formatOptions\":[1,\"format-options\"]}]]],[\"ptc-modal\",[[1,\"ptc-modal\",{\"iframeUrl\":[1025,\"iframe-url\"],\"size\":[1025],\"show\":[1028],\"overlay\":[1028],\"fixed\":[1028],\"closeOnBlur\":[1028,\"close-on-blur\"],\"rounded\":[1028],\"showHeaderFooter\":[1028,\"show-header-footer\"],\"borderRadius\":[1025,\"border-radius\"],\"isBioModal\":[1028,\"is-bio-modal\"],\"overlayHeight\":[32],\"bodyOverflowSetting\":[32]}]]],[\"ptc-pricing-block\",[[1,\"ptc-pricing-block\",{\"active\":[4],\"optionClicked\":[1540,\"option-clicked\"]}]]],[\"ptc-readmore\",[[1,\"ptc-readmore\",{\"moreText\":[1025,\"more-text\"],\"lessText\":[1025,\"less-text\"],\"readMorePosition\":[1,\"read-more-position\"],\"display\":[1],\"visibleLines\":[1,\"visible-lines\"],\"visibleLinesCustom\":[2,\"visible-lines-custom\"],\"zIndex\":[1,\"z-index\"],\"checked\":[1028],\"size\":[1],\"isIcon\":[4,\"is-icon\"],\"color\":[1]},[[9,\"resize\",\"addBtnTruncated\"]]]]],[\"ptc-svg-btn\",[[1,\"ptc-svg-btn\",{\"svgName\":[1,\"svg-name\"],\"display\":[1],\"zIndex\":[1,\"z-index\"],\"styles\":[2]}]]],[\"ptc-card-content\",[[1,\"ptc-card-content\",{\"cardType\":[1,\"card-type\"],\"outlineColor\":[1,\"outline-color\"],\"styles\":[1],\"isLoading\":[4,\"is-loading\"],\"setHeight\":[64],\"removeInlineHeight\":[64]}]]],[\"ptc-overlay\",[[1,\"ptc-overlay\",{\"filterColor\":[1,\"filter-color\"],\"borderRadius\":[1,\"border-radius\"],\"overlayZIndex\":[1,\"overlay-z-index\"],\"styles\":[1],\"setOverlay\":[64]}]]],[\"ptc-dynamic-card\",[[1,\"ptc-dynamic-card\",{\"cardType\":[1,\"card-type\"],\"cardTitle\":[1,\"card-title\"],\"cardImgSrc\":[1,\"card-img-src\"],\"cardImgAlt\":[1,\"card-img-alt\"],\"cardScreen\":[1,\"card-screen\"],\"isExpanded\":[4,\"is-expanded\"],\"overlayExists\":[32]}]]],[\"dropdown-item\",[[4,\"dropdown-item\",{\"linkHref\":[1,\"link-href\"],\"linkTarget\":[1,\"link-target\"]}]]],[\"ptc-card-bottom_3\",[[1,\"ptc-card-bottom\",{\"cardType\":[1,\"card-type\"],\"styles\":[1]}],[1,\"ptc-card-wrapper\",{\"cardType\":[1,\"card-type\"],\"cardLink\":[1,\"card-link\"],\"linkTitle\":[1,\"link-title\"],\"linkTarget\":[1,\"link-target\"],\"isLoading\":[4,\"is-loading\"]},[[9,\"resize\",\"handleResize\"]]],[1,\"ptc-skeleton\",{\"isLoading\":[4,\"is-loading\"],\"animated\":[4],\"width\":[1],\"borderRadius\":[1,\"border-radius\"],\"topMargin\":[1,\"top-margin\"],\"btmMargin\":[1,\"btm-margin\"]}]]],[\"max-width-container_3\",[[1,\"ptc-background-video\",{\"videoSrc\":[1,\"video-src\"],\"posterSrc\":[1,\"poster-src\"],\"overlay\":[4],\"playButtonTitle\":[1,\"play-button-title\"],\"pauseButtonTitle\":[1,\"pause-button-title\"],\"type\":[1],\"isIframe\":[4,\"is-iframe\"],\"paused\":[32]}],[1,\"max-width-container\",{\"maxWidth\":[2,\"max-width\"],\"breakpoint\":[2],\"contentAlign\":[1,\"content-align\"]}],[4,\"ptc-img\",{\"sizeXs\":[1025,\"size-xs\"],\"sizeSm\":[1025,\"size-sm\"],\"sizeMd\":[1025,\"size-md\"],\"sizeLg\":[1025,\"size-lg\"],\"imgUrl\":[1,\"img-url\"],\"imageType\":[1,\"image-type\"],\"borderRadius\":[1,\"border-radius\"],\"loadMode\":[1,\"load-mode\"],\"styles\":[1]},[[9,\"resize\",\"WindowResize\"]]]]]]"), options);
|
|
15
15
|
});
|
|
16
16
|
};
|
|
17
17
|
|
|
@@ -0,0 +1,230 @@
|
|
|
1
|
+
import { r as registerInstance, h, H as Host, a as getElement } from './index-8e63c32d.js';
|
|
2
|
+
import { a as ResponsiveBgVariables } from './interfaces-c1c73092.js';
|
|
3
|
+
|
|
4
|
+
const maxWidthContainerCss = ":host{display:block}:host(.left){margin:auto auto auto 0}:host(.right){margin:auto 0 auto auto}:host(.center){margin:0 auto}";
|
|
5
|
+
|
|
6
|
+
const MaxWidthContainer = class {
|
|
7
|
+
constructor(hostRef) {
|
|
8
|
+
registerInstance(this, hostRef);
|
|
9
|
+
this.maxWidth = undefined;
|
|
10
|
+
this.breakpoint = 768;
|
|
11
|
+
this.contentAlign = 'center';
|
|
12
|
+
}
|
|
13
|
+
componentDidLoad() {
|
|
14
|
+
this.handleResize();
|
|
15
|
+
window.addEventListener('resize', this.handleResize.bind(this));
|
|
16
|
+
}
|
|
17
|
+
disconnectedCallback() {
|
|
18
|
+
window.removeEventListener('resize', this.handleResize);
|
|
19
|
+
}
|
|
20
|
+
render() {
|
|
21
|
+
const classMap = this.getCssClassMap();
|
|
22
|
+
return (h(Host, { class: classMap }, h("slot", null)));
|
|
23
|
+
}
|
|
24
|
+
getCssClassMap() {
|
|
25
|
+
return {
|
|
26
|
+
[this.contentAlign]: true,
|
|
27
|
+
};
|
|
28
|
+
}
|
|
29
|
+
handleResize() {
|
|
30
|
+
// const selectedContainer = this.el.querySelector('.max-width-container');
|
|
31
|
+
if (this.el) {
|
|
32
|
+
if (window.innerWidth >= this.breakpoint) {
|
|
33
|
+
this.el.style.maxWidth = `${this.maxWidth}px`;
|
|
34
|
+
}
|
|
35
|
+
else {
|
|
36
|
+
this.el.style.maxWidth = 'initial';
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
get el() { return getElement(this); }
|
|
41
|
+
};
|
|
42
|
+
MaxWidthContainer.style = maxWidthContainerCss;
|
|
43
|
+
|
|
44
|
+
const ptcBackgroundVideoCss = ":host{display:block;position:relative}:host video{position:absolute;top:0px;left:0px;right:0;width:100%;height:100%;overflow:hidden;pointer-events:none;z-index:-100;object-fit:cover}:host .video-overlay{z-index:1;display:block;position:absolute;width:100%;height:100%;top:0;left:0;opacity:0.8;background-image:linear-gradient(270deg, rgba(30, 38, 38, 0) 26%, #1e2626)}:host(.legacy){display:block;position:absolute;top:0px;left:0px;right:0;width:100%;height:100%;overflow:hidden;pointer-events:none;z-index:-100}:host(.legacy) video{object-fit:cover;position:absolute;top:0px;left:0px;right:0;width:100%;height:100%;overflow:hidden}:host .iframe-wrapper{position:absolute;top:0px;left:0px;right:0;width:100%;height:100%;overflow:hidden;pointer-events:none;z-index:-100}:host .iframe-wrapper .background-video-embed{position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);width:100%;height:100%}:host .iframe-wrapper .player .vp-video-wrapper .vp-telecine-cover video{object-fit:cover}:host .play-button{position:absolute;top:1.5rem;right:1.5rem;width:34px;height:34px;z-index:99}@media (min-width: 768px){:host .play-button{top:unset;bottom:3.75rem;right:2rem}}";
|
|
45
|
+
|
|
46
|
+
const PtcBackgroundVideo = class {
|
|
47
|
+
constructor(hostRef) {
|
|
48
|
+
registerInstance(this, hostRef);
|
|
49
|
+
this.videoSrc = undefined;
|
|
50
|
+
this.posterSrc = undefined;
|
|
51
|
+
this.overlay = true;
|
|
52
|
+
this.playButtonTitle = undefined;
|
|
53
|
+
this.pauseButtonTitle = undefined;
|
|
54
|
+
this.paused = undefined;
|
|
55
|
+
this.type = 'default';
|
|
56
|
+
this.isIframe = false;
|
|
57
|
+
}
|
|
58
|
+
// componentDidLoad() {
|
|
59
|
+
// if(this.isIframe){
|
|
60
|
+
// const iframe:HTMLIFrameElement = this.el.shadowRoot.querySelector('iframe');
|
|
61
|
+
// const iframeDoc = iframe.contentDocument
|
|
62
|
+
// const iframeVideo = iframeDoc.querySelector('video');
|
|
63
|
+
// console.log("iframe ele: " + iframeDoc.querySelectorAll('video'));
|
|
64
|
+
// iframeVideo.style.objectFit = 'cover';
|
|
65
|
+
// }
|
|
66
|
+
// }
|
|
67
|
+
// @Method()
|
|
68
|
+
// async toggleVideo() {
|
|
69
|
+
// // show a prompt
|
|
70
|
+
// this.paused = !this.paused;
|
|
71
|
+
// let video = this.el.shadowRoot.querySelector('video') as HTMLVideoElement;
|
|
72
|
+
// if (video) {
|
|
73
|
+
// if (this.paused) {
|
|
74
|
+
// video.pause();
|
|
75
|
+
// } else {
|
|
76
|
+
// video.play().catch(z => console.error(z));
|
|
77
|
+
// }
|
|
78
|
+
// }
|
|
79
|
+
// console.log('Hello, I am a publish method from ptc-background-video!');
|
|
80
|
+
// }
|
|
81
|
+
componentWillLoad() {
|
|
82
|
+
this.paused = false;
|
|
83
|
+
}
|
|
84
|
+
render() {
|
|
85
|
+
const videoContent = this.isIframe ? (h("div", { class: "iframe-wrapper" }, h("iframe", { id: "jumbotron-iframe", src: this.videoSrc, frameborder: 0, allow: "autoplay", allowFullScreen: true, class: "background-video-embed" }))) : (h("video", { src: this.videoSrc, poster: this.posterSrc, autoplay: true, loop: true, muted: true, playsinline: true }));
|
|
86
|
+
return (h(Host, { class: this.type }, videoContent, !!this.videoSrc && this.playButtonTitle && (h("div", { class: "play-button" }, this.paused && (h("ptc-tooltip", { class: "play-btn", mode: "wrapper", description: this.playButtonTitle, position: "bottom-right", styles: ".wrapper-content.sc-ptc-tooltip .tooltip.sc-ptc-tooltip{min-width:unset!important;}" }, h("ptc-button", { type: "button", color: "icon-toggle", onClick: e => this.toggleVideoPlay(e), styles: "button.icon-toggle { padding :0px 8px; }" }, h("icon-asset", { name: "play", size: "small", type: "ptc", color: "black" })))), !this.paused && !!this.pauseButtonTitle && (h("ptc-tooltip", { class: "pause-btn", mode: "wrapper", description: this.pauseButtonTitle, position: "bottom-right", styles: ".wrapper-content.sc-ptc-tooltip .tooltip.sc-ptc-tooltip{min-width:unset!important;}" }, h("ptc-button", { type: "button", color: "icon-toggle", onClick: e => this.toggleVideoPlay(e) }, h("icon-asset", { name: "pause", size: "small", type: "ptc", color: "black" })))))), this.overlay ? h("div", { class: "video-overlay" }) : '', this.type == 'default' ? h("slot", null) : ''));
|
|
87
|
+
}
|
|
88
|
+
toggleVideoPlay(e) {
|
|
89
|
+
e.preventDefault();
|
|
90
|
+
this.paused = !this.paused;
|
|
91
|
+
let video = this.el.shadowRoot.querySelector('video');
|
|
92
|
+
if (video) {
|
|
93
|
+
if (this.paused) {
|
|
94
|
+
video.pause();
|
|
95
|
+
}
|
|
96
|
+
else {
|
|
97
|
+
video.play().catch(z => console.error(z));
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
get el() { return getElement(this); }
|
|
102
|
+
};
|
|
103
|
+
PtcBackgroundVideo.style = ptcBackgroundVideoCss;
|
|
104
|
+
|
|
105
|
+
const ptcImgCss = ".smart-bg{width:100%;height:100%;background-size:cover;background-repeat:no-repeat;background-position:50% 50%}.smart-img{position:absolute;display:block;width:100%;height:100%;top:0;left:0;background-size:cover;background-repeat:no-repeat;background-position:50% 50%}.radius-standard{border-radius:var(--ptc-border-radius-standard)}.radius-standard-top{border-top-left-radius:var(--ptc-border-radius-standard);border-top-right-radius:var(--ptc-border-radius-standard)}.radius-large{border-radius:var(--ptc-border-radius-large)}.radius-large-top{border-top-left-radius:var(--ptc-border-radius-large);border-top-right-radius:var(--ptc-border-radius-large)}.lazy-bg{background-image:none !important;background-color:var(--color-gray-03)}@media only screen and (min-width: 768px){.hidden-xs{display:none !important}}@media (min-width: 768px) and (max-width: 991px){.hidden-sm{display:none !important}}@media (min-width: 992px) and (max-width: 1199px){.hidden-md{display:none !important}}@media only screen and (min-width: 768px){.hidden-lg{display:none !important}}";
|
|
106
|
+
|
|
107
|
+
const PtcImg = class {
|
|
108
|
+
constructor(hostRef) {
|
|
109
|
+
registerInstance(this, hostRef);
|
|
110
|
+
this.sizeXs = '510x340';
|
|
111
|
+
this.sizeSm = '1240x496';
|
|
112
|
+
this.sizeMd = '1366x500';
|
|
113
|
+
this.sizeLg = '1920x1080';
|
|
114
|
+
this.imgUrl = undefined;
|
|
115
|
+
this.imageType = 'smart-bg';
|
|
116
|
+
this.borderRadius = '';
|
|
117
|
+
this.loadMode = 'lazy-bg';
|
|
118
|
+
this.styles = undefined;
|
|
119
|
+
}
|
|
120
|
+
/**
|
|
121
|
+
* Image Z Index
|
|
122
|
+
*/
|
|
123
|
+
// @Prop() imageZIndex: 'z-index-auto' | 'z-index-n-2' | 'z-index-n-1' | 'z-index-p-1' | 'z-index-p-2' = 'z-index-auto';
|
|
124
|
+
WindowResize() {
|
|
125
|
+
this.setResponsiveBg();
|
|
126
|
+
}
|
|
127
|
+
render() {
|
|
128
|
+
const classMap = this.getCssClassMap();
|
|
129
|
+
return (h(Host, null, this.styles && h("style", null, this.styles), h("div", { class: classMap, "data-xs": `${this.imgUrl}:${this.sizeXs}`, "data-sm": `${this.imgUrl}:${this.sizeSm}`, "data-md": `${this.imgUrl}:${this.sizeMd}`, "data-lg": `${this.imgUrl}:${this.sizeLg}` }, this.imageType == 'smart-bg' ? h("slot", null) : null)));
|
|
130
|
+
}
|
|
131
|
+
componentDidLoad() {
|
|
132
|
+
this.addIntersectionObserver();
|
|
133
|
+
this.setResponsiveBg();
|
|
134
|
+
}
|
|
135
|
+
componentWillUpdate() {
|
|
136
|
+
this.addIntersectionObserver();
|
|
137
|
+
this.setResponsiveBg();
|
|
138
|
+
}
|
|
139
|
+
//responsive image
|
|
140
|
+
setResponsiveBg() {
|
|
141
|
+
// Define local variables
|
|
142
|
+
let backgrounds = (this.el || document).querySelectorAll(ResponsiveBgVariables.selector), el, elData, currentBreakpoint = this.getCurrentBreakPoints();
|
|
143
|
+
// Loop through all target elements
|
|
144
|
+
for (var i = 0, len = backgrounds.length; i < len; i++) {
|
|
145
|
+
// Set current variables
|
|
146
|
+
el = backgrounds[i];
|
|
147
|
+
elData = el.getAttribute('data-' + currentBreakpoint);
|
|
148
|
+
// If the data attribute exists, set the background
|
|
149
|
+
if (elData !== null) {
|
|
150
|
+
el.style.backgroundImage = "url('" + elData + "')";
|
|
151
|
+
}
|
|
152
|
+
else {
|
|
153
|
+
if (typeof console == 'object') {
|
|
154
|
+
console.warn('Data attribute: data-' + currentBreakpoint + ' not found on element:\n\n' + el.outerHTML + '\n\n\n');
|
|
155
|
+
}
|
|
156
|
+
}
|
|
157
|
+
}
|
|
158
|
+
}
|
|
159
|
+
//lazy loading
|
|
160
|
+
addIntersectionObserver() {
|
|
161
|
+
if (!this.imgUrl) {
|
|
162
|
+
console.log('no image!');
|
|
163
|
+
return;
|
|
164
|
+
}
|
|
165
|
+
if ('IntersectionObserver' in window) {
|
|
166
|
+
let lazyLoadBgs = (this.el || document).querySelectorAll('.lazy-bg');
|
|
167
|
+
let bgObserver = new IntersectionObserver(entries => {
|
|
168
|
+
entries.forEach(entry => {
|
|
169
|
+
if (entry.isIntersecting) {
|
|
170
|
+
const image = entry.target;
|
|
171
|
+
image.classList.remove('lazy-bg');
|
|
172
|
+
bgObserver.unobserve(image);
|
|
173
|
+
}
|
|
174
|
+
});
|
|
175
|
+
});
|
|
176
|
+
lazyLoadBgs.forEach(image => {
|
|
177
|
+
bgObserver.observe(image);
|
|
178
|
+
});
|
|
179
|
+
}
|
|
180
|
+
}
|
|
181
|
+
getCssClassMap() {
|
|
182
|
+
return {
|
|
183
|
+
[this.imageType]: true,
|
|
184
|
+
'ptc-img': true,
|
|
185
|
+
[this.borderRadius]: true,
|
|
186
|
+
[this.loadMode]: true,
|
|
187
|
+
// [this.imageZIndex] : true
|
|
188
|
+
};
|
|
189
|
+
}
|
|
190
|
+
getCurrentBreakPoints() {
|
|
191
|
+
// Define local variables
|
|
192
|
+
let doc = window.document, temp = doc.createElement('div'), env;
|
|
193
|
+
// Append test node
|
|
194
|
+
doc.body.appendChild(temp);
|
|
195
|
+
// Loop through breakpoints
|
|
196
|
+
for (let i = ResponsiveBgVariables.envs.length - 1; i >= 0; i--) {
|
|
197
|
+
env = ResponsiveBgVariables.envs[i];
|
|
198
|
+
// Add classes
|
|
199
|
+
temp.className = 'hidden-' + env;
|
|
200
|
+
// Found breakpoint
|
|
201
|
+
if (temp.offsetParent === null) {
|
|
202
|
+
// Remove our test node
|
|
203
|
+
doc.body.removeChild(temp);
|
|
204
|
+
// Return current breakpoint
|
|
205
|
+
return env;
|
|
206
|
+
}
|
|
207
|
+
}
|
|
208
|
+
// Breakpoint not found, try fallback
|
|
209
|
+
doc.body.removeChild(temp);
|
|
210
|
+
return this.getFallbackBreakpoint();
|
|
211
|
+
}
|
|
212
|
+
getFallbackBreakpoint() {
|
|
213
|
+
if (window.matchMedia('(min-width: 992px)').matches) {
|
|
214
|
+
return 'lg';
|
|
215
|
+
}
|
|
216
|
+
else if (window.matchMedia('(min-width: 768px)').matches) {
|
|
217
|
+
return 'md';
|
|
218
|
+
}
|
|
219
|
+
else if (window.matchMedia('(min-width: 576px)').matches) {
|
|
220
|
+
return 'sm';
|
|
221
|
+
}
|
|
222
|
+
else {
|
|
223
|
+
return 'xs';
|
|
224
|
+
}
|
|
225
|
+
}
|
|
226
|
+
get el() { return getElement(this); }
|
|
227
|
+
};
|
|
228
|
+
PtcImg.style = ptcImgCss;
|
|
229
|
+
|
|
230
|
+
export { MaxWidthContainer as max_width_container, PtcBackgroundVideo as ptc_background_video, PtcImg as ptc_img };
|
|
@@ -0,0 +1,131 @@
|
|
|
1
|
+
import { r as registerInstance, h, H as Host, a as getElement } from './index-8e63c32d.js';
|
|
2
|
+
|
|
3
|
+
const ptcJumbotronCss = ".ptc-container{padding-right:24px;padding-left:24px;margin-right:auto;margin-left:auto}@media only screen and (min-width: 1200px){.ptc-container{padding-left:0;padding-right:0;max-width:1136px}}@media only screen and (min-width: 1440px){.ptc-container{padding-left:0;padding-right:0;max-width:1200px}}.ptc-container-lg{padding-right:15px;padding-left:15px;margin-right:auto;margin-left:auto}@media only screen and (min-width: 480px){.ptc-container-lg{padding-left:var(--ptc-layout-spacing-03);padding-right:var(--ptc-layout-spacing-03)}}@media only screen and (min-width: 768px){.ptc-container-lg{padding-left:var(--ptc-layout-spacing-04);padding-right:var(--ptc-layout-spacing-04)}}@media only screen and (min-width: 992px){.ptc-container-lg{padding-left:var(--ptc-element-spacing-08);padding-right:var(--ptc-element-spacing-08)}}@media only screen and (min-width: 1980px){.ptc-container-lg{padding-left:0;padding-right:0;max-width:1900px}}.ptc-container-fluid{width:100%}.u-para-sm{font-size:var(--ptc-font-size-small) !important}.u-para-md{font-size:var(--ptc-font-size-medium) !important}.u-para-lg{font-size:var(--ptc-font-size-large) !important}.u-para-xl{font-size:var(--ptc-font-size-x-large) !important}.u-para-xxl{font-size:var(--ptc-font-size-xx-large) !important}.u-para-xxxl{font-size:var(--ptc-font-size-xxx-large) !important}@media only screen and (min-width: 768px){.u-para-sm{font-size:calc(var(--ptc-font-size-small) + 0.05vw) !important}.u-para-md{font-size:calc(var(--ptc-font-size-medium) + 0.05vw) !important}.u-para-lg{font-size:calc(var(--ptc-font-size-large) + 0.05vw) !important}.u-para-xl{font-size:calc(var(--ptc-font-size-x-large) + 0.05vw) !important}.u-para-xxl{font-size:calc(var(--ptc-font-size-xx-large) + 0.05vw) !important}.u-para-xxxl{font-size:calc(var(--ptc-font-size-xxx-large) + 0.05vw) !important}}@media only screen and (min-width: 992px){.u-para-sm{font-size:calc(var(--ptc-font-size-small) + 0.1vw) !important}.u-para-md{font-size:calc(var(--ptc-font-size-medium) + 0.1vw) !important}.u-para-lg{font-size:calc(var(--ptc-font-size-large) + 0.1vw) !important}.u-para-xl{font-size:calc(var(--ptc-font-size-x-large) + 0.1vw) !important}.u-para-xxl{font-size:calc(var(--ptc-font-size-xx-large) + 0.1vw) !important}.u-para-xxxl{font-size:calc(var(--ptc-font-size-xxx-large) + 0.1vw) !important}}@media only screen and (min-width: 1200px){.u-para-sm{font-size:calc(var(--ptc-font-size-small) + 0.15vw) !important}.u-para-md{font-size:calc(var(--ptc-font-size-medium) + 0.15vw) !important}.u-para-lg{font-size:calc(var(--ptc-font-size-large) + 0.15vw) !important}.u-para-xl{font-size:calc(var(--ptc-font-size-x-large) + 0.15vw) !important}.u-para-xxl{font-size:calc(var(--ptc-font-size-xx-large) + 0.15vw) !important}.u-para-xxxl{font-size:calc(var(--ptc-font-size-xxx-large) + 0.15vw) !important}}@media only screen and (min-width: 1440px){.u-para-sm{font-size:calc(var(--ptc-font-size-small) + 0.2vw) !important}.u-para-md{font-size:calc(var(--ptc-font-size-medium) + 0.2vw) !important}.u-para-lg{font-size:calc(var(--ptc-font-size-large) + 0.2vw) !important}.u-para-xl{font-size:calc(var(--ptc-font-size-x-large) + 0.2vw) !important}.u-para-xxl{font-size:calc(var(--ptc-font-size-xx-large) + 0.2vw) !important}.u-para-xxxl{font-size:calc(var(--ptc-font-size-xxx-large) + 0.2vw) !important}}@media only screen and (min-width: 1600px){.u-para-sm{font-size:calc(var(--ptc-font-size-small) + 0.25vw) !important}.u-para-md{font-size:calc(var(--ptc-font-size-medium) + 0.25vw) !important}.u-para-lg{font-size:calc(var(--ptc-font-size-large) + 0.25vw) !important}.u-para-xl{font-size:calc(var(--ptc-font-size-x-large) + 0.25vw) !important}.u-para-xxl{font-size:calc(var(--ptc-font-size-xx-large) + 0.25vw) !important}.u-para-xxxl{font-size:calc(var(--ptc-font-size-xxx-large) + 0.25vw) !important}}@media only screen and (min-width: 1980px){.u-para-sm{font-size:calc(var(--ptc-font-size-small) + 0.3vw) !important}.u-para-md{font-size:calc(var(--ptc-font-size-medium) + 0.3vw) !important}.u-para-lg{font-size:calc(var(--ptc-font-size-large) + 0.3vw) !important}.u-para-xl{font-size:calc(var(--ptc-font-size-x-large) + 0.3vw) !important}.u-para-xxl{font-size:calc(var(--ptc-font-size-xx-large) + 0.3vw) !important}.u-para-xxxl{font-size:calc(var(--ptc-font-size-xxx-large) + 0.3vw) !important}}@media only screen and (min-width: 2600px){.u-para-sm{font-size:calc(var(--ptc-font-size-small) + 0.35vw) !important}.u-para-md{font-size:calc(var(--ptc-font-size-medium) + 0.35vw) !important}.u-para-lg{font-size:calc(var(--ptc-font-size-large) + 0.35vw) !important}.u-para-xl{font-size:calc(var(--ptc-font-size-x-large) + 0.35vw) !important}.u-para-xxl{font-size:calc(var(--ptc-font-size-xx-large) + 0.35vw) !important}.u-para-xxxl{font-size:calc(var(--ptc-font-size-xxx-large) + 0.35vw) !important}}.u-para-body{font-size:var(--ptc-font-size-medium) !important}.u-color-white{color:var(--color-white) !important}.u-uppercase{text-transform:uppercase !important}.u-margin-flush{margin:0 !important}.u-marginTop-flush{margin-top:0 !important}.u-marginLeft-flush{margin-left:0 !important}.u-marginRight-flush{margin-right:0 !important}.u-marginBottom-flush{margin-bottom:0 !important}.u-padding-flush{padding:0 !important}.u-paddingTop-flush{padding-top:0 !important}.u-paddingLeft-flush{padding-left:0 !important}.u-paddingRight-flush{padding-right:0 !important}.u-paddingBottom-flush{padding-bottom:0 !important}.u-margin-xs{margin:var(--ptc-element-spacing-01) !important}.u-marginTop-xs{margin-top:var(--ptc-element-spacing-01) !important}.u-marginLeft-xs{margin-left:var(--ptc-element-spacing-01) !important}.u-marginRight-xs{margin-right:var(--ptc-element-spacing-01) !important}.u-marginBottom-xs{margin-bottom:var(--ptc-element-spacing-01) !important}.u-margin-sm{margin:var(--ptc-element-spacing-02) !important}.u-marginTop-sm{margin-top:var(--ptc-element-spacing-02) !important}.u-marginLeft-sm{margin-left:var(--ptc-element-spacing-02) !important}.u-marginRight-sm{margin-right:var(--ptc-element-spacing-02) !important}.u-marginBottom-sm{margin-bottom:var(--ptc-element-spacing-02) !important}.u-margin-md{margin:var(--ptc-element-spacing-03) !important}.u-marginTop-md{margin-top:var(--ptc-element-spacing-03) !important}.u-marginLeft-md{margin-left:var(--ptc-element-spacing-03) !important}.u-marginRight-md{margin-right:var(--ptc-element-spacing-03) !important}.u-marginBottom-md{margin-bottom:var(--ptc-element-spacing-03) !important}.u-margin-lg{margin:var(--ptc-element-spacing-04) !important}.u-marginTop-lg{margin-top:var(--ptc-element-spacing-04) !important}.u-marginLeft-lg{margin-left:var(--ptc-element-spacing-04) !important}.u-marginRight-lg{margin-right:var(--ptc-element-spacing-04) !important}.u-marginBottom-lg{margin-bottom:var(--ptc-element-spacing-04) !important}.u-margin-xl{margin:var(--ptc-element-spacing-05) !important}.u-marginTop-xl{margin-top:var(--ptc-element-spacing-05) !important}.u-marginLeft-xl{margin-left:var(--ptc-element-spacing-05) !important}.u-marginRight-xl{margin-right:var(--ptc-element-spacing-05) !important}.u-marginBottom-xl{margin-bottom:var(--ptc-element-spacing-05) !important}.u-margin-xxl{margin:var(--ptc-element-spacing-06) !important}.u-marginTop-xxl{margin-top:var(--ptc-element-spacing-06) !important}.u-marginLeft-xxl{margin-left:var(--ptc-element-spacing-06) !important}.u-marginRight-xxl{margin-right:var(--ptc-element-spacing-06) !important}.u-marginBottom-xxl{margin-bottom:var(--ptc-element-spacing-06) !important}.u-textAlign-ctr{text-align:center !important}.u-textAlign-right{text-align:right !important}.u-textAlign-left{text-align:left !important}.u-textWhite{color:var(--color-white) !important}.u-textGreen1{color:var(--color-green-07) !important}.u-textGreen2{color:var(--color-green-06) !important}.u-text-nowrap{white-space:nowrap}.u-text-bold{font-weight:var(--ptc-font-weight-bold)}.u-text-thin{font-weight:var(--ptc-font-weight-thin)}.u-textStyle-normal{font-style:normal !important}.u-no-scroll{overflow:hidden}.u-background-white{background-color:var(--color-white)}.u-background-reset{background-color:transparent !important}.u-white-overylay{background:rgba(242, 242, 242, 0.9)}.u-cursor-pointer{cursor:pointer}.u-clear{clear:both}.u-border-radius-standard{border-radius:var(--ptc-border-radius-standard)}.u-border-radius-large{border-radius:var(--ptc-border-radius-large)}.u-border-radius-pill{border-radius:var(--ptc-border-radius-pill)}.u-border-radius-circle{border-radius:var(--ptc-border-radius-circle)}@media only screen and (min-width: 768px){.u-hero-width{width:525px}.u-margin-center{margin:0 auto}.u-justify-self-end{justify-self:flex-end}}.u-hero-pushup{transform:translateY(-120px)}@media only screen and (min-width: 768px){.u-hero-pushup{transform:translateY(-144px)}}@media only screen and (min-width: 768px){.grid-order-1-md{order:1}.grid-order-2-md{order:2}.grid-order-3-md{order:3}}@media only screen and (min-width: 992px){.grid-order-1-lg{order:1}.grid-order-2-lg{order:2}.grid-order-3-lg{order:3}}.standard-list{list-style:none;margin-left:0;margin-bottom:20px;padding:0}.is-spaced-between{justify-content:space-between}.grid-large-col-gap-md{column-gap:0}@media only screen and (min-width: 992px){.grid-large-col-gap-md{column-gap:3rem}}.grid-large-col-gap-sm{column-gap:0}@media only screen and (min-width: 768px){.grid-large-col-gap-sm{column-gap:3rem}}.grid-x-large-col-gap-md{column-gap:0}@media only screen and (min-width: 992px){.grid-x-large-col-gap-md{column-gap:4rem}}.grid-x-large-col-gap-sm{column-gap:0}@media only screen and (min-width: 768px){.grid-x-large-col-gap-sm{column-gap:4rem}}.grid-medium-col-gap-md{column-gap:0}@media only screen and (min-width: 992px){.grid-medium-col-gap-md{column-gap:2rem}}.grid-medium-col-gap-sm{column-gap:0}@media only screen and (min-width: 768px){.grid-medium-col-gap-sm{column-gap:2rem}}.is-float-left{float:left}.is-float-right{float:right}.is-mobile{display:block}.is-desktop{display:none}@media only screen and (min-width: 992px){.is-mobile{display:none}.is-desktop{display:block}}.ptc-section{padding-top:2rem;padding-bottom:2rem}@media only screen and (min-width: 992px){.ptc-section{padding-top:3rem;padding-bottom:3rem}}.ptc-section-standard{padding-top:3rem;padding-bottom:3rem}.ptc-section-half{padding-top:1.5rem;padding-bottom:1.5rem}.u-flex{display:flex}@media only screen and (min-width: 480px){.u-flex-xs{display:flex}}@media only screen and (min-width: 768px){.u-flex-sm{display:flex}}@media only screen and (min-width: 992px){.u-flex-md{display:flex}}@media only screen and (min-width: 1200px){.u-flex-lg{display:flex}}@media only screen and (min-width: 1440px){.u-flex-xl{display:flex}}@media only screen and (min-width: 1600px){.u-flex-xxl{display:flex}}@media only screen and (min-width: 1980px){.u-flex-2k{display:flex}}@media only screen and (min-width: 2600px){.u-flex-4k{display:flex}}.u-align-center{margin:auto;align-self:center}.u-align-left{margin-right:auto;align-self:center}.u-align-right{margin-left:auto;align-self:center}.u-align-x-center{margin-right:auto;margin-left:auto}.u-align-x-left{margin-right:auto}.u-align-x-right{margin-left:auto}.u-align-y-center{align-self:center}.u-align-y-top{align-self:flex-start}.u-align-y-bottom{align-self:flex-end}.is-flex-column{flex-direction:column}.flex-align-items{align-items:flex-end}.u-flex-nowrap{flex-wrap:nowrap}.u-flex-wrap{flex-wrap:wrap}.u-align-self-start{align-self:start}.u-align-self-center{align-self:center}.u-align-self-stretch{align-self:stretch}.u-justify-self-start{justify-self:start}.u-justify-self-center{justify-self:center}.u-justify-self-stretch{justify-self:stretch}.embed-responsive{position:relative;display:block;height:0;padding:0;overflow:hidden}.embed-responsive-16by9{padding-bottom:56.25%}.embed-responsive .embed-responsive-item,.embed-responsive embed,.embed-responsive iframe,.embed-responsive object,.embed-responsive video{position:absolute;top:0;bottom:0;left:0;width:100%;height:100%;border:0}.fef-two-column-two-media .has-col-gap-lg{grid-column-gap:var(--spacing-md)}@media only screen and (min-width: 992px){.fef-two-column-two-media .has-col-gap-lg{grid-column-gap:var(--spacing-lg)}}.fef-two-column-two-media .is-col-6-md{padding-bottom:3rem}.fef-two-column-two-media .is-col-6-md:last-child{padding-bottom:0rem}@media only screen and (min-width: 768px){.fef-two-column-two-media .is-col-6-md{padding-bottom:0rem}}@media only screen and (min-width: 768px){.is-grid.grid-large-col-gap-xs-0{row-gap:0}}.max-content{max-width:90%;margin:auto}@media only screen and (min-width: 480px){.max-content{max-width:80%}}.product-tab ptc-title h3{font-size:20px !important;font-weight:900}@media only screen and (min-width: 1200px){.product-tab ptc-title h3{font-size:15px !important;font-weight:800}}.product-tab .is-grid{grid-column-gap:20px;grid-row-gap:12px}ptc-bio-card .bio-modal-open-content{color:var(--color-gray-10);font-size:var(--ptc-font-size-small);line-height:var(--ptc-line-height-denser)}ptc-bio-card .bio-modal-open-content h3{letter-spacing:0.08rem;margin-bottom:2px;font-size:var(--ptc-font-size-small)}ptc-bio-card .bio-modal-open-content ul{margin-top:0}ptc-bio-card .bio-modal-open-content ul li{line-height:var(--ptc-line-height-p)}ptc-bio-card .bio-modal-open-content ul li a{text-decoration:none;color:var(--color-green-06);transition:color 0.3s ease}ptc-bio-card .bio-modal-open-content ul li a:hover{color:var(--color-gray-10);transition:color 0.3s ease}ptc-bio-card .bio-modal-open-content .btn-blackgrey{background-color:var(--color-gray-10);display:inline-block;border-style:solid;border-width:1px;white-space:normal;position:relative;text-decoration:none;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;cursor:pointer;padding:14px 20px;border:2px solid var(--color-gray-08);border-radius:var(--ptc-border-radius-standard);color:var(--color-white);font-weight:700}ptc-bio-card .bio-modal-open-content .btn-blackgrey:hover{background-color:var(--color-gray-09);border-color:var(--color-gray-08)}ptc-bio-card .bio-modal-open-content .btn-blackgrey svg{display:none}ptc-bio-card .bio-modal-open-content hr{margin-top:20px;margin-bottom:20px;border:0;border-top:1px solid #eee}.u-justify-space-between{justify-content:space-between}ptc-nav-submenu .dropdown-content{display:none}ptc-nav-submenu .dropdown-content.open{padding-top:5px;padding-bottom:5px;display:block}ptc-nav-submenu.short-dropdown .dropdown-content.open{padding:var(--ptc-layout-spacing-04)}@media only screen and (min-width: 1200px){ptc-nav-submenu.short-dropdown .dropdown-content.open{padding:var(--ptc-layout-spacing-03) var(--ptc-layout-spacing-04)}}.all-product-banner{padding:50px 0 44px 0px}@media only screen and (min-width: 992px){.all-product-banner{padding:50px 0 72px 0px;display:flex;min-height:300px;justify-content:center;align-items:center}}:host{display:block}.parent{display:grid;grid-template-columns:1fr;grid-template-rows:auto 1fr;grid-column-gap:0px;grid-row-gap:0px;position:unset;z-index:999}.div1{grid-area:1/1/2/2;min-height:300px}.div1.hidden{display:none}.mobile-media-image{display:flex;justify-content:center;align-items:center}@media only screen and (min-width: 992px){.mobile-media-image{display:none}}.gif-bg{background-color:#F3F3F3}.gif-bg img{width:100%;height:auto}@media only screen and (min-width: 768px){.gif-bg img{width:auto}}.video-ratio{position:relative;overflow:hidden;height:0;padding-bottom:100%}@media screen and (min-width: 550px){.video-ratio{padding-bottom:56.25%}}@media only screen and (min-width: 768px){.video-ratio{padding-bottom:56.25%}}@media only screen and (min-width: 992px){.video-ratio{padding-bottom:59.37%;max-height:500px}}@media only screen and (min-width: 1200px){.video-ratio{padding-bottom:min(578px, 46.67%)}}@media only screen and (min-width: 1440px){.video-ratio{padding-bottom:min(578px, 39.67%)}}.div2{grid-area:2/1/3/2;position:relative}.bg-overlay{position:absolute;width:100%;height:100%;top:0;left:0}.content-layout{display:flex;flex-direction:column}@media only screen and (min-width: 992px){.content-layout{flex-direction:row}}.gap-adjustment{gap:var(--ptc-element-spacing-07);margin-bottom:var(--ptc-element-spacing-07)}.text-adjustment{justify-content:flex-start}@media only screen and (min-width: 992px){.text-adjustment{justify-content:center}}.desktop-media-image{width:40%;display:none}@media only screen and (min-width: 992px){.desktop-media-image{display:block}}.desk-gif-adjustment{z-index:3}@media only screen and (min-width: 992px){.parent{grid-template-columns:1fr;grid-template-rows:1fr;grid-column-gap:0px;grid-row-gap:0px;min-height:500px;position:relative}.div1{grid-area:1/1/2/2;min-height:unset}.div2{grid-area:1/1/2/2;align-self:center;position:unset}}";
|
|
4
|
+
|
|
5
|
+
const PtcJumbotron = class {
|
|
6
|
+
constructor(hostRef) {
|
|
7
|
+
registerInstance(this, hostRef);
|
|
8
|
+
this.jumbotronType = 'light';
|
|
9
|
+
this.hasPopupVideo = false;
|
|
10
|
+
this.mainTitle = 'Lorem Ipsum Dolor Sit Amet Consectetur';
|
|
11
|
+
this.subTitle = 'Lorem Ipsum Dolor Sit Amet Consectetur Adipiscing Lorem Ipsum Dolor Sit Amet Consectetur Adipisci Lorem Ipsum Dolor Sit Amet';
|
|
12
|
+
this.pngSrc = undefined;
|
|
13
|
+
this.gifSrc = undefined;
|
|
14
|
+
this.bgVideoSrc = undefined;
|
|
15
|
+
this.bgSrc = undefined;
|
|
16
|
+
this.isIframe = false;
|
|
17
|
+
this.playButtonTitle = undefined;
|
|
18
|
+
this.pauseButtonTitle = undefined;
|
|
19
|
+
this.contentBackground = undefined;
|
|
20
|
+
this.contentColor = undefined;
|
|
21
|
+
this.textAlign = 'left';
|
|
22
|
+
this.isMobile = undefined;
|
|
23
|
+
}
|
|
24
|
+
handleResize() {
|
|
25
|
+
this.getContentBackground();
|
|
26
|
+
this.adjustJumbotronHeight();
|
|
27
|
+
}
|
|
28
|
+
connectedCallback() {
|
|
29
|
+
this.getContentBackground();
|
|
30
|
+
}
|
|
31
|
+
componentDidLoad() {
|
|
32
|
+
// if (!!this.popupVideo) {
|
|
33
|
+
// const selectedBtn = this.el.shadowRoot.querySelector('#j-modal-btn');
|
|
34
|
+
// const PtcModal: HTMLPtcModalElement = this.el.shadowRoot.querySelector('#j-modal');
|
|
35
|
+
// if (selectedBtn && PtcModal) {
|
|
36
|
+
// selectedBtn.addEventListener('click', function () {
|
|
37
|
+
// PtcModal.show = true;
|
|
38
|
+
// });
|
|
39
|
+
// const iframe = PtcModal.shadowRoot.querySelector('iframe');
|
|
40
|
+
// console.log('iframe')
|
|
41
|
+
// console.log(iframe);
|
|
42
|
+
// const iframeDoc= iframe.contentDocument
|
|
43
|
+
// //const shadowVideo = shadowIframe.querySelector('document')
|
|
44
|
+
// console.log('video: ')
|
|
45
|
+
// console.log(iframeDoc)
|
|
46
|
+
// }
|
|
47
|
+
// }
|
|
48
|
+
this.adjustJumbotronHeight();
|
|
49
|
+
}
|
|
50
|
+
render() {
|
|
51
|
+
console.log('render');
|
|
52
|
+
const classMap = this.getCssClassMap();
|
|
53
|
+
let mediaElement;
|
|
54
|
+
switch (this.jumbotronType) {
|
|
55
|
+
case 'png':
|
|
56
|
+
mediaElement = (h("div", { class: "mobile-media-image" }, h("ptc-picture", { src: this.pngSrc })));
|
|
57
|
+
break;
|
|
58
|
+
case 'gif':
|
|
59
|
+
mediaElement = (h("div", { class: "mobile-media-image gif-bg" }, h("img", { src: this.gifSrc })));
|
|
60
|
+
break;
|
|
61
|
+
case 'dark-video':
|
|
62
|
+
case 'light-video':
|
|
63
|
+
mediaElement = (h("ptc-background-video", { class: "video-ratio", overlay: false, "video-src": this.bgVideoSrc, isIframe: this.isIframe, "play-button-title": this.playButtonTitle, "pause-button-title": this.pauseButtonTitle }));
|
|
64
|
+
break;
|
|
65
|
+
default:
|
|
66
|
+
mediaElement = h("ptc-img", { "img-url": this.bgSrc, styles: ".smart-bg{background-position:right !important;}" });
|
|
67
|
+
}
|
|
68
|
+
return (h(Host, { class: classMap }, h("div", { class: "parent" }, h("div", { class: `div1 image-container ${this.jumbotronType === 'text' ? 'hidden' : ''}` }, mediaElement), h("div", { class: "div2 content-container" }, h("div", { class: "bg-overlay", style: { background: this.contentBackground } }), h("div", { class: "ptc-container content-layout" }, h("max-width-container", { "max-width": "578", breakpoint: 992, "content-align": this.jumbotronType === 'text' ? 'center' : this.textAlign }, h("slot", { name: "breadcrumb" }), h("ptc-spacer", { breakpoint: "small", size: "small" }), h("ptc-spacer", { breakpoint: "x-small", size: "medium" }), h("slot", { name: "main-title" }), h("ptc-spacer", { breakpoint: "small", size: "small" }), h("ptc-spacer", { breakpoint: "x-small", size: "medium" }), h("ptc-para", { "font-size": this.jumbotronType === 'text' && this.isMobile ? 'x-small' : 'small', "font-weight": this.jumbotronType === 'text' && this.isMobile ? 'w-7' : 'w-4', "para-margin": "margin-bottom-6", "para-color": "white", "para-line-h": "line-height-p", "para-align": this.jumbotronType === 'text' ? 'center' : 'left' }, h("ptc-tooltip", { "text-lines": "8", description: this.subTitle, position: "right", styles: `.ellipsis-by-line-boxing{color: ${this.contentColor};}` })), h("div", { class: `u-flex u-flex-wrap gap-adjustment${this.jumbotronType === 'text' ? ' text-adjustment' : ''}` }, h("slot", { name: "j-cta" }))), this.hasPopupVideo ? h("slot", { name: "video" }) : null, this.jumbotronType === 'png' ? (h("div", { class: "desktop-media-image" }, h("ptc-picture", { "is-full-width": true, src: this.pngSrc }))) : null, this.jumbotronType === 'gif' ? (h("div", { class: "desktop-media-image desk-gif-adjustment" }, h("img", { src: this.gifSrc }))) : null)))));
|
|
69
|
+
}
|
|
70
|
+
getCssClassMap() {
|
|
71
|
+
return {
|
|
72
|
+
// [this.imageZIndex] : true
|
|
73
|
+
};
|
|
74
|
+
}
|
|
75
|
+
getContentBackground() {
|
|
76
|
+
if (window.innerWidth < 992) {
|
|
77
|
+
switch (this.jumbotronType) {
|
|
78
|
+
case 'light':
|
|
79
|
+
case 'light-video':
|
|
80
|
+
this.contentBackground = '#F3F3F3';
|
|
81
|
+
this.contentColor = 'var(--color-gray-10)';
|
|
82
|
+
break;
|
|
83
|
+
case 'dark':
|
|
84
|
+
case 'dark-video':
|
|
85
|
+
this.contentBackground = 'var(--color-gray-09)';
|
|
86
|
+
this.contentColor = 'var(--color-gray-01)';
|
|
87
|
+
break;
|
|
88
|
+
default:
|
|
89
|
+
this.contentBackground = 'transparent';
|
|
90
|
+
this.contentColor = 'var(--color-gray-10)';
|
|
91
|
+
}
|
|
92
|
+
this.isMobile = true;
|
|
93
|
+
}
|
|
94
|
+
else {
|
|
95
|
+
switch (this.jumbotronType) {
|
|
96
|
+
case 'light':
|
|
97
|
+
case 'light-video':
|
|
98
|
+
this.contentBackground = 'linear-gradient(90.19deg, rgba(255, 255, 255, 0.9) 62.55%, rgba(228, 231, 233, 0) 99.86%)';
|
|
99
|
+
this.contentColor = 'var(--color-gray-10)';
|
|
100
|
+
break;
|
|
101
|
+
case 'dark':
|
|
102
|
+
case 'dark-video':
|
|
103
|
+
this.contentBackground = 'linear-gradient(90deg, rgba(0, 0, 0, 0.63) 52.42%, rgba(40, 47, 53, 0) 100%)';
|
|
104
|
+
this.contentColor = 'var(--color-gray-01)';
|
|
105
|
+
break;
|
|
106
|
+
case 'gif':
|
|
107
|
+
this.contentBackground = '#F3F3F3';
|
|
108
|
+
this.contentColor = 'var(--color-gray-10)';
|
|
109
|
+
break;
|
|
110
|
+
default:
|
|
111
|
+
this.contentBackground = 'transparent';
|
|
112
|
+
this.contentColor = 'var(--color-gray-10)';
|
|
113
|
+
}
|
|
114
|
+
this.isMobile = false;
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
adjustJumbotronHeight() {
|
|
118
|
+
const contentContainerH = this.el.shadowRoot.querySelector('.content-container').clientHeight;
|
|
119
|
+
const videoEle = !!this.el.shadowRoot.querySelector('.video-ratio') ? this.el.shadowRoot.querySelector('.video-ratio') : null;
|
|
120
|
+
if (contentContainerH < 500 && videoEle && !this.isMobile) {
|
|
121
|
+
videoEle.style.paddingBottom = '500px';
|
|
122
|
+
}
|
|
123
|
+
else {
|
|
124
|
+
!!videoEle ? (videoEle.style.paddingBottom = '') : null;
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
get el() { return getElement(this); }
|
|
128
|
+
};
|
|
129
|
+
PtcJumbotron.style = ptcJumbotronCss;
|
|
130
|
+
|
|
131
|
+
export { PtcJumbotron as ptc_jumbotron };
|