prisma-goat 0.2.7 → 0.2.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.
@@ -224,7 +224,7 @@ const _g = yA(
224
224
  small: "px-4 py-1.5 text-xs",
225
225
  medium: "px-6 py-2.5 text-base",
226
226
  large: "px-8 py-3 text-lg"
227
- }, a = () => C === "home" ? /* @__PURE__ */ I(fe, { className: "w-5 h-5" }) : C === "Left" ? /* @__PURE__ */ I(Ee, { className: "w-5 h-5" }) : C === "right" ? /* @__PURE__ */ I(le, { className: "w-5 h-5" }) : C === "save" ? /* @__PURE__ */ I(Ke, { className: "w-5 h-5" }) : C === "more" ? /* @__PURE__ */ I(ce, { className: "w-5 h-5" }) : C === "update" ? /* @__PURE__ */ I(ye, { className: "w-5 h-5" }) : C === "attach" ? /* @__PURE__ */ I(ke, { className: "w-5 h-5" }) : C === "send" ? /* @__PURE__ */ I(Je, { className: "w-5 h-5" }) : C === "delete" ? /* @__PURE__ */ I(re, { className: "w-5 h-5" }) : C === "edit" ? /* @__PURE__ */ I(Ge, { className: "w-5 h-5" }) : C === "login" ? /* @__PURE__ */ I(pe, { className: "w-5 h-5" }) : C === "reset" ? /* @__PURE__ */ I(ae, { className: "w-5 h-5" }) : C === "add" ? /* @__PURE__ */ I(Ye, { className: "w-5 h-5" }) : C === "exit" ? /* @__PURE__ */ I(Re, { className: "w-5 h-5" }) : C === "off" ? /* @__PURE__ */ I(de, { className: "w-5 h-5" }) : C === "calculator" ? /* @__PURE__ */ I(Ze, { className: "w-5 h-5" }) : C === "list" ? /* @__PURE__ */ I(Ue, { className: "w-5 h-5" }) : C === "futbol" ? /* @__PURE__ */ I(qe, { className: "w-5 h-5" }) : null, c = /* @__PURE__ */ I(
227
+ }, a = () => C === "home" ? /* @__PURE__ */ I(fe, { className: "w-5 h-5" }) : C === "Left" ? /* @__PURE__ */ I(Ee, { className: "w-5 h-5" }) : C === "right" ? /* @__PURE__ */ I(le, { className: "w-5 h-5" }) : C === "save" ? /* @__PURE__ */ I(Ke, { className: "w-5 h-5" }) : C === "more" ? /* @__PURE__ */ I(ce, { className: "w-5 h-5" }) : C === "update" ? /* @__PURE__ */ I(ye, { className: "w-5 h-5" }) : C === "attach" ? /* @__PURE__ */ I(ke, { className: "w-5 h-5" }) : C === "send" ? /* @__PURE__ */ I(Je, { className: "w-5 h-5" }) : C === "delete" ? /* @__PURE__ */ I(re, { className: "w-5 h-5" }) : C === "edit" ? /* @__PURE__ */ I(Ge, { className: "w-5 h-5" }) : C === "login" ? /* @__PURE__ */ I(pe, { className: "w-5 h-5" }) : C === "reset" ? /* @__PURE__ */ I(ae, { className: "w-5 h-5" }) : C === "add" ? /* @__PURE__ */ I(Ye, { className: "w-5 h-5" }) : C === "exit" ? /* @__PURE__ */ I(Re, { className: "w-5 h-5" }) : C === "off" ? /* @__PURE__ */ I(de, { className: "w-5 h-5" }) : C === "calculator" ? /* @__PURE__ */ I(Ze, { className: "w-5 h-5" }) : C === "list" ? /* @__PURE__ */ I(Ue, { className: "w-5 h-5" }) : C === "futbol" ? /* @__PURE__ */ I(qe, { className: "w-5 h-5" }) : null, Y = /* @__PURE__ */ I(
228
228
  "div",
229
229
  {
230
230
  className: F(
@@ -232,20 +232,20 @@ const _g = yA(
232
232
  A === "secondary" ? "border-[#1F2937]" : "border-white"
233
233
  )
234
234
  }
235
- ), m = () => IA.isValidElement(Q) ? IA.cloneElement(Q, { className: "w-5 h-5" }) : a(), y = i || g;
235
+ ), V = () => IA.isValidElement(Q) ? IA.cloneElement(Q, { className: "w-5 h-5" }) : a(), u = i || g;
236
236
  return eA(() => {
237
- const u = (q) => {
238
- if (w && q.key === "Enter" && !e && o) {
239
- const V = new MouseEvent("click", {
237
+ const y = (k) => {
238
+ if (w && k.key === "Enter" && !e && o) {
239
+ const m = new MouseEvent("click", {
240
240
  bubbles: !0,
241
241
  cancelable: !0,
242
242
  view: window
243
243
  });
244
- o(V);
244
+ o(m);
245
245
  }
246
246
  };
247
- return window.addEventListener("keydown", u), () => {
248
- window.removeEventListener("keydown", u);
247
+ return window.addEventListener("keydown", y), () => {
248
+ window.removeEventListener("keydown", y);
249
249
  };
250
250
  }, [w, o, e]), /* @__PURE__ */ f(
251
251
  "button",
@@ -266,11 +266,11 @@ const _g = yA(
266
266
  onClick: o,
267
267
  ...n,
268
268
  children: [
269
- M && D === "left" && /* @__PURE__ */ I("span", { className: "mr-2", children: c }),
270
- t === "left" && /* @__PURE__ */ I("span", { className: "mr-2", children: m() }),
271
- y,
272
- t === "right" && /* @__PURE__ */ I("span", { className: "ml-2", children: m() }),
273
- M && D === "right" && /* @__PURE__ */ I("span", { className: "ml-2", children: c })
269
+ M && D === "left" && /* @__PURE__ */ I("span", { className: "mr-2", children: Y }),
270
+ t === "left" && /* @__PURE__ */ I("span", { className: "mr-2", children: V() }),
271
+ u,
272
+ t === "right" && /* @__PURE__ */ I("span", { className: "ml-2", children: V() }),
273
+ M && D === "right" && /* @__PURE__ */ I("span", { className: "ml-2", children: Y })
274
274
  ]
275
275
  }
276
276
  );
@@ -515,45 +515,45 @@ const PA = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAEZQAAApUCAYAAACv3FolAA
515
515
  variantIndicator: G = "primary",
516
516
  backgroundIndicator: r = "black",
517
517
  logoGoatDataIndicator: a = "logoRed",
518
- imgLoadingIndicator: c = "",
519
- strokeWidthIndicator: m = "10",
520
- ...y
521
- }, u) => {
518
+ imgLoadingIndicator: Y = "",
519
+ strokeWidthIndicator: V = "10",
520
+ ...u
521
+ }, y) => {
522
522
  var R, oA, O, KA;
523
- const [q, V] = S(!1), [K, P] = S(!1), [gA, mA] = S(!1), [UA, lA] = S(null), [TA, XA] = S(null), z = wA(null), x = () => V(!q), rA = () => P(!K), sA = () => P(!1);
523
+ const [k, m] = S(!1), [d, P] = S(!1), [gA, mA] = S(!1), [UA, lA] = S(null), [TA, XA] = S(null), z = wA(null), x = () => m(!k), rA = () => P(!d), sA = () => P(!1);
524
524
  eA(() => {
525
525
  if (typeof window < "u" && (C != null && C.events)) {
526
- const Y = () => {
526
+ const c = () => {
527
527
  mA(!0);
528
- }, k = () => {
528
+ }, q = () => {
529
529
  mA(!1);
530
530
  };
531
- return C.events.on("routeChangeStart", Y), C.events.on("routeChangeComplete", k), C.events.on("routeChangeError", k), () => {
532
- C.events.off("routeChangeStart", Y), C.events.off("routeChangeComplete", k), C.events.off("routeChangeError", k);
531
+ return C.events.on("routeChangeStart", c), C.events.on("routeChangeComplete", q), C.events.on("routeChangeError", q), () => {
532
+ C.events.off("routeChangeStart", c), C.events.off("routeChangeComplete", q), C.events.off("routeChangeError", q);
533
533
  };
534
534
  }
535
535
  }, [C]);
536
- const ng = (Y, k) => {
537
- Y.subItems && Y.subItems.length > 0 ? lA((BA) => BA === k ? -1 : k) : Y.link && C && C.push(Y.link);
538
- }, Pg = (Y, k) => {
539
- Y.subItems && Y.subItems.length > 0 ? lA((BA) => BA === k ? -1 : k) : Y.link && C && (C.push(Y.link), V(!1));
540
- }, NA = (Y, k) => {
541
- lA((BA) => BA === k ? -1 : k), Y.link && C && C.push(Y.link);
542
- }, Eg = (Y) => {
543
- Y.link && C && (C.push(Y.link), sA());
544
- }, Z = (Y) => {
545
- Y.link && C && (C.push(Y.link), V(!1));
536
+ const ng = (c, q) => {
537
+ c.subItems && c.subItems.length > 0 ? lA((BA) => BA === q ? -1 : q) : c.link && C && C.push(c.link);
538
+ }, Pg = (c, q) => {
539
+ c.subItems && c.subItems.length > 0 ? lA((BA) => BA === q ? -1 : q) : c.link && C && (C.push(c.link), m(!1));
540
+ }, NA = (c, q) => {
541
+ lA((BA) => BA === q ? -1 : q), c.link && C && C.push(c.link);
542
+ }, Eg = (c) => {
543
+ c.link && C && (C.push(c.link), sA());
544
+ }, Z = (c) => {
545
+ c.link && C && (C.push(c.link), m(!1));
546
546
  };
547
547
  return eA(() => {
548
- const Y = (k) => {
549
- z.current && !z.current.contains(k.target) && sA();
548
+ const c = (q) => {
549
+ z.current && !z.current.contains(q.target) && sA();
550
550
  };
551
- return K && document.addEventListener("mousedown", Y), () => {
552
- document.removeEventListener("mousedown", Y);
551
+ return d && document.addEventListener("mousedown", c), () => {
552
+ document.removeEventListener("mousedown", c);
553
553
  };
554
- }, [K]), /* @__PURE__ */ f("nav", { ref: u, ...y, className: `fixed top-0 left-0 right-0 z-10 ${tA[A]}`, children: [
554
+ }, [d]), /* @__PURE__ */ f("nav", { ref: y, ...u, className: `fixed top-0 left-0 right-0 z-10 ${tA[A]}`, children: [
555
555
  /* @__PURE__ */ I("div", { className: "mx-auto max-w-7xl px-2 sm:px-6 lg:px-8", children: /* @__PURE__ */ f("div", { className: "relative flex h-16 items-center justify-between", children: [
556
- /* @__PURE__ */ I("div", { className: "absolute inset-y-0 left-0 flex items-center sm:hidden", children: /* @__PURE__ */ I("button", { className: `menu ${q ? A === "secondary" ? "openedark" : "opened" : ""}`, onClick: x, "aria-label": "Main Menu", children: /* @__PURE__ */ f("svg", { width: "45", height: "45", viewBox: "0 0 100 100", style: { fill: "#f9f8f8 !important" }, children: [
556
+ /* @__PURE__ */ I("div", { className: "absolute inset-y-0 left-0 flex items-center sm:hidden", children: /* @__PURE__ */ I("button", { className: `menu ${k ? A === "secondary" ? "openedark" : "opened" : ""}`, onClick: x, "aria-label": "Main Menu", children: /* @__PURE__ */ f("svg", { width: "45", height: "45", viewBox: "0 0 100 100", style: { fill: "#f9f8f8 !important" }, children: [
557
557
  /* @__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" }),
558
558
  /* @__PURE__ */ I("path", { className: A === "secondary" ? "linedark linedark2" : "line line2", d: "M 20,50 H 80" }),
559
559
  /* @__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" })
@@ -581,7 +581,7 @@ const PA = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAEZQAAApUCAYAAACv3FolAA
581
581
  (!e || e.trim() === "") && /* @__PURE__ */ I("div", { className: `${vA[A]}`, style: { fontSize: "10px", letterSpacing: "4px" }, children: "DATA" })
582
582
  ] }),
583
583
  /* @__PURE__ */ f("div", { className: "hidden sm:ml-6 sm:block", children: [
584
- /* @__PURE__ */ I("div", { className: `flex space-x-4 ${e && e.trim() !== "" ? "mt-0" : "mt-2"}`, children: M.map((Y, k) => {
584
+ /* @__PURE__ */ I("div", { className: `flex space-x-4 ${e && e.trim() !== "" ? "mt-0" : "mt-2"}`, children: M.map((c, q) => {
585
585
  var BA;
586
586
  return /* @__PURE__ */ f("div", { className: "relative group", children: [
587
587
  /* @__PURE__ */ I(
@@ -590,29 +590,29 @@ const PA = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAEZQAAApUCAYAAACv3FolAA
590
590
  type: "button",
591
591
  className: F(
592
592
  "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",
593
- t === Y.link || (BA = Y.subItems) != null && BA.some((T) => T.link === t) ? AA[A] : "",
593
+ t === c.link || (BA = c.subItems) != null && BA.some((T) => T.link === t) ? AA[A] : "",
594
594
  b[A],
595
595
  DA[A],
596
- t === Y.link ? A === "secondary" || A === "primary" || A === "darkMagenta" || A === "veryDarkViolet" || A === "success" ? "text-custom-red" : "text-custom-blue" : A === "primary" || A === "vividPink" || A === "darkMagenta" || A === "veryDarkViolet" || A === "danger" || A === "warning" || A === "success" ? "text-white" : "text-custom-blue",
597
- t === Y.link ? "font-semibold" : "font-normal"
596
+ t === c.link ? A === "secondary" || A === "primary" || A === "darkMagenta" || A === "veryDarkViolet" || A === "success" ? "text-custom-red" : "text-custom-blue" : A === "primary" || A === "vividPink" || A === "darkMagenta" || A === "veryDarkViolet" || A === "danger" || A === "warning" || A === "success" ? "text-white" : "text-custom-blue",
597
+ t === c.link ? "font-semibold" : "font-normal"
598
598
  ),
599
- onClick: () => ng(Y, k),
600
- onMouseEnter: () => XA(k),
599
+ onClick: () => ng(c, q),
600
+ onMouseEnter: () => XA(q),
601
601
  onMouseLeave: () => XA(null),
602
- children: Y.label
602
+ children: c.label
603
603
  }
604
604
  ),
605
- TA === k && Y.description && Y.description.trim() !== "" && /* @__PURE__ */ f(
605
+ TA === q && c.description && c.description.trim() !== "" && /* @__PURE__ */ f(
606
606
  "div",
607
607
  {
608
608
  style: { border: `1px ${Ag[A]} solid`, maxWidth: "260px" },
609
609
  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 ${vA[A]} ${tA[A]} rounded-md transition-all duration-300 group-hover:opacity-100 group-hover:translate-y-4`,
610
610
  children: [
611
- Y.image && Y.image.trim() !== "" && /* @__PURE__ */ f("div", { className: "relative w-full h-24 mb-2", children: [
611
+ c.image && c.image.trim() !== "" && /* @__PURE__ */ f("div", { className: "relative w-full h-24 mb-2", children: [
612
612
  /* @__PURE__ */ I(
613
613
  "img",
614
614
  {
615
- src: Y.image,
615
+ src: c.image,
616
616
  alt: "Tooltip Image",
617
617
  className: "object-cover w-full h-full rounded-t-md opacity-75 hover:opacity-100 transition-opacity duration-300"
618
618
  }
@@ -620,16 +620,16 @@ const PA = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAEZQAAApUCAYAAACv3FolAA
620
620
  /* @__PURE__ */ I("div", { className: "absolute bottom-0 w-full h-8 bg-gradient-to-t from-white/80 to-transparent" })
621
621
  ] }),
622
622
  /* @__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" }),
623
- Y.description
623
+ c.description
624
624
  ]
625
625
  }
626
626
  ),
627
- Y.subItems && Y.subItems.length > 0 && UA === k && /* @__PURE__ */ I(
627
+ c.subItems && c.subItems.length > 0 && UA === q && /* @__PURE__ */ I(
628
628
  "div",
629
629
  {
630
630
  className: `absolute left-0 mt-2 w-48 ${tA[A]} ${mg[A]} rounded-md shadow-lg ring-4 ring-black ring-opacity-5`,
631
631
  role: "menu",
632
- children: Y.subItems.map((T, Lg) => /* @__PURE__ */ I(
632
+ children: c.subItems.map((T, Lg) => /* @__PURE__ */ I(
633
633
  "div",
634
634
  {
635
635
  className: F(
@@ -639,14 +639,14 @@ const PA = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAEZQAAApUCAYAAACv3FolAA
639
639
  t === T.link ? A === "secondary" || A === "primary" || A === "darkMagenta" || A === "veryDarkViolet" || A === "success" ? "text-custom-red" : "text-custom-blue" : A === "primary" || A === "vividPink" || A === "darkMagenta" || A === "veryDarkViolet" || A === "danger" || A === "warning" || A === "success" ? "text-white" : "text-custom-blue",
640
640
  t === T.link ? "font-semibold" : "font-normal"
641
641
  ),
642
- onClick: () => NA(T, k),
642
+ onClick: () => NA(T, q),
643
643
  children: T.label
644
644
  },
645
645
  Lg
646
646
  ))
647
647
  }
648
648
  )
649
- ] }, k);
649
+ ] }, q);
650
650
  }) }),
651
651
  g && /* @__PURE__ */ I("div", { className: "mt-2 text-sm text-gray-500", children: g })
652
652
  ] })
@@ -661,7 +661,7 @@ const PA = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAEZQAAApUCAYAAACv3FolAA
661
661
  type: "button",
662
662
  className: `flex rounded-full bg-gray-800 text-sm transition duration-300 focus:outline-none focus:ring-2 ${DA[A]} focus:ring-offset-2`,
663
663
  id: "user-menu-button",
664
- "aria-expanded": K,
664
+ "aria-expanded": d,
665
665
  "aria-haspopup": "true",
666
666
  onClick: rA,
667
667
  children: /* @__PURE__ */ I(
@@ -675,8 +675,8 @@ const PA = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAEZQAAApUCAYAAACv3FolAA
675
675
  src: B.image,
676
676
  alt: "User avatar",
677
677
  className: "rounded-full object-cover w-full h-full",
678
- onError: (Y) => {
679
- Y.currentTarget.onerror = null, Y.currentTarget.src = "";
678
+ onError: (c) => {
679
+ c.currentTarget.onerror = null, c.currentTarget.src = "";
680
680
  }
681
681
  }
682
682
  ) : ((oA = (R = B.name) == null ? void 0 : R.charAt(0)) == null ? void 0 : oA.toUpperCase()) || "?"
@@ -684,28 +684,28 @@ const PA = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAEZQAAApUCAYAAACv3FolAA
684
684
  )
685
685
  }
686
686
  ) }),
687
- K && /* @__PURE__ */ I(
687
+ d && /* @__PURE__ */ I(
688
688
  "div",
689
689
  {
690
690
  ref: z,
691
691
  className: `absolute right-0 mt-2 w-48 ${tA[A]} ${mg[A]} rounded-md shadow-lg ring-4 ring-black ring-opacity-5`,
692
692
  role: "menu",
693
- children: D.map((Y, k) => /* @__PURE__ */ I(
693
+ children: D.map((c, q) => /* @__PURE__ */ I(
694
694
  "div",
695
695
  {
696
696
  className: F(
697
697
  "block px-4 py-2 text-sm cursor-pointer",
698
698
  b[A] && `${b[A]}`,
699
- t === Y.link ? AA[A] : "",
700
- t === Y.link ? A === "secondary" || A === "primary" || A === "darkMagenta" || A === "veryDarkViolet" || A === "success" ? "text-custom-red" : "text-custom-blue" : A === "primary" || A === "vividPink" || A === "darkMagenta" || A === "veryDarkViolet" || A === "danger" || A === "warning" || A === "success" ? "text-white" : "text-custom-blue",
701
- t === Y.link ? "font-semibold" : "font-normal"
699
+ t === c.link ? AA[A] : "",
700
+ t === c.link ? A === "secondary" || A === "primary" || A === "darkMagenta" || A === "veryDarkViolet" || A === "success" ? "text-custom-red" : "text-custom-blue" : A === "primary" || A === "vividPink" || A === "darkMagenta" || A === "veryDarkViolet" || A === "danger" || A === "warning" || A === "success" ? "text-white" : "text-custom-blue",
701
+ t === c.link ? "font-semibold" : "font-normal"
702
702
  ),
703
- onClick: Y.label === "Cerrar sesion" ? o : () => {
704
- Eg(Y);
703
+ onClick: c.label === "Cerrar sesion" ? o : () => {
704
+ Eg(c);
705
705
  },
706
- children: Y.label
706
+ children: c.label
707
707
  },
708
- k
708
+ q
709
709
  ))
710
710
  }
711
711
  )
@@ -729,8 +729,8 @@ const PA = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAEZQAAApUCAYAAACv3FolAA
729
729
  ) : /* @__PURE__ */ I(WB, {})
730
730
  ] })
731
731
  ] }) }),
732
- q && /* @__PURE__ */ f("div", { className: "sm:hidden px-2 pt-2 pb-3 space-y-1", children: [
733
- M.map((Y, k) => {
732
+ k && /* @__PURE__ */ f("div", { className: "sm:hidden px-2 pt-2 pb-3 space-y-1", children: [
733
+ M.map((c, q) => {
734
734
  var BA;
735
735
  return /* @__PURE__ */ f("div", { children: [
736
736
  /* @__PURE__ */ I(
@@ -739,17 +739,17 @@ const PA = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAEZQAAApUCAYAAACv3FolAA
739
739
  className: F(
740
740
  `block w-full px-4 py-2 text-base ${b[A]}
741
741
  rounded-md transition duration-300 focus:outline-none focus:ring-2 ${DA[A]} focus:ring-offset-2 text-left`,
742
- t === Y.link || (BA = Y.subItems) != null && BA.some((T) => T.link === t) ? AA[A] : "",
743
- t === Y.link ? A === "secondary" || A === "primary" || A === "darkMagenta" || A === "veryDarkViolet" || A === "success" ? "text-custom-red" : "text-custom-blue" : A === "primary" || A === "vividPink" || A === "darkMagenta" || A === "veryDarkViolet" || A === "danger" || A === "warning" || A === "success" ? "text-white" : "text-custom-blue",
744
- t === Y.link ? "font-semibold" : "font-normal"
742
+ t === c.link || (BA = c.subItems) != null && BA.some((T) => T.link === t) ? AA[A] : "",
743
+ t === c.link ? A === "secondary" || A === "primary" || A === "darkMagenta" || A === "veryDarkViolet" || A === "success" ? "text-custom-red" : "text-custom-blue" : A === "primary" || A === "vividPink" || A === "darkMagenta" || A === "veryDarkViolet" || A === "danger" || A === "warning" || A === "success" ? "text-white" : "text-custom-blue",
744
+ t === c.link ? "font-semibold" : "font-normal"
745
745
  ),
746
746
  onClick: () => {
747
- Pg(Y, k);
747
+ Pg(c, q);
748
748
  },
749
- children: Y.label
749
+ children: c.label
750
750
  }
751
751
  ),
752
- Y.subItems && Y.subItems.length > 0 && UA === k && /* @__PURE__ */ I("div", { className: "pl-4 py-4", children: Y.subItems.map((T, Lg) => /* @__PURE__ */ I(
752
+ c.subItems && c.subItems.length > 0 && UA === q && /* @__PURE__ */ I("div", { className: "pl-4 py-4", children: c.subItems.map((T, Lg) => /* @__PURE__ */ I(
753
753
  "button",
754
754
  {
755
755
  className: F(
@@ -760,13 +760,13 @@ const PA = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAEZQAAApUCAYAAACv3FolAA
760
760
  t === T.link ? "font-semibold" : "font-normal"
761
761
  ),
762
762
  onClick: () => {
763
- NA(Y, k), V(!1);
763
+ NA(c, q), m(!1);
764
764
  },
765
765
  children: T.label
766
766
  },
767
767
  Lg
768
768
  )) })
769
- ] }, k);
769
+ ] }, q);
770
770
  }),
771
771
  B ? /* @__PURE__ */ f("div", { className: "relative mt-3", children: [
772
772
  /* @__PURE__ */ I("div", { className: "ml-3 mt-4", style: { borderBottom: `1px ${Ag[A]} solid` } }),
@@ -790,8 +790,8 @@ const PA = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAEZQAAApUCAYAAACv3FolAA
790
790
  src: B.image,
791
791
  alt: "User avatar",
792
792
  className: "rounded-full object-cover w-full h-full",
793
- onError: (Y) => {
794
- Y.currentTarget.onerror = null, Y.currentTarget.src = "";
793
+ onError: (c) => {
794
+ c.currentTarget.onerror = null, c.currentTarget.src = "";
795
795
  }
796
796
  }
797
797
  ) : ((KA = (O = B.name) == null ? void 0 : O.charAt(0)) == null ? void 0 : KA.toUpperCase()) || "?"
@@ -801,20 +801,20 @@ const PA = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAEZQAAApUCAYAAACv3FolAA
801
801
  ),
802
802
  /* @__PURE__ */ I("div", { className: `block w-full px-4 py-4 ${vA[A]} text-left`, children: B.name })
803
803
  ] }),
804
- D.map((Y, k) => /* @__PURE__ */ I(
804
+ D.map((c, q) => /* @__PURE__ */ I(
805
805
  "button",
806
806
  {
807
807
  className: F(
808
808
  `block w-full px-4 py-2 text-base ${b[A]}
809
809
  rounded-md transition duration-300 focus:outline-none focus:ring-2 ${DA[A]} focus:ring-offset-2 text-left`,
810
- t === Y.link ? AA[A] : "",
811
- t === Y.link ? A === "secondary" || A === "primary" || A === "darkMagenta" || A === "veryDarkViolet" || A === "success" ? "text-custom-red" : "text-custom-blue" : A === "primary" || A === "vividPink" || A === "darkMagenta" || A === "veryDarkViolet" || A === "danger" || A === "warning" || A === "success" ? "text-white" : "text-custom-blue",
812
- t === Y.link ? "font-semibold" : "font-normal"
810
+ t === c.link ? AA[A] : "",
811
+ t === c.link ? A === "secondary" || A === "primary" || A === "darkMagenta" || A === "veryDarkViolet" || A === "success" ? "text-custom-red" : "text-custom-blue" : A === "primary" || A === "vividPink" || A === "darkMagenta" || A === "veryDarkViolet" || A === "danger" || A === "warning" || A === "success" ? "text-white" : "text-custom-blue",
812
+ t === c.link ? "font-semibold" : "font-normal"
813
813
  ),
814
- onClick: Y.label === "Cerrar sesion" ? o : () => Z(Y),
815
- children: Y.label
814
+ onClick: c.label === "Cerrar sesion" ? o : () => Z(c),
815
+ children: c.label
816
816
  },
817
- k
817
+ q
818
818
  ))
819
819
  ] }) : l ? /* @__PURE__ */ I(
820
820
  "button",
@@ -828,7 +828,7 @@ const PA = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAEZQAAApUCAYAAACv3FolAA
828
828
  t === "/login" ? "font-semibold" : "font-normal"
829
829
  ),
830
830
  onClick: () => {
831
- C.push("/login"), V(!1);
831
+ C.push("/login"), m(!1);
832
832
  },
833
833
  children: "Login"
834
834
  }
@@ -840,8 +840,8 @@ const PA = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAEZQAAApUCAYAAACv3FolAA
840
840
  variant: G,
841
841
  background: r,
842
842
  logoGoatData: a,
843
- imgLoading: c,
844
- strokeWidth: m
843
+ imgLoading: Y,
844
+ strokeWidth: V
845
845
  }
846
846
  )
847
847
  ] });
@@ -962,16 +962,16 @@ const Oe = yA(
962
962
  strokeWidthIndicator: G = "10",
963
963
  handleLogout: r,
964
964
  toggleTheme: a,
965
- toggeInstallApp: c,
966
- ...m
967
- }, y) => {
965
+ toggeInstallApp: Y,
966
+ ...V
967
+ }, u) => {
968
968
  var NA, Eg;
969
- const [u, q] = S(!0), [V, K] = S(null), [P, gA] = S(!1), [mA, UA] = S(null), [lA, TA] = S(!1), XA = wA(null), z = () => gA(!P), x = () => gA(!1), rA = () => {
970
- q((Z) => !Z);
969
+ const [y, k] = S(!0), [m, d] = S(null), [P, gA] = S(!1), [mA, UA] = S(null), [lA, TA] = S(!1), XA = wA(null), z = () => gA(!P), x = () => gA(!1), rA = () => {
970
+ k((Z) => !Z);
971
971
  }, sA = (Z, R) => {
972
- Z.subItems && Z.subItems.length > 0 ? K((oA) => oA === R ? -1 : R) : Z.link && t && t.push(Z.link);
972
+ Z.subItems && Z.subItems.length > 0 ? d((oA) => oA === R ? -1 : R) : Z.link && t && t.push(Z.link);
973
973
  }, ng = (Z, R) => {
974
- K((oA) => oA === R ? -1 : R), Z.link && t && t.push(Z.link);
974
+ d((oA) => oA === R ? -1 : R), Z.link && t && t.push(Z.link);
975
975
  }, Pg = (Z) => {
976
976
  Z.link && t && (t.push(Z.link), x());
977
977
  };
@@ -989,9 +989,9 @@ const Oe = yA(
989
989
  }, [t]), /* @__PURE__ */ f(
990
990
  "div",
991
991
  {
992
- ref: y,
993
- ...m,
994
- style: { width: u ? "250px" : "70px" },
992
+ ref: u,
993
+ ...V,
994
+ style: { width: y ? "250px" : "70px" },
995
995
  className: F(
996
996
  `fixed top-0 left-0 h-full ${tA[B]} text-white shadow-lg transition-all z-50`,
997
997
  M
@@ -1012,18 +1012,18 @@ const Oe = yA(
1012
1012
  {
1013
1013
  alt: "logo",
1014
1014
  className: "hidden lg:block",
1015
- style: { height: e && e.trim() !== "" ? e : u ? "70px" : "", width: w && w.trim() !== "" ? w : u ? "110px" : "40px" },
1016
- src: D && D.trim() !== "" ? D : B === "secondary" ? u ? PA : rB : u ? "https://goatdata.com.ar/images/logogoatblanco.png" : lB
1015
+ style: { height: e && e.trim() !== "" ? e : y ? "70px" : "", width: w && w.trim() !== "" ? w : y ? "110px" : "40px" },
1016
+ src: D && D.trim() !== "" ? D : B === "secondary" ? y ? PA : rB : y ? "https://goatdata.com.ar/images/logogoatblanco.png" : lB
1017
1017
  }
1018
1018
  ),
1019
- (!D || D.trim() === "") && /* @__PURE__ */ I("div", { className: `${vA[B]} ${u ? "" : "lock w-auto lg:hidden"}`, style: { fontSize: u ? "12px" : "8px", letterSpacing: "4px" }, children: "DATA" })
1019
+ (!D || D.trim() === "") && /* @__PURE__ */ I("div", { className: `${vA[B]} ${y ? "" : "lock w-auto lg:hidden"}`, style: { fontSize: y ? "12px" : "8px", letterSpacing: "4px" }, children: "DATA" })
1020
1020
  ] }),
1021
1021
  /* @__PURE__ */ I(
1022
1022
  "button",
1023
1023
  {
1024
1024
  onClick: rA,
1025
1025
  className: `absolute -right-3 transform -translate-y-1/2 p-1 rounded-full shadow-md ${ze[B]} focus:outline-none`,
1026
- children: u ? /* @__PURE__ */ I(me, { size: 20 }) : /* @__PURE__ */ I(ue, { size: 20 })
1026
+ children: y ? /* @__PURE__ */ I(me, { size: 20 }) : /* @__PURE__ */ I(ue, { size: 20 })
1027
1027
  }
1028
1028
  ),
1029
1029
  /* @__PURE__ */ I("div", { style: { marginLeft: "20px", marginRight: "20px", border: `1px ${Ag[B]} solid`, marginTop: "14px" } }),
@@ -1036,7 +1036,7 @@ const Oe = yA(
1036
1036
  {
1037
1037
  type: "button",
1038
1038
  className: F(
1039
- `flex items-center justify-start w-full ${u ? "px-4" : ""} ${u ? "py-2" : ""} text-sm cursor-pointer rounded-md transition duration-300 focus:outline-none focus:ring-2 focus:ring-offset-2`,
1039
+ `flex items-center justify-start w-full ${y ? "px-4" : ""} ${y ? "py-2" : ""} text-sm cursor-pointer rounded-md transition duration-300 focus:outline-none focus:ring-2 focus:ring-offset-2`,
1040
1040
  b[B],
1041
1041
  DA[B],
1042
1042
  Q === Z.link || (oA = Z.subItems) != null && oA.some((O) => O.link === Q) ? AA[B] : "",
@@ -1052,19 +1052,19 @@ const Oe = yA(
1052
1052
  (Z == null ? void 0 : Z.icon) && /* @__PURE__ */ I(
1053
1053
  "div",
1054
1054
  {
1055
- className: `flex ${u ? "" : "py-2"}`,
1055
+ className: `flex ${y ? "" : "py-2"}`,
1056
1056
  style: {
1057
- marginRight: u ? "12px" : "0px",
1058
- marginLeft: u ? "0px" : "6px"
1057
+ marginRight: y ? "12px" : "0px",
1058
+ marginLeft: y ? "0px" : "6px"
1059
1059
  },
1060
1060
  children: /* @__PURE__ */ I(Z.icon, { className: "w-6 h-6" })
1061
1061
  }
1062
1062
  ),
1063
- /* @__PURE__ */ I("span", { className: `${u ? "block" : "hidden"}`, children: Z.label })
1063
+ /* @__PURE__ */ I("span", { className: `${y ? "block" : "hidden"}`, children: Z.label })
1064
1064
  ]
1065
1065
  }
1066
1066
  ),
1067
- mA === R && Z.description && Z.description.trim() !== "" && !u && /* @__PURE__ */ f(
1067
+ mA === R && Z.description && Z.description.trim() !== "" && !y && /* @__PURE__ */ f(
1068
1068
  "div",
1069
1069
  {
1070
1070
  style: {
@@ -1073,7 +1073,7 @@ const Oe = yA(
1073
1073
  },
1074
1074
  className: F(
1075
1075
  "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",
1076
- u ? "left-full ml-2" : "left-full ml-2 translate-x-2 group-hover:translate-x-4",
1076
+ y ? "left-full ml-2" : "left-full ml-2 translate-x-2 group-hover:translate-x-4",
1077
1077
  vA[B],
1078
1078
  tA[B]
1079
1079
  ),
@@ -1094,7 +1094,7 @@ const Oe = yA(
1094
1094
  ]
1095
1095
  }
1096
1096
  ),
1097
- Z.subItems && Z.subItems.length > 0 && V === R && (u ? /* @__PURE__ */ I("div", { className: "pl-4 py-4", children: Z.subItems.map((O, KA) => /* @__PURE__ */ I(
1097
+ Z.subItems && Z.subItems.length > 0 && m === R && (y ? /* @__PURE__ */ I("div", { className: "pl-4 py-4", children: Z.subItems.map((O, KA) => /* @__PURE__ */ I(
1098
1098
  "button",
1099
1099
  {
1100
1100
  className: F(
@@ -1165,14 +1165,14 @@ const Oe = yA(
1165
1165
  )
1166
1166
  }
1167
1167
  ),
1168
- /* @__PURE__ */ I("div", { className: `block w-full px-4 py-4 ${vA[B]} text-left ${u ? "block" : "hidden"}`, children: C.name }),
1169
- /* @__PURE__ */ I("div", { className: `mr-2 ${u ? "block" : "hidden"}`, children: /* @__PURE__ */ I(he, { size: 20, color: Ag[B] }) })
1168
+ /* @__PURE__ */ I("div", { className: `block w-full px-4 py-4 ${vA[B]} text-left ${y ? "block" : "hidden"}`, children: C.name }),
1169
+ /* @__PURE__ */ I("div", { className: `mr-2 ${y ? "block" : "hidden"}`, children: /* @__PURE__ */ I(he, { size: 20, color: Ag[B] }) })
1170
1170
  ] }),
1171
1171
  P && /* @__PURE__ */ I(
1172
1172
  "div",
1173
1173
  {
1174
1174
  ref: XA,
1175
- className: `absolute right-0 ${u ? "left-56" : "left-14"} bottom-8 mt-2 w-48 ${tA[B]} ${mg[B]} rounded-md shadow-lg ring-4 ring-black ring-opacity-5`,
1175
+ className: `absolute right-0 ${y ? "left-56" : "left-14"} bottom-8 mt-2 w-48 ${tA[B]} ${mg[B]} rounded-md shadow-lg ring-4 ring-black ring-opacity-5`,
1176
1176
  role: "menu",
1177
1177
  children: A.map((Z, R) => /* @__PURE__ */ I(
1178
1178
  "div",
@@ -1193,8 +1193,8 @@ const Oe = yA(
1193
1193
  ))
1194
1194
  }
1195
1195
  ),
1196
- /* @__PURE__ */ f("div", { style: { display: "flex", gap: "12px", padding: "0px 20px 0px 10px", flexDirection: u ? "row" : "column", alignItems: "center" }, children: [
1197
- s && /* @__PURE__ */ I(fD, { variant: B, onClick: c }),
1196
+ /* @__PURE__ */ f("div", { style: { display: "flex", gap: "12px", padding: "0px 20px 0px 10px", flexDirection: y ? "row" : "column", alignItems: "center" }, children: [
1197
+ s && /* @__PURE__ */ I(fD, { variant: B, onClick: Y }),
1198
1198
  i && /* @__PURE__ */ I(VD, { variant: B, toggleTheme: a })
1199
1199
  ] })
1200
1200
  ] })
@@ -1364,14 +1364,14 @@ function dD(g, A) {
1364
1364
  B = !0, M = !0, D.isProcessing || g(n);
1365
1365
  };
1366
1366
  return { schedule: lg.reduce((r, a) => {
1367
- const c = w[a];
1368
- return r[a] = (m, y = !1, u = !1) => (B || E(), c.schedule(m, y, u)), r;
1367
+ const Y = w[a];
1368
+ return r[a] = (V, u = !1, y = !1) => (B || E(), Y.schedule(V, u, y)), r;
1369
1369
  }, {}), cancel: (r) => {
1370
1370
  for (let a = 0; a < lg.length; a++)
1371
1371
  w[lg[a]].cancel(r);
1372
1372
  }, state: D, steps: w };
1373
1373
  }
1374
- const { schedule: d, cancel: cA, state: L, steps: Fg } = dD(typeof requestAnimationFrame < "u" ? requestAnimationFrame : N, !0), KD = bA({ strict: !1 }), BM = {
1374
+ const { schedule: K, cancel: cA, state: L, steps: Fg } = dD(typeof requestAnimationFrame < "u" ? requestAnimationFrame : N, !0), KD = bA({ strict: !1 }), BM = {
1375
1375
  animation: [
1376
1376
  "animate",
1377
1377
  "variants",
@@ -1716,12 +1716,12 @@ function Et(g, A, B, M) {
1716
1716
  if (E) {
1717
1717
  const { transitionEnd: l, transition: G, ...r } = E;
1718
1718
  for (const a in r) {
1719
- let c = r[a];
1720
- if (Array.isArray(c)) {
1721
- const m = i ? c.length - 1 : 0;
1722
- c = c[m];
1719
+ let Y = r[a];
1720
+ if (Array.isArray(Y)) {
1721
+ const V = i ? Y.length - 1 : 0;
1722
+ Y = Y[V];
1723
1723
  }
1724
- c !== null && (D[a] = c);
1724
+ Y !== null && (D[a] = Y);
1725
1725
  }
1726
1726
  for (const a in l)
1727
1727
  D[a] = l[a];
@@ -2028,8 +2028,8 @@ const CM = ["x", "y", "width", "height", "cx", "cy", "r"], dt = {
2028
2028
  const t = CM[Q];
2029
2029
  g[t] !== A[t] && (w = !0);
2030
2030
  }
2031
- w && d.read(() => {
2032
- qt(B, M), d.render(() => {
2031
+ w && K.read(() => {
2032
+ qt(B, M), K.render(() => {
2033
2033
  dB(M, D, RB(B.tagName), g.transformTemplate), HD(B, M);
2034
2034
  });
2035
2035
  });
@@ -2476,7 +2476,7 @@ class _t {
2476
2476
  this.events[A] || (this.events[A] = new FB());
2477
2477
  const M = this.events[A].add(B);
2478
2478
  return A === "change" ? () => {
2479
- M(), d.read(() => {
2479
+ M(), K.read(() => {
2480
2480
  this.events.change.getSize() || this.stop();
2481
2481
  });
2482
2482
  } : M;
@@ -2846,7 +2846,7 @@ class TB {
2846
2846
  this.isComplete = !1, this.isAsync = !1, this.needsMeasurement = !1, this.isScheduled = !1, this.unresolvedKeyframes = [...A], this.onComplete = B, this.name = M, this.motionValue = D, this.element = e, this.isAsync = w;
2847
2847
  }
2848
2848
  scheduleResolve() {
2849
- this.isScheduled = !0, this.isAsync ? (qA.add(this), eB || (eB = !0, d.read(yw), d.resolveKeyframes(Yw))) : (this.readKeyframes(), this.complete());
2849
+ this.isScheduled = !0, this.isAsync ? (qA.add(this), eB || (eB = !0, K.read(yw), K.resolveKeyframes(Yw))) : (this.readKeyframes(), this.complete());
2850
2850
  }
2851
2851
  readKeyframes() {
2852
2852
  const { unresolvedKeyframes: A, name: B, element: M, motionValue: D } = this;
@@ -3270,60 +3270,60 @@ function Kw(g = p.visualDuration, A = p.bounce) {
3270
3270
  velocity: -/* @__PURE__ */ nA(B.velocity || 0)
3271
3271
  }), E = o || 0, l = C / (2 * Math.sqrt(t * i)), G = w - e, r = /* @__PURE__ */ nA(Math.sqrt(t / i)), a = Math.abs(G) < 5;
3272
3272
  M || (M = a ? p.restSpeed.granular : p.restSpeed.default), D || (D = a ? p.restDelta.granular : p.restDelta.default);
3273
- let c;
3273
+ let Y;
3274
3274
  if (l < 1) {
3275
- const y = CB(r, l);
3276
- c = (u) => {
3277
- const q = Math.exp(-l * r * u);
3278
- return w - q * ((E + l * r * G) / y * Math.sin(y * u) + G * Math.cos(y * u));
3275
+ const u = CB(r, l);
3276
+ Y = (y) => {
3277
+ const k = Math.exp(-l * r * y);
3278
+ return w - k * ((E + l * r * G) / u * Math.sin(u * y) + G * Math.cos(u * y));
3279
3279
  };
3280
3280
  } else if (l === 1)
3281
- c = (y) => w - Math.exp(-r * y) * (G + (E + r * G) * y);
3281
+ Y = (u) => w - Math.exp(-r * u) * (G + (E + r * G) * u);
3282
3282
  else {
3283
- const y = r * Math.sqrt(l * l - 1);
3284
- c = (u) => {
3285
- const q = Math.exp(-l * r * u), V = Math.min(y * u, 300);
3286
- return w - q * ((E + l * r * G) * Math.sinh(V) + y * G * Math.cosh(V)) / y;
3283
+ const u = r * Math.sqrt(l * l - 1);
3284
+ Y = (y) => {
3285
+ const k = Math.exp(-l * r * y), m = Math.min(u * y, 300);
3286
+ return w - k * ((E + l * r * G) * Math.sinh(m) + u * G * Math.cosh(m)) / u;
3287
3287
  };
3288
3288
  }
3289
- const m = {
3289
+ const V = {
3290
3290
  calculatedDuration: n && s || null,
3291
- next: (y) => {
3292
- const u = c(y);
3291
+ next: (u) => {
3292
+ const y = Y(u);
3293
3293
  if (n)
3294
- Q.done = y >= s;
3294
+ Q.done = u >= s;
3295
3295
  else {
3296
- let q = 0;
3297
- l < 1 && (q = y === 0 ? /* @__PURE__ */ QA(E) : dw(c, y, u));
3298
- const V = Math.abs(q) <= M, K = Math.abs(w - u) <= D;
3299
- Q.done = V && K;
3296
+ let k = 0;
3297
+ l < 1 && (k = u === 0 ? /* @__PURE__ */ QA(E) : dw(Y, u, y));
3298
+ const m = Math.abs(k) <= M, d = Math.abs(w - y) <= D;
3299
+ Q.done = m && d;
3300
3300
  }
3301
- return Q.value = Q.done ? w : u, Q;
3301
+ return Q.value = Q.done ? w : y, Q;
3302
3302
  },
3303
3303
  toString: () => {
3304
- const y = Math.min(xD(m), gB), u = WD((q) => m.next(y * q).value, y, 30);
3305
- return y + "ms " + u;
3304
+ const u = Math.min(xD(V), gB), y = WD((k) => V.next(u * k).value, u, 30);
3305
+ return u + "ms " + y;
3306
3306
  }
3307
3307
  };
3308
- return m;
3308
+ return V;
3309
3309
  }
3310
3310
  function UM({ keyframes: g, velocity: A = 0, power: B = 0.8, timeConstant: M = 325, bounceDamping: D = 10, bounceStiffness: e = 500, modifyTarget: w, min: Q, max: t, restDelta: C = 0.5, restSpeed: i }) {
3311
3311
  const s = g[0], o = {
3312
3312
  done: !1,
3313
3313
  value: s
3314
- }, n = (V) => Q !== void 0 && V < Q || t !== void 0 && V > t, E = (V) => Q === void 0 ? t : t === void 0 || Math.abs(Q - V) < Math.abs(t - V) ? Q : t;
3314
+ }, n = (m) => Q !== void 0 && m < Q || t !== void 0 && m > t, E = (m) => Q === void 0 ? t : t === void 0 || Math.abs(Q - m) < Math.abs(t - m) ? Q : t;
3315
3315
  let l = B * A;
3316
3316
  const G = s + l, r = w === void 0 ? G : w(G);
3317
3317
  r !== G && (l = r - s);
3318
- const a = (V) => -l * Math.exp(-V / M), c = (V) => r + a(V), m = (V) => {
3319
- const K = a(V), P = c(V);
3320
- o.done = Math.abs(K) <= C, o.value = o.done ? r : P;
3318
+ const a = (m) => -l * Math.exp(-m / M), Y = (m) => r + a(m), V = (m) => {
3319
+ const d = a(m), P = Y(m);
3320
+ o.done = Math.abs(d) <= C, o.value = o.done ? r : P;
3321
3321
  };
3322
- let y, u;
3323
- const q = (V) => {
3324
- n(o.value) && (y = V, u = Kw({
3322
+ let u, y;
3323
+ const k = (m) => {
3324
+ n(o.value) && (u = m, y = Kw({
3325
3325
  keyframes: [o.value, E(o.value)],
3326
- velocity: dw(c, V, o.value),
3326
+ velocity: dw(Y, m, o.value),
3327
3327
  // TODO: This should be passing * 1000
3328
3328
  damping: D,
3329
3329
  stiffness: e,
@@ -3331,11 +3331,11 @@ function UM({ keyframes: g, velocity: A = 0, power: B = 0.8, timeConstant: M = 3
3331
3331
  restSpeed: i
3332
3332
  }));
3333
3333
  };
3334
- return q(0), {
3334
+ return k(0), {
3335
3335
  calculatedDuration: null,
3336
- next: (V) => {
3337
- let K = !1;
3338
- return !u && y === void 0 && (K = !0, m(V), q(V)), y !== void 0 && V >= y ? u.next(V - y) : (!K && m(V), o);
3336
+ next: (m) => {
3337
+ let d = !1;
3338
+ return !y && u === void 0 && (d = !0, V(m), k(m)), u !== void 0 && m >= u ? y.next(m - u) : (!d && V(m), o);
3339
3339
  }
3340
3340
  };
3341
3341
  }
@@ -3429,7 +3429,7 @@ function kg({ duration: g = 300, keyframes: A, times: B, ease: M = "easeInOut" }
3429
3429
  const tC = (g) => {
3430
3430
  const A = ({ timestamp: B }) => g(B);
3431
3431
  return {
3432
- start: () => d.update(A, !0),
3432
+ start: () => K.update(A, !0),
3433
3433
  stop: () => cA(A),
3434
3434
  /**
3435
3435
  * If we're processing this frame we can use the
@@ -3486,8 +3486,8 @@ class NB extends fw {
3486
3486
  tick(A, B = !1) {
3487
3487
  const { resolved: M } = this;
3488
3488
  if (!M) {
3489
- const { keyframes: V } = this.options;
3490
- return { done: !0, value: V[V.length - 1] };
3489
+ const { keyframes: m } = this.options;
3490
+ return { done: !0, value: m[m.length - 1] };
3491
3491
  }
3492
3492
  const { finalKeyframe: D, generator: e, mirroredGenerator: w, mapPercentToKeyframes: Q, keyframes: t, calculatedDuration: C, totalDuration: i, resolvedDuration: s } = M;
3493
3493
  if (this.startTime === null)
@@ -3496,18 +3496,18 @@ class NB extends fw {
3496
3496
  this.speed > 0 ? this.startTime = Math.min(this.startTime, A) : this.speed < 0 && (this.startTime = Math.min(A - i / this.speed, this.startTime)), B ? this.currentTime = A : this.holdTime !== null ? this.currentTime = this.holdTime : this.currentTime = Math.round(A - this.startTime) * this.speed;
3497
3497
  const r = this.currentTime - o * (this.speed >= 0 ? 1 : -1), a = this.speed >= 0 ? r < 0 : r > i;
3498
3498
  this.currentTime = Math.max(r, 0), this.state === "finished" && this.holdTime === null && (this.currentTime = i);
3499
- let c = this.currentTime, m = e;
3499
+ let Y = this.currentTime, V = e;
3500
3500
  if (n) {
3501
- const V = Math.min(this.currentTime, i) / s;
3502
- let K = Math.floor(V), P = V % 1;
3503
- !P && V >= 1 && (P = 1), P === 1 && K--, K = Math.min(K, n + 1), !!(K % 2) && (E === "reverse" ? (P = 1 - P, l && (P -= l / s)) : E === "mirror" && (m = w)), c = EA(0, 1, P) * s;
3501
+ const m = Math.min(this.currentTime, i) / s;
3502
+ let d = Math.floor(m), P = m % 1;
3503
+ !P && m >= 1 && (P = 1), P === 1 && d--, d = Math.min(d, n + 1), !!(d % 2) && (E === "reverse" ? (P = 1 - P, l && (P -= l / s)) : E === "mirror" && (V = w)), Y = EA(0, 1, P) * s;
3504
3504
  }
3505
- const y = a ? { done: !1, value: t[0] } : m.next(c);
3506
- Q && (y.value = Q(y.value));
3507
- let { done: u } = y;
3508
- !a && C !== null && (u = this.speed >= 0 ? this.currentTime >= i : this.currentTime <= 0);
3509
- const q = this.holdTime === null && (this.state === "finished" || this.state === "running" && u);
3510
- return q && D !== void 0 && (y.value = vg(t, this.options, D)), G && G(y.value), q && this.finish(), y;
3505
+ const u = a ? { done: !1, value: t[0] } : V.next(Y);
3506
+ Q && (u.value = Q(u.value));
3507
+ let { done: y } = u;
3508
+ !a && C !== null && (y = this.speed >= 0 ? this.currentTime >= i : this.currentTime <= 0);
3509
+ const k = this.holdTime === null && (this.state === "finished" || this.state === "running" && y);
3510
+ return k && D !== void 0 && (u.value = vg(t, this.options, D)), G && G(u.value), k && this.finish(), u;
3511
3511
  }
3512
3512
  get duration() {
3513
3513
  const { resolved: A } = this;
@@ -3823,7 +3823,7 @@ const xB = (g, A, B, M = {}, D, e) => (w) => {
3823
3823
  if ((i.type === !1 || i.duration === 0 && !i.repeatDelay) && (i.duration = 0, i.delay === 0 && (s = !0)), s && !e && A.get() !== void 0) {
3824
3824
  const o = vg(i.keyframes, Q);
3825
3825
  if (o !== void 0)
3826
- return d.update(() => {
3826
+ return K.update(() => {
3827
3827
  i.onUpdate(o), i.onComplete();
3828
3828
  }), new Ft([]);
3829
3829
  }
@@ -3850,7 +3850,7 @@ function hw(g, A, { delay: B = 0, transitionOverride: M, type: D } = {}) {
3850
3850
  if (window.MotionHandoffAnimation) {
3851
3851
  const r = ww(g);
3852
3852
  if (r) {
3853
- const a = window.MotionHandoffAnimation(r, s, d);
3853
+ const a = window.MotionHandoffAnimation(r, s, K);
3854
3854
  a !== null && (E.startTime = a, l = !0);
3855
3855
  }
3856
3856
  }
@@ -3859,7 +3859,7 @@ function hw(g, A, { delay: B = 0, transitionOverride: M, type: D } = {}) {
3859
3859
  G && C.push(G);
3860
3860
  }
3861
3861
  return Q && Promise.all(C).then(() => {
3862
- d.update(() => {
3862
+ K.update(() => {
3863
3863
  Q && gQ(g, Q);
3864
3864
  });
3865
3865
  }), C;
@@ -3944,26 +3944,26 @@ function dC(g) {
3944
3944
  const { props: C } = g, i = Jw(g.parent) || {}, s = [], o = /* @__PURE__ */ new Set();
3945
3945
  let n = {}, E = 1 / 0;
3946
3946
  for (let G = 0; G < kC; G++) {
3947
- const r = fC[G], a = B[r], c = C[r] !== void 0 ? C[r] : i[r], m = wg(c), y = r === t ? a.isActive : null;
3948
- y === !1 && (E = G);
3949
- let u = c === i[r] && c !== C[r] && m;
3950
- if (u && M && g.manuallyAnimateOnMount && (u = !1), a.protectedKeys = { ...n }, // If it isn't active and hasn't *just* been set as inactive
3951
- !a.isActive && y === null || // If we didn't and don't have any defined prop for this animation type
3952
- !c && !a.prevProp || // Or if the prop doesn't define an animation
3953
- hg(c) || typeof c == "boolean")
3947
+ const r = fC[G], a = B[r], Y = C[r] !== void 0 ? C[r] : i[r], V = wg(Y), u = r === t ? a.isActive : null;
3948
+ u === !1 && (E = G);
3949
+ let y = Y === i[r] && Y !== C[r] && V;
3950
+ if (y && M && g.manuallyAnimateOnMount && (y = !1), a.protectedKeys = { ...n }, // If it isn't active and hasn't *just* been set as inactive
3951
+ !a.isActive && u === null || // If we didn't and don't have any defined prop for this animation type
3952
+ !Y && !a.prevProp || // Or if the prop doesn't define an animation
3953
+ hg(Y) || typeof Y == "boolean")
3954
3954
  continue;
3955
- const q = KC(a.prevProp, c);
3956
- let V = q || // If we're making this variant active, we want to always make it active
3957
- r === t && a.isActive && !u && m || // If we removed a higher-priority variant (i is in reverse order)
3958
- G > E && m, K = !1;
3959
- const P = Array.isArray(c) ? c : [c];
3955
+ const k = KC(a.prevProp, Y);
3956
+ let m = k || // If we're making this variant active, we want to always make it active
3957
+ r === t && a.isActive && !y && V || // If we removed a higher-priority variant (i is in reverse order)
3958
+ G > E && V, d = !1;
3959
+ const P = Array.isArray(Y) ? Y : [Y];
3960
3960
  let gA = P.reduce(D(r), {});
3961
- y === !1 && (gA = {});
3961
+ u === !1 && (gA = {});
3962
3962
  const { prevResolvedValues: mA = {} } = a, UA = {
3963
3963
  ...mA,
3964
3964
  ...gA
3965
3965
  }, lA = (z) => {
3966
- V = !0, o.has(z) && (K = !0, o.delete(z)), a.needsAnimating[z] = !0;
3966
+ m = !0, o.has(z) && (d = !0, o.delete(z)), a.needsAnimating[z] = !0;
3967
3967
  const x = g.getValue(z);
3968
3968
  x && (x.liveStyle = !1);
3969
3969
  };
@@ -3974,7 +3974,7 @@ function dC(g) {
3974
3974
  let sA = !1;
3975
3975
  AB(x) && AB(rA) ? sA = !ND(x, rA) : sA = x !== rA, sA ? x != null ? lA(z) : o.add(z) : x !== void 0 && o.has(z) ? lA(z) : a.protectedKeys[z] = !0;
3976
3976
  }
3977
- a.prevProp = c, a.prevResolvedValues = gA, a.isActive && (n = { ...n, ...gA }), M && g.blockInitialAnimation && (V = !1), V && (!(u && q) || K) && s.push(...P.map((z) => ({
3977
+ a.prevProp = Y, a.prevResolvedValues = gA, a.isActive && (n = { ...n, ...gA }), M && g.blockInitialAnimation && (m = !1), m && (!(y && k) || d) && s.push(...P.map((z) => ({
3978
3978
  animation: z,
3979
3979
  options: { type: r }
3980
3980
  })));
@@ -3982,8 +3982,8 @@ function dC(g) {
3982
3982
  if (o.size) {
3983
3983
  const G = {};
3984
3984
  o.forEach((r) => {
3985
- const a = g.getBaseTarget(r), c = g.getValue(r);
3986
- c && (c.liveStyle = !0), G[r] = a ?? null;
3985
+ const a = g.getBaseTarget(r), Y = g.getValue(r);
3986
+ Y && (Y.liveStyle = !0), G[r] = a ?? null;
3987
3987
  }), s.push({ animation: G });
3988
3988
  }
3989
3989
  let l = !!s.length;
@@ -4131,7 +4131,7 @@ class zw {
4131
4131
  const { onStart: G, onMove: r } = this.handlers;
4132
4132
  o || (G && G(this.lastMoveEvent, s), this.startEvent = this.lastMoveEvent), r && r(this.lastMoveEvent, s);
4133
4133
  }, this.handlePointerMove = (s, o) => {
4134
- this.lastMoveEvent = s, this.lastMoveEventInfo = Sg(o, this.transformPagePoint), d.update(this.updatePoint, !0);
4134
+ this.lastMoveEvent = s, this.lastMoveEventInfo = Sg(o, this.transformPagePoint), K.update(this.updatePoint, !0);
4135
4135
  }, this.handlePointerUp = (s, o) => {
4136
4136
  this.end();
4137
4137
  const { onEnd: n, onSessionEnd: E, resumeAnimation: l } = this.handlers;
@@ -4385,12 +4385,12 @@ class Di {
4385
4385
  if (CA.test(r)) {
4386
4386
  const { projection: a } = this.visualElement;
4387
4387
  if (a && a.layout) {
4388
- const c = a.layout.layoutBox[G];
4389
- c && (r = W(c) * (parseFloat(r) / 100));
4388
+ const Y = a.layout.layoutBox[G];
4389
+ Y && (r = W(Y) * (parseFloat(r) / 100));
4390
4390
  }
4391
4391
  }
4392
4392
  this.originPoint[G] = r;
4393
- }), E && d.postRender(() => E(i, s)), MB(this.visualElement, "transform");
4393
+ }), E && K.postRender(() => E(i, s)), MB(this.visualElement, "transform");
4394
4394
  const { animationState: l } = this.visualElement;
4395
4395
  l && l.setActive("whileDrag", !0);
4396
4396
  }, w = (i, s) => {
@@ -4426,7 +4426,7 @@ class Di {
4426
4426
  const { velocity: D } = B;
4427
4427
  this.startAnimation(D);
4428
4428
  const { onDragEnd: e } = this.getProps();
4429
- e && d.postRender(() => e(A, B));
4429
+ e && K.postRender(() => e(A, B));
4430
4430
  }
4431
4431
  cancel() {
4432
4432
  this.isDragging = !1;
@@ -4566,7 +4566,7 @@ class Di {
4566
4566
  const { dragConstraints: t } = this.getProps();
4567
4567
  RA(t) && t.current && (this.constraints = this.resolveRefConstraints());
4568
4568
  }, { projection: D } = this.visualElement, e = D.addEventListener("measure", M);
4569
- D && !D.layout && (D.root && D.root.updateScroll(), D.updateLayout()), d.read(M);
4569
+ D && !D.layout && (D.root && D.root.updateScroll(), D.updateLayout()), K.read(M);
4570
4570
  const w = Cg(window, "resize", () => this.scalePositionWithinConstraints()), Q = D.addEventListener("didUpdate", ({ delta: t, hasLayoutChanged: C }) => {
4571
4571
  this.isDragging && C && (_((i) => {
4572
4572
  const s = this.getAxisMotionValue(i);
@@ -4610,7 +4610,7 @@ class ei extends uA {
4610
4610
  }
4611
4611
  }
4612
4612
  const SM = (g) => (A, B) => {
4613
- g && d.postRender(() => g(A, B));
4613
+ g && K.postRender(() => g(A, B));
4614
4614
  };
4615
4615
  class ti extends uA {
4616
4616
  constructor() {
@@ -4629,7 +4629,7 @@ class ti extends uA {
4629
4629
  onStart: SM(B),
4630
4630
  onMove: M,
4631
4631
  onEnd: (e, w) => {
4632
- delete this.session, D && d.postRender(() => D(e, w));
4632
+ delete this.session, D && K.postRender(() => D(e, w));
4633
4633
  }
4634
4634
  };
4635
4635
  }
@@ -4698,7 +4698,7 @@ class Ci extends te {
4698
4698
  }
4699
4699
  getSnapshotBeforeUpdate(A) {
4700
4700
  const { layoutDependency: B, visualElement: M, drag: D, isPresent: e } = this.props, w = M.projection;
4701
- return w && (w.isPresent = e, D || A.layoutDependency !== B || B === void 0 ? w.willUpdate() : this.safeToRemove(), A.isPresent !== e && (e ? w.promote() : w.relegate() || d.postRender(() => {
4701
+ return w && (w.isPresent = e, D || A.layoutDependency !== B || B === void 0 ? w.willUpdate() : this.safeToRemove(), A.isPresent !== e && (e ? w.promote() : w.relegate() || K.postRender(() => {
4702
4702
  const Q = w.getStack();
4703
4703
  (!Q || !Q.members.length) && this.safeToRemove();
4704
4704
  }))), null;
@@ -4768,7 +4768,7 @@ function Ei(g, A) {
4768
4768
  const e = D - B;
4769
4769
  e >= A && (cA(M), g(e - A));
4770
4770
  };
4771
- return d.read(M, !0), () => cA(M);
4771
+ return K.read(M, !0), () => cA(M);
4772
4772
  }
4773
4773
  const Tw = ["TopLeft", "TopRight", "BottomLeft", "BottomRight"], li = Tw.length, XM = (g) => typeof g == "string" ? parseFloat(g) : g, NM = (g) => typeof g == "number" || U.test(g);
4774
4774
  function ri(g, A, B, M, D, e) {
@@ -4927,7 +4927,7 @@ function Ww(g) {
4927
4927
  const B = ww(A);
4928
4928
  if (window.MotionHasOptimisedAnimation(B, "transform")) {
4929
4929
  const { layout: D, layoutId: e } = g.options;
4930
- window.MotionCancelOptimisedAnimation(B, "transform", d, !(D || e));
4930
+ window.MotionCancelOptimisedAnimation(B, "transform", K, !(D || e));
4931
4931
  }
4932
4932
  const { parent: M } = g;
4933
4933
  M && !M.hasCheckedOptimisedAppear && Ww(M);
@@ -4974,15 +4974,15 @@ function $w({ attachResizeListener: g, defaultParent: A, measureScroll: B, check
4974
4974
  this.target = void 0, this.relativeTarget = void 0;
4975
4975
  return;
4976
4976
  }
4977
- const l = this.options.transition || i.getDefaultTransition() || Fi, { onLayoutAnimationStart: G, onLayoutAnimationComplete: r } = i.getProps(), a = !this.targetLayout || !xw(this.targetLayout, E), c = !o && n;
4978
- if (this.options.layoutRoot || this.resumeFrom || c || o && (a || !this.currentAnimation)) {
4979
- this.resumeFrom && (this.resumingFrom = this.resumeFrom, this.resumingFrom.resumingFrom = void 0), this.setAnimationOrigin(s, c);
4980
- const m = {
4977
+ const l = this.options.transition || i.getDefaultTransition() || Fi, { onLayoutAnimationStart: G, onLayoutAnimationComplete: r } = i.getProps(), a = !this.targetLayout || !xw(this.targetLayout, E), Y = !o && n;
4978
+ if (this.options.layoutRoot || this.resumeFrom || Y || o && (a || !this.currentAnimation)) {
4979
+ this.resumeFrom && (this.resumingFrom = this.resumeFrom, this.resumingFrom.resumingFrom = void 0), this.setAnimationOrigin(s, Y);
4980
+ const V = {
4981
4981
  ...hB(l, "layout"),
4982
4982
  onPlay: G,
4983
4983
  onComplete: r
4984
4984
  };
4985
- (i.shouldReduceMotion || this.options.layoutRoot) && (m.delay = 0, m.type = !1), this.startAnimation(m);
4985
+ (i.shouldReduceMotion || this.options.layoutRoot) && (V.delay = 0, V.type = !1), this.startAnimation(V);
4986
4986
  } else
4987
4987
  o || CD(this), this.isLead() && this.options.onExitComplete && this.options.onExitComplete();
4988
4988
  this.targetLayout = E;
@@ -5048,10 +5048,10 @@ function $w({ attachResizeListener: g, defaultParent: A, measureScroll: B, check
5048
5048
  this.nodes.forEach(Ki), this.sharedNodes.forEach(vi);
5049
5049
  }
5050
5050
  scheduleUpdateProjection() {
5051
- this.projectionUpdateScheduled || (this.projectionUpdateScheduled = !0, d.preRender(this.updateProjection, !1, !0));
5051
+ this.projectionUpdateScheduled || (this.projectionUpdateScheduled = !0, K.preRender(this.updateProjection, !1, !0));
5052
5052
  }
5053
5053
  scheduleCheckAfterUnmount() {
5054
- d.postRender(() => {
5054
+ K.postRender(() => {
5055
5055
  this.isLayoutDirty ? this.root.didUpdate() : this.root.checkUpdateFailed();
5056
5056
  });
5057
5057
  }
@@ -5237,14 +5237,14 @@ function $w({ attachResizeListener: g, defaultParent: A, measureScroll: B, check
5237
5237
  (!this.relativeParent || !this.relativeParent.options.layoutRoot) && (this.relativeTarget = this.relativeTargetOrigin = void 0), this.attemptToResolveRelativeTarget = !Q;
5238
5238
  const o = v(), n = t ? t.source : void 0, E = this.layout ? this.layout.source : void 0, l = n !== E, G = this.getStack(), r = !G || G.members.length <= 1, a = !!(l && !r && this.options.crossfade === !0 && !this.path.some(Li));
5239
5239
  this.animationProgress = 0;
5240
- let c;
5241
- this.mixTargetDelta = (m) => {
5242
- const y = m / 1e3;
5243
- iD(s.x, w.x, y), iD(s.y, w.y, y), this.setTargetDelta(s), this.relativeTarget && this.relativeTargetOrigin && this.layout && this.relativeParent && this.relativeParent.layout && (Dg(o, this.layout.layoutBox, this.relativeParent.layout.layoutBox), Pi(this.relativeTarget, this.relativeTargetOrigin, o, y), c && ui(this.relativeTarget, c) && (this.isProjectionDirty = !1), c || (c = v()), $(c, this.relativeTarget)), l && (this.animationValues = i, ri(i, C, this.latestValues, y, a, r)), this.root.scheduleUpdateProjection(), this.scheduleRender(), this.animationProgress = y;
5240
+ let Y;
5241
+ this.mixTargetDelta = (V) => {
5242
+ const u = V / 1e3;
5243
+ iD(s.x, w.x, u), iD(s.y, w.y, u), this.setTargetDelta(s), this.relativeTarget && this.relativeTargetOrigin && this.layout && this.relativeParent && this.relativeParent.layout && (Dg(o, this.layout.layoutBox, this.relativeParent.layout.layoutBox), Pi(this.relativeTarget, this.relativeTargetOrigin, o, u), Y && ui(this.relativeTarget, Y) && (this.isProjectionDirty = !1), Y || (Y = v()), $(Y, this.relativeTarget)), l && (this.animationValues = i, ri(i, C, this.latestValues, u, a, r)), this.root.scheduleUpdateProjection(), this.scheduleRender(), this.animationProgress = u;
5244
5244
  }, this.mixTargetDelta(this.options.layoutRoot ? 1e3 : 0);
5245
5245
  }
5246
5246
  startAnimation(w) {
5247
- this.notifyListeners("animationStart"), this.currentAnimation && this.currentAnimation.stop(), this.resumingFrom && this.resumingFrom.currentAnimation && this.resumingFrom.currentAnimation.stop(), this.pendingAnimation && (cA(this.pendingAnimation), this.pendingAnimation = void 0), this.pendingAnimation = d.update(() => {
5247
+ this.notifyListeners("animationStart"), this.currentAnimation && this.currentAnimation.stop(), this.resumingFrom && this.resumingFrom.currentAnimation && this.resumingFrom.currentAnimation.stop(), this.pendingAnimation && (cA(this.pendingAnimation), this.pendingAnimation = void 0), this.pendingAnimation = K.update(() => {
5248
5248
  Yg.hasAnimatedSinceResize = !0, this.currentAnimation = si(0, tD, {
5249
5249
  ...w,
5250
5250
  onUpdate: (Q) => {
@@ -5355,9 +5355,9 @@ function $w({ attachResizeListener: g, defaultParent: A, measureScroll: B, check
5355
5355
  continue;
5356
5356
  const { correct: G, applyTo: r } = Zg[l], a = C.transform === "none" ? o[l] : G(o[l], s);
5357
5357
  if (r) {
5358
- const c = r.length;
5359
- for (let m = 0; m < c; m++)
5360
- C[r[m]] = a;
5358
+ const Y = r.length;
5359
+ for (let V = 0; V < Y; V++)
5360
+ C[r[V]] = a;
5361
5361
  } else
5362
5362
  C[l] = a;
5363
5363
  }
@@ -5524,7 +5524,7 @@ function ED(g, A, B) {
5524
5524
  const { props: M } = g;
5525
5525
  g.animationState && M.whileHover && g.animationState.setActive("whileHover", B === "Start");
5526
5526
  const D = "onHover" + B, e = M[D];
5527
- e && d.postRender(() => e(A, Ig(A)));
5527
+ e && K.postRender(() => e(A, Ig(A)));
5528
5528
  }
5529
5529
  class Si extends uA {
5530
5530
  mount() {
@@ -5560,7 +5560,7 @@ function lD(g, A, B) {
5560
5560
  const { props: M } = g;
5561
5561
  g.animationState && M.whileTap && g.animationState.setActive("whileTap", B === "Start");
5562
5562
  const D = "onTap" + (B === "End" ? "" : B), e = M[D];
5563
- e && d.postRender(() => e(A, Ig(A)));
5563
+ e && K.postRender(() => e(A, Ig(A)));
5564
5564
  }
5565
5565
  class Xi extends uA {
5566
5566
  mount() {
@@ -5700,7 +5700,7 @@ class Qs {
5700
5700
  this.current && (this.triggerBuild(), this.renderInstance(this.current, this.renderState, this.props.style, this.projection));
5701
5701
  }, this.renderScheduledAt = 0, this.scheduleRender = () => {
5702
5702
  const n = iA.now();
5703
- this.renderScheduledAt < n && (this.renderScheduledAt = n, d.render(this.render, !1, !0));
5703
+ this.renderScheduledAt < n && (this.renderScheduledAt = n, K.render(this.render, !1, !0));
5704
5704
  };
5705
5705
  const { latestValues: t, renderState: C, onUpdate: i } = w;
5706
5706
  this.onUpdate = i, this.latestValues = t, this.baseTarget = { ...t }, this.initialValues = B.initial ? { ...t } : {}, this.renderState = C, this.parent = A, this.props = B, this.presenceContext = M, this.depth = A ? A.depth + 1 : 0, this.reducedMotionConfig = D, this.options = Q, this.blockInitialAnimation = !!e, this.isControllingVariants = Jg(B), this.isVariantNode = pD(B), this.isVariantNode && (this.variantChildren = /* @__PURE__ */ new Set()), this.manuallyAnimateOnMount = !!(A && A.current);
@@ -5726,7 +5726,7 @@ class Qs {
5726
5726
  bindToMotionValue(A, B) {
5727
5727
  this.valueSubscriptions.has(A) && this.valueSubscriptions.get(A)();
5728
5728
  const M = dA.has(A), D = B.on("change", (Q) => {
5729
- this.latestValues[A] = Q, this.props.onUpdate && d.preRender(this.notifyUpdate), M && this.projection && (this.projection.isTransformDirty = !0);
5729
+ this.latestValues[A] = Q, this.props.onUpdate && K.preRender(this.notifyUpdate), M && this.projection && (this.projection.isTransformDirty = !0);
5730
5730
  }), e = B.on("renderRequest", this.scheduleRender);
5731
5731
  let w;
5732
5732
  window.MotionCheckAppearSync && (w = window.MotionCheckAppearSync(this, A, B)), this.valueSubscriptions.set(A, () => {
@@ -5980,18 +5980,18 @@ const os = (g, A) => ZB(g) ? new ss(A) : new is(A, {
5980
5980
  });
5981
5981
  eA(() => {
5982
5982
  A.forEach((a) => {
5983
- const c = C.current.get(a.refId || "");
5984
- c && c.addEventListener("mouseenter", (m) => {
5985
- const y = m.target;
5986
- o(y.getBoundingClientRect());
5983
+ const Y = C.current.get(a.refId || "");
5984
+ Y && Y.addEventListener("mouseenter", (V) => {
5985
+ const u = V.target;
5986
+ o(u.getBoundingClientRect());
5987
5987
  });
5988
5988
  });
5989
5989
  }, [A]), eA(() => {
5990
- const a = window.matchMedia("(min-width: 640px)"), c = () => {
5990
+ const a = window.matchMedia("(min-width: 640px)"), Y = () => {
5991
5991
  a.matches && Q && t(!1);
5992
5992
  };
5993
- return a.addEventListener("change", c), () => {
5994
- a.removeEventListener("change", c);
5993
+ return a.addEventListener("change", Y), () => {
5994
+ a.removeEventListener("change", Y);
5995
5995
  };
5996
5996
  }, [Q]);
5997
5997
  const n = {
@@ -6058,19 +6058,19 @@ const os = (g, A) => ZB(g) ? new ss(A) : new is(A, {
6058
6058
  ),
6059
6059
  (!B || B.trim() === "") && /* @__PURE__ */ I("div", { className: `text-[10px] ${r[g]} tracking-[4px]`, children: "DATA" })
6060
6060
  ] }) }),
6061
- /* @__PURE__ */ I("div", { className: "hidden sm:ml-6 sm:block flex-grow", children: /* @__PURE__ */ I("nav", { className: "flex justify-end", children: /* @__PURE__ */ I("ul", { className: "flex space-x-4", children: A.map(({ label: a, href: c, refId: m }) => /* @__PURE__ */ I("li", { children: /* @__PURE__ */ I(gM, { href: c, Viewport: l[g], colorButton: G[g], children: /* @__PURE__ */ I(
6061
+ /* @__PURE__ */ I("div", { className: "hidden sm:ml-6 sm:block flex-grow", children: /* @__PURE__ */ I("nav", { className: "flex justify-end", children: /* @__PURE__ */ I("ul", { className: "flex space-x-4", children: A.map(({ label: a, href: Y, refId: V }) => /* @__PURE__ */ I("li", { children: /* @__PURE__ */ I(gM, { href: Y, Viewport: l[g], colorButton: G[g], children: /* @__PURE__ */ I(
6062
6062
  "div",
6063
6063
  {
6064
- ref: (y) => y && m && C.current.set(m, y),
6065
- id: m,
6064
+ ref: (u) => u && V && C.current.set(V, u),
6065
+ id: V,
6066
6066
  style: { padding: "6px", color: G[g] },
6067
6067
  children: a
6068
6068
  }
6069
- ) }) }, c)) }) }) })
6069
+ ) }) }, Y)) }) }) })
6070
6070
  ] })
6071
6071
  ] })
6072
6072
  ] }),
6073
- Q && /* @__PURE__ */ I("div", { className: "space-y-1 px-2 pt-2 pb-3", children: A.map(({ label: a, href: c }) => /* @__PURE__ */ I(gM, { href: c, Viewport: l[g], colorButton: G[g], children: a }, c)) })
6073
+ Q && /* @__PURE__ */ I("div", { className: "space-y-1 px-2 pt-2 pb-3", children: A.map(({ label: a, href: Y }) => /* @__PURE__ */ I(gM, { href: Y, Viewport: l[g], colorButton: G[g], children: a }, Y)) })
6074
6074
  ] });
6075
6075
  }
6076
6076
  );
@@ -6084,32 +6084,34 @@ const ls = yA(
6084
6084
  overlap: D = {},
6085
6085
  nameImages: e = !1,
6086
6086
  nameImagesBotton: w = !1,
6087
- ...Q
6088
- }, t) => {
6089
- var a, c;
6090
- const [C, i] = S(0), s = wA(null), o = wA(null), n = wA(null), E = (m) => {
6091
- o.current = m.touches[0].clientX;
6092
- }, l = (m) => {
6093
- n.current = m.touches[0].clientX;
6094
- }, G = () => {
6095
- if (!o.current || !n.current) return;
6096
- const m = o.current - n.current;
6097
- m > 50 ? C < g.length - 1 && i(C + 1) : m < -50 && C > 0 && i(C - 1), o.current = null, n.current = null;
6098
- }, r = () => {
6099
- i((m) => (m + 1) % g.length);
6087
+ handletext4: Q,
6088
+ handletext5: t,
6089
+ ...C
6090
+ }, i) => {
6091
+ var V, u;
6092
+ const [s, o] = S(0), n = wA(null), E = wA(null), l = wA(null), G = (y) => {
6093
+ E.current = y.touches[0].clientX;
6094
+ }, r = (y) => {
6095
+ l.current = y.touches[0].clientX;
6096
+ }, a = () => {
6097
+ if (!E.current || !l.current) return;
6098
+ const y = E.current - l.current;
6099
+ y > 50 ? s < g.length - 1 && o(s + 1) : y < -50 && s > 0 && o(s - 1), E.current = null, l.current = null;
6100
+ }, Y = () => {
6101
+ o((y) => (y + 1) % g.length);
6100
6102
  };
6101
- return eA(() => (g.length > 0 && (s.current = setInterval(r, A)), () => {
6102
- s.current && clearInterval(s.current);
6103
- }), [A, g.length]), !g || g.length === 0 ? /* @__PURE__ */ I("header", { ref: t, ...Q, className: "relative w-full overflow-hidden", style: { height: B }, children: /* @__PURE__ */ I("p", { className: "text-center text-gray-500", children: "No hay imágenes para mostrar" }) }) : /* @__PURE__ */ f(
6103
+ return eA(() => (g.length > 0 && (n.current = setInterval(Y, A)), () => {
6104
+ n.current && clearInterval(n.current);
6105
+ }), [A, g.length]), !g || g.length === 0 ? /* @__PURE__ */ I("header", { ref: i, ...C, className: "relative w-full overflow-hidden", style: { height: B }, children: /* @__PURE__ */ I("p", { className: "text-center text-gray-500", children: "No hay imágenes para mostrar" }) }) : /* @__PURE__ */ f(
6104
6106
  "header",
6105
6107
  {
6106
- ref: t,
6107
- ...Q,
6108
+ ref: i,
6109
+ ...C,
6108
6110
  style: { height: B },
6109
6111
  className: "relative w-full overflow-hidden",
6110
- onTouchStart: E,
6111
- onTouchMove: l,
6112
- onTouchEnd: G,
6112
+ onTouchStart: G,
6113
+ onTouchMove: r,
6114
+ onTouchEnd: a,
6113
6115
  children: [
6114
6116
  D && /* @__PURE__ */ f("div", { className: "absolute inset-0 flex flex-col items-center justify-center text-center z-20 text-white", children: [
6115
6117
  /* @__PURE__ */ f("h1", { className: "text-3xl md:text-5xl font-bold animate-fade-in-up", children: [
@@ -6119,8 +6121,8 @@ const ls = yA(
6119
6121
  ] }),
6120
6122
  /* @__PURE__ */ I("p", { className: "text-sm md:text-lg mb-6", children: D.text3 }),
6121
6123
  /* @__PURE__ */ f("div", { className: "flex gap-4", children: [
6122
- D.text4 && /* @__PURE__ */ I(_g, { variant: "vividPink", size: "small", label: D.text4 }),
6123
- D.text5 && /* @__PURE__ */ I(_g, { variant: "tertiary", size: "small", label: D.text5 })
6124
+ D.text4 && /* @__PURE__ */ I(_g, { variant: "vividPink", onClick: Q, size: "small", label: D.text4 }),
6125
+ D.text5 && /* @__PURE__ */ I(_g, { variant: "tertiary", onClick: t, size: "small", label: D.text5 })
6124
6126
  ] })
6125
6127
  ] }),
6126
6128
  (M == null ? void 0 : M.content) && /* @__PURE__ */ I("div", { className: "absolute z-20 bottom-8 left-1/2 transform -translate-x-1/2 pointer-events-auto", children: /* @__PURE__ */ f("a", { href: M.content, className: "flex flex-col items-center text-white", children: [
@@ -6145,30 +6147,30 @@ const ls = yA(
6145
6147
  }
6146
6148
  )
6147
6149
  ] }) }),
6148
- 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("h1", { className: "text-4xl font-bold", children: ((a = g[C]) == null ? void 0 : a.alt) || "Título dinámico" }, C) }),
6149
- w && /* @__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: (c = g[C]) == null ? void 0 : c.alt }) }),
6150
+ 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("h1", { className: "text-4xl font-bold", children: ((V = g[s]) == null ? void 0 : V.alt) || "Título dinámico" }, s) }),
6151
+ w && /* @__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 = g[s]) == null ? void 0 : u.alt }) }),
6150
6152
  /* @__PURE__ */ I(
6151
6153
  "div",
6152
6154
  {
6153
6155
  className: "flex transition-transform duration-700 ease-in-out",
6154
6156
  style: {
6155
- transform: `translateX(-${C * 100}%)`,
6157
+ transform: `translateX(-${s * 100}%)`,
6156
6158
  height: B
6157
6159
  },
6158
- children: g.map(({ src: m, alt: y, href: u }, q) => /* @__PURE__ */ f("div", { id: "large-header", className: "relative w-full flex-shrink-0 large-header", children: [
6159
- u ? /* @__PURE__ */ I("a", { href: u, children: /* @__PURE__ */ I(
6160
+ children: g.map(({ src: y, alt: k, href: m }, d) => /* @__PURE__ */ f("div", { id: "large-header", className: "relative w-full flex-shrink-0 large-header", children: [
6161
+ m ? /* @__PURE__ */ I("a", { href: m, children: /* @__PURE__ */ I(
6160
6162
  "img",
6161
6163
  {
6162
- src: m,
6163
- alt: y,
6164
+ src: y,
6165
+ alt: k,
6164
6166
  className: "w-full h-full object-cover",
6165
6167
  style: { height: B }
6166
6168
  }
6167
6169
  ) }) : /* @__PURE__ */ I(
6168
6170
  "img",
6169
6171
  {
6170
- src: m,
6171
- alt: y,
6172
+ src: y,
6173
+ alt: k,
6172
6174
  className: "w-full h-full object-cover",
6173
6175
  style: { height: B }
6174
6176
  }
@@ -6180,16 +6182,16 @@ const ls = yA(
6180
6182
  style: { height: B }
6181
6183
  }
6182
6184
  )
6183
- ] }, q))
6185
+ ] }, d))
6184
6186
  }
6185
6187
  ),
6186
- /* @__PURE__ */ I("div", { className: "absolute bottom-4 left-1/2 transform -translate-x-1/2 flex gap-2 z-30", children: g.map((m, y) => /* @__PURE__ */ I(
6188
+ /* @__PURE__ */ I("div", { className: "absolute bottom-4 left-1/2 transform -translate-x-1/2 flex gap-2 z-30", children: g.map((y, k) => /* @__PURE__ */ I(
6187
6189
  "button",
6188
6190
  {
6189
- onClick: () => i(y),
6190
- className: `w-3 h-3 rounded-full ${C === y ? "bg-white" : "bg-gray-400"}`
6191
+ onClick: () => o(k),
6192
+ className: `w-3 h-3 rounded-full ${s === k ? "bg-white" : "bg-gray-400"}`
6191
6193
  },
6192
- y
6194
+ k
6193
6195
  )) })
6194
6196
  ]
6195
6197
  }