aptechka 0.5.20 → 0.5.22
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/lib/scroll/ScrollElement.d.ts +2 -0
- package/lib/scroll/index.cjs +1 -1
- package/lib/scroll/index.js +411 -401
- package/package.json +1 -1
package/lib/scroll/index.js
CHANGED
|
@@ -1,95 +1,95 @@
|
|
|
1
|
-
var
|
|
1
|
+
var vs = (e, i, r) => {
|
|
2
2
|
if (!i.has(e))
|
|
3
3
|
throw TypeError("Cannot " + r);
|
|
4
4
|
};
|
|
5
|
-
var a = (e, i, r) => (
|
|
5
|
+
var a = (e, i, r) => (vs(e, i, "read from private field"), r ? r.call(e) : i.get(e)), z = (e, i, r) => {
|
|
6
6
|
if (i.has(e))
|
|
7
7
|
throw TypeError("Cannot add the same private member more than once");
|
|
8
8
|
i instanceof WeakSet ? i.add(e) : i.set(e, r);
|
|
9
|
-
}, O = (e, i, r, h) => (
|
|
9
|
+
}, O = (e, i, r, h) => (vs(e, i, "write to private field"), h ? h.call(e, r) : i.set(e, r), r);
|
|
10
10
|
import { S as gt } from "../Store-Cd-E5W1z.js";
|
|
11
|
-
import { D as
|
|
12
|
-
import { i as
|
|
13
|
-
import { a as
|
|
14
|
-
import { c as
|
|
11
|
+
import { D as Ns } from "../Derived-DH-ouLBq.js";
|
|
12
|
+
import { i as ns } from "../browser-0zX67oeU.js";
|
|
13
|
+
import { a as Ae, g as Re } from "../layout-HoBT_Da2.js";
|
|
14
|
+
import { c as Ws, s as Us } from "../math-BOBiC4TN.js";
|
|
15
15
|
import "../path-data-polyfill-DgeDWYeI.js";
|
|
16
16
|
import "../ticker/index.js";
|
|
17
|
-
import { TICK_ORDER as
|
|
18
|
-
import { D as
|
|
19
|
-
import { WheelControls as
|
|
20
|
-
import { CustomElement as
|
|
21
|
-
import { windowResizer as
|
|
22
|
-
import { scrollEntries as
|
|
23
|
-
import { e as
|
|
24
|
-
import { c as
|
|
25
|
-
import { cssUnitParser as
|
|
17
|
+
import { TICK_ORDER as Ms, RESIZE_ORDER as as } from "../order/index.js";
|
|
18
|
+
import { D as Es } from "../Damped-BJgyFENo.js";
|
|
19
|
+
import { WheelControls as Ks, KeyboardControls as Zs, DragControls as Js, AutoplayControls as Qs } from "../controls/index.js";
|
|
20
|
+
import { CustomElement as xs, define as le } from "../custom-element/index.js";
|
|
21
|
+
import { windowResizer as ne } from "../window-resizer/index.js";
|
|
22
|
+
import { scrollEntries as Rt } from "../scroll-entries/index.js";
|
|
23
|
+
import { e as os, D as Ke, ay as Te, p as Xs } from "../tags-BoPv9fDr.js";
|
|
24
|
+
import { c as ls } from "../createStylesheet-KMRQhSa-.js";
|
|
25
|
+
import { cssUnitParser as ms } from "../css-unit-parser/index.js";
|
|
26
26
|
import { CSSProperty as u } from "../css-property/index.js";
|
|
27
|
-
import { d as
|
|
28
|
-
import { elementResizer as
|
|
29
|
-
import { s as
|
|
30
|
-
import { aptechkaTheme as
|
|
31
|
-
import { f as
|
|
32
|
-
import { d as
|
|
33
|
-
var
|
|
34
|
-
for (var n = h > 1 ? void 0 : h ?
|
|
27
|
+
import { d as Ys } from "../Viewport-CCDNxaDg.js";
|
|
28
|
+
import { elementResizer as Ie } from "../element-resizer/index.js";
|
|
29
|
+
import { s as js } from "../gestures-D2Fdra_G.js";
|
|
30
|
+
import { aptechkaTheme as bs } from "../theme/index.js";
|
|
31
|
+
import { f as ti } from "../dom-0S_WDL4g.js";
|
|
32
|
+
import { d as Ls } from "../function-C10DGppn.js";
|
|
33
|
+
var ei = Object.defineProperty, si = Object.getOwnPropertyDescriptor, ii = (e, i, r, h) => {
|
|
34
|
+
for (var n = h > 1 ? void 0 : h ? si(i, r) : i, p = e.length - 1, d; p >= 0; p--)
|
|
35
35
|
(d = e[p]) && (n = (h ? d(i, r, n) : d(n)) || n);
|
|
36
|
-
return h && n &&
|
|
37
|
-
},
|
|
36
|
+
return h && n && ei(i, r, n), n;
|
|
37
|
+
}, cs = (e, i, r) => {
|
|
38
38
|
if (!i.has(e))
|
|
39
39
|
throw TypeError("Cannot " + r);
|
|
40
|
-
}, t = (e, i, r) => (
|
|
40
|
+
}, t = (e, i, r) => (cs(e, i, "read from private field"), r ? r.call(e) : i.get(e)), o = (e, i, r) => {
|
|
41
41
|
if (i.has(e))
|
|
42
42
|
throw TypeError("Cannot add the same private member more than once");
|
|
43
43
|
i instanceof WeakSet ? i.add(e) : i.set(e, r);
|
|
44
|
-
},
|
|
45
|
-
class
|
|
44
|
+
}, _ = (e, i, r, h) => (cs(e, i, "write to private field"), h ? h.call(e, r) : i.set(e, r), r), b = (e, i, r) => (cs(e, i, "access private method"), r), S, It, A, et, Q, st, wt, _t, K, T, Bt, Ht, Gt, qt, ce, nt, Nt, Ct, at, Vt, Ut, Kt, g, Be, c, ye, ke, M, C, I, X, Ft, ft, F, k, ue, yt, ae, oe, ee, ge, Dt, ie, He, us, Ge, ps, Pe, Ze, We, Je, B, Ne, Qe, Vs, pe, Me, Ee, Xe, zt, se, Ye, zs, w, y, At, j, vt;
|
|
45
|
+
class ri {
|
|
46
46
|
constructor(i, r) {
|
|
47
|
-
z(this,
|
|
47
|
+
z(this, w, void 0);
|
|
48
48
|
z(this, y, void 0);
|
|
49
|
-
z(this,
|
|
49
|
+
z(this, At, 0);
|
|
50
50
|
z(this, j, 0);
|
|
51
|
-
z(this,
|
|
52
|
-
O(this,
|
|
51
|
+
z(this, vt, null);
|
|
52
|
+
O(this, w, i), O(this, y, r), Rt.register(a(this, w));
|
|
53
53
|
}
|
|
54
54
|
get size() {
|
|
55
|
-
return a(this,
|
|
55
|
+
return a(this, At);
|
|
56
56
|
}
|
|
57
57
|
get position() {
|
|
58
58
|
return a(this, j);
|
|
59
59
|
}
|
|
60
60
|
destroy() {
|
|
61
|
-
|
|
61
|
+
Rt.unregister(a(this, w)), a(this, w).style.transform = "", this.mark(null);
|
|
62
62
|
}
|
|
63
63
|
setSize(i) {
|
|
64
|
-
i ? (a(this,
|
|
64
|
+
i ? (a(this, w).style.setProperty("--size", i + "px"), a(this, y).axisCSSProperty.current === "x" ? (a(this, w).style.width = i + "px", a(this, w).style.height = "") : (a(this, w).style.height = i + "px", a(this, w).style.width = "")) : (a(this, w).style.width = "", a(this, w).style.height = "", a(this, w).style.removeProperty("--size"));
|
|
65
65
|
}
|
|
66
66
|
resize() {
|
|
67
|
-
O(this,
|
|
67
|
+
O(this, At, a(this, y).vertical ? a(this, w).offsetHeight : a(this, w).offsetWidth), O(this, j, a(this, y).vertical ? Ae(a(this, w)) : Re(a(this, w))), O(this, j, a(this, j) - a(this, y).contentPosition);
|
|
68
68
|
}
|
|
69
69
|
transform() {
|
|
70
70
|
let i = 0;
|
|
71
71
|
const r = a(this, y).viewportSize * a(this, y).sectionDistanceScaleCSSProperty.current;
|
|
72
|
-
a(this, y).infiniteCSSProperty.current && a(this, y).overscroll && a(this, j) + a(this,
|
|
73
|
-
a(this,
|
|
72
|
+
a(this, y).infiniteCSSProperty.current && a(this, y).overscroll && a(this, j) + a(this, At) < a(this, y).currentScrollValue && (i = a(this, y).distance * -1 - a(this, y).gap), Rt.update(
|
|
73
|
+
a(this, w),
|
|
74
74
|
a(this, y).axisCSSProperty.current,
|
|
75
75
|
i
|
|
76
76
|
);
|
|
77
|
-
const h = a(this, y).currentScrollValue + i, n = a(this, j) - a(this, y).viewportSize - r, p = a(this, j) + a(this,
|
|
78
|
-
a(this, y).vertical ? a(this,
|
|
77
|
+
const h = a(this, y).currentScrollValue + i, n = a(this, j) - a(this, y).viewportSize - r, p = a(this, j) + a(this, At) + r, d = Ws(h, n, p);
|
|
78
|
+
a(this, y).vertical ? a(this, w).style.transform = `translate3d(0px, ${d * -1}px, 0px)` : a(this, w).style.transform = `translate3d(${d * -1}px, 0px, 0px)`;
|
|
79
79
|
}
|
|
80
80
|
mark(i) {
|
|
81
|
-
a(this,
|
|
81
|
+
a(this, vt) !== i && (a(this, vt) && a(this, w).classList.remove(a(this, vt)), i && a(this, w).classList.add(i), O(this, vt, i), a(this, w).dispatchEvent(
|
|
82
82
|
new CustomEvent("sectionsChange", {
|
|
83
83
|
composed: !0,
|
|
84
84
|
detail: {
|
|
85
|
-
mark: a(this,
|
|
85
|
+
mark: a(this, vt)
|
|
86
86
|
}
|
|
87
87
|
})
|
|
88
88
|
));
|
|
89
89
|
}
|
|
90
90
|
}
|
|
91
|
-
|
|
92
|
-
const
|
|
91
|
+
w = new WeakMap(), y = new WeakMap(), At = new WeakMap(), j = new WeakMap(), vt = new WeakMap();
|
|
92
|
+
const hi = ls({
|
|
93
93
|
":host": {
|
|
94
94
|
position: "relative",
|
|
95
95
|
width: "100%",
|
|
@@ -122,11 +122,11 @@ const ii = as({
|
|
|
122
122
|
flexShrink: "0"
|
|
123
123
|
}
|
|
124
124
|
});
|
|
125
|
-
let
|
|
125
|
+
let qe = class extends xs {
|
|
126
126
|
constructor() {
|
|
127
|
-
super(), o(this,
|
|
127
|
+
super(), o(this, ee), o(this, Dt), o(this, He), o(this, Ge), o(this, Pe), o(this, We), o(this, Qe), o(this, Ee), o(this, zt), o(this, Ye), o(this, S, null), o(this, It, new u(this, "--controls", !0)), o(this, A, new u(this, "--axis", "y")), o(this, et, new u(this, "--pages", 0, {
|
|
128
128
|
validate: (e) => Math.max(0, e - 1)
|
|
129
|
-
})), o(this, Q, new u(this, "--split", !1)), o(this, st, new u(this, "--sectional", !1)), o(this,
|
|
129
|
+
})), o(this, Q, new u(this, "--split", !1)), o(this, st, new u(this, "--sectional", !1)), o(this, wt, new u(this, "--auto-size", !1)), o(this, _t, new u(
|
|
130
130
|
this,
|
|
131
131
|
"--wheel-max-delta",
|
|
132
132
|
!1
|
|
@@ -134,30 +134,30 @@ let He = class extends Ms {
|
|
|
134
134
|
this,
|
|
135
135
|
"--sections-in-view",
|
|
136
136
|
1
|
|
137
|
-
)), o(this, T, new u(this, "--infinite", !1)), o(this,
|
|
137
|
+
)), o(this, T, new u(this, "--infinite", !1)), o(this, Bt, new u(this, "--damping", 20)), o(this, Ht, new u(this, "--mass", 0)), o(this, Gt, new u(this, "--stiffness", 0)), o(this, qt, new u(this, "--mouse-drag", !1)), o(this, ce, new u(
|
|
138
138
|
this,
|
|
139
139
|
"--section-distance-scale",
|
|
140
140
|
0.5
|
|
141
|
-
)), o(this, nt, new u(this, "--autoplay", 0)), o(this,
|
|
141
|
+
)), o(this, nt, new u(this, "--autoplay", 0)), o(this, Nt, new u(
|
|
142
142
|
this,
|
|
143
143
|
"--autoplay-pause-duration",
|
|
144
144
|
0
|
|
145
|
-
)), o(this,
|
|
145
|
+
)), o(this, Ct, new u(
|
|
146
146
|
this,
|
|
147
147
|
"--autoplay-user-direction",
|
|
148
148
|
!1
|
|
149
|
-
)), o(this,
|
|
149
|
+
)), o(this, at, new u(this, "--classes", 0)), o(this, Vt, new u(
|
|
150
150
|
this,
|
|
151
151
|
"--current-index-offset",
|
|
152
152
|
0
|
|
153
|
-
)), o(this,
|
|
153
|
+
)), o(this, Ut, new u(this, "--disabled", !1)), o(this, Kt, new u(this, "--hibernated", !1)), o(this, g, null), o(this, Be, null), o(this, c, []), o(this, ye, 0), o(this, ke, 0), o(this, M, 0), o(this, C, 0), o(this, I, 0), o(this, X, null), o(this, Ft, null), o(this, ft, null), o(this, F, null), o(this, k, new gt(0)), o(this, ue, 0), o(this, yt, 0), o(this, ae, !0), o(this, oe, !0), o(this, B, () => {
|
|
154
154
|
t(this, S).unlistenAnimationFrame();
|
|
155
155
|
const e = this.currentScrollValue / t(this, C) || 0, i = t(this, k).current;
|
|
156
|
-
if (
|
|
156
|
+
if (_(this, ye, this.vertical ? Ae(this) : Re(this)), _(this, ke, this.vertical ? Ae(t(this, g)) : Re(t(this, g))), _(this, M, this.vertical ? this.offsetHeight : this.offsetWidth), this.vertical ? _(this, I, ms.parse(
|
|
157
157
|
getComputedStyle(t(this, g)).rowGap
|
|
158
|
-
)) :
|
|
158
|
+
)) : _(this, I, ms.parse(
|
|
159
159
|
getComputedStyle(t(this, g)).columnGap
|
|
160
|
-
)), t(this,
|
|
160
|
+
)), t(this, wt).current && t(this, c).length) {
|
|
161
161
|
const r = t(this, K).current, h = (t(this, M) - t(this, I) * (r - 1)) / r;
|
|
162
162
|
t(this, c).forEach((n) => {
|
|
163
163
|
n.setSize(h);
|
|
@@ -169,20 +169,20 @@ let He = class extends Ms {
|
|
|
169
169
|
if (t(this, c).forEach((r) => {
|
|
170
170
|
r.resize();
|
|
171
171
|
}), t(this, et).current) {
|
|
172
|
-
|
|
172
|
+
_(this, C, t(this, M) * t(this, et).current);
|
|
173
173
|
const r = t(this, C) + t(this, M);
|
|
174
174
|
this.vertical ? (t(this, g).style.width = r + "px", t(this, g).style.height = "100%") : (t(this, g).style.height = r + "px", t(this, g).style.width = "100%");
|
|
175
175
|
} else
|
|
176
|
-
this.vertical ? (t(this, g).style.width = "100%", t(this, g).style.height = "max-content",
|
|
176
|
+
this.vertical ? (t(this, g).style.width = "100%", t(this, g).style.height = "max-content", _(this, C, t(this, g).offsetHeight - t(this, M))) : (t(this, g).style.width = "max-content", t(this, g).style.height = "100%", _(this, C, t(this, g).offsetWidth - t(this, M)));
|
|
177
177
|
if (!t(this, T).current) {
|
|
178
178
|
const r = getComputedStyle(this), h = this.vertical ? parseFloat(r.paddingBlockStart) + parseFloat(r.paddingBlockEnd) : parseFloat(r.paddingInlineStart) + parseFloat(r.paddingInlineEnd);
|
|
179
|
-
|
|
179
|
+
_(this, C, t(this, C) + h), t(this, S).max = t(this, C);
|
|
180
180
|
}
|
|
181
181
|
if (t(this, T).current && t(this, c).length) {
|
|
182
182
|
const r = t(this, c)[t(this, c).length - 1], h = r.position + r.size - t(this, M), n = t(this, C) - h;
|
|
183
|
-
|
|
183
|
+
_(this, yt, r.position + r.size + n);
|
|
184
184
|
} else
|
|
185
|
-
|
|
185
|
+
_(this, yt, t(this, C));
|
|
186
186
|
if (t(this, st).current && t(this, c).length) {
|
|
187
187
|
const r = t(this, c)[i];
|
|
188
188
|
t(this, S).set(r.position, {
|
|
@@ -192,9 +192,9 @@ let He = class extends Ms {
|
|
|
192
192
|
t(this, S).set(e * t(this, C), {
|
|
193
193
|
equalize: !0
|
|
194
194
|
});
|
|
195
|
-
}), o(this,
|
|
195
|
+
}), o(this, Ne, () => {
|
|
196
196
|
const e = this.currentScrollValue;
|
|
197
|
-
if (
|
|
197
|
+
if (_(this, ue, Math.max(0, e - t(this, C))), t(this, c).length) {
|
|
198
198
|
let i = 0;
|
|
199
199
|
for (let r = 0; r < t(this, c).length; r++) {
|
|
200
200
|
const h = t(this, c)[r];
|
|
@@ -203,92 +203,97 @@ let He = class extends Ms {
|
|
|
203
203
|
t(this, k).current = i;
|
|
204
204
|
} else
|
|
205
205
|
this.vertical ? t(this, g).style.transform = `translate3d(0px, ${e * -1}px, 0px)` : t(this, g).style.transform = `translate3d(${e * -1}px, 0px, 0px)`;
|
|
206
|
-
|
|
206
|
+
Rt.update(
|
|
207
207
|
this,
|
|
208
208
|
t(this, A).current,
|
|
209
209
|
e
|
|
210
210
|
);
|
|
211
|
-
}), o(this,
|
|
212
|
-
t(this, F).pauseAndContinue(
|
|
213
|
-
t(this,
|
|
214
|
-
), t(this,
|
|
215
|
-
}), o(this,
|
|
216
|
-
if (!(e === "drag" && !
|
|
211
|
+
}), o(this, pe, (e, i) => {
|
|
212
|
+
t(this, It).current && (t(this, F).pauseAndContinue(
|
|
213
|
+
t(this, Nt).current
|
|
214
|
+
), t(this, Ct).current && (t(this, F).direction = Math.sign(i) || 1), t(this, Me).call(this, e, i));
|
|
215
|
+
}), o(this, Me, (e, i) => {
|
|
216
|
+
if (!(e === "drag" && !Ys.isMobile && !t(this, qt).current))
|
|
217
217
|
if (t(this, st).current) {
|
|
218
218
|
const r = Math.sign(i);
|
|
219
219
|
t(this, c).length ? this.shiftSections(r) : t(this, S).shift(r * t(this, M));
|
|
220
220
|
} else
|
|
221
221
|
t(this, S).shift(i);
|
|
222
|
-
}),
|
|
222
|
+
}), ns && (_(this, S, new Es(0, {
|
|
223
223
|
damping: 0.01,
|
|
224
224
|
min: 0,
|
|
225
|
-
order:
|
|
226
|
-
})), this.openShadow(
|
|
225
|
+
order: Ms.SCROLL
|
|
226
|
+
})), this.openShadow(hi), os(this, {
|
|
227
227
|
tabIndex: 0,
|
|
228
228
|
children: [
|
|
229
|
-
|
|
229
|
+
Ke({
|
|
230
230
|
class: "static",
|
|
231
|
-
children: [
|
|
231
|
+
children: [Te({ name: "static" })]
|
|
232
232
|
}),
|
|
233
|
-
|
|
233
|
+
Ke({
|
|
234
234
|
class: "content",
|
|
235
|
-
children: [
|
|
235
|
+
children: [Te({ ref: (e) => _(this, Be, e) })],
|
|
236
236
|
style: {
|
|
237
|
-
flexDirection: new
|
|
237
|
+
flexDirection: new Ns(
|
|
238
238
|
t(this, A),
|
|
239
239
|
(e) => e === "x" ? "row" : "column"
|
|
240
240
|
)
|
|
241
241
|
},
|
|
242
|
-
ref: (e) =>
|
|
242
|
+
ref: (e) => _(this, g, e)
|
|
243
243
|
})
|
|
244
244
|
]
|
|
245
|
-
}),
|
|
246
|
-
t(this,
|
|
247
|
-
),
|
|
245
|
+
}), _(this, X, new Ks({ element: t(this, g) })), t(this, X).changeEvent.subscribe(
|
|
246
|
+
t(this, pe)
|
|
247
|
+
), _(this, Ft, new Zs({
|
|
248
248
|
element: this
|
|
249
|
-
})), t(this,
|
|
250
|
-
t(this,
|
|
251
|
-
),
|
|
252
|
-
t(this, g).style.flexDirection = e === "x" ? "row" : "column", t(this, X).axis = t(this,
|
|
253
|
-
}), t(this,
|
|
249
|
+
})), t(this, Ft).changeEvent.subscribe(
|
|
250
|
+
t(this, pe)
|
|
251
|
+
), _(this, ft, new Js({ element: t(this, g) })), t(this, ft).changeEvent.subscribe(t(this, pe)), _(this, F, new Qs()), t(this, F).changeEvent.subscribe(t(this, Me)), t(this, A).subscribe(({ current: e }) => {
|
|
252
|
+
t(this, g).style.flexDirection = e === "x" ? "row" : "column", t(this, X).axis = t(this, _t).current ? "max" : e, t(this, Ft).dimension = e === "x" ? "width" : "height", t(this, ft).axis = e, e === "x" ? this.style.touchAction = "pan-y" : e === "y" && (this.style.touchAction = "pan-x"), this.isConnected && t(this, B).call(this);
|
|
253
|
+
}), t(this, _t).subscribe((e) => {
|
|
254
254
|
t(this, X).axis = e.current ? "max" : t(this, A).current;
|
|
255
255
|
}), t(this, et).subscribe(() => {
|
|
256
256
|
this.isConnected && t(this, B).call(this);
|
|
257
257
|
}), t(this, Q).subscribe(({ current: e }) => {
|
|
258
|
-
this.isConnected && (e ?
|
|
258
|
+
this.isConnected && (e ? b(this, ee, ge).call(this) : b(this, Dt, ie).call(this));
|
|
259
259
|
}), t(this, st).subscribe((e) => {
|
|
260
|
-
t(this, X).debounce = e.current, t(this,
|
|
261
|
-
}), t(this,
|
|
262
|
-
this.isConnected && (t(this, B).call(this), e.current && !e.previous && !t(this, c).length ?
|
|
260
|
+
t(this, X).debounce = e.current, t(this, ft).swipe = e.current, t(this, F).interval = e.current, this.isConnected && (e.current && !e.previous && !t(this, c).length ? b(this, ee, ge).call(this) : !e.current && e.previous && t(this, c).length && b(this, Dt, ie).call(this));
|
|
261
|
+
}), t(this, wt).subscribe((e) => {
|
|
262
|
+
this.isConnected && (t(this, B).call(this), e.current && !e.previous && !t(this, c).length ? b(this, ee, ge).call(this) : !e.current && e.previous && t(this, c).length && b(this, Dt, ie).call(this));
|
|
263
263
|
}), t(this, K).subscribe((e) => {
|
|
264
|
-
this.isConnected && (t(this, B).call(this),
|
|
264
|
+
this.isConnected && (t(this, B).call(this), b(this, zt, se).call(this));
|
|
265
265
|
}), t(this, T).subscribe((e) => {
|
|
266
|
-
e.current ? (this.isConnected && (t(this, c).length || (t(this, Q).current = !0)), t(this, c).length && (t(this, S).max = 1 / 0, t(this, S).min = -1 / 0)) : (
|
|
267
|
-
}), t(this,
|
|
266
|
+
e.current ? (this.isConnected && (t(this, c).length || (t(this, Q).current = !0)), t(this, c).length && (t(this, S).max = 1 / 0, t(this, S).min = -1 / 0)) : (_(this, ue, 0), t(this, S).max = t(this, C), t(this, S).min = 0);
|
|
267
|
+
}), t(this, Bt).subscribe((e) => {
|
|
268
268
|
t(this, S).damping = e.current;
|
|
269
|
-
}), t(this,
|
|
269
|
+
}), t(this, Ht).subscribe((e) => {
|
|
270
270
|
t(this, S).mass = e.current;
|
|
271
|
-
}), t(this, It).subscribe((e) => {
|
|
272
|
-
t(this, S).stiffness = e.current;
|
|
273
271
|
}), t(this, Gt).subscribe((e) => {
|
|
274
|
-
|
|
275
|
-
}), t(this,
|
|
276
|
-
e.current && !e.previous ?
|
|
272
|
+
t(this, S).stiffness = e.current;
|
|
273
|
+
}), t(this, Ut).subscribe((e) => {
|
|
274
|
+
e.current && !e.previous ? b(this, He, us).call(this) : !e.current && e.previous && b(this, Ge, ps).call(this);
|
|
275
|
+
}), t(this, Kt).subscribe((e) => {
|
|
276
|
+
e.current && !e.previous ? b(this, Pe, Ze).call(this) : !e.current && e.previous && b(this, We, Je).call(this);
|
|
277
277
|
}), t(this, nt).subscribe((e) => {
|
|
278
278
|
t(this, F).speed = e.current, e.current && !e.previous ? t(this, F).connect() : !e.current && e.previous && t(this, F).disconnect();
|
|
279
|
-
}), t(this,
|
|
279
|
+
}), t(this, Ct).subscribe((e) => {
|
|
280
280
|
e.current || (t(this, F).direction = 1);
|
|
281
|
-
}), t(this,
|
|
282
|
-
this.isConnected &&
|
|
281
|
+
}), t(this, at).subscribe((e) => {
|
|
282
|
+
this.isConnected && b(this, zt, se).call(this);
|
|
283
|
+
}), t(this, Vt).subscribe((e) => {
|
|
284
|
+
this.isConnected && t(this, at).current && b(this, zt, se).call(this);
|
|
283
285
|
}), t(this, S).isRunning.subscribe((e) => {
|
|
284
286
|
this.classList.toggle("active", e.current);
|
|
285
287
|
}), t(this, k).subscribe((e) => {
|
|
286
|
-
t(this, c).length &&
|
|
288
|
+
t(this, c).length && b(this, zt, se).call(this);
|
|
287
289
|
}));
|
|
288
290
|
}
|
|
289
291
|
get damped() {
|
|
290
292
|
return t(this, S);
|
|
291
293
|
}
|
|
294
|
+
get controlsCSSProperty() {
|
|
295
|
+
return t(this, It);
|
|
296
|
+
}
|
|
292
297
|
get axisCSSProperty() {
|
|
293
298
|
return t(this, A);
|
|
294
299
|
}
|
|
@@ -302,10 +307,10 @@ let He = class extends Ms {
|
|
|
302
307
|
return t(this, st);
|
|
303
308
|
}
|
|
304
309
|
get autoSizeCSSProperty() {
|
|
305
|
-
return t(this,
|
|
310
|
+
return t(this, wt);
|
|
306
311
|
}
|
|
307
312
|
get wheelMaxDeltaCSSProperty() {
|
|
308
|
-
return t(this,
|
|
313
|
+
return t(this, _t);
|
|
309
314
|
}
|
|
310
315
|
get sectionsInViewCSSProperty() {
|
|
311
316
|
return t(this, K);
|
|
@@ -314,43 +319,46 @@ let He = class extends Ms {
|
|
|
314
319
|
return t(this, T);
|
|
315
320
|
}
|
|
316
321
|
get dampingCSSProperty() {
|
|
317
|
-
return t(this,
|
|
322
|
+
return t(this, Bt);
|
|
318
323
|
}
|
|
319
324
|
get massCSSProperty() {
|
|
320
|
-
return t(this,
|
|
325
|
+
return t(this, Ht);
|
|
321
326
|
}
|
|
322
327
|
get stiffnessCSSProperty() {
|
|
323
|
-
return t(this,
|
|
328
|
+
return t(this, Gt);
|
|
324
329
|
}
|
|
325
330
|
get mouseDragCSSProperty() {
|
|
326
|
-
return t(this,
|
|
331
|
+
return t(this, qt);
|
|
327
332
|
}
|
|
328
333
|
get sectionDistanceScaleCSSProperty() {
|
|
329
|
-
return t(this,
|
|
334
|
+
return t(this, ce);
|
|
330
335
|
}
|
|
331
336
|
get autoplayCSSProperty() {
|
|
332
337
|
return t(this, nt);
|
|
333
338
|
}
|
|
334
339
|
get autoplayPauseDurationCSSProperty() {
|
|
335
|
-
return t(this,
|
|
340
|
+
return t(this, Nt);
|
|
336
341
|
}
|
|
337
342
|
get autoplayUserDirectionCSSProperty() {
|
|
338
|
-
return t(this,
|
|
343
|
+
return t(this, Ct);
|
|
344
|
+
}
|
|
345
|
+
get classesCSSProperty() {
|
|
346
|
+
return t(this, at);
|
|
339
347
|
}
|
|
340
348
|
get currentIndexOffsetCSSProperty() {
|
|
341
|
-
return t(this,
|
|
349
|
+
return t(this, Vt);
|
|
342
350
|
}
|
|
343
351
|
get disabledCSSProperty() {
|
|
344
|
-
return t(this,
|
|
352
|
+
return t(this, Ut);
|
|
345
353
|
}
|
|
346
354
|
get hibernatedCSSProperty() {
|
|
347
|
-
return t(this,
|
|
355
|
+
return t(this, Kt);
|
|
348
356
|
}
|
|
349
357
|
get currentScrollValue() {
|
|
350
|
-
return
|
|
358
|
+
return b(this, Ee, Xe).call(this, "current");
|
|
351
359
|
}
|
|
352
360
|
get targetScrollValue() {
|
|
353
|
-
return
|
|
361
|
+
return b(this, Ee, Xe).call(this, "target");
|
|
354
362
|
}
|
|
355
363
|
get contentElement() {
|
|
356
364
|
return t(this, g);
|
|
@@ -359,10 +367,10 @@ let He = class extends Ms {
|
|
|
359
367
|
return t(this, c);
|
|
360
368
|
}
|
|
361
369
|
get position() {
|
|
362
|
-
return t(this,
|
|
370
|
+
return t(this, ye);
|
|
363
371
|
}
|
|
364
372
|
get contentPosition() {
|
|
365
|
-
return t(this,
|
|
373
|
+
return t(this, ke);
|
|
366
374
|
}
|
|
367
375
|
get viewportSize() {
|
|
368
376
|
return t(this, M);
|
|
@@ -380,13 +388,13 @@ let He = class extends Ms {
|
|
|
380
388
|
return t(this, c).length - t(this, K).current;
|
|
381
389
|
}
|
|
382
390
|
get distance() {
|
|
383
|
-
return t(this,
|
|
391
|
+
return t(this, yt);
|
|
384
392
|
}
|
|
385
393
|
get infiniteDistance() {
|
|
386
|
-
return t(this, T).current ? t(this,
|
|
394
|
+
return t(this, T).current ? t(this, yt) + t(this, I) : t(this, yt);
|
|
387
395
|
}
|
|
388
396
|
get overscroll() {
|
|
389
|
-
return t(this,
|
|
397
|
+
return t(this, ue);
|
|
390
398
|
}
|
|
391
399
|
get vertical() {
|
|
392
400
|
return t(this, A).current === "y";
|
|
@@ -425,12 +433,12 @@ let He = class extends Ms {
|
|
|
425
433
|
if (!t(this, c).length)
|
|
426
434
|
return;
|
|
427
435
|
const r = t(this, k).current;
|
|
428
|
-
|
|
436
|
+
b(this, Qe, Vs).call(this, e);
|
|
429
437
|
const h = t(this, c)[r], n = t(this, c)[t(this, k).current];
|
|
430
438
|
if (h && n) {
|
|
431
439
|
let p = 0;
|
|
432
|
-
const d =
|
|
433
|
-
t(this, T).current ? t(this, k).current === 0 && r === t(this, c).length - 1 ? p = t(this, C) + t(this, M) - h.position + t(this, I) : t(this, k).current === t(this, c).length - 1 && r === 0 ? p = n.position - (t(this, C) + t(this, M) + t(this, I)) : p = n.position - h.position : p = n.position - h.position, t(this, S).shift(p -
|
|
440
|
+
const d = b(this, Ye, zs).call(this), qs = d ? this.targetScrollValue - d.position : 0;
|
|
441
|
+
t(this, T).current ? t(this, k).current === 0 && r === t(this, c).length - 1 ? p = t(this, C) + t(this, M) - h.position + t(this, I) : t(this, k).current === t(this, c).length - 1 && r === 0 ? p = n.position - (t(this, C) + t(this, M) + t(this, I)) : p = n.position - h.position : p = n.position - h.position, t(this, S).shift(p - qs, {
|
|
434
442
|
equalize: i === "instant"
|
|
435
443
|
});
|
|
436
444
|
}
|
|
@@ -444,113 +452,115 @@ let He = class extends Ms {
|
|
|
444
452
|
});
|
|
445
453
|
}
|
|
446
454
|
connectedCallback() {
|
|
447
|
-
t(this, A).observe(), t(this, et).observe(), t(this, Q).observe(), t(this, st).observe(), t(this,
|
|
455
|
+
t(this, It).observe(), t(this, A).observe(), t(this, et).observe(), t(this, Q).observe(), t(this, st).observe(), t(this, wt).observe(), t(this, _t).observe(), t(this, K).observe(), t(this, T).observe(), t(this, Bt).observe(), t(this, Ht).observe(), t(this, Gt).observe(), t(this, qt).observe(), t(this, ce).observe(), t(this, nt).observe(), t(this, nt).observe(), t(this, Nt).observe(), t(this, Ct).observe(), t(this, at).observe(), t(this, Vt).observe(), t(this, Ut).observe(), t(this, Kt).observe(), b(this, We, Je).call(this);
|
|
448
456
|
}
|
|
449
457
|
disconnectedCallback() {
|
|
450
|
-
t(this, A).unobserve(), t(this, et).unobserve(), t(this, Q).unobserve(), t(this, st).unobserve(), t(this,
|
|
458
|
+
t(this, It).unobserve(), t(this, A).unobserve(), t(this, et).unobserve(), t(this, Q).unobserve(), t(this, st).unobserve(), t(this, wt).unobserve(), t(this, _t).unobserve(), t(this, K).unobserve(), t(this, T).unobserve(), t(this, Bt).unobserve(), t(this, Ht).unobserve(), t(this, Gt).unobserve(), t(this, qt).unobserve(), t(this, ce).unobserve(), t(this, nt).unobserve(), t(this, Nt).unobserve(), t(this, Ct).unobserve(), t(this, at).unobserve(), t(this, Vt).unobserve(), t(this, Ut).unobserve(), t(this, Kt).unobserve(), b(this, Pe, Ze).call(this);
|
|
451
459
|
}
|
|
452
460
|
};
|
|
453
461
|
S = /* @__PURE__ */ new WeakMap();
|
|
462
|
+
It = /* @__PURE__ */ new WeakMap();
|
|
454
463
|
A = /* @__PURE__ */ new WeakMap();
|
|
455
464
|
et = /* @__PURE__ */ new WeakMap();
|
|
456
465
|
Q = /* @__PURE__ */ new WeakMap();
|
|
457
466
|
st = /* @__PURE__ */ new WeakMap();
|
|
458
|
-
bt = /* @__PURE__ */ new WeakMap();
|
|
459
467
|
wt = /* @__PURE__ */ new WeakMap();
|
|
468
|
+
_t = /* @__PURE__ */ new WeakMap();
|
|
460
469
|
K = /* @__PURE__ */ new WeakMap();
|
|
461
470
|
T = /* @__PURE__ */ new WeakMap();
|
|
462
|
-
Rt = /* @__PURE__ */ new WeakMap();
|
|
463
|
-
Tt = /* @__PURE__ */ new WeakMap();
|
|
464
|
-
It = /* @__PURE__ */ new WeakMap();
|
|
465
471
|
Bt = /* @__PURE__ */ new WeakMap();
|
|
466
|
-
ae = /* @__PURE__ */ new WeakMap();
|
|
467
|
-
nt = /* @__PURE__ */ new WeakMap();
|
|
468
472
|
Ht = /* @__PURE__ */ new WeakMap();
|
|
469
|
-
_t = /* @__PURE__ */ new WeakMap();
|
|
470
|
-
Lt = /* @__PURE__ */ new WeakMap();
|
|
471
473
|
Gt = /* @__PURE__ */ new WeakMap();
|
|
472
474
|
qt = /* @__PURE__ */ new WeakMap();
|
|
475
|
+
ce = /* @__PURE__ */ new WeakMap();
|
|
476
|
+
nt = /* @__PURE__ */ new WeakMap();
|
|
477
|
+
Nt = /* @__PURE__ */ new WeakMap();
|
|
478
|
+
Ct = /* @__PURE__ */ new WeakMap();
|
|
479
|
+
at = /* @__PURE__ */ new WeakMap();
|
|
480
|
+
Vt = /* @__PURE__ */ new WeakMap();
|
|
481
|
+
Ut = /* @__PURE__ */ new WeakMap();
|
|
482
|
+
Kt = /* @__PURE__ */ new WeakMap();
|
|
473
483
|
g = /* @__PURE__ */ new WeakMap();
|
|
474
|
-
|
|
484
|
+
Be = /* @__PURE__ */ new WeakMap();
|
|
475
485
|
c = /* @__PURE__ */ new WeakMap();
|
|
476
|
-
|
|
477
|
-
|
|
486
|
+
ye = /* @__PURE__ */ new WeakMap();
|
|
487
|
+
ke = /* @__PURE__ */ new WeakMap();
|
|
478
488
|
M = /* @__PURE__ */ new WeakMap();
|
|
479
489
|
C = /* @__PURE__ */ new WeakMap();
|
|
480
490
|
I = /* @__PURE__ */ new WeakMap();
|
|
481
491
|
X = /* @__PURE__ */ new WeakMap();
|
|
482
|
-
|
|
483
|
-
|
|
492
|
+
Ft = /* @__PURE__ */ new WeakMap();
|
|
493
|
+
ft = /* @__PURE__ */ new WeakMap();
|
|
484
494
|
F = /* @__PURE__ */ new WeakMap();
|
|
485
495
|
k = /* @__PURE__ */ new WeakMap();
|
|
496
|
+
ue = /* @__PURE__ */ new WeakMap();
|
|
497
|
+
yt = /* @__PURE__ */ new WeakMap();
|
|
498
|
+
ae = /* @__PURE__ */ new WeakMap();
|
|
486
499
|
oe = /* @__PURE__ */ new WeakMap();
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
ve = function() {
|
|
492
|
-
_(this, $t, te).call(this), t(this, Te).assignedElements().forEach((e) => {
|
|
493
|
-
e instanceof HTMLElement && t(this, c).push(new si(e, this));
|
|
500
|
+
ee = /* @__PURE__ */ new WeakSet();
|
|
501
|
+
ge = function() {
|
|
502
|
+
b(this, Dt, ie).call(this), t(this, Be).assignedElements().forEach((e) => {
|
|
503
|
+
e instanceof HTMLElement && t(this, c).push(new ri(e, this));
|
|
494
504
|
}), t(this, g).style.transform = "", this.dispatchEvent(
|
|
495
505
|
new CustomEvent("sectionsChange", {
|
|
496
506
|
composed: !0
|
|
497
507
|
})
|
|
498
|
-
), t(this, B).call(this),
|
|
508
|
+
), t(this, B).call(this), b(this, zt, se).call(this);
|
|
499
509
|
};
|
|
500
|
-
|
|
501
|
-
|
|
510
|
+
Dt = /* @__PURE__ */ new WeakSet();
|
|
511
|
+
ie = function() {
|
|
502
512
|
t(this, c).forEach((e) => {
|
|
503
513
|
e.destroy();
|
|
504
|
-
}),
|
|
514
|
+
}), _(this, c, []), t(this, k).current = 0, t(this, S).reset(), this.dispatchEvent(
|
|
505
515
|
new CustomEvent("sectionsChange", {
|
|
506
516
|
composed: !0
|
|
507
517
|
})
|
|
508
518
|
);
|
|
509
519
|
};
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
t(this,
|
|
520
|
+
He = /* @__PURE__ */ new WeakSet();
|
|
521
|
+
us = function() {
|
|
522
|
+
t(this, ae) || (_(this, ae, !0), t(this, S).unsubscribe(t(this, Ne)), t(this, S).unlistenAnimationFrame(), t(this, X).disconnect(), t(this, Ft).disconnect(), t(this, ft).disconnect(), t(this, F).disconnect());
|
|
513
523
|
};
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
t(this,
|
|
524
|
+
Ge = /* @__PURE__ */ new WeakSet();
|
|
525
|
+
ps = function() {
|
|
526
|
+
t(this, ae) && (_(this, ae, !1), t(this, S).subscribe(t(this, Ne)), t(this, X).connect(), t(this, Ft).connect(), t(this, ft).connect(), t(this, nt).current && t(this, F).connect());
|
|
517
527
|
};
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
t(this,
|
|
528
|
+
Pe = /* @__PURE__ */ new WeakSet();
|
|
529
|
+
Ze = function() {
|
|
530
|
+
t(this, oe) || (_(this, oe, !0), ne.unsubscribe(t(this, B)), Ie.unsubscribe(t(this, B)), t(this, S).reset(), b(this, He, us).call(this), t(this, g).style.transform = "", t(this, Q).current && b(this, Dt, ie).call(this), Rt.unregister(this));
|
|
521
531
|
};
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
t(this,
|
|
532
|
+
We = /* @__PURE__ */ new WeakSet();
|
|
533
|
+
Je = function() {
|
|
534
|
+
t(this, oe) && (_(this, oe, !1), t(this, Q).current && b(this, ee, ge).call(this), Rt.register(this), ne.subscribe(t(this, B), as.SCROLL), Ie.subscribe(this, t(this, B)), b(this, Ge, ps).call(this));
|
|
525
535
|
};
|
|
526
536
|
B = /* @__PURE__ */ new WeakMap();
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
t(this, T).current ? (t(this, k).current = e % t(this, c).length, t(this, k).current = t(this, k).current < 0 ? t(this, c).length + t(this, k).current : t(this, k).current) : t(this, k).current =
|
|
537
|
+
Ne = /* @__PURE__ */ new WeakMap();
|
|
538
|
+
Qe = /* @__PURE__ */ new WeakSet();
|
|
539
|
+
Vs = function(e) {
|
|
540
|
+
t(this, T).current ? (t(this, k).current = e % t(this, c).length, t(this, k).current = t(this, k).current < 0 ? t(this, c).length + t(this, k).current : t(this, k).current) : t(this, k).current = Ws(e, 0, this.limit);
|
|
531
541
|
};
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
542
|
+
pe = /* @__PURE__ */ new WeakMap();
|
|
543
|
+
Me = /* @__PURE__ */ new WeakMap();
|
|
544
|
+
Ee = /* @__PURE__ */ new WeakSet();
|
|
545
|
+
Xe = function(e = "current") {
|
|
536
546
|
if (t(this, T).current && t(this, c).length) {
|
|
537
547
|
const i = t(this, S)[e] % (t(this, C) + t(this, M) + t(this, I));
|
|
538
548
|
return i < 0 ? t(this, C) + i + t(this, M) + t(this, I) : i;
|
|
539
549
|
} else
|
|
540
550
|
return t(this, S)[e];
|
|
541
551
|
};
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
if (t(this, c).length) {
|
|
545
|
-
const e = t(this, k).current + t(this,
|
|
552
|
+
zt = /* @__PURE__ */ new WeakSet();
|
|
553
|
+
se = function() {
|
|
554
|
+
if (t(this, at).current && t(this, c).length) {
|
|
555
|
+
const e = t(this, k).current + t(this, Vt).current;
|
|
546
556
|
e === 0 ? this.classList.add("start") : this.classList.remove("start"), e === this.limit ? this.classList.add("end") : this.classList.remove("end"), t(this, c).forEach((i, r) => {
|
|
547
557
|
const h = e - this.limit - 1, n = e + t(this, K).current, p = this.sections.length - n;
|
|
548
558
|
r >= e && r < n || r <= h ? i.mark("current") : r >= n && r < n + p / 2 || r <= h + t(this, K).current ? i.mark("next") : i.mark("previous");
|
|
549
559
|
});
|
|
550
560
|
}
|
|
551
561
|
};
|
|
552
|
-
|
|
553
|
-
|
|
562
|
+
Ye = /* @__PURE__ */ new WeakSet();
|
|
563
|
+
zs = function() {
|
|
554
564
|
let e = null, i = 1 / 0;
|
|
555
565
|
for (let r = 0; r < t(this, c).length; r++) {
|
|
556
566
|
const h = Math.abs(t(this, c)[r].position - this.targetScrollValue);
|
|
@@ -558,41 +568,41 @@ Ls = function() {
|
|
|
558
568
|
}
|
|
559
569
|
return e !== null ? t(this, c)[e] : null;
|
|
560
570
|
};
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
],
|
|
564
|
-
var
|
|
565
|
-
class
|
|
571
|
+
qe = ii([
|
|
572
|
+
le("e-scroll")
|
|
573
|
+
], qe);
|
|
574
|
+
var we;
|
|
575
|
+
class Ue extends xs {
|
|
566
576
|
constructor() {
|
|
567
577
|
super(...arguments);
|
|
568
|
-
z(this,
|
|
578
|
+
z(this, we, null);
|
|
569
579
|
}
|
|
570
580
|
get scrollElement() {
|
|
571
|
-
return a(this,
|
|
581
|
+
return a(this, we);
|
|
572
582
|
}
|
|
573
583
|
connectedCallback() {
|
|
574
|
-
const r =
|
|
575
|
-
r instanceof
|
|
584
|
+
const r = ti(this, qe);
|
|
585
|
+
r instanceof qe ? O(this, we, r) : console.error(this, "e-scroll not found");
|
|
576
586
|
}
|
|
577
587
|
}
|
|
578
|
-
|
|
579
|
-
var
|
|
580
|
-
for (var n = h > 1 ? void 0 : h ?
|
|
588
|
+
we = new WeakMap();
|
|
589
|
+
var ni = Object.defineProperty, ai = Object.getOwnPropertyDescriptor, oi = (e, i, r, h) => {
|
|
590
|
+
for (var n = h > 1 ? void 0 : h ? ai(i, r) : i, p = e.length - 1, d; p >= 0; p--)
|
|
581
591
|
(d = e[p]) && (n = (h ? d(i, r, n) : d(n)) || n);
|
|
582
|
-
return h && n &&
|
|
583
|
-
},
|
|
592
|
+
return h && n && ni(i, r, n), n;
|
|
593
|
+
}, $s = (e, i, r) => {
|
|
584
594
|
if (!i.has(e))
|
|
585
595
|
throw TypeError("Cannot " + r);
|
|
586
|
-
}, f = (e, i, r) => (
|
|
596
|
+
}, f = (e, i, r) => ($s(e, i, "read from private field"), r ? r.call(e) : i.get(e)), N = (e, i, r) => {
|
|
587
597
|
if (i.has(e))
|
|
588
598
|
throw TypeError("Cannot add the same private member more than once");
|
|
589
599
|
i instanceof WeakSet ? i.add(e) : i.set(e, r);
|
|
590
|
-
},
|
|
591
|
-
const
|
|
600
|
+
}, bt = (e, i, r, h) => ($s(e, i, "write to private field"), h ? h.call(e, r) : i.set(e, r), r), fe, R, it, rt, de, Se, Zt, xe, Le, Ve;
|
|
601
|
+
const li = ls({
|
|
592
602
|
":host": {
|
|
593
603
|
display: "inline-block",
|
|
594
604
|
zIndex: "1",
|
|
595
|
-
backgroundColor:
|
|
605
|
+
backgroundColor: bs.colorLight.var
|
|
596
606
|
},
|
|
597
607
|
':host([axis="y"])': {
|
|
598
608
|
position: "absolute",
|
|
@@ -609,7 +619,7 @@ const ai = as({
|
|
|
609
619
|
height: "1vmin"
|
|
610
620
|
},
|
|
611
621
|
".default-thumb": {
|
|
612
|
-
backgroundColor:
|
|
622
|
+
backgroundColor: bs.colorDark.var,
|
|
613
623
|
borderRadius: "1vmin",
|
|
614
624
|
touchAction: "none"
|
|
615
625
|
},
|
|
@@ -617,20 +627,20 @@ const ai = as({
|
|
|
617
627
|
touchAction: "none"
|
|
618
628
|
}
|
|
619
629
|
});
|
|
620
|
-
let
|
|
630
|
+
let gs = class extends Ue {
|
|
621
631
|
constructor() {
|
|
622
|
-
super(), N(this,
|
|
623
|
-
|
|
632
|
+
super(), N(this, fe, null), N(this, R, null), N(this, it, !1), N(this, rt, 0), N(this, de, 0), N(this, Se, 0), N(this, Zt, () => {
|
|
633
|
+
bt(this, it, this.offsetWidth > this.offsetHeight);
|
|
624
634
|
const e = f(this, it) ? this.offsetWidth : this.offsetHeight;
|
|
625
|
-
|
|
626
|
-
}), N(this,
|
|
627
|
-
|
|
628
|
-
}), N(this,
|
|
635
|
+
bt(this, rt, e / ((this.scrollElement.scrollSize + this.scrollElement.viewportSize) / e)), bt(this, rt, Math.max(f(this, rt), 30)), f(this, it) ? (f(this, R).style.width = f(this, rt) + "px", f(this, R).style.height = "100%") : (f(this, R).style.width = "100%", f(this, R).style.height = f(this, rt) + "px"), bt(this, de, e - f(this, rt)), this.scrollElement.scrollSize || (this.style.display = "none");
|
|
636
|
+
}), N(this, xe, () => {
|
|
637
|
+
bt(this, Se, this.scrollElement.currentProgress * f(this, de)), f(this, it) ? f(this, R).style.transform = `translate3d(${f(this, Se)}px, 0px, 0px)` : f(this, R).style.transform = `translate3d(0px, ${f(this, Se)}px, 0px)`;
|
|
638
|
+
}), N(this, Le, () => {
|
|
629
639
|
this.setAttribute("axis", this.scrollElement.axisCSSProperty.current);
|
|
630
|
-
}), N(this,
|
|
631
|
-
document.documentElement.classList.add("grabbing"),
|
|
640
|
+
}), N(this, Ve, (e) => {
|
|
641
|
+
document.documentElement.classList.add("grabbing"), js(
|
|
632
642
|
(h) => {
|
|
633
|
-
const n = f(this, it) ? h.x : h.y, p = this.scrollElement.distance / f(this,
|
|
643
|
+
const n = f(this, it) ? h.x : h.y, p = this.scrollElement.distance / f(this, de), d = (n - r) * p;
|
|
634
644
|
this.scrollElement.setPosition(i + d);
|
|
635
645
|
},
|
|
636
646
|
() => {
|
|
@@ -638,13 +648,13 @@ let ms = class extends qe {
|
|
|
638
648
|
}
|
|
639
649
|
);
|
|
640
650
|
const i = this.scrollElement.targetScrollValue, r = f(this, it) ? e.x : e.y;
|
|
641
|
-
}),
|
|
651
|
+
}), ns && (this.openShadow(li), os(this, {
|
|
642
652
|
slot: "static",
|
|
643
653
|
"drag-dead-zone": "",
|
|
644
654
|
children: [
|
|
645
|
-
|
|
646
|
-
ref: (e) =>
|
|
647
|
-
children:
|
|
655
|
+
Te({
|
|
656
|
+
ref: (e) => bt(this, fe, e),
|
|
657
|
+
children: Ke({ class: "default-thumb" })
|
|
648
658
|
})
|
|
649
659
|
]
|
|
650
660
|
}));
|
|
@@ -654,164 +664,164 @@ let ms = class extends qe {
|
|
|
654
664
|
}
|
|
655
665
|
connectedCallback() {
|
|
656
666
|
super.connectedCallback();
|
|
657
|
-
const e = f(this,
|
|
658
|
-
|
|
667
|
+
const e = f(this, fe).assignedElements()[0] || f(this, fe).firstElementChild;
|
|
668
|
+
bt(this, R, e), f(this, R).addEventListener("pointerdown", f(this, Ve)), ne.subscribe(f(this, Zt), as.SCROLL + 1), Ie.subscribe(this, f(this, Zt)), this.scrollElement.onScroll(f(this, xe)), this.scrollElement.axisCSSProperty.subscribe(f(this, Le));
|
|
659
669
|
}
|
|
660
670
|
disconnectedCallback() {
|
|
661
|
-
f(this, R).removeEventListener("pointerdown", f(this,
|
|
671
|
+
f(this, R).removeEventListener("pointerdown", f(this, Ve)), ne.unsubscribe(f(this, Zt)), Ie.unsubscribe(f(this, Zt)), this.scrollElement.offScroll(f(this, xe)), this.scrollElement.axisCSSProperty.unsubscribe(f(this, Le));
|
|
662
672
|
}
|
|
663
673
|
};
|
|
664
|
-
|
|
674
|
+
fe = /* @__PURE__ */ new WeakMap();
|
|
665
675
|
R = /* @__PURE__ */ new WeakMap();
|
|
666
676
|
it = /* @__PURE__ */ new WeakMap();
|
|
667
677
|
rt = /* @__PURE__ */ new WeakMap();
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
Me = /* @__PURE__ */ new WeakMap();
|
|
672
|
-
Ee = /* @__PURE__ */ new WeakMap();
|
|
678
|
+
de = /* @__PURE__ */ new WeakMap();
|
|
679
|
+
Se = /* @__PURE__ */ new WeakMap();
|
|
680
|
+
Zt = /* @__PURE__ */ new WeakMap();
|
|
673
681
|
xe = /* @__PURE__ */ new WeakMap();
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
682
|
+
Le = /* @__PURE__ */ new WeakMap();
|
|
683
|
+
Ve = /* @__PURE__ */ new WeakMap();
|
|
684
|
+
gs = oi([
|
|
685
|
+
le("e-scrollbar")
|
|
686
|
+
], gs);
|
|
687
|
+
const ci = ls({
|
|
678
688
|
button: {
|
|
679
689
|
all: "inherit"
|
|
680
690
|
}
|
|
681
691
|
});
|
|
682
|
-
class
|
|
692
|
+
class Fs extends Ue {
|
|
683
693
|
constructor() {
|
|
684
|
-
super(), this.openShadow(
|
|
694
|
+
super(), this.openShadow(ci), ns && os(this, {
|
|
685
695
|
children: [
|
|
686
|
-
|
|
696
|
+
Xs({
|
|
687
697
|
onClick: () => {
|
|
688
698
|
this.handleClick();
|
|
689
699
|
},
|
|
690
|
-
children: [
|
|
700
|
+
children: [Te()]
|
|
691
701
|
})
|
|
692
702
|
]
|
|
693
703
|
});
|
|
694
704
|
}
|
|
695
705
|
}
|
|
696
|
-
var
|
|
697
|
-
for (var n = h > 1 ? void 0 : h ?
|
|
706
|
+
var ui = Object.defineProperty, pi = Object.getOwnPropertyDescriptor, fi = (e, i, r, h) => {
|
|
707
|
+
for (var n = h > 1 ? void 0 : h ? pi(i, r) : i, p = e.length - 1, d; p >= 0; p--)
|
|
698
708
|
(d = e[p]) && (n = (h ? d(i, r, n) : d(n)) || n);
|
|
699
|
-
return h && n &&
|
|
709
|
+
return h && n && ui(i, r, n), n;
|
|
700
710
|
};
|
|
701
|
-
let
|
|
711
|
+
let ws = class extends Fs {
|
|
702
712
|
handleClick() {
|
|
703
713
|
const e = this.getAttribute("index"), i = this.getAttribute("behaviour");
|
|
704
714
|
this.scrollElement.scrollToSection(parseInt(e || "0"), i);
|
|
705
715
|
}
|
|
706
716
|
};
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
],
|
|
710
|
-
var
|
|
711
|
-
for (var n = h > 1 ? void 0 : h ?
|
|
717
|
+
ws = fi([
|
|
718
|
+
le("e-scroll-set-button")
|
|
719
|
+
], ws);
|
|
720
|
+
var di = Object.defineProperty, Si = Object.getOwnPropertyDescriptor, vi = (e, i, r, h) => {
|
|
721
|
+
for (var n = h > 1 ? void 0 : h ? Si(i, r) : i, p = e.length - 1, d; p >= 0; p--)
|
|
712
722
|
(d = e[p]) && (n = (h ? d(i, r, n) : d(n)) || n);
|
|
713
|
-
return h && n &&
|
|
723
|
+
return h && n && di(i, r, n), n;
|
|
714
724
|
};
|
|
715
|
-
let
|
|
725
|
+
let _s = class extends Fs {
|
|
716
726
|
handleClick() {
|
|
717
727
|
const e = this.getAttribute("step"), i = this.getAttribute("behaviour");
|
|
718
728
|
this.scrollElement.shiftSections(parseInt(e || "1"), i);
|
|
719
729
|
}
|
|
720
730
|
};
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
],
|
|
724
|
-
var
|
|
725
|
-
for (var n = h > 1 ? void 0 : h ?
|
|
731
|
+
_s = vi([
|
|
732
|
+
le("e-scroll-step-button")
|
|
733
|
+
], _s);
|
|
734
|
+
var mi = Object.defineProperty, bi = Object.getOwnPropertyDescriptor, gi = (e, i, r, h) => {
|
|
735
|
+
for (var n = h > 1 ? void 0 : h ? bi(i, r) : i, p = e.length - 1, d; p >= 0; p--)
|
|
726
736
|
(d = e[p]) && (n = (h ? d(i, r, n) : d(n)) || n);
|
|
727
|
-
return h && n &&
|
|
728
|
-
},
|
|
737
|
+
return h && n && mi(i, r, n), n;
|
|
738
|
+
}, Ds = (e, i, r) => {
|
|
729
739
|
if (!i.has(e))
|
|
730
740
|
throw TypeError("Cannot " + r);
|
|
731
|
-
},
|
|
741
|
+
}, Tt = (e, i, r) => (Ds(e, i, "read from private field"), r ? r.call(e) : i.get(e)), Cs = (e, i, r) => {
|
|
732
742
|
if (i.has(e))
|
|
733
743
|
throw TypeError("Cannot add the same private member more than once");
|
|
734
744
|
i instanceof WeakSet ? i.add(e) : i.set(e, r);
|
|
735
|
-
},
|
|
736
|
-
class
|
|
745
|
+
}, ys = (e, i, r, h) => (Ds(e, i, "write to private field"), h ? h.call(e, r) : i.set(e, r), r), kt, ve, tt, mt, re, _e, Ce, he;
|
|
746
|
+
class wi {
|
|
737
747
|
constructor(i, r, h) {
|
|
738
748
|
z(this, tt, void 0);
|
|
739
|
-
z(this,
|
|
740
|
-
z(this,
|
|
741
|
-
z(this,
|
|
742
|
-
z(this,
|
|
743
|
-
a(this,
|
|
749
|
+
z(this, mt, void 0);
|
|
750
|
+
z(this, re, void 0);
|
|
751
|
+
z(this, _e, void 0);
|
|
752
|
+
z(this, Ce, () => {
|
|
753
|
+
a(this, mt).scrollToSection(a(this, re), a(this, _e));
|
|
744
754
|
});
|
|
745
|
-
z(this,
|
|
755
|
+
z(this, he, () => {
|
|
746
756
|
a(this, tt).classList.toggle(
|
|
747
757
|
"current",
|
|
748
|
-
a(this,
|
|
758
|
+
a(this, mt).counter.current === a(this, re)
|
|
749
759
|
);
|
|
750
760
|
});
|
|
751
|
-
O(this, tt, document.createElement("button")), O(this,
|
|
761
|
+
O(this, tt, document.createElement("button")), O(this, mt, i), O(this, _e, h), O(this, re, r), a(this, tt).addEventListener("click", a(this, Ce)), a(this, mt).counter.subscribe(a(this, he)), a(this, he).call(this);
|
|
752
762
|
}
|
|
753
763
|
get element() {
|
|
754
764
|
return a(this, tt);
|
|
755
765
|
}
|
|
756
766
|
destroy() {
|
|
757
|
-
a(this, tt).removeEventListener("click", a(this,
|
|
767
|
+
a(this, tt).removeEventListener("click", a(this, Ce)), a(this, mt).counter.unsubscribe(a(this, he)), a(this, tt).remove();
|
|
758
768
|
}
|
|
759
769
|
}
|
|
760
|
-
tt = new WeakMap(),
|
|
761
|
-
let
|
|
770
|
+
tt = new WeakMap(), mt = new WeakMap(), re = new WeakMap(), _e = new WeakMap(), Ce = new WeakMap(), he = new WeakMap();
|
|
771
|
+
let ks = class extends Ue {
|
|
762
772
|
constructor() {
|
|
763
|
-
super(...arguments),
|
|
764
|
-
|
|
773
|
+
super(...arguments), Cs(this, kt, []), Cs(this, ve, Ls(() => {
|
|
774
|
+
Tt(this, kt).forEach((e) => e.destroy()), ys(this, kt, []);
|
|
765
775
|
for (let e = 0; e < this.scrollElement.sections.length; e++) {
|
|
766
|
-
const i = new
|
|
776
|
+
const i = new wi(
|
|
767
777
|
this.scrollElement,
|
|
768
778
|
e,
|
|
769
779
|
this.getAttribute("behaviour") || "smooth"
|
|
770
780
|
);
|
|
771
|
-
this.appendChild(i.element),
|
|
781
|
+
this.appendChild(i.element), Tt(this, kt).push(i);
|
|
772
782
|
}
|
|
773
783
|
}, 0));
|
|
774
784
|
}
|
|
775
785
|
connectedCallback() {
|
|
776
786
|
super.connectedCallback(), this.scrollElement.addEventListener(
|
|
777
787
|
"sectionsChange",
|
|
778
|
-
|
|
779
|
-
),
|
|
788
|
+
Tt(this, ve)
|
|
789
|
+
), Tt(this, ve).call(this);
|
|
780
790
|
}
|
|
781
791
|
disconnectedCallback() {
|
|
782
792
|
this.scrollElement.removeEventListener(
|
|
783
793
|
"sectionsChange",
|
|
784
|
-
|
|
785
|
-
),
|
|
794
|
+
Tt(this, ve)
|
|
795
|
+
), Tt(this, kt).forEach((e) => e.destroy()), ys(this, kt, []);
|
|
786
796
|
}
|
|
787
797
|
};
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
],
|
|
793
|
-
var
|
|
794
|
-
for (var n = h > 1 ? void 0 : h ?
|
|
798
|
+
kt = /* @__PURE__ */ new WeakMap();
|
|
799
|
+
ve = /* @__PURE__ */ new WeakMap();
|
|
800
|
+
ks = gi([
|
|
801
|
+
le("e-scroll-bullet-buttons")
|
|
802
|
+
], ks);
|
|
803
|
+
var _i = Object.defineProperty, Ci = Object.getOwnPropertyDescriptor, yi = (e, i, r, h) => {
|
|
804
|
+
for (var n = h > 1 ? void 0 : h ? Ci(i, r) : i, p = e.length - 1, d; p >= 0; p--)
|
|
795
805
|
(d = e[p]) && (n = (h ? d(i, r, n) : d(n)) || n);
|
|
796
|
-
return h && n &&
|
|
797
|
-
},
|
|
806
|
+
return h && n && _i(i, r, n), n;
|
|
807
|
+
}, fs = (e, i, r) => {
|
|
798
808
|
if (!i.has(e))
|
|
799
809
|
throw TypeError("Cannot " + r);
|
|
800
|
-
}, s = (e, i, r) => (
|
|
810
|
+
}, s = (e, i, r) => (fs(e, i, "read from private field"), r ? r.call(e) : i.get(e)), l = (e, i, r) => {
|
|
801
811
|
if (i.has(e))
|
|
802
812
|
throw TypeError("Cannot add the same private member more than once");
|
|
803
813
|
i instanceof WeakSet ? i.add(e) : i.set(e, r);
|
|
804
|
-
}, m = (e, i, r, h) => (
|
|
805
|
-
let
|
|
814
|
+
}, m = (e, i, r, h) => (fs(e, i, "write to private field"), h ? h.call(e, r) : i.set(e, r), r), W = (e, i, r) => (fs(e, i, "access private method"), r), Jt, Qt, Xt, Yt, Pt, Wt, Mt, Et, D, H, G, q, $t, x, ot, lt, ct, ut, pt, E, J, Z, dt, St, Y, ze, v, jt, te, $e, L, xt, $, V, U, me, Ot, P, je, Os, ts, As, es, Rs, ss, Ts, is, Is, rs, Bs, Fe, be, ht, Lt, ds, Hs, Ss, Gs, De, hs, Oe;
|
|
815
|
+
let Ps = class extends Ue {
|
|
806
816
|
constructor() {
|
|
807
|
-
super(), l(this,
|
|
817
|
+
super(), l(this, je), l(this, ts), l(this, es), l(this, ss), l(this, is), l(this, rs), l(this, ht), l(this, ds), l(this, Ss), l(this, De), l(this, Jt, new u(this, "--damping", 20)), l(this, Qt, new u(this, "--mass", 0)), l(this, Xt, new u(this, "--stiffness", 0)), l(this, Yt, new u(this, "--target", "")), l(this, Pt, new u(this, "--disabled", !1)), l(this, Wt, new u(
|
|
808
818
|
this,
|
|
809
819
|
"--distance-offset",
|
|
810
820
|
0,
|
|
811
821
|
{ rawValueCheck: !1 }
|
|
812
|
-
)), l(this,
|
|
822
|
+
)), l(this, Mt, new u(this, "--start-offset", 0, {
|
|
813
823
|
rawValueCheck: !1
|
|
814
|
-
})), l(this,
|
|
824
|
+
})), l(this, Et, new u(
|
|
815
825
|
this,
|
|
816
826
|
"--capture-once",
|
|
817
827
|
!1
|
|
@@ -823,7 +833,7 @@ let ys = class extends qe {
|
|
|
823
833
|
this,
|
|
824
834
|
"--captured-from-finish",
|
|
825
835
|
""
|
|
826
|
-
)), l(this,
|
|
836
|
+
)), l(this, $t, new u(
|
|
827
837
|
this,
|
|
828
838
|
"--released-from-start",
|
|
829
839
|
""
|
|
@@ -831,26 +841,26 @@ let ys = class extends qe {
|
|
|
831
841
|
this,
|
|
832
842
|
"--released-from-finish",
|
|
833
843
|
""
|
|
834
|
-
)), l(this,
|
|
835
|
-
s(this, P) || (this.resize(), s(this,
|
|
836
|
-
}), l(this,
|
|
837
|
-
!s(this, P) && s(this,
|
|
838
|
-
}), l(this,
|
|
839
|
-
const e =
|
|
844
|
+
)), l(this, ot, new u(this, "--passed-var", "")), l(this, lt, new u(this, "--progress-var", "")), l(this, ct, new u(this, "--distance-var", "")), l(this, ut, new u(this, "--start-var", "")), l(this, pt, new u(this, "--finish-var", "")), l(this, E, new gt(!1)), l(this, J, new gt(!1)), l(this, Z, new gt(!1)), l(this, dt, new gt(!1)), l(this, St, new gt(!1)), l(this, Y, new gt(!1)), l(this, ze, []), l(this, v, this), l(this, jt, 0), l(this, te, 0), l(this, $e, 0), l(this, L, new Es(0, { order: Ms.SCROLL - 1, min: 0, max: 1 })), l(this, xt, 0), l(this, $, 0), l(this, V, 0), l(this, U, 0), l(this, me, !1), l(this, Ot, !1), l(this, P, !0), l(this, Fe, () => {
|
|
845
|
+
s(this, P) || (this.resize(), s(this, be).call(this));
|
|
846
|
+
}), l(this, be, () => {
|
|
847
|
+
!s(this, P) && s(this, me) && this.tick();
|
|
848
|
+
}), l(this, Oe, Ls(() => {
|
|
849
|
+
const e = Rt.getAll(this).reverse();
|
|
840
850
|
let i = 0;
|
|
841
851
|
e.forEach((r, h) => {
|
|
842
852
|
r.element === this.scrollElement && (i = h);
|
|
843
|
-
}), m(this,
|
|
853
|
+
}), m(this, ze, e.slice(i + 1));
|
|
844
854
|
}, 0));
|
|
845
855
|
}
|
|
846
856
|
get distanceOffsetCSSProperty() {
|
|
847
|
-
return s(this,
|
|
857
|
+
return s(this, Wt);
|
|
848
858
|
}
|
|
849
859
|
get startOffsetCSSProperty() {
|
|
850
|
-
return s(this,
|
|
860
|
+
return s(this, Mt);
|
|
851
861
|
}
|
|
852
862
|
get captureOnceCSSProperty() {
|
|
853
|
-
return s(this,
|
|
863
|
+
return s(this, Et);
|
|
854
864
|
}
|
|
855
865
|
get capturedCSSProperty() {
|
|
856
866
|
return s(this, D);
|
|
@@ -865,40 +875,40 @@ let ys = class extends qe {
|
|
|
865
875
|
return s(this, q);
|
|
866
876
|
}
|
|
867
877
|
get releasedFromStartCSSProperty() {
|
|
868
|
-
return s(this,
|
|
878
|
+
return s(this, $t);
|
|
869
879
|
}
|
|
870
880
|
get releasedFromFinishCSSProperty() {
|
|
871
881
|
return s(this, x);
|
|
872
882
|
}
|
|
873
883
|
get passedVarCSSProperty() {
|
|
874
|
-
return s(this,
|
|
884
|
+
return s(this, ot);
|
|
875
885
|
}
|
|
876
886
|
get progressVarCSSProperty() {
|
|
877
|
-
return s(this,
|
|
887
|
+
return s(this, lt);
|
|
878
888
|
}
|
|
879
889
|
get distanceVarCSSProperty() {
|
|
880
|
-
return s(this,
|
|
890
|
+
return s(this, ct);
|
|
881
891
|
}
|
|
882
892
|
get startVarCSSProperty() {
|
|
883
|
-
return s(this,
|
|
893
|
+
return s(this, ut);
|
|
884
894
|
}
|
|
885
895
|
get finishVarCSSProperty() {
|
|
886
|
-
return s(this,
|
|
896
|
+
return s(this, pt);
|
|
887
897
|
}
|
|
888
898
|
get disabledCSSProperty() {
|
|
889
|
-
return s(this,
|
|
899
|
+
return s(this, Pt);
|
|
890
900
|
}
|
|
891
901
|
get dampingCSSProperty() {
|
|
892
|
-
return s(this,
|
|
902
|
+
return s(this, Jt);
|
|
893
903
|
}
|
|
894
904
|
get massCSSProperty() {
|
|
895
|
-
return s(this,
|
|
905
|
+
return s(this, Qt);
|
|
896
906
|
}
|
|
897
907
|
get stiffnessCSSProperty() {
|
|
898
|
-
return s(this,
|
|
908
|
+
return s(this, Xt);
|
|
899
909
|
}
|
|
900
910
|
get targetCSSProperty() {
|
|
901
|
-
return s(this,
|
|
911
|
+
return s(this, Yt);
|
|
902
912
|
}
|
|
903
913
|
get isCaptured() {
|
|
904
914
|
return s(this, E);
|
|
@@ -910,25 +920,25 @@ let ys = class extends qe {
|
|
|
910
920
|
return s(this, Z);
|
|
911
921
|
}
|
|
912
922
|
get isReleasedFromStart() {
|
|
913
|
-
return s(this,
|
|
923
|
+
return s(this, dt);
|
|
914
924
|
}
|
|
915
925
|
get isCapturedFromFinish() {
|
|
916
|
-
return s(this,
|
|
926
|
+
return s(this, St);
|
|
917
927
|
}
|
|
918
928
|
get isReleasedFromFinish() {
|
|
919
929
|
return s(this, Y);
|
|
920
930
|
}
|
|
921
931
|
get directionPosition() {
|
|
922
|
-
return s(this,
|
|
932
|
+
return s(this, jt);
|
|
923
933
|
}
|
|
924
934
|
get directionSize() {
|
|
925
|
-
return s(this,
|
|
935
|
+
return s(this, te);
|
|
926
936
|
}
|
|
927
937
|
get passed() {
|
|
928
938
|
return s(this, L);
|
|
929
939
|
}
|
|
930
940
|
get progress() {
|
|
931
|
-
return s(this,
|
|
941
|
+
return s(this, xt);
|
|
932
942
|
}
|
|
933
943
|
get start() {
|
|
934
944
|
return s(this, $);
|
|
@@ -940,86 +950,86 @@ let ys = class extends qe {
|
|
|
940
950
|
return s(this, V);
|
|
941
951
|
}
|
|
942
952
|
get isCapturedOnce() {
|
|
943
|
-
return s(this,
|
|
953
|
+
return s(this, Ot);
|
|
944
954
|
}
|
|
945
955
|
get isDisabled() {
|
|
946
956
|
return s(this, P);
|
|
947
957
|
}
|
|
948
958
|
resize() {
|
|
949
|
-
m(this,
|
|
959
|
+
m(this, te, this.scrollElement.vertical ? this.offsetHeight : this.offsetWidth), m(this, jt, this.scrollElement.vertical ? Ae(this, this.scrollElement) : Re(this, this.scrollElement)), m(this, $, this.getStart()), m(this, V, this.getDistance()), m(this, $, s(this, $) + s(this, Mt).current), m(this, V, s(this, V) + s(this, Wt).current), m(this, U, s(this, $) + s(this, V)), this.scrollElement.currentScrollValue > s(this, U) && !s(this, E).current && !s(this, J).current && (s(this, E).current = !0), this.setVar(s(this, ut).current, s(this, $)), this.setVar(s(this, pt).current, s(this, U)), this.setVar(s(this, ct).current, s(this, V)), s(this, L).max = s(this, V), m(this, me, !0);
|
|
950
960
|
}
|
|
951
961
|
tick() {
|
|
952
962
|
let e = this.scrollElement.currentScrollValue;
|
|
953
|
-
s(this,
|
|
963
|
+
s(this, ze).forEach((r) => {
|
|
954
964
|
e += r.value;
|
|
955
965
|
}), s(this, L).set(e - s(this, $));
|
|
956
966
|
const i = Math.round(e);
|
|
957
|
-
s(this, E).current && (i > s(this, $) ? s(this, Z).current || W(this,
|
|
958
|
-
|
|
959
|
-
), W(this,
|
|
967
|
+
s(this, E).current && (i > s(this, $) ? s(this, Z).current || W(this, es, Rs).call(this) : s(this, Z).current && !s(this, dt).current && W(this, is, Is).call(this), i < s(this, U) ? s(this, Y).current && !s(this, St).current && W(this, ss, Ts).call(this) : s(this, Z).current && !s(this, Y).current && W(this, rs, Bs).call(this)), i > s(this, $) && i < s(this, U) ? s(this, E).current || W(this, je, Os).call(this) : s(this, E).current && (s(this, L).set(
|
|
968
|
+
Us(s(this, V) / 2, s(this, L).current, 0, s(this, V))
|
|
969
|
+
), W(this, ts, As).call(this)), s(this, Ot) && s(this, Et).current && (s(this, D).current && s(this, v).classList.add(s(this, D).current), m(this, P, !0));
|
|
960
970
|
}
|
|
961
971
|
disable() {
|
|
962
|
-
this.style.cssText = "", m(this,
|
|
972
|
+
this.style.cssText = "", m(this, jt, 0), m(this, te, 0), s(this, L).reset(), m(this, xt, 0), m(this, $, 0), m(this, V, 0), m(this, U, 0), m(this, me, !1), s(this, E).current = !1, s(this, J).current = !1, s(this, Z).current = !1, s(this, dt).current = !1, s(this, St).current = !1, s(this, Y).current = !1, m(this, Ot, !1), m(this, P, !0), W(this, De, hs).call(this);
|
|
963
973
|
}
|
|
964
974
|
enable() {
|
|
965
975
|
m(this, P, !1);
|
|
966
976
|
}
|
|
967
977
|
connectedCallback() {
|
|
968
|
-
super.connectedCallback(), s(this,
|
|
978
|
+
super.connectedCallback(), s(this, Jt).observe(), s(this, Qt).observe(), s(this, Xt).observe(), s(this, Yt).observe(), s(this, Pt).observe(), s(this, Wt).observe(), s(this, Mt).observe(), s(this, Et).observe(), s(this, D).observe(), s(this, H).observe(), s(this, G).observe(), s(this, q).observe(), s(this, $t).observe(), s(this, x).observe(), s(this, ot).observe(), s(this, lt).observe(), s(this, ct).observe(), s(this, ut).observe(), s(this, pt).observe();
|
|
969
979
|
let e = !1;
|
|
970
980
|
this.scrollElement.addEventListener(
|
|
971
981
|
"sectionsChange",
|
|
972
|
-
s(this,
|
|
973
|
-
), s(this,
|
|
982
|
+
s(this, Oe)
|
|
983
|
+
), s(this, Oe).call(this), s(this, Pt).current || this.enable(), s(this, Jt).subscribe((i) => {
|
|
974
984
|
s(this, L).damping = i.current;
|
|
975
|
-
}), s(this,
|
|
985
|
+
}), s(this, Qt).subscribe((i) => {
|
|
976
986
|
s(this, L).mass = i.current;
|
|
977
|
-
}), s(this,
|
|
987
|
+
}), s(this, Xt).subscribe((i) => {
|
|
978
988
|
s(this, L).stiffness = i.current;
|
|
979
|
-
}), s(this,
|
|
980
|
-
i.previous && W(this,
|
|
981
|
-
}), s(this,
|
|
989
|
+
}), s(this, Yt).subscribe((i) => {
|
|
990
|
+
i.previous && W(this, De, hs).call(this), i.current ? i.current === "parent" ? m(this, v, this.parentElement || this) : m(this, v, document.querySelector(i.current) || this) : m(this, v, this);
|
|
991
|
+
}), s(this, Pt).subscribe((i) => {
|
|
982
992
|
i.current && !i.previous ? this.disable() : !i.current && i.previous && (this.resize(), this.enable());
|
|
983
|
-
}), s(this,
|
|
993
|
+
}), s(this, Mt).subscribe(() => {
|
|
984
994
|
e && !s(this, P) && this.resize();
|
|
985
|
-
}), s(this,
|
|
995
|
+
}), s(this, Wt).subscribe(() => {
|
|
986
996
|
e && !s(this, P) && this.resize();
|
|
987
997
|
}), s(this, D).subscribe((i) => {
|
|
988
|
-
W(this, ht,
|
|
998
|
+
W(this, ht, Lt).call(this, i);
|
|
989
999
|
}), s(this, G).subscribe((i) => {
|
|
990
|
-
W(this, ht,
|
|
1000
|
+
W(this, ht, Lt).call(this, i);
|
|
991
1001
|
}), s(this, q).subscribe((i) => {
|
|
992
|
-
W(this, ht,
|
|
1002
|
+
W(this, ht, Lt).call(this, i);
|
|
993
1003
|
}), s(this, H).subscribe((i) => {
|
|
994
|
-
W(this, ht,
|
|
995
|
-
}), s(this,
|
|
996
|
-
W(this, ht,
|
|
1004
|
+
W(this, ht, Lt).call(this, i);
|
|
1005
|
+
}), s(this, $t).subscribe((i) => {
|
|
1006
|
+
W(this, ht, Lt).call(this, i);
|
|
997
1007
|
}), s(this, x).subscribe((i) => {
|
|
998
|
-
W(this, ht,
|
|
999
|
-
}), s(this,
|
|
1008
|
+
W(this, ht, Lt).call(this, i);
|
|
1009
|
+
}), s(this, Et).subscribe((i) => {
|
|
1000
1010
|
s(this, P) || !i.current && i.previous && (this.resize(), this.enable());
|
|
1001
|
-
}), s(this, at).subscribe((i) => {
|
|
1002
|
-
s(this, P) || (this.removeVar(i.previous), this.setVar(i.current, this.passed.current));
|
|
1003
1011
|
}), s(this, ot).subscribe((i) => {
|
|
1004
|
-
s(this, P) || (this.removeVar(i.previous), this.setVar(i.current,
|
|
1005
|
-
}), s(this,
|
|
1006
|
-
s(this, P) || (this.removeVar(i.previous), this.setVar(i.current, s(this,
|
|
1012
|
+
s(this, P) || (this.removeVar(i.previous), this.setVar(i.current, this.passed.current));
|
|
1013
|
+
}), s(this, lt).subscribe((i) => {
|
|
1014
|
+
s(this, P) || (this.removeVar(i.previous), this.setVar(i.current, s(this, xt)));
|
|
1007
1015
|
}), s(this, ut).subscribe((i) => {
|
|
1016
|
+
s(this, P) || (this.removeVar(i.previous), this.setVar(i.current, s(this, $)));
|
|
1017
|
+
}), s(this, pt).subscribe((i) => {
|
|
1008
1018
|
s(this, P) || (this.removeVar(i.previous), this.setVar(i.current, s(this, U)));
|
|
1009
|
-
}), s(this,
|
|
1019
|
+
}), s(this, ct).subscribe((i) => {
|
|
1010
1020
|
s(this, P) || (this.removeVar(i.previous), this.setVar(i.current, s(this, V)));
|
|
1011
1021
|
}), s(this, L).subscribe((i) => {
|
|
1012
|
-
m(this,
|
|
1013
|
-
s(this,
|
|
1022
|
+
m(this, xt, s(this, L).current / s(this, V) || 0), this.setVar(
|
|
1023
|
+
s(this, ot).current,
|
|
1014
1024
|
s(this, L).current.toFixed(6)
|
|
1015
1025
|
), this.setVar(
|
|
1016
|
-
s(this,
|
|
1017
|
-
s(this,
|
|
1026
|
+
s(this, lt).current,
|
|
1027
|
+
s(this, xt).toFixed(6)
|
|
1018
1028
|
);
|
|
1019
|
-
}),
|
|
1029
|
+
}), ne.subscribe(s(this, Fe), as.SEGMENT), this.scrollElement.onScroll(s(this, be)), e = !0;
|
|
1020
1030
|
}
|
|
1021
1031
|
disconnectedCallback() {
|
|
1022
|
-
|
|
1032
|
+
ne.unsubscribe(s(this, Fe)), this.scrollElement.offScroll(s(this, be)), s(this, Jt).close(), s(this, Qt).close(), s(this, Xt).close(), s(this, Yt).close(), s(this, Pt).close(), s(this, Wt).close(), s(this, Mt).close(), s(this, Et).close(), s(this, D).close(), s(this, H).close(), s(this, G).close(), s(this, q).close(), s(this, $t).close(), s(this, x).close(), s(this, ot).close(), s(this, lt).close(), s(this, ct).close(), s(this, ut).close(), s(this, pt).close(), s(this, E).close(), s(this, J).close(), s(this, Z).close(), s(this, dt).close(), s(this, St).close(), s(this, Y).close(), this.disable();
|
|
1023
1033
|
}
|
|
1024
1034
|
removeVar(e) {
|
|
1025
1035
|
e && s(this, v).style.removeProperty(`--${e}`);
|
|
@@ -1028,125 +1038,125 @@ let ys = class extends qe {
|
|
|
1028
1038
|
e && s(this, v).style.setProperty(`--${e}`, i.toString());
|
|
1029
1039
|
}
|
|
1030
1040
|
getDistance() {
|
|
1031
|
-
return s(this,
|
|
1041
|
+
return s(this, te) + s(this, $e);
|
|
1032
1042
|
}
|
|
1033
1043
|
getStart() {
|
|
1034
|
-
return s(this,
|
|
1044
|
+
return s(this, jt) - s(this, $e);
|
|
1035
1045
|
}
|
|
1036
1046
|
};
|
|
1037
|
-
Ut = /* @__PURE__ */ new WeakMap();
|
|
1038
|
-
Kt = /* @__PURE__ */ new WeakMap();
|
|
1039
|
-
Zt = /* @__PURE__ */ new WeakMap();
|
|
1040
1047
|
Jt = /* @__PURE__ */ new WeakMap();
|
|
1041
|
-
|
|
1048
|
+
Qt = /* @__PURE__ */ new WeakMap();
|
|
1049
|
+
Xt = /* @__PURE__ */ new WeakMap();
|
|
1050
|
+
Yt = /* @__PURE__ */ new WeakMap();
|
|
1042
1051
|
Pt = /* @__PURE__ */ new WeakMap();
|
|
1043
1052
|
Wt = /* @__PURE__ */ new WeakMap();
|
|
1044
1053
|
Mt = /* @__PURE__ */ new WeakMap();
|
|
1054
|
+
Et = /* @__PURE__ */ new WeakMap();
|
|
1045
1055
|
D = /* @__PURE__ */ new WeakMap();
|
|
1046
1056
|
H = /* @__PURE__ */ new WeakMap();
|
|
1047
1057
|
G = /* @__PURE__ */ new WeakMap();
|
|
1048
1058
|
q = /* @__PURE__ */ new WeakMap();
|
|
1049
|
-
|
|
1059
|
+
$t = /* @__PURE__ */ new WeakMap();
|
|
1050
1060
|
x = /* @__PURE__ */ new WeakMap();
|
|
1051
|
-
at = /* @__PURE__ */ new WeakMap();
|
|
1052
1061
|
ot = /* @__PURE__ */ new WeakMap();
|
|
1053
1062
|
lt = /* @__PURE__ */ new WeakMap();
|
|
1054
1063
|
ct = /* @__PURE__ */ new WeakMap();
|
|
1055
1064
|
ut = /* @__PURE__ */ new WeakMap();
|
|
1065
|
+
pt = /* @__PURE__ */ new WeakMap();
|
|
1056
1066
|
E = /* @__PURE__ */ new WeakMap();
|
|
1057
1067
|
J = /* @__PURE__ */ new WeakMap();
|
|
1058
1068
|
Z = /* @__PURE__ */ new WeakMap();
|
|
1059
|
-
ft = /* @__PURE__ */ new WeakMap();
|
|
1060
1069
|
dt = /* @__PURE__ */ new WeakMap();
|
|
1070
|
+
St = /* @__PURE__ */ new WeakMap();
|
|
1061
1071
|
Y = /* @__PURE__ */ new WeakMap();
|
|
1062
|
-
|
|
1072
|
+
ze = /* @__PURE__ */ new WeakMap();
|
|
1063
1073
|
v = /* @__PURE__ */ new WeakMap();
|
|
1064
|
-
|
|
1065
|
-
|
|
1066
|
-
|
|
1074
|
+
jt = /* @__PURE__ */ new WeakMap();
|
|
1075
|
+
te = /* @__PURE__ */ new WeakMap();
|
|
1076
|
+
$e = /* @__PURE__ */ new WeakMap();
|
|
1067
1077
|
L = /* @__PURE__ */ new WeakMap();
|
|
1068
|
-
|
|
1078
|
+
xt = /* @__PURE__ */ new WeakMap();
|
|
1069
1079
|
$ = /* @__PURE__ */ new WeakMap();
|
|
1070
1080
|
V = /* @__PURE__ */ new WeakMap();
|
|
1071
1081
|
U = /* @__PURE__ */ new WeakMap();
|
|
1072
|
-
|
|
1073
|
-
|
|
1082
|
+
me = /* @__PURE__ */ new WeakMap();
|
|
1083
|
+
Ot = /* @__PURE__ */ new WeakMap();
|
|
1074
1084
|
P = /* @__PURE__ */ new WeakMap();
|
|
1075
|
-
|
|
1076
|
-
|
|
1077
|
-
s(this, E).current = !0, s(this, J).current = !1, m(this,
|
|
1085
|
+
je = /* @__PURE__ */ new WeakSet();
|
|
1086
|
+
Os = function() {
|
|
1087
|
+
s(this, E).current = !0, s(this, J).current = !1, m(this, Ot, !0), s(this, H).current && s(this, v).classList.remove(s(this, H).current), s(this, x).current && s(this, v).classList.remove(
|
|
1078
1088
|
s(this, x).current
|
|
1079
1089
|
), s(this, x).current && s(this, v).classList.remove(
|
|
1080
1090
|
s(this, x).current
|
|
1081
1091
|
), s(this, D).current && s(this, v).classList.add(s(this, D).current);
|
|
1082
1092
|
};
|
|
1083
|
-
|
|
1084
|
-
|
|
1085
|
-
s(this, J).current = !0, s(this, E).current = !1, m(this,
|
|
1093
|
+
ts = /* @__PURE__ */ new WeakSet();
|
|
1094
|
+
As = function() {
|
|
1095
|
+
s(this, J).current = !0, s(this, E).current = !1, m(this, Ot, !0), s(this, D).current && s(this, v).classList.remove(s(this, D).current), s(this, G).current && s(this, v).classList.remove(
|
|
1086
1096
|
s(this, G).current
|
|
1087
1097
|
), s(this, q).current && s(this, v).classList.remove(
|
|
1088
1098
|
s(this, q).current
|
|
1089
1099
|
), s(this, H).current && s(this, v).classList.add(s(this, H).current);
|
|
1090
1100
|
};
|
|
1091
|
-
|
|
1092
|
-
|
|
1093
|
-
s(this, E).current = !0, s(this, Z).current = !0, s(this,
|
|
1101
|
+
es = /* @__PURE__ */ new WeakSet();
|
|
1102
|
+
Rs = function() {
|
|
1103
|
+
s(this, E).current = !0, s(this, Z).current = !0, s(this, dt).current = !1, s(this, G).current && s(this, v).classList.add(
|
|
1094
1104
|
s(this, G).current
|
|
1095
1105
|
);
|
|
1096
1106
|
};
|
|
1097
|
-
|
|
1098
|
-
|
|
1099
|
-
s(this, E).current = !0, s(this,
|
|
1107
|
+
ss = /* @__PURE__ */ new WeakSet();
|
|
1108
|
+
Ts = function() {
|
|
1109
|
+
s(this, E).current = !0, s(this, St).current = !0, s(this, Y).current = !1, s(this, q).current && s(this, v).classList.add(
|
|
1100
1110
|
s(this, q).current
|
|
1101
1111
|
);
|
|
1102
1112
|
};
|
|
1103
|
-
|
|
1104
|
-
|
|
1105
|
-
s(this, J).current = !0, s(this,
|
|
1113
|
+
is = /* @__PURE__ */ new WeakSet();
|
|
1114
|
+
Is = function() {
|
|
1115
|
+
s(this, J).current = !0, s(this, dt).current = !0, s(this, Z).current = !1, s(this, x).current && s(this, v).classList.add(
|
|
1106
1116
|
s(this, x).current
|
|
1107
1117
|
);
|
|
1108
1118
|
};
|
|
1109
|
-
|
|
1110
|
-
|
|
1111
|
-
s(this, J).current = !0, s(this, Y).current = !0, s(this,
|
|
1119
|
+
rs = /* @__PURE__ */ new WeakSet();
|
|
1120
|
+
Bs = function() {
|
|
1121
|
+
s(this, J).current = !0, s(this, Y).current = !0, s(this, St).current = !1, s(this, x).current && s(this, v).classList.add(
|
|
1112
1122
|
s(this, x).current
|
|
1113
1123
|
);
|
|
1114
1124
|
};
|
|
1115
|
-
|
|
1116
|
-
|
|
1125
|
+
Fe = /* @__PURE__ */ new WeakMap();
|
|
1126
|
+
be = /* @__PURE__ */ new WeakMap();
|
|
1117
1127
|
ht = /* @__PURE__ */ new WeakSet();
|
|
1118
|
-
|
|
1128
|
+
Lt = function(e) {
|
|
1119
1129
|
if (s(this, P)) {
|
|
1120
1130
|
e.previous && s(this, v).classList.remove(e.previous), e.current && s(this, v).classList.remove(e.current);
|
|
1121
1131
|
return;
|
|
1122
1132
|
}
|
|
1123
1133
|
e.current && s(this, E).current ? (e.previous && s(this, v).classList.remove(e.previous), s(this, v).classList.add(e.current)) : !e.current && e.previous && s(this, v).classList.remove(e.previous);
|
|
1124
1134
|
};
|
|
1125
|
-
|
|
1126
|
-
|
|
1135
|
+
ds = /* @__PURE__ */ new WeakSet();
|
|
1136
|
+
Hs = function(...e) {
|
|
1127
1137
|
e.forEach((i) => {
|
|
1128
1138
|
i && s(this, v).classList.remove(i);
|
|
1129
1139
|
});
|
|
1130
1140
|
};
|
|
1131
|
-
|
|
1132
|
-
|
|
1141
|
+
Ss = /* @__PURE__ */ new WeakSet();
|
|
1142
|
+
Gs = function(...e) {
|
|
1133
1143
|
e.forEach((i) => {
|
|
1134
1144
|
i && s(this, v).style.removeProperty(`--${i}`);
|
|
1135
1145
|
});
|
|
1136
1146
|
};
|
|
1137
|
-
|
|
1138
|
-
|
|
1139
|
-
W(this,
|
|
1147
|
+
De = /* @__PURE__ */ new WeakSet();
|
|
1148
|
+
hs = function() {
|
|
1149
|
+
W(this, ds, Hs).call(this, s(this, D).current, s(this, G).current, s(this, q).current, s(this, H).current, s(this, $t).current, s(this, x).current), W(this, Ss, Gs).call(this, s(this, ot).current, s(this, lt).current, s(this, ct).current, s(this, ut).current, s(this, pt).current);
|
|
1140
1150
|
};
|
|
1141
|
-
|
|
1142
|
-
|
|
1143
|
-
|
|
1144
|
-
],
|
|
1151
|
+
Oe = /* @__PURE__ */ new WeakMap();
|
|
1152
|
+
Ps = yi([
|
|
1153
|
+
le("e-scroll-segment")
|
|
1154
|
+
], Ps);
|
|
1145
1155
|
export {
|
|
1146
|
-
|
|
1147
|
-
|
|
1148
|
-
|
|
1149
|
-
|
|
1150
|
-
|
|
1151
|
-
|
|
1156
|
+
ks as ScrollBulletButtonsElement,
|
|
1157
|
+
qe as ScrollElement,
|
|
1158
|
+
Ps as ScrollSegmentElement,
|
|
1159
|
+
ws as ScrollSetButtonElement,
|
|
1160
|
+
_s as ScrollStepButtonElement,
|
|
1161
|
+
gs as ScrollbarElement
|
|
1152
1162
|
};
|