@streamlayer/react 1.14.6 → 1.14.8
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/event.d.ts +3 -1
- package/lib/app/masters.d.ts +2 -0
- package/lib/cjs/advertisement.js +30 -30
- package/lib/cjs/gamification-feature2.js +1 -1
- package/lib/cjs/index2.js +3 -3
- package/lib/cjs/masters2.js +9 -5
- package/lib/cjs/notification.js +1 -1
- package/lib/cjs/provider.js +17 -17
- package/lib/cjs/useStreamLayerApp2.js +2 -2
- package/lib/classic/app/event.d.ts +3 -1
- package/lib/classic/app/masters.d.ts +2 -0
- package/lib/classic/cjs/advertisement.js +30 -30
- package/lib/classic/cjs/gamification-feature2.js +1 -1
- package/lib/classic/cjs/index2.js +3 -3
- package/lib/classic/cjs/masters2.js +9 -5
- package/lib/classic/cjs/notification.js +1 -1
- package/lib/classic/cjs/provider.js +17 -17
- package/lib/classic/cjs/useStreamLayerApp2.js +2 -2
- package/lib/classic/es/advertisement.js +2584 -2561
- package/lib/classic/es/gamification-feature2.js +1 -1
- package/lib/classic/es/index.js +1 -1
- package/lib/classic/es/index2.js +209 -209
- package/lib/classic/es/masters2.js +364 -338
- package/lib/classic/es/notification.js +26 -26
- package/lib/classic/es/provider.js +2276 -2247
- package/lib/classic/es/useStreamLayerApp2.js +5 -5
- package/lib/classic/style.css +1 -1
- package/lib/dist/cjs/gamification-feature.js +1 -1
- package/lib/dist/cjs/gamification-feature2.js +1 -1
- package/lib/dist/cjs/masters.js +33 -29
- package/lib/dist/es/gamification-feature.js +1 -1
- package/lib/dist/es/gamification-feature2.js +1 -1
- package/lib/dist/es/masters.js +6371 -6323
- package/lib/dist/style.css +1 -1
- package/lib/es/advertisement.js +2584 -2561
- package/lib/es/gamification-feature2.js +1 -1
- package/lib/es/index.js +1 -1
- package/lib/es/index2.js +209 -209
- package/lib/es/masters2.js +364 -338
- package/lib/es/notification.js +26 -26
- package/lib/es/provider.js +2273 -2244
- package/lib/es/useStreamLayerApp2.js +5 -5
- package/lib/style.css +1 -1
- package/package.json +14 -14
package/lib/classic/es/index2.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as P, jsxs as F } from "react/jsx-runtime";
|
|
2
|
-
import { s as _, k as
|
|
3
|
-
import $, { forwardRef as Le, useState as W, useRef as D, useEffect as
|
|
4
|
-
import { C as
|
|
2
|
+
import { s as _, k as te, f as mt, g as ft, i as ht, j as gt, l as Se, a as _e } from "./provider.js";
|
|
3
|
+
import $, { forwardRef as Le, useState as W, useRef as D, useEffect as J, useLayoutEffect as vt, createContext as He, useCallback as Ae, useSyncExternalStore as wt, useMemo as Re, memo as bt } from "react";
|
|
4
|
+
import { C as yt, a as St, S as Et } from "./useStreamLayerApp2.js";
|
|
5
5
|
function $e(t) {
|
|
6
6
|
return t !== null && typeof t == "object" && "constructor" in t && t.constructor === Object;
|
|
7
7
|
}
|
|
@@ -71,7 +71,7 @@ function Q() {
|
|
|
71
71
|
const t = typeof document < "u" ? document : {};
|
|
72
72
|
return Oe(t, qe), t;
|
|
73
73
|
}
|
|
74
|
-
const
|
|
74
|
+
const xt = {
|
|
75
75
|
document: qe,
|
|
76
76
|
navigator: {
|
|
77
77
|
userAgent: ""
|
|
@@ -131,12 +131,12 @@ const Et = {
|
|
|
131
131
|
};
|
|
132
132
|
function N() {
|
|
133
133
|
const t = typeof window < "u" ? window : {};
|
|
134
|
-
return Oe(t,
|
|
134
|
+
return Oe(t, xt), t;
|
|
135
135
|
}
|
|
136
|
-
function
|
|
136
|
+
function Tt(t) {
|
|
137
137
|
return t === void 0 && (t = ""), t.trim().split(" ").filter((e) => !!e.trim());
|
|
138
138
|
}
|
|
139
|
-
function
|
|
139
|
+
function Ct(t) {
|
|
140
140
|
const e = t;
|
|
141
141
|
Object.keys(e).forEach((s) => {
|
|
142
142
|
try {
|
|
@@ -155,29 +155,29 @@ function Ee(t, e) {
|
|
|
155
155
|
function le() {
|
|
156
156
|
return Date.now();
|
|
157
157
|
}
|
|
158
|
-
function
|
|
158
|
+
function Pt(t) {
|
|
159
159
|
const e = N();
|
|
160
160
|
let s;
|
|
161
161
|
return e.getComputedStyle && (s = e.getComputedStyle(t, null)), !s && t.currentStyle && (s = t.currentStyle), s || (s = t.style), s;
|
|
162
162
|
}
|
|
163
|
-
function
|
|
163
|
+
function Mt(t, e) {
|
|
164
164
|
e === void 0 && (e = "x");
|
|
165
165
|
const s = N();
|
|
166
166
|
let r, n, i;
|
|
167
|
-
const l =
|
|
167
|
+
const l = Pt(t);
|
|
168
168
|
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
169
|
}
|
|
170
170
|
function se(t) {
|
|
171
171
|
return typeof t == "object" && t !== null && t.constructor && Object.prototype.toString.call(t).slice(8, -1) === "Object";
|
|
172
172
|
}
|
|
173
|
-
function
|
|
173
|
+
function kt(t) {
|
|
174
174
|
return typeof window < "u" && typeof window.HTMLElement < "u" ? t instanceof HTMLElement : t && (t.nodeType === 1 || t.nodeType === 11);
|
|
175
175
|
}
|
|
176
176
|
function B() {
|
|
177
177
|
const t = Object(arguments.length <= 0 ? void 0 : arguments[0]), e = ["__proto__", "constructor", "prototype"];
|
|
178
178
|
for (let s = 1; s < arguments.length; s += 1) {
|
|
179
179
|
const r = s < 0 || arguments.length <= s ? void 0 : arguments[s];
|
|
180
|
-
if (r != null && !
|
|
180
|
+
if (r != null && !kt(r)) {
|
|
181
181
|
const n = Object.keys(Object(r)).filter((i) => e.indexOf(i) < 0);
|
|
182
182
|
for (let i = 0, l = n.length; i < l; i += 1) {
|
|
183
183
|
const a = n[i], o = Object.getOwnPropertyDescriptor(r, a);
|
|
@@ -223,7 +223,7 @@ function H(t, e) {
|
|
|
223
223
|
const s = N(), r = [...t.children];
|
|
224
224
|
return s.HTMLSlotElement && t instanceof HTMLSlotElement && r.push(...t.assignedElements()), e ? r.filter((n) => n.matches(e)) : r;
|
|
225
225
|
}
|
|
226
|
-
function
|
|
226
|
+
function It(t, e) {
|
|
227
227
|
const s = [e];
|
|
228
228
|
for (; s.length > 0; ) {
|
|
229
229
|
const r = s.shift();
|
|
@@ -232,10 +232,10 @@ function kt(t, e) {
|
|
|
232
232
|
s.push(...r.children, ...r.shadowRoot ? r.shadowRoot.children : [], ...r.assignedElements ? r.assignedElements() : []);
|
|
233
233
|
}
|
|
234
234
|
}
|
|
235
|
-
function
|
|
235
|
+
function Lt(t, e) {
|
|
236
236
|
const s = N();
|
|
237
237
|
let r = e.contains(t);
|
|
238
|
-
return !r && s.HTMLSlotElement && e instanceof HTMLSlotElement && (r = [...e.assignedElements()].includes(t), r || (r =
|
|
238
|
+
return !r && s.HTMLSlotElement && e instanceof HTMLSlotElement && (r = [...e.assignedElements()].includes(t), r || (r = It(t, e))), r;
|
|
239
239
|
}
|
|
240
240
|
function oe(t) {
|
|
241
241
|
try {
|
|
@@ -247,9 +247,9 @@ function oe(t) {
|
|
|
247
247
|
function de(t, e) {
|
|
248
248
|
e === void 0 && (e = []);
|
|
249
249
|
const s = document.createElement(t);
|
|
250
|
-
return s.classList.add(...Array.isArray(e) ? e :
|
|
250
|
+
return s.classList.add(...Array.isArray(e) ? e : Tt(e)), s;
|
|
251
251
|
}
|
|
252
|
-
function
|
|
252
|
+
function At(t, e) {
|
|
253
253
|
const s = [];
|
|
254
254
|
for (; t.previousElementSibling; ) {
|
|
255
255
|
const r = t.previousElementSibling;
|
|
@@ -257,7 +257,7 @@ function Lt(t, e) {
|
|
|
257
257
|
}
|
|
258
258
|
return s;
|
|
259
259
|
}
|
|
260
|
-
function
|
|
260
|
+
function Ot(t, e) {
|
|
261
261
|
const s = [];
|
|
262
262
|
for (; t.nextElementSibling; ) {
|
|
263
263
|
const r = t.nextElementSibling;
|
|
@@ -291,7 +291,7 @@ function R(t) {
|
|
|
291
291
|
return (Array.isArray(t) ? t : [t]).filter((e) => !!e);
|
|
292
292
|
}
|
|
293
293
|
let fe;
|
|
294
|
-
function
|
|
294
|
+
function zt() {
|
|
295
295
|
const t = N(), e = Q();
|
|
296
296
|
return {
|
|
297
297
|
smoothScroll: e.documentElement && e.documentElement.style && "scrollBehavior" in e.documentElement.style,
|
|
@@ -299,10 +299,10 @@ function Ot() {
|
|
|
299
299
|
};
|
|
300
300
|
}
|
|
301
301
|
function Xe() {
|
|
302
|
-
return fe || (fe =
|
|
302
|
+
return fe || (fe = zt()), fe;
|
|
303
303
|
}
|
|
304
304
|
let he;
|
|
305
|
-
function
|
|
305
|
+
function _t(t) {
|
|
306
306
|
let {
|
|
307
307
|
userAgent: e
|
|
308
308
|
} = t === void 0 ? {} : t;
|
|
@@ -317,10 +317,10 @@ function zt(t) {
|
|
|
317
317
|
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 && !g && (l.os = "android", l.android = !0), (d || f || u) && (l.os = "ios", l.ios = !0), l;
|
|
318
318
|
}
|
|
319
319
|
function Ue(t) {
|
|
320
|
-
return t === void 0 && (t = {}), he || (he =
|
|
320
|
+
return t === void 0 && (t = {}), he || (he = _t(t)), he;
|
|
321
321
|
}
|
|
322
322
|
let ge;
|
|
323
|
-
function
|
|
323
|
+
function $t() {
|
|
324
324
|
const t = N(), e = Ue();
|
|
325
325
|
let s = !1;
|
|
326
326
|
function r() {
|
|
@@ -343,9 +343,9 @@ function _t() {
|
|
|
343
343
|
};
|
|
344
344
|
}
|
|
345
345
|
function Qe() {
|
|
346
|
-
return ge || (ge =
|
|
346
|
+
return ge || (ge = $t()), ge;
|
|
347
347
|
}
|
|
348
|
-
function
|
|
348
|
+
function Gt(t) {
|
|
349
349
|
let {
|
|
350
350
|
swiper: e,
|
|
351
351
|
on: s,
|
|
@@ -388,7 +388,7 @@ function $t(t) {
|
|
|
388
388
|
c(), n.removeEventListener("resize", a), n.removeEventListener("orientationchange", d);
|
|
389
389
|
});
|
|
390
390
|
}
|
|
391
|
-
function
|
|
391
|
+
function Nt(t) {
|
|
392
392
|
let {
|
|
393
393
|
swiper: e,
|
|
394
394
|
extendParams: s,
|
|
@@ -437,7 +437,7 @@ function Gt(t) {
|
|
|
437
437
|
observeSlideChildren: !1
|
|
438
438
|
}), r("init", o), r("destroy", c);
|
|
439
439
|
}
|
|
440
|
-
var
|
|
440
|
+
var Bt = {
|
|
441
441
|
on(t, e, s) {
|
|
442
442
|
const r = this;
|
|
443
443
|
if (!r.eventsListeners || r.destroyed || typeof e != "function") return r;
|
|
@@ -492,7 +492,7 @@ var Nt = {
|
|
|
492
492
|
}), t;
|
|
493
493
|
}
|
|
494
494
|
};
|
|
495
|
-
function
|
|
495
|
+
function Dt() {
|
|
496
496
|
const t = this;
|
|
497
497
|
let e, s;
|
|
498
498
|
const r = t.el;
|
|
@@ -502,7 +502,7 @@ function Bt() {
|
|
|
502
502
|
size: t.isHorizontal() ? e : s
|
|
503
503
|
}));
|
|
504
504
|
}
|
|
505
|
-
function
|
|
505
|
+
function Ft() {
|
|
506
506
|
const t = this;
|
|
507
507
|
function e(E, x) {
|
|
508
508
|
return parseFloat(E.getPropertyValue(t.getDirectionLabel(x)) || 0);
|
|
@@ -620,7 +620,7 @@ function Dt() {
|
|
|
620
620
|
u <= s.maxBackfaceHiddenSlides ? x || t.el.classList.add(E) : x && t.el.classList.remove(E);
|
|
621
621
|
}
|
|
622
622
|
}
|
|
623
|
-
function
|
|
623
|
+
function jt(t) {
|
|
624
624
|
const e = this, s = [], r = e.virtual && e.params.virtual.enabled;
|
|
625
625
|
let n = 0, i;
|
|
626
626
|
typeof t == "number" ? e.setTransition(t) : t === !0 && e.setTransition(e.params.speed);
|
|
@@ -645,7 +645,7 @@ function Ft(t) {
|
|
|
645
645
|
}
|
|
646
646
|
(n || n === 0) && (e.wrapperEl.style.height = `${n}px`);
|
|
647
647
|
}
|
|
648
|
-
function
|
|
648
|
+
function Vt() {
|
|
649
649
|
const t = this, e = t.slides, s = t.isElement ? t.isHorizontal() ? t.wrapperEl.offsetLeft : t.wrapperEl.offsetTop : 0;
|
|
650
650
|
for (let r = 0; r < e.length; r += 1)
|
|
651
651
|
e[r].swiperSlideOffset = (t.isHorizontal() ? e[r].offsetLeft : e[r].offsetTop) - s - t.cssOverflowAdjustment();
|
|
@@ -653,7 +653,7 @@ function jt() {
|
|
|
653
653
|
const Ge = (t, e, s) => {
|
|
654
654
|
e && !t.classList.contains(s) ? t.classList.add(s) : !e && t.classList.contains(s) && t.classList.remove(s);
|
|
655
655
|
};
|
|
656
|
-
function
|
|
656
|
+
function Ht(t) {
|
|
657
657
|
t === void 0 && (t = this && this.translate || 0);
|
|
658
658
|
const e = this, s = e.params, {
|
|
659
659
|
slides: r,
|
|
@@ -674,7 +674,7 @@ function Vt(t) {
|
|
|
674
674
|
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
675
|
}
|
|
676
676
|
}
|
|
677
|
-
function
|
|
677
|
+
function Rt(t) {
|
|
678
678
|
const e = this;
|
|
679
679
|
if (typeof t > "u") {
|
|
680
680
|
const d = e.rtlTranslate ? -1 : 1;
|
|
@@ -709,7 +709,7 @@ function Ht(t) {
|
|
|
709
709
|
const ve = (t, e, s) => {
|
|
710
710
|
e && !t.classList.contains(s) ? t.classList.add(s) : !e && t.classList.contains(s) && t.classList.remove(s);
|
|
711
711
|
};
|
|
712
|
-
function
|
|
712
|
+
function qt() {
|
|
713
713
|
const t = this, {
|
|
714
714
|
slides: e,
|
|
715
715
|
params: s,
|
|
@@ -725,7 +725,7 @@ function Rt() {
|
|
|
725
725
|
o = a(`[data-swiper-slide-index="${n}"]`);
|
|
726
726
|
else
|
|
727
727
|
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 =
|
|
728
|
+
o && (l || (d = Ot(o, `.${s.slideClass}, swiper-slide`)[0], s.loop && !d && (d = e[0]), c = At(o, `.${s.slideClass}, swiper-slide`)[0], s.loop && !c === 0 && (c = e[e.length - 1]))), e.forEach((u) => {
|
|
729
729
|
ve(u, u === o, s.slideActiveClass), ve(u, u === d, s.slideNextClass), ve(u, u === c, s.slidePrevClass);
|
|
730
730
|
}), t.emitSlidesClasses();
|
|
731
731
|
}
|
|
@@ -768,7 +768,7 @@ const ne = (t, e) => {
|
|
|
768
768
|
for (let l = Math.max(n - e, 0); l <= Math.min(i + e, s - 1); l += 1)
|
|
769
769
|
l !== n && (l > i || l < n) && we(t, l);
|
|
770
770
|
};
|
|
771
|
-
function
|
|
771
|
+
function Wt(t) {
|
|
772
772
|
const {
|
|
773
773
|
slidesGrid: e,
|
|
774
774
|
params: s
|
|
@@ -778,7 +778,7 @@ function qt(t) {
|
|
|
778
778
|
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
779
|
return s.normalizeSlideIndex && (n < 0 || typeof n > "u") && (n = 0), n;
|
|
780
780
|
}
|
|
781
|
-
function
|
|
781
|
+
function Yt(t) {
|
|
782
782
|
const e = this, s = e.rtlTranslate ? e.translate : -e.translate, {
|
|
783
783
|
snapGrid: r,
|
|
784
784
|
params: n,
|
|
@@ -791,7 +791,7 @@ function Wt(t) {
|
|
|
791
791
|
let h = g - e.virtual.slidesBefore;
|
|
792
792
|
return h < 0 && (h = e.virtual.slides.length + h), h >= e.virtual.slides.length && (h -= e.virtual.slides.length), h;
|
|
793
793
|
};
|
|
794
|
-
if (typeof o > "u" && (o =
|
|
794
|
+
if (typeof o > "u" && (o = Wt(e)), r.indexOf(s) >= 0)
|
|
795
795
|
c = r.indexOf(s);
|
|
796
796
|
else {
|
|
797
797
|
const g = Math.min(n.slidesPerGroupSkip, o);
|
|
@@ -827,7 +827,7 @@ function Wt(t) {
|
|
|
827
827
|
activeIndex: o
|
|
828
828
|
}), e.initialized && Te(e), e.emit("activeIndexChange"), e.emit("snapIndexChange"), (e.initialized || e.params.runCallbacksOnInit) && (l !== f && e.emit("realIndexChange"), e.emit("slideChange"));
|
|
829
829
|
}
|
|
830
|
-
function
|
|
830
|
+
function Xt(t, e) {
|
|
831
831
|
const s = this, r = s.params;
|
|
832
832
|
let n = t.closest(`.${r.slideClass}, swiper-slide`);
|
|
833
833
|
!n && s.isElement && e && e.length > 1 && e.includes(t) && [...e.slice(e.indexOf(t) + 1, e.length)].forEach((a) => {
|
|
@@ -849,18 +849,18 @@ function Yt(t, e) {
|
|
|
849
849
|
}
|
|
850
850
|
r.slideToClickedSlide && s.clickedIndex !== void 0 && s.clickedIndex !== s.activeIndex && s.slideToClickedSlide();
|
|
851
851
|
}
|
|
852
|
-
var
|
|
853
|
-
updateSize:
|
|
854
|
-
updateSlides:
|
|
855
|
-
updateAutoHeight:
|
|
856
|
-
updateSlidesOffset:
|
|
857
|
-
updateSlidesProgress:
|
|
858
|
-
updateProgress:
|
|
859
|
-
updateSlidesClasses:
|
|
860
|
-
updateActiveIndex:
|
|
861
|
-
updateClickedSlide:
|
|
852
|
+
var Ut = {
|
|
853
|
+
updateSize: Dt,
|
|
854
|
+
updateSlides: Ft,
|
|
855
|
+
updateAutoHeight: jt,
|
|
856
|
+
updateSlidesOffset: Vt,
|
|
857
|
+
updateSlidesProgress: Ht,
|
|
858
|
+
updateProgress: Rt,
|
|
859
|
+
updateSlidesClasses: qt,
|
|
860
|
+
updateActiveIndex: Yt,
|
|
861
|
+
updateClickedSlide: Xt
|
|
862
862
|
};
|
|
863
|
-
function
|
|
863
|
+
function Qt(t) {
|
|
864
864
|
t === void 0 && (t = this.isHorizontal() ? "x" : "y");
|
|
865
865
|
const e = this, {
|
|
866
866
|
params: s,
|
|
@@ -872,10 +872,10 @@ function Ut(t) {
|
|
|
872
872
|
return r ? -n : n;
|
|
873
873
|
if (s.cssMode)
|
|
874
874
|
return n;
|
|
875
|
-
let l =
|
|
875
|
+
let l = Mt(i, t);
|
|
876
876
|
return l += e.cssOverflowAdjustment(), r && (l = -l), l || 0;
|
|
877
877
|
}
|
|
878
|
-
function
|
|
878
|
+
function Kt(t, e) {
|
|
879
879
|
const s = this, {
|
|
880
880
|
rtlTranslate: r,
|
|
881
881
|
params: n,
|
|
@@ -889,13 +889,13 @@ function Qt(t, e) {
|
|
|
889
889
|
const u = s.maxTranslate() - s.minTranslate();
|
|
890
890
|
u === 0 ? d = 0 : d = (t - s.minTranslate()) / u, d !== l && s.updateProgress(t), s.emit("setTranslate", s.translate, e);
|
|
891
891
|
}
|
|
892
|
-
function
|
|
892
|
+
function Jt() {
|
|
893
893
|
return -this.snapGrid[0];
|
|
894
894
|
}
|
|
895
|
-
function
|
|
895
|
+
function Zt() {
|
|
896
896
|
return -this.snapGrid[this.snapGrid.length - 1];
|
|
897
897
|
}
|
|
898
|
-
function
|
|
898
|
+
function es(t, e, s, r, n) {
|
|
899
899
|
t === void 0 && (t = 0), e === void 0 && (e = this.params.speed), s === void 0 && (s = !0), r === void 0 && (r = !0);
|
|
900
900
|
const i = this, {
|
|
901
901
|
params: l,
|
|
@@ -927,14 +927,14 @@ function Zt(t, e, s, r, n) {
|
|
|
927
927
|
!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
928
|
}), i.wrapperEl.addEventListener("transitionend", i.onTranslateToWrapperTransitionEnd))), !0;
|
|
929
929
|
}
|
|
930
|
-
var
|
|
931
|
-
getTranslate:
|
|
932
|
-
setTranslate:
|
|
933
|
-
minTranslate:
|
|
934
|
-
maxTranslate:
|
|
935
|
-
translateTo:
|
|
930
|
+
var ts = {
|
|
931
|
+
getTranslate: Qt,
|
|
932
|
+
setTranslate: Kt,
|
|
933
|
+
minTranslate: Jt,
|
|
934
|
+
maxTranslate: Zt,
|
|
935
|
+
translateTo: es
|
|
936
936
|
};
|
|
937
|
-
function
|
|
937
|
+
function ss(t, e) {
|
|
938
938
|
const s = this;
|
|
939
939
|
s.params.cssMode || (s.wrapperEl.style.transitionDuration = `${t}ms`, s.wrapperEl.style.transitionDelay = t === 0 ? "0ms" : ""), s.emit("setTransition", t, e);
|
|
940
940
|
}
|
|
@@ -958,7 +958,7 @@ function Ke(t) {
|
|
|
958
958
|
e.emit(`slideChangeTransition${n}`), a === "next" ? e.emit(`slideNextTransition${n}`) : e.emit(`slidePrevTransition${n}`);
|
|
959
959
|
}
|
|
960
960
|
}
|
|
961
|
-
function
|
|
961
|
+
function rs(t, e) {
|
|
962
962
|
t === void 0 && (t = !0);
|
|
963
963
|
const s = this, {
|
|
964
964
|
params: r
|
|
@@ -970,7 +970,7 @@ function ss(t, e) {
|
|
|
970
970
|
step: "Start"
|
|
971
971
|
}));
|
|
972
972
|
}
|
|
973
|
-
function
|
|
973
|
+
function is(t, e) {
|
|
974
974
|
t === void 0 && (t = !0);
|
|
975
975
|
const s = this, {
|
|
976
976
|
params: r
|
|
@@ -982,12 +982,12 @@ function rs(t, e) {
|
|
|
982
982
|
step: "End"
|
|
983
983
|
}));
|
|
984
984
|
}
|
|
985
|
-
var
|
|
986
|
-
setTransition:
|
|
987
|
-
transitionStart:
|
|
988
|
-
transitionEnd:
|
|
985
|
+
var ns = {
|
|
986
|
+
setTransition: ss,
|
|
987
|
+
transitionStart: rs,
|
|
988
|
+
transitionEnd: is
|
|
989
989
|
};
|
|
990
|
-
function
|
|
990
|
+
function as(t, e, s, r, n) {
|
|
991
991
|
t === void 0 && (t = 0), s === void 0 && (s = !0), typeof t == "string" && (t = parseInt(t, 10));
|
|
992
992
|
const i = this;
|
|
993
993
|
let l = t;
|
|
@@ -1049,7 +1049,7 @@ function ns(t, e, s, r, n) {
|
|
|
1049
1049
|
!i || i.destroyed || y.target === this && (i.wrapperEl.removeEventListener("transitionend", i.onSlideToWrapperTransitionEnd), i.onSlideToWrapperTransitionEnd = null, delete i.onSlideToWrapperTransitionEnd, i.transitionEnd(s, p));
|
|
1050
1050
|
}), i.wrapperEl.addEventListener("transitionend", i.onSlideToWrapperTransitionEnd)), !0;
|
|
1051
1051
|
}
|
|
1052
|
-
function
|
|
1052
|
+
function ls(t, e, s, r) {
|
|
1053
1053
|
t === void 0 && (t = 0), s === void 0 && (s = !0), typeof t == "string" && (t = parseInt(t, 10));
|
|
1054
1054
|
const n = this;
|
|
1055
1055
|
if (n.destroyed) return;
|
|
@@ -1091,7 +1091,7 @@ function as(t, e, s, r) {
|
|
|
1091
1091
|
n.slideTo(l, e, s, r);
|
|
1092
1092
|
}), n;
|
|
1093
1093
|
}
|
|
1094
|
-
function
|
|
1094
|
+
function os(t, e, s) {
|
|
1095
1095
|
e === void 0 && (e = !0);
|
|
1096
1096
|
const r = this, {
|
|
1097
1097
|
enabled: n,
|
|
@@ -1114,7 +1114,7 @@ function ls(t, e, s) {
|
|
|
1114
1114
|
}
|
|
1115
1115
|
return i.rewind && r.isEnd ? r.slideTo(0, t, e, s) : r.slideTo(r.activeIndex + o, t, e, s);
|
|
1116
1116
|
}
|
|
1117
|
-
function
|
|
1117
|
+
function ds(t, e, s) {
|
|
1118
1118
|
e === void 0 && (e = !0);
|
|
1119
1119
|
const r = this, {
|
|
1120
1120
|
params: n,
|
|
@@ -1155,13 +1155,13 @@ function os(t, e, s) {
|
|
|
1155
1155
|
}), !0;
|
|
1156
1156
|
return r.slideTo(w, t, e, s);
|
|
1157
1157
|
}
|
|
1158
|
-
function
|
|
1158
|
+
function cs(t, e, s) {
|
|
1159
1159
|
e === void 0 && (e = !0);
|
|
1160
1160
|
const r = this;
|
|
1161
1161
|
if (!r.destroyed)
|
|
1162
1162
|
return typeof t > "u" && (t = r.params.speed), r.slideTo(r.activeIndex, t, e, s);
|
|
1163
1163
|
}
|
|
1164
|
-
function
|
|
1164
|
+
function ps(t, e, s, r) {
|
|
1165
1165
|
e === void 0 && (e = !0), r === void 0 && (r = 0.5);
|
|
1166
1166
|
const n = this;
|
|
1167
1167
|
if (n.destroyed) return;
|
|
@@ -1177,7 +1177,7 @@ function cs(t, e, s, r) {
|
|
|
1177
1177
|
}
|
|
1178
1178
|
return i = Math.max(i, 0), i = Math.min(i, n.slidesGrid.length - 1), n.slideTo(i, t, e, s);
|
|
1179
1179
|
}
|
|
1180
|
-
function
|
|
1180
|
+
function us() {
|
|
1181
1181
|
const t = this;
|
|
1182
1182
|
if (t.destroyed) return;
|
|
1183
1183
|
const {
|
|
@@ -1196,16 +1196,16 @@ function ps() {
|
|
|
1196
1196
|
} else
|
|
1197
1197
|
t.slideTo(n);
|
|
1198
1198
|
}
|
|
1199
|
-
var
|
|
1200
|
-
slideTo:
|
|
1201
|
-
slideToLoop:
|
|
1202
|
-
slideNext:
|
|
1203
|
-
slidePrev:
|
|
1204
|
-
slideReset:
|
|
1205
|
-
slideToClosest:
|
|
1206
|
-
slideToClickedSlide:
|
|
1199
|
+
var ms = {
|
|
1200
|
+
slideTo: as,
|
|
1201
|
+
slideToLoop: ls,
|
|
1202
|
+
slideNext: os,
|
|
1203
|
+
slidePrev: ds,
|
|
1204
|
+
slideReset: cs,
|
|
1205
|
+
slideToClosest: ps,
|
|
1206
|
+
slideToClickedSlide: us
|
|
1207
1207
|
};
|
|
1208
|
-
function
|
|
1208
|
+
function fs(t, e) {
|
|
1209
1209
|
const s = this, {
|
|
1210
1210
|
params: r,
|
|
1211
1211
|
slidesEl: n
|
|
@@ -1243,7 +1243,7 @@ function ms(t, e) {
|
|
|
1243
1243
|
initial: e
|
|
1244
1244
|
});
|
|
1245
1245
|
}
|
|
1246
|
-
function
|
|
1246
|
+
function hs(t) {
|
|
1247
1247
|
let {
|
|
1248
1248
|
slideRealIndex: e,
|
|
1249
1249
|
slideTo: s = !0,
|
|
@@ -1350,7 +1350,7 @@ function fs(t) {
|
|
|
1350
1350
|
}
|
|
1351
1351
|
c.emit("loopFix");
|
|
1352
1352
|
}
|
|
1353
|
-
function
|
|
1353
|
+
function gs() {
|
|
1354
1354
|
const t = this, {
|
|
1355
1355
|
params: e,
|
|
1356
1356
|
slidesEl: s
|
|
@@ -1367,12 +1367,12 @@ function hs() {
|
|
|
1367
1367
|
s.append(n);
|
|
1368
1368
|
}), t.recalcSlides(), t.slideTo(t.realIndex, 0);
|
|
1369
1369
|
}
|
|
1370
|
-
var
|
|
1371
|
-
loopCreate:
|
|
1372
|
-
loopFix:
|
|
1373
|
-
loopDestroy:
|
|
1370
|
+
var vs = {
|
|
1371
|
+
loopCreate: fs,
|
|
1372
|
+
loopFix: hs,
|
|
1373
|
+
loopDestroy: gs
|
|
1374
1374
|
};
|
|
1375
|
-
function
|
|
1375
|
+
function ws(t) {
|
|
1376
1376
|
const e = this;
|
|
1377
1377
|
if (!e.params.simulateTouch || e.params.watchOverflow && e.isLocked || e.params.cssMode) return;
|
|
1378
1378
|
const s = e.params.touchEventsTarget === "container" ? e.el : e.wrapperEl;
|
|
@@ -1380,17 +1380,17 @@ function vs(t) {
|
|
|
1380
1380
|
e.__preventObserver__ = !1;
|
|
1381
1381
|
});
|
|
1382
1382
|
}
|
|
1383
|
-
function
|
|
1383
|
+
function bs() {
|
|
1384
1384
|
const t = this;
|
|
1385
1385
|
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
1386
|
t.__preventObserver__ = !1;
|
|
1387
1387
|
}));
|
|
1388
1388
|
}
|
|
1389
|
-
var
|
|
1390
|
-
setGrabCursor:
|
|
1391
|
-
unsetGrabCursor:
|
|
1389
|
+
var ys = {
|
|
1390
|
+
setGrabCursor: ws,
|
|
1391
|
+
unsetGrabCursor: bs
|
|
1392
1392
|
};
|
|
1393
|
-
function
|
|
1393
|
+
function Ss(t, e) {
|
|
1394
1394
|
e === void 0 && (e = this);
|
|
1395
1395
|
function s(r) {
|
|
1396
1396
|
if (!r || r === Q() || r === N()) return null;
|
|
@@ -1406,7 +1406,7 @@ function Ne(t, e, s) {
|
|
|
1406
1406
|
} = t, i = n.edgeSwipeDetection, l = n.edgeSwipeThreshold;
|
|
1407
1407
|
return i && (s <= l || s >= r.innerWidth - l) ? i === "prevent" ? (e.preventDefault(), !0) : !1 : !0;
|
|
1408
1408
|
}
|
|
1409
|
-
function
|
|
1409
|
+
function Es(t) {
|
|
1410
1410
|
const e = this, s = Q();
|
|
1411
1411
|
let r = t;
|
|
1412
1412
|
r.originalEvent && (r = r.originalEvent);
|
|
@@ -1429,11 +1429,11 @@ function Ss(t) {
|
|
|
1429
1429
|
return;
|
|
1430
1430
|
!e.animating && i.cssMode && i.loop && e.loopFix();
|
|
1431
1431
|
let o = r.target;
|
|
1432
|
-
if (i.touchEventsTarget === "wrapper" && !
|
|
1432
|
+
if (i.touchEventsTarget === "wrapper" && !Lt(o, e.wrapperEl) || "which" in r && r.which === 3 || "button" in r && r.button > 0 || n.isTouched && n.isMoved) return;
|
|
1433
1433
|
const c = !!i.noSwipingClass && i.noSwipingClass !== "", d = r.composedPath ? r.composedPath() : r.path;
|
|
1434
1434
|
c && r.target && r.target.shadowRoot && d && (o = d[0]);
|
|
1435
1435
|
const u = i.noSwipingSelector ? i.noSwipingSelector : `.${i.noSwipingClass}`, f = !!(r.target && r.target.shadowRoot);
|
|
1436
|
-
if (i.noSwiping && (f ?
|
|
1436
|
+
if (i.noSwiping && (f ? Ss(u, o) : o.closest(u))) {
|
|
1437
1437
|
e.allowClick = !0;
|
|
1438
1438
|
return;
|
|
1439
1439
|
}
|
|
@@ -1455,7 +1455,7 @@ function Ss(t) {
|
|
|
1455
1455
|
const M = b && e.allowTouchMove && i.touchStartPreventDefault;
|
|
1456
1456
|
(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
1457
|
}
|
|
1458
|
-
function
|
|
1458
|
+
function xs(t) {
|
|
1459
1459
|
const e = Q(), s = this, r = s.touchEventsData, {
|
|
1460
1460
|
params: n,
|
|
1461
1461
|
touches: i,
|
|
@@ -1569,7 +1569,7 @@ function Es(t) {
|
|
|
1569
1569
|
}
|
|
1570
1570
|
!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
1571
|
}
|
|
1572
|
-
function
|
|
1572
|
+
function Ts(t) {
|
|
1573
1573
|
const e = this, s = e.touchEventsData;
|
|
1574
1574
|
let r = t;
|
|
1575
1575
|
r.originalEvent && (r = r.originalEvent);
|
|
@@ -1658,11 +1658,11 @@ function Be() {
|
|
|
1658
1658
|
t.autoplay && t.autoplay.running && t.autoplay.paused && t.autoplay.resume();
|
|
1659
1659
|
}, 500)), t.allowSlidePrev = n, t.allowSlideNext = r, t.params.watchOverflow && i !== t.snapGrid && t.checkOverflow();
|
|
1660
1660
|
}
|
|
1661
|
-
function
|
|
1661
|
+
function Cs(t) {
|
|
1662
1662
|
const e = this;
|
|
1663
1663
|
e.enabled && (e.allowClick || (e.params.preventClicks && t.preventDefault(), e.params.preventClicksPropagation && e.animating && (t.stopPropagation(), t.stopImmediatePropagation())));
|
|
1664
1664
|
}
|
|
1665
|
-
function
|
|
1665
|
+
function Ps() {
|
|
1666
1666
|
const t = this, {
|
|
1667
1667
|
wrapperEl: e,
|
|
1668
1668
|
rtlTranslate: s,
|
|
@@ -1674,11 +1674,11 @@ function Cs() {
|
|
|
1674
1674
|
const i = t.maxTranslate() - t.minTranslate();
|
|
1675
1675
|
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
1676
|
}
|
|
1677
|
-
function
|
|
1677
|
+
function Ms(t) {
|
|
1678
1678
|
const e = this;
|
|
1679
1679
|
ne(e, t.target), !(e.params.cssMode || e.params.slidesPerView !== "auto" && !e.params.autoHeight) && e.update();
|
|
1680
1680
|
}
|
|
1681
|
-
function
|
|
1681
|
+
function ks() {
|
|
1682
1682
|
const t = this;
|
|
1683
1683
|
t.documentTouchHandlerProceeded || (t.documentTouchHandlerProceeded = !0, t.params.touchReleaseOnEdges && (t.el.style.touchAction = "auto"));
|
|
1684
1684
|
}
|
|
@@ -1720,21 +1720,21 @@ const Je = (t, e) => {
|
|
|
1720
1720
|
capture: !0
|
|
1721
1721
|
}));
|
|
1722
1722
|
};
|
|
1723
|
-
function
|
|
1723
|
+
function Is() {
|
|
1724
1724
|
const t = this, {
|
|
1725
1725
|
params: e
|
|
1726
1726
|
} = t;
|
|
1727
|
-
t.onTouchStart =
|
|
1727
|
+
t.onTouchStart = Es.bind(t), t.onTouchMove = xs.bind(t), t.onTouchEnd = Ts.bind(t), t.onDocumentTouchStart = ks.bind(t), e.cssMode && (t.onScroll = Ps.bind(t)), t.onClick = Cs.bind(t), t.onLoad = Ms.bind(t), Je(t, "on");
|
|
1728
1728
|
}
|
|
1729
|
-
function
|
|
1729
|
+
function Ls() {
|
|
1730
1730
|
Je(this, "off");
|
|
1731
1731
|
}
|
|
1732
|
-
var
|
|
1733
|
-
attachEvents:
|
|
1734
|
-
detachEvents:
|
|
1732
|
+
var As = {
|
|
1733
|
+
attachEvents: Is,
|
|
1734
|
+
detachEvents: Ls
|
|
1735
1735
|
};
|
|
1736
1736
|
const De = (t, e) => t.grid && e.grid && e.grid.rows > 1;
|
|
1737
|
-
function
|
|
1737
|
+
function Os() {
|
|
1738
1738
|
const t = this, {
|
|
1739
1739
|
realIndex: e,
|
|
1740
1740
|
initialized: s,
|
|
@@ -1759,7 +1759,7 @@ function As() {
|
|
|
1759
1759
|
allowSlidePrev: t.params.allowSlidePrev
|
|
1760
1760
|
}), 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 && v ? (t.loopCreate(e), t.updateSlides()) : p && !v && t.loopDestroy()), t.emit("breakpoint", d);
|
|
1761
1761
|
}
|
|
1762
|
-
function
|
|
1762
|
+
function zs(t, e, s) {
|
|
1763
1763
|
if (e === void 0 && (e = "window"), !t || e === "container" && !s) return;
|
|
1764
1764
|
let r = !1;
|
|
1765
1765
|
const n = N(), i = e === "window" ? n.innerHeight : s.clientHeight, l = Object.keys(t).map((a) => {
|
|
@@ -1785,11 +1785,11 @@ function Os(t, e, s) {
|
|
|
1785
1785
|
}
|
|
1786
1786
|
return r || "max";
|
|
1787
1787
|
}
|
|
1788
|
-
var
|
|
1789
|
-
setBreakpoint:
|
|
1790
|
-
getBreakpoint:
|
|
1788
|
+
var _s = {
|
|
1789
|
+
setBreakpoint: Os,
|
|
1790
|
+
getBreakpoint: zs
|
|
1791
1791
|
};
|
|
1792
|
-
function
|
|
1792
|
+
function $s(t, e) {
|
|
1793
1793
|
const s = [];
|
|
1794
1794
|
return t.forEach((r) => {
|
|
1795
1795
|
typeof r == "object" ? Object.keys(r).forEach((n) => {
|
|
@@ -1797,14 +1797,14 @@ function _s(t, e) {
|
|
|
1797
1797
|
}) : typeof r == "string" && s.push(e + r);
|
|
1798
1798
|
}), s;
|
|
1799
1799
|
}
|
|
1800
|
-
function
|
|
1800
|
+
function Gs() {
|
|
1801
1801
|
const t = this, {
|
|
1802
1802
|
classNames: e,
|
|
1803
1803
|
params: s,
|
|
1804
1804
|
rtl: r,
|
|
1805
1805
|
el: n,
|
|
1806
1806
|
device: i
|
|
1807
|
-
} = t, l =
|
|
1807
|
+
} = t, l = $s(["initialized", s.direction, {
|
|
1808
1808
|
"free-mode": t.params.freeMode && s.freeMode.enabled
|
|
1809
1809
|
}, {
|
|
1810
1810
|
autoheight: s.autoHeight
|
|
@@ -1827,18 +1827,18 @@ function $s() {
|
|
|
1827
1827
|
}], s.containerModifierClass);
|
|
1828
1828
|
e.push(...l), n.classList.add(...e), t.emitContainerClasses();
|
|
1829
1829
|
}
|
|
1830
|
-
function
|
|
1830
|
+
function Ns() {
|
|
1831
1831
|
const t = this, {
|
|
1832
1832
|
el: e,
|
|
1833
1833
|
classNames: s
|
|
1834
1834
|
} = t;
|
|
1835
1835
|
!e || typeof e == "string" || (e.classList.remove(...s), t.emitContainerClasses());
|
|
1836
1836
|
}
|
|
1837
|
-
var
|
|
1838
|
-
addClasses:
|
|
1839
|
-
removeClasses:
|
|
1837
|
+
var Bs = {
|
|
1838
|
+
addClasses: Gs,
|
|
1839
|
+
removeClasses: Ns
|
|
1840
1840
|
};
|
|
1841
|
-
function
|
|
1841
|
+
function Ds() {
|
|
1842
1842
|
const t = this, {
|
|
1843
1843
|
isLocked: e,
|
|
1844
1844
|
params: s
|
|
@@ -1852,8 +1852,8 @@ function Bs() {
|
|
|
1852
1852
|
t.isLocked = t.snapGrid.length === 1;
|
|
1853
1853
|
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
1854
|
}
|
|
1855
|
-
var
|
|
1856
|
-
checkOverflow:
|
|
1855
|
+
var Fs = {
|
|
1856
|
+
checkOverflow: Ds
|
|
1857
1857
|
}, Ce = {
|
|
1858
1858
|
init: !0,
|
|
1859
1859
|
direction: "horizontal",
|
|
@@ -1975,7 +1975,7 @@ var Ds = {
|
|
|
1975
1975
|
// Internals
|
|
1976
1976
|
_emitClasses: !1
|
|
1977
1977
|
};
|
|
1978
|
-
function
|
|
1978
|
+
function js(t, e) {
|
|
1979
1979
|
return function(s) {
|
|
1980
1980
|
s === void 0 && (s = {});
|
|
1981
1981
|
const r = Object.keys(s)[0], n = s[r];
|
|
@@ -1995,17 +1995,17 @@ function Fs(t, e) {
|
|
|
1995
1995
|
};
|
|
1996
1996
|
}
|
|
1997
1997
|
const be = {
|
|
1998
|
-
eventsEmitter:
|
|
1999
|
-
update:
|
|
2000
|
-
translate:
|
|
2001
|
-
transition:
|
|
2002
|
-
slide:
|
|
2003
|
-
loop:
|
|
2004
|
-
grabCursor:
|
|
2005
|
-
events:
|
|
2006
|
-
breakpoints:
|
|
2007
|
-
checkOverflow:
|
|
2008
|
-
classes:
|
|
1998
|
+
eventsEmitter: Bt,
|
|
1999
|
+
update: Ut,
|
|
2000
|
+
translate: ts,
|
|
2001
|
+
transition: ns,
|
|
2002
|
+
slide: ms,
|
|
2003
|
+
loop: vs,
|
|
2004
|
+
grabCursor: ys,
|
|
2005
|
+
events: As,
|
|
2006
|
+
breakpoints: _s,
|
|
2007
|
+
checkOverflow: Fs,
|
|
2008
|
+
classes: Bs
|
|
2009
2009
|
}, ye = {};
|
|
2010
2010
|
let ze = class q {
|
|
2011
2011
|
constructor() {
|
|
@@ -2032,7 +2032,7 @@ let ze = class q {
|
|
|
2032
2032
|
d({
|
|
2033
2033
|
params: s,
|
|
2034
2034
|
swiper: a,
|
|
2035
|
-
extendParams:
|
|
2035
|
+
extendParams: js(s, o),
|
|
2036
2036
|
on: a.on.bind(a),
|
|
2037
2037
|
once: a.once.bind(a),
|
|
2038
2038
|
off: a.off.bind(a),
|
|
@@ -2290,7 +2290,7 @@ let ze = class q {
|
|
|
2290
2290
|
o.classList.remove(n.slideVisibleClass, n.slideFullyVisibleClass, n.slideActiveClass, n.slideNextClass, n.slidePrevClass), o.removeAttribute("style"), o.removeAttribute("data-swiper-slide-index");
|
|
2291
2291
|
})), r.emit("destroy"), Object.keys(r.eventsListeners).forEach((o) => {
|
|
2292
2292
|
r.off(o);
|
|
2293
|
-
}), e !== !1 && (r.el && typeof r.el != "string" && (r.el.swiper = null),
|
|
2293
|
+
}), e !== !1 && (r.el && typeof r.el != "string" && (r.el.swiper = null), Ct(r)), r.destroyed = !0), null;
|
|
2294
2294
|
}
|
|
2295
2295
|
static extendDefaults(e) {
|
|
2296
2296
|
B(ye, e);
|
|
@@ -2315,7 +2315,7 @@ Object.keys(be).forEach((t) => {
|
|
|
2315
2315
|
ze.prototype[e] = be[t][e];
|
|
2316
2316
|
});
|
|
2317
2317
|
});
|
|
2318
|
-
ze.use([
|
|
2318
|
+
ze.use([Gt, Nt]);
|
|
2319
2319
|
const Ze = [
|
|
2320
2320
|
"eventsPrefix",
|
|
2321
2321
|
"injectStyles",
|
|
@@ -2460,10 +2460,10 @@ function rt(t) {
|
|
|
2460
2460
|
s.indexOf(r) < 0 && s.push(r);
|
|
2461
2461
|
}), s.join(" ");
|
|
2462
2462
|
}
|
|
2463
|
-
function
|
|
2463
|
+
function Vs(t) {
|
|
2464
2464
|
return t === void 0 && (t = ""), t ? t.includes("swiper-wrapper") ? t : `swiper-wrapper ${t}` : "swiper-wrapper";
|
|
2465
2465
|
}
|
|
2466
|
-
function
|
|
2466
|
+
function Hs(t) {
|
|
2467
2467
|
let {
|
|
2468
2468
|
swiper: e,
|
|
2469
2469
|
slides: s,
|
|
@@ -2496,7 +2496,7 @@ function Vs(t) {
|
|
|
2496
2496
|
}
|
|
2497
2497
|
}), 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), g.init(), g.updateSize(), g.setTranslate()), v && (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
2498
|
}
|
|
2499
|
-
function
|
|
2499
|
+
function Rs(t, e) {
|
|
2500
2500
|
t === void 0 && (t = {}), e === void 0 && (e = !0);
|
|
2501
2501
|
const s = {
|
|
2502
2502
|
on: {}
|
|
@@ -2514,7 +2514,7 @@ function Hs(t, e) {
|
|
|
2514
2514
|
events: r
|
|
2515
2515
|
};
|
|
2516
2516
|
}
|
|
2517
|
-
function
|
|
2517
|
+
function qs(t, e) {
|
|
2518
2518
|
let {
|
|
2519
2519
|
el: s,
|
|
2520
2520
|
nextEl: r,
|
|
@@ -2525,7 +2525,7 @@ function Rs(t, e) {
|
|
|
2525
2525
|
} = t;
|
|
2526
2526
|
et(e) && r && n && (a.params.navigation.nextEl = r, a.originalParams.navigation.nextEl = r, a.params.navigation.prevEl = n, a.originalParams.navigation.prevEl = n), tt(e) && i && (a.params.pagination.el = i, a.originalParams.pagination.el = i), st(e) && l && (a.params.scrollbar.el = l, a.originalParams.scrollbar.el = l), a.init(s);
|
|
2527
2527
|
}
|
|
2528
|
-
function
|
|
2528
|
+
function Ws(t, e, s, r, n) {
|
|
2529
2529
|
const i = [];
|
|
2530
2530
|
if (!e) return i;
|
|
2531
2531
|
const l = (a) => {
|
|
@@ -2547,7 +2547,7 @@ function qs(t, e, s, r, n) {
|
|
|
2547
2547
|
} else t[a] !== e[a] && l(a);
|
|
2548
2548
|
}), i;
|
|
2549
2549
|
}
|
|
2550
|
-
const
|
|
2550
|
+
const Ys = (t) => {
|
|
2551
2551
|
!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
2552
|
};
|
|
2553
2553
|
function pe() {
|
|
@@ -2569,7 +2569,7 @@ function nt(t) {
|
|
|
2569
2569
|
it(s) ? e.push(s) : s.props && s.props.children && nt(s.props.children).forEach((r) => e.push(r));
|
|
2570
2570
|
}), e;
|
|
2571
2571
|
}
|
|
2572
|
-
function
|
|
2572
|
+
function Xs(t) {
|
|
2573
2573
|
const e = [], s = {
|
|
2574
2574
|
"container-start": [],
|
|
2575
2575
|
"container-end": [],
|
|
@@ -2591,7 +2591,7 @@ function Ys(t) {
|
|
|
2591
2591
|
slots: s
|
|
2592
2592
|
};
|
|
2593
2593
|
}
|
|
2594
|
-
function
|
|
2594
|
+
function Us(t, e, s) {
|
|
2595
2595
|
if (!s) return null;
|
|
2596
2596
|
const r = (d) => {
|
|
2597
2597
|
let u = d;
|
|
@@ -2612,10 +2612,10 @@ function Xs(t, e, s) {
|
|
|
2612
2612
|
key: d.props.virtualIndex || d.key || `slide-${u}`
|
|
2613
2613
|
}));
|
|
2614
2614
|
}
|
|
2615
|
-
function
|
|
2616
|
-
return typeof window > "u" ?
|
|
2615
|
+
function ee(t, e) {
|
|
2616
|
+
return typeof window > "u" ? J(t, e) : vt(t, e);
|
|
2617
2617
|
}
|
|
2618
|
-
const Fe = /* @__PURE__ */ He(null),
|
|
2618
|
+
const Fe = /* @__PURE__ */ He(null), Qs = /* @__PURE__ */ He(null), at = /* @__PURE__ */ Le(function(t, e) {
|
|
2619
2619
|
let {
|
|
2620
2620
|
className: s,
|
|
2621
2621
|
tag: r = "div",
|
|
@@ -2629,10 +2629,10 @@ const Fe = /* @__PURE__ */ He(null), Us = /* @__PURE__ */ He(null), at = /* @__P
|
|
|
2629
2629
|
passedParams: S,
|
|
2630
2630
|
rest: E,
|
|
2631
2631
|
events: x
|
|
2632
|
-
} =
|
|
2632
|
+
} = Rs(a), {
|
|
2633
2633
|
slides: k,
|
|
2634
2634
|
slots: L
|
|
2635
|
-
} =
|
|
2635
|
+
} = Xs(i), O = () => {
|
|
2636
2636
|
h(!g);
|
|
2637
2637
|
};
|
|
2638
2638
|
Object.assign(I.on, {
|
|
@@ -2666,13 +2666,13 @@ const Fe = /* @__PURE__ */ He(null), Us = /* @__PURE__ */ He(null), at = /* @__P
|
|
|
2666
2666
|
w.current.off(G, x[G]);
|
|
2667
2667
|
});
|
|
2668
2668
|
};
|
|
2669
|
-
|
|
2669
|
+
J(() => () => {
|
|
2670
2670
|
w.current && w.current.off("_beforeBreakpoint", O);
|
|
2671
|
-
}),
|
|
2671
|
+
}), J(() => {
|
|
2672
2672
|
!b.current && w.current && (w.current.emitSlidesClasses(), b.current = !0);
|
|
2673
|
-
}),
|
|
2673
|
+
}), ee(() => {
|
|
2674
2674
|
if (e && (e.current = M.current), !!M.current)
|
|
2675
|
-
return w.current.destroyed && C(),
|
|
2675
|
+
return w.current.destroyed && C(), qs({
|
|
2676
2676
|
el: M.current,
|
|
2677
2677
|
nextEl: v.current,
|
|
2678
2678
|
prevEl: y.current,
|
|
@@ -2682,10 +2682,10 @@ const Fe = /* @__PURE__ */ He(null), Us = /* @__PURE__ */ He(null), at = /* @__P
|
|
|
2682
2682
|
}, I), l && !w.current.destroyed && l(w.current), () => {
|
|
2683
2683
|
w.current && !w.current.destroyed && w.current.destroy(!0, !1);
|
|
2684
2684
|
};
|
|
2685
|
-
}, []),
|
|
2685
|
+
}, []), ee(() => {
|
|
2686
2686
|
z();
|
|
2687
|
-
const G =
|
|
2688
|
-
return p.current = S, m.current = k, G.length && w.current && !w.current.destroyed &&
|
|
2687
|
+
const G = Ws(S, p.current, k, m.current, (V) => V.key);
|
|
2688
|
+
return p.current = S, m.current = k, G.length && w.current && !w.current.destroyed && Hs({
|
|
2689
2689
|
swiper: w.current,
|
|
2690
2690
|
slides: k,
|
|
2691
2691
|
passedParams: S,
|
|
@@ -2697,11 +2697,11 @@ const Fe = /* @__PURE__ */ He(null), Us = /* @__PURE__ */ He(null), at = /* @__P
|
|
|
2697
2697
|
}), () => {
|
|
2698
2698
|
X();
|
|
2699
2699
|
};
|
|
2700
|
-
}),
|
|
2701
|
-
|
|
2700
|
+
}), ee(() => {
|
|
2701
|
+
Ys(w.current);
|
|
2702
2702
|
}, [u]);
|
|
2703
2703
|
function j() {
|
|
2704
|
-
return I.virtual ?
|
|
2704
|
+
return I.virtual ? Us(w.current, k, u) : k.map((G, V) => /* @__PURE__ */ $.cloneElement(G, {
|
|
2705
2705
|
swiper: w.current,
|
|
2706
2706
|
swiperSlideIndex: V
|
|
2707
2707
|
}));
|
|
@@ -2709,10 +2709,10 @@ const Fe = /* @__PURE__ */ He(null), Us = /* @__PURE__ */ He(null), at = /* @__P
|
|
|
2709
2709
|
return /* @__PURE__ */ $.createElement(r, pe({
|
|
2710
2710
|
ref: M,
|
|
2711
2711
|
className: rt(`${c}${s ? ` ${s}` : ""}`)
|
|
2712
|
-
}, E), /* @__PURE__ */ $.createElement(
|
|
2712
|
+
}, E), /* @__PURE__ */ $.createElement(Qs.Provider, {
|
|
2713
2713
|
value: w.current
|
|
2714
2714
|
}, L["container-start"], /* @__PURE__ */ $.createElement(n, {
|
|
2715
|
-
className:
|
|
2715
|
+
className: Vs(I.wrapperClass)
|
|
2716
2716
|
}, L["wrapper-start"], j(), L["wrapper-end"]), et(I) && /* @__PURE__ */ $.createElement($.Fragment, null, /* @__PURE__ */ $.createElement("div", {
|
|
2717
2717
|
ref: y,
|
|
2718
2718
|
className: "swiper-button-prev"
|
|
@@ -2744,7 +2744,7 @@ const ae = /* @__PURE__ */ Le(function(t, e) {
|
|
|
2744
2744
|
function M(v, y, T) {
|
|
2745
2745
|
y === u.current && g(T);
|
|
2746
2746
|
}
|
|
2747
|
-
|
|
2747
|
+
ee(() => {
|
|
2748
2748
|
if (typeof c < "u" && (u.current.swiperSlideIndex = c), e && (e.current = u.current), !(!u.current || !i)) {
|
|
2749
2749
|
if (i.destroyed) {
|
|
2750
2750
|
f !== "swiper-slide" && g("swiper-slide");
|
|
@@ -2754,7 +2754,7 @@ const ae = /* @__PURE__ */ Le(function(t, e) {
|
|
|
2754
2754
|
i && i.off("_slideClass", M);
|
|
2755
2755
|
};
|
|
2756
2756
|
}
|
|
2757
|
-
}),
|
|
2757
|
+
}), ee(() => {
|
|
2758
2758
|
i && u.current && !i.destroyed && g(i.getSlideClasses(u.current));
|
|
2759
2759
|
}, [i]);
|
|
2760
2760
|
const w = {
|
|
@@ -2784,7 +2784,7 @@ const ae = /* @__PURE__ */ Le(function(t, e) {
|
|
|
2784
2784
|
})));
|
|
2785
2785
|
});
|
|
2786
2786
|
ae.displayName = "SwiperSlide";
|
|
2787
|
-
const
|
|
2787
|
+
const Ks = () => at, Js = /* @__PURE__ */ _(Ks())({
|
|
2788
2788
|
name: "Carousel",
|
|
2789
2789
|
class: "c1f9jjsn",
|
|
2790
2790
|
propsAsIs: !0
|
|
@@ -2792,14 +2792,14 @@ const Qs = () => at, Ks = /* @__PURE__ */ _(Qs())({
|
|
|
2792
2792
|
name: "ScreenWrap",
|
|
2793
2793
|
class: "s25r51y",
|
|
2794
2794
|
propsAsIs: !1
|
|
2795
|
-
}),
|
|
2795
|
+
}), Zs = () => te, er = /* @__PURE__ */ _(Zs())({
|
|
2796
2796
|
name: "SponsorIconI",
|
|
2797
2797
|
class: "s1lvrmx8",
|
|
2798
2798
|
propsAsIs: !0
|
|
2799
2799
|
}), lt = ({
|
|
2800
2800
|
style: t,
|
|
2801
2801
|
className: e
|
|
2802
|
-
}) => /* @__PURE__ */ P(
|
|
2802
|
+
}) => /* @__PURE__ */ P(er, {
|
|
2803
2803
|
className: e,
|
|
2804
2804
|
style: t,
|
|
2805
2805
|
name: "icon-masters-logo"
|
|
@@ -2819,47 +2819,47 @@ const Qs = () => at, Ks = /* @__PURE__ */ _(Qs())({
|
|
|
2819
2819
|
name: "ScreenButton",
|
|
2820
2820
|
class: "sqtjig9",
|
|
2821
2821
|
propsAsIs: !1
|
|
2822
|
-
}),
|
|
2822
|
+
}), tr = /* @__PURE__ */ _("div")({
|
|
2823
2823
|
name: "EmergencyContainer",
|
|
2824
2824
|
class: "e1f9mu2m",
|
|
2825
2825
|
propsAsIs: !1
|
|
2826
|
-
}),
|
|
2826
|
+
}), sr = /* @__PURE__ */ _("div")({
|
|
2827
2827
|
name: "EmergencyScreenTitle",
|
|
2828
2828
|
class: "e1n10yo1",
|
|
2829
2829
|
propsAsIs: !1
|
|
2830
|
-
}),
|
|
2830
|
+
}), rr = /* @__PURE__ */ _("div")({
|
|
2831
2831
|
name: "EmergencyScreenDescription",
|
|
2832
2832
|
class: "e1xecypc",
|
|
2833
2833
|
propsAsIs: !1
|
|
2834
|
-
}),
|
|
2834
|
+
}), ir = () => ue, nr = /* @__PURE__ */ _(ir())({
|
|
2835
2835
|
name: "EmergencyScreenButton",
|
|
2836
2836
|
class: "e1k6zoyu",
|
|
2837
2837
|
propsAsIs: !0
|
|
2838
|
-
}), ke = ({ actionFn: t, description: e, className: s, onEvent: r }) => (
|
|
2838
|
+
}), ke = ({ actionFn: t, description: e, className: s, onEvent: r }) => (J(() => {
|
|
2839
2839
|
r({ type: "slBetPackReady" });
|
|
2840
|
-
}, [r]), /* @__PURE__ */ F(
|
|
2841
|
-
/* @__PURE__ */ P(
|
|
2842
|
-
/* @__PURE__ */ P(
|
|
2843
|
-
/* @__PURE__ */ P(
|
|
2844
|
-
] })),
|
|
2840
|
+
}, [r]), /* @__PURE__ */ F(tr, { className: s, children: [
|
|
2841
|
+
/* @__PURE__ */ P(sr, { children: "Something went wrong." }),
|
|
2842
|
+
/* @__PURE__ */ P(rr, { children: e }),
|
|
2843
|
+
/* @__PURE__ */ P(nr, { onClick: t, children: "Try again" })
|
|
2844
|
+
] })), ar = /* @__PURE__ */ _("div")({
|
|
2845
2845
|
name: "ScreenContainerBox",
|
|
2846
2846
|
class: "s28ooi9",
|
|
2847
2847
|
propsAsIs: !1
|
|
2848
|
-
}), me = ({ children: t }) => /* @__PURE__ */ P(
|
|
2848
|
+
}), me = ({ children: t }) => /* @__PURE__ */ P(ar, { className: "ScreenContainer", children: /* @__PURE__ */ P("div", { children: t }) }), lr = /* @__PURE__ */ _("img")({
|
|
2849
2849
|
name: "EndScreenMedia",
|
|
2850
2850
|
class: "e8s3kc9",
|
|
2851
2851
|
propsAsIs: !1
|
|
2852
|
-
}),
|
|
2852
|
+
}), or = () => lt, dr = /* @__PURE__ */ _(or())({
|
|
2853
2853
|
name: "EndScreenSponsorIcon",
|
|
2854
2854
|
class: "e1uswib2",
|
|
2855
2855
|
propsAsIs: !0
|
|
2856
|
-
}),
|
|
2856
|
+
}), cr = ({ onEvent: t, height: e }) => {
|
|
2857
2857
|
const [s, r] = W(
|
|
2858
2858
|
0
|
|
2859
2859
|
/* FIRST */
|
|
2860
2860
|
);
|
|
2861
2861
|
return s === 0 ? /* @__PURE__ */ P(me, { height: e, children: /* @__PURE__ */ F(Pe, { children: [
|
|
2862
|
-
/* @__PURE__ */ P(
|
|
2862
|
+
/* @__PURE__ */ P(dr, {}),
|
|
2863
2863
|
/* @__PURE__ */ F(ot, { children: [
|
|
2864
2864
|
/* @__PURE__ */ P(dt, { children: "Great picks!" }),
|
|
2865
2865
|
/* @__PURE__ */ P(Me, { children: "Stay in the Enhanced Stream for live results, predictions, trivia, polls, and match insights." })
|
|
@@ -2878,11 +2878,11 @@ const Qs = () => at, Ks = /* @__PURE__ */ _(Qs())({
|
|
|
2878
2878
|
}
|
|
2879
2879
|
)
|
|
2880
2880
|
] }) }, "end") : /* @__PURE__ */ P(me, { height: e, children: /* @__PURE__ */ F(Pe, { children: [
|
|
2881
|
-
/* @__PURE__ */ P(
|
|
2881
|
+
/* @__PURE__ */ P(lr, { src: "https://cdn.streamlayer.io/assets/sdk-web/onboarding-steps/bet_pack_end_screen.png" }),
|
|
2882
2882
|
/* @__PURE__ */ P(Me, { children: "Look for more live match insights, predictions and more." }),
|
|
2883
2883
|
/* @__PURE__ */ P(ue, { onClick: () => t({ type: "slOpenGameCenter" }), children: "Open Game Center" })
|
|
2884
2884
|
] }) }, "end");
|
|
2885
|
-
},
|
|
2885
|
+
}, pr = /* @__PURE__ */ _("div")({
|
|
2886
2886
|
name: "Container",
|
|
2887
2887
|
class: "cv31tt7",
|
|
2888
2888
|
propsAsIs: !1
|
|
@@ -2890,13 +2890,13 @@ const Qs = () => at, Ks = /* @__PURE__ */ _(Qs())({
|
|
|
2890
2890
|
className: t
|
|
2891
2891
|
}) => /* @__PURE__ */ P(pr, {
|
|
2892
2892
|
className: t,
|
|
2893
|
-
children: /* @__PURE__ */ P(
|
|
2894
|
-
}), ur = ({ question: t, vote: e }) => t ? /* @__PURE__ */ P(
|
|
2893
|
+
children: /* @__PURE__ */ P(mt, {})
|
|
2894
|
+
}), ur = ({ question: t, vote: e }) => t ? /* @__PURE__ */ P(ft, { close: () => {
|
|
2895
2895
|
}, openedQuestion: t, vote: e, isLoading: !1, isEarlyPrediction: !0 }) : null, mr = /* @__PURE__ */ _("span")({
|
|
2896
2896
|
name: "NextButton",
|
|
2897
2897
|
class: "n991vvm",
|
|
2898
2898
|
propsAsIs: !1
|
|
2899
|
-
}), fr = () =>
|
|
2899
|
+
}), fr = () => te, hr = /* @__PURE__ */ _(fr())({
|
|
2900
2900
|
name: "IconArrowRight",
|
|
2901
2901
|
class: "inbj36g",
|
|
2902
2902
|
propsAsIs: !0
|
|
@@ -2941,7 +2941,7 @@ function yr(t, e = {}) {
|
|
|
2941
2941
|
(n) => e.keys ? br(t, e.keys, n) : t.listen(n),
|
|
2942
2942
|
[e.keys, t]
|
|
2943
2943
|
), r = t.get.bind(t);
|
|
2944
|
-
return
|
|
2944
|
+
return wt(s, r, r);
|
|
2945
2945
|
}
|
|
2946
2946
|
function Sr(t, e, s, r) {
|
|
2947
2947
|
return t.params.createElements && Object.keys(r).forEach((n) => {
|
|
@@ -2951,7 +2951,7 @@ function Sr(t, e, s, r) {
|
|
|
2951
2951
|
}
|
|
2952
2952
|
}), s;
|
|
2953
2953
|
}
|
|
2954
|
-
function
|
|
2954
|
+
function Z(t) {
|
|
2955
2955
|
return t === void 0 && (t = ""), `.${t.trim().replace(/([\.:!+\/])/g, "\\$1").replace(/ /g, ".")}`;
|
|
2956
2956
|
}
|
|
2957
2957
|
function Er(t) {
|
|
@@ -3014,7 +3014,7 @@ function Er(t) {
|
|
|
3014
3014
|
return "previous";
|
|
3015
3015
|
}
|
|
3016
3016
|
function u(p) {
|
|
3017
|
-
const m = p.target.closest(
|
|
3017
|
+
const m = p.target.closest(Z(e.params.pagination.bulletClass));
|
|
3018
3018
|
if (!m)
|
|
3019
3019
|
return;
|
|
3020
3020
|
p.preventDefault();
|
|
@@ -3065,16 +3065,16 @@ function Er(t) {
|
|
|
3065
3065
|
}
|
|
3066
3066
|
}
|
|
3067
3067
|
v.forEach((S, E) => {
|
|
3068
|
-
if (m.type === "fraction" && (S.querySelectorAll(
|
|
3068
|
+
if (m.type === "fraction" && (S.querySelectorAll(Z(m.currentClass)).forEach((x) => {
|
|
3069
3069
|
x.textContent = m.formatFractionCurrent(y + 1);
|
|
3070
|
-
}), S.querySelectorAll(
|
|
3070
|
+
}), S.querySelectorAll(Z(m.totalClass)).forEach((x) => {
|
|
3071
3071
|
x.textContent = m.formatFractionTotal(I);
|
|
3072
3072
|
})), m.type === "progressbar") {
|
|
3073
3073
|
let x;
|
|
3074
3074
|
m.progressbarOpposite ? x = e.isHorizontal() ? "vertical" : "horizontal" : x = e.isHorizontal() ? "horizontal" : "vertical";
|
|
3075
3075
|
const k = (y + 1) / I;
|
|
3076
3076
|
let L = 1, O = 1;
|
|
3077
|
-
x === "horizontal" ? L = k : O = k, S.querySelectorAll(
|
|
3077
|
+
x === "horizontal" ? L = k : O = k, S.querySelectorAll(Z(m.progressbarFillClass)).forEach((C) => {
|
|
3078
3078
|
C.style.transform = `translate3d(0,0,0) scaleX(${L}) scaleY(${O})`, C.style.transitionDuration = `${e.params.speed}ms`;
|
|
3079
3079
|
});
|
|
3080
3080
|
}
|
|
@@ -3095,7 +3095,7 @@ function Er(t) {
|
|
|
3095
3095
|
p.renderBullet ? y += p.renderBullet.call(e, A, p.bulletClass) : y += `<${p.bulletElement} ${e.isElement ? 'part="bullet"' : ""} class="${p.bulletClass}"></${p.bulletElement}>`;
|
|
3096
3096
|
}
|
|
3097
3097
|
p.type === "fraction" && (p.renderFraction ? y = p.renderFraction.call(e, p.currentClass, p.totalClass) : y = `<span class="${p.currentClass}"></span> / <span class="${p.totalClass}"></span>`), p.type === "progressbar" && (p.renderProgressbar ? y = p.renderProgressbar.call(e, p.progressbarFillClass) : y = `<span class="${p.progressbarFillClass}"></span>`), e.pagination.bullets = [], v.forEach((T) => {
|
|
3098
|
-
p.type !== "custom" && (T.innerHTML = y || ""), p.type === "bullets" && e.pagination.bullets.push(...T.querySelectorAll(
|
|
3098
|
+
p.type !== "custom" && (T.innerHTML = y || ""), p.type === "bullets" && e.pagination.bullets.push(...T.querySelectorAll(Z(p.bulletClass)));
|
|
3099
3099
|
}), p.type !== "custom" && n("paginationRender", v[0]);
|
|
3100
3100
|
}
|
|
3101
3101
|
function h() {
|
|
@@ -3201,7 +3201,7 @@ const xr = ({ data: t, gamification: e, onEvent: s, swipeable: r, autoplay: n })
|
|
|
3201
3201
|
},
|
|
3202
3202
|
[e, s, n]
|
|
3203
3203
|
);
|
|
3204
|
-
|
|
3204
|
+
J(() => (s({
|
|
3205
3205
|
type: "slBetPackReady",
|
|
3206
3206
|
payload: {
|
|
3207
3207
|
next: () => {
|
|
@@ -3247,8 +3247,8 @@ const xr = ({ data: t, gamification: e, onEvent: s, swipeable: r, autoplay: n })
|
|
|
3247
3247
|
}
|
|
3248
3248
|
e.closeQuestion();
|
|
3249
3249
|
}, [u, f] = W(1.1);
|
|
3250
|
-
return
|
|
3251
|
-
const g =
|
|
3250
|
+
return J(() => {
|
|
3251
|
+
const g = ht(() => {
|
|
3252
3252
|
var h;
|
|
3253
3253
|
const b = (h = l.current) == null ? void 0 : h.size;
|
|
3254
3254
|
if (!b)
|
|
@@ -3260,7 +3260,7 @@ const xr = ({ data: t, gamification: e, onEvent: s, swipeable: r, autoplay: n })
|
|
|
3260
3260
|
window.removeEventListener("resize", g);
|
|
3261
3261
|
};
|
|
3262
3262
|
}, []), /* @__PURE__ */ F(
|
|
3263
|
-
|
|
3263
|
+
Js,
|
|
3264
3264
|
{
|
|
3265
3265
|
slidesPerView: u,
|
|
3266
3266
|
spaceBetween: 12,
|
|
@@ -3281,7 +3281,7 @@ const xr = ({ data: t, gamification: e, onEvent: s, swipeable: r, autoplay: n })
|
|
|
3281
3281
|
children: [
|
|
3282
3282
|
/* @__PURE__ */ P(ae, { children: /* @__PURE__ */ P(wr, { sliderRef: l, countQuestionsAvailable: o }) }),
|
|
3283
3283
|
a.map((g) => g ? /* @__PURE__ */ P(ae, { children: /* @__PURE__ */ P(me, { children: /* @__PURE__ */ P(ur, { question: g, vote: c }) }, g.id) }) : null),
|
|
3284
|
-
/* @__PURE__ */ P(ae, { children: /* @__PURE__ */ P(
|
|
3284
|
+
/* @__PURE__ */ P(ae, { children: /* @__PURE__ */ P(cr, { onEvent: s }) })
|
|
3285
3285
|
]
|
|
3286
3286
|
}
|
|
3287
3287
|
);
|
|
@@ -3292,7 +3292,7 @@ const xr = ({ data: t, gamification: e, onEvent: s, swipeable: r, autoplay: n })
|
|
|
3292
3292
|
{
|
|
3293
3293
|
onEvent: n,
|
|
3294
3294
|
actionFn: () => n({ type: "slHardRefresh" }),
|
|
3295
|
-
description: l instanceof
|
|
3295
|
+
description: l instanceof yt && l.code !== St.InvalidArgument ? `The event ID was not
|
|
3296
3296
|
specified or is invalid.` : `The server is unable to
|
|
3297
3297
|
handle this request.`
|
|
3298
3298
|
}
|
|
@@ -3319,7 +3319,7 @@ handle this request.`
|
|
|
3319
3319
|
name: "BetPackContainer",
|
|
3320
3320
|
class: "b18vssq2",
|
|
3321
3321
|
propsAsIs: !1
|
|
3322
|
-
}), ie = "slBetPackCb", Pr =
|
|
3322
|
+
}), ie = "slBetPackCb", Pr = gt("betPack-ui"), Mr = (t, e = {}) => {
|
|
3323
3323
|
var s, r;
|
|
3324
3324
|
const { questionId: n, answerId: i } = e, l = { questionId: n, answerId: i };
|
|
3325
3325
|
Pr.debug({ id: ie, type: t, ...l }), (s = window.top) == null || s.postMessage({ id: ie, type: t, ...l }, "*"), window.webkit && window.webkit.messageHandlers && window.webkit.messageHandlers[ie] && window.webkit.messageHandlers[ie].postMessage({ type: t, ...l }), (r = window.slBetPackCb) != null && r.postMessage && window.slBetPackCb.postMessage(JSON.stringify({ type: t, ...l, from: "base" }));
|
|
@@ -3333,7 +3333,7 @@ handle this request.`
|
|
|
3333
3333
|
name: "CloseButton",
|
|
3334
3334
|
class: "coc9f01",
|
|
3335
3335
|
propsAsIs: !1
|
|
3336
|
-
}), je = "b590k5k", Ar = () =>
|
|
3336
|
+
}), je = "b590k5k", Ar = () => te, ct = /* @__PURE__ */ _(Ar())({
|
|
3337
3337
|
name: "IconArrowPrev",
|
|
3338
3338
|
class: "i1tkem14",
|
|
3339
3339
|
propsAsIs: !0
|
|
@@ -3383,10 +3383,10 @@ handle this request.`
|
|
|
3383
3383
|
return /* @__PURE__ */ F(Ir, { ref: r, children: [
|
|
3384
3384
|
/* @__PURE__ */ F(_r, { children: [
|
|
3385
3385
|
/* @__PURE__ */ F($r, { children: [
|
|
3386
|
-
/* @__PURE__ */ P(
|
|
3386
|
+
/* @__PURE__ */ P(te, { name: "fgIcon" }),
|
|
3387
3387
|
"Featured Groups+"
|
|
3388
3388
|
] }),
|
|
3389
|
-
/* @__PURE__ */ P(Lr, { onClick: s, children: /* @__PURE__ */ P(
|
|
3389
|
+
/* @__PURE__ */ P(Lr, { onClick: s, children: /* @__PURE__ */ P(te, { name: "icon-close-btn-gray" }) })
|
|
3390
3390
|
] }),
|
|
3391
3391
|
/* @__PURE__ */ P(Gr, { children: /* @__PURE__ */ P(Dr, { sdk: t, onEvent: o, overlay: !0 }) }),
|
|
3392
3392
|
/* @__PURE__ */ F(Nr, { children: [
|
|
@@ -3402,8 +3402,8 @@ handle this request.`
|
|
|
3402
3402
|
description: `You are not authorized to
|
|
3403
3403
|
view this resource.`
|
|
3404
3404
|
}
|
|
3405
|
-
) : /* @__PURE__ */ P(Ie, {}), Dr =
|
|
3406
|
-
const n = _e(t.featuresList.getStore()), i = Re(() => t.getFeature(
|
|
3405
|
+
) : /* @__PURE__ */ P(Ie, {}), Dr = bt(({ sdk: t, swipeable: e = !0, onEvent: s = kr, overlay: r }) => {
|
|
3406
|
+
const n = _e(t.featuresList.getStore()), i = Re(() => t.getFeature(Et.GAMES), [n]), l = _e(t.getUserStore());
|
|
3407
3407
|
return /* @__PURE__ */ P(
|
|
3408
3408
|
Cr,
|
|
3409
3409
|
{
|