aptechka 0.4.11 → 0.4.13
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/{Damped-Ceg1a3X8.js → Damped-BZujMwuv.js} +11 -10
- package/lib/Damped-DK3CSBXb.cjs +1 -0
- package/lib/{Derived-B-g8dYgh.cjs → Derived-BZtlW0bB.cjs} +1 -1
- package/lib/{Derived-kPJs5JC5.js → Derived-DH-ouLBq.js} +1 -1
- package/lib/DragControls-CV1YozSr.cjs +1 -0
- package/lib/{DragControls-CZhJHO0_.js → DragControls-Ch_JO2ML.js} +23 -22
- package/lib/SourceManager-Bl_uduSS.cjs +1 -0
- package/lib/{SourceManager-4OHacQoQ.js → SourceManager-D_8MZ3bR.js} +21 -20
- package/lib/Store-BQGNOHlY.cjs +1 -0
- package/lib/{Store-BQXXikps.js → Store-Cd-E5W1z.js} +8 -7
- package/lib/{Viewport-wlgZaIn7.js → Viewport-Bx-VImCe.js} +6 -5
- package/lib/Viewport-_WllZTJ0.cjs +1 -0
- package/lib/accordion/index.cjs +1 -1
- package/lib/accordion/index.js +1 -0
- package/lib/animation/index.cjs +1 -1
- package/lib/animation/index.js +6 -5
- package/lib/attribute/index.cjs +1 -1
- package/lib/attribute/index.js +16 -15
- package/lib/canvas/index.cjs +1 -1
- package/lib/canvas/index.js +4 -3
- package/lib/checkbox/index.cjs +1 -1
- package/lib/checkbox/index.js +4 -3
- package/lib/controls/index.cjs +1 -1
- package/lib/controls/index.js +2 -2
- package/lib/{createStylesheet-CqHU9_qv.cjs → createStylesheet-C8aQQ4hd.cjs} +1 -1
- package/lib/{createStylesheet-DBCEbDjI.js → createStylesheet-KMRQhSa-.js} +1 -1
- package/lib/createTheme-BSreUYge.cjs +1 -0
- package/lib/createTheme-u3NsrEV6.js +16 -0
- package/lib/css-property/index.cjs +1 -1
- package/lib/css-property/index.js +4 -3
- package/lib/custom-element/index.cjs +1 -1
- package/lib/custom-element/index.js +3 -2
- package/lib/dev/index.cjs +1 -1
- package/lib/dev/index.js +7 -6
- package/lib/device/index.cjs +1 -1
- package/lib/device/index.js +1 -1
- package/lib/element-constructor/index.cjs +1 -1
- package/lib/element-constructor/index.js +3 -3
- package/lib/element-resizer/index.cjs +1 -1
- package/lib/element-resizer/index.js +23 -22
- package/lib/en3/index.cjs +1 -1
- package/lib/en3/index.js +23 -22
- package/lib/image/index.cjs +1 -1
- package/lib/image/index.js +8 -7
- package/lib/{index-BUOBDenR.js → index-Fasue6kv.js} +20 -19
- package/lib/index-nxoux28n.cjs +9 -0
- package/lib/intersector/index.cjs +1 -1
- package/lib/intersector/index.js +3 -2
- package/lib/ladder/index.cjs +1 -1
- package/lib/ladder/index.js +11 -10
- package/lib/layout-box/index.cjs +1 -1
- package/lib/layout-box/index.js +148 -139
- package/lib/libs/path-data-polyfill.d.ts +1 -0
- package/lib/loading/index.cjs +1 -1
- package/lib/loading/index.js +16 -15
- package/lib/media/index.cjs +1 -1
- package/lib/media/index.js +6 -5
- package/lib/modal/index.cjs +1 -1
- package/lib/modal/index.js +4 -3
- package/lib/morph/index.cjs +1 -1
- package/lib/morph/index.js +21 -20
- package/lib/path-data-polyfill-CXsOR7Oc.cjs +3 -0
- package/lib/path-data-polyfill-DgeDWYeI.js +454 -0
- package/lib/popover/index.cjs +1 -1
- package/lib/popover/index.js +14 -13
- package/lib/resized/index.cjs +1 -1
- package/lib/resized/index.js +8 -7
- package/lib/router/index.cjs +1 -1
- package/lib/router/index.js +8 -7
- package/lib/scroll/index.cjs +1 -1
- package/lib/scroll/index.js +307 -298
- package/lib/scroll-entries/index.cjs +1 -1
- package/lib/scroll-entries/index.d.ts +3 -0
- package/lib/scroll-entries/index.js +18 -13
- package/lib/select/index.cjs +1 -1
- package/lib/select/index.js +1 -1
- package/lib/slicer/index.cjs +2 -2
- package/lib/slicer/index.js +4 -3
- package/lib/source/index.cjs +1 -1
- package/lib/source/index.js +2 -2
- package/lib/store/index.cjs +1 -1
- package/lib/store/index.js +13 -12
- package/lib/{tags-CMPg9ETZ.js → tags-BoPv9fDr.js} +234 -233
- package/lib/tags-CueX-JLX.cjs +1 -0
- package/lib/theme/index.cjs +1 -1
- package/lib/theme/index.js +7 -6
- package/lib/ticker/index.cjs +1 -1
- package/lib/ticker/index.js +3 -2
- package/lib/tweaker/index.cjs +1 -1
- package/lib/tweaker/index.js +6 -5
- package/lib/utils/index.cjs +1 -1
- package/lib/utils/index.d.ts +1 -0
- package/lib/utils/index.js +164 -127
- package/lib/utils/svg.d.ts +15 -0
- package/lib/video/index.cjs +1 -1
- package/lib/video/index.js +6 -5
- package/lib/window-resizer/index.cjs +1 -1
- package/lib/window-resizer/index.js +7 -6
- package/package.json +1 -1
- package/lib/Damped-BdnkNOcb.cjs +0 -1
- package/lib/DragControls-C7P6P5HO.cjs +0 -1
- package/lib/SourceManager-Bc68GDrb.cjs +0 -1
- package/lib/Store-C-1ruEIm.cjs +0 -1
- package/lib/Viewport-DAjFJF5V.cjs +0 -1
- package/lib/createTheme-CHnsCgAr.js +0 -15
- package/lib/createTheme-Cfaw9UmV.cjs +0 -1
- package/lib/index-Bv5vIuF-.cjs +0 -9
- package/lib/tags-Djb6mb1o.cjs +0 -1
package/lib/scroll/index.js
CHANGED
|
@@ -7,31 +7,33 @@ var o = (e, i, r) => (is(e, i, "read from private field"), r ? r.call(e) : i.get
|
|
|
7
7
|
throw TypeError("Cannot add the same private member more than once");
|
|
8
8
|
i instanceof WeakSet ? i.add(e) : i.set(e, r);
|
|
9
9
|
}, A = (e, i, r, h) => (is(e, i, "write to private field"), h ? h.call(e, r) : i.set(e, r), r);
|
|
10
|
-
import { D as
|
|
10
|
+
import { D as xs } from "../Damped-BZujMwuv.js";
|
|
11
11
|
import { i as Ue } from "../browser-0zX67oeU.js";
|
|
12
12
|
import { a as Ce, g as ye } from "../layout-HoBT_Da2.js";
|
|
13
|
-
import { c as qe, s as
|
|
14
|
-
import
|
|
15
|
-
import {
|
|
13
|
+
import { c as qe, s as Ls, b as Vs, a as $s } from "../math-BOBiC4TN.js";
|
|
14
|
+
import "../path-data-polyfill-DgeDWYeI.js";
|
|
15
|
+
import { S as mt } from "../Store-Cd-E5W1z.js";
|
|
16
|
+
import { D as Fs } from "../Derived-DH-ouLBq.js";
|
|
16
17
|
import "../ticker/index.js";
|
|
17
|
-
import { W as
|
|
18
|
-
import { CustomElement as
|
|
19
|
-
import { TICK_ORDER as
|
|
20
|
-
import { windowResizer as
|
|
21
|
-
import { scrollEntries as
|
|
22
|
-
import { e as Ze, D as $e, ay as ke, p as
|
|
23
|
-
import { c as Je } from "../createStylesheet-
|
|
18
|
+
import { W as Os, K as zs, D as Ds } from "../DragControls-Ch_JO2ML.js";
|
|
19
|
+
import { CustomElement as ds, define as Ut } from "../custom-element/index.js";
|
|
20
|
+
import { TICK_ORDER as As, RESIZE_ORDER as Ne } from "../order/index.js";
|
|
21
|
+
import { windowResizer as Ht } from "../window-resizer/index.js";
|
|
22
|
+
import { scrollEntries as Et } from "../scroll-entries/index.js";
|
|
23
|
+
import { e as Ze, D as $e, ay as ke, p as Rs } from "../tags-BoPv9fDr.js";
|
|
24
|
+
import { c as Je } from "../createStylesheet-KMRQhSa-.js";
|
|
24
25
|
import { cssUnitParser as rs } from "../css-unit-parser/index.js";
|
|
25
|
-
import { CSSProperty as
|
|
26
|
-
import { d as Ts } from "../Viewport-
|
|
27
|
-
import { s as
|
|
28
|
-
import { f as
|
|
26
|
+
import { CSSProperty as m } from "../css-property/index.js";
|
|
27
|
+
import { d as Ts } from "../Viewport-Bx-VImCe.js";
|
|
28
|
+
import { s as Is } from "../gestures-D2Fdra_G.js";
|
|
29
|
+
import { f as Bs } from "../dom-0S_WDL4g.js";
|
|
29
30
|
import { aptechkaTheme as hs } from "../theme/index.js";
|
|
30
|
-
import {
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
31
|
+
import { elementResizer as ns } from "../element-resizer/index.js";
|
|
32
|
+
import { d as ms } from "../function-C10DGppn.js";
|
|
33
|
+
var Hs = Object.defineProperty, Gs = Object.getOwnPropertyDescriptor, Ks = (e, i, r, h) => {
|
|
34
|
+
for (var n = h > 1 ? void 0 : h ? Gs(i, r) : i, u = e.length - 1, f; u >= 0; u--)
|
|
35
|
+
(f = e[u]) && (n = (h ? f(i, r, n) : f(n)) || n);
|
|
36
|
+
return h && n && Hs(i, r, n), n;
|
|
35
37
|
}, Qe = (e, i, r) => {
|
|
36
38
|
if (!i.has(e))
|
|
37
39
|
throw TypeError("Cannot " + r);
|
|
@@ -39,14 +41,14 @@ var Bs = Object.defineProperty, Hs = Object.getOwnPropertyDescriptor, Gs = (e, i
|
|
|
39
41
|
if (i.has(e))
|
|
40
42
|
throw TypeError("Cannot add the same private member more than once");
|
|
41
43
|
i instanceof WeakSet ? i.add(e) : i.set(e, r);
|
|
42
|
-
}, g = (e, i, r, h) => (Qe(e, i, "write to private field"), h ? h.call(e, r) : i.set(e, r), r), C = (e, i, r) => (Qe(e, i, "access private method"), r),
|
|
43
|
-
class
|
|
44
|
+
}, g = (e, i, r, h) => (Qe(e, i, "write to private field"), h ? h.call(e, r) : i.set(e, r), r), C = (e, i, r) => (Qe(e, i, "access private method"), r), p, O, j, N, tt, Lt, D, St, ne, ae, Vt, $t, Ft, w, We, S, oe, le, L, b, K, Z, Wt, at, W, qt, vt, Gt, Kt, ee, Pe, Tt, se, Ee, Xe, Me, Ye, ce, Fe, ue, Oe, Mt, Le, ze, Ss, Nt, pe, De, V, k, pt, X;
|
|
45
|
+
class Us {
|
|
44
46
|
constructor(i, r) {
|
|
45
47
|
F(this, V, void 0);
|
|
46
48
|
F(this, k, void 0);
|
|
47
49
|
F(this, pt, 0);
|
|
48
50
|
F(this, X, 0);
|
|
49
|
-
A(this, V, i), A(this, k, r),
|
|
51
|
+
A(this, V, i), A(this, k, r), Et.register(o(this, V));
|
|
50
52
|
}
|
|
51
53
|
get size() {
|
|
52
54
|
return o(this, pt);
|
|
@@ -55,7 +57,7 @@ class Ks {
|
|
|
55
57
|
return o(this, X);
|
|
56
58
|
}
|
|
57
59
|
destroy() {
|
|
58
|
-
|
|
60
|
+
Et.unregister(o(this, V)), o(this, V).style.transform = "";
|
|
59
61
|
}
|
|
60
62
|
resize() {
|
|
61
63
|
A(this, pt, o(this, k).vertical ? o(this, V).offsetHeight : o(this, V).offsetWidth), A(this, X, o(this, k).vertical ? Ce(o(this, V)) : ye(o(this, V))), A(this, X, o(this, X) - o(this, k).contentPosition);
|
|
@@ -63,17 +65,17 @@ class Ks {
|
|
|
63
65
|
transform() {
|
|
64
66
|
let i = 0;
|
|
65
67
|
const r = o(this, k).viewportSize - o(this, pt);
|
|
66
|
-
o(this, k).infiniteCSSProperty.current && o(this, k).overscroll && o(this, X) + o(this, pt) < o(this, k).currentScrollValue && (i = o(this, k).distance * -1 - o(this, k).gap),
|
|
68
|
+
o(this, k).infiniteCSSProperty.current && o(this, k).overscroll && o(this, X) + o(this, pt) < o(this, k).currentScrollValue && (i = o(this, k).distance * -1 - o(this, k).gap), Et.update(
|
|
67
69
|
o(this, V),
|
|
68
70
|
o(this, k).axisAttibute.current,
|
|
69
71
|
i
|
|
70
72
|
);
|
|
71
|
-
const h = o(this, k).currentScrollValue + i, n = o(this, X) - o(this, k).viewportSize - r,
|
|
72
|
-
o(this, k).vertical ? o(this, V).style.transform = `translate3d(0px, ${
|
|
73
|
+
const h = o(this, k).currentScrollValue + i, n = o(this, X) - o(this, k).viewportSize - r, u = o(this, X) + o(this, pt) + r, f = qe(h, n, u);
|
|
74
|
+
o(this, k).vertical ? o(this, V).style.transform = `translate3d(0px, ${f * -1}px, 0px)` : o(this, V).style.transform = `translate3d(${f * -1}px, 0px, 0px)`;
|
|
73
75
|
}
|
|
74
76
|
}
|
|
75
77
|
V = new WeakMap(), k = new WeakMap(), pt = new WeakMap(), X = new WeakMap();
|
|
76
|
-
const
|
|
78
|
+
const qs = Je({
|
|
77
79
|
":host": {
|
|
78
80
|
position: "relative",
|
|
79
81
|
width: "100%",
|
|
@@ -105,17 +107,17 @@ const Us = Je({
|
|
|
105
107
|
flexShrink: "0"
|
|
106
108
|
}
|
|
107
109
|
});
|
|
108
|
-
let xe = class extends
|
|
110
|
+
let xe = class extends ds {
|
|
109
111
|
constructor() {
|
|
110
|
-
super(), l(this,
|
|
112
|
+
super(), l(this, ee), l(this, Tt), l(this, Ee), l(this, Me), l(this, ce), l(this, ue), l(this, ze), l(this, pe), l(this, p, null), l(this, O, new m(this, "--axis", "y")), l(this, j, new m(this, "--pages", 0, {
|
|
111
113
|
validate: (e) => Math.max(0, e - 1)
|
|
112
|
-
})), l(this, N, new
|
|
114
|
+
})), l(this, N, new m(this, "--split", !1)), l(this, tt, new m(this, "--sectional", !1)), l(this, Lt, new m(
|
|
113
115
|
this,
|
|
114
116
|
"--wheel-max-delta",
|
|
115
117
|
!1
|
|
116
|
-
)), l(this, D, new
|
|
118
|
+
)), l(this, D, new m(this, "--infinite", !1)), l(this, St, new m(this, "--damping", 20)), l(this, ne, new m(this, "--mass", 0)), l(this, ae, new m(this, "--stiffness", 0)), l(this, Vt, new m(this, "--mouse-drag", !1)), l(this, $t, new m(this, "--disabled", !1)), l(this, Ft, new m(this, "--hibernated", !1)), l(this, w, null), l(this, We, null), l(this, S, []), l(this, oe, 0), l(this, le, 0), l(this, L, 0), l(this, b, 0), l(this, K, 0), l(this, Z, null), l(this, Wt, null), l(this, at, null), l(this, W, new mt(0)), l(this, qt, 0), l(this, vt, 0), l(this, Gt, !0), l(this, Kt, !0), l(this, Mt, () => {
|
|
117
119
|
const e = this.currentScrollValue / s(this, b) || 0;
|
|
118
|
-
if (g(this,
|
|
120
|
+
if (g(this, oe, this.vertical ? Ce(this) : ye(this)), g(this, le, this.vertical ? Ce(s(this, w)) : ye(s(this, w))), g(this, L, this.vertical ? this.offsetHeight : this.offsetWidth), s(this, j).current) {
|
|
119
121
|
g(this, b, s(this, L) * s(this, j).current);
|
|
120
122
|
const i = s(this, b) + s(this, L);
|
|
121
123
|
this.vertical ? (s(this, w).style.width = i + "px", s(this, w).style.height = "100%") : (s(this, w).style.height = i + "px", s(this, w).style.width = "100%");
|
|
@@ -127,48 +129,48 @@ let xe = class extends fs {
|
|
|
127
129
|
getComputedStyle(s(this, w)).columnGap
|
|
128
130
|
)), !s(this, D).current) {
|
|
129
131
|
const i = getComputedStyle(this);
|
|
130
|
-
g(this, b, s(this, b) + (this.vertical ? parseFloat(i.paddingBlockStart) + parseFloat(i.paddingBlockEnd) : parseFloat(i.paddingInlineStart) + parseFloat(i.paddingInlineEnd))), s(this,
|
|
132
|
+
g(this, b, s(this, b) + (this.vertical ? parseFloat(i.paddingBlockStart) + parseFloat(i.paddingBlockEnd) : parseFloat(i.paddingInlineStart) + parseFloat(i.paddingInlineEnd))), s(this, p).max = s(this, b);
|
|
131
133
|
}
|
|
132
|
-
if (s(this,
|
|
134
|
+
if (s(this, S).forEach((i) => {
|
|
133
135
|
i.resize(), i.transform();
|
|
134
|
-
}), s(this, D).current && s(this,
|
|
135
|
-
const i = s(this,
|
|
136
|
+
}), s(this, D).current && s(this, S).length) {
|
|
137
|
+
const i = s(this, S)[s(this, S).length - 1], r = i.position + i.size - s(this, L), h = s(this, b) - r;
|
|
136
138
|
g(this, vt, i.position + i.size + h);
|
|
137
139
|
} else
|
|
138
140
|
g(this, vt, s(this, b));
|
|
139
|
-
if (s(this, tt).current && s(this,
|
|
140
|
-
const i = s(this,
|
|
141
|
-
s(this,
|
|
141
|
+
if (s(this, tt).current && s(this, S).length) {
|
|
142
|
+
const i = s(this, S)[s(this, W).current];
|
|
143
|
+
s(this, p).set(i.position, !0);
|
|
142
144
|
} else
|
|
143
|
-
s(this,
|
|
145
|
+
s(this, p).set(e * s(this, b), !0);
|
|
144
146
|
}), l(this, Le, () => {
|
|
145
147
|
const e = this.currentScrollValue;
|
|
146
|
-
if (g(this,
|
|
148
|
+
if (g(this, qt, Math.max(0, e - s(this, b))), s(this, S).length) {
|
|
147
149
|
let i = 0;
|
|
148
|
-
for (let r = 0; r < s(this,
|
|
149
|
-
const h = s(this,
|
|
150
|
+
for (let r = 0; r < s(this, S).length; r++) {
|
|
151
|
+
const h = s(this, S)[r];
|
|
150
152
|
h.transform(), this.targetScrollValue + this.viewportSize / 2 >= h.position && (i = r);
|
|
151
153
|
}
|
|
152
154
|
s(this, W).current = i;
|
|
153
155
|
} else
|
|
154
156
|
this.vertical ? s(this, w).style.transform = `translate3d(0px, ${e * -1}px, 0px)` : s(this, w).style.transform = `translate3d(${e * -1}px, 0px, 0px)`;
|
|
155
|
-
|
|
157
|
+
Et.update(
|
|
156
158
|
this,
|
|
157
159
|
s(this, O).current,
|
|
158
160
|
e
|
|
159
161
|
);
|
|
160
|
-
}), l(this,
|
|
162
|
+
}), l(this, Nt, (e, i) => {
|
|
161
163
|
if (!(e === "drag" && !Ts.isMobile && !s(this, Vt).current))
|
|
162
164
|
if (s(this, tt).current) {
|
|
163
165
|
const r = Math.sign(i);
|
|
164
|
-
s(this,
|
|
166
|
+
s(this, S).length ? this.shiftSections(r) : s(this, p).shift(r * s(this, L));
|
|
165
167
|
} else
|
|
166
|
-
s(this,
|
|
167
|
-
}), Ue && (g(this,
|
|
168
|
+
s(this, p).shift(i);
|
|
169
|
+
}), Ue && (g(this, p, new xs(0, {
|
|
168
170
|
damping: 0.01,
|
|
169
171
|
min: 0,
|
|
170
|
-
order:
|
|
171
|
-
})), this.openShadow(
|
|
172
|
+
order: As.SCROLL
|
|
173
|
+
})), this.openShadow(qs), Ze(this, {
|
|
172
174
|
tabIndex: 0,
|
|
173
175
|
children: [
|
|
174
176
|
$e({
|
|
@@ -179,7 +181,7 @@ let xe = class extends fs {
|
|
|
179
181
|
class: "content",
|
|
180
182
|
children: [ke({ ref: (e) => g(this, We, e) })],
|
|
181
183
|
style: {
|
|
182
|
-
flexDirection: new
|
|
184
|
+
flexDirection: new Fs(
|
|
183
185
|
s(this, O),
|
|
184
186
|
(e) => e === "x" ? "row" : "column"
|
|
185
187
|
)
|
|
@@ -187,38 +189,40 @@ let xe = class extends fs {
|
|
|
187
189
|
ref: (e) => g(this, w, e)
|
|
188
190
|
})
|
|
189
191
|
]
|
|
190
|
-
}), g(this, Z, new
|
|
191
|
-
s(this, w).style.flexDirection = e === "x" ? "row" : "column", s(this, Z).axis = s(this, Lt).current ? "max" : e, s(this, Wt).dimension = e === "x" ? "width" : "height", s(this, at).axis = e, e === "x" ? this.style.touchAction = "pan-y" : e === "y" && (this.style.touchAction = "pan-x"), this.isConnected && s(this,
|
|
192
|
+
}), g(this, Z, new Os({ element: this })), s(this, Z).changeEvent.subscribe(s(this, Nt)), g(this, Wt, new zs({ element: this })), s(this, Wt).changeEvent.subscribe(s(this, Nt)), g(this, at, new Ds({ element: this })), s(this, at).changeEvent.subscribe(s(this, Nt)), s(this, O).subscribe(({ current: e }) => {
|
|
193
|
+
s(this, w).style.flexDirection = e === "x" ? "row" : "column", s(this, Z).axis = s(this, Lt).current ? "max" : e, s(this, Wt).dimension = e === "x" ? "width" : "height", s(this, at).axis = e, e === "x" ? this.style.touchAction = "pan-y" : e === "y" && (this.style.touchAction = "pan-x"), this.isConnected && s(this, Mt).call(this);
|
|
192
194
|
}), s(this, Lt).subscribe((e) => {
|
|
193
195
|
s(this, Z).axis = e.current ? "max" : s(this, O).current;
|
|
194
196
|
}), s(this, j).subscribe(() => {
|
|
195
|
-
this.isConnected && s(this,
|
|
197
|
+
this.isConnected && s(this, Mt).call(this);
|
|
196
198
|
}), s(this, N).subscribe(({ current: e }) => {
|
|
197
|
-
this.isConnected && (e ? C(this,
|
|
199
|
+
this.isConnected && (e ? C(this, ee, Pe).call(this) : C(this, Tt, se).call(this));
|
|
198
200
|
}), s(this, tt).subscribe((e) => {
|
|
199
|
-
s(this, W).current = 0, s(this, Z).debounce = e.current, s(this, at).swipe = e.current, s(this,
|
|
201
|
+
s(this, W).current = 0, s(this, Z).debounce = e.current, s(this, at).swipe = e.current, s(this, p).reset(), this.isConnected && (e.current && !e.previous ? C(this, ee, Pe).call(this) : !e.current && e.previous && C(this, Tt, se).call(this));
|
|
200
202
|
}), s(this, D).subscribe((e) => {
|
|
201
|
-
e.current ? (this.isConnected && (s(this,
|
|
202
|
-
}), s(this,
|
|
203
|
-
s(this,
|
|
204
|
-
}), s(this, he).subscribe((e) => {
|
|
205
|
-
s(this, f).mass = e.current;
|
|
203
|
+
e.current ? (this.isConnected && (s(this, S).length || (s(this, N).current = !0)), s(this, S).length && (s(this, p).max = 1 / 0, s(this, p).min = -1 / 0)) : (g(this, qt, 0), s(this, p).max = s(this, b), s(this, p).min = 0);
|
|
204
|
+
}), s(this, St).subscribe((e) => {
|
|
205
|
+
s(this, p).damping = e.current;
|
|
206
206
|
}), s(this, ne).subscribe((e) => {
|
|
207
|
-
s(this,
|
|
207
|
+
s(this, p).mass = e.current;
|
|
208
|
+
}), s(this, ae).subscribe((e) => {
|
|
209
|
+
s(this, p).stiffness = e.current;
|
|
208
210
|
}), s(this, $t).subscribe((e) => {
|
|
209
|
-
e.current && !e.previous ? C(this,
|
|
211
|
+
e.current && !e.previous ? C(this, Ee, Xe).call(this) : !e.current && e.previous && C(this, Me, Ye).call(this);
|
|
210
212
|
}), s(this, Ft).subscribe((e) => {
|
|
211
|
-
e.current && !e.previous ? C(this,
|
|
213
|
+
e.current && !e.previous ? C(this, ce, Fe).call(this) : !e.current && e.previous && C(this, ue, Oe).call(this);
|
|
214
|
+
}), s(this, p).isRunning.subscribe((e) => {
|
|
215
|
+
this.classList.toggle("active", e.current);
|
|
212
216
|
}));
|
|
213
217
|
}
|
|
214
218
|
get dampingCSSProperty() {
|
|
215
|
-
return s(this,
|
|
219
|
+
return s(this, St);
|
|
216
220
|
}
|
|
217
221
|
get maxxCSSProperty() {
|
|
218
|
-
return s(this,
|
|
222
|
+
return s(this, ne);
|
|
219
223
|
}
|
|
220
224
|
get stiffnessCSSProperty() {
|
|
221
|
-
return s(this,
|
|
225
|
+
return s(this, ae);
|
|
222
226
|
}
|
|
223
227
|
get mouseDragCSSProperty() {
|
|
224
228
|
return s(this, Vt);
|
|
@@ -239,7 +243,7 @@ let xe = class extends fs {
|
|
|
239
243
|
return s(this, D);
|
|
240
244
|
}
|
|
241
245
|
get dampingAttibute() {
|
|
242
|
-
return s(this,
|
|
246
|
+
return s(this, St);
|
|
243
247
|
}
|
|
244
248
|
get disabledAttibute() {
|
|
245
249
|
return s(this, $t);
|
|
@@ -248,22 +252,22 @@ let xe = class extends fs {
|
|
|
248
252
|
return s(this, Ft);
|
|
249
253
|
}
|
|
250
254
|
get currentScrollValue() {
|
|
251
|
-
return C(this,
|
|
255
|
+
return C(this, pe, De).call(this, "current");
|
|
252
256
|
}
|
|
253
257
|
get targetScrollValue() {
|
|
254
|
-
return C(this,
|
|
258
|
+
return C(this, pe, De).call(this, "target");
|
|
255
259
|
}
|
|
256
260
|
get contentElement() {
|
|
257
261
|
return s(this, w);
|
|
258
262
|
}
|
|
259
263
|
get sections() {
|
|
260
|
-
return s(this,
|
|
264
|
+
return s(this, S);
|
|
261
265
|
}
|
|
262
266
|
get position() {
|
|
263
|
-
return s(this,
|
|
267
|
+
return s(this, oe);
|
|
264
268
|
}
|
|
265
269
|
get contentPosition() {
|
|
266
|
-
return s(this,
|
|
270
|
+
return s(this, le);
|
|
267
271
|
}
|
|
268
272
|
get viewportSize() {
|
|
269
273
|
return s(this, L);
|
|
@@ -284,7 +288,7 @@ let xe = class extends fs {
|
|
|
284
288
|
return s(this, D).current ? s(this, vt) + s(this, K) : s(this, vt);
|
|
285
289
|
}
|
|
286
290
|
get overscroll() {
|
|
287
|
-
return s(this,
|
|
291
|
+
return s(this, qt);
|
|
288
292
|
}
|
|
289
293
|
get vertical() {
|
|
290
294
|
return s(this, O).current === "y";
|
|
@@ -296,25 +300,25 @@ let xe = class extends fs {
|
|
|
296
300
|
return this.targetScrollValue / this.infiniteDistance || 0;
|
|
297
301
|
}
|
|
298
302
|
get speed() {
|
|
299
|
-
return s(this,
|
|
303
|
+
return s(this, p).speed;
|
|
300
304
|
}
|
|
301
305
|
get direction() {
|
|
302
|
-
return s(this,
|
|
306
|
+
return s(this, p).direction;
|
|
303
307
|
}
|
|
304
308
|
get isRunning() {
|
|
305
|
-
return s(this,
|
|
309
|
+
return s(this, p).isRunning;
|
|
306
310
|
}
|
|
307
311
|
get scrollWidth() {
|
|
308
|
-
return s(this, O).current === "y" ? 0 : s(this,
|
|
312
|
+
return s(this, O).current === "y" ? 0 : s(this, p).length;
|
|
309
313
|
}
|
|
310
314
|
get scrollHeight() {
|
|
311
|
-
return s(this, O).current === "x" ? 0 : s(this,
|
|
315
|
+
return s(this, O).current === "x" ? 0 : s(this, p).length;
|
|
312
316
|
}
|
|
313
317
|
onScroll(...e) {
|
|
314
|
-
return s(this,
|
|
318
|
+
return s(this, p).subscribe(...e);
|
|
315
319
|
}
|
|
316
320
|
offScroll(...e) {
|
|
317
|
-
s(this,
|
|
321
|
+
s(this, p).unsubscribe(...e);
|
|
318
322
|
}
|
|
319
323
|
//https://github.com/pmndrs/drei/blob/d3282cdd02d170ef603a5e096505d83dc93cd57a/src/web/ScrollControls.tsx#L85C7-L100C9
|
|
320
324
|
range(e, i, r = 0) {
|
|
@@ -330,48 +334,48 @@ let xe = class extends fs {
|
|
|
330
334
|
}
|
|
331
335
|
// TODO: Поправить значение когда скролл не секционный ??
|
|
332
336
|
scrollToSection(e, i = "smooth") {
|
|
333
|
-
if (!s(this,
|
|
337
|
+
if (!s(this, S).length)
|
|
334
338
|
return;
|
|
335
339
|
const r = s(this, W).current;
|
|
336
340
|
C(this, ze, Ss).call(this, e);
|
|
337
|
-
const h = s(this,
|
|
341
|
+
const h = s(this, S)[r], n = s(this, S)[s(this, W).current];
|
|
338
342
|
if (h && n) {
|
|
339
|
-
let
|
|
340
|
-
const
|
|
341
|
-
s(this, D).current ? s(this, W).current === 0 && r ===
|
|
343
|
+
let u = 0;
|
|
344
|
+
const f = s(this, S).length - 1;
|
|
345
|
+
s(this, D).current ? s(this, W).current === 0 && r === f ? u = s(this, b) + s(this, L) - h.position + s(this, K) : s(this, W).current === f && r === 0 ? u = n.position - (s(this, b) + s(this, L) + s(this, K)) : u = n.position - h.position : u = n.position - h.position, s(this, p).shift(u, i === "instant");
|
|
342
346
|
}
|
|
343
347
|
}
|
|
344
348
|
shiftSections(e, i = "smooth") {
|
|
345
|
-
s(this,
|
|
349
|
+
s(this, S).length && this.scrollToSection(s(this, W).current + e, i);
|
|
346
350
|
}
|
|
347
351
|
setPosition(e, i = "smooth") {
|
|
348
|
-
s(this,
|
|
352
|
+
s(this, p).set(e, i === "instant");
|
|
349
353
|
}
|
|
350
354
|
connectedCallback() {
|
|
351
|
-
s(this, O).observe(), s(this, j).observe(), s(this, N).observe(), s(this, tt).observe(), s(this, Lt).observe(), s(this, D).observe(), s(this,
|
|
355
|
+
s(this, O).observe(), s(this, j).observe(), s(this, N).observe(), s(this, tt).observe(), s(this, Lt).observe(), s(this, D).observe(), s(this, St).observe(), s(this, Vt).observe(), s(this, $t).observe(), s(this, Ft).observe(), C(this, ue, Oe).call(this);
|
|
352
356
|
}
|
|
353
357
|
disconnectedCallback() {
|
|
354
|
-
s(this, O).unobserve(), s(this, j).unobserve(), s(this, N).unobserve(), s(this, tt).unobserve(), s(this, Lt).unobserve(), s(this, D).unobserve(), s(this,
|
|
358
|
+
s(this, O).unobserve(), s(this, j).unobserve(), s(this, N).unobserve(), s(this, tt).unobserve(), s(this, Lt).unobserve(), s(this, D).unobserve(), s(this, St).unobserve(), s(this, Vt).unobserve(), s(this, $t).unobserve(), s(this, Ft).unobserve(), C(this, ce, Fe).call(this);
|
|
355
359
|
}
|
|
356
360
|
};
|
|
357
|
-
|
|
361
|
+
p = /* @__PURE__ */ new WeakMap();
|
|
358
362
|
O = /* @__PURE__ */ new WeakMap();
|
|
359
363
|
j = /* @__PURE__ */ new WeakMap();
|
|
360
364
|
N = /* @__PURE__ */ new WeakMap();
|
|
361
365
|
tt = /* @__PURE__ */ new WeakMap();
|
|
362
366
|
Lt = /* @__PURE__ */ new WeakMap();
|
|
363
367
|
D = /* @__PURE__ */ new WeakMap();
|
|
364
|
-
|
|
365
|
-
he = /* @__PURE__ */ new WeakMap();
|
|
368
|
+
St = /* @__PURE__ */ new WeakMap();
|
|
366
369
|
ne = /* @__PURE__ */ new WeakMap();
|
|
370
|
+
ae = /* @__PURE__ */ new WeakMap();
|
|
367
371
|
Vt = /* @__PURE__ */ new WeakMap();
|
|
368
372
|
$t = /* @__PURE__ */ new WeakMap();
|
|
369
373
|
Ft = /* @__PURE__ */ new WeakMap();
|
|
370
374
|
w = /* @__PURE__ */ new WeakMap();
|
|
371
375
|
We = /* @__PURE__ */ new WeakMap();
|
|
372
|
-
|
|
373
|
-
ae = /* @__PURE__ */ new WeakMap();
|
|
376
|
+
S = /* @__PURE__ */ new WeakMap();
|
|
374
377
|
oe = /* @__PURE__ */ new WeakMap();
|
|
378
|
+
le = /* @__PURE__ */ new WeakMap();
|
|
375
379
|
L = /* @__PURE__ */ new WeakMap();
|
|
376
380
|
b = /* @__PURE__ */ new WeakMap();
|
|
377
381
|
K = /* @__PURE__ */ new WeakMap();
|
|
@@ -379,92 +383,92 @@ Z = /* @__PURE__ */ new WeakMap();
|
|
|
379
383
|
Wt = /* @__PURE__ */ new WeakMap();
|
|
380
384
|
at = /* @__PURE__ */ new WeakMap();
|
|
381
385
|
W = /* @__PURE__ */ new WeakMap();
|
|
382
|
-
|
|
386
|
+
qt = /* @__PURE__ */ new WeakMap();
|
|
383
387
|
vt = /* @__PURE__ */ new WeakMap();
|
|
384
|
-
Ht = /* @__PURE__ */ new WeakMap();
|
|
385
388
|
Gt = /* @__PURE__ */ new WeakMap();
|
|
386
|
-
|
|
389
|
+
Kt = /* @__PURE__ */ new WeakMap();
|
|
390
|
+
ee = /* @__PURE__ */ new WeakSet();
|
|
387
391
|
Pe = function() {
|
|
388
|
-
C(this, Tt,
|
|
389
|
-
e instanceof HTMLElement && s(this,
|
|
392
|
+
C(this, Tt, se).call(this), s(this, We).assignedElements().forEach((e) => {
|
|
393
|
+
e instanceof HTMLElement && s(this, S).push(new Us(e, this));
|
|
390
394
|
}), s(this, w).style.transform = "", this.dispatchEvent(
|
|
391
395
|
new CustomEvent("sectionsChange", {
|
|
392
396
|
composed: !0
|
|
393
397
|
})
|
|
394
|
-
), s(this,
|
|
398
|
+
), s(this, Mt).call(this);
|
|
395
399
|
};
|
|
396
400
|
Tt = /* @__PURE__ */ new WeakSet();
|
|
397
|
-
|
|
398
|
-
s(this,
|
|
401
|
+
se = function() {
|
|
402
|
+
s(this, S).forEach((e) => {
|
|
399
403
|
e.destroy();
|
|
400
|
-
}), g(this,
|
|
404
|
+
}), g(this, S, []), this.dispatchEvent(
|
|
401
405
|
new CustomEvent("sectionsChange", {
|
|
402
406
|
composed: !0
|
|
403
407
|
})
|
|
404
408
|
);
|
|
405
409
|
};
|
|
406
|
-
|
|
410
|
+
Ee = /* @__PURE__ */ new WeakSet();
|
|
407
411
|
Xe = function() {
|
|
408
|
-
s(this,
|
|
412
|
+
s(this, Gt) || (g(this, Gt, !0), s(this, p).unsubscribe(s(this, Le)), s(this, p).unlistenAnimationFrame(), s(this, Z).disconnect(), s(this, Wt).disconnect(), s(this, at).disconnect());
|
|
409
413
|
};
|
|
410
|
-
|
|
414
|
+
Me = /* @__PURE__ */ new WeakSet();
|
|
411
415
|
Ye = function() {
|
|
412
|
-
s(this,
|
|
416
|
+
s(this, Gt) && (g(this, Gt, !1), s(this, p).subscribe(s(this, Le)), s(this, Z).connect(), s(this, Wt).connect(), s(this, at).connect());
|
|
413
417
|
};
|
|
414
|
-
|
|
418
|
+
ce = /* @__PURE__ */ new WeakSet();
|
|
415
419
|
Fe = function() {
|
|
416
|
-
s(this,
|
|
420
|
+
s(this, Kt) || (g(this, Kt, !0), Ht.unsubscribe(s(this, Mt)), s(this, p).reset(), C(this, Ee, Xe).call(this), s(this, w).style.transform = "", s(this, N).current && C(this, Tt, se).call(this), Et.unregister(this));
|
|
417
421
|
};
|
|
418
|
-
|
|
422
|
+
ue = /* @__PURE__ */ new WeakSet();
|
|
419
423
|
Oe = function() {
|
|
420
|
-
s(this,
|
|
424
|
+
s(this, Kt) && (g(this, Kt, !1), s(this, N).current && C(this, ee, Pe).call(this), Et.register(this), Ht.subscribe(s(this, Mt), Ne.SCROLL), C(this, Me, Ye).call(this));
|
|
421
425
|
};
|
|
422
|
-
|
|
426
|
+
Mt = /* @__PURE__ */ new WeakMap();
|
|
423
427
|
Le = /* @__PURE__ */ new WeakMap();
|
|
424
428
|
ze = /* @__PURE__ */ new WeakSet();
|
|
425
429
|
Ss = function(e) {
|
|
426
|
-
s(this, D).current ? (s(this, W).current = e % s(this,
|
|
430
|
+
s(this, D).current ? (s(this, W).current = e % s(this, S).length, s(this, W).current = s(this, W).current < 0 ? s(this, S).length + s(this, W).current : s(this, W).current) : s(this, W).current = qe(e, 0, s(this, S).length - 1);
|
|
427
431
|
};
|
|
428
|
-
|
|
429
|
-
|
|
432
|
+
Nt = /* @__PURE__ */ new WeakMap();
|
|
433
|
+
pe = /* @__PURE__ */ new WeakSet();
|
|
430
434
|
De = function(e = "current") {
|
|
431
|
-
if (s(this, D).current && s(this,
|
|
432
|
-
const i = s(this,
|
|
435
|
+
if (s(this, D).current && s(this, S).length) {
|
|
436
|
+
const i = s(this, p)[e] % (s(this, b) + s(this, L) + s(this, K));
|
|
433
437
|
return i < 0 ? s(this, b) + i + s(this, L) + s(this, K) : i;
|
|
434
438
|
} else
|
|
435
|
-
return s(this,
|
|
439
|
+
return s(this, p)[e];
|
|
436
440
|
};
|
|
437
|
-
xe =
|
|
438
|
-
|
|
441
|
+
xe = Ks([
|
|
442
|
+
Ut("e-scroll")
|
|
439
443
|
], xe);
|
|
440
|
-
var
|
|
441
|
-
class Ve extends
|
|
444
|
+
var ie;
|
|
445
|
+
class Ve extends ds {
|
|
442
446
|
constructor() {
|
|
443
447
|
super(...arguments);
|
|
444
|
-
F(this,
|
|
448
|
+
F(this, ie, null);
|
|
445
449
|
}
|
|
446
450
|
get scrollElement() {
|
|
447
|
-
return o(this,
|
|
451
|
+
return o(this, ie);
|
|
448
452
|
}
|
|
449
453
|
connectedCallback() {
|
|
450
|
-
const r =
|
|
451
|
-
r instanceof xe ? A(this,
|
|
454
|
+
const r = Bs(this, xe);
|
|
455
|
+
r instanceof xe ? A(this, ie, r) : console.error(this, "e-scroll not found");
|
|
452
456
|
}
|
|
453
457
|
}
|
|
454
|
-
|
|
455
|
-
var
|
|
456
|
-
for (var n = h > 1 ? void 0 : h ?
|
|
457
|
-
(
|
|
458
|
-
return h && n &&
|
|
459
|
-
},
|
|
458
|
+
ie = new WeakMap();
|
|
459
|
+
var Ns = Object.defineProperty, Zs = Object.getOwnPropertyDescriptor, Js = (e, i, r, h) => {
|
|
460
|
+
for (var n = h > 1 ? void 0 : h ? Zs(i, r) : i, u = e.length - 1, f; u >= 0; u--)
|
|
461
|
+
(f = e[u]) && (n = (h ? f(i, r, n) : f(n)) || n);
|
|
462
|
+
return h && n && Ns(i, r, n), n;
|
|
463
|
+
}, vs = (e, i, r) => {
|
|
460
464
|
if (!i.has(e))
|
|
461
465
|
throw TypeError("Cannot " + r);
|
|
462
|
-
},
|
|
466
|
+
}, c = (e, i, r) => (vs(e, i, "read from private field"), r ? r.call(e) : i.get(e)), G = (e, i, r) => {
|
|
463
467
|
if (i.has(e))
|
|
464
468
|
throw TypeError("Cannot add the same private member more than once");
|
|
465
469
|
i instanceof WeakSet ? i.add(e) : i.set(e, r);
|
|
466
|
-
}, dt = (e, i, r, h) => (
|
|
467
|
-
const
|
|
470
|
+
}, dt = (e, i, r, h) => (vs(e, i, "write to private field"), h ? h.call(e, r) : i.set(e, r), r), Zt, z, et, st, Jt, Qt, Ot, fe, de, me;
|
|
471
|
+
const Qs = Je({
|
|
468
472
|
":host": {
|
|
469
473
|
display: "inline-block",
|
|
470
474
|
zIndex: "1",
|
|
@@ -493,68 +497,73 @@ const Js = Je({
|
|
|
493
497
|
touchAction: "none"
|
|
494
498
|
}
|
|
495
499
|
});
|
|
496
|
-
let
|
|
500
|
+
let as = class extends Ve {
|
|
497
501
|
constructor() {
|
|
498
|
-
super(), G(this,
|
|
502
|
+
super(), G(this, Zt, null), G(this, z, null), G(this, et, !1), G(this, st, 0), G(this, Jt, 0), G(this, Qt, 0), G(this, Ot, () => {
|
|
499
503
|
dt(this, et, this.offsetWidth > this.offsetHeight);
|
|
500
|
-
const e =
|
|
501
|
-
dt(this, st, e / ((this.scrollElement.scrollSize + this.scrollElement.viewportSize) / e)), dt(this, st, Math.max(
|
|
504
|
+
const e = c(this, et) ? this.offsetWidth : this.offsetHeight;
|
|
505
|
+
dt(this, st, e / ((this.scrollElement.scrollSize + this.scrollElement.viewportSize) / e)), dt(this, st, Math.max(c(this, st), 30)), c(this, et) ? (c(this, z).style.width = c(this, st) + "px", c(this, z).style.height = "100%") : (c(this, z).style.width = "100%", c(this, z).style.height = c(this, st) + "px"), dt(this, Jt, e - c(this, st)), this.scrollElement.scrollSize || (this.style.display = "none");
|
|
502
506
|
}), G(this, fe, () => {
|
|
503
|
-
dt(this,
|
|
507
|
+
dt(this, Qt, this.scrollElement.currentProgress * c(this, Jt)), c(this, et) ? c(this, z).style.transform = `translate3d(${c(this, Qt)}px, 0px, 0px)` : c(this, z).style.transform = `translate3d(0px, ${c(this, Qt)}px, 0px)`;
|
|
504
508
|
}), G(this, de, () => {
|
|
505
509
|
this.setAttribute("axis", this.scrollElement.axisAttibute.current);
|
|
506
|
-
}), G(this,
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
510
|
+
}), G(this, me, (e) => {
|
|
511
|
+
document.documentElement.classList.add("grabbing"), Is(
|
|
512
|
+
(h) => {
|
|
513
|
+
const n = c(this, et) ? h.x : h.y, u = this.scrollElement.distance / c(this, Jt), f = (n - r) * u;
|
|
514
|
+
this.scrollElement.setPosition(i + f);
|
|
515
|
+
},
|
|
516
|
+
() => {
|
|
517
|
+
document.documentElement.classList.remove("grabbing");
|
|
518
|
+
}
|
|
519
|
+
);
|
|
520
|
+
const i = this.scrollElement.targetScrollValue, r = c(this, et) ? e.x : e.y;
|
|
521
|
+
}), Ue && (this.openShadow(Qs), Ze(this, {
|
|
513
522
|
slot: "static",
|
|
514
523
|
"drag-dead-zone": "",
|
|
515
524
|
children: [
|
|
516
525
|
ke({
|
|
517
|
-
ref: (e) => dt(this,
|
|
526
|
+
ref: (e) => dt(this, Zt, e),
|
|
518
527
|
children: $e({ class: "default-thumb" })
|
|
519
528
|
})
|
|
520
529
|
]
|
|
521
530
|
}));
|
|
522
531
|
}
|
|
523
532
|
get thumbElement() {
|
|
524
|
-
return
|
|
533
|
+
return c(this, z);
|
|
525
534
|
}
|
|
526
535
|
connectedCallback() {
|
|
527
536
|
super.connectedCallback();
|
|
528
|
-
const e =
|
|
529
|
-
dt(this, z, e),
|
|
537
|
+
const e = c(this, Zt).assignedElements()[0] || c(this, Zt).firstElementChild;
|
|
538
|
+
dt(this, z, e), c(this, z).addEventListener("pointerdown", c(this, me)), Ht.subscribe(c(this, Ot), Ne.SCROLL + 1), ns.subscribe(this, c(this, Ot)), this.scrollElement.onScroll(c(this, fe)), this.scrollElement.axisAttibute.subscribe(c(this, de));
|
|
530
539
|
}
|
|
531
540
|
disconnectedCallback() {
|
|
532
|
-
|
|
541
|
+
c(this, z).removeEventListener("pointerdown", c(this, me)), Ht.unsubscribe(c(this, Ot)), ns.unsubscribe(c(this, Ot)), this.scrollElement.offScroll(c(this, fe)), this.scrollElement.axisAttibute.unsubscribe(c(this, de));
|
|
533
542
|
}
|
|
534
543
|
};
|
|
535
|
-
|
|
544
|
+
Zt = /* @__PURE__ */ new WeakMap();
|
|
536
545
|
z = /* @__PURE__ */ new WeakMap();
|
|
537
546
|
et = /* @__PURE__ */ new WeakMap();
|
|
538
547
|
st = /* @__PURE__ */ new WeakMap();
|
|
539
|
-
Zt = /* @__PURE__ */ new WeakMap();
|
|
540
548
|
Jt = /* @__PURE__ */ new WeakMap();
|
|
541
|
-
|
|
549
|
+
Qt = /* @__PURE__ */ new WeakMap();
|
|
550
|
+
Ot = /* @__PURE__ */ new WeakMap();
|
|
542
551
|
fe = /* @__PURE__ */ new WeakMap();
|
|
543
552
|
de = /* @__PURE__ */ new WeakMap();
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
],
|
|
548
|
-
const
|
|
553
|
+
me = /* @__PURE__ */ new WeakMap();
|
|
554
|
+
as = Js([
|
|
555
|
+
Ut("e-scrollbar")
|
|
556
|
+
], as);
|
|
557
|
+
const Xs = Je({
|
|
549
558
|
button: {
|
|
550
559
|
all: "inherit"
|
|
551
560
|
}
|
|
552
561
|
});
|
|
553
|
-
class
|
|
562
|
+
class gs extends Ve {
|
|
554
563
|
constructor() {
|
|
555
|
-
super(), this.openShadow(
|
|
564
|
+
super(), this.openShadow(Xs), Ue && Ze(this, {
|
|
556
565
|
children: [
|
|
557
|
-
|
|
566
|
+
Rs({
|
|
558
567
|
onClick: () => {
|
|
559
568
|
this.handleClick();
|
|
560
569
|
},
|
|
@@ -564,77 +573,77 @@ class vs extends Ve {
|
|
|
564
573
|
});
|
|
565
574
|
}
|
|
566
575
|
}
|
|
567
|
-
var
|
|
568
|
-
for (var n = h > 1 ? void 0 : h ?
|
|
569
|
-
(
|
|
570
|
-
return h && n &&
|
|
576
|
+
var Ys = Object.defineProperty, js = Object.getOwnPropertyDescriptor, ti = (e, i, r, h) => {
|
|
577
|
+
for (var n = h > 1 ? void 0 : h ? js(i, r) : i, u = e.length - 1, f; u >= 0; u--)
|
|
578
|
+
(f = e[u]) && (n = (h ? f(i, r, n) : f(n)) || n);
|
|
579
|
+
return h && n && Ys(i, r, n), n;
|
|
571
580
|
};
|
|
572
|
-
let
|
|
581
|
+
let os = class extends gs {
|
|
573
582
|
handleClick() {
|
|
574
583
|
const e = this.getAttribute("index"), i = this.getAttribute("behaviour");
|
|
575
584
|
this.scrollElement.scrollToSection(parseInt(e || "0"), i);
|
|
576
585
|
}
|
|
577
586
|
};
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
],
|
|
581
|
-
var
|
|
582
|
-
for (var n = h > 1 ? void 0 : h ?
|
|
583
|
-
(
|
|
584
|
-
return h && n &&
|
|
587
|
+
os = ti([
|
|
588
|
+
Ut("e-scroll-set-button")
|
|
589
|
+
], os);
|
|
590
|
+
var ei = Object.defineProperty, si = Object.getOwnPropertyDescriptor, ii = (e, i, r, h) => {
|
|
591
|
+
for (var n = h > 1 ? void 0 : h ? si(i, r) : i, u = e.length - 1, f; u >= 0; u--)
|
|
592
|
+
(f = e[u]) && (n = (h ? f(i, r, n) : f(n)) || n);
|
|
593
|
+
return h && n && ei(i, r, n), n;
|
|
585
594
|
};
|
|
586
|
-
let
|
|
595
|
+
let ls = class extends gs {
|
|
587
596
|
handleClick() {
|
|
588
597
|
const e = this.getAttribute("step"), i = this.getAttribute("behaviour");
|
|
589
598
|
this.scrollElement.shiftSections(parseInt(e || "1"), i);
|
|
590
599
|
}
|
|
591
600
|
};
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
],
|
|
595
|
-
var
|
|
596
|
-
for (var n = h > 1 ? void 0 : h ?
|
|
597
|
-
(
|
|
598
|
-
return h && n &&
|
|
599
|
-
},
|
|
601
|
+
ls = ii([
|
|
602
|
+
Ut("e-scroll-step-button")
|
|
603
|
+
], ls);
|
|
604
|
+
var ri = Object.defineProperty, hi = Object.getOwnPropertyDescriptor, ni = (e, i, r, h) => {
|
|
605
|
+
for (var n = h > 1 ? void 0 : h ? hi(i, r) : i, u = e.length - 1, f; u >= 0; u--)
|
|
606
|
+
(f = e[u]) && (n = (h ? f(i, r, n) : f(n)) || n);
|
|
607
|
+
return h && n && ri(i, r, n), n;
|
|
608
|
+
}, ws = (e, i, r) => {
|
|
600
609
|
if (!i.has(e))
|
|
601
610
|
throw TypeError("Cannot " + r);
|
|
602
|
-
}, xt = (e, i, r) => (
|
|
611
|
+
}, xt = (e, i, r) => (ws(e, i, "read from private field"), r ? r.call(e) : i.get(e)), cs = (e, i, r) => {
|
|
603
612
|
if (i.has(e))
|
|
604
613
|
throw TypeError("Cannot add the same private member more than once");
|
|
605
614
|
i instanceof WeakSet ? i.add(e) : i.set(e, r);
|
|
606
|
-
},
|
|
607
|
-
class
|
|
615
|
+
}, us = (e, i, r, h) => (ws(e, i, "write to private field"), h ? h.call(e, r) : i.set(e, r), r), gt, Xt, Y, ft, It, re, he, Bt;
|
|
616
|
+
class ai {
|
|
608
617
|
constructor(i, r, h) {
|
|
609
618
|
F(this, Y, void 0);
|
|
610
619
|
F(this, ft, void 0);
|
|
611
|
-
F(this,
|
|
612
|
-
F(this,
|
|
613
|
-
F(this,
|
|
614
|
-
o(this, ft).scrollToSection(o(this,
|
|
620
|
+
F(this, It, void 0);
|
|
621
|
+
F(this, re, void 0);
|
|
622
|
+
F(this, he, () => {
|
|
623
|
+
o(this, ft).scrollToSection(o(this, It), o(this, re));
|
|
615
624
|
});
|
|
616
|
-
F(this,
|
|
625
|
+
F(this, Bt, () => {
|
|
617
626
|
o(this, Y).classList.toggle(
|
|
618
627
|
"current",
|
|
619
|
-
o(this, ft).counter.current === o(this,
|
|
628
|
+
o(this, ft).counter.current === o(this, It)
|
|
620
629
|
);
|
|
621
630
|
});
|
|
622
|
-
A(this, Y, document.createElement("button")), A(this, ft, i), A(this,
|
|
631
|
+
A(this, Y, document.createElement("button")), A(this, ft, i), A(this, re, h), A(this, It, r), o(this, Y).addEventListener("click", o(this, he)), o(this, ft).counter.subscribe(o(this, Bt)), o(this, Bt).call(this);
|
|
623
632
|
}
|
|
624
633
|
get element() {
|
|
625
634
|
return o(this, Y);
|
|
626
635
|
}
|
|
627
636
|
destroy() {
|
|
628
|
-
o(this, Y).removeEventListener("click", o(this,
|
|
637
|
+
o(this, Y).removeEventListener("click", o(this, he)), o(this, ft).counter.unsubscribe(o(this, Bt)), o(this, Y).remove();
|
|
629
638
|
}
|
|
630
639
|
}
|
|
631
|
-
Y = new WeakMap(), ft = new WeakMap(),
|
|
632
|
-
let
|
|
640
|
+
Y = new WeakMap(), ft = new WeakMap(), It = new WeakMap(), re = new WeakMap(), he = new WeakMap(), Bt = new WeakMap();
|
|
641
|
+
let ps = class extends Ve {
|
|
633
642
|
constructor() {
|
|
634
|
-
super(...arguments),
|
|
635
|
-
xt(this, gt).forEach((e) => e.destroy()),
|
|
643
|
+
super(...arguments), cs(this, gt, []), cs(this, Xt, ms(() => {
|
|
644
|
+
xt(this, gt).forEach((e) => e.destroy()), us(this, gt, []);
|
|
636
645
|
for (let e = 0; e < this.scrollElement.sections.length; e++) {
|
|
637
|
-
const i = new
|
|
646
|
+
const i = new ai(
|
|
638
647
|
this.scrollElement,
|
|
639
648
|
e,
|
|
640
649
|
this.getAttribute("behaviour") || "smooth"
|
|
@@ -646,25 +655,25 @@ let us = class extends Ve {
|
|
|
646
655
|
connectedCallback() {
|
|
647
656
|
super.connectedCallback(), this.scrollElement.addEventListener(
|
|
648
657
|
"sectionsChange",
|
|
649
|
-
xt(this,
|
|
650
|
-
), xt(this,
|
|
658
|
+
xt(this, Xt)
|
|
659
|
+
), xt(this, Xt).call(this);
|
|
651
660
|
}
|
|
652
661
|
disconnectedCallback() {
|
|
653
662
|
this.scrollElement.removeEventListener(
|
|
654
663
|
"sectionsChange",
|
|
655
|
-
xt(this,
|
|
656
|
-
), xt(this, gt).forEach((e) => e.destroy()),
|
|
664
|
+
xt(this, Xt)
|
|
665
|
+
), xt(this, gt).forEach((e) => e.destroy()), us(this, gt, []);
|
|
657
666
|
}
|
|
658
667
|
};
|
|
659
668
|
gt = /* @__PURE__ */ new WeakMap();
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
],
|
|
664
|
-
var
|
|
665
|
-
for (var n = h > 1 ? void 0 : h ?
|
|
666
|
-
(
|
|
667
|
-
return h && n &&
|
|
669
|
+
Xt = /* @__PURE__ */ new WeakMap();
|
|
670
|
+
ps = ni([
|
|
671
|
+
Ut("e-scroll-bullet-buttons")
|
|
672
|
+
], ps);
|
|
673
|
+
var oi = Object.defineProperty, li = Object.getOwnPropertyDescriptor, ci = (e, i, r, h) => {
|
|
674
|
+
for (var n = h > 1 ? void 0 : h ? li(i, r) : i, u = e.length - 1, f; u >= 0; u--)
|
|
675
|
+
(f = e[u]) && (n = (h ? f(i, r, n) : f(n)) || n);
|
|
676
|
+
return h && n && oi(i, r, n), n;
|
|
668
677
|
}, je = (e, i, r) => {
|
|
669
678
|
if (!i.has(e))
|
|
670
679
|
throw TypeError("Cannot " + r);
|
|
@@ -672,47 +681,47 @@ var ai = Object.defineProperty, oi = Object.getOwnPropertyDescriptor, li = (e, i
|
|
|
672
681
|
if (i.has(e))
|
|
673
682
|
throw TypeError("Cannot add the same private member more than once");
|
|
674
683
|
i instanceof WeakSet ? i.add(e) : i.set(e, r);
|
|
675
|
-
}, d = (e, i, r, h) => (je(e, i, "write to private field"), h ? h.call(e, r) : i.set(e, r), r), _ = (e, i, r) => (je(e, i, "access private method"), r),
|
|
676
|
-
let
|
|
684
|
+
}, d = (e, i, r, h) => (je(e, i, "write to private field"), h ? h.call(e, r) : i.set(e, r), r), _ = (e, i, r) => (je(e, i, "access private method"), r), zt, wt, bt, _t, Ct, $, I, B, H, kt, M, ot, lt, rt, ht, nt, Dt, Yt, E, q, U, ct, ut, J, Se, v, At, Rt, ve, T, Q, x, P, R, jt, Pt, y, ge, Ae, ts, bs, Re, _s, Te, Cs, Ie, ys, Be, ks, He, Ws, Ge, Ps, we, te, it, yt, es, Es, ss, Ms, be, Ke, _e;
|
|
685
|
+
let fs = class extends Ve {
|
|
677
686
|
constructor() {
|
|
678
|
-
super(...arguments), a(this, ge), a(this, ts), a(this,
|
|
687
|
+
super(...arguments), a(this, ge), a(this, ts), a(this, Re), a(this, Te), a(this, Ie), a(this, Be), a(this, He), a(this, Ge), a(this, it), a(this, es), a(this, ss), a(this, be), a(this, zt, new m(this, "--target", "")), a(this, wt, new m(this, "--disabled", !1)), a(this, bt, new m(
|
|
679
688
|
this,
|
|
680
689
|
"--distance-offset",
|
|
681
690
|
0
|
|
682
|
-
)), a(this, _t, new
|
|
691
|
+
)), a(this, _t, new m(this, "--start-offset", 0)), a(this, Ct, new m(
|
|
683
692
|
this,
|
|
684
693
|
"--capture-once",
|
|
685
694
|
!1
|
|
686
|
-
)), a(this, $, new
|
|
695
|
+
)), a(this, $, new m(this, "--captured", "")), a(this, I, new m(this, "--released", "")), a(this, B, new m(
|
|
687
696
|
this,
|
|
688
697
|
"--captured-from-start",
|
|
689
698
|
""
|
|
690
|
-
)), a(this, H, new
|
|
699
|
+
)), a(this, H, new m(
|
|
691
700
|
this,
|
|
692
701
|
"--captured-from-finish",
|
|
693
702
|
""
|
|
694
|
-
)), a(this, kt, new
|
|
703
|
+
)), a(this, kt, new m(
|
|
695
704
|
this,
|
|
696
705
|
"--released-from-start",
|
|
697
706
|
""
|
|
698
|
-
)), a(this,
|
|
707
|
+
)), a(this, M, new m(
|
|
699
708
|
this,
|
|
700
709
|
"--released-from-finish",
|
|
701
710
|
""
|
|
702
|
-
)), a(this, ot, new
|
|
711
|
+
)), a(this, ot, new m(this, "--passed-var", "")), a(this, lt, new m(this, "--progress-var", "")), a(this, rt, new m(this, "--distance-var", "")), a(this, ht, new m(this, "--start-var", "")), a(this, nt, new m(this, "--finish-var", "")), a(this, Dt, new m(this, "--smoothstep", !1)), a(this, Yt, new m(
|
|
703
712
|
this,
|
|
704
713
|
"--smootherstep",
|
|
705
714
|
!1
|
|
706
|
-
)), a(this,
|
|
707
|
-
t(this, y) || (this.resize(), t(this,
|
|
708
|
-
}), a(this,
|
|
709
|
-
!t(this, y) && t(this,
|
|
710
|
-
}), a(this, _e,
|
|
711
|
-
const e =
|
|
715
|
+
)), a(this, E, new mt(!1)), a(this, q, new mt(!1)), a(this, U, new mt(!1)), a(this, ct, new mt(!1)), a(this, ut, new mt(!1)), a(this, J, new mt(!1)), a(this, Se, []), a(this, v, this), a(this, At, 0), a(this, Rt, 0), a(this, ve, 0), a(this, T, 0), a(this, Q, 0), a(this, x, 0), a(this, P, 0), a(this, R, 0), a(this, jt, !1), a(this, Pt, !1), a(this, y, !0), a(this, we, () => {
|
|
716
|
+
t(this, y) || (this.resize(), t(this, te).call(this));
|
|
717
|
+
}), a(this, te, () => {
|
|
718
|
+
!t(this, y) && t(this, jt) && this.tick();
|
|
719
|
+
}), a(this, _e, ms(() => {
|
|
720
|
+
const e = Et.getAll(this).reverse();
|
|
712
721
|
let i = 0;
|
|
713
722
|
e.forEach((r, h) => {
|
|
714
723
|
r.element === this.scrollElement && (i = h);
|
|
715
|
-
}), d(this,
|
|
724
|
+
}), d(this, Se, e.slice(i + 1));
|
|
716
725
|
}, 0));
|
|
717
726
|
}
|
|
718
727
|
get distanceOffsetCSSProperty() {
|
|
@@ -740,7 +749,7 @@ let ps = class extends Ve {
|
|
|
740
749
|
return t(this, kt);
|
|
741
750
|
}
|
|
742
751
|
get releasedFromFinishCSSProperty() {
|
|
743
|
-
return t(this,
|
|
752
|
+
return t(this, M);
|
|
744
753
|
}
|
|
745
754
|
get passedVarCSSProperty() {
|
|
746
755
|
return t(this, ot);
|
|
@@ -758,19 +767,19 @@ let ps = class extends Ve {
|
|
|
758
767
|
return t(this, nt);
|
|
759
768
|
}
|
|
760
769
|
get smoothstepCSSProperty() {
|
|
761
|
-
return t(this,
|
|
770
|
+
return t(this, Dt);
|
|
762
771
|
}
|
|
763
772
|
get smootherstepCSSProperty() {
|
|
764
|
-
return t(this,
|
|
773
|
+
return t(this, Yt);
|
|
765
774
|
}
|
|
766
775
|
get disabledCSSProperty() {
|
|
767
776
|
return t(this, wt);
|
|
768
777
|
}
|
|
769
778
|
get targetCSSProperty() {
|
|
770
|
-
return t(this,
|
|
779
|
+
return t(this, zt);
|
|
771
780
|
}
|
|
772
781
|
get isCaptured() {
|
|
773
|
-
return t(this,
|
|
782
|
+
return t(this, E);
|
|
774
783
|
}
|
|
775
784
|
get isReleased() {
|
|
776
785
|
return t(this, q);
|
|
@@ -788,13 +797,13 @@ let ps = class extends Ve {
|
|
|
788
797
|
return t(this, J);
|
|
789
798
|
}
|
|
790
799
|
get directionPosition() {
|
|
791
|
-
return t(this,
|
|
800
|
+
return t(this, At);
|
|
792
801
|
}
|
|
793
802
|
get directionSize() {
|
|
794
|
-
return t(this,
|
|
803
|
+
return t(this, Rt);
|
|
795
804
|
}
|
|
796
805
|
get passed() {
|
|
797
|
-
return t(this,
|
|
806
|
+
return t(this, T);
|
|
798
807
|
}
|
|
799
808
|
get progress() {
|
|
800
809
|
return t(this, Q);
|
|
@@ -803,7 +812,7 @@ let ps = class extends Ve {
|
|
|
803
812
|
return t(this, x);
|
|
804
813
|
}
|
|
805
814
|
get finish() {
|
|
806
|
-
return t(this,
|
|
815
|
+
return t(this, R);
|
|
807
816
|
}
|
|
808
817
|
get distance() {
|
|
809
818
|
return t(this, P);
|
|
@@ -815,29 +824,29 @@ let ps = class extends Ve {
|
|
|
815
824
|
return t(this, y);
|
|
816
825
|
}
|
|
817
826
|
resize() {
|
|
818
|
-
d(this,
|
|
827
|
+
d(this, Rt, this.scrollElement.vertical ? this.offsetHeight : this.offsetWidth), d(this, At, this.scrollElement.vertical ? Ce(this, this.scrollElement) : ye(this, this.scrollElement)), d(this, x, this.getStart()), d(this, P, this.getDistance()), d(this, x, t(this, x) + t(this, _t).current), d(this, P, t(this, P) + t(this, bt).current), d(this, R, t(this, x) + t(this, P)), this.scrollElement.currentScrollValue > t(this, R) && !t(this, E).current && !t(this, q).current && (t(this, E).current = !0), this.setVar(t(this, ht).current, t(this, x)), this.setVar(t(this, nt).current, t(this, R)), this.setVar(t(this, rt).current, t(this, P)), d(this, jt, !0);
|
|
819
828
|
}
|
|
820
829
|
tick() {
|
|
821
830
|
let e = this.scrollElement.currentScrollValue;
|
|
822
|
-
t(this,
|
|
831
|
+
t(this, Se).forEach((r) => {
|
|
823
832
|
e += r.value;
|
|
824
|
-
}), d(this,
|
|
833
|
+
}), d(this, T, this.updateValue(e - t(this, x), 0, t(this, P)) || 0), d(this, Q, t(this, T) / t(this, P) || 0);
|
|
825
834
|
const i = Math.round(e);
|
|
826
|
-
t(this,
|
|
835
|
+
t(this, E).current && (i > t(this, x) ? t(this, U).current || _(this, Ie, ys).call(this) : t(this, U).current && !t(this, ct).current && _(this, He, Ws).call(this), i < t(this, R) ? t(this, J).current && !t(this, ut).current && _(this, Be, ks).call(this) : t(this, U).current && !t(this, J).current && _(this, Ge, Ps).call(this)), i > t(this, x) && i < t(this, R) ? (_(this, ge, Ae).call(this), t(this, E).current || _(this, Re, _s).call(this)) : t(this, E).current && (d(this, T, Ls(t(this, P) / 2, t(this, T), 0, t(this, P))), d(this, Q, t(this, T) / t(this, P)), _(this, ge, Ae).call(this), _(this, Te, Cs).call(this)), t(this, Pt) && t(this, Ct).current && (t(this, $).current && t(this, v).classList.add(t(this, $).current), d(this, y, !0));
|
|
827
836
|
}
|
|
828
837
|
disable() {
|
|
829
|
-
this.style.cssText = "", d(this,
|
|
838
|
+
this.style.cssText = "", d(this, At, 0), d(this, Rt, 0), d(this, T, 0), d(this, Q, 0), d(this, x, 0), d(this, P, 0), d(this, R, 0), d(this, jt, !1), t(this, E).current = !1, t(this, q).current = !1, t(this, U).current = !1, t(this, ct).current = !1, t(this, ut).current = !1, t(this, J).current = !1, d(this, Pt, !1), d(this, y, !0), _(this, be, Ke).call(this);
|
|
830
839
|
}
|
|
831
840
|
enable() {
|
|
832
841
|
d(this, y, !1);
|
|
833
842
|
}
|
|
834
843
|
connectedCallback() {
|
|
835
|
-
super.connectedCallback(), t(this,
|
|
844
|
+
super.connectedCallback(), t(this, zt).observe(), t(this, wt).observe(), t(this, bt).observe(), t(this, _t).observe(), t(this, Ct).observe(), t(this, $).observe(), t(this, I).observe(), t(this, B).observe(), t(this, H).observe(), t(this, kt).observe(), t(this, M).observe(), t(this, ot).observe(), t(this, lt).observe(), t(this, rt).observe(), t(this, ht).observe(), t(this, nt).observe(), t(this, Dt).observe(), t(this, Yt).observe();
|
|
836
845
|
let e = !1;
|
|
837
846
|
this.scrollElement.addEventListener(
|
|
838
847
|
"sectionsChange",
|
|
839
848
|
t(this, _e)
|
|
840
|
-
), t(this, _e).call(this), t(this, wt).current || this.enable(), t(this,
|
|
849
|
+
), t(this, _e).call(this), t(this, wt).current || this.enable(), t(this, zt).subscribe((i) => {
|
|
841
850
|
i.previous && _(this, be, Ke).call(this), i.current ? i.current === "parent" ? d(this, v, this.parentElement || this) : d(this, v, document.querySelector(i.current) || this) : d(this, v, this);
|
|
842
851
|
}), t(this, wt).subscribe((i) => {
|
|
843
852
|
i.current && !i.previous ? this.disable() : !i.current && i.previous && (this.resize(), this.enable());
|
|
@@ -855,7 +864,7 @@ let ps = class extends Ve {
|
|
|
855
864
|
_(this, it, yt).call(this, i);
|
|
856
865
|
}), t(this, kt).subscribe((i) => {
|
|
857
866
|
_(this, it, yt).call(this, i);
|
|
858
|
-
}), t(this,
|
|
867
|
+
}), t(this, M).subscribe((i) => {
|
|
859
868
|
_(this, it, yt).call(this, i);
|
|
860
869
|
}), t(this, Ct).subscribe((i) => {
|
|
861
870
|
t(this, y) || !i.current && i.previous && (this.resize(), this.enable());
|
|
@@ -866,13 +875,13 @@ let ps = class extends Ve {
|
|
|
866
875
|
}), t(this, ht).subscribe((i) => {
|
|
867
876
|
t(this, y) || (this.removeVar(i.previous), this.setVar(i.current, t(this, x)));
|
|
868
877
|
}), t(this, nt).subscribe((i) => {
|
|
869
|
-
t(this, y) || (this.removeVar(i.previous), this.setVar(i.current, t(this,
|
|
878
|
+
t(this, y) || (this.removeVar(i.previous), this.setVar(i.current, t(this, R)));
|
|
870
879
|
}), t(this, rt).subscribe((i) => {
|
|
871
880
|
t(this, y) || (this.removeVar(i.previous), this.setVar(i.current, t(this, P)));
|
|
872
|
-
}),
|
|
881
|
+
}), Ht.subscribe(t(this, we), Ne.SEGMENT), this.scrollElement.onScroll(t(this, te)), e = !0;
|
|
873
882
|
}
|
|
874
883
|
disconnectedCallback() {
|
|
875
|
-
|
|
884
|
+
Ht.unsubscribe(t(this, we)), this.scrollElement.offScroll(t(this, te)), t(this, zt).close(), t(this, wt).close(), t(this, bt).close(), t(this, _t).close(), t(this, Ct).close(), t(this, $).close(), t(this, I).close(), t(this, B).close(), t(this, H).close(), t(this, kt).close(), t(this, M).close(), t(this, ot).close(), t(this, lt).close(), t(this, rt).close(), t(this, ht).close(), t(this, nt).close(), t(this, Dt).close(), t(this, Yt).close(), t(this, E).close(), t(this, q).close(), t(this, U).close(), t(this, ct).close(), t(this, ut).close(), t(this, J).close(), this.disable();
|
|
876
885
|
}
|
|
877
886
|
removeVar(e) {
|
|
878
887
|
e && t(this, v).style.removeProperty(`--${e}`);
|
|
@@ -881,16 +890,16 @@ let ps = class extends Ve {
|
|
|
881
890
|
e && t(this, v).style.setProperty(`--${e}`, i.toString());
|
|
882
891
|
}
|
|
883
892
|
updateValue(e, i = 0, r = 1) {
|
|
884
|
-
return this.smootherstepCSSProperty.current ?
|
|
893
|
+
return this.smootherstepCSSProperty.current ? Vs(e, i, r) * r : t(this, Dt).current ? $s(e, i, r) * r : qe(e, i, r);
|
|
885
894
|
}
|
|
886
895
|
getDistance() {
|
|
887
|
-
return t(this,
|
|
896
|
+
return t(this, Rt) + t(this, ve);
|
|
888
897
|
}
|
|
889
898
|
getStart() {
|
|
890
|
-
return t(this,
|
|
899
|
+
return t(this, At) - t(this, ve);
|
|
891
900
|
}
|
|
892
901
|
};
|
|
893
|
-
|
|
902
|
+
zt = /* @__PURE__ */ new WeakMap();
|
|
894
903
|
wt = /* @__PURE__ */ new WeakMap();
|
|
895
904
|
bt = /* @__PURE__ */ new WeakMap();
|
|
896
905
|
_t = /* @__PURE__ */ new WeakMap();
|
|
@@ -900,103 +909,103 @@ I = /* @__PURE__ */ new WeakMap();
|
|
|
900
909
|
B = /* @__PURE__ */ new WeakMap();
|
|
901
910
|
H = /* @__PURE__ */ new WeakMap();
|
|
902
911
|
kt = /* @__PURE__ */ new WeakMap();
|
|
903
|
-
|
|
912
|
+
M = /* @__PURE__ */ new WeakMap();
|
|
904
913
|
ot = /* @__PURE__ */ new WeakMap();
|
|
905
914
|
lt = /* @__PURE__ */ new WeakMap();
|
|
906
915
|
rt = /* @__PURE__ */ new WeakMap();
|
|
907
916
|
ht = /* @__PURE__ */ new WeakMap();
|
|
908
917
|
nt = /* @__PURE__ */ new WeakMap();
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
|
|
918
|
+
Dt = /* @__PURE__ */ new WeakMap();
|
|
919
|
+
Yt = /* @__PURE__ */ new WeakMap();
|
|
920
|
+
E = /* @__PURE__ */ new WeakMap();
|
|
912
921
|
q = /* @__PURE__ */ new WeakMap();
|
|
913
922
|
U = /* @__PURE__ */ new WeakMap();
|
|
914
923
|
ct = /* @__PURE__ */ new WeakMap();
|
|
915
924
|
ut = /* @__PURE__ */ new WeakMap();
|
|
916
925
|
J = /* @__PURE__ */ new WeakMap();
|
|
917
|
-
|
|
926
|
+
Se = /* @__PURE__ */ new WeakMap();
|
|
918
927
|
v = /* @__PURE__ */ new WeakMap();
|
|
919
|
-
Dt = /* @__PURE__ */ new WeakMap();
|
|
920
928
|
At = /* @__PURE__ */ new WeakMap();
|
|
929
|
+
Rt = /* @__PURE__ */ new WeakMap();
|
|
921
930
|
ve = /* @__PURE__ */ new WeakMap();
|
|
922
|
-
|
|
931
|
+
T = /* @__PURE__ */ new WeakMap();
|
|
923
932
|
Q = /* @__PURE__ */ new WeakMap();
|
|
924
933
|
x = /* @__PURE__ */ new WeakMap();
|
|
925
934
|
P = /* @__PURE__ */ new WeakMap();
|
|
926
|
-
|
|
927
|
-
|
|
935
|
+
R = /* @__PURE__ */ new WeakMap();
|
|
936
|
+
jt = /* @__PURE__ */ new WeakMap();
|
|
928
937
|
Pt = /* @__PURE__ */ new WeakMap();
|
|
929
938
|
y = /* @__PURE__ */ new WeakMap();
|
|
930
939
|
ge = /* @__PURE__ */ new WeakSet();
|
|
931
940
|
Ae = function() {
|
|
932
|
-
_(this, ts,
|
|
941
|
+
_(this, ts, bs).call(this), this.setVar(t(this, ot).current, t(this, T)), this.setVar(t(this, lt).current, t(this, Q));
|
|
933
942
|
};
|
|
934
943
|
ts = /* @__PURE__ */ new WeakSet();
|
|
935
|
-
|
|
944
|
+
bs = function() {
|
|
936
945
|
this.dispatchEvent(
|
|
937
946
|
new CustomEvent("segmentPass", {
|
|
938
947
|
detail: {
|
|
939
948
|
distance: t(this, P),
|
|
940
949
|
start: t(this, x),
|
|
941
|
-
finish: t(this,
|
|
942
|
-
passed: t(this,
|
|
950
|
+
finish: t(this, R),
|
|
951
|
+
passed: t(this, T),
|
|
943
952
|
progress: t(this, Q)
|
|
944
953
|
}
|
|
945
954
|
})
|
|
946
955
|
);
|
|
947
956
|
};
|
|
948
|
-
Te = /* @__PURE__ */ new WeakSet();
|
|
949
|
-
bs = function() {
|
|
950
|
-
t(this, M).current = !0, t(this, q).current = !1, d(this, Pt, !0), t(this, I).current && t(this, v).classList.remove(t(this, I).current), t(this, E).current && t(this, v).classList.remove(
|
|
951
|
-
t(this, E).current
|
|
952
|
-
), t(this, E).current && t(this, v).classList.remove(
|
|
953
|
-
t(this, E).current
|
|
954
|
-
), t(this, $).current && t(this, v).classList.add(t(this, $).current);
|
|
955
|
-
};
|
|
956
957
|
Re = /* @__PURE__ */ new WeakSet();
|
|
957
958
|
_s = function() {
|
|
958
|
-
t(this,
|
|
959
|
+
t(this, E).current = !0, t(this, q).current = !1, d(this, Pt, !0), t(this, I).current && t(this, v).classList.remove(t(this, I).current), t(this, M).current && t(this, v).classList.remove(
|
|
960
|
+
t(this, M).current
|
|
961
|
+
), t(this, M).current && t(this, v).classList.remove(
|
|
962
|
+
t(this, M).current
|
|
963
|
+
), t(this, $).current && t(this, v).classList.add(t(this, $).current);
|
|
964
|
+
};
|
|
965
|
+
Te = /* @__PURE__ */ new WeakSet();
|
|
966
|
+
Cs = function() {
|
|
967
|
+
t(this, q).current = !0, t(this, E).current = !1, d(this, Pt, !0), t(this, $).current && t(this, v).classList.remove(t(this, $).current), t(this, B).current && t(this, v).classList.remove(
|
|
959
968
|
t(this, B).current
|
|
960
969
|
), t(this, H).current && t(this, v).classList.remove(
|
|
961
970
|
t(this, H).current
|
|
962
971
|
), t(this, I).current && t(this, v).classList.add(t(this, I).current);
|
|
963
972
|
};
|
|
964
973
|
Ie = /* @__PURE__ */ new WeakSet();
|
|
965
|
-
|
|
966
|
-
t(this,
|
|
974
|
+
ys = function() {
|
|
975
|
+
t(this, E).current = !0, t(this, U).current = !0, t(this, ct).current = !1, t(this, B).current && t(this, v).classList.add(
|
|
967
976
|
t(this, B).current
|
|
968
977
|
);
|
|
969
978
|
};
|
|
970
979
|
Be = /* @__PURE__ */ new WeakSet();
|
|
971
|
-
|
|
972
|
-
t(this,
|
|
980
|
+
ks = function() {
|
|
981
|
+
t(this, E).current = !0, t(this, ut).current = !0, t(this, J).current = !1, t(this, H).current && t(this, v).classList.add(
|
|
973
982
|
t(this, H).current
|
|
974
983
|
);
|
|
975
984
|
};
|
|
976
985
|
He = /* @__PURE__ */ new WeakSet();
|
|
977
|
-
|
|
978
|
-
t(this, q).current = !0, t(this, ct).current = !0, t(this, U).current = !1, t(this,
|
|
979
|
-
t(this,
|
|
986
|
+
Ws = function() {
|
|
987
|
+
t(this, q).current = !0, t(this, ct).current = !0, t(this, U).current = !1, t(this, M).current && t(this, v).classList.add(
|
|
988
|
+
t(this, M).current
|
|
980
989
|
);
|
|
981
990
|
};
|
|
982
991
|
Ge = /* @__PURE__ */ new WeakSet();
|
|
983
|
-
|
|
984
|
-
t(this, q).current = !0, t(this, J).current = !0, t(this, ut).current = !1, t(this,
|
|
985
|
-
t(this,
|
|
992
|
+
Ps = function() {
|
|
993
|
+
t(this, q).current = !0, t(this, J).current = !0, t(this, ut).current = !1, t(this, M).current && t(this, v).classList.add(
|
|
994
|
+
t(this, M).current
|
|
986
995
|
);
|
|
987
996
|
};
|
|
988
997
|
we = /* @__PURE__ */ new WeakMap();
|
|
989
|
-
|
|
998
|
+
te = /* @__PURE__ */ new WeakMap();
|
|
990
999
|
it = /* @__PURE__ */ new WeakSet();
|
|
991
1000
|
yt = function(e) {
|
|
992
1001
|
if (t(this, y)) {
|
|
993
1002
|
e.previous && t(this, v).classList.remove(e.previous), e.current && t(this, v).classList.remove(e.current);
|
|
994
1003
|
return;
|
|
995
1004
|
}
|
|
996
|
-
e.current && t(this,
|
|
1005
|
+
e.current && t(this, E).current ? (e.previous && t(this, v).classList.remove(e.previous), t(this, v).classList.add(e.current)) : !e.current && e.previous && t(this, v).classList.remove(e.previous);
|
|
997
1006
|
};
|
|
998
1007
|
es = /* @__PURE__ */ new WeakSet();
|
|
999
|
-
|
|
1008
|
+
Es = function(...e) {
|
|
1000
1009
|
e.forEach((i) => {
|
|
1001
1010
|
i && t(this, v).classList.remove(i);
|
|
1002
1011
|
});
|
|
@@ -1009,17 +1018,17 @@ Ms = function(...e) {
|
|
|
1009
1018
|
};
|
|
1010
1019
|
be = /* @__PURE__ */ new WeakSet();
|
|
1011
1020
|
Ke = function() {
|
|
1012
|
-
_(this, es,
|
|
1021
|
+
_(this, es, Es).call(this, t(this, $).current, t(this, B).current, t(this, H).current, t(this, I).current, t(this, kt).current, t(this, M).current), _(this, ss, Ms).call(this, t(this, ot).current, t(this, lt).current, t(this, rt).current, t(this, ht).current, t(this, nt).current);
|
|
1013
1022
|
};
|
|
1014
1023
|
_e = /* @__PURE__ */ new WeakMap();
|
|
1015
|
-
|
|
1016
|
-
|
|
1017
|
-
],
|
|
1024
|
+
fs = ci([
|
|
1025
|
+
Ut("e-scroll-segment")
|
|
1026
|
+
], fs);
|
|
1018
1027
|
export {
|
|
1019
|
-
|
|
1028
|
+
ps as ScrollBulletButtonsElement,
|
|
1020
1029
|
xe as ScrollElement,
|
|
1021
|
-
|
|
1022
|
-
|
|
1023
|
-
|
|
1024
|
-
|
|
1030
|
+
fs as ScrollSegmentElement,
|
|
1031
|
+
os as ScrollSetButtonElement,
|
|
1032
|
+
ls as ScrollStepButtonElement,
|
|
1033
|
+
as as ScrollbarElement
|
|
1025
1034
|
};
|