aptechka 0.71.28 → 0.71.30
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 +247 -251
- package/package.json +1 -1
package/lib/scroll/index.js
CHANGED
|
@@ -18,19 +18,19 @@ var zs = (d, 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 (ue) {
|
|
22
|
+
h(ue);
|
|
23
23
|
}
|
|
24
24
|
}, g = (C) => {
|
|
25
25
|
try {
|
|
26
26
|
v(e.throw(C));
|
|
27
|
-
} catch (
|
|
28
|
-
h(
|
|
27
|
+
} catch (ue) {
|
|
28
|
+
h(ue);
|
|
29
29
|
}
|
|
30
30
|
}, v = (C) => C.done ? s(C.value) : Promise.resolve(C.value).then(u, g);
|
|
31
31
|
v((e = e.apply(d, n)).next());
|
|
32
32
|
});
|
|
33
|
-
import { S as
|
|
33
|
+
import { S as ae } from "../Store-0BVty6AZ.js";
|
|
34
34
|
import { i as q } from "../index-Bv9zgfdb.js";
|
|
35
35
|
import { q as fi } from "../easings-BEmRlrDd.js";
|
|
36
36
|
import { i as pi } from "../element-CGVl1jA-.js";
|
|
@@ -46,7 +46,7 @@ import { D as Xs } from "../Damped-CtQmJ52v.js";
|
|
|
46
46
|
import { T as vi } from "../Tweened-BlZB0vl4.js";
|
|
47
47
|
import { W as yi, K as Ci, D as Pi, A as Ei } from "../DragControls-CkhCt-4W.js";
|
|
48
48
|
import { windowResizer as pt } from "../window-resizer/index.js";
|
|
49
|
-
import { scrollEntries as
|
|
49
|
+
import { scrollEntries as ce } from "../scroll-entries/index.js";
|
|
50
50
|
import { cssUnitParser as Zs } from "../css-unit-parser/index.js";
|
|
51
51
|
import { CSSProperty as l } from "../css-property/index.js";
|
|
52
52
|
import { d as wi } from "../Viewport-DA10iWAO.js";
|
|
@@ -54,20 +54,20 @@ import "construct-style-sheets-polyfill";
|
|
|
54
54
|
import { elementResizer as os } from "../element-resizer/index.js";
|
|
55
55
|
import { s as xi } from "../gestures-CcXV6fCp.js";
|
|
56
56
|
import { b as Li } from "../dom-CVWzyXPH.js";
|
|
57
|
-
var p, Re, E, us, as,
|
|
57
|
+
var p, Re, E, us, as, pe, bt, $t, be, Bt, Fe;
|
|
58
58
|
class ki {
|
|
59
59
|
constructor(n, e, s) {
|
|
60
|
-
i(this,
|
|
60
|
+
i(this, Bt);
|
|
61
61
|
i(this, p);
|
|
62
62
|
i(this, Re);
|
|
63
63
|
i(this, E);
|
|
64
64
|
i(this, us, 0);
|
|
65
65
|
i(this, as, 0);
|
|
66
|
-
i(this, fe, 0);
|
|
67
|
-
i(this, bt, 0);
|
|
68
|
-
i(this, Ot, null);
|
|
69
66
|
i(this, pe, 0);
|
|
70
|
-
|
|
67
|
+
i(this, bt, 0);
|
|
68
|
+
i(this, $t, null);
|
|
69
|
+
i(this, be, 0);
|
|
70
|
+
r(this, p, n), r(this, Re, e), r(this, E, s), ce.register(t(this, p)), this.setIndex(t(this, Re));
|
|
71
71
|
}
|
|
72
72
|
get element() {
|
|
73
73
|
return t(this, p);
|
|
@@ -76,7 +76,7 @@ class ki {
|
|
|
76
76
|
return t(this, Re);
|
|
77
77
|
}
|
|
78
78
|
get size() {
|
|
79
|
-
return t(this,
|
|
79
|
+
return t(this, pe);
|
|
80
80
|
}
|
|
81
81
|
get width() {
|
|
82
82
|
return t(this, us);
|
|
@@ -88,10 +88,10 @@ class ki {
|
|
|
88
88
|
return t(this, bt);
|
|
89
89
|
}
|
|
90
90
|
get transformPosition() {
|
|
91
|
-
return t(this,
|
|
91
|
+
return t(this, be);
|
|
92
92
|
}
|
|
93
93
|
destroy() {
|
|
94
|
-
|
|
94
|
+
ce.unregister(t(this, p)), this.unsetTransform();
|
|
95
95
|
}
|
|
96
96
|
unsetTransform() {
|
|
97
97
|
t(this, p).style.transform = "", this.setMark(null), this.setIndex(null), this.setCurrentIndex(null), this.setCurrentIndexArc(null), this.setCurrentIndexArcAbs(null), this.setOffsetIndex(null), this.setMiddle(!1), this.setSize();
|
|
@@ -100,25 +100,25 @@ class ki {
|
|
|
100
100
|
n ? (t(this, p).style.setProperty("--size", n + "px"), t(this, E).axisCSSProperty.current === "x" ? (t(this, p).style.width = n + "px", t(this, p).style.height = "") : (t(this, p).style.height = n + "px", t(this, p).style.width = "")) : (t(this, p).style.width = "", t(this, p).style.height = "", t(this, p).style.removeProperty("--size"));
|
|
101
101
|
}
|
|
102
102
|
resize() {
|
|
103
|
-
r(this, us, t(this, p).offsetWidth), r(this, as, t(this, p).offsetHeight), r(this,
|
|
103
|
+
r(this, us, t(this, p).offsetWidth), r(this, as, t(this, p).offsetHeight), r(this, pe, t(this, E).vertical ? t(this, p).offsetHeight : t(this, p).offsetWidth), r(this, bt, t(this, E).vertical ? ls(t(this, p)) : cs(t(this, p))), 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, pe) <= t(this, E).currentScrollValue - n / 2 && (e = (t(this, E).distance - n) * -1 - t(this, E).gap), ce.update(
|
|
110
110
|
t(this, p),
|
|
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, pe) + s, v = Si(js(h, u, g), 3);
|
|
115
|
+
r(this, be, v * -1), t(this, E).vertical ? t(this, p).style.transform = `translate3d(0px, ${t(this, be)}px, 0px)` : t(this, p).style.transform = `translate3d(${t(this, be)}px, 0px, 0px)`;
|
|
116
116
|
}
|
|
117
117
|
setMark(n) {
|
|
118
|
-
t(this,
|
|
118
|
+
t(this, $t) !== n && (t(this, $t) && t(this, p).classList.remove(t(this, $t)), n && t(this, p).classList.add(n), r(this, $t, n), st(t(this, p), "scrollSectionMarkChange", {
|
|
119
119
|
composed: !0,
|
|
120
120
|
detail: {
|
|
121
|
-
mark: t(this,
|
|
121
|
+
mark: t(this, $t)
|
|
122
122
|
},
|
|
123
123
|
custom: !0
|
|
124
124
|
}));
|
|
@@ -127,22 +127,22 @@ class ki {
|
|
|
127
127
|
t(this, p).classList.toggle("middle", n);
|
|
128
128
|
}
|
|
129
129
|
setIndex(n) {
|
|
130
|
-
o(this,
|
|
130
|
+
o(this, Bt, Fe).call(this, "index", n);
|
|
131
131
|
}
|
|
132
132
|
setCurrentIndex(n) {
|
|
133
|
-
o(this,
|
|
133
|
+
o(this, Bt, Fe).call(this, "current-index", n);
|
|
134
134
|
}
|
|
135
135
|
setCurrentIndexArc(n) {
|
|
136
|
-
o(this,
|
|
136
|
+
o(this, Bt, Fe).call(this, "current-index-arc", n);
|
|
137
137
|
}
|
|
138
138
|
setOffsetIndex(n) {
|
|
139
|
-
o(this,
|
|
139
|
+
o(this, Bt, Fe).call(this, "offset-index", n);
|
|
140
140
|
}
|
|
141
141
|
setCurrentIndexArcAbs(n) {
|
|
142
|
-
o(this,
|
|
142
|
+
o(this, Bt, Fe).call(this, "current-index-arc-abs", n);
|
|
143
143
|
}
|
|
144
144
|
}
|
|
145
|
-
p = new WeakMap(), Re = new WeakMap(), E = new WeakMap(), us = new WeakMap(), as = new WeakMap(),
|
|
145
|
+
p = new WeakMap(), Re = new WeakMap(), E = new WeakMap(), us = new WeakMap(), as = new WeakMap(), pe = new WeakMap(), bt = new WeakMap(), $t = new WeakMap(), be = new WeakMap(), Bt = new WeakSet(), Fe = function(n, e) {
|
|
146
146
|
e !== null ? (t(this, p).style.setProperty(`--${n}`, e.toString()), t(this, p).setAttribute(`data-${n}`, e.toString())) : (t(this, p).style.removeProperty(`--${n}`), t(this, p).removeAttribute(`data-${n}`));
|
|
147
147
|
};
|
|
148
148
|
const Vi = Js({
|
|
@@ -184,61 +184,61 @@ const Vi = Js({
|
|
|
184
184
|
flexShrink: "0"
|
|
185
185
|
}
|
|
186
186
|
});
|
|
187
|
-
var f,
|
|
187
|
+
var f, me, D, Wt, mt, St, gt, J, Nt, qt, vt, Gt, Se, Q, V, ge, ve, ye, Ce, De, Pe, X, Ee, Ut, Y, yt, Ct, we, Kt, xe, Le, Zt, jt, Jt, b, Oe, G, a, ds, fs, L, P, U, it, Qt, rt, F, z, He, Pt, Et, wt, K, $e, xt, Xt, Lt, ht, A, Be, kt, ke, We, c, Is, hs, Te, Es, ws, Ms, Fs, T, ps, Ys, Ne, bs, Ts, Rs, de, _s, ms, ns, qe;
|
|
188
188
|
class As extends HTMLElement {
|
|
189
189
|
constructor() {
|
|
190
190
|
super();
|
|
191
191
|
i(this, c);
|
|
192
192
|
i(this, f, null);
|
|
193
|
-
i(this,
|
|
193
|
+
i(this, me, new l(this, "--controls", !0));
|
|
194
194
|
i(this, D, new l(this, "--axis", "y"));
|
|
195
|
-
i(this,
|
|
195
|
+
i(this, Wt, new l(this, "--reverse", !1));
|
|
196
196
|
i(this, mt, new l(this, "--direction", 0));
|
|
197
197
|
i(this, St, new l(this, "--pages", 0, {
|
|
198
198
|
validate: (e) => Math.max(0, e - 1)
|
|
199
199
|
}));
|
|
200
200
|
i(this, gt, new l(this, "--split", !1));
|
|
201
201
|
i(this, J, new l(this, "--sectional", !1));
|
|
202
|
-
i(this,
|
|
202
|
+
i(this, Nt, new l(
|
|
203
203
|
this,
|
|
204
204
|
"--tween-easing",
|
|
205
205
|
!1
|
|
206
206
|
));
|
|
207
|
-
i(this,
|
|
207
|
+
i(this, qt, new l(
|
|
208
208
|
this,
|
|
209
209
|
"--tween-duration",
|
|
210
210
|
!1
|
|
211
211
|
));
|
|
212
212
|
i(this, vt, new l(this, "--auto-size", !1));
|
|
213
|
-
i(this,
|
|
213
|
+
i(this, Gt, new l(
|
|
214
214
|
this,
|
|
215
215
|
"--wheel-max-delta",
|
|
216
216
|
!1
|
|
217
217
|
));
|
|
218
|
-
i(this,
|
|
218
|
+
i(this, Se, new l(this, "--drag-inertion", 1));
|
|
219
219
|
i(this, Q, new l(
|
|
220
220
|
this,
|
|
221
221
|
"--sections-in-view",
|
|
222
222
|
1
|
|
223
223
|
));
|
|
224
224
|
i(this, V, new l(this, "--loop", !1));
|
|
225
|
-
i(this,
|
|
226
|
-
i(this,
|
|
227
|
-
i(this,
|
|
228
|
-
i(this,
|
|
225
|
+
i(this, ge, new l(this, "--damping", 20));
|
|
226
|
+
i(this, ve, new l(this, "--mass", 0));
|
|
227
|
+
i(this, ye, new l(this, "--stiffness", 0));
|
|
228
|
+
i(this, Ce, new l(this, "--mouse-drag", !1));
|
|
229
229
|
i(this, De, new l(
|
|
230
230
|
this,
|
|
231
231
|
"--section-distance-scale",
|
|
232
232
|
0.5
|
|
233
233
|
));
|
|
234
|
-
i(this,
|
|
234
|
+
i(this, Pe, new l(this, "--start-section", 0));
|
|
235
235
|
i(this, X, new l(this, "--autoplay", 0));
|
|
236
|
-
i(this,
|
|
236
|
+
i(this, Ee, new l(
|
|
237
237
|
this,
|
|
238
238
|
"--autoplay-pause-duration",
|
|
239
239
|
0
|
|
240
240
|
));
|
|
241
|
-
i(this,
|
|
241
|
+
i(this, Ut, new l(
|
|
242
242
|
this,
|
|
243
243
|
"--autoplay-user-direction",
|
|
244
244
|
!1
|
|
@@ -254,22 +254,22 @@ class As extends HTMLElement {
|
|
|
254
254
|
"--current-index-end-offset",
|
|
255
255
|
0
|
|
256
256
|
));
|
|
257
|
-
i(this,
|
|
257
|
+
i(this, we, new l(
|
|
258
258
|
this,
|
|
259
259
|
"--shift-section-position",
|
|
260
260
|
0,
|
|
261
261
|
{ rawValueCheck: !1 }
|
|
262
262
|
));
|
|
263
|
-
i(this,
|
|
264
|
-
i(this,
|
|
263
|
+
i(this, Kt, new l(this, "--focus-delay", 0));
|
|
264
|
+
i(this, xe, new l(
|
|
265
265
|
this,
|
|
266
266
|
"--focus-duration",
|
|
267
267
|
3e3
|
|
268
268
|
));
|
|
269
|
-
i(this,
|
|
270
|
-
i(this,
|
|
271
|
-
i(this,
|
|
272
|
-
i(this,
|
|
269
|
+
i(this, Le, new l(this, "--shift-limit", 0));
|
|
270
|
+
i(this, Zt, new l(this, "--disabled", !1));
|
|
271
|
+
i(this, jt, new l(this, "--hibernate", !1));
|
|
272
|
+
i(this, Jt, null);
|
|
273
273
|
i(this, b, null);
|
|
274
274
|
i(this, Oe, null);
|
|
275
275
|
i(this, G, []);
|
|
@@ -280,23 +280,23 @@ class As extends HTMLElement {
|
|
|
280
280
|
i(this, P, 0);
|
|
281
281
|
i(this, U, 0);
|
|
282
282
|
i(this, it, null);
|
|
283
|
-
i(this,
|
|
283
|
+
i(this, Qt, null);
|
|
284
284
|
i(this, rt, null);
|
|
285
285
|
i(this, F, null);
|
|
286
|
-
i(this, z, new
|
|
286
|
+
i(this, z, new ae(0));
|
|
287
287
|
i(this, He, 0);
|
|
288
288
|
i(this, Pt, 0);
|
|
289
289
|
i(this, Et, !1);
|
|
290
290
|
i(this, wt, !0);
|
|
291
291
|
i(this, K, !0);
|
|
292
292
|
i(this, $e);
|
|
293
|
-
i(this,
|
|
294
|
-
i(this,
|
|
295
|
-
i(this,
|
|
293
|
+
i(this, xt);
|
|
294
|
+
i(this, Xt, new vi());
|
|
295
|
+
i(this, Lt, !1);
|
|
296
296
|
i(this, ht, null);
|
|
297
297
|
i(this, A, !1);
|
|
298
298
|
i(this, Be, null);
|
|
299
|
-
i(this,
|
|
299
|
+
i(this, kt, []);
|
|
300
300
|
i(this, ke, !1);
|
|
301
301
|
i(this, We);
|
|
302
302
|
i(this, T, (e) => {
|
|
@@ -313,55 +313,51 @@ class As extends HTMLElement {
|
|
|
313
313
|
if (r(this, He, Math.max(0, e - t(this, P))), t(this, a).length) {
|
|
314
314
|
for (let s = 0; s < t(this, G).length; s++)
|
|
315
315
|
t(this, G)[s].transform();
|
|
316
|
-
t(this, J).current
|
|
316
|
+
(t(this, Lt) || !t(this, J).current) && (t(this, z).current = o(this, c, ns).call(this));
|
|
317
317
|
} else
|
|
318
318
|
this.vertical ? t(this, b).style.transform = `translate3d(0px, ${e * -1}px, 0px)` : t(this, b).style.transform = `translate3d(${e * -1}px, 0px, 0px)`;
|
|
319
|
-
o(this, c, _s).call(this),
|
|
319
|
+
o(this, c, _s).call(this), ce.update(
|
|
320
320
|
this,
|
|
321
321
|
t(this, D).current,
|
|
322
322
|
e
|
|
323
323
|
);
|
|
324
324
|
});
|
|
325
325
|
i(this, Ne, (e, s) => {
|
|
326
|
-
t(this,
|
|
326
|
+
t(this, me).current && (o(this, c, Ts).call(this, Math.sign(s) || 1), t(this, bs).call(this, e, s));
|
|
327
327
|
});
|
|
328
328
|
i(this, bs, (e, s) => {
|
|
329
|
-
if (!t(this,
|
|
329
|
+
if (!t(this, xt)) {
|
|
330
330
|
if (t(this, mt).current) {
|
|
331
331
|
if (t(this, mt).current < 0 && s > 0)
|
|
332
332
|
return;
|
|
333
333
|
if (t(this, mt).current > 0 && s < 0)
|
|
334
334
|
return;
|
|
335
335
|
}
|
|
336
|
-
if (!t(this, X).current && t(this,
|
|
336
|
+
if (!t(this, X).current && t(this, Kt).current && (clearInterval(t(this, $e)), r(this, $e, setTimeout(() => {
|
|
337
337
|
const h = t(this, a)[o(this, c, ns).call(this)];
|
|
338
338
|
h && this.scrollToSection(h.index, {
|
|
339
339
|
tween: {
|
|
340
|
-
duration: t(this,
|
|
340
|
+
duration: t(this, xe).current,
|
|
341
341
|
easing: fi
|
|
342
342
|
}
|
|
343
343
|
});
|
|
344
|
-
}, t(this,
|
|
344
|
+
}, t(this, Kt).current))), !(e.includes("drag") && !wi.isTouch && !t(this, Ce).current)) {
|
|
345
345
|
if (t(this, J).current && e !== "drag") {
|
|
346
346
|
const h = Math.sign(s);
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
};
|
|
354
|
-
t(this, Le) ? this.scrollToSection(o(this, c, ns).call(this, !0), u) : this.shiftSections(h, u);
|
|
355
|
-
} else
|
|
356
|
-
t(this, f).shift(h * t(this, L));
|
|
347
|
+
t(this, a).length ? t(this, Lt) ? this.scrollToSection(o(this, c, ns).call(this, !0)) : this.shiftSections(h, {
|
|
348
|
+
tween: t(this, Nt).current || t(this, qt).current ? {
|
|
349
|
+
easing: t(this, Nt).current || "easeInOutCubic",
|
|
350
|
+
duration: t(this, qt).current || 500
|
|
351
|
+
} : void 0
|
|
352
|
+
}) : t(this, f).shift(h * t(this, L));
|
|
357
353
|
} else
|
|
358
354
|
t(this, f).shift(s);
|
|
359
|
-
r(this,
|
|
355
|
+
r(this, Lt, e === "drag");
|
|
360
356
|
}
|
|
361
357
|
}
|
|
362
358
|
});
|
|
363
359
|
i(this, ms, xs(() => {
|
|
364
|
-
const e = t(this,
|
|
360
|
+
const e = t(this, kt).reduce((s, h) => {
|
|
365
361
|
const u = this.vertical ? h.width : h.height;
|
|
366
362
|
return u > s ? u : s;
|
|
367
363
|
}, 0);
|
|
@@ -376,7 +372,7 @@ class As extends HTMLElement {
|
|
|
376
372
|
const e = this.attachShadow({ mode: "open" });
|
|
377
373
|
e.adoptedStyleSheets = [Vi];
|
|
378
374
|
const s = document.createElement("div");
|
|
379
|
-
s.className = "static", s.innerHTML = '<slot name="static"></slot>', e.appendChild(s), r(this,
|
|
375
|
+
s.className = "static", s.innerHTML = '<slot name="static"></slot>', e.appendChild(s), r(this, Jt, document.createElement("div")), t(this, Jt).className = "content-wrapper", r(this, b, document.createElement("div")), t(this, b).className = "content", r(this, Oe, document.createElement("slot")), t(this, b).appendChild(t(this, Oe)), t(this, Jt).appendChild(t(this, b)), e.appendChild(t(this, Jt)), r(this, Be, new MutationObserver(
|
|
380
376
|
xs(() => {
|
|
381
377
|
this.tryResplit();
|
|
382
378
|
}, 10)
|
|
@@ -387,13 +383,13 @@ class As extends HTMLElement {
|
|
|
387
383
|
return t(this, f);
|
|
388
384
|
}
|
|
389
385
|
get controlsCSSProperty() {
|
|
390
|
-
return t(this,
|
|
386
|
+
return t(this, me);
|
|
391
387
|
}
|
|
392
388
|
get axisCSSProperty() {
|
|
393
389
|
return t(this, D);
|
|
394
390
|
}
|
|
395
391
|
get reverseCSSProperty() {
|
|
396
|
-
return t(this,
|
|
392
|
+
return t(this, Wt);
|
|
397
393
|
}
|
|
398
394
|
get directionCSSProperty() {
|
|
399
395
|
return t(this, mt);
|
|
@@ -408,19 +404,19 @@ class As extends HTMLElement {
|
|
|
408
404
|
return t(this, J);
|
|
409
405
|
}
|
|
410
406
|
get easingCSSProperty() {
|
|
411
|
-
return t(this,
|
|
407
|
+
return t(this, Nt);
|
|
412
408
|
}
|
|
413
409
|
get durationCSSProperty() {
|
|
414
|
-
return t(this,
|
|
410
|
+
return t(this, qt);
|
|
415
411
|
}
|
|
416
412
|
get autoSizeCSSProperty() {
|
|
417
413
|
return t(this, vt);
|
|
418
414
|
}
|
|
419
415
|
get wheelMaxDeltaCSSProperty() {
|
|
420
|
-
return t(this,
|
|
416
|
+
return t(this, Gt);
|
|
421
417
|
}
|
|
422
418
|
get dragInertionCSSProperty() {
|
|
423
|
-
return t(this,
|
|
419
|
+
return t(this, Se);
|
|
424
420
|
}
|
|
425
421
|
get sectionsInViewCSSProperty() {
|
|
426
422
|
return t(this, Q);
|
|
@@ -429,31 +425,31 @@ class As extends HTMLElement {
|
|
|
429
425
|
return t(this, V);
|
|
430
426
|
}
|
|
431
427
|
get dampingCSSProperty() {
|
|
432
|
-
return t(this,
|
|
428
|
+
return t(this, ge);
|
|
433
429
|
}
|
|
434
430
|
get massCSSProperty() {
|
|
435
|
-
return t(this,
|
|
431
|
+
return t(this, ve);
|
|
436
432
|
}
|
|
437
433
|
get stiffnessCSSProperty() {
|
|
438
|
-
return t(this,
|
|
434
|
+
return t(this, ye);
|
|
439
435
|
}
|
|
440
436
|
get mouseDragCSSProperty() {
|
|
441
|
-
return t(this,
|
|
437
|
+
return t(this, Ce);
|
|
442
438
|
}
|
|
443
439
|
get sectionDistanceScaleCSSProperty() {
|
|
444
440
|
return t(this, De);
|
|
445
441
|
}
|
|
446
442
|
get startSectionCSSProperty() {
|
|
447
|
-
return t(this,
|
|
443
|
+
return t(this, Pe);
|
|
448
444
|
}
|
|
449
445
|
get autoplayCSSProperty() {
|
|
450
446
|
return t(this, X);
|
|
451
447
|
}
|
|
452
448
|
get autoplayPauseDurationCSSProperty() {
|
|
453
|
-
return t(this,
|
|
449
|
+
return t(this, Ee);
|
|
454
450
|
}
|
|
455
451
|
get autoplayUserDirectionCSSProperty() {
|
|
456
|
-
return t(this,
|
|
452
|
+
return t(this, Ut);
|
|
457
453
|
}
|
|
458
454
|
get classesCSSProperty() {
|
|
459
455
|
return t(this, Y);
|
|
@@ -465,22 +461,22 @@ class As extends HTMLElement {
|
|
|
465
461
|
return t(this, Ct);
|
|
466
462
|
}
|
|
467
463
|
get shiftSectionPositionCSSProperty() {
|
|
468
|
-
return t(this,
|
|
464
|
+
return t(this, we);
|
|
469
465
|
}
|
|
470
466
|
get focusDelayCSSProperty() {
|
|
471
|
-
return t(this,
|
|
467
|
+
return t(this, Kt);
|
|
472
468
|
}
|
|
473
469
|
get focusDurationCSSProperty() {
|
|
474
|
-
return t(this,
|
|
470
|
+
return t(this, xe);
|
|
475
471
|
}
|
|
476
472
|
get shiftLimitCSSProperty() {
|
|
477
|
-
return t(this,
|
|
473
|
+
return t(this, Le);
|
|
478
474
|
}
|
|
479
475
|
get disabledCSSProperty() {
|
|
480
|
-
return t(this,
|
|
476
|
+
return t(this, Zt);
|
|
481
477
|
}
|
|
482
478
|
get hibernatedCSSProperty() {
|
|
483
|
-
return t(this,
|
|
479
|
+
return t(this, jt);
|
|
484
480
|
}
|
|
485
481
|
get currentScrollValue() {
|
|
486
482
|
return o(this, c, Rs).call(this, "current");
|
|
@@ -489,7 +485,7 @@ class As extends HTMLElement {
|
|
|
489
485
|
return o(this, c, Rs).call(this, "target");
|
|
490
486
|
}
|
|
491
487
|
get contentWrapperElement() {
|
|
492
|
-
return t(this,
|
|
488
|
+
return t(this, Jt);
|
|
493
489
|
}
|
|
494
490
|
get contentElement() {
|
|
495
491
|
return t(this, b);
|
|
@@ -520,7 +516,7 @@ class As extends HTMLElement {
|
|
|
520
516
|
}
|
|
521
517
|
get limit() {
|
|
522
518
|
return Math.ceil(
|
|
523
|
-
t(this, a).length - t(this, Q).current + t(this,
|
|
519
|
+
t(this, a).length - t(this, Q).current + t(this, Le).current
|
|
524
520
|
);
|
|
525
521
|
}
|
|
526
522
|
get distance() {
|
|
@@ -575,24 +571,24 @@ class As extends HTMLElement {
|
|
|
575
571
|
return this.currentProgress >= u && this.currentProgress <= g;
|
|
576
572
|
}
|
|
577
573
|
scrollToSection(e, s) {
|
|
578
|
-
if (!t(this, a).length || t(this, K))
|
|
574
|
+
if (!t(this, a).length || t(this, K) || t(this, xt))
|
|
579
575
|
return;
|
|
580
576
|
const h = t(this, z).current, u = o(this, c, Ys).call(this, e);
|
|
581
|
-
t(this, z).current = u;
|
|
577
|
+
t(this, Lt) || (t(this, z).current = u);
|
|
582
578
|
const g = t(this, a)[h], v = t(this, a)[u];
|
|
583
579
|
if (g && v) {
|
|
584
580
|
let C = 0;
|
|
585
|
-
const
|
|
581
|
+
const ue = o(this, c, ns).call(this), Me = t(this, a)[ue];
|
|
586
582
|
let rs = Me ? this.targetScrollValue - Me.position : 0;
|
|
587
|
-
t(this, V).current ? u === 0 && h === t(this, a).length - 1 ? (C = t(this, P) + t(this, L) - g.position + t(this, U), t(this,
|
|
583
|
+
t(this, V).current ? u === 0 && h === t(this, a).length - 1 ? (C = t(this, P) + t(this, L) - g.position + t(this, U), t(this, Lt) || (rs = 0)) : u === t(this, a).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 - rs, s);
|
|
588
584
|
}
|
|
589
585
|
}
|
|
590
586
|
shiftSections(e, s) {
|
|
591
587
|
t(this, a).length && this.scrollToSection(t(this, z).current + e, s);
|
|
592
588
|
}
|
|
593
589
|
setPosition(e, s) {
|
|
594
|
-
t(this, K) || (o(this, c, Ts).call(this, Math.sign(e) || 1), s != null && s.tween ? (clearTimeout(t(this,
|
|
595
|
-
r(this,
|
|
590
|
+
t(this, K) || (o(this, c, Ts).call(this, Math.sign(e) || 1), s != null && s.tween ? (clearTimeout(t(this, xt)), t(this, Xt).set(t(this, f).current, { equalize: !0 }), t(this, Xt).set(e, Ks({}, s.tween)), r(this, xt, setTimeout(() => {
|
|
591
|
+
r(this, xt, void 0);
|
|
596
592
|
}, s.tween.duration || 0))) : t(this, f).set(e, {
|
|
597
593
|
equalize: (s == null ? void 0 : s.behaviour) === "instant"
|
|
598
594
|
}));
|
|
@@ -601,7 +597,7 @@ class As extends HTMLElement {
|
|
|
601
597
|
this.setPosition(t(this, f).target + e, s);
|
|
602
598
|
}
|
|
603
599
|
resize() {
|
|
604
|
-
if (t(this,
|
|
600
|
+
if (t(this, jt).current)
|
|
605
601
|
return;
|
|
606
602
|
r(this, a, t(this, G).filter(
|
|
607
603
|
(h) => pi(h.element)
|
|
@@ -649,16 +645,16 @@ class As extends HTMLElement {
|
|
|
649
645
|
t(this, f).set(e * t(this, P), {
|
|
650
646
|
equalize: !0
|
|
651
647
|
});
|
|
652
|
-
r(this, Et, (this.vertical ? t(this, b).offsetHeight : t(this, b).offsetWidth) > t(this, L)), this.classList.toggle("has-overflow", t(this, Et)), t(this, Et) ? t(this,
|
|
648
|
+
r(this, Et, (this.vertical ? t(this, b).offsetHeight : t(this, b).offsetWidth) > t(this, L)), this.classList.toggle("has-overflow", t(this, Et)), t(this, Et) ? t(this, Zt).current || o(this, c, ws).call(this) : o(this, c, Es).call(this), t(this, ms).call(this), st(this, "scrollResize", { custom: !0 }), t(this, f).notify();
|
|
653
649
|
}
|
|
654
650
|
connectedCallback() {
|
|
655
|
-
|
|
651
|
+
ce.register(this), r(this, f, new Xs(0, {
|
|
656
652
|
damping: 0.01,
|
|
657
653
|
min: 0,
|
|
658
654
|
order: Qs.SCROLL
|
|
659
|
-
})), this.setAttribute("tabindex", "0"), r(this, it, new yi({ element: t(this, b) })), t(this, it).changeEvent.subscribe(t(this, Ne)), r(this,
|
|
655
|
+
})), this.setAttribute("tabindex", "0"), r(this, it, new yi({ element: t(this, b) })), t(this, it).changeEvent.subscribe(t(this, Ne)), r(this, Qt, new Ci({
|
|
660
656
|
element: this
|
|
661
|
-
})), t(this,
|
|
657
|
+
})), t(this, Qt).changeEvent.subscribe(
|
|
662
658
|
t(this, Ne)
|
|
663
659
|
), r(this, rt, new Pi({
|
|
664
660
|
element: t(this, b),
|
|
@@ -667,11 +663,11 @@ class As extends HTMLElement {
|
|
|
667
663
|
culling: this
|
|
668
664
|
})), t(this, F).changeEvent.subscribe(t(this, bs)), t(this, D).subscribe(() => {
|
|
669
665
|
o(this, c, Is).call(this);
|
|
670
|
-
}), t(this,
|
|
666
|
+
}), t(this, Wt).subscribe(() => {
|
|
671
667
|
o(this, c, Is).call(this);
|
|
672
|
-
}), t(this,
|
|
668
|
+
}), t(this, Gt).subscribe((e) => {
|
|
673
669
|
t(this, it).axis = e.current ? "max" : t(this, D).current;
|
|
674
|
-
}), t(this,
|
|
670
|
+
}), t(this, Se).subscribe((e) => {
|
|
675
671
|
t(this, rt).inertion = typeof e.current == "number" ? e.current : 1;
|
|
676
672
|
}), t(this, St).subscribe(() => {
|
|
677
673
|
t(this, A) && t(this, T).call(this);
|
|
@@ -682,53 +678,53 @@ class As extends HTMLElement {
|
|
|
682
678
|
}), t(this, vt).subscribe((e) => {
|
|
683
679
|
t(this, A) && (t(this, T).call(this), e.current && !e.previous && !t(this, a).length ? o(this, c, hs).call(this) : !e.current && e.previous && t(this, a).length && o(this, c, Te).call(this));
|
|
684
680
|
}), t(this, Q).subscribe((e) => {
|
|
685
|
-
t(this, A) && (t(this, T).call(this), o(this, c,
|
|
681
|
+
t(this, A) && (t(this, T).call(this), o(this, c, de).call(this));
|
|
686
682
|
}), t(this, V).subscribe((e) => {
|
|
687
683
|
e.current ? (t(this, A) && (t(this, a).length || (t(this, gt).current = !0)), t(this, f).max = 1 / 0, t(this, f).min = -1 / 0) : (r(this, He, 0), t(this, f).max = t(this, P), t(this, f).min = 0), this.classList.toggle("loop", !!e.current);
|
|
688
|
-
}), t(this, Se).subscribe((e) => {
|
|
689
|
-
t(this, f).damping = e.current;
|
|
690
684
|
}), t(this, ge).subscribe((e) => {
|
|
691
|
-
t(this, f).
|
|
685
|
+
t(this, f).damping = e.current;
|
|
692
686
|
}), t(this, ve).subscribe((e) => {
|
|
687
|
+
t(this, f).mass = e.current;
|
|
688
|
+
}), t(this, ye).subscribe((e) => {
|
|
693
689
|
t(this, f).stiffness = e.current;
|
|
694
690
|
}), t(this, X).subscribe((e) => {
|
|
695
691
|
t(this, F).speed = e.current, !t(this, wt) && e.current && !e.previous ? t(this, F).connect() : !e.current && e.previous && t(this, F).disconnect();
|
|
696
|
-
}), t(this,
|
|
692
|
+
}), t(this, Ut).subscribe((e) => {
|
|
697
693
|
e.current || (t(this, F).direction = 1);
|
|
698
694
|
}), t(this, Y).subscribe((e) => {
|
|
699
|
-
t(this, A) && o(this, c,
|
|
695
|
+
t(this, A) && o(this, c, de).call(this);
|
|
700
696
|
}), t(this, yt).subscribe((e) => {
|
|
701
|
-
t(this, A) && t(this, Y).current && o(this, c,
|
|
697
|
+
t(this, A) && t(this, Y).current && o(this, c, de).call(this);
|
|
702
698
|
}), t(this, Ct).subscribe((e) => {
|
|
703
|
-
t(this, A) && t(this, Y).current && o(this, c,
|
|
704
|
-
}), t(this,
|
|
699
|
+
t(this, A) && t(this, Y).current && o(this, c, de).call(this);
|
|
700
|
+
}), t(this, we).subscribe((e) => {
|
|
705
701
|
t(this, A) && t(this, f).notify();
|
|
706
702
|
}), t(this, f).isRunning.subscribe((e) => {
|
|
707
703
|
this.classList.toggle("active", e.current);
|
|
708
704
|
}), t(this, z).subscribe((e) => {
|
|
709
|
-
t(this, K) || (t(this, a).length && o(this, c,
|
|
710
|
-
}), t(this,
|
|
711
|
-
t(this,
|
|
712
|
-
}), t(this,
|
|
705
|
+
t(this, K) || (t(this, a).length && o(this, c, de).call(this), this.style.setProperty("--counter", e.current + ""));
|
|
706
|
+
}), t(this, Xt).subscribe((e) => {
|
|
707
|
+
t(this, Xt).isRunning.current && t(this, f).set(e.current, { equalize: !0 });
|
|
708
|
+
}), t(this, Zt).subscribe((e) => {
|
|
713
709
|
e.current && !e.previous ? (this.classList.add("disabled"), o(this, c, Es).call(this)) : !e.current && e.previous && (this.classList.remove("disabled"), o(this, c, ws).call(this));
|
|
714
|
-
}), t(this,
|
|
710
|
+
}), t(this, jt).subscribe((e) => {
|
|
715
711
|
e.current && !e.previous ? (this.classList.add("hibernated"), o(this, c, Ms).call(this)) : !e.current && e.previous && (this.classList.remove("hibernated"), o(this, c, Fs).call(this));
|
|
716
|
-
}), t(this,
|
|
712
|
+
}), t(this, me).observe(), t(this, D).observe(), t(this, Wt).observe(), t(this, mt).observe(), t(this, St).observe(), t(this, gt).observe(), t(this, J).observe(), t(this, Nt).observe(), t(this, qt).observe(), t(this, vt).observe(), t(this, Gt).observe(), t(this, Se).observe(), t(this, Q).observe(), t(this, V).observe(), t(this, ge).observe(), t(this, ve).observe(), t(this, ye).observe(), t(this, Ce).observe(), t(this, De).observe(), t(this, Pe).observe(), t(this, X).observe(), t(this, X).observe(), t(this, Ee).observe(), t(this, Ut).observe(), t(this, Y).observe(), t(this, yt).observe(), t(this, Ct).observe(), t(this, we).observe(), t(this, Kt).observe(), t(this, xe).observe(), t(this, Le).observe(), t(this, Zt).observe(), t(this, jt).observe(), pt.subscribe(t(this, qe), Ls.LAST), t(this, Be).observe(this, { childList: !0 });
|
|
717
713
|
}
|
|
718
714
|
disconnectedCallback() {
|
|
719
|
-
this.removeAttribute("tabindex"), this.classList.remove("disabled"), this.classList.remove("hibernated"), t(this,
|
|
715
|
+
this.removeAttribute("tabindex"), this.classList.remove("disabled"), this.classList.remove("hibernated"), t(this, me).unobserve(), t(this, D).unobserve(), t(this, Wt).unobserve(), t(this, mt).unobserve(), t(this, St).unobserve(), t(this, gt).unobserve(), t(this, J).unobserve(), t(this, Nt).unobserve(), t(this, qt).unobserve(), t(this, vt).unobserve(), t(this, Gt).unobserve(), t(this, Se).unobserve(), t(this, Q).unobserve(), t(this, V).unobserve(), t(this, ge).unobserve(), t(this, ve).unobserve(), t(this, ye).unobserve(), t(this, Ce).unobserve(), t(this, De).unobserve(), t(this, Pe).unobserve(), t(this, X).unobserve(), t(this, Ee).unobserve(), t(this, Ut).unobserve(), t(this, Y).unobserve(), t(this, yt).unobserve(), t(this, Ct).unobserve(), t(this, we).unobserve(), t(this, Kt).unobserve(), t(this, xe).unobserve(), t(this, Le).unobserve(), t(this, Zt).unobserve(), t(this, jt).unobserve(), pt.unsubscribe(t(this, qe)), pt.unsubscribe(t(this, T)), os.unsubscribe(t(this, T)), o(this, c, Ms).call(this), t(this, Be).disconnect();
|
|
720
716
|
}
|
|
721
717
|
}
|
|
722
|
-
f = new WeakMap(),
|
|
723
|
-
const e = t(this, D).current, s = t(this,
|
|
724
|
-
t(this, b).style.flexDirection = e === "x" ? `row${s}` : `column${s}`, t(this, it).axis = t(this,
|
|
718
|
+
f = new WeakMap(), me = new WeakMap(), D = new WeakMap(), Wt = new WeakMap(), mt = new WeakMap(), St = new WeakMap(), gt = new WeakMap(), J = new WeakMap(), Nt = new WeakMap(), qt = new WeakMap(), vt = new WeakMap(), Gt = new WeakMap(), Se = new WeakMap(), Q = new WeakMap(), V = new WeakMap(), ge = new WeakMap(), ve = new WeakMap(), ye = new WeakMap(), Ce = new WeakMap(), De = new WeakMap(), Pe = new WeakMap(), X = new WeakMap(), Ee = new WeakMap(), Ut = new WeakMap(), Y = new WeakMap(), yt = new WeakMap(), Ct = new WeakMap(), we = new WeakMap(), Kt = new WeakMap(), xe = new WeakMap(), Le = new WeakMap(), Zt = new WeakMap(), jt = new WeakMap(), Jt = new WeakMap(), b = new WeakMap(), Oe = new WeakMap(), G = new WeakMap(), a = new WeakMap(), ds = new WeakMap(), fs = new WeakMap(), L = new WeakMap(), P = new WeakMap(), U = new WeakMap(), it = new WeakMap(), Qt = new WeakMap(), rt = new WeakMap(), F = new WeakMap(), z = new WeakMap(), He = new WeakMap(), Pt = new WeakMap(), Et = new WeakMap(), wt = new WeakMap(), K = new WeakMap(), $e = new WeakMap(), xt = new WeakMap(), Xt = new WeakMap(), Lt = new WeakMap(), ht = new WeakMap(), A = new WeakMap(), Be = new WeakMap(), kt = new WeakMap(), ke = new WeakMap(), We = new WeakMap(), c = new WeakSet(), Is = function() {
|
|
719
|
+
const e = t(this, D).current, s = t(this, Wt).current ? "-reverse" : "";
|
|
720
|
+
t(this, b).style.flexDirection = e === "x" ? `row${s}` : `column${s}`, t(this, it).axis = t(this, Gt).current ? "max" : e, t(this, Qt).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, A) && t(this, T).call(this);
|
|
725
721
|
}, hs = function() {
|
|
726
722
|
o(this, c, Te).call(this), t(this, Oe).assignedElements().forEach((e, s) => {
|
|
727
723
|
e instanceof HTMLElement && e.tagName !== "SCRIPT" && t(this, G).push(new ki(e, s, this));
|
|
728
724
|
}), r(this, a, [...t(this, G)]), t(this, b).style.transform = "", st(this, "scrollSectionsChange", {
|
|
729
725
|
custom: !0,
|
|
730
726
|
composed: !0
|
|
731
|
-
}), t(this, T).call(this), o(this, c,
|
|
727
|
+
}), t(this, T).call(this), o(this, c, de).call(this);
|
|
732
728
|
}, Te = function() {
|
|
733
729
|
t(this, G).forEach((e) => {
|
|
734
730
|
e.destroy();
|
|
@@ -737,32 +733,32 @@ f = new WeakMap(), be = new WeakMap(), D = new WeakMap(), $t = new WeakMap(), mt
|
|
|
737
733
|
composed: !0
|
|
738
734
|
});
|
|
739
735
|
}, Es = function() {
|
|
740
|
-
t(this, wt) || (r(this, wt, !0), t(this, f).unsubscribe(t(this, ps)), t(this, f).unlistenAnimationFrame(), clearInterval(t(this, $e)), clearInterval(t(this,
|
|
736
|
+
t(this, wt) || (r(this, wt, !0), t(this, f).unsubscribe(t(this, ps)), t(this, f).unlistenAnimationFrame(), clearInterval(t(this, $e)), clearInterval(t(this, xt)), t(this, Xt).unlistenAnimationFrame(), t(this, it).disconnect(), t(this, Qt).disconnect(), t(this, rt).disconnect(), t(this, F).disconnect(), t(this, Et) || (this.sections.forEach((e) => {
|
|
741
737
|
e.unsetTransform();
|
|
742
738
|
}), t(this, T).call(this)));
|
|
743
739
|
}, ws = function() {
|
|
744
|
-
t(this, wt) && (r(this, wt, !1), t(this, f).subscribe(t(this, ps), -1e4), t(this, f).notify(), t(this, it).connect(), t(this,
|
|
740
|
+
t(this, wt) && (r(this, wt, !1), t(this, f).subscribe(t(this, ps), -1e4), t(this, f).notify(), t(this, it).connect(), t(this, Qt).connect(), t(this, rt).connect(), t(this, X).current && t(this, F).connect());
|
|
745
741
|
}, Ms = function() {
|
|
746
|
-
t(this, K) || (r(this, K, !0), clearTimeout(t(this, We)), pt.unsubscribe(t(this, T)), o(this, c, Es).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, Te).call(this) : (t(this, z).reset(), t(this, f).reset()),
|
|
742
|
+
t(this, K) || (r(this, K, !0), clearTimeout(t(this, We)), pt.unsubscribe(t(this, T)), o(this, c, Es).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, Te).call(this) : (t(this, z).reset(), t(this, f).reset()), ce.unregister(this));
|
|
747
743
|
}, Fs = function() {
|
|
748
|
-
t(this, K) && (r(this, K, !1),
|
|
744
|
+
t(this, K) && (r(this, K, !1), ce.register(this), this.tryResplit(), o(this, c, ws).call(this), this.scrollToSection(t(this, Pe).current, {
|
|
749
745
|
behaviour: "instant"
|
|
750
746
|
}), pt.subscribe(t(this, T), Ls.SCROLL));
|
|
751
747
|
}, T = new WeakMap(), ps = new WeakMap(), Ys = function(e) {
|
|
752
748
|
let s = t(this, z).current;
|
|
753
749
|
return t(this, V).current ? s = gi(e, t(this, a).length) : s = js(e, 0, this.limit), s;
|
|
754
750
|
}, Ne = new WeakMap(), bs = new WeakMap(), Ts = function(e = 1) {
|
|
755
|
-
t(this,
|
|
756
|
-
t(this,
|
|
751
|
+
t(this, Ut).current && (t(this, F).direction = e), t(this, X).current && t(this, F).pauseAndContinue(
|
|
752
|
+
t(this, Ee).current,
|
|
757
753
|
this.sectionalCSSProperty.current
|
|
758
754
|
);
|
|
759
755
|
}, Rs = function(e = "current") {
|
|
760
756
|
if (t(this, V).current && t(this, a).length) {
|
|
761
|
-
const s = t(this, f)[e] % Math.
|
|
757
|
+
const s = Math.floor(t(this, f)[e]) % Math.floor(t(this, P) + t(this, L) + t(this, U));
|
|
762
758
|
return s < 0 ? t(this, P) + s + t(this, L) + t(this, U) : s;
|
|
763
759
|
} else
|
|
764
760
|
return t(this, f)[e];
|
|
765
|
-
},
|
|
761
|
+
}, de = function() {
|
|
766
762
|
if (t(this, a).length) {
|
|
767
763
|
const e = t(this, z).current + t(this, yt).current;
|
|
768
764
|
if (e === t(this, yt).current ? r(this, ht, "start") : e === this.limit ? r(this, ht, "end") : r(this, ht, null), st(this, "scrollLine", {
|
|
@@ -770,17 +766,17 @@ f = new WeakMap(), be = new WeakMap(), D = new WeakMap(), $t = new WeakMap(), mt
|
|
|
770
766
|
}), t(this, Y).current) {
|
|
771
767
|
this.classList.remove("end", "start"), t(this, ht) && this.classList.add(t(this, ht));
|
|
772
768
|
const s = t(this, Q).current + t(this, Ct).current;
|
|
773
|
-
r(this,
|
|
769
|
+
r(this, kt, []), t(this, a).forEach((h, u) => {
|
|
774
770
|
h.setCurrentIndex(null), h.setCurrentIndexArc(null), h.setCurrentIndexArcAbs(null), h.setMiddle(!1);
|
|
775
771
|
const g = e - this.limit - 1 + t(this, Ct).current, v = e + s, C = this.sections.length - v;
|
|
776
|
-
u >= e && u < v || u <= g ? (h.setMark("current"), t(this,
|
|
772
|
+
u >= e && u < v || u <= g ? (h.setMark("current"), t(this, kt).push(h)) : u >= v && u < v + C / 2 || u <= g + s ? h.setMark("next") : h.setMark("previous");
|
|
777
773
|
}), t(this, ms).call(this);
|
|
778
774
|
}
|
|
779
775
|
}
|
|
780
776
|
}, _s = function() {
|
|
781
777
|
if (t(this, Y).current) {
|
|
782
|
-
const e = Math.floor(t(this,
|
|
783
|
-
t(this,
|
|
778
|
+
const e = Math.floor(t(this, kt).length / 2);
|
|
779
|
+
t(this, kt).sort((s, h) => s.element.getBoundingClientRect().left - h.element.getBoundingClientRect().left), t(this, kt).forEach((s, h) => {
|
|
784
780
|
const u = h - e;
|
|
785
781
|
s.setCurrentIndex(h), s.setCurrentIndexArc(u), s.setCurrentIndexArcAbs(Math.abs(u)), s.setMiddle(h === e);
|
|
786
782
|
}), t(this, a).forEach((s, h) => {
|
|
@@ -794,9 +790,9 @@ f = new WeakMap(), be = new WeakMap(), D = new WeakMap(), $t = new WeakMap(), mt
|
|
|
794
790
|
const g = t(this, f).direction;
|
|
795
791
|
for (let v = 0; v < t(this, a).length; v++) {
|
|
796
792
|
const C = t(this, a)[v];
|
|
797
|
-
let
|
|
793
|
+
let ue = t(this, Lt) ? C.size * g * -1 * 0.4 : 0, Me = C.position;
|
|
798
794
|
this.overscroll && Me === 0 && e && (Me = t(this, Pt));
|
|
799
|
-
let rs = Math.abs(Me +
|
|
795
|
+
let rs = Math.abs(Me + ue - s);
|
|
800
796
|
rs <= h && (h = rs, u = v);
|
|
801
797
|
}
|
|
802
798
|
return u;
|
|
@@ -817,23 +813,23 @@ class is extends HTMLElement {
|
|
|
817
813
|
}
|
|
818
814
|
}
|
|
819
815
|
Ss = new WeakMap();
|
|
820
|
-
var
|
|
816
|
+
var Yt, O, Vt, zt, Ge, Ue, _t, Ke, gs, vs;
|
|
821
817
|
class zi extends is {
|
|
822
818
|
constructor() {
|
|
823
819
|
super();
|
|
824
|
-
i(this,
|
|
820
|
+
i(this, Yt, null);
|
|
825
821
|
i(this, O, null);
|
|
826
|
-
i(this,
|
|
827
|
-
i(this,
|
|
822
|
+
i(this, Vt, !1);
|
|
823
|
+
i(this, zt, 0);
|
|
828
824
|
i(this, Ge, 0);
|
|
829
825
|
i(this, Ue, 0);
|
|
830
|
-
i(this,
|
|
831
|
-
r(this,
|
|
832
|
-
const e = t(this,
|
|
833
|
-
r(this,
|
|
826
|
+
i(this, _t, () => {
|
|
827
|
+
r(this, Vt, this.offsetWidth > this.offsetHeight);
|
|
828
|
+
const e = t(this, Vt) ? this.offsetWidth : this.offsetHeight;
|
|
829
|
+
r(this, zt, e / ((this.scrollElement.scrollSize + this.scrollElement.viewportSize) / e)), r(this, zt, Math.max(t(this, zt), 30)), t(this, Vt) ? (t(this, O).style.width = t(this, zt) + "px", t(this, O).style.height = "100%") : (t(this, O).style.width = "100%", t(this, O).style.height = t(this, zt) + "px"), r(this, Ge, e - t(this, zt)), this.scrollElement.scrollSize <= 0 ? this.style.display = "none" : this.style.display = "", t(this, Ke).call(this);
|
|
834
830
|
});
|
|
835
831
|
i(this, Ke, () => {
|
|
836
|
-
r(this, Ue, this.scrollElement.currentProgress * t(this, Ge)), t(this,
|
|
832
|
+
r(this, Ue, this.scrollElement.currentProgress * t(this, Ge)), t(this, Vt) ? t(this, O).style.transform = `translate3d(${t(this, Ue)}px, 0px, 0px)` : t(this, O).style.transform = `translate3d(0px, ${t(this, Ue)}px, 0px)`;
|
|
837
833
|
});
|
|
838
834
|
i(this, gs, () => {
|
|
839
835
|
this.setAttribute("axis", this.scrollElement.axisCSSProperty.current);
|
|
@@ -841,14 +837,14 @@ class zi extends is {
|
|
|
841
837
|
i(this, vs, (e) => {
|
|
842
838
|
document.documentElement.classList.add("grabbing"), xi(
|
|
843
839
|
(u) => {
|
|
844
|
-
const g = t(this,
|
|
840
|
+
const g = t(this, Vt) ? u.x : u.y, v = this.scrollElement.distance / t(this, Ge), C = (g - h) * v;
|
|
845
841
|
this.scrollElement.setPosition(s + C);
|
|
846
842
|
},
|
|
847
843
|
() => {
|
|
848
844
|
document.documentElement.classList.remove("grabbing");
|
|
849
845
|
}
|
|
850
846
|
);
|
|
851
|
-
const s = this.scrollElement.damped.target, h = t(this,
|
|
847
|
+
const s = this.scrollElement.damped.target, h = t(this, Vt) ? e.x : e.y;
|
|
852
848
|
});
|
|
853
849
|
if (q) {
|
|
854
850
|
const e = this.attachShadow({ mode: "open" });
|
|
@@ -882,7 +878,7 @@ class zi extends is {
|
|
|
882
878
|
touchAction: "none"
|
|
883
879
|
}
|
|
884
880
|
})
|
|
885
|
-
], r(this,
|
|
881
|
+
], r(this, Yt, document.createElement("slot")), t(this, Yt).innerHTML = '<div class="default-thumb"></div>', e.appendChild(t(this, Yt));
|
|
886
882
|
}
|
|
887
883
|
}
|
|
888
884
|
get thumbElement() {
|
|
@@ -890,14 +886,14 @@ class zi extends is {
|
|
|
890
886
|
}
|
|
891
887
|
connectedCallback() {
|
|
892
888
|
super.connectedCallback(), this.setAttribute("drag-dead-zone", "");
|
|
893
|
-
const e = t(this,
|
|
894
|
-
r(this, O, e), t(this, O).addEventListener("pointerdown", t(this, vs)), pt.subscribe(t(this,
|
|
889
|
+
const e = t(this, Yt).assignedElements()[0] || t(this, Yt).firstElementChild;
|
|
890
|
+
r(this, O, e), t(this, O).addEventListener("pointerdown", t(this, vs)), pt.subscribe(t(this, _t), Ls.SCROLL), os.subscribe(this, t(this, _t)), os.subscribe(this.scrollElement, t(this, _t)), this.scrollElement.onScroll(t(this, Ke)), this.scrollElement.axisCSSProperty.subscribe(t(this, gs));
|
|
895
891
|
}
|
|
896
892
|
disconnectedCallback() {
|
|
897
|
-
this.removeAttribute("drag-dead-zone"), this.style.display = "", t(this, O).removeEventListener("pointerdown", t(this, vs)), pt.unsubscribe(t(this,
|
|
893
|
+
this.removeAttribute("drag-dead-zone"), this.style.display = "", t(this, O).removeEventListener("pointerdown", t(this, vs)), pt.unsubscribe(t(this, _t)), os.unsubscribe(t(this, _t)), this.scrollElement.offScroll(t(this, Ke)), this.scrollElement.axisCSSProperty.unsubscribe(t(this, gs));
|
|
898
894
|
}
|
|
899
895
|
}
|
|
900
|
-
|
|
896
|
+
Yt = new WeakMap(), O = new WeakMap(), Vt = new WeakMap(), zt = new WeakMap(), Ge = new WeakMap(), Ue = new WeakMap(), _t = new WeakMap(), Ke = new WeakMap(), gs = new WeakMap(), vs = new WeakMap();
|
|
901
897
|
q && !customElements.get("e-scrollbar") && customElements.define("e-scrollbar", zi);
|
|
902
898
|
var Ze, je, Je;
|
|
903
899
|
class Bs extends is {
|
|
@@ -944,68 +940,68 @@ class Ai extends Bs {
|
|
|
944
940
|
}
|
|
945
941
|
Qe = new WeakMap();
|
|
946
942
|
q && !customElements.get("e-scroll-set-button") && customElements.define("e-scroll-set-button", Ai);
|
|
947
|
-
var
|
|
943
|
+
var At, Xe;
|
|
948
944
|
class Ii extends Bs {
|
|
949
945
|
constructor() {
|
|
950
946
|
super(...arguments);
|
|
951
|
-
i(this,
|
|
947
|
+
i(this, At, new l(this, "--step", 1));
|
|
952
948
|
i(this, Xe, () => {
|
|
953
|
-
this.scrollElement.loopCSSProperty.current ? this.removeAttribute("disabled") : t(this,
|
|
949
|
+
this.scrollElement.loopCSSProperty.current ? this.removeAttribute("disabled") : t(this, At).current > 0 && this.scrollElement.scrollLine === "end" || t(this, At).current < 0 && this.scrollElement.scrollLine === "start" ? this.setAttribute("disabled", "") : this.removeAttribute("disabled");
|
|
954
950
|
});
|
|
955
951
|
}
|
|
956
952
|
handleClick(e) {
|
|
957
|
-
this.scrollElement.shiftSections(t(this,
|
|
953
|
+
this.scrollElement.shiftSections(t(this, At).current, e);
|
|
958
954
|
}
|
|
959
955
|
connectedCallback() {
|
|
960
|
-
super.connectedCallback(), this.scrollElement && (t(this,
|
|
956
|
+
super.connectedCallback(), this.scrollElement && (t(this, At).subscribe(() => {
|
|
961
957
|
t(this, Xe).call(this);
|
|
962
|
-
}), t(this,
|
|
958
|
+
}), t(this, At).observe(), this.scrollElement.addEventListener(
|
|
963
959
|
"scrollLine",
|
|
964
960
|
t(this, Xe)
|
|
965
961
|
), t(this, Xe).call(this));
|
|
966
962
|
}
|
|
967
963
|
disconnectedCallback() {
|
|
968
|
-
super.disconnectedCallback(), t(this,
|
|
964
|
+
super.disconnectedCallback(), t(this, At).close(), this.removeAttribute("disabled");
|
|
969
965
|
}
|
|
970
966
|
}
|
|
971
|
-
|
|
967
|
+
At = new WeakMap(), Xe = new WeakMap();
|
|
972
968
|
q && !customElements.get("e-scroll-step-button") && customElements.define("e-scroll-step-button", Ii);
|
|
973
|
-
var nt,
|
|
969
|
+
var nt, te, Ye, ys, Cs, _e;
|
|
974
970
|
class Mi {
|
|
975
971
|
constructor(n, e, s) {
|
|
976
972
|
i(this, nt, null);
|
|
977
|
-
i(this,
|
|
973
|
+
i(this, te, null);
|
|
978
974
|
i(this, Ye, null);
|
|
979
975
|
i(this, ys, null);
|
|
980
976
|
i(this, Cs, () => {
|
|
981
|
-
t(this,
|
|
977
|
+
t(this, te).scrollToSection(t(this, Ye), {
|
|
982
978
|
behaviour: t(this, ys)
|
|
983
979
|
});
|
|
984
980
|
});
|
|
985
981
|
i(this, _e, () => {
|
|
986
982
|
t(this, nt).classList.toggle(
|
|
987
983
|
"current",
|
|
988
|
-
t(this,
|
|
984
|
+
t(this, te).counter.current === t(this, Ye)
|
|
989
985
|
);
|
|
990
986
|
});
|
|
991
|
-
q && (r(this, nt, document.createElement("button")), t(this, nt).setAttribute("aria-label", `Go to section ${e + 1}`), r(this,
|
|
987
|
+
q && (r(this, nt, document.createElement("button")), t(this, nt).setAttribute("aria-label", `Go to section ${e + 1}`), r(this, te, n), r(this, ys, s), r(this, Ye, e), t(this, nt).addEventListener("click", t(this, Cs)), t(this, te).counter.subscribe(t(this, _e)), t(this, _e).call(this));
|
|
992
988
|
}
|
|
993
989
|
get element() {
|
|
994
990
|
return t(this, nt);
|
|
995
991
|
}
|
|
996
992
|
destroy() {
|
|
997
|
-
t(this, nt).removeEventListener("click", t(this, Cs)), t(this,
|
|
993
|
+
t(this, nt).removeEventListener("click", t(this, Cs)), t(this, te).counter.unsubscribe(t(this, _e)), t(this, nt).remove();
|
|
998
994
|
}
|
|
999
995
|
}
|
|
1000
|
-
nt = new WeakMap(),
|
|
1001
|
-
var Ve,
|
|
996
|
+
nt = new WeakMap(), te = new WeakMap(), Ye = new WeakMap(), ys = new WeakMap(), Cs = new WeakMap(), _e = new WeakMap();
|
|
997
|
+
var Ve, ee, ot;
|
|
1002
998
|
class Fi extends is {
|
|
1003
999
|
constructor() {
|
|
1004
1000
|
super(...arguments);
|
|
1005
1001
|
i(this, Ve, null);
|
|
1006
|
-
i(this,
|
|
1002
|
+
i(this, ee, []);
|
|
1007
1003
|
i(this, ot, xs(() => {
|
|
1008
|
-
t(this,
|
|
1004
|
+
t(this, ee).forEach((s) => s.destroy()), r(this, ee, []);
|
|
1009
1005
|
let e = 0;
|
|
1010
1006
|
this.scrollElement.loopCSSProperty.current ? e = this.scrollElement.visibleSections.length : e = this.scrollElement.visibleSections.length - Math.max(this.scrollElement.sectionsInViewCSSProperty.current - 1, 0);
|
|
1011
1007
|
for (let s = 0; s < e; s++) {
|
|
@@ -1014,7 +1010,7 @@ class Fi extends is {
|
|
|
1014
1010
|
s,
|
|
1015
1011
|
this.getAttribute("behaviour") || "smooth"
|
|
1016
1012
|
);
|
|
1017
|
-
t(this, Ve).appendChild(h.element), t(this,
|
|
1013
|
+
t(this, Ve).appendChild(h.element), t(this, ee).push(h);
|
|
1018
1014
|
}
|
|
1019
1015
|
}, 0));
|
|
1020
1016
|
}
|
|
@@ -1032,34 +1028,34 @@ class Fi extends is {
|
|
|
1032
1028
|
t(this, ot)
|
|
1033
1029
|
), this.scrollElement.sectionsInViewCSSProperty.unsubscribe(
|
|
1034
1030
|
t(this, ot)
|
|
1035
|
-
), this.scrollElement.loopCSSProperty.unsubscribe(t(this, ot)), t(this,
|
|
1031
|
+
), this.scrollElement.loopCSSProperty.unsubscribe(t(this, ot)), t(this, ee).forEach((e) => e.destroy()), r(this, ee, []), t(this, Ve).remove();
|
|
1036
1032
|
}
|
|
1037
1033
|
}
|
|
1038
|
-
Ve = new WeakMap(),
|
|
1034
|
+
Ve = new WeakMap(), ee = new WeakMap(), ot = new WeakMap();
|
|
1039
1035
|
q && !customElements.get("e-scroll-bullet-buttons") && customElements.define("e-scroll-bullet-buttons", Fi);
|
|
1040
|
-
var
|
|
1036
|
+
var se, ie, re, he, It, Mt, Ft, Tt, I, H, $, B, Rt, k, lt, ct, _, Dt, ze, ut, at, dt, w, W, N, tt, et, Z, ts, S, Ot, ne, es, x, ft, R, M, j, Ae, Ht, y, oe, m, ti, ei, si, ii, ri, hi, ss, Ie, Ds, fe, ni, oi, Os;
|
|
1041
1037
|
class Ti extends is {
|
|
1042
1038
|
constructor() {
|
|
1043
1039
|
super(...arguments);
|
|
1044
1040
|
i(this, m);
|
|
1045
|
-
i(this, ee);
|
|
1046
1041
|
i(this, se);
|
|
1047
1042
|
i(this, ie);
|
|
1048
1043
|
i(this, re);
|
|
1049
|
-
i(this,
|
|
1050
|
-
i(this, At);
|
|
1044
|
+
i(this, he);
|
|
1051
1045
|
i(this, It);
|
|
1052
1046
|
i(this, Mt);
|
|
1047
|
+
i(this, Ft);
|
|
1048
|
+
i(this, Tt);
|
|
1053
1049
|
i(this, I);
|
|
1054
1050
|
i(this, H);
|
|
1055
1051
|
i(this, $);
|
|
1056
1052
|
i(this, B);
|
|
1057
|
-
i(this,
|
|
1053
|
+
i(this, Rt);
|
|
1058
1054
|
i(this, k);
|
|
1059
1055
|
i(this, lt);
|
|
1060
1056
|
i(this, ct);
|
|
1061
1057
|
i(this, _);
|
|
1062
|
-
i(this,
|
|
1058
|
+
i(this, Dt);
|
|
1063
1059
|
i(this, ze);
|
|
1064
1060
|
i(this, ut);
|
|
1065
1061
|
i(this, at);
|
|
@@ -1072,8 +1068,8 @@ class Ti extends is {
|
|
|
1072
1068
|
i(this, Z);
|
|
1073
1069
|
i(this, ts);
|
|
1074
1070
|
i(this, S);
|
|
1075
|
-
i(this,
|
|
1076
|
-
i(this,
|
|
1071
|
+
i(this, Ot);
|
|
1072
|
+
i(this, ne);
|
|
1077
1073
|
i(this, es);
|
|
1078
1074
|
i(this, x);
|
|
1079
1075
|
i(this, ft);
|
|
@@ -1081,19 +1077,19 @@ class Ti extends is {
|
|
|
1081
1077
|
i(this, M);
|
|
1082
1078
|
i(this, j);
|
|
1083
1079
|
i(this, Ae);
|
|
1084
|
-
i(this,
|
|
1080
|
+
i(this, Ht);
|
|
1085
1081
|
i(this, y);
|
|
1086
|
-
i(this,
|
|
1082
|
+
i(this, oe);
|
|
1087
1083
|
i(this, ss);
|
|
1088
1084
|
i(this, Ie);
|
|
1089
|
-
r(this,
|
|
1085
|
+
r(this, se, new l(this, "--damping", 20)), r(this, ie, new l(this, "--mass", 0)), r(this, re, new l(this, "--stiffness", 0)), r(this, he, new l(this, "--target", "")), r(this, It, new l(this, "--disabled", !1)), r(this, Mt, new l(
|
|
1090
1086
|
this,
|
|
1091
1087
|
"--distance-offset",
|
|
1092
1088
|
0,
|
|
1093
1089
|
{ rawValueCheck: !1 }
|
|
1094
|
-
)), r(this,
|
|
1090
|
+
)), r(this, Ft, new l(this, "--start-offset", 0, {
|
|
1095
1091
|
rawValueCheck: !1
|
|
1096
|
-
})), r(this,
|
|
1092
|
+
})), r(this, Tt, new l(
|
|
1097
1093
|
this,
|
|
1098
1094
|
"--capture-once",
|
|
1099
1095
|
!1
|
|
@@ -1105,7 +1101,7 @@ class Ti extends is {
|
|
|
1105
1101
|
this,
|
|
1106
1102
|
"--captured-from-finish",
|
|
1107
1103
|
""
|
|
1108
|
-
)), r(this,
|
|
1104
|
+
)), r(this, Rt, new l(
|
|
1109
1105
|
this,
|
|
1110
1106
|
"--released-from-start",
|
|
1111
1107
|
""
|
|
@@ -1117,7 +1113,7 @@ class Ti extends is {
|
|
|
1117
1113
|
this,
|
|
1118
1114
|
"--progress-arc-var",
|
|
1119
1115
|
""
|
|
1120
|
-
)), r(this,
|
|
1116
|
+
)), r(this, Dt, new l(
|
|
1121
1117
|
this,
|
|
1122
1118
|
"--progress-arc-mult",
|
|
1123
1119
|
1
|
|
@@ -1125,15 +1121,15 @@ class Ti extends is {
|
|
|
1125
1121
|
this,
|
|
1126
1122
|
"--animation-var-type",
|
|
1127
1123
|
"target"
|
|
1128
|
-
)), 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
|
|
1129
|
-
r(this,
|
|
1124
|
+
)), 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 ae(!1)), r(this, W, new ae(!1)), r(this, N, new ae(!1)), r(this, tt, new ae(!1)), r(this, et, new ae(!1)), r(this, Z, new ae(!1)), r(this, ts, []), r(this, S, this), r(this, Ot, 0), r(this, ne, 0), r(this, es, 0), r(this, x, new Xs(0, { order: Qs.SEGMENT, min: 0, max: 1 })), r(this, ft, 0), r(this, R, 0), r(this, M, 0), r(this, j, 0), r(this, Ae, !1), r(this, Ht, !1), r(this, y, !0), r(this, oe, !1), this.resize = () => {
|
|
1125
|
+
r(this, ne, this.scrollElement.vertical ? this.offsetHeight : this.offsetWidth), r(this, Ot, this.scrollElement.vertical ? ls(this, this.scrollElement) : cs(this, this.scrollElement));
|
|
1130
1126
|
const e = bi(
|
|
1131
1127
|
this,
|
|
1132
1128
|
this.scrollElement.vertical ? "top" : "left"
|
|
1133
1129
|
);
|
|
1134
|
-
r(this,
|
|
1130
|
+
r(this, Ot, t(this, Ot) - e), r(this, R, this.getStart()), r(this, M, this.getDistance()), r(this, R, t(this, R) + t(this, Ft).current), r(this, M, t(this, M) + t(this, Mt).current), r(this, j, t(this, R) + t(this, M)), 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, R)), this.setVar(t(this, dt).current, t(this, j)), this.setVar(t(this, ut).current, t(this, M)), t(this, x).max = t(this, M), r(this, Ae, !0), t(this, Ie).call(this);
|
|
1135
1131
|
}, this.findAnotherScrollEntries = xs(() => {
|
|
1136
|
-
const e =
|
|
1132
|
+
const e = ce.getAll(this).reverse();
|
|
1137
1133
|
let s = 0;
|
|
1138
1134
|
e.forEach((h, u) => {
|
|
1139
1135
|
h.element === this.scrollElement && (s = u);
|
|
@@ -1145,13 +1141,13 @@ class Ti extends is {
|
|
|
1145
1141
|
});
|
|
1146
1142
|
}
|
|
1147
1143
|
get distanceOffsetCSSProperty() {
|
|
1148
|
-
return t(this,
|
|
1144
|
+
return t(this, Mt);
|
|
1149
1145
|
}
|
|
1150
1146
|
get startOffsetCSSProperty() {
|
|
1151
|
-
return t(this,
|
|
1147
|
+
return t(this, Ft);
|
|
1152
1148
|
}
|
|
1153
1149
|
get captureOnceCSSProperty() {
|
|
1154
|
-
return t(this,
|
|
1150
|
+
return t(this, Tt);
|
|
1155
1151
|
}
|
|
1156
1152
|
get capturedCSSProperty() {
|
|
1157
1153
|
return t(this, I);
|
|
@@ -1166,7 +1162,7 @@ class Ti extends is {
|
|
|
1166
1162
|
return t(this, B);
|
|
1167
1163
|
}
|
|
1168
1164
|
get releasedFromStartCSSProperty() {
|
|
1169
|
-
return t(this,
|
|
1165
|
+
return t(this, Rt);
|
|
1170
1166
|
}
|
|
1171
1167
|
get releasedFromFinishCSSProperty() {
|
|
1172
1168
|
return t(this, k);
|
|
@@ -1181,7 +1177,7 @@ class Ti extends is {
|
|
|
1181
1177
|
return t(this, _);
|
|
1182
1178
|
}
|
|
1183
1179
|
get progressArcMultCSSProperty() {
|
|
1184
|
-
return t(this,
|
|
1180
|
+
return t(this, Dt);
|
|
1185
1181
|
}
|
|
1186
1182
|
get animationVarTypeCSSProperty() {
|
|
1187
1183
|
return t(this, ze);
|
|
@@ -1196,19 +1192,19 @@ class Ti extends is {
|
|
|
1196
1192
|
return t(this, dt);
|
|
1197
1193
|
}
|
|
1198
1194
|
get disabledCSSProperty() {
|
|
1199
|
-
return t(this,
|
|
1195
|
+
return t(this, It);
|
|
1200
1196
|
}
|
|
1201
1197
|
get dampingCSSProperty() {
|
|
1202
|
-
return t(this,
|
|
1198
|
+
return t(this, se);
|
|
1203
1199
|
}
|
|
1204
1200
|
get massCSSProperty() {
|
|
1205
|
-
return t(this,
|
|
1201
|
+
return t(this, ie);
|
|
1206
1202
|
}
|
|
1207
1203
|
get stiffnessCSSProperty() {
|
|
1208
|
-
return t(this,
|
|
1204
|
+
return t(this, re);
|
|
1209
1205
|
}
|
|
1210
1206
|
get targetCSSProperty() {
|
|
1211
|
-
return t(this,
|
|
1207
|
+
return t(this, he);
|
|
1212
1208
|
}
|
|
1213
1209
|
get isCaptured() {
|
|
1214
1210
|
return t(this, w);
|
|
@@ -1229,10 +1225,10 @@ class Ti extends is {
|
|
|
1229
1225
|
return t(this, Z);
|
|
1230
1226
|
}
|
|
1231
1227
|
get directionPosition() {
|
|
1232
|
-
return t(this,
|
|
1228
|
+
return t(this, Ot);
|
|
1233
1229
|
}
|
|
1234
1230
|
get directionSize() {
|
|
1235
|
-
return t(this,
|
|
1231
|
+
return t(this, ne);
|
|
1236
1232
|
}
|
|
1237
1233
|
get passed() {
|
|
1238
1234
|
return t(this, x);
|
|
@@ -1241,7 +1237,7 @@ class Ti extends is {
|
|
|
1241
1237
|
return t(this, ft);
|
|
1242
1238
|
}
|
|
1243
1239
|
get progressArc() {
|
|
1244
|
-
return Math.abs(Math.cos(t(this, ft) * Math.PI)) * t(this,
|
|
1240
|
+
return Math.abs(Math.cos(t(this, ft) * Math.PI)) * t(this, Dt).current;
|
|
1245
1241
|
}
|
|
1246
1242
|
get start() {
|
|
1247
1243
|
return t(this, R);
|
|
@@ -1253,7 +1249,7 @@ class Ti extends is {
|
|
|
1253
1249
|
return t(this, M);
|
|
1254
1250
|
}
|
|
1255
1251
|
get isCapturedOnce() {
|
|
1256
|
-
return t(this,
|
|
1252
|
+
return t(this, Ht);
|
|
1257
1253
|
}
|
|
1258
1254
|
get isDisabled() {
|
|
1259
1255
|
return t(this, y);
|
|
@@ -1264,14 +1260,14 @@ class Ti extends is {
|
|
|
1264
1260
|
e += u.value;
|
|
1265
1261
|
});
|
|
1266
1262
|
const s = e - t(this, R);
|
|
1267
|
-
t(this,
|
|
1263
|
+
t(this, oe) || r(this, oe, t(this, x).previous ? Math.abs(t(this, x).previous - s) > 1e3 : !1), t(this, x).set(s);
|
|
1268
1264
|
const h = Math.round(e);
|
|
1269
1265
|
t(this, w).current && (h >= t(this, R) ? t(this, N).current || o(this, m, si).call(this) : t(this, N).current && !t(this, tt).current && o(this, m, ri).call(this), h < t(this, j) ? t(this, Z).current && !t(this, et).current && o(this, m, ii).call(this) : t(this, N).current && !t(this, Z).current && o(this, m, hi).call(this)), h >= t(this, R) && h < t(this, j) ? t(this, w).current || o(this, m, ti).call(this) : t(this, w).current && (t(this, x).set(
|
|
1270
1266
|
mi(t(this, M) / 2, t(this, x).target, 0, t(this, M))
|
|
1271
|
-
), o(this, m, ei).call(this)), t(this,
|
|
1267
|
+
), o(this, m, ei).call(this)), t(this, Ht) && t(this, Tt).current && (t(this, I).current && t(this, S).classList.add(t(this, I).current), r(this, y, !0));
|
|
1272
1268
|
}
|
|
1273
1269
|
disable() {
|
|
1274
|
-
this.style.cssText = "", r(this,
|
|
1270
|
+
this.style.cssText = "", r(this, Ot, 0), r(this, ne, 0), t(this, x).reset(), r(this, ft, 0), r(this, R, 0), r(this, M, 0), r(this, j, 0), r(this, Ae, !1), t(this, w).current = !1, t(this, W).current = !1, t(this, N).current = !1, t(this, tt).current = !1, t(this, et).current = !1, t(this, Z).current = !1, r(this, Ht, !1), r(this, y, !0), o(this, m, Os).call(this);
|
|
1275
1271
|
}
|
|
1276
1272
|
enable() {
|
|
1277
1273
|
r(this, y, !1);
|
|
@@ -1307,35 +1303,35 @@ class Ti extends is {
|
|
|
1307
1303
|
composed: !0,
|
|
1308
1304
|
custom: !0
|
|
1309
1305
|
});
|
|
1310
|
-
}), t(this,
|
|
1306
|
+
}), t(this, se).observe(), t(this, ie).observe(), t(this, re).observe(), t(this, he).observe(), t(this, It).observe(), t(this, Mt).observe(), t(this, Ft).observe(), t(this, Tt).observe(), t(this, I).observe(), t(this, H).observe(), t(this, $).observe(), t(this, B).observe(), t(this, Rt).observe(), t(this, k).observe(), t(this, lt).observe(), t(this, ct).observe(), t(this, _).observe(), t(this, Dt).observe(), t(this, ze).observe(), t(this, ut).observe(), t(this, at).observe(), t(this, dt).observe();
|
|
1311
1307
|
let e = !1;
|
|
1312
|
-
this.findAnotherScrollEntries(), t(this,
|
|
1308
|
+
this.findAnotherScrollEntries(), t(this, It).current || this.enable(), t(this, se).subscribe((s) => {
|
|
1313
1309
|
t(this, x).damping = s.current;
|
|
1314
|
-
}), t(this, se).subscribe((s) => {
|
|
1315
|
-
t(this, x).mass = s.current;
|
|
1316
1310
|
}), t(this, ie).subscribe((s) => {
|
|
1317
|
-
t(this, x).
|
|
1311
|
+
t(this, x).mass = s.current;
|
|
1318
1312
|
}), t(this, re).subscribe((s) => {
|
|
1313
|
+
t(this, x).stiffness = s.current;
|
|
1314
|
+
}), t(this, he).subscribe((s) => {
|
|
1319
1315
|
s.previous && o(this, m, Os).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);
|
|
1320
|
-
}), t(this,
|
|
1316
|
+
}), t(this, It).subscribe((s) => {
|
|
1321
1317
|
s.current && !s.previous ? this.disable() : !s.current && s.previous && (this.resize(), this.enable());
|
|
1322
|
-
}), t(this,
|
|
1318
|
+
}), t(this, Ft).subscribe(() => {
|
|
1323
1319
|
e && !t(this, y) && this.resize();
|
|
1324
|
-
}), t(this,
|
|
1320
|
+
}), t(this, Mt).subscribe(() => {
|
|
1325
1321
|
e && !t(this, y) && this.resize();
|
|
1326
1322
|
}), t(this, I).subscribe((s) => {
|
|
1327
|
-
o(this, m,
|
|
1323
|
+
o(this, m, fe).call(this, s);
|
|
1328
1324
|
}), t(this, $).subscribe((s) => {
|
|
1329
|
-
o(this, m,
|
|
1325
|
+
o(this, m, fe).call(this, s);
|
|
1330
1326
|
}), t(this, B).subscribe((s) => {
|
|
1331
|
-
o(this, m,
|
|
1327
|
+
o(this, m, fe).call(this, s);
|
|
1332
1328
|
}), t(this, H).subscribe((s) => {
|
|
1333
|
-
o(this, m,
|
|
1334
|
-
}), t(this,
|
|
1335
|
-
o(this, m,
|
|
1329
|
+
o(this, m, fe).call(this, s);
|
|
1330
|
+
}), t(this, Rt).subscribe((s) => {
|
|
1331
|
+
o(this, m, fe).call(this, s);
|
|
1336
1332
|
}), t(this, k).subscribe((s) => {
|
|
1337
|
-
o(this, m,
|
|
1338
|
-
}), t(this,
|
|
1333
|
+
o(this, m, fe).call(this, s);
|
|
1334
|
+
}), t(this, Tt).subscribe((s) => {
|
|
1339
1335
|
t(this, y) || !s.current && s.previous && (this.resize(), this.enable());
|
|
1340
1336
|
}), t(this, lt).subscribe((s) => {
|
|
1341
1337
|
t(this, y) || (this.removeVar(s.previous), this.setVar(s.current, this.passed.current));
|
|
@@ -1343,7 +1339,7 @@ class Ti extends is {
|
|
|
1343
1339
|
t(this, y) || (this.removeVar(s.previous), this.setVar(s.current, t(this, ft)));
|
|
1344
1340
|
}), t(this, _).subscribe((s) => {
|
|
1345
1341
|
t(this, y) || (this.removeVar(s.previous), this.setVar(s.current, this.progressArc));
|
|
1346
|
-
}), t(this,
|
|
1342
|
+
}), t(this, Dt).subscribe((s) => {
|
|
1347
1343
|
t(this, y) || o(this, m, Ds).call(this);
|
|
1348
1344
|
}), t(this, at).subscribe((s) => {
|
|
1349
1345
|
t(this, y) || (this.removeVar(s.previous), this.setVar(s.current, t(this, R)));
|
|
@@ -1352,8 +1348,8 @@ class Ti extends is {
|
|
|
1352
1348
|
}), t(this, ut).subscribe((s) => {
|
|
1353
1349
|
t(this, y) || (this.removeVar(s.previous), this.setVar(s.current, t(this, M)));
|
|
1354
1350
|
}), t(this, x).subscribe((s) => {
|
|
1355
|
-
if (t(this,
|
|
1356
|
-
r(this,
|
|
1351
|
+
if (t(this, oe)) {
|
|
1352
|
+
r(this, oe, !1);
|
|
1357
1353
|
return;
|
|
1358
1354
|
}
|
|
1359
1355
|
o(this, m, Ds).call(this);
|
|
@@ -1366,7 +1362,7 @@ class Ti extends is {
|
|
|
1366
1362
|
pt.unsubscribe(t(this, ss)), this.scrollElement.offScroll(t(this, Ie)), this.scrollElement.removeEventListener(
|
|
1367
1363
|
"scrollSectionsChange",
|
|
1368
1364
|
this.findAnotherScrollEntries
|
|
1369
|
-
), this.scrollElement.removeEventListener("scrollResize", this.resize), t(this,
|
|
1365
|
+
), this.scrollElement.removeEventListener("scrollResize", this.resize), t(this, se).close(), t(this, ie).close(), t(this, re).close(), t(this, he).close(), t(this, It).close(), t(this, Mt).close(), t(this, Ft).close(), t(this, Tt).close(), t(this, I).close(), t(this, H).close(), t(this, $).close(), t(this, B).close(), t(this, Rt).close(), t(this, k).close(), t(this, lt).close(), t(this, ct).close(), t(this, _).close(), t(this, Dt).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, tt).close(), t(this, et).close(), t(this, Z).close(), this.disable(), t(this, x).close();
|
|
1370
1366
|
}
|
|
1371
1367
|
removeVar(e) {
|
|
1372
1368
|
e && t(this, S).style.removeProperty(`--${e}`);
|
|
@@ -1378,20 +1374,20 @@ class Ti extends is {
|
|
|
1378
1374
|
}
|
|
1379
1375
|
}
|
|
1380
1376
|
getDistance() {
|
|
1381
|
-
return t(this,
|
|
1377
|
+
return t(this, ne) + t(this, es);
|
|
1382
1378
|
}
|
|
1383
1379
|
getStart() {
|
|
1384
|
-
return t(this,
|
|
1380
|
+
return t(this, Ot) - t(this, es);
|
|
1385
1381
|
}
|
|
1386
1382
|
}
|
|
1387
|
-
|
|
1388
|
-
t(this, w).current = !0, t(this, W).current = !1, r(this,
|
|
1383
|
+
se = new WeakMap(), ie = new WeakMap(), re = new WeakMap(), he = new WeakMap(), It = new WeakMap(), Mt = new WeakMap(), Ft = new WeakMap(), Tt = new WeakMap(), I = new WeakMap(), H = new WeakMap(), $ = new WeakMap(), B = new WeakMap(), Rt = new WeakMap(), k = new WeakMap(), lt = new WeakMap(), ct = new WeakMap(), _ = new WeakMap(), Dt = new WeakMap(), ze = new WeakMap(), ut = new WeakMap(), at = new WeakMap(), dt = new WeakMap(), w = new WeakMap(), W = new WeakMap(), N = new WeakMap(), tt = new WeakMap(), et = new WeakMap(), Z = new WeakMap(), ts = new WeakMap(), S = new WeakMap(), Ot = new WeakMap(), ne = new WeakMap(), es = new WeakMap(), x = new WeakMap(), ft = new WeakMap(), R = new WeakMap(), M = new WeakMap(), j = new WeakMap(), Ae = new WeakMap(), Ht = new WeakMap(), y = new WeakMap(), oe = new WeakMap(), m = new WeakSet(), ti = function() {
|
|
1384
|
+
t(this, w).current = !0, t(this, W).current = !1, r(this, Ht, !0), t(this, H).current && t(this, S).classList.remove(t(this, H).current), t(this, k).current && t(this, S).classList.remove(
|
|
1389
1385
|
t(this, k).current
|
|
1390
1386
|
), t(this, k).current && t(this, S).classList.remove(
|
|
1391
1387
|
t(this, k).current
|
|
1392
1388
|
), t(this, I).current && t(this, S).classList.add(t(this, I).current);
|
|
1393
1389
|
}, ei = function() {
|
|
1394
|
-
t(this, W).current = !0, t(this, w).current = !1, r(this,
|
|
1390
|
+
t(this, W).current = !0, t(this, w).current = !1, r(this, Ht, !0), t(this, I).current && t(this, S).classList.remove(t(this, I).current), t(this, $).current && t(this, S).classList.remove(
|
|
1395
1391
|
t(this, $).current
|
|
1396
1392
|
), t(this, B).current && t(this, S).classList.remove(
|
|
1397
1393
|
t(this, B).current
|
|
@@ -1415,7 +1411,7 @@ ee = new WeakMap(), se = new WeakMap(), ie = new WeakMap(), re = new WeakMap(),
|
|
|
1415
1411
|
}, ss = new WeakMap(), Ie = new WeakMap(), Ds = function() {
|
|
1416
1412
|
const e = t(this, x)[t(this, ze).current];
|
|
1417
1413
|
this.setVar(t(this, lt).current, e), r(this, ft, e / t(this, M) || 0), this.setVar(t(this, ct).current, t(this, ft)), t(this, _).current && this.setVar(t(this, _).current, this.progressArc);
|
|
1418
|
-
},
|
|
1414
|
+
}, fe = function(e) {
|
|
1419
1415
|
if (t(this, y)) {
|
|
1420
1416
|
e.previous && t(this, S).classList.remove(e.previous), e.current && t(this, S).classList.remove(e.current);
|
|
1421
1417
|
return;
|
|
@@ -1430,7 +1426,7 @@ ee = new WeakMap(), se = new WeakMap(), ie = new WeakMap(), re = new WeakMap(),
|
|
|
1430
1426
|
s && t(this, S).style.removeProperty(`--${s}`);
|
|
1431
1427
|
});
|
|
1432
1428
|
}, Os = function() {
|
|
1433
|
-
o(this, m, ni).call(this, t(this, I).current, t(this, $).current, t(this, B).current, t(this, H).current, t(this,
|
|
1429
|
+
o(this, m, ni).call(this, t(this, I).current, t(this, $).current, t(this, B).current, t(this, H).current, t(this, Rt).current, t(this, k).current), o(this, m, oi).call(this, t(this, lt).current, t(this, ct).current, t(this, _).current, t(this, ut).current, t(this, at).current, t(this, dt).current);
|
|
1434
1430
|
};
|
|
1435
1431
|
q && !customElements.get("e-scroll-segment") && customElements.define("e-scroll-segment", Ti);
|
|
1436
1432
|
class Ri extends Bs {
|
|
@@ -1469,11 +1465,11 @@ const Ws = class Ws extends is {
|
|
|
1469
1465
|
Ps = new WeakMap();
|
|
1470
1466
|
let Hs = Ws;
|
|
1471
1467
|
q && !customElements.get("e-scroll-counter") && customElements.define("e-scroll-counter", Hs);
|
|
1472
|
-
var
|
|
1468
|
+
var le;
|
|
1473
1469
|
const Ns = class Ns extends is {
|
|
1474
1470
|
constructor() {
|
|
1475
1471
|
super(...arguments);
|
|
1476
|
-
i(this,
|
|
1472
|
+
i(this, le, () => {
|
|
1477
1473
|
const e = this.scrollElement.limit + 1, s = parseInt(this.getAttribute("pad") || "0");
|
|
1478
1474
|
this.textContent = e.toString().padStart(s, "0");
|
|
1479
1475
|
});
|
|
@@ -1481,23 +1477,23 @@ const Ns = class Ns extends is {
|
|
|
1481
1477
|
connectedCallback() {
|
|
1482
1478
|
return zs(this, null, function* () {
|
|
1483
1479
|
Vs(Ns.prototype, this, "connectedCallback").call(this), this.scrollElement.sectionsInViewCSSProperty.subscribe(
|
|
1484
|
-
t(this,
|
|
1480
|
+
t(this, le)
|
|
1485
1481
|
), this.scrollElement.addEventListener(
|
|
1486
1482
|
"scrollSectionsChange",
|
|
1487
|
-
t(this,
|
|
1488
|
-
), t(this,
|
|
1483
|
+
t(this, le)
|
|
1484
|
+
), t(this, le).call(this);
|
|
1489
1485
|
});
|
|
1490
1486
|
}
|
|
1491
1487
|
disconnectedCallback() {
|
|
1492
1488
|
this.scrollElement.sectionsInViewCSSProperty.unsubscribe(
|
|
1493
|
-
t(this,
|
|
1489
|
+
t(this, le)
|
|
1494
1490
|
), this.scrollElement.removeEventListener(
|
|
1495
1491
|
"scrollSectionsChange",
|
|
1496
|
-
t(this,
|
|
1492
|
+
t(this, le)
|
|
1497
1493
|
);
|
|
1498
1494
|
}
|
|
1499
1495
|
};
|
|
1500
|
-
|
|
1496
|
+
le = new WeakMap();
|
|
1501
1497
|
let $s = Ns;
|
|
1502
1498
|
q && !customElements.get("e-scroll-total") && customElements.define("e-scroll-total", $s);
|
|
1503
1499
|
export {
|