@sudobility/components 5.0.54 → 5.0.56
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js
CHANGED
|
@@ -49,7 +49,7 @@ const oa = ({
|
|
|
49
49
|
xl: "8",
|
|
50
50
|
"2xl": "12",
|
|
51
51
|
auto: "auto"
|
|
52
|
-
},
|
|
52
|
+
}, x = u ? {
|
|
53
53
|
transparent: "bg-transparent",
|
|
54
54
|
white: A.background.surface,
|
|
55
55
|
gray: A.background.muted,
|
|
@@ -64,7 +64,7 @@ const oa = ({
|
|
|
64
64
|
lg: W.radius.lg,
|
|
65
65
|
xl: W.radius.xl,
|
|
66
66
|
full: W.radius.full
|
|
67
|
-
}[m] : "",
|
|
67
|
+
}[m] : "", w = h ? {
|
|
68
68
|
none: W.shadow.none,
|
|
69
69
|
sm: W.shadow.sm,
|
|
70
70
|
md: W.shadow.md,
|
|
@@ -76,7 +76,7 @@ const oa = ({
|
|
|
76
76
|
screen: "w-screen",
|
|
77
77
|
min: "w-min",
|
|
78
78
|
max: "w-max"
|
|
79
|
-
}[y] : "",
|
|
79
|
+
}[y] : "", v = f ? {
|
|
80
80
|
auto: "h-auto",
|
|
81
81
|
full: "h-full",
|
|
82
82
|
screen: "h-screen",
|
|
@@ -91,12 +91,12 @@ const oa = ({
|
|
|
91
91
|
className: c(
|
|
92
92
|
...k,
|
|
93
93
|
...$,
|
|
94
|
-
|
|
94
|
+
x,
|
|
95
95
|
d && `border ${A.border.default}`,
|
|
96
96
|
N,
|
|
97
|
-
x,
|
|
98
|
-
C,
|
|
99
97
|
w,
|
|
98
|
+
C,
|
|
99
|
+
v,
|
|
100
100
|
p
|
|
101
101
|
),
|
|
102
102
|
children: t
|
|
@@ -900,7 +900,7 @@ const oa = ({
|
|
|
900
900
|
resizable: d = !0,
|
|
901
901
|
className: m
|
|
902
902
|
}) => {
|
|
903
|
-
const [h, y] = T(n), [f, p] = T(!1), b = j(null),
|
|
903
|
+
const [h, y] = T(n), [f, p] = T(!1), b = j(null), x = o !== void 0 ? o : h, N = (C) => {
|
|
904
904
|
d && (C.preventDefault(), p(!0));
|
|
905
905
|
};
|
|
906
906
|
P(() => {
|
|
@@ -913,11 +913,11 @@ const oa = ({
|
|
|
913
913
|
r === "horizontal" ? I = (k.clientX - E.left) / E.width : I = (k.clientY - E.top) / E.height, I = Math.max(0, Math.min(1, I));
|
|
914
914
|
const M = r === "horizontal" ? E.width : E.height, U = typeof l == "string" ? parseFloat(l) / 100 * M : l, z = typeof i == "string" ? parseFloat(i) / 100 * M : i, D = U / M, V = 1 - z / M;
|
|
915
915
|
I = Math.max(D, Math.min(V, I)), o !== void 0 && s ? s(I) : y(I);
|
|
916
|
-
},
|
|
916
|
+
}, v = () => {
|
|
917
917
|
p(!1);
|
|
918
918
|
};
|
|
919
|
-
return document.addEventListener("mousemove", C), document.addEventListener("mouseup",
|
|
920
|
-
document.removeEventListener("mousemove", C), document.removeEventListener("mouseup",
|
|
919
|
+
return document.addEventListener("mousemove", C), document.addEventListener("mouseup", v), () => {
|
|
920
|
+
document.removeEventListener("mousemove", C), document.removeEventListener("mouseup", v);
|
|
921
921
|
};
|
|
922
922
|
}, [
|
|
923
923
|
f,
|
|
@@ -929,14 +929,14 @@ const oa = ({
|
|
|
929
929
|
]), P(() => (f ? (document.body.style.userSelect = "none", document.body.style.cursor = r === "horizontal" ? "col-resize" : "row-resize") : (document.body.style.userSelect = "", document.body.style.cursor = ""), () => {
|
|
930
930
|
document.body.style.userSelect = "", document.body.style.cursor = "";
|
|
931
931
|
}), [f, r]);
|
|
932
|
-
const
|
|
932
|
+
const w = r === "horizontal";
|
|
933
933
|
return /* @__PURE__ */ g(
|
|
934
934
|
"div",
|
|
935
935
|
{
|
|
936
936
|
ref: b,
|
|
937
937
|
className: c(
|
|
938
938
|
"w-full h-full flex",
|
|
939
|
-
|
|
939
|
+
w ? "flex-row" : "flex-col",
|
|
940
940
|
m
|
|
941
941
|
),
|
|
942
942
|
children: [
|
|
@@ -945,7 +945,7 @@ const oa = ({
|
|
|
945
945
|
{
|
|
946
946
|
className: "overflow-auto",
|
|
947
947
|
style: {
|
|
948
|
-
[
|
|
948
|
+
[w ? "width" : "height"]: `${x * 100}%`
|
|
949
949
|
},
|
|
950
950
|
children: t
|
|
951
951
|
}
|
|
@@ -960,11 +960,11 @@ const oa = ({
|
|
|
960
960
|
d && "hover:bg-blue-500 dark:hover:bg-blue-400",
|
|
961
961
|
"transition-colors",
|
|
962
962
|
f && "bg-blue-500 dark:bg-blue-400",
|
|
963
|
-
|
|
963
|
+
w ? "cursor-col-resize" : "cursor-row-resize",
|
|
964
964
|
!d && "cursor-default"
|
|
965
965
|
),
|
|
966
966
|
style: {
|
|
967
|
-
[
|
|
967
|
+
[w ? "width" : "height"]: `${u}px`
|
|
968
968
|
},
|
|
969
969
|
children: d && /* @__PURE__ */ a(
|
|
970
970
|
"div",
|
|
@@ -975,7 +975,7 @@ const oa = ({
|
|
|
975
975
|
"group-hover:text-white",
|
|
976
976
|
f && "text-white"
|
|
977
977
|
),
|
|
978
|
-
children:
|
|
978
|
+
children: w ? /* @__PURE__ */ g("svg", { className: "w-4 h-4", fill: "currentColor", viewBox: "0 0 24 24", children: [
|
|
979
979
|
/* @__PURE__ */ a("circle", { cx: "10", cy: "6", r: "1.5" }),
|
|
980
980
|
/* @__PURE__ */ a("circle", { cx: "10", cy: "12", r: "1.5" }),
|
|
981
981
|
/* @__PURE__ */ a("circle", { cx: "10", cy: "18", r: "1.5" }),
|
|
@@ -999,7 +999,7 @@ const oa = ({
|
|
|
999
999
|
{
|
|
1000
1000
|
className: "overflow-auto flex-1",
|
|
1001
1001
|
style: {
|
|
1002
|
-
[
|
|
1002
|
+
[w ? "width" : "height"]: `${(1 - x) * 100}%`
|
|
1003
1003
|
},
|
|
1004
1004
|
children: e
|
|
1005
1005
|
}
|
|
@@ -1021,7 +1021,7 @@ const oa = ({
|
|
|
1021
1021
|
showHandles: m = !0,
|
|
1022
1022
|
className: h
|
|
1023
1023
|
}) => {
|
|
1024
|
-
const [y, f] = T(e), [p, b] = T(r), [
|
|
1024
|
+
const [y, f] = T(e), [p, b] = T(r), [x, N] = T(!1), [w, C] = T(null), v = j(null), k = j({ x: 0, y: 0, width: 0, height: 0 }), $ = (M) => (U) => {
|
|
1025
1025
|
U.preventDefault(), U.stopPropagation(), N(!0), C(M), k.current = {
|
|
1026
1026
|
x: U.clientX,
|
|
1027
1027
|
y: U.clientY,
|
|
@@ -1030,11 +1030,11 @@ const oa = ({
|
|
|
1030
1030
|
};
|
|
1031
1031
|
};
|
|
1032
1032
|
P(() => {
|
|
1033
|
-
if (!
|
|
1033
|
+
if (!x || !w) return;
|
|
1034
1034
|
const M = (z) => {
|
|
1035
1035
|
const D = z.clientX - k.current.x, V = z.clientY - k.current.y;
|
|
1036
1036
|
let R = k.current.width, _ = k.current.height;
|
|
1037
|
-
|
|
1037
|
+
w.includes("right") ? R = k.current.width + D : w.includes("left") && (R = k.current.width - D), w.includes("bottom") ? _ = k.current.height + V : w.includes("top") && (_ = k.current.height - V), R = Math.max(n, R), _ = Math.max(o, _), s && (R = Math.min(s, R)), l && (_ = Math.min(l, _)), f(R), b(_), u && u(R, _);
|
|
1038
1038
|
}, U = () => {
|
|
1039
1039
|
N(!1), C(null), d && d(y, p);
|
|
1040
1040
|
};
|
|
@@ -1042,8 +1042,8 @@ const oa = ({
|
|
|
1042
1042
|
document.removeEventListener("mousemove", M), document.removeEventListener("mouseup", U);
|
|
1043
1043
|
};
|
|
1044
1044
|
}, [
|
|
1045
|
-
v,
|
|
1046
1045
|
x,
|
|
1046
|
+
w,
|
|
1047
1047
|
y,
|
|
1048
1048
|
p,
|
|
1049
1049
|
n,
|
|
@@ -1063,9 +1063,9 @@ const oa = ({
|
|
|
1063
1063
|
"bottom-left": "nesw-resize",
|
|
1064
1064
|
"bottom-right": "nwse-resize"
|
|
1065
1065
|
})[M], []);
|
|
1066
|
-
P(() => (
|
|
1066
|
+
P(() => (x ? (document.body.style.userSelect = "none", document.body.style.cursor = E(w)) : (document.body.style.userSelect = "", document.body.style.cursor = ""), () => {
|
|
1067
1067
|
document.body.style.userSelect = "", document.body.style.cursor = "";
|
|
1068
|
-
}), [
|
|
1068
|
+
}), [x, w, E]);
|
|
1069
1069
|
const I = (M) => i.includes(M) ? /* @__PURE__ */ a(
|
|
1070
1070
|
"div",
|
|
1071
1071
|
{
|
|
@@ -1090,7 +1090,7 @@ const oa = ({
|
|
|
1090
1090
|
return /* @__PURE__ */ g(
|
|
1091
1091
|
"div",
|
|
1092
1092
|
{
|
|
1093
|
-
ref:
|
|
1093
|
+
ref: v,
|
|
1094
1094
|
className: c("relative", h),
|
|
1095
1095
|
style: {
|
|
1096
1096
|
width: `${y}px`,
|
|
@@ -1300,7 +1300,7 @@ const oa = ({
|
|
|
1300
1300
|
success: "text-green-600 dark:text-green-400",
|
|
1301
1301
|
warning: "text-yellow-600 dark:text-yellow-400",
|
|
1302
1302
|
danger: "text-red-600 dark:text-red-400"
|
|
1303
|
-
}, p = s ? W.typography.align[s] : "", b = l !== "none" ? W.typography.transform[l] : "",
|
|
1303
|
+
}, p = s ? W.typography.align[s] : "", b = l !== "none" ? W.typography.transform[l] : "", x = u ? {
|
|
1304
1304
|
display: "-webkit-box",
|
|
1305
1305
|
WebkitLineClamp: u,
|
|
1306
1306
|
WebkitBoxOrient: "vertical",
|
|
@@ -1319,7 +1319,7 @@ const oa = ({
|
|
|
1319
1319
|
u && "overflow-hidden",
|
|
1320
1320
|
d
|
|
1321
1321
|
),
|
|
1322
|
-
style:
|
|
1322
|
+
style: x,
|
|
1323
1323
|
children: t
|
|
1324
1324
|
}
|
|
1325
1325
|
);
|
|
@@ -1844,8 +1844,8 @@ const oa = ({
|
|
|
1844
1844
|
return () => clearInterval(d);
|
|
1845
1845
|
}, [r]);
|
|
1846
1846
|
const i = (() => {
|
|
1847
|
-
const m = (/* @__PURE__ */ new Date()).getTime() - s.getTime(), h = Math.floor(m / 1e3), y = Math.floor(h / 60), f = Math.floor(y / 60), p = Math.floor(f / 24), b = Math.floor(p / 7),
|
|
1848
|
-
return h < 60 ? "just now" : y < 60 ? `${y} ${y === 1 ? "minute" : "minutes"} ago` : f < 24 ? `${f} ${f === 1 ? "hour" : "hours"} ago` : p < 7 ? `${p} ${p === 1 ? "day" : "days"} ago` : b < 4 ? `${b} ${b === 1 ? "week" : "weeks"} ago` :
|
|
1847
|
+
const m = (/* @__PURE__ */ new Date()).getTime() - s.getTime(), h = Math.floor(m / 1e3), y = Math.floor(h / 60), f = Math.floor(y / 60), p = Math.floor(f / 24), b = Math.floor(p / 7), x = Math.floor(p / 30), N = Math.floor(p / 365);
|
|
1848
|
+
return h < 60 ? "just now" : y < 60 ? `${y} ${y === 1 ? "minute" : "minutes"} ago` : f < 24 ? `${f} ${f === 1 ? "hour" : "hours"} ago` : p < 7 ? `${p} ${p === 1 ? "day" : "days"} ago` : b < 4 ? `${b} ${b === 1 ? "week" : "weeks"} ago` : x < 12 ? `${x} ${x === 1 ? "month" : "months"} ago` : `${N} ${N === 1 ? "year" : "years"} ago`;
|
|
1849
1849
|
})(), u = s.toLocaleString();
|
|
1850
1850
|
return /* @__PURE__ */ a(
|
|
1851
1851
|
"time",
|
|
@@ -2043,7 +2043,7 @@ const oa = ({
|
|
|
2043
2043
|
sm: "space-y-1",
|
|
2044
2044
|
md: "space-y-2",
|
|
2045
2045
|
lg: "space-y-3"
|
|
2046
|
-
}, p = o ?? s, b = (
|
|
2046
|
+
}, p = o ?? s, b = (x) => {
|
|
2047
2047
|
const N = {};
|
|
2048
2048
|
return e && (N.width = typeof e == "number" ? `${e}px` : e), r && (N.height = typeof r == "number" ? `${r}px` : r), i && (N.borderRadius = i), /* @__PURE__ */ a(
|
|
2049
2049
|
"div",
|
|
@@ -2056,12 +2056,12 @@ const oa = ({
|
|
|
2056
2056
|
),
|
|
2057
2057
|
style: N
|
|
2058
2058
|
},
|
|
2059
|
-
|
|
2059
|
+
x
|
|
2060
2060
|
);
|
|
2061
2061
|
};
|
|
2062
2062
|
if (p > 1) {
|
|
2063
|
-
const
|
|
2064
|
-
return /* @__PURE__ */ a("div", { className: c(
|
|
2063
|
+
const x = d !== void 0 ? `space-y-${d}` : f[m];
|
|
2064
|
+
return /* @__PURE__ */ a("div", { className: c(x), children: Array.from({ length: p }).map((N, w) => b(w)) });
|
|
2065
2065
|
}
|
|
2066
2066
|
return b();
|
|
2067
2067
|
}, ga = {
|
|
@@ -2321,18 +2321,18 @@ function yl({
|
|
|
2321
2321
|
o((f) => f.filter((p) => p.id !== y));
|
|
2322
2322
|
}, []), l = F(
|
|
2323
2323
|
(y, f, p) => {
|
|
2324
|
-
const b = fa(),
|
|
2324
|
+
const b = fa(), x = {
|
|
2325
2325
|
id: b,
|
|
2326
2326
|
type: y,
|
|
2327
2327
|
message: f,
|
|
2328
2328
|
duration: p ?? e
|
|
2329
2329
|
};
|
|
2330
2330
|
o((N) => {
|
|
2331
|
-
const
|
|
2332
|
-
return
|
|
2333
|
-
}),
|
|
2331
|
+
const w = [...N, x];
|
|
2332
|
+
return w.length > r ? w.slice(-r) : w;
|
|
2333
|
+
}), x.duration && x.duration > 0 && setTimeout(() => {
|
|
2334
2334
|
s(b);
|
|
2335
|
-
},
|
|
2335
|
+
}, x.duration);
|
|
2336
2336
|
},
|
|
2337
2337
|
[e, r, s]
|
|
2338
2338
|
), i = F(
|
|
@@ -2653,7 +2653,7 @@ const wl = ({
|
|
|
2653
2653
|
danger: "border border-red-600 text-red-600 dark:border-red-400 dark:text-red-400",
|
|
2654
2654
|
info: "border border-blue-600 text-blue-600 dark:border-blue-400 dark:text-blue-400",
|
|
2655
2655
|
purple: "border border-purple-600 text-purple-600 dark:border-purple-400 dark:text-purple-400"
|
|
2656
|
-
},
|
|
2656
|
+
}, x = {
|
|
2657
2657
|
sm: "px-2 py-0.5 text-xs",
|
|
2658
2658
|
md: "px-2.5 py-1 text-sm",
|
|
2659
2659
|
lg: "px-3 py-1.5 text-base"
|
|
@@ -2661,7 +2661,7 @@ const wl = ({
|
|
|
2661
2661
|
sm: "h-3 w-3",
|
|
2662
2662
|
md: "h-3.5 w-3.5",
|
|
2663
2663
|
lg: "h-4 w-4"
|
|
2664
|
-
},
|
|
2664
|
+
}, w = {
|
|
2665
2665
|
default: "bg-gray-600 dark:bg-gray-400",
|
|
2666
2666
|
primary: "bg-blue-600 dark:bg-blue-400",
|
|
2667
2667
|
success: "bg-green-600 dark:bg-green-400",
|
|
@@ -2669,13 +2669,13 @@ const wl = ({
|
|
|
2669
2669
|
danger: "bg-red-600 dark:bg-red-400",
|
|
2670
2670
|
info: "bg-blue-600 dark:bg-blue-400",
|
|
2671
2671
|
purple: "bg-purple-600 dark:bg-purple-400"
|
|
2672
|
-
}, C = m !== void 0 ? h !== void 0 && m > h ? `${h}+` : m.toString() : null,
|
|
2672
|
+
}, C = m !== void 0 ? h !== void 0 && m > h ? `${h}+` : m.toString() : null, v = /* @__PURE__ */ g(H, { children: [
|
|
2673
2673
|
o && /* @__PURE__ */ a(
|
|
2674
2674
|
"span",
|
|
2675
2675
|
{
|
|
2676
2676
|
className: c(
|
|
2677
2677
|
"h-2 w-2 rounded-full mr-1.5",
|
|
2678
|
-
|
|
2678
|
+
w[e]
|
|
2679
2679
|
)
|
|
2680
2680
|
}
|
|
2681
2681
|
),
|
|
@@ -2701,12 +2701,12 @@ const wl = ({
|
|
|
2701
2701
|
className: c(
|
|
2702
2702
|
"inline-flex items-center font-medium",
|
|
2703
2703
|
l ? b[e] : p[e],
|
|
2704
|
-
|
|
2704
|
+
x[r],
|
|
2705
2705
|
s ? "rounded-full" : "rounded",
|
|
2706
2706
|
i && "cursor-pointer hover:opacity-80",
|
|
2707
2707
|
y
|
|
2708
2708
|
),
|
|
2709
|
-
children:
|
|
2709
|
+
children: v
|
|
2710
2710
|
}
|
|
2711
2711
|
);
|
|
2712
2712
|
}, Sl = ({
|
|
@@ -2903,7 +2903,7 @@ const Il = ({
|
|
|
2903
2903
|
sm: "p-2 text-sm",
|
|
2904
2904
|
md: "p-3 text-base",
|
|
2905
2905
|
lg: "p-4 text-lg"
|
|
2906
|
-
},
|
|
2906
|
+
}, x = {
|
|
2907
2907
|
none: "resize-none",
|
|
2908
2908
|
vertical: "resize-y",
|
|
2909
2909
|
horizontal: "resize-x",
|
|
@@ -2915,20 +2915,20 @@ const Il = ({
|
|
|
2915
2915
|
trackingLabel: f,
|
|
2916
2916
|
componentName: p
|
|
2917
2917
|
}), e($));
|
|
2918
|
-
},
|
|
2918
|
+
}, w = () => {
|
|
2919
2919
|
y && y({
|
|
2920
2920
|
action: "blur",
|
|
2921
2921
|
trackingLabel: f,
|
|
2922
2922
|
componentName: p
|
|
2923
2923
|
});
|
|
2924
|
-
}, C = t.length,
|
|
2924
|
+
}, C = t.length, v = l || i !== void 0;
|
|
2925
2925
|
return /* @__PURE__ */ g("div", { className: c("w-full", m), children: [
|
|
2926
2926
|
/* @__PURE__ */ a(
|
|
2927
2927
|
"textarea",
|
|
2928
2928
|
{
|
|
2929
2929
|
value: t,
|
|
2930
2930
|
onChange: N,
|
|
2931
|
-
onBlur:
|
|
2931
|
+
onBlur: w,
|
|
2932
2932
|
placeholder: r,
|
|
2933
2933
|
rows: n,
|
|
2934
2934
|
disabled: o,
|
|
@@ -2943,14 +2943,14 @@ const Il = ({
|
|
|
2943
2943
|
"focus:outline-none focus:ring-2 focus:ring-blue-500 focus:border-transparent",
|
|
2944
2944
|
"transition-colors duration-200",
|
|
2945
2945
|
b[d],
|
|
2946
|
-
|
|
2946
|
+
x[u],
|
|
2947
2947
|
o && "opacity-50 cursor-not-allowed",
|
|
2948
2948
|
s && "bg-gray-50 dark:bg-gray-900 cursor-default"
|
|
2949
2949
|
),
|
|
2950
2950
|
...h
|
|
2951
2951
|
}
|
|
2952
2952
|
),
|
|
2953
|
-
|
|
2953
|
+
v && /* @__PURE__ */ a("div", { className: "flex justify-end mt-1", children: /* @__PURE__ */ g(
|
|
2954
2954
|
"span",
|
|
2955
2955
|
{
|
|
2956
2956
|
className: c(
|
|
@@ -2982,7 +2982,7 @@ const Il = ({
|
|
|
2982
2982
|
trackingLabel: f,
|
|
2983
2983
|
componentName: p
|
|
2984
2984
|
}) => {
|
|
2985
|
-
const
|
|
2985
|
+
const x = {
|
|
2986
2986
|
sm: {
|
|
2987
2987
|
input: "py-1.5 px-3 text-sm",
|
|
2988
2988
|
button: "w-6 h-6",
|
|
@@ -3002,7 +3002,7 @@ const Il = ({
|
|
|
3002
3002
|
action: M,
|
|
3003
3003
|
trackingLabel: f,
|
|
3004
3004
|
componentName: p
|
|
3005
|
-
}),
|
|
3005
|
+
}), w = (M) => {
|
|
3006
3006
|
const U = parseFloat(M.target.value);
|
|
3007
3007
|
if (isNaN(U)) {
|
|
3008
3008
|
if (M.target.value === "") {
|
|
@@ -3016,7 +3016,7 @@ const Il = ({
|
|
|
3016
3016
|
}, C = (M) => {
|
|
3017
3017
|
let U = M;
|
|
3018
3018
|
return r !== void 0 && U < r && (U = r), n !== void 0 && U > n && (U = n), U;
|
|
3019
|
-
},
|
|
3019
|
+
}, v = () => {
|
|
3020
3020
|
const M = C(t + o);
|
|
3021
3021
|
y && y(N("increment")), e(M);
|
|
3022
3022
|
}, k = () => {
|
|
@@ -3042,7 +3042,7 @@ const Il = ({
|
|
|
3042
3042
|
"hover:bg-gray-50 dark:hover:bg-gray-700",
|
|
3043
3043
|
"focus:outline-none focus:ring-2 focus:ring-blue-500",
|
|
3044
3044
|
"transition-colors",
|
|
3045
|
-
|
|
3045
|
+
x.button,
|
|
3046
3046
|
(s || z) && "opacity-50 cursor-not-allowed"
|
|
3047
3047
|
),
|
|
3048
3048
|
children: U
|
|
@@ -3054,7 +3054,7 @@ const Il = ({
|
|
|
3054
3054
|
{
|
|
3055
3055
|
onClick: k,
|
|
3056
3056
|
disabled: !E,
|
|
3057
|
-
icon: /* @__PURE__ */ a(kt, { className:
|
|
3057
|
+
icon: /* @__PURE__ */ a(kt, { className: x.icon }),
|
|
3058
3058
|
ariaLabel: "Decrement"
|
|
3059
3059
|
}
|
|
3060
3060
|
),
|
|
@@ -3063,7 +3063,7 @@ const Il = ({
|
|
|
3063
3063
|
{
|
|
3064
3064
|
type: "number",
|
|
3065
3065
|
value: t,
|
|
3066
|
-
onChange:
|
|
3066
|
+
onChange: w,
|
|
3067
3067
|
min: r,
|
|
3068
3068
|
max: n,
|
|
3069
3069
|
step: o,
|
|
@@ -3076,7 +3076,7 @@ const Il = ({
|
|
|
3076
3076
|
"text-gray-900 dark:text-gray-100",
|
|
3077
3077
|
"focus:outline-none focus:ring-2 focus:ring-blue-500 focus:z-10",
|
|
3078
3078
|
"transition-colors",
|
|
3079
|
-
|
|
3079
|
+
x.input,
|
|
3080
3080
|
s && "opacity-50 cursor-not-allowed",
|
|
3081
3081
|
// Hide number input spinners
|
|
3082
3082
|
"[appearance:textfield]",
|
|
@@ -3089,9 +3089,9 @@ const Il = ({
|
|
|
3089
3089
|
/* @__PURE__ */ a(
|
|
3090
3090
|
I,
|
|
3091
3091
|
{
|
|
3092
|
-
onClick:
|
|
3092
|
+
onClick: v,
|
|
3093
3093
|
disabled: !$,
|
|
3094
|
-
icon: /* @__PURE__ */ a(Nt, { className:
|
|
3094
|
+
icon: /* @__PURE__ */ a(Nt, { className: x.icon }),
|
|
3095
3095
|
ariaLabel: "Increment"
|
|
3096
3096
|
}
|
|
3097
3097
|
)
|
|
@@ -3101,7 +3101,7 @@ const Il = ({
|
|
|
3101
3101
|
{
|
|
3102
3102
|
type: "number",
|
|
3103
3103
|
value: t,
|
|
3104
|
-
onChange:
|
|
3104
|
+
onChange: w,
|
|
3105
3105
|
min: r,
|
|
3106
3106
|
max: n,
|
|
3107
3107
|
step: o,
|
|
@@ -3115,7 +3115,7 @@ const Il = ({
|
|
|
3115
3115
|
"placeholder-gray-400 dark:placeholder-gray-500",
|
|
3116
3116
|
"focus:outline-none focus:ring-2 focus:ring-blue-500 focus:border-transparent",
|
|
3117
3117
|
"transition-colors",
|
|
3118
|
-
|
|
3118
|
+
x.input,
|
|
3119
3119
|
s && "opacity-50 cursor-not-allowed",
|
|
3120
3120
|
// Hide number input spinners
|
|
3121
3121
|
"[appearance:textfield]",
|
|
@@ -3130,7 +3130,7 @@ const Il = ({
|
|
|
3130
3130
|
"button",
|
|
3131
3131
|
{
|
|
3132
3132
|
type: "button",
|
|
3133
|
-
onClick:
|
|
3133
|
+
onClick: v,
|
|
3134
3134
|
disabled: s || !$,
|
|
3135
3135
|
"aria-label": "Increment",
|
|
3136
3136
|
className: c(
|
|
@@ -3142,10 +3142,10 @@ const Il = ({
|
|
|
3142
3142
|
"focus:outline-none focus:ring-2 focus:ring-blue-500",
|
|
3143
3143
|
"transition-colors",
|
|
3144
3144
|
"flex-1",
|
|
3145
|
-
|
|
3145
|
+
x.button.replace(/h-\d+/, "h-auto"),
|
|
3146
3146
|
(s || !$) && "opacity-50 cursor-not-allowed"
|
|
3147
3147
|
),
|
|
3148
|
-
children: /* @__PURE__ */ a(Nt, { className: c(
|
|
3148
|
+
children: /* @__PURE__ */ a(Nt, { className: c(x.icon, "w-3 h-3") })
|
|
3149
3149
|
}
|
|
3150
3150
|
),
|
|
3151
3151
|
/* @__PURE__ */ a(
|
|
@@ -3164,10 +3164,10 @@ const Il = ({
|
|
|
3164
3164
|
"focus:outline-none focus:ring-2 focus:ring-blue-500",
|
|
3165
3165
|
"transition-colors",
|
|
3166
3166
|
"flex-1",
|
|
3167
|
-
|
|
3167
|
+
x.button.replace(/h-\d+/, "h-auto"),
|
|
3168
3168
|
(s || !E) && "opacity-50 cursor-not-allowed"
|
|
3169
3169
|
),
|
|
3170
|
-
children: /* @__PURE__ */ a(kt, { className: c(
|
|
3170
|
+
children: /* @__PURE__ */ a(kt, { className: c(x.icon, "w-3 h-3") })
|
|
3171
3171
|
}
|
|
3172
3172
|
)
|
|
3173
3173
|
] })
|
|
@@ -3176,7 +3176,7 @@ const Il = ({
|
|
|
3176
3176
|
{
|
|
3177
3177
|
type: "number",
|
|
3178
3178
|
value: t,
|
|
3179
|
-
onChange:
|
|
3179
|
+
onChange: w,
|
|
3180
3180
|
min: r,
|
|
3181
3181
|
max: n,
|
|
3182
3182
|
step: o,
|
|
@@ -3190,7 +3190,7 @@ const Il = ({
|
|
|
3190
3190
|
"placeholder-gray-400 dark:placeholder-gray-500",
|
|
3191
3191
|
"focus:outline-none focus:ring-2 focus:ring-blue-500 focus:border-transparent",
|
|
3192
3192
|
"transition-colors",
|
|
3193
|
-
|
|
3193
|
+
x.input,
|
|
3194
3194
|
s && "opacity-50 cursor-not-allowed",
|
|
3195
3195
|
m
|
|
3196
3196
|
),
|
|
@@ -3213,7 +3213,7 @@ const Il = ({
|
|
|
3213
3213
|
trackingLabel: y,
|
|
3214
3214
|
componentName: f
|
|
3215
3215
|
}) => {
|
|
3216
|
-
const [p, b] = T(""),
|
|
3216
|
+
const [p, b] = T(""), x = t !== void 0 ? t : p, N = t !== void 0, C = {
|
|
3217
3217
|
sm: {
|
|
3218
3218
|
input: "py-1.5 text-sm",
|
|
3219
3219
|
icon: "h-4 w-4",
|
|
@@ -3235,7 +3235,7 @@ const Il = ({
|
|
|
3235
3235
|
iconLeft: "left-0 pl-3.5",
|
|
3236
3236
|
iconRight: "right-0 pr-3.5"
|
|
3237
3237
|
}
|
|
3238
|
-
}[s],
|
|
3238
|
+
}[s], v = F(
|
|
3239
3239
|
(E) => {
|
|
3240
3240
|
const I = E.target.value;
|
|
3241
3241
|
N || b(I), e?.(I);
|
|
@@ -3274,8 +3274,8 @@ const Il = ({
|
|
|
3274
3274
|
"input",
|
|
3275
3275
|
{
|
|
3276
3276
|
type: "text",
|
|
3277
|
-
value:
|
|
3278
|
-
onChange:
|
|
3277
|
+
value: x,
|
|
3278
|
+
onChange: v,
|
|
3279
3279
|
onBlur: k,
|
|
3280
3280
|
placeholder: r,
|
|
3281
3281
|
autoFocus: n,
|
|
@@ -3296,7 +3296,7 @@ const Il = ({
|
|
|
3296
3296
|
...m
|
|
3297
3297
|
}
|
|
3298
3298
|
),
|
|
3299
|
-
i &&
|
|
3299
|
+
i && x && !u && /* @__PURE__ */ a(
|
|
3300
3300
|
"button",
|
|
3301
3301
|
{
|
|
3302
3302
|
type: "button",
|
|
@@ -3469,37 +3469,37 @@ const Sa = ({
|
|
|
3469
3469
|
const [l, i] = T(!1), [u, d] = T("12"), [m, h] = T("00"), [y, f] = T("AM"), p = j(null);
|
|
3470
3470
|
P(() => {
|
|
3471
3471
|
if (t) {
|
|
3472
|
-
const [C,
|
|
3472
|
+
const [C, v] = t.split(":"), k = parseInt(C, 10);
|
|
3473
3473
|
if (r) {
|
|
3474
3474
|
const $ = k >= 12, E = k === 0 ? 12 : k > 12 ? k - 12 : k;
|
|
3475
3475
|
d(E.toString().padStart(2, "0")), f($ ? "PM" : "AM");
|
|
3476
3476
|
} else
|
|
3477
3477
|
d(C);
|
|
3478
|
-
h(
|
|
3478
|
+
h(v);
|
|
3479
3479
|
}
|
|
3480
3480
|
}, [t, r]), P(() => {
|
|
3481
|
-
const C = (
|
|
3482
|
-
p.current && !p.current.contains(
|
|
3481
|
+
const C = (v) => {
|
|
3482
|
+
p.current && !p.current.contains(v.target) && i(!1);
|
|
3483
3483
|
};
|
|
3484
3484
|
return document.addEventListener("mousedown", C), () => document.removeEventListener("mousedown", C);
|
|
3485
3485
|
}, []);
|
|
3486
3486
|
const b = () => {
|
|
3487
3487
|
if (!t) return "";
|
|
3488
|
-
const [C,
|
|
3488
|
+
const [C, v] = t.split(":"), k = parseInt(C, 10);
|
|
3489
3489
|
if (r) {
|
|
3490
3490
|
const $ = k === 0 ? 12 : k > 12 ? k - 12 : k, E = k >= 12 ? "PM" : "AM";
|
|
3491
|
-
return `${$}:${
|
|
3491
|
+
return `${$}:${v} ${E}`;
|
|
3492
3492
|
}
|
|
3493
|
-
return `${C}:${
|
|
3494
|
-
},
|
|
3493
|
+
return `${C}:${v}`;
|
|
3494
|
+
}, x = (C, v, k) => {
|
|
3495
3495
|
let $ = parseInt(C, 10);
|
|
3496
|
-
const E = parseInt(
|
|
3496
|
+
const E = parseInt(v, 10);
|
|
3497
3497
|
r && k && (k === "PM" && $ !== 12 ? $ += 12 : k === "AM" && $ === 12 && ($ = 0));
|
|
3498
3498
|
const I = `${$.toString().padStart(2, "0")}:${E.toString().padStart(2, "0")}`;
|
|
3499
3499
|
e(I);
|
|
3500
|
-
}, N = r ? Array.from({ length: 12 }, (C,
|
|
3500
|
+
}, N = r ? Array.from({ length: 12 }, (C, v) => (v + 1).toString().padStart(2, "0")) : Array.from({ length: 24 }, (C, v) => v.toString().padStart(2, "0")), w = Array.from(
|
|
3501
3501
|
{ length: Math.ceil(60 / n) },
|
|
3502
|
-
(C,
|
|
3502
|
+
(C, v) => (v * n).toString().padStart(2, "0")
|
|
3503
3503
|
);
|
|
3504
3504
|
return /* @__PURE__ */ g("div", { ref: p, className: c("relative w-full", s), children: [
|
|
3505
3505
|
/* @__PURE__ */ g(
|
|
@@ -3556,7 +3556,7 @@ const Sa = ({
|
|
|
3556
3556
|
"button",
|
|
3557
3557
|
{
|
|
3558
3558
|
onClick: () => {
|
|
3559
|
-
d(C),
|
|
3559
|
+
d(C), x(
|
|
3560
3560
|
C,
|
|
3561
3561
|
m,
|
|
3562
3562
|
r ? y : void 0
|
|
@@ -3575,11 +3575,11 @@ const Sa = ({
|
|
|
3575
3575
|
] }),
|
|
3576
3576
|
/* @__PURE__ */ g("div", { className: "flex flex-col", children: [
|
|
3577
3577
|
/* @__PURE__ */ a("div", { className: "text-xs font-medium text-gray-700 dark:text-gray-300 text-center mb-1 px-2", children: "Min" }),
|
|
3578
|
-
/* @__PURE__ */ a("div", { className: "h-48 overflow-y-auto w-16 border border-gray-200 dark:border-gray-700 rounded", children:
|
|
3578
|
+
/* @__PURE__ */ a("div", { className: "h-48 overflow-y-auto w-16 border border-gray-200 dark:border-gray-700 rounded", children: w.map((C) => /* @__PURE__ */ a(
|
|
3579
3579
|
"button",
|
|
3580
3580
|
{
|
|
3581
3581
|
onClick: () => {
|
|
3582
|
-
h(C),
|
|
3582
|
+
h(C), x(
|
|
3583
3583
|
u,
|
|
3584
3584
|
C,
|
|
3585
3585
|
r ? y : void 0
|
|
@@ -3603,7 +3603,7 @@ const Sa = ({
|
|
|
3603
3603
|
"button",
|
|
3604
3604
|
{
|
|
3605
3605
|
onClick: () => {
|
|
3606
|
-
f("AM"),
|
|
3606
|
+
f("AM"), x(u, m, "AM");
|
|
3607
3607
|
},
|
|
3608
3608
|
className: c(
|
|
3609
3609
|
"px-3 py-2 text-sm text-center rounded",
|
|
@@ -3618,7 +3618,7 @@ const Sa = ({
|
|
|
3618
3618
|
"button",
|
|
3619
3619
|
{
|
|
3620
3620
|
onClick: () => {
|
|
3621
|
-
f("PM"),
|
|
3621
|
+
f("PM"), x(u, m, "PM");
|
|
3622
3622
|
},
|
|
3623
3623
|
className: c(
|
|
3624
3624
|
"px-3 py-2 text-sm text-center rounded",
|
|
@@ -3661,16 +3661,16 @@ const Sa = ({
|
|
|
3661
3661
|
}) => {
|
|
3662
3662
|
const [u, d] = T(
|
|
3663
3663
|
o[0]?.code || "US"
|
|
3664
|
-
), [m, h] = T(!1), [y, f] = T(""), p = r !== void 0 ? r : u, b = o.find((
|
|
3665
|
-
r !== void 0 && n ? n(
|
|
3666
|
-
}, N = (
|
|
3667
|
-
const k =
|
|
3664
|
+
), [m, h] = T(!1), [y, f] = T(""), p = r !== void 0 ? r : u, b = o.find((v) => v.code === p), x = (v) => {
|
|
3665
|
+
r !== void 0 && n ? n(v) : d(v), h(!1), f("");
|
|
3666
|
+
}, N = (v) => {
|
|
3667
|
+
const k = v.replace(/\D/g, "");
|
|
3668
3668
|
return b?.dialCode === "+1" ? k.length <= 3 ? k : k.length <= 6 ? `(${k.slice(0, 3)}) ${k.slice(3)}` : `(${k.slice(0, 3)}) ${k.slice(3, 6)}-${k.slice(6, 10)}` : k;
|
|
3669
|
-
},
|
|
3670
|
-
const k = N(
|
|
3669
|
+
}, w = (v) => {
|
|
3670
|
+
const k = N(v.target.value);
|
|
3671
3671
|
e(k);
|
|
3672
3672
|
}, C = o.filter(
|
|
3673
|
-
(
|
|
3673
|
+
(v) => v.name.toLowerCase().includes(y.toLowerCase()) || v.dialCode.includes(y) || v.code.toLowerCase().includes(y.toLowerCase())
|
|
3674
3674
|
);
|
|
3675
3675
|
return /* @__PURE__ */ g("div", { className: c("relative w-full", i), children: [
|
|
3676
3676
|
/* @__PURE__ */ g("div", { className: "flex gap-2", children: [
|
|
@@ -3724,29 +3724,29 @@ const Sa = ({
|
|
|
3724
3724
|
{
|
|
3725
3725
|
type: "text",
|
|
3726
3726
|
value: y,
|
|
3727
|
-
onChange: (
|
|
3727
|
+
onChange: (v) => f(v.target.value),
|
|
3728
3728
|
placeholder: "Search countries...",
|
|
3729
3729
|
className: "w-full px-3 py-2 text-sm bg-gray-50 dark:bg-gray-800 border-none rounded-md focus:outline-none focus:ring-2 focus:ring-blue-500 dark:focus:ring-blue-400",
|
|
3730
|
-
onClick: (
|
|
3730
|
+
onClick: (v) => v.stopPropagation()
|
|
3731
3731
|
}
|
|
3732
3732
|
) }),
|
|
3733
|
-
/* @__PURE__ */ a("div", { className: "max-h-60 overflow-y-auto py-1", children: C.length === 0 ? /* @__PURE__ */ a("div", { className: "px-3 py-2 text-sm text-gray-500 dark:text-gray-400 text-center", children: "No countries found" }) : C.map((
|
|
3733
|
+
/* @__PURE__ */ a("div", { className: "max-h-60 overflow-y-auto py-1", children: C.length === 0 ? /* @__PURE__ */ a("div", { className: "px-3 py-2 text-sm text-gray-500 dark:text-gray-400 text-center", children: "No countries found" }) : C.map((v) => /* @__PURE__ */ g(
|
|
3734
3734
|
"button",
|
|
3735
3735
|
{
|
|
3736
|
-
onClick: () => v
|
|
3736
|
+
onClick: () => x(v.code),
|
|
3737
3737
|
className: c(
|
|
3738
3738
|
"w-full px-3 py-2 text-left flex items-center gap-3",
|
|
3739
3739
|
"hover:bg-gray-100 dark:hover:bg-gray-800",
|
|
3740
3740
|
"transition-colors",
|
|
3741
|
-
|
|
3741
|
+
v.code === p && "bg-blue-50 dark:bg-blue-900/30"
|
|
3742
3742
|
),
|
|
3743
3743
|
children: [
|
|
3744
|
-
/* @__PURE__ */ a("span", { className: "text-xl", children:
|
|
3745
|
-
/* @__PURE__ */ a("span", { className: "flex-1 text-sm text-gray-900 dark:text-white", children:
|
|
3746
|
-
/* @__PURE__ */ a("span", { className: "text-sm text-gray-600 dark:text-gray-400", children:
|
|
3744
|
+
/* @__PURE__ */ a("span", { className: "text-xl", children: v.flag }),
|
|
3745
|
+
/* @__PURE__ */ a("span", { className: "flex-1 text-sm text-gray-900 dark:text-white", children: v.name }),
|
|
3746
|
+
/* @__PURE__ */ a("span", { className: "text-sm text-gray-600 dark:text-gray-400", children: v.dialCode })
|
|
3747
3747
|
]
|
|
3748
3748
|
},
|
|
3749
|
-
|
|
3749
|
+
v.code
|
|
3750
3750
|
)) })
|
|
3751
3751
|
] })
|
|
3752
3752
|
] }),
|
|
@@ -3755,7 +3755,7 @@ const Sa = ({
|
|
|
3755
3755
|
{
|
|
3756
3756
|
type: "tel",
|
|
3757
3757
|
value: t,
|
|
3758
|
-
onChange:
|
|
3758
|
+
onChange: w,
|
|
3759
3759
|
placeholder: s,
|
|
3760
3760
|
disabled: l,
|
|
3761
3761
|
className: c(
|
|
@@ -3794,11 +3794,11 @@ const Sa = ({
|
|
|
3794
3794
|
required: f = !1,
|
|
3795
3795
|
indeterminate: p = !1,
|
|
3796
3796
|
error: b = !1,
|
|
3797
|
-
errorMessage:
|
|
3797
|
+
errorMessage: x,
|
|
3798
3798
|
icon: N,
|
|
3799
|
-
onTrack:
|
|
3799
|
+
onTrack: w,
|
|
3800
3800
|
trackingLabel: C,
|
|
3801
|
-
componentName:
|
|
3801
|
+
componentName: v
|
|
3802
3802
|
}) => {
|
|
3803
3803
|
const [k, $] = T(e), E = t !== void 0, I = E ? t : k, M = {
|
|
3804
3804
|
sm: {
|
|
@@ -3832,19 +3832,19 @@ const Sa = ({
|
|
|
3832
3832
|
}, R = () => b ? I ? `${V.error}` : "border-red-600 dark:border-red-500" : I ? V[z] : D, _ = (re) => {
|
|
3833
3833
|
if (s) return;
|
|
3834
3834
|
const q = re.target.checked;
|
|
3835
|
-
E || $(q),
|
|
3835
|
+
E || $(q), w && w({
|
|
3836
3836
|
action: "toggle",
|
|
3837
3837
|
trackingLabel: C,
|
|
3838
|
-
componentName:
|
|
3838
|
+
componentName: v
|
|
3839
3839
|
}), r?.(q);
|
|
3840
3840
|
}, Y = (re) => {
|
|
3841
3841
|
if (!s && (re.key === " " || re.key === "Spacebar")) {
|
|
3842
3842
|
re.preventDefault();
|
|
3843
3843
|
const q = !I;
|
|
3844
|
-
E || $(q),
|
|
3844
|
+
E || $(q), w && w({
|
|
3845
3845
|
action: "toggle",
|
|
3846
3846
|
trackingLabel: C,
|
|
3847
|
-
componentName:
|
|
3847
|
+
componentName: v
|
|
3848
3848
|
}), r?.(q);
|
|
3849
3849
|
}
|
|
3850
3850
|
}, X = M[l];
|
|
@@ -3895,7 +3895,7 @@ const Sa = ({
|
|
|
3895
3895
|
]
|
|
3896
3896
|
}
|
|
3897
3897
|
),
|
|
3898
|
-
|
|
3898
|
+
x && /* @__PURE__ */ a("span", { className: c("mt-1", L.label.error()), children: x })
|
|
3899
3899
|
] });
|
|
3900
3900
|
}, $a = K.forwardRef(
|
|
3901
3901
|
({
|
|
@@ -3970,20 +3970,20 @@ const Dl = ({
|
|
|
3970
3970
|
label: "text-lg",
|
|
3971
3971
|
description: "text-base"
|
|
3972
3972
|
}
|
|
3973
|
-
}[m],
|
|
3974
|
-
!l && !C && r(
|
|
3975
|
-
}, N = (
|
|
3976
|
-
const
|
|
3973
|
+
}[m], x = (w, C) => {
|
|
3974
|
+
!l && !C && r(w);
|
|
3975
|
+
}, N = (w, C) => {
|
|
3976
|
+
const v = n.filter(($) => !$.disabled && !l), k = v.findIndex(
|
|
3977
3977
|
($) => $.value === n[C].value
|
|
3978
3978
|
);
|
|
3979
|
-
if (
|
|
3980
|
-
|
|
3981
|
-
const $ = (k + 1) %
|
|
3982
|
-
r(
|
|
3983
|
-
} else if (
|
|
3984
|
-
|
|
3985
|
-
const $ = (k - 1 +
|
|
3986
|
-
r(
|
|
3979
|
+
if (w.key === "ArrowDown" || w.key === "ArrowRight") {
|
|
3980
|
+
w.preventDefault();
|
|
3981
|
+
const $ = (k + 1) % v.length;
|
|
3982
|
+
r(v[$].value);
|
|
3983
|
+
} else if (w.key === "ArrowUp" || w.key === "ArrowLeft") {
|
|
3984
|
+
w.preventDefault();
|
|
3985
|
+
const $ = (k - 1 + v.length) % v.length;
|
|
3986
|
+
r(v[$].value);
|
|
3987
3987
|
}
|
|
3988
3988
|
};
|
|
3989
3989
|
return /* @__PURE__ */ g("div", { className: c("w-full", y), children: [
|
|
@@ -3999,14 +3999,14 @@ const Dl = ({
|
|
|
3999
3999
|
s === "horizontal" ? "flex flex-row gap-4" : "flex flex-col space-y-2"
|
|
4000
4000
|
),
|
|
4001
4001
|
role: "radiogroup",
|
|
4002
|
-
children: n.map((
|
|
4003
|
-
const
|
|
4002
|
+
children: n.map((w, C) => {
|
|
4003
|
+
const v = l || w.disabled, k = e === w.value;
|
|
4004
4004
|
return /* @__PURE__ */ g(
|
|
4005
4005
|
"label",
|
|
4006
4006
|
{
|
|
4007
4007
|
className: c(
|
|
4008
4008
|
"flex items-start cursor-pointer",
|
|
4009
|
-
|
|
4009
|
+
v && "opacity-50 cursor-not-allowed",
|
|
4010
4010
|
i && S.component.input.default.error
|
|
4011
4011
|
),
|
|
4012
4012
|
children: [
|
|
@@ -4015,11 +4015,11 @@ const Dl = ({
|
|
|
4015
4015
|
{
|
|
4016
4016
|
type: "radio",
|
|
4017
4017
|
name: t,
|
|
4018
|
-
value:
|
|
4018
|
+
value: w.value,
|
|
4019
4019
|
checked: k,
|
|
4020
|
-
onChange: () =>
|
|
4020
|
+
onChange: () => x(w.value, !!w.disabled),
|
|
4021
4021
|
onKeyDown: ($) => N($, C),
|
|
4022
|
-
disabled:
|
|
4022
|
+
disabled: v,
|
|
4023
4023
|
className: c(
|
|
4024
4024
|
"mt-0.5 mr-2",
|
|
4025
4025
|
b.radio,
|
|
@@ -4029,11 +4029,11 @@ const Dl = ({
|
|
|
4029
4029
|
S.component.input.default.focus,
|
|
4030
4030
|
"transition-colors",
|
|
4031
4031
|
i && S.component.input.default.error,
|
|
4032
|
-
|
|
4032
|
+
v && "cursor-not-allowed"
|
|
4033
4033
|
)
|
|
4034
4034
|
}
|
|
4035
4035
|
),
|
|
4036
|
-
/* @__PURE__ */ a("div", { className: "flex-1 min-w-0", children: h ? h(
|
|
4036
|
+
/* @__PURE__ */ a("div", { className: "flex-1 min-w-0", children: h ? h(w) : /* @__PURE__ */ g(H, { children: [
|
|
4037
4037
|
/* @__PURE__ */ a(
|
|
4038
4038
|
"span",
|
|
4039
4039
|
{
|
|
@@ -4041,10 +4041,10 @@ const Dl = ({
|
|
|
4041
4041
|
L.label.default(),
|
|
4042
4042
|
b.label
|
|
4043
4043
|
),
|
|
4044
|
-
children:
|
|
4044
|
+
children: w.label
|
|
4045
4045
|
}
|
|
4046
4046
|
),
|
|
4047
|
-
|
|
4047
|
+
w.description && /* @__PURE__ */ a(
|
|
4048
4048
|
"p",
|
|
4049
4049
|
{
|
|
4050
4050
|
className: c(
|
|
@@ -4052,13 +4052,13 @@ const Dl = ({
|
|
|
4052
4052
|
"mt-0.5",
|
|
4053
4053
|
b.description
|
|
4054
4054
|
),
|
|
4055
|
-
children:
|
|
4055
|
+
children: w.description
|
|
4056
4056
|
}
|
|
4057
4057
|
)
|
|
4058
4058
|
] }) })
|
|
4059
4059
|
]
|
|
4060
4060
|
},
|
|
4061
|
-
|
|
4061
|
+
w.value
|
|
4062
4062
|
);
|
|
4063
4063
|
})
|
|
4064
4064
|
}
|
|
@@ -4218,19 +4218,19 @@ const Bl = ({
|
|
|
4218
4218
|
className: u
|
|
4219
4219
|
}) => {
|
|
4220
4220
|
const [d, m] = T(!1), [h, y] = T(""), f = j(null), p = s ? t.filter(
|
|
4221
|
-
(
|
|
4222
|
-
) : t, b = t.filter((
|
|
4223
|
-
e.includes(
|
|
4224
|
-
}, N = (
|
|
4225
|
-
r(e.filter((k) => k !==
|
|
4221
|
+
(v) => v.label.toLowerCase().includes(h.toLowerCase())
|
|
4222
|
+
) : t, b = t.filter((v) => e.includes(v.value)), x = (v) => {
|
|
4223
|
+
e.includes(v) ? r(e.filter((k) => k !== v)) : r([...e, v]);
|
|
4224
|
+
}, N = (v) => {
|
|
4225
|
+
r(e.filter((k) => k !== v));
|
|
4226
4226
|
};
|
|
4227
4227
|
P(() => {
|
|
4228
|
-
const
|
|
4228
|
+
const v = (k) => {
|
|
4229
4229
|
f.current && !f.current.contains(k.target) && (m(!1), y(""));
|
|
4230
4230
|
};
|
|
4231
|
-
return document.addEventListener("mousedown",
|
|
4231
|
+
return document.addEventListener("mousedown", v), () => document.removeEventListener("mousedown", v);
|
|
4232
4232
|
}, []);
|
|
4233
|
-
const
|
|
4233
|
+
const w = b.length, C = w > l ? w - l : 0;
|
|
4234
4234
|
return /* @__PURE__ */ g("div", { ref: f, className: c("relative w-full", u), children: [
|
|
4235
4235
|
/* @__PURE__ */ a(
|
|
4236
4236
|
"button",
|
|
@@ -4249,17 +4249,17 @@ const Bl = ({
|
|
|
4249
4249
|
d && "ring-2 ring-blue-500 dark:ring-blue-400"
|
|
4250
4250
|
),
|
|
4251
4251
|
children: /* @__PURE__ */ a("div", { className: "flex flex-wrap gap-1.5", children: b.length === 0 ? /* @__PURE__ */ a("span", { className: "text-gray-500 dark:text-gray-400", children: n }) : /* @__PURE__ */ g(H, { children: [
|
|
4252
|
-
b.slice(0, l).map((
|
|
4252
|
+
b.slice(0, l).map((v) => /* @__PURE__ */ g(
|
|
4253
4253
|
"span",
|
|
4254
4254
|
{
|
|
4255
4255
|
className: "inline-flex items-center gap-1 px-2 py-0.5 bg-blue-100 dark:bg-blue-900/30 text-blue-700 dark:text-blue-300 rounded text-xs font-medium",
|
|
4256
4256
|
children: [
|
|
4257
|
-
|
|
4257
|
+
v.label,
|
|
4258
4258
|
/* @__PURE__ */ a(
|
|
4259
4259
|
"button",
|
|
4260
4260
|
{
|
|
4261
4261
|
onClick: (k) => {
|
|
4262
|
-
k.stopPropagation(), N(
|
|
4262
|
+
k.stopPropagation(), N(v.value);
|
|
4263
4263
|
},
|
|
4264
4264
|
className: "hover:text-blue-900 dark:hover:text-blue-100",
|
|
4265
4265
|
children: /* @__PURE__ */ a(
|
|
@@ -4284,7 +4284,7 @@ const Bl = ({
|
|
|
4284
4284
|
)
|
|
4285
4285
|
]
|
|
4286
4286
|
},
|
|
4287
|
-
|
|
4287
|
+
v.value
|
|
4288
4288
|
)),
|
|
4289
4289
|
C > 0 && /* @__PURE__ */ g("span", { className: "inline-flex items-center px-2 py-0.5 bg-gray-200 dark:bg-gray-700 text-gray-700 dark:text-gray-300 rounded text-xs font-medium", children: [
|
|
4290
4290
|
"+",
|
|
@@ -4300,19 +4300,19 @@ const Bl = ({
|
|
|
4300
4300
|
{
|
|
4301
4301
|
type: "text",
|
|
4302
4302
|
value: h,
|
|
4303
|
-
onChange: (
|
|
4303
|
+
onChange: (v) => y(v.target.value),
|
|
4304
4304
|
placeholder: o,
|
|
4305
4305
|
className: "w-full px-3 py-2 text-sm bg-gray-50 dark:bg-gray-800 border-none rounded-md focus:outline-none focus:ring-2 focus:ring-blue-500 dark:focus:ring-blue-400",
|
|
4306
|
-
onClick: (
|
|
4306
|
+
onClick: (v) => v.stopPropagation()
|
|
4307
4307
|
}
|
|
4308
4308
|
) }),
|
|
4309
|
-
/* @__PURE__ */ a("div", { className: "max-h-60 overflow-y-auto py-1", children: p.length === 0 ? /* @__PURE__ */ a("div", { className: "px-3 py-2 text-sm text-gray-500 dark:text-gray-400 text-center", children: "No options found" }) : p.map((
|
|
4310
|
-
const k = e.includes(
|
|
4309
|
+
/* @__PURE__ */ a("div", { className: "max-h-60 overflow-y-auto py-1", children: p.length === 0 ? /* @__PURE__ */ a("div", { className: "px-3 py-2 text-sm text-gray-500 dark:text-gray-400 text-center", children: "No options found" }) : p.map((v) => {
|
|
4310
|
+
const k = e.includes(v.value);
|
|
4311
4311
|
return /* @__PURE__ */ g(
|
|
4312
4312
|
"button",
|
|
4313
4313
|
{
|
|
4314
|
-
onClick: () => !
|
|
4315
|
-
disabled:
|
|
4314
|
+
onClick: () => !v.disabled && x(v.value),
|
|
4315
|
+
disabled: v.disabled,
|
|
4316
4316
|
className: c(
|
|
4317
4317
|
"w-full px-3 py-2 text-sm text-left flex items-center gap-2",
|
|
4318
4318
|
"hover:bg-gray-100 dark:hover:bg-gray-800",
|
|
@@ -4347,10 +4347,10 @@ const Bl = ({
|
|
|
4347
4347
|
)
|
|
4348
4348
|
}
|
|
4349
4349
|
),
|
|
4350
|
-
/* @__PURE__ */ a("span", { className: "flex-1 text-gray-900 dark:text-white", children:
|
|
4350
|
+
/* @__PURE__ */ a("span", { className: "flex-1 text-gray-900 dark:text-white", children: v.label })
|
|
4351
4351
|
]
|
|
4352
4352
|
},
|
|
4353
|
-
|
|
4353
|
+
v.value
|
|
4354
4354
|
);
|
|
4355
4355
|
}) }),
|
|
4356
4356
|
e.length > 0 && /* @__PURE__ */ g("div", { className: "p-2 border-t border-gray-200 dark:border-gray-700 flex justify-between items-center", children: [
|
|
@@ -4361,8 +4361,8 @@ const Bl = ({
|
|
|
4361
4361
|
/* @__PURE__ */ a(
|
|
4362
4362
|
"button",
|
|
4363
4363
|
{
|
|
4364
|
-
onClick: (
|
|
4365
|
-
|
|
4364
|
+
onClick: (v) => {
|
|
4365
|
+
v.stopPropagation(), r([]);
|
|
4366
4366
|
},
|
|
4367
4367
|
className: "text-xs text-blue-600 dark:text-blue-400 hover:underline",
|
|
4368
4368
|
children: "Clear all"
|
|
@@ -4381,43 +4381,43 @@ const Bl = ({
|
|
|
4381
4381
|
disabled: l = !1,
|
|
4382
4382
|
className: i
|
|
4383
4383
|
}) => {
|
|
4384
|
-
const [u, d] = T(!1), [m, h] = T(""), [y, f] = T(0), p = j(null), b = j(null),
|
|
4385
|
-
(
|
|
4386
|
-
), N = t.find((
|
|
4384
|
+
const [u, d] = T(!1), [m, h] = T(""), [y, f] = T(0), p = j(null), b = j(null), x = t.filter(
|
|
4385
|
+
(v) => v.label.toLowerCase().includes(m.toLowerCase())
|
|
4386
|
+
), N = t.find((v) => v.value === e);
|
|
4387
4387
|
P(() => {
|
|
4388
4388
|
if (!u) return;
|
|
4389
|
-
const
|
|
4389
|
+
const v = (k) => {
|
|
4390
4390
|
p.current && !p.current.contains(k.target) && (d(!1), h(""));
|
|
4391
4391
|
};
|
|
4392
|
-
return document.addEventListener("mousedown",
|
|
4392
|
+
return document.addEventListener("mousedown", v), () => document.removeEventListener("mousedown", v);
|
|
4393
4393
|
}, [u]), P(() => {
|
|
4394
4394
|
u && b.current && b.current.focus();
|
|
4395
4395
|
}, [u]), P(() => {
|
|
4396
4396
|
f(0);
|
|
4397
4397
|
}, [m]);
|
|
4398
|
-
const
|
|
4398
|
+
const w = (v) => {
|
|
4399
4399
|
if (!u) {
|
|
4400
|
-
(
|
|
4400
|
+
(v.key === "Enter" || v.key === " ") && (v.preventDefault(), d(!0));
|
|
4401
4401
|
return;
|
|
4402
4402
|
}
|
|
4403
|
-
switch (
|
|
4403
|
+
switch (v.key) {
|
|
4404
4404
|
case "ArrowDown":
|
|
4405
|
-
|
|
4406
|
-
(k) => k <
|
|
4405
|
+
v.preventDefault(), f(
|
|
4406
|
+
(k) => k < x.length - 1 ? k + 1 : k
|
|
4407
4407
|
);
|
|
4408
4408
|
break;
|
|
4409
4409
|
case "ArrowUp":
|
|
4410
|
-
|
|
4410
|
+
v.preventDefault(), f((k) => k > 0 ? k - 1 : k);
|
|
4411
4411
|
break;
|
|
4412
4412
|
case "Enter":
|
|
4413
|
-
|
|
4413
|
+
v.preventDefault(), x[y] && !x[y].disabled && (r(x[y].value), d(!1), h(""));
|
|
4414
4414
|
break;
|
|
4415
4415
|
case "Escape":
|
|
4416
|
-
|
|
4416
|
+
v.preventDefault(), d(!1), h("");
|
|
4417
4417
|
break;
|
|
4418
4418
|
}
|
|
4419
|
-
}, C = (
|
|
4420
|
-
k || (r(
|
|
4419
|
+
}, C = (v, k) => {
|
|
4420
|
+
k || (r(v), d(!1), h(""));
|
|
4421
4421
|
};
|
|
4422
4422
|
return /* @__PURE__ */ g("div", { ref: p, className: c("relative w-full", i), children: [
|
|
4423
4423
|
/* @__PURE__ */ g(
|
|
@@ -4425,7 +4425,7 @@ const Bl = ({
|
|
|
4425
4425
|
{
|
|
4426
4426
|
type: "button",
|
|
4427
4427
|
onClick: () => !l && d(!u),
|
|
4428
|
-
onKeyDown:
|
|
4428
|
+
onKeyDown: w,
|
|
4429
4429
|
disabled: l,
|
|
4430
4430
|
className: c(
|
|
4431
4431
|
"w-full flex items-center justify-between",
|
|
@@ -4480,26 +4480,26 @@ const Bl = ({
|
|
|
4480
4480
|
ref: b,
|
|
4481
4481
|
type: "text",
|
|
4482
4482
|
value: m,
|
|
4483
|
-
onChange: (
|
|
4484
|
-
onKeyDown:
|
|
4483
|
+
onChange: (v) => h(v.target.value),
|
|
4484
|
+
onKeyDown: w,
|
|
4485
4485
|
placeholder: o,
|
|
4486
4486
|
className: "w-full px-3 py-2 text-sm bg-gray-50 dark:bg-gray-800 border-none rounded-md focus:outline-none focus:ring-2 focus:ring-blue-500 dark:focus:ring-blue-400"
|
|
4487
4487
|
}
|
|
4488
4488
|
) }),
|
|
4489
|
-
/* @__PURE__ */ a("div", { className: "max-h-60 overflow-y-auto py-1", children:
|
|
4489
|
+
/* @__PURE__ */ a("div", { className: "max-h-60 overflow-y-auto py-1", children: x.length === 0 ? /* @__PURE__ */ a("div", { className: "px-3 py-2 text-sm text-gray-500 dark:text-gray-400 text-center", children: s }) : x.map((v, k) => /* @__PURE__ */ a(
|
|
4490
4490
|
"button",
|
|
4491
4491
|
{
|
|
4492
|
-
onClick: () => C(
|
|
4493
|
-
disabled:
|
|
4492
|
+
onClick: () => C(v.value, v.disabled),
|
|
4493
|
+
disabled: v.disabled,
|
|
4494
4494
|
className: c(
|
|
4495
4495
|
"w-full px-3 py-2 text-sm text-left",
|
|
4496
4496
|
"transition-colors",
|
|
4497
4497
|
"disabled:opacity-50 disabled:cursor-not-allowed",
|
|
4498
|
-
|
|
4498
|
+
v.value === e ? "bg-blue-50 dark:bg-blue-900/30 text-blue-700 dark:text-blue-300" : k === y ? "bg-gray-100 dark:bg-gray-800" : "hover:bg-gray-50 dark:hover:bg-gray-800"
|
|
4499
4499
|
),
|
|
4500
|
-
children:
|
|
4500
|
+
children: v.label
|
|
4501
4501
|
},
|
|
4502
|
-
|
|
4502
|
+
v.value
|
|
4503
4503
|
)) })
|
|
4504
4504
|
] })
|
|
4505
4505
|
] });
|
|
@@ -4514,7 +4514,7 @@ const Bl = ({
|
|
|
4514
4514
|
filterOptions: i = !0,
|
|
4515
4515
|
emptyMessage: u = "No matching options"
|
|
4516
4516
|
}) => {
|
|
4517
|
-
const [d, m] = T(!1), [h, y] = T(!1), [f, p] = T(!1), [b,
|
|
4517
|
+
const [d, m] = T(!1), [h, y] = T(!1), [f, p] = T(!1), [b, x] = T(0), N = j(null), w = j(null), C = t.find((z) => z.value === e), v = C?.label && typeof C.label != "string", k = i && f ? t.filter((z) => (z.searchLabel || z.value).toLowerCase().includes(e.toLowerCase())) : t;
|
|
4518
4518
|
P(() => {
|
|
4519
4519
|
if (!d && !h) return;
|
|
4520
4520
|
const z = (D) => {
|
|
@@ -4522,7 +4522,7 @@ const Bl = ({
|
|
|
4522
4522
|
};
|
|
4523
4523
|
return document.addEventListener("mousedown", z), () => document.removeEventListener("mousedown", z);
|
|
4524
4524
|
}, [d, h]), P(() => {
|
|
4525
|
-
|
|
4525
|
+
x(0);
|
|
4526
4526
|
}, [e, k.length]);
|
|
4527
4527
|
const $ = (z) => {
|
|
4528
4528
|
if (!d) {
|
|
@@ -4531,12 +4531,12 @@ const Bl = ({
|
|
|
4531
4531
|
}
|
|
4532
4532
|
switch (z.key) {
|
|
4533
4533
|
case "ArrowDown":
|
|
4534
|
-
z.preventDefault(),
|
|
4534
|
+
z.preventDefault(), x(
|
|
4535
4535
|
(D) => D < k.length - 1 ? D + 1 : D
|
|
4536
4536
|
);
|
|
4537
4537
|
break;
|
|
4538
4538
|
case "ArrowUp":
|
|
4539
|
-
z.preventDefault(),
|
|
4539
|
+
z.preventDefault(), x((D) => D > 0 ? D - 1 : D);
|
|
4540
4540
|
break;
|
|
4541
4541
|
case "Enter":
|
|
4542
4542
|
z.preventDefault(), k[b] && !k[b].disabled && (r(k[b].value), m(!1), p(!1));
|
|
@@ -4553,13 +4553,13 @@ const Bl = ({
|
|
|
4553
4553
|
}, I = (z) => {
|
|
4554
4554
|
r(z.target.value), p(!0), d || m(!0);
|
|
4555
4555
|
}, M = () => {
|
|
4556
|
-
o || (m(!d), d ||
|
|
4556
|
+
o || (m(!d), d || w.current?.focus());
|
|
4557
4557
|
}, U = () => {
|
|
4558
|
-
o || (y(!0), m(!0), setTimeout(() =>
|
|
4558
|
+
o || (y(!0), m(!0), setTimeout(() => w.current?.focus(), 0));
|
|
4559
4559
|
};
|
|
4560
4560
|
return /* @__PURE__ */ g("div", { ref: N, className: c("relative w-full", s), children: [
|
|
4561
4561
|
/* @__PURE__ */ g("div", { className: "relative flex items-center", children: [
|
|
4562
|
-
!h &&
|
|
4562
|
+
!h && v && e ? /* @__PURE__ */ a(
|
|
4563
4563
|
"button",
|
|
4564
4564
|
{
|
|
4565
4565
|
type: "button",
|
|
@@ -4576,7 +4576,7 @@ const Bl = ({
|
|
|
4576
4576
|
) : /* @__PURE__ */ a(
|
|
4577
4577
|
"input",
|
|
4578
4578
|
{
|
|
4579
|
-
ref:
|
|
4579
|
+
ref: w,
|
|
4580
4580
|
type: "text",
|
|
4581
4581
|
value: e,
|
|
4582
4582
|
onChange: I,
|
|
@@ -4746,7 +4746,7 @@ const Wl = ({
|
|
|
4746
4746
|
const d = (f, p) => {
|
|
4747
4747
|
if (!p)
|
|
4748
4748
|
if (s) {
|
|
4749
|
-
const b = r.includes(f) ? r.filter((
|
|
4749
|
+
const b = r.includes(f) ? r.filter((x) => x !== f) : [...r, f];
|
|
4750
4750
|
o?.(b);
|
|
4751
4751
|
} else
|
|
4752
4752
|
n?.(f);
|
|
@@ -4827,8 +4827,8 @@ const Wl = ({
|
|
|
4827
4827
|
success: "accent-green-600 dark:accent-green-500",
|
|
4828
4828
|
warning: "accent-yellow-600 dark:accent-yellow-500",
|
|
4829
4829
|
danger: "accent-red-600 dark:accent-red-500"
|
|
4830
|
-
},
|
|
4831
|
-
e(Number(
|
|
4830
|
+
}, x = (w) => {
|
|
4831
|
+
e(Number(w.target.value));
|
|
4832
4832
|
}, N = (t - r) / (n - r) * 100;
|
|
4833
4833
|
return /* @__PURE__ */ g("div", { className: c("w-full", f), children: [
|
|
4834
4834
|
l && /* @__PURE__ */ g("div", { className: "flex justify-between items-center mb-2", children: [
|
|
@@ -4870,7 +4870,7 @@ const Wl = ({
|
|
|
4870
4870
|
max: n,
|
|
4871
4871
|
step: o,
|
|
4872
4872
|
value: t,
|
|
4873
|
-
onChange:
|
|
4873
|
+
onChange: x,
|
|
4874
4874
|
disabled: s,
|
|
4875
4875
|
className: c(
|
|
4876
4876
|
"relative w-full appearance-none bg-transparent cursor-pointer",
|
|
@@ -4948,7 +4948,7 @@ const Wl = ({
|
|
|
4948
4948
|
trackingLabel: p,
|
|
4949
4949
|
componentName: b
|
|
4950
4950
|
}) => {
|
|
4951
|
-
const
|
|
4951
|
+
const x = j(null), [N, w] = T(!1), [C, v] = T(null), k = (R) => (v(null), o && u.length + R.length > o ? (v(`Maximum ${o} files allowed`), []) : R.filter((Y) => n && Y.size > n ? (v(
|
|
4952
4952
|
`File "${Y.name}" exceeds maximum size of ${nt(n)}`
|
|
4953
4953
|
), !1) : !0)), $ = (R) => {
|
|
4954
4954
|
f && f({
|
|
@@ -4958,17 +4958,17 @@ const Wl = ({
|
|
|
4958
4958
|
});
|
|
4959
4959
|
}, E = (R) => {
|
|
4960
4960
|
const _ = Array.from(R.target.files || []), Y = k(_);
|
|
4961
|
-
Y.length > 0 && ($("select"), t(Y)),
|
|
4961
|
+
Y.length > 0 && ($("select"), t(Y)), x.current && (x.current.value = "");
|
|
4962
4962
|
}, I = () => {
|
|
4963
|
-
|
|
4963
|
+
x.current?.click();
|
|
4964
4964
|
}, M = (R) => {
|
|
4965
|
-
R.preventDefault(), R.stopPropagation(), s ||
|
|
4965
|
+
R.preventDefault(), R.stopPropagation(), s || w(!0);
|
|
4966
4966
|
}, U = (R) => {
|
|
4967
|
-
R.preventDefault(), R.stopPropagation(),
|
|
4967
|
+
R.preventDefault(), R.stopPropagation(), w(!1);
|
|
4968
4968
|
}, z = (R) => {
|
|
4969
4969
|
R.preventDefault(), R.stopPropagation();
|
|
4970
4970
|
}, D = (R) => {
|
|
4971
|
-
if (R.preventDefault(), R.stopPropagation(),
|
|
4971
|
+
if (R.preventDefault(), R.stopPropagation(), w(!1), s) return;
|
|
4972
4972
|
const _ = Array.from(R.dataTransfer.files), Y = k(_);
|
|
4973
4973
|
Y.length > 0 && ($("drop"), t(Y));
|
|
4974
4974
|
}, V = (R) => {
|
|
@@ -4978,7 +4978,7 @@ const Wl = ({
|
|
|
4978
4978
|
/* @__PURE__ */ a(
|
|
4979
4979
|
"input",
|
|
4980
4980
|
{
|
|
4981
|
-
ref:
|
|
4981
|
+
ref: x,
|
|
4982
4982
|
type: "file",
|
|
4983
4983
|
onChange: E,
|
|
4984
4984
|
accept: e,
|
|
@@ -5018,7 +5018,7 @@ const Wl = ({
|
|
|
5018
5018
|
/* @__PURE__ */ a(
|
|
5019
5019
|
"input",
|
|
5020
5020
|
{
|
|
5021
|
-
ref:
|
|
5021
|
+
ref: x,
|
|
5022
5022
|
type: "file",
|
|
5023
5023
|
onChange: E,
|
|
5024
5024
|
accept: e,
|
|
@@ -5099,21 +5099,21 @@ const ql = ({
|
|
|
5099
5099
|
renderTag: y,
|
|
5100
5100
|
className: f
|
|
5101
5101
|
}) => {
|
|
5102
|
-
const p = o || s, [b,
|
|
5103
|
-
primary: `${
|
|
5104
|
-
secondary: `${
|
|
5105
|
-
success: `${
|
|
5106
|
-
warning: `${
|
|
5107
|
-
error: `${
|
|
5108
|
-
},
|
|
5102
|
+
const p = o || s, [b, x] = T(""), N = j(null), w = S.component.badge, C = {
|
|
5103
|
+
primary: `${w.primary.base} ${w.primary.dark}`,
|
|
5104
|
+
secondary: `${w.default.base} ${w.default.dark}`,
|
|
5105
|
+
success: `${w.success.base} ${w.success.dark}`,
|
|
5106
|
+
warning: `${w.warning.base} ${w.warning.dark}`,
|
|
5107
|
+
error: `${w.error.base} ${w.error.dark}`
|
|
5108
|
+
}, v = (M) => {
|
|
5109
5109
|
const U = M.trim();
|
|
5110
|
-
U && (n && t.length >= n || !i && t.includes(U) || p && !p(U) || (e([...t, U]),
|
|
5110
|
+
U && (n && t.length >= n || !i && t.includes(U) || p && !p(U) || (e([...t, U]), x("")));
|
|
5111
5111
|
}, k = (M) => {
|
|
5112
5112
|
e(t.filter((U, z) => z !== M));
|
|
5113
5113
|
}, $ = (M) => {
|
|
5114
|
-
|
|
5114
|
+
x(M.target.value);
|
|
5115
5115
|
}, E = (M) => {
|
|
5116
|
-
M.key === "Enter" && (M.preventDefault(), b.trim() &&
|
|
5116
|
+
M.key === "Enter" && (M.preventDefault(), b.trim() && v(b)), M.key === "," && (M.preventDefault(), b.trim() && v(b)), l.length > 0 && l.includes(M.key) && M.key !== "," && (M.preventDefault(), b.trim() && v(b)), M.key === "Backspace" && !b && t.length > 0 && k(t.length - 1), M.key === "Escape" && x("");
|
|
5117
5117
|
}, I = n !== void 0 && t.length >= n;
|
|
5118
5118
|
return /* @__PURE__ */ g("div", { className: c("w-full", f), children: [
|
|
5119
5119
|
/* @__PURE__ */ g(
|
|
@@ -5221,8 +5221,8 @@ const ql = ({
|
|
|
5221
5221
|
disabled: s = !1,
|
|
5222
5222
|
className: l
|
|
5223
5223
|
}) => {
|
|
5224
|
-
const [i, u] = T(!1), [d, m] = T([]), [h, y] = T(0), [f, p] = T(0), b = j(null),
|
|
5225
|
-
const k =
|
|
5224
|
+
const [i, u] = T(!1), [d, m] = T([]), [h, y] = T(0), [f, p] = T(0), b = j(null), x = j(null), N = (v) => {
|
|
5225
|
+
const k = v.target.value, $ = v.target.selectionStart || 0;
|
|
5226
5226
|
e(k), p($);
|
|
5227
5227
|
const I = k.substring(0, $).split(/\s/), M = I[I.length - 1];
|
|
5228
5228
|
if (M.startsWith(n)) {
|
|
@@ -5232,38 +5232,38 @@ const ql = ({
|
|
|
5232
5232
|
m(z), u(z.length > 0), y(0);
|
|
5233
5233
|
} else
|
|
5234
5234
|
u(!1);
|
|
5235
|
-
},
|
|
5236
|
-
const k = t.substring(0, f), $ = t.substring(f), E = k.split(/\s/), I = E[E.length - 1], M = k.length - I.length, U = t.substring(0, M) + n +
|
|
5235
|
+
}, w = (v) => {
|
|
5236
|
+
const k = t.substring(0, f), $ = t.substring(f), E = k.split(/\s/), I = E[E.length - 1], M = k.length - I.length, U = t.substring(0, M) + n + v.label + " " + $;
|
|
5237
5237
|
if (e(U), u(!1), b.current) {
|
|
5238
|
-
const z = M + n.length +
|
|
5238
|
+
const z = M + n.length + v.label.length + 1;
|
|
5239
5239
|
setTimeout(() => {
|
|
5240
5240
|
b.current?.focus(), b.current?.setSelectionRange(z, z);
|
|
5241
5241
|
}, 0);
|
|
5242
5242
|
}
|
|
5243
|
-
}, C = (
|
|
5243
|
+
}, C = (v) => {
|
|
5244
5244
|
if (i)
|
|
5245
|
-
switch (
|
|
5245
|
+
switch (v.key) {
|
|
5246
5246
|
case "ArrowDown":
|
|
5247
|
-
|
|
5247
|
+
v.preventDefault(), y(
|
|
5248
5248
|
(k) => k < d.length - 1 ? k + 1 : k
|
|
5249
5249
|
);
|
|
5250
5250
|
break;
|
|
5251
5251
|
case "ArrowUp":
|
|
5252
|
-
|
|
5252
|
+
v.preventDefault(), y((k) => k > 0 ? k - 1 : k);
|
|
5253
5253
|
break;
|
|
5254
5254
|
case "Enter":
|
|
5255
|
-
|
|
5255
|
+
v.preventDefault(), d[h] && w(d[h]);
|
|
5256
5256
|
break;
|
|
5257
5257
|
case "Escape":
|
|
5258
|
-
|
|
5258
|
+
v.preventDefault(), u(!1);
|
|
5259
5259
|
break;
|
|
5260
5260
|
}
|
|
5261
5261
|
};
|
|
5262
5262
|
return P(() => {
|
|
5263
|
-
const
|
|
5264
|
-
|
|
5263
|
+
const v = (k) => {
|
|
5264
|
+
x.current && !x.current.contains(k.target) && b.current && !b.current.contains(k.target) && u(!1);
|
|
5265
5265
|
};
|
|
5266
|
-
return document.addEventListener("mousedown",
|
|
5266
|
+
return document.addEventListener("mousedown", v), () => document.removeEventListener("mousedown", v);
|
|
5267
5267
|
}, []), /* @__PURE__ */ g("div", { className: c("relative w-full", l), children: [
|
|
5268
5268
|
/* @__PURE__ */ a(
|
|
5269
5269
|
"textarea",
|
|
@@ -5290,17 +5290,17 @@ const ql = ({
|
|
|
5290
5290
|
i && /* @__PURE__ */ a(
|
|
5291
5291
|
"div",
|
|
5292
5292
|
{
|
|
5293
|
-
ref:
|
|
5293
|
+
ref: x,
|
|
5294
5294
|
className: c(
|
|
5295
5295
|
"absolute z-50 w-full mt-1 border rounded-md shadow-lg max-h-60 overflow-y-auto",
|
|
5296
5296
|
S.component.card.default.base,
|
|
5297
5297
|
S.component.card.default.dark,
|
|
5298
5298
|
A.border.default
|
|
5299
5299
|
),
|
|
5300
|
-
children: d.map((
|
|
5300
|
+
children: d.map((v, k) => /* @__PURE__ */ g(
|
|
5301
5301
|
"button",
|
|
5302
5302
|
{
|
|
5303
|
-
onClick: () =>
|
|
5303
|
+
onClick: () => w(v),
|
|
5304
5304
|
className: c(
|
|
5305
5305
|
"w-full px-3 py-2 text-left flex items-center gap-3",
|
|
5306
5306
|
"hover:bg-gray-100 dark:hover:bg-gray-800",
|
|
@@ -5308,21 +5308,21 @@ const ql = ({
|
|
|
5308
5308
|
k === h && "bg-blue-50 dark:bg-blue-900/30"
|
|
5309
5309
|
),
|
|
5310
5310
|
children: [
|
|
5311
|
-
|
|
5311
|
+
v.avatar && /* @__PURE__ */ a(
|
|
5312
5312
|
"img",
|
|
5313
5313
|
{
|
|
5314
|
-
src:
|
|
5315
|
-
alt:
|
|
5314
|
+
src: v.avatar,
|
|
5315
|
+
alt: v.label,
|
|
5316
5316
|
className: "w-8 h-8 rounded-full"
|
|
5317
5317
|
}
|
|
5318
5318
|
),
|
|
5319
5319
|
/* @__PURE__ */ g("div", { className: "flex-1 min-w-0", children: [
|
|
5320
|
-
/* @__PURE__ */ a("p", { className: "text-sm font-medium text-gray-900 dark:text-white truncate", children:
|
|
5321
|
-
|
|
5320
|
+
/* @__PURE__ */ a("p", { className: "text-sm font-medium text-gray-900 dark:text-white truncate", children: v.label }),
|
|
5321
|
+
v.metadata && /* @__PURE__ */ a("p", { className: "text-xs text-gray-600 dark:text-gray-400 truncate", children: v.metadata })
|
|
5322
5322
|
] })
|
|
5323
5323
|
]
|
|
5324
5324
|
},
|
|
5325
|
-
|
|
5325
|
+
v.id
|
|
5326
5326
|
))
|
|
5327
5327
|
}
|
|
5328
5328
|
)
|
|
@@ -5675,7 +5675,7 @@ const Gl = ({
|
|
|
5675
5675
|
return O.button[f]?.[C]?.() || O.button.primary.default();
|
|
5676
5676
|
}
|
|
5677
5677
|
}
|
|
5678
|
-
})(),
|
|
5678
|
+
})(), w = (C) => {
|
|
5679
5679
|
s && s({
|
|
5680
5680
|
action: "click",
|
|
5681
5681
|
trackingLabel: l,
|
|
@@ -5694,7 +5694,7 @@ const Gl = ({
|
|
|
5694
5694
|
// Custom overrides
|
|
5695
5695
|
),
|
|
5696
5696
|
ref: h,
|
|
5697
|
-
onClick:
|
|
5697
|
+
onClick: w,
|
|
5698
5698
|
...m,
|
|
5699
5699
|
children: d
|
|
5700
5700
|
}
|
|
@@ -5729,13 +5729,13 @@ const ei = ({
|
|
|
5729
5729
|
showOutsideDays: s = !0,
|
|
5730
5730
|
className: l
|
|
5731
5731
|
}) => {
|
|
5732
|
-
const [i, u] = T(t || /* @__PURE__ */ new Date()), d = (
|
|
5733
|
-
const k =
|
|
5732
|
+
const [i, u] = T(t || /* @__PURE__ */ new Date()), d = (v) => {
|
|
5733
|
+
const k = v.getFullYear(), $ = v.getMonth();
|
|
5734
5734
|
return new Date(k, $ + 1, 0).getDate();
|
|
5735
|
-
}, m = (
|
|
5736
|
-
const k =
|
|
5735
|
+
}, m = (v) => {
|
|
5736
|
+
const k = v.getFullYear(), $ = v.getMonth();
|
|
5737
5737
|
return new Date(k, $, 1).getDay();
|
|
5738
|
-
}, h = (
|
|
5738
|
+
}, h = (v, k) => v.getFullYear() === k.getFullYear() && v.getMonth() === k.getMonth() && v.getDate() === k.getDate(), y = (v) => r && v < r || n && v > n ? !0 : o.some((k) => h(v, k)), f = () => {
|
|
5739
5739
|
u(
|
|
5740
5740
|
new Date(i.getFullYear(), i.getMonth() - 1)
|
|
5741
5741
|
);
|
|
@@ -5743,25 +5743,25 @@ const ei = ({
|
|
|
5743
5743
|
u(
|
|
5744
5744
|
new Date(i.getFullYear(), i.getMonth() + 1)
|
|
5745
5745
|
);
|
|
5746
|
-
},
|
|
5747
|
-
const
|
|
5746
|
+
}, x = (() => {
|
|
5747
|
+
const v = i.getFullYear(), k = i.getMonth(), $ = d(i), E = m(i), I = [];
|
|
5748
5748
|
if (s) {
|
|
5749
|
-
const M = d(new Date(
|
|
5749
|
+
const M = d(new Date(v, k - 1));
|
|
5750
5750
|
for (let U = E - 1; U >= 0; U--)
|
|
5751
|
-
I.push(new Date(
|
|
5751
|
+
I.push(new Date(v, k - 1, M - U));
|
|
5752
5752
|
} else
|
|
5753
5753
|
for (let M = 0; M < E; M++)
|
|
5754
5754
|
I.push(null);
|
|
5755
5755
|
for (let M = 1; M <= $; M++)
|
|
5756
|
-
I.push(new Date(
|
|
5756
|
+
I.push(new Date(v, k, M));
|
|
5757
5757
|
if (s) {
|
|
5758
5758
|
const M = 42 - I.length;
|
|
5759
5759
|
for (let U = 1; U <= M; U++)
|
|
5760
|
-
I.push(new Date(
|
|
5760
|
+
I.push(new Date(v, k + 1, U));
|
|
5761
5761
|
}
|
|
5762
5762
|
return I;
|
|
5763
|
-
})(), N = ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"],
|
|
5764
|
-
!
|
|
5763
|
+
})(), N = ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"], w = (v) => {
|
|
5764
|
+
!v || y(v) || e(v);
|
|
5765
5765
|
}, C = i.toLocaleDateString("en-US", {
|
|
5766
5766
|
month: "long",
|
|
5767
5767
|
year: "numeric"
|
|
@@ -5822,22 +5822,22 @@ const ei = ({
|
|
|
5822
5822
|
}
|
|
5823
5823
|
)
|
|
5824
5824
|
] }),
|
|
5825
|
-
/* @__PURE__ */ a("div", { className: "grid grid-cols-7 gap-1 mb-2", children: N.map((
|
|
5825
|
+
/* @__PURE__ */ a("div", { className: "grid grid-cols-7 gap-1 mb-2", children: N.map((v) => /* @__PURE__ */ a(
|
|
5826
5826
|
"div",
|
|
5827
5827
|
{
|
|
5828
5828
|
className: "text-center text-xs font-medium text-gray-600 dark:text-gray-400 py-2",
|
|
5829
|
-
children:
|
|
5829
|
+
children: v
|
|
5830
5830
|
},
|
|
5831
|
-
|
|
5831
|
+
v
|
|
5832
5832
|
)) }),
|
|
5833
|
-
/* @__PURE__ */ a("div", { className: "grid grid-cols-7 gap-1", children:
|
|
5834
|
-
if (!
|
|
5833
|
+
/* @__PURE__ */ a("div", { className: "grid grid-cols-7 gap-1", children: x.map((v, k) => {
|
|
5834
|
+
if (!v)
|
|
5835
5835
|
return /* @__PURE__ */ a("div", { className: "aspect-square" }, k);
|
|
5836
|
-
const $ =
|
|
5836
|
+
const $ = v.getMonth() === i.getMonth(), E = t && h(v, t), I = h(v, /* @__PURE__ */ new Date()), M = y(v);
|
|
5837
5837
|
return /* @__PURE__ */ a(
|
|
5838
5838
|
"button",
|
|
5839
5839
|
{
|
|
5840
|
-
onClick: () =>
|
|
5840
|
+
onClick: () => w(v),
|
|
5841
5841
|
disabled: M,
|
|
5842
5842
|
className: c(
|
|
5843
5843
|
"aspect-square flex items-center justify-center rounded-md text-sm transition-colors",
|
|
@@ -5847,7 +5847,7 @@ const ei = ({
|
|
|
5847
5847
|
E && "bg-blue-600 text-white hover:bg-blue-700 dark:bg-blue-500 dark:hover:bg-blue-600",
|
|
5848
5848
|
I && !E && "border-2 border-blue-600 dark:border-blue-400"
|
|
5849
5849
|
),
|
|
5850
|
-
children:
|
|
5850
|
+
children: v.getDate()
|
|
5851
5851
|
},
|
|
5852
5852
|
k
|
|
5853
5853
|
);
|
|
@@ -5863,26 +5863,26 @@ const ei = ({
|
|
|
5863
5863
|
disabled: l = !1,
|
|
5864
5864
|
className: i
|
|
5865
5865
|
}) => {
|
|
5866
|
-
const [u, d] = T(!1), [m, h] = T(t), y = (
|
|
5867
|
-
const N =
|
|
5866
|
+
const [u, d] = T(!1), [m, h] = T(t), y = (x) => {
|
|
5867
|
+
const N = x.toLocaleDateString("en-US", {
|
|
5868
5868
|
month: "short",
|
|
5869
5869
|
day: "numeric",
|
|
5870
5870
|
year: "numeric"
|
|
5871
|
-
}),
|
|
5871
|
+
}), w = x.getHours(), C = x.getMinutes();
|
|
5872
5872
|
if (r) {
|
|
5873
|
-
const
|
|
5874
|
-
return `${N}, ${
|
|
5873
|
+
const v = w === 0 ? 12 : w > 12 ? w - 12 : w, k = w >= 12 ? "PM" : "AM";
|
|
5874
|
+
return `${N}, ${v}:${C.toString().padStart(2, "0")} ${k}`;
|
|
5875
5875
|
}
|
|
5876
|
-
return `${N}, ${
|
|
5877
|
-
}, f = (
|
|
5878
|
-
const N = new Date(
|
|
5876
|
+
return `${N}, ${w.toString().padStart(2, "0")}:${C.toString().padStart(2, "0")}`;
|
|
5877
|
+
}, f = (x) => {
|
|
5878
|
+
const N = new Date(x);
|
|
5879
5879
|
N.setHours(m.getHours()), N.setMinutes(m.getMinutes()), h(N), e(N);
|
|
5880
|
-
}, p = (
|
|
5881
|
-
const [N,
|
|
5882
|
-
C.setHours(N), C.setMinutes(
|
|
5883
|
-
}, b = (
|
|
5884
|
-
const N =
|
|
5885
|
-
return `${N.toString().padStart(2, "0")}:${
|
|
5880
|
+
}, p = (x) => {
|
|
5881
|
+
const [N, w] = x.split(":").map(Number), C = new Date(m);
|
|
5882
|
+
C.setHours(N), C.setMinutes(w), h(C), e(C);
|
|
5883
|
+
}, b = (x) => {
|
|
5884
|
+
const N = x.getHours(), w = x.getMinutes();
|
|
5885
|
+
return `${N.toString().padStart(2, "0")}:${w.toString().padStart(2, "0")}`;
|
|
5886
5886
|
};
|
|
5887
5887
|
return /* @__PURE__ */ g("div", { className: c("relative w-full", i), children: [
|
|
5888
5888
|
/* @__PURE__ */ g(
|
|
@@ -6000,19 +6000,19 @@ const ei = ({
|
|
|
6000
6000
|
if (!t.start || !t.end && !d) return !1;
|
|
6001
6001
|
const I = t.end || d;
|
|
6002
6002
|
return I ? E > t.start && E < I : !1;
|
|
6003
|
-
}, p = (E) => t.start ? h(E, t.start) : !1, b = (E) => t.end ? h(E, t.end) : !1,
|
|
6003
|
+
}, p = (E) => t.start ? h(E, t.start) : !1, b = (E) => t.end ? h(E, t.end) : !1, x = (E) => {
|
|
6004
6004
|
y(E) || (!t.start || t.start && t.end ? e({ start: E, end: null }) : E < t.start ? e({ start: E, end: t.start }) : e({ start: t.start, end: E }));
|
|
6005
6005
|
}, N = (E) => {
|
|
6006
6006
|
const I = E.getFullYear(), M = E.getMonth();
|
|
6007
6007
|
return new Date(I, M + 1, 0).getDate();
|
|
6008
|
-
},
|
|
6008
|
+
}, w = (E) => {
|
|
6009
6009
|
const I = E.getFullYear(), M = E.getMonth();
|
|
6010
6010
|
return new Date(I, M, 1).getDay();
|
|
6011
6011
|
}, C = (E) => {
|
|
6012
6012
|
const I = new Date(
|
|
6013
6013
|
i.getFullYear(),
|
|
6014
6014
|
i.getMonth() + E
|
|
6015
|
-
), M = I.getFullYear(), U = I.getMonth(), z = N(I), D =
|
|
6015
|
+
), M = I.getFullYear(), U = I.getMonth(), z = N(I), D = w(I), V = [];
|
|
6016
6016
|
for (let R = 0; R < D; R++)
|
|
6017
6017
|
V.push(null);
|
|
6018
6018
|
for (let R = 1; R <= z; R++)
|
|
@@ -6024,7 +6024,7 @@ const ei = ({
|
|
|
6024
6024
|
year: "numeric"
|
|
6025
6025
|
})
|
|
6026
6026
|
};
|
|
6027
|
-
},
|
|
6027
|
+
}, v = () => {
|
|
6028
6028
|
u(
|
|
6029
6029
|
new Date(i.getFullYear(), i.getMonth() - 1)
|
|
6030
6030
|
);
|
|
@@ -6047,7 +6047,7 @@ const ei = ({
|
|
|
6047
6047
|
/* @__PURE__ */ a(
|
|
6048
6048
|
"button",
|
|
6049
6049
|
{
|
|
6050
|
-
onClick:
|
|
6050
|
+
onClick: v,
|
|
6051
6051
|
className: c(
|
|
6052
6052
|
"p-2 rounded-md transition-colors",
|
|
6053
6053
|
S.component.button.ghost.base,
|
|
@@ -6141,7 +6141,7 @@ const ei = ({
|
|
|
6141
6141
|
return /* @__PURE__ */ a(
|
|
6142
6142
|
"button",
|
|
6143
6143
|
{
|
|
6144
|
-
onClick: () =>
|
|
6144
|
+
onClick: () => x(z),
|
|
6145
6145
|
onMouseEnter: () => m(z),
|
|
6146
6146
|
onMouseLeave: () => m(null),
|
|
6147
6147
|
disabled: V,
|
|
@@ -6227,13 +6227,13 @@ const ei = ({
|
|
|
6227
6227
|
const [l, i] = T(t), [u, d] = T(100), m = (b) => {
|
|
6228
6228
|
e(b), i(b);
|
|
6229
6229
|
}, h = (b) => {
|
|
6230
|
-
const
|
|
6231
|
-
i(
|
|
6230
|
+
const x = b.target.value;
|
|
6231
|
+
i(x), /^#[0-9A-F]{6}$/i.test(x) && e(x);
|
|
6232
6232
|
}, y = (b) => {
|
|
6233
6233
|
d(Number(b.target.value));
|
|
6234
|
-
}, p = o ? ((b,
|
|
6235
|
-
const N = parseInt(b.slice(1, 3), 16),
|
|
6236
|
-
return `rgba(${N}, ${
|
|
6234
|
+
}, p = o ? ((b, x) => {
|
|
6235
|
+
const N = parseInt(b.slice(1, 3), 16), w = parseInt(b.slice(3, 5), 16), C = parseInt(b.slice(5, 7), 16);
|
|
6236
|
+
return `rgba(${N}, ${w}, ${C}, ${x / 100})`;
|
|
6237
6237
|
})(t, u) : t;
|
|
6238
6238
|
return /* @__PURE__ */ g(
|
|
6239
6239
|
"div",
|
|
@@ -6431,7 +6431,7 @@ const ei = ({
|
|
|
6431
6431
|
p.stopPropagation(), await navigator.clipboard.writeText(f), u(f), setTimeout(() => u(null), 2e3);
|
|
6432
6432
|
}, y = m();
|
|
6433
6433
|
return /* @__PURE__ */ a("div", { className: c("flex flex-wrap gap-3", l), children: y.map((f, p) => {
|
|
6434
|
-
const b = e === f.hex,
|
|
6434
|
+
const b = e === f.hex, x = i === f.hex;
|
|
6435
6435
|
return /* @__PURE__ */ g("div", { className: "flex flex-col items-center gap-2", children: [
|
|
6436
6436
|
/* @__PURE__ */ a(
|
|
6437
6437
|
"button",
|
|
@@ -6450,7 +6450,7 @@ const ei = ({
|
|
|
6450
6450
|
{
|
|
6451
6451
|
className: "absolute inset-0 flex items-center justify-center opacity-0 group-hover:opacity-100 transition-opacity bg-black/50 rounded-lg",
|
|
6452
6452
|
onClick: (N) => h(f.hex, N),
|
|
6453
|
-
children:
|
|
6453
|
+
children: x ? /* @__PURE__ */ a(
|
|
6454
6454
|
"svg",
|
|
6455
6455
|
{
|
|
6456
6456
|
className: "w-4 h-4 text-white",
|
|
@@ -6634,11 +6634,11 @@ const ei = ({
|
|
|
6634
6634
|
disabled: d = !1,
|
|
6635
6635
|
className: m
|
|
6636
6636
|
}) => {
|
|
6637
|
-
const h = (
|
|
6638
|
-
const k =
|
|
6637
|
+
const h = (v) => {
|
|
6638
|
+
const k = v.replace(/\s/g, "");
|
|
6639
6639
|
return /^4/.test(k) ? "visa" : /^5[1-5]/.test(k) ? "mastercard" : /^3[47]/.test(k) ? "amex" : /^6(?:011|5)/.test(k) ? "discover" : "unknown";
|
|
6640
|
-
}, y = h(t), f = (
|
|
6641
|
-
const k =
|
|
6640
|
+
}, y = h(t), f = (v) => {
|
|
6641
|
+
const k = v.replace(/\D/g, "");
|
|
6642
6642
|
if (h(k) === "amex") {
|
|
6643
6643
|
const z = k.slice(0, 15);
|
|
6644
6644
|
return [
|
|
@@ -6648,22 +6648,22 @@ const ei = ({
|
|
|
6648
6648
|
].filter(Boolean).join(" ");
|
|
6649
6649
|
}
|
|
6650
6650
|
return (k.slice(0, 16).match(/.{1,4}/g) || []).join(" ");
|
|
6651
|
-
}, p = (
|
|
6652
|
-
const E =
|
|
6651
|
+
}, p = (v) => {
|
|
6652
|
+
const E = v.replace(/\D/g, "").slice(0, 4);
|
|
6653
6653
|
return E.length >= 2 ? `${E.slice(0, 2)}/${E.slice(2)}` : E;
|
|
6654
|
-
}, b = (
|
|
6655
|
-
const k =
|
|
6654
|
+
}, b = (v) => {
|
|
6655
|
+
const k = v.replace(/\D/g, ""), $ = y === "amex" ? 4 : 3;
|
|
6656
6656
|
return k.slice(0, $);
|
|
6657
|
-
},
|
|
6658
|
-
const k = f(
|
|
6657
|
+
}, x = (v) => {
|
|
6658
|
+
const k = f(v.target.value);
|
|
6659
6659
|
e(k);
|
|
6660
|
-
}, N = (
|
|
6660
|
+
}, N = (v) => {
|
|
6661
6661
|
if (!n) return;
|
|
6662
|
-
const k = p(
|
|
6662
|
+
const k = p(v.target.value);
|
|
6663
6663
|
n(k);
|
|
6664
|
-
},
|
|
6664
|
+
}, w = (v) => {
|
|
6665
6665
|
if (!s) return;
|
|
6666
|
-
const k = b(
|
|
6666
|
+
const k = b(v.target.value);
|
|
6667
6667
|
s(k);
|
|
6668
6668
|
}, C = () => {
|
|
6669
6669
|
switch (y) {
|
|
@@ -6733,7 +6733,7 @@ const ei = ({
|
|
|
6733
6733
|
{
|
|
6734
6734
|
type: "text",
|
|
6735
6735
|
value: t,
|
|
6736
|
-
onChange:
|
|
6736
|
+
onChange: x,
|
|
6737
6737
|
placeholder: "1234 5678 9012 3456",
|
|
6738
6738
|
disabled: d,
|
|
6739
6739
|
className: c(
|
|
@@ -6794,7 +6794,7 @@ const ei = ({
|
|
|
6794
6794
|
{
|
|
6795
6795
|
type: "text",
|
|
6796
6796
|
value: o,
|
|
6797
|
-
onChange:
|
|
6797
|
+
onChange: w,
|
|
6798
6798
|
placeholder: y === "amex" ? "1234" : "123",
|
|
6799
6799
|
disabled: d,
|
|
6800
6800
|
className: c(
|
|
@@ -6824,7 +6824,7 @@ const ei = ({
|
|
|
6824
6824
|
{
|
|
6825
6825
|
type: "text",
|
|
6826
6826
|
value: l,
|
|
6827
|
-
onChange: (
|
|
6827
|
+
onChange: (v) => i?.(v.target.value),
|
|
6828
6828
|
placeholder: "John Doe",
|
|
6829
6829
|
disabled: d,
|
|
6830
6830
|
className: c(
|
|
@@ -6862,20 +6862,20 @@ const ei = ({
|
|
|
6862
6862
|
disabled: d = !1,
|
|
6863
6863
|
className: m
|
|
6864
6864
|
}) => {
|
|
6865
|
-
const [h, y] = T(""), [f, p] = T(!1), [b,
|
|
6865
|
+
const [h, y] = T(""), [f, p] = T(!1), [b, x] = T(!1), w = typeof r == "string" ? o.find((I) => I.code === r) || It[0] : r, C = F(
|
|
6866
6866
|
(I) => {
|
|
6867
|
-
const M =
|
|
6867
|
+
const M = w.decimals ?? 2;
|
|
6868
6868
|
return I.toLocaleString("en-US", {
|
|
6869
6869
|
minimumFractionDigits: M,
|
|
6870
6870
|
maximumFractionDigits: M
|
|
6871
6871
|
});
|
|
6872
6872
|
},
|
|
6873
|
-
[
|
|
6873
|
+
[w]
|
|
6874
6874
|
);
|
|
6875
6875
|
P(() => {
|
|
6876
6876
|
f || y(C(t || 0));
|
|
6877
6877
|
}, [t, C, f]);
|
|
6878
|
-
const
|
|
6878
|
+
const v = (I) => {
|
|
6879
6879
|
const U = I.target.value.replace(/[^\d.]/g, ""), z = U.split("."), D = z.length > 2 ? `${z[0]}.${z.slice(1).join("")}` : U;
|
|
6880
6880
|
y(D);
|
|
6881
6881
|
let R = parseFloat(D) || 0;
|
|
@@ -6885,7 +6885,7 @@ const ei = ({
|
|
|
6885
6885
|
}, $ = () => {
|
|
6886
6886
|
p(!1), y(C(t || 0));
|
|
6887
6887
|
}, E = (I) => {
|
|
6888
|
-
n?.(I),
|
|
6888
|
+
n?.(I), x(!1);
|
|
6889
6889
|
};
|
|
6890
6890
|
return /* @__PURE__ */ g("div", { className: c("relative w-full", m), children: [
|
|
6891
6891
|
/* @__PURE__ */ g("div", { className: "flex gap-2", children: [
|
|
@@ -6894,7 +6894,7 @@ const ei = ({
|
|
|
6894
6894
|
"button",
|
|
6895
6895
|
{
|
|
6896
6896
|
type: "button",
|
|
6897
|
-
onClick: () => !d &&
|
|
6897
|
+
onClick: () => !d && x(!b),
|
|
6898
6898
|
disabled: d,
|
|
6899
6899
|
className: c(
|
|
6900
6900
|
"flex items-center gap-2 px-3 py-2 min-w-[100px] border rounded-md transition-colors",
|
|
@@ -6913,7 +6913,7 @@ const ei = ({
|
|
|
6913
6913
|
"text-sm font-medium",
|
|
6914
6914
|
L.label.default()
|
|
6915
6915
|
),
|
|
6916
|
-
children:
|
|
6916
|
+
children: w.code
|
|
6917
6917
|
}
|
|
6918
6918
|
),
|
|
6919
6919
|
/* @__PURE__ */ a(
|
|
@@ -6959,7 +6959,7 @@ const ei = ({
|
|
|
6959
6959
|
"w-full px-3 py-2 text-left flex items-center gap-3 transition-colors",
|
|
6960
6960
|
S.component.button.ghost.base,
|
|
6961
6961
|
S.component.button.ghost.dark,
|
|
6962
|
-
I.code ===
|
|
6962
|
+
I.code === w.code && "bg-blue-50 dark:bg-blue-900/30"
|
|
6963
6963
|
),
|
|
6964
6964
|
children: [
|
|
6965
6965
|
/* @__PURE__ */ a("span", { className: "text-lg font-semibold w-8", children: I.symbol }),
|
|
@@ -6991,7 +6991,7 @@ const ei = ({
|
|
|
6991
6991
|
"absolute left-3 top-1/2 -translate-y-1/2 text-sm font-medium",
|
|
6992
6992
|
L.body.sm()
|
|
6993
6993
|
),
|
|
6994
|
-
children:
|
|
6994
|
+
children: w.symbol
|
|
6995
6995
|
}
|
|
6996
6996
|
),
|
|
6997
6997
|
/* @__PURE__ */ a(
|
|
@@ -6999,7 +6999,7 @@ const ei = ({
|
|
|
6999
6999
|
{
|
|
7000
7000
|
type: "text",
|
|
7001
7001
|
value: h,
|
|
7002
|
-
onChange:
|
|
7002
|
+
onChange: v,
|
|
7003
7003
|
onFocus: k,
|
|
7004
7004
|
onBlur: $,
|
|
7005
7005
|
placeholder: l,
|
|
@@ -7015,8 +7015,8 @@ const ei = ({
|
|
|
7015
7015
|
)
|
|
7016
7016
|
] })
|
|
7017
7017
|
] }),
|
|
7018
|
-
(i !== void 0 || u !== void 0) && /* @__PURE__ */ a("p", { className: c("mt-1.5 text-xs", L.body.sm()), children: i !== void 0 && u !== void 0 ? `Range: ${
|
|
7019
|
-
b && /* @__PURE__ */ a("div", { className: "fixed inset-0 z-40", onClick: () =>
|
|
7018
|
+
(i !== void 0 || u !== void 0) && /* @__PURE__ */ a("p", { className: c("mt-1.5 text-xs", L.body.sm()), children: i !== void 0 && u !== void 0 ? `Range: ${w.symbol}${C(i)} - ${w.symbol}${C(u)}` : i !== void 0 ? `Minimum: ${w.symbol}${C(i)}` : `Maximum: ${w.symbol}${C(u)}` }),
|
|
7019
|
+
b && /* @__PURE__ */ a("div", { className: "fixed inset-0 z-40", onClick: () => x(!1) })
|
|
7020
7020
|
] });
|
|
7021
7021
|
}, gi = ({
|
|
7022
7022
|
className: t,
|
|
@@ -7512,13 +7512,13 @@ const ei = ({
|
|
|
7512
7512
|
}) => {
|
|
7513
7513
|
const [d, m] = T("hidden"), h = j(null), y = j(
|
|
7514
7514
|
null
|
|
7515
|
-
), f = Fa[o], p = Wa(o), b = f.icon,
|
|
7515
|
+
), f = Fa[o], p = Wa(o), b = f.icon, x = F(() => {
|
|
7516
7516
|
h.current && (clearTimeout(h.current), h.current = null), y.current && (clearTimeout(y.current), y.current = null);
|
|
7517
7517
|
}, []), N = F(() => {
|
|
7518
|
-
|
|
7518
|
+
x(), m("exiting"), y.current = setTimeout(() => {
|
|
7519
7519
|
m("hidden"), e();
|
|
7520
7520
|
}, 300);
|
|
7521
|
-
}, [
|
|
7521
|
+
}, [x, e]);
|
|
7522
7522
|
if (P(() => {
|
|
7523
7523
|
t ? (m("entering"), y.current = setTimeout(() => {
|
|
7524
7524
|
m("visible");
|
|
@@ -7527,9 +7527,9 @@ const ei = ({
|
|
|
7527
7527
|
N();
|
|
7528
7528
|
}, s)), () => {
|
|
7529
7529
|
h.current && clearTimeout(h.current);
|
|
7530
|
-
}), [d, s, N]), P(() => () =>
|
|
7530
|
+
}), [d, s, N]), P(() => () => x(), [x]), d === "hidden")
|
|
7531
7531
|
return null;
|
|
7532
|
-
const
|
|
7532
|
+
const w = /* @__PURE__ */ a(
|
|
7533
7533
|
"div",
|
|
7534
7534
|
{
|
|
7535
7535
|
role: "alert",
|
|
@@ -7579,7 +7579,7 @@ const ei = ({
|
|
|
7579
7579
|
)
|
|
7580
7580
|
}
|
|
7581
7581
|
);
|
|
7582
|
-
return st(
|
|
7582
|
+
return st(w, document.body);
|
|
7583
7583
|
}, Mi = (t = {}) => {
|
|
7584
7584
|
const { defaultDuration: e = 5e3 } = t, [r, n] = T(!1), [o, s] = T(null), l = F(
|
|
7585
7585
|
({
|
|
@@ -7690,12 +7690,12 @@ const ei = ({
|
|
|
7690
7690
|
className: s
|
|
7691
7691
|
}) => {
|
|
7692
7692
|
const [l, i] = T(""), [u, d] = T(0), m = j(null), h = r.filter((b) => {
|
|
7693
|
-
const
|
|
7694
|
-
return b.label.toLowerCase().includes(
|
|
7693
|
+
const x = l.toLowerCase();
|
|
7694
|
+
return b.label.toLowerCase().includes(x) || b.keywords?.some((N) => N.toLowerCase().includes(x)) || b.group?.toLowerCase().includes(x);
|
|
7695
7695
|
}), y = h.reduce(
|
|
7696
|
-
(b,
|
|
7697
|
-
const N =
|
|
7698
|
-
return b[N] || (b[N] = []), b[N].push(
|
|
7696
|
+
(b, x) => {
|
|
7697
|
+
const N = x.group || "Commands";
|
|
7698
|
+
return b[N] || (b[N] = []), b[N].push(x), b;
|
|
7699
7699
|
},
|
|
7700
7700
|
{}
|
|
7701
7701
|
);
|
|
@@ -7710,11 +7710,11 @@ const ei = ({
|
|
|
7710
7710
|
switch (b.key) {
|
|
7711
7711
|
case "ArrowDown":
|
|
7712
7712
|
b.preventDefault(), d(
|
|
7713
|
-
(
|
|
7713
|
+
(x) => x < h.length - 1 ? x + 1 : x
|
|
7714
7714
|
);
|
|
7715
7715
|
break;
|
|
7716
7716
|
case "ArrowUp":
|
|
7717
|
-
b.preventDefault(), d((
|
|
7717
|
+
b.preventDefault(), d((x) => x > 0 ? x - 1 : x);
|
|
7718
7718
|
break;
|
|
7719
7719
|
case "Enter":
|
|
7720
7720
|
b.preventDefault(), h[u] && (h[u].onSelect(), e());
|
|
@@ -7767,9 +7767,9 @@ const ei = ({
|
|
|
7767
7767
|
}
|
|
7768
7768
|
)
|
|
7769
7769
|
] }) }),
|
|
7770
|
-
/* @__PURE__ */ a("div", { className: "max-h-96 overflow-y-auto p-2", children: Object.keys(y).length === 0 ? /* @__PURE__ */ a("div", { className: "px-4 py-8 text-sm text-gray-500 dark:text-gray-400 text-center", children: o }) : Object.entries(y).map(([b,
|
|
7770
|
+
/* @__PURE__ */ a("div", { className: "max-h-96 overflow-y-auto p-2", children: Object.keys(y).length === 0 ? /* @__PURE__ */ a("div", { className: "px-4 py-8 text-sm text-gray-500 dark:text-gray-400 text-center", children: o }) : Object.entries(y).map(([b, x]) => /* @__PURE__ */ g("div", { className: "mb-4 last:mb-0", children: [
|
|
7771
7771
|
/* @__PURE__ */ a("div", { className: "px-3 py-2 text-xs font-semibold text-gray-500 dark:text-gray-400 uppercase tracking-wider", children: b }),
|
|
7772
|
-
/* @__PURE__ */ a("div", { className: "space-y-1", children:
|
|
7772
|
+
/* @__PURE__ */ a("div", { className: "space-y-1", children: x.map((N) => {
|
|
7773
7773
|
const C = h.indexOf(N) === u;
|
|
7774
7774
|
return /* @__PURE__ */ g(
|
|
7775
7775
|
"button",
|
|
@@ -8157,17 +8157,17 @@ function Bi({
|
|
|
8157
8157
|
sm: "space-y-1",
|
|
8158
8158
|
md: "space-y-2",
|
|
8159
8159
|
lg: "space-y-4"
|
|
8160
|
-
},
|
|
8161
|
-
const
|
|
8160
|
+
}, x = (N = "secondary") => {
|
|
8161
|
+
const w = "inline-flex items-center gap-2 px-3 py-1.5 text-sm font-medium rounded-lg", v = {
|
|
8162
8162
|
primary: S.component.button.primary,
|
|
8163
8163
|
secondary: S.component.button.secondary,
|
|
8164
8164
|
ghost: S.component.button.ghost
|
|
8165
8165
|
}[N ?? "secondary"];
|
|
8166
8166
|
return c(
|
|
8167
|
-
|
|
8168
|
-
|
|
8169
|
-
|
|
8170
|
-
|
|
8167
|
+
w,
|
|
8168
|
+
v.base,
|
|
8169
|
+
v.dark,
|
|
8170
|
+
v.disabled,
|
|
8171
8171
|
A.transition.default
|
|
8172
8172
|
);
|
|
8173
8173
|
};
|
|
@@ -8189,7 +8189,7 @@ function Bi({
|
|
|
8189
8189
|
{
|
|
8190
8190
|
onClick: N.onClick,
|
|
8191
8191
|
disabled: N.disabled,
|
|
8192
|
-
className:
|
|
8192
|
+
className: x(N.variant),
|
|
8193
8193
|
children: [
|
|
8194
8194
|
N.icon,
|
|
8195
8195
|
N.label
|
|
@@ -8233,7 +8233,7 @@ function Bi({
|
|
|
8233
8233
|
p && "divide-y divide-gray-200 dark:divide-gray-700",
|
|
8234
8234
|
y
|
|
8235
8235
|
),
|
|
8236
|
-
children: r.map((N,
|
|
8236
|
+
children: r.map((N, w) => /* @__PURE__ */ a("div", { children: n(N, w) }, o(N, w)))
|
|
8237
8237
|
}
|
|
8238
8238
|
)
|
|
8239
8239
|
] });
|
|
@@ -9007,13 +9007,13 @@ const ji = ({
|
|
|
9007
9007
|
onClick: m,
|
|
9008
9008
|
...h
|
|
9009
9009
|
}, y) => {
|
|
9010
|
-
const f = n || o, p = s || f && (f.startsWith("http") || f.startsWith("mailto:")), b = (
|
|
9010
|
+
const f = n || o, p = s || f && (f.startsWith("http") || f.startsWith("mailto:")), b = (x) => {
|
|
9011
9011
|
i && i({
|
|
9012
9012
|
action: "click",
|
|
9013
9013
|
trackingLabel: u,
|
|
9014
9014
|
componentName: d
|
|
9015
9015
|
}), m?.(
|
|
9016
|
-
|
|
9016
|
+
x
|
|
9017
9017
|
);
|
|
9018
9018
|
};
|
|
9019
9019
|
return f ? p ? /* @__PURE__ */ a(
|
|
@@ -9172,12 +9172,12 @@ const rc = (t, e) => K.useMemo(() => {
|
|
|
9172
9172
|
}, p = y ? {
|
|
9173
9173
|
target: "_blank",
|
|
9174
9174
|
rel: "noopener noreferrer"
|
|
9175
|
-
} : {}, b = (
|
|
9175
|
+
} : {}, b = (x) => {
|
|
9176
9176
|
i && i({
|
|
9177
9177
|
action: "click",
|
|
9178
9178
|
trackingLabel: u,
|
|
9179
9179
|
componentName: d
|
|
9180
|
-
}), m?.(
|
|
9180
|
+
}), m?.(x);
|
|
9181
9181
|
};
|
|
9182
9182
|
return s ? /* @__PURE__ */ g(
|
|
9183
9183
|
"span",
|
|
@@ -9309,14 +9309,14 @@ const ic = ({
|
|
|
9309
9309
|
const N = typeof s == "string" ? s : s.pathname || "";
|
|
9310
9310
|
if (Fe.has(N))
|
|
9311
9311
|
return;
|
|
9312
|
-
const
|
|
9312
|
+
const w = t || tn(
|
|
9313
9313
|
N,
|
|
9314
9314
|
r,
|
|
9315
9315
|
n,
|
|
9316
9316
|
o
|
|
9317
9317
|
);
|
|
9318
|
-
|
|
9319
|
-
|
|
9318
|
+
w && (h.current = setTimeout(() => {
|
|
9319
|
+
w().then(() => {
|
|
9320
9320
|
Fe.add(N);
|
|
9321
9321
|
}).catch(() => {
|
|
9322
9322
|
});
|
|
@@ -9340,7 +9340,7 @@ const ic = ({
|
|
|
9340
9340
|
f(), u?.(N);
|
|
9341
9341
|
},
|
|
9342
9342
|
[f, u]
|
|
9343
|
-
),
|
|
9343
|
+
), x = F(
|
|
9344
9344
|
(N) => {
|
|
9345
9345
|
y(), d?.(N);
|
|
9346
9346
|
},
|
|
@@ -9352,7 +9352,7 @@ const ic = ({
|
|
|
9352
9352
|
to: s,
|
|
9353
9353
|
onMouseEnter: p,
|
|
9354
9354
|
onMouseLeave: b,
|
|
9355
|
-
onFocus:
|
|
9355
|
+
onFocus: x,
|
|
9356
9356
|
...m,
|
|
9357
9357
|
children: l
|
|
9358
9358
|
}
|
|
@@ -9619,16 +9619,16 @@ const dc = ({
|
|
|
9619
9619
|
text: L.body.lg()
|
|
9620
9620
|
}
|
|
9621
9621
|
}[s], m = (() => {
|
|
9622
|
-
const
|
|
9623
|
-
|
|
9624
|
-
const C = Math.max(t - n, 2),
|
|
9622
|
+
const w = [];
|
|
9623
|
+
w.push(1);
|
|
9624
|
+
const C = Math.max(t - n, 2), v = Math.min(
|
|
9625
9625
|
t + n,
|
|
9626
9626
|
e - 1
|
|
9627
9627
|
);
|
|
9628
|
-
C > 2 &&
|
|
9629
|
-
for (let k = C; k <=
|
|
9630
|
-
|
|
9631
|
-
return
|
|
9628
|
+
C > 2 && w.push("ellipsis");
|
|
9629
|
+
for (let k = C; k <= v; k++)
|
|
9630
|
+
w.push(k);
|
|
9631
|
+
return v < e - 1 && w.push("ellipsis"), e > 1 && w.push(e), w;
|
|
9632
9632
|
})(), h = () => {
|
|
9633
9633
|
t > 1 && r(t - 1);
|
|
9634
9634
|
}, y = () => {
|
|
@@ -9643,11 +9643,11 @@ const dc = ({
|
|
|
9643
9643
|
"transition-all duration-200",
|
|
9644
9644
|
"focus:outline-none focus:ring-2 focus:ring-blue-500",
|
|
9645
9645
|
"disabled:opacity-50 disabled:cursor-not-allowed"
|
|
9646
|
-
),
|
|
9646
|
+
), x = (w) => c(
|
|
9647
9647
|
b,
|
|
9648
9648
|
u.button,
|
|
9649
9649
|
u.text,
|
|
9650
|
-
|
|
9650
|
+
w ? "bg-blue-600 text-white border-blue-600 dark:bg-blue-500 dark:border-blue-500" : "bg-white dark:bg-gray-800 text-gray-700 dark:text-gray-300 hover:bg-gray-50 dark:hover:bg-gray-700"
|
|
9651
9651
|
), N = c(
|
|
9652
9652
|
b,
|
|
9653
9653
|
u.button,
|
|
@@ -9680,7 +9680,7 @@ const dc = ({
|
|
|
9680
9680
|
children: /* @__PURE__ */ a(Br, { className: u.icon })
|
|
9681
9681
|
}
|
|
9682
9682
|
),
|
|
9683
|
-
m.map((
|
|
9683
|
+
m.map((w, C) => w === "ellipsis" ? /* @__PURE__ */ a(
|
|
9684
9684
|
"span",
|
|
9685
9685
|
{
|
|
9686
9686
|
className: c(
|
|
@@ -9694,13 +9694,13 @@ const dc = ({
|
|
|
9694
9694
|
) : /* @__PURE__ */ a(
|
|
9695
9695
|
"button",
|
|
9696
9696
|
{
|
|
9697
|
-
onClick: () => r(
|
|
9698
|
-
className:
|
|
9699
|
-
"aria-label": `Go to page ${
|
|
9700
|
-
"aria-current":
|
|
9701
|
-
children:
|
|
9697
|
+
onClick: () => r(w),
|
|
9698
|
+
className: x(w === t),
|
|
9699
|
+
"aria-label": `Go to page ${w}`,
|
|
9700
|
+
"aria-current": w === t ? "page" : void 0,
|
|
9701
|
+
children: w
|
|
9702
9702
|
},
|
|
9703
|
-
|
|
9703
|
+
w
|
|
9704
9704
|
)),
|
|
9705
9705
|
/* @__PURE__ */ a(
|
|
9706
9706
|
"button",
|
|
@@ -10160,17 +10160,17 @@ function yc({
|
|
|
10160
10160
|
s && "cursor-pointer"
|
|
10161
10161
|
),
|
|
10162
10162
|
onClick: () => s?.(p, b),
|
|
10163
|
-
children: t.map((
|
|
10163
|
+
children: t.map((x) => /* @__PURE__ */ a(
|
|
10164
10164
|
"td",
|
|
10165
10165
|
{
|
|
10166
10166
|
className: c(
|
|
10167
10167
|
u ? "px-3 py-2" : A.table.td,
|
|
10168
|
-
f[
|
|
10168
|
+
f[x.align || "left"],
|
|
10169
10169
|
d && `border-r ${A.border.default} last:border-r-0`
|
|
10170
10170
|
),
|
|
10171
|
-
children:
|
|
10171
|
+
children: x.render ? x.render(p, b) : p[x.key]
|
|
10172
10172
|
},
|
|
10173
|
-
|
|
10173
|
+
x.key
|
|
10174
10174
|
))
|
|
10175
10175
|
},
|
|
10176
10176
|
r(p, b)
|
|
@@ -10493,28 +10493,28 @@ const vc = ({
|
|
|
10493
10493
|
disabled: d = !1,
|
|
10494
10494
|
className: m
|
|
10495
10495
|
}) => {
|
|
10496
|
-
const [h, y] = T(""), [f, p] = T(""), [b,
|
|
10496
|
+
const [h, y] = T(""), [f, p] = T(""), [b, x] = T(/* @__PURE__ */ new Set()), [N, w] = T(/* @__PURE__ */ new Set()), C = s ? t.filter(
|
|
10497
10497
|
(D) => D.label.toLowerCase().includes(h.toLowerCase())
|
|
10498
|
-
) : t,
|
|
10498
|
+
) : t, v = s ? e.filter(
|
|
10499
10499
|
(D) => D.label.toLowerCase().includes(f.toLowerCase())
|
|
10500
10500
|
) : e, k = (D) => {
|
|
10501
10501
|
const V = new Set(b);
|
|
10502
|
-
V.has(D) ? V.delete(D) : V.add(D),
|
|
10502
|
+
V.has(D) ? V.delete(D) : V.add(D), x(V);
|
|
10503
10503
|
}, $ = (D) => {
|
|
10504
10504
|
const V = new Set(N);
|
|
10505
|
-
V.has(D) ? V.delete(D) : V.add(D),
|
|
10505
|
+
V.has(D) ? V.delete(D) : V.add(D), w(V);
|
|
10506
10506
|
}, E = () => {
|
|
10507
10507
|
const D = t.filter((_) => b.has(_.id)), V = t.filter((_) => !b.has(_.id)), R = [...e, ...D];
|
|
10508
|
-
r(V, R),
|
|
10508
|
+
r(V, R), x(/* @__PURE__ */ new Set());
|
|
10509
10509
|
}, I = () => {
|
|
10510
10510
|
const D = e.filter((_) => N.has(_.id)), V = e.filter((_) => !N.has(_.id)), R = [...t, ...D];
|
|
10511
|
-
r(R, V),
|
|
10511
|
+
r(R, V), w(/* @__PURE__ */ new Set());
|
|
10512
10512
|
}, M = () => {
|
|
10513
10513
|
const D = [...e, ...t];
|
|
10514
|
-
r([], D),
|
|
10514
|
+
r([], D), x(/* @__PURE__ */ new Set());
|
|
10515
10515
|
}, U = () => {
|
|
10516
10516
|
const D = [...t, ...e];
|
|
10517
|
-
r(D, []),
|
|
10517
|
+
r(D, []), w(/* @__PURE__ */ new Set());
|
|
10518
10518
|
}, z = (D, V, R, _, Y, X, re) => /* @__PURE__ */ g("div", { className: "flex flex-col flex-1 border border-gray-300 dark:border-gray-700 rounded-md bg-white dark:bg-gray-900", children: [
|
|
10519
10519
|
/* @__PURE__ */ g("div", { className: "px-3 py-2 border-b border-gray-300 dark:border-gray-700 bg-gray-50 dark:bg-gray-800", children: [
|
|
10520
10520
|
/* @__PURE__ */ a("h3", { className: "text-sm font-semibold text-gray-900 dark:text-white", children: V }),
|
|
@@ -10741,7 +10741,7 @@ const vc = ({
|
|
|
10741
10741
|
)
|
|
10742
10742
|
] }),
|
|
10743
10743
|
z(
|
|
10744
|
-
|
|
10744
|
+
v,
|
|
10745
10745
|
o,
|
|
10746
10746
|
N,
|
|
10747
10747
|
$,
|
|
@@ -10773,8 +10773,8 @@ function Tc({
|
|
|
10773
10773
|
className: c("overflow-auto", l),
|
|
10774
10774
|
style: { height: r },
|
|
10775
10775
|
onScroll: m,
|
|
10776
|
-
children: /* @__PURE__ */ a("div", { style: { height: h, position: "relative" }, children: p.map((b,
|
|
10777
|
-
const N = y +
|
|
10776
|
+
children: /* @__PURE__ */ a("div", { style: { height: h, position: "relative" }, children: p.map((b, x) => {
|
|
10777
|
+
const N = y + x;
|
|
10778
10778
|
return /* @__PURE__ */ a(
|
|
10779
10779
|
"div",
|
|
10780
10780
|
{
|
|
@@ -10806,13 +10806,13 @@ const Ac = ({
|
|
|
10806
10806
|
new Set(s ? t.map((p) => p.id) : [])
|
|
10807
10807
|
), m = n !== void 0 ? new Set(n) : u, h = (p) => {
|
|
10808
10808
|
n !== void 0 && o ? o(p) : d((b) => {
|
|
10809
|
-
const
|
|
10810
|
-
return
|
|
10809
|
+
const x = new Set(b);
|
|
10810
|
+
return x.has(p) ? x.delete(p) : x.add(p), x;
|
|
10811
10811
|
});
|
|
10812
10812
|
}, y = (p) => {
|
|
10813
10813
|
!p.disabled && r && r(p);
|
|
10814
10814
|
}, f = (p, b = 0) => {
|
|
10815
|
-
const
|
|
10815
|
+
const x = p.children && p.children.length > 0, N = m.has(p.id), w = e === p.id;
|
|
10816
10816
|
return /* @__PURE__ */ g("div", { children: [
|
|
10817
10817
|
/* @__PURE__ */ g(
|
|
10818
10818
|
"div",
|
|
@@ -10820,14 +10820,14 @@ const Ac = ({
|
|
|
10820
10820
|
className: c(
|
|
10821
10821
|
"flex items-center gap-2 px-2 py-1.5 rounded-md transition-colors",
|
|
10822
10822
|
!p.disabled && "hover:bg-gray-100 dark:hover:bg-gray-800",
|
|
10823
|
-
|
|
10823
|
+
w && "bg-blue-50 dark:bg-blue-900/30",
|
|
10824
10824
|
p.disabled && "opacity-50 cursor-not-allowed",
|
|
10825
10825
|
!p.disabled && "cursor-pointer"
|
|
10826
10826
|
),
|
|
10827
10827
|
style: { paddingLeft: `${b * 1.5 + 0.5}rem` },
|
|
10828
10828
|
onClick: () => y(p),
|
|
10829
10829
|
children: [
|
|
10830
|
-
|
|
10830
|
+
x ? /* @__PURE__ */ a(
|
|
10831
10831
|
"button",
|
|
10832
10832
|
{
|
|
10833
10833
|
onClick: (C) => {
|
|
@@ -10863,7 +10863,7 @@ const Ac = ({
|
|
|
10863
10863
|
{
|
|
10864
10864
|
className: c(
|
|
10865
10865
|
"flex-1 text-sm",
|
|
10866
|
-
|
|
10866
|
+
w ? "text-blue-700 dark:text-blue-300 font-medium" : "text-gray-900 dark:text-white"
|
|
10867
10867
|
),
|
|
10868
10868
|
children: p.label
|
|
10869
10869
|
}
|
|
@@ -10871,7 +10871,7 @@ const Ac = ({
|
|
|
10871
10871
|
]
|
|
10872
10872
|
}
|
|
10873
10873
|
),
|
|
10874
|
-
|
|
10874
|
+
x && N && /* @__PURE__ */ a(
|
|
10875
10875
|
"div",
|
|
10876
10876
|
{
|
|
10877
10877
|
className: c(
|
|
@@ -11131,9 +11131,9 @@ const Ac = ({
|
|
|
11131
11131
|
away: J("warning"),
|
|
11132
11132
|
busy: J("error")
|
|
11133
11133
|
}, p = r || (n ? ((N) => {
|
|
11134
|
-
const
|
|
11135
|
-
return
|
|
11136
|
-
})(n) : ""), b = t && !u,
|
|
11134
|
+
const w = N.trim().split(/\s+/);
|
|
11135
|
+
return w.length === 1 ? w[0].charAt(0).toUpperCase() : w[0].charAt(0).toUpperCase() + w[w.length - 1].charAt(0).toUpperCase();
|
|
11136
|
+
})(n) : ""), b = t && !u, x = () => {
|
|
11137
11137
|
d(!0);
|
|
11138
11138
|
};
|
|
11139
11139
|
return /* @__PURE__ */ g("div", { className: "relative inline-block flex-shrink-0", children: [
|
|
@@ -11156,7 +11156,7 @@ const Ac = ({
|
|
|
11156
11156
|
src: t,
|
|
11157
11157
|
alt: e,
|
|
11158
11158
|
className: "w-full h-full object-cover",
|
|
11159
|
-
onError:
|
|
11159
|
+
onError: x
|
|
11160
11160
|
}
|
|
11161
11161
|
) : /* @__PURE__ */ a("span", { className: "font-semibold", children: p })
|
|
11162
11162
|
}
|
|
@@ -11260,7 +11260,7 @@ const Ac = ({
|
|
|
11260
11260
|
default: "text-gray-700 dark:text-gray-300",
|
|
11261
11261
|
muted: "text-gray-600 dark:text-gray-400",
|
|
11262
11262
|
strong: "text-gray-900 dark:text-gray-100 font-semibold"
|
|
11263
|
-
},
|
|
11263
|
+
}, x = {
|
|
11264
11264
|
default: "text-gray-900 dark:text-gray-100",
|
|
11265
11265
|
muted: "text-gray-600 dark:text-gray-400",
|
|
11266
11266
|
strong: "text-gray-900 dark:text-gray-100 font-semibold",
|
|
@@ -11295,7 +11295,7 @@ const Ac = ({
|
|
|
11295
11295
|
{
|
|
11296
11296
|
className: c(
|
|
11297
11297
|
N.value,
|
|
11298
|
-
|
|
11298
|
+
x[u],
|
|
11299
11299
|
r === "horizontal" && "flex-1",
|
|
11300
11300
|
h
|
|
11301
11301
|
),
|
|
@@ -11542,8 +11542,8 @@ const Ac = ({
|
|
|
11542
11542
|
S.raw.red[500],
|
|
11543
11543
|
S.raw.purple[500]
|
|
11544
11544
|
], y = (f) => f.length === 0 ? "" : `M ${f.map((b) => {
|
|
11545
|
-
const
|
|
11546
|
-
return `${
|
|
11545
|
+
const x = b.x / m * 100, N = 100 - (b.y - d) / (u - d) * 100;
|
|
11546
|
+
return `${x},${N}`;
|
|
11547
11547
|
}).join(" L ")}`;
|
|
11548
11548
|
return /* @__PURE__ */ g("div", { className: c("w-full", l), children: [
|
|
11549
11549
|
e && /* @__PURE__ */ a("div", { className: "flex flex-wrap gap-4 mb-4", children: t.map((f, p) => /* @__PURE__ */ g("div", { className: "flex items-center gap-2", children: [
|
|
@@ -11587,12 +11587,12 @@ const Ac = ({
|
|
|
11587
11587
|
vectorEffect: "non-scaling-stroke"
|
|
11588
11588
|
}
|
|
11589
11589
|
),
|
|
11590
|
-
n && f.data.map((
|
|
11591
|
-
const
|
|
11590
|
+
n && f.data.map((x, N) => {
|
|
11591
|
+
const w = x.x / m * 100, C = 100 - (x.y - d) / (u - d) * 100;
|
|
11592
11592
|
return /* @__PURE__ */ a(
|
|
11593
11593
|
"circle",
|
|
11594
11594
|
{
|
|
11595
|
-
cx:
|
|
11595
|
+
cx: w,
|
|
11596
11596
|
cy: C,
|
|
11597
11597
|
r: "1",
|
|
11598
11598
|
fill: b,
|
|
@@ -11632,37 +11632,37 @@ const Ac = ({
|
|
|
11632
11632
|
S.raw.red[500],
|
|
11633
11633
|
S.raw.purple[500],
|
|
11634
11634
|
S.raw.orange[500]
|
|
11635
|
-
], d = t.reduce((p, b,
|
|
11636
|
-
const N = b.value / i * 100,
|
|
11635
|
+
], d = t.reduce((p, b, x) => {
|
|
11636
|
+
const N = b.value / i * 100, w = N / 100 * 360, C = p.length > 0 ? p[p.length - 1].endAngle : -90, v = C + w;
|
|
11637
11637
|
return p.push({
|
|
11638
11638
|
...b,
|
|
11639
11639
|
percentage: N,
|
|
11640
11640
|
startAngle: C,
|
|
11641
|
-
endAngle:
|
|
11642
|
-
color: b.color || u[
|
|
11641
|
+
endAngle: v,
|
|
11642
|
+
color: b.color || u[x % u.length]
|
|
11643
11643
|
}), p;
|
|
11644
|
-
}, []), m = (p, b,
|
|
11645
|
-
const
|
|
11644
|
+
}, []), m = (p, b, x, N) => {
|
|
11645
|
+
const w = (N - 90) * Math.PI / 180;
|
|
11646
11646
|
return {
|
|
11647
|
-
x: p +
|
|
11648
|
-
y: b +
|
|
11647
|
+
x: p + x * Math.cos(w),
|
|
11648
|
+
y: b + x * Math.sin(w)
|
|
11649
11649
|
};
|
|
11650
|
-
}, h = (p, b,
|
|
11651
|
-
const C = m(p, b,
|
|
11650
|
+
}, h = (p, b, x, N, w) => {
|
|
11651
|
+
const C = m(p, b, x, w), v = m(p, b, x, N), k = w - N <= 180 ? "0" : "1";
|
|
11652
11652
|
if (e === "donut") {
|
|
11653
|
-
const $ =
|
|
11653
|
+
const $ = x * s / 100, E = m(p, b, $, w), I = m(p, b, $, N);
|
|
11654
11654
|
return [
|
|
11655
11655
|
"M",
|
|
11656
11656
|
C.x,
|
|
11657
11657
|
C.y,
|
|
11658
11658
|
"A",
|
|
11659
|
-
|
|
11660
|
-
|
|
11659
|
+
x,
|
|
11660
|
+
x,
|
|
11661
11661
|
0,
|
|
11662
11662
|
k,
|
|
11663
11663
|
0,
|
|
11664
|
-
|
|
11665
|
-
|
|
11664
|
+
v.x,
|
|
11665
|
+
v.y,
|
|
11666
11666
|
"L",
|
|
11667
11667
|
I.x,
|
|
11668
11668
|
I.y,
|
|
@@ -11685,13 +11685,13 @@ const Ac = ({
|
|
|
11685
11685
|
C.x,
|
|
11686
11686
|
C.y,
|
|
11687
11687
|
"A",
|
|
11688
|
-
|
|
11689
|
-
|
|
11688
|
+
x,
|
|
11689
|
+
x,
|
|
11690
11690
|
0,
|
|
11691
11691
|
k,
|
|
11692
11692
|
0,
|
|
11693
|
-
|
|
11694
|
-
|
|
11693
|
+
v.x,
|
|
11694
|
+
v.y,
|
|
11695
11695
|
"Z"
|
|
11696
11696
|
].join(" ");
|
|
11697
11697
|
}, y = o / 2, f = o / 2 - 10;
|
|
@@ -11746,14 +11746,14 @@ const Ac = ({
|
|
|
11746
11746
|
S.raw.purple[500]
|
|
11747
11747
|
], y = (p) => {
|
|
11748
11748
|
if (p.length === 0) return "";
|
|
11749
|
-
const b = p.map((
|
|
11750
|
-
const C =
|
|
11751
|
-
return `${C},${
|
|
11752
|
-
}),
|
|
11753
|
-
return `M ${
|
|
11754
|
-
}, f = (p) => p.length === 0 ? "" : `M ${p.map((
|
|
11755
|
-
const N =
|
|
11756
|
-
return `${N},${
|
|
11749
|
+
const b = p.map((w) => {
|
|
11750
|
+
const C = w.x / m * 100, v = 100 - (w.y - d) / (u - d) * 100;
|
|
11751
|
+
return `${C},${v}`;
|
|
11752
|
+
}), x = p[0].x / m * 100, N = p[p.length - 1].x / m * 100;
|
|
11753
|
+
return `M ${x},100 L ${b.join(" L ")} L ${N},100 Z`;
|
|
11754
|
+
}, f = (p) => p.length === 0 ? "" : `M ${p.map((x) => {
|
|
11755
|
+
const N = x.x / m * 100, w = 100 - (x.y - d) / (u - d) * 100;
|
|
11756
|
+
return `${N},${w}`;
|
|
11757
11757
|
}).join(" L ")}`;
|
|
11758
11758
|
return /* @__PURE__ */ g("div", { className: c("w-full", l), children: [
|
|
11759
11759
|
e && /* @__PURE__ */ a("div", { className: "flex flex-wrap gap-4 mb-4", children: t.map((p, b) => /* @__PURE__ */ g("div", { className: "flex items-center gap-2", children: [
|
|
@@ -11785,13 +11785,13 @@ const Ac = ({
|
|
|
11785
11785
|
preserveAspectRatio: "none",
|
|
11786
11786
|
className: "absolute inset-0 w-full h-full",
|
|
11787
11787
|
children: t.map((p, b) => {
|
|
11788
|
-
const
|
|
11788
|
+
const x = p.color || h[b % h.length];
|
|
11789
11789
|
return /* @__PURE__ */ g("g", { children: [
|
|
11790
11790
|
/* @__PURE__ */ a(
|
|
11791
11791
|
"path",
|
|
11792
11792
|
{
|
|
11793
11793
|
d: y(p.data),
|
|
11794
|
-
fill:
|
|
11794
|
+
fill: x,
|
|
11795
11795
|
fillOpacity: n
|
|
11796
11796
|
}
|
|
11797
11797
|
),
|
|
@@ -11800,7 +11800,7 @@ const Ac = ({
|
|
|
11800
11800
|
{
|
|
11801
11801
|
d: f(p.data),
|
|
11802
11802
|
fill: "none",
|
|
11803
|
-
stroke:
|
|
11803
|
+
stroke: x,
|
|
11804
11804
|
strokeWidth: "0.5",
|
|
11805
11805
|
vectorEffect: "non-scaling-stroke"
|
|
11806
11806
|
}
|
|
@@ -12294,14 +12294,14 @@ const Ac = ({
|
|
|
12294
12294
|
onLoad: h,
|
|
12295
12295
|
onError: y
|
|
12296
12296
|
}) => {
|
|
12297
|
-
const [f, p] = T(!0), [b,
|
|
12297
|
+
const [f, p] = T(!0), [b, x] = T(!1), [N, w] = T(t);
|
|
12298
12298
|
P(() => {
|
|
12299
|
-
p(!0),
|
|
12299
|
+
p(!0), x(!1), w(t);
|
|
12300
12300
|
}, [t]);
|
|
12301
12301
|
const C = () => {
|
|
12302
12302
|
p(!1), h?.();
|
|
12303
|
-
},
|
|
12304
|
-
p(!1),
|
|
12303
|
+
}, v = () => {
|
|
12304
|
+
p(!1), x(!0), r && N !== r && (w(r), x(!1), p(!0)), y?.();
|
|
12305
12305
|
}, k = {
|
|
12306
12306
|
none: "",
|
|
12307
12307
|
sm: "rounded-sm",
|
|
@@ -12339,7 +12339,7 @@ const Ac = ({
|
|
|
12339
12339
|
alt: e,
|
|
12340
12340
|
loading: l,
|
|
12341
12341
|
onLoad: C,
|
|
12342
|
-
onError:
|
|
12342
|
+
onError: v,
|
|
12343
12343
|
className: c(
|
|
12344
12344
|
"w-full h-full",
|
|
12345
12345
|
$[s],
|
|
@@ -12638,27 +12638,27 @@ const Ac = ({
|
|
|
12638
12638
|
}) => {
|
|
12639
12639
|
const [d, m] = T(1), h = t[e], y = e > 0, f = e < t.length - 1, p = F(() => {
|
|
12640
12640
|
if (y) {
|
|
12641
|
-
const
|
|
12642
|
-
o?.(
|
|
12641
|
+
const v = e - 1;
|
|
12642
|
+
o?.(v), m(1);
|
|
12643
12643
|
}
|
|
12644
12644
|
}, [y, e, o]), b = F(() => {
|
|
12645
12645
|
if (f) {
|
|
12646
|
-
const
|
|
12647
|
-
o?.(
|
|
12646
|
+
const v = e + 1;
|
|
12647
|
+
o?.(v), m(1);
|
|
12648
12648
|
}
|
|
12649
|
-
}, [f, e, o]),
|
|
12650
|
-
m((
|
|
12649
|
+
}, [f, e, o]), x = () => {
|
|
12650
|
+
m((v) => Math.min(v + 0.5, 3));
|
|
12651
12651
|
}, N = () => {
|
|
12652
|
-
m((
|
|
12653
|
-
},
|
|
12652
|
+
m((v) => Math.max(v - 0.5, 0.5));
|
|
12653
|
+
}, w = () => {
|
|
12654
12654
|
m(1);
|
|
12655
12655
|
}, C = () => {
|
|
12656
|
-
const
|
|
12657
|
-
|
|
12656
|
+
const v = document.createElement("a");
|
|
12657
|
+
v.href = h.src, v.download = h.alt || "image", v.click();
|
|
12658
12658
|
};
|
|
12659
12659
|
return P(() => {
|
|
12660
12660
|
if (!r) return;
|
|
12661
|
-
const
|
|
12661
|
+
const v = (k) => {
|
|
12662
12662
|
switch (k.key) {
|
|
12663
12663
|
case "Escape":
|
|
12664
12664
|
n();
|
|
@@ -12671,18 +12671,18 @@ const Ac = ({
|
|
|
12671
12671
|
break;
|
|
12672
12672
|
case "+":
|
|
12673
12673
|
case "=":
|
|
12674
|
-
|
|
12674
|
+
x();
|
|
12675
12675
|
break;
|
|
12676
12676
|
case "-":
|
|
12677
12677
|
case "_":
|
|
12678
12678
|
N();
|
|
12679
12679
|
break;
|
|
12680
12680
|
case "0":
|
|
12681
|
-
|
|
12681
|
+
w();
|
|
12682
12682
|
break;
|
|
12683
12683
|
}
|
|
12684
12684
|
};
|
|
12685
|
-
return document.addEventListener("keydown",
|
|
12685
|
+
return document.addEventListener("keydown", v), () => document.removeEventListener("keydown", v);
|
|
12686
12686
|
}, [r, e, t.length, n, p, b]), P(() => (r ? document.body.style.overflow = "hidden" : document.body.style.overflow = "", () => {
|
|
12687
12687
|
document.body.style.overflow = "";
|
|
12688
12688
|
}), [r]), P(() => {
|
|
@@ -12818,7 +12818,7 @@ const Ac = ({
|
|
|
12818
12818
|
/* @__PURE__ */ g(
|
|
12819
12819
|
"button",
|
|
12820
12820
|
{
|
|
12821
|
-
onClick:
|
|
12821
|
+
onClick: w,
|
|
12822
12822
|
className: "px-2 text-white text-sm hover:text-gray-300 transition-colors",
|
|
12823
12823
|
"aria-label": "Reset zoom",
|
|
12824
12824
|
children: [
|
|
@@ -12830,7 +12830,7 @@ const Ac = ({
|
|
|
12830
12830
|
/* @__PURE__ */ a(
|
|
12831
12831
|
"button",
|
|
12832
12832
|
{
|
|
12833
|
-
onClick:
|
|
12833
|
+
onClick: x,
|
|
12834
12834
|
className: "p-1.5 text-white hover:text-gray-300 transition-colors",
|
|
12835
12835
|
"aria-label": "Zoom in",
|
|
12836
12836
|
children: /* @__PURE__ */ a(
|
|
@@ -12893,7 +12893,7 @@ const Ac = ({
|
|
|
12893
12893
|
}
|
|
12894
12894
|
) }),
|
|
12895
12895
|
h.caption && /* @__PURE__ */ a("div", { className: "absolute bottom-20 left-0 right-0 z-10 text-center", children: /* @__PURE__ */ a("p", { className: "px-4 py-2 bg-black/50 text-white text-sm inline-block rounded-md max-w-2xl", children: h.caption }) }),
|
|
12896
|
-
s && t.length > 1 && /* @__PURE__ */ a("div", { className: "absolute bottom-4 left-0 right-0 z-10 flex justify-center gap-2 px-4 overflow-x-auto", children: t.map((
|
|
12896
|
+
s && t.length > 1 && /* @__PURE__ */ a("div", { className: "absolute bottom-4 left-0 right-0 z-10 flex justify-center gap-2 px-4 overflow-x-auto", children: t.map((v, k) => /* @__PURE__ */ a(
|
|
12897
12897
|
"button",
|
|
12898
12898
|
{
|
|
12899
12899
|
onClick: () => {
|
|
@@ -12907,8 +12907,8 @@ const Ac = ({
|
|
|
12907
12907
|
children: /* @__PURE__ */ a(
|
|
12908
12908
|
"img",
|
|
12909
12909
|
{
|
|
12910
|
-
src:
|
|
12911
|
-
alt:
|
|
12910
|
+
src: v.thumbnail || v.src,
|
|
12911
|
+
alt: v.alt || "",
|
|
12912
12912
|
className: "w-full h-full object-cover"
|
|
12913
12913
|
}
|
|
12914
12914
|
)
|
|
@@ -12967,17 +12967,17 @@ const Ac = ({
|
|
|
12967
12967
|
k.removeEventListener("timeupdate", $), k.removeEventListener("loadedmetadata", E), k.removeEventListener("play", I), k.removeEventListener("pause", M);
|
|
12968
12968
|
};
|
|
12969
12969
|
}, []);
|
|
12970
|
-
const
|
|
12970
|
+
const x = () => {
|
|
12971
12971
|
i.current && (u ? i.current.pause() : i.current.play());
|
|
12972
12972
|
}, N = (k) => {
|
|
12973
12973
|
const $ = parseFloat(k.target.value);
|
|
12974
12974
|
h($), i.current && (i.current.volume = $);
|
|
12975
|
-
},
|
|
12975
|
+
}, w = (k) => {
|
|
12976
12976
|
const $ = parseFloat(k.target.value);
|
|
12977
12977
|
f($), i.current && (i.current.currentTime = $);
|
|
12978
12978
|
}, C = () => {
|
|
12979
12979
|
i.current && (document.fullscreenElement ? document.exitFullscreen() : i.current.requestFullscreen());
|
|
12980
|
-
},
|
|
12980
|
+
}, v = (k) => {
|
|
12981
12981
|
const $ = Math.floor(k / 60), E = Math.floor(k % 60);
|
|
12982
12982
|
return `${$}:${E.toString().padStart(2, "0")}`;
|
|
12983
12983
|
};
|
|
@@ -12992,7 +12992,7 @@ const Ac = ({
|
|
|
12992
12992
|
loop: n,
|
|
12993
12993
|
muted: o,
|
|
12994
12994
|
className: "w-full rounded-lg",
|
|
12995
|
-
onClick:
|
|
12995
|
+
onClick: x
|
|
12996
12996
|
}
|
|
12997
12997
|
),
|
|
12998
12998
|
s && /* @__PURE__ */ g("div", { className: "absolute bottom-0 left-0 right-0 bg-gradient-to-t from-black/70 to-transparent p-4 opacity-0 group-hover:opacity-100 transition-opacity", children: [
|
|
@@ -13003,7 +13003,7 @@ const Ac = ({
|
|
|
13003
13003
|
min: "0",
|
|
13004
13004
|
max: p || 0,
|
|
13005
13005
|
value: y,
|
|
13006
|
-
onChange:
|
|
13006
|
+
onChange: w,
|
|
13007
13007
|
className: "w-full mb-2 accent-white"
|
|
13008
13008
|
}
|
|
13009
13009
|
),
|
|
@@ -13012,7 +13012,7 @@ const Ac = ({
|
|
|
13012
13012
|
/* @__PURE__ */ a(
|
|
13013
13013
|
"button",
|
|
13014
13014
|
{
|
|
13015
|
-
onClick:
|
|
13015
|
+
onClick: x,
|
|
13016
13016
|
className: "text-white hover:text-gray-300 transition-colors",
|
|
13017
13017
|
children: u ? /* @__PURE__ */ a(
|
|
13018
13018
|
"svg",
|
|
@@ -13057,9 +13057,9 @@ const Ac = ({
|
|
|
13057
13057
|
)
|
|
13058
13058
|
] }),
|
|
13059
13059
|
/* @__PURE__ */ g("span", { className: "text-white text-sm", children: [
|
|
13060
|
-
|
|
13060
|
+
v(y),
|
|
13061
13061
|
" / ",
|
|
13062
|
-
|
|
13062
|
+
v(p)
|
|
13063
13063
|
] })
|
|
13064
13064
|
] }),
|
|
13065
13065
|
/* @__PURE__ */ a(
|
|
@@ -13173,18 +13173,18 @@ const Ac = ({
|
|
|
13173
13173
|
k.removeEventListener("timeupdate", $), k.removeEventListener("loadedmetadata", E), k.removeEventListener("play", I), k.removeEventListener("pause", M), k.removeEventListener("ended", U);
|
|
13174
13174
|
};
|
|
13175
13175
|
}, []);
|
|
13176
|
-
const
|
|
13176
|
+
const x = () => {
|
|
13177
13177
|
i.current && (u ? i.current.pause() : i.current.play());
|
|
13178
13178
|
}, N = (k) => {
|
|
13179
13179
|
const $ = parseFloat(k.target.value);
|
|
13180
13180
|
h($), i.current && (i.current.currentTime = $);
|
|
13181
|
-
},
|
|
13181
|
+
}, w = (k) => {
|
|
13182
13182
|
const $ = parseFloat(k.target.value);
|
|
13183
13183
|
b($), i.current && (i.current.volume = $);
|
|
13184
13184
|
}, C = (k) => {
|
|
13185
13185
|
const $ = Math.floor(k / 60), E = Math.floor(k % 60);
|
|
13186
13186
|
return `${$}:${E.toString().padStart(2, "0")}`;
|
|
13187
|
-
},
|
|
13187
|
+
}, v = y > 0 ? m / y * 100 : 0;
|
|
13188
13188
|
return /* @__PURE__ */ g(
|
|
13189
13189
|
"div",
|
|
13190
13190
|
{
|
|
@@ -13252,7 +13252,7 @@ const Ac = ({
|
|
|
13252
13252
|
/* @__PURE__ */ a(
|
|
13253
13253
|
"button",
|
|
13254
13254
|
{
|
|
13255
|
-
onClick:
|
|
13255
|
+
onClick: x,
|
|
13256
13256
|
className: c(
|
|
13257
13257
|
"w-10 h-10 rounded-full flex items-center justify-center transition-colors",
|
|
13258
13258
|
S.component.button.primary.base,
|
|
@@ -13287,14 +13287,14 @@ const Ac = ({
|
|
|
13287
13287
|
max: "1",
|
|
13288
13288
|
step: "0.1",
|
|
13289
13289
|
value: p,
|
|
13290
|
-
onChange:
|
|
13290
|
+
onChange: w,
|
|
13291
13291
|
className: "w-24 accent-blue-500"
|
|
13292
13292
|
}
|
|
13293
13293
|
)
|
|
13294
13294
|
] })
|
|
13295
13295
|
] }),
|
|
13296
13296
|
/* @__PURE__ */ g("span", { className: c(L.body.sm()), children: [
|
|
13297
|
-
|
|
13297
|
+
v.toFixed(0),
|
|
13298
13298
|
"%"
|
|
13299
13299
|
] })
|
|
13300
13300
|
] })
|
|
@@ -13413,15 +13413,15 @@ const Ac = ({
|
|
|
13413
13413
|
C.preventDefault(), m(!1);
|
|
13414
13414
|
}, p = (C) => {
|
|
13415
13415
|
C.preventDefault(), m(!1);
|
|
13416
|
-
const
|
|
13417
|
-
v
|
|
13416
|
+
const v = Array.from(C.dataTransfer.files);
|
|
13417
|
+
x(v);
|
|
13418
13418
|
}, b = (C) => {
|
|
13419
13419
|
if (C.target.files) {
|
|
13420
|
-
const
|
|
13421
|
-
v
|
|
13420
|
+
const v = Array.from(C.target.files);
|
|
13421
|
+
x(v);
|
|
13422
13422
|
}
|
|
13423
|
-
},
|
|
13424
|
-
const
|
|
13423
|
+
}, x = (C) => {
|
|
13424
|
+
const v = C.filter((I) => {
|
|
13425
13425
|
const M = t.some((z) => {
|
|
13426
13426
|
if (z.endsWith("/*")) {
|
|
13427
13427
|
const D = z.split("/")[0];
|
|
@@ -13430,7 +13430,7 @@ const Ac = ({
|
|
|
13430
13430
|
return I.type === z;
|
|
13431
13431
|
}), U = I.size <= e;
|
|
13432
13432
|
return M && U;
|
|
13433
|
-
}), k = r - i.length, $ =
|
|
13433
|
+
}), k = r - i.length, $ = v.slice(0, k), E = $.map((I) => ({
|
|
13434
13434
|
id: `${Date.now()}-${Math.random()}`,
|
|
13435
13435
|
file: I,
|
|
13436
13436
|
preview: I.type.startsWith("image/") ? URL.createObjectURL(I) : void 0,
|
|
@@ -13438,8 +13438,8 @@ const Ac = ({
|
|
|
13438
13438
|
}));
|
|
13439
13439
|
u((I) => [...I, ...E]), o && o($);
|
|
13440
13440
|
}, N = (C) => {
|
|
13441
|
-
u((
|
|
13442
|
-
},
|
|
13441
|
+
u((v) => v.filter((k) => k.id !== C)), s && s(C);
|
|
13442
|
+
}, w = (C) => C < 1024 ? `${C} B` : C < 1024 * 1024 ? `${(C / 1024).toFixed(1)} KB` : `${(C / (1024 * 1024)).toFixed(1)} MB`;
|
|
13443
13443
|
return /* @__PURE__ */ g("div", { className: c("space-y-4", l), children: [
|
|
13444
13444
|
/* @__PURE__ */ g(
|
|
13445
13445
|
"div",
|
|
@@ -13477,7 +13477,7 @@ const Ac = ({
|
|
|
13477
13477
|
"Max ",
|
|
13478
13478
|
r,
|
|
13479
13479
|
" files, ",
|
|
13480
|
-
|
|
13480
|
+
w(e),
|
|
13481
13481
|
" each"
|
|
13482
13482
|
] }),
|
|
13483
13483
|
/* @__PURE__ */ a(
|
|
@@ -13542,7 +13542,7 @@ const Ac = ({
|
|
|
13542
13542
|
),
|
|
13543
13543
|
/* @__PURE__ */ g("div", { className: "absolute bottom-0 left-0 right-0 bg-black/70 text-white text-xs p-2", children: [
|
|
13544
13544
|
/* @__PURE__ */ a("p", { className: "truncate", children: C.file.name }),
|
|
13545
|
-
/* @__PURE__ */ a("p", { className: "text-gray-300", children:
|
|
13545
|
+
/* @__PURE__ */ a("p", { className: "text-gray-300", children: w(C.file.size) })
|
|
13546
13546
|
] })
|
|
13547
13547
|
]
|
|
13548
13548
|
},
|
|
@@ -13674,8 +13674,8 @@ const Ac = ({
|
|
|
13674
13674
|
const p = j(null), b = j(null);
|
|
13675
13675
|
if (P(() => {
|
|
13676
13676
|
if (!t || !u) return;
|
|
13677
|
-
const C = (
|
|
13678
|
-
|
|
13677
|
+
const C = (v) => {
|
|
13678
|
+
v.key === "Escape" && e();
|
|
13679
13679
|
};
|
|
13680
13680
|
return document.addEventListener("keydown", C), () => document.removeEventListener("keydown", C);
|
|
13681
13681
|
}, [t, u, e]), P(() => {
|
|
@@ -13684,12 +13684,12 @@ const Ac = ({
|
|
|
13684
13684
|
document.body.style.overflow = "unset", b.current && b.current.focus();
|
|
13685
13685
|
};
|
|
13686
13686
|
}, [t]), !t) return null;
|
|
13687
|
-
const
|
|
13688
|
-
const C = O.overlays.modal.content(),
|
|
13689
|
-
return c(C,
|
|
13687
|
+
const x = () => {
|
|
13688
|
+
const C = O.overlays.modal.content(), v = O.overlays.modal[n]();
|
|
13689
|
+
return c(C, v);
|
|
13690
13690
|
}, N = (C) => {
|
|
13691
13691
|
i && C.target === C.currentTarget && e();
|
|
13692
|
-
},
|
|
13692
|
+
}, w = /* @__PURE__ */ g(H, { children: [
|
|
13693
13693
|
/* @__PURE__ */ a(
|
|
13694
13694
|
"div",
|
|
13695
13695
|
{
|
|
@@ -13710,7 +13710,7 @@ const Ac = ({
|
|
|
13710
13710
|
{
|
|
13711
13711
|
ref: p,
|
|
13712
13712
|
"data-testid": "modal-content",
|
|
13713
|
-
className: c(
|
|
13713
|
+
className: c(x(), m),
|
|
13714
13714
|
tabIndex: -1,
|
|
13715
13715
|
onClick: (C) => C.stopPropagation(),
|
|
13716
13716
|
children: [
|
|
@@ -13740,7 +13740,7 @@ const Ac = ({
|
|
|
13740
13740
|
}
|
|
13741
13741
|
)
|
|
13742
13742
|
] });
|
|
13743
|
-
return st(
|
|
13743
|
+
return st(w, document.body);
|
|
13744
13744
|
}, Td = ({
|
|
13745
13745
|
children: t,
|
|
13746
13746
|
variant: e = "default",
|
|
@@ -13959,10 +13959,10 @@ const Ac = ({
|
|
|
13959
13959
|
P(() => {
|
|
13960
13960
|
const N = h.current;
|
|
13961
13961
|
if (!N || r || !n) return;
|
|
13962
|
-
const
|
|
13962
|
+
const w = () => {
|
|
13963
13963
|
const {
|
|
13964
13964
|
scrollTop: C,
|
|
13965
|
-
scrollHeight:
|
|
13965
|
+
scrollHeight: v,
|
|
13966
13966
|
clientHeight: k,
|
|
13967
13967
|
scrollLeft: $,
|
|
13968
13968
|
scrollWidth: E,
|
|
@@ -13970,9 +13970,9 @@ const Ac = ({
|
|
|
13970
13970
|
} = N;
|
|
13971
13971
|
u === "vertical" && f(C > 300);
|
|
13972
13972
|
let M;
|
|
13973
|
-
u === "vertical" ? d ? M = C : M =
|
|
13973
|
+
u === "vertical" ? d ? M = C : M = v - C - k : d ? M = $ : M = E - $ - I, M < o && e();
|
|
13974
13974
|
};
|
|
13975
|
-
return N.addEventListener("scroll",
|
|
13975
|
+
return N.addEventListener("scroll", w), () => N.removeEventListener("scroll", w);
|
|
13976
13976
|
}, [r, n, o, e, u, d]);
|
|
13977
13977
|
const p = () => {
|
|
13978
13978
|
h.current?.scrollTo({
|
|
@@ -13982,7 +13982,7 @@ const Ac = ({
|
|
|
13982
13982
|
}, b = /* @__PURE__ */ g("div", { className: "flex justify-center items-center py-4", children: [
|
|
13983
13983
|
/* @__PURE__ */ a("div", { className: "w-6 h-6 border-2 border-blue-600 dark:border-blue-400 border-t-transparent rounded-full animate-spin" }),
|
|
13984
13984
|
/* @__PURE__ */ a("span", { className: "ml-2 text-sm text-gray-600 dark:text-gray-400", children: "Loading..." })
|
|
13985
|
-
] }),
|
|
13985
|
+
] }), x = /* @__PURE__ */ a("div", { className: "flex justify-center items-center py-4", children: /* @__PURE__ */ a("span", { className: "text-sm text-gray-600 dark:text-gray-400", children: "No more items to load" }) });
|
|
13986
13986
|
return /* @__PURE__ */ g("div", { className: c("relative", m), children: [
|
|
13987
13987
|
/* @__PURE__ */ g(
|
|
13988
13988
|
"div",
|
|
@@ -14012,7 +14012,7 @@ const Ac = ({
|
|
|
14012
14012
|
}
|
|
14013
14013
|
),
|
|
14014
14014
|
!d && r && (s || b),
|
|
14015
|
-
!d && !r && !n && (l ||
|
|
14015
|
+
!d && !r && !n && (l || x)
|
|
14016
14016
|
]
|
|
14017
14017
|
}
|
|
14018
14018
|
),
|
|
@@ -14117,11 +14117,11 @@ const Ac = ({
|
|
|
14117
14117
|
};
|
|
14118
14118
|
return document.addEventListener("keydown", k), () => document.removeEventListener("keydown", k);
|
|
14119
14119
|
}, [m, h]);
|
|
14120
|
-
const
|
|
14120
|
+
const x = () => {
|
|
14121
14121
|
s === "click" && h(!m);
|
|
14122
14122
|
}, N = () => {
|
|
14123
14123
|
s === "hover" && h(!0);
|
|
14124
|
-
},
|
|
14124
|
+
}, w = () => {
|
|
14125
14125
|
s === "hover" && h(!1);
|
|
14126
14126
|
}, C = {
|
|
14127
14127
|
top: "origin-bottom",
|
|
@@ -14132,7 +14132,7 @@ const Ac = ({
|
|
|
14132
14132
|
"bottom-end": "origin-top-right",
|
|
14133
14133
|
left: "origin-right",
|
|
14134
14134
|
right: "origin-left"
|
|
14135
|
-
},
|
|
14135
|
+
}, v = {
|
|
14136
14136
|
top: "-translate-x-1/2 -translate-y-full",
|
|
14137
14137
|
"top-start": "-translate-y-full",
|
|
14138
14138
|
"top-end": "-translate-x-full -translate-y-full",
|
|
@@ -14147,9 +14147,9 @@ const Ac = ({
|
|
|
14147
14147
|
"div",
|
|
14148
14148
|
{
|
|
14149
14149
|
ref: y,
|
|
14150
|
-
onClick:
|
|
14150
|
+
onClick: x,
|
|
14151
14151
|
onMouseEnter: N,
|
|
14152
|
-
onMouseLeave:
|
|
14152
|
+
onMouseLeave: w,
|
|
14153
14153
|
className: "inline-block",
|
|
14154
14154
|
children: t
|
|
14155
14155
|
}
|
|
@@ -14167,7 +14167,7 @@ const Ac = ({
|
|
|
14167
14167
|
"transition-all duration-200",
|
|
14168
14168
|
"animate-in fade-in zoom-in-95",
|
|
14169
14169
|
C[r],
|
|
14170
|
-
|
|
14170
|
+
v[r]
|
|
14171
14171
|
),
|
|
14172
14172
|
style: {
|
|
14173
14173
|
position: "fixed",
|
|
@@ -14212,17 +14212,17 @@ const Ac = ({
|
|
|
14212
14212
|
P(() => {
|
|
14213
14213
|
const p = o ? document.querySelector(o) : window;
|
|
14214
14214
|
if (!p) return;
|
|
14215
|
-
const b = (
|
|
14215
|
+
const b = (w) => w.flatMap((C) => [
|
|
14216
14216
|
C.id,
|
|
14217
14217
|
...C.subsections ? b(C.subsections) : []
|
|
14218
|
-
]), N = b(t).map((
|
|
14218
|
+
]), N = b(t).map((w) => document.getElementById(w)).filter(Boolean);
|
|
14219
14219
|
if (N.length !== 0)
|
|
14220
14220
|
return m.current = new IntersectionObserver(
|
|
14221
|
-
(
|
|
14222
|
-
|
|
14221
|
+
(w) => {
|
|
14222
|
+
w.forEach((C) => {
|
|
14223
14223
|
if (C.isIntersecting) {
|
|
14224
|
-
const
|
|
14225
|
-
e !== void 0 && r ? r(
|
|
14224
|
+
const v = C.target.id;
|
|
14225
|
+
e !== void 0 && r ? r(v) : d(v);
|
|
14226
14226
|
}
|
|
14227
14227
|
});
|
|
14228
14228
|
},
|
|
@@ -14231,8 +14231,8 @@ const Ac = ({
|
|
|
14231
14231
|
rootMargin: `-${n}px 0px -50% 0px`,
|
|
14232
14232
|
threshold: 0
|
|
14233
14233
|
}
|
|
14234
|
-
), N.forEach((
|
|
14235
|
-
m.current?.observe(
|
|
14234
|
+
), N.forEach((w) => {
|
|
14235
|
+
m.current?.observe(w);
|
|
14236
14236
|
}), () => {
|
|
14237
14237
|
m.current?.disconnect();
|
|
14238
14238
|
};
|
|
@@ -14240,18 +14240,18 @@ const Ac = ({
|
|
|
14240
14240
|
const y = (p) => {
|
|
14241
14241
|
const b = document.getElementById(p);
|
|
14242
14242
|
if (!b) return;
|
|
14243
|
-
const
|
|
14244
|
-
if (!
|
|
14245
|
-
const
|
|
14246
|
-
s ?
|
|
14247
|
-
top:
|
|
14243
|
+
const x = o ? document.querySelector(o) : window;
|
|
14244
|
+
if (!x) return;
|
|
14245
|
+
const w = b.offsetTop - n;
|
|
14246
|
+
s ? x === window ? window.scrollTo({
|
|
14247
|
+
top: w,
|
|
14248
14248
|
behavior: "smooth"
|
|
14249
|
-
}) :
|
|
14250
|
-
top:
|
|
14249
|
+
}) : x.scrollTo({
|
|
14250
|
+
top: w,
|
|
14251
14251
|
behavior: "smooth"
|
|
14252
|
-
}) :
|
|
14252
|
+
}) : x === window ? window.scrollTo(0, w) : x.scrollTop = w;
|
|
14253
14253
|
}, f = (p, b = 0) => {
|
|
14254
|
-
const
|
|
14254
|
+
const x = h === p.id, N = p.subsections?.some((w) => h === w.id) || !1;
|
|
14255
14255
|
return /* @__PURE__ */ g("div", { children: [
|
|
14256
14256
|
/* @__PURE__ */ a(
|
|
14257
14257
|
"button",
|
|
@@ -14260,14 +14260,14 @@ const Ac = ({
|
|
|
14260
14260
|
className: c(
|
|
14261
14261
|
"w-full text-left px-3 py-1.5 text-sm rounded-md transition-colors",
|
|
14262
14262
|
b === 0 ? "font-medium" : "pl-6 text-sm",
|
|
14263
|
-
|
|
14263
|
+
x ? "text-blue-700 dark:text-blue-300 bg-blue-50 dark:bg-blue-900/30" : N ? "text-gray-700 dark:text-gray-300" : "text-gray-600 dark:text-gray-400 hover:text-gray-900 dark:hover:text-white hover:bg-gray-100 dark:hover:bg-gray-800"
|
|
14264
14264
|
),
|
|
14265
14265
|
style: { paddingLeft: `${b * 0.75 + 0.75}rem` },
|
|
14266
14266
|
children: p.label
|
|
14267
14267
|
}
|
|
14268
14268
|
),
|
|
14269
14269
|
l && p.subsections && p.subsections.length > 0 && /* @__PURE__ */ a("div", { className: "ml-2 border-l-2 border-gray-200 dark:border-gray-700", children: p.subsections.map(
|
|
14270
|
-
(
|
|
14270
|
+
(w) => f(w, b + 1)
|
|
14271
14271
|
) })
|
|
14272
14272
|
] }, p.id);
|
|
14273
14273
|
};
|
|
@@ -14412,11 +14412,11 @@ const Ac = ({
|
|
|
14412
14412
|
required: y = !0,
|
|
14413
14413
|
validate: f
|
|
14414
14414
|
}) => {
|
|
14415
|
-
const [p, b] = T(l), [
|
|
14415
|
+
const [p, b] = T(l), [x, N] = T(null);
|
|
14416
14416
|
P(() => {
|
|
14417
14417
|
t && (b(l), N(null));
|
|
14418
14418
|
}, [t, l]);
|
|
14419
|
-
const
|
|
14419
|
+
const w = async (k) => {
|
|
14420
14420
|
if (k.preventDefault(), N(null), y && !p.trim()) {
|
|
14421
14421
|
N("This field is required");
|
|
14422
14422
|
return;
|
|
@@ -14435,7 +14435,7 @@ const Ac = ({
|
|
|
14435
14435
|
}
|
|
14436
14436
|
}, C = () => {
|
|
14437
14437
|
b(l), N(null), e();
|
|
14438
|
-
},
|
|
14438
|
+
}, v = y ? p.trim().length > 0 : !0;
|
|
14439
14439
|
return /* @__PURE__ */ a(
|
|
14440
14440
|
or,
|
|
14441
14441
|
{
|
|
@@ -14446,7 +14446,7 @@ const Ac = ({
|
|
|
14446
14446
|
"aria-describedby": "text-input-modal-description",
|
|
14447
14447
|
closeOnEscape: !d,
|
|
14448
14448
|
closeOnOverlayClick: !d,
|
|
14449
|
-
children: /* @__PURE__ */ g("form", { onSubmit:
|
|
14449
|
+
children: /* @__PURE__ */ g("form", { onSubmit: w, children: [
|
|
14450
14450
|
/* @__PURE__ */ g(sr, { variant: "padded", children: [
|
|
14451
14451
|
/* @__PURE__ */ a("h3", { id: "text-input-modal-title", className: L.heading.h4(), children: n }),
|
|
14452
14452
|
/* @__PURE__ */ a(
|
|
@@ -14467,17 +14467,17 @@ const Ac = ({
|
|
|
14467
14467
|
maxLength: h,
|
|
14468
14468
|
disabled: d,
|
|
14469
14469
|
autoFocus: !0,
|
|
14470
|
-
"aria-invalid": !!
|
|
14471
|
-
"aria-describedby":
|
|
14470
|
+
"aria-invalid": !!x,
|
|
14471
|
+
"aria-describedby": x ? "text-input-error" : void 0
|
|
14472
14472
|
}
|
|
14473
14473
|
),
|
|
14474
|
-
|
|
14474
|
+
x && /* @__PURE__ */ a(
|
|
14475
14475
|
"p",
|
|
14476
14476
|
{
|
|
14477
14477
|
id: "text-input-error",
|
|
14478
14478
|
className: `${L.body.sm()} text-red-600 dark:text-red-400 mt-2`,
|
|
14479
14479
|
role: "alert",
|
|
14480
|
-
children:
|
|
14480
|
+
children: x
|
|
14481
14481
|
}
|
|
14482
14482
|
)
|
|
14483
14483
|
] }),
|
|
@@ -14497,7 +14497,7 @@ const Ac = ({
|
|
|
14497
14497
|
{
|
|
14498
14498
|
type: "submit",
|
|
14499
14499
|
variant: "default",
|
|
14500
|
-
disabled: !
|
|
14500
|
+
disabled: !v || d,
|
|
14501
14501
|
children: d ? m : u
|
|
14502
14502
|
}
|
|
14503
14503
|
)
|
|
@@ -14523,36 +14523,36 @@ const Ac = ({
|
|
|
14523
14523
|
void 0
|
|
14524
14524
|
), b = j(
|
|
14525
14525
|
void 0
|
|
14526
|
-
),
|
|
14527
|
-
l ||
|
|
14526
|
+
), x = j(null), N = j(null), w = m !== void 0, C = w ? m : y, v = F(() => {
|
|
14527
|
+
l || w || (b.current && (clearTimeout(b.current), b.current = void 0), n > 0 ? p.current = setTimeout(() => {
|
|
14528
14528
|
f(!0), h?.(!0);
|
|
14529
14529
|
}, n) : (f(!0), h?.(!0)));
|
|
14530
|
-
}, [l,
|
|
14531
|
-
|
|
14530
|
+
}, [l, w, n, h]), k = F(() => {
|
|
14531
|
+
w || (p.current && (clearTimeout(p.current), p.current = void 0), o > 0 ? b.current = setTimeout(() => {
|
|
14532
14532
|
f(!1), h?.(!1);
|
|
14533
14533
|
}, o) : (f(!1), h?.(!1)));
|
|
14534
|
-
}, [
|
|
14534
|
+
}, [w, o, h]);
|
|
14535
14535
|
P(() => () => {
|
|
14536
14536
|
p.current && clearTimeout(p.current), b.current && clearTimeout(b.current);
|
|
14537
14537
|
}, []), P(() => {
|
|
14538
14538
|
if (d !== "click" || !C) return;
|
|
14539
14539
|
const Y = (X) => {
|
|
14540
|
-
|
|
14540
|
+
x.current && !x.current.contains(X.target) && N.current && !N.current.contains(X.target) && k();
|
|
14541
14541
|
};
|
|
14542
14542
|
return document.addEventListener("mousedown", Y), () => {
|
|
14543
14543
|
document.removeEventListener("mousedown", Y);
|
|
14544
14544
|
};
|
|
14545
14545
|
}, [d, C, k]);
|
|
14546
14546
|
const $ = () => {
|
|
14547
|
-
d === "hover" &&
|
|
14547
|
+
d === "hover" && v();
|
|
14548
14548
|
}, E = () => {
|
|
14549
14549
|
d === "hover" && k();
|
|
14550
14550
|
}, I = () => {
|
|
14551
|
-
d === "hover" &&
|
|
14551
|
+
d === "hover" && v();
|
|
14552
14552
|
}, M = () => {
|
|
14553
14553
|
d === "hover" && k();
|
|
14554
14554
|
}, U = () => {
|
|
14555
|
-
d === "click" && !
|
|
14555
|
+
d === "click" && !w && (C ? (f(!1), h?.(!1)) : (f(!0), h?.(!0)));
|
|
14556
14556
|
}, z = {
|
|
14557
14557
|
top: "bottom-full left-1/2 -translate-x-1/2 -translate-y-2",
|
|
14558
14558
|
bottom: "top-full left-1/2 -translate-x-1/2 translate-y-2",
|
|
@@ -14616,7 +14616,7 @@ const Ac = ({
|
|
|
14616
14616
|
C && !l && /* @__PURE__ */ g(
|
|
14617
14617
|
"div",
|
|
14618
14618
|
{
|
|
14619
|
-
ref:
|
|
14619
|
+
ref: x,
|
|
14620
14620
|
className: c(
|
|
14621
14621
|
"absolute z-50 px-2 py-1 text-xs font-medium rounded whitespace-nowrap pointer-events-none",
|
|
14622
14622
|
W.shadow.lg,
|
|
@@ -14731,27 +14731,27 @@ const Ac = ({
|
|
|
14731
14731
|
const [l, i] = T(!1), [u, d] = T({ top: 0, left: 0 }), m = j(null), h = j(null), y = j(void 0), f = j(void 0);
|
|
14732
14732
|
P(() => {
|
|
14733
14733
|
if (!l || !m.current) return;
|
|
14734
|
-
const
|
|
14735
|
-
const C = m.current.getBoundingClientRect(),
|
|
14734
|
+
const w = () => {
|
|
14735
|
+
const C = m.current.getBoundingClientRect(), v = 8;
|
|
14736
14736
|
let k = 0, $ = 0;
|
|
14737
14737
|
switch (r) {
|
|
14738
14738
|
case "top":
|
|
14739
|
-
k = C.top -
|
|
14739
|
+
k = C.top - v, $ = C.left + C.width / 2;
|
|
14740
14740
|
break;
|
|
14741
14741
|
case "bottom":
|
|
14742
|
-
k = C.bottom +
|
|
14742
|
+
k = C.bottom + v, $ = C.left + C.width / 2;
|
|
14743
14743
|
break;
|
|
14744
14744
|
case "left":
|
|
14745
|
-
k = C.top + C.height / 2, $ = C.left -
|
|
14745
|
+
k = C.top + C.height / 2, $ = C.left - v;
|
|
14746
14746
|
break;
|
|
14747
14747
|
case "right":
|
|
14748
|
-
k = C.top + C.height / 2, $ = C.right +
|
|
14748
|
+
k = C.top + C.height / 2, $ = C.right + v;
|
|
14749
14749
|
break;
|
|
14750
14750
|
}
|
|
14751
14751
|
d({ top: k, left: $ });
|
|
14752
14752
|
};
|
|
14753
|
-
return
|
|
14754
|
-
window.removeEventListener("scroll",
|
|
14753
|
+
return w(), window.addEventListener("scroll", w), window.addEventListener("resize", w), () => {
|
|
14754
|
+
window.removeEventListener("scroll", w), window.removeEventListener("resize", w);
|
|
14755
14755
|
};
|
|
14756
14756
|
}, [l, r]);
|
|
14757
14757
|
const p = () => {
|
|
@@ -14762,7 +14762,7 @@ const Ac = ({
|
|
|
14762
14762
|
y.current && clearTimeout(y.current), f.current = setTimeout(() => {
|
|
14763
14763
|
i(!1);
|
|
14764
14764
|
}, o);
|
|
14765
|
-
},
|
|
14765
|
+
}, x = {
|
|
14766
14766
|
top: "origin-bottom",
|
|
14767
14767
|
bottom: "origin-top",
|
|
14768
14768
|
left: "origin-right",
|
|
@@ -14795,7 +14795,7 @@ const Ac = ({
|
|
|
14795
14795
|
`${W.radius.lg} ${W.shadow.lg}`,
|
|
14796
14796
|
A.transition.all,
|
|
14797
14797
|
"animate-in fade-in zoom-in-95",
|
|
14798
|
-
|
|
14798
|
+
x[r],
|
|
14799
14799
|
N[r],
|
|
14800
14800
|
s
|
|
14801
14801
|
),
|
|
@@ -14822,10 +14822,10 @@ const Ac = ({
|
|
|
14822
14822
|
className: i
|
|
14823
14823
|
}) => {
|
|
14824
14824
|
const [u, d] = T(!1), [m, h] = T(0), y = (N) => {
|
|
14825
|
-
N.preventDefault(), N.stopPropagation(), !l && (h((
|
|
14825
|
+
N.preventDefault(), N.stopPropagation(), !l && (h((w) => w + 1), N.dataTransfer.items && N.dataTransfer.items.length > 0 && d(!0));
|
|
14826
14826
|
}, f = (N) => {
|
|
14827
|
-
N.preventDefault(), N.stopPropagation(), !l && h((
|
|
14828
|
-
const C =
|
|
14827
|
+
N.preventDefault(), N.stopPropagation(), !l && h((w) => {
|
|
14828
|
+
const C = w - 1;
|
|
14829
14829
|
return C === 0 && d(!1), C;
|
|
14830
14830
|
});
|
|
14831
14831
|
}, p = (N) => {
|
|
@@ -14834,25 +14834,25 @@ const Ac = ({
|
|
|
14834
14834
|
if (N.preventDefault(), N.stopPropagation(), l) return;
|
|
14835
14835
|
if (d(!1), h(0), N.dataTransfer.files && N.dataTransfer.files.length > 0) {
|
|
14836
14836
|
const C = Array.from(N.dataTransfer.files);
|
|
14837
|
-
let
|
|
14838
|
-
n && n.length > 0 && (
|
|
14837
|
+
let v = C;
|
|
14838
|
+
n && n.length > 0 && (v = C.filter((k) => n.some(($) => {
|
|
14839
14839
|
if ($.endsWith("/*")) {
|
|
14840
14840
|
const E = $.split("/")[0];
|
|
14841
14841
|
return k.type.startsWith(E);
|
|
14842
14842
|
}
|
|
14843
14843
|
return k.type === $;
|
|
14844
|
-
}))), e(
|
|
14844
|
+
}))), e(v);
|
|
14845
14845
|
return;
|
|
14846
14846
|
}
|
|
14847
|
-
const
|
|
14848
|
-
if (
|
|
14847
|
+
const w = N.dataTransfer.getData("text/plain");
|
|
14848
|
+
if (w)
|
|
14849
14849
|
try {
|
|
14850
|
-
const C = JSON.parse(
|
|
14850
|
+
const C = JSON.parse(w);
|
|
14851
14851
|
e(C);
|
|
14852
14852
|
} catch {
|
|
14853
|
-
e(
|
|
14853
|
+
e(w);
|
|
14854
14854
|
}
|
|
14855
|
-
},
|
|
14855
|
+
}, x = /* @__PURE__ */ g("div", { className: "absolute inset-0 flex flex-col items-center justify-center bg-blue-50 dark:bg-blue-900/30 border-2 border-dashed border-blue-500 dark:border-blue-400 rounded-lg z-10", children: [
|
|
14856
14856
|
/* @__PURE__ */ a(
|
|
14857
14857
|
"svg",
|
|
14858
14858
|
{
|
|
@@ -14887,7 +14887,7 @@ const Ac = ({
|
|
|
14887
14887
|
),
|
|
14888
14888
|
children: [
|
|
14889
14889
|
t,
|
|
14890
|
-
o && u && !l && (s ||
|
|
14890
|
+
o && u && !l && (s || x)
|
|
14891
14891
|
]
|
|
14892
14892
|
}
|
|
14893
14893
|
);
|
|
@@ -15100,9 +15100,9 @@ const Ac = ({
|
|
|
15100
15100
|
maxPullDistance: i = 120,
|
|
15101
15101
|
className: u = ""
|
|
15102
15102
|
}) => {
|
|
15103
|
-
const [d, m] = T(0), [h, y] = T(!1), [f, p] = T(!1), b = j(0),
|
|
15103
|
+
const [d, m] = T(0), [h, y] = T(!1), [f, p] = T(!1), b = j(0), x = j(null);
|
|
15104
15104
|
P(() => {
|
|
15105
|
-
const k =
|
|
15105
|
+
const k = x.current;
|
|
15106
15106
|
if (!k) return;
|
|
15107
15107
|
const $ = (M) => {
|
|
15108
15108
|
if (r || h) return;
|
|
@@ -15146,11 +15146,11 @@ const Ac = ({
|
|
|
15146
15146
|
i,
|
|
15147
15147
|
e
|
|
15148
15148
|
]);
|
|
15149
|
-
const N = Math.min(d / l, 1),
|
|
15149
|
+
const N = Math.min(d / l, 1), w = f || h, C = f ? d : h ? l : 0, v = () => h ? n : d >= l ? s : o;
|
|
15150
15150
|
return /* @__PURE__ */ g(
|
|
15151
15151
|
"div",
|
|
15152
15152
|
{
|
|
15153
|
-
ref:
|
|
15153
|
+
ref: x,
|
|
15154
15154
|
className: `relative ${u}`,
|
|
15155
15155
|
style: {
|
|
15156
15156
|
height: "100%",
|
|
@@ -15166,7 +15166,7 @@ const Ac = ({
|
|
|
15166
15166
|
style: {
|
|
15167
15167
|
height: `${C}px`,
|
|
15168
15168
|
marginTop: f ? 0 : `-${C}px`,
|
|
15169
|
-
opacity:
|
|
15169
|
+
opacity: w ? 1 : 0,
|
|
15170
15170
|
pointerEvents: "none"
|
|
15171
15171
|
},
|
|
15172
15172
|
children: /* @__PURE__ */ g("div", { className: "flex flex-col items-center justify-center gap-2", children: [
|
|
@@ -15179,7 +15179,7 @@ const Ac = ({
|
|
|
15179
15179
|
}
|
|
15180
15180
|
}
|
|
15181
15181
|
),
|
|
15182
|
-
d > 20 && /* @__PURE__ */ a("span", { className: "text-xs font-medium text-blue-600 dark:text-blue-400", children:
|
|
15182
|
+
d > 20 && /* @__PURE__ */ a("span", { className: "text-xs font-medium text-blue-600 dark:text-blue-400", children: v() })
|
|
15183
15183
|
] })
|
|
15184
15184
|
}
|
|
15185
15185
|
),
|
|
@@ -15217,15 +15217,15 @@ const Ac = ({
|
|
|
15217
15217
|
}) => {
|
|
15218
15218
|
const [e, r] = T(!1), [n, o] = T(""), [s, l] = T(!1), [i, u] = T(!1), [d, m] = T(!1);
|
|
15219
15219
|
B.useEffect(() => {
|
|
15220
|
-
const
|
|
15221
|
-
|
|
15220
|
+
const w = t.onBeforeShare;
|
|
15221
|
+
w && !n && (async () => {
|
|
15222
15222
|
l(!0);
|
|
15223
15223
|
try {
|
|
15224
|
-
const
|
|
15224
|
+
const v = typeof window < "u" ? window.location.href : "", k = await w(v);
|
|
15225
15225
|
o(k);
|
|
15226
15226
|
} catch {
|
|
15227
|
-
const
|
|
15228
|
-
o(
|
|
15227
|
+
const v = typeof window < "u" ? window.location.href : "";
|
|
15228
|
+
o(v);
|
|
15229
15229
|
} finally {
|
|
15230
15230
|
l(!1);
|
|
15231
15231
|
}
|
|
@@ -15240,8 +15240,8 @@ const Ac = ({
|
|
|
15240
15240
|
text: t.description,
|
|
15241
15241
|
url: h
|
|
15242
15242
|
}), r(!1);
|
|
15243
|
-
} catch (
|
|
15244
|
-
|
|
15243
|
+
} catch (w) {
|
|
15244
|
+
w instanceof Error && w.name !== "AbortError" && (console.error("Share failed:", w), w.name !== "InvalidStateError" && r(!0));
|
|
15245
15245
|
} finally {
|
|
15246
15246
|
m(!1);
|
|
15247
15247
|
}
|
|
@@ -15255,9 +15255,9 @@ const Ac = ({
|
|
|
15255
15255
|
}
|
|
15256
15256
|
}, b = () => {
|
|
15257
15257
|
r(!e);
|
|
15258
|
-
},
|
|
15258
|
+
}, x = (w) => {
|
|
15259
15259
|
window.open(
|
|
15260
|
-
|
|
15260
|
+
w,
|
|
15261
15261
|
"_blank",
|
|
15262
15262
|
"noopener,noreferrer,width=600,height=400"
|
|
15263
15263
|
), r(!1);
|
|
@@ -15366,26 +15366,26 @@ const Ac = ({
|
|
|
15366
15366
|
{
|
|
15367
15367
|
className: `absolute right-0 top-10 z-[999999] w-40 ${A.background.surface} rounded-lg shadow-xl border ${A.border.default} py-1`,
|
|
15368
15368
|
children: [
|
|
15369
|
-
N.map((
|
|
15369
|
+
N.map((w) => /* @__PURE__ */ g(
|
|
15370
15370
|
"button",
|
|
15371
15371
|
{
|
|
15372
|
-
onClick: () =>
|
|
15372
|
+
onClick: () => x(w.url),
|
|
15373
15373
|
className: "w-full flex items-center px-3 py-1.5 hover:bg-gray-50 dark:hover:bg-gray-700 cursor-pointer transition-colors",
|
|
15374
15374
|
children: [
|
|
15375
15375
|
/* @__PURE__ */ a(
|
|
15376
15376
|
"svg",
|
|
15377
15377
|
{
|
|
15378
|
-
className: `w-4 h-4 mr-2 ${
|
|
15378
|
+
className: `w-4 h-4 mr-2 ${w.color}`,
|
|
15379
15379
|
fill: "currentColor",
|
|
15380
15380
|
viewBox: "0 0 24 24",
|
|
15381
15381
|
xmlns: "http://www.w3.org/2000/svg",
|
|
15382
|
-
children:
|
|
15382
|
+
children: w.svg
|
|
15383
15383
|
}
|
|
15384
15384
|
),
|
|
15385
|
-
/* @__PURE__ */ a("span", { className: L.body.sm(), children:
|
|
15385
|
+
/* @__PURE__ */ a("span", { className: L.body.sm(), children: w.name })
|
|
15386
15386
|
]
|
|
15387
15387
|
},
|
|
15388
|
-
|
|
15388
|
+
w.name
|
|
15389
15389
|
)),
|
|
15390
15390
|
/* @__PURE__ */ a("div", { className: `border-t ${A.border.default} my-1` }),
|
|
15391
15391
|
y && /* @__PURE__ */ g(
|
|
@@ -15571,7 +15571,7 @@ const Ac = ({
|
|
|
15571
15571
|
default:
|
|
15572
15572
|
return "text";
|
|
15573
15573
|
}
|
|
15574
|
-
})(t) : "text"),
|
|
15574
|
+
})(t) : "text"), x = async () => {
|
|
15575
15575
|
if (f)
|
|
15576
15576
|
try {
|
|
15577
15577
|
await navigator.clipboard.writeText(f), y(!0), setTimeout(() => y(!1), 2e3);
|
|
@@ -15604,7 +15604,7 @@ const Ac = ({
|
|
|
15604
15604
|
s && /* @__PURE__ */ a(
|
|
15605
15605
|
"button",
|
|
15606
15606
|
{
|
|
15607
|
-
onClick:
|
|
15607
|
+
onClick: x,
|
|
15608
15608
|
className: `p-2 text-gray-400 hover:text-green-400 hover:bg-gray-800 ${W.radius.lg} ${A.transition.all} group`,
|
|
15609
15609
|
title: i("copyCode", "Copy code"),
|
|
15610
15610
|
children: h ? /* @__PURE__ */ a(Wr, { className: "h-4 w-4 text-green-400" }) : /* @__PURE__ */ a(Or, { className: "h-4 w-4 group-hover:scale-110 transition-transform" })
|
|
@@ -15741,8 +15741,8 @@ const Ac = ({
|
|
|
15741
15741
|
)
|
|
15742
15742
|
}
|
|
15743
15743
|
), m = () => n === "arrow" || n === "both" ? /* @__PURE__ */ a(Ht, { className: "h-4 w-4 ml-2" }) : null, h = () => o === "prominent" ? "border-b-2 border-green-200 dark:border-green-700" : "border-b border-green-200 dark:border-green-700", y = () => {
|
|
15744
|
-
const
|
|
15745
|
-
return o === "prominent" ? `${
|
|
15744
|
+
const x = `bg-gradient-to-r from-green-600 to-blue-600 hover:from-green-700 hover:to-blue-700 text-white ${W.radius.lg} font-bold ${A.transition.slow} transform hover:scale-105 ${W.shadow.lg} hover:shadow-green-500/25 inline-flex items-center whitespace-nowrap cursor-pointer`;
|
|
15745
|
+
return o === "prominent" ? `${x} px-8 py-3 text-base` : `${x} px-6 py-2 text-sm`;
|
|
15746
15746
|
}, f = () => o === "prominent" ? "text-green-800 dark:text-green-200 font-semibold text-lg" : "text-green-800 dark:text-green-200 font-semibold", p = o === "prominent" ? l : s, { containerClass: b } = ge();
|
|
15747
15747
|
return /* @__PURE__ */ a(
|
|
15748
15748
|
"div",
|
|
@@ -16256,8 +16256,8 @@ const mu = ({ children: t }) => /* @__PURE__ */ a(H, { children: t }), hu = ({
|
|
|
16256
16256
|
return;
|
|
16257
16257
|
}
|
|
16258
16258
|
return b.current = new IntersectionObserver(
|
|
16259
|
-
(
|
|
16260
|
-
|
|
16259
|
+
(w) => {
|
|
16260
|
+
w.forEach((C) => {
|
|
16261
16261
|
C.isIntersecting && (h(!0), b.current && p.current && b.current.unobserve(p.current));
|
|
16262
16262
|
});
|
|
16263
16263
|
},
|
|
@@ -16270,7 +16270,7 @@ const mu = ({ children: t }) => /* @__PURE__ */ a(H, { children: t }), hu = ({
|
|
|
16270
16270
|
b.current && b.current.disconnect();
|
|
16271
16271
|
};
|
|
16272
16272
|
}, [s]);
|
|
16273
|
-
const
|
|
16273
|
+
const x = () => {
|
|
16274
16274
|
d(!0);
|
|
16275
16275
|
}, N = () => {
|
|
16276
16276
|
f(!0);
|
|
@@ -16303,7 +16303,7 @@ const mu = ({ children: t }) => /* @__PURE__ */ a(H, { children: t }), hu = ({
|
|
|
16303
16303
|
ref: p,
|
|
16304
16304
|
src: t,
|
|
16305
16305
|
alt: e,
|
|
16306
|
-
onLoad:
|
|
16306
|
+
onLoad: x,
|
|
16307
16307
|
onError: N,
|
|
16308
16308
|
className: `absolute inset-0 w-full h-full object-cover transition-opacity duration-500 ${u ? "opacity-100" : "opacity-0"}`,
|
|
16309
16309
|
loading: s ? "eager" : "lazy",
|
|
@@ -16584,9 +16584,9 @@ function Mu({
|
|
|
16584
16584
|
).matches ? te.DARK : te.LIGHT), m(b), p.classList.remove("light", "dark"), p.classList.add(b), p.classList.remove("font-small", "font-medium", "font-large"), p.classList.add(`font-${i}`);
|
|
16585
16585
|
}, [s, i]), P(() => {
|
|
16586
16586
|
if (s === te.SYSTEM) {
|
|
16587
|
-
const p = window.matchMedia("(prefers-color-scheme: dark)"), b = (
|
|
16588
|
-
const N = document.documentElement,
|
|
16589
|
-
m(
|
|
16587
|
+
const p = window.matchMedia("(prefers-color-scheme: dark)"), b = (x) => {
|
|
16588
|
+
const N = document.documentElement, w = x.matches ? te.DARK : te.LIGHT;
|
|
16589
|
+
m(w), N.classList.remove("light", "dark"), N.classList.add(w);
|
|
16590
16590
|
};
|
|
16591
16591
|
return p.addEventListener("change", b), () => {
|
|
16592
16592
|
p.removeEventListener("change", b);
|
|
@@ -16653,7 +16653,7 @@ const Iu = ({
|
|
|
16653
16653
|
emerald: "bg-emerald-100 dark:bg-emerald-900/20",
|
|
16654
16654
|
pink: "bg-pink-100 dark:bg-pink-900/20",
|
|
16655
16655
|
gray: "bg-gray-100 dark:bg-gray-900/20"
|
|
16656
|
-
},
|
|
16656
|
+
}, x = f[s], N = typeof t == "string", w = () => /* @__PURE__ */ g(H, { children: [
|
|
16657
16657
|
N ? (
|
|
16658
16658
|
// Emoji or text icon
|
|
16659
16659
|
/* @__PURE__ */ a("div", { className: "text-4xl mb-4", children: t })
|
|
@@ -16668,14 +16668,14 @@ const Iu = ({
|
|
|
16668
16668
|
"flex items-center justify-center",
|
|
16669
16669
|
"mb-4",
|
|
16670
16670
|
b[s],
|
|
16671
|
-
|
|
16671
|
+
x
|
|
16672
16672
|
),
|
|
16673
16673
|
children: t
|
|
16674
16674
|
}
|
|
16675
16675
|
)
|
|
16676
16676
|
) : (
|
|
16677
16677
|
// Regular icon
|
|
16678
|
-
/* @__PURE__ */ a("div", { className: c("flex-shrink-0 mb-4",
|
|
16678
|
+
/* @__PURE__ */ a("div", { className: c("flex-shrink-0 mb-4", x), children: t })
|
|
16679
16679
|
),
|
|
16680
16680
|
/* @__PURE__ */ g("div", { className: "flex-1", children: [
|
|
16681
16681
|
/* @__PURE__ */ a("h3", { className: c(L.heading.h5(), "mb-3"), children: e }),
|
|
@@ -16701,7 +16701,7 @@ const Iu = ({
|
|
|
16701
16701
|
A.background.subtle
|
|
16702
16702
|
),
|
|
16703
16703
|
children: [
|
|
16704
|
-
/* @__PURE__ */ a("div", { className: c("text-lg font-bold",
|
|
16704
|
+
/* @__PURE__ */ a("div", { className: c("text-lg font-bold", x), children: $ }),
|
|
16705
16705
|
/* @__PURE__ */ a("div", { className: c(L.caption.default(), "mt-1"), children: k })
|
|
16706
16706
|
]
|
|
16707
16707
|
},
|
|
@@ -16722,7 +16722,7 @@ const Iu = ({
|
|
|
16722
16722
|
"border"
|
|
16723
16723
|
),
|
|
16724
16724
|
y
|
|
16725
|
-
),
|
|
16725
|
+
), v = (k) => {
|
|
16726
16726
|
d && ("key" in k ? (k.key === "Enter" || k.key === " ") && (k.preventDefault(), d()) : d());
|
|
16727
16727
|
};
|
|
16728
16728
|
return i ? /* @__PURE__ */ a(
|
|
@@ -16731,22 +16731,22 @@ const Iu = ({
|
|
|
16731
16731
|
href: i,
|
|
16732
16732
|
className: c(C, "block group"),
|
|
16733
16733
|
onClick: d ? (k) => {
|
|
16734
|
-
k.preventDefault(),
|
|
16734
|
+
k.preventDefault(), v(k);
|
|
16735
16735
|
} : void 0,
|
|
16736
|
-
children: /* @__PURE__ */ a(
|
|
16736
|
+
children: /* @__PURE__ */ a(w, {})
|
|
16737
16737
|
}
|
|
16738
16738
|
) : d ? /* @__PURE__ */ a(
|
|
16739
16739
|
"div",
|
|
16740
16740
|
{
|
|
16741
16741
|
className: C,
|
|
16742
|
-
onClick:
|
|
16743
|
-
onKeyDown:
|
|
16742
|
+
onClick: v,
|
|
16743
|
+
onKeyDown: v,
|
|
16744
16744
|
role: "button",
|
|
16745
16745
|
tabIndex: 0,
|
|
16746
16746
|
"aria-label": e,
|
|
16747
|
-
children: /* @__PURE__ */ a(
|
|
16747
|
+
children: /* @__PURE__ */ a(w, {})
|
|
16748
16748
|
}
|
|
16749
|
-
) : /* @__PURE__ */ a("div", { className: C, children: /* @__PURE__ */ a(
|
|
16749
|
+
) : /* @__PURE__ */ a("div", { className: C, children: /* @__PURE__ */ a(w, {}) });
|
|
16750
16750
|
}, Nn = Z("grid gap-8", {
|
|
16751
16751
|
variants: {
|
|
16752
16752
|
columns: {
|
|
@@ -16834,13 +16834,13 @@ const Iu = ({
|
|
|
16834
16834
|
onFeatureClick: p,
|
|
16835
16835
|
defaultLinkText: b = "Learn more"
|
|
16836
16836
|
}) => {
|
|
16837
|
-
const
|
|
16838
|
-
if (i === "colorful" &&
|
|
16837
|
+
const x = (w, C) => {
|
|
16838
|
+
if (i === "colorful" && w.gradient)
|
|
16839
16839
|
return {
|
|
16840
|
-
background: `linear-gradient(135deg, ${
|
|
16840
|
+
background: `linear-gradient(135deg, ${w.gradient.from}, ${w.gradient.to})`
|
|
16841
16841
|
};
|
|
16842
16842
|
if (i === "colorful") {
|
|
16843
|
-
const
|
|
16843
|
+
const v = [
|
|
16844
16844
|
{ from: "#3B82F6", to: "#1D4ED8" },
|
|
16845
16845
|
// blue
|
|
16846
16846
|
{ from: "#10B981", to: "#059669" },
|
|
@@ -16853,30 +16853,30 @@ const Iu = ({
|
|
|
16853
16853
|
// red
|
|
16854
16854
|
{ from: "#06B6D4", to: "#0891B2" }
|
|
16855
16855
|
// cyan
|
|
16856
|
-
], k =
|
|
16856
|
+
], k = v[C % v.length];
|
|
16857
16857
|
return {
|
|
16858
16858
|
background: `linear-gradient(135deg, ${k.from}, ${k.to})`
|
|
16859
16859
|
};
|
|
16860
16860
|
}
|
|
16861
|
-
}, N = (
|
|
16862
|
-
const
|
|
16861
|
+
}, N = (w, C) => {
|
|
16862
|
+
const v = /* @__PURE__ */ g(
|
|
16863
16863
|
"div",
|
|
16864
16864
|
{
|
|
16865
16865
|
className: c(
|
|
16866
16866
|
Cn({ variant: o, animation: s })
|
|
16867
16867
|
),
|
|
16868
|
-
onClick: () => p?.(
|
|
16868
|
+
onClick: () => p?.(w),
|
|
16869
16869
|
role: p ? "button" : void 0,
|
|
16870
16870
|
tabIndex: p ? 0 : void 0,
|
|
16871
16871
|
children: [
|
|
16872
|
-
|
|
16872
|
+
w.badge && /* @__PURE__ */ a("div", { className: "mb-4", children: /* @__PURE__ */ a(
|
|
16873
16873
|
"span",
|
|
16874
16874
|
{
|
|
16875
16875
|
className: c(
|
|
16876
16876
|
"inline-flex items-center px-2.5 py-0.5 rounded-full text-xs font-medium",
|
|
16877
|
-
Ln[
|
|
16877
|
+
Ln[w.badge.variant || "default"]
|
|
16878
16878
|
),
|
|
16879
|
-
children:
|
|
16879
|
+
children: w.badge.text
|
|
16880
16880
|
}
|
|
16881
16881
|
) }),
|
|
16882
16882
|
/* @__PURE__ */ a(
|
|
@@ -16889,7 +16889,7 @@ const Iu = ({
|
|
|
16889
16889
|
position: u
|
|
16890
16890
|
})
|
|
16891
16891
|
),
|
|
16892
|
-
style:
|
|
16892
|
+
style: x(w, C),
|
|
16893
16893
|
children: /* @__PURE__ */ a(
|
|
16894
16894
|
"div",
|
|
16895
16895
|
{
|
|
@@ -16897,24 +16897,24 @@ const Iu = ({
|
|
|
16897
16897
|
"flex items-center justify-center",
|
|
16898
16898
|
i === "colorful" ? "text-white" : "text-blue-600 dark:text-blue-400"
|
|
16899
16899
|
),
|
|
16900
|
-
children:
|
|
16900
|
+
children: w.icon
|
|
16901
16901
|
}
|
|
16902
16902
|
)
|
|
16903
16903
|
}
|
|
16904
16904
|
),
|
|
16905
|
-
/* @__PURE__ */ a("h3", { className: c(L.heading.h5(), "mb-4", d), children:
|
|
16906
|
-
/* @__PURE__ */ a("div", { className: c(L.body.md(), m), children:
|
|
16907
|
-
|
|
16905
|
+
/* @__PURE__ */ a("h3", { className: c(L.heading.h5(), "mb-4", d), children: w.title }),
|
|
16906
|
+
/* @__PURE__ */ a("div", { className: c(L.body.md(), m), children: w.description }),
|
|
16907
|
+
w.link && /* @__PURE__ */ a("div", { className: "mt-6", children: /* @__PURE__ */ g(
|
|
16908
16908
|
"a",
|
|
16909
16909
|
{
|
|
16910
|
-
href:
|
|
16910
|
+
href: w.link.href,
|
|
16911
16911
|
className: c(
|
|
16912
16912
|
A.text.linkSubtle,
|
|
16913
16913
|
"inline-flex items-center font-medium",
|
|
16914
16914
|
A.transition.default
|
|
16915
16915
|
),
|
|
16916
16916
|
children: [
|
|
16917
|
-
|
|
16917
|
+
w.link.text || b,
|
|
16918
16918
|
/* @__PURE__ */ a(
|
|
16919
16919
|
"svg",
|
|
16920
16920
|
{
|
|
@@ -16939,7 +16939,7 @@ const Iu = ({
|
|
|
16939
16939
|
]
|
|
16940
16940
|
}
|
|
16941
16941
|
);
|
|
16942
|
-
return /* @__PURE__ */ a("div", { children:
|
|
16942
|
+
return /* @__PURE__ */ a("div", { children: v }, w.id || C);
|
|
16943
16943
|
};
|
|
16944
16944
|
return /* @__PURE__ */ a("div", { className: c(Nn({ columns: r, spacing: n }), t), children: e.map(N) });
|
|
16945
16945
|
}, Ut = (t, e, r, n) => ({
|
|
@@ -17003,13 +17003,13 @@ const Iu = ({
|
|
|
17003
17003
|
size: i = "lg"
|
|
17004
17004
|
}) => {
|
|
17005
17005
|
const { paddingClass: u } = ge(), m = (() => {
|
|
17006
|
-
const
|
|
17006
|
+
const x = o.via ? `${o.from}-${o.via}-${o.to}` : `${o.from}-${o.to}`;
|
|
17007
17007
|
return {
|
|
17008
17008
|
"blue-600-purple-600": "bg-gradient-to-r from-blue-600 to-purple-600 dark:from-blue-700 dark:to-purple-700",
|
|
17009
17009
|
"orange-900-red-900": "bg-gradient-to-r from-orange-600 to-red-600 dark:from-orange-700 dark:to-red-700",
|
|
17010
17010
|
"green-600-blue-600": "bg-gradient-to-r from-green-600 to-blue-600 dark:from-green-700 dark:to-blue-700",
|
|
17011
17011
|
"purple-600-pink-600": "bg-gradient-to-r from-purple-600 to-pink-600 dark:from-purple-700 dark:to-pink-700"
|
|
17012
|
-
}[
|
|
17012
|
+
}[x] || "bg-gradient-to-r from-blue-600 to-purple-600 dark:from-blue-700 dark:to-purple-700";
|
|
17013
17013
|
})(), h = s === "light" ? "text-white" : A.text.emphasis, y = {
|
|
17014
17014
|
sm: "py-12",
|
|
17015
17015
|
md: "py-16",
|
|
@@ -17022,17 +17022,17 @@ const Iu = ({
|
|
|
17022
17022
|
sm: "text-base md:text-lg",
|
|
17023
17023
|
md: "text-lg md:text-xl",
|
|
17024
17024
|
lg: "text-xl md:text-2xl"
|
|
17025
|
-
}, b = (
|
|
17025
|
+
}, b = (x, N = !1) => {
|
|
17026
17026
|
const C = /* @__PURE__ */ a(
|
|
17027
17027
|
ie,
|
|
17028
17028
|
{
|
|
17029
|
-
variant:
|
|
17029
|
+
variant: x.variant === "primary" || N ? "gradient" : (x.variant === "secondary", "outline"),
|
|
17030
17030
|
size: "lg",
|
|
17031
17031
|
className: N ? "" : "bg-white/10 hover:bg-white/20 backdrop-blur-sm border-white/30",
|
|
17032
|
-
children:
|
|
17032
|
+
children: x.label
|
|
17033
17033
|
}
|
|
17034
17034
|
);
|
|
17035
|
-
return
|
|
17035
|
+
return x.external ? /* @__PURE__ */ a("a", { href: x.href, target: "_blank", rel: "noopener noreferrer", children: C }) : /* @__PURE__ */ a(Pe, { to: x.href, children: C });
|
|
17036
17036
|
};
|
|
17037
17037
|
return /* @__PURE__ */ g(
|
|
17038
17038
|
"section",
|
|
@@ -17572,19 +17572,19 @@ const Fu = ({
|
|
|
17572
17572
|
masterWidth: f = 320,
|
|
17573
17573
|
stickyMaster: p = !0,
|
|
17574
17574
|
stickyTopOffset: b = 96,
|
|
17575
|
-
desktopGap:
|
|
17575
|
+
desktopGap: x = 32,
|
|
17576
17576
|
showMasterBackground: N = !0,
|
|
17577
|
-
enableAnimations:
|
|
17577
|
+
enableAnimations: w = !0,
|
|
17578
17578
|
animationDuration: C = 300,
|
|
17579
|
-
contentKey:
|
|
17579
|
+
contentKey: v,
|
|
17580
17580
|
animationRef: k
|
|
17581
17581
|
}) => {
|
|
17582
|
-
const { containerClass: $ } = ge(), E = `gap-${Math.round(
|
|
17582
|
+
const { containerClass: $ } = ge(), E = `gap-${Math.round(x / 4)}` || "gap-8", I = (q) => q ? q.split("-")[0].trim() : "Back", M = r ? I(r) : t ? I(t) : "Back", [U, z] = T(!1), [D, V] = T("auto"), R = j(null), _ = j(
|
|
17583
17583
|
null
|
|
17584
17584
|
);
|
|
17585
17585
|
P(() => (k && (k.current = {
|
|
17586
17586
|
triggerTransition: (q) => {
|
|
17587
|
-
if (!
|
|
17587
|
+
if (!w) {
|
|
17588
17588
|
q();
|
|
17589
17589
|
return;
|
|
17590
17590
|
}
|
|
@@ -17605,15 +17605,15 @@ const Fu = ({
|
|
|
17605
17605
|
}
|
|
17606
17606
|
}), () => {
|
|
17607
17607
|
_.current && clearTimeout(_.current);
|
|
17608
|
-
}), [
|
|
17608
|
+
}), [w, C, k]), P(() => {
|
|
17609
17609
|
R.current && (R.current.scrollTop = 0);
|
|
17610
|
-
}, [
|
|
17611
|
-
const Y =
|
|
17610
|
+
}, [v, s]);
|
|
17611
|
+
const Y = w ? {
|
|
17612
17612
|
height: D === "auto" ? "auto" : `${D}px`,
|
|
17613
17613
|
transition: `height ${C}ms cubic-bezier(0.4, 0, 0.2, 1)`,
|
|
17614
17614
|
width: "100%",
|
|
17615
17615
|
maxWidth: "100%"
|
|
17616
|
-
} : { width: "100%", maxWidth: "100%" }, X =
|
|
17616
|
+
} : { width: "100%", maxWidth: "100%" }, X = w ? `${U ? "opacity-0 transform translate-y-2" : "opacity-100 transform translate-y-0"}` : "", re = w ? {
|
|
17617
17617
|
transition: `opacity ${C}ms ease-in-out, transform ${C}ms ease-in-out`
|
|
17618
17618
|
} : {};
|
|
17619
17619
|
return /* @__PURE__ */ g("div", { className: "w-full flex-1 min-h-0 flex flex-col", children: [
|
|
@@ -18000,26 +18000,143 @@ const Fu = ({
|
|
|
18000
18000
|
menuItems: s,
|
|
18001
18001
|
LinkComponent: l
|
|
18002
18002
|
}) => {
|
|
18003
|
-
const { mobileMenuOpen: i, toggleMobileMenu: u, setMobileMenuOpen: d } = br(), [m, h] = T(!1), y = j(null);
|
|
18004
|
-
gt(
|
|
18003
|
+
const { mobileMenuOpen: i, toggleMobileMenu: u, setMobileMenuOpen: d } = br(), [m, h] = T(!1), [y, f] = T(/* @__PURE__ */ new Set()), p = j(null);
|
|
18004
|
+
gt(p, () => {
|
|
18005
18005
|
h(!1);
|
|
18006
18006
|
});
|
|
18007
|
-
const
|
|
18007
|
+
const b = s ? m : i, x = () => {
|
|
18008
18008
|
n ? n() : s ? h(!m) : u();
|
|
18009
|
-
},
|
|
18010
|
-
h(!1), d(!1);
|
|
18009
|
+
}, N = () => {
|
|
18010
|
+
h(!1), d(!1), f(/* @__PURE__ */ new Set());
|
|
18011
|
+
}, w = (v) => {
|
|
18012
|
+
f((k) => {
|
|
18013
|
+
const $ = new Set(k);
|
|
18014
|
+
return $.has(v) ? $.delete(v) : $.add(v), $;
|
|
18015
|
+
});
|
|
18016
|
+
}, C = (v, k = 0) => {
|
|
18017
|
+
const $ = v.icon, E = v.children && v.children.length > 0, I = y.has(v.id), M = /* @__PURE__ */ g(H, { children: [
|
|
18018
|
+
$ && /* @__PURE__ */ a($, { className: "h-5 w-5 mr-3 flex-shrink-0" }),
|
|
18019
|
+
/* @__PURE__ */ a("span", { className: "flex-1", children: v.label })
|
|
18020
|
+
] }), U = c(
|
|
18021
|
+
"flex items-center w-full px-4 py-2.5 text-sm font-medium",
|
|
18022
|
+
S.component.button.ghost.base,
|
|
18023
|
+
S.component.button.ghost.dark,
|
|
18024
|
+
A.transition.fast,
|
|
18025
|
+
v.active && "bg-blue-50 dark:bg-blue-900/20 text-blue-600 dark:text-blue-400",
|
|
18026
|
+
v.disabled && "opacity-50 cursor-not-allowed",
|
|
18027
|
+
k > 0 && "pl-12"
|
|
18028
|
+
);
|
|
18029
|
+
return E ? /* @__PURE__ */ g("div", { children: [
|
|
18030
|
+
/* @__PURE__ */ g("div", { className: "flex items-center", children: [
|
|
18031
|
+
v.href && l ? /* @__PURE__ */ a(
|
|
18032
|
+
l,
|
|
18033
|
+
{
|
|
18034
|
+
href: v.href,
|
|
18035
|
+
className: c(U, "flex-1"),
|
|
18036
|
+
children: /* @__PURE__ */ a(
|
|
18037
|
+
"div",
|
|
18038
|
+
{
|
|
18039
|
+
className: "flex items-center flex-1",
|
|
18040
|
+
onClick: N,
|
|
18041
|
+
children: M
|
|
18042
|
+
}
|
|
18043
|
+
)
|
|
18044
|
+
}
|
|
18045
|
+
) : v.href ? /* @__PURE__ */ a(
|
|
18046
|
+
"a",
|
|
18047
|
+
{
|
|
18048
|
+
href: v.href,
|
|
18049
|
+
role: "menuitem",
|
|
18050
|
+
className: c(U, "flex-1"),
|
|
18051
|
+
onClick: N,
|
|
18052
|
+
children: M
|
|
18053
|
+
}
|
|
18054
|
+
) : /* @__PURE__ */ a(
|
|
18055
|
+
"button",
|
|
18056
|
+
{
|
|
18057
|
+
type: "button",
|
|
18058
|
+
role: "menuitem",
|
|
18059
|
+
className: c(U, "flex-1"),
|
|
18060
|
+
onClick: () => {
|
|
18061
|
+
v.onClick?.(), w(v.id);
|
|
18062
|
+
},
|
|
18063
|
+
disabled: v.disabled,
|
|
18064
|
+
children: M
|
|
18065
|
+
}
|
|
18066
|
+
),
|
|
18067
|
+
/* @__PURE__ */ a(
|
|
18068
|
+
"button",
|
|
18069
|
+
{
|
|
18070
|
+
type: "button",
|
|
18071
|
+
onClick: () => w(v.id),
|
|
18072
|
+
className: c(
|
|
18073
|
+
"p-2.5 mr-2 rounded-md",
|
|
18074
|
+
S.component.button.ghost.base,
|
|
18075
|
+
S.component.button.ghost.dark
|
|
18076
|
+
),
|
|
18077
|
+
"aria-expanded": I,
|
|
18078
|
+
"aria-label": `Expand ${v.label}`,
|
|
18079
|
+
children: /* @__PURE__ */ a(
|
|
18080
|
+
"svg",
|
|
18081
|
+
{
|
|
18082
|
+
className: c(
|
|
18083
|
+
"h-4 w-4 transition-transform duration-200",
|
|
18084
|
+
I && "rotate-180"
|
|
18085
|
+
),
|
|
18086
|
+
fill: "none",
|
|
18087
|
+
viewBox: "0 0 24 24",
|
|
18088
|
+
stroke: "currentColor",
|
|
18089
|
+
children: /* @__PURE__ */ a(
|
|
18090
|
+
"path",
|
|
18091
|
+
{
|
|
18092
|
+
strokeLinecap: "round",
|
|
18093
|
+
strokeLinejoin: "round",
|
|
18094
|
+
strokeWidth: 2,
|
|
18095
|
+
d: "M19 9l-7 7-7-7"
|
|
18096
|
+
}
|
|
18097
|
+
)
|
|
18098
|
+
}
|
|
18099
|
+
)
|
|
18100
|
+
}
|
|
18101
|
+
)
|
|
18102
|
+
] }),
|
|
18103
|
+
I && v.children?.map((z) => C(z, k + 1))
|
|
18104
|
+
] }, v.id) : v.href && l ? /* @__PURE__ */ a(l, { href: v.href, className: U, children: /* @__PURE__ */ a("div", { className: "flex items-center", onClick: N, children: M }) }, v.id) : v.href ? /* @__PURE__ */ a(
|
|
18105
|
+
"a",
|
|
18106
|
+
{
|
|
18107
|
+
href: v.href,
|
|
18108
|
+
role: "menuitem",
|
|
18109
|
+
className: U,
|
|
18110
|
+
onClick: N,
|
|
18111
|
+
children: M
|
|
18112
|
+
},
|
|
18113
|
+
v.id
|
|
18114
|
+
) : /* @__PURE__ */ a(
|
|
18115
|
+
"button",
|
|
18116
|
+
{
|
|
18117
|
+
type: "button",
|
|
18118
|
+
role: "menuitem",
|
|
18119
|
+
className: U,
|
|
18120
|
+
onClick: () => {
|
|
18121
|
+
N(), v.onClick?.();
|
|
18122
|
+
},
|
|
18123
|
+
disabled: v.disabled,
|
|
18124
|
+
children: M
|
|
18125
|
+
},
|
|
18126
|
+
v.id
|
|
18127
|
+
);
|
|
18011
18128
|
};
|
|
18012
18129
|
return /* @__PURE__ */ g(
|
|
18013
18130
|
"div",
|
|
18014
18131
|
{
|
|
18015
18132
|
className: c("relative", Pn[o]),
|
|
18016
|
-
ref:
|
|
18133
|
+
ref: p,
|
|
18017
18134
|
children: [
|
|
18018
18135
|
/* @__PURE__ */ a(
|
|
18019
18136
|
"button",
|
|
18020
18137
|
{
|
|
18021
18138
|
type: "button",
|
|
18022
|
-
onClick:
|
|
18139
|
+
onClick: x,
|
|
18023
18140
|
className: c(
|
|
18024
18141
|
// Base styles
|
|
18025
18142
|
"p-2 rounded-lg",
|
|
@@ -18030,10 +18147,10 @@ const Fu = ({
|
|
|
18030
18147
|
r
|
|
18031
18148
|
),
|
|
18032
18149
|
"aria-label": e,
|
|
18033
|
-
"aria-expanded":
|
|
18150
|
+
"aria-expanded": b,
|
|
18034
18151
|
"aria-haspopup": s ? "menu" : void 0,
|
|
18035
18152
|
"aria-controls": s ? "topbar-dropdown-menu" : "mobile-menu",
|
|
18036
|
-
children: t ? /* @__PURE__ */ a(t, { className: "h-6 w-6" }) : /* @__PURE__ */ a(Dn, { className: "h-6 w-6", isOpen:
|
|
18153
|
+
children: t ? /* @__PURE__ */ a(t, { className: "h-6 w-6" }) : /* @__PURE__ */ a(Dn, { className: "h-6 w-6", isOpen: b })
|
|
18037
18154
|
}
|
|
18038
18155
|
),
|
|
18039
18156
|
s && m && /* @__PURE__ */ a(
|
|
@@ -18043,58 +18160,14 @@ const Fu = ({
|
|
|
18043
18160
|
role: "menu",
|
|
18044
18161
|
className: c(
|
|
18045
18162
|
"absolute left-0 top-full mt-2",
|
|
18046
|
-
"min-w-[
|
|
18163
|
+
"min-w-[240px] py-2 rounded-lg",
|
|
18047
18164
|
S.component.card.default.base,
|
|
18048
18165
|
S.component.card.default.dark,
|
|
18049
18166
|
"border",
|
|
18050
18167
|
"shadow-lg",
|
|
18051
18168
|
"z-50"
|
|
18052
18169
|
),
|
|
18053
|
-
children: s.map((v) =>
|
|
18054
|
-
const N = v.icon, x = /* @__PURE__ */ g(H, { children: [
|
|
18055
|
-
N && /* @__PURE__ */ a(N, { className: "h-5 w-5 mr-3 flex-shrink-0" }),
|
|
18056
|
-
/* @__PURE__ */ a("span", { children: v.label })
|
|
18057
|
-
] }), C = c(
|
|
18058
|
-
"flex items-center w-full px-4 py-2.5 text-sm font-medium",
|
|
18059
|
-
S.component.button.ghost.base,
|
|
18060
|
-
S.component.button.ghost.dark,
|
|
18061
|
-
A.transition.fast,
|
|
18062
|
-
v.active && "bg-blue-50 dark:bg-blue-900/20 text-blue-600 dark:text-blue-400",
|
|
18063
|
-
v.disabled && "opacity-50 cursor-not-allowed"
|
|
18064
|
-
);
|
|
18065
|
-
return v.href && l ? /* @__PURE__ */ a(
|
|
18066
|
-
l,
|
|
18067
|
-
{
|
|
18068
|
-
href: v.href,
|
|
18069
|
-
className: C,
|
|
18070
|
-
children: /* @__PURE__ */ a("div", { className: "flex items-center", onClick: b, children: x })
|
|
18071
|
-
},
|
|
18072
|
-
v.id
|
|
18073
|
-
) : v.href ? /* @__PURE__ */ a(
|
|
18074
|
-
"a",
|
|
18075
|
-
{
|
|
18076
|
-
href: v.href,
|
|
18077
|
-
role: "menuitem",
|
|
18078
|
-
className: C,
|
|
18079
|
-
onClick: b,
|
|
18080
|
-
children: x
|
|
18081
|
-
},
|
|
18082
|
-
v.id
|
|
18083
|
-
) : /* @__PURE__ */ a(
|
|
18084
|
-
"button",
|
|
18085
|
-
{
|
|
18086
|
-
type: "button",
|
|
18087
|
-
role: "menuitem",
|
|
18088
|
-
className: C,
|
|
18089
|
-
onClick: () => {
|
|
18090
|
-
b(), v.onClick?.();
|
|
18091
|
-
},
|
|
18092
|
-
disabled: v.disabled,
|
|
18093
|
-
children: x
|
|
18094
|
-
},
|
|
18095
|
-
v.id
|
|
18096
|
-
);
|
|
18097
|
-
})
|
|
18170
|
+
children: s.map((v) => C(v))
|
|
18098
18171
|
}
|
|
18099
18172
|
)
|
|
18100
18173
|
]
|
|
@@ -18133,72 +18206,105 @@ const Fu = ({
|
|
|
18133
18206
|
m && "w-full text-left",
|
|
18134
18207
|
d.className
|
|
18135
18208
|
);
|
|
18136
|
-
|
|
18137
|
-
/* @__PURE__ */ g(
|
|
18138
|
-
"
|
|
18209
|
+
if (h) {
|
|
18210
|
+
const p = /* @__PURE__ */ g(H, { children: [
|
|
18211
|
+
d.icon && /* @__PURE__ */ a(d.icon, { className: "h-4 w-4 mr-1" }),
|
|
18212
|
+
d.label
|
|
18213
|
+
] });
|
|
18214
|
+
return /* @__PURE__ */ g(
|
|
18215
|
+
"div",
|
|
18139
18216
|
{
|
|
18140
|
-
|
|
18141
|
-
|
|
18142
|
-
|
|
18143
|
-
|
|
18144
|
-
"aria-haspopup": "true",
|
|
18145
|
-
disabled: d.disabled,
|
|
18217
|
+
className: "relative",
|
|
18218
|
+
ref: i,
|
|
18219
|
+
onMouseEnter: () => l(d.id),
|
|
18220
|
+
onMouseLeave: () => l(null),
|
|
18146
18221
|
children: [
|
|
18147
|
-
|
|
18148
|
-
|
|
18149
|
-
/* @__PURE__ */ a(
|
|
18150
|
-
"svg",
|
|
18222
|
+
/* @__PURE__ */ g(
|
|
18223
|
+
"div",
|
|
18151
18224
|
{
|
|
18152
18225
|
className: c(
|
|
18153
|
-
|
|
18154
|
-
|
|
18226
|
+
f,
|
|
18227
|
+
"flex items-center gap-1 cursor-pointer"
|
|
18155
18228
|
),
|
|
18156
|
-
|
|
18157
|
-
|
|
18158
|
-
|
|
18159
|
-
|
|
18160
|
-
|
|
18229
|
+
children: [
|
|
18230
|
+
d.href && n ? /* @__PURE__ */ a(n, { href: d.href, className: "flex items-center", children: p }) : d.href ? /* @__PURE__ */ a("a", { href: d.href, className: "flex items-center", children: p }) : /* @__PURE__ */ a(
|
|
18231
|
+
"button",
|
|
18232
|
+
{
|
|
18233
|
+
type: "button",
|
|
18234
|
+
onClick: () => l(y ? null : d.id),
|
|
18235
|
+
className: "flex items-center",
|
|
18236
|
+
disabled: d.disabled,
|
|
18237
|
+
children: p
|
|
18238
|
+
}
|
|
18239
|
+
),
|
|
18240
|
+
/* @__PURE__ */ a(
|
|
18241
|
+
"button",
|
|
18242
|
+
{
|
|
18243
|
+
type: "button",
|
|
18244
|
+
onClick: () => l(y ? null : d.id),
|
|
18245
|
+
className: "flex items-center",
|
|
18246
|
+
"aria-expanded": y,
|
|
18247
|
+
"aria-haspopup": "true",
|
|
18248
|
+
children: /* @__PURE__ */ a(
|
|
18249
|
+
"svg",
|
|
18250
|
+
{
|
|
18251
|
+
className: c(
|
|
18252
|
+
"h-4 w-4 transition-transform duration-200",
|
|
18253
|
+
y && "rotate-180"
|
|
18254
|
+
),
|
|
18255
|
+
fill: "none",
|
|
18256
|
+
viewBox: "0 0 24 24",
|
|
18257
|
+
stroke: "currentColor",
|
|
18258
|
+
children: /* @__PURE__ */ a(
|
|
18259
|
+
"path",
|
|
18260
|
+
{
|
|
18261
|
+
strokeLinecap: "round",
|
|
18262
|
+
strokeLinejoin: "round",
|
|
18263
|
+
strokeWidth: 2,
|
|
18264
|
+
d: "M19 9l-7 7-7-7"
|
|
18265
|
+
}
|
|
18266
|
+
)
|
|
18267
|
+
}
|
|
18268
|
+
)
|
|
18269
|
+
}
|
|
18270
|
+
)
|
|
18271
|
+
]
|
|
18272
|
+
}
|
|
18273
|
+
),
|
|
18274
|
+
y && /* @__PURE__ */ a(
|
|
18275
|
+
"div",
|
|
18276
|
+
{
|
|
18277
|
+
className: c(
|
|
18278
|
+
"absolute top-full left-0 mt-1 py-1",
|
|
18279
|
+
"min-w-[200px] rounded-md shadow-lg",
|
|
18280
|
+
S.component.card.default.base,
|
|
18281
|
+
S.component.card.default.dark,
|
|
18282
|
+
"border",
|
|
18283
|
+
"z-50"
|
|
18284
|
+
),
|
|
18285
|
+
children: d.children?.map((b) => /* @__PURE__ */ a(
|
|
18286
|
+
ot,
|
|
18161
18287
|
{
|
|
18162
|
-
|
|
18163
|
-
|
|
18164
|
-
|
|
18165
|
-
|
|
18166
|
-
|
|
18167
|
-
|
|
18288
|
+
item: b,
|
|
18289
|
+
LinkComponent: n,
|
|
18290
|
+
className: c(
|
|
18291
|
+
"block px-4 py-2 text-sm",
|
|
18292
|
+
S.component.button.ghost.base,
|
|
18293
|
+
S.component.button.ghost.dark,
|
|
18294
|
+
b.active && "bg-blue-50 dark:bg-blue-900/20 text-blue-600 dark:text-blue-400"
|
|
18295
|
+
),
|
|
18296
|
+
onClick: () => l(null)
|
|
18297
|
+
},
|
|
18298
|
+
b.id
|
|
18299
|
+
))
|
|
18168
18300
|
}
|
|
18169
18301
|
)
|
|
18170
18302
|
]
|
|
18171
|
-
}
|
|
18172
|
-
|
|
18173
|
-
|
|
18174
|
-
|
|
18175
|
-
|
|
18176
|
-
className: c(
|
|
18177
|
-
"absolute top-full left-0 mt-1 py-1",
|
|
18178
|
-
"min-w-[200px] rounded-md shadow-lg",
|
|
18179
|
-
S.component.card.default.base,
|
|
18180
|
-
S.component.card.default.dark,
|
|
18181
|
-
"border",
|
|
18182
|
-
"z-50"
|
|
18183
|
-
),
|
|
18184
|
-
children: d.children?.map((p) => /* @__PURE__ */ a(
|
|
18185
|
-
ot,
|
|
18186
|
-
{
|
|
18187
|
-
item: p,
|
|
18188
|
-
LinkComponent: n,
|
|
18189
|
-
className: c(
|
|
18190
|
-
"block px-4 py-2 text-sm",
|
|
18191
|
-
S.component.button.ghost.base,
|
|
18192
|
-
S.component.button.ghost.dark,
|
|
18193
|
-
p.active && "bg-blue-50 dark:bg-blue-900/20 text-blue-600 dark:text-blue-400"
|
|
18194
|
-
),
|
|
18195
|
-
onClick: () => l(null)
|
|
18196
|
-
},
|
|
18197
|
-
p.id
|
|
18198
|
-
))
|
|
18199
|
-
}
|
|
18200
|
-
)
|
|
18201
|
-
] }, d.id) : /* @__PURE__ */ a(
|
|
18303
|
+
},
|
|
18304
|
+
d.id
|
|
18305
|
+
);
|
|
18306
|
+
}
|
|
18307
|
+
return /* @__PURE__ */ a(
|
|
18202
18308
|
ot,
|
|
18203
18309
|
{
|
|
18204
18310
|
item: d,
|
|
@@ -18493,30 +18599,30 @@ const Fu = ({
|
|
|
18493
18599
|
if (p) {
|
|
18494
18600
|
const b = p.getAttribute("data-bg-image");
|
|
18495
18601
|
if (b) {
|
|
18496
|
-
const
|
|
18497
|
-
|
|
18602
|
+
const x = document.createElement("link");
|
|
18603
|
+
x.rel = "preload", x.href = b, x.as = "image", document.head.appendChild(x);
|
|
18498
18604
|
}
|
|
18499
18605
|
}
|
|
18500
18606
|
}, l = () => {
|
|
18501
18607
|
document.querySelectorAll(
|
|
18502
18608
|
"img:not([width]):not([height])"
|
|
18503
18609
|
).forEach((b) => {
|
|
18504
|
-
const
|
|
18505
|
-
|
|
18610
|
+
const x = b;
|
|
18611
|
+
x.naturalWidth && x.naturalHeight && (x.width = x.naturalWidth, x.height = x.naturalHeight);
|
|
18506
18612
|
}), document.querySelectorAll("[data-dynamic]").forEach((b) => {
|
|
18507
18613
|
b.getAttribute("style")?.includes("min-height") || (b.style.minHeight = "200px");
|
|
18508
18614
|
});
|
|
18509
18615
|
}, i = () => {
|
|
18510
18616
|
const f = () => {
|
|
18511
|
-
document.querySelectorAll("script[data-defer]").forEach((
|
|
18512
|
-
|
|
18617
|
+
document.querySelectorAll("script[data-defer]").forEach((x) => {
|
|
18618
|
+
x.setAttribute("defer", "");
|
|
18513
18619
|
});
|
|
18514
18620
|
};
|
|
18515
18621
|
"requestIdleCallback" in window ? requestIdleCallback(() => {
|
|
18516
18622
|
f();
|
|
18517
18623
|
}) : setTimeout(f, 1), (() => {
|
|
18518
|
-
["scroll", "touchstart", "touchmove", "wheel"].forEach((
|
|
18519
|
-
document.addEventListener(
|
|
18624
|
+
["scroll", "touchstart", "touchmove", "wheel"].forEach((x) => {
|
|
18625
|
+
document.addEventListener(x, () => {
|
|
18520
18626
|
}, { passive: !0 });
|
|
18521
18627
|
});
|
|
18522
18628
|
})();
|
|
@@ -18545,11 +18651,11 @@ const Fu = ({
|
|
|
18545
18651
|
p.loading = "lazy";
|
|
18546
18652
|
}), "IntersectionObserver" in window) {
|
|
18547
18653
|
const p = new IntersectionObserver(
|
|
18548
|
-
(
|
|
18549
|
-
|
|
18654
|
+
(x) => {
|
|
18655
|
+
x.forEach((N) => {
|
|
18550
18656
|
if (N.isIntersecting) {
|
|
18551
|
-
const
|
|
18552
|
-
|
|
18657
|
+
const w = N.target;
|
|
18658
|
+
w.dataset.src && (w.src = w.dataset.src, w.removeAttribute("data-src")), p.unobserve(w);
|
|
18553
18659
|
}
|
|
18554
18660
|
});
|
|
18555
18661
|
},
|
|
@@ -18557,7 +18663,7 @@ const Fu = ({
|
|
|
18557
18663
|
rootMargin: "50px 0px"
|
|
18558
18664
|
}
|
|
18559
18665
|
);
|
|
18560
|
-
document.querySelectorAll("img[data-src]").forEach((
|
|
18666
|
+
document.querySelectorAll("img[data-src]").forEach((x) => p.observe(x));
|
|
18561
18667
|
}
|
|
18562
18668
|
}, h = () => {
|
|
18563
18669
|
[
|
|
@@ -18579,10 +18685,10 @@ const Fu = ({
|
|
|
18579
18685
|
content: "technology,blockchain,communication"
|
|
18580
18686
|
},
|
|
18581
18687
|
{ name: "interaction-model", content: "wallet-authentication" }
|
|
18582
|
-
].forEach(({ name:
|
|
18583
|
-
if (!document.querySelector(`meta[name="${
|
|
18584
|
-
const
|
|
18585
|
-
|
|
18688
|
+
].forEach(({ name: x, content: N }) => {
|
|
18689
|
+
if (!document.querySelector(`meta[name="${x}"]`)) {
|
|
18690
|
+
const w = document.createElement("meta");
|
|
18691
|
+
w.name = x, w.content = N, document.head.appendChild(w);
|
|
18586
18692
|
}
|
|
18587
18693
|
});
|
|
18588
18694
|
const p = {
|
|
@@ -19132,12 +19238,12 @@ function T0(t, e, r = {}) {
|
|
|
19132
19238
|
p.then((b) => b.default)
|
|
19133
19239
|
);
|
|
19134
19240
|
try {
|
|
19135
|
-
const b = await p,
|
|
19241
|
+
const b = await p, x = performance.now() - f;
|
|
19136
19242
|
if (i !== "none") {
|
|
19137
19243
|
const N = {
|
|
19138
19244
|
component: b.default,
|
|
19139
19245
|
timestamp: Date.now(),
|
|
19140
|
-
loadTime:
|
|
19246
|
+
loadTime: x
|
|
19141
19247
|
};
|
|
19142
19248
|
if (se.set(e, N), i === "session")
|
|
19143
19249
|
try {
|
|
@@ -19145,7 +19251,7 @@ function T0(t, e, r = {}) {
|
|
|
19145
19251
|
`lazy_${e}`,
|
|
19146
19252
|
JSON.stringify({
|
|
19147
19253
|
timestamp: N.timestamp,
|
|
19148
|
-
loadTime:
|
|
19254
|
+
loadTime: x
|
|
19149
19255
|
})
|
|
19150
19256
|
);
|
|
19151
19257
|
} catch {
|
|
@@ -19160,14 +19266,14 @@ function T0(t, e, r = {}) {
|
|
|
19160
19266
|
P(() => {
|
|
19161
19267
|
if (l && !se.has(e) && l() && !We.has(e)) {
|
|
19162
19268
|
We.add(e);
|
|
19163
|
-
const
|
|
19269
|
+
const w = so(u, Te);
|
|
19164
19270
|
setTimeout(() => {
|
|
19165
19271
|
t().catch(() => {
|
|
19166
19272
|
});
|
|
19167
|
-
},
|
|
19273
|
+
}, w);
|
|
19168
19274
|
}
|
|
19169
19275
|
}, []);
|
|
19170
|
-
const
|
|
19276
|
+
const x = s || /* @__PURE__ */ g("div", { className: "flex items-center justify-center p-4", children: [
|
|
19171
19277
|
/* @__PURE__ */ a("div", { className: "animate-spin rounded-full h-6 w-6 border-b-2 border-blue-500" }),
|
|
19172
19278
|
/* @__PURE__ */ g("span", { className: "ml-2 text-sm text-gray-600", children: [
|
|
19173
19279
|
"Loading ",
|
|
@@ -19185,7 +19291,7 @@ function T0(t, e, r = {}) {
|
|
|
19185
19291
|
e
|
|
19186
19292
|
]
|
|
19187
19293
|
}
|
|
19188
|
-
) }) : /* @__PURE__ */ a(Ue, { fallback:
|
|
19294
|
+
) }) : /* @__PURE__ */ a(Ue, { fallback: x, children: /* @__PURE__ */ a(h, { ...f }) });
|
|
19189
19295
|
};
|
|
19190
19296
|
return y.displayName = `AdvancedLazy(${e})`, y;
|
|
19191
19297
|
}
|
|
@@ -19427,7 +19533,7 @@ function j0(t, e) {
|
|
|
19427
19533
|
} = e, u = (d) => {
|
|
19428
19534
|
const [m, h] = B.useState(!1), [y, f] = B.useState(null);
|
|
19429
19535
|
return B.useEffect(() => {
|
|
19430
|
-
const
|
|
19536
|
+
const x = setTimeout(async () => {
|
|
19431
19537
|
const N = Ae.get(i);
|
|
19432
19538
|
if (N && N.isValid && Date.now() - N.lastCheck < 3e5)
|
|
19433
19539
|
try {
|
|
@@ -19450,7 +19556,7 @@ function j0(t, e) {
|
|
|
19450
19556
|
} catch {
|
|
19451
19557
|
}
|
|
19452
19558
|
}, l === "high" ? 0 : l === "medium" ? 100 : 500);
|
|
19453
|
-
return () => clearTimeout(
|
|
19559
|
+
return () => clearTimeout(x);
|
|
19454
19560
|
}, []), m ? y ? /* @__PURE__ */ a(
|
|
19455
19561
|
Ue,
|
|
19456
19562
|
{
|
|
@@ -21074,11 +21180,11 @@ const Io = ({ direction: t, className: e }) => /* @__PURE__ */ a(
|
|
|
21074
21180
|
const d = performance.getEntriesByType(
|
|
21075
21181
|
"resource"
|
|
21076
21182
|
), m = d.filter(
|
|
21077
|
-
(
|
|
21078
|
-
), h = m.reduce((
|
|
21079
|
-
(
|
|
21080
|
-
), f = y.reduce((
|
|
21081
|
-
(
|
|
21183
|
+
(x) => x.name.endsWith(".js") || x.initiatorType === "script"
|
|
21184
|
+
), h = m.reduce((x, N) => x + N.duration, 0), y = d.filter(
|
|
21185
|
+
(x) => x.name.endsWith(".css") || x.initiatorType === "link"
|
|
21186
|
+
), f = y.reduce((x, N) => x + N.duration, 0), p = d.reduce(
|
|
21187
|
+
(x, N) => x + (N.transferSize || 0),
|
|
21082
21188
|
0
|
|
21083
21189
|
), b = {
|
|
21084
21190
|
jsLoadTime: h,
|
|
@@ -21296,19 +21402,19 @@ const Io = ({ direction: t, className: e }) => /* @__PURE__ */ a(
|
|
|
21296
21402
|
const h = performance.getEntriesByType(
|
|
21297
21403
|
"resource"
|
|
21298
21404
|
), y = i.current, f = h.filter(
|
|
21299
|
-
(
|
|
21405
|
+
(w) => y.some((C) => w.name.includes(C))
|
|
21300
21406
|
);
|
|
21301
21407
|
if (f.length === 0)
|
|
21302
21408
|
return;
|
|
21303
|
-
const p = f.reduce((
|
|
21304
|
-
const C =
|
|
21409
|
+
const p = f.reduce((w, C) => w + C.duration, 0), b = Math.max(...f.map((w) => w.duration)), x = f.filter((w) => {
|
|
21410
|
+
const C = w.responseStatus;
|
|
21305
21411
|
return C !== void 0 && C >= 400;
|
|
21306
21412
|
}).length, N = {
|
|
21307
21413
|
callCount: f.length,
|
|
21308
21414
|
totalTime: p,
|
|
21309
21415
|
averageTime: p / f.length,
|
|
21310
21416
|
slowestCall: b,
|
|
21311
|
-
failedCalls:
|
|
21417
|
+
failedCalls: x
|
|
21312
21418
|
};
|
|
21313
21419
|
l(N), u.current?.(N);
|
|
21314
21420
|
} catch {
|
|
@@ -21335,13 +21441,13 @@ const Io = ({ direction: t, className: e }) => /* @__PURE__ */ a(
|
|
|
21335
21441
|
}), [d, m] = T(!1), [h, y] = T({ x: 0, y: 0 }), f = F(
|
|
21336
21442
|
(b) => {
|
|
21337
21443
|
if (!e || !l.current) return;
|
|
21338
|
-
const
|
|
21444
|
+
const x = l.current.getBoundingClientRect();
|
|
21339
21445
|
m(!0), y({
|
|
21340
|
-
x: b.clientX -
|
|
21341
|
-
y: b.clientY -
|
|
21446
|
+
x: b.clientX - x.left,
|
|
21447
|
+
y: b.clientY - x.top
|
|
21342
21448
|
}), (i.x === null || i.y === null) && u({
|
|
21343
|
-
x: n ?
|
|
21344
|
-
y: o ?
|
|
21449
|
+
x: n ? x.left : i.x ?? x.left,
|
|
21450
|
+
y: o ? x.top : i.y ?? x.top
|
|
21345
21451
|
}), b.preventDefault();
|
|
21346
21452
|
},
|
|
21347
21453
|
[e, i, n, o]
|
|
@@ -21355,20 +21461,20 @@ const Io = ({ direction: t, className: e }) => /* @__PURE__ */ a(
|
|
|
21355
21461
|
if (!d) return;
|
|
21356
21462
|
const b = (N) => {
|
|
21357
21463
|
if (!l.current) return;
|
|
21358
|
-
let
|
|
21464
|
+
let w = N.clientX - h.x, C = N.clientY - h.y;
|
|
21359
21465
|
if (r) {
|
|
21360
|
-
const
|
|
21361
|
-
|
|
21466
|
+
const v = window.innerWidth - l.current.offsetWidth, k = window.innerHeight - l.current.offsetHeight;
|
|
21467
|
+
w = Math.max(0, Math.min(w, v)), C = Math.max(0, Math.min(C, k));
|
|
21362
21468
|
}
|
|
21363
21469
|
u({
|
|
21364
|
-
x: n ?
|
|
21470
|
+
x: n ? w : o ? i.x : w,
|
|
21365
21471
|
y: o ? C : n ? i.y : C
|
|
21366
21472
|
});
|
|
21367
|
-
},
|
|
21473
|
+
}, x = () => {
|
|
21368
21474
|
m(!1);
|
|
21369
21475
|
};
|
|
21370
|
-
return document.addEventListener("mousemove", b), document.addEventListener("mouseup",
|
|
21371
|
-
document.removeEventListener("mousemove", b), document.removeEventListener("mouseup",
|
|
21476
|
+
return document.addEventListener("mousemove", b), document.addEventListener("mouseup", x), () => {
|
|
21477
|
+
document.removeEventListener("mousemove", b), document.removeEventListener("mouseup", x);
|
|
21372
21478
|
};
|
|
21373
21479
|
}, [
|
|
21374
21480
|
d,
|
|
@@ -21408,7 +21514,7 @@ const Io = ({ direction: t, className: e }) => /* @__PURE__ */ a(
|
|
|
21408
21514
|
onMetricsUpdate: d,
|
|
21409
21515
|
className: m
|
|
21410
21516
|
}) => {
|
|
21411
|
-
const h = t ?? (typeof process < "u" && process.env?.NODE_ENV !== "production"), [y, f] = T(e), [p, b] = T(r),
|
|
21517
|
+
const h = t ?? (typeof process < "u" && process.env?.NODE_ENV !== "production"), [y, f] = T(e), [p, b] = T(r), x = le(
|
|
21412
21518
|
() => u,
|
|
21413
21519
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
21414
21520
|
[JSON.stringify(u)]
|
|
@@ -21416,22 +21522,22 @@ const Io = ({ direction: t, className: e }) => /* @__PURE__ */ a(
|
|
|
21416
21522
|
P(() => {
|
|
21417
21523
|
N.current = d;
|
|
21418
21524
|
}, [d]);
|
|
21419
|
-
const { metrics:
|
|
21525
|
+
const { metrics: w } = Bo({
|
|
21420
21526
|
enabled: h && s.includes("webVitals")
|
|
21421
21527
|
// Don't pass onUpdate here - it causes infinite loops
|
|
21422
21528
|
}), { metrics: C } = Fo({
|
|
21423
21529
|
enabled: h && s.includes("bundle")
|
|
21424
|
-
}), { metrics:
|
|
21530
|
+
}), { metrics: v } = Yo({
|
|
21425
21531
|
enabled: h && s.includes("api"),
|
|
21426
|
-
patterns:
|
|
21532
|
+
patterns: x
|
|
21427
21533
|
});
|
|
21428
21534
|
P(() => {
|
|
21429
21535
|
N.current && N.current({
|
|
21430
|
-
webVitals:
|
|
21536
|
+
webVitals: w,
|
|
21431
21537
|
bundle: C,
|
|
21432
|
-
api:
|
|
21538
|
+
api: v
|
|
21433
21539
|
});
|
|
21434
|
-
}, [
|
|
21540
|
+
}, [w, C, v]);
|
|
21435
21541
|
const {
|
|
21436
21542
|
position: k,
|
|
21437
21543
|
isDragging: $,
|
|
@@ -21506,9 +21612,9 @@ const Io = ({ direction: t, className: e }) => /* @__PURE__ */ a(
|
|
|
21506
21612
|
y ? "max-h-0 opacity-0" : "max-h-[70vh] opacity-100 py-2 px-3"
|
|
21507
21613
|
),
|
|
21508
21614
|
children: /* @__PURE__ */ g("div", { className: "overflow-y-auto max-h-full space-y-3", children: [
|
|
21509
|
-
s.includes("webVitals") && /* @__PURE__ */ a(jo, { metrics:
|
|
21615
|
+
s.includes("webVitals") && /* @__PURE__ */ a(jo, { metrics: w }),
|
|
21510
21616
|
s.includes("bundle") && /* @__PURE__ */ a("div", { className: "pt-3 border-t border-gray-700", children: /* @__PURE__ */ a(Oo, { metrics: C }) }),
|
|
21511
|
-
s.includes("api") &&
|
|
21617
|
+
s.includes("api") && v.callCount > 0 && /* @__PURE__ */ a("div", { className: "pt-3 border-t border-gray-700", children: /* @__PURE__ */ a(_o, { metrics: v }) }),
|
|
21512
21618
|
s.includes("memory") && /* @__PURE__ */ a("div", { className: "pt-3 border-t border-gray-700", children: /* @__PURE__ */ a(Ho, {}) }),
|
|
21513
21619
|
V && l.length > 0 && /* @__PURE__ */ a("div", { className: "pt-3 border-t border-gray-700", children: /* @__PURE__ */ a(
|
|
21514
21620
|
Ko,
|
|
@@ -21538,15 +21644,15 @@ const Io = ({ direction: t, className: e }) => /* @__PURE__ */ a(
|
|
|
21538
21644
|
}, []), p = F(() => {
|
|
21539
21645
|
h("");
|
|
21540
21646
|
}, []), b = F(
|
|
21541
|
-
async (
|
|
21647
|
+
async (x) => {
|
|
21542
21648
|
i(!0), y();
|
|
21543
21649
|
try {
|
|
21544
|
-
await
|
|
21650
|
+
await x(), e && (d(e), r > 0 && setTimeout(() => {
|
|
21545
21651
|
d("");
|
|
21546
21652
|
}, r)), o && o();
|
|
21547
21653
|
} catch (N) {
|
|
21548
|
-
const
|
|
21549
|
-
throw h(n ? `${n}: ${
|
|
21654
|
+
const w = N instanceof Error ? N.message : "An error occurred";
|
|
21655
|
+
throw h(n ? `${n}: ${w}` : w), s && N instanceof Error && s(N), N;
|
|
21550
21656
|
} finally {
|
|
21551
21657
|
i(!1);
|
|
21552
21658
|
}
|
|
@@ -21704,7 +21810,7 @@ function Tm({
|
|
|
21704
21810
|
}
|
|
21705
21811
|
},
|
|
21706
21812
|
[r, y]
|
|
21707
|
-
),
|
|
21813
|
+
), x = F(() => {
|
|
21708
21814
|
const E = {}, I = {};
|
|
21709
21815
|
let M = !0;
|
|
21710
21816
|
for (const U in t) {
|
|
@@ -21715,7 +21821,7 @@ function Tm({
|
|
|
21715
21821
|
return d(I), i(E), M;
|
|
21716
21822
|
}, [t, y]), N = F(() => {
|
|
21717
21823
|
s(n), i({}), d({}), h({});
|
|
21718
|
-
}, [n]),
|
|
21824
|
+
}, [n]), w = F(
|
|
21719
21825
|
(E) => {
|
|
21720
21826
|
s((I) => ({
|
|
21721
21827
|
...I,
|
|
@@ -21743,7 +21849,7 @@ function Tm({
|
|
|
21743
21849
|
"aria-invalid": !!(u[E] && l[E])
|
|
21744
21850
|
}),
|
|
21745
21851
|
[o, f, b, u, l]
|
|
21746
|
-
),
|
|
21852
|
+
), v = F(
|
|
21747
21853
|
(E) => u[E] ? l[E] : void 0,
|
|
21748
21854
|
[u, l]
|
|
21749
21855
|
), k = le(() => {
|
|
@@ -21763,11 +21869,11 @@ function Tm({
|
|
|
21763
21869
|
setValues: p,
|
|
21764
21870
|
setTouched: b,
|
|
21765
21871
|
validateField: y,
|
|
21766
|
-
validateAll:
|
|
21872
|
+
validateAll: x,
|
|
21767
21873
|
reset: N,
|
|
21768
|
-
resetField:
|
|
21874
|
+
resetField: w,
|
|
21769
21875
|
getFieldProps: C,
|
|
21770
|
-
getFieldError:
|
|
21876
|
+
getFieldError: v
|
|
21771
21877
|
};
|
|
21772
21878
|
}
|
|
21773
21879
|
const Am = (t) => {
|