aptechka 0.50.28 → 0.51.1
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/{Animation-FtUeV8dp.js → Animation-eO5_LIJl.js} +1 -1
- package/lib/{Animation-ChZNIOTS.cjs → Animation-rTojHgyz.cjs} +1 -1
- package/lib/{Damped-B1lXa9nb.cjs → Damped-DgAIjXp3.cjs} +1 -1
- package/lib/{Damped-BXsGpI-B.js → Damped-GyAS-U-z.js} +1 -1
- package/lib/Store-GokLe_g-.cjs +1 -0
- package/lib/Store-swP_0ymB.js +134 -0
- package/lib/{Tweened-BhDWLNF0.js → Tweened-BSC-evuL.js} +1 -1
- package/lib/{Tweened-cJ36zq1A.cjs → Tweened-DpJDlbj9.cjs} +1 -1
- package/lib/animation/index.cjs +1 -1
- package/lib/animation/index.js +3 -3
- package/lib/attribute/index.cjs +1 -1
- package/lib/attribute/index.d.ts +1 -1
- package/lib/attribute/index.js +27 -27
- package/lib/class-linked-status/index.cjs +1 -1
- package/lib/class-linked-status/index.js +1 -1
- package/lib/controls/index.cjs +1 -1
- package/lib/controls/index.js +2 -2
- package/lib/css-property/index.cjs +1 -1
- package/lib/css-property/index.d.ts +1 -1
- package/lib/css-property/index.js +28 -28
- package/lib/dev/index.cjs +1 -1
- package/lib/dev/index.js +1 -1
- package/lib/device/index.cjs +1 -1
- package/lib/device/index.js +1 -1
- package/lib/iframe/index.cjs +1 -1
- package/lib/iframe/index.js +1 -1
- package/lib/image/index.cjs +1 -1
- package/lib/image/index.js +1 -1
- package/lib/ladder/index.cjs +1 -1
- package/lib/ladder/index.js +1 -1
- package/lib/media/index.cjs +1 -1
- package/lib/media/index.js +1 -1
- package/lib/need_redo_tweaker/index.cjs +1 -1
- package/lib/need_redo_tweaker/index.js +1 -1
- package/lib/notifier/index.cjs +1 -1
- package/lib/notifier/index.d.ts +6 -0
- package/lib/notifier/index.js +21 -15
- package/lib/pointer/index.cjs +1 -1
- package/lib/pointer/index.js +2 -2
- package/lib/scroll/index.cjs +1 -1
- package/lib/scroll/index.js +233 -232
- package/lib/scroll-segment/index.cjs +1 -1
- package/lib/scroll-segment/index.js +3 -3
- package/lib/sequence/index.cjs +1 -1
- package/lib/sequence/index.js +1 -1
- package/lib/source/index.cjs +1 -1
- package/lib/source/index.js +1 -1
- package/lib/store/Store.d.ts +3 -2
- package/lib/store/index.cjs +1 -1
- package/lib/store/index.js +2 -2
- package/lib/video/index.cjs +1 -1
- package/lib/video/index.js +1 -1
- package/lib/youtube/index.cjs +1 -1
- package/lib/youtube/index.js +1 -1
- package/package.json +1 -1
- package/lib/Store-D2xCXENW.js +0 -134
- package/lib/Store-DRp_K37w.cjs +0 -1
package/lib/scroll/index.js
CHANGED
|
@@ -1,60 +1,60 @@
|
|
|
1
1
|
var We = Object.defineProperty;
|
|
2
2
|
var ke = Object.getOwnPropertySymbols;
|
|
3
3
|
var Fe = Object.prototype.hasOwnProperty, Ne = Object.prototype.propertyIsEnumerable;
|
|
4
|
-
var Me = (
|
|
5
|
-
throw TypeError(
|
|
4
|
+
var Me = (d) => {
|
|
5
|
+
throw TypeError(d);
|
|
6
6
|
};
|
|
7
|
-
var Ae = (
|
|
8
|
-
for (var e in
|
|
9
|
-
Fe.call(
|
|
7
|
+
var Ae = (d, n, e) => n in d ? We(d, n, { enumerable: !0, configurable: !0, writable: !0, value: e }) : d[n] = e, Te = (d, n) => {
|
|
8
|
+
for (var e in n || (n = {}))
|
|
9
|
+
Fe.call(n, e) && Ae(d, e, n[e]);
|
|
10
10
|
if (ke)
|
|
11
|
-
for (var e of ke(
|
|
12
|
-
Ne.call(
|
|
13
|
-
return
|
|
11
|
+
for (var e of ke(n))
|
|
12
|
+
Ne.call(n, e) && Ae(d, e, n[e]);
|
|
13
|
+
return d;
|
|
14
14
|
};
|
|
15
|
-
var ve = (
|
|
16
|
-
var t = (
|
|
17
|
-
import { S as qe } from "../Store-
|
|
15
|
+
var ve = (d, n, e) => n.has(d) || Me("Cannot " + e);
|
|
16
|
+
var t = (d, n, e) => (ve(d, n, "read from private field"), e ? e.call(d) : n.get(d)), s = (d, n, e) => n.has(d) ? Me("Cannot add the same private member more than once") : n instanceof WeakSet ? n.add(d) : n.set(d, e), h = (d, n, e, i) => (ve(d, n, "write to private field"), i ? i.call(d, e) : n.set(d, e), e), l = (d, n, e) => (ve(d, n, "access private method"), e);
|
|
17
|
+
import { S as qe } from "../Store-swP_0ymB.js";
|
|
18
18
|
import { i as H } from "../index-euf5anj6.js";
|
|
19
19
|
import { a as Ue } from "../easings-Bni3YAAW.js";
|
|
20
|
-
import { d as
|
|
20
|
+
import { d as Yt } from "../events-CsVF98U6.js";
|
|
21
21
|
import { c as Ve } from "../jss-DtnXPEnq.js";
|
|
22
|
-
import { a as
|
|
22
|
+
import { a as ye, g as Ce } from "../layout-DpZo-I0y.js";
|
|
23
23
|
import { c as Re } from "../math-BOBiC4TN.js";
|
|
24
24
|
import { l as Ge } from "../number-DwCxt_Ck.js";
|
|
25
25
|
import "../ticker/index.js";
|
|
26
26
|
import { TICK_ORDER as Ke, RESIZE_ORDER as we } from "../order/index.js";
|
|
27
|
-
import { D as _e } from "../Damped-
|
|
28
|
-
import { T as Ze } from "../Tweened-
|
|
27
|
+
import { D as _e } from "../Damped-GyAS-U-z.js";
|
|
28
|
+
import { T as Ze } from "../Tweened-BSC-evuL.js";
|
|
29
29
|
import { WheelControls as je, KeyboardControls as Je, DragControls as Qe, AutoplayControls as Xe } from "../controls/index.js";
|
|
30
|
-
import { windowResizer as
|
|
30
|
+
import { windowResizer as Vt } from "../window-resizer/index.js";
|
|
31
31
|
import { scrollEntries as gt } from "../scroll-entries/index.js";
|
|
32
32
|
import { cssUnitParser as De } from "../css-unit-parser/index.js";
|
|
33
33
|
import { CSSProperty as f } from "../css-property/index.js";
|
|
34
34
|
import { device as Ye } from "../device/index.js";
|
|
35
|
-
import { elementResizer as
|
|
35
|
+
import { elementResizer as ie } from "../element-resizer/index.js";
|
|
36
36
|
import { s as ts } from "../gestures-CcXV6fCp.js";
|
|
37
37
|
import { b as Oe } from "../dom-CVWzyXPH.js";
|
|
38
38
|
import { d as es } from "../function-C10DGppn.js";
|
|
39
39
|
import { ScrollSegmentElement as ss } from "../scroll-segment/index.js";
|
|
40
|
-
var b,
|
|
40
|
+
var b, Ot, g, vt, $, Y, yt, Ct, te;
|
|
41
41
|
class is {
|
|
42
|
-
constructor(
|
|
43
|
-
s(this,
|
|
42
|
+
constructor(n, e, i) {
|
|
43
|
+
s(this, Ct);
|
|
44
44
|
s(this, b);
|
|
45
|
-
s(this,
|
|
45
|
+
s(this, Ot);
|
|
46
46
|
s(this, g);
|
|
47
47
|
s(this, vt, 0);
|
|
48
48
|
s(this, $, 0);
|
|
49
49
|
s(this, Y, null);
|
|
50
|
-
s(this,
|
|
51
|
-
h(this, b,
|
|
50
|
+
s(this, yt, 0);
|
|
51
|
+
h(this, b, n), h(this, Ot, e), h(this, g, i), gt.register(t(this, b)), this.setIndex(t(this, Ot));
|
|
52
52
|
}
|
|
53
53
|
get element() {
|
|
54
54
|
return t(this, b);
|
|
55
55
|
}
|
|
56
56
|
get index() {
|
|
57
|
-
return t(this,
|
|
57
|
+
return t(this, Ot);
|
|
58
58
|
}
|
|
59
59
|
get size() {
|
|
60
60
|
return t(this, vt);
|
|
@@ -63,7 +63,7 @@ class is {
|
|
|
63
63
|
return t(this, $);
|
|
64
64
|
}
|
|
65
65
|
get transformPosition() {
|
|
66
|
-
return t(this,
|
|
66
|
+
return t(this, yt);
|
|
67
67
|
}
|
|
68
68
|
destroy() {
|
|
69
69
|
gt.unregister(t(this, b)), this.unsetTransform();
|
|
@@ -71,27 +71,26 @@ class is {
|
|
|
71
71
|
unsetTransform() {
|
|
72
72
|
t(this, b).style.transform = "", this.setMark(null), this.setIndex(null), this.setCurrentIndex(null), this.setCurrentIndexArc(null), this.setCurrentIndexArcAbs(null), this.setMiddle(!1), this.setSize();
|
|
73
73
|
}
|
|
74
|
-
setSize(
|
|
75
|
-
|
|
74
|
+
setSize(n) {
|
|
75
|
+
n ? (t(this, b).style.setProperty("--size", n + "px"), t(this, g).axisCSSProperty.current === "x" ? (t(this, b).style.width = n + "px", t(this, b).style.height = "") : (t(this, b).style.height = n + "px", t(this, b).style.width = "")) : (t(this, b).style.width = "", t(this, b).style.height = "", t(this, b).style.removeProperty("--size"));
|
|
76
76
|
}
|
|
77
77
|
resize() {
|
|
78
|
-
h(this, vt, t(this, g).vertical ? t(this, b).offsetHeight : t(this, b).offsetWidth), h(this, $, t(this, g).vertical ?
|
|
78
|
+
h(this, vt, t(this, g).vertical ? t(this, b).offsetHeight : t(this, b).offsetWidth), h(this, $, t(this, g).vertical ? ye(t(this, b)) : Ce(t(this, b))), h(this, $, t(this, $) - t(this, g).contentPosition);
|
|
79
79
|
}
|
|
80
80
|
transform() {
|
|
81
|
-
const
|
|
82
|
-
|
|
83
|
-
let e = r;
|
|
81
|
+
const n = t(this, g).shiftSectionPositionCSSProperty.current;
|
|
82
|
+
let e = n;
|
|
84
83
|
const i = t(this, g).viewportSize * t(this, g).sectionDistanceScaleCSSProperty.current;
|
|
85
|
-
t(this, g).loopCSSProperty.current && t(this, $) + t(this, vt) < t(this, g).currentScrollValue -
|
|
84
|
+
t(this, g).loopCSSProperty.current && t(this, $) + t(this, vt) < t(this, g).currentScrollValue - n && (e = (t(this, g).distance - n) * -1 - t(this, g).gap), gt.update(
|
|
86
85
|
t(this, b),
|
|
87
86
|
t(this, g).axisCSSProperty.current,
|
|
88
87
|
e
|
|
89
88
|
);
|
|
90
|
-
const
|
|
91
|
-
h(this,
|
|
89
|
+
const r = t(this, g).currentScrollValue + e, a = t(this, $) - t(this, g).viewportSize - i, m = t(this, $) + t(this, vt) + i, v = Re(r, a, m);
|
|
90
|
+
h(this, yt, v * -1), t(this, g).vertical ? t(this, b).style.transform = `translate3d(0px, ${t(this, yt)}px, 0px)` : t(this, b).style.transform = `translate3d(${t(this, yt)}px, 0px, 0px)`;
|
|
92
91
|
}
|
|
93
|
-
setMark(
|
|
94
|
-
t(this, Y) !==
|
|
92
|
+
setMark(n) {
|
|
93
|
+
t(this, Y) !== n && (t(this, Y) && t(this, b).classList.remove(t(this, Y)), n && t(this, b).classList.add(n), h(this, Y, n), Yt(t(this, b), "scrollSectionMarkChange", {
|
|
95
94
|
composed: !0,
|
|
96
95
|
detail: {
|
|
97
96
|
mark: t(this, Y)
|
|
@@ -99,24 +98,24 @@ class is {
|
|
|
99
98
|
custom: !0
|
|
100
99
|
}));
|
|
101
100
|
}
|
|
102
|
-
setMiddle(
|
|
103
|
-
t(this, b).classList.toggle("middle",
|
|
101
|
+
setMiddle(n) {
|
|
102
|
+
t(this, b).classList.toggle("middle", n);
|
|
104
103
|
}
|
|
105
|
-
setIndex(
|
|
106
|
-
l(this,
|
|
104
|
+
setIndex(n) {
|
|
105
|
+
l(this, Ct, te).call(this, "index", n);
|
|
107
106
|
}
|
|
108
|
-
setCurrentIndex(
|
|
109
|
-
l(this,
|
|
107
|
+
setCurrentIndex(n) {
|
|
108
|
+
l(this, Ct, te).call(this, "current-index", n);
|
|
110
109
|
}
|
|
111
|
-
setCurrentIndexArc(
|
|
112
|
-
l(this,
|
|
110
|
+
setCurrentIndexArc(n) {
|
|
111
|
+
l(this, Ct, te).call(this, "current-index-arc", n);
|
|
113
112
|
}
|
|
114
|
-
setCurrentIndexArcAbs(
|
|
115
|
-
l(this,
|
|
113
|
+
setCurrentIndexArcAbs(n) {
|
|
114
|
+
l(this, Ct, te).call(this, "current-index-arc-abs", n);
|
|
116
115
|
}
|
|
117
116
|
}
|
|
118
|
-
b = new WeakMap(),
|
|
119
|
-
e !== null ? (t(this, b).style.setProperty(`--${
|
|
117
|
+
b = new WeakMap(), Ot = new WeakMap(), g = new WeakMap(), vt = new WeakMap(), $ = new WeakMap(), Y = new WeakMap(), yt = new WeakMap(), Ct = new WeakSet(), te = function(n, e) {
|
|
118
|
+
e !== null ? (t(this, b).style.setProperty(`--${n}`, e.toString()), t(this, b).setAttribute(`data-${n}`, e.toString())) : (t(this, b).style.removeProperty(`--${n}`), t(this, b).removeAttribute(`data-${n}`));
|
|
120
119
|
};
|
|
121
120
|
const rs = Ve({
|
|
122
121
|
":host": {
|
|
@@ -156,12 +155,12 @@ const rs = Ve({
|
|
|
156
155
|
flexShrink: "0"
|
|
157
156
|
}
|
|
158
157
|
});
|
|
159
|
-
var
|
|
160
|
-
class
|
|
158
|
+
var u, wt, E, tt, B, W, F, T, et, st, N, it, xt, D, C, Et, Pt, Lt, zt, Ht, A, It, rt, M, nt, q, kt, ht, At, ot, lt, ct, p, $t, c, re, ne, y, S, k, V, at, R, x, P, Bt, U, G, K, _, Wt, ut, Z, Ft, O, w, he, dt, o, xe, ee, Dt, me, Se, Ee, Pe, L, oe, He, Nt, le, Le, ze, St, $e, se, ce;
|
|
159
|
+
class Rt extends HTMLElement {
|
|
161
160
|
constructor() {
|
|
162
161
|
super();
|
|
163
162
|
s(this, o);
|
|
164
|
-
s(this,
|
|
163
|
+
s(this, u, null);
|
|
165
164
|
s(this, wt, new f(this, "--controls", !0));
|
|
166
165
|
s(this, E, new f(this, "--axis", "y"));
|
|
167
166
|
s(this, tt, new f(this, "--reverse", !1));
|
|
@@ -193,12 +192,12 @@ class Vt extends HTMLElement {
|
|
|
193
192
|
"--sections-in-view",
|
|
194
193
|
1
|
|
195
194
|
));
|
|
196
|
-
s(this,
|
|
195
|
+
s(this, C, new f(this, "--loop", !1));
|
|
197
196
|
s(this, Et, new f(this, "--damping", 20));
|
|
198
197
|
s(this, Pt, new f(this, "--mass", 0));
|
|
199
198
|
s(this, Lt, new f(this, "--stiffness", 0));
|
|
200
199
|
s(this, zt, new f(this, "--mouse-drag", !1));
|
|
201
|
-
s(this,
|
|
200
|
+
s(this, Ht, new f(
|
|
202
201
|
this,
|
|
203
202
|
"--section-distance-scale",
|
|
204
203
|
0.5
|
|
@@ -225,14 +224,14 @@ class Vt extends HTMLElement {
|
|
|
225
224
|
"--current-index-end-offset",
|
|
226
225
|
0
|
|
227
226
|
));
|
|
228
|
-
s(this,
|
|
227
|
+
s(this, kt, new f(
|
|
229
228
|
this,
|
|
230
229
|
"--shift-section-position",
|
|
231
230
|
0,
|
|
232
231
|
{ rawValueCheck: !1 }
|
|
233
232
|
));
|
|
234
233
|
s(this, ht, new f(this, "--focus-delay", 0));
|
|
235
|
-
s(this,
|
|
234
|
+
s(this, At, new f(
|
|
236
235
|
this,
|
|
237
236
|
"--focus-duration",
|
|
238
237
|
3e3
|
|
@@ -243,15 +242,15 @@ class Vt extends HTMLElement {
|
|
|
243
242
|
s(this, p, null);
|
|
244
243
|
s(this, $t, null);
|
|
245
244
|
s(this, c, []);
|
|
245
|
+
s(this, re, 0);
|
|
246
246
|
s(this, ne, 0);
|
|
247
|
-
s(this,
|
|
248
|
-
s(this, C, 0);
|
|
247
|
+
s(this, y, 0);
|
|
249
248
|
s(this, S, 0);
|
|
250
249
|
s(this, k, 0);
|
|
251
250
|
s(this, V, null);
|
|
252
251
|
s(this, at, null);
|
|
253
252
|
s(this, R, null);
|
|
254
|
-
s(this,
|
|
253
|
+
s(this, x, null);
|
|
255
254
|
s(this, P, new qe(0));
|
|
256
255
|
s(this, Bt, 0);
|
|
257
256
|
s(this, U, 0);
|
|
@@ -263,63 +262,63 @@ class Vt extends HTMLElement {
|
|
|
263
262
|
s(this, Z, new Ze());
|
|
264
263
|
s(this, Ft, !1);
|
|
265
264
|
s(this, O, null);
|
|
266
|
-
s(this,
|
|
267
|
-
s(this,
|
|
265
|
+
s(this, w, !1);
|
|
266
|
+
s(this, he, null);
|
|
268
267
|
s(this, dt, []);
|
|
269
268
|
s(this, L, () => {
|
|
270
269
|
if (t(this, lt).current)
|
|
271
270
|
return;
|
|
272
|
-
t(this,
|
|
271
|
+
t(this, u).unlistenAnimationFrame();
|
|
273
272
|
const e = this.currentScrollValue / t(this, S) || 0, i = t(this, P).current;
|
|
274
|
-
if (h(this,
|
|
273
|
+
if (h(this, re, this.vertical ? ye(this) : Ce(this)), h(this, ne, this.vertical ? ye(t(this, p)) : Ce(t(this, p))), h(this, y, this.vertical ? this.offsetHeight : this.offsetWidth), this.vertical ? h(this, k, De.parse(
|
|
275
274
|
getComputedStyle(t(this, p)).rowGap
|
|
276
275
|
)) : h(this, k, De.parse(
|
|
277
276
|
getComputedStyle(t(this, p)).columnGap
|
|
278
277
|
)), t(this, N).current && t(this, c).length) {
|
|
279
|
-
const
|
|
278
|
+
const r = t(this, D).current, a = (t(this, y) - t(this, k) * (r - 1)) / r;
|
|
280
279
|
t(this, c).forEach((m) => {
|
|
281
280
|
m.setSize(a);
|
|
282
281
|
});
|
|
283
282
|
} else
|
|
284
|
-
t(this, c).forEach((
|
|
285
|
-
|
|
283
|
+
t(this, c).forEach((r) => {
|
|
284
|
+
r.setSize();
|
|
286
285
|
});
|
|
287
|
-
if (t(this, c).forEach((
|
|
288
|
-
|
|
286
|
+
if (t(this, c).forEach((r) => {
|
|
287
|
+
r.resize();
|
|
289
288
|
}), t(this, W).current) {
|
|
290
|
-
h(this, S, t(this,
|
|
291
|
-
const
|
|
292
|
-
this.vertical ? (t(this, p).style.width =
|
|
289
|
+
h(this, S, t(this, y) * t(this, W).current);
|
|
290
|
+
const r = t(this, S) + t(this, y);
|
|
291
|
+
this.vertical ? (t(this, p).style.width = r + "px", t(this, p).style.height = "100%") : (t(this, p).style.height = r + "px", t(this, p).style.width = "100%");
|
|
293
292
|
} else
|
|
294
|
-
this.vertical ? (t(this, p).style.width = "100%", t(this, p).style.height = "max-content", h(this, S, t(this, p).offsetHeight - t(this,
|
|
295
|
-
if (!t(this,
|
|
296
|
-
const
|
|
297
|
-
h(this, S, t(this, S) + a), t(this,
|
|
293
|
+
this.vertical ? (t(this, p).style.width = "100%", t(this, p).style.height = "max-content", h(this, S, t(this, p).offsetHeight - t(this, y))) : (t(this, p).style.width = "max-content", t(this, p).style.height = "100%", h(this, S, t(this, p).offsetWidth - t(this, y)));
|
|
294
|
+
if (!t(this, C).current) {
|
|
295
|
+
const r = getComputedStyle(this), a = this.vertical ? parseFloat(r.paddingBlockStart) + parseFloat(r.paddingBlockEnd) : parseFloat(r.paddingInlineStart) + parseFloat(r.paddingInlineEnd);
|
|
296
|
+
h(this, S, t(this, S) + a), t(this, u).max = t(this, S);
|
|
298
297
|
}
|
|
299
|
-
if (t(this,
|
|
300
|
-
const
|
|
301
|
-
h(this, U,
|
|
298
|
+
if (t(this, C).current && t(this, c).length) {
|
|
299
|
+
const r = t(this, c)[t(this, c).length - 1], a = r.position + r.size - t(this, y), m = t(this, S) - a;
|
|
300
|
+
h(this, U, r.position + r.size + m);
|
|
302
301
|
} else
|
|
303
302
|
h(this, U, t(this, S));
|
|
304
303
|
if (t(this, T).current && t(this, c).length) {
|
|
305
|
-
const
|
|
306
|
-
t(this,
|
|
304
|
+
const r = t(this, c)[i];
|
|
305
|
+
t(this, u).set(r.position, {
|
|
307
306
|
equalize: !0
|
|
308
307
|
});
|
|
309
308
|
} else
|
|
310
|
-
t(this,
|
|
309
|
+
t(this, u).set(e * t(this, S), {
|
|
311
310
|
equalize: !0
|
|
312
311
|
});
|
|
313
|
-
h(this, G, (this.vertical ? t(this, p).offsetHeight : t(this, p).offsetWidth) > t(this,
|
|
312
|
+
h(this, G, (this.vertical ? t(this, p).offsetHeight : t(this, p).offsetWidth) > t(this, y)), this.classList.toggle("has-overflow", t(this, G)), t(this, G) ? t(this, ot).current || l(this, o, Se).call(this) : l(this, o, me).call(this), Yt(this, "scrollResize", { custom: !0 }), t(this, u).notify();
|
|
314
313
|
});
|
|
315
|
-
s(this,
|
|
314
|
+
s(this, oe, () => {
|
|
316
315
|
if (!t(this, G) || t(this, _) || t(this, K))
|
|
317
316
|
return;
|
|
318
317
|
const e = this.currentScrollValue;
|
|
319
318
|
if (h(this, Bt, Math.max(0, e - t(this, S))), t(this, c).length) {
|
|
320
319
|
for (let i = 0; i < t(this, c).length; i++)
|
|
321
320
|
t(this, c)[i].transform();
|
|
322
|
-
t(this, P).current = l(this, o,
|
|
321
|
+
t(this, P).current = l(this, o, se).call(this);
|
|
323
322
|
} else
|
|
324
323
|
this.vertical ? t(this, p).style.transform = `translate3d(0px, ${e * -1}px, 0px)` : t(this, p).style.transform = `translate3d(${e * -1}px, 0px, 0px)`;
|
|
325
324
|
l(this, o, $e).call(this), gt.update(
|
|
@@ -328,7 +327,7 @@ class Vt extends HTMLElement {
|
|
|
328
327
|
e
|
|
329
328
|
);
|
|
330
329
|
});
|
|
331
|
-
s(this,
|
|
330
|
+
s(this, Nt, (e, i) => {
|
|
332
331
|
t(this, wt).current && (l(this, o, Le).call(this, Math.sign(i) || 1), t(this, le).call(this, e, i));
|
|
333
332
|
});
|
|
334
333
|
s(this, le, (e, i) => {
|
|
@@ -339,16 +338,16 @@ class Vt extends HTMLElement {
|
|
|
339
338
|
return;
|
|
340
339
|
}
|
|
341
340
|
if (t(this, ut) || t(this, Z).unlistenAnimationFrame(), !t(this, A).current && t(this, ht).current && (clearInterval(t(this, Wt)), h(this, Wt, setTimeout(() => {
|
|
342
|
-
const
|
|
343
|
-
|
|
341
|
+
const r = t(this, c)[l(this, o, se).call(this)];
|
|
342
|
+
r && this.scrollToSection(r.index, {
|
|
344
343
|
tween: {
|
|
345
|
-
duration: t(this,
|
|
344
|
+
duration: t(this, At).current,
|
|
346
345
|
easing: Ue
|
|
347
346
|
}
|
|
348
347
|
});
|
|
349
348
|
}, t(this, ht).current))), !(e.includes("drag") && !Ye.isTouch && !t(this, zt).current)) {
|
|
350
349
|
if (t(this, T).current && e !== "drag") {
|
|
351
|
-
const
|
|
350
|
+
const r = Math.sign(i);
|
|
352
351
|
if (t(this, c).length) {
|
|
353
352
|
const a = {
|
|
354
353
|
tween: t(this, et).current || t(this, st).current ? {
|
|
@@ -356,28 +355,28 @@ class Vt extends HTMLElement {
|
|
|
356
355
|
duration: t(this, st).current || 500
|
|
357
356
|
} : void 0
|
|
358
357
|
};
|
|
359
|
-
t(this, Ft) ? this.scrollToSection(l(this, o,
|
|
358
|
+
t(this, Ft) ? this.scrollToSection(l(this, o, se).call(this, !0), a) : this.shiftSections(r, a);
|
|
360
359
|
} else
|
|
361
|
-
t(this,
|
|
360
|
+
t(this, u).shift(r * t(this, y));
|
|
362
361
|
} else
|
|
363
|
-
t(this,
|
|
362
|
+
t(this, u).shift(i);
|
|
364
363
|
h(this, Ft, e === "drag");
|
|
365
364
|
}
|
|
366
365
|
});
|
|
367
366
|
s(this, ce, () => {
|
|
368
|
-
h(this,
|
|
367
|
+
h(this, w, !0), this.hibernatedCSSProperty.current || l(this, o, Pe).call(this);
|
|
369
368
|
});
|
|
370
369
|
if (H) {
|
|
371
370
|
const e = this.attachShadow({ mode: "open" });
|
|
372
371
|
e.adoptedStyleSheets = [rs];
|
|
373
372
|
const i = document.createElement("div");
|
|
374
|
-
i.className = "static", i.innerHTML = '<slot name="static"></slot>', e.appendChild(i), h(this, ct, document.createElement("div")), t(this, ct).className = "content-wrapper", h(this, p, document.createElement("div")), t(this, p).className = "content", h(this, $t, document.createElement("slot")), t(this, p).appendChild(t(this, $t)), t(this, ct).appendChild(t(this, p)), e.appendChild(t(this, ct)), h(this,
|
|
373
|
+
i.className = "static", i.innerHTML = '<slot name="static"></slot>', e.appendChild(i), h(this, ct, document.createElement("div")), t(this, ct).className = "content-wrapper", h(this, p, document.createElement("div")), t(this, p).className = "content", h(this, $t, document.createElement("slot")), t(this, p).appendChild(t(this, $t)), t(this, ct).appendChild(t(this, p)), e.appendChild(t(this, ct)), h(this, he, new MutationObserver((r) => {
|
|
375
374
|
this.tryResplit();
|
|
376
375
|
}));
|
|
377
376
|
}
|
|
378
377
|
}
|
|
379
378
|
get damped() {
|
|
380
|
-
return t(this,
|
|
379
|
+
return t(this, u);
|
|
381
380
|
}
|
|
382
381
|
get controlsCSSProperty() {
|
|
383
382
|
return t(this, wt);
|
|
@@ -419,7 +418,7 @@ class Vt extends HTMLElement {
|
|
|
419
418
|
return t(this, D);
|
|
420
419
|
}
|
|
421
420
|
get loopCSSProperty() {
|
|
422
|
-
return t(this,
|
|
421
|
+
return t(this, C);
|
|
423
422
|
}
|
|
424
423
|
get dampingCSSProperty() {
|
|
425
424
|
return t(this, Et);
|
|
@@ -434,7 +433,7 @@ class Vt extends HTMLElement {
|
|
|
434
433
|
return t(this, zt);
|
|
435
434
|
}
|
|
436
435
|
get sectionDistanceScaleCSSProperty() {
|
|
437
|
-
return t(this,
|
|
436
|
+
return t(this, Ht);
|
|
438
437
|
}
|
|
439
438
|
get autoplayCSSProperty() {
|
|
440
439
|
return t(this, A);
|
|
@@ -455,13 +454,13 @@ class Vt extends HTMLElement {
|
|
|
455
454
|
return t(this, q);
|
|
456
455
|
}
|
|
457
456
|
get shiftSectionPositionCSSProperty() {
|
|
458
|
-
return t(this,
|
|
457
|
+
return t(this, kt);
|
|
459
458
|
}
|
|
460
459
|
get focusDelayCSSProperty() {
|
|
461
460
|
return t(this, ht);
|
|
462
461
|
}
|
|
463
462
|
get focusDurationCSSProperty() {
|
|
464
|
-
return t(this,
|
|
463
|
+
return t(this, At);
|
|
465
464
|
}
|
|
466
465
|
get disabledCSSProperty() {
|
|
467
466
|
return t(this, ot);
|
|
@@ -485,13 +484,13 @@ class Vt extends HTMLElement {
|
|
|
485
484
|
return t(this, c);
|
|
486
485
|
}
|
|
487
486
|
get position() {
|
|
488
|
-
return t(this,
|
|
487
|
+
return t(this, re);
|
|
489
488
|
}
|
|
490
489
|
get contentPosition() {
|
|
491
|
-
return t(this,
|
|
490
|
+
return t(this, ne);
|
|
492
491
|
}
|
|
493
492
|
get viewportSize() {
|
|
494
|
-
return t(this,
|
|
493
|
+
return t(this, y);
|
|
495
494
|
}
|
|
496
495
|
get scrollSize() {
|
|
497
496
|
return t(this, S);
|
|
@@ -511,7 +510,7 @@ class Vt extends HTMLElement {
|
|
|
511
510
|
return t(this, U);
|
|
512
511
|
}
|
|
513
512
|
get loopDistance() {
|
|
514
|
-
return t(this,
|
|
513
|
+
return t(this, C).current ? t(this, U) + t(this, k) : t(this, U);
|
|
515
514
|
}
|
|
516
515
|
get hasOverflow() {
|
|
517
516
|
return t(this, G);
|
|
@@ -532,67 +531,67 @@ class Vt extends HTMLElement {
|
|
|
532
531
|
return this.targetScrollValue / this.loopDistance || 0;
|
|
533
532
|
}
|
|
534
533
|
get scrollWidth() {
|
|
535
|
-
return t(this, E).current === "y" ? 0 : t(this,
|
|
534
|
+
return t(this, E).current === "y" ? 0 : t(this, u).distance;
|
|
536
535
|
}
|
|
537
536
|
get scrollHeight() {
|
|
538
|
-
return t(this, E).current === "x" ? 0 : t(this,
|
|
537
|
+
return t(this, E).current === "x" ? 0 : t(this, u).distance;
|
|
539
538
|
}
|
|
540
539
|
tryResplit() {
|
|
541
|
-
!t(this, _) && (t(this,
|
|
540
|
+
!t(this, _) && (t(this, C).current || t(this, F).current || t(this, C).current || t(this, N).current || t(this, T).current) && l(this, o, ee).call(this);
|
|
542
541
|
}
|
|
543
542
|
onScroll(...e) {
|
|
544
|
-
return t(this,
|
|
543
|
+
return t(this, u).subscribe(...e);
|
|
545
544
|
}
|
|
546
545
|
offScroll(...e) {
|
|
547
|
-
t(this,
|
|
546
|
+
t(this, u).unsubscribe(...e);
|
|
548
547
|
}
|
|
549
548
|
//https://github.com/pmndrs/drei/blob/d3282cdd02d170ef603a5e096505d83dc93cd57a/src/web/ScrollControls.tsx#L85C7-L100C9
|
|
550
|
-
range(e, i,
|
|
551
|
-
const a = e -
|
|
549
|
+
range(e, i, r = 0) {
|
|
550
|
+
const a = e - r, m = a + i + r * 2;
|
|
552
551
|
return this.currentProgress < a ? 0 : this.currentProgress > m ? 1 : (this.currentProgress - a) / (m - a);
|
|
553
552
|
}
|
|
554
|
-
curve(e, i,
|
|
555
|
-
return Math.sin(this.range(e, i,
|
|
553
|
+
curve(e, i, r = 0) {
|
|
554
|
+
return Math.sin(this.range(e, i, r) * Math.PI);
|
|
556
555
|
}
|
|
557
|
-
visible(e, i,
|
|
558
|
-
const a = e -
|
|
556
|
+
visible(e, i, r = 0) {
|
|
557
|
+
const a = e - r, m = a + i + r * 2;
|
|
559
558
|
return this.currentProgress >= a && this.currentProgress <= m;
|
|
560
559
|
}
|
|
561
560
|
scrollToSection(e, i) {
|
|
562
561
|
if (!t(this, c).length)
|
|
563
562
|
return;
|
|
564
|
-
const
|
|
563
|
+
const r = t(this, P).current, a = l(this, o, He).call(this, e), m = t(this, c)[r], v = t(this, c)[a];
|
|
565
564
|
if (m && v) {
|
|
566
565
|
let I = 0;
|
|
567
|
-
const ge = l(this, o,
|
|
568
|
-
t(this,
|
|
566
|
+
const ge = l(this, o, se).call(this), Tt = t(this, c)[ge], be = Tt ? this.targetScrollValue - Tt.position : 0;
|
|
567
|
+
t(this, C).current ? a === 0 && r === t(this, c).length - 1 ? I = t(this, S) + t(this, y) - m.position + t(this, k) : a === t(this, c).length - 1 && r === 0 ? I = v.position - (t(this, S) + t(this, y) + t(this, k)) : I = v.position - m.position : I = v.position - m.position, this.shiftPosition(I - be, i);
|
|
569
568
|
}
|
|
570
569
|
}
|
|
571
570
|
shiftSections(e, i) {
|
|
572
571
|
t(this, c).length && this.scrollToSection(t(this, P).current + e, i);
|
|
573
572
|
}
|
|
574
573
|
setPosition(e, i) {
|
|
575
|
-
l(this, o, Le).call(this, Math.sign(e) || 1), i != null && i.tween ? t(this, ut) || (t(this, Z).set(t(this,
|
|
574
|
+
l(this, o, Le).call(this, Math.sign(e) || 1), i != null && i.tween ? t(this, ut) || (t(this, Z).set(t(this, u).current, { equalize: !0 }), t(this, Z).set(e, Te({}, i.tween)), h(this, ut, setTimeout(() => {
|
|
576
575
|
h(this, ut, void 0);
|
|
577
|
-
}, i.tween.duration || 0))) : t(this,
|
|
576
|
+
}, i.tween.duration || 0))) : t(this, u).set(e, {
|
|
578
577
|
equalize: (i == null ? void 0 : i.behaviour) === "instant"
|
|
579
578
|
});
|
|
580
579
|
}
|
|
581
580
|
shiftPosition(e, i) {
|
|
582
|
-
this.setPosition(t(this,
|
|
581
|
+
this.setPosition(t(this, u).target + e, i);
|
|
583
582
|
}
|
|
584
583
|
connectedCallback() {
|
|
585
|
-
gt.register(this), h(this,
|
|
584
|
+
gt.register(this), h(this, u, new _e(0, {
|
|
586
585
|
damping: 0.01,
|
|
587
586
|
min: 0,
|
|
588
587
|
order: Ke.SCROLL
|
|
589
|
-
})), this.setAttribute("tabindex", "0"), h(this, V, new je({ element: t(this, p) })), t(this, V).changeEvent.subscribe(t(this,
|
|
588
|
+
})), this.setAttribute("tabindex", "0"), h(this, V, new je({ element: t(this, p) })), t(this, V).changeEvent.subscribe(t(this, Nt)), h(this, at, new Je({
|
|
590
589
|
element: this
|
|
591
590
|
})), t(this, at).changeEvent.subscribe(
|
|
592
|
-
t(this,
|
|
593
|
-
), h(this, R, new Qe({ element: t(this, p) })), t(this, R).changeEvent.subscribe(t(this,
|
|
591
|
+
t(this, Nt)
|
|
592
|
+
), h(this, R, new Qe({ element: t(this, p) })), t(this, R).changeEvent.subscribe(t(this, Nt)), h(this, x, new Xe({
|
|
594
593
|
culling: this
|
|
595
|
-
})), t(this,
|
|
594
|
+
})), t(this, x).changeEvent.subscribe(t(this, le)), t(this, E).subscribe(() => {
|
|
596
595
|
l(this, o, xe).call(this);
|
|
597
596
|
}), t(this, tt).subscribe(() => {
|
|
598
597
|
l(this, o, xe).call(this);
|
|
@@ -601,126 +600,128 @@ class Vt extends HTMLElement {
|
|
|
601
600
|
}), t(this, xt).subscribe((e) => {
|
|
602
601
|
t(this, R).inertion = typeof e.current == "number" ? e.current : 1;
|
|
603
602
|
}), t(this, W).subscribe(() => {
|
|
604
|
-
t(this,
|
|
603
|
+
t(this, w) && t(this, L).call(this);
|
|
605
604
|
}), t(this, F).subscribe(({ current: e }) => {
|
|
606
|
-
t(this,
|
|
605
|
+
t(this, w) && (e ? l(this, o, ee).call(this) : l(this, o, Dt).call(this));
|
|
607
606
|
}), t(this, T).subscribe((e) => {
|
|
608
|
-
t(this, V).debounce = e.current, t(this, R).swipe = e.current, t(this,
|
|
607
|
+
t(this, V).debounce = e.current, t(this, R).swipe = e.current, t(this, x).interval = e.current, t(this, w) && (e.current && !e.previous && !t(this, c).length ? l(this, o, ee).call(this) : !e.current && e.previous && t(this, c).length && l(this, o, Dt).call(this));
|
|
609
608
|
}), t(this, N).subscribe((e) => {
|
|
610
|
-
t(this,
|
|
609
|
+
t(this, w) && (t(this, L).call(this), e.current && !e.previous && !t(this, c).length ? l(this, o, ee).call(this) : !e.current && e.previous && t(this, c).length && l(this, o, Dt).call(this));
|
|
611
610
|
}), t(this, D).subscribe((e) => {
|
|
612
|
-
t(this,
|
|
613
|
-
}), t(this,
|
|
614
|
-
e.current ? (t(this,
|
|
611
|
+
t(this, w) && (t(this, L).call(this), l(this, o, St).call(this));
|
|
612
|
+
}), t(this, C).subscribe((e) => {
|
|
613
|
+
e.current ? (t(this, w) && (t(this, c).length || (t(this, F).current = !0)), t(this, u).max = 1 / 0, t(this, u).min = -1 / 0) : (h(this, Bt, 0), t(this, u).max = t(this, S), t(this, u).min = 0);
|
|
615
614
|
}), t(this, Et).subscribe((e) => {
|
|
616
|
-
t(this,
|
|
615
|
+
t(this, u).damping = e.current;
|
|
617
616
|
}), t(this, Pt).subscribe((e) => {
|
|
618
|
-
t(this,
|
|
617
|
+
t(this, u).mass = e.current;
|
|
619
618
|
}), t(this, Lt).subscribe((e) => {
|
|
620
|
-
t(this,
|
|
619
|
+
t(this, u).stiffness = e.current;
|
|
621
620
|
}), t(this, A).subscribe((e) => {
|
|
622
|
-
t(this,
|
|
621
|
+
t(this, x).speed = e.current, !t(this, K) && e.current && !e.previous ? t(this, x).connect() : !e.current && e.previous && t(this, x).disconnect();
|
|
623
622
|
}), t(this, rt).subscribe((e) => {
|
|
624
|
-
e.current || (t(this,
|
|
623
|
+
e.current || (t(this, x).direction = 1);
|
|
625
624
|
}), t(this, M).subscribe((e) => {
|
|
626
|
-
t(this,
|
|
625
|
+
t(this, w) && l(this, o, St).call(this);
|
|
627
626
|
}), t(this, nt).subscribe((e) => {
|
|
628
|
-
t(this,
|
|
627
|
+
t(this, w) && t(this, M).current && l(this, o, St).call(this);
|
|
629
628
|
}), t(this, q).subscribe((e) => {
|
|
630
|
-
t(this,
|
|
631
|
-
}), t(this,
|
|
629
|
+
t(this, w) && t(this, M).current && l(this, o, St).call(this);
|
|
630
|
+
}), t(this, kt).subscribe((e) => {
|
|
631
|
+
t(this, w) && t(this, u).notify();
|
|
632
|
+
}), t(this, u).isRunning.subscribe((e) => {
|
|
632
633
|
this.classList.toggle("active", e.current);
|
|
633
634
|
}), t(this, P).subscribe((e) => {
|
|
634
635
|
t(this, c).length && l(this, o, St).call(this);
|
|
635
636
|
}), t(this, Z).subscribe((e) => {
|
|
636
|
-
t(this, Z).isRunning.current && t(this,
|
|
637
|
+
t(this, Z).isRunning.current && t(this, u).set(e.current, { equalize: !0 });
|
|
637
638
|
}), t(this, ot).subscribe((e) => {
|
|
638
639
|
e.current && !e.previous ? (this.classList.add("disabled"), l(this, o, me).call(this)) : !e.current && e.previous && (this.classList.remove("disabled"), l(this, o, Se).call(this));
|
|
639
640
|
}), t(this, lt).subscribe((e) => {
|
|
640
641
|
e.current && !e.previous ? (this.classList.add("hibernated"), l(this, o, Ee).call(this)) : !e.current && e.previous && (this.classList.remove("hibernated"), l(this, o, Pe).call(this));
|
|
641
|
-
}), t(this, wt).observe(), t(this, E).observe(), t(this, tt).observe(), t(this, B).observe(), t(this, W).observe(), t(this, F).observe(), t(this, T).observe(), t(this, et).observe(), t(this, st).observe(), t(this, N).observe(), t(this, it).observe(), t(this, xt).observe(), t(this, D).observe(), t(this,
|
|
642
|
+
}), t(this, wt).observe(), t(this, E).observe(), t(this, tt).observe(), t(this, B).observe(), t(this, W).observe(), t(this, F).observe(), t(this, T).observe(), t(this, et).observe(), t(this, st).observe(), t(this, N).observe(), t(this, it).observe(), t(this, xt).observe(), t(this, D).observe(), t(this, C).observe(), t(this, Et).observe(), t(this, Pt).observe(), t(this, Lt).observe(), t(this, zt).observe(), t(this, Ht).observe(), t(this, A).observe(), t(this, A).observe(), t(this, It).observe(), t(this, rt).observe(), t(this, M).observe(), t(this, nt).observe(), t(this, q).observe(), t(this, kt).observe(), t(this, ht).observe(), t(this, At).observe(), t(this, ot).observe(), t(this, lt).observe(), Vt.subscribe(t(this, ce), we.LAST);
|
|
642
643
|
}
|
|
643
644
|
disconnectedCallback() {
|
|
644
|
-
this.removeAttribute("tabindex"), this.classList.remove("disabled"), this.classList.remove("hibernated"), t(this, wt).unobserve(), t(this, E).unobserve(), t(this, tt).unobserve(), t(this, B).unobserve(), t(this, W).unobserve(), t(this, F).unobserve(), t(this, T).unobserve(), t(this, et).unobserve(), t(this, st).unobserve(), t(this, N).unobserve(), t(this, it).unobserve(), t(this, xt).unobserve(), t(this, D).unobserve(), t(this,
|
|
645
|
+
this.removeAttribute("tabindex"), this.classList.remove("disabled"), this.classList.remove("hibernated"), t(this, wt).unobserve(), t(this, E).unobserve(), t(this, tt).unobserve(), t(this, B).unobserve(), t(this, W).unobserve(), t(this, F).unobserve(), t(this, T).unobserve(), t(this, et).unobserve(), t(this, st).unobserve(), t(this, N).unobserve(), t(this, it).unobserve(), t(this, xt).unobserve(), t(this, D).unobserve(), t(this, C).unobserve(), t(this, Et).unobserve(), t(this, Pt).unobserve(), t(this, Lt).unobserve(), t(this, zt).unobserve(), t(this, Ht).unobserve(), t(this, A).unobserve(), t(this, It).unobserve(), t(this, rt).unobserve(), t(this, M).unobserve(), t(this, nt).unobserve(), t(this, q).unobserve(), t(this, kt).unobserve(), t(this, ht).unobserve(), t(this, At).unobserve(), t(this, ot).unobserve(), t(this, lt).unobserve(), Vt.unsubscribe(t(this, ce)), l(this, o, Ee).call(this), t(this, he).disconnect();
|
|
645
646
|
}
|
|
646
647
|
}
|
|
647
|
-
|
|
648
|
+
u = new WeakMap(), wt = new WeakMap(), E = new WeakMap(), tt = new WeakMap(), B = new WeakMap(), W = new WeakMap(), F = new WeakMap(), T = new WeakMap(), et = new WeakMap(), st = new WeakMap(), N = new WeakMap(), it = new WeakMap(), xt = new WeakMap(), D = new WeakMap(), C = new WeakMap(), Et = new WeakMap(), Pt = new WeakMap(), Lt = new WeakMap(), zt = new WeakMap(), Ht = new WeakMap(), A = new WeakMap(), It = new WeakMap(), rt = new WeakMap(), M = new WeakMap(), nt = new WeakMap(), q = new WeakMap(), kt = new WeakMap(), ht = new WeakMap(), At = new WeakMap(), ot = new WeakMap(), lt = new WeakMap(), ct = new WeakMap(), p = new WeakMap(), $t = new WeakMap(), c = new WeakMap(), re = new WeakMap(), ne = new WeakMap(), y = new WeakMap(), S = new WeakMap(), k = new WeakMap(), V = new WeakMap(), at = new WeakMap(), R = new WeakMap(), x = new WeakMap(), P = new WeakMap(), Bt = new WeakMap(), U = new WeakMap(), G = new WeakMap(), K = new WeakMap(), _ = new WeakMap(), Wt = new WeakMap(), ut = new WeakMap(), Z = new WeakMap(), Ft = new WeakMap(), O = new WeakMap(), w = new WeakMap(), he = new WeakMap(), dt = new WeakMap(), o = new WeakSet(), xe = function() {
|
|
648
649
|
const e = t(this, E).current, i = t(this, tt).current ? "-reverse" : "";
|
|
649
|
-
t(this, p).style.flexDirection = e === "x" ? `row${i}` : `column${i}`, t(this, V).axis = t(this, it).current ? "max" : e, t(this, at).dimension = e === "x" ? "width" : "height", t(this, R).axis = e, e === "x" ? this.style.touchAction = "pan-y" : e === "y" && (this.style.touchAction = "pan-x"), t(this,
|
|
650
|
-
},
|
|
651
|
-
l(this, o,
|
|
650
|
+
t(this, p).style.flexDirection = e === "x" ? `row${i}` : `column${i}`, t(this, V).axis = t(this, it).current ? "max" : e, t(this, at).dimension = e === "x" ? "width" : "height", t(this, R).axis = e, e === "x" ? this.style.touchAction = "pan-y" : e === "y" && (this.style.touchAction = "pan-x"), t(this, w) && t(this, L).call(this);
|
|
651
|
+
}, ee = function() {
|
|
652
|
+
l(this, o, Dt).call(this), t(this, $t).assignedElements().forEach((e, i) => {
|
|
652
653
|
e instanceof HTMLElement && t(this, c).push(new is(e, i, this));
|
|
653
|
-
}), t(this, p).style.transform = "",
|
|
654
|
+
}), t(this, p).style.transform = "", Yt(this, "scrollSectionsChange", {
|
|
654
655
|
custom: !0,
|
|
655
656
|
composed: !0
|
|
656
657
|
}), t(this, L).call(this), l(this, o, St).call(this);
|
|
657
|
-
},
|
|
658
|
+
}, Dt = function() {
|
|
658
659
|
t(this, c).forEach((e) => {
|
|
659
660
|
e.destroy();
|
|
660
|
-
}), h(this, c, []), t(this, P).reset(), t(this,
|
|
661
|
+
}), h(this, c, []), t(this, P).reset(), t(this, u).reset(), Yt(this, "scrollSectionsChange", {
|
|
661
662
|
custom: !0,
|
|
662
663
|
composed: !0
|
|
663
664
|
});
|
|
664
665
|
}, me = function() {
|
|
665
|
-
t(this, K) || (h(this, K, !0), t(this,
|
|
666
|
+
t(this, K) || (h(this, K, !0), t(this, u).unsubscribe(t(this, oe)), t(this, u).unlistenAnimationFrame(), clearInterval(t(this, Wt)), clearInterval(t(this, ut)), t(this, Z).unlistenAnimationFrame(), t(this, V).disconnect(), t(this, at).disconnect(), t(this, R).disconnect(), t(this, x).disconnect(), t(this, G) || (this.sections.forEach((e) => {
|
|
666
667
|
e.unsetTransform();
|
|
667
668
|
}), t(this, L).call(this)));
|
|
668
669
|
}, Se = function() {
|
|
669
|
-
t(this, K) && (h(this, K, !1), t(this,
|
|
670
|
+
t(this, K) && (h(this, K, !1), t(this, u).subscribe(t(this, oe), -1e4), t(this, u).notify(), t(this, V).connect(), t(this, at).connect(), t(this, R).connect(), t(this, A).current && t(this, x).connect());
|
|
670
671
|
}, Ee = function() {
|
|
671
|
-
t(this, _) || (h(this, _, !0),
|
|
672
|
+
t(this, _) || (h(this, _, !0), Vt.unsubscribe(t(this, L)), ie.unsubscribe(t(this, L)), l(this, o, me).call(this), t(this, p).style.transform = "", t(this, p).style.height = "", t(this, p).style.width = "", this.classList.remove("has-overflow", "start", "end"), t(this, c).length ? l(this, o, Dt).call(this) : (t(this, P).reset(), t(this, u).reset()), gt.unregister(this));
|
|
672
673
|
}, Pe = function() {
|
|
673
|
-
t(this, _) && (h(this, _, !1), gt.register(this), this.tryResplit(), l(this, o, Se).call(this),
|
|
674
|
-
}, L = new WeakMap(),
|
|
674
|
+
t(this, _) && (h(this, _, !1), gt.register(this), this.tryResplit(), l(this, o, Se).call(this), Vt.subscribe(t(this, L), we.SCROLL), ie.subscribe(this, t(this, L)));
|
|
675
|
+
}, L = new WeakMap(), oe = new WeakMap(), He = function(e) {
|
|
675
676
|
let i = t(this, P).current;
|
|
676
|
-
return t(this,
|
|
677
|
-
},
|
|
678
|
-
t(this, rt).current && (t(this,
|
|
677
|
+
return t(this, C).current ? i = Ge(e, t(this, c).length) : i = Re(e, 0, this.limit), i;
|
|
678
|
+
}, Nt = new WeakMap(), le = new WeakMap(), Le = function(e = 1) {
|
|
679
|
+
t(this, rt).current && (t(this, x).direction = e), t(this, A).current && t(this, x).pauseAndContinue(
|
|
679
680
|
t(this, It).current,
|
|
680
681
|
this.sectionalCSSProperty.current
|
|
681
682
|
);
|
|
682
683
|
}, ze = function(e = "current") {
|
|
683
|
-
if (t(this,
|
|
684
|
-
const i = t(this,
|
|
685
|
-
return i < 0 ? t(this, S) + i + t(this,
|
|
684
|
+
if (t(this, C).current && t(this, c).length) {
|
|
685
|
+
const i = t(this, u)[e] % Math.round(t(this, S) + t(this, y) + t(this, k));
|
|
686
|
+
return i < 0 ? t(this, S) + i + t(this, y) + t(this, k) : i;
|
|
686
687
|
} else
|
|
687
|
-
return t(this,
|
|
688
|
+
return t(this, u)[e];
|
|
688
689
|
}, St = function() {
|
|
689
690
|
if (t(this, c).length) {
|
|
690
691
|
const e = t(this, P).current + t(this, nt).current;
|
|
691
|
-
if (e === 0 ? h(this, O, "start") : e === this.limit ? h(this, O, "end") : h(this, O, null),
|
|
692
|
+
if (e === 0 ? h(this, O, "start") : e === this.limit ? h(this, O, "end") : h(this, O, null), Yt(this, "scrollLine", {
|
|
692
693
|
detail: { line: t(this, O) }
|
|
693
694
|
}), t(this, M).current) {
|
|
694
695
|
this.classList.remove("end", "start"), t(this, O) && this.classList.add(t(this, O));
|
|
695
696
|
const i = t(this, D).current + t(this, q).current;
|
|
696
|
-
h(this, dt, []), t(this, c).forEach((
|
|
697
|
-
|
|
697
|
+
h(this, dt, []), t(this, c).forEach((r, a) => {
|
|
698
|
+
r.setCurrentIndex(null), r.setCurrentIndexArc(null), r.setCurrentIndexArcAbs(null), r.setMiddle(!1);
|
|
698
699
|
const m = e - this.limit - 1 + t(this, q).current, v = e + i, I = this.sections.length - v;
|
|
699
|
-
a >= e && a < v || a <= m ? (
|
|
700
|
+
a >= e && a < v || a <= m ? (r.setMark("current"), t(this, dt).push(r)) : a >= v && a < v + I / 2 || a <= m + i ? r.setMark("next") : r.setMark("previous");
|
|
700
701
|
});
|
|
701
702
|
}
|
|
702
703
|
}
|
|
703
704
|
}, $e = function() {
|
|
704
705
|
if (t(this, M).current) {
|
|
705
706
|
const e = Math.floor(t(this, dt).length / 2);
|
|
706
|
-
t(this, dt).sort((i,
|
|
707
|
-
const a =
|
|
708
|
-
i.setCurrentIndex(
|
|
707
|
+
t(this, dt).sort((i, r) => i.element.getBoundingClientRect().left - r.element.getBoundingClientRect().left), t(this, dt).forEach((i, r) => {
|
|
708
|
+
const a = r - e;
|
|
709
|
+
i.setCurrentIndex(r), i.setCurrentIndexArc(a), i.setCurrentIndexArcAbs(Math.abs(a)), i.setMiddle(r === e);
|
|
709
710
|
});
|
|
710
711
|
}
|
|
711
|
-
},
|
|
712
|
-
let i = this.targetScrollValue,
|
|
713
|
-
const m = t(this,
|
|
712
|
+
}, se = function(e = !1) {
|
|
713
|
+
let i = this.targetScrollValue, r = 1 / 0, a = 0;
|
|
714
|
+
const m = t(this, u).direction;
|
|
714
715
|
for (let v = 0; v < t(this, c).length; v++) {
|
|
715
716
|
const I = t(this, c)[v];
|
|
716
|
-
let ge = t(this, Ft) ? I.size * m * -1 * 0.4 : 0,
|
|
717
|
-
this.overscroll &&
|
|
718
|
-
let be = Math.abs(
|
|
719
|
-
be <=
|
|
717
|
+
let ge = t(this, Ft) ? I.size * m * -1 * 0.4 : 0, Tt = I.position;
|
|
718
|
+
this.overscroll && Tt === 0 && e && (Tt = t(this, U));
|
|
719
|
+
let be = Math.abs(Tt + ge - i);
|
|
720
|
+
be <= r && (r = be, a = v);
|
|
720
721
|
}
|
|
721
722
|
return a;
|
|
722
723
|
}, ce = new WeakMap();
|
|
723
|
-
H && !customElements.get("e-scroll") && customElements.define("e-scroll",
|
|
724
|
+
H && !customElements.get("e-scroll") && customElements.define("e-scroll", Rt);
|
|
724
725
|
var ae;
|
|
725
726
|
class Ie extends HTMLElement {
|
|
726
727
|
constructor() {
|
|
@@ -731,12 +732,12 @@ class Ie extends HTMLElement {
|
|
|
731
732
|
return t(this, ae);
|
|
732
733
|
}
|
|
733
734
|
connectedCallback() {
|
|
734
|
-
const e = Oe(this,
|
|
735
|
-
e instanceof
|
|
735
|
+
const e = Oe(this, Rt);
|
|
736
|
+
e instanceof Rt ? h(this, ae, e) : console.error(this, "e-scroll not found");
|
|
736
737
|
}
|
|
737
738
|
}
|
|
738
739
|
ae = new WeakMap();
|
|
739
|
-
var ft, z, j, J,
|
|
740
|
+
var ft, z, j, J, qt, Ut, pt, Gt, ue, de;
|
|
740
741
|
class ns extends Ie {
|
|
741
742
|
constructor() {
|
|
742
743
|
super();
|
|
@@ -744,15 +745,15 @@ class ns extends Ie {
|
|
|
744
745
|
s(this, z, null);
|
|
745
746
|
s(this, j, !1);
|
|
746
747
|
s(this, J, 0);
|
|
748
|
+
s(this, qt, 0);
|
|
747
749
|
s(this, Ut, 0);
|
|
748
|
-
s(this, Gt, 0);
|
|
749
750
|
s(this, pt, () => {
|
|
750
751
|
h(this, j, this.offsetWidth > this.offsetHeight);
|
|
751
752
|
const e = t(this, j) ? this.offsetWidth : this.offsetHeight;
|
|
752
|
-
h(this, J, e / ((this.scrollElement.scrollSize + this.scrollElement.viewportSize) / e)), h(this, J, Math.max(t(this, J), 30)), t(this, j) ? (t(this, z).style.width = t(this, J) + "px", t(this, z).style.height = "100%") : (t(this, z).style.width = "100%", t(this, z).style.height = t(this, J) + "px"), h(this,
|
|
753
|
+
h(this, J, e / ((this.scrollElement.scrollSize + this.scrollElement.viewportSize) / e)), h(this, J, Math.max(t(this, J), 30)), t(this, j) ? (t(this, z).style.width = t(this, J) + "px", t(this, z).style.height = "100%") : (t(this, z).style.width = "100%", t(this, z).style.height = t(this, J) + "px"), h(this, qt, e - t(this, J)), this.scrollElement.scrollSize <= 0 ? this.style.display = "none" : this.style.display = "", t(this, Gt).call(this);
|
|
753
754
|
});
|
|
754
|
-
s(this,
|
|
755
|
-
h(this,
|
|
755
|
+
s(this, Gt, () => {
|
|
756
|
+
h(this, Ut, this.scrollElement.currentProgress * t(this, qt)), t(this, j) ? t(this, z).style.transform = `translate3d(${t(this, Ut)}px, 0px, 0px)` : t(this, z).style.transform = `translate3d(0px, ${t(this, Ut)}px, 0px)`;
|
|
756
757
|
});
|
|
757
758
|
s(this, ue, () => {
|
|
758
759
|
this.setAttribute("axis", this.scrollElement.axisCSSProperty.current);
|
|
@@ -760,14 +761,14 @@ class ns extends Ie {
|
|
|
760
761
|
s(this, de, (e) => {
|
|
761
762
|
document.documentElement.classList.add("grabbing"), ts(
|
|
762
763
|
(a) => {
|
|
763
|
-
const m = t(this, j) ? a.x : a.y, v = this.scrollElement.distance / t(this,
|
|
764
|
+
const m = t(this, j) ? a.x : a.y, v = this.scrollElement.distance / t(this, qt), I = (m - r) * v;
|
|
764
765
|
this.scrollElement.setPosition(i + I);
|
|
765
766
|
},
|
|
766
767
|
() => {
|
|
767
768
|
document.documentElement.classList.remove("grabbing");
|
|
768
769
|
}
|
|
769
770
|
);
|
|
770
|
-
const i = this.scrollElement.damped.target,
|
|
771
|
+
const i = this.scrollElement.damped.target, r = t(this, j) ? e.x : e.y;
|
|
771
772
|
});
|
|
772
773
|
if (H) {
|
|
773
774
|
const e = this.attachShadow({ mode: "open" });
|
|
@@ -810,65 +811,65 @@ class ns extends Ie {
|
|
|
810
811
|
connectedCallback() {
|
|
811
812
|
super.connectedCallback(), this.setAttribute("drag-dead-zone", "");
|
|
812
813
|
const e = t(this, ft).assignedElements()[0] || t(this, ft).firstElementChild;
|
|
813
|
-
h(this, z, e), t(this, z).addEventListener("pointerdown", t(this, de)),
|
|
814
|
+
h(this, z, e), t(this, z).addEventListener("pointerdown", t(this, de)), Vt.subscribe(t(this, pt), we.SCROLL), ie.subscribe(this, t(this, pt)), ie.subscribe(this.scrollElement, t(this, pt)), this.scrollElement.onScroll(t(this, Gt)), this.scrollElement.axisCSSProperty.subscribe(t(this, ue));
|
|
814
815
|
}
|
|
815
816
|
disconnectedCallback() {
|
|
816
|
-
this.removeAttribute("drag-dead-zone"), this.style.display = "", t(this, z).removeEventListener("pointerdown", t(this, de)),
|
|
817
|
+
this.removeAttribute("drag-dead-zone"), this.style.display = "", t(this, z).removeEventListener("pointerdown", t(this, de)), Vt.unsubscribe(t(this, pt)), ie.unsubscribe(t(this, pt)), this.scrollElement.offScroll(t(this, Gt)), this.scrollElement.axisCSSProperty.unsubscribe(t(this, ue));
|
|
817
818
|
}
|
|
818
819
|
}
|
|
819
|
-
ft = new WeakMap(), z = new WeakMap(), j = new WeakMap(), J = new WeakMap(),
|
|
820
|
+
ft = new WeakMap(), z = new WeakMap(), j = new WeakMap(), J = new WeakMap(), qt = new WeakMap(), Ut = new WeakMap(), pt = new WeakMap(), Gt = new WeakMap(), ue = new WeakMap(), de = new WeakMap();
|
|
820
821
|
H && !customElements.get("e-scrollbar") && customElements.define("e-scrollbar", ns);
|
|
821
|
-
var _t, Zt
|
|
822
|
+
var Kt, _t, Zt;
|
|
822
823
|
class Be extends Ie {
|
|
823
824
|
constructor() {
|
|
824
825
|
super();
|
|
825
|
-
s(this,
|
|
826
|
-
s(this,
|
|
826
|
+
s(this, Kt, new f(this, "--behaviour", "smooth"));
|
|
827
|
+
s(this, _t, new f(
|
|
827
828
|
this,
|
|
828
829
|
"--tween-easing",
|
|
829
830
|
!1
|
|
830
831
|
));
|
|
831
|
-
s(this,
|
|
832
|
+
s(this, Zt, new f(this, "--tween-duration", 0));
|
|
832
833
|
H && this.addEventListener("click", () => {
|
|
833
|
-
const e = t(this,
|
|
834
|
+
const e = t(this, Kt).current, i = t(this, _t).current, r = t(this, Zt).current;
|
|
834
835
|
this.handleClick({
|
|
835
836
|
behaviour: e,
|
|
836
|
-
tween: i ||
|
|
837
|
+
tween: i || r ? { easing: i, duration: r } : void 0
|
|
837
838
|
});
|
|
838
839
|
});
|
|
839
840
|
}
|
|
840
841
|
connectedCallback() {
|
|
841
|
-
super.connectedCallback(), t(this,
|
|
842
|
+
super.connectedCallback(), t(this, Kt).observe(), t(this, _t).observe(), t(this, Zt).observe();
|
|
842
843
|
}
|
|
843
844
|
disconnectedCallback() {
|
|
844
|
-
t(this,
|
|
845
|
+
t(this, Kt).close(), t(this, _t).close(), t(this, Zt).close();
|
|
845
846
|
}
|
|
846
847
|
}
|
|
847
|
-
|
|
848
|
-
var
|
|
848
|
+
Kt = new WeakMap(), _t = new WeakMap(), Zt = new WeakMap();
|
|
849
|
+
var jt;
|
|
849
850
|
class hs extends Be {
|
|
850
851
|
constructor() {
|
|
851
852
|
super(...arguments);
|
|
852
|
-
s(this,
|
|
853
|
+
s(this, jt, new f(this, "--set", 1));
|
|
853
854
|
}
|
|
854
855
|
handleClick(e) {
|
|
855
|
-
this.scrollElement.scrollToSection(t(this,
|
|
856
|
+
this.scrollElement.scrollToSection(t(this, jt).current, e);
|
|
856
857
|
}
|
|
857
858
|
connectedCallback() {
|
|
858
|
-
super.connectedCallback(), t(this,
|
|
859
|
+
super.connectedCallback(), t(this, jt).observe();
|
|
859
860
|
}
|
|
860
861
|
disconnectedCallback() {
|
|
861
|
-
super.disconnectedCallback(), t(this,
|
|
862
|
+
super.disconnectedCallback(), t(this, jt).close();
|
|
862
863
|
}
|
|
863
864
|
}
|
|
864
|
-
|
|
865
|
+
jt = new WeakMap();
|
|
865
866
|
H && !customElements.get("e-scroll-set-button") && customElements.define("e-scroll-set-button", hs);
|
|
866
|
-
var Q,
|
|
867
|
+
var Q, Jt;
|
|
867
868
|
class os extends Be {
|
|
868
869
|
constructor() {
|
|
869
870
|
super(...arguments);
|
|
870
871
|
s(this, Q, new f(this, "--step", 1));
|
|
871
|
-
s(this,
|
|
872
|
+
s(this, Jt, () => {
|
|
872
873
|
this.scrollElement.loopCSSProperty.current ? this.removeAttribute("disabled") : t(this, Q).current > 0 && this.scrollElement.scrollLine === "end" || t(this, Q).current < 0 && this.scrollElement.scrollLine === "start" ? this.setAttribute("disabled", "") : this.removeAttribute("disabled");
|
|
873
874
|
});
|
|
874
875
|
}
|
|
@@ -877,93 +878,93 @@ class os extends Be {
|
|
|
877
878
|
}
|
|
878
879
|
connectedCallback() {
|
|
879
880
|
super.connectedCallback(), this.scrollElement && (t(this, Q).subscribe(() => {
|
|
880
|
-
t(this,
|
|
881
|
+
t(this, Jt).call(this);
|
|
881
882
|
}), t(this, Q).observe(), this.scrollElement.addEventListener(
|
|
882
883
|
"scrollLine",
|
|
883
|
-
t(this,
|
|
884
|
-
), t(this,
|
|
884
|
+
t(this, Jt)
|
|
885
|
+
), t(this, Jt).call(this));
|
|
885
886
|
}
|
|
886
887
|
disconnectedCallback() {
|
|
887
888
|
super.disconnectedCallback(), t(this, Q).close(), this.removeAttribute("disabled");
|
|
888
889
|
}
|
|
889
890
|
}
|
|
890
|
-
Q = new WeakMap(),
|
|
891
|
+
Q = new WeakMap(), Jt = new WeakMap();
|
|
891
892
|
H && !customElements.get("e-scroll-step-button") && customElements.define("e-scroll-step-button", os);
|
|
892
|
-
var X, bt,
|
|
893
|
+
var X, bt, Qt, fe, pe, Xt;
|
|
893
894
|
class ls {
|
|
894
|
-
constructor(
|
|
895
|
+
constructor(n, e, i) {
|
|
895
896
|
s(this, X, null);
|
|
896
897
|
s(this, bt, null);
|
|
897
|
-
s(this,
|
|
898
|
+
s(this, Qt, null);
|
|
898
899
|
s(this, fe, null);
|
|
899
900
|
s(this, pe, () => {
|
|
900
|
-
t(this, bt).scrollToSection(t(this,
|
|
901
|
+
t(this, bt).scrollToSection(t(this, Qt), {
|
|
901
902
|
behaviour: t(this, fe)
|
|
902
903
|
});
|
|
903
904
|
});
|
|
904
|
-
s(this,
|
|
905
|
+
s(this, Xt, () => {
|
|
905
906
|
t(this, X).classList.toggle(
|
|
906
907
|
"current",
|
|
907
|
-
t(this, bt).counter.current === t(this,
|
|
908
|
+
t(this, bt).counter.current === t(this, Qt)
|
|
908
909
|
);
|
|
909
910
|
});
|
|
910
|
-
H && (h(this, X, document.createElement("button")), h(this, bt,
|
|
911
|
+
H && (h(this, X, document.createElement("button")), h(this, bt, n), h(this, fe, i), h(this, Qt, e), t(this, X).addEventListener("click", t(this, pe)), t(this, bt).counter.subscribe(t(this, Xt)), t(this, Xt).call(this));
|
|
911
912
|
}
|
|
912
913
|
get element() {
|
|
913
914
|
return t(this, X);
|
|
914
915
|
}
|
|
915
916
|
destroy() {
|
|
916
|
-
t(this, X).removeEventListener("click", t(this, pe)), t(this, bt).counter.unsubscribe(t(this,
|
|
917
|
+
t(this, X).removeEventListener("click", t(this, pe)), t(this, bt).counter.unsubscribe(t(this, Xt)), t(this, X).remove();
|
|
917
918
|
}
|
|
918
919
|
}
|
|
919
|
-
X = new WeakMap(), bt = new WeakMap(),
|
|
920
|
-
var mt,
|
|
920
|
+
X = new WeakMap(), bt = new WeakMap(), Qt = new WeakMap(), fe = new WeakMap(), pe = new WeakMap(), Xt = new WeakMap();
|
|
921
|
+
var mt, Mt;
|
|
921
922
|
class cs extends Ie {
|
|
922
923
|
constructor() {
|
|
923
924
|
super(...arguments);
|
|
924
925
|
s(this, mt, []);
|
|
925
|
-
s(this,
|
|
926
|
+
s(this, Mt, es(() => {
|
|
926
927
|
t(this, mt).forEach((i) => i.destroy()), h(this, mt, []);
|
|
927
928
|
const e = this.scrollElement.sections.length - Math.max(this.scrollElement.sectionsInViewCSSProperty.current - 1, 0);
|
|
928
929
|
for (let i = 0; i < e; i++) {
|
|
929
|
-
const
|
|
930
|
+
const r = new ls(
|
|
930
931
|
this.scrollElement,
|
|
931
932
|
i,
|
|
932
933
|
this.getAttribute("behaviour") || "smooth"
|
|
933
934
|
);
|
|
934
|
-
this.appendChild(
|
|
935
|
+
this.appendChild(r.element), t(this, mt).push(r);
|
|
935
936
|
}
|
|
936
937
|
}, 0));
|
|
937
938
|
}
|
|
938
939
|
connectedCallback() {
|
|
939
940
|
super.connectedCallback(), this.scrollElement.addEventListener(
|
|
940
941
|
"sectionsChange",
|
|
941
|
-
t(this,
|
|
942
|
+
t(this, Mt)
|
|
942
943
|
), this.scrollElement.sectionsInViewCSSProperty.subscribe(
|
|
943
|
-
t(this,
|
|
944
|
+
t(this, Mt)
|
|
944
945
|
);
|
|
945
946
|
}
|
|
946
947
|
disconnectedCallback() {
|
|
947
948
|
this.scrollElement.removeEventListener(
|
|
948
949
|
"sectionsChange",
|
|
949
|
-
t(this,
|
|
950
|
+
t(this, Mt)
|
|
950
951
|
), this.scrollElement.sectionsInViewCSSProperty.unsubscribe(
|
|
951
|
-
t(this,
|
|
952
|
+
t(this, Mt)
|
|
952
953
|
), t(this, mt).forEach((e) => e.destroy()), h(this, mt, []);
|
|
953
954
|
}
|
|
954
955
|
}
|
|
955
|
-
mt = new WeakMap(),
|
|
956
|
+
mt = new WeakMap(), Mt = new WeakMap();
|
|
956
957
|
H && !customElements.get("e-scroll-bullet-buttons") && customElements.define("e-scroll-bullet-buttons", cs);
|
|
957
958
|
class as extends ss {
|
|
958
959
|
connectedCallback() {
|
|
959
|
-
const
|
|
960
|
-
|
|
960
|
+
const n = Oe(this, Rt);
|
|
961
|
+
n instanceof Rt ? (this.scrollContainer = n, this.scrollContainer.addEventListener(
|
|
961
962
|
"scrollSectionsChange",
|
|
962
963
|
this.findAnotherScrollEntries
|
|
963
964
|
), this.scrollContainer.addEventListener("scrollResize", this.resize), this.resize()) : console.error(this, "e-scroll not found");
|
|
964
965
|
}
|
|
965
966
|
disconnectedCallback() {
|
|
966
|
-
super.disconnectedCallback(), this.scrollContainer instanceof
|
|
967
|
+
super.disconnectedCallback(), this.scrollContainer instanceof Rt && (this.scrollContainer.removeEventListener(
|
|
967
968
|
"scrollSectionsChange",
|
|
968
969
|
this.findAnotherScrollEntries
|
|
969
970
|
), this.scrollContainer.removeEventListener("scrollResize", this.resize));
|
|
@@ -972,7 +973,7 @@ class as extends ss {
|
|
|
972
973
|
H && !customElements.get("e-scroll-segment") && customElements.define("e-scroll-segment", as);
|
|
973
974
|
export {
|
|
974
975
|
cs as ScrollBulletButtonsElement,
|
|
975
|
-
|
|
976
|
+
Rt as ScrollElement,
|
|
976
977
|
as as ScrollSegmentElement,
|
|
977
978
|
hs as ScrollSetButtonElement,
|
|
978
979
|
os as ScrollStepButtonElement,
|