carconnect-gatherleads-ui-lib 3.7.0-GL-1521-Modulo-Rendimiento.1 → 3.7.0-GL-1700-Modulo-Rendimiento-ROI.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as I from "react";
|
|
2
2
|
import P, { useState as At, useMemo as st, useCallback as Ne, forwardRef as oi, createElement as gs, useRef as Qe, useEffect as Jt, useContext as Dr, useLayoutEffect as Wy, createContext as Vn, Component as Vy, Fragment as jg, useImperativeHandle as JP, isValidElement as Ur, Children as Va, PureComponent as Cr, cloneElement as _t } from "react";
|
|
3
|
-
import { jsx as A, jsxs as
|
|
3
|
+
import { jsx as A, jsxs as L, Fragment as qe } from "react/jsx-runtime";
|
|
4
4
|
import * as Lu from "react-dom";
|
|
5
5
|
import oD, { createPortal as Gu } from "react-dom";
|
|
6
6
|
const Ble = (e, t) => {
|
|
@@ -372,7 +372,7 @@ const lD = (e, t) => {
|
|
|
372
372
|
"left-bottom"
|
|
373
373
|
], y = () => [...w(), he, de], S = () => ["auto", "hidden", "clip", "visible", "scroll"], C = () => ["auto", "contain", "none"], O = () => [he, de, l], E = () => [Kn, "full", "auto", ...O()], k = () => [rn, "none", "subgrid", he, de], T = () => ["auto", {
|
|
374
374
|
span: ["full", rn, he, de]
|
|
375
|
-
}, rn, he, de], _ = () => [rn, "auto", he, de], D = () => ["auto", "min", "max", "fr", he, de], j = () => ["start", "end", "center", "between", "around", "evenly", "stretch", "baseline", "center-safe", "end-safe"], N = () => ["start", "end", "center", "stretch", "center-safe", "end-safe"], R = () => ["auto", ...O()],
|
|
375
|
+
}, rn, he, de], _ = () => [rn, "auto", he, de], D = () => ["auto", "min", "max", "fr", he, de], j = () => ["start", "end", "center", "between", "around", "evenly", "stretch", "baseline", "center-safe", "end-safe"], N = () => ["start", "end", "center", "stretch", "center-safe", "end-safe"], R = () => ["auto", ...O()], G = () => [Kn, "auto", "full", "dvw", "dvh", "lvw", "lvh", "svw", "svh", "min", "max", "fit", ...O()], V = () => [Kn, "screen", "full", "dvw", "lvw", "svw", "min", "max", "fit", ...O()], H = () => [Kn, "screen", "full", "lh", "dvh", "lvh", "svh", "min", "max", "fit", ...O()], M = () => [e, he, de], z = () => [...w(), K0, J0, {
|
|
376
376
|
position: [he, de]
|
|
377
377
|
}], Y = () => ["no-repeat", {
|
|
378
378
|
repeat: ["", "x", "y", "space", "round"]
|
|
@@ -1083,7 +1083,7 @@ const lD = (e, t) => {
|
|
|
1083
1083
|
* @see https://tailwindcss.com/docs/width#setting-both-width-and-height
|
|
1084
1084
|
*/
|
|
1085
1085
|
size: [{
|
|
1086
|
-
size:
|
|
1086
|
+
size: G()
|
|
1087
1087
|
}],
|
|
1088
1088
|
/**
|
|
1089
1089
|
* Inline Size
|
|
@@ -1132,7 +1132,7 @@ const lD = (e, t) => {
|
|
|
1132
1132
|
* @see https://tailwindcss.com/docs/width
|
|
1133
1133
|
*/
|
|
1134
1134
|
w: [{
|
|
1135
|
-
w: [s, "screen", ...
|
|
1135
|
+
w: [s, "screen", ...G()]
|
|
1136
1136
|
}],
|
|
1137
1137
|
/**
|
|
1138
1138
|
* Min-Width
|
|
@@ -1144,7 +1144,7 @@ const lD = (e, t) => {
|
|
|
1144
1144
|
"screen",
|
|
1145
1145
|
/** Deprecated. @see https://github.com/tailwindlabs/tailwindcss.com/issues/2027#issuecomment-2620152757 */
|
|
1146
1146
|
"none",
|
|
1147
|
-
...
|
|
1147
|
+
...G()
|
|
1148
1148
|
]
|
|
1149
1149
|
}],
|
|
1150
1150
|
/**
|
|
@@ -1162,7 +1162,7 @@ const lD = (e, t) => {
|
|
|
1162
1162
|
{
|
|
1163
1163
|
screen: [o]
|
|
1164
1164
|
},
|
|
1165
|
-
...
|
|
1165
|
+
...G()
|
|
1166
1166
|
]
|
|
1167
1167
|
}],
|
|
1168
1168
|
/**
|
|
@@ -1170,21 +1170,21 @@ const lD = (e, t) => {
|
|
|
1170
1170
|
* @see https://tailwindcss.com/docs/height
|
|
1171
1171
|
*/
|
|
1172
1172
|
h: [{
|
|
1173
|
-
h: ["screen", "lh", ...
|
|
1173
|
+
h: ["screen", "lh", ...G()]
|
|
1174
1174
|
}],
|
|
1175
1175
|
/**
|
|
1176
1176
|
* Min-Height
|
|
1177
1177
|
* @see https://tailwindcss.com/docs/min-height
|
|
1178
1178
|
*/
|
|
1179
1179
|
"min-h": [{
|
|
1180
|
-
"min-h": ["screen", "lh", "none", ...
|
|
1180
|
+
"min-h": ["screen", "lh", "none", ...G()]
|
|
1181
1181
|
}],
|
|
1182
1182
|
/**
|
|
1183
1183
|
* Max-Height
|
|
1184
1184
|
* @see https://tailwindcss.com/docs/max-height
|
|
1185
1185
|
*/
|
|
1186
1186
|
"max-h": [{
|
|
1187
|
-
"max-h": ["screen", "lh", ...
|
|
1187
|
+
"max-h": ["screen", "lh", ...G()]
|
|
1188
1188
|
}],
|
|
1189
1189
|
// ------------------
|
|
1190
1190
|
// --- Typography ---
|
|
@@ -5081,7 +5081,7 @@ const yB = [
|
|
|
5081
5081
|
g,
|
|
5082
5082
|
{ isScrollVertical: l }
|
|
5083
5083
|
) : g);
|
|
5084
|
-
return /* @__PURE__ */
|
|
5084
|
+
return /* @__PURE__ */ L(
|
|
5085
5085
|
"div",
|
|
5086
5086
|
{
|
|
5087
5087
|
className: B(
|
|
@@ -5155,7 +5155,7 @@ const _E = P.forwardRef(
|
|
|
5155
5155
|
onKeyDown: (g) => {
|
|
5156
5156
|
d.sortable && (g.key === "Enter" || g.key === " ") && (g.preventDefault(), f(d));
|
|
5157
5157
|
},
|
|
5158
|
-
children: /* @__PURE__ */
|
|
5158
|
+
children: /* @__PURE__ */ L(
|
|
5159
5159
|
"div",
|
|
5160
5160
|
{
|
|
5161
5161
|
className: B(
|
|
@@ -5216,7 +5216,7 @@ const Kle = P.forwardRef(
|
|
|
5216
5216
|
[t.length, l]
|
|
5217
5217
|
), C = P.useMemo(() => r.length ? r.map((O, E) => {
|
|
5218
5218
|
const k = E === r.length - 1, T = w(O, E), _ = d?.has(T) ?? !1, D = !!g;
|
|
5219
|
-
return /* @__PURE__ */
|
|
5219
|
+
return /* @__PURE__ */ L(P.Fragment, { children: [
|
|
5220
5220
|
/* @__PURE__ */ A(
|
|
5221
5221
|
Ii,
|
|
5222
5222
|
{
|
|
@@ -5233,7 +5233,7 @@ const Kle = P.forwardRef(
|
|
|
5233
5233
|
},
|
|
5234
5234
|
onDoubleClick: () => o?.(O, E),
|
|
5235
5235
|
children: t.map((j, N) => {
|
|
5236
|
-
const R = N === 0,
|
|
5236
|
+
const R = N === 0, G = N === t.length - 1;
|
|
5237
5237
|
return /* @__PURE__ */ A(
|
|
5238
5238
|
_l,
|
|
5239
5239
|
{
|
|
@@ -5243,7 +5243,7 @@ const Kle = P.forwardRef(
|
|
|
5243
5243
|
j.align === "right" && "text-right",
|
|
5244
5244
|
j.className,
|
|
5245
5245
|
k && !_ && R && "rounded-bl-lg",
|
|
5246
|
-
k && !_ &&
|
|
5246
|
+
k && !_ && G && "rounded-br-lg"
|
|
5247
5247
|
),
|
|
5248
5248
|
style: { width: j.width },
|
|
5249
5249
|
children: x(O, j, E, N)
|
|
@@ -5531,10 +5531,10 @@ const kB = Ot(
|
|
|
5531
5531
|
disabled: c || a,
|
|
5532
5532
|
asChild: n,
|
|
5533
5533
|
...f,
|
|
5534
|
-
children: a ? /* @__PURE__ */
|
|
5534
|
+
children: a ? /* @__PURE__ */ L(qe, { children: [
|
|
5535
5535
|
/* @__PURE__ */ A(Jy, { className: "mr-2 h-4 w-4 animate-spin" }),
|
|
5536
5536
|
i
|
|
5537
|
-
] }) : /* @__PURE__ */
|
|
5537
|
+
] }) : /* @__PURE__ */ L(qe, { children: [
|
|
5538
5538
|
l && o && /* @__PURE__ */ A("span", { className: "gap-3", children: o }),
|
|
5539
5539
|
l || o || s,
|
|
5540
5540
|
l && s && /* @__PURE__ */ A("span", { className: "gap-3", children: s })
|
|
@@ -5848,7 +5848,7 @@ var zu = "Switch", [ZB] = zn(zu), [JB, KB] = ZB(zu), ME = I.forwardRef(
|
|
|
5848
5848
|
onChange: c,
|
|
5849
5849
|
caller: zu
|
|
5850
5850
|
});
|
|
5851
|
-
return /* @__PURE__ */
|
|
5851
|
+
return /* @__PURE__ */ L(JB, { scope: r, checked: b, disabled: s, children: [
|
|
5852
5852
|
/* @__PURE__ */ A(
|
|
5853
5853
|
$e.button,
|
|
5854
5854
|
{
|
|
@@ -5984,7 +5984,7 @@ const td = Ot(
|
|
|
5984
5984
|
i === "center" && "justify-center",
|
|
5985
5985
|
i === "space-between" || i === "top" ? "" : t === "sm" ? "h-14" : "h-16"
|
|
5986
5986
|
),
|
|
5987
|
-
children: /* @__PURE__ */
|
|
5987
|
+
children: /* @__PURE__ */ L("label", { className: "flex cursor-pointer items-center gap-2", children: [
|
|
5988
5988
|
o && /* @__PURE__ */ A("span", { className: "text-sm font-normal text-ui-text-muted peer-data-[state=checked]:text-ui-text-primary", children: o }),
|
|
5989
5989
|
/* @__PURE__ */ A(
|
|
5990
5990
|
Qf,
|
|
@@ -6006,34 +6006,34 @@ const td = Ot(
|
|
|
6006
6006
|
}
|
|
6007
6007
|
), h = l ? /* @__PURE__ */ A("p", { className: B("mt-1.5 text-sm text-ui-text-muted", c && "text-destructive"), children: l }) : null;
|
|
6008
6008
|
if (!n)
|
|
6009
|
-
return /* @__PURE__ */
|
|
6009
|
+
return /* @__PURE__ */ L("div", { className: B("flex flex-col", e), children: [
|
|
6010
6010
|
d,
|
|
6011
6011
|
h
|
|
6012
6012
|
] });
|
|
6013
|
-
const g = /* @__PURE__ */
|
|
6013
|
+
const g = /* @__PURE__ */ L("span", { className: "text-sm font-normal text-ui-text-primary", children: [
|
|
6014
6014
|
n,
|
|
6015
6015
|
a && /* @__PURE__ */ A("span", { className: "ml-0.5 text-destructive", children: "*" })
|
|
6016
6016
|
] });
|
|
6017
|
-
return i === "top" ? /* @__PURE__ */
|
|
6017
|
+
return i === "top" ? /* @__PURE__ */ L("div", { className: B("flex flex-col gap-1.5 w-full", e), children: [
|
|
6018
6018
|
g,
|
|
6019
6019
|
d,
|
|
6020
6020
|
h
|
|
6021
|
-
] }) : i === "left" ? /* @__PURE__ */
|
|
6022
|
-
/* @__PURE__ */
|
|
6021
|
+
] }) : i === "left" ? /* @__PURE__ */ L("div", { className: B("flex flex-col gap-1.5", e), children: [
|
|
6022
|
+
/* @__PURE__ */ L("div", { className: "flex items-center gap-3", children: [
|
|
6023
6023
|
g,
|
|
6024
6024
|
d
|
|
6025
6025
|
] }),
|
|
6026
6026
|
h
|
|
6027
|
-
] }) : i === "left-inline" ? /* @__PURE__ */
|
|
6028
|
-
/* @__PURE__ */
|
|
6027
|
+
] }) : i === "left-inline" ? /* @__PURE__ */ L("div", { className: B("flex flex-col gap-1.5", e), children: [
|
|
6028
|
+
/* @__PURE__ */ L("div", { className: "flex items-center justify-start gap-3", children: [
|
|
6029
6029
|
g,
|
|
6030
6030
|
d
|
|
6031
6031
|
] }),
|
|
6032
6032
|
h
|
|
6033
|
-
] }) : i === "inline" ? /* @__PURE__ */
|
|
6034
|
-
/* @__PURE__ */
|
|
6033
|
+
] }) : i === "inline" ? /* @__PURE__ */ L("div", { className: B("flex flex-col gap-1.5", e), children: [
|
|
6034
|
+
/* @__PURE__ */ L("div", { className: "flex items-center justify-start gap-3", children: [
|
|
6035
6035
|
g,
|
|
6036
|
-
/* @__PURE__ */ A("div", { className: "flex items-center", children: /* @__PURE__ */
|
|
6036
|
+
/* @__PURE__ */ A("div", { className: "flex items-center", children: /* @__PURE__ */ L("label", { className: "flex cursor-pointer items-center gap-2", children: [
|
|
6037
6037
|
o && /* @__PURE__ */ A("span", { className: "text-sm font-normal text-ui-text-muted peer-data-[state=checked]:text-ui-text-primary", children: o }),
|
|
6038
6038
|
/* @__PURE__ */ A(
|
|
6039
6039
|
Qf,
|
|
@@ -6054,10 +6054,10 @@ const td = Ot(
|
|
|
6054
6054
|
] }) })
|
|
6055
6055
|
] }),
|
|
6056
6056
|
h
|
|
6057
|
-
] }) : i === "space-between" ? /* @__PURE__ */
|
|
6058
|
-
/* @__PURE__ */
|
|
6057
|
+
] }) : i === "space-between" ? /* @__PURE__ */ L("div", { className: B("flex flex-col gap-1.5 w-full", e), children: [
|
|
6058
|
+
/* @__PURE__ */ L("div", { className: "flex items-center justify-between w-full", children: [
|
|
6059
6059
|
g,
|
|
6060
|
-
/* @__PURE__ */ A("div", { className: "flex items-center", children: /* @__PURE__ */
|
|
6060
|
+
/* @__PURE__ */ A("div", { className: "flex items-center", children: /* @__PURE__ */ L("label", { className: "flex cursor-pointer items-center gap-2", children: [
|
|
6061
6061
|
o && /* @__PURE__ */ A("span", { className: "text-sm font-normal text-ui-text-muted peer-data-[state=checked]:text-ui-text-primary", children: o }),
|
|
6062
6062
|
/* @__PURE__ */ A(
|
|
6063
6063
|
Qf,
|
|
@@ -6078,19 +6078,19 @@ const td = Ot(
|
|
|
6078
6078
|
] }) })
|
|
6079
6079
|
] }),
|
|
6080
6080
|
h
|
|
6081
|
-
] }) : i === "right" ? /* @__PURE__ */
|
|
6082
|
-
/* @__PURE__ */
|
|
6081
|
+
] }) : i === "right" ? /* @__PURE__ */ L("div", { className: B("flex flex-col gap-1.5", e), children: [
|
|
6082
|
+
/* @__PURE__ */ L("div", { className: "flex items-center gap-3", children: [
|
|
6083
6083
|
d,
|
|
6084
6084
|
g
|
|
6085
6085
|
] }),
|
|
6086
6086
|
h
|
|
6087
|
-
] }) : i === "center" ? /* @__PURE__ */
|
|
6088
|
-
/* @__PURE__ */
|
|
6087
|
+
] }) : i === "center" ? /* @__PURE__ */ L("div", { className: B("flex flex-col gap-1.5", e), children: [
|
|
6088
|
+
/* @__PURE__ */ L("div", { className: "flex items-center justify-center gap-3", children: [
|
|
6089
6089
|
g,
|
|
6090
6090
|
d
|
|
6091
6091
|
] }),
|
|
6092
6092
|
h
|
|
6093
|
-
] }) : /* @__PURE__ */
|
|
6093
|
+
] }) : /* @__PURE__ */ L("div", { className: B("flex flex-col", e), children: [
|
|
6094
6094
|
d,
|
|
6095
6095
|
h
|
|
6096
6096
|
] });
|
|
@@ -6220,7 +6220,7 @@ function oF(e) {
|
|
|
6220
6220
|
typeof d == "function" && d(), S(!0);
|
|
6221
6221
|
}, [d]), j = Ne(function() {
|
|
6222
6222
|
typeof u == "function" && u(), S(!1);
|
|
6223
|
-
}, [u]), N = s !== void 0 ? s : b, R = l !== void 0 ? l : y,
|
|
6223
|
+
}, [u]), N = s !== void 0 ? s : b, R = l !== void 0 ? l : y, G = h !== void 0 ? h : E;
|
|
6224
6224
|
return xe(xe({}, g), {}, {
|
|
6225
6225
|
inputValue: N,
|
|
6226
6226
|
menuIsOpen: R,
|
|
@@ -6228,7 +6228,7 @@ function oF(e) {
|
|
|
6228
6228
|
onInputChange: _,
|
|
6229
6229
|
onMenuClose: j,
|
|
6230
6230
|
onMenuOpen: D,
|
|
6231
|
-
value:
|
|
6231
|
+
value: G
|
|
6232
6232
|
});
|
|
6233
6233
|
}
|
|
6234
6234
|
function Ce() {
|
|
@@ -7049,7 +7049,7 @@ function YF() {
|
|
|
7049
7049
|
}
|
|
7050
7050
|
}
|
|
7051
7051
|
}
|
|
7052
|
-
var y = l, S = c, C = s, O = o, E = t, k = f, T = n, _ = g, D = h, j = r, N = i, R = a,
|
|
7052
|
+
var y = l, S = c, C = s, O = o, E = t, k = f, T = n, _ = g, D = h, j = r, N = i, R = a, G = u, V = !1;
|
|
7053
7053
|
function H($) {
|
|
7054
7054
|
return V || (V = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), M($) || w($) === l;
|
|
7055
7055
|
}
|
|
@@ -7089,7 +7089,7 @@ function YF() {
|
|
|
7089
7089
|
function ie($) {
|
|
7090
7090
|
return w($) === u;
|
|
7091
7091
|
}
|
|
7092
|
-
Ve.AsyncMode = y, Ve.ConcurrentMode = S, Ve.ContextConsumer = C, Ve.ContextProvider = O, Ve.Element = E, Ve.ForwardRef = k, Ve.Fragment = T, Ve.Lazy = _, Ve.Memo = D, Ve.Portal = j, Ve.Profiler = N, Ve.StrictMode = R, Ve.Suspense =
|
|
7092
|
+
Ve.AsyncMode = y, Ve.ConcurrentMode = S, Ve.ContextConsumer = C, Ve.ContextProvider = O, Ve.Element = E, Ve.ForwardRef = k, Ve.Fragment = T, Ve.Lazy = _, Ve.Memo = D, Ve.Portal = j, Ve.Profiler = N, Ve.StrictMode = R, Ve.Suspense = G, Ve.isAsyncMode = H, Ve.isConcurrentMode = M, Ve.isContextConsumer = z, Ve.isContextProvider = Y, Ve.isElement = Z, Ve.isForwardRef = q, Ve.isFragment = K, Ve.isLazy = ne, Ve.isMemo = Q, Ve.isPortal = ae, Ve.isProfiler = U, Ve.isStrictMode = J, Ve.isSuspense = ie, Ve.isValidElementType = x, Ve.typeOf = w;
|
|
7093
7093
|
})()), Ve;
|
|
7094
7094
|
}
|
|
7095
7095
|
var wx;
|
|
@@ -7747,14 +7747,14 @@ const CL = 50, OL = async (e, t, r) => {
|
|
|
7747
7747
|
}, h = lb(a), g = sb(h), p = await o.getDimensions(c), m = h === "y", b = m ? "top" : "left", v = m ? "bottom" : "right", x = m ? "clientHeight" : "clientWidth", w = i.reference[g] + i.reference[h] - d[h] - i.floating[g], y = d[h] - i.reference[h], S = await (o.getOffsetParent == null ? void 0 : o.getOffsetParent(c));
|
|
7748
7748
|
let C = S ? S[x] : 0;
|
|
7749
7749
|
(!C || !await (o.isElement == null ? void 0 : o.isElement(S))) && (C = s.floating[x] || i.floating[g]);
|
|
7750
|
-
const O = w / 2 - y / 2, E = C / 2 - p[g] / 2 - 1, k = ha(u[b], E), T = ha(u[v], E), _ = k, D = C - p[g] - T, j = C / 2 - p[g] / 2 + O, N = Zg(_, j, D), R = !l.arrow && Io(a) != null && j !== N && i.reference[g] / 2 - (j < _ ? k : T) - p[g] / 2 < 0,
|
|
7750
|
+
const O = w / 2 - y / 2, E = C / 2 - p[g] / 2 - 1, k = ha(u[b], E), T = ha(u[v], E), _ = k, D = C - p[g] - T, j = C / 2 - p[g] / 2 + O, N = Zg(_, j, D), R = !l.arrow && Io(a) != null && j !== N && i.reference[g] / 2 - (j < _ ? k : T) - p[g] / 2 < 0, G = R ? j < _ ? j - _ : j - D : 0;
|
|
7751
7751
|
return {
|
|
7752
|
-
[h]: d[h] +
|
|
7752
|
+
[h]: d[h] + G,
|
|
7753
7753
|
data: {
|
|
7754
7754
|
[h]: N,
|
|
7755
|
-
centerOffset: j - N -
|
|
7755
|
+
centerOffset: j - N - G,
|
|
7756
7756
|
...R && {
|
|
7757
|
-
alignmentOffset:
|
|
7757
|
+
alignmentOffset: G
|
|
7758
7758
|
}
|
|
7759
7759
|
},
|
|
7760
7760
|
reset: R
|
|
@@ -7810,12 +7810,12 @@ const CL = 50, OL = async (e, t, r) => {
|
|
|
7810
7810
|
placement: N
|
|
7811
7811
|
}
|
|
7812
7812
|
};
|
|
7813
|
-
let R = (_ = k.filter((
|
|
7813
|
+
let R = (_ = k.filter((G) => G.overflows[0] <= 0).sort((G, V) => G.overflows[1] - V.overflows[1])[0]) == null ? void 0 : _.placement;
|
|
7814
7814
|
if (!R)
|
|
7815
7815
|
switch (h) {
|
|
7816
7816
|
case "bestFit": {
|
|
7817
7817
|
var D;
|
|
7818
|
-
const
|
|
7818
|
+
const G = (D = k.filter((V) => {
|
|
7819
7819
|
if (S) {
|
|
7820
7820
|
const H = un(V.placement);
|
|
7821
7821
|
return H === v || // Create a bias to the `y` side axis due to horizontal
|
|
@@ -7824,7 +7824,7 @@ const CL = 50, OL = async (e, t, r) => {
|
|
|
7824
7824
|
}
|
|
7825
7825
|
return !0;
|
|
7826
7826
|
}).map((V) => [V.placement, V.overflows.filter((H) => H > 0).reduce((H, M) => H + M, 0)]).sort((V, H) => V[1] - H[1])[0]) == null ? void 0 : D[0];
|
|
7827
|
-
|
|
7827
|
+
G && (R = G);
|
|
7828
7828
|
break;
|
|
7829
7829
|
}
|
|
7830
7830
|
case "initialPlacement":
|
|
@@ -9495,9 +9495,9 @@ var $W = process.env.NODE_ENV === "production" ? {
|
|
|
9495
9495
|
}, [u]), E = st(function() {
|
|
9496
9496
|
var N = "";
|
|
9497
9497
|
if (r && O.onChange) {
|
|
9498
|
-
var R = r.option,
|
|
9498
|
+
var R = r.option, G = r.options, V = r.removedValue, H = r.removedValues, M = r.value, z = function(ae) {
|
|
9499
9499
|
return Array.isArray(ae) ? null : ae;
|
|
9500
|
-
}, Y = V || R || z(M), Z = Y ? d(Y) : "", q =
|
|
9500
|
+
}, Y = V || R || z(M), Z = Y ? d(Y) : "", q = G || H || void 0, K = q ? q.map(d) : [], ne = xe({
|
|
9501
9501
|
// multiSelected items are usually items that have already been selected
|
|
9502
9502
|
// or set by the user as a default value so we assume they are not disabled
|
|
9503
9503
|
isDisabled: Y && p(Y, s),
|
|
@@ -9508,13 +9508,13 @@ var $W = process.env.NODE_ENV === "production" ? {
|
|
|
9508
9508
|
}
|
|
9509
9509
|
return N;
|
|
9510
9510
|
}, [r, O, p, s, d]), k = st(function() {
|
|
9511
|
-
var N = "", R = n || a,
|
|
9511
|
+
var N = "", R = n || a, G = !!(n && s && s.includes(n));
|
|
9512
9512
|
if (R && O.onFocus) {
|
|
9513
9513
|
var V = {
|
|
9514
9514
|
focused: R,
|
|
9515
9515
|
label: d(R),
|
|
9516
9516
|
isDisabled: p(R, s),
|
|
9517
|
-
isSelected:
|
|
9517
|
+
isSelected: G,
|
|
9518
9518
|
options: i,
|
|
9519
9519
|
context: R === n ? "menu" : "value",
|
|
9520
9520
|
selectValue: s,
|
|
@@ -10973,9 +10973,9 @@ var k_ = function(t) {
|
|
|
10973
10973
|
isFocused: ie,
|
|
10974
10974
|
innerRef: ie ? a.getFocusedOptionRef : void 0
|
|
10975
10975
|
}), a.formatOptionLabel(Z.data, "menu"));
|
|
10976
|
-
},
|
|
10976
|
+
}, G;
|
|
10977
10977
|
if (this.hasOptions())
|
|
10978
|
-
|
|
10978
|
+
G = this.getCategorizedOptions().map(function(Y) {
|
|
10979
10979
|
if (Y.type === "group") {
|
|
10980
10980
|
var Z = Y.data, q = Y.options, K = Y.index, ne = "".concat(a.getElementId("group"), "-").concat(K), Q = "".concat(ne, "-heading");
|
|
10981
10981
|
return /* @__PURE__ */ I.createElement(o, Ce({}, g, {
|
|
@@ -10999,13 +10999,13 @@ var k_ = function(t) {
|
|
|
10999
10999
|
inputValue: v
|
|
11000
11000
|
});
|
|
11001
11001
|
if (V === null) return null;
|
|
11002
|
-
|
|
11002
|
+
G = /* @__PURE__ */ I.createElement(u, g, V);
|
|
11003
11003
|
} else {
|
|
11004
11004
|
var H = D({
|
|
11005
11005
|
inputValue: v
|
|
11006
11006
|
});
|
|
11007
11007
|
if (H === null) return null;
|
|
11008
|
-
|
|
11008
|
+
G = /* @__PURE__ */ I.createElement(d, g, H);
|
|
11009
11009
|
}
|
|
11010
11010
|
var M = {
|
|
11011
11011
|
minMenuHeight: y,
|
|
@@ -11041,7 +11041,7 @@ var k_ = function(t) {
|
|
|
11041
11041
|
isLoading: x,
|
|
11042
11042
|
maxHeight: ne,
|
|
11043
11043
|
focusedOption: p
|
|
11044
|
-
}),
|
|
11044
|
+
}), G);
|
|
11045
11045
|
}));
|
|
11046
11046
|
});
|
|
11047
11047
|
return k || E === "fixed" ? /* @__PURE__ */ I.createElement(f, Ce({}, g, {
|
|
@@ -11439,10 +11439,10 @@ const IV = Ot(
|
|
|
11439
11439
|
* Homologado con gather-select: hover:bg-gather-gray-100
|
|
11440
11440
|
*/
|
|
11441
11441
|
option: (N, R) => {
|
|
11442
|
-
let
|
|
11443
|
-
return (R.isSelected || R.isFocused) && (
|
|
11442
|
+
let G = "transparent";
|
|
11443
|
+
return (R.isSelected || R.isFocused) && (G = "#f3f4f6"), {
|
|
11444
11444
|
...N,
|
|
11445
|
-
backgroundColor:
|
|
11445
|
+
backgroundColor: G,
|
|
11446
11446
|
color: "#111827",
|
|
11447
11447
|
// text-text-primary (gather-gray-900)
|
|
11448
11448
|
cursor: R.isDisabled ? "not-allowed" : "pointer",
|
|
@@ -11458,7 +11458,7 @@ const IV = Ot(
|
|
|
11458
11458
|
// last:mb-0
|
|
11459
11459
|
},
|
|
11460
11460
|
"&:hover": {
|
|
11461
|
-
backgroundColor: R.isDisabled ?
|
|
11461
|
+
backgroundColor: R.isDisabled ? G : "#f3f4f6"
|
|
11462
11462
|
// hover:bg-gather-gray-100
|
|
11463
11463
|
}
|
|
11464
11464
|
};
|
|
@@ -11474,7 +11474,7 @@ const IV = Ot(
|
|
|
11474
11474
|
fontSize: T.fontSize,
|
|
11475
11475
|
padding: T.optionPadding
|
|
11476
11476
|
})
|
|
11477
|
-
}, j = (N) => /* @__PURE__ */
|
|
11477
|
+
}, j = (N) => /* @__PURE__ */ L("div", { className: "relative", children: [
|
|
11478
11478
|
n && /* @__PURE__ */ A(
|
|
11479
11479
|
"span",
|
|
11480
11480
|
{
|
|
@@ -11485,8 +11485,8 @@ const IV = Ot(
|
|
|
11485
11485
|
),
|
|
11486
11486
|
/* @__PURE__ */ A(w_.Control, { ...N })
|
|
11487
11487
|
] });
|
|
11488
|
-
return /* @__PURE__ */
|
|
11489
|
-
o && /* @__PURE__ */
|
|
11488
|
+
return /* @__PURE__ */ L("div", { className: B("w-full", e), children: [
|
|
11489
|
+
o && /* @__PURE__ */ L(
|
|
11490
11490
|
tr,
|
|
11491
11491
|
{
|
|
11492
11492
|
htmlFor: k,
|
|
@@ -12040,7 +12040,7 @@ function t5(e) {
|
|
|
12040
12040
|
}), [v, x]), R = I.useMemo(() => ({
|
|
12041
12041
|
reference: w,
|
|
12042
12042
|
floating: y
|
|
12043
|
-
}), [w, y]),
|
|
12043
|
+
}), [w, y]), G = I.useMemo(() => {
|
|
12044
12044
|
const V = {
|
|
12045
12045
|
position: r,
|
|
12046
12046
|
left: 0,
|
|
@@ -12066,8 +12066,8 @@ function t5(e) {
|
|
|
12066
12066
|
update: D,
|
|
12067
12067
|
refs: N,
|
|
12068
12068
|
elements: R,
|
|
12069
|
-
floatingStyles:
|
|
12070
|
-
}), [f, D, N, R,
|
|
12069
|
+
floatingStyles: G
|
|
12070
|
+
}), [f, D, N, R, G]);
|
|
12071
12071
|
}
|
|
12072
12072
|
const r5 = (e) => {
|
|
12073
12073
|
function t(r) {
|
|
@@ -12189,7 +12189,7 @@ var yb = "PopperContent", [h5, p5] = G_(yb), X_ = I.forwardRef(
|
|
|
12189
12189
|
boundary: T.filter(g5),
|
|
12190
12190
|
// with `strategy: 'fixed'`, this is the only way to get it to respect boundaries
|
|
12191
12191
|
altBoundary: _
|
|
12192
|
-
}, { refs: j, floatingStyles: N, placement: R, isPositioned:
|
|
12192
|
+
}, { refs: j, floatingStyles: N, placement: R, isPositioned: G, middlewareData: V } = t5({
|
|
12193
12193
|
// default to `fixed` strategy so users don't have to pick and we also avoid focus scroll issues
|
|
12194
12194
|
strategy: "fixed",
|
|
12195
12195
|
placement: E,
|
|
@@ -12221,8 +12221,8 @@ var yb = "PopperContent", [h5, p5] = G_(yb), X_ = I.forwardRef(
|
|
|
12221
12221
|
]
|
|
12222
12222
|
}), [H, M] = U_(R), z = ma(g);
|
|
12223
12223
|
Yt(() => {
|
|
12224
|
-
|
|
12225
|
-
}, [
|
|
12224
|
+
G && z?.();
|
|
12225
|
+
}, [G, z]);
|
|
12226
12226
|
const Y = V.arrow?.x, Z = V.arrow?.y, q = V.arrow?.centerOffset !== 0, [K, ne] = I.useState();
|
|
12227
12227
|
return Yt(() => {
|
|
12228
12228
|
b && ne(window.getComputedStyle(b).zIndex);
|
|
@@ -12233,7 +12233,7 @@ var yb = "PopperContent", [h5, p5] = G_(yb), X_ = I.forwardRef(
|
|
|
12233
12233
|
"data-radix-popper-content-wrapper": "",
|
|
12234
12234
|
style: {
|
|
12235
12235
|
...N,
|
|
12236
|
-
transform:
|
|
12236
|
+
transform: G ? N.transform : "translate(0, -200%)",
|
|
12237
12237
|
// keep off the page when measuring
|
|
12238
12238
|
minWidth: "max-content",
|
|
12239
12239
|
zIndex: K,
|
|
@@ -12270,7 +12270,7 @@ var yb = "PopperContent", [h5, p5] = G_(yb), X_ = I.forwardRef(
|
|
|
12270
12270
|
...p.style,
|
|
12271
12271
|
// if the PopperContent hasn't been placed yet (not all measurements done)
|
|
12272
12272
|
// we prevent animations so that users's animation don't kick in too early referring wrong sides
|
|
12273
|
-
animation:
|
|
12273
|
+
animation: G ? void 0 : "none"
|
|
12274
12274
|
}
|
|
12275
12275
|
}
|
|
12276
12276
|
)
|
|
@@ -12974,7 +12974,7 @@ var d4 = [" ", "Enter", "ArrowUp", "ArrowDown"], h4 = [" ", "Enter"], Ja = "Sele
|
|
|
12974
12974
|
onChange: l,
|
|
12975
12975
|
caller: Ja
|
|
12976
12976
|
}), T = I.useRef(null), _ = m ? g || !!m.closest("form") : !0, [D, j] = I.useState(/* @__PURE__ */ new Set()), N = Array.from(D).map((R) => R.props.value).join(";");
|
|
12977
|
-
return /* @__PURE__ */ A(Z_, { ...p, children: /* @__PURE__ */
|
|
12977
|
+
return /* @__PURE__ */ A(Z_, { ...p, children: /* @__PURE__ */ L(
|
|
12978
12978
|
m4,
|
|
12979
12979
|
{
|
|
12980
12980
|
required: h,
|
|
@@ -12999,18 +12999,18 @@ var d4 = [" ", "Enter", "ArrowUp", "ArrowDown"], h4 = [" ", "Enter"], Ja = "Sele
|
|
|
12999
12999
|
{
|
|
13000
13000
|
scope: e.__scopeSelect,
|
|
13001
13001
|
onNativeOptionAdd: I.useCallback((R) => {
|
|
13002
|
-
j((
|
|
13002
|
+
j((G) => new Set(G).add(R));
|
|
13003
13003
|
}, []),
|
|
13004
13004
|
onNativeOptionRemove: I.useCallback((R) => {
|
|
13005
|
-
j((
|
|
13006
|
-
const V = new Set(
|
|
13005
|
+
j((G) => {
|
|
13006
|
+
const V = new Set(G);
|
|
13007
13007
|
return V.delete(R), V;
|
|
13008
13008
|
});
|
|
13009
13009
|
}, []),
|
|
13010
13010
|
children: r
|
|
13011
13011
|
}
|
|
13012
13012
|
) }),
|
|
13013
|
-
_ ? /* @__PURE__ */
|
|
13013
|
+
_ ? /* @__PURE__ */ L(
|
|
13014
13014
|
RT,
|
|
13015
13015
|
{
|
|
13016
13016
|
"aria-hidden": !0,
|
|
@@ -13155,13 +13155,13 @@ var Wr = 10, [vT, xa] = Eo(Ka), x4 = "SelectContentImpl", w4 = /* @__PURE__ */ b
|
|
|
13155
13155
|
if ($ === ie || ($?.scrollIntoView({ block: "nearest" }), $ === ae && y && (y.scrollTop = 0), $ === J && y && (y.scrollTop = y.scrollHeight), $?.focus(), document.activeElement !== ie)) return;
|
|
13156
13156
|
},
|
|
13157
13157
|
[_, y]
|
|
13158
|
-
),
|
|
13158
|
+
), G = I.useCallback(
|
|
13159
13159
|
() => R([O, x]),
|
|
13160
13160
|
[R, O, x]
|
|
13161
13161
|
);
|
|
13162
13162
|
I.useEffect(() => {
|
|
13163
|
-
D &&
|
|
13164
|
-
}, [D,
|
|
13163
|
+
D && G();
|
|
13164
|
+
}, [D, G]);
|
|
13165
13165
|
const { onOpenChange: V, triggerPointerDownPosRef: H } = v;
|
|
13166
13166
|
I.useEffect(() => {
|
|
13167
13167
|
if (x) {
|
|
@@ -13222,7 +13222,7 @@ var Wr = 10, [vT, xa] = Eo(Ka), x4 = "SelectContentImpl", w4 = /* @__PURE__ */ b
|
|
|
13222
13222
|
selectedItem: O,
|
|
13223
13223
|
onItemLeave: Z,
|
|
13224
13224
|
itemTextRefCallback: q,
|
|
13225
|
-
focusSelectedItem:
|
|
13225
|
+
focusSelectedItem: G,
|
|
13226
13226
|
selectedItemText: k,
|
|
13227
13227
|
position: n,
|
|
13228
13228
|
isPositioned: D,
|
|
@@ -13311,14 +13311,14 @@ var S4 = "SelectItemAlignedPosition", bT = I.forwardRef((e, t) => {
|
|
|
13311
13311
|
]);
|
|
13312
13312
|
s.style.minWidth = te + "px", s.style.right = Ge + "px";
|
|
13313
13313
|
}
|
|
13314
|
-
const T = d(), _ = window.innerHeight - Wr * 2, D = p.scrollHeight, j = window.getComputedStyle(c), N = parseInt(j.borderTopWidth, 10), R = parseInt(j.paddingTop, 10),
|
|
13314
|
+
const T = d(), _ = window.innerHeight - Wr * 2, D = p.scrollHeight, j = window.getComputedStyle(c), N = parseInt(j.borderTopWidth, 10), R = parseInt(j.paddingTop, 10), G = parseInt(j.borderBottomWidth, 10), V = parseInt(j.paddingBottom, 10), H = N + R + D + V + G, M = Math.min(m.offsetHeight * 5, H), z = window.getComputedStyle(p), Y = parseInt(z.paddingTop, 10), Z = parseInt(z.paddingBottom, 10), q = C.top + C.height / 2 - Wr, K = _ - q, ne = m.offsetHeight / 2, Q = m.offsetTop + ne, ae = N + R + Q, U = H - ae;
|
|
13315
13315
|
if (ae <= q) {
|
|
13316
13316
|
const ie = T.length > 0 && m === T[T.length - 1].ref.current;
|
|
13317
13317
|
s.style.bottom = "0px";
|
|
13318
13318
|
const $ = c.clientHeight - p.offsetTop - p.offsetHeight, ce = Math.max(
|
|
13319
13319
|
K,
|
|
13320
13320
|
ne + // viewport might have padding bottom, include it to avoid a scrollable viewport
|
|
13321
|
-
(ie ? Z : 0) + $ +
|
|
13321
|
+
(ie ? Z : 0) + $ + G
|
|
13322
13322
|
), te = ae + ce;
|
|
13323
13323
|
s.style.height = te + "px";
|
|
13324
13324
|
} else {
|
|
@@ -13426,7 +13426,7 @@ nv.displayName = A4;
|
|
|
13426
13426
|
var [C4, Sb] = Eo(Ka, {}), av = "SelectViewport", xT = I.forwardRef(
|
|
13427
13427
|
(e, t) => {
|
|
13428
13428
|
const { __scopeSelect: r, nonce: n, ...a } = e, i = xa(av, r), o = Sb(av, r), s = Je(t, i.onViewportChange), l = I.useRef(0);
|
|
13429
|
-
return /* @__PURE__ */
|
|
13429
|
+
return /* @__PURE__ */ L(qe, { children: [
|
|
13430
13430
|
/* @__PURE__ */ A(
|
|
13431
13431
|
"style",
|
|
13432
13432
|
{
|
|
@@ -13579,7 +13579,7 @@ var es = "SelectItemText", PT = I.forwardRef(
|
|
|
13579
13579
|
() => /* @__PURE__ */ A("option", { value: l.value, disabled: l.disabled, children: h }, l.value),
|
|
13580
13580
|
[l.disabled, l.value, h]
|
|
13581
13581
|
), { onNativeOptionAdd: p, onNativeOptionRemove: m } = c;
|
|
13582
|
-
return Yt(() => (p(g), () => m(g)), [p, m, g]), /* @__PURE__ */
|
|
13582
|
+
return Yt(() => (p(g), () => m(g)), [p, m, g]), /* @__PURE__ */ L(qe, { children: [
|
|
13583
13583
|
/* @__PURE__ */ A($e.span, { id: l.textId, ...i, ref: d }),
|
|
13584
13584
|
l.isSelected && o.valueNode && !o.valueNodeHasChildren ? Lu.createPortal(i.children, o.valueNode) : null
|
|
13585
13585
|
] });
|
|
@@ -13756,7 +13756,7 @@ function Pc({
|
|
|
13756
13756
|
children: r,
|
|
13757
13757
|
...n
|
|
13758
13758
|
}) {
|
|
13759
|
-
return /* @__PURE__ */
|
|
13759
|
+
return /* @__PURE__ */ L(
|
|
13760
13760
|
M4,
|
|
13761
13761
|
{
|
|
13762
13762
|
"data-slot": "select-trigger",
|
|
@@ -13805,7 +13805,7 @@ function Ec({
|
|
|
13805
13805
|
position: r = "popper",
|
|
13806
13806
|
...n
|
|
13807
13807
|
}) {
|
|
13808
|
-
return /* @__PURE__ */ A(j4, { children: /* @__PURE__ */
|
|
13808
|
+
return /* @__PURE__ */ A(j4, { children: /* @__PURE__ */ L(
|
|
13809
13809
|
$4,
|
|
13810
13810
|
{
|
|
13811
13811
|
"data-slot": "select-content",
|
|
@@ -13851,7 +13851,7 @@ function lv({
|
|
|
13851
13851
|
children: t,
|
|
13852
13852
|
...r
|
|
13853
13853
|
}) {
|
|
13854
|
-
return /* @__PURE__ */
|
|
13854
|
+
return /* @__PURE__ */ L(
|
|
13855
13855
|
G4,
|
|
13856
13856
|
{
|
|
13857
13857
|
"data-slot": "select-item",
|
|
@@ -13920,7 +13920,7 @@ const Z4 = "inline-block h-1 w-1 rounded-full bg-current opacity-20", J4 = `
|
|
|
13920
13920
|
40% { opacity: 1; }
|
|
13921
13921
|
}`;
|
|
13922
13922
|
function Ab({ className: e }) {
|
|
13923
|
-
return /* @__PURE__ */
|
|
13923
|
+
return /* @__PURE__ */ L(
|
|
13924
13924
|
"span",
|
|
13925
13925
|
{
|
|
13926
13926
|
className: B("inline-flex items-center gap-0.5", e),
|
|
@@ -13984,8 +13984,8 @@ const K4 = Ot("", {
|
|
|
13984
13984
|
...p
|
|
13985
13985
|
}, m) => {
|
|
13986
13986
|
const b = I.useId();
|
|
13987
|
-
return /* @__PURE__ */
|
|
13988
|
-
o && /* @__PURE__ */
|
|
13987
|
+
return /* @__PURE__ */ L("div", { className: B("w-full", e), children: [
|
|
13988
|
+
o && /* @__PURE__ */ L(
|
|
13989
13989
|
tr,
|
|
13990
13990
|
{
|
|
13991
13991
|
htmlFor: b,
|
|
@@ -13999,14 +13999,14 @@ const K4 = Ot("", {
|
|
|
13999
13999
|
]
|
|
14000
14000
|
}
|
|
14001
14001
|
),
|
|
14002
|
-
/* @__PURE__ */
|
|
14002
|
+
/* @__PURE__ */ L(
|
|
14003
14003
|
Oc,
|
|
14004
14004
|
{
|
|
14005
14005
|
disabled: d || void 0,
|
|
14006
14006
|
value: d ? void 0 : g,
|
|
14007
14007
|
...p,
|
|
14008
14008
|
children: [
|
|
14009
|
-
/* @__PURE__ */
|
|
14009
|
+
/* @__PURE__ */ L("div", { className: "relative flex items-center", children: [
|
|
14010
14010
|
n && /* @__PURE__ */ A("span", { className: "absolute left-3 z-10 text-ui-text-muted", children: n }),
|
|
14011
14011
|
d && /* @__PURE__ */ A("span", { className: "absolute right-9 z-10 text-ui-text-muted", children: /* @__PURE__ */ A(Ab, {}) }),
|
|
14012
14012
|
/* @__PURE__ */ A(
|
|
@@ -14569,12 +14569,12 @@ var vi = (e) => dt(e) && !kc(e) ? e : {
|
|
|
14569
14569
|
const x = s ? s[0] : o, w = (_) => {
|
|
14570
14570
|
a && x.reportValidity && (x.setCustomValidity(pr(_) ? "" : _ || ""), x.reportValidity());
|
|
14571
14571
|
}, y = {}, S = _b(o), C = ol(o), O = S || C, E = (m || Eb(o)) && it(o.value) && it(v) || Tc(o) && o.value === "" || v === "" || Array.isArray(v) && !v.length, k = o3.bind(null, p, n, y), T = (_, D, j, N = Vr.maxLength, R = Vr.minLength) => {
|
|
14572
|
-
const
|
|
14572
|
+
const G = _ ? D : j;
|
|
14573
14573
|
y[p] = {
|
|
14574
14574
|
type: _ ? N : R,
|
|
14575
|
-
message:
|
|
14575
|
+
message: G,
|
|
14576
14576
|
ref: o,
|
|
14577
|
-
...k(_ ? N : R,
|
|
14577
|
+
...k(_ ? N : R, G)
|
|
14578
14578
|
};
|
|
14579
14579
|
};
|
|
14580
14580
|
if (i ? !Array.isArray(v) || !v.length : l && (!O && (E || $t(v)) || pr(v) && !v || C && !qT(s).isValid || S && !ZT(s).isValid)) {
|
|
@@ -14594,8 +14594,8 @@ var vi = (e) => dt(e) && !kc(e) ? e : {
|
|
|
14594
14594
|
const R = o.valueAsNumber || v && +v;
|
|
14595
14595
|
$t(j.value) || (_ = R > j.value), $t(N.value) || (D = R < N.value);
|
|
14596
14596
|
} else {
|
|
14597
|
-
const R = o.valueAsDate || new Date(v),
|
|
14598
|
-
Xt(j.value) && v && (_ = V ?
|
|
14597
|
+
const R = o.valueAsDate || new Date(v), G = (M) => /* @__PURE__ */ new Date((/* @__PURE__ */ new Date()).toDateString() + " " + M), V = o.type == "time", H = o.type == "week";
|
|
14598
|
+
Xt(j.value) && v && (_ = V ? G(v) > G(j.value) : H ? v > j.value : R > new Date(j.value)), Xt(N.value) && v && (D = V ? G(v) < G(N.value) : H ? v < N.value : R < new Date(N.value));
|
|
14599
14599
|
}
|
|
14600
14600
|
if ((_ || D) && (T(!!_, j.message, N.message, Vr.max, Vr.min), !n))
|
|
14601
14601
|
return w(y[p].message), y;
|
|
@@ -14873,7 +14873,7 @@ function b3(e = {}) {
|
|
|
14873
14873
|
s.unMount = /* @__PURE__ */ new Set();
|
|
14874
14874
|
}, N = (F, X) => !t.disabled && (F && X && tt(i, F, X), !mr(ne(), a)), R = (F, X, W) => cv(F, s, {
|
|
14875
14875
|
...o.mount ? i : it(X) ? a : Xt(F) ? { [F]: X } : X
|
|
14876
|
-
}, W, X),
|
|
14876
|
+
}, W, X), G = (F) => Ob(fe(o.mount ? i : a, F, t.shouldUnregister ? fe(a, F, []) : [])), V = (F, X, W = {}, re = !1) => {
|
|
14877
14877
|
const oe = fe(n, F);
|
|
14878
14878
|
let ue = X;
|
|
14879
14879
|
if (oe) {
|
|
@@ -15246,7 +15246,7 @@ function b3(e = {}) {
|
|
|
15246
15246
|
_setFieldArray: x,
|
|
15247
15247
|
_setDisabledField: te,
|
|
15248
15248
|
_setErrors: y,
|
|
15249
|
-
_getFieldArray:
|
|
15249
|
+
_getFieldArray: G,
|
|
15250
15250
|
_reset: $r,
|
|
15251
15251
|
_resetDefaultValues: () => zt(t.defaultValues) && t.defaultValues().then((F) => {
|
|
15252
15252
|
qt(F, t.resetOptions), h.state.next({
|
|
@@ -15485,7 +15485,7 @@ const w3 = Ot("", {
|
|
|
15485
15485
|
), D = I.useCallback(
|
|
15486
15486
|
(N) => {
|
|
15487
15487
|
if (p && N.key.length === 1 && !N.ctrlKey && !N.metaKey) {
|
|
15488
|
-
const R = N.target,
|
|
15488
|
+
const R = N.target, G = R.selectionStart ?? 0, V = R.selectionEnd ?? 0, H = R.value.slice(0, G) + N.key + R.value.slice(V);
|
|
15489
15489
|
p(H) !== H && N.preventDefault();
|
|
15490
15490
|
}
|
|
15491
15491
|
w?.(N);
|
|
@@ -15495,18 +15495,18 @@ const w3 = Ot("", {
|
|
|
15495
15495
|
(N) => {
|
|
15496
15496
|
let R = N.target.value;
|
|
15497
15497
|
p && (R = p(R));
|
|
15498
|
-
const
|
|
15498
|
+
const G = Object.getOwnPropertyDescriptor(
|
|
15499
15499
|
window.HTMLInputElement.prototype,
|
|
15500
15500
|
"value"
|
|
15501
15501
|
)?.set;
|
|
15502
|
-
|
|
15502
|
+
G && R !== N.target.value && G.call(N.target, R), k(R);
|
|
15503
15503
|
const V = m ? m(R) : R;
|
|
15504
|
-
|
|
15504
|
+
G && G.call(N.target, V), x?.(N);
|
|
15505
15505
|
},
|
|
15506
15506
|
[p, m, x]
|
|
15507
15507
|
);
|
|
15508
|
-
return /* @__PURE__ */
|
|
15509
|
-
l && /* @__PURE__ */
|
|
15508
|
+
return /* @__PURE__ */ L("div", { className: "w-full", children: [
|
|
15509
|
+
l && /* @__PURE__ */ L(
|
|
15510
15510
|
tr,
|
|
15511
15511
|
{
|
|
15512
15512
|
htmlFor: O,
|
|
@@ -15520,7 +15520,7 @@ const w3 = Ot("", {
|
|
|
15520
15520
|
]
|
|
15521
15521
|
}
|
|
15522
15522
|
),
|
|
15523
|
-
/* @__PURE__ */
|
|
15523
|
+
/* @__PURE__ */ L(
|
|
15524
15524
|
"div",
|
|
15525
15525
|
{
|
|
15526
15526
|
className: B(
|
|
@@ -15564,7 +15564,7 @@ const w3 = Ot("", {
|
|
|
15564
15564
|
]
|
|
15565
15565
|
}
|
|
15566
15566
|
),
|
|
15567
|
-
(o || h && d) && /* @__PURE__ */
|
|
15567
|
+
(o || h && d) && /* @__PURE__ */ L("div", { className: "mt-1 flex items-center justify-between px-1", children: [
|
|
15568
15568
|
o ? /* @__PURE__ */ A(
|
|
15569
15569
|
"p",
|
|
15570
15570
|
{
|
|
@@ -15575,7 +15575,7 @@ const w3 = Ot("", {
|
|
|
15575
15575
|
children: o
|
|
15576
15576
|
}
|
|
15577
15577
|
) : /* @__PURE__ */ A("span", {}),
|
|
15578
|
-
h && d && /* @__PURE__ */
|
|
15578
|
+
h && d && /* @__PURE__ */ L(
|
|
15579
15579
|
"p",
|
|
15580
15580
|
{
|
|
15581
15581
|
className: B(
|
|
@@ -17660,7 +17660,7 @@ function J9(e) {
|
|
|
17660
17660
|
t.classNames
|
|
17661
17661
|
]);
|
|
17662
17662
|
t.today || (t = { ...t, today: o.today() });
|
|
17663
|
-
const { captionLayout: c, mode: f, navLayout: u, numberOfMonths: d = 1, onDayBlur: h, onDayClick: g, onDayFocus: p, onDayKeyDown: m, onDayMouseEnter: b, onDayMouseLeave: v, onNextClick: x, onPrevClick: w, showWeekNumber: y, styles: S } = t, { formatCaption: C, formatDay: O, formatMonthDropdown: E, formatWeekNumber: k, formatWeekNumberHeader: T, formatWeekdayName: _, formatYearDropdown: D } = a, j = L9(t, o), { days: N, months: R, navStart:
|
|
17663
|
+
const { captionLayout: c, mode: f, navLayout: u, numberOfMonths: d = 1, onDayBlur: h, onDayClick: g, onDayFocus: p, onDayKeyDown: m, onDayMouseEnter: b, onDayMouseLeave: v, onNextClick: x, onPrevClick: w, showWeekNumber: y, styles: S } = t, { formatCaption: C, formatDay: O, formatMonthDropdown: E, formatWeekNumber: k, formatWeekNumberHeader: T, formatWeekdayName: _, formatYearDropdown: D } = a, j = L9(t, o), { days: N, months: R, navStart: G, navEnd: V, previousMonth: H, nextMonth: M, goToMonth: z } = j, Y = i9(N, t, G, V, o), { isSelected: Z, select: q, selected: K } = Z9(t, o) ?? {}, { blur: ne, focused: Q, isFocusTarget: ae, moveFocus: U, setFocused: J } = V9(t, j, Y, Z ?? (() => !1), o), { labelDayButton: ie, labelGridcell: $, labelGrid: ce, labelMonthDropdown: te, labelNav: ge, labelPrevious: Ee, labelNext: Ge, labelWeekday: Nt, labelWeekNumber: Ft, labelWeekNumberHeader: $r, labelYearDropdown: qt } = i, Ut = st(() => O9(o, t.ISOWeek, t.broadcastCalendar, t.today), [o, t.ISOWeek, t.broadcastCalendar, t.today]), tn = f !== void 0 || g !== void 0, Br = Ne(() => {
|
|
17664
17664
|
H && (z(H), w?.(H));
|
|
17665
17665
|
}, [H, z, w]), nr = Ne(() => {
|
|
17666
17666
|
M && (z(M), x?.(M));
|
|
@@ -17759,7 +17759,7 @@ function J9(e) {
|
|
|
17759
17759
|
n.DropdownNav,
|
|
17760
17760
|
{ className: l[ye.Dropdowns], style: S?.[ye.Dropdowns] },
|
|
17761
17761
|
(() => {
|
|
17762
|
-
const Oe = c === "dropdown" || c === "dropdown-months" ? P.createElement(n.MonthsDropdown, { key: "month", className: l[ye.MonthsDropdown], "aria-label": te(), classNames: l, components: n, disabled: !!t.disableNavigation, onChange: le(Pe.date), options: A9(Pe.date,
|
|
17762
|
+
const Oe = c === "dropdown" || c === "dropdown-months" ? P.createElement(n.MonthsDropdown, { key: "month", className: l[ye.MonthsDropdown], "aria-label": te(), classNames: l, components: n, disabled: !!t.disableNavigation, onChange: le(Pe.date), options: A9(Pe.date, G, V, a, o), style: S?.[ye.Dropdown], value: o.getMonth(Pe.date) }) : P.createElement("span", { key: "month" }, E(Pe.date, o)), je = c === "dropdown" || c === "dropdown-years" ? P.createElement(n.YearsDropdown, { key: "year", className: l[ye.YearsDropdown], "aria-label": qt(o.options), classNames: l, components: n, disabled: !!t.disableNavigation, onChange: me(Pe.date), options: I9(G, V, a, o, !!t.reverseYears), style: S?.[ye.Dropdown], value: o.getYear(Pe.date) }) : P.createElement("span", { key: "year" }, D(Pe.date, o));
|
|
17763
17763
|
return o.getMonthYearOrder() === "year-first" ? [je, Oe] : [Oe, je];
|
|
17764
17764
|
})(),
|
|
17765
17765
|
P.createElement("span", { role: "status", "aria-live": "polite", style: {
|
|
@@ -18098,8 +18098,8 @@ const eH = Ot(
|
|
|
18098
18098
|
"border-b bg-background p-2 sm:p-3",
|
|
18099
18099
|
r?.monthYearContainer
|
|
18100
18100
|
),
|
|
18101
|
-
children: /* @__PURE__ */
|
|
18102
|
-
/* @__PURE__ */
|
|
18101
|
+
children: /* @__PURE__ */ L("div", { className: "flex gap-1.5 sm:gap-2", children: [
|
|
18102
|
+
/* @__PURE__ */ L(
|
|
18103
18103
|
Oc,
|
|
18104
18104
|
{
|
|
18105
18105
|
value: Ed[e.getMonth()],
|
|
@@ -18119,7 +18119,7 @@ const eH = Ot(
|
|
|
18119
18119
|
]
|
|
18120
18120
|
}
|
|
18121
18121
|
),
|
|
18122
|
-
/* @__PURE__ */
|
|
18122
|
+
/* @__PURE__ */ L(
|
|
18123
18123
|
Oc,
|
|
18124
18124
|
{
|
|
18125
18125
|
value: e.getFullYear().toString(),
|
|
@@ -18229,15 +18229,15 @@ const Bb = I.forwardRef(
|
|
|
18229
18229
|
r?.(T ?? void 0);
|
|
18230
18230
|
return;
|
|
18231
18231
|
}
|
|
18232
|
-
const D = t.from, j = t.to, N = _.getTime(), R = D.getTime(),
|
|
18233
|
-
N > R && N <
|
|
18232
|
+
const D = t.from, j = t.to, N = _.getTime(), R = D.getTime(), G = j.getTime();
|
|
18233
|
+
N > R && N < G ? r?.({ from: _, to: void 0 }) : N <= R ? r?.({ from: _, to: j }) : r?.({ from: D, to: _ });
|
|
18234
18234
|
}
|
|
18235
18235
|
};
|
|
18236
18236
|
return g !== void 0 ? C({
|
|
18237
18237
|
...g === 1 ? h?.range?.from : h?.range?.to,
|
|
18238
18238
|
...k,
|
|
18239
18239
|
numberOfMonths: g
|
|
18240
|
-
}) : /* @__PURE__ */
|
|
18240
|
+
}) : /* @__PURE__ */ L(qe, { children: [
|
|
18241
18241
|
C(
|
|
18242
18242
|
{
|
|
18243
18243
|
...h?.range?.from,
|
|
@@ -18265,7 +18265,7 @@ const Bb = I.forwardRef(
|
|
|
18265
18265
|
a,
|
|
18266
18266
|
p
|
|
18267
18267
|
]);
|
|
18268
|
-
return /* @__PURE__ */
|
|
18268
|
+
return /* @__PURE__ */ L(
|
|
18269
18269
|
"div",
|
|
18270
18270
|
{
|
|
18271
18271
|
ref: m,
|
|
@@ -18349,16 +18349,16 @@ const rH = {
|
|
|
18349
18349
|
ia(t.from, w),
|
|
18350
18350
|
h,
|
|
18351
18351
|
{ locale: En }
|
|
18352
|
-
) : "" : "", [t, e, h, g, p, w]),
|
|
18352
|
+
) : "" : "", [t, e, h, g, p, w]), G = I.useCallback(
|
|
18353
18353
|
(V) => {
|
|
18354
18354
|
const H = !!t?.from;
|
|
18355
18355
|
r?.(V), v && e === "single" && V?.from && j(!1), v && e === "range" && x && H && V?.from && V?.to && j(!1);
|
|
18356
18356
|
},
|
|
18357
18357
|
[r, v, x, e, t]
|
|
18358
18358
|
);
|
|
18359
|
-
return /* @__PURE__ */
|
|
18360
|
-
n && /* @__PURE__ */
|
|
18361
|
-
/* @__PURE__ */
|
|
18359
|
+
return /* @__PURE__ */ L("div", { className: B("space-y-2", o, s?.container), children: [
|
|
18360
|
+
n && /* @__PURE__ */ L("div", { className: B("space-y-1", s?.labelContainer), children: [
|
|
18361
|
+
/* @__PURE__ */ L(
|
|
18362
18362
|
tr,
|
|
18363
18363
|
{
|
|
18364
18364
|
className: B(
|
|
@@ -18392,8 +18392,8 @@ const rH = {
|
|
|
18392
18392
|
}
|
|
18393
18393
|
)
|
|
18394
18394
|
] }),
|
|
18395
|
-
/* @__PURE__ */
|
|
18396
|
-
/* @__PURE__ */ A(kb, { asChild: !0, children: /* @__PURE__ */
|
|
18395
|
+
/* @__PURE__ */ L(fl, { open: D, onOpenChange: N, children: [
|
|
18396
|
+
/* @__PURE__ */ A(kb, { asChild: !0, children: /* @__PURE__ */ L("div", { className: B("relative", s?.inputWrapper), children: [
|
|
18397
18397
|
/* @__PURE__ */ A(
|
|
18398
18398
|
ll,
|
|
18399
18399
|
{
|
|
@@ -18436,7 +18436,7 @@ const rH = {
|
|
|
18436
18436
|
{
|
|
18437
18437
|
mode: e,
|
|
18438
18438
|
selected: t,
|
|
18439
|
-
onSelect:
|
|
18439
|
+
onSelect: G,
|
|
18440
18440
|
minDate: c,
|
|
18441
18441
|
maxDate: f,
|
|
18442
18442
|
disabledDates: u,
|
|
@@ -18453,7 +18453,7 @@ const rH = {
|
|
|
18453
18453
|
}
|
|
18454
18454
|
)
|
|
18455
18455
|
] }),
|
|
18456
|
-
m && t?.from && /* @__PURE__ */
|
|
18456
|
+
m && t?.from && /* @__PURE__ */ L(
|
|
18457
18457
|
"p",
|
|
18458
18458
|
{
|
|
18459
18459
|
className: B(
|
|
@@ -18602,7 +18602,7 @@ var Rk = I.forwardRef(
|
|
|
18602
18602
|
name: n,
|
|
18603
18603
|
form: f,
|
|
18604
18604
|
value: l,
|
|
18605
|
-
internal_do_not_use_render: ({ isFormControl: d }) => /* @__PURE__ */
|
|
18605
|
+
internal_do_not_use_render: ({ isFormControl: d }) => /* @__PURE__ */ L(qe, { children: [
|
|
18606
18606
|
/* @__PURE__ */ A(
|
|
18607
18607
|
Mk,
|
|
18608
18608
|
{
|
|
@@ -18781,8 +18781,8 @@ const Lk = I.forwardRef(
|
|
|
18781
18781
|
"flex",
|
|
18782
18782
|
i === "row" ? "flex-row flex-wrap gap-x-4 gap-y-2" : "flex-col gap-y-1"
|
|
18783
18783
|
);
|
|
18784
|
-
return /* @__PURE__ */
|
|
18785
|
-
r && /* @__PURE__ */
|
|
18784
|
+
return /* @__PURE__ */ L("div", { ref: h, className: B("w-full", c), ...d, children: [
|
|
18785
|
+
r && /* @__PURE__ */ L(tr, { className: "mb-1.5 block px-1 text-sm font-normal text-ui-text-primary", children: [
|
|
18786
18786
|
r,
|
|
18787
18787
|
a && /* @__PURE__ */ A("span", { className: "ml-0.5 text-destructive", children: "*" })
|
|
18788
18788
|
] }),
|
|
@@ -18799,7 +18799,7 @@ const Lk = I.forwardRef(
|
|
|
18799
18799
|
"mt-0.5 data-[state=checked]:border-primary data-[state=checked]:bg-primary data-[state=checked]:text-white"
|
|
18800
18800
|
)
|
|
18801
18801
|
}
|
|
18802
|
-
), T = /* @__PURE__ */
|
|
18802
|
+
), T = /* @__PURE__ */ L("div", { className: "flex flex-1 flex-col", children: [
|
|
18803
18803
|
/* @__PURE__ */ A(
|
|
18804
18804
|
tr,
|
|
18805
18805
|
{
|
|
@@ -18813,10 +18813,10 @@ const Lk = I.forwardRef(
|
|
|
18813
18813
|
),
|
|
18814
18814
|
y.subLabel && /* @__PURE__ */ A("p", { className: "mt-0.5 text-xs leading-relaxed text-gather-gray-500", children: y.subLabel })
|
|
18815
18815
|
] });
|
|
18816
|
-
return /* @__PURE__ */ A("div", { className: "flex items-start gap-2", children: o === "left" ? /* @__PURE__ */
|
|
18816
|
+
return /* @__PURE__ */ A("div", { className: "flex items-start gap-2", children: o === "left" ? /* @__PURE__ */ L(qe, { children: [
|
|
18817
18817
|
T,
|
|
18818
18818
|
k
|
|
18819
|
-
] }) : /* @__PURE__ */
|
|
18819
|
+
] }) : /* @__PURE__ */ L(qe, { children: [
|
|
18820
18820
|
k,
|
|
18821
18821
|
T
|
|
18822
18822
|
] }) }, E);
|
|
@@ -18911,8 +18911,8 @@ const sH = Ot(
|
|
|
18911
18911
|
}),
|
|
18912
18912
|
[r]
|
|
18913
18913
|
);
|
|
18914
|
-
return /* @__PURE__ */
|
|
18915
|
-
l && /* @__PURE__ */
|
|
18914
|
+
return /* @__PURE__ */ L("div", { className: "w-full", ...b, ref: v, children: [
|
|
18915
|
+
l && /* @__PURE__ */ L(
|
|
18916
18916
|
tr,
|
|
18917
18917
|
{
|
|
18918
18918
|
htmlFor: w,
|
|
@@ -18926,7 +18926,7 @@ const sH = Ot(
|
|
|
18926
18926
|
]
|
|
18927
18927
|
}
|
|
18928
18928
|
),
|
|
18929
|
-
/* @__PURE__ */
|
|
18929
|
+
/* @__PURE__ */ L(
|
|
18930
18930
|
"div",
|
|
18931
18931
|
{
|
|
18932
18932
|
className: B(
|
|
@@ -18942,7 +18942,7 @@ const sH = Ot(
|
|
|
18942
18942
|
{
|
|
18943
18943
|
style: { width: `${p}%` },
|
|
18944
18944
|
className: "flex items-center border-r border-ui-text-inverse",
|
|
18945
|
-
children: /* @__PURE__ */
|
|
18945
|
+
children: /* @__PURE__ */ L(
|
|
18946
18946
|
Oc,
|
|
18947
18947
|
{
|
|
18948
18948
|
onValueChange: O,
|
|
@@ -19096,8 +19096,8 @@ const fH = Ot("", {
|
|
|
19096
19096
|
// Resto de props nativas del textarea
|
|
19097
19097
|
}, m) => {
|
|
19098
19098
|
const b = I.useId(), v = c ?? b, x = typeof g == "string" ? g.length : 0;
|
|
19099
|
-
return /* @__PURE__ */
|
|
19100
|
-
o && /* @__PURE__ */
|
|
19099
|
+
return /* @__PURE__ */ L("div", { className: B("w-full", d && "col-span-full"), children: [
|
|
19100
|
+
o && /* @__PURE__ */ L(
|
|
19101
19101
|
tr,
|
|
19102
19102
|
{
|
|
19103
19103
|
htmlFor: v,
|
|
@@ -19138,7 +19138,7 @@ const fH = Ot("", {
|
|
|
19138
19138
|
...p
|
|
19139
19139
|
}
|
|
19140
19140
|
) }),
|
|
19141
|
-
/* @__PURE__ */
|
|
19141
|
+
/* @__PURE__ */ L("div", { className: "mt-1 flex items-center justify-between", children: [
|
|
19142
19142
|
a && /* @__PURE__ */ A(
|
|
19143
19143
|
"p",
|
|
19144
19144
|
{
|
|
@@ -19150,7 +19150,7 @@ const fH = Ot("", {
|
|
|
19150
19150
|
children: a
|
|
19151
19151
|
}
|
|
19152
19152
|
),
|
|
19153
|
-
u && f && /* @__PURE__ */
|
|
19153
|
+
u && f && /* @__PURE__ */ L(
|
|
19154
19154
|
"p",
|
|
19155
19155
|
{
|
|
19156
19156
|
className: B(
|
|
@@ -19346,7 +19346,7 @@ var AH = Hk, CH = Yk, Lb = "Radio", [OH, Uk] = zn(Lb), [IH, PH] = OH(Lb), Zk = I
|
|
|
19346
19346
|
form: c,
|
|
19347
19347
|
...f
|
|
19348
19348
|
} = e, [u, d] = I.useState(null), h = Je(t, (m) => d(m)), g = I.useRef(!1), p = u ? c || !!u.closest("form") : !0;
|
|
19349
|
-
return /* @__PURE__ */
|
|
19349
|
+
return /* @__PURE__ */ L(IH, { scope: r, checked: a, disabled: o, children: [
|
|
19350
19350
|
/* @__PURE__ */ A(
|
|
19351
19351
|
$e.button,
|
|
19352
19352
|
{
|
|
@@ -19618,14 +19618,14 @@ const $w = {
|
|
|
19618
19618
|
"flex",
|
|
19619
19619
|
a === "row" ? "flex-row flex-wrap gap-x-4 gap-y-2" : "flex-col gap-y-2"
|
|
19620
19620
|
);
|
|
19621
|
-
return /* @__PURE__ */
|
|
19621
|
+
return /* @__PURE__ */ L(
|
|
19622
19622
|
"div",
|
|
19623
19623
|
{
|
|
19624
19624
|
ref: p,
|
|
19625
19625
|
className: B("w-full", u && "col-span-full", c),
|
|
19626
19626
|
...g,
|
|
19627
19627
|
children: [
|
|
19628
|
-
r && /* @__PURE__ */
|
|
19628
|
+
r && /* @__PURE__ */ L(
|
|
19629
19629
|
tr,
|
|
19630
19630
|
{
|
|
19631
19631
|
className: B(
|
|
@@ -19647,7 +19647,7 @@ const $w = {
|
|
|
19647
19647
|
className: b,
|
|
19648
19648
|
children: e.map((v, x) => {
|
|
19649
19649
|
const w = d ? `${d}-${v.value}-${x}` : `${v.value}-${x}`;
|
|
19650
|
-
return /* @__PURE__ */
|
|
19650
|
+
return /* @__PURE__ */ L(
|
|
19651
19651
|
"div",
|
|
19652
19652
|
{
|
|
19653
19653
|
className: "flex items-center gap-2",
|
|
@@ -19793,7 +19793,7 @@ const Bw = Ot("flex flex-col", {
|
|
|
19793
19793
|
),
|
|
19794
19794
|
children: /* @__PURE__ */ A(Vo, {})
|
|
19795
19795
|
}
|
|
19796
|
-
) : /* @__PURE__ */
|
|
19796
|
+
) : /* @__PURE__ */ L(
|
|
19797
19797
|
"div",
|
|
19798
19798
|
{
|
|
19799
19799
|
ref: c,
|
|
@@ -19805,7 +19805,7 @@ const Bw = Ot("flex flex-col", {
|
|
|
19805
19805
|
l
|
|
19806
19806
|
),
|
|
19807
19807
|
children: [
|
|
19808
|
-
i === "above" && /* @__PURE__ */
|
|
19808
|
+
i === "above" && /* @__PURE__ */ L(qe, { children: [
|
|
19809
19809
|
e && /* @__PURE__ */ A("h3", { className: "px-1 text-lg font-medium text-ui-text-primary", children: e }),
|
|
19810
19810
|
t && /* @__PURE__ */ A(
|
|
19811
19811
|
"p",
|
|
@@ -19819,12 +19819,12 @@ const Bw = Ot("flex flex-col", {
|
|
|
19819
19819
|
),
|
|
19820
19820
|
n && /* @__PURE__ */ A(Vo, {})
|
|
19821
19821
|
] }),
|
|
19822
|
-
i === "inline" && /* @__PURE__ */
|
|
19822
|
+
i === "inline" && /* @__PURE__ */ L("div", { className: "flex items-center gap-3", children: [
|
|
19823
19823
|
/* @__PURE__ */ A(Vo, { className: "flex-1" }),
|
|
19824
19824
|
e && /* @__PURE__ */ A("span", { className: "whitespace-nowrap text-lg font-medium text-ui-text-primary", children: e }),
|
|
19825
19825
|
n && /* @__PURE__ */ A(Vo, {})
|
|
19826
19826
|
] }),
|
|
19827
|
-
i === "below" && /* @__PURE__ */
|
|
19827
|
+
i === "below" && /* @__PURE__ */ L(qe, { children: [
|
|
19828
19828
|
n && /* @__PURE__ */ A(Vo, {}),
|
|
19829
19829
|
e && /* @__PURE__ */ A("h3", { className: "mt-2 px-1 text-lg font-medium text-ui-text-primary", children: e }),
|
|
19830
19830
|
t && /* @__PURE__ */ A(
|
|
@@ -19912,8 +19912,8 @@ const Bw = Ot("flex flex-col", {
|
|
|
19912
19912
|
v(E.name), d?.(E);
|
|
19913
19913
|
}
|
|
19914
19914
|
};
|
|
19915
|
-
return /* @__PURE__ */
|
|
19916
|
-
t && /* @__PURE__ */
|
|
19915
|
+
return /* @__PURE__ */ L("div", { className: "w-full", children: [
|
|
19916
|
+
t && /* @__PURE__ */ L(
|
|
19917
19917
|
tr,
|
|
19918
19918
|
{
|
|
19919
19919
|
htmlFor: m,
|
|
@@ -19927,7 +19927,7 @@ const Bw = Ot("flex flex-col", {
|
|
|
19927
19927
|
]
|
|
19928
19928
|
}
|
|
19929
19929
|
),
|
|
19930
|
-
/* @__PURE__ */
|
|
19930
|
+
/* @__PURE__ */ L("div", { className: "relative", children: [
|
|
19931
19931
|
/* @__PURE__ */ A(
|
|
19932
19932
|
ll,
|
|
19933
19933
|
{
|
|
@@ -19941,7 +19941,7 @@ const Bw = Ot("flex flex-col", {
|
|
|
19941
19941
|
...h
|
|
19942
19942
|
}
|
|
19943
19943
|
),
|
|
19944
|
-
/* @__PURE__ */
|
|
19944
|
+
/* @__PURE__ */ L(
|
|
19945
19945
|
"label",
|
|
19946
19946
|
{
|
|
19947
19947
|
htmlFor: m,
|
|
@@ -20053,7 +20053,7 @@ const Bw = Ot("flex flex-col", {
|
|
|
20053
20053
|
const q = u !== void 0 && u !== "" ? R(u) : "";
|
|
20054
20054
|
C(q);
|
|
20055
20055
|
}, [u, R, p, m]);
|
|
20056
|
-
const
|
|
20056
|
+
const G = I.useMemo(() => f ? HH(f, S) : [], [f, S]), V = I.useCallback(
|
|
20057
20057
|
(q) => {
|
|
20058
20058
|
q.disabled || (C(q.label), E(!1), T(-1), d?.(q.value));
|
|
20059
20059
|
},
|
|
@@ -20068,14 +20068,14 @@ const Bw = Ot("flex flex-col", {
|
|
|
20068
20068
|
N || j && E(!0);
|
|
20069
20069
|
}, [N, j]), z = I.useCallback(
|
|
20070
20070
|
(q, K) => {
|
|
20071
|
-
const ne =
|
|
20071
|
+
const ne = G.length;
|
|
20072
20072
|
if (ne === 0) return -1;
|
|
20073
20073
|
let Q = q;
|
|
20074
20074
|
for (let ae = 0; ae < ne; ae++)
|
|
20075
|
-
if (Q = (Q + K + ne) % ne, !
|
|
20075
|
+
if (Q = (Q + K + ne) % ne, !G[Q].disabled) return Q;
|
|
20076
20076
|
return q;
|
|
20077
20077
|
},
|
|
20078
|
-
[
|
|
20078
|
+
[G]
|
|
20079
20079
|
), Y = I.useCallback(
|
|
20080
20080
|
(q) => {
|
|
20081
20081
|
if (!N)
|
|
@@ -20094,7 +20094,7 @@ const Bw = Ot("flex flex-col", {
|
|
|
20094
20094
|
break;
|
|
20095
20095
|
}
|
|
20096
20096
|
case "Enter": {
|
|
20097
|
-
q.preventDefault(), O && k >= 0 && k <
|
|
20097
|
+
q.preventDefault(), O && k >= 0 && k < G.length && V(G[k]);
|
|
20098
20098
|
break;
|
|
20099
20099
|
}
|
|
20100
20100
|
case "Escape": {
|
|
@@ -20108,7 +20108,7 @@ const Bw = Ot("flex flex-col", {
|
|
|
20108
20108
|
O,
|
|
20109
20109
|
j,
|
|
20110
20110
|
k,
|
|
20111
|
-
|
|
20111
|
+
G,
|
|
20112
20112
|
z,
|
|
20113
20113
|
V
|
|
20114
20114
|
]
|
|
@@ -20123,8 +20123,8 @@ const Bw = Ot("flex flex-col", {
|
|
|
20123
20123
|
onOpenChange: (q) => {
|
|
20124
20124
|
E(q), q || T(-1);
|
|
20125
20125
|
},
|
|
20126
|
-
children: /* @__PURE__ */
|
|
20127
|
-
s && /* @__PURE__ */
|
|
20126
|
+
children: /* @__PURE__ */ L("div", { ref: _, className: B("relative w-full", e), children: [
|
|
20127
|
+
s && /* @__PURE__ */ L(
|
|
20128
20128
|
tr,
|
|
20129
20129
|
{
|
|
20130
20130
|
htmlFor: y,
|
|
@@ -20138,7 +20138,7 @@ const Bw = Ot("flex flex-col", {
|
|
|
20138
20138
|
]
|
|
20139
20139
|
}
|
|
20140
20140
|
),
|
|
20141
|
-
/* @__PURE__ */ A(uk, { asChild: !0, children: /* @__PURE__ */
|
|
20141
|
+
/* @__PURE__ */ A(uk, { asChild: !0, children: /* @__PURE__ */ L(
|
|
20142
20142
|
"div",
|
|
20143
20143
|
{
|
|
20144
20144
|
className: B(
|
|
@@ -20218,7 +20218,7 @@ const Bw = Ot("flex flex-col", {
|
|
|
20218
20218
|
"max-h-60 overflow-auto rounded-md border border-ui-border",
|
|
20219
20219
|
"bg-ui-background-surface shadow-md"
|
|
20220
20220
|
),
|
|
20221
|
-
children: /* @__PURE__ */ A("div", { role: "listbox", children:
|
|
20221
|
+
children: /* @__PURE__ */ A("div", { role: "listbox", children: G.length === 0 ? /* @__PURE__ */ A("div", { className: "px-4 py-2 text-sm text-ui-text-muted", children: h }) : G.map((q, K) => /* @__PURE__ */ A(
|
|
20222
20222
|
"div",
|
|
20223
20223
|
{
|
|
20224
20224
|
id: Z(K),
|
|
@@ -20355,12 +20355,12 @@ const Lw = (e, t) => e.length <= t ? e : `${e.slice(0, t)}...`, UH = (e, t) => {
|
|
|
20355
20355
|
groupSelectable: v = !0,
|
|
20356
20356
|
...x
|
|
20357
20357
|
}, w) => {
|
|
20358
|
-
const y = I.useId(), S = b ?? y, C = `${S}-listbox`, [O, E] = I.useState(!1), [k, T] = I.useState(""), [_, D] = I.useState(-1), j = I.useRef(null), N = I.useRef(null), R = m || g,
|
|
20358
|
+
const y = I.useId(), S = b ?? y, C = `${S}-listbox`, [O, E] = I.useState(!1), [k, T] = I.useState(""), [_, D] = I.useState(-1), j = I.useRef(null), N = I.useRef(null), R = m || g, G = I.useMemo(
|
|
20359
20359
|
() => UH(t, k),
|
|
20360
20360
|
[t, k]
|
|
20361
20361
|
), V = I.useMemo(
|
|
20362
|
-
() => eX(
|
|
20363
|
-
[
|
|
20362
|
+
() => eX(G),
|
|
20363
|
+
[G]
|
|
20364
20364
|
), H = I.useMemo(
|
|
20365
20365
|
() => {
|
|
20366
20366
|
if (!r) return null;
|
|
@@ -20462,8 +20462,8 @@ const Lw = (e, t) => e.length <= t ? e : `${e.slice(0, t)}...`, UH = (e, t) => {
|
|
|
20462
20462
|
onOpenChange: ($) => {
|
|
20463
20463
|
R || E($);
|
|
20464
20464
|
},
|
|
20465
|
-
children: /* @__PURE__ */
|
|
20466
|
-
l && /* @__PURE__ */
|
|
20465
|
+
children: /* @__PURE__ */ L("div", { className: B("relative w-full", e), children: [
|
|
20466
|
+
l && /* @__PURE__ */ L(
|
|
20467
20467
|
tr,
|
|
20468
20468
|
{
|
|
20469
20469
|
htmlFor: S,
|
|
@@ -20477,7 +20477,7 @@ const Lw = (e, t) => e.length <= t ? e : `${e.slice(0, t)}...`, UH = (e, t) => {
|
|
|
20477
20477
|
]
|
|
20478
20478
|
}
|
|
20479
20479
|
),
|
|
20480
|
-
/* @__PURE__ */ A(uk, { asChild: !0, children: /* @__PURE__ */
|
|
20480
|
+
/* @__PURE__ */ A(uk, { asChild: !0, children: /* @__PURE__ */ L(
|
|
20481
20481
|
"button",
|
|
20482
20482
|
{
|
|
20483
20483
|
ref: ($) => {
|
|
@@ -20503,7 +20503,7 @@ const Lw = (e, t) => e.length <= t ? e : `${e.slice(0, t)}...`, UH = (e, t) => {
|
|
|
20503
20503
|
...x,
|
|
20504
20504
|
children: [
|
|
20505
20505
|
/* @__PURE__ */ A("span", { className: "flex-1 truncate text-left", children: g ? /* @__PURE__ */ A("span", { className: "text-ui-text-muted", children: p ?? "Cargando opciones..." }) : H ? /* @__PURE__ */ A("span", { children: H }) : /* @__PURE__ */ A("span", { className: "text-ui-text-muted", children: a }) }),
|
|
20506
|
-
/* @__PURE__ */
|
|
20506
|
+
/* @__PURE__ */ L("span", { className: "flex shrink-0 items-center gap-1", children: [
|
|
20507
20507
|
g && /* @__PURE__ */ A(Ab, { className: "mr-1" }),
|
|
20508
20508
|
!R && !g && r && H && /* @__PURE__ */ A(
|
|
20509
20509
|
"button",
|
|
@@ -20525,7 +20525,7 @@ const Lw = (e, t) => e.length <= t ? e : `${e.slice(0, t)}...`, UH = (e, t) => {
|
|
|
20525
20525
|
]
|
|
20526
20526
|
}
|
|
20527
20527
|
) }),
|
|
20528
|
-
/* @__PURE__ */
|
|
20528
|
+
/* @__PURE__ */ L(
|
|
20529
20529
|
dl,
|
|
20530
20530
|
{
|
|
20531
20531
|
align: "start",
|
|
@@ -20538,7 +20538,7 @@ const Lw = (e, t) => e.length <= t ? e : `${e.slice(0, t)}...`, UH = (e, t) => {
|
|
|
20538
20538
|
"bg-ui-background-surface shadow-lg"
|
|
20539
20539
|
),
|
|
20540
20540
|
children: [
|
|
20541
|
-
/* @__PURE__ */
|
|
20541
|
+
/* @__PURE__ */ L("div", { className: "flex items-center border-b border-ui-border px-3 py-2", children: [
|
|
20542
20542
|
/* @__PURE__ */ A(EE, { className: "mr-2 h-4 w-4 shrink-0 text-ui-text-muted" }),
|
|
20543
20543
|
/* @__PURE__ */ A(
|
|
20544
20544
|
"input",
|
|
@@ -20565,14 +20565,14 @@ const Lw = (e, t) => e.length <= t ? e : `${e.slice(0, t)}...`, UH = (e, t) => {
|
|
|
20565
20565
|
role: "listbox",
|
|
20566
20566
|
"aria-label": "Opciones de catálogo",
|
|
20567
20567
|
className: "max-h-56 overflow-y-auto",
|
|
20568
|
-
children:
|
|
20568
|
+
children: G.length === 0 ? /* @__PURE__ */ A("div", { className: "px-4 py-3 text-center text-sm text-ui-text-muted", children: i }) : G.map(($, ce) => {
|
|
20569
20569
|
const te = V.findIndex(
|
|
20570
20570
|
(ge) => ge.type === "group" && ge.groupId === $.key
|
|
20571
20571
|
);
|
|
20572
|
-
return /* @__PURE__ */
|
|
20572
|
+
return /* @__PURE__ */ L(I.Fragment, { children: [
|
|
20573
20573
|
ce > 0 && /* @__PURE__ */ A("div", { className: "mx-2 border-t border-ui-border" }),
|
|
20574
|
-
/* @__PURE__ */
|
|
20575
|
-
/* @__PURE__ */
|
|
20574
|
+
/* @__PURE__ */ L("div", { role: "group", "aria-label": $.label, children: [
|
|
20575
|
+
/* @__PURE__ */ L(
|
|
20576
20576
|
"div",
|
|
20577
20577
|
{
|
|
20578
20578
|
id: U(te),
|
|
@@ -20591,7 +20591,7 @@ const Lw = (e, t) => e.length <= t ? e : `${e.slice(0, t)}...`, UH = (e, t) => {
|
|
|
20591
20591
|
),
|
|
20592
20592
|
children: [
|
|
20593
20593
|
($.icon ?? o) && /* @__PURE__ */ A("span", { className: "flex shrink-0 items-center text-ui-text-muted", children: $.icon ?? o }),
|
|
20594
|
-
/* @__PURE__ */
|
|
20594
|
+
/* @__PURE__ */ L("div", { className: "flex flex-1 flex-col overflow-hidden", children: [
|
|
20595
20595
|
/* @__PURE__ */ A("span", { className: "text-xs font-bold uppercase tracking-wide text-ui-text-primary", children: $.label }),
|
|
20596
20596
|
$.description && /* @__PURE__ */ A("span", { className: "truncate text-[11px] text-ui-text-muted", children: Lw($.description, 120) })
|
|
20597
20597
|
] }),
|
|
@@ -20631,7 +20631,7 @@ const Lw = (e, t) => e.length <= t ? e : `${e.slice(0, t)}...`, UH = (e, t) => {
|
|
|
20631
20631
|
const Ee = ge.key, Ge = V.findIndex(
|
|
20632
20632
|
(Ft) => Ft.type === "child" && Ft.groupId === $.key && Ft.childId === ge.key
|
|
20633
20633
|
), Nt = ge.disabled || ($.disabled ?? !1);
|
|
20634
|
-
return /* @__PURE__ */
|
|
20634
|
+
return /* @__PURE__ */ L(
|
|
20635
20635
|
"div",
|
|
20636
20636
|
{
|
|
20637
20637
|
id: U(Ge),
|
|
@@ -20725,10 +20725,10 @@ const uN = ({
|
|
|
20725
20725
|
),
|
|
20726
20726
|
role: "status",
|
|
20727
20727
|
"aria-label": `Loading ${e.label || e.name}`,
|
|
20728
|
-
children: e.type === "sectionDivider" ? /* @__PURE__ */
|
|
20728
|
+
children: e.type === "sectionDivider" ? /* @__PURE__ */ L(qe, { children: [
|
|
20729
20729
|
/* @__PURE__ */ A("div", { className: "h-px w-full rounded bg-gray-200" }),
|
|
20730
20730
|
/* @__PURE__ */ A("div", { className: "h-4 w-1/3 rounded bg-gray-200" })
|
|
20731
|
-
] }) : /* @__PURE__ */
|
|
20731
|
+
] }) : /* @__PURE__ */ L(qe, { children: [
|
|
20732
20732
|
/* @__PURE__ */ A("div", { className: "h-3 w-1/4 rounded bg-gray-200" }),
|
|
20733
20733
|
/* @__PURE__ */ A("div", { className: "h-9 w-full rounded bg-gray-200" })
|
|
20734
20734
|
] })
|
|
@@ -20771,8 +20771,7 @@ const uN = ({
|
|
|
20771
20771
|
case "url":
|
|
20772
20772
|
case "tel":
|
|
20773
20773
|
case "time": {
|
|
20774
|
-
const u = e
|
|
20775
|
-
return /* @__PURE__ */ A(
|
|
20774
|
+
const u = e, d = /* @__PURE__ */ A(
|
|
20776
20775
|
KT,
|
|
20777
20776
|
{
|
|
20778
20777
|
...f,
|
|
@@ -20792,6 +20791,16 @@ const uN = ({
|
|
|
20792
20791
|
parseValue: u.parseValue
|
|
20793
20792
|
}
|
|
20794
20793
|
);
|
|
20794
|
+
return u.wrapper ? /* @__PURE__ */ L("div", { className: u.wrapper.className, children: [
|
|
20795
|
+
d,
|
|
20796
|
+
u.wrapper.description && /* @__PURE__ */ A(
|
|
20797
|
+
"p",
|
|
20798
|
+
{
|
|
20799
|
+
className: u.wrapper.descriptionClassName ?? "text-xs text-gray-500",
|
|
20800
|
+
children: u.wrapper.description
|
|
20801
|
+
}
|
|
20802
|
+
)
|
|
20803
|
+
] }) : d;
|
|
20795
20804
|
}
|
|
20796
20805
|
case "inputSelect":
|
|
20797
20806
|
case "identification": {
|
|
@@ -20882,7 +20891,7 @@ const uN = ({
|
|
|
20882
20891
|
) : void 0, h = d ? u.options?.filter(
|
|
20883
20892
|
(g) => String(g.value) !== u.pinnedValue
|
|
20884
20893
|
) : u.options;
|
|
20885
|
-
return /* @__PURE__ */
|
|
20894
|
+
return /* @__PURE__ */ L(
|
|
20886
20895
|
BT,
|
|
20887
20896
|
{
|
|
20888
20897
|
...f,
|
|
@@ -20899,7 +20908,7 @@ const uN = ({
|
|
|
20899
20908
|
isLoading: u.isLoading,
|
|
20900
20909
|
loadingText: u.loadingText,
|
|
20901
20910
|
children: [
|
|
20902
|
-
d && /* @__PURE__ */
|
|
20911
|
+
d && /* @__PURE__ */ L(qe, { children: [
|
|
20903
20912
|
/* @__PURE__ */ A(
|
|
20904
20913
|
_c,
|
|
20905
20914
|
{
|
|
@@ -21068,7 +21077,7 @@ const uN = ({
|
|
|
21068
21077
|
}
|
|
21069
21078
|
case "section": {
|
|
21070
21079
|
const u = e;
|
|
21071
|
-
return /* @__PURE__ */
|
|
21080
|
+
return /* @__PURE__ */ L("div", { className: B("w-full", u.className), children: [
|
|
21072
21081
|
u.label && /* @__PURE__ */ A("div", { className: "mb-3", children: /* @__PURE__ */ A("h3", { className: "text-sm font-medium text-ui-text-primary", children: u.label }) }),
|
|
21073
21082
|
/* @__PURE__ */ A("div", { className: AE(u), children: u.fields.map((d) => /* @__PURE__ */ A(
|
|
21074
21083
|
uN,
|
|
@@ -21251,8 +21260,8 @@ const uN = ({
|
|
|
21251
21260
|
}
|
|
21252
21261
|
}, N = () => {
|
|
21253
21262
|
b(s), v(), t && t();
|
|
21254
|
-
}, R = P.useMemo(() => C$(e.fields, e.orderFields), [e.fields, e.orderFields]),
|
|
21255
|
-
return /* @__PURE__ */
|
|
21263
|
+
}, R = P.useMemo(() => C$(e.fields, e.orderFields), [e.fields, e.orderFields]), G = e.actionButton && (e.actionButton.showButton ?? !0), V = e.submitButton?.showButton ?? !0;
|
|
21264
|
+
return /* @__PURE__ */ L(
|
|
21256
21265
|
"div",
|
|
21257
21266
|
{
|
|
21258
21267
|
className: B(
|
|
@@ -21261,11 +21270,11 @@ const uN = ({
|
|
|
21261
21270
|
d.container
|
|
21262
21271
|
),
|
|
21263
21272
|
children: [
|
|
21264
|
-
e.title && /* @__PURE__ */
|
|
21273
|
+
e.title && /* @__PURE__ */ L("div", { className: B("mb-6", d.header), children: [
|
|
21265
21274
|
/* @__PURE__ */ A("h2", { className: "mb-2 text-2xl font-bold text-ui-text-primary", children: e.title }),
|
|
21266
21275
|
e.description && /* @__PURE__ */ A("p", { className: "text-base text-gather-gray-600", children: e.description })
|
|
21267
21276
|
] }),
|
|
21268
|
-
/* @__PURE__ */
|
|
21277
|
+
/* @__PURE__ */ L(
|
|
21269
21278
|
"form",
|
|
21270
21279
|
{
|
|
21271
21280
|
onSubmit: m(j),
|
|
@@ -21286,7 +21295,7 @@ const uN = ({
|
|
|
21286
21295
|
},
|
|
21287
21296
|
H.name
|
|
21288
21297
|
)) }),
|
|
21289
|
-
!h && (
|
|
21298
|
+
!h && (G || V) && /* @__PURE__ */ L(
|
|
21290
21299
|
"div",
|
|
21291
21300
|
{
|
|
21292
21301
|
className: B(
|
|
@@ -21294,7 +21303,7 @@ const uN = ({
|
|
|
21294
21303
|
d.buttons
|
|
21295
21304
|
),
|
|
21296
21305
|
children: [
|
|
21297
|
-
|
|
21306
|
+
G && /* @__PURE__ */ A(
|
|
21298
21307
|
da,
|
|
21299
21308
|
{
|
|
21300
21309
|
type: "button",
|
|
@@ -21347,7 +21356,7 @@ const uN = ({
|
|
|
21347
21356
|
className: u,
|
|
21348
21357
|
contentClassName: d,
|
|
21349
21358
|
containerProps: h
|
|
21350
|
-
}) => /* @__PURE__ */
|
|
21359
|
+
}) => /* @__PURE__ */ L(
|
|
21351
21360
|
"div",
|
|
21352
21361
|
{
|
|
21353
21362
|
className: B(
|
|
@@ -21361,7 +21370,7 @@ const uN = ({
|
|
|
21361
21370
|
},
|
|
21362
21371
|
...h,
|
|
21363
21372
|
children: [
|
|
21364
|
-
/* @__PURE__ */
|
|
21373
|
+
/* @__PURE__ */ L("div", { className: "flex min-w-0 flex-1 items-center gap-3", children: [
|
|
21365
21374
|
n && /* @__PURE__ */ A(
|
|
21366
21375
|
"span",
|
|
21367
21376
|
{
|
|
@@ -21372,7 +21381,7 @@ const uN = ({
|
|
|
21372
21381
|
children: n
|
|
21373
21382
|
}
|
|
21374
21383
|
),
|
|
21375
|
-
/* @__PURE__ */ A("div", { className: B("min-w-0 flex-1", d), children: /* @__PURE__ */
|
|
21384
|
+
/* @__PURE__ */ A("div", { className: B("min-w-0 flex-1", d), children: /* @__PURE__ */ L("div", { className: "space-y-1", children: [
|
|
21376
21385
|
e && /* @__PURE__ */ A(
|
|
21377
21386
|
"h2",
|
|
21378
21387
|
{
|
|
@@ -21554,7 +21563,7 @@ const nX = "Cargando...", aX = {
|
|
|
21554
21563
|
o
|
|
21555
21564
|
),
|
|
21556
21565
|
role: "status",
|
|
21557
|
-
children: /* @__PURE__ */
|
|
21566
|
+
children: /* @__PURE__ */ L("div", { className: B(oX(e), i?.content), children: [
|
|
21558
21567
|
/* @__PURE__ */ A(
|
|
21559
21568
|
dN,
|
|
21560
21569
|
{
|
|
@@ -21565,7 +21574,7 @@ const nX = "Cargando...", aX = {
|
|
|
21565
21574
|
className: i?.icon
|
|
21566
21575
|
}
|
|
21567
21576
|
),
|
|
21568
|
-
!a && /* @__PURE__ */
|
|
21577
|
+
!a && /* @__PURE__ */ L(
|
|
21569
21578
|
"div",
|
|
21570
21579
|
{
|
|
21571
21580
|
className: e === "floating" ? "flex flex-col" : "flex flex-col text-center",
|
|
@@ -21684,7 +21693,7 @@ const sX = P.forwardRef(
|
|
|
21684
21693
|
};
|
|
21685
21694
|
}
|
|
21686
21695
|
}, [e, m]), !e) return null;
|
|
21687
|
-
const R = (s === "left" || s === "right") && !x,
|
|
21696
|
+
const R = (s === "left" || s === "right") && !x, G = i?.stickyFooter ?? !0, V = /* @__PURE__ */ L("div", { className: "gather-modal-root", style: { zIndex: p * 10 }, children: [
|
|
21688
21697
|
/* @__PURE__ */ A(
|
|
21689
21698
|
"div",
|
|
21690
21699
|
{
|
|
@@ -21722,7 +21731,7 @@ const sX = P.forwardRef(
|
|
|
21722
21731
|
maxHeight: w?.modalScrollable ? w?.modalMaxHeight || "90vh" : void 0
|
|
21723
21732
|
},
|
|
21724
21733
|
...C,
|
|
21725
|
-
children: /* @__PURE__ */
|
|
21734
|
+
children: /* @__PURE__ */ L("div", { className: B("flex h-full flex-col", f), children: [
|
|
21726
21735
|
a && /* @__PURE__ */ A(
|
|
21727
21736
|
fN,
|
|
21728
21737
|
{
|
|
@@ -21740,8 +21749,8 @@ const sX = P.forwardRef(
|
|
|
21740
21749
|
),
|
|
21741
21750
|
children: /* @__PURE__ */ A(hN, { ...S })
|
|
21742
21751
|
}
|
|
21743
|
-
) : /* @__PURE__ */
|
|
21744
|
-
/* @__PURE__ */
|
|
21752
|
+
) : /* @__PURE__ */ L(qe, { children: [
|
|
21753
|
+
/* @__PURE__ */ L(
|
|
21745
21754
|
"div",
|
|
21746
21755
|
{
|
|
21747
21756
|
className: B("flex-1 overflow-y-auto"),
|
|
@@ -21750,11 +21759,11 @@ const sX = P.forwardRef(
|
|
|
21750
21759
|
},
|
|
21751
21760
|
children: [
|
|
21752
21761
|
/* @__PURE__ */ A("div", { className: B("p-4", d), children: o }),
|
|
21753
|
-
!
|
|
21762
|
+
!G && i && /* @__PURE__ */ A("div", { children: /* @__PURE__ */ A(pv, { ...i }) })
|
|
21754
21763
|
]
|
|
21755
21764
|
}
|
|
21756
21765
|
),
|
|
21757
|
-
|
|
21766
|
+
G && i && /* @__PURE__ */ A("div", { className: "mt-auto", children: /* @__PURE__ */ A(pv, { ...i }) })
|
|
21758
21767
|
] })
|
|
21759
21768
|
] })
|
|
21760
21769
|
}
|
|
@@ -21795,10 +21804,10 @@ const lX = I.forwardRef(
|
|
|
21795
21804
|
selectProps: k,
|
|
21796
21805
|
resetOnSelect: T = !0
|
|
21797
21806
|
}, _) => {
|
|
21798
|
-
const [D, j] = I.useState(!1), [N, R] = I.useState(t),
|
|
21807
|
+
const [D, j] = I.useState(!1), [N, R] = I.useState(t), G = I.useMemo(
|
|
21799
21808
|
() => b$(e),
|
|
21800
21809
|
[e]
|
|
21801
|
-
), V = C ||
|
|
21810
|
+
), V = C || G, H = (ae) => {
|
|
21802
21811
|
const U = ae.getValue(), J = U instanceof Date ? { from: U, to: void 0 } : U;
|
|
21803
21812
|
R(J), J?.from && Y(J.from);
|
|
21804
21813
|
}, M = I.useMemo(() => t?.from ? t.from : /* @__PURE__ */ new Date(), [t]), [z, Y] = I.useState(M), Z = I.useCallback(
|
|
@@ -21832,8 +21841,8 @@ const lX = I.forwardRef(
|
|
|
21832
21841
|
v,
|
|
21833
21842
|
y
|
|
21834
21843
|
]);
|
|
21835
|
-
return /* @__PURE__ */
|
|
21836
|
-
/* @__PURE__ */ A(kb, { asChild: !0, children: /* @__PURE__ */
|
|
21844
|
+
return /* @__PURE__ */ L(fl, { open: D, onOpenChange: Z, children: [
|
|
21845
|
+
/* @__PURE__ */ A(kb, { asChild: !0, children: /* @__PURE__ */ L(
|
|
21837
21846
|
za,
|
|
21838
21847
|
{
|
|
21839
21848
|
ref: _,
|
|
@@ -21867,7 +21876,7 @@ const lX = I.forwardRef(
|
|
|
21867
21876
|
),
|
|
21868
21877
|
align: "start",
|
|
21869
21878
|
sideOffset: 4,
|
|
21870
|
-
children: /* @__PURE__ */
|
|
21879
|
+
children: /* @__PURE__ */ L(
|
|
21871
21880
|
"div",
|
|
21872
21881
|
{
|
|
21873
21882
|
className: B(
|
|
@@ -21898,7 +21907,7 @@ const lX = I.forwardRef(
|
|
|
21898
21907
|
))
|
|
21899
21908
|
}
|
|
21900
21909
|
),
|
|
21901
|
-
/* @__PURE__ */
|
|
21910
|
+
/* @__PURE__ */ L("div", { className: "flex flex-col", children: [
|
|
21902
21911
|
/* @__PURE__ */ A(
|
|
21903
21912
|
Bb,
|
|
21904
21913
|
{
|
|
@@ -21929,7 +21938,7 @@ const lX = I.forwardRef(
|
|
|
21929
21938
|
}
|
|
21930
21939
|
}
|
|
21931
21940
|
),
|
|
21932
|
-
!w && /* @__PURE__ */
|
|
21941
|
+
!w && /* @__PURE__ */ L(
|
|
21933
21942
|
"div",
|
|
21934
21943
|
{
|
|
21935
21944
|
className: B(
|
|
@@ -22171,7 +22180,7 @@ const cX = Ot(
|
|
|
22171
22180
|
...l ? { borderColor: l } : {}
|
|
22172
22181
|
};
|
|
22173
22182
|
}, [r, o, s, l]);
|
|
22174
|
-
return /* @__PURE__ */
|
|
22183
|
+
return /* @__PURE__ */ L(
|
|
22175
22184
|
"span",
|
|
22176
22185
|
{
|
|
22177
22186
|
ref: d,
|
|
@@ -22247,7 +22256,7 @@ const hX = ({
|
|
|
22247
22256
|
table: "",
|
|
22248
22257
|
compact: "p-2"
|
|
22249
22258
|
};
|
|
22250
|
-
return /* @__PURE__ */
|
|
22259
|
+
return /* @__PURE__ */ L(
|
|
22251
22260
|
"div",
|
|
22252
22261
|
{
|
|
22253
22262
|
className: B(
|
|
@@ -22256,7 +22265,7 @@ const hX = ({
|
|
|
22256
22265
|
),
|
|
22257
22266
|
...c,
|
|
22258
22267
|
children: [
|
|
22259
|
-
/* @__PURE__ */
|
|
22268
|
+
/* @__PURE__ */ L(
|
|
22260
22269
|
"button",
|
|
22261
22270
|
{
|
|
22262
22271
|
type: "button",
|
|
@@ -22265,11 +22274,11 @@ const hX = ({
|
|
|
22265
22274
|
"aria-expanded": h,
|
|
22266
22275
|
"data-testid": c["data-testid"] ? `${c["data-testid"]}-toggle` : void 0,
|
|
22267
22276
|
children: [
|
|
22268
|
-
/* @__PURE__ */
|
|
22277
|
+
/* @__PURE__ */ L("div", { className: "flex items-center gap-2", children: [
|
|
22269
22278
|
e && /* @__PURE__ */ A("span", { className: "flex shrink-0 text-ui-text-muted", children: e }),
|
|
22270
|
-
/* @__PURE__ */
|
|
22279
|
+
/* @__PURE__ */ L("span", { className: "text-sm font-semibold text-ui-text-primary", children: [
|
|
22271
22280
|
t,
|
|
22272
|
-
r !== void 0 && /* @__PURE__ */
|
|
22281
|
+
r !== void 0 && /* @__PURE__ */ L("span", { className: "ml-1 font-normal text-text-muted", children: [
|
|
22273
22282
|
"(",
|
|
22274
22283
|
r,
|
|
22275
22284
|
")"
|
|
@@ -22288,7 +22297,7 @@ const hX = ({
|
|
|
22288
22297
|
]
|
|
22289
22298
|
}
|
|
22290
22299
|
),
|
|
22291
|
-
h && /* @__PURE__ */
|
|
22300
|
+
h && /* @__PURE__ */ L("div", { className: "border-t border-ui-divider-border", children: [
|
|
22292
22301
|
n && /* @__PURE__ */ A("p", { className: "border-b border-ui-divider-border px-4 pb-3 pt-3 text-xs text-text-muted", children: n }),
|
|
22293
22302
|
/* @__PURE__ */ A("div", { className: p[i], children: s })
|
|
22294
22303
|
] })
|
|
@@ -22313,7 +22322,7 @@ const pX = P.forwardRef(
|
|
|
22313
22322
|
...u
|
|
22314
22323
|
}, d) => {
|
|
22315
22324
|
const h = e.every((p) => p.checked || p.disabled), g = e.some((p) => p.checked && !p.disabled);
|
|
22316
|
-
return /* @__PURE__ */
|
|
22325
|
+
return /* @__PURE__ */ L(
|
|
22317
22326
|
"div",
|
|
22318
22327
|
{
|
|
22319
22328
|
ref: d,
|
|
@@ -22325,7 +22334,7 @@ const pX = P.forwardRef(
|
|
|
22325
22334
|
style: { maxHeight: r },
|
|
22326
22335
|
"data-testid": u["data-testid"],
|
|
22327
22336
|
children: [
|
|
22328
|
-
a && /* @__PURE__ */
|
|
22337
|
+
a && /* @__PURE__ */ L(
|
|
22329
22338
|
"div",
|
|
22330
22339
|
{
|
|
22331
22340
|
className: B(
|
|
@@ -22389,7 +22398,7 @@ const mX = ({
|
|
|
22389
22398
|
const n = (a) => {
|
|
22390
22399
|
!e.disabled && typeof a == "boolean" && t(e.id, a);
|
|
22391
22400
|
};
|
|
22392
|
-
return /* @__PURE__ */
|
|
22401
|
+
return /* @__PURE__ */ L(
|
|
22393
22402
|
"li",
|
|
22394
22403
|
{
|
|
22395
22404
|
className: B(
|
|
@@ -22415,8 +22424,8 @@ const mX = ({
|
|
|
22415
22424
|
}
|
|
22416
22425
|
),
|
|
22417
22426
|
e.startContent && /* @__PURE__ */ A("div", { className: "flex shrink-0 items-center", children: e.startContent }),
|
|
22418
|
-
/* @__PURE__ */
|
|
22419
|
-
/* @__PURE__ */
|
|
22427
|
+
/* @__PURE__ */ L("div", { className: "flex min-w-0 flex-1 items-center justify-between", children: [
|
|
22428
|
+
/* @__PURE__ */ L("div", { className: "min-w-0", children: [
|
|
22420
22429
|
/* @__PURE__ */ A(
|
|
22421
22430
|
"span",
|
|
22422
22431
|
{
|
|
@@ -22443,7 +22452,7 @@ const mX = ({
|
|
|
22443
22452
|
]
|
|
22444
22453
|
}
|
|
22445
22454
|
);
|
|
22446
|
-
}, gX = P.forwardRef(({ icon: e, title: t, description: r, action: n, className: a, classNames: i, ...o }, s) => /* @__PURE__ */
|
|
22455
|
+
}, gX = P.forwardRef(({ icon: e, title: t, description: r, action: n, className: a, classNames: i, ...o }, s) => /* @__PURE__ */ L(
|
|
22447
22456
|
"div",
|
|
22448
22457
|
{
|
|
22449
22458
|
ref: s,
|
|
@@ -22552,7 +22561,7 @@ const pN = ({
|
|
|
22552
22561
|
...i ? { maxWidth: i } : {},
|
|
22553
22562
|
...o ? { minWidth: o } : {},
|
|
22554
22563
|
...m ? { transitionDelay: `${m}ms` } : {}
|
|
22555
|
-
}, j = /* @__PURE__ */
|
|
22564
|
+
}, j = /* @__PURE__ */ L(
|
|
22556
22565
|
"div",
|
|
22557
22566
|
{
|
|
22558
22567
|
ref: y,
|
|
@@ -22587,7 +22596,7 @@ const pN = ({
|
|
|
22587
22596
|
]
|
|
22588
22597
|
}
|
|
22589
22598
|
);
|
|
22590
|
-
return /* @__PURE__ */
|
|
22599
|
+
return /* @__PURE__ */ L(
|
|
22591
22600
|
"div",
|
|
22592
22601
|
{
|
|
22593
22602
|
ref: w,
|
|
@@ -22706,7 +22715,7 @@ const gN = P.forwardRef(
|
|
|
22706
22715
|
return e;
|
|
22707
22716
|
}
|
|
22708
22717
|
}, [o, n, e, u, r, t]);
|
|
22709
|
-
return /* @__PURE__ */
|
|
22718
|
+
return /* @__PURE__ */ L(
|
|
22710
22719
|
"button",
|
|
22711
22720
|
{
|
|
22712
22721
|
ref: f,
|
|
@@ -22786,9 +22795,9 @@ const Gb = ({
|
|
|
22786
22795
|
), l = P.useCallback(() => {
|
|
22787
22796
|
t(""), o.current?.focus();
|
|
22788
22797
|
}, [t]);
|
|
22789
|
-
return /* @__PURE__ */
|
|
22798
|
+
return /* @__PURE__ */ L("div", { className: B("border-b border-ui-divider-border", a), children: [
|
|
22790
22799
|
n && /* @__PURE__ */ A("p", { className: "px-3 pb-1 pt-3 text-xs text-text-muted", children: n }),
|
|
22791
|
-
/* @__PURE__ */
|
|
22800
|
+
/* @__PURE__ */ L("div", { className: "relative px-3 pb-2 pt-2", children: [
|
|
22792
22801
|
/* @__PURE__ */ A(EE, { className: "absolute left-6 top-1/2 h-4 w-4 -translate-y-1/2 text-ui-text-muted" }),
|
|
22793
22802
|
/* @__PURE__ */ A(
|
|
22794
22803
|
"input",
|
|
@@ -22992,7 +23001,7 @@ const Qr = (e) => e.toLowerCase().normalize("NFD").replace(/[\u0300-\u036f]/g, "
|
|
|
22992
23001
|
},
|
|
22993
23002
|
[v, t, r, d.id, b, p]
|
|
22994
23003
|
), k = P.useMemo(() => h ? !0 : o && g ? "indeterminate" : !1, [h, o, g]), T = RX + m * DX;
|
|
22995
|
-
return /* @__PURE__ */
|
|
23004
|
+
return /* @__PURE__ */ L(
|
|
22996
23005
|
"div",
|
|
22997
23006
|
{
|
|
22998
23007
|
role: "treeitem",
|
|
@@ -23056,7 +23065,7 @@ const Qr = (e) => e.toLowerCase().normalize("NFD").replace(/[\u0300-\u036f]/g, "
|
|
|
23056
23065
|
children: /* @__PURE__ */ A(jX, { label: d.label, searchQuery: i })
|
|
23057
23066
|
}
|
|
23058
23067
|
),
|
|
23059
|
-
a && d.badge && w && /* @__PURE__ */
|
|
23068
|
+
a && d.badge && w && /* @__PURE__ */ L(
|
|
23060
23069
|
"button",
|
|
23061
23070
|
{
|
|
23062
23071
|
type: "button",
|
|
@@ -23090,7 +23099,7 @@ const jX = ({
|
|
|
23090
23099
|
const r = Qr(e), n = Qr(t.trim()), a = r.indexOf(n);
|
|
23091
23100
|
if (a === -1) return /* @__PURE__ */ A(qe, { children: e });
|
|
23092
23101
|
const i = e.slice(0, a), o = e.slice(a, a + n.length), s = e.slice(a + n.length);
|
|
23093
|
-
return /* @__PURE__ */
|
|
23102
|
+
return /* @__PURE__ */ L(qe, { children: [
|
|
23094
23103
|
i,
|
|
23095
23104
|
/* @__PURE__ */ A("mark", { className: "rounded-sm bg-yellow-100 px-0.5 text-ui-text-primary", children: o }),
|
|
23096
23105
|
s
|
|
@@ -23118,7 +23127,7 @@ const jX = ({
|
|
|
23118
23127
|
() => g.filter((C) => h.has(C.id)).length,
|
|
23119
23128
|
[g, h]
|
|
23120
23129
|
), v = g.length, x = P.useMemo(() => l.counterFormat ? l.counterFormat(b, v) : `${b} de ${v} seleccionados`, [l, b, v]), w = l.selectAllLabel ?? "Seleccionar todos", y = l.deselectAllLabel ?? "Deseleccionar todos", S = l.searchPlaceholder ?? "Buscar...";
|
|
23121
|
-
return /* @__PURE__ */
|
|
23130
|
+
return /* @__PURE__ */ L(
|
|
23122
23131
|
"div",
|
|
23123
23132
|
{
|
|
23124
23133
|
role: "dialog",
|
|
@@ -23130,7 +23139,7 @@ const jX = ({
|
|
|
23130
23139
|
),
|
|
23131
23140
|
"data-testid": f ? `${f}-sub-panel` : void 0,
|
|
23132
23141
|
children: [
|
|
23133
|
-
/* @__PURE__ */ A("div", { className: "border-b border-ui-divider-border px-3 py-2.5", children: /* @__PURE__ */
|
|
23142
|
+
/* @__PURE__ */ A("div", { className: "border-b border-ui-divider-border px-3 py-2.5", children: /* @__PURE__ */ L("div", { className: "flex items-center gap-2", children: [
|
|
23134
23143
|
/* @__PURE__ */ A(
|
|
23135
23144
|
"button",
|
|
23136
23145
|
{
|
|
@@ -23142,9 +23151,9 @@ const jX = ({
|
|
|
23142
23151
|
children: /* @__PURE__ */ A(G$, { className: "h-4 w-4" })
|
|
23143
23152
|
}
|
|
23144
23153
|
),
|
|
23145
|
-
/* @__PURE__ */
|
|
23146
|
-
r && r.length > 0 && /* @__PURE__ */
|
|
23147
|
-
r.map((C, O) => /* @__PURE__ */
|
|
23154
|
+
/* @__PURE__ */ L("div", { className: "min-w-0 flex-1", children: [
|
|
23155
|
+
r && r.length > 0 && /* @__PURE__ */ L("div", { className: "flex items-center gap-1 text-[11px] font-bold uppercase tracking-wide text-ui-text-muted", children: [
|
|
23156
|
+
r.map((C, O) => /* @__PURE__ */ L(P.Fragment, { children: [
|
|
23148
23157
|
O > 0 && /* @__PURE__ */ A("span", { className: "text-gather-gray-300", children: "/" }),
|
|
23149
23158
|
/* @__PURE__ */ A(
|
|
23150
23159
|
"span",
|
|
@@ -23155,7 +23164,7 @@ const jX = ({
|
|
|
23155
23164
|
}
|
|
23156
23165
|
)
|
|
23157
23166
|
] }, O)),
|
|
23158
|
-
t && /* @__PURE__ */
|
|
23167
|
+
t && /* @__PURE__ */ L(qe, { children: [
|
|
23159
23168
|
/* @__PURE__ */ A("span", { className: "text-gather-gray-300", children: "/" }),
|
|
23160
23169
|
/* @__PURE__ */ A("span", { children: t })
|
|
23161
23170
|
] })
|
|
@@ -23179,8 +23188,8 @@ const jX = ({
|
|
|
23179
23188
|
"data-testid": f ? `${f}-sub-panel` : void 0
|
|
23180
23189
|
}
|
|
23181
23190
|
),
|
|
23182
|
-
/* @__PURE__ */
|
|
23183
|
-
/* @__PURE__ */
|
|
23191
|
+
/* @__PURE__ */ L("div", { className: "flex items-baseline justify-between gap-x-3 gap-y-0.5 px-3 py-1.5 flex-wrap", children: [
|
|
23192
|
+
/* @__PURE__ */ L("div", { className: "flex items-center gap-2", children: [
|
|
23184
23193
|
/* @__PURE__ */ A(
|
|
23185
23194
|
"button",
|
|
23186
23195
|
{
|
|
@@ -23203,11 +23212,11 @@ const jX = ({
|
|
|
23203
23212
|
}
|
|
23204
23213
|
)
|
|
23205
23214
|
] }),
|
|
23206
|
-
v > 0 && /* @__PURE__ */ A("span", { className: "ml-auto text-[11px] text-ui-text-muted", children: m ? /* @__PURE__ */
|
|
23215
|
+
v > 0 && /* @__PURE__ */ A("span", { className: "ml-auto text-[11px] text-ui-text-muted", children: m ? /* @__PURE__ */ L(qe, { children: [
|
|
23207
23216
|
p.length,
|
|
23208
23217
|
" de ",
|
|
23209
23218
|
v
|
|
23210
|
-
] }) : /* @__PURE__ */
|
|
23219
|
+
] }) : /* @__PURE__ */ L(qe, { children: [
|
|
23211
23220
|
v,
|
|
23212
23221
|
" orígenes"
|
|
23213
23222
|
] }) })
|
|
@@ -23246,7 +23255,7 @@ const $X = ({
|
|
|
23246
23255
|
},
|
|
23247
23256
|
[n, i, e]
|
|
23248
23257
|
);
|
|
23249
|
-
return /* @__PURE__ */
|
|
23258
|
+
return /* @__PURE__ */ L(
|
|
23250
23259
|
"div",
|
|
23251
23260
|
{
|
|
23252
23261
|
className: B(
|
|
@@ -23276,7 +23285,7 @@ const $X = ({
|
|
|
23276
23285
|
const r = Qr(e), n = Qr(t.trim()), a = r.indexOf(n);
|
|
23277
23286
|
if (a === -1) return /* @__PURE__ */ A(qe, { children: e });
|
|
23278
23287
|
const i = e.slice(0, a), o = e.slice(a, a + n.length), s = e.slice(a + n.length);
|
|
23279
|
-
return /* @__PURE__ */
|
|
23288
|
+
return /* @__PURE__ */ L(qe, { children: [
|
|
23280
23289
|
i,
|
|
23281
23290
|
/* @__PURE__ */ A("mark", { className: "rounded-sm bg-yellow-100 px-0.5 text-ui-text-primary", children: o }),
|
|
23282
23291
|
s
|
|
@@ -23314,7 +23323,7 @@ const $X = ({
|
|
|
23314
23323
|
classNames: k,
|
|
23315
23324
|
"data-testid": T
|
|
23316
23325
|
}, _) => {
|
|
23317
|
-
const [D, j] = P.useState(!1), [N, R] = P.useState(""), [
|
|
23326
|
+
const [D, j] = P.useState(!1), [N, R] = P.useState(""), [G, V] = P.useState(
|
|
23318
23327
|
() => new Set(f ?? [])
|
|
23319
23328
|
), [H, M] = P.useState(null), [z, Y] = P.useState(n);
|
|
23320
23329
|
P.useEffect(() => {
|
|
@@ -23333,12 +23342,12 @@ const $X = ({
|
|
|
23333
23342
|
K,
|
|
23334
23343
|
q,
|
|
23335
23344
|
N,
|
|
23336
|
-
|
|
23345
|
+
G,
|
|
23337
23346
|
c,
|
|
23338
23347
|
W
|
|
23339
23348
|
);
|
|
23340
23349
|
},
|
|
23341
|
-
[K, q, N,
|
|
23350
|
+
[K, q, N, G, c, l]
|
|
23342
23351
|
), Q = P.useMemo(
|
|
23343
23352
|
() => mv(t, new Set(n)),
|
|
23344
23353
|
[t, n]
|
|
@@ -23422,7 +23431,7 @@ const $X = ({
|
|
|
23422
23431
|
(W, re) => l?.enabled ? l.shouldShowTrigger(W, re) : !1,
|
|
23423
23432
|
[l]
|
|
23424
23433
|
), Br = t.length > 0, nr = K.length > 0, F = N.trim().length > 0, X = !!J && !!l?.enabled;
|
|
23425
|
-
return /* @__PURE__ */
|
|
23434
|
+
return /* @__PURE__ */ L(fl, { open: D, onOpenChange: te, children: [
|
|
23426
23435
|
/* @__PURE__ */ A(kb, { asChild: !0, children: /* @__PURE__ */ A(
|
|
23427
23436
|
gN,
|
|
23428
23437
|
{
|
|
@@ -23438,7 +23447,7 @@ const $X = ({
|
|
|
23438
23447
|
classNames: k
|
|
23439
23448
|
}
|
|
23440
23449
|
) }),
|
|
23441
|
-
/* @__PURE__ */
|
|
23450
|
+
/* @__PURE__ */ L(
|
|
23442
23451
|
dl,
|
|
23443
23452
|
{
|
|
23444
23453
|
align: C,
|
|
@@ -23451,8 +23460,8 @@ const $X = ({
|
|
|
23451
23460
|
k?.popoverContent
|
|
23452
23461
|
),
|
|
23453
23462
|
children: [
|
|
23454
|
-
/* @__PURE__ */
|
|
23455
|
-
/* @__PURE__ */
|
|
23463
|
+
/* @__PURE__ */ L("div", { className: "flex", children: [
|
|
23464
|
+
/* @__PURE__ */ L("div", { className: "flex min-w-0 flex-1 flex-col", children: [
|
|
23456
23465
|
u && /* @__PURE__ */ A("div", { className: "p-3", children: Array.from({ length: d }).map((W, re) => /* @__PURE__ */ A(
|
|
23457
23466
|
"div",
|
|
23458
23467
|
{
|
|
@@ -23464,7 +23473,7 @@ const $X = ({
|
|
|
23464
23473
|
re
|
|
23465
23474
|
)) }),
|
|
23466
23475
|
!u && !Br && /* @__PURE__ */ A("div", { className: "px-4 py-8 text-center", children: g ?? /* @__PURE__ */ A("p", { className: "text-sm text-text-muted", children: h }) }),
|
|
23467
|
-
!u && Br && /* @__PURE__ */
|
|
23476
|
+
!u && Br && /* @__PURE__ */ L(qe, { children: [
|
|
23468
23477
|
/* @__PURE__ */ A(
|
|
23469
23478
|
Gb,
|
|
23470
23479
|
{
|
|
@@ -23526,14 +23535,14 @@ const $X = ({
|
|
|
23526
23535
|
})
|
|
23527
23536
|
}
|
|
23528
23537
|
),
|
|
23529
|
-
nr && (ne.length > 40 || F) && /* @__PURE__ */ A("div", { className: "border-t border-ui-divider-border px-3 py-1.5 text-[11px] text-ui-text-muted", children: F ? /* @__PURE__ */
|
|
23538
|
+
nr && (ne.length > 40 || F) && /* @__PURE__ */ A("div", { className: "border-t border-ui-divider-border px-3 py-1.5 text-[11px] text-ui-text-muted", children: F ? /* @__PURE__ */ L(qe, { children: [
|
|
23530
23539
|
"Mostrando",
|
|
23531
23540
|
" ",
|
|
23532
23541
|
/* @__PURE__ */ A("b", { className: "font-semibold text-ui-text-secondary", children: ne.length }),
|
|
23533
23542
|
" ",
|
|
23534
23543
|
"coincidencia",
|
|
23535
23544
|
ne.length !== 1 ? "s" : ""
|
|
23536
|
-
] }) : /* @__PURE__ */
|
|
23545
|
+
] }) : /* @__PURE__ */ L(qe, { children: [
|
|
23537
23546
|
"Mostrando",
|
|
23538
23547
|
" ",
|
|
23539
23548
|
/* @__PURE__ */ A("b", { className: "font-semibold text-ui-text-secondary", children: ne.length }),
|
|
@@ -23559,14 +23568,14 @@ const $X = ({
|
|
|
23559
23568
|
}
|
|
23560
23569
|
)
|
|
23561
23570
|
] }),
|
|
23562
|
-
x && /* @__PURE__ */
|
|
23563
|
-
/* @__PURE__ */ A("span", { className: "whitespace-nowrap text-xs text-ui-text-muted", children: ae === 0 ? "Nada seleccionado" : /* @__PURE__ */
|
|
23571
|
+
x && /* @__PURE__ */ L("div", { className: "flex items-center justify-between gap-3 border-t border-ui-divider-border bg-gather-gray-50 px-3 py-2.5", children: [
|
|
23572
|
+
/* @__PURE__ */ A("span", { className: "whitespace-nowrap text-xs text-ui-text-muted", children: ae === 0 ? "Nada seleccionado" : /* @__PURE__ */ L(qe, { children: [
|
|
23564
23573
|
/* @__PURE__ */ A("b", { className: "font-bold text-success-600", children: ae }),
|
|
23565
23574
|
" ",
|
|
23566
23575
|
"seleccionado",
|
|
23567
23576
|
ae !== 1 ? "s" : ""
|
|
23568
23577
|
] }) }),
|
|
23569
|
-
/* @__PURE__ */
|
|
23578
|
+
/* @__PURE__ */ L("div", { className: "flex shrink-0 items-center gap-2", children: [
|
|
23570
23579
|
/* @__PURE__ */ A(
|
|
23571
23580
|
"button",
|
|
23572
23581
|
{
|
|
@@ -23621,7 +23630,7 @@ const rce = {
|
|
|
23621
23630
|
levels: ["#C8DCF0", "#93BBDE", "#5B94CA", "#2B6CB0", "#1A3F6F"]
|
|
23622
23631
|
}, SN = ({
|
|
23623
23632
|
className: e
|
|
23624
|
-
}) => /* @__PURE__ */
|
|
23633
|
+
}) => /* @__PURE__ */ L(
|
|
23625
23634
|
"div",
|
|
23626
23635
|
{
|
|
23627
23636
|
className: B(
|
|
@@ -23630,13 +23639,13 @@ const rce = {
|
|
|
23630
23639
|
),
|
|
23631
23640
|
"data-testid": "gather-metric-card-skeleton",
|
|
23632
23641
|
children: [
|
|
23633
|
-
/* @__PURE__ */
|
|
23642
|
+
/* @__PURE__ */ L("div", { className: "flex items-center gap-1", children: [
|
|
23634
23643
|
/* @__PURE__ */ A("div", { className: "h-3 w-24 animate-pulse rounded bg-gray-200" }),
|
|
23635
23644
|
/* @__PURE__ */ A("div", { className: "h-3.5 w-3.5 animate-pulse rounded-full bg-gray-200" })
|
|
23636
23645
|
] }),
|
|
23637
23646
|
/* @__PURE__ */ A("div", { className: "mt-2 h-7 w-20 animate-pulse rounded bg-gray-200" }),
|
|
23638
23647
|
/* @__PURE__ */ A("div", { className: "mt-1 h-4 w-28 animate-pulse rounded bg-gray-100" }),
|
|
23639
|
-
/* @__PURE__ */
|
|
23648
|
+
/* @__PURE__ */ L("div", { className: "mt-1 flex items-center gap-1", children: [
|
|
23640
23649
|
/* @__PURE__ */ A("div", { className: "h-3 w-3 animate-pulse rounded bg-gray-100" }),
|
|
23641
23650
|
/* @__PURE__ */ A("div", { className: "h-3 w-16 animate-pulse rounded bg-gray-100" })
|
|
23642
23651
|
] })
|
|
@@ -23685,7 +23694,7 @@ const Vw = {
|
|
|
23685
23694
|
if (h)
|
|
23686
23695
|
return /* @__PURE__ */ A(SN, { className: g });
|
|
23687
23696
|
const v = m.length > 0;
|
|
23688
|
-
return /* @__PURE__ */
|
|
23697
|
+
return /* @__PURE__ */ L(
|
|
23689
23698
|
"div",
|
|
23690
23699
|
{
|
|
23691
23700
|
className: B(
|
|
@@ -23695,9 +23704,9 @@ const Vw = {
|
|
|
23695
23704
|
),
|
|
23696
23705
|
"data-testid": p ?? "gather-metric-card",
|
|
23697
23706
|
children: [
|
|
23698
|
-
/* @__PURE__ */
|
|
23707
|
+
/* @__PURE__ */ L("div", { className: "flex items-center gap-1", children: [
|
|
23699
23708
|
/* @__PURE__ */ A("span", { className: "text-xs font-medium uppercase tracking-wide text-[#6B7280]", children: e }),
|
|
23700
|
-
c && /* @__PURE__ */
|
|
23709
|
+
c && /* @__PURE__ */ L(pN, { content: c, ...f, children: [
|
|
23701
23710
|
/* @__PURE__ */ A(
|
|
23702
23711
|
PE,
|
|
23703
23712
|
{
|
|
@@ -23710,7 +23719,7 @@ const Vw = {
|
|
|
23710
23719
|
] }),
|
|
23711
23720
|
/* @__PURE__ */ A("div", { className: "mt-2", children: /* @__PURE__ */ A("span", { className: "text-2xl font-bold text-[#111827]", children: b }) }),
|
|
23712
23721
|
a && /* @__PURE__ */ A("div", { className: "mt-1 text-sm text-[#6B7280]", children: a }),
|
|
23713
|
-
i !== void 0 && /* @__PURE__ */
|
|
23722
|
+
i !== void 0 && /* @__PURE__ */ L("div", { className: "mt-1 flex items-center gap-1", children: [
|
|
23714
23723
|
i >= 0 ? /* @__PURE__ */ A(
|
|
23715
23724
|
pB,
|
|
23716
23725
|
{
|
|
@@ -23730,7 +23739,7 @@ const Vw = {
|
|
|
23730
23739
|
"aria-hidden": "true"
|
|
23731
23740
|
}
|
|
23732
23741
|
),
|
|
23733
|
-
/* @__PURE__ */
|
|
23742
|
+
/* @__PURE__ */ L(
|
|
23734
23743
|
"span",
|
|
23735
23744
|
{
|
|
23736
23745
|
className: "text-xs",
|
|
@@ -23745,7 +23754,7 @@ const Vw = {
|
|
|
23745
23754
|
}
|
|
23746
23755
|
),
|
|
23747
23756
|
o && /* @__PURE__ */ A("span", { className: "text-xs text-[#6B7280]", children: o }),
|
|
23748
|
-
/* @__PURE__ */
|
|
23757
|
+
/* @__PURE__ */ L("span", { className: "sr-only", children: [
|
|
23749
23758
|
i >= 0 ? "Incremento" : "Decremento",
|
|
23750
23759
|
" de",
|
|
23751
23760
|
" ",
|
|
@@ -24492,7 +24501,7 @@ function OY() {
|
|
|
24492
24501
|
}
|
|
24493
24502
|
}
|
|
24494
24503
|
}
|
|
24495
|
-
var S = o, C = i, O = e, E = l, k = r, T = d, _ = u, D = t, j = a, N = n, R = c,
|
|
24504
|
+
var S = o, C = i, O = e, E = l, k = r, T = d, _ = u, D = t, j = a, N = n, R = c, G = f, V = !1, H = !1;
|
|
24496
24505
|
function M(te) {
|
|
24497
24506
|
return V || (V = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")), !1;
|
|
24498
24507
|
}
|
|
@@ -24535,7 +24544,7 @@ function OY() {
|
|
|
24535
24544
|
function ce(te) {
|
|
24536
24545
|
return y(te) === f;
|
|
24537
24546
|
}
|
|
24538
|
-
He.ContextConsumer = S, He.ContextProvider = C, He.Element = O, He.ForwardRef = E, He.Fragment = k, He.Lazy = T, He.Memo = _, He.Portal = D, He.Profiler = j, He.StrictMode = N, He.Suspense = R, He.SuspenseList =
|
|
24547
|
+
He.ContextConsumer = S, He.ContextProvider = C, He.Element = O, He.ForwardRef = E, He.Fragment = k, He.Lazy = T, He.Memo = _, He.Portal = D, He.Profiler = j, He.StrictMode = N, He.Suspense = R, He.SuspenseList = G, He.isAsyncMode = M, He.isConcurrentMode = z, He.isContextConsumer = Y, He.isContextProvider = Z, He.isElement = q, He.isForwardRef = K, He.isFragment = ne, He.isLazy = Q, He.isMemo = ae, He.isPortal = U, He.isProfiler = J, He.isStrictMode = ie, He.isSuspense = $, He.isSuspenseList = ce, He.isValidElementType = w, He.typeOf = y;
|
|
24539
24548
|
})()), He;
|
|
24540
24549
|
}
|
|
24541
24550
|
var q1;
|
|
@@ -27954,9 +27963,9 @@ var GU = function(t) {
|
|
|
27954
27963
|
paddingTop: 4,
|
|
27955
27964
|
paddingBottom: 4,
|
|
27956
27965
|
color: j.color || "#000"
|
|
27957
|
-
}, s),
|
|
27958
|
-
if (
|
|
27959
|
-
var Y =
|
|
27966
|
+
}, s), G = j.formatter || u || LU, V = j.value, H = j.name, M = V, z = H;
|
|
27967
|
+
if (G && M != null && z != null) {
|
|
27968
|
+
var Y = G(V, H, j, N, f);
|
|
27960
27969
|
if (Array.isArray(Y)) {
|
|
27961
27970
|
var Z = NU(Y, 2);
|
|
27962
27971
|
M = Z[0], z = Z[1];
|
|
@@ -28701,10 +28710,10 @@ var zc = /* @__PURE__ */ oi(function(e, t) {
|
|
|
28701
28710
|
containerHeight: a.height
|
|
28702
28711
|
}), O = AZ(C, 2), E = O[0], k = O[1], T = Ne(function(D, j) {
|
|
28703
28712
|
k(function(N) {
|
|
28704
|
-
var R = Math.round(D),
|
|
28705
|
-
return N.containerWidth === R && N.containerHeight ===
|
|
28713
|
+
var R = Math.round(D), G = Math.round(j);
|
|
28714
|
+
return N.containerWidth === R && N.containerHeight === G ? N : {
|
|
28706
28715
|
containerWidth: R,
|
|
28707
|
-
containerHeight:
|
|
28716
|
+
containerHeight: G
|
|
28708
28717
|
};
|
|
28709
28718
|
});
|
|
28710
28719
|
}, []);
|
|
@@ -28717,8 +28726,8 @@ var zc = /* @__PURE__ */ oi(function(e, t) {
|
|
|
28717
28726
|
trailing: !0,
|
|
28718
28727
|
leading: !1
|
|
28719
28728
|
}));
|
|
28720
|
-
var j = new ResizeObserver(D), N = y.current.getBoundingClientRect(), R = N.width,
|
|
28721
|
-
return T(R,
|
|
28729
|
+
var j = new ResizeObserver(D), N = y.current.getBoundingClientRect(), R = N.width, G = N.height;
|
|
28730
|
+
return T(R, G), j.observe(y.current), function() {
|
|
28722
28731
|
j.disconnect();
|
|
28723
28732
|
};
|
|
28724
28733
|
}, [T, p]);
|
|
@@ -28733,12 +28742,12 @@ var zc = /* @__PURE__ */ oi(function(e, t) {
|
|
|
28733
28742
|
please check the style of container, or the props width(%s) and height(%s),
|
|
28734
28743
|
or add a minWidth(%s) or minHeight(%s) or use aspect(%s) to control the
|
|
28735
28744
|
height and width.`, N, R, o, l, f, u, r);
|
|
28736
|
-
var
|
|
28745
|
+
var G = !Array.isArray(h) && Dn(h.type).endsWith("Chart");
|
|
28737
28746
|
return P.Children.map(h, function(V) {
|
|
28738
28747
|
return /* @__PURE__ */ P.isValidElement(V) ? /* @__PURE__ */ _t(V, Hl({
|
|
28739
28748
|
width: N,
|
|
28740
28749
|
height: R
|
|
28741
|
-
},
|
|
28750
|
+
}, G ? {
|
|
28742
28751
|
style: Hl({
|
|
28743
28752
|
height: "100%",
|
|
28744
28753
|
width: "100%",
|
|
@@ -29132,8 +29141,8 @@ var IM = /[ \f\n\r\t\v\u2028\u2029]+/, PM = function(t) {
|
|
|
29132
29141
|
}, n8 = function(t, r, n, a, i) {
|
|
29133
29142
|
var o = t.maxLines, s = t.children, l = t.style, c = t.breakAll, f = se(o), u = s, d = function() {
|
|
29134
29143
|
var N = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : [];
|
|
29135
|
-
return N.reduce(function(R,
|
|
29136
|
-
var V =
|
|
29144
|
+
return N.reduce(function(R, G) {
|
|
29145
|
+
var V = G.word, H = G.width, M = R[R.length - 1];
|
|
29137
29146
|
if (M && (a == null || i || M.width + H + n < Number(a)))
|
|
29138
29147
|
M.words.push(V), M.width += H + n;
|
|
29139
29148
|
else {
|
|
@@ -29146,18 +29155,18 @@ var IM = /[ \f\n\r\t\v\u2028\u2029]+/, PM = function(t) {
|
|
|
29146
29155
|
return R;
|
|
29147
29156
|
}, []);
|
|
29148
29157
|
}, h = d(r), g = function(N) {
|
|
29149
|
-
return N.reduce(function(R,
|
|
29150
|
-
return R.width >
|
|
29158
|
+
return N.reduce(function(R, G) {
|
|
29159
|
+
return R.width > G.width ? R : G;
|
|
29151
29160
|
});
|
|
29152
29161
|
};
|
|
29153
29162
|
if (!f)
|
|
29154
29163
|
return h;
|
|
29155
29164
|
for (var p = "…", m = function(N) {
|
|
29156
|
-
var R = u.slice(0, N),
|
|
29165
|
+
var R = u.slice(0, N), G = PM({
|
|
29157
29166
|
breakAll: c,
|
|
29158
29167
|
style: l,
|
|
29159
29168
|
children: R + p
|
|
29160
|
-
}).wordsWithComputedWidth, V = d(
|
|
29169
|
+
}).wordsWithComputedWidth, V = d(G), H = V.length > o || g(V).width > Number(a);
|
|
29161
29170
|
return [H, V];
|
|
29162
29171
|
}, b = 0, v = u.length - 1, x = 0, w; b <= v && x <= u.length - 1; ) {
|
|
29163
29172
|
var y = Math.floor((b + v) / 2), S = y - 1, C = m(S), O = MC(C, 2), E = O[0], k = O[1], T = m(y), _ = MC(T, 1), D = _[0];
|
|
@@ -29230,15 +29239,15 @@ var IM = /[ \f\n\r\t\v\u2028\u2029]+/, PM = function(t) {
|
|
|
29230
29239
|
className: Ie("recharts-text", C),
|
|
29231
29240
|
textAnchor: h,
|
|
29232
29241
|
fill: b.includes("url") ? jC : b
|
|
29233
|
-
}), x.map(function(R,
|
|
29242
|
+
}), x.map(function(R, G) {
|
|
29234
29243
|
var V = R.words.join(O ? "" : " ");
|
|
29235
29244
|
return (
|
|
29236
29245
|
// duplicate words will cause duplicate keys
|
|
29237
29246
|
// eslint-disable-next-line react/no-array-index-key
|
|
29238
29247
|
/* @__PURE__ */ P.createElement("tspan", {
|
|
29239
29248
|
x: k,
|
|
29240
|
-
dy:
|
|
29241
|
-
key: "".concat(V, "-").concat(
|
|
29249
|
+
dy: G === 0 ? _ : s,
|
|
29250
|
+
key: "".concat(V, "-").concat(G)
|
|
29242
29251
|
}, V)
|
|
29243
29252
|
);
|
|
29244
29253
|
}));
|
|
@@ -30101,7 +30110,7 @@ function Q8(e) {
|
|
|
30101
30110
|
var C = (d && d.prefix !== void 0 ? d.prefix : "") + (m === "$" ? r : m === "#" && /[boxX]/.test(S) ? "0" + S.toLowerCase() : ""), O = (m === "$" ? n : /[%p]/.test(S) ? o : "") + (d && d.suffix !== void 0 ? d.suffix : ""), E = KC[S], k = /[defgprs%]/.test(S);
|
|
30102
30111
|
w = w === void 0 ? 6 : /[gprs]/.test(S) ? Math.max(1, Math.min(21, w)) : Math.max(0, Math.min(20, w));
|
|
30103
30112
|
function T(_) {
|
|
30104
|
-
var D = C, j = O, N, R,
|
|
30113
|
+
var D = C, j = O, N, R, G;
|
|
30105
30114
|
if (S === "c")
|
|
30106
30115
|
j = E(_) + j, _ = "";
|
|
30107
30116
|
else {
|
|
@@ -30109,8 +30118,8 @@ function Q8(e) {
|
|
|
30109
30118
|
var V = _ < 0 || 1 / _ < 0;
|
|
30110
30119
|
if (_ = isNaN(_) ? l : E(Math.abs(_), w), y && (_ = J8(_)), V && +_ == 0 && p !== "+" && (V = !1), D = (V ? p === "(" ? p : s : p === "-" || p === "(" ? "" : p) + D, j = (S === "s" && !isNaN(_) && Kc !== void 0 ? tO[8 + Kc / 3] : "") + j + (V && p === "(" ? ")" : ""), k) {
|
|
30111
30120
|
for (N = -1, R = _.length; ++N < R; )
|
|
30112
|
-
if (
|
|
30113
|
-
j = (
|
|
30121
|
+
if (G = _.charCodeAt(N), 48 > G || G > 57) {
|
|
30122
|
+
j = (G === 46 ? a + _.slice(N + 1) : _.slice(N)) + j, _ = _.slice(0, N);
|
|
30114
30123
|
break;
|
|
30115
30124
|
}
|
|
30116
30125
|
}
|
|
@@ -30676,7 +30685,7 @@ function Xo(e, t, r) {
|
|
|
30676
30685
|
}
|
|
30677
30686
|
function O7(e) {
|
|
30678
30687
|
var t = e.dateTime, r = e.date, n = e.time, a = e.periods, i = e.days, o = e.shortDays, s = e.months, l = e.shortMonths, c = Yo(a), f = qo(a), u = Yo(i), d = qo(i), h = Yo(o), g = qo(o), p = Yo(s), m = qo(s), b = Yo(l), v = qo(l), x = {
|
|
30679
|
-
a:
|
|
30688
|
+
a: G,
|
|
30680
30689
|
A: V,
|
|
30681
30690
|
b: H,
|
|
30682
30691
|
B: M,
|
|
@@ -30836,7 +30845,7 @@ function O7(e) {
|
|
|
30836
30845
|
function R(U, J, ie) {
|
|
30837
30846
|
return O(U, n, J, ie);
|
|
30838
30847
|
}
|
|
30839
|
-
function
|
|
30848
|
+
function G(U) {
|
|
30840
30849
|
return o[U.getDay()];
|
|
30841
30850
|
}
|
|
30842
30851
|
function V(U) {
|
|
@@ -32314,9 +32323,9 @@ var jo = /* @__PURE__ */ (function(e) {
|
|
|
32314
32323
|
y2: _
|
|
32315
32324
|
});
|
|
32316
32325
|
} else if (i === "horizontal") {
|
|
32317
|
-
var N = u.scale, R = b + a,
|
|
32326
|
+
var N = u.scale, R = b + a, G = R - o, V = R + o, H = N(x - S), M = N(x + C);
|
|
32318
32327
|
y.push({
|
|
32319
|
-
x1:
|
|
32328
|
+
x1: G,
|
|
32320
32329
|
y1: M,
|
|
32321
32330
|
x2: V,
|
|
32322
32331
|
y2: M
|
|
@@ -32326,7 +32335,7 @@ var jo = /* @__PURE__ */ (function(e) {
|
|
|
32326
32335
|
x2: R,
|
|
32327
32336
|
y2: M
|
|
32328
32337
|
}), y.push({
|
|
32329
|
-
x1:
|
|
32338
|
+
x1: G,
|
|
32330
32339
|
y1: H,
|
|
32331
32340
|
x2: V,
|
|
32332
32341
|
y2: H
|
|
@@ -34238,7 +34247,7 @@ function dee() {
|
|
|
34238
34247
|
function z(Y, Z, q, K, ne, Q) {
|
|
34239
34248
|
var ae = Y[Z], U = R(ae);
|
|
34240
34249
|
if (U !== M) {
|
|
34241
|
-
var J =
|
|
34250
|
+
var J = G(ae);
|
|
34242
34251
|
return new p(
|
|
34243
34252
|
"Invalid " + K + " `" + ne + "` of type " + ("`" + J + "` supplied to `" + q + "`, expected ") + ("`" + M + "`."),
|
|
34244
34253
|
{ expectedType: M }
|
|
@@ -34311,7 +34320,7 @@ function dee() {
|
|
|
34311
34320
|
if (g(Q, M[ae]))
|
|
34312
34321
|
return null;
|
|
34313
34322
|
var U = JSON.stringify(M, function(ie, $) {
|
|
34314
|
-
var ce =
|
|
34323
|
+
var ce = G($);
|
|
34315
34324
|
return ce === "symbol" ? String($) : $;
|
|
34316
34325
|
});
|
|
34317
34326
|
return new p("Invalid " + K + " `" + ne + "` of value `" + String(Q) + "` " + ("supplied to `" + q + "`, expected one of " + U + "."));
|
|
@@ -34376,7 +34385,7 @@ function dee() {
|
|
|
34376
34385
|
for (var U in M) {
|
|
34377
34386
|
var J = M[U];
|
|
34378
34387
|
if (typeof J != "function")
|
|
34379
|
-
return T(q, K, ne, U,
|
|
34388
|
+
return T(q, K, ne, U, G(J));
|
|
34380
34389
|
var ie = J(Q, U, q, K, ne + "." + U, r);
|
|
34381
34390
|
if (ie)
|
|
34382
34391
|
return ie;
|
|
@@ -34394,7 +34403,7 @@ function dee() {
|
|
|
34394
34403
|
for (var J in U) {
|
|
34395
34404
|
var ie = M[J];
|
|
34396
34405
|
if (n(M, J) && typeof ie != "function")
|
|
34397
|
-
return T(q, K, ne, J,
|
|
34406
|
+
return T(q, K, ne, J, G(ie));
|
|
34398
34407
|
if (!ie)
|
|
34399
34408
|
return new p(
|
|
34400
34409
|
"Invalid " + K + " `" + ne + "` key `" + J + "` supplied to `" + q + "`.\nBad object: " + JSON.stringify(Y[Z], null, " ") + `
|
|
@@ -34448,7 +34457,7 @@ Valid keys: ` + JSON.stringify(Object.keys(M), null, " ")
|
|
|
34448
34457
|
var z = typeof M;
|
|
34449
34458
|
return Array.isArray(M) ? "array" : M instanceof RegExp ? "object" : N(z, M) ? "symbol" : z;
|
|
34450
34459
|
}
|
|
34451
|
-
function
|
|
34460
|
+
function G(M) {
|
|
34452
34461
|
if (typeof M > "u" || M === null)
|
|
34453
34462
|
return "" + M;
|
|
34454
34463
|
var z = R(M);
|
|
@@ -34461,7 +34470,7 @@ Valid keys: ` + JSON.stringify(Object.keys(M), null, " ")
|
|
|
34461
34470
|
return z;
|
|
34462
34471
|
}
|
|
34463
34472
|
function V(M) {
|
|
34464
|
-
var z =
|
|
34473
|
+
var z = G(M);
|
|
34465
34474
|
switch (z) {
|
|
34466
34475
|
case "array":
|
|
34467
34476
|
case "object":
|
|
@@ -37373,7 +37382,7 @@ Tr(Jn, "getComposedData", function(e) {
|
|
|
37373
37382
|
S = a.map(function(O, E) {
|
|
37374
37383
|
var k = lt(O, b, 0), T = lt(O, f, E), _ = (se(k) ? k : 0) / y, D;
|
|
37375
37384
|
E ? D = C.endAngle + Kt(p) * l * (k !== 0 ? 1 : 0) : D = o;
|
|
37376
|
-
var j = D + Kt(p) * ((k !== 0 ? h : 0) + _ * w), N = (D + j) / 2, R = (g.innerRadius + g.outerRadius) / 2,
|
|
37385
|
+
var j = D + Kt(p) * ((k !== 0 ? h : 0) + _ * w), N = (D + j) / 2, R = (g.innerRadius + g.outerRadius) / 2, G = [{
|
|
37377
37386
|
name: T,
|
|
37378
37387
|
value: k,
|
|
37379
37388
|
payload: O,
|
|
@@ -37384,7 +37393,7 @@ Tr(Jn, "getComposedData", function(e) {
|
|
|
37384
37393
|
percent: _,
|
|
37385
37394
|
cornerRadius: i,
|
|
37386
37395
|
name: T,
|
|
37387
|
-
tooltipPayload:
|
|
37396
|
+
tooltipPayload: G,
|
|
37388
37397
|
midAngle: N,
|
|
37389
37398
|
middleRadius: R,
|
|
37390
37399
|
tooltipPosition: V
|
|
@@ -38522,7 +38531,7 @@ sa(Wn, "getComposedData", function(e) {
|
|
|
38522
38531
|
}), C = rr(v, bl), O = u.map(function(E, k) {
|
|
38523
38532
|
var T, _, D, j, N, R;
|
|
38524
38533
|
c ? T = UK(c[f + k], y) : (T = lt(E, b), Array.isArray(T) || (T = [S, T]));
|
|
38525
|
-
var
|
|
38534
|
+
var G = gae(x, a2.defaultProps.minPointSize)(T[1], k);
|
|
38526
38535
|
if (g === "horizontal") {
|
|
38527
38536
|
var V, H = [o.scale(T[0]), o.scale(T[1])], M = H[0], z = H[1];
|
|
38528
38537
|
_ = $O({
|
|
@@ -38539,8 +38548,8 @@ sa(Wn, "getComposedData", function(e) {
|
|
|
38539
38548
|
y: o.y,
|
|
38540
38549
|
width: j,
|
|
38541
38550
|
height: o.height
|
|
38542
|
-
}, Math.abs(
|
|
38543
|
-
var Z = Kt(N ||
|
|
38551
|
+
}, Math.abs(G) > 0 && Math.abs(N) < Math.abs(G)) {
|
|
38552
|
+
var Z = Kt(N || G) * (Math.abs(G) - Math.abs(N));
|
|
38544
38553
|
D -= Z, N += Z;
|
|
38545
38554
|
}
|
|
38546
38555
|
} else {
|
|
@@ -38557,8 +38566,8 @@ sa(Wn, "getComposedData", function(e) {
|
|
|
38557
38566
|
y: D,
|
|
38558
38567
|
width: i.width,
|
|
38559
38568
|
height: N
|
|
38560
|
-
}, Math.abs(
|
|
38561
|
-
var Q = Kt(j ||
|
|
38569
|
+
}, Math.abs(G) > 0 && Math.abs(j) < Math.abs(G)) {
|
|
38570
|
+
var Q = Kt(j || G) * (Math.abs(G) - Math.abs(j));
|
|
38562
38571
|
j += Q;
|
|
38563
38572
|
}
|
|
38564
38573
|
}
|
|
@@ -38662,8 +38671,8 @@ var l2 = function(t, r, n, a, i) {
|
|
|
38662
38671
|
}), Number.isFinite(D)) {
|
|
38663
38672
|
var N = D / _, R = p.layout === "vertical" ? n.height : n.width;
|
|
38664
38673
|
if (p.padding === "gap" && (C = N * R / 2), p.padding === "no-gap") {
|
|
38665
|
-
var
|
|
38666
|
-
C = V -
|
|
38674
|
+
var G = Qt(t.barCategoryGap, N * R), V = N * R / 2;
|
|
38675
|
+
C = V - G - (V - G) / R * G;
|
|
38667
38676
|
}
|
|
38668
38677
|
}
|
|
38669
38678
|
}
|
|
@@ -40681,10 +40690,10 @@ var Ol = /* @__PURE__ */ (function(e) {
|
|
|
40681
40690
|
var S = v.length / s.length, C = s.map(function(_, D) {
|
|
40682
40691
|
var j = Math.floor(D * S);
|
|
40683
40692
|
if (v[j]) {
|
|
40684
|
-
var N = v[j], R = ft(N.x, _.x),
|
|
40693
|
+
var N = v[j], R = ft(N.x, _.x), G = ft(N.y, _.y);
|
|
40685
40694
|
return ur(ur({}, _), {}, {
|
|
40686
40695
|
x: R(y),
|
|
40687
|
-
y:
|
|
40696
|
+
y: G(y)
|
|
40688
40697
|
});
|
|
40689
40698
|
}
|
|
40690
40699
|
if (g) {
|
|
@@ -42727,17 +42736,17 @@ var Fy = function(t, r, n, a) {
|
|
|
42727
42736
|
Ose(b.domain, w, v) && (_ = Zv(b.domain, null, w), h && (v === "number" || S !== "auto") && (j = cs(k, x, "category")));
|
|
42728
42737
|
var N = K2(v);
|
|
42729
42738
|
if (!_ || _.length === 0) {
|
|
42730
|
-
var R,
|
|
42739
|
+
var R, G = (R = b.domain) !== null && R !== void 0 ? R : N;
|
|
42731
42740
|
if (x) {
|
|
42732
42741
|
if (_ = cs(k, x, v), v === "category" && h) {
|
|
42733
42742
|
var V = RY(_);
|
|
42734
|
-
y && V ? (D = _, _ = wu(0, T)) : y || (_ = LO(
|
|
42743
|
+
y && V ? (D = _, _ = wu(0, T)) : y || (_ = LO(G, _, p).reduce(function(Y, Z) {
|
|
42735
42744
|
return Y.indexOf(Z) >= 0 ? Y : [].concat(wo(Y), [Z]);
|
|
42736
42745
|
}, []));
|
|
42737
42746
|
} else if (v === "category")
|
|
42738
42747
|
y ? _ = _.filter(function(Y) {
|
|
42739
42748
|
return Y !== "" && !we(Y);
|
|
42740
|
-
}) : _ = LO(
|
|
42749
|
+
}) : _ = LO(G, _, p).reduce(function(Y, Z) {
|
|
42741
42750
|
return Y.indexOf(Z) >= 0 || Z === "" || we(Z) ? Y : [].concat(wo(Y), [Z]);
|
|
42742
42751
|
}, []);
|
|
42743
42752
|
else if (v === "number") {
|
|
@@ -42753,9 +42762,9 @@ var Fy = function(t, r, n, a) {
|
|
|
42753
42762
|
return Z === E && (O || !q);
|
|
42754
42763
|
}), v, f, !0);
|
|
42755
42764
|
if (v === "number")
|
|
42756
|
-
_ = jy(u, _, E, i, C),
|
|
42757
|
-
else if (v === "category" &&
|
|
42758
|
-
var M =
|
|
42765
|
+
_ = jy(u, _, E, i, C), G && (_ = Zv(G, _, w));
|
|
42766
|
+
else if (v === "category" && G) {
|
|
42767
|
+
var M = G, z = _.every(function(Y) {
|
|
42759
42768
|
return M.indexOf(Y) >= 0;
|
|
42760
42769
|
});
|
|
42761
42770
|
z && (_ = M);
|
|
@@ -42888,7 +42897,7 @@ var Fy = function(t, r, n, a) {
|
|
|
42888
42897
|
return t[r].height;
|
|
42889
42898
|
}, X0 = function(t) {
|
|
42890
42899
|
var r = t.chartName, n = t.GraphicalChild, a = t.defaultTooltipEventType, i = a === void 0 ? "axis" : a, o = t.validateTooltipEventTypes, s = o === void 0 ? ["axis"] : o, l = t.axisComponents, c = t.legendContent, f = t.formatAxisMap, u = t.defaultProps, d = function(b, v) {
|
|
42891
|
-
var x = v.graphicalItems, w = v.stackGroups, y = v.offset, S = v.updateId, C = v.dataStartIndex, O = v.dataEndIndex, E = b.barSize, k = b.layout, T = b.barGap, _ = b.barCategoryGap, D = b.maxBarSize, j = qP(k), N = j.numericAxisName, R = j.cateAxisName,
|
|
42900
|
+
var x = v.graphicalItems, w = v.stackGroups, y = v.offset, S = v.updateId, C = v.dataStartIndex, O = v.dataEndIndex, E = b.barSize, k = b.layout, T = b.barGap, _ = b.barCategoryGap, D = b.maxBarSize, j = qP(k), N = j.numericAxisName, R = j.cateAxisName, G = nle(x), V = [];
|
|
42892
42901
|
return x.forEach(function(H, M) {
|
|
42893
42902
|
var z = Uf(b.data, {
|
|
42894
42903
|
graphicalItems: [H],
|
|
@@ -42902,7 +42911,7 @@ var Fy = function(t, r, n, a) {
|
|
|
42902
42911
|
).concat((tn = H == null || (Br = H.type) === null || Br === void 0 ? void 0 : Br.displayName) !== null && tn !== void 0 ? tn : "")) : sr());
|
|
42903
42912
|
var X = nr[F];
|
|
42904
42913
|
return ee(ee({}, qt), {}, Ae(Ae({}, Ut.axisType, X), "".concat(Ut.axisType, "Ticks"), Mn(X)));
|
|
42905
|
-
}, Q), U = ae[R], J = ae["".concat(R, "Ticks")], ie = w && w[K] && w[K].hasStack && rQ(H, w[K].stackGroups), $ = Dn(H.type).indexOf("Bar") >= 0, ce = ou(U, J), te = [], ge =
|
|
42914
|
+
}, Q), U = ae[R], J = ae["".concat(R, "Ticks")], ie = w && w[K] && w[K].hasStack && rQ(H, w[K].stackGroups), $ = Dn(H.type).indexOf("Bar") >= 0, ce = ou(U, J), te = [], ge = G && VK({
|
|
42906
42915
|
barSize: E,
|
|
42907
42916
|
stackGroups: w,
|
|
42908
42917
|
totalSize: ile(ae, R)
|
|
@@ -42950,7 +42959,7 @@ var Fy = function(t, r, n, a) {
|
|
|
42950
42959
|
props: x
|
|
42951
42960
|
}))
|
|
42952
42961
|
return null;
|
|
42953
|
-
var C = x.children, O = x.layout, E = x.stackOffset, k = x.data, T = x.reverseStackOrder, _ = qP(O), D = _.numericAxisName, j = _.cateAxisName, N = rr(C, n), R = eQ(k, N, "".concat(D, "Id"), "".concat(j, "Id"), E, T),
|
|
42962
|
+
var C = x.children, O = x.layout, E = x.stackOffset, k = x.data, T = x.reverseStackOrder, _ = qP(O), D = _.numericAxisName, j = _.cateAxisName, N = rr(C, n), R = eQ(k, N, "".concat(D, "Id"), "".concat(j, "Id"), E, T), G = l.reduce(function(Y, Z) {
|
|
42954
42963
|
var q = "".concat(Z.axisType, "Map");
|
|
42955
42964
|
return ee(ee({}, Y), {}, Ae({}, q, tle(x, ee(ee({}, Z), {}, {
|
|
42956
42965
|
graphicalItems: N,
|
|
@@ -42958,14 +42967,14 @@ var Fy = function(t, r, n, a) {
|
|
|
42958
42967
|
dataStartIndex: w,
|
|
42959
42968
|
dataEndIndex: y
|
|
42960
42969
|
}))));
|
|
42961
|
-
}, {}), V = ale(ee(ee({},
|
|
42970
|
+
}, {}), V = ale(ee(ee({}, G), {}, {
|
|
42962
42971
|
props: x,
|
|
42963
42972
|
graphicalItems: N
|
|
42964
42973
|
}), v?.legendBBox);
|
|
42965
|
-
Object.keys(
|
|
42966
|
-
|
|
42974
|
+
Object.keys(G).forEach(function(Y) {
|
|
42975
|
+
G[Y] = f(x, G[Y], V, Y.replace("Map", ""), r);
|
|
42967
42976
|
});
|
|
42968
|
-
var H =
|
|
42977
|
+
var H = G["".concat(j, "Map")], M = rle(H), z = d(x, ee(ee({}, G), {}, {
|
|
42969
42978
|
dataStartIndex: w,
|
|
42970
42979
|
dataEndIndex: y,
|
|
42971
42980
|
updateId: S,
|
|
@@ -42978,7 +42987,7 @@ var Fy = function(t, r, n, a) {
|
|
|
42978
42987
|
graphicalItems: N,
|
|
42979
42988
|
offset: V,
|
|
42980
42989
|
stackGroups: R
|
|
42981
|
-
}, M),
|
|
42990
|
+
}, M), G);
|
|
42982
42991
|
}, g = /* @__PURE__ */ (function(m) {
|
|
42983
42992
|
function b(v) {
|
|
42984
42993
|
var x, w, y;
|
|
@@ -43129,8 +43138,8 @@ var Fy = function(t, r, n, a) {
|
|
|
43129
43138
|
updateId: k
|
|
43130
43139
|
}, y.state)));
|
|
43131
43140
|
else if (S.activeTooltipIndex !== void 0) {
|
|
43132
|
-
var D = S.chartX, j = S.chartY, N = S.activeTooltipIndex, R = y.state,
|
|
43133
|
-
if (!
|
|
43141
|
+
var D = S.chartX, j = S.chartY, N = S.activeTooltipIndex, R = y.state, G = R.offset, V = R.tooltipTicks;
|
|
43142
|
+
if (!G)
|
|
43134
43143
|
return;
|
|
43135
43144
|
if (typeof E == "function")
|
|
43136
43145
|
N = E(V, S);
|
|
@@ -43142,9 +43151,9 @@ var Fy = function(t, r, n, a) {
|
|
|
43142
43151
|
break;
|
|
43143
43152
|
}
|
|
43144
43153
|
}
|
|
43145
|
-
var M = ee(ee({},
|
|
43146
|
-
x:
|
|
43147
|
-
y:
|
|
43154
|
+
var M = ee(ee({}, G), {}, {
|
|
43155
|
+
x: G.left,
|
|
43156
|
+
y: G.top
|
|
43148
43157
|
}), z = Math.min(D, M.x + M.width), Y = Math.min(j, M.y + M.height), Z = V[N] && V[N].value, q = Fy(y.state, y.props.data, N), K = V[N] ? {
|
|
43149
43158
|
x: O === "horizontal" ? V[N].coordinate : z,
|
|
43150
43159
|
y: O === "horizontal" ? Y : V[N].coordinate
|
|
@@ -43158,7 +43167,7 @@ var Fy = function(t, r, n, a) {
|
|
|
43158
43167
|
} else
|
|
43159
43168
|
y.setState(S);
|
|
43160
43169
|
}), Ae(y, "renderCursor", function(S) {
|
|
43161
|
-
var C, O = y.state, E = O.isTooltipActive, k = O.activeCoordinate, T = O.activePayload, _ = O.offset, D = O.activeTooltipIndex, j = O.tooltipAxisBandSize, N = y.getTooltipEventType(), R = (C = S.props.active) !== null && C !== void 0 ? C : E,
|
|
43170
|
+
var C, O = y.state, E = O.isTooltipActive, k = O.activeCoordinate, T = O.activePayload, _ = O.offset, D = O.activeTooltipIndex, j = O.tooltipAxisBandSize, N = y.getTooltipEventType(), R = (C = S.props.active) !== null && C !== void 0 ? C : E, G = y.props.layout, V = S.key || "_recharts-cursor";
|
|
43162
43171
|
return /* @__PURE__ */ P.createElement(kse, {
|
|
43163
43172
|
key: V,
|
|
43164
43173
|
activeCoordinate: k,
|
|
@@ -43167,7 +43176,7 @@ var Fy = function(t, r, n, a) {
|
|
|
43167
43176
|
chartName: r,
|
|
43168
43177
|
element: S,
|
|
43169
43178
|
isActive: R,
|
|
43170
|
-
layout:
|
|
43179
|
+
layout: G,
|
|
43171
43180
|
offset: _,
|
|
43172
43181
|
tooltipAxisBandSize: j,
|
|
43173
43182
|
tooltipEventType: N
|
|
@@ -43180,7 +43189,7 @@ var Fy = function(t, r, n, a) {
|
|
|
43180
43189
|
ticks: Mn(D, !0)
|
|
43181
43190
|
}));
|
|
43182
43191
|
}), Ae(y, "renderPolarGrid", function(S) {
|
|
43183
|
-
var C = S.props, O = C.radialLines, E = C.polarAngles, k = C.polarRadius, T = y.state, _ = T.radiusAxisMap, D = T.angleAxisMap, j = aa(_), N = aa(D), R = N.cx,
|
|
43192
|
+
var C = S.props, O = C.radialLines, E = C.polarAngles, k = C.polarRadius, T = y.state, _ = T.radiusAxisMap, D = T.angleAxisMap, j = aa(_), N = aa(D), R = N.cx, G = N.cy, V = N.innerRadius, H = N.outerRadius;
|
|
43184
43193
|
return /* @__PURE__ */ _t(S, {
|
|
43185
43194
|
polarAngles: Array.isArray(E) ? E : Mn(N, !0).map(function(M) {
|
|
43186
43195
|
return M.coordinate;
|
|
@@ -43189,7 +43198,7 @@ var Fy = function(t, r, n, a) {
|
|
|
43189
43198
|
return M.coordinate;
|
|
43190
43199
|
}),
|
|
43191
43200
|
cx: R,
|
|
43192
|
-
cy:
|
|
43201
|
+
cy: G,
|
|
43193
43202
|
innerRadius: V,
|
|
43194
43203
|
outerRadius: H,
|
|
43195
43204
|
key: S.key || "polar-grid",
|
|
@@ -43215,15 +43224,15 @@ var Fy = function(t, r, n, a) {
|
|
|
43215
43224
|
var S, C = y.props, O = C.children, E = C.accessibilityLayer, k = hr(O, gr);
|
|
43216
43225
|
if (!k)
|
|
43217
43226
|
return null;
|
|
43218
|
-
var T = y.state, _ = T.isTooltipActive, D = T.activeCoordinate, j = T.activePayload, N = T.activeLabel, R = T.offset,
|
|
43227
|
+
var T = y.state, _ = T.isTooltipActive, D = T.activeCoordinate, j = T.activePayload, N = T.activeLabel, R = T.offset, G = (S = k.props.active) !== null && S !== void 0 ? S : _;
|
|
43219
43228
|
return /* @__PURE__ */ _t(k, {
|
|
43220
43229
|
viewBox: ee(ee({}, R), {}, {
|
|
43221
43230
|
x: R.left,
|
|
43222
43231
|
y: R.top
|
|
43223
43232
|
}),
|
|
43224
|
-
active:
|
|
43233
|
+
active: G,
|
|
43225
43234
|
label: N,
|
|
43226
|
-
payload:
|
|
43235
|
+
payload: G ? j : [],
|
|
43227
43236
|
coordinate: D,
|
|
43228
43237
|
accessibilityLayer: E
|
|
43229
43238
|
});
|
|
@@ -43243,7 +43252,7 @@ var Fy = function(t, r, n, a) {
|
|
|
43243
43252
|
}), Ae(y, "renderReferenceElement", function(S, C, O) {
|
|
43244
43253
|
if (!S)
|
|
43245
43254
|
return null;
|
|
43246
|
-
var E = y, k = E.clipPathId, T = y.state, _ = T.xAxisMap, D = T.yAxisMap, j = T.offset, N = S.type.defaultProps || {}, R = S.props,
|
|
43255
|
+
var E = y, k = E.clipPathId, T = y.state, _ = T.xAxisMap, D = T.yAxisMap, j = T.offset, N = S.type.defaultProps || {}, R = S.props, G = R.xAxisId, V = G === void 0 ? N.xAxisId : G, H = R.yAxisId, M = H === void 0 ? N.yAxisId : H;
|
|
43247
43256
|
return /* @__PURE__ */ _t(S, {
|
|
43248
43257
|
key: S.key || "".concat(C, "-").concat(O),
|
|
43249
43258
|
xAxis: _[V],
|
|
@@ -43257,7 +43266,7 @@ var Fy = function(t, r, n, a) {
|
|
|
43257
43266
|
clipPathId: k
|
|
43258
43267
|
});
|
|
43259
43268
|
}), Ae(y, "renderActivePoints", function(S) {
|
|
43260
|
-
var C = S.item, O = S.activePoint, E = S.basePoint, k = S.childIndex, T = S.isRange, _ = [], D = C.props.key, j = C.item.type.defaultProps !== void 0 ? ee(ee({}, C.item.type.defaultProps), C.item.props) : C.item.props, N = j.activeDot, R = j.dataKey,
|
|
43269
|
+
var C = S.item, O = S.activePoint, E = S.basePoint, k = S.childIndex, T = S.isRange, _ = [], D = C.props.key, j = C.item.type.defaultProps !== void 0 ? ee(ee({}, C.item.type.defaultProps), C.item.props) : C.item.props, N = j.activeDot, R = j.dataKey, G = ee(ee({
|
|
43261
43270
|
index: k,
|
|
43262
43271
|
dataKey: R,
|
|
43263
43272
|
cx: O.x,
|
|
@@ -43269,7 +43278,7 @@ var Fy = function(t, r, n, a) {
|
|
|
43269
43278
|
payload: O.payload,
|
|
43270
43279
|
value: O.value
|
|
43271
43280
|
}, ve(N, !1)), Rc(N));
|
|
43272
|
-
return _.push(b.renderActiveDot(N,
|
|
43281
|
+
return _.push(b.renderActiveDot(N, G, "".concat(D, "-activePoint-").concat(k))), E ? _.push(b.renderActiveDot(N, ee(ee({}, G), {}, {
|
|
43273
43282
|
cx: E.x,
|
|
43274
43283
|
cy: E.y
|
|
43275
43284
|
}), "".concat(D, "-basePoint-").concat(k))) : T && _.push(null), _;
|
|
@@ -43277,8 +43286,8 @@ var Fy = function(t, r, n, a) {
|
|
|
43277
43286
|
var E = y.filterFormatItem(S, C, O);
|
|
43278
43287
|
if (!E)
|
|
43279
43288
|
return null;
|
|
43280
|
-
var k = y.getTooltipEventType(), T = y.state, _ = T.isTooltipActive, D = T.tooltipAxis, j = T.activeTooltipIndex, N = T.activeLabel, R = y.props.children,
|
|
43281
|
-
k !== "axis" &&
|
|
43289
|
+
var k = y.getTooltipEventType(), T = y.state, _ = T.isTooltipActive, D = T.tooltipAxis, j = T.activeTooltipIndex, N = T.activeLabel, R = y.props.children, G = hr(R, gr), V = E.props, H = V.points, M = V.isRange, z = V.baseLine, Y = E.item.type.defaultProps !== void 0 ? ee(ee({}, E.item.type.defaultProps), E.item.props) : E.item.props, Z = Y.activeDot, q = Y.hide, K = Y.activeBar, ne = Y.activeShape, Q = !!(!q && _ && G && (Z || K || ne)), ae = {};
|
|
43290
|
+
k !== "axis" && G && G.props.trigger === "click" ? ae = {
|
|
43282
43291
|
onClick: Zl(y.handleItemMouseEnter, S.props.onClick)
|
|
43283
43292
|
} : k !== "axis" && (ae = {
|
|
43284
43293
|
onMouseLeave: Zl(y.handleItemMouseLeave, S.props.onMouseLeave),
|
|
@@ -43423,14 +43432,14 @@ var Fy = function(t, r, n, a) {
|
|
|
43423
43432
|
return H.type.name === "Scatter";
|
|
43424
43433
|
});
|
|
43425
43434
|
R && (N = ee(ee({}, N), R.props.points[E].tooltipPosition), T = R.props.points[E].tooltipPayload);
|
|
43426
|
-
var
|
|
43435
|
+
var G = {
|
|
43427
43436
|
activeTooltipIndex: E,
|
|
43428
43437
|
isTooltipActive: !0,
|
|
43429
43438
|
activeLabel: k,
|
|
43430
43439
|
activePayload: T,
|
|
43431
43440
|
activeCoordinate: N
|
|
43432
43441
|
};
|
|
43433
|
-
this.setState(
|
|
43442
|
+
this.setState(G), this.renderCursor(O), this.accessibilityManager.setIndex(E);
|
|
43434
43443
|
}
|
|
43435
43444
|
}
|
|
43436
43445
|
}
|
|
@@ -43492,9 +43501,9 @@ var Fy = function(t, r, n, a) {
|
|
|
43492
43501
|
return null;
|
|
43493
43502
|
var k = this.state, T = k.xAxisMap, _ = k.yAxisMap, D = this.getTooltipEventType(), j = XP(this.state, this.props.data, this.props.layout, E);
|
|
43494
43503
|
if (D !== "axis" && T && _) {
|
|
43495
|
-
var N = aa(T).scale, R = aa(_).scale,
|
|
43504
|
+
var N = aa(T).scale, R = aa(_).scale, G = N && N.invert ? N.invert(C.chartX) : null, V = R && R.invert ? R.invert(C.chartY) : null;
|
|
43496
43505
|
return ee(ee({}, C), {}, {
|
|
43497
|
-
xValue:
|
|
43506
|
+
xValue: G,
|
|
43498
43507
|
yValue: V
|
|
43499
43508
|
}, j);
|
|
43500
43509
|
}
|
|
@@ -43633,10 +43642,10 @@ var Fy = function(t, r, n, a) {
|
|
|
43633
43642
|
graphicalItem: E,
|
|
43634
43643
|
activeTooltipItem: S,
|
|
43635
43644
|
itemData: _.data
|
|
43636
|
-
}),
|
|
43645
|
+
}), G = _.activeIndex === void 0 ? R : _.activeIndex;
|
|
43637
43646
|
return {
|
|
43638
43647
|
graphicalItem: ee(ee({}, E), {}, {
|
|
43639
|
-
childIndex:
|
|
43648
|
+
childIndex: G
|
|
43640
43649
|
}),
|
|
43641
43650
|
payload: Zs(E, S) ? _.data[R] : E.props.data[R]
|
|
43642
43651
|
};
|
|
@@ -43671,7 +43680,7 @@ var Fy = function(t, r, n, a) {
|
|
|
43671
43680
|
x.accessibilityManager.focus();
|
|
43672
43681
|
};
|
|
43673
43682
|
}
|
|
43674
|
-
var
|
|
43683
|
+
var G = this.parseEventsOfWrapper();
|
|
43675
43684
|
return /* @__PURE__ */ P.createElement(xP, {
|
|
43676
43685
|
state: this.state,
|
|
43677
43686
|
width: this.props.width,
|
|
@@ -43685,7 +43694,7 @@ var Fy = function(t, r, n, a) {
|
|
|
43685
43694
|
width: C,
|
|
43686
43695
|
height: O
|
|
43687
43696
|
}, E)
|
|
43688
|
-
},
|
|
43697
|
+
}, G, {
|
|
43689
43698
|
ref: function(H) {
|
|
43690
43699
|
x.container = H;
|
|
43691
43700
|
}
|
|
@@ -43759,7 +43768,7 @@ var Fy = function(t, r, n, a) {
|
|
|
43759
43768
|
});
|
|
43760
43769
|
}
|
|
43761
43770
|
if (!yv(w, b.prevChildren)) {
|
|
43762
|
-
var
|
|
43771
|
+
var G, V, H, M, z = hr(w, oo), Y = z && (G = (V = z.props) === null || V === void 0 ? void 0 : V.startIndex) !== null && G !== void 0 ? G : k, Z = z && (H = (M = z.props) === null || M === void 0 ? void 0 : M.endIndex) !== null && H !== void 0 ? H : T, q = Y !== k || Z !== T, K = !we(x), ne = K && !q ? b.updateId : b.updateId + 1;
|
|
43763
43772
|
return ee(ee({
|
|
43764
43773
|
updateId: ne
|
|
43765
43774
|
}, h(ee(ee({
|
|
@@ -43843,7 +43852,7 @@ const Q2 = ({ content: e, locale: t }) => {
|
|
|
43843
43852
|
if (P.isValidElement(e))
|
|
43844
43853
|
return /* @__PURE__ */ A("div", { className: "pointer-events-none absolute inset-0 flex items-center justify-center", children: e });
|
|
43845
43854
|
const r = e, n = typeof r.value == "number" ? r.value.toLocaleString(t) : r.value;
|
|
43846
|
-
return /* @__PURE__ */
|
|
43855
|
+
return /* @__PURE__ */ L("div", { className: "pointer-events-none absolute inset-0 flex flex-col items-center justify-center", children: [
|
|
43847
43856
|
/* @__PURE__ */ A("span", { className: "text-2xl font-bold text-[#111827]", children: n }),
|
|
43848
43857
|
r.label && /* @__PURE__ */ A("span", { className: "text-xs text-[#6B7280]", children: r.label })
|
|
43849
43858
|
] });
|
|
@@ -43860,7 +43869,7 @@ const eD = ({ segments: e, position: t }) => {
|
|
|
43860
43869
|
className: t === "right" ? "flex flex-col gap-2" : "flex flex-wrap items-center justify-center gap-x-4 gap-y-2",
|
|
43861
43870
|
children: e.map((a) => {
|
|
43862
43871
|
const i = r > 0 ? (a.value / r * 100).toFixed(1) : "0.0";
|
|
43863
|
-
return /* @__PURE__ */
|
|
43872
|
+
return /* @__PURE__ */ L("div", { className: "flex items-center gap-1.5", children: [
|
|
43864
43873
|
/* @__PURE__ */ A(
|
|
43865
43874
|
"div",
|
|
43866
43875
|
{
|
|
@@ -43869,7 +43878,7 @@ const eD = ({ segments: e, position: t }) => {
|
|
|
43869
43878
|
}
|
|
43870
43879
|
),
|
|
43871
43880
|
/* @__PURE__ */ A("span", { className: "text-xs text-[#6B7280]", children: a.name }),
|
|
43872
|
-
/* @__PURE__ */
|
|
43881
|
+
/* @__PURE__ */ L("span", { className: "text-xs font-medium text-[#111827]", children: [
|
|
43873
43882
|
i,
|
|
43874
43883
|
"%"
|
|
43875
43884
|
] })
|
|
@@ -43879,7 +43888,7 @@ const eD = ({ segments: e, position: t }) => {
|
|
|
43879
43888
|
);
|
|
43880
43889
|
};
|
|
43881
43890
|
eD.displayName = "GatherDonutChartLegend";
|
|
43882
|
-
const tD = ({ height: e = 260, className: t }) => /* @__PURE__ */
|
|
43891
|
+
const tD = ({ height: e = 260, className: t }) => /* @__PURE__ */ L("div", { className: B("flex flex-col items-center", t), children: [
|
|
43883
43892
|
/* @__PURE__ */ A(
|
|
43884
43893
|
"div",
|
|
43885
43894
|
{
|
|
@@ -43888,7 +43897,7 @@ const tD = ({ height: e = 260, className: t }) => /* @__PURE__ */ G("div", { cla
|
|
|
43888
43897
|
"data-testid": "gather-donut-chart-skeleton"
|
|
43889
43898
|
}
|
|
43890
43899
|
),
|
|
43891
|
-
/* @__PURE__ */ A("div", { className: "mt-4 flex gap-4", children: [1, 2, 3].map((r) => /* @__PURE__ */
|
|
43900
|
+
/* @__PURE__ */ A("div", { className: "mt-4 flex gap-4", children: [1, 2, 3].map((r) => /* @__PURE__ */ L("div", { className: "flex items-center gap-1.5", children: [
|
|
43892
43901
|
/* @__PURE__ */ A("div", { className: "h-2.5 w-2.5 animate-pulse rounded-full bg-gray-200" }),
|
|
43893
43902
|
/* @__PURE__ */ A("div", { className: "h-3 w-14 animate-pulse rounded bg-gray-200" })
|
|
43894
43903
|
] }, r)) })
|
|
@@ -43897,8 +43906,8 @@ tD.displayName = "GatherDonutChartSkeleton";
|
|
|
43897
43906
|
const lle = 60, cle = 90, ule = 2, fle = 260, dle = "es-EC", hle = ({ active: e, payload: t, locale: r }) => {
|
|
43898
43907
|
if (!e || !t?.length) return null;
|
|
43899
43908
|
const n = t[0], a = n.payload.parent;
|
|
43900
|
-
return /* @__PURE__ */
|
|
43901
|
-
/* @__PURE__ */
|
|
43909
|
+
return /* @__PURE__ */ L("div", { className: "rounded-md border border-[#E5E7EB] bg-white px-3 py-2 text-xs shadow-md", children: [
|
|
43910
|
+
/* @__PURE__ */ L("div", { className: "flex items-center gap-1.5", children: [
|
|
43902
43911
|
/* @__PURE__ */ A(
|
|
43903
43912
|
"div",
|
|
43904
43913
|
{
|
|
@@ -43942,7 +43951,7 @@ const lle = 60, cle = 90, ule = 2, fle = 260, dle = "es-EC", hle = ({ active: e,
|
|
|
43942
43951
|
if (a)
|
|
43943
43952
|
return /* @__PURE__ */ A(tD, { height: n, className: o });
|
|
43944
43953
|
const c = r === "right", f = r !== "none";
|
|
43945
|
-
return /* @__PURE__ */
|
|
43954
|
+
return /* @__PURE__ */ L(
|
|
43946
43955
|
"div",
|
|
43947
43956
|
{
|
|
43948
43957
|
className: B(
|
|
@@ -43951,8 +43960,8 @@ const lle = 60, cle = 90, ule = 2, fle = 260, dle = "es-EC", hle = ({ active: e,
|
|
|
43951
43960
|
),
|
|
43952
43961
|
"data-testid": s ?? "gather-donut-chart",
|
|
43953
43962
|
children: [
|
|
43954
|
-
/* @__PURE__ */
|
|
43955
|
-
/* @__PURE__ */ A(zc, { width: "100%", height: n, children: /* @__PURE__ */
|
|
43963
|
+
/* @__PURE__ */ L("div", { className: B("relative", c ? "min-w-0 flex-1" : "w-full"), children: [
|
|
43964
|
+
/* @__PURE__ */ A(zc, { width: "100%", height: n, children: /* @__PURE__ */ L(ole, { children: [
|
|
43956
43965
|
e.map((u, d) => ple(u, d)),
|
|
43957
43966
|
/* @__PURE__ */ A(
|
|
43958
43967
|
gr,
|
|
@@ -43978,10 +43987,10 @@ mle.displayName = "GatherDonutChart";
|
|
|
43978
43987
|
const Ly = ({ active: e, payload: t, label: r, locale: n }) => {
|
|
43979
43988
|
if (!e || !t?.length) return null;
|
|
43980
43989
|
const a = t.reduce((i, o) => i + (o.value ?? 0), 0);
|
|
43981
|
-
return /* @__PURE__ */
|
|
43990
|
+
return /* @__PURE__ */ L("div", { className: "rounded-md border border-[#E5E7EB] bg-white px-3 py-2 text-xs shadow-md", children: [
|
|
43982
43991
|
/* @__PURE__ */ A("div", { className: "mb-1 font-medium text-[#111827]", children: r }),
|
|
43983
|
-
t.map((i) => /* @__PURE__ */
|
|
43984
|
-
/* @__PURE__ */
|
|
43992
|
+
t.map((i) => /* @__PURE__ */ L("div", { className: "flex items-center justify-between gap-3", children: [
|
|
43993
|
+
/* @__PURE__ */ L("div", { className: "flex items-center gap-1.5", children: [
|
|
43985
43994
|
/* @__PURE__ */ A(
|
|
43986
43995
|
"div",
|
|
43987
43996
|
{
|
|
@@ -43993,14 +44002,14 @@ const Ly = ({ active: e, payload: t, label: r, locale: n }) => {
|
|
|
43993
44002
|
] }),
|
|
43994
44003
|
/* @__PURE__ */ A("span", { className: "font-medium text-[#111827]", children: i.value.toLocaleString(n) })
|
|
43995
44004
|
] }, i.dataKey)),
|
|
43996
|
-
/* @__PURE__ */
|
|
44005
|
+
/* @__PURE__ */ L("div", { className: "mt-1 border-t border-[#E5E7EB] pt-1 text-right font-medium text-[#111827]", children: [
|
|
43997
44006
|
"Total: ",
|
|
43998
44007
|
a.toLocaleString(n)
|
|
43999
44008
|
] })
|
|
44000
44009
|
] });
|
|
44001
44010
|
};
|
|
44002
44011
|
Ly.displayName = "StackedBarChartTooltip";
|
|
44003
|
-
const Gy = ({ segments: e }) => /* @__PURE__ */ A("div", { className: "flex flex-wrap items-center justify-center gap-x-4 gap-y-2 pt-2", children: e.map((t) => /* @__PURE__ */
|
|
44012
|
+
const Gy = ({ segments: e }) => /* @__PURE__ */ A("div", { className: "flex flex-wrap items-center justify-center gap-x-4 gap-y-2 pt-2", children: e.map((t) => /* @__PURE__ */ L("div", { className: "flex items-center gap-1.5", children: [
|
|
44004
44013
|
/* @__PURE__ */ A(
|
|
44005
44014
|
"div",
|
|
44006
44015
|
{
|
|
@@ -44014,14 +44023,14 @@ Gy.displayName = "StackedBarChartLegend";
|
|
|
44014
44023
|
const rD = ({ height: e = 300, orientation: t = "vertical", className: r }) => {
|
|
44015
44024
|
if (t === "horizontal") {
|
|
44016
44025
|
const i = [0.85, 0.7, 0.55, 0.4, 0.25, 0.15];
|
|
44017
|
-
return /* @__PURE__ */
|
|
44026
|
+
return /* @__PURE__ */ L("div", { className: B("flex flex-col", r), children: [
|
|
44018
44027
|
/* @__PURE__ */ A(
|
|
44019
44028
|
"div",
|
|
44020
44029
|
{
|
|
44021
44030
|
className: "flex flex-col justify-center gap-3 px-4",
|
|
44022
44031
|
style: { height: e },
|
|
44023
44032
|
"data-testid": "gather-stacked-bar-chart-skeleton-horizontal",
|
|
44024
|
-
children: i.map((o, s) => /* @__PURE__ */
|
|
44033
|
+
children: i.map((o, s) => /* @__PURE__ */ L("div", { className: "flex items-center gap-3", children: [
|
|
44025
44034
|
/* @__PURE__ */ A("div", { className: "h-3 w-24 animate-pulse rounded bg-gray-200" }),
|
|
44026
44035
|
/* @__PURE__ */ A(
|
|
44027
44036
|
"div",
|
|
@@ -44033,14 +44042,14 @@ const rD = ({ height: e = 300, orientation: t = "vertical", className: r }) => {
|
|
|
44033
44042
|
] }, s))
|
|
44034
44043
|
}
|
|
44035
44044
|
),
|
|
44036
|
-
/* @__PURE__ */ A("div", { className: "mt-3 flex justify-center gap-4", children: [1, 2].map((o) => /* @__PURE__ */
|
|
44045
|
+
/* @__PURE__ */ A("div", { className: "mt-3 flex justify-center gap-4", children: [1, 2].map((o) => /* @__PURE__ */ L("div", { className: "flex items-center gap-1.5", children: [
|
|
44037
44046
|
/* @__PURE__ */ A("div", { className: "h-2.5 w-2.5 animate-pulse rounded-full bg-gray-200" }),
|
|
44038
44047
|
/* @__PURE__ */ A("div", { className: "h-3 w-14 animate-pulse rounded bg-gray-200" })
|
|
44039
44048
|
] }, o)) })
|
|
44040
44049
|
] });
|
|
44041
44050
|
}
|
|
44042
44051
|
const a = [0.7, 0.9, 0.5, 0.8, 0.6, 0.4, 0.75];
|
|
44043
|
-
return /* @__PURE__ */
|
|
44052
|
+
return /* @__PURE__ */ L("div", { className: B("flex flex-col", r), children: [
|
|
44044
44053
|
/* @__PURE__ */ A(
|
|
44045
44054
|
"div",
|
|
44046
44055
|
{
|
|
@@ -44057,7 +44066,7 @@ const rD = ({ height: e = 300, orientation: t = "vertical", className: r }) => {
|
|
|
44057
44066
|
))
|
|
44058
44067
|
}
|
|
44059
44068
|
),
|
|
44060
|
-
/* @__PURE__ */ A("div", { className: "mt-3 flex justify-center gap-4", children: [1, 2, 3].map((i) => /* @__PURE__ */
|
|
44069
|
+
/* @__PURE__ */ A("div", { className: "mt-3 flex justify-center gap-4", children: [1, 2, 3].map((i) => /* @__PURE__ */ L("div", { className: "flex items-center gap-1.5", children: [
|
|
44061
44070
|
/* @__PURE__ */ A("div", { className: "h-2.5 w-2.5 animate-pulse rounded-full bg-gray-200" }),
|
|
44062
44071
|
/* @__PURE__ */ A("div", { className: "h-3 w-14 animate-pulse rounded bg-gray-200" })
|
|
44063
44072
|
] }, i)) })
|
|
@@ -44102,13 +44111,13 @@ const gle = 300, vle = "es-EC", yle = 160, ZP = "stack", ble = (e, t) => {
|
|
|
44102
44111
|
}
|
|
44103
44112
|
);
|
|
44104
44113
|
const g = t[t.length - 1]?.dataKey;
|
|
44105
|
-
return u ? /* @__PURE__ */
|
|
44114
|
+
return u ? /* @__PURE__ */ L(
|
|
44106
44115
|
"div",
|
|
44107
44116
|
{
|
|
44108
44117
|
className: B("flex flex-col", c),
|
|
44109
44118
|
"data-testid": f ?? "gather-stacked-bar-chart-horizontal",
|
|
44110
44119
|
children: [
|
|
44111
|
-
/* @__PURE__ */ A(zc, { width: "100%", height: n, children: /* @__PURE__ */
|
|
44120
|
+
/* @__PURE__ */ A(zc, { width: "100%", height: n, children: /* @__PURE__ */ L(UP, { data: e, layout: "vertical", children: [
|
|
44112
44121
|
a && /* @__PURE__ */ A(
|
|
44113
44122
|
Nu,
|
|
44114
44123
|
{
|
|
@@ -44185,13 +44194,13 @@ const gle = 300, vle = "es-EC", yle = 160, ZP = "stack", ble = (e, t) => {
|
|
|
44185
44194
|
/* @__PURE__ */ A(Gy, { segments: t })
|
|
44186
44195
|
]
|
|
44187
44196
|
}
|
|
44188
|
-
) : /* @__PURE__ */
|
|
44197
|
+
) : /* @__PURE__ */ L(
|
|
44189
44198
|
"div",
|
|
44190
44199
|
{
|
|
44191
44200
|
className: B("flex flex-col", c),
|
|
44192
44201
|
"data-testid": f ?? "gather-stacked-bar-chart",
|
|
44193
44202
|
children: [
|
|
44194
|
-
/* @__PURE__ */ A(zc, { width: "100%", height: n, children: /* @__PURE__ */
|
|
44203
|
+
/* @__PURE__ */ A(zc, { width: "100%", height: n, children: /* @__PURE__ */ L(UP, { data: e, children: [
|
|
44195
44204
|
a && /* @__PURE__ */ A(
|
|
44196
44205
|
Nu,
|
|
44197
44206
|
{
|
|
@@ -44270,7 +44279,7 @@ const nce = ({
|
|
|
44270
44279
|
className: c,
|
|
44271
44280
|
"data-testid": f,
|
|
44272
44281
|
style: { width: "100%", height: r },
|
|
44273
|
-
children: /* @__PURE__ */ A(zc, { width: "100%", height: "100%", children: /* @__PURE__ */
|
|
44282
|
+
children: /* @__PURE__ */ A(zc, { width: "100%", height: "100%", children: /* @__PURE__ */ L(sle, { data: e, children: [
|
|
44274
44283
|
a && /* @__PURE__ */ A(
|
|
44275
44284
|
Nu,
|
|
44276
44285
|
{
|
|
@@ -44440,8 +44449,8 @@ const nce = ({
|
|
|
44440
44449
|
style: { height: 140 },
|
|
44441
44450
|
"data-testid": u ? `${u}-skeleton` : void 0
|
|
44442
44451
|
}
|
|
44443
|
-
) : /* @__PURE__ */
|
|
44444
|
-
/* @__PURE__ */
|
|
44452
|
+
) : /* @__PURE__ */ L("div", { className: f, "data-testid": u, children: [
|
|
44453
|
+
/* @__PURE__ */ L("div", { className: "flex gap-2", children: [
|
|
44445
44454
|
/* @__PURE__ */ A("div", { className: "flex flex-col gap-[2px] pt-5", children: Sle.map((v, x) => /* @__PURE__ */ A(
|
|
44446
44455
|
"div",
|
|
44447
44456
|
{
|
|
@@ -44451,7 +44460,7 @@ const nce = ({
|
|
|
44451
44460
|
},
|
|
44452
44461
|
v
|
|
44453
44462
|
)) }),
|
|
44454
|
-
/* @__PURE__ */ A("div", { className: "flex-1 overflow-x-auto pb-2", children: /* @__PURE__ */
|
|
44463
|
+
/* @__PURE__ */ A("div", { className: "flex-1 overflow-x-auto pb-2", children: /* @__PURE__ */ L(
|
|
44455
44464
|
"div",
|
|
44456
44465
|
{
|
|
44457
44466
|
className: c === "center" ? "mx-auto" : "",
|
|
@@ -44508,7 +44517,7 @@ const nce = ({
|
|
|
44508
44517
|
}
|
|
44509
44518
|
) })
|
|
44510
44519
|
] }),
|
|
44511
|
-
/* @__PURE__ */
|
|
44520
|
+
/* @__PURE__ */ L(
|
|
44512
44521
|
"div",
|
|
44513
44522
|
{
|
|
44514
44523
|
className: `mt-3 flex items-center gap-1 text-[10px] text-ui-text-muted ${s === "left" ? "justify-start" : s === "right" ? "justify-end" : "justify-center"}`,
|
|
@@ -44632,7 +44641,7 @@ const Tle = ({
|
|
|
44632
44641
|
), N = st(
|
|
44633
44642
|
() => g ?? Ile[i],
|
|
44634
44643
|
[g, i]
|
|
44635
|
-
), R = st(() => o === null ? null : o !== void 0 ? o : _le(i), [o, i]),
|
|
44644
|
+
), R = st(() => o === null ? null : o !== void 0 ? o : _le(i), [o, i]), G = Ne(() => {
|
|
44636
44645
|
v || (h ? h() : t(!1));
|
|
44637
44646
|
}, [v, h, t]), V = Ne(() => {
|
|
44638
44647
|
v || p || d();
|
|
@@ -44660,7 +44669,7 @@ const Tle = ({
|
|
|
44660
44669
|
clearTimeout(Y), D.current instanceof HTMLElement && D.current.focus();
|
|
44661
44670
|
};
|
|
44662
44671
|
}, [e]), !e) return null;
|
|
44663
|
-
const M = T * 10, z = /* @__PURE__ */
|
|
44672
|
+
const M = T * 10, z = /* @__PURE__ */ L("div", { className: "gather-confirm-dialog-root", children: [
|
|
44664
44673
|
/* @__PURE__ */ A(
|
|
44665
44674
|
"div",
|
|
44666
44675
|
{
|
|
@@ -44694,7 +44703,7 @@ const Tle = ({
|
|
|
44694
44703
|
),
|
|
44695
44704
|
style: C,
|
|
44696
44705
|
onClick: (Y) => Y.stopPropagation(),
|
|
44697
|
-
children: /* @__PURE__ */
|
|
44706
|
+
children: /* @__PURE__ */ L(
|
|
44698
44707
|
"div",
|
|
44699
44708
|
{
|
|
44700
44709
|
className: B(
|
|
@@ -44731,12 +44740,12 @@ const Tle = ({
|
|
|
44731
44740
|
}
|
|
44732
44741
|
),
|
|
44733
44742
|
a && /* @__PURE__ */ A("div", { className: "mt-3 w-full", children: a }),
|
|
44734
|
-
(!m || !b) && /* @__PURE__ */
|
|
44743
|
+
(!m || !b) && /* @__PURE__ */ L("div", { className: B("mt-6 flex w-full gap-3", k), children: [
|
|
44735
44744
|
!m && /* @__PURE__ */ A(
|
|
44736
44745
|
da,
|
|
44737
44746
|
{
|
|
44738
44747
|
variant: "gather-outline",
|
|
44739
|
-
onClick:
|
|
44748
|
+
onClick: G,
|
|
44740
44749
|
disabled: v,
|
|
44741
44750
|
className: "h-11 min-w-0 flex-1",
|
|
44742
44751
|
children: u
|
|
@@ -44847,14 +44856,14 @@ const Nle = {
|
|
|
44847
44856
|
}
|
|
44848
44857
|
};
|
|
44849
44858
|
function Mle() {
|
|
44850
|
-
return /* @__PURE__ */
|
|
44859
|
+
return /* @__PURE__ */ L("div", { className: "space-y-6 p-6 pb-16", children: [
|
|
44851
44860
|
/* @__PURE__ */ A(pt, { className: "h-3.5 w-44" }),
|
|
44852
44861
|
/* @__PURE__ */ A(pt, { className: "h-8 w-52" }),
|
|
44853
|
-
/* @__PURE__ */
|
|
44862
|
+
/* @__PURE__ */ L("div", { className: "flex gap-0 border-b border-secondary-200", children: [
|
|
44854
44863
|
/* @__PURE__ */ A(pt, { className: "h-10 w-28 rounded-none rounded-t" }),
|
|
44855
44864
|
/* @__PURE__ */ A(pt, { className: "ml-1 h-10 w-28 rounded-none rounded-t" })
|
|
44856
44865
|
] }),
|
|
44857
|
-
/* @__PURE__ */ A("div", { className: "grid grid-cols-2 gap-4 lg:grid-cols-4 mt-2", children: Array.from({ length: 4 }).map((e, t) => /* @__PURE__ */
|
|
44866
|
+
/* @__PURE__ */ A("div", { className: "grid grid-cols-2 gap-4 lg:grid-cols-4 mt-2", children: Array.from({ length: 4 }).map((e, t) => /* @__PURE__ */ L(
|
|
44858
44867
|
"div",
|
|
44859
44868
|
{
|
|
44860
44869
|
className: "rounded-lg border border-secondary-200 bg-white p-4 space-y-3",
|
|
@@ -44866,28 +44875,28 @@ function Mle() {
|
|
|
44866
44875
|
},
|
|
44867
44876
|
t
|
|
44868
44877
|
)) }),
|
|
44869
|
-
/* @__PURE__ */
|
|
44870
|
-
/* @__PURE__ */
|
|
44878
|
+
/* @__PURE__ */ L("div", { className: "rounded-lg border border-secondary-200 bg-white p-4 space-y-4", children: [
|
|
44879
|
+
/* @__PURE__ */ L("div", { className: "flex items-center justify-between", children: [
|
|
44871
44880
|
/* @__PURE__ */ A(pt, { className: "h-5 w-32" }),
|
|
44872
|
-
/* @__PURE__ */
|
|
44881
|
+
/* @__PURE__ */ L("div", { className: "flex gap-2", children: [
|
|
44873
44882
|
/* @__PURE__ */ A(pt, { className: "h-8 w-24 rounded-md" }),
|
|
44874
44883
|
/* @__PURE__ */ A(pt, { className: "h-8 w-24 rounded-md" })
|
|
44875
44884
|
] })
|
|
44876
44885
|
] }),
|
|
44877
|
-
/* @__PURE__ */
|
|
44886
|
+
/* @__PURE__ */ L("div", { className: "flex gap-4 border-b border-secondary-100 pb-2", children: [
|
|
44878
44887
|
/* @__PURE__ */ A(pt, { className: "h-3.5 flex-[2]" }),
|
|
44879
44888
|
/* @__PURE__ */ A(pt, { className: "h-3.5 flex-1" }),
|
|
44880
44889
|
/* @__PURE__ */ A(pt, { className: "h-3.5 flex-1" }),
|
|
44881
44890
|
/* @__PURE__ */ A(pt, { className: "h-3.5 w-16 shrink-0" })
|
|
44882
44891
|
] }),
|
|
44883
|
-
Array.from({ length: 7 }).map((e, t) => /* @__PURE__ */
|
|
44892
|
+
Array.from({ length: 7 }).map((e, t) => /* @__PURE__ */ L(
|
|
44884
44893
|
"div",
|
|
44885
44894
|
{
|
|
44886
44895
|
className: "flex items-center gap-4 border-b border-secondary-50 py-2.5 last:border-b-0",
|
|
44887
44896
|
children: [
|
|
44888
|
-
/* @__PURE__ */
|
|
44897
|
+
/* @__PURE__ */ L("div", { className: "flex items-center gap-2 flex-[2]", children: [
|
|
44889
44898
|
/* @__PURE__ */ A(pt, { className: "h-7 w-7 rounded-full shrink-0" }),
|
|
44890
|
-
/* @__PURE__ */
|
|
44899
|
+
/* @__PURE__ */ L("div", { className: "space-y-1.5 flex-1", children: [
|
|
44891
44900
|
/* @__PURE__ */ A(pt, { className: "h-3.5 w-3/4" }),
|
|
44892
44901
|
/* @__PURE__ */ A(pt, { className: "h-3 w-1/2" })
|
|
44893
44902
|
] })
|
|
@@ -44914,7 +44923,7 @@ const Rle = ({
|
|
|
44914
44923
|
"data-testid": s
|
|
44915
44924
|
}) => {
|
|
44916
44925
|
const l = Nle[t];
|
|
44917
|
-
return /* @__PURE__ */
|
|
44926
|
+
return /* @__PURE__ */ L(
|
|
44918
44927
|
"div",
|
|
44919
44928
|
{
|
|
44920
44929
|
className: B(
|
|
@@ -44932,7 +44941,7 @@ const Rle = ({
|
|
|
44932
44941
|
}
|
|
44933
44942
|
),
|
|
44934
44943
|
/* @__PURE__ */ A("div", { className: "absolute inset-0 bg-white/50", "aria-hidden": "true" }),
|
|
44935
|
-
/* @__PURE__ */ A("div", { className: "absolute inset-0 flex items-center justify-center p-6", children: /* @__PURE__ */
|
|
44944
|
+
/* @__PURE__ */ A("div", { className: "absolute inset-0 flex items-center justify-center p-6", children: /* @__PURE__ */ L("div", { className: "w-full max-w-sm rounded-2xl border border-secondary-200 bg-white p-8 shadow-2xl", children: [
|
|
44936
44945
|
/* @__PURE__ */ A(
|
|
44937
44946
|
"div",
|
|
44938
44947
|
{
|
|
@@ -44943,7 +44952,7 @@ const Rle = ({
|
|
|
44943
44952
|
children: /* @__PURE__ */ A("span", { className: l.iconText, children: e })
|
|
44944
44953
|
}
|
|
44945
44954
|
),
|
|
44946
|
-
/* @__PURE__ */ A("div", { className: "mb-3 flex items-center gap-2", children: /* @__PURE__ */
|
|
44955
|
+
/* @__PURE__ */ A("div", { className: "mb-3 flex items-center gap-2", children: /* @__PURE__ */ L(
|
|
44947
44956
|
"span",
|
|
44948
44957
|
{
|
|
44949
44958
|
className: B(
|
|
@@ -44961,7 +44970,7 @@ const Rle = ({
|
|
|
44961
44970
|
/* @__PURE__ */ A("h2", { className: "text-xl font-bold text-text-primary", children: r }),
|
|
44962
44971
|
/* @__PURE__ */ A("p", { className: "mt-2 text-sm leading-relaxed text-text-muted", children: n }),
|
|
44963
44972
|
/* @__PURE__ */ A("div", { className: "my-5 border-t border-secondary-200" }),
|
|
44964
|
-
/* @__PURE__ */ A("ul", { className: "space-y-2.5", children: a.map((c, f) => /* @__PURE__ */
|
|
44973
|
+
/* @__PURE__ */ A("ul", { className: "space-y-2.5", children: a.map((c, f) => /* @__PURE__ */ L(
|
|
44965
44974
|
"li",
|
|
44966
44975
|
{
|
|
44967
44976
|
className: "flex items-start gap-2.5 text-sm text-text-secondary",
|