aptechka 0.71.23 → 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/index.cjs +1 -1
- package/lib/scroll/index.js +323 -313
- package/package.json +1 -1
package/lib/scroll/index.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
var oi = Object.defineProperty;
|
|
2
|
-
var Ns = Object.getOwnPropertySymbols,
|
|
2
|
+
var Ns = Object.getOwnPropertySymbols, li = Object.getPrototypeOf, ci = Object.prototype.hasOwnProperty, ui = Object.prototype.propertyIsEnumerable, ai = Reflect.get;
|
|
3
3
|
var Gs = (a) => {
|
|
4
4
|
throw TypeError(a);
|
|
5
5
|
};
|
|
6
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
|
-
|
|
8
|
+
ci.call(n, e) && qs(a, e, n[e]);
|
|
9
9
|
if (Ns)
|
|
10
10
|
for (var e of Ns(n))
|
|
11
11
|
ui.call(n, e) && qs(a, e, n[e]);
|
|
@@ -13,19 +13,19 @@ var qs = (a, n, e) => n in a ? oi(a, n, { enumerable: !0, configurable: !0, writ
|
|
|
13
13
|
};
|
|
14
14
|
var Ls = (a, n, e) => n.has(a) || Gs("Cannot " + e);
|
|
15
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(
|
|
17
|
-
var
|
|
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());
|
|
@@ -36,7 +36,7 @@ import { q as di } from "../easings-BEmRlrDd.js";
|
|
|
36
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
|
|
39
|
+
import { a as os, g as ls, c as fi } from "../layout-DpZo-I0y.js";
|
|
40
40
|
import { c as Zs, s as bi } from "../math-BOBiC4TN.js";
|
|
41
41
|
import { p as mi, l as Si } from "../number-CumqY64S.js";
|
|
42
42
|
import { c as js } from "../stylesheet-DpnWNVyD.js";
|
|
@@ -46,52 +46,52 @@ import { D as Qs } from "../Damped-CtQmJ52v.js";
|
|
|
46
46
|
import { T as gi } from "../Tweened-BlZB0vl4.js";
|
|
47
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
|
|
49
|
+
import { scrollEntries as oe } from "../scroll-entries/index.js";
|
|
50
50
|
import { cssUnitParser as Ks } from "../css-unit-parser/index.js";
|
|
51
|
-
import { CSSProperty as
|
|
51
|
+
import { CSSProperty as l } from "../css-property/index.js";
|
|
52
52
|
import { d as Ei } from "../Viewport-DA10iWAO.js";
|
|
53
53
|
import "construct-style-sheets-polyfill";
|
|
54
|
-
import { elementResizer as
|
|
54
|
+
import { elementResizer as ns } from "../element-resizer/index.js";
|
|
55
55
|
import { s as wi } from "../gestures-CcXV6fCp.js";
|
|
56
56
|
import { b as xi } from "../dom-CVWzyXPH.js";
|
|
57
|
-
var f,
|
|
57
|
+
var f, Fe, E, cs, us, de, bt, Dt, pe, fe, is;
|
|
58
58
|
class Li {
|
|
59
59
|
constructor(n, e, s) {
|
|
60
|
-
i(this,
|
|
60
|
+
i(this, fe);
|
|
61
61
|
i(this, f);
|
|
62
|
-
i(this,
|
|
62
|
+
i(this, Fe);
|
|
63
63
|
i(this, E);
|
|
64
64
|
i(this, cs, 0);
|
|
65
|
-
i(this,
|
|
66
|
-
i(this,
|
|
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
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();
|
|
@@ -100,19 +100,19 @@ class Li {
|
|
|
100
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, cs, t(this, f).offsetWidth), 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
106
|
const n = t(this, E).shiftSectionPositionCSSProperty.current;
|
|
107
107
|
let e = n;
|
|
108
108
|
const s = t(this, E).viewportSize * t(this, E).sectionDistanceScaleCSSProperty.current;
|
|
109
|
-
t(this, E).loopCSSProperty.current && t(this, bt) + t(this,
|
|
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
111
|
t(this, E).axisCSSProperty.current,
|
|
112
112
|
e
|
|
113
113
|
);
|
|
114
|
-
const h = t(this, E).currentScrollValue + e, u = t(this, bt) - t(this, E).viewportSize - s, g = t(this, bt) + 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,19 +127,19 @@ class Li {
|
|
|
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
145
|
const ki = js({
|
|
@@ -181,97 +181,97 @@ const ki = js({
|
|
|
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
|
-
i(this,
|
|
188
|
+
i(this, c);
|
|
189
189
|
i(this, p, null);
|
|
190
|
-
i(this,
|
|
191
|
-
i(this, R, new
|
|
192
|
-
i(this, Ot, new
|
|
193
|
-
i(this, mt, new
|
|
194
|
-
i(this, St, new
|
|
190
|
+
i(this, be, new l(this, "--controls", !0));
|
|
191
|
+
i(this, R, new l(this, "--axis", "y"));
|
|
192
|
+
i(this, Ot, new l(this, "--reverse", !1));
|
|
193
|
+
i(this, mt, new l(this, "--direction", 0));
|
|
194
|
+
i(this, St, new l(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 l(this, "--split", !1));
|
|
198
|
+
i(this, et, new l(this, "--sectional", !1));
|
|
199
|
+
i(this, Ht, new l(
|
|
200
200
|
this,
|
|
201
201
|
"--tween-easing",
|
|
202
202
|
!1
|
|
203
203
|
));
|
|
204
|
-
i(this, $t, new
|
|
204
|
+
i(this, $t, new l(
|
|
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 l(this, "--auto-size", !1));
|
|
210
|
+
i(this, Bt, new l(
|
|
211
211
|
this,
|
|
212
212
|
"--wheel-max-delta",
|
|
213
213
|
!1
|
|
214
214
|
));
|
|
215
|
-
i(this,
|
|
216
|
-
i(this, st, new
|
|
215
|
+
i(this, me, new l(this, "--drag-inertion", 1));
|
|
216
|
+
i(this, st, new l(
|
|
217
217
|
this,
|
|
218
218
|
"--sections-in-view",
|
|
219
219
|
1
|
|
220
220
|
));
|
|
221
|
-
i(this,
|
|
222
|
-
i(this,
|
|
223
|
-
i(this,
|
|
224
|
-
i(this,
|
|
225
|
-
i(this,
|
|
226
|
-
i(this,
|
|
221
|
+
i(this, V, new l(this, "--loop", !1));
|
|
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, J, new
|
|
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
|
|
237
237
|
));
|
|
238
|
-
i(this, Wt, new
|
|
238
|
+
i(this, Wt, new l(
|
|
239
239
|
this,
|
|
240
240
|
"--autoplay-user-direction",
|
|
241
241
|
!1
|
|
242
242
|
));
|
|
243
|
-
i(this, Q, new
|
|
244
|
-
i(this, Nt, new
|
|
243
|
+
i(this, Q, new l(this, "--classes", !1));
|
|
244
|
+
i(this, Nt, new l(
|
|
245
245
|
this,
|
|
246
246
|
"--current-index-start-offset",
|
|
247
247
|
0
|
|
248
248
|
));
|
|
249
|
-
i(this, yt, new
|
|
249
|
+
i(this, yt, new l(
|
|
250
250
|
this,
|
|
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,
|
|
258
258
|
{ rawValueCheck: !1 }
|
|
259
259
|
));
|
|
260
|
-
i(this, qt, new
|
|
261
|
-
i(this,
|
|
260
|
+
i(this, qt, new l(this, "--focus-delay", 0));
|
|
261
|
+
i(this, we, new l(
|
|
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 l(this, "--disabled", !1));
|
|
267
|
+
i(this, Ut, new l(this, "--hibernate", !1));
|
|
268
268
|
i(this, Kt, null);
|
|
269
269
|
i(this, b, null);
|
|
270
|
-
i(this,
|
|
270
|
+
i(this, Re, null);
|
|
271
271
|
i(this, G, []);
|
|
272
272
|
i(this, d, []);
|
|
273
|
-
i(this, us, 0);
|
|
274
273
|
i(this, as, 0);
|
|
274
|
+
i(this, ds, 0);
|
|
275
275
|
i(this, L, 0);
|
|
276
276
|
i(this, P, 0);
|
|
277
277
|
i(this, U, 0);
|
|
@@ -280,48 +280,48 @@ class Vs extends HTMLElement {
|
|
|
280
280
|
i(this, rt, null);
|
|
281
281
|
i(this, M, null);
|
|
282
282
|
i(this, D, new ce(0));
|
|
283
|
-
i(this,
|
|
283
|
+
i(this, De, 0);
|
|
284
284
|
i(this, Ct, 0);
|
|
285
285
|
i(this, Pt, !1);
|
|
286
286
|
i(this, Et, !0);
|
|
287
287
|
i(this, K, !0);
|
|
288
|
-
i(this,
|
|
288
|
+
i(this, Oe);
|
|
289
289
|
i(this, jt);
|
|
290
290
|
i(this, Jt, new gi());
|
|
291
|
-
i(this,
|
|
291
|
+
i(this, xe, !1);
|
|
292
292
|
i(this, ht, null);
|
|
293
|
-
i(this,
|
|
294
|
-
i(this,
|
|
293
|
+
i(this, z, !1);
|
|
294
|
+
i(this, He, null);
|
|
295
295
|
i(this, wt, []);
|
|
296
|
-
i(this,
|
|
297
|
-
i(this,
|
|
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,
|
|
305
|
+
i(this, ps, () => {
|
|
306
306
|
if (!t(this, Pt) || t(this, K) || t(this, Et))
|
|
307
307
|
return;
|
|
308
308
|
const e = this.currentScrollValue;
|
|
309
|
-
if (r(this,
|
|
309
|
+
if (r(this, De, Math.max(0, e - t(this, P))), t(this, d).length) {
|
|
310
310
|
for (let s = 0; s < t(this, G).length; s++)
|
|
311
311
|
t(this, G)[s].transform();
|
|
312
|
-
t(this, D).current = o(this,
|
|
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,
|
|
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,
|
|
324
|
+
i(this, fs, (e, s) => {
|
|
325
325
|
if (!t(this, jt)) {
|
|
326
326
|
if (t(this, mt).current) {
|
|
327
327
|
if (t(this, mt).current < 0 && s > 0)
|
|
@@ -329,15 +329,15 @@ class Vs extends HTMLElement {
|
|
|
329
329
|
if (t(this, mt).current > 0 && s < 0)
|
|
330
330
|
return;
|
|
331
331
|
}
|
|
332
|
-
if (!t(this, J).current && t(this, qt).current && (clearInterval(t(this,
|
|
333
|
-
const h = t(this, d)[o(this,
|
|
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
|
-
duration: t(this,
|
|
336
|
+
duration: t(this, we).current,
|
|
337
337
|
easing: di
|
|
338
338
|
}
|
|
339
339
|
});
|
|
340
|
-
}, t(this, qt).current))), !(e.includes("drag") && !Ei.isTouch && !t(this,
|
|
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 Vs 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,
|
|
359
|
+
i(this, bs, ws(() => {
|
|
360
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
371
|
if (q) {
|
|
372
372
|
const e = this.attachShadow({ mode: "open" });
|
|
373
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 Vs 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,37 +416,37 @@ class Vs 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);
|
|
423
423
|
}
|
|
424
424
|
get loopCSSProperty() {
|
|
425
|
-
return t(this,
|
|
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
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);
|
|
@@ -461,13 +461,13 @@ class Vs 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);
|
|
468
468
|
}
|
|
469
469
|
get focusDurationCSSProperty() {
|
|
470
|
-
return t(this,
|
|
470
|
+
return t(this, we);
|
|
471
471
|
}
|
|
472
472
|
get disabledCSSProperty() {
|
|
473
473
|
return t(this, Gt);
|
|
@@ -476,10 +476,10 @@ class Vs extends HTMLElement {
|
|
|
476
476
|
return t(this, Ut);
|
|
477
477
|
}
|
|
478
478
|
get currentScrollValue() {
|
|
479
|
-
return o(this,
|
|
479
|
+
return o(this, c, Ts).call(this, "current");
|
|
480
480
|
}
|
|
481
481
|
get targetScrollValue() {
|
|
482
|
-
return o(this,
|
|
482
|
+
return o(this, c, Ts).call(this, "target");
|
|
483
483
|
}
|
|
484
484
|
get contentWrapperElement() {
|
|
485
485
|
return t(this, Kt);
|
|
@@ -494,10 +494,10 @@ class Vs extends HTMLElement {
|
|
|
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);
|
|
@@ -520,13 +520,13 @@ class Vs extends HTMLElement {
|
|
|
520
520
|
return t(this, Ct);
|
|
521
521
|
}
|
|
522
522
|
get loopDistance() {
|
|
523
|
-
return 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 Vs extends HTMLElement {
|
|
|
547
547
|
return t(this, R).current === "x" ? 0 : t(this, p).distance;
|
|
548
548
|
}
|
|
549
549
|
tryResplit() {
|
|
550
|
-
!t(this, K) && (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);
|
|
@@ -570,19 +570,19 @@ class Vs extends HTMLElement {
|
|
|
570
570
|
scrollToSection(e, s) {
|
|
571
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, 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,
|
|
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, K) || (o(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
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"
|
|
@@ -601,7 +601,7 @@ class Vs extends HTMLElement {
|
|
|
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
606
|
)) : r(this, U, Ks.parse(
|
|
607
607
|
getComputedStyle(t(this, b)).columnGap
|
|
@@ -622,11 +622,11 @@ class Vs 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, V).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, V).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,87 +640,87 @@ class Vs 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, 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
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,
|
|
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,
|
|
653
|
+
t(this, Be)
|
|
654
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,
|
|
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,
|
|
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,
|
|
677
|
-
}), t(this,
|
|
678
|
-
e.current ? (t(this,
|
|
679
|
-
}), t(this, me).subscribe((e) => {
|
|
680
|
-
t(this, p).damping = e.current;
|
|
676
|
+
t(this, z) && (t(this, F).call(this), o(this, c, ue).call(this));
|
|
677
|
+
}), t(this, V).subscribe((e) => {
|
|
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
685
|
}), t(this, J).subscribe((e) => {
|
|
686
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
689
|
}), t(this, Q).subscribe((e) => {
|
|
690
|
-
t(this,
|
|
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, K) || (t(this, d).length && o(this,
|
|
700
|
+
t(this, K) || (t(this, d).length && o(this, c, ue).call(this), this.style.setProperty("--counter", e.current + ""));
|
|
701
701
|
}), t(this, Jt).subscribe((e) => {
|
|
702
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, 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,
|
|
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,
|
|
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
718
|
e instanceof HTMLElement && e.tagName !== "SCRIPT" && t(this, G).push(new Li(e, s, this));
|
|
719
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,
|
|
723
|
-
},
|
|
722
|
+
}), t(this, F).call(this), o(this, c, ue).call(this);
|
|
723
|
+
}, Me = function() {
|
|
724
724
|
t(this, G).forEach((e) => {
|
|
725
725
|
e.destroy();
|
|
726
726
|
}), r(this, G, []), r(this, d, []), t(this, D).reset(), t(this, p).reset(), this.style.removeProperty("--max-section-size"), tt(this, "scrollSectionsChange", {
|
|
@@ -728,32 +728,32 @@ p = new WeakMap(), fe = new WeakMap(), R = new WeakMap(), Ot = new WeakMap(), mt
|
|
|
728
728
|
composed: !0
|
|
729
729
|
});
|
|
730
730
|
}, Ps = function() {
|
|
731
|
-
t(this, Et) || (r(this, Et, !0), t(this, p).unsubscribe(t(this,
|
|
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
734
|
}, Es = function() {
|
|
735
|
-
t(this, Et) && (r(this, Et, !1), t(this, p).subscribe(t(this,
|
|
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
736
|
}, Is = function() {
|
|
737
|
-
t(this, K) || (r(this, K, !0), clearTimeout(t(this,
|
|
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
738
|
}, Ms = function() {
|
|
739
|
-
t(this, K) && (r(this, K, !1),
|
|
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
741
|
}), ft.subscribe(t(this, F), xs.SCROLL));
|
|
742
|
-
}, F = new WeakMap(),
|
|
742
|
+
}, F = new WeakMap(), ps = new WeakMap(), Xs = function(e) {
|
|
743
743
|
let s = t(this, D).current;
|
|
744
|
-
return t(this,
|
|
745
|
-
},
|
|
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
746
|
t(this, Wt).current && (t(this, M).direction = e), t(this, J).current && t(this, M).pauseAndContinue(
|
|
747
|
-
t(this,
|
|
747
|
+
t(this, Pe).current,
|
|
748
748
|
this.sectionalCSSProperty.current
|
|
749
749
|
);
|
|
750
750
|
}, Ts = function(e = "current") {
|
|
751
|
-
if (t(this,
|
|
751
|
+
if (t(this, V).current && t(this, d).length) {
|
|
752
752
|
const s = t(this, p)[e] % Math.round(t(this, P) + t(this, L) + t(this, U));
|
|
753
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", {
|
|
@@ -765,7 +765,7 @@ p = new WeakMap(), fe = new WeakMap(), R = new WeakMap(), Ot = new WeakMap(), mt
|
|
|
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
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,
|
|
768
|
+
}), t(this, bs).call(this);
|
|
769
769
|
}
|
|
770
770
|
}
|
|
771
771
|
}, Ys = function() {
|
|
@@ -776,59 +776,59 @@ p = new WeakMap(), fe = new WeakMap(), R = new WeakMap(), Ot = new WeakMap(), mt
|
|
|
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
|
-
q && !customElements.get("e-scroll") && customElements.define("e-scroll",
|
|
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 = xi(this,
|
|
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 Qt, O, xt, Lt,
|
|
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
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);
|
|
816
|
+
i(this, qe, 0);
|
|
817
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,
|
|
828
|
+
i(this, gs, (e) => {
|
|
829
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
|
() => {
|
|
@@ -878,27 +878,27 @@ class zi extends ts {
|
|
|
878
878
|
connectedCallback() {
|
|
879
879
|
super.connectedCallback(), this.setAttribute("drag-dead-zone", "");
|
|
880
880
|
const e = t(this, Qt).assignedElements()[0] || t(this, Qt).firstElementChild;
|
|
881
|
-
r(this, O, e), t(this, O).addEventListener("pointerdown", t(this,
|
|
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
|
-
Qt = new WeakMap(), O = new WeakMap(), xt = new WeakMap(), Lt = new WeakMap(),
|
|
888
|
-
q && !customElements.get("e-scrollbar") && customElements.define("e-scrollbar",
|
|
889
|
-
var
|
|
890
|
-
class $s extends
|
|
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,
|
|
899
|
+
i(this, Ze, new l(this, "--tween-duration", 0));
|
|
900
900
|
q && this.addEventListener("click", () => {
|
|
901
|
-
const e = t(this,
|
|
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,37 +906,37 @@ class $s extends ts {
|
|
|
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
|
-
q && !customElements.get("e-scroll-set-button") && customElements.define("e-scroll-set-button",
|
|
934
|
-
var kt,
|
|
932
|
+
je = new WeakMap();
|
|
933
|
+
q && !customElements.get("e-scroll-set-button") && customElements.define("e-scroll-set-button", zi);
|
|
934
|
+
var kt, Je;
|
|
935
935
|
class Ai extends $s {
|
|
936
936
|
constructor() {
|
|
937
937
|
super(...arguments);
|
|
938
|
-
i(this, kt, new
|
|
939
|
-
i(this,
|
|
938
|
+
i(this, kt, new l(this, "--step", 1));
|
|
939
|
+
i(this, Je, () => {
|
|
940
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
|
}
|
|
@@ -945,51 +945,51 @@ class Ai extends $s {
|
|
|
945
945
|
}
|
|
946
946
|
connectedCallback() {
|
|
947
947
|
super.connectedCallback(), this.scrollElement && (t(this, kt).subscribe(() => {
|
|
948
|
-
t(this,
|
|
948
|
+
t(this, Je).call(this);
|
|
949
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
955
|
super.disconnectedCallback(), t(this, kt).close(), this.removeAttribute("disabled");
|
|
956
956
|
}
|
|
957
957
|
}
|
|
958
|
-
kt = new WeakMap(),
|
|
958
|
+
kt = new WeakMap(), Je = new WeakMap();
|
|
959
959
|
q && !customElements.get("e-scroll-step-button") && customElements.define("e-scroll-step-button", Ai);
|
|
960
|
-
var nt, Yt,
|
|
960
|
+
var nt, Yt, Qe, vs, ys, Xe;
|
|
961
961
|
class Ii {
|
|
962
962
|
constructor(n, e, s) {
|
|
963
963
|
i(this, nt, null);
|
|
964
964
|
i(this, Yt, null);
|
|
965
|
-
i(this,
|
|
966
|
-
i(this,
|
|
967
|
-
i(this,
|
|
968
|
-
t(this, Yt).scrollToSection(t(this,
|
|
969
|
-
behaviour: t(this,
|
|
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, Yt).counter.current === t(this,
|
|
975
|
+
t(this, Yt).counter.current === t(this, Qe)
|
|
976
976
|
);
|
|
977
977
|
});
|
|
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,
|
|
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(), Yt = new WeakMap(),
|
|
988
|
-
var
|
|
989
|
-
class Mi extends
|
|
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,
|
|
992
|
+
i(this, ke, null);
|
|
993
993
|
i(this, _t, []);
|
|
994
994
|
i(this, ot, ws(() => {
|
|
995
995
|
t(this, _t).forEach((s) => s.destroy()), r(this, _t, []);
|
|
@@ -1001,12 +1001,12 @@ class Mi extends ts {
|
|
|
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 Mi extends ts {
|
|
|
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, _t).forEach((e) => e.destroy()), r(this, _t, []), 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
|
-
|
|
1025
|
+
ke = new WeakMap(), _t = new WeakMap(), ot = new WeakMap();
|
|
1026
1026
|
q && !customElements.get("e-scroll-bullet-buttons") && customElements.define("e-scroll-bullet-buttons", Mi);
|
|
1027
|
-
var te, ee, se, ie,
|
|
1028
|
-
class Fi extends
|
|
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);
|
|
@@ -1033,8 +1033,8 @@ class Fi extends ts {
|
|
|
1033
1033
|
i(this, ee);
|
|
1034
1034
|
i(this, se);
|
|
1035
1035
|
i(this, ie);
|
|
1036
|
-
i(this, zt);
|
|
1037
1036
|
i(this, Vt);
|
|
1037
|
+
i(this, zt);
|
|
1038
1038
|
i(this, At);
|
|
1039
1039
|
i(this, It);
|
|
1040
1040
|
i(this, A);
|
|
@@ -1043,11 +1043,11 @@ class Fi extends ts {
|
|
|
1043
1043
|
i(this, B);
|
|
1044
1044
|
i(this, Mt);
|
|
1045
1045
|
i(this, k);
|
|
1046
|
-
i(this, ct);
|
|
1047
1046
|
i(this, lt);
|
|
1047
|
+
i(this, ct);
|
|
1048
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);
|
|
@@ -1057,11 +1057,11 @@ class Fi extends ts {
|
|
|
1057
1057
|
i(this, Y);
|
|
1058
1058
|
i(this, _);
|
|
1059
1059
|
i(this, Z);
|
|
1060
|
-
i(this,
|
|
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);
|
|
@@ -1071,68 +1071,68 @@ class Fi extends ts {
|
|
|
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, 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,
|
|
1080
1080
|
{ rawValueCheck: !1 }
|
|
1081
|
-
)), r(this, At, new
|
|
1081
|
+
)), r(this, At, new l(this, "--start-offset", 0, {
|
|
1082
1082
|
rawValueCheck: !1
|
|
1083
|
-
})), r(this, It, new
|
|
1083
|
+
})), r(this, It, new l(
|
|
1084
1084
|
this,
|
|
1085
1085
|
"--capture-once",
|
|
1086
1086
|
!1
|
|
1087
|
-
)), r(this, A, new
|
|
1087
|
+
)), r(this, A, new l(this, "--captured", "")), r(this, H, new l(this, "--released", "")), r(this, $, new l(
|
|
1088
1088
|
this,
|
|
1089
1089
|
"--captured-from-start",
|
|
1090
1090
|
""
|
|
1091
|
-
)), r(this, B, new
|
|
1091
|
+
)), r(this, B, new l(
|
|
1092
1092
|
this,
|
|
1093
1093
|
"--captured-from-finish",
|
|
1094
1094
|
""
|
|
1095
|
-
)), r(this, Mt, new
|
|
1095
|
+
)), r(this, Mt, new l(
|
|
1096
1096
|
this,
|
|
1097
1097
|
"--released-from-start",
|
|
1098
1098
|
""
|
|
1099
|
-
)), r(this, k, new
|
|
1099
|
+
)), r(this, k, new l(
|
|
1100
1100
|
this,
|
|
1101
1101
|
"--released-from-finish",
|
|
1102
1102
|
""
|
|
1103
|
-
)), 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
|
""
|
|
1107
|
-
)), r(this, Ft, new
|
|
1107
|
+
)), r(this, Ft, new l(
|
|
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
|
|
1116
|
-
r(this, re, this.scrollElement.vertical ? this.offsetHeight : this.offsetWidth), r(this, Tt, this.scrollElement.vertical ?
|
|
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
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,
|
|
1130
|
+
}), r(this, Ae, () => {
|
|
1131
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);
|
|
@@ -1159,10 +1159,10 @@ class Fi extends ts {
|
|
|
1159
1159
|
return t(this, k);
|
|
1160
1160
|
}
|
|
1161
1161
|
get passedVarCSSProperty() {
|
|
1162
|
-
return t(this,
|
|
1162
|
+
return t(this, lt);
|
|
1163
1163
|
}
|
|
1164
1164
|
get progressVarCSSProperty() {
|
|
1165
|
-
return t(this,
|
|
1165
|
+
return t(this, ct);
|
|
1166
1166
|
}
|
|
1167
1167
|
get progressArcVarCSSProperty() {
|
|
1168
1168
|
return t(this, X);
|
|
@@ -1171,7 +1171,7 @@ class Fi extends ts {
|
|
|
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);
|
|
@@ -1183,7 +1183,7 @@ class Fi extends ts {
|
|
|
1183
1183
|
return t(this, dt);
|
|
1184
1184
|
}
|
|
1185
1185
|
get disabledCSSProperty() {
|
|
1186
|
-
return t(this,
|
|
1186
|
+
return t(this, Vt);
|
|
1187
1187
|
}
|
|
1188
1188
|
get dampingCSSProperty() {
|
|
1189
1189
|
return t(this, te);
|
|
@@ -1247,7 +1247,7 @@ class Fi extends ts {
|
|
|
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);
|
|
@@ -1294,9 +1294,9 @@ class Fi extends ts {
|
|
|
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, 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
|
-
this.findAnotherScrollEntries(), t(this,
|
|
1299
|
+
this.findAnotherScrollEntries(), t(this, Vt).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;
|
|
@@ -1304,29 +1304,29 @@ class Fi extends ts {
|
|
|
1304
1304
|
t(this, x).stiffness = s.current;
|
|
1305
1305
|
}), t(this, ie).subscribe((s) => {
|
|
1306
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,
|
|
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,
|
|
1322
|
+
o(this, m, ae).call(this, s);
|
|
1323
1323
|
}), t(this, k).subscribe((s) => {
|
|
1324
|
-
o(this, m,
|
|
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
|
-
}), t(this, ct).subscribe((s) => {
|
|
1328
|
-
t(this, y) || (this.removeVar(s.previous), this.setVar(s.current, this.passed.current));
|
|
1329
1327
|
}), t(this, lt).subscribe((s) => {
|
|
1328
|
+
t(this, y) || (this.removeVar(s.previous), this.setVar(s.current, this.passed.current));
|
|
1329
|
+
}), t(this, ct).subscribe((s) => {
|
|
1330
1330
|
t(this, y) || (this.removeVar(s.previous), this.setVar(s.current, t(this, pt)));
|
|
1331
1331
|
}), t(this, X).subscribe((s) => {
|
|
1332
1332
|
t(this, y) || (this.removeVar(s.previous), this.setVar(s.current, this.progressArc));
|
|
@@ -1347,13 +1347,13 @@ class Fi extends ts {
|
|
|
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,
|
|
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,13 +1365,13 @@ class Fi extends ts {
|
|
|
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(),
|
|
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
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
1376
|
t(this, k).current
|
|
1377
1377
|
), t(this, k).current && t(this, S).classList.remove(
|
|
@@ -1399,10 +1399,10 @@ te = new WeakMap(), ee = new WeakMap(), se = new WeakMap(), ie = new WeakMap(),
|
|
|
1399
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
1400
|
t(this, k).current
|
|
1401
1401
|
);
|
|
1402
|
-
},
|
|
1403
|
-
const e = t(this, x)[t(this,
|
|
1404
|
-
this.setVar(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;
|
|
@@ -1417,13 +1417,13 @@ te = new WeakMap(), ee = new WeakMap(), se = new WeakMap(), ie = new WeakMap(),
|
|
|
1417
1417
|
s && t(this, S).style.removeProperty(`--${s}`);
|
|
1418
1418
|
});
|
|
1419
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,
|
|
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
1422
|
q && !customElements.get("e-scroll-segment") && customElements.define("e-scroll-segment", Fi);
|
|
1423
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
|
}
|
|
@@ -1435,56 +1435,66 @@ class Ti extends $s {
|
|
|
1435
1435
|
}
|
|
1436
1436
|
}
|
|
1437
1437
|
q && !customElements.get("e-scroll-section-button") && customElements.define("e-scroll-section-button", Ti);
|
|
1438
|
-
var
|
|
1439
|
-
const Bs = class Bs extends
|
|
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
|
-
ks(Bs.prototype, this, "connectedCallback").call(this), this.scrollElement.counter.subscribe(t(this,
|
|
1448
|
+
return Vs(this, null, function* () {
|
|
1449
|
+
ks(Bs.prototype, this, "connectedCallback").call(this), this.scrollElement.counter.subscribe(t(this, Cs));
|
|
1450
1450
|
});
|
|
1451
1451
|
}
|
|
1452
1452
|
disconnectedCallback() {
|
|
1453
|
-
this.scrollElement.counter.unsubscribe(t(this,
|
|
1453
|
+
this.scrollElement.counter.unsubscribe(t(this, Cs));
|
|
1454
1454
|
}
|
|
1455
1455
|
};
|
|
1456
|
-
|
|
1456
|
+
Cs = new WeakMap();
|
|
1457
1457
|
let Os = Bs;
|
|
1458
1458
|
q && !customElements.get("e-scroll-counter") && customElements.define("e-scroll-counter", Os);
|
|
1459
|
-
var
|
|
1460
|
-
const Ws = class Ws extends
|
|
1459
|
+
var ne;
|
|
1460
|
+
const Ws = class Ws extends es {
|
|
1461
1461
|
constructor() {
|
|
1462
1462
|
super(...arguments);
|
|
1463
|
-
i(this,
|
|
1464
|
-
const e = this.scrollElement.limit, s = parseInt(this.getAttribute("pad") || "0");
|
|
1463
|
+
i(this, ne, () => {
|
|
1464
|
+
const e = this.scrollElement.limit + 1, s = parseInt(this.getAttribute("pad") || "0");
|
|
1465
1465
|
this.textContent = e.toString().padStart(s, "0");
|
|
1466
1466
|
});
|
|
1467
1467
|
}
|
|
1468
1468
|
connectedCallback() {
|
|
1469
|
-
return
|
|
1470
|
-
ks(Ws.prototype, this, "connectedCallback").call(this), this.scrollElement.
|
|
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);
|
|
1471
1476
|
});
|
|
1472
1477
|
}
|
|
1473
1478
|
disconnectedCallback() {
|
|
1474
|
-
this.scrollElement.
|
|
1479
|
+
this.scrollElement.sectionsInViewCSSProperty.unsubscribe(
|
|
1480
|
+
t(this, ne)
|
|
1481
|
+
), this.scrollElement.removeEventListener(
|
|
1482
|
+
"scrollSectionsChange",
|
|
1483
|
+
t(this, ne)
|
|
1484
|
+
);
|
|
1475
1485
|
}
|
|
1476
1486
|
};
|
|
1477
|
-
|
|
1487
|
+
ne = new WeakMap();
|
|
1478
1488
|
let Hs = Ws;
|
|
1479
1489
|
q && !customElements.get("e-scroll-total") && customElements.define("e-scroll-total", Hs);
|
|
1480
1490
|
export {
|
|
1481
1491
|
Mi as ScrollBulletButtonsElement,
|
|
1482
1492
|
Os as ScrollCounterElement,
|
|
1483
|
-
|
|
1493
|
+
zs as ScrollElement,
|
|
1484
1494
|
Ti as ScrollSectionButtonElement,
|
|
1485
1495
|
Fi as ScrollSegmentElement,
|
|
1486
|
-
|
|
1496
|
+
zi as ScrollSetButtonElement,
|
|
1487
1497
|
Ai as ScrollStepButtonElement,
|
|
1488
1498
|
Hs as ScrollTotalElement,
|
|
1489
|
-
|
|
1499
|
+
Vi as ScrollbarElement
|
|
1490
1500
|
};
|