aptechka 0.71.21 → 0.71.23
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 +11 -0
- package/lib/scroll/index.cjs +1 -1
- package/lib/scroll/index.d.ts +1 -0
- package/lib/scroll/index.js +418 -396
- package/package.json +1 -1
package/lib/scroll/index.js
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
1
|
+
var oi = Object.defineProperty;
|
|
2
|
+
var Ns = Object.getOwnPropertySymbols, ci = Object.getPrototypeOf, li = 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
|
+
li.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(ci(a), e, n);
|
|
17
|
+
var zs = (a, n, e) => new Promise((s, h) => {
|
|
18
18
|
var u = (C) => {
|
|
19
19
|
try {
|
|
20
20
|
v(e.next(C));
|
|
@@ -30,44 +30,44 @@ var Ns = (a, n, e) => new Promise((s, h) => {
|
|
|
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 ns, g as os, 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
49
|
import { scrollEntries as ne } from "../scroll-entries/index.js";
|
|
50
|
-
import { cssUnitParser as
|
|
51
|
-
import { CSSProperty as
|
|
52
|
-
import { d as
|
|
50
|
+
import { cssUnitParser as Ks } from "../css-unit-parser/index.js";
|
|
51
|
+
import { CSSProperty as c } from "../css-property/index.js";
|
|
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, Me,
|
|
58
|
-
class
|
|
54
|
+
import { elementResizer as hs } 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, Me, E, cs, ls, ae, bt, Dt, de, pe, ss;
|
|
58
|
+
class Li {
|
|
59
59
|
constructor(n, e, s) {
|
|
60
60
|
i(this, pe);
|
|
61
61
|
i(this, f);
|
|
62
62
|
i(this, Me);
|
|
63
|
-
i(this,
|
|
64
|
-
i(this,
|
|
63
|
+
i(this, E);
|
|
64
|
+
i(this, cs, 0);
|
|
65
65
|
i(this, ls, 0);
|
|
66
66
|
i(this, ae, 0);
|
|
67
67
|
i(this, bt, 0);
|
|
68
68
|
i(this, Dt, null);
|
|
69
69
|
i(this, de, 0);
|
|
70
|
-
r(this, f, n), r(this, Me, e), r(this,
|
|
70
|
+
r(this, f, n), r(this, Me, e), r(this, E, s), ne.register(t(this, f)), this.setIndex(t(this, Me));
|
|
71
71
|
}
|
|
72
72
|
get element() {
|
|
73
73
|
return t(this, f);
|
|
@@ -79,7 +79,7 @@ class wi {
|
|
|
79
79
|
return t(this, ae);
|
|
80
80
|
}
|
|
81
81
|
get width() {
|
|
82
|
-
return t(this,
|
|
82
|
+
return t(this, cs);
|
|
83
83
|
}
|
|
84
84
|
get height() {
|
|
85
85
|
return t(this, ls);
|
|
@@ -97,22 +97,22 @@ class wi {
|
|
|
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, ls, t(this, f).offsetHeight), r(this, ae, t(this, E).vertical ? t(this, f).offsetHeight : t(this, f).offsetWidth), r(this, bt, t(this, E).vertical ? ns(t(this, f)) : os(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, ae) <= t(this, E).currentScrollValue - n / 2 && (e = (t(this, E).distance - n) * -1 - t(this, E).gap), ne.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, de, v * -1), t(this,
|
|
114
|
+
const h = t(this, E).currentScrollValue + e, u = t(this, bt) - t(this, E).viewportSize - s, g = t(this, bt) + t(this, ae) + s, v = mi(Zs(h, u, g), 3);
|
|
115
|
+
r(this, de, v * -1), t(this, E).vertical ? t(this, f).style.transform = `translate3d(0px, ${t(this, de)}px, 0px)` : t(this, f).style.transform = `translate3d(${t(this, de)}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, pe,
|
|
130
|
+
o(this, pe, ss).call(this, "index", n);
|
|
131
131
|
}
|
|
132
132
|
setCurrentIndex(n) {
|
|
133
|
-
o(this, pe,
|
|
133
|
+
o(this, pe, ss).call(this, "current-index", n);
|
|
134
134
|
}
|
|
135
135
|
setCurrentIndexArc(n) {
|
|
136
|
-
o(this, pe,
|
|
136
|
+
o(this, pe, ss).call(this, "current-index-arc", n);
|
|
137
137
|
}
|
|
138
138
|
setCurrentIndexArcAbs(n) {
|
|
139
|
-
o(this, pe,
|
|
139
|
+
o(this, pe, ss).call(this, "current-index-arc-abs", n);
|
|
140
140
|
}
|
|
141
141
|
}
|
|
142
|
-
f = new WeakMap(), Me = new WeakMap(),
|
|
142
|
+
f = new WeakMap(), Me = new WeakMap(), E = new WeakMap(), cs = new WeakMap(), ls = new WeakMap(), ae = new WeakMap(), bt = new WeakMap(), Dt = new WeakMap(), de = new WeakMap(), pe = new WeakSet(), ss = 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,118 +181,118 @@ const Ei = Us({
|
|
|
181
181
|
flexShrink: "0"
|
|
182
182
|
}
|
|
183
183
|
});
|
|
184
|
-
var p, fe, R, Ot, mt, St, gt, et, Ht, $t, vt, Bt, be, st,
|
|
185
|
-
class
|
|
184
|
+
var p, fe, R, Ot, mt, St, gt, et, Ht, $t, vt, Bt, be, st, z, me, Se, ge, ve, Fe, ye, J, Ce, Wt, Q, Nt, yt, Pe, qt, Ee, Gt, Ut, Kt, b, Te, G, d, us, as, L, P, U, it, Zt, rt, M, D, Re, Ct, Pt, Et, K, De, jt, Jt, we, ht, V, Oe, wt, xe, He, l, As, is, Ie, Ps, Es, Is, Ms, F, ds, Xs, $e, ps, Fs, Ts, le, Ys, fs, rs, Be;
|
|
185
|
+
class Vs extends HTMLElement {
|
|
186
186
|
constructor() {
|
|
187
187
|
super();
|
|
188
|
-
i(this,
|
|
188
|
+
i(this, l);
|
|
189
189
|
i(this, p, null);
|
|
190
|
-
i(this, fe, new
|
|
191
|
-
i(this, R, new
|
|
192
|
-
i(this, Ot, new
|
|
193
|
-
i(this, mt, new
|
|
194
|
-
i(this, St, new
|
|
190
|
+
i(this, fe, new c(this, "--controls", !0));
|
|
191
|
+
i(this, R, new c(this, "--axis", "y"));
|
|
192
|
+
i(this, Ot, new c(this, "--reverse", !1));
|
|
193
|
+
i(this, mt, new c(this, "--direction", 0));
|
|
194
|
+
i(this, St, new c(this, "--pages", 0, {
|
|
195
195
|
validate: (e) => Math.max(0, e - 1)
|
|
196
196
|
}));
|
|
197
|
-
i(this, gt, new
|
|
198
|
-
i(this, et, new
|
|
199
|
-
i(this, Ht, new
|
|
197
|
+
i(this, gt, new c(this, "--split", !1));
|
|
198
|
+
i(this, et, new c(this, "--sectional", !1));
|
|
199
|
+
i(this, Ht, new c(
|
|
200
200
|
this,
|
|
201
201
|
"--tween-easing",
|
|
202
202
|
!1
|
|
203
203
|
));
|
|
204
|
-
i(this, $t, new
|
|
204
|
+
i(this, $t, new c(
|
|
205
205
|
this,
|
|
206
206
|
"--tween-duration",
|
|
207
207
|
!1
|
|
208
208
|
));
|
|
209
|
-
i(this, vt, new
|
|
210
|
-
i(this, Bt, new
|
|
209
|
+
i(this, vt, new c(this, "--auto-size", !1));
|
|
210
|
+
i(this, Bt, new c(
|
|
211
211
|
this,
|
|
212
212
|
"--wheel-max-delta",
|
|
213
213
|
!1
|
|
214
214
|
));
|
|
215
|
-
i(this, be, new
|
|
216
|
-
i(this, st, new
|
|
215
|
+
i(this, be, new c(this, "--drag-inertion", 1));
|
|
216
|
+
i(this, st, new c(
|
|
217
217
|
this,
|
|
218
218
|
"--sections-in-view",
|
|
219
219
|
1
|
|
220
220
|
));
|
|
221
|
-
i(this,
|
|
222
|
-
i(this, me, new
|
|
223
|
-
i(this, Se, new
|
|
224
|
-
i(this, ge, new
|
|
225
|
-
i(this, ve, new
|
|
226
|
-
i(this, Fe, new
|
|
221
|
+
i(this, z, new c(this, "--loop", !1));
|
|
222
|
+
i(this, me, new c(this, "--damping", 20));
|
|
223
|
+
i(this, Se, new c(this, "--mass", 0));
|
|
224
|
+
i(this, ge, new c(this, "--stiffness", 0));
|
|
225
|
+
i(this, ve, new c(this, "--mouse-drag", !1));
|
|
226
|
+
i(this, Fe, new c(
|
|
227
227
|
this,
|
|
228
228
|
"--section-distance-scale",
|
|
229
229
|
0.5
|
|
230
230
|
));
|
|
231
|
-
i(this, ye, new
|
|
232
|
-
i(this,
|
|
233
|
-
i(this, Ce, new
|
|
231
|
+
i(this, ye, new c(this, "--start-section", 0));
|
|
232
|
+
i(this, J, new c(this, "--autoplay", 0));
|
|
233
|
+
i(this, Ce, new c(
|
|
234
234
|
this,
|
|
235
235
|
"--autoplay-pause-duration",
|
|
236
236
|
0
|
|
237
237
|
));
|
|
238
|
-
i(this, Wt, new
|
|
238
|
+
i(this, Wt, new c(
|
|
239
239
|
this,
|
|
240
240
|
"--autoplay-user-direction",
|
|
241
241
|
!1
|
|
242
242
|
));
|
|
243
|
-
i(this,
|
|
244
|
-
i(this, Nt, new
|
|
243
|
+
i(this, Q, new c(this, "--classes", !1));
|
|
244
|
+
i(this, Nt, new c(
|
|
245
245
|
this,
|
|
246
246
|
"--current-index-start-offset",
|
|
247
247
|
0
|
|
248
248
|
));
|
|
249
|
-
i(this, yt, new
|
|
249
|
+
i(this, yt, new c(
|
|
250
250
|
this,
|
|
251
251
|
"--current-index-end-offset",
|
|
252
252
|
0
|
|
253
253
|
));
|
|
254
|
-
i(this, Pe, new
|
|
254
|
+
i(this, Pe, new c(
|
|
255
255
|
this,
|
|
256
256
|
"--shift-section-position",
|
|
257
257
|
0,
|
|
258
258
|
{ rawValueCheck: !1 }
|
|
259
259
|
));
|
|
260
|
-
i(this, qt, new
|
|
261
|
-
i(this,
|
|
260
|
+
i(this, qt, new c(this, "--focus-delay", 0));
|
|
261
|
+
i(this, Ee, new c(
|
|
262
262
|
this,
|
|
263
263
|
"--focus-duration",
|
|
264
264
|
3e3
|
|
265
265
|
));
|
|
266
|
-
i(this, Gt, new
|
|
267
|
-
i(this, Ut, new
|
|
266
|
+
i(this, Gt, new c(this, "--disabled", !1));
|
|
267
|
+
i(this, Ut, new c(this, "--hibernate", !1));
|
|
268
268
|
i(this, Kt, null);
|
|
269
269
|
i(this, b, null);
|
|
270
270
|
i(this, Te, null);
|
|
271
|
-
i(this,
|
|
271
|
+
i(this, G, []);
|
|
272
272
|
i(this, d, []);
|
|
273
|
-
i(this, cs, 0);
|
|
274
273
|
i(this, us, 0);
|
|
274
|
+
i(this, as, 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
|
|
282
|
+
i(this, D, new ce(0));
|
|
283
283
|
i(this, Re, 0);
|
|
284
284
|
i(this, Ct, 0);
|
|
285
285
|
i(this, Pt, !1);
|
|
286
|
-
i(this,
|
|
287
|
-
i(this,
|
|
286
|
+
i(this, Et, !0);
|
|
287
|
+
i(this, K, !0);
|
|
288
288
|
i(this, De);
|
|
289
|
-
i(this,
|
|
290
|
-
i(this,
|
|
291
|
-
i(this,
|
|
289
|
+
i(this, jt);
|
|
290
|
+
i(this, Jt, new gi());
|
|
291
|
+
i(this, we, !1);
|
|
292
292
|
i(this, ht, null);
|
|
293
|
-
i(this,
|
|
293
|
+
i(this, V, !1);
|
|
294
294
|
i(this, Oe, null);
|
|
295
|
-
i(this,
|
|
295
|
+
i(this, wt, []);
|
|
296
296
|
i(this, xe, !1);
|
|
297
297
|
i(this, He);
|
|
298
298
|
i(this, F, (e) => {
|
|
@@ -302,42 +302,42 @@ class Ls extends HTMLElement {
|
|
|
302
302
|
}
|
|
303
303
|
this.resize();
|
|
304
304
|
});
|
|
305
|
-
i(this,
|
|
306
|
-
if (!t(this, Pt) || t(this,
|
|
305
|
+
i(this, ds, () => {
|
|
306
|
+
if (!t(this, Pt) || t(this, K) || t(this, Et))
|
|
307
307
|
return;
|
|
308
308
|
const e = this.currentScrollValue;
|
|
309
309
|
if (r(this, Re, Math.max(0, e - t(this, P))), t(this, d).length) {
|
|
310
|
-
for (let s = 0; s < t(this,
|
|
311
|
-
t(this,
|
|
312
|
-
t(this, D).current = o(this,
|
|
310
|
+
for (let s = 0; s < t(this, G).length; s++)
|
|
311
|
+
t(this, G)[s].transform();
|
|
312
|
+
t(this, D).current = o(this, l, rs).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,
|
|
315
|
+
o(this, l, Ys).call(this), ne.update(
|
|
316
316
|
this,
|
|
317
317
|
t(this, R).current,
|
|
318
318
|
e
|
|
319
319
|
);
|
|
320
320
|
});
|
|
321
321
|
i(this, $e, (e, s) => {
|
|
322
|
-
t(this, fe).current && (o(this,
|
|
322
|
+
t(this, fe).current && (o(this, l, Fs).call(this, Math.sign(s) || 1), t(this, ps).call(this, e, s));
|
|
323
323
|
});
|
|
324
|
-
i(this,
|
|
325
|
-
if (!t(this,
|
|
324
|
+
i(this, ps, (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,
|
|
332
|
+
if (!t(this, J).current && t(this, qt).current && (clearInterval(t(this, De)), r(this, De, setTimeout(() => {
|
|
333
|
+
const h = t(this, d)[o(this, l, rs).call(this)];
|
|
334
334
|
h && this.scrollToSection(h.index, {
|
|
335
335
|
tween: {
|
|
336
|
-
duration: t(this,
|
|
337
|
-
easing:
|
|
336
|
+
duration: t(this, Ee).current,
|
|
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, ve).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,17 +347,17 @@ class Ls extends HTMLElement {
|
|
|
347
347
|
duration: t(this, $t).current || 500
|
|
348
348
|
} : void 0
|
|
349
349
|
};
|
|
350
|
-
t(this,
|
|
350
|
+
t(this, we) ? this.scrollToSection(o(this, l, rs).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, we, e === "drag");
|
|
356
356
|
}
|
|
357
357
|
}
|
|
358
358
|
});
|
|
359
|
-
i(this,
|
|
360
|
-
const e = t(this,
|
|
359
|
+
i(this, fs, 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);
|
|
@@ -366,11 +366,11 @@ class Ls extends HTMLElement {
|
|
|
366
366
|
}, 10));
|
|
367
367
|
}, 20));
|
|
368
368
|
i(this, Be, () => {
|
|
369
|
-
r(this,
|
|
369
|
+
r(this, V, !0), this.hibernatedCSSProperty.current || o(this, l, Ms).call(this), hs.subscribe(this, t(this, F)), ft.unsubscribe(t(this, Be));
|
|
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
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, Te, document.createElement("slot")), t(this, b).appendChild(t(this, Te)), t(this, Kt).appendChild(t(this, b)), e.appendChild(t(this, Kt)), r(this, Oe, new MutationObserver(
|
|
376
376
|
ws(() => {
|
|
@@ -422,7 +422,7 @@ class Ls extends HTMLElement {
|
|
|
422
422
|
return t(this, st);
|
|
423
423
|
}
|
|
424
424
|
get loopCSSProperty() {
|
|
425
|
-
return t(this,
|
|
425
|
+
return t(this, z);
|
|
426
426
|
}
|
|
427
427
|
get dampingCSSProperty() {
|
|
428
428
|
return t(this, me);
|
|
@@ -443,7 +443,7 @@ class Ls extends HTMLElement {
|
|
|
443
443
|
return t(this, ye);
|
|
444
444
|
}
|
|
445
445
|
get autoplayCSSProperty() {
|
|
446
|
-
return t(this,
|
|
446
|
+
return t(this, J);
|
|
447
447
|
}
|
|
448
448
|
get autoplayPauseDurationCSSProperty() {
|
|
449
449
|
return t(this, Ce);
|
|
@@ -452,7 +452,7 @@ class Ls extends HTMLElement {
|
|
|
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);
|
|
@@ -467,7 +467,7 @@ class Ls extends HTMLElement {
|
|
|
467
467
|
return t(this, qt);
|
|
468
468
|
}
|
|
469
469
|
get focusDurationCSSProperty() {
|
|
470
|
-
return t(this,
|
|
470
|
+
return t(this, Ee);
|
|
471
471
|
}
|
|
472
472
|
get disabledCSSProperty() {
|
|
473
473
|
return t(this, Gt);
|
|
@@ -476,10 +476,10 @@ class Ls extends HTMLElement {
|
|
|
476
476
|
return t(this, Ut);
|
|
477
477
|
}
|
|
478
478
|
get currentScrollValue() {
|
|
479
|
-
return o(this,
|
|
479
|
+
return o(this, l, Ts).call(this, "current");
|
|
480
480
|
}
|
|
481
481
|
get targetScrollValue() {
|
|
482
|
-
return o(this,
|
|
482
|
+
return o(this, l, 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, us);
|
|
498
498
|
}
|
|
499
499
|
get contentPosition() {
|
|
500
|
-
return t(this,
|
|
500
|
+
return t(this, as);
|
|
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,7 +520,7 @@ class Ls extends HTMLElement {
|
|
|
520
520
|
return t(this, Ct);
|
|
521
521
|
}
|
|
522
522
|
get loopDistance() {
|
|
523
|
-
return t(this,
|
|
523
|
+
return t(this, z).current ? t(this, Ct) + t(this, U) : t(this, Ct);
|
|
524
524
|
}
|
|
525
525
|
get hasOverflow() {
|
|
526
526
|
return t(this, Pt);
|
|
@@ -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, z).current || t(this, gt).current || t(this, z).current || t(this, vt).current || t(this, et).current) && o(this, l, is).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,
|
|
573
|
+
const h = t(this, D).current, u = o(this, l, 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 oe = o(this,
|
|
577
|
-
let
|
|
578
|
-
t(this,
|
|
576
|
+
const oe = o(this, l, rs).call(this), Ae = t(this, d)[oe];
|
|
577
|
+
let es = Ae ? this.targetScrollValue - Ae.position : 0;
|
|
578
|
+
t(this, z).current ? u === 0 && h === t(this, d).length - 1 ? (C = t(this, P) + t(this, L) - g.position + t(this, U), t(this, we) || (es = 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 - es, 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, l, 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, us, this.vertical ? ns(this) : os(this)), r(this, as, this.vertical ? ns(t(this, b)) : os(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
|
});
|
|
@@ -622,11 +622,11 @@ class Ls extends HTMLElement {
|
|
|
622
622
|
this.vertical ? (t(this, b).style.width = h + "px", t(this, b).style.height = "100%") : (t(this, b).style.height = h + "px", t(this, b).style.width = "100%");
|
|
623
623
|
} else
|
|
624
624
|
this.vertical ? (t(this, b).style.width = "100%", t(this, b).style.height = "max-content", r(this, P, t(this, b).offsetHeight - t(this, L))) : (t(this, b).style.width = "max-content", t(this, b).style.height = "100%", r(this, P, t(this, b).offsetWidth - t(this, L)));
|
|
625
|
-
if (!t(this,
|
|
625
|
+
if (!t(this, z).current) {
|
|
626
626
|
const h = getComputedStyle(this), u = this.vertical ? parseFloat(h.paddingBlockStart) + parseFloat(h.paddingBlockEnd) : parseFloat(h.paddingInlineStart) + parseFloat(h.paddingInlineEnd);
|
|
627
627
|
r(this, P, t(this, P) + u), t(this, p).max = t(this, P);
|
|
628
628
|
}
|
|
629
|
-
if (t(this,
|
|
629
|
+
if (t(this, z).current && t(this, d).length) {
|
|
630
630
|
const h = t(this, d)[t(this, d).length - 1], u = h.position + h.size - t(this, L), g = t(this, P) - u;
|
|
631
631
|
r(this, Ct, h.position + h.size + g);
|
|
632
632
|
} else
|
|
@@ -640,181 +640,181 @@ 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,
|
|
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, l, Es).call(this) : o(this, l, Ps).call(this), t(this, fs).call(this), tt(this, "scrollResize", { custom: !0 }), t(this, p).notify();
|
|
644
644
|
}
|
|
645
645
|
connectedCallback() {
|
|
646
|
-
ne.register(this), r(this, p, new
|
|
646
|
+
ne.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, $e)), r(this, Zt, new yi({
|
|
651
651
|
element: this
|
|
652
652
|
})), t(this, Zt).changeEvent.subscribe(
|
|
653
653
|
t(this, $e)
|
|
654
|
-
), r(this, rt, new
|
|
654
|
+
), r(this, rt, new Ci({
|
|
655
655
|
element: t(this, b),
|
|
656
656
|
rootElement: this
|
|
657
|
-
})), t(this, rt).changeEvent.subscribe(t(this, $e)), r(this, M, new
|
|
657
|
+
})), t(this, rt).changeEvent.subscribe(t(this, $e)), r(this, M, new Pi({
|
|
658
658
|
culling: this
|
|
659
|
-
})), t(this, M).changeEvent.subscribe(t(this,
|
|
660
|
-
o(this,
|
|
659
|
+
})), t(this, M).changeEvent.subscribe(t(this, ps)), t(this, R).subscribe(() => {
|
|
660
|
+
o(this, l, As).call(this);
|
|
661
661
|
}), t(this, Ot).subscribe(() => {
|
|
662
|
-
o(this,
|
|
662
|
+
o(this, l, As).call(this);
|
|
663
663
|
}), t(this, Bt).subscribe((e) => {
|
|
664
664
|
t(this, it).axis = e.current ? "max" : t(this, R).current;
|
|
665
665
|
}), t(this, be).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, V) && t(this, F).call(this);
|
|
669
669
|
}), t(this, gt).subscribe(({ current: e }) => {
|
|
670
|
-
t(this,
|
|
670
|
+
t(this, V) && (e ? o(this, l, is).call(this) : o(this, l, Ie).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, V) && (e.current && !e.previous && !t(this, d).length ? o(this, l, is).call(this) : !e.current && e.previous && t(this, d).length && o(this, l, Ie).call(this));
|
|
673
673
|
}), t(this, vt).subscribe((e) => {
|
|
674
|
-
t(this,
|
|
674
|
+
t(this, V) && (t(this, F).call(this), e.current && !e.previous && !t(this, d).length ? o(this, l, is).call(this) : !e.current && e.previous && t(this, d).length && o(this, l, Ie).call(this));
|
|
675
675
|
}), t(this, st).subscribe((e) => {
|
|
676
|
-
t(this,
|
|
677
|
-
}), t(this,
|
|
678
|
-
e.current ? (t(this,
|
|
676
|
+
t(this, V) && (t(this, F).call(this), o(this, l, le).call(this));
|
|
677
|
+
}), t(this, z).subscribe((e) => {
|
|
678
|
+
e.current ? (t(this, V) && (t(this, d).length || (t(this, gt).current = !0)), t(this, p).max = 1 / 0, t(this, p).min = -1 / 0) : (r(this, Re, 0), t(this, p).max = t(this, P), t(this, p).min = 0);
|
|
679
679
|
}), t(this, me).subscribe((e) => {
|
|
680
680
|
t(this, p).damping = e.current;
|
|
681
681
|
}), t(this, Se).subscribe((e) => {
|
|
682
682
|
t(this, p).mass = e.current;
|
|
683
683
|
}), t(this, ge).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, V) && o(this, l, le).call(this);
|
|
691
691
|
}), t(this, Nt).subscribe((e) => {
|
|
692
|
-
t(this,
|
|
692
|
+
t(this, V) && t(this, Q).current && o(this, l, le).call(this);
|
|
693
693
|
}), t(this, yt).subscribe((e) => {
|
|
694
|
-
t(this,
|
|
694
|
+
t(this, V) && t(this, Q).current && o(this, l, le).call(this);
|
|
695
695
|
}), t(this, Pe).subscribe((e) => {
|
|
696
|
-
t(this,
|
|
696
|
+
t(this, V) && 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, l, le).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,
|
|
704
|
+
e.current && !e.previous ? (this.classList.add("disabled"), o(this, l, Ps).call(this)) : !e.current && e.previous && (this.classList.remove("disabled"), o(this, l, Es).call(this));
|
|
705
705
|
}), t(this, Ut).subscribe((e) => {
|
|
706
|
-
e.current && !e.previous ? (this.classList.add("hibernated"), o(this,
|
|
707
|
-
}), t(this, fe).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, be).observe(), t(this, st).observe(), t(this,
|
|
706
|
+
e.current && !e.previous ? (this.classList.add("hibernated"), o(this, l, Is).call(this)) : !e.current && e.previous && (this.classList.remove("hibernated"), o(this, l, Ms).call(this));
|
|
707
|
+
}), t(this, fe).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, be).observe(), t(this, st).observe(), t(this, z).observe(), t(this, me).observe(), t(this, Se).observe(), t(this, ge).observe(), t(this, ve).observe(), t(this, Fe).observe(), t(this, ye).observe(), t(this, J).observe(), t(this, J).observe(), t(this, Ce).observe(), t(this, Wt).observe(), t(this, Q).observe(), t(this, Nt).observe(), t(this, yt).observe(), t(this, Pe).observe(), t(this, qt).observe(), t(this, Ee).observe(), t(this, Gt).observe(), t(this, Ut).observe(), ft.subscribe(t(this, Be), xs.LAST), t(this, Oe).observe(this, { childList: !0 });
|
|
708
708
|
}
|
|
709
709
|
disconnectedCallback() {
|
|
710
|
-
this.removeAttribute("tabindex"), this.classList.remove("disabled"), this.classList.remove("hibernated"), t(this, fe).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, be).unobserve(), t(this, st).unobserve(), t(this,
|
|
710
|
+
this.removeAttribute("tabindex"), this.classList.remove("disabled"), this.classList.remove("hibernated"), t(this, fe).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, be).unobserve(), t(this, st).unobserve(), t(this, z).unobserve(), t(this, me).unobserve(), t(this, Se).unobserve(), t(this, ge).unobserve(), t(this, ve).unobserve(), t(this, Fe).unobserve(), t(this, ye).unobserve(), t(this, J).unobserve(), t(this, Ce).unobserve(), t(this, Wt).unobserve(), t(this, Q).unobserve(), t(this, Nt).unobserve(), t(this, yt).unobserve(), t(this, Pe).unobserve(), t(this, qt).unobserve(), t(this, Ee).unobserve(), t(this, Gt).unobserve(), t(this, Ut).unobserve(), ft.unsubscribe(t(this, Be)), ft.unsubscribe(t(this, F)), hs.unsubscribe(t(this, F)), o(this, l, Is).call(this), t(this, Oe).disconnect();
|
|
711
711
|
}
|
|
712
712
|
}
|
|
713
|
-
p = new WeakMap(), fe = 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(), be = new WeakMap(), st = new WeakMap(),
|
|
713
|
+
p = new WeakMap(), fe = 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(), be = new WeakMap(), st = new WeakMap(), z = new WeakMap(), me = new WeakMap(), Se = new WeakMap(), ge = new WeakMap(), ve = new WeakMap(), Fe = new WeakMap(), ye = new WeakMap(), J = new WeakMap(), Ce = new WeakMap(), Wt = new WeakMap(), Q = new WeakMap(), Nt = new WeakMap(), yt = new WeakMap(), Pe = new WeakMap(), qt = new WeakMap(), Ee = new WeakMap(), Gt = new WeakMap(), Ut = new WeakMap(), Kt = new WeakMap(), b = new WeakMap(), Te = new WeakMap(), G = new WeakMap(), d = new WeakMap(), us = new WeakMap(), as = 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(), Re = new WeakMap(), Ct = new WeakMap(), Pt = new WeakMap(), Et = new WeakMap(), K = new WeakMap(), De = new WeakMap(), jt = new WeakMap(), Jt = new WeakMap(), we = new WeakMap(), ht = new WeakMap(), V = new WeakMap(), Oe = new WeakMap(), wt = new WeakMap(), xe = new WeakMap(), He = new WeakMap(), l = 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,
|
|
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, V) && t(this, F).call(this);
|
|
716
|
+
}, is = function() {
|
|
717
|
+
o(this, l, Ie).call(this), t(this, Te).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,
|
|
722
|
+
}), t(this, F).call(this), o(this, l, le).call(this);
|
|
723
723
|
}, Ie = function() {
|
|
724
|
-
t(this,
|
|
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, ds)), t(this, p).unlistenAnimationFrame(), clearInterval(t(this, De)), 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, ds), -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, He)), ft.unsubscribe(t(this, F)), o(this, l, 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, l, Ie).call(this) : (t(this, D).reset(), t(this, p).reset()), ne.unregister(this));
|
|
738
|
+
}, Ms = function() {
|
|
739
|
+
t(this, K) && (r(this, K, !1), ne.register(this), this.tryResplit(), o(this, l, Es).call(this), this.scrollToSection(t(this, ye).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(), ds = new WeakMap(), Xs = function(e) {
|
|
743
743
|
let s = t(this, D).current;
|
|
744
|
-
return t(this,
|
|
745
|
-
}, $e = new WeakMap(),
|
|
746
|
-
t(this, Wt).current && (t(this, M).direction = e), t(this,
|
|
744
|
+
return t(this, z).current ? s = Si(e, t(this, d).length) : s = Zs(e, 0, this.limit), s;
|
|
745
|
+
}, $e = new WeakMap(), ps = 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
747
|
t(this, Ce).current,
|
|
748
748
|
this.sectionalCSSProperty.current
|
|
749
749
|
);
|
|
750
|
-
},
|
|
751
|
-
if (t(this,
|
|
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,
|
|
750
|
+
}, Ts = function(e = "current") {
|
|
751
|
+
if (t(this, z).current && t(this, d).length) {
|
|
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
|
+
}, le = 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, fs).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
|
+
}, fs = new WeakMap(), rs = 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 oe = t(this,
|
|
784
|
+
let oe = t(this, we) ? C.size * g * -1 * 0.4 : 0, Ae = C.position;
|
|
785
785
|
this.overscroll && Ae === 0 && e && (Ae = t(this, Ct));
|
|
786
|
-
let
|
|
787
|
-
|
|
786
|
+
let es = Math.abs(Ae + oe - s);
|
|
787
|
+
es <= h && (h = es, u = v);
|
|
788
788
|
}
|
|
789
789
|
return u;
|
|
790
790
|
}, Be = new WeakMap();
|
|
791
|
-
|
|
792
|
-
var
|
|
793
|
-
class
|
|
791
|
+
q && !customElements.get("e-scroll") && customElements.define("e-scroll", Vs);
|
|
792
|
+
var bs;
|
|
793
|
+
class ts extends HTMLElement {
|
|
794
794
|
constructor() {
|
|
795
795
|
super(...arguments);
|
|
796
|
-
i(this,
|
|
796
|
+
i(this, bs, null);
|
|
797
797
|
}
|
|
798
798
|
get scrollElement() {
|
|
799
|
-
return t(this,
|
|
799
|
+
return t(this, bs);
|
|
800
800
|
}
|
|
801
801
|
connectedCallback() {
|
|
802
|
-
const e =
|
|
803
|
-
e instanceof
|
|
802
|
+
const e = xi(this, Vs);
|
|
803
|
+
e instanceof Vs ? r(this, bs, e) : console.error(this, "e-scroll not found");
|
|
804
804
|
}
|
|
805
805
|
}
|
|
806
|
-
|
|
807
|
-
var
|
|
808
|
-
class
|
|
806
|
+
bs = new WeakMap();
|
|
807
|
+
var Qt, O, xt, Lt, We, Ne, Xt, qe, ms, Ss;
|
|
808
|
+
class zi extends ts {
|
|
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
815
|
i(this, We, 0);
|
|
816
816
|
i(this, Ne, 0);
|
|
817
|
-
i(this,
|
|
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
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, We, e - t(this, Lt)), this.scrollElement.scrollSize <= 0 ? this.style.display = "none" : this.style.display = "", t(this, qe).call(this);
|
|
@@ -822,11 +822,11 @@ class xi extends ys {
|
|
|
822
822
|
i(this, qe, () => {
|
|
823
823
|
r(this, Ne, this.scrollElement.currentProgress * t(this, We)), t(this, xt) ? t(this, O).style.transform = `translate3d(${t(this, Ne)}px, 0px, 0px)` : t(this, O).style.transform = `translate3d(0px, ${t(this, Ne)}px, 0px)`;
|
|
824
824
|
});
|
|
825
|
-
i(this,
|
|
825
|
+
i(this, ms, () => {
|
|
826
826
|
this.setAttribute("axis", this.scrollElement.axisCSSProperty.current);
|
|
827
827
|
});
|
|
828
|
-
i(this,
|
|
829
|
-
document.documentElement.classList.add("grabbing"),
|
|
828
|
+
i(this, Ss, (e) => {
|
|
829
|
+
document.documentElement.classList.add("grabbing"), wi(
|
|
830
830
|
(u) => {
|
|
831
831
|
const g = t(this, xt) ? u.x : u.y, v = this.scrollElement.distance / t(this, We), C = (g - h) * v;
|
|
832
832
|
this.scrollElement.setPosition(s + C);
|
|
@@ -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,27 +877,27 @@ 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, Ss)), ft.subscribe(t(this, Xt), xs.SCROLL), hs.subscribe(this, t(this, Xt)), hs.subscribe(this.scrollElement, t(this, Xt)), this.scrollElement.onScroll(t(this, qe)), this.scrollElement.axisCSSProperty.subscribe(t(this, ms));
|
|
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, Ss)), ft.unsubscribe(t(this, Xt)), hs.unsubscribe(t(this, Xt)), this.scrollElement.offScroll(t(this, qe)), this.scrollElement.axisCSSProperty.unsubscribe(t(this, ms));
|
|
885
885
|
}
|
|
886
886
|
}
|
|
887
|
-
|
|
888
|
-
|
|
887
|
+
Qt = new WeakMap(), O = new WeakMap(), xt = new WeakMap(), Lt = new WeakMap(), We = new WeakMap(), Ne = new WeakMap(), Xt = new WeakMap(), qe = new WeakMap(), ms = new WeakMap(), Ss = new WeakMap();
|
|
888
|
+
q && !customElements.get("e-scrollbar") && customElements.define("e-scrollbar", zi);
|
|
889
889
|
var Ge, Ue, Ke;
|
|
890
|
-
class
|
|
890
|
+
class $s extends ts {
|
|
891
891
|
constructor() {
|
|
892
892
|
super();
|
|
893
|
-
i(this, Ge, new
|
|
894
|
-
i(this, Ue, new
|
|
893
|
+
i(this, Ge, new c(this, "--behaviour", "smooth"));
|
|
894
|
+
i(this, Ue, new c(
|
|
895
895
|
this,
|
|
896
896
|
"--tween-easing",
|
|
897
897
|
!1
|
|
898
898
|
));
|
|
899
|
-
i(this, Ke, new
|
|
900
|
-
|
|
899
|
+
i(this, Ke, new c(this, "--tween-duration", 0));
|
|
900
|
+
q && this.addEventListener("click", () => {
|
|
901
901
|
const e = t(this, Ge).current, s = t(this, Ue).current, h = t(this, Ke).current;
|
|
902
902
|
this.handleClick({
|
|
903
903
|
behaviour: e,
|
|
@@ -914,10 +914,10 @@ class Rs extends ys {
|
|
|
914
914
|
}
|
|
915
915
|
Ge = new WeakMap(), Ue = new WeakMap(), Ke = new WeakMap();
|
|
916
916
|
var Ze;
|
|
917
|
-
class
|
|
917
|
+
class Vi extends $s {
|
|
918
918
|
constructor() {
|
|
919
919
|
super(...arguments);
|
|
920
|
-
i(this, Ze, new
|
|
920
|
+
i(this, Ze, new c(this, "--set", 1));
|
|
921
921
|
}
|
|
922
922
|
handleClick(e) {
|
|
923
923
|
this.scrollElement.scrollToSection(t(this, Ze).current, e);
|
|
@@ -930,78 +930,78 @@ class Li extends Rs {
|
|
|
930
930
|
}
|
|
931
931
|
}
|
|
932
932
|
Ze = new WeakMap();
|
|
933
|
-
|
|
934
|
-
var
|
|
935
|
-
class
|
|
933
|
+
q && !customElements.get("e-scroll-set-button") && customElements.define("e-scroll-set-button", Vi);
|
|
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 c(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, Je, gs, vs, Qe;
|
|
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, Je, null);
|
|
966
|
+
i(this, gs, null);
|
|
967
|
+
i(this, vs, () => {
|
|
968
|
+
t(this, Yt).scrollToSection(t(this, Je), {
|
|
969
|
+
behaviour: t(this, gs)
|
|
970
970
|
});
|
|
971
971
|
});
|
|
972
|
-
i(this,
|
|
972
|
+
i(this, Qe, () => {
|
|
973
973
|
t(this, nt).classList.toggle(
|
|
974
974
|
"current",
|
|
975
|
-
t(this,
|
|
975
|
+
t(this, Yt).counter.current === t(this, Je)
|
|
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, gs, s), r(this, Je, e), t(this, nt).addEventListener("click", t(this, vs)), t(this, Yt).counter.subscribe(t(this, Qe)), t(this, Qe).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, vs)), t(this, Yt).counter.unsubscribe(t(this, Qe)), t(this, nt).remove();
|
|
985
985
|
}
|
|
986
986
|
}
|
|
987
|
-
nt = new WeakMap(),
|
|
988
|
-
var Le,
|
|
989
|
-
class
|
|
987
|
+
nt = new WeakMap(), Yt = new WeakMap(), Je = new WeakMap(), gs = new WeakMap(), vs = new WeakMap(), Qe = new WeakMap();
|
|
988
|
+
var Le, _t, ot;
|
|
989
|
+
class Mi extends ts {
|
|
990
990
|
constructor() {
|
|
991
991
|
super(...arguments);
|
|
992
992
|
i(this, Le, null);
|
|
993
|
-
i(this,
|
|
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, Le).appendChild(h.element), t(this,
|
|
1004
|
+
t(this, Le).appendChild(h.element), t(this, _t).push(h);
|
|
1005
1005
|
}
|
|
1006
1006
|
}, 0));
|
|
1007
1007
|
}
|
|
@@ -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, Le).remove();
|
|
1023
1023
|
}
|
|
1024
1024
|
}
|
|
1025
|
-
Le = new WeakMap(),
|
|
1026
|
-
|
|
1027
|
-
var te, ee, se, ie,
|
|
1028
|
-
class
|
|
1025
|
+
Le = 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, zt, Vt, At, It, A, H, $, B, Mt, k, ct, lt, X, Ft, ke, ut, at, dt, w, W, N, Y, _, Z, Xe, S, Tt, re, Ye, x, pt, T, I, j, ze, Rt, y, he, m, _s, ti, ei, si, ii, ri, _e, Ve, Rs, ue, hi, ni, Ds;
|
|
1028
|
+
class Fi extends ts {
|
|
1029
1029
|
constructor() {
|
|
1030
1030
|
super(...arguments);
|
|
1031
1031
|
i(this, m);
|
|
@@ -1033,8 +1033,8 @@ class Ai extends ys {
|
|
|
1033
1033
|
i(this, ee);
|
|
1034
1034
|
i(this, se);
|
|
1035
1035
|
i(this, ie);
|
|
1036
|
+
i(this, zt);
|
|
1036
1037
|
i(this, Vt);
|
|
1037
|
-
i(this, kt);
|
|
1038
1038
|
i(this, At);
|
|
1039
1039
|
i(this, It);
|
|
1040
1040
|
i(this, A);
|
|
@@ -1042,97 +1042,97 @@ class Ai extends ys {
|
|
|
1042
1042
|
i(this, $);
|
|
1043
1043
|
i(this, B);
|
|
1044
1044
|
i(this, Mt);
|
|
1045
|
-
i(this,
|
|
1046
|
-
i(this, lt);
|
|
1045
|
+
i(this, k);
|
|
1047
1046
|
i(this, ct);
|
|
1048
|
-
i(this,
|
|
1047
|
+
i(this, lt);
|
|
1048
|
+
i(this, X);
|
|
1049
1049
|
i(this, Ft);
|
|
1050
|
-
i(this,
|
|
1050
|
+
i(this, ke);
|
|
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, Xe);
|
|
1061
1061
|
i(this, S);
|
|
1062
1062
|
i(this, Tt);
|
|
1063
1063
|
i(this, re);
|
|
1064
|
-
i(this,
|
|
1064
|
+
i(this, Ye);
|
|
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
|
|
1074
|
+
i(this, _e);
|
|
1075
|
+
i(this, Ve);
|
|
1076
|
+
r(this, te, new c(this, "--damping", 20)), r(this, ee, new c(this, "--mass", 0)), r(this, se, new c(this, "--stiffness", 0)), r(this, ie, new c(this, "--target", "")), r(this, zt, new c(this, "--disabled", !1)), r(this, Vt, new c(
|
|
1077
1077
|
this,
|
|
1078
1078
|
"--distance-offset",
|
|
1079
1079
|
0,
|
|
1080
1080
|
{ rawValueCheck: !1 }
|
|
1081
|
-
)), r(this, At, new
|
|
1081
|
+
)), r(this, At, new c(this, "--start-offset", 0, {
|
|
1082
1082
|
rawValueCheck: !1
|
|
1083
|
-
})), r(this, It, new
|
|
1083
|
+
})), r(this, It, new c(
|
|
1084
1084
|
this,
|
|
1085
1085
|
"--capture-once",
|
|
1086
1086
|
!1
|
|
1087
|
-
)), r(this, A, new
|
|
1087
|
+
)), r(this, A, new c(this, "--captured", "")), r(this, H, new c(this, "--released", "")), r(this, $, new c(
|
|
1088
1088
|
this,
|
|
1089
1089
|
"--captured-from-start",
|
|
1090
1090
|
""
|
|
1091
|
-
)), r(this, B, new
|
|
1091
|
+
)), r(this, B, new c(
|
|
1092
1092
|
this,
|
|
1093
1093
|
"--captured-from-finish",
|
|
1094
1094
|
""
|
|
1095
|
-
)), r(this, Mt, new
|
|
1095
|
+
)), r(this, Mt, new c(
|
|
1096
1096
|
this,
|
|
1097
1097
|
"--released-from-start",
|
|
1098
1098
|
""
|
|
1099
|
-
)), r(this,
|
|
1099
|
+
)), r(this, k, new c(
|
|
1100
1100
|
this,
|
|
1101
1101
|
"--released-from-finish",
|
|
1102
1102
|
""
|
|
1103
|
-
)), r(this,
|
|
1103
|
+
)), r(this, ct, new c(this, "--passed-var", "")), r(this, lt, new c(this, "--progress-var", "")), r(this, X, new c(
|
|
1104
1104
|
this,
|
|
1105
1105
|
"--progress-arc-var",
|
|
1106
1106
|
""
|
|
1107
|
-
)), r(this, Ft, new
|
|
1107
|
+
)), r(this, Ft, new c(
|
|
1108
1108
|
this,
|
|
1109
1109
|
"--progress-arc-mult",
|
|
1110
1110
|
1
|
|
1111
|
-
)), r(this,
|
|
1111
|
+
)), r(this, ke, new c(
|
|
1112
1112
|
this,
|
|
1113
1113
|
"--animation-var-type",
|
|
1114
1114
|
"target"
|
|
1115
|
-
)), r(this, ut, new
|
|
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 c(this, "--distance-var", "")), r(this, at, new c(this, "--start-var", "")), r(this, dt, new c(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, Xe, []), r(this, S, this), r(this, Tt, 0), r(this, re, 0), r(this, Ye, 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 ? ns(this, this.scrollElement) : os(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, Vt).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, Ve).call(this);
|
|
1122
1122
|
}, this.findAnotherScrollEntries = ws(() => {
|
|
1123
1123
|
const e = ne.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, Xe, e.slice(s + 1)), this.tick();
|
|
1128
|
+
}, 0), r(this, _e, () => {
|
|
1129
1129
|
t(this, y) || this.resize();
|
|
1130
|
-
}), r(this,
|
|
1131
|
-
!t(this, y) && t(this,
|
|
1130
|
+
}), r(this, Ve, () => {
|
|
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, Vt);
|
|
1136
1136
|
}
|
|
1137
1137
|
get startOffsetCSSProperty() {
|
|
1138
1138
|
return t(this, At);
|
|
@@ -1156,22 +1156,22 @@ 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
|
-
return t(this,
|
|
1162
|
+
return t(this, ct);
|
|
1163
1163
|
}
|
|
1164
1164
|
get progressVarCSSProperty() {
|
|
1165
|
-
return t(this,
|
|
1165
|
+
return t(this, lt);
|
|
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, ke);
|
|
1175
1175
|
}
|
|
1176
1176
|
get distanceVarCSSProperty() {
|
|
1177
1177
|
return t(this, ut);
|
|
@@ -1183,7 +1183,7 @@ class Ai extends ys {
|
|
|
1183
1183
|
return t(this, dt);
|
|
1184
1184
|
}
|
|
1185
1185
|
get disabledCSSProperty() {
|
|
1186
|
-
return t(this,
|
|
1186
|
+
return t(this, zt);
|
|
1187
1187
|
}
|
|
1188
1188
|
get dampingCSSProperty() {
|
|
1189
1189
|
return t(this, te);
|
|
@@ -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, Xe).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,31 +1284,31 @@ 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,
|
|
1297
|
+
}), t(this, te).observe(), t(this, ee).observe(), t(this, se).observe(), t(this, ie).observe(), t(this, zt).observe(), t(this, Vt).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, ct).observe(), t(this, lt).observe(), t(this, X).observe(), t(this, Ft).observe(), t(this, ke).observe(), t(this, ut).observe(), t(this, at).observe(), t(this, dt).observe();
|
|
1298
1298
|
let e = !1;
|
|
1299
|
-
this.findAnotherScrollEntries(), t(this,
|
|
1299
|
+
this.findAnotherScrollEntries(), t(this, zt).current || this.enable(), t(this, te).subscribe((s) => {
|
|
1300
1300
|
t(this, x).damping = s.current;
|
|
1301
1301
|
}), t(this, ee).subscribe((s) => {
|
|
1302
1302
|
t(this, x).mass = s.current;
|
|
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,
|
|
1307
|
-
}), t(this,
|
|
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
|
+
}), t(this, zt).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, Vt).subscribe(() => {
|
|
1312
1312
|
e && !t(this, y) && this.resize();
|
|
1313
1313
|
}), t(this, A).subscribe((s) => {
|
|
1314
1314
|
o(this, m, ue).call(this, s);
|
|
@@ -1320,22 +1320,22 @@ class Ai extends ys {
|
|
|
1320
1320
|
o(this, m, ue).call(this, s);
|
|
1321
1321
|
}), t(this, Mt).subscribe((s) => {
|
|
1322
1322
|
o(this, m, ue).call(this, s);
|
|
1323
|
-
}), t(this,
|
|
1323
|
+
}), t(this, k).subscribe((s) => {
|
|
1324
1324
|
o(this, m, ue).call(this, s);
|
|
1325
1325
|
}), t(this, It).subscribe((s) => {
|
|
1326
1326
|
t(this, y) || !s.current && s.previous && (this.resize(), this.enable());
|
|
1327
|
-
}), t(this, lt).subscribe((s) => {
|
|
1328
|
-
t(this, y) || (this.removeVar(s.previous), this.setVar(s.current, this.passed.current));
|
|
1329
1327
|
}), t(this, ct).subscribe((s) => {
|
|
1328
|
+
t(this, y) || (this.removeVar(s.previous), this.setVar(s.current, this.passed.current));
|
|
1329
|
+
}), t(this, lt).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, _e), xs.SCROLL + 1), this.scrollElement.onScroll(t(this, Ve)), e = !0;
|
|
1351
1351
|
}
|
|
1352
1352
|
disconnectedCallback() {
|
|
1353
|
-
ft.unsubscribe(t(this,
|
|
1353
|
+
ft.unsubscribe(t(this, _e)), this.scrollElement.offScroll(t(this, Ve)), 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,
|
|
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, zt).close(), t(this, Vt).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, ct).close(), t(this, lt).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, Ye);
|
|
1369
1369
|
}
|
|
1370
1370
|
getStart() {
|
|
1371
|
-
return t(this, Tt) - t(this,
|
|
1371
|
+
return t(this, Tt) - t(this, Ye);
|
|
1372
1372
|
}
|
|
1373
1373
|
}
|
|
1374
|
-
te = new WeakMap(), ee = new WeakMap(), se = new WeakMap(), ie = 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(), zt = new WeakMap(), Vt = 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(), ct = new WeakMap(), lt = new WeakMap(), X = new WeakMap(), Ft = new WeakMap(), ke = 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(), Xe = new WeakMap(), S = new WeakMap(), Tt = new WeakMap(), re = new WeakMap(), Ye = 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,
|
|
1402
|
+
}, _e = new WeakMap(), Ve = new WeakMap(), Rs = function() {
|
|
1403
|
+
const e = t(this, x)[t(this, ke).current];
|
|
1404
|
+
this.setVar(t(this, ct).current, e), r(this, pt, e / t(this, I) || 0), this.setVar(t(this, lt).current, t(this, pt)), t(this, X).current && this.setVar(t(this, X).current, this.progressArc);
|
|
1405
1405
|
}, ue = 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, ct).current, t(this, lt).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 ? ns(this) : os(this),
|
|
1427
1427
|
n
|
|
1428
1428
|
);
|
|
1429
1429
|
}
|
|
@@ -1434,35 +1434,57 @@ 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 ys;
|
|
1439
|
+
const Bs = class Bs extends ts {
|
|
1440
1440
|
constructor() {
|
|
1441
1441
|
super(...arguments);
|
|
1442
|
-
i(this,
|
|
1442
|
+
i(this, ys, () => {
|
|
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 zs(this, null, function* () {
|
|
1449
|
+
ks(Bs.prototype, this, "connectedCallback").call(this), this.scrollElement.counter.subscribe(t(this, ys));
|
|
1450
|
+
});
|
|
1451
|
+
}
|
|
1452
|
+
disconnectedCallback() {
|
|
1453
|
+
this.scrollElement.counter.unsubscribe(t(this, ys));
|
|
1454
|
+
}
|
|
1455
|
+
};
|
|
1456
|
+
ys = new WeakMap();
|
|
1457
|
+
let Os = Bs;
|
|
1458
|
+
q && !customElements.get("e-scroll-counter") && customElements.define("e-scroll-counter", Os);
|
|
1459
|
+
var Cs;
|
|
1460
|
+
const Ws = class Ws extends ts {
|
|
1461
|
+
constructor() {
|
|
1462
|
+
super(...arguments);
|
|
1463
|
+
i(this, Cs, () => {
|
|
1464
|
+
const e = this.scrollElement.limit, s = parseInt(this.getAttribute("pad") || "0");
|
|
1465
|
+
this.textContent = e.toString().padStart(s, "0");
|
|
1466
|
+
});
|
|
1467
|
+
}
|
|
1468
|
+
connectedCallback() {
|
|
1469
|
+
return zs(this, null, function* () {
|
|
1470
|
+
ks(Ws.prototype, this, "connectedCallback").call(this), this.scrollElement.counter.subscribe(t(this, Cs));
|
|
1450
1471
|
});
|
|
1451
1472
|
}
|
|
1452
1473
|
disconnectedCallback() {
|
|
1453
|
-
this.scrollElement.counter.unsubscribe(t(this,
|
|
1474
|
+
this.scrollElement.counter.unsubscribe(t(this, Cs));
|
|
1454
1475
|
}
|
|
1455
1476
|
};
|
|
1456
|
-
|
|
1457
|
-
let
|
|
1458
|
-
|
|
1477
|
+
Cs = new WeakMap();
|
|
1478
|
+
let Hs = Ws;
|
|
1479
|
+
q && !customElements.get("e-scroll-total") && customElements.define("e-scroll-total", Hs);
|
|
1459
1480
|
export {
|
|
1460
|
-
|
|
1461
|
-
|
|
1462
|
-
|
|
1463
|
-
|
|
1464
|
-
|
|
1465
|
-
|
|
1466
|
-
|
|
1467
|
-
|
|
1481
|
+
Mi as ScrollBulletButtonsElement,
|
|
1482
|
+
Os as ScrollCounterElement,
|
|
1483
|
+
Vs as ScrollElement,
|
|
1484
|
+
Ti as ScrollSectionButtonElement,
|
|
1485
|
+
Fi as ScrollSegmentElement,
|
|
1486
|
+
Vi as ScrollSetButtonElement,
|
|
1487
|
+
Ai as ScrollStepButtonElement,
|
|
1488
|
+
Hs as ScrollTotalElement,
|
|
1489
|
+
zi as ScrollbarElement
|
|
1468
1490
|
};
|