prisma-goat 0.6.2 → 0.6.3
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/README.md +1 -1
- package/dist/prisma-goat.css +1 -1
- package/dist/prisma-goat.js +204 -198
- package/dist/prisma-goat.umd.cjs +2 -2
- package/package.json +1 -1
package/dist/prisma-goat.js
CHANGED
|
@@ -234,7 +234,7 @@ const wg = N(
|
|
|
234
234
|
"text-white": g !== "secondary" && g !== "tertiary" && g !== "experiences",
|
|
235
235
|
"text-[#3d434b]": g === "secondary" || g === "tertiary" || g === "experiences"
|
|
236
236
|
}
|
|
237
|
-
),
|
|
237
|
+
), a = {
|
|
238
238
|
primary: "bg-[#1F2937] hover:bg-[#374151] focus:ring-[#1F2937] focus:border-[#1F2937]",
|
|
239
239
|
secondary: "bg-transparent border-2 border-[#1F2937] hover:border-[#374151] focus:ring-[#1F2937] focus:border-[#1F2937]",
|
|
240
240
|
vividPink: "bg-[#ff0145] hover:bg-[#e6003f] focus:ring-[#ff0145] focus:border-[#ff0145]",
|
|
@@ -257,7 +257,7 @@ const wg = N(
|
|
|
257
257
|
g === "secondary" ? "border-[#1F2937]" : "border-white"
|
|
258
258
|
)
|
|
259
259
|
}
|
|
260
|
-
), Z = () => _.isValidElement(w) ? _.cloneElement(w, { className: "w-5 h-5" }) : c(),
|
|
260
|
+
), Z = () => _.isValidElement(w) ? _.cloneElement(w, { className: "w-5 h-5" }) : c(), G = s || A;
|
|
261
261
|
return O(() => {
|
|
262
262
|
const u = (k) => {
|
|
263
263
|
if (e && k.key === "Enter" && !t && I) {
|
|
@@ -279,7 +279,7 @@ const wg = N(
|
|
|
279
279
|
style: { whiteSpace: "nowrap" },
|
|
280
280
|
className: R(
|
|
281
281
|
r,
|
|
282
|
-
|
|
282
|
+
a[g],
|
|
283
283
|
l[B],
|
|
284
284
|
{
|
|
285
285
|
"opacity-60 cursor-not-allowed": M,
|
|
@@ -293,7 +293,7 @@ const wg = N(
|
|
|
293
293
|
children: [
|
|
294
294
|
M && D === "left" && /* @__PURE__ */ i("span", { className: "mr-2", children: U }),
|
|
295
295
|
Q === "left" && /* @__PURE__ */ i("span", { className: "mr-2", children: Z() }),
|
|
296
|
-
|
|
296
|
+
G,
|
|
297
297
|
Q === "right" && /* @__PURE__ */ i("span", { className: "ml-2", children: Z() }),
|
|
298
298
|
M && D === "right" && /* @__PURE__ */ i("span", { className: "ml-2", children: U })
|
|
299
299
|
]
|
|
@@ -547,15 +547,15 @@ const pA = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAEZQAAApUCAYAAACv3FolAA
|
|
|
547
547
|
theme: n,
|
|
548
548
|
InstallApp: E,
|
|
549
549
|
login: r = !1,
|
|
550
|
-
variantIndicator:
|
|
550
|
+
variantIndicator: a = "primary",
|
|
551
551
|
backgroundIndicator: l = "black",
|
|
552
552
|
logoGoatDataIndicator: c = "logoRed",
|
|
553
553
|
imgLoadingIndicator: U = "",
|
|
554
554
|
strokeWidthIndicator: Z = "10",
|
|
555
|
-
...
|
|
555
|
+
...G
|
|
556
556
|
}, u) => {
|
|
557
557
|
var EA, H, JA, uM;
|
|
558
|
-
const k = ge(), [V, Y] = h(!1), [d, b] = h(!1), [CA, yA] = h(!1), [UA, ZA] = h(null), [lg, F] = h(null), x = AA(null), VA = () => Y(!V),
|
|
558
|
+
const k = ge(), [V, Y] = h(!1), [d, b] = h(!1), [CA, yA] = h(!1), [UA, ZA] = h(null), [lg, F] = h(null), x = AA(null), VA = () => Y(!V), GA = () => b(!d), hA = () => b(!1);
|
|
559
559
|
O(() => {
|
|
560
560
|
if (typeof window < "u" && (C != null && C.events)) {
|
|
561
561
|
const m = () => {
|
|
@@ -570,7 +570,7 @@ const pA = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAEZQAAApUCAYAAACv3FolAA
|
|
|
570
570
|
}, [C]);
|
|
571
571
|
const jg = (m, p) => {
|
|
572
572
|
m.subItems && m.subItems.length > 0 ? ZA((tA) => tA === p ? -1 : p) : m.link && C && C.push(m.link);
|
|
573
|
-
},
|
|
573
|
+
}, ag = (m, p) => {
|
|
574
574
|
m.subItems && m.subItems.length > 0 ? ZA((tA) => tA === p ? -1 : p) : m.link && C && (C.push(m.link), Y(!1));
|
|
575
575
|
}, WA = (m, p) => {
|
|
576
576
|
ZA((tA) => tA === p ? -1 : p), m.link && C && C.push(m.link);
|
|
@@ -586,7 +586,7 @@ const pA = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAEZQAAApUCAYAAACv3FolAA
|
|
|
586
586
|
return d && document.addEventListener("mousedown", m), () => {
|
|
587
587
|
document.removeEventListener("mousedown", m);
|
|
588
588
|
};
|
|
589
|
-
}, [d]), /* @__PURE__ */ y("nav", { ref: u, ...
|
|
589
|
+
}, [d]), /* @__PURE__ */ y("nav", { ref: u, ...G, style: { zIndex: 9999, position: "fixed", top: "0px", left: "0px", right: "0px" }, className: `${iA[g]}`, children: [
|
|
590
590
|
/* @__PURE__ */ i("div", { style: { marginLeft: "auto", marginRight: "auto", maxWidth: "80rem", paddingLeft: k ? "0.5rem" : "1.5rem", paddingRight: k ? "0.5rem" : "1.5rem" }, children: /* @__PURE__ */ y("div", { style: { position: "relative", display: "flex", height: "4rem", alignItems: "center", justifyContent: "space-between" }, children: [
|
|
591
591
|
/* @__PURE__ */ i("div", { style: { position: "absolute", top: "0px", bottom: "0px", left: "0px", display: k ? "flex" : "none", alignItems: "center" }, children: /* @__PURE__ */ i("button", { className: `menu ${V ? g === "secondary" ? "openedark" : "opened" : ""}`, onClick: VA, "aria-label": "Main Menu", children: /* @__PURE__ */ y("svg", { width: "45", height: "45", viewBox: "0 0 100 100", style: { fill: "#f9f8f8 !important" }, children: [
|
|
592
592
|
/* @__PURE__ */ i("path", { className: g === "secondary" ? "linedark linedark1" : "line line1", d: "M 20,29.000046 H 80.000231 C 80.000231,29.000046 94.498839,28.817352 94.532987,66.711331 94.543142,77.980673 90.966081,81.670246 85.259173,81.668997 79.552261,81.667751 75.000211,74.999942 75.000211,74.999942 L 25.000021,25.000058" }),
|
|
@@ -698,7 +698,7 @@ const pA = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAEZQAAApUCAYAAACv3FolAA
|
|
|
698
698
|
id: "user-menu-button",
|
|
699
699
|
"aria-expanded": d,
|
|
700
700
|
"aria-haspopup": "true",
|
|
701
|
-
onClick:
|
|
701
|
+
onClick: GA,
|
|
702
702
|
children: /* @__PURE__ */ i(
|
|
703
703
|
"div",
|
|
704
704
|
{
|
|
@@ -780,7 +780,7 @@ const pA = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAEZQAAApUCAYAAACv3FolAA
|
|
|
780
780
|
Q === m.link ? "font-semibold" : "font-normal"
|
|
781
781
|
),
|
|
782
782
|
onClick: () => {
|
|
783
|
-
|
|
783
|
+
ag(m, p);
|
|
784
784
|
},
|
|
785
785
|
children: m.label
|
|
786
786
|
}
|
|
@@ -814,7 +814,7 @@ const pA = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAEZQAAApUCAYAAACv3FolAA
|
|
|
814
814
|
className: `flex rounded-full bg-gray-800 text-sm transition duration-300 focus:outline-none focus:ring-2 ${QA[g]} focus:ring-offset-2 mb-4 ml-3 mt-3`,
|
|
815
815
|
id: "user-menu-button",
|
|
816
816
|
"aria-haspopup": "true",
|
|
817
|
-
onClick:
|
|
817
|
+
onClick: GA,
|
|
818
818
|
children: /* @__PURE__ */ i(
|
|
819
819
|
"div",
|
|
820
820
|
{
|
|
@@ -873,7 +873,7 @@ const pA = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAEZQAAApUCAYAAACv3FolAA
|
|
|
873
873
|
CA && /* @__PURE__ */ i(
|
|
874
874
|
bB,
|
|
875
875
|
{
|
|
876
|
-
variant:
|
|
876
|
+
variant: a,
|
|
877
877
|
background: l,
|
|
878
878
|
logoGoatData: c,
|
|
879
879
|
imgLoading: U,
|
|
@@ -995,16 +995,16 @@ const iw = N(
|
|
|
995
995
|
backgroundIndicator: n = "black",
|
|
996
996
|
logoGoatDataIndicator: E = "logoRed",
|
|
997
997
|
imgLoadingIndicator: r = "",
|
|
998
|
-
strokeWidthIndicator:
|
|
998
|
+
strokeWidthIndicator: a = "10",
|
|
999
999
|
handleLogout: l,
|
|
1000
1000
|
toggleTheme: c,
|
|
1001
1001
|
toggeInstallApp: U,
|
|
1002
1002
|
...Z
|
|
1003
|
-
},
|
|
1004
|
-
var
|
|
1003
|
+
}, G) => {
|
|
1004
|
+
var ag, WA;
|
|
1005
1005
|
const [u, k] = h(!0), [V, Y] = h(null), [d, b] = h(!1), [CA, yA] = h(null), [UA, ZA] = h(!1), lg = AA(null), F = () => b(!d), x = () => b(!1), VA = () => {
|
|
1006
1006
|
k((q) => !q);
|
|
1007
|
-
},
|
|
1007
|
+
}, GA = (q, P) => {
|
|
1008
1008
|
q.subItems && q.subItems.length > 0 ? Y((EA) => EA === P ? -1 : P) : q.link && Q && Q.push(q.link);
|
|
1009
1009
|
}, hA = (q, P) => {
|
|
1010
1010
|
Y((EA) => EA === P ? -1 : P), q.link && Q && Q.push(q.link);
|
|
@@ -1025,7 +1025,7 @@ const iw = N(
|
|
|
1025
1025
|
}, [Q]), /* @__PURE__ */ y(
|
|
1026
1026
|
"div",
|
|
1027
1027
|
{
|
|
1028
|
-
ref:
|
|
1028
|
+
ref: G,
|
|
1029
1029
|
...Z,
|
|
1030
1030
|
style: { width: u ? "250px" : "70px" },
|
|
1031
1031
|
className: R(
|
|
@@ -1080,7 +1080,7 @@ const iw = N(
|
|
|
1080
1080
|
w === q.link ? "font-semibold" : "font-normal"
|
|
1081
1081
|
),
|
|
1082
1082
|
onClick: () => {
|
|
1083
|
-
|
|
1083
|
+
GA(q, P);
|
|
1084
1084
|
},
|
|
1085
1085
|
onMouseEnter: () => yA(P),
|
|
1086
1086
|
onMouseLeave: () => yA(null),
|
|
@@ -1196,7 +1196,7 @@ const iw = N(
|
|
|
1196
1196
|
q.currentTarget.onerror = null, q.currentTarget.src = "";
|
|
1197
1197
|
}
|
|
1198
1198
|
}
|
|
1199
|
-
) : ((WA = (
|
|
1199
|
+
) : ((WA = (ag = C.name) == null ? void 0 : ag.charAt(0)) == null ? void 0 : WA.toUpperCase()) || "?"
|
|
1200
1200
|
}
|
|
1201
1201
|
)
|
|
1202
1202
|
}
|
|
@@ -1242,7 +1242,7 @@ const iw = N(
|
|
|
1242
1242
|
background: n,
|
|
1243
1243
|
logoGoatData: E,
|
|
1244
1244
|
imgLoading: r,
|
|
1245
|
-
strokeWidth:
|
|
1245
|
+
strokeWidth: a
|
|
1246
1246
|
}
|
|
1247
1247
|
)
|
|
1248
1248
|
]
|
|
@@ -1373,7 +1373,7 @@ function Iw(A) {
|
|
|
1373
1373
|
};
|
|
1374
1374
|
return Q;
|
|
1375
1375
|
}
|
|
1376
|
-
const
|
|
1376
|
+
const Gg = [
|
|
1377
1377
|
"read",
|
|
1378
1378
|
// Read
|
|
1379
1379
|
"resolveKeyframes",
|
|
@@ -1393,18 +1393,18 @@ function te(A, g) {
|
|
|
1393
1393
|
delta: 0,
|
|
1394
1394
|
timestamp: 0,
|
|
1395
1395
|
isProcessing: !1
|
|
1396
|
-
}, t = () => B = !0, e =
|
|
1396
|
+
}, t = () => B = !0, e = Gg.reduce((l, c) => (l[c] = Iw(t), l), {}), { read: w, resolveKeyframes: Q, update: C, preRender: s, render: o, postRender: I } = e, n = () => {
|
|
1397
1397
|
const l = performance.now();
|
|
1398
1398
|
B = !1, D.delta = M ? 1e3 / 60 : Math.max(Math.min(l - D.timestamp, nw), 1), D.timestamp = l, D.isProcessing = !0, w.process(D), Q.process(D), C.process(D), s.process(D), o.process(D), I.process(D), D.isProcessing = !1, B && g && (M = !1, A(n));
|
|
1399
1399
|
}, E = () => {
|
|
1400
1400
|
B = !0, M = !0, D.isProcessing || A(n);
|
|
1401
1401
|
};
|
|
1402
|
-
return { schedule:
|
|
1402
|
+
return { schedule: Gg.reduce((l, c) => {
|
|
1403
1403
|
const U = e[c];
|
|
1404
|
-
return l[c] = (Z,
|
|
1404
|
+
return l[c] = (Z, G = !1, u = !1) => (B || E(), U.schedule(Z, G, u)), l;
|
|
1405
1405
|
}, {}), cancel: (l) => {
|
|
1406
|
-
for (let c = 0; c <
|
|
1407
|
-
e[
|
|
1406
|
+
for (let c = 0; c < Gg.length; c++)
|
|
1407
|
+
e[Gg[c]].cancel(l);
|
|
1408
1408
|
}, state: D, steps: e };
|
|
1409
1409
|
}
|
|
1410
1410
|
const { schedule: J, cancel: YA, state: j, steps: Tg } = te(typeof requestAnimationFrame < "u" ? requestAnimationFrame : gA, !0), we = SA({ strict: !1 }), VM = {
|
|
@@ -1481,7 +1481,7 @@ try {
|
|
|
1481
1481
|
lw(require("@emotion/is-prop-valid").default);
|
|
1482
1482
|
} catch {
|
|
1483
1483
|
}
|
|
1484
|
-
function
|
|
1484
|
+
function aw(A, g, B) {
|
|
1485
1485
|
const M = {};
|
|
1486
1486
|
for (const D in A)
|
|
1487
1487
|
D === "values" && typeof A.values == "object" || (Qe(D) || B === !0 && fg(D) || !g && !fg(D) || // If trying to use native HTML drag events, forward drag listeners
|
|
@@ -1492,7 +1492,7 @@ const fM = /* @__PURE__ */ new Set();
|
|
|
1492
1492
|
function vg(A, g, B) {
|
|
1493
1493
|
A || fM.has(g) || (console.warn(g), fM.add(g));
|
|
1494
1494
|
}
|
|
1495
|
-
function
|
|
1495
|
+
function Gw(A) {
|
|
1496
1496
|
if (typeof Proxy > "u")
|
|
1497
1497
|
return A;
|
|
1498
1498
|
const g = /* @__PURE__ */ new Map(), B = (...M) => (process.env.NODE_ENV !== "production" && vg(!1, "motion() is deprecated. Use motion.create() instead."), A(...M));
|
|
@@ -1561,7 +1561,7 @@ function mw(A, g, B) {
|
|
|
1561
1561
|
[g]
|
|
1562
1562
|
);
|
|
1563
1563
|
}
|
|
1564
|
-
const XB = (A) => A.replace(/([a-z])([A-Z])/gu, "$1-$2").toLowerCase(), yw = "framerAppearId", ie = "data-" + XB(yw), { schedule: NB, cancel:
|
|
1564
|
+
const XB = (A) => A.replace(/([a-z])([A-Z])/gu, "$1-$2").toLowerCase(), yw = "framerAppearId", ie = "data-" + XB(yw), { schedule: NB, cancel: Bo } = te(queueMicrotask, !1), se = SA({});
|
|
1565
1565
|
function Uw(A, g, B, M, D) {
|
|
1566
1566
|
var t, e;
|
|
1567
1567
|
const { visualElement: w } = $(Pg), Q = $(we), C = $(OB), s = $(De).reducedMotion, o = AA(null);
|
|
@@ -1579,14 +1579,14 @@ function Uw(A, g, B, M, D) {
|
|
|
1579
1579
|
vt(() => {
|
|
1580
1580
|
I && E.current && I.update(B, C);
|
|
1581
1581
|
});
|
|
1582
|
-
const r = B[ie],
|
|
1582
|
+
const r = B[ie], a = AA(!!r && !(!((t = window.MotionHandoffIsComplete) === null || t === void 0) && t.call(window, r)) && ((e = window.MotionHasOptimisedAnimation) === null || e === void 0 ? void 0 : e.call(window, r)));
|
|
1583
1583
|
return ee(() => {
|
|
1584
|
-
I && (E.current = !0, window.MotionIsMounted = !0, I.updateFeatures(), NB.render(I.render),
|
|
1584
|
+
I && (E.current = !0, window.MotionIsMounted = !0, I.updateFeatures(), NB.render(I.render), a.current && I.animationState && I.animationState.animateChanges());
|
|
1585
1585
|
}), O(() => {
|
|
1586
|
-
I && (!
|
|
1586
|
+
I && (!a.current && I.animationState && I.animationState.animateChanges(), a.current && (queueMicrotask(() => {
|
|
1587
1587
|
var l;
|
|
1588
1588
|
(l = window.MotionHandoffMarkAsComplete) === null || l === void 0 || l.call(window, r);
|
|
1589
|
-
}),
|
|
1589
|
+
}), a.current = !1));
|
|
1590
1590
|
}), I;
|
|
1591
1591
|
}
|
|
1592
1592
|
function Zw(A, g, B, M) {
|
|
@@ -1625,8 +1625,8 @@ function Vw({ preloadedFeatures: A, createVisualElement: g, useRender: B, useVis
|
|
|
1625
1625
|
}, { isStatic: n } = I, E = Yw(C), r = M(C, n);
|
|
1626
1626
|
if (!n && jB) {
|
|
1627
1627
|
dw(I, A);
|
|
1628
|
-
const
|
|
1629
|
-
o =
|
|
1628
|
+
const a = qw(I);
|
|
1629
|
+
o = a.MeasureLayout, E.visualElement = Uw(D, r, I, g, a.ProjectionNode);
|
|
1630
1630
|
}
|
|
1631
1631
|
return y(Pg.Provider, { value: E, children: [o && E.visualElement ? i(o, { visualElement: E.visualElement, ...I }) : null, B(D, C, mw(r, E.visualElement, s), r, n, E.visualElement)] });
|
|
1632
1632
|
}
|
|
@@ -1750,7 +1750,7 @@ function hw(A, g, B, M) {
|
|
|
1750
1750
|
for (let n = 0; n < I.length; n++) {
|
|
1751
1751
|
const E = WB(A, I[n]);
|
|
1752
1752
|
if (E) {
|
|
1753
|
-
const { transitionEnd: r, transition:
|
|
1753
|
+
const { transitionEnd: r, transition: a, ...l } = E;
|
|
1754
1754
|
for (const c in l) {
|
|
1755
1755
|
let U = l[c];
|
|
1756
1756
|
if (Array.isArray(U)) {
|
|
@@ -1784,13 +1784,13 @@ const NA = [
|
|
|
1784
1784
|
"skew",
|
|
1785
1785
|
"skewX",
|
|
1786
1786
|
"skewY"
|
|
1787
|
-
], RA = new Set(NA), ne = (A) => (g) => typeof g == "string" && g.startsWith(A), Ee = /* @__PURE__ */ ne("--"), Jw = /* @__PURE__ */ ne("var(--"), $B = (A) => Jw(A) ? zw.test(A.split("/*")[0].trim()) : !1, zw = /var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu, re = (A, g) => g && typeof A == "number" ? g.transform(A) : A,
|
|
1787
|
+
], RA = new Set(NA), ne = (A) => (g) => typeof g == "string" && g.startsWith(A), Ee = /* @__PURE__ */ ne("--"), Jw = /* @__PURE__ */ ne("var(--"), $B = (A) => Jw(A) ? zw.test(A.split("/*")[0].trim()) : !1, zw = /var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu, re = (A, g) => g && typeof A == "number" ? g.transform(A) : A, aA = (A, g, B) => B > g ? g : B < A ? A : B, xA = {
|
|
1788
1788
|
test: (A) => typeof A == "number",
|
|
1789
1789
|
parse: parseFloat,
|
|
1790
1790
|
transform: (A) => A
|
|
1791
1791
|
}, Cg = {
|
|
1792
1792
|
...xA,
|
|
1793
|
-
transform: (A) =>
|
|
1793
|
+
transform: (A) => aA(0, 1, A)
|
|
1794
1794
|
}, cg = {
|
|
1795
1795
|
...xA,
|
|
1796
1796
|
default: 1
|
|
@@ -1971,12 +1971,12 @@ const BM = () => ({
|
|
|
1971
1971
|
...BM(),
|
|
1972
1972
|
attrs: {}
|
|
1973
1973
|
}), MM = (A) => typeof A == "string" && A.toLowerCase() === "svg";
|
|
1974
|
-
function
|
|
1974
|
+
function ae(A, { style: g, vars: B }, M, D) {
|
|
1975
1975
|
Object.assign(A.style, g, D && D.getProjectionStyles(M));
|
|
1976
1976
|
for (const t in B)
|
|
1977
1977
|
A.style.setProperty(t, B[t]);
|
|
1978
1978
|
}
|
|
1979
|
-
const
|
|
1979
|
+
const Ge = /* @__PURE__ */ new Set([
|
|
1980
1980
|
"baseFrequency",
|
|
1981
1981
|
"diffuseConstant",
|
|
1982
1982
|
"kernelMatrix",
|
|
@@ -2002,9 +2002,9 @@ const ae = /* @__PURE__ */ new Set([
|
|
|
2002
2002
|
"lengthAdjust"
|
|
2003
2003
|
]);
|
|
2004
2004
|
function ce(A, g, B, M) {
|
|
2005
|
-
|
|
2005
|
+
ae(A, g, void 0, M);
|
|
2006
2006
|
for (const D in g.attrs)
|
|
2007
|
-
A.setAttribute(
|
|
2007
|
+
A.setAttribute(Ge.has(D) ? D : XB(D), g.attrs[D]);
|
|
2008
2008
|
}
|
|
2009
2009
|
const dg = {};
|
|
2010
2010
|
function Nw(A) {
|
|
@@ -2111,7 +2111,7 @@ function BQ(A, g, B, M) {
|
|
|
2111
2111
|
}
|
|
2112
2112
|
function MQ(A = !1) {
|
|
2113
2113
|
return (B, M, D, { latestValues: t }, e) => {
|
|
2114
|
-
const Q = (xB(B) ? BQ : gQ)(M, t, e, B), C =
|
|
2114
|
+
const Q = (xB(B) ? BQ : gQ)(M, t, e, B), C = aw(M, typeof B == "string", A), s = B !== HD ? { ...C, ...Q, ref: D } : {}, { children: o } = M, I = zg(() => X(o) ? o.get() : o, [o]);
|
|
2115
2115
|
return Pt(B, {
|
|
2116
2116
|
...s,
|
|
2117
2117
|
children: I
|
|
@@ -2444,7 +2444,7 @@ function Re(A, g) {
|
|
|
2444
2444
|
return g ? A * (1e3 / g) : 0;
|
|
2445
2445
|
}
|
|
2446
2446
|
const PM = 30, lQ = (A) => !isNaN(parseFloat(A));
|
|
2447
|
-
class
|
|
2447
|
+
class aQ {
|
|
2448
2448
|
/**
|
|
2449
2449
|
* @param init - The initiating value
|
|
2450
2450
|
* @param config - Optional configuration options
|
|
@@ -2639,9 +2639,9 @@ class GQ {
|
|
|
2639
2639
|
}
|
|
2640
2640
|
}
|
|
2641
2641
|
function ig(A, g) {
|
|
2642
|
-
return new
|
|
2642
|
+
return new aQ(A, g);
|
|
2643
2643
|
}
|
|
2644
|
-
function
|
|
2644
|
+
function GQ(A, g, B) {
|
|
2645
2645
|
A.hasValue(g) ? A.getValue(g).set(B) : A.addValue(g, ig(B));
|
|
2646
2646
|
}
|
|
2647
2647
|
function oM(A, g) {
|
|
@@ -2650,7 +2650,7 @@ function oM(A, g) {
|
|
|
2650
2650
|
t = { ...t, ...M };
|
|
2651
2651
|
for (const e in t) {
|
|
2652
2652
|
const w = pw(t[e]);
|
|
2653
|
-
|
|
2653
|
+
GQ(A, e, w);
|
|
2654
2654
|
}
|
|
2655
2655
|
}
|
|
2656
2656
|
function cQ(A) {
|
|
@@ -2696,7 +2696,7 @@ const ZQ = /^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s
|
|
|
2696
2696
|
[B]: parseFloat(e),
|
|
2697
2697
|
alpha: w !== void 0 ? parseFloat(w) : 1
|
|
2698
2698
|
};
|
|
2699
|
-
}, VQ = (A) =>
|
|
2699
|
+
}, VQ = (A) => aA(0, 255, A), Xg = {
|
|
2700
2700
|
...xA,
|
|
2701
2701
|
transform: (A) => Math.round(VQ(A))
|
|
2702
2702
|
}, kA = {
|
|
@@ -2877,7 +2877,7 @@ function $e() {
|
|
|
2877
2877
|
function HQ() {
|
|
2878
2878
|
$e(), We();
|
|
2879
2879
|
}
|
|
2880
|
-
class
|
|
2880
|
+
class aM {
|
|
2881
2881
|
constructor(g, B, M, D, t, e = !1) {
|
|
2882
2882
|
this.isComplete = !1, this.isAsync = !1, this.needsMeasurement = !1, this.isScheduled = !1, this.unresolvedKeyframes = [...g], this.onComplete = B, this.name = M, this.motionValue = D, this.element = t, this.isAsync = e;
|
|
2883
2883
|
}
|
|
@@ -2946,7 +2946,7 @@ const gt = (A) => (g) => g.test(A), NQ = {
|
|
|
2946
2946
|
test: (A) => A === "auto",
|
|
2947
2947
|
parse: (A) => A
|
|
2948
2948
|
}, Bt = [xA, f, oA, cA, Pw, vw, NQ], jM = (A) => Bt.find(gt(A));
|
|
2949
|
-
class Mt extends
|
|
2949
|
+
class Mt extends aM {
|
|
2950
2950
|
constructor(g, B, M, D, t) {
|
|
2951
2951
|
super(g, B, M, D, t, !0);
|
|
2952
2952
|
}
|
|
@@ -3148,11 +3148,11 @@ function DC(A, g) {
|
|
|
3148
3148
|
function eC(A, g) {
|
|
3149
3149
|
return (B) => v(A, g, B);
|
|
3150
3150
|
}
|
|
3151
|
-
function
|
|
3151
|
+
function GM(A) {
|
|
3152
3152
|
return typeof A == "number" ? eC : typeof A == "string" ? $B(A) ? kg : S.test(A) ? SM : QC : Array.isArray(A) ? et : typeof A == "object" ? S.test(A) ? SM : tC : kg;
|
|
3153
3153
|
}
|
|
3154
3154
|
function et(A, g) {
|
|
3155
|
-
const B = [...A], M = B.length, D = A.map((t, e) =>
|
|
3155
|
+
const B = [...A], M = B.length, D = A.map((t, e) => GM(t)(t, g[e]));
|
|
3156
3156
|
return (t) => {
|
|
3157
3157
|
for (let e = 0; e < M; e++)
|
|
3158
3158
|
B[e] = D[e](t);
|
|
@@ -3162,7 +3162,7 @@ function et(A, g) {
|
|
|
3162
3162
|
function tC(A, g) {
|
|
3163
3163
|
const B = { ...A, ...g }, M = {};
|
|
3164
3164
|
for (const D in B)
|
|
3165
|
-
A[D] !== void 0 && g[D] !== void 0 && (M[D] =
|
|
3165
|
+
A[D] !== void 0 && g[D] !== void 0 && (M[D] = GM(A[D])(A[D], g[D]));
|
|
3166
3166
|
return (D) => {
|
|
3167
3167
|
for (const t in M)
|
|
3168
3168
|
B[t] = M[t](D);
|
|
@@ -3183,7 +3183,7 @@ const QC = (A, g) => {
|
|
|
3183
3183
|
return M.indexes.var.length === D.indexes.var.length && M.indexes.color.length === D.indexes.color.length && M.indexes.number.length >= D.indexes.number.length ? IB.has(A) && !D.values.length || IB.has(g) && !M.values.length ? DC(A, g) : Eg(et(wC(M, D), D.values), B) : (XA(!0, `Complex values '${A}' and '${g}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`), kg(A, g));
|
|
3184
3184
|
};
|
|
3185
3185
|
function tt(A, g, B) {
|
|
3186
|
-
return typeof A == "number" && typeof g == "number" && typeof B == "number" ? v(A, g, B) :
|
|
3186
|
+
return typeof A == "number" && typeof g == "number" && typeof B == "number" ? v(A, g, B) : GM(A)(A, g);
|
|
3187
3187
|
}
|
|
3188
3188
|
const CC = 5;
|
|
3189
3189
|
function wt(A, g, B) {
|
|
@@ -3223,7 +3223,7 @@ function iC({ duration: A = z.duration, bounce: g = z.bounce, velocity: B = z.ve
|
|
|
3223
3223
|
let D, t;
|
|
3224
3224
|
XA(A <= /* @__PURE__ */ sA(z.maxDuration), "Spring duration must be 10 seconds or less");
|
|
3225
3225
|
let e = 1 - g;
|
|
3226
|
-
e =
|
|
3226
|
+
e = aA(z.minDamping, z.maxDamping, e), A = aA(z.minDuration, z.maxDuration, /* @__PURE__ */ lA(A)), e < 1 ? (D = (C) => {
|
|
3227
3227
|
const s = C * e, o = s * A, I = s - B, n = nB(C, e), E = Math.exp(-o);
|
|
3228
3228
|
return XM - I / n * E;
|
|
3229
3229
|
}, t = (C) => {
|
|
@@ -3277,7 +3277,7 @@ function EC(A) {
|
|
|
3277
3277
|
};
|
|
3278
3278
|
if (!NM(A, nC) && NM(A, IC))
|
|
3279
3279
|
if (A.visualDuration) {
|
|
3280
|
-
const B = A.visualDuration, M = 2 * Math.PI / (B * 1.2), D = M * M, t = 2 *
|
|
3280
|
+
const B = A.visualDuration, M = 2 * Math.PI / (B * 1.2), D = M * M, t = 2 * aA(0.05, 1, 1 - (A.bounce || 0)) * Math.sqrt(D);
|
|
3281
3281
|
g = {
|
|
3282
3282
|
...g,
|
|
3283
3283
|
mass: z.mass,
|
|
@@ -3304,41 +3304,41 @@ function Qt(A = z.visualDuration, g = z.bounce) {
|
|
|
3304
3304
|
const t = B.keyframes[0], e = B.keyframes[B.keyframes.length - 1], w = { done: !1, value: t }, { stiffness: Q, damping: C, mass: s, duration: o, velocity: I, isResolvedFromDuration: n } = EC({
|
|
3305
3305
|
...B,
|
|
3306
3306
|
velocity: -/* @__PURE__ */ lA(B.velocity || 0)
|
|
3307
|
-
}), E = I || 0, r = C / (2 * Math.sqrt(Q * s)),
|
|
3307
|
+
}), E = I || 0, r = C / (2 * Math.sqrt(Q * s)), a = e - t, l = /* @__PURE__ */ lA(Math.sqrt(Q / s)), c = Math.abs(a) < 5;
|
|
3308
3308
|
M || (M = c ? z.restSpeed.granular : z.restSpeed.default), D || (D = c ? z.restDelta.granular : z.restDelta.default);
|
|
3309
3309
|
let U;
|
|
3310
3310
|
if (r < 1) {
|
|
3311
|
-
const
|
|
3311
|
+
const G = nB(l, r);
|
|
3312
3312
|
U = (u) => {
|
|
3313
3313
|
const k = Math.exp(-r * l * u);
|
|
3314
|
-
return e - k * ((E + r * l *
|
|
3314
|
+
return e - k * ((E + r * l * a) / G * Math.sin(G * u) + a * Math.cos(G * u));
|
|
3315
3315
|
};
|
|
3316
3316
|
} else if (r === 1)
|
|
3317
|
-
U = (
|
|
3317
|
+
U = (G) => e - Math.exp(-l * G) * (a + (E + l * a) * G);
|
|
3318
3318
|
else {
|
|
3319
|
-
const
|
|
3319
|
+
const G = l * Math.sqrt(r * r - 1);
|
|
3320
3320
|
U = (u) => {
|
|
3321
|
-
const k = Math.exp(-r * l * u), V = Math.min(
|
|
3322
|
-
return e - k * ((E + r * l *
|
|
3321
|
+
const k = Math.exp(-r * l * u), V = Math.min(G * u, 300);
|
|
3322
|
+
return e - k * ((E + r * l * a) * Math.sinh(V) + G * a * Math.cosh(V)) / G;
|
|
3323
3323
|
};
|
|
3324
3324
|
}
|
|
3325
3325
|
const Z = {
|
|
3326
3326
|
calculatedDuration: n && o || null,
|
|
3327
|
-
next: (
|
|
3328
|
-
const u = U(
|
|
3327
|
+
next: (G) => {
|
|
3328
|
+
const u = U(G);
|
|
3329
3329
|
if (n)
|
|
3330
|
-
w.done =
|
|
3330
|
+
w.done = G >= o;
|
|
3331
3331
|
else {
|
|
3332
3332
|
let k = 0;
|
|
3333
|
-
r < 1 && (k =
|
|
3333
|
+
r < 1 && (k = G === 0 ? /* @__PURE__ */ sA(E) : wt(U, G, u));
|
|
3334
3334
|
const V = Math.abs(k) <= M, Y = Math.abs(e - u) <= D;
|
|
3335
3335
|
w.done = V && Y;
|
|
3336
3336
|
}
|
|
3337
3337
|
return w.value = w.done ? e : u, w;
|
|
3338
3338
|
},
|
|
3339
3339
|
toString: () => {
|
|
3340
|
-
const
|
|
3341
|
-
return
|
|
3340
|
+
const G = Math.min(Ue(Z), tB), u = Ze((k) => Z.next(G * k).value, G, 30);
|
|
3341
|
+
return G + "ms " + u;
|
|
3342
3342
|
}
|
|
3343
3343
|
};
|
|
3344
3344
|
return Z;
|
|
@@ -3349,15 +3349,15 @@ function xM({ keyframes: A, velocity: g = 0, power: B = 0.8, timeConstant: M = 3
|
|
|
3349
3349
|
value: o
|
|
3350
3350
|
}, n = (V) => w !== void 0 && V < w || Q !== void 0 && V > Q, E = (V) => w === void 0 ? Q : Q === void 0 || Math.abs(w - V) < Math.abs(Q - V) ? w : Q;
|
|
3351
3351
|
let r = B * g;
|
|
3352
|
-
const
|
|
3353
|
-
l !==
|
|
3352
|
+
const a = o + r, l = e === void 0 ? a : e(a);
|
|
3353
|
+
l !== a && (r = l - o);
|
|
3354
3354
|
const c = (V) => -r * Math.exp(-V / M), U = (V) => l + c(V), Z = (V) => {
|
|
3355
3355
|
const Y = c(V), d = U(V);
|
|
3356
3356
|
I.done = Math.abs(Y) <= C, I.value = I.done ? l : d;
|
|
3357
3357
|
};
|
|
3358
|
-
let
|
|
3358
|
+
let G, u;
|
|
3359
3359
|
const k = (V) => {
|
|
3360
|
-
n(I.value) && (
|
|
3360
|
+
n(I.value) && (G = V, u = Qt({
|
|
3361
3361
|
keyframes: [I.value, E(I.value)],
|
|
3362
3362
|
velocity: wt(U, V, I.value),
|
|
3363
3363
|
// TODO: This should be passing * 1000
|
|
@@ -3371,11 +3371,11 @@ function xM({ keyframes: A, velocity: g = 0, power: B = 0.8, timeConstant: M = 3
|
|
|
3371
3371
|
calculatedDuration: null,
|
|
3372
3372
|
next: (V) => {
|
|
3373
3373
|
let Y = !1;
|
|
3374
|
-
return !u &&
|
|
3374
|
+
return !u && G === void 0 && (Y = !0, Z(V), k(V)), G !== void 0 && V >= G ? u.next(V - G) : (!Y && Z(V), I);
|
|
3375
3375
|
}
|
|
3376
3376
|
};
|
|
3377
3377
|
}
|
|
3378
|
-
const rC = /* @__PURE__ */ ng(0.42, 0, 1, 1), lC = /* @__PURE__ */ ng(0, 0, 0.58, 1), Ct = /* @__PURE__ */ ng(0.42, 0, 0.58, 1),
|
|
3378
|
+
const rC = /* @__PURE__ */ ng(0.42, 0, 1, 1), lC = /* @__PURE__ */ ng(0, 0, 0.58, 1), Ct = /* @__PURE__ */ ng(0.42, 0, 0.58, 1), aC = (A) => Array.isArray(A) && typeof A[0] != "number", WM = {
|
|
3379
3379
|
linear: gA,
|
|
3380
3380
|
easeIn: rC,
|
|
3381
3381
|
easeInOut: Ct,
|
|
@@ -3396,7 +3396,7 @@ const rC = /* @__PURE__ */ ng(0.42, 0, 1, 1), lC = /* @__PURE__ */ ng(0, 0, 0.58
|
|
|
3396
3396
|
return nA(WM[A] !== void 0, `Invalid easing type '${A}'`), WM[A];
|
|
3397
3397
|
return A;
|
|
3398
3398
|
};
|
|
3399
|
-
function
|
|
3399
|
+
function GC(A, g, B) {
|
|
3400
3400
|
const M = [], D = B || tt, t = A.length - 1;
|
|
3401
3401
|
for (let e = 0; e < t; e++) {
|
|
3402
3402
|
let w = D(A[e], A[e + 1]);
|
|
@@ -3416,7 +3416,7 @@ function cC(A, g, { clamp: B = !0, ease: M, mixer: D } = {}) {
|
|
|
3416
3416
|
return () => g[1];
|
|
3417
3417
|
const e = A[0] === A[1];
|
|
3418
3418
|
A[0] > A[t - 1] && (A = [...A].reverse(), g = [...g].reverse());
|
|
3419
|
-
const w =
|
|
3419
|
+
const w = GC(g, M, D), Q = w.length, C = (s) => {
|
|
3420
3420
|
if (e && s < A[0])
|
|
3421
3421
|
return g[0];
|
|
3422
3422
|
let o = 0;
|
|
@@ -3426,7 +3426,7 @@ function cC(A, g, { clamp: B = !0, ease: M, mixer: D } = {}) {
|
|
|
3426
3426
|
const I = /* @__PURE__ */ jA(A[o], A[o + 1], s);
|
|
3427
3427
|
return w[o](I);
|
|
3428
3428
|
};
|
|
3429
|
-
return B ? (s) => C(
|
|
3429
|
+
return B ? (s) => C(aA(A[0], A[t - 1], s)) : C;
|
|
3430
3430
|
}
|
|
3431
3431
|
function YC(A, g) {
|
|
3432
3432
|
const B = A[A.length - 1];
|
|
@@ -3446,7 +3446,7 @@ function yC(A, g) {
|
|
|
3446
3446
|
return A.map(() => g || Ct).splice(0, A.length - 1);
|
|
3447
3447
|
}
|
|
3448
3448
|
function Kg({ duration: A = 300, keyframes: g, times: B, ease: M = "easeInOut" }) {
|
|
3449
|
-
const D =
|
|
3449
|
+
const D = aC(M) ? M.map($M) : $M(M), t = {
|
|
3450
3450
|
done: !1,
|
|
3451
3451
|
value: g[0]
|
|
3452
3452
|
}, e = mC(
|
|
@@ -3489,7 +3489,7 @@ class cM extends Dt {
|
|
|
3489
3489
|
const { onStop: Q } = this.options;
|
|
3490
3490
|
Q && Q();
|
|
3491
3491
|
};
|
|
3492
|
-
const { name: B, motionValue: M, element: D, keyframes: t } = this.options, e = (D == null ? void 0 : D.KeyframeResolver) ||
|
|
3492
|
+
const { name: B, motionValue: M, element: D, keyframes: t } = this.options, e = (D == null ? void 0 : D.KeyframeResolver) || aM, w = (Q, C) => this.onKeyframesResolved(Q, C);
|
|
3493
3493
|
this.resolver = new e(t, w, B, M, D), this.resolver.scheduleResolve();
|
|
3494
3494
|
}
|
|
3495
3495
|
flatten() {
|
|
@@ -3528,7 +3528,7 @@ class cM extends Dt {
|
|
|
3528
3528
|
const { finalKeyframe: D, generator: t, mirroredGenerator: e, mapPercentToKeyframes: w, keyframes: Q, calculatedDuration: C, totalDuration: s, resolvedDuration: o } = M;
|
|
3529
3529
|
if (this.startTime === null)
|
|
3530
3530
|
return t.next(0);
|
|
3531
|
-
const { delay: I, repeat: n, repeatType: E, repeatDelay: r, onUpdate:
|
|
3531
|
+
const { delay: I, repeat: n, repeatType: E, repeatDelay: r, onUpdate: a } = this.options;
|
|
3532
3532
|
this.speed > 0 ? this.startTime = Math.min(this.startTime, g) : this.speed < 0 && (this.startTime = Math.min(g - s / this.speed, this.startTime)), B ? this.currentTime = g : this.holdTime !== null ? this.currentTime = this.holdTime : this.currentTime = Math.round(g - this.startTime) * this.speed;
|
|
3533
3533
|
const l = this.currentTime - I * (this.speed >= 0 ? 1 : -1), c = this.speed >= 0 ? l < 0 : l > s;
|
|
3534
3534
|
this.currentTime = Math.max(l, 0), this.state === "finished" && this.holdTime === null && (this.currentTime = s);
|
|
@@ -3536,14 +3536,14 @@ class cM extends Dt {
|
|
|
3536
3536
|
if (n) {
|
|
3537
3537
|
const V = Math.min(this.currentTime, s) / o;
|
|
3538
3538
|
let Y = Math.floor(V), d = V % 1;
|
|
3539
|
-
!d && V >= 1 && (d = 1), d === 1 && Y--, Y = Math.min(Y, n + 1), !!(Y % 2) && (E === "reverse" ? (d = 1 - d, r && (d -= r / o)) : E === "mirror" && (Z = e)), U =
|
|
3539
|
+
!d && V >= 1 && (d = 1), d === 1 && Y--, Y = Math.min(Y, n + 1), !!(Y % 2) && (E === "reverse" ? (d = 1 - d, r && (d -= r / o)) : E === "mirror" && (Z = e)), U = aA(0, 1, d) * o;
|
|
3540
3540
|
}
|
|
3541
|
-
const
|
|
3542
|
-
w && (
|
|
3543
|
-
let { done: u } =
|
|
3541
|
+
const G = c ? { done: !1, value: Q[0] } : Z.next(U);
|
|
3542
|
+
w && (G.value = w(G.value));
|
|
3543
|
+
let { done: u } = G;
|
|
3544
3544
|
!c && C !== null && (u = this.speed >= 0 ? this.currentTime >= s : this.currentTime <= 0);
|
|
3545
3545
|
const k = this.holdTime === null && (this.state === "finished" || this.state === "running" && u);
|
|
3546
|
-
return k && D !== void 0 && (
|
|
3546
|
+
return k && D !== void 0 && (G.value = Og(Q, this.options, D)), a && a(G.value), k && this.finish(), G;
|
|
3547
3547
|
}
|
|
3548
3548
|
get duration() {
|
|
3549
3549
|
const { resolved: g } = this;
|
|
@@ -3668,8 +3668,8 @@ class _M extends Dt {
|
|
|
3668
3668
|
if (!w.owner || !w.owner.current)
|
|
3669
3669
|
return !1;
|
|
3670
3670
|
if (typeof t == "string" && qg() && RC(t) && (t = it[t]), KC(this.options)) {
|
|
3671
|
-
const { onComplete: o, onUpdate: I, motionValue: n, element: E, ...r } = this.options,
|
|
3672
|
-
g =
|
|
3671
|
+
const { onComplete: o, onUpdate: I, motionValue: n, element: E, ...r } = this.options, a = pC(g, r);
|
|
3672
|
+
g = a.keyframes, g.length === 1 && (g[1] = g[0]), M = a.duration, D = a.times, t = a.ease, e = "keyframes";
|
|
3673
3673
|
}
|
|
3674
3674
|
const s = dC(w.owner.current, Q, g, { ...this.options, duration: M, times: D, ease: t });
|
|
3675
3675
|
return s.startTime = C ?? this.calcStartTime(), this.pendingTimeline ? (hM(s, this.pendingTimeline), this.pendingTimeline = void 0) : s.onfinish = () => {
|
|
@@ -3891,8 +3891,8 @@ function st(A, g, { delay: B = 0, transitionOverride: M, type: D } = {}) {
|
|
|
3891
3891
|
}
|
|
3892
3892
|
}
|
|
3893
3893
|
QB(A, o), I.start(YM(o, I, n, A.shouldReduceMotion && pe.has(o) ? { type: !1 } : E, A, r));
|
|
3894
|
-
const
|
|
3895
|
-
|
|
3894
|
+
const a = I.animation;
|
|
3895
|
+
a && C.push(a);
|
|
3896
3896
|
}
|
|
3897
3897
|
return w && Promise.all(C).then(() => {
|
|
3898
3898
|
J.update(() => {
|
|
@@ -3979,22 +3979,22 @@ function XC(A) {
|
|
|
3979
3979
|
function e(Q) {
|
|
3980
3980
|
const { props: C } = A, s = It(A.parent) || {}, o = [], I = /* @__PURE__ */ new Set();
|
|
3981
3981
|
let n = {}, E = 1 / 0;
|
|
3982
|
-
for (let
|
|
3983
|
-
const l = HC[
|
|
3984
|
-
|
|
3982
|
+
for (let a = 0; a < TC; a++) {
|
|
3983
|
+
const l = HC[a], c = B[l], U = C[l] !== void 0 ? C[l] : s[l], Z = Qg(U), G = l === Q ? c.isActive : null;
|
|
3984
|
+
G === !1 && (E = a);
|
|
3985
3985
|
let u = U === s[l] && U !== C[l] && Z;
|
|
3986
3986
|
if (u && M && A.manuallyAnimateOnMount && (u = !1), c.protectedKeys = { ...n }, // If it isn't active and hasn't *just* been set as inactive
|
|
3987
|
-
!c.isActive &&
|
|
3987
|
+
!c.isActive && G === null || // If we didn't and don't have any defined prop for this animation type
|
|
3988
3988
|
!U && !c.prevProp || // Or if the prop doesn't define an animation
|
|
3989
3989
|
Lg(U) || typeof U == "boolean")
|
|
3990
3990
|
continue;
|
|
3991
3991
|
const k = NC(c.prevProp, U);
|
|
3992
3992
|
let V = k || // If we're making this variant active, we want to always make it active
|
|
3993
3993
|
l === Q && c.isActive && !u && Z || // If we removed a higher-priority variant (i is in reverse order)
|
|
3994
|
-
|
|
3994
|
+
a > E && Z, Y = !1;
|
|
3995
3995
|
const d = Array.isArray(U) ? U : [U];
|
|
3996
3996
|
let b = d.reduce(D(l), {});
|
|
3997
|
-
|
|
3997
|
+
G === !1 && (b = {});
|
|
3998
3998
|
const { prevResolvedValues: CA = {} } = c, yA = {
|
|
3999
3999
|
...CA,
|
|
4000
4000
|
...b
|
|
@@ -4007,8 +4007,8 @@ function XC(A) {
|
|
|
4007
4007
|
const x = b[F], VA = CA[F];
|
|
4008
4008
|
if (n.hasOwnProperty(F))
|
|
4009
4009
|
continue;
|
|
4010
|
-
let
|
|
4011
|
-
eB(x) && eB(VA) ?
|
|
4010
|
+
let GA = !1;
|
|
4011
|
+
eB(x) && eB(VA) ? GA = !ye(x, VA) : GA = x !== VA, GA ? x != null ? UA(F) : I.add(F) : x !== void 0 && I.has(F) ? UA(F) : c.protectedKeys[F] = !0;
|
|
4012
4012
|
}
|
|
4013
4013
|
c.prevProp = U, c.prevResolvedValues = b, c.isActive && (n = { ...n, ...b }), M && A.blockInitialAnimation && (V = !1), V && (!(u && k) || Y) && o.push(...d.map((F) => ({
|
|
4014
4014
|
animation: F,
|
|
@@ -4016,11 +4016,11 @@ function XC(A) {
|
|
|
4016
4016
|
})));
|
|
4017
4017
|
}
|
|
4018
4018
|
if (I.size) {
|
|
4019
|
-
const
|
|
4019
|
+
const a = {};
|
|
4020
4020
|
I.forEach((l) => {
|
|
4021
4021
|
const c = A.getBaseTarget(l), U = A.getValue(l);
|
|
4022
|
-
U && (U.liveStyle = !0),
|
|
4023
|
-
}), o.push({ animation:
|
|
4022
|
+
U && (U.liveStyle = !0), a[l] = c ?? null;
|
|
4023
|
+
}), o.push({ animation: a });
|
|
4024
4024
|
}
|
|
4025
4025
|
let r = !!o.length;
|
|
4026
4026
|
return M && (C.initial === !1 || C.initial === C.animate) && !A.manuallyAnimateOnMount && (r = !1), M = !1, r ? g(o) : Promise.resolve();
|
|
@@ -4164,8 +4164,8 @@ class nt {
|
|
|
4164
4164
|
return;
|
|
4165
4165
|
const { point: E } = o, { timestamp: r } = j;
|
|
4166
4166
|
this.history.push({ ...E, timestamp: r });
|
|
4167
|
-
const { onStart:
|
|
4168
|
-
I || (
|
|
4167
|
+
const { onStart: a, onMove: l } = this.handlers;
|
|
4168
|
+
I || (a && a(this.lastMoveEvent, o), this.startEvent = this.lastMoveEvent), l && l(this.lastMoveEvent, o);
|
|
4169
4169
|
}, this.handlePointerMove = (o, I) => {
|
|
4170
4170
|
this.lastMoveEvent = o, this.lastMoveEventInfo = Wg(I, this.transformPagePoint), J.update(this.updatePoint, !0);
|
|
4171
4171
|
}, this.handlePointerUp = (o, I) => {
|
|
@@ -4173,8 +4173,8 @@ class nt {
|
|
|
4173
4173
|
const { onEnd: n, onSessionEnd: E, resumeAnimation: r } = this.handlers;
|
|
4174
4174
|
if (this.dragSnapToOrigin && r && r(), !(this.lastMoveEvent && this.lastMoveEventInfo))
|
|
4175
4175
|
return;
|
|
4176
|
-
const
|
|
4177
|
-
this.startEvent && n && n(o,
|
|
4176
|
+
const a = $g(o.type === "pointercancel" ? this.lastMoveEventInfo : Wg(I, this.transformPagePoint), this.history);
|
|
4177
|
+
this.startEvent && n && n(o, a), E && E(o, a);
|
|
4178
4178
|
}, !QM(g))
|
|
4179
4179
|
return;
|
|
4180
4180
|
this.dragSnapToOrigin = t, this.handlers = B, this.transformPagePoint = M, this.contextWindow = D || window;
|
|
@@ -4281,7 +4281,7 @@ function oi(A, g) {
|
|
|
4281
4281
|
function Ii(A, g) {
|
|
4282
4282
|
let B = 0.5;
|
|
4283
4283
|
const M = BA(A), D = BA(g);
|
|
4284
|
-
return D > M ? B = /* @__PURE__ */ jA(g.min, g.max - M, A.min) : M > D && (B = /* @__PURE__ */ jA(A.min, A.max - D, g.min)),
|
|
4284
|
+
return D > M ? B = /* @__PURE__ */ jA(g.min, g.max - M, A.min) : M > D && (B = /* @__PURE__ */ jA(A.min, A.max - D, g.min)), aA(0, 1, B);
|
|
4285
4285
|
}
|
|
4286
4286
|
function ni(A, g) {
|
|
4287
4287
|
const B = {};
|
|
@@ -4318,7 +4318,7 @@ const iD = () => ({
|
|
|
4318
4318
|
function DA(A) {
|
|
4319
4319
|
return [A("x"), A("y")];
|
|
4320
4320
|
}
|
|
4321
|
-
function
|
|
4321
|
+
function at({ top: A, left: g, right: B, bottom: M }) {
|
|
4322
4322
|
return {
|
|
4323
4323
|
x: { min: g, max: B },
|
|
4324
4324
|
y: { min: A, max: M }
|
|
@@ -4345,9 +4345,9 @@ function lB({ scale: A, scaleX: g, scaleY: B }) {
|
|
|
4345
4345
|
return !_g(A) || !_g(g) || !_g(B);
|
|
4346
4346
|
}
|
|
4347
4347
|
function dA(A) {
|
|
4348
|
-
return lB(A) ||
|
|
4348
|
+
return lB(A) || Gt(A) || A.z || A.rotate || A.rotateX || A.rotateY || A.skewX || A.skewY;
|
|
4349
4349
|
}
|
|
4350
|
-
function
|
|
4350
|
+
function Gt(A) {
|
|
4351
4351
|
return oD(A.x) || oD(A.y);
|
|
4352
4352
|
}
|
|
4353
4353
|
function oD(A) {
|
|
@@ -4360,14 +4360,14 @@ function Rg(A, g, B) {
|
|
|
4360
4360
|
function ID(A, g, B, M, D) {
|
|
4361
4361
|
return D !== void 0 && (A = Rg(A, D, M)), Rg(A, B, M) + g;
|
|
4362
4362
|
}
|
|
4363
|
-
function
|
|
4363
|
+
function aB(A, g = 0, B = 1, M, D) {
|
|
4364
4364
|
A.min = ID(A.min, g, B, M, D), A.max = ID(A.max, g, B, M, D);
|
|
4365
4365
|
}
|
|
4366
4366
|
function ct(A, { x: g, y: B }) {
|
|
4367
|
-
|
|
4367
|
+
aB(A.x, g.translate, g.scale, g.originPoint), aB(A.y, B.translate, B.scale, B.originPoint);
|
|
4368
4368
|
}
|
|
4369
4369
|
const nD = 0.999999999999, ED = 1.0000000000001;
|
|
4370
|
-
function
|
|
4370
|
+
function ai(A, g, B, M = !1) {
|
|
4371
4371
|
const D = B.length;
|
|
4372
4372
|
if (!D)
|
|
4373
4373
|
return;
|
|
@@ -4388,15 +4388,15 @@ function LA(A, g) {
|
|
|
4388
4388
|
}
|
|
4389
4389
|
function rD(A, g, B, M, D = 0.5) {
|
|
4390
4390
|
const t = v(A.min, A.max, D);
|
|
4391
|
-
|
|
4391
|
+
aB(A, g, B, t, M);
|
|
4392
4392
|
}
|
|
4393
4393
|
function FA(A, g) {
|
|
4394
4394
|
rD(A.x, g.x, g.scaleX, g.scale, g.originX), rD(A.y, g.y, g.scaleY, g.scale, g.originY);
|
|
4395
4395
|
}
|
|
4396
4396
|
function Yt(A, g) {
|
|
4397
|
-
return
|
|
4397
|
+
return at(li(A.getBoundingClientRect(), g));
|
|
4398
4398
|
}
|
|
4399
|
-
function
|
|
4399
|
+
function Gi(A, g, B) {
|
|
4400
4400
|
const M = Yt(A, B), { scroll: D } = g;
|
|
4401
4401
|
return D && (LA(M.x, D.offset.x), LA(M.y, D.offset.y)), M;
|
|
4402
4402
|
}
|
|
@@ -4416,16 +4416,16 @@ class Yi {
|
|
|
4416
4416
|
const { drag: I, dragPropagation: n, onDragStart: E } = this.getProps();
|
|
4417
4417
|
if (I && !n && (this.openDragLock && this.openDragLock(), this.openDragLock = EQ(I), !this.openDragLock))
|
|
4418
4418
|
return;
|
|
4419
|
-
this.isDragging = !0, this.currentDirection = null, this.resolveConstraints(), this.visualElement.projection && (this.visualElement.projection.isAnimationBlocked = !0, this.visualElement.projection.target = void 0), DA((
|
|
4420
|
-
let l = this.getAxisMotionValue(
|
|
4419
|
+
this.isDragging = !0, this.currentDirection = null, this.resolveConstraints(), this.visualElement.projection && (this.visualElement.projection.isAnimationBlocked = !0, this.visualElement.projection.target = void 0), DA((a) => {
|
|
4420
|
+
let l = this.getAxisMotionValue(a).get() || 0;
|
|
4421
4421
|
if (oA.test(l)) {
|
|
4422
4422
|
const { projection: c } = this.visualElement;
|
|
4423
4423
|
if (c && c.layout) {
|
|
4424
|
-
const U = c.layout.layoutBox[
|
|
4424
|
+
const U = c.layout.layoutBox[a];
|
|
4425
4425
|
U && (l = BA(U) * (parseFloat(l) / 100));
|
|
4426
4426
|
}
|
|
4427
4427
|
}
|
|
4428
|
-
this.originPoint[
|
|
4428
|
+
this.originPoint[a] = l;
|
|
4429
4429
|
}), E && J.postRender(() => E(s, o)), QB(this.visualElement, "transform");
|
|
4430
4430
|
const { animationState: r } = this.visualElement;
|
|
4431
4431
|
r && r.setActive("whileDrag", !0);
|
|
@@ -4433,12 +4433,12 @@ class Yi {
|
|
|
4433
4433
|
const { dragPropagation: I, dragDirectionLock: n, onDirectionLock: E, onDrag: r } = this.getProps();
|
|
4434
4434
|
if (!I && !this.openDragLock)
|
|
4435
4435
|
return;
|
|
4436
|
-
const { offset:
|
|
4436
|
+
const { offset: a } = o;
|
|
4437
4437
|
if (n && this.currentDirection === null) {
|
|
4438
|
-
this.currentDirection = ui(
|
|
4438
|
+
this.currentDirection = ui(a), this.currentDirection !== null && E && E(this.currentDirection);
|
|
4439
4439
|
return;
|
|
4440
4440
|
}
|
|
4441
|
-
this.updateAxis("x", o.point,
|
|
4441
|
+
this.updateAxis("x", o.point, a), this.updateAxis("y", o.point, a), this.visualElement.render(), r && r(s, o);
|
|
4442
4442
|
}, w = (s, o) => this.stop(s, o), Q = () => DA((s) => {
|
|
4443
4443
|
var o;
|
|
4444
4444
|
return this.getAnimationState(s) === "paused" && ((o = this.getAxisMotionValue(s).animation) === null || o === void 0 ? void 0 : o.play());
|
|
@@ -4495,11 +4495,11 @@ class Yi {
|
|
|
4495
4495
|
const { projection: D } = this.visualElement;
|
|
4496
4496
|
if (!D || !D.layout)
|
|
4497
4497
|
return !1;
|
|
4498
|
-
const t =
|
|
4498
|
+
const t = Gi(M, D.root, this.visualElement.getTransformPagePoint());
|
|
4499
4499
|
let e = oi(D.layout.layoutBox, t);
|
|
4500
4500
|
if (B) {
|
|
4501
4501
|
const w = B(ri(e));
|
|
4502
|
-
this.hasMutatedConstraints = !!w, w && (e =
|
|
4502
|
+
this.hasMutatedConstraints = !!w, w && (e = at(w));
|
|
4503
4503
|
}
|
|
4504
4504
|
return e;
|
|
4505
4505
|
}
|
|
@@ -4691,7 +4691,7 @@ const yg = {
|
|
|
4691
4691
|
*/
|
|
4692
4692
|
hasEverUpdated: !1
|
|
4693
4693
|
};
|
|
4694
|
-
function
|
|
4694
|
+
function aD(A, g) {
|
|
4695
4695
|
return g.max === g.min ? 0 : A / (g.max - g.min) * 100;
|
|
4696
4696
|
}
|
|
4697
4697
|
const $A = {
|
|
@@ -4703,7 +4703,7 @@ const $A = {
|
|
|
4703
4703
|
A = parseFloat(A);
|
|
4704
4704
|
else
|
|
4705
4705
|
return A;
|
|
4706
|
-
const B =
|
|
4706
|
+
const B = aD(A, g.target.x), M = aD(A, g.target.y);
|
|
4707
4707
|
return `${B}% ${M}%`;
|
|
4708
4708
|
}
|
|
4709
4709
|
}, Ui = {
|
|
@@ -4806,7 +4806,7 @@ function Ki(A, g) {
|
|
|
4806
4806
|
};
|
|
4807
4807
|
return J.read(M, !0), () => YA(M);
|
|
4808
4808
|
}
|
|
4809
|
-
const yt = ["TopLeft", "TopRight", "BottomLeft", "BottomRight"], pi = yt.length,
|
|
4809
|
+
const yt = ["TopLeft", "TopRight", "BottomLeft", "BottomRight"], pi = yt.length, GD = (A) => typeof A == "string" ? parseFloat(A) : A, cD = (A) => typeof A == "number" || f.test(A);
|
|
4810
4810
|
function Ri(A, g, B, M, D, t) {
|
|
4811
4811
|
D ? (A.opacity = v(
|
|
4812
4812
|
0,
|
|
@@ -4819,7 +4819,7 @@ function Ri(A, g, B, M, D, t) {
|
|
|
4819
4819
|
let Q = YD(g, w), C = YD(B, w);
|
|
4820
4820
|
if (Q === void 0 && C === void 0)
|
|
4821
4821
|
continue;
|
|
4822
|
-
Q || (Q = 0), C || (C = 0), Q === 0 || C === 0 || cD(Q) === cD(C) ? (A[w] = Math.max(v(
|
|
4822
|
+
Q || (Q = 0), C || (C = 0), Q === 0 || C === 0 || cD(Q) === cD(C) ? (A[w] = Math.max(v(GD(Q), GD(C), M), 0), (oA.test(C) || oA.test(Q)) && (A[w] += "%")) : A[w] = C;
|
|
4823
4823
|
}
|
|
4824
4824
|
(g.rotate || B.rotate) && (A.rotate = v(g.rotate || 0, B.rotate || 0, M));
|
|
4825
4825
|
}
|
|
@@ -5010,12 +5010,12 @@ function dt({ attachResizeListener: A, defaultParent: g, measureScroll: B, check
|
|
|
5010
5010
|
this.target = void 0, this.relativeTarget = void 0;
|
|
5011
5011
|
return;
|
|
5012
5012
|
}
|
|
5013
|
-
const r = this.options.transition || s.getDefaultTransition() || Ds, { onLayoutAnimationStart:
|
|
5013
|
+
const r = this.options.transition || s.getDefaultTransition() || Ds, { onLayoutAnimationStart: a, onLayoutAnimationComplete: l } = s.getProps(), c = !this.targetLayout || !Vt(this.targetLayout, E), U = !I && n;
|
|
5014
5014
|
if (this.options.layoutRoot || this.resumeFrom || U || I && (c || !this.currentAnimation)) {
|
|
5015
5015
|
this.resumeFrom && (this.resumingFrom = this.resumeFrom, this.resumingFrom.resumingFrom = void 0), this.setAnimationOrigin(o, U);
|
|
5016
5016
|
const Z = {
|
|
5017
5017
|
...eM(r, "layout"),
|
|
5018
|
-
onPlay:
|
|
5018
|
+
onPlay: a,
|
|
5019
5019
|
onComplete: l
|
|
5020
5020
|
};
|
|
5021
5021
|
(s.shouldReduceMotion || this.options.layoutRoot) && (Z.delay = 0, Z.type = !1), this.startAnimation(Z);
|
|
@@ -5075,7 +5075,7 @@ function dt({ attachResizeListener: A, defaultParent: g, measureScroll: B, check
|
|
|
5075
5075
|
}
|
|
5076
5076
|
this.isUpdating || this.nodes.forEach(xi), this.isUpdating = !1, this.nodes.forEach(Wi), this.nodes.forEach(Hi), this.nodes.forEach(Ti), this.clearAllSnapshots();
|
|
5077
5077
|
const w = IA.now();
|
|
5078
|
-
j.delta =
|
|
5078
|
+
j.delta = aA(0, 1e3 / 60, w - j.timestamp), j.timestamp = w, j.isProcessing = !0, Tg.update.process(j), Tg.preRender.process(j), Tg.render.process(j), j.isProcessing = !1;
|
|
5079
5079
|
}
|
|
5080
5080
|
didUpdate() {
|
|
5081
5081
|
this.updateScheduled || (this.updateScheduled = !0, NB.read(this.scheduleUpdate));
|
|
@@ -5226,7 +5226,7 @@ function dt({ attachResizeListener: A, defaultParent: g, measureScroll: B, check
|
|
|
5226
5226
|
}
|
|
5227
5227
|
}
|
|
5228
5228
|
getClosestProjectingParent() {
|
|
5229
|
-
if (!(!this.parent || lB(this.parent.latestValues) ||
|
|
5229
|
+
if (!(!this.parent || lB(this.parent.latestValues) || Gt(this.parent.latestValues)))
|
|
5230
5230
|
return this.parent.isProjecting() ? this.parent : this.parent.getClosestProjectingParent();
|
|
5231
5231
|
}
|
|
5232
5232
|
isProjecting() {
|
|
@@ -5243,7 +5243,7 @@ function dt({ attachResizeListener: A, defaultParent: g, measureScroll: B, check
|
|
|
5243
5243
|
return;
|
|
5244
5244
|
MA(this.layoutCorrected, this.layout.layoutBox);
|
|
5245
5245
|
const I = this.treeScale.x, n = this.treeScale.y;
|
|
5246
|
-
|
|
5246
|
+
ai(this.layoutCorrected, this.treeScale, this.path, Q), w.layout && !w.target && (this.treeScale.x !== 1 || this.treeScale.y !== 1) && (w.target = w.layout.layoutBox, w.targetWithTransforms = L());
|
|
5247
5247
|
const { target: E } = w;
|
|
5248
5248
|
if (!E) {
|
|
5249
5249
|
this.prevProjectionDelta && (this.createProjectionDeltas(), this.scheduleRender());
|
|
@@ -5271,12 +5271,12 @@ function dt({ attachResizeListener: A, defaultParent: g, measureScroll: B, check
|
|
|
5271
5271
|
setAnimationOrigin(e, w = !1) {
|
|
5272
5272
|
const Q = this.snapshot, C = Q ? Q.latestValues : {}, s = { ...this.latestValues }, o = PA();
|
|
5273
5273
|
(!this.relativeParent || !this.relativeParent.options.layoutRoot) && (this.relativeTarget = this.relativeTargetOrigin = void 0), this.attemptToResolveRelativeTarget = !w;
|
|
5274
|
-
const I = L(), n = Q ? Q.source : void 0, E = this.layout ? this.layout.source : void 0, r = n !== E,
|
|
5274
|
+
const I = L(), n = Q ? Q.source : void 0, E = this.layout ? this.layout.source : void 0, r = n !== E, a = this.getStack(), l = !a || a.members.length <= 1, c = !!(r && !l && this.options.crossfade === !0 && !this.path.some(Ms));
|
|
5275
5275
|
this.animationProgress = 0;
|
|
5276
5276
|
let U;
|
|
5277
5277
|
this.mixTargetDelta = (Z) => {
|
|
5278
|
-
const
|
|
5279
|
-
hD(o.x, e.x,
|
|
5278
|
+
const G = Z / 1e3;
|
|
5279
|
+
hD(o.x, e.x, G), hD(o.y, e.y, G), this.setTargetDelta(o), this.relativeTarget && this.relativeTargetOrigin && this.layout && this.relativeParent && this.relativeParent.layout && (tg(I, this.layout.layoutBox, this.relativeParent.layout.layoutBox), Bs(this.relativeTarget, this.relativeTargetOrigin, I, G), U && Li(this.relativeTarget, U) && (this.isProjectionDirty = !1), U || (U = L()), MA(U, this.relativeTarget)), r && (this.animationValues = s, Ri(s, C, this.latestValues, G, c, l)), this.root.scheduleUpdateProjection(), this.scheduleRender(), this.animationProgress = G;
|
|
5280
5280
|
}, this.mixTargetDelta(this.options.layoutRoot ? 1e3 : 0);
|
|
5281
5281
|
}
|
|
5282
5282
|
startAnimation(e) {
|
|
@@ -5389,7 +5389,7 @@ function dt({ attachResizeListener: A, defaultParent: g, measureScroll: B, check
|
|
|
5389
5389
|
for (const r in dg) {
|
|
5390
5390
|
if (I[r] === void 0)
|
|
5391
5391
|
continue;
|
|
5392
|
-
const { correct:
|
|
5392
|
+
const { correct: a, applyTo: l } = dg[r], c = C.transform === "none" ? I[r] : a(I[r], o);
|
|
5393
5393
|
if (l) {
|
|
5394
5394
|
const U = l.length;
|
|
5395
5395
|
for (let Z = 0; Z < U; Z++)
|
|
@@ -5606,8 +5606,8 @@ class ss extends mA {
|
|
|
5606
5606
|
unmount() {
|
|
5607
5607
|
}
|
|
5608
5608
|
}
|
|
5609
|
-
const
|
|
5610
|
-
const g =
|
|
5609
|
+
const GB = /* @__PURE__ */ new WeakMap(), MB = /* @__PURE__ */ new WeakMap(), os = (A) => {
|
|
5610
|
+
const g = GB.get(A.target);
|
|
5611
5611
|
g && g(A);
|
|
5612
5612
|
}, Is = (A) => {
|
|
5613
5613
|
A.forEach(os);
|
|
@@ -5620,8 +5620,8 @@ function ns({ root: A, ...g }) {
|
|
|
5620
5620
|
}
|
|
5621
5621
|
function Es(A, g, B) {
|
|
5622
5622
|
const M = ns(g);
|
|
5623
|
-
return
|
|
5624
|
-
|
|
5623
|
+
return GB.set(A, B), M.observe(A), () => {
|
|
5624
|
+
GB.delete(A), M.unobserve(A);
|
|
5625
5625
|
};
|
|
5626
5626
|
}
|
|
5627
5627
|
const rs = {
|
|
@@ -5655,15 +5655,15 @@ class ls extends mA {
|
|
|
5655
5655
|
if (typeof IntersectionObserver > "u")
|
|
5656
5656
|
return;
|
|
5657
5657
|
const { props: g, prevProps: B } = this.node;
|
|
5658
|
-
["amount", "margin", "root"].some(
|
|
5658
|
+
["amount", "margin", "root"].some(as(g, B)) && this.startObserver();
|
|
5659
5659
|
}
|
|
5660
5660
|
unmount() {
|
|
5661
5661
|
}
|
|
5662
5662
|
}
|
|
5663
|
-
function
|
|
5663
|
+
function as({ viewport: A = {} }, { viewport: g = {} } = {}) {
|
|
5664
5664
|
return (B) => A[B] !== g[B];
|
|
5665
5665
|
}
|
|
5666
|
-
const
|
|
5666
|
+
const Gs = {
|
|
5667
5667
|
inView: {
|
|
5668
5668
|
Feature: ls
|
|
5669
5669
|
},
|
|
@@ -5732,7 +5732,7 @@ class Us {
|
|
|
5732
5732
|
return {};
|
|
5733
5733
|
}
|
|
5734
5734
|
constructor({ parent: g, props: B, presenceContext: M, reducedMotionConfig: D, blockInitialAnimation: t, visualState: e }, w = {}) {
|
|
5735
|
-
this.current = null, this.children = /* @__PURE__ */ new Set(), this.isVariantNode = !1, this.isControllingVariants = !1, this.shouldReduceMotion = null, this.values = /* @__PURE__ */ new Map(), this.KeyframeResolver =
|
|
5735
|
+
this.current = null, this.children = /* @__PURE__ */ new Set(), this.isVariantNode = !1, this.isControllingVariants = !1, this.shouldReduceMotion = null, this.values = /* @__PURE__ */ new Map(), this.KeyframeResolver = aM, this.features = {}, this.valueSubscriptions = /* @__PURE__ */ new Map(), this.prevMotionValues = {}, this.events = {}, this.propEventSubscriptions = {}, this.notifyUpdate = () => this.notify("Update", this.latestValues), this.render = () => {
|
|
5736
5736
|
this.current && (this.triggerBuild(), this.renderInstance(this.current, this.renderState, this.props.style, this.projection));
|
|
5737
5737
|
}, this.renderScheduledAt = 0, this.scheduleRender = () => {
|
|
5738
5738
|
const n = IA.now();
|
|
@@ -5939,7 +5939,7 @@ function Zs(A) {
|
|
|
5939
5939
|
}
|
|
5940
5940
|
class Vs extends pt {
|
|
5941
5941
|
constructor() {
|
|
5942
|
-
super(...arguments), this.type = "html", this.renderInstance =
|
|
5942
|
+
super(...arguments), this.type = "html", this.renderInstance = ae;
|
|
5943
5943
|
}
|
|
5944
5944
|
readValueFromInstance(g, B) {
|
|
5945
5945
|
if (RA.has(B)) {
|
|
@@ -5972,7 +5972,7 @@ class fs extends pt {
|
|
|
5972
5972
|
const M = lM(B);
|
|
5973
5973
|
return M && M.default || 0;
|
|
5974
5974
|
}
|
|
5975
|
-
return B =
|
|
5975
|
+
return B = Ge.has(B) ? B : XB(B), g.getAttribute(B);
|
|
5976
5976
|
}
|
|
5977
5977
|
scrapeMotionValuesFromProps(g, B, M) {
|
|
5978
5978
|
return ue(g, B, M);
|
|
@@ -5991,10 +5991,10 @@ const ds = (A, g) => xB(A) ? new fs(g) : new Vs(g, {
|
|
|
5991
5991
|
allowProjection: A !== HD
|
|
5992
5992
|
}), qs = /* @__PURE__ */ DQ({
|
|
5993
5993
|
..._C,
|
|
5994
|
-
...
|
|
5994
|
+
...Gs,
|
|
5995
5995
|
...Qs,
|
|
5996
5996
|
...cs
|
|
5997
|
-
}, ds), hg = /* @__PURE__ */
|
|
5997
|
+
}, ds), hg = /* @__PURE__ */ Gw(qs);
|
|
5998
5998
|
function ks(A) {
|
|
5999
5999
|
A.values.forEach((g) => g.stop());
|
|
6000
6000
|
}
|
|
@@ -6093,10 +6093,10 @@ const zs = N(
|
|
|
6093
6093
|
widthLogo: D = "65px",
|
|
6094
6094
|
...t
|
|
6095
6095
|
}, e) => {
|
|
6096
|
-
const w = ge(), [Q, C] = h(!1), [s, o] = h(void 0), [I] = h(""), n = g.reduce((Z,
|
|
6096
|
+
const w = ge(), [Q, C] = h(!1), [s, o] = h(void 0), [I] = h(""), n = g.reduce((Z, G) => (Z[G.refId] = AA(null), Z), {}), E = () => C(!Q);
|
|
6097
6097
|
O(() => {
|
|
6098
|
-
g.forEach((
|
|
6099
|
-
const u = n[
|
|
6098
|
+
g.forEach((G) => {
|
|
6099
|
+
const u = n[G.refId];
|
|
6100
6100
|
if (u != null && u.current) {
|
|
6101
6101
|
const k = (V) => {
|
|
6102
6102
|
const Y = V.target;
|
|
@@ -6107,25 +6107,25 @@ const zs = N(
|
|
|
6107
6107
|
});
|
|
6108
6108
|
const Z = n[I];
|
|
6109
6109
|
return Z != null && Z.current && o(Z.current.getBoundingClientRect()), () => {
|
|
6110
|
-
g.forEach((
|
|
6111
|
-
const u = n[
|
|
6110
|
+
g.forEach((G) => {
|
|
6111
|
+
const u = n[G.refId];
|
|
6112
6112
|
u != null && u.current && u.current.removeEventListener("mouseenter", () => {
|
|
6113
6113
|
});
|
|
6114
6114
|
});
|
|
6115
6115
|
};
|
|
6116
6116
|
}, [I, g, n]), O(() => {
|
|
6117
|
-
const Z = window.matchMedia("(min-width: 640px)"),
|
|
6117
|
+
const Z = window.matchMedia("(min-width: 640px)"), G = () => {
|
|
6118
6118
|
Z.matches && Q && C(!1);
|
|
6119
6119
|
};
|
|
6120
|
-
return Z.addEventListener("change",
|
|
6121
|
-
Z.removeEventListener("change",
|
|
6120
|
+
return Z.addEventListener("change", G), () => {
|
|
6121
|
+
Z.removeEventListener("change", G);
|
|
6122
6122
|
};
|
|
6123
6123
|
}, [Q]);
|
|
6124
6124
|
const r = {
|
|
6125
6125
|
goatData: "bg-zinc-900",
|
|
6126
6126
|
secondary: "bg-[#ededed]",
|
|
6127
6127
|
experiences: "bg-[#a8dbce]"
|
|
6128
|
-
},
|
|
6128
|
+
}, a = {
|
|
6129
6129
|
goatData: "#9a6d79",
|
|
6130
6130
|
secondary: "#1f2937e7",
|
|
6131
6131
|
experiences: "#f8b7cbd7"
|
|
@@ -6147,7 +6147,7 @@ const zs = N(
|
|
|
6147
6147
|
/* @__PURE__ */ i(
|
|
6148
6148
|
hg.div,
|
|
6149
6149
|
{
|
|
6150
|
-
style: { background:
|
|
6150
|
+
style: { background: a[A], position: "absolute", opacity: 0.4, borderRadius: "0.25rem" },
|
|
6151
6151
|
className: "z-20 pointer-events-none",
|
|
6152
6152
|
animate: {
|
|
6153
6153
|
top: (s == null ? void 0 : s.top) || 0,
|
|
@@ -6185,7 +6185,7 @@ const zs = N(
|
|
|
6185
6185
|
),
|
|
6186
6186
|
(!B || B.trim() === "") && /* @__PURE__ */ i("div", { className: `text-[10px] ${U[A]} tracking-[4px]`, children: "DATA" })
|
|
6187
6187
|
] }) }),
|
|
6188
|
-
/* @__PURE__ */ i("div", { style: { display: w ? "none" : "block", flexGrow: 1, marginLeft: "1.5rem" }, children: /* @__PURE__ */ i("nav", { style: { display: "flex", justifyContent: "flex-end" }, children: /* @__PURE__ */ i("ul", { className: "flex space-x-4", children: g.map(({ label: Z, href:
|
|
6188
|
+
/* @__PURE__ */ i("div", { style: { display: w ? "none" : "block", flexGrow: 1, marginLeft: "1.5rem" }, children: /* @__PURE__ */ i("nav", { style: { display: "flex", justifyContent: "flex-end" }, children: /* @__PURE__ */ i("ul", { className: "flex space-x-4", children: g.map(({ label: Z, href: G, refId: u }) => /* @__PURE__ */ i("li", { children: /* @__PURE__ */ i(ZM, { href: G, Viewport: l[A], colorButton: c[A], setIsOpen: C, children: /* @__PURE__ */ i(
|
|
6189
6189
|
"div",
|
|
6190
6190
|
{
|
|
6191
6191
|
id: u,
|
|
@@ -6193,11 +6193,11 @@ const zs = N(
|
|
|
6193
6193
|
style: { padding: "6px", color: c[A] },
|
|
6194
6194
|
children: Z
|
|
6195
6195
|
}
|
|
6196
|
-
) }) },
|
|
6196
|
+
) }) }, G)) }) }) })
|
|
6197
6197
|
] })
|
|
6198
6198
|
] })
|
|
6199
6199
|
] }),
|
|
6200
|
-
Q && /* @__PURE__ */ i("div", { className: "space-y-1 px-2 pt-2 pb-3", children: g.map(({ label: Z, href:
|
|
6200
|
+
Q && /* @__PURE__ */ i("div", { className: "space-y-1 px-2 pt-2 pb-3", children: g.map(({ label: Z, href: G }) => /* @__PURE__ */ i(ZM, { href: G, Viewport: l[A], colorButton: c[A], setIsOpen: C, children: Z }, G)) })
|
|
6201
6201
|
] });
|
|
6202
6202
|
}
|
|
6203
6203
|
);
|
|
@@ -6326,14 +6326,14 @@ const Ps = N(
|
|
|
6326
6326
|
...s
|
|
6327
6327
|
}, o) => {
|
|
6328
6328
|
var k, V;
|
|
6329
|
-
const [I, n] = h(0), E = AA(null), r = AA(null),
|
|
6329
|
+
const [I, n] = h(0), E = AA(null), r = AA(null), a = AA(null), l = (Y) => {
|
|
6330
6330
|
r.current = Y.touches[0].clientX;
|
|
6331
6331
|
}, c = (Y) => {
|
|
6332
|
-
|
|
6332
|
+
a.current = Y.touches[0].clientX;
|
|
6333
6333
|
}, U = () => {
|
|
6334
|
-
if (!r.current || !
|
|
6335
|
-
const Y = r.current -
|
|
6336
|
-
Y > 50 ? I < A.length - 1 && n(I + 1) : Y < -50 && I > 0 && n(I - 1), r.current = null,
|
|
6334
|
+
if (!r.current || !a.current) return;
|
|
6335
|
+
const Y = r.current - a.current;
|
|
6336
|
+
Y > 50 ? I < A.length - 1 && n(I + 1) : Y < -50 && I > 0 && n(I - 1), r.current = null, a.current = null;
|
|
6337
6337
|
}, Z = () => {
|
|
6338
6338
|
n((Y) => (Y + 1) % A.length);
|
|
6339
6339
|
};
|
|
@@ -6341,7 +6341,7 @@ const Ps = N(
|
|
|
6341
6341
|
E.current && clearInterval(E.current);
|
|
6342
6342
|
}), [B, A.length]), !A || A.length === 0)
|
|
6343
6343
|
return /* @__PURE__ */ i("header", { ...s, className: "relative w-full overflow-hidden", style: { height: M }, children: /* @__PURE__ */ i("p", { className: "text-center text-gray-500", children: "No hay imágenes para mostrar" }) });
|
|
6344
|
-
const
|
|
6344
|
+
const G = (Y) => {
|
|
6345
6345
|
const d = document.getElementById(Y.slice(1));
|
|
6346
6346
|
d && d.scrollIntoView({ behavior: "smooth" });
|
|
6347
6347
|
}, u = {
|
|
@@ -6377,7 +6377,7 @@ const Ps = N(
|
|
|
6377
6377
|
t.text5 && /* @__PURE__ */ i(OA, { variant: "tertiary", duration: 1, delay: 1, children: /* @__PURE__ */ i("div", { className: "flex", style: { padding: "5px" }, children: /* @__PURE__ */ i(wg, { variant: "tertiary", onClick: C, size: "small", label: t.text5 }) }) })
|
|
6378
6378
|
] })
|
|
6379
6379
|
] }),
|
|
6380
|
-
(D == null ? void 0 : D.content) && /* @__PURE__ */ i("div", { className: "absolute z-20 bottom-8 left-1/2 transform -translate-x-1/2 pointer-events-auto", children: /* @__PURE__ */ i(rA, { children: /* @__PURE__ */ y("a", { onClick: () => D.content &&
|
|
6380
|
+
(D == null ? void 0 : D.content) && /* @__PURE__ */ i("div", { className: "absolute z-20 bottom-8 left-1/2 transform -translate-x-1/2 pointer-events-auto", children: /* @__PURE__ */ i(rA, { children: /* @__PURE__ */ y("a", { onClick: () => D.content && G(D.content), className: "flex flex-col items-center text-white cursor-pointer", children: [
|
|
6381
6381
|
/* @__PURE__ */ i("span", { className: "mb-2 text-lg font-medium", children: "Explora más" }),
|
|
6382
6382
|
/* @__PURE__ */ i(
|
|
6383
6383
|
"svg",
|
|
@@ -6486,7 +6486,7 @@ const ht = ({ infoText: A, disabled: g = !1, bgStyles: B }) => {
|
|
|
6486
6486
|
className: n,
|
|
6487
6487
|
...E
|
|
6488
6488
|
}, r) => {
|
|
6489
|
-
const [
|
|
6489
|
+
const [a, l] = h(s), c = () => {
|
|
6490
6490
|
l(
|
|
6491
6491
|
(Y) => Y === "password" ? "text" : "password"
|
|
6492
6492
|
);
|
|
@@ -6508,7 +6508,7 @@ const ht = ({ infoText: A, disabled: g = !1, bgStyles: B }) => {
|
|
|
6508
6508
|
warning: "border border-[#f59e0b] focus:ring-[#f59e0b]",
|
|
6509
6509
|
success: "border border-[#047857] focus:ring-[#047857]",
|
|
6510
6510
|
tertiary: "border border-[#d4d3d3] bg-[#f8f9fa] focus:ring-[#1F2937]"
|
|
6511
|
-
},
|
|
6511
|
+
}, G = {
|
|
6512
6512
|
primary: "#1F2937",
|
|
6513
6513
|
secondary: "#73787f",
|
|
6514
6514
|
vividPink: "#ff0145",
|
|
@@ -6522,11 +6522,11 @@ const ht = ({ infoText: A, disabled: g = !1, bgStyles: B }) => {
|
|
|
6522
6522
|
small: "px-4 py-1.5 text-xs",
|
|
6523
6523
|
medium: "px-6 py-2.5 text-base",
|
|
6524
6524
|
large: "px-8 py-3 text-lg"
|
|
6525
|
-
}, k = () => M === "home" ? /* @__PURE__ */ i(KB, { size: g === "small" ? 15 : 20, color:
|
|
6525
|
+
}, k = () => M === "home" ? /* @__PURE__ */ i(KB, { size: g === "small" ? 15 : 20, color: G[A] }) : M === "Left" ? /* @__PURE__ */ i(uB, { size: g === "small" ? 15 : 20, color: G[A] }) : M === "right" ? /* @__PURE__ */ i(mB, { size: g === "small" ? 15 : 20, color: G[A] }) : M === "save" ? /* @__PURE__ */ i(JB, { size: g === "small" ? 15 : 20, color: G[A] }) : M === "more" ? /* @__PURE__ */ i(VB, { size: g === "small" ? 15 : 20, color: G[A] }) : M === "update" ? /* @__PURE__ */ i(dB, { size: g === "small" ? 15 : 20, color: G[A] }) : M === "attach" ? /* @__PURE__ */ i(pB, { size: g === "small" ? 15 : 20, color: G[A] }) : M === "send" ? /* @__PURE__ */ i(PB, { size: g === "small" ? 15 : 20, color: G[A] }) : M === "delete" ? /* @__PURE__ */ i(yB, { size: g === "small" ? 15 : 20, color: G[A] }) : M === "edit" ? /* @__PURE__ */ i(UB, { size: g === "small" ? 15 : 20, color: G[A] }) : M === "login" ? /* @__PURE__ */ i(vB, { size: g === "small" ? 15 : 20, color: G[A] }) : M === "reset" ? /* @__PURE__ */ i(ZB, { size: g === "small" ? 15 : 20, color: G[A] }) : M === "add" ? /* @__PURE__ */ i(fB, { size: g === "small" ? 15 : 20, color: G[A] }) : M === "exit" ? /* @__PURE__ */ i(zB, { size: g === "small" ? 15 : 20, color: G[A] }) : M === "off" ? /* @__PURE__ */ i(hB, { size: g === "small" ? 15 : 20, color: G[A] }) : M === "calculator" ? /* @__PURE__ */ i(kB, { size: g === "small" ? 15 : 20, color: G[A] }) : M === "list" ? /* @__PURE__ */ i(qB, { size: g === "small" ? 15 : 20, color: G[A] }) : M === "futbol" ? /* @__PURE__ */ i(RB, { size: g === "small" ? 15 : 20, color: G[A] }) : null, V = () => _.isValidElement(D) ? _.cloneElement(D, { className: "w-5 h-5" }) : k();
|
|
6526
6526
|
return /* @__PURE__ */ y("div", { className: "relative", children: [
|
|
6527
6527
|
e && /* @__PURE__ */ y("div", { className: "flex items-center text-xs mb-1 font-medium text-gray-800", children: [
|
|
6528
6528
|
/* @__PURE__ */ i("span", { style: { color: A === "tertiary" ? "#73787f" : "" }, children: e }),
|
|
6529
|
-
w && Q && /* @__PURE__ */ i(ht, { infoText: Q, disabled: B, bgStyles:
|
|
6529
|
+
w && Q && /* @__PURE__ */ i(ht, { infoText: Q, disabled: B, bgStyles: G[A] })
|
|
6530
6530
|
] }),
|
|
6531
6531
|
/* @__PURE__ */ y("div", { className: "relative flex items-center", children: [
|
|
6532
6532
|
D && C === "left" && /* @__PURE__ */ i("span", { className: "absolute left-3", children: V() }),
|
|
@@ -6534,7 +6534,7 @@ const ht = ({ infoText: A, disabled: g = !1, bgStyles: B }) => {
|
|
|
6534
6534
|
"input",
|
|
6535
6535
|
{
|
|
6536
6536
|
ref: r,
|
|
6537
|
-
type:
|
|
6537
|
+
type: a,
|
|
6538
6538
|
className: R(
|
|
6539
6539
|
U,
|
|
6540
6540
|
o ? "border-[#b91c1c] focus:ring-[#b91c1c]" : Z[A],
|
|
@@ -6556,7 +6556,7 @@ const ht = ({ infoText: A, disabled: g = !1, bgStyles: B }) => {
|
|
|
6556
6556
|
{
|
|
6557
6557
|
className: "absolute right-3 cursor-pointer",
|
|
6558
6558
|
onClick: c,
|
|
6559
|
-
children:
|
|
6559
|
+
children: a === "password" ? /* @__PURE__ */ i(_t, { size: 20, color: G[A] }) : /* @__PURE__ */ i(Aw, { size: 20, color: G[A] })
|
|
6560
6560
|
}
|
|
6561
6561
|
)
|
|
6562
6562
|
] }),
|
|
@@ -6586,7 +6586,7 @@ const Fs = _.forwardRef(
|
|
|
6586
6586
|
className: n,
|
|
6587
6587
|
...E
|
|
6588
6588
|
}, r) => {
|
|
6589
|
-
const
|
|
6589
|
+
const a = R(
|
|
6590
6590
|
"rounded-lg font-medium focus:outline-none focus:ring-2 focus:ring-offset-2 w-full",
|
|
6591
6591
|
{
|
|
6592
6592
|
"text-gray-900": A !== "secondary",
|
|
@@ -6618,20 +6618,20 @@ const Fs = _.forwardRef(
|
|
|
6618
6618
|
small: "px-4 py-1.5 text-xs",
|
|
6619
6619
|
medium: "px-6 py-2.5 text-base",
|
|
6620
6620
|
large: "px-8 py-3 text-lg"
|
|
6621
|
-
}, Z = () => M === "home" ? /* @__PURE__ */ i(KB, { size: g === "small" ? 15 : 20, color: c[A] }) : M === "Left" ? /* @__PURE__ */ i(uB, { size: g === "small" ? 15 : 20, color: c[A] }) : M === "right" ? /* @__PURE__ */ i(mB, { size: g === "small" ? 15 : 20, color: c[A] }) : M === "save" ? /* @__PURE__ */ i(JB, { size: g === "small" ? 15 : 20, color: c[A] }) : M === "more" ? /* @__PURE__ */ i(VB, { size: g === "small" ? 15 : 20, color: c[A] }) : M === "update" ? /* @__PURE__ */ i(dB, { size: g === "small" ? 15 : 20, color: c[A] }) : M === "attach" ? /* @__PURE__ */ i(pB, { size: g === "small" ? 15 : 20, color: c[A] }) : M === "send" ? /* @__PURE__ */ i(PB, { size: g === "small" ? 15 : 20, color: c[A] }) : M === "delete" ? /* @__PURE__ */ i(yB, { size: g === "small" ? 15 : 20, color: c[A] }) : M === "edit" ? /* @__PURE__ */ i(UB, { size: g === "small" ? 15 : 20, color: c[A] }) : M === "login" ? /* @__PURE__ */ i(vB, { size: g === "small" ? 15 : 20, color: c[A] }) : M === "reset" ? /* @__PURE__ */ i(ZB, { size: g === "small" ? 15 : 20, color: c[A] }) : M === "add" ? /* @__PURE__ */ i(fB, { size: g === "small" ? 15 : 20, color: c[A] }) : M === "exit" ? /* @__PURE__ */ i(zB, { size: g === "small" ? 15 : 20, color: c[A] }) : M === "off" ? /* @__PURE__ */ i(hB, { size: g === "small" ? 15 : 20, color: c[A] }) : M === "calculator" ? /* @__PURE__ */ i(kB, { size: g === "small" ? 15 : 20, color: c[A] }) : M === "list" ? /* @__PURE__ */ i(qB, { size: g === "small" ? 15 : 20, color: c[A] }) : M === "futbol" ? /* @__PURE__ */ i(RB, { size: g === "small" ? 15 : 20, color: c[A] }) : null,
|
|
6621
|
+
}, Z = () => M === "home" ? /* @__PURE__ */ i(KB, { size: g === "small" ? 15 : 20, color: c[A] }) : M === "Left" ? /* @__PURE__ */ i(uB, { size: g === "small" ? 15 : 20, color: c[A] }) : M === "right" ? /* @__PURE__ */ i(mB, { size: g === "small" ? 15 : 20, color: c[A] }) : M === "save" ? /* @__PURE__ */ i(JB, { size: g === "small" ? 15 : 20, color: c[A] }) : M === "more" ? /* @__PURE__ */ i(VB, { size: g === "small" ? 15 : 20, color: c[A] }) : M === "update" ? /* @__PURE__ */ i(dB, { size: g === "small" ? 15 : 20, color: c[A] }) : M === "attach" ? /* @__PURE__ */ i(pB, { size: g === "small" ? 15 : 20, color: c[A] }) : M === "send" ? /* @__PURE__ */ i(PB, { size: g === "small" ? 15 : 20, color: c[A] }) : M === "delete" ? /* @__PURE__ */ i(yB, { size: g === "small" ? 15 : 20, color: c[A] }) : M === "edit" ? /* @__PURE__ */ i(UB, { size: g === "small" ? 15 : 20, color: c[A] }) : M === "login" ? /* @__PURE__ */ i(vB, { size: g === "small" ? 15 : 20, color: c[A] }) : M === "reset" ? /* @__PURE__ */ i(ZB, { size: g === "small" ? 15 : 20, color: c[A] }) : M === "add" ? /* @__PURE__ */ i(fB, { size: g === "small" ? 15 : 20, color: c[A] }) : M === "exit" ? /* @__PURE__ */ i(zB, { size: g === "small" ? 15 : 20, color: c[A] }) : M === "off" ? /* @__PURE__ */ i(hB, { size: g === "small" ? 15 : 20, color: c[A] }) : M === "calculator" ? /* @__PURE__ */ i(kB, { size: g === "small" ? 15 : 20, color: c[A] }) : M === "list" ? /* @__PURE__ */ i(qB, { size: g === "small" ? 15 : 20, color: c[A] }) : M === "futbol" ? /* @__PURE__ */ i(RB, { size: g === "small" ? 15 : 20, color: c[A] }) : null, G = () => _.isValidElement(D) ? _.cloneElement(D, { className: "w-5 h-5" }) : Z();
|
|
6622
6622
|
return /* @__PURE__ */ y("div", { className: "relative", children: [
|
|
6623
6623
|
e && /* @__PURE__ */ y("div", { className: "flex items-center text-xs mb-1 font-medium text-gray-800", children: [
|
|
6624
6624
|
/* @__PURE__ */ i("span", { style: { color: A === "tertiary" ? "#73787f" : "" }, children: e }),
|
|
6625
6625
|
w && Q && /* @__PURE__ */ i(ht, { infoText: Q, disabled: B, bgStyles: c[A] })
|
|
6626
6626
|
] }),
|
|
6627
6627
|
/* @__PURE__ */ y("div", { className: "relative flex items-center", children: [
|
|
6628
|
-
D && C === "left" && /* @__PURE__ */ i("span", { className: "absolute left-3", children:
|
|
6628
|
+
D && C === "left" && /* @__PURE__ */ i("span", { className: "absolute left-3", children: G() }),
|
|
6629
6629
|
/* @__PURE__ */ y(
|
|
6630
6630
|
"select",
|
|
6631
6631
|
{
|
|
6632
6632
|
ref: r,
|
|
6633
6633
|
className: R(
|
|
6634
|
-
|
|
6634
|
+
a,
|
|
6635
6635
|
s ? "border-[#b91c1c] focus:ring-[#b91c1c]" : l[A],
|
|
6636
6636
|
g in U ? U[g] : "",
|
|
6637
6637
|
{
|
|
@@ -6694,7 +6694,7 @@ const bs = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAEZUAAATaCAYAAAA0mz/uAA
|
|
|
6694
6694
|
const [E] = h("Hola, Necesito más información!"), r = `
|
|
6695
6695
|
p-2 rounded-lg text-sm bg-transparent opacity-70
|
|
6696
6696
|
cursor-pointer tracking-widest
|
|
6697
|
-
`,
|
|
6697
|
+
`, a = {
|
|
6698
6698
|
goatData: "bg-zinc-800",
|
|
6699
6699
|
secondary: "bg-[#acaaaa]",
|
|
6700
6700
|
experiences: "bg-[#a8dbce]"
|
|
@@ -6711,7 +6711,7 @@ const bs = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAEZUAAATaCAYAAAA0mz/uAA
|
|
|
6711
6711
|
}, Z = (Y) => {
|
|
6712
6712
|
const b = `https://www.google.com/maps/search/?api=1&query=${encodeURIComponent(Y)}`;
|
|
6713
6713
|
window.open(b, "_blank");
|
|
6714
|
-
},
|
|
6714
|
+
}, G = (Y) => {
|
|
6715
6715
|
const d = document.getElementById(Y.slice(1));
|
|
6716
6716
|
d && d.scrollIntoView({ behavior: "smooth" });
|
|
6717
6717
|
}, u = (Y) => {
|
|
@@ -6723,7 +6723,7 @@ const bs = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAEZUAAATaCAYAAAA0mz/uAA
|
|
|
6723
6723
|
}, V = (Y) => {
|
|
6724
6724
|
Y.link && w && w.push(Y.link);
|
|
6725
6725
|
};
|
|
6726
|
-
return /* @__PURE__ */ y("footer", { ref: n, ...I, className: `${
|
|
6726
|
+
return /* @__PURE__ */ y("footer", { ref: n, ...I, className: `${a[A]} ${k[A]}`, style: { paddingTop: "40px" }, children: [
|
|
6727
6727
|
/* @__PURE__ */ y("div", { className: "container mx-auto px-4 md:px-8", children: [
|
|
6728
6728
|
/* @__PURE__ */ y("div", { className: "grid grid-cols-1 sm:grid-cols-2 md:grid-cols-3 lg:grid-cols-5 gap-8", children: [
|
|
6729
6729
|
/* @__PURE__ */ y("div", { className: "flex flex-col items-center", children: [
|
|
@@ -6740,7 +6740,7 @@ const bs = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAEZUAAATaCAYAAAA0mz/uAA
|
|
|
6740
6740
|
/* @__PURE__ */ y("div", { className: "flex flex-col items-center", children: [
|
|
6741
6741
|
/* @__PURE__ */ i("h2", { className: "text-lg font-semibold mb-4", children: "Enlaces Rápidos" }),
|
|
6742
6742
|
g.length > 0 && /* @__PURE__ */ i("div", { className: "text-center sm:text-left", style: { display: "flex", flexDirection: "column", justifyContent: "end" }, children: g.map((Y, d) => /* @__PURE__ */ i("div", { children: /* @__PURE__ */ i("button", { className: r, onClick: () => {
|
|
6743
|
-
|
|
6743
|
+
G(Y.href);
|
|
6744
6744
|
}, children: Y.label }) }, d)) }),
|
|
6745
6745
|
D.length > 0 && /* @__PURE__ */ i("div", { className: "text-center sm:text-left", style: { display: "flex", flexDirection: "column", justifyContent: "end" }, children: D.map((Y, d) => /* @__PURE__ */ i("div", { children: /* @__PURE__ */ i("button", { className: r, onClick: () => {
|
|
6746
6746
|
V(Y);
|
|
@@ -6895,24 +6895,30 @@ const xs = N(
|
|
|
6895
6895
|
}
|
|
6896
6896
|
);
|
|
6897
6897
|
xs.displayName = "FloatingBotton";
|
|
6898
|
-
|
|
6898
|
+
function Ws(A) {
|
|
6899
|
+
return K({ tag: "svg", attr: { viewBox: "0 0 512 512" }, child: [{ tag: "path", attr: { d: "M210.652 145.922c-35.467.215-70.267 6.618-89.252 14.863-14.085 43.136-16.33 127.919-6.736 180.518-8.452-4.265-18.339-6.543-28.447-6.555-28.719 0-52 17.909-52 40s23.281 40 52 40 52.002-17.909 52.002-40c-6.166-49.187-13.74-115.12-8.225-165.437 37.756-7.722 77.49-17.422 114.688-10.715-4.152 38.294-3.03 82.424 3.377 117.552-8.452-4.265-18.335-6.543-28.444-6.554-28.719 0-52 17.908-52 40 0 22.091 23.281 40 52 40s52-17.909 52-40c-4.618-72.485-18.78-132.767.33-196.436-18.492-5.267-40.012-7.365-61.293-7.236zm5.457 15.635c11.697-.073 23.313.706 34.174 2.558-1.185 5.199-2.232 10.67-3.156 16.336-37.913-5.64-78.578 1.385-114.332 9.656a227.233 227.233 0 0 1 3.277-14.884c19.722-7.718 50.145-13.48 80.037-13.666zm116.62 17.714L307.27 204.73 358.543 256l-51.272 51.271 25.458 25.458L384 281.457l51.271 51.272 25.458-25.458L409.457 256l51.272-51.271-25.458-25.458L384 230.543l-51.271-51.272z" }, child: [] }] })(A);
|
|
6900
|
+
}
|
|
6901
|
+
function $s(A) {
|
|
6902
|
+
return K({ tag: "svg", attr: { viewBox: "0 0 512 512" }, child: [{ tag: "path", attr: { d: "M333.782 80c128 64 128 288 0 352 192-64 192-288 0-352zm-48 16c64 50.843 64 270.217 0 321.06 128-50.843 128-270.217 0-321.06zm-75.13 49.922c-35.468.215-70.268 6.618-89.253 14.863-14.084 43.136-16.33 127.919-6.736 180.518-8.452-4.265-18.337-6.543-28.445-6.555-28.719 0-52 17.909-52 40s23.281 40 52 40 52-17.909 52-40c-6.166-49.187-13.74-115.12-8.225-165.437 37.756-7.722 77.49-17.422 114.688-10.715-4.152 38.294-3.029 82.424 3.379 117.552-8.452-4.265-18.337-6.543-28.446-6.554-28.719 0-52 17.908-52 40 0 22.091 23.281 40 52 40 28.72 0 52-17.909 52-40-4.618-72.485-18.78-132.767.33-196.436-18.491-5.267-40.012-7.365-61.293-7.236zm5.456 15.635c11.697-.073 23.313.706 34.174 2.558-1.185 5.199-2.232 10.67-3.156 16.336-37.913-5.64-78.578 1.385-114.332 9.656a227.233 227.233 0 0 1 3.277-14.884c19.722-7.718 50.145-13.48 80.037-13.666z" }, child: [] }] })(A);
|
|
6903
|
+
}
|
|
6904
|
+
const _s = N(
|
|
6899
6905
|
({ videoSrc: A, height: g = "400px", explore: B, overlap: M, mutedVideo: D = !1, handletext4: t, handletext5: e, variant: w = "vividPink", ...Q }, C) => {
|
|
6900
6906
|
const s = AA(null), [o, I] = h(D), n = () => {
|
|
6901
|
-
const
|
|
6902
|
-
|
|
6903
|
-
|
|
6907
|
+
const a = s.current;
|
|
6908
|
+
a && a.play().catch(() => {
|
|
6909
|
+
a.play();
|
|
6904
6910
|
});
|
|
6905
|
-
}, E = (
|
|
6906
|
-
const l = document.getElementById(
|
|
6911
|
+
}, E = (a) => {
|
|
6912
|
+
const l = document.getElementById(a.slice(1));
|
|
6907
6913
|
l && l.scrollIntoView({ behavior: "smooth" });
|
|
6908
6914
|
};
|
|
6909
6915
|
O(() => {
|
|
6910
6916
|
if (s.current) {
|
|
6911
|
-
const
|
|
6912
|
-
|
|
6913
|
-
const l =
|
|
6917
|
+
const a = s.current;
|
|
6918
|
+
a.muted = o;
|
|
6919
|
+
const l = a.play();
|
|
6914
6920
|
l !== void 0 && l.catch(() => {
|
|
6915
|
-
|
|
6921
|
+
a.play();
|
|
6916
6922
|
});
|
|
6917
6923
|
}
|
|
6918
6924
|
}, [o]);
|
|
@@ -6959,8 +6965,8 @@ const Ws = N(
|
|
|
6959
6965
|
"button",
|
|
6960
6966
|
{
|
|
6961
6967
|
onClick: () => I(!o),
|
|
6962
|
-
className: "absolute z-30 bottom-8 right-8 bg-white bg-opacity-
|
|
6963
|
-
children: o ? "
|
|
6968
|
+
className: "absolute z-30 bottom-8 right-8 bg-white bg-opacity-10 p-3 rounded-full backdrop-blur-md hover:bg-opacity-20 transition",
|
|
6969
|
+
children: o ? /* @__PURE__ */ i(Ws, { size: 25, color: "#d4d3d3" }) : /* @__PURE__ */ i($s, { size: 25, color: "#d4d3d3" })
|
|
6964
6970
|
}
|
|
6965
6971
|
),
|
|
6966
6972
|
(B == null ? void 0 : B.content) && /* @__PURE__ */ i("div", { className: "absolute z-20 bottom-8 left-1/2 transform -translate-x-1/2 pointer-events-auto", children: /* @__PURE__ */ i(rA, { children: /* @__PURE__ */ y(
|
|
@@ -6987,7 +6993,7 @@ const Ws = N(
|
|
|
6987
6993
|
] });
|
|
6988
6994
|
}
|
|
6989
6995
|
);
|
|
6990
|
-
|
|
6996
|
+
_s.displayName = "VideoHeader";
|
|
6991
6997
|
export {
|
|
6992
6998
|
Xs as Alert,
|
|
6993
6999
|
wg as Button,
|
|
@@ -7004,5 +7010,5 @@ export {
|
|
|
7004
7010
|
Qw as Navbar,
|
|
7005
7011
|
OA as Reveal,
|
|
7006
7012
|
iw as Sidebar,
|
|
7007
|
-
|
|
7013
|
+
_s as VideoHeader
|
|
7008
7014
|
};
|