@maycolem/stories 26.0.0 → 28.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 +529 -492
- 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 +3 -2
- 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,74 @@ 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
|
-
|
|
3417
|
-
|
|
3418
|
-
|
|
3419
|
-
|
|
3420
|
-
|
|
3421
|
-
|
|
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__ */ C(Io, { onClick: () => t == null ? void 0 : t(e), children: e == null ? void 0 : e.btn_text }) }) }) : null
|
|
3436
|
+
] }), Yu = ({
|
|
3437
|
+
story: e,
|
|
3438
|
+
onButtonStoryClick: t
|
|
3439
|
+
}) => {
|
|
3440
|
+
const n = JSON.parse((e == null ? void 0 : e.coupon_result) ?? "{}");
|
|
3422
3441
|
return /* @__PURE__ */ U("div", { className: Se(nt.story), children: [
|
|
3423
|
-
/* @__PURE__ */
|
|
3424
|
-
/* @__PURE__ */
|
|
3442
|
+
/* @__PURE__ */ C("img", { src: e == null ? void 0 : e.image, alt: "" }),
|
|
3443
|
+
/* @__PURE__ */ C("div", { className: nt.BetSlip_Wrapper, children: /* @__PURE__ */ C(
|
|
3425
3444
|
Uu,
|
|
3426
3445
|
{
|
|
3427
|
-
slip: Cu.fromRaw(
|
|
3428
|
-
title: e == null ? void 0 : e.coupon_title
|
|
3446
|
+
slip: Cu.fromRaw(n),
|
|
3447
|
+
title: e == null ? void 0 : e.coupon_title,
|
|
3448
|
+
onButtonStoryClick: () => t == null ? void 0 : t(e)
|
|
3429
3449
|
}
|
|
3430
3450
|
) })
|
|
3431
3451
|
] });
|
|
@@ -3439,7 +3459,7 @@ const _u = "_BetSlip_1ysis_1", Mu = "_BetSlip_Title_1ysis_14", Au = "_SelectionI
|
|
|
3439
3459
|
color: n,
|
|
3440
3460
|
image: r
|
|
3441
3461
|
}) => /* @__PURE__ */ U("div", { className: bn.StoryHeaderPlayer, children: [
|
|
3442
|
-
/* @__PURE__ */
|
|
3462
|
+
/* @__PURE__ */ C(
|
|
3443
3463
|
fo,
|
|
3444
3464
|
{
|
|
3445
3465
|
className: bn.StoryHeaderPlayer__ProfileStory,
|
|
@@ -3448,7 +3468,7 @@ const _u = "_BetSlip_1ysis_1", Mu = "_BetSlip_Title_1ysis_14", Au = "_SelectionI
|
|
|
3448
3468
|
image: r
|
|
3449
3469
|
}
|
|
3450
3470
|
),
|
|
3451
|
-
/* @__PURE__ */
|
|
3471
|
+
/* @__PURE__ */ C("div", { className: bn.StoryHeaderPlayer__title, children: e == null ? void 0 : e.title })
|
|
3452
3472
|
] }), Qu = ({
|
|
3453
3473
|
story: e,
|
|
3454
3474
|
onChangeStory: t,
|
|
@@ -3456,83 +3476,90 @@ const _u = "_BetSlip_1ysis_1", Mu = "_BetSlip_Title_1ysis_14", Au = "_SelectionI
|
|
|
3456
3476
|
onLeft: r,
|
|
3457
3477
|
onRight: i,
|
|
3458
3478
|
play: o,
|
|
3459
|
-
initialIndex: s
|
|
3479
|
+
initialIndex: s,
|
|
3480
|
+
onButtonStoryClick: a
|
|
3460
3481
|
}) => {
|
|
3461
|
-
var
|
|
3462
|
-
const [
|
|
3463
|
-
const
|
|
3464
|
-
|
|
3465
|
-
},
|
|
3466
|
-
|
|
3467
|
-
|
|
3482
|
+
var w, _;
|
|
3483
|
+
const [l, u] = Z(!1), c = B(), d = B(!1), [f, v] = Z(s), p = B(null), h = (T) => {
|
|
3484
|
+
const E = p.current.getBoundingClientRect();
|
|
3485
|
+
T.clientX - E.left < E.width / 2 ? f == 0 ? r == null || r(-1) : (r == null || r(f - 1), v(f - 1)) : b();
|
|
3486
|
+
}, g = B(0), m = (T) => {
|
|
3487
|
+
g.current = T.clientX, u(!0), d.current = !1, c.current = window.setTimeout(() => {
|
|
3488
|
+
d.current = !0;
|
|
3468
3489
|
}, 200);
|
|
3469
|
-
},
|
|
3470
|
-
|
|
3471
|
-
}, S = (
|
|
3472
|
-
if (
|
|
3473
|
-
|
|
3490
|
+
}, y = (T) => {
|
|
3491
|
+
u(!1), clearTimeout(c.current);
|
|
3492
|
+
}, S = (T) => {
|
|
3493
|
+
if (d.current) {
|
|
3494
|
+
T.preventDefault();
|
|
3474
3495
|
return;
|
|
3475
3496
|
}
|
|
3476
|
-
|
|
3477
|
-
},
|
|
3478
|
-
var
|
|
3479
|
-
|
|
3497
|
+
h(T);
|
|
3498
|
+
}, b = () => {
|
|
3499
|
+
var T;
|
|
3500
|
+
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
3501
|
};
|
|
3481
3502
|
return F(() => {
|
|
3482
|
-
o && (t == null || t(
|
|
3483
|
-
}, [
|
|
3484
|
-
if (!o ||
|
|
3485
|
-
const
|
|
3486
|
-
|
|
3503
|
+
o && (t == null || t(f, e == null ? void 0 : e.stories[f]));
|
|
3504
|
+
}, [f, o]), F(() => {
|
|
3505
|
+
if (!o || l) return;
|
|
3506
|
+
const T = setTimeout(() => {
|
|
3507
|
+
b(), clearTimeout(T);
|
|
3487
3508
|
}, 7e3);
|
|
3488
3509
|
return () => {
|
|
3489
|
-
clearTimeout(
|
|
3510
|
+
clearTimeout(T);
|
|
3490
3511
|
};
|
|
3491
|
-
}, [
|
|
3512
|
+
}, [f, o, l]), /* @__PURE__ */ U(
|
|
3492
3513
|
"div",
|
|
3493
3514
|
{
|
|
3494
3515
|
className: _e.CardStory,
|
|
3495
3516
|
onClick: S,
|
|
3496
|
-
ref:
|
|
3497
|
-
onPointerDown:
|
|
3498
|
-
onPointerUp:
|
|
3499
|
-
onPointerLeave:
|
|
3517
|
+
ref: p,
|
|
3518
|
+
onPointerDown: m,
|
|
3519
|
+
onPointerUp: y,
|
|
3520
|
+
onPointerLeave: y,
|
|
3500
3521
|
children: [
|
|
3501
|
-
o && /* @__PURE__ */
|
|
3502
|
-
const
|
|
3503
|
-
return /* @__PURE__ */
|
|
3522
|
+
o && /* @__PURE__ */ C("div", { className: _e.CardStory_ProgressRoot, children: (w = e == null ? void 0 : e.stories) == null ? void 0 : w.map((T, E) => {
|
|
3523
|
+
const x = f > E, P = f < E, A = f == E;
|
|
3524
|
+
return /* @__PURE__ */ C(
|
|
3504
3525
|
"div",
|
|
3505
3526
|
{
|
|
3506
3527
|
className: Se(_e.CardStory_ProgressRoot_Track, {
|
|
3507
|
-
[_e.ProgressAnimate]:
|
|
3508
|
-
[_e.Complete]:
|
|
3509
|
-
[_e.NoComplete]:
|
|
3510
|
-
[_e.Pause]:
|
|
3528
|
+
[_e.ProgressAnimate]: A,
|
|
3529
|
+
[_e.Complete]: x,
|
|
3530
|
+
[_e.NoComplete]: P,
|
|
3531
|
+
[_e.Pause]: l
|
|
3511
3532
|
})
|
|
3512
3533
|
},
|
|
3513
|
-
|
|
3534
|
+
T == null ? void 0 : T.id
|
|
3514
3535
|
);
|
|
3515
3536
|
}) }),
|
|
3516
|
-
(
|
|
3537
|
+
(_ = e == null ? void 0 : e.stories) == null ? void 0 : _.map((T, E) => f != E ? null : /* @__PURE__ */ U(
|
|
3517
3538
|
"div",
|
|
3518
3539
|
{
|
|
3519
|
-
"data-card-story-index":
|
|
3540
|
+
"data-card-story-index": E,
|
|
3520
3541
|
className: Se(_e.Story, {
|
|
3521
|
-
active:
|
|
3542
|
+
active: f == E
|
|
3522
3543
|
}),
|
|
3523
3544
|
children: [
|
|
3524
|
-
/* @__PURE__ */
|
|
3525
|
-
|
|
3545
|
+
/* @__PURE__ */ C(
|
|
3546
|
+
qu,
|
|
3547
|
+
{
|
|
3548
|
+
story: T,
|
|
3549
|
+
onButtonStoryClick: a
|
|
3550
|
+
}
|
|
3551
|
+
),
|
|
3552
|
+
/* @__PURE__ */ C(
|
|
3526
3553
|
Ju,
|
|
3527
3554
|
{
|
|
3528
3555
|
color: e == null ? void 0 : e.color,
|
|
3529
3556
|
image: e == null ? void 0 : e.avatar,
|
|
3530
|
-
story:
|
|
3557
|
+
story: T
|
|
3531
3558
|
}
|
|
3532
3559
|
)
|
|
3533
3560
|
]
|
|
3534
3561
|
},
|
|
3535
|
-
|
|
3562
|
+
T == null ? void 0 : T.id
|
|
3536
3563
|
))
|
|
3537
3564
|
]
|
|
3538
3565
|
}
|
|
@@ -4408,17 +4435,17 @@ function td(e, t, n, r) {
|
|
|
4408
4435
|
if (g) {
|
|
4409
4436
|
var m = g.transitionEnd;
|
|
4410
4437
|
g.transition;
|
|
4411
|
-
var
|
|
4412
|
-
for (var
|
|
4413
|
-
var b = S
|
|
4438
|
+
var y = ue(g, ["transitionEnd", "transition"]);
|
|
4439
|
+
for (var S in y) {
|
|
4440
|
+
var b = y[S];
|
|
4414
4441
|
if (Array.isArray(b)) {
|
|
4415
4442
|
var w = f ? b.length - 1 : 0;
|
|
4416
4443
|
b = b[w];
|
|
4417
4444
|
}
|
|
4418
|
-
b !== null && (i[
|
|
4445
|
+
b !== null && (i[S] = b);
|
|
4419
4446
|
}
|
|
4420
|
-
for (var
|
|
4421
|
-
i[
|
|
4447
|
+
for (var S in m)
|
|
4448
|
+
i[S] = m[S];
|
|
4422
4449
|
}
|
|
4423
4450
|
});
|
|
4424
4451
|
}
|
|
@@ -4657,23 +4684,23 @@ function gr(e) {
|
|
|
4657
4684
|
const s = { done: !1, value: t };
|
|
4658
4685
|
let { stiffness: a, damping: l, mass: u, velocity: c, duration: d, isResolvedFromDuration: f } = Pd(o), v = li, p = li;
|
|
4659
4686
|
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(
|
|
4687
|
+
const g = c ? -(c / 1e3) : 0, m = n - t, y = l / (2 * Math.sqrt(a * u)), S = Math.sqrt(a / u) / 1e3;
|
|
4688
|
+
if (i === void 0 && (i = Math.min(Math.abs(n - t) / 100, 0.4)), y < 1) {
|
|
4689
|
+
const b = Un(S, y);
|
|
4663
4690
|
v = (w) => {
|
|
4664
|
-
const
|
|
4665
|
-
return n -
|
|
4691
|
+
const _ = Math.exp(-y * S * w);
|
|
4692
|
+
return n - _ * ((g + y * S * m) / b * Math.sin(b * w) + m * Math.cos(b * w));
|
|
4666
4693
|
}, p = (w) => {
|
|
4667
|
-
const
|
|
4668
|
-
return
|
|
4694
|
+
const _ = Math.exp(-y * S * w);
|
|
4695
|
+
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
4696
|
};
|
|
4670
|
-
} else if (
|
|
4671
|
-
v = (b) => n - Math.exp(-
|
|
4697
|
+
} else if (y === 1)
|
|
4698
|
+
v = (b) => n - Math.exp(-S * b) * (m + (g + S * m) * b);
|
|
4672
4699
|
else {
|
|
4673
|
-
const b =
|
|
4700
|
+
const b = S * Math.sqrt(y * y - 1);
|
|
4674
4701
|
v = (w) => {
|
|
4675
|
-
const
|
|
4676
|
-
return n -
|
|
4702
|
+
const _ = Math.exp(-y * S * w), T = Math.min(b * w, 300);
|
|
4703
|
+
return n - _ * ((g + y * S * m) * Math.sinh(T) + b * m * Math.cosh(T)) / b;
|
|
4677
4704
|
};
|
|
4678
4705
|
}
|
|
4679
4706
|
}
|
|
@@ -4683,8 +4710,8 @@ function gr(e) {
|
|
|
4683
4710
|
if (f)
|
|
4684
4711
|
s.done = g >= d;
|
|
4685
4712
|
else {
|
|
4686
|
-
const
|
|
4687
|
-
s.done =
|
|
4713
|
+
const y = p(g) * 1e3, S = Math.abs(y) <= r, b = Math.abs(n - m) <= i;
|
|
4714
|
+
s.done = S && b;
|
|
4688
4715
|
}
|
|
4689
4716
|
return s.value = s.done ? n : m, s;
|
|
4690
4717
|
},
|
|
@@ -4928,24 +4955,24 @@ const lf = (e) => {
|
|
|
4928
4955
|
};
|
|
4929
4956
|
function Pr(e) {
|
|
4930
4957
|
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 =
|
|
4958
|
+
let { to: g } = h, m, y = 0, S = h.duration, b, w = !1, _ = !0, T;
|
|
4959
|
+
const E = Qd(h);
|
|
4960
|
+
!((n = (t = E).needsInterpolation) === null || n === void 0) && n.call(t, r, g) && (T = yr([0, 100], [r, g], {
|
|
4934
4961
|
clamp: !1
|
|
4935
4962
|
}), r = 0, g = 100);
|
|
4936
|
-
const
|
|
4963
|
+
const x = E(Object.assign(Object.assign({}, h), { from: r, to: g }));
|
|
4937
4964
|
function P() {
|
|
4938
|
-
|
|
4965
|
+
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
4966
|
}
|
|
4940
4967
|
function A() {
|
|
4941
4968
|
m.stop(), f && f();
|
|
4942
4969
|
}
|
|
4943
4970
|
function I(N) {
|
|
4944
|
-
if (
|
|
4945
|
-
const j =
|
|
4946
|
-
b = j.value,
|
|
4971
|
+
if (_ || (N = -N), s += N, !w) {
|
|
4972
|
+
const j = x.next(Math.max(0, s));
|
|
4973
|
+
b = j.value, T && (b = T(b)), w = _ ? j.done : s <= 0;
|
|
4947
4974
|
}
|
|
4948
|
-
p == null || p(b), w && (
|
|
4975
|
+
p == null || p(b), w && (y === 0 && (S ?? (S = s)), y < a ? af(s, S, u, _) && P() : A());
|
|
4949
4976
|
}
|
|
4950
4977
|
function L() {
|
|
4951
4978
|
c == null || c(), m = o(I), m.start();
|
|
@@ -4961,35 +4988,35 @@ function As(e, t) {
|
|
|
4961
4988
|
}
|
|
4962
4989
|
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
4990
|
let p;
|
|
4964
|
-
function h(
|
|
4965
|
-
return n !== void 0 &&
|
|
4991
|
+
function h(S) {
|
|
4992
|
+
return n !== void 0 && S < n || r !== void 0 && S > r;
|
|
4966
4993
|
}
|
|
4967
|
-
function g(
|
|
4968
|
-
return n === void 0 ? r : r === void 0 || Math.abs(n -
|
|
4994
|
+
function g(S) {
|
|
4995
|
+
return n === void 0 ? r : r === void 0 || Math.abs(n - S) < Math.abs(r - S) ? n : r;
|
|
4969
4996
|
}
|
|
4970
|
-
function m(
|
|
4971
|
-
p == null || p.stop(), p = Pr(Object.assign(Object.assign({},
|
|
4997
|
+
function m(S) {
|
|
4998
|
+
p == null || p.stop(), p = Pr(Object.assign(Object.assign({}, S), {
|
|
4972
4999
|
driver: c,
|
|
4973
5000
|
onUpdate: (b) => {
|
|
4974
5001
|
var w;
|
|
4975
|
-
d == null || d(b), (w =
|
|
5002
|
+
d == null || d(b), (w = S.onUpdate) === null || w === void 0 || w.call(S, b);
|
|
4976
5003
|
},
|
|
4977
5004
|
onComplete: f,
|
|
4978
5005
|
onStop: v
|
|
4979
5006
|
}));
|
|
4980
5007
|
}
|
|
4981
|
-
function S
|
|
4982
|
-
m(Object.assign({ type: "spring", stiffness: s, damping: a, restDelta: l },
|
|
5008
|
+
function y(S) {
|
|
5009
|
+
m(Object.assign({ type: "spring", stiffness: s, damping: a, restDelta: l }, S));
|
|
4983
5010
|
}
|
|
4984
5011
|
if (h(e))
|
|
4985
|
-
|
|
5012
|
+
y({ from: e, velocity: t, to: g(e) });
|
|
4986
5013
|
else {
|
|
4987
|
-
let
|
|
4988
|
-
typeof u < "u" && (
|
|
4989
|
-
const b = g(
|
|
4990
|
-
let
|
|
4991
|
-
const
|
|
4992
|
-
|
|
5014
|
+
let S = i * t + e;
|
|
5015
|
+
typeof u < "u" && (S = u(S));
|
|
5016
|
+
const b = g(S), w = b === n ? -1 : 1;
|
|
5017
|
+
let _, T;
|
|
5018
|
+
const E = (x) => {
|
|
5019
|
+
_ = T, T = x, t = As(x - _, Zt().delta), (w === 1 && x > b || w === -1 && x < b) && y({ from: x, to: b, velocity: t });
|
|
4993
5020
|
};
|
|
4994
5021
|
m({
|
|
4995
5022
|
type: "decay",
|
|
@@ -4999,7 +5026,7 @@ function uf({ from: e = 0, velocity: t = 0, min: n, max: r, power: i = 0.8, time
|
|
|
4999
5026
|
power: i,
|
|
5000
5027
|
restDelta: l,
|
|
5001
5028
|
modifyTarget: u,
|
|
5002
|
-
onUpdate: h(
|
|
5029
|
+
onUpdate: h(S) ? E : void 0
|
|
5003
5030
|
});
|
|
5004
5031
|
}
|
|
5005
5032
|
return {
|
|
@@ -5556,11 +5583,11 @@ function ks(e, t, n) {
|
|
|
5556
5583
|
a && (d = a);
|
|
5557
5584
|
var p = [], h = l && ((r = e.animationState) === null || r === void 0 ? void 0 : r.getState()[l]);
|
|
5558
5585
|
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,
|
|
5586
|
+
var m = e.getValue(g), y = v[g];
|
|
5587
|
+
if (!(!m || y === void 0 || h && tp(h, g))) {
|
|
5588
|
+
var S = M({ delay: s }, d);
|
|
5589
|
+
e.shouldReduceMotion && St(g) && (S = M(M({}, S), { type: !1, delay: 0 }));
|
|
5590
|
+
var b = Mr(g, m, y, S);
|
|
5564
5591
|
p.push(b);
|
|
5565
5592
|
}
|
|
5566
5593
|
}
|
|
@@ -5627,43 +5654,43 @@ function op(e) {
|
|
|
5627
5654
|
t = c(e);
|
|
5628
5655
|
}
|
|
5629
5656
|
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 && !
|
|
5657
|
+
for (var f, v = e.getProps(), p = e.getVariantContext(!0) || {}, h = [], g = /* @__PURE__ */ new Set(), m = {}, y = 1 / 0, S = function(T) {
|
|
5658
|
+
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;
|
|
5659
|
+
I === !1 && (y = T);
|
|
5660
|
+
var L = P === p[E] && P !== v[E] && A;
|
|
5661
|
+
if (L && i && e.manuallyAnimateOnMount && (L = !1), x.protectedKeys = M({}, m), // If it isn't active and hasn't *just* been set as inactive
|
|
5662
|
+
!x.isActive && I === null || // If we didn't and don't have any defined prop for this animation type
|
|
5663
|
+
!P && !x.prevProp || // Or if the prop doesn't define an animation
|
|
5637
5664
|
hr(P) || typeof P == "boolean")
|
|
5638
5665
|
return "continue";
|
|
5639
|
-
var N = sp(
|
|
5640
|
-
|
|
5641
|
-
|
|
5666
|
+
var N = sp(x.prevProp, P), j = N || // If we're making this variant active, we want to always make it active
|
|
5667
|
+
E === d && x.isActive && !L && A || // If we removed a higher-priority variant (i is in reverse order)
|
|
5668
|
+
T > y && A, D = Array.isArray(P) ? P : [P], G = D.reduce(o, {});
|
|
5642
5669
|
I === !1 && (G = {});
|
|
5643
|
-
var H =
|
|
5644
|
-
j = !0, g.delete(O),
|
|
5670
|
+
var H = x.prevResolvedValues, k = H === void 0 ? {} : H, J = M(M({}, k), G), ce = function(O) {
|
|
5671
|
+
j = !0, g.delete(O), x.needsAnimating[O] = !0;
|
|
5645
5672
|
};
|
|
5646
5673
|
for (var Q in J) {
|
|
5647
5674
|
var $ = G[Q], V = k[Q];
|
|
5648
|
-
m.hasOwnProperty(Q) || ($ !== V ? pt($) && pt(V) ? !Bs($, V) || N ? ce(Q) :
|
|
5675
|
+
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
5676
|
}
|
|
5650
|
-
|
|
5677
|
+
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
5678
|
return {
|
|
5652
5679
|
animation: O,
|
|
5653
|
-
options: M({ type:
|
|
5680
|
+
options: M({ type: E }, c)
|
|
5654
5681
|
};
|
|
5655
5682
|
})), !1));
|
|
5656
5683
|
}, b = 0; b < rp; b++)
|
|
5657
|
-
|
|
5684
|
+
S(b);
|
|
5658
5685
|
if (r = M({}, m), g.size) {
|
|
5659
5686
|
var w = {};
|
|
5660
|
-
g.forEach(function(
|
|
5661
|
-
var
|
|
5662
|
-
|
|
5687
|
+
g.forEach(function(T) {
|
|
5688
|
+
var E = e.getBaseTarget(T);
|
|
5689
|
+
E !== void 0 && (w[T] = E);
|
|
5663
5690
|
}), h.push({ animation: w });
|
|
5664
5691
|
}
|
|
5665
|
-
var
|
|
5666
|
-
return i && v.initial === !1 && !e.manuallyAnimateOnMount && (
|
|
5692
|
+
var _ = !!h.length;
|
|
5693
|
+
return i && v.initial === !1 && !e.manuallyAnimateOnMount && (_ = !1), i = !1, _ ? t(h) : Promise.resolve();
|
|
5667
5694
|
}
|
|
5668
5695
|
function u(c, d, f) {
|
|
5669
5696
|
var v;
|
|
@@ -5730,8 +5757,8 @@ var lp = {
|
|
|
5730
5757
|
if (!(!v && !p)) {
|
|
5731
5758
|
var h = f.point, g = Zt().timestamp;
|
|
5732
5759
|
i.history.push(M(M({}, h), { timestamp: g }));
|
|
5733
|
-
var m = i.handlers,
|
|
5734
|
-
v || (
|
|
5760
|
+
var m = i.handlers, y = m.onStart, S = m.onMove;
|
|
5761
|
+
v || (y && y(i.lastMoveEvent, f), i.startEvent = i.lastMoveEvent), S && S(i.lastMoveEvent, f);
|
|
5735
5762
|
}
|
|
5736
5763
|
}
|
|
5737
5764
|
}, this.handlePointerMove = function(f, v) {
|
|
@@ -5985,26 +6012,26 @@ var Pp = /* @__PURE__ */ new WeakMap(), Ep = (
|
|
|
5985
6012
|
r.stopAnimation(), s && r.snapToCursor(mr(d, "page").point);
|
|
5986
6013
|
}, l = function(d, f) {
|
|
5987
6014
|
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
|
|
6015
|
+
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) {
|
|
6016
|
+
var S, b, w = r.getAxisMotionValue(y).get() || 0;
|
|
5990
6017
|
if (ye.test(w)) {
|
|
5991
|
-
var
|
|
5992
|
-
if (
|
|
5993
|
-
var
|
|
5994
|
-
w =
|
|
6018
|
+
var _ = (b = (S = r.visualElement.projection) === null || S === void 0 ? void 0 : S.layout) === null || b === void 0 ? void 0 : b.actual[y];
|
|
6019
|
+
if (_) {
|
|
6020
|
+
var T = Ee(_);
|
|
6021
|
+
w = T * (parseFloat(w) / 100);
|
|
5995
6022
|
}
|
|
5996
6023
|
}
|
|
5997
|
-
r.originPoint[
|
|
6024
|
+
r.originPoint[y] = w;
|
|
5998
6025
|
}), m == null || m(d, f), (v = r.visualElement.animationState) === null || v === void 0 || v.setActive(W.Drag, !0));
|
|
5999
6026
|
}, u = function(d, f) {
|
|
6000
6027
|
var v = r.getProps(), p = v.dragPropagation, h = v.dragDirectionLock, g = v.onDirectionLock, m = v.onDrag;
|
|
6001
6028
|
if (!(!p && !r.openGlobalLock)) {
|
|
6002
|
-
var
|
|
6029
|
+
var y = f.offset;
|
|
6003
6030
|
if (h && r.currentDirection === null) {
|
|
6004
|
-
r.currentDirection = Cp(
|
|
6031
|
+
r.currentDirection = Cp(y), r.currentDirection !== null && (g == null || g(r.currentDirection));
|
|
6005
6032
|
return;
|
|
6006
6033
|
}
|
|
6007
|
-
r.updateAxis("x", f.point,
|
|
6034
|
+
r.updateAxis("x", f.point, y), r.updateAxis("y", f.point, y), r.visualElement.syncRender(), m == null || m(d, f);
|
|
6008
6035
|
}
|
|
6009
6036
|
}, c = function(d, f) {
|
|
6010
6037
|
return r.stop(d, f);
|
|
@@ -6242,17 +6269,17 @@ function Vp(e, t, n) {
|
|
|
6242
6269
|
var Ys = function(e) {
|
|
6243
6270
|
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
6271
|
return function(f, v) {
|
|
6245
|
-
var p = f.parent, h = f.props, g = f.presenceId, m = f.blockInitialAnimation,
|
|
6272
|
+
var p = f.parent, h = f.props, g = f.presenceId, m = f.blockInitialAnimation, y = f.visualState, S = f.shouldReduceMotion;
|
|
6246
6273
|
v === void 0 && (v = {});
|
|
6247
|
-
var b = !1, w =
|
|
6274
|
+
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
6275
|
function N() {
|
|
6249
|
-
!
|
|
6276
|
+
!T || !b || (j(), a(T, _, h.style, $.projection));
|
|
6250
6277
|
}
|
|
6251
6278
|
function j() {
|
|
6252
|
-
r($,
|
|
6279
|
+
r($, _, w, v, h);
|
|
6253
6280
|
}
|
|
6254
6281
|
function D() {
|
|
6255
|
-
|
|
6282
|
+
E.notifyUpdate(w);
|
|
6256
6283
|
}
|
|
6257
6284
|
function G(V, O) {
|
|
6258
6285
|
var z = O.onChange(function(he) {
|
|
@@ -6284,7 +6311,7 @@ var Ys = function(e) {
|
|
|
6284
6311
|
*
|
|
6285
6312
|
*/
|
|
6286
6313
|
presenceId: g,
|
|
6287
|
-
shouldReduceMotion:
|
|
6314
|
+
shouldReduceMotion: S,
|
|
6288
6315
|
/**
|
|
6289
6316
|
* If this component is part of the variant tree, it should track
|
|
6290
6317
|
* any children that are also part of the tree. This is essentially
|
|
@@ -6318,10 +6345,10 @@ var Ys = function(e) {
|
|
|
6318
6345
|
* own animations on mount.
|
|
6319
6346
|
*/
|
|
6320
6347
|
isMounted: function() {
|
|
6321
|
-
return !!
|
|
6348
|
+
return !!T;
|
|
6322
6349
|
},
|
|
6323
6350
|
mount: function(V) {
|
|
6324
|
-
b = !0,
|
|
6351
|
+
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
6352
|
return G(z, O);
|
|
6326
6353
|
}), p == null || p.children.add($), $.setProps(h);
|
|
6327
6354
|
},
|
|
@@ -6332,7 +6359,7 @@ var Ys = function(e) {
|
|
|
6332
6359
|
var V;
|
|
6333
6360
|
(V = $.projection) === null || V === void 0 || V.unmount(), Ze.update(D), Ze.render(N), P.forEach(function(O) {
|
|
6334
6361
|
return O();
|
|
6335
|
-
}), L == null || L(), p == null || p.children.delete($),
|
|
6362
|
+
}), L == null || L(), p == null || p.children.delete($), E.clearAllListeners(), T = void 0, b = !1;
|
|
6336
6363
|
},
|
|
6337
6364
|
/**
|
|
6338
6365
|
* Add a child visual element to our set of children.
|
|
@@ -6364,7 +6391,7 @@ var Ys = function(e) {
|
|
|
6364
6391
|
* Returns the current instance.
|
|
6365
6392
|
*/
|
|
6366
6393
|
getInstance: function() {
|
|
6367
|
-
return
|
|
6394
|
+
return T;
|
|
6368
6395
|
},
|
|
6369
6396
|
/**
|
|
6370
6397
|
* Get/set the latest static values.
|
|
@@ -6406,41 +6433,41 @@ var Ys = function(e) {
|
|
|
6406
6433
|
* removed with a re-render to work.
|
|
6407
6434
|
*/
|
|
6408
6435
|
measureViewportBox: function() {
|
|
6409
|
-
return s(
|
|
6436
|
+
return s(T, h);
|
|
6410
6437
|
},
|
|
6411
6438
|
// Motion values ========================
|
|
6412
6439
|
/**
|
|
6413
6440
|
* Add a motion value and bind it to this visual element.
|
|
6414
6441
|
*/
|
|
6415
6442
|
addValue: function(V, O) {
|
|
6416
|
-
$.hasValue(V) && $.removeValue(V),
|
|
6443
|
+
$.hasValue(V) && $.removeValue(V), x.set(V, O), w[V] = O.get(), G(V, O);
|
|
6417
6444
|
},
|
|
6418
6445
|
/**
|
|
6419
6446
|
* Remove a motion value and unbind any active subscriptions.
|
|
6420
6447
|
*/
|
|
6421
6448
|
removeValue: function(V) {
|
|
6422
6449
|
var O;
|
|
6423
|
-
|
|
6450
|
+
x.delete(V), (O = P.get(V)) === null || O === void 0 || O(), P.delete(V), delete w[V], u(V, _);
|
|
6424
6451
|
},
|
|
6425
6452
|
/**
|
|
6426
6453
|
* Check whether we have a motion value for this key
|
|
6427
6454
|
*/
|
|
6428
6455
|
hasValue: function(V) {
|
|
6429
|
-
return
|
|
6456
|
+
return x.has(V);
|
|
6430
6457
|
},
|
|
6431
6458
|
/**
|
|
6432
6459
|
* Get a motion value for this key. If called with a default
|
|
6433
6460
|
* value, we'll create one if none exists.
|
|
6434
6461
|
*/
|
|
6435
6462
|
getValue: function(V, O) {
|
|
6436
|
-
var z =
|
|
6463
|
+
var z = x.get(V);
|
|
6437
6464
|
return z === void 0 && O !== void 0 && (z = je(O), $.addValue(V, z)), z;
|
|
6438
6465
|
},
|
|
6439
6466
|
/**
|
|
6440
6467
|
* Iterate over our motion values.
|
|
6441
6468
|
*/
|
|
6442
6469
|
forEachValue: function(V) {
|
|
6443
|
-
return
|
|
6470
|
+
return x.forEach(V);
|
|
6444
6471
|
},
|
|
6445
6472
|
/**
|
|
6446
6473
|
* If we're trying to animate to a previously unencountered value,
|
|
@@ -6449,7 +6476,7 @@ var Ys = function(e) {
|
|
|
6449
6476
|
*/
|
|
6450
6477
|
readValue: function(V) {
|
|
6451
6478
|
var O;
|
|
6452
|
-
return (O = w[V]) !== null && O !== void 0 ? O : l(
|
|
6479
|
+
return (O = w[V]) !== null && O !== void 0 ? O : l(T, V, v);
|
|
6453
6480
|
},
|
|
6454
6481
|
/**
|
|
6455
6482
|
* Set the base target to later animate back to. This is currently
|
|
@@ -6470,12 +6497,12 @@ var Ys = function(e) {
|
|
|
6470
6497
|
}
|
|
6471
6498
|
return I[V];
|
|
6472
6499
|
}
|
|
6473
|
-
},
|
|
6500
|
+
}, E), {
|
|
6474
6501
|
/**
|
|
6475
6502
|
* Build the renderer state based on the latest visual state.
|
|
6476
6503
|
*/
|
|
6477
6504
|
build: function() {
|
|
6478
|
-
return j(),
|
|
6505
|
+
return j(), _;
|
|
6479
6506
|
},
|
|
6480
6507
|
/**
|
|
6481
6508
|
* Schedule a render on the next animation frame.
|
|
@@ -6495,7 +6522,7 @@ var Ys = function(e) {
|
|
|
6495
6522
|
* added to our map, old ones removed, and listeners updated.
|
|
6496
6523
|
*/
|
|
6497
6524
|
setProps: function(V) {
|
|
6498
|
-
(V.transformTemplate || h.transformTemplate) && $.scheduleRender(), h = V,
|
|
6525
|
+
(V.transformTemplate || h.transformTemplate) && $.scheduleRender(), h = V, E.updatePropListeners(V), A = Vp($, d(h), A);
|
|
6499
6526
|
},
|
|
6500
6527
|
getProps: function() {
|
|
6501
6528
|
return h;
|
|
@@ -6670,14 +6697,14 @@ var ji = {
|
|
|
6670
6697
|
if (pt(p)) {
|
|
6671
6698
|
var g = p.length, m = p[0] === null ? 1 : 0;
|
|
6672
6699
|
f = p[m], v = Qe(f);
|
|
6673
|
-
for (var
|
|
6674
|
-
h ? ae(Qe(p[
|
|
6700
|
+
for (var y = m; y < g; y++)
|
|
6701
|
+
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
6702
|
} else
|
|
6676
6703
|
h = Qe(p);
|
|
6677
6704
|
if (v !== h)
|
|
6678
6705
|
if (Dt(v) && Dt(h)) {
|
|
6679
|
-
var
|
|
6680
|
-
typeof
|
|
6706
|
+
var S = d.get();
|
|
6707
|
+
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
6708
|
} 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
6709
|
}
|
|
6683
6710
|
}), a.length) {
|
|
@@ -7058,18 +7085,18 @@ function ia(e) {
|
|
|
7058
7085
|
});
|
|
7059
7086
|
}
|
|
7060
7087
|
f && this.root.registerSharedNode(f, this), this.options.animate !== !1 && p && (f || v) && this.addEventListener("didUpdate", function(m) {
|
|
7061
|
-
var
|
|
7088
|
+
var y, S, b, w, _, T = m.delta, E = m.hasLayoutChanged, x = m.hasRelativeTargetChanged, P = m.layout;
|
|
7062
7089
|
if (u.isTreeAnimationBlocked()) {
|
|
7063
7090
|
u.target = void 0, u.relativeTarget = void 0;
|
|
7064
7091
|
return;
|
|
7065
7092
|
}
|
|
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(
|
|
7093
|
+
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;
|
|
7094
|
+
if (!((b = u.resumeFrom) === null || b === void 0) && b.instance || D || E && (j || !u.currentAnimation)) {
|
|
7095
|
+
u.resumeFrom && (u.resumingFrom = u.resumeFrom, u.resumingFrom.resumingFrom = void 0), u.setAnimationOrigin(T, D);
|
|
7069
7096
|
var G = M(M({}, _r(A, "layout")), { onPlay: L, onComplete: N });
|
|
7070
7097
|
p.shouldReduceMotion && (G.delay = 0, G.type = !1), u.startAnimation(G);
|
|
7071
7098
|
} else
|
|
7072
|
-
!
|
|
7099
|
+
!E && u.animationProgress === 0 && u.finishAnimation(), u.isLead() && ((_ = (w = u.options).onExitComplete) === null || _ === void 0 || _.call(w));
|
|
7073
7100
|
u.targetLayout = P;
|
|
7074
7101
|
});
|
|
7075
7102
|
}
|
|
@@ -7237,10 +7264,10 @@ function ia(e) {
|
|
|
7237
7264
|
l === void 0 && (l = !1);
|
|
7238
7265
|
var d = this.snapshot, f = (d == null ? void 0 : d.latestValues) || {}, v = M({}, this.latestValues), p = ut();
|
|
7239
7266
|
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,
|
|
7267
|
+
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));
|
|
7268
|
+
this.animationProgress = 0, this.mixTargetDelta = function(S) {
|
|
7269
|
+
var b, w = S / 1e3;
|
|
7270
|
+
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
7271
|
}, this.mixTargetDelta(0);
|
|
7245
7272
|
}, s.prototype.startAnimation = function(a) {
|
|
7246
7273
|
var l = this, u, c;
|
|
@@ -7321,18 +7348,18 @@ function ia(e) {
|
|
|
7321
7348
|
var m = {};
|
|
7322
7349
|
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
7350
|
}
|
|
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[
|
|
7351
|
+
var y = g.animationValues || g.latestValues;
|
|
7352
|
+
this.applyTransformsToTarget(), p.transform = Zi(this.projectionDeltaWithTransform, this.treeScale, y), h && (p.transform = h(y, p.transform));
|
|
7353
|
+
var S = this.projectionDelta, b = S.x, w = S.y;
|
|
7354
|
+
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;
|
|
7355
|
+
for (var _ in Ut)
|
|
7356
|
+
if (y[_] !== void 0) {
|
|
7357
|
+
var T = Ut[_], E = T.correct, x = T.applyTo, P = E(y[_], g);
|
|
7358
|
+
if (x)
|
|
7359
|
+
for (var A = x.length, I = 0; I < A; I++)
|
|
7360
|
+
p[x[I]] = P;
|
|
7334
7361
|
else
|
|
7335
|
-
p[
|
|
7362
|
+
p[_] = P;
|
|
7336
7363
|
}
|
|
7337
7364
|
return this.options.layoutId && (p.pointerEvents = g === this ? Bt(a.pointerEvents) || "" : "none"), p;
|
|
7338
7365
|
}, s.prototype.clearSnapshot = function() {
|
|
@@ -7353,12 +7380,12 @@ function pv(e) {
|
|
|
7353
7380
|
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
7381
|
if (e.isLead() && e.layout && o && e.hasListeners("didUpdate")) {
|
|
7355
7382
|
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
|
-
|
|
7383
|
+
e.options.animationType === "size" ? me(function(y) {
|
|
7384
|
+
var S = o.isShared ? o.measured[y] : o.layout[y], b = Ee(S);
|
|
7385
|
+
S.min = a[y].min, S.max = S.min + b;
|
|
7386
|
+
}) : e.options.animationType === "position" && me(function(y) {
|
|
7387
|
+
var S = o.isShared ? o.measured[y] : o.layout[y], b = Ee(a[y]);
|
|
7388
|
+
S.max = S.min + b;
|
|
7362
7389
|
});
|
|
7363
7390
|
var u = ut();
|
|
7364
7391
|
at(u, a, o.layout);
|
|
@@ -7613,7 +7640,7 @@ function Fv({
|
|
|
7613
7640
|
onDragProgress: r
|
|
7614
7641
|
}) {
|
|
7615
7642
|
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__ */
|
|
7643
|
+
return /* @__PURE__ */ C(
|
|
7617
7644
|
oa.div,
|
|
7618
7645
|
{
|
|
7619
7646
|
style: {
|
|
@@ -7645,7 +7672,7 @@ const aa = ({
|
|
|
7645
7672
|
height: t = "100%",
|
|
7646
7673
|
fill: n = "white",
|
|
7647
7674
|
...r
|
|
7648
|
-
}) => /* @__PURE__ */
|
|
7675
|
+
}) => /* @__PURE__ */ C(
|
|
7649
7676
|
"svg",
|
|
7650
7677
|
{
|
|
7651
7678
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -7654,7 +7681,7 @@ const aa = ({
|
|
|
7654
7681
|
fill: "none",
|
|
7655
7682
|
viewBox: "0 0 24 24",
|
|
7656
7683
|
...r,
|
|
7657
|
-
children: /* @__PURE__ */
|
|
7684
|
+
children: /* @__PURE__ */ C(
|
|
7658
7685
|
"path",
|
|
7659
7686
|
{
|
|
7660
7687
|
fill: n,
|
|
@@ -7686,57 +7713,59 @@ function jv({
|
|
|
7686
7713
|
stories: e,
|
|
7687
7714
|
open: t,
|
|
7688
7715
|
onClose: n,
|
|
7689
|
-
initialSlide: r
|
|
7716
|
+
initialSlide: r,
|
|
7717
|
+
onButtonStoryClick: i
|
|
7690
7718
|
}) {
|
|
7691
|
-
const [
|
|
7719
|
+
const [o, s] = Z(!1), a = B(null), l = B(null);
|
|
7692
7720
|
console.log(r);
|
|
7693
|
-
const [
|
|
7721
|
+
const [u, c] = Z(r);
|
|
7694
7722
|
zv(t, () => n == null ? void 0 : n());
|
|
7695
7723
|
const {
|
|
7696
|
-
markStorySeen:
|
|
7697
|
-
getNextUnseenStoryIndex:
|
|
7724
|
+
markStorySeen: d,
|
|
7725
|
+
getNextUnseenStoryIndex: f
|
|
7698
7726
|
} = po({ container: "HOME" });
|
|
7699
|
-
return t ? /* @__PURE__ */
|
|
7700
|
-
/* @__PURE__ */
|
|
7701
|
-
/* @__PURE__ */
|
|
7727
|
+
return t ? /* @__PURE__ */ C("div", { className: Ct.StoryCube, children: /* @__PURE__ */ U("div", { className: Ct.AtSwiperCubeWrap, ref: a, children: [
|
|
7728
|
+
/* @__PURE__ */ C("div", { className: Ct.CloseIcon, onClick: n, children: /* @__PURE__ */ C(aa, {}) }),
|
|
7729
|
+
/* @__PURE__ */ C(Fv, { disabled: !1, onClose: n, children: /* @__PURE__ */ C(
|
|
7702
7730
|
Mo,
|
|
7703
7731
|
{
|
|
7704
7732
|
modules: [uu, au],
|
|
7705
7733
|
effect: "cube",
|
|
7706
|
-
onSliderMove: () =>
|
|
7707
|
-
onTransitionEnd: () =>
|
|
7708
|
-
onSwiper: (
|
|
7734
|
+
onSliderMove: () => s(!0),
|
|
7735
|
+
onTransitionEnd: () => s(!1),
|
|
7736
|
+
onSwiper: (v) => l.current = v,
|
|
7709
7737
|
cubeEffect: {
|
|
7710
7738
|
shadow: !1,
|
|
7711
7739
|
slideShadows: !1
|
|
7712
7740
|
},
|
|
7713
7741
|
className: Ct.AtSwiperCube,
|
|
7714
|
-
onSlideChange: (
|
|
7715
|
-
|
|
7742
|
+
onSlideChange: (v) => {
|
|
7743
|
+
c(v.activeIndex);
|
|
7716
7744
|
},
|
|
7717
|
-
initialSlide:
|
|
7718
|
-
children: e == null ? void 0 : e.map((
|
|
7745
|
+
initialSlide: u,
|
|
7746
|
+
children: e == null ? void 0 : e.map((v, p) => (console.log(v.id), console.log(
|
|
7719
7747
|
"getNextUnseenStoryIndex=> ",
|
|
7720
|
-
|
|
7721
|
-
), /* @__PURE__ */
|
|
7748
|
+
f(v)
|
|
7749
|
+
), /* @__PURE__ */ C(Ao, { children: /* @__PURE__ */ C(
|
|
7722
7750
|
Qu,
|
|
7723
7751
|
{
|
|
7724
|
-
|
|
7725
|
-
|
|
7726
|
-
|
|
7727
|
-
|
|
7728
|
-
|
|
7752
|
+
onButtonStoryClick: i,
|
|
7753
|
+
initialIndex: f(v),
|
|
7754
|
+
play: u == p,
|
|
7755
|
+
story: v,
|
|
7756
|
+
onChangeStory: (h, g) => {
|
|
7757
|
+
d(v == null ? void 0 : v.id, g == null ? void 0 : g.id);
|
|
7729
7758
|
},
|
|
7730
7759
|
onAllStoriesEnd: () => {
|
|
7731
|
-
var p;
|
|
7732
|
-
(p = a.current) == null || p.slideNext();
|
|
7733
|
-
},
|
|
7734
|
-
onLeft: (p) => {
|
|
7735
7760
|
var h;
|
|
7736
|
-
|
|
7761
|
+
(h = l.current) == null || h.slideNext();
|
|
7762
|
+
},
|
|
7763
|
+
onLeft: (h) => {
|
|
7764
|
+
var g;
|
|
7765
|
+
h == -1 && ((g = l.current) == null || g.slidePrev());
|
|
7737
7766
|
}
|
|
7738
7767
|
}
|
|
7739
|
-
) },
|
|
7768
|
+
) }, v == null ? void 0 : v.id)))
|
|
7740
7769
|
}
|
|
7741
7770
|
) })
|
|
7742
7771
|
] }) }) : null;
|
|
@@ -7941,54 +7970,62 @@ var Vn, Hv = (Vn = "indiana-scroll-container", function(e, t) {
|
|
|
7941
7970
|
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
7971
|
}, t.defaultProps = { nativeMobileScroll: !0, hideScrollbars: !0, activationDistance: 10, vertical: !0, horizontal: !0, stopPropagation: !1, style: {}, component: "div", buttons: [0] }, t;
|
|
7943
7972
|
}(fa);
|
|
7944
|
-
const Oh = ({
|
|
7945
|
-
|
|
7973
|
+
const Oh = ({
|
|
7974
|
+
className: e = "",
|
|
7975
|
+
data: t,
|
|
7976
|
+
isPortal: n = !0,
|
|
7977
|
+
onButtonStoryClick: r
|
|
7978
|
+
}) => {
|
|
7979
|
+
const [i, o] = Z(null), s = (p) => o(p), [a, l] = Z(t), { hasSeenAllStories: u, sortProfilesBySeenStatus: c } = po();
|
|
7946
7980
|
F(() => {
|
|
7947
|
-
|
|
7948
|
-
|
|
7981
|
+
l(
|
|
7982
|
+
c(t == null ? void 0 : t.filter((p) => p.stories.length))
|
|
7949
7983
|
);
|
|
7950
7984
|
}, [t]);
|
|
7951
|
-
const
|
|
7985
|
+
const d = a == null ? void 0 : a.findIndex((p) => p.id == i);
|
|
7952
7986
|
Aa({
|
|
7953
7987
|
targets: [document],
|
|
7954
|
-
scroll:
|
|
7988
|
+
scroll: i ? "OFF" : "ON"
|
|
7955
7989
|
});
|
|
7956
|
-
const
|
|
7957
|
-
|
|
7958
|
-
|
|
7959
|
-
),
|
|
7960
|
-
},
|
|
7961
|
-
/* @__PURE__ */
|
|
7990
|
+
const f = () => {
|
|
7991
|
+
l(
|
|
7992
|
+
c(t == null ? void 0 : t.filter((p) => p.stories.length))
|
|
7993
|
+
), o(null);
|
|
7994
|
+
}, v = () => i ? pa.createPortal(
|
|
7995
|
+
/* @__PURE__ */ C(
|
|
7962
7996
|
jv,
|
|
7963
7997
|
{
|
|
7964
|
-
stories:
|
|
7965
|
-
open:
|
|
7966
|
-
onClose:
|
|
7967
|
-
initialSlide:
|
|
7998
|
+
stories: a,
|
|
7999
|
+
open: i,
|
|
8000
|
+
onClose: f,
|
|
8001
|
+
initialSlide: d,
|
|
8002
|
+
onButtonStoryClick: (p) => {
|
|
8003
|
+
f(), r == null || r(p);
|
|
8004
|
+
}
|
|
7968
8005
|
}
|
|
7969
8006
|
),
|
|
7970
8007
|
document.body
|
|
7971
8008
|
) : null;
|
|
7972
|
-
return
|
|
7973
|
-
/* @__PURE__ */
|
|
8009
|
+
return a != null && a.length ? /* @__PURE__ */ U(jt, { children: [
|
|
8010
|
+
/* @__PURE__ */ C(
|
|
7974
8011
|
Wv,
|
|
7975
8012
|
{
|
|
7976
8013
|
className: Se(Rr.ScrollContainerClassName, e),
|
|
7977
|
-
children:
|
|
8014
|
+
children: a == null ? void 0 : a.map((p, h) => /* @__PURE__ */ C("div", { className: Rr.ItemClassName, children: /* @__PURE__ */ C(
|
|
7978
8015
|
fo,
|
|
7979
8016
|
{
|
|
7980
|
-
hasSeenAllStories:
|
|
7981
|
-
onProfileClick: () =>
|
|
7982
|
-
color:
|
|
7983
|
-
image:
|
|
7984
|
-
title:
|
|
8017
|
+
hasSeenAllStories: u(p),
|
|
8018
|
+
onProfileClick: () => s(p == null ? void 0 : p.id),
|
|
8019
|
+
color: p == null ? void 0 : p.color,
|
|
8020
|
+
image: p == null ? void 0 : p.avatar,
|
|
8021
|
+
title: p == null ? void 0 : p.name
|
|
7985
8022
|
},
|
|
7986
|
-
|
|
8023
|
+
p == null ? void 0 : p.id
|
|
7987
8024
|
) }))
|
|
7988
8025
|
}
|
|
7989
8026
|
),
|
|
7990
|
-
|
|
7991
|
-
] }) : /* @__PURE__ */
|
|
8027
|
+
i != null && v()
|
|
8028
|
+
] }) : /* @__PURE__ */ C(jt, {});
|
|
7992
8029
|
}, 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
8030
|
StoryPlayer: Uv,
|
|
7994
8031
|
Overlay: qv,
|
|
@@ -8027,7 +8064,7 @@ function nh(e) {
|
|
|
8027
8064
|
return u(v);
|
|
8028
8065
|
} };
|
|
8029
8066
|
}
|
|
8030
|
-
return U(uo, { children: [
|
|
8067
|
+
return U(uo, { children: [C("div", q({ className: eh }, d(Ln.LEFT))), C("div", q({ className: th }, d(Ln.RIGHT)))] });
|
|
8031
8068
|
}
|
|
8032
8069
|
function cn() {
|
|
8033
8070
|
return ee(ua);
|
|
@@ -8057,20 +8094,20 @@ function oh(e) {
|
|
|
8057
8094
|
}) : function() {
|
|
8058
8095
|
r.current && (r.current = null), cancelAnimationFrame(r.current), i.current = null;
|
|
8059
8096
|
};
|
|
8060
|
-
}, [n]),
|
|
8097
|
+
}, [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
8098
|
}
|
|
8062
8099
|
var sh = "progress-styles_wrapper__qQPyW";
|
|
8063
8100
|
function ah(e) {
|
|
8064
8101
|
var t = cn(), n = t.stories, r = t.classNames;
|
|
8065
|
-
return
|
|
8066
|
-
return
|
|
8102
|
+
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) {
|
|
8103
|
+
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
8104
|
}) }));
|
|
8068
8105
|
}
|
|
8069
8106
|
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
8107
|
function dh(e) {
|
|
8071
8108
|
return F(function() {
|
|
8072
8109
|
e.onPause();
|
|
8073
|
-
}, []),
|
|
8110
|
+
}, []), C("img", { className: ch, src: e.story.url, alt: "story", onLoad: function() {
|
|
8074
8111
|
setTimeout(function() {
|
|
8075
8112
|
e.onResume();
|
|
8076
8113
|
}, 4);
|
|
@@ -8078,7 +8115,7 @@ function dh(e) {
|
|
|
8078
8115
|
}
|
|
8079
8116
|
var Dn, fh = "Video-styles_video__BykuO", ph = "Video-styles_loaderWrapper__TqVWk", vh = "Video-styles_loader__FxxSV", hh = "Video-styles_soundIcon__ZvYXE";
|
|
8080
8117
|
function mh(e) {
|
|
8081
|
-
return e.type === "off" ?
|
|
8118
|
+
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
8119
|
}
|
|
8083
8120
|
var or = "RSIsMute", qe = typeof window > "u" ? {} : window;
|
|
8084
8121
|
function gh(e) {
|
|
@@ -8098,40 +8135,40 @@ function gh(e) {
|
|
|
8098
8135
|
setTimeout(function() {
|
|
8099
8136
|
e.onResume(), l(!1);
|
|
8100
8137
|
}, 4);
|
|
8101
|
-
}, muted: i }, { children: [
|
|
8138
|
+
}, 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
8139
|
return c(!i);
|
|
8103
|
-
} }, { children:
|
|
8140
|
+
} }, { children: C(mh, { type: i ? "off" : "on" }) })), a && C("div", q({ className: ph }, { children: C("div", { className: vh }) }))] });
|
|
8104
8141
|
}
|
|
8105
8142
|
(Dn = qe == null ? void 0 : qe.localStorage) === null || Dn === void 0 || Dn.setItem(or, "true");
|
|
8106
8143
|
var yh = "CustomComponents-styles_component__w87Wx";
|
|
8107
8144
|
function Sh(e) {
|
|
8108
|
-
return
|
|
8145
|
+
return C("div", q({ className: yh }, { children: C(e.story.component, { pause: e.onPause, resume: e.onResume, story: e.story, isPaused: e.isPaused }) }));
|
|
8109
8146
|
}
|
|
8110
8147
|
var wh = "SeeMore-styles_seeMoreWrapper__kwjif", bh = "SeeMore-styles_defaultSeeMore__-B1QW";
|
|
8111
8148
|
function xh(e) {
|
|
8112
|
-
return e.story.seeMore ?
|
|
8149
|
+
return e.story.seeMore ? C("button", q({ type: "button", onClick: function() {
|
|
8113
8150
|
e.onSeeMoreClick();
|
|
8114
8151
|
}, className: wh }, { children: function() {
|
|
8115
8152
|
var t = e.story.seeMore, n = typeof t;
|
|
8116
8153
|
if (["string", "boolean"].includes(n)) {
|
|
8117
8154
|
var r = n === "string" ? t : "See More";
|
|
8118
|
-
return U("div", q({ className: bh }, { children: [
|
|
8155
|
+
return U("div", q({ className: bh }, { children: [C("span", { children: "^" }), C("p", { children: r })] }));
|
|
8119
8156
|
}
|
|
8120
|
-
return n === "function" ?
|
|
8157
|
+
return n === "function" ? C(e.story.seeMore, {}) : e.story.seeMore;
|
|
8121
8158
|
}() })) : null;
|
|
8122
8159
|
}
|
|
8123
8160
|
var Th = "SeeMoreComponent-styles_seeMoreComponentWrapper__0T6Ap", Ph = "SeeMoreComponent-styles_closeIcon__LMm3b";
|
|
8124
8161
|
function Eh(e) {
|
|
8125
|
-
return e.story.seeMore && e.story.seeMoreComponent ? U("div", q({ className: Th }, { children: [
|
|
8162
|
+
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
8163
|
}
|
|
8127
8164
|
function Ch(e) {
|
|
8128
8165
|
var t = Z(!1), n = t[0], r = t[1], i = cn().classNames;
|
|
8129
8166
|
return F(function() {
|
|
8130
8167
|
r(!1);
|
|
8131
|
-
}, [e.story]), U("div", q({ className: "".concat(lh, " ").concat((i == null ? void 0 : i.storyContainer) || "") }, { children: [e.story.type === On.IMAGE ?
|
|
8168
|
+
}, [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
8169
|
var o, s;
|
|
8133
8170
|
e.onPause(), r(!0), (s = (o = e.story).onSeeMoreClick) === null || s === void 0 || s.call(o, e.story.index);
|
|
8134
|
-
}, story: e.story }), n &&
|
|
8171
|
+
}, story: e.story }), n && C(Eh, { story: e.story, onClose: function() {
|
|
8135
8172
|
e.onResume(), r(!1);
|
|
8136
8173
|
} })] }));
|
|
8137
8174
|
}
|
|
@@ -8141,17 +8178,17 @@ function ao(e) {
|
|
|
8141
8178
|
}
|
|
8142
8179
|
function Mh(e) {
|
|
8143
8180
|
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
|
-
} :
|
|
8181
|
+
} : 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() {
|
|
8182
|
+
} : b, _ = e.onStoriesStart, T = _ === void 0 ? function() {
|
|
8183
|
+
} : _, E = e.classNames, x = E === void 0 ? {} : E, P = e.pauseStoryWhenInActiveWindow, A = P === void 0 || P, I = mt(function() {
|
|
8147
8184
|
return function(z, ne) {
|
|
8148
8185
|
var he = 0;
|
|
8149
8186
|
return z.map(function(we, ca) {
|
|
8150
8187
|
var Dr = we.duration || ne, Tt = Dr + ao();
|
|
8151
8188
|
return Tt === he && (Tt = Dr + ao(6)), he = Tt, q(q({}, we), { index: ca, calculatedDuration: Tt });
|
|
8152
8189
|
});
|
|
8153
|
-
}(u,
|
|
8154
|
-
}, [u,
|
|
8190
|
+
}(u, S);
|
|
8191
|
+
}, [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
8192
|
function Q() {
|
|
8156
8193
|
J.current || (N == null ? void 0 : N.index) !== D || (w(), J.current = !0), (N == null ? void 0 : N.index) !== D && j(function(z) {
|
|
8157
8194
|
if (!z) return I[0];
|
|
@@ -8166,8 +8203,8 @@ function Mh(e) {
|
|
|
8166
8203
|
k(!1);
|
|
8167
8204
|
}
|
|
8168
8205
|
F(function() {
|
|
8169
|
-
ce.current || (ce.current = !0,
|
|
8170
|
-
}, [
|
|
8206
|
+
ce.current || (ce.current = !0, T());
|
|
8207
|
+
}, [T]), F(function() {
|
|
8171
8208
|
var z = I[m];
|
|
8172
8209
|
z && j(z);
|
|
8173
8210
|
}, [m, u]), F(function() {
|
|
@@ -8210,8 +8247,8 @@ function Mh(e) {
|
|
|
8210
8247
|
}(function(z) {
|
|
8211
8248
|
A && k(!z);
|
|
8212
8249
|
});
|
|
8213
|
-
var O = { stories: I, width: d, height: v, defaultDuration:
|
|
8214
|
-
return N ?
|
|
8250
|
+
var O = { stories: I, width: d, height: v, defaultDuration: S, isPaused: H, classNames: x };
|
|
8251
|
+
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
8252
|
(N == null ? void 0 : N.index) !== 0 && j(function(z) {
|
|
8216
8253
|
if (!z) return I[0];
|
|
8217
8254
|
var ne = (z == null ? void 0 : z.index) - 1;
|
|
@@ -8233,7 +8270,7 @@ const Ah = ({
|
|
|
8233
8270
|
transition: { type: "spring", stiffness: 300, damping: 30 }
|
|
8234
8271
|
});
|
|
8235
8272
|
};
|
|
8236
|
-
return /* @__PURE__ */
|
|
8273
|
+
return /* @__PURE__ */ C(
|
|
8237
8274
|
oa.div,
|
|
8238
8275
|
{
|
|
8239
8276
|
ref: r,
|
|
@@ -8271,7 +8308,7 @@ const Ah = ({
|
|
|
8271
8308
|
}, f = () => {
|
|
8272
8309
|
n && n(), s && d();
|
|
8273
8310
|
};
|
|
8274
|
-
if ((e == null ? void 0 : e.length) == 0) return /* @__PURE__ */
|
|
8311
|
+
if ((e == null ? void 0 : e.length) == 0) return /* @__PURE__ */ C(jt, {});
|
|
8275
8312
|
const v = o ? ({ children: p }) => p : Ah;
|
|
8276
8313
|
return /* @__PURE__ */ U(
|
|
8277
8314
|
"div",
|
|
@@ -8280,10 +8317,10 @@ const Ah = ({
|
|
|
8280
8317
|
[Me.inline]: o
|
|
8281
8318
|
}),
|
|
8282
8319
|
children: [
|
|
8283
|
-
/* @__PURE__ */
|
|
8284
|
-
/* @__PURE__ */
|
|
8285
|
-
/* @__PURE__ */
|
|
8286
|
-
/* @__PURE__ */
|
|
8320
|
+
/* @__PURE__ */ C("div", { className: Me.Overlay, onClick: r }),
|
|
8321
|
+
/* @__PURE__ */ C("div", { className: Me.StoryPlayer__Wrap, children: /* @__PURE__ */ U(v, { onClose: a, children: [
|
|
8322
|
+
/* @__PURE__ */ C("div", { className: Me.CloseIcon, onClick: a, children: /* @__PURE__ */ C(aa, {}) }),
|
|
8323
|
+
/* @__PURE__ */ C(
|
|
8287
8324
|
Mh,
|
|
8288
8325
|
{
|
|
8289
8326
|
onStoryChange: i,
|