@maycolem/stories 26.0.0 → 27.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs.js +2 -2
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +527 -489
- package/dist/index.esm.js.map +1 -1
- package/dist/src/components/ManagmentStoryComponent.d.ts +6 -3
- package/dist/src/components/ProfileStories.d.ts +3 -2
- package/dist/src/features/betSlip/components/BetSlip.d.ts +1 -0
- package/dist/src/features/story/components/StoryCube.d.ts +2 -1
- package/dist/src/features/story/components/story/CardStory.d.ts +2 -1
- package/dist/src/shared/components/buttons/PulseButton.d.ts +2 -2
- package/package.json +1 -1
package/dist/index.esm.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { jsx as
|
|
1
|
+
import { jsx as C, jsxs as U, Fragment as jt } from "react/jsx-runtime";
|
|
2
2
|
import * as Rn from "react";
|
|
3
3
|
import Y, { useState as Z, useRef as B, useCallback as kt, useEffect as F, forwardRef as sr, createContext as Ce, useLayoutEffect as lo, useContext as ee, useMemo as mt, createElement as da, PureComponent as fa, Fragment as uo } from "react";
|
|
4
4
|
import pa from "react-dom";
|
|
@@ -100,7 +100,7 @@ const Ma = /* @__PURE__ */ co(_a), fo = ({
|
|
|
100
100
|
hasSeenAllStories: s
|
|
101
101
|
}) => {
|
|
102
102
|
const [a, { width: l, height: u }] = Pa();
|
|
103
|
-
return /* @__PURE__ */
|
|
103
|
+
return /* @__PURE__ */ C("div", { ref: a, children: /* @__PURE__ */ U(
|
|
104
104
|
"div",
|
|
105
105
|
{
|
|
106
106
|
className: Se(He.ProfileStory, r, {
|
|
@@ -113,8 +113,8 @@ const Ma = /* @__PURE__ */ co(_a), fo = ({
|
|
|
113
113
|
"--story-width": o ?? `${l}px`
|
|
114
114
|
},
|
|
115
115
|
children: [
|
|
116
|
-
/* @__PURE__ */
|
|
117
|
-
t && /* @__PURE__ */
|
|
116
|
+
/* @__PURE__ */ C("div", { className: He.ProfileStoryWrap, children: /* @__PURE__ */ C("div", { className: He.ProfileStory__wrapImage, children: /* @__PURE__ */ C("div", { className: He.ProfileStory__image, children: /* @__PURE__ */ C("img", { src: e, alt: "", draggable: !1 }) }) }) }),
|
|
117
|
+
t && /* @__PURE__ */ C("div", { className: He.ProfileStory__title, children: t })
|
|
118
118
|
]
|
|
119
119
|
}
|
|
120
120
|
) });
|
|
@@ -585,10 +585,10 @@ function Wa(e) {
|
|
|
585
585
|
d.forEach((g) => {
|
|
586
586
|
let {
|
|
587
587
|
contentBoxSize: m,
|
|
588
|
-
contentRect:
|
|
589
|
-
target:
|
|
588
|
+
contentRect: y,
|
|
589
|
+
target: S
|
|
590
590
|
} = g;
|
|
591
|
-
|
|
591
|
+
S && S !== t.el || (p = y ? y.width : (m[0] || m).inlineSize, h = y ? y.height : (m[0] || m).blockSize);
|
|
592
592
|
}), (p !== f || h !== v) && a();
|
|
593
593
|
});
|
|
594
594
|
}), o.observe(t.el));
|
|
@@ -739,45 +739,45 @@ function Xa() {
|
|
|
739
739
|
typeof h == "function" && (h = n.slidesOffsetBefore.call(e));
|
|
740
740
|
let g = n.slidesOffsetAfter;
|
|
741
741
|
typeof g == "function" && (g = n.slidesOffsetAfter.call(e));
|
|
742
|
-
const m = e.snapGrid.length,
|
|
743
|
-
let
|
|
742
|
+
const m = e.snapGrid.length, y = e.slidesGrid.length;
|
|
743
|
+
let S = n.spaceBetween, b = -h, w = 0, _ = 0;
|
|
744
744
|
if (typeof o > "u")
|
|
745
745
|
return;
|
|
746
|
-
typeof
|
|
746
|
+
typeof S == "string" && S.indexOf("%") >= 0 ? S = parseFloat(S.replace("%", "")) / 100 * o : typeof S == "string" && (S = parseFloat(S)), e.virtualSize = -S, c.forEach((P) => {
|
|
747
747
|
s ? P.style.marginLeft = "" : P.style.marginRight = "", P.style.marginBottom = "", P.style.marginTop = "";
|
|
748
748
|
}), n.centeredSlides && n.cssMode && (Et(r, "--swiper-centered-offset-before", ""), Et(r, "--swiper-centered-offset-after", ""));
|
|
749
|
-
const
|
|
750
|
-
|
|
751
|
-
let
|
|
752
|
-
const
|
|
749
|
+
const T = n.grid && n.grid.rows > 1 && e.grid;
|
|
750
|
+
T ? e.grid.initSlides(c) : e.grid && e.grid.unsetSlides();
|
|
751
|
+
let E;
|
|
752
|
+
const x = n.slidesPerView === "auto" && n.breakpoints && Object.keys(n.breakpoints).filter((P) => typeof n.breakpoints[P].slidesPerView < "u").length > 0;
|
|
753
753
|
for (let P = 0; P < d; P += 1) {
|
|
754
|
-
|
|
754
|
+
E = 0;
|
|
755
755
|
let A;
|
|
756
|
-
if (c[P] && (A = c[P]),
|
|
756
|
+
if (c[P] && (A = c[P]), T && e.grid.updateSlide(P, A, c), !(c[P] && Oe(A, "display") === "none")) {
|
|
757
757
|
if (n.slidesPerView === "auto") {
|
|
758
|
-
|
|
758
|
+
x && (c[P].style[e.getDirectionLabel("width")] = "");
|
|
759
759
|
const I = getComputedStyle(A), L = A.style.transform, N = A.style.webkitTransform;
|
|
760
760
|
if (L && (A.style.transform = "none"), N && (A.style.webkitTransform = "none"), n.roundLengths)
|
|
761
|
-
|
|
761
|
+
E = e.isHorizontal() ? kr(A, "width") : kr(A, "height");
|
|
762
762
|
else {
|
|
763
763
|
const j = t(I, "width"), D = t(I, "padding-left"), G = t(I, "padding-right"), H = t(I, "margin-left"), k = t(I, "margin-right"), J = I.getPropertyValue("box-sizing");
|
|
764
764
|
if (J && J === "border-box")
|
|
765
|
-
|
|
765
|
+
E = j + H + k;
|
|
766
766
|
else {
|
|
767
767
|
const {
|
|
768
768
|
clientWidth: ce,
|
|
769
769
|
offsetWidth: Q
|
|
770
770
|
} = A;
|
|
771
|
-
|
|
771
|
+
E = j + D + G + H + k + (Q - ce);
|
|
772
772
|
}
|
|
773
773
|
}
|
|
774
|
-
L && (A.style.transform = L), N && (A.style.webkitTransform = N), n.roundLengths && (
|
|
774
|
+
L && (A.style.transform = L), N && (A.style.webkitTransform = N), n.roundLengths && (E = Math.floor(E));
|
|
775
775
|
} else
|
|
776
|
-
|
|
777
|
-
c[P] && (c[P].swiperSlideSize =
|
|
776
|
+
E = (o - (n.slidesPerView - 1) * S) / n.slidesPerView, n.roundLengths && (E = Math.floor(E)), c[P] && (c[P].style[e.getDirectionLabel("width")] = `${E}px`);
|
|
777
|
+
c[P] && (c[P].swiperSlideSize = E), p.push(E), n.centeredSlides ? (b = b + E / 2 + w / 2 + S, w === 0 && P !== 0 && (b = b - o / 2 - S), P === 0 && (b = b - o / 2 - S), Math.abs(b) < 1 / 1e3 && (b = 0), n.roundLengths && (b = Math.floor(b)), _ % n.slidesPerGroup === 0 && f.push(b), v.push(b)) : (n.roundLengths && (b = Math.floor(b)), (_ - Math.min(e.params.slidesPerGroupSkip, _)) % e.params.slidesPerGroup === 0 && f.push(b), v.push(b), b = b + E + S), e.virtualSize += E + S, w = E, _ += 1;
|
|
778
778
|
}
|
|
779
779
|
}
|
|
780
|
-
if (e.virtualSize = Math.max(e.virtualSize, o) + g, s && a && (n.effect === "slide" || n.effect === "coverflow") && (r.style.width = `${e.virtualSize +
|
|
780
|
+
if (e.virtualSize = Math.max(e.virtualSize, o) + g, s && a && (n.effect === "slide" || n.effect === "coverflow") && (r.style.width = `${e.virtualSize + S}px`), n.setWrapperSize && (r.style[e.getDirectionLabel("width")] = `${e.virtualSize + S}px`), T && e.grid.updateWrapperSize(E, f), !n.centeredSlides) {
|
|
781
781
|
const P = [];
|
|
782
782
|
for (let A = 0; A < f.length; A += 1) {
|
|
783
783
|
let I = f[A];
|
|
@@ -786,7 +786,7 @@ function Xa() {
|
|
|
786
786
|
f = P, Math.floor(e.virtualSize - o) - Math.floor(f[f.length - 1]) > 1 && f.push(e.virtualSize - o);
|
|
787
787
|
}
|
|
788
788
|
if (l && n.loop) {
|
|
789
|
-
const P = p[0] +
|
|
789
|
+
const P = p[0] + S;
|
|
790
790
|
if (n.slidesPerGroup > 1) {
|
|
791
791
|
const A = Math.ceil((e.virtual.slidesBefore + e.virtual.slidesAfter) / n.slidesPerGroup), I = P * n.slidesPerGroup;
|
|
792
792
|
for (let L = 0; L < A; L += 1)
|
|
@@ -795,25 +795,25 @@ function Xa() {
|
|
|
795
795
|
for (let A = 0; A < e.virtual.slidesBefore + e.virtual.slidesAfter; A += 1)
|
|
796
796
|
n.slidesPerGroup === 1 && f.push(f[f.length - 1] + P), v.push(v[v.length - 1] + P), e.virtualSize += P;
|
|
797
797
|
}
|
|
798
|
-
if (f.length === 0 && (f = [0]),
|
|
798
|
+
if (f.length === 0 && (f = [0]), S !== 0) {
|
|
799
799
|
const P = e.isHorizontal() && s ? "marginLeft" : e.getDirectionLabel("marginRight");
|
|
800
800
|
c.filter((A, I) => !n.cssMode || n.loop ? !0 : I !== c.length - 1).forEach((A) => {
|
|
801
|
-
A.style[P] = `${
|
|
801
|
+
A.style[P] = `${S}px`;
|
|
802
802
|
});
|
|
803
803
|
}
|
|
804
804
|
if (n.centeredSlides && n.centeredSlidesBounds) {
|
|
805
805
|
let P = 0;
|
|
806
806
|
p.forEach((I) => {
|
|
807
|
-
P += I + (
|
|
808
|
-
}), P -=
|
|
807
|
+
P += I + (S || 0);
|
|
808
|
+
}), P -= S;
|
|
809
809
|
const A = P > o ? P - o : 0;
|
|
810
810
|
f = f.map((I) => I <= 0 ? -h : I > A ? A + g : I);
|
|
811
811
|
}
|
|
812
812
|
if (n.centerInsufficientSlides) {
|
|
813
813
|
let P = 0;
|
|
814
814
|
p.forEach((I) => {
|
|
815
|
-
P += I + (
|
|
816
|
-
}), P -=
|
|
815
|
+
P += I + (S || 0);
|
|
816
|
+
}), P -= S;
|
|
817
817
|
const A = (n.slidesOffsetBefore || 0) + (n.slidesOffsetAfter || 0);
|
|
818
818
|
if (P + A < o) {
|
|
819
819
|
const I = (o - P - A) / 2;
|
|
@@ -834,7 +834,7 @@ function Xa() {
|
|
|
834
834
|
const P = -e.snapGrid[0], A = -e.slidesGrid[0];
|
|
835
835
|
e.snapGrid = e.snapGrid.map((I) => I + P), e.slidesGrid = e.slidesGrid.map((I) => I + A);
|
|
836
836
|
}
|
|
837
|
-
if (d !== u && e.emit("slidesLengthChange"), f.length !== m && (e.params.watchOverflow && e.checkOverflow(), e.emit("snapGridLengthChange")), v.length !==
|
|
837
|
+
if (d !== u && e.emit("slidesLengthChange"), f.length !== m && (e.params.watchOverflow && e.checkOverflow(), e.emit("snapGridLengthChange")), v.length !== y && e.emit("slidesGridLengthChange"), n.watchSlidesProgress && e.updateSlidesOffset(), e.emit("slidesUpdated"), !l && !n.cssMode && (n.effect === "slide" || n.effect === "fade")) {
|
|
838
838
|
const P = `${n.containerModifierClass}backface-hidden`, A = e.el.classList.contains(P);
|
|
839
839
|
d <= n.maxBackfaceHiddenSlides ? A || e.el.classList.add(P) : A && e.el.classList.remove(P);
|
|
840
840
|
}
|
|
@@ -1223,43 +1223,43 @@ function hl(e, t, n, r, i) {
|
|
|
1223
1223
|
g >= l.length && (g = l.length - 1);
|
|
1224
1224
|
const m = -l[g];
|
|
1225
1225
|
if (a.normalizeSlideIndex)
|
|
1226
|
-
for (let
|
|
1227
|
-
const
|
|
1228
|
-
typeof u[
|
|
1226
|
+
for (let T = 0; T < u.length; T += 1) {
|
|
1227
|
+
const E = -Math.floor(m * 100), x = Math.floor(u[T] * 100), P = Math.floor(u[T + 1] * 100);
|
|
1228
|
+
typeof u[T + 1] < "u" ? E >= x && E < P - (P - x) / 2 ? s = T : E >= x && E < P && (s = T + 1) : E >= x && (s = T);
|
|
1229
1229
|
}
|
|
1230
1230
|
if (o.initialized && s !== d && (!o.allowSlideNext && (f ? m > o.translate && m > o.minTranslate() : m < o.translate && m < o.minTranslate()) || !o.allowSlidePrev && m > o.translate && m > o.maxTranslate() && (d || 0) !== s))
|
|
1231
1231
|
return !1;
|
|
1232
1232
|
s !== (c || 0) && n && o.emit("beforeSlideChangeStart"), o.updateProgress(m);
|
|
1233
|
-
let
|
|
1234
|
-
s > d ?
|
|
1235
|
-
const
|
|
1236
|
-
if (!(
|
|
1237
|
-
return o.updateActiveIndex(s), a.autoHeight && o.updateAutoHeight(), o.updateSlidesClasses(), a.effect !== "slide" && o.setTranslate(m),
|
|
1233
|
+
let y;
|
|
1234
|
+
s > d ? y = "next" : s < d ? y = "prev" : y = "reset";
|
|
1235
|
+
const S = o.virtual && o.params.virtual.enabled;
|
|
1236
|
+
if (!(S && i) && (f && -m === o.translate || !f && m === o.translate))
|
|
1237
|
+
return o.updateActiveIndex(s), a.autoHeight && o.updateAutoHeight(), o.updateSlidesClasses(), a.effect !== "slide" && o.setTranslate(m), y !== "reset" && (o.transitionStart(n, y), o.transitionEnd(n, y)), !1;
|
|
1238
1238
|
if (a.cssMode) {
|
|
1239
|
-
const
|
|
1239
|
+
const T = o.isHorizontal(), E = f ? m : -m;
|
|
1240
1240
|
if (t === 0)
|
|
1241
|
-
|
|
1242
|
-
v[
|
|
1243
|
-
})) : v[
|
|
1241
|
+
S && (o.wrapperEl.style.scrollSnapType = "none", o._immediateVirtual = !0), S && !o._cssModeVirtualInitialSet && o.params.initialSlide > 0 ? (o._cssModeVirtualInitialSet = !0, requestAnimationFrame(() => {
|
|
1242
|
+
v[T ? "scrollLeft" : "scrollTop"] = E;
|
|
1243
|
+
})) : v[T ? "scrollLeft" : "scrollTop"] = E, S && requestAnimationFrame(() => {
|
|
1244
1244
|
o.wrapperEl.style.scrollSnapType = "", o._immediateVirtual = !1;
|
|
1245
1245
|
});
|
|
1246
1246
|
else {
|
|
1247
1247
|
if (!o.support.smoothScroll)
|
|
1248
1248
|
return ho({
|
|
1249
1249
|
swiper: o,
|
|
1250
|
-
targetPosition:
|
|
1251
|
-
side:
|
|
1250
|
+
targetPosition: E,
|
|
1251
|
+
side: T ? "left" : "top"
|
|
1252
1252
|
}), !0;
|
|
1253
1253
|
v.scrollTo({
|
|
1254
|
-
[
|
|
1254
|
+
[T ? "left" : "top"]: E,
|
|
1255
1255
|
behavior: "smooth"
|
|
1256
1256
|
});
|
|
1257
1257
|
}
|
|
1258
1258
|
return !0;
|
|
1259
1259
|
}
|
|
1260
|
-
const
|
|
1261
|
-
return
|
|
1262
|
-
!o || o.destroyed ||
|
|
1260
|
+
const _ = yo().isSafari;
|
|
1261
|
+
return S && !i && _ && o.isElement && o.virtual.update(!1, !1, s), o.setTransition(t), o.setTranslate(m), o.updateActiveIndex(s), o.updateSlidesClasses(), o.emit("beforeTransitionStart", t, r), o.transitionStart(n, y), t === 0 ? o.transitionEnd(n, y) : o.animating || (o.animating = !0, o.onSlideToWrapperTransitionEnd || (o.onSlideToWrapperTransitionEnd = function(E) {
|
|
1262
|
+
!o || o.destroyed || E.target === this && (o.wrapperEl.removeEventListener("transitionend", o.onSlideToWrapperTransitionEnd), o.onSlideToWrapperTransitionEnd = null, delete o.onSlideToWrapperTransitionEnd, o.transitionEnd(n, y));
|
|
1263
1263
|
}), o.wrapperEl.addEventListener("transitionend", o.onSlideToWrapperTransitionEnd)), !0;
|
|
1264
1264
|
}
|
|
1265
1265
|
function ml(e, t, n, r) {
|
|
@@ -1347,21 +1347,21 @@ function yl(e, t, n) {
|
|
|
1347
1347
|
}), r._clientLeft = r.wrapperEl.clientLeft;
|
|
1348
1348
|
}
|
|
1349
1349
|
const d = a ? r.translate : -r.translate;
|
|
1350
|
-
function f(
|
|
1351
|
-
return
|
|
1350
|
+
function f(y) {
|
|
1351
|
+
return y < 0 ? -Math.floor(Math.abs(y)) : Math.floor(y);
|
|
1352
1352
|
}
|
|
1353
|
-
const v = f(d), p = o.map((
|
|
1353
|
+
const v = f(d), p = o.map((y) => f(y)), h = i.freeMode && i.freeMode.enabled;
|
|
1354
1354
|
let g = o[p.indexOf(v) - 1];
|
|
1355
1355
|
if (typeof g > "u" && (i.cssMode || h)) {
|
|
1356
|
-
let
|
|
1357
|
-
o.forEach((
|
|
1358
|
-
v >=
|
|
1359
|
-
}), typeof
|
|
1356
|
+
let y;
|
|
1357
|
+
o.forEach((S, b) => {
|
|
1358
|
+
v >= S && (y = b);
|
|
1359
|
+
}), typeof y < "u" && (g = h ? o[y] : o[y > 0 ? y - 1 : y]);
|
|
1360
1360
|
}
|
|
1361
1361
|
let m = 0;
|
|
1362
1362
|
if (typeof g < "u" && (m = s.indexOf(g), m < 0 && (m = r.activeIndex - 1), i.slidesPerView === "auto" && i.slidesPerGroup === 1 && i.slidesPerGroupAuto && (m = m - r.slidesPerViewDynamic("previous", !0) + 1, m = Math.max(m, 0))), i.rewind && r.isBeginning) {
|
|
1363
|
-
const
|
|
1364
|
-
return r.slideTo(
|
|
1363
|
+
const y = r.params.virtual && r.params.virtual.enabled && r.virtual ? r.virtual.slides.length - 1 : r.slides.length - 1;
|
|
1364
|
+
return r.slideTo(y, e, t, n);
|
|
1365
1365
|
} else if (i.loop && r.activeIndex === 0 && i.cssMode)
|
|
1366
1366
|
return requestAnimationFrame(() => {
|
|
1367
1367
|
r.slideTo(m, e, t, n);
|
|
@@ -1486,60 +1486,60 @@ function Pl(e) {
|
|
|
1486
1486
|
}
|
|
1487
1487
|
let m = p.slidesPerView;
|
|
1488
1488
|
m === "auto" ? m = u.slidesPerViewDynamic() : (m = Math.ceil(parseFloat(p.slidesPerView, 10)), h && m % 2 === 0 && (m = m + 1));
|
|
1489
|
-
const
|
|
1490
|
-
let
|
|
1491
|
-
|
|
1489
|
+
const y = p.slidesPerGroupAuto ? m : p.slidesPerGroup;
|
|
1490
|
+
let S = y;
|
|
1491
|
+
S % y !== 0 && (S += y - S % y), S += p.loopAdditionalSlides, u.loopedSlides = S;
|
|
1492
1492
|
const b = u.grid && p.grid && p.grid.rows > 1;
|
|
1493
|
-
c.length < m +
|
|
1494
|
-
const w = [],
|
|
1495
|
-
let
|
|
1496
|
-
typeof o > "u" ? o = u.getSlideIndex(c.find((D) => D.classList.contains(p.slideActiveClass))) :
|
|
1493
|
+
c.length < m + S || u.params.effect === "cards" && c.length < m + S * 2 ? $t("Swiper Loop Warning: The number of slides is not enough for loop mode, it will be disabled or not function properly. You need to add more slides (or make duplicates) or lower the values of slidesPerView and slidesPerGroup parameters") : b && p.grid.fill === "row" && $t("Swiper Loop Warning: Loop mode is not compatible with grid.fill = `row`");
|
|
1494
|
+
const w = [], _ = [], T = b ? Math.ceil(c.length / p.grid.rows) : c.length, E = s && T - g < m && !h;
|
|
1495
|
+
let x = E ? g : u.activeIndex;
|
|
1496
|
+
typeof o > "u" ? o = u.getSlideIndex(c.find((D) => D.classList.contains(p.slideActiveClass))) : x = o;
|
|
1497
1497
|
const P = r === "next" || !r, A = r === "prev" || !r;
|
|
1498
1498
|
let I = 0, L = 0;
|
|
1499
1499
|
const j = (b ? c[o].column : o) + (h && typeof i > "u" ? -m / 2 + 0.5 : 0);
|
|
1500
|
-
if (j <
|
|
1501
|
-
I = Math.max(
|
|
1502
|
-
for (let D = 0; D <
|
|
1503
|
-
const G = D - Math.floor(D /
|
|
1500
|
+
if (j < S) {
|
|
1501
|
+
I = Math.max(S - j, y);
|
|
1502
|
+
for (let D = 0; D < S - j; D += 1) {
|
|
1503
|
+
const G = D - Math.floor(D / T) * T;
|
|
1504
1504
|
if (b) {
|
|
1505
|
-
const H =
|
|
1505
|
+
const H = T - G - 1;
|
|
1506
1506
|
for (let k = c.length - 1; k >= 0; k -= 1)
|
|
1507
1507
|
c[k].column === H && w.push(k);
|
|
1508
1508
|
} else
|
|
1509
|
-
w.push(
|
|
1509
|
+
w.push(T - G - 1);
|
|
1510
1510
|
}
|
|
1511
|
-
} else if (j + m >
|
|
1512
|
-
L = Math.max(j - (
|
|
1511
|
+
} else if (j + m > T - S) {
|
|
1512
|
+
L = Math.max(j - (T - S * 2), y), E && (L = Math.max(L, m - T + g + 1));
|
|
1513
1513
|
for (let D = 0; D < L; D += 1) {
|
|
1514
|
-
const G = D - Math.floor(D /
|
|
1514
|
+
const G = D - Math.floor(D / T) * T;
|
|
1515
1515
|
b ? c.forEach((H, k) => {
|
|
1516
|
-
H.column === G &&
|
|
1517
|
-
}) :
|
|
1516
|
+
H.column === G && _.push(k);
|
|
1517
|
+
}) : _.push(G);
|
|
1518
1518
|
}
|
|
1519
1519
|
}
|
|
1520
1520
|
if (u.__preventObserver__ = !0, requestAnimationFrame(() => {
|
|
1521
1521
|
u.__preventObserver__ = !1;
|
|
1522
|
-
}), u.params.effect === "cards" && c.length < m +
|
|
1522
|
+
}), u.params.effect === "cards" && c.length < m + S * 2 && (_.includes(o) && _.splice(_.indexOf(o), 1), w.includes(o) && w.splice(w.indexOf(o), 1)), A && w.forEach((D) => {
|
|
1523
1523
|
c[D].swiperLoopMoveDOM = !0, v.prepend(c[D]), c[D].swiperLoopMoveDOM = !1;
|
|
1524
|
-
}), P &&
|
|
1524
|
+
}), P && _.forEach((D) => {
|
|
1525
1525
|
c[D].swiperLoopMoveDOM = !0, v.append(c[D]), c[D].swiperLoopMoveDOM = !1;
|
|
1526
|
-
}), u.recalcSlides(), p.slidesPerView === "auto" ? u.updateSlides() : b && (w.length > 0 && A ||
|
|
1526
|
+
}), u.recalcSlides(), p.slidesPerView === "auto" ? u.updateSlides() : b && (w.length > 0 && A || _.length > 0 && P) && u.slides.forEach((D, G) => {
|
|
1527
1527
|
u.grid.updateSlide(G, D, u.slides);
|
|
1528
1528
|
}), p.watchSlidesProgress && u.updateSlidesOffset(), n) {
|
|
1529
1529
|
if (w.length > 0 && A) {
|
|
1530
1530
|
if (typeof t > "u") {
|
|
1531
|
-
const D = u.slidesGrid[
|
|
1532
|
-
l ? u.setTranslate(u.translate - H) : (u.slideTo(
|
|
1531
|
+
const D = u.slidesGrid[x], H = u.slidesGrid[x + I] - D;
|
|
1532
|
+
l ? u.setTranslate(u.translate - H) : (u.slideTo(x + Math.ceil(I), 0, !1, !0), i && (u.touchEventsData.startTranslate = u.touchEventsData.startTranslate - H, u.touchEventsData.currentTranslate = u.touchEventsData.currentTranslate - H));
|
|
1533
1533
|
} else if (i) {
|
|
1534
1534
|
const D = b ? w.length / p.grid.rows : w.length;
|
|
1535
1535
|
u.slideTo(u.activeIndex + D, 0, !1, !0), u.touchEventsData.currentTranslate = u.translate;
|
|
1536
1536
|
}
|
|
1537
|
-
} else if (
|
|
1537
|
+
} else if (_.length > 0 && P)
|
|
1538
1538
|
if (typeof t > "u") {
|
|
1539
|
-
const D = u.slidesGrid[
|
|
1540
|
-
l ? u.setTranslate(u.translate - H) : (u.slideTo(
|
|
1539
|
+
const D = u.slidesGrid[x], H = u.slidesGrid[x - L] - D;
|
|
1540
|
+
l ? u.setTranslate(u.translate - H) : (u.slideTo(x - L, 0, !1, !0), i && (u.touchEventsData.startTranslate = u.touchEventsData.startTranslate - H, u.touchEventsData.currentTranslate = u.touchEventsData.currentTranslate - H));
|
|
1541
1541
|
} else {
|
|
1542
|
-
const D = b ?
|
|
1542
|
+
const D = b ? _.length / p.grid.rows : _.length;
|
|
1543
1543
|
u.slideTo(u.activeIndex - D, 0, !1, !0);
|
|
1544
1544
|
}
|
|
1545
1545
|
}
|
|
@@ -1736,9 +1736,9 @@ function Ll(e) {
|
|
|
1736
1736
|
i.oneWayMovement && (p = Math.abs(p) * (s ? 1 : -1), h = Math.abs(h) * (s ? 1 : -1)), o.diff = p, p *= i.touchRatio, s && (p = -p, h = -h);
|
|
1737
1737
|
const g = n.touchesDirection;
|
|
1738
1738
|
n.swipeDirection = p > 0 ? "prev" : "next", n.touchesDirection = h > 0 ? "prev" : "next";
|
|
1739
|
-
const m = n.params.loop && !i.cssMode,
|
|
1739
|
+
const m = n.params.loop && !i.cssMode, y = n.touchesDirection === "next" && n.allowSlideNext || n.touchesDirection === "prev" && n.allowSlidePrev;
|
|
1740
1740
|
if (!r.isMoved) {
|
|
1741
|
-
if (m &&
|
|
1741
|
+
if (m && y && n.loopFix({
|
|
1742
1742
|
direction: n.swipeDirection
|
|
1743
1743
|
}), r.startTranslate = n.getTranslate(), n.setTransition(0), n.animating) {
|
|
1744
1744
|
const w = new window.CustomEvent("transitionend", {
|
|
@@ -1752,7 +1752,7 @@ function Ll(e) {
|
|
|
1752
1752
|
}
|
|
1753
1753
|
r.allowMomentumBounce = !1, i.grabCursor && (n.allowSlideNext === !0 || n.allowSlidePrev === !0) && n.setGrabCursor(!0), n.emit("sliderFirstMove", l);
|
|
1754
1754
|
}
|
|
1755
|
-
if ((/* @__PURE__ */ new Date()).getTime(), i._loopSwapReset !== !1 && r.isMoved && r.allowThresholdMove && g !== n.touchesDirection && m &&
|
|
1755
|
+
if ((/* @__PURE__ */ new Date()).getTime(), i._loopSwapReset !== !1 && r.isMoved && r.allowThresholdMove && g !== n.touchesDirection && m && y && Math.abs(p) >= 1) {
|
|
1756
1756
|
Object.assign(o, {
|
|
1757
1757
|
startX: c,
|
|
1758
1758
|
startY: d,
|
|
@@ -1763,16 +1763,16 @@ function Ll(e) {
|
|
|
1763
1763
|
return;
|
|
1764
1764
|
}
|
|
1765
1765
|
n.emit("sliderMove", l), r.isMoved = !0, r.currentTranslate = p + r.startTranslate;
|
|
1766
|
-
let
|
|
1767
|
-
if (i.touchReleaseOnEdges && (b = 0), p > 0 ? (m &&
|
|
1766
|
+
let S = !0, b = i.resistanceRatio;
|
|
1767
|
+
if (i.touchReleaseOnEdges && (b = 0), p > 0 ? (m && y && r.allowThresholdMove && r.currentTranslate > (i.centeredSlides ? n.minTranslate() - n.slidesSizesGrid[n.activeIndex + 1] - (i.slidesPerView !== "auto" && n.slides.length - i.slidesPerView >= 2 ? n.slidesSizesGrid[n.activeIndex + 1] + n.params.spaceBetween : 0) - n.params.spaceBetween : n.minTranslate()) && n.loopFix({
|
|
1768
1768
|
direction: "prev",
|
|
1769
1769
|
setTranslate: !0,
|
|
1770
1770
|
activeSlideIndex: 0
|
|
1771
|
-
}), r.currentTranslate > n.minTranslate() && (
|
|
1771
|
+
}), r.currentTranslate > n.minTranslate() && (S = !1, i.resistance && (r.currentTranslate = n.minTranslate() - 1 + (-n.minTranslate() + r.startTranslate + p) ** b))) : p < 0 && (m && y && r.allowThresholdMove && r.currentTranslate < (i.centeredSlides ? n.maxTranslate() + n.slidesSizesGrid[n.slidesSizesGrid.length - 1] + n.params.spaceBetween + (i.slidesPerView !== "auto" && n.slides.length - i.slidesPerView >= 2 ? n.slidesSizesGrid[n.slidesSizesGrid.length - 1] + n.params.spaceBetween : 0) : n.maxTranslate()) && n.loopFix({
|
|
1772
1772
|
direction: "next",
|
|
1773
1773
|
setTranslate: !0,
|
|
1774
1774
|
activeSlideIndex: n.slides.length - (i.slidesPerView === "auto" ? n.slidesPerViewDynamic() : Math.ceil(parseFloat(i.slidesPerView, 10)))
|
|
1775
|
-
}), r.currentTranslate < n.maxTranslate() && (
|
|
1775
|
+
}), r.currentTranslate < n.maxTranslate() && (S = !1, i.resistance && (r.currentTranslate = n.maxTranslate() + 1 - (n.maxTranslate() - r.startTranslate - p) ** b))), S && (l.preventedByNestedSwiper = !0), !n.allowSlideNext && n.swipeDirection === "next" && r.currentTranslate < r.startTranslate && (r.currentTranslate = r.startTranslate), !n.allowSlidePrev && n.swipeDirection === "prev" && r.currentTranslate > r.startTranslate && (r.currentTranslate = r.startTranslate), !n.allowSlidePrev && !n.allowSlideNext && (r.currentTranslate = r.startTranslate), i.threshold > 0)
|
|
1776
1776
|
if (Math.abs(p) > i.threshold || r.allowThresholdMove) {
|
|
1777
1777
|
if (!r.allowThresholdMove) {
|
|
1778
1778
|
r.allowThresholdMove = !0, o.startX = o.currentX, o.startY = o.currentY, r.currentTranslate = r.startTranslate, o.diff = n.isHorizontal() ? o.currentX - o.startX : o.currentY - o.startY;
|
|
@@ -1835,24 +1835,24 @@ function Ol(e) {
|
|
|
1835
1835
|
const p = v >= -t.maxTranslate() && !t.params.loop;
|
|
1836
1836
|
let h = 0, g = t.slidesSizesGrid[0];
|
|
1837
1837
|
for (let w = 0; w < u.length; w += w < s.slidesPerGroupSkip ? 1 : s.slidesPerGroup) {
|
|
1838
|
-
const
|
|
1839
|
-
typeof u[w +
|
|
1838
|
+
const _ = w < s.slidesPerGroupSkip - 1 ? 1 : s.slidesPerGroup;
|
|
1839
|
+
typeof u[w + _] < "u" ? (p || v >= u[w] && v < u[w + _]) && (h = w, g = u[w + _] - u[w]) : (p || v >= u[w]) && (h = w, g = u[u.length - 1] - u[u.length - 2]);
|
|
1840
1840
|
}
|
|
1841
|
-
let m = null,
|
|
1842
|
-
s.rewind && (t.isBeginning ?
|
|
1843
|
-
const
|
|
1841
|
+
let m = null, y = null;
|
|
1842
|
+
s.rewind && (t.isBeginning ? y = s.virtual && s.virtual.enabled && t.virtual ? t.virtual.slides.length - 1 : t.slides.length - 1 : t.isEnd && (m = 0));
|
|
1843
|
+
const S = (v - u[h]) / g, b = h < s.slidesPerGroupSkip - 1 ? 1 : s.slidesPerGroup;
|
|
1844
1844
|
if (f > s.longSwipesMs) {
|
|
1845
1845
|
if (!s.longSwipes) {
|
|
1846
1846
|
t.slideTo(t.activeIndex);
|
|
1847
1847
|
return;
|
|
1848
1848
|
}
|
|
1849
|
-
t.swipeDirection === "next" && (
|
|
1849
|
+
t.swipeDirection === "next" && (S >= s.longSwipesRatio ? t.slideTo(s.rewind && t.isEnd ? m : h + b) : t.slideTo(h)), t.swipeDirection === "prev" && (S > 1 - s.longSwipesRatio ? t.slideTo(h + b) : y !== null && S < 0 && Math.abs(S) > s.longSwipesRatio ? t.slideTo(y) : t.slideTo(h));
|
|
1850
1850
|
} else {
|
|
1851
1851
|
if (!s.shortSwipes) {
|
|
1852
1852
|
t.slideTo(t.activeIndex);
|
|
1853
1853
|
return;
|
|
1854
1854
|
}
|
|
1855
|
-
t.navigation && (r.target === t.navigation.nextEl || r.target === t.navigation.prevEl) ? r.target === t.navigation.nextEl ? t.slideTo(h + b) : t.slideTo(h) : (t.swipeDirection === "next" && t.slideTo(m !== null ? m : h + b), t.swipeDirection === "prev" && t.slideTo(
|
|
1855
|
+
t.navigation && (r.target === t.navigation.nextEl || r.target === t.navigation.prevEl) ? r.target === t.navigation.nextEl ? t.slideTo(h + b) : t.slideTo(h) : (t.swipeDirection === "next" && t.slideTo(m !== null ? m : h + b), t.swipeDirection === "prev" && t.slideTo(y !== null ? y : h));
|
|
1856
1856
|
}
|
|
1857
1857
|
}
|
|
1858
1858
|
function Wr() {
|
|
@@ -1960,19 +1960,19 @@ function kl() {
|
|
|
1960
1960
|
const s = ke(), a = r.breakpointsBase === "window" || !r.breakpointsBase ? r.breakpointsBase : "container", l = ["window", "container"].includes(r.breakpointsBase) || !r.breakpointsBase ? e.el : s.querySelector(r.breakpointsBase), u = e.getBreakpoint(o, a, l);
|
|
1961
1961
|
if (!u || e.currentBreakpoint === u) return;
|
|
1962
1962
|
const d = (u in o ? o[u] : void 0) || e.originalParams, f = Ur(e, r), v = Ur(e, d), p = e.params.grabCursor, h = d.grabCursor, g = r.enabled;
|
|
1963
|
-
f && !v ? (i.classList.remove(`${r.containerModifierClass}grid`, `${r.containerModifierClass}grid-column`), e.emitContainerClasses()) : !f && v && (i.classList.add(`${r.containerModifierClass}grid`), (d.grid.fill && d.grid.fill === "column" || !d.grid.fill && r.grid.fill === "column") && i.classList.add(`${r.containerModifierClass}grid-column`), e.emitContainerClasses()), p && !h ? e.unsetGrabCursor() : !p && h && e.setGrabCursor(), ["navigation", "pagination", "scrollbar"].forEach((
|
|
1964
|
-
if (typeof d[
|
|
1965
|
-
const
|
|
1966
|
-
|
|
1963
|
+
f && !v ? (i.classList.remove(`${r.containerModifierClass}grid`, `${r.containerModifierClass}grid-column`), e.emitContainerClasses()) : !f && v && (i.classList.add(`${r.containerModifierClass}grid`), (d.grid.fill && d.grid.fill === "column" || !d.grid.fill && r.grid.fill === "column") && i.classList.add(`${r.containerModifierClass}grid-column`), e.emitContainerClasses()), p && !h ? e.unsetGrabCursor() : !p && h && e.setGrabCursor(), ["navigation", "pagination", "scrollbar"].forEach((_) => {
|
|
1964
|
+
if (typeof d[_] > "u") return;
|
|
1965
|
+
const T = r[_] && r[_].enabled, E = d[_] && d[_].enabled;
|
|
1966
|
+
T && !E && e[_].disable(), !T && E && e[_].enable();
|
|
1967
1967
|
});
|
|
1968
|
-
const m = d.direction && d.direction !== r.direction,
|
|
1968
|
+
const m = d.direction && d.direction !== r.direction, y = r.loop && (d.slidesPerView !== r.slidesPerView || m), S = r.loop;
|
|
1969
1969
|
m && n && e.changeDirection(), se(e.params, d);
|
|
1970
1970
|
const b = e.params.enabled, w = e.params.loop;
|
|
1971
1971
|
Object.assign(e, {
|
|
1972
1972
|
allowTouchMove: e.params.allowTouchMove,
|
|
1973
1973
|
allowSlideNext: e.params.allowSlideNext,
|
|
1974
1974
|
allowSlidePrev: e.params.allowSlidePrev
|
|
1975
|
-
}), g && !b ? e.disable() : !g && b && e.enable(), e.currentBreakpoint = u, e.emit("_beforeBreakpoint", d), n && (
|
|
1975
|
+
}), g && !b ? e.disable() : !g && b && e.enable(), e.currentBreakpoint = u, e.emit("_beforeBreakpoint", d), n && (y ? (e.loopDestroy(), e.loopCreate(t), e.updateSlides()) : !S && w ? (e.loopCreate(t), e.updateSlides()) : S && !w && e.loopDestroy()), e.emit("breakpoint", d);
|
|
1976
1976
|
}
|
|
1977
1977
|
function Gl(e, t, n) {
|
|
1978
1978
|
if (t === void 0 && (t = "window"), !e || t === "container" && !n) return;
|
|
@@ -2689,7 +2689,7 @@ function Jl(e) {
|
|
|
2689
2689
|
scrollbarEl: a,
|
|
2690
2690
|
paginationEl: l
|
|
2691
2691
|
} = e;
|
|
2692
|
-
const u = i.filter((
|
|
2692
|
+
const u = i.filter((x) => x !== "children" && x !== "direction" && x !== "wrapperClass"), {
|
|
2693
2693
|
params: c,
|
|
2694
2694
|
pagination: d,
|
|
2695
2695
|
navigation: f,
|
|
@@ -2697,19 +2697,19 @@ function Jl(e) {
|
|
|
2697
2697
|
virtual: p,
|
|
2698
2698
|
thumbs: h
|
|
2699
2699
|
} = t;
|
|
2700
|
-
let g, m,
|
|
2701
|
-
i.includes("thumbs") && r.thumbs && r.thumbs.swiper && !r.thumbs.swiper.destroyed && c.thumbs && (!c.thumbs.swiper || c.thumbs.swiper.destroyed) && (g = !0), i.includes("controller") && r.controller && r.controller.control && c.controller && !c.controller.control && (m = !0), i.includes("pagination") && r.pagination && (r.pagination.el || l) && (c.pagination || c.pagination === !1) && d && !d.el && (
|
|
2702
|
-
const
|
|
2703
|
-
t[
|
|
2700
|
+
let g, m, y, S, b, w, _, T;
|
|
2701
|
+
i.includes("thumbs") && r.thumbs && r.thumbs.swiper && !r.thumbs.swiper.destroyed && c.thumbs && (!c.thumbs.swiper || c.thumbs.swiper.destroyed) && (g = !0), i.includes("controller") && r.controller && r.controller.control && c.controller && !c.controller.control && (m = !0), i.includes("pagination") && r.pagination && (r.pagination.el || l) && (c.pagination || c.pagination === !1) && d && !d.el && (y = !0), i.includes("scrollbar") && r.scrollbar && (r.scrollbar.el || a) && (c.scrollbar || c.scrollbar === !1) && v && !v.el && (S = !0), i.includes("navigation") && r.navigation && (r.navigation.prevEl || s) && (r.navigation.nextEl || o) && (c.navigation || c.navigation === !1) && f && !f.prevEl && !f.nextEl && (b = !0);
|
|
2702
|
+
const E = (x) => {
|
|
2703
|
+
t[x] && (t[x].destroy(), x === "navigation" ? (t.isElement && (t[x].prevEl.remove(), t[x].nextEl.remove()), c[x].prevEl = void 0, c[x].nextEl = void 0, t[x].prevEl = void 0, t[x].nextEl = void 0) : (t.isElement && t[x].el.remove(), c[x].el = void 0, t[x].el = void 0));
|
|
2704
2704
|
};
|
|
2705
|
-
i.includes("loop") && t.isElement && (c.loop && !r.loop ? w = !0 : !c.loop && r.loop ?
|
|
2706
|
-
if (ze(c[
|
|
2707
|
-
Object.assign(c[
|
|
2705
|
+
i.includes("loop") && t.isElement && (c.loop && !r.loop ? w = !0 : !c.loop && r.loop ? _ = !0 : T = !0), u.forEach((x) => {
|
|
2706
|
+
if (ze(c[x]) && ze(r[x]))
|
|
2707
|
+
Object.assign(c[x], r[x]), (x === "navigation" || x === "pagination" || x === "scrollbar") && "enabled" in r[x] && !r[x].enabled && E(x);
|
|
2708
2708
|
else {
|
|
2709
|
-
const P = r[
|
|
2710
|
-
(P === !0 || P === !1) && (
|
|
2709
|
+
const P = r[x];
|
|
2710
|
+
(P === !0 || P === !1) && (x === "navigation" || x === "pagination" || x === "scrollbar") ? P === !1 && E(x) : c[x] = r[x];
|
|
2711
2711
|
}
|
|
2712
|
-
}), u.includes("controller") && !m && t.controller && t.controller.control && c.controller && c.controller.control && (t.controller.control = c.controller.control), i.includes("children") && n && p && c.virtual.enabled ? (p.slides = n, p.update(!0)) : i.includes("virtual") && p && c.virtual.enabled && (n && (p.slides = n), p.update(!0)), i.includes("children") && n && c.loop && (
|
|
2712
|
+
}), u.includes("controller") && !m && t.controller && t.controller.control && c.controller && c.controller.control && (t.controller.control = c.controller.control), i.includes("children") && n && p && c.virtual.enabled ? (p.slides = n, p.update(!0)) : i.includes("virtual") && p && c.virtual.enabled && (n && (p.slides = n), p.update(!0)), i.includes("children") && n && c.loop && (T = !0), g && h.init() && h.update(!0), m && (t.controller.control = c.controller.control), y && (t.isElement && (!l || typeof l == "string") && (l = document.createElement("div"), l.classList.add("swiper-pagination"), l.part.add("pagination"), t.el.appendChild(l)), l && (c.pagination.el = l), d.init(), d.render(), d.update()), S && (t.isElement && (!a || typeof a == "string") && (a = document.createElement("div"), a.classList.add("swiper-scrollbar"), a.part.add("scrollbar"), t.el.appendChild(a)), a && (c.scrollbar.el = a), v.init(), v.updateSize(), v.setTranslate()), b && (t.isElement && ((!o || typeof o == "string") && (o = document.createElement("div"), o.classList.add("swiper-button-next"), Gr(o, t.hostEl.constructor.nextButtonSvg), o.part.add("button-next"), t.el.appendChild(o)), (!s || typeof s == "string") && (s = document.createElement("div"), s.classList.add("swiper-button-prev"), Gr(s, t.hostEl.constructor.prevButtonSvg), s.part.add("button-prev"), t.el.appendChild(s))), o && (c.navigation.nextEl = o), s && (c.navigation.prevEl = s), f.init(), f.update()), i.includes("allowSlideNext") && (t.allowSlideNext = r.allowSlideNext), i.includes("allowSlidePrev") && (t.allowSlidePrev = r.allowSlidePrev), i.includes("direction") && t.changeDirection(r.direction, !1), (w || T) && t.loopDestroy(), (_ || T) && t.loopCreate(), t.update();
|
|
2713
2713
|
}
|
|
2714
2714
|
function Ql(e, t) {
|
|
2715
2715
|
e === void 0 && (e = {}), t === void 0 && (t = !0);
|
|
@@ -2839,9 +2839,9 @@ const qr = /* @__PURE__ */ Ce(null), ou = /* @__PURE__ */ Ce(null), Mo = /* @__P
|
|
|
2839
2839
|
onSwiper: s,
|
|
2840
2840
|
...a
|
|
2841
2841
|
} = e === void 0 ? {} : e, l = !1;
|
|
2842
|
-
const [u, c] = Z("swiper"), [d, f] = Z(null), [v, p] = Z(!1), h = B(!1), g = B(null), m = B(null),
|
|
2843
|
-
params:
|
|
2844
|
-
passedParams:
|
|
2842
|
+
const [u, c] = Z("swiper"), [d, f] = Z(null), [v, p] = Z(!1), h = B(!1), g = B(null), m = B(null), y = B(null), S = B(null), b = B(null), w = B(null), _ = B(null), T = B(null), {
|
|
2843
|
+
params: E,
|
|
2844
|
+
passedParams: x,
|
|
2845
2845
|
rest: P,
|
|
2846
2846
|
events: A
|
|
2847
2847
|
} = Ql(a), {
|
|
@@ -2850,15 +2850,15 @@ const qr = /* @__PURE__ */ Ce(null), ou = /* @__PURE__ */ Ce(null), Mo = /* @__P
|
|
|
2850
2850
|
} = ru(o), N = () => {
|
|
2851
2851
|
p(!v);
|
|
2852
2852
|
};
|
|
2853
|
-
Object.assign(
|
|
2853
|
+
Object.assign(E.on, {
|
|
2854
2854
|
_containerClasses(k, J) {
|
|
2855
2855
|
c(J);
|
|
2856
2856
|
}
|
|
2857
2857
|
});
|
|
2858
2858
|
const j = () => {
|
|
2859
|
-
Object.assign(
|
|
2859
|
+
Object.assign(E.on, A), l = !0;
|
|
2860
2860
|
const k = {
|
|
2861
|
-
...
|
|
2861
|
+
...E
|
|
2862
2862
|
};
|
|
2863
2863
|
if (delete k.wrapperClass, m.current = new lr(k), m.current.virtual && m.current.params.virtual.enabled) {
|
|
2864
2864
|
m.current.virtual.slides = I;
|
|
@@ -2891,24 +2891,24 @@ const qr = /* @__PURE__ */ Ce(null), ou = /* @__PURE__ */ Ce(null), Mo = /* @__P
|
|
|
2891
2891
|
el: g.current,
|
|
2892
2892
|
nextEl: b.current,
|
|
2893
2893
|
prevEl: w.current,
|
|
2894
|
-
paginationEl:
|
|
2895
|
-
scrollbarEl:
|
|
2894
|
+
paginationEl: _.current,
|
|
2895
|
+
scrollbarEl: T.current,
|
|
2896
2896
|
swiper: m.current
|
|
2897
|
-
},
|
|
2897
|
+
}, E), s && !m.current.destroyed && s(m.current), () => {
|
|
2898
2898
|
m.current && !m.current.destroyed && m.current.destroy(!0, !1);
|
|
2899
2899
|
};
|
|
2900
2900
|
}, []), tt(() => {
|
|
2901
2901
|
D();
|
|
2902
|
-
const k = tu(
|
|
2903
|
-
return
|
|
2902
|
+
const k = tu(x, y.current, I, S.current, (J) => J.key);
|
|
2903
|
+
return y.current = x, S.current = I, k.length && m.current && !m.current.destroyed && Jl({
|
|
2904
2904
|
swiper: m.current,
|
|
2905
2905
|
slides: I,
|
|
2906
|
-
passedParams:
|
|
2906
|
+
passedParams: x,
|
|
2907
2907
|
changedParams: k,
|
|
2908
2908
|
nextEl: b.current,
|
|
2909
2909
|
prevEl: w.current,
|
|
2910
|
-
scrollbarEl:
|
|
2911
|
-
paginationEl:
|
|
2910
|
+
scrollbarEl: T.current,
|
|
2911
|
+
paginationEl: _.current
|
|
2912
2912
|
}), () => {
|
|
2913
2913
|
G();
|
|
2914
2914
|
};
|
|
@@ -2916,7 +2916,7 @@ const qr = /* @__PURE__ */ Ce(null), ou = /* @__PURE__ */ Ce(null), Mo = /* @__P
|
|
|
2916
2916
|
nu(m.current);
|
|
2917
2917
|
}, [d]);
|
|
2918
2918
|
function H() {
|
|
2919
|
-
return
|
|
2919
|
+
return E.virtual ? iu(m.current, I, d) : I.map((k, J) => /* @__PURE__ */ Y.cloneElement(k, {
|
|
2920
2920
|
swiper: m.current,
|
|
2921
2921
|
swiperSlideIndex: J
|
|
2922
2922
|
}));
|
|
@@ -2927,18 +2927,18 @@ const qr = /* @__PURE__ */ Ce(null), ou = /* @__PURE__ */ Ce(null), Mo = /* @__P
|
|
|
2927
2927
|
}, P), /* @__PURE__ */ Y.createElement(ou.Provider, {
|
|
2928
2928
|
value: m.current
|
|
2929
2929
|
}, L["container-start"], /* @__PURE__ */ Y.createElement(i, {
|
|
2930
|
-
className: Zl(
|
|
2931
|
-
}, L["wrapper-start"], H(), L["wrapper-end"]), xo(
|
|
2930
|
+
className: Zl(E.wrapperClass)
|
|
2931
|
+
}, L["wrapper-start"], H(), L["wrapper-end"]), xo(E) && /* @__PURE__ */ Y.createElement(Y.Fragment, null, /* @__PURE__ */ Y.createElement("div", {
|
|
2932
2932
|
ref: w,
|
|
2933
2933
|
className: "swiper-button-prev"
|
|
2934
2934
|
}), /* @__PURE__ */ Y.createElement("div", {
|
|
2935
2935
|
ref: b,
|
|
2936
2936
|
className: "swiper-button-next"
|
|
2937
|
-
})), Po(
|
|
2938
|
-
ref:
|
|
2937
|
+
})), Po(E) && /* @__PURE__ */ Y.createElement("div", {
|
|
2938
|
+
ref: T,
|
|
2939
2939
|
className: "swiper-scrollbar"
|
|
2940
|
-
}), To(
|
|
2941
|
-
ref:
|
|
2940
|
+
}), To(E) && /* @__PURE__ */ Y.createElement("div", {
|
|
2941
|
+
ref: _,
|
|
2942
2942
|
className: "swiper-pagination"
|
|
2943
2943
|
}), L["container-end"]));
|
|
2944
2944
|
});
|
|
@@ -2956,8 +2956,8 @@ const Ao = /* @__PURE__ */ sr(function(e, t) {
|
|
|
2956
2956
|
...c
|
|
2957
2957
|
} = e === void 0 ? {} : e;
|
|
2958
2958
|
const d = B(null), [f, v] = Z("swiper-slide"), [p, h] = Z(!1);
|
|
2959
|
-
function g(b, w,
|
|
2960
|
-
w === d.current && v(
|
|
2959
|
+
function g(b, w, _) {
|
|
2960
|
+
w === d.current && v(_);
|
|
2961
2961
|
}
|
|
2962
2962
|
tt(() => {
|
|
2963
2963
|
if (typeof u < "u" && (d.current.swiperSlideIndex = u), t && (t.current = d.current), !(!d.current || !o)) {
|
|
@@ -2977,24 +2977,24 @@ const Ao = /* @__PURE__ */ sr(function(e, t) {
|
|
|
2977
2977
|
isVisible: f.indexOf("swiper-slide-visible") >= 0,
|
|
2978
2978
|
isPrev: f.indexOf("swiper-slide-prev") >= 0,
|
|
2979
2979
|
isNext: f.indexOf("swiper-slide-next") >= 0
|
|
2980
|
-
},
|
|
2980
|
+
}, y = () => typeof r == "function" ? r(m) : r, S = () => {
|
|
2981
2981
|
h(!0);
|
|
2982
2982
|
};
|
|
2983
2983
|
return /* @__PURE__ */ Y.createElement(n, Ht({
|
|
2984
2984
|
ref: d,
|
|
2985
2985
|
className: Eo(`${f}${i ? ` ${i}` : ""}`),
|
|
2986
2986
|
"data-swiper-slide-index": l,
|
|
2987
|
-
onLoad:
|
|
2987
|
+
onLoad: S
|
|
2988
2988
|
}, c), s && /* @__PURE__ */ Y.createElement(qr.Provider, {
|
|
2989
2989
|
value: m
|
|
2990
2990
|
}, /* @__PURE__ */ Y.createElement("div", {
|
|
2991
2991
|
className: "swiper-zoom-container",
|
|
2992
2992
|
"data-swiper-zoom": typeof s == "number" ? s : void 0
|
|
2993
|
-
},
|
|
2993
|
+
}, y(), a && !p && /* @__PURE__ */ Y.createElement("div", {
|
|
2994
2994
|
className: "swiper-lazy-preloader"
|
|
2995
2995
|
}))), !s && /* @__PURE__ */ Y.createElement(qr.Provider, {
|
|
2996
2996
|
value: m
|
|
2997
|
-
},
|
|
2997
|
+
}, y(), a && !p && /* @__PURE__ */ Y.createElement("div", {
|
|
2998
2998
|
className: "swiper-lazy-preloader"
|
|
2999
2999
|
})));
|
|
3000
3000
|
});
|
|
@@ -3066,10 +3066,10 @@ function au(e) {
|
|
|
3066
3066
|
nextEl: h,
|
|
3067
3067
|
prevEl: g
|
|
3068
3068
|
}), h = be(h), g = be(g);
|
|
3069
|
-
const m = (
|
|
3070
|
-
|
|
3069
|
+
const m = (y, S) => {
|
|
3070
|
+
y && y.addEventListener("click", S === "next" ? u : l), !t.enabled && y && y.classList.add(...p.lockClass.split(" "));
|
|
3071
3071
|
};
|
|
3072
|
-
h.forEach((
|
|
3072
|
+
h.forEach((y) => m(y, "next")), g.forEach((y) => m(y, "prev"));
|
|
3073
3073
|
}
|
|
3074
3074
|
function d() {
|
|
3075
3075
|
let {
|
|
@@ -3077,8 +3077,8 @@ function au(e) {
|
|
|
3077
3077
|
prevEl: h
|
|
3078
3078
|
} = t.navigation;
|
|
3079
3079
|
p = be(p), h = be(h);
|
|
3080
|
-
const g = (m,
|
|
3081
|
-
m.removeEventListener("click",
|
|
3080
|
+
const g = (m, y) => {
|
|
3081
|
+
m.removeEventListener("click", y === "next" ? u : l), m.classList.remove(...t.params.navigation.disabledClass.split(" "));
|
|
3082
3082
|
};
|
|
3083
3083
|
p.forEach((m) => g(m, "next")), h.forEach((m) => g(m, "prev"));
|
|
3084
3084
|
}
|
|
@@ -3104,14 +3104,14 @@ function au(e) {
|
|
|
3104
3104
|
prevEl: m
|
|
3105
3105
|
} = t.navigation;
|
|
3106
3106
|
g = be(g), m = be(m);
|
|
3107
|
-
const
|
|
3108
|
-
let
|
|
3109
|
-
if (t.isElement && !
|
|
3107
|
+
const y = h.target;
|
|
3108
|
+
let S = m.includes(y) || g.includes(y);
|
|
3109
|
+
if (t.isElement && !S) {
|
|
3110
3110
|
const b = h.path || h.composedPath && h.composedPath();
|
|
3111
|
-
b && (
|
|
3111
|
+
b && (S = b.find((w) => g.includes(w) || m.includes(w)));
|
|
3112
3112
|
}
|
|
3113
|
-
if (t.params.navigation.hideOnClick && !
|
|
3114
|
-
if (t.pagination && t.params.pagination && t.params.pagination.clickable && (t.pagination.el ===
|
|
3113
|
+
if (t.params.navigation.hideOnClick && !S) {
|
|
3114
|
+
if (t.pagination && t.params.pagination && t.params.pagination.clickable && (t.pagination.el === y || t.pagination.el.contains(y))) return;
|
|
3115
3115
|
let b;
|
|
3116
3116
|
g.length ? b = g[0].classList.contains(t.params.navigation.hiddenClass) : m.length && (b = m[0].classList.contains(t.params.navigation.hiddenClass)), i(b === !0 ? "navigationShow" : "navigationHide"), [...g, ...m].filter((w) => !!w).forEach((w) => w.classList.toggle(t.params.navigation.hiddenClass));
|
|
3117
3117
|
}
|
|
@@ -3197,30 +3197,30 @@ function uu(e) {
|
|
|
3197
3197
|
rtlTranslate: v,
|
|
3198
3198
|
size: p,
|
|
3199
3199
|
browser: h
|
|
3200
|
-
} = t, g = ka(t), m = t.params.cubeEffect,
|
|
3200
|
+
} = t, g = ka(t), m = t.params.cubeEffect, y = t.isHorizontal(), S = t.virtual && t.params.virtual.enabled;
|
|
3201
3201
|
let b = 0, w;
|
|
3202
|
-
m.shadow && (
|
|
3203
|
-
for (let
|
|
3204
|
-
const
|
|
3205
|
-
let
|
|
3206
|
-
|
|
3207
|
-
let P =
|
|
3202
|
+
m.shadow && (y ? (w = t.wrapperEl.querySelector(".swiper-cube-shadow"), w || (w = Le("div", "swiper-cube-shadow"), t.wrapperEl.append(w)), w.style.height = `${d}px`) : (w = l.querySelector(".swiper-cube-shadow"), w || (w = Le("div", "swiper-cube-shadow"), l.append(w))));
|
|
3203
|
+
for (let T = 0; T < c.length; T += 1) {
|
|
3204
|
+
const E = c[T];
|
|
3205
|
+
let x = T;
|
|
3206
|
+
S && (x = parseInt(E.getAttribute("data-swiper-slide-index"), 10));
|
|
3207
|
+
let P = x * 90, A = Math.floor(P / 360);
|
|
3208
3208
|
v && (P = -P, A = Math.floor(-P / 360));
|
|
3209
|
-
const I = Math.max(Math.min(
|
|
3209
|
+
const I = Math.max(Math.min(E.progress, 1), -1);
|
|
3210
3210
|
let L = 0, N = 0, j = 0;
|
|
3211
|
-
|
|
3212
|
-
const D = `rotateX(${g(
|
|
3213
|
-
I <= 1 && I > -1 && (b =
|
|
3211
|
+
x % 4 === 0 ? (L = -A * 4 * p, j = 0) : (x - 1) % 4 === 0 ? (L = 0, j = -A * 4 * p) : (x - 2) % 4 === 0 ? (L = p + A * 4 * p, j = p) : (x - 3) % 4 === 0 && (L = -p, j = 3 * p + p * 4 * A), v && (L = -L), y || (N = L, L = 0);
|
|
3212
|
+
const D = `rotateX(${g(y ? 0 : -P)}deg) rotateY(${g(y ? P : 0)}deg) translate3d(${L}px, ${N}px, ${j}px)`;
|
|
3213
|
+
I <= 1 && I > -1 && (b = x * 90 + I * 90, v && (b = -x * 90 - I * 90)), E.style.transform = D, m.slideShadows && i(E, I, y);
|
|
3214
3214
|
}
|
|
3215
3215
|
if (u.style.transformOrigin = `50% 50% -${p / 2}px`, u.style["-webkit-transform-origin"] = `50% 50% -${p / 2}px`, m.shadow)
|
|
3216
|
-
if (
|
|
3216
|
+
if (y)
|
|
3217
3217
|
w.style.transform = `translate3d(0px, ${d / 2 + m.shadowOffset}px, ${-d / 2}px) rotateX(89.99deg) rotateZ(0deg) scale(${m.shadowScale})`;
|
|
3218
3218
|
else {
|
|
3219
|
-
const
|
|
3220
|
-
w.style.transform = `scale3d(${
|
|
3219
|
+
const T = Math.abs(b) - Math.floor(Math.abs(b) / 90) * 90, E = 1.5 - (Math.sin(T * 2 * Math.PI / 360) / 2 + Math.cos(T * 2 * Math.PI / 360) / 2), x = m.shadowScale, P = m.shadowScale / E, A = m.shadowOffset;
|
|
3220
|
+
w.style.transform = `scale3d(${x}, 1, ${P}) translate3d(0px, ${f / 2 + A}px, ${-f / 2 / P}px) rotateX(-89.99deg)`;
|
|
3221
3221
|
}
|
|
3222
|
-
const
|
|
3223
|
-
u.style.transform = `translate3d(0px,0,${
|
|
3222
|
+
const _ = (h.isSafari || h.isWebView) && h.needPerspectiveFix ? -p / 2 : 0;
|
|
3223
|
+
u.style.transform = `translate3d(0px,0,${_}px) rotateX(${g(t.isHorizontal() ? 0 : b)}deg) rotateY(${g(t.isHorizontal() ? -b : 0)}deg)`, u.style.setProperty("--swiper-cube-translate-z", `${_}px`);
|
|
3224
3224
|
},
|
|
3225
3225
|
setTransition: (l) => {
|
|
3226
3226
|
const {
|
|
@@ -3289,16 +3289,16 @@ class Cu {
|
|
|
3289
3289
|
static fromRaw(t) {
|
|
3290
3290
|
var s, a, l;
|
|
3291
3291
|
const n = ((a = (s = t == null ? void 0 : t.stakes) == null ? void 0 : s.find((u) => u.isEnabled)) == null ? void 0 : a.preciseValue) ?? 0, r = (l = t == null ? void 0 : t.selections) == null ? void 0 : l.map((u) => {
|
|
3292
|
-
var g, m,
|
|
3293
|
-
const c = parseFloat((m = (g = u == null ? void 0 : u.odd) == null ? void 0 : g.price) == null ? void 0 : m.toFixed(2)), d = Eu((
|
|
3292
|
+
var g, m, y, S, b, w;
|
|
3293
|
+
const c = parseFloat((m = (g = u == null ? void 0 : u.odd) == null ? void 0 : g.price) == null ? void 0 : m.toFixed(2)), d = Eu((y = u == null ? void 0 : u.event) == null ? void 0 : y.startDate), f = (b = (S = u == null ? void 0 : u.odd) == null ? void 0 : S.offers) == null ? void 0 : b.find((_) => _.type === 0), p = u.market.name, h = (w = u == null ? void 0 : u.bbSelections) == null ? void 0 : w.map((_) => {
|
|
3294
3294
|
var P, A, I, L, N;
|
|
3295
|
-
const
|
|
3295
|
+
const T = (P = _ == null ? void 0 : _.odd) == null ? void 0 : P.price, E = parseFloat(T.toFixed(2)), x = (I = (A = _ == null ? void 0 : _.odd) == null ? void 0 : A.offers) == null ? void 0 : I.find((j) => j.type === 0);
|
|
3296
3296
|
return {
|
|
3297
|
-
marketName: (L =
|
|
3298
|
-
name: (N =
|
|
3299
|
-
cuota:
|
|
3300
|
-
hasPA: !!
|
|
3301
|
-
paParam:
|
|
3297
|
+
marketName: (L = _ == null ? void 0 : _.market) == null ? void 0 : L.name,
|
|
3298
|
+
name: (N = _ == null ? void 0 : _.odd) == null ? void 0 : N.name,
|
|
3299
|
+
cuota: E,
|
|
3300
|
+
hasPA: !!x,
|
|
3301
|
+
paParam: x == null ? void 0 : x.parameter
|
|
3302
3302
|
};
|
|
3303
3303
|
});
|
|
3304
3304
|
return {
|
|
@@ -3336,21 +3336,21 @@ const _u = "_BetSlip_1ysis_1", Mu = "_BetSlip_Title_1ysis_14", Au = "_SelectionI
|
|
|
3336
3336
|
var t, n;
|
|
3337
3337
|
return /* @__PURE__ */ U("div", { className: oe.SelectionItem, children: [
|
|
3338
3338
|
/* @__PURE__ */ U("div", { className: oe.SelectionItemGrid, children: [
|
|
3339
|
-
/* @__PURE__ */
|
|
3340
|
-
/* @__PURE__ */
|
|
3339
|
+
/* @__PURE__ */ C("div", { className: oe.SelectionItem_name, children: e != null && e.subSelections ? "Crear Apuesta" : e.name }),
|
|
3340
|
+
/* @__PURE__ */ C("div", { className: oe.SelectionItem_sc, children: e.cuota.toFixed(2) })
|
|
3341
3341
|
] }),
|
|
3342
|
-
e != null && e.subSelections ? null : /* @__PURE__ */
|
|
3343
|
-
/* @__PURE__ */
|
|
3344
|
-
e.hasPA && /* @__PURE__ */
|
|
3342
|
+
e != null && e.subSelections ? null : /* @__PURE__ */ C("div", { className: oe.SelectionItemGrid, children: /* @__PURE__ */ U("div", { className: oe.SelectionItem_marketName, children: [
|
|
3343
|
+
/* @__PURE__ */ C("div", { children: e.marketName }),
|
|
3344
|
+
e.hasPA && /* @__PURE__ */ C("div", { className: oe.SelectionItem_hasPA, children: "PA" })
|
|
3345
3345
|
] }) }),
|
|
3346
3346
|
/* @__PURE__ */ U("div", { className: oe.SelectionItemGrid, children: [
|
|
3347
|
-
/* @__PURE__ */
|
|
3348
|
-
/* @__PURE__ */
|
|
3347
|
+
/* @__PURE__ */ C("div", { className: oe.SelectionItem_event, children: e.event }),
|
|
3348
|
+
/* @__PURE__ */ C("div", { className: oe.SelectionItem_fechahora, children: e.fechaHora })
|
|
3349
3349
|
] }),
|
|
3350
|
-
e != null && e.subSelections && ((t = e == null ? void 0 : e.subSelections) == null ? void 0 : t.length) > 0 ? /* @__PURE__ */
|
|
3351
|
-
/* @__PURE__ */
|
|
3352
|
-
/* @__PURE__ */
|
|
3353
|
-
] }, i)) }) : /* @__PURE__ */
|
|
3350
|
+
e != null && e.subSelections && ((t = e == null ? void 0 : e.subSelections) == null ? void 0 : t.length) > 0 ? /* @__PURE__ */ C("div", { className: oe.SelectionItem__Wrap, children: (n = e.subSelections) == null ? void 0 : n.map((r, i) => /* @__PURE__ */ U("div", { className: oe.SelectionItem__BB, children: [
|
|
3351
|
+
/* @__PURE__ */ C("div", { className: oe.SelectionItem__BB__mn, children: r == null ? void 0 : r.marketName }),
|
|
3352
|
+
/* @__PURE__ */ C("div", { children: r == null ? void 0 : r.name })
|
|
3353
|
+
] }, i)) }) : /* @__PURE__ */ C(jt, {})
|
|
3354
3354
|
] });
|
|
3355
3355
|
}, ku = "_PulseButton_1x1ir_1", Gu = "_BetSlip__NextIcon_1x1ir_21", Yr = {
|
|
3356
3356
|
PulseButton: ku,
|
|
@@ -3362,7 +3362,7 @@ const _u = "_BetSlip_1ysis_1", Mu = "_BetSlip_Title_1ysis_14", Au = "_SelectionI
|
|
|
3362
3362
|
height: t = "100%",
|
|
3363
3363
|
fill: n = "white",
|
|
3364
3364
|
...r
|
|
3365
|
-
}) => /* @__PURE__ */
|
|
3365
|
+
}) => /* @__PURE__ */ C(
|
|
3366
3366
|
"svg",
|
|
3367
3367
|
{
|
|
3368
3368
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -3370,7 +3370,7 @@ const _u = "_BetSlip_1ysis_1", Mu = "_BetSlip_Title_1ysis_14", Au = "_SelectionI
|
|
|
3370
3370
|
height: t,
|
|
3371
3371
|
fill: n,
|
|
3372
3372
|
...r,
|
|
3373
|
-
children: /* @__PURE__ */
|
|
3373
|
+
children: /* @__PURE__ */ C(
|
|
3374
3374
|
"path",
|
|
3375
3375
|
{
|
|
3376
3376
|
fill: "#fff",
|
|
@@ -3378,54 +3378,77 @@ const _u = "_BetSlip_1ysis_1", Mu = "_BetSlip_Title_1ysis_14", Au = "_SelectionI
|
|
|
3378
3378
|
}
|
|
3379
3379
|
)
|
|
3380
3380
|
}
|
|
3381
|
-
), Io = ({ children: e,
|
|
3382
|
-
|
|
3383
|
-
|
|
3384
|
-
|
|
3385
|
-
|
|
3381
|
+
), Io = ({ children: e, onClick: t }) => /* @__PURE__ */ C("div", { className: Yr.PulseButton, children: /* @__PURE__ */ U(
|
|
3382
|
+
"a",
|
|
3383
|
+
{
|
|
3384
|
+
className: Hu.Button,
|
|
3385
|
+
onClick: (n) => {
|
|
3386
|
+
n.preventDefault(), n.stopPropagation(), t();
|
|
3387
|
+
},
|
|
3388
|
+
children: [
|
|
3389
|
+
e,
|
|
3390
|
+
/* @__PURE__ */ C("div", { className: Yr.BetSlip__NextIcon, children: /* @__PURE__ */ C(Wu, {}) })
|
|
3391
|
+
]
|
|
3392
|
+
}
|
|
3393
|
+
) }), Uu = ({
|
|
3394
|
+
slip: e,
|
|
3395
|
+
title: t,
|
|
3396
|
+
onButtonStoryClick: n
|
|
3397
|
+
}) => {
|
|
3398
|
+
var r;
|
|
3386
3399
|
return /* @__PURE__ */ U("div", { className: _t.BetSlip, children: [
|
|
3387
3400
|
/* @__PURE__ */ U(
|
|
3388
3401
|
"div",
|
|
3389
3402
|
{
|
|
3390
3403
|
className: Se(_t.SelectionItemWrap),
|
|
3391
|
-
onWheel: (
|
|
3392
|
-
|
|
3404
|
+
onWheel: (i) => {
|
|
3405
|
+
i.stopPropagation();
|
|
3393
3406
|
},
|
|
3394
|
-
onPointerDown: (
|
|
3395
|
-
|
|
3407
|
+
onPointerDown: (i) => {
|
|
3408
|
+
i.stopPropagation();
|
|
3396
3409
|
},
|
|
3397
3410
|
children: [
|
|
3398
|
-
t ? /* @__PURE__ */
|
|
3399
|
-
(
|
|
3411
|
+
t ? /* @__PURE__ */ C("div", { className: _t.BetSlip_Title, children: t }) : null,
|
|
3412
|
+
(r = e == null ? void 0 : e.selections) == null ? void 0 : r.map((i, o) => /* @__PURE__ */ C(ju, { selection: i }, `${Date.now()}-${o}`))
|
|
3400
3413
|
]
|
|
3401
3414
|
}
|
|
3402
3415
|
),
|
|
3403
|
-
/* @__PURE__ */
|
|
3404
|
-
Io,
|
|
3405
|
-
{
|
|
3406
|
-
href: "https://www.apuestatotal.com/apuestas-deportivas/?reservationCode=HHHH",
|
|
3407
|
-
children: e == null ? void 0 : e.cuotaTotal
|
|
3408
|
-
}
|
|
3409
|
-
) })
|
|
3416
|
+
/* @__PURE__ */ C("div", { className: Se(_t.BetSlip_ButtonWrap), children: /* @__PURE__ */ C(Io, { onClick: n, children: e == null ? void 0 : e.cuotaTotal }) })
|
|
3410
3417
|
] });
|
|
3411
|
-
}, qu = ({
|
|
3412
|
-
|
|
3413
|
-
|
|
3414
|
-
}
|
|
3415
|
-
|
|
3416
|
-
|
|
3418
|
+
}, qu = ({
|
|
3419
|
+
story: e,
|
|
3420
|
+
onButtonStoryClick: t
|
|
3421
|
+
}) => {
|
|
3422
|
+
let n = Xr;
|
|
3423
|
+
return (e == null ? void 0 : e.type) == "promo" && (n = Xr), (e == null ? void 0 : e.type) == "betting" && (n = Yu), /* @__PURE__ */ C(
|
|
3424
|
+
n,
|
|
3425
|
+
{
|
|
3426
|
+
story: e,
|
|
3427
|
+
onButtonStoryClick: t
|
|
3428
|
+
}
|
|
3429
|
+
);
|
|
3430
|
+
}, Xr = ({
|
|
3431
|
+
story: e,
|
|
3432
|
+
onButtonStoryClick: t
|
|
3433
|
+
}) => /* @__PURE__ */ U("div", { className: Se(nt.story), children: [
|
|
3434
|
+
/* @__PURE__ */ C("img", { src: e == null ? void 0 : e.image, alt: "" }),
|
|
3435
|
+
e != null && e.btn_text && (e != null && e.btn_url) ? /* @__PURE__ */ C("div", { className: Se(nt.BetSlip_Wrapper), children: /* @__PURE__ */ C("div", { className: nt.BetSlip_ButtonWrap, children: /* @__PURE__ */ U(Io, { onClick: e, children: [
|
|
3417
3436
|
" ",
|
|
3418
3437
|
e == null ? void 0 : e.btn_text
|
|
3419
3438
|
] }) }) }) : null
|
|
3420
|
-
] }), Yu = ({
|
|
3421
|
-
|
|
3439
|
+
] }), Yu = ({
|
|
3440
|
+
story: e,
|
|
3441
|
+
onButtonStoryClick: t
|
|
3442
|
+
}) => {
|
|
3443
|
+
const n = JSON.parse((e == null ? void 0 : e.coupon_result) ?? "{}");
|
|
3422
3444
|
return /* @__PURE__ */ U("div", { className: Se(nt.story), children: [
|
|
3423
|
-
/* @__PURE__ */
|
|
3424
|
-
/* @__PURE__ */
|
|
3445
|
+
/* @__PURE__ */ C("img", { src: e == null ? void 0 : e.image, alt: "" }),
|
|
3446
|
+
/* @__PURE__ */ C("div", { className: nt.BetSlip_Wrapper, children: /* @__PURE__ */ C(
|
|
3425
3447
|
Uu,
|
|
3426
3448
|
{
|
|
3427
|
-
slip: Cu.fromRaw(
|
|
3428
|
-
title: e == null ? void 0 : e.coupon_title
|
|
3449
|
+
slip: Cu.fromRaw(n),
|
|
3450
|
+
title: e == null ? void 0 : e.coupon_title,
|
|
3451
|
+
onButtonStoryClick: () => t == null ? void 0 : t(e)
|
|
3429
3452
|
}
|
|
3430
3453
|
) })
|
|
3431
3454
|
] });
|
|
@@ -3439,7 +3462,7 @@ const _u = "_BetSlip_1ysis_1", Mu = "_BetSlip_Title_1ysis_14", Au = "_SelectionI
|
|
|
3439
3462
|
color: n,
|
|
3440
3463
|
image: r
|
|
3441
3464
|
}) => /* @__PURE__ */ U("div", { className: bn.StoryHeaderPlayer, children: [
|
|
3442
|
-
/* @__PURE__ */
|
|
3465
|
+
/* @__PURE__ */ C(
|
|
3443
3466
|
fo,
|
|
3444
3467
|
{
|
|
3445
3468
|
className: bn.StoryHeaderPlayer__ProfileStory,
|
|
@@ -3448,7 +3471,7 @@ const _u = "_BetSlip_1ysis_1", Mu = "_BetSlip_Title_1ysis_14", Au = "_SelectionI
|
|
|
3448
3471
|
image: r
|
|
3449
3472
|
}
|
|
3450
3473
|
),
|
|
3451
|
-
/* @__PURE__ */
|
|
3474
|
+
/* @__PURE__ */ C("div", { className: bn.StoryHeaderPlayer__title, children: e == null ? void 0 : e.title })
|
|
3452
3475
|
] }), Qu = ({
|
|
3453
3476
|
story: e,
|
|
3454
3477
|
onChangeStory: t,
|
|
@@ -3456,83 +3479,90 @@ const _u = "_BetSlip_1ysis_1", Mu = "_BetSlip_Title_1ysis_14", Au = "_SelectionI
|
|
|
3456
3479
|
onLeft: r,
|
|
3457
3480
|
onRight: i,
|
|
3458
3481
|
play: o,
|
|
3459
|
-
initialIndex: s
|
|
3482
|
+
initialIndex: s,
|
|
3483
|
+
onButtonStoryClick: a
|
|
3460
3484
|
}) => {
|
|
3461
|
-
var
|
|
3462
|
-
const [
|
|
3463
|
-
const
|
|
3464
|
-
|
|
3465
|
-
},
|
|
3466
|
-
|
|
3467
|
-
|
|
3485
|
+
var w, _;
|
|
3486
|
+
const [l, u] = Z(!1), c = B(), d = B(!1), [f, v] = Z(s), p = B(null), h = (T) => {
|
|
3487
|
+
const E = p.current.getBoundingClientRect();
|
|
3488
|
+
T.clientX - E.left < E.width / 2 ? f == 0 ? r == null || r(-1) : (r == null || r(f - 1), v(f - 1)) : b();
|
|
3489
|
+
}, g = B(0), m = (T) => {
|
|
3490
|
+
g.current = T.clientX, u(!0), d.current = !1, c.current = window.setTimeout(() => {
|
|
3491
|
+
d.current = !0;
|
|
3468
3492
|
}, 200);
|
|
3469
|
-
},
|
|
3470
|
-
|
|
3471
|
-
}, S = (
|
|
3472
|
-
if (
|
|
3473
|
-
|
|
3493
|
+
}, y = (T) => {
|
|
3494
|
+
u(!1), clearTimeout(c.current);
|
|
3495
|
+
}, S = (T) => {
|
|
3496
|
+
if (d.current) {
|
|
3497
|
+
T.preventDefault();
|
|
3474
3498
|
return;
|
|
3475
3499
|
}
|
|
3476
|
-
|
|
3477
|
-
},
|
|
3478
|
-
var
|
|
3479
|
-
|
|
3500
|
+
h(T);
|
|
3501
|
+
}, b = () => {
|
|
3502
|
+
var T;
|
|
3503
|
+
f >= ((T = e == null ? void 0 : e.stories) == null ? void 0 : T.length) - 1 ? (i == null || i(-1), n == null || n(f)) : (i == null || i(f), v(f + 1));
|
|
3480
3504
|
};
|
|
3481
3505
|
return F(() => {
|
|
3482
|
-
o && (t == null || t(
|
|
3483
|
-
}, [
|
|
3484
|
-
if (!o ||
|
|
3485
|
-
const
|
|
3486
|
-
|
|
3506
|
+
o && (t == null || t(f, e == null ? void 0 : e.stories[f]));
|
|
3507
|
+
}, [f, o]), F(() => {
|
|
3508
|
+
if (!o || l) return;
|
|
3509
|
+
const T = setTimeout(() => {
|
|
3510
|
+
b(), clearTimeout(T);
|
|
3487
3511
|
}, 7e3);
|
|
3488
3512
|
return () => {
|
|
3489
|
-
clearTimeout(
|
|
3513
|
+
clearTimeout(T);
|
|
3490
3514
|
};
|
|
3491
|
-
}, [
|
|
3515
|
+
}, [f, o, l]), /* @__PURE__ */ U(
|
|
3492
3516
|
"div",
|
|
3493
3517
|
{
|
|
3494
3518
|
className: _e.CardStory,
|
|
3495
3519
|
onClick: S,
|
|
3496
|
-
ref:
|
|
3497
|
-
onPointerDown:
|
|
3498
|
-
onPointerUp:
|
|
3499
|
-
onPointerLeave:
|
|
3520
|
+
ref: p,
|
|
3521
|
+
onPointerDown: m,
|
|
3522
|
+
onPointerUp: y,
|
|
3523
|
+
onPointerLeave: y,
|
|
3500
3524
|
children: [
|
|
3501
|
-
o && /* @__PURE__ */
|
|
3502
|
-
const
|
|
3503
|
-
return /* @__PURE__ */
|
|
3525
|
+
o && /* @__PURE__ */ C("div", { className: _e.CardStory_ProgressRoot, children: (w = e == null ? void 0 : e.stories) == null ? void 0 : w.map((T, E) => {
|
|
3526
|
+
const x = f > E, P = f < E, A = f == E;
|
|
3527
|
+
return /* @__PURE__ */ C(
|
|
3504
3528
|
"div",
|
|
3505
3529
|
{
|
|
3506
3530
|
className: Se(_e.CardStory_ProgressRoot_Track, {
|
|
3507
|
-
[_e.ProgressAnimate]:
|
|
3508
|
-
[_e.Complete]:
|
|
3509
|
-
[_e.NoComplete]:
|
|
3510
|
-
[_e.Pause]:
|
|
3531
|
+
[_e.ProgressAnimate]: A,
|
|
3532
|
+
[_e.Complete]: x,
|
|
3533
|
+
[_e.NoComplete]: P,
|
|
3534
|
+
[_e.Pause]: l
|
|
3511
3535
|
})
|
|
3512
3536
|
},
|
|
3513
|
-
|
|
3537
|
+
T == null ? void 0 : T.id
|
|
3514
3538
|
);
|
|
3515
3539
|
}) }),
|
|
3516
|
-
(
|
|
3540
|
+
(_ = e == null ? void 0 : e.stories) == null ? void 0 : _.map((T, E) => f != E ? null : /* @__PURE__ */ U(
|
|
3517
3541
|
"div",
|
|
3518
3542
|
{
|
|
3519
|
-
"data-card-story-index":
|
|
3543
|
+
"data-card-story-index": E,
|
|
3520
3544
|
className: Se(_e.Story, {
|
|
3521
|
-
active:
|
|
3545
|
+
active: f == E
|
|
3522
3546
|
}),
|
|
3523
3547
|
children: [
|
|
3524
|
-
/* @__PURE__ */
|
|
3525
|
-
|
|
3548
|
+
/* @__PURE__ */ C(
|
|
3549
|
+
qu,
|
|
3550
|
+
{
|
|
3551
|
+
story: T,
|
|
3552
|
+
onButtonStoryClick: a
|
|
3553
|
+
}
|
|
3554
|
+
),
|
|
3555
|
+
/* @__PURE__ */ C(
|
|
3526
3556
|
Ju,
|
|
3527
3557
|
{
|
|
3528
3558
|
color: e == null ? void 0 : e.color,
|
|
3529
3559
|
image: e == null ? void 0 : e.avatar,
|
|
3530
|
-
story:
|
|
3560
|
+
story: T
|
|
3531
3561
|
}
|
|
3532
3562
|
)
|
|
3533
3563
|
]
|
|
3534
3564
|
},
|
|
3535
|
-
|
|
3565
|
+
T == null ? void 0 : T.id
|
|
3536
3566
|
))
|
|
3537
3567
|
]
|
|
3538
3568
|
}
|
|
@@ -4408,17 +4438,17 @@ function td(e, t, n, r) {
|
|
|
4408
4438
|
if (g) {
|
|
4409
4439
|
var m = g.transitionEnd;
|
|
4410
4440
|
g.transition;
|
|
4411
|
-
var
|
|
4412
|
-
for (var
|
|
4413
|
-
var b = S
|
|
4441
|
+
var y = ue(g, ["transitionEnd", "transition"]);
|
|
4442
|
+
for (var S in y) {
|
|
4443
|
+
var b = y[S];
|
|
4414
4444
|
if (Array.isArray(b)) {
|
|
4415
4445
|
var w = f ? b.length - 1 : 0;
|
|
4416
4446
|
b = b[w];
|
|
4417
4447
|
}
|
|
4418
|
-
b !== null && (i[
|
|
4448
|
+
b !== null && (i[S] = b);
|
|
4419
4449
|
}
|
|
4420
|
-
for (var
|
|
4421
|
-
i[
|
|
4450
|
+
for (var S in m)
|
|
4451
|
+
i[S] = m[S];
|
|
4422
4452
|
}
|
|
4423
4453
|
});
|
|
4424
4454
|
}
|
|
@@ -4657,23 +4687,23 @@ function gr(e) {
|
|
|
4657
4687
|
const s = { done: !1, value: t };
|
|
4658
4688
|
let { stiffness: a, damping: l, mass: u, velocity: c, duration: d, isResolvedFromDuration: f } = Pd(o), v = li, p = li;
|
|
4659
4689
|
function h() {
|
|
4660
|
-
const g = c ? -(c / 1e3) : 0, m = n - t,
|
|
4661
|
-
if (i === void 0 && (i = Math.min(Math.abs(n - t) / 100, 0.4)),
|
|
4662
|
-
const b = Un(
|
|
4690
|
+
const g = c ? -(c / 1e3) : 0, m = n - t, y = l / (2 * Math.sqrt(a * u)), S = Math.sqrt(a / u) / 1e3;
|
|
4691
|
+
if (i === void 0 && (i = Math.min(Math.abs(n - t) / 100, 0.4)), y < 1) {
|
|
4692
|
+
const b = Un(S, y);
|
|
4663
4693
|
v = (w) => {
|
|
4664
|
-
const
|
|
4665
|
-
return n -
|
|
4694
|
+
const _ = Math.exp(-y * S * w);
|
|
4695
|
+
return n - _ * ((g + y * S * m) / b * Math.sin(b * w) + m * Math.cos(b * w));
|
|
4666
4696
|
}, p = (w) => {
|
|
4667
|
-
const
|
|
4668
|
-
return
|
|
4697
|
+
const _ = Math.exp(-y * S * w);
|
|
4698
|
+
return y * S * _ * (Math.sin(b * w) * (g + y * S * m) / b + m * Math.cos(b * w)) - _ * (Math.cos(b * w) * (g + y * S * m) - b * m * Math.sin(b * w));
|
|
4669
4699
|
};
|
|
4670
|
-
} else if (
|
|
4671
|
-
v = (b) => n - Math.exp(-
|
|
4700
|
+
} else if (y === 1)
|
|
4701
|
+
v = (b) => n - Math.exp(-S * b) * (m + (g + S * m) * b);
|
|
4672
4702
|
else {
|
|
4673
|
-
const b =
|
|
4703
|
+
const b = S * Math.sqrt(y * y - 1);
|
|
4674
4704
|
v = (w) => {
|
|
4675
|
-
const
|
|
4676
|
-
return n -
|
|
4705
|
+
const _ = Math.exp(-y * S * w), T = Math.min(b * w, 300);
|
|
4706
|
+
return n - _ * ((g + y * S * m) * Math.sinh(T) + b * m * Math.cosh(T)) / b;
|
|
4677
4707
|
};
|
|
4678
4708
|
}
|
|
4679
4709
|
}
|
|
@@ -4683,8 +4713,8 @@ function gr(e) {
|
|
|
4683
4713
|
if (f)
|
|
4684
4714
|
s.done = g >= d;
|
|
4685
4715
|
else {
|
|
4686
|
-
const
|
|
4687
|
-
s.done =
|
|
4716
|
+
const y = p(g) * 1e3, S = Math.abs(y) <= r, b = Math.abs(n - m) <= i;
|
|
4717
|
+
s.done = S && b;
|
|
4688
4718
|
}
|
|
4689
4719
|
return s.value = s.done ? n : m, s;
|
|
4690
4720
|
},
|
|
@@ -4928,24 +4958,24 @@ const lf = (e) => {
|
|
|
4928
4958
|
};
|
|
4929
4959
|
function Pr(e) {
|
|
4930
4960
|
var t, n, { from: r, autoplay: i = !0, driver: o = lf, elapsed: s = 0, repeat: a = 0, repeatType: l = "loop", repeatDelay: u = 0, onPlay: c, onStop: d, onComplete: f, onRepeat: v, onUpdate: p } = e, h = ue(e, ["from", "autoplay", "driver", "elapsed", "repeat", "repeatType", "repeatDelay", "onPlay", "onStop", "onComplete", "onRepeat", "onUpdate"]);
|
|
4931
|
-
let { to: g } = h, m,
|
|
4932
|
-
const
|
|
4933
|
-
!((n = (t =
|
|
4961
|
+
let { to: g } = h, m, y = 0, S = h.duration, b, w = !1, _ = !0, T;
|
|
4962
|
+
const E = Qd(h);
|
|
4963
|
+
!((n = (t = E).needsInterpolation) === null || n === void 0) && n.call(t, r, g) && (T = yr([0, 100], [r, g], {
|
|
4934
4964
|
clamp: !1
|
|
4935
4965
|
}), r = 0, g = 100);
|
|
4936
|
-
const
|
|
4966
|
+
const x = E(Object.assign(Object.assign({}, h), { from: r, to: g }));
|
|
4937
4967
|
function P() {
|
|
4938
|
-
|
|
4968
|
+
y++, l === "reverse" ? (_ = y % 2 === 0, s = sf(s, S, u, _)) : (s = Ms(s, S, u), l === "mirror" && x.flipTarget()), w = !1, v && v();
|
|
4939
4969
|
}
|
|
4940
4970
|
function A() {
|
|
4941
4971
|
m.stop(), f && f();
|
|
4942
4972
|
}
|
|
4943
4973
|
function I(N) {
|
|
4944
|
-
if (
|
|
4945
|
-
const j =
|
|
4946
|
-
b = j.value,
|
|
4974
|
+
if (_ || (N = -N), s += N, !w) {
|
|
4975
|
+
const j = x.next(Math.max(0, s));
|
|
4976
|
+
b = j.value, T && (b = T(b)), w = _ ? j.done : s <= 0;
|
|
4947
4977
|
}
|
|
4948
|
-
p == null || p(b), w && (
|
|
4978
|
+
p == null || p(b), w && (y === 0 && (S ?? (S = s)), y < a ? af(s, S, u, _) && P() : A());
|
|
4949
4979
|
}
|
|
4950
4980
|
function L() {
|
|
4951
4981
|
c == null || c(), m = o(I), m.start();
|
|
@@ -4961,35 +4991,35 @@ function As(e, t) {
|
|
|
4961
4991
|
}
|
|
4962
4992
|
function uf({ from: e = 0, velocity: t = 0, min: n, max: r, power: i = 0.8, timeConstant: o = 750, bounceStiffness: s = 500, bounceDamping: a = 10, restDelta: l = 1, modifyTarget: u, driver: c, onUpdate: d, onComplete: f, onStop: v }) {
|
|
4963
4993
|
let p;
|
|
4964
|
-
function h(
|
|
4965
|
-
return n !== void 0 &&
|
|
4994
|
+
function h(S) {
|
|
4995
|
+
return n !== void 0 && S < n || r !== void 0 && S > r;
|
|
4966
4996
|
}
|
|
4967
|
-
function g(
|
|
4968
|
-
return n === void 0 ? r : r === void 0 || Math.abs(n -
|
|
4997
|
+
function g(S) {
|
|
4998
|
+
return n === void 0 ? r : r === void 0 || Math.abs(n - S) < Math.abs(r - S) ? n : r;
|
|
4969
4999
|
}
|
|
4970
|
-
function m(
|
|
4971
|
-
p == null || p.stop(), p = Pr(Object.assign(Object.assign({},
|
|
5000
|
+
function m(S) {
|
|
5001
|
+
p == null || p.stop(), p = Pr(Object.assign(Object.assign({}, S), {
|
|
4972
5002
|
driver: c,
|
|
4973
5003
|
onUpdate: (b) => {
|
|
4974
5004
|
var w;
|
|
4975
|
-
d == null || d(b), (w =
|
|
5005
|
+
d == null || d(b), (w = S.onUpdate) === null || w === void 0 || w.call(S, b);
|
|
4976
5006
|
},
|
|
4977
5007
|
onComplete: f,
|
|
4978
5008
|
onStop: v
|
|
4979
5009
|
}));
|
|
4980
5010
|
}
|
|
4981
|
-
function S
|
|
4982
|
-
m(Object.assign({ type: "spring", stiffness: s, damping: a, restDelta: l },
|
|
5011
|
+
function y(S) {
|
|
5012
|
+
m(Object.assign({ type: "spring", stiffness: s, damping: a, restDelta: l }, S));
|
|
4983
5013
|
}
|
|
4984
5014
|
if (h(e))
|
|
4985
|
-
|
|
5015
|
+
y({ from: e, velocity: t, to: g(e) });
|
|
4986
5016
|
else {
|
|
4987
|
-
let
|
|
4988
|
-
typeof u < "u" && (
|
|
4989
|
-
const b = g(
|
|
4990
|
-
let
|
|
4991
|
-
const
|
|
4992
|
-
|
|
5017
|
+
let S = i * t + e;
|
|
5018
|
+
typeof u < "u" && (S = u(S));
|
|
5019
|
+
const b = g(S), w = b === n ? -1 : 1;
|
|
5020
|
+
let _, T;
|
|
5021
|
+
const E = (x) => {
|
|
5022
|
+
_ = T, T = x, t = As(x - _, Zt().delta), (w === 1 && x > b || w === -1 && x < b) && y({ from: x, to: b, velocity: t });
|
|
4993
5023
|
};
|
|
4994
5024
|
m({
|
|
4995
5025
|
type: "decay",
|
|
@@ -4999,7 +5029,7 @@ function uf({ from: e = 0, velocity: t = 0, min: n, max: r, power: i = 0.8, time
|
|
|
4999
5029
|
power: i,
|
|
5000
5030
|
restDelta: l,
|
|
5001
5031
|
modifyTarget: u,
|
|
5002
|
-
onUpdate: h(
|
|
5032
|
+
onUpdate: h(S) ? E : void 0
|
|
5003
5033
|
});
|
|
5004
5034
|
}
|
|
5005
5035
|
return {
|
|
@@ -5556,11 +5586,11 @@ function ks(e, t, n) {
|
|
|
5556
5586
|
a && (d = a);
|
|
5557
5587
|
var p = [], h = l && ((r = e.animationState) === null || r === void 0 ? void 0 : r.getState()[l]);
|
|
5558
5588
|
for (var g in v) {
|
|
5559
|
-
var m = e.getValue(g),
|
|
5560
|
-
if (!(!m ||
|
|
5561
|
-
var
|
|
5562
|
-
e.shouldReduceMotion && St(g) && (
|
|
5563
|
-
var b = Mr(g, m,
|
|
5589
|
+
var m = e.getValue(g), y = v[g];
|
|
5590
|
+
if (!(!m || y === void 0 || h && tp(h, g))) {
|
|
5591
|
+
var S = M({ delay: s }, d);
|
|
5592
|
+
e.shouldReduceMotion && St(g) && (S = M(M({}, S), { type: !1, delay: 0 }));
|
|
5593
|
+
var b = Mr(g, m, y, S);
|
|
5564
5594
|
p.push(b);
|
|
5565
5595
|
}
|
|
5566
5596
|
}
|
|
@@ -5627,43 +5657,43 @@ function op(e) {
|
|
|
5627
5657
|
t = c(e);
|
|
5628
5658
|
}
|
|
5629
5659
|
function l(c, d) {
|
|
5630
|
-
for (var f, v = e.getProps(), p = e.getVariantContext(!0) || {}, h = [], g = /* @__PURE__ */ new Set(), m = {},
|
|
5631
|
-
var
|
|
5632
|
-
I === !1 && (
|
|
5633
|
-
var L = P === p[
|
|
5634
|
-
if (L && i && e.manuallyAnimateOnMount && (L = !1),
|
|
5635
|
-
!
|
|
5636
|
-
!P && !
|
|
5660
|
+
for (var f, v = e.getProps(), p = e.getVariantContext(!0) || {}, h = [], g = /* @__PURE__ */ new Set(), m = {}, y = 1 / 0, S = function(T) {
|
|
5661
|
+
var E = np[T], x = n[E], P = (f = v[E]) !== null && f !== void 0 ? f : p[E], A = fe(P), I = E === d ? x.isActive : null;
|
|
5662
|
+
I === !1 && (y = T);
|
|
5663
|
+
var L = P === p[E] && P !== v[E] && A;
|
|
5664
|
+
if (L && i && e.manuallyAnimateOnMount && (L = !1), x.protectedKeys = M({}, m), // If it isn't active and hasn't *just* been set as inactive
|
|
5665
|
+
!x.isActive && I === null || // If we didn't and don't have any defined prop for this animation type
|
|
5666
|
+
!P && !x.prevProp || // Or if the prop doesn't define an animation
|
|
5637
5667
|
hr(P) || typeof P == "boolean")
|
|
5638
5668
|
return "continue";
|
|
5639
|
-
var N = sp(
|
|
5640
|
-
|
|
5641
|
-
|
|
5669
|
+
var N = sp(x.prevProp, P), j = N || // If we're making this variant active, we want to always make it active
|
|
5670
|
+
E === d && x.isActive && !L && A || // If we removed a higher-priority variant (i is in reverse order)
|
|
5671
|
+
T > y && A, D = Array.isArray(P) ? P : [P], G = D.reduce(o, {});
|
|
5642
5672
|
I === !1 && (G = {});
|
|
5643
|
-
var H =
|
|
5644
|
-
j = !0, g.delete(O),
|
|
5673
|
+
var H = x.prevResolvedValues, k = H === void 0 ? {} : H, J = M(M({}, k), G), ce = function(O) {
|
|
5674
|
+
j = !0, g.delete(O), x.needsAnimating[O] = !0;
|
|
5645
5675
|
};
|
|
5646
5676
|
for (var Q in J) {
|
|
5647
5677
|
var $ = G[Q], V = k[Q];
|
|
5648
|
-
m.hasOwnProperty(Q) || ($ !== V ? pt($) && pt(V) ? !Bs($, V) || N ? ce(Q) :
|
|
5678
|
+
m.hasOwnProperty(Q) || ($ !== V ? pt($) && pt(V) ? !Bs($, V) || N ? ce(Q) : x.protectedKeys[Q] = !0 : $ !== void 0 ? ce(Q) : g.add(Q) : $ !== void 0 && g.has(Q) ? ce(Q) : x.protectedKeys[Q] = !0);
|
|
5649
5679
|
}
|
|
5650
|
-
|
|
5680
|
+
x.prevProp = P, x.prevResolvedValues = G, x.isActive && (m = M(M({}, m), G)), i && e.blockInitialAnimation && (j = !1), j && !L && h.push.apply(h, le([], X(D.map(function(O) {
|
|
5651
5681
|
return {
|
|
5652
5682
|
animation: O,
|
|
5653
|
-
options: M({ type:
|
|
5683
|
+
options: M({ type: E }, c)
|
|
5654
5684
|
};
|
|
5655
5685
|
})), !1));
|
|
5656
5686
|
}, b = 0; b < rp; b++)
|
|
5657
|
-
|
|
5687
|
+
S(b);
|
|
5658
5688
|
if (r = M({}, m), g.size) {
|
|
5659
5689
|
var w = {};
|
|
5660
|
-
g.forEach(function(
|
|
5661
|
-
var
|
|
5662
|
-
|
|
5690
|
+
g.forEach(function(T) {
|
|
5691
|
+
var E = e.getBaseTarget(T);
|
|
5692
|
+
E !== void 0 && (w[T] = E);
|
|
5663
5693
|
}), h.push({ animation: w });
|
|
5664
5694
|
}
|
|
5665
|
-
var
|
|
5666
|
-
return i && v.initial === !1 && !e.manuallyAnimateOnMount && (
|
|
5695
|
+
var _ = !!h.length;
|
|
5696
|
+
return i && v.initial === !1 && !e.manuallyAnimateOnMount && (_ = !1), i = !1, _ ? t(h) : Promise.resolve();
|
|
5667
5697
|
}
|
|
5668
5698
|
function u(c, d, f) {
|
|
5669
5699
|
var v;
|
|
@@ -5730,8 +5760,8 @@ var lp = {
|
|
|
5730
5760
|
if (!(!v && !p)) {
|
|
5731
5761
|
var h = f.point, g = Zt().timestamp;
|
|
5732
5762
|
i.history.push(M(M({}, h), { timestamp: g }));
|
|
5733
|
-
var m = i.handlers,
|
|
5734
|
-
v || (
|
|
5763
|
+
var m = i.handlers, y = m.onStart, S = m.onMove;
|
|
5764
|
+
v || (y && y(i.lastMoveEvent, f), i.startEvent = i.lastMoveEvent), S && S(i.lastMoveEvent, f);
|
|
5735
5765
|
}
|
|
5736
5766
|
}
|
|
5737
5767
|
}, this.handlePointerMove = function(f, v) {
|
|
@@ -5985,26 +6015,26 @@ var Pp = /* @__PURE__ */ new WeakMap(), Ep = (
|
|
|
5985
6015
|
r.stopAnimation(), s && r.snapToCursor(mr(d, "page").point);
|
|
5986
6016
|
}, l = function(d, f) {
|
|
5987
6017
|
var v, p = r.getProps(), h = p.drag, g = p.dragPropagation, m = p.onDragStart;
|
|
5988
|
-
h && !g && (r.openGlobalLock && r.openGlobalLock(), r.openGlobalLock = ps(h), !r.openGlobalLock) || (r.isDragging = !0, r.currentDirection = null, r.resolveConstraints(), r.visualElement.projection && (r.visualElement.projection.isAnimationBlocked = !0, r.visualElement.projection.target = void 0), me(function(
|
|
5989
|
-
var
|
|
6018
|
+
h && !g && (r.openGlobalLock && r.openGlobalLock(), r.openGlobalLock = ps(h), !r.openGlobalLock) || (r.isDragging = !0, r.currentDirection = null, r.resolveConstraints(), r.visualElement.projection && (r.visualElement.projection.isAnimationBlocked = !0, r.visualElement.projection.target = void 0), me(function(y) {
|
|
6019
|
+
var S, b, w = r.getAxisMotionValue(y).get() || 0;
|
|
5990
6020
|
if (ye.test(w)) {
|
|
5991
|
-
var
|
|
5992
|
-
if (
|
|
5993
|
-
var
|
|
5994
|
-
w =
|
|
6021
|
+
var _ = (b = (S = r.visualElement.projection) === null || S === void 0 ? void 0 : S.layout) === null || b === void 0 ? void 0 : b.actual[y];
|
|
6022
|
+
if (_) {
|
|
6023
|
+
var T = Ee(_);
|
|
6024
|
+
w = T * (parseFloat(w) / 100);
|
|
5995
6025
|
}
|
|
5996
6026
|
}
|
|
5997
|
-
r.originPoint[
|
|
6027
|
+
r.originPoint[y] = w;
|
|
5998
6028
|
}), m == null || m(d, f), (v = r.visualElement.animationState) === null || v === void 0 || v.setActive(W.Drag, !0));
|
|
5999
6029
|
}, u = function(d, f) {
|
|
6000
6030
|
var v = r.getProps(), p = v.dragPropagation, h = v.dragDirectionLock, g = v.onDirectionLock, m = v.onDrag;
|
|
6001
6031
|
if (!(!p && !r.openGlobalLock)) {
|
|
6002
|
-
var
|
|
6032
|
+
var y = f.offset;
|
|
6003
6033
|
if (h && r.currentDirection === null) {
|
|
6004
|
-
r.currentDirection = Cp(
|
|
6034
|
+
r.currentDirection = Cp(y), r.currentDirection !== null && (g == null || g(r.currentDirection));
|
|
6005
6035
|
return;
|
|
6006
6036
|
}
|
|
6007
|
-
r.updateAxis("x", f.point,
|
|
6037
|
+
r.updateAxis("x", f.point, y), r.updateAxis("y", f.point, y), r.visualElement.syncRender(), m == null || m(d, f);
|
|
6008
6038
|
}
|
|
6009
6039
|
}, c = function(d, f) {
|
|
6010
6040
|
return r.stop(d, f);
|
|
@@ -6242,17 +6272,17 @@ function Vp(e, t, n) {
|
|
|
6242
6272
|
var Ys = function(e) {
|
|
6243
6273
|
var t = e.treeType, n = t === void 0 ? "" : t, r = e.build, i = e.getBaseTarget, o = e.makeTargetAnimatable, s = e.measureViewportBox, a = e.render, l = e.readValueFromInstance, u = e.removeValueFromRenderState, c = e.sortNodePosition, d = e.scrapeMotionValuesFromProps;
|
|
6244
6274
|
return function(f, v) {
|
|
6245
|
-
var p = f.parent, h = f.props, g = f.presenceId, m = f.blockInitialAnimation,
|
|
6275
|
+
var p = f.parent, h = f.props, g = f.presenceId, m = f.blockInitialAnimation, y = f.visualState, S = f.shouldReduceMotion;
|
|
6246
6276
|
v === void 0 && (v = {});
|
|
6247
|
-
var b = !1, w =
|
|
6277
|
+
var b = !1, w = y.latestValues, _ = y.renderState, T, E = Ip(), x = /* @__PURE__ */ new Map(), P = /* @__PURE__ */ new Map(), A = {}, I = M({}, w), L;
|
|
6248
6278
|
function N() {
|
|
6249
|
-
!
|
|
6279
|
+
!T || !b || (j(), a(T, _, h.style, $.projection));
|
|
6250
6280
|
}
|
|
6251
6281
|
function j() {
|
|
6252
|
-
r($,
|
|
6282
|
+
r($, _, w, v, h);
|
|
6253
6283
|
}
|
|
6254
6284
|
function D() {
|
|
6255
|
-
|
|
6285
|
+
E.notifyUpdate(w);
|
|
6256
6286
|
}
|
|
6257
6287
|
function G(V, O) {
|
|
6258
6288
|
var z = O.onChange(function(he) {
|
|
@@ -6284,7 +6314,7 @@ var Ys = function(e) {
|
|
|
6284
6314
|
*
|
|
6285
6315
|
*/
|
|
6286
6316
|
presenceId: g,
|
|
6287
|
-
shouldReduceMotion:
|
|
6317
|
+
shouldReduceMotion: S,
|
|
6288
6318
|
/**
|
|
6289
6319
|
* If this component is part of the variant tree, it should track
|
|
6290
6320
|
* any children that are also part of the tree. This is essentially
|
|
@@ -6318,10 +6348,10 @@ var Ys = function(e) {
|
|
|
6318
6348
|
* own animations on mount.
|
|
6319
6349
|
*/
|
|
6320
6350
|
isMounted: function() {
|
|
6321
|
-
return !!
|
|
6351
|
+
return !!T;
|
|
6322
6352
|
},
|
|
6323
6353
|
mount: function(V) {
|
|
6324
|
-
b = !0,
|
|
6354
|
+
b = !0, T = $.current = V, $.projection && $.projection.mount(V), Q && p && !ce && (L = p == null ? void 0 : p.addVariantChild($)), x.forEach(function(O, z) {
|
|
6325
6355
|
return G(z, O);
|
|
6326
6356
|
}), p == null || p.children.add($), $.setProps(h);
|
|
6327
6357
|
},
|
|
@@ -6332,7 +6362,7 @@ var Ys = function(e) {
|
|
|
6332
6362
|
var V;
|
|
6333
6363
|
(V = $.projection) === null || V === void 0 || V.unmount(), Ze.update(D), Ze.render(N), P.forEach(function(O) {
|
|
6334
6364
|
return O();
|
|
6335
|
-
}), L == null || L(), p == null || p.children.delete($),
|
|
6365
|
+
}), L == null || L(), p == null || p.children.delete($), E.clearAllListeners(), T = void 0, b = !1;
|
|
6336
6366
|
},
|
|
6337
6367
|
/**
|
|
6338
6368
|
* Add a child visual element to our set of children.
|
|
@@ -6364,7 +6394,7 @@ var Ys = function(e) {
|
|
|
6364
6394
|
* Returns the current instance.
|
|
6365
6395
|
*/
|
|
6366
6396
|
getInstance: function() {
|
|
6367
|
-
return
|
|
6397
|
+
return T;
|
|
6368
6398
|
},
|
|
6369
6399
|
/**
|
|
6370
6400
|
* Get/set the latest static values.
|
|
@@ -6406,41 +6436,41 @@ var Ys = function(e) {
|
|
|
6406
6436
|
* removed with a re-render to work.
|
|
6407
6437
|
*/
|
|
6408
6438
|
measureViewportBox: function() {
|
|
6409
|
-
return s(
|
|
6439
|
+
return s(T, h);
|
|
6410
6440
|
},
|
|
6411
6441
|
// Motion values ========================
|
|
6412
6442
|
/**
|
|
6413
6443
|
* Add a motion value and bind it to this visual element.
|
|
6414
6444
|
*/
|
|
6415
6445
|
addValue: function(V, O) {
|
|
6416
|
-
$.hasValue(V) && $.removeValue(V),
|
|
6446
|
+
$.hasValue(V) && $.removeValue(V), x.set(V, O), w[V] = O.get(), G(V, O);
|
|
6417
6447
|
},
|
|
6418
6448
|
/**
|
|
6419
6449
|
* Remove a motion value and unbind any active subscriptions.
|
|
6420
6450
|
*/
|
|
6421
6451
|
removeValue: function(V) {
|
|
6422
6452
|
var O;
|
|
6423
|
-
|
|
6453
|
+
x.delete(V), (O = P.get(V)) === null || O === void 0 || O(), P.delete(V), delete w[V], u(V, _);
|
|
6424
6454
|
},
|
|
6425
6455
|
/**
|
|
6426
6456
|
* Check whether we have a motion value for this key
|
|
6427
6457
|
*/
|
|
6428
6458
|
hasValue: function(V) {
|
|
6429
|
-
return
|
|
6459
|
+
return x.has(V);
|
|
6430
6460
|
},
|
|
6431
6461
|
/**
|
|
6432
6462
|
* Get a motion value for this key. If called with a default
|
|
6433
6463
|
* value, we'll create one if none exists.
|
|
6434
6464
|
*/
|
|
6435
6465
|
getValue: function(V, O) {
|
|
6436
|
-
var z =
|
|
6466
|
+
var z = x.get(V);
|
|
6437
6467
|
return z === void 0 && O !== void 0 && (z = je(O), $.addValue(V, z)), z;
|
|
6438
6468
|
},
|
|
6439
6469
|
/**
|
|
6440
6470
|
* Iterate over our motion values.
|
|
6441
6471
|
*/
|
|
6442
6472
|
forEachValue: function(V) {
|
|
6443
|
-
return
|
|
6473
|
+
return x.forEach(V);
|
|
6444
6474
|
},
|
|
6445
6475
|
/**
|
|
6446
6476
|
* If we're trying to animate to a previously unencountered value,
|
|
@@ -6449,7 +6479,7 @@ var Ys = function(e) {
|
|
|
6449
6479
|
*/
|
|
6450
6480
|
readValue: function(V) {
|
|
6451
6481
|
var O;
|
|
6452
|
-
return (O = w[V]) !== null && O !== void 0 ? O : l(
|
|
6482
|
+
return (O = w[V]) !== null && O !== void 0 ? O : l(T, V, v);
|
|
6453
6483
|
},
|
|
6454
6484
|
/**
|
|
6455
6485
|
* Set the base target to later animate back to. This is currently
|
|
@@ -6470,12 +6500,12 @@ var Ys = function(e) {
|
|
|
6470
6500
|
}
|
|
6471
6501
|
return I[V];
|
|
6472
6502
|
}
|
|
6473
|
-
},
|
|
6503
|
+
}, E), {
|
|
6474
6504
|
/**
|
|
6475
6505
|
* Build the renderer state based on the latest visual state.
|
|
6476
6506
|
*/
|
|
6477
6507
|
build: function() {
|
|
6478
|
-
return j(),
|
|
6508
|
+
return j(), _;
|
|
6479
6509
|
},
|
|
6480
6510
|
/**
|
|
6481
6511
|
* Schedule a render on the next animation frame.
|
|
@@ -6495,7 +6525,7 @@ var Ys = function(e) {
|
|
|
6495
6525
|
* added to our map, old ones removed, and listeners updated.
|
|
6496
6526
|
*/
|
|
6497
6527
|
setProps: function(V) {
|
|
6498
|
-
(V.transformTemplate || h.transformTemplate) && $.scheduleRender(), h = V,
|
|
6528
|
+
(V.transformTemplate || h.transformTemplate) && $.scheduleRender(), h = V, E.updatePropListeners(V), A = Vp($, d(h), A);
|
|
6499
6529
|
},
|
|
6500
6530
|
getProps: function() {
|
|
6501
6531
|
return h;
|
|
@@ -6670,14 +6700,14 @@ var ji = {
|
|
|
6670
6700
|
if (pt(p)) {
|
|
6671
6701
|
var g = p.length, m = p[0] === null ? 1 : 0;
|
|
6672
6702
|
f = p[m], v = Qe(f);
|
|
6673
|
-
for (var
|
|
6674
|
-
h ? ae(Qe(p[
|
|
6703
|
+
for (var y = m; y < g; y++)
|
|
6704
|
+
h ? ae(Qe(p[y]) === h, "All keyframes must be of the same type") : (h = Qe(p[y]), ae(h === v || Dt(v) && Dt(h), "Keyframes must be of the same dimension as the current value"));
|
|
6675
6705
|
} else
|
|
6676
6706
|
h = Qe(p);
|
|
6677
6707
|
if (v !== h)
|
|
6678
6708
|
if (Dt(v) && Dt(h)) {
|
|
6679
|
-
var
|
|
6680
|
-
typeof
|
|
6709
|
+
var S = d.get();
|
|
6710
|
+
typeof S == "string" && d.set(parseFloat(S)), typeof p == "string" ? t[c] = parseFloat(p) : Array.isArray(p) && h === R && (t[c] = p.map(parseFloat));
|
|
6681
6711
|
} else v != null && v.transform && (h != null && h.transform) && (f === 0 || p === 0) ? f === 0 ? d.set(h.transform(f)) : t[c] = v.transform(p) : (s || (o = jp(e), s = !0), a.push(c), r[c] = r[c] !== void 0 ? r[c] : t[c], Js(d, p));
|
|
6682
6712
|
}
|
|
6683
6713
|
}), a.length) {
|
|
@@ -7058,18 +7088,18 @@ function ia(e) {
|
|
|
7058
7088
|
});
|
|
7059
7089
|
}
|
|
7060
7090
|
f && this.root.registerSharedNode(f, this), this.options.animate !== !1 && p && (f || v) && this.addEventListener("didUpdate", function(m) {
|
|
7061
|
-
var
|
|
7091
|
+
var y, S, b, w, _, T = m.delta, E = m.hasLayoutChanged, x = m.hasRelativeTargetChanged, P = m.layout;
|
|
7062
7092
|
if (u.isTreeAnimationBlocked()) {
|
|
7063
7093
|
u.target = void 0, u.relativeTarget = void 0;
|
|
7064
7094
|
return;
|
|
7065
7095
|
}
|
|
7066
|
-
var A = (
|
|
7067
|
-
if (!((b = u.resumeFrom) === null || b === void 0) && b.instance || D ||
|
|
7068
|
-
u.resumeFrom && (u.resumingFrom = u.resumeFrom, u.resumingFrom.resumingFrom = void 0), u.setAnimationOrigin(
|
|
7096
|
+
var A = (S = (y = u.options.transition) !== null && y !== void 0 ? y : p.getDefaultTransition()) !== null && S !== void 0 ? S : Tv, I = p.getProps(), L = I.onLayoutAnimationStart, N = I.onLayoutAnimationComplete, j = !u.targetLayout || !ra(u.targetLayout, P) || x, D = !E && x;
|
|
7097
|
+
if (!((b = u.resumeFrom) === null || b === void 0) && b.instance || D || E && (j || !u.currentAnimation)) {
|
|
7098
|
+
u.resumeFrom && (u.resumingFrom = u.resumeFrom, u.resumingFrom.resumingFrom = void 0), u.setAnimationOrigin(T, D);
|
|
7069
7099
|
var G = M(M({}, _r(A, "layout")), { onPlay: L, onComplete: N });
|
|
7070
7100
|
p.shouldReduceMotion && (G.delay = 0, G.type = !1), u.startAnimation(G);
|
|
7071
7101
|
} else
|
|
7072
|
-
!
|
|
7102
|
+
!E && u.animationProgress === 0 && u.finishAnimation(), u.isLead() && ((_ = (w = u.options).onExitComplete) === null || _ === void 0 || _.call(w));
|
|
7073
7103
|
u.targetLayout = P;
|
|
7074
7104
|
});
|
|
7075
7105
|
}
|
|
@@ -7237,10 +7267,10 @@ function ia(e) {
|
|
|
7237
7267
|
l === void 0 && (l = !1);
|
|
7238
7268
|
var d = this.snapshot, f = (d == null ? void 0 : d.latestValues) || {}, v = M({}, this.latestValues), p = ut();
|
|
7239
7269
|
this.relativeTarget = this.relativeTargetOrigin = void 0, this.attemptToResolveRelativeTarget = !l;
|
|
7240
|
-
var h = te(), g = d == null ? void 0 : d.isShared, m = (((c = this.getStack()) === null || c === void 0 ? void 0 : c.members.length) || 0) <= 1,
|
|
7241
|
-
this.animationProgress = 0, this.mixTargetDelta = function(
|
|
7242
|
-
var b, w =
|
|
7243
|
-
eo(p.x, a.x, w), eo(p.y, a.y, w), u.setTargetDelta(p), u.relativeTarget && u.relativeTargetOrigin && u.layout && (!((b = u.relativeParent) === null || b === void 0) && b.layout) && (lt(h, u.layout.actual, u.relativeParent.layout.actual), bv(u.relativeTarget, u.relativeTargetOrigin, h, w)), g && (u.animationValues = v, nv(v, f, u.latestValues, w,
|
|
7270
|
+
var h = te(), g = d == null ? void 0 : d.isShared, m = (((c = this.getStack()) === null || c === void 0 ? void 0 : c.members.length) || 0) <= 1, y = !!(g && !m && this.options.crossfade === !0 && !this.path.some(xv));
|
|
7271
|
+
this.animationProgress = 0, this.mixTargetDelta = function(S) {
|
|
7272
|
+
var b, w = S / 1e3;
|
|
7273
|
+
eo(p.x, a.x, w), eo(p.y, a.y, w), u.setTargetDelta(p), u.relativeTarget && u.relativeTargetOrigin && u.layout && (!((b = u.relativeParent) === null || b === void 0) && b.layout) && (lt(h, u.layout.actual, u.relativeParent.layout.actual), bv(u.relativeTarget, u.relativeTargetOrigin, h, w)), g && (u.animationValues = v, nv(v, f, u.latestValues, w, y, m)), u.root.scheduleUpdateProjection(), u.scheduleRender(), u.animationProgress = w;
|
|
7244
7274
|
}, this.mixTargetDelta(0);
|
|
7245
7275
|
}, s.prototype.startAnimation = function(a) {
|
|
7246
7276
|
var l = this, u, c;
|
|
@@ -7321,18 +7351,18 @@ function ia(e) {
|
|
|
7321
7351
|
var m = {};
|
|
7322
7352
|
return this.options.layoutId && (m.opacity = (u = this.latestValues.opacity) !== null && u !== void 0 ? u : 1, m.pointerEvents = Bt(a.pointerEvents) || ""), this.hasProjected && !Ie(this.latestValues) && (m.transform = h ? h({}, "") : "none", this.hasProjected = !1), m;
|
|
7323
7353
|
}
|
|
7324
|
-
var
|
|
7325
|
-
this.applyTransformsToTarget(), p.transform = Zi(this.projectionDeltaWithTransform, this.treeScale,
|
|
7326
|
-
var
|
|
7327
|
-
p.transformOrigin = "".concat(b.origin * 100, "% ").concat(w.origin * 100, "% 0"), g.animationValues ? p.opacity = g === this ? (d = (c =
|
|
7328
|
-
for (var
|
|
7329
|
-
if (
|
|
7330
|
-
var
|
|
7331
|
-
if (
|
|
7332
|
-
for (var A =
|
|
7333
|
-
p[
|
|
7354
|
+
var y = g.animationValues || g.latestValues;
|
|
7355
|
+
this.applyTransformsToTarget(), p.transform = Zi(this.projectionDeltaWithTransform, this.treeScale, y), h && (p.transform = h(y, p.transform));
|
|
7356
|
+
var S = this.projectionDelta, b = S.x, w = S.y;
|
|
7357
|
+
p.transformOrigin = "".concat(b.origin * 100, "% ").concat(w.origin * 100, "% 0"), g.animationValues ? p.opacity = g === this ? (d = (c = y.opacity) !== null && c !== void 0 ? c : this.latestValues.opacity) !== null && d !== void 0 ? d : 1 : this.preserveOpacity ? this.latestValues.opacity : y.opacityExit : p.opacity = g === this ? (f = y.opacity) !== null && f !== void 0 ? f : "" : (v = y.opacityExit) !== null && v !== void 0 ? v : 0;
|
|
7358
|
+
for (var _ in Ut)
|
|
7359
|
+
if (y[_] !== void 0) {
|
|
7360
|
+
var T = Ut[_], E = T.correct, x = T.applyTo, P = E(y[_], g);
|
|
7361
|
+
if (x)
|
|
7362
|
+
for (var A = x.length, I = 0; I < A; I++)
|
|
7363
|
+
p[x[I]] = P;
|
|
7334
7364
|
else
|
|
7335
|
-
p[
|
|
7365
|
+
p[_] = P;
|
|
7336
7366
|
}
|
|
7337
7367
|
return this.options.layoutId && (p.pointerEvents = g === this ? Bt(a.pointerEvents) || "" : "none"), p;
|
|
7338
7368
|
}, s.prototype.clearSnapshot = function() {
|
|
@@ -7353,12 +7383,12 @@ function pv(e) {
|
|
|
7353
7383
|
var t, n, r, i, o = (n = (t = e.resumeFrom) === null || t === void 0 ? void 0 : t.snapshot) !== null && n !== void 0 ? n : e.snapshot;
|
|
7354
7384
|
if (e.isLead() && e.layout && o && e.hasListeners("didUpdate")) {
|
|
7355
7385
|
var s = e.layout, a = s.actual, l = s.measured;
|
|
7356
|
-
e.options.animationType === "size" ? me(function(
|
|
7357
|
-
var
|
|
7358
|
-
|
|
7359
|
-
}) : e.options.animationType === "position" && me(function(
|
|
7360
|
-
var
|
|
7361
|
-
|
|
7386
|
+
e.options.animationType === "size" ? me(function(y) {
|
|
7387
|
+
var S = o.isShared ? o.measured[y] : o.layout[y], b = Ee(S);
|
|
7388
|
+
S.min = a[y].min, S.max = S.min + b;
|
|
7389
|
+
}) : e.options.animationType === "position" && me(function(y) {
|
|
7390
|
+
var S = o.isShared ? o.measured[y] : o.layout[y], b = Ee(a[y]);
|
|
7391
|
+
S.max = S.min + b;
|
|
7362
7392
|
});
|
|
7363
7393
|
var u = ut();
|
|
7364
7394
|
at(u, a, o.layout);
|
|
@@ -7613,7 +7643,7 @@ function Fv({
|
|
|
7613
7643
|
onDragProgress: r
|
|
7614
7644
|
}) {
|
|
7615
7645
|
const i = Or(0), o = 150, s = Rv(i, { stiffness: 300, damping: 30 }), a = Dv(s, [0, 300], [1, 0.95], { clamp: !0 }), l = sa();
|
|
7616
|
-
return /* @__PURE__ */
|
|
7646
|
+
return /* @__PURE__ */ C(
|
|
7617
7647
|
oa.div,
|
|
7618
7648
|
{
|
|
7619
7649
|
style: {
|
|
@@ -7645,7 +7675,7 @@ const aa = ({
|
|
|
7645
7675
|
height: t = "100%",
|
|
7646
7676
|
fill: n = "white",
|
|
7647
7677
|
...r
|
|
7648
|
-
}) => /* @__PURE__ */
|
|
7678
|
+
}) => /* @__PURE__ */ C(
|
|
7649
7679
|
"svg",
|
|
7650
7680
|
{
|
|
7651
7681
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -7654,7 +7684,7 @@ const aa = ({
|
|
|
7654
7684
|
fill: "none",
|
|
7655
7685
|
viewBox: "0 0 24 24",
|
|
7656
7686
|
...r,
|
|
7657
|
-
children: /* @__PURE__ */
|
|
7687
|
+
children: /* @__PURE__ */ C(
|
|
7658
7688
|
"path",
|
|
7659
7689
|
{
|
|
7660
7690
|
fill: n,
|
|
@@ -7686,57 +7716,59 @@ function jv({
|
|
|
7686
7716
|
stories: e,
|
|
7687
7717
|
open: t,
|
|
7688
7718
|
onClose: n,
|
|
7689
|
-
initialSlide: r
|
|
7719
|
+
initialSlide: r,
|
|
7720
|
+
onButtonStoryClick: i
|
|
7690
7721
|
}) {
|
|
7691
|
-
const [
|
|
7722
|
+
const [o, s] = Z(!1), a = B(null), l = B(null);
|
|
7692
7723
|
console.log(r);
|
|
7693
|
-
const [
|
|
7724
|
+
const [u, c] = Z(r);
|
|
7694
7725
|
zv(t, () => n == null ? void 0 : n());
|
|
7695
7726
|
const {
|
|
7696
|
-
markStorySeen:
|
|
7697
|
-
getNextUnseenStoryIndex:
|
|
7727
|
+
markStorySeen: d,
|
|
7728
|
+
getNextUnseenStoryIndex: f
|
|
7698
7729
|
} = po({ container: "HOME" });
|
|
7699
|
-
return t ? /* @__PURE__ */
|
|
7700
|
-
/* @__PURE__ */
|
|
7701
|
-
/* @__PURE__ */
|
|
7730
|
+
return t ? /* @__PURE__ */ C("div", { className: Ct.StoryCube, children: /* @__PURE__ */ U("div", { className: Ct.AtSwiperCubeWrap, ref: a, children: [
|
|
7731
|
+
/* @__PURE__ */ C("div", { className: Ct.CloseIcon, onClick: n, children: /* @__PURE__ */ C(aa, {}) }),
|
|
7732
|
+
/* @__PURE__ */ C(Fv, { disabled: !1, onClose: n, children: /* @__PURE__ */ C(
|
|
7702
7733
|
Mo,
|
|
7703
7734
|
{
|
|
7704
7735
|
modules: [uu, au],
|
|
7705
7736
|
effect: "cube",
|
|
7706
|
-
onSliderMove: () =>
|
|
7707
|
-
onTransitionEnd: () =>
|
|
7708
|
-
onSwiper: (
|
|
7737
|
+
onSliderMove: () => s(!0),
|
|
7738
|
+
onTransitionEnd: () => s(!1),
|
|
7739
|
+
onSwiper: (v) => l.current = v,
|
|
7709
7740
|
cubeEffect: {
|
|
7710
7741
|
shadow: !1,
|
|
7711
7742
|
slideShadows: !1
|
|
7712
7743
|
},
|
|
7713
7744
|
className: Ct.AtSwiperCube,
|
|
7714
|
-
onSlideChange: (
|
|
7715
|
-
|
|
7745
|
+
onSlideChange: (v) => {
|
|
7746
|
+
c(v.activeIndex);
|
|
7716
7747
|
},
|
|
7717
|
-
initialSlide:
|
|
7718
|
-
children: e == null ? void 0 : e.map((
|
|
7748
|
+
initialSlide: u,
|
|
7749
|
+
children: e == null ? void 0 : e.map((v, p) => (console.log(v.id), console.log(
|
|
7719
7750
|
"getNextUnseenStoryIndex=> ",
|
|
7720
|
-
|
|
7721
|
-
), /* @__PURE__ */
|
|
7751
|
+
f(v)
|
|
7752
|
+
), /* @__PURE__ */ C(Ao, { children: /* @__PURE__ */ C(
|
|
7722
7753
|
Qu,
|
|
7723
7754
|
{
|
|
7724
|
-
|
|
7725
|
-
|
|
7726
|
-
|
|
7727
|
-
|
|
7728
|
-
|
|
7755
|
+
onButtonStoryClick: i,
|
|
7756
|
+
initialIndex: f(v),
|
|
7757
|
+
play: u == p,
|
|
7758
|
+
story: v,
|
|
7759
|
+
onChangeStory: (h, g) => {
|
|
7760
|
+
d(v == null ? void 0 : v.id, g == null ? void 0 : g.id);
|
|
7729
7761
|
},
|
|
7730
7762
|
onAllStoriesEnd: () => {
|
|
7731
|
-
var p;
|
|
7732
|
-
(p = a.current) == null || p.slideNext();
|
|
7733
|
-
},
|
|
7734
|
-
onLeft: (p) => {
|
|
7735
7763
|
var h;
|
|
7736
|
-
|
|
7764
|
+
(h = l.current) == null || h.slideNext();
|
|
7765
|
+
},
|
|
7766
|
+
onLeft: (h) => {
|
|
7767
|
+
var g;
|
|
7768
|
+
h == -1 && ((g = l.current) == null || g.slidePrev());
|
|
7737
7769
|
}
|
|
7738
7770
|
}
|
|
7739
|
-
) },
|
|
7771
|
+
) }, v == null ? void 0 : v.id)))
|
|
7740
7772
|
}
|
|
7741
7773
|
) })
|
|
7742
7774
|
] }) }) : null;
|
|
@@ -7941,54 +7973,60 @@ var Vn, Hv = (Vn = "indiana-scroll-container", function(e, t) {
|
|
|
7941
7973
|
return Y.createElement(l, { className: Gv(o, this.pressed && i, Hv({ dragging: this.pressed, "hide-scrollbars": a, "native-scroll": this.isMobile })), style: s, ref: this.getRef, onScroll: this.onScroll }, r);
|
|
7942
7974
|
}, t.defaultProps = { nativeMobileScroll: !0, hideScrollbars: !0, activationDistance: 10, vertical: !0, horizontal: !0, stopPropagation: !1, style: {}, component: "div", buttons: [0] }, t;
|
|
7943
7975
|
}(fa);
|
|
7944
|
-
const Oh = ({
|
|
7945
|
-
|
|
7976
|
+
const Oh = ({
|
|
7977
|
+
className: e = "",
|
|
7978
|
+
data: t,
|
|
7979
|
+
isPortal: n = !0,
|
|
7980
|
+
onButtonStoryClick: r
|
|
7981
|
+
}) => {
|
|
7982
|
+
const [i, o] = Z(null), s = (p) => o(p), [a, l] = Z(t), { hasSeenAllStories: u, sortProfilesBySeenStatus: c } = po();
|
|
7946
7983
|
F(() => {
|
|
7947
|
-
|
|
7948
|
-
|
|
7984
|
+
l(
|
|
7985
|
+
c(t == null ? void 0 : t.filter((p) => p.stories.length))
|
|
7949
7986
|
);
|
|
7950
7987
|
}, [t]);
|
|
7951
|
-
const
|
|
7988
|
+
const d = a == null ? void 0 : a.findIndex((p) => p.id == i);
|
|
7952
7989
|
Aa({
|
|
7953
7990
|
targets: [document],
|
|
7954
|
-
scroll:
|
|
7991
|
+
scroll: i ? "OFF" : "ON"
|
|
7955
7992
|
});
|
|
7956
|
-
const
|
|
7957
|
-
|
|
7958
|
-
|
|
7959
|
-
),
|
|
7960
|
-
},
|
|
7961
|
-
/* @__PURE__ */
|
|
7993
|
+
const f = () => {
|
|
7994
|
+
l(
|
|
7995
|
+
c(t == null ? void 0 : t.filter((p) => p.stories.length))
|
|
7996
|
+
), o(null);
|
|
7997
|
+
}, v = () => i ? pa.createPortal(
|
|
7998
|
+
/* @__PURE__ */ C(
|
|
7962
7999
|
jv,
|
|
7963
8000
|
{
|
|
7964
|
-
stories:
|
|
7965
|
-
open:
|
|
7966
|
-
onClose:
|
|
7967
|
-
initialSlide:
|
|
8001
|
+
stories: a,
|
|
8002
|
+
open: i,
|
|
8003
|
+
onClose: f,
|
|
8004
|
+
initialSlide: d,
|
|
8005
|
+
onButtonStoryClick: r
|
|
7968
8006
|
}
|
|
7969
8007
|
),
|
|
7970
8008
|
document.body
|
|
7971
8009
|
) : null;
|
|
7972
|
-
return
|
|
7973
|
-
/* @__PURE__ */
|
|
8010
|
+
return a != null && a.length ? /* @__PURE__ */ U(jt, { children: [
|
|
8011
|
+
/* @__PURE__ */ C(
|
|
7974
8012
|
Wv,
|
|
7975
8013
|
{
|
|
7976
8014
|
className: Se(Rr.ScrollContainerClassName, e),
|
|
7977
|
-
children:
|
|
8015
|
+
children: a == null ? void 0 : a.map((p, h) => /* @__PURE__ */ C("div", { className: Rr.ItemClassName, children: /* @__PURE__ */ C(
|
|
7978
8016
|
fo,
|
|
7979
8017
|
{
|
|
7980
|
-
hasSeenAllStories:
|
|
7981
|
-
onProfileClick: () =>
|
|
7982
|
-
color:
|
|
7983
|
-
image:
|
|
7984
|
-
title:
|
|
8018
|
+
hasSeenAllStories: u(p),
|
|
8019
|
+
onProfileClick: () => s(p == null ? void 0 : p.id),
|
|
8020
|
+
color: p == null ? void 0 : p.color,
|
|
8021
|
+
image: p == null ? void 0 : p.avatar,
|
|
8022
|
+
title: p == null ? void 0 : p.name
|
|
7985
8023
|
},
|
|
7986
|
-
|
|
8024
|
+
p == null ? void 0 : p.id
|
|
7987
8025
|
) }))
|
|
7988
8026
|
}
|
|
7989
8027
|
),
|
|
7990
|
-
|
|
7991
|
-
] }) : /* @__PURE__ */
|
|
8028
|
+
i != null && v()
|
|
8029
|
+
] }) : /* @__PURE__ */ C(jt, {});
|
|
7992
8030
|
}, Uv = "_StoryPlayer_v4m0s_1", qv = "_Overlay_v4m0s_15", Yv = "_StoryPlayer__Wrap_v4m0s_25", Xv = "_progressContainer_v4m0s_37", Kv = "_CloseIcon_v4m0s_41", Zv = "_inline_v4m0s_57", Jv = "_progressBarContainer_v4m0s_75", Qv = "_progressBar_v4m0s_75", Me = {
|
|
7993
8031
|
StoryPlayer: Uv,
|
|
7994
8032
|
Overlay: qv,
|
|
@@ -8027,7 +8065,7 @@ function nh(e) {
|
|
|
8027
8065
|
return u(v);
|
|
8028
8066
|
} };
|
|
8029
8067
|
}
|
|
8030
|
-
return U(uo, { children: [
|
|
8068
|
+
return U(uo, { children: [C("div", q({ className: eh }, d(Ln.LEFT))), C("div", q({ className: th }, d(Ln.RIGHT)))] });
|
|
8031
8069
|
}
|
|
8032
8070
|
function cn() {
|
|
8033
8071
|
return ee(ua);
|
|
@@ -8057,20 +8095,20 @@ function oh(e) {
|
|
|
8057
8095
|
}) : function() {
|
|
8058
8096
|
r.current && (r.current = null), cancelAnimationFrame(r.current), i.current = null;
|
|
8059
8097
|
};
|
|
8060
|
-
}, [n]),
|
|
8098
|
+
}, [n]), C("div", q({ className: "".concat(rh, " ").concat((l == null ? void 0 : l.progressBarContainer) || ""), ref: c }, { children: C("div", { className: "".concat(ih, " ").concat((l == null ? void 0 : l.progressBar) || ""), ref: u }) }));
|
|
8061
8099
|
}
|
|
8062
8100
|
var sh = "progress-styles_wrapper__qQPyW";
|
|
8063
8101
|
function ah(e) {
|
|
8064
8102
|
var t = cn(), n = t.stories, r = t.classNames;
|
|
8065
|
-
return
|
|
8066
|
-
return
|
|
8103
|
+
return C("div", q({ className: "".concat(sh, " ").concat((r == null ? void 0 : r.progressContainer) || ""), style: { gridTemplateColumns: "repeat(".concat(n.length, ",1fr)") } }, { children: n.map(function(i) {
|
|
8104
|
+
return C(oh, { hasStoryPassed: i.index < e.activeStoryIndex, isActive: i.index === e.activeStoryIndex, story: i, isPaused: i.index === e.activeStoryIndex && e.isPaused }, i.index);
|
|
8067
8105
|
}) }));
|
|
8068
8106
|
}
|
|
8069
8107
|
var On = Object.freeze({ IMAGE: "image", VIDEO: "video", COMPONENT: "component" }), lh = "Story-styles_wrapper__oJP7j", uh = "Story-styles_header__-rnWL", ch = "Image-styles_image__gnfW1";
|
|
8070
8108
|
function dh(e) {
|
|
8071
8109
|
return F(function() {
|
|
8072
8110
|
e.onPause();
|
|
8073
|
-
}, []),
|
|
8111
|
+
}, []), C("img", { className: ch, src: e.story.url, alt: "story", onLoad: function() {
|
|
8074
8112
|
setTimeout(function() {
|
|
8075
8113
|
e.onResume();
|
|
8076
8114
|
}, 4);
|
|
@@ -8078,7 +8116,7 @@ function dh(e) {
|
|
|
8078
8116
|
}
|
|
8079
8117
|
var Dn, fh = "Video-styles_video__BykuO", ph = "Video-styles_loaderWrapper__TqVWk", vh = "Video-styles_loader__FxxSV", hh = "Video-styles_soundIcon__ZvYXE";
|
|
8080
8118
|
function mh(e) {
|
|
8081
|
-
return e.type === "off" ?
|
|
8119
|
+
return e.type === "off" ? C("svg", q({ xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", viewBox: "0 0 24 24", fill: "white" }, { children: C("path", { d: "M3 9v6h-1v-6h1zm13-7l-9 5v2.288l7-3.889v13.202l-7-3.889v2.288l9 5v-20zm-11 5h-5v10h5v-10zm17.324 4.993l1.646-1.659-1.324-1.324-1.651 1.67-1.665-1.648-1.316 1.318 1.67 1.657-1.65 1.669 1.318 1.317 1.658-1.672 1.666 1.653 1.324-1.325-1.676-1.656z" }) })) : C("svg", q({ xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", viewBox: "0 0 24 24", fill: "white" }, { children: C("path", { d: "M22 0v24l-11-6v-2.278l9 4.909v-17.262l-9 4.91v-2.279l11-6zm-13 6v12h-7v-12h7zm-2 2h-3v8h3v-8z" }) }));
|
|
8082
8120
|
}
|
|
8083
8121
|
var or = "RSIsMute", qe = typeof window > "u" ? {} : window;
|
|
8084
8122
|
function gh(e) {
|
|
@@ -8098,40 +8136,40 @@ function gh(e) {
|
|
|
8098
8136
|
setTimeout(function() {
|
|
8099
8137
|
e.onResume(), l(!1);
|
|
8100
8138
|
}, 4);
|
|
8101
|
-
}, muted: i }, { children: [
|
|
8139
|
+
}, muted: i }, { children: [C("source", { src: e.story.url, type: "video/mp4" }), C("source", { src: e.story.url, type: "video/webm" }), C("source", { src: e.story.url, type: "video/ogg" }), C("p", { children: "Video not supported" })] })), C("div", q({ className: hh, onClick: function() {
|
|
8102
8140
|
return c(!i);
|
|
8103
|
-
} }, { children:
|
|
8141
|
+
} }, { children: C(mh, { type: i ? "off" : "on" }) })), a && C("div", q({ className: ph }, { children: C("div", { className: vh }) }))] });
|
|
8104
8142
|
}
|
|
8105
8143
|
(Dn = qe == null ? void 0 : qe.localStorage) === null || Dn === void 0 || Dn.setItem(or, "true");
|
|
8106
8144
|
var yh = "CustomComponents-styles_component__w87Wx";
|
|
8107
8145
|
function Sh(e) {
|
|
8108
|
-
return
|
|
8146
|
+
return C("div", q({ className: yh }, { children: C(e.story.component, { pause: e.onPause, resume: e.onResume, story: e.story, isPaused: e.isPaused }) }));
|
|
8109
8147
|
}
|
|
8110
8148
|
var wh = "SeeMore-styles_seeMoreWrapper__kwjif", bh = "SeeMore-styles_defaultSeeMore__-B1QW";
|
|
8111
8149
|
function xh(e) {
|
|
8112
|
-
return e.story.seeMore ?
|
|
8150
|
+
return e.story.seeMore ? C("button", q({ type: "button", onClick: function() {
|
|
8113
8151
|
e.onSeeMoreClick();
|
|
8114
8152
|
}, className: wh }, { children: function() {
|
|
8115
8153
|
var t = e.story.seeMore, n = typeof t;
|
|
8116
8154
|
if (["string", "boolean"].includes(n)) {
|
|
8117
8155
|
var r = n === "string" ? t : "See More";
|
|
8118
|
-
return U("div", q({ className: bh }, { children: [
|
|
8156
|
+
return U("div", q({ className: bh }, { children: [C("span", { children: "^" }), C("p", { children: r })] }));
|
|
8119
8157
|
}
|
|
8120
|
-
return n === "function" ?
|
|
8158
|
+
return n === "function" ? C(e.story.seeMore, {}) : e.story.seeMore;
|
|
8121
8159
|
}() })) : null;
|
|
8122
8160
|
}
|
|
8123
8161
|
var Th = "SeeMoreComponent-styles_seeMoreComponentWrapper__0T6Ap", Ph = "SeeMoreComponent-styles_closeIcon__LMm3b";
|
|
8124
8162
|
function Eh(e) {
|
|
8125
|
-
return e.story.seeMore && e.story.seeMoreComponent ? U("div", q({ className: Th }, { children: [
|
|
8163
|
+
return e.story.seeMore && e.story.seeMoreComponent ? U("div", q({ className: Th }, { children: [C("button", q({ className: Ph, onClick: e.onClose }, { children: "✕" })), typeof e.story.seeMoreComponent == "function" ? C(e.story.seeMoreComponent, {}) : e.story.seeMoreComponent] })) : null;
|
|
8126
8164
|
}
|
|
8127
8165
|
function Ch(e) {
|
|
8128
8166
|
var t = Z(!1), n = t[0], r = t[1], i = cn().classNames;
|
|
8129
8167
|
return F(function() {
|
|
8130
8168
|
r(!1);
|
|
8131
|
-
}, [e.story]), U("div", q({ className: "".concat(lh, " ").concat((i == null ? void 0 : i.storyContainer) || "") }, { children: [e.story.type === On.IMAGE ?
|
|
8169
|
+
}, [e.story]), U("div", q({ className: "".concat(lh, " ").concat((i == null ? void 0 : i.storyContainer) || "") }, { children: [e.story.type === On.IMAGE ? C(dh, q({}, e)) : e.story.type === On.VIDEO ? C(gh, q({}, e)) : e.story.type === On.COMPONENT ? C(Sh, q({}, e)) : null, e.story.header && C("div", q({ className: uh }, { children: typeof e.story.header == "function" ? C(e.story.header, {}) : e.story.header })), C(xh, { onSeeMoreClick: function() {
|
|
8132
8170
|
var o, s;
|
|
8133
8171
|
e.onPause(), r(!0), (s = (o = e.story).onSeeMoreClick) === null || s === void 0 || s.call(o, e.story.index);
|
|
8134
|
-
}, story: e.story }), n &&
|
|
8172
|
+
}, story: e.story }), n && C(Eh, { story: e.story, onClose: function() {
|
|
8135
8173
|
e.onResume(), r(!1);
|
|
8136
8174
|
} })] }));
|
|
8137
8175
|
}
|
|
@@ -8141,17 +8179,17 @@ function ao(e) {
|
|
|
8141
8179
|
}
|
|
8142
8180
|
function Mh(e) {
|
|
8143
8181
|
var t, n, r, i, o, s, a, l = e.stories, u = l === void 0 ? [] : l, c = e.width, d = c === void 0 ? "100%" : c, f = e.height, v = f === void 0 ? "100%" : f, p = e.onStoryChange, h = p === void 0 ? function() {
|
|
8144
|
-
} : p, g = e.currentIndex, m = g === void 0 ? 0 : g,
|
|
8145
|
-
} : b,
|
|
8146
|
-
} :
|
|
8182
|
+
} : p, g = e.currentIndex, m = g === void 0 ? 0 : g, y = e.defaultDuration, S = y === void 0 ? 1e4 : y, b = e.onAllStoriesEnd, w = b === void 0 ? function() {
|
|
8183
|
+
} : b, _ = e.onStoriesStart, T = _ === void 0 ? function() {
|
|
8184
|
+
} : _, E = e.classNames, x = E === void 0 ? {} : E, P = e.pauseStoryWhenInActiveWindow, A = P === void 0 || P, I = mt(function() {
|
|
8147
8185
|
return function(z, ne) {
|
|
8148
8186
|
var he = 0;
|
|
8149
8187
|
return z.map(function(we, ca) {
|
|
8150
8188
|
var Dr = we.duration || ne, Tt = Dr + ao();
|
|
8151
8189
|
return Tt === he && (Tt = Dr + ao(6)), he = Tt, q(q({}, we), { index: ca, calculatedDuration: Tt });
|
|
8152
8190
|
});
|
|
8153
|
-
}(u,
|
|
8154
|
-
}, [u,
|
|
8191
|
+
}(u, S);
|
|
8192
|
+
}, [u, S]), L = Z(), N = L[0], j = L[1], D = u.length - 1, G = Z(!1), H = G[0], k = G[1], J = B(!1), ce = B(!1);
|
|
8155
8193
|
function Q() {
|
|
8156
8194
|
J.current || (N == null ? void 0 : N.index) !== D || (w(), J.current = !0), (N == null ? void 0 : N.index) !== D && j(function(z) {
|
|
8157
8195
|
if (!z) return I[0];
|
|
@@ -8166,8 +8204,8 @@ function Mh(e) {
|
|
|
8166
8204
|
k(!1);
|
|
8167
8205
|
}
|
|
8168
8206
|
F(function() {
|
|
8169
|
-
ce.current || (ce.current = !0,
|
|
8170
|
-
}, [
|
|
8207
|
+
ce.current || (ce.current = !0, T());
|
|
8208
|
+
}, [T]), F(function() {
|
|
8171
8209
|
var z = I[m];
|
|
8172
8210
|
z && j(z);
|
|
8173
8211
|
}, [m, u]), F(function() {
|
|
@@ -8210,8 +8248,8 @@ function Mh(e) {
|
|
|
8210
8248
|
}(function(z) {
|
|
8211
8249
|
A && k(!z);
|
|
8212
8250
|
});
|
|
8213
|
-
var O = { stories: I, width: d, height: v, defaultDuration:
|
|
8214
|
-
return N ?
|
|
8251
|
+
var O = { stories: I, width: d, height: v, defaultDuration: S, isPaused: H, classNames: x };
|
|
8252
|
+
return N ? C(ua.Provider, q({ value: O }, { children: U("div", q({ className: "".concat(_h, " ").concat(x.main || ""), style: { width: d, height: v } }, { children: [C(ah, { activeStoryIndex: N.index, isPaused: H }), C(Ch, { onPause: $, onResume: V, story: N, isPaused: H }, N.index), C(nh, { onNextClick: Q, onPrevClick: function() {
|
|
8215
8253
|
(N == null ? void 0 : N.index) !== 0 && j(function(z) {
|
|
8216
8254
|
if (!z) return I[0];
|
|
8217
8255
|
var ne = (z == null ? void 0 : z.index) - 1;
|
|
@@ -8233,7 +8271,7 @@ const Ah = ({
|
|
|
8233
8271
|
transition: { type: "spring", stiffness: 300, damping: 30 }
|
|
8234
8272
|
});
|
|
8235
8273
|
};
|
|
8236
|
-
return /* @__PURE__ */
|
|
8274
|
+
return /* @__PURE__ */ C(
|
|
8237
8275
|
oa.div,
|
|
8238
8276
|
{
|
|
8239
8277
|
ref: r,
|
|
@@ -8271,7 +8309,7 @@ const Ah = ({
|
|
|
8271
8309
|
}, f = () => {
|
|
8272
8310
|
n && n(), s && d();
|
|
8273
8311
|
};
|
|
8274
|
-
if ((e == null ? void 0 : e.length) == 0) return /* @__PURE__ */
|
|
8312
|
+
if ((e == null ? void 0 : e.length) == 0) return /* @__PURE__ */ C(jt, {});
|
|
8275
8313
|
const v = o ? ({ children: p }) => p : Ah;
|
|
8276
8314
|
return /* @__PURE__ */ U(
|
|
8277
8315
|
"div",
|
|
@@ -8280,10 +8318,10 @@ const Ah = ({
|
|
|
8280
8318
|
[Me.inline]: o
|
|
8281
8319
|
}),
|
|
8282
8320
|
children: [
|
|
8283
|
-
/* @__PURE__ */
|
|
8284
|
-
/* @__PURE__ */
|
|
8285
|
-
/* @__PURE__ */
|
|
8286
|
-
/* @__PURE__ */
|
|
8321
|
+
/* @__PURE__ */ C("div", { className: Me.Overlay, onClick: r }),
|
|
8322
|
+
/* @__PURE__ */ C("div", { className: Me.StoryPlayer__Wrap, children: /* @__PURE__ */ U(v, { onClose: a, children: [
|
|
8323
|
+
/* @__PURE__ */ C("div", { className: Me.CloseIcon, onClick: a, children: /* @__PURE__ */ C(aa, {}) }),
|
|
8324
|
+
/* @__PURE__ */ C(
|
|
8287
8325
|
Mh,
|
|
8288
8326
|
{
|
|
8289
8327
|
onStoryChange: i,
|