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