prisma-goat 0.8.6 → 0.8.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/prisma-goat.css +1 -1
- package/dist/prisma-goat.d.ts +10 -0
- package/dist/prisma-goat.js +1059 -983
- package/dist/prisma-goat.umd.cjs +35 -9
- package/package.json +1 -1
package/dist/prisma-goat.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { jsx as i, jsxs as
|
|
2
|
-
import _, { forwardRef as N, useEffect as O, useState as
|
|
1
|
+
import { jsx as i, jsxs as y, Fragment as UM } from "react/jsx-runtime";
|
|
2
|
+
import _, { forwardRef as N, useEffect as O, useState as z, useRef as AA, createContext as SA, useContext as $, useId as zt, useCallback as TD, useLayoutEffect as vt, useMemo as Pg, useInsertionEffect as Pt, Fragment as SD, createElement as Lt, Component as Ft } from "react";
|
|
3
3
|
var XD = {
|
|
4
4
|
color: void 0,
|
|
5
5
|
size: void 0,
|
|
@@ -91,18 +91,18 @@ function Xt(A) {
|
|
|
91
91
|
attr: M,
|
|
92
92
|
size: D,
|
|
93
93
|
title: t
|
|
94
|
-
} = A, e = Ot(A, bt),
|
|
95
|
-
return B.className && (
|
|
94
|
+
} = A, e = Ot(A, bt), Q = D || B.size || "1em", w;
|
|
95
|
+
return B.className && (w = B.className), A.className && (w = (w ? w + " " : "") + A.className), /* @__PURE__ */ _.createElement("svg", Vg({
|
|
96
96
|
stroke: "currentColor",
|
|
97
97
|
fill: "currentColor",
|
|
98
98
|
strokeWidth: "0"
|
|
99
99
|
}, B.attr, M, e, {
|
|
100
|
-
className:
|
|
100
|
+
className: w,
|
|
101
101
|
style: fg(fg({
|
|
102
102
|
color: A.color || B.color
|
|
103
103
|
}, B.style), A.style),
|
|
104
|
-
height:
|
|
105
|
-
width:
|
|
104
|
+
height: Q,
|
|
105
|
+
width: Q,
|
|
106
106
|
xmlns: "http://www.w3.org/2000/svg"
|
|
107
107
|
}), t && /* @__PURE__ */ _.createElement("title", null, t), A.children);
|
|
108
108
|
};
|
|
@@ -207,7 +207,7 @@ function WD(A) {
|
|
|
207
207
|
} else for (B in A) A[B] && (M && (M += " "), M += B);
|
|
208
208
|
return M;
|
|
209
209
|
}
|
|
210
|
-
function
|
|
210
|
+
function h() {
|
|
211
211
|
for (var A, g, B = 0, M = "", D = arguments.length; B < D; B++) (A = arguments[B]) && (g = WD(A)) && (M && (M += " "), M += g);
|
|
212
212
|
return M;
|
|
213
213
|
}
|
|
@@ -220,21 +220,21 @@ const Cg = N(
|
|
|
220
220
|
loadingPosition: D = "left",
|
|
221
221
|
disabled: t = !1,
|
|
222
222
|
isSubmit: e = !1,
|
|
223
|
-
icon:
|
|
224
|
-
iconPosition:
|
|
223
|
+
icon: Q,
|
|
224
|
+
iconPosition: w = "left",
|
|
225
225
|
iconType: C,
|
|
226
226
|
label: s,
|
|
227
227
|
className: o,
|
|
228
228
|
onClick: I,
|
|
229
229
|
...n
|
|
230
230
|
}, r) => {
|
|
231
|
-
const E =
|
|
231
|
+
const E = h(
|
|
232
232
|
"inline-flex items-center justify-center rounded-lg font-bold focus:outline-none focus:ring-2 focus:ring-offset-2 w-full",
|
|
233
233
|
{
|
|
234
234
|
"text-white": g !== "secondary" && g !== "tertiary" && g !== "experiences",
|
|
235
235
|
"text-[#3d434b]": g === "secondary" || g === "tertiary" || g === "experiences"
|
|
236
236
|
}
|
|
237
|
-
),
|
|
237
|
+
), l = {
|
|
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]",
|
|
@@ -246,42 +246,42 @@ const Cg = N(
|
|
|
246
246
|
tertiary: "bg-[#d4d3d3] border-2 hover:border-[#374151] focus:ring-[#1F2937] focus:border-[#1F2937]",
|
|
247
247
|
experiences: "bg-[#a8dbce] hover:bg-[#b7dad1] focus:ring-[#a8dbce] focus:border-[#a8dbce]",
|
|
248
248
|
strenger: "bg-[#779eb0] hover:bg-[#9aaeb8] focus:ring-[#779eb0] focus:border-[#779eb0]"
|
|
249
|
-
},
|
|
249
|
+
}, G = {
|
|
250
250
|
small: "px-4 py-1.5 text-xs",
|
|
251
251
|
medium: "px-6 py-2.5 text-base",
|
|
252
252
|
large: "px-8 py-3 text-lg"
|
|
253
|
-
},
|
|
253
|
+
}, a = () => C === "home" ? /* @__PURE__ */ i(pB, { className: "w-5 h-5" }) : C === "Left" ? /* @__PURE__ */ i(mB, { className: "w-5 h-5" }) : C === "right" ? /* @__PURE__ */ i(yB, { className: "w-5 h-5" }) : C === "save" ? /* @__PURE__ */ i(zB, { className: "w-5 h-5" }) : C === "more" ? /* @__PURE__ */ i(fB, { className: "w-5 h-5" }) : C === "update" ? /* @__PURE__ */ i(qB, { className: "w-5 h-5" }) : C === "attach" ? /* @__PURE__ */ i(RB, { className: "w-5 h-5" }) : C === "send" ? /* @__PURE__ */ i(LB, { className: "w-5 h-5" }) : C === "delete" ? /* @__PURE__ */ i(UB, { className: "w-5 h-5" }) : C === "edit" ? /* @__PURE__ */ i(ZB, { className: "w-5 h-5" }) : C === "login" ? /* @__PURE__ */ i(PB, { className: "w-5 h-5" }) : C === "reset" ? /* @__PURE__ */ i(VB, { className: "w-5 h-5" }) : C === "add" ? /* @__PURE__ */ i(dB, { className: "w-5 h-5" }) : C === "exit" ? /* @__PURE__ */ i(vB, { className: "w-5 h-5" }) : C === "off" ? /* @__PURE__ */ i(JB, { className: "w-5 h-5" }) : C === "calculator" ? /* @__PURE__ */ i(KB, { className: "w-5 h-5" }) : C === "list" ? /* @__PURE__ */ i(kB, { className: "w-5 h-5" }) : C === "futbol" ? /* @__PURE__ */ i(hB, { className: "w-5 h-5" }) : null, U = /* @__PURE__ */ i(
|
|
254
254
|
"div",
|
|
255
255
|
{
|
|
256
|
-
className:
|
|
256
|
+
className: h(
|
|
257
257
|
"w-5 h-5 animate-spin border-2 border-t-transparent rounded-full",
|
|
258
258
|
g === "secondary" ? "border-[#1F2937]" : "border-white"
|
|
259
259
|
)
|
|
260
260
|
}
|
|
261
|
-
),
|
|
261
|
+
), q = () => _.isValidElement(Q) ? _.cloneElement(Q, { className: "w-5 h-5" }) : a(), c = s || A;
|
|
262
262
|
return O(() => {
|
|
263
|
-
const V = (
|
|
264
|
-
if (e &&
|
|
265
|
-
const
|
|
263
|
+
const V = (Z) => {
|
|
264
|
+
if (e && Z.key === "Enter" && !t && I) {
|
|
265
|
+
const u = new MouseEvent("click", {
|
|
266
266
|
bubbles: !0,
|
|
267
267
|
cancelable: !0,
|
|
268
268
|
view: window
|
|
269
269
|
});
|
|
270
|
-
I(
|
|
270
|
+
I(u);
|
|
271
271
|
}
|
|
272
272
|
};
|
|
273
273
|
return window.addEventListener("keydown", V), () => {
|
|
274
274
|
window.removeEventListener("keydown", V);
|
|
275
275
|
};
|
|
276
|
-
}, [e, I, t]), /* @__PURE__ */
|
|
276
|
+
}, [e, I, t]), /* @__PURE__ */ y(
|
|
277
277
|
"button",
|
|
278
278
|
{
|
|
279
279
|
ref: r,
|
|
280
280
|
style: { whiteSpace: "nowrap" },
|
|
281
|
-
className:
|
|
281
|
+
className: h(
|
|
282
282
|
E,
|
|
283
|
-
|
|
284
|
-
|
|
283
|
+
l[g],
|
|
284
|
+
G[B],
|
|
285
285
|
{
|
|
286
286
|
"opacity-60 cursor-not-allowed": M,
|
|
287
287
|
"opacity-20 cursor-not-allowed": t && !M
|
|
@@ -292,11 +292,11 @@ const Cg = N(
|
|
|
292
292
|
onClick: I,
|
|
293
293
|
...n,
|
|
294
294
|
children: [
|
|
295
|
-
M && D === "left" && /* @__PURE__ */ i("span", { className: "mr-2", children:
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
M && D === "right" && /* @__PURE__ */ i("span", { className: "ml-2", children:
|
|
295
|
+
M && D === "left" && /* @__PURE__ */ i("span", { className: "mr-2", children: U }),
|
|
296
|
+
w === "left" && /* @__PURE__ */ i("span", { className: "mr-2", children: q() }),
|
|
297
|
+
c,
|
|
298
|
+
w === "right" && /* @__PURE__ */ i("span", { className: "ml-2", children: q() }),
|
|
299
|
+
M && D === "right" && /* @__PURE__ */ i("span", { className: "ml-2", children: U })
|
|
300
300
|
]
|
|
301
301
|
}
|
|
302
302
|
);
|
|
@@ -392,7 +392,7 @@ const iA = {
|
|
|
392
392
|
strokeWidth: D = "10",
|
|
393
393
|
...t
|
|
394
394
|
}, e) => {
|
|
395
|
-
const
|
|
395
|
+
const Q = {
|
|
396
396
|
primary: "#1F2937",
|
|
397
397
|
secondary: "#ededed",
|
|
398
398
|
vividPink: "#ff0145",
|
|
@@ -401,7 +401,7 @@ const iA = {
|
|
|
401
401
|
danger: "#b91c1c",
|
|
402
402
|
warning: "#f59e0b",
|
|
403
403
|
success: "#047857"
|
|
404
|
-
},
|
|
404
|
+
}, w = {
|
|
405
405
|
black: "bg-black",
|
|
406
406
|
white: "bg-white"
|
|
407
407
|
}, C = {
|
|
@@ -421,13 +421,13 @@ const iA = {
|
|
|
421
421
|
13: "13",
|
|
422
422
|
14: "14"
|
|
423
423
|
};
|
|
424
|
-
return /* @__PURE__ */
|
|
424
|
+
return /* @__PURE__ */ y(
|
|
425
425
|
"div",
|
|
426
426
|
{
|
|
427
427
|
ref: e,
|
|
428
428
|
...t,
|
|
429
429
|
style: { zIndex: 99999 },
|
|
430
|
-
className: `fixed flex justify-center items-center top-0 left-0 right-0 bottom-0 ${
|
|
430
|
+
className: `fixed flex justify-center items-center top-0 left-0 right-0 bottom-0 ${w[g]} bg-opacity-50 z-[1201]`,
|
|
431
431
|
children: [
|
|
432
432
|
/* @__PURE__ */ i(
|
|
433
433
|
"svg",
|
|
@@ -444,7 +444,7 @@ const iA = {
|
|
|
444
444
|
cy: "55",
|
|
445
445
|
r: "45",
|
|
446
446
|
fill: "none",
|
|
447
|
-
stroke:
|
|
447
|
+
stroke: Q[A],
|
|
448
448
|
strokeWidth: s[D],
|
|
449
449
|
strokeDasharray: "314",
|
|
450
450
|
strokeDashoffset: "314",
|
|
@@ -499,7 +499,7 @@ const KA = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAEZQAAApUCAYAAACv3FolAA
|
|
|
499
499
|
viewBox: "0 0 24 24",
|
|
500
500
|
width: "1em",
|
|
501
501
|
...A,
|
|
502
|
-
children: /* @__PURE__ */
|
|
502
|
+
children: /* @__PURE__ */ y("g", { fill: "white", children: [
|
|
503
503
|
/* @__PURE__ */ i("path", { d: "M19 12a7 7 0 11-7-7 7 7 0 017 7z" }),
|
|
504
504
|
/* @__PURE__ */ i("path", { d: "M12 22.96a.969.969 0 01-1-.96v-.08a1 1 0 012 0 1.038 1.038 0 01-1 1.04zm7.14-2.82a1.024 1.024 0 01-.71-.29l-.13-.13a1 1 0 011.41-1.41l.13.13a1 1 0 010 1.41.984.984 0 01-.7.29zm-14.28 0a1.024 1.024 0 01-.71-.29 1 1 0 010-1.41l.13-.13a1 1 0 011.41 1.41l-.13.13a1 1 0 01-.7.29zM22 13h-.08a1 1 0 010-2 1.038 1.038 0 011.04 1 .969.969 0 01-.96 1zM2.08 13H2a1 1 0 010-2 1.038 1.038 0 011.04 1 .969.969 0 01-.96 1zm16.93-7.01a1.024 1.024 0 01-.71-.29 1 1 0 010-1.41l.13-.13a1 1 0 011.41 1.41l-.13.13a.984.984 0 01-.7.29zm-14.02 0a1.024 1.024 0 01-.71-.29l-.13-.14a1 1 0 011.41-1.41l.13.13a1 1 0 010 1.41.97.97 0 01-.7.3zM12 3.04a.969.969 0 01-1-.96V2a1 1 0 012 0 1.038 1.038 0 01-1 1.04z" })
|
|
505
505
|
] })
|
|
@@ -526,7 +526,7 @@ const KA = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAEZQAAApUCAYAAACv3FolAA
|
|
|
526
526
|
children: /* @__PURE__ */ i(_t, { className: "text-white text-lg" })
|
|
527
527
|
}
|
|
528
528
|
) }), jB = () => {
|
|
529
|
-
const [A, g] =
|
|
529
|
+
const [A, g] = z(!1);
|
|
530
530
|
return O(() => {
|
|
531
531
|
const B = () => {
|
|
532
532
|
g(window.innerWidth < 640);
|
|
@@ -544,8 +544,8 @@ const KA = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAEZQAAApUCAYAAACv3FolAA
|
|
|
544
544
|
listMenu: D = [],
|
|
545
545
|
logo: t,
|
|
546
546
|
heightLogo: e,
|
|
547
|
-
widthLogo:
|
|
548
|
-
activeRoute:
|
|
547
|
+
widthLogo: Q,
|
|
548
|
+
activeRoute: w,
|
|
549
549
|
router: C,
|
|
550
550
|
toggleTheme: s,
|
|
551
551
|
toggeInstallApp: o,
|
|
@@ -553,61 +553,61 @@ const KA = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAEZQAAApUCAYAAACv3FolAA
|
|
|
553
553
|
theme: n,
|
|
554
554
|
InstallApp: r,
|
|
555
555
|
login: E = !1,
|
|
556
|
-
variantIndicator:
|
|
557
|
-
backgroundIndicator:
|
|
558
|
-
logoGoatDataIndicator:
|
|
559
|
-
imgLoadingIndicator:
|
|
560
|
-
strokeWidthIndicator:
|
|
561
|
-
light:
|
|
556
|
+
variantIndicator: l = "primary",
|
|
557
|
+
backgroundIndicator: G = "black",
|
|
558
|
+
logoGoatDataIndicator: a = "logoRed",
|
|
559
|
+
imgLoadingIndicator: U = "",
|
|
560
|
+
strokeWidthIndicator: q = "10",
|
|
561
|
+
light: c = !1,
|
|
562
562
|
...V
|
|
563
|
-
},
|
|
563
|
+
}, Z) => {
|
|
564
564
|
var EA, H, JA, yM;
|
|
565
|
-
const
|
|
565
|
+
const u = jB(), [Y, f] = z(!1), [R, MA] = z(!1), [WA, cA] = z(!1), [$A, UA] = z(null), [b, W] = z(null), rA = AA(null), ZA = () => f(!Y), ag = () => MA(!R), hA = () => MA(!1);
|
|
566
566
|
O(() => {
|
|
567
567
|
if (typeof window < "u" && (C != null && C.events)) {
|
|
568
|
-
const
|
|
568
|
+
const m = () => {
|
|
569
569
|
cA(!0);
|
|
570
570
|
}, p = () => {
|
|
571
571
|
cA(!1);
|
|
572
572
|
};
|
|
573
|
-
return C.events.on("routeChangeStart",
|
|
574
|
-
C.events.off("routeChangeStart",
|
|
573
|
+
return C.events.on("routeChangeStart", m), C.events.on("routeChangeComplete", p), C.events.on("routeChangeError", p), () => {
|
|
574
|
+
C.events.off("routeChangeStart", m), C.events.off("routeChangeComplete", p), C.events.off("routeChangeError", p);
|
|
575
575
|
};
|
|
576
576
|
}
|
|
577
577
|
}, [C]);
|
|
578
|
-
const Tg = (
|
|
579
|
-
|
|
580
|
-
}, cg = (
|
|
581
|
-
|
|
582
|
-
}, _A = (
|
|
583
|
-
UA((wA) => wA === p ? -1 : p),
|
|
584
|
-
}, k = (
|
|
585
|
-
|
|
586
|
-
}, L = (
|
|
587
|
-
|
|
578
|
+
const Tg = (m, p) => {
|
|
579
|
+
m.subItems && m.subItems.length > 0 ? UA((wA) => wA === p ? -1 : p) : m.link && C && C.push(m.link);
|
|
580
|
+
}, cg = (m, p) => {
|
|
581
|
+
m.subItems && m.subItems.length > 0 ? UA((wA) => wA === p ? -1 : p) : m.link && C && (C.push(m.link), f(!1));
|
|
582
|
+
}, _A = (m, p) => {
|
|
583
|
+
UA((wA) => wA === p ? -1 : p), m.link && C && C.push(m.link);
|
|
584
|
+
}, k = (m) => {
|
|
585
|
+
m.link && C && (C.push(m.link), hA());
|
|
586
|
+
}, L = (m) => {
|
|
587
|
+
m.link && C && (C.push(m.link), f(!1));
|
|
588
588
|
};
|
|
589
589
|
return O(() => {
|
|
590
|
-
const
|
|
590
|
+
const m = (p) => {
|
|
591
591
|
rA.current && !rA.current.contains(p.target) && hA();
|
|
592
592
|
};
|
|
593
|
-
return
|
|
594
|
-
document.removeEventListener("mousedown",
|
|
593
|
+
return R && document.addEventListener("mousedown", m), () => {
|
|
594
|
+
document.removeEventListener("mousedown", m);
|
|
595
595
|
};
|
|
596
|
-
}, [
|
|
597
|
-
/* @__PURE__ */ i("div", { style: { marginLeft: "auto", marginRight: "auto", maxWidth: "80rem", paddingLeft:
|
|
598
|
-
/* @__PURE__ */ i("div", { style: { position: "absolute", top: "0px", bottom: "0px", left: "0px", display:
|
|
596
|
+
}, [R]), /* @__PURE__ */ y("nav", { ref: Z, ...V, style: { zIndex: 9999, position: "fixed", top: "0px", left: "0px", right: "0px" }, className: `${iA[g]}`, children: [
|
|
597
|
+
/* @__PURE__ */ i("div", { style: { marginLeft: "auto", marginRight: "auto", maxWidth: "80rem", paddingLeft: u ? "0.5rem" : "1.5rem", paddingRight: u ? "0.5rem" : "1.5rem" }, children: /* @__PURE__ */ y("div", { style: { position: "relative", display: "flex", height: "4rem", alignItems: "center", justifyContent: "space-between" }, children: [
|
|
598
|
+
/* @__PURE__ */ i("div", { style: { position: "absolute", top: "0px", bottom: "0px", left: "0px", display: u ? "flex" : "none", alignItems: "center" }, children: /* @__PURE__ */ i("button", { className: `menu ${Y ? g === "secondary" ? "openedark" : "opened" : ""}`, onClick: ZA, "aria-label": "Main Menu", children: /* @__PURE__ */ y("svg", { width: "45", height: "45", viewBox: "0 0 100 100", style: { fill: "#f9f8f8 !important" }, children: [
|
|
599
599
|
/* @__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" }),
|
|
600
600
|
/* @__PURE__ */ i("path", { className: g === "secondary" ? "linedark linedark2" : "line line2", d: "M 20,50 H 80" }),
|
|
601
601
|
/* @__PURE__ */ i("path", { className: g === "secondary" ? "linedark linedark3" : "line line3", d: "M 20,70.999954 H 80.000231 C 80.000231,70.999954 94.498839,71.182648 94.532987,33.288669 94.543142,22.019327 90.966081,18.329754 85.259173,18.331003 79.552261,18.332249 75.000211,25.000058 75.000211,25.000058 L 25.000021,74.999942" })
|
|
602
602
|
] }) }) }),
|
|
603
|
-
/* @__PURE__ */
|
|
604
|
-
/* @__PURE__ */
|
|
603
|
+
/* @__PURE__ */ y("div", { style: { display: "flex", flex: "1 1 0%", alignItems: "center", justifyContent: u ? "center" : "stretch" }, children: [
|
|
604
|
+
/* @__PURE__ */ y("div", { className: "flex flex-shrink-0 items-center", style: { flexDirection: "column" }, children: [
|
|
605
605
|
/* @__PURE__ */ i(
|
|
606
606
|
"img",
|
|
607
607
|
{
|
|
608
608
|
alt: "logo",
|
|
609
|
-
className: `${
|
|
610
|
-
style: { height: e && e.trim() !== "" ? e : "40px", width:
|
|
609
|
+
className: `${u ? "hidden" : "block"}`,
|
|
610
|
+
style: { height: e && e.trim() !== "" ? e : "40px", width: Q && Q.trim() !== "" ? Q : "65px" },
|
|
611
611
|
src: t && t.trim() !== "" ? t : g === "secondary" ? KA : pA
|
|
612
612
|
}
|
|
613
613
|
),
|
|
@@ -615,46 +615,46 @@ const KA = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAEZQAAApUCAYAAACv3FolAA
|
|
|
615
615
|
"img",
|
|
616
616
|
{
|
|
617
617
|
alt: "logo",
|
|
618
|
-
className: `${
|
|
619
|
-
style: { height: e && e.trim() !== "" ? e : "40px", width:
|
|
618
|
+
className: `${u ? "block" : "hidden"}`,
|
|
619
|
+
style: { height: e && e.trim() !== "" ? e : "40px", width: Q && Q.trim() !== "" ? Q : "65px" },
|
|
620
620
|
src: t && t.trim() !== "" ? t : g === "secondary" ? KA : pA
|
|
621
621
|
}
|
|
622
622
|
),
|
|
623
623
|
(!t || t.trim() === "") && /* @__PURE__ */ i("div", { className: `${bA[g]}`, style: { fontSize: "10px", letterSpacing: "4px" }, children: "DATA" })
|
|
624
624
|
] }),
|
|
625
|
-
/* @__PURE__ */
|
|
626
|
-
/* @__PURE__ */ i("div", { className: `flex space-x-4 ${t && t.trim() !== "" ? "mt-0" : "mt-2"}`, children: M.map((
|
|
625
|
+
/* @__PURE__ */ y("div", { style: { display: u ? "none" : "block", flexGrow: 1, marginLeft: "1.5rem" }, children: [
|
|
626
|
+
/* @__PURE__ */ i("div", { className: `flex space-x-4 ${t && t.trim() !== "" ? "mt-0" : "mt-2"}`, children: M.map((m, p) => {
|
|
627
627
|
var wA;
|
|
628
|
-
return /* @__PURE__ */
|
|
628
|
+
return /* @__PURE__ */ y("div", { className: "relative group", children: [
|
|
629
629
|
/* @__PURE__ */ i(
|
|
630
630
|
"button",
|
|
631
631
|
{
|
|
632
632
|
type: "button",
|
|
633
|
-
className:
|
|
633
|
+
className: h(
|
|
634
634
|
"flex items-center justify-center px-4 py-2 text-sm cursor-pointer rounded-md transition duration-300 focus:outline-none focus:ring-2 focus:ring-offset-2",
|
|
635
|
-
|
|
635
|
+
w === m.link || (wA = m.subItems) != null && wA.some((x) => x.link === w) ? tA[g] : "",
|
|
636
636
|
T[g],
|
|
637
637
|
CA[g],
|
|
638
|
-
|
|
639
|
-
|
|
638
|
+
w === m.link ? g === "secondary" || g === "primary" || g === "darkMagenta" || g === "veryDarkViolet" || g === "success" ? "text-custom-red" : g === "pikaros" ? "text-orange-300" : "text-custom-blue" : g === "primary" || g === "vividPink" || g === "darkMagenta" || g === "veryDarkViolet" || g === "danger" || g === "warning" || g === "success" || g === "pikaros" ? "text-white" : "text-custom-blue",
|
|
639
|
+
w === m.link ? "font-semibold" : "font-normal"
|
|
640
640
|
),
|
|
641
|
-
onClick: () => Tg(
|
|
641
|
+
onClick: () => Tg(m, p),
|
|
642
642
|
onMouseEnter: () => W(p),
|
|
643
643
|
onMouseLeave: () => W(null),
|
|
644
|
-
children:
|
|
644
|
+
children: m.label
|
|
645
645
|
}
|
|
646
646
|
),
|
|
647
|
-
b === p &&
|
|
647
|
+
b === p && m.description && m.description.trim() !== "" && /* @__PURE__ */ y(
|
|
648
648
|
"div",
|
|
649
649
|
{
|
|
650
650
|
style: { border: `1px ${Dg[g]} solid`, maxWidth: "260px" },
|
|
651
651
|
className: `absolute top-full left-1/2 transform -translate-x-1/2 translate-y-2 opacity-0 mt-2 w-max px-4 py-4 text-xs ${bA[g]} ${iA[g]} rounded-md transition-all duration-300 group-hover:opacity-100 group-hover:translate-y-4`,
|
|
652
652
|
children: [
|
|
653
|
-
|
|
653
|
+
m.image && m.image.trim() !== "" && /* @__PURE__ */ y("div", { className: "relative w-full h-24 mb-2", children: [
|
|
654
654
|
/* @__PURE__ */ i(
|
|
655
655
|
"img",
|
|
656
656
|
{
|
|
657
|
-
src:
|
|
657
|
+
src: m.image,
|
|
658
658
|
alt: "Tooltip Image",
|
|
659
659
|
className: "object-cover w-full h-full rounded-t-md opacity-75 hover:opacity-100 transition-opacity duration-300"
|
|
660
660
|
}
|
|
@@ -662,24 +662,24 @@ const KA = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAEZQAAApUCAYAAACv3FolAA
|
|
|
662
662
|
/* @__PURE__ */ i("div", { className: "absolute bottom-0 w-full h-8 bg-gradient-to-t from-white/80 to-transparent" })
|
|
663
663
|
] }),
|
|
664
664
|
/* @__PURE__ */ i("div", { className: "absolute top-0 left-1/2 transform -translate-x-1/2 -mt-2 w-0 h-0 border-l-4 border-r-4 border-b-4 border-transparent border-b-gray-800" }),
|
|
665
|
-
|
|
665
|
+
m.description
|
|
666
666
|
]
|
|
667
667
|
}
|
|
668
668
|
),
|
|
669
|
-
|
|
669
|
+
m.subItems && m.subItems.length > 0 && $A === p && /* @__PURE__ */ i(
|
|
670
670
|
"div",
|
|
671
671
|
{
|
|
672
672
|
className: `absolute left-0 mt-2 w-48 ${iA[g]} ${dg[g]} rounded-md shadow-lg ring-4 ring-black ring-opacity-5`,
|
|
673
673
|
role: "menu",
|
|
674
|
-
children:
|
|
674
|
+
children: m.subItems.map((x, Sg) => /* @__PURE__ */ i(
|
|
675
675
|
"div",
|
|
676
676
|
{
|
|
677
|
-
className:
|
|
677
|
+
className: h(
|
|
678
678
|
`block px-4 py-2 text-sm cursor-pointer ${iA[g]}e`,
|
|
679
679
|
T[g] && `${T[g]}`,
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
680
|
+
w === x.link ? tA[g] : "",
|
|
681
|
+
w === x.link ? g === "secondary" || g === "primary" || g === "darkMagenta" || g === "veryDarkViolet" || g === "success" ? "text-custom-red" : g === "pikaros" ? "text-orange-300" : "text-custom-blue" : g === "primary" || g === "vividPink" || g === "darkMagenta" || g === "veryDarkViolet" || g === "danger" || g === "warning" || g === "success" || g === "pikaros" ? "text-white" : "text-custom-blue",
|
|
682
|
+
w === x.link ? "font-semibold" : "font-normal"
|
|
683
683
|
),
|
|
684
684
|
onClick: () => _A(x, p),
|
|
685
685
|
children: x.label
|
|
@@ -693,17 +693,17 @@ const KA = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAEZQAAApUCAYAAACv3FolAA
|
|
|
693
693
|
A && /* @__PURE__ */ i("div", { className: "mt-2 text-sm text-gray-500", children: A })
|
|
694
694
|
] })
|
|
695
695
|
] }),
|
|
696
|
-
/* @__PURE__ */
|
|
696
|
+
/* @__PURE__ */ y("div", { className: "absolute inset-y-0 right-0 items-center pr-2 sm:static sm:inset-auto sm:ml-6 sm:pr-0 flex space-x-2", children: [
|
|
697
697
|
r && /* @__PURE__ */ i(Be, { variant: g, onClick: o }),
|
|
698
|
-
n && /* @__PURE__ */ i(ge, { light:
|
|
699
|
-
B ? /* @__PURE__ */
|
|
698
|
+
n && /* @__PURE__ */ i(ge, { light: c, variant: g, toggleTheme: s }),
|
|
699
|
+
B ? /* @__PURE__ */ y("div", { style: { position: "relative", display: u ? "none" : "block", marginLeft: "0.75rem" }, children: [
|
|
700
700
|
/* @__PURE__ */ i("div", { children: /* @__PURE__ */ i(
|
|
701
701
|
"button",
|
|
702
702
|
{
|
|
703
703
|
type: "button",
|
|
704
704
|
className: `flex rounded-full bg-gray-800 text-sm transition duration-300 focus:outline-none focus:ring-2 ${CA[g]} focus:ring-offset-2`,
|
|
705
705
|
id: "user-menu-button",
|
|
706
|
-
"aria-expanded":
|
|
706
|
+
"aria-expanded": R,
|
|
707
707
|
"aria-haspopup": "true",
|
|
708
708
|
onClick: ag,
|
|
709
709
|
children: /* @__PURE__ */ i(
|
|
@@ -717,8 +717,8 @@ const KA = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAEZQAAApUCAYAAACv3FolAA
|
|
|
717
717
|
src: B.image,
|
|
718
718
|
alt: "User avatar",
|
|
719
719
|
className: "rounded-full object-cover w-full h-full",
|
|
720
|
-
onError: (
|
|
721
|
-
|
|
720
|
+
onError: (m) => {
|
|
721
|
+
m.currentTarget.onerror = null, m.currentTarget.src = "";
|
|
722
722
|
}
|
|
723
723
|
}
|
|
724
724
|
) : ((H = (EA = B.name) == null ? void 0 : EA.charAt(0)) == null ? void 0 : H.toUpperCase()) || "?"
|
|
@@ -726,26 +726,26 @@ const KA = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAEZQAAApUCAYAAACv3FolAA
|
|
|
726
726
|
)
|
|
727
727
|
}
|
|
728
728
|
) }),
|
|
729
|
-
|
|
729
|
+
R && /* @__PURE__ */ i(
|
|
730
730
|
"div",
|
|
731
731
|
{
|
|
732
732
|
ref: rA,
|
|
733
733
|
className: `absolute right-0 mt-2 w-48 ${iA[g]} ${dg[g]} rounded-md shadow-lg ring-4 ring-black ring-opacity-5`,
|
|
734
734
|
role: "menu",
|
|
735
|
-
children: D.map((
|
|
735
|
+
children: D.map((m, p) => /* @__PURE__ */ i(
|
|
736
736
|
"div",
|
|
737
737
|
{
|
|
738
|
-
className:
|
|
738
|
+
className: h(
|
|
739
739
|
"block px-4 py-2 text-sm cursor-pointer",
|
|
740
740
|
T[g] && `${T[g]}`,
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
741
|
+
w === m.link ? tA[g] : "",
|
|
742
|
+
w === m.link ? g === "secondary" || g === "primary" || g === "darkMagenta" || g === "veryDarkViolet" || g === "success" ? "text-custom-red" : g === "pikaros" ? "text-orange-300" : "text-custom-blue" : g === "primary" || g === "vividPink" || g === "darkMagenta" || g === "veryDarkViolet" || g === "danger" || g === "warning" || g === "success" || g === "pikaros" ? "text-white" : "text-custom-blue",
|
|
743
|
+
w === m.link ? "font-semibold" : "font-normal"
|
|
744
744
|
),
|
|
745
|
-
onClick:
|
|
746
|
-
k(
|
|
745
|
+
onClick: m.label === "Cerrar sesion" ? I : () => {
|
|
746
|
+
k(m);
|
|
747
747
|
},
|
|
748
|
-
children:
|
|
748
|
+
children: m.label
|
|
749
749
|
},
|
|
750
750
|
p
|
|
751
751
|
))
|
|
@@ -755,14 +755,14 @@ const KA = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAEZQAAApUCAYAAACv3FolAA
|
|
|
755
755
|
"button",
|
|
756
756
|
{
|
|
757
757
|
type: "button",
|
|
758
|
-
style: { display:
|
|
759
|
-
className:
|
|
758
|
+
style: { display: u ? "none" : "block", cursor: "pointer" },
|
|
759
|
+
className: h(
|
|
760
760
|
`items-center justify-center px-4 py-2 text-sm
|
|
761
761
|
${T[g]}
|
|
762
762
|
rounded-md transition duration-300 focus:outline-none focus:ring-2 ${CA[g]} focus:ring-offset-2`,
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
763
|
+
w === "/login" ? tA[g] : "",
|
|
764
|
+
w === "/login" ? g === "secondary" || g === "primary" || g === "darkMagenta" || g === "veryDarkViolet" || g === "success" ? "text-custom-red" : g === "pikaros" ? "text-orange-300" : "text-custom-blue" : g === "primary" || g === "vividPink" || g === "darkMagenta" || g === "veryDarkViolet" || g === "danger" || g === "warning" || g === "success" || g === "pikaros" ? "text-white" : "text-custom-blue",
|
|
765
|
+
w === "/login" ? "font-semibold" : "font-normal"
|
|
766
766
|
),
|
|
767
767
|
onClick: () => {
|
|
768
768
|
C.push("/login"), hA();
|
|
@@ -772,38 +772,38 @@ const KA = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAEZQAAApUCAYAAACv3FolAA
|
|
|
772
772
|
) : /* @__PURE__ */ i(UM, {})
|
|
773
773
|
] })
|
|
774
774
|
] }) }),
|
|
775
|
-
Y && /* @__PURE__ */
|
|
776
|
-
M.map((
|
|
775
|
+
Y && /* @__PURE__ */ y("div", { style: { display: u ? "" : "none" }, className: "px-2 pt-2 pb-3 space-y-1", children: [
|
|
776
|
+
M.map((m, p) => {
|
|
777
777
|
var wA;
|
|
778
|
-
return /* @__PURE__ */
|
|
778
|
+
return /* @__PURE__ */ y("div", { children: [
|
|
779
779
|
/* @__PURE__ */ i(
|
|
780
780
|
"button",
|
|
781
781
|
{
|
|
782
|
-
className:
|
|
782
|
+
className: h(
|
|
783
783
|
`block w-full px-4 py-2 text-base ${T[g]}
|
|
784
784
|
rounded-md transition duration-300 focus:outline-none focus:ring-2 ${CA[g]} focus:ring-offset-2 text-left`,
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
785
|
+
w === m.link || (wA = m.subItems) != null && wA.some((x) => x.link === w) ? tA[g] : "",
|
|
786
|
+
w === m.link ? g === "secondary" || g === "primary" || g === "darkMagenta" || g === "veryDarkViolet" || g === "success" ? "text-custom-red" : g === "pikaros" ? "text-orange-300" : "text-custom-blue" : g === "primary" || g === "vividPink" || g === "darkMagenta" || g === "veryDarkViolet" || g === "danger" || g === "warning" || g === "success" || g === "pikaros" ? "text-white" : "text-custom-blue",
|
|
787
|
+
w === m.link ? "font-semibold" : "font-normal"
|
|
788
788
|
),
|
|
789
789
|
onClick: () => {
|
|
790
|
-
cg(
|
|
790
|
+
cg(m, p);
|
|
791
791
|
},
|
|
792
|
-
children:
|
|
792
|
+
children: m.label
|
|
793
793
|
}
|
|
794
794
|
),
|
|
795
|
-
|
|
795
|
+
m.subItems && m.subItems.length > 0 && $A === p && /* @__PURE__ */ i("div", { className: "pl-4 py-4", children: m.subItems.map((x, Sg) => /* @__PURE__ */ i(
|
|
796
796
|
"button",
|
|
797
797
|
{
|
|
798
|
-
className:
|
|
798
|
+
className: h(
|
|
799
799
|
`block w-full px-4 py-1 text-sm ${T[g]}
|
|
800
800
|
rounded-md transition duration-300 focus:outline-none focus:ring-2 ${CA[g]} focus:ring-offset-2 text-left`,
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
801
|
+
w === x.link ? tA[g] : "",
|
|
802
|
+
w === x.link ? g === "secondary" || g === "primary" || g === "darkMagenta" || g === "veryDarkViolet" || g === "success" ? "text-custom-red" : g === "pikaros" ? "text-orange-300" : "text-custom-blue" : g === "primary" || g === "vividPink" || g === "darkMagenta" || g === "veryDarkViolet" || g === "danger" || g === "warning" || g === "success" || g === "pikaros" ? "text-white" : "text-custom-blue",
|
|
803
|
+
w === x.link ? "font-semibold" : "font-normal"
|
|
804
804
|
),
|
|
805
805
|
onClick: () => {
|
|
806
|
-
_A(x, p),
|
|
806
|
+
_A(x, p), f(!1);
|
|
807
807
|
},
|
|
808
808
|
children: x.label
|
|
809
809
|
},
|
|
@@ -811,9 +811,9 @@ const KA = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAEZQAAApUCAYAAACv3FolAA
|
|
|
811
811
|
)) })
|
|
812
812
|
] }, p);
|
|
813
813
|
}),
|
|
814
|
-
B ? /* @__PURE__ */
|
|
814
|
+
B ? /* @__PURE__ */ y("div", { className: "relative mt-3", children: [
|
|
815
815
|
/* @__PURE__ */ i("div", { className: "ml-3 mt-4", style: { borderBottom: `1px ${Dg[g]} solid` } }),
|
|
816
|
-
/* @__PURE__ */
|
|
816
|
+
/* @__PURE__ */ y("div", { style: { display: "flex" }, children: [
|
|
817
817
|
/* @__PURE__ */ i(
|
|
818
818
|
"button",
|
|
819
819
|
{
|
|
@@ -833,8 +833,8 @@ const KA = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAEZQAAApUCAYAAACv3FolAA
|
|
|
833
833
|
src: B.image,
|
|
834
834
|
alt: "User avatar",
|
|
835
835
|
className: "rounded-full object-cover w-full h-full",
|
|
836
|
-
onError: (
|
|
837
|
-
|
|
836
|
+
onError: (m) => {
|
|
837
|
+
m.currentTarget.onerror = null, m.currentTarget.src = "";
|
|
838
838
|
}
|
|
839
839
|
}
|
|
840
840
|
) : ((yM = (JA = B.name) == null ? void 0 : JA.charAt(0)) == null ? void 0 : yM.toUpperCase()) || "?"
|
|
@@ -844,18 +844,18 @@ const KA = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAEZQAAApUCAYAAACv3FolAA
|
|
|
844
844
|
),
|
|
845
845
|
/* @__PURE__ */ i("div", { className: `block w-full px-4 py-4 ${bA[g]} text-left`, children: B.name })
|
|
846
846
|
] }),
|
|
847
|
-
D.map((
|
|
847
|
+
D.map((m, p) => /* @__PURE__ */ i(
|
|
848
848
|
"button",
|
|
849
849
|
{
|
|
850
|
-
className:
|
|
850
|
+
className: h(
|
|
851
851
|
`block w-full px-4 py-2 text-base ${T[g]}
|
|
852
852
|
rounded-md transition duration-300 focus:outline-none focus:ring-2 ${CA[g]} focus:ring-offset-2 text-left`,
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
|
|
853
|
+
w === m.link ? tA[g] : "",
|
|
854
|
+
w === m.link ? g === "secondary" || g === "primary" || g === "darkMagenta" || g === "veryDarkViolet" || g === "success" ? "text-custom-red" : g === "pikaros" ? "text-orange-300" : "text-custom-blue" : g === "primary" || g === "vividPink" || g === "darkMagenta" || g === "veryDarkViolet" || g === "danger" || g === "warning" || g === "success" || g === "pikaros" ? "text-white" : "text-custom-blue",
|
|
855
|
+
w === m.link ? "font-semibold" : "font-normal"
|
|
856
856
|
),
|
|
857
|
-
onClick:
|
|
858
|
-
children:
|
|
857
|
+
onClick: m.label === "Cerrar sesion" ? I : () => L(m),
|
|
858
|
+
children: m.label
|
|
859
859
|
},
|
|
860
860
|
p
|
|
861
861
|
))
|
|
@@ -863,15 +863,15 @@ const KA = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAEZQAAApUCAYAAACv3FolAA
|
|
|
863
863
|
"button",
|
|
864
864
|
{
|
|
865
865
|
type: "button",
|
|
866
|
-
className:
|
|
866
|
+
className: h(
|
|
867
867
|
`block w-full px-4 py-2 text-base ${T[g]}
|
|
868
868
|
rounded-md transition duration-300 focus:outline-none focus:ring-2 ${CA[g]} focus:ring-offset-2 text-left`,
|
|
869
|
-
|
|
870
|
-
|
|
871
|
-
|
|
869
|
+
w === "/login" ? tA[g] : "",
|
|
870
|
+
w === "/login" ? g === "secondary" || g === "primary" || g === "darkMagenta" || g === "veryDarkViolet" || g === "success" ? "text-custom-red" : g === "pikaros" ? "text-orange-300" : "text-custom-blue" : g === "primary" || g === "vividPink" || g === "darkMagenta" || g === "veryDarkViolet" || g === "danger" || g === "warning" || g === "success" || g === "pikaros" ? "text-white" : "text-custom-blue",
|
|
871
|
+
w === "/login" ? "font-semibold" : "font-normal"
|
|
872
872
|
),
|
|
873
873
|
onClick: () => {
|
|
874
|
-
C.push("/login"),
|
|
874
|
+
C.push("/login"), f(!1);
|
|
875
875
|
},
|
|
876
876
|
children: "Login"
|
|
877
877
|
}
|
|
@@ -880,11 +880,11 @@ const KA = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAEZQAAApUCAYAAACv3FolAA
|
|
|
880
880
|
WA && /* @__PURE__ */ i(
|
|
881
881
|
OB,
|
|
882
882
|
{
|
|
883
|
-
variant:
|
|
884
|
-
background:
|
|
885
|
-
logoGoatData:
|
|
886
|
-
imgLoading:
|
|
887
|
-
strokeWidth:
|
|
883
|
+
variant: l,
|
|
884
|
+
background: G,
|
|
885
|
+
logoGoatData: a,
|
|
886
|
+
imgLoading: U,
|
|
887
|
+
strokeWidth: q
|
|
888
888
|
}
|
|
889
889
|
)
|
|
890
890
|
] });
|
|
@@ -900,7 +900,7 @@ const iw = N(
|
|
|
900
900
|
height: D = "",
|
|
901
901
|
...t
|
|
902
902
|
}, e) => {
|
|
903
|
-
const
|
|
903
|
+
const Q = {
|
|
904
904
|
primary: "#1F2937",
|
|
905
905
|
secondary: "#ededed",
|
|
906
906
|
vividPink: "#ff0145",
|
|
@@ -909,7 +909,7 @@ const iw = N(
|
|
|
909
909
|
danger: "#b91c1c",
|
|
910
910
|
warning: "#f59e0b",
|
|
911
911
|
success: "#047857"
|
|
912
|
-
},
|
|
912
|
+
}, w = {
|
|
913
913
|
logoRed: _D,
|
|
914
914
|
logoBlack: bB,
|
|
915
915
|
logo6: Ae,
|
|
@@ -926,7 +926,7 @@ const iw = N(
|
|
|
926
926
|
13: "13",
|
|
927
927
|
14: "14"
|
|
928
928
|
};
|
|
929
|
-
return /* @__PURE__ */
|
|
929
|
+
return /* @__PURE__ */ y(
|
|
930
930
|
"div",
|
|
931
931
|
{
|
|
932
932
|
ref: e,
|
|
@@ -956,7 +956,7 @@ const iw = N(
|
|
|
956
956
|
cy: "55",
|
|
957
957
|
r: "45",
|
|
958
958
|
fill: "none",
|
|
959
|
-
stroke:
|
|
959
|
+
stroke: Q[A],
|
|
960
960
|
strokeWidth: C[M],
|
|
961
961
|
strokeDasharray: "314",
|
|
962
962
|
strokeDashoffset: "314",
|
|
@@ -975,7 +975,7 @@ const iw = N(
|
|
|
975
975
|
style: {
|
|
976
976
|
animation: "blink 1s ease-in-out infinite"
|
|
977
977
|
},
|
|
978
|
-
children: /* @__PURE__ */ i("div", { className: "ml-1", children: /* @__PURE__ */ i("img", { src: B && B.trim() !== "" ? B :
|
|
978
|
+
children: /* @__PURE__ */ i("div", { className: "ml-1", children: /* @__PURE__ */ i("img", { src: B && B.trim() !== "" ? B : w[g], alt: "logo" }) })
|
|
979
979
|
}
|
|
980
980
|
)
|
|
981
981
|
]
|
|
@@ -993,8 +993,8 @@ const sw = N(
|
|
|
993
993
|
logo: D,
|
|
994
994
|
heightLogo: t,
|
|
995
995
|
widthLogo: e,
|
|
996
|
-
activeRoute:
|
|
997
|
-
router:
|
|
996
|
+
activeRoute: Q,
|
|
997
|
+
router: w,
|
|
998
998
|
user: C,
|
|
999
999
|
theme: s,
|
|
1000
1000
|
InstallApp: o,
|
|
@@ -1002,46 +1002,46 @@ const sw = N(
|
|
|
1002
1002
|
backgroundIndicator: n = "black",
|
|
1003
1003
|
logoGoatDataIndicator: r = "logoRed",
|
|
1004
1004
|
imgLoadingIndicator: E = "",
|
|
1005
|
-
strokeWidthIndicator:
|
|
1006
|
-
handleLogout:
|
|
1007
|
-
toggleTheme:
|
|
1008
|
-
toggeInstallApp:
|
|
1009
|
-
handleTogge:
|
|
1010
|
-
...
|
|
1005
|
+
strokeWidthIndicator: l = "10",
|
|
1006
|
+
handleLogout: G,
|
|
1007
|
+
toggleTheme: a,
|
|
1008
|
+
toggeInstallApp: U,
|
|
1009
|
+
handleTogge: q,
|
|
1010
|
+
...c
|
|
1011
1011
|
}, V) => {
|
|
1012
1012
|
var cg, _A;
|
|
1013
|
-
const [
|
|
1014
|
-
|
|
1013
|
+
const [Z, u] = z(!0), [Y, f] = z(null), [R, MA] = z(!1), [WA, cA] = z(null), [$A, UA] = z(!1), b = AA(null), W = () => MA(!R), rA = () => MA(!1), ZA = () => {
|
|
1014
|
+
q && q(), u((k) => !k);
|
|
1015
1015
|
}, ag = (k, L) => {
|
|
1016
|
-
k.subItems && k.subItems.length > 0 ?
|
|
1016
|
+
k.subItems && k.subItems.length > 0 ? f((EA) => EA === L ? -1 : L) : k.link && w && w.push(k.link);
|
|
1017
1017
|
}, hA = (k, L) => {
|
|
1018
|
-
|
|
1018
|
+
f((EA) => EA === L ? -1 : L), k.link && w && w.push(k.link);
|
|
1019
1019
|
}, Tg = (k) => {
|
|
1020
|
-
k.link &&
|
|
1020
|
+
k.link && w && (w.push(k.link), rA());
|
|
1021
1021
|
};
|
|
1022
1022
|
return O(() => {
|
|
1023
|
-
if (typeof window < "u" && (
|
|
1023
|
+
if (typeof window < "u" && (w != null && w.events)) {
|
|
1024
1024
|
const k = () => {
|
|
1025
1025
|
UA(!0);
|
|
1026
1026
|
}, L = () => {
|
|
1027
1027
|
UA(!1);
|
|
1028
1028
|
};
|
|
1029
|
-
return
|
|
1030
|
-
|
|
1029
|
+
return w.events.on("routeChangeStart", k), w.events.on("routeChangeComplete", L), w.events.on("routeChangeError", L), () => {
|
|
1030
|
+
w.events.off("routeChangeStart", k), w.events.off("routeChangeComplete", L), w.events.off("routeChangeError", L);
|
|
1031
1031
|
};
|
|
1032
1032
|
}
|
|
1033
|
-
}, [
|
|
1033
|
+
}, [w]), /* @__PURE__ */ y(
|
|
1034
1034
|
"div",
|
|
1035
1035
|
{
|
|
1036
1036
|
ref: V,
|
|
1037
|
-
...
|
|
1038
|
-
style: { width:
|
|
1039
|
-
className:
|
|
1037
|
+
...c,
|
|
1038
|
+
style: { width: Z ? "250px" : "70px" },
|
|
1039
|
+
className: h(
|
|
1040
1040
|
`fixed top-0 left-0 h-full ${iA[B]} text-white shadow-lg transition-all z-50`,
|
|
1041
1041
|
M
|
|
1042
1042
|
),
|
|
1043
1043
|
children: [
|
|
1044
|
-
/* @__PURE__ */
|
|
1044
|
+
/* @__PURE__ */ y("div", { className: "flex flex-shrink-0 items-center mt-4", style: { flexDirection: "column" }, children: [
|
|
1045
1045
|
/* @__PURE__ */ i(
|
|
1046
1046
|
"img",
|
|
1047
1047
|
{
|
|
@@ -1056,36 +1056,36 @@ const sw = N(
|
|
|
1056
1056
|
{
|
|
1057
1057
|
alt: "logo",
|
|
1058
1058
|
className: "hidden lg:block",
|
|
1059
|
-
style: { height: t && t.trim() !== "" ? t :
|
|
1060
|
-
src: D && D.trim() !== "" ? D : B === "secondary" ?
|
|
1059
|
+
style: { height: t && t.trim() !== "" ? t : Z ? "70px" : "", width: e && e.trim() !== "" ? e : Z ? "110px" : "40px" },
|
|
1060
|
+
src: D && D.trim() !== "" ? D : B === "secondary" ? Z ? KA : bB : Z ? pA : FB
|
|
1061
1061
|
}
|
|
1062
1062
|
),
|
|
1063
|
-
(!D || D.trim() === "") && /* @__PURE__ */ i("div", { className: `${bA[B]} ${
|
|
1063
|
+
(!D || D.trim() === "") && /* @__PURE__ */ i("div", { className: `${bA[B]} ${Z ? "" : "lock w-auto lg:hidden"}`, style: { fontSize: Z ? "12px" : "8px", letterSpacing: "4px" }, children: "DATA" })
|
|
1064
1064
|
] }),
|
|
1065
1065
|
/* @__PURE__ */ i(
|
|
1066
1066
|
"button",
|
|
1067
1067
|
{
|
|
1068
1068
|
onClick: ZA,
|
|
1069
1069
|
className: `absolute -right-3 transform -translate-y-1/2 p-1 rounded-full shadow-md ${tw[B]} focus:outline-none`,
|
|
1070
|
-
children:
|
|
1070
|
+
children: Z ? /* @__PURE__ */ i(Wt, { size: 20 }) : /* @__PURE__ */ i(xt, { size: 20 })
|
|
1071
1071
|
}
|
|
1072
1072
|
),
|
|
1073
1073
|
/* @__PURE__ */ i("div", { style: { marginLeft: "20px", marginRight: "20px", border: `1px ${Dg[B]} solid`, marginTop: "14px" } }),
|
|
1074
|
-
/* @__PURE__ */
|
|
1074
|
+
/* @__PURE__ */ y("div", { style: { display: "flex", justifyContent: "space-between", flexDirection: "column", height: "75vh" }, children: [
|
|
1075
1075
|
/* @__PURE__ */ i("div", { className: "flex flex-col items-start p-4 space-y-4 mt-7", children: A.map((k, L) => {
|
|
1076
1076
|
var EA;
|
|
1077
|
-
return /* @__PURE__ */
|
|
1078
|
-
/* @__PURE__ */
|
|
1077
|
+
return /* @__PURE__ */ y("div", { className: "w-full relative group", children: [
|
|
1078
|
+
/* @__PURE__ */ y(
|
|
1079
1079
|
"button",
|
|
1080
1080
|
{
|
|
1081
1081
|
type: "button",
|
|
1082
|
-
className:
|
|
1083
|
-
`flex items-center justify-start w-full ${
|
|
1082
|
+
className: h(
|
|
1083
|
+
`flex items-center justify-start w-full ${Z ? "px-4" : ""} ${Z ? "py-2" : ""} text-sm cursor-pointer rounded-md transition duration-300 focus:outline-none focus:ring-2 focus:ring-offset-2`,
|
|
1084
1084
|
T[B],
|
|
1085
1085
|
CA[B],
|
|
1086
|
-
|
|
1087
|
-
|
|
1088
|
-
|
|
1086
|
+
Q === k.link || (EA = k.subItems) != null && EA.some((H) => H.link === Q) ? tA[B] : "",
|
|
1087
|
+
Q === k.link ? B === "secondary" || B === "primary" || B === "darkMagenta" || B === "veryDarkViolet" || B === "success" ? "text-custom-red" : B === "pikaros" ? "text-orange-300" : "text-custom-blue" : B === "primary" || B === "vividPink" || B === "darkMagenta" || B === "veryDarkViolet" || B === "danger" || B === "warning" || B === "success" || B === "pikaros" ? "text-white" : "text-custom-blue",
|
|
1088
|
+
Q === k.link ? "font-semibold" : "font-normal"
|
|
1089
1089
|
),
|
|
1090
1090
|
onClick: () => {
|
|
1091
1091
|
ag(k, L);
|
|
@@ -1096,33 +1096,33 @@ const sw = N(
|
|
|
1096
1096
|
(k == null ? void 0 : k.icon) && /* @__PURE__ */ i(
|
|
1097
1097
|
"div",
|
|
1098
1098
|
{
|
|
1099
|
-
className: `flex ${
|
|
1099
|
+
className: `flex ${Z ? "" : "py-2"}`,
|
|
1100
1100
|
style: {
|
|
1101
|
-
marginRight:
|
|
1102
|
-
marginLeft:
|
|
1101
|
+
marginRight: Z ? "12px" : "0px",
|
|
1102
|
+
marginLeft: Z ? "0px" : "6px"
|
|
1103
1103
|
},
|
|
1104
1104
|
children: /* @__PURE__ */ i(k.icon, { className: "w-6 h-6" })
|
|
1105
1105
|
}
|
|
1106
1106
|
),
|
|
1107
|
-
/* @__PURE__ */ i("span", { className: `${
|
|
1107
|
+
/* @__PURE__ */ i("span", { className: `${Z ? "block" : "hidden"}`, children: k.label })
|
|
1108
1108
|
]
|
|
1109
1109
|
}
|
|
1110
1110
|
),
|
|
1111
|
-
WA === L && k.description && k.description.trim() !== "" && !
|
|
1111
|
+
WA === L && k.description && k.description.trim() !== "" && !Z && /* @__PURE__ */ y(
|
|
1112
1112
|
"div",
|
|
1113
1113
|
{
|
|
1114
1114
|
style: {
|
|
1115
1115
|
border: `1px ${Dg[B]} solid`,
|
|
1116
1116
|
width: "240px"
|
|
1117
1117
|
},
|
|
1118
|
-
className:
|
|
1118
|
+
className: h(
|
|
1119
1119
|
"absolute top-1/2 transform -translate-y-1/2 transition-all duration-300 opacity-0 group-hover:opacity-100 rounded-md text-xs px-4 py-2 shadow-lg",
|
|
1120
|
-
|
|
1120
|
+
Z ? "left-full ml-2" : "left-full ml-2 translate-x-2 group-hover:translate-x-4",
|
|
1121
1121
|
bA[B],
|
|
1122
1122
|
iA[B]
|
|
1123
1123
|
),
|
|
1124
1124
|
children: [
|
|
1125
|
-
k.image && k.image.trim() !== "" && /* @__PURE__ */
|
|
1125
|
+
k.image && k.image.trim() !== "" && /* @__PURE__ */ y("div", { className: "relative w-full h-24 mb-2", children: [
|
|
1126
1126
|
/* @__PURE__ */ i(
|
|
1127
1127
|
"img",
|
|
1128
1128
|
{
|
|
@@ -1138,15 +1138,15 @@ const sw = N(
|
|
|
1138
1138
|
]
|
|
1139
1139
|
}
|
|
1140
1140
|
),
|
|
1141
|
-
k.subItems && k.subItems.length > 0 && Y === L && (
|
|
1141
|
+
k.subItems && k.subItems.length > 0 && Y === L && (Z ? /* @__PURE__ */ i("div", { className: "pl-4 py-4", children: k.subItems.map((H, JA) => /* @__PURE__ */ i(
|
|
1142
1142
|
"button",
|
|
1143
1143
|
{
|
|
1144
|
-
className:
|
|
1144
|
+
className: h(
|
|
1145
1145
|
`block w-full px-4 py-1 text-sm ${T[B]}
|
|
1146
1146
|
rounded-md transition duration-300 focus:outline-none focus:ring-2 ${CA[B]} focus:ring-offset-2 text-left`,
|
|
1147
|
-
|
|
1148
|
-
|
|
1149
|
-
|
|
1147
|
+
Q === H.link ? tA[B] : "",
|
|
1148
|
+
Q === H.link ? B === "secondary" || B === "primary" || B === "darkMagenta" || B === "veryDarkViolet" || B === "success" ? "text-custom-red" : B === "pikaros" ? "text-orange-300" : "text-custom-blue" : B === "primary" || B === "vividPink" || B === "darkMagenta" || B === "veryDarkViolet" || B === "danger" || B === "warning" || B === "success" || B === "pikaros" ? "text-white" : "text-custom-blue",
|
|
1149
|
+
Q === H.link ? "font-semibold" : "font-normal"
|
|
1150
1150
|
),
|
|
1151
1151
|
onClick: () => {
|
|
1152
1152
|
hA(H, L);
|
|
@@ -1163,12 +1163,12 @@ const sw = N(
|
|
|
1163
1163
|
children: k.subItems.map((H, JA) => /* @__PURE__ */ i(
|
|
1164
1164
|
"div",
|
|
1165
1165
|
{
|
|
1166
|
-
className:
|
|
1166
|
+
className: h(
|
|
1167
1167
|
`block px-4 py-2 text-sm cursor-pointer ${iA[B]}e`,
|
|
1168
1168
|
T[B] && `${T[B]}`,
|
|
1169
|
-
|
|
1170
|
-
|
|
1171
|
-
|
|
1169
|
+
Q === H.link ? tA[B] : "",
|
|
1170
|
+
Q === H.link ? B === "secondary" || B === "primary" || B === "darkMagenta" || B === "veryDarkViolet" || B === "success" ? "text-custom-red" : B === "pikaros" ? "text-orange-300" : "text-custom-blue" : B === "primary" || B === "vividPink" || B === "darkMagenta" || B === "veryDarkViolet" || B === "danger" || B === "warning" || B === "success" || B === "pikaros" ? "text-white" : "text-custom-blue",
|
|
1171
|
+
Q === H.link ? "font-semibold" : "font-normal"
|
|
1172
1172
|
),
|
|
1173
1173
|
onClick: () => {
|
|
1174
1174
|
hA(H, L);
|
|
@@ -1181,8 +1181,8 @@ const sw = N(
|
|
|
1181
1181
|
))
|
|
1182
1182
|
] }, L);
|
|
1183
1183
|
}) }),
|
|
1184
|
-
C && /* @__PURE__ */
|
|
1185
|
-
/* @__PURE__ */
|
|
1184
|
+
C && /* @__PURE__ */ y("div", { className: "relative ml-3", children: [
|
|
1185
|
+
/* @__PURE__ */ y("div", { id: "user-menu-button", style: { display: "flex", alignItems: "center", cursor: "pointer" }, onClick: W, children: [
|
|
1186
1186
|
/* @__PURE__ */ i(
|
|
1187
1187
|
"button",
|
|
1188
1188
|
{
|
|
@@ -1209,26 +1209,26 @@ const sw = N(
|
|
|
1209
1209
|
)
|
|
1210
1210
|
}
|
|
1211
1211
|
),
|
|
1212
|
-
/* @__PURE__ */ i("div", { className: `block w-full px-4 py-4 ${bA[B]} text-left ${
|
|
1213
|
-
/* @__PURE__ */ i("div", { className: `mr-2 ${
|
|
1212
|
+
/* @__PURE__ */ i("div", { className: `block w-full px-4 py-4 ${bA[B]} text-left ${Z ? "block" : "hidden"}`, children: C.name }),
|
|
1213
|
+
/* @__PURE__ */ i("div", { className: `mr-2 ${Z ? "block" : "hidden"}`, children: /* @__PURE__ */ i(ew, { size: 20, color: Dg[B] }) })
|
|
1214
1214
|
] }),
|
|
1215
|
-
|
|
1215
|
+
R && /* @__PURE__ */ i(
|
|
1216
1216
|
"div",
|
|
1217
1217
|
{
|
|
1218
1218
|
ref: b,
|
|
1219
|
-
className: `absolute right-0 ${
|
|
1219
|
+
className: `absolute right-0 ${Z ? "left-56" : "left-14"} bottom-8 mt-2 w-48 ${iA[B]} ${dg[B]} rounded-md shadow-lg ring-4 ring-black ring-opacity-5`,
|
|
1220
1220
|
role: "menu",
|
|
1221
1221
|
children: g.map((k, L) => /* @__PURE__ */ i(
|
|
1222
1222
|
"div",
|
|
1223
1223
|
{
|
|
1224
|
-
className:
|
|
1224
|
+
className: h(
|
|
1225
1225
|
"block px-4 py-2 text-sm cursor-pointer",
|
|
1226
1226
|
T[B] && `${T[B]}`,
|
|
1227
|
-
|
|
1228
|
-
|
|
1229
|
-
|
|
1227
|
+
Q === k.link ? tA[B] : "",
|
|
1228
|
+
Q === k.link ? B === "secondary" || B === "primary" || B === "darkMagenta" || B === "veryDarkViolet" || B === "success" ? "text-custom-red" : B === "pikaros" ? "text-orange-300" : "text-custom-blue" : B === "primary" || B === "vividPink" || B === "darkMagenta" || B === "veryDarkViolet" || B === "danger" || B === "warning" || B === "success" || B === "pikaros" ? "text-white" : "text-custom-blue",
|
|
1229
|
+
Q === k.link ? "font-semibold" : "font-normal"
|
|
1230
1230
|
),
|
|
1231
|
-
onClick: k.label === "Cerrar sesion" ?
|
|
1231
|
+
onClick: k.label === "Cerrar sesion" ? G : () => {
|
|
1232
1232
|
Tg(k);
|
|
1233
1233
|
},
|
|
1234
1234
|
children: k.label
|
|
@@ -1237,9 +1237,9 @@ const sw = N(
|
|
|
1237
1237
|
))
|
|
1238
1238
|
}
|
|
1239
1239
|
),
|
|
1240
|
-
/* @__PURE__ */
|
|
1241
|
-
o && /* @__PURE__ */ i(Be, { variant: B, onClick:
|
|
1242
|
-
s && /* @__PURE__ */ i(ge, { variant: B, toggleTheme:
|
|
1240
|
+
/* @__PURE__ */ y("div", { style: { display: "flex", gap: "12px", padding: "0px 20px 0px 10px", flexDirection: Z ? "row" : "column", alignItems: "center" }, children: [
|
|
1241
|
+
o && /* @__PURE__ */ i(Be, { variant: B, onClick: U }),
|
|
1242
|
+
s && /* @__PURE__ */ i(ge, { variant: B, toggleTheme: a })
|
|
1243
1243
|
] })
|
|
1244
1244
|
] })
|
|
1245
1245
|
] }),
|
|
@@ -1250,7 +1250,7 @@ const sw = N(
|
|
|
1250
1250
|
background: n,
|
|
1251
1251
|
logoGoatData: r,
|
|
1252
1252
|
imgLoading: E,
|
|
1253
|
-
strokeWidth:
|
|
1253
|
+
strokeWidth: l
|
|
1254
1254
|
}
|
|
1255
1255
|
)
|
|
1256
1256
|
]
|
|
@@ -1259,36 +1259,47 @@ const sw = N(
|
|
|
1259
1259
|
}
|
|
1260
1260
|
);
|
|
1261
1261
|
sw.displayName = "Sidebar";
|
|
1262
|
-
const fM = ({
|
|
1263
|
-
|
|
1262
|
+
const fM = ({
|
|
1263
|
+
children: A,
|
|
1264
|
+
href: g,
|
|
1265
|
+
Viewport: B,
|
|
1266
|
+
colorButton: M,
|
|
1267
|
+
setIsOpen: D,
|
|
1268
|
+
routerApp: t = !1,
|
|
1269
|
+
open: e = !1,
|
|
1270
|
+
handleOpen: Q,
|
|
1271
|
+
handleRouter: w
|
|
1272
|
+
}) => {
|
|
1273
|
+
const C = AA(null), [s, o] = z(M);
|
|
1264
1274
|
return O(() => {
|
|
1265
|
-
const
|
|
1266
|
-
const
|
|
1267
|
-
if (
|
|
1268
|
-
const
|
|
1269
|
-
|
|
1275
|
+
const n = () => {
|
|
1276
|
+
const r = document.getElementById(g.slice(1));
|
|
1277
|
+
if (r) {
|
|
1278
|
+
const E = r.getBoundingClientRect(), l = E.top >= 0 && E.bottom <= window.innerHeight;
|
|
1279
|
+
o(l ? B : M);
|
|
1270
1280
|
}
|
|
1271
1281
|
};
|
|
1272
|
-
return
|
|
1273
|
-
window.removeEventListener("scroll",
|
|
1282
|
+
return n(), window.addEventListener("scroll", n), () => {
|
|
1283
|
+
window.removeEventListener("scroll", n);
|
|
1274
1284
|
};
|
|
1275
1285
|
}, [g, B, M]), /* @__PURE__ */ i(
|
|
1276
1286
|
"button",
|
|
1277
1287
|
{
|
|
1278
|
-
|
|
1279
|
-
|
|
1280
|
-
|
|
1281
|
-
|
|
1282
|
-
|
|
1288
|
+
className: "group",
|
|
1289
|
+
onClick: t ? w : e ? Q : () => {
|
|
1290
|
+
const n = document.getElementById(g.slice(1));
|
|
1291
|
+
n && (n.scrollIntoView({ behavior: "smooth" }), setTimeout(() => {
|
|
1292
|
+
const r = n.getBoundingClientRect(), E = r.top >= 0 && r.bottom <= window.innerHeight;
|
|
1293
|
+
o(E ? B : M), D(!1);
|
|
1283
1294
|
}, 300));
|
|
1284
1295
|
},
|
|
1285
|
-
ref:
|
|
1296
|
+
ref: C,
|
|
1286
1297
|
style: {
|
|
1287
1298
|
display: "block",
|
|
1288
1299
|
padding: "8px 12px",
|
|
1289
1300
|
borderRadius: "6px",
|
|
1290
1301
|
fontSize: "14px",
|
|
1291
|
-
color:
|
|
1302
|
+
color: s,
|
|
1292
1303
|
background: "transparent",
|
|
1293
1304
|
opacity: 0.7,
|
|
1294
1305
|
textDecoration: "none",
|
|
@@ -1351,10 +1362,10 @@ function nw(A) {
|
|
|
1351
1362
|
timestamp: 0,
|
|
1352
1363
|
isProcessing: !1
|
|
1353
1364
|
};
|
|
1354
|
-
function
|
|
1355
|
-
t.has(C) && (
|
|
1365
|
+
function Q(C) {
|
|
1366
|
+
t.has(C) && (w.schedule(C), A()), C(e);
|
|
1356
1367
|
}
|
|
1357
|
-
const
|
|
1368
|
+
const w = {
|
|
1358
1369
|
/**
|
|
1359
1370
|
* Schedule a process to run on the next frame.
|
|
1360
1371
|
*/
|
|
@@ -1376,10 +1387,10 @@ function nw(A) {
|
|
|
1376
1387
|
D = !0;
|
|
1377
1388
|
return;
|
|
1378
1389
|
}
|
|
1379
|
-
M = !0, [g, B] = [B, g], g.forEach(
|
|
1390
|
+
M = !0, [g, B] = [B, g], g.forEach(Q), g.clear(), M = !1, D && (D = !1, w.process(C));
|
|
1380
1391
|
}
|
|
1381
1392
|
};
|
|
1382
|
-
return
|
|
1393
|
+
return w;
|
|
1383
1394
|
}
|
|
1384
1395
|
const Yg = [
|
|
1385
1396
|
"read",
|
|
@@ -1401,21 +1412,21 @@ function we(A, g) {
|
|
|
1401
1412
|
delta: 0,
|
|
1402
1413
|
timestamp: 0,
|
|
1403
1414
|
isProcessing: !1
|
|
1404
|
-
}, t = () => B = !0, e = Yg.reduce((
|
|
1405
|
-
const
|
|
1406
|
-
B = !1, D.delta = M ? 1e3 / 60 : Math.max(Math.min(
|
|
1415
|
+
}, t = () => B = !0, e = Yg.reduce((G, a) => (G[a] = nw(t), G), {}), { read: Q, resolveKeyframes: w, update: C, preRender: s, render: o, postRender: I } = e, n = () => {
|
|
1416
|
+
const G = performance.now();
|
|
1417
|
+
B = !1, D.delta = M ? 1e3 / 60 : Math.max(Math.min(G - D.timestamp, rw), 1), D.timestamp = G, D.isProcessing = !0, Q.process(D), w.process(D), C.process(D), s.process(D), o.process(D), I.process(D), D.isProcessing = !1, B && g && (M = !1, A(n));
|
|
1407
1418
|
}, r = () => {
|
|
1408
1419
|
B = !0, M = !0, D.isProcessing || A(n);
|
|
1409
1420
|
};
|
|
1410
|
-
return { schedule: Yg.reduce((
|
|
1411
|
-
const
|
|
1412
|
-
return
|
|
1413
|
-
}, {}), cancel: (
|
|
1414
|
-
for (let
|
|
1415
|
-
e[Yg[
|
|
1421
|
+
return { schedule: Yg.reduce((G, a) => {
|
|
1422
|
+
const U = e[a];
|
|
1423
|
+
return G[a] = (q, c = !1, V = !1) => (B || r(), U.schedule(q, c, V)), G;
|
|
1424
|
+
}, {}), cancel: (G) => {
|
|
1425
|
+
for (let a = 0; a < Yg.length; a++)
|
|
1426
|
+
e[Yg[a]].cancel(G);
|
|
1416
1427
|
}, state: D, steps: e };
|
|
1417
1428
|
}
|
|
1418
|
-
const { schedule:
|
|
1429
|
+
const { schedule: J, cancel: uA, state: j, steps: Xg } = we(typeof requestAnimationFrame < "u" ? requestAnimationFrame : gA, !0), Qe = SA({ strict: !1 }), dM = {
|
|
1419
1430
|
animation: [
|
|
1420
1431
|
"animate",
|
|
1421
1432
|
"variants",
|
|
@@ -1572,10 +1583,10 @@ function yw(A, g, B) {
|
|
|
1572
1583
|
const xB = (A) => A.replace(/([a-z])([A-Z])/gu, "$1-$2").toLowerCase(), Uw = "framerAppearId", se = "data-" + xB(Uw), { schedule: WB, cancel: Mo } = we(queueMicrotask, !1), oe = SA({});
|
|
1573
1584
|
function Zw(A, g, B, M, D) {
|
|
1574
1585
|
var t, e;
|
|
1575
|
-
const { visualElement:
|
|
1576
|
-
M = M ||
|
|
1586
|
+
const { visualElement: Q } = $(Fg), w = $(Qe), C = $(HB), s = $(ee).reducedMotion, o = AA(null);
|
|
1587
|
+
M = M || w.renderer, !o.current && M && (o.current = M(A, {
|
|
1577
1588
|
visualState: g,
|
|
1578
|
-
parent:
|
|
1589
|
+
parent: Q,
|
|
1579
1590
|
props: B,
|
|
1580
1591
|
presenceContext: C,
|
|
1581
1592
|
blockInitialAnimation: C ? C.initial === !1 : !1,
|
|
@@ -1587,22 +1598,22 @@ function Zw(A, g, B, M, D) {
|
|
|
1587
1598
|
Pt(() => {
|
|
1588
1599
|
I && r.current && I.update(B, C);
|
|
1589
1600
|
});
|
|
1590
|
-
const E = B[se],
|
|
1601
|
+
const E = B[se], l = AA(!!E && !(!((t = window.MotionHandoffIsComplete) === null || t === void 0) && t.call(window, E)) && ((e = window.MotionHasOptimisedAnimation) === null || e === void 0 ? void 0 : e.call(window, E)));
|
|
1591
1602
|
return te(() => {
|
|
1592
|
-
I && (r.current = !0, window.MotionIsMounted = !0, I.updateFeatures(), WB.render(I.render),
|
|
1603
|
+
I && (r.current = !0, window.MotionIsMounted = !0, I.updateFeatures(), WB.render(I.render), l.current && I.animationState && I.animationState.animateChanges());
|
|
1593
1604
|
}), O(() => {
|
|
1594
|
-
I && (!
|
|
1595
|
-
var
|
|
1596
|
-
(
|
|
1597
|
-
}),
|
|
1605
|
+
I && (!l.current && I.animationState && I.animationState.animateChanges(), l.current && (queueMicrotask(() => {
|
|
1606
|
+
var G;
|
|
1607
|
+
(G = window.MotionHandoffMarkAsComplete) === null || G === void 0 || G.call(window, E);
|
|
1608
|
+
}), l.current = !1));
|
|
1598
1609
|
}), I;
|
|
1599
1610
|
}
|
|
1600
1611
|
function Vw(A, g, B, M) {
|
|
1601
|
-
const { layoutId: D, layout: t, drag: e, dragConstraints:
|
|
1612
|
+
const { layoutId: D, layout: t, drag: e, dragConstraints: Q, layoutScroll: w, layoutRoot: C } = g;
|
|
1602
1613
|
A.projection = new B(A.latestValues, g["data-framer-portal-id"] ? void 0 : Ie(A.parent)), A.projection.setOptions({
|
|
1603
1614
|
layoutId: D,
|
|
1604
1615
|
layout: t,
|
|
1605
|
-
alwaysMeasureLayout: !!e ||
|
|
1616
|
+
alwaysMeasureLayout: !!e || Q && zA(Q),
|
|
1606
1617
|
visualElement: A,
|
|
1607
1618
|
/**
|
|
1608
1619
|
* TODO: Update options in an effect. This could be tricky as it'll be too late
|
|
@@ -1613,7 +1624,7 @@ function Vw(A, g, B, M) {
|
|
|
1613
1624
|
*/
|
|
1614
1625
|
animationType: typeof t == "string" ? t : "both",
|
|
1615
1626
|
initialPromotionConfig: M,
|
|
1616
|
-
layoutScroll:
|
|
1627
|
+
layoutScroll: w,
|
|
1617
1628
|
layoutRoot: C
|
|
1618
1629
|
});
|
|
1619
1630
|
}
|
|
@@ -1624,7 +1635,7 @@ function Ie(A) {
|
|
|
1624
1635
|
function fw({ preloadedFeatures: A, createVisualElement: g, useRender: B, useVisualState: M, Component: D }) {
|
|
1625
1636
|
var t, e;
|
|
1626
1637
|
A && Ew(A);
|
|
1627
|
-
function
|
|
1638
|
+
function Q(C, s) {
|
|
1628
1639
|
let o;
|
|
1629
1640
|
const I = {
|
|
1630
1641
|
...$(ee),
|
|
@@ -1633,14 +1644,14 @@ function fw({ preloadedFeatures: A, createVisualElement: g, useRender: B, useVis
|
|
|
1633
1644
|
}, { isStatic: n } = I, r = uw(C), E = M(C, n);
|
|
1634
1645
|
if (!n && TB) {
|
|
1635
1646
|
qw(I, A);
|
|
1636
|
-
const
|
|
1637
|
-
o =
|
|
1647
|
+
const l = kw(I);
|
|
1648
|
+
o = l.MeasureLayout, r.visualElement = Zw(D, E, I, g, l.ProjectionNode);
|
|
1638
1649
|
}
|
|
1639
|
-
return
|
|
1650
|
+
return y(Fg.Provider, { value: r, children: [o && r.visualElement ? i(o, { visualElement: r.visualElement, ...I }) : null, B(D, C, yw(E, r.visualElement, s), E, n, r.visualElement)] });
|
|
1640
1651
|
}
|
|
1641
|
-
|
|
1642
|
-
const
|
|
1643
|
-
return
|
|
1652
|
+
Q.displayName = `motion.${typeof D == "string" ? D : `create(${(e = (t = D.displayName) !== null && t !== void 0 ? t : D.name) !== null && e !== void 0 ? e : ""})`}`;
|
|
1653
|
+
const w = N(Q);
|
|
1654
|
+
return w[mw] = D, w;
|
|
1644
1655
|
}
|
|
1645
1656
|
function dw({ layoutId: A }) {
|
|
1646
1657
|
const g = $(Me).id;
|
|
@@ -1737,7 +1748,7 @@ function hw({ scrapeMotionValuesFromProps: A, createRenderState: g, onUpdate: B
|
|
|
1737
1748
|
latestValues: Jw(M, D, t, A),
|
|
1738
1749
|
renderState: g()
|
|
1739
1750
|
};
|
|
1740
|
-
return B && (e.onMount = (
|
|
1751
|
+
return B && (e.onMount = (Q) => B({ props: M, current: Q, ...e }), e.onUpdate = (Q) => B(Q)), e;
|
|
1741
1752
|
}
|
|
1742
1753
|
const ne = (A) => (g, B) => {
|
|
1743
1754
|
const M = $(Fg), D = $(HB), t = () => hw(A, g, M, D);
|
|
@@ -1747,28 +1758,28 @@ function Jw(A, g, B, M) {
|
|
|
1747
1758
|
const D = {}, t = M(A, {});
|
|
1748
1759
|
for (const I in t)
|
|
1749
1760
|
D[I] = yg(t[I]);
|
|
1750
|
-
let { initial: e, animate:
|
|
1751
|
-
const
|
|
1752
|
-
g && C && !
|
|
1761
|
+
let { initial: e, animate: Q } = A;
|
|
1762
|
+
const w = Og(A), C = ie(A);
|
|
1763
|
+
g && C && !w && A.inherit !== !1 && (e === void 0 && (e = g.initial), Q === void 0 && (Q = g.animate));
|
|
1753
1764
|
let s = B ? B.initial === !1 : !1;
|
|
1754
1765
|
s = s || e === !1;
|
|
1755
|
-
const o = s ?
|
|
1766
|
+
const o = s ? Q : e;
|
|
1756
1767
|
if (o && typeof o != "boolean" && !bg(o)) {
|
|
1757
1768
|
const I = Array.isArray(o) ? o : [o];
|
|
1758
1769
|
for (let n = 0; n < I.length; n++) {
|
|
1759
1770
|
const r = _B(A, I[n]);
|
|
1760
1771
|
if (r) {
|
|
1761
|
-
const { transitionEnd: E, transition:
|
|
1762
|
-
for (const
|
|
1763
|
-
let
|
|
1764
|
-
if (Array.isArray(
|
|
1765
|
-
const
|
|
1766
|
-
|
|
1772
|
+
const { transitionEnd: E, transition: l, ...G } = r;
|
|
1773
|
+
for (const a in G) {
|
|
1774
|
+
let U = G[a];
|
|
1775
|
+
if (Array.isArray(U)) {
|
|
1776
|
+
const q = s ? U.length - 1 : 0;
|
|
1777
|
+
U = U[q];
|
|
1767
1778
|
}
|
|
1768
|
-
|
|
1779
|
+
U !== null && (D[a] = U);
|
|
1769
1780
|
}
|
|
1770
|
-
for (const
|
|
1771
|
-
D[
|
|
1781
|
+
for (const a in E)
|
|
1782
|
+
D[a] = E[a];
|
|
1772
1783
|
}
|
|
1773
1784
|
}
|
|
1774
1785
|
}
|
|
@@ -1892,13 +1903,13 @@ const NA = [
|
|
|
1892
1903
|
function Hw(A, g, B) {
|
|
1893
1904
|
let M = "", D = !0;
|
|
1894
1905
|
for (let t = 0; t < jw; t++) {
|
|
1895
|
-
const e = NA[t],
|
|
1896
|
-
if (
|
|
1906
|
+
const e = NA[t], Q = A[e];
|
|
1907
|
+
if (Q === void 0)
|
|
1897
1908
|
continue;
|
|
1898
|
-
let
|
|
1899
|
-
if (typeof
|
|
1900
|
-
const C = le(
|
|
1901
|
-
if (!
|
|
1909
|
+
let w = !0;
|
|
1910
|
+
if (typeof Q == "number" ? w = Q === (e.startsWith("scale") ? 1 : 0) : w = parseFloat(Q) === 0, !w || B) {
|
|
1911
|
+
const C = le(Q, gM[e]);
|
|
1912
|
+
if (!w) {
|
|
1902
1913
|
D = !1;
|
|
1903
1914
|
const s = Ow[e] || e;
|
|
1904
1915
|
M += `${s}(${C}) `;
|
|
@@ -1910,23 +1921,23 @@ function Hw(A, g, B) {
|
|
|
1910
1921
|
}
|
|
1911
1922
|
function BM(A, g, B) {
|
|
1912
1923
|
const { style: M, vars: D, transformOrigin: t } = A;
|
|
1913
|
-
let e = !1,
|
|
1914
|
-
for (const
|
|
1915
|
-
const C = g[
|
|
1916
|
-
if (RA.has(
|
|
1924
|
+
let e = !1, Q = !1;
|
|
1925
|
+
for (const w in g) {
|
|
1926
|
+
const C = g[w];
|
|
1927
|
+
if (RA.has(w)) {
|
|
1917
1928
|
e = !0;
|
|
1918
1929
|
continue;
|
|
1919
|
-
} else if (Ee(
|
|
1920
|
-
D[
|
|
1930
|
+
} else if (Ee(w)) {
|
|
1931
|
+
D[w] = C;
|
|
1921
1932
|
continue;
|
|
1922
1933
|
} else {
|
|
1923
|
-
const s = le(C, gM[
|
|
1924
|
-
|
|
1934
|
+
const s = le(C, gM[w]);
|
|
1935
|
+
w.startsWith("origin") ? (Q = !0, t[w] = s) : M[w] = s;
|
|
1925
1936
|
}
|
|
1926
1937
|
}
|
|
1927
|
-
if (g.transform || (e || B ? M.transform = Hw(g, A.transform, B) : M.transform && (M.transform = "none")),
|
|
1928
|
-
const { originX:
|
|
1929
|
-
M.transformOrigin = `${
|
|
1938
|
+
if (g.transform || (e || B ? M.transform = Hw(g, A.transform, B) : M.transform && (M.transform = "none")), Q) {
|
|
1939
|
+
const { originX: w = "50%", originY: C = "50%", originZ: s = 0 } = t;
|
|
1940
|
+
M.transformOrigin = `${w} ${C} ${s}`;
|
|
1930
1941
|
}
|
|
1931
1942
|
}
|
|
1932
1943
|
const Tw = {
|
|
@@ -1940,8 +1951,8 @@ function Xw(A, g, B = 1, M = 0, D = !0) {
|
|
|
1940
1951
|
A.pathLength = 1;
|
|
1941
1952
|
const t = D ? Tw : Sw;
|
|
1942
1953
|
A[t.offset] = d.transform(-M);
|
|
1943
|
-
const e = d.transform(g),
|
|
1944
|
-
A[t.array] = `${e} ${
|
|
1954
|
+
const e = d.transform(g), Q = d.transform(B);
|
|
1955
|
+
A[t.array] = `${e} ${Q}`;
|
|
1945
1956
|
}
|
|
1946
1957
|
function hM(A, g, B) {
|
|
1947
1958
|
return typeof A == "string" ? A : d.transform(g + B * A);
|
|
@@ -1957,8 +1968,8 @@ function MM(A, {
|
|
|
1957
1968
|
originX: D,
|
|
1958
1969
|
originY: t,
|
|
1959
1970
|
pathLength: e,
|
|
1960
|
-
pathSpacing:
|
|
1961
|
-
pathOffset:
|
|
1971
|
+
pathSpacing: Q = 1,
|
|
1972
|
+
pathOffset: w = 0,
|
|
1962
1973
|
// This is object creation, which we try to avoid per-frame.
|
|
1963
1974
|
...C
|
|
1964
1975
|
}, s, o) {
|
|
@@ -1968,7 +1979,7 @@ function MM(A, {
|
|
|
1968
1979
|
}
|
|
1969
1980
|
A.attrs = A.style, A.style = {};
|
|
1970
1981
|
const { attrs: I, style: n, dimensions: r } = A;
|
|
1971
|
-
I.transform && (r && (n.transform = I.transform), delete I.transform), r && (D !== void 0 || t !== void 0 || n.transform) && (n.transformOrigin = Nw(r, D !== void 0 ? D : 0.5, t !== void 0 ? t : 0.5)), g !== void 0 && (I.x = g), B !== void 0 && (I.y = B), M !== void 0 && (I.scale = M), e !== void 0 && Xw(I, e,
|
|
1982
|
+
I.transform && (r && (n.transform = I.transform), delete I.transform), r && (D !== void 0 || t !== void 0 || n.transform) && (n.transformOrigin = Nw(r, D !== void 0 ? D : 0.5, t !== void 0 ? t : 0.5)), g !== void 0 && (I.x = g), B !== void 0 && (I.y = B), M !== void 0 && (I.scale = M), e !== void 0 && Xw(I, e, Q, w, !1);
|
|
1972
1983
|
}
|
|
1973
1984
|
const DM = () => ({
|
|
1974
1985
|
style: {},
|
|
@@ -2058,8 +2069,8 @@ const JM = ["x", "y", "width", "height", "cx", "cy", "r"], $w = {
|
|
|
2058
2069
|
return;
|
|
2059
2070
|
let t = !!A.drag;
|
|
2060
2071
|
if (!t) {
|
|
2061
|
-
for (const
|
|
2062
|
-
if (RA.has(
|
|
2072
|
+
for (const Q in D)
|
|
2073
|
+
if (RA.has(Q)) {
|
|
2063
2074
|
t = !0;
|
|
2064
2075
|
break;
|
|
2065
2076
|
}
|
|
@@ -2068,12 +2079,12 @@ const JM = ["x", "y", "width", "height", "cx", "cy", "r"], $w = {
|
|
|
2068
2079
|
return;
|
|
2069
2080
|
let e = !g;
|
|
2070
2081
|
if (g)
|
|
2071
|
-
for (let
|
|
2072
|
-
const
|
|
2073
|
-
A[
|
|
2082
|
+
for (let Q = 0; Q < JM.length; Q++) {
|
|
2083
|
+
const w = JM[Q];
|
|
2084
|
+
A[w] !== g[w] && (e = !0);
|
|
2074
2085
|
}
|
|
2075
|
-
e &&
|
|
2076
|
-
Ww(B, M),
|
|
2086
|
+
e && J.read(() => {
|
|
2087
|
+
Ww(B, M), J.render(() => {
|
|
2077
2088
|
MM(M, D, eM(B.tagName), A.transformTemplate), Ye(B, M);
|
|
2078
2089
|
});
|
|
2079
2090
|
});
|
|
@@ -2119,7 +2130,7 @@ function MQ(A, g, B, M) {
|
|
|
2119
2130
|
}
|
|
2120
2131
|
function DQ(A = !1) {
|
|
2121
2132
|
return (B, M, D, { latestValues: t }, e) => {
|
|
2122
|
-
const
|
|
2133
|
+
const w = ($B(B) ? MQ : BQ)(M, t, e, B), C = aw(M, typeof B == "string", A), s = B !== SD ? { ...C, ...w, ref: D } : {}, { children: o } = M, I = Pg(() => X(o) ? o.get() : o, [o]);
|
|
2123
2134
|
return Lt(B, {
|
|
2124
2135
|
...s,
|
|
2125
2136
|
children: I
|
|
@@ -2319,19 +2330,19 @@ function vM(A) {
|
|
|
2319
2330
|
return !(A.pointerType === "touch" || qe());
|
|
2320
2331
|
}
|
|
2321
2332
|
function sQ(A, g, B = {}) {
|
|
2322
|
-
const [M, D, t] = Ke(A, B), e = (
|
|
2323
|
-
if (!vM(
|
|
2333
|
+
const [M, D, t] = Ke(A, B), e = (Q) => {
|
|
2334
|
+
if (!vM(Q))
|
|
2324
2335
|
return;
|
|
2325
|
-
const { target:
|
|
2326
|
-
if (typeof C != "function" || !
|
|
2336
|
+
const { target: w } = Q, C = g(w, Q);
|
|
2337
|
+
if (typeof C != "function" || !w)
|
|
2327
2338
|
return;
|
|
2328
2339
|
const s = (o) => {
|
|
2329
|
-
vM(o) && (C(o),
|
|
2340
|
+
vM(o) && (C(o), w.removeEventListener("pointerleave", s));
|
|
2330
2341
|
};
|
|
2331
|
-
|
|
2342
|
+
w.addEventListener("pointerleave", s, D);
|
|
2332
2343
|
};
|
|
2333
|
-
return M.forEach((
|
|
2334
|
-
|
|
2344
|
+
return M.forEach((Q) => {
|
|
2345
|
+
Q.addEventListener("pointerenter", e, D);
|
|
2335
2346
|
}), t;
|
|
2336
2347
|
}
|
|
2337
2348
|
const pe = (A, g) => g ? A === g ? !0 : pe(A, g.parentElement) : !1, iM = (A) => A.pointerType === "mouse" ? typeof A.button != "number" || A.button <= 0 : A.isPrimary !== !1, oQ = /* @__PURE__ */ new Set([
|
|
@@ -2372,22 +2383,22 @@ function LM(A) {
|
|
|
2372
2383
|
return iM(A) && !qe();
|
|
2373
2384
|
}
|
|
2374
2385
|
function rQ(A, g, B = {}) {
|
|
2375
|
-
const [M, D, t] = Ke(A, B), e = (
|
|
2376
|
-
const
|
|
2377
|
-
if (!LM(
|
|
2386
|
+
const [M, D, t] = Ke(A, B), e = (Q) => {
|
|
2387
|
+
const w = Q.currentTarget;
|
|
2388
|
+
if (!LM(Q) || Bg.has(w))
|
|
2378
2389
|
return;
|
|
2379
|
-
Bg.add(
|
|
2380
|
-
const C = g(
|
|
2381
|
-
window.removeEventListener("pointerup", o), window.removeEventListener("pointercancel", I), !(!LM(n) || !Bg.has(
|
|
2390
|
+
Bg.add(w);
|
|
2391
|
+
const C = g(w, Q), s = (n, r) => {
|
|
2392
|
+
window.removeEventListener("pointerup", o), window.removeEventListener("pointercancel", I), !(!LM(n) || !Bg.has(w)) && (Bg.delete(w), typeof C == "function" && C(n, { success: r }));
|
|
2382
2393
|
}, o = (n) => {
|
|
2383
|
-
s(n, B.useGlobalTarget || pe(
|
|
2394
|
+
s(n, B.useGlobalTarget || pe(w, n.target));
|
|
2384
2395
|
}, I = (n) => {
|
|
2385
2396
|
s(n, !1);
|
|
2386
2397
|
};
|
|
2387
2398
|
window.addEventListener("pointerup", o, D), window.addEventListener("pointercancel", I, D);
|
|
2388
2399
|
};
|
|
2389
|
-
return M.forEach((
|
|
2390
|
-
!IQ(
|
|
2400
|
+
return M.forEach((Q) => {
|
|
2401
|
+
!IQ(Q) && Q.getAttribute("tabindex") === null && (Q.tabIndex = 0), (B.useGlobalTarget ? window : Q).addEventListener("pointerdown", e, D), Q.addEventListener("focus", (C) => nQ(C, D), D);
|
|
2391
2402
|
}), t;
|
|
2392
2403
|
}
|
|
2393
2404
|
function EQ(A) {
|
|
@@ -2520,7 +2531,7 @@ class aQ {
|
|
|
2520
2531
|
this.events[g] || (this.events[g] = new IM());
|
|
2521
2532
|
const M = this.events[g].add(B);
|
|
2522
2533
|
return g === "change" ? () => {
|
|
2523
|
-
M(),
|
|
2534
|
+
M(), J.read(() => {
|
|
2524
2535
|
this.events.change.getSize() || this.stop();
|
|
2525
2536
|
});
|
|
2526
2537
|
} : M;
|
|
@@ -2657,8 +2668,8 @@ function nM(A, g) {
|
|
|
2657
2668
|
let { transitionEnd: M = {}, transition: D = {}, ...t } = B || {};
|
|
2658
2669
|
t = { ...t, ...M };
|
|
2659
2670
|
for (const e in t) {
|
|
2660
|
-
const
|
|
2661
|
-
cQ(A, e,
|
|
2671
|
+
const Q = Rw(t[e]);
|
|
2672
|
+
cQ(A, e, Q);
|
|
2662
2673
|
}
|
|
2663
2674
|
}
|
|
2664
2675
|
function YQ(A) {
|
|
@@ -2674,10 +2685,10 @@ function Je(A) {
|
|
|
2674
2685
|
}
|
|
2675
2686
|
const ze = (A, g, B) => (((1 - 3 * B + 3 * g) * A + (3 * B - 6 * g)) * A + 3 * g) * A, uQ = 1e-7, mQ = 12;
|
|
2676
2687
|
function yQ(A, g, B, M, D) {
|
|
2677
|
-
let t, e,
|
|
2688
|
+
let t, e, Q = 0;
|
|
2678
2689
|
do
|
|
2679
2690
|
e = g + (B - g) / 2, t = ze(e, M, D) - A, t > 0 ? B = e : g = e;
|
|
2680
|
-
while (Math.abs(t) > uQ && ++
|
|
2691
|
+
while (Math.abs(t) > uQ && ++Q < mQ);
|
|
2681
2692
|
return e;
|
|
2682
2693
|
}
|
|
2683
2694
|
function Eg(A, g, B, M) {
|
|
@@ -2697,12 +2708,12 @@ function ZQ(A) {
|
|
|
2697
2708
|
const VQ = /^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu, GM = (A, g) => (B) => !!(typeof B == "string" && VQ.test(B) && B.startsWith(A) || g && !ZQ(B) && Object.prototype.hasOwnProperty.call(B, g)), Te = (A, g, B) => (M) => {
|
|
2698
2709
|
if (typeof M != "string")
|
|
2699
2710
|
return M;
|
|
2700
|
-
const [D, t, e,
|
|
2711
|
+
const [D, t, e, Q] = M.match(lM);
|
|
2701
2712
|
return {
|
|
2702
2713
|
[A]: parseFloat(D),
|
|
2703
2714
|
[g]: parseFloat(t),
|
|
2704
2715
|
[B]: parseFloat(e),
|
|
2705
|
-
alpha:
|
|
2716
|
+
alpha: Q !== void 0 ? parseFloat(Q) : 1
|
|
2706
2717
|
};
|
|
2707
2718
|
}, fQ = (A) => aA(0, 255, A), xg = {
|
|
2708
2719
|
...xA,
|
|
@@ -2746,8 +2757,8 @@ function Ig(A) {
|
|
|
2746
2757
|
var: []
|
|
2747
2758
|
}, D = [];
|
|
2748
2759
|
let t = 0;
|
|
2749
|
-
const
|
|
2750
|
-
return { values: B, split:
|
|
2760
|
+
const Q = g.replace(RQ, (w) => (S.test(w) ? (M.color.push(t), D.push(Xe), B.push(S.parse(w))) : w.startsWith(pQ) ? (M.var.push(t), D.push(KQ), B.push(w)) : (M.number.push(t), D.push(Se), B.push(parseFloat(w))), ++t, bM)).split(bM);
|
|
2761
|
+
return { values: B, split: Q, indexes: M, types: D };
|
|
2751
2762
|
}
|
|
2752
2763
|
function Ne(A) {
|
|
2753
2764
|
return Ig(A).values;
|
|
@@ -2758,8 +2769,8 @@ function xe(A) {
|
|
|
2758
2769
|
let t = "";
|
|
2759
2770
|
for (let e = 0; e < M; e++)
|
|
2760
2771
|
if (t += g[e], D[e] !== void 0) {
|
|
2761
|
-
const
|
|
2762
|
-
|
|
2772
|
+
const Q = B[e];
|
|
2773
|
+
Q === Se ? t += eg(D[e]) : Q === Xe ? t += S.transform(D[e]) : t += D[e];
|
|
2763
2774
|
}
|
|
2764
2775
|
return t;
|
|
2765
2776
|
};
|
|
@@ -2868,8 +2879,8 @@ function $e() {
|
|
|
2868
2879
|
M.render();
|
|
2869
2880
|
const D = B.get(M);
|
|
2870
2881
|
D && D.forEach(([t, e]) => {
|
|
2871
|
-
var
|
|
2872
|
-
(
|
|
2882
|
+
var Q;
|
|
2883
|
+
(Q = M.getValue(t)) === null || Q === void 0 || Q.set(e);
|
|
2873
2884
|
});
|
|
2874
2885
|
}), A.forEach((M) => M.measureEndState()), A.forEach((M) => {
|
|
2875
2886
|
M.suspendedScrollY !== void 0 && window.scrollTo(0, M.suspendedScrollY);
|
|
@@ -2890,21 +2901,21 @@ class cM {
|
|
|
2890
2901
|
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;
|
|
2891
2902
|
}
|
|
2892
2903
|
scheduleResolve() {
|
|
2893
|
-
this.isScheduled = !0, this.isAsync ? (kA.add(this), oB || (oB = !0,
|
|
2904
|
+
this.isScheduled = !0, this.isAsync ? (kA.add(this), oB || (oB = !0, J.read(_e), J.resolveKeyframes($e))) : (this.readKeyframes(), this.complete());
|
|
2894
2905
|
}
|
|
2895
2906
|
readKeyframes() {
|
|
2896
2907
|
const { unresolvedKeyframes: g, name: B, element: M, motionValue: D } = this;
|
|
2897
2908
|
for (let t = 0; t < g.length; t++)
|
|
2898
2909
|
if (g[t] === null)
|
|
2899
2910
|
if (t === 0) {
|
|
2900
|
-
const e = D == null ? void 0 : D.get(),
|
|
2911
|
+
const e = D == null ? void 0 : D.get(), Q = g[g.length - 1];
|
|
2901
2912
|
if (e !== void 0)
|
|
2902
2913
|
g[0] = e;
|
|
2903
2914
|
else if (M && B) {
|
|
2904
|
-
const
|
|
2905
|
-
|
|
2915
|
+
const w = M.readValue(B, Q);
|
|
2916
|
+
w != null && (g[0] = w);
|
|
2906
2917
|
}
|
|
2907
|
-
g[0] === void 0 && (g[0] =
|
|
2918
|
+
g[0] === void 0 && (g[0] = Q), D && e === void 0 && D.set(g[0]);
|
|
2908
2919
|
} else
|
|
2909
2920
|
g[t] = g[t - 1];
|
|
2910
2921
|
}
|
|
@@ -2963,21 +2974,21 @@ class Dt extends cM {
|
|
|
2963
2974
|
if (!B || !B.current)
|
|
2964
2975
|
return;
|
|
2965
2976
|
super.readKeyframes();
|
|
2966
|
-
for (let
|
|
2967
|
-
let C = g[
|
|
2977
|
+
for (let w = 0; w < g.length; w++) {
|
|
2978
|
+
let C = g[w];
|
|
2968
2979
|
if (typeof C == "string" && (C = C.trim(), AM(C))) {
|
|
2969
2980
|
const s = gt(C, B.current);
|
|
2970
|
-
s !== void 0 && (g[
|
|
2981
|
+
s !== void 0 && (g[w] = s), w === g.length - 1 && (this.finalKeyframe = C);
|
|
2971
2982
|
}
|
|
2972
2983
|
}
|
|
2973
2984
|
if (this.resolveNoneKeyframes(), !Re.has(M) || g.length !== 2)
|
|
2974
2985
|
return;
|
|
2975
|
-
const [D, t] = g, e = TM(D),
|
|
2976
|
-
if (e !==
|
|
2977
|
-
if (OM(e) && OM(
|
|
2978
|
-
for (let
|
|
2979
|
-
const C = g[
|
|
2980
|
-
typeof C == "string" && (g[
|
|
2986
|
+
const [D, t] = g, e = TM(D), Q = TM(t);
|
|
2987
|
+
if (e !== Q)
|
|
2988
|
+
if (OM(e) && OM(Q))
|
|
2989
|
+
for (let w = 0; w < g.length; w++) {
|
|
2990
|
+
const C = g[w];
|
|
2991
|
+
typeof C == "string" && (g[w] = parseFloat(C));
|
|
2981
2992
|
}
|
|
2982
2993
|
else
|
|
2983
2994
|
this.needsMeasurement = !0;
|
|
@@ -3003,9 +3014,9 @@ class Dt extends cM {
|
|
|
3003
3014
|
return;
|
|
3004
3015
|
const t = B.getValue(M);
|
|
3005
3016
|
t && t.jump(this.measuredOrigin, !1);
|
|
3006
|
-
const e = D.length - 1,
|
|
3007
|
-
D[e] = TA[M](B.measureViewportBox(), window.getComputedStyle(B.current)),
|
|
3008
|
-
B.getValue(
|
|
3017
|
+
const e = D.length - 1, Q = D[e];
|
|
3018
|
+
D[e] = TA[M](B.measureViewportBox(), window.getComputedStyle(B.current)), Q !== null && this.finalKeyframe === void 0 && (this.finalKeyframe = Q), !((g = this.removedTransforms) === null || g === void 0) && g.length && this.removedTransforms.forEach(([w, C]) => {
|
|
3019
|
+
B.getValue(w).set(C);
|
|
3009
3020
|
}), this.resolveNoneKeyframes();
|
|
3010
3021
|
}
|
|
3011
3022
|
}
|
|
@@ -3026,8 +3037,8 @@ function $Q(A, g, B, M) {
|
|
|
3026
3037
|
return !1;
|
|
3027
3038
|
if (g === "display" || g === "visibility")
|
|
3028
3039
|
return !0;
|
|
3029
|
-
const t = A[A.length - 1], e = SM(D, g),
|
|
3030
|
-
return XA(e ===
|
|
3040
|
+
const t = A[A.length - 1], e = SM(D, g), Q = SM(t, g);
|
|
3041
|
+
return XA(e === Q, `You are trying to animate ${g} from "${D}" to "${t}". ${D} is not an animatable value - to enable this animation set ${D} to a value animatable to ${t} via the \`style\` property.`), !e || !Q ? !1 : WQ(A) || (B === "spring" || QM(B)) && M;
|
|
3031
3042
|
}
|
|
3032
3043
|
const _Q = (A) => A !== null;
|
|
3033
3044
|
function Hg(A, { repeat: g, repeatType: B = "loop" }, M) {
|
|
@@ -3036,7 +3047,7 @@ function Hg(A, { repeat: g, repeatType: B = "loop" }, M) {
|
|
|
3036
3047
|
}
|
|
3037
3048
|
const AC = 40;
|
|
3038
3049
|
class et {
|
|
3039
|
-
constructor({ autoplay: g = !0, delay: B = 0, type: M = "keyframes", repeat: D = 0, repeatDelay: t = 0, repeatType: e = "loop", ...
|
|
3050
|
+
constructor({ autoplay: g = !0, delay: B = 0, type: M = "keyframes", repeat: D = 0, repeatDelay: t = 0, repeatType: e = "loop", ...Q }) {
|
|
3040
3051
|
this.isStopped = !1, this.hasAttemptedResolve = !1, this.createdAt = IA.now(), this.options = {
|
|
3041
3052
|
autoplay: g,
|
|
3042
3053
|
delay: B,
|
|
@@ -3044,7 +3055,7 @@ class et {
|
|
|
3044
3055
|
repeat: D,
|
|
3045
3056
|
repeatDelay: t,
|
|
3046
3057
|
repeatType: e,
|
|
3047
|
-
...
|
|
3058
|
+
...Q
|
|
3048
3059
|
}, this.updateFinishedPromise();
|
|
3049
3060
|
}
|
|
3050
3061
|
/**
|
|
@@ -3075,12 +3086,12 @@ class et {
|
|
|
3075
3086
|
*/
|
|
3076
3087
|
onKeyframesResolved(g, B) {
|
|
3077
3088
|
this.resolvedAt = IA.now(), this.hasAttemptedResolve = !0;
|
|
3078
|
-
const { name: M, type: D, velocity: t, delay: e, onComplete:
|
|
3089
|
+
const { name: M, type: D, velocity: t, delay: e, onComplete: Q, onUpdate: w, isGenerator: C } = this.options;
|
|
3079
3090
|
if (!C && !$Q(g, M, D, t))
|
|
3080
3091
|
if (e)
|
|
3081
3092
|
this.options.duration = 0;
|
|
3082
3093
|
else {
|
|
3083
|
-
|
|
3094
|
+
w && w(Hg(g, this.options, B)), Q && Q(), this.resolveFinishedPromise();
|
|
3084
3095
|
return;
|
|
3085
3096
|
}
|
|
3086
3097
|
const s = this.initPlayback(g, B);
|
|
@@ -3109,7 +3120,7 @@ class et {
|
|
|
3109
3120
|
});
|
|
3110
3121
|
}
|
|
3111
3122
|
}
|
|
3112
|
-
const
|
|
3123
|
+
const P = (A, g, B) => A + (g - A) * B;
|
|
3113
3124
|
function Wg(A, g, B) {
|
|
3114
3125
|
return B < 0 && (B += 1), B > 1 && (B -= 1), B < 1 / 6 ? A + (g - A) * 6 * B : B < 1 / 2 ? g : B < 2 / 3 ? A + (g - A) * (2 / 3 - B) * 6 : A;
|
|
3115
3126
|
}
|
|
@@ -3119,8 +3130,8 @@ function gC({ hue: A, saturation: g, lightness: B, alpha: M }) {
|
|
|
3119
3130
|
if (!g)
|
|
3120
3131
|
D = t = e = B;
|
|
3121
3132
|
else {
|
|
3122
|
-
const
|
|
3123
|
-
D = Wg(
|
|
3133
|
+
const Q = B < 0.5 ? B * (1 + g) : B + g - B * g, w = 2 * B - Q;
|
|
3134
|
+
D = Wg(w, Q, A + 1 / 3), t = Wg(w, Q, A), e = Wg(w, Q, A - 1 / 3);
|
|
3124
3135
|
}
|
|
3125
3136
|
return {
|
|
3126
3137
|
red: Math.round(D * 255),
|
|
@@ -3148,13 +3159,13 @@ const NM = (A, g) => {
|
|
|
3148
3159
|
if (!B || !M)
|
|
3149
3160
|
return pg(A, g);
|
|
3150
3161
|
const D = { ...B };
|
|
3151
|
-
return (t) => (D.red = $g(B.red, M.red, t), D.green = $g(B.green, M.green, t), D.blue = $g(B.blue, M.blue, t), D.alpha =
|
|
3162
|
+
return (t) => (D.red = $g(B.red, M.red, t), D.green = $g(B.green, M.green, t), D.blue = $g(B.blue, M.blue, t), D.alpha = P(B.alpha, M.alpha, t), qA.transform(D));
|
|
3152
3163
|
}, DC = (A, g) => (B) => g(A(B)), lg = (...A) => A.reduce(DC), nB = /* @__PURE__ */ new Set(["none", "hidden"]);
|
|
3153
3164
|
function eC(A, g) {
|
|
3154
3165
|
return nB.has(A) ? (B) => B <= 0 ? A : g : (B) => B >= 1 ? g : A;
|
|
3155
3166
|
}
|
|
3156
3167
|
function tC(A, g) {
|
|
3157
|
-
return (B) =>
|
|
3168
|
+
return (B) => P(A, g, B);
|
|
3158
3169
|
}
|
|
3159
3170
|
function YM(A) {
|
|
3160
3171
|
return typeof A == "number" ? tC : typeof A == "string" ? AM(A) ? pg : S.test(A) ? NM : CC : Array.isArray(A) ? tt : typeof A == "object" ? S.test(A) ? NM : wC : pg;
|
|
@@ -3181,8 +3192,8 @@ function QC(A, g) {
|
|
|
3181
3192
|
var B;
|
|
3182
3193
|
const M = [], D = { color: 0, var: 0, number: 0 };
|
|
3183
3194
|
for (let t = 0; t < g.values.length; t++) {
|
|
3184
|
-
const e = g.types[t],
|
|
3185
|
-
M[t] =
|
|
3195
|
+
const e = g.types[t], Q = A.indexes[e][D[e]], w = (B = A.values[Q]) !== null && B !== void 0 ? B : 0;
|
|
3196
|
+
M[t] = w, D[e]++;
|
|
3186
3197
|
}
|
|
3187
3198
|
return M;
|
|
3188
3199
|
}
|
|
@@ -3191,14 +3202,14 @@ const CC = (A, g) => {
|
|
|
3191
3202
|
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 ? nB.has(A) && !D.values.length || nB.has(g) && !M.values.length ? eC(A, g) : lg(tt(QC(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.`), pg(A, g));
|
|
3192
3203
|
};
|
|
3193
3204
|
function wt(A, g, B) {
|
|
3194
|
-
return typeof A == "number" && typeof g == "number" && typeof B == "number" ?
|
|
3205
|
+
return typeof A == "number" && typeof g == "number" && typeof B == "number" ? P(A, g, B) : YM(A)(A, g);
|
|
3195
3206
|
}
|
|
3196
3207
|
const iC = 5;
|
|
3197
3208
|
function Qt(A, g, B) {
|
|
3198
3209
|
const M = Math.max(g - iC, 0);
|
|
3199
3210
|
return he(B - A(M), g - M);
|
|
3200
3211
|
}
|
|
3201
|
-
const
|
|
3212
|
+
const v = {
|
|
3202
3213
|
// Default spring physics
|
|
3203
3214
|
stiffness: 100,
|
|
3204
3215
|
damping: 10,
|
|
@@ -3227,11 +3238,11 @@ const z = {
|
|
|
3227
3238
|
minDamping: 0.05,
|
|
3228
3239
|
maxDamping: 1
|
|
3229
3240
|
}, xM = 1e-3;
|
|
3230
|
-
function sC({ duration: A =
|
|
3241
|
+
function sC({ duration: A = v.duration, bounce: g = v.bounce, velocity: B = v.velocity, mass: M = v.mass }) {
|
|
3231
3242
|
let D, t;
|
|
3232
|
-
XA(A <= /* @__PURE__ */ sA(
|
|
3243
|
+
XA(A <= /* @__PURE__ */ sA(v.maxDuration), "Spring duration must be 10 seconds or less");
|
|
3233
3244
|
let e = 1 - g;
|
|
3234
|
-
e = aA(
|
|
3245
|
+
e = aA(v.minDamping, v.maxDamping, e), A = aA(v.minDuration, v.maxDuration, /* @__PURE__ */ GA(A)), e < 1 ? (D = (C) => {
|
|
3235
3246
|
const s = C * e, o = s * A, I = s - B, n = rB(C, e), r = Math.exp(-o);
|
|
3236
3247
|
return xM - I / n * r;
|
|
3237
3248
|
}, t = (C) => {
|
|
@@ -3244,15 +3255,15 @@ function sC({ duration: A = z.duration, bounce: g = z.bounce, velocity: B = z.ve
|
|
|
3244
3255
|
const s = Math.exp(-C * A), o = (B - C) * (A * A);
|
|
3245
3256
|
return s * o;
|
|
3246
3257
|
});
|
|
3247
|
-
const
|
|
3248
|
-
if (A = /* @__PURE__ */ sA(A), isNaN(
|
|
3258
|
+
const Q = 5 / A, w = IC(D, t, Q);
|
|
3259
|
+
if (A = /* @__PURE__ */ sA(A), isNaN(w))
|
|
3249
3260
|
return {
|
|
3250
|
-
stiffness:
|
|
3251
|
-
damping:
|
|
3261
|
+
stiffness: v.stiffness,
|
|
3262
|
+
damping: v.damping,
|
|
3252
3263
|
duration: A
|
|
3253
3264
|
};
|
|
3254
3265
|
{
|
|
3255
|
-
const C = Math.pow(
|
|
3266
|
+
const C = Math.pow(w, 2) * M;
|
|
3256
3267
|
return {
|
|
3257
3268
|
stiffness: C,
|
|
3258
3269
|
damping: e * 2 * Math.sqrt(M * C),
|
|
@@ -3276,10 +3287,10 @@ function WM(A, g) {
|
|
|
3276
3287
|
}
|
|
3277
3288
|
function EC(A) {
|
|
3278
3289
|
let g = {
|
|
3279
|
-
velocity:
|
|
3280
|
-
stiffness:
|
|
3281
|
-
damping:
|
|
3282
|
-
mass:
|
|
3290
|
+
velocity: v.velocity,
|
|
3291
|
+
stiffness: v.stiffness,
|
|
3292
|
+
damping: v.damping,
|
|
3293
|
+
mass: v.mass,
|
|
3283
3294
|
isResolvedFromDuration: !1,
|
|
3284
3295
|
...A
|
|
3285
3296
|
};
|
|
@@ -3288,7 +3299,7 @@ function EC(A) {
|
|
|
3288
3299
|
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);
|
|
3289
3300
|
g = {
|
|
3290
3301
|
...g,
|
|
3291
|
-
mass:
|
|
3302
|
+
mass: v.mass,
|
|
3292
3303
|
stiffness: D,
|
|
3293
3304
|
damping: t
|
|
3294
3305
|
};
|
|
@@ -3297,77 +3308,77 @@ function EC(A) {
|
|
|
3297
3308
|
g = {
|
|
3298
3309
|
...g,
|
|
3299
3310
|
...B,
|
|
3300
|
-
mass:
|
|
3311
|
+
mass: v.mass
|
|
3301
3312
|
}, g.isResolvedFromDuration = !0;
|
|
3302
3313
|
}
|
|
3303
3314
|
return g;
|
|
3304
3315
|
}
|
|
3305
|
-
function Ct(A =
|
|
3316
|
+
function Ct(A = v.visualDuration, g = v.bounce) {
|
|
3306
3317
|
const B = typeof A != "object" ? {
|
|
3307
3318
|
visualDuration: A,
|
|
3308
3319
|
keyframes: [0, 1],
|
|
3309
3320
|
bounce: g
|
|
3310
3321
|
} : A;
|
|
3311
3322
|
let { restSpeed: M, restDelta: D } = B;
|
|
3312
|
-
const t = B.keyframes[0], e = B.keyframes[B.keyframes.length - 1],
|
|
3323
|
+
const t = B.keyframes[0], e = B.keyframes[B.keyframes.length - 1], Q = { done: !1, value: t }, { stiffness: w, damping: C, mass: s, duration: o, velocity: I, isResolvedFromDuration: n } = EC({
|
|
3313
3324
|
...B,
|
|
3314
3325
|
velocity: -/* @__PURE__ */ GA(B.velocity || 0)
|
|
3315
|
-
}), r = I || 0, E = C / (2 * Math.sqrt(
|
|
3316
|
-
M || (M =
|
|
3317
|
-
let
|
|
3326
|
+
}), r = I || 0, E = C / (2 * Math.sqrt(w * s)), l = e - t, G = /* @__PURE__ */ GA(Math.sqrt(w / s)), a = Math.abs(l) < 5;
|
|
3327
|
+
M || (M = a ? v.restSpeed.granular : v.restSpeed.default), D || (D = a ? v.restDelta.granular : v.restDelta.default);
|
|
3328
|
+
let U;
|
|
3318
3329
|
if (E < 1) {
|
|
3319
|
-
const
|
|
3320
|
-
|
|
3321
|
-
const
|
|
3322
|
-
return e -
|
|
3330
|
+
const c = rB(G, E);
|
|
3331
|
+
U = (V) => {
|
|
3332
|
+
const Z = Math.exp(-E * G * V);
|
|
3333
|
+
return e - Z * ((r + E * G * l) / c * Math.sin(c * V) + l * Math.cos(c * V));
|
|
3323
3334
|
};
|
|
3324
3335
|
} else if (E === 1)
|
|
3325
|
-
|
|
3336
|
+
U = (c) => e - Math.exp(-G * c) * (l + (r + G * l) * c);
|
|
3326
3337
|
else {
|
|
3327
|
-
const
|
|
3328
|
-
|
|
3329
|
-
const
|
|
3330
|
-
return e -
|
|
3338
|
+
const c = G * Math.sqrt(E * E - 1);
|
|
3339
|
+
U = (V) => {
|
|
3340
|
+
const Z = Math.exp(-E * G * V), u = Math.min(c * V, 300);
|
|
3341
|
+
return e - Z * ((r + E * G * l) * Math.sinh(u) + c * l * Math.cosh(u)) / c;
|
|
3331
3342
|
};
|
|
3332
3343
|
}
|
|
3333
|
-
const
|
|
3344
|
+
const q = {
|
|
3334
3345
|
calculatedDuration: n && o || null,
|
|
3335
|
-
next: (
|
|
3336
|
-
const V =
|
|
3346
|
+
next: (c) => {
|
|
3347
|
+
const V = U(c);
|
|
3337
3348
|
if (n)
|
|
3338
|
-
|
|
3349
|
+
Q.done = c >= o;
|
|
3339
3350
|
else {
|
|
3340
|
-
let
|
|
3341
|
-
E < 1 && (
|
|
3342
|
-
const
|
|
3343
|
-
|
|
3351
|
+
let Z = 0;
|
|
3352
|
+
E < 1 && (Z = c === 0 ? /* @__PURE__ */ sA(r) : Qt(U, c, V));
|
|
3353
|
+
const u = Math.abs(Z) <= M, Y = Math.abs(e - V) <= D;
|
|
3354
|
+
Q.done = u && Y;
|
|
3344
3355
|
}
|
|
3345
|
-
return
|
|
3356
|
+
return Q.value = Q.done ? e : V, Q;
|
|
3346
3357
|
},
|
|
3347
3358
|
toString: () => {
|
|
3348
|
-
const
|
|
3349
|
-
return
|
|
3359
|
+
const c = Math.min(Ze(q), wB), V = Ve((Z) => q.next(c * Z).value, c, 30);
|
|
3360
|
+
return c + "ms " + V;
|
|
3350
3361
|
}
|
|
3351
3362
|
};
|
|
3352
|
-
return
|
|
3363
|
+
return q;
|
|
3353
3364
|
}
|
|
3354
|
-
function $M({ keyframes: A, velocity: g = 0, power: B = 0.8, timeConstant: M = 325, bounceDamping: D = 10, bounceStiffness: t = 500, modifyTarget: e, min:
|
|
3365
|
+
function $M({ keyframes: A, velocity: g = 0, power: B = 0.8, timeConstant: M = 325, bounceDamping: D = 10, bounceStiffness: t = 500, modifyTarget: e, min: Q, max: w, restDelta: C = 0.5, restSpeed: s }) {
|
|
3355
3366
|
const o = A[0], I = {
|
|
3356
3367
|
done: !1,
|
|
3357
3368
|
value: o
|
|
3358
|
-
}, n = (
|
|
3369
|
+
}, n = (u) => Q !== void 0 && u < Q || w !== void 0 && u > w, r = (u) => Q === void 0 ? w : w === void 0 || Math.abs(Q - u) < Math.abs(w - u) ? Q : w;
|
|
3359
3370
|
let E = B * g;
|
|
3360
|
-
const
|
|
3361
|
-
|
|
3362
|
-
const
|
|
3363
|
-
const Y =
|
|
3364
|
-
I.done = Math.abs(Y) <= C, I.value = I.done ?
|
|
3371
|
+
const l = o + E, G = e === void 0 ? l : e(l);
|
|
3372
|
+
G !== l && (E = G - o);
|
|
3373
|
+
const a = (u) => -E * Math.exp(-u / M), U = (u) => G + a(u), q = (u) => {
|
|
3374
|
+
const Y = a(u), f = U(u);
|
|
3375
|
+
I.done = Math.abs(Y) <= C, I.value = I.done ? G : f;
|
|
3365
3376
|
};
|
|
3366
|
-
let
|
|
3367
|
-
const
|
|
3368
|
-
n(I.value) && (
|
|
3377
|
+
let c, V;
|
|
3378
|
+
const Z = (u) => {
|
|
3379
|
+
n(I.value) && (c = u, V = Ct({
|
|
3369
3380
|
keyframes: [I.value, r(I.value)],
|
|
3370
|
-
velocity: Qt(
|
|
3381
|
+
velocity: Qt(U, u, I.value),
|
|
3371
3382
|
// TODO: This should be passing * 1000
|
|
3372
3383
|
damping: D,
|
|
3373
3384
|
stiffness: t,
|
|
@@ -3375,11 +3386,11 @@ function $M({ keyframes: A, velocity: g = 0, power: B = 0.8, timeConstant: M = 3
|
|
|
3375
3386
|
restSpeed: s
|
|
3376
3387
|
}));
|
|
3377
3388
|
};
|
|
3378
|
-
return
|
|
3389
|
+
return Z(0), {
|
|
3379
3390
|
calculatedDuration: null,
|
|
3380
|
-
next: (
|
|
3391
|
+
next: (u) => {
|
|
3381
3392
|
let Y = !1;
|
|
3382
|
-
return !V &&
|
|
3393
|
+
return !V && c === void 0 && (Y = !0, q(u), Z(u)), c !== void 0 && u >= c ? V.next(u - c) : (!Y && q(u), I);
|
|
3383
3394
|
}
|
|
3384
3395
|
};
|
|
3385
3396
|
}
|
|
@@ -3407,12 +3418,12 @@ const lC = /* @__PURE__ */ Eg(0.42, 0, 1, 1), GC = /* @__PURE__ */ Eg(0, 0, 0.58
|
|
|
3407
3418
|
function cC(A, g, B) {
|
|
3408
3419
|
const M = [], D = B || wt, t = A.length - 1;
|
|
3409
3420
|
for (let e = 0; e < t; e++) {
|
|
3410
|
-
let
|
|
3421
|
+
let Q = D(A[e], A[e + 1]);
|
|
3411
3422
|
if (g) {
|
|
3412
|
-
const
|
|
3413
|
-
|
|
3423
|
+
const w = Array.isArray(g) ? g[e] || gA : g;
|
|
3424
|
+
Q = lg(w, Q);
|
|
3414
3425
|
}
|
|
3415
|
-
M.push(
|
|
3426
|
+
M.push(Q);
|
|
3416
3427
|
}
|
|
3417
3428
|
return M;
|
|
3418
3429
|
}
|
|
@@ -3424,15 +3435,15 @@ function YC(A, g, { clamp: B = !0, ease: M, mixer: D } = {}) {
|
|
|
3424
3435
|
return () => g[1];
|
|
3425
3436
|
const e = A[0] === A[1];
|
|
3426
3437
|
A[0] > A[t - 1] && (A = [...A].reverse(), g = [...g].reverse());
|
|
3427
|
-
const
|
|
3438
|
+
const Q = cC(g, M, D), w = Q.length, C = (s) => {
|
|
3428
3439
|
if (e && s < A[0])
|
|
3429
3440
|
return g[0];
|
|
3430
3441
|
let o = 0;
|
|
3431
|
-
if (
|
|
3442
|
+
if (w > 1)
|
|
3432
3443
|
for (; o < A.length - 2 && !(s < A[o + 1]); o++)
|
|
3433
3444
|
;
|
|
3434
3445
|
const I = /* @__PURE__ */ jA(A[o], A[o + 1], s);
|
|
3435
|
-
return
|
|
3446
|
+
return Q[o](I);
|
|
3436
3447
|
};
|
|
3437
3448
|
return B ? (s) => C(aA(A[0], A[t - 1], s)) : C;
|
|
3438
3449
|
}
|
|
@@ -3440,7 +3451,7 @@ function uC(A, g) {
|
|
|
3440
3451
|
const B = A[A.length - 1];
|
|
3441
3452
|
for (let M = 1; M <= g; M++) {
|
|
3442
3453
|
const D = /* @__PURE__ */ jA(0, g, M);
|
|
3443
|
-
A.push(
|
|
3454
|
+
A.push(P(B, 1, D));
|
|
3444
3455
|
}
|
|
3445
3456
|
}
|
|
3446
3457
|
function mC(A) {
|
|
@@ -3462,18 +3473,18 @@ function Rg({ duration: A = 300, keyframes: g, times: B, ease: M = "easeInOut" }
|
|
|
3462
3473
|
// TODO Maybe we should warn here if there's a length mismatch
|
|
3463
3474
|
B && B.length === g.length ? B : mC(g),
|
|
3464
3475
|
A
|
|
3465
|
-
),
|
|
3476
|
+
), Q = YC(e, g, {
|
|
3466
3477
|
ease: Array.isArray(D) ? D : UC(g, D)
|
|
3467
3478
|
});
|
|
3468
3479
|
return {
|
|
3469
3480
|
calculatedDuration: A,
|
|
3470
|
-
next: (
|
|
3481
|
+
next: (w) => (t.value = Q(w), t.done = w >= A, t)
|
|
3471
3482
|
};
|
|
3472
3483
|
}
|
|
3473
3484
|
const ZC = (A) => {
|
|
3474
3485
|
const g = ({ timestamp: B }) => A(B);
|
|
3475
3486
|
return {
|
|
3476
|
-
start: () =>
|
|
3487
|
+
start: () => J.update(g, !0),
|
|
3477
3488
|
stop: () => uA(g),
|
|
3478
3489
|
/**
|
|
3479
3490
|
* If we're processing this frame we can use the
|
|
@@ -3494,21 +3505,21 @@ class uM extends et {
|
|
|
3494
3505
|
if (this.resolver.cancel(), this.isStopped = !0, this.state === "idle")
|
|
3495
3506
|
return;
|
|
3496
3507
|
this.teardown();
|
|
3497
|
-
const { onStop:
|
|
3498
|
-
|
|
3508
|
+
const { onStop: w } = this.options;
|
|
3509
|
+
w && w();
|
|
3499
3510
|
};
|
|
3500
|
-
const { name: B, motionValue: M, element: D, keyframes: t } = this.options, e = (D == null ? void 0 : D.KeyframeResolver) || cM,
|
|
3501
|
-
this.resolver = new e(t,
|
|
3511
|
+
const { name: B, motionValue: M, element: D, keyframes: t } = this.options, e = (D == null ? void 0 : D.KeyframeResolver) || cM, Q = (w, C) => this.onKeyframesResolved(w, C);
|
|
3512
|
+
this.resolver = new e(t, Q, B, M, D), this.resolver.scheduleResolve();
|
|
3502
3513
|
}
|
|
3503
3514
|
flatten() {
|
|
3504
3515
|
super.flatten(), this._resolved && Object.assign(this._resolved, this.initPlayback(this._resolved.keyframes));
|
|
3505
3516
|
}
|
|
3506
3517
|
initPlayback(g) {
|
|
3507
|
-
const { type: B = "keyframes", repeat: M = 0, repeatDelay: D = 0, repeatType: t, velocity: e = 0 } = this.options,
|
|
3508
|
-
let
|
|
3509
|
-
|
|
3510
|
-
const s =
|
|
3511
|
-
t === "mirror" && (C =
|
|
3518
|
+
const { type: B = "keyframes", repeat: M = 0, repeatDelay: D = 0, repeatType: t, velocity: e = 0 } = this.options, Q = QM(B) ? B : VC[B] || Rg;
|
|
3519
|
+
let w, C;
|
|
3520
|
+
Q !== Rg && typeof g[0] != "number" && (process.env.NODE_ENV !== "production" && nA(g.length === 2, `Only two keyframes currently supported with spring and inertia animations. Trying to animate ${g}`), w = lg(fC, wt(g[0], g[1])), g = [0, 100]);
|
|
3521
|
+
const s = Q({ ...this.options, keyframes: g });
|
|
3522
|
+
t === "mirror" && (C = Q({
|
|
3512
3523
|
...this.options,
|
|
3513
3524
|
keyframes: [...g].reverse(),
|
|
3514
3525
|
velocity: -e
|
|
@@ -3517,7 +3528,7 @@ class uM extends et {
|
|
|
3517
3528
|
return {
|
|
3518
3529
|
generator: s,
|
|
3519
3530
|
mirroredGenerator: C,
|
|
3520
|
-
mapPercentToKeyframes:
|
|
3531
|
+
mapPercentToKeyframes: w,
|
|
3521
3532
|
calculatedDuration: o,
|
|
3522
3533
|
resolvedDuration: I,
|
|
3523
3534
|
totalDuration: n
|
|
@@ -3530,28 +3541,28 @@ class uM extends et {
|
|
|
3530
3541
|
tick(g, B = !1) {
|
|
3531
3542
|
const { resolved: M } = this;
|
|
3532
3543
|
if (!M) {
|
|
3533
|
-
const { keyframes:
|
|
3534
|
-
return { done: !0, value:
|
|
3544
|
+
const { keyframes: u } = this.options;
|
|
3545
|
+
return { done: !0, value: u[u.length - 1] };
|
|
3535
3546
|
}
|
|
3536
|
-
const { finalKeyframe: D, generator: t, mirroredGenerator: e, mapPercentToKeyframes:
|
|
3547
|
+
const { finalKeyframe: D, generator: t, mirroredGenerator: e, mapPercentToKeyframes: Q, keyframes: w, calculatedDuration: C, totalDuration: s, resolvedDuration: o } = M;
|
|
3537
3548
|
if (this.startTime === null)
|
|
3538
3549
|
return t.next(0);
|
|
3539
|
-
const { delay: I, repeat: n, repeatType: r, repeatDelay: E, onUpdate:
|
|
3550
|
+
const { delay: I, repeat: n, repeatType: r, repeatDelay: E, onUpdate: l } = this.options;
|
|
3540
3551
|
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;
|
|
3541
|
-
const
|
|
3542
|
-
this.currentTime = Math.max(
|
|
3543
|
-
let
|
|
3552
|
+
const G = this.currentTime - I * (this.speed >= 0 ? 1 : -1), a = this.speed >= 0 ? G < 0 : G > s;
|
|
3553
|
+
this.currentTime = Math.max(G, 0), this.state === "finished" && this.holdTime === null && (this.currentTime = s);
|
|
3554
|
+
let U = this.currentTime, q = t;
|
|
3544
3555
|
if (n) {
|
|
3545
|
-
const
|
|
3546
|
-
let Y = Math.floor(
|
|
3547
|
-
!
|
|
3556
|
+
const u = Math.min(this.currentTime, s) / o;
|
|
3557
|
+
let Y = Math.floor(u), f = u % 1;
|
|
3558
|
+
!f && u >= 1 && (f = 1), f === 1 && Y--, Y = Math.min(Y, n + 1), !!(Y % 2) && (r === "reverse" ? (f = 1 - f, E && (f -= E / o)) : r === "mirror" && (q = e)), U = aA(0, 1, f) * o;
|
|
3548
3559
|
}
|
|
3549
|
-
const
|
|
3550
|
-
|
|
3551
|
-
let { done: V } =
|
|
3552
|
-
!
|
|
3553
|
-
const
|
|
3554
|
-
return
|
|
3560
|
+
const c = a ? { done: !1, value: w[0] } : q.next(U);
|
|
3561
|
+
Q && (c.value = Q(c.value));
|
|
3562
|
+
let { done: V } = c;
|
|
3563
|
+
!a && C !== null && (V = this.speed >= 0 ? this.currentTime >= s : this.currentTime <= 0);
|
|
3564
|
+
const Z = this.holdTime === null && (this.state === "finished" || this.state === "running" && V);
|
|
3565
|
+
return Z && D !== void 0 && (c.value = Hg(w, this.options, D)), l && l(c.value), Z && this.finish(), c;
|
|
3555
3566
|
}
|
|
3556
3567
|
get duration() {
|
|
3557
3568
|
const { resolved: g } = this;
|
|
@@ -3620,10 +3631,10 @@ const dC = /* @__PURE__ */ new Set([
|
|
|
3620
3631
|
// or until we implement support for linear() easing.
|
|
3621
3632
|
// "background-color"
|
|
3622
3633
|
]);
|
|
3623
|
-
function qC(A, g, B, { delay: M = 0, duration: D = 300, repeat: t = 0, repeatType: e = "loop", ease:
|
|
3634
|
+
function qC(A, g, B, { delay: M = 0, duration: D = 300, repeat: t = 0, repeatType: e = "loop", ease: Q = "easeInOut", times: w } = {}) {
|
|
3624
3635
|
const C = { [g]: B };
|
|
3625
|
-
|
|
3626
|
-
const s = de(
|
|
3636
|
+
w && (C.offset = w);
|
|
3637
|
+
const s = de(Q, D);
|
|
3627
3638
|
return Array.isArray(s) && (C.easing = s), A.animate(C, {
|
|
3628
3639
|
delay: M,
|
|
3629
3640
|
duration: D,
|
|
@@ -3669,20 +3680,20 @@ class gD extends et {
|
|
|
3669
3680
|
constructor(g) {
|
|
3670
3681
|
super(g);
|
|
3671
3682
|
const { name: B, motionValue: M, element: D, keyframes: t } = this.options;
|
|
3672
|
-
this.resolver = new Dt(t, (e,
|
|
3683
|
+
this.resolver = new Dt(t, (e, Q) => this.onKeyframesResolved(e, Q), B, M, D), this.resolver.scheduleResolve();
|
|
3673
3684
|
}
|
|
3674
3685
|
initPlayback(g, B) {
|
|
3675
|
-
let { duration: M = 300, times: D, ease: t, type: e, motionValue:
|
|
3676
|
-
if (!
|
|
3686
|
+
let { duration: M = 300, times: D, ease: t, type: e, motionValue: Q, name: w, startTime: C } = this.options;
|
|
3687
|
+
if (!Q.owner || !Q.owner.current)
|
|
3677
3688
|
return !1;
|
|
3678
3689
|
if (typeof t == "string" && Kg() && hC(t) && (t = st[t]), pC(this.options)) {
|
|
3679
|
-
const { onComplete: o, onUpdate: I, motionValue: n, element: r, ...E } = this.options,
|
|
3680
|
-
g =
|
|
3690
|
+
const { onComplete: o, onUpdate: I, motionValue: n, element: r, ...E } = this.options, l = RC(g, E);
|
|
3691
|
+
g = l.keyframes, g.length === 1 && (g[1] = g[0]), M = l.duration, D = l.times, t = l.ease, e = "keyframes";
|
|
3681
3692
|
}
|
|
3682
|
-
const s = qC(
|
|
3693
|
+
const s = qC(Q.owner.current, w, g, { ...this.options, duration: M, times: D, ease: t });
|
|
3683
3694
|
return s.startTime = C ?? this.calcStartTime(), this.pendingTimeline ? (zM(s, this.pendingTimeline), this.pendingTimeline = void 0) : s.onfinish = () => {
|
|
3684
3695
|
const { onComplete: o } = this.options;
|
|
3685
|
-
|
|
3696
|
+
Q.set(Hg(g, this.options, B)), o && o(), this.cancel(), this.resolveFinishedPromise();
|
|
3686
3697
|
}, {
|
|
3687
3698
|
animation: s,
|
|
3688
3699
|
duration: M,
|
|
@@ -3780,7 +3791,7 @@ class gD extends et {
|
|
|
3780
3791
|
const { resolved: g } = this;
|
|
3781
3792
|
if (!g)
|
|
3782
3793
|
return;
|
|
3783
|
-
const { animation: B, keyframes: M, duration: D, type: t, ease: e, times:
|
|
3794
|
+
const { animation: B, keyframes: M, duration: D, type: t, ease: e, times: Q } = g;
|
|
3784
3795
|
if (B.playState === "idle" || B.playState === "finished")
|
|
3785
3796
|
return;
|
|
3786
3797
|
if (this.time) {
|
|
@@ -3790,13 +3801,13 @@ class gD extends et {
|
|
|
3790
3801
|
duration: D,
|
|
3791
3802
|
type: t,
|
|
3792
3803
|
ease: e,
|
|
3793
|
-
times:
|
|
3804
|
+
times: Q,
|
|
3794
3805
|
isGenerator: !0
|
|
3795
3806
|
}), E = /* @__PURE__ */ sA(this.time);
|
|
3796
3807
|
C.setWithVelocity(r.sample(E - hg).value, r.sample(E).value, hg);
|
|
3797
3808
|
}
|
|
3798
|
-
const { onStop:
|
|
3799
|
-
|
|
3809
|
+
const { onStop: w } = this.options;
|
|
3810
|
+
w && w(), this.cancel();
|
|
3800
3811
|
}
|
|
3801
3812
|
complete() {
|
|
3802
3813
|
const { resolved: g } = this;
|
|
@@ -3807,15 +3818,15 @@ class gD extends et {
|
|
|
3807
3818
|
g && g.animation.cancel();
|
|
3808
3819
|
}
|
|
3809
3820
|
static supports(g) {
|
|
3810
|
-
const { motionValue: B, name: M, repeatDelay: D, repeatType: t, damping: e, type:
|
|
3821
|
+
const { motionValue: B, name: M, repeatDelay: D, repeatType: t, damping: e, type: Q } = g;
|
|
3811
3822
|
if (!B || !B.owner || !(B.owner.current instanceof HTMLElement))
|
|
3812
3823
|
return !1;
|
|
3813
|
-
const { onUpdate:
|
|
3824
|
+
const { onUpdate: w, transformTemplate: C } = B.owner.getProps();
|
|
3814
3825
|
return kC() && M && dC.has(M) && /**
|
|
3815
3826
|
* If we're outputting values to onUpdate then we can't use WAAPI as there's
|
|
3816
3827
|
* no way to read the value from WAAPI every frame.
|
|
3817
3828
|
*/
|
|
3818
|
-
!
|
|
3829
|
+
!w && !C && !D && t !== "mirror" && e !== 0 && Q !== "inertia";
|
|
3819
3830
|
}
|
|
3820
3831
|
}
|
|
3821
3832
|
const JC = {
|
|
@@ -3836,38 +3847,38 @@ const JC = {
|
|
|
3836
3847
|
ease: [0.25, 0.1, 0.35, 1],
|
|
3837
3848
|
duration: 0.3
|
|
3838
3849
|
}, LC = (A, { keyframes: g }) => g.length > 2 ? vC : RA.has(A) ? A.startsWith("scale") ? zC(g[1]) : JC : PC;
|
|
3839
|
-
function FC({ when: A, delay: g, delayChildren: B, staggerChildren: M, staggerDirection: D, repeat: t, repeatType: e, repeatDelay:
|
|
3850
|
+
function FC({ when: A, delay: g, delayChildren: B, staggerChildren: M, staggerDirection: D, repeat: t, repeatType: e, repeatDelay: Q, from: w, elapsed: C, ...s }) {
|
|
3840
3851
|
return !!Object.keys(s).length;
|
|
3841
3852
|
}
|
|
3842
3853
|
const mM = (A, g, B, M = {}, D, t) => (e) => {
|
|
3843
|
-
const
|
|
3854
|
+
const Q = wM(M, A) || {}, w = Q.delay || M.delay || 0;
|
|
3844
3855
|
let { elapsed: C = 0 } = M;
|
|
3845
|
-
C = C - /* @__PURE__ */ sA(
|
|
3856
|
+
C = C - /* @__PURE__ */ sA(w);
|
|
3846
3857
|
let s = {
|
|
3847
3858
|
keyframes: Array.isArray(B) ? B : [null, B],
|
|
3848
3859
|
ease: "easeOut",
|
|
3849
3860
|
velocity: g.getVelocity(),
|
|
3850
|
-
...
|
|
3861
|
+
...Q,
|
|
3851
3862
|
delay: -C,
|
|
3852
3863
|
onUpdate: (I) => {
|
|
3853
|
-
g.set(I),
|
|
3864
|
+
g.set(I), Q.onUpdate && Q.onUpdate(I);
|
|
3854
3865
|
},
|
|
3855
3866
|
onComplete: () => {
|
|
3856
|
-
e(),
|
|
3867
|
+
e(), Q.onComplete && Q.onComplete();
|
|
3857
3868
|
},
|
|
3858
3869
|
name: A,
|
|
3859
3870
|
motionValue: g,
|
|
3860
3871
|
element: t ? void 0 : D
|
|
3861
3872
|
};
|
|
3862
|
-
FC(
|
|
3873
|
+
FC(Q) || (s = {
|
|
3863
3874
|
...s,
|
|
3864
3875
|
...LC(A, s)
|
|
3865
3876
|
}), s.duration && (s.duration = /* @__PURE__ */ sA(s.duration)), s.repeatDelay && (s.repeatDelay = /* @__PURE__ */ sA(s.repeatDelay)), s.from !== void 0 && (s.keyframes[0] = s.from);
|
|
3866
3877
|
let o = !1;
|
|
3867
3878
|
if ((s.type === !1 || s.duration === 0 && !s.repeatDelay) && (s.duration = 0, s.delay === 0 && (o = !0)), o && !t && g.get() !== void 0) {
|
|
3868
|
-
const I = Hg(s.keyframes,
|
|
3879
|
+
const I = Hg(s.keyframes, Q);
|
|
3869
3880
|
if (I !== void 0)
|
|
3870
|
-
return
|
|
3881
|
+
return J.update(() => {
|
|
3871
3882
|
s.onUpdate(I), s.onComplete();
|
|
3872
3883
|
}), new QQ([]);
|
|
3873
3884
|
}
|
|
@@ -3879,11 +3890,11 @@ function bC({ protectedKeys: A, needsAnimating: g }, B) {
|
|
|
3879
3890
|
}
|
|
3880
3891
|
function ot(A, g, { delay: B = 0, transitionOverride: M, type: D } = {}) {
|
|
3881
3892
|
var t;
|
|
3882
|
-
let { transition: e = A.getDefaultTransition(), transitionEnd:
|
|
3893
|
+
let { transition: e = A.getDefaultTransition(), transitionEnd: Q, ...w } = g;
|
|
3883
3894
|
M && (e = M);
|
|
3884
3895
|
const C = [], s = D && A.animationState && A.animationState.getState()[D];
|
|
3885
|
-
for (const o in
|
|
3886
|
-
const I = A.getValue(o, (t = A.latestValues[o]) !== null && t !== void 0 ? t : null), n =
|
|
3896
|
+
for (const o in w) {
|
|
3897
|
+
const I = A.getValue(o, (t = A.latestValues[o]) !== null && t !== void 0 ? t : null), n = w[o];
|
|
3887
3898
|
if (n === void 0 || s && bC(s, o))
|
|
3888
3899
|
continue;
|
|
3889
3900
|
const r = {
|
|
@@ -3892,19 +3903,19 @@ function ot(A, g, { delay: B = 0, transitionOverride: M, type: D } = {}) {
|
|
|
3892
3903
|
};
|
|
3893
3904
|
let E = !1;
|
|
3894
3905
|
if (window.MotionHandoffAnimation) {
|
|
3895
|
-
const
|
|
3896
|
-
if (
|
|
3897
|
-
const
|
|
3898
|
-
|
|
3906
|
+
const G = Je(A);
|
|
3907
|
+
if (G) {
|
|
3908
|
+
const a = window.MotionHandoffAnimation(G, o, J);
|
|
3909
|
+
a !== null && (r.startTime = a, E = !0);
|
|
3899
3910
|
}
|
|
3900
3911
|
}
|
|
3901
3912
|
CB(A, o), I.start(mM(o, I, n, A.shouldReduceMotion && Re.has(o) ? { type: !1 } : r, A, E));
|
|
3902
|
-
const
|
|
3903
|
-
|
|
3913
|
+
const l = I.animation;
|
|
3914
|
+
l && C.push(l);
|
|
3904
3915
|
}
|
|
3905
|
-
return
|
|
3906
|
-
|
|
3907
|
-
|
|
3916
|
+
return Q && Promise.all(C).then(() => {
|
|
3917
|
+
J.update(() => {
|
|
3918
|
+
Q && nM(A, Q);
|
|
3908
3919
|
});
|
|
3909
3920
|
}), C;
|
|
3910
3921
|
}
|
|
@@ -3913,22 +3924,22 @@ function EB(A, g, B = {}) {
|
|
|
3913
3924
|
const D = jg(A, g, B.type === "exit" ? (M = A.presenceContext) === null || M === void 0 ? void 0 : M.custom : void 0);
|
|
3914
3925
|
let { transition: t = A.getDefaultTransition() || {} } = D || {};
|
|
3915
3926
|
B.transitionOverride && (t = B.transitionOverride);
|
|
3916
|
-
const e = D ? () => Promise.all(ot(A, D, B)) : () => Promise.resolve(),
|
|
3927
|
+
const e = D ? () => Promise.all(ot(A, D, B)) : () => Promise.resolve(), Q = A.variantChildren && A.variantChildren.size ? (C = 0) => {
|
|
3917
3928
|
const { delayChildren: s = 0, staggerChildren: o, staggerDirection: I } = t;
|
|
3918
3929
|
return OC(A, g, s + C, o, I, B);
|
|
3919
|
-
} : () => Promise.resolve(), { when:
|
|
3920
|
-
if (
|
|
3921
|
-
const [C, s] =
|
|
3930
|
+
} : () => Promise.resolve(), { when: w } = t;
|
|
3931
|
+
if (w) {
|
|
3932
|
+
const [C, s] = w === "beforeChildren" ? [e, Q] : [Q, e];
|
|
3922
3933
|
return C().then(() => s());
|
|
3923
3934
|
} else
|
|
3924
|
-
return Promise.all([e(),
|
|
3935
|
+
return Promise.all([e(), Q(B.delay)]);
|
|
3925
3936
|
}
|
|
3926
3937
|
function OC(A, g, B = 0, M = 0, D = 1, t) {
|
|
3927
|
-
const e = [],
|
|
3938
|
+
const e = [], Q = (A.variantChildren.size - 1) * M, w = D === 1 ? (C = 0) => C * M : (C = 0) => Q - C * M;
|
|
3928
3939
|
return Array.from(A.variantChildren).sort(jC).forEach((C, s) => {
|
|
3929
3940
|
C.notify("AnimationStart", g), e.push(EB(C, g, {
|
|
3930
3941
|
...t,
|
|
3931
|
-
delay: B +
|
|
3942
|
+
delay: B + w(s)
|
|
3932
3943
|
}).then(() => C.notify("AnimationComplete", g)));
|
|
3933
3944
|
}), Promise.all(e);
|
|
3934
3945
|
}
|
|
@@ -3972,83 +3983,83 @@ function XC(A) {
|
|
|
3972
3983
|
}
|
|
3973
3984
|
function NC(A) {
|
|
3974
3985
|
let g = XC(A), B = BD(), M = !0;
|
|
3975
|
-
const D = (
|
|
3986
|
+
const D = (w) => (C, s) => {
|
|
3976
3987
|
var o;
|
|
3977
|
-
const I = jg(A, s,
|
|
3988
|
+
const I = jg(A, s, w === "exit" ? (o = A.presenceContext) === null || o === void 0 ? void 0 : o.custom : void 0);
|
|
3978
3989
|
if (I) {
|
|
3979
3990
|
const { transition: n, transitionEnd: r, ...E } = I;
|
|
3980
3991
|
C = { ...C, ...E, ...r };
|
|
3981
3992
|
}
|
|
3982
3993
|
return C;
|
|
3983
3994
|
};
|
|
3984
|
-
function t(
|
|
3985
|
-
g =
|
|
3995
|
+
function t(w) {
|
|
3996
|
+
g = w(A);
|
|
3986
3997
|
}
|
|
3987
|
-
function e(
|
|
3998
|
+
function e(w) {
|
|
3988
3999
|
const { props: C } = A, s = nt(A.parent) || {}, o = [], I = /* @__PURE__ */ new Set();
|
|
3989
4000
|
let n = {}, r = 1 / 0;
|
|
3990
|
-
for (let
|
|
3991
|
-
const
|
|
3992
|
-
|
|
3993
|
-
let V =
|
|
3994
|
-
if (V && M && A.manuallyAnimateOnMount && (V = !1),
|
|
3995
|
-
!
|
|
3996
|
-
!
|
|
3997
|
-
bg(
|
|
4001
|
+
for (let l = 0; l < SC; l++) {
|
|
4002
|
+
const G = TC[l], a = B[G], U = C[G] !== void 0 ? C[G] : s[G], q = ig(U), c = G === w ? a.isActive : null;
|
|
4003
|
+
c === !1 && (r = l);
|
|
4004
|
+
let V = U === s[G] && U !== C[G] && q;
|
|
4005
|
+
if (V && M && A.manuallyAnimateOnMount && (V = !1), a.protectedKeys = { ...n }, // If it isn't active and hasn't *just* been set as inactive
|
|
4006
|
+
!a.isActive && c === null || // If we didn't and don't have any defined prop for this animation type
|
|
4007
|
+
!U && !a.prevProp || // Or if the prop doesn't define an animation
|
|
4008
|
+
bg(U) || typeof U == "boolean")
|
|
3998
4009
|
continue;
|
|
3999
|
-
const
|
|
4000
|
-
let
|
|
4001
|
-
|
|
4002
|
-
|
|
4003
|
-
const
|
|
4004
|
-
let
|
|
4005
|
-
|
|
4006
|
-
const { prevResolvedValues: MA = {} } =
|
|
4010
|
+
const Z = xC(a.prevProp, U);
|
|
4011
|
+
let u = Z || // If we're making this variant active, we want to always make it active
|
|
4012
|
+
G === w && a.isActive && !V && q || // If we removed a higher-priority variant (i is in reverse order)
|
|
4013
|
+
l > r && q, Y = !1;
|
|
4014
|
+
const f = Array.isArray(U) ? U : [U];
|
|
4015
|
+
let R = f.reduce(D(G), {});
|
|
4016
|
+
c === !1 && (R = {});
|
|
4017
|
+
const { prevResolvedValues: MA = {} } = a, WA = {
|
|
4007
4018
|
...MA,
|
|
4008
|
-
...
|
|
4019
|
+
...R
|
|
4009
4020
|
}, cA = (b) => {
|
|
4010
|
-
|
|
4021
|
+
u = !0, I.has(b) && (Y = !0, I.delete(b)), a.needsAnimating[b] = !0;
|
|
4011
4022
|
const W = A.getValue(b);
|
|
4012
4023
|
W && (W.liveStyle = !1);
|
|
4013
4024
|
};
|
|
4014
4025
|
for (const b in WA) {
|
|
4015
|
-
const W =
|
|
4026
|
+
const W = R[b], rA = MA[b];
|
|
4016
4027
|
if (n.hasOwnProperty(b))
|
|
4017
4028
|
continue;
|
|
4018
4029
|
let ZA = !1;
|
|
4019
|
-
tB(W) && tB(rA) ? ZA = !Ue(W, rA) : ZA = W !== rA, ZA ? W != null ? cA(b) : I.add(b) : W !== void 0 && I.has(b) ? cA(b) :
|
|
4030
|
+
tB(W) && tB(rA) ? ZA = !Ue(W, rA) : ZA = W !== rA, ZA ? W != null ? cA(b) : I.add(b) : W !== void 0 && I.has(b) ? cA(b) : a.protectedKeys[b] = !0;
|
|
4020
4031
|
}
|
|
4021
|
-
|
|
4032
|
+
a.prevProp = U, a.prevResolvedValues = R, a.isActive && (n = { ...n, ...R }), M && A.blockInitialAnimation && (u = !1), u && (!(V && Z) || Y) && o.push(...f.map((b) => ({
|
|
4022
4033
|
animation: b,
|
|
4023
|
-
options: { type:
|
|
4034
|
+
options: { type: G }
|
|
4024
4035
|
})));
|
|
4025
4036
|
}
|
|
4026
4037
|
if (I.size) {
|
|
4027
|
-
const
|
|
4028
|
-
I.forEach((
|
|
4029
|
-
const
|
|
4030
|
-
|
|
4031
|
-
}), o.push({ animation:
|
|
4038
|
+
const l = {};
|
|
4039
|
+
I.forEach((G) => {
|
|
4040
|
+
const a = A.getBaseTarget(G), U = A.getValue(G);
|
|
4041
|
+
U && (U.liveStyle = !0), l[G] = a ?? null;
|
|
4042
|
+
}), o.push({ animation: l });
|
|
4032
4043
|
}
|
|
4033
4044
|
let E = !!o.length;
|
|
4034
4045
|
return M && (C.initial === !1 || C.initial === C.animate) && !A.manuallyAnimateOnMount && (E = !1), M = !1, E ? g(o) : Promise.resolve();
|
|
4035
4046
|
}
|
|
4036
|
-
function w
|
|
4047
|
+
function Q(w, C) {
|
|
4037
4048
|
var s;
|
|
4038
|
-
if (B[
|
|
4049
|
+
if (B[w].isActive === C)
|
|
4039
4050
|
return Promise.resolve();
|
|
4040
4051
|
(s = A.variantChildren) === null || s === void 0 || s.forEach((I) => {
|
|
4041
4052
|
var n;
|
|
4042
|
-
return (n = I.animationState) === null || n === void 0 ? void 0 : n.setActive(
|
|
4043
|
-
}), B[
|
|
4044
|
-
const o = e(
|
|
4053
|
+
return (n = I.animationState) === null || n === void 0 ? void 0 : n.setActive(w, C);
|
|
4054
|
+
}), B[w].isActive = C;
|
|
4055
|
+
const o = e(w);
|
|
4045
4056
|
for (const I in B)
|
|
4046
4057
|
B[I].protectedKeys = {};
|
|
4047
4058
|
return o;
|
|
4048
4059
|
}
|
|
4049
4060
|
return {
|
|
4050
4061
|
animateChanges: e,
|
|
4051
|
-
setActive:
|
|
4062
|
+
setActive: Q,
|
|
4052
4063
|
setAnimateFunction: t,
|
|
4053
4064
|
getState: () => B,
|
|
4054
4065
|
reset: () => {
|
|
@@ -4172,24 +4183,24 @@ class rt {
|
|
|
4172
4183
|
return;
|
|
4173
4184
|
const { point: r } = o, { timestamp: E } = j;
|
|
4174
4185
|
this.history.push({ ...r, timestamp: E });
|
|
4175
|
-
const { onStart:
|
|
4176
|
-
I || (
|
|
4186
|
+
const { onStart: l, onMove: G } = this.handlers;
|
|
4187
|
+
I || (l && l(this.lastMoveEvent, o), this.startEvent = this.lastMoveEvent), G && G(this.lastMoveEvent, o);
|
|
4177
4188
|
}, this.handlePointerMove = (o, I) => {
|
|
4178
|
-
this.lastMoveEvent = o, this.lastMoveEventInfo = _g(I, this.transformPagePoint),
|
|
4189
|
+
this.lastMoveEvent = o, this.lastMoveEventInfo = _g(I, this.transformPagePoint), J.update(this.updatePoint, !0);
|
|
4179
4190
|
}, this.handlePointerUp = (o, I) => {
|
|
4180
4191
|
this.end();
|
|
4181
4192
|
const { onEnd: n, onSessionEnd: r, resumeAnimation: E } = this.handlers;
|
|
4182
4193
|
if (this.dragSnapToOrigin && E && E(), !(this.lastMoveEvent && this.lastMoveEventInfo))
|
|
4183
4194
|
return;
|
|
4184
|
-
const
|
|
4185
|
-
this.startEvent && n && n(o,
|
|
4195
|
+
const l = AB(o.type === "pointercancel" ? this.lastMoveEventInfo : _g(I, this.transformPagePoint), this.history);
|
|
4196
|
+
this.startEvent && n && n(o, l), r && r(o, l);
|
|
4186
4197
|
}, !iM(g))
|
|
4187
4198
|
return;
|
|
4188
4199
|
this.dragSnapToOrigin = t, this.handlers = B, this.transformPagePoint = M, this.contextWindow = D || window;
|
|
4189
|
-
const e = Gg(g),
|
|
4190
|
-
this.history = [{ ...
|
|
4200
|
+
const e = Gg(g), Q = _g(e, this.transformPagePoint), { point: w } = Q, { timestamp: C } = j;
|
|
4201
|
+
this.history = [{ ...w, timestamp: C }];
|
|
4191
4202
|
const { onSessionStart: s } = B;
|
|
4192
|
-
s && s(g, AB(
|
|
4203
|
+
s && s(g, AB(Q, this.history)), this.removeListeners = lg(tg(this.contextWindow, "pointermove", this.handlePointerMove), tg(this.contextWindow, "pointerup", this.handlePointerUp), tg(this.contextWindow, "pointercancel", this.handlePointerUp));
|
|
4193
4204
|
}
|
|
4194
4205
|
updateHandlers(g) {
|
|
4195
4206
|
this.handlers = g;
|
|
@@ -4244,7 +4255,7 @@ function Ci(A, g, B) {
|
|
|
4244
4255
|
return Math.abs(A - g) <= B;
|
|
4245
4256
|
}
|
|
4246
4257
|
function eD(A, g, B, M = 0.5) {
|
|
4247
|
-
A.origin = M, A.originPoint =
|
|
4258
|
+
A.origin = M, A.originPoint = P(g.min, g.max, A.origin), A.scale = BA(B) / BA(g), A.translate = P(B.min, B.max, A.origin) - A.originPoint, (A.scale >= ei && A.scale <= ti || isNaN(A.scale)) && (A.scale = 1), (A.translate >= wi && A.translate <= Qi || isNaN(A.translate)) && (A.translate = 0);
|
|
4248
4259
|
}
|
|
4249
4260
|
function wg(A, g, B, M) {
|
|
4250
4261
|
eD(A.x, g.x, B.x, M ? M.originX : void 0), eD(A.y, g.y, B.y, M ? M.originY : void 0);
|
|
@@ -4262,7 +4273,7 @@ function Qg(A, g, B) {
|
|
|
4262
4273
|
wD(A.x, g.x, B.x), wD(A.y, g.y, B.y);
|
|
4263
4274
|
}
|
|
4264
4275
|
function si(A, { min: g, max: B }, M) {
|
|
4265
|
-
return g !== void 0 && A < g ? A = M ?
|
|
4276
|
+
return g !== void 0 && A < g ? A = M ? P(g, A, M.min) : Math.max(A, g) : B !== void 0 && A > B && (A = M ? P(B, A, M.max) : Math.min(A, B)), A;
|
|
4266
4277
|
}
|
|
4267
4278
|
function QD(A, g, B) {
|
|
4268
4279
|
return {
|
|
@@ -4381,10 +4392,10 @@ function ai(A, g, B, M = !1) {
|
|
|
4381
4392
|
return;
|
|
4382
4393
|
g.x = g.y = 1;
|
|
4383
4394
|
let t, e;
|
|
4384
|
-
for (let
|
|
4385
|
-
t = B[
|
|
4386
|
-
const { visualElement:
|
|
4387
|
-
|
|
4395
|
+
for (let Q = 0; Q < D; Q++) {
|
|
4396
|
+
t = B[Q], e = t.projectionDelta;
|
|
4397
|
+
const { visualElement: w } = t.options;
|
|
4398
|
+
w && w.props.style && w.props.style.display === "contents" || (M && t.options.layoutScroll && t.scroll && t !== t.root && FA(A, {
|
|
4388
4399
|
x: -t.scroll.offset.x,
|
|
4389
4400
|
y: -t.scroll.offset.y
|
|
4390
4401
|
}), e && (g.x *= e.x.scale, g.y *= e.y.scale, Yt(A, e)), M && fA(t.latestValues) && FA(A, t.latestValues));
|
|
@@ -4395,7 +4406,7 @@ function LA(A, g) {
|
|
|
4395
4406
|
A.min = A.min + g, A.max = A.max + g;
|
|
4396
4407
|
}
|
|
4397
4408
|
function GD(A, g, B, M, D = 0.5) {
|
|
4398
|
-
const t =
|
|
4409
|
+
const t = P(A.min, A.max, D);
|
|
4399
4410
|
aB(A, g, B, t, M);
|
|
4400
4411
|
}
|
|
4401
4412
|
function FA(A, g) {
|
|
@@ -4424,30 +4435,30 @@ class ui {
|
|
|
4424
4435
|
const { drag: I, dragPropagation: n, onDragStart: r } = this.getProps();
|
|
4425
4436
|
if (I && !n && (this.openDragLock && this.openDragLock(), this.openDragLock = EQ(I), !this.openDragLock))
|
|
4426
4437
|
return;
|
|
4427
|
-
this.isDragging = !0, this.currentDirection = null, this.resolveConstraints(), this.visualElement.projection && (this.visualElement.projection.isAnimationBlocked = !0, this.visualElement.projection.target = void 0), eA((
|
|
4428
|
-
let
|
|
4429
|
-
if (oA.test(
|
|
4430
|
-
const { projection:
|
|
4431
|
-
if (
|
|
4432
|
-
const
|
|
4433
|
-
|
|
4438
|
+
this.isDragging = !0, this.currentDirection = null, this.resolveConstraints(), this.visualElement.projection && (this.visualElement.projection.isAnimationBlocked = !0, this.visualElement.projection.target = void 0), eA((l) => {
|
|
4439
|
+
let G = this.getAxisMotionValue(l).get() || 0;
|
|
4440
|
+
if (oA.test(G)) {
|
|
4441
|
+
const { projection: a } = this.visualElement;
|
|
4442
|
+
if (a && a.layout) {
|
|
4443
|
+
const U = a.layout.layoutBox[l];
|
|
4444
|
+
U && (G = BA(U) * (parseFloat(G) / 100));
|
|
4434
4445
|
}
|
|
4435
4446
|
}
|
|
4436
|
-
this.originPoint[
|
|
4437
|
-
}), r &&
|
|
4447
|
+
this.originPoint[l] = G;
|
|
4448
|
+
}), r && J.postRender(() => r(s, o)), CB(this.visualElement, "transform");
|
|
4438
4449
|
const { animationState: E } = this.visualElement;
|
|
4439
4450
|
E && E.setActive("whileDrag", !0);
|
|
4440
4451
|
}, e = (s, o) => {
|
|
4441
4452
|
const { dragPropagation: I, dragDirectionLock: n, onDirectionLock: r, onDrag: E } = this.getProps();
|
|
4442
4453
|
if (!I && !this.openDragLock)
|
|
4443
4454
|
return;
|
|
4444
|
-
const { offset:
|
|
4455
|
+
const { offset: l } = o;
|
|
4445
4456
|
if (n && this.currentDirection === null) {
|
|
4446
|
-
this.currentDirection = mi(
|
|
4457
|
+
this.currentDirection = mi(l), this.currentDirection !== null && r && r(this.currentDirection);
|
|
4447
4458
|
return;
|
|
4448
4459
|
}
|
|
4449
|
-
this.updateAxis("x", o.point,
|
|
4450
|
-
},
|
|
4460
|
+
this.updateAxis("x", o.point, l), this.updateAxis("y", o.point, l), this.visualElement.render(), E && E(s, o);
|
|
4461
|
+
}, Q = (s, o) => this.stop(s, o), w = () => eA((s) => {
|
|
4451
4462
|
var o;
|
|
4452
4463
|
return this.getAnimationState(s) === "paused" && ((o = this.getAxisMotionValue(s).animation) === null || o === void 0 ? void 0 : o.play());
|
|
4453
4464
|
}), { dragSnapToOrigin: C } = this.getProps();
|
|
@@ -4455,8 +4466,8 @@ class ui {
|
|
|
4455
4466
|
onSessionStart: D,
|
|
4456
4467
|
onStart: t,
|
|
4457
4468
|
onMove: e,
|
|
4458
|
-
onSessionEnd:
|
|
4459
|
-
resumeAnimation:
|
|
4469
|
+
onSessionEnd: Q,
|
|
4470
|
+
resumeAnimation: w
|
|
4460
4471
|
}, {
|
|
4461
4472
|
transformPagePoint: this.visualElement.getTransformPagePoint(),
|
|
4462
4473
|
dragSnapToOrigin: C,
|
|
@@ -4470,7 +4481,7 @@ class ui {
|
|
|
4470
4481
|
const { velocity: D } = B;
|
|
4471
4482
|
this.startAnimation(D);
|
|
4472
4483
|
const { onDragEnd: t } = this.getProps();
|
|
4473
|
-
t &&
|
|
4484
|
+
t && J.postRender(() => t(g, B));
|
|
4474
4485
|
}
|
|
4475
4486
|
cancel() {
|
|
4476
4487
|
this.isDragging = !1;
|
|
@@ -4506,16 +4517,16 @@ class ui {
|
|
|
4506
4517
|
const t = ci(M, D.root, this.visualElement.getTransformPagePoint());
|
|
4507
4518
|
let e = Ii(D.layout.layoutBox, t);
|
|
4508
4519
|
if (B) {
|
|
4509
|
-
const
|
|
4510
|
-
this.hasMutatedConstraints = !!
|
|
4520
|
+
const Q = B(li(e));
|
|
4521
|
+
this.hasMutatedConstraints = !!Q, Q && (e = at(Q));
|
|
4511
4522
|
}
|
|
4512
4523
|
return e;
|
|
4513
4524
|
}
|
|
4514
4525
|
startAnimation(g) {
|
|
4515
|
-
const { drag: B, dragMomentum: M, dragElastic: D, dragTransition: t, dragSnapToOrigin: e, onDragTransitionEnd:
|
|
4526
|
+
const { drag: B, dragMomentum: M, dragElastic: D, dragTransition: t, dragSnapToOrigin: e, onDragTransitionEnd: Q } = this.getProps(), w = this.constraints || {}, C = eA((s) => {
|
|
4516
4527
|
if (!mg(s, B, this.currentDirection))
|
|
4517
4528
|
return;
|
|
4518
|
-
let o =
|
|
4529
|
+
let o = w[s] || {};
|
|
4519
4530
|
e && (o = { min: 0, max: 0 });
|
|
4520
4531
|
const I = D ? 200 : 1e6, n = D ? 40 : 1e7, r = {
|
|
4521
4532
|
type: "inertia",
|
|
@@ -4530,7 +4541,7 @@ class ui {
|
|
|
4530
4541
|
};
|
|
4531
4542
|
return this.startAxisValueAnimation(s, r);
|
|
4532
4543
|
});
|
|
4533
|
-
return Promise.all(C).then(
|
|
4544
|
+
return Promise.all(C).then(Q);
|
|
4534
4545
|
}
|
|
4535
4546
|
startAxisValueAnimation(g, B) {
|
|
4536
4547
|
const M = this.getAxisMotionValue(g);
|
|
@@ -4566,8 +4577,8 @@ class ui {
|
|
|
4566
4577
|
return;
|
|
4567
4578
|
const { projection: D } = this.visualElement, t = this.getAxisMotionValue(B);
|
|
4568
4579
|
if (D && D.layout) {
|
|
4569
|
-
const { min: e, max:
|
|
4570
|
-
t.set(g[B] -
|
|
4580
|
+
const { min: e, max: Q } = D.layout.layoutBox[B];
|
|
4581
|
+
t.set(g[B] - P(e, Q, 0.5));
|
|
4571
4582
|
}
|
|
4572
4583
|
});
|
|
4573
4584
|
}
|
|
@@ -4585,44 +4596,44 @@ class ui {
|
|
|
4585
4596
|
this.stopAnimation();
|
|
4586
4597
|
const D = { x: 0, y: 0 };
|
|
4587
4598
|
eA((e) => {
|
|
4588
|
-
const
|
|
4589
|
-
if (
|
|
4590
|
-
const
|
|
4591
|
-
D[e] = ni({ min:
|
|
4599
|
+
const Q = this.getAxisMotionValue(e);
|
|
4600
|
+
if (Q && this.constraints !== !1) {
|
|
4601
|
+
const w = Q.get();
|
|
4602
|
+
D[e] = ni({ min: w, max: w }, this.constraints[e]);
|
|
4592
4603
|
}
|
|
4593
4604
|
});
|
|
4594
4605
|
const { transformTemplate: t } = this.visualElement.getProps();
|
|
4595
4606
|
this.visualElement.current.style.transform = t ? t({}, "") : "none", M.root && M.root.updateScroll(), M.updateLayout(), this.resolveConstraints(), eA((e) => {
|
|
4596
4607
|
if (!mg(e, g, null))
|
|
4597
4608
|
return;
|
|
4598
|
-
const
|
|
4599
|
-
|
|
4609
|
+
const Q = this.getAxisMotionValue(e), { min: w, max: C } = this.constraints[e];
|
|
4610
|
+
Q.set(P(w, C, D[e]));
|
|
4600
4611
|
});
|
|
4601
4612
|
}
|
|
4602
4613
|
addListeners() {
|
|
4603
4614
|
if (!this.visualElement.current)
|
|
4604
4615
|
return;
|
|
4605
4616
|
Yi.set(this.visualElement, this);
|
|
4606
|
-
const g = this.visualElement.current, B = tg(g, "pointerdown", (
|
|
4617
|
+
const g = this.visualElement.current, B = tg(g, "pointerdown", (w) => {
|
|
4607
4618
|
const { drag: C, dragListener: s = !0 } = this.getProps();
|
|
4608
|
-
C && s && this.start(
|
|
4619
|
+
C && s && this.start(w);
|
|
4609
4620
|
}), M = () => {
|
|
4610
|
-
const { dragConstraints:
|
|
4611
|
-
zA(
|
|
4621
|
+
const { dragConstraints: w } = this.getProps();
|
|
4622
|
+
zA(w) && w.current && (this.constraints = this.resolveRefConstraints());
|
|
4612
4623
|
}, { projection: D } = this.visualElement, t = D.addEventListener("measure", M);
|
|
4613
|
-
D && !D.layout && (D.root && D.root.updateScroll(), D.updateLayout()),
|
|
4614
|
-
const e = ng(window, "resize", () => this.scalePositionWithinConstraints()),
|
|
4624
|
+
D && !D.layout && (D.root && D.root.updateScroll(), D.updateLayout()), J.read(M);
|
|
4625
|
+
const e = ng(window, "resize", () => this.scalePositionWithinConstraints()), Q = D.addEventListener("didUpdate", ({ delta: w, hasLayoutChanged: C }) => {
|
|
4615
4626
|
this.isDragging && C && (eA((s) => {
|
|
4616
4627
|
const o = this.getAxisMotionValue(s);
|
|
4617
|
-
o && (this.originPoint[s] +=
|
|
4628
|
+
o && (this.originPoint[s] += w[s].translate, o.set(o.get() + w[s].translate));
|
|
4618
4629
|
}), this.visualElement.render());
|
|
4619
4630
|
});
|
|
4620
4631
|
return () => {
|
|
4621
|
-
e(), B(), t(),
|
|
4632
|
+
e(), B(), t(), Q && Q();
|
|
4622
4633
|
};
|
|
4623
4634
|
}
|
|
4624
4635
|
getProps() {
|
|
4625
|
-
const g = this.visualElement.getProps(), { drag: B = !1, dragDirectionLock: M = !1, dragPropagation: D = !1, dragConstraints: t = !1, dragElastic: e = lB, dragMomentum:
|
|
4636
|
+
const g = this.visualElement.getProps(), { drag: B = !1, dragDirectionLock: M = !1, dragPropagation: D = !1, dragConstraints: t = !1, dragElastic: e = lB, dragMomentum: Q = !0 } = g;
|
|
4626
4637
|
return {
|
|
4627
4638
|
...g,
|
|
4628
4639
|
drag: B,
|
|
@@ -4630,7 +4641,7 @@ class ui {
|
|
|
4630
4641
|
dragPropagation: D,
|
|
4631
4642
|
dragConstraints: t,
|
|
4632
4643
|
dragElastic: e,
|
|
4633
|
-
dragMomentum:
|
|
4644
|
+
dragMomentum: Q
|
|
4634
4645
|
};
|
|
4635
4646
|
}
|
|
4636
4647
|
}
|
|
@@ -4654,7 +4665,7 @@ class yi extends yA {
|
|
|
4654
4665
|
}
|
|
4655
4666
|
}
|
|
4656
4667
|
const aD = (A) => (g, B) => {
|
|
4657
|
-
A &&
|
|
4668
|
+
A && J.postRender(() => A(g, B));
|
|
4658
4669
|
};
|
|
4659
4670
|
class Ui extends yA {
|
|
4660
4671
|
constructor() {
|
|
@@ -4673,7 +4684,7 @@ class Ui extends yA {
|
|
|
4673
4684
|
onStart: aD(B),
|
|
4674
4685
|
onMove: M,
|
|
4675
4686
|
onEnd: (t, e) => {
|
|
4676
|
-
delete this.session, D &&
|
|
4687
|
+
delete this.session, D && J.postRender(() => D(t, e));
|
|
4677
4688
|
}
|
|
4678
4689
|
};
|
|
4679
4690
|
}
|
|
@@ -4719,9 +4730,9 @@ const Ag = {
|
|
|
4719
4730
|
const M = A, D = mA.parse(A);
|
|
4720
4731
|
if (D.length > 5)
|
|
4721
4732
|
return M;
|
|
4722
|
-
const t = mA.createTransformer(A), e = typeof D[0] != "number" ? 1 : 0,
|
|
4723
|
-
D[0 + e] /=
|
|
4724
|
-
const C =
|
|
4733
|
+
const t = mA.createTransformer(A), e = typeof D[0] != "number" ? 1 : 0, Q = B.x.scale * g.x, w = B.y.scale * g.y;
|
|
4734
|
+
D[0 + e] /= Q, D[1 + e] /= w;
|
|
4735
|
+
const C = P(Q, w, 0.5);
|
|
4725
4736
|
return typeof D[2 + e] == "number" && (D[2 + e] /= C), typeof D[3 + e] == "number" && (D[3 + e] /= C), t(D);
|
|
4726
4737
|
}
|
|
4727
4738
|
};
|
|
@@ -4742,9 +4753,9 @@ class Vi extends Ft {
|
|
|
4742
4753
|
}
|
|
4743
4754
|
getSnapshotBeforeUpdate(g) {
|
|
4744
4755
|
const { layoutDependency: B, visualElement: M, drag: D, isPresent: t } = this.props, e = M.projection;
|
|
4745
|
-
return e && (e.isPresent = t, D || g.layoutDependency !== B || B === void 0 ? e.willUpdate() : this.safeToRemove(), g.isPresent !== t && (t ? e.promote() : e.relegate() ||
|
|
4746
|
-
const
|
|
4747
|
-
(!
|
|
4756
|
+
return e && (e.isPresent = t, D || g.layoutDependency !== B || B === void 0 ? e.willUpdate() : this.safeToRemove(), g.isPresent !== t && (t ? e.promote() : e.relegate() || J.postRender(() => {
|
|
4757
|
+
const Q = e.getStack();
|
|
4758
|
+
(!Q || !Q.members.length) && this.safeToRemove();
|
|
4748
4759
|
}))), null;
|
|
4749
4760
|
}
|
|
4750
4761
|
componentDidUpdate() {
|
|
@@ -4812,24 +4823,24 @@ function pi(A, g) {
|
|
|
4812
4823
|
const t = D - B;
|
|
4813
4824
|
t >= g && (uA(M), A(t - g));
|
|
4814
4825
|
};
|
|
4815
|
-
return
|
|
4826
|
+
return J.read(M, !0), () => uA(M);
|
|
4816
4827
|
}
|
|
4817
4828
|
const Ut = ["TopLeft", "TopRight", "BottomLeft", "BottomRight"], Ri = Ut.length, YD = (A) => typeof A == "string" ? parseFloat(A) : A, uD = (A) => typeof A == "number" || d.test(A);
|
|
4818
4829
|
function hi(A, g, B, M, D, t) {
|
|
4819
|
-
D ? (A.opacity =
|
|
4830
|
+
D ? (A.opacity = P(
|
|
4820
4831
|
0,
|
|
4821
4832
|
// TODO Reinstate this if only child
|
|
4822
4833
|
B.opacity !== void 0 ? B.opacity : 1,
|
|
4823
4834
|
Ji(M)
|
|
4824
|
-
), A.opacityExit =
|
|
4835
|
+
), A.opacityExit = P(g.opacity !== void 0 ? g.opacity : 1, 0, zi(M))) : t && (A.opacity = P(g.opacity !== void 0 ? g.opacity : 1, B.opacity !== void 0 ? B.opacity : 1, M));
|
|
4825
4836
|
for (let e = 0; e < Ri; e++) {
|
|
4826
|
-
const
|
|
4827
|
-
let
|
|
4828
|
-
if (
|
|
4837
|
+
const Q = `border${Ut[e]}Radius`;
|
|
4838
|
+
let w = mD(g, Q), C = mD(B, Q);
|
|
4839
|
+
if (w === void 0 && C === void 0)
|
|
4829
4840
|
continue;
|
|
4830
|
-
|
|
4841
|
+
w || (w = 0), C || (C = 0), w === 0 || C === 0 || uD(w) === uD(C) ? (A[Q] = Math.max(P(YD(w), YD(C), M), 0), (oA.test(C) || oA.test(w)) && (A[Q] += "%")) : A[Q] = C;
|
|
4831
4842
|
}
|
|
4832
|
-
(g.rotate || B.rotate) && (A.rotate =
|
|
4843
|
+
(g.rotate || B.rotate) && (A.rotate = P(g.rotate || 0, B.rotate || 0, M));
|
|
4833
4844
|
}
|
|
4834
4845
|
function mD(A, g) {
|
|
4835
4846
|
return A[g] !== void 0 ? A[g] : A.borderRadius;
|
|
@@ -4851,10 +4862,10 @@ function ZD(A, g, B, M, D) {
|
|
|
4851
4862
|
return A -= g, A = Jg(A, 1 / B, M), D !== void 0 && (A = Jg(A, 1 / D, M)), A;
|
|
4852
4863
|
}
|
|
4853
4864
|
function vi(A, g = 0, B = 1, M = 0.5, D, t = A, e = A) {
|
|
4854
|
-
if (oA.test(g) && (g = parseFloat(g), g =
|
|
4865
|
+
if (oA.test(g) && (g = parseFloat(g), g = P(e.min, e.max, g / 100) - e.min), typeof g != "number")
|
|
4855
4866
|
return;
|
|
4856
|
-
let
|
|
4857
|
-
A === t && (
|
|
4867
|
+
let Q = P(t.min, t.max, M);
|
|
4868
|
+
A === t && (Q -= g), A.min = ZD(A.min, g, B, Q, D), A.max = ZD(A.max, g, B, Q, D);
|
|
4858
4869
|
}
|
|
4859
4870
|
function VD(A, g, [B, M, D], t, e) {
|
|
4860
4871
|
vi(A, g[B], g[M], g[D], g.scale, t, e);
|
|
@@ -4948,8 +4959,8 @@ function Oi(A, g, B) {
|
|
|
4948
4959
|
const { transformPerspective: C, rotate: s, rotateX: o, rotateY: I, skewX: n, skewY: r } = B;
|
|
4949
4960
|
C && (M = `perspective(${C}px) ${M}`), s && (M += `rotate(${s}deg) `), o && (M += `rotateX(${o}deg) `), I && (M += `rotateY(${I}deg) `), n && (M += `skewX(${n}deg) `), r && (M += `skewY(${r}deg) `);
|
|
4950
4961
|
}
|
|
4951
|
-
const
|
|
4952
|
-
return (
|
|
4962
|
+
const Q = A.x.scale * g.x, w = A.y.scale * g.y;
|
|
4963
|
+
return (Q !== 1 || w !== 1) && (M += `scale(${Q}, ${w})`), M || "none";
|
|
4953
4964
|
}
|
|
4954
4965
|
const dA = {
|
|
4955
4966
|
type: "projectionFrame",
|
|
@@ -4971,29 +4982,29 @@ function dt(A) {
|
|
|
4971
4982
|
const B = Je(g);
|
|
4972
4983
|
if (window.MotionHasOptimisedAnimation(B, "transform")) {
|
|
4973
4984
|
const { layout: D, layoutId: t } = A.options;
|
|
4974
|
-
window.MotionCancelOptimisedAnimation(B, "transform",
|
|
4985
|
+
window.MotionCancelOptimisedAnimation(B, "transform", J, !(D || t));
|
|
4975
4986
|
}
|
|
4976
4987
|
const { parent: M } = A;
|
|
4977
4988
|
M && !M.hasCheckedOptimisedAppear && dt(M);
|
|
4978
4989
|
}
|
|
4979
4990
|
function qt({ attachResizeListener: A, defaultParent: g, measureScroll: B, checkIsScrollRoot: M, resetTransform: D }) {
|
|
4980
4991
|
return class {
|
|
4981
|
-
constructor(e = {},
|
|
4992
|
+
constructor(e = {}, Q = g == null ? void 0 : g()) {
|
|
4982
4993
|
this.id = Hi++, this.animationId = 0, this.children = /* @__PURE__ */ new Set(), this.options = {}, this.isTreeAnimating = !1, this.isAnimationBlocked = !1, this.isLayoutDirty = !1, this.isProjectionDirty = !1, this.isSharedProjectionDirty = !1, this.isTransformDirty = !1, this.updateManuallyBlocked = !1, this.updateBlockedByResize = !1, this.isUpdating = !1, this.isSVG = !1, this.needsReset = !1, this.shouldResetTransform = !1, this.hasCheckedOptimisedAppear = !1, this.treeScale = { x: 1, y: 1 }, this.eventHandlers = /* @__PURE__ */ new Map(), this.hasTreeAnimated = !1, this.updateScheduled = !1, this.scheduleUpdate = () => this.update(), this.projectionUpdateScheduled = !1, this.checkUpdateFailed = () => {
|
|
4983
4994
|
this.isUpdating && (this.isUpdating = !1, this.clearAllSnapshots());
|
|
4984
4995
|
}, this.updateProjection = () => {
|
|
4985
4996
|
this.projectionUpdateScheduled = !1, Mg && (dA.totalNodes = dA.resolvedTargetDeltas = dA.recalculatedProjection = 0), this.nodes.forEach(Xi), this.nodes.forEach(_i), this.nodes.forEach(As), this.nodes.forEach(Ni), Mg && window.MotionDebug.record(dA);
|
|
4986
|
-
}, this.resolvedRelativeTargetAt = 0, this.hasProjected = !1, this.isVisible = !0, this.animationProgress = 0, this.sharedNodes = /* @__PURE__ */ new Map(), this.latestValues = e, this.root =
|
|
4987
|
-
for (let
|
|
4988
|
-
this.path[
|
|
4997
|
+
}, this.resolvedRelativeTargetAt = 0, this.hasProjected = !1, this.isVisible = !0, this.animationProgress = 0, this.sharedNodes = /* @__PURE__ */ new Map(), this.latestValues = e, this.root = Q ? Q.root || Q : this, this.path = Q ? [...Q.path, Q] : [], this.parent = Q, this.depth = Q ? Q.depth + 1 : 0;
|
|
4998
|
+
for (let w = 0; w < this.path.length; w++)
|
|
4999
|
+
this.path[w].shouldResetTransform = !0;
|
|
4989
5000
|
this.root === this && (this.nodes = new Ki());
|
|
4990
5001
|
}
|
|
4991
|
-
addEventListener(e,
|
|
4992
|
-
return this.eventHandlers.has(e) || this.eventHandlers.set(e, new IM()), this.eventHandlers.get(e).add(
|
|
5002
|
+
addEventListener(e, Q) {
|
|
5003
|
+
return this.eventHandlers.has(e) || this.eventHandlers.set(e, new IM()), this.eventHandlers.get(e).add(Q);
|
|
4993
5004
|
}
|
|
4994
|
-
notifyListeners(e, ...
|
|
4995
|
-
const
|
|
4996
|
-
|
|
5005
|
+
notifyListeners(e, ...Q) {
|
|
5006
|
+
const w = this.eventHandlers.get(e);
|
|
5007
|
+
w && w.notify(...Q);
|
|
4997
5008
|
}
|
|
4998
5009
|
hasListeners(e) {
|
|
4999
5010
|
return this.eventHandlers.has(e);
|
|
@@ -5001,32 +5012,32 @@ function qt({ attachResizeListener: A, defaultParent: g, measureScroll: B, check
|
|
|
5001
5012
|
/**
|
|
5002
5013
|
* Lifecycles
|
|
5003
5014
|
*/
|
|
5004
|
-
mount(e,
|
|
5015
|
+
mount(e, Q = this.root.hasTreeAnimated) {
|
|
5005
5016
|
if (this.instance)
|
|
5006
5017
|
return;
|
|
5007
5018
|
this.isSVG = qi(e), this.instance = e;
|
|
5008
|
-
const { layoutId:
|
|
5009
|
-
if (s && !s.current && s.mount(e), this.root.nodes.add(this), this.parent && this.parent.children.add(this),
|
|
5019
|
+
const { layoutId: w, layout: C, visualElement: s } = this.options;
|
|
5020
|
+
if (s && !s.current && s.mount(e), this.root.nodes.add(this), this.parent && this.parent.children.add(this), Q && (C || w) && (this.isLayoutDirty = !0), A) {
|
|
5010
5021
|
let o;
|
|
5011
5022
|
const I = () => this.root.updateBlockedByResize = !1;
|
|
5012
5023
|
A(e, () => {
|
|
5013
5024
|
this.root.updateBlockedByResize = !0, o && o(), o = pi(I, 250), Zg.hasAnimatedSinceResize && (Zg.hasAnimatedSinceResize = !1, this.nodes.forEach(JD));
|
|
5014
5025
|
});
|
|
5015
5026
|
}
|
|
5016
|
-
|
|
5027
|
+
w && this.root.registerSharedNode(w, this), this.options.animate !== !1 && s && (w || C) && this.addEventListener("didUpdate", ({ delta: o, hasLayoutChanged: I, hasRelativeLayoutChanged: n, layout: r }) => {
|
|
5017
5028
|
if (this.isTreeAnimationBlocked()) {
|
|
5018
5029
|
this.target = void 0, this.relativeTarget = void 0;
|
|
5019
5030
|
return;
|
|
5020
5031
|
}
|
|
5021
|
-
const E = this.options.transition || s.getDefaultTransition() || es, { onLayoutAnimationStart:
|
|
5022
|
-
if (this.options.layoutRoot || this.resumeFrom ||
|
|
5023
|
-
this.resumeFrom && (this.resumingFrom = this.resumeFrom, this.resumingFrom.resumingFrom = void 0), this.setAnimationOrigin(o,
|
|
5024
|
-
const
|
|
5032
|
+
const E = this.options.transition || s.getDefaultTransition() || es, { onLayoutAnimationStart: l, onLayoutAnimationComplete: G } = s.getProps(), a = !this.targetLayout || !ft(this.targetLayout, r), U = !I && n;
|
|
5033
|
+
if (this.options.layoutRoot || this.resumeFrom || U || I && (a || !this.currentAnimation)) {
|
|
5034
|
+
this.resumeFrom && (this.resumingFrom = this.resumeFrom, this.resumingFrom.resumingFrom = void 0), this.setAnimationOrigin(o, U);
|
|
5035
|
+
const q = {
|
|
5025
5036
|
...wM(E, "layout"),
|
|
5026
|
-
onPlay:
|
|
5027
|
-
onComplete:
|
|
5037
|
+
onPlay: l,
|
|
5038
|
+
onComplete: G
|
|
5028
5039
|
};
|
|
5029
|
-
(s.shouldReduceMotion || this.options.layoutRoot) && (
|
|
5040
|
+
(s.shouldReduceMotion || this.options.layoutRoot) && (q.delay = 0, q.type = !1), this.startAnimation(q);
|
|
5030
5041
|
} else
|
|
5031
5042
|
I || JD(this), this.isLead() && this.options.onExitComplete && this.options.onExitComplete();
|
|
5032
5043
|
this.targetLayout = r;
|
|
@@ -5070,8 +5081,8 @@ function qt({ attachResizeListener: A, defaultParent: g, measureScroll: B, check
|
|
|
5070
5081
|
const o = this.path[s];
|
|
5071
5082
|
o.shouldResetTransform = !0, o.updateScroll("snapshot"), o.options.layoutRoot && o.willUpdate(!1);
|
|
5072
5083
|
}
|
|
5073
|
-
const { layoutId:
|
|
5074
|
-
if (
|
|
5084
|
+
const { layoutId: Q, layout: w } = this.options;
|
|
5085
|
+
if (Q === void 0 && !w)
|
|
5075
5086
|
return;
|
|
5076
5087
|
const C = this.getTransformTemplate();
|
|
5077
5088
|
this.prevTransformTemplateValue = C ? C(this.latestValues, "") : void 0, this.updateSnapshot(), e && this.notifyListeners("willUpdate");
|
|
@@ -5082,8 +5093,8 @@ function qt({ attachResizeListener: A, defaultParent: g, measureScroll: B, check
|
|
|
5082
5093
|
return;
|
|
5083
5094
|
}
|
|
5084
5095
|
this.isUpdating || this.nodes.forEach(Wi), this.isUpdating = !1, this.nodes.forEach($i), this.nodes.forEach(Ti), this.nodes.forEach(Si), this.clearAllSnapshots();
|
|
5085
|
-
const
|
|
5086
|
-
j.delta = aA(0, 1e3 / 60,
|
|
5096
|
+
const Q = IA.now();
|
|
5097
|
+
j.delta = aA(0, 1e3 / 60, Q - j.timestamp), j.timestamp = Q, j.isProcessing = !0, Xg.update.process(j), Xg.preRender.process(j), Xg.render.process(j), j.isProcessing = !1;
|
|
5087
5098
|
}
|
|
5088
5099
|
didUpdate() {
|
|
5089
5100
|
this.updateScheduled || (this.updateScheduled = !0, WB.read(this.scheduleUpdate));
|
|
@@ -5092,10 +5103,10 @@ function qt({ attachResizeListener: A, defaultParent: g, measureScroll: B, check
|
|
|
5092
5103
|
this.nodes.forEach(xi), this.sharedNodes.forEach(Bs);
|
|
5093
5104
|
}
|
|
5094
5105
|
scheduleUpdateProjection() {
|
|
5095
|
-
this.projectionUpdateScheduled || (this.projectionUpdateScheduled = !0,
|
|
5106
|
+
this.projectionUpdateScheduled || (this.projectionUpdateScheduled = !0, J.preRender(this.updateProjection, !1, !0));
|
|
5096
5107
|
}
|
|
5097
5108
|
scheduleCheckAfterUnmount() {
|
|
5098
|
-
|
|
5109
|
+
J.postRender(() => {
|
|
5099
5110
|
this.isLayoutDirty ? this.root.didUpdate() : this.root.checkUpdateFailed();
|
|
5100
5111
|
});
|
|
5101
5112
|
}
|
|
@@ -5109,90 +5120,90 @@ function qt({ attachResizeListener: A, defaultParent: g, measureScroll: B, check
|
|
|
5109
5120
|
if (!this.instance || (this.updateScroll(), !(this.options.alwaysMeasureLayout && this.isLead()) && !this.isLayoutDirty))
|
|
5110
5121
|
return;
|
|
5111
5122
|
if (this.resumeFrom && !this.resumeFrom.instance)
|
|
5112
|
-
for (let
|
|
5113
|
-
this.path[
|
|
5123
|
+
for (let w = 0; w < this.path.length; w++)
|
|
5124
|
+
this.path[w].updateScroll();
|
|
5114
5125
|
const e = this.layout;
|
|
5115
5126
|
this.layout = this.measure(!1), this.layoutCorrected = F(), this.isLayoutDirty = !1, this.projectionDelta = void 0, this.notifyListeners("measure", this.layout.layoutBox);
|
|
5116
|
-
const { visualElement:
|
|
5117
|
-
|
|
5127
|
+
const { visualElement: Q } = this.options;
|
|
5128
|
+
Q && Q.notify("LayoutMeasure", this.layout.layoutBox, e ? e.layoutBox : void 0);
|
|
5118
5129
|
}
|
|
5119
5130
|
updateScroll(e = "measure") {
|
|
5120
|
-
let
|
|
5121
|
-
if (this.scroll && this.scroll.animationId === this.root.animationId && this.scroll.phase === e && (
|
|
5122
|
-
const
|
|
5131
|
+
let Q = !!(this.options.layoutScroll && this.instance);
|
|
5132
|
+
if (this.scroll && this.scroll.animationId === this.root.animationId && this.scroll.phase === e && (Q = !1), Q) {
|
|
5133
|
+
const w = M(this.instance);
|
|
5123
5134
|
this.scroll = {
|
|
5124
5135
|
animationId: this.root.animationId,
|
|
5125
5136
|
phase: e,
|
|
5126
|
-
isRoot:
|
|
5137
|
+
isRoot: w,
|
|
5127
5138
|
offset: B(this.instance),
|
|
5128
|
-
wasRoot: this.scroll ? this.scroll.isRoot :
|
|
5139
|
+
wasRoot: this.scroll ? this.scroll.isRoot : w
|
|
5129
5140
|
};
|
|
5130
5141
|
}
|
|
5131
5142
|
}
|
|
5132
5143
|
resetTransform() {
|
|
5133
5144
|
if (!D)
|
|
5134
5145
|
return;
|
|
5135
|
-
const e = this.isLayoutDirty || this.shouldResetTransform || this.options.alwaysMeasureLayout,
|
|
5136
|
-
e && (
|
|
5146
|
+
const e = this.isLayoutDirty || this.shouldResetTransform || this.options.alwaysMeasureLayout, Q = this.projectionDelta && !Vt(this.projectionDelta), w = this.getTransformTemplate(), C = w ? w(this.latestValues, "") : void 0, s = C !== this.prevTransformTemplateValue;
|
|
5147
|
+
e && (Q || fA(this.latestValues) || s) && (D(this.instance, C), this.shouldResetTransform = !1, this.scheduleRender());
|
|
5137
5148
|
}
|
|
5138
5149
|
measure(e = !0) {
|
|
5139
|
-
const
|
|
5140
|
-
let
|
|
5141
|
-
return e && (
|
|
5150
|
+
const Q = this.measurePageBox();
|
|
5151
|
+
let w = this.removeElementScroll(Q);
|
|
5152
|
+
return e && (w = this.removeTransform(w)), ts(w), {
|
|
5142
5153
|
animationId: this.root.animationId,
|
|
5143
|
-
measuredBox:
|
|
5144
|
-
layoutBox:
|
|
5154
|
+
measuredBox: Q,
|
|
5155
|
+
layoutBox: w,
|
|
5145
5156
|
latestValues: {},
|
|
5146
5157
|
source: this.id
|
|
5147
5158
|
};
|
|
5148
5159
|
}
|
|
5149
5160
|
measurePageBox() {
|
|
5150
5161
|
var e;
|
|
5151
|
-
const { visualElement:
|
|
5152
|
-
if (!
|
|
5162
|
+
const { visualElement: Q } = this.options;
|
|
5163
|
+
if (!Q)
|
|
5153
5164
|
return F();
|
|
5154
|
-
const
|
|
5165
|
+
const w = Q.measureViewportBox();
|
|
5155
5166
|
if (!(((e = this.scroll) === null || e === void 0 ? void 0 : e.wasRoot) || this.path.some(ws))) {
|
|
5156
5167
|
const { scroll: s } = this.root;
|
|
5157
|
-
s && (LA(
|
|
5168
|
+
s && (LA(w.x, s.offset.x), LA(w.y, s.offset.y));
|
|
5158
5169
|
}
|
|
5159
|
-
return
|
|
5170
|
+
return w;
|
|
5160
5171
|
}
|
|
5161
5172
|
removeElementScroll(e) {
|
|
5162
|
-
var
|
|
5163
|
-
const
|
|
5164
|
-
if (DA(
|
|
5165
|
-
return
|
|
5173
|
+
var Q;
|
|
5174
|
+
const w = F();
|
|
5175
|
+
if (DA(w, e), !((Q = this.scroll) === null || Q === void 0) && Q.wasRoot)
|
|
5176
|
+
return w;
|
|
5166
5177
|
for (let C = 0; C < this.path.length; C++) {
|
|
5167
5178
|
const s = this.path[C], { scroll: o, options: I } = s;
|
|
5168
|
-
s !== this.root && o && I.layoutScroll && (o.wasRoot && DA(
|
|
5179
|
+
s !== this.root && o && I.layoutScroll && (o.wasRoot && DA(w, e), LA(w.x, o.offset.x), LA(w.y, o.offset.y));
|
|
5169
5180
|
}
|
|
5170
|
-
return
|
|
5181
|
+
return w;
|
|
5171
5182
|
}
|
|
5172
|
-
applyTransform(e,
|
|
5173
|
-
const
|
|
5174
|
-
DA(
|
|
5183
|
+
applyTransform(e, Q = !1) {
|
|
5184
|
+
const w = F();
|
|
5185
|
+
DA(w, e);
|
|
5175
5186
|
for (let C = 0; C < this.path.length; C++) {
|
|
5176
5187
|
const s = this.path[C];
|
|
5177
|
-
!
|
|
5188
|
+
!Q && s.options.layoutScroll && s.scroll && s !== s.root && FA(w, {
|
|
5178
5189
|
x: -s.scroll.offset.x,
|
|
5179
5190
|
y: -s.scroll.offset.y
|
|
5180
|
-
}), fA(s.latestValues) && FA(
|
|
5191
|
+
}), fA(s.latestValues) && FA(w, s.latestValues);
|
|
5181
5192
|
}
|
|
5182
|
-
return fA(this.latestValues) && FA(
|
|
5193
|
+
return fA(this.latestValues) && FA(w, this.latestValues), w;
|
|
5183
5194
|
}
|
|
5184
5195
|
removeTransform(e) {
|
|
5185
|
-
const
|
|
5186
|
-
DA(
|
|
5187
|
-
for (let
|
|
5188
|
-
const C = this.path[
|
|
5196
|
+
const Q = F();
|
|
5197
|
+
DA(Q, e);
|
|
5198
|
+
for (let w = 0; w < this.path.length; w++) {
|
|
5199
|
+
const C = this.path[w];
|
|
5189
5200
|
if (!C.instance || !fA(C.latestValues))
|
|
5190
5201
|
continue;
|
|
5191
5202
|
GB(C.latestValues) && C.updateSnapshot();
|
|
5192
5203
|
const s = F(), o = C.measurePageBox();
|
|
5193
|
-
DA(s, o), fD(
|
|
5204
|
+
DA(s, o), fD(Q, C.latestValues, C.snapshot ? C.snapshot.layoutBox : void 0, s);
|
|
5194
5205
|
}
|
|
5195
|
-
return fA(this.latestValues) && fD(
|
|
5206
|
+
return fA(this.latestValues) && fD(Q, this.latestValues), Q;
|
|
5196
5207
|
}
|
|
5197
5208
|
setTargetDelta(e) {
|
|
5198
5209
|
this.targetDelta = e, this.root.scheduleUpdateProjection(), this.isProjectionDirty = !0;
|
|
@@ -5211,11 +5222,11 @@ function qt({ attachResizeListener: A, defaultParent: g, measureScroll: B, check
|
|
|
5211
5222
|
this.relativeParent && this.relativeParent.resolvedRelativeTargetAt !== j.timestamp && this.relativeParent.resolveTargetDelta(!0);
|
|
5212
5223
|
}
|
|
5213
5224
|
resolveTargetDelta(e = !1) {
|
|
5214
|
-
var
|
|
5215
|
-
const
|
|
5216
|
-
this.isProjectionDirty || (this.isProjectionDirty =
|
|
5217
|
-
const C = !!this.resumingFrom || this !==
|
|
5218
|
-
if (!(e || C && this.isSharedProjectionDirty || this.isProjectionDirty || !((
|
|
5225
|
+
var Q;
|
|
5226
|
+
const w = this.getLead();
|
|
5227
|
+
this.isProjectionDirty || (this.isProjectionDirty = w.isProjectionDirty), this.isTransformDirty || (this.isTransformDirty = w.isTransformDirty), this.isSharedProjectionDirty || (this.isSharedProjectionDirty = w.isSharedProjectionDirty);
|
|
5228
|
+
const C = !!this.resumingFrom || this !== w;
|
|
5229
|
+
if (!(e || C && this.isSharedProjectionDirty || this.isProjectionDirty || !((Q = this.parent) === null || Q === void 0) && Q.isProjectionDirty || this.attemptToResolveRelativeTarget || this.root.updateBlockedByResize))
|
|
5219
5230
|
return;
|
|
5220
5231
|
const { layout: o, layoutId: I } = this.options;
|
|
5221
5232
|
if (!(!this.layout || !(o || I))) {
|
|
@@ -5242,17 +5253,17 @@ function qt({ attachResizeListener: A, defaultParent: g, measureScroll: B, check
|
|
|
5242
5253
|
}
|
|
5243
5254
|
calcProjection() {
|
|
5244
5255
|
var e;
|
|
5245
|
-
const
|
|
5256
|
+
const Q = this.getLead(), w = !!this.resumingFrom || this !== Q;
|
|
5246
5257
|
let C = !0;
|
|
5247
|
-
if ((this.isProjectionDirty || !((e = this.parent) === null || e === void 0) && e.isProjectionDirty) && (C = !1),
|
|
5258
|
+
if ((this.isProjectionDirty || !((e = this.parent) === null || e === void 0) && e.isProjectionDirty) && (C = !1), w && (this.isSharedProjectionDirty || this.isTransformDirty) && (C = !1), this.resolvedRelativeTargetAt === j.timestamp && (C = !1), C)
|
|
5248
5259
|
return;
|
|
5249
5260
|
const { layout: s, layoutId: o } = this.options;
|
|
5250
5261
|
if (this.isTreeAnimating = !!(this.parent && this.parent.isTreeAnimating || this.currentAnimation || this.pendingAnimation), this.isTreeAnimating || (this.targetDelta = this.relativeTarget = void 0), !this.layout || !(s || o))
|
|
5251
5262
|
return;
|
|
5252
5263
|
DA(this.layoutCorrected, this.layout.layoutBox);
|
|
5253
5264
|
const I = this.treeScale.x, n = this.treeScale.y;
|
|
5254
|
-
ai(this.layoutCorrected, this.treeScale, this.path,
|
|
5255
|
-
const { target: r } =
|
|
5265
|
+
ai(this.layoutCorrected, this.treeScale, this.path, w), Q.layout && !Q.target && (this.treeScale.x !== 1 || this.treeScale.y !== 1) && (Q.target = Q.layout.layoutBox, Q.targetWithTransforms = F());
|
|
5266
|
+
const { target: r } = Q;
|
|
5256
5267
|
if (!r) {
|
|
5257
5268
|
this.prevProjectionDelta && (this.createProjectionDeltas(), this.scheduleRender());
|
|
5258
5269
|
return;
|
|
@@ -5266,33 +5277,33 @@ function qt({ attachResizeListener: A, defaultParent: g, measureScroll: B, check
|
|
|
5266
5277
|
this.isVisible = !0;
|
|
5267
5278
|
}
|
|
5268
5279
|
scheduleRender(e = !0) {
|
|
5269
|
-
var
|
|
5270
|
-
if ((
|
|
5271
|
-
const
|
|
5272
|
-
|
|
5280
|
+
var Q;
|
|
5281
|
+
if ((Q = this.options.visualElement) === null || Q === void 0 || Q.scheduleRender(), e) {
|
|
5282
|
+
const w = this.getStack();
|
|
5283
|
+
w && w.scheduleRender();
|
|
5273
5284
|
}
|
|
5274
5285
|
this.resumingFrom && !this.resumingFrom.instance && (this.resumingFrom = void 0);
|
|
5275
5286
|
}
|
|
5276
5287
|
createProjectionDeltas() {
|
|
5277
5288
|
this.prevProjectionDelta = PA(), this.projectionDelta = PA(), this.projectionDeltaWithTransform = PA();
|
|
5278
5289
|
}
|
|
5279
|
-
setAnimationOrigin(e,
|
|
5280
|
-
const
|
|
5281
|
-
(!this.relativeParent || !this.relativeParent.options.layoutRoot) && (this.relativeTarget = this.relativeTargetOrigin = void 0), this.attemptToResolveRelativeTarget = !
|
|
5282
|
-
const I = F(), n =
|
|
5290
|
+
setAnimationOrigin(e, Q = !1) {
|
|
5291
|
+
const w = this.snapshot, C = w ? w.latestValues : {}, s = { ...this.latestValues }, o = PA();
|
|
5292
|
+
(!this.relativeParent || !this.relativeParent.options.layoutRoot) && (this.relativeTarget = this.relativeTargetOrigin = void 0), this.attemptToResolveRelativeTarget = !Q;
|
|
5293
|
+
const I = F(), n = w ? w.source : void 0, r = this.layout ? this.layout.source : void 0, E = n !== r, l = this.getStack(), G = !l || l.members.length <= 1, a = !!(E && !G && this.options.crossfade === !0 && !this.path.some(Ds));
|
|
5283
5294
|
this.animationProgress = 0;
|
|
5284
|
-
let
|
|
5285
|
-
this.mixTargetDelta = (
|
|
5286
|
-
const
|
|
5287
|
-
zD(o.x, e.x,
|
|
5295
|
+
let U;
|
|
5296
|
+
this.mixTargetDelta = (q) => {
|
|
5297
|
+
const c = q / 1e3;
|
|
5298
|
+
zD(o.x, e.x, c), zD(o.y, e.y, c), this.setTargetDelta(o), this.relativeTarget && this.relativeTargetOrigin && this.layout && this.relativeParent && this.relativeParent.layout && (Qg(I, this.layout.layoutBox, this.relativeParent.layout.layoutBox), Ms(this.relativeTarget, this.relativeTargetOrigin, I, c), U && Fi(this.relativeTarget, U) && (this.isProjectionDirty = !1), U || (U = F()), DA(U, this.relativeTarget)), E && (this.animationValues = s, hi(s, C, this.latestValues, c, a, G)), this.root.scheduleUpdateProjection(), this.scheduleRender(), this.animationProgress = c;
|
|
5288
5299
|
}, this.mixTargetDelta(this.options.layoutRoot ? 1e3 : 0);
|
|
5289
5300
|
}
|
|
5290
5301
|
startAnimation(e) {
|
|
5291
|
-
this.notifyListeners("animationStart"), this.currentAnimation && this.currentAnimation.stop(), this.resumingFrom && this.resumingFrom.currentAnimation && this.resumingFrom.currentAnimation.stop(), this.pendingAnimation && (uA(this.pendingAnimation), this.pendingAnimation = void 0), this.pendingAnimation =
|
|
5302
|
+
this.notifyListeners("animationStart"), this.currentAnimation && this.currentAnimation.stop(), this.resumingFrom && this.resumingFrom.currentAnimation && this.resumingFrom.currentAnimation.stop(), this.pendingAnimation && (uA(this.pendingAnimation), this.pendingAnimation = void 0), this.pendingAnimation = J.update(() => {
|
|
5292
5303
|
Zg.hasAnimatedSinceResize = !0, this.currentAnimation = di(0, RD, {
|
|
5293
5304
|
...e,
|
|
5294
|
-
onUpdate: (
|
|
5295
|
-
this.mixTargetDelta(
|
|
5305
|
+
onUpdate: (Q) => {
|
|
5306
|
+
this.mixTargetDelta(Q), e.onUpdate && e.onUpdate(Q);
|
|
5296
5307
|
},
|
|
5297
5308
|
onComplete: () => {
|
|
5298
5309
|
e.onComplete && e.onComplete(), this.completeAnimation();
|
|
@@ -5310,24 +5321,24 @@ function qt({ attachResizeListener: A, defaultParent: g, measureScroll: B, check
|
|
|
5310
5321
|
}
|
|
5311
5322
|
applyTransformsToTarget() {
|
|
5312
5323
|
const e = this.getLead();
|
|
5313
|
-
let { targetWithTransforms:
|
|
5314
|
-
if (!(!
|
|
5324
|
+
let { targetWithTransforms: Q, target: w, layout: C, latestValues: s } = e;
|
|
5325
|
+
if (!(!Q || !w || !C)) {
|
|
5315
5326
|
if (this !== e && this.layout && C && kt(this.options.animationType, this.layout.layoutBox, C.layoutBox)) {
|
|
5316
|
-
|
|
5327
|
+
w = this.target || F();
|
|
5317
5328
|
const o = BA(this.layout.layoutBox.x);
|
|
5318
|
-
|
|
5329
|
+
w.x.min = e.target.x.min, w.x.max = w.x.min + o;
|
|
5319
5330
|
const I = BA(this.layout.layoutBox.y);
|
|
5320
|
-
|
|
5331
|
+
w.y.min = e.target.y.min, w.y.max = w.y.min + I;
|
|
5321
5332
|
}
|
|
5322
|
-
DA(
|
|
5333
|
+
DA(Q, w), FA(Q, s), wg(this.projectionDeltaWithTransform, this.layoutCorrected, Q, s);
|
|
5323
5334
|
}
|
|
5324
5335
|
}
|
|
5325
|
-
registerSharedNode(e,
|
|
5326
|
-
this.sharedNodes.has(e) || this.sharedNodes.set(e, new bi()), this.sharedNodes.get(e).add(
|
|
5327
|
-
const C =
|
|
5328
|
-
|
|
5336
|
+
registerSharedNode(e, Q) {
|
|
5337
|
+
this.sharedNodes.has(e) || this.sharedNodes.set(e, new bi()), this.sharedNodes.get(e).add(Q);
|
|
5338
|
+
const C = Q.options.initialPromotionConfig;
|
|
5339
|
+
Q.promote({
|
|
5329
5340
|
transition: C ? C.transition : void 0,
|
|
5330
|
-
preserveFollowOpacity: C && C.shouldPreserveFollowOpacity ? C.shouldPreserveFollowOpacity(
|
|
5341
|
+
preserveFollowOpacity: C && C.shouldPreserveFollowOpacity ? C.shouldPreserveFollowOpacity(Q) : void 0
|
|
5331
5342
|
});
|
|
5332
5343
|
}
|
|
5333
5344
|
isLead() {
|
|
@@ -5336,22 +5347,22 @@ function qt({ attachResizeListener: A, defaultParent: g, measureScroll: B, check
|
|
|
5336
5347
|
}
|
|
5337
5348
|
getLead() {
|
|
5338
5349
|
var e;
|
|
5339
|
-
const { layoutId:
|
|
5340
|
-
return
|
|
5350
|
+
const { layoutId: Q } = this.options;
|
|
5351
|
+
return Q ? ((e = this.getStack()) === null || e === void 0 ? void 0 : e.lead) || this : this;
|
|
5341
5352
|
}
|
|
5342
5353
|
getPrevLead() {
|
|
5343
5354
|
var e;
|
|
5344
|
-
const { layoutId:
|
|
5345
|
-
return
|
|
5355
|
+
const { layoutId: Q } = this.options;
|
|
5356
|
+
return Q ? (e = this.getStack()) === null || e === void 0 ? void 0 : e.prevLead : void 0;
|
|
5346
5357
|
}
|
|
5347
5358
|
getStack() {
|
|
5348
5359
|
const { layoutId: e } = this.options;
|
|
5349
5360
|
if (e)
|
|
5350
5361
|
return this.root.sharedNodes.get(e);
|
|
5351
5362
|
}
|
|
5352
|
-
promote({ needsReset: e, transition:
|
|
5363
|
+
promote({ needsReset: e, transition: Q, preserveFollowOpacity: w } = {}) {
|
|
5353
5364
|
const C = this.getStack();
|
|
5354
|
-
C && C.promote(this,
|
|
5365
|
+
C && C.promote(this, w), e && (this.projectionDelta = void 0, this.needsReset = !0), Q && this.setOptions({ transition: Q });
|
|
5355
5366
|
}
|
|
5356
5367
|
relegate() {
|
|
5357
5368
|
const e = this.getStack();
|
|
@@ -5361,12 +5372,12 @@ function qt({ attachResizeListener: A, defaultParent: g, measureScroll: B, check
|
|
|
5361
5372
|
const { visualElement: e } = this.options;
|
|
5362
5373
|
if (!e)
|
|
5363
5374
|
return;
|
|
5364
|
-
let
|
|
5365
|
-
const { latestValues:
|
|
5366
|
-
if ((
|
|
5375
|
+
let Q = !1;
|
|
5376
|
+
const { latestValues: w } = e;
|
|
5377
|
+
if ((w.z || w.rotate || w.rotateX || w.rotateY || w.rotateZ || w.skewX || w.skewY) && (Q = !0), !Q)
|
|
5367
5378
|
return;
|
|
5368
5379
|
const C = {};
|
|
5369
|
-
|
|
5380
|
+
w.z && MB("z", e, C, this.animationValues);
|
|
5370
5381
|
for (let s = 0; s < BB.length; s++)
|
|
5371
5382
|
MB(`rotate${BB[s]}`, e, C, this.animationValues), MB(`skew${BB[s]}`, e, C, this.animationValues);
|
|
5372
5383
|
e.render();
|
|
@@ -5375,7 +5386,7 @@ function qt({ attachResizeListener: A, defaultParent: g, measureScroll: B, check
|
|
|
5375
5386
|
e.scheduleRender();
|
|
5376
5387
|
}
|
|
5377
5388
|
getProjectionStyles(e) {
|
|
5378
|
-
var
|
|
5389
|
+
var Q, w;
|
|
5379
5390
|
if (!this.instance || this.isSVG)
|
|
5380
5391
|
return;
|
|
5381
5392
|
if (!this.isVisible)
|
|
@@ -5393,17 +5404,17 @@ function qt({ attachResizeListener: A, defaultParent: g, measureScroll: B, check
|
|
|
5393
5404
|
const I = o.animationValues || o.latestValues;
|
|
5394
5405
|
this.applyTransformsToTarget(), C.transform = Oi(this.projectionDeltaWithTransform, this.treeScale, I), s && (C.transform = s(I, C.transform));
|
|
5395
5406
|
const { x: n, y: r } = this.projectionDelta;
|
|
5396
|
-
C.transformOrigin = `${n.origin * 100}% ${r.origin * 100}% 0`, o.animationValues ? C.opacity = o === this ? (
|
|
5407
|
+
C.transformOrigin = `${n.origin * 100}% ${r.origin * 100}% 0`, o.animationValues ? C.opacity = o === this ? (w = (Q = I.opacity) !== null && Q !== void 0 ? Q : this.latestValues.opacity) !== null && w !== void 0 ? w : 1 : this.preserveOpacity ? this.latestValues.opacity : I.opacityExit : C.opacity = o === this ? I.opacity !== void 0 ? I.opacity : "" : I.opacityExit !== void 0 ? I.opacityExit : 0;
|
|
5397
5408
|
for (const E in kg) {
|
|
5398
5409
|
if (I[E] === void 0)
|
|
5399
5410
|
continue;
|
|
5400
|
-
const { correct:
|
|
5401
|
-
if (
|
|
5402
|
-
const
|
|
5403
|
-
for (let
|
|
5404
|
-
C[
|
|
5411
|
+
const { correct: l, applyTo: G } = kg[E], a = C.transform === "none" ? I[E] : l(I[E], o);
|
|
5412
|
+
if (G) {
|
|
5413
|
+
const U = G.length;
|
|
5414
|
+
for (let q = 0; q < U; q++)
|
|
5415
|
+
C[G[q]] = a;
|
|
5405
5416
|
} else
|
|
5406
|
-
C[E] =
|
|
5417
|
+
C[E] = a;
|
|
5407
5418
|
}
|
|
5408
5419
|
return this.options.layoutId && (C.pointerEvents = o === this ? yg(e == null ? void 0 : e.pointerEvents) || "" : "none"), C;
|
|
5409
5420
|
}
|
|
@@ -5413,8 +5424,8 @@ function qt({ attachResizeListener: A, defaultParent: g, measureScroll: B, check
|
|
|
5413
5424
|
// Only run on root
|
|
5414
5425
|
resetTree() {
|
|
5415
5426
|
this.root.nodes.forEach((e) => {
|
|
5416
|
-
var
|
|
5417
|
-
return (
|
|
5427
|
+
var Q;
|
|
5428
|
+
return (Q = e.currentAnimation) === null || Q === void 0 ? void 0 : Q.stop();
|
|
5418
5429
|
}), this.root.nodes.forEach(hD), this.root.sharedNodes.clear();
|
|
5419
5430
|
}
|
|
5420
5431
|
};
|
|
@@ -5434,11 +5445,11 @@ function Si(A) {
|
|
|
5434
5445
|
const I = e ? B.measuredBox[o] : B.layoutBox[o], n = BA(M[o]);
|
|
5435
5446
|
I.max = I.min + n, A.relativeTarget && !A.currentAnimation && (A.isProjectionDirty = !0, A.relativeTarget[o].max = A.relativeTarget[o].min + n);
|
|
5436
5447
|
});
|
|
5437
|
-
const w = PA();
|
|
5438
|
-
wg(w, M, B.layoutBox);
|
|
5439
5448
|
const Q = PA();
|
|
5440
|
-
|
|
5441
|
-
const
|
|
5449
|
+
wg(Q, M, B.layoutBox);
|
|
5450
|
+
const w = PA();
|
|
5451
|
+
e ? wg(w, A.applyTransform(D, !0), B.measuredBox) : wg(w, M, B.layoutBox);
|
|
5452
|
+
const C = !Vt(Q);
|
|
5442
5453
|
let s = !1;
|
|
5443
5454
|
if (!A.resumeFrom) {
|
|
5444
5455
|
const o = A.getClosestProjectingParent();
|
|
@@ -5455,8 +5466,8 @@ function Si(A) {
|
|
|
5455
5466
|
A.notifyListeners("didUpdate", {
|
|
5456
5467
|
layout: M,
|
|
5457
5468
|
snapshot: B,
|
|
5458
|
-
delta:
|
|
5459
|
-
layoutDelta:
|
|
5469
|
+
delta: w,
|
|
5470
|
+
layoutDelta: Q,
|
|
5460
5471
|
hasLayoutChanged: C,
|
|
5461
5472
|
hasRelativeLayoutChanged: s
|
|
5462
5473
|
});
|
|
@@ -5501,10 +5512,10 @@ function Bs(A) {
|
|
|
5501
5512
|
A.removeLeadSnapshot();
|
|
5502
5513
|
}
|
|
5503
5514
|
function zD(A, g, B) {
|
|
5504
|
-
A.translate =
|
|
5515
|
+
A.translate = P(g.translate, 0, B), A.scale = P(g.scale, 1, B), A.origin = g.origin, A.originPoint = g.originPoint;
|
|
5505
5516
|
}
|
|
5506
5517
|
function vD(A, g, B, M) {
|
|
5507
|
-
A.min =
|
|
5518
|
+
A.min = P(g.min, B.min, M), A.max = P(g.max, B.max, M);
|
|
5508
5519
|
}
|
|
5509
5520
|
function Ms(A, g, B, M) {
|
|
5510
5521
|
vD(A.x, g.x, B.x, M), vD(A.y, g.y, B.y, M);
|
|
@@ -5568,7 +5579,7 @@ function bD(A, g, B) {
|
|
|
5568
5579
|
const { props: M } = A;
|
|
5569
5580
|
A.animationState && M.whileHover && A.animationState.setActive("whileHover", B === "Start");
|
|
5570
5581
|
const D = "onHover" + B, t = M[D];
|
|
5571
|
-
t &&
|
|
5582
|
+
t && J.postRender(() => t(g, Gg(g)));
|
|
5572
5583
|
}
|
|
5573
5584
|
class is extends yA {
|
|
5574
5585
|
mount() {
|
|
@@ -5604,7 +5615,7 @@ function OD(A, g, B) {
|
|
|
5604
5615
|
const { props: M } = A;
|
|
5605
5616
|
A.animationState && M.whileTap && A.animationState.setActive("whileTap", B === "Start");
|
|
5606
5617
|
const D = "onTap" + (B === "End" ? "" : B), t = M[D];
|
|
5607
|
-
t &&
|
|
5618
|
+
t && J.postRender(() => t(g, Gg(g)));
|
|
5608
5619
|
}
|
|
5609
5620
|
class os extends yA {
|
|
5610
5621
|
mount() {
|
|
@@ -5646,15 +5657,15 @@ class Gs extends yA {
|
|
|
5646
5657
|
root: B ? B.current : void 0,
|
|
5647
5658
|
rootMargin: M,
|
|
5648
5659
|
threshold: typeof D == "number" ? D : ls[D]
|
|
5649
|
-
},
|
|
5650
|
-
const { isIntersecting: C } =
|
|
5660
|
+
}, Q = (w) => {
|
|
5661
|
+
const { isIntersecting: C } = w;
|
|
5651
5662
|
if (this.isInView === C || (this.isInView = C, t && !C && this.hasEnteredView))
|
|
5652
5663
|
return;
|
|
5653
5664
|
C && (this.hasEnteredView = !0), this.node.animationState && this.node.animationState.setActive("whileInView", C);
|
|
5654
5665
|
const { onViewportEnter: s, onViewportLeave: o } = this.node.getProps(), I = C ? s : o;
|
|
5655
|
-
I && I(
|
|
5666
|
+
I && I(w);
|
|
5656
5667
|
};
|
|
5657
|
-
return Es(this.node.current, e,
|
|
5668
|
+
return Es(this.node.current, e, Q);
|
|
5658
5669
|
}
|
|
5659
5670
|
mount() {
|
|
5660
5671
|
this.startObserver();
|
|
@@ -5739,19 +5750,19 @@ class Zs {
|
|
|
5739
5750
|
scrapeMotionValuesFromProps(g, B, M) {
|
|
5740
5751
|
return {};
|
|
5741
5752
|
}
|
|
5742
|
-
constructor({ parent: g, props: B, presenceContext: M, reducedMotionConfig: D, blockInitialAnimation: t, visualState: e },
|
|
5753
|
+
constructor({ parent: g, props: B, presenceContext: M, reducedMotionConfig: D, blockInitialAnimation: t, visualState: e }, Q = {}) {
|
|
5743
5754
|
this.current = null, this.children = /* @__PURE__ */ new Set(), this.isVariantNode = !1, this.isControllingVariants = !1, this.shouldReduceMotion = null, this.values = /* @__PURE__ */ new Map(), this.KeyframeResolver = cM, this.features = {}, this.valueSubscriptions = /* @__PURE__ */ new Map(), this.prevMotionValues = {}, this.events = {}, this.propEventSubscriptions = {}, this.notifyUpdate = () => this.notify("Update", this.latestValues), this.render = () => {
|
|
5744
5755
|
this.current && (this.triggerBuild(), this.renderInstance(this.current, this.renderState, this.props.style, this.projection));
|
|
5745
5756
|
}, this.renderScheduledAt = 0, this.scheduleRender = () => {
|
|
5746
5757
|
const n = IA.now();
|
|
5747
|
-
this.renderScheduledAt < n && (this.renderScheduledAt = n,
|
|
5758
|
+
this.renderScheduledAt < n && (this.renderScheduledAt = n, J.render(this.render, !1, !0));
|
|
5748
5759
|
};
|
|
5749
|
-
const { latestValues:
|
|
5750
|
-
this.onUpdate = s, this.latestValues =
|
|
5760
|
+
const { latestValues: w, renderState: C, onUpdate: s } = e;
|
|
5761
|
+
this.onUpdate = s, this.latestValues = w, this.baseTarget = { ...w }, this.initialValues = B.initial ? { ...w } : {}, this.renderState = C, this.parent = g, this.props = B, this.presenceContext = M, this.depth = g ? g.depth + 1 : 0, this.reducedMotionConfig = D, this.options = Q, this.blockInitialAnimation = !!t, this.isControllingVariants = Og(B), this.isVariantNode = ie(B), this.isVariantNode && (this.variantChildren = /* @__PURE__ */ new Set()), this.manuallyAnimateOnMount = !!(g && g.current);
|
|
5751
5762
|
const { willChange: o, ...I } = this.scrapeMotionValuesFromProps(B, {}, this);
|
|
5752
5763
|
for (const n in I) {
|
|
5753
5764
|
const r = I[n];
|
|
5754
|
-
|
|
5765
|
+
w[n] !== void 0 && X(r) && r.set(w[n], !1);
|
|
5755
5766
|
}
|
|
5756
5767
|
}
|
|
5757
5768
|
mount(g) {
|
|
@@ -5769,8 +5780,8 @@ class Zs {
|
|
|
5769
5780
|
}
|
|
5770
5781
|
bindToMotionValue(g, B) {
|
|
5771
5782
|
this.valueSubscriptions.has(g) && this.valueSubscriptions.get(g)();
|
|
5772
|
-
const M = RA.has(g), D = B.on("change", (
|
|
5773
|
-
this.latestValues[g] =
|
|
5783
|
+
const M = RA.has(g), D = B.on("change", (Q) => {
|
|
5784
|
+
this.latestValues[g] = Q, this.props.onUpdate && J.preRender(this.notifyUpdate), M && this.projection && (this.projection.isTransformDirty = !0);
|
|
5774
5785
|
}), t = B.on("renderRequest", this.scheduleRender);
|
|
5775
5786
|
let e;
|
|
5776
5787
|
window.MotionCheckAppearSync && (e = window.MotionCheckAppearSync(this, g, B)), this.valueSubscriptions.set(g, () => {
|
|
@@ -6063,33 +6074,33 @@ const vg = hs, Js = {
|
|
|
6063
6074
|
all: 1
|
|
6064
6075
|
};
|
|
6065
6076
|
function zs(A, g, { root: B, margin: M, amount: D = "some" } = {}) {
|
|
6066
|
-
const t = ke(A), e = /* @__PURE__ */ new WeakMap(),
|
|
6077
|
+
const t = ke(A), e = /* @__PURE__ */ new WeakMap(), Q = (C) => {
|
|
6067
6078
|
C.forEach((s) => {
|
|
6068
6079
|
const o = e.get(s.target);
|
|
6069
6080
|
if (s.isIntersecting !== !!o)
|
|
6070
6081
|
if (s.isIntersecting) {
|
|
6071
6082
|
const I = g(s.target, s);
|
|
6072
|
-
typeof I == "function" ? e.set(s.target, I) :
|
|
6083
|
+
typeof I == "function" ? e.set(s.target, I) : w.unobserve(s.target);
|
|
6073
6084
|
} else typeof o == "function" && (o(s), e.delete(s.target));
|
|
6074
6085
|
});
|
|
6075
|
-
},
|
|
6086
|
+
}, w = new IntersectionObserver(Q, {
|
|
6076
6087
|
root: B,
|
|
6077
6088
|
rootMargin: M,
|
|
6078
6089
|
threshold: typeof D == "number" ? D : Js[D]
|
|
6079
6090
|
});
|
|
6080
|
-
return t.forEach((C) =>
|
|
6091
|
+
return t.forEach((C) => w.observe(C)), () => w.disconnect();
|
|
6081
6092
|
}
|
|
6082
6093
|
function ht(A, { root: g, margin: B, amount: M, once: D = !1 } = {}) {
|
|
6083
|
-
const [t, e] =
|
|
6094
|
+
const [t, e] = z(!1);
|
|
6084
6095
|
return O(() => {
|
|
6085
6096
|
if (!A.current || D && t)
|
|
6086
6097
|
return;
|
|
6087
|
-
const
|
|
6098
|
+
const Q = () => (e(!0), D ? void 0 : () => e(!1)), w = {
|
|
6088
6099
|
root: g && g.current || void 0,
|
|
6089
6100
|
margin: B,
|
|
6090
6101
|
amount: M
|
|
6091
6102
|
};
|
|
6092
|
-
return zs(A.current,
|
|
6103
|
+
return zs(A.current, Q, w);
|
|
6093
6104
|
}, [g, A, B, D, M]), t;
|
|
6094
6105
|
}
|
|
6095
6106
|
const vs = N(
|
|
@@ -6099,84 +6110,86 @@ const vs = N(
|
|
|
6099
6110
|
logo: B,
|
|
6100
6111
|
heightLogo: M = "40px",
|
|
6101
6112
|
widthLogo: D = "65px",
|
|
6102
|
-
|
|
6103
|
-
|
|
6104
|
-
|
|
6113
|
+
router: t,
|
|
6114
|
+
handleOpenItem: e,
|
|
6115
|
+
...Q
|
|
6116
|
+
}, w) => {
|
|
6117
|
+
const C = jB(), [s, o] = z(!1), [I, n] = z(void 0), [r] = z(""), E = g.reduce((V, Z) => (V[Z.refId] = AA(null), V), {}), l = () => o(!s);
|
|
6105
6118
|
O(() => {
|
|
6106
|
-
g.forEach((
|
|
6107
|
-
const
|
|
6108
|
-
if (
|
|
6109
|
-
const
|
|
6110
|
-
const
|
|
6111
|
-
|
|
6119
|
+
g.forEach((Z) => {
|
|
6120
|
+
const u = E[Z.refId];
|
|
6121
|
+
if (u != null && u.current) {
|
|
6122
|
+
const Y = (f) => {
|
|
6123
|
+
const R = f.target;
|
|
6124
|
+
n(R.getBoundingClientRect());
|
|
6112
6125
|
};
|
|
6113
|
-
|
|
6126
|
+
u.current.addEventListener("mouseenter", Y);
|
|
6114
6127
|
}
|
|
6115
6128
|
});
|
|
6116
|
-
const
|
|
6117
|
-
return
|
|
6118
|
-
g.forEach((
|
|
6119
|
-
const
|
|
6120
|
-
|
|
6129
|
+
const V = E[r];
|
|
6130
|
+
return V != null && V.current && n(V.current.getBoundingClientRect()), () => {
|
|
6131
|
+
g.forEach((Z) => {
|
|
6132
|
+
const u = E[Z.refId];
|
|
6133
|
+
u != null && u.current && u.current.removeEventListener("mouseenter", () => {
|
|
6121
6134
|
});
|
|
6122
6135
|
});
|
|
6123
6136
|
};
|
|
6124
|
-
}, [
|
|
6125
|
-
const
|
|
6126
|
-
|
|
6137
|
+
}, [r, g, E]), O(() => {
|
|
6138
|
+
const V = window.matchMedia("(min-width: 640px)"), Z = () => {
|
|
6139
|
+
V.matches && s && o(!1);
|
|
6127
6140
|
};
|
|
6128
|
-
return
|
|
6129
|
-
|
|
6141
|
+
return V.addEventListener("change", Z), () => {
|
|
6142
|
+
V.removeEventListener("change", Z);
|
|
6130
6143
|
};
|
|
6131
|
-
}, [
|
|
6132
|
-
const
|
|
6144
|
+
}, [s]);
|
|
6145
|
+
const G = {
|
|
6133
6146
|
goatData: "bg-zinc-900",
|
|
6134
6147
|
secondary: "bg-[#ededed]",
|
|
6135
|
-
experiences: "bg-
|
|
6136
|
-
},
|
|
6148
|
+
experiences: "bg-[#FFFFFF]"
|
|
6149
|
+
}, a = {
|
|
6137
6150
|
goatData: "#9a6d79",
|
|
6138
6151
|
secondary: "#1f2937e7",
|
|
6139
|
-
experiences: "#
|
|
6140
|
-
},
|
|
6152
|
+
experiences: "#6BC1E4"
|
|
6153
|
+
}, U = {
|
|
6141
6154
|
goatData: "#ff0145",
|
|
6142
6155
|
secondary: "#ff0145",
|
|
6143
6156
|
experiences: "#1f2937e7"
|
|
6144
|
-
},
|
|
6157
|
+
}, q = {
|
|
6145
6158
|
goatData: "white",
|
|
6146
6159
|
secondary: "#1F2937",
|
|
6147
|
-
experiences: "
|
|
6148
|
-
},
|
|
6160
|
+
experiences: "#000000"
|
|
6161
|
+
}, c = {
|
|
6149
6162
|
goatData: "text-white",
|
|
6150
6163
|
secondary: "text-[#1F2937]",
|
|
6151
6164
|
experiences: "text-white"
|
|
6152
6165
|
};
|
|
6153
|
-
return /* @__PURE__ */
|
|
6154
|
-
/* @__PURE__ */
|
|
6155
|
-
/* @__PURE__ */ i(
|
|
6166
|
+
return /* @__PURE__ */ y("nav", { ref: w, ...Q, style: { zIndex: 9999, position: "fixed", top: "0px", left: "0px", right: "0px" }, className: `${G[A]} ${A === "experiences" ? "bg-opacity-0" : "bg-opacity-75"} `, children: [
|
|
6167
|
+
/* @__PURE__ */ y("div", { style: { marginLeft: "auto", marginRight: "auto", maxWidth: "80rem", paddingLeft: C ? "0.5rem" : "1.5rem", paddingRight: C ? "0.5rem" : "1.5rem" }, children: [
|
|
6168
|
+
(A === "goatData" || A === "secondary") && /* @__PURE__ */ i(
|
|
6156
6169
|
zg.div,
|
|
6157
6170
|
{
|
|
6158
|
-
style: { background:
|
|
6171
|
+
style: { background: a[A], position: "absolute", opacity: 0.4, borderRadius: "0.25rem" },
|
|
6159
6172
|
className: "z-20 pointer-events-none",
|
|
6160
6173
|
animate: {
|
|
6161
|
-
top: (
|
|
6162
|
-
left: (
|
|
6163
|
-
width: (
|
|
6164
|
-
height: (
|
|
6174
|
+
top: (I == null ? void 0 : I.top) || 0,
|
|
6175
|
+
left: (I == null ? void 0 : I.left) || 0,
|
|
6176
|
+
width: (I == null ? void 0 : I.width) || 0,
|
|
6177
|
+
height: (I == null ? void 0 : I.height) || 0
|
|
6165
6178
|
}
|
|
6166
6179
|
}
|
|
6167
6180
|
),
|
|
6168
|
-
/* @__PURE__ */
|
|
6169
|
-
/* @__PURE__ */ i("div", { style: { position: "absolute", top: "0px", bottom: "0px", left: "0px", display:
|
|
6170
|
-
/* @__PURE__ */ i("path", { className: A === "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" }),
|
|
6171
|
-
/* @__PURE__ */ i("path", { className: A === "secondary" ? "linedark linedark2" : "line line2", d: "M 20,50 H 80" }),
|
|
6172
|
-
/* @__PURE__ */ i("path", { className: A === "secondary" ? "linedark linedark3" : "line line3", d: "M 20,70.999954 H 80.000231 C 80.000231,70.999954 94.498839,71.182648 94.532987,33.288669 94.543142,22.019327 90.966081,18.329754 85.259173,18.331003 79.552261,18.332249 75.000211,25.000058 75.000211,25.000058 L 25.000021,74.999942" })
|
|
6181
|
+
/* @__PURE__ */ y("div", { style: { position: "relative", display: "flex", height: "4rem", alignItems: "center", justifyContent: "space-between" }, children: [
|
|
6182
|
+
/* @__PURE__ */ i("div", { style: { position: "absolute", top: "0px", bottom: "0px", left: A === "experiences" ? "auto" : "0px", right: A === "experiences" ? "0px" : "auto", display: C ? "flex" : "none", alignItems: "center" }, children: /* @__PURE__ */ i("button", { className: `menu ${s ? A === "secondary" ? "openedark" : A === "experiences" ? "openeExperiences" : "opened" : ""}`, onClick: l, "aria-label": "Main Menu", children: /* @__PURE__ */ y("svg", { width: "45", height: "45", viewBox: "0 0 100 100", style: { fill: "#f9f8f8 !important" }, children: [
|
|
6183
|
+
/* @__PURE__ */ i("path", { className: A === "secondary" ? "linedark linedark1" : A === "experiences" ? "lineExperiences lineExperiences1" : "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" }),
|
|
6184
|
+
/* @__PURE__ */ i("path", { className: A === "secondary" ? "linedark linedark2" : A === "experiences" ? "lineExperiences lineExperiences2" : "line line2", d: "M 20,50 H 80" }),
|
|
6185
|
+
/* @__PURE__ */ i("path", { className: A === "secondary" ? "linedark linedark3" : A === "experiences" ? "lineExperiences lineExperiences3" : "line line3", d: "M 20,70.999954 H 80.000231 C 80.000231,70.999954 94.498839,71.182648 94.532987,33.288669 94.543142,22.019327 90.966081,18.329754 85.259173,18.331003 79.552261,18.332249 75.000211,25.000058 75.000211,25.000058 L 25.000021,74.999942" })
|
|
6173
6186
|
] }) }) }),
|
|
6174
|
-
/* @__PURE__ */
|
|
6175
|
-
/* @__PURE__ */ i("div", { className: "flex flex-shrink-0 items-center", children: /* @__PURE__ */
|
|
6187
|
+
/* @__PURE__ */ y("div", { style: { display: "flex", flex: A === "experiences" && C ? "" : "1 1 0%", alignItems: "center", justifyContent: C ? "center" : A === "experiences" ? "flex-end" : "stretch" }, children: [
|
|
6188
|
+
/* @__PURE__ */ i("div", { className: "flex flex-shrink-0 items-center", style: { paddingLeft: A === "experiences" ? "20px" : "" }, children: /* @__PURE__ */ y("div", { className: "flex flex-col items-center lg:ml-[120px] ml-0", children: [
|
|
6176
6189
|
/* @__PURE__ */ i(
|
|
6177
6190
|
"img",
|
|
6178
6191
|
{
|
|
6179
|
-
className: `${
|
|
6192
|
+
className: `${C ? "hidden" : "block"}`,
|
|
6180
6193
|
style: { height: M && M.trim() !== "" ? M : "40px", width: D && D.trim() !== "" ? D : "65px" },
|
|
6181
6194
|
src: B && B.trim() !== "" ? B : A === "secondary" ? KA : pA,
|
|
6182
6195
|
alt: "Logo"
|
|
@@ -6185,27 +6198,90 @@ const vs = N(
|
|
|
6185
6198
|
/* @__PURE__ */ i(
|
|
6186
6199
|
"img",
|
|
6187
6200
|
{
|
|
6188
|
-
className: `${
|
|
6201
|
+
className: `${C ? "block" : "hidden"}`,
|
|
6189
6202
|
style: { height: M && M.trim() !== "" ? M : "40px", width: D && D.trim() !== "" ? D : "65px" },
|
|
6190
6203
|
src: B && B.trim() !== "" ? B : A === "secondary" ? KA : pA,
|
|
6191
6204
|
alt: "Logo"
|
|
6192
6205
|
}
|
|
6193
6206
|
),
|
|
6194
|
-
(!B || B.trim() === "") && /* @__PURE__ */ i("div", { className: `text-[10px] ${
|
|
6207
|
+
(!B || B.trim() === "") && /* @__PURE__ */ i("div", { className: `text-[10px] ${c[A]} tracking-[4px]`, children: "DATA" })
|
|
6195
6208
|
] }) }),
|
|
6196
|
-
/* @__PURE__ */ i("div", { style: { display:
|
|
6197
|
-
|
|
6209
|
+
/* @__PURE__ */ i("div", { style: { display: C ? "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: V, href: Z, refId: u, open: Y, routerApp: f, link: R }) => /* @__PURE__ */ i("li", { children: /* @__PURE__ */ i(
|
|
6210
|
+
fM,
|
|
6198
6211
|
{
|
|
6199
|
-
|
|
6200
|
-
|
|
6201
|
-
|
|
6202
|
-
|
|
6212
|
+
href: Z,
|
|
6213
|
+
Viewport: U[A],
|
|
6214
|
+
colorButton: q[A],
|
|
6215
|
+
setIsOpen: o,
|
|
6216
|
+
open: Y,
|
|
6217
|
+
routerApp: f,
|
|
6218
|
+
handleOpen: e,
|
|
6219
|
+
handleRouter: () => {
|
|
6220
|
+
t.push(R);
|
|
6221
|
+
},
|
|
6222
|
+
children: /* @__PURE__ */ i(
|
|
6223
|
+
"div",
|
|
6224
|
+
{
|
|
6225
|
+
id: u,
|
|
6226
|
+
ref: E[u],
|
|
6227
|
+
className: `
|
|
6228
|
+
relative inline-block px-2 py-2
|
|
6229
|
+
text-[${q[A]}]
|
|
6230
|
+
after:content-['']
|
|
6231
|
+
after:absolute
|
|
6232
|
+
after:left-0
|
|
6233
|
+
after:bottom-0
|
|
6234
|
+
after:h-[3px]
|
|
6235
|
+
after:w-0
|
|
6236
|
+
${A === "experiences" ? "after:bg-[#6BC1E4]" : "after:bg-transparent"}
|
|
6237
|
+
after:transition-all
|
|
6238
|
+
after:duration-300
|
|
6239
|
+
group-hover:after:w-full
|
|
6240
|
+
`,
|
|
6241
|
+
children: V
|
|
6242
|
+
}
|
|
6243
|
+
)
|
|
6203
6244
|
}
|
|
6204
|
-
) }
|
|
6245
|
+
) }, Z)) }) }) })
|
|
6205
6246
|
] })
|
|
6206
6247
|
] })
|
|
6207
6248
|
] }),
|
|
6208
|
-
|
|
6249
|
+
s && /* @__PURE__ */ i("div", { style: { display: A === "experiences" && C ? "flex" : "", flexDirection: "column", alignItems: "start", marginLeft: A === "experiences" && C ? "50%" : "" }, className: "space-y-1 px-2 pt-2 pb-3", children: g.map(({ label: V, href: Z, open: u, routerApp: Y, link: f }) => /* @__PURE__ */ i(
|
|
6250
|
+
fM,
|
|
6251
|
+
{
|
|
6252
|
+
href: Z,
|
|
6253
|
+
Viewport: U[A],
|
|
6254
|
+
colorButton: q[A],
|
|
6255
|
+
setIsOpen: o,
|
|
6256
|
+
open: u,
|
|
6257
|
+
routerApp: Y,
|
|
6258
|
+
handleOpen: e,
|
|
6259
|
+
handleRouter: () => {
|
|
6260
|
+
t.push(f);
|
|
6261
|
+
},
|
|
6262
|
+
children: /* @__PURE__ */ i(
|
|
6263
|
+
"div",
|
|
6264
|
+
{
|
|
6265
|
+
className: `
|
|
6266
|
+
relative inline-block px-2 py-1
|
|
6267
|
+
text-[${q[A]}]
|
|
6268
|
+
after:content-['']
|
|
6269
|
+
after:absolute
|
|
6270
|
+
after:left-0
|
|
6271
|
+
after:bottom-0
|
|
6272
|
+
after:h-[3px]
|
|
6273
|
+
after:w-0
|
|
6274
|
+
${A === "experiences" ? "after:bg-[#6BC1E4]" : "after:bg-transparent"}
|
|
6275
|
+
after:transition-all
|
|
6276
|
+
after:duration-300
|
|
6277
|
+
group-hover:after:w-full
|
|
6278
|
+
`,
|
|
6279
|
+
children: V
|
|
6280
|
+
}
|
|
6281
|
+
)
|
|
6282
|
+
},
|
|
6283
|
+
Z
|
|
6284
|
+
)) })
|
|
6209
6285
|
] });
|
|
6210
6286
|
}
|
|
6211
6287
|
);
|
|
@@ -6239,15 +6315,15 @@ const Ps = () => ({
|
|
|
6239
6315
|
className: g,
|
|
6240
6316
|
...B
|
|
6241
6317
|
}, M) => {
|
|
6242
|
-
const D = AA(null), t = M || D, e = ht(t, { once: !1 }),
|
|
6318
|
+
const D = AA(null), t = M || D, e = ht(t, { once: !1 }), Q = vg(), w = vg();
|
|
6243
6319
|
return O(() => {
|
|
6244
|
-
t.current && e && (
|
|
6245
|
-
}, [e,
|
|
6320
|
+
t.current && e && (Q.start("visible"), w.start("visible"));
|
|
6321
|
+
}, [e, Q, w, t]), /* @__PURE__ */ i("div", { ref: t, ...B, children: /* @__PURE__ */ i(
|
|
6246
6322
|
zg.div,
|
|
6247
6323
|
{
|
|
6248
6324
|
variants: Ps(),
|
|
6249
6325
|
initial: "hidden",
|
|
6250
|
-
animate:
|
|
6326
|
+
animate: Q,
|
|
6251
6327
|
exit: "hidden",
|
|
6252
6328
|
className: g,
|
|
6253
6329
|
children: A
|
|
@@ -6265,9 +6341,9 @@ const OA = N(
|
|
|
6265
6341
|
delay: D = 0.5,
|
|
6266
6342
|
...t
|
|
6267
6343
|
}, e) => {
|
|
6268
|
-
const
|
|
6269
|
-
|
|
6270
|
-
}, C = ht(
|
|
6344
|
+
const Q = AA(null), w = (n) => {
|
|
6345
|
+
Q.current = n, typeof e == "function" ? e(n) : e && (e.current = n);
|
|
6346
|
+
}, C = ht(Q, { once: !1 }), s = vg(), o = vg(), I = {
|
|
6271
6347
|
primary: "#1F2937",
|
|
6272
6348
|
secondary: "#ededed",
|
|
6273
6349
|
vividPink: "#ff0145",
|
|
@@ -6281,7 +6357,7 @@ const OA = N(
|
|
|
6281
6357
|
};
|
|
6282
6358
|
return O(() => {
|
|
6283
6359
|
C && (s.start("visible"), o.start("visible"));
|
|
6284
|
-
}, [C, s, o]), /* @__PURE__ */
|
|
6360
|
+
}, [C, s, o]), /* @__PURE__ */ y("div", { ref: w, ...t, className: "relative overflow-hidden w-fit", children: [
|
|
6285
6361
|
/* @__PURE__ */ i(
|
|
6286
6362
|
zg.div,
|
|
6287
6363
|
{
|
|
@@ -6330,30 +6406,30 @@ const Ls = N(
|
|
|
6330
6406
|
explore: D = {},
|
|
6331
6407
|
overlap: t = {},
|
|
6332
6408
|
nameImages: e = !1,
|
|
6333
|
-
nameImagesBotton:
|
|
6334
|
-
handletext4:
|
|
6409
|
+
nameImagesBotton: Q = !1,
|
|
6410
|
+
handletext4: w,
|
|
6335
6411
|
handletext5: C,
|
|
6336
6412
|
...s
|
|
6337
6413
|
}, o) => {
|
|
6338
|
-
var
|
|
6339
|
-
const [I, n] =
|
|
6414
|
+
var Z, u;
|
|
6415
|
+
const [I, n] = z(0), r = AA(null), E = AA(null), l = AA(null), G = (Y) => {
|
|
6340
6416
|
E.current = Y.touches[0].clientX;
|
|
6341
|
-
},
|
|
6342
|
-
|
|
6343
|
-
},
|
|
6344
|
-
if (!E.current || !
|
|
6345
|
-
const Y = E.current -
|
|
6346
|
-
Y > 50 ? I < A.length - 1 && n(I + 1) : Y < -50 && I > 0 && n(I - 1), E.current = null,
|
|
6347
|
-
},
|
|
6417
|
+
}, a = (Y) => {
|
|
6418
|
+
l.current = Y.touches[0].clientX;
|
|
6419
|
+
}, U = () => {
|
|
6420
|
+
if (!E.current || !l.current) return;
|
|
6421
|
+
const Y = E.current - l.current;
|
|
6422
|
+
Y > 50 ? I < A.length - 1 && n(I + 1) : Y < -50 && I > 0 && n(I - 1), E.current = null, l.current = null;
|
|
6423
|
+
}, q = () => {
|
|
6348
6424
|
n((Y) => (Y + 1) % A.length);
|
|
6349
6425
|
};
|
|
6350
|
-
if (O(() => (A.length > 0 && (r.current = setInterval(
|
|
6426
|
+
if (O(() => (A.length > 0 && (r.current = setInterval(q, B)), () => {
|
|
6351
6427
|
r.current && clearInterval(r.current);
|
|
6352
6428
|
}), [B, A.length]), !A || A.length === 0)
|
|
6353
6429
|
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" }) });
|
|
6354
|
-
const
|
|
6355
|
-
const
|
|
6356
|
-
|
|
6430
|
+
const c = (Y) => {
|
|
6431
|
+
const f = document.getElementById(Y.slice(1));
|
|
6432
|
+
f && f.scrollIntoView({ behavior: "smooth" });
|
|
6357
6433
|
}, V = {
|
|
6358
6434
|
primary: "text-white",
|
|
6359
6435
|
secondary: "text-white",
|
|
@@ -6366,28 +6442,28 @@ const Ls = N(
|
|
|
6366
6442
|
tertiary: "text--[#d4d3d3]",
|
|
6367
6443
|
experiences: "text-[#a8dbce]"
|
|
6368
6444
|
};
|
|
6369
|
-
return /* @__PURE__ */
|
|
6445
|
+
return /* @__PURE__ */ y(
|
|
6370
6446
|
"header",
|
|
6371
6447
|
{
|
|
6372
6448
|
ref: o,
|
|
6373
6449
|
...s,
|
|
6374
6450
|
style: { height: M, position: "relative", width: "100%", overflow: "hidden" },
|
|
6375
|
-
onTouchStart:
|
|
6376
|
-
onTouchMove:
|
|
6377
|
-
onTouchEnd:
|
|
6451
|
+
onTouchStart: G,
|
|
6452
|
+
onTouchMove: a,
|
|
6453
|
+
onTouchEnd: U,
|
|
6378
6454
|
children: [
|
|
6379
|
-
t && /* @__PURE__ */
|
|
6380
|
-
/* @__PURE__ */ i(lA, { children: /* @__PURE__ */
|
|
6455
|
+
t && /* @__PURE__ */ y("div", { style: { position: "absolute", inset: "0px", display: "flex", flexDirection: "column", alignItems: "center", justifyContent: "center" }, className: "text-center z-20 text-white", children: [
|
|
6456
|
+
/* @__PURE__ */ i(lA, { children: /* @__PURE__ */ y("h1", { className: "text-3xl md:text-5xl font-bold animate-fade-in-up", children: [
|
|
6381
6457
|
t.text1,
|
|
6382
6458
|
/* @__PURE__ */ i("span", { className: `${V[g]}`, children: t.text2 })
|
|
6383
6459
|
] }) }),
|
|
6384
6460
|
/* @__PURE__ */ i(lA, { children: /* @__PURE__ */ i("p", { className: "text-sm md:text-lg mb-6", children: t.text3 }) }),
|
|
6385
|
-
/* @__PURE__ */
|
|
6386
|
-
t.text4 && /* @__PURE__ */ i(OA, { variant: g, duration: 1, delay: 1, children: /* @__PURE__ */ i("div", { className: "flex", style: { padding: "5px" }, children: /* @__PURE__ */ i(Cg, { variant: g, onClick:
|
|
6461
|
+
/* @__PURE__ */ y("div", { className: "flex gap-4", children: [
|
|
6462
|
+
t.text4 && /* @__PURE__ */ i(OA, { variant: g, duration: 1, delay: 1, children: /* @__PURE__ */ i("div", { className: "flex", style: { padding: "5px" }, children: /* @__PURE__ */ i(Cg, { variant: g, onClick: w, size: "small", label: t.text4 }) }) }),
|
|
6387
6463
|
t.text5 && /* @__PURE__ */ i(OA, { variant: "tertiary", duration: 1, delay: 1, children: /* @__PURE__ */ i("div", { className: "flex", style: { padding: "5px" }, children: /* @__PURE__ */ i(Cg, { variant: "tertiary", onClick: C, size: "small", label: t.text5 }) }) })
|
|
6388
6464
|
] })
|
|
6389
6465
|
] }),
|
|
6390
|
-
(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(lA, { children: /* @__PURE__ */
|
|
6466
|
+
(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(lA, { children: /* @__PURE__ */ y("a", { onClick: () => D.content && c(D.content), className: "flex flex-col items-center text-white cursor-pointer", children: [
|
|
6391
6467
|
/* @__PURE__ */ i("span", { className: "mb-2 text-lg font-medium", children: "Explora más" }),
|
|
6392
6468
|
/* @__PURE__ */ i(
|
|
6393
6469
|
"svg",
|
|
@@ -6409,8 +6485,8 @@ const Ls = N(
|
|
|
6409
6485
|
}
|
|
6410
6486
|
)
|
|
6411
6487
|
] }) }) }),
|
|
6412
|
-
e && /* @__PURE__ */ i("div", { className: "absolute inset-0 flex flex-col justify-center items-center text-white z-10 transition-opacity duration-700 ease-in-out", children: /* @__PURE__ */ i(lA, { children: /* @__PURE__ */ i("h1", { className: "text-4xl font-bold", children: ((
|
|
6413
|
-
|
|
6488
|
+
e && /* @__PURE__ */ i("div", { className: "absolute inset-0 flex flex-col justify-center items-center text-white z-10 transition-opacity duration-700 ease-in-out", children: /* @__PURE__ */ i(lA, { children: /* @__PURE__ */ i("h1", { className: "text-4xl font-bold", children: ((Z = A[I]) == null ? void 0 : Z.alt) || "Título dinámico" }, I) }) }),
|
|
6489
|
+
Q && /* @__PURE__ */ i(lA, { children: /* @__PURE__ */ i("div", { className: "absolute bottom-8 left-1/2 transform -translate-x-1/2 text-center z-10", children: /* @__PURE__ */ i("p", { className: "text-lg font-medium text-white", children: (u = A[I]) == null ? void 0 : u.alt }) }) }),
|
|
6414
6490
|
/* @__PURE__ */ i(
|
|
6415
6491
|
"div",
|
|
6416
6492
|
{
|
|
@@ -6419,11 +6495,11 @@ const Ls = N(
|
|
|
6419
6495
|
transform: `translateX(-${I * 100}%)`,
|
|
6420
6496
|
height: M
|
|
6421
6497
|
},
|
|
6422
|
-
children: A.map(({ src: Y, alt:
|
|
6498
|
+
children: A.map(({ src: Y, alt: f, href: R }, MA) => /* @__PURE__ */ i("div", { id: "large-header", className: "relative w-full flex-shrink-0 large-header", children: R ? /* @__PURE__ */ i("a", { href: R, children: /* @__PURE__ */ i(
|
|
6423
6499
|
"img",
|
|
6424
6500
|
{
|
|
6425
6501
|
src: Y,
|
|
6426
|
-
alt:
|
|
6502
|
+
alt: f,
|
|
6427
6503
|
className: "w-full h-full object-cover",
|
|
6428
6504
|
style: { height: M }
|
|
6429
6505
|
}
|
|
@@ -6431,20 +6507,20 @@ const Ls = N(
|
|
|
6431
6507
|
"img",
|
|
6432
6508
|
{
|
|
6433
6509
|
src: Y,
|
|
6434
|
-
alt:
|
|
6510
|
+
alt: f,
|
|
6435
6511
|
className: "w-full h-full object-cover",
|
|
6436
6512
|
style: { height: M }
|
|
6437
6513
|
}
|
|
6438
6514
|
) }, MA))
|
|
6439
6515
|
}
|
|
6440
6516
|
),
|
|
6441
|
-
/* @__PURE__ */ i("div", { className: "absolute bottom-4 left-1/2 transform -translate-x-1/2 flex gap-2 z-30", children: A.map((Y,
|
|
6517
|
+
/* @__PURE__ */ i("div", { className: "absolute bottom-4 left-1/2 transform -translate-x-1/2 flex gap-2 z-30", children: A.map((Y, f) => /* @__PURE__ */ i(OA, { variant: "tertiary", duration: 1, delay: 1, children: /* @__PURE__ */ i(
|
|
6442
6518
|
"button",
|
|
6443
6519
|
{
|
|
6444
|
-
onClick: () => n(
|
|
6445
|
-
className: `w-3 h-3 rounded-full ${I ===
|
|
6520
|
+
onClick: () => n(f),
|
|
6521
|
+
className: `w-3 h-3 rounded-full ${I === f ? "bg-white" : "bg-gray-400"}`
|
|
6446
6522
|
},
|
|
6447
|
-
|
|
6523
|
+
f
|
|
6448
6524
|
) })) })
|
|
6449
6525
|
]
|
|
6450
6526
|
}
|
|
@@ -6453,11 +6529,11 @@ const Ls = N(
|
|
|
6453
6529
|
);
|
|
6454
6530
|
Ls.displayName = "Header";
|
|
6455
6531
|
const Jt = ({ infoText: A, disabled: g = !1, bgStyles: B }) => {
|
|
6456
|
-
const [M, D] =
|
|
6457
|
-
return /* @__PURE__ */
|
|
6532
|
+
const [M, D] = z(!1);
|
|
6533
|
+
return /* @__PURE__ */ y(
|
|
6458
6534
|
"div",
|
|
6459
6535
|
{
|
|
6460
|
-
className:
|
|
6536
|
+
className: h("relative flex items-center", {
|
|
6461
6537
|
"cursor-not-allowed opacity-60": g,
|
|
6462
6538
|
"cursor-pointer": !g
|
|
6463
6539
|
}),
|
|
@@ -6468,7 +6544,7 @@ const Jt = ({ infoText: A, disabled: g = !1, bgStyles: B }) => {
|
|
|
6468
6544
|
Bw,
|
|
6469
6545
|
{
|
|
6470
6546
|
size: 13,
|
|
6471
|
-
className:
|
|
6547
|
+
className: h("ml-1", {
|
|
6472
6548
|
"text-gray-400": g,
|
|
6473
6549
|
"text-gray-700": !g
|
|
6474
6550
|
})
|
|
@@ -6487,8 +6563,8 @@ const Jt = ({ infoText: A, disabled: g = !1, bgStyles: B }) => {
|
|
|
6487
6563
|
icon: D,
|
|
6488
6564
|
placeholder: t = "Enter text",
|
|
6489
6565
|
title: e,
|
|
6490
|
-
info:
|
|
6491
|
-
infoText:
|
|
6566
|
+
info: Q = !1,
|
|
6567
|
+
infoText: w,
|
|
6492
6568
|
positionIcon: C = "left",
|
|
6493
6569
|
type: s = "text",
|
|
6494
6570
|
error: o = !1,
|
|
@@ -6496,11 +6572,11 @@ const Jt = ({ infoText: A, disabled: g = !1, bgStyles: B }) => {
|
|
|
6496
6572
|
className: n,
|
|
6497
6573
|
...r
|
|
6498
6574
|
}, E) => {
|
|
6499
|
-
const [
|
|
6500
|
-
|
|
6575
|
+
const [l, G] = z(s), a = () => {
|
|
6576
|
+
G(
|
|
6501
6577
|
(Y) => Y === "password" ? "text" : "password"
|
|
6502
6578
|
);
|
|
6503
|
-
},
|
|
6579
|
+
}, U = h(
|
|
6504
6580
|
"rounded-lg font-medium focus:outline-none focus:ring-2 focus:ring-offset-2 w-full",
|
|
6505
6581
|
{
|
|
6506
6582
|
"text-gray-900": A !== "secondary",
|
|
@@ -6508,7 +6584,7 @@ const Jt = ({ infoText: A, disabled: g = !1, bgStyles: B }) => {
|
|
|
6508
6584
|
"bg-gray-200": B,
|
|
6509
6585
|
"border border-[#b91c1c] focus:ring-[#b91c1c]": o
|
|
6510
6586
|
}
|
|
6511
|
-
),
|
|
6587
|
+
), q = {
|
|
6512
6588
|
primary: "border border-[#1F2937] focus:ring-[#1F2937]",
|
|
6513
6589
|
secondary: "border border-[#d4d3d3] bg-transparent focus:ring-[#1F2937]",
|
|
6514
6590
|
vividPink: "border border-[#ff0145] focus:ring-[#ff0145]",
|
|
@@ -6518,7 +6594,7 @@ const Jt = ({ infoText: A, disabled: g = !1, bgStyles: B }) => {
|
|
|
6518
6594
|
warning: "border border-[#f59e0b] focus:ring-[#f59e0b]",
|
|
6519
6595
|
success: "border border-[#047857] focus:ring-[#047857]",
|
|
6520
6596
|
tertiary: "border border-[#d4d3d3] bg-[#f8f9fa] focus:ring-[#1F2937]"
|
|
6521
|
-
},
|
|
6597
|
+
}, c = {
|
|
6522
6598
|
primary: "#1F2937",
|
|
6523
6599
|
secondary: "#73787f",
|
|
6524
6600
|
vividPink: "#ff0145",
|
|
@@ -6532,22 +6608,22 @@ const Jt = ({ infoText: A, disabled: g = !1, bgStyles: B }) => {
|
|
|
6532
6608
|
small: "px-4 py-1.5 text-xs",
|
|
6533
6609
|
medium: "px-6 py-2.5 text-base",
|
|
6534
6610
|
large: "px-8 py-3 text-lg"
|
|
6535
|
-
},
|
|
6536
|
-
return /* @__PURE__ */
|
|
6537
|
-
e && /* @__PURE__ */
|
|
6611
|
+
}, Z = () => M === "home" ? /* @__PURE__ */ i(pB, { size: g === "small" ? 15 : 20, color: c[A] }) : M === "Left" ? /* @__PURE__ */ i(mB, { size: g === "small" ? 15 : 20, color: c[A] }) : M === "right" ? /* @__PURE__ */ i(yB, { size: g === "small" ? 15 : 20, color: c[A] }) : M === "save" ? /* @__PURE__ */ i(zB, { size: g === "small" ? 15 : 20, color: c[A] }) : M === "more" ? /* @__PURE__ */ i(fB, { size: g === "small" ? 15 : 20, color: c[A] }) : M === "update" ? /* @__PURE__ */ i(qB, { size: g === "small" ? 15 : 20, color: c[A] }) : M === "attach" ? /* @__PURE__ */ i(RB, { size: g === "small" ? 15 : 20, color: c[A] }) : M === "send" ? /* @__PURE__ */ i(LB, { size: g === "small" ? 15 : 20, color: c[A] }) : M === "delete" ? /* @__PURE__ */ i(UB, { size: g === "small" ? 15 : 20, color: c[A] }) : M === "edit" ? /* @__PURE__ */ i(ZB, { size: g === "small" ? 15 : 20, color: c[A] }) : M === "login" ? /* @__PURE__ */ i(PB, { size: g === "small" ? 15 : 20, color: c[A] }) : M === "reset" ? /* @__PURE__ */ i(VB, { size: g === "small" ? 15 : 20, color: c[A] }) : M === "add" ? /* @__PURE__ */ i(dB, { size: g === "small" ? 15 : 20, color: c[A] }) : M === "exit" ? /* @__PURE__ */ i(vB, { size: g === "small" ? 15 : 20, color: c[A] }) : M === "off" ? /* @__PURE__ */ i(JB, { 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(kB, { size: g === "small" ? 15 : 20, color: c[A] }) : M === "futbol" ? /* @__PURE__ */ i(hB, { size: g === "small" ? 15 : 20, color: c[A] }) : null, u = () => _.isValidElement(D) ? _.cloneElement(D, { className: "w-5 h-5" }) : Z();
|
|
6612
|
+
return /* @__PURE__ */ y("div", { className: "relative", children: [
|
|
6613
|
+
e && /* @__PURE__ */ y("div", { className: "flex items-center text-xs mb-1 font-medium text-gray-800", children: [
|
|
6538
6614
|
/* @__PURE__ */ i("span", { style: { color: A === "tertiary" ? "#73787f" : "" }, children: e }),
|
|
6539
|
-
|
|
6615
|
+
Q && w && /* @__PURE__ */ i(Jt, { infoText: w, disabled: B, bgStyles: c[A] })
|
|
6540
6616
|
] }),
|
|
6541
|
-
/* @__PURE__ */
|
|
6542
|
-
D && C === "left" && /* @__PURE__ */ i("span", { className: "absolute left-3", children:
|
|
6617
|
+
/* @__PURE__ */ y("div", { className: "relative flex items-center", children: [
|
|
6618
|
+
D && C === "left" && /* @__PURE__ */ i("span", { className: "absolute left-3", children: u() }),
|
|
6543
6619
|
/* @__PURE__ */ i(
|
|
6544
6620
|
"input",
|
|
6545
6621
|
{
|
|
6546
6622
|
ref: E,
|
|
6547
|
-
type:
|
|
6548
|
-
className:
|
|
6549
|
-
|
|
6550
|
-
o ? "border-[#b91c1c] focus:ring-[#b91c1c]" :
|
|
6623
|
+
type: l,
|
|
6624
|
+
className: h(
|
|
6625
|
+
U,
|
|
6626
|
+
o ? "border-[#b91c1c] focus:ring-[#b91c1c]" : q[A],
|
|
6551
6627
|
g in V ? V[g] : "",
|
|
6552
6628
|
{
|
|
6553
6629
|
"pl-10": D && C === "left",
|
|
@@ -6565,12 +6641,12 @@ const Jt = ({ infoText: A, disabled: g = !1, bgStyles: B }) => {
|
|
|
6565
6641
|
"span",
|
|
6566
6642
|
{
|
|
6567
6643
|
className: "absolute right-3 cursor-pointer",
|
|
6568
|
-
onClick:
|
|
6569
|
-
children:
|
|
6644
|
+
onClick: a,
|
|
6645
|
+
children: l === "password" ? /* @__PURE__ */ i(Aw, { size: 20, color: c[A] }) : /* @__PURE__ */ i(gw, { size: 20, color: c[A] })
|
|
6570
6646
|
}
|
|
6571
6647
|
)
|
|
6572
6648
|
] }),
|
|
6573
|
-
o && I && /* @__PURE__ */
|
|
6649
|
+
o && I && /* @__PURE__ */ y("div", { className: "flex items-center gap-2 text-red-600 text-xs mt-1", children: [
|
|
6574
6650
|
/* @__PURE__ */ i(xD, { size: 16 }),
|
|
6575
6651
|
/* @__PURE__ */ i("span", { children: I })
|
|
6576
6652
|
] })
|
|
@@ -6587,8 +6663,8 @@ const bs = _.forwardRef(
|
|
|
6587
6663
|
icon: D,
|
|
6588
6664
|
placeholder: t = "Select an option",
|
|
6589
6665
|
title: e,
|
|
6590
|
-
info:
|
|
6591
|
-
infoText:
|
|
6666
|
+
info: Q = !1,
|
|
6667
|
+
infoText: w,
|
|
6592
6668
|
positionIcon: C = "left",
|
|
6593
6669
|
error: s = !1,
|
|
6594
6670
|
errorMessage: o = "",
|
|
@@ -6596,7 +6672,7 @@ const bs = _.forwardRef(
|
|
|
6596
6672
|
className: n,
|
|
6597
6673
|
...r
|
|
6598
6674
|
}, E) => {
|
|
6599
|
-
const
|
|
6675
|
+
const l = h(
|
|
6600
6676
|
"rounded-lg font-medium focus:outline-none focus:ring-2 focus:ring-offset-2 w-full",
|
|
6601
6677
|
{
|
|
6602
6678
|
"text-gray-900": A !== "secondary",
|
|
@@ -6604,7 +6680,7 @@ const bs = _.forwardRef(
|
|
|
6604
6680
|
"bg-gray-200": B,
|
|
6605
6681
|
"border border-[#b91c1c] focus:ring-[#b91c1c]": s
|
|
6606
6682
|
}
|
|
6607
|
-
),
|
|
6683
|
+
), G = {
|
|
6608
6684
|
primary: "border border-[#1F2937] focus:ring-[#1F2937]",
|
|
6609
6685
|
secondary: "border border-[#d4d3d3] bg-transparent focus:ring-[#1F2937]",
|
|
6610
6686
|
vividPink: "border border-[#ff0145] focus:ring-[#ff0145]",
|
|
@@ -6614,7 +6690,7 @@ const bs = _.forwardRef(
|
|
|
6614
6690
|
warning: "border border-[#f59e0b] focus:ring-[#f59e0b]",
|
|
6615
6691
|
success: "border border-[#047857] focus:ring-[#047857]",
|
|
6616
6692
|
tertiary: "border border-[#d4d3d3] bg-[#f8f9fa] focus:ring-[#1F2937]"
|
|
6617
|
-
},
|
|
6693
|
+
}, a = {
|
|
6618
6694
|
primary: "#1F2937",
|
|
6619
6695
|
secondary: "#73787f",
|
|
6620
6696
|
vividPink: "#ff0145",
|
|
@@ -6624,26 +6700,26 @@ const bs = _.forwardRef(
|
|
|
6624
6700
|
warning: "#f59e0b",
|
|
6625
6701
|
success: "#047857",
|
|
6626
6702
|
tertiary: "#73787f"
|
|
6627
|
-
},
|
|
6703
|
+
}, U = {
|
|
6628
6704
|
small: "px-4 py-1.5 text-xs",
|
|
6629
6705
|
medium: "px-6 py-2.5 text-base",
|
|
6630
6706
|
large: "px-8 py-3 text-lg"
|
|
6631
|
-
},
|
|
6632
|
-
return /* @__PURE__ */
|
|
6633
|
-
e && /* @__PURE__ */
|
|
6707
|
+
}, q = () => M === "home" ? /* @__PURE__ */ i(pB, { size: g === "small" ? 15 : 20, color: a[A] }) : M === "Left" ? /* @__PURE__ */ i(mB, { size: g === "small" ? 15 : 20, color: a[A] }) : M === "right" ? /* @__PURE__ */ i(yB, { size: g === "small" ? 15 : 20, color: a[A] }) : M === "save" ? /* @__PURE__ */ i(zB, { size: g === "small" ? 15 : 20, color: a[A] }) : M === "more" ? /* @__PURE__ */ i(fB, { size: g === "small" ? 15 : 20, color: a[A] }) : M === "update" ? /* @__PURE__ */ i(qB, { size: g === "small" ? 15 : 20, color: a[A] }) : M === "attach" ? /* @__PURE__ */ i(RB, { size: g === "small" ? 15 : 20, color: a[A] }) : M === "send" ? /* @__PURE__ */ i(LB, { size: g === "small" ? 15 : 20, color: a[A] }) : M === "delete" ? /* @__PURE__ */ i(UB, { size: g === "small" ? 15 : 20, color: a[A] }) : M === "edit" ? /* @__PURE__ */ i(ZB, { size: g === "small" ? 15 : 20, color: a[A] }) : M === "login" ? /* @__PURE__ */ i(PB, { size: g === "small" ? 15 : 20, color: a[A] }) : M === "reset" ? /* @__PURE__ */ i(VB, { size: g === "small" ? 15 : 20, color: a[A] }) : M === "add" ? /* @__PURE__ */ i(dB, { size: g === "small" ? 15 : 20, color: a[A] }) : M === "exit" ? /* @__PURE__ */ i(vB, { size: g === "small" ? 15 : 20, color: a[A] }) : M === "off" ? /* @__PURE__ */ i(JB, { size: g === "small" ? 15 : 20, color: a[A] }) : M === "calculator" ? /* @__PURE__ */ i(KB, { size: g === "small" ? 15 : 20, color: a[A] }) : M === "list" ? /* @__PURE__ */ i(kB, { size: g === "small" ? 15 : 20, color: a[A] }) : M === "futbol" ? /* @__PURE__ */ i(hB, { size: g === "small" ? 15 : 20, color: a[A] }) : null, c = () => _.isValidElement(D) ? _.cloneElement(D, { className: "w-5 h-5" }) : q();
|
|
6708
|
+
return /* @__PURE__ */ y("div", { className: "relative", children: [
|
|
6709
|
+
e && /* @__PURE__ */ y("div", { className: "flex items-center text-xs mb-1 font-medium text-gray-800", children: [
|
|
6634
6710
|
/* @__PURE__ */ i("span", { style: { color: A === "tertiary" ? "#73787f" : "" }, children: e }),
|
|
6635
|
-
|
|
6711
|
+
Q && w && /* @__PURE__ */ i(Jt, { infoText: w, disabled: B, bgStyles: a[A] })
|
|
6636
6712
|
] }),
|
|
6637
|
-
/* @__PURE__ */
|
|
6638
|
-
D && C === "left" && /* @__PURE__ */ i("span", { className: "absolute left-3", children:
|
|
6639
|
-
/* @__PURE__ */
|
|
6713
|
+
/* @__PURE__ */ y("div", { className: "relative flex items-center", children: [
|
|
6714
|
+
D && C === "left" && /* @__PURE__ */ i("span", { className: "absolute left-3", children: c() }),
|
|
6715
|
+
/* @__PURE__ */ y(
|
|
6640
6716
|
"select",
|
|
6641
6717
|
{
|
|
6642
6718
|
ref: E,
|
|
6643
|
-
className:
|
|
6644
|
-
|
|
6645
|
-
s ? "border-[#b91c1c] focus:ring-[#b91c1c]" :
|
|
6646
|
-
g in
|
|
6719
|
+
className: h(
|
|
6720
|
+
l,
|
|
6721
|
+
s ? "border-[#b91c1c] focus:ring-[#b91c1c]" : G[A],
|
|
6722
|
+
g in U ? U[g] : "",
|
|
6647
6723
|
{
|
|
6648
6724
|
"pl-10": D && C === "left",
|
|
6649
6725
|
"pr-10": D && C === "right",
|
|
@@ -6660,7 +6736,7 @@ const bs = _.forwardRef(
|
|
|
6660
6736
|
value: "",
|
|
6661
6737
|
disabled: !0,
|
|
6662
6738
|
selected: !0,
|
|
6663
|
-
className: `bg-[${
|
|
6739
|
+
className: `bg-[${a[A]}] text-white text-sm`,
|
|
6664
6740
|
children: t
|
|
6665
6741
|
}
|
|
6666
6742
|
),
|
|
@@ -6668,7 +6744,7 @@ const bs = _.forwardRef(
|
|
|
6668
6744
|
"option",
|
|
6669
6745
|
{
|
|
6670
6746
|
value: V.value,
|
|
6671
|
-
className: `bg-[${
|
|
6747
|
+
className: `bg-[${a[A]}] text-white text-sm`,
|
|
6672
6748
|
children: V.label
|
|
6673
6749
|
},
|
|
6674
6750
|
V.value
|
|
@@ -6677,7 +6753,7 @@ const bs = _.forwardRef(
|
|
|
6677
6753
|
}
|
|
6678
6754
|
)
|
|
6679
6755
|
] }),
|
|
6680
|
-
s && o && /* @__PURE__ */
|
|
6756
|
+
s && o && /* @__PURE__ */ y("div", { className: "flex items-center gap-2 text-red-600 text-xs mt-1", children: [
|
|
6681
6757
|
/* @__PURE__ */ i(xD, { size: 16 }),
|
|
6682
6758
|
/* @__PURE__ */ i("span", { children: o })
|
|
6683
6759
|
] })
|
|
@@ -6694,49 +6770,49 @@ const Os = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAEZUAAATaCAYAAAA0mz/uAA
|
|
|
6694
6770
|
list: D = [],
|
|
6695
6771
|
dataFiscal: t = {},
|
|
6696
6772
|
logo: e,
|
|
6697
|
-
router:
|
|
6698
|
-
extraComponent:
|
|
6773
|
+
router: Q,
|
|
6774
|
+
extraComponent: w,
|
|
6699
6775
|
heightLogo: C = "60px",
|
|
6700
6776
|
widthLogo: s = "85px",
|
|
6701
6777
|
company: o = "2025 GOAT DATA",
|
|
6702
6778
|
...I
|
|
6703
6779
|
}, n) => {
|
|
6704
|
-
const [r] =
|
|
6780
|
+
const [r] = z("Hola, Necesito más información!"), E = `
|
|
6705
6781
|
p-2 rounded-lg text-sm bg-transparent opacity-70
|
|
6706
6782
|
cursor-pointer tracking-widest
|
|
6707
|
-
`,
|
|
6783
|
+
`, l = {
|
|
6708
6784
|
goatData: "bg-zinc-800",
|
|
6709
6785
|
secondary: "bg-[#acaaaa]",
|
|
6710
6786
|
experiences: "bg-[#a8dbce]"
|
|
6711
|
-
},
|
|
6787
|
+
}, G = {
|
|
6712
6788
|
goatData: "bg-zinc-600",
|
|
6713
6789
|
secondary: "bg-zinc-800",
|
|
6714
6790
|
experiences: "bg-zinc-800"
|
|
6715
|
-
}, c = (Y) => {
|
|
6716
|
-
const q = Y, P = encodeURIComponent(r), MA = `https://api.whatsapp.com/send?phone=${q}&text=${P}`;
|
|
6717
|
-
window.open(MA, "_blank");
|
|
6718
|
-
}, y = (Y) => {
|
|
6719
|
-
const q = `mailto:${Y}?subject=Solicitud&body=${r}`;
|
|
6720
|
-
window.open(q);
|
|
6721
|
-
}, Z = (Y) => {
|
|
6722
|
-
const P = `https://www.google.com/maps/search/?api=1&query=${encodeURIComponent(Y)}`;
|
|
6723
|
-
window.open(P, "_blank");
|
|
6724
6791
|
}, a = (Y) => {
|
|
6725
|
-
const
|
|
6726
|
-
|
|
6792
|
+
const f = Y, R = encodeURIComponent(r), MA = `https://api.whatsapp.com/send?phone=${f}&text=${R}`;
|
|
6793
|
+
window.open(MA, "_blank");
|
|
6794
|
+
}, U = (Y) => {
|
|
6795
|
+
const f = `mailto:${Y}?subject=Solicitud&body=${r}`;
|
|
6796
|
+
window.open(f);
|
|
6797
|
+
}, q = (Y) => {
|
|
6798
|
+
const R = `https://www.google.com/maps/search/?api=1&query=${encodeURIComponent(Y)}`;
|
|
6799
|
+
window.open(R, "_blank");
|
|
6800
|
+
}, c = (Y) => {
|
|
6801
|
+
const f = document.getElementById(Y.slice(1));
|
|
6802
|
+
f && f.scrollIntoView({ behavior: "smooth" });
|
|
6727
6803
|
}, V = (Y) => {
|
|
6728
6804
|
window.open(Y, "_blank");
|
|
6729
|
-
},
|
|
6805
|
+
}, Z = {
|
|
6730
6806
|
goatData: "text-white",
|
|
6731
6807
|
secondary: "text-[#1F2937]",
|
|
6732
6808
|
experiences: "text-[#1F2937]"
|
|
6733
|
-
},
|
|
6734
|
-
Y.link &&
|
|
6809
|
+
}, u = (Y) => {
|
|
6810
|
+
Y.link && Q && Q.push(Y.link);
|
|
6735
6811
|
};
|
|
6736
|
-
return /* @__PURE__ */
|
|
6737
|
-
/* @__PURE__ */
|
|
6738
|
-
/* @__PURE__ */
|
|
6739
|
-
/* @__PURE__ */
|
|
6812
|
+
return /* @__PURE__ */ y("footer", { ref: n, ...I, className: `${l[A]} ${Z[A]}`, style: { paddingTop: "40px" }, children: [
|
|
6813
|
+
/* @__PURE__ */ y("div", { className: "container mx-auto px-4 md:px-8", children: [
|
|
6814
|
+
/* @__PURE__ */ y("div", { className: "grid grid-cols-1 sm:grid-cols-2 md:grid-cols-3 lg:grid-cols-5 gap-8", children: [
|
|
6815
|
+
/* @__PURE__ */ y("div", { className: "flex flex-col items-center", children: [
|
|
6740
6816
|
/* @__PURE__ */ i(
|
|
6741
6817
|
"img",
|
|
6742
6818
|
{
|
|
@@ -6745,51 +6821,51 @@ const Os = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAEZUAAATaCAYAAAA0mz/uAA
|
|
|
6745
6821
|
alt: "logo"
|
|
6746
6822
|
}
|
|
6747
6823
|
),
|
|
6748
|
-
(!e || e.trim() === "") && /* @__PURE__ */ i("div", { className: `text-[14x] ${
|
|
6824
|
+
(!e || e.trim() === "") && /* @__PURE__ */ i("div", { className: `text-[14x] ${Z[A]} tracking-[4px]`, children: "DATA" })
|
|
6749
6825
|
] }),
|
|
6750
|
-
/* @__PURE__ */
|
|
6826
|
+
/* @__PURE__ */ y("div", { className: "flex flex-col items-center", children: [
|
|
6751
6827
|
/* @__PURE__ */ i("h2", { className: "text-lg font-semibold mb-4", children: "Enlaces Rápidos" }),
|
|
6752
|
-
g.length > 0 && /* @__PURE__ */ i("div", { className: "text-center sm:text-left", style: { display: "flex", flexDirection: "column", justifyContent: "end" }, children: g.map((Y,
|
|
6753
|
-
|
|
6754
|
-
}, children: Y.label }) },
|
|
6755
|
-
D.length > 0 && /* @__PURE__ */ i("div", { className: "text-center sm:text-left", style: { display: "flex", flexDirection: "column", justifyContent: "end" }, children: D.map((Y,
|
|
6756
|
-
|
|
6757
|
-
}, children: Y.label }) },
|
|
6828
|
+
g.length > 0 && /* @__PURE__ */ i("div", { className: "text-center sm:text-left", style: { display: "flex", flexDirection: "column", justifyContent: "end" }, children: g.map((Y, f) => /* @__PURE__ */ i("div", { children: /* @__PURE__ */ i("button", { className: E, onClick: () => {
|
|
6829
|
+
c(Y.href);
|
|
6830
|
+
}, children: Y.label }) }, f)) }),
|
|
6831
|
+
D.length > 0 && /* @__PURE__ */ i("div", { className: "text-center sm:text-left", style: { display: "flex", flexDirection: "column", justifyContent: "end" }, children: D.map((Y, f) => /* @__PURE__ */ i("div", { children: /* @__PURE__ */ i("button", { className: E, onClick: () => {
|
|
6832
|
+
u(Y);
|
|
6833
|
+
}, children: Y.label }) }, f)) })
|
|
6758
6834
|
] }),
|
|
6759
|
-
/* @__PURE__ */
|
|
6835
|
+
/* @__PURE__ */ y("div", { className: "flex flex-col items-center", children: [
|
|
6760
6836
|
/* @__PURE__ */ i("h2", { className: "text-lg font-semibold mb-4", children: "Contacto" }),
|
|
6761
|
-
/* @__PURE__ */ i("div", { className: "text-center sm:text-left", style: { display: "flex", flexDirection: "column", justifyContent: "center" }, children: B.map((Y,
|
|
6837
|
+
/* @__PURE__ */ i("div", { className: "text-center sm:text-left", style: { display: "flex", flexDirection: "column", justifyContent: "center" }, children: B.map((Y, f) => /* @__PURE__ */ i("div", { children: /* @__PURE__ */ y(
|
|
6762
6838
|
"div",
|
|
6763
6839
|
{
|
|
6764
6840
|
className: "text-sm opacity-70 cursor-pointer mb-4",
|
|
6765
|
-
onClick: Y.type === "email" ? () =>
|
|
6841
|
+
onClick: Y.type === "email" ? () => U(Y.description) : Y.type === "chat" ? () => a(Y.description) : Y.type === "mapa" ? () => q(Y.description) : void 0,
|
|
6766
6842
|
children: [
|
|
6767
6843
|
/* @__PURE__ */ i("strong", { children: Y.label }),
|
|
6768
6844
|
" ",
|
|
6769
6845
|
Y.type === "mapa" ? Y.descrption2 : Y.description
|
|
6770
6846
|
]
|
|
6771
6847
|
}
|
|
6772
|
-
) },
|
|
6848
|
+
) }, f)) })
|
|
6773
6849
|
] }),
|
|
6774
|
-
t.href && /* @__PURE__ */
|
|
6850
|
+
t.href && /* @__PURE__ */ y("div", { className: "flex flex-col items-center", children: [
|
|
6775
6851
|
/* @__PURE__ */ i("h2", { className: "text-lg font-semibold mb-4", children: "Data fiscal" }),
|
|
6776
6852
|
/* @__PURE__ */ i("a", { href: t.href, target: t.target, children: /* @__PURE__ */ i("img", { style: { height: "120px" }, src: t.src }) })
|
|
6777
6853
|
] }),
|
|
6778
|
-
|
|
6854
|
+
w && /* @__PURE__ */ y("div", { className: "flex flex-col items-center", children: [
|
|
6779
6855
|
/* @__PURE__ */ i("h2", { className: "text-lg font-semibold mb-4", children: "Escribenos" }),
|
|
6780
|
-
|
|
6856
|
+
w
|
|
6781
6857
|
] })
|
|
6782
6858
|
] }),
|
|
6783
|
-
/* @__PURE__ */
|
|
6859
|
+
/* @__PURE__ */ y("div", { className: "flex flex-col items-center mt-8", children: [
|
|
6784
6860
|
/* @__PURE__ */ i("h2", { className: "text-lg font-semibold mb-4", children: "Redes Sociales" }),
|
|
6785
|
-
/* @__PURE__ */ i("div", { className: "flex space-x-4", style: { marginBottom: "30px" }, children: M.map((Y,
|
|
6861
|
+
/* @__PURE__ */ i("div", { className: "flex space-x-4", style: { marginBottom: "30px" }, children: M.map((Y, f) => /* @__PURE__ */ i("div", { style: { cursor: "pointer" }, onClick: () => {
|
|
6786
6862
|
V(Y.label);
|
|
6787
|
-
}, children: (Y == null ? void 0 : Y.icon) && /* @__PURE__ */ i(Y.icon, { className: "w-6 h-6" }) },
|
|
6863
|
+
}, children: (Y == null ? void 0 : Y.icon) && /* @__PURE__ */ i(Y.icon, { className: "w-6 h-6" }) }, f)) })
|
|
6788
6864
|
] })
|
|
6789
6865
|
] }),
|
|
6790
|
-
/* @__PURE__ */
|
|
6866
|
+
/* @__PURE__ */ y("div", { style: { paddingTop: "1rem", paddingBottom: "1rem", display: "flex", flexDirection: "column", alignItems: "center" }, className: `${G[A]}`, children: [
|
|
6791
6867
|
/* @__PURE__ */ i("p", { style: { fontSize: "10px" }, className: "text-white", children: `© ${o}. TODOS LOS DERECHOS RESERVADOS.` }),
|
|
6792
|
-
/* @__PURE__ */
|
|
6868
|
+
/* @__PURE__ */ y("a", { href: "https://goatdata.com.ar/", target: "_blank", rel: "noopener noreferrer", className: "mt-2 flex items-center", children: [
|
|
6793
6869
|
/* @__PURE__ */ i("span", { className: "text-xs text-white underline", children: "Diseñado y desarrollado por" }),
|
|
6794
6870
|
/* @__PURE__ */ i("img", { src: Os, alt: "Goat Data Logo", className: "h-2.5 mx-1" }),
|
|
6795
6871
|
/* @__PURE__ */ i("span", { className: "text-xs text-white", children: "DATA" })
|
|
@@ -6813,13 +6889,13 @@ function Xs(A) {
|
|
|
6813
6889
|
}
|
|
6814
6890
|
const Ns = N(
|
|
6815
6891
|
({ type: A = "success", message: g, duration: B = 5500, ...M }, D) => {
|
|
6816
|
-
const t = jB(), [e,
|
|
6892
|
+
const t = jB(), [e, Q] = z(!0), [w, C] = z(!1), [s, o] = z(!1);
|
|
6817
6893
|
if (O(() => {
|
|
6818
6894
|
const r = setTimeout(() => C(!0), B - 500);
|
|
6819
6895
|
return () => clearTimeout(r);
|
|
6820
6896
|
}, [B]), O(() => {
|
|
6821
|
-
|
|
6822
|
-
}, [
|
|
6897
|
+
w && setTimeout(() => Q(!1), 500);
|
|
6898
|
+
}, [w]), O(() => {
|
|
6823
6899
|
setTimeout(() => o(!0), 100);
|
|
6824
6900
|
}, []), !e) return null;
|
|
6825
6901
|
const I = {
|
|
@@ -6833,7 +6909,7 @@ const Ns = N(
|
|
|
6833
6909
|
info: /* @__PURE__ */ i(Ss, { className: "w-6 h-6 flex-shrink-0" }),
|
|
6834
6910
|
warning: /* @__PURE__ */ i(Hs, { className: "w-6 h-6 flex-shrink-0" })
|
|
6835
6911
|
};
|
|
6836
|
-
return /* @__PURE__ */
|
|
6912
|
+
return /* @__PURE__ */ y(
|
|
6837
6913
|
"div",
|
|
6838
6914
|
{
|
|
6839
6915
|
ref: D,
|
|
@@ -6841,7 +6917,7 @@ const Ns = N(
|
|
|
6841
6917
|
className: `fixed top-5 right-5 z-50 flex items-center gap-3
|
|
6842
6918
|
${t ? "max-w-xs p-3 text-sm" : "max-w-sm p-4"}
|
|
6843
6919
|
rounded-lg shadow-lg text-white bg-opacity-90 transition-transform transform
|
|
6844
|
-
${
|
|
6920
|
+
${w ? "animate-slide-out" : "animate-slide-in"}`,
|
|
6845
6921
|
style: { backgroundColor: I[A].bg, zIndex: 999999 },
|
|
6846
6922
|
children: [
|
|
6847
6923
|
n[A],
|
|
@@ -6874,18 +6950,18 @@ const xs = N(
|
|
|
6874
6950
|
xs.displayName = "FloatingAnimation";
|
|
6875
6951
|
const Ws = N(
|
|
6876
6952
|
({ variant: A = "whatsapp", disabled: g = !1, className: B, onClick: M, ...D }, t) => {
|
|
6877
|
-
const e =
|
|
6953
|
+
const e = h(
|
|
6878
6954
|
"inline-flex items-center justify-center font-bold focus:outline-none focus:ring-2 focus:ring-offset-2 hover:scale-105 transition-all duration-300 ease-in-out",
|
|
6879
6955
|
"w-auto max-w-[250px] px-4 py-3 rounded-full",
|
|
6880
6956
|
{
|
|
6881
6957
|
"opacity-20 cursor-not-allowed": g
|
|
6882
6958
|
},
|
|
6883
6959
|
B
|
|
6884
|
-
),
|
|
6960
|
+
), Q = {
|
|
6885
6961
|
whatsapp: "hover:bg-[#128c7e] focus:ring-[#128c7e]",
|
|
6886
6962
|
chat: "border-2 border-[#1F2937] hover:border-[#374151] focus:ring-[#1F2937]",
|
|
6887
6963
|
soporte: "hover:bg-[#e6003f] focus:ring-[#ff0145]"
|
|
6888
|
-
},
|
|
6964
|
+
}, w = {
|
|
6889
6965
|
whatsapp: "#01ff5e",
|
|
6890
6966
|
chat: "#1F2937",
|
|
6891
6967
|
soporte: "#ff0145"
|
|
@@ -6897,9 +6973,9 @@ const Ws = N(
|
|
|
6897
6973
|
return /* @__PURE__ */ i(
|
|
6898
6974
|
"button",
|
|
6899
6975
|
{
|
|
6900
|
-
style: { whiteSpace: "nowrap", position: "fixed", bottom: 16, right: 16, zIndex: 9999, height: 60, width: 60, background:
|
|
6976
|
+
style: { whiteSpace: "nowrap", position: "fixed", bottom: 16, right: 16, zIndex: 9999, height: 60, width: 60, background: w[A] },
|
|
6901
6977
|
ref: t,
|
|
6902
|
-
className:
|
|
6978
|
+
className: h(e, Q[A]),
|
|
6903
6979
|
disabled: g,
|
|
6904
6980
|
onClick: M,
|
|
6905
6981
|
...D,
|
|
@@ -6916,23 +6992,23 @@ function _s(A) {
|
|
|
6916
6992
|
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);
|
|
6917
6993
|
}
|
|
6918
6994
|
const Ao = N(
|
|
6919
|
-
({ videoSrc: A, height: g = "400px", explore: B, overlap: M, mutedVideo: D = !0, handletext4: t, handletext5: e, variant:
|
|
6920
|
-
const s = AA(null), [o, I] =
|
|
6921
|
-
const
|
|
6922
|
-
|
|
6923
|
-
|
|
6995
|
+
({ videoSrc: A, height: g = "400px", explore: B, overlap: M, mutedVideo: D = !0, handletext4: t, handletext5: e, variant: Q = "vividPink", ...w }, C) => {
|
|
6996
|
+
const s = AA(null), [o, I] = z(D), n = () => {
|
|
6997
|
+
const l = s.current;
|
|
6998
|
+
l && l.play().catch(() => {
|
|
6999
|
+
l.play();
|
|
6924
7000
|
});
|
|
6925
|
-
}, r = (
|
|
6926
|
-
const
|
|
6927
|
-
|
|
7001
|
+
}, r = (l) => {
|
|
7002
|
+
const G = document.getElementById(l.slice(1));
|
|
7003
|
+
G && G.scrollIntoView({ behavior: "smooth" });
|
|
6928
7004
|
};
|
|
6929
7005
|
O(() => {
|
|
6930
7006
|
if (s.current) {
|
|
6931
|
-
const
|
|
6932
|
-
|
|
6933
|
-
const
|
|
6934
|
-
|
|
6935
|
-
|
|
7007
|
+
const l = s.current;
|
|
7008
|
+
l.muted = o;
|
|
7009
|
+
const G = l.play();
|
|
7010
|
+
G !== void 0 && G.catch(() => {
|
|
7011
|
+
l.play();
|
|
6936
7012
|
});
|
|
6937
7013
|
}
|
|
6938
7014
|
}, [o]);
|
|
@@ -6948,7 +7024,7 @@ const Ao = N(
|
|
|
6948
7024
|
tertiary: "text-[#d4d3d3]",
|
|
6949
7025
|
experiences: "text-[#a8dbce]"
|
|
6950
7026
|
};
|
|
6951
|
-
return /* @__PURE__ */
|
|
7027
|
+
return /* @__PURE__ */ y("header", { ref: C, ...w, style: { height: g, position: "relative", width: "100%", overflow: "hidden" }, children: [
|
|
6952
7028
|
/* @__PURE__ */ i(
|
|
6953
7029
|
"video",
|
|
6954
7030
|
{
|
|
@@ -6963,20 +7039,20 @@ const Ao = N(
|
|
|
6963
7039
|
}
|
|
6964
7040
|
),
|
|
6965
7041
|
/* @__PURE__ */ i("div", { className: "video-header" }),
|
|
6966
|
-
M && /* @__PURE__ */
|
|
6967
|
-
/* @__PURE__ */ i(lA, { children: /* @__PURE__ */
|
|
7042
|
+
M && /* @__PURE__ */ y("div", { className: "absolute inset-0 flex flex-col items-center justify-center text-center z-20 text-white", children: [
|
|
7043
|
+
/* @__PURE__ */ i(lA, { children: /* @__PURE__ */ y("h1", { className: "text-3xl md:text-5xl font-bold animate-fade-in-up", children: [
|
|
6968
7044
|
M.text1,
|
|
6969
7045
|
" ",
|
|
6970
|
-
/* @__PURE__ */ i("span", { className: `${E[
|
|
7046
|
+
/* @__PURE__ */ i("span", { className: `${E[Q]}`, children: M.text2 })
|
|
6971
7047
|
] }) }),
|
|
6972
7048
|
M.text3 && /* @__PURE__ */ i(lA, { children: /* @__PURE__ */ i("p", { className: "text-sm md:text-lg mb-6", children: M.text3 }) }),
|
|
6973
|
-
/* @__PURE__ */
|
|
6974
|
-
M.text4 && /* @__PURE__ */ i(OA, { variant:
|
|
7049
|
+
/* @__PURE__ */ y("div", { className: "flex gap-4", children: [
|
|
7050
|
+
M.text4 && /* @__PURE__ */ i(OA, { variant: Q, duration: 1, delay: 1, children: /* @__PURE__ */ i("div", { className: "flex p-2", children: /* @__PURE__ */ i(Cg, { variant: Q, onClick: t, size: "small", label: M.text4 }) }) }),
|
|
6975
7051
|
M.text5 && /* @__PURE__ */ i(OA, { variant: "tertiary", duration: 1, delay: 1, children: /* @__PURE__ */ i("div", { className: "flex p-2", children: /* @__PURE__ */ i(Cg, { variant: "tertiary", onClick: e, size: "small", label: M.text5 }) }) })
|
|
6976
7052
|
] })
|
|
6977
7053
|
] }),
|
|
6978
7054
|
/* @__PURE__ */ i("button", { onClick: () => I(!o), className: "opacitySound backdrop-blur-md", children: o ? /* @__PURE__ */ i($s, { size: 25, color: "#d4d3d3" }) : /* @__PURE__ */ i(_s, { size: 25, color: "#d4d3d3" }) }),
|
|
6979
|
-
(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(lA, { children: /* @__PURE__ */
|
|
7055
|
+
(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(lA, { children: /* @__PURE__ */ y(
|
|
6980
7056
|
"a",
|
|
6981
7057
|
{
|
|
6982
7058
|
onClick: () => B.content && r(B.content),
|