@streamlayer/react 1.17.1 → 1.18.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/app/advertisement.d.ts +1 -0
- package/lib/app/app.d.ts +3 -0
- package/lib/app/provider.d.ts +4 -1
- package/lib/app/useStreamLayerApp.d.ts +2 -1
- package/lib/cjs/advertisement.js +36 -36
- package/lib/cjs/gamification-feature.js +1 -1
- package/lib/cjs/index2.js +2 -2
- package/lib/cjs/insight.js +1 -1
- package/lib/cjs/masters2.js +3 -3
- package/lib/cjs/notification.js +1 -1
- package/lib/cjs/points.js +1 -1
- package/lib/cjs/provider.js +62 -19
- package/lib/cjs/useStreamLayerApp2.js +15 -15
- package/lib/classic/app/advertisement.d.ts +1 -0
- package/lib/classic/app/app.d.ts +3 -0
- package/lib/classic/app/provider.d.ts +4 -1
- package/lib/classic/app/useStreamLayerApp.d.ts +2 -1
- package/lib/classic/cjs/advertisement.js +36 -36
- package/lib/classic/cjs/bet-pack.js +2 -2
- package/lib/classic/cjs/gamification-feature.js +1 -1
- package/lib/classic/cjs/insight.js +1 -1
- package/lib/classic/cjs/notification.js +1 -1
- package/lib/classic/cjs/points.js +1 -1
- package/lib/classic/cjs/provider.js +57 -14
- package/lib/classic/cjs/useStreamLayerApp2.js +15 -15
- package/lib/classic/es/advertisement.js +6778 -6620
- package/lib/classic/es/bet-pack.js +245 -245
- package/lib/classic/es/gamification-feature.js +1 -1
- package/lib/classic/es/index.js +3 -3
- package/lib/classic/es/insight.js +41 -38
- package/lib/classic/es/notification.js +739 -230
- package/lib/classic/es/points.js +10 -10
- package/lib/classic/es/provider.js +7175 -4742
- package/lib/classic/es/useStreamLayerApp.js +1 -1
- package/lib/classic/es/useStreamLayerApp2.js +4007 -3787
- package/lib/dist/cjs/gamification-feature2.js +1 -1
- package/lib/dist/cjs/masters.js +47 -43
- package/lib/dist/es/gamification-feature2.js +15 -15
- package/lib/dist/es/index.js +3 -3
- package/lib/dist/es/masters.js +14631 -12156
- package/lib/dist/style.css +1 -1
- package/lib/es/advertisement.js +6778 -6620
- package/lib/es/gamification-feature.js +1 -1
- package/lib/es/index.js +1 -1
- package/lib/es/index2.js +362 -362
- package/lib/es/insight.js +41 -38
- package/lib/es/masters2.js +28 -26
- package/lib/es/notification.js +739 -230
- package/lib/es/points.js +10 -10
- package/lib/es/provider.js +7162 -4706
- package/lib/es/useStreamLayerApp.js +1 -1
- package/lib/es/useStreamLayerApp2.js +4007 -3787
- package/lib/style.css +1 -1
- package/package.json +14 -14
|
@@ -1,7 +1,20 @@
|
|
|
1
1
|
import { jsx as P, jsxs as F } from "react/jsx-runtime";
|
|
2
|
-
import { s as _,
|
|
3
|
-
import $, {
|
|
2
|
+
import { s as _, B as te, c as vt, f as gt, V as wt, i as bt, j as Se, a as _e, u as yt, e as St } from "./provider.js";
|
|
3
|
+
import $, { useCallback as Le, useSyncExternalStore as Et, forwardRef as Ae, useState as W, useRef as D, useEffect as Y, useLayoutEffect as xt, createContext as Re, useMemo as qe, memo as Tt } from "react";
|
|
4
4
|
import { C as Ct, a as Pt, S as We } from "./useStreamLayerApp2.js";
|
|
5
|
+
function Mt(t, e, s) {
|
|
6
|
+
let r = new Set(e).add(void 0);
|
|
7
|
+
return t.listen((n, i, l) => {
|
|
8
|
+
r.has(l) && s(n, i, l);
|
|
9
|
+
});
|
|
10
|
+
}
|
|
11
|
+
function kt(t, e = {}) {
|
|
12
|
+
let s = Le(
|
|
13
|
+
(n) => e.keys ? Mt(t, e.keys, n) : t.listen(n),
|
|
14
|
+
[e.keys, t]
|
|
15
|
+
), r = t.get.bind(t);
|
|
16
|
+
return Et(s, r, r);
|
|
17
|
+
}
|
|
5
18
|
function $e(t) {
|
|
6
19
|
return t !== null && typeof t == "object" && "constructor" in t && t.constructor === Object;
|
|
7
20
|
}
|
|
@@ -71,7 +84,7 @@ function K() {
|
|
|
71
84
|
const t = typeof document < "u" ? document : {};
|
|
72
85
|
return Oe(t, Ye), t;
|
|
73
86
|
}
|
|
74
|
-
const
|
|
87
|
+
const It = {
|
|
75
88
|
document: Ye,
|
|
76
89
|
navigator: {
|
|
77
90
|
userAgent: ""
|
|
@@ -129,14 +142,14 @@ const Mt = {
|
|
|
129
142
|
typeof setTimeout > "u" || clearTimeout(t);
|
|
130
143
|
}
|
|
131
144
|
};
|
|
132
|
-
function
|
|
145
|
+
function B() {
|
|
133
146
|
const t = typeof window < "u" ? window : {};
|
|
134
|
-
return Oe(t,
|
|
147
|
+
return Oe(t, It), t;
|
|
135
148
|
}
|
|
136
|
-
function
|
|
149
|
+
function Lt(t) {
|
|
137
150
|
return t === void 0 && (t = ""), t.trim().split(" ").filter((e) => !!e.trim());
|
|
138
151
|
}
|
|
139
|
-
function
|
|
152
|
+
function At(t) {
|
|
140
153
|
const e = t;
|
|
141
154
|
Object.keys(e).forEach((s) => {
|
|
142
155
|
try {
|
|
@@ -155,33 +168,33 @@ function Ee(t, e) {
|
|
|
155
168
|
function le() {
|
|
156
169
|
return Date.now();
|
|
157
170
|
}
|
|
158
|
-
function
|
|
159
|
-
const e =
|
|
171
|
+
function Ot(t) {
|
|
172
|
+
const e = B();
|
|
160
173
|
let s;
|
|
161
174
|
return e.getComputedStyle && (s = e.getComputedStyle(t, null)), !s && t.currentStyle && (s = t.currentStyle), s || (s = t.style), s;
|
|
162
175
|
}
|
|
163
|
-
function
|
|
176
|
+
function zt(t, e) {
|
|
164
177
|
e === void 0 && (e = "x");
|
|
165
|
-
const s =
|
|
178
|
+
const s = B();
|
|
166
179
|
let r, n, i;
|
|
167
|
-
const l =
|
|
180
|
+
const l = Ot(t);
|
|
168
181
|
return s.WebKitCSSMatrix ? (n = l.transform || l.webkitTransform, n.split(",").length > 6 && (n = n.split(", ").map((a) => a.replace(",", ".")).join(", ")), i = new s.WebKitCSSMatrix(n === "none" ? "" : n)) : (i = l.MozTransform || l.OTransform || l.MsTransform || l.msTransform || l.transform || l.getPropertyValue("transform").replace("translate(", "matrix(1, 0, 0, 1,"), r = i.toString().split(",")), e === "x" && (s.WebKitCSSMatrix ? n = i.m41 : r.length === 16 ? n = parseFloat(r[12]) : n = parseFloat(r[4])), e === "y" && (s.WebKitCSSMatrix ? n = i.m42 : r.length === 16 ? n = parseFloat(r[13]) : n = parseFloat(r[5])), n || 0;
|
|
169
182
|
}
|
|
170
183
|
function se(t) {
|
|
171
184
|
return typeof t == "object" && t !== null && t.constructor && Object.prototype.toString.call(t).slice(8, -1) === "Object";
|
|
172
185
|
}
|
|
173
|
-
function
|
|
186
|
+
function _t(t) {
|
|
174
187
|
return typeof window < "u" && typeof window.HTMLElement < "u" ? t instanceof HTMLElement : t && (t.nodeType === 1 || t.nodeType === 11);
|
|
175
188
|
}
|
|
176
|
-
function
|
|
189
|
+
function N() {
|
|
177
190
|
const t = Object(arguments.length <= 0 ? void 0 : arguments[0]), e = ["__proto__", "constructor", "prototype"];
|
|
178
191
|
for (let s = 1; s < arguments.length; s += 1) {
|
|
179
192
|
const r = s < 0 || arguments.length <= s ? void 0 : arguments[s];
|
|
180
|
-
if (r != null && !
|
|
193
|
+
if (r != null && !_t(r)) {
|
|
181
194
|
const n = Object.keys(Object(r)).filter((i) => e.indexOf(i) < 0);
|
|
182
195
|
for (let i = 0, l = n.length; i < l; i += 1) {
|
|
183
196
|
const a = n[i], o = Object.getOwnPropertyDescriptor(r, a);
|
|
184
|
-
o !== void 0 && o.enumerable && (se(t[a]) && se(r[a]) ? r[a].__swiper__ ? t[a] = r[a] :
|
|
197
|
+
o !== void 0 && o.enumerable && (se(t[a]) && se(r[a]) ? r[a].__swiper__ ? t[a] = r[a] : N(t[a], r[a]) : !se(t[a]) && se(r[a]) ? (t[a] = {}, r[a].__swiper__ ? t[a] = r[a] : N(t[a], r[a])) : t[a] = r[a]);
|
|
185
198
|
}
|
|
186
199
|
}
|
|
187
200
|
}
|
|
@@ -196,7 +209,7 @@ function Xe(t) {
|
|
|
196
209
|
targetPosition: s,
|
|
197
210
|
side: r
|
|
198
211
|
} = t;
|
|
199
|
-
const n =
|
|
212
|
+
const n = B(), i = -e.translate;
|
|
200
213
|
let l = null, a;
|
|
201
214
|
const o = e.params.speed;
|
|
202
215
|
e.wrapperEl.style.scrollSnapType = "none", n.cancelAnimationFrame(e.cssModeFrameID);
|
|
@@ -220,10 +233,10 @@ function Xe(t) {
|
|
|
220
233
|
}
|
|
221
234
|
function H(t, e) {
|
|
222
235
|
e === void 0 && (e = "");
|
|
223
|
-
const s =
|
|
236
|
+
const s = B(), r = [...t.children];
|
|
224
237
|
return s.HTMLSlotElement && t instanceof HTMLSlotElement && r.push(...t.assignedElements()), e ? r.filter((n) => n.matches(e)) : r;
|
|
225
238
|
}
|
|
226
|
-
function
|
|
239
|
+
function $t(t, e) {
|
|
227
240
|
const s = [e];
|
|
228
241
|
for (; s.length > 0; ) {
|
|
229
242
|
const r = s.shift();
|
|
@@ -232,10 +245,10 @@ function zt(t, e) {
|
|
|
232
245
|
s.push(...r.children, ...r.shadowRoot ? r.shadowRoot.children : [], ...r.assignedElements ? r.assignedElements() : []);
|
|
233
246
|
}
|
|
234
247
|
}
|
|
235
|
-
function
|
|
236
|
-
const s =
|
|
248
|
+
function Gt(t, e) {
|
|
249
|
+
const s = B();
|
|
237
250
|
let r = e.contains(t);
|
|
238
|
-
return !r && s.HTMLSlotElement && e instanceof HTMLSlotElement && (r = [...e.assignedElements()].includes(t), r || (r =
|
|
251
|
+
return !r && s.HTMLSlotElement && e instanceof HTMLSlotElement && (r = [...e.assignedElements()].includes(t), r || (r = $t(t, e))), r;
|
|
239
252
|
}
|
|
240
253
|
function oe(t) {
|
|
241
254
|
try {
|
|
@@ -247,9 +260,9 @@ function oe(t) {
|
|
|
247
260
|
function de(t, e) {
|
|
248
261
|
e === void 0 && (e = []);
|
|
249
262
|
const s = document.createElement(t);
|
|
250
|
-
return s.classList.add(...Array.isArray(e) ? e :
|
|
263
|
+
return s.classList.add(...Array.isArray(e) ? e : Lt(e)), s;
|
|
251
264
|
}
|
|
252
|
-
function
|
|
265
|
+
function Bt(t, e) {
|
|
253
266
|
const s = [];
|
|
254
267
|
for (; t.previousElementSibling; ) {
|
|
255
268
|
const r = t.previousElementSibling;
|
|
@@ -257,7 +270,7 @@ function $t(t, e) {
|
|
|
257
270
|
}
|
|
258
271
|
return s;
|
|
259
272
|
}
|
|
260
|
-
function
|
|
273
|
+
function Nt(t, e) {
|
|
261
274
|
const s = [];
|
|
262
275
|
for (; t.nextElementSibling; ) {
|
|
263
276
|
const r = t.nextElementSibling;
|
|
@@ -266,7 +279,7 @@ function Gt(t, e) {
|
|
|
266
279
|
return s;
|
|
267
280
|
}
|
|
268
281
|
function X(t, e) {
|
|
269
|
-
return
|
|
282
|
+
return B().getComputedStyle(t, null).getPropertyValue(e);
|
|
270
283
|
}
|
|
271
284
|
function ce(t) {
|
|
272
285
|
let e = t, s;
|
|
@@ -284,29 +297,29 @@ function Ue(t, e) {
|
|
|
284
297
|
return s;
|
|
285
298
|
}
|
|
286
299
|
function xe(t, e, s) {
|
|
287
|
-
const r =
|
|
300
|
+
const r = B();
|
|
288
301
|
return t[e === "width" ? "offsetWidth" : "offsetHeight"] + parseFloat(r.getComputedStyle(t, null).getPropertyValue(e === "width" ? "margin-right" : "margin-top")) + parseFloat(r.getComputedStyle(t, null).getPropertyValue(e === "width" ? "margin-left" : "margin-bottom"));
|
|
289
302
|
}
|
|
290
303
|
function R(t) {
|
|
291
304
|
return (Array.isArray(t) ? t : [t]).filter((e) => !!e);
|
|
292
305
|
}
|
|
293
306
|
let fe;
|
|
294
|
-
function
|
|
295
|
-
const t =
|
|
307
|
+
function Dt() {
|
|
308
|
+
const t = B(), e = K();
|
|
296
309
|
return {
|
|
297
310
|
smoothScroll: e.documentElement && e.documentElement.style && "scrollBehavior" in e.documentElement.style,
|
|
298
311
|
touch: !!("ontouchstart" in t || t.DocumentTouch && e instanceof t.DocumentTouch)
|
|
299
312
|
};
|
|
300
313
|
}
|
|
301
314
|
function Qe() {
|
|
302
|
-
return fe || (fe =
|
|
315
|
+
return fe || (fe = Dt()), fe;
|
|
303
316
|
}
|
|
304
317
|
let he;
|
|
305
|
-
function
|
|
318
|
+
function Ft(t) {
|
|
306
319
|
let {
|
|
307
320
|
userAgent: e
|
|
308
321
|
} = t === void 0 ? {} : t;
|
|
309
|
-
const s = Qe(), r =
|
|
322
|
+
const s = Qe(), r = B(), n = r.navigator.platform, i = e || r.navigator.userAgent, l = {
|
|
310
323
|
ios: !1,
|
|
311
324
|
android: !1
|
|
312
325
|
}, a = r.screen.width, o = r.screen.height, c = i.match(/(Android);?[\s\/]+([\d.]+)?/);
|
|
@@ -317,11 +330,11 @@ function Bt(t) {
|
|
|
317
330
|
return !d && h && s.touch && b.indexOf(`${a}x${o}`) >= 0 && (d = i.match(/(Version)\/([\d.]+)/), d || (d = [0, 1, "13_0_0"]), h = !1), c && !v && (l.os = "android", l.android = !0), (d || f || u) && (l.os = "ios", l.ios = !0), l;
|
|
318
331
|
}
|
|
319
332
|
function Ke(t) {
|
|
320
|
-
return t === void 0 && (t = {}), he || (he =
|
|
333
|
+
return t === void 0 && (t = {}), he || (he = Ft(t)), he;
|
|
321
334
|
}
|
|
322
335
|
let ve;
|
|
323
|
-
function
|
|
324
|
-
const t =
|
|
336
|
+
function Vt() {
|
|
337
|
+
const t = B(), e = Ke();
|
|
325
338
|
let s = !1;
|
|
326
339
|
function r() {
|
|
327
340
|
const a = t.navigator.userAgent.toLowerCase();
|
|
@@ -343,15 +356,15 @@ function Dt() {
|
|
|
343
356
|
};
|
|
344
357
|
}
|
|
345
358
|
function Je() {
|
|
346
|
-
return ve || (ve =
|
|
359
|
+
return ve || (ve = Vt()), ve;
|
|
347
360
|
}
|
|
348
|
-
function
|
|
361
|
+
function jt(t) {
|
|
349
362
|
let {
|
|
350
363
|
swiper: e,
|
|
351
364
|
on: s,
|
|
352
365
|
emit: r
|
|
353
366
|
} = t;
|
|
354
|
-
const n =
|
|
367
|
+
const n = B();
|
|
355
368
|
let i = null, l = null;
|
|
356
369
|
const a = () => {
|
|
357
370
|
!e || e.destroyed || !e.initialized || (r("beforeResize"), r("resize"));
|
|
@@ -388,14 +401,14 @@ function Ft(t) {
|
|
|
388
401
|
c(), n.removeEventListener("resize", a), n.removeEventListener("orientationchange", d);
|
|
389
402
|
});
|
|
390
403
|
}
|
|
391
|
-
function
|
|
404
|
+
function Ht(t) {
|
|
392
405
|
let {
|
|
393
406
|
swiper: e,
|
|
394
407
|
extendParams: s,
|
|
395
408
|
on: r,
|
|
396
409
|
emit: n
|
|
397
410
|
} = t;
|
|
398
|
-
const i = [], l =
|
|
411
|
+
const i = [], l = B(), a = function(d, u) {
|
|
399
412
|
u === void 0 && (u = {});
|
|
400
413
|
const f = l.MutationObserver || l.WebkitMutationObserver, v = new f((h) => {
|
|
401
414
|
if (e.__preventObserver__) return;
|
|
@@ -437,7 +450,7 @@ function Vt(t) {
|
|
|
437
450
|
observeSlideChildren: !1
|
|
438
451
|
}), r("init", o), r("destroy", c);
|
|
439
452
|
}
|
|
440
|
-
var
|
|
453
|
+
var Rt = {
|
|
441
454
|
on(t, e, s) {
|
|
442
455
|
const r = this;
|
|
443
456
|
if (!r.eventsListeners || r.destroyed || typeof e != "function") return r;
|
|
@@ -492,7 +505,7 @@ var jt = {
|
|
|
492
505
|
}), t;
|
|
493
506
|
}
|
|
494
507
|
};
|
|
495
|
-
function
|
|
508
|
+
function qt() {
|
|
496
509
|
const t = this;
|
|
497
510
|
let e, s;
|
|
498
511
|
const r = t.el;
|
|
@@ -502,7 +515,7 @@ function Ht() {
|
|
|
502
515
|
size: t.isHorizontal() ? e : s
|
|
503
516
|
}));
|
|
504
517
|
}
|
|
505
|
-
function
|
|
518
|
+
function Wt() {
|
|
506
519
|
const t = this;
|
|
507
520
|
function e(E, x) {
|
|
508
521
|
return parseFloat(E.getPropertyValue(t.getDirectionLabel(x)) || 0);
|
|
@@ -620,7 +633,7 @@ function Rt() {
|
|
|
620
633
|
u <= s.maxBackfaceHiddenSlides ? x || t.el.classList.add(E) : x && t.el.classList.remove(E);
|
|
621
634
|
}
|
|
622
635
|
}
|
|
623
|
-
function
|
|
636
|
+
function Yt(t) {
|
|
624
637
|
const e = this, s = [], r = e.virtual && e.params.virtual.enabled;
|
|
625
638
|
let n = 0, i;
|
|
626
639
|
typeof t == "number" ? e.setTransition(t) : t === !0 && e.setTransition(e.params.speed);
|
|
@@ -645,7 +658,7 @@ function qt(t) {
|
|
|
645
658
|
}
|
|
646
659
|
(n || n === 0) && (e.wrapperEl.style.height = `${n}px`);
|
|
647
660
|
}
|
|
648
|
-
function
|
|
661
|
+
function Xt() {
|
|
649
662
|
const t = this, e = t.slides, s = t.isElement ? t.isHorizontal() ? t.wrapperEl.offsetLeft : t.wrapperEl.offsetTop : 0;
|
|
650
663
|
for (let r = 0; r < e.length; r += 1)
|
|
651
664
|
e[r].swiperSlideOffset = (t.isHorizontal() ? e[r].offsetLeft : e[r].offsetTop) - s - t.cssOverflowAdjustment();
|
|
@@ -653,7 +666,7 @@ function Wt() {
|
|
|
653
666
|
const Ge = (t, e, s) => {
|
|
654
667
|
e && !t.classList.contains(s) ? t.classList.add(s) : !e && t.classList.contains(s) && t.classList.remove(s);
|
|
655
668
|
};
|
|
656
|
-
function
|
|
669
|
+
function Ut(t) {
|
|
657
670
|
t === void 0 && (t = this && this.translate || 0);
|
|
658
671
|
const e = this, s = e.params, {
|
|
659
672
|
slides: r,
|
|
@@ -674,7 +687,7 @@ function Yt(t) {
|
|
|
674
687
|
M && (e.visibleSlides.push(c), e.visibleSlidesIndexes.push(o)), Ge(c, M, s.slideVisibleClass), Ge(c, b, s.slideFullyVisibleClass), c.progress = n ? -u : u, c.originalProgress = n ? -f : f;
|
|
675
688
|
}
|
|
676
689
|
}
|
|
677
|
-
function
|
|
690
|
+
function Qt(t) {
|
|
678
691
|
const e = this;
|
|
679
692
|
if (typeof t > "u") {
|
|
680
693
|
const d = e.rtlTranslate ? -1 : 1;
|
|
@@ -709,7 +722,7 @@ function Xt(t) {
|
|
|
709
722
|
const ge = (t, e, s) => {
|
|
710
723
|
e && !t.classList.contains(s) ? t.classList.add(s) : !e && t.classList.contains(s) && t.classList.remove(s);
|
|
711
724
|
};
|
|
712
|
-
function
|
|
725
|
+
function Kt() {
|
|
713
726
|
const t = this, {
|
|
714
727
|
slides: e,
|
|
715
728
|
params: s,
|
|
@@ -725,7 +738,7 @@ function Ut() {
|
|
|
725
738
|
o = a(`[data-swiper-slide-index="${n}"]`);
|
|
726
739
|
else
|
|
727
740
|
l ? (o = e.find((u) => u.column === n), d = e.find((u) => u.column === n + 1), c = e.find((u) => u.column === n - 1)) : o = e[n];
|
|
728
|
-
o && (l || (d =
|
|
741
|
+
o && (l || (d = Nt(o, `.${s.slideClass}, swiper-slide`)[0], s.loop && !d && (d = e[0]), c = Bt(o, `.${s.slideClass}, swiper-slide`)[0], s.loop && !c === 0 && (c = e[e.length - 1]))), e.forEach((u) => {
|
|
729
742
|
ge(u, u === o, s.slideActiveClass), ge(u, u === d, s.slideNextClass), ge(u, u === c, s.slidePrevClass);
|
|
730
743
|
}), t.emitSlidesClasses();
|
|
731
744
|
}
|
|
@@ -768,7 +781,7 @@ const ne = (t, e) => {
|
|
|
768
781
|
for (let l = Math.max(n - e, 0); l <= Math.min(i + e, s - 1); l += 1)
|
|
769
782
|
l !== n && (l > i || l < n) && we(t, l);
|
|
770
783
|
};
|
|
771
|
-
function
|
|
784
|
+
function Jt(t) {
|
|
772
785
|
const {
|
|
773
786
|
slidesGrid: e,
|
|
774
787
|
params: s
|
|
@@ -778,7 +791,7 @@ function Qt(t) {
|
|
|
778
791
|
typeof e[i + 1] < "u" ? r >= e[i] && r < e[i + 1] - (e[i + 1] - e[i]) / 2 ? n = i : r >= e[i] && r < e[i + 1] && (n = i + 1) : r >= e[i] && (n = i);
|
|
779
792
|
return s.normalizeSlideIndex && (n < 0 || typeof n > "u") && (n = 0), n;
|
|
780
793
|
}
|
|
781
|
-
function
|
|
794
|
+
function Zt(t) {
|
|
782
795
|
const e = this, s = e.rtlTranslate ? e.translate : -e.translate, {
|
|
783
796
|
snapGrid: r,
|
|
784
797
|
params: n,
|
|
@@ -791,7 +804,7 @@ function Kt(t) {
|
|
|
791
804
|
let h = v - e.virtual.slidesBefore;
|
|
792
805
|
return h < 0 && (h = e.virtual.slides.length + h), h >= e.virtual.slides.length && (h -= e.virtual.slides.length), h;
|
|
793
806
|
};
|
|
794
|
-
if (typeof o > "u" && (o =
|
|
807
|
+
if (typeof o > "u" && (o = Jt(e)), r.indexOf(s) >= 0)
|
|
795
808
|
c = r.indexOf(s);
|
|
796
809
|
else {
|
|
797
810
|
const v = Math.min(n.slidesPerGroupSkip, o);
|
|
@@ -827,7 +840,7 @@ function Kt(t) {
|
|
|
827
840
|
activeIndex: o
|
|
828
841
|
}), e.initialized && Te(e), e.emit("activeIndexChange"), e.emit("snapIndexChange"), (e.initialized || e.params.runCallbacksOnInit) && (l !== f && e.emit("realIndexChange"), e.emit("slideChange"));
|
|
829
842
|
}
|
|
830
|
-
function
|
|
843
|
+
function es(t, e) {
|
|
831
844
|
const s = this, r = s.params;
|
|
832
845
|
let n = t.closest(`.${r.slideClass}, swiper-slide`);
|
|
833
846
|
!n && s.isElement && e && e.length > 1 && e.includes(t) && [...e.slice(e.indexOf(t) + 1, e.length)].forEach((a) => {
|
|
@@ -849,18 +862,18 @@ function Jt(t, e) {
|
|
|
849
862
|
}
|
|
850
863
|
r.slideToClickedSlide && s.clickedIndex !== void 0 && s.clickedIndex !== s.activeIndex && s.slideToClickedSlide();
|
|
851
864
|
}
|
|
852
|
-
var
|
|
853
|
-
updateSize:
|
|
854
|
-
updateSlides:
|
|
855
|
-
updateAutoHeight:
|
|
856
|
-
updateSlidesOffset:
|
|
857
|
-
updateSlidesProgress:
|
|
858
|
-
updateProgress:
|
|
859
|
-
updateSlidesClasses:
|
|
860
|
-
updateActiveIndex:
|
|
861
|
-
updateClickedSlide:
|
|
865
|
+
var ts = {
|
|
866
|
+
updateSize: qt,
|
|
867
|
+
updateSlides: Wt,
|
|
868
|
+
updateAutoHeight: Yt,
|
|
869
|
+
updateSlidesOffset: Xt,
|
|
870
|
+
updateSlidesProgress: Ut,
|
|
871
|
+
updateProgress: Qt,
|
|
872
|
+
updateSlidesClasses: Kt,
|
|
873
|
+
updateActiveIndex: Zt,
|
|
874
|
+
updateClickedSlide: es
|
|
862
875
|
};
|
|
863
|
-
function
|
|
876
|
+
function ss(t) {
|
|
864
877
|
t === void 0 && (t = this.isHorizontal() ? "x" : "y");
|
|
865
878
|
const e = this, {
|
|
866
879
|
params: s,
|
|
@@ -872,10 +885,10 @@ function es(t) {
|
|
|
872
885
|
return r ? -n : n;
|
|
873
886
|
if (s.cssMode)
|
|
874
887
|
return n;
|
|
875
|
-
let l =
|
|
888
|
+
let l = zt(i, t);
|
|
876
889
|
return l += e.cssOverflowAdjustment(), r && (l = -l), l || 0;
|
|
877
890
|
}
|
|
878
|
-
function
|
|
891
|
+
function rs(t, e) {
|
|
879
892
|
const s = this, {
|
|
880
893
|
rtlTranslate: r,
|
|
881
894
|
params: n,
|
|
@@ -889,13 +902,13 @@ function ts(t, e) {
|
|
|
889
902
|
const u = s.maxTranslate() - s.minTranslate();
|
|
890
903
|
u === 0 ? d = 0 : d = (t - s.minTranslate()) / u, d !== l && s.updateProgress(t), s.emit("setTranslate", s.translate, e);
|
|
891
904
|
}
|
|
892
|
-
function
|
|
905
|
+
function is() {
|
|
893
906
|
return -this.snapGrid[0];
|
|
894
907
|
}
|
|
895
|
-
function
|
|
908
|
+
function ns() {
|
|
896
909
|
return -this.snapGrid[this.snapGrid.length - 1];
|
|
897
910
|
}
|
|
898
|
-
function
|
|
911
|
+
function as(t, e, s, r, n) {
|
|
899
912
|
t === void 0 && (t = 0), e === void 0 && (e = this.params.speed), s === void 0 && (s = !0), r === void 0 && (r = !0);
|
|
900
913
|
const i = this, {
|
|
901
914
|
params: l,
|
|
@@ -927,14 +940,14 @@ function is(t, e, s, r, n) {
|
|
|
927
940
|
!i || i.destroyed || u.target === this && (i.wrapperEl.removeEventListener("transitionend", i.onTranslateToWrapperTransitionEnd), i.onTranslateToWrapperTransitionEnd = null, delete i.onTranslateToWrapperTransitionEnd, i.animating = !1, s && i.emit("transitionEnd"));
|
|
928
941
|
}), i.wrapperEl.addEventListener("transitionend", i.onTranslateToWrapperTransitionEnd))), !0;
|
|
929
942
|
}
|
|
930
|
-
var
|
|
931
|
-
getTranslate:
|
|
932
|
-
setTranslate:
|
|
933
|
-
minTranslate:
|
|
934
|
-
maxTranslate:
|
|
935
|
-
translateTo:
|
|
943
|
+
var ls = {
|
|
944
|
+
getTranslate: ss,
|
|
945
|
+
setTranslate: rs,
|
|
946
|
+
minTranslate: is,
|
|
947
|
+
maxTranslate: ns,
|
|
948
|
+
translateTo: as
|
|
936
949
|
};
|
|
937
|
-
function
|
|
950
|
+
function os(t, e) {
|
|
938
951
|
const s = this;
|
|
939
952
|
s.params.cssMode || (s.wrapperEl.style.transitionDuration = `${t}ms`, s.wrapperEl.style.transitionDelay = t === 0 ? "0ms" : ""), s.emit("setTransition", t, e);
|
|
940
953
|
}
|
|
@@ -958,7 +971,7 @@ function Ze(t) {
|
|
|
958
971
|
e.emit(`slideChangeTransition${n}`), a === "next" ? e.emit(`slideNextTransition${n}`) : e.emit(`slidePrevTransition${n}`);
|
|
959
972
|
}
|
|
960
973
|
}
|
|
961
|
-
function
|
|
974
|
+
function ds(t, e) {
|
|
962
975
|
t === void 0 && (t = !0);
|
|
963
976
|
const s = this, {
|
|
964
977
|
params: r
|
|
@@ -970,7 +983,7 @@ function ls(t, e) {
|
|
|
970
983
|
step: "Start"
|
|
971
984
|
}));
|
|
972
985
|
}
|
|
973
|
-
function
|
|
986
|
+
function cs(t, e) {
|
|
974
987
|
t === void 0 && (t = !0);
|
|
975
988
|
const s = this, {
|
|
976
989
|
params: r
|
|
@@ -982,12 +995,12 @@ function os(t, e) {
|
|
|
982
995
|
step: "End"
|
|
983
996
|
}));
|
|
984
997
|
}
|
|
985
|
-
var
|
|
986
|
-
setTransition:
|
|
987
|
-
transitionStart:
|
|
988
|
-
transitionEnd:
|
|
998
|
+
var ps = {
|
|
999
|
+
setTransition: os,
|
|
1000
|
+
transitionStart: ds,
|
|
1001
|
+
transitionEnd: cs
|
|
989
1002
|
};
|
|
990
|
-
function
|
|
1003
|
+
function us(t, e, s, r, n) {
|
|
991
1004
|
t === void 0 && (t = 0), s === void 0 && (s = !0), typeof t == "string" && (t = parseInt(t, 10));
|
|
992
1005
|
const i = this;
|
|
993
1006
|
let l = t;
|
|
@@ -1049,7 +1062,7 @@ function cs(t, e, s, r, n) {
|
|
|
1049
1062
|
!i || i.destroyed || y.target === this && (i.wrapperEl.removeEventListener("transitionend", i.onSlideToWrapperTransitionEnd), i.onSlideToWrapperTransitionEnd = null, delete i.onSlideToWrapperTransitionEnd, i.transitionEnd(s, p));
|
|
1050
1063
|
}), i.wrapperEl.addEventListener("transitionend", i.onSlideToWrapperTransitionEnd)), !0;
|
|
1051
1064
|
}
|
|
1052
|
-
function
|
|
1065
|
+
function ms(t, e, s, r) {
|
|
1053
1066
|
t === void 0 && (t = 0), s === void 0 && (s = !0), typeof t == "string" && (t = parseInt(t, 10));
|
|
1054
1067
|
const n = this;
|
|
1055
1068
|
if (n.destroyed) return;
|
|
@@ -1091,7 +1104,7 @@ function ps(t, e, s, r) {
|
|
|
1091
1104
|
n.slideTo(l, e, s, r);
|
|
1092
1105
|
}), n;
|
|
1093
1106
|
}
|
|
1094
|
-
function
|
|
1107
|
+
function fs(t, e, s) {
|
|
1095
1108
|
e === void 0 && (e = !0);
|
|
1096
1109
|
const r = this, {
|
|
1097
1110
|
enabled: n,
|
|
@@ -1114,7 +1127,7 @@ function us(t, e, s) {
|
|
|
1114
1127
|
}
|
|
1115
1128
|
return i.rewind && r.isEnd ? r.slideTo(0, t, e, s) : r.slideTo(r.activeIndex + o, t, e, s);
|
|
1116
1129
|
}
|
|
1117
|
-
function
|
|
1130
|
+
function hs(t, e, s) {
|
|
1118
1131
|
e === void 0 && (e = !0);
|
|
1119
1132
|
const r = this, {
|
|
1120
1133
|
params: n,
|
|
@@ -1155,13 +1168,13 @@ function ms(t, e, s) {
|
|
|
1155
1168
|
}), !0;
|
|
1156
1169
|
return r.slideTo(w, t, e, s);
|
|
1157
1170
|
}
|
|
1158
|
-
function
|
|
1171
|
+
function vs(t, e, s) {
|
|
1159
1172
|
e === void 0 && (e = !0);
|
|
1160
1173
|
const r = this;
|
|
1161
1174
|
if (!r.destroyed)
|
|
1162
1175
|
return typeof t > "u" && (t = r.params.speed), r.slideTo(r.activeIndex, t, e, s);
|
|
1163
1176
|
}
|
|
1164
|
-
function
|
|
1177
|
+
function gs(t, e, s, r) {
|
|
1165
1178
|
e === void 0 && (e = !0), r === void 0 && (r = 0.5);
|
|
1166
1179
|
const n = this;
|
|
1167
1180
|
if (n.destroyed) return;
|
|
@@ -1177,7 +1190,7 @@ function hs(t, e, s, r) {
|
|
|
1177
1190
|
}
|
|
1178
1191
|
return i = Math.max(i, 0), i = Math.min(i, n.slidesGrid.length - 1), n.slideTo(i, t, e, s);
|
|
1179
1192
|
}
|
|
1180
|
-
function
|
|
1193
|
+
function ws() {
|
|
1181
1194
|
const t = this;
|
|
1182
1195
|
if (t.destroyed) return;
|
|
1183
1196
|
const {
|
|
@@ -1196,16 +1209,16 @@ function vs() {
|
|
|
1196
1209
|
} else
|
|
1197
1210
|
t.slideTo(n);
|
|
1198
1211
|
}
|
|
1199
|
-
var
|
|
1200
|
-
slideTo:
|
|
1201
|
-
slideToLoop:
|
|
1202
|
-
slideNext:
|
|
1203
|
-
slidePrev:
|
|
1204
|
-
slideReset:
|
|
1205
|
-
slideToClosest:
|
|
1206
|
-
slideToClickedSlide:
|
|
1212
|
+
var bs = {
|
|
1213
|
+
slideTo: us,
|
|
1214
|
+
slideToLoop: ms,
|
|
1215
|
+
slideNext: fs,
|
|
1216
|
+
slidePrev: hs,
|
|
1217
|
+
slideReset: vs,
|
|
1218
|
+
slideToClosest: gs,
|
|
1219
|
+
slideToClickedSlide: ws
|
|
1207
1220
|
};
|
|
1208
|
-
function
|
|
1221
|
+
function ys(t, e) {
|
|
1209
1222
|
const s = this, {
|
|
1210
1223
|
params: r,
|
|
1211
1224
|
slidesEl: n
|
|
@@ -1243,7 +1256,7 @@ function ws(t, e) {
|
|
|
1243
1256
|
initial: e
|
|
1244
1257
|
});
|
|
1245
1258
|
}
|
|
1246
|
-
function
|
|
1259
|
+
function Ss(t) {
|
|
1247
1260
|
let {
|
|
1248
1261
|
slideRealIndex: e,
|
|
1249
1262
|
slideTo: s = !0,
|
|
@@ -1350,7 +1363,7 @@ function bs(t) {
|
|
|
1350
1363
|
}
|
|
1351
1364
|
c.emit("loopFix");
|
|
1352
1365
|
}
|
|
1353
|
-
function
|
|
1366
|
+
function Es() {
|
|
1354
1367
|
const t = this, {
|
|
1355
1368
|
params: e,
|
|
1356
1369
|
slidesEl: s
|
|
@@ -1367,12 +1380,12 @@ function ys() {
|
|
|
1367
1380
|
s.append(n);
|
|
1368
1381
|
}), t.recalcSlides(), t.slideTo(t.realIndex, 0);
|
|
1369
1382
|
}
|
|
1370
|
-
var
|
|
1371
|
-
loopCreate:
|
|
1372
|
-
loopFix:
|
|
1373
|
-
loopDestroy:
|
|
1383
|
+
var xs = {
|
|
1384
|
+
loopCreate: ys,
|
|
1385
|
+
loopFix: Ss,
|
|
1386
|
+
loopDestroy: Es
|
|
1374
1387
|
};
|
|
1375
|
-
function
|
|
1388
|
+
function Ts(t) {
|
|
1376
1389
|
const e = this;
|
|
1377
1390
|
if (!e.params.simulateTouch || e.params.watchOverflow && e.isLocked || e.params.cssMode) return;
|
|
1378
1391
|
const s = e.params.touchEventsTarget === "container" ? e.el : e.wrapperEl;
|
|
@@ -1380,33 +1393,33 @@ function Es(t) {
|
|
|
1380
1393
|
e.__preventObserver__ = !1;
|
|
1381
1394
|
});
|
|
1382
1395
|
}
|
|
1383
|
-
function
|
|
1396
|
+
function Cs() {
|
|
1384
1397
|
const t = this;
|
|
1385
1398
|
t.params.watchOverflow && t.isLocked || t.params.cssMode || (t.isElement && (t.__preventObserver__ = !0), t[t.params.touchEventsTarget === "container" ? "el" : "wrapperEl"].style.cursor = "", t.isElement && requestAnimationFrame(() => {
|
|
1386
1399
|
t.__preventObserver__ = !1;
|
|
1387
1400
|
}));
|
|
1388
1401
|
}
|
|
1389
|
-
var
|
|
1390
|
-
setGrabCursor:
|
|
1391
|
-
unsetGrabCursor:
|
|
1402
|
+
var Ps = {
|
|
1403
|
+
setGrabCursor: Ts,
|
|
1404
|
+
unsetGrabCursor: Cs
|
|
1392
1405
|
};
|
|
1393
|
-
function
|
|
1406
|
+
function Ms(t, e) {
|
|
1394
1407
|
e === void 0 && (e = this);
|
|
1395
1408
|
function s(r) {
|
|
1396
|
-
if (!r || r === K() || r ===
|
|
1409
|
+
if (!r || r === K() || r === B()) return null;
|
|
1397
1410
|
r.assignedSlot && (r = r.assignedSlot);
|
|
1398
1411
|
const n = r.closest(t);
|
|
1399
1412
|
return !n && !r.getRootNode ? null : n || s(r.getRootNode().host);
|
|
1400
1413
|
}
|
|
1401
1414
|
return s(e);
|
|
1402
1415
|
}
|
|
1403
|
-
function
|
|
1404
|
-
const r =
|
|
1416
|
+
function Be(t, e, s) {
|
|
1417
|
+
const r = B(), {
|
|
1405
1418
|
params: n
|
|
1406
1419
|
} = t, i = n.edgeSwipeDetection, l = n.edgeSwipeThreshold;
|
|
1407
1420
|
return i && (s <= l || s >= r.innerWidth - l) ? i === "prevent" ? (e.preventDefault(), !0) : !1 : !0;
|
|
1408
1421
|
}
|
|
1409
|
-
function
|
|
1422
|
+
function ks(t) {
|
|
1410
1423
|
const e = this, s = K();
|
|
1411
1424
|
let r = t;
|
|
1412
1425
|
r.originalEvent && (r = r.originalEvent);
|
|
@@ -1417,7 +1430,7 @@ function Ps(t) {
|
|
|
1417
1430
|
n.pointerId = r.pointerId;
|
|
1418
1431
|
} else r.type === "touchstart" && r.targetTouches.length === 1 && (n.touchId = r.targetTouches[0].identifier);
|
|
1419
1432
|
if (r.type === "touchstart") {
|
|
1420
|
-
|
|
1433
|
+
Be(e, r, r.targetTouches[0].pageX);
|
|
1421
1434
|
return;
|
|
1422
1435
|
}
|
|
1423
1436
|
const {
|
|
@@ -1429,11 +1442,11 @@ function Ps(t) {
|
|
|
1429
1442
|
return;
|
|
1430
1443
|
!e.animating && i.cssMode && i.loop && e.loopFix();
|
|
1431
1444
|
let o = r.target;
|
|
1432
|
-
if (i.touchEventsTarget === "wrapper" && !
|
|
1445
|
+
if (i.touchEventsTarget === "wrapper" && !Gt(o, e.wrapperEl) || "which" in r && r.which === 3 || "button" in r && r.button > 0 || n.isTouched && n.isMoved) return;
|
|
1433
1446
|
const c = !!i.noSwipingClass && i.noSwipingClass !== "", d = r.composedPath ? r.composedPath() : r.path;
|
|
1434
1447
|
c && r.target && r.target.shadowRoot && d && (o = d[0]);
|
|
1435
1448
|
const u = i.noSwipingSelector ? i.noSwipingSelector : `.${i.noSwipingClass}`, f = !!(r.target && r.target.shadowRoot);
|
|
1436
|
-
if (i.noSwiping && (f ?
|
|
1449
|
+
if (i.noSwiping && (f ? Ms(u, o) : o.closest(u))) {
|
|
1437
1450
|
e.allowClick = !0;
|
|
1438
1451
|
return;
|
|
1439
1452
|
}
|
|
@@ -1441,7 +1454,7 @@ function Ps(t) {
|
|
|
1441
1454
|
return;
|
|
1442
1455
|
l.currentX = r.pageX, l.currentY = r.pageY;
|
|
1443
1456
|
const v = l.currentX, h = l.currentY;
|
|
1444
|
-
if (!
|
|
1457
|
+
if (!Be(e, r, v))
|
|
1445
1458
|
return;
|
|
1446
1459
|
Object.assign(n, {
|
|
1447
1460
|
isTouched: !0,
|
|
@@ -1455,7 +1468,7 @@ function Ps(t) {
|
|
|
1455
1468
|
const M = b && e.allowTouchMove && i.touchStartPreventDefault;
|
|
1456
1469
|
(i.touchStartForcePreventDefault || M) && !o.isContentEditable && r.preventDefault(), i.freeMode && i.freeMode.enabled && e.freeMode && e.animating && !i.cssMode && e.freeMode.onTouchStart(), e.emit("touchStart", r);
|
|
1457
1470
|
}
|
|
1458
|
-
function
|
|
1471
|
+
function Is(t) {
|
|
1459
1472
|
const e = K(), s = this, r = s.touchEventsData, {
|
|
1460
1473
|
params: n,
|
|
1461
1474
|
touches: i,
|
|
@@ -1569,7 +1582,7 @@ function Ms(t) {
|
|
|
1569
1582
|
}
|
|
1570
1583
|
!n.followFinger || n.cssMode || ((n.freeMode && n.freeMode.enabled && s.freeMode || n.watchSlidesProgress) && (s.updateActiveIndex(), s.updateSlidesClasses()), n.freeMode && n.freeMode.enabled && s.freeMode && s.freeMode.onTouchMove(), s.updateProgress(r.currentTranslate), s.setTranslate(r.currentTranslate));
|
|
1571
1584
|
}
|
|
1572
|
-
function
|
|
1585
|
+
function Ls(t) {
|
|
1573
1586
|
const e = this, s = e.touchEventsData;
|
|
1574
1587
|
let r = t;
|
|
1575
1588
|
r.originalEvent && (r = r.originalEvent);
|
|
@@ -1640,7 +1653,7 @@ function ks(t) {
|
|
|
1640
1653
|
e.navigation && (r.target === e.navigation.nextEl || r.target === e.navigation.prevEl) ? r.target === e.navigation.nextEl ? e.slideTo(h + m) : e.slideTo(h) : (e.swipeDirection === "next" && e.slideTo(M !== null ? M : h + m), e.swipeDirection === "prev" && e.slideTo(w !== null ? w : h));
|
|
1641
1654
|
}
|
|
1642
1655
|
}
|
|
1643
|
-
function
|
|
1656
|
+
function Ne() {
|
|
1644
1657
|
const t = this, {
|
|
1645
1658
|
params: e,
|
|
1646
1659
|
el: s
|
|
@@ -1658,11 +1671,11 @@ function Be() {
|
|
|
1658
1671
|
t.autoplay && t.autoplay.running && t.autoplay.paused && t.autoplay.resume();
|
|
1659
1672
|
}, 500)), t.allowSlidePrev = n, t.allowSlideNext = r, t.params.watchOverflow && i !== t.snapGrid && t.checkOverflow();
|
|
1660
1673
|
}
|
|
1661
|
-
function
|
|
1674
|
+
function As(t) {
|
|
1662
1675
|
const e = this;
|
|
1663
1676
|
e.enabled && (e.allowClick || (e.params.preventClicks && t.preventDefault(), e.params.preventClicksPropagation && e.animating && (t.stopPropagation(), t.stopImmediatePropagation())));
|
|
1664
1677
|
}
|
|
1665
|
-
function
|
|
1678
|
+
function Os() {
|
|
1666
1679
|
const t = this, {
|
|
1667
1680
|
wrapperEl: e,
|
|
1668
1681
|
rtlTranslate: s,
|
|
@@ -1674,11 +1687,11 @@ function Ls() {
|
|
|
1674
1687
|
const i = t.maxTranslate() - t.minTranslate();
|
|
1675
1688
|
i === 0 ? n = 0 : n = (t.translate - t.minTranslate()) / i, n !== t.progress && t.updateProgress(s ? -t.translate : t.translate), t.emit("setTranslate", t.translate, !1);
|
|
1676
1689
|
}
|
|
1677
|
-
function
|
|
1690
|
+
function zs(t) {
|
|
1678
1691
|
const e = this;
|
|
1679
1692
|
ne(e, t.target), !(e.params.cssMode || e.params.slidesPerView !== "auto" && !e.params.autoHeight) && e.update();
|
|
1680
1693
|
}
|
|
1681
|
-
function
|
|
1694
|
+
function _s() {
|
|
1682
1695
|
const t = this;
|
|
1683
1696
|
t.documentTouchHandlerProceeded || (t.documentTouchHandlerProceeded = !0, t.params.touchReleaseOnEdges && (t.el.style.touchAction = "auto"));
|
|
1684
1697
|
}
|
|
@@ -1716,25 +1729,25 @@ const et = (t, e) => {
|
|
|
1716
1729
|
passive: !0
|
|
1717
1730
|
}), s[o]("contextmenu", t.onTouchEnd, {
|
|
1718
1731
|
passive: !0
|
|
1719
|
-
}), (r.preventClicks || r.preventClicksPropagation) && n[o]("click", t.onClick, !0), r.cssMode && i[o]("scroll", t.onScroll), r.updateOnWindowResize ? t[c](l.ios || l.android ? "resize orientationchange observerUpdate" : "resize observerUpdate",
|
|
1732
|
+
}), (r.preventClicks || r.preventClicksPropagation) && n[o]("click", t.onClick, !0), r.cssMode && i[o]("scroll", t.onScroll), r.updateOnWindowResize ? t[c](l.ios || l.android ? "resize orientationchange observerUpdate" : "resize observerUpdate", Ne, !0) : t[c]("observerUpdate", Ne, !0), n[o]("load", t.onLoad, {
|
|
1720
1733
|
capture: !0
|
|
1721
1734
|
}));
|
|
1722
1735
|
};
|
|
1723
|
-
function
|
|
1736
|
+
function $s() {
|
|
1724
1737
|
const t = this, {
|
|
1725
1738
|
params: e
|
|
1726
1739
|
} = t;
|
|
1727
|
-
t.onTouchStart =
|
|
1740
|
+
t.onTouchStart = ks.bind(t), t.onTouchMove = Is.bind(t), t.onTouchEnd = Ls.bind(t), t.onDocumentTouchStart = _s.bind(t), e.cssMode && (t.onScroll = Os.bind(t)), t.onClick = As.bind(t), t.onLoad = zs.bind(t), et(t, "on");
|
|
1728
1741
|
}
|
|
1729
|
-
function
|
|
1742
|
+
function Gs() {
|
|
1730
1743
|
et(this, "off");
|
|
1731
1744
|
}
|
|
1732
|
-
var
|
|
1733
|
-
attachEvents:
|
|
1734
|
-
detachEvents:
|
|
1745
|
+
var Bs = {
|
|
1746
|
+
attachEvents: $s,
|
|
1747
|
+
detachEvents: Gs
|
|
1735
1748
|
};
|
|
1736
1749
|
const De = (t, e) => t.grid && e.grid && e.grid.rows > 1;
|
|
1737
|
-
function
|
|
1750
|
+
function Ns() {
|
|
1738
1751
|
const t = this, {
|
|
1739
1752
|
realIndex: e,
|
|
1740
1753
|
initialized: s,
|
|
@@ -1751,7 +1764,7 @@ function Gs() {
|
|
|
1751
1764
|
T && !A && t[y].disable(), !T && A && t[y].enable();
|
|
1752
1765
|
});
|
|
1753
1766
|
const M = d.direction && d.direction !== r.direction, w = r.loop && (d.slidesPerView !== r.slidesPerView || M), p = r.loop;
|
|
1754
|
-
M && s && t.changeDirection(),
|
|
1767
|
+
M && s && t.changeDirection(), N(t.params, d);
|
|
1755
1768
|
const m = t.params.enabled, g = t.params.loop;
|
|
1756
1769
|
Object.assign(t, {
|
|
1757
1770
|
allowTouchMove: t.params.allowTouchMove,
|
|
@@ -1759,10 +1772,10 @@ function Gs() {
|
|
|
1759
1772
|
allowSlidePrev: t.params.allowSlidePrev
|
|
1760
1773
|
}), b && !m ? t.disable() : !b && m && t.enable(), t.currentBreakpoint = c, t.emit("_beforeBreakpoint", d), s && (w ? (t.loopDestroy(), t.loopCreate(e), t.updateSlides()) : !p && g ? (t.loopCreate(e), t.updateSlides()) : p && !g && t.loopDestroy()), t.emit("breakpoint", d);
|
|
1761
1774
|
}
|
|
1762
|
-
function
|
|
1775
|
+
function Ds(t, e, s) {
|
|
1763
1776
|
if (e === void 0 && (e = "window"), !t || e === "container" && !s) return;
|
|
1764
1777
|
let r = !1;
|
|
1765
|
-
const n =
|
|
1778
|
+
const n = B(), i = e === "window" ? n.innerHeight : s.clientHeight, l = Object.keys(t).map((a) => {
|
|
1766
1779
|
if (typeof a == "string" && a.indexOf("@") === 0) {
|
|
1767
1780
|
const o = parseFloat(a.substr(1));
|
|
1768
1781
|
return {
|
|
@@ -1785,11 +1798,11 @@ function Ns(t, e, s) {
|
|
|
1785
1798
|
}
|
|
1786
1799
|
return r || "max";
|
|
1787
1800
|
}
|
|
1788
|
-
var
|
|
1789
|
-
setBreakpoint:
|
|
1790
|
-
getBreakpoint:
|
|
1801
|
+
var Fs = {
|
|
1802
|
+
setBreakpoint: Ns,
|
|
1803
|
+
getBreakpoint: Ds
|
|
1791
1804
|
};
|
|
1792
|
-
function
|
|
1805
|
+
function Vs(t, e) {
|
|
1793
1806
|
const s = [];
|
|
1794
1807
|
return t.forEach((r) => {
|
|
1795
1808
|
typeof r == "object" ? Object.keys(r).forEach((n) => {
|
|
@@ -1797,14 +1810,14 @@ function Ds(t, e) {
|
|
|
1797
1810
|
}) : typeof r == "string" && s.push(e + r);
|
|
1798
1811
|
}), s;
|
|
1799
1812
|
}
|
|
1800
|
-
function
|
|
1813
|
+
function js() {
|
|
1801
1814
|
const t = this, {
|
|
1802
1815
|
classNames: e,
|
|
1803
1816
|
params: s,
|
|
1804
1817
|
rtl: r,
|
|
1805
1818
|
el: n,
|
|
1806
1819
|
device: i
|
|
1807
|
-
} = t, l =
|
|
1820
|
+
} = t, l = Vs(["initialized", s.direction, {
|
|
1808
1821
|
"free-mode": t.params.freeMode && s.freeMode.enabled
|
|
1809
1822
|
}, {
|
|
1810
1823
|
autoheight: s.autoHeight
|
|
@@ -1827,18 +1840,18 @@ function Fs() {
|
|
|
1827
1840
|
}], s.containerModifierClass);
|
|
1828
1841
|
e.push(...l), n.classList.add(...e), t.emitContainerClasses();
|
|
1829
1842
|
}
|
|
1830
|
-
function
|
|
1843
|
+
function Hs() {
|
|
1831
1844
|
const t = this, {
|
|
1832
1845
|
el: e,
|
|
1833
1846
|
classNames: s
|
|
1834
1847
|
} = t;
|
|
1835
1848
|
!e || typeof e == "string" || (e.classList.remove(...s), t.emitContainerClasses());
|
|
1836
1849
|
}
|
|
1837
|
-
var
|
|
1838
|
-
addClasses:
|
|
1839
|
-
removeClasses:
|
|
1850
|
+
var Rs = {
|
|
1851
|
+
addClasses: js,
|
|
1852
|
+
removeClasses: Hs
|
|
1840
1853
|
};
|
|
1841
|
-
function
|
|
1854
|
+
function qs() {
|
|
1842
1855
|
const t = this, {
|
|
1843
1856
|
isLocked: e,
|
|
1844
1857
|
params: s
|
|
@@ -1852,8 +1865,8 @@ function Hs() {
|
|
|
1852
1865
|
t.isLocked = t.snapGrid.length === 1;
|
|
1853
1866
|
s.allowSlideNext === !0 && (t.allowSlideNext = !t.isLocked), s.allowSlidePrev === !0 && (t.allowSlidePrev = !t.isLocked), e && e !== t.isLocked && (t.isEnd = !1), e !== t.isLocked && t.emit(t.isLocked ? "lock" : "unlock");
|
|
1854
1867
|
}
|
|
1855
|
-
var
|
|
1856
|
-
checkOverflow:
|
|
1868
|
+
var Ws = {
|
|
1869
|
+
checkOverflow: qs
|
|
1857
1870
|
}, Ce = {
|
|
1858
1871
|
init: !0,
|
|
1859
1872
|
direction: "horizontal",
|
|
@@ -1975,49 +1988,49 @@ var Rs = {
|
|
|
1975
1988
|
// Internals
|
|
1976
1989
|
_emitClasses: !1
|
|
1977
1990
|
};
|
|
1978
|
-
function
|
|
1991
|
+
function Ys(t, e) {
|
|
1979
1992
|
return function(s) {
|
|
1980
1993
|
s === void 0 && (s = {});
|
|
1981
1994
|
const r = Object.keys(s)[0], n = s[r];
|
|
1982
1995
|
if (typeof n != "object" || n === null) {
|
|
1983
|
-
|
|
1996
|
+
N(e, s);
|
|
1984
1997
|
return;
|
|
1985
1998
|
}
|
|
1986
1999
|
if (t[r] === !0 && (t[r] = {
|
|
1987
2000
|
enabled: !0
|
|
1988
2001
|
}), r === "navigation" && t[r] && t[r].enabled && !t[r].prevEl && !t[r].nextEl && (t[r].auto = !0), ["pagination", "scrollbar"].indexOf(r) >= 0 && t[r] && t[r].enabled && !t[r].el && (t[r].auto = !0), !(r in t && "enabled" in n)) {
|
|
1989
|
-
|
|
2002
|
+
N(e, s);
|
|
1990
2003
|
return;
|
|
1991
2004
|
}
|
|
1992
2005
|
typeof t[r] == "object" && !("enabled" in t[r]) && (t[r].enabled = !0), t[r] || (t[r] = {
|
|
1993
2006
|
enabled: !1
|
|
1994
|
-
}),
|
|
2007
|
+
}), N(e, s);
|
|
1995
2008
|
};
|
|
1996
2009
|
}
|
|
1997
2010
|
const be = {
|
|
1998
|
-
eventsEmitter:
|
|
1999
|
-
update:
|
|
2000
|
-
translate:
|
|
2001
|
-
transition:
|
|
2002
|
-
slide:
|
|
2003
|
-
loop:
|
|
2004
|
-
grabCursor:
|
|
2005
|
-
events:
|
|
2006
|
-
breakpoints:
|
|
2007
|
-
checkOverflow:
|
|
2008
|
-
classes:
|
|
2011
|
+
eventsEmitter: Rt,
|
|
2012
|
+
update: ts,
|
|
2013
|
+
translate: ls,
|
|
2014
|
+
transition: ps,
|
|
2015
|
+
slide: bs,
|
|
2016
|
+
loop: xs,
|
|
2017
|
+
grabCursor: Ps,
|
|
2018
|
+
events: Bs,
|
|
2019
|
+
breakpoints: Fs,
|
|
2020
|
+
checkOverflow: Ws,
|
|
2021
|
+
classes: Rs
|
|
2009
2022
|
}, ye = {};
|
|
2010
2023
|
let ze = class q {
|
|
2011
2024
|
constructor() {
|
|
2012
2025
|
let e, s;
|
|
2013
2026
|
for (var r = arguments.length, n = new Array(r), i = 0; i < r; i++)
|
|
2014
2027
|
n[i] = arguments[i];
|
|
2015
|
-
n.length === 1 && n[0].constructor && Object.prototype.toString.call(n[0]).slice(8, -1) === "Object" ? s = n[0] : [e, s] = n, s || (s = {}), s =
|
|
2028
|
+
n.length === 1 && n[0].constructor && Object.prototype.toString.call(n[0]).slice(8, -1) === "Object" ? s = n[0] : [e, s] = n, s || (s = {}), s = N({}, s), e && !s.el && (s.el = e);
|
|
2016
2029
|
const l = K();
|
|
2017
2030
|
if (s.el && typeof s.el == "string" && l.querySelectorAll(s.el).length > 1) {
|
|
2018
2031
|
const d = [];
|
|
2019
2032
|
return l.querySelectorAll(s.el).forEach((u) => {
|
|
2020
|
-
const f =
|
|
2033
|
+
const f = N({}, s, {
|
|
2021
2034
|
el: u
|
|
2022
2035
|
});
|
|
2023
2036
|
d.push(new q(f));
|
|
@@ -2032,15 +2045,15 @@ let ze = class q {
|
|
|
2032
2045
|
d({
|
|
2033
2046
|
params: s,
|
|
2034
2047
|
swiper: a,
|
|
2035
|
-
extendParams:
|
|
2048
|
+
extendParams: Ys(s, o),
|
|
2036
2049
|
on: a.on.bind(a),
|
|
2037
2050
|
once: a.once.bind(a),
|
|
2038
2051
|
off: a.off.bind(a),
|
|
2039
2052
|
emit: a.emit.bind(a)
|
|
2040
2053
|
});
|
|
2041
2054
|
});
|
|
2042
|
-
const c =
|
|
2043
|
-
return a.params =
|
|
2055
|
+
const c = N({}, Ce, o);
|
|
2056
|
+
return a.params = N({}, c, ye, s), a.originalParams = N({}, a.params), a.passedParams = N({}, s), a.params && a.params.on && Object.keys(a.params.on).forEach((d) => {
|
|
2044
2057
|
a.on(d, a.params.on[d]);
|
|
2045
2058
|
}), a.params && a.params.onAny && a.onAny(a.params.onAny), Object.assign(a, {
|
|
2046
2059
|
enabled: a.params.enabled,
|
|
@@ -2290,10 +2303,10 @@ let ze = class q {
|
|
|
2290
2303
|
o.classList.remove(n.slideVisibleClass, n.slideFullyVisibleClass, n.slideActiveClass, n.slideNextClass, n.slidePrevClass), o.removeAttribute("style"), o.removeAttribute("data-swiper-slide-index");
|
|
2291
2304
|
})), r.emit("destroy"), Object.keys(r.eventsListeners).forEach((o) => {
|
|
2292
2305
|
r.off(o);
|
|
2293
|
-
}), e !== !1 && (r.el && typeof r.el != "string" && (r.el.swiper = null),
|
|
2306
|
+
}), e !== !1 && (r.el && typeof r.el != "string" && (r.el.swiper = null), At(r)), r.destroyed = !0), null;
|
|
2294
2307
|
}
|
|
2295
2308
|
static extendDefaults(e) {
|
|
2296
|
-
|
|
2309
|
+
N(ye, e);
|
|
2297
2310
|
}
|
|
2298
2311
|
static get extendedDefaults() {
|
|
2299
2312
|
return ye;
|
|
@@ -2315,7 +2328,7 @@ Object.keys(be).forEach((t) => {
|
|
|
2315
2328
|
ze.prototype[e] = be[t][e];
|
|
2316
2329
|
});
|
|
2317
2330
|
});
|
|
2318
|
-
ze.use([
|
|
2331
|
+
ze.use([jt, Ht]);
|
|
2319
2332
|
const tt = [
|
|
2320
2333
|
"eventsPrefix",
|
|
2321
2334
|
"injectStyles",
|
|
@@ -2460,10 +2473,10 @@ function nt(t) {
|
|
|
2460
2473
|
s.indexOf(r) < 0 && s.push(r);
|
|
2461
2474
|
}), s.join(" ");
|
|
2462
2475
|
}
|
|
2463
|
-
function
|
|
2476
|
+
function Xs(t) {
|
|
2464
2477
|
return t === void 0 && (t = ""), t ? t.includes("swiper-wrapper") ? t : `swiper-wrapper ${t}` : "swiper-wrapper";
|
|
2465
2478
|
}
|
|
2466
|
-
function
|
|
2479
|
+
function Us(t) {
|
|
2467
2480
|
let {
|
|
2468
2481
|
swiper: e,
|
|
2469
2482
|
slides: s,
|
|
@@ -2496,7 +2509,7 @@ function Ys(t) {
|
|
|
2496
2509
|
}
|
|
2497
2510
|
}), c.includes("controller") && !w && e.controller && e.controller.control && d.controller && d.controller.control && (e.controller.control = d.controller.control), n.includes("children") && s && h && d.virtual.enabled ? (h.slides = s, h.update(!0)) : n.includes("virtual") && h && d.virtual.enabled && (s && (h.slides = s), h.update(!0)), n.includes("children") && s && d.loop && (A = !0), M && b.init() && b.update(!0), w && (e.controller.control = d.controller.control), p && (e.isElement && (!o || typeof o == "string") && (o = document.createElement("div"), o.classList.add("swiper-pagination"), o.part.add("pagination"), e.el.appendChild(o)), o && (d.pagination.el = o), u.init(), u.render(), u.update()), m && (e.isElement && (!a || typeof a == "string") && (a = document.createElement("div"), a.classList.add("swiper-scrollbar"), a.part.add("scrollbar"), e.el.appendChild(a)), a && (d.scrollbar.el = a), v.init(), v.updateSize(), v.setTranslate()), g && (e.isElement && ((!i || typeof i == "string") && (i = document.createElement("div"), i.classList.add("swiper-button-next"), i.innerHTML = e.hostEl.constructor.nextButtonSvg, i.part.add("button-next"), e.el.appendChild(i)), (!l || typeof l == "string") && (l = document.createElement("div"), l.classList.add("swiper-button-prev"), l.innerHTML = e.hostEl.constructor.prevButtonSvg, l.part.add("button-prev"), e.el.appendChild(l))), i && (d.navigation.nextEl = i), l && (d.navigation.prevEl = l), f.init(), f.update()), n.includes("allowSlideNext") && (e.allowSlideNext = r.allowSlideNext), n.includes("allowSlidePrev") && (e.allowSlidePrev = r.allowSlidePrev), n.includes("direction") && e.changeDirection(r.direction, !1), (y || A) && e.loopDestroy(), (T || A) && e.loopCreate(), e.update();
|
|
2498
2511
|
}
|
|
2499
|
-
function
|
|
2512
|
+
function Qs(t, e) {
|
|
2500
2513
|
t === void 0 && (t = {}), e === void 0 && (e = !0);
|
|
2501
2514
|
const s = {
|
|
2502
2515
|
on: {}
|
|
@@ -2514,7 +2527,7 @@ function Xs(t, e) {
|
|
|
2514
2527
|
events: r
|
|
2515
2528
|
};
|
|
2516
2529
|
}
|
|
2517
|
-
function
|
|
2530
|
+
function Ks(t, e) {
|
|
2518
2531
|
let {
|
|
2519
2532
|
el: s,
|
|
2520
2533
|
nextEl: r,
|
|
@@ -2525,7 +2538,7 @@ function Us(t, e) {
|
|
|
2525
2538
|
} = t;
|
|
2526
2539
|
st(e) && r && n && (a.params.navigation.nextEl = r, a.originalParams.navigation.nextEl = r, a.params.navigation.prevEl = n, a.originalParams.navigation.prevEl = n), rt(e) && i && (a.params.pagination.el = i, a.originalParams.pagination.el = i), it(e) && l && (a.params.scrollbar.el = l, a.originalParams.scrollbar.el = l), a.init(s);
|
|
2527
2540
|
}
|
|
2528
|
-
function
|
|
2541
|
+
function Js(t, e, s, r, n) {
|
|
2529
2542
|
const i = [];
|
|
2530
2543
|
if (!e) return i;
|
|
2531
2544
|
const l = (a) => {
|
|
@@ -2547,7 +2560,7 @@ function Qs(t, e, s, r, n) {
|
|
|
2547
2560
|
} else t[a] !== e[a] && l(a);
|
|
2548
2561
|
}), i;
|
|
2549
2562
|
}
|
|
2550
|
-
const
|
|
2563
|
+
const Zs = (t) => {
|
|
2551
2564
|
!t || t.destroyed || !t.params.virtual || t.params.virtual && !t.params.virtual.enabled || (t.updateSlides(), t.updateProgress(), t.updateSlidesClasses(), t.parallax && t.params.parallax && t.params.parallax.enabled && t.parallax.setTranslate());
|
|
2552
2565
|
};
|
|
2553
2566
|
function pe() {
|
|
@@ -2569,7 +2582,7 @@ function lt(t) {
|
|
|
2569
2582
|
at(s) ? e.push(s) : s.props && s.props.children && lt(s.props.children).forEach((r) => e.push(r));
|
|
2570
2583
|
}), e;
|
|
2571
2584
|
}
|
|
2572
|
-
function
|
|
2585
|
+
function er(t) {
|
|
2573
2586
|
const e = [], s = {
|
|
2574
2587
|
"container-start": [],
|
|
2575
2588
|
"container-end": [],
|
|
@@ -2591,7 +2604,7 @@ function Js(t) {
|
|
|
2591
2604
|
slots: s
|
|
2592
2605
|
};
|
|
2593
2606
|
}
|
|
2594
|
-
function
|
|
2607
|
+
function tr(t, e, s) {
|
|
2595
2608
|
if (!s) return null;
|
|
2596
2609
|
const r = (d) => {
|
|
2597
2610
|
let u = d;
|
|
@@ -2613,9 +2626,9 @@ function Zs(t, e, s) {
|
|
|
2613
2626
|
}));
|
|
2614
2627
|
}
|
|
2615
2628
|
function ee(t, e) {
|
|
2616
|
-
return typeof window > "u" ? Y(t, e) :
|
|
2629
|
+
return typeof window > "u" ? Y(t, e) : xt(t, e);
|
|
2617
2630
|
}
|
|
2618
|
-
const Fe = /* @__PURE__ */ Re(null),
|
|
2631
|
+
const Fe = /* @__PURE__ */ Re(null), sr = /* @__PURE__ */ Re(null), ot = /* @__PURE__ */ Ae(function(t, e) {
|
|
2619
2632
|
let {
|
|
2620
2633
|
className: s,
|
|
2621
2634
|
tag: r = "div",
|
|
@@ -2629,10 +2642,10 @@ const Fe = /* @__PURE__ */ Re(null), er = /* @__PURE__ */ Re(null), ot = /* @__P
|
|
|
2629
2642
|
passedParams: S,
|
|
2630
2643
|
rest: E,
|
|
2631
2644
|
events: x
|
|
2632
|
-
} =
|
|
2645
|
+
} = Qs(a), {
|
|
2633
2646
|
slides: k,
|
|
2634
2647
|
slots: L
|
|
2635
|
-
} =
|
|
2648
|
+
} = er(i), O = () => {
|
|
2636
2649
|
h(!v);
|
|
2637
2650
|
};
|
|
2638
2651
|
Object.assign(I.on, {
|
|
@@ -2672,7 +2685,7 @@ const Fe = /* @__PURE__ */ Re(null), er = /* @__PURE__ */ Re(null), ot = /* @__P
|
|
|
2672
2685
|
!b.current && w.current && (w.current.emitSlidesClasses(), b.current = !0);
|
|
2673
2686
|
}), ee(() => {
|
|
2674
2687
|
if (e && (e.current = M.current), !!M.current)
|
|
2675
|
-
return w.current.destroyed && C(),
|
|
2688
|
+
return w.current.destroyed && C(), Ks({
|
|
2676
2689
|
el: M.current,
|
|
2677
2690
|
nextEl: g.current,
|
|
2678
2691
|
prevEl: y.current,
|
|
@@ -2684,8 +2697,8 @@ const Fe = /* @__PURE__ */ Re(null), er = /* @__PURE__ */ Re(null), ot = /* @__P
|
|
|
2684
2697
|
};
|
|
2685
2698
|
}, []), ee(() => {
|
|
2686
2699
|
z();
|
|
2687
|
-
const G =
|
|
2688
|
-
return p.current = S, m.current = k, G.length && w.current && !w.current.destroyed &&
|
|
2700
|
+
const G = Js(S, p.current, k, m.current, (j) => j.key);
|
|
2701
|
+
return p.current = S, m.current = k, G.length && w.current && !w.current.destroyed && Us({
|
|
2689
2702
|
swiper: w.current,
|
|
2690
2703
|
slides: k,
|
|
2691
2704
|
passedParams: S,
|
|
@@ -2698,10 +2711,10 @@ const Fe = /* @__PURE__ */ Re(null), er = /* @__PURE__ */ Re(null), ot = /* @__P
|
|
|
2698
2711
|
U();
|
|
2699
2712
|
};
|
|
2700
2713
|
}), ee(() => {
|
|
2701
|
-
|
|
2714
|
+
Zs(w.current);
|
|
2702
2715
|
}, [u]);
|
|
2703
2716
|
function V() {
|
|
2704
|
-
return I.virtual ?
|
|
2717
|
+
return I.virtual ? tr(w.current, k, u) : k.map((G, j) => /* @__PURE__ */ $.cloneElement(G, {
|
|
2705
2718
|
swiper: w.current,
|
|
2706
2719
|
swiperSlideIndex: j
|
|
2707
2720
|
}));
|
|
@@ -2709,10 +2722,10 @@ const Fe = /* @__PURE__ */ Re(null), er = /* @__PURE__ */ Re(null), ot = /* @__P
|
|
|
2709
2722
|
return /* @__PURE__ */ $.createElement(r, pe({
|
|
2710
2723
|
ref: M,
|
|
2711
2724
|
className: nt(`${c}${s ? ` ${s}` : ""}`)
|
|
2712
|
-
}, E), /* @__PURE__ */ $.createElement(
|
|
2725
|
+
}, E), /* @__PURE__ */ $.createElement(sr.Provider, {
|
|
2713
2726
|
value: w.current
|
|
2714
2727
|
}, L["container-start"], /* @__PURE__ */ $.createElement(n, {
|
|
2715
|
-
className:
|
|
2728
|
+
className: Xs(I.wrapperClass)
|
|
2716
2729
|
}, L["wrapper-start"], V(), L["wrapper-end"]), st(I) && /* @__PURE__ */ $.createElement($.Fragment, null, /* @__PURE__ */ $.createElement("div", {
|
|
2717
2730
|
ref: y,
|
|
2718
2731
|
className: "swiper-button-prev"
|
|
@@ -2728,7 +2741,7 @@ const Fe = /* @__PURE__ */ Re(null), er = /* @__PURE__ */ Re(null), ot = /* @__P
|
|
|
2728
2741
|
}), L["container-end"]));
|
|
2729
2742
|
});
|
|
2730
2743
|
ot.displayName = "Swiper";
|
|
2731
|
-
const ae = /* @__PURE__ */
|
|
2744
|
+
const ae = /* @__PURE__ */ Ae(function(t, e) {
|
|
2732
2745
|
let {
|
|
2733
2746
|
tag: s = "div",
|
|
2734
2747
|
children: r,
|
|
@@ -2784,7 +2797,7 @@ const ae = /* @__PURE__ */ Le(function(t, e) {
|
|
|
2784
2797
|
})));
|
|
2785
2798
|
});
|
|
2786
2799
|
ae.displayName = "SwiperSlide";
|
|
2787
|
-
const
|
|
2800
|
+
const rr = () => ot, ir = /* @__PURE__ */ _(rr())({
|
|
2788
2801
|
name: "Carousel",
|
|
2789
2802
|
class: "c1f9jjsn",
|
|
2790
2803
|
propsAsIs: !0
|
|
@@ -2792,14 +2805,14 @@ const tr = () => ot, sr = /* @__PURE__ */ _(tr())({
|
|
|
2792
2805
|
name: "ScreenWrap",
|
|
2793
2806
|
class: "s25r51y",
|
|
2794
2807
|
propsAsIs: !1
|
|
2795
|
-
}),
|
|
2808
|
+
}), nr = () => te, ar = /* @__PURE__ */ _(nr())({
|
|
2796
2809
|
name: "SponsorIconI",
|
|
2797
2810
|
class: "s1lvrmx8",
|
|
2798
2811
|
propsAsIs: !0
|
|
2799
2812
|
}), dt = ({
|
|
2800
2813
|
style: t,
|
|
2801
2814
|
className: e
|
|
2802
|
-
}) => /* @__PURE__ */ P(
|
|
2815
|
+
}) => /* @__PURE__ */ P(ar, {
|
|
2803
2816
|
className: e,
|
|
2804
2817
|
style: t,
|
|
2805
2818
|
name: "icon-masters-logo"
|
|
@@ -2819,47 +2832,47 @@ const tr = () => ot, sr = /* @__PURE__ */ _(tr())({
|
|
|
2819
2832
|
name: "ScreenButton",
|
|
2820
2833
|
class: "sqtjig9",
|
|
2821
2834
|
propsAsIs: !1
|
|
2822
|
-
}),
|
|
2835
|
+
}), lr = /* @__PURE__ */ _("div")({
|
|
2823
2836
|
name: "EmergencyContainer",
|
|
2824
2837
|
class: "e1f9mu2m",
|
|
2825
2838
|
propsAsIs: !1
|
|
2826
|
-
}),
|
|
2839
|
+
}), or = /* @__PURE__ */ _("div")({
|
|
2827
2840
|
name: "EmergencyScreenTitle",
|
|
2828
2841
|
class: "e1n10yo1",
|
|
2829
2842
|
propsAsIs: !1
|
|
2830
|
-
}),
|
|
2843
|
+
}), dr = /* @__PURE__ */ _("div")({
|
|
2831
2844
|
name: "EmergencyScreenDescription",
|
|
2832
2845
|
class: "e1xecypc",
|
|
2833
2846
|
propsAsIs: !1
|
|
2834
|
-
}),
|
|
2847
|
+
}), cr = () => ue, pr = /* @__PURE__ */ _(cr())({
|
|
2835
2848
|
name: "EmergencyScreenButton",
|
|
2836
2849
|
class: "e1k6zoyu",
|
|
2837
2850
|
propsAsIs: !0
|
|
2838
2851
|
}), ke = ({ actionFn: t, description: e, className: s, onEvent: r }) => (Y(() => {
|
|
2839
2852
|
r({ type: "slBetPackReady" });
|
|
2840
|
-
}, [r]), /* @__PURE__ */ F(
|
|
2841
|
-
/* @__PURE__ */ P(
|
|
2842
|
-
/* @__PURE__ */ P(
|
|
2843
|
-
/* @__PURE__ */ P(
|
|
2844
|
-
] })),
|
|
2853
|
+
}, [r]), /* @__PURE__ */ F(lr, { className: s, children: [
|
|
2854
|
+
/* @__PURE__ */ P(or, { children: "Something went wrong." }),
|
|
2855
|
+
/* @__PURE__ */ P(dr, { children: e }),
|
|
2856
|
+
/* @__PURE__ */ P(pr, { onClick: t, children: "Try again" })
|
|
2857
|
+
] })), ur = /* @__PURE__ */ _("div")({
|
|
2845
2858
|
name: "ScreenContainerBox",
|
|
2846
2859
|
class: "s28ooi9",
|
|
2847
2860
|
propsAsIs: !1
|
|
2848
|
-
}), me = ({ children: t }) => /* @__PURE__ */ P(
|
|
2861
|
+
}), me = ({ children: t }) => /* @__PURE__ */ P(ur, { className: "ScreenContainer", children: /* @__PURE__ */ P("div", { children: t }) }), mr = /* @__PURE__ */ _("img")({
|
|
2849
2862
|
name: "EndScreenMedia",
|
|
2850
2863
|
class: "e8s3kc9",
|
|
2851
2864
|
propsAsIs: !1
|
|
2852
|
-
}),
|
|
2865
|
+
}), fr = () => dt, hr = /* @__PURE__ */ _(fr())({
|
|
2853
2866
|
name: "EndScreenSponsorIcon",
|
|
2854
2867
|
class: "e1uswib2",
|
|
2855
2868
|
propsAsIs: !0
|
|
2856
|
-
}),
|
|
2869
|
+
}), vr = ({ onEvent: t, height: e }) => {
|
|
2857
2870
|
const [s, r] = W(
|
|
2858
2871
|
0
|
|
2859
2872
|
/* FIRST */
|
|
2860
2873
|
);
|
|
2861
2874
|
return s === 0 ? /* @__PURE__ */ P(me, { height: e, children: /* @__PURE__ */ F(Pe, { children: [
|
|
2862
|
-
/* @__PURE__ */ P(
|
|
2875
|
+
/* @__PURE__ */ P(hr, {}),
|
|
2863
2876
|
/* @__PURE__ */ F(ct, { children: [
|
|
2864
2877
|
/* @__PURE__ */ P(pt, { children: "Great picks!" }),
|
|
2865
2878
|
/* @__PURE__ */ P(Me, { children: "Stay in the Enhanced Stream for live results, predictions, trivia, polls, and match insights." })
|
|
@@ -2879,40 +2892,40 @@ const tr = () => ot, sr = /* @__PURE__ */ _(tr())({
|
|
|
2879
2892
|
}
|
|
2880
2893
|
)
|
|
2881
2894
|
] }) }, "end") : /* @__PURE__ */ P(me, { height: e, children: /* @__PURE__ */ F(Pe, { children: [
|
|
2882
|
-
/* @__PURE__ */ P(
|
|
2895
|
+
/* @__PURE__ */ P(mr, { src: "https://cdn.streamlayer.io/assets/sdk-web/onboarding-steps/bet_pack_end_screen.png" }),
|
|
2883
2896
|
/* @__PURE__ */ P(Me, { children: "Look for more live match insights, predictions and more." }),
|
|
2884
2897
|
/* @__PURE__ */ P(ue, { "data-a": "intr", onClick: () => t({ type: "slOpenGameCenter" }), children: "Open Game Center" })
|
|
2885
2898
|
] }) }, "end");
|
|
2886
|
-
},
|
|
2899
|
+
}, gr = /* @__PURE__ */ _("div")({
|
|
2887
2900
|
name: "Container",
|
|
2888
2901
|
class: "cv31tt7",
|
|
2889
2902
|
propsAsIs: !1
|
|
2890
2903
|
}), Ie = ({
|
|
2891
2904
|
className: t
|
|
2892
|
-
}) => /* @__PURE__ */ P(
|
|
2905
|
+
}) => /* @__PURE__ */ P(gr, {
|
|
2893
2906
|
className: t,
|
|
2894
2907
|
children: /* @__PURE__ */ P(vt, {})
|
|
2895
|
-
}),
|
|
2896
|
-
}, openedQuestion: t, vote: e, isLoading: !1, isEarlyPrediction: !0 }) : null,
|
|
2908
|
+
}), wr = ({ question: t, vote: e }) => t ? /* @__PURE__ */ P(gt, { close: () => {
|
|
2909
|
+
}, openedQuestion: t, vote: e, isLoading: !1, isEarlyPrediction: !0 }) : null, br = /* @__PURE__ */ _("span")({
|
|
2897
2910
|
name: "NextButton",
|
|
2898
2911
|
class: "n991vvm",
|
|
2899
2912
|
propsAsIs: !1
|
|
2900
|
-
}),
|
|
2913
|
+
}), yr = () => te, Sr = /* @__PURE__ */ _(yr())({
|
|
2901
2914
|
name: "IconArrowRight",
|
|
2902
2915
|
class: "inbj36g",
|
|
2903
2916
|
propsAsIs: !0
|
|
2904
|
-
}),
|
|
2917
|
+
}), Er = /* @__PURE__ */ _("div")({
|
|
2905
2918
|
name: "StartScreenSponsor",
|
|
2906
2919
|
class: "szrvgt",
|
|
2907
2920
|
propsAsIs: !1
|
|
2908
|
-
}),
|
|
2921
|
+
}), xr = /* @__PURE__ */ _("div")({
|
|
2909
2922
|
name: "StartScreenNote",
|
|
2910
2923
|
class: "swqs2ju",
|
|
2911
2924
|
propsAsIs: !1
|
|
2912
|
-
}),
|
|
2925
|
+
}), Tr = ({ countQuestionsAvailable: t, sliderRef: e }) => /* @__PURE__ */ P(me, { children: /* @__PURE__ */ F(Pe, { children: [
|
|
2913
2926
|
/* @__PURE__ */ P(dt, {}),
|
|
2914
2927
|
/* @__PURE__ */ F(ct, { children: [
|
|
2915
|
-
/* @__PURE__ */ P(
|
|
2928
|
+
/* @__PURE__ */ P(Er, { children: "FEATURED GROUPS+" }),
|
|
2916
2929
|
/* @__PURE__ */ P(pt, { children: "The First Five" })
|
|
2917
2930
|
] }),
|
|
2918
2931
|
/* @__PURE__ */ P(Me, { children: "Tee off with these five initial predictions for today’s play." }),
|
|
@@ -2926,25 +2939,12 @@ const tr = () => ot, sr = /* @__PURE__ */ _(tr())({
|
|
|
2926
2939
|
},
|
|
2927
2940
|
children: [
|
|
2928
2941
|
t ? `${t} questions available` : "See all questions",
|
|
2929
|
-
/* @__PURE__ */ P(
|
|
2942
|
+
/* @__PURE__ */ P(br, { children: /* @__PURE__ */ P(Sr, { name: "iconArrowRight" }) })
|
|
2930
2943
|
]
|
|
2931
2944
|
}
|
|
2932
2945
|
),
|
|
2933
|
-
/* @__PURE__ */ P(
|
|
2946
|
+
/* @__PURE__ */ P(xr, { children: "Note: Some questions may have been resolved as a result of today’s play." })
|
|
2934
2947
|
] }) }, "start");
|
|
2935
|
-
function xr(t, e, s) {
|
|
2936
|
-
let r = new Set(e).add(void 0);
|
|
2937
|
-
return t.listen((n, i, l) => {
|
|
2938
|
-
r.has(l) && s(n, i, l);
|
|
2939
|
-
});
|
|
2940
|
-
}
|
|
2941
|
-
function Tr(t, e = {}) {
|
|
2942
|
-
let s = Ae(
|
|
2943
|
-
(n) => e.keys ? xr(t, e.keys, n) : t.listen(n),
|
|
2944
|
-
[e.keys, t]
|
|
2945
|
-
), r = t.get.bind(t);
|
|
2946
|
-
return xt(s, r, r);
|
|
2947
|
-
}
|
|
2948
2948
|
function Cr(t, e, s, r) {
|
|
2949
2949
|
return t.params.createElements && Object.keys(r).forEach((n) => {
|
|
2950
2950
|
if (!s[n] && s.auto === !0) {
|
|
@@ -3184,7 +3184,7 @@ const Mr = ({ data: t, gamification: e, onEvent: s, swipeable: r, autoplay: n })
|
|
|
3184
3184
|
listOfQuestions: v,
|
|
3185
3185
|
countQuestionsAvailable: v.filter(({ marketClosed: h }) => !h).length
|
|
3186
3186
|
};
|
|
3187
|
-
}, [t]), c =
|
|
3187
|
+
}, [t]), c = Le(
|
|
3188
3188
|
async (v, h) => {
|
|
3189
3189
|
try {
|
|
3190
3190
|
await e.betPackVote(v, h), s({
|
|
@@ -3262,7 +3262,7 @@ const Mr = ({ data: t, gamification: e, onEvent: s, swipeable: r, autoplay: n })
|
|
|
3262
3262
|
window.removeEventListener("resize", v);
|
|
3263
3263
|
};
|
|
3264
3264
|
}, []), /* @__PURE__ */ F(
|
|
3265
|
-
|
|
3265
|
+
ir,
|
|
3266
3266
|
{
|
|
3267
3267
|
slidesPerView: u,
|
|
3268
3268
|
spaceBetween: 12,
|
|
@@ -3281,14 +3281,14 @@ const Mr = ({ data: t, gamification: e, onEvent: s, swipeable: r, autoplay: n })
|
|
|
3281
3281
|
l.current = v;
|
|
3282
3282
|
},
|
|
3283
3283
|
children: [
|
|
3284
|
-
/* @__PURE__ */ P(ae, { children: /* @__PURE__ */ P(
|
|
3285
|
-
a.map((v) => v ? /* @__PURE__ */ P(ae, { children: /* @__PURE__ */ P(me, { children: /* @__PURE__ */ P(
|
|
3286
|
-
/* @__PURE__ */ P(ae, { children: /* @__PURE__ */ P(
|
|
3284
|
+
/* @__PURE__ */ P(ae, { children: /* @__PURE__ */ P(Tr, { sliderRef: l, countQuestionsAvailable: o }) }),
|
|
3285
|
+
a.map((v) => v ? /* @__PURE__ */ P(ae, { children: /* @__PURE__ */ P(me, { children: /* @__PURE__ */ P(wr, { question: v, vote: c }) }, v.id) }) : null),
|
|
3286
|
+
/* @__PURE__ */ P(ae, { children: /* @__PURE__ */ P(vr, { onEvent: s }) })
|
|
3287
3287
|
]
|
|
3288
3288
|
}
|
|
3289
3289
|
);
|
|
3290
3290
|
}, kr = ({ gamification: t, autoplay: e, overlay: s, swipeable: r, onEvent: n }) => {
|
|
3291
|
-
const i =
|
|
3291
|
+
const i = kt(t.betPack.getStore()), { error: l, loading: a, data: o } = i;
|
|
3292
3292
|
return a || !Object.hasOwn(i, "data") ? /* @__PURE__ */ P(Ie, {}) : l ? /* @__PURE__ */ P(
|
|
3293
3293
|
ke,
|
|
3294
3294
|
{
|
|
@@ -3339,11 +3339,11 @@ handle this request.`
|
|
|
3339
3339
|
name: "IconArrowPrev",
|
|
3340
3340
|
class: "i1tkem14",
|
|
3341
3341
|
propsAsIs: !0
|
|
3342
|
-
}), Gr = () => ut,
|
|
3342
|
+
}), Gr = () => ut, Br = /* @__PURE__ */ _(Gr())({
|
|
3343
3343
|
name: "IconArrowNext",
|
|
3344
3344
|
class: "i175qlj5",
|
|
3345
3345
|
propsAsIs: !0
|
|
3346
|
-
}),
|
|
3346
|
+
}), Nr = /* @__PURE__ */ _("div")({
|
|
3347
3347
|
name: "Header",
|
|
3348
3348
|
class: "h1foi3kz",
|
|
3349
3349
|
propsAsIs: !1
|
|
@@ -3364,8 +3364,8 @@ handle this request.`
|
|
|
3364
3364
|
class: "spp13y7",
|
|
3365
3365
|
propsAsIs: !1
|
|
3366
3366
|
});
|
|
3367
|
-
|
|
3368
|
-
const [n, i] = W(), [l, a] = W(), o =
|
|
3367
|
+
Ae(({ sdk: t, onEvent: e, close: s }, r) => {
|
|
3368
|
+
const [n, i] = W(), [l, a] = W(), o = Le(
|
|
3369
3369
|
(c) => {
|
|
3370
3370
|
if (c.type === "slBetPackReady") {
|
|
3371
3371
|
const { next: d, prev: u, current: f, canNext: v, canPrev: h } = c.payload || {};
|
|
@@ -3388,7 +3388,7 @@ Le(({ sdk: t, onEvent: e, close: s }, r) => {
|
|
|
3388
3388
|
const d = t.getFeature(We.GAMES);
|
|
3389
3389
|
d && ((c = d.betPack) == null || c.off());
|
|
3390
3390
|
}, [t]), /* @__PURE__ */ F(zr, { ref: r, children: [
|
|
3391
|
-
/* @__PURE__ */ F(
|
|
3391
|
+
/* @__PURE__ */ F(Nr, { children: [
|
|
3392
3392
|
/* @__PURE__ */ F(Dr, { children: [
|
|
3393
3393
|
/* @__PURE__ */ P(te, { name: "fgIcon" }),
|
|
3394
3394
|
"Featured Groups+"
|
|
@@ -3398,7 +3398,7 @@ Le(({ sdk: t, onEvent: e, close: s }, r) => {
|
|
|
3398
3398
|
/* @__PURE__ */ P(Fr, { children: /* @__PURE__ */ P(mt, { sdk: t, onEvent: o, overlay: !0 }) }),
|
|
3399
3399
|
/* @__PURE__ */ F(Vr, { children: [
|
|
3400
3400
|
/* @__PURE__ */ P(je, { "data-a": "intr", onClick: n == null ? void 0 : n.prev, disabled: !(l != null && l.canPrev), children: /* @__PURE__ */ P(ut, { "data-a": "intr", name: "iconArrowPrev", className: Se((l == null ? void 0 : l.canPrev) && Ve) }) }),
|
|
3401
|
-
/* @__PURE__ */ P(je, { "data-a": "intr", onClick: n == null ? void 0 : n.next, disabled: !(l != null && l.canNext), children: /* @__PURE__ */ P(
|
|
3401
|
+
/* @__PURE__ */ P(je, { "data-a": "intr", onClick: n == null ? void 0 : n.next, disabled: !(l != null && l.canNext), children: /* @__PURE__ */ P(Br, { "data-a": "intr", name: "iconArrowPrev", className: Se((l == null ? void 0 : l.canNext) && Ve) }) })
|
|
3402
3402
|
] })
|
|
3403
3403
|
] });
|
|
3404
3404
|
});
|