@ptcwebops/ptcw-design 1.2.0 → 1.2.2
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-example.cjs.entry.js +1 -1
- package/dist/cjs/bundle-jumbotron-example.cjs.entry.js +43 -0
- package/dist/cjs/core-fd18b67a.js +3771 -0
- package/dist/cjs/icon-asset.cjs.entry.js +53 -0
- package/dist/cjs/interfaces-0ecd8027.js +15 -0
- package/dist/cjs/list-item.cjs.entry.js +33 -0
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/max-width-container_5.cjs.entry.js +452 -0
- package/dist/cjs/ptc-breadcrumb_2.cjs.entry.js +141 -0
- package/dist/cjs/ptc-button_8.cjs.entry.js +528 -0
- package/dist/cjs/ptc-checkbox.cjs.entry.js +1 -1
- package/dist/cjs/ptc-dropdown.cjs.entry.js +1 -1
- package/dist/cjs/ptc-filter-tag.cjs.entry.js +1 -1
- package/dist/cjs/ptc-icon-minimize.cjs.entry.js +8 -1
- package/dist/cjs/ptc-pagenation.cjs.entry.js +5 -5
- package/dist/cjs/ptc-pricing-block.cjs.entry.js +1 -1
- package/dist/cjs/ptc-pricing-tabs.cjs.entry.js +3 -3
- package/dist/cjs/ptc-tab-list.cjs.entry.js +1 -1
- package/dist/cjs/ptc-tab.cjs.entry.js +1 -1
- package/dist/cjs/ptc-tabs.cjs.entry.js +1 -1
- package/dist/cjs/ptc-title.cjs.entry.js +78 -0
- package/dist/cjs/ptc-tooltip.cjs.entry.js +90 -0
- package/dist/cjs/ptcw-design.cjs.js +1 -1
- package/dist/cjs/sequential-bundle.cjs.entry.js +100 -0
- package/dist/cjs/tab-header.cjs.entry.js +1 -1
- package/dist/collection/collection-manifest.json +4 -2
- package/dist/collection/components/list-item/list-item.css +7 -0
- package/dist/collection/components/list-item/list-item.js +2 -2
- package/dist/collection/components/{bundle-example → organism-bundles/bundle-example}/bundle-example.css +14 -4
- package/dist/collection/components/{bundle-jumbotron-example → organism-bundles/bundle-jumbotron-example}/bundle-jumbotron-example.js +1 -1
- package/dist/collection/components/organism-bundles/sequential-bundle/sequential-bundle.css +22 -0
- package/dist/collection/components/organism-bundles/sequential-bundle/sequential-bundle.js +116 -0
- package/dist/collection/components/organism-bundles/sequential-bundle-example/sequential-bundle-example.css +781 -0
- package/dist/collection/components/organism-bundles/sequential-bundle-example/sequential-bundle-example.js +152 -0
- package/dist/collection/components/ptc-announcement/ptc-announcement.js +0 -1
- package/dist/collection/components/ptc-checkbox/ptc-checkbox.css +1 -1
- package/dist/collection/components/ptc-dropdown/ptc-dropdown.css +1 -1
- package/dist/collection/components/ptc-dynamic-card/ptc-dynamic-card.css +4 -2
- package/dist/collection/components/ptc-dynamic-card/ptc-dynamic-card.js +47 -55
- package/dist/collection/components/ptc-filter-tag/ptc-filter-tag.css +3 -3
- package/dist/collection/components/ptc-icon-minimize/ptc-icon-minimize.css +8 -4
- package/dist/collection/components/ptc-icon-minimize/ptc-icon-minimize.js +32 -0
- package/dist/collection/components/ptc-jumbotron/ptc-jumbotron.css +1 -0
- package/dist/collection/components/ptc-jumbotron/ptc-jumbotron.js +8 -4
- package/dist/collection/components/ptc-pagenation/ptc-pagenation.css +12 -5
- package/dist/collection/components/ptc-pagenation/ptc-pagenation.js +4 -4
- package/dist/collection/components/ptc-picture/ptc-picture.js +8 -5
- package/dist/collection/components/ptc-pricing-block/ptc-pricing-block.css +1 -0
- package/dist/collection/components/ptc-pricing-tabs/ptc-pricing-tabs.css +6 -4
- package/dist/collection/components/ptc-pricing-tabs/ptc-pricing-tabs.js +2 -2
- package/dist/collection/components/ptc-tab-list/ptc-tab-list.css +4 -0
- package/dist/collection/components/ptc-tabs/ptc-tabs.css +1 -0
- package/dist/collection/components/ptc-title/ptc-title.css +1 -1
- package/dist/collection/components/tab-header/tab-header.css +1 -1
- package/dist/custom-elements/index.d.ts +12 -0
- package/dist/custom-elements/index.js +4042 -56
- package/dist/esm/bundle-example.entry.js +2 -2
- package/dist/esm/bundle-jumbotron-example.entry.js +39 -0
- package/dist/esm/core-1c9d4889.js +3769 -0
- package/dist/esm/dropdown-item.entry.js +1 -1
- package/dist/esm/icon-asset.entry.js +49 -0
- package/dist/esm/{index-8e63c32d.js → index-4afc9d28.js} +1 -1
- package/dist/esm/interfaces-c1c73092.js +12 -0
- package/dist/esm/list-item.entry.js +29 -0
- package/dist/esm/loader.js +3 -3
- package/dist/esm/lottie-player.entry.js +1 -1
- package/dist/esm/max-width-container_5.entry.js +444 -0
- package/dist/esm/my-component.entry.js +1 -1
- package/dist/esm/ptc-accordion-item.entry.js +1 -1
- package/dist/esm/ptc-accordion.entry.js +1 -1
- package/dist/esm/ptc-announcement.entry.js +1 -1
- package/dist/esm/ptc-breadcrumb_2.entry.js +136 -0
- package/dist/esm/ptc-button_8.entry.js +517 -0
- package/dist/esm/ptc-card-bottom_3.entry.js +1 -1
- package/dist/esm/ptc-card.entry.js +1 -1
- package/dist/esm/ptc-checkbox.entry.js +2 -2
- package/dist/esm/ptc-collapse-list.entry.js +1 -1
- package/dist/esm/ptc-container.entry.js +1 -1
- package/dist/esm/ptc-date.entry.js +1 -1
- package/dist/esm/ptc-dropdown.entry.js +2 -2
- package/dist/esm/ptc-ellipsis-dropdown.entry.js +1 -1
- package/dist/esm/ptc-filter-tag.entry.js +2 -2
- package/dist/esm/ptc-hero-footer-cta.entry.js +1 -1
- package/dist/esm/ptc-hero.entry.js +1 -1
- package/dist/esm/ptc-icon-list.entry.js +1 -1
- package/dist/esm/ptc-icon-minimize.entry.js +9 -2
- package/dist/esm/ptc-link.entry.js +1 -1
- package/dist/esm/ptc-list.entry.js +1 -1
- package/dist/esm/ptc-lottie.entry.js +1 -1
- package/dist/esm/ptc-media-card.entry.js +1 -1
- package/dist/esm/ptc-minimized-footer.entry.js +1 -1
- package/dist/esm/ptc-minimized-header.entry.js +1 -1
- package/dist/esm/ptc-mobile-select.entry.js +1 -1
- package/dist/esm/ptc-nav-card.entry.js +1 -1
- package/dist/esm/ptc-pagenation.entry.js +6 -6
- package/dist/esm/ptc-previous-url.entry.js +1 -1
- package/dist/esm/ptc-pricing-block.entry.js +2 -2
- package/dist/esm/ptc-pricing-tabs.entry.js +4 -4
- package/dist/esm/ptc-quote.entry.js +1 -1
- package/dist/esm/ptc-readmore.entry.js +1 -1
- package/dist/esm/ptc-responsive-wrapper.entry.js +1 -1
- package/dist/esm/ptc-search-field.entry.js +1 -1
- package/dist/esm/ptc-shopping-cart.entry.js +1 -1
- package/dist/esm/ptc-social-share.entry.js +1 -1
- package/dist/esm/ptc-span.entry.js +1 -1
- package/dist/esm/ptc-sticky-icons.entry.js +1 -1
- package/dist/esm/ptc-tab-list.entry.js +2 -2
- package/dist/esm/ptc-tab.entry.js +2 -2
- package/dist/esm/ptc-tabs.entry.js +2 -2
- package/dist/esm/ptc-text-copy-with-background.entry.js +1 -1
- package/dist/esm/ptc-title.entry.js +74 -0
- package/dist/esm/ptc-tooltip.entry.js +86 -0
- package/dist/esm/ptc-two-column-media.entry.js +1 -1
- package/dist/esm/ptcw-design.js +3 -3
- package/dist/esm/sequential-bundle.entry.js +96 -0
- package/dist/esm/tab-content.entry.js +1 -1
- package/dist/esm/tab-header.entry.js +2 -2
- package/dist/ptcw-design/{p-f55984c2.entry.js → p-00b2c937.entry.js} +1 -1
- package/dist/ptcw-design/p-07059441.entry.js +1 -0
- package/dist/ptcw-design/{p-462567d1.entry.js → p-08f40716.entry.js} +1 -1
- package/dist/ptcw-design/{p-8c6b069b.entry.js → p-09a6b0a7.entry.js} +1 -1
- package/dist/ptcw-design/{p-1bc06d03.entry.js → p-0c1e7f62.entry.js} +1 -1
- package/dist/ptcw-design/p-0eeebc10.entry.js +1 -0
- package/dist/ptcw-design/{p-366528df.entry.js → p-10555016.entry.js} +1 -1
- package/dist/ptcw-design/p-11d73140.entry.js +1 -0
- package/dist/ptcw-design/{p-b922e3a5.entry.js → p-2ac4eb02.entry.js} +1 -1
- package/dist/ptcw-design/{p-fa0e4fe3.entry.js → p-2d0de92a.entry.js} +1 -1
- package/dist/ptcw-design/p-2feb5db1.entry.js +1 -0
- package/dist/ptcw-design/p-36a3f48e.entry.js +1 -0
- package/dist/ptcw-design/{p-cdff68d4.entry.js → p-372a6bb1.entry.js} +1 -1
- package/dist/ptcw-design/{p-00c9ae79.entry.js → p-3bc3c801.entry.js} +1 -1
- package/dist/ptcw-design/{p-ca6d7814.entry.js → p-3f88508e.entry.js} +1 -1
- package/dist/ptcw-design/{p-6872e11b.entry.js → p-4132db6b.entry.js} +1 -1
- package/dist/ptcw-design/{p-3bb54c51.entry.js → p-42424ba0.entry.js} +1 -1
- package/dist/ptcw-design/p-50e52c88.js +1 -0
- package/dist/ptcw-design/{p-61d91a69.entry.js → p-536abb90.entry.js} +1 -1
- package/dist/ptcw-design/p-55d7245e.entry.js +1 -0
- package/dist/ptcw-design/{p-f958e8c7.entry.js → p-588eb1d3.entry.js} +1 -1
- package/dist/ptcw-design/{p-c64a3715.entry.js → p-603576bb.entry.js} +1 -1
- package/dist/ptcw-design/{p-a43f3c42.entry.js → p-6756c89e.entry.js} +1 -1
- package/dist/ptcw-design/p-69dddd51.js +1 -0
- package/dist/ptcw-design/{p-d7d6eff1.entry.js → p-6a0b0d0e.entry.js} +1 -1
- package/dist/ptcw-design/{p-d43ff8d4.entry.js → p-6ab6a1e2.entry.js} +1 -1
- package/dist/ptcw-design/{p-8a1c2577.entry.js → p-6acd380a.entry.js} +1 -1
- package/dist/ptcw-design/{p-609f7161.entry.js → p-6bbccda8.entry.js} +1 -1
- package/dist/ptcw-design/{p-de1ceba8.entry.js → p-6f244989.entry.js} +1 -1
- package/dist/ptcw-design/p-7650e042.entry.js +1 -0
- package/dist/ptcw-design/{p-f81d880d.entry.js → p-77d3b816.entry.js} +1 -1
- package/dist/ptcw-design/p-7a83cae3.entry.js +1 -0
- package/dist/ptcw-design/{p-343f216f.entry.js → p-7f7594ee.entry.js} +1 -1
- package/dist/ptcw-design/{p-6e8222ce.entry.js → p-91db9d8a.entry.js} +1 -1
- package/dist/ptcw-design/p-91dc58c5.entry.js +1 -0
- package/dist/ptcw-design/{p-2181c8c7.entry.js → p-9805a542.entry.js} +1 -1
- package/dist/ptcw-design/p-9bbfeec6.entry.js +1 -0
- package/dist/ptcw-design/{p-63c06667.js → p-9dd25c18.js} +1 -1
- package/dist/ptcw-design/p-a4d49579.entry.js +1 -0
- package/dist/ptcw-design/{p-8a6acf0d.entry.js → p-a76bf4d6.entry.js} +1 -1
- package/dist/ptcw-design/p-aa62ab8c.entry.js +1 -0
- package/dist/ptcw-design/{p-1c9ed21b.entry.js → p-aae3d333.entry.js} +1 -1
- package/dist/ptcw-design/p-ab9d5bb9.entry.js +1 -0
- package/dist/ptcw-design/{p-af975d78.entry.js → p-b2d0228f.entry.js} +1 -1
- package/dist/ptcw-design/{p-a7b20fe7.entry.js → p-b5064c43.entry.js} +1 -1
- package/dist/ptcw-design/{p-55d298f5.entry.js → p-b73ea53a.entry.js} +1 -1
- package/dist/ptcw-design/p-bcbf087c.entry.js +1 -0
- package/dist/ptcw-design/{p-2ae39c65.entry.js → p-c0b1c34c.entry.js} +1 -1
- package/dist/ptcw-design/p-c17514f5.entry.js +1 -0
- package/dist/ptcw-design/{p-12780f09.entry.js → p-c326164f.entry.js} +1 -1
- package/dist/ptcw-design/{p-0f8784e9.entry.js → p-c5975914.entry.js} +1 -1
- package/dist/ptcw-design/p-c80aebb8.entry.js +1 -0
- package/dist/ptcw-design/{p-574680c3.entry.js → p-c83efab5.entry.js} +1 -1
- package/dist/ptcw-design/{p-a24ecd75.entry.js → p-c9342bd2.entry.js} +1 -1
- package/dist/ptcw-design/{p-ea19d8f6.entry.js → p-cb7b03fb.entry.js} +1 -1
- package/dist/ptcw-design/{p-dd6501a8.entry.js → p-cff0b2b0.entry.js} +1 -1
- package/dist/ptcw-design/{p-59058faa.entry.js → p-deed8ef6.entry.js} +1 -1
- package/dist/ptcw-design/{p-c7bd4d99.entry.js → p-e282af3d.entry.js} +1 -1
- package/dist/ptcw-design/{p-e4f1e8fd.entry.js → p-f733dad8.entry.js} +1 -1
- 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/organism-bundles/sequential-bundle/sequential-bundle.d.ts +12 -0
- package/dist/types/components/organism-bundles/sequential-bundle-example/sequential-bundle-example.d.ts +16 -0
- package/dist/types/components/ptc-dynamic-card/ptc-dynamic-card.d.ts +5 -6
- package/dist/types/components/ptc-icon-minimize/ptc-icon-minimize.d.ts +3 -0
- package/dist/types/components/ptc-jumbotron/ptc-jumbotron.d.ts +1 -0
- package/dist/types/components.d.ts +43 -7
- package/package.json +3 -4
- package/readme.md +1 -1
- package/dist/cjs/bundle-jumbotron-example_16.cjs.entry.js +0 -1131
- package/dist/cjs/ptc-card-content.cjs.entry.js +0 -68
- package/dist/cjs/ptc-dynamic-card.cjs.entry.js +0 -57
- package/dist/cjs/ptc-overlay.cjs.entry.js +0 -34
- package/dist/esm/bundle-jumbotron-example_16.entry.js +0 -1112
- package/dist/esm/ptc-card-content.entry.js +0 -64
- package/dist/esm/ptc-dynamic-card.entry.js +0 -53
- package/dist/esm/ptc-overlay.entry.js +0 -30
- package/dist/ptcw-design/p-46a6b69c.entry.js +0 -1
- package/dist/ptcw-design/p-46afd828.entry.js +0 -1
- package/dist/ptcw-design/p-47b2c76f.entry.js +0 -1
- package/dist/ptcw-design/p-598d16e5.entry.js +0 -1
- package/dist/ptcw-design/p-6b1eb02f.entry.js +0 -1
- package/dist/ptcw-design/p-a4e1afa5.entry.js +0 -1
- package/dist/ptcw-design/p-af3d5be7.entry.js +0 -1
- package/dist/ptcw-design/p-ce9f0355.entry.js +0 -1
- package/dist/ptcw-design/p-e91fbd67.entry.js +0 -1
- package/dist/ptcw-design/p-f6fe5efe.entry.js +0 -1
- package/dist/ptcw-design/p-fe1ff7d2.entry.js +0 -1
- /package/dist/collection/components/{bundle-example → organism-bundles/bundle-example}/bundle-example.js +0 -0
- /package/dist/collection/components/{bundle-jumbotron-example → organism-bundles/bundle-jumbotron-example}/bundle-jumbotron-example.css +0 -0
- /package/dist/types/components/{bundle-example → organism-bundles/bundle-example}/bundle-example.d.ts +0 -0
- /package/dist/types/components/{bundle-jumbotron-example → organism-bundles/bundle-jumbotron-example}/bundle-jumbotron-example.d.ts +0 -0
|
@@ -0,0 +1,528 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
const index = require('./index-88135a6b.js');
|
|
6
|
+
const interfaces = require('./interfaces-0ecd8027.js');
|
|
7
|
+
const core = require('./core-fd18b67a.js');
|
|
8
|
+
|
|
9
|
+
const ptcButtonCss = "button.disabled{pointer-events:none;opacity:0.6}button{background-color:var(--color-gray-10);display:inline-block;border-style:solid;border-width:1px;white-space:normal;position:relative;text-decoration:none;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;cursor:pointer;padding:9.4px 17.5px;border-radius:var(--ptc-border-radius-standard)}button.animation-right ::slotted([slot=slot-after-text]),button.animation-right ::slotted([slot=slot-before-text]),button.animation-down ::slotted([slot=slot-after-text]),button.animation-down ::slotted([slot=slot-before-text]){transition:transform var(--ptc-transition-medium) var(--ptc-ease-inout);position:relative;display:inline-block}button:hover.animation-right ::slotted([slot=slot-after-text]),button:hover.animation-right ::slotted([slot=slot-before-text]){transform:translateX(var(--ptc-element-spacing-02))}button:hover.animation-down ::slotted([slot=slot-after-text]),button:hover.animation-down ::slotted([slot=slot-before-text]){transform:translateY(var(--ptc-element-spacing-02))}button span{font-family:var(--ptc-font-latin);font-size:var(--ptc-font-size-small);font-weight:bold;line-height:var(--ptc-line-height-densest)}.icon-left ::slotted([slot=slot-before-text]){margin-right:var(--ptc-element-spacing-01)}.icon-right ::slotted([slot=slot-after-text]){margin-left:var(--ptc-element-spacing-01)}.blackgrey{box-shadow:var(--ptc-shadow-x-small);border:solid 1px var(--color-gray-10);background-image:linear-gradient(285deg, var(--color-gray-10) 155%, var(--color-gray-07) 62%)}.blackgrey:hover{box-shadow:var(--ptc-shadow-x-large)}.blackgrey span{color:var(--color-white)}.turtlegreen{box-shadow:var(--ptc-shadow-x-small);border:solid 1px var(--color-green-07);background-image:linear-gradient(285deg, var(--color-green-07) 155%, var(--color-green-07) 62%)}.turtlegreen:hover{box-shadow:var(--ptc-shadow-x-large)}.turtlegreen span{color:var(--color-white)}.offwhite{box-shadow:var(--ptc-shadow-x-small);border:solid 1px var(--color-gray-10);background-image:linear-gradient(to right, var(--color-white), var(--color-gray-02), var(--color-gray-01))}.offwhite:hover{box-shadow:var(--ptc-shadow-x-large)}.offwhite span{color:var(--color-gray-10)}.legacy-green{margin-left:10px;padding:10px 20px;margin-bottom:var(--ptc-element-spacing-01);margin-top:var(--ptc-element-spacing-01);box-shadow:var(--ptc-shadow-large);border:solid 2.5px var(--color-green-08);background-image:linear-gradient(to right, var(--color-green-06), var(--color-green-08))}.legacy-green:after{position:absolute;content:\"\";top:-1px;left:0;bottom:0;right:0;width:100%;height:103%;background-image:linear-gradient(to right, var(--color-green-08), var(--color-green-06));opacity:0;transition:opacity var(--ptc-transition-x-slow) var(--ptc-ease-inout);border-radius:2px}.legacy-green:hover{box-shadow:var(--ptc-shadow-x-large)}.legacy-green:hover span{color:var(--color-white)}.legacy-green:hover:after{opacity:1}.legacy-green span{font-family:var(--ptc-font-secondary-latin);color:var(--color-white);z-index:100;position:relative;text-transform:uppercase;font-weight:var(--ptc-font-weight-bold);letter-spacing:var(--ptc-letter-spacing-normal);font-size:var(--ptc-font-size-x-small)}@media only screen and (min-width: 768px){.legacy-green span{font-size:var(--ptc-font-size-small);letter-spacing:var(--ptc-letter-spacing-loose)}}.legacy-green icon-asset{display:inline}a{border-style:solid;border-width:1px;position:relative;text-decoration:none;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;padding:9.4px 17.5px;border-radius:var(--ptc-border-radius-standard);display:inline-block;position:relative}a.animation-right ::slotted([slot=slot-after-text]),a.animation-right ::slotted([slot=slot-before-text]),a.animation-down ::slotted([slot=slot-after-text]),a.animation-down ::slotted([slot=slot-before-text]){transition:all var(--ptc-ease-inout) var(--ptc-transition-medium);position:relative;display:inline-block;margin-left:5px}a:hover.animation-right ::slotted([slot=slot-after-text]),a:hover.animation-right ::slotted([slot=slot-before-text]){transform:translateX(var(--ptc-element-spacing-02))}a:hover.animation-down ::slotted([slot=slot-after-text]),a:hover.animation-down ::slotted([slot=slot-before-text]){transform:translateY(var(--ptc-element-spacing-02))}.nav{font-family:var(--ptc-font-latin);background-color:var(--color-gray-10);border-radius:var(--ptc-border-radius-standard);border:1px solid var(--color-white);border-bottom-style:solid;border-bottom-width:1px;box-sizing:border-box;color:var(--color-white);display:inline-block;font-size:var(--ptc-font-size-xx-small);font-stretch:100%;font-weight:var(--ptc-font-weight-bold);line-height:var(--ptc-line-height-loose);list-style:none;padding:3px var(--ptc-element-spacing-04);position:relative;text-align:center;text-decoration:none;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;transition:background-color var(--ptc-transition-medium) var(--ptc-ease-inout)}.nav:focus{outline:3px solid var(--color-blue-07);outline-offset:2px}.nav:hover{background-color:var(--color-gray-12)}.ptc-primary,.ptc-quaternary,.ptc-secondary,.ptc-tertiary,.icon-toggle{padding:var(--ptc-font-size-xx-small) var(--ptc-font-size-medium);transition:background-color var(--ptc-ease-inout) var(--ptc-transition-medium);line-height:20px}.ptc-primary.disabled,.ptc-quaternary.disabled,.ptc-secondary.disabled,.ptc-tertiary.disabled,.icon-toggle.disabled{pointer-events:none;border-color:var(--color-gray-03);background:var(--color-gray-02)}.ptc-primary.disabled span,.ptc-quaternary.disabled span,.ptc-secondary.disabled span,.ptc-tertiary.disabled span,.icon-toggle.disabled span{color:var(--color-gray-03)}.ptc-primary.disabled ::slotted([slot=slot-after-text]),.ptc-quaternary.disabled ::slotted([slot=slot-after-text]),.ptc-secondary.disabled ::slotted([slot=slot-after-text]),.ptc-tertiary.disabled ::slotted([slot=slot-after-text]),.icon-toggle.disabled ::slotted([slot=slot-after-text]){fill:var(--color-gray-03) !important}.ptc-primary:focus,.ptc-quaternary:focus,.ptc-secondary:focus,.ptc-tertiary:focus,.icon-toggle:focus{outline:3px solid var(--color-blue-07);outline-offset:2px}.ptc-primary span,.ptc-quaternary span,.ptc-secondary span,.ptc-tertiary span,.icon-toggle span{font-family:var(--ptc-font-latin);font-weight:var(--ptc-font-weight-bold);font-size:var(--ptc-font-size-small);line-height:var(--ptc-line-height-densest);letter-spacing:normal}.ptc-primary{background:var(--color-gray-12);border:2px solid var(--color-green-07);border-radius:var(--ptc-border-radius-standard)}.ptc-primary:hover{background-color:var(--color-gray-10)}.ptc-primary:active{background-color:var(--color-black)}.ptc-primary span{color:var(--color-white)}.ptc-primary ::slotted([slot=slot-after-text]){fill:var(--color-white) !important}.ptc-secondary{background:var(--color-gray-12);border:2px solid var(--color-gray-08);border-radius:var(--ptc-border-radius-standard)}.ptc-secondary:hover{background-color:var(--color-gray-10)}.ptc-secondary:active{background-color:var(--color-black)}.ptc-secondary span{color:var(--color-white)}.ptc-secondary ::slotted([slot=slot-after-text]){fill:var(--color-white) !important}.ptc-tertiary{background:var(--color-white);border:2px solid var(--color-gray-10);border-radius:var(--ptc-border-radius-standard)}.ptc-tertiary:hover{background-color:var(--color-gray-02)}.ptc-tertiary:active{background-color:var(--color-gray-03)}.ptc-tertiary span{color:var(--color-gray-10)}.ptc-tertiary ::slotted([slot=slot-after-text]){fill:var(--color-gray-10) !important}.ptc-quaternary{background:var(--color-green-07);border:2px solid var(--color-green-07);border-radius:var(--ptc-border-radius-standard)}.ptc-quaternary:hover{background-color:var(--color-green-08)}.ptc-quaternary:active{background-color:var(--color-green-09)}.ptc-quaternary span{color:var(--color-white)}.ptc-quaternary ::slotted([slot=slot-after-text]){fill:var(--color-white) !important}.icon-toggle{background:var(--color-white);border:1px solid var(--color-gray-10);border-radius:var(--ptc-border-radius-standard);padding:0;height:2.125rem;width:2.125rem;box-shadow:var(--ptc-shadow-medium)}.icon-toggle:hover{background-color:var(--color-gray-02)}.icon-toggle:active{background-color:var(--color-gray-03)}.icon-toggle.active{background-color:var(--color-gray-04)}.icon-toggle.active:hover{background-color:var(--color-gray-05)}.icon-toggle.active:active{background-color:var(--color-gray-03)}.icon-toggle:focus{outline:2px solid var(--color-blue-07);outline-offset:1px}.icon-toggle span{color:var(--color-gray-10);padding:0}.icon-toggle ::slotted([slot=slot-after-text]){fill:var(--color-gray-10) !important}.icon-toggle ::slotted(icon-asset){display:block;margin:auto;height:18px;width:18px}.clear-search{border:none;padding:0px;line-height:var(----ptc-line-height-densest);background-color:transparent}.clear-search:hover{text-decoration:underline;text-decoration-color:var(--color-white)}.clear-search span{color:var(--color-white);font-weight:var(--ptc-font-weight-semibold);font-size:var(--ptc-font-size-x-small);-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}";
|
|
10
|
+
|
|
11
|
+
const PtcButton = class {
|
|
12
|
+
constructor(hostRef) {
|
|
13
|
+
index.registerInstance(this, hostRef);
|
|
14
|
+
this.clickEvent = index.createEvent(this, "clickEvent", 7);
|
|
15
|
+
this.disabled = false;
|
|
16
|
+
this.active = false;
|
|
17
|
+
this.type = 'button';
|
|
18
|
+
this.color = 'ptc-primary';
|
|
19
|
+
this.iconAnimation = '';
|
|
20
|
+
this.iconPosition = 'icon-right';
|
|
21
|
+
this.linkHref = undefined;
|
|
22
|
+
this.linkTitle = undefined;
|
|
23
|
+
this.target = '_self';
|
|
24
|
+
this.rel = undefined;
|
|
25
|
+
this.tabNav = 0;
|
|
26
|
+
this.styles = undefined;
|
|
27
|
+
}
|
|
28
|
+
clickEventHandler() {
|
|
29
|
+
this.clickEvent.emit();
|
|
30
|
+
}
|
|
31
|
+
render() {
|
|
32
|
+
const classMap = this.getCssClassMap();
|
|
33
|
+
const Tag = !!this.linkHref ? 'a' : 'button';
|
|
34
|
+
return (index.h(index.Host, null, this.styles && index.h("style", null, this.styles), index.h(Tag, Object.assign({ class: classMap, onClick: this.clickEventHandler.bind(this) }, (!!this.linkHref ? { href: this.linkHref } : {}), (!this.linkHref ? { type: this.type } : {}), (!!this.target && !!this.linkHref ? { target: this.target } : {}), (!!this.rel && !!this.linkHref ? { rel: this.rel } : {}), (!!this.linkHref ? { title: this.linkTitle ? this.linkTitle : this.linkHref } : {}), (!!this.tabNav ? { tabindex: -1 } : { tabindex: 0 })), index.h("span", null, index.h("slot", { name: "slot-before-text" }), index.h("slot", null), index.h("slot", { name: "slot-after-text" })))));
|
|
35
|
+
}
|
|
36
|
+
getCssClassMap() {
|
|
37
|
+
return {
|
|
38
|
+
[this.color]: true,
|
|
39
|
+
[this.iconAnimation]: true,
|
|
40
|
+
[this.iconPosition]: true,
|
|
41
|
+
['disabled']: this.disabled ? true : false,
|
|
42
|
+
['active']: this.active ? true : false,
|
|
43
|
+
};
|
|
44
|
+
}
|
|
45
|
+
};
|
|
46
|
+
PtcButton.style = ptcButtonCss;
|
|
47
|
+
|
|
48
|
+
const ptcCardContentCss = ":host{display:block;height:100%}:host(.speed-bump){border:1px solid var(--color-gray-08);border-radius:var(--ptc-border-radius-large);padding:var(--ptc-element-spacing-06) 28px var(--ptc-element-spacing-06) 28px;text-align:center}:host(.speed-bump-2){border:1px solid var(--color-gray-08);border-radius:var(--ptc-border-radius-large);padding:var(--ptc-element-spacing-07) var(--ptc-element-spacing-05);text-align:center}@media only screen and (min-width: 768px){:host(.speed-bump){text-align:left}}@media only screen and (min-width: 768px){:host(.speed-bump-2){text-align:left}}:host(.card-tall) .ptc-card-content-wrapper,:host(.card-video) .ptc-card-content-wrapper,:host(.card-wide) .ptc-card-content-wrapper,:host(.card-playlist) .ptc-card-content-wrapper{border-radius:var(--ptc-border-radius-large);position:relative}:host(.card-tall) .ptc-card-content-wrapper::before,:host(.card-video) .ptc-card-content-wrapper::before,:host(.card-wide) .ptc-card-content-wrapper::before,:host(.card-playlist) .ptc-card-content-wrapper::before{content:\"\";position:absolute;width:100%;height:100%;border-radius:var(--ptc-border-radius-large);top:0;left:0;background:transparent;z-index:1;box-shadow:var(--ptc-shadow-x-small);transition:background var(--ptc-transition-medium) var(--ptc-ease-inout)}:host(.card-tall) .ptc-card-content-wrapper::after,:host(.card-video) .ptc-card-content-wrapper::after,:host(.card-wide) .ptc-card-content-wrapper::after,:host(.card-playlist) .ptc-card-content-wrapper::after{content:url(\"data:image/svg+xml,%3Csvg width='54' height='56' viewBox='0 0 54 56' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cg filter='url(%23filter0_d_126_10476)'%3E%3Cpath d='M42 20L12 36V4L42 20Z' fill='white'/%3E%3C/g%3E%3Cdefs%3E%3Cfilter id='filter0_d_126_10476' x='0' y='0' width='54' height='56' filterUnits='userSpaceOnUse' color-interpolation-filters='sRGB'%3E%3CfeFlood flood-opacity='0' result='BackgroundImageFix'/%3E%3CfeColorMatrix in='SourceAlpha' type='matrix' values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0' result='hardAlpha'/%3E%3CfeOffset dy='8'/%3E%3CfeGaussianBlur stdDeviation='6'/%3E%3CfeComposite in2='hardAlpha' operator='out'/%3E%3CfeColorMatrix type='matrix' values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.5 0'/%3E%3CfeBlend mode='normal' in2='BackgroundImageFix' result='effect1_dropShadow_126_10476'/%3E%3CfeBlend mode='normal' in='SourceGraphic' in2='effect1_dropShadow_126_10476' result='shape'/%3E%3C/filter%3E%3C/defs%3E%3C/svg%3E%0A\");position:absolute;opacity:0;top:52.5%;left:50%;transform:translate(-50%, -50%);z-index:2;transition:opacity var(--ptc-transition-medium) var(--ptc-ease-inout)}:host(.extra-tall) .ptc-card-content-wrapper{border-radius:var(--ptc-border-radius-large);position:relative;box-shadow:0px 4px 4px rgba(0, 0, 0, 0.12)}:host(.card-2up) .ptc-card-content-wrapper{border-radius:var(--ptc-border-radius-large);position:relative}:host(.card-2up) .ptc-card-content-wrapper::before{content:\"\";position:absolute;width:100%;height:100%;border-radius:var(--ptc-border-radius-large);top:0;left:0;background:transparent;z-index:1;box-shadow:var(--ptc-shadow-x-small);transition:background var(--ptc-transition-medium) var(--ptc-ease-inout)}:host(.card-2up) .ptc-card-content-wrapper::after{content:\"\";position:absolute;opacity:0;top:52.5%;left:50%;transform:translate(-50%, -50%);z-index:2;transition:opacity var(--ptc-transition-medium) var(--ptc-ease-inout)}:host(.card-playlist) .ptc-card-content-wrapper{width:112px;height:112px}:host(.card-playlist) .ptc-card-content-wrapper::before{width:112px;height:112px}:host(.card-playlist) .ptc-card-content-wrapper::after{content:url(\"data:image/svg+xml,%3Csvg width='46' height='48' viewBox='0 0 46 48' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cg filter='url(%23filter0_d_126_10337)'%3E%3Cpath d='M34 16L12 28V4L34 16Z' fill='white'/%3E%3C/g%3E%3Cdefs%3E%3Cfilter id='filter0_d_126_10337' x='0' y='0' width='46' height='48' filterUnits='userSpaceOnUse' color-interpolation-filters='sRGB'%3E%3CfeFlood flood-opacity='0' result='BackgroundImageFix'/%3E%3CfeColorMatrix in='SourceAlpha' type='matrix' values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0' result='hardAlpha'/%3E%3CfeOffset dy='8'/%3E%3CfeGaussianBlur stdDeviation='6'/%3E%3CfeComposite in2='hardAlpha' operator='out'/%3E%3CfeColorMatrix type='matrix' values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.5 0'/%3E%3CfeBlend mode='normal' in2='BackgroundImageFix' result='effect1_dropShadow_126_10337'/%3E%3CfeBlend mode='normal' in='SourceGraphic' in2='effect1_dropShadow_126_10337' result='shape'/%3E%3C/filter%3E%3C/defs%3E%3C/svg%3E%0A\");width:40px;height:30px;top:50%}:host(.thumbnail-video-preview) .ptc-card-content-wrapper{cursor:pointer;position:relative}:host(.thumbnail-video-preview) .ptc-card-content-wrapper::before{content:\"\";position:absolute;width:100%;height:100%;top:0;left:0;background:transparent;z-index:1;box-shadow:var(--ptc-shadow-x-small);transition:background var(--ptc-transition-medium) var(--ptc-ease-inout)}:host(.thumbnail-video-preview) .ptc-card-content-wrapper::after{content:url(\"data:image/svg+xml,%3Csvg width='54' height='56' viewBox='0 0 54 56' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cg filter='url(%23filter0_d_126_10476)'%3E%3Cpath d='M42 20L12 36V4L42 20Z' fill='white'/%3E%3C/g%3E%3Cdefs%3E%3Cfilter id='filter0_d_126_10476' x='0' y='0' width='54' height='56' filterUnits='userSpaceOnUse' color-interpolation-filters='sRGB'%3E%3CfeFlood flood-opacity='0' result='BackgroundImageFix'/%3E%3CfeColorMatrix in='SourceAlpha' type='matrix' values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0' result='hardAlpha'/%3E%3CfeOffset dy='8'/%3E%3CfeGaussianBlur stdDeviation='6'/%3E%3CfeComposite in2='hardAlpha' operator='out'/%3E%3CfeColorMatrix type='matrix' values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.5 0'/%3E%3CfeBlend mode='normal' in2='BackgroundImageFix' result='effect1_dropShadow_126_10476'/%3E%3CfeBlend mode='normal' in='SourceGraphic' in2='effect1_dropShadow_126_10476' result='shape'/%3E%3C/filter%3E%3C/defs%3E%3C/svg%3E%0A\");position:absolute;opacity:1;top:60%;left:50%;transform:translate(-50%, -50%);z-index:2;transition:opacity var(--ptc-transition-medium) var(--ptc-ease-inout)}:host(.card-video) .ptc-card-content-wrapper::after{top:59.5%}:host(.mouse-hover) .ptc-card-content-wrapper::before{background:rgba(0, 0, 0, 0.6)}:host(.mouse-hover) .ptc-card-content-wrapper::after{opacity:1}:host(.card-tall) .ptc-card-content-wrapper::before,:host(.card-wide) .ptc-card-content-wrapper::before,:host(.card-2up) .ptc-card-content-wrapper::before{height:100%}:host(.card-playlist){flex:1 2 0%;margin-right:var(--ptc-element-spacing-04)}@media only screen and (min-width: 768px){:host(.card-playlist){margin-right:var(--ptc-element-spacing-03)}}@media only screen and (min-width: 992px){:host(.card-playlist) .ptc-card-content-wrapper{width:88px;height:88px}:host(.card-playlist) .ptc-card-content-wrapper::before{width:88px;height:88px}}@media only screen and (min-width: 768px){:host(.card-playlist) .ptc-card-content-wrapper{width:112px;height:112px}:host(.card-playlist) .ptc-card-content-wrapper::before{width:112px;height:112px}}@media screen and (min-width: 1981px){:host(.card-playlist){margin-right:var(--ptc-element-spacing-04)}}@media only screen and (min-width: 1200px){:host(.card-video-intro){flex:80% 8 1}}:host(.card-video) .ptc-card-content-wrapper{padding-bottom:56.25%}:host(.card-video) .ptc-card-content-wrapper ::slotted(*){position:absolute;width:100%;height:100%;top:0;left:0}:host(.card-tall) .ptc-card-content-wrapper{height:322px}:host(.card-tall) .ptc-card-content-wrapper ::slotted(*){height:322px}:host(.card-wide) .ptc-card-content-wrapper{height:268px}:host(.card-wide) .ptc-card-content-wrapper ::slotted(*){height:268px}:host(.card-2up) .ptc-card-content-wrapper{height:322px}:host(.card-2up) .ptc-card-content-wrapper ::slotted(*){height:322px}:host(.extra-tall) .ptc-card-content-wrapper{height:auto}:host(.extra-tall) .ptc-card-content-wrapper ::slotted(*){height:auto}:host(.color-outlined){border-radius:var(--ptc-border-radius-large);box-shadow:0px 4px 4px rgba(0, 0, 0, 0.12)}:host(.color-outlined) .ptc-card-content-wrapper{height:235px}:host(.color-outlined) .ptc-card-content-wrapper ::slotted(*){height:235px}@media only screen and (min-width: 480px){:host(.extra-tall) .ptc-card-content-wrapper{height:435px}:host(.extra-tall) .ptc-card-content-wrapper ::slotted(*){height:435px}}@media only screen and (min-width: 768px){:host(.card-tall) .ptc-card-content-wrapper{height:325px}:host(.card-tall) .ptc-card-content-wrapper ::slotted(*){height:325px}:host(.card-wide) .ptc-card-content-wrapper{height:268px}:host(.card-wide) .ptc-card-content-wrapper ::slotted(*){height:268px}:host(.card-2up) .ptc-card-content-wrapper{height:268px}:host(.card-2up) .ptc-card-content-wrapper ::slotted(*){height:268px}:host(.extra-tall) .ptc-card-content-wrapper{height:507px}:host(.extra-tall) .ptc-card-content-wrapper ::slotted(*){height:507px}}@media only screen and (min-width: 992px){:host(.card-tall) .ptc-card-content-wrapper{height:380px}:host(.card-tall) .ptc-card-content-wrapper ::slotted(*){height:380px}}@media only screen and (min-width: 1200px){:host(.extra-tall) .ptc-card-content-wrapper{height:663px}:host(.extra-tall) .ptc-card-content-wrapper ::slotted(*){height:663px}}@media only screen and (min-width: 1980px){:host(.card-tall) .ptc-card-content-wrapper{height:546px}:host(.card-tall) .ptc-card-content-wrapper ::slotted(*){height:546px}:host(.card-wide) .ptc-card-content-wrapper{height:376px}:host(.card-wide) .ptc-card-content-wrapper ::slotted(*){height:376px}:host(.card-2up) .ptc-card-content-wrapper{height:376px}:host(.card-2up) .ptc-card-content-wrapper ::slotted(*){height:376px}}:host(.o-red){border:2px solid var(--color-red-07)}:host(.o-green){border:2px solid var(--color-green-07)}:host(.o-slate-grey){border:2px solid var(--color-gray-07)}:host(.o-orange){border:2px solid var(--color-orange-07)}:host(.o-blue){border:2px solid var(--color-blue-07)}";
|
|
49
|
+
|
|
50
|
+
const PtcCardContent = class {
|
|
51
|
+
constructor(hostRef) {
|
|
52
|
+
index.registerInstance(this, hostRef);
|
|
53
|
+
this.hoverEvent = index.createEvent(this, "hoverEvent", 7);
|
|
54
|
+
this.leaveEvent = index.createEvent(this, "leaveEvent", 7);
|
|
55
|
+
this.cardType = undefined;
|
|
56
|
+
this.outlineColor = undefined;
|
|
57
|
+
this.styles = undefined;
|
|
58
|
+
this.isLoading = false;
|
|
59
|
+
}
|
|
60
|
+
hoverEventHandler() {
|
|
61
|
+
if (!this.el.classList.contains('speed-bump') &&
|
|
62
|
+
!this.el.classList.contains('card-video-intro') &&
|
|
63
|
+
!this.el.classList.contains('card-dynamic') &&
|
|
64
|
+
!this.el.classList.contains('extra-tall')) {
|
|
65
|
+
this.hoverEvent.emit();
|
|
66
|
+
this.el.classList.add('mouse-hover');
|
|
67
|
+
if (!this.el.classList.contains('card-video') && !this.el.classList.contains('card-playlist') && this.el.nextElementSibling) {
|
|
68
|
+
this.el.nextElementSibling.classList.add('mouse-hover-card-bottom');
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
leaveEventHandler() {
|
|
73
|
+
if (!this.el.classList.contains('speed-bump') &&
|
|
74
|
+
!this.el.classList.contains('card-video-intro') &&
|
|
75
|
+
!this.el.classList.contains('card-dynamic') &&
|
|
76
|
+
!this.el.classList.contains('extra-tall')) {
|
|
77
|
+
this.hoverEvent.emit();
|
|
78
|
+
this.el.classList.remove('mouse-hover');
|
|
79
|
+
if (!this.el.classList.contains('card-video') && !this.el.classList.contains('card-playlist') && this.el.nextElementSibling) {
|
|
80
|
+
this.el.nextElementSibling.classList.remove('mouse-hover-card-bottom');
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
async setHeight(height) {
|
|
85
|
+
this.el.style.height = height + 'px';
|
|
86
|
+
const image = this.el.querySelector('ptc-picture');
|
|
87
|
+
image.style.height = height + 'px';
|
|
88
|
+
}
|
|
89
|
+
async removeInlineHeight() {
|
|
90
|
+
this.el.style.removeProperty('height');
|
|
91
|
+
const image = this.el.querySelector('ptc-picture');
|
|
92
|
+
if (image)
|
|
93
|
+
image.style.removeProperty('height');
|
|
94
|
+
}
|
|
95
|
+
render() {
|
|
96
|
+
const classMap = this.getCssClassMap();
|
|
97
|
+
return (index.h(index.Host, Object.assign({ part: "card-content", class: classMap }, (!this.isLoading ? { onMouseEnter: this.hoverEventHandler.bind(this) } : {}), (!this.isLoading ? { onMouseLeave: this.leaveEventHandler.bind(this) } : {})), this.styles && index.h("style", null, this.styles), index.h("div", { class: "ptc-card-content-wrapper" }, index.h("slot", null))));
|
|
98
|
+
}
|
|
99
|
+
getCssClassMap() {
|
|
100
|
+
return {
|
|
101
|
+
[this.cardType]: !!this.cardType ? true : false,
|
|
102
|
+
[this.outlineColor]: !!this.outlineColor ? true : false,
|
|
103
|
+
};
|
|
104
|
+
}
|
|
105
|
+
get el() { return index.getElement(this); }
|
|
106
|
+
};
|
|
107
|
+
PtcCardContent.style = ptcCardContentCss;
|
|
108
|
+
|
|
109
|
+
const ptcDynamicCardCss = ":host{display:block}:host(.sequential) .card-wrapper{position:relative;cursor:pointer}:host(.sequential) .card{background-color:var(--color-gray-12);overflow:hidden}:host(.sequential) .card-mobile,:host(.sequential) .card-dt-open{display:block;border-top:5px solid var(--color-green-05)}:host(.sequential) .card-mobile ptc-card-content,:host(.sequential) .card-dt-open ptc-card-content{display:flex;flex-basis:38%;justify-content:center;align-items:center;padding:var(--ptc-element-spacing-06) var(--ptc-element-spacing-06) var(--ptc-element-spacing-07) var(--ptc-element-spacing-06)}@media only screen and (min-width: 1440px){:host(.sequential) .card-mobile ptc-card-content,:host(.sequential) .card-dt-open ptc-card-content{padding-left:var(--ptc-element-spacing-08);padding-right:var(--ptc-element-spacing-08)}}:host(.sequential) .card-mobile ptc-picture,:host(.sequential) .card-dt-open ptc-picture{flex-basis:62%}:host(.sequential) .card-mobile .card-title h3,:host(.sequential) .card-dt-open .card-title h3{color:var(--color-white);font-size:var(--ptc-font-size-large);font-weight:var(--ptc-font-weight-bold);line-height:var(--ptc-line-height-densest);margin-bottom:0rem;margin-block-start:0rem;letter-spacing:var(--ptc-letter-spacing-normal)}:host(.sequential) .card-mobile .card-content,:host(.sequential) .card-dt-open .card-content{margin-top:var(--ptc-element-spacing-03)}:host(.sequential) .card-dt-closed{width:135px;height:424px;position:relative}:host(.sequential) .card-dt-closed .closed-content{position:absolute;width:100%;height:100%;top:0;display:flex;align-items:center;justify-content:center}:host(.sequential) .card-dt-closed .card-title{text-align:center}:host(.sequential) .card-dt-closed .card-title h2{color:var(--color-white);font-size:var(--ptc-font-size-xx-small);font-weight:var(--ptc-font-weight-bold);line-height:var(--ptc-line-height-densest);margin-bottom:0rem;margin-block-start:0rem;letter-spacing:var(--ptc-letter-spacing-normal);padding-left:var(--ptc-element-spacing-03);padding-right:var(--ptc-element-spacing-03)}@media only screen and (min-width: 1440px){:host(.sequential) .card-dt-closed .card-title h2{font-size:var(--ptc-font-size-small)}}:host(.sequential) .card-dt-open{display:flex;width:45vw;height:480px;transition:width var(--ptc-transition-x-fast) var(--ptc-ease-out)}";
|
|
110
|
+
|
|
111
|
+
const PtcDynamicCard = class {
|
|
112
|
+
constructor(hostRef) {
|
|
113
|
+
index.registerInstance(this, hostRef);
|
|
114
|
+
this.dotSvg = index.getAssetPath('./media/nav-active-dotslick.svg');
|
|
115
|
+
this.cardType = 'sequential';
|
|
116
|
+
this.cardTitle = 'Card Title Goes Here';
|
|
117
|
+
this.cardImgSrc = undefined;
|
|
118
|
+
this.cardImgAlt = undefined;
|
|
119
|
+
this.cardScreen = 'desktop';
|
|
120
|
+
this.isExpanded = undefined;
|
|
121
|
+
this.overlayExists = true;
|
|
122
|
+
}
|
|
123
|
+
// handleClick() {
|
|
124
|
+
// this.isExpanded = !this.isExpanded;
|
|
125
|
+
// }
|
|
126
|
+
getDesktopCard() {
|
|
127
|
+
if (this.cardScreen === 'desktop' && this.isExpanded) {
|
|
128
|
+
return [
|
|
129
|
+
index.h("div", { class: "card card-dt-open" }, index.h("ptc-card-content", { "card-type": "card-dynamic" }, index.h("div", { class: "card-title" }, index.h("h3", null, this.cardTitle)), index.h("div", { class: "card-content" }, index.h("slot", null))), index.h("ptc-picture", { alt: this.cardImgAlt, src: this.cardImgSrc, "is-full-height": "true", "image-alignment": "center" })),
|
|
130
|
+
];
|
|
131
|
+
}
|
|
132
|
+
else if (this.cardScreen === 'desktop' && !this.isExpanded) {
|
|
133
|
+
return [
|
|
134
|
+
index.h("div", { class: "card card-dt-closed" }, index.h("ptc-picture", { alt: this.cardImgAlt, src: this.cardImgSrc, "image-position": "relative", "is-full-width": true, height: "424" }, this.overlayExists ? index.h("ptc-overlay", { "filter-color": "black-3" }) : index.h("ptc-overlay", { "filter-color": "black-2" })), index.h("div", { class: "closed-content", "card-type": "card-dynamic" }, index.h("div", { class: "card-title" }, index.h("h2", null, this.cardTitle)))),
|
|
135
|
+
];
|
|
136
|
+
}
|
|
137
|
+
else {
|
|
138
|
+
return null;
|
|
139
|
+
}
|
|
140
|
+
}
|
|
141
|
+
componentDidLoad() {
|
|
142
|
+
// this.handleResize();
|
|
143
|
+
this.el.addEventListener('mouseenter', () => (this.overlayExists = false));
|
|
144
|
+
this.el.addEventListener('mouseleave', () => (this.overlayExists = true));
|
|
145
|
+
}
|
|
146
|
+
render() {
|
|
147
|
+
const classMap = this.getCssClassMap();
|
|
148
|
+
return (index.h(index.Host, { class: classMap }, index.h("div", { class: "card-wrapper" }, this.cardScreen == 'mobile' ? (index.h("div", { class: "card card-mobile" }, index.h("ptc-picture", { alt: this.cardImgAlt, src: this.cardImgSrc }), index.h("ptc-card-content", { "card-type": "card-dynamic" }, index.h("div", { class: "card-title" }, index.h("h3", null, this.cardTitle)), index.h("div", { class: "card-content" }, index.h("slot", null))))) : (this.getDesktopCard())), this.cardScreen === 'desktop' && (index.h("div", { hidden: true }, index.h("svg", null, index.h("use", { href: `${this.dotSvg}` }))))));
|
|
149
|
+
}
|
|
150
|
+
getCssClassMap() {
|
|
151
|
+
return {
|
|
152
|
+
[this.cardType]: true,
|
|
153
|
+
};
|
|
154
|
+
}
|
|
155
|
+
static get assetsDirs() { return ["media"]; }
|
|
156
|
+
get el() { return index.getElement(this); }
|
|
157
|
+
};
|
|
158
|
+
PtcDynamicCard.style = ptcDynamicCardCss;
|
|
159
|
+
|
|
160
|
+
const ptcOverlayCss = ":host{display:block;position:absolute;top:0;left:0;width:100%;height:100%;transition:background var(--ptc-transition-medium) var(--ptc-ease-inout)}:host(.blue){background:linear-gradient(180deg, rgba(25, 123, 192, 0.2) 0%, var(--color-blue-07) 100%)}:host(.red){background:linear-gradient(180deg, rgba(209, 44, 58, 0.2) 0%, var(--color-red-07) 100%)}:host(.orange){background:linear-gradient(180deg, rgba(195, 119, 41, 0.2) 0%, var(--color-orange-07) 100%)}:host(.green){background:linear-gradient(180deg, rgba(0, 137, 11, 0.2) 0%, var(--color-green-07) 100%)}:host(.black-1){background:linear-gradient(270deg, rgba(32, 38, 42, 0.32) 33.33%, var(--color-gray-12) 100%)}:host(.black-2){background:linear-gradient(180deg, rgba(32, 38, 42, 0) 0%, var(--color-gray-12) 100%)}:host(.black-4){background:rgba(0, 0, 0, 0.66)}:host(.black-5){background:rgba(0, 0, 0, 0.76)}@media only screen and (min-width: 768px){:host(.black-1){background:linear-gradient(270deg, rgba(32, 38, 42, 0) 33.33%, var(--color-gray-12) 100%)}:host(.black-2){background:linear-gradient(180deg, rgba(32, 38, 42, 0) 0%, var(--color-gray-12) 100%)}}:host(.black-3){background:linear-gradient(180deg, var(--color-gray-12) 0%, rgba(32, 38, 42, 0.55) 100%)}:host(.slate-grey){background:linear-gradient(180deg, rgba(97, 116, 128, 0.2) 0%, var(--color-gray-07) 100%)}:host(.bright-blue){background:linear-gradient(180deg, rgba(25, 123, 192, 0.72) 0%, rgba(25, 123, 192, 0.85) 69.27%, rgba(25, 123, 192, 0.4) 100%)}:host(.bright-red){background:linear-gradient(180deg, rgba(211, 62, 62, 0.72) 0%, rgba(211, 62, 62, 0.85) 69.27%, rgba(211, 62, 62, 0.4) 100%)}:host(.bright-orange){background:linear-gradient(180deg, rgba(195, 119, 41, 0.72) 0%, rgba(195, 119, 41, 0.85) 69.27%, rgba(195, 119, 41, 0.4) 100%)}:host(.bright-green){background:linear-gradient(180deg, rgba(0, 137, 11, 0.72) 0%, rgba(0, 137, 11, 0.85) 69.27%, rgba(0, 137, 11, 0.4) 100%)}:host(.bright-slate-grey){background:linear-gradient(180deg, rgba(97, 116, 128, 0.72) 0%, rgba(97, 116, 128, 0.85) 69.27%, rgba(97, 116, 128, 0.4) 100%)}:host(.radius-standard){border-radius:var(--ptc-border-radius-standard)}:host(.radius-large){border-radius:var(--ptc-border-radius-large)}:host(.z-index-auto){z-index:auto}:host(.z-index-n-1){z-index:-1}:host(.z-index-n-2){z-index:-2}:host(.z-index-p-1){z-index:1}:host(.z-index-p-2){z-index:2}";
|
|
161
|
+
|
|
162
|
+
const PtcOverlay = class {
|
|
163
|
+
constructor(hostRef) {
|
|
164
|
+
index.registerInstance(this, hostRef);
|
|
165
|
+
this.filterColor = undefined;
|
|
166
|
+
this.borderRadius = undefined;
|
|
167
|
+
this.overlayZIndex = 'z-index-auto';
|
|
168
|
+
this.styles = undefined;
|
|
169
|
+
}
|
|
170
|
+
async setOverlay(overlayName) {
|
|
171
|
+
this.filterColor = overlayName;
|
|
172
|
+
}
|
|
173
|
+
render() {
|
|
174
|
+
const classMap = this.getCssClassMap();
|
|
175
|
+
return index.h(index.Host, { class: classMap });
|
|
176
|
+
}
|
|
177
|
+
getCssClassMap() {
|
|
178
|
+
return {
|
|
179
|
+
[this.filterColor]: !!this.filterColor ? true : false,
|
|
180
|
+
[this.borderRadius]: !!this.borderRadius ? true : false,
|
|
181
|
+
[this.overlayZIndex]: true,
|
|
182
|
+
};
|
|
183
|
+
}
|
|
184
|
+
};
|
|
185
|
+
PtcOverlay.style = ptcOverlayCss;
|
|
186
|
+
|
|
187
|
+
const ptcParaCss = ":host{position:relative;z-index:1}:host(.white){color:var(--color-white)}:host(.z-1){z-index:1}:host(.z-2){z-index:2}:host(.z-3){z-index:3}:host(.z-99){z-index:99}:host(.z-999){z-index:999}:host(.z-auto){z-index:auto}p.default{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;}p.main{text-shadow:0 3px 6px var(--color-white);line-height:var(--ptc-line-height-dense);color:var(--color-gray-10)}p.primary-grey{color:var(--color-gray-10)}p.white{color:var(--color-white)}p.xxx-small{font-size:var(--ptc-font-size-xxx-small)}p.xx-small{font-size:var(--ptc-font-size-xx-small)}p.x-small{font-size:var(--ptc-font-size-x-small)}p.small{font-size:var(--ptc-font-size-small)}p.medium{font-size:var(--ptc-font-size-medium)}p.large{font-size:var(--ptc-font-size-large)}p.x-large{font-size:var(--ptc-font-size-x-large)}p.xx-large{font-size:var(--ptc-font-size-xx-large)}p.xxx-large{font-size:var(--ptc-font-size-xxx-large)}p.xxxx-large{font-size:var(--ptc-font-size-xxxx-large)}p.w-3{font-weight:var(--ptc-font-weight-thin)}p.w-4{font-weight:var(--ptc-font-weight-regular)}p.w-5{font-weight:var(--ptc-font-weight-medium)}p.w-6{font-weight:var(--ptc-font-weight-semibold)}p.w-7{font-weight:var(--ptc-font-weight-bold)}p.w-8{font-weight:var(--ptc-font-weight-extrabold)}p.w-9{font-weight:var(--ptc-font-weight-black)}p.margin-flush{margin-top:0;margin-bottom:0}p.margin-top-1{margin-top:var(--ptc-element-spacing-01);margin-bottom:0}p.margin-top-2{margin-top:var(--ptc-element-spacing-02);margin-bottom:0}p.margin-top-3{margin-top:var(--ptc-element-spacing-03);margin-bottom:0}p.margin-top-4{margin-top:var(--ptc-element-spacing-04);margin-bottom:0}p.margin-top-5{margin-top:var(--ptc-element-spacing-05);margin-bottom:0}p.margin-top-6{margin-top:var(--ptc-element-spacing-06);margin-bottom:0}p.margin-bottom-1{margin-bottom:var(--ptc-element-spacing-01);margin-top:0}p.margin-bottom-2{margin-bottom:var(--ptc-element-spacing-02);margin-top:0}p.margin-bottom-3{margin-bottom:var(--ptc-element-spacing-03);margin-top:0}p.margin-bottom-4{margin-bottom:var(--ptc-element-spacing-04);margin-top:0}p.margin-bottom-5{margin-bottom:var(--ptc-element-spacing-05);margin-top:0}p.margin-bottom-6{margin-bottom:var(--ptc-element-spacing-06);margin-top:0}p.margin-1{margin-top:var(--ptc-element-spacing-01);margin-bottom:var(--ptc-element-spacing-01)}p.margin-2{margin-top:var(--ptc-element-spacing-02);margin-bottom:var(--ptc-element-spacing-02)}p.margin-3{margin-top:var(--ptc-element-spacing-03);margin-bottom:var(--ptc-element-spacing-03)}p.margin-4{margin-top:var(--ptc-element-spacing-04);margin-bottom:var(--ptc-element-spacing-04)}p.margin-5{margin-top:var(--ptc-element-spacing-05);margin-bottom:var(--ptc-element-spacing-05)}p.margin-6{margin-top:var(--ptc-element-spacing-06);margin-bottom:var(--ptc-element-spacing-06)}p.line-height-densest{line-height:var(--ptc-line-height-densest)}p.line-height-denser{line-height:var(--ptc-line-height-denser)}p.line-height-p{line-height:var(--ptc-line-height-p)}p.line-height-dense{line-height:var(--ptc-line-height-dense)}p.line-height-normal{line-height:var(--ptc-line-height-normal)}p.line-height-loose{line-height:var(--ptc-line-height-loose)}p.line-height-looser{line-height:var(--ptc-line-height-looser)}p.left{text-align:left}p.right{text-align:right}p.center{text-align:center}p.justify{text-align:justify}p.announcement{text-transform:uppercase;font-size:var(--ptc-font-size-small);color:var(--color-gray-07);line-height:var(--ptc-line-height-looser);letter-spacing:var(--ptc-letter-spacing-loose)}p.ellipsis-boxing{display:-webkit-box;-webkit-line-clamp:1;-webkit-box-orient:vertical;overflow:hidden;text-overflow:ellipsis;overflow-wrap:break-word}";
|
|
188
|
+
|
|
189
|
+
const PtcPara = class {
|
|
190
|
+
constructor(hostRef) {
|
|
191
|
+
index.registerInstance(this, hostRef);
|
|
192
|
+
this.fontSize = 'x-small';
|
|
193
|
+
this.fontWeight = 'w-4';
|
|
194
|
+
this.paraStyle = 'default';
|
|
195
|
+
this.paraColor = 'primary-grey';
|
|
196
|
+
this.paraLineH = 'line-height-normal';
|
|
197
|
+
this.paraMargin = undefined;
|
|
198
|
+
this.paraAlign = undefined;
|
|
199
|
+
this.ellipsisLineCutoff = undefined;
|
|
200
|
+
this.paraZIndex = undefined;
|
|
201
|
+
this.styles = undefined;
|
|
202
|
+
}
|
|
203
|
+
render() {
|
|
204
|
+
const classMap = this.getCssClassMap();
|
|
205
|
+
const colorClass = this.addWhiteClass();
|
|
206
|
+
const cutOff = this.getLineCuttoff();
|
|
207
|
+
return (index.h(index.Host, { class: `${colorClass} ${this.paraZIndex}` }, this.styles && index.h("style", null, this.styles), index.h("p", { class: classMap, part: "part-para", style: cutOff }, index.h("slot", null))));
|
|
208
|
+
}
|
|
209
|
+
getCssClassMap() {
|
|
210
|
+
return {
|
|
211
|
+
[this.fontSize]: true,
|
|
212
|
+
[this.fontWeight]: true,
|
|
213
|
+
[this.paraStyle]: true,
|
|
214
|
+
[this.paraMargin]: !!this.paraMargin ? true : false,
|
|
215
|
+
[this.paraColor]: true,
|
|
216
|
+
[this.paraLineH]: true,
|
|
217
|
+
[this.paraAlign]: !!this.paraAlign ? true : false,
|
|
218
|
+
['ellipsis-boxing']: this.ellipsisLineCutoff && this.ellipsisLineCutoff > 0,
|
|
219
|
+
};
|
|
220
|
+
}
|
|
221
|
+
//WEB-2392
|
|
222
|
+
addWhiteClass() {
|
|
223
|
+
if (this.paraColor == 'white') {
|
|
224
|
+
return {
|
|
225
|
+
[this.paraColor]: true,
|
|
226
|
+
};
|
|
227
|
+
}
|
|
228
|
+
}
|
|
229
|
+
getLineCuttoff() {
|
|
230
|
+
let result;
|
|
231
|
+
if (this.ellipsisLineCutoff && this.ellipsisLineCutoff > 0) {
|
|
232
|
+
result = {
|
|
233
|
+
['-webkit-line-clamp']: `${this.ellipsisLineCutoff}`,
|
|
234
|
+
};
|
|
235
|
+
}
|
|
236
|
+
return result;
|
|
237
|
+
}
|
|
238
|
+
get el() { return index.getElement(this); }
|
|
239
|
+
};
|
|
240
|
+
PtcPara.style = ptcParaCss;
|
|
241
|
+
|
|
242
|
+
const ptcPictureCss = ":host{display:block;overflow:hidden}:host img{display:block}:host(.relative){position:relative}:host(.static){position:static}:host(.absoltue){position:absolute}img{max-width:100%}.cover{object-fit:cover}.fill{object-fit:fill}.contain{object-fit:contain}.scale-down{object-fit:scale-down}.none{object-fit:none}.initial{object-fit:initial}.inherit{object-fit:inherit}.radius-standard{border-radius:var(--ptc-border-radius-standard)}.radius-large{border-radius:var(--ptc-border-radius-large)}.is-full-height{height:100%}.is-full-width{width:100%}:host(.left){text-align:left}:host(.right){text-align:right}:host(.center){text-align:center}";
|
|
243
|
+
|
|
244
|
+
const PtcPicture = class {
|
|
245
|
+
constructor(hostRef) {
|
|
246
|
+
index.registerInstance(this, hostRef);
|
|
247
|
+
this.src = undefined;
|
|
248
|
+
this.alt = 'image';
|
|
249
|
+
this.sizeXs = '510x340';
|
|
250
|
+
this.sizeSm = '1240x496';
|
|
251
|
+
this.sizeMd = '1366x500';
|
|
252
|
+
this.sizeLg = '1920x1080';
|
|
253
|
+
this.oldSrc = undefined;
|
|
254
|
+
this.imagePosition = 'static';
|
|
255
|
+
this.borderRadius = undefined;
|
|
256
|
+
this.height = undefined;
|
|
257
|
+
this.width = undefined;
|
|
258
|
+
this.objectFit = 'cover';
|
|
259
|
+
this.isFullHeight = false;
|
|
260
|
+
this.isFullWidth = false;
|
|
261
|
+
this.styles = undefined;
|
|
262
|
+
this.imageAlignment = 'left';
|
|
263
|
+
this.maxWidth = undefined;
|
|
264
|
+
}
|
|
265
|
+
WindowResize() {
|
|
266
|
+
this.addIntersectionObserver();
|
|
267
|
+
}
|
|
268
|
+
componentDidLoad() {
|
|
269
|
+
this.addIntersectionObserver();
|
|
270
|
+
}
|
|
271
|
+
componentWillUpdate() {
|
|
272
|
+
if (this.src !== this.oldSrc) {
|
|
273
|
+
this.addIntersectionObserver();
|
|
274
|
+
}
|
|
275
|
+
this.oldSrc = this.src;
|
|
276
|
+
}
|
|
277
|
+
//lazy-loading
|
|
278
|
+
addIntersectionObserver() {
|
|
279
|
+
if (!this.src) {
|
|
280
|
+
return;
|
|
281
|
+
}
|
|
282
|
+
if ('IntersectionObserver' in window) {
|
|
283
|
+
let lazyLoadImages = new IntersectionObserver(entries => {
|
|
284
|
+
entries.forEach(entry => {
|
|
285
|
+
if (entry.isIntersecting) {
|
|
286
|
+
const image = this.el.shadowRoot.querySelector('img');
|
|
287
|
+
image.src = this.setResponsiveBg();
|
|
288
|
+
lazyLoadImages.unobserve(image);
|
|
289
|
+
}
|
|
290
|
+
});
|
|
291
|
+
});
|
|
292
|
+
let tempImg = this.el.shadowRoot.querySelector('img');
|
|
293
|
+
if (tempImg) {
|
|
294
|
+
lazyLoadImages.observe(tempImg);
|
|
295
|
+
}
|
|
296
|
+
}
|
|
297
|
+
else {
|
|
298
|
+
// fall back to setTimeout for Safari and IE
|
|
299
|
+
setTimeout(() => {
|
|
300
|
+
const image = this.el.shadowRoot.querySelector('img');
|
|
301
|
+
image.src = this.setResponsiveBg();
|
|
302
|
+
image.onload = () => {
|
|
303
|
+
image.removeAttribute('data-src');
|
|
304
|
+
console.log('loaded fallback');
|
|
305
|
+
};
|
|
306
|
+
}, 5000);
|
|
307
|
+
}
|
|
308
|
+
}
|
|
309
|
+
//responsive image
|
|
310
|
+
setResponsiveBg() {
|
|
311
|
+
// Define local variables
|
|
312
|
+
let backgrounds = (this.el.shadowRoot || document).querySelectorAll('img'), el, elData, currentBreakpoint = this.getCurrentBreakPoints();
|
|
313
|
+
for (var i = 0, len = backgrounds.length; i < len; i++) {
|
|
314
|
+
// Set current variables
|
|
315
|
+
el = backgrounds[i];
|
|
316
|
+
elData = el.getAttribute('data-' + currentBreakpoint);
|
|
317
|
+
if (elData !== null) {
|
|
318
|
+
return elData;
|
|
319
|
+
}
|
|
320
|
+
else {
|
|
321
|
+
if (typeof console == 'object') {
|
|
322
|
+
console.warn('Data attribute: data-' + currentBreakpoint + ' not found on element:\n\n' + el.outerHTML + '\n\n\n');
|
|
323
|
+
}
|
|
324
|
+
}
|
|
325
|
+
}
|
|
326
|
+
}
|
|
327
|
+
render() {
|
|
328
|
+
const classMap = this.getCssClassMap();
|
|
329
|
+
const classMapHost = this.getCssClassMapHost();
|
|
330
|
+
return (index.h(index.Host, { class: classMapHost }, this.styles && index.h("style", null, this.styles), index.h("img", Object.assign({ class: classMap, "data-xs": !!this.sizeXs ? `${this.src}:${this.sizeXs}` : `${this.src}`, "data-sm": !!this.sizeSm ? `${this.src}:${this.sizeSm}` : `${this.src}`, "data-md": !!this.sizeMd ? `${this.src}:${this.sizeMd}` : `${this.src}`, "data-lg": !!this.sizeLg ? `${this.src}:${this.sizeLg}` : `${this.src}` }, (!!this.width ? { width: this.width } : {}), (!!this.height ? { height: this.height } : {}), { alt: this.alt, style: Object.assign({}, (!!this.maxWidth ? { maxWidth: this.maxWidth + 'px' } : {})) })), index.h("slot", null)));
|
|
331
|
+
}
|
|
332
|
+
getCurrentBreakPoints() {
|
|
333
|
+
// Define local variables
|
|
334
|
+
let doc = window.document, temp = doc.createElement('div'), env;
|
|
335
|
+
// Append test node
|
|
336
|
+
doc.body.appendChild(temp);
|
|
337
|
+
// Loop through breakpoints
|
|
338
|
+
for (let i = interfaces.ResponsivePictureVariables.envs.length - 1; i >= 0; i--) {
|
|
339
|
+
env = interfaces.ResponsivePictureVariables.envs[i];
|
|
340
|
+
// Add classes
|
|
341
|
+
temp.className = 'hidden-' + env;
|
|
342
|
+
// Found breakpoint
|
|
343
|
+
if (temp.offsetParent === null) {
|
|
344
|
+
// Remove our test node
|
|
345
|
+
doc.body.removeChild(temp);
|
|
346
|
+
// Return current breakpoint
|
|
347
|
+
return env;
|
|
348
|
+
}
|
|
349
|
+
}
|
|
350
|
+
// Breakpoint not found, try fallback
|
|
351
|
+
doc.body.removeChild(temp);
|
|
352
|
+
return this.getFallbackBreakpoint();
|
|
353
|
+
}
|
|
354
|
+
getFallbackBreakpoint() {
|
|
355
|
+
if (window.matchMedia('(min-width: 992px)').matches) {
|
|
356
|
+
return 'lg';
|
|
357
|
+
}
|
|
358
|
+
else if (window.matchMedia('(min-width: 768px)').matches) {
|
|
359
|
+
return 'md';
|
|
360
|
+
}
|
|
361
|
+
else if (window.matchMedia('(min-width: 576px)').matches) {
|
|
362
|
+
return 'sm';
|
|
363
|
+
}
|
|
364
|
+
else {
|
|
365
|
+
return 'xs';
|
|
366
|
+
}
|
|
367
|
+
}
|
|
368
|
+
getCssClassMap() {
|
|
369
|
+
return {
|
|
370
|
+
[this.borderRadius]: this.borderRadius ? true : false,
|
|
371
|
+
[this.objectFit]: true,
|
|
372
|
+
[this.isFullHeight ? 'is-full-height' : 'is-normal-height']: true,
|
|
373
|
+
[this.isFullWidth ? 'is-full-width' : 'is-normal-width']: true,
|
|
374
|
+
};
|
|
375
|
+
}
|
|
376
|
+
getCssClassMapHost() {
|
|
377
|
+
return {
|
|
378
|
+
[this.imagePosition]: true,
|
|
379
|
+
[this.imageAlignment]: true,
|
|
380
|
+
};
|
|
381
|
+
}
|
|
382
|
+
get el() { return index.getElement(this); }
|
|
383
|
+
};
|
|
384
|
+
PtcPicture.style = ptcPictureCss;
|
|
385
|
+
|
|
386
|
+
const ptcSpacerCss = ":host{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;position:relative;display:block;width:12px;min-width:12px;height:12px}@media (min-width: 36em){:host{width:16px;min-width:16px;height:16px}}:host(.ptc-spacer-horizontal){display:inline-block;height:100% !important}:host(.ptc-spacer-horizontal.xx-small){width:4px;min-width:4px;height:100%}@media (min-width: 36em){:host(.ptc-spacer-horizontal.xx-small){width:4px;min-width:4px}}:host(.ptc-spacer-horizontal.x-small){width:4px;min-width:4px;height:100%}@media (min-width: 36em){:host(.ptc-spacer-horizontal.x-small){width:8px;min-width:8px}}:host(.ptc-spacer-horizontal.small){width:8px;min-width:8px;height:100%}@media (min-width: 36em){:host(.ptc-spacer-horizontal.small){width:12px;min-width:12px}}:host(.ptc-spacer-horizontal.medium){height:100%}:host(.ptc-spacer-horizontal.large){width:16px;min-width:16px;height:100%}@media (min-width: 36em){:host(.ptc-spacer-horizontal.large){width:20px;min-width:20px}}:host(.ptc-spacer-horizontal.x-large){width:20px;min-width:20px;height:100%}@media (min-width: 36em){:host(.ptc-spacer-horizontal.x-large){width:28px;min-width:28px}}:host(.ptc-spacer-horizontal.xx-large){width:28px;min-width:28px;height:100%}@media (min-width: 36em){:host(.ptc-spacer-horizontal.xx-large){width:36px;min-width:36px}}:host(.ptc-spacer-horizontal.xxx-large){width:36px;min-width:36px;height:100%}@media (min-width: 36em){:host(.ptc-spacer-horizontal.xxx-large){width:48px;min-width:48px}}:host(.ptc-spacer-horizontal.xxxx-large){width:48px;min-width:48px;height:100%}@media (min-width: 36em){:host(.ptc-spacer-horizontal.xxxx-large){width:72px;min-width:72px}}:host(.ptc-spacer-vertical.xx-small){width:100%;height:4px;min-height:4px}:host(.ptc-spacer-vertical.x-small){width:100%;height:4px;min-height:4px}@media (min-width: 36em){:host(.ptc-spacer-vertical.x-small){height:8px;min-height:8px}}:host(.ptc-spacer-vertical.small){width:100%;height:8px;min-height:8px}@media (min-width: 36em){:host(.ptc-spacer-vertical.small){height:12px;min-height:12px}}:host(.ptc-spacer-vertical.medium){width:100%}:host(.ptc-spacer-vertical.large){width:100%;height:16px;min-height:16px}@media (min-width: 36em){:host(.ptc-spacer-vertical.large){height:20px;min-height:20px}}:host(.ptc-spacer-vertical.x-large){width:100%;height:20px;min-height:20px}@media (min-width: 36em){:host(.ptc-spacer-vertical.x-large){height:28px;min-height:28px}}:host(.ptc-spacer-vertical.xx-large){width:100%;height:28px;min-height:28px}@media (min-width: 36em){:host(.ptc-spacer-vertical.xx-large){height:36px;min-height:36px}}:host(.ptc-spacer-vertical.xxx-large){width:100%;height:36px;min-height:36px}@media (min-width: 36em){:host(.ptc-spacer-vertical.xxx-large){height:48px;min-height:48px}}:host(.ptc-spacer-vertical.xxxx-large){width:100%;height:48px;min-height:48px}@media (min-width: 36em){:host(.ptc-spacer-vertical.xxxx-large){height:72px;min-height:72px}}:host(.ptc-spacer-vertical.space-144){width:100%;height:144px;min-height:144px}:host(.ptc-spacer-vertical.space-120){width:100%;height:120px;min-height:120px}:host(.ptc-spacer-vertical.space-128){width:100%;height:128px;min-height:128px}:host(.ptc-spacer-xx-small){display:none}@media (max-width: 22.5em){:host(.ptc-spacer-xx-small){display:block}}:host(.ptc-spacer-x-small){display:none}@media (max-width: 35.99em){:host(.ptc-spacer-x-small){display:block}}:host(.ptc-spacer-small){display:none}@media (min-width: 36em){:host(.ptc-spacer-small){display:block}}:host(.ptc-spacer-medium){display:none}@media (min-width: 48em){:host(.ptc-spacer-medium){display:block}}:host(.ptc-spacer-large){display:none}@media (min-width: 62em){:host(.ptc-spacer-large){display:block}}:host(.ptc-spacer-x-large){display:none}@media (min-width: 64.0625em){:host(.ptc-spacer-x-large){display:block}}:host(.ptc-spacer-xx-large){display:none}@media (min-width: 75em){:host(.ptc-spacer-xx-large){display:block}}:host(.ptc-spacer-xxx-large){display:none}@media (min-width: 90em){:host(.ptc-spacer-xxx-large){display:block}}";
|
|
387
|
+
|
|
388
|
+
const PtcSpacer = class {
|
|
389
|
+
constructor(hostRef) {
|
|
390
|
+
index.registerInstance(this, hostRef);
|
|
391
|
+
this.breakpoint = '';
|
|
392
|
+
this.size = 'medium';
|
|
393
|
+
this.direction = 'vertical';
|
|
394
|
+
}
|
|
395
|
+
render() {
|
|
396
|
+
const classMap = this.getCssClassMap();
|
|
397
|
+
return (index.h(index.Host, { class: classMap }));
|
|
398
|
+
}
|
|
399
|
+
getCssClassMap() {
|
|
400
|
+
return {
|
|
401
|
+
[this.size]: true,
|
|
402
|
+
['ptc-spacer-horizontal']: this.direction === 'horizontal',
|
|
403
|
+
['ptc-spacer-vertical']: this.direction === 'vertical',
|
|
404
|
+
['ptc-spacer-xx-small']: this.breakpoint === 'xx-small',
|
|
405
|
+
['ptc-spacer-x-small']: this.breakpoint === 'x-small',
|
|
406
|
+
['ptc-spacer-small']: this.breakpoint === 'small',
|
|
407
|
+
['ptc-spacer-medium']: this.breakpoint === 'medium',
|
|
408
|
+
['ptc-spacer-large']: this.breakpoint === 'large',
|
|
409
|
+
['ptc-spacer-x-large']: this.breakpoint === 'x-large',
|
|
410
|
+
['ptc-spacer-xx-large']: this.breakpoint === 'xx-large',
|
|
411
|
+
['ptc-spacer-xxx-large']: this.breakpoint === 'xxx-large',
|
|
412
|
+
};
|
|
413
|
+
}
|
|
414
|
+
};
|
|
415
|
+
PtcSpacer.style = ptcSpacerCss;
|
|
416
|
+
|
|
417
|
+
const sequentialBundleExampleCss = "@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-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}:host{display:block}.swiper-container{width:100%;height:100%}.swiper-slide{text-align:center;font-size:18px;background:#fff;display:flex;justify-content:center;align-items:center}.mobile-container{display:block}.desktop-container{display:none}@media screen and (min-width: 1200px){.mobile-container{display:none}.desktop-container{display:flex;align-items:center}}@media screen and (max-width: 1199.9px){.swiper-slide{width:calc(100% - 40px);margin-right:20px}.swiper-slide:last-child{margin-right:0}}.pagination{display:flex;justify-content:center;margin-top:20px}.pagination-dot{height:20px;width:20px;border-radius:50%;margin:0 14px;cursor:pointer;cursor:pointer;border:2px solid #c3cbcd;background-color:#f3f3f3;position:relative}.pagination-dot::after{content:\"\";display:block;position:absolute;width:38px;height:1px;border-top:2px solid #c3cbcd;margin-top:-1px;z-index:-1;top:50%;left:10px}.pagination-dot:last-of-type::after{visibility:hidden}.pagination-dot.active{background-image:url(/build/media/nav-active-dotslick.svg);background-position:50%;background-repeat:no-repeat;border:2px solid transparent}";
|
|
418
|
+
|
|
419
|
+
const SequentialBundleExample = class {
|
|
420
|
+
constructor(hostRef) {
|
|
421
|
+
index.registerInstance(this, hostRef);
|
|
422
|
+
this.isConnected = false;
|
|
423
|
+
this.dotSvg = index.getAssetPath('./media/nav-active-dotslick.svg');
|
|
424
|
+
this.isInteralCardsExpanded = [true, false, false, false, false];
|
|
425
|
+
this.isMobile = false;
|
|
426
|
+
this.expandedCardIndex = 0;
|
|
427
|
+
}
|
|
428
|
+
handleResize() {
|
|
429
|
+
this.updateIsMobile();
|
|
430
|
+
// console.log('handleResize: isMobile: ' + this.isMobile);
|
|
431
|
+
}
|
|
432
|
+
watchStateHandler() {
|
|
433
|
+
console.log('Runing Watch/ismobilechange: isMobile updated and Start handleIsMobileChange');
|
|
434
|
+
console.log('Start Watch: isMobile: ' + this.isMobile);
|
|
435
|
+
if (this.isMobile && !this.mySwiper && this.isConnected) {
|
|
436
|
+
console.log('watch/ismobileChange condition1: Run swiper');
|
|
437
|
+
let that = this;
|
|
438
|
+
const createSwiper = () => {
|
|
439
|
+
let tempSwiperContainer = that.el.shadowRoot.querySelector('.swiper-container');
|
|
440
|
+
console.log("find container: " + tempSwiperContainer);
|
|
441
|
+
if (tempSwiperContainer) {
|
|
442
|
+
that.mySwiper = new core.Swiper(tempSwiperContainer, {
|
|
443
|
+
slidesPerView: 1,
|
|
444
|
+
spaceBetween: 20,
|
|
445
|
+
loop: true,
|
|
446
|
+
pagination: {
|
|
447
|
+
el: '.swiper-pagination',
|
|
448
|
+
},
|
|
449
|
+
});
|
|
450
|
+
}
|
|
451
|
+
else {
|
|
452
|
+
setTimeout(createSwiper, 100);
|
|
453
|
+
}
|
|
454
|
+
};
|
|
455
|
+
createSwiper();
|
|
456
|
+
}
|
|
457
|
+
else if (!this.isMobile && this.mySwiper) {
|
|
458
|
+
console.log("watch/ismobileChange condition2: it's not swiper and remove it");
|
|
459
|
+
this.mySwiper.destroy(true, true);
|
|
460
|
+
this.mySwiper = null;
|
|
461
|
+
}
|
|
462
|
+
}
|
|
463
|
+
connectedCallback() {
|
|
464
|
+
console.log('START! isMobile: ' + this.isMobile);
|
|
465
|
+
//if screen is mobile when first load
|
|
466
|
+
this.updateIsMobile();
|
|
467
|
+
console.log("ConnectedCallback: isMobile: " + this.isMobile);
|
|
468
|
+
this.isConnected = true;
|
|
469
|
+
}
|
|
470
|
+
componentDidLoad() {
|
|
471
|
+
console.log('Component Did Load');
|
|
472
|
+
this.watchStateHandler();
|
|
473
|
+
}
|
|
474
|
+
disconnectedCallback() {
|
|
475
|
+
console.log("Running disconnectedCb");
|
|
476
|
+
//window.removeEventListener('resize', this.handleResize);
|
|
477
|
+
if (this.mySwiper) {
|
|
478
|
+
this.mySwiper.destroy(true, true);
|
|
479
|
+
this.mySwiper = null;
|
|
480
|
+
}
|
|
481
|
+
}
|
|
482
|
+
render() {
|
|
483
|
+
const deskTCards = [
|
|
484
|
+
index.h("ptc-dynamic-card", { "card-type": "sequential", "card-screen": "desktop", "card-title": "iWarranty Business Update Webinar", "card-img-src": "https://s7d1.scene7.com/is/image/ptcinc//dpm-male-worker-laptop-factory-data", "card-img-alt": "image-test", "is-expanded": this.isInteralCardsExpanded[0] }, index.h("ptc-para", { "font-size": "x-small", "font-weight": "w-4", "para-margin": "margin-flush", "para-color": "white", "para-line-h": "line-height-p" }, "The Leading Warranty & Contract Management System just got even better... iWarranty v5.3 now available!"), index.h("ptc-spacer", { breakpoint: "x-small", size: "xx-large" }), index.h("ptc-spacer", { breakpoint: "small", size: "x-large" }), index.h("ptc-button", { type: "link", color: "ptc-secondary", "link-href": "https://www.ptc.com", target: "_blank" }, "Learn More")),
|
|
485
|
+
index.h("ptc-dynamic-card", { "card-type": "sequential", "card-screen": "desktop", "card-title": "iWarranty Business Update Webinar", "card-img-src": "https://s7d1.scene7.com/is/image/ptcinc//dpm-male-worker-laptop-factory-data", "card-img-alt": "image-test", "is-expanded": this.isInteralCardsExpanded[1] }, index.h("ptc-para", { "font-size": "x-small", "font-weight": "w-4", "para-margin": "margin-flush", "para-color": "white", "para-line-h": "line-height-p" }, "The Leading Warranty & Contract Management System just got even better... iWarranty v5.3 now available!"), index.h("ptc-spacer", { breakpoint: "x-small", size: "xx-large" }), index.h("ptc-spacer", { breakpoint: "small", size: "x-large" }), index.h("ptc-button", { type: "link", color: "ptc-secondary", "link-href": "https://www.ptc.com", target: "_blank" }, "Learn More")),
|
|
486
|
+
index.h("ptc-dynamic-card", { "card-type": "sequential", "card-screen": "desktop", "card-title": "iWarranty Business Update Webinar", "card-img-src": "https://s7d1.scene7.com/is/image/ptcinc//dpm-male-worker-laptop-factory-data", "card-img-alt": "image-test", "is-expanded": this.isInteralCardsExpanded[2] }, index.h("ptc-para", { "font-size": "x-small", "font-weight": "w-4", "para-margin": "margin-flush", "para-color": "white", "para-line-h": "line-height-p" }, "The Leading Warranty & Contract Management System just got even better... iWarranty v5.3 now available!"), index.h("ptc-spacer", { breakpoint: "x-small", size: "xx-large" }), index.h("ptc-spacer", { breakpoint: "small", size: "x-large" }), index.h("ptc-button", { type: "link", color: "ptc-secondary", "link-href": "https://www.ptc.com", target: "_blank" }, "Learn More")),
|
|
487
|
+
index.h("ptc-dynamic-card", { "card-type": "sequential", "card-screen": "desktop", "card-title": "iWarranty Business Update Webinar", "card-img-src": "https://s7d1.scene7.com/is/image/ptcinc//dpm-male-worker-laptop-factory-data", "card-img-alt": "image-test", "is-expanded": this.isInteralCardsExpanded[3] }, index.h("ptc-para", { "font-size": "x-small", "font-weight": "w-4", "para-margin": "margin-flush", "para-color": "white", "para-line-h": "line-height-p" }, "The Leading Warranty & Contract Management System just got even better... iWarranty v5.3 now available!"), index.h("ptc-spacer", { breakpoint: "x-small", size: "xx-large" }), index.h("ptc-spacer", { breakpoint: "small", size: "x-large" }), index.h("ptc-button", { type: "link", color: "ptc-secondary", "link-href": "https://www.ptc.com", target: "_blank" }, "Learn More")),
|
|
488
|
+
index.h("ptc-dynamic-card", { "card-type": "sequential", "card-screen": "desktop", "card-title": "iWarranty Business Update Webinar", "card-img-src": "https://s7d1.scene7.com/is/image/ptcinc//dpm-male-worker-laptop-factory-data", "card-img-alt": "image-test", "is-expanded": this.isInteralCardsExpanded[4] }, index.h("ptc-para", { "font-size": "x-small", "font-weight": "w-4", "para-margin": "margin-flush", "para-color": "white", "para-line-h": "line-height-p" }, "The Leading Warranty & Contract Management System just got even better... iWarranty v5.3 now available!"), index.h("ptc-spacer", { breakpoint: "x-small", size: "xx-large" }), index.h("ptc-spacer", { breakpoint: "small", size: "x-large" }), index.h("ptc-button", { type: "link", color: "ptc-secondary", "link-href": "https://www.ptc.com", target: "_blank" }, "Learn More")),
|
|
489
|
+
];
|
|
490
|
+
return (index.h(index.Host, null, this.isMobile ? (index.h("div", { class: "swiper-container mobile-container" }, index.h("div", { class: "swiper-wrapper" }, index.h("div", { class: "swiper-slide" }, index.h("ptc-dynamic-card", { "card-type": "sequential", "card-screen": "mobile", "card-title": "iWarranty Business Update Webinar", "card-img-src": "https://s7d1.scene7.com/is/image/ptcinc//dpm-male-worker-laptop-factory-data", "card-img-alt": "image-test" }, index.h("ptc-para", { "font-size": "x-small", "font-weight": "w-4", "para-margin": "margin-flush", "para-color": "white", "para-line-h": "line-height-p" }, "The Leading Warranty & Contract Management System just got even better... iWarranty v5.3 now available!"), index.h("ptc-spacer", { breakpoint: "x-small", size: "xx-large" }), index.h("ptc-spacer", { breakpoint: "small", size: "x-large" }), index.h("ptc-button", { type: "link", color: "ptc-secondary", "link-href": "https://www.ptc.com", target: "_blank" }, "Learn More"))), index.h("div", { class: "swiper-slide" }, index.h("ptc-dynamic-card", { "card-type": "sequential", "card-screen": "mobile", "card-title": "iWarranty Business Update Webinar", "card-img-src": "https://s7d1.scene7.com/is/image/ptcinc//dpm-male-worker-laptop-factory-data", "card-img-alt": "image-test" }, index.h("ptc-para", { "font-size": "x-small", "font-weight": "w-4", "para-margin": "margin-flush", "para-color": "white", "para-line-h": "line-height-p" }, "The Leading Warranty & Contract Management System just got even better... iWarranty v5.3 now available!"), index.h("ptc-spacer", { breakpoint: "x-small", size: "xx-large" }), index.h("ptc-spacer", { breakpoint: "small", size: "x-large" }), index.h("ptc-button", { type: "link", color: "ptc-secondary", "link-href": "https://www.ptc.com", target: "_blank" }, "Learn More"))), index.h("div", { class: "swiper-slide" }, index.h("ptc-dynamic-card", { "card-type": "sequential", "card-screen": "mobile", "card-title": "iWarranty Business Update Webinar", "card-img-src": "https://s7d1.scene7.com/is/image/ptcinc//dpm-male-worker-laptop-factory-data", "card-img-alt": "image-test" }, index.h("ptc-para", { "font-size": "x-small", "font-weight": "w-4", "para-margin": "margin-flush", "para-color": "white", "para-line-h": "line-height-p" }, "The Leading Warranty & Contract Management System just got even better... iWarranty v5.3 now available!"), index.h("ptc-spacer", { breakpoint: "x-small", size: "xx-large" }), index.h("ptc-spacer", { breakpoint: "small", size: "x-large" }), index.h("ptc-button", { type: "link", color: "ptc-secondary", "link-href": "https://www.ptc.com", target: "_blank" }, "Learn More")))), index.h("div", { class: "swiper-pagination" }))) : ([
|
|
491
|
+
index.h("div", { class: "accordion-container desktop-container" }, deskTCards.map((card, index$1) => (index.h("div", { class: {
|
|
492
|
+
card: true,
|
|
493
|
+
expanded: index$1 === this.expandedCardIndex,
|
|
494
|
+
}, onClick: () => {
|
|
495
|
+
this.expandedCardIndex = index$1;
|
|
496
|
+
this.isInteralCardsExpanded = [false, false, false, false, false];
|
|
497
|
+
this.isInteralCardsExpanded[index$1] = true;
|
|
498
|
+
} }, card)))),
|
|
499
|
+
index.h("div", { class: "pagination desktop-pagination" }, deskTCards.map((_, index$1) => (index.h("div", { class: {
|
|
500
|
+
'pagination-dot': true,
|
|
501
|
+
'active': index$1 === this.expandedCardIndex,
|
|
502
|
+
}, onClick: () => {
|
|
503
|
+
this.expandedCardIndex = index$1;
|
|
504
|
+
this.isInteralCardsExpanded = [false, false, false, false, false];
|
|
505
|
+
this.isInteralCardsExpanded[index$1] = true;
|
|
506
|
+
} })))),
|
|
507
|
+
index.h("div", { hidden: true }, index.h("svg", null, index.h("use", { href: `${this.dotSvg}` }))),
|
|
508
|
+
])));
|
|
509
|
+
}
|
|
510
|
+
updateIsMobile() {
|
|
511
|
+
// console.log("Checking isMobile...")
|
|
512
|
+
this.isMobile = window.innerWidth < 1200;
|
|
513
|
+
}
|
|
514
|
+
get el() { return index.getElement(this); }
|
|
515
|
+
static get watchers() { return {
|
|
516
|
+
"isMobile": ["watchStateHandler"]
|
|
517
|
+
}; }
|
|
518
|
+
};
|
|
519
|
+
SequentialBundleExample.style = sequentialBundleExampleCss;
|
|
520
|
+
|
|
521
|
+
exports.ptc_button = PtcButton;
|
|
522
|
+
exports.ptc_card_content = PtcCardContent;
|
|
523
|
+
exports.ptc_dynamic_card = PtcDynamicCard;
|
|
524
|
+
exports.ptc_overlay = PtcOverlay;
|
|
525
|
+
exports.ptc_para = PtcPara;
|
|
526
|
+
exports.ptc_picture = PtcPicture;
|
|
527
|
+
exports.ptc_spacer = PtcSpacer;
|
|
528
|
+
exports.sequential_bundle_example = SequentialBundleExample;
|