aptechka 0.71.22 → 0.71.24
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/scroll/ScrollTotalElement.d.ts +2 -2
- package/lib/scroll/index.cjs +1 -1
- package/lib/scroll/index.d.ts +1 -0
- package/lib/scroll/index.js +462 -430
- package/package.json +1 -1
package/lib/scroll/index.js
CHANGED
|
@@ -1,118 +1,118 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
1
|
+
var oi = Object.defineProperty;
|
|
2
|
+
var Ns = Object.getOwnPropertySymbols, li = Object.getPrototypeOf, ci = Object.prototype.hasOwnProperty, ui = Object.prototype.propertyIsEnumerable, ai = Reflect.get;
|
|
3
|
+
var Gs = (a) => {
|
|
4
4
|
throw TypeError(a);
|
|
5
5
|
};
|
|
6
|
-
var
|
|
6
|
+
var qs = (a, n, e) => n in a ? oi(a, n, { enumerable: !0, configurable: !0, writable: !0, value: e }) : a[n] = e, Us = (a, n) => {
|
|
7
7
|
for (var e in n || (n = {}))
|
|
8
|
-
|
|
9
|
-
if (
|
|
10
|
-
for (var e of
|
|
11
|
-
|
|
8
|
+
ci.call(n, e) && qs(a, e, n[e]);
|
|
9
|
+
if (Ns)
|
|
10
|
+
for (var e of Ns(n))
|
|
11
|
+
ui.call(n, e) && qs(a, e, n[e]);
|
|
12
12
|
return a;
|
|
13
13
|
};
|
|
14
|
-
var
|
|
15
|
-
var t = (a, n, e) => (
|
|
16
|
-
var
|
|
17
|
-
var
|
|
14
|
+
var Ls = (a, n, e) => n.has(a) || Gs("Cannot " + e);
|
|
15
|
+
var t = (a, n, e) => (Ls(a, n, "read from private field"), e ? e.call(a) : n.get(a)), i = (a, n, e) => n.has(a) ? Gs("Cannot add the same private member more than once") : n instanceof WeakSet ? n.add(a) : n.set(a, e), r = (a, n, e, s) => (Ls(a, n, "write to private field"), s ? s.call(a, e) : n.set(a, e), e), o = (a, n, e) => (Ls(a, n, "access private method"), e);
|
|
16
|
+
var ks = (a, n, e) => ai(li(a), e, n);
|
|
17
|
+
var Vs = (a, n, e) => new Promise((s, h) => {
|
|
18
18
|
var u = (C) => {
|
|
19
19
|
try {
|
|
20
20
|
v(e.next(C));
|
|
21
|
-
} catch (
|
|
22
|
-
h(
|
|
21
|
+
} catch (le) {
|
|
22
|
+
h(le);
|
|
23
23
|
}
|
|
24
24
|
}, g = (C) => {
|
|
25
25
|
try {
|
|
26
26
|
v(e.throw(C));
|
|
27
|
-
} catch (
|
|
28
|
-
h(
|
|
27
|
+
} catch (le) {
|
|
28
|
+
h(le);
|
|
29
29
|
}
|
|
30
30
|
}, v = (C) => C.done ? s(C.value) : Promise.resolve(C.value).then(u, g);
|
|
31
31
|
v((e = e.apply(a, n)).next());
|
|
32
32
|
});
|
|
33
|
-
import { S as
|
|
34
|
-
import { i as
|
|
35
|
-
import { q as
|
|
36
|
-
import { i as
|
|
33
|
+
import { S as ce } from "../Store-0BVty6AZ.js";
|
|
34
|
+
import { i as q } from "../index-Bv9zgfdb.js";
|
|
35
|
+
import { q as di } from "../easings-BEmRlrDd.js";
|
|
36
|
+
import { i as pi } from "../element-CGVl1jA-.js";
|
|
37
37
|
import { d as tt } from "../events-CsVF98U6.js";
|
|
38
38
|
import { d as ws } from "../function-C10DGppn.js";
|
|
39
|
-
import { a as
|
|
40
|
-
import { c as
|
|
41
|
-
import { p as
|
|
42
|
-
import { c as
|
|
39
|
+
import { a as os, g as ls, c as fi } from "../layout-DpZo-I0y.js";
|
|
40
|
+
import { c as Zs, s as bi } from "../math-BOBiC4TN.js";
|
|
41
|
+
import { p as mi, l as Si } from "../number-CumqY64S.js";
|
|
42
|
+
import { c as js } from "../stylesheet-DpnWNVyD.js";
|
|
43
43
|
import "../ticker/index.js";
|
|
44
|
-
import { TICK_ORDER as
|
|
45
|
-
import { D as
|
|
46
|
-
import { T as
|
|
47
|
-
import { W as
|
|
44
|
+
import { TICK_ORDER as Js, RESIZE_ORDER as xs } from "../order/index.js";
|
|
45
|
+
import { D as Qs } from "../Damped-CtQmJ52v.js";
|
|
46
|
+
import { T as gi } from "../Tweened-BlZB0vl4.js";
|
|
47
|
+
import { W as vi, K as yi, D as Ci, A as Pi } from "../DragControls-CkhCt-4W.js";
|
|
48
48
|
import { windowResizer as ft } from "../window-resizer/index.js";
|
|
49
|
-
import { scrollEntries as
|
|
50
|
-
import { cssUnitParser as
|
|
49
|
+
import { scrollEntries as oe } from "../scroll-entries/index.js";
|
|
50
|
+
import { cssUnitParser as Ks } from "../css-unit-parser/index.js";
|
|
51
51
|
import { CSSProperty as l } from "../css-property/index.js";
|
|
52
|
-
import { d as
|
|
52
|
+
import { d as Ei } from "../Viewport-DA10iWAO.js";
|
|
53
53
|
import "construct-style-sheets-polyfill";
|
|
54
|
-
import { elementResizer as
|
|
55
|
-
import { s as
|
|
56
|
-
import { b as
|
|
57
|
-
var f,
|
|
58
|
-
class
|
|
54
|
+
import { elementResizer as ns } from "../element-resizer/index.js";
|
|
55
|
+
import { s as wi } from "../gestures-CcXV6fCp.js";
|
|
56
|
+
import { b as xi } from "../dom-CVWzyXPH.js";
|
|
57
|
+
var f, Fe, E, cs, us, de, bt, Dt, pe, fe, is;
|
|
58
|
+
class Li {
|
|
59
59
|
constructor(n, e, s) {
|
|
60
|
-
i(this,
|
|
60
|
+
i(this, fe);
|
|
61
61
|
i(this, f);
|
|
62
|
-
i(this,
|
|
63
|
-
i(this,
|
|
64
|
-
i(this,
|
|
65
|
-
i(this,
|
|
66
|
-
i(this,
|
|
62
|
+
i(this, Fe);
|
|
63
|
+
i(this, E);
|
|
64
|
+
i(this, cs, 0);
|
|
65
|
+
i(this, us, 0);
|
|
66
|
+
i(this, de, 0);
|
|
67
67
|
i(this, bt, 0);
|
|
68
68
|
i(this, Dt, null);
|
|
69
|
-
i(this,
|
|
70
|
-
r(this, f, n), r(this,
|
|
69
|
+
i(this, pe, 0);
|
|
70
|
+
r(this, f, n), r(this, Fe, e), r(this, E, s), oe.register(t(this, f)), this.setIndex(t(this, Fe));
|
|
71
71
|
}
|
|
72
72
|
get element() {
|
|
73
73
|
return t(this, f);
|
|
74
74
|
}
|
|
75
75
|
get index() {
|
|
76
|
-
return t(this,
|
|
76
|
+
return t(this, Fe);
|
|
77
77
|
}
|
|
78
78
|
get size() {
|
|
79
|
-
return t(this,
|
|
79
|
+
return t(this, de);
|
|
80
80
|
}
|
|
81
81
|
get width() {
|
|
82
|
-
return t(this,
|
|
82
|
+
return t(this, cs);
|
|
83
83
|
}
|
|
84
84
|
get height() {
|
|
85
|
-
return t(this,
|
|
85
|
+
return t(this, us);
|
|
86
86
|
}
|
|
87
87
|
get position() {
|
|
88
88
|
return t(this, bt);
|
|
89
89
|
}
|
|
90
90
|
get transformPosition() {
|
|
91
|
-
return t(this,
|
|
91
|
+
return t(this, pe);
|
|
92
92
|
}
|
|
93
93
|
destroy() {
|
|
94
|
-
|
|
94
|
+
oe.unregister(t(this, f)), this.unsetTransform();
|
|
95
95
|
}
|
|
96
96
|
unsetTransform() {
|
|
97
97
|
t(this, f).style.transform = "", this.setMark(null), this.setIndex(null), this.setCurrentIndex(null), this.setCurrentIndexArc(null), this.setCurrentIndexArcAbs(null), this.setMiddle(!1), this.setSize();
|
|
98
98
|
}
|
|
99
99
|
setSize(n) {
|
|
100
|
-
n ? (t(this, f).style.setProperty("--size", n + "px"), t(this,
|
|
100
|
+
n ? (t(this, f).style.setProperty("--size", n + "px"), t(this, E).axisCSSProperty.current === "x" ? (t(this, f).style.width = n + "px", t(this, f).style.height = "") : (t(this, f).style.height = n + "px", t(this, f).style.width = "")) : (t(this, f).style.width = "", t(this, f).style.height = "", t(this, f).style.removeProperty("--size"));
|
|
101
101
|
}
|
|
102
102
|
resize() {
|
|
103
|
-
r(this,
|
|
103
|
+
r(this, cs, t(this, f).offsetWidth), r(this, us, t(this, f).offsetHeight), r(this, de, t(this, E).vertical ? t(this, f).offsetHeight : t(this, f).offsetWidth), r(this, bt, t(this, E).vertical ? os(t(this, f)) : ls(t(this, f))), r(this, bt, t(this, bt) - t(this, E).contentPosition);
|
|
104
104
|
}
|
|
105
105
|
transform() {
|
|
106
|
-
const n = t(this,
|
|
106
|
+
const n = t(this, E).shiftSectionPositionCSSProperty.current;
|
|
107
107
|
let e = n;
|
|
108
|
-
const s = t(this,
|
|
109
|
-
t(this,
|
|
108
|
+
const s = t(this, E).viewportSize * t(this, E).sectionDistanceScaleCSSProperty.current;
|
|
109
|
+
t(this, E).loopCSSProperty.current && t(this, bt) + t(this, de) <= t(this, E).currentScrollValue - n / 2 && (e = (t(this, E).distance - n) * -1 - t(this, E).gap), oe.update(
|
|
110
110
|
t(this, f),
|
|
111
|
-
t(this,
|
|
111
|
+
t(this, E).axisCSSProperty.current,
|
|
112
112
|
e
|
|
113
113
|
);
|
|
114
|
-
const h = t(this,
|
|
115
|
-
r(this,
|
|
114
|
+
const h = t(this, E).currentScrollValue + e, u = t(this, bt) - t(this, E).viewportSize - s, g = t(this, bt) + t(this, de) + s, v = mi(Zs(h, u, g), 3);
|
|
115
|
+
r(this, pe, v * -1), t(this, E).vertical ? t(this, f).style.transform = `translate3d(0px, ${t(this, pe)}px, 0px)` : t(this, f).style.transform = `translate3d(${t(this, pe)}px, 0px, 0px)`;
|
|
116
116
|
}
|
|
117
117
|
setMark(n) {
|
|
118
118
|
t(this, Dt) !== n && (t(this, Dt) && t(this, f).classList.remove(t(this, Dt)), n && t(this, f).classList.add(n), r(this, Dt, n), tt(t(this, f), "scrollSectionMarkChange", {
|
|
@@ -127,22 +127,22 @@ class wi {
|
|
|
127
127
|
t(this, f).classList.toggle("middle", n);
|
|
128
128
|
}
|
|
129
129
|
setIndex(n) {
|
|
130
|
-
o(this,
|
|
130
|
+
o(this, fe, is).call(this, "index", n);
|
|
131
131
|
}
|
|
132
132
|
setCurrentIndex(n) {
|
|
133
|
-
o(this,
|
|
133
|
+
o(this, fe, is).call(this, "current-index", n);
|
|
134
134
|
}
|
|
135
135
|
setCurrentIndexArc(n) {
|
|
136
|
-
o(this,
|
|
136
|
+
o(this, fe, is).call(this, "current-index-arc", n);
|
|
137
137
|
}
|
|
138
138
|
setCurrentIndexArcAbs(n) {
|
|
139
|
-
o(this,
|
|
139
|
+
o(this, fe, is).call(this, "current-index-arc-abs", n);
|
|
140
140
|
}
|
|
141
141
|
}
|
|
142
|
-
f = new WeakMap(),
|
|
142
|
+
f = new WeakMap(), Fe = new WeakMap(), E = new WeakMap(), cs = new WeakMap(), us = new WeakMap(), de = new WeakMap(), bt = new WeakMap(), Dt = new WeakMap(), pe = new WeakMap(), fe = new WeakSet(), is = function(n, e) {
|
|
143
143
|
e !== null ? (t(this, f).style.setProperty(`--${n}`, e.toString()), t(this, f).setAttribute(`data-${n}`, e.toString())) : (t(this, f).style.removeProperty(`--${n}`), t(this, f).removeAttribute(`data-${n}`));
|
|
144
144
|
};
|
|
145
|
-
const
|
|
145
|
+
const ki = js({
|
|
146
146
|
":host": {
|
|
147
147
|
position: "relative",
|
|
148
148
|
width: "100%",
|
|
@@ -181,13 +181,13 @@ const Ei = Us({
|
|
|
181
181
|
flexShrink: "0"
|
|
182
182
|
}
|
|
183
183
|
});
|
|
184
|
-
var p,
|
|
185
|
-
class
|
|
184
|
+
var p, be, R, Ot, mt, St, gt, et, Ht, $t, vt, Bt, me, st, V, Se, ge, ve, ye, Te, Ce, J, Pe, Wt, Q, Nt, yt, Ee, qt, we, Gt, Ut, Kt, b, Re, G, d, as, ds, L, P, U, it, Zt, rt, M, D, De, Ct, Pt, Et, K, Oe, jt, Jt, xe, ht, z, He, wt, Le, $e, c, As, rs, Me, Ps, Es, Is, Ms, F, ps, Xs, Be, fs, Fs, Ts, ue, Ys, bs, hs, We;
|
|
185
|
+
class zs extends HTMLElement {
|
|
186
186
|
constructor() {
|
|
187
187
|
super();
|
|
188
188
|
i(this, c);
|
|
189
189
|
i(this, p, null);
|
|
190
|
-
i(this,
|
|
190
|
+
i(this, be, new l(this, "--controls", !0));
|
|
191
191
|
i(this, R, new l(this, "--axis", "y"));
|
|
192
192
|
i(this, Ot, new l(this, "--reverse", !1));
|
|
193
193
|
i(this, mt, new l(this, "--direction", 0));
|
|
@@ -212,25 +212,25 @@ class Ls extends HTMLElement {
|
|
|
212
212
|
"--wheel-max-delta",
|
|
213
213
|
!1
|
|
214
214
|
));
|
|
215
|
-
i(this,
|
|
215
|
+
i(this, me, new l(this, "--drag-inertion", 1));
|
|
216
216
|
i(this, st, new l(
|
|
217
217
|
this,
|
|
218
218
|
"--sections-in-view",
|
|
219
219
|
1
|
|
220
220
|
));
|
|
221
221
|
i(this, V, new l(this, "--loop", !1));
|
|
222
|
-
i(this,
|
|
223
|
-
i(this,
|
|
224
|
-
i(this,
|
|
225
|
-
i(this,
|
|
226
|
-
i(this,
|
|
222
|
+
i(this, Se, new l(this, "--damping", 20));
|
|
223
|
+
i(this, ge, new l(this, "--mass", 0));
|
|
224
|
+
i(this, ve, new l(this, "--stiffness", 0));
|
|
225
|
+
i(this, ye, new l(this, "--mouse-drag", !1));
|
|
226
|
+
i(this, Te, new l(
|
|
227
227
|
this,
|
|
228
228
|
"--section-distance-scale",
|
|
229
229
|
0.5
|
|
230
230
|
));
|
|
231
|
-
i(this,
|
|
232
|
-
i(this,
|
|
233
|
-
i(this,
|
|
231
|
+
i(this, Ce, new l(this, "--start-section", 0));
|
|
232
|
+
i(this, J, new l(this, "--autoplay", 0));
|
|
233
|
+
i(this, Pe, new l(
|
|
234
234
|
this,
|
|
235
235
|
"--autoplay-pause-duration",
|
|
236
236
|
0
|
|
@@ -240,7 +240,7 @@ class Ls extends HTMLElement {
|
|
|
240
240
|
"--autoplay-user-direction",
|
|
241
241
|
!1
|
|
242
242
|
));
|
|
243
|
-
i(this,
|
|
243
|
+
i(this, Q, new l(this, "--classes", !1));
|
|
244
244
|
i(this, Nt, new l(
|
|
245
245
|
this,
|
|
246
246
|
"--current-index-start-offset",
|
|
@@ -251,7 +251,7 @@ class Ls extends HTMLElement {
|
|
|
251
251
|
"--current-index-end-offset",
|
|
252
252
|
0
|
|
253
253
|
));
|
|
254
|
-
i(this,
|
|
254
|
+
i(this, Ee, new l(
|
|
255
255
|
this,
|
|
256
256
|
"--shift-section-position",
|
|
257
257
|
0,
|
|
@@ -267,77 +267,77 @@ class Ls extends HTMLElement {
|
|
|
267
267
|
i(this, Ut, new l(this, "--hibernate", !1));
|
|
268
268
|
i(this, Kt, null);
|
|
269
269
|
i(this, b, null);
|
|
270
|
-
i(this,
|
|
271
|
-
i(this,
|
|
270
|
+
i(this, Re, null);
|
|
271
|
+
i(this, G, []);
|
|
272
272
|
i(this, d, []);
|
|
273
|
-
i(this,
|
|
274
|
-
i(this,
|
|
273
|
+
i(this, as, 0);
|
|
274
|
+
i(this, ds, 0);
|
|
275
275
|
i(this, L, 0);
|
|
276
276
|
i(this, P, 0);
|
|
277
|
-
i(this,
|
|
277
|
+
i(this, U, 0);
|
|
278
278
|
i(this, it, null);
|
|
279
279
|
i(this, Zt, null);
|
|
280
280
|
i(this, rt, null);
|
|
281
281
|
i(this, M, null);
|
|
282
|
-
i(this, D, new
|
|
283
|
-
i(this,
|
|
282
|
+
i(this, D, new ce(0));
|
|
283
|
+
i(this, De, 0);
|
|
284
284
|
i(this, Ct, 0);
|
|
285
285
|
i(this, Pt, !1);
|
|
286
|
-
i(this,
|
|
287
|
-
i(this,
|
|
288
|
-
i(this,
|
|
289
|
-
i(this,
|
|
290
|
-
i(this,
|
|
291
|
-
i(this, Ee, !1);
|
|
292
|
-
i(this, ht, null);
|
|
293
|
-
i(this, k, !1);
|
|
294
|
-
i(this, Oe, null);
|
|
295
|
-
i(this, Et, []);
|
|
286
|
+
i(this, Et, !0);
|
|
287
|
+
i(this, K, !0);
|
|
288
|
+
i(this, Oe);
|
|
289
|
+
i(this, jt);
|
|
290
|
+
i(this, Jt, new gi());
|
|
296
291
|
i(this, xe, !1);
|
|
297
|
-
i(this,
|
|
292
|
+
i(this, ht, null);
|
|
293
|
+
i(this, z, !1);
|
|
294
|
+
i(this, He, null);
|
|
295
|
+
i(this, wt, []);
|
|
296
|
+
i(this, Le, !1);
|
|
297
|
+
i(this, $e);
|
|
298
298
|
i(this, F, (e) => {
|
|
299
|
-
if (e && t(this,
|
|
300
|
-
r(this,
|
|
299
|
+
if (e && t(this, Le)) {
|
|
300
|
+
r(this, Le, !1);
|
|
301
301
|
return;
|
|
302
302
|
}
|
|
303
303
|
this.resize();
|
|
304
304
|
});
|
|
305
|
-
i(this,
|
|
306
|
-
if (!t(this, Pt) || t(this,
|
|
305
|
+
i(this, ps, () => {
|
|
306
|
+
if (!t(this, Pt) || t(this, K) || t(this, Et))
|
|
307
307
|
return;
|
|
308
308
|
const e = this.currentScrollValue;
|
|
309
|
-
if (r(this,
|
|
310
|
-
for (let s = 0; s < t(this,
|
|
311
|
-
t(this,
|
|
312
|
-
t(this, D).current = o(this, c,
|
|
309
|
+
if (r(this, De, Math.max(0, e - t(this, P))), t(this, d).length) {
|
|
310
|
+
for (let s = 0; s < t(this, G).length; s++)
|
|
311
|
+
t(this, G)[s].transform();
|
|
312
|
+
t(this, D).current = o(this, c, hs).call(this);
|
|
313
313
|
} else
|
|
314
314
|
this.vertical ? t(this, b).style.transform = `translate3d(0px, ${e * -1}px, 0px)` : t(this, b).style.transform = `translate3d(${e * -1}px, 0px, 0px)`;
|
|
315
|
-
o(this, c,
|
|
315
|
+
o(this, c, Ys).call(this), oe.update(
|
|
316
316
|
this,
|
|
317
317
|
t(this, R).current,
|
|
318
318
|
e
|
|
319
319
|
);
|
|
320
320
|
});
|
|
321
|
-
i(this,
|
|
322
|
-
t(this,
|
|
321
|
+
i(this, Be, (e, s) => {
|
|
322
|
+
t(this, be).current && (o(this, c, Fs).call(this, Math.sign(s) || 1), t(this, fs).call(this, e, s));
|
|
323
323
|
});
|
|
324
|
-
i(this,
|
|
325
|
-
if (!t(this,
|
|
324
|
+
i(this, fs, (e, s) => {
|
|
325
|
+
if (!t(this, jt)) {
|
|
326
326
|
if (t(this, mt).current) {
|
|
327
327
|
if (t(this, mt).current < 0 && s > 0)
|
|
328
328
|
return;
|
|
329
329
|
if (t(this, mt).current > 0 && s < 0)
|
|
330
330
|
return;
|
|
331
331
|
}
|
|
332
|
-
if (!t(this,
|
|
333
|
-
const h = t(this, d)[o(this, c,
|
|
332
|
+
if (!t(this, J).current && t(this, qt).current && (clearInterval(t(this, Oe)), r(this, Oe, setTimeout(() => {
|
|
333
|
+
const h = t(this, d)[o(this, c, hs).call(this)];
|
|
334
334
|
h && this.scrollToSection(h.index, {
|
|
335
335
|
tween: {
|
|
336
336
|
duration: t(this, we).current,
|
|
337
|
-
easing:
|
|
337
|
+
easing: di
|
|
338
338
|
}
|
|
339
339
|
});
|
|
340
|
-
}, t(this, qt).current))), !(e.includes("drag") && !
|
|
340
|
+
}, t(this, qt).current))), !(e.includes("drag") && !Ei.isTouch && !t(this, ye).current)) {
|
|
341
341
|
if (t(this, et).current && e !== "drag") {
|
|
342
342
|
const h = Math.sign(s);
|
|
343
343
|
if (t(this, d).length) {
|
|
@@ -347,32 +347,32 @@ class Ls extends HTMLElement {
|
|
|
347
347
|
duration: t(this, $t).current || 500
|
|
348
348
|
} : void 0
|
|
349
349
|
};
|
|
350
|
-
t(this,
|
|
350
|
+
t(this, xe) ? this.scrollToSection(o(this, c, hs).call(this, !0), u) : this.shiftSections(h, u);
|
|
351
351
|
} else
|
|
352
352
|
t(this, p).shift(h * t(this, L));
|
|
353
353
|
} else
|
|
354
354
|
t(this, p).shift(s);
|
|
355
|
-
r(this,
|
|
355
|
+
r(this, xe, e === "drag");
|
|
356
356
|
}
|
|
357
357
|
}
|
|
358
358
|
});
|
|
359
|
-
i(this,
|
|
360
|
-
const e = t(this,
|
|
359
|
+
i(this, bs, ws(() => {
|
|
360
|
+
const e = t(this, wt).reduce((s, h) => {
|
|
361
361
|
const u = this.vertical ? h.width : h.height;
|
|
362
362
|
return u > s ? u : s;
|
|
363
363
|
}, 0);
|
|
364
|
-
clearTimeout(t(this,
|
|
365
|
-
r(this,
|
|
364
|
+
clearTimeout(t(this, $e)), r(this, Le, !0), this.style.setProperty("--max-section-size", ""), r(this, $e, setTimeout(() => {
|
|
365
|
+
r(this, Le, !0), this.style.setProperty("--max-section-size", e + "px");
|
|
366
366
|
}, 10));
|
|
367
367
|
}, 20));
|
|
368
|
-
i(this,
|
|
369
|
-
r(this,
|
|
368
|
+
i(this, We, () => {
|
|
369
|
+
r(this, z, !0), this.hibernatedCSSProperty.current || o(this, c, Ms).call(this), ns.subscribe(this, t(this, F)), ft.unsubscribe(t(this, We));
|
|
370
370
|
});
|
|
371
|
-
if (
|
|
371
|
+
if (q) {
|
|
372
372
|
const e = this.attachShadow({ mode: "open" });
|
|
373
|
-
e.adoptedStyleSheets = [
|
|
373
|
+
e.adoptedStyleSheets = [ki];
|
|
374
374
|
const s = document.createElement("div");
|
|
375
|
-
s.className = "static", s.innerHTML = '<slot name="static"></slot>', e.appendChild(s), r(this, Kt, document.createElement("div")), t(this, Kt).className = "content-wrapper", r(this, b, document.createElement("div")), t(this, b).className = "content", r(this,
|
|
375
|
+
s.className = "static", s.innerHTML = '<slot name="static"></slot>', e.appendChild(s), r(this, Kt, document.createElement("div")), t(this, Kt).className = "content-wrapper", r(this, b, document.createElement("div")), t(this, b).className = "content", r(this, Re, document.createElement("slot")), t(this, b).appendChild(t(this, Re)), t(this, Kt).appendChild(t(this, b)), e.appendChild(t(this, Kt)), r(this, He, new MutationObserver(
|
|
376
376
|
ws(() => {
|
|
377
377
|
this.tryResplit();
|
|
378
378
|
}, 10)
|
|
@@ -383,7 +383,7 @@ class Ls extends HTMLElement {
|
|
|
383
383
|
return t(this, p);
|
|
384
384
|
}
|
|
385
385
|
get controlsCSSProperty() {
|
|
386
|
-
return t(this,
|
|
386
|
+
return t(this, be);
|
|
387
387
|
}
|
|
388
388
|
get axisCSSProperty() {
|
|
389
389
|
return t(this, R);
|
|
@@ -416,7 +416,7 @@ class Ls extends HTMLElement {
|
|
|
416
416
|
return t(this, Bt);
|
|
417
417
|
}
|
|
418
418
|
get dragInertionCSSProperty() {
|
|
419
|
-
return t(this,
|
|
419
|
+
return t(this, me);
|
|
420
420
|
}
|
|
421
421
|
get sectionsInViewCSSProperty() {
|
|
422
422
|
return t(this, st);
|
|
@@ -425,34 +425,34 @@ class Ls extends HTMLElement {
|
|
|
425
425
|
return t(this, V);
|
|
426
426
|
}
|
|
427
427
|
get dampingCSSProperty() {
|
|
428
|
-
return t(this,
|
|
428
|
+
return t(this, Se);
|
|
429
429
|
}
|
|
430
430
|
get massCSSProperty() {
|
|
431
|
-
return t(this,
|
|
431
|
+
return t(this, ge);
|
|
432
432
|
}
|
|
433
433
|
get stiffnessCSSProperty() {
|
|
434
|
-
return t(this,
|
|
434
|
+
return t(this, ve);
|
|
435
435
|
}
|
|
436
436
|
get mouseDragCSSProperty() {
|
|
437
|
-
return t(this,
|
|
437
|
+
return t(this, ye);
|
|
438
438
|
}
|
|
439
439
|
get sectionDistanceScaleCSSProperty() {
|
|
440
|
-
return t(this,
|
|
440
|
+
return t(this, Te);
|
|
441
441
|
}
|
|
442
442
|
get startSectionCSSProperty() {
|
|
443
|
-
return t(this,
|
|
443
|
+
return t(this, Ce);
|
|
444
444
|
}
|
|
445
445
|
get autoplayCSSProperty() {
|
|
446
|
-
return t(this,
|
|
446
|
+
return t(this, J);
|
|
447
447
|
}
|
|
448
448
|
get autoplayPauseDurationCSSProperty() {
|
|
449
|
-
return t(this,
|
|
449
|
+
return t(this, Pe);
|
|
450
450
|
}
|
|
451
451
|
get autoplayUserDirectionCSSProperty() {
|
|
452
452
|
return t(this, Wt);
|
|
453
453
|
}
|
|
454
454
|
get classesCSSProperty() {
|
|
455
|
-
return t(this,
|
|
455
|
+
return t(this, Q);
|
|
456
456
|
}
|
|
457
457
|
get currentIndexStartOffsetCSSProperty() {
|
|
458
458
|
return t(this, Nt);
|
|
@@ -461,7 +461,7 @@ class Ls extends HTMLElement {
|
|
|
461
461
|
return t(this, yt);
|
|
462
462
|
}
|
|
463
463
|
get shiftSectionPositionCSSProperty() {
|
|
464
|
-
return t(this,
|
|
464
|
+
return t(this, Ee);
|
|
465
465
|
}
|
|
466
466
|
get focusDelayCSSProperty() {
|
|
467
467
|
return t(this, qt);
|
|
@@ -476,10 +476,10 @@ class Ls extends HTMLElement {
|
|
|
476
476
|
return t(this, Ut);
|
|
477
477
|
}
|
|
478
478
|
get currentScrollValue() {
|
|
479
|
-
return o(this, c,
|
|
479
|
+
return o(this, c, Ts).call(this, "current");
|
|
480
480
|
}
|
|
481
481
|
get targetScrollValue() {
|
|
482
|
-
return o(this, c,
|
|
482
|
+
return o(this, c, Ts).call(this, "target");
|
|
483
483
|
}
|
|
484
484
|
get contentWrapperElement() {
|
|
485
485
|
return t(this, Kt);
|
|
@@ -488,16 +488,16 @@ class Ls extends HTMLElement {
|
|
|
488
488
|
return t(this, b);
|
|
489
489
|
}
|
|
490
490
|
get sections() {
|
|
491
|
-
return t(this,
|
|
491
|
+
return t(this, G);
|
|
492
492
|
}
|
|
493
493
|
get visibleSections() {
|
|
494
494
|
return t(this, d);
|
|
495
495
|
}
|
|
496
496
|
get position() {
|
|
497
|
-
return t(this,
|
|
497
|
+
return t(this, as);
|
|
498
498
|
}
|
|
499
499
|
get contentPosition() {
|
|
500
|
-
return t(this,
|
|
500
|
+
return t(this, ds);
|
|
501
501
|
}
|
|
502
502
|
get viewportSize() {
|
|
503
503
|
return t(this, L);
|
|
@@ -506,7 +506,7 @@ class Ls extends HTMLElement {
|
|
|
506
506
|
return t(this, P);
|
|
507
507
|
}
|
|
508
508
|
get gap() {
|
|
509
|
-
return t(this,
|
|
509
|
+
return t(this, U);
|
|
510
510
|
}
|
|
511
511
|
get counter() {
|
|
512
512
|
return t(this, D);
|
|
@@ -520,13 +520,13 @@ class Ls extends HTMLElement {
|
|
|
520
520
|
return t(this, Ct);
|
|
521
521
|
}
|
|
522
522
|
get loopDistance() {
|
|
523
|
-
return t(this, V).current ? t(this, Ct) + t(this,
|
|
523
|
+
return t(this, V).current ? t(this, Ct) + t(this, U) : t(this, Ct);
|
|
524
524
|
}
|
|
525
525
|
get hasOverflow() {
|
|
526
526
|
return t(this, Pt);
|
|
527
527
|
}
|
|
528
528
|
get overscroll() {
|
|
529
|
-
return t(this,
|
|
529
|
+
return t(this, De);
|
|
530
530
|
}
|
|
531
531
|
get scrollLine() {
|
|
532
532
|
return t(this, ht);
|
|
@@ -547,7 +547,7 @@ class Ls extends HTMLElement {
|
|
|
547
547
|
return t(this, R).current === "x" ? 0 : t(this, p).distance;
|
|
548
548
|
}
|
|
549
549
|
tryResplit() {
|
|
550
|
-
!t(this,
|
|
550
|
+
!t(this, K) && (t(this, V).current || t(this, gt).current || t(this, V).current || t(this, vt).current || t(this, et).current) && o(this, c, rs).call(this);
|
|
551
551
|
}
|
|
552
552
|
onScroll(...e) {
|
|
553
553
|
return t(this, p).subscribe(...e);
|
|
@@ -568,22 +568,22 @@ class Ls extends HTMLElement {
|
|
|
568
568
|
return this.currentProgress >= u && this.currentProgress <= g;
|
|
569
569
|
}
|
|
570
570
|
scrollToSection(e, s) {
|
|
571
|
-
if (!t(this, d).length || t(this,
|
|
571
|
+
if (!t(this, d).length || t(this, K))
|
|
572
572
|
return;
|
|
573
|
-
const h = t(this, D).current, u = o(this, c,
|
|
573
|
+
const h = t(this, D).current, u = o(this, c, Xs).call(this, e), g = t(this, d)[h], v = t(this, d)[u];
|
|
574
574
|
if (g && v) {
|
|
575
575
|
let C = 0;
|
|
576
|
-
const
|
|
577
|
-
let
|
|
578
|
-
t(this, V).current ? u === 0 && h === t(this, d).length - 1 ? (C = t(this, P) + t(this, L) - g.position + t(this,
|
|
576
|
+
const le = o(this, c, hs).call(this), Ie = t(this, d)[le];
|
|
577
|
+
let ss = Ie ? this.targetScrollValue - Ie.position : 0;
|
|
578
|
+
t(this, V).current ? u === 0 && h === t(this, d).length - 1 ? (C = t(this, P) + t(this, L) - g.position + t(this, U), t(this, xe) || (ss = 0)) : u === t(this, d).length - 1 && h === 0 ? C = v.position - (t(this, P) + t(this, L) + t(this, U)) : C = v.position - g.position : C = v.position - g.position, this.shiftPosition(C - ss, s);
|
|
579
579
|
}
|
|
580
580
|
}
|
|
581
581
|
shiftSections(e, s) {
|
|
582
582
|
t(this, d).length && this.scrollToSection(t(this, D).current + e, s);
|
|
583
583
|
}
|
|
584
584
|
setPosition(e, s) {
|
|
585
|
-
t(this,
|
|
586
|
-
r(this,
|
|
585
|
+
t(this, K) || (o(this, c, Fs).call(this, Math.sign(e) || 1), s != null && s.tween ? (clearTimeout(t(this, jt)), t(this, Jt).set(t(this, p).current, { equalize: !0 }), t(this, Jt).set(Math.min(e, this.distance), Us({}, s.tween)), r(this, jt, setTimeout(() => {
|
|
586
|
+
r(this, jt, void 0);
|
|
587
587
|
}, s.tween.duration || 0))) : t(this, p).set(e, {
|
|
588
588
|
equalize: (s == null ? void 0 : s.behaviour) === "instant"
|
|
589
589
|
}));
|
|
@@ -594,19 +594,19 @@ class Ls extends HTMLElement {
|
|
|
594
594
|
resize() {
|
|
595
595
|
if (t(this, Ut).current)
|
|
596
596
|
return;
|
|
597
|
-
r(this, d, t(this,
|
|
598
|
-
(h) =>
|
|
597
|
+
r(this, d, t(this, G).filter(
|
|
598
|
+
(h) => pi(h.element)
|
|
599
599
|
)), this.style.setProperty(
|
|
600
600
|
"--sections",
|
|
601
601
|
t(this, d).length.toString()
|
|
602
602
|
), t(this, p).unlistenAnimationFrame();
|
|
603
603
|
const e = this.currentScrollValue / t(this, P) || 0, s = t(this, D).current;
|
|
604
|
-
if (r(this,
|
|
604
|
+
if (r(this, as, this.vertical ? os(this) : ls(this)), r(this, ds, this.vertical ? os(t(this, b)) : ls(t(this, b))), r(this, L, this.vertical ? this.offsetHeight : this.offsetWidth), this.vertical ? r(this, U, Ks.parse(
|
|
605
605
|
getComputedStyle(t(this, b)).rowGap
|
|
606
|
-
)) : r(this,
|
|
606
|
+
)) : r(this, U, Ks.parse(
|
|
607
607
|
getComputedStyle(t(this, b)).columnGap
|
|
608
608
|
)), t(this, vt).current && t(this, d).length) {
|
|
609
|
-
const h = t(this, st).current, u = (t(this, L) - t(this,
|
|
609
|
+
const h = t(this, st).current, u = (t(this, L) - t(this, U) * (h - 1)) / h;
|
|
610
610
|
t(this, d).forEach((g) => {
|
|
611
611
|
g.setSize(u);
|
|
612
612
|
});
|
|
@@ -640,195 +640,195 @@ class Ls extends HTMLElement {
|
|
|
640
640
|
t(this, p).set(e * t(this, P), {
|
|
641
641
|
equalize: !0
|
|
642
642
|
});
|
|
643
|
-
r(this, Pt, (this.vertical ? t(this, b).offsetHeight : t(this, b).offsetWidth) > t(this, L)), this.classList.toggle("has-overflow", t(this, Pt)), t(this, Pt) ? t(this, Gt).current || o(this, c,
|
|
643
|
+
r(this, Pt, (this.vertical ? t(this, b).offsetHeight : t(this, b).offsetWidth) > t(this, L)), this.classList.toggle("has-overflow", t(this, Pt)), t(this, Pt) ? t(this, Gt).current || o(this, c, Es).call(this) : o(this, c, Ps).call(this), t(this, bs).call(this), tt(this, "scrollResize", { custom: !0 }), t(this, p).notify();
|
|
644
644
|
}
|
|
645
645
|
connectedCallback() {
|
|
646
|
-
|
|
646
|
+
oe.register(this), r(this, p, new Qs(0, {
|
|
647
647
|
damping: 0.01,
|
|
648
648
|
min: 0,
|
|
649
|
-
order:
|
|
650
|
-
})), this.setAttribute("tabindex", "0"), r(this, it, new
|
|
649
|
+
order: Js.SCROLL
|
|
650
|
+
})), this.setAttribute("tabindex", "0"), r(this, it, new vi({ element: t(this, b) })), t(this, it).changeEvent.subscribe(t(this, Be)), r(this, Zt, new yi({
|
|
651
651
|
element: this
|
|
652
652
|
})), t(this, Zt).changeEvent.subscribe(
|
|
653
|
-
t(this,
|
|
654
|
-
), r(this, rt, new
|
|
653
|
+
t(this, Be)
|
|
654
|
+
), r(this, rt, new Ci({
|
|
655
655
|
element: t(this, b),
|
|
656
656
|
rootElement: this
|
|
657
|
-
})), t(this, rt).changeEvent.subscribe(t(this,
|
|
657
|
+
})), t(this, rt).changeEvent.subscribe(t(this, Be)), r(this, M, new Pi({
|
|
658
658
|
culling: this
|
|
659
|
-
})), t(this, M).changeEvent.subscribe(t(this,
|
|
660
|
-
o(this, c,
|
|
659
|
+
})), t(this, M).changeEvent.subscribe(t(this, fs)), t(this, R).subscribe(() => {
|
|
660
|
+
o(this, c, As).call(this);
|
|
661
661
|
}), t(this, Ot).subscribe(() => {
|
|
662
|
-
o(this, c,
|
|
662
|
+
o(this, c, As).call(this);
|
|
663
663
|
}), t(this, Bt).subscribe((e) => {
|
|
664
664
|
t(this, it).axis = e.current ? "max" : t(this, R).current;
|
|
665
|
-
}), t(this,
|
|
665
|
+
}), t(this, me).subscribe((e) => {
|
|
666
666
|
t(this, rt).inertion = typeof e.current == "number" ? e.current : 1;
|
|
667
667
|
}), t(this, St).subscribe(() => {
|
|
668
|
-
t(this,
|
|
668
|
+
t(this, z) && t(this, F).call(this);
|
|
669
669
|
}), t(this, gt).subscribe(({ current: e }) => {
|
|
670
|
-
t(this,
|
|
670
|
+
t(this, z) && (e ? o(this, c, rs).call(this) : o(this, c, Me).call(this));
|
|
671
671
|
}), t(this, et).subscribe((e) => {
|
|
672
|
-
t(this, it).debounce = e.current, t(this, rt).swipe = e.current, t(this, M).interval = e.current, t(this,
|
|
672
|
+
t(this, it).debounce = e.current, t(this, rt).swipe = e.current, t(this, M).interval = e.current, t(this, z) && (e.current && !e.previous && !t(this, d).length ? o(this, c, rs).call(this) : !e.current && e.previous && t(this, d).length && o(this, c, Me).call(this));
|
|
673
673
|
}), t(this, vt).subscribe((e) => {
|
|
674
|
-
t(this,
|
|
674
|
+
t(this, z) && (t(this, F).call(this), e.current && !e.previous && !t(this, d).length ? o(this, c, rs).call(this) : !e.current && e.previous && t(this, d).length && o(this, c, Me).call(this));
|
|
675
675
|
}), t(this, st).subscribe((e) => {
|
|
676
|
-
t(this,
|
|
676
|
+
t(this, z) && (t(this, F).call(this), o(this, c, ue).call(this));
|
|
677
677
|
}), t(this, V).subscribe((e) => {
|
|
678
|
-
e.current ? (t(this,
|
|
679
|
-
}), t(this, me).subscribe((e) => {
|
|
680
|
-
t(this, p).damping = e.current;
|
|
678
|
+
e.current ? (t(this, z) && (t(this, d).length || (t(this, gt).current = !0)), t(this, p).max = 1 / 0, t(this, p).min = -1 / 0) : (r(this, De, 0), t(this, p).max = t(this, P), t(this, p).min = 0);
|
|
681
679
|
}), t(this, Se).subscribe((e) => {
|
|
682
|
-
t(this, p).
|
|
680
|
+
t(this, p).damping = e.current;
|
|
683
681
|
}), t(this, ge).subscribe((e) => {
|
|
682
|
+
t(this, p).mass = e.current;
|
|
683
|
+
}), t(this, ve).subscribe((e) => {
|
|
684
684
|
t(this, p).stiffness = e.current;
|
|
685
|
-
}), t(this,
|
|
686
|
-
t(this, M).speed = e.current, !t(this,
|
|
685
|
+
}), t(this, J).subscribe((e) => {
|
|
686
|
+
t(this, M).speed = e.current, !t(this, Et) && e.current && !e.previous ? t(this, M).connect() : !e.current && e.previous && t(this, M).disconnect();
|
|
687
687
|
}), t(this, Wt).subscribe((e) => {
|
|
688
688
|
e.current || (t(this, M).direction = 1);
|
|
689
|
-
}), t(this,
|
|
690
|
-
t(this,
|
|
689
|
+
}), t(this, Q).subscribe((e) => {
|
|
690
|
+
t(this, z) && o(this, c, ue).call(this);
|
|
691
691
|
}), t(this, Nt).subscribe((e) => {
|
|
692
|
-
t(this,
|
|
692
|
+
t(this, z) && t(this, Q).current && o(this, c, ue).call(this);
|
|
693
693
|
}), t(this, yt).subscribe((e) => {
|
|
694
|
-
t(this,
|
|
695
|
-
}), t(this,
|
|
696
|
-
t(this,
|
|
694
|
+
t(this, z) && t(this, Q).current && o(this, c, ue).call(this);
|
|
695
|
+
}), t(this, Ee).subscribe((e) => {
|
|
696
|
+
t(this, z) && t(this, p).notify();
|
|
697
697
|
}), t(this, p).isRunning.subscribe((e) => {
|
|
698
698
|
this.classList.toggle("active", e.current);
|
|
699
699
|
}), t(this, D).subscribe((e) => {
|
|
700
|
-
t(this,
|
|
701
|
-
}), t(this,
|
|
702
|
-
t(this,
|
|
700
|
+
t(this, K) || (t(this, d).length && o(this, c, ue).call(this), this.style.setProperty("--counter", e.current + ""));
|
|
701
|
+
}), t(this, Jt).subscribe((e) => {
|
|
702
|
+
t(this, Jt).isRunning.current && t(this, p).set(e.current, { equalize: !0 });
|
|
703
703
|
}), t(this, Gt).subscribe((e) => {
|
|
704
|
-
e.current && !e.previous ? (this.classList.add("disabled"), o(this, c,
|
|
704
|
+
e.current && !e.previous ? (this.classList.add("disabled"), o(this, c, Ps).call(this)) : !e.current && e.previous && (this.classList.remove("disabled"), o(this, c, Es).call(this));
|
|
705
705
|
}), t(this, Ut).subscribe((e) => {
|
|
706
|
-
e.current && !e.previous ? (this.classList.add("hibernated"), o(this, c,
|
|
707
|
-
}), t(this,
|
|
706
|
+
e.current && !e.previous ? (this.classList.add("hibernated"), o(this, c, Is).call(this)) : !e.current && e.previous && (this.classList.remove("hibernated"), o(this, c, Ms).call(this));
|
|
707
|
+
}), t(this, be).observe(), t(this, R).observe(), t(this, Ot).observe(), t(this, mt).observe(), t(this, St).observe(), t(this, gt).observe(), t(this, et).observe(), t(this, Ht).observe(), t(this, $t).observe(), t(this, vt).observe(), t(this, Bt).observe(), t(this, me).observe(), t(this, st).observe(), t(this, V).observe(), t(this, Se).observe(), t(this, ge).observe(), t(this, ve).observe(), t(this, ye).observe(), t(this, Te).observe(), t(this, Ce).observe(), t(this, J).observe(), t(this, J).observe(), t(this, Pe).observe(), t(this, Wt).observe(), t(this, Q).observe(), t(this, Nt).observe(), t(this, yt).observe(), t(this, Ee).observe(), t(this, qt).observe(), t(this, we).observe(), t(this, Gt).observe(), t(this, Ut).observe(), ft.subscribe(t(this, We), xs.LAST), t(this, He).observe(this, { childList: !0 });
|
|
708
708
|
}
|
|
709
709
|
disconnectedCallback() {
|
|
710
|
-
this.removeAttribute("tabindex"), this.classList.remove("disabled"), this.classList.remove("hibernated"), t(this,
|
|
710
|
+
this.removeAttribute("tabindex"), this.classList.remove("disabled"), this.classList.remove("hibernated"), t(this, be).unobserve(), t(this, R).unobserve(), t(this, Ot).unobserve(), t(this, mt).unobserve(), t(this, St).unobserve(), t(this, gt).unobserve(), t(this, et).unobserve(), t(this, Ht).unobserve(), t(this, $t).unobserve(), t(this, vt).unobserve(), t(this, Bt).unobserve(), t(this, me).unobserve(), t(this, st).unobserve(), t(this, V).unobserve(), t(this, Se).unobserve(), t(this, ge).unobserve(), t(this, ve).unobserve(), t(this, ye).unobserve(), t(this, Te).unobserve(), t(this, Ce).unobserve(), t(this, J).unobserve(), t(this, Pe).unobserve(), t(this, Wt).unobserve(), t(this, Q).unobserve(), t(this, Nt).unobserve(), t(this, yt).unobserve(), t(this, Ee).unobserve(), t(this, qt).unobserve(), t(this, we).unobserve(), t(this, Gt).unobserve(), t(this, Ut).unobserve(), ft.unsubscribe(t(this, We)), ft.unsubscribe(t(this, F)), ns.unsubscribe(t(this, F)), o(this, c, Is).call(this), t(this, He).disconnect();
|
|
711
711
|
}
|
|
712
712
|
}
|
|
713
|
-
p = new WeakMap(),
|
|
713
|
+
p = new WeakMap(), be = new WeakMap(), R = new WeakMap(), Ot = new WeakMap(), mt = new WeakMap(), St = new WeakMap(), gt = new WeakMap(), et = new WeakMap(), Ht = new WeakMap(), $t = new WeakMap(), vt = new WeakMap(), Bt = new WeakMap(), me = new WeakMap(), st = new WeakMap(), V = new WeakMap(), Se = new WeakMap(), ge = new WeakMap(), ve = new WeakMap(), ye = new WeakMap(), Te = new WeakMap(), Ce = new WeakMap(), J = new WeakMap(), Pe = new WeakMap(), Wt = new WeakMap(), Q = new WeakMap(), Nt = new WeakMap(), yt = new WeakMap(), Ee = new WeakMap(), qt = new WeakMap(), we = new WeakMap(), Gt = new WeakMap(), Ut = new WeakMap(), Kt = new WeakMap(), b = new WeakMap(), Re = new WeakMap(), G = new WeakMap(), d = new WeakMap(), as = new WeakMap(), ds = new WeakMap(), L = new WeakMap(), P = new WeakMap(), U = new WeakMap(), it = new WeakMap(), Zt = new WeakMap(), rt = new WeakMap(), M = new WeakMap(), D = new WeakMap(), De = new WeakMap(), Ct = new WeakMap(), Pt = new WeakMap(), Et = new WeakMap(), K = new WeakMap(), Oe = new WeakMap(), jt = new WeakMap(), Jt = new WeakMap(), xe = new WeakMap(), ht = new WeakMap(), z = new WeakMap(), He = new WeakMap(), wt = new WeakMap(), Le = new WeakMap(), $e = new WeakMap(), c = new WeakSet(), As = function() {
|
|
714
714
|
const e = t(this, R).current, s = t(this, Ot).current ? "-reverse" : "";
|
|
715
|
-
t(this, b).style.flexDirection = e === "x" ? `row${s}` : `column${s}`, t(this, it).axis = t(this, Bt).current ? "max" : e, t(this, Zt).dimension = e === "x" ? "width" : "height", t(this, rt).axis = e, e === "x" ? this.style.touchAction = "pan-y" : e === "y" && (this.style.touchAction = "pan-x"), t(this,
|
|
716
|
-
},
|
|
717
|
-
o(this, c,
|
|
718
|
-
e instanceof HTMLElement && e.tagName !== "SCRIPT" && t(this,
|
|
719
|
-
}), r(this, d, [...t(this,
|
|
715
|
+
t(this, b).style.flexDirection = e === "x" ? `row${s}` : `column${s}`, t(this, it).axis = t(this, Bt).current ? "max" : e, t(this, Zt).dimension = e === "x" ? "width" : "height", t(this, rt).axis = e, e === "x" ? this.style.touchAction = "pan-y" : e === "y" && (this.style.touchAction = "pan-x"), t(this, z) && t(this, F).call(this);
|
|
716
|
+
}, rs = function() {
|
|
717
|
+
o(this, c, Me).call(this), t(this, Re).assignedElements().forEach((e, s) => {
|
|
718
|
+
e instanceof HTMLElement && e.tagName !== "SCRIPT" && t(this, G).push(new Li(e, s, this));
|
|
719
|
+
}), r(this, d, [...t(this, G)]), t(this, b).style.transform = "", tt(this, "scrollSectionsChange", {
|
|
720
720
|
custom: !0,
|
|
721
721
|
composed: !0
|
|
722
|
-
}), t(this, F).call(this), o(this, c,
|
|
723
|
-
},
|
|
724
|
-
t(this,
|
|
722
|
+
}), t(this, F).call(this), o(this, c, ue).call(this);
|
|
723
|
+
}, Me = function() {
|
|
724
|
+
t(this, G).forEach((e) => {
|
|
725
725
|
e.destroy();
|
|
726
|
-
}), r(this,
|
|
726
|
+
}), r(this, G, []), r(this, d, []), t(this, D).reset(), t(this, p).reset(), this.style.removeProperty("--max-section-size"), tt(this, "scrollSectionsChange", {
|
|
727
727
|
custom: !0,
|
|
728
728
|
composed: !0
|
|
729
729
|
});
|
|
730
|
-
},
|
|
731
|
-
t(this,
|
|
730
|
+
}, Ps = function() {
|
|
731
|
+
t(this, Et) || (r(this, Et, !0), t(this, p).unsubscribe(t(this, ps)), t(this, p).unlistenAnimationFrame(), clearInterval(t(this, Oe)), clearInterval(t(this, jt)), t(this, Jt).unlistenAnimationFrame(), t(this, it).disconnect(), t(this, Zt).disconnect(), t(this, rt).disconnect(), t(this, M).disconnect(), t(this, Pt) || (this.sections.forEach((e) => {
|
|
732
732
|
e.unsetTransform();
|
|
733
733
|
}), t(this, F).call(this)));
|
|
734
|
-
},
|
|
735
|
-
t(this,
|
|
736
|
-
},
|
|
737
|
-
t(this,
|
|
738
|
-
},
|
|
739
|
-
t(this,
|
|
734
|
+
}, Es = function() {
|
|
735
|
+
t(this, Et) && (r(this, Et, !1), t(this, p).subscribe(t(this, ps), -1e4), t(this, p).notify(), t(this, it).connect(), t(this, Zt).connect(), t(this, rt).connect(), t(this, J).current && t(this, M).connect());
|
|
736
|
+
}, Is = function() {
|
|
737
|
+
t(this, K) || (r(this, K, !0), clearTimeout(t(this, $e)), ft.unsubscribe(t(this, F)), o(this, c, Ps).call(this), t(this, b).style.transform = "", t(this, b).style.height = "", t(this, b).style.width = "", this.classList.remove("has-overflow", "start", "end"), this.style.removeProperty("--counter"), t(this, G).length ? o(this, c, Me).call(this) : (t(this, D).reset(), t(this, p).reset()), oe.unregister(this));
|
|
738
|
+
}, Ms = function() {
|
|
739
|
+
t(this, K) && (r(this, K, !1), oe.register(this), this.tryResplit(), o(this, c, Es).call(this), this.scrollToSection(t(this, Ce).current, {
|
|
740
740
|
behaviour: "instant"
|
|
741
|
-
}), ft.subscribe(t(this, F),
|
|
742
|
-
}, F = new WeakMap(),
|
|
741
|
+
}), ft.subscribe(t(this, F), xs.SCROLL));
|
|
742
|
+
}, F = new WeakMap(), ps = new WeakMap(), Xs = function(e) {
|
|
743
743
|
let s = t(this, D).current;
|
|
744
|
-
return t(this, V).current ? s =
|
|
745
|
-
},
|
|
746
|
-
t(this, Wt).current && (t(this, M).direction = e), t(this,
|
|
747
|
-
t(this,
|
|
744
|
+
return t(this, V).current ? s = Si(e, t(this, d).length) : s = Zs(e, 0, this.limit), s;
|
|
745
|
+
}, Be = new WeakMap(), fs = new WeakMap(), Fs = function(e = 1) {
|
|
746
|
+
t(this, Wt).current && (t(this, M).direction = e), t(this, J).current && t(this, M).pauseAndContinue(
|
|
747
|
+
t(this, Pe).current,
|
|
748
748
|
this.sectionalCSSProperty.current
|
|
749
749
|
);
|
|
750
|
-
},
|
|
750
|
+
}, Ts = function(e = "current") {
|
|
751
751
|
if (t(this, V).current && t(this, d).length) {
|
|
752
|
-
const s = t(this, p)[e] % Math.round(t(this, P) + t(this, L) + t(this,
|
|
753
|
-
return s < 0 ? t(this, P) + s + t(this, L) + t(this,
|
|
752
|
+
const s = t(this, p)[e] % Math.round(t(this, P) + t(this, L) + t(this, U));
|
|
753
|
+
return s < 0 ? t(this, P) + s + t(this, L) + t(this, U) : s;
|
|
754
754
|
} else
|
|
755
755
|
return t(this, p)[e];
|
|
756
|
-
},
|
|
756
|
+
}, ue = function() {
|
|
757
757
|
if (t(this, d).length) {
|
|
758
758
|
const e = t(this, D).current + t(this, Nt).current;
|
|
759
759
|
if (e === 0 ? r(this, ht, "start") : e === this.limit ? r(this, ht, "end") : r(this, ht, null), tt(this, "scrollLine", {
|
|
760
760
|
detail: { line: t(this, ht) }
|
|
761
|
-
}), t(this,
|
|
761
|
+
}), t(this, Q).current) {
|
|
762
762
|
this.classList.remove("end", "start"), t(this, ht) && this.classList.add(t(this, ht));
|
|
763
763
|
const s = t(this, st).current + t(this, yt).current;
|
|
764
|
-
r(this,
|
|
764
|
+
r(this, wt, []), t(this, d).forEach((h, u) => {
|
|
765
765
|
h.setCurrentIndex(null), h.setCurrentIndexArc(null), h.setCurrentIndexArcAbs(null), h.setMiddle(!1);
|
|
766
766
|
const g = e - this.limit - 1 + t(this, yt).current, v = e + s, C = this.sections.length - v;
|
|
767
|
-
u >= e && u < v || u <= g ? (h.setMark("current"), t(this,
|
|
768
|
-
}), t(this,
|
|
767
|
+
u >= e && u < v || u <= g ? (h.setMark("current"), t(this, wt).push(h)) : u >= v && u < v + C / 2 || u <= g + s ? h.setMark("next") : h.setMark("previous");
|
|
768
|
+
}), t(this, bs).call(this);
|
|
769
769
|
}
|
|
770
770
|
}
|
|
771
|
-
},
|
|
772
|
-
if (t(this,
|
|
773
|
-
const e = Math.floor(t(this,
|
|
774
|
-
t(this,
|
|
771
|
+
}, Ys = function() {
|
|
772
|
+
if (t(this, Q).current) {
|
|
773
|
+
const e = Math.floor(t(this, wt).length / 2);
|
|
774
|
+
t(this, wt).sort((s, h) => s.element.getBoundingClientRect().left - h.element.getBoundingClientRect().left), t(this, wt).forEach((s, h) => {
|
|
775
775
|
const u = h - e;
|
|
776
776
|
s.setCurrentIndex(h), s.setCurrentIndexArc(u), s.setCurrentIndexArcAbs(Math.abs(u)), s.setMiddle(h === e);
|
|
777
777
|
});
|
|
778
778
|
}
|
|
779
|
-
},
|
|
779
|
+
}, bs = new WeakMap(), hs = function(e = !1) {
|
|
780
780
|
let s = this.targetScrollValue, h = 1 / 0, u = 0;
|
|
781
781
|
const g = t(this, p).direction;
|
|
782
782
|
for (let v = 0; v < t(this, d).length; v++) {
|
|
783
783
|
const C = t(this, d)[v];
|
|
784
|
-
let
|
|
785
|
-
this.overscroll &&
|
|
786
|
-
let
|
|
787
|
-
|
|
784
|
+
let le = t(this, xe) ? C.size * g * -1 * 0.4 : 0, Ie = C.position;
|
|
785
|
+
this.overscroll && Ie === 0 && e && (Ie = t(this, Ct));
|
|
786
|
+
let ss = Math.abs(Ie + le - s);
|
|
787
|
+
ss <= h && (h = ss, u = v);
|
|
788
788
|
}
|
|
789
789
|
return u;
|
|
790
|
-
},
|
|
791
|
-
|
|
792
|
-
var
|
|
793
|
-
class
|
|
790
|
+
}, We = new WeakMap();
|
|
791
|
+
q && !customElements.get("e-scroll") && customElements.define("e-scroll", zs);
|
|
792
|
+
var ms;
|
|
793
|
+
class es extends HTMLElement {
|
|
794
794
|
constructor() {
|
|
795
795
|
super(...arguments);
|
|
796
|
-
i(this,
|
|
796
|
+
i(this, ms, null);
|
|
797
797
|
}
|
|
798
798
|
get scrollElement() {
|
|
799
|
-
return t(this,
|
|
799
|
+
return t(this, ms);
|
|
800
800
|
}
|
|
801
801
|
connectedCallback() {
|
|
802
|
-
const e =
|
|
803
|
-
e instanceof
|
|
802
|
+
const e = xi(this, zs);
|
|
803
|
+
e instanceof zs ? r(this, ms, e) : console.error(this, "e-scroll not found");
|
|
804
804
|
}
|
|
805
805
|
}
|
|
806
|
-
|
|
807
|
-
var
|
|
808
|
-
class
|
|
806
|
+
ms = new WeakMap();
|
|
807
|
+
var Qt, O, xt, Lt, Ne, qe, Xt, Ge, Ss, gs;
|
|
808
|
+
class Vi extends es {
|
|
809
809
|
constructor() {
|
|
810
810
|
super();
|
|
811
|
-
i(this,
|
|
811
|
+
i(this, Qt, null);
|
|
812
812
|
i(this, O, null);
|
|
813
813
|
i(this, xt, !1);
|
|
814
814
|
i(this, Lt, 0);
|
|
815
|
-
i(this, We, 0);
|
|
816
815
|
i(this, Ne, 0);
|
|
817
|
-
i(this,
|
|
816
|
+
i(this, qe, 0);
|
|
817
|
+
i(this, Xt, () => {
|
|
818
818
|
r(this, xt, this.offsetWidth > this.offsetHeight);
|
|
819
819
|
const e = t(this, xt) ? this.offsetWidth : this.offsetHeight;
|
|
820
|
-
r(this, Lt, e / ((this.scrollElement.scrollSize + this.scrollElement.viewportSize) / e)), r(this, Lt, Math.max(t(this, Lt), 30)), t(this, xt) ? (t(this, O).style.width = t(this, Lt) + "px", t(this, O).style.height = "100%") : (t(this, O).style.width = "100%", t(this, O).style.height = t(this, Lt) + "px"), r(this,
|
|
820
|
+
r(this, Lt, e / ((this.scrollElement.scrollSize + this.scrollElement.viewportSize) / e)), r(this, Lt, Math.max(t(this, Lt), 30)), t(this, xt) ? (t(this, O).style.width = t(this, Lt) + "px", t(this, O).style.height = "100%") : (t(this, O).style.width = "100%", t(this, O).style.height = t(this, Lt) + "px"), r(this, Ne, e - t(this, Lt)), this.scrollElement.scrollSize <= 0 ? this.style.display = "none" : this.style.display = "", t(this, Ge).call(this);
|
|
821
821
|
});
|
|
822
|
-
i(this,
|
|
823
|
-
r(this,
|
|
822
|
+
i(this, Ge, () => {
|
|
823
|
+
r(this, qe, this.scrollElement.currentProgress * t(this, Ne)), t(this, xt) ? t(this, O).style.transform = `translate3d(${t(this, qe)}px, 0px, 0px)` : t(this, O).style.transform = `translate3d(0px, ${t(this, qe)}px, 0px)`;
|
|
824
824
|
});
|
|
825
|
-
i(this,
|
|
825
|
+
i(this, Ss, () => {
|
|
826
826
|
this.setAttribute("axis", this.scrollElement.axisCSSProperty.current);
|
|
827
827
|
});
|
|
828
|
-
i(this,
|
|
829
|
-
document.documentElement.classList.add("grabbing"),
|
|
828
|
+
i(this, gs, (e) => {
|
|
829
|
+
document.documentElement.classList.add("grabbing"), wi(
|
|
830
830
|
(u) => {
|
|
831
|
-
const g = t(this, xt) ? u.x : u.y, v = this.scrollElement.distance / t(this,
|
|
831
|
+
const g = t(this, xt) ? u.x : u.y, v = this.scrollElement.distance / t(this, Ne), C = (g - h) * v;
|
|
832
832
|
this.scrollElement.setPosition(s + C);
|
|
833
833
|
},
|
|
834
834
|
() => {
|
|
@@ -837,10 +837,10 @@ class xi extends ys {
|
|
|
837
837
|
);
|
|
838
838
|
const s = this.scrollElement.damped.target, h = t(this, xt) ? e.x : e.y;
|
|
839
839
|
});
|
|
840
|
-
if (
|
|
840
|
+
if (q) {
|
|
841
841
|
const e = this.attachShadow({ mode: "open" });
|
|
842
842
|
e.adoptedStyleSheets = [
|
|
843
|
-
|
|
843
|
+
js({
|
|
844
844
|
":host": {
|
|
845
845
|
display: "inline-block",
|
|
846
846
|
zIndex: "1",
|
|
@@ -869,7 +869,7 @@ class xi extends ys {
|
|
|
869
869
|
touchAction: "none"
|
|
870
870
|
}
|
|
871
871
|
})
|
|
872
|
-
], r(this,
|
|
872
|
+
], r(this, Qt, document.createElement("slot")), t(this, Qt).innerHTML = '<div class="default-thumb"></div>', e.appendChild(t(this, Qt));
|
|
873
873
|
}
|
|
874
874
|
}
|
|
875
875
|
get thumbElement() {
|
|
@@ -877,28 +877,28 @@ class xi extends ys {
|
|
|
877
877
|
}
|
|
878
878
|
connectedCallback() {
|
|
879
879
|
super.connectedCallback(), this.setAttribute("drag-dead-zone", "");
|
|
880
|
-
const e = t(this,
|
|
881
|
-
r(this, O, e), t(this, O).addEventListener("pointerdown", t(this,
|
|
880
|
+
const e = t(this, Qt).assignedElements()[0] || t(this, Qt).firstElementChild;
|
|
881
|
+
r(this, O, e), t(this, O).addEventListener("pointerdown", t(this, gs)), ft.subscribe(t(this, Xt), xs.SCROLL), ns.subscribe(this, t(this, Xt)), ns.subscribe(this.scrollElement, t(this, Xt)), this.scrollElement.onScroll(t(this, Ge)), this.scrollElement.axisCSSProperty.subscribe(t(this, Ss));
|
|
882
882
|
}
|
|
883
883
|
disconnectedCallback() {
|
|
884
|
-
this.removeAttribute("drag-dead-zone"), this.style.display = "", t(this, O).removeEventListener("pointerdown", t(this,
|
|
884
|
+
this.removeAttribute("drag-dead-zone"), this.style.display = "", t(this, O).removeEventListener("pointerdown", t(this, gs)), ft.unsubscribe(t(this, Xt)), ns.unsubscribe(t(this, Xt)), this.scrollElement.offScroll(t(this, Ge)), this.scrollElement.axisCSSProperty.unsubscribe(t(this, Ss));
|
|
885
885
|
}
|
|
886
886
|
}
|
|
887
|
-
|
|
888
|
-
|
|
889
|
-
var
|
|
890
|
-
class
|
|
887
|
+
Qt = new WeakMap(), O = new WeakMap(), xt = new WeakMap(), Lt = new WeakMap(), Ne = new WeakMap(), qe = new WeakMap(), Xt = new WeakMap(), Ge = new WeakMap(), Ss = new WeakMap(), gs = new WeakMap();
|
|
888
|
+
q && !customElements.get("e-scrollbar") && customElements.define("e-scrollbar", Vi);
|
|
889
|
+
var Ue, Ke, Ze;
|
|
890
|
+
class $s extends es {
|
|
891
891
|
constructor() {
|
|
892
892
|
super();
|
|
893
|
-
i(this,
|
|
894
|
-
i(this,
|
|
893
|
+
i(this, Ue, new l(this, "--behaviour", "smooth"));
|
|
894
|
+
i(this, Ke, new l(
|
|
895
895
|
this,
|
|
896
896
|
"--tween-easing",
|
|
897
897
|
!1
|
|
898
898
|
));
|
|
899
|
-
i(this,
|
|
900
|
-
|
|
901
|
-
const e = t(this,
|
|
899
|
+
i(this, Ze, new l(this, "--tween-duration", 0));
|
|
900
|
+
q && this.addEventListener("click", () => {
|
|
901
|
+
const e = t(this, Ue).current, s = t(this, Ke).current, h = t(this, Ze).current;
|
|
902
902
|
this.handleClick({
|
|
903
903
|
behaviour: e,
|
|
904
904
|
tween: s || h ? { easing: s, duration: h } : void 0
|
|
@@ -906,107 +906,107 @@ class Rs extends ys {
|
|
|
906
906
|
});
|
|
907
907
|
}
|
|
908
908
|
connectedCallback() {
|
|
909
|
-
super.connectedCallback(), this.hasAttribute("tabindex") || this.setAttribute("tabindex", "0"), this.hasAttribute("role") || this.setAttribute("role", "button"), t(this,
|
|
909
|
+
super.connectedCallback(), this.hasAttribute("tabindex") || this.setAttribute("tabindex", "0"), this.hasAttribute("role") || this.setAttribute("role", "button"), t(this, Ue).observe(), t(this, Ke).observe(), t(this, Ze).observe();
|
|
910
910
|
}
|
|
911
911
|
disconnectedCallback() {
|
|
912
|
-
this.removeAttribute("tabindex"), this.removeAttribute("role"), t(this,
|
|
912
|
+
this.removeAttribute("tabindex"), this.removeAttribute("role"), t(this, Ue).close(), t(this, Ke).close(), t(this, Ze).close();
|
|
913
913
|
}
|
|
914
914
|
}
|
|
915
|
-
|
|
916
|
-
var
|
|
917
|
-
class
|
|
915
|
+
Ue = new WeakMap(), Ke = new WeakMap(), Ze = new WeakMap();
|
|
916
|
+
var je;
|
|
917
|
+
class zi extends $s {
|
|
918
918
|
constructor() {
|
|
919
919
|
super(...arguments);
|
|
920
|
-
i(this,
|
|
920
|
+
i(this, je, new l(this, "--set", 1));
|
|
921
921
|
}
|
|
922
922
|
handleClick(e) {
|
|
923
|
-
this.scrollElement.scrollToSection(t(this,
|
|
923
|
+
this.scrollElement.scrollToSection(t(this, je).current, e);
|
|
924
924
|
}
|
|
925
925
|
connectedCallback() {
|
|
926
|
-
super.connectedCallback(), t(this,
|
|
926
|
+
super.connectedCallback(), t(this, je).observe();
|
|
927
927
|
}
|
|
928
928
|
disconnectedCallback() {
|
|
929
|
-
super.disconnectedCallback(), t(this,
|
|
929
|
+
super.disconnectedCallback(), t(this, je).close();
|
|
930
930
|
}
|
|
931
931
|
}
|
|
932
|
-
|
|
933
|
-
|
|
934
|
-
var
|
|
935
|
-
class
|
|
932
|
+
je = new WeakMap();
|
|
933
|
+
q && !customElements.get("e-scroll-set-button") && customElements.define("e-scroll-set-button", zi);
|
|
934
|
+
var kt, Je;
|
|
935
|
+
class Ai extends $s {
|
|
936
936
|
constructor() {
|
|
937
937
|
super(...arguments);
|
|
938
|
-
i(this,
|
|
939
|
-
i(this,
|
|
940
|
-
this.scrollElement.loopCSSProperty.current ? this.removeAttribute("disabled") : t(this,
|
|
938
|
+
i(this, kt, new l(this, "--step", 1));
|
|
939
|
+
i(this, Je, () => {
|
|
940
|
+
this.scrollElement.loopCSSProperty.current ? this.removeAttribute("disabled") : t(this, kt).current > 0 && this.scrollElement.scrollLine === "end" || t(this, kt).current < 0 && this.scrollElement.scrollLine === "start" ? this.setAttribute("disabled", "") : this.removeAttribute("disabled");
|
|
941
941
|
});
|
|
942
942
|
}
|
|
943
943
|
handleClick(e) {
|
|
944
|
-
this.scrollElement.shiftSections(t(this,
|
|
944
|
+
this.scrollElement.shiftSections(t(this, kt).current, e);
|
|
945
945
|
}
|
|
946
946
|
connectedCallback() {
|
|
947
|
-
super.connectedCallback(), this.scrollElement && (t(this,
|
|
948
|
-
t(this,
|
|
949
|
-
}), t(this,
|
|
947
|
+
super.connectedCallback(), this.scrollElement && (t(this, kt).subscribe(() => {
|
|
948
|
+
t(this, Je).call(this);
|
|
949
|
+
}), t(this, kt).observe(), this.scrollElement.addEventListener(
|
|
950
950
|
"scrollLine",
|
|
951
|
-
t(this,
|
|
952
|
-
), t(this,
|
|
951
|
+
t(this, Je)
|
|
952
|
+
), t(this, Je).call(this));
|
|
953
953
|
}
|
|
954
954
|
disconnectedCallback() {
|
|
955
|
-
super.disconnectedCallback(), t(this,
|
|
955
|
+
super.disconnectedCallback(), t(this, kt).close(), this.removeAttribute("disabled");
|
|
956
956
|
}
|
|
957
957
|
}
|
|
958
|
-
|
|
959
|
-
|
|
960
|
-
var nt,
|
|
961
|
-
class
|
|
958
|
+
kt = new WeakMap(), Je = new WeakMap();
|
|
959
|
+
q && !customElements.get("e-scroll-step-button") && customElements.define("e-scroll-step-button", Ai);
|
|
960
|
+
var nt, Yt, Qe, vs, ys, Xe;
|
|
961
|
+
class Ii {
|
|
962
962
|
constructor(n, e, s) {
|
|
963
963
|
i(this, nt, null);
|
|
964
|
-
i(this,
|
|
965
|
-
i(this,
|
|
966
|
-
i(this,
|
|
967
|
-
i(this,
|
|
968
|
-
t(this,
|
|
969
|
-
behaviour: t(this,
|
|
964
|
+
i(this, Yt, null);
|
|
965
|
+
i(this, Qe, null);
|
|
966
|
+
i(this, vs, null);
|
|
967
|
+
i(this, ys, () => {
|
|
968
|
+
t(this, Yt).scrollToSection(t(this, Qe), {
|
|
969
|
+
behaviour: t(this, vs)
|
|
970
970
|
});
|
|
971
971
|
});
|
|
972
|
-
i(this,
|
|
972
|
+
i(this, Xe, () => {
|
|
973
973
|
t(this, nt).classList.toggle(
|
|
974
974
|
"current",
|
|
975
|
-
t(this,
|
|
975
|
+
t(this, Yt).counter.current === t(this, Qe)
|
|
976
976
|
);
|
|
977
977
|
});
|
|
978
|
-
|
|
978
|
+
q && (r(this, nt, document.createElement("button")), t(this, nt).setAttribute("aria-label", `Go to section ${e + 1}`), r(this, Yt, n), r(this, vs, s), r(this, Qe, e), t(this, nt).addEventListener("click", t(this, ys)), t(this, Yt).counter.subscribe(t(this, Xe)), t(this, Xe).call(this));
|
|
979
979
|
}
|
|
980
980
|
get element() {
|
|
981
981
|
return t(this, nt);
|
|
982
982
|
}
|
|
983
983
|
destroy() {
|
|
984
|
-
t(this, nt).removeEventListener("click", t(this,
|
|
984
|
+
t(this, nt).removeEventListener("click", t(this, ys)), t(this, Yt).counter.unsubscribe(t(this, Xe)), t(this, nt).remove();
|
|
985
985
|
}
|
|
986
986
|
}
|
|
987
|
-
nt = new WeakMap(),
|
|
988
|
-
var
|
|
989
|
-
class
|
|
987
|
+
nt = new WeakMap(), Yt = new WeakMap(), Qe = new WeakMap(), vs = new WeakMap(), ys = new WeakMap(), Xe = new WeakMap();
|
|
988
|
+
var ke, _t, ot;
|
|
989
|
+
class Mi extends es {
|
|
990
990
|
constructor() {
|
|
991
991
|
super(...arguments);
|
|
992
|
-
i(this,
|
|
993
|
-
i(this,
|
|
992
|
+
i(this, ke, null);
|
|
993
|
+
i(this, _t, []);
|
|
994
994
|
i(this, ot, ws(() => {
|
|
995
|
-
t(this,
|
|
995
|
+
t(this, _t).forEach((s) => s.destroy()), r(this, _t, []);
|
|
996
996
|
let e = 0;
|
|
997
997
|
this.scrollElement.loopCSSProperty.current ? e = this.scrollElement.visibleSections.length : e = this.scrollElement.visibleSections.length - Math.max(this.scrollElement.sectionsInViewCSSProperty.current - 1, 0);
|
|
998
998
|
for (let s = 0; s < e; s++) {
|
|
999
|
-
const h = new
|
|
999
|
+
const h = new Ii(
|
|
1000
1000
|
this.scrollElement,
|
|
1001
1001
|
s,
|
|
1002
1002
|
this.getAttribute("behaviour") || "smooth"
|
|
1003
1003
|
);
|
|
1004
|
-
t(this,
|
|
1004
|
+
t(this, ke).appendChild(h.element), t(this, _t).push(h);
|
|
1005
1005
|
}
|
|
1006
1006
|
}, 0));
|
|
1007
1007
|
}
|
|
1008
1008
|
connectedCallback() {
|
|
1009
|
-
super.connectedCallback(), this.innerHTML = "", r(this,
|
|
1009
|
+
super.connectedCallback(), this.innerHTML = "", r(this, ke, document.createElement("div")), this.appendChild(t(this, ke)), this.scrollElement.addEventListener(
|
|
1010
1010
|
"scrollSectionsChange",
|
|
1011
1011
|
t(this, ot)
|
|
1012
1012
|
), this.scrollElement.sectionsInViewCSSProperty.subscribe(
|
|
@@ -1019,13 +1019,13 @@ class ki extends ys {
|
|
|
1019
1019
|
t(this, ot)
|
|
1020
1020
|
), this.scrollElement.sectionsInViewCSSProperty.unsubscribe(
|
|
1021
1021
|
t(this, ot)
|
|
1022
|
-
), this.scrollElement.loopCSSProperty.unsubscribe(t(this, ot)), t(this,
|
|
1022
|
+
), this.scrollElement.loopCSSProperty.unsubscribe(t(this, ot)), t(this, _t).forEach((e) => e.destroy()), r(this, _t, []), t(this, ke).remove();
|
|
1023
1023
|
}
|
|
1024
1024
|
}
|
|
1025
|
-
|
|
1026
|
-
|
|
1027
|
-
var te, ee, se, ie, Vt,
|
|
1028
|
-
class
|
|
1025
|
+
ke = new WeakMap(), _t = new WeakMap(), ot = new WeakMap();
|
|
1026
|
+
q && !customElements.get("e-scroll-bullet-buttons") && customElements.define("e-scroll-bullet-buttons", Mi);
|
|
1027
|
+
var te, ee, se, ie, Vt, zt, At, It, A, H, $, B, Mt, k, lt, ct, X, Ft, Ve, ut, at, dt, w, W, N, Y, _, Z, Ye, S, Tt, re, _e, x, pt, T, I, j, ze, Rt, y, he, m, _s, ti, ei, si, ii, ri, ts, Ae, Rs, ae, hi, ni, Ds;
|
|
1028
|
+
class Fi extends es {
|
|
1029
1029
|
constructor() {
|
|
1030
1030
|
super(...arguments);
|
|
1031
1031
|
i(this, m);
|
|
@@ -1034,7 +1034,7 @@ class Ai extends ys {
|
|
|
1034
1034
|
i(this, se);
|
|
1035
1035
|
i(this, ie);
|
|
1036
1036
|
i(this, Vt);
|
|
1037
|
-
i(this,
|
|
1037
|
+
i(this, zt);
|
|
1038
1038
|
i(this, At);
|
|
1039
1039
|
i(this, It);
|
|
1040
1040
|
i(this, A);
|
|
@@ -1042,38 +1042,38 @@ class Ai extends ys {
|
|
|
1042
1042
|
i(this, $);
|
|
1043
1043
|
i(this, B);
|
|
1044
1044
|
i(this, Mt);
|
|
1045
|
-
i(this,
|
|
1045
|
+
i(this, k);
|
|
1046
1046
|
i(this, lt);
|
|
1047
1047
|
i(this, ct);
|
|
1048
|
-
i(this,
|
|
1048
|
+
i(this, X);
|
|
1049
1049
|
i(this, Ft);
|
|
1050
|
-
i(this,
|
|
1050
|
+
i(this, Ve);
|
|
1051
1051
|
i(this, ut);
|
|
1052
1052
|
i(this, at);
|
|
1053
1053
|
i(this, dt);
|
|
1054
|
-
i(this,
|
|
1054
|
+
i(this, w);
|
|
1055
1055
|
i(this, W);
|
|
1056
1056
|
i(this, N);
|
|
1057
|
-
i(this, X);
|
|
1058
1057
|
i(this, Y);
|
|
1059
|
-
i(this,
|
|
1060
|
-
i(this,
|
|
1058
|
+
i(this, _);
|
|
1059
|
+
i(this, Z);
|
|
1060
|
+
i(this, Ye);
|
|
1061
1061
|
i(this, S);
|
|
1062
1062
|
i(this, Tt);
|
|
1063
1063
|
i(this, re);
|
|
1064
|
-
i(this,
|
|
1064
|
+
i(this, _e);
|
|
1065
1065
|
i(this, x);
|
|
1066
1066
|
i(this, pt);
|
|
1067
1067
|
i(this, T);
|
|
1068
1068
|
i(this, I);
|
|
1069
|
-
i(this,
|
|
1070
|
-
i(this,
|
|
1069
|
+
i(this, j);
|
|
1070
|
+
i(this, ze);
|
|
1071
1071
|
i(this, Rt);
|
|
1072
1072
|
i(this, y);
|
|
1073
1073
|
i(this, he);
|
|
1074
|
-
i(this,
|
|
1075
|
-
i(this,
|
|
1076
|
-
r(this, te, new l(this, "--damping", 20)), r(this, ee, new l(this, "--mass", 0)), r(this, se, new l(this, "--stiffness", 0)), r(this, ie, new l(this, "--target", "")), r(this, Vt, new l(this, "--disabled", !1)), r(this,
|
|
1074
|
+
i(this, ts);
|
|
1075
|
+
i(this, Ae);
|
|
1076
|
+
r(this, te, new l(this, "--damping", 20)), r(this, ee, new l(this, "--mass", 0)), r(this, se, new l(this, "--stiffness", 0)), r(this, ie, new l(this, "--target", "")), r(this, Vt, new l(this, "--disabled", !1)), r(this, zt, new l(
|
|
1077
1077
|
this,
|
|
1078
1078
|
"--distance-offset",
|
|
1079
1079
|
0,
|
|
@@ -1096,11 +1096,11 @@ class Ai extends ys {
|
|
|
1096
1096
|
this,
|
|
1097
1097
|
"--released-from-start",
|
|
1098
1098
|
""
|
|
1099
|
-
)), r(this,
|
|
1099
|
+
)), r(this, k, new l(
|
|
1100
1100
|
this,
|
|
1101
1101
|
"--released-from-finish",
|
|
1102
1102
|
""
|
|
1103
|
-
)), r(this, lt, new l(this, "--passed-var", "")), r(this, ct, new l(this, "--progress-var", "")), r(this,
|
|
1103
|
+
)), r(this, lt, new l(this, "--passed-var", "")), r(this, ct, new l(this, "--progress-var", "")), r(this, X, new l(
|
|
1104
1104
|
this,
|
|
1105
1105
|
"--progress-arc-var",
|
|
1106
1106
|
""
|
|
@@ -1108,31 +1108,31 @@ class Ai extends ys {
|
|
|
1108
1108
|
this,
|
|
1109
1109
|
"--progress-arc-mult",
|
|
1110
1110
|
1
|
|
1111
|
-
)), r(this,
|
|
1111
|
+
)), r(this, Ve, new l(
|
|
1112
1112
|
this,
|
|
1113
1113
|
"--animation-var-type",
|
|
1114
1114
|
"target"
|
|
1115
|
-
)), r(this, ut, new l(this, "--distance-var", "")), r(this, at, new l(this, "--start-var", "")), r(this, dt, new l(this, "--finish-var", "")), r(this,
|
|
1116
|
-
r(this, re, this.scrollElement.vertical ? this.offsetHeight : this.offsetWidth), r(this, Tt, this.scrollElement.vertical ?
|
|
1117
|
-
const e =
|
|
1115
|
+
)), r(this, ut, new l(this, "--distance-var", "")), r(this, at, new l(this, "--start-var", "")), r(this, dt, new l(this, "--finish-var", "")), r(this, w, new ce(!1)), r(this, W, new ce(!1)), r(this, N, new ce(!1)), r(this, Y, new ce(!1)), r(this, _, new ce(!1)), r(this, Z, new ce(!1)), r(this, Ye, []), r(this, S, this), r(this, Tt, 0), r(this, re, 0), r(this, _e, 0), r(this, x, new Qs(0, { order: Js.SEGMENT, min: 0, max: 1 })), r(this, pt, 0), r(this, T, 0), r(this, I, 0), r(this, j, 0), r(this, ze, !1), r(this, Rt, !1), r(this, y, !0), r(this, he, !1), this.resize = () => {
|
|
1116
|
+
r(this, re, this.scrollElement.vertical ? this.offsetHeight : this.offsetWidth), r(this, Tt, this.scrollElement.vertical ? os(this, this.scrollElement) : ls(this, this.scrollElement));
|
|
1117
|
+
const e = fi(
|
|
1118
1118
|
this,
|
|
1119
1119
|
this.scrollElement.vertical ? "top" : "left"
|
|
1120
1120
|
);
|
|
1121
|
-
r(this, Tt, t(this, Tt) - e), r(this, T, this.getStart()), r(this, I, this.getDistance()), r(this, T, t(this, T) + t(this, At).current), r(this, I, t(this, I) + t(this,
|
|
1121
|
+
r(this, Tt, t(this, Tt) - e), r(this, T, this.getStart()), r(this, I, this.getDistance()), r(this, T, t(this, T) + t(this, At).current), r(this, I, t(this, I) + t(this, zt).current), r(this, j, t(this, T) + t(this, I)), this.scrollElement.currentScrollValue > t(this, j) && !t(this, w).current && !t(this, W).current && (t(this, w).current = !0), this.setVar(t(this, at).current, t(this, T)), this.setVar(t(this, dt).current, t(this, j)), this.setVar(t(this, ut).current, t(this, I)), t(this, x).max = t(this, I), r(this, ze, !0), t(this, Ae).call(this);
|
|
1122
1122
|
}, this.findAnotherScrollEntries = ws(() => {
|
|
1123
|
-
const e =
|
|
1123
|
+
const e = oe.getAll(this).reverse();
|
|
1124
1124
|
let s = 0;
|
|
1125
1125
|
e.forEach((h, u) => {
|
|
1126
1126
|
h.element === this.scrollElement && (s = u);
|
|
1127
|
-
}), r(this,
|
|
1128
|
-
}, 0), r(this,
|
|
1127
|
+
}), r(this, Ye, e.slice(s + 1)), this.tick();
|
|
1128
|
+
}, 0), r(this, ts, () => {
|
|
1129
1129
|
t(this, y) || this.resize();
|
|
1130
|
-
}), r(this,
|
|
1131
|
-
!t(this, y) && t(this,
|
|
1130
|
+
}), r(this, Ae, () => {
|
|
1131
|
+
!t(this, y) && t(this, ze) && this.tick();
|
|
1132
1132
|
});
|
|
1133
1133
|
}
|
|
1134
1134
|
get distanceOffsetCSSProperty() {
|
|
1135
|
-
return t(this,
|
|
1135
|
+
return t(this, zt);
|
|
1136
1136
|
}
|
|
1137
1137
|
get startOffsetCSSProperty() {
|
|
1138
1138
|
return t(this, At);
|
|
@@ -1156,7 +1156,7 @@ class Ai extends ys {
|
|
|
1156
1156
|
return t(this, Mt);
|
|
1157
1157
|
}
|
|
1158
1158
|
get releasedFromFinishCSSProperty() {
|
|
1159
|
-
return t(this,
|
|
1159
|
+
return t(this, k);
|
|
1160
1160
|
}
|
|
1161
1161
|
get passedVarCSSProperty() {
|
|
1162
1162
|
return t(this, lt);
|
|
@@ -1165,13 +1165,13 @@ class Ai extends ys {
|
|
|
1165
1165
|
return t(this, ct);
|
|
1166
1166
|
}
|
|
1167
1167
|
get progressArcVarCSSProperty() {
|
|
1168
|
-
return t(this,
|
|
1168
|
+
return t(this, X);
|
|
1169
1169
|
}
|
|
1170
1170
|
get progressArcMultCSSProperty() {
|
|
1171
1171
|
return t(this, Ft);
|
|
1172
1172
|
}
|
|
1173
1173
|
get animationVarTypeCSSProperty() {
|
|
1174
|
-
return t(this,
|
|
1174
|
+
return t(this, Ve);
|
|
1175
1175
|
}
|
|
1176
1176
|
get distanceVarCSSProperty() {
|
|
1177
1177
|
return t(this, ut);
|
|
@@ -1198,7 +1198,7 @@ class Ai extends ys {
|
|
|
1198
1198
|
return t(this, ie);
|
|
1199
1199
|
}
|
|
1200
1200
|
get isCaptured() {
|
|
1201
|
-
return t(this,
|
|
1201
|
+
return t(this, w);
|
|
1202
1202
|
}
|
|
1203
1203
|
get isReleased() {
|
|
1204
1204
|
return t(this, W);
|
|
@@ -1207,13 +1207,13 @@ class Ai extends ys {
|
|
|
1207
1207
|
return t(this, N);
|
|
1208
1208
|
}
|
|
1209
1209
|
get isReleasedFromStart() {
|
|
1210
|
-
return t(this,
|
|
1210
|
+
return t(this, Y);
|
|
1211
1211
|
}
|
|
1212
1212
|
get isCapturedFromFinish() {
|
|
1213
|
-
return t(this,
|
|
1213
|
+
return t(this, _);
|
|
1214
1214
|
}
|
|
1215
1215
|
get isReleasedFromFinish() {
|
|
1216
|
-
return t(this,
|
|
1216
|
+
return t(this, Z);
|
|
1217
1217
|
}
|
|
1218
1218
|
get directionPosition() {
|
|
1219
1219
|
return t(this, Tt);
|
|
@@ -1234,7 +1234,7 @@ class Ai extends ys {
|
|
|
1234
1234
|
return t(this, T);
|
|
1235
1235
|
}
|
|
1236
1236
|
get finish() {
|
|
1237
|
-
return t(this,
|
|
1237
|
+
return t(this, j);
|
|
1238
1238
|
}
|
|
1239
1239
|
get distance() {
|
|
1240
1240
|
return t(this, I);
|
|
@@ -1247,24 +1247,24 @@ class Ai extends ys {
|
|
|
1247
1247
|
}
|
|
1248
1248
|
tick() {
|
|
1249
1249
|
let e = this.scrollElement.currentScrollValue;
|
|
1250
|
-
t(this,
|
|
1250
|
+
t(this, Ye).forEach((u) => {
|
|
1251
1251
|
e += u.value;
|
|
1252
1252
|
});
|
|
1253
1253
|
const s = e - t(this, T);
|
|
1254
1254
|
t(this, he) || r(this, he, t(this, x).previous ? Math.abs(t(this, x).previous - s) > 1e3 : !1), t(this, x).set(s);
|
|
1255
1255
|
const h = Math.round(e);
|
|
1256
|
-
t(this,
|
|
1257
|
-
|
|
1258
|
-
), o(this, m,
|
|
1256
|
+
t(this, w).current && (h >= t(this, T) ? t(this, N).current || o(this, m, ei).call(this) : t(this, N).current && !t(this, Y).current && o(this, m, ii).call(this), h < t(this, j) ? t(this, Z).current && !t(this, _).current && o(this, m, si).call(this) : t(this, N).current && !t(this, Z).current && o(this, m, ri).call(this)), h >= t(this, T) && h < t(this, j) ? t(this, w).current || o(this, m, _s).call(this) : t(this, w).current && (t(this, x).set(
|
|
1257
|
+
bi(t(this, I) / 2, t(this, x).target, 0, t(this, I))
|
|
1258
|
+
), o(this, m, ti).call(this)), t(this, Rt) && t(this, It).current && (t(this, A).current && t(this, S).classList.add(t(this, A).current), r(this, y, !0));
|
|
1259
1259
|
}
|
|
1260
1260
|
disable() {
|
|
1261
|
-
this.style.cssText = "", r(this, Tt, 0), r(this, re, 0), t(this, x).reset(), r(this, pt, 0), r(this, T, 0), r(this, I, 0), r(this,
|
|
1261
|
+
this.style.cssText = "", r(this, Tt, 0), r(this, re, 0), t(this, x).reset(), r(this, pt, 0), r(this, T, 0), r(this, I, 0), r(this, j, 0), r(this, ze, !1), t(this, w).current = !1, t(this, W).current = !1, t(this, N).current = !1, t(this, Y).current = !1, t(this, _).current = !1, t(this, Z).current = !1, r(this, Rt, !1), r(this, y, !0), o(this, m, Ds).call(this);
|
|
1262
1262
|
}
|
|
1263
1263
|
enable() {
|
|
1264
1264
|
r(this, y, !1);
|
|
1265
1265
|
}
|
|
1266
1266
|
connectedCallback() {
|
|
1267
|
-
super.connectedCallback(), t(this,
|
|
1267
|
+
super.connectedCallback(), t(this, w).subscribe((s) => {
|
|
1268
1268
|
s.current && tt(this, "scrollSegmentCapture", {
|
|
1269
1269
|
composed: !0,
|
|
1270
1270
|
custom: !0
|
|
@@ -1274,7 +1274,7 @@ class Ai extends ys {
|
|
|
1274
1274
|
composed: !0,
|
|
1275
1275
|
custom: !0
|
|
1276
1276
|
});
|
|
1277
|
-
}), t(this,
|
|
1277
|
+
}), t(this, _).subscribe((s) => {
|
|
1278
1278
|
s.current && tt(this, "scrollSegmentCaptureFromFinish", {
|
|
1279
1279
|
composed: !0,
|
|
1280
1280
|
custom: !0
|
|
@@ -1284,17 +1284,17 @@ class Ai extends ys {
|
|
|
1284
1284
|
composed: !0,
|
|
1285
1285
|
custom: !0
|
|
1286
1286
|
});
|
|
1287
|
-
}), t(this,
|
|
1287
|
+
}), t(this, Y).subscribe((s) => {
|
|
1288
1288
|
s.current && tt(this, "scrollSegmentReleaseFromStart", {
|
|
1289
1289
|
composed: !0,
|
|
1290
1290
|
custom: !0
|
|
1291
1291
|
});
|
|
1292
|
-
}), t(this,
|
|
1292
|
+
}), t(this, Z).subscribe((s) => {
|
|
1293
1293
|
s.current && tt(this, "scrollSegmentReleaseFromFinish", {
|
|
1294
1294
|
composed: !0,
|
|
1295
1295
|
custom: !0
|
|
1296
1296
|
});
|
|
1297
|
-
}), t(this, te).observe(), t(this, ee).observe(), t(this, se).observe(), t(this, ie).observe(), t(this, Vt).observe(), t(this,
|
|
1297
|
+
}), t(this, te).observe(), t(this, ee).observe(), t(this, se).observe(), t(this, ie).observe(), t(this, Vt).observe(), t(this, zt).observe(), t(this, At).observe(), t(this, It).observe(), t(this, A).observe(), t(this, H).observe(), t(this, $).observe(), t(this, B).observe(), t(this, Mt).observe(), t(this, k).observe(), t(this, lt).observe(), t(this, ct).observe(), t(this, X).observe(), t(this, Ft).observe(), t(this, Ve).observe(), t(this, ut).observe(), t(this, at).observe(), t(this, dt).observe();
|
|
1298
1298
|
let e = !1;
|
|
1299
1299
|
this.findAnotherScrollEntries(), t(this, Vt).current || this.enable(), t(this, te).subscribe((s) => {
|
|
1300
1300
|
t(this, x).damping = s.current;
|
|
@@ -1303,39 +1303,39 @@ class Ai extends ys {
|
|
|
1303
1303
|
}), t(this, se).subscribe((s) => {
|
|
1304
1304
|
t(this, x).stiffness = s.current;
|
|
1305
1305
|
}), t(this, ie).subscribe((s) => {
|
|
1306
|
-
s.previous && o(this, m,
|
|
1306
|
+
s.previous && o(this, m, Ds).call(this), s.current ? s.current === "parent" ? r(this, S, this.parentElement || this) : r(this, S, document.querySelector(s.current) || this) : r(this, S, this);
|
|
1307
1307
|
}), t(this, Vt).subscribe((s) => {
|
|
1308
1308
|
s.current && !s.previous ? this.disable() : !s.current && s.previous && (this.resize(), this.enable());
|
|
1309
1309
|
}), t(this, At).subscribe(() => {
|
|
1310
1310
|
e && !t(this, y) && this.resize();
|
|
1311
|
-
}), t(this,
|
|
1311
|
+
}), t(this, zt).subscribe(() => {
|
|
1312
1312
|
e && !t(this, y) && this.resize();
|
|
1313
1313
|
}), t(this, A).subscribe((s) => {
|
|
1314
|
-
o(this, m,
|
|
1314
|
+
o(this, m, ae).call(this, s);
|
|
1315
1315
|
}), t(this, $).subscribe((s) => {
|
|
1316
|
-
o(this, m,
|
|
1316
|
+
o(this, m, ae).call(this, s);
|
|
1317
1317
|
}), t(this, B).subscribe((s) => {
|
|
1318
|
-
o(this, m,
|
|
1318
|
+
o(this, m, ae).call(this, s);
|
|
1319
1319
|
}), t(this, H).subscribe((s) => {
|
|
1320
|
-
o(this, m,
|
|
1320
|
+
o(this, m, ae).call(this, s);
|
|
1321
1321
|
}), t(this, Mt).subscribe((s) => {
|
|
1322
|
-
o(this, m,
|
|
1323
|
-
}), t(this,
|
|
1324
|
-
o(this, m,
|
|
1322
|
+
o(this, m, ae).call(this, s);
|
|
1323
|
+
}), t(this, k).subscribe((s) => {
|
|
1324
|
+
o(this, m, ae).call(this, s);
|
|
1325
1325
|
}), t(this, It).subscribe((s) => {
|
|
1326
1326
|
t(this, y) || !s.current && s.previous && (this.resize(), this.enable());
|
|
1327
1327
|
}), t(this, lt).subscribe((s) => {
|
|
1328
1328
|
t(this, y) || (this.removeVar(s.previous), this.setVar(s.current, this.passed.current));
|
|
1329
1329
|
}), t(this, ct).subscribe((s) => {
|
|
1330
1330
|
t(this, y) || (this.removeVar(s.previous), this.setVar(s.current, t(this, pt)));
|
|
1331
|
-
}), t(this,
|
|
1331
|
+
}), t(this, X).subscribe((s) => {
|
|
1332
1332
|
t(this, y) || (this.removeVar(s.previous), this.setVar(s.current, this.progressArc));
|
|
1333
1333
|
}), t(this, Ft).subscribe((s) => {
|
|
1334
|
-
t(this, y) || o(this, m,
|
|
1334
|
+
t(this, y) || o(this, m, Rs).call(this);
|
|
1335
1335
|
}), t(this, at).subscribe((s) => {
|
|
1336
1336
|
t(this, y) || (this.removeVar(s.previous), this.setVar(s.current, t(this, T)));
|
|
1337
1337
|
}), t(this, dt).subscribe((s) => {
|
|
1338
|
-
t(this, y) || (this.removeVar(s.previous), this.setVar(s.current, t(this,
|
|
1338
|
+
t(this, y) || (this.removeVar(s.previous), this.setVar(s.current, t(this, j)));
|
|
1339
1339
|
}), t(this, ut).subscribe((s) => {
|
|
1340
1340
|
t(this, y) || (this.removeVar(s.previous), this.setVar(s.current, t(this, I)));
|
|
1341
1341
|
}), t(this, x).subscribe((s) => {
|
|
@@ -1343,17 +1343,17 @@ class Ai extends ys {
|
|
|
1343
1343
|
r(this, he, !1);
|
|
1344
1344
|
return;
|
|
1345
1345
|
}
|
|
1346
|
-
o(this, m,
|
|
1346
|
+
o(this, m, Rs).call(this);
|
|
1347
1347
|
}), this.scrollElement.addEventListener(
|
|
1348
1348
|
"scrollSectionsChange",
|
|
1349
1349
|
this.findAnotherScrollEntries
|
|
1350
|
-
), this.scrollElement.addEventListener("scrollResize", this.resize), ft.subscribe(t(this,
|
|
1350
|
+
), this.scrollElement.addEventListener("scrollResize", this.resize), ft.subscribe(t(this, ts), xs.SCROLL + 1), this.scrollElement.onScroll(t(this, Ae)), e = !0;
|
|
1351
1351
|
}
|
|
1352
1352
|
disconnectedCallback() {
|
|
1353
|
-
ft.unsubscribe(t(this,
|
|
1353
|
+
ft.unsubscribe(t(this, ts)), this.scrollElement.offScroll(t(this, Ae)), this.scrollElement.removeEventListener(
|
|
1354
1354
|
"scrollSectionsChange",
|
|
1355
1355
|
this.findAnotherScrollEntries
|
|
1356
|
-
), this.scrollElement.removeEventListener("scrollResize", this.resize), t(this, te).close(), t(this, ee).close(), t(this, se).close(), t(this, ie).close(), t(this, Vt).close(), t(this,
|
|
1356
|
+
), this.scrollElement.removeEventListener("scrollResize", this.resize), t(this, te).close(), t(this, ee).close(), t(this, se).close(), t(this, ie).close(), t(this, Vt).close(), t(this, zt).close(), t(this, At).close(), t(this, It).close(), t(this, A).close(), t(this, H).close(), t(this, $).close(), t(this, B).close(), t(this, Mt).close(), t(this, k).close(), t(this, lt).close(), t(this, ct).close(), t(this, X).close(), t(this, Ft).close(), t(this, ut).close(), t(this, at).close(), t(this, dt).close(), t(this, w).close(), t(this, W).close(), t(this, N).close(), t(this, Y).close(), t(this, _).close(), t(this, Z).close(), this.disable(), t(this, x).close();
|
|
1357
1357
|
}
|
|
1358
1358
|
removeVar(e) {
|
|
1359
1359
|
e && t(this, S).style.removeProperty(`--${e}`);
|
|
@@ -1365,65 +1365,65 @@ class Ai extends ys {
|
|
|
1365
1365
|
}
|
|
1366
1366
|
}
|
|
1367
1367
|
getDistance() {
|
|
1368
|
-
return t(this, re) + t(this,
|
|
1368
|
+
return t(this, re) + t(this, _e);
|
|
1369
1369
|
}
|
|
1370
1370
|
getStart() {
|
|
1371
|
-
return t(this, Tt) - t(this,
|
|
1371
|
+
return t(this, Tt) - t(this, _e);
|
|
1372
1372
|
}
|
|
1373
1373
|
}
|
|
1374
|
-
te = new WeakMap(), ee = new WeakMap(), se = new WeakMap(), ie = new WeakMap(), Vt = new WeakMap(),
|
|
1375
|
-
t(this,
|
|
1376
|
-
t(this,
|
|
1377
|
-
), t(this,
|
|
1378
|
-
t(this,
|
|
1374
|
+
te = new WeakMap(), ee = new WeakMap(), se = new WeakMap(), ie = new WeakMap(), Vt = new WeakMap(), zt = new WeakMap(), At = new WeakMap(), It = new WeakMap(), A = new WeakMap(), H = new WeakMap(), $ = new WeakMap(), B = new WeakMap(), Mt = new WeakMap(), k = new WeakMap(), lt = new WeakMap(), ct = new WeakMap(), X = new WeakMap(), Ft = new WeakMap(), Ve = new WeakMap(), ut = new WeakMap(), at = new WeakMap(), dt = new WeakMap(), w = new WeakMap(), W = new WeakMap(), N = new WeakMap(), Y = new WeakMap(), _ = new WeakMap(), Z = new WeakMap(), Ye = new WeakMap(), S = new WeakMap(), Tt = new WeakMap(), re = new WeakMap(), _e = new WeakMap(), x = new WeakMap(), pt = new WeakMap(), T = new WeakMap(), I = new WeakMap(), j = new WeakMap(), ze = new WeakMap(), Rt = new WeakMap(), y = new WeakMap(), he = new WeakMap(), m = new WeakSet(), _s = function() {
|
|
1375
|
+
t(this, w).current = !0, t(this, W).current = !1, r(this, Rt, !0), t(this, H).current && t(this, S).classList.remove(t(this, H).current), t(this, k).current && t(this, S).classList.remove(
|
|
1376
|
+
t(this, k).current
|
|
1377
|
+
), t(this, k).current && t(this, S).classList.remove(
|
|
1378
|
+
t(this, k).current
|
|
1379
1379
|
), t(this, A).current && t(this, S).classList.add(t(this, A).current);
|
|
1380
|
-
},
|
|
1381
|
-
t(this, W).current = !0, t(this,
|
|
1380
|
+
}, ti = function() {
|
|
1381
|
+
t(this, W).current = !0, t(this, w).current = !1, r(this, Rt, !0), t(this, A).current && t(this, S).classList.remove(t(this, A).current), t(this, $).current && t(this, S).classList.remove(
|
|
1382
1382
|
t(this, $).current
|
|
1383
1383
|
), t(this, B).current && t(this, S).classList.remove(
|
|
1384
1384
|
t(this, B).current
|
|
1385
1385
|
), t(this, H).current && t(this, S).classList.add(t(this, H).current);
|
|
1386
|
-
},
|
|
1387
|
-
t(this,
|
|
1386
|
+
}, ei = function() {
|
|
1387
|
+
t(this, w).current = !0, t(this, N).current = !0, t(this, Y).current = !1, t(this, $).current && t(this, S).classList.add(
|
|
1388
1388
|
t(this, $).current
|
|
1389
1389
|
);
|
|
1390
|
-
},
|
|
1391
|
-
t(this,
|
|
1390
|
+
}, si = function() {
|
|
1391
|
+
t(this, w).current = !0, t(this, _).current = !0, t(this, Z).current = !1, t(this, B).current && t(this, S).classList.add(
|
|
1392
1392
|
t(this, B).current
|
|
1393
1393
|
);
|
|
1394
|
-
},
|
|
1395
|
-
t(this, W).current = !0, t(this,
|
|
1396
|
-
t(this,
|
|
1394
|
+
}, ii = function() {
|
|
1395
|
+
t(this, W).current = !0, t(this, Y).current = !0, t(this, N).current = !1, t(this, k).current && t(this, S).classList.add(
|
|
1396
|
+
t(this, k).current
|
|
1397
1397
|
);
|
|
1398
|
-
},
|
|
1399
|
-
t(this, W).current = !0, t(this,
|
|
1400
|
-
t(this,
|
|
1398
|
+
}, ri = function() {
|
|
1399
|
+
t(this, W).current = !0, t(this, Z).current = !0, t(this, _).current = !1, t(this, k).current && t(this, S).classList.add(
|
|
1400
|
+
t(this, k).current
|
|
1401
1401
|
);
|
|
1402
|
-
},
|
|
1403
|
-
const e = t(this, x)[t(this,
|
|
1404
|
-
this.setVar(t(this, lt).current, e), r(this, pt, e / t(this, I) || 0), this.setVar(t(this, ct).current, t(this, pt)), t(this,
|
|
1405
|
-
},
|
|
1402
|
+
}, ts = new WeakMap(), Ae = new WeakMap(), Rs = function() {
|
|
1403
|
+
const e = t(this, x)[t(this, Ve).current];
|
|
1404
|
+
this.setVar(t(this, lt).current, e), r(this, pt, e / t(this, I) || 0), this.setVar(t(this, ct).current, t(this, pt)), t(this, X).current && this.setVar(t(this, X).current, this.progressArc);
|
|
1405
|
+
}, ae = function(e) {
|
|
1406
1406
|
if (t(this, y)) {
|
|
1407
1407
|
e.previous && t(this, S).classList.remove(e.previous), e.current && t(this, S).classList.remove(e.current);
|
|
1408
1408
|
return;
|
|
1409
1409
|
}
|
|
1410
|
-
e.current && t(this,
|
|
1411
|
-
},
|
|
1410
|
+
e.current && t(this, w).current ? (e.previous && t(this, S).classList.remove(e.previous), t(this, S).classList.add(e.current)) : !e.current && e.previous && t(this, S).classList.remove(e.previous);
|
|
1411
|
+
}, hi = function(...e) {
|
|
1412
1412
|
e.forEach((s) => {
|
|
1413
1413
|
s && t(this, S).classList.remove(s);
|
|
1414
1414
|
});
|
|
1415
|
-
},
|
|
1415
|
+
}, ni = function(...e) {
|
|
1416
1416
|
e.forEach((s) => {
|
|
1417
1417
|
s && t(this, S).style.removeProperty(`--${s}`);
|
|
1418
1418
|
});
|
|
1419
|
-
},
|
|
1420
|
-
o(this, m,
|
|
1419
|
+
}, Ds = function() {
|
|
1420
|
+
o(this, m, hi).call(this, t(this, A).current, t(this, $).current, t(this, B).current, t(this, H).current, t(this, Mt).current, t(this, k).current), o(this, m, ni).call(this, t(this, lt).current, t(this, ct).current, t(this, X).current, t(this, ut).current, t(this, at).current, t(this, dt).current);
|
|
1421
1421
|
};
|
|
1422
|
-
|
|
1423
|
-
class
|
|
1422
|
+
q && !customElements.get("e-scroll-segment") && customElements.define("e-scroll-segment", Fi);
|
|
1423
|
+
class Ti extends $s {
|
|
1424
1424
|
handleClick(n) {
|
|
1425
1425
|
this.scrollElement.setPosition(
|
|
1426
|
-
this.scrollElement.vertical ?
|
|
1426
|
+
this.scrollElement.vertical ? os(this) : ls(this),
|
|
1427
1427
|
n
|
|
1428
1428
|
);
|
|
1429
1429
|
}
|
|
@@ -1434,35 +1434,67 @@ class Ii extends Rs {
|
|
|
1434
1434
|
super.disconnectedCallback();
|
|
1435
1435
|
}
|
|
1436
1436
|
}
|
|
1437
|
-
|
|
1438
|
-
var
|
|
1439
|
-
const
|
|
1437
|
+
q && !customElements.get("e-scroll-section-button") && customElements.define("e-scroll-section-button", Ti);
|
|
1438
|
+
var Cs;
|
|
1439
|
+
const Bs = class Bs extends es {
|
|
1440
1440
|
constructor() {
|
|
1441
1441
|
super(...arguments);
|
|
1442
|
-
i(this,
|
|
1442
|
+
i(this, Cs, () => {
|
|
1443
1443
|
const e = this.scrollElement.counter.current + 1, s = parseInt(this.getAttribute("pad") || "0");
|
|
1444
1444
|
this.textContent = e.toString().padStart(s, "0");
|
|
1445
1445
|
});
|
|
1446
1446
|
}
|
|
1447
1447
|
connectedCallback() {
|
|
1448
|
-
return
|
|
1449
|
-
|
|
1448
|
+
return Vs(this, null, function* () {
|
|
1449
|
+
ks(Bs.prototype, this, "connectedCallback").call(this), this.scrollElement.counter.subscribe(t(this, Cs));
|
|
1450
|
+
});
|
|
1451
|
+
}
|
|
1452
|
+
disconnectedCallback() {
|
|
1453
|
+
this.scrollElement.counter.unsubscribe(t(this, Cs));
|
|
1454
|
+
}
|
|
1455
|
+
};
|
|
1456
|
+
Cs = new WeakMap();
|
|
1457
|
+
let Os = Bs;
|
|
1458
|
+
q && !customElements.get("e-scroll-counter") && customElements.define("e-scroll-counter", Os);
|
|
1459
|
+
var ne;
|
|
1460
|
+
const Ws = class Ws extends es {
|
|
1461
|
+
constructor() {
|
|
1462
|
+
super(...arguments);
|
|
1463
|
+
i(this, ne, () => {
|
|
1464
|
+
const e = this.scrollElement.limit + 1, s = parseInt(this.getAttribute("pad") || "0");
|
|
1465
|
+
this.textContent = e.toString().padStart(s, "0");
|
|
1466
|
+
});
|
|
1467
|
+
}
|
|
1468
|
+
connectedCallback() {
|
|
1469
|
+
return Vs(this, null, function* () {
|
|
1470
|
+
ks(Ws.prototype, this, "connectedCallback").call(this), this.scrollElement.sectionsInViewCSSProperty.subscribe(
|
|
1471
|
+
t(this, ne)
|
|
1472
|
+
), this.scrollElement.addEventListener(
|
|
1473
|
+
"scrollSectionsChange",
|
|
1474
|
+
t(this, ne)
|
|
1475
|
+
), t(this, ne).call(this);
|
|
1450
1476
|
});
|
|
1451
1477
|
}
|
|
1452
1478
|
disconnectedCallback() {
|
|
1453
|
-
this.scrollElement.
|
|
1479
|
+
this.scrollElement.sectionsInViewCSSProperty.unsubscribe(
|
|
1480
|
+
t(this, ne)
|
|
1481
|
+
), this.scrollElement.removeEventListener(
|
|
1482
|
+
"scrollSectionsChange",
|
|
1483
|
+
t(this, ne)
|
|
1484
|
+
);
|
|
1454
1485
|
}
|
|
1455
1486
|
};
|
|
1456
|
-
|
|
1457
|
-
let
|
|
1458
|
-
|
|
1487
|
+
ne = new WeakMap();
|
|
1488
|
+
let Hs = Ws;
|
|
1489
|
+
q && !customElements.get("e-scroll-total") && customElements.define("e-scroll-total", Hs);
|
|
1459
1490
|
export {
|
|
1460
|
-
|
|
1461
|
-
|
|
1462
|
-
|
|
1463
|
-
|
|
1464
|
-
|
|
1465
|
-
|
|
1466
|
-
|
|
1467
|
-
|
|
1491
|
+
Mi as ScrollBulletButtonsElement,
|
|
1492
|
+
Os as ScrollCounterElement,
|
|
1493
|
+
zs as ScrollElement,
|
|
1494
|
+
Ti as ScrollSectionButtonElement,
|
|
1495
|
+
Fi as ScrollSegmentElement,
|
|
1496
|
+
zi as ScrollSetButtonElement,
|
|
1497
|
+
Ai as ScrollStepButtonElement,
|
|
1498
|
+
Hs as ScrollTotalElement,
|
|
1499
|
+
Vi as ScrollbarElement
|
|
1468
1500
|
};
|