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