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