carconnect-gatherleads-ui-lib 3.7.0-GL-1700-Modulo-Rendimiento-ROI.2 → 3.7.0-GL-1521-Modulo-Rendimiento.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 G, 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()], L = () => [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: L()
|
|
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", ...L()]
|
|
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
|
+
...L()
|
|
1148
1148
|
]
|
|
1149
1149
|
}],
|
|
1150
1150
|
/**
|
|
@@ -1162,7 +1162,7 @@ const lD = (e, t) => {
|
|
|
1162
1162
|
{
|
|
1163
1163
|
screen: [o]
|
|
1164
1164
|
},
|
|
1165
|
-
...
|
|
1165
|
+
...L()
|
|
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", ...L()]
|
|
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", ...L()]
|
|
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", ...L()]
|
|
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__ */ G(
|
|
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__ */ G(
|
|
5159
5159
|
"div",
|
|
5160
5160
|
{
|
|
5161
5161
|
className: B(
|
|
@@ -5194,17 +5194,18 @@ const Kle = P.forwardRef(
|
|
|
5194
5194
|
onRowExpand: h,
|
|
5195
5195
|
renderExpandedContent: g,
|
|
5196
5196
|
getRowId: p,
|
|
5197
|
-
|
|
5198
|
-
|
|
5199
|
-
|
|
5200
|
-
|
|
5197
|
+
isRowExpandable: m,
|
|
5198
|
+
...b
|
|
5199
|
+
}, v) => {
|
|
5200
|
+
const w = n || ((E, k) => {
|
|
5201
|
+
if (!k.key || !E || typeof E != "object")
|
|
5201
5202
|
return "";
|
|
5202
|
-
const
|
|
5203
|
-
return
|
|
5204
|
-
}),
|
|
5205
|
-
const
|
|
5206
|
-
return Array.from({ length: f }).map((
|
|
5207
|
-
}, [f, t.length, u]),
|
|
5203
|
+
const T = E[k.key];
|
|
5204
|
+
return T == null ? "" : typeof T == "boolean" ? String(T) : typeof T == "number" ? T.toLocaleString() : T instanceof Date ? T.toLocaleDateString() : P.isValidElement(T) || typeof T == "object" || typeof T == "function" ? T : String(T);
|
|
5205
|
+
}), y = (E, k) => p ? p(E, k) : k, S = P.useMemo(() => {
|
|
5206
|
+
const E = t.length > 0 ? t.length : u;
|
|
5207
|
+
return Array.from({ length: f }).map((k, T) => /* @__PURE__ */ A(Ii, { className: "animate-pulse", children: Array.from({ length: E }).map((_, D) => /* @__PURE__ */ A(_l, { className: "py-4", children: /* @__PURE__ */ A("div", { className: "h-4 rounded bg-gather-gray-200" }) }, `loading-cell-${D}`)) }, `loading-${T}`));
|
|
5208
|
+
}, [f, t.length, u]), C = P.useMemo(
|
|
5208
5209
|
() => /* @__PURE__ */ A(Ii, { children: /* @__PURE__ */ A(
|
|
5209
5210
|
_l,
|
|
5210
5211
|
{
|
|
@@ -5214,73 +5215,74 @@ const Kle = P.forwardRef(
|
|
|
5214
5215
|
}
|
|
5215
5216
|
) }),
|
|
5216
5217
|
[t.length, l]
|
|
5217
|
-
),
|
|
5218
|
-
const
|
|
5219
|
-
return /* @__PURE__ */
|
|
5218
|
+
), O = P.useMemo(() => r.length ? r.map((E, k) => {
|
|
5219
|
+
const T = k === r.length - 1, _ = y(E, k), D = d?.has(_) ?? !1, N = !!g && h && (m ? m(E, k) : !0);
|
|
5220
|
+
return /* @__PURE__ */ G(P.Fragment, { children: [
|
|
5220
5221
|
/* @__PURE__ */ A(
|
|
5221
5222
|
Ii,
|
|
5222
5223
|
{
|
|
5223
5224
|
className: B(
|
|
5224
5225
|
"text-sm transition-colors duration-150",
|
|
5225
5226
|
"border-b border-gather-gray-200",
|
|
5226
|
-
(i ||
|
|
5227
|
-
|
|
5228
|
-
|
|
5229
|
-
s?.(
|
|
5227
|
+
(i || N) && "cursor-pointer hover:bg-gather-gray-50",
|
|
5228
|
+
T && !D && "last:border-0",
|
|
5229
|
+
D && "bg-gather-gray-50/60",
|
|
5230
|
+
s?.(E, k)
|
|
5230
5231
|
),
|
|
5231
5232
|
onClick: () => {
|
|
5232
|
-
i ? i(
|
|
5233
|
+
i ? i(E, k) : N && h(_);
|
|
5233
5234
|
},
|
|
5234
|
-
onDoubleClick: () => o?.(
|
|
5235
|
-
children: t.map((
|
|
5236
|
-
const
|
|
5235
|
+
onDoubleClick: () => o?.(E, k),
|
|
5236
|
+
children: t.map((R, L) => {
|
|
5237
|
+
const V = L === 0, H = L === t.length - 1;
|
|
5237
5238
|
return /* @__PURE__ */ A(
|
|
5238
5239
|
_l,
|
|
5239
5240
|
{
|
|
5240
5241
|
className: B(
|
|
5241
5242
|
"py-3",
|
|
5242
|
-
|
|
5243
|
-
|
|
5244
|
-
|
|
5245
|
-
|
|
5246
|
-
|
|
5243
|
+
R.align === "center" && "text-center",
|
|
5244
|
+
R.align === "right" && "text-right",
|
|
5245
|
+
R.className,
|
|
5246
|
+
T && !D && V && "rounded-bl-lg",
|
|
5247
|
+
T && !D && H && "rounded-br-lg"
|
|
5247
5248
|
),
|
|
5248
|
-
style: { width:
|
|
5249
|
-
children:
|
|
5249
|
+
style: { width: R.width },
|
|
5250
|
+
children: w(E, R, k, L)
|
|
5250
5251
|
},
|
|
5251
|
-
`cell-${
|
|
5252
|
+
`cell-${k}-${L}`
|
|
5252
5253
|
);
|
|
5253
5254
|
})
|
|
5254
5255
|
}
|
|
5255
5256
|
),
|
|
5256
|
-
|
|
5257
|
+
D && g && /* @__PURE__ */ A(Ii, { className: "bg-gather-gray-50/40", children: /* @__PURE__ */ A(
|
|
5257
5258
|
_l,
|
|
5258
5259
|
{
|
|
5259
5260
|
colSpan: t.length,
|
|
5260
5261
|
className: "px-3 pb-3 pt-0",
|
|
5261
|
-
children: g(
|
|
5262
|
+
children: g(E, k)
|
|
5262
5263
|
}
|
|
5263
5264
|
) })
|
|
5264
|
-
] }, `row-${
|
|
5265
|
+
] }, `row-${k}`);
|
|
5265
5266
|
}) : null, [
|
|
5266
5267
|
r,
|
|
5267
5268
|
t,
|
|
5268
|
-
|
|
5269
|
+
w,
|
|
5269
5270
|
i,
|
|
5270
5271
|
o,
|
|
5271
5272
|
h,
|
|
5272
5273
|
s,
|
|
5273
5274
|
d,
|
|
5274
5275
|
g,
|
|
5275
|
-
p
|
|
5276
|
+
p,
|
|
5277
|
+
m
|
|
5276
5278
|
]);
|
|
5277
5279
|
return /* @__PURE__ */ A(
|
|
5278
5280
|
_$,
|
|
5279
5281
|
{
|
|
5280
|
-
ref:
|
|
5282
|
+
ref: v,
|
|
5281
5283
|
className: B("text-sm text-base-regularBlack", e),
|
|
5282
|
-
...
|
|
5283
|
-
children: c ?
|
|
5284
|
+
...b,
|
|
5285
|
+
children: c ? S : t.length > 0 && r.length > 0 ? O : t.length > 0 && r.length === 0 ? C : a
|
|
5284
5286
|
}
|
|
5285
5287
|
);
|
|
5286
5288
|
}
|
|
@@ -5531,10 +5533,10 @@ const kB = Ot(
|
|
|
5531
5533
|
disabled: c || a,
|
|
5532
5534
|
asChild: n,
|
|
5533
5535
|
...f,
|
|
5534
|
-
children: a ? /* @__PURE__ */
|
|
5536
|
+
children: a ? /* @__PURE__ */ G(qe, { children: [
|
|
5535
5537
|
/* @__PURE__ */ A(Jy, { className: "mr-2 h-4 w-4 animate-spin" }),
|
|
5536
5538
|
i
|
|
5537
|
-
] }) : /* @__PURE__ */
|
|
5539
|
+
] }) : /* @__PURE__ */ G(qe, { children: [
|
|
5538
5540
|
l && o && /* @__PURE__ */ A("span", { className: "gap-3", children: o }),
|
|
5539
5541
|
l || o || s,
|
|
5540
5542
|
l && s && /* @__PURE__ */ A("span", { className: "gap-3", children: s })
|
|
@@ -5848,7 +5850,7 @@ var zu = "Switch", [ZB] = zn(zu), [JB, KB] = ZB(zu), ME = I.forwardRef(
|
|
|
5848
5850
|
onChange: c,
|
|
5849
5851
|
caller: zu
|
|
5850
5852
|
});
|
|
5851
|
-
return /* @__PURE__ */
|
|
5853
|
+
return /* @__PURE__ */ G(JB, { scope: r, checked: b, disabled: s, children: [
|
|
5852
5854
|
/* @__PURE__ */ A(
|
|
5853
5855
|
$e.button,
|
|
5854
5856
|
{
|
|
@@ -5984,7 +5986,7 @@ const td = Ot(
|
|
|
5984
5986
|
i === "center" && "justify-center",
|
|
5985
5987
|
i === "space-between" || i === "top" ? "" : t === "sm" ? "h-14" : "h-16"
|
|
5986
5988
|
),
|
|
5987
|
-
children: /* @__PURE__ */
|
|
5989
|
+
children: /* @__PURE__ */ G("label", { className: "flex cursor-pointer items-center gap-2", children: [
|
|
5988
5990
|
o && /* @__PURE__ */ A("span", { className: "text-sm font-normal text-ui-text-muted peer-data-[state=checked]:text-ui-text-primary", children: o }),
|
|
5989
5991
|
/* @__PURE__ */ A(
|
|
5990
5992
|
Qf,
|
|
@@ -6006,34 +6008,34 @@ const td = Ot(
|
|
|
6006
6008
|
}
|
|
6007
6009
|
), h = l ? /* @__PURE__ */ A("p", { className: B("mt-1.5 text-sm text-ui-text-muted", c && "text-destructive"), children: l }) : null;
|
|
6008
6010
|
if (!n)
|
|
6009
|
-
return /* @__PURE__ */
|
|
6011
|
+
return /* @__PURE__ */ G("div", { className: B("flex flex-col", e), children: [
|
|
6010
6012
|
d,
|
|
6011
6013
|
h
|
|
6012
6014
|
] });
|
|
6013
|
-
const g = /* @__PURE__ */
|
|
6015
|
+
const g = /* @__PURE__ */ G("span", { className: "text-sm font-normal text-ui-text-primary", children: [
|
|
6014
6016
|
n,
|
|
6015
6017
|
a && /* @__PURE__ */ A("span", { className: "ml-0.5 text-destructive", children: "*" })
|
|
6016
6018
|
] });
|
|
6017
|
-
return i === "top" ? /* @__PURE__ */
|
|
6019
|
+
return i === "top" ? /* @__PURE__ */ G("div", { className: B("flex flex-col gap-1.5 w-full", e), children: [
|
|
6018
6020
|
g,
|
|
6019
6021
|
d,
|
|
6020
6022
|
h
|
|
6021
|
-
] }) : i === "left" ? /* @__PURE__ */
|
|
6022
|
-
/* @__PURE__ */
|
|
6023
|
+
] }) : i === "left" ? /* @__PURE__ */ G("div", { className: B("flex flex-col gap-1.5", e), children: [
|
|
6024
|
+
/* @__PURE__ */ G("div", { className: "flex items-center gap-3", children: [
|
|
6023
6025
|
g,
|
|
6024
6026
|
d
|
|
6025
6027
|
] }),
|
|
6026
6028
|
h
|
|
6027
|
-
] }) : i === "left-inline" ? /* @__PURE__ */
|
|
6028
|
-
/* @__PURE__ */
|
|
6029
|
+
] }) : i === "left-inline" ? /* @__PURE__ */ G("div", { className: B("flex flex-col gap-1.5", e), children: [
|
|
6030
|
+
/* @__PURE__ */ G("div", { className: "flex items-center justify-start gap-3", children: [
|
|
6029
6031
|
g,
|
|
6030
6032
|
d
|
|
6031
6033
|
] }),
|
|
6032
6034
|
h
|
|
6033
|
-
] }) : i === "inline" ? /* @__PURE__ */
|
|
6034
|
-
/* @__PURE__ */
|
|
6035
|
+
] }) : i === "inline" ? /* @__PURE__ */ G("div", { className: B("flex flex-col gap-1.5", e), children: [
|
|
6036
|
+
/* @__PURE__ */ G("div", { className: "flex items-center justify-start gap-3", children: [
|
|
6035
6037
|
g,
|
|
6036
|
-
/* @__PURE__ */ A("div", { className: "flex items-center", children: /* @__PURE__ */
|
|
6038
|
+
/* @__PURE__ */ A("div", { className: "flex items-center", children: /* @__PURE__ */ G("label", { className: "flex cursor-pointer items-center gap-2", children: [
|
|
6037
6039
|
o && /* @__PURE__ */ A("span", { className: "text-sm font-normal text-ui-text-muted peer-data-[state=checked]:text-ui-text-primary", children: o }),
|
|
6038
6040
|
/* @__PURE__ */ A(
|
|
6039
6041
|
Qf,
|
|
@@ -6054,10 +6056,10 @@ const td = Ot(
|
|
|
6054
6056
|
] }) })
|
|
6055
6057
|
] }),
|
|
6056
6058
|
h
|
|
6057
|
-
] }) : i === "space-between" ? /* @__PURE__ */
|
|
6058
|
-
/* @__PURE__ */
|
|
6059
|
+
] }) : i === "space-between" ? /* @__PURE__ */ G("div", { className: B("flex flex-col gap-1.5 w-full", e), children: [
|
|
6060
|
+
/* @__PURE__ */ G("div", { className: "flex items-center justify-between w-full", children: [
|
|
6059
6061
|
g,
|
|
6060
|
-
/* @__PURE__ */ A("div", { className: "flex items-center", children: /* @__PURE__ */
|
|
6062
|
+
/* @__PURE__ */ A("div", { className: "flex items-center", children: /* @__PURE__ */ G("label", { className: "flex cursor-pointer items-center gap-2", children: [
|
|
6061
6063
|
o && /* @__PURE__ */ A("span", { className: "text-sm font-normal text-ui-text-muted peer-data-[state=checked]:text-ui-text-primary", children: o }),
|
|
6062
6064
|
/* @__PURE__ */ A(
|
|
6063
6065
|
Qf,
|
|
@@ -6078,19 +6080,19 @@ const td = Ot(
|
|
|
6078
6080
|
] }) })
|
|
6079
6081
|
] }),
|
|
6080
6082
|
h
|
|
6081
|
-
] }) : i === "right" ? /* @__PURE__ */
|
|
6082
|
-
/* @__PURE__ */
|
|
6083
|
+
] }) : i === "right" ? /* @__PURE__ */ G("div", { className: B("flex flex-col gap-1.5", e), children: [
|
|
6084
|
+
/* @__PURE__ */ G("div", { className: "flex items-center gap-3", children: [
|
|
6083
6085
|
d,
|
|
6084
6086
|
g
|
|
6085
6087
|
] }),
|
|
6086
6088
|
h
|
|
6087
|
-
] }) : i === "center" ? /* @__PURE__ */
|
|
6088
|
-
/* @__PURE__ */
|
|
6089
|
+
] }) : i === "center" ? /* @__PURE__ */ G("div", { className: B("flex flex-col gap-1.5", e), children: [
|
|
6090
|
+
/* @__PURE__ */ G("div", { className: "flex items-center justify-center gap-3", children: [
|
|
6089
6091
|
g,
|
|
6090
6092
|
d
|
|
6091
6093
|
] }),
|
|
6092
6094
|
h
|
|
6093
|
-
] }) : /* @__PURE__ */
|
|
6095
|
+
] }) : /* @__PURE__ */ G("div", { className: B("flex flex-col", e), children: [
|
|
6094
6096
|
d,
|
|
6095
6097
|
h
|
|
6096
6098
|
] });
|
|
@@ -6220,7 +6222,7 @@ function oF(e) {
|
|
|
6220
6222
|
typeof d == "function" && d(), S(!0);
|
|
6221
6223
|
}, [d]), j = Ne(function() {
|
|
6222
6224
|
typeof u == "function" && u(), S(!1);
|
|
6223
|
-
}, [u]), N = s !== void 0 ? s : b, R = l !== void 0 ? l : y,
|
|
6225
|
+
}, [u]), N = s !== void 0 ? s : b, R = l !== void 0 ? l : y, L = h !== void 0 ? h : E;
|
|
6224
6226
|
return xe(xe({}, g), {}, {
|
|
6225
6227
|
inputValue: N,
|
|
6226
6228
|
menuIsOpen: R,
|
|
@@ -6228,7 +6230,7 @@ function oF(e) {
|
|
|
6228
6230
|
onInputChange: _,
|
|
6229
6231
|
onMenuClose: j,
|
|
6230
6232
|
onMenuOpen: D,
|
|
6231
|
-
value:
|
|
6233
|
+
value: L
|
|
6232
6234
|
});
|
|
6233
6235
|
}
|
|
6234
6236
|
function Ce() {
|
|
@@ -7049,7 +7051,7 @@ function YF() {
|
|
|
7049
7051
|
}
|
|
7050
7052
|
}
|
|
7051
7053
|
}
|
|
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,
|
|
7054
|
+
var y = l, S = c, C = s, O = o, E = t, k = f, T = n, _ = g, D = h, j = r, N = i, R = a, L = u, V = !1;
|
|
7053
7055
|
function H($) {
|
|
7054
7056
|
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
7057
|
}
|
|
@@ -7089,7 +7091,7 @@ function YF() {
|
|
|
7089
7091
|
function ie($) {
|
|
7090
7092
|
return w($) === u;
|
|
7091
7093
|
}
|
|
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 =
|
|
7094
|
+
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 = L, 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
7095
|
})()), Ve;
|
|
7094
7096
|
}
|
|
7095
7097
|
var wx;
|
|
@@ -7747,14 +7749,14 @@ const CL = 50, OL = async (e, t, r) => {
|
|
|
7747
7749
|
}, 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
7750
|
let C = S ? S[x] : 0;
|
|
7749
7751
|
(!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,
|
|
7752
|
+
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, L = R ? j < _ ? j - _ : j - D : 0;
|
|
7751
7753
|
return {
|
|
7752
|
-
[h]: d[h] +
|
|
7754
|
+
[h]: d[h] + L,
|
|
7753
7755
|
data: {
|
|
7754
7756
|
[h]: N,
|
|
7755
|
-
centerOffset: j - N -
|
|
7757
|
+
centerOffset: j - N - L,
|
|
7756
7758
|
...R && {
|
|
7757
|
-
alignmentOffset:
|
|
7759
|
+
alignmentOffset: L
|
|
7758
7760
|
}
|
|
7759
7761
|
},
|
|
7760
7762
|
reset: R
|
|
@@ -7810,12 +7812,12 @@ const CL = 50, OL = async (e, t, r) => {
|
|
|
7810
7812
|
placement: N
|
|
7811
7813
|
}
|
|
7812
7814
|
};
|
|
7813
|
-
let R = (_ = k.filter((
|
|
7815
|
+
let R = (_ = k.filter((L) => L.overflows[0] <= 0).sort((L, V) => L.overflows[1] - V.overflows[1])[0]) == null ? void 0 : _.placement;
|
|
7814
7816
|
if (!R)
|
|
7815
7817
|
switch (h) {
|
|
7816
7818
|
case "bestFit": {
|
|
7817
7819
|
var D;
|
|
7818
|
-
const
|
|
7820
|
+
const L = (D = k.filter((V) => {
|
|
7819
7821
|
if (S) {
|
|
7820
7822
|
const H = un(V.placement);
|
|
7821
7823
|
return H === v || // Create a bias to the `y` side axis due to horizontal
|
|
@@ -7824,7 +7826,7 @@ const CL = 50, OL = async (e, t, r) => {
|
|
|
7824
7826
|
}
|
|
7825
7827
|
return !0;
|
|
7826
7828
|
}).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
|
-
|
|
7829
|
+
L && (R = L);
|
|
7828
7830
|
break;
|
|
7829
7831
|
}
|
|
7830
7832
|
case "initialPlacement":
|
|
@@ -9495,9 +9497,9 @@ var $W = process.env.NODE_ENV === "production" ? {
|
|
|
9495
9497
|
}, [u]), E = st(function() {
|
|
9496
9498
|
var N = "";
|
|
9497
9499
|
if (r && O.onChange) {
|
|
9498
|
-
var R = r.option,
|
|
9500
|
+
var R = r.option, L = r.options, V = r.removedValue, H = r.removedValues, M = r.value, z = function(ae) {
|
|
9499
9501
|
return Array.isArray(ae) ? null : ae;
|
|
9500
|
-
}, Y = V || R || z(M), Z = Y ? d(Y) : "", q =
|
|
9502
|
+
}, Y = V || R || z(M), Z = Y ? d(Y) : "", q = L || H || void 0, K = q ? q.map(d) : [], ne = xe({
|
|
9501
9503
|
// multiSelected items are usually items that have already been selected
|
|
9502
9504
|
// or set by the user as a default value so we assume they are not disabled
|
|
9503
9505
|
isDisabled: Y && p(Y, s),
|
|
@@ -9508,13 +9510,13 @@ var $W = process.env.NODE_ENV === "production" ? {
|
|
|
9508
9510
|
}
|
|
9509
9511
|
return N;
|
|
9510
9512
|
}, [r, O, p, s, d]), k = st(function() {
|
|
9511
|
-
var N = "", R = n || a,
|
|
9513
|
+
var N = "", R = n || a, L = !!(n && s && s.includes(n));
|
|
9512
9514
|
if (R && O.onFocus) {
|
|
9513
9515
|
var V = {
|
|
9514
9516
|
focused: R,
|
|
9515
9517
|
label: d(R),
|
|
9516
9518
|
isDisabled: p(R, s),
|
|
9517
|
-
isSelected:
|
|
9519
|
+
isSelected: L,
|
|
9518
9520
|
options: i,
|
|
9519
9521
|
context: R === n ? "menu" : "value",
|
|
9520
9522
|
selectValue: s,
|
|
@@ -10973,9 +10975,9 @@ var k_ = function(t) {
|
|
|
10973
10975
|
isFocused: ie,
|
|
10974
10976
|
innerRef: ie ? a.getFocusedOptionRef : void 0
|
|
10975
10977
|
}), a.formatOptionLabel(Z.data, "menu"));
|
|
10976
|
-
},
|
|
10978
|
+
}, L;
|
|
10977
10979
|
if (this.hasOptions())
|
|
10978
|
-
|
|
10980
|
+
L = this.getCategorizedOptions().map(function(Y) {
|
|
10979
10981
|
if (Y.type === "group") {
|
|
10980
10982
|
var Z = Y.data, q = Y.options, K = Y.index, ne = "".concat(a.getElementId("group"), "-").concat(K), Q = "".concat(ne, "-heading");
|
|
10981
10983
|
return /* @__PURE__ */ I.createElement(o, Ce({}, g, {
|
|
@@ -10999,13 +11001,13 @@ var k_ = function(t) {
|
|
|
10999
11001
|
inputValue: v
|
|
11000
11002
|
});
|
|
11001
11003
|
if (V === null) return null;
|
|
11002
|
-
|
|
11004
|
+
L = /* @__PURE__ */ I.createElement(u, g, V);
|
|
11003
11005
|
} else {
|
|
11004
11006
|
var H = D({
|
|
11005
11007
|
inputValue: v
|
|
11006
11008
|
});
|
|
11007
11009
|
if (H === null) return null;
|
|
11008
|
-
|
|
11010
|
+
L = /* @__PURE__ */ I.createElement(d, g, H);
|
|
11009
11011
|
}
|
|
11010
11012
|
var M = {
|
|
11011
11013
|
minMenuHeight: y,
|
|
@@ -11041,7 +11043,7 @@ var k_ = function(t) {
|
|
|
11041
11043
|
isLoading: x,
|
|
11042
11044
|
maxHeight: ne,
|
|
11043
11045
|
focusedOption: p
|
|
11044
|
-
}),
|
|
11046
|
+
}), L);
|
|
11045
11047
|
}));
|
|
11046
11048
|
});
|
|
11047
11049
|
return k || E === "fixed" ? /* @__PURE__ */ I.createElement(f, Ce({}, g, {
|
|
@@ -11439,10 +11441,10 @@ const IV = Ot(
|
|
|
11439
11441
|
* Homologado con gather-select: hover:bg-gather-gray-100
|
|
11440
11442
|
*/
|
|
11441
11443
|
option: (N, R) => {
|
|
11442
|
-
let
|
|
11443
|
-
return (R.isSelected || R.isFocused) && (
|
|
11444
|
+
let L = "transparent";
|
|
11445
|
+
return (R.isSelected || R.isFocused) && (L = "#f3f4f6"), {
|
|
11444
11446
|
...N,
|
|
11445
|
-
backgroundColor:
|
|
11447
|
+
backgroundColor: L,
|
|
11446
11448
|
color: "#111827",
|
|
11447
11449
|
// text-text-primary (gather-gray-900)
|
|
11448
11450
|
cursor: R.isDisabled ? "not-allowed" : "pointer",
|
|
@@ -11458,7 +11460,7 @@ const IV = Ot(
|
|
|
11458
11460
|
// last:mb-0
|
|
11459
11461
|
},
|
|
11460
11462
|
"&:hover": {
|
|
11461
|
-
backgroundColor: R.isDisabled ?
|
|
11463
|
+
backgroundColor: R.isDisabled ? L : "#f3f4f6"
|
|
11462
11464
|
// hover:bg-gather-gray-100
|
|
11463
11465
|
}
|
|
11464
11466
|
};
|
|
@@ -11474,7 +11476,7 @@ const IV = Ot(
|
|
|
11474
11476
|
fontSize: T.fontSize,
|
|
11475
11477
|
padding: T.optionPadding
|
|
11476
11478
|
})
|
|
11477
|
-
}, j = (N) => /* @__PURE__ */
|
|
11479
|
+
}, j = (N) => /* @__PURE__ */ G("div", { className: "relative", children: [
|
|
11478
11480
|
n && /* @__PURE__ */ A(
|
|
11479
11481
|
"span",
|
|
11480
11482
|
{
|
|
@@ -11485,8 +11487,8 @@ const IV = Ot(
|
|
|
11485
11487
|
),
|
|
11486
11488
|
/* @__PURE__ */ A(w_.Control, { ...N })
|
|
11487
11489
|
] });
|
|
11488
|
-
return /* @__PURE__ */
|
|
11489
|
-
o && /* @__PURE__ */
|
|
11490
|
+
return /* @__PURE__ */ G("div", { className: B("w-full", e), children: [
|
|
11491
|
+
o && /* @__PURE__ */ G(
|
|
11490
11492
|
tr,
|
|
11491
11493
|
{
|
|
11492
11494
|
htmlFor: k,
|
|
@@ -12040,7 +12042,7 @@ function t5(e) {
|
|
|
12040
12042
|
}), [v, x]), R = I.useMemo(() => ({
|
|
12041
12043
|
reference: w,
|
|
12042
12044
|
floating: y
|
|
12043
|
-
}), [w, y]),
|
|
12045
|
+
}), [w, y]), L = I.useMemo(() => {
|
|
12044
12046
|
const V = {
|
|
12045
12047
|
position: r,
|
|
12046
12048
|
left: 0,
|
|
@@ -12066,8 +12068,8 @@ function t5(e) {
|
|
|
12066
12068
|
update: D,
|
|
12067
12069
|
refs: N,
|
|
12068
12070
|
elements: R,
|
|
12069
|
-
floatingStyles:
|
|
12070
|
-
}), [f, D, N, R,
|
|
12071
|
+
floatingStyles: L
|
|
12072
|
+
}), [f, D, N, R, L]);
|
|
12071
12073
|
}
|
|
12072
12074
|
const r5 = (e) => {
|
|
12073
12075
|
function t(r) {
|
|
@@ -12189,7 +12191,7 @@ var yb = "PopperContent", [h5, p5] = G_(yb), X_ = I.forwardRef(
|
|
|
12189
12191
|
boundary: T.filter(g5),
|
|
12190
12192
|
// with `strategy: 'fixed'`, this is the only way to get it to respect boundaries
|
|
12191
12193
|
altBoundary: _
|
|
12192
|
-
}, { refs: j, floatingStyles: N, placement: R, isPositioned:
|
|
12194
|
+
}, { refs: j, floatingStyles: N, placement: R, isPositioned: L, middlewareData: V } = t5({
|
|
12193
12195
|
// default to `fixed` strategy so users don't have to pick and we also avoid focus scroll issues
|
|
12194
12196
|
strategy: "fixed",
|
|
12195
12197
|
placement: E,
|
|
@@ -12221,8 +12223,8 @@ var yb = "PopperContent", [h5, p5] = G_(yb), X_ = I.forwardRef(
|
|
|
12221
12223
|
]
|
|
12222
12224
|
}), [H, M] = U_(R), z = ma(g);
|
|
12223
12225
|
Yt(() => {
|
|
12224
|
-
|
|
12225
|
-
}, [
|
|
12226
|
+
L && z?.();
|
|
12227
|
+
}, [L, z]);
|
|
12226
12228
|
const Y = V.arrow?.x, Z = V.arrow?.y, q = V.arrow?.centerOffset !== 0, [K, ne] = I.useState();
|
|
12227
12229
|
return Yt(() => {
|
|
12228
12230
|
b && ne(window.getComputedStyle(b).zIndex);
|
|
@@ -12233,7 +12235,7 @@ var yb = "PopperContent", [h5, p5] = G_(yb), X_ = I.forwardRef(
|
|
|
12233
12235
|
"data-radix-popper-content-wrapper": "",
|
|
12234
12236
|
style: {
|
|
12235
12237
|
...N,
|
|
12236
|
-
transform:
|
|
12238
|
+
transform: L ? N.transform : "translate(0, -200%)",
|
|
12237
12239
|
// keep off the page when measuring
|
|
12238
12240
|
minWidth: "max-content",
|
|
12239
12241
|
zIndex: K,
|
|
@@ -12270,7 +12272,7 @@ var yb = "PopperContent", [h5, p5] = G_(yb), X_ = I.forwardRef(
|
|
|
12270
12272
|
...p.style,
|
|
12271
12273
|
// if the PopperContent hasn't been placed yet (not all measurements done)
|
|
12272
12274
|
// we prevent animations so that users's animation don't kick in too early referring wrong sides
|
|
12273
|
-
animation:
|
|
12275
|
+
animation: L ? void 0 : "none"
|
|
12274
12276
|
}
|
|
12275
12277
|
}
|
|
12276
12278
|
)
|
|
@@ -12974,7 +12976,7 @@ var d4 = [" ", "Enter", "ArrowUp", "ArrowDown"], h4 = [" ", "Enter"], Ja = "Sele
|
|
|
12974
12976
|
onChange: l,
|
|
12975
12977
|
caller: Ja
|
|
12976
12978
|
}), 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__ */
|
|
12979
|
+
return /* @__PURE__ */ A(Z_, { ...p, children: /* @__PURE__ */ G(
|
|
12978
12980
|
m4,
|
|
12979
12981
|
{
|
|
12980
12982
|
required: h,
|
|
@@ -12999,18 +13001,18 @@ var d4 = [" ", "Enter", "ArrowUp", "ArrowDown"], h4 = [" ", "Enter"], Ja = "Sele
|
|
|
12999
13001
|
{
|
|
13000
13002
|
scope: e.__scopeSelect,
|
|
13001
13003
|
onNativeOptionAdd: I.useCallback((R) => {
|
|
13002
|
-
j((
|
|
13004
|
+
j((L) => new Set(L).add(R));
|
|
13003
13005
|
}, []),
|
|
13004
13006
|
onNativeOptionRemove: I.useCallback((R) => {
|
|
13005
|
-
j((
|
|
13006
|
-
const V = new Set(
|
|
13007
|
+
j((L) => {
|
|
13008
|
+
const V = new Set(L);
|
|
13007
13009
|
return V.delete(R), V;
|
|
13008
13010
|
});
|
|
13009
13011
|
}, []),
|
|
13010
13012
|
children: r
|
|
13011
13013
|
}
|
|
13012
13014
|
) }),
|
|
13013
|
-
_ ? /* @__PURE__ */
|
|
13015
|
+
_ ? /* @__PURE__ */ G(
|
|
13014
13016
|
RT,
|
|
13015
13017
|
{
|
|
13016
13018
|
"aria-hidden": !0,
|
|
@@ -13155,13 +13157,13 @@ var Wr = 10, [vT, xa] = Eo(Ka), x4 = "SelectContentImpl", w4 = /* @__PURE__ */ b
|
|
|
13155
13157
|
if ($ === ie || ($?.scrollIntoView({ block: "nearest" }), $ === ae && y && (y.scrollTop = 0), $ === J && y && (y.scrollTop = y.scrollHeight), $?.focus(), document.activeElement !== ie)) return;
|
|
13156
13158
|
},
|
|
13157
13159
|
[_, y]
|
|
13158
|
-
),
|
|
13160
|
+
), L = I.useCallback(
|
|
13159
13161
|
() => R([O, x]),
|
|
13160
13162
|
[R, O, x]
|
|
13161
13163
|
);
|
|
13162
13164
|
I.useEffect(() => {
|
|
13163
|
-
D &&
|
|
13164
|
-
}, [D,
|
|
13165
|
+
D && L();
|
|
13166
|
+
}, [D, L]);
|
|
13165
13167
|
const { onOpenChange: V, triggerPointerDownPosRef: H } = v;
|
|
13166
13168
|
I.useEffect(() => {
|
|
13167
13169
|
if (x) {
|
|
@@ -13222,7 +13224,7 @@ var Wr = 10, [vT, xa] = Eo(Ka), x4 = "SelectContentImpl", w4 = /* @__PURE__ */ b
|
|
|
13222
13224
|
selectedItem: O,
|
|
13223
13225
|
onItemLeave: Z,
|
|
13224
13226
|
itemTextRefCallback: q,
|
|
13225
|
-
focusSelectedItem:
|
|
13227
|
+
focusSelectedItem: L,
|
|
13226
13228
|
selectedItemText: k,
|
|
13227
13229
|
position: n,
|
|
13228
13230
|
isPositioned: D,
|
|
@@ -13311,14 +13313,14 @@ var S4 = "SelectItemAlignedPosition", bT = I.forwardRef((e, t) => {
|
|
|
13311
13313
|
]);
|
|
13312
13314
|
s.style.minWidth = te + "px", s.style.right = Ge + "px";
|
|
13313
13315
|
}
|
|
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),
|
|
13316
|
+
const T = d(), _ = window.innerHeight - Wr * 2, D = p.scrollHeight, j = window.getComputedStyle(c), N = parseInt(j.borderTopWidth, 10), R = parseInt(j.paddingTop, 10), L = parseInt(j.borderBottomWidth, 10), V = parseInt(j.paddingBottom, 10), H = N + R + D + V + L, 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
13317
|
if (ae <= q) {
|
|
13316
13318
|
const ie = T.length > 0 && m === T[T.length - 1].ref.current;
|
|
13317
13319
|
s.style.bottom = "0px";
|
|
13318
13320
|
const $ = c.clientHeight - p.offsetTop - p.offsetHeight, ce = Math.max(
|
|
13319
13321
|
K,
|
|
13320
13322
|
ne + // viewport might have padding bottom, include it to avoid a scrollable viewport
|
|
13321
|
-
(ie ? Z : 0) + $ +
|
|
13323
|
+
(ie ? Z : 0) + $ + L
|
|
13322
13324
|
), te = ae + ce;
|
|
13323
13325
|
s.style.height = te + "px";
|
|
13324
13326
|
} else {
|
|
@@ -13426,7 +13428,7 @@ nv.displayName = A4;
|
|
|
13426
13428
|
var [C4, Sb] = Eo(Ka, {}), av = "SelectViewport", xT = I.forwardRef(
|
|
13427
13429
|
(e, t) => {
|
|
13428
13430
|
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__ */
|
|
13431
|
+
return /* @__PURE__ */ G(qe, { children: [
|
|
13430
13432
|
/* @__PURE__ */ A(
|
|
13431
13433
|
"style",
|
|
13432
13434
|
{
|
|
@@ -13579,7 +13581,7 @@ var es = "SelectItemText", PT = I.forwardRef(
|
|
|
13579
13581
|
() => /* @__PURE__ */ A("option", { value: l.value, disabled: l.disabled, children: h }, l.value),
|
|
13580
13582
|
[l.disabled, l.value, h]
|
|
13581
13583
|
), { onNativeOptionAdd: p, onNativeOptionRemove: m } = c;
|
|
13582
|
-
return Yt(() => (p(g), () => m(g)), [p, m, g]), /* @__PURE__ */
|
|
13584
|
+
return Yt(() => (p(g), () => m(g)), [p, m, g]), /* @__PURE__ */ G(qe, { children: [
|
|
13583
13585
|
/* @__PURE__ */ A($e.span, { id: l.textId, ...i, ref: d }),
|
|
13584
13586
|
l.isSelected && o.valueNode && !o.valueNodeHasChildren ? Lu.createPortal(i.children, o.valueNode) : null
|
|
13585
13587
|
] });
|
|
@@ -13756,7 +13758,7 @@ function Pc({
|
|
|
13756
13758
|
children: r,
|
|
13757
13759
|
...n
|
|
13758
13760
|
}) {
|
|
13759
|
-
return /* @__PURE__ */
|
|
13761
|
+
return /* @__PURE__ */ G(
|
|
13760
13762
|
M4,
|
|
13761
13763
|
{
|
|
13762
13764
|
"data-slot": "select-trigger",
|
|
@@ -13805,7 +13807,7 @@ function Ec({
|
|
|
13805
13807
|
position: r = "popper",
|
|
13806
13808
|
...n
|
|
13807
13809
|
}) {
|
|
13808
|
-
return /* @__PURE__ */ A(j4, { children: /* @__PURE__ */
|
|
13810
|
+
return /* @__PURE__ */ A(j4, { children: /* @__PURE__ */ G(
|
|
13809
13811
|
$4,
|
|
13810
13812
|
{
|
|
13811
13813
|
"data-slot": "select-content",
|
|
@@ -13851,7 +13853,7 @@ function lv({
|
|
|
13851
13853
|
children: t,
|
|
13852
13854
|
...r
|
|
13853
13855
|
}) {
|
|
13854
|
-
return /* @__PURE__ */
|
|
13856
|
+
return /* @__PURE__ */ G(
|
|
13855
13857
|
G4,
|
|
13856
13858
|
{
|
|
13857
13859
|
"data-slot": "select-item",
|
|
@@ -13920,7 +13922,7 @@ const Z4 = "inline-block h-1 w-1 rounded-full bg-current opacity-20", J4 = `
|
|
|
13920
13922
|
40% { opacity: 1; }
|
|
13921
13923
|
}`;
|
|
13922
13924
|
function Ab({ className: e }) {
|
|
13923
|
-
return /* @__PURE__ */
|
|
13925
|
+
return /* @__PURE__ */ G(
|
|
13924
13926
|
"span",
|
|
13925
13927
|
{
|
|
13926
13928
|
className: B("inline-flex items-center gap-0.5", e),
|
|
@@ -13984,8 +13986,8 @@ const K4 = Ot("", {
|
|
|
13984
13986
|
...p
|
|
13985
13987
|
}, m) => {
|
|
13986
13988
|
const b = I.useId();
|
|
13987
|
-
return /* @__PURE__ */
|
|
13988
|
-
o && /* @__PURE__ */
|
|
13989
|
+
return /* @__PURE__ */ G("div", { className: B("w-full", e), children: [
|
|
13990
|
+
o && /* @__PURE__ */ G(
|
|
13989
13991
|
tr,
|
|
13990
13992
|
{
|
|
13991
13993
|
htmlFor: b,
|
|
@@ -13999,14 +14001,14 @@ const K4 = Ot("", {
|
|
|
13999
14001
|
]
|
|
14000
14002
|
}
|
|
14001
14003
|
),
|
|
14002
|
-
/* @__PURE__ */
|
|
14004
|
+
/* @__PURE__ */ G(
|
|
14003
14005
|
Oc,
|
|
14004
14006
|
{
|
|
14005
14007
|
disabled: d || void 0,
|
|
14006
14008
|
value: d ? void 0 : g,
|
|
14007
14009
|
...p,
|
|
14008
14010
|
children: [
|
|
14009
|
-
/* @__PURE__ */
|
|
14011
|
+
/* @__PURE__ */ G("div", { className: "relative flex items-center", children: [
|
|
14010
14012
|
n && /* @__PURE__ */ A("span", { className: "absolute left-3 z-10 text-ui-text-muted", children: n }),
|
|
14011
14013
|
d && /* @__PURE__ */ A("span", { className: "absolute right-9 z-10 text-ui-text-muted", children: /* @__PURE__ */ A(Ab, {}) }),
|
|
14012
14014
|
/* @__PURE__ */ A(
|
|
@@ -14569,12 +14571,12 @@ var vi = (e) => dt(e) && !kc(e) ? e : {
|
|
|
14569
14571
|
const x = s ? s[0] : o, w = (_) => {
|
|
14570
14572
|
a && x.reportValidity && (x.setCustomValidity(pr(_) ? "" : _ || ""), x.reportValidity());
|
|
14571
14573
|
}, 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
|
|
14574
|
+
const L = _ ? D : j;
|
|
14573
14575
|
y[p] = {
|
|
14574
14576
|
type: _ ? N : R,
|
|
14575
|
-
message:
|
|
14577
|
+
message: L,
|
|
14576
14578
|
ref: o,
|
|
14577
|
-
...k(_ ? N : R,
|
|
14579
|
+
...k(_ ? N : R, L)
|
|
14578
14580
|
};
|
|
14579
14581
|
};
|
|
14580
14582
|
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 +14596,8 @@ var vi = (e) => dt(e) && !kc(e) ? e : {
|
|
|
14594
14596
|
const R = o.valueAsNumber || v && +v;
|
|
14595
14597
|
$t(j.value) || (_ = R > j.value), $t(N.value) || (D = R < N.value);
|
|
14596
14598
|
} else {
|
|
14597
|
-
const R = o.valueAsDate || new Date(v),
|
|
14598
|
-
Xt(j.value) && v && (_ = V ?
|
|
14599
|
+
const R = o.valueAsDate || new Date(v), L = (M) => /* @__PURE__ */ new Date((/* @__PURE__ */ new Date()).toDateString() + " " + M), V = o.type == "time", H = o.type == "week";
|
|
14600
|
+
Xt(j.value) && v && (_ = V ? L(v) > L(j.value) : H ? v > j.value : R > new Date(j.value)), Xt(N.value) && v && (D = V ? L(v) < L(N.value) : H ? v < N.value : R < new Date(N.value));
|
|
14599
14601
|
}
|
|
14600
14602
|
if ((_ || D) && (T(!!_, j.message, N.message, Vr.max, Vr.min), !n))
|
|
14601
14603
|
return w(y[p].message), y;
|
|
@@ -14873,7 +14875,7 @@ function b3(e = {}) {
|
|
|
14873
14875
|
s.unMount = /* @__PURE__ */ new Set();
|
|
14874
14876
|
}, N = (F, X) => !t.disabled && (F && X && tt(i, F, X), !mr(ne(), a)), R = (F, X, W) => cv(F, s, {
|
|
14875
14877
|
...o.mount ? i : it(X) ? a : Xt(F) ? { [F]: X } : X
|
|
14876
|
-
}, W, X),
|
|
14878
|
+
}, W, X), L = (F) => Ob(fe(o.mount ? i : a, F, t.shouldUnregister ? fe(a, F, []) : [])), V = (F, X, W = {}, re = !1) => {
|
|
14877
14879
|
const oe = fe(n, F);
|
|
14878
14880
|
let ue = X;
|
|
14879
14881
|
if (oe) {
|
|
@@ -15246,7 +15248,7 @@ function b3(e = {}) {
|
|
|
15246
15248
|
_setFieldArray: x,
|
|
15247
15249
|
_setDisabledField: te,
|
|
15248
15250
|
_setErrors: y,
|
|
15249
|
-
_getFieldArray:
|
|
15251
|
+
_getFieldArray: L,
|
|
15250
15252
|
_reset: $r,
|
|
15251
15253
|
_resetDefaultValues: () => zt(t.defaultValues) && t.defaultValues().then((F) => {
|
|
15252
15254
|
qt(F, t.resetOptions), h.state.next({
|
|
@@ -15485,7 +15487,7 @@ const w3 = Ot("", {
|
|
|
15485
15487
|
), D = I.useCallback(
|
|
15486
15488
|
(N) => {
|
|
15487
15489
|
if (p && N.key.length === 1 && !N.ctrlKey && !N.metaKey) {
|
|
15488
|
-
const R = N.target,
|
|
15490
|
+
const R = N.target, L = R.selectionStart ?? 0, V = R.selectionEnd ?? 0, H = R.value.slice(0, L) + N.key + R.value.slice(V);
|
|
15489
15491
|
p(H) !== H && N.preventDefault();
|
|
15490
15492
|
}
|
|
15491
15493
|
w?.(N);
|
|
@@ -15495,18 +15497,18 @@ const w3 = Ot("", {
|
|
|
15495
15497
|
(N) => {
|
|
15496
15498
|
let R = N.target.value;
|
|
15497
15499
|
p && (R = p(R));
|
|
15498
|
-
const
|
|
15500
|
+
const L = Object.getOwnPropertyDescriptor(
|
|
15499
15501
|
window.HTMLInputElement.prototype,
|
|
15500
15502
|
"value"
|
|
15501
15503
|
)?.set;
|
|
15502
|
-
|
|
15504
|
+
L && R !== N.target.value && L.call(N.target, R), k(R);
|
|
15503
15505
|
const V = m ? m(R) : R;
|
|
15504
|
-
|
|
15506
|
+
L && L.call(N.target, V), x?.(N);
|
|
15505
15507
|
},
|
|
15506
15508
|
[p, m, x]
|
|
15507
15509
|
);
|
|
15508
|
-
return /* @__PURE__ */
|
|
15509
|
-
l && /* @__PURE__ */
|
|
15510
|
+
return /* @__PURE__ */ G("div", { className: "w-full", children: [
|
|
15511
|
+
l && /* @__PURE__ */ G(
|
|
15510
15512
|
tr,
|
|
15511
15513
|
{
|
|
15512
15514
|
htmlFor: O,
|
|
@@ -15520,7 +15522,7 @@ const w3 = Ot("", {
|
|
|
15520
15522
|
]
|
|
15521
15523
|
}
|
|
15522
15524
|
),
|
|
15523
|
-
/* @__PURE__ */
|
|
15525
|
+
/* @__PURE__ */ G(
|
|
15524
15526
|
"div",
|
|
15525
15527
|
{
|
|
15526
15528
|
className: B(
|
|
@@ -15564,7 +15566,7 @@ const w3 = Ot("", {
|
|
|
15564
15566
|
]
|
|
15565
15567
|
}
|
|
15566
15568
|
),
|
|
15567
|
-
(o || h && d) && /* @__PURE__ */
|
|
15569
|
+
(o || h && d) && /* @__PURE__ */ G("div", { className: "mt-1 flex items-center justify-between px-1", children: [
|
|
15568
15570
|
o ? /* @__PURE__ */ A(
|
|
15569
15571
|
"p",
|
|
15570
15572
|
{
|
|
@@ -15575,7 +15577,7 @@ const w3 = Ot("", {
|
|
|
15575
15577
|
children: o
|
|
15576
15578
|
}
|
|
15577
15579
|
) : /* @__PURE__ */ A("span", {}),
|
|
15578
|
-
h && d && /* @__PURE__ */
|
|
15580
|
+
h && d && /* @__PURE__ */ G(
|
|
15579
15581
|
"p",
|
|
15580
15582
|
{
|
|
15581
15583
|
className: B(
|
|
@@ -17660,7 +17662,7 @@ function J9(e) {
|
|
|
17660
17662
|
t.classNames
|
|
17661
17663
|
]);
|
|
17662
17664
|
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:
|
|
17665
|
+
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: L, navEnd: V, previousMonth: H, nextMonth: M, goToMonth: z } = j, Y = i9(N, t, L, 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
17666
|
H && (z(H), w?.(H));
|
|
17665
17667
|
}, [H, z, w]), nr = Ne(() => {
|
|
17666
17668
|
M && (z(M), x?.(M));
|
|
@@ -17759,7 +17761,7 @@ function J9(e) {
|
|
|
17759
17761
|
n.DropdownNav,
|
|
17760
17762
|
{ className: l[ye.Dropdowns], style: S?.[ye.Dropdowns] },
|
|
17761
17763
|
(() => {
|
|
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,
|
|
17764
|
+
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, L, 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(L, V, a, o, !!t.reverseYears), style: S?.[ye.Dropdown], value: o.getYear(Pe.date) }) : P.createElement("span", { key: "year" }, D(Pe.date, o));
|
|
17763
17765
|
return o.getMonthYearOrder() === "year-first" ? [je, Oe] : [Oe, je];
|
|
17764
17766
|
})(),
|
|
17765
17767
|
P.createElement("span", { role: "status", "aria-live": "polite", style: {
|
|
@@ -17845,7 +17847,7 @@ function K9({
|
|
|
17845
17847
|
"flex gap-4 flex-col md:flex-row relative",
|
|
17846
17848
|
l.months
|
|
17847
17849
|
),
|
|
17848
|
-
month: B("flex flex-col
|
|
17850
|
+
month: B("flex flex-col gap-4 min-w-[calc(var(--cell-size)*7+1rem)]", l.month),
|
|
17849
17851
|
nav: B(
|
|
17850
17852
|
"flex items-center gap-1 w-full absolute top-0 inset-x-0 justify-between",
|
|
17851
17853
|
l.nav
|
|
@@ -18098,8 +18100,8 @@ const eH = Ot(
|
|
|
18098
18100
|
"border-b bg-background p-2 sm:p-3",
|
|
18099
18101
|
r?.monthYearContainer
|
|
18100
18102
|
),
|
|
18101
|
-
children: /* @__PURE__ */
|
|
18102
|
-
/* @__PURE__ */
|
|
18103
|
+
children: /* @__PURE__ */ G("div", { className: "flex gap-1.5 sm:gap-2", children: [
|
|
18104
|
+
/* @__PURE__ */ G(
|
|
18103
18105
|
Oc,
|
|
18104
18106
|
{
|
|
18105
18107
|
value: Ed[e.getMonth()],
|
|
@@ -18119,7 +18121,7 @@ const eH = Ot(
|
|
|
18119
18121
|
]
|
|
18120
18122
|
}
|
|
18121
18123
|
),
|
|
18122
|
-
/* @__PURE__ */
|
|
18124
|
+
/* @__PURE__ */ G(
|
|
18123
18125
|
Oc,
|
|
18124
18126
|
{
|
|
18125
18127
|
value: e.getFullYear().toString(),
|
|
@@ -18229,15 +18231,15 @@ const Bb = I.forwardRef(
|
|
|
18229
18231
|
r?.(T ?? void 0);
|
|
18230
18232
|
return;
|
|
18231
18233
|
}
|
|
18232
|
-
const D = t.from, j = t.to, N = _.getTime(), R = D.getTime(),
|
|
18233
|
-
N > R && N <
|
|
18234
|
+
const D = t.from, j = t.to, N = _.getTime(), R = D.getTime(), L = j.getTime();
|
|
18235
|
+
N > R && N < L ? r?.({ from: _, to: void 0 }) : N <= R ? r?.({ from: _, to: j }) : r?.({ from: D, to: _ });
|
|
18234
18236
|
}
|
|
18235
18237
|
};
|
|
18236
18238
|
return g !== void 0 ? C({
|
|
18237
18239
|
...g === 1 ? h?.range?.from : h?.range?.to,
|
|
18238
18240
|
...k,
|
|
18239
18241
|
numberOfMonths: g
|
|
18240
|
-
}) : /* @__PURE__ */
|
|
18242
|
+
}) : /* @__PURE__ */ G(qe, { children: [
|
|
18241
18243
|
C(
|
|
18242
18244
|
{
|
|
18243
18245
|
...h?.range?.from,
|
|
@@ -18265,7 +18267,7 @@ const Bb = I.forwardRef(
|
|
|
18265
18267
|
a,
|
|
18266
18268
|
p
|
|
18267
18269
|
]);
|
|
18268
|
-
return /* @__PURE__ */
|
|
18270
|
+
return /* @__PURE__ */ G(
|
|
18269
18271
|
"div",
|
|
18270
18272
|
{
|
|
18271
18273
|
ref: m,
|
|
@@ -18349,16 +18351,16 @@ const rH = {
|
|
|
18349
18351
|
ia(t.from, w),
|
|
18350
18352
|
h,
|
|
18351
18353
|
{ locale: En }
|
|
18352
|
-
) : "" : "", [t, e, h, g, p, w]),
|
|
18354
|
+
) : "" : "", [t, e, h, g, p, w]), L = I.useCallback(
|
|
18353
18355
|
(V) => {
|
|
18354
18356
|
const H = !!t?.from;
|
|
18355
18357
|
r?.(V), v && e === "single" && V?.from && j(!1), v && e === "range" && x && H && V?.from && V?.to && j(!1);
|
|
18356
18358
|
},
|
|
18357
18359
|
[r, v, x, e, t]
|
|
18358
18360
|
);
|
|
18359
|
-
return /* @__PURE__ */
|
|
18360
|
-
n && /* @__PURE__ */
|
|
18361
|
-
/* @__PURE__ */
|
|
18361
|
+
return /* @__PURE__ */ G("div", { className: B("space-y-2", o, s?.container), children: [
|
|
18362
|
+
n && /* @__PURE__ */ G("div", { className: B("space-y-1", s?.labelContainer), children: [
|
|
18363
|
+
/* @__PURE__ */ G(
|
|
18362
18364
|
tr,
|
|
18363
18365
|
{
|
|
18364
18366
|
className: B(
|
|
@@ -18392,8 +18394,8 @@ const rH = {
|
|
|
18392
18394
|
}
|
|
18393
18395
|
)
|
|
18394
18396
|
] }),
|
|
18395
|
-
/* @__PURE__ */
|
|
18396
|
-
/* @__PURE__ */ A(kb, { asChild: !0, children: /* @__PURE__ */
|
|
18397
|
+
/* @__PURE__ */ G(fl, { open: D, onOpenChange: N, children: [
|
|
18398
|
+
/* @__PURE__ */ A(kb, { asChild: !0, children: /* @__PURE__ */ G("div", { className: B("relative", s?.inputWrapper), children: [
|
|
18397
18399
|
/* @__PURE__ */ A(
|
|
18398
18400
|
ll,
|
|
18399
18401
|
{
|
|
@@ -18436,7 +18438,7 @@ const rH = {
|
|
|
18436
18438
|
{
|
|
18437
18439
|
mode: e,
|
|
18438
18440
|
selected: t,
|
|
18439
|
-
onSelect:
|
|
18441
|
+
onSelect: L,
|
|
18440
18442
|
minDate: c,
|
|
18441
18443
|
maxDate: f,
|
|
18442
18444
|
disabledDates: u,
|
|
@@ -18453,7 +18455,7 @@ const rH = {
|
|
|
18453
18455
|
}
|
|
18454
18456
|
)
|
|
18455
18457
|
] }),
|
|
18456
|
-
m && t?.from && /* @__PURE__ */
|
|
18458
|
+
m && t?.from && /* @__PURE__ */ G(
|
|
18457
18459
|
"p",
|
|
18458
18460
|
{
|
|
18459
18461
|
className: B(
|
|
@@ -18602,7 +18604,7 @@ var Rk = I.forwardRef(
|
|
|
18602
18604
|
name: n,
|
|
18603
18605
|
form: f,
|
|
18604
18606
|
value: l,
|
|
18605
|
-
internal_do_not_use_render: ({ isFormControl: d }) => /* @__PURE__ */
|
|
18607
|
+
internal_do_not_use_render: ({ isFormControl: d }) => /* @__PURE__ */ G(qe, { children: [
|
|
18606
18608
|
/* @__PURE__ */ A(
|
|
18607
18609
|
Mk,
|
|
18608
18610
|
{
|
|
@@ -18781,8 +18783,8 @@ const Lk = I.forwardRef(
|
|
|
18781
18783
|
"flex",
|
|
18782
18784
|
i === "row" ? "flex-row flex-wrap gap-x-4 gap-y-2" : "flex-col gap-y-1"
|
|
18783
18785
|
);
|
|
18784
|
-
return /* @__PURE__ */
|
|
18785
|
-
r && /* @__PURE__ */
|
|
18786
|
+
return /* @__PURE__ */ G("div", { ref: h, className: B("w-full", c), ...d, children: [
|
|
18787
|
+
r && /* @__PURE__ */ G(tr, { className: "mb-1.5 block px-1 text-sm font-normal text-ui-text-primary", children: [
|
|
18786
18788
|
r,
|
|
18787
18789
|
a && /* @__PURE__ */ A("span", { className: "ml-0.5 text-destructive", children: "*" })
|
|
18788
18790
|
] }),
|
|
@@ -18799,7 +18801,7 @@ const Lk = I.forwardRef(
|
|
|
18799
18801
|
"mt-0.5 data-[state=checked]:border-primary data-[state=checked]:bg-primary data-[state=checked]:text-white"
|
|
18800
18802
|
)
|
|
18801
18803
|
}
|
|
18802
|
-
), T = /* @__PURE__ */
|
|
18804
|
+
), T = /* @__PURE__ */ G("div", { className: "flex flex-1 flex-col", children: [
|
|
18803
18805
|
/* @__PURE__ */ A(
|
|
18804
18806
|
tr,
|
|
18805
18807
|
{
|
|
@@ -18813,10 +18815,10 @@ const Lk = I.forwardRef(
|
|
|
18813
18815
|
),
|
|
18814
18816
|
y.subLabel && /* @__PURE__ */ A("p", { className: "mt-0.5 text-xs leading-relaxed text-gather-gray-500", children: y.subLabel })
|
|
18815
18817
|
] });
|
|
18816
|
-
return /* @__PURE__ */ A("div", { className: "flex items-start gap-2", children: o === "left" ? /* @__PURE__ */
|
|
18818
|
+
return /* @__PURE__ */ A("div", { className: "flex items-start gap-2", children: o === "left" ? /* @__PURE__ */ G(qe, { children: [
|
|
18817
18819
|
T,
|
|
18818
18820
|
k
|
|
18819
|
-
] }) : /* @__PURE__ */
|
|
18821
|
+
] }) : /* @__PURE__ */ G(qe, { children: [
|
|
18820
18822
|
k,
|
|
18821
18823
|
T
|
|
18822
18824
|
] }) }, E);
|
|
@@ -18911,8 +18913,8 @@ const sH = Ot(
|
|
|
18911
18913
|
}),
|
|
18912
18914
|
[r]
|
|
18913
18915
|
);
|
|
18914
|
-
return /* @__PURE__ */
|
|
18915
|
-
l && /* @__PURE__ */
|
|
18916
|
+
return /* @__PURE__ */ G("div", { className: "w-full", ...b, ref: v, children: [
|
|
18917
|
+
l && /* @__PURE__ */ G(
|
|
18916
18918
|
tr,
|
|
18917
18919
|
{
|
|
18918
18920
|
htmlFor: w,
|
|
@@ -18926,7 +18928,7 @@ const sH = Ot(
|
|
|
18926
18928
|
]
|
|
18927
18929
|
}
|
|
18928
18930
|
),
|
|
18929
|
-
/* @__PURE__ */
|
|
18931
|
+
/* @__PURE__ */ G(
|
|
18930
18932
|
"div",
|
|
18931
18933
|
{
|
|
18932
18934
|
className: B(
|
|
@@ -18942,7 +18944,7 @@ const sH = Ot(
|
|
|
18942
18944
|
{
|
|
18943
18945
|
style: { width: `${p}%` },
|
|
18944
18946
|
className: "flex items-center border-r border-ui-text-inverse",
|
|
18945
|
-
children: /* @__PURE__ */
|
|
18947
|
+
children: /* @__PURE__ */ G(
|
|
18946
18948
|
Oc,
|
|
18947
18949
|
{
|
|
18948
18950
|
onValueChange: O,
|
|
@@ -19096,8 +19098,8 @@ const fH = Ot("", {
|
|
|
19096
19098
|
// Resto de props nativas del textarea
|
|
19097
19099
|
}, m) => {
|
|
19098
19100
|
const b = I.useId(), v = c ?? b, x = typeof g == "string" ? g.length : 0;
|
|
19099
|
-
return /* @__PURE__ */
|
|
19100
|
-
o && /* @__PURE__ */
|
|
19101
|
+
return /* @__PURE__ */ G("div", { className: B("w-full", d && "col-span-full"), children: [
|
|
19102
|
+
o && /* @__PURE__ */ G(
|
|
19101
19103
|
tr,
|
|
19102
19104
|
{
|
|
19103
19105
|
htmlFor: v,
|
|
@@ -19138,7 +19140,7 @@ const fH = Ot("", {
|
|
|
19138
19140
|
...p
|
|
19139
19141
|
}
|
|
19140
19142
|
) }),
|
|
19141
|
-
/* @__PURE__ */
|
|
19143
|
+
/* @__PURE__ */ G("div", { className: "mt-1 flex items-center justify-between", children: [
|
|
19142
19144
|
a && /* @__PURE__ */ A(
|
|
19143
19145
|
"p",
|
|
19144
19146
|
{
|
|
@@ -19150,7 +19152,7 @@ const fH = Ot("", {
|
|
|
19150
19152
|
children: a
|
|
19151
19153
|
}
|
|
19152
19154
|
),
|
|
19153
|
-
u && f && /* @__PURE__ */
|
|
19155
|
+
u && f && /* @__PURE__ */ G(
|
|
19154
19156
|
"p",
|
|
19155
19157
|
{
|
|
19156
19158
|
className: B(
|
|
@@ -19346,7 +19348,7 @@ var AH = Hk, CH = Yk, Lb = "Radio", [OH, Uk] = zn(Lb), [IH, PH] = OH(Lb), Zk = I
|
|
|
19346
19348
|
form: c,
|
|
19347
19349
|
...f
|
|
19348
19350
|
} = 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__ */
|
|
19351
|
+
return /* @__PURE__ */ G(IH, { scope: r, checked: a, disabled: o, children: [
|
|
19350
19352
|
/* @__PURE__ */ A(
|
|
19351
19353
|
$e.button,
|
|
19352
19354
|
{
|
|
@@ -19618,14 +19620,14 @@ const $w = {
|
|
|
19618
19620
|
"flex",
|
|
19619
19621
|
a === "row" ? "flex-row flex-wrap gap-x-4 gap-y-2" : "flex-col gap-y-2"
|
|
19620
19622
|
);
|
|
19621
|
-
return /* @__PURE__ */
|
|
19623
|
+
return /* @__PURE__ */ G(
|
|
19622
19624
|
"div",
|
|
19623
19625
|
{
|
|
19624
19626
|
ref: p,
|
|
19625
19627
|
className: B("w-full", u && "col-span-full", c),
|
|
19626
19628
|
...g,
|
|
19627
19629
|
children: [
|
|
19628
|
-
r && /* @__PURE__ */
|
|
19630
|
+
r && /* @__PURE__ */ G(
|
|
19629
19631
|
tr,
|
|
19630
19632
|
{
|
|
19631
19633
|
className: B(
|
|
@@ -19647,7 +19649,7 @@ const $w = {
|
|
|
19647
19649
|
className: b,
|
|
19648
19650
|
children: e.map((v, x) => {
|
|
19649
19651
|
const w = d ? `${d}-${v.value}-${x}` : `${v.value}-${x}`;
|
|
19650
|
-
return /* @__PURE__ */
|
|
19652
|
+
return /* @__PURE__ */ G(
|
|
19651
19653
|
"div",
|
|
19652
19654
|
{
|
|
19653
19655
|
className: "flex items-center gap-2",
|
|
@@ -19793,7 +19795,7 @@ const Bw = Ot("flex flex-col", {
|
|
|
19793
19795
|
),
|
|
19794
19796
|
children: /* @__PURE__ */ A(Vo, {})
|
|
19795
19797
|
}
|
|
19796
|
-
) : /* @__PURE__ */
|
|
19798
|
+
) : /* @__PURE__ */ G(
|
|
19797
19799
|
"div",
|
|
19798
19800
|
{
|
|
19799
19801
|
ref: c,
|
|
@@ -19805,7 +19807,7 @@ const Bw = Ot("flex flex-col", {
|
|
|
19805
19807
|
l
|
|
19806
19808
|
),
|
|
19807
19809
|
children: [
|
|
19808
|
-
i === "above" && /* @__PURE__ */
|
|
19810
|
+
i === "above" && /* @__PURE__ */ G(qe, { children: [
|
|
19809
19811
|
e && /* @__PURE__ */ A("h3", { className: "px-1 text-lg font-medium text-ui-text-primary", children: e }),
|
|
19810
19812
|
t && /* @__PURE__ */ A(
|
|
19811
19813
|
"p",
|
|
@@ -19819,12 +19821,12 @@ const Bw = Ot("flex flex-col", {
|
|
|
19819
19821
|
),
|
|
19820
19822
|
n && /* @__PURE__ */ A(Vo, {})
|
|
19821
19823
|
] }),
|
|
19822
|
-
i === "inline" && /* @__PURE__ */
|
|
19824
|
+
i === "inline" && /* @__PURE__ */ G("div", { className: "flex items-center gap-3", children: [
|
|
19823
19825
|
/* @__PURE__ */ A(Vo, { className: "flex-1" }),
|
|
19824
19826
|
e && /* @__PURE__ */ A("span", { className: "whitespace-nowrap text-lg font-medium text-ui-text-primary", children: e }),
|
|
19825
19827
|
n && /* @__PURE__ */ A(Vo, {})
|
|
19826
19828
|
] }),
|
|
19827
|
-
i === "below" && /* @__PURE__ */
|
|
19829
|
+
i === "below" && /* @__PURE__ */ G(qe, { children: [
|
|
19828
19830
|
n && /* @__PURE__ */ A(Vo, {}),
|
|
19829
19831
|
e && /* @__PURE__ */ A("h3", { className: "mt-2 px-1 text-lg font-medium text-ui-text-primary", children: e }),
|
|
19830
19832
|
t && /* @__PURE__ */ A(
|
|
@@ -19912,8 +19914,8 @@ const Bw = Ot("flex flex-col", {
|
|
|
19912
19914
|
v(E.name), d?.(E);
|
|
19913
19915
|
}
|
|
19914
19916
|
};
|
|
19915
|
-
return /* @__PURE__ */
|
|
19916
|
-
t && /* @__PURE__ */
|
|
19917
|
+
return /* @__PURE__ */ G("div", { className: "w-full", children: [
|
|
19918
|
+
t && /* @__PURE__ */ G(
|
|
19917
19919
|
tr,
|
|
19918
19920
|
{
|
|
19919
19921
|
htmlFor: m,
|
|
@@ -19927,7 +19929,7 @@ const Bw = Ot("flex flex-col", {
|
|
|
19927
19929
|
]
|
|
19928
19930
|
}
|
|
19929
19931
|
),
|
|
19930
|
-
/* @__PURE__ */
|
|
19932
|
+
/* @__PURE__ */ G("div", { className: "relative", children: [
|
|
19931
19933
|
/* @__PURE__ */ A(
|
|
19932
19934
|
ll,
|
|
19933
19935
|
{
|
|
@@ -19941,7 +19943,7 @@ const Bw = Ot("flex flex-col", {
|
|
|
19941
19943
|
...h
|
|
19942
19944
|
}
|
|
19943
19945
|
),
|
|
19944
|
-
/* @__PURE__ */
|
|
19946
|
+
/* @__PURE__ */ G(
|
|
19945
19947
|
"label",
|
|
19946
19948
|
{
|
|
19947
19949
|
htmlFor: m,
|
|
@@ -20053,7 +20055,7 @@ const Bw = Ot("flex flex-col", {
|
|
|
20053
20055
|
const q = u !== void 0 && u !== "" ? R(u) : "";
|
|
20054
20056
|
C(q);
|
|
20055
20057
|
}, [u, R, p, m]);
|
|
20056
|
-
const
|
|
20058
|
+
const L = I.useMemo(() => f ? HH(f, S) : [], [f, S]), V = I.useCallback(
|
|
20057
20059
|
(q) => {
|
|
20058
20060
|
q.disabled || (C(q.label), E(!1), T(-1), d?.(q.value));
|
|
20059
20061
|
},
|
|
@@ -20068,14 +20070,14 @@ const Bw = Ot("flex flex-col", {
|
|
|
20068
20070
|
N || j && E(!0);
|
|
20069
20071
|
}, [N, j]), z = I.useCallback(
|
|
20070
20072
|
(q, K) => {
|
|
20071
|
-
const ne =
|
|
20073
|
+
const ne = L.length;
|
|
20072
20074
|
if (ne === 0) return -1;
|
|
20073
20075
|
let Q = q;
|
|
20074
20076
|
for (let ae = 0; ae < ne; ae++)
|
|
20075
|
-
if (Q = (Q + K + ne) % ne, !
|
|
20077
|
+
if (Q = (Q + K + ne) % ne, !L[Q].disabled) return Q;
|
|
20076
20078
|
return q;
|
|
20077
20079
|
},
|
|
20078
|
-
[
|
|
20080
|
+
[L]
|
|
20079
20081
|
), Y = I.useCallback(
|
|
20080
20082
|
(q) => {
|
|
20081
20083
|
if (!N)
|
|
@@ -20094,7 +20096,7 @@ const Bw = Ot("flex flex-col", {
|
|
|
20094
20096
|
break;
|
|
20095
20097
|
}
|
|
20096
20098
|
case "Enter": {
|
|
20097
|
-
q.preventDefault(), O && k >= 0 && k <
|
|
20099
|
+
q.preventDefault(), O && k >= 0 && k < L.length && V(L[k]);
|
|
20098
20100
|
break;
|
|
20099
20101
|
}
|
|
20100
20102
|
case "Escape": {
|
|
@@ -20108,7 +20110,7 @@ const Bw = Ot("flex flex-col", {
|
|
|
20108
20110
|
O,
|
|
20109
20111
|
j,
|
|
20110
20112
|
k,
|
|
20111
|
-
|
|
20113
|
+
L,
|
|
20112
20114
|
z,
|
|
20113
20115
|
V
|
|
20114
20116
|
]
|
|
@@ -20123,8 +20125,8 @@ const Bw = Ot("flex flex-col", {
|
|
|
20123
20125
|
onOpenChange: (q) => {
|
|
20124
20126
|
E(q), q || T(-1);
|
|
20125
20127
|
},
|
|
20126
|
-
children: /* @__PURE__ */
|
|
20127
|
-
s && /* @__PURE__ */
|
|
20128
|
+
children: /* @__PURE__ */ G("div", { ref: _, className: B("relative w-full", e), children: [
|
|
20129
|
+
s && /* @__PURE__ */ G(
|
|
20128
20130
|
tr,
|
|
20129
20131
|
{
|
|
20130
20132
|
htmlFor: y,
|
|
@@ -20138,7 +20140,7 @@ const Bw = Ot("flex flex-col", {
|
|
|
20138
20140
|
]
|
|
20139
20141
|
}
|
|
20140
20142
|
),
|
|
20141
|
-
/* @__PURE__ */ A(uk, { asChild: !0, children: /* @__PURE__ */
|
|
20143
|
+
/* @__PURE__ */ A(uk, { asChild: !0, children: /* @__PURE__ */ G(
|
|
20142
20144
|
"div",
|
|
20143
20145
|
{
|
|
20144
20146
|
className: B(
|
|
@@ -20218,7 +20220,7 @@ const Bw = Ot("flex flex-col", {
|
|
|
20218
20220
|
"max-h-60 overflow-auto rounded-md border border-ui-border",
|
|
20219
20221
|
"bg-ui-background-surface shadow-md"
|
|
20220
20222
|
),
|
|
20221
|
-
children: /* @__PURE__ */ A("div", { role: "listbox", children:
|
|
20223
|
+
children: /* @__PURE__ */ A("div", { role: "listbox", children: L.length === 0 ? /* @__PURE__ */ A("div", { className: "px-4 py-2 text-sm text-ui-text-muted", children: h }) : L.map((q, K) => /* @__PURE__ */ A(
|
|
20222
20224
|
"div",
|
|
20223
20225
|
{
|
|
20224
20226
|
id: Z(K),
|
|
@@ -20355,12 +20357,12 @@ const Lw = (e, t) => e.length <= t ? e : `${e.slice(0, t)}...`, UH = (e, t) => {
|
|
|
20355
20357
|
groupSelectable: v = !0,
|
|
20356
20358
|
...x
|
|
20357
20359
|
}, 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,
|
|
20360
|
+
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, L = I.useMemo(
|
|
20359
20361
|
() => UH(t, k),
|
|
20360
20362
|
[t, k]
|
|
20361
20363
|
), V = I.useMemo(
|
|
20362
|
-
() => eX(
|
|
20363
|
-
[
|
|
20364
|
+
() => eX(L),
|
|
20365
|
+
[L]
|
|
20364
20366
|
), H = I.useMemo(
|
|
20365
20367
|
() => {
|
|
20366
20368
|
if (!r) return null;
|
|
@@ -20462,8 +20464,8 @@ const Lw = (e, t) => e.length <= t ? e : `${e.slice(0, t)}...`, UH = (e, t) => {
|
|
|
20462
20464
|
onOpenChange: ($) => {
|
|
20463
20465
|
R || E($);
|
|
20464
20466
|
},
|
|
20465
|
-
children: /* @__PURE__ */
|
|
20466
|
-
l && /* @__PURE__ */
|
|
20467
|
+
children: /* @__PURE__ */ G("div", { className: B("relative w-full", e), children: [
|
|
20468
|
+
l && /* @__PURE__ */ G(
|
|
20467
20469
|
tr,
|
|
20468
20470
|
{
|
|
20469
20471
|
htmlFor: S,
|
|
@@ -20477,7 +20479,7 @@ const Lw = (e, t) => e.length <= t ? e : `${e.slice(0, t)}...`, UH = (e, t) => {
|
|
|
20477
20479
|
]
|
|
20478
20480
|
}
|
|
20479
20481
|
),
|
|
20480
|
-
/* @__PURE__ */ A(uk, { asChild: !0, children: /* @__PURE__ */
|
|
20482
|
+
/* @__PURE__ */ A(uk, { asChild: !0, children: /* @__PURE__ */ G(
|
|
20481
20483
|
"button",
|
|
20482
20484
|
{
|
|
20483
20485
|
ref: ($) => {
|
|
@@ -20503,7 +20505,7 @@ const Lw = (e, t) => e.length <= t ? e : `${e.slice(0, t)}...`, UH = (e, t) => {
|
|
|
20503
20505
|
...x,
|
|
20504
20506
|
children: [
|
|
20505
20507
|
/* @__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__ */
|
|
20508
|
+
/* @__PURE__ */ G("span", { className: "flex shrink-0 items-center gap-1", children: [
|
|
20507
20509
|
g && /* @__PURE__ */ A(Ab, { className: "mr-1" }),
|
|
20508
20510
|
!R && !g && r && H && /* @__PURE__ */ A(
|
|
20509
20511
|
"button",
|
|
@@ -20525,7 +20527,7 @@ const Lw = (e, t) => e.length <= t ? e : `${e.slice(0, t)}...`, UH = (e, t) => {
|
|
|
20525
20527
|
]
|
|
20526
20528
|
}
|
|
20527
20529
|
) }),
|
|
20528
|
-
/* @__PURE__ */
|
|
20530
|
+
/* @__PURE__ */ G(
|
|
20529
20531
|
dl,
|
|
20530
20532
|
{
|
|
20531
20533
|
align: "start",
|
|
@@ -20538,7 +20540,7 @@ const Lw = (e, t) => e.length <= t ? e : `${e.slice(0, t)}...`, UH = (e, t) => {
|
|
|
20538
20540
|
"bg-ui-background-surface shadow-lg"
|
|
20539
20541
|
),
|
|
20540
20542
|
children: [
|
|
20541
|
-
/* @__PURE__ */
|
|
20543
|
+
/* @__PURE__ */ G("div", { className: "flex items-center border-b border-ui-border px-3 py-2", children: [
|
|
20542
20544
|
/* @__PURE__ */ A(EE, { className: "mr-2 h-4 w-4 shrink-0 text-ui-text-muted" }),
|
|
20543
20545
|
/* @__PURE__ */ A(
|
|
20544
20546
|
"input",
|
|
@@ -20565,14 +20567,14 @@ const Lw = (e, t) => e.length <= t ? e : `${e.slice(0, t)}...`, UH = (e, t) => {
|
|
|
20565
20567
|
role: "listbox",
|
|
20566
20568
|
"aria-label": "Opciones de catálogo",
|
|
20567
20569
|
className: "max-h-56 overflow-y-auto",
|
|
20568
|
-
children:
|
|
20570
|
+
children: L.length === 0 ? /* @__PURE__ */ A("div", { className: "px-4 py-3 text-center text-sm text-ui-text-muted", children: i }) : L.map(($, ce) => {
|
|
20569
20571
|
const te = V.findIndex(
|
|
20570
20572
|
(ge) => ge.type === "group" && ge.groupId === $.key
|
|
20571
20573
|
);
|
|
20572
|
-
return /* @__PURE__ */
|
|
20574
|
+
return /* @__PURE__ */ G(I.Fragment, { children: [
|
|
20573
20575
|
ce > 0 && /* @__PURE__ */ A("div", { className: "mx-2 border-t border-ui-border" }),
|
|
20574
|
-
/* @__PURE__ */
|
|
20575
|
-
/* @__PURE__ */
|
|
20576
|
+
/* @__PURE__ */ G("div", { role: "group", "aria-label": $.label, children: [
|
|
20577
|
+
/* @__PURE__ */ G(
|
|
20576
20578
|
"div",
|
|
20577
20579
|
{
|
|
20578
20580
|
id: U(te),
|
|
@@ -20591,7 +20593,7 @@ const Lw = (e, t) => e.length <= t ? e : `${e.slice(0, t)}...`, UH = (e, t) => {
|
|
|
20591
20593
|
),
|
|
20592
20594
|
children: [
|
|
20593
20595
|
($.icon ?? o) && /* @__PURE__ */ A("span", { className: "flex shrink-0 items-center text-ui-text-muted", children: $.icon ?? o }),
|
|
20594
|
-
/* @__PURE__ */
|
|
20596
|
+
/* @__PURE__ */ G("div", { className: "flex flex-1 flex-col overflow-hidden", children: [
|
|
20595
20597
|
/* @__PURE__ */ A("span", { className: "text-xs font-bold uppercase tracking-wide text-ui-text-primary", children: $.label }),
|
|
20596
20598
|
$.description && /* @__PURE__ */ A("span", { className: "truncate text-[11px] text-ui-text-muted", children: Lw($.description, 120) })
|
|
20597
20599
|
] }),
|
|
@@ -20631,7 +20633,7 @@ const Lw = (e, t) => e.length <= t ? e : `${e.slice(0, t)}...`, UH = (e, t) => {
|
|
|
20631
20633
|
const Ee = ge.key, Ge = V.findIndex(
|
|
20632
20634
|
(Ft) => Ft.type === "child" && Ft.groupId === $.key && Ft.childId === ge.key
|
|
20633
20635
|
), Nt = ge.disabled || ($.disabled ?? !1);
|
|
20634
|
-
return /* @__PURE__ */
|
|
20636
|
+
return /* @__PURE__ */ G(
|
|
20635
20637
|
"div",
|
|
20636
20638
|
{
|
|
20637
20639
|
id: U(Ge),
|
|
@@ -20725,10 +20727,10 @@ const uN = ({
|
|
|
20725
20727
|
),
|
|
20726
20728
|
role: "status",
|
|
20727
20729
|
"aria-label": `Loading ${e.label || e.name}`,
|
|
20728
|
-
children: e.type === "sectionDivider" ? /* @__PURE__ */
|
|
20730
|
+
children: e.type === "sectionDivider" ? /* @__PURE__ */ G(qe, { children: [
|
|
20729
20731
|
/* @__PURE__ */ A("div", { className: "h-px w-full rounded bg-gray-200" }),
|
|
20730
20732
|
/* @__PURE__ */ A("div", { className: "h-4 w-1/3 rounded bg-gray-200" })
|
|
20731
|
-
] }) : /* @__PURE__ */
|
|
20733
|
+
] }) : /* @__PURE__ */ G(qe, { children: [
|
|
20732
20734
|
/* @__PURE__ */ A("div", { className: "h-3 w-1/4 rounded bg-gray-200" }),
|
|
20733
20735
|
/* @__PURE__ */ A("div", { className: "h-9 w-full rounded bg-gray-200" })
|
|
20734
20736
|
] })
|
|
@@ -20771,7 +20773,8 @@ const uN = ({
|
|
|
20771
20773
|
case "url":
|
|
20772
20774
|
case "tel":
|
|
20773
20775
|
case "time": {
|
|
20774
|
-
const u = e
|
|
20776
|
+
const u = e;
|
|
20777
|
+
return /* @__PURE__ */ A(
|
|
20775
20778
|
KT,
|
|
20776
20779
|
{
|
|
20777
20780
|
...f,
|
|
@@ -20791,16 +20794,6 @@ const uN = ({
|
|
|
20791
20794
|
parseValue: u.parseValue
|
|
20792
20795
|
}
|
|
20793
20796
|
);
|
|
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;
|
|
20804
20797
|
}
|
|
20805
20798
|
case "inputSelect":
|
|
20806
20799
|
case "identification": {
|
|
@@ -20891,7 +20884,7 @@ const uN = ({
|
|
|
20891
20884
|
) : void 0, h = d ? u.options?.filter(
|
|
20892
20885
|
(g) => String(g.value) !== u.pinnedValue
|
|
20893
20886
|
) : u.options;
|
|
20894
|
-
return /* @__PURE__ */
|
|
20887
|
+
return /* @__PURE__ */ G(
|
|
20895
20888
|
BT,
|
|
20896
20889
|
{
|
|
20897
20890
|
...f,
|
|
@@ -20908,7 +20901,7 @@ const uN = ({
|
|
|
20908
20901
|
isLoading: u.isLoading,
|
|
20909
20902
|
loadingText: u.loadingText,
|
|
20910
20903
|
children: [
|
|
20911
|
-
d && /* @__PURE__ */
|
|
20904
|
+
d && /* @__PURE__ */ G(qe, { children: [
|
|
20912
20905
|
/* @__PURE__ */ A(
|
|
20913
20906
|
_c,
|
|
20914
20907
|
{
|
|
@@ -21077,7 +21070,7 @@ const uN = ({
|
|
|
21077
21070
|
}
|
|
21078
21071
|
case "section": {
|
|
21079
21072
|
const u = e;
|
|
21080
|
-
return /* @__PURE__ */
|
|
21073
|
+
return /* @__PURE__ */ G("div", { className: B("w-full", u.className), children: [
|
|
21081
21074
|
u.label && /* @__PURE__ */ A("div", { className: "mb-3", children: /* @__PURE__ */ A("h3", { className: "text-sm font-medium text-ui-text-primary", children: u.label }) }),
|
|
21082
21075
|
/* @__PURE__ */ A("div", { className: AE(u), children: u.fields.map((d) => /* @__PURE__ */ A(
|
|
21083
21076
|
uN,
|
|
@@ -21260,8 +21253,8 @@ const uN = ({
|
|
|
21260
21253
|
}
|
|
21261
21254
|
}, N = () => {
|
|
21262
21255
|
b(s), v(), t && t();
|
|
21263
|
-
}, R = P.useMemo(() => C$(e.fields, e.orderFields), [e.fields, e.orderFields]),
|
|
21264
|
-
return /* @__PURE__ */
|
|
21256
|
+
}, R = P.useMemo(() => C$(e.fields, e.orderFields), [e.fields, e.orderFields]), L = e.actionButton && (e.actionButton.showButton ?? !0), V = e.submitButton?.showButton ?? !0;
|
|
21257
|
+
return /* @__PURE__ */ G(
|
|
21265
21258
|
"div",
|
|
21266
21259
|
{
|
|
21267
21260
|
className: B(
|
|
@@ -21270,11 +21263,11 @@ const uN = ({
|
|
|
21270
21263
|
d.container
|
|
21271
21264
|
),
|
|
21272
21265
|
children: [
|
|
21273
|
-
e.title && /* @__PURE__ */
|
|
21266
|
+
e.title && /* @__PURE__ */ G("div", { className: B("mb-6", d.header), children: [
|
|
21274
21267
|
/* @__PURE__ */ A("h2", { className: "mb-2 text-2xl font-bold text-ui-text-primary", children: e.title }),
|
|
21275
21268
|
e.description && /* @__PURE__ */ A("p", { className: "text-base text-gather-gray-600", children: e.description })
|
|
21276
21269
|
] }),
|
|
21277
|
-
/* @__PURE__ */
|
|
21270
|
+
/* @__PURE__ */ G(
|
|
21278
21271
|
"form",
|
|
21279
21272
|
{
|
|
21280
21273
|
onSubmit: m(j),
|
|
@@ -21295,7 +21288,7 @@ const uN = ({
|
|
|
21295
21288
|
},
|
|
21296
21289
|
H.name
|
|
21297
21290
|
)) }),
|
|
21298
|
-
!h && (
|
|
21291
|
+
!h && (L || V) && /* @__PURE__ */ G(
|
|
21299
21292
|
"div",
|
|
21300
21293
|
{
|
|
21301
21294
|
className: B(
|
|
@@ -21303,7 +21296,7 @@ const uN = ({
|
|
|
21303
21296
|
d.buttons
|
|
21304
21297
|
),
|
|
21305
21298
|
children: [
|
|
21306
|
-
|
|
21299
|
+
L && /* @__PURE__ */ A(
|
|
21307
21300
|
da,
|
|
21308
21301
|
{
|
|
21309
21302
|
type: "button",
|
|
@@ -21356,7 +21349,7 @@ const uN = ({
|
|
|
21356
21349
|
className: u,
|
|
21357
21350
|
contentClassName: d,
|
|
21358
21351
|
containerProps: h
|
|
21359
|
-
}) => /* @__PURE__ */
|
|
21352
|
+
}) => /* @__PURE__ */ G(
|
|
21360
21353
|
"div",
|
|
21361
21354
|
{
|
|
21362
21355
|
className: B(
|
|
@@ -21370,7 +21363,7 @@ const uN = ({
|
|
|
21370
21363
|
},
|
|
21371
21364
|
...h,
|
|
21372
21365
|
children: [
|
|
21373
|
-
/* @__PURE__ */
|
|
21366
|
+
/* @__PURE__ */ G("div", { className: "flex min-w-0 flex-1 items-center gap-3", children: [
|
|
21374
21367
|
n && /* @__PURE__ */ A(
|
|
21375
21368
|
"span",
|
|
21376
21369
|
{
|
|
@@ -21381,7 +21374,7 @@ const uN = ({
|
|
|
21381
21374
|
children: n
|
|
21382
21375
|
}
|
|
21383
21376
|
),
|
|
21384
|
-
/* @__PURE__ */ A("div", { className: B("min-w-0 flex-1", d), children: /* @__PURE__ */
|
|
21377
|
+
/* @__PURE__ */ A("div", { className: B("min-w-0 flex-1", d), children: /* @__PURE__ */ G("div", { className: "space-y-1", children: [
|
|
21385
21378
|
e && /* @__PURE__ */ A(
|
|
21386
21379
|
"h2",
|
|
21387
21380
|
{
|
|
@@ -21563,7 +21556,7 @@ const nX = "Cargando...", aX = {
|
|
|
21563
21556
|
o
|
|
21564
21557
|
),
|
|
21565
21558
|
role: "status",
|
|
21566
|
-
children: /* @__PURE__ */
|
|
21559
|
+
children: /* @__PURE__ */ G("div", { className: B(oX(e), i?.content), children: [
|
|
21567
21560
|
/* @__PURE__ */ A(
|
|
21568
21561
|
dN,
|
|
21569
21562
|
{
|
|
@@ -21574,7 +21567,7 @@ const nX = "Cargando...", aX = {
|
|
|
21574
21567
|
className: i?.icon
|
|
21575
21568
|
}
|
|
21576
21569
|
),
|
|
21577
|
-
!a && /* @__PURE__ */
|
|
21570
|
+
!a && /* @__PURE__ */ G(
|
|
21578
21571
|
"div",
|
|
21579
21572
|
{
|
|
21580
21573
|
className: e === "floating" ? "flex flex-col" : "flex flex-col text-center",
|
|
@@ -21693,7 +21686,7 @@ const sX = P.forwardRef(
|
|
|
21693
21686
|
};
|
|
21694
21687
|
}
|
|
21695
21688
|
}, [e, m]), !e) return null;
|
|
21696
|
-
const R = (s === "left" || s === "right") && !x,
|
|
21689
|
+
const R = (s === "left" || s === "right") && !x, L = i?.stickyFooter ?? !0, V = /* @__PURE__ */ G("div", { className: "gather-modal-root", style: { zIndex: p * 10 }, children: [
|
|
21697
21690
|
/* @__PURE__ */ A(
|
|
21698
21691
|
"div",
|
|
21699
21692
|
{
|
|
@@ -21731,7 +21724,7 @@ const sX = P.forwardRef(
|
|
|
21731
21724
|
maxHeight: w?.modalScrollable ? w?.modalMaxHeight || "90vh" : void 0
|
|
21732
21725
|
},
|
|
21733
21726
|
...C,
|
|
21734
|
-
children: /* @__PURE__ */
|
|
21727
|
+
children: /* @__PURE__ */ G("div", { className: B("flex h-full flex-col", f), children: [
|
|
21735
21728
|
a && /* @__PURE__ */ A(
|
|
21736
21729
|
fN,
|
|
21737
21730
|
{
|
|
@@ -21749,8 +21742,8 @@ const sX = P.forwardRef(
|
|
|
21749
21742
|
),
|
|
21750
21743
|
children: /* @__PURE__ */ A(hN, { ...S })
|
|
21751
21744
|
}
|
|
21752
|
-
) : /* @__PURE__ */
|
|
21753
|
-
/* @__PURE__ */
|
|
21745
|
+
) : /* @__PURE__ */ G(qe, { children: [
|
|
21746
|
+
/* @__PURE__ */ G(
|
|
21754
21747
|
"div",
|
|
21755
21748
|
{
|
|
21756
21749
|
className: B("flex-1 overflow-y-auto"),
|
|
@@ -21759,11 +21752,11 @@ const sX = P.forwardRef(
|
|
|
21759
21752
|
},
|
|
21760
21753
|
children: [
|
|
21761
21754
|
/* @__PURE__ */ A("div", { className: B("p-4", d), children: o }),
|
|
21762
|
-
!
|
|
21755
|
+
!L && i && /* @__PURE__ */ A("div", { children: /* @__PURE__ */ A(pv, { ...i }) })
|
|
21763
21756
|
]
|
|
21764
21757
|
}
|
|
21765
21758
|
),
|
|
21766
|
-
|
|
21759
|
+
L && i && /* @__PURE__ */ A("div", { className: "mt-auto", children: /* @__PURE__ */ A(pv, { ...i }) })
|
|
21767
21760
|
] })
|
|
21768
21761
|
] })
|
|
21769
21762
|
}
|
|
@@ -21804,10 +21797,10 @@ const lX = I.forwardRef(
|
|
|
21804
21797
|
selectProps: k,
|
|
21805
21798
|
resetOnSelect: T = !0
|
|
21806
21799
|
}, _) => {
|
|
21807
|
-
const [D, j] = I.useState(!1), [N, R] = I.useState(t),
|
|
21800
|
+
const [D, j] = I.useState(!1), [N, R] = I.useState(t), L = I.useMemo(
|
|
21808
21801
|
() => b$(e),
|
|
21809
21802
|
[e]
|
|
21810
|
-
), V = C ||
|
|
21803
|
+
), V = C || L, H = (ae) => {
|
|
21811
21804
|
const U = ae.getValue(), J = U instanceof Date ? { from: U, to: void 0 } : U;
|
|
21812
21805
|
R(J), J?.from && Y(J.from);
|
|
21813
21806
|
}, M = I.useMemo(() => t?.from ? t.from : /* @__PURE__ */ new Date(), [t]), [z, Y] = I.useState(M), Z = I.useCallback(
|
|
@@ -21841,8 +21834,8 @@ const lX = I.forwardRef(
|
|
|
21841
21834
|
v,
|
|
21842
21835
|
y
|
|
21843
21836
|
]);
|
|
21844
|
-
return /* @__PURE__ */
|
|
21845
|
-
/* @__PURE__ */ A(kb, { asChild: !0, children: /* @__PURE__ */
|
|
21837
|
+
return /* @__PURE__ */ G(fl, { open: D, onOpenChange: Z, children: [
|
|
21838
|
+
/* @__PURE__ */ A(kb, { asChild: !0, children: /* @__PURE__ */ G(
|
|
21846
21839
|
za,
|
|
21847
21840
|
{
|
|
21848
21841
|
ref: _,
|
|
@@ -21876,7 +21869,7 @@ const lX = I.forwardRef(
|
|
|
21876
21869
|
),
|
|
21877
21870
|
align: "start",
|
|
21878
21871
|
sideOffset: 4,
|
|
21879
|
-
children: /* @__PURE__ */
|
|
21872
|
+
children: /* @__PURE__ */ G(
|
|
21880
21873
|
"div",
|
|
21881
21874
|
{
|
|
21882
21875
|
className: B(
|
|
@@ -21907,7 +21900,7 @@ const lX = I.forwardRef(
|
|
|
21907
21900
|
))
|
|
21908
21901
|
}
|
|
21909
21902
|
),
|
|
21910
|
-
/* @__PURE__ */
|
|
21903
|
+
/* @__PURE__ */ G("div", { className: "flex flex-col", children: [
|
|
21911
21904
|
/* @__PURE__ */ A(
|
|
21912
21905
|
Bb,
|
|
21913
21906
|
{
|
|
@@ -21938,7 +21931,7 @@ const lX = I.forwardRef(
|
|
|
21938
21931
|
}
|
|
21939
21932
|
}
|
|
21940
21933
|
),
|
|
21941
|
-
!w && /* @__PURE__ */
|
|
21934
|
+
!w && /* @__PURE__ */ G(
|
|
21942
21935
|
"div",
|
|
21943
21936
|
{
|
|
21944
21937
|
className: B(
|
|
@@ -22180,7 +22173,7 @@ const cX = Ot(
|
|
|
22180
22173
|
...l ? { borderColor: l } : {}
|
|
22181
22174
|
};
|
|
22182
22175
|
}, [r, o, s, l]);
|
|
22183
|
-
return /* @__PURE__ */
|
|
22176
|
+
return /* @__PURE__ */ G(
|
|
22184
22177
|
"span",
|
|
22185
22178
|
{
|
|
22186
22179
|
ref: d,
|
|
@@ -22256,7 +22249,7 @@ const hX = ({
|
|
|
22256
22249
|
table: "",
|
|
22257
22250
|
compact: "p-2"
|
|
22258
22251
|
};
|
|
22259
|
-
return /* @__PURE__ */
|
|
22252
|
+
return /* @__PURE__ */ G(
|
|
22260
22253
|
"div",
|
|
22261
22254
|
{
|
|
22262
22255
|
className: B(
|
|
@@ -22265,7 +22258,7 @@ const hX = ({
|
|
|
22265
22258
|
),
|
|
22266
22259
|
...c,
|
|
22267
22260
|
children: [
|
|
22268
|
-
/* @__PURE__ */
|
|
22261
|
+
/* @__PURE__ */ G(
|
|
22269
22262
|
"button",
|
|
22270
22263
|
{
|
|
22271
22264
|
type: "button",
|
|
@@ -22274,11 +22267,11 @@ const hX = ({
|
|
|
22274
22267
|
"aria-expanded": h,
|
|
22275
22268
|
"data-testid": c["data-testid"] ? `${c["data-testid"]}-toggle` : void 0,
|
|
22276
22269
|
children: [
|
|
22277
|
-
/* @__PURE__ */
|
|
22270
|
+
/* @__PURE__ */ G("div", { className: "flex items-center gap-2", children: [
|
|
22278
22271
|
e && /* @__PURE__ */ A("span", { className: "flex shrink-0 text-ui-text-muted", children: e }),
|
|
22279
|
-
/* @__PURE__ */
|
|
22272
|
+
/* @__PURE__ */ G("span", { className: "text-sm font-semibold text-ui-text-primary", children: [
|
|
22280
22273
|
t,
|
|
22281
|
-
r !== void 0 && /* @__PURE__ */
|
|
22274
|
+
r !== void 0 && /* @__PURE__ */ G("span", { className: "ml-1 font-normal text-text-muted", children: [
|
|
22282
22275
|
"(",
|
|
22283
22276
|
r,
|
|
22284
22277
|
")"
|
|
@@ -22297,7 +22290,7 @@ const hX = ({
|
|
|
22297
22290
|
]
|
|
22298
22291
|
}
|
|
22299
22292
|
),
|
|
22300
|
-
h && /* @__PURE__ */
|
|
22293
|
+
h && /* @__PURE__ */ G("div", { className: "border-t border-ui-divider-border", children: [
|
|
22301
22294
|
n && /* @__PURE__ */ A("p", { className: "border-b border-ui-divider-border px-4 pb-3 pt-3 text-xs text-text-muted", children: n }),
|
|
22302
22295
|
/* @__PURE__ */ A("div", { className: p[i], children: s })
|
|
22303
22296
|
] })
|
|
@@ -22322,7 +22315,7 @@ const pX = P.forwardRef(
|
|
|
22322
22315
|
...u
|
|
22323
22316
|
}, d) => {
|
|
22324
22317
|
const h = e.every((p) => p.checked || p.disabled), g = e.some((p) => p.checked && !p.disabled);
|
|
22325
|
-
return /* @__PURE__ */
|
|
22318
|
+
return /* @__PURE__ */ G(
|
|
22326
22319
|
"div",
|
|
22327
22320
|
{
|
|
22328
22321
|
ref: d,
|
|
@@ -22334,7 +22327,7 @@ const pX = P.forwardRef(
|
|
|
22334
22327
|
style: { maxHeight: r },
|
|
22335
22328
|
"data-testid": u["data-testid"],
|
|
22336
22329
|
children: [
|
|
22337
|
-
a && /* @__PURE__ */
|
|
22330
|
+
a && /* @__PURE__ */ G(
|
|
22338
22331
|
"div",
|
|
22339
22332
|
{
|
|
22340
22333
|
className: B(
|
|
@@ -22398,7 +22391,7 @@ const mX = ({
|
|
|
22398
22391
|
const n = (a) => {
|
|
22399
22392
|
!e.disabled && typeof a == "boolean" && t(e.id, a);
|
|
22400
22393
|
};
|
|
22401
|
-
return /* @__PURE__ */
|
|
22394
|
+
return /* @__PURE__ */ G(
|
|
22402
22395
|
"li",
|
|
22403
22396
|
{
|
|
22404
22397
|
className: B(
|
|
@@ -22424,8 +22417,8 @@ const mX = ({
|
|
|
22424
22417
|
}
|
|
22425
22418
|
),
|
|
22426
22419
|
e.startContent && /* @__PURE__ */ A("div", { className: "flex shrink-0 items-center", children: e.startContent }),
|
|
22427
|
-
/* @__PURE__ */
|
|
22428
|
-
/* @__PURE__ */
|
|
22420
|
+
/* @__PURE__ */ G("div", { className: "flex min-w-0 flex-1 items-center justify-between", children: [
|
|
22421
|
+
/* @__PURE__ */ G("div", { className: "min-w-0", children: [
|
|
22429
22422
|
/* @__PURE__ */ A(
|
|
22430
22423
|
"span",
|
|
22431
22424
|
{
|
|
@@ -22452,7 +22445,7 @@ const mX = ({
|
|
|
22452
22445
|
]
|
|
22453
22446
|
}
|
|
22454
22447
|
);
|
|
22455
|
-
}, gX = P.forwardRef(({ icon: e, title: t, description: r, action: n, className: a, classNames: i, ...o }, s) => /* @__PURE__ */
|
|
22448
|
+
}, gX = P.forwardRef(({ icon: e, title: t, description: r, action: n, className: a, classNames: i, ...o }, s) => /* @__PURE__ */ G(
|
|
22456
22449
|
"div",
|
|
22457
22450
|
{
|
|
22458
22451
|
ref: s,
|
|
@@ -22561,7 +22554,7 @@ const pN = ({
|
|
|
22561
22554
|
...i ? { maxWidth: i } : {},
|
|
22562
22555
|
...o ? { minWidth: o } : {},
|
|
22563
22556
|
...m ? { transitionDelay: `${m}ms` } : {}
|
|
22564
|
-
}, j = /* @__PURE__ */
|
|
22557
|
+
}, j = /* @__PURE__ */ G(
|
|
22565
22558
|
"div",
|
|
22566
22559
|
{
|
|
22567
22560
|
ref: y,
|
|
@@ -22596,7 +22589,7 @@ const pN = ({
|
|
|
22596
22589
|
]
|
|
22597
22590
|
}
|
|
22598
22591
|
);
|
|
22599
|
-
return /* @__PURE__ */
|
|
22592
|
+
return /* @__PURE__ */ G(
|
|
22600
22593
|
"div",
|
|
22601
22594
|
{
|
|
22602
22595
|
ref: w,
|
|
@@ -22715,7 +22708,7 @@ const gN = P.forwardRef(
|
|
|
22715
22708
|
return e;
|
|
22716
22709
|
}
|
|
22717
22710
|
}, [o, n, e, u, r, t]);
|
|
22718
|
-
return /* @__PURE__ */
|
|
22711
|
+
return /* @__PURE__ */ G(
|
|
22719
22712
|
"button",
|
|
22720
22713
|
{
|
|
22721
22714
|
ref: f,
|
|
@@ -22795,9 +22788,9 @@ const Gb = ({
|
|
|
22795
22788
|
), l = P.useCallback(() => {
|
|
22796
22789
|
t(""), o.current?.focus();
|
|
22797
22790
|
}, [t]);
|
|
22798
|
-
return /* @__PURE__ */
|
|
22791
|
+
return /* @__PURE__ */ G("div", { className: B("border-b border-ui-divider-border", a), children: [
|
|
22799
22792
|
n && /* @__PURE__ */ A("p", { className: "px-3 pb-1 pt-3 text-xs text-text-muted", children: n }),
|
|
22800
|
-
/* @__PURE__ */
|
|
22793
|
+
/* @__PURE__ */ G("div", { className: "relative px-3 pb-2 pt-2", children: [
|
|
22801
22794
|
/* @__PURE__ */ A(EE, { className: "absolute left-6 top-1/2 h-4 w-4 -translate-y-1/2 text-ui-text-muted" }),
|
|
22802
22795
|
/* @__PURE__ */ A(
|
|
22803
22796
|
"input",
|
|
@@ -23001,7 +22994,7 @@ const Qr = (e) => e.toLowerCase().normalize("NFD").replace(/[\u0300-\u036f]/g, "
|
|
|
23001
22994
|
},
|
|
23002
22995
|
[v, t, r, d.id, b, p]
|
|
23003
22996
|
), k = P.useMemo(() => h ? !0 : o && g ? "indeterminate" : !1, [h, o, g]), T = RX + m * DX;
|
|
23004
|
-
return /* @__PURE__ */
|
|
22997
|
+
return /* @__PURE__ */ G(
|
|
23005
22998
|
"div",
|
|
23006
22999
|
{
|
|
23007
23000
|
role: "treeitem",
|
|
@@ -23065,7 +23058,7 @@ const Qr = (e) => e.toLowerCase().normalize("NFD").replace(/[\u0300-\u036f]/g, "
|
|
|
23065
23058
|
children: /* @__PURE__ */ A(jX, { label: d.label, searchQuery: i })
|
|
23066
23059
|
}
|
|
23067
23060
|
),
|
|
23068
|
-
a && d.badge && w && /* @__PURE__ */
|
|
23061
|
+
a && d.badge && w && /* @__PURE__ */ G(
|
|
23069
23062
|
"button",
|
|
23070
23063
|
{
|
|
23071
23064
|
type: "button",
|
|
@@ -23099,7 +23092,7 @@ const jX = ({
|
|
|
23099
23092
|
const r = Qr(e), n = Qr(t.trim()), a = r.indexOf(n);
|
|
23100
23093
|
if (a === -1) return /* @__PURE__ */ A(qe, { children: e });
|
|
23101
23094
|
const i = e.slice(0, a), o = e.slice(a, a + n.length), s = e.slice(a + n.length);
|
|
23102
|
-
return /* @__PURE__ */
|
|
23095
|
+
return /* @__PURE__ */ G(qe, { children: [
|
|
23103
23096
|
i,
|
|
23104
23097
|
/* @__PURE__ */ A("mark", { className: "rounded-sm bg-yellow-100 px-0.5 text-ui-text-primary", children: o }),
|
|
23105
23098
|
s
|
|
@@ -23127,7 +23120,7 @@ const jX = ({
|
|
|
23127
23120
|
() => g.filter((C) => h.has(C.id)).length,
|
|
23128
23121
|
[g, h]
|
|
23129
23122
|
), 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...";
|
|
23130
|
-
return /* @__PURE__ */
|
|
23123
|
+
return /* @__PURE__ */ G(
|
|
23131
23124
|
"div",
|
|
23132
23125
|
{
|
|
23133
23126
|
role: "dialog",
|
|
@@ -23139,7 +23132,7 @@ const jX = ({
|
|
|
23139
23132
|
),
|
|
23140
23133
|
"data-testid": f ? `${f}-sub-panel` : void 0,
|
|
23141
23134
|
children: [
|
|
23142
|
-
/* @__PURE__ */ A("div", { className: "border-b border-ui-divider-border px-3 py-2.5", children: /* @__PURE__ */
|
|
23135
|
+
/* @__PURE__ */ A("div", { className: "border-b border-ui-divider-border px-3 py-2.5", children: /* @__PURE__ */ G("div", { className: "flex items-center gap-2", children: [
|
|
23143
23136
|
/* @__PURE__ */ A(
|
|
23144
23137
|
"button",
|
|
23145
23138
|
{
|
|
@@ -23151,9 +23144,9 @@ const jX = ({
|
|
|
23151
23144
|
children: /* @__PURE__ */ A(G$, { className: "h-4 w-4" })
|
|
23152
23145
|
}
|
|
23153
23146
|
),
|
|
23154
|
-
/* @__PURE__ */
|
|
23155
|
-
r && r.length > 0 && /* @__PURE__ */
|
|
23156
|
-
r.map((C, O) => /* @__PURE__ */
|
|
23147
|
+
/* @__PURE__ */ G("div", { className: "min-w-0 flex-1", children: [
|
|
23148
|
+
r && r.length > 0 && /* @__PURE__ */ G("div", { className: "flex items-center gap-1 text-[11px] font-bold uppercase tracking-wide text-ui-text-muted", children: [
|
|
23149
|
+
r.map((C, O) => /* @__PURE__ */ G(P.Fragment, { children: [
|
|
23157
23150
|
O > 0 && /* @__PURE__ */ A("span", { className: "text-gather-gray-300", children: "/" }),
|
|
23158
23151
|
/* @__PURE__ */ A(
|
|
23159
23152
|
"span",
|
|
@@ -23164,7 +23157,7 @@ const jX = ({
|
|
|
23164
23157
|
}
|
|
23165
23158
|
)
|
|
23166
23159
|
] }, O)),
|
|
23167
|
-
t && /* @__PURE__ */
|
|
23160
|
+
t && /* @__PURE__ */ G(qe, { children: [
|
|
23168
23161
|
/* @__PURE__ */ A("span", { className: "text-gather-gray-300", children: "/" }),
|
|
23169
23162
|
/* @__PURE__ */ A("span", { children: t })
|
|
23170
23163
|
] })
|
|
@@ -23188,8 +23181,8 @@ const jX = ({
|
|
|
23188
23181
|
"data-testid": f ? `${f}-sub-panel` : void 0
|
|
23189
23182
|
}
|
|
23190
23183
|
),
|
|
23191
|
-
/* @__PURE__ */
|
|
23192
|
-
/* @__PURE__ */
|
|
23184
|
+
/* @__PURE__ */ G("div", { className: "flex items-baseline justify-between gap-x-3 gap-y-0.5 px-3 py-1.5 flex-wrap", children: [
|
|
23185
|
+
/* @__PURE__ */ G("div", { className: "flex items-center gap-2", children: [
|
|
23193
23186
|
/* @__PURE__ */ A(
|
|
23194
23187
|
"button",
|
|
23195
23188
|
{
|
|
@@ -23212,11 +23205,11 @@ const jX = ({
|
|
|
23212
23205
|
}
|
|
23213
23206
|
)
|
|
23214
23207
|
] }),
|
|
23215
|
-
v > 0 && /* @__PURE__ */ A("span", { className: "ml-auto text-[11px] text-ui-text-muted", children: m ? /* @__PURE__ */
|
|
23208
|
+
v > 0 && /* @__PURE__ */ A("span", { className: "ml-auto text-[11px] text-ui-text-muted", children: m ? /* @__PURE__ */ G(qe, { children: [
|
|
23216
23209
|
p.length,
|
|
23217
23210
|
" de ",
|
|
23218
23211
|
v
|
|
23219
|
-
] }) : /* @__PURE__ */
|
|
23212
|
+
] }) : /* @__PURE__ */ G(qe, { children: [
|
|
23220
23213
|
v,
|
|
23221
23214
|
" orígenes"
|
|
23222
23215
|
] }) })
|
|
@@ -23255,7 +23248,7 @@ const $X = ({
|
|
|
23255
23248
|
},
|
|
23256
23249
|
[n, i, e]
|
|
23257
23250
|
);
|
|
23258
|
-
return /* @__PURE__ */
|
|
23251
|
+
return /* @__PURE__ */ G(
|
|
23259
23252
|
"div",
|
|
23260
23253
|
{
|
|
23261
23254
|
className: B(
|
|
@@ -23285,7 +23278,7 @@ const $X = ({
|
|
|
23285
23278
|
const r = Qr(e), n = Qr(t.trim()), a = r.indexOf(n);
|
|
23286
23279
|
if (a === -1) return /* @__PURE__ */ A(qe, { children: e });
|
|
23287
23280
|
const i = e.slice(0, a), o = e.slice(a, a + n.length), s = e.slice(a + n.length);
|
|
23288
|
-
return /* @__PURE__ */
|
|
23281
|
+
return /* @__PURE__ */ G(qe, { children: [
|
|
23289
23282
|
i,
|
|
23290
23283
|
/* @__PURE__ */ A("mark", { className: "rounded-sm bg-yellow-100 px-0.5 text-ui-text-primary", children: o }),
|
|
23291
23284
|
s
|
|
@@ -23323,7 +23316,7 @@ const $X = ({
|
|
|
23323
23316
|
classNames: k,
|
|
23324
23317
|
"data-testid": T
|
|
23325
23318
|
}, _) => {
|
|
23326
|
-
const [D, j] = P.useState(!1), [N, R] = P.useState(""), [
|
|
23319
|
+
const [D, j] = P.useState(!1), [N, R] = P.useState(""), [L, V] = P.useState(
|
|
23327
23320
|
() => new Set(f ?? [])
|
|
23328
23321
|
), [H, M] = P.useState(null), [z, Y] = P.useState(n);
|
|
23329
23322
|
P.useEffect(() => {
|
|
@@ -23342,12 +23335,12 @@ const $X = ({
|
|
|
23342
23335
|
K,
|
|
23343
23336
|
q,
|
|
23344
23337
|
N,
|
|
23345
|
-
|
|
23338
|
+
L,
|
|
23346
23339
|
c,
|
|
23347
23340
|
W
|
|
23348
23341
|
);
|
|
23349
23342
|
},
|
|
23350
|
-
[K, q, N,
|
|
23343
|
+
[K, q, N, L, c, l]
|
|
23351
23344
|
), Q = P.useMemo(
|
|
23352
23345
|
() => mv(t, new Set(n)),
|
|
23353
23346
|
[t, n]
|
|
@@ -23431,7 +23424,7 @@ const $X = ({
|
|
|
23431
23424
|
(W, re) => l?.enabled ? l.shouldShowTrigger(W, re) : !1,
|
|
23432
23425
|
[l]
|
|
23433
23426
|
), Br = t.length > 0, nr = K.length > 0, F = N.trim().length > 0, X = !!J && !!l?.enabled;
|
|
23434
|
-
return /* @__PURE__ */
|
|
23427
|
+
return /* @__PURE__ */ G(fl, { open: D, onOpenChange: te, children: [
|
|
23435
23428
|
/* @__PURE__ */ A(kb, { asChild: !0, children: /* @__PURE__ */ A(
|
|
23436
23429
|
gN,
|
|
23437
23430
|
{
|
|
@@ -23447,7 +23440,7 @@ const $X = ({
|
|
|
23447
23440
|
classNames: k
|
|
23448
23441
|
}
|
|
23449
23442
|
) }),
|
|
23450
|
-
/* @__PURE__ */
|
|
23443
|
+
/* @__PURE__ */ G(
|
|
23451
23444
|
dl,
|
|
23452
23445
|
{
|
|
23453
23446
|
align: C,
|
|
@@ -23460,8 +23453,8 @@ const $X = ({
|
|
|
23460
23453
|
k?.popoverContent
|
|
23461
23454
|
),
|
|
23462
23455
|
children: [
|
|
23463
|
-
/* @__PURE__ */
|
|
23464
|
-
/* @__PURE__ */
|
|
23456
|
+
/* @__PURE__ */ G("div", { className: "flex", children: [
|
|
23457
|
+
/* @__PURE__ */ G("div", { className: "flex min-w-0 flex-1 flex-col", children: [
|
|
23465
23458
|
u && /* @__PURE__ */ A("div", { className: "p-3", children: Array.from({ length: d }).map((W, re) => /* @__PURE__ */ A(
|
|
23466
23459
|
"div",
|
|
23467
23460
|
{
|
|
@@ -23473,7 +23466,7 @@ const $X = ({
|
|
|
23473
23466
|
re
|
|
23474
23467
|
)) }),
|
|
23475
23468
|
!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 }) }),
|
|
23476
|
-
!u && Br && /* @__PURE__ */
|
|
23469
|
+
!u && Br && /* @__PURE__ */ G(qe, { children: [
|
|
23477
23470
|
/* @__PURE__ */ A(
|
|
23478
23471
|
Gb,
|
|
23479
23472
|
{
|
|
@@ -23535,14 +23528,14 @@ const $X = ({
|
|
|
23535
23528
|
})
|
|
23536
23529
|
}
|
|
23537
23530
|
),
|
|
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__ */
|
|
23531
|
+
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__ */ G(qe, { children: [
|
|
23539
23532
|
"Mostrando",
|
|
23540
23533
|
" ",
|
|
23541
23534
|
/* @__PURE__ */ A("b", { className: "font-semibold text-ui-text-secondary", children: ne.length }),
|
|
23542
23535
|
" ",
|
|
23543
23536
|
"coincidencia",
|
|
23544
23537
|
ne.length !== 1 ? "s" : ""
|
|
23545
|
-
] }) : /* @__PURE__ */
|
|
23538
|
+
] }) : /* @__PURE__ */ G(qe, { children: [
|
|
23546
23539
|
"Mostrando",
|
|
23547
23540
|
" ",
|
|
23548
23541
|
/* @__PURE__ */ A("b", { className: "font-semibold text-ui-text-secondary", children: ne.length }),
|
|
@@ -23568,14 +23561,14 @@ const $X = ({
|
|
|
23568
23561
|
}
|
|
23569
23562
|
)
|
|
23570
23563
|
] }),
|
|
23571
|
-
x && /* @__PURE__ */
|
|
23572
|
-
/* @__PURE__ */ A("span", { className: "whitespace-nowrap text-xs text-ui-text-muted", children: ae === 0 ? "Nada seleccionado" : /* @__PURE__ */
|
|
23564
|
+
x && /* @__PURE__ */ G("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: [
|
|
23565
|
+
/* @__PURE__ */ A("span", { className: "whitespace-nowrap text-xs text-ui-text-muted", children: ae === 0 ? "Nada seleccionado" : /* @__PURE__ */ G(qe, { children: [
|
|
23573
23566
|
/* @__PURE__ */ A("b", { className: "font-bold text-success-600", children: ae }),
|
|
23574
23567
|
" ",
|
|
23575
23568
|
"seleccionado",
|
|
23576
23569
|
ae !== 1 ? "s" : ""
|
|
23577
23570
|
] }) }),
|
|
23578
|
-
/* @__PURE__ */
|
|
23571
|
+
/* @__PURE__ */ G("div", { className: "flex shrink-0 items-center gap-2", children: [
|
|
23579
23572
|
/* @__PURE__ */ A(
|
|
23580
23573
|
"button",
|
|
23581
23574
|
{
|
|
@@ -23630,7 +23623,7 @@ const rce = {
|
|
|
23630
23623
|
levels: ["#C8DCF0", "#93BBDE", "#5B94CA", "#2B6CB0", "#1A3F6F"]
|
|
23631
23624
|
}, SN = ({
|
|
23632
23625
|
className: e
|
|
23633
|
-
}) => /* @__PURE__ */
|
|
23626
|
+
}) => /* @__PURE__ */ G(
|
|
23634
23627
|
"div",
|
|
23635
23628
|
{
|
|
23636
23629
|
className: B(
|
|
@@ -23639,13 +23632,13 @@ const rce = {
|
|
|
23639
23632
|
),
|
|
23640
23633
|
"data-testid": "gather-metric-card-skeleton",
|
|
23641
23634
|
children: [
|
|
23642
|
-
/* @__PURE__ */
|
|
23635
|
+
/* @__PURE__ */ G("div", { className: "flex items-center gap-1", children: [
|
|
23643
23636
|
/* @__PURE__ */ A("div", { className: "h-3 w-24 animate-pulse rounded bg-gray-200" }),
|
|
23644
23637
|
/* @__PURE__ */ A("div", { className: "h-3.5 w-3.5 animate-pulse rounded-full bg-gray-200" })
|
|
23645
23638
|
] }),
|
|
23646
23639
|
/* @__PURE__ */ A("div", { className: "mt-2 h-7 w-20 animate-pulse rounded bg-gray-200" }),
|
|
23647
23640
|
/* @__PURE__ */ A("div", { className: "mt-1 h-4 w-28 animate-pulse rounded bg-gray-100" }),
|
|
23648
|
-
/* @__PURE__ */
|
|
23641
|
+
/* @__PURE__ */ G("div", { className: "mt-1 flex items-center gap-1", children: [
|
|
23649
23642
|
/* @__PURE__ */ A("div", { className: "h-3 w-3 animate-pulse rounded bg-gray-100" }),
|
|
23650
23643
|
/* @__PURE__ */ A("div", { className: "h-3 w-16 animate-pulse rounded bg-gray-100" })
|
|
23651
23644
|
] })
|
|
@@ -23694,7 +23687,7 @@ const Vw = {
|
|
|
23694
23687
|
if (h)
|
|
23695
23688
|
return /* @__PURE__ */ A(SN, { className: g });
|
|
23696
23689
|
const v = m.length > 0;
|
|
23697
|
-
return /* @__PURE__ */
|
|
23690
|
+
return /* @__PURE__ */ G(
|
|
23698
23691
|
"div",
|
|
23699
23692
|
{
|
|
23700
23693
|
className: B(
|
|
@@ -23704,9 +23697,9 @@ const Vw = {
|
|
|
23704
23697
|
),
|
|
23705
23698
|
"data-testid": p ?? "gather-metric-card",
|
|
23706
23699
|
children: [
|
|
23707
|
-
/* @__PURE__ */
|
|
23700
|
+
/* @__PURE__ */ G("div", { className: "flex items-center gap-1", children: [
|
|
23708
23701
|
/* @__PURE__ */ A("span", { className: "text-xs font-medium uppercase tracking-wide text-[#6B7280]", children: e }),
|
|
23709
|
-
c && /* @__PURE__ */
|
|
23702
|
+
c && /* @__PURE__ */ G(pN, { content: c, ...f, children: [
|
|
23710
23703
|
/* @__PURE__ */ A(
|
|
23711
23704
|
PE,
|
|
23712
23705
|
{
|
|
@@ -23719,7 +23712,7 @@ const Vw = {
|
|
|
23719
23712
|
] }),
|
|
23720
23713
|
/* @__PURE__ */ A("div", { className: "mt-2", children: /* @__PURE__ */ A("span", { className: "text-2xl font-bold text-[#111827]", children: b }) }),
|
|
23721
23714
|
a && /* @__PURE__ */ A("div", { className: "mt-1 text-sm text-[#6B7280]", children: a }),
|
|
23722
|
-
i !== void 0 && /* @__PURE__ */
|
|
23715
|
+
i !== void 0 && /* @__PURE__ */ G("div", { className: "mt-1 flex items-center gap-1", children: [
|
|
23723
23716
|
i >= 0 ? /* @__PURE__ */ A(
|
|
23724
23717
|
pB,
|
|
23725
23718
|
{
|
|
@@ -23739,7 +23732,7 @@ const Vw = {
|
|
|
23739
23732
|
"aria-hidden": "true"
|
|
23740
23733
|
}
|
|
23741
23734
|
),
|
|
23742
|
-
/* @__PURE__ */
|
|
23735
|
+
/* @__PURE__ */ G(
|
|
23743
23736
|
"span",
|
|
23744
23737
|
{
|
|
23745
23738
|
className: "text-xs",
|
|
@@ -23754,7 +23747,7 @@ const Vw = {
|
|
|
23754
23747
|
}
|
|
23755
23748
|
),
|
|
23756
23749
|
o && /* @__PURE__ */ A("span", { className: "text-xs text-[#6B7280]", children: o }),
|
|
23757
|
-
/* @__PURE__ */
|
|
23750
|
+
/* @__PURE__ */ G("span", { className: "sr-only", children: [
|
|
23758
23751
|
i >= 0 ? "Incremento" : "Decremento",
|
|
23759
23752
|
" de",
|
|
23760
23753
|
" ",
|
|
@@ -24501,7 +24494,7 @@ function OY() {
|
|
|
24501
24494
|
}
|
|
24502
24495
|
}
|
|
24503
24496
|
}
|
|
24504
|
-
var S = o, C = i, O = e, E = l, k = r, T = d, _ = u, D = t, j = a, N = n, R = c,
|
|
24497
|
+
var S = o, C = i, O = e, E = l, k = r, T = d, _ = u, D = t, j = a, N = n, R = c, L = f, V = !1, H = !1;
|
|
24505
24498
|
function M(te) {
|
|
24506
24499
|
return V || (V = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")), !1;
|
|
24507
24500
|
}
|
|
@@ -24544,7 +24537,7 @@ function OY() {
|
|
|
24544
24537
|
function ce(te) {
|
|
24545
24538
|
return y(te) === f;
|
|
24546
24539
|
}
|
|
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 =
|
|
24540
|
+
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 = L, 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;
|
|
24548
24541
|
})()), He;
|
|
24549
24542
|
}
|
|
24550
24543
|
var q1;
|
|
@@ -27963,9 +27956,9 @@ var GU = function(t) {
|
|
|
27963
27956
|
paddingTop: 4,
|
|
27964
27957
|
paddingBottom: 4,
|
|
27965
27958
|
color: j.color || "#000"
|
|
27966
|
-
}, s),
|
|
27967
|
-
if (
|
|
27968
|
-
var Y =
|
|
27959
|
+
}, s), L = j.formatter || u || LU, V = j.value, H = j.name, M = V, z = H;
|
|
27960
|
+
if (L && M != null && z != null) {
|
|
27961
|
+
var Y = L(V, H, j, N, f);
|
|
27969
27962
|
if (Array.isArray(Y)) {
|
|
27970
27963
|
var Z = NU(Y, 2);
|
|
27971
27964
|
M = Z[0], z = Z[1];
|
|
@@ -28710,10 +28703,10 @@ var zc = /* @__PURE__ */ oi(function(e, t) {
|
|
|
28710
28703
|
containerHeight: a.height
|
|
28711
28704
|
}), O = AZ(C, 2), E = O[0], k = O[1], T = Ne(function(D, j) {
|
|
28712
28705
|
k(function(N) {
|
|
28713
|
-
var R = Math.round(D),
|
|
28714
|
-
return N.containerWidth === R && N.containerHeight ===
|
|
28706
|
+
var R = Math.round(D), L = Math.round(j);
|
|
28707
|
+
return N.containerWidth === R && N.containerHeight === L ? N : {
|
|
28715
28708
|
containerWidth: R,
|
|
28716
|
-
containerHeight:
|
|
28709
|
+
containerHeight: L
|
|
28717
28710
|
};
|
|
28718
28711
|
});
|
|
28719
28712
|
}, []);
|
|
@@ -28726,8 +28719,8 @@ var zc = /* @__PURE__ */ oi(function(e, t) {
|
|
|
28726
28719
|
trailing: !0,
|
|
28727
28720
|
leading: !1
|
|
28728
28721
|
}));
|
|
28729
|
-
var j = new ResizeObserver(D), N = y.current.getBoundingClientRect(), R = N.width,
|
|
28730
|
-
return T(R,
|
|
28722
|
+
var j = new ResizeObserver(D), N = y.current.getBoundingClientRect(), R = N.width, L = N.height;
|
|
28723
|
+
return T(R, L), j.observe(y.current), function() {
|
|
28731
28724
|
j.disconnect();
|
|
28732
28725
|
};
|
|
28733
28726
|
}, [T, p]);
|
|
@@ -28742,12 +28735,12 @@ var zc = /* @__PURE__ */ oi(function(e, t) {
|
|
|
28742
28735
|
please check the style of container, or the props width(%s) and height(%s),
|
|
28743
28736
|
or add a minWidth(%s) or minHeight(%s) or use aspect(%s) to control the
|
|
28744
28737
|
height and width.`, N, R, o, l, f, u, r);
|
|
28745
|
-
var
|
|
28738
|
+
var L = !Array.isArray(h) && Dn(h.type).endsWith("Chart");
|
|
28746
28739
|
return P.Children.map(h, function(V) {
|
|
28747
28740
|
return /* @__PURE__ */ P.isValidElement(V) ? /* @__PURE__ */ _t(V, Hl({
|
|
28748
28741
|
width: N,
|
|
28749
28742
|
height: R
|
|
28750
|
-
},
|
|
28743
|
+
}, L ? {
|
|
28751
28744
|
style: Hl({
|
|
28752
28745
|
height: "100%",
|
|
28753
28746
|
width: "100%",
|
|
@@ -29141,8 +29134,8 @@ var IM = /[ \f\n\r\t\v\u2028\u2029]+/, PM = function(t) {
|
|
|
29141
29134
|
}, n8 = function(t, r, n, a, i) {
|
|
29142
29135
|
var o = t.maxLines, s = t.children, l = t.style, c = t.breakAll, f = se(o), u = s, d = function() {
|
|
29143
29136
|
var N = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : [];
|
|
29144
|
-
return N.reduce(function(R,
|
|
29145
|
-
var V =
|
|
29137
|
+
return N.reduce(function(R, L) {
|
|
29138
|
+
var V = L.word, H = L.width, M = R[R.length - 1];
|
|
29146
29139
|
if (M && (a == null || i || M.width + H + n < Number(a)))
|
|
29147
29140
|
M.words.push(V), M.width += H + n;
|
|
29148
29141
|
else {
|
|
@@ -29155,18 +29148,18 @@ var IM = /[ \f\n\r\t\v\u2028\u2029]+/, PM = function(t) {
|
|
|
29155
29148
|
return R;
|
|
29156
29149
|
}, []);
|
|
29157
29150
|
}, h = d(r), g = function(N) {
|
|
29158
|
-
return N.reduce(function(R,
|
|
29159
|
-
return R.width >
|
|
29151
|
+
return N.reduce(function(R, L) {
|
|
29152
|
+
return R.width > L.width ? R : L;
|
|
29160
29153
|
});
|
|
29161
29154
|
};
|
|
29162
29155
|
if (!f)
|
|
29163
29156
|
return h;
|
|
29164
29157
|
for (var p = "…", m = function(N) {
|
|
29165
|
-
var R = u.slice(0, N),
|
|
29158
|
+
var R = u.slice(0, N), L = PM({
|
|
29166
29159
|
breakAll: c,
|
|
29167
29160
|
style: l,
|
|
29168
29161
|
children: R + p
|
|
29169
|
-
}).wordsWithComputedWidth, V = d(
|
|
29162
|
+
}).wordsWithComputedWidth, V = d(L), H = V.length > o || g(V).width > Number(a);
|
|
29170
29163
|
return [H, V];
|
|
29171
29164
|
}, b = 0, v = u.length - 1, x = 0, w; b <= v && x <= u.length - 1; ) {
|
|
29172
29165
|
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];
|
|
@@ -29239,15 +29232,15 @@ var IM = /[ \f\n\r\t\v\u2028\u2029]+/, PM = function(t) {
|
|
|
29239
29232
|
className: Ie("recharts-text", C),
|
|
29240
29233
|
textAnchor: h,
|
|
29241
29234
|
fill: b.includes("url") ? jC : b
|
|
29242
|
-
}), x.map(function(R,
|
|
29235
|
+
}), x.map(function(R, L) {
|
|
29243
29236
|
var V = R.words.join(O ? "" : " ");
|
|
29244
29237
|
return (
|
|
29245
29238
|
// duplicate words will cause duplicate keys
|
|
29246
29239
|
// eslint-disable-next-line react/no-array-index-key
|
|
29247
29240
|
/* @__PURE__ */ P.createElement("tspan", {
|
|
29248
29241
|
x: k,
|
|
29249
|
-
dy:
|
|
29250
|
-
key: "".concat(V, "-").concat(
|
|
29242
|
+
dy: L === 0 ? _ : s,
|
|
29243
|
+
key: "".concat(V, "-").concat(L)
|
|
29251
29244
|
}, V)
|
|
29252
29245
|
);
|
|
29253
29246
|
}));
|
|
@@ -30110,7 +30103,7 @@ function Q8(e) {
|
|
|
30110
30103
|
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);
|
|
30111
30104
|
w = w === void 0 ? 6 : /[gprs]/.test(S) ? Math.max(1, Math.min(21, w)) : Math.max(0, Math.min(20, w));
|
|
30112
30105
|
function T(_) {
|
|
30113
|
-
var D = C, j = O, N, R,
|
|
30106
|
+
var D = C, j = O, N, R, L;
|
|
30114
30107
|
if (S === "c")
|
|
30115
30108
|
j = E(_) + j, _ = "";
|
|
30116
30109
|
else {
|
|
@@ -30118,8 +30111,8 @@ function Q8(e) {
|
|
|
30118
30111
|
var V = _ < 0 || 1 / _ < 0;
|
|
30119
30112
|
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) {
|
|
30120
30113
|
for (N = -1, R = _.length; ++N < R; )
|
|
30121
|
-
if (
|
|
30122
|
-
j = (
|
|
30114
|
+
if (L = _.charCodeAt(N), 48 > L || L > 57) {
|
|
30115
|
+
j = (L === 46 ? a + _.slice(N + 1) : _.slice(N)) + j, _ = _.slice(0, N);
|
|
30123
30116
|
break;
|
|
30124
30117
|
}
|
|
30125
30118
|
}
|
|
@@ -30685,7 +30678,7 @@ function Xo(e, t, r) {
|
|
|
30685
30678
|
}
|
|
30686
30679
|
function O7(e) {
|
|
30687
30680
|
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 = {
|
|
30688
|
-
a:
|
|
30681
|
+
a: L,
|
|
30689
30682
|
A: V,
|
|
30690
30683
|
b: H,
|
|
30691
30684
|
B: M,
|
|
@@ -30845,7 +30838,7 @@ function O7(e) {
|
|
|
30845
30838
|
function R(U, J, ie) {
|
|
30846
30839
|
return O(U, n, J, ie);
|
|
30847
30840
|
}
|
|
30848
|
-
function
|
|
30841
|
+
function L(U) {
|
|
30849
30842
|
return o[U.getDay()];
|
|
30850
30843
|
}
|
|
30851
30844
|
function V(U) {
|
|
@@ -32323,9 +32316,9 @@ var jo = /* @__PURE__ */ (function(e) {
|
|
|
32323
32316
|
y2: _
|
|
32324
32317
|
});
|
|
32325
32318
|
} else if (i === "horizontal") {
|
|
32326
|
-
var N = u.scale, R = b + a,
|
|
32319
|
+
var N = u.scale, R = b + a, L = R - o, V = R + o, H = N(x - S), M = N(x + C);
|
|
32327
32320
|
y.push({
|
|
32328
|
-
x1:
|
|
32321
|
+
x1: L,
|
|
32329
32322
|
y1: M,
|
|
32330
32323
|
x2: V,
|
|
32331
32324
|
y2: M
|
|
@@ -32335,7 +32328,7 @@ var jo = /* @__PURE__ */ (function(e) {
|
|
|
32335
32328
|
x2: R,
|
|
32336
32329
|
y2: M
|
|
32337
32330
|
}), y.push({
|
|
32338
|
-
x1:
|
|
32331
|
+
x1: L,
|
|
32339
32332
|
y1: H,
|
|
32340
32333
|
x2: V,
|
|
32341
32334
|
y2: H
|
|
@@ -34247,7 +34240,7 @@ function dee() {
|
|
|
34247
34240
|
function z(Y, Z, q, K, ne, Q) {
|
|
34248
34241
|
var ae = Y[Z], U = R(ae);
|
|
34249
34242
|
if (U !== M) {
|
|
34250
|
-
var J =
|
|
34243
|
+
var J = L(ae);
|
|
34251
34244
|
return new p(
|
|
34252
34245
|
"Invalid " + K + " `" + ne + "` of type " + ("`" + J + "` supplied to `" + q + "`, expected ") + ("`" + M + "`."),
|
|
34253
34246
|
{ expectedType: M }
|
|
@@ -34320,7 +34313,7 @@ function dee() {
|
|
|
34320
34313
|
if (g(Q, M[ae]))
|
|
34321
34314
|
return null;
|
|
34322
34315
|
var U = JSON.stringify(M, function(ie, $) {
|
|
34323
|
-
var ce =
|
|
34316
|
+
var ce = L($);
|
|
34324
34317
|
return ce === "symbol" ? String($) : $;
|
|
34325
34318
|
});
|
|
34326
34319
|
return new p("Invalid " + K + " `" + ne + "` of value `" + String(Q) + "` " + ("supplied to `" + q + "`, expected one of " + U + "."));
|
|
@@ -34385,7 +34378,7 @@ function dee() {
|
|
|
34385
34378
|
for (var U in M) {
|
|
34386
34379
|
var J = M[U];
|
|
34387
34380
|
if (typeof J != "function")
|
|
34388
|
-
return T(q, K, ne, U,
|
|
34381
|
+
return T(q, K, ne, U, L(J));
|
|
34389
34382
|
var ie = J(Q, U, q, K, ne + "." + U, r);
|
|
34390
34383
|
if (ie)
|
|
34391
34384
|
return ie;
|
|
@@ -34403,7 +34396,7 @@ function dee() {
|
|
|
34403
34396
|
for (var J in U) {
|
|
34404
34397
|
var ie = M[J];
|
|
34405
34398
|
if (n(M, J) && typeof ie != "function")
|
|
34406
|
-
return T(q, K, ne, J,
|
|
34399
|
+
return T(q, K, ne, J, L(ie));
|
|
34407
34400
|
if (!ie)
|
|
34408
34401
|
return new p(
|
|
34409
34402
|
"Invalid " + K + " `" + ne + "` key `" + J + "` supplied to `" + q + "`.\nBad object: " + JSON.stringify(Y[Z], null, " ") + `
|
|
@@ -34457,7 +34450,7 @@ Valid keys: ` + JSON.stringify(Object.keys(M), null, " ")
|
|
|
34457
34450
|
var z = typeof M;
|
|
34458
34451
|
return Array.isArray(M) ? "array" : M instanceof RegExp ? "object" : N(z, M) ? "symbol" : z;
|
|
34459
34452
|
}
|
|
34460
|
-
function
|
|
34453
|
+
function L(M) {
|
|
34461
34454
|
if (typeof M > "u" || M === null)
|
|
34462
34455
|
return "" + M;
|
|
34463
34456
|
var z = R(M);
|
|
@@ -34470,7 +34463,7 @@ Valid keys: ` + JSON.stringify(Object.keys(M), null, " ")
|
|
|
34470
34463
|
return z;
|
|
34471
34464
|
}
|
|
34472
34465
|
function V(M) {
|
|
34473
|
-
var z =
|
|
34466
|
+
var z = L(M);
|
|
34474
34467
|
switch (z) {
|
|
34475
34468
|
case "array":
|
|
34476
34469
|
case "object":
|
|
@@ -37382,7 +37375,7 @@ Tr(Jn, "getComposedData", function(e) {
|
|
|
37382
37375
|
S = a.map(function(O, E) {
|
|
37383
37376
|
var k = lt(O, b, 0), T = lt(O, f, E), _ = (se(k) ? k : 0) / y, D;
|
|
37384
37377
|
E ? D = C.endAngle + Kt(p) * l * (k !== 0 ? 1 : 0) : D = o;
|
|
37385
|
-
var j = D + Kt(p) * ((k !== 0 ? h : 0) + _ * w), N = (D + j) / 2, R = (g.innerRadius + g.outerRadius) / 2,
|
|
37378
|
+
var j = D + Kt(p) * ((k !== 0 ? h : 0) + _ * w), N = (D + j) / 2, R = (g.innerRadius + g.outerRadius) / 2, L = [{
|
|
37386
37379
|
name: T,
|
|
37387
37380
|
value: k,
|
|
37388
37381
|
payload: O,
|
|
@@ -37393,7 +37386,7 @@ Tr(Jn, "getComposedData", function(e) {
|
|
|
37393
37386
|
percent: _,
|
|
37394
37387
|
cornerRadius: i,
|
|
37395
37388
|
name: T,
|
|
37396
|
-
tooltipPayload:
|
|
37389
|
+
tooltipPayload: L,
|
|
37397
37390
|
midAngle: N,
|
|
37398
37391
|
middleRadius: R,
|
|
37399
37392
|
tooltipPosition: V
|
|
@@ -38531,7 +38524,7 @@ sa(Wn, "getComposedData", function(e) {
|
|
|
38531
38524
|
}), C = rr(v, bl), O = u.map(function(E, k) {
|
|
38532
38525
|
var T, _, D, j, N, R;
|
|
38533
38526
|
c ? T = UK(c[f + k], y) : (T = lt(E, b), Array.isArray(T) || (T = [S, T]));
|
|
38534
|
-
var
|
|
38527
|
+
var L = gae(x, a2.defaultProps.minPointSize)(T[1], k);
|
|
38535
38528
|
if (g === "horizontal") {
|
|
38536
38529
|
var V, H = [o.scale(T[0]), o.scale(T[1])], M = H[0], z = H[1];
|
|
38537
38530
|
_ = $O({
|
|
@@ -38548,8 +38541,8 @@ sa(Wn, "getComposedData", function(e) {
|
|
|
38548
38541
|
y: o.y,
|
|
38549
38542
|
width: j,
|
|
38550
38543
|
height: o.height
|
|
38551
|
-
}, Math.abs(
|
|
38552
|
-
var Z = Kt(N ||
|
|
38544
|
+
}, Math.abs(L) > 0 && Math.abs(N) < Math.abs(L)) {
|
|
38545
|
+
var Z = Kt(N || L) * (Math.abs(L) - Math.abs(N));
|
|
38553
38546
|
D -= Z, N += Z;
|
|
38554
38547
|
}
|
|
38555
38548
|
} else {
|
|
@@ -38566,8 +38559,8 @@ sa(Wn, "getComposedData", function(e) {
|
|
|
38566
38559
|
y: D,
|
|
38567
38560
|
width: i.width,
|
|
38568
38561
|
height: N
|
|
38569
|
-
}, Math.abs(
|
|
38570
|
-
var Q = Kt(j ||
|
|
38562
|
+
}, Math.abs(L) > 0 && Math.abs(j) < Math.abs(L)) {
|
|
38563
|
+
var Q = Kt(j || L) * (Math.abs(L) - Math.abs(j));
|
|
38571
38564
|
j += Q;
|
|
38572
38565
|
}
|
|
38573
38566
|
}
|
|
@@ -38671,8 +38664,8 @@ var l2 = function(t, r, n, a, i) {
|
|
|
38671
38664
|
}), Number.isFinite(D)) {
|
|
38672
38665
|
var N = D / _, R = p.layout === "vertical" ? n.height : n.width;
|
|
38673
38666
|
if (p.padding === "gap" && (C = N * R / 2), p.padding === "no-gap") {
|
|
38674
|
-
var
|
|
38675
|
-
C = V -
|
|
38667
|
+
var L = Qt(t.barCategoryGap, N * R), V = N * R / 2;
|
|
38668
|
+
C = V - L - (V - L) / R * L;
|
|
38676
38669
|
}
|
|
38677
38670
|
}
|
|
38678
38671
|
}
|
|
@@ -40690,10 +40683,10 @@ var Ol = /* @__PURE__ */ (function(e) {
|
|
|
40690
40683
|
var S = v.length / s.length, C = s.map(function(_, D) {
|
|
40691
40684
|
var j = Math.floor(D * S);
|
|
40692
40685
|
if (v[j]) {
|
|
40693
|
-
var N = v[j], R = ft(N.x, _.x),
|
|
40686
|
+
var N = v[j], R = ft(N.x, _.x), L = ft(N.y, _.y);
|
|
40694
40687
|
return ur(ur({}, _), {}, {
|
|
40695
40688
|
x: R(y),
|
|
40696
|
-
y:
|
|
40689
|
+
y: L(y)
|
|
40697
40690
|
});
|
|
40698
40691
|
}
|
|
40699
40692
|
if (g) {
|
|
@@ -42736,17 +42729,17 @@ var Fy = function(t, r, n, a) {
|
|
|
42736
42729
|
Ose(b.domain, w, v) && (_ = Zv(b.domain, null, w), h && (v === "number" || S !== "auto") && (j = cs(k, x, "category")));
|
|
42737
42730
|
var N = K2(v);
|
|
42738
42731
|
if (!_ || _.length === 0) {
|
|
42739
|
-
var R,
|
|
42732
|
+
var R, L = (R = b.domain) !== null && R !== void 0 ? R : N;
|
|
42740
42733
|
if (x) {
|
|
42741
42734
|
if (_ = cs(k, x, v), v === "category" && h) {
|
|
42742
42735
|
var V = RY(_);
|
|
42743
|
-
y && V ? (D = _, _ = wu(0, T)) : y || (_ = LO(
|
|
42736
|
+
y && V ? (D = _, _ = wu(0, T)) : y || (_ = LO(L, _, p).reduce(function(Y, Z) {
|
|
42744
42737
|
return Y.indexOf(Z) >= 0 ? Y : [].concat(wo(Y), [Z]);
|
|
42745
42738
|
}, []));
|
|
42746
42739
|
} else if (v === "category")
|
|
42747
42740
|
y ? _ = _.filter(function(Y) {
|
|
42748
42741
|
return Y !== "" && !we(Y);
|
|
42749
|
-
}) : _ = LO(
|
|
42742
|
+
}) : _ = LO(L, _, p).reduce(function(Y, Z) {
|
|
42750
42743
|
return Y.indexOf(Z) >= 0 || Z === "" || we(Z) ? Y : [].concat(wo(Y), [Z]);
|
|
42751
42744
|
}, []);
|
|
42752
42745
|
else if (v === "number") {
|
|
@@ -42762,9 +42755,9 @@ var Fy = function(t, r, n, a) {
|
|
|
42762
42755
|
return Z === E && (O || !q);
|
|
42763
42756
|
}), v, f, !0);
|
|
42764
42757
|
if (v === "number")
|
|
42765
|
-
_ = jy(u, _, E, i, C),
|
|
42766
|
-
else if (v === "category" &&
|
|
42767
|
-
var M =
|
|
42758
|
+
_ = jy(u, _, E, i, C), L && (_ = Zv(L, _, w));
|
|
42759
|
+
else if (v === "category" && L) {
|
|
42760
|
+
var M = L, z = _.every(function(Y) {
|
|
42768
42761
|
return M.indexOf(Y) >= 0;
|
|
42769
42762
|
});
|
|
42770
42763
|
z && (_ = M);
|
|
@@ -42897,7 +42890,7 @@ var Fy = function(t, r, n, a) {
|
|
|
42897
42890
|
return t[r].height;
|
|
42898
42891
|
}, X0 = function(t) {
|
|
42899
42892
|
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) {
|
|
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,
|
|
42893
|
+
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, L = nle(x), V = [];
|
|
42901
42894
|
return x.forEach(function(H, M) {
|
|
42902
42895
|
var z = Uf(b.data, {
|
|
42903
42896
|
graphicalItems: [H],
|
|
@@ -42911,7 +42904,7 @@ var Fy = function(t, r, n, a) {
|
|
|
42911
42904
|
).concat((tn = H == null || (Br = H.type) === null || Br === void 0 ? void 0 : Br.displayName) !== null && tn !== void 0 ? tn : "")) : sr());
|
|
42912
42905
|
var X = nr[F];
|
|
42913
42906
|
return ee(ee({}, qt), {}, Ae(Ae({}, Ut.axisType, X), "".concat(Ut.axisType, "Ticks"), Mn(X)));
|
|
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 =
|
|
42907
|
+
}, 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 = L && VK({
|
|
42915
42908
|
barSize: E,
|
|
42916
42909
|
stackGroups: w,
|
|
42917
42910
|
totalSize: ile(ae, R)
|
|
@@ -42959,7 +42952,7 @@ var Fy = function(t, r, n, a) {
|
|
|
42959
42952
|
props: x
|
|
42960
42953
|
}))
|
|
42961
42954
|
return null;
|
|
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),
|
|
42955
|
+
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), L = l.reduce(function(Y, Z) {
|
|
42963
42956
|
var q = "".concat(Z.axisType, "Map");
|
|
42964
42957
|
return ee(ee({}, Y), {}, Ae({}, q, tle(x, ee(ee({}, Z), {}, {
|
|
42965
42958
|
graphicalItems: N,
|
|
@@ -42967,14 +42960,14 @@ var Fy = function(t, r, n, a) {
|
|
|
42967
42960
|
dataStartIndex: w,
|
|
42968
42961
|
dataEndIndex: y
|
|
42969
42962
|
}))));
|
|
42970
|
-
}, {}), V = ale(ee(ee({},
|
|
42963
|
+
}, {}), V = ale(ee(ee({}, L), {}, {
|
|
42971
42964
|
props: x,
|
|
42972
42965
|
graphicalItems: N
|
|
42973
42966
|
}), v?.legendBBox);
|
|
42974
|
-
Object.keys(
|
|
42975
|
-
|
|
42967
|
+
Object.keys(L).forEach(function(Y) {
|
|
42968
|
+
L[Y] = f(x, L[Y], V, Y.replace("Map", ""), r);
|
|
42976
42969
|
});
|
|
42977
|
-
var H =
|
|
42970
|
+
var H = L["".concat(j, "Map")], M = rle(H), z = d(x, ee(ee({}, L), {}, {
|
|
42978
42971
|
dataStartIndex: w,
|
|
42979
42972
|
dataEndIndex: y,
|
|
42980
42973
|
updateId: S,
|
|
@@ -42987,7 +42980,7 @@ var Fy = function(t, r, n, a) {
|
|
|
42987
42980
|
graphicalItems: N,
|
|
42988
42981
|
offset: V,
|
|
42989
42982
|
stackGroups: R
|
|
42990
|
-
}, M),
|
|
42983
|
+
}, M), L);
|
|
42991
42984
|
}, g = /* @__PURE__ */ (function(m) {
|
|
42992
42985
|
function b(v) {
|
|
42993
42986
|
var x, w, y;
|
|
@@ -43138,8 +43131,8 @@ var Fy = function(t, r, n, a) {
|
|
|
43138
43131
|
updateId: k
|
|
43139
43132
|
}, y.state)));
|
|
43140
43133
|
else if (S.activeTooltipIndex !== void 0) {
|
|
43141
|
-
var D = S.chartX, j = S.chartY, N = S.activeTooltipIndex, R = y.state,
|
|
43142
|
-
if (!
|
|
43134
|
+
var D = S.chartX, j = S.chartY, N = S.activeTooltipIndex, R = y.state, L = R.offset, V = R.tooltipTicks;
|
|
43135
|
+
if (!L)
|
|
43143
43136
|
return;
|
|
43144
43137
|
if (typeof E == "function")
|
|
43145
43138
|
N = E(V, S);
|
|
@@ -43151,9 +43144,9 @@ var Fy = function(t, r, n, a) {
|
|
|
43151
43144
|
break;
|
|
43152
43145
|
}
|
|
43153
43146
|
}
|
|
43154
|
-
var M = ee(ee({},
|
|
43155
|
-
x:
|
|
43156
|
-
y:
|
|
43147
|
+
var M = ee(ee({}, L), {}, {
|
|
43148
|
+
x: L.left,
|
|
43149
|
+
y: L.top
|
|
43157
43150
|
}), 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] ? {
|
|
43158
43151
|
x: O === "horizontal" ? V[N].coordinate : z,
|
|
43159
43152
|
y: O === "horizontal" ? Y : V[N].coordinate
|
|
@@ -43167,7 +43160,7 @@ var Fy = function(t, r, n, a) {
|
|
|
43167
43160
|
} else
|
|
43168
43161
|
y.setState(S);
|
|
43169
43162
|
}), Ae(y, "renderCursor", function(S) {
|
|
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,
|
|
43163
|
+
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, L = y.props.layout, V = S.key || "_recharts-cursor";
|
|
43171
43164
|
return /* @__PURE__ */ P.createElement(kse, {
|
|
43172
43165
|
key: V,
|
|
43173
43166
|
activeCoordinate: k,
|
|
@@ -43176,7 +43169,7 @@ var Fy = function(t, r, n, a) {
|
|
|
43176
43169
|
chartName: r,
|
|
43177
43170
|
element: S,
|
|
43178
43171
|
isActive: R,
|
|
43179
|
-
layout:
|
|
43172
|
+
layout: L,
|
|
43180
43173
|
offset: _,
|
|
43181
43174
|
tooltipAxisBandSize: j,
|
|
43182
43175
|
tooltipEventType: N
|
|
@@ -43189,7 +43182,7 @@ var Fy = function(t, r, n, a) {
|
|
|
43189
43182
|
ticks: Mn(D, !0)
|
|
43190
43183
|
}));
|
|
43191
43184
|
}), Ae(y, "renderPolarGrid", function(S) {
|
|
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,
|
|
43185
|
+
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, L = N.cy, V = N.innerRadius, H = N.outerRadius;
|
|
43193
43186
|
return /* @__PURE__ */ _t(S, {
|
|
43194
43187
|
polarAngles: Array.isArray(E) ? E : Mn(N, !0).map(function(M) {
|
|
43195
43188
|
return M.coordinate;
|
|
@@ -43198,7 +43191,7 @@ var Fy = function(t, r, n, a) {
|
|
|
43198
43191
|
return M.coordinate;
|
|
43199
43192
|
}),
|
|
43200
43193
|
cx: R,
|
|
43201
|
-
cy:
|
|
43194
|
+
cy: L,
|
|
43202
43195
|
innerRadius: V,
|
|
43203
43196
|
outerRadius: H,
|
|
43204
43197
|
key: S.key || "polar-grid",
|
|
@@ -43224,15 +43217,15 @@ var Fy = function(t, r, n, a) {
|
|
|
43224
43217
|
var S, C = y.props, O = C.children, E = C.accessibilityLayer, k = hr(O, gr);
|
|
43225
43218
|
if (!k)
|
|
43226
43219
|
return null;
|
|
43227
|
-
var T = y.state, _ = T.isTooltipActive, D = T.activeCoordinate, j = T.activePayload, N = T.activeLabel, R = T.offset,
|
|
43220
|
+
var T = y.state, _ = T.isTooltipActive, D = T.activeCoordinate, j = T.activePayload, N = T.activeLabel, R = T.offset, L = (S = k.props.active) !== null && S !== void 0 ? S : _;
|
|
43228
43221
|
return /* @__PURE__ */ _t(k, {
|
|
43229
43222
|
viewBox: ee(ee({}, R), {}, {
|
|
43230
43223
|
x: R.left,
|
|
43231
43224
|
y: R.top
|
|
43232
43225
|
}),
|
|
43233
|
-
active:
|
|
43226
|
+
active: L,
|
|
43234
43227
|
label: N,
|
|
43235
|
-
payload:
|
|
43228
|
+
payload: L ? j : [],
|
|
43236
43229
|
coordinate: D,
|
|
43237
43230
|
accessibilityLayer: E
|
|
43238
43231
|
});
|
|
@@ -43252,7 +43245,7 @@ var Fy = function(t, r, n, a) {
|
|
|
43252
43245
|
}), Ae(y, "renderReferenceElement", function(S, C, O) {
|
|
43253
43246
|
if (!S)
|
|
43254
43247
|
return null;
|
|
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,
|
|
43248
|
+
var E = y, k = E.clipPathId, T = y.state, _ = T.xAxisMap, D = T.yAxisMap, j = T.offset, N = S.type.defaultProps || {}, R = S.props, L = R.xAxisId, V = L === void 0 ? N.xAxisId : L, H = R.yAxisId, M = H === void 0 ? N.yAxisId : H;
|
|
43256
43249
|
return /* @__PURE__ */ _t(S, {
|
|
43257
43250
|
key: S.key || "".concat(C, "-").concat(O),
|
|
43258
43251
|
xAxis: _[V],
|
|
@@ -43266,7 +43259,7 @@ var Fy = function(t, r, n, a) {
|
|
|
43266
43259
|
clipPathId: k
|
|
43267
43260
|
});
|
|
43268
43261
|
}), Ae(y, "renderActivePoints", function(S) {
|
|
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,
|
|
43262
|
+
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, L = ee(ee({
|
|
43270
43263
|
index: k,
|
|
43271
43264
|
dataKey: R,
|
|
43272
43265
|
cx: O.x,
|
|
@@ -43278,7 +43271,7 @@ var Fy = function(t, r, n, a) {
|
|
|
43278
43271
|
payload: O.payload,
|
|
43279
43272
|
value: O.value
|
|
43280
43273
|
}, ve(N, !1)), Rc(N));
|
|
43281
|
-
return _.push(b.renderActiveDot(N,
|
|
43274
|
+
return _.push(b.renderActiveDot(N, L, "".concat(D, "-activePoint-").concat(k))), E ? _.push(b.renderActiveDot(N, ee(ee({}, L), {}, {
|
|
43282
43275
|
cx: E.x,
|
|
43283
43276
|
cy: E.y
|
|
43284
43277
|
}), "".concat(D, "-basePoint-").concat(k))) : T && _.push(null), _;
|
|
@@ -43286,8 +43279,8 @@ var Fy = function(t, r, n, a) {
|
|
|
43286
43279
|
var E = y.filterFormatItem(S, C, O);
|
|
43287
43280
|
if (!E)
|
|
43288
43281
|
return null;
|
|
43289
|
-
var k = y.getTooltipEventType(), T = y.state, _ = T.isTooltipActive, D = T.tooltipAxis, j = T.activeTooltipIndex, N = T.activeLabel, R = y.props.children,
|
|
43290
|
-
k !== "axis" &&
|
|
43282
|
+
var k = y.getTooltipEventType(), T = y.state, _ = T.isTooltipActive, D = T.tooltipAxis, j = T.activeTooltipIndex, N = T.activeLabel, R = y.props.children, L = 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 && _ && L && (Z || K || ne)), ae = {};
|
|
43283
|
+
k !== "axis" && L && L.props.trigger === "click" ? ae = {
|
|
43291
43284
|
onClick: Zl(y.handleItemMouseEnter, S.props.onClick)
|
|
43292
43285
|
} : k !== "axis" && (ae = {
|
|
43293
43286
|
onMouseLeave: Zl(y.handleItemMouseLeave, S.props.onMouseLeave),
|
|
@@ -43432,14 +43425,14 @@ var Fy = function(t, r, n, a) {
|
|
|
43432
43425
|
return H.type.name === "Scatter";
|
|
43433
43426
|
});
|
|
43434
43427
|
R && (N = ee(ee({}, N), R.props.points[E].tooltipPosition), T = R.props.points[E].tooltipPayload);
|
|
43435
|
-
var
|
|
43428
|
+
var L = {
|
|
43436
43429
|
activeTooltipIndex: E,
|
|
43437
43430
|
isTooltipActive: !0,
|
|
43438
43431
|
activeLabel: k,
|
|
43439
43432
|
activePayload: T,
|
|
43440
43433
|
activeCoordinate: N
|
|
43441
43434
|
};
|
|
43442
|
-
this.setState(
|
|
43435
|
+
this.setState(L), this.renderCursor(O), this.accessibilityManager.setIndex(E);
|
|
43443
43436
|
}
|
|
43444
43437
|
}
|
|
43445
43438
|
}
|
|
@@ -43501,9 +43494,9 @@ var Fy = function(t, r, n, a) {
|
|
|
43501
43494
|
return null;
|
|
43502
43495
|
var k = this.state, T = k.xAxisMap, _ = k.yAxisMap, D = this.getTooltipEventType(), j = XP(this.state, this.props.data, this.props.layout, E);
|
|
43503
43496
|
if (D !== "axis" && T && _) {
|
|
43504
|
-
var N = aa(T).scale, R = aa(_).scale,
|
|
43497
|
+
var N = aa(T).scale, R = aa(_).scale, L = N && N.invert ? N.invert(C.chartX) : null, V = R && R.invert ? R.invert(C.chartY) : null;
|
|
43505
43498
|
return ee(ee({}, C), {}, {
|
|
43506
|
-
xValue:
|
|
43499
|
+
xValue: L,
|
|
43507
43500
|
yValue: V
|
|
43508
43501
|
}, j);
|
|
43509
43502
|
}
|
|
@@ -43642,10 +43635,10 @@ var Fy = function(t, r, n, a) {
|
|
|
43642
43635
|
graphicalItem: E,
|
|
43643
43636
|
activeTooltipItem: S,
|
|
43644
43637
|
itemData: _.data
|
|
43645
|
-
}),
|
|
43638
|
+
}), L = _.activeIndex === void 0 ? R : _.activeIndex;
|
|
43646
43639
|
return {
|
|
43647
43640
|
graphicalItem: ee(ee({}, E), {}, {
|
|
43648
|
-
childIndex:
|
|
43641
|
+
childIndex: L
|
|
43649
43642
|
}),
|
|
43650
43643
|
payload: Zs(E, S) ? _.data[R] : E.props.data[R]
|
|
43651
43644
|
};
|
|
@@ -43680,7 +43673,7 @@ var Fy = function(t, r, n, a) {
|
|
|
43680
43673
|
x.accessibilityManager.focus();
|
|
43681
43674
|
};
|
|
43682
43675
|
}
|
|
43683
|
-
var
|
|
43676
|
+
var L = this.parseEventsOfWrapper();
|
|
43684
43677
|
return /* @__PURE__ */ P.createElement(xP, {
|
|
43685
43678
|
state: this.state,
|
|
43686
43679
|
width: this.props.width,
|
|
@@ -43694,7 +43687,7 @@ var Fy = function(t, r, n, a) {
|
|
|
43694
43687
|
width: C,
|
|
43695
43688
|
height: O
|
|
43696
43689
|
}, E)
|
|
43697
|
-
},
|
|
43690
|
+
}, L, {
|
|
43698
43691
|
ref: function(H) {
|
|
43699
43692
|
x.container = H;
|
|
43700
43693
|
}
|
|
@@ -43768,7 +43761,7 @@ var Fy = function(t, r, n, a) {
|
|
|
43768
43761
|
});
|
|
43769
43762
|
}
|
|
43770
43763
|
if (!yv(w, b.prevChildren)) {
|
|
43771
|
-
var
|
|
43764
|
+
var L, V, H, M, z = hr(w, oo), Y = z && (L = (V = z.props) === null || V === void 0 ? void 0 : V.startIndex) !== null && L !== void 0 ? L : 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;
|
|
43772
43765
|
return ee(ee({
|
|
43773
43766
|
updateId: ne
|
|
43774
43767
|
}, h(ee(ee({
|
|
@@ -43852,7 +43845,7 @@ const Q2 = ({ content: e, locale: t }) => {
|
|
|
43852
43845
|
if (P.isValidElement(e))
|
|
43853
43846
|
return /* @__PURE__ */ A("div", { className: "pointer-events-none absolute inset-0 flex items-center justify-center", children: e });
|
|
43854
43847
|
const r = e, n = typeof r.value == "number" ? r.value.toLocaleString(t) : r.value;
|
|
43855
|
-
return /* @__PURE__ */
|
|
43848
|
+
return /* @__PURE__ */ G("div", { className: "pointer-events-none absolute inset-0 flex flex-col items-center justify-center", children: [
|
|
43856
43849
|
/* @__PURE__ */ A("span", { className: "text-2xl font-bold text-[#111827]", children: n }),
|
|
43857
43850
|
r.label && /* @__PURE__ */ A("span", { className: "text-xs text-[#6B7280]", children: r.label })
|
|
43858
43851
|
] });
|
|
@@ -43869,7 +43862,7 @@ const eD = ({ segments: e, position: t }) => {
|
|
|
43869
43862
|
className: t === "right" ? "flex flex-col gap-2" : "flex flex-wrap items-center justify-center gap-x-4 gap-y-2",
|
|
43870
43863
|
children: e.map((a) => {
|
|
43871
43864
|
const i = r > 0 ? (a.value / r * 100).toFixed(1) : "0.0";
|
|
43872
|
-
return /* @__PURE__ */
|
|
43865
|
+
return /* @__PURE__ */ G("div", { className: "flex items-center gap-1.5", children: [
|
|
43873
43866
|
/* @__PURE__ */ A(
|
|
43874
43867
|
"div",
|
|
43875
43868
|
{
|
|
@@ -43878,7 +43871,7 @@ const eD = ({ segments: e, position: t }) => {
|
|
|
43878
43871
|
}
|
|
43879
43872
|
),
|
|
43880
43873
|
/* @__PURE__ */ A("span", { className: "text-xs text-[#6B7280]", children: a.name }),
|
|
43881
|
-
/* @__PURE__ */
|
|
43874
|
+
/* @__PURE__ */ G("span", { className: "text-xs font-medium text-[#111827]", children: [
|
|
43882
43875
|
i,
|
|
43883
43876
|
"%"
|
|
43884
43877
|
] })
|
|
@@ -43888,7 +43881,7 @@ const eD = ({ segments: e, position: t }) => {
|
|
|
43888
43881
|
);
|
|
43889
43882
|
};
|
|
43890
43883
|
eD.displayName = "GatherDonutChartLegend";
|
|
43891
|
-
const tD = ({ height: e = 260, className: t }) => /* @__PURE__ */
|
|
43884
|
+
const tD = ({ height: e = 260, className: t }) => /* @__PURE__ */ G("div", { className: B("flex flex-col items-center", t), children: [
|
|
43892
43885
|
/* @__PURE__ */ A(
|
|
43893
43886
|
"div",
|
|
43894
43887
|
{
|
|
@@ -43897,7 +43890,7 @@ const tD = ({ height: e = 260, className: t }) => /* @__PURE__ */ L("div", { cla
|
|
|
43897
43890
|
"data-testid": "gather-donut-chart-skeleton"
|
|
43898
43891
|
}
|
|
43899
43892
|
),
|
|
43900
|
-
/* @__PURE__ */ A("div", { className: "mt-4 flex gap-4", children: [1, 2, 3].map((r) => /* @__PURE__ */
|
|
43893
|
+
/* @__PURE__ */ A("div", { className: "mt-4 flex gap-4", children: [1, 2, 3].map((r) => /* @__PURE__ */ G("div", { className: "flex items-center gap-1.5", children: [
|
|
43901
43894
|
/* @__PURE__ */ A("div", { className: "h-2.5 w-2.5 animate-pulse rounded-full bg-gray-200" }),
|
|
43902
43895
|
/* @__PURE__ */ A("div", { className: "h-3 w-14 animate-pulse rounded bg-gray-200" })
|
|
43903
43896
|
] }, r)) })
|
|
@@ -43906,8 +43899,8 @@ tD.displayName = "GatherDonutChartSkeleton";
|
|
|
43906
43899
|
const lle = 60, cle = 90, ule = 2, fle = 260, dle = "es-EC", hle = ({ active: e, payload: t, locale: r }) => {
|
|
43907
43900
|
if (!e || !t?.length) return null;
|
|
43908
43901
|
const n = t[0], a = n.payload.parent;
|
|
43909
|
-
return /* @__PURE__ */
|
|
43910
|
-
/* @__PURE__ */
|
|
43902
|
+
return /* @__PURE__ */ G("div", { className: "rounded-md border border-[#E5E7EB] bg-white px-3 py-2 text-xs shadow-md", children: [
|
|
43903
|
+
/* @__PURE__ */ G("div", { className: "flex items-center gap-1.5", children: [
|
|
43911
43904
|
/* @__PURE__ */ A(
|
|
43912
43905
|
"div",
|
|
43913
43906
|
{
|
|
@@ -43951,7 +43944,7 @@ const lle = 60, cle = 90, ule = 2, fle = 260, dle = "es-EC", hle = ({ active: e,
|
|
|
43951
43944
|
if (a)
|
|
43952
43945
|
return /* @__PURE__ */ A(tD, { height: n, className: o });
|
|
43953
43946
|
const c = r === "right", f = r !== "none";
|
|
43954
|
-
return /* @__PURE__ */
|
|
43947
|
+
return /* @__PURE__ */ G(
|
|
43955
43948
|
"div",
|
|
43956
43949
|
{
|
|
43957
43950
|
className: B(
|
|
@@ -43960,8 +43953,8 @@ const lle = 60, cle = 90, ule = 2, fle = 260, dle = "es-EC", hle = ({ active: e,
|
|
|
43960
43953
|
),
|
|
43961
43954
|
"data-testid": s ?? "gather-donut-chart",
|
|
43962
43955
|
children: [
|
|
43963
|
-
/* @__PURE__ */
|
|
43964
|
-
/* @__PURE__ */ A(zc, { width: "100%", height: n, children: /* @__PURE__ */
|
|
43956
|
+
/* @__PURE__ */ G("div", { className: B("relative", c ? "min-w-0 flex-1" : "w-full"), children: [
|
|
43957
|
+
/* @__PURE__ */ A(zc, { width: "100%", height: n, children: /* @__PURE__ */ G(ole, { children: [
|
|
43965
43958
|
e.map((u, d) => ple(u, d)),
|
|
43966
43959
|
/* @__PURE__ */ A(
|
|
43967
43960
|
gr,
|
|
@@ -43987,10 +43980,10 @@ mle.displayName = "GatherDonutChart";
|
|
|
43987
43980
|
const Ly = ({ active: e, payload: t, label: r, locale: n }) => {
|
|
43988
43981
|
if (!e || !t?.length) return null;
|
|
43989
43982
|
const a = t.reduce((i, o) => i + (o.value ?? 0), 0);
|
|
43990
|
-
return /* @__PURE__ */
|
|
43983
|
+
return /* @__PURE__ */ G("div", { className: "rounded-md border border-[#E5E7EB] bg-white px-3 py-2 text-xs shadow-md", children: [
|
|
43991
43984
|
/* @__PURE__ */ A("div", { className: "mb-1 font-medium text-[#111827]", children: r }),
|
|
43992
|
-
t.map((i) => /* @__PURE__ */
|
|
43993
|
-
/* @__PURE__ */
|
|
43985
|
+
t.map((i) => /* @__PURE__ */ G("div", { className: "flex items-center justify-between gap-3", children: [
|
|
43986
|
+
/* @__PURE__ */ G("div", { className: "flex items-center gap-1.5", children: [
|
|
43994
43987
|
/* @__PURE__ */ A(
|
|
43995
43988
|
"div",
|
|
43996
43989
|
{
|
|
@@ -44002,14 +43995,14 @@ const Ly = ({ active: e, payload: t, label: r, locale: n }) => {
|
|
|
44002
43995
|
] }),
|
|
44003
43996
|
/* @__PURE__ */ A("span", { className: "font-medium text-[#111827]", children: i.value.toLocaleString(n) })
|
|
44004
43997
|
] }, i.dataKey)),
|
|
44005
|
-
/* @__PURE__ */
|
|
43998
|
+
/* @__PURE__ */ G("div", { className: "mt-1 border-t border-[#E5E7EB] pt-1 text-right font-medium text-[#111827]", children: [
|
|
44006
43999
|
"Total: ",
|
|
44007
44000
|
a.toLocaleString(n)
|
|
44008
44001
|
] })
|
|
44009
44002
|
] });
|
|
44010
44003
|
};
|
|
44011
44004
|
Ly.displayName = "StackedBarChartTooltip";
|
|
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__ */
|
|
44005
|
+
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__ */ G("div", { className: "flex items-center gap-1.5", children: [
|
|
44013
44006
|
/* @__PURE__ */ A(
|
|
44014
44007
|
"div",
|
|
44015
44008
|
{
|
|
@@ -44023,14 +44016,14 @@ Gy.displayName = "StackedBarChartLegend";
|
|
|
44023
44016
|
const rD = ({ height: e = 300, orientation: t = "vertical", className: r }) => {
|
|
44024
44017
|
if (t === "horizontal") {
|
|
44025
44018
|
const i = [0.85, 0.7, 0.55, 0.4, 0.25, 0.15];
|
|
44026
|
-
return /* @__PURE__ */
|
|
44019
|
+
return /* @__PURE__ */ G("div", { className: B("flex flex-col", r), children: [
|
|
44027
44020
|
/* @__PURE__ */ A(
|
|
44028
44021
|
"div",
|
|
44029
44022
|
{
|
|
44030
44023
|
className: "flex flex-col justify-center gap-3 px-4",
|
|
44031
44024
|
style: { height: e },
|
|
44032
44025
|
"data-testid": "gather-stacked-bar-chart-skeleton-horizontal",
|
|
44033
|
-
children: i.map((o, s) => /* @__PURE__ */
|
|
44026
|
+
children: i.map((o, s) => /* @__PURE__ */ G("div", { className: "flex items-center gap-3", children: [
|
|
44034
44027
|
/* @__PURE__ */ A("div", { className: "h-3 w-24 animate-pulse rounded bg-gray-200" }),
|
|
44035
44028
|
/* @__PURE__ */ A(
|
|
44036
44029
|
"div",
|
|
@@ -44042,14 +44035,14 @@ const rD = ({ height: e = 300, orientation: t = "vertical", className: r }) => {
|
|
|
44042
44035
|
] }, s))
|
|
44043
44036
|
}
|
|
44044
44037
|
),
|
|
44045
|
-
/* @__PURE__ */ A("div", { className: "mt-3 flex justify-center gap-4", children: [1, 2].map((o) => /* @__PURE__ */
|
|
44038
|
+
/* @__PURE__ */ A("div", { className: "mt-3 flex justify-center gap-4", children: [1, 2].map((o) => /* @__PURE__ */ G("div", { className: "flex items-center gap-1.5", children: [
|
|
44046
44039
|
/* @__PURE__ */ A("div", { className: "h-2.5 w-2.5 animate-pulse rounded-full bg-gray-200" }),
|
|
44047
44040
|
/* @__PURE__ */ A("div", { className: "h-3 w-14 animate-pulse rounded bg-gray-200" })
|
|
44048
44041
|
] }, o)) })
|
|
44049
44042
|
] });
|
|
44050
44043
|
}
|
|
44051
44044
|
const a = [0.7, 0.9, 0.5, 0.8, 0.6, 0.4, 0.75];
|
|
44052
|
-
return /* @__PURE__ */
|
|
44045
|
+
return /* @__PURE__ */ G("div", { className: B("flex flex-col", r), children: [
|
|
44053
44046
|
/* @__PURE__ */ A(
|
|
44054
44047
|
"div",
|
|
44055
44048
|
{
|
|
@@ -44066,7 +44059,7 @@ const rD = ({ height: e = 300, orientation: t = "vertical", className: r }) => {
|
|
|
44066
44059
|
))
|
|
44067
44060
|
}
|
|
44068
44061
|
),
|
|
44069
|
-
/* @__PURE__ */ A("div", { className: "mt-3 flex justify-center gap-4", children: [1, 2, 3].map((i) => /* @__PURE__ */
|
|
44062
|
+
/* @__PURE__ */ A("div", { className: "mt-3 flex justify-center gap-4", children: [1, 2, 3].map((i) => /* @__PURE__ */ G("div", { className: "flex items-center gap-1.5", children: [
|
|
44070
44063
|
/* @__PURE__ */ A("div", { className: "h-2.5 w-2.5 animate-pulse rounded-full bg-gray-200" }),
|
|
44071
44064
|
/* @__PURE__ */ A("div", { className: "h-3 w-14 animate-pulse rounded bg-gray-200" })
|
|
44072
44065
|
] }, i)) })
|
|
@@ -44111,13 +44104,13 @@ const gle = 300, vle = "es-EC", yle = 160, ZP = "stack", ble = (e, t) => {
|
|
|
44111
44104
|
}
|
|
44112
44105
|
);
|
|
44113
44106
|
const g = t[t.length - 1]?.dataKey;
|
|
44114
|
-
return u ? /* @__PURE__ */
|
|
44107
|
+
return u ? /* @__PURE__ */ G(
|
|
44115
44108
|
"div",
|
|
44116
44109
|
{
|
|
44117
44110
|
className: B("flex flex-col", c),
|
|
44118
44111
|
"data-testid": f ?? "gather-stacked-bar-chart-horizontal",
|
|
44119
44112
|
children: [
|
|
44120
|
-
/* @__PURE__ */ A(zc, { width: "100%", height: n, children: /* @__PURE__ */
|
|
44113
|
+
/* @__PURE__ */ A(zc, { width: "100%", height: n, children: /* @__PURE__ */ G(UP, { data: e, layout: "vertical", children: [
|
|
44121
44114
|
a && /* @__PURE__ */ A(
|
|
44122
44115
|
Nu,
|
|
44123
44116
|
{
|
|
@@ -44194,13 +44187,13 @@ const gle = 300, vle = "es-EC", yle = 160, ZP = "stack", ble = (e, t) => {
|
|
|
44194
44187
|
/* @__PURE__ */ A(Gy, { segments: t })
|
|
44195
44188
|
]
|
|
44196
44189
|
}
|
|
44197
|
-
) : /* @__PURE__ */
|
|
44190
|
+
) : /* @__PURE__ */ G(
|
|
44198
44191
|
"div",
|
|
44199
44192
|
{
|
|
44200
44193
|
className: B("flex flex-col", c),
|
|
44201
44194
|
"data-testid": f ?? "gather-stacked-bar-chart",
|
|
44202
44195
|
children: [
|
|
44203
|
-
/* @__PURE__ */ A(zc, { width: "100%", height: n, children: /* @__PURE__ */
|
|
44196
|
+
/* @__PURE__ */ A(zc, { width: "100%", height: n, children: /* @__PURE__ */ G(UP, { data: e, children: [
|
|
44204
44197
|
a && /* @__PURE__ */ A(
|
|
44205
44198
|
Nu,
|
|
44206
44199
|
{
|
|
@@ -44279,7 +44272,7 @@ const nce = ({
|
|
|
44279
44272
|
className: c,
|
|
44280
44273
|
"data-testid": f,
|
|
44281
44274
|
style: { width: "100%", height: r },
|
|
44282
|
-
children: /* @__PURE__ */ A(zc, { width: "100%", height: "100%", children: /* @__PURE__ */
|
|
44275
|
+
children: /* @__PURE__ */ A(zc, { width: "100%", height: "100%", children: /* @__PURE__ */ G(sle, { data: e, children: [
|
|
44283
44276
|
a && /* @__PURE__ */ A(
|
|
44284
44277
|
Nu,
|
|
44285
44278
|
{
|
|
@@ -44449,8 +44442,8 @@ const nce = ({
|
|
|
44449
44442
|
style: { height: 140 },
|
|
44450
44443
|
"data-testid": u ? `${u}-skeleton` : void 0
|
|
44451
44444
|
}
|
|
44452
|
-
) : /* @__PURE__ */
|
|
44453
|
-
/* @__PURE__ */
|
|
44445
|
+
) : /* @__PURE__ */ G("div", { className: f, "data-testid": u, children: [
|
|
44446
|
+
/* @__PURE__ */ G("div", { className: "flex gap-2", children: [
|
|
44454
44447
|
/* @__PURE__ */ A("div", { className: "flex flex-col gap-[2px] pt-5", children: Sle.map((v, x) => /* @__PURE__ */ A(
|
|
44455
44448
|
"div",
|
|
44456
44449
|
{
|
|
@@ -44460,7 +44453,7 @@ const nce = ({
|
|
|
44460
44453
|
},
|
|
44461
44454
|
v
|
|
44462
44455
|
)) }),
|
|
44463
|
-
/* @__PURE__ */ A("div", { className: "flex-1 overflow-x-auto pb-2", children: /* @__PURE__ */
|
|
44456
|
+
/* @__PURE__ */ A("div", { className: "flex-1 overflow-x-auto pb-2", children: /* @__PURE__ */ G(
|
|
44464
44457
|
"div",
|
|
44465
44458
|
{
|
|
44466
44459
|
className: c === "center" ? "mx-auto" : "",
|
|
@@ -44517,7 +44510,7 @@ const nce = ({
|
|
|
44517
44510
|
}
|
|
44518
44511
|
) })
|
|
44519
44512
|
] }),
|
|
44520
|
-
/* @__PURE__ */
|
|
44513
|
+
/* @__PURE__ */ G(
|
|
44521
44514
|
"div",
|
|
44522
44515
|
{
|
|
44523
44516
|
className: `mt-3 flex items-center gap-1 text-[10px] text-ui-text-muted ${s === "left" ? "justify-start" : s === "right" ? "justify-end" : "justify-center"}`,
|
|
@@ -44641,7 +44634,7 @@ const Tle = ({
|
|
|
44641
44634
|
), N = st(
|
|
44642
44635
|
() => g ?? Ile[i],
|
|
44643
44636
|
[g, i]
|
|
44644
|
-
), R = st(() => o === null ? null : o !== void 0 ? o : _le(i), [o, i]),
|
|
44637
|
+
), R = st(() => o === null ? null : o !== void 0 ? o : _le(i), [o, i]), L = Ne(() => {
|
|
44645
44638
|
v || (h ? h() : t(!1));
|
|
44646
44639
|
}, [v, h, t]), V = Ne(() => {
|
|
44647
44640
|
v || p || d();
|
|
@@ -44669,7 +44662,7 @@ const Tle = ({
|
|
|
44669
44662
|
clearTimeout(Y), D.current instanceof HTMLElement && D.current.focus();
|
|
44670
44663
|
};
|
|
44671
44664
|
}, [e]), !e) return null;
|
|
44672
|
-
const M = T * 10, z = /* @__PURE__ */
|
|
44665
|
+
const M = T * 10, z = /* @__PURE__ */ G("div", { className: "gather-confirm-dialog-root", children: [
|
|
44673
44666
|
/* @__PURE__ */ A(
|
|
44674
44667
|
"div",
|
|
44675
44668
|
{
|
|
@@ -44703,7 +44696,7 @@ const Tle = ({
|
|
|
44703
44696
|
),
|
|
44704
44697
|
style: C,
|
|
44705
44698
|
onClick: (Y) => Y.stopPropagation(),
|
|
44706
|
-
children: /* @__PURE__ */
|
|
44699
|
+
children: /* @__PURE__ */ G(
|
|
44707
44700
|
"div",
|
|
44708
44701
|
{
|
|
44709
44702
|
className: B(
|
|
@@ -44740,12 +44733,12 @@ const Tle = ({
|
|
|
44740
44733
|
}
|
|
44741
44734
|
),
|
|
44742
44735
|
a && /* @__PURE__ */ A("div", { className: "mt-3 w-full", children: a }),
|
|
44743
|
-
(!m || !b) && /* @__PURE__ */
|
|
44736
|
+
(!m || !b) && /* @__PURE__ */ G("div", { className: B("mt-6 flex w-full gap-3", k), children: [
|
|
44744
44737
|
!m && /* @__PURE__ */ A(
|
|
44745
44738
|
da,
|
|
44746
44739
|
{
|
|
44747
44740
|
variant: "gather-outline",
|
|
44748
|
-
onClick:
|
|
44741
|
+
onClick: L,
|
|
44749
44742
|
disabled: v,
|
|
44750
44743
|
className: "h-11 min-w-0 flex-1",
|
|
44751
44744
|
children: u
|
|
@@ -44856,14 +44849,14 @@ const Nle = {
|
|
|
44856
44849
|
}
|
|
44857
44850
|
};
|
|
44858
44851
|
function Mle() {
|
|
44859
|
-
return /* @__PURE__ */
|
|
44852
|
+
return /* @__PURE__ */ G("div", { className: "space-y-6 p-6 pb-16", children: [
|
|
44860
44853
|
/* @__PURE__ */ A(pt, { className: "h-3.5 w-44" }),
|
|
44861
44854
|
/* @__PURE__ */ A(pt, { className: "h-8 w-52" }),
|
|
44862
|
-
/* @__PURE__ */
|
|
44855
|
+
/* @__PURE__ */ G("div", { className: "flex gap-0 border-b border-secondary-200", children: [
|
|
44863
44856
|
/* @__PURE__ */ A(pt, { className: "h-10 w-28 rounded-none rounded-t" }),
|
|
44864
44857
|
/* @__PURE__ */ A(pt, { className: "ml-1 h-10 w-28 rounded-none rounded-t" })
|
|
44865
44858
|
] }),
|
|
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__ */
|
|
44859
|
+
/* @__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__ */ G(
|
|
44867
44860
|
"div",
|
|
44868
44861
|
{
|
|
44869
44862
|
className: "rounded-lg border border-secondary-200 bg-white p-4 space-y-3",
|
|
@@ -44875,28 +44868,28 @@ function Mle() {
|
|
|
44875
44868
|
},
|
|
44876
44869
|
t
|
|
44877
44870
|
)) }),
|
|
44878
|
-
/* @__PURE__ */
|
|
44879
|
-
/* @__PURE__ */
|
|
44871
|
+
/* @__PURE__ */ G("div", { className: "rounded-lg border border-secondary-200 bg-white p-4 space-y-4", children: [
|
|
44872
|
+
/* @__PURE__ */ G("div", { className: "flex items-center justify-between", children: [
|
|
44880
44873
|
/* @__PURE__ */ A(pt, { className: "h-5 w-32" }),
|
|
44881
|
-
/* @__PURE__ */
|
|
44874
|
+
/* @__PURE__ */ G("div", { className: "flex gap-2", children: [
|
|
44882
44875
|
/* @__PURE__ */ A(pt, { className: "h-8 w-24 rounded-md" }),
|
|
44883
44876
|
/* @__PURE__ */ A(pt, { className: "h-8 w-24 rounded-md" })
|
|
44884
44877
|
] })
|
|
44885
44878
|
] }),
|
|
44886
|
-
/* @__PURE__ */
|
|
44879
|
+
/* @__PURE__ */ G("div", { className: "flex gap-4 border-b border-secondary-100 pb-2", children: [
|
|
44887
44880
|
/* @__PURE__ */ A(pt, { className: "h-3.5 flex-[2]" }),
|
|
44888
44881
|
/* @__PURE__ */ A(pt, { className: "h-3.5 flex-1" }),
|
|
44889
44882
|
/* @__PURE__ */ A(pt, { className: "h-3.5 flex-1" }),
|
|
44890
44883
|
/* @__PURE__ */ A(pt, { className: "h-3.5 w-16 shrink-0" })
|
|
44891
44884
|
] }),
|
|
44892
|
-
Array.from({ length: 7 }).map((e, t) => /* @__PURE__ */
|
|
44885
|
+
Array.from({ length: 7 }).map((e, t) => /* @__PURE__ */ G(
|
|
44893
44886
|
"div",
|
|
44894
44887
|
{
|
|
44895
44888
|
className: "flex items-center gap-4 border-b border-secondary-50 py-2.5 last:border-b-0",
|
|
44896
44889
|
children: [
|
|
44897
|
-
/* @__PURE__ */
|
|
44890
|
+
/* @__PURE__ */ G("div", { className: "flex items-center gap-2 flex-[2]", children: [
|
|
44898
44891
|
/* @__PURE__ */ A(pt, { className: "h-7 w-7 rounded-full shrink-0" }),
|
|
44899
|
-
/* @__PURE__ */
|
|
44892
|
+
/* @__PURE__ */ G("div", { className: "space-y-1.5 flex-1", children: [
|
|
44900
44893
|
/* @__PURE__ */ A(pt, { className: "h-3.5 w-3/4" }),
|
|
44901
44894
|
/* @__PURE__ */ A(pt, { className: "h-3 w-1/2" })
|
|
44902
44895
|
] })
|
|
@@ -44923,7 +44916,7 @@ const Rle = ({
|
|
|
44923
44916
|
"data-testid": s
|
|
44924
44917
|
}) => {
|
|
44925
44918
|
const l = Nle[t];
|
|
44926
|
-
return /* @__PURE__ */
|
|
44919
|
+
return /* @__PURE__ */ G(
|
|
44927
44920
|
"div",
|
|
44928
44921
|
{
|
|
44929
44922
|
className: B(
|
|
@@ -44941,7 +44934,7 @@ const Rle = ({
|
|
|
44941
44934
|
}
|
|
44942
44935
|
),
|
|
44943
44936
|
/* @__PURE__ */ A("div", { className: "absolute inset-0 bg-white/50", "aria-hidden": "true" }),
|
|
44944
|
-
/* @__PURE__ */ A("div", { className: "absolute inset-0 flex items-center justify-center p-6", children: /* @__PURE__ */
|
|
44937
|
+
/* @__PURE__ */ A("div", { className: "absolute inset-0 flex items-center justify-center p-6", children: /* @__PURE__ */ G("div", { className: "w-full max-w-sm rounded-2xl border border-secondary-200 bg-white p-8 shadow-2xl", children: [
|
|
44945
44938
|
/* @__PURE__ */ A(
|
|
44946
44939
|
"div",
|
|
44947
44940
|
{
|
|
@@ -44952,7 +44945,7 @@ const Rle = ({
|
|
|
44952
44945
|
children: /* @__PURE__ */ A("span", { className: l.iconText, children: e })
|
|
44953
44946
|
}
|
|
44954
44947
|
),
|
|
44955
|
-
/* @__PURE__ */ A("div", { className: "mb-3 flex items-center gap-2", children: /* @__PURE__ */
|
|
44948
|
+
/* @__PURE__ */ A("div", { className: "mb-3 flex items-center gap-2", children: /* @__PURE__ */ G(
|
|
44956
44949
|
"span",
|
|
44957
44950
|
{
|
|
44958
44951
|
className: B(
|
|
@@ -44970,7 +44963,7 @@ const Rle = ({
|
|
|
44970
44963
|
/* @__PURE__ */ A("h2", { className: "text-xl font-bold text-text-primary", children: r }),
|
|
44971
44964
|
/* @__PURE__ */ A("p", { className: "mt-2 text-sm leading-relaxed text-text-muted", children: n }),
|
|
44972
44965
|
/* @__PURE__ */ A("div", { className: "my-5 border-t border-secondary-200" }),
|
|
44973
|
-
/* @__PURE__ */ A("ul", { className: "space-y-2.5", children: a.map((c, f) => /* @__PURE__ */
|
|
44966
|
+
/* @__PURE__ */ A("ul", { className: "space-y-2.5", children: a.map((c, f) => /* @__PURE__ */ G(
|
|
44974
44967
|
"li",
|
|
44975
44968
|
{
|
|
44976
44969
|
className: "flex items-start gap-2.5 text-sm text-text-secondary",
|