aptechka 0.43.4 → 0.44.1
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-D1lL_XhF.cjs +1 -0
- package/lib/Animation-Je56LXXj.js +106 -0
- package/lib/{Damped-DxylD27S.js → Damped-BMmEn7PH.js} +4 -3
- package/lib/Damped-BbJjFOLH.cjs +1 -0
- package/lib/{Store-Cm3LPXlx.js → Store-D2xCXENW.js} +1 -1
- package/lib/Store-DRp_K37w.cjs +1 -0
- package/lib/{Tweened-p5hYr6lL.js → Tweened-BNCj14Jz.js} +4 -3
- package/lib/Tweened-Dk1UNPSH.cjs +1 -0
- package/lib/accordion/index.cjs +1 -1
- package/lib/accordion/index.js +45 -45
- 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 +2 -2
- package/lib/canvas/index.cjs +1 -1
- package/lib/canvas/index.js +11 -11
- package/lib/class-linked-status/index.cjs +1 -1
- package/lib/class-linked-status/index.js +12 -11
- 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 +7 -6
- package/lib/custom-scrollbar/index.cjs +1 -1
- package/lib/custom-scrollbar/index.js +13 -12
- 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 +2 -2
- package/lib/element-resizer/index.cjs +1 -1
- package/lib/element-resizer/index.js +1 -1
- package/lib/en3/index.cjs +1 -1
- package/lib/en3/index.js +9 -8
- package/lib/iframe/index.cjs +1 -1
- package/lib/iframe/index.js +6 -5
- package/lib/image/index.cjs +1 -1
- package/lib/image/index.js +5 -4
- package/lib/index-Cqw2NKev.cjs +1 -0
- package/lib/index-euf5anj6.js +64 -0
- package/lib/intersector/index.cjs +1 -1
- package/lib/intersector/index.js +4 -61
- package/lib/{jss-CjccJC-K.js → jss-BQSxj7Ls.js} +1 -1
- package/lib/jss-B_mh4mIw.cjs +1 -0
- package/lib/ladder/index.cjs +1 -1
- package/lib/ladder/index.js +35 -34
- package/lib/layout-box/index.cjs +1 -1
- package/lib/layout-box/index.js +1 -1
- package/lib/loading/index.cjs +1 -1
- package/lib/loading/index.js +10 -9
- package/lib/masonry-layout/index.cjs +1 -1
- package/lib/masonry-layout/index.js +17 -16
- package/lib/media/index.cjs +1 -1
- package/lib/media/index.js +7 -6
- package/lib/morph/Morph.d.ts +11 -2
- package/lib/morph/MorphAnnouncer.d.ts +0 -1
- package/lib/morph/index.cjs +1 -1
- package/lib/morph/index.js +263 -211
- package/lib/need_redo_tweaker/index.cjs +3 -3
- package/lib/need_redo_tweaker/index.js +260 -260
- package/lib/pointer/index.cjs +1 -1
- package/lib/pointer/index.js +34 -33
- package/lib/popover/index.cjs +1 -1
- package/lib/popover/index.js +25 -25
- package/lib/router/index.cjs +1 -1
- package/lib/router/index.js +6 -5
- package/lib/scroll/index.cjs +1 -1
- package/lib/scroll/index.js +278 -278
- package/lib/scroll-segment/index.cjs +1 -1
- package/lib/scroll-segment/index.js +57 -56
- package/lib/sequence/index.cjs +1 -1
- package/lib/sequence/index.js +6 -6
- package/lib/size-element/index.cjs +1 -1
- package/lib/size-element/index.js +12 -11
- package/lib/slicer/SlicerElement.d.ts +2 -2
- package/lib/slicer/index.cjs +2 -2
- package/lib/slicer/index.js +10 -9
- package/lib/source/index.cjs +2 -2
- package/lib/source/index.js +2 -2
- package/lib/store/index.cjs +1 -1
- package/lib/store/index.js +13 -12
- package/lib/ticker/index.cjs +1 -1
- package/lib/ticker/index.js +1 -1
- package/lib/url-CLvdjbII.cjs +1 -0
- package/lib/url-CfcHdBT6.js +49 -0
- package/lib/utils/index.cjs +1 -1
- package/lib/utils/index.d.ts +1 -0
- package/lib/utils/index.js +163 -148
- package/lib/utils/timeouts.d.ts +5 -0
- package/lib/utils/url.d.ts +15 -2
- package/lib/video/index.cjs +1 -1
- package/lib/video/index.js +7 -6
- package/lib/window-resizer/index.cjs +1 -1
- package/lib/window-resizer/index.js +1 -1
- package/lib/youtube/index.cjs +1 -1
- package/lib/youtube/index.js +13 -12
- package/package.json +1 -1
- package/lib/Animation-CMiBKrwE.cjs +0 -1
- package/lib/Animation-DPRlQfW2.js +0 -105
- package/lib/Damped-CHZ314Rn.cjs +0 -1
- package/lib/Store-C2J4Q87x.cjs +0 -1
- package/lib/Tweened-Dn6CMA-p.cjs +0 -1
- package/lib/browser-0zX67oeU.js +0 -4
- package/lib/browser-CpzFX2xg.cjs +0 -1
- package/lib/jss-GJLvaNfT.cjs +0 -1
- package/lib/url-CHQeS8b5.cjs +0 -1
- package/lib/url-DqQuzXwT.js +0 -37
package/lib/scroll/index.js
CHANGED
|
@@ -14,51 +14,51 @@ var Ee = (a, h, e) => h in a ? Me(a, h, { enumerable: !0, configurable: !0, writ
|
|
|
14
14
|
};
|
|
15
15
|
var de = (a, h, e) => h.has(a) || xe("Cannot " + e);
|
|
16
16
|
var t = (a, h, e) => (de(a, h, "read from private field"), e ? e.call(a) : h.get(a)), s = (a, h, e) => h.has(a) ? xe("Cannot add the same private member more than once") : h instanceof WeakSet ? h.add(a) : h.set(a, e), r = (a, h, e, i) => (de(a, h, "write to private field"), i ? i.call(a, e) : h.set(a, e), e), c = (a, h, e) => (de(a, h, "access private method"), e);
|
|
17
|
-
import { S as Re } from "../Store-
|
|
18
|
-
import { i as
|
|
17
|
+
import { S as Re } from "../Store-D2xCXENW.js";
|
|
18
|
+
import { i as H } from "../index-euf5anj6.js";
|
|
19
19
|
import { a as He } from "../easings-Bni3YAAW.js";
|
|
20
|
-
import { d as
|
|
21
|
-
import { c as ke } from "../jss-
|
|
20
|
+
import { d as oe } from "../events-CsVF98U6.js";
|
|
21
|
+
import { c as ke } from "../jss-BQSxj7Ls.js";
|
|
22
22
|
import { a as pe, g as fe } from "../layout-DpZo-I0y.js";
|
|
23
23
|
import { c as ze } from "../math-BOBiC4TN.js";
|
|
24
24
|
import { l as Be } from "../polyfills-CxfUK5OU.js";
|
|
25
25
|
import "../ticker/index.js";
|
|
26
26
|
import { TICK_ORDER as We, RESIZE_ORDER as me } from "../order/index.js";
|
|
27
|
-
import { D as Fe } from "../Damped-
|
|
28
|
-
import { T as $e } from "../Tweened-
|
|
27
|
+
import { D as Fe } from "../Damped-BMmEn7PH.js";
|
|
28
|
+
import { T as $e } from "../Tweened-BNCj14Jz.js";
|
|
29
29
|
import { WheelControls as Ne, KeyboardControls as qe, DragControls as Ue, AutoplayControls as Ge } from "../controls/index.js";
|
|
30
|
-
import { windowResizer as
|
|
31
|
-
import { scrollEntries as
|
|
30
|
+
import { windowResizer as zt } from "../window-resizer/index.js";
|
|
31
|
+
import { scrollEntries as St } from "../scroll-entries/index.js";
|
|
32
32
|
import { cssUnitParser as Le } from "../css-unit-parser/index.js";
|
|
33
33
|
import { CSSProperty as p } from "../css-property/index.js";
|
|
34
34
|
import { device as Ke } from "../device/index.js";
|
|
35
|
-
import { elementResizer as
|
|
35
|
+
import { elementResizer as jt } from "../element-resizer/index.js";
|
|
36
36
|
import { s as _e } from "../gestures-D2Fdra_G.js";
|
|
37
37
|
import { b as Ie } from "../dom-CVWzyXPH.js";
|
|
38
38
|
import { d as Ze } from "../function-C10DGppn.js";
|
|
39
39
|
import { ScrollSegmentElement as je } from "../scroll-segment/index.js";
|
|
40
|
-
var b,
|
|
40
|
+
var b, Qt, g, gt, B, Q;
|
|
41
41
|
class Je {
|
|
42
42
|
constructor(h, e, i) {
|
|
43
43
|
s(this, b);
|
|
44
|
-
s(this,
|
|
44
|
+
s(this, Qt);
|
|
45
45
|
s(this, g);
|
|
46
|
-
s(this,
|
|
47
|
-
s(this,
|
|
48
|
-
s(this,
|
|
49
|
-
r(this, b, h), r(this,
|
|
46
|
+
s(this, gt, 0);
|
|
47
|
+
s(this, B, 0);
|
|
48
|
+
s(this, Q, null);
|
|
49
|
+
r(this, b, h), r(this, Qt, e), r(this, g, i), St.register(t(this, b));
|
|
50
50
|
}
|
|
51
51
|
get index() {
|
|
52
|
-
return t(this,
|
|
52
|
+
return t(this, Qt);
|
|
53
53
|
}
|
|
54
54
|
get size() {
|
|
55
|
-
return t(this,
|
|
55
|
+
return t(this, gt);
|
|
56
56
|
}
|
|
57
57
|
get position() {
|
|
58
|
-
return t(this,
|
|
58
|
+
return t(this, B);
|
|
59
59
|
}
|
|
60
60
|
destroy() {
|
|
61
|
-
|
|
61
|
+
St.unregister(t(this, b)), this.unsetTransform();
|
|
62
62
|
}
|
|
63
63
|
unsetTransform() {
|
|
64
64
|
t(this, b).style.transform = "", this.mark(null), this.setSize();
|
|
@@ -67,30 +67,30 @@ class Je {
|
|
|
67
67
|
h ? (t(this, b).style.setProperty("--size", h + "px"), t(this, g).axisCSSProperty.current === "x" ? (t(this, b).style.width = h + "px", t(this, b).style.height = "") : (t(this, b).style.height = h + "px", t(this, b).style.width = "")) : (t(this, b).style.width = "", t(this, b).style.height = "", t(this, b).style.removeProperty("--size"));
|
|
68
68
|
}
|
|
69
69
|
resize() {
|
|
70
|
-
r(this,
|
|
70
|
+
r(this, gt, t(this, g).vertical ? t(this, b).offsetHeight : t(this, b).offsetWidth), r(this, B, t(this, g).vertical ? pe(t(this, b)) : fe(t(this, b))), r(this, B, t(this, B) - t(this, g).contentPosition);
|
|
71
71
|
}
|
|
72
72
|
transform() {
|
|
73
73
|
let h = 0;
|
|
74
74
|
const e = t(this, g).viewportSize * t(this, g).sectionDistanceScaleCSSProperty.current;
|
|
75
|
-
t(this, g).loopCSSProperty.current && t(this, g).overscroll && t(this,
|
|
75
|
+
t(this, g).loopCSSProperty.current && t(this, g).overscroll && t(this, B) + t(this, gt) < t(this, g).currentScrollValue && (h = t(this, g).distance * -1 - t(this, g).gap), St.update(
|
|
76
76
|
t(this, b),
|
|
77
77
|
t(this, g).axisCSSProperty.current,
|
|
78
78
|
h
|
|
79
79
|
);
|
|
80
|
-
const i = t(this, g).currentScrollValue + h, n = t(this,
|
|
80
|
+
const i = t(this, g).currentScrollValue + h, n = t(this, B) - t(this, g).viewportSize - e, d = t(this, B) + t(this, gt) + e, m = ze(i, n, d);
|
|
81
81
|
t(this, g).vertical ? t(this, b).style.transform = `translate3d(0px, ${m * -1}px, 0px)` : t(this, b).style.transform = `translate3d(${m * -1}px, 0px, 0px)`;
|
|
82
82
|
}
|
|
83
83
|
mark(h) {
|
|
84
|
-
t(this,
|
|
84
|
+
t(this, Q) !== h && (t(this, Q) && t(this, b).classList.remove(t(this, Q)), h && t(this, b).classList.add(h), r(this, Q, h), oe(t(this, b), "scrollSectionMarkChange", {
|
|
85
85
|
composed: !0,
|
|
86
86
|
detail: {
|
|
87
|
-
mark: t(this,
|
|
87
|
+
mark: t(this, Q)
|
|
88
88
|
},
|
|
89
89
|
custom: !0
|
|
90
90
|
}));
|
|
91
91
|
}
|
|
92
92
|
}
|
|
93
|
-
b = new WeakMap(),
|
|
93
|
+
b = new WeakMap(), Qt = new WeakMap(), g = new WeakMap(), gt = new WeakMap(), B = new WeakMap(), Q = new WeakMap();
|
|
94
94
|
const Qe = ke({
|
|
95
95
|
":host": {
|
|
96
96
|
position: "relative",
|
|
@@ -129,118 +129,118 @@ const Qe = ke({
|
|
|
129
129
|
flexShrink: "0"
|
|
130
130
|
}
|
|
131
131
|
});
|
|
132
|
-
var u,
|
|
133
|
-
class
|
|
132
|
+
var u, vt, P, X, W, F, $, A, Y, tt, N, et, yt, D, y, Ct, wt, Et, xt, It, T, Pt, st, M, it, q, rt, Lt, nt, ht, ot, f, Tt, l, Xt, Yt, v, S, k, V, lt, O, w, E, At, ct, U, G, at, Dt, ut, K, Mt, R, x, o, be, Zt, kt, le, ce, Se, ge, z, Vt, Te, Ot, te, ve, ye, bt, ae, ee;
|
|
133
|
+
class Jt extends HTMLElement {
|
|
134
134
|
constructor() {
|
|
135
135
|
super();
|
|
136
136
|
s(this, o);
|
|
137
137
|
s(this, u, null);
|
|
138
|
-
s(this,
|
|
138
|
+
s(this, vt, new p(this, "--controls", !0));
|
|
139
139
|
s(this, P, new p(this, "--axis", "y"));
|
|
140
|
-
s(this,
|
|
141
|
-
s(this,
|
|
142
|
-
s(this,
|
|
140
|
+
s(this, X, new p(this, "--reverse", !1));
|
|
141
|
+
s(this, W, new p(this, "--direction", 0));
|
|
142
|
+
s(this, F, new p(this, "--pages", 0, {
|
|
143
143
|
validate: (e) => Math.max(0, e - 1)
|
|
144
144
|
}));
|
|
145
|
-
s(this,
|
|
145
|
+
s(this, $, new p(this, "--split", !1));
|
|
146
146
|
s(this, A, new p(this, "--sectional", !1));
|
|
147
|
-
s(this,
|
|
147
|
+
s(this, Y, new p(
|
|
148
148
|
this,
|
|
149
149
|
"--tween-easing",
|
|
150
150
|
!1
|
|
151
151
|
));
|
|
152
|
-
s(this,
|
|
152
|
+
s(this, tt, new p(
|
|
153
153
|
this,
|
|
154
154
|
"--tween-duration",
|
|
155
155
|
!1
|
|
156
156
|
));
|
|
157
|
-
s(this,
|
|
158
|
-
s(this,
|
|
157
|
+
s(this, N, new p(this, "--auto-size", !1));
|
|
158
|
+
s(this, et, new p(
|
|
159
159
|
this,
|
|
160
160
|
"--wheel-max-delta",
|
|
161
161
|
!1
|
|
162
162
|
));
|
|
163
|
-
s(this,
|
|
163
|
+
s(this, yt, new p(this, "--drag-inertion", 1));
|
|
164
164
|
s(this, D, new p(
|
|
165
165
|
this,
|
|
166
166
|
"--sections-in-view",
|
|
167
167
|
1
|
|
168
168
|
));
|
|
169
169
|
s(this, y, new p(this, "--loop", !1));
|
|
170
|
-
s(this,
|
|
171
|
-
s(this,
|
|
172
|
-
s(this,
|
|
173
|
-
s(this,
|
|
174
|
-
s(this,
|
|
170
|
+
s(this, Ct, new p(this, "--damping", 20));
|
|
171
|
+
s(this, wt, new p(this, "--mass", 0));
|
|
172
|
+
s(this, Et, new p(this, "--stiffness", 0));
|
|
173
|
+
s(this, xt, new p(this, "--mouse-drag", !1));
|
|
174
|
+
s(this, It, new p(
|
|
175
175
|
this,
|
|
176
176
|
"--section-distance-scale",
|
|
177
177
|
0.5
|
|
178
178
|
));
|
|
179
179
|
s(this, T, new p(this, "--autoplay", 0));
|
|
180
|
-
s(this,
|
|
180
|
+
s(this, Pt, new p(
|
|
181
181
|
this,
|
|
182
182
|
"--autoplay-pause-duration",
|
|
183
183
|
0
|
|
184
184
|
));
|
|
185
|
-
s(this,
|
|
185
|
+
s(this, st, new p(
|
|
186
186
|
this,
|
|
187
187
|
"--autoplay-user-direction",
|
|
188
188
|
!1
|
|
189
189
|
));
|
|
190
190
|
s(this, M, new p(this, "--classes", !1));
|
|
191
|
-
s(this,
|
|
191
|
+
s(this, it, new p(
|
|
192
192
|
this,
|
|
193
193
|
"--current-index-start-offset",
|
|
194
194
|
0
|
|
195
195
|
));
|
|
196
|
-
s(this,
|
|
196
|
+
s(this, q, new p(
|
|
197
197
|
this,
|
|
198
198
|
"--current-index-end-offset",
|
|
199
199
|
0
|
|
200
200
|
));
|
|
201
|
-
s(this,
|
|
202
|
-
s(this,
|
|
201
|
+
s(this, rt, new p(this, "--focus-delay", 0));
|
|
202
|
+
s(this, Lt, new p(
|
|
203
203
|
this,
|
|
204
204
|
"--focus-duration",
|
|
205
205
|
3e3
|
|
206
206
|
));
|
|
207
|
-
s(this,
|
|
208
|
-
s(this,
|
|
209
|
-
s(this,
|
|
207
|
+
s(this, nt, new p(this, "--disabled", !1));
|
|
208
|
+
s(this, ht, new p(this, "--hibernate", !1));
|
|
209
|
+
s(this, ot, null);
|
|
210
210
|
s(this, f, null);
|
|
211
|
-
s(this,
|
|
211
|
+
s(this, Tt, null);
|
|
212
212
|
s(this, l, []);
|
|
213
|
-
s(this, Qt, 0);
|
|
214
213
|
s(this, Xt, 0);
|
|
214
|
+
s(this, Yt, 0);
|
|
215
215
|
s(this, v, 0);
|
|
216
216
|
s(this, S, 0);
|
|
217
217
|
s(this, k, 0);
|
|
218
218
|
s(this, V, null);
|
|
219
|
-
s(this,
|
|
219
|
+
s(this, lt, null);
|
|
220
220
|
s(this, O, null);
|
|
221
221
|
s(this, w, null);
|
|
222
222
|
s(this, E, new Re(0));
|
|
223
|
-
s(this,
|
|
224
|
-
s(this,
|
|
225
|
-
s(this,
|
|
226
|
-
s(this,
|
|
227
|
-
s(this,
|
|
228
|
-
s(this,
|
|
229
|
-
s(this,
|
|
230
|
-
s(this,
|
|
231
|
-
s(this,
|
|
223
|
+
s(this, At, 0);
|
|
224
|
+
s(this, ct, 0);
|
|
225
|
+
s(this, U, !1);
|
|
226
|
+
s(this, G, !0);
|
|
227
|
+
s(this, at, !0);
|
|
228
|
+
s(this, Dt);
|
|
229
|
+
s(this, ut);
|
|
230
|
+
s(this, K, new $e());
|
|
231
|
+
s(this, Mt, !1);
|
|
232
232
|
s(this, R, null);
|
|
233
233
|
s(this, x, !1);
|
|
234
234
|
s(this, z, () => {
|
|
235
|
-
if (t(this,
|
|
235
|
+
if (t(this, ht).current)
|
|
236
236
|
return;
|
|
237
237
|
t(this, u).unlistenAnimationFrame();
|
|
238
238
|
const e = this.currentScrollValue / t(this, S) || 0, i = t(this, E).current;
|
|
239
|
-
if (r(this,
|
|
239
|
+
if (r(this, Xt, this.vertical ? pe(this) : fe(this)), r(this, Yt, this.vertical ? pe(t(this, f)) : fe(t(this, f))), r(this, v, this.vertical ? this.offsetHeight : this.offsetWidth), this.vertical ? r(this, k, Le.parse(
|
|
240
240
|
getComputedStyle(t(this, f)).rowGap
|
|
241
241
|
)) : r(this, k, Le.parse(
|
|
242
242
|
getComputedStyle(t(this, f)).columnGap
|
|
243
|
-
)), t(this,
|
|
243
|
+
)), t(this, N).current && t(this, l).length) {
|
|
244
244
|
const n = t(this, D).current, d = (t(this, v) - t(this, k) * (n - 1)) / n;
|
|
245
245
|
t(this, l).forEach((m) => {
|
|
246
246
|
m.setSize(d);
|
|
@@ -251,8 +251,8 @@ class jt extends HTMLElement {
|
|
|
251
251
|
});
|
|
252
252
|
if (t(this, l).forEach((n) => {
|
|
253
253
|
n.resize();
|
|
254
|
-
}), t(this,
|
|
255
|
-
r(this, S, t(this, v) * t(this,
|
|
254
|
+
}), t(this, F).current) {
|
|
255
|
+
r(this, S, t(this, v) * t(this, F).current);
|
|
256
256
|
const n = t(this, S) + t(this, v);
|
|
257
257
|
this.vertical ? (t(this, f).style.width = n + "px", t(this, f).style.height = "100%") : (t(this, f).style.height = n + "px", t(this, f).style.width = "100%");
|
|
258
258
|
} else
|
|
@@ -263,9 +263,9 @@ class jt extends HTMLElement {
|
|
|
263
263
|
}
|
|
264
264
|
if (t(this, y).current && t(this, l).length) {
|
|
265
265
|
const n = t(this, l)[t(this, l).length - 1], d = n.position + n.size - t(this, v), m = t(this, S) - d;
|
|
266
|
-
r(this,
|
|
266
|
+
r(this, ct, n.position + n.size + m);
|
|
267
267
|
} else
|
|
268
|
-
r(this,
|
|
268
|
+
r(this, ct, t(this, S));
|
|
269
269
|
if (t(this, A).current && t(this, l).length) {
|
|
270
270
|
const n = t(this, l)[i];
|
|
271
271
|
t(this, u).set(n.position, {
|
|
@@ -275,108 +275,108 @@ class jt extends HTMLElement {
|
|
|
275
275
|
t(this, u).set(e * t(this, S), {
|
|
276
276
|
equalize: !0
|
|
277
277
|
});
|
|
278
|
-
r(this,
|
|
278
|
+
r(this, U, (this.vertical ? t(this, f).offsetHeight : t(this, f).offsetWidth) > t(this, v)), this.classList.toggle("has-overflow", t(this, U)), t(this, U) ? t(this, nt).current || c(this, o, ce).call(this) : c(this, o, le).call(this), t(this, Vt).call(this);
|
|
279
279
|
});
|
|
280
|
-
s(this,
|
|
281
|
-
if (!t(this,
|
|
280
|
+
s(this, Vt, () => {
|
|
281
|
+
if (!t(this, U) || t(this, at) || t(this, G))
|
|
282
282
|
return;
|
|
283
283
|
const e = this.currentScrollValue;
|
|
284
|
-
if (r(this,
|
|
284
|
+
if (r(this, At, Math.max(0, e - t(this, S))), t(this, l).length) {
|
|
285
285
|
for (let i = 0; i < t(this, l).length; i++)
|
|
286
286
|
t(this, l)[i].transform();
|
|
287
|
-
t(this, E).current = c(this, o,
|
|
287
|
+
t(this, E).current = c(this, o, ae).call(this);
|
|
288
288
|
} else
|
|
289
289
|
this.vertical ? t(this, f).style.transform = `translate3d(0px, ${e * -1}px, 0px)` : t(this, f).style.transform = `translate3d(${e * -1}px, 0px, 0px)`;
|
|
290
|
-
|
|
290
|
+
St.update(
|
|
291
291
|
this,
|
|
292
292
|
t(this, P).current,
|
|
293
293
|
e
|
|
294
294
|
);
|
|
295
295
|
});
|
|
296
|
-
s(this,
|
|
297
|
-
t(this,
|
|
296
|
+
s(this, Ot, (e, i) => {
|
|
297
|
+
t(this, vt).current && (c(this, o, ve).call(this, Math.sign(i) || 1), t(this, te).call(this, e, i));
|
|
298
298
|
});
|
|
299
|
-
s(this,
|
|
300
|
-
if (t(this,
|
|
301
|
-
if (t(this,
|
|
299
|
+
s(this, te, (e, i) => {
|
|
300
|
+
if (t(this, W).current) {
|
|
301
|
+
if (t(this, W).current < 0 && i > 0)
|
|
302
302
|
return;
|
|
303
|
-
if (t(this,
|
|
303
|
+
if (t(this, W).current > 0 && i < 0)
|
|
304
304
|
return;
|
|
305
305
|
}
|
|
306
|
-
if (t(this,
|
|
307
|
-
const n = t(this, l)[c(this, o,
|
|
306
|
+
if (t(this, ut) || t(this, K).unlistenAnimationFrame(), !t(this, T).current && t(this, rt).current && (clearInterval(t(this, Dt)), r(this, Dt, setTimeout(() => {
|
|
307
|
+
const n = t(this, l)[c(this, o, ae).call(this)];
|
|
308
308
|
n && this.scrollToSection(n.index, {
|
|
309
309
|
tween: {
|
|
310
|
-
duration: t(this,
|
|
310
|
+
duration: t(this, Lt).current,
|
|
311
311
|
easing: He
|
|
312
312
|
}
|
|
313
313
|
});
|
|
314
|
-
}, t(this,
|
|
314
|
+
}, t(this, rt).current))), !(e.includes("drag") && !Ke.isTouch && !t(this, xt).current)) {
|
|
315
315
|
if (t(this, A).current && e !== "drag") {
|
|
316
316
|
const n = Math.sign(i);
|
|
317
317
|
if (t(this, l).length) {
|
|
318
318
|
const d = {
|
|
319
|
-
tween: t(this,
|
|
320
|
-
easing: t(this,
|
|
321
|
-
duration: t(this,
|
|
319
|
+
tween: t(this, Y).current || t(this, tt).current ? {
|
|
320
|
+
easing: t(this, Y).current || "easeInOutCubic",
|
|
321
|
+
duration: t(this, tt).current || 500
|
|
322
322
|
} : void 0
|
|
323
323
|
};
|
|
324
|
-
t(this,
|
|
324
|
+
t(this, Mt) ? this.scrollToSection(t(this, E).current, d) : this.shiftSections(n, d);
|
|
325
325
|
} else
|
|
326
326
|
t(this, u).shift(n * t(this, v));
|
|
327
327
|
} else
|
|
328
328
|
t(this, u).shift(i);
|
|
329
|
-
r(this,
|
|
329
|
+
r(this, Mt, e === "drag");
|
|
330
330
|
}
|
|
331
331
|
});
|
|
332
|
-
s(this,
|
|
332
|
+
s(this, ee, () => {
|
|
333
333
|
r(this, x, !0), this.hibernatedCSSProperty.current || c(this, o, ge).call(this);
|
|
334
334
|
});
|
|
335
|
-
if (
|
|
335
|
+
if (H) {
|
|
336
336
|
const e = this.attachShadow({ mode: "open" });
|
|
337
337
|
e.adoptedStyleSheets = [Qe];
|
|
338
338
|
const i = document.createElement("div");
|
|
339
|
-
i.className = "static", i.innerHTML = '<slot name="static"></slot>', e.appendChild(i), r(this,
|
|
339
|
+
i.className = "static", i.innerHTML = '<slot name="static"></slot>', e.appendChild(i), r(this, ot, document.createElement("div")), t(this, ot).className = "content-wrapper", r(this, f, document.createElement("div")), t(this, f).className = "content", r(this, Tt, document.createElement("slot")), t(this, f).appendChild(t(this, Tt)), t(this, ot).appendChild(t(this, f)), e.appendChild(t(this, ot));
|
|
340
340
|
}
|
|
341
341
|
}
|
|
342
342
|
get damped() {
|
|
343
343
|
return t(this, u);
|
|
344
344
|
}
|
|
345
345
|
get controlsCSSProperty() {
|
|
346
|
-
return t(this,
|
|
346
|
+
return t(this, vt);
|
|
347
347
|
}
|
|
348
348
|
get axisCSSProperty() {
|
|
349
349
|
return t(this, P);
|
|
350
350
|
}
|
|
351
351
|
get reverseCSSProperty() {
|
|
352
|
-
return t(this,
|
|
352
|
+
return t(this, X);
|
|
353
353
|
}
|
|
354
354
|
get directionCSSProperty() {
|
|
355
|
-
return t(this,
|
|
355
|
+
return t(this, W);
|
|
356
356
|
}
|
|
357
357
|
get pagesCSSProperty() {
|
|
358
|
-
return t(this,
|
|
358
|
+
return t(this, F);
|
|
359
359
|
}
|
|
360
360
|
get splitCSSProperty() {
|
|
361
|
-
return t(this,
|
|
361
|
+
return t(this, $);
|
|
362
362
|
}
|
|
363
363
|
get sectionalCSSProperty() {
|
|
364
364
|
return t(this, A);
|
|
365
365
|
}
|
|
366
366
|
get easingCSSProperty() {
|
|
367
|
-
return t(this,
|
|
367
|
+
return t(this, Y);
|
|
368
368
|
}
|
|
369
369
|
get durationCSSProperty() {
|
|
370
|
-
return t(this,
|
|
370
|
+
return t(this, tt);
|
|
371
371
|
}
|
|
372
372
|
get autoSizeCSSProperty() {
|
|
373
|
-
return t(this,
|
|
373
|
+
return t(this, N);
|
|
374
374
|
}
|
|
375
375
|
get wheelMaxDeltaCSSProperty() {
|
|
376
|
-
return t(this,
|
|
376
|
+
return t(this, et);
|
|
377
377
|
}
|
|
378
378
|
get dragInertionCSSProperty() {
|
|
379
|
-
return t(this,
|
|
379
|
+
return t(this, yt);
|
|
380
380
|
}
|
|
381
381
|
get sectionsInViewCSSProperty() {
|
|
382
382
|
return t(this, D);
|
|
@@ -385,49 +385,49 @@ class jt extends HTMLElement {
|
|
|
385
385
|
return t(this, y);
|
|
386
386
|
}
|
|
387
387
|
get dampingCSSProperty() {
|
|
388
|
-
return t(this,
|
|
388
|
+
return t(this, Ct);
|
|
389
389
|
}
|
|
390
390
|
get massCSSProperty() {
|
|
391
|
-
return t(this,
|
|
391
|
+
return t(this, wt);
|
|
392
392
|
}
|
|
393
393
|
get stiffnessCSSProperty() {
|
|
394
|
-
return t(this,
|
|
394
|
+
return t(this, Et);
|
|
395
395
|
}
|
|
396
396
|
get mouseDragCSSProperty() {
|
|
397
|
-
return t(this,
|
|
397
|
+
return t(this, xt);
|
|
398
398
|
}
|
|
399
399
|
get sectionDistanceScaleCSSProperty() {
|
|
400
|
-
return t(this,
|
|
400
|
+
return t(this, It);
|
|
401
401
|
}
|
|
402
402
|
get autoplayCSSProperty() {
|
|
403
403
|
return t(this, T);
|
|
404
404
|
}
|
|
405
405
|
get autoplayPauseDurationCSSProperty() {
|
|
406
|
-
return t(this,
|
|
406
|
+
return t(this, Pt);
|
|
407
407
|
}
|
|
408
408
|
get autoplayUserDirectionCSSProperty() {
|
|
409
|
-
return t(this,
|
|
409
|
+
return t(this, st);
|
|
410
410
|
}
|
|
411
411
|
get classesCSSProperty() {
|
|
412
412
|
return t(this, M);
|
|
413
413
|
}
|
|
414
414
|
get currentIndexStartOffsetCSSProperty() {
|
|
415
|
-
return t(this,
|
|
415
|
+
return t(this, it);
|
|
416
416
|
}
|
|
417
417
|
get currentIndexEndOffsetCSSProperty() {
|
|
418
|
-
return t(this,
|
|
418
|
+
return t(this, q);
|
|
419
419
|
}
|
|
420
420
|
get focusDelayCSSProperty() {
|
|
421
|
-
return t(this,
|
|
421
|
+
return t(this, rt);
|
|
422
422
|
}
|
|
423
423
|
get focusDurationCSSProperty() {
|
|
424
|
-
return t(this,
|
|
424
|
+
return t(this, Lt);
|
|
425
425
|
}
|
|
426
426
|
get disabledCSSProperty() {
|
|
427
|
-
return t(this,
|
|
427
|
+
return t(this, nt);
|
|
428
428
|
}
|
|
429
429
|
get hibernatedCSSProperty() {
|
|
430
|
-
return t(this,
|
|
430
|
+
return t(this, ht);
|
|
431
431
|
}
|
|
432
432
|
get currentScrollValue() {
|
|
433
433
|
return c(this, o, ye).call(this, "current");
|
|
@@ -436,7 +436,7 @@ class jt extends HTMLElement {
|
|
|
436
436
|
return c(this, o, ye).call(this, "target");
|
|
437
437
|
}
|
|
438
438
|
get contentWrapperElement() {
|
|
439
|
-
return t(this,
|
|
439
|
+
return t(this, ot);
|
|
440
440
|
}
|
|
441
441
|
get contentElement() {
|
|
442
442
|
return t(this, f);
|
|
@@ -445,10 +445,10 @@ class jt extends HTMLElement {
|
|
|
445
445
|
return t(this, l);
|
|
446
446
|
}
|
|
447
447
|
get position() {
|
|
448
|
-
return t(this,
|
|
448
|
+
return t(this, Xt);
|
|
449
449
|
}
|
|
450
450
|
get contentPosition() {
|
|
451
|
-
return t(this,
|
|
451
|
+
return t(this, Yt);
|
|
452
452
|
}
|
|
453
453
|
get viewportSize() {
|
|
454
454
|
return t(this, v);
|
|
@@ -468,16 +468,16 @@ class jt extends HTMLElement {
|
|
|
468
468
|
);
|
|
469
469
|
}
|
|
470
470
|
get distance() {
|
|
471
|
-
return t(this,
|
|
471
|
+
return t(this, ct);
|
|
472
472
|
}
|
|
473
473
|
get loopDistance() {
|
|
474
|
-
return t(this, y).current ? t(this,
|
|
474
|
+
return t(this, y).current ? t(this, ct) + t(this, k) : t(this, ct);
|
|
475
475
|
}
|
|
476
476
|
get hasOverflow() {
|
|
477
|
-
return t(this,
|
|
477
|
+
return t(this, U);
|
|
478
478
|
}
|
|
479
479
|
get overscroll() {
|
|
480
|
-
return t(this,
|
|
480
|
+
return t(this, At);
|
|
481
481
|
}
|
|
482
482
|
get scrollLine() {
|
|
483
483
|
return t(this, R);
|
|
@@ -521,7 +521,7 @@ class jt extends HTMLElement {
|
|
|
521
521
|
const n = t(this, E).current, d = c(this, o, Te).call(this, e), m = t(this, l)[n], C = t(this, l)[d];
|
|
522
522
|
if (m && C) {
|
|
523
523
|
let I = 0;
|
|
524
|
-
const ue = c(this, o,
|
|
524
|
+
const ue = c(this, o, ae).call(this), _t = t(this, l)[ue], De = _t ? this.targetScrollValue - _t.position : 0;
|
|
525
525
|
t(this, y).current ? d === 0 && n === t(this, l).length - 1 ? I = t(this, S) + t(this, v) - m.position + t(this, k) : d === t(this, l).length - 1 && n === 0 ? I = C.position - (t(this, S) + t(this, v) + t(this, k)) : I = C.position - m.position : I = C.position - m.position, this.shiftPosition(I - De, i);
|
|
526
526
|
}
|
|
527
527
|
}
|
|
@@ -529,8 +529,8 @@ class jt extends HTMLElement {
|
|
|
529
529
|
t(this, l).length && this.scrollToSection(t(this, E).current + e, i);
|
|
530
530
|
}
|
|
531
531
|
setPosition(e, i) {
|
|
532
|
-
c(this, o, ve).call(this, Math.sign(e) || 1), i != null && i.tween ? t(this,
|
|
533
|
-
r(this,
|
|
532
|
+
c(this, o, ve).call(this, Math.sign(e) || 1), i != null && i.tween ? t(this, ut) || (t(this, K).set(t(this, u).current, { equalize: !0 }), t(this, K).set(e, Pe({}, i.tween)), r(this, ut, setTimeout(() => {
|
|
533
|
+
r(this, ut, void 0);
|
|
534
534
|
}, i.tween.duration || 0))) : t(this, u).set(e, {
|
|
535
535
|
equalize: (i == null ? void 0 : i.behaviour) === "instant"
|
|
536
536
|
});
|
|
@@ -539,101 +539,101 @@ class jt extends HTMLElement {
|
|
|
539
539
|
this.setPosition(t(this, u).target + e, i);
|
|
540
540
|
}
|
|
541
541
|
connectedCallback() {
|
|
542
|
-
|
|
542
|
+
St.register(this), r(this, u, new Fe(0, {
|
|
543
543
|
damping: 0.01,
|
|
544
544
|
min: 0,
|
|
545
545
|
order: We.SCROLL
|
|
546
|
-
})), this.setAttribute("tabindex", "0"), r(this, V, new Ne({ element: t(this, f) })), t(this, V).changeEvent.subscribe(t(this,
|
|
546
|
+
})), this.setAttribute("tabindex", "0"), r(this, V, new Ne({ element: t(this, f) })), t(this, V).changeEvent.subscribe(t(this, Ot)), r(this, lt, new qe({
|
|
547
547
|
element: this
|
|
548
|
-
})), t(this,
|
|
549
|
-
t(this,
|
|
550
|
-
), r(this, O, new Ue({ element: t(this, f) })), t(this, O).changeEvent.subscribe(t(this,
|
|
548
|
+
})), t(this, lt).changeEvent.subscribe(
|
|
549
|
+
t(this, Ot)
|
|
550
|
+
), r(this, O, new Ue({ element: t(this, f) })), t(this, O).changeEvent.subscribe(t(this, Ot)), r(this, w, new Ge({
|
|
551
551
|
culling: this
|
|
552
|
-
})), t(this, w).changeEvent.subscribe(t(this,
|
|
552
|
+
})), t(this, w).changeEvent.subscribe(t(this, te)), t(this, P).subscribe(() => {
|
|
553
553
|
c(this, o, be).call(this);
|
|
554
|
-
}), t(this,
|
|
554
|
+
}), t(this, X).subscribe(() => {
|
|
555
555
|
c(this, o, be).call(this);
|
|
556
|
-
}), t(this,
|
|
556
|
+
}), t(this, et).subscribe((e) => {
|
|
557
557
|
t(this, V).axis = e.current ? "max" : t(this, P).current;
|
|
558
|
-
}), t(this,
|
|
558
|
+
}), t(this, yt).subscribe((e) => {
|
|
559
559
|
t(this, O).inertion = typeof e.current == "number" ? e.current : 1;
|
|
560
|
-
}), t(this,
|
|
560
|
+
}), t(this, F).subscribe(() => {
|
|
561
561
|
t(this, x) && t(this, z).call(this);
|
|
562
|
-
}), t(this,
|
|
563
|
-
t(this, x) && (e ? c(this, o,
|
|
562
|
+
}), t(this, $).subscribe(({ current: e }) => {
|
|
563
|
+
t(this, x) && (e ? c(this, o, Zt).call(this) : c(this, o, kt).call(this));
|
|
564
564
|
}), t(this, A).subscribe((e) => {
|
|
565
|
-
t(this, V).debounce = e.current, t(this, O).swipe = e.current, t(this, w).interval = e.current, t(this, x) && (e.current && !e.previous && !t(this, l).length ? c(this, o,
|
|
566
|
-
}), t(this,
|
|
567
|
-
t(this, x) && (t(this, z).call(this), e.current && !e.previous && !t(this, l).length ? c(this, o,
|
|
565
|
+
t(this, V).debounce = e.current, t(this, O).swipe = e.current, t(this, w).interval = e.current, t(this, x) && (e.current && !e.previous && !t(this, l).length ? c(this, o, Zt).call(this) : !e.current && e.previous && t(this, l).length && c(this, o, kt).call(this));
|
|
566
|
+
}), t(this, N).subscribe((e) => {
|
|
567
|
+
t(this, x) && (t(this, z).call(this), e.current && !e.previous && !t(this, l).length ? c(this, o, Zt).call(this) : !e.current && e.previous && t(this, l).length && c(this, o, kt).call(this));
|
|
568
568
|
}), t(this, D).subscribe((e) => {
|
|
569
|
-
t(this, x) && (t(this, z).call(this), c(this, o,
|
|
569
|
+
t(this, x) && (t(this, z).call(this), c(this, o, bt).call(this));
|
|
570
570
|
}), t(this, y).subscribe((e) => {
|
|
571
|
-
e.current ? (t(this, x) && (t(this, l).length || (t(this,
|
|
572
|
-
}), t(this, yt).subscribe((e) => {
|
|
573
|
-
t(this, u).damping = e.current;
|
|
571
|
+
e.current ? (t(this, x) && (t(this, l).length || (t(this, $).current = !0)), t(this, u).max = 1 / 0, t(this, u).min = -1 / 0) : (r(this, At, 0), t(this, u).max = t(this, S), t(this, u).min = 0);
|
|
574
572
|
}), t(this, Ct).subscribe((e) => {
|
|
575
|
-
t(this, u).
|
|
573
|
+
t(this, u).damping = e.current;
|
|
576
574
|
}), t(this, wt).subscribe((e) => {
|
|
575
|
+
t(this, u).mass = e.current;
|
|
576
|
+
}), t(this, Et).subscribe((e) => {
|
|
577
577
|
t(this, u).stiffness = e.current;
|
|
578
578
|
}), t(this, T).subscribe((e) => {
|
|
579
|
-
t(this, w).speed = e.current, !t(this,
|
|
580
|
-
}), t(this,
|
|
579
|
+
t(this, w).speed = e.current, !t(this, G) && e.current && !e.previous ? t(this, w).connect() : !e.current && e.previous && t(this, w).disconnect();
|
|
580
|
+
}), t(this, st).subscribe((e) => {
|
|
581
581
|
e.current || (t(this, w).direction = 1);
|
|
582
582
|
}), t(this, M).subscribe((e) => {
|
|
583
|
-
t(this, x) && c(this, o,
|
|
584
|
-
}), t(this,
|
|
585
|
-
t(this, x) && t(this, M).current && c(this, o,
|
|
586
|
-
}), t(this,
|
|
587
|
-
t(this, x) && t(this, M).current && c(this, o,
|
|
583
|
+
t(this, x) && c(this, o, bt).call(this);
|
|
584
|
+
}), t(this, it).subscribe((e) => {
|
|
585
|
+
t(this, x) && t(this, M).current && c(this, o, bt).call(this);
|
|
586
|
+
}), t(this, q).subscribe((e) => {
|
|
587
|
+
t(this, x) && t(this, M).current && c(this, o, bt).call(this);
|
|
588
588
|
}), t(this, u).isRunning.subscribe((e) => {
|
|
589
589
|
this.classList.toggle("active", e.current);
|
|
590
590
|
}), t(this, E).subscribe((e) => {
|
|
591
|
-
t(this, l).length && c(this, o,
|
|
592
|
-
}), t(this,
|
|
593
|
-
t(this,
|
|
594
|
-
}), t(this, rt).subscribe((e) => {
|
|
595
|
-
e.current && !e.previous ? (this.classList.add("disabled"), c(this, o, oe).call(this)) : !e.current && e.previous && (this.classList.remove("disabled"), c(this, o, le).call(this));
|
|
591
|
+
t(this, l).length && c(this, o, bt).call(this);
|
|
592
|
+
}), t(this, K).subscribe((e) => {
|
|
593
|
+
t(this, K).isRunning.current && t(this, u).set(e.current, { equalize: !0 });
|
|
596
594
|
}), t(this, nt).subscribe((e) => {
|
|
595
|
+
e.current && !e.previous ? (this.classList.add("disabled"), c(this, o, le).call(this)) : !e.current && e.previous && (this.classList.remove("disabled"), c(this, o, ce).call(this));
|
|
596
|
+
}), t(this, ht).subscribe((e) => {
|
|
597
597
|
e.current && !e.previous ? (this.classList.add("hibernated"), c(this, o, Se).call(this)) : !e.current && e.previous && (this.classList.remove("hibernated"), c(this, o, ge).call(this));
|
|
598
|
-
}), t(this,
|
|
598
|
+
}), t(this, vt).observe(), t(this, P).observe(), t(this, X).observe(), t(this, W).observe(), t(this, F).observe(), t(this, $).observe(), t(this, A).observe(), t(this, Y).observe(), t(this, tt).observe(), t(this, N).observe(), t(this, et).observe(), t(this, yt).observe(), t(this, D).observe(), t(this, y).observe(), t(this, Ct).observe(), t(this, wt).observe(), t(this, Et).observe(), t(this, xt).observe(), t(this, It).observe(), t(this, T).observe(), t(this, T).observe(), t(this, Pt).observe(), t(this, st).observe(), t(this, M).observe(), t(this, it).observe(), t(this, q).observe(), t(this, rt).observe(), t(this, Lt).observe(), t(this, nt).observe(), t(this, ht).observe(), zt.subscribe(t(this, ee), me.LAST);
|
|
599
599
|
}
|
|
600
600
|
disconnectedCallback() {
|
|
601
|
-
this.removeAttribute("tabindex"), this.classList.remove("disabled"), this.classList.remove("hibernated"), t(this,
|
|
601
|
+
this.removeAttribute("tabindex"), this.classList.remove("disabled"), this.classList.remove("hibernated"), t(this, vt).unobserve(), t(this, P).unobserve(), t(this, X).unobserve(), t(this, W).unobserve(), t(this, F).unobserve(), t(this, $).unobserve(), t(this, A).unobserve(), t(this, Y).unobserve(), t(this, tt).unobserve(), t(this, N).unobserve(), t(this, et).unobserve(), t(this, yt).unobserve(), t(this, D).unobserve(), t(this, y).unobserve(), t(this, Ct).unobserve(), t(this, wt).unobserve(), t(this, Et).unobserve(), t(this, xt).unobserve(), t(this, It).unobserve(), t(this, T).unobserve(), t(this, Pt).unobserve(), t(this, st).unobserve(), t(this, M).unobserve(), t(this, it).unobserve(), t(this, q).unobserve(), t(this, rt).unobserve(), t(this, Lt).unobserve(), t(this, nt).unobserve(), t(this, ht).unobserve(), zt.unsubscribe(t(this, ee)), c(this, o, Se).call(this);
|
|
602
602
|
}
|
|
603
603
|
}
|
|
604
|
-
u = new WeakMap(),
|
|
605
|
-
const e = t(this, P).current, i = t(this,
|
|
606
|
-
t(this, f).style.flexDirection = e === "x" ? `row${i}` : `column${i}`, t(this, V).axis = t(this,
|
|
607
|
-
},
|
|
608
|
-
c(this, o,
|
|
604
|
+
u = new WeakMap(), vt = new WeakMap(), P = new WeakMap(), X = new WeakMap(), W = new WeakMap(), F = new WeakMap(), $ = new WeakMap(), A = new WeakMap(), Y = new WeakMap(), tt = new WeakMap(), N = new WeakMap(), et = new WeakMap(), yt = new WeakMap(), D = new WeakMap(), y = new WeakMap(), Ct = new WeakMap(), wt = new WeakMap(), Et = new WeakMap(), xt = new WeakMap(), It = new WeakMap(), T = new WeakMap(), Pt = new WeakMap(), st = new WeakMap(), M = new WeakMap(), it = new WeakMap(), q = new WeakMap(), rt = new WeakMap(), Lt = new WeakMap(), nt = new WeakMap(), ht = new WeakMap(), ot = new WeakMap(), f = new WeakMap(), Tt = new WeakMap(), l = new WeakMap(), Xt = new WeakMap(), Yt = new WeakMap(), v = new WeakMap(), S = new WeakMap(), k = new WeakMap(), V = new WeakMap(), lt = new WeakMap(), O = new WeakMap(), w = new WeakMap(), E = new WeakMap(), At = new WeakMap(), ct = new WeakMap(), U = new WeakMap(), G = new WeakMap(), at = new WeakMap(), Dt = new WeakMap(), ut = new WeakMap(), K = new WeakMap(), Mt = new WeakMap(), R = new WeakMap(), x = new WeakMap(), o = new WeakSet(), be = function() {
|
|
605
|
+
const e = t(this, P).current, i = t(this, X).current ? "-reverse" : "";
|
|
606
|
+
t(this, f).style.flexDirection = e === "x" ? `row${i}` : `column${i}`, t(this, V).axis = t(this, et).current ? "max" : e, t(this, lt).dimension = e === "x" ? "width" : "height", t(this, O).axis = e, e === "x" ? this.style.touchAction = "pan-y" : e === "y" && (this.style.touchAction = "pan-x"), t(this, x) && t(this, z).call(this);
|
|
607
|
+
}, Zt = function() {
|
|
608
|
+
c(this, o, kt).call(this), t(this, Tt).assignedElements().forEach((e, i) => {
|
|
609
609
|
e instanceof HTMLElement && t(this, l).push(new Je(e, i, this));
|
|
610
|
-
}), t(this, f).style.transform = "",
|
|
610
|
+
}), t(this, f).style.transform = "", oe(this, "scrollSectionsChange", {
|
|
611
611
|
custom: !0,
|
|
612
612
|
composed: !0
|
|
613
|
-
}), t(this, z).call(this), c(this, o,
|
|
614
|
-
},
|
|
613
|
+
}), t(this, z).call(this), c(this, o, bt).call(this);
|
|
614
|
+
}, kt = function() {
|
|
615
615
|
t(this, l).forEach((e) => {
|
|
616
616
|
e.destroy();
|
|
617
|
-
}), r(this, l, []), t(this, E).reset(), t(this, u).reset(),
|
|
617
|
+
}), r(this, l, []), t(this, E).reset(), t(this, u).reset(), oe(this, "scrollSectionsChange", {
|
|
618
618
|
custom: !0,
|
|
619
619
|
composed: !0
|
|
620
620
|
});
|
|
621
|
-
},
|
|
622
|
-
t(this,
|
|
621
|
+
}, le = function() {
|
|
622
|
+
t(this, G) || (r(this, G, !0), t(this, u).unsubscribe(t(this, Vt)), t(this, u).unlistenAnimationFrame(), clearInterval(t(this, Dt)), clearInterval(t(this, ut)), t(this, K).unlistenAnimationFrame(), t(this, V).disconnect(), t(this, lt).disconnect(), t(this, O).disconnect(), t(this, w).disconnect(), t(this, U) || this.sections.forEach((e) => {
|
|
623
623
|
e.unsetTransform();
|
|
624
624
|
}));
|
|
625
|
-
},
|
|
626
|
-
t(this,
|
|
625
|
+
}, ce = function() {
|
|
626
|
+
t(this, G) && (r(this, G, !1), t(this, u).subscribe(t(this, Vt)), t(this, V).connect(), t(this, lt).connect(), t(this, O).connect(), t(this, T).current && t(this, w).connect());
|
|
627
627
|
}, Se = function() {
|
|
628
|
-
t(this,
|
|
628
|
+
t(this, at) || (r(this, at, !0), zt.unsubscribe(t(this, z)), jt.unsubscribe(t(this, z)), c(this, o, le).call(this), t(this, f).style.transform = "", t(this, f).style.height = "", t(this, f).style.width = "", this.classList.remove("has-overflow", "start", "end"), t(this, l).length ? c(this, o, kt).call(this) : (t(this, E).reset(), t(this, u).reset()), St.unregister(this));
|
|
629
629
|
}, ge = function() {
|
|
630
|
-
t(this,
|
|
631
|
-
}, z = new WeakMap(),
|
|
630
|
+
t(this, at) && (r(this, at, !1), St.register(this), (t(this, y).current || t(this, $).current || t(this, y).current || t(this, N).current || t(this, A).current) && c(this, o, Zt).call(this), c(this, o, ce).call(this), zt.subscribe(t(this, z), me.SCROLL), jt.subscribe(this, t(this, z)));
|
|
631
|
+
}, z = new WeakMap(), Vt = new WeakMap(), Te = function(e) {
|
|
632
632
|
let i = t(this, E).current;
|
|
633
633
|
return t(this, y).current ? i = Be(e, t(this, l).length) : i = ze(e, 0, this.limit), i;
|
|
634
|
-
},
|
|
635
|
-
t(this,
|
|
636
|
-
t(this,
|
|
634
|
+
}, Ot = new WeakMap(), te = new WeakMap(), ve = function(e = 1) {
|
|
635
|
+
t(this, st).current && (t(this, w).direction = e), t(this, T).current && t(this, w).pauseAndContinue(
|
|
636
|
+
t(this, Pt).current,
|
|
637
637
|
this.sectionalCSSProperty.current
|
|
638
638
|
);
|
|
639
639
|
}, ye = function(e = "current") {
|
|
@@ -642,82 +642,82 @@ u = new WeakMap(), gt = new WeakMap(), P = new WeakMap(), Q = new WeakMap(), B =
|
|
|
642
642
|
return i < 0 ? t(this, S) + i + t(this, v) + t(this, k) : i;
|
|
643
643
|
} else
|
|
644
644
|
return t(this, u)[e];
|
|
645
|
-
},
|
|
645
|
+
}, bt = function() {
|
|
646
646
|
if (t(this, l).length) {
|
|
647
|
-
const e = t(this, E).current + t(this,
|
|
648
|
-
if (e === 0 ? r(this, R, "start") : e === this.limit ? r(this, R, "end") : r(this, R, null),
|
|
647
|
+
const e = t(this, E).current + t(this, it).current;
|
|
648
|
+
if (e === 0 ? r(this, R, "start") : e === this.limit ? r(this, R, "end") : r(this, R, null), oe(this, "scrollLine", {
|
|
649
649
|
detail: { line: t(this, R) }
|
|
650
650
|
}), t(this, M).current) {
|
|
651
651
|
this.classList.remove("end", "start"), t(this, R) && this.classList.add(t(this, R));
|
|
652
|
-
const i = t(this, D).current + t(this,
|
|
652
|
+
const i = t(this, D).current + t(this, q).current;
|
|
653
653
|
t(this, l).forEach((n, d) => {
|
|
654
|
-
const m = e - this.limit - 1 + t(this,
|
|
654
|
+
const m = e - this.limit - 1 + t(this, q).current, C = e + i, I = this.sections.length - C;
|
|
655
655
|
d >= e && d < C || d <= m ? n.mark("current") : d >= C && d < C + I / 2 || d <= m + i ? n.mark("next") : n.mark("previous");
|
|
656
656
|
});
|
|
657
657
|
}
|
|
658
658
|
}
|
|
659
659
|
}, // TODO: Учитывать loop
|
|
660
|
-
|
|
660
|
+
ae = function() {
|
|
661
661
|
let e = this.targetScrollValue, i = 1 / 0, n = 0;
|
|
662
662
|
const d = t(this, u).direction;
|
|
663
663
|
for (let m = 0; m < t(this, l).length; m++) {
|
|
664
664
|
const C = t(this, l)[m];
|
|
665
|
-
let I = t(this,
|
|
666
|
-
const
|
|
667
|
-
|
|
665
|
+
let I = t(this, Mt) ? C.size * d * -1 * 0.4 : 0, ue = C.position;
|
|
666
|
+
const _t = Math.abs(ue + I - e);
|
|
667
|
+
_t < i && (i = _t, n = m);
|
|
668
668
|
}
|
|
669
669
|
return n;
|
|
670
|
-
},
|
|
671
|
-
customElements.get("e-scroll")
|
|
672
|
-
var
|
|
670
|
+
}, ee = new WeakMap();
|
|
671
|
+
H && !customElements.get("e-scroll") && customElements.define("e-scroll", Jt);
|
|
672
|
+
var se;
|
|
673
673
|
class Ce extends HTMLElement {
|
|
674
674
|
constructor() {
|
|
675
675
|
super(...arguments);
|
|
676
|
-
s(this,
|
|
676
|
+
s(this, se, null);
|
|
677
677
|
}
|
|
678
678
|
get scrollElement() {
|
|
679
|
-
return t(this,
|
|
679
|
+
return t(this, se);
|
|
680
680
|
}
|
|
681
681
|
connectedCallback() {
|
|
682
|
-
const e = Ie(this,
|
|
683
|
-
e instanceof
|
|
682
|
+
const e = Ie(this, Jt);
|
|
683
|
+
e instanceof Jt ? r(this, se, e) : console.error(this, "e-scroll not found");
|
|
684
684
|
}
|
|
685
685
|
}
|
|
686
|
-
|
|
687
|
-
var
|
|
686
|
+
se = new WeakMap();
|
|
687
|
+
var dt, L, _, Z, Rt, Ht, pt, Bt, ie, re;
|
|
688
688
|
class Xe extends Ce {
|
|
689
689
|
constructor() {
|
|
690
690
|
super();
|
|
691
|
-
s(this,
|
|
691
|
+
s(this, dt, null);
|
|
692
692
|
s(this, L, null);
|
|
693
|
-
s(this,
|
|
694
|
-
s(this,
|
|
695
|
-
s(this, Ot, 0);
|
|
693
|
+
s(this, _, !1);
|
|
694
|
+
s(this, Z, 0);
|
|
696
695
|
s(this, Rt, 0);
|
|
697
|
-
s(this,
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
696
|
+
s(this, Ht, 0);
|
|
697
|
+
s(this, pt, () => {
|
|
698
|
+
r(this, _, this.offsetWidth > this.offsetHeight);
|
|
699
|
+
const e = t(this, _) ? this.offsetWidth : this.offsetHeight;
|
|
700
|
+
r(this, Z, e / ((this.scrollElement.scrollSize + this.scrollElement.viewportSize) / e)), r(this, Z, Math.max(t(this, Z), 30)), t(this, _) ? (t(this, L).style.width = t(this, Z) + "px", t(this, L).style.height = "100%") : (t(this, L).style.width = "100%", t(this, L).style.height = t(this, Z) + "px"), r(this, Rt, e - t(this, Z)), this.scrollElement.scrollSize <= 0 ? this.style.display = "none" : this.style.display = "", t(this, Bt).call(this);
|
|
701
701
|
});
|
|
702
|
-
s(this,
|
|
703
|
-
r(this,
|
|
702
|
+
s(this, Bt, () => {
|
|
703
|
+
r(this, Ht, this.scrollElement.currentProgress * t(this, Rt)), t(this, _) ? t(this, L).style.transform = `translate3d(${t(this, Ht)}px, 0px, 0px)` : t(this, L).style.transform = `translate3d(0px, ${t(this, Ht)}px, 0px)`;
|
|
704
704
|
});
|
|
705
|
-
s(this,
|
|
705
|
+
s(this, ie, () => {
|
|
706
706
|
this.setAttribute("axis", this.scrollElement.axisCSSProperty.current);
|
|
707
707
|
});
|
|
708
|
-
s(this,
|
|
708
|
+
s(this, re, (e) => {
|
|
709
709
|
document.documentElement.classList.add("grabbing"), _e(
|
|
710
710
|
(d) => {
|
|
711
|
-
const m = t(this,
|
|
711
|
+
const m = t(this, _) ? d.x : d.y, C = this.scrollElement.distance / t(this, Rt), I = (m - n) * C;
|
|
712
712
|
this.scrollElement.setPosition(i + I);
|
|
713
713
|
},
|
|
714
714
|
() => {
|
|
715
715
|
document.documentElement.classList.remove("grabbing");
|
|
716
716
|
}
|
|
717
717
|
);
|
|
718
|
-
const i = this.scrollElement.damped.target, n = t(this,
|
|
718
|
+
const i = this.scrollElement.damped.target, n = t(this, _) ? e.x : e.y;
|
|
719
719
|
});
|
|
720
|
-
if (
|
|
720
|
+
if (H) {
|
|
721
721
|
const e = this.attachShadow({ mode: "open" });
|
|
722
722
|
e.adoptedStyleSheets = [
|
|
723
723
|
ke({
|
|
@@ -749,7 +749,7 @@ class Xe extends Ce {
|
|
|
749
749
|
touchAction: "none"
|
|
750
750
|
}
|
|
751
751
|
})
|
|
752
|
-
], r(this,
|
|
752
|
+
], r(this, dt, document.createElement("slot")), t(this, dt).innerHTML = '<div class="default-thumb"></div>', e.appendChild(t(this, dt));
|
|
753
753
|
}
|
|
754
754
|
}
|
|
755
755
|
get thumbElement() {
|
|
@@ -757,28 +757,28 @@ class Xe extends Ce {
|
|
|
757
757
|
}
|
|
758
758
|
connectedCallback() {
|
|
759
759
|
super.connectedCallback(), this.setAttribute("drag-dead-zone", "");
|
|
760
|
-
const e = t(this,
|
|
761
|
-
r(this, L, e), t(this, L).addEventListener("pointerdown", t(this,
|
|
760
|
+
const e = t(this, dt).assignedElements()[0] || t(this, dt).firstElementChild;
|
|
761
|
+
r(this, L, e), t(this, L).addEventListener("pointerdown", t(this, re)), zt.subscribe(t(this, pt), me.SCROLL), jt.subscribe(this, t(this, pt)), jt.subscribe(this.scrollElement, t(this, pt)), this.scrollElement.onScroll(t(this, Bt)), this.scrollElement.axisCSSProperty.subscribe(t(this, ie));
|
|
762
762
|
}
|
|
763
763
|
disconnectedCallback() {
|
|
764
|
-
this.removeAttribute("drag-dead-zone"), this.style.display = "", t(this, L).removeEventListener("pointerdown", t(this,
|
|
764
|
+
this.removeAttribute("drag-dead-zone"), this.style.display = "", t(this, L).removeEventListener("pointerdown", t(this, re)), zt.unsubscribe(t(this, pt)), jt.unsubscribe(t(this, pt)), this.scrollElement.offScroll(t(this, Bt)), this.scrollElement.axisCSSProperty.unsubscribe(t(this, ie));
|
|
765
765
|
}
|
|
766
766
|
}
|
|
767
|
-
|
|
768
|
-
customElements.get("e-scrollbar")
|
|
769
|
-
var
|
|
767
|
+
dt = new WeakMap(), L = new WeakMap(), _ = new WeakMap(), Z = new WeakMap(), Rt = new WeakMap(), Ht = new WeakMap(), pt = new WeakMap(), Bt = new WeakMap(), ie = new WeakMap(), re = new WeakMap();
|
|
768
|
+
H && !customElements.get("e-scrollbar") && customElements.define("e-scrollbar", Xe);
|
|
769
|
+
var Wt, Ft, $t;
|
|
770
770
|
class Ae extends Ce {
|
|
771
771
|
constructor() {
|
|
772
772
|
super();
|
|
773
|
-
s(this,
|
|
774
|
-
s(this,
|
|
773
|
+
s(this, Wt, new p(this, "--behaviour", "smooth"));
|
|
774
|
+
s(this, Ft, new p(
|
|
775
775
|
this,
|
|
776
776
|
"--tween-easing",
|
|
777
777
|
!1
|
|
778
778
|
));
|
|
779
|
-
s(this,
|
|
780
|
-
|
|
781
|
-
const e = t(this,
|
|
779
|
+
s(this, $t, new p(this, "--tween-duration", 0));
|
|
780
|
+
H && this.addEventListener("click", () => {
|
|
781
|
+
const e = t(this, Wt).current, i = t(this, Ft).current, n = t(this, $t).current;
|
|
782
782
|
this.handleClick({
|
|
783
783
|
behaviour: e,
|
|
784
784
|
tween: i || n ? { easing: i, duration: n } : void 0
|
|
@@ -786,130 +786,130 @@ class Ae extends Ce {
|
|
|
786
786
|
});
|
|
787
787
|
}
|
|
788
788
|
connectedCallback() {
|
|
789
|
-
super.connectedCallback(), t(this,
|
|
789
|
+
super.connectedCallback(), t(this, Wt).observe(), t(this, Ft).observe(), t(this, $t).observe();
|
|
790
790
|
}
|
|
791
791
|
disconnectedCallback() {
|
|
792
|
-
t(this,
|
|
792
|
+
t(this, Wt).close(), t(this, Ft).close(), t(this, $t).close();
|
|
793
793
|
}
|
|
794
794
|
}
|
|
795
|
-
|
|
796
|
-
var
|
|
795
|
+
Wt = new WeakMap(), Ft = new WeakMap(), $t = new WeakMap();
|
|
796
|
+
var Nt;
|
|
797
797
|
class Ye extends Ae {
|
|
798
798
|
constructor() {
|
|
799
799
|
super(...arguments);
|
|
800
|
-
s(this,
|
|
800
|
+
s(this, Nt, new p(this, "--set", 1));
|
|
801
801
|
}
|
|
802
802
|
handleClick(e) {
|
|
803
|
-
this.scrollElement.scrollToSection(t(this,
|
|
803
|
+
this.scrollElement.scrollToSection(t(this, Nt).current, e);
|
|
804
804
|
}
|
|
805
805
|
connectedCallback() {
|
|
806
|
-
super.connectedCallback(), t(this,
|
|
806
|
+
super.connectedCallback(), t(this, Nt).observe();
|
|
807
807
|
}
|
|
808
808
|
disconnectedCallback() {
|
|
809
|
-
super.disconnectedCallback(), t(this,
|
|
809
|
+
super.disconnectedCallback(), t(this, Nt).close();
|
|
810
810
|
}
|
|
811
811
|
}
|
|
812
|
-
|
|
813
|
-
customElements.get("e-scroll-set-button")
|
|
814
|
-
var
|
|
812
|
+
Nt = new WeakMap();
|
|
813
|
+
H && !customElements.get("e-scroll-set-button") && customElements.define("e-scroll-set-button", Ye);
|
|
814
|
+
var j, qt;
|
|
815
815
|
class ts extends Ae {
|
|
816
816
|
constructor() {
|
|
817
817
|
super(...arguments);
|
|
818
|
-
s(this,
|
|
819
|
-
s(this,
|
|
820
|
-
this.scrollElement.loopCSSProperty.current ? this.removeAttribute("disabled") : t(this,
|
|
818
|
+
s(this, j, new p(this, "--step", 1));
|
|
819
|
+
s(this, qt, () => {
|
|
820
|
+
this.scrollElement.loopCSSProperty.current ? this.removeAttribute("disabled") : t(this, j).current > 0 && this.scrollElement.scrollLine === "end" || t(this, j).current < 0 && this.scrollElement.scrollLine === "start" ? this.setAttribute("disabled", "") : this.removeAttribute("disabled");
|
|
821
821
|
});
|
|
822
822
|
}
|
|
823
823
|
handleClick(e) {
|
|
824
|
-
this.scrollElement.shiftSections(t(this,
|
|
824
|
+
this.scrollElement.shiftSections(t(this, j).current, e);
|
|
825
825
|
}
|
|
826
826
|
connectedCallback() {
|
|
827
|
-
super.connectedCallback(), this.scrollElement && (t(this,
|
|
828
|
-
t(this,
|
|
829
|
-
}), t(this,
|
|
827
|
+
super.connectedCallback(), this.scrollElement && (t(this, j).subscribe(() => {
|
|
828
|
+
t(this, qt).call(this);
|
|
829
|
+
}), t(this, j).observe(), this.scrollElement.addEventListener(
|
|
830
830
|
"scrollLine",
|
|
831
|
-
t(this,
|
|
832
|
-
), t(this,
|
|
831
|
+
t(this, qt)
|
|
832
|
+
), t(this, qt).call(this));
|
|
833
833
|
}
|
|
834
834
|
disconnectedCallback() {
|
|
835
|
-
super.disconnectedCallback(), t(this,
|
|
835
|
+
super.disconnectedCallback(), t(this, j).close(), this.removeAttribute("disabled");
|
|
836
836
|
}
|
|
837
837
|
}
|
|
838
|
-
|
|
839
|
-
customElements.get("e-scroll-step-button")
|
|
840
|
-
var
|
|
838
|
+
j = new WeakMap(), qt = new WeakMap();
|
|
839
|
+
H && !customElements.get("e-scroll-step-button") && customElements.define("e-scroll-step-button", ts);
|
|
840
|
+
var J, ft, Ut, ne, he, Gt;
|
|
841
841
|
class es {
|
|
842
842
|
constructor(h, e, i) {
|
|
843
|
-
s(this,
|
|
844
|
-
s(this,
|
|
845
|
-
s(this,
|
|
846
|
-
s(this,
|
|
847
|
-
s(this,
|
|
848
|
-
t(this,
|
|
849
|
-
behaviour: t(this,
|
|
843
|
+
s(this, J, null);
|
|
844
|
+
s(this, ft, null);
|
|
845
|
+
s(this, Ut, null);
|
|
846
|
+
s(this, ne, null);
|
|
847
|
+
s(this, he, () => {
|
|
848
|
+
t(this, ft).scrollToSection(t(this, Ut), {
|
|
849
|
+
behaviour: t(this, ne)
|
|
850
850
|
});
|
|
851
851
|
});
|
|
852
|
-
s(this,
|
|
853
|
-
t(this,
|
|
852
|
+
s(this, Gt, () => {
|
|
853
|
+
t(this, J).classList.toggle(
|
|
854
854
|
"current",
|
|
855
|
-
t(this,
|
|
855
|
+
t(this, ft).counter.current === t(this, Ut)
|
|
856
856
|
);
|
|
857
857
|
});
|
|
858
|
-
|
|
858
|
+
H && (r(this, J, document.createElement("button")), r(this, ft, h), r(this, ne, i), r(this, Ut, e), t(this, J).addEventListener("click", t(this, he)), t(this, ft).counter.subscribe(t(this, Gt)), t(this, Gt).call(this));
|
|
859
859
|
}
|
|
860
860
|
get element() {
|
|
861
|
-
return t(this,
|
|
861
|
+
return t(this, J);
|
|
862
862
|
}
|
|
863
863
|
destroy() {
|
|
864
|
-
t(this,
|
|
864
|
+
t(this, J).removeEventListener("click", t(this, he)), t(this, ft).counter.unsubscribe(t(this, Gt)), t(this, J).remove();
|
|
865
865
|
}
|
|
866
866
|
}
|
|
867
|
-
|
|
868
|
-
var
|
|
867
|
+
J = new WeakMap(), ft = new WeakMap(), Ut = new WeakMap(), ne = new WeakMap(), he = new WeakMap(), Gt = new WeakMap();
|
|
868
|
+
var mt, Kt;
|
|
869
869
|
class ss extends Ce {
|
|
870
870
|
constructor() {
|
|
871
871
|
super(...arguments);
|
|
872
|
-
s(this,
|
|
873
|
-
s(this,
|
|
874
|
-
t(this,
|
|
872
|
+
s(this, mt, []);
|
|
873
|
+
s(this, Kt, Ze(() => {
|
|
874
|
+
t(this, mt).forEach((e) => e.destroy()), r(this, mt, []);
|
|
875
875
|
for (let e = 0; e < this.scrollElement.sections.length; e++) {
|
|
876
876
|
const i = new es(
|
|
877
877
|
this.scrollElement,
|
|
878
878
|
e,
|
|
879
879
|
this.getAttribute("behaviour") || "smooth"
|
|
880
880
|
);
|
|
881
|
-
this.appendChild(i.element), t(this,
|
|
881
|
+
this.appendChild(i.element), t(this, mt).push(i);
|
|
882
882
|
}
|
|
883
883
|
}, 0));
|
|
884
884
|
}
|
|
885
885
|
connectedCallback() {
|
|
886
886
|
super.connectedCallback(), this.scrollElement.addEventListener(
|
|
887
887
|
"sectionsChange",
|
|
888
|
-
t(this,
|
|
889
|
-
), t(this,
|
|
888
|
+
t(this, Kt)
|
|
889
|
+
), t(this, Kt).call(this);
|
|
890
890
|
}
|
|
891
891
|
disconnectedCallback() {
|
|
892
892
|
this.scrollElement.removeEventListener(
|
|
893
893
|
"sectionsChange",
|
|
894
|
-
t(this,
|
|
895
|
-
), t(this,
|
|
894
|
+
t(this, Kt)
|
|
895
|
+
), t(this, mt).forEach((e) => e.destroy()), r(this, mt, []);
|
|
896
896
|
}
|
|
897
897
|
}
|
|
898
|
-
|
|
899
|
-
customElements.get("e-scroll-bullet-buttons")
|
|
898
|
+
mt = new WeakMap(), Kt = new WeakMap();
|
|
899
|
+
H && !customElements.get("e-scroll-bullet-buttons") && customElements.define("e-scroll-bullet-buttons", ss);
|
|
900
900
|
class is extends je {
|
|
901
901
|
connectedCallback() {
|
|
902
|
-
const h = Ie(this,
|
|
903
|
-
h instanceof
|
|
902
|
+
const h = Ie(this, Jt);
|
|
903
|
+
h instanceof Jt ? (this.scrollContainer = h, this.scrollContainer.addEventListener(
|
|
904
904
|
"scrollSectionsChange",
|
|
905
905
|
this.findAnotherScrollEntries
|
|
906
906
|
)) : console.error(this, "e-scroll not found");
|
|
907
907
|
}
|
|
908
908
|
}
|
|
909
|
-
customElements.get("e-scroll-segment")
|
|
909
|
+
H && !customElements.get("e-scroll-segment") && customElements.define("e-scroll-segment", is);
|
|
910
910
|
export {
|
|
911
911
|
ss as ScrollBulletButtonsElement,
|
|
912
|
-
|
|
912
|
+
Jt as ScrollElement,
|
|
913
913
|
is as ScrollSegmentElement,
|
|
914
914
|
Ye as ScrollSetButtonElement,
|
|
915
915
|
ts as ScrollStepButtonElement,
|