prisma-goat 0.11.1 → 0.11.2
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.js +71 -71
- package/dist/prisma-goat.umd.cjs +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
package/dist/prisma-goat.js
CHANGED
|
@@ -213,7 +213,7 @@ function _D(A) {
|
|
|
213
213
|
} else for (B in A) A[B] && (M && (M += " "), M += B);
|
|
214
214
|
return M;
|
|
215
215
|
}
|
|
216
|
-
function
|
|
216
|
+
function L() {
|
|
217
217
|
for (var A, g, B = 0, M = "", D = arguments.length; B < D; B++) (A = arguments[B]) && (g = _D(A)) && (M && (M += " "), M += g);
|
|
218
218
|
return M;
|
|
219
219
|
}
|
|
@@ -234,7 +234,7 @@ const sg = _(
|
|
|
234
234
|
onClick: n,
|
|
235
235
|
...I
|
|
236
236
|
}, r) => {
|
|
237
|
-
const l =
|
|
237
|
+
const l = L(
|
|
238
238
|
"inline-flex items-center justify-center rounded-lg font-bold focus:outline-none focus:ring-2 focus:ring-offset-2 w-full",
|
|
239
239
|
{
|
|
240
240
|
"text-white": g !== "secondary" && g !== "tertiary" && g !== "experiences",
|
|
@@ -259,7 +259,7 @@ const sg = _(
|
|
|
259
259
|
}, G = () => C === "home" ? /* @__PURE__ */ i(hB, { className: "w-5 h-5" }) : C === "Left" ? /* @__PURE__ */ i(UB, { className: "w-5 h-5" }) : C === "right" ? /* @__PURE__ */ i(ZB, { className: "w-5 h-5" }) : C === "save" ? /* @__PURE__ */ i(PB, { className: "w-5 h-5" }) : C === "more" ? /* @__PURE__ */ i(qB, { className: "w-5 h-5" }) : C === "update" ? /* @__PURE__ */ i(pB, { className: "w-5 h-5" }) : C === "attach" ? /* @__PURE__ */ i(JB, { className: "w-5 h-5" }) : C === "send" ? /* @__PURE__ */ i(bB, { className: "w-5 h-5" }) : C === "delete" ? /* @__PURE__ */ i(VB, { className: "w-5 h-5" }) : C === "edit" ? /* @__PURE__ */ i(fB, { className: "w-5 h-5" }) : C === "login" ? /* @__PURE__ */ i(FB, { className: "w-5 h-5" }) : C === "reset" ? /* @__PURE__ */ i(dB, { className: "w-5 h-5" }) : C === "add" ? /* @__PURE__ */ i(kB, { className: "w-5 h-5" }) : C === "exit" ? /* @__PURE__ */ i(LB, { className: "w-5 h-5" }) : C === "off" ? /* @__PURE__ */ i(vB, { className: "w-5 h-5" }) : C === "calculator" ? /* @__PURE__ */ i(RB, { className: "w-5 h-5" }) : C === "list" ? /* @__PURE__ */ i(KB, { className: "w-5 h-5" }) : C === "futbol" ? /* @__PURE__ */ i(zB, { className: "w-5 h-5" }) : null, u = /* @__PURE__ */ i(
|
|
260
260
|
"div",
|
|
261
261
|
{
|
|
262
|
-
className:
|
|
262
|
+
className: L(
|
|
263
263
|
"w-5 h-5 animate-spin border-2 border-t-transparent rounded-full",
|
|
264
264
|
g === "secondary" ? "border-[#1F2937]" : "border-white"
|
|
265
265
|
)
|
|
@@ -284,7 +284,7 @@ const sg = _(
|
|
|
284
284
|
{
|
|
285
285
|
ref: r,
|
|
286
286
|
style: { whiteSpace: "nowrap" },
|
|
287
|
-
className:
|
|
287
|
+
className: L(
|
|
288
288
|
l,
|
|
289
289
|
E[g],
|
|
290
290
|
a[B],
|
|
@@ -578,7 +578,7 @@ const zA = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAEZQAAApUCAYAAACv3FolAA
|
|
|
578
578
|
...K
|
|
579
579
|
}, y) => {
|
|
580
580
|
var N, LA, UM, ZM;
|
|
581
|
-
const Y = HB(), [d,
|
|
581
|
+
const Y = HB(), [d, P] = v(!1), [x, tA] = v(!1), [UA, ZA] = v(!1), [kA, J] = v(null), [k, R] = v(null), z = MA(null), iA = () => P(!d), rA = () => tA(!x), sA = () => tA(!1);
|
|
582
582
|
T(() => {
|
|
583
583
|
if (typeof window < "u" && (C != null && C.events)) {
|
|
584
584
|
const U = () => {
|
|
@@ -594,15 +594,15 @@ const zA = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAEZQAAApUCAYAAACv3FolAA
|
|
|
594
594
|
const Sg = (U, h) => {
|
|
595
595
|
U.subItems && U.subItems.length > 0 ? J((oA) => oA === h ? -1 : h) : U.link && C && C.push(U.link);
|
|
596
596
|
}, Yg = (U, h) => {
|
|
597
|
-
U.subItems && U.subItems.length > 0 ? J((oA) => oA === h ? -1 : h) : U.link && C && (C.push(U.link),
|
|
597
|
+
U.subItems && U.subItems.length > 0 ? J((oA) => oA === h ? -1 : h) : U.link && C && (C.push(U.link), P(!1));
|
|
598
598
|
}, gg = (U, h) => {
|
|
599
599
|
J((oA) => oA === h ? -1 : h), U.link && C && C.push(U.link);
|
|
600
600
|
}, f = (U) => {
|
|
601
601
|
U.link && C && (C.push(U.link), sA());
|
|
602
602
|
}, j = (U) => {
|
|
603
|
-
U.link && C && (C.push(U.link),
|
|
603
|
+
U.link && C && (C.push(U.link), P(!1));
|
|
604
604
|
}, YA = () => {
|
|
605
|
-
I && I(), sA();
|
|
605
|
+
I && (I(), sA(), P(!1));
|
|
606
606
|
};
|
|
607
607
|
return T(() => {
|
|
608
608
|
const U = (h) => {
|
|
@@ -648,7 +648,7 @@ const zA = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAEZQAAApUCAYAAACv3FolAA
|
|
|
648
648
|
"button",
|
|
649
649
|
{
|
|
650
650
|
type: "button",
|
|
651
|
-
className:
|
|
651
|
+
className: L(
|
|
652
652
|
"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",
|
|
653
653
|
w === U.link || (oA = U.subItems) != null && oA.some((AA) => AA.link === w) ? CA[g] : "",
|
|
654
654
|
X[g],
|
|
@@ -692,7 +692,7 @@ const zA = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAEZQAAApUCAYAAACv3FolAA
|
|
|
692
692
|
children: U.subItems.map((AA, Ng) => /* @__PURE__ */ i(
|
|
693
693
|
"div",
|
|
694
694
|
{
|
|
695
|
-
className:
|
|
695
|
+
className: L(
|
|
696
696
|
`block px-4 py-2 text-sm cursor-pointer ${lA[g]}e`,
|
|
697
697
|
X[g] && `${X[g]}`,
|
|
698
698
|
w === AA.link ? CA[g] : "",
|
|
@@ -753,7 +753,7 @@ const zA = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAEZQAAApUCAYAAACv3FolAA
|
|
|
753
753
|
children: D.map((U, h) => /* @__PURE__ */ i(
|
|
754
754
|
"div",
|
|
755
755
|
{
|
|
756
|
-
className:
|
|
756
|
+
className: L(
|
|
757
757
|
"block px-4 py-2 text-sm cursor-pointer",
|
|
758
758
|
X[g] && `${X[g]}`,
|
|
759
759
|
w === U.link ? CA[g] : "",
|
|
@@ -774,7 +774,7 @@ const zA = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAEZQAAApUCAYAAACv3FolAA
|
|
|
774
774
|
{
|
|
775
775
|
type: "button",
|
|
776
776
|
style: { display: Y ? "none" : "block", cursor: "pointer" },
|
|
777
|
-
className:
|
|
777
|
+
className: L(
|
|
778
778
|
`items-center justify-center px-4 py-2 text-sm
|
|
779
779
|
${X[g]}
|
|
780
780
|
rounded-md transition duration-300 focus:outline-none focus:ring-2 ${IA[g]} focus:ring-offset-2`,
|
|
@@ -797,7 +797,7 @@ const zA = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAEZQAAApUCAYAAACv3FolAA
|
|
|
797
797
|
/* @__PURE__ */ i(
|
|
798
798
|
"button",
|
|
799
799
|
{
|
|
800
|
-
className:
|
|
800
|
+
className: L(
|
|
801
801
|
`block w-full px-4 py-2 text-base ${X[g]}
|
|
802
802
|
rounded-md transition duration-300 focus:outline-none focus:ring-2 ${IA[g]} focus:ring-offset-2 text-left`,
|
|
803
803
|
w === U.link || (oA = U.subItems) != null && oA.some((AA) => AA.link === w) ? CA[g] : "",
|
|
@@ -813,7 +813,7 @@ const zA = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAEZQAAApUCAYAAACv3FolAA
|
|
|
813
813
|
U.subItems && U.subItems.length > 0 && kA === h && /* @__PURE__ */ i("div", { className: "pl-4 py-4", children: U.subItems.map((AA, Ng) => /* @__PURE__ */ i(
|
|
814
814
|
"button",
|
|
815
815
|
{
|
|
816
|
-
className:
|
|
816
|
+
className: L(
|
|
817
817
|
`block w-full px-4 py-1 text-sm ${X[g]}
|
|
818
818
|
rounded-md transition duration-300 focus:outline-none focus:ring-2 ${IA[g]} focus:ring-offset-2 text-left`,
|
|
819
819
|
w === AA.link ? CA[g] : "",
|
|
@@ -821,7 +821,7 @@ const zA = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAEZQAAApUCAYAAACv3FolAA
|
|
|
821
821
|
w === AA.link ? "font-semibold" : "font-normal"
|
|
822
822
|
),
|
|
823
823
|
onClick: () => {
|
|
824
|
-
gg(AA, h),
|
|
824
|
+
gg(AA, h), P(!1);
|
|
825
825
|
},
|
|
826
826
|
children: AA.label
|
|
827
827
|
},
|
|
@@ -865,7 +865,7 @@ const zA = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAEZQAAApUCAYAAACv3FolAA
|
|
|
865
865
|
D.map((U, h) => /* @__PURE__ */ i(
|
|
866
866
|
"button",
|
|
867
867
|
{
|
|
868
|
-
className:
|
|
868
|
+
className: L(
|
|
869
869
|
`block w-full px-4 py-2 text-base ${X[g]}
|
|
870
870
|
rounded-md transition duration-300 focus:outline-none focus:ring-2 ${IA[g]} focus:ring-offset-2 text-left`,
|
|
871
871
|
w === U.link ? CA[g] : "",
|
|
@@ -881,7 +881,7 @@ const zA = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAEZQAAApUCAYAAACv3FolAA
|
|
|
881
881
|
"button",
|
|
882
882
|
{
|
|
883
883
|
type: "button",
|
|
884
|
-
className:
|
|
884
|
+
className: L(
|
|
885
885
|
`block w-full px-4 py-2 text-base ${X[g]}
|
|
886
886
|
rounded-md transition duration-300 focus:outline-none focus:ring-2 ${IA[g]} focus:ring-offset-2 text-left`,
|
|
887
887
|
w === "/login" ? CA[g] : "",
|
|
@@ -889,7 +889,7 @@ const zA = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAEZQAAApUCAYAAACv3FolAA
|
|
|
889
889
|
w === "/login" ? "font-semibold" : "font-normal"
|
|
890
890
|
),
|
|
891
891
|
onClick: () => {
|
|
892
|
-
C.push("/login"),
|
|
892
|
+
C.push("/login"), P(!1);
|
|
893
893
|
},
|
|
894
894
|
children: "Login"
|
|
895
895
|
}
|
|
@@ -1029,12 +1029,12 @@ const rw = _(
|
|
|
1029
1029
|
...Z
|
|
1030
1030
|
}, K) => {
|
|
1031
1031
|
var Yg, gg;
|
|
1032
|
-
const [y, Y] = v(!0), [d,
|
|
1032
|
+
const [y, Y] = v(!0), [d, P] = v(null), [x, tA] = v(!1), [UA, ZA] = v(null), [kA, J] = v(!1), k = MA(null), R = () => tA(!x), z = () => tA(!1), iA = () => {
|
|
1033
1033
|
c && c(), Y((f) => !f);
|
|
1034
1034
|
}, rA = (f, j) => {
|
|
1035
|
-
f.subItems && f.subItems.length > 0 ?
|
|
1035
|
+
f.subItems && f.subItems.length > 0 ? P((YA) => YA === j ? -1 : j) : f.link && w && w.push(f.link);
|
|
1036
1036
|
}, sA = (f, j) => {
|
|
1037
|
-
|
|
1037
|
+
P((YA) => YA === j ? -1 : j), f.link && w && w.push(f.link);
|
|
1038
1038
|
}, Sg = (f) => {
|
|
1039
1039
|
f.link && w && (w.push(f.link), z());
|
|
1040
1040
|
};
|
|
@@ -1055,7 +1055,7 @@ const rw = _(
|
|
|
1055
1055
|
ref: K,
|
|
1056
1056
|
...Z,
|
|
1057
1057
|
style: { width: y ? "250px" : "70px" },
|
|
1058
|
-
className:
|
|
1058
|
+
className: L(
|
|
1059
1059
|
`fixed top-0 left-0 h-full ${lA[B]} text-white shadow-lg transition-all z-50`,
|
|
1060
1060
|
M
|
|
1061
1061
|
),
|
|
@@ -1098,7 +1098,7 @@ const rw = _(
|
|
|
1098
1098
|
"button",
|
|
1099
1099
|
{
|
|
1100
1100
|
type: "button",
|
|
1101
|
-
className:
|
|
1101
|
+
className: L(
|
|
1102
1102
|
`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`,
|
|
1103
1103
|
X[B],
|
|
1104
1104
|
IA[B],
|
|
@@ -1131,7 +1131,7 @@ const rw = _(
|
|
|
1131
1131
|
"div",
|
|
1132
1132
|
{
|
|
1133
1133
|
style: { border: `1px ${tg[B]} solid` },
|
|
1134
|
-
className:
|
|
1134
|
+
className: L(
|
|
1135
1135
|
"absolute min-w-48 rounded-md text-xs px-4 py-2 shadow-lg",
|
|
1136
1136
|
y ? "left-full ml-2" : "left-full ml-2 translate-x-2 group-hover:translate-x-4",
|
|
1137
1137
|
TA[B],
|
|
@@ -1157,7 +1157,7 @@ const rw = _(
|
|
|
1157
1157
|
f.subItems && f.subItems.length > 0 && d === j && (y ? /* @__PURE__ */ i("div", { className: y ? "pl-4 py-4" : "absolute ml-3 mt-2 w-48 border-2 rounded-md", role: "menu", children: f.subItems.map((N, LA) => /* @__PURE__ */ i(
|
|
1158
1158
|
"button",
|
|
1159
1159
|
{
|
|
1160
|
-
className:
|
|
1160
|
+
className: L(
|
|
1161
1161
|
`block w-full px-4 py-1 text-sm ${X[B]}
|
|
1162
1162
|
rounded-md transition duration-300 focus:outline-none focus:ring-2 ${IA[B]} focus:ring-offset-2 text-left`,
|
|
1163
1163
|
Q === N.link ? CA[B] : "",
|
|
@@ -1179,7 +1179,7 @@ const rw = _(
|
|
|
1179
1179
|
children: f.subItems.map((N, LA) => /* @__PURE__ */ i(
|
|
1180
1180
|
"div",
|
|
1181
1181
|
{
|
|
1182
|
-
className:
|
|
1182
|
+
className: L(
|
|
1183
1183
|
`block px-4 py-2 text-sm cursor-pointer ${lA[B]}e`,
|
|
1184
1184
|
X[B] && `${X[B]}`,
|
|
1185
1185
|
Q === N.link ? CA[B] : "",
|
|
@@ -1237,7 +1237,7 @@ const rw = _(
|
|
|
1237
1237
|
children: g.map((f, j) => /* @__PURE__ */ i(
|
|
1238
1238
|
"div",
|
|
1239
1239
|
{
|
|
1240
|
-
className:
|
|
1240
|
+
className: L(
|
|
1241
1241
|
"block px-4 py-2 text-sm cursor-pointer",
|
|
1242
1242
|
X[B] && `${X[B]}`,
|
|
1243
1243
|
Q === f.link ? CA[B] : "",
|
|
@@ -1446,7 +1446,7 @@ function Ce(A, g) {
|
|
|
1446
1446
|
e[ug[G]].cancel(a);
|
|
1447
1447
|
}, state: D, steps: e };
|
|
1448
1448
|
}
|
|
1449
|
-
const { schedule:
|
|
1449
|
+
const { schedule: F, cancel: fA, state: S, steps: Xg } = Ce(typeof requestAnimationFrame < "u" ? requestAnimationFrame : DA, !0), ie = WA({ strict: !1 }), kM = {
|
|
1450
1450
|
animation: [
|
|
1451
1451
|
"animate",
|
|
1452
1452
|
"variants",
|
|
@@ -2103,8 +2103,8 @@ const vM = ["x", "y", "width", "height", "cx", "cy", "r"], QQ = {
|
|
|
2103
2103
|
const w = vM[Q];
|
|
2104
2104
|
A[w] !== g[w] && (e = !0);
|
|
2105
2105
|
}
|
|
2106
|
-
e &&
|
|
2107
|
-
wQ(B, M),
|
|
2106
|
+
e && F.read(() => {
|
|
2107
|
+
wQ(B, M), F.render(() => {
|
|
2108
2108
|
DM(M, D, tM(B.tagName), A.transformTemplate), me(B, M);
|
|
2109
2109
|
});
|
|
2110
2110
|
});
|
|
@@ -2551,7 +2551,7 @@ class dQ {
|
|
|
2551
2551
|
this.events[g] || (this.events[g] = new IM());
|
|
2552
2552
|
const M = this.events[g].add(B);
|
|
2553
2553
|
return g === "change" ? () => {
|
|
2554
|
-
M(),
|
|
2554
|
+
M(), F.read(() => {
|
|
2555
2555
|
this.events.change.getSize() || this.stop();
|
|
2556
2556
|
});
|
|
2557
2557
|
} : M;
|
|
@@ -2921,7 +2921,7 @@ class YM {
|
|
|
2921
2921
|
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;
|
|
2922
2922
|
}
|
|
2923
2923
|
scheduleResolve() {
|
|
2924
|
-
this.isScheduled = !0, this.isAsync ? (JA.add(this), IB || (IB = !0,
|
|
2924
|
+
this.isScheduled = !0, this.isAsync ? (JA.add(this), IB || (IB = !0, F.read(gt), F.resolveKeyframes(At))) : (this.readKeyframes(), this.complete());
|
|
2925
2925
|
}
|
|
2926
2926
|
readKeyframes() {
|
|
2927
2927
|
const { unresolvedKeyframes: g, name: B, element: M, motionValue: D } = this;
|
|
@@ -3504,7 +3504,7 @@ function hg({ duration: A = 300, keyframes: g, times: B, ease: M = "easeInOut" }
|
|
|
3504
3504
|
const JC = (A) => {
|
|
3505
3505
|
const g = ({ timestamp: B }) => A(B);
|
|
3506
3506
|
return {
|
|
3507
|
-
start: () =>
|
|
3507
|
+
start: () => F.update(g, !0),
|
|
3508
3508
|
stop: () => fA(g),
|
|
3509
3509
|
/**
|
|
3510
3510
|
* If we're processing this frame we can use the
|
|
@@ -3898,7 +3898,7 @@ const yM = (A, g, B, M = {}, D, t) => (e) => {
|
|
|
3898
3898
|
if ((s.type === !1 || s.duration === 0 && !s.repeatDelay) && (s.duration = 0, s.delay === 0 && (o = !0)), o && !t && g.get() !== void 0) {
|
|
3899
3899
|
const n = xg(s.keyframes, Q);
|
|
3900
3900
|
if (n !== void 0)
|
|
3901
|
-
return
|
|
3901
|
+
return F.update(() => {
|
|
3902
3902
|
s.onUpdate(n), s.onComplete();
|
|
3903
3903
|
}), new aQ([]);
|
|
3904
3904
|
}
|
|
@@ -3925,7 +3925,7 @@ function It(A, g, { delay: B = 0, transitionOverride: M, type: D } = {}) {
|
|
|
3925
3925
|
if (window.MotionHandoffAnimation) {
|
|
3926
3926
|
const a = ve(A);
|
|
3927
3927
|
if (a) {
|
|
3928
|
-
const G = window.MotionHandoffAnimation(a, o,
|
|
3928
|
+
const G = window.MotionHandoffAnimation(a, o, F);
|
|
3929
3929
|
G !== null && (r.startTime = G, l = !0);
|
|
3930
3930
|
}
|
|
3931
3931
|
}
|
|
@@ -3934,7 +3934,7 @@ function It(A, g, { delay: B = 0, transitionOverride: M, type: D } = {}) {
|
|
|
3934
3934
|
E && C.push(E);
|
|
3935
3935
|
}
|
|
3936
3936
|
return Q && Promise.all(C).then(() => {
|
|
3937
|
-
|
|
3937
|
+
F.update(() => {
|
|
3938
3938
|
Q && rM(A, Q);
|
|
3939
3939
|
});
|
|
3940
3940
|
}), C;
|
|
@@ -4032,24 +4032,24 @@ function ei(A) {
|
|
|
4032
4032
|
a === w && G.isActive && !Z && q || // If we removed a higher-priority variant (i is in reverse order)
|
|
4033
4033
|
E > r && q, Y = !1;
|
|
4034
4034
|
const d = Array.isArray(u) ? u : [u];
|
|
4035
|
-
let
|
|
4036
|
-
c === !1 && (
|
|
4035
|
+
let P = d.reduce(D(a), {});
|
|
4036
|
+
c === !1 && (P = {});
|
|
4037
4037
|
const { prevResolvedValues: x = {} } = G, tA = {
|
|
4038
4038
|
...x,
|
|
4039
|
-
...
|
|
4039
|
+
...P
|
|
4040
4040
|
}, UA = (J) => {
|
|
4041
4041
|
y = !0, n.has(J) && (Y = !0, n.delete(J)), G.needsAnimating[J] = !0;
|
|
4042
4042
|
const k = A.getValue(J);
|
|
4043
4043
|
k && (k.liveStyle = !1);
|
|
4044
4044
|
};
|
|
4045
4045
|
for (const J in tA) {
|
|
4046
|
-
const k =
|
|
4046
|
+
const k = P[J], R = x[J];
|
|
4047
4047
|
if (I.hasOwnProperty(J))
|
|
4048
4048
|
continue;
|
|
4049
4049
|
let z = !1;
|
|
4050
4050
|
QB(k) && QB(R) ? z = !Ve(k, R) : z = k !== R, z ? k != null ? UA(J) : n.add(J) : k !== void 0 && n.has(J) ? UA(J) : G.protectedKeys[J] = !0;
|
|
4051
4051
|
}
|
|
4052
|
-
G.prevProp = u, G.prevResolvedValues =
|
|
4052
|
+
G.prevProp = u, G.prevResolvedValues = P, G.isActive && (I = { ...I, ...P }), M && A.blockInitialAnimation && (y = !1), y && (!(Z && K) || Y) && o.push(...d.map((J) => ({
|
|
4053
4053
|
animation: J,
|
|
4054
4054
|
options: { type: a }
|
|
4055
4055
|
})));
|
|
@@ -4206,7 +4206,7 @@ class Et {
|
|
|
4206
4206
|
const { onStart: E, onMove: a } = this.handlers;
|
|
4207
4207
|
n || (E && E(this.lastMoveEvent, o), this.startEvent = this.lastMoveEvent), a && a(this.lastMoveEvent, o);
|
|
4208
4208
|
}, this.handlePointerMove = (o, n) => {
|
|
4209
|
-
this.lastMoveEvent = o, this.lastMoveEventInfo = gB(n, this.transformPagePoint),
|
|
4209
|
+
this.lastMoveEvent = o, this.lastMoveEventInfo = gB(n, this.transformPagePoint), F.update(this.updatePoint, !0);
|
|
4210
4210
|
}, this.handlePointerUp = (o, n) => {
|
|
4211
4211
|
this.end();
|
|
4212
4212
|
const { onEnd: I, onSessionEnd: r, resumeAnimation: l } = this.handlers;
|
|
@@ -4465,7 +4465,7 @@ class pi {
|
|
|
4465
4465
|
}
|
|
4466
4466
|
}
|
|
4467
4467
|
this.originPoint[E] = a;
|
|
4468
|
-
}), r &&
|
|
4468
|
+
}), r && F.postRender(() => r(s, o)), sB(this.visualElement, "transform");
|
|
4469
4469
|
const { animationState: l } = this.visualElement;
|
|
4470
4470
|
l && l.setActive("whileDrag", !0);
|
|
4471
4471
|
}, e = (s, o) => {
|
|
@@ -4501,7 +4501,7 @@ class pi {
|
|
|
4501
4501
|
const { velocity: D } = B;
|
|
4502
4502
|
this.startAnimation(D);
|
|
4503
4503
|
const { onDragEnd: t } = this.getProps();
|
|
4504
|
-
t &&
|
|
4504
|
+
t && F.postRender(() => t(g, B));
|
|
4505
4505
|
}
|
|
4506
4506
|
cancel() {
|
|
4507
4507
|
this.isDragging = !1;
|
|
@@ -4641,7 +4641,7 @@ class pi {
|
|
|
4641
4641
|
const { dragConstraints: w } = this.getProps();
|
|
4642
4642
|
FA(w) && w.current && (this.constraints = this.resolveRefConstraints());
|
|
4643
4643
|
}, { projection: D } = this.visualElement, t = D.addEventListener("measure", M);
|
|
4644
|
-
D && !D.layout && (D.root && D.root.updateScroll(), D.updateLayout()),
|
|
4644
|
+
D && !D.layout && (D.root && D.root.updateScroll(), D.updateLayout()), F.read(M);
|
|
4645
4645
|
const e = lg(window, "resize", () => this.scalePositionWithinConstraints()), Q = D.addEventListener("didUpdate", ({ delta: w, hasLayoutChanged: C }) => {
|
|
4646
4646
|
this.isDragging && C && (QA((s) => {
|
|
4647
4647
|
const o = this.getAxisMotionValue(s);
|
|
@@ -4685,7 +4685,7 @@ class Ri extends qA {
|
|
|
4685
4685
|
}
|
|
4686
4686
|
}
|
|
4687
4687
|
const YD = (A) => (g, B) => {
|
|
4688
|
-
A &&
|
|
4688
|
+
A && F.postRender(() => A(g, B));
|
|
4689
4689
|
};
|
|
4690
4690
|
class hi extends qA {
|
|
4691
4691
|
constructor() {
|
|
@@ -4704,7 +4704,7 @@ class hi extends qA {
|
|
|
4704
4704
|
onStart: YD(B),
|
|
4705
4705
|
onMove: M,
|
|
4706
4706
|
onEnd: (t, e) => {
|
|
4707
|
-
delete this.session, D &&
|
|
4707
|
+
delete this.session, D && F.postRender(() => D(t, e));
|
|
4708
4708
|
}
|
|
4709
4709
|
};
|
|
4710
4710
|
}
|
|
@@ -4773,7 +4773,7 @@ class zi extends Ot {
|
|
|
4773
4773
|
}
|
|
4774
4774
|
getSnapshotBeforeUpdate(g) {
|
|
4775
4775
|
const { layoutDependency: B, visualElement: M, drag: D, isPresent: t } = this.props, e = M.projection;
|
|
4776
|
-
return e && (e.isPresent = t, D || g.layoutDependency !== B || B === void 0 ? e.willUpdate() : this.safeToRemove(), g.isPresent !== t && (t ? e.promote() : e.relegate() ||
|
|
4776
|
+
return e && (e.isPresent = t, D || g.layoutDependency !== B || B === void 0 ? e.willUpdate() : this.safeToRemove(), g.isPresent !== t && (t ? e.promote() : e.relegate() || F.postRender(() => {
|
|
4777
4777
|
const Q = e.getStack();
|
|
4778
4778
|
(!Q || !Q.members.length) && this.safeToRemove();
|
|
4779
4779
|
}))), null;
|
|
@@ -4843,7 +4843,7 @@ function Oi(A, g) {
|
|
|
4843
4843
|
const t = D - B;
|
|
4844
4844
|
t >= g && (fA(M), A(t - g));
|
|
4845
4845
|
};
|
|
4846
|
-
return
|
|
4846
|
+
return F.read(M, !0), () => fA(M);
|
|
4847
4847
|
}
|
|
4848
4848
|
const Vt = ["TopLeft", "TopRight", "BottomLeft", "BottomRight"], ji = Vt.length, mD = (A) => typeof A == "string" ? parseFloat(A) : A, yD = (A) => typeof A == "number" || V.test(A);
|
|
4849
4849
|
function Hi(A, g, B, M, D, t) {
|
|
@@ -5002,7 +5002,7 @@ function kt(A) {
|
|
|
5002
5002
|
const B = ve(g);
|
|
5003
5003
|
if (window.MotionHasOptimisedAnimation(B, "transform")) {
|
|
5004
5004
|
const { layout: D, layoutId: t } = A.options;
|
|
5005
|
-
window.MotionCancelOptimisedAnimation(B, "transform",
|
|
5005
|
+
window.MotionCancelOptimisedAnimation(B, "transform", F, !(D || t));
|
|
5006
5006
|
}
|
|
5007
5007
|
const { parent: M } = A;
|
|
5008
5008
|
M && !M.hasCheckedOptimisedAppear && kt(M);
|
|
@@ -5123,10 +5123,10 @@ function pt({ attachResizeListener: A, defaultParent: g, measureScroll: B, check
|
|
|
5123
5123
|
this.nodes.forEach(ts), this.sharedNodes.forEach(os);
|
|
5124
5124
|
}
|
|
5125
5125
|
scheduleUpdateProjection() {
|
|
5126
|
-
this.projectionUpdateScheduled || (this.projectionUpdateScheduled = !0,
|
|
5126
|
+
this.projectionUpdateScheduled || (this.projectionUpdateScheduled = !0, F.preRender(this.updateProjection, !1, !0));
|
|
5127
5127
|
}
|
|
5128
5128
|
scheduleCheckAfterUnmount() {
|
|
5129
|
-
|
|
5129
|
+
F.postRender(() => {
|
|
5130
5130
|
this.isLayoutDirty ? this.root.didUpdate() : this.root.checkUpdateFailed();
|
|
5131
5131
|
});
|
|
5132
5132
|
}
|
|
@@ -5319,7 +5319,7 @@ function pt({ attachResizeListener: A, defaultParent: g, measureScroll: B, check
|
|
|
5319
5319
|
}, this.mixTargetDelta(this.options.layoutRoot ? 1e3 : 0);
|
|
5320
5320
|
}
|
|
5321
5321
|
startAnimation(e) {
|
|
5322
|
-
this.notifyListeners("animationStart"), this.currentAnimation && this.currentAnimation.stop(), this.resumingFrom && this.resumingFrom.currentAnimation && this.resumingFrom.currentAnimation.stop(), this.pendingAnimation && (fA(this.pendingAnimation), this.pendingAnimation = void 0), this.pendingAnimation =
|
|
5322
|
+
this.notifyListeners("animationStart"), this.currentAnimation && this.currentAnimation.stop(), this.resumingFrom && this.resumingFrom.currentAnimation && this.resumingFrom.currentAnimation.stop(), this.pendingAnimation && (fA(this.pendingAnimation), this.pendingAnimation = void 0), this.pendingAnimation = F.update(() => {
|
|
5323
5323
|
Vg.hasAnimatedSinceResize = !0, this.currentAnimation = Pi(0, JD, {
|
|
5324
5324
|
...e,
|
|
5325
5325
|
onUpdate: (Q) => {
|
|
@@ -5599,7 +5599,7 @@ function jD(A, g, B) {
|
|
|
5599
5599
|
const { props: M } = A;
|
|
5600
5600
|
A.animationState && M.whileHover && A.animationState.setActive("whileHover", B === "Start");
|
|
5601
5601
|
const D = "onHover" + B, t = M[D];
|
|
5602
|
-
t &&
|
|
5602
|
+
t && F.postRender(() => t(g, cg(g)));
|
|
5603
5603
|
}
|
|
5604
5604
|
class cs extends qA {
|
|
5605
5605
|
mount() {
|
|
@@ -5635,7 +5635,7 @@ function HD(A, g, B) {
|
|
|
5635
5635
|
const { props: M } = A;
|
|
5636
5636
|
A.animationState && M.whileTap && A.animationState.setActive("whileTap", B === "Start");
|
|
5637
5637
|
const D = "onTap" + (B === "End" ? "" : B), t = M[D];
|
|
5638
|
-
t &&
|
|
5638
|
+
t && F.postRender(() => t(g, cg(g)));
|
|
5639
5639
|
}
|
|
5640
5640
|
class us extends qA {
|
|
5641
5641
|
mount() {
|
|
@@ -5775,7 +5775,7 @@ class Js {
|
|
|
5775
5775
|
this.current && (this.triggerBuild(), this.renderInstance(this.current, this.renderState, this.props.style, this.projection));
|
|
5776
5776
|
}, this.renderScheduledAt = 0, this.scheduleRender = () => {
|
|
5777
5777
|
const I = GA.now();
|
|
5778
|
-
this.renderScheduledAt < I && (this.renderScheduledAt = I,
|
|
5778
|
+
this.renderScheduledAt < I && (this.renderScheduledAt = I, F.render(this.render, !1, !0));
|
|
5779
5779
|
};
|
|
5780
5780
|
const { latestValues: w, renderState: C, onUpdate: s } = e;
|
|
5781
5781
|
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 = Hg(B), this.isVariantNode = oe(B), this.isVariantNode && (this.variantChildren = /* @__PURE__ */ new Set()), this.manuallyAnimateOnMount = !!(g && g.current);
|
|
@@ -5801,7 +5801,7 @@ class Js {
|
|
|
5801
5801
|
bindToMotionValue(g, B) {
|
|
5802
5802
|
this.valueSubscriptions.has(g) && this.valueSubscriptions.get(g)();
|
|
5803
5803
|
const M = PA.has(g), D = B.on("change", (Q) => {
|
|
5804
|
-
this.latestValues[g] = Q, this.props.onUpdate &&
|
|
5804
|
+
this.latestValues[g] = Q, this.props.onUpdate && F.preRender(this.notifyUpdate), M && this.projection && (this.projection.isTransformDirty = !0);
|
|
5805
5805
|
}), t = B.on("renderRequest", this.scheduleRender);
|
|
5806
5806
|
let e;
|
|
5807
5807
|
window.MotionCheckAppearSync && (e = window.MotionCheckAppearSync(this, g, B)), this.valueSubscriptions.set(g, () => {
|
|
@@ -6191,7 +6191,7 @@ const Ns = _(
|
|
|
6191
6191
|
secondary: "bg-[#ededed]",
|
|
6192
6192
|
experiences: "bg-[#FFFFFF]",
|
|
6193
6193
|
pikaros: "bg-[#000000]"
|
|
6194
|
-
},
|
|
6194
|
+
}, P = {
|
|
6195
6195
|
goatData: "#9a6d79",
|
|
6196
6196
|
secondary: "#1f2937e7",
|
|
6197
6197
|
experiences: "#6BC1E4",
|
|
@@ -6263,7 +6263,7 @@ const Ns = _(
|
|
|
6263
6263
|
(A === "goatData" || A === "secondary" || A === "pikaros") && /* @__PURE__ */ i(
|
|
6264
6264
|
vg.div,
|
|
6265
6265
|
{
|
|
6266
|
-
style: { background:
|
|
6266
|
+
style: { background: P[A], position: "absolute", opacity: 0.4, borderRadius: "0.25rem" },
|
|
6267
6267
|
className: "z-20 pointer-events-none",
|
|
6268
6268
|
animate: {
|
|
6269
6269
|
top: (u == null ? void 0 : u.top) || 0,
|
|
@@ -6606,7 +6606,7 @@ const Ws = _(
|
|
|
6606
6606
|
transform: `translateX(-${n * 100}%)`,
|
|
6607
6607
|
height: M
|
|
6608
6608
|
},
|
|
6609
|
-
children: A.map(({ src: Y, alt: d, href:
|
|
6609
|
+
children: A.map(({ src: Y, alt: d, href: P }, x) => /* @__PURE__ */ i("div", { id: "large-header", className: "relative w-full flex-shrink-0 large-header", children: P ? /* @__PURE__ */ i("a", { href: P, children: /* @__PURE__ */ i(
|
|
6610
6610
|
"img",
|
|
6611
6611
|
{
|
|
6612
6612
|
src: Y,
|
|
@@ -6644,7 +6644,7 @@ const vt = ({ infoText: A, disabled: g = !1, bgStyles: B }) => {
|
|
|
6644
6644
|
return /* @__PURE__ */ m(
|
|
6645
6645
|
"div",
|
|
6646
6646
|
{
|
|
6647
|
-
className:
|
|
6647
|
+
className: L("relative flex items-center", {
|
|
6648
6648
|
"cursor-not-allowed opacity-60": g,
|
|
6649
6649
|
"cursor-pointer": !g
|
|
6650
6650
|
}),
|
|
@@ -6655,7 +6655,7 @@ const vt = ({ infoText: A, disabled: g = !1, bgStyles: B }) => {
|
|
|
6655
6655
|
tw,
|
|
6656
6656
|
{
|
|
6657
6657
|
size: 13,
|
|
6658
|
-
className:
|
|
6658
|
+
className: L("ml-1", {
|
|
6659
6659
|
"text-gray-400": g,
|
|
6660
6660
|
"text-gray-700": !g
|
|
6661
6661
|
})
|
|
@@ -6687,7 +6687,7 @@ const vt = ({ infoText: A, disabled: g = !1, bgStyles: B }) => {
|
|
|
6687
6687
|
a(
|
|
6688
6688
|
(Y) => Y === "password" ? "text" : "password"
|
|
6689
6689
|
);
|
|
6690
|
-
}, u =
|
|
6690
|
+
}, u = L(
|
|
6691
6691
|
"rounded-lg font-medium focus:outline-none focus:ring-2 focus:ring-offset-2 w-full",
|
|
6692
6692
|
{
|
|
6693
6693
|
"text-gray-900": A !== "secondary",
|
|
@@ -6732,7 +6732,7 @@ const vt = ({ infoText: A, disabled: g = !1, bgStyles: B }) => {
|
|
|
6732
6732
|
{
|
|
6733
6733
|
ref: l,
|
|
6734
6734
|
type: E,
|
|
6735
|
-
className:
|
|
6735
|
+
className: L(
|
|
6736
6736
|
u,
|
|
6737
6737
|
o ? "border-[#b91c1c] focus:ring-[#b91c1c]" : q[A],
|
|
6738
6738
|
g in Z ? Z[g] : "",
|
|
@@ -6783,7 +6783,7 @@ const _s = BA.forwardRef(
|
|
|
6783
6783
|
className: I,
|
|
6784
6784
|
...r
|
|
6785
6785
|
}, l) => {
|
|
6786
|
-
const E =
|
|
6786
|
+
const E = L(
|
|
6787
6787
|
"rounded-lg font-medium focus:outline-none focus:ring-2 focus:ring-offset-2 w-full",
|
|
6788
6788
|
{
|
|
6789
6789
|
"text-gray-900": A !== "secondary",
|
|
@@ -6827,7 +6827,7 @@ const _s = BA.forwardRef(
|
|
|
6827
6827
|
"select",
|
|
6828
6828
|
{
|
|
6829
6829
|
ref: l,
|
|
6830
|
-
className:
|
|
6830
|
+
className: L(
|
|
6831
6831
|
E,
|
|
6832
6832
|
s ? "border-[#b91c1c] focus:ring-[#b91c1c]" : a[A],
|
|
6833
6833
|
g in u ? u[g] : "",
|
|
@@ -6900,14 +6900,14 @@ const Ao = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAEZUAAATaCAYAAAA0mz/uAA
|
|
|
6900
6900
|
secondary: "bg-zinc-800",
|
|
6901
6901
|
experiences: "bg-zinc-800"
|
|
6902
6902
|
}, G = (Y) => {
|
|
6903
|
-
const d = Y,
|
|
6903
|
+
const d = Y, P = encodeURIComponent(r), x = `https://api.whatsapp.com/send?phone=${d}&text=${P}`;
|
|
6904
6904
|
window.open(x, "_blank");
|
|
6905
6905
|
}, u = (Y) => {
|
|
6906
6906
|
const d = `mailto:${Y}?subject=Solicitud&body=${r}`;
|
|
6907
6907
|
window.open(d);
|
|
6908
6908
|
}, q = (Y) => {
|
|
6909
|
-
const
|
|
6910
|
-
window.open(
|
|
6909
|
+
const P = `https://www.google.com/maps/search/?api=1&query=${encodeURIComponent(Y)}`;
|
|
6910
|
+
window.open(P, "_blank");
|
|
6911
6911
|
}, c = (Y) => {
|
|
6912
6912
|
const d = document.getElementById(Y.slice(1));
|
|
6913
6913
|
d && d.scrollIntoView({ behavior: "smooth" });
|
|
@@ -7061,7 +7061,7 @@ const wo = _(
|
|
|
7061
7061
|
wo.displayName = "FloatingAnimation";
|
|
7062
7062
|
const Qo = _(
|
|
7063
7063
|
({ variant: A = "whatsapp", disabled: g = !1, className: B, onClick: M, ...D }, t) => {
|
|
7064
|
-
const e =
|
|
7064
|
+
const e = L(
|
|
7065
7065
|
"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",
|
|
7066
7066
|
"w-auto max-w-[250px] px-4 py-3 rounded-full",
|
|
7067
7067
|
{
|
|
@@ -7086,7 +7086,7 @@ const Qo = _(
|
|
|
7086
7086
|
{
|
|
7087
7087
|
style: { whiteSpace: "nowrap", position: "fixed", bottom: 16, right: 16, zIndex: 9999, height: 60, width: 60, background: w[A] },
|
|
7088
7088
|
ref: t,
|
|
7089
|
-
className:
|
|
7089
|
+
className: L(e, Q[A]),
|
|
7090
7090
|
disabled: g,
|
|
7091
7091
|
onClick: M,
|
|
7092
7092
|
...D,
|