@ptcwebops/ptcw-design 6.2.14 → 6.2.15
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/{component-35540bfb.js → component-06dda623.js} +1 -1
- package/dist/cjs/{component-1b8ad4d2.js → component-5b5b6a98.js} +1 -1
- package/dist/cjs/event-jumbotron-example_15.cjs.entry.js +1382 -0
- package/dist/cjs/event-podcast-slider-example.cjs.entry.js +61 -0
- package/dist/cjs/featured-events-slider-example.cjs.entry.js +2 -387
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/mousewheel-e9520f0f.js +391 -0
- package/dist/cjs/ptc-card-bottom.cjs.entry.js +67 -0
- package/dist/cjs/ptc-data-lookup.cjs.entry.js +2 -2
- package/dist/cjs/ptc-form-checkbox_2.cjs.entry.js +1 -1
- package/dist/cjs/ptc-multi-select_2.cjs.entry.js +2 -2
- package/dist/cjs/ptcw-design.cjs.js +1 -1
- package/dist/collection/collection-manifest.json +1 -0
- package/dist/collection/components/organism-bundles/event-jumbotron-example/event-jumbotron-example.css +31 -17
- package/dist/collection/components/organism-bundles/event-jumbotron-example/event-jumbotron-example.js +48 -8
- package/dist/collection/components/organism-bundles/event-podcast-slider-example/event-podcast-slider-example.css +1222 -0
- package/dist/collection/components/organism-bundles/event-podcast-slider-example/event-podcast-slider-example.js +80 -0
- package/dist/collection/components/ptc-card-bottom/ptc-card-bottom.js +65 -2
- package/dist/collection/components/ptc-card-content/ptc-card-content.js +10 -2
- package/dist/collection/components/ptc-card-wrapper/ptc-card-wrapper.css +13 -0
- package/dist/collection/components/ptc-card-wrapper/ptc-card-wrapper.js +22 -2
- package/dist/collection/components/ptc-link/ptc-link.css +5 -0
- package/dist/collection/components/ptc-modal/ptc-modal.css +62 -0
- package/dist/collection/components/ptc-modal/ptc-modal.js +79 -2
- package/dist/collection/components/ptc-scroll-button/ptc-scroll-button.js +94 -3
- package/dist/custom-elements/index.d.ts +6 -0
- package/dist/custom-elements/index.js +185 -21
- package/dist/esm/blog-detail-content_2.entry.js +1 -1
- package/dist/esm/blog-detail-layout.entry.js +1 -1
- package/dist/esm/blogs-search-section.entry.js +1 -1
- package/dist/esm/{component-8c53e377.js → component-274da230.js} +1 -1
- package/dist/esm/{component-9beac35b.js → component-341e4eaa.js} +1 -1
- package/dist/esm/event-jumbotron-example_15.entry.js +1364 -0
- package/dist/esm/event-podcast-slider-example.entry.js +57 -0
- package/dist/esm/featured-events-slider-example.entry.js +2 -387
- package/dist/esm/homepage-jumbotron.entry.js +1 -1
- package/dist/esm/homepage-toggled-content.entry.js +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/esm/most-popular-news.entry.js +1 -1
- package/dist/esm/mousewheel-6b2f6590.js +389 -0
- package/dist/esm/my-component.entry.js +1 -1
- package/dist/esm/ptc-accordion-item.entry.js +1 -1
- package/dist/esm/ptc-background-video.entry.js +1 -1
- package/dist/esm/ptc-card-bottom.entry.js +63 -0
- package/dist/esm/ptc-collapse-list.entry.js +1 -1
- package/dist/esm/ptc-data-lookup.entry.js +2 -2
- package/dist/esm/ptc-form-checkbox_2.entry.js +2 -2
- package/dist/esm/ptc-homepage-image-feature.entry.js +1 -1
- package/dist/esm/ptc-homepage-video-background.entry.js +1 -1
- package/dist/esm/ptc-media-card.entry.js +1 -1
- package/dist/esm/ptc-multi-select_2.entry.js +3 -3
- package/dist/esm/ptc-pricing-packaging-table.entry.js +1 -1
- package/dist/esm/ptc-pricing-tabs.entry.js +1 -1
- package/dist/esm/ptcw-design.js +1 -1
- package/dist/esm/{utils-1bbe0c30.js → utils-b7c6422e.js} +1 -1
- package/dist/ptcw-design/{p-dee4bb6c.entry.js → p-103ec637.entry.js} +1 -1
- package/dist/ptcw-design/{p-5dae4f30.entry.js → p-1ca8a5bf.entry.js} +1 -1
- package/dist/ptcw-design/{p-717d3a75.entry.js → p-2335d57c.entry.js} +1 -1
- package/dist/ptcw-design/p-246df0d6.entry.js +1 -0
- package/dist/ptcw-design/{p-4036055e.entry.js → p-29639cd4.entry.js} +1 -1
- package/dist/ptcw-design/p-2db141e6.entry.js +1 -0
- package/dist/ptcw-design/{p-873c711b.entry.js → p-34610052.entry.js} +1 -1
- package/dist/ptcw-design/{p-b4564411.entry.js → p-34b270c1.entry.js} +1 -1
- package/dist/ptcw-design/p-36cb30ee.js +1 -0
- package/dist/ptcw-design/{p-56a4c6d4.entry.js → p-4c096997.entry.js} +1 -1
- package/dist/ptcw-design/{p-990bcbc4.entry.js → p-52b82ac5.entry.js} +1 -1
- package/dist/ptcw-design/p-6e8ed2ee.entry.js +1 -0
- package/dist/ptcw-design/{p-4fc9c83b.entry.js → p-760507e1.entry.js} +1 -1
- package/dist/ptcw-design/{p-deebd138.entry.js → p-7e7ebf0a.entry.js} +1 -1
- package/dist/ptcw-design/{p-ad87bdab.js → p-841b807d.js} +1 -1
- package/dist/ptcw-design/{p-0b8a73e1.entry.js → p-863b5b20.entry.js} +1 -1
- package/dist/ptcw-design/{p-65f19054.entry.js → p-999d1c9f.entry.js} +1 -1
- package/dist/ptcw-design/p-9fe0c27d.entry.js +1 -0
- package/dist/ptcw-design/{p-98844b50.js → p-be533f0d.js} +1 -1
- package/dist/ptcw-design/{p-e614999d.entry.js → p-c1ebaf0f.entry.js} +1 -1
- package/dist/ptcw-design/{p-f07e64f2.entry.js → p-cffebefe.entry.js} +1 -1
- package/dist/ptcw-design/{p-53f49500.entry.js → p-df8526a2.entry.js} +1 -1
- package/dist/ptcw-design/{p-2ac7e3ce.entry.js → p-e38ed0e3.entry.js} +1 -1
- package/dist/ptcw-design/{p-942850e0.entry.js → p-eab1042e.entry.js} +1 -1
- package/dist/ptcw-design/{p-2a672c0e.entry.js → p-f05fec22.entry.js} +1 -1
- package/dist/ptcw-design/ptcw-design.esm.js +1 -1
- package/dist/types/components/organism-bundles/event-jumbotron-example/event-jumbotron-example.d.ts +5 -3
- package/dist/types/components/organism-bundles/event-podcast-slider-example/event-podcast-slider-example.d.ts +11 -0
- package/dist/types/components/ptc-card-bottom/ptc-card-bottom.d.ts +3 -1
- package/dist/types/components/ptc-card-content/ptc-card-content.d.ts +1 -1
- package/dist/types/components/ptc-card-wrapper/ptc-card-wrapper.d.ts +3 -1
- package/dist/types/components/ptc-modal/ptc-modal.d.ts +4 -0
- package/dist/types/components/ptc-scroll-button/ptc-scroll-button.d.ts +12 -0
- package/dist/types/components.d.ts +48 -6
- package/package.json +1 -1
- package/readme.md +1 -1
- package/dist/cjs/event-jumbotron-example.cjs.entry.js +0 -127
- package/dist/cjs/icon-asset.cjs.entry.js +0 -65
- package/dist/cjs/list-item.cjs.entry.js +0 -48
- package/dist/cjs/ptc-breadcrumb.cjs.entry.js +0 -47
- package/dist/cjs/ptc-button.cjs.entry.js +0 -84
- package/dist/cjs/ptc-card-bottom_2.cjs.entry.js +0 -132
- package/dist/cjs/ptc-card-content.cjs.entry.js +0 -68
- package/dist/cjs/ptc-close-icon_2.cjs.entry.js +0 -213
- package/dist/cjs/ptc-img.cjs.entry.js +0 -133
- package/dist/cjs/ptc-link.cjs.entry.js +0 -95
- package/dist/cjs/ptc-para.cjs.entry.js +0 -127
- package/dist/cjs/ptc-scroll-button.cjs.entry.js +0 -84
- package/dist/cjs/ptc-spacer.cjs.entry.js +0 -38
- package/dist/cjs/ptc-title.cjs.entry.js +0 -152
- package/dist/esm/event-jumbotron-example.entry.js +0 -123
- package/dist/esm/icon-asset.entry.js +0 -61
- package/dist/esm/list-item.entry.js +0 -44
- package/dist/esm/ptc-breadcrumb.entry.js +0 -43
- package/dist/esm/ptc-button.entry.js +0 -80
- package/dist/esm/ptc-card-bottom_2.entry.js +0 -127
- package/dist/esm/ptc-card-content.entry.js +0 -64
- package/dist/esm/ptc-close-icon_2.entry.js +0 -208
- package/dist/esm/ptc-img.entry.js +0 -129
- package/dist/esm/ptc-link.entry.js +0 -91
- package/dist/esm/ptc-para.entry.js +0 -123
- package/dist/esm/ptc-scroll-button.entry.js +0 -80
- package/dist/esm/ptc-spacer.entry.js +0 -34
- package/dist/esm/ptc-title.entry.js +0 -148
- package/dist/ptcw-design/p-0c69ea52.entry.js +0 -1
- package/dist/ptcw-design/p-158f6d50.entry.js +0 -1
- package/dist/ptcw-design/p-25a25451.entry.js +0 -1
- package/dist/ptcw-design/p-2cfcba27.entry.js +0 -1
- package/dist/ptcw-design/p-2e19248b.entry.js +0 -1
- package/dist/ptcw-design/p-5d885144.entry.js +0 -1
- package/dist/ptcw-design/p-7793babb.entry.js +0 -1
- package/dist/ptcw-design/p-9e9ae28c.entry.js +0 -1
- package/dist/ptcw-design/p-a870cd4a.entry.js +0 -1
- package/dist/ptcw-design/p-b35ad9ee.entry.js +0 -1
- package/dist/ptcw-design/p-b3bbd17d.entry.js +0 -1
- package/dist/ptcw-design/p-b6e5379a.entry.js +0 -1
- package/dist/ptcw-design/p-b8ee8699.entry.js +0 -1
- package/dist/ptcw-design/p-bb15d7e5.entry.js +0 -1
- package/dist/ptcw-design/p-fcad5568.entry.js +0 -1
- /package/dist/ptcw-design/{p-98426799.js → p-c1513c3f.js} +0 -0
|
@@ -0,0 +1,389 @@
|
|
|
1
|
+
import { g as getWindow, n as nextTick, a as now } from './core-9dcd68aa.js';
|
|
2
|
+
|
|
3
|
+
/* eslint-disable consistent-return */
|
|
4
|
+
function Mousewheel({
|
|
5
|
+
swiper,
|
|
6
|
+
extendParams,
|
|
7
|
+
on,
|
|
8
|
+
emit
|
|
9
|
+
}) {
|
|
10
|
+
const window = getWindow();
|
|
11
|
+
extendParams({
|
|
12
|
+
mousewheel: {
|
|
13
|
+
enabled: false,
|
|
14
|
+
releaseOnEdges: false,
|
|
15
|
+
invert: false,
|
|
16
|
+
forceToAxis: false,
|
|
17
|
+
sensitivity: 1,
|
|
18
|
+
eventsTarget: 'container',
|
|
19
|
+
thresholdDelta: null,
|
|
20
|
+
thresholdTime: null,
|
|
21
|
+
noMousewheelClass: 'swiper-no-mousewheel'
|
|
22
|
+
}
|
|
23
|
+
});
|
|
24
|
+
swiper.mousewheel = {
|
|
25
|
+
enabled: false
|
|
26
|
+
};
|
|
27
|
+
let timeout;
|
|
28
|
+
let lastScrollTime = now();
|
|
29
|
+
let lastEventBeforeSnap;
|
|
30
|
+
const recentWheelEvents = [];
|
|
31
|
+
function normalize(e) {
|
|
32
|
+
// Reasonable defaults
|
|
33
|
+
const PIXEL_STEP = 10;
|
|
34
|
+
const LINE_HEIGHT = 40;
|
|
35
|
+
const PAGE_HEIGHT = 800;
|
|
36
|
+
let sX = 0;
|
|
37
|
+
let sY = 0; // spinX, spinY
|
|
38
|
+
let pX = 0;
|
|
39
|
+
let pY = 0; // pixelX, pixelY
|
|
40
|
+
|
|
41
|
+
// Legacy
|
|
42
|
+
if ('detail' in e) {
|
|
43
|
+
sY = e.detail;
|
|
44
|
+
}
|
|
45
|
+
if ('wheelDelta' in e) {
|
|
46
|
+
sY = -e.wheelDelta / 120;
|
|
47
|
+
}
|
|
48
|
+
if ('wheelDeltaY' in e) {
|
|
49
|
+
sY = -e.wheelDeltaY / 120;
|
|
50
|
+
}
|
|
51
|
+
if ('wheelDeltaX' in e) {
|
|
52
|
+
sX = -e.wheelDeltaX / 120;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
// side scrolling on FF with DOMMouseScroll
|
|
56
|
+
if ('axis' in e && e.axis === e.HORIZONTAL_AXIS) {
|
|
57
|
+
sX = sY;
|
|
58
|
+
sY = 0;
|
|
59
|
+
}
|
|
60
|
+
pX = sX * PIXEL_STEP;
|
|
61
|
+
pY = sY * PIXEL_STEP;
|
|
62
|
+
if ('deltaY' in e) {
|
|
63
|
+
pY = e.deltaY;
|
|
64
|
+
}
|
|
65
|
+
if ('deltaX' in e) {
|
|
66
|
+
pX = e.deltaX;
|
|
67
|
+
}
|
|
68
|
+
if (e.shiftKey && !pX) {
|
|
69
|
+
// if user scrolls with shift he wants horizontal scroll
|
|
70
|
+
pX = pY;
|
|
71
|
+
pY = 0;
|
|
72
|
+
}
|
|
73
|
+
if ((pX || pY) && e.deltaMode) {
|
|
74
|
+
if (e.deltaMode === 1) {
|
|
75
|
+
// delta in LINE units
|
|
76
|
+
pX *= LINE_HEIGHT;
|
|
77
|
+
pY *= LINE_HEIGHT;
|
|
78
|
+
} else {
|
|
79
|
+
// delta in PAGE units
|
|
80
|
+
pX *= PAGE_HEIGHT;
|
|
81
|
+
pY *= PAGE_HEIGHT;
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
// Fall-back if spin cannot be determined
|
|
86
|
+
if (pX && !sX) {
|
|
87
|
+
sX = pX < 1 ? -1 : 1;
|
|
88
|
+
}
|
|
89
|
+
if (pY && !sY) {
|
|
90
|
+
sY = pY < 1 ? -1 : 1;
|
|
91
|
+
}
|
|
92
|
+
return {
|
|
93
|
+
spinX: sX,
|
|
94
|
+
spinY: sY,
|
|
95
|
+
pixelX: pX,
|
|
96
|
+
pixelY: pY
|
|
97
|
+
};
|
|
98
|
+
}
|
|
99
|
+
function handleMouseEnter() {
|
|
100
|
+
if (!swiper.enabled) return;
|
|
101
|
+
swiper.mouseEntered = true;
|
|
102
|
+
}
|
|
103
|
+
function handleMouseLeave() {
|
|
104
|
+
if (!swiper.enabled) return;
|
|
105
|
+
swiper.mouseEntered = false;
|
|
106
|
+
}
|
|
107
|
+
function animateSlider(newEvent) {
|
|
108
|
+
if (swiper.params.mousewheel.thresholdDelta && newEvent.delta < swiper.params.mousewheel.thresholdDelta) {
|
|
109
|
+
// Prevent if delta of wheel scroll delta is below configured threshold
|
|
110
|
+
return false;
|
|
111
|
+
}
|
|
112
|
+
if (swiper.params.mousewheel.thresholdTime && now() - lastScrollTime < swiper.params.mousewheel.thresholdTime) {
|
|
113
|
+
// Prevent if time between scrolls is below configured threshold
|
|
114
|
+
return false;
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
// If the movement is NOT big enough and
|
|
118
|
+
// if the last time the user scrolled was too close to the current one (avoid continuously triggering the slider):
|
|
119
|
+
// Don't go any further (avoid insignificant scroll movement).
|
|
120
|
+
if (newEvent.delta >= 6 && now() - lastScrollTime < 60) {
|
|
121
|
+
// Return false as a default
|
|
122
|
+
return true;
|
|
123
|
+
}
|
|
124
|
+
// If user is scrolling towards the end:
|
|
125
|
+
// If the slider hasn't hit the latest slide or
|
|
126
|
+
// if the slider is a loop and
|
|
127
|
+
// if the slider isn't moving right now:
|
|
128
|
+
// Go to next slide and
|
|
129
|
+
// emit a scroll event.
|
|
130
|
+
// Else (the user is scrolling towards the beginning) and
|
|
131
|
+
// if the slider hasn't hit the first slide or
|
|
132
|
+
// if the slider is a loop and
|
|
133
|
+
// if the slider isn't moving right now:
|
|
134
|
+
// Go to prev slide and
|
|
135
|
+
// emit a scroll event.
|
|
136
|
+
if (newEvent.direction < 0) {
|
|
137
|
+
if ((!swiper.isEnd || swiper.params.loop) && !swiper.animating) {
|
|
138
|
+
swiper.slideNext();
|
|
139
|
+
emit('scroll', newEvent.raw);
|
|
140
|
+
}
|
|
141
|
+
} else if ((!swiper.isBeginning || swiper.params.loop) && !swiper.animating) {
|
|
142
|
+
swiper.slidePrev();
|
|
143
|
+
emit('scroll', newEvent.raw);
|
|
144
|
+
}
|
|
145
|
+
// If you got here is because an animation has been triggered so store the current time
|
|
146
|
+
lastScrollTime = new window.Date().getTime();
|
|
147
|
+
// Return false as a default
|
|
148
|
+
return false;
|
|
149
|
+
}
|
|
150
|
+
function releaseScroll(newEvent) {
|
|
151
|
+
const params = swiper.params.mousewheel;
|
|
152
|
+
if (newEvent.direction < 0) {
|
|
153
|
+
if (swiper.isEnd && !swiper.params.loop && params.releaseOnEdges) {
|
|
154
|
+
// Return true to animate scroll on edges
|
|
155
|
+
return true;
|
|
156
|
+
}
|
|
157
|
+
} else if (swiper.isBeginning && !swiper.params.loop && params.releaseOnEdges) {
|
|
158
|
+
// Return true to animate scroll on edges
|
|
159
|
+
return true;
|
|
160
|
+
}
|
|
161
|
+
return false;
|
|
162
|
+
}
|
|
163
|
+
function handle(event) {
|
|
164
|
+
let e = event;
|
|
165
|
+
let disableParentSwiper = true;
|
|
166
|
+
if (!swiper.enabled) return;
|
|
167
|
+
|
|
168
|
+
// Ignore event if the target or its parents have the swiper-no-mousewheel class
|
|
169
|
+
if (event.target.closest(`.${swiper.params.mousewheel.noMousewheelClass}`)) return;
|
|
170
|
+
const params = swiper.params.mousewheel;
|
|
171
|
+
if (swiper.params.cssMode) {
|
|
172
|
+
e.preventDefault();
|
|
173
|
+
}
|
|
174
|
+
let targetEl = swiper.el;
|
|
175
|
+
if (swiper.params.mousewheel.eventsTarget !== 'container') {
|
|
176
|
+
targetEl = document.querySelector(swiper.params.mousewheel.eventsTarget);
|
|
177
|
+
}
|
|
178
|
+
const targetElContainsTarget = targetEl && targetEl.contains(e.target);
|
|
179
|
+
if (!swiper.mouseEntered && !targetElContainsTarget && !params.releaseOnEdges) return true;
|
|
180
|
+
if (e.originalEvent) e = e.originalEvent; // jquery fix
|
|
181
|
+
let delta = 0;
|
|
182
|
+
const rtlFactor = swiper.rtlTranslate ? -1 : 1;
|
|
183
|
+
const data = normalize(e);
|
|
184
|
+
if (params.forceToAxis) {
|
|
185
|
+
if (swiper.isHorizontal()) {
|
|
186
|
+
if (Math.abs(data.pixelX) > Math.abs(data.pixelY)) delta = -data.pixelX * rtlFactor;else return true;
|
|
187
|
+
} else if (Math.abs(data.pixelY) > Math.abs(data.pixelX)) delta = -data.pixelY;else return true;
|
|
188
|
+
} else {
|
|
189
|
+
delta = Math.abs(data.pixelX) > Math.abs(data.pixelY) ? -data.pixelX * rtlFactor : -data.pixelY;
|
|
190
|
+
}
|
|
191
|
+
if (delta === 0) return true;
|
|
192
|
+
if (params.invert) delta = -delta;
|
|
193
|
+
|
|
194
|
+
// Get the scroll positions
|
|
195
|
+
let positions = swiper.getTranslate() + delta * params.sensitivity;
|
|
196
|
+
if (positions >= swiper.minTranslate()) positions = swiper.minTranslate();
|
|
197
|
+
if (positions <= swiper.maxTranslate()) positions = swiper.maxTranslate();
|
|
198
|
+
|
|
199
|
+
// When loop is true:
|
|
200
|
+
// the disableParentSwiper will be true.
|
|
201
|
+
// When loop is false:
|
|
202
|
+
// if the scroll positions is not on edge,
|
|
203
|
+
// then the disableParentSwiper will be true.
|
|
204
|
+
// if the scroll on edge positions,
|
|
205
|
+
// then the disableParentSwiper will be false.
|
|
206
|
+
disableParentSwiper = swiper.params.loop ? true : !(positions === swiper.minTranslate() || positions === swiper.maxTranslate());
|
|
207
|
+
if (disableParentSwiper && swiper.params.nested) e.stopPropagation();
|
|
208
|
+
if (!swiper.params.freeMode || !swiper.params.freeMode.enabled) {
|
|
209
|
+
// Register the new event in a variable which stores the relevant data
|
|
210
|
+
const newEvent = {
|
|
211
|
+
time: now(),
|
|
212
|
+
delta: Math.abs(delta),
|
|
213
|
+
direction: Math.sign(delta),
|
|
214
|
+
raw: event
|
|
215
|
+
};
|
|
216
|
+
|
|
217
|
+
// Keep the most recent events
|
|
218
|
+
if (recentWheelEvents.length >= 2) {
|
|
219
|
+
recentWheelEvents.shift(); // only store the last N events
|
|
220
|
+
}
|
|
221
|
+
|
|
222
|
+
const prevEvent = recentWheelEvents.length ? recentWheelEvents[recentWheelEvents.length - 1] : undefined;
|
|
223
|
+
recentWheelEvents.push(newEvent);
|
|
224
|
+
|
|
225
|
+
// If there is at least one previous recorded event:
|
|
226
|
+
// If direction has changed or
|
|
227
|
+
// if the scroll is quicker than the previous one:
|
|
228
|
+
// Animate the slider.
|
|
229
|
+
// Else (this is the first time the wheel is moved):
|
|
230
|
+
// Animate the slider.
|
|
231
|
+
if (prevEvent) {
|
|
232
|
+
if (newEvent.direction !== prevEvent.direction || newEvent.delta > prevEvent.delta || newEvent.time > prevEvent.time + 150) {
|
|
233
|
+
animateSlider(newEvent);
|
|
234
|
+
}
|
|
235
|
+
} else {
|
|
236
|
+
animateSlider(newEvent);
|
|
237
|
+
}
|
|
238
|
+
|
|
239
|
+
// If it's time to release the scroll:
|
|
240
|
+
// Return now so you don't hit the preventDefault.
|
|
241
|
+
if (releaseScroll(newEvent)) {
|
|
242
|
+
return true;
|
|
243
|
+
}
|
|
244
|
+
} else {
|
|
245
|
+
// Freemode or scrollContainer:
|
|
246
|
+
|
|
247
|
+
// If we recently snapped after a momentum scroll, then ignore wheel events
|
|
248
|
+
// to give time for the deceleration to finish. Stop ignoring after 500 msecs
|
|
249
|
+
// or if it's a new scroll (larger delta or inverse sign as last event before
|
|
250
|
+
// an end-of-momentum snap).
|
|
251
|
+
const newEvent = {
|
|
252
|
+
time: now(),
|
|
253
|
+
delta: Math.abs(delta),
|
|
254
|
+
direction: Math.sign(delta)
|
|
255
|
+
};
|
|
256
|
+
const ignoreWheelEvents = lastEventBeforeSnap && newEvent.time < lastEventBeforeSnap.time + 500 && newEvent.delta <= lastEventBeforeSnap.delta && newEvent.direction === lastEventBeforeSnap.direction;
|
|
257
|
+
if (!ignoreWheelEvents) {
|
|
258
|
+
lastEventBeforeSnap = undefined;
|
|
259
|
+
let position = swiper.getTranslate() + delta * params.sensitivity;
|
|
260
|
+
const wasBeginning = swiper.isBeginning;
|
|
261
|
+
const wasEnd = swiper.isEnd;
|
|
262
|
+
if (position >= swiper.minTranslate()) position = swiper.minTranslate();
|
|
263
|
+
if (position <= swiper.maxTranslate()) position = swiper.maxTranslate();
|
|
264
|
+
swiper.setTransition(0);
|
|
265
|
+
swiper.setTranslate(position);
|
|
266
|
+
swiper.updateProgress();
|
|
267
|
+
swiper.updateActiveIndex();
|
|
268
|
+
swiper.updateSlidesClasses();
|
|
269
|
+
if (!wasBeginning && swiper.isBeginning || !wasEnd && swiper.isEnd) {
|
|
270
|
+
swiper.updateSlidesClasses();
|
|
271
|
+
}
|
|
272
|
+
if (swiper.params.loop) {
|
|
273
|
+
swiper.loopFix({
|
|
274
|
+
direction: newEvent.direction < 0 ? 'next' : 'prev',
|
|
275
|
+
byMousewheel: true
|
|
276
|
+
});
|
|
277
|
+
}
|
|
278
|
+
if (swiper.params.freeMode.sticky) {
|
|
279
|
+
// When wheel scrolling starts with sticky (aka snap) enabled, then detect
|
|
280
|
+
// the end of a momentum scroll by storing recent (N=15?) wheel events.
|
|
281
|
+
// 1. do all N events have decreasing or same (absolute value) delta?
|
|
282
|
+
// 2. did all N events arrive in the last M (M=500?) msecs?
|
|
283
|
+
// 3. does the earliest event have an (absolute value) delta that's
|
|
284
|
+
// at least P (P=1?) larger than the most recent event's delta?
|
|
285
|
+
// 4. does the latest event have a delta that's smaller than Q (Q=6?) pixels?
|
|
286
|
+
// If 1-4 are "yes" then we're near the end of a momentum scroll deceleration.
|
|
287
|
+
// Snap immediately and ignore remaining wheel events in this scroll.
|
|
288
|
+
// See comment above for "remaining wheel events in this scroll" determination.
|
|
289
|
+
// If 1-4 aren't satisfied, then wait to snap until 500ms after the last event.
|
|
290
|
+
clearTimeout(timeout);
|
|
291
|
+
timeout = undefined;
|
|
292
|
+
if (recentWheelEvents.length >= 15) {
|
|
293
|
+
recentWheelEvents.shift(); // only store the last N events
|
|
294
|
+
}
|
|
295
|
+
|
|
296
|
+
const prevEvent = recentWheelEvents.length ? recentWheelEvents[recentWheelEvents.length - 1] : undefined;
|
|
297
|
+
const firstEvent = recentWheelEvents[0];
|
|
298
|
+
recentWheelEvents.push(newEvent);
|
|
299
|
+
if (prevEvent && (newEvent.delta > prevEvent.delta || newEvent.direction !== prevEvent.direction)) {
|
|
300
|
+
// Increasing or reverse-sign delta means the user started scrolling again. Clear the wheel event log.
|
|
301
|
+
recentWheelEvents.splice(0);
|
|
302
|
+
} else if (recentWheelEvents.length >= 15 && newEvent.time - firstEvent.time < 500 && firstEvent.delta - newEvent.delta >= 1 && newEvent.delta <= 6) {
|
|
303
|
+
// We're at the end of the deceleration of a momentum scroll, so there's no need
|
|
304
|
+
// to wait for more events. Snap ASAP on the next tick.
|
|
305
|
+
// Also, because there's some remaining momentum we'll bias the snap in the
|
|
306
|
+
// direction of the ongoing scroll because it's better UX for the scroll to snap
|
|
307
|
+
// in the same direction as the scroll instead of reversing to snap. Therefore,
|
|
308
|
+
// if it's already scrolled more than 20% in the current direction, keep going.
|
|
309
|
+
const snapToThreshold = delta > 0 ? 0.8 : 0.2;
|
|
310
|
+
lastEventBeforeSnap = newEvent;
|
|
311
|
+
recentWheelEvents.splice(0);
|
|
312
|
+
timeout = nextTick(() => {
|
|
313
|
+
swiper.slideToClosest(swiper.params.speed, true, undefined, snapToThreshold);
|
|
314
|
+
}, 0); // no delay; move on next tick
|
|
315
|
+
}
|
|
316
|
+
|
|
317
|
+
if (!timeout) {
|
|
318
|
+
// if we get here, then we haven't detected the end of a momentum scroll, so
|
|
319
|
+
// we'll consider a scroll "complete" when there haven't been any wheel events
|
|
320
|
+
// for 500ms.
|
|
321
|
+
timeout = nextTick(() => {
|
|
322
|
+
const snapToThreshold = 0.5;
|
|
323
|
+
lastEventBeforeSnap = newEvent;
|
|
324
|
+
recentWheelEvents.splice(0);
|
|
325
|
+
swiper.slideToClosest(swiper.params.speed, true, undefined, snapToThreshold);
|
|
326
|
+
}, 500);
|
|
327
|
+
}
|
|
328
|
+
}
|
|
329
|
+
|
|
330
|
+
// Emit event
|
|
331
|
+
if (!ignoreWheelEvents) emit('scroll', e);
|
|
332
|
+
|
|
333
|
+
// Stop autoplay
|
|
334
|
+
if (swiper.params.autoplay && swiper.params.autoplayDisableOnInteraction) swiper.autoplay.stop();
|
|
335
|
+
// Return page scroll on edge positions
|
|
336
|
+
if (position === swiper.minTranslate() || position === swiper.maxTranslate()) return true;
|
|
337
|
+
}
|
|
338
|
+
}
|
|
339
|
+
if (e.preventDefault) e.preventDefault();else e.returnValue = false;
|
|
340
|
+
return false;
|
|
341
|
+
}
|
|
342
|
+
function events(method) {
|
|
343
|
+
let targetEl = swiper.el;
|
|
344
|
+
if (swiper.params.mousewheel.eventsTarget !== 'container') {
|
|
345
|
+
targetEl = document.querySelector(swiper.params.mousewheel.eventsTarget);
|
|
346
|
+
}
|
|
347
|
+
targetEl[method]('mouseenter', handleMouseEnter);
|
|
348
|
+
targetEl[method]('mouseleave', handleMouseLeave);
|
|
349
|
+
targetEl[method]('wheel', handle);
|
|
350
|
+
}
|
|
351
|
+
function enable() {
|
|
352
|
+
if (swiper.params.cssMode) {
|
|
353
|
+
swiper.wrapperEl.removeEventListener('wheel', handle);
|
|
354
|
+
return true;
|
|
355
|
+
}
|
|
356
|
+
if (swiper.mousewheel.enabled) return false;
|
|
357
|
+
events('addEventListener');
|
|
358
|
+
swiper.mousewheel.enabled = true;
|
|
359
|
+
return true;
|
|
360
|
+
}
|
|
361
|
+
function disable() {
|
|
362
|
+
if (swiper.params.cssMode) {
|
|
363
|
+
swiper.wrapperEl.addEventListener(event, handle);
|
|
364
|
+
return true;
|
|
365
|
+
}
|
|
366
|
+
if (!swiper.mousewheel.enabled) return false;
|
|
367
|
+
events('removeEventListener');
|
|
368
|
+
swiper.mousewheel.enabled = false;
|
|
369
|
+
return true;
|
|
370
|
+
}
|
|
371
|
+
on('init', () => {
|
|
372
|
+
if (!swiper.params.mousewheel.enabled && swiper.params.cssMode) {
|
|
373
|
+
disable();
|
|
374
|
+
}
|
|
375
|
+
if (swiper.params.mousewheel.enabled) enable();
|
|
376
|
+
});
|
|
377
|
+
on('destroy', () => {
|
|
378
|
+
if (swiper.params.cssMode) {
|
|
379
|
+
enable();
|
|
380
|
+
}
|
|
381
|
+
if (swiper.mousewheel.enabled) disable();
|
|
382
|
+
});
|
|
383
|
+
Object.assign(swiper.mousewheel, {
|
|
384
|
+
enable,
|
|
385
|
+
disable
|
|
386
|
+
});
|
|
387
|
+
}
|
|
388
|
+
|
|
389
|
+
export { Mousewheel as M };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-c83db688.js';
|
|
2
|
-
import { i as isHiddenUntilSupported } from './utils-
|
|
2
|
+
import { i as isHiddenUntilSupported } from './utils-b7c6422e.js';
|
|
3
3
|
|
|
4
4
|
const hasSlot = (parentEl, slotName) => {
|
|
5
5
|
return !!parentEl.querySelector(':scope > [slot="' + slotName + '"'); // cast boolean
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { r as registerInstance, h, H as Host, g as getElement } from './index-c83db688.js';
|
|
2
|
-
import { n as nextUserInteractionEvent } from './utils-
|
|
2
|
+
import { n as nextUserInteractionEvent } from './utils-b7c6422e.js';
|
|
3
3
|
|
|
4
4
|
const ptcBackgroundVideoCss = "h1,h2,h3,h4,h5,h6,p,ul,li,ptc-subnav,ptc-tab-list,ptc-link,ptc-square-card,.hyphenate-text,ptc-footer{word-break:break-word;hyphens:manual;-webkit-hyphens:manual;-moz-hyphens:manual;-ms-hyphens:manual}@supports (hyphenate-limit-chars: 12 3 3){h1,h2,h3,h4,h5,h6,p,ul,li,ptc-subnav,ptc-tab-list,ptc-link,ptc-square-card,.hyphenate-text,ptc-footer{hyphens:auto;-webkit-hyphenate-limit-before:3;-webkit-hyphenate-limit-after:3;hyphenate-limit-chars:12 3 3;hyphenate-limit-lines:2;hyphenate-limit-last:always;hyphenate-limit-zone:6%;-webkit-hyphens:auto;-webkit-hyphenate-limit-before:3;-webkit-hyphenate-limit-after:3;-webkit-hyphenate-limit-chars:12 3 3;-webkit-hyphenate-limit-lines:2;-moz-hyphens:auto;-moz-hyphenate-limit-chars:12 3 3;-moz-hyphenate-limit-lines:2;-ms-hyphens:auto;-ms-hyphenate-limit-chars:12 3 3;-ms-hyphenate-limit-lines:2}}:host{display:block;position:relative}:host video{position:absolute;top:0px;left:0px;right:0;width:100%;height:100%;overflow:hidden;pointer-events:none;z-index:-100;object-fit:cover}:host .video-overlay{z-index:1;display:block;position:absolute;width:100%;height:100%;top:0;left:0;opacity:0.8;background-image:linear-gradient(270deg, rgba(30, 38, 38, 0) 26%, #1e2626)}:host .video-overlay.dark{background-color:rgba(0, 0, 0, 0.6)}:host(.legacy){display:block;position:absolute;top:0px;left:0px;right:0;width:100%;height:100%;overflow:hidden;pointer-events:none;z-index:-100}:host(.legacy) video{object-fit:cover;position:absolute;top:0px;left:0px;right:0;width:100%;height:100%;overflow:hidden}:host .iframe-wrapper{position:absolute;top:0px;left:0px;right:0;width:100%;height:100%;overflow:hidden;pointer-events:none;z-index:-100}:host .iframe-wrapper .background-video-embed{position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);width:100%;height:100%}:host .iframe-wrapper .player .vp-video-wrapper .vp-telecine-cover video{object-fit:cover}:host .play-button{position:absolute;top:1.5rem;right:1.5rem;width:34px;height:34px;z-index:99}@media (min-width: 768px){:host .play-button.top-right{top:2rem;right:2rem}}:host .play-button.top-left{right:unset;top:1.5rem;left:1.5rem}@media (min-width: 768px){:host .play-button.top-left{bottom:3.75rem;left:2rem}}@media (min-width: 768px){:host .play-button.bottom-left{top:unset;right:unset;bottom:3.75rem;left:2rem}}@media (min-width: 768px){:host .play-button.bottom-right{top:unset;bottom:3.75rem;right:2rem}}:host .play-button.allbp-bottom-right{top:unset;bottom:4.75rem;right:2rem}:host .play-button button{display:inline-block;padding:5px;position:relative;top:-5px;left:-5px;cursor:pointer}@media only screen and (min-width: 768px){:host .play-button button{top:auto;left:auto}}@media only screen and (min-width: 992px){:host .play-button button{padding:0}}:host .play-button button.bg-svg-play,:host .play-button button.bg-svg-pause{background-repeat:no-repeat;background-size:18px 18px;background-position:center;background-color:var(--color-white);width:34px;height:34px;box-shadow:0px 4px 8px 0px rgba(0, 0, 0, 0.24);border-radius:4px;border:2px solid var(--color-gray-10)}:host .play-button button.bg-svg-play:hover,:host .play-button button.bg-svg-pause:hover{background-color:var(--color-gray-02)}:host .play-button button.bg-svg-play:active,:host .play-button button.bg-svg-pause:active{transition:none;background-color:var(--color-gray-03)}:host .play-button button.bg-svg-play.active:hover,:host .play-button button.bg-svg-pause.active:hover{background-color:var(--color-gray-05)}:host .play-button button.bg-svg-play.active:active,:host .play-button button.bg-svg-pause.active:active{transition:none;background-color:var(--color-gray-03)}:host .play-button button.bg-svg-play:focus,:host .play-button button.bg-svg-pause:focus{border-radius:var(--ptc-border-radius-standard);border:2px solid white;outline:5px solid var(--keyboard-nav-outline)}:host .play-button button.bg-svg-play{background-image:url('data:image/svg+xml,<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 12 18\" id=\"play\"><path d=\"M11.9625 9L0.0374756 0V18L11.9625 9Z\"></path></svg>')}:host .play-button button.bg-svg-pause{background-image:url('data:image/svg+xml,<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 14 18\" id=\"pause\"><path id=\"rect28\" d=\"M 0,0 H 4 V 18 H 0 Z\"></path><path id=\"rect30\" d=\"m 10,0 h 4 v 18 h -4 z\"></path></svg>')}";
|
|
5
5
|
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-c83db688.js';
|
|
2
|
+
|
|
3
|
+
const ptcCardBottomCss = "h1,h2,h3,h4,h5,h6,p,ul,li,ptc-subnav,ptc-tab-list,ptc-link,ptc-square-card,.hyphenate-text,ptc-footer{word-break:break-word;hyphens:manual;-webkit-hyphens:manual;-moz-hyphens:manual;-ms-hyphens:manual}@supports (hyphenate-limit-chars: 12 3 3){h1,h2,h3,h4,h5,h6,p,ul,li,ptc-subnav,ptc-tab-list,ptc-link,ptc-square-card,.hyphenate-text,ptc-footer{hyphens:auto;-webkit-hyphenate-limit-before:3;-webkit-hyphenate-limit-after:3;hyphenate-limit-chars:12 3 3;hyphenate-limit-lines:2;hyphenate-limit-last:always;hyphenate-limit-zone:6%;-webkit-hyphens:auto;-webkit-hyphenate-limit-before:3;-webkit-hyphenate-limit-after:3;-webkit-hyphenate-limit-chars:12 3 3;-webkit-hyphenate-limit-lines:2;-moz-hyphens:auto;-moz-hyphenate-limit-chars:12 3 3;-moz-hyphenate-limit-lines:2;-ms-hyphens:auto;-ms-hyphenate-limit-chars:12 3 3;-ms-hyphenate-limit-lines:2}}:host{display:block}:host ::slotted([slot=seo-content]){display:none}:host(.card-tall) .ptc-card-bottom-wrapper,:host(.card-wide) .ptc-card-bottom-wrapper{position:absolute;bottom:0;left:0;padding:0 var(--ptc-element-spacing-07) var(--ptc-element-spacing-07) var(--ptc-element-spacing-06);z-index:2}:host(.card-2up) .ptc-card-bottom-wrapper{position:absolute;bottom:0;left:0;padding:0px 24px 24px 16px}:host(.card-playlist){flex:72% 2 1;align-self:center}:host(.mouse-hover-card-bottom) .ptc-card-bottom-wrapper{z-index:5;cursor:pointer}:host(.extra-tall){position:absolute;top:0;left:0}:host(.extra-tall) .ptc-card-bottom-wrapper{position:relative;top:0px;left:0px;bottom:0px;right:0px;display:flex;flex-direction:column;align-items:center;width:calc(100% - 64px);padding:var(--ptc-layout-spacing-05) var(--ptc-element-spacing-07);padding-bottom:calc(var(--ptc-layout-spacing-03) + var(--ptc-layout-spacing-05));z-index:2}@media only screen and (min-width: 768px){:host(.extra-tall) .ptc-card-bottom-wrapper{padding-bottom:var(--ptc-layout-spacing-05)}}@media only screen and (min-width: 992px){:host(.extra-tall) .ptc-card-bottom-wrapper{padding-top:var(--ptc-layout-spacing-05)}}@media only screen and (min-width: 1200px){:host(.extra-tall) .ptc-card-bottom-wrapper{padding-top:calc(var(--ptc-layout-spacing-04) + var(--ptc-layout-spacing-05))}}@media only screen and (min-width: 1440px){:host(.extra-tall) .ptc-card-bottom-wrapper{padding-top:calc(var(--ptc-layout-spacing-05) * 2)}}:host(.color-outlined) .ptc-card-bottom-wrapper{position:absolute;top:50%;transform:translateY(-50%);display:flex;justify-content:center;flex-direction:column;align-items:center;width:calc(100% - 80px);height:100%;padding:0px var(--ptc-element-spacing-08)}:host(.most-popular){padding:0 16px 14px 16px}@media only screen and (min-width: 768px){:host(.card-2up) .ptc-card-bottom-wrapper{padding:0 32px 32px 24px}}@media only screen and (min-width: 1200px){:host(.card-video-intro){flex:20% 2 1;justify-content:flex-end}:host(.card-video-intro) .ptc-card-bottom-wrapper{display:flex;justify-content:flex-end}}@media only screen and (min-width: 1440px){:host(.card-2up) .ptc-card-bottom-wrapper{width:70%}}@media only screen and (min-width: 1980px){:host(.card-2up) .ptc-card-bottom-wrapper{width:60%}}";
|
|
4
|
+
|
|
5
|
+
const PtcCardBottom = class {
|
|
6
|
+
constructor(hostRef) {
|
|
7
|
+
registerInstance(this, hostRef);
|
|
8
|
+
this.hoverEvent = createEvent(this, "hoverEvent", 7);
|
|
9
|
+
this.leaveEvent = createEvent(this, "leaveEvent", 7);
|
|
10
|
+
this.cardType = undefined;
|
|
11
|
+
this.styles = undefined;
|
|
12
|
+
}
|
|
13
|
+
hoverEventHandler() {
|
|
14
|
+
this.hoverEvent.emit();
|
|
15
|
+
//if statement: the card type that doesn't need a hover event
|
|
16
|
+
if (!this.el.classList.contains('card-video') && !this.el.classList.contains('card-playlist') && !this.el.classList.contains('extra-tall')) {
|
|
17
|
+
this.el.previousElementSibling.classList.add('mouse-hover');
|
|
18
|
+
this.el.classList.add('mouse-hover-card-bottom');
|
|
19
|
+
}
|
|
20
|
+
if (this.el.classList.contains('event-podcast')) {
|
|
21
|
+
this.addClassOnDefaultSlot();
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
leaveEventHandler() {
|
|
25
|
+
this.hoverEvent.emit();
|
|
26
|
+
//if statement: the card type that doesn't need a hover event
|
|
27
|
+
if (!this.el.classList.contains('card-video') && !this.el.classList.contains('card-playlist') && !this.el.classList.contains('extra-tall')) {
|
|
28
|
+
this.el.previousElementSibling.classList.remove('mouse-hover');
|
|
29
|
+
this.el.classList.remove('mouse-hover-card-bottom');
|
|
30
|
+
}
|
|
31
|
+
if (this.el.classList.contains('event-podcast')) {
|
|
32
|
+
this.removeClassOnDefaultSlot();
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
async addClassOnDefaultSlot() {
|
|
36
|
+
const slot = this.el.shadowRoot.querySelector('slot:not([name])');
|
|
37
|
+
console.log('slot: ' + slot);
|
|
38
|
+
const assignedElements = slot.assignedElements();
|
|
39
|
+
assignedElements.forEach((ele) => {
|
|
40
|
+
!ele.classList.contains('event-podcast') && ele.classList.add('event-podcast');
|
|
41
|
+
});
|
|
42
|
+
}
|
|
43
|
+
async removeClassOnDefaultSlot() {
|
|
44
|
+
const slot = this.el.shadowRoot.querySelector('slot:not([name])');
|
|
45
|
+
const assignedElements = slot.assignedElements();
|
|
46
|
+
assignedElements.forEach((ele) => {
|
|
47
|
+
ele.classList.contains('event-podcast') && ele.classList.remove('event-podcast');
|
|
48
|
+
});
|
|
49
|
+
}
|
|
50
|
+
render() {
|
|
51
|
+
const classMap = this.getCssClassMap();
|
|
52
|
+
return (h(Host, { part: "card-bottom", class: classMap, onMouseEnter: this.hoverEventHandler.bind(this), onMouseLeave: this.leaveEventHandler.bind(this) }, this.styles && h("style", null, this.styles), h("slot", { name: "slot-content" }), h("div", { class: "ptc-card-bottom-wrapper" }, h("slot", null))));
|
|
53
|
+
}
|
|
54
|
+
getCssClassMap() {
|
|
55
|
+
return {
|
|
56
|
+
[this.cardType]: this.cardType ? true : false,
|
|
57
|
+
};
|
|
58
|
+
}
|
|
59
|
+
get el() { return getElement(this); }
|
|
60
|
+
};
|
|
61
|
+
PtcCardBottom.style = ptcCardBottomCss;
|
|
62
|
+
|
|
63
|
+
export { PtcCardBottom as ptc_card_bottom };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-c83db688.js';
|
|
2
|
-
import { d as debounce, M as MapDOM,
|
|
2
|
+
import { d as debounce, M as MapDOM, b as generateUUID } from './utils-b7c6422e.js';
|
|
3
3
|
|
|
4
4
|
const info = `<svg xmlns="http://www.w3.org/2000/svg" width="13" height="13" viewBox="0 0 13 13">
|
|
5
5
|
<defs>
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { r as registerInstance, h, g as getElement } from './index-c83db688.js';
|
|
2
|
-
import { M as MDCSelect } from './component-
|
|
3
|
-
import './component-
|
|
2
|
+
import { M as MDCSelect } from './component-274da230.js';
|
|
3
|
+
import './component-341e4eaa.js';
|
|
4
4
|
|
|
5
5
|
// Define the ElqLib class
|
|
6
6
|
class ElqLib {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-c83db688.js';
|
|
2
2
|
import { V as ValidationMessages } from './validation-messages-adbb6518.js';
|
|
3
|
-
import { h as getLanguageFromURL } from './utils-
|
|
4
|
-
import { _ as __extends, a as __assign, M as MDCFoundation, n as getCorrectEventName, h as MDCRipple, o as applyPassive, m as matches, i as MDCRippleFoundation, f as __values, e as MDCComponent, k as MDCLineRipple, j as MDCFloatingLabel, l as MDCNotchedOutline } from './component-
|
|
3
|
+
import { h as getLanguageFromURL } from './utils-b7c6422e.js';
|
|
4
|
+
import { _ as __extends, a as __assign, M as MDCFoundation, n as getCorrectEventName, h as MDCRipple, o as applyPassive, m as matches, i as MDCRippleFoundation, f as __values, e as MDCComponent, k as MDCLineRipple, j as MDCFloatingLabel, l as MDCNotchedOutline } from './component-341e4eaa.js';
|
|
5
5
|
import { c as createCommonjsModule } from './_commonjsHelpers-9943807e.js';
|
|
6
6
|
|
|
7
7
|
/**
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { r as registerInstance, h, H as Host, g as getElement } from './index-c83db688.js';
|
|
2
|
-
import { o as observeInView } from './utils-
|
|
2
|
+
import { o as observeInView } from './utils-b7c6422e.js';
|
|
3
3
|
|
|
4
4
|
const ptcHomepageImageFeatureCss = "h1,h2,h3,h4,h5,h6,p,ul,li,ptc-subnav,ptc-tab-list,ptc-link,ptc-square-card,.hyphenate-text,ptc-footer{word-break:break-word;hyphens:manual;-webkit-hyphens:manual;-moz-hyphens:manual;-ms-hyphens:manual}@supports (hyphenate-limit-chars: 12 3 3){h1,h2,h3,h4,h5,h6,p,ul,li,ptc-subnav,ptc-tab-list,ptc-link,ptc-square-card,.hyphenate-text,ptc-footer{hyphens:auto;-webkit-hyphenate-limit-before:3;-webkit-hyphenate-limit-after:3;hyphenate-limit-chars:12 3 3;hyphenate-limit-lines:2;hyphenate-limit-last:always;hyphenate-limit-zone:6%;-webkit-hyphens:auto;-webkit-hyphenate-limit-before:3;-webkit-hyphenate-limit-after:3;-webkit-hyphenate-limit-chars:12 3 3;-webkit-hyphenate-limit-lines:2;-moz-hyphens:auto;-moz-hyphenate-limit-chars:12 3 3;-moz-hyphenate-limit-lines:2;-ms-hyphens:auto;-ms-hyphenate-limit-chars:12 3 3;-ms-hyphenate-limit-lines:2}}:host{display:block}@media only screen and (min-width: 992px){:host{display:flex}}:host .img-wrap{height:400px;width:100%}@media only screen and (min-width: 992px){:host .img-wrap{height:683px;width:65%}}:host .img-wrap.in-view{animation:fadeIn 750ms ease}:host .card-wrap{display:block;z-index:1}@media only screen and (min-width: 992px){:host .card-wrap{margin-top:64px;width:35%}}:host .card-wrap.in-view .card{animation:fadeInUp 750ms ease}:host .card{padding:28px 24px;background-color:var(--color-white);border-radius:var(--ptc-border-radius-standard);box-shadow:var(--ptc-shadow-large);box-sizing:border-box;max-width:540px;margin:-96px 16px 0 16px}@media only screen and (min-width: 992px){:host .card{padding:64px;margin:0 0 0 -120px;width:calc(100% + 120px);max-width:fit-content}}@keyframes fadeIn{from{opacity:0}to{opacity:1}}@keyframes fadeInUp{from{transform:translate3d(0, 30%, 0)}to{transform:translate3d(0, 0, 0)}}::slotted(.cta-wrap){display:flex;grid-row-gap:16px;grid-column-gap:24px;flex-wrap:wrap;margin-top:32px}::slotted(.card-title-wrap){margin-bottom:16px}";
|
|
5
5
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { r as registerInstance, h, H as Host, g as getElement } from './index-c83db688.js';
|
|
2
|
-
import { o as observeInView } from './utils-
|
|
2
|
+
import { o as observeInView } from './utils-b7c6422e.js';
|
|
3
3
|
|
|
4
4
|
const ptcHomepageVideoBackgroundCss = "h1,\nh2,\nh3,\nh4,\nh5,\nh6,\np,\nul,\nli,\nptc-subnav,\nptc-tab-list,\nptc-link, ptc-square-card,\n.hyphenate-text, ptc-footer {\n word-break: break-word;\n hyphens: manual;\n -webkit-hyphens: manual;\n -moz-hyphens: manual;\n -ms-hyphens: manual;\n}\n@supports (hyphenate-limit-chars: 12 3 3) {\n h1,\nh2,\nh3,\nh4,\nh5,\nh6,\np,\nul,\nli,\nptc-subnav,\nptc-tab-list,\nptc-link, ptc-square-card,\n.hyphenate-text, ptc-footer {\n hyphens: auto;\n -webkit-hyphenate-limit-before: 3;\n /* For Safari */\n -webkit-hyphenate-limit-after: 3;\n /* For Safari */\n hyphenate-limit-chars: 12 3 3;\n hyphenate-limit-lines: 2;\n hyphenate-limit-last: always;\n hyphenate-limit-zone: 6%;\n -webkit-hyphens: auto;\n -webkit-hyphenate-limit-before: 3;\n -webkit-hyphenate-limit-after: 3;\n -webkit-hyphenate-limit-chars: 12 3 3;\n -webkit-hyphenate-limit-lines: 2;\n -moz-hyphens: auto;\n -moz-hyphenate-limit-chars: 12 3 3;\n -moz-hyphenate-limit-lines: 2;\n -ms-hyphens: auto;\n -ms-hyphenate-limit-chars: 12 3 3;\n -ms-hyphenate-limit-lines: 2;\n }\n}\n\n:host {\n display: block;\n position: relative;\n overflow: hidden;\n}\n\na {\n text-decoration: none !important;\n color: inherit !important;\n}\n\nh1,\nh2,\nh3,\nh4,\nh5,\nh6,\np,\nul,\nli,\nptc-subnav,\nptc-tab-list,\nptc-link, ptc-square-card,\n.hyphenate-text, ptc-footer {\n word-break: break-word;\n hyphens: manual;\n -webkit-hyphens: manual;\n -moz-hyphens: manual;\n -ms-hyphens: manual;\n}\n@supports (hyphenate-limit-chars: 12 3 3) {\n h1,\nh2,\nh3,\nh4,\nh5,\nh6,\np,\nul,\nli,\nptc-subnav,\nptc-tab-list,\nptc-link, ptc-square-card,\n.hyphenate-text, ptc-footer {\n hyphens: auto;\n -webkit-hyphenate-limit-before: 3;\n /* For Safari */\n -webkit-hyphenate-limit-after: 3;\n /* For Safari */\n hyphenate-limit-chars: 12 3 3;\n hyphenate-limit-lines: 2;\n hyphenate-limit-last: always;\n hyphenate-limit-zone: 6%;\n -webkit-hyphens: auto;\n -webkit-hyphenate-limit-before: 3;\n -webkit-hyphenate-limit-after: 3;\n -webkit-hyphenate-limit-chars: 12 3 3;\n -webkit-hyphenate-limit-lines: 2;\n -moz-hyphens: auto;\n -moz-hyphenate-limit-chars: 12 3 3;\n -moz-hyphenate-limit-lines: 2;\n -ms-hyphens: auto;\n -ms-hyphenate-limit-chars: 12 3 3;\n -ms-hyphenate-limit-lines: 2;\n }\n}\n\n.ptc-container {\n padding-right: 24px;\n padding-left: 24px;\n margin-right: auto;\n margin-left: auto;\n}\n\n@media only screen and (min-width: 1200px) {\n .ptc-container {\n padding-left: 0;\n padding-right: 0;\n max-width: 1136px;\n }\n}\n@media only screen and (min-width: 1440px) {\n .ptc-container {\n padding-left: 0;\n padding-right: 0;\n max-width: 1200px;\n }\n}\n.ptc-container-lg {\n padding-right: 15px;\n padding-left: 15px;\n margin-right: auto;\n margin-left: auto;\n}\n\n@media only screen and (min-width: 480px) {\n .ptc-container-lg {\n padding-left: var(--ptc-layout-spacing-03);\n padding-right: var(--ptc-layout-spacing-03);\n }\n}\n@media only screen and (min-width: 768px) {\n .ptc-container-lg {\n padding-left: var(--ptc-layout-spacing-04);\n padding-right: var(--ptc-layout-spacing-04);\n }\n}\n@media only screen and (min-width: 992px) {\n .ptc-container-lg {\n padding-left: var(--ptc-element-spacing-08);\n padding-right: var(--ptc-element-spacing-08);\n }\n}\n@media only screen and (min-width: 1980px) {\n .ptc-container-lg {\n padding-left: 0;\n padding-right: 0;\n max-width: 1900px;\n }\n}\n.ptc-container-fluid {\n width: 100%;\n}\n\n.primary-content-wrapper {\n max-width: 720px;\n padding: 120px 0;\n}\n@media only screen and (min-width: 992px) {\n .primary-content-wrapper {\n padding: 160px 0;\n }\n}\n@media only screen and (min-width: 1440px) {\n .primary-content-wrapper {\n padding: 160px 0;\n }\n}\n\n.bg-video {\n width: 100%;\n}\n\n.ptc-container {\n position: relative;\n z-index: 20;\n min-height: 587px;\n}\n\n.card-links {\n margin: 0;\n padding-bottom: 72px;\n}\n@media only screen and (min-width: 992px) {\n .card-links {\n padding-bottom: 88px;\n }\n}\n.card-links .secondary-content-wrapper {\n margin: 0;\n max-width: 720px;\n}\n.card-links .card-section {\n display: flex;\n position: relative;\n flex-wrap: nowrap;\n flex-shrink: 0;\n margin: 20px -24px 0;\n white-space: nowrap;\n -ms-overflow-style: none;\n scrollbar-width: none;\n transition: box-shadow var(--ptc-transition-medium) var(--ptc-ease-out);\n}\n.card-links .card-section::-webkit-scrollbar {\n display: none;\n}\n.card-links .card-section .card-link {\n cursor: pointer;\n display: inline-flex;\n position: relative;\n overflow: hidden;\n text-decoration: none;\n z-index: 7;\n align-items: center;\n gap: 16px;\n flex: 0 0 224px;\n align-self: stretch;\n border-radius: 4px 4px 0px 0px;\n border-bottom: 2px solid var(--color-blue-07);\n background: transparent;\n backdrop-filter: blur(12px);\n padding: 24px;\n word-wrap: normal;\n color: var(--color-white);\n font-family: var(--ptc-font-latin);\n font-size: var(--ptc-font-size-small);\n font-style: var(--ptc-font-style-normal);\n font-weight: var(--ptc-font-weight-bold);\n line-height: var(--ptc-line-height-p);\n margin: 0 12px;\n}\n.card-links .card-section .card-link:first-child {\n margin-left: 24px;\n}\n.card-links .card-section .card-link:last-child {\n margin-right: 24px;\n}\n.card-links .card-section .card-link icon-asset {\n z-index: 10;\n}\n.card-links .card-section .card-link .link-text {\n display: block;\n inline-size: 190px;\n white-space: break-spaces;\n z-index: 10;\n font-size: var(--ptc-font-size-small);\n}\n@media only screen and (min-width: 992px) {\n .card-links .card-section .card-link .link-text {\n font-size: var(--ptc-font-size-medium);\n }\n}\n.card-links .card-section .card-link .bgb,\n.card-links .card-section .card-link .bgh,\n.card-links .card-section .card-link .bgp {\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n z-index: 8;\n opacity: 0;\n}\n.card-links .card-section .card-link .link-cover {\n cursor: pointer;\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n z-index: 11;\n width: 99%;\n height: 99%;\n border-radius: var(--ptc-border-radius-standard);\n border: 2px solid transparent;\n}\n.card-links .card-section .card-link .bgb,\n.card-links .card-section .card-link .bgh {\n transition: opacity var(--ptc-transition-medium) var(--ptc-ease-out);\n backdrop-filter: blur(6px);\n -webkit-backdrop-filter: blur(6px);\n}\n.card-links .card-section .card-link .bgb {\n background: linear-gradient(85deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.07) 100.13%);\n opacity: 1;\n}\n.card-links .card-section .card-link .bgh {\n background: linear-gradient(85deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.17) 100.13%);\n}\n.card-links .card-section .card-link .bgp {\n background: linear-gradient(85deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.12) 100.13%);\n}\n.card-links .card-section .card-link:hover .bgb,\n.card-links .card-section .card-link:hover .bgp {\n opacity: 0;\n}\n.card-links .card-section .card-link:hover .bgh {\n opacity: 1;\n}\n.card-links .card-section .card-link:active .bgb,\n.card-links .card-section .card-link:active .bgh, .card-links .card-section .card-link.active .bgb,\n.card-links .card-section .card-link.active .bgh {\n display: none;\n opacity: 0;\n}\n.card-links .card-section .card-link:active .bgp, .card-links .card-section .card-link.active .bgp {\n opacity: 1;\n}\n.card-links .card-section .card-link:focus-visible, .card-links .card-section .card-link:focus, .card-links .card-section .card-link:focus-within {\n border-radius: var(--ptc-border-radius-standard);\n outline: 5px solid var(--keyboard-nav-outline);\n border-bottom-color: white;\n}\n.card-links .card-section .card-link:focus-visible .link-cover, .card-links .card-section .card-link:focus .link-cover, .card-links .card-section .card-link:focus-within .link-cover {\n border-color: white;\n}\n.card-links .card-section:before {\n position: absolute;\n width: 32px;\n background: linear-gradient(85deg, rgba(255, 255, 255, 0) 0%, white 100.13%);\n top: 16px;\n right: 0;\n bottom: 0;\n z-index: 12;\n}\n.card-links .card-section.scroll-st {\n box-shadow: inset 2px 0px 0px rgba(255, 255, 255, 0.3);\n}\n.card-links .card-section.scroll-ed {\n box-shadow: inset -2px 0px 0px rgba(255, 255, 255, 0.3);\n}\n.card-links .card-section.scroll-ed.scroll-st {\n box-shadow: inset 2px 0px 0px rgba(255, 255, 255, 0.3), inset -2px 0px 0px rgba(255, 255, 255, 0.3);\n}\n@media only screen and (min-width: 1200px) {\n .card-links .card-section {\n margin: 20px 0 0;\n align-items: flex-start;\n justify-content: flex-start;\n align-content: flex-start;\n }\n .card-links .card-section.scroll-st, .card-links .card-section.scroll-ed, .card-links .card-section.scroll-ed.scroll-st {\n box-shadow: unset;\n }\n .card-links .card-section .card-link {\n flex: unset;\n }\n .card-links .card-section .card-link:first-child {\n margin-left: 0;\n }\n .card-links .card-section .card-link:last-child {\n margin-right: 0;\n }\n}\n@media only screen and (min-width: 1440px) {\n .card-links .card-section {\n margin: 20px 0 0;\n }\n}\n\n.card-section {\n overflow-x: visible;\n overflow-y: visible;\n animation-duration: 0ms;\n animation-delay: 1000ms;\n animation-fill-mode: forwards;\n}\n@media only screen and (min-width: 1200px) {\n .card-section {\n overflow-x: visible;\n }\n}\n.card-section .card-link {\n animation-duration: 750ms;\n animation-delay: 0ms;\n animation-fill-mode: forwards;\n opacity: 0;\n transform: translate3d(0, 30%, 0);\n}\n.card-section .card-link.card-link-1 {\n animation-delay: 0ms;\n}\n.card-section .card-link.card-link-2 {\n animation-delay: 250ms;\n}\n.card-section .card-link.card-link-3 {\n animation-delay: 500ms;\n}\n.card-section .card-link.card-link-4 {\n animation-delay: 750ms;\n}\n.card-section.in-view {\n animation-name: fadeUpInContainer;\n}\n@media only screen and (min-width: 1200px) {\n .card-section.in-view {\n overflow: visible !important;\n }\n}\n.card-section.in-view .card-link {\n animation-name: fadeUpIn;\n}\n\n@keyframes fadeUpIn {\n 0% {\n opacity: 0;\n transform: translate3d(0, 30%, 0);\n }\n 100% {\n opacity: 1;\n transform: translateZ(0);\n }\n}\n@keyframes fadeUpInContainer {\n 0% {\n overflow: visible;\n overflow-y: visible;\n overflow-x: visible;\n @media only screen and (min-width: 1200px) {\n overflow-x: visible;\n }\n }\n 100% {\n overflow: inherit;\n overflow-y: hidden;\n overflow-x: scroll;\n @media only screen and (min-width: 1200px) {\n overflow-x: hidden;\n }\n }\n}";
|
|
5
5
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { r as registerInstance, h, H as Host, g as getElement } from './index-c83db688.js';
|
|
2
|
-
import {
|
|
2
|
+
import { c as getFileExtension } from './utils-b7c6422e.js';
|
|
3
3
|
|
|
4
4
|
const ptcMediaCardCss = "h1,h2,h3,h4,h5,h6,p,ul,li,ptc-subnav,ptc-tab-list,ptc-link,ptc-square-card,.hyphenate-text,ptc-footer{word-break:break-word;hyphens:manual;-webkit-hyphens:manual;-moz-hyphens:manual;-ms-hyphens:manual}@supports (hyphenate-limit-chars: 12 3 3){h1,h2,h3,h4,h5,h6,p,ul,li,ptc-subnav,ptc-tab-list,ptc-link,ptc-square-card,.hyphenate-text,ptc-footer{hyphens:auto;-webkit-hyphenate-limit-before:3;-webkit-hyphenate-limit-after:3;hyphenate-limit-chars:12 3 3;hyphenate-limit-lines:2;hyphenate-limit-last:always;hyphenate-limit-zone:6%;-webkit-hyphens:auto;-webkit-hyphenate-limit-before:3;-webkit-hyphenate-limit-after:3;-webkit-hyphenate-limit-chars:12 3 3;-webkit-hyphenate-limit-lines:2;-moz-hyphens:auto;-moz-hyphenate-limit-chars:12 3 3;-moz-hyphenate-limit-lines:2;-ms-hyphens:auto;-ms-hyphenate-limit-chars:12 3 3;-ms-hyphenate-limit-lines:2}}:host{display:block;position:relative;width:100%;background-size:cover;background-position:50%;background-repeat:no-repeat}:host .anchor-wrap{height:100%;width:100%;display:block;text-decoration:none;position:relative}:host .anchor-wrap:focus-visible{border-radius:var(--ptc-border-radius-standard);outline:5px solid var(--keyboard-nav-outline)}:host video{object-fit:cover;height:100%;width:100%;z-index:0;position:absolute;left:0;right:0;top:0;bottom:0;display:none}:host(.media-card) ::slotted([slot=seo-content]){display:none}:host(.media-card) .card-wrap{display:flex;height:100%;width:100%;position:relative;z-index:1;min-height:329px;align-items:end}:host(.media-card) .card-wrap .car-content{padding:20px 30px 30px 30px}:host(.media-card) .card-wrap .car-content p,:host(.media-card) .card-wrap .car-content h3{color:#fff}:host(.media-card) .card-wrap .car-content h3{position:relative;margin-bottom:0;font-size:var(--ptc-font-size-medium);text-shadow:1px 3px 30px #000;line-height:var(--ptc-line-height-densest);display:inline}@media only screen and (min-width: 768px){:host(.media-card) .card-wrap .car-content h3{font-size:var(--ptc-font-size-large)}}:host(.media-card) .card-wrap .car-content h3::before{content:\"\";width:100%;height:3px;background-image:url(\"data:image/svg+xml,%3Csvg width='60' height='1' viewBox='0 0 60 1' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Crect width='30' height='1' fill='%2333A13C'/%3E%3C/svg%3E\");background-repeat:repeat;position:absolute;background-size:initial;top:-10px}:host(.media-card) .card-wrap .car-content p{text-shadow:1px 3px 30px var(--color-black);font-weight:var(--ptc-font-weight-semibold);display:block;font-size:var(--ptc-font-size-x-small)}:host(.bureau-card){height:100%;position:relative}:host(.case-study-icon){width:296px}:host(.case-study-icon) ::slotted([slot=seo-content]){display:none}:host(.case-study-icon) .tracker-div{display:inline}:host(.case-study-icon) .case-study-img-anchor{position:relative;width:296px;height:396px;display:flex;justify-content:center;align-items:center;transition:var(--ptc-transition-medium) var(--ptc-ease-inout);-webkit-transition:var(--ptc-transition-medium) var(--ptc-ease-inout);-o-transition:var(--ptc-transition-medium) var(--ptc-ease-inout)}:host(.case-study-icon) .case-study-img-anchor .case-study-bg-img{display:flex;width:296px;height:396px;flex-direction:column;justify-content:center;align-items:center;border-radius:4px;object-fit:cover;position:absolute;z-index:1;box-shadow:var(--ptc-shadow-large)}:host(.case-study-icon) .case-study-img-anchor .after{position:absolute;top:0;left:0;width:100%;height:100%;border-radius:4px;z-index:2;background:rgba(0, 0, 0, 0.5);transition:var(--ptc-transition-medium) var(--ptc-ease-inout);-webkit-transition:var(--ptc-transition-medium) var(--ptc-ease-inout);-o-transition:var(--ptc-transition-medium) var(--ptc-ease-inout)}:host(.case-study-icon) .case-study-img-anchor .case-study-icon-img{position:absolute;z-index:3;width:92px;height:42px;border-radius:4px;background:#FFF;padding:24px;box-shadow:0px 1px 4px 0px rgba(0, 0, 0, 0.24);transition:var(--ptc-transition-medium) var(--ptc-ease-inout);-webkit-transition:var(--ptc-transition-medium) var(--ptc-ease-inout);-o-transition:var(--ptc-transition-medium) var(--ptc-ease-inout)}:host(.case-study-icon) .case-study-img-anchor:hover .after{display:block;background:rgba(0, 0, 0, 0.07)}:host(.case-study-icon) .case-study-img-anchor:hover .case-study-icon-img{width:96px;height:46px}:host(.case-study-icon) .case-study-img-anchor:active,:host(.case-study-icon) .case-study-img-anchor:focus{transition:none !important;-webkit-transition:none !important;-o-transition:none !important}:host(.case-study-icon) .case-study-img-anchor:active .after,:host(.case-study-icon) .case-study-img-anchor:focus .after{display:block;background:rgba(0, 0, 0, 0.2);transition:none !important;-webkit-transition:none !important;-o-transition:none !important}:host(.case-study-icon) .case-study-img-anchor:active .case-study-icon-img,:host(.case-study-icon) .case-study-img-anchor:focus .case-study-icon-img{transition:none !important;-webkit-transition:none !important;-o-transition:none !important}:host(.case-study-icon) .case-study-img-anchor:focus-visible{border-radius:var(--ptc-border-radius-standard);outline:5px solid var(--keyboard-nav-outline)}@media (min-width: 768px){:host(.case-study-icon){width:373px}:host(.case-study-icon) .case-study-img-anchor{width:373px;height:500px}:host(.case-study-icon) .case-study-img-anchor .case-study-bg-img{width:373px;height:500px}}";
|
|
5
5
|
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-c83db688.js';
|
|
2
2
|
import { V as ValidationMessages } from './validation-messages-adbb6518.js';
|
|
3
|
-
import { h as getLanguageFromURL } from './utils-
|
|
4
|
-
import { M as MDCSelect } from './component-
|
|
5
|
-
import './component-
|
|
3
|
+
import { h as getLanguageFromURL } from './utils-b7c6422e.js';
|
|
4
|
+
import { M as MDCSelect } from './component-274da230.js';
|
|
5
|
+
import './component-341e4eaa.js';
|
|
6
6
|
|
|
7
7
|
const ptcMultiSelectCss = "h1,h2,h3,h4,h5,h6,p,ul,li,ptc-subnav,ptc-tab-list,ptc-link,ptc-square-card,.hyphenate-text,ptc-footer{word-break:break-word;hyphens:manual;-webkit-hyphens:manual;-moz-hyphens:manual;-ms-hyphens:manual}@supports (hyphenate-limit-chars: 12 3 3){h1,h2,h3,h4,h5,h6,p,ul,li,ptc-subnav,ptc-tab-list,ptc-link,ptc-square-card,.hyphenate-text,ptc-footer{hyphens:auto;-webkit-hyphenate-limit-before:3;-webkit-hyphenate-limit-after:3;hyphenate-limit-chars:12 3 3;hyphenate-limit-lines:2;hyphenate-limit-last:always;hyphenate-limit-zone:6%;-webkit-hyphens:auto;-webkit-hyphenate-limit-before:3;-webkit-hyphenate-limit-after:3;-webkit-hyphenate-limit-chars:12 3 3;-webkit-hyphenate-limit-lines:2;-moz-hyphens:auto;-moz-hyphenate-limit-chars:12 3 3;-moz-hyphenate-limit-lines:2;-ms-hyphens:auto;-ms-hyphenate-limit-chars:12 3 3;-ms-hyphenate-limit-lines:2}}.ptc-multi-select{position:relative;display:block;margin-bottom:var(--ptc-element-spacing-04)}.ptc-multi-select.invalid::before{content:\"\";position:absolute;width:calc(100% + 16px);height:calc(100% + 8px);background:#FEF3F3;display:flex;flex-direction:column;justify-content:center;z-index:0;left:50%;top:50%;transform:translate(-50%, -50%)}.ptc-multi-select.invalid .mdc-select-helper-text--validation-msg{z-index:2;opacity:1;position:relative;color:#AF3231;font-family:var(--ptc-font-latin);font-size:var(--ptc-font-size-xx-small);font-style:normal;font-weight:var(--ptc-font-weight-semibold);line-height:var(--ptc-line-height-densest);opacity:1;height:auto;margin-left:8px;margin-top:var(--ptc-element-spacing-02)}.ptc-multi-select.invalid .mdc-select-helper-text--validation-msg svg{transform:translate(-8px, 3px)}.ptc-multi-select .multi-select-label{display:block;font-size:var(--ptc-font-size-xx-small);font-weight:var(--ptc-font-weight-semibold);line-height:normal;margin-bottom:var(--ptc-element-spacing-01);z-index:1;position:relative;color:#40434A}.ptc-multi-select .selected-items{cursor:pointer;background-color:#fff;border:1px solid rgba(0, 0, 0, 0.38);padding:8px;border-radius:0px;position:relative;user-select:none;color:var(--color-gray-12);font-family:var(--ptc-font-latin);font-size:var(--ptc-font-size-xx-small);font-weight:var(--ptc-font-weight-regular);max-width:100%;max-height:34px;overflow:hidden;line-height:24px;display:flex;align-items:center}.ptc-multi-select .selected-items:focus-visible{border-radius:var(--ptc-border-radius-standard);outline:5px solid var(--keyboard-nav-outline);outline-offset:-4px}.ptc-multi-select .selected-items:focus{border:2px solid var(--color-blue-07)}.ptc-multi-select .selected-items[aria-expanded]{border:2px solid var(--color-blue-07)}.ptc-multi-select .selected-items .input-text{width:calc(100% - 18px);display:-webkit-box;-webkit-line-clamp:1;line-clamp:1;-webkit-box-orient:vertical;text-overflow:ellipsis}.ptc-multi-select .multi-select-icon{fill:rgba(0, 0, 0, 0.54);position:absolute;right:var(--ptc-element-spacing-02);width:18px;height:18px;margin:0 auto}.ptc-multi-select .multi-select-icon .multi-arrow-svg{transform:translate(-50%, 25%);position:relative;left:50%;bottom:25%}.ptc-multi-select .dropdown{display:none;list-style:none;padding:0;margin:0;border:1px solid #ccc;max-height:350px;overflow-y:auto;position:absolute;width:100%;background-color:#fff;z-index:1000;}.ptc-multi-select .dropdown.show{display:block}.ptc-multi-select .dropdown li{display:flex;align-items:center;padding:5px 8px;cursor:pointer;color:var(--color-gray-10);position:relative;}.ptc-multi-select .dropdown li:hover,.ptc-multi-select .dropdown li:focus-within{background-color:var(--color-gray-02)}.ptc-multi-select .dropdown li.selected{background-color:var(--color-gray-02)}.ptc-multi-select .dropdown li.selected:hover{background-color:var(--color-gray-04)}.ptc-multi-select .dropdown li label{display:-webkit-box;font-family:var(--ptc-font-latin);font-size:var(--ptc-font-size-xx-small);position:relative;padding-left:22px;cursor:pointer;width:100%;overflow:hidden;-webkit-line-clamp:4;line-clamp:4;-webkit-box-orient:vertical;text-overflow:ellipsis;line-height:24px}.ptc-multi-select .dropdown li:focus-within{background-color:var(--color-gray-02);outline:none}.ptc-multi-select .dropdown li:last-child{border-bottom:none}.ptc-multi-select .dropdown input[type=checkbox]{position:absolute;opacity:0;cursor:pointer}.ptc-multi-select .dropdown input[type=checkbox]:checked{background-color:var(--color-green-07)}.ptc-multi-select .dropdown label::before{content:\"\";position:absolute;left:0;top:5px;width:14px;height:14px;background-color:#fff;border:1px solid #ccc;box-sizing:border-box}.ptc-multi-select .dropdown input[type=checkbox]:checked+label::before{background-color:var(--color-green-07);border-color:var(--color-green-07)}.ptc-multi-select .dropdown input[type=checkbox]:checked+label::after{content:url(\"data:image/svg+xml,%3Csvg width='8' height='8' viewBox='0 0 8 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M7.15341 1.14134C7.0572 1.04719 6.94024 1 6.80262 1C6.66499 1 6.54771 1.04719 6.45158 1.14134L3.06571 4.45979L1.5485 2.96965C1.45197 2.8755 1.33501 2.82831 1.19738 2.82831C1.05976 2.82831 0.942797 2.8755 0.846348 2.96965L0.144437 3.65645C0.0482247 3.75091 0 3.86528 0 4.00004C0 4.13472 0.0482247 4.2494 0.144437 4.34355L2.01277 6.17186L2.71492 6.85866C2.81113 6.95312 2.92809 7 3.06571 7C3.20334 7 3.3203 6.95312 3.41675 6.85866L4.11866 6.17186L7.85556 2.51525C7.95177 2.42086 8 2.30641 8 2.17173C8 2.03705 7.95177 1.9226 7.85556 1.82814L7.15341 1.14134Z' fill='white'/%3E%3C/svg%3E\");position:absolute;left:3px;top:0px;color:white;width:8px;height:24px}.ptc-multi-select button.ddl-click-text{all:unset;cursor:pointer;color:var(--color-gray-7);text-decoration:underline;font-size:var(--ptc-font-size-xx-small);font-weight:var(--ptc-font-weight-semibold)}.ptc-multi-select .tooltip{position:absolute;transform:translate(0, -12px);z-index:1001;padding:8px;color:var(--color-white);font-size:var(--ptc-font-size-xxx-small);font-weight:var(--ptc-font-weight-semibold);background:var(--color-gray-09);box-shadow:0px 2px 4px rgba(0, 0, 0, 0.3);border:none;border-radius:2px;width:auto;height:fit-content;text-align:left;text-shadow:none;white-space:normal}.ptc-multi-select .tooltip::after{position:absolute;content:\"\";bottom:0px;border:8px solid transparent;border-top:8px solid var(--color-gray-09);left:50%;transform:translate(-50%, 100%)}@media only screen and (min-width: 992px){.ptc-multi-select .tooltip{width:273px;transform:translate(-100%, 80%)}.ptc-multi-select .tooltip::after{right:8px;left:auto;transform:translateY(100%)}}.ptc-multi-select .tooltip span{word-break:initial}";
|
|
8
8
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { r as registerInstance, h, H as Host, g as getElement, F as Fragment } from './index-c83db688.js';
|
|
2
|
-
import {
|
|
2
|
+
import { b as generateUUID, d as debounce } from './utils-b7c6422e.js';
|
|
3
3
|
|
|
4
4
|
const ptcPricingPackagingTableCss = "h1,h2,h3,h4,h5,h6,p,ul,li,ptc-subnav,ptc-tab-list,ptc-link,ptc-square-card,.hyphenate-text,ptc-footer{word-break:break-word;hyphens:manual;-webkit-hyphens:manual;-moz-hyphens:manual;-ms-hyphens:manual}@supports (hyphenate-limit-chars: 12 3 3){h1,h2,h3,h4,h5,h6,p,ul,li,ptc-subnav,ptc-tab-list,ptc-link,ptc-square-card,.hyphenate-text,ptc-footer{hyphens:auto;-webkit-hyphenate-limit-before:3;-webkit-hyphenate-limit-after:3;hyphenate-limit-chars:12 3 3;hyphenate-limit-lines:2;hyphenate-limit-last:always;hyphenate-limit-zone:6%;-webkit-hyphens:auto;-webkit-hyphenate-limit-before:3;-webkit-hyphenate-limit-after:3;-webkit-hyphenate-limit-chars:12 3 3;-webkit-hyphenate-limit-lines:2;-moz-hyphens:auto;-moz-hyphenate-limit-chars:12 3 3;-moz-hyphenate-limit-lines:2;-ms-hyphens:auto;-ms-hyphenate-limit-chars:12 3 3;-ms-hyphenate-limit-lines:2}}:host{display:block}:host #pricing-table{position:relative;overflow-wrap:break-word}:host #vertical-scroll-content-clipper.normal{display:none}:host #vertical-scroll-content-clipper.sticky{display:block;z-index:20;position:fixed;top:0;width:100%;height:var(--sticky-stop-at, 50px)}:host #table-container{width:100%;overflow-x:auto;border-radius:var(--ptc-border-radius-standard);box-shadow:var(--ptc-shadow-x-small);position:relative}:host #table-body{width:100%;overflow-x:scroll;position:relative}:host .scroll-button{display:flex;align-items:center;position:absolute;z-index:15;height:100%}:host .scroll-button#previous-scroll-button div{margin-right:var(--ptc-element-spacing-02);border-radius:0px var(--ptc-element-spacing-01) var(--ptc-element-spacing-01) 0px}:host .scroll-button#previous-scroll-button div ptc-para{margin-right:var(--ptc-element-spacing-04)}:host .scroll-button#next-scroll-button{transform:translateX(-100%)}:host .scroll-button#next-scroll-button div{margin-left:var(--ptc-element-spacing-02);border-radius:var(--ptc-element-spacing-01) 0px 0px var(--ptc-element-spacing-01)}:host .scroll-button#next-scroll-button div ptc-para{margin-left:var(--ptc-element-spacing-04)}:host .scroll-button div{display:inline-block;width:fit-content;height:36px;background-color:white;color:black;box-shadow:var(--ptc-shadow-x-medium);display:flex;justify-content:center;align-items:center}:host .scroll-button div icon-asset{display:flex;justify-content:center;align-items:center;width:36px;height:100%}:host .scroll-button div ptc-para{display:none;white-space:nowrap}:host .scroll-button div:focus-visible{border-radius:var(--ptc-border-radius-standard);outline:5px solid var(--keyboard-nav-outline)}:host .table-filler-cell{display:none;min-width:var(--filler-cell-width, 0px);max-width:var(--filler-cell-width, 0px);height:100%;box-sizing:content-box;padding:var(--ptc-element-spacing-04) var(--ptc-element-spacing-06) var(--ptc-element-spacing-04) var(--ptc-element-spacing-06);border-bottom:1px solid var(--color-gray-02)}:host .table-filler-cell.show{display:table-cell}:host #table-header{display:table-row;background:var(--color-gray-10);color:white;z-index:10}:host #table-header.normal{position:relative}:host #table-header.sticky{position:fixed;top:var(--sticky-stop-at, 50px);border-top-left-radius:var(--ptc-border-radius-standard);border-top-right-radius:var(--ptc-border-radius-standard);overflow-x:hidden;-ms-overflow-style:none;scrollbar-width:none;box-shadow:0 16px 16px -16px grey}:host #table-header.sticky::-webkit-scrollbar{display:none}:host #table-header .table-cell{min-width:var(--cell-width-xxs, 180px);max-width:var(--cell-width-xxs, 180px);box-sizing:content-box;padding:var(--ptc-element-spacing-04) var(--ptc-element-spacing-06) var(--ptc-element-spacing-04) var(--ptc-element-spacing-06);border-right:1px solid var(--color-gray-07);text-align:center;display:table-cell;vertical-align:middle}:host #table-header .table-cell.table-last-cell{border-right:none}:host #table-header .table-cell ptc-link a.ptc-link{line-height:var(--ptc-line-height-p)}:host #table-header .table-filler-cell{border-bottom:none;border-left:1px solid var(--color-gray-07)}:host #table-header-placeholder.normal{position:absolute;top:0;display:table-row;opacity:0}:host #table-header-placeholder.sticky{position:relative;display:table-row;opacity:0;overflow-x:hidden;-ms-overflow-style:none;scrollbar-width:none}:host #table-header-placeholder .table-cell{min-width:var(--cell-width-xxs, 180px);max-width:var(--cell-width-xxs, 180px);box-sizing:content-box;padding:var(--ptc-element-spacing-04) var(--ptc-element-spacing-06) var(--ptc-element-spacing-04) var(--ptc-element-spacing-06);border-right:1px solid var(--color-gray-07);text-align:center;display:table-cell;vertical-align:middle}:host #table-header-placeholder .table-cell.table-last-cell{border-right:none}:host #table-header-placeholder .table-filler-cell{border-bottom:none;border-left:1px solid var(--color-gray-07)}:host .desktop-header-first-cell{display:table-cell;position:sticky;left:0;z-index:10}:host .mobile-sticky-row-header{display:block;position:sticky;left:0;background-color:var(--color-gray-01);border-bottom:1px solid var(--color-gray-02);padding:var(--ptc-element-spacing-04) var(--ptc-element-spacing-06) var(--ptc-element-spacing-04) var(--ptc-element-spacing-06)}:host .table-row{display:table-row;background-color:white}:host .table-row .table-cell{min-width:var(--cell-width-xxs, 180px);max-width:var(--cell-width-xxs, 180px);box-sizing:content-box;padding:var(--ptc-element-spacing-04) var(--ptc-element-spacing-06) var(--ptc-element-spacing-04) var(--ptc-element-spacing-06);border-right:1px solid var(--color-gray-02);border-bottom:1px solid var(--color-gray-02);text-align:center;display:table-cell;vertical-align:middle}:host .table-row .table-cell.table-last-cell{border-right:none}:host .table-row .table-filler-cell{border-left:1px solid var(--color-gray-02)}:host .table-cta-row{display:table-row;background-color:white}:host .table-cta-row .table-cell{min-width:var(--cell-width-xxs, 180px);max-width:var(--cell-width-xxs, 180px);box-sizing:content-box;padding:var(--ptc-element-spacing-06);border-right:1px solid var(--color-gray-02);border-bottom:1px solid var(--color-gray-02);text-align:center;display:table-cell;vertical-align:middle}:host .table-cta-row .table-cell.table-last-cell{border-right:none}:host .table-cta-row .table-filler-cell{border-left:1px solid var(--color-gray-02)}@media only screen and (min-width: 768px){:host .table-descriptor{max-width:768px;margin:auto}}@media only screen and (min-width: 992px){:host .scroll-button{height:100%;top:0}:host .scroll-button div ptc-para{display:none}:host .scroll-button div:hover{cursor:pointer}:host .scroll-button div:hover ptc-para{display:block}:host .scroll-button#previous-scroll-button{right:0;transform:translateX(100%)}:host #horizontal-scroll-shadow{display:block;position:absolute;top:0;left:0;height:100%;width:var(--ptc-element-spacing-06);background:linear-gradient(90deg, rgba(0, 0, 0, 0.12) 0%, rgba(0, 0, 0, 0) 100%);z-index:1}:host #table-header.sticky{box-shadow:none}:host #table-header .table-cell{min-width:var(--cell-width-md, 225px);max-width:var(--cell-width-md, 225px)}:host #table-header .last-column-tooltip .tooltip{right:4px}:host #table-header-placeholder .table-cell{min-width:var(--cell-width-md, 225px);max-width:var(--cell-width-md, 225px)}:host #table-header-placeholder .last-column-tooltip .tooltip{right:-4px}:host .desktop-sticky-row-header{min-width:var(--desktop-row-header-cell-width-md, 275px);max-width:var(--desktop-row-header-cell-width-md, 275px);box-sizing:content-box;padding:var(--ptc-element-spacing-04) var(--ptc-element-spacing-06) var(--ptc-element-spacing-04) var(--ptc-element-spacing-06);border-right:1px solid var(--color-gray-02);border-bottom:1px solid var(--color-gray-02);display:table-cell;vertical-align:middle;position:sticky;left:0;background-color:white;z-index:5}:host .desktop-sticky-row-header.desktop-alternate-row{background-color:var(--color-gray-01)}:host .desktop-header-first-cell{min-width:var(--desktop-row-header-cell-width-md, 275px);max-width:var(--desktop-row-header-cell-width-md, 275px);box-sizing:content-box;padding:var(--ptc-element-spacing-04) var(--ptc-element-spacing-06) var(--ptc-element-spacing-04) var(--ptc-element-spacing-06);border-right:1px solid var(--color-gray-07);display:table-cell;vertical-align:middle;position:sticky;left:0;z-index:10;background:var(--color-gray-10)}:host .table-row .table-cell{min-width:var(--cell-width-md, 225px);max-width:var(--cell-width-md, 225px)}:host .table-row.desktop-alternate-row{background-color:var(--color-gray-01)}:host .mobile-sticky-row-header{display:none}:host .table-cta-row{display:table-row}:host .table-cta-row .table-cell{min-width:var(--cell-width-md, 225px);max-width:var(--cell-width-md, 225px)}:host .table-cta-row .last-column-tooltip .tooltip{right:-4px}}";
|
|
5
5
|
|