aptechka 0.5.41 → 0.5.42
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/{Animation-BcWwYyuC.cjs → Animation-DDHjrbtL.cjs} +1 -1
- package/lib/{Animation-BCsZmZbP.js → Animation-Dq_05jlR.js} +1 -1
- package/lib/{Damped-Ct0JVxUB.js → Damped-P4MkCGoY.js} +2 -2
- package/lib/{Damped-C9p_f19T.cjs → Damped-l0mnlhar.cjs} +1 -1
- package/lib/{Tweened-CdEuSQDX.js → Tweened-CwDC2zl8.js} +2 -2
- package/lib/{Tweened-DISO_ORE.cjs → Tweened-DIt9j9B-.cjs} +1 -1
- package/lib/animation/index.cjs +1 -1
- package/lib/animation/index.js +3 -3
- package/lib/controls/index.cjs +1 -1
- package/lib/controls/index.js +118 -110
- package/lib/en3/index.cjs +1 -1
- package/lib/en3/index.js +1 -1
- package/lib/pointer/index.cjs +1 -1
- package/lib/pointer/index.js +1 -1
- package/lib/{polyfills-mNjpy6Nt.js → polyfills-BA-CL_HF.js} +3 -3
- package/lib/polyfills-DHs2SNbz.cjs +1 -0
- package/lib/scroll/ScrollElement.d.ts +16 -5
- package/lib/scroll/index.cjs +1 -1
- package/lib/scroll/index.js +542 -498
- package/lib/utils/index.cjs +1 -1
- package/lib/utils/index.js +1 -1
- package/package.json +1 -1
- package/lib/polyfills-BsJ5md2Q.cjs +0 -1
package/lib/scroll/index.js
CHANGED
|
@@ -1,94 +1,111 @@
|
|
|
1
|
-
var
|
|
1
|
+
var ei = Object.defineProperty;
|
|
2
|
+
var Ps = Object.getOwnPropertySymbols;
|
|
3
|
+
var si = Object.prototype.hasOwnProperty, ii = Object.prototype.propertyIsEnumerable;
|
|
4
|
+
var ks = (e, i, r) => i in e ? ei(e, i, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[i] = r, Ws = (e, i) => {
|
|
5
|
+
for (var r in i || (i = {}))
|
|
6
|
+
si.call(i, r) && ks(e, r, i[r]);
|
|
7
|
+
if (Ps)
|
|
8
|
+
for (var r of Ps(i))
|
|
9
|
+
ii.call(i, r) && ks(e, r, i[r]);
|
|
10
|
+
return e;
|
|
11
|
+
};
|
|
12
|
+
var Ms = (e, i, r) => {
|
|
2
13
|
if (!i.has(e))
|
|
3
14
|
throw TypeError("Cannot " + r);
|
|
4
15
|
};
|
|
5
|
-
var a = (e, i, r) => (
|
|
16
|
+
var a = (e, i, r) => (Ms(e, i, "read from private field"), r ? r.call(e) : i.get(e)), L = (e, i, r) => {
|
|
6
17
|
if (i.has(e))
|
|
7
18
|
throw TypeError("Cannot add the same private member more than once");
|
|
8
19
|
i instanceof WeakSet ? i.add(e) : i.set(e, r);
|
|
9
|
-
},
|
|
10
|
-
import { S as
|
|
11
|
-
import { D as
|
|
12
|
-
import { i as
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
20
|
+
}, $ = (e, i, r, h) => (Ms(e, i, "write to private field"), h ? h.call(e, r) : i.set(e, r), r);
|
|
21
|
+
import { S as yt } from "../Store-BQXXikps.js";
|
|
22
|
+
import { D as ri } from "../Derived-kPJs5JC5.js";
|
|
23
|
+
import { i as ds } from "../browser-0zX67oeU.js";
|
|
24
|
+
import { p as hi } from "../easings-BKi40vHz.js";
|
|
25
|
+
import { a as Ne, g as Ue } from "../layout-HoBT_Da2.js";
|
|
26
|
+
import { c as Ts, s as ni } from "../math-BOBiC4TN.js";
|
|
15
27
|
import "../ticker/index.js";
|
|
16
|
-
import { TICK_ORDER as
|
|
17
|
-
import { D as
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
21
|
-
import {
|
|
22
|
-
import {
|
|
23
|
-
import {
|
|
24
|
-
import {
|
|
25
|
-
import {
|
|
26
|
-
import {
|
|
27
|
-
import {
|
|
28
|
-
import {
|
|
29
|
-
import {
|
|
30
|
-
import {
|
|
31
|
-
import {
|
|
32
|
-
|
|
33
|
-
|
|
28
|
+
import { TICK_ORDER as Is, RESIZE_ORDER as Ss } from "../order/index.js";
|
|
29
|
+
import { D as As } from "../Damped-P4MkCGoY.js";
|
|
30
|
+
import { T as ai } from "../Tweened-CwDC2zl8.js";
|
|
31
|
+
import { WheelControls as oi, KeyboardControls as ci, DragControls as li, AutoplayControls as ui } from "../controls/index.js";
|
|
32
|
+
import { CustomElement as Rs, define as de } from "../custom-element/index.js";
|
|
33
|
+
import { windowResizer as ue } from "../window-resizer/index.js";
|
|
34
|
+
import { scrollEntries as Gt } from "../scroll-entries/index.js";
|
|
35
|
+
import { e as vs, D as es, ay as Ke, p as pi } from "../tags-CMPg9ETZ.js";
|
|
36
|
+
import { c as ms } from "../createStylesheet-DBCEbDjI.js";
|
|
37
|
+
import { cssUnitParser as Es } from "../css-unit-parser/index.js";
|
|
38
|
+
import { CSSProperty as l } from "../css-property/index.js";
|
|
39
|
+
import { d as fi } from "../Viewport-CFFhFKqX.js";
|
|
40
|
+
import { elementResizer as Ze } from "../element-resizer/index.js";
|
|
41
|
+
import { s as di } from "../gestures-D2Fdra_G.js";
|
|
42
|
+
import { aptechkaTheme as xs } from "../theme/index.js";
|
|
43
|
+
import { f as Si } from "../dom-0S_WDL4g.js";
|
|
44
|
+
import { d as Bs } from "../function-C10DGppn.js";
|
|
45
|
+
var vi = Object.defineProperty, mi = Object.getOwnPropertyDescriptor, bi = (e, i, r, h) => {
|
|
46
|
+
for (var n = h > 1 ? void 0 : h ? mi(i, r) : i, p = e.length - 1, d; p >= 0; p--)
|
|
34
47
|
(d = e[p]) && (n = (h ? d(i, r, n) : d(n)) || n);
|
|
35
|
-
return h && n &&
|
|
36
|
-
},
|
|
48
|
+
return h && n && vi(i, r, n), n;
|
|
49
|
+
}, bs = (e, i, r) => {
|
|
37
50
|
if (!i.has(e))
|
|
38
51
|
throw TypeError("Cannot " + r);
|
|
39
|
-
}, t = (e, i, r) => (
|
|
52
|
+
}, t = (e, i, r) => (bs(e, i, "read from private field"), r ? r.call(e) : i.get(e)), o = (e, i, r) => {
|
|
40
53
|
if (i.has(e))
|
|
41
54
|
throw TypeError("Cannot add the same private member more than once");
|
|
42
55
|
i instanceof WeakSet ? i.add(e) : i.set(e, r);
|
|
43
|
-
},
|
|
44
|
-
class
|
|
45
|
-
constructor(i, r) {
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
56
|
+
}, w = (e, i, r, h) => (bs(e, i, "write to private field"), h ? h.call(e, r) : i.set(e, r), r), v = (e, i, r) => (bs(e, i, "access private method"), r), S, Nt, T, it, rt, Y, ht, Pt, kt, J, A, Ut, Kt, Zt, Jt, Se, Q, Qt, Wt, X, Ot, vt, Mt, Xt, Yt, jt, g, Je, u, Le, Ve, M, C, R, j, At, mt, D, P, ve, Et, pe, fe, Pe, ct, ae, ke, Rt, oe, Qe, ws, Xe, gs, ze, ss, $e, is, B, je, rs, Hs, me, Fe, De, hs, lt, Tt, Oe, ns, _, We, y, Ht, et, gt;
|
|
57
|
+
class wi {
|
|
58
|
+
constructor(i, r, h) {
|
|
59
|
+
L(this, _, void 0);
|
|
60
|
+
L(this, We, void 0);
|
|
61
|
+
L(this, y, void 0);
|
|
62
|
+
L(this, Ht, 0);
|
|
63
|
+
L(this, et, 0);
|
|
64
|
+
L(this, gt, null);
|
|
65
|
+
$(this, _, i), $(this, We, r), $(this, y, h), Gt.register(a(this, _));
|
|
66
|
+
}
|
|
67
|
+
get index() {
|
|
68
|
+
return a(this, We);
|
|
52
69
|
}
|
|
53
70
|
get size() {
|
|
54
|
-
return a(this,
|
|
71
|
+
return a(this, Ht);
|
|
55
72
|
}
|
|
56
73
|
get position() {
|
|
57
|
-
return a(this,
|
|
74
|
+
return a(this, et);
|
|
58
75
|
}
|
|
59
76
|
destroy() {
|
|
60
|
-
|
|
77
|
+
Gt.unregister(a(this, _)), a(this, _).style.transform = "", this.mark(null);
|
|
61
78
|
}
|
|
62
79
|
setSize(i) {
|
|
63
|
-
i ? (a(this,
|
|
80
|
+
i ? (a(this, _).style.setProperty("--size", i + "px"), a(this, y).axisCSSProperty.current === "x" ? (a(this, _).style.width = i + "px", a(this, _).style.height = "") : (a(this, _).style.height = i + "px", a(this, _).style.width = "")) : (a(this, _).style.width = "", a(this, _).style.height = "", a(this, _).style.removeProperty("--size"));
|
|
64
81
|
}
|
|
65
82
|
resize() {
|
|
66
|
-
|
|
83
|
+
$(this, Ht, a(this, y).vertical ? a(this, _).offsetHeight : a(this, _).offsetWidth), $(this, et, a(this, y).vertical ? Ne(a(this, _)) : Ue(a(this, _))), $(this, et, a(this, et) - a(this, y).contentPosition);
|
|
67
84
|
}
|
|
68
85
|
transform() {
|
|
69
86
|
let i = 0;
|
|
70
87
|
const r = a(this, y).viewportSize * a(this, y).sectionDistanceScaleCSSProperty.current;
|
|
71
|
-
a(this, y).infiniteCSSProperty.current && a(this, y).overscroll && a(this,
|
|
72
|
-
a(this,
|
|
88
|
+
a(this, y).infiniteCSSProperty.current && a(this, y).overscroll && a(this, et) + a(this, Ht) < a(this, y).currentScrollValue && (i = a(this, y).distance * -1 - a(this, y).gap), Gt.update(
|
|
89
|
+
a(this, _),
|
|
73
90
|
a(this, y).axisCSSProperty.current,
|
|
74
91
|
i
|
|
75
92
|
);
|
|
76
|
-
const h = a(this, y).currentScrollValue + i, n = a(this,
|
|
77
|
-
a(this, y).vertical ? a(this,
|
|
93
|
+
const h = a(this, y).currentScrollValue + i, n = a(this, et) - a(this, y).viewportSize - r, p = a(this, et) + a(this, Ht) + r, d = Ts(h, n, p);
|
|
94
|
+
a(this, y).vertical ? a(this, _).style.transform = `translate3d(0px, ${d * -1}px, 0px)` : a(this, _).style.transform = `translate3d(${d * -1}px, 0px, 0px)`;
|
|
78
95
|
}
|
|
79
96
|
mark(i) {
|
|
80
|
-
a(this,
|
|
97
|
+
a(this, gt) !== i && (a(this, gt) && a(this, _).classList.remove(a(this, gt)), i && a(this, _).classList.add(i), $(this, gt, i), a(this, _).dispatchEvent(
|
|
81
98
|
new CustomEvent("sectionsChange", {
|
|
82
99
|
composed: !0,
|
|
83
100
|
detail: {
|
|
84
|
-
mark: a(this,
|
|
101
|
+
mark: a(this, gt)
|
|
85
102
|
}
|
|
86
103
|
})
|
|
87
104
|
));
|
|
88
105
|
}
|
|
89
106
|
}
|
|
90
|
-
|
|
91
|
-
const
|
|
107
|
+
_ = new WeakMap(), We = new WeakMap(), y = new WeakMap(), Ht = new WeakMap(), et = new WeakMap(), gt = new WeakMap();
|
|
108
|
+
const gi = ms({
|
|
92
109
|
":host": {
|
|
93
110
|
position: "relative",
|
|
94
111
|
width: "100%",
|
|
@@ -121,47 +138,51 @@ const ai = us({
|
|
|
121
138
|
flexShrink: "0"
|
|
122
139
|
}
|
|
123
140
|
});
|
|
124
|
-
let
|
|
141
|
+
let Ye = class extends Rs {
|
|
125
142
|
constructor() {
|
|
126
|
-
super(), o(this,
|
|
143
|
+
super(), o(this, ae), o(this, Rt), o(this, Qe), o(this, Xe), o(this, ze), o(this, $e), o(this, rs), o(this, De), o(this, lt), o(this, Oe), o(this, S, null), o(this, Nt, new l(this, "--controls", !0)), o(this, T, new l(this, "--axis", "y")), o(this, it, new l(this, "--direction", 0)), o(this, rt, new l(this, "--pages", 0, {
|
|
127
144
|
validate: (e) => Math.max(0, e - 1)
|
|
128
|
-
})), o(this,
|
|
145
|
+
})), o(this, Y, new l(this, "--split", !1)), o(this, ht, new l(this, "--sectional", !1)), o(this, Pt, new l(this, "--auto-size", !1)), o(this, kt, new l(
|
|
129
146
|
this,
|
|
130
147
|
"--wheel-max-delta",
|
|
131
148
|
!1
|
|
132
|
-
)), o(this, J, new
|
|
149
|
+
)), o(this, J, new l(
|
|
133
150
|
this,
|
|
134
151
|
"--sections-in-view",
|
|
135
152
|
1
|
|
136
|
-
)), o(this,
|
|
153
|
+
)), o(this, A, new l(this, "--infinite", !1)), o(this, Ut, new l(this, "--damping", 20)), o(this, Kt, new l(this, "--mass", 0)), o(this, Zt, new l(this, "--stiffness", 0)), o(this, Jt, new l(this, "--mouse-drag", !1)), o(this, Se, new l(
|
|
137
154
|
this,
|
|
138
155
|
"--section-distance-scale",
|
|
139
156
|
0.5
|
|
140
|
-
)), o(this,
|
|
157
|
+
)), o(this, Q, new l(this, "--autoplay", 0)), o(this, Qt, new l(
|
|
141
158
|
this,
|
|
142
159
|
"--autoplay-pause-duration",
|
|
143
160
|
0
|
|
144
|
-
)), o(this,
|
|
161
|
+
)), o(this, Wt, new l(
|
|
145
162
|
this,
|
|
146
163
|
"--autoplay-user-direction",
|
|
147
164
|
!1
|
|
148
|
-
)), o(this,
|
|
165
|
+
)), o(this, X, new l(this, "--classes", 0)), o(this, Ot, new l(
|
|
149
166
|
this,
|
|
150
167
|
"--current-index-start-offset",
|
|
151
168
|
0
|
|
152
|
-
)), o(this,
|
|
169
|
+
)), o(this, vt, new l(
|
|
153
170
|
this,
|
|
154
171
|
"--current-index-end-offset",
|
|
155
172
|
0
|
|
156
|
-
)), o(this,
|
|
173
|
+
)), o(this, Mt, new l(this, "--focus-delay", 0)), o(this, Xt, new l(
|
|
174
|
+
this,
|
|
175
|
+
"--focus-duration",
|
|
176
|
+
3e3
|
|
177
|
+
)), o(this, Yt, new l(this, "--disabled", !1)), o(this, jt, new l(this, "--hibernated", !1)), o(this, g, null), o(this, Je, null), o(this, u, []), o(this, Le, 0), o(this, Ve, 0), o(this, M, 0), o(this, C, 0), o(this, R, 0), o(this, j, null), o(this, At, null), o(this, mt, null), o(this, D, null), o(this, P, new yt(0)), o(this, ve, 0), o(this, Et, 0), o(this, pe, !0), o(this, fe, !0), o(this, Pe, void 0), o(this, ct, new ai()), o(this, B, () => {
|
|
157
178
|
t(this, S).unlistenAnimationFrame();
|
|
158
179
|
const e = this.currentScrollValue / t(this, C) || 0, i = t(this, P).current;
|
|
159
|
-
if (
|
|
160
|
-
getComputedStyle(t(this,
|
|
161
|
-
)) :
|
|
162
|
-
getComputedStyle(t(this,
|
|
163
|
-
)), t(this,
|
|
164
|
-
const r = t(this, J).current, h = (t(this, M) - t(this,
|
|
180
|
+
if (w(this, Le, this.vertical ? Ne(this) : Ue(this)), w(this, Ve, this.vertical ? Ne(t(this, g)) : Ue(t(this, g))), w(this, M, this.vertical ? this.offsetHeight : this.offsetWidth), this.vertical ? w(this, R, Es.parse(
|
|
181
|
+
getComputedStyle(t(this, g)).rowGap
|
|
182
|
+
)) : w(this, R, Es.parse(
|
|
183
|
+
getComputedStyle(t(this, g)).columnGap
|
|
184
|
+
)), t(this, Pt).current && t(this, u).length) {
|
|
185
|
+
const r = t(this, J).current, h = (t(this, M) - t(this, R) * (r - 1)) / r;
|
|
165
186
|
t(this, u).forEach((n) => {
|
|
166
187
|
n.setSize(h);
|
|
167
188
|
});
|
|
@@ -171,22 +192,22 @@ let Ue = class extends Vs {
|
|
|
171
192
|
});
|
|
172
193
|
if (t(this, u).forEach((r) => {
|
|
173
194
|
r.resize();
|
|
174
|
-
}), t(this,
|
|
175
|
-
|
|
195
|
+
}), t(this, rt).current) {
|
|
196
|
+
w(this, C, t(this, M) * t(this, rt).current);
|
|
176
197
|
const r = t(this, C) + t(this, M);
|
|
177
|
-
this.vertical ? (t(this,
|
|
198
|
+
this.vertical ? (t(this, g).style.width = r + "px", t(this, g).style.height = "100%") : (t(this, g).style.height = r + "px", t(this, g).style.width = "100%");
|
|
178
199
|
} else
|
|
179
|
-
this.vertical ? (t(this,
|
|
180
|
-
if (!t(this,
|
|
200
|
+
this.vertical ? (t(this, g).style.width = "100%", t(this, g).style.height = "max-content", w(this, C, t(this, g).offsetHeight - t(this, M))) : (t(this, g).style.width = "max-content", t(this, g).style.height = "100%", w(this, C, t(this, g).offsetWidth - t(this, M)));
|
|
201
|
+
if (!t(this, A).current) {
|
|
181
202
|
const r = getComputedStyle(this), h = this.vertical ? parseFloat(r.paddingBlockStart) + parseFloat(r.paddingBlockEnd) : parseFloat(r.paddingInlineStart) + parseFloat(r.paddingInlineEnd);
|
|
182
|
-
|
|
203
|
+
w(this, C, t(this, C) + h), t(this, S).max = t(this, C);
|
|
183
204
|
}
|
|
184
|
-
if (t(this,
|
|
205
|
+
if (t(this, A).current && t(this, u).length) {
|
|
185
206
|
const r = t(this, u)[t(this, u).length - 1], h = r.position + r.size - t(this, M), n = t(this, C) - h;
|
|
186
|
-
|
|
207
|
+
w(this, Et, r.position + r.size + n);
|
|
187
208
|
} else
|
|
188
|
-
|
|
189
|
-
if (t(this,
|
|
209
|
+
w(this, Et, t(this, C));
|
|
210
|
+
if (t(this, ht).current && t(this, u).length) {
|
|
190
211
|
const r = t(this, u)[i];
|
|
191
212
|
t(this, S).set(r.position, {
|
|
192
213
|
equalize: !0
|
|
@@ -195,9 +216,9 @@ let Ue = class extends Vs {
|
|
|
195
216
|
t(this, S).set(e * t(this, C), {
|
|
196
217
|
equalize: !0
|
|
197
218
|
});
|
|
198
|
-
}), o(this,
|
|
219
|
+
}), o(this, je, () => {
|
|
199
220
|
const e = this.currentScrollValue;
|
|
200
|
-
if (
|
|
221
|
+
if (w(this, ve, Math.max(0, e - t(this, C))), t(this, u).length) {
|
|
201
222
|
let i = 0;
|
|
202
223
|
for (let r = 0; r < t(this, u).length; r++) {
|
|
203
224
|
const h = t(this, u)[r];
|
|
@@ -205,189 +226,205 @@ let Ue = class extends Vs {
|
|
|
205
226
|
}
|
|
206
227
|
t(this, P).current = i;
|
|
207
228
|
} else
|
|
208
|
-
this.vertical ? t(this,
|
|
209
|
-
|
|
229
|
+
this.vertical ? t(this, g).style.transform = `translate3d(0px, ${e * -1}px, 0px)` : t(this, g).style.transform = `translate3d(${e * -1}px, 0px, 0px)`;
|
|
230
|
+
Gt.update(
|
|
210
231
|
this,
|
|
211
|
-
t(this,
|
|
232
|
+
t(this, T).current,
|
|
212
233
|
e
|
|
213
234
|
);
|
|
214
|
-
}), o(this,
|
|
215
|
-
t(this,
|
|
216
|
-
t(this,
|
|
217
|
-
), t(this,
|
|
218
|
-
}), o(this,
|
|
219
|
-
if (t(this,
|
|
220
|
-
if (t(this,
|
|
235
|
+
}), o(this, me, (e, i) => {
|
|
236
|
+
t(this, Nt).current && (t(this, Wt).current && (t(this, D).pauseAndContinue(
|
|
237
|
+
t(this, Qt).current
|
|
238
|
+
), t(this, D).direction = Math.sign(i) || 1), t(this, Fe).call(this, e, i));
|
|
239
|
+
}), o(this, Fe, (e, i) => {
|
|
240
|
+
if (t(this, it).current) {
|
|
241
|
+
if (t(this, it).current < 0 && i > 0)
|
|
221
242
|
return;
|
|
222
|
-
if (t(this,
|
|
243
|
+
if (t(this, it).current > 0 && i < 0)
|
|
223
244
|
return;
|
|
224
245
|
}
|
|
225
|
-
if (
|
|
226
|
-
|
|
246
|
+
if (t(this, ct).unlistenAnimationFrame(), !t(this, Q).current && t(this, Mt).current && (clearInterval(t(this, Pe)), w(this, Pe, setTimeout(() => {
|
|
247
|
+
const r = v(this, Oe, ns).call(this);
|
|
248
|
+
r && this.scrollToSection(r.index, {
|
|
249
|
+
tween: {
|
|
250
|
+
duration: t(this, Xt).current,
|
|
251
|
+
easing: hi
|
|
252
|
+
}
|
|
253
|
+
});
|
|
254
|
+
}, t(this, Mt).current))), !(e === "drag" && !fi.isMobile && !t(this, Jt).current))
|
|
255
|
+
if (t(this, ht).current) {
|
|
227
256
|
const r = Math.sign(i);
|
|
228
257
|
t(this, u).length ? this.shiftSections(r) : t(this, S).shift(r * t(this, M));
|
|
229
258
|
} else
|
|
230
259
|
t(this, S).shift(i);
|
|
231
|
-
}),
|
|
260
|
+
}), ds && (w(this, S, new As(0, {
|
|
232
261
|
damping: 0.01,
|
|
233
262
|
min: 0,
|
|
234
|
-
order:
|
|
235
|
-
})), this.openShadow(
|
|
263
|
+
order: Is.SCROLL
|
|
264
|
+
})), this.openShadow(gi), vs(this, {
|
|
236
265
|
tabIndex: 0,
|
|
237
266
|
children: [
|
|
238
|
-
|
|
267
|
+
es({
|
|
239
268
|
class: "static",
|
|
240
|
-
children: [
|
|
269
|
+
children: [Ke({ name: "static" })]
|
|
241
270
|
}),
|
|
242
|
-
|
|
271
|
+
es({
|
|
243
272
|
class: "content",
|
|
244
|
-
children: [
|
|
273
|
+
children: [Ke({ ref: (e) => w(this, Je, e) })],
|
|
245
274
|
style: {
|
|
246
|
-
flexDirection: new
|
|
247
|
-
t(this,
|
|
275
|
+
flexDirection: new ri(
|
|
276
|
+
t(this, T),
|
|
248
277
|
(e) => e === "x" ? "row" : "column"
|
|
249
278
|
)
|
|
250
279
|
},
|
|
251
|
-
ref: (e) =>
|
|
280
|
+
ref: (e) => w(this, g, e)
|
|
252
281
|
})
|
|
253
282
|
]
|
|
254
|
-
}),
|
|
255
|
-
t(this,
|
|
256
|
-
),
|
|
283
|
+
}), w(this, j, new oi({ element: t(this, g) })), t(this, j).changeEvent.subscribe(
|
|
284
|
+
t(this, me)
|
|
285
|
+
), w(this, At, new ci({
|
|
257
286
|
element: this
|
|
258
287
|
})), t(this, At).changeEvent.subscribe(
|
|
259
|
-
t(this,
|
|
260
|
-
),
|
|
261
|
-
t(this,
|
|
262
|
-
}), t(this,
|
|
263
|
-
t(this,
|
|
264
|
-
}), t(this,
|
|
288
|
+
t(this, me)
|
|
289
|
+
), w(this, mt, new li({ element: t(this, g) })), t(this, mt).changeEvent.subscribe(t(this, me)), w(this, D, new ui()), t(this, D).changeEvent.subscribe(t(this, Fe)), t(this, T).subscribe(({ current: e }) => {
|
|
290
|
+
t(this, g).style.flexDirection = e === "x" ? "row" : "column", t(this, j).axis = t(this, kt).current ? "max" : e, t(this, At).dimension = e === "x" ? "width" : "height", t(this, mt).axis = e, e === "x" ? this.style.touchAction = "pan-y" : e === "y" && (this.style.touchAction = "pan-x"), this.isConnected && t(this, B).call(this);
|
|
291
|
+
}), t(this, kt).subscribe((e) => {
|
|
292
|
+
t(this, j).axis = e.current ? "max" : t(this, T).current;
|
|
293
|
+
}), t(this, rt).subscribe(() => {
|
|
265
294
|
this.isConnected && t(this, B).call(this);
|
|
266
|
-
}), t(this,
|
|
267
|
-
this.isConnected && (e ? v(this,
|
|
268
|
-
}), t(this,
|
|
269
|
-
t(this,
|
|
270
|
-
}), t(this,
|
|
271
|
-
this.isConnected && (t(this, B).call(this), e.current && !e.previous && !t(this, u).length ? v(this,
|
|
295
|
+
}), t(this, Y).subscribe(({ current: e }) => {
|
|
296
|
+
this.isConnected && (e ? v(this, ae, ke).call(this) : v(this, Rt, oe).call(this));
|
|
297
|
+
}), t(this, ht).subscribe((e) => {
|
|
298
|
+
t(this, j).debounce = e.current, t(this, mt).swipe = e.current, t(this, D).interval = e.current, this.isConnected && (e.current && !e.previous && !t(this, u).length ? v(this, ae, ke).call(this) : !e.current && e.previous && t(this, u).length && v(this, Rt, oe).call(this));
|
|
299
|
+
}), t(this, Pt).subscribe((e) => {
|
|
300
|
+
this.isConnected && (t(this, B).call(this), e.current && !e.previous && !t(this, u).length ? v(this, ae, ke).call(this) : !e.current && e.previous && t(this, u).length && v(this, Rt, oe).call(this));
|
|
272
301
|
}), t(this, J).subscribe((e) => {
|
|
273
|
-
this.isConnected && (t(this, B).call(this), v(this, lt,
|
|
274
|
-
}), t(this,
|
|
275
|
-
e.current ? (this.isConnected && (t(this, u).length || (t(this,
|
|
276
|
-
}), t(this,
|
|
302
|
+
this.isConnected && (t(this, B).call(this), v(this, lt, Tt).call(this));
|
|
303
|
+
}), t(this, A).subscribe((e) => {
|
|
304
|
+
e.current ? (this.isConnected && (t(this, u).length || (t(this, Y).current = !0)), t(this, u).length && (t(this, S).max = 1 / 0, t(this, S).min = -1 / 0)) : (w(this, ve, 0), t(this, S).max = t(this, C), t(this, S).min = 0);
|
|
305
|
+
}), t(this, Ut).subscribe((e) => {
|
|
277
306
|
t(this, S).damping = e.current;
|
|
278
|
-
}), t(this,
|
|
307
|
+
}), t(this, Kt).subscribe((e) => {
|
|
279
308
|
t(this, S).mass = e.current;
|
|
280
|
-
}), t(this,
|
|
309
|
+
}), t(this, Zt).subscribe((e) => {
|
|
281
310
|
t(this, S).stiffness = e.current;
|
|
282
|
-
}), t(this,
|
|
283
|
-
e.current && !e.previous ? v(this,
|
|
284
|
-
}), t(this,
|
|
285
|
-
e.current && !e.previous ? v(this,
|
|
286
|
-
}), t(this, ot).subscribe((e) => {
|
|
287
|
-
t(this, F).speed = e.current, e.current && !e.previous ? t(this, F).connect() : !e.current && e.previous && t(this, F).disconnect();
|
|
288
|
-
}), t(this, kt).subscribe((e) => {
|
|
289
|
-
e.current || (t(this, F).direction = 1);
|
|
311
|
+
}), t(this, Yt).subscribe((e) => {
|
|
312
|
+
e.current && !e.previous ? v(this, Qe, ws).call(this) : !e.current && e.previous && v(this, Xe, gs).call(this);
|
|
313
|
+
}), t(this, jt).subscribe((e) => {
|
|
314
|
+
e.current && !e.previous ? v(this, ze, ss).call(this) : !e.current && e.previous && v(this, $e, is).call(this);
|
|
290
315
|
}), t(this, Q).subscribe((e) => {
|
|
291
|
-
this.
|
|
292
|
-
}), t(this,
|
|
293
|
-
|
|
294
|
-
}), t(this,
|
|
295
|
-
this.isConnected &&
|
|
316
|
+
t(this, D).speed = e.current, e.current && !e.previous ? t(this, D).connect() : !e.current && e.previous && t(this, D).disconnect();
|
|
317
|
+
}), t(this, Wt).subscribe((e) => {
|
|
318
|
+
e.current || (t(this, D).direction = 1);
|
|
319
|
+
}), t(this, X).subscribe((e) => {
|
|
320
|
+
this.isConnected && v(this, lt, Tt).call(this);
|
|
321
|
+
}), t(this, Ot).subscribe((e) => {
|
|
322
|
+
this.isConnected && t(this, X).current && v(this, lt, Tt).call(this);
|
|
323
|
+
}), t(this, vt).subscribe((e) => {
|
|
324
|
+
this.isConnected && t(this, X).current && v(this, lt, Tt).call(this);
|
|
296
325
|
}), t(this, S).isRunning.subscribe((e) => {
|
|
297
326
|
this.classList.toggle("active", e.current);
|
|
298
327
|
}), t(this, P).subscribe((e) => {
|
|
299
|
-
t(this, u).length && v(this, lt,
|
|
328
|
+
t(this, u).length && v(this, lt, Tt).call(this);
|
|
329
|
+
}), t(this, ct).subscribe((e) => {
|
|
330
|
+
t(this, ct).isRunning.current && t(this, S).set(e.current);
|
|
300
331
|
}));
|
|
301
332
|
}
|
|
302
333
|
get damped() {
|
|
303
334
|
return t(this, S);
|
|
304
335
|
}
|
|
305
336
|
get controlsCSSProperty() {
|
|
306
|
-
return t(this,
|
|
337
|
+
return t(this, Nt);
|
|
307
338
|
}
|
|
308
339
|
get axisCSSProperty() {
|
|
309
|
-
return t(this,
|
|
340
|
+
return t(this, T);
|
|
310
341
|
}
|
|
311
342
|
get directionCSSProperty() {
|
|
312
|
-
return t(this,
|
|
343
|
+
return t(this, it);
|
|
313
344
|
}
|
|
314
345
|
get pagesCSSProperty() {
|
|
315
|
-
return t(this,
|
|
346
|
+
return t(this, rt);
|
|
316
347
|
}
|
|
317
348
|
get splitCSSProperty() {
|
|
318
|
-
return t(this,
|
|
349
|
+
return t(this, Y);
|
|
319
350
|
}
|
|
320
351
|
get sectionalCSSProperty() {
|
|
321
|
-
return t(this,
|
|
352
|
+
return t(this, ht);
|
|
322
353
|
}
|
|
323
354
|
get autoSizeCSSProperty() {
|
|
324
|
-
return t(this,
|
|
355
|
+
return t(this, Pt);
|
|
325
356
|
}
|
|
326
357
|
get wheelMaxDeltaCSSProperty() {
|
|
327
|
-
return t(this,
|
|
358
|
+
return t(this, kt);
|
|
328
359
|
}
|
|
329
360
|
get sectionsInViewCSSProperty() {
|
|
330
361
|
return t(this, J);
|
|
331
362
|
}
|
|
332
363
|
get infiniteCSSProperty() {
|
|
333
|
-
return t(this,
|
|
364
|
+
return t(this, A);
|
|
334
365
|
}
|
|
335
366
|
get dampingCSSProperty() {
|
|
336
|
-
return t(this,
|
|
367
|
+
return t(this, Ut);
|
|
337
368
|
}
|
|
338
369
|
get massCSSProperty() {
|
|
339
|
-
return t(this,
|
|
370
|
+
return t(this, Kt);
|
|
340
371
|
}
|
|
341
372
|
get stiffnessCSSProperty() {
|
|
342
|
-
return t(this,
|
|
373
|
+
return t(this, Zt);
|
|
343
374
|
}
|
|
344
375
|
get mouseDragCSSProperty() {
|
|
345
|
-
return t(this,
|
|
376
|
+
return t(this, Jt);
|
|
346
377
|
}
|
|
347
378
|
get sectionDistanceScaleCSSProperty() {
|
|
348
|
-
return t(this,
|
|
379
|
+
return t(this, Se);
|
|
349
380
|
}
|
|
350
381
|
get autoplayCSSProperty() {
|
|
351
|
-
return t(this,
|
|
382
|
+
return t(this, Q);
|
|
352
383
|
}
|
|
353
384
|
get autoplayPauseDurationCSSProperty() {
|
|
354
|
-
return t(this,
|
|
385
|
+
return t(this, Qt);
|
|
355
386
|
}
|
|
356
387
|
get autoplayUserDirectionCSSProperty() {
|
|
357
|
-
return t(this,
|
|
388
|
+
return t(this, Wt);
|
|
358
389
|
}
|
|
359
390
|
get classesCSSProperty() {
|
|
360
|
-
return t(this,
|
|
391
|
+
return t(this, X);
|
|
361
392
|
}
|
|
362
393
|
get currentIndexStartOffsetCSSProperty() {
|
|
363
|
-
return t(this,
|
|
394
|
+
return t(this, Ot);
|
|
364
395
|
}
|
|
365
396
|
get currentIndexEndOffsetCSSProperty() {
|
|
366
|
-
return t(this,
|
|
397
|
+
return t(this, vt);
|
|
398
|
+
}
|
|
399
|
+
get focusDelayCSSProperty() {
|
|
400
|
+
return t(this, Mt);
|
|
401
|
+
}
|
|
402
|
+
get focusDurationCSSProperty() {
|
|
403
|
+
return t(this, Xt);
|
|
367
404
|
}
|
|
368
405
|
get disabledCSSProperty() {
|
|
369
|
-
return t(this,
|
|
406
|
+
return t(this, Yt);
|
|
370
407
|
}
|
|
371
408
|
get hibernatedCSSProperty() {
|
|
372
|
-
return t(this,
|
|
409
|
+
return t(this, jt);
|
|
373
410
|
}
|
|
374
411
|
get currentScrollValue() {
|
|
375
|
-
return v(this,
|
|
412
|
+
return v(this, De, hs).call(this, "current");
|
|
376
413
|
}
|
|
377
414
|
get targetScrollValue() {
|
|
378
|
-
return v(this,
|
|
415
|
+
return v(this, De, hs).call(this, "target");
|
|
379
416
|
}
|
|
380
417
|
get contentElement() {
|
|
381
|
-
return t(this,
|
|
418
|
+
return t(this, g);
|
|
382
419
|
}
|
|
383
420
|
get sections() {
|
|
384
421
|
return t(this, u);
|
|
385
422
|
}
|
|
386
423
|
get position() {
|
|
387
|
-
return t(this,
|
|
424
|
+
return t(this, Le);
|
|
388
425
|
}
|
|
389
426
|
get contentPosition() {
|
|
390
|
-
return t(this,
|
|
427
|
+
return t(this, Ve);
|
|
391
428
|
}
|
|
392
429
|
get viewportSize() {
|
|
393
430
|
return t(this, M);
|
|
@@ -396,7 +433,7 @@ let Ue = class extends Vs {
|
|
|
396
433
|
return t(this, C);
|
|
397
434
|
}
|
|
398
435
|
get gap() {
|
|
399
|
-
return t(this,
|
|
436
|
+
return t(this, R);
|
|
400
437
|
}
|
|
401
438
|
get counter() {
|
|
402
439
|
return t(this, P);
|
|
@@ -405,16 +442,16 @@ let Ue = class extends Vs {
|
|
|
405
442
|
return t(this, u).length - t(this, J).current;
|
|
406
443
|
}
|
|
407
444
|
get distance() {
|
|
408
|
-
return t(this,
|
|
445
|
+
return t(this, Et);
|
|
409
446
|
}
|
|
410
447
|
get infiniteDistance() {
|
|
411
|
-
return t(this,
|
|
448
|
+
return t(this, A).current ? t(this, Et) + t(this, R) : t(this, Et);
|
|
412
449
|
}
|
|
413
450
|
get overscroll() {
|
|
414
|
-
return t(this,
|
|
451
|
+
return t(this, ve);
|
|
415
452
|
}
|
|
416
453
|
get vertical() {
|
|
417
|
-
return t(this,
|
|
454
|
+
return t(this, T).current === "y";
|
|
418
455
|
}
|
|
419
456
|
get currentProgress() {
|
|
420
457
|
return this.currentScrollValue / this.infiniteDistance || 0;
|
|
@@ -423,10 +460,10 @@ let Ue = class extends Vs {
|
|
|
423
460
|
return this.targetScrollValue / this.infiniteDistance || 0;
|
|
424
461
|
}
|
|
425
462
|
get scrollWidth() {
|
|
426
|
-
return t(this,
|
|
463
|
+
return t(this, T).current === "y" ? 0 : t(this, S).distance;
|
|
427
464
|
}
|
|
428
465
|
get scrollHeight() {
|
|
429
|
-
return t(this,
|
|
466
|
+
return t(this, T).current === "x" ? 0 : t(this, S).distance;
|
|
430
467
|
}
|
|
431
468
|
onScroll(...e) {
|
|
432
469
|
return t(this, S).subscribe(...e);
|
|
@@ -446,142 +483,147 @@ let Ue = class extends Vs {
|
|
|
446
483
|
const h = e - r, n = h + i + r * 2;
|
|
447
484
|
return this.currentProgress >= h && this.currentProgress <= n;
|
|
448
485
|
}
|
|
449
|
-
scrollToSection(e, i
|
|
486
|
+
scrollToSection(e, i) {
|
|
450
487
|
if (!t(this, u).length)
|
|
451
488
|
return;
|
|
452
489
|
const r = t(this, P).current;
|
|
453
|
-
v(this,
|
|
490
|
+
v(this, rs, Hs).call(this, e);
|
|
454
491
|
const h = t(this, u)[r], n = t(this, u)[t(this, P).current];
|
|
455
492
|
if (h && n) {
|
|
456
493
|
let p = 0;
|
|
457
|
-
const d = v(this,
|
|
458
|
-
t(this,
|
|
459
|
-
equalize: i === "instant"
|
|
460
|
-
});
|
|
494
|
+
const d = v(this, Oe, ns).call(this), ti = d ? this.targetScrollValue - d.position : 0;
|
|
495
|
+
t(this, A).current ? t(this, P).current === 0 && r === t(this, u).length - 1 ? p = t(this, C) + t(this, M) - h.position + t(this, R) : t(this, P).current === t(this, u).length - 1 && r === 0 ? p = n.position - (t(this, C) + t(this, M) + t(this, R)) : p = n.position - h.position : p = n.position - h.position, this.shiftPosition(p - ti, i);
|
|
461
496
|
}
|
|
462
497
|
}
|
|
463
|
-
shiftSections(e, i
|
|
498
|
+
shiftSections(e, i) {
|
|
464
499
|
t(this, u).length && this.scrollToSection(t(this, P).current + e, i);
|
|
465
500
|
}
|
|
466
|
-
setPosition(e, i
|
|
467
|
-
t(this, S).set(e, {
|
|
468
|
-
equalize: i === "instant"
|
|
501
|
+
setPosition(e, i) {
|
|
502
|
+
i != null && i.tween ? (t(this, ct).set(t(this, S).current, { equalize: !0 }), t(this, ct).set(e, Ws({}, i.tween))) : t(this, S).set(e, {
|
|
503
|
+
equalize: (i == null ? void 0 : i.behaviour) === "instant"
|
|
469
504
|
});
|
|
470
505
|
}
|
|
506
|
+
shiftPosition(e, i) {
|
|
507
|
+
this.setPosition(t(this, S).target + e, i);
|
|
508
|
+
}
|
|
471
509
|
connectedCallback() {
|
|
472
|
-
t(this,
|
|
510
|
+
t(this, Nt).observe(), t(this, T).observe(), t(this, it).observe(), t(this, rt).observe(), t(this, Y).observe(), t(this, ht).observe(), t(this, Pt).observe(), t(this, kt).observe(), t(this, J).observe(), t(this, A).observe(), t(this, Ut).observe(), t(this, Kt).observe(), t(this, Zt).observe(), t(this, Jt).observe(), t(this, Se).observe(), t(this, Q).observe(), t(this, Q).observe(), t(this, Qt).observe(), t(this, Wt).observe(), t(this, X).observe(), t(this, Ot).observe(), t(this, vt).observe(), t(this, Mt).observe(), t(this, Xt).observe(), t(this, Yt).observe(), t(this, jt).observe(), v(this, $e, is).call(this);
|
|
473
511
|
}
|
|
474
512
|
disconnectedCallback() {
|
|
475
|
-
t(this,
|
|
513
|
+
t(this, Nt).unobserve(), t(this, T).unobserve(), t(this, it).unobserve(), t(this, rt).unobserve(), t(this, Y).unobserve(), t(this, ht).unobserve(), t(this, Pt).unobserve(), t(this, kt).unobserve(), t(this, J).unobserve(), t(this, A).unobserve(), t(this, Ut).unobserve(), t(this, Kt).unobserve(), t(this, Zt).unobserve(), t(this, Jt).unobserve(), t(this, Se).unobserve(), t(this, Q).unobserve(), t(this, Qt).unobserve(), t(this, Wt).unobserve(), t(this, X).unobserve(), t(this, Ot).unobserve(), t(this, vt).unobserve(), t(this, Mt).unobserve(), t(this, Xt).unobserve(), t(this, Yt).unobserve(), t(this, jt).unobserve(), v(this, ze, ss).call(this);
|
|
476
514
|
}
|
|
477
515
|
};
|
|
478
516
|
S = /* @__PURE__ */ new WeakMap();
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
st = /* @__PURE__ */ new WeakMap();
|
|
517
|
+
Nt = /* @__PURE__ */ new WeakMap();
|
|
518
|
+
T = /* @__PURE__ */ new WeakMap();
|
|
482
519
|
it = /* @__PURE__ */ new WeakMap();
|
|
483
|
-
X = /* @__PURE__ */ new WeakMap();
|
|
484
520
|
rt = /* @__PURE__ */ new WeakMap();
|
|
485
|
-
|
|
521
|
+
Y = /* @__PURE__ */ new WeakMap();
|
|
522
|
+
ht = /* @__PURE__ */ new WeakMap();
|
|
486
523
|
Pt = /* @__PURE__ */ new WeakMap();
|
|
524
|
+
kt = /* @__PURE__ */ new WeakMap();
|
|
487
525
|
J = /* @__PURE__ */ new WeakMap();
|
|
488
|
-
|
|
489
|
-
qt = /* @__PURE__ */ new WeakMap();
|
|
490
|
-
Nt = /* @__PURE__ */ new WeakMap();
|
|
526
|
+
A = /* @__PURE__ */ new WeakMap();
|
|
491
527
|
Ut = /* @__PURE__ */ new WeakMap();
|
|
492
528
|
Kt = /* @__PURE__ */ new WeakMap();
|
|
493
|
-
pe = /* @__PURE__ */ new WeakMap();
|
|
494
|
-
ot = /* @__PURE__ */ new WeakMap();
|
|
495
529
|
Zt = /* @__PURE__ */ new WeakMap();
|
|
496
|
-
kt = /* @__PURE__ */ new WeakMap();
|
|
497
|
-
Q = /* @__PURE__ */ new WeakMap();
|
|
498
|
-
Ft = /* @__PURE__ */ new WeakMap();
|
|
499
|
-
St = /* @__PURE__ */ new WeakMap();
|
|
500
530
|
Jt = /* @__PURE__ */ new WeakMap();
|
|
531
|
+
Se = /* @__PURE__ */ new WeakMap();
|
|
532
|
+
Q = /* @__PURE__ */ new WeakMap();
|
|
501
533
|
Qt = /* @__PURE__ */ new WeakMap();
|
|
502
|
-
|
|
503
|
-
|
|
534
|
+
Wt = /* @__PURE__ */ new WeakMap();
|
|
535
|
+
X = /* @__PURE__ */ new WeakMap();
|
|
536
|
+
Ot = /* @__PURE__ */ new WeakMap();
|
|
537
|
+
vt = /* @__PURE__ */ new WeakMap();
|
|
538
|
+
Mt = /* @__PURE__ */ new WeakMap();
|
|
539
|
+
Xt = /* @__PURE__ */ new WeakMap();
|
|
540
|
+
Yt = /* @__PURE__ */ new WeakMap();
|
|
541
|
+
jt = /* @__PURE__ */ new WeakMap();
|
|
542
|
+
g = /* @__PURE__ */ new WeakMap();
|
|
543
|
+
Je = /* @__PURE__ */ new WeakMap();
|
|
504
544
|
u = /* @__PURE__ */ new WeakMap();
|
|
505
|
-
|
|
506
|
-
|
|
545
|
+
Le = /* @__PURE__ */ new WeakMap();
|
|
546
|
+
Ve = /* @__PURE__ */ new WeakMap();
|
|
507
547
|
M = /* @__PURE__ */ new WeakMap();
|
|
508
548
|
C = /* @__PURE__ */ new WeakMap();
|
|
509
|
-
|
|
510
|
-
|
|
549
|
+
R = /* @__PURE__ */ new WeakMap();
|
|
550
|
+
j = /* @__PURE__ */ new WeakMap();
|
|
511
551
|
At = /* @__PURE__ */ new WeakMap();
|
|
512
|
-
|
|
513
|
-
|
|
552
|
+
mt = /* @__PURE__ */ new WeakMap();
|
|
553
|
+
D = /* @__PURE__ */ new WeakMap();
|
|
514
554
|
P = /* @__PURE__ */ new WeakMap();
|
|
555
|
+
ve = /* @__PURE__ */ new WeakMap();
|
|
556
|
+
Et = /* @__PURE__ */ new WeakMap();
|
|
557
|
+
pe = /* @__PURE__ */ new WeakMap();
|
|
515
558
|
fe = /* @__PURE__ */ new WeakMap();
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
}), t(this, w).style.transform = "", this.dispatchEvent(
|
|
559
|
+
Pe = /* @__PURE__ */ new WeakMap();
|
|
560
|
+
ct = /* @__PURE__ */ new WeakMap();
|
|
561
|
+
ae = /* @__PURE__ */ new WeakSet();
|
|
562
|
+
ke = function() {
|
|
563
|
+
v(this, Rt, oe).call(this), t(this, Je).assignedElements().forEach((e, i) => {
|
|
564
|
+
e instanceof HTMLElement && t(this, u).push(new wi(e, i, this));
|
|
565
|
+
}), t(this, g).style.transform = "", this.dispatchEvent(
|
|
524
566
|
new CustomEvent("sectionsChange", {
|
|
525
567
|
composed: !0
|
|
526
568
|
})
|
|
527
|
-
), t(this, B).call(this), v(this, lt,
|
|
569
|
+
), t(this, B).call(this), v(this, lt, Tt).call(this);
|
|
528
570
|
};
|
|
529
|
-
|
|
530
|
-
|
|
571
|
+
Rt = /* @__PURE__ */ new WeakSet();
|
|
572
|
+
oe = function() {
|
|
531
573
|
t(this, u).forEach((e) => {
|
|
532
574
|
e.destroy();
|
|
533
|
-
}),
|
|
575
|
+
}), w(this, u, []), t(this, P).current = 0, t(this, S).reset(), this.dispatchEvent(
|
|
534
576
|
new CustomEvent("sectionsChange", {
|
|
535
577
|
composed: !0
|
|
536
578
|
})
|
|
537
579
|
);
|
|
538
580
|
};
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
t(this,
|
|
581
|
+
Qe = /* @__PURE__ */ new WeakSet();
|
|
582
|
+
ws = function() {
|
|
583
|
+
t(this, pe) || (w(this, pe, !0), t(this, S).unsubscribe(t(this, je)), t(this, S).unlistenAnimationFrame(), t(this, j).disconnect(), t(this, At).disconnect(), t(this, mt).disconnect(), t(this, D).disconnect(), clearInterval(t(this, Pe)), t(this, ct).unlistenAnimationFrame());
|
|
542
584
|
};
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
t(this,
|
|
585
|
+
Xe = /* @__PURE__ */ new WeakSet();
|
|
586
|
+
gs = function() {
|
|
587
|
+
t(this, pe) && (w(this, pe, !1), t(this, S).subscribe(t(this, je)), t(this, j).connect(), t(this, At).connect(), t(this, mt).connect(), t(this, Q).current && t(this, D).connect());
|
|
546
588
|
};
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
t(this,
|
|
589
|
+
ze = /* @__PURE__ */ new WeakSet();
|
|
590
|
+
ss = function() {
|
|
591
|
+
t(this, fe) || (w(this, fe, !0), ue.unsubscribe(t(this, B)), Ze.unsubscribe(t(this, B)), t(this, S).reset(), v(this, Qe, ws).call(this), t(this, g).style.transform = "", t(this, Y).current && v(this, Rt, oe).call(this), Gt.unregister(this));
|
|
550
592
|
};
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
t(this,
|
|
593
|
+
$e = /* @__PURE__ */ new WeakSet();
|
|
594
|
+
is = function() {
|
|
595
|
+
t(this, fe) && (w(this, fe, !1), t(this, Y).current && v(this, ae, ke).call(this), Gt.register(this), ue.subscribe(t(this, B), Ss.SCROLL), Ze.subscribe(this, t(this, B)), v(this, Xe, gs).call(this));
|
|
554
596
|
};
|
|
555
597
|
B = /* @__PURE__ */ new WeakMap();
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
t(this,
|
|
598
|
+
je = /* @__PURE__ */ new WeakMap();
|
|
599
|
+
rs = /* @__PURE__ */ new WeakSet();
|
|
600
|
+
Hs = function(e) {
|
|
601
|
+
t(this, A).current ? (t(this, P).current = e % t(this, u).length, t(this, P).current = t(this, P).current < 0 ? t(this, u).length + t(this, P).current : t(this, P).current) : t(this, P).current = Ts(e, 0, this.limit);
|
|
560
602
|
};
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
if (t(this,
|
|
566
|
-
const i = t(this, S)[e] % (t(this, C) + t(this, M) + t(this,
|
|
567
|
-
return i < 0 ? t(this, C) + i + t(this, M) + t(this,
|
|
603
|
+
me = /* @__PURE__ */ new WeakMap();
|
|
604
|
+
Fe = /* @__PURE__ */ new WeakMap();
|
|
605
|
+
De = /* @__PURE__ */ new WeakSet();
|
|
606
|
+
hs = function(e = "current") {
|
|
607
|
+
if (t(this, A).current && t(this, u).length) {
|
|
608
|
+
const i = t(this, S)[e] % (t(this, C) + t(this, M) + t(this, R));
|
|
609
|
+
return i < 0 ? t(this, C) + i + t(this, M) + t(this, R) : i;
|
|
568
610
|
} else
|
|
569
611
|
return t(this, S)[e];
|
|
570
612
|
};
|
|
571
613
|
lt = /* @__PURE__ */ new WeakSet();
|
|
572
|
-
|
|
573
|
-
if (t(this,
|
|
574
|
-
const e = t(this, P).current + t(this,
|
|
614
|
+
Tt = function() {
|
|
615
|
+
if (t(this, X).current && t(this, u).length) {
|
|
616
|
+
const e = t(this, P).current + t(this, Ot).current;
|
|
575
617
|
e === 0 ? this.classList.add("start") : this.classList.remove("start"), e === this.limit ? this.classList.add("end") : this.classList.remove("end");
|
|
576
|
-
const i = t(this, J).current + t(this,
|
|
618
|
+
const i = t(this, J).current + t(this, vt).current;
|
|
577
619
|
t(this, u).forEach((r, h) => {
|
|
578
|
-
const n = e - this.limit - 1 + t(this,
|
|
620
|
+
const n = e - this.limit - 1 + t(this, vt).current, p = e + i, d = this.sections.length - p;
|
|
579
621
|
h >= e && h < p || h <= n ? r.mark("current") : h >= p && h < p + d / 2 || h <= n + i ? r.mark("next") : r.mark("previous");
|
|
580
622
|
});
|
|
581
623
|
}
|
|
582
624
|
};
|
|
583
|
-
|
|
584
|
-
|
|
625
|
+
Oe = /* @__PURE__ */ new WeakSet();
|
|
626
|
+
ns = function() {
|
|
585
627
|
let e = null, i = 1 / 0;
|
|
586
628
|
for (let r = 0; r < t(this, u).length; r++) {
|
|
587
629
|
const h = Math.abs(t(this, u)[r].position - this.targetScrollValue);
|
|
@@ -589,41 +631,41 @@ Fs = function() {
|
|
|
589
631
|
}
|
|
590
632
|
return e !== null ? t(this, u)[e] : null;
|
|
591
633
|
};
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
],
|
|
595
|
-
var
|
|
596
|
-
class
|
|
634
|
+
Ye = bi([
|
|
635
|
+
de("e-scroll")
|
|
636
|
+
], Ye);
|
|
637
|
+
var Me;
|
|
638
|
+
class ts extends Rs {
|
|
597
639
|
constructor() {
|
|
598
640
|
super(...arguments);
|
|
599
|
-
|
|
641
|
+
L(this, Me, null);
|
|
600
642
|
}
|
|
601
643
|
get scrollElement() {
|
|
602
|
-
return a(this,
|
|
644
|
+
return a(this, Me);
|
|
603
645
|
}
|
|
604
646
|
connectedCallback() {
|
|
605
|
-
const r =
|
|
606
|
-
r instanceof
|
|
647
|
+
const r = Si(this, Ye);
|
|
648
|
+
r instanceof Ye ? $(this, Me, r) : console.error(this, "e-scroll not found");
|
|
607
649
|
}
|
|
608
650
|
}
|
|
609
|
-
|
|
610
|
-
var
|
|
611
|
-
for (var n = h > 1 ? void 0 : h ?
|
|
651
|
+
Me = new WeakMap();
|
|
652
|
+
var _i = Object.defineProperty, Ci = Object.getOwnPropertyDescriptor, yi = (e, i, r, h) => {
|
|
653
|
+
for (var n = h > 1 ? void 0 : h ? Ci(i, r) : i, p = e.length - 1, d; p >= 0; p--)
|
|
612
654
|
(d = e[p]) && (n = (h ? d(i, r, n) : d(n)) || n);
|
|
613
|
-
return h && n &&
|
|
614
|
-
},
|
|
655
|
+
return h && n && _i(i, r, n), n;
|
|
656
|
+
}, Gs = (e, i, r) => {
|
|
615
657
|
if (!i.has(e))
|
|
616
658
|
throw TypeError("Cannot " + r);
|
|
617
|
-
}, f = (e, i, r) => (
|
|
659
|
+
}, f = (e, i, r) => (Gs(e, i, "read from private field"), r ? r.call(e) : i.get(e)), N = (e, i, r) => {
|
|
618
660
|
if (i.has(e))
|
|
619
661
|
throw TypeError("Cannot add the same private member more than once");
|
|
620
662
|
i instanceof WeakSet ? i.add(e) : i.set(e, r);
|
|
621
|
-
},
|
|
622
|
-
const
|
|
663
|
+
}, Ct = (e, i, r, h) => (Gs(e, i, "write to private field"), h ? h.call(e, r) : i.set(e, r), r), be, I, nt, at, we, ge, te, Te, Ie, Ae;
|
|
664
|
+
const Pi = ms({
|
|
623
665
|
":host": {
|
|
624
666
|
display: "inline-block",
|
|
625
667
|
zIndex: "1",
|
|
626
|
-
backgroundColor:
|
|
668
|
+
backgroundColor: xs.colorFont.var
|
|
627
669
|
},
|
|
628
670
|
':host([axis="y"])': {
|
|
629
671
|
position: "absolute",
|
|
@@ -640,7 +682,7 @@ const ui = us({
|
|
|
640
682
|
height: "1vmin"
|
|
641
683
|
},
|
|
642
684
|
".default-thumb": {
|
|
643
|
-
backgroundColor:
|
|
685
|
+
backgroundColor: xs.colorMain.var,
|
|
644
686
|
borderRadius: "1vmin",
|
|
645
687
|
touchAction: "none"
|
|
646
688
|
},
|
|
@@ -648,34 +690,34 @@ const ui = us({
|
|
|
648
690
|
touchAction: "none"
|
|
649
691
|
}
|
|
650
692
|
});
|
|
651
|
-
let
|
|
693
|
+
let Ls = class extends ts {
|
|
652
694
|
constructor() {
|
|
653
|
-
super(), N(this,
|
|
654
|
-
|
|
655
|
-
const e = f(this,
|
|
656
|
-
|
|
657
|
-
}), N(this,
|
|
658
|
-
|
|
659
|
-
}), N(this,
|
|
695
|
+
super(), N(this, be, null), N(this, I, null), N(this, nt, !1), N(this, at, 0), N(this, we, 0), N(this, ge, 0), N(this, te, () => {
|
|
696
|
+
Ct(this, nt, this.offsetWidth > this.offsetHeight);
|
|
697
|
+
const e = f(this, nt) ? this.offsetWidth : this.offsetHeight;
|
|
698
|
+
Ct(this, at, e / ((this.scrollElement.scrollSize + this.scrollElement.viewportSize) / e)), Ct(this, at, Math.max(f(this, at), 30)), f(this, nt) ? (f(this, I).style.width = f(this, at) + "px", f(this, I).style.height = "100%") : (f(this, I).style.width = "100%", f(this, I).style.height = f(this, at) + "px"), Ct(this, we, e - f(this, at)), this.scrollElement.scrollSize || (this.style.display = "none");
|
|
699
|
+
}), N(this, Te, () => {
|
|
700
|
+
Ct(this, ge, this.scrollElement.currentProgress * f(this, we)), f(this, nt) ? f(this, I).style.transform = `translate3d(${f(this, ge)}px, 0px, 0px)` : f(this, I).style.transform = `translate3d(0px, ${f(this, ge)}px, 0px)`;
|
|
701
|
+
}), N(this, Ie, () => {
|
|
660
702
|
this.setAttribute("axis", this.scrollElement.axisCSSProperty.current);
|
|
661
|
-
}), N(this,
|
|
662
|
-
document.documentElement.classList.add("grabbing"),
|
|
703
|
+
}), N(this, Ae, (e) => {
|
|
704
|
+
document.documentElement.classList.add("grabbing"), di(
|
|
663
705
|
(h) => {
|
|
664
|
-
const n = f(this,
|
|
706
|
+
const n = f(this, nt) ? h.x : h.y, p = this.scrollElement.distance / f(this, we), d = (n - r) * p;
|
|
665
707
|
this.scrollElement.setPosition(i + d);
|
|
666
708
|
},
|
|
667
709
|
() => {
|
|
668
710
|
document.documentElement.classList.remove("grabbing");
|
|
669
711
|
}
|
|
670
712
|
);
|
|
671
|
-
const i = this.scrollElement.targetScrollValue, r = f(this,
|
|
672
|
-
}),
|
|
713
|
+
const i = this.scrollElement.targetScrollValue, r = f(this, nt) ? e.x : e.y;
|
|
714
|
+
}), ds && (this.openShadow(Pi), vs(this, {
|
|
673
715
|
slot: "static",
|
|
674
716
|
"drag-dead-zone": "",
|
|
675
717
|
children: [
|
|
676
|
-
|
|
677
|
-
ref: (e) =>
|
|
678
|
-
children:
|
|
718
|
+
Ke({
|
|
719
|
+
ref: (e) => Ct(this, be, e),
|
|
720
|
+
children: es({ class: "default-thumb" })
|
|
679
721
|
})
|
|
680
722
|
]
|
|
681
723
|
}));
|
|
@@ -685,203 +727,205 @@ let _s = class extends Ze {
|
|
|
685
727
|
}
|
|
686
728
|
connectedCallback() {
|
|
687
729
|
super.connectedCallback();
|
|
688
|
-
const e = f(this,
|
|
689
|
-
|
|
730
|
+
const e = f(this, be).assignedElements()[0] || f(this, be).firstElementChild;
|
|
731
|
+
Ct(this, I, e), f(this, I).addEventListener("pointerdown", f(this, Ae)), ue.subscribe(f(this, te), Ss.SCROLL + 1), Ze.subscribe(this, f(this, te)), this.scrollElement.onScroll(f(this, Te)), this.scrollElement.axisCSSProperty.subscribe(f(this, Ie));
|
|
690
732
|
}
|
|
691
733
|
disconnectedCallback() {
|
|
692
|
-
f(this, I).removeEventListener("pointerdown", f(this,
|
|
734
|
+
f(this, I).removeEventListener("pointerdown", f(this, Ae)), ue.unsubscribe(f(this, te)), Ze.unsubscribe(f(this, te)), this.scrollElement.offScroll(f(this, Te)), this.scrollElement.axisCSSProperty.unsubscribe(f(this, Ie));
|
|
693
735
|
}
|
|
694
736
|
};
|
|
695
|
-
|
|
737
|
+
be = /* @__PURE__ */ new WeakMap();
|
|
696
738
|
I = /* @__PURE__ */ new WeakMap();
|
|
697
|
-
ht = /* @__PURE__ */ new WeakMap();
|
|
698
739
|
nt = /* @__PURE__ */ new WeakMap();
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
740
|
+
at = /* @__PURE__ */ new WeakMap();
|
|
741
|
+
we = /* @__PURE__ */ new WeakMap();
|
|
742
|
+
ge = /* @__PURE__ */ new WeakMap();
|
|
743
|
+
te = /* @__PURE__ */ new WeakMap();
|
|
744
|
+
Te = /* @__PURE__ */ new WeakMap();
|
|
745
|
+
Ie = /* @__PURE__ */ new WeakMap();
|
|
746
|
+
Ae = /* @__PURE__ */ new WeakMap();
|
|
747
|
+
Ls = yi([
|
|
748
|
+
de("e-scrollbar")
|
|
749
|
+
], Ls);
|
|
750
|
+
const ki = ms({
|
|
709
751
|
button: {
|
|
710
752
|
all: "inherit"
|
|
711
753
|
}
|
|
712
754
|
});
|
|
713
|
-
class
|
|
755
|
+
class qs extends ts {
|
|
714
756
|
constructor() {
|
|
715
|
-
super(), this.openShadow(
|
|
757
|
+
super(), this.openShadow(ki), ds && vs(this, {
|
|
716
758
|
children: [
|
|
717
|
-
|
|
759
|
+
pi({
|
|
718
760
|
onClick: () => {
|
|
719
761
|
this.handleClick();
|
|
720
762
|
},
|
|
721
|
-
children: [
|
|
763
|
+
children: [Ke()]
|
|
722
764
|
})
|
|
723
765
|
]
|
|
724
766
|
});
|
|
725
767
|
}
|
|
726
768
|
}
|
|
727
|
-
var
|
|
728
|
-
for (var n = h > 1 ? void 0 : h ?
|
|
769
|
+
var Wi = Object.defineProperty, Mi = Object.getOwnPropertyDescriptor, Ei = (e, i, r, h) => {
|
|
770
|
+
for (var n = h > 1 ? void 0 : h ? Mi(i, r) : i, p = e.length - 1, d; p >= 0; p--)
|
|
729
771
|
(d = e[p]) && (n = (h ? d(i, r, n) : d(n)) || n);
|
|
730
|
-
return h && n &&
|
|
772
|
+
return h && n && Wi(i, r, n), n;
|
|
731
773
|
};
|
|
732
|
-
let
|
|
774
|
+
let Vs = class extends qs {
|
|
733
775
|
handleClick() {
|
|
734
776
|
const e = this.getAttribute("index"), i = this.getAttribute("behaviour");
|
|
735
|
-
this.scrollElement.scrollToSection(parseInt(e || "0"), i);
|
|
777
|
+
this.scrollElement.scrollToSection(parseInt(e || "0"), { behaviour: i });
|
|
736
778
|
}
|
|
737
779
|
};
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
],
|
|
741
|
-
var
|
|
742
|
-
for (var n = h > 1 ? void 0 : h ?
|
|
780
|
+
Vs = Ei([
|
|
781
|
+
de("e-scroll-set-button")
|
|
782
|
+
], Vs);
|
|
783
|
+
var xi = Object.defineProperty, Li = Object.getOwnPropertyDescriptor, Vi = (e, i, r, h) => {
|
|
784
|
+
for (var n = h > 1 ? void 0 : h ? Li(i, r) : i, p = e.length - 1, d; p >= 0; p--)
|
|
743
785
|
(d = e[p]) && (n = (h ? d(i, r, n) : d(n)) || n);
|
|
744
|
-
return h && n &&
|
|
786
|
+
return h && n && xi(i, r, n), n;
|
|
745
787
|
};
|
|
746
|
-
let
|
|
788
|
+
let zs = class extends qs {
|
|
747
789
|
handleClick() {
|
|
748
790
|
const e = this.getAttribute("step"), i = this.getAttribute("behaviour");
|
|
749
|
-
this.scrollElement.shiftSections(parseInt(e || "1"), i);
|
|
791
|
+
this.scrollElement.shiftSections(parseInt(e || "1"), { behaviour: i });
|
|
750
792
|
}
|
|
751
793
|
};
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
],
|
|
755
|
-
var
|
|
756
|
-
for (var n = h > 1 ? void 0 : h ?
|
|
794
|
+
zs = Vi([
|
|
795
|
+
de("e-scroll-step-button")
|
|
796
|
+
], zs);
|
|
797
|
+
var zi = Object.defineProperty, $i = Object.getOwnPropertyDescriptor, Fi = (e, i, r, h) => {
|
|
798
|
+
for (var n = h > 1 ? void 0 : h ? $i(i, r) : i, p = e.length - 1, d; p >= 0; p--)
|
|
757
799
|
(d = e[p]) && (n = (h ? d(i, r, n) : d(n)) || n);
|
|
758
|
-
return h && n &&
|
|
759
|
-
},
|
|
800
|
+
return h && n && zi(i, r, n), n;
|
|
801
|
+
}, Ns = (e, i, r) => {
|
|
760
802
|
if (!i.has(e))
|
|
761
803
|
throw TypeError("Cannot " + r);
|
|
762
|
-
},
|
|
804
|
+
}, qt = (e, i, r) => (Ns(e, i, "read from private field"), r ? r.call(e) : i.get(e)), $s = (e, i, r) => {
|
|
763
805
|
if (i.has(e))
|
|
764
806
|
throw TypeError("Cannot add the same private member more than once");
|
|
765
807
|
i instanceof WeakSet ? i.add(e) : i.set(e, r);
|
|
766
|
-
},
|
|
767
|
-
class
|
|
808
|
+
}, Fs = (e, i, r, h) => (Ns(e, i, "write to private field"), h ? h.call(e, r) : i.set(e, r), r), xt, _e, st, _t, ce, Ee, xe, le;
|
|
809
|
+
class Di {
|
|
768
810
|
constructor(i, r, h) {
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
a(this,
|
|
811
|
+
L(this, st, void 0);
|
|
812
|
+
L(this, _t, void 0);
|
|
813
|
+
L(this, ce, void 0);
|
|
814
|
+
L(this, Ee, void 0);
|
|
815
|
+
L(this, xe, () => {
|
|
816
|
+
a(this, _t).scrollToSection(a(this, ce), {
|
|
817
|
+
behaviour: a(this, Ee)
|
|
818
|
+
});
|
|
775
819
|
});
|
|
776
|
-
|
|
777
|
-
a(this,
|
|
820
|
+
L(this, le, () => {
|
|
821
|
+
a(this, st).classList.toggle(
|
|
778
822
|
"current",
|
|
779
|
-
a(this,
|
|
823
|
+
a(this, _t).counter.current === a(this, ce)
|
|
780
824
|
);
|
|
781
825
|
});
|
|
782
|
-
|
|
826
|
+
$(this, st, document.createElement("button")), $(this, _t, i), $(this, Ee, h), $(this, ce, r), a(this, st).addEventListener("click", a(this, xe)), a(this, _t).counter.subscribe(a(this, le)), a(this, le).call(this);
|
|
783
827
|
}
|
|
784
828
|
get element() {
|
|
785
|
-
return a(this,
|
|
829
|
+
return a(this, st);
|
|
786
830
|
}
|
|
787
831
|
destroy() {
|
|
788
|
-
a(this,
|
|
832
|
+
a(this, st).removeEventListener("click", a(this, xe)), a(this, _t).counter.unsubscribe(a(this, le)), a(this, st).remove();
|
|
789
833
|
}
|
|
790
834
|
}
|
|
791
|
-
|
|
792
|
-
let
|
|
835
|
+
st = new WeakMap(), _t = new WeakMap(), ce = new WeakMap(), Ee = new WeakMap(), xe = new WeakMap(), le = new WeakMap();
|
|
836
|
+
let Ds = class extends ts {
|
|
793
837
|
constructor() {
|
|
794
|
-
super(...arguments),
|
|
795
|
-
|
|
838
|
+
super(...arguments), $s(this, xt, []), $s(this, _e, Bs(() => {
|
|
839
|
+
qt(this, xt).forEach((e) => e.destroy()), Fs(this, xt, []);
|
|
796
840
|
for (let e = 0; e < this.scrollElement.sections.length; e++) {
|
|
797
|
-
const i = new
|
|
841
|
+
const i = new Di(
|
|
798
842
|
this.scrollElement,
|
|
799
843
|
e,
|
|
800
844
|
this.getAttribute("behaviour") || "smooth"
|
|
801
845
|
);
|
|
802
|
-
this.appendChild(i.element),
|
|
846
|
+
this.appendChild(i.element), qt(this, xt).push(i);
|
|
803
847
|
}
|
|
804
848
|
}, 0));
|
|
805
849
|
}
|
|
806
850
|
connectedCallback() {
|
|
807
851
|
super.connectedCallback(), this.scrollElement.addEventListener(
|
|
808
852
|
"sectionsChange",
|
|
809
|
-
|
|
810
|
-
),
|
|
853
|
+
qt(this, _e)
|
|
854
|
+
), qt(this, _e).call(this);
|
|
811
855
|
}
|
|
812
856
|
disconnectedCallback() {
|
|
813
857
|
this.scrollElement.removeEventListener(
|
|
814
858
|
"sectionsChange",
|
|
815
|
-
|
|
816
|
-
),
|
|
859
|
+
qt(this, _e)
|
|
860
|
+
), qt(this, xt).forEach((e) => e.destroy()), Fs(this, xt, []);
|
|
817
861
|
}
|
|
818
862
|
};
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
],
|
|
824
|
-
var
|
|
825
|
-
for (var n = h > 1 ? void 0 : h ?
|
|
863
|
+
xt = /* @__PURE__ */ new WeakMap();
|
|
864
|
+
_e = /* @__PURE__ */ new WeakMap();
|
|
865
|
+
Ds = Fi([
|
|
866
|
+
de("e-scroll-bullet-buttons")
|
|
867
|
+
], Ds);
|
|
868
|
+
var Oi = Object.defineProperty, Ti = Object.getOwnPropertyDescriptor, Ii = (e, i, r, h) => {
|
|
869
|
+
for (var n = h > 1 ? void 0 : h ? Ti(i, r) : i, p = e.length - 1, d; p >= 0; p--)
|
|
826
870
|
(d = e[p]) && (n = (h ? d(i, r, n) : d(n)) || n);
|
|
827
|
-
return h && n &&
|
|
828
|
-
},
|
|
871
|
+
return h && n && Oi(i, r, n), n;
|
|
872
|
+
}, _s = (e, i, r) => {
|
|
829
873
|
if (!i.has(e))
|
|
830
874
|
throw TypeError("Cannot " + r);
|
|
831
|
-
}, s = (e, i, r) => (
|
|
875
|
+
}, s = (e, i, r) => (_s(e, i, "read from private field"), r ? r.call(e) : i.get(e)), c = (e, i, r) => {
|
|
832
876
|
if (i.has(e))
|
|
833
877
|
throw TypeError("Cannot add the same private member more than once");
|
|
834
878
|
i instanceof WeakSet ? i.add(e) : i.set(e, r);
|
|
835
|
-
}, b = (e, i, r, h) => (
|
|
836
|
-
let
|
|
879
|
+
}, b = (e, i, r, h) => (_s(e, i, "write to private field"), h ? h.call(e, r) : i.set(e, r), r), W = (e, i, r) => (_s(e, i, "access private method"), r), ee, se, ie, re, Lt, Vt, zt, $t, O, H, G, q, It, x, ut, pt, ft, dt, St, E, Z, K, bt, wt, tt, Re, m, he, ne, Be, V, Ft, F, z, U, Ce, Bt, k, as, Us, os, Ks, cs, Zs, ls, Js, us, Qs, ps, Xs, He, ye, ot, Dt, Cs, Ys, ys, js, Ge, fs, qe;
|
|
880
|
+
let Os = class extends ts {
|
|
837
881
|
constructor() {
|
|
838
|
-
super(),
|
|
882
|
+
super(), c(this, as), c(this, os), c(this, cs), c(this, ls), c(this, us), c(this, ps), c(this, ot), c(this, Cs), c(this, ys), c(this, Ge), c(this, ee, new l(this, "--damping", 20)), c(this, se, new l(this, "--mass", 0)), c(this, ie, new l(this, "--stiffness", 0)), c(this, re, new l(this, "--target", "")), c(this, Lt, new l(this, "--disabled", !1)), c(this, Vt, new l(
|
|
839
883
|
this,
|
|
840
884
|
"--distance-offset",
|
|
841
885
|
0,
|
|
842
886
|
{ rawValueCheck: !1 }
|
|
843
|
-
)),
|
|
887
|
+
)), c(this, zt, new l(this, "--start-offset", 0, {
|
|
844
888
|
rawValueCheck: !1
|
|
845
|
-
})),
|
|
889
|
+
})), c(this, $t, new l(
|
|
846
890
|
this,
|
|
847
891
|
"--capture-once",
|
|
848
892
|
!1
|
|
849
|
-
)),
|
|
893
|
+
)), c(this, O, new l(this, "--captured", "")), c(this, H, new l(this, "--released", "")), c(this, G, new l(
|
|
850
894
|
this,
|
|
851
895
|
"--captured-from-start",
|
|
852
896
|
""
|
|
853
|
-
)),
|
|
897
|
+
)), c(this, q, new l(
|
|
854
898
|
this,
|
|
855
899
|
"--captured-from-finish",
|
|
856
900
|
""
|
|
857
|
-
)),
|
|
901
|
+
)), c(this, It, new l(
|
|
858
902
|
this,
|
|
859
903
|
"--released-from-start",
|
|
860
904
|
""
|
|
861
|
-
)),
|
|
905
|
+
)), c(this, x, new l(
|
|
862
906
|
this,
|
|
863
907
|
"--released-from-finish",
|
|
864
908
|
""
|
|
865
|
-
)),
|
|
866
|
-
s(this, k) || (this.resize(), s(this,
|
|
867
|
-
}),
|
|
868
|
-
!s(this, k) && s(this,
|
|
869
|
-
}),
|
|
870
|
-
const e =
|
|
909
|
+
)), c(this, ut, new l(this, "--passed-var", "")), c(this, pt, new l(this, "--progress-var", "")), c(this, ft, new l(this, "--distance-var", "")), c(this, dt, new l(this, "--start-var", "")), c(this, St, new l(this, "--finish-var", "")), c(this, E, new yt(!1)), c(this, Z, new yt(!1)), c(this, K, new yt(!1)), c(this, bt, new yt(!1)), c(this, wt, new yt(!1)), c(this, tt, new yt(!1)), c(this, Re, []), c(this, m, this), c(this, he, 0), c(this, ne, 0), c(this, Be, 0), c(this, V, new As(0, { order: Is.SCROLL - 1, min: 0, max: 1 })), c(this, Ft, 0), c(this, F, 0), c(this, z, 0), c(this, U, 0), c(this, Ce, !1), c(this, Bt, !1), c(this, k, !0), c(this, He, () => {
|
|
910
|
+
s(this, k) || (this.resize(), s(this, ye).call(this));
|
|
911
|
+
}), c(this, ye, () => {
|
|
912
|
+
!s(this, k) && s(this, Ce) && this.tick();
|
|
913
|
+
}), c(this, qe, Bs(() => {
|
|
914
|
+
const e = Gt.getAll(this).reverse();
|
|
871
915
|
let i = 0;
|
|
872
916
|
e.forEach((r, h) => {
|
|
873
917
|
r.element === this.scrollElement && (i = h);
|
|
874
|
-
}), b(this,
|
|
918
|
+
}), b(this, Re, e.slice(i + 1));
|
|
875
919
|
}, 0));
|
|
876
920
|
}
|
|
877
921
|
get distanceOffsetCSSProperty() {
|
|
878
|
-
return s(this,
|
|
922
|
+
return s(this, Vt);
|
|
879
923
|
}
|
|
880
924
|
get startOffsetCSSProperty() {
|
|
881
|
-
return s(this,
|
|
925
|
+
return s(this, zt);
|
|
882
926
|
}
|
|
883
927
|
get captureOnceCSSProperty() {
|
|
884
|
-
return s(this,
|
|
928
|
+
return s(this, $t);
|
|
885
929
|
}
|
|
886
930
|
get capturedCSSProperty() {
|
|
887
931
|
return s(this, O);
|
|
@@ -896,40 +940,40 @@ let Ms = class extends Ze {
|
|
|
896
940
|
return s(this, q);
|
|
897
941
|
}
|
|
898
942
|
get releasedFromStartCSSProperty() {
|
|
899
|
-
return s(this,
|
|
943
|
+
return s(this, It);
|
|
900
944
|
}
|
|
901
945
|
get releasedFromFinishCSSProperty() {
|
|
902
946
|
return s(this, x);
|
|
903
947
|
}
|
|
904
948
|
get passedVarCSSProperty() {
|
|
905
|
-
return s(this,
|
|
949
|
+
return s(this, ut);
|
|
906
950
|
}
|
|
907
951
|
get progressVarCSSProperty() {
|
|
908
|
-
return s(this,
|
|
952
|
+
return s(this, pt);
|
|
909
953
|
}
|
|
910
954
|
get distanceVarCSSProperty() {
|
|
911
|
-
return s(this,
|
|
955
|
+
return s(this, ft);
|
|
912
956
|
}
|
|
913
957
|
get startVarCSSProperty() {
|
|
914
|
-
return s(this,
|
|
958
|
+
return s(this, dt);
|
|
915
959
|
}
|
|
916
960
|
get finishVarCSSProperty() {
|
|
917
|
-
return s(this,
|
|
961
|
+
return s(this, St);
|
|
918
962
|
}
|
|
919
963
|
get disabledCSSProperty() {
|
|
920
|
-
return s(this,
|
|
964
|
+
return s(this, Lt);
|
|
921
965
|
}
|
|
922
966
|
get dampingCSSProperty() {
|
|
923
|
-
return s(this,
|
|
967
|
+
return s(this, ee);
|
|
924
968
|
}
|
|
925
969
|
get massCSSProperty() {
|
|
926
|
-
return s(this,
|
|
970
|
+
return s(this, se);
|
|
927
971
|
}
|
|
928
972
|
get stiffnessCSSProperty() {
|
|
929
|
-
return s(this,
|
|
973
|
+
return s(this, ie);
|
|
930
974
|
}
|
|
931
975
|
get targetCSSProperty() {
|
|
932
|
-
return s(this,
|
|
976
|
+
return s(this, re);
|
|
933
977
|
}
|
|
934
978
|
get isCaptured() {
|
|
935
979
|
return s(this, E);
|
|
@@ -941,116 +985,116 @@ let Ms = class extends Ze {
|
|
|
941
985
|
return s(this, K);
|
|
942
986
|
}
|
|
943
987
|
get isReleasedFromStart() {
|
|
944
|
-
return s(this,
|
|
988
|
+
return s(this, bt);
|
|
945
989
|
}
|
|
946
990
|
get isCapturedFromFinish() {
|
|
947
|
-
return s(this,
|
|
991
|
+
return s(this, wt);
|
|
948
992
|
}
|
|
949
993
|
get isReleasedFromFinish() {
|
|
950
|
-
return s(this,
|
|
994
|
+
return s(this, tt);
|
|
951
995
|
}
|
|
952
996
|
get directionPosition() {
|
|
953
|
-
return s(this,
|
|
997
|
+
return s(this, he);
|
|
954
998
|
}
|
|
955
999
|
get directionSize() {
|
|
956
|
-
return s(this,
|
|
1000
|
+
return s(this, ne);
|
|
957
1001
|
}
|
|
958
1002
|
get passed() {
|
|
959
|
-
return s(this,
|
|
1003
|
+
return s(this, V);
|
|
960
1004
|
}
|
|
961
1005
|
get progress() {
|
|
962
|
-
return s(this,
|
|
1006
|
+
return s(this, Ft);
|
|
963
1007
|
}
|
|
964
1008
|
get start() {
|
|
965
|
-
return s(this,
|
|
1009
|
+
return s(this, F);
|
|
966
1010
|
}
|
|
967
1011
|
get finish() {
|
|
968
1012
|
return s(this, U);
|
|
969
1013
|
}
|
|
970
1014
|
get distance() {
|
|
971
|
-
return s(this,
|
|
1015
|
+
return s(this, z);
|
|
972
1016
|
}
|
|
973
1017
|
get isCapturedOnce() {
|
|
974
|
-
return s(this,
|
|
1018
|
+
return s(this, Bt);
|
|
975
1019
|
}
|
|
976
1020
|
get isDisabled() {
|
|
977
1021
|
return s(this, k);
|
|
978
1022
|
}
|
|
979
1023
|
resize() {
|
|
980
|
-
b(this,
|
|
1024
|
+
b(this, ne, this.scrollElement.vertical ? this.offsetHeight : this.offsetWidth), b(this, he, this.scrollElement.vertical ? Ne(this, this.scrollElement) : Ue(this, this.scrollElement)), b(this, F, this.getStart()), b(this, z, this.getDistance()), b(this, F, s(this, F) + s(this, zt).current), b(this, z, s(this, z) + s(this, Vt).current), b(this, U, s(this, F) + s(this, z)), this.scrollElement.currentScrollValue > s(this, U) && !s(this, E).current && !s(this, Z).current && (s(this, E).current = !0), this.setVar(s(this, dt).current, s(this, F)), this.setVar(s(this, St).current, s(this, U)), this.setVar(s(this, ft).current, s(this, z)), s(this, V).max = s(this, z), b(this, Ce, !0);
|
|
981
1025
|
}
|
|
982
1026
|
tick() {
|
|
983
1027
|
let e = this.scrollElement.currentScrollValue;
|
|
984
|
-
s(this,
|
|
1028
|
+
s(this, Re).forEach((r) => {
|
|
985
1029
|
e += r.value;
|
|
986
|
-
}), s(this,
|
|
1030
|
+
}), s(this, V).set(e - s(this, F));
|
|
987
1031
|
const i = Math.round(e);
|
|
988
|
-
s(this, E).current && (i > s(this,
|
|
989
|
-
|
|
990
|
-
), W(this,
|
|
1032
|
+
s(this, E).current && (i > s(this, F) ? s(this, K).current || W(this, cs, Zs).call(this) : s(this, K).current && !s(this, bt).current && W(this, us, Qs).call(this), i < s(this, U) ? s(this, tt).current && !s(this, wt).current && W(this, ls, Js).call(this) : s(this, K).current && !s(this, tt).current && W(this, ps, Xs).call(this)), i > s(this, F) && i < s(this, U) ? s(this, E).current || W(this, as, Us).call(this) : s(this, E).current && (s(this, V).set(
|
|
1033
|
+
ni(s(this, z) / 2, s(this, V).current, 0, s(this, z))
|
|
1034
|
+
), W(this, os, Ks).call(this)), s(this, Bt) && s(this, $t).current && (s(this, O).current && s(this, m).classList.add(s(this, O).current), b(this, k, !0));
|
|
991
1035
|
}
|
|
992
1036
|
disable() {
|
|
993
|
-
this.style.cssText = "", b(this,
|
|
1037
|
+
this.style.cssText = "", b(this, he, 0), b(this, ne, 0), s(this, V).reset(), b(this, Ft, 0), b(this, F, 0), b(this, z, 0), b(this, U, 0), b(this, Ce, !1), s(this, E).current = !1, s(this, Z).current = !1, s(this, K).current = !1, s(this, bt).current = !1, s(this, wt).current = !1, s(this, tt).current = !1, b(this, Bt, !1), b(this, k, !0), W(this, Ge, fs).call(this);
|
|
994
1038
|
}
|
|
995
1039
|
enable() {
|
|
996
1040
|
b(this, k, !1);
|
|
997
1041
|
}
|
|
998
1042
|
connectedCallback() {
|
|
999
|
-
super.connectedCallback(), s(this,
|
|
1043
|
+
super.connectedCallback(), s(this, ee).observe(), s(this, se).observe(), s(this, ie).observe(), s(this, re).observe(), s(this, Lt).observe(), s(this, Vt).observe(), s(this, zt).observe(), s(this, $t).observe(), s(this, O).observe(), s(this, H).observe(), s(this, G).observe(), s(this, q).observe(), s(this, It).observe(), s(this, x).observe(), s(this, ut).observe(), s(this, pt).observe(), s(this, ft).observe(), s(this, dt).observe(), s(this, St).observe();
|
|
1000
1044
|
let e = !1;
|
|
1001
1045
|
this.scrollElement.addEventListener(
|
|
1002
1046
|
"sectionsChange",
|
|
1003
|
-
s(this,
|
|
1004
|
-
), s(this,
|
|
1005
|
-
s(this,
|
|
1006
|
-
}), s(this,
|
|
1007
|
-
s(this,
|
|
1008
|
-
}), s(this,
|
|
1009
|
-
s(this,
|
|
1010
|
-
}), s(this,
|
|
1011
|
-
i.previous && W(this,
|
|
1012
|
-
}), s(this,
|
|
1047
|
+
s(this, qe)
|
|
1048
|
+
), s(this, qe).call(this), s(this, Lt).current || this.enable(), s(this, ee).subscribe((i) => {
|
|
1049
|
+
s(this, V).damping = i.current;
|
|
1050
|
+
}), s(this, se).subscribe((i) => {
|
|
1051
|
+
s(this, V).mass = i.current;
|
|
1052
|
+
}), s(this, ie).subscribe((i) => {
|
|
1053
|
+
s(this, V).stiffness = i.current;
|
|
1054
|
+
}), s(this, re).subscribe((i) => {
|
|
1055
|
+
i.previous && W(this, Ge, fs).call(this), i.current ? i.current === "parent" ? b(this, m, this.parentElement || this) : b(this, m, document.querySelector(i.current) || this) : b(this, m, this);
|
|
1056
|
+
}), s(this, Lt).subscribe((i) => {
|
|
1013
1057
|
i.current && !i.previous ? this.disable() : !i.current && i.previous && (this.resize(), this.enable());
|
|
1014
|
-
}), s(this,
|
|
1058
|
+
}), s(this, zt).subscribe(() => {
|
|
1015
1059
|
e && !s(this, k) && this.resize();
|
|
1016
|
-
}), s(this,
|
|
1060
|
+
}), s(this, Vt).subscribe(() => {
|
|
1017
1061
|
e && !s(this, k) && this.resize();
|
|
1018
1062
|
}), s(this, O).subscribe((i) => {
|
|
1019
|
-
W(this,
|
|
1063
|
+
W(this, ot, Dt).call(this, i);
|
|
1020
1064
|
}), s(this, G).subscribe((i) => {
|
|
1021
|
-
W(this,
|
|
1065
|
+
W(this, ot, Dt).call(this, i);
|
|
1022
1066
|
}), s(this, q).subscribe((i) => {
|
|
1023
|
-
W(this,
|
|
1067
|
+
W(this, ot, Dt).call(this, i);
|
|
1024
1068
|
}), s(this, H).subscribe((i) => {
|
|
1025
|
-
W(this,
|
|
1026
|
-
}), s(this,
|
|
1027
|
-
W(this,
|
|
1069
|
+
W(this, ot, Dt).call(this, i);
|
|
1070
|
+
}), s(this, It).subscribe((i) => {
|
|
1071
|
+
W(this, ot, Dt).call(this, i);
|
|
1028
1072
|
}), s(this, x).subscribe((i) => {
|
|
1029
|
-
W(this,
|
|
1030
|
-
}), s(this,
|
|
1073
|
+
W(this, ot, Dt).call(this, i);
|
|
1074
|
+
}), s(this, $t).subscribe((i) => {
|
|
1031
1075
|
s(this, k) || !i.current && i.previous && (this.resize(), this.enable());
|
|
1032
|
-
}), s(this, ct).subscribe((i) => {
|
|
1033
|
-
s(this, k) || (this.removeVar(i.previous), this.setVar(i.current, this.passed.current));
|
|
1034
1076
|
}), s(this, ut).subscribe((i) => {
|
|
1035
|
-
s(this, k) || (this.removeVar(i.previous), this.setVar(i.current,
|
|
1036
|
-
}), s(this,
|
|
1037
|
-
s(this, k) || (this.removeVar(i.previous), this.setVar(i.current, s(this,
|
|
1077
|
+
s(this, k) || (this.removeVar(i.previous), this.setVar(i.current, this.passed.current));
|
|
1078
|
+
}), s(this, pt).subscribe((i) => {
|
|
1079
|
+
s(this, k) || (this.removeVar(i.previous), this.setVar(i.current, s(this, Ft)));
|
|
1038
1080
|
}), s(this, dt).subscribe((i) => {
|
|
1081
|
+
s(this, k) || (this.removeVar(i.previous), this.setVar(i.current, s(this, F)));
|
|
1082
|
+
}), s(this, St).subscribe((i) => {
|
|
1039
1083
|
s(this, k) || (this.removeVar(i.previous), this.setVar(i.current, s(this, U)));
|
|
1040
|
-
}), s(this,
|
|
1041
|
-
s(this, k) || (this.removeVar(i.previous), this.setVar(i.current, s(this,
|
|
1042
|
-
}), s(this,
|
|
1043
|
-
b(this,
|
|
1044
|
-
s(this, ct).current,
|
|
1045
|
-
s(this, L).current.toFixed(6)
|
|
1046
|
-
), this.setVar(
|
|
1084
|
+
}), s(this, ft).subscribe((i) => {
|
|
1085
|
+
s(this, k) || (this.removeVar(i.previous), this.setVar(i.current, s(this, z)));
|
|
1086
|
+
}), s(this, V).subscribe((i) => {
|
|
1087
|
+
b(this, Ft, s(this, V).current / s(this, z) || 0), this.setVar(
|
|
1047
1088
|
s(this, ut).current,
|
|
1048
|
-
s(this,
|
|
1089
|
+
s(this, V).current.toFixed(6)
|
|
1090
|
+
), this.setVar(
|
|
1091
|
+
s(this, pt).current,
|
|
1092
|
+
s(this, Ft).toFixed(6)
|
|
1049
1093
|
);
|
|
1050
|
-
}),
|
|
1094
|
+
}), ue.subscribe(s(this, He), Ss.SEGMENT), this.scrollElement.onScroll(s(this, ye)), e = !0;
|
|
1051
1095
|
}
|
|
1052
1096
|
disconnectedCallback() {
|
|
1053
|
-
|
|
1097
|
+
ue.unsubscribe(s(this, He)), this.scrollElement.offScroll(s(this, ye)), s(this, ee).close(), s(this, se).close(), s(this, ie).close(), s(this, re).close(), s(this, Lt).close(), s(this, Vt).close(), s(this, zt).close(), s(this, $t).close(), s(this, O).close(), s(this, H).close(), s(this, G).close(), s(this, q).close(), s(this, It).close(), s(this, x).close(), s(this, ut).close(), s(this, pt).close(), s(this, ft).close(), s(this, dt).close(), s(this, St).close(), s(this, E).close(), s(this, Z).close(), s(this, K).close(), s(this, bt).close(), s(this, wt).close(), s(this, tt).close(), this.disable();
|
|
1054
1098
|
}
|
|
1055
1099
|
removeVar(e) {
|
|
1056
1100
|
e && s(this, m).style.removeProperty(`--${e}`);
|
|
@@ -1059,125 +1103,125 @@ let Ms = class extends Ze {
|
|
|
1059
1103
|
e && s(this, m).style.setProperty(`--${e}`, i.toString());
|
|
1060
1104
|
}
|
|
1061
1105
|
getDistance() {
|
|
1062
|
-
return s(this,
|
|
1106
|
+
return s(this, ne) + s(this, Be);
|
|
1063
1107
|
}
|
|
1064
1108
|
getStart() {
|
|
1065
|
-
return s(this,
|
|
1109
|
+
return s(this, he) - s(this, Be);
|
|
1066
1110
|
}
|
|
1067
1111
|
};
|
|
1068
|
-
Yt = /* @__PURE__ */ new WeakMap();
|
|
1069
|
-
jt = /* @__PURE__ */ new WeakMap();
|
|
1070
|
-
te = /* @__PURE__ */ new WeakMap();
|
|
1071
1112
|
ee = /* @__PURE__ */ new WeakMap();
|
|
1072
|
-
|
|
1073
|
-
|
|
1113
|
+
se = /* @__PURE__ */ new WeakMap();
|
|
1114
|
+
ie = /* @__PURE__ */ new WeakMap();
|
|
1115
|
+
re = /* @__PURE__ */ new WeakMap();
|
|
1074
1116
|
Lt = /* @__PURE__ */ new WeakMap();
|
|
1075
1117
|
Vt = /* @__PURE__ */ new WeakMap();
|
|
1118
|
+
zt = /* @__PURE__ */ new WeakMap();
|
|
1119
|
+
$t = /* @__PURE__ */ new WeakMap();
|
|
1076
1120
|
O = /* @__PURE__ */ new WeakMap();
|
|
1077
1121
|
H = /* @__PURE__ */ new WeakMap();
|
|
1078
1122
|
G = /* @__PURE__ */ new WeakMap();
|
|
1079
1123
|
q = /* @__PURE__ */ new WeakMap();
|
|
1080
|
-
|
|
1124
|
+
It = /* @__PURE__ */ new WeakMap();
|
|
1081
1125
|
x = /* @__PURE__ */ new WeakMap();
|
|
1082
|
-
ct = /* @__PURE__ */ new WeakMap();
|
|
1083
1126
|
ut = /* @__PURE__ */ new WeakMap();
|
|
1084
1127
|
pt = /* @__PURE__ */ new WeakMap();
|
|
1085
1128
|
ft = /* @__PURE__ */ new WeakMap();
|
|
1086
1129
|
dt = /* @__PURE__ */ new WeakMap();
|
|
1130
|
+
St = /* @__PURE__ */ new WeakMap();
|
|
1087
1131
|
E = /* @__PURE__ */ new WeakMap();
|
|
1088
1132
|
Z = /* @__PURE__ */ new WeakMap();
|
|
1089
1133
|
K = /* @__PURE__ */ new WeakMap();
|
|
1090
|
-
mt = /* @__PURE__ */ new WeakMap();
|
|
1091
1134
|
bt = /* @__PURE__ */ new WeakMap();
|
|
1092
|
-
|
|
1093
|
-
|
|
1135
|
+
wt = /* @__PURE__ */ new WeakMap();
|
|
1136
|
+
tt = /* @__PURE__ */ new WeakMap();
|
|
1137
|
+
Re = /* @__PURE__ */ new WeakMap();
|
|
1094
1138
|
m = /* @__PURE__ */ new WeakMap();
|
|
1095
|
-
|
|
1096
|
-
|
|
1097
|
-
|
|
1098
|
-
L = /* @__PURE__ */ new WeakMap();
|
|
1099
|
-
zt = /* @__PURE__ */ new WeakMap();
|
|
1100
|
-
$ = /* @__PURE__ */ new WeakMap();
|
|
1139
|
+
he = /* @__PURE__ */ new WeakMap();
|
|
1140
|
+
ne = /* @__PURE__ */ new WeakMap();
|
|
1141
|
+
Be = /* @__PURE__ */ new WeakMap();
|
|
1101
1142
|
V = /* @__PURE__ */ new WeakMap();
|
|
1143
|
+
Ft = /* @__PURE__ */ new WeakMap();
|
|
1144
|
+
F = /* @__PURE__ */ new WeakMap();
|
|
1145
|
+
z = /* @__PURE__ */ new WeakMap();
|
|
1102
1146
|
U = /* @__PURE__ */ new WeakMap();
|
|
1103
|
-
|
|
1104
|
-
|
|
1147
|
+
Ce = /* @__PURE__ */ new WeakMap();
|
|
1148
|
+
Bt = /* @__PURE__ */ new WeakMap();
|
|
1105
1149
|
k = /* @__PURE__ */ new WeakMap();
|
|
1106
|
-
|
|
1107
|
-
|
|
1108
|
-
s(this, E).current = !0, s(this, Z).current = !1, b(this,
|
|
1150
|
+
as = /* @__PURE__ */ new WeakSet();
|
|
1151
|
+
Us = function() {
|
|
1152
|
+
s(this, E).current = !0, s(this, Z).current = !1, b(this, Bt, !0), s(this, H).current && s(this, m).classList.remove(s(this, H).current), s(this, x).current && s(this, m).classList.remove(
|
|
1109
1153
|
s(this, x).current
|
|
1110
1154
|
), s(this, x).current && s(this, m).classList.remove(
|
|
1111
1155
|
s(this, x).current
|
|
1112
1156
|
), s(this, O).current && s(this, m).classList.add(s(this, O).current);
|
|
1113
1157
|
};
|
|
1114
|
-
|
|
1115
|
-
|
|
1116
|
-
s(this, Z).current = !0, s(this, E).current = !1, b(this,
|
|
1158
|
+
os = /* @__PURE__ */ new WeakSet();
|
|
1159
|
+
Ks = function() {
|
|
1160
|
+
s(this, Z).current = !0, s(this, E).current = !1, b(this, Bt, !0), s(this, O).current && s(this, m).classList.remove(s(this, O).current), s(this, G).current && s(this, m).classList.remove(
|
|
1117
1161
|
s(this, G).current
|
|
1118
1162
|
), s(this, q).current && s(this, m).classList.remove(
|
|
1119
1163
|
s(this, q).current
|
|
1120
1164
|
), s(this, H).current && s(this, m).classList.add(s(this, H).current);
|
|
1121
1165
|
};
|
|
1122
|
-
|
|
1123
|
-
|
|
1124
|
-
s(this, E).current = !0, s(this, K).current = !0, s(this,
|
|
1166
|
+
cs = /* @__PURE__ */ new WeakSet();
|
|
1167
|
+
Zs = function() {
|
|
1168
|
+
s(this, E).current = !0, s(this, K).current = !0, s(this, bt).current = !1, s(this, G).current && s(this, m).classList.add(
|
|
1125
1169
|
s(this, G).current
|
|
1126
1170
|
);
|
|
1127
1171
|
};
|
|
1128
|
-
|
|
1129
|
-
|
|
1130
|
-
s(this, E).current = !0, s(this,
|
|
1172
|
+
ls = /* @__PURE__ */ new WeakSet();
|
|
1173
|
+
Js = function() {
|
|
1174
|
+
s(this, E).current = !0, s(this, wt).current = !0, s(this, tt).current = !1, s(this, q).current && s(this, m).classList.add(
|
|
1131
1175
|
s(this, q).current
|
|
1132
1176
|
);
|
|
1133
1177
|
};
|
|
1134
|
-
|
|
1135
|
-
|
|
1136
|
-
s(this, Z).current = !0, s(this,
|
|
1178
|
+
us = /* @__PURE__ */ new WeakSet();
|
|
1179
|
+
Qs = function() {
|
|
1180
|
+
s(this, Z).current = !0, s(this, bt).current = !0, s(this, K).current = !1, s(this, x).current && s(this, m).classList.add(
|
|
1137
1181
|
s(this, x).current
|
|
1138
1182
|
);
|
|
1139
1183
|
};
|
|
1140
|
-
|
|
1141
|
-
|
|
1142
|
-
s(this, Z).current = !0, s(this,
|
|
1184
|
+
ps = /* @__PURE__ */ new WeakSet();
|
|
1185
|
+
Xs = function() {
|
|
1186
|
+
s(this, Z).current = !0, s(this, tt).current = !0, s(this, wt).current = !1, s(this, x).current && s(this, m).classList.add(
|
|
1143
1187
|
s(this, x).current
|
|
1144
1188
|
);
|
|
1145
1189
|
};
|
|
1146
|
-
|
|
1147
|
-
|
|
1148
|
-
|
|
1149
|
-
|
|
1190
|
+
He = /* @__PURE__ */ new WeakMap();
|
|
1191
|
+
ye = /* @__PURE__ */ new WeakMap();
|
|
1192
|
+
ot = /* @__PURE__ */ new WeakSet();
|
|
1193
|
+
Dt = function(e) {
|
|
1150
1194
|
if (s(this, k)) {
|
|
1151
1195
|
e.previous && s(this, m).classList.remove(e.previous), e.current && s(this, m).classList.remove(e.current);
|
|
1152
1196
|
return;
|
|
1153
1197
|
}
|
|
1154
1198
|
e.current && s(this, E).current ? (e.previous && s(this, m).classList.remove(e.previous), s(this, m).classList.add(e.current)) : !e.current && e.previous && s(this, m).classList.remove(e.previous);
|
|
1155
1199
|
};
|
|
1156
|
-
|
|
1157
|
-
|
|
1200
|
+
Cs = /* @__PURE__ */ new WeakSet();
|
|
1201
|
+
Ys = function(...e) {
|
|
1158
1202
|
e.forEach((i) => {
|
|
1159
1203
|
i && s(this, m).classList.remove(i);
|
|
1160
1204
|
});
|
|
1161
1205
|
};
|
|
1162
|
-
|
|
1163
|
-
|
|
1206
|
+
ys = /* @__PURE__ */ new WeakSet();
|
|
1207
|
+
js = function(...e) {
|
|
1164
1208
|
e.forEach((i) => {
|
|
1165
1209
|
i && s(this, m).style.removeProperty(`--${i}`);
|
|
1166
1210
|
});
|
|
1167
1211
|
};
|
|
1168
|
-
|
|
1169
|
-
|
|
1170
|
-
W(this,
|
|
1212
|
+
Ge = /* @__PURE__ */ new WeakSet();
|
|
1213
|
+
fs = function() {
|
|
1214
|
+
W(this, Cs, Ys).call(this, s(this, O).current, s(this, G).current, s(this, q).current, s(this, H).current, s(this, It).current, s(this, x).current), W(this, ys, js).call(this, s(this, ut).current, s(this, pt).current, s(this, ft).current, s(this, dt).current, s(this, St).current);
|
|
1171
1215
|
};
|
|
1172
|
-
|
|
1173
|
-
|
|
1174
|
-
|
|
1175
|
-
],
|
|
1216
|
+
qe = /* @__PURE__ */ new WeakMap();
|
|
1217
|
+
Os = Ii([
|
|
1218
|
+
de("e-scroll-segment")
|
|
1219
|
+
], Os);
|
|
1176
1220
|
export {
|
|
1177
|
-
|
|
1178
|
-
|
|
1179
|
-
|
|
1180
|
-
|
|
1181
|
-
|
|
1182
|
-
|
|
1221
|
+
Ds as ScrollBulletButtonsElement,
|
|
1222
|
+
Ye as ScrollElement,
|
|
1223
|
+
Os as ScrollSegmentElement,
|
|
1224
|
+
Vs as ScrollSetButtonElement,
|
|
1225
|
+
zs as ScrollStepButtonElement,
|
|
1226
|
+
Ls as ScrollbarElement
|
|
1183
1227
|
};
|