chiperos-ai-components-library 0.1.7 → 0.1.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/chiperos-ai-components-library.cjs +1 -1
- package/dist/chiperos-ai-components-library.cjs.map +1 -1
- package/dist/chiperos-ai-components-library.css +1 -0
- package/dist/chiperos-ai-components-library.js +202 -202
- package/dist/chiperos-ai-components-library.js.map +1 -1
- package/dist/fonts/CaustenRound/CaustenRound-Black.woff +0 -0
- package/dist/fonts/CaustenRound/CaustenRound-Black.woff2 +0 -0
- package/dist/fonts/CaustenRound/CaustenRound-Bold.woff +0 -0
- package/dist/fonts/CaustenRound/CaustenRound-Bold.woff2 +0 -0
- package/dist/fonts/CaustenRound/CaustenRound-Light.woff +0 -0
- package/dist/fonts/CaustenRound/CaustenRound-Light.woff2 +0 -0
- package/dist/fonts/CaustenRound/CaustenRound-Medium.woff +0 -0
- package/dist/fonts/CaustenRound/CaustenRound-Medium.woff2 +0 -0
- package/dist/fonts/CaustenRound/CaustenRound-Regular.woff +0 -0
- package/dist/fonts/CaustenRound/CaustenRound-Regular.woff2 +0 -0
- package/dist/index.d.ts +1 -0
- package/package.json +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { jsxs as
|
|
1
|
+
import { jsxs as N, jsx as p, Fragment as Hn } from "react/jsx-runtime";
|
|
2
2
|
import * as h from "react";
|
|
3
3
|
import Me, { forwardRef as Lo, useState as pt, useEffect as wa, useLayoutEffect as xa } from "react";
|
|
4
|
-
import { Info as vr, AlertTriangle as Ca, EyeOff as Sa, Eye as _a, TriangleAlert as
|
|
4
|
+
import { Info as vr, AlertTriangle as Ca, EyeOff as Sa, Eye as _a, TriangleAlert as Na, CircleCheck as Pa, Route as Ea, Package as Ra, ReceiptText as Aa, ChevronDown as Mo, Search as Ia, ListFilter as Oa, CheckCircle as ka, X as Ta } from "lucide-react";
|
|
5
5
|
import { Slot as Fa, createSlot as Mt } from "@radix-ui/react-slot";
|
|
6
6
|
import * as Ht from "react-dom";
|
|
7
7
|
import La from "react-dom";
|
|
@@ -61,9 +61,9 @@ const Gn = "-", Ma = (e) => {
|
|
|
61
61
|
validators: []
|
|
62
62
|
};
|
|
63
63
|
return Ba(Object.entries(e.classGroups), n).forEach(([i, a]) => {
|
|
64
|
-
|
|
64
|
+
Nn(a, r, i, t);
|
|
65
65
|
}), r;
|
|
66
|
-
},
|
|
66
|
+
}, Nn = (e, t, n, r) => {
|
|
67
67
|
e.forEach((o) => {
|
|
68
68
|
if (typeof o == "string") {
|
|
69
69
|
const i = o === "" ? t : wr(t, o);
|
|
@@ -72,7 +72,7 @@ const Gn = "-", Ma = (e) => {
|
|
|
72
72
|
}
|
|
73
73
|
if (typeof o == "function") {
|
|
74
74
|
if (Za(o)) {
|
|
75
|
-
|
|
75
|
+
Nn(o(r), t, n, r);
|
|
76
76
|
return;
|
|
77
77
|
}
|
|
78
78
|
t.validators.push({
|
|
@@ -82,7 +82,7 @@ const Gn = "-", Ma = (e) => {
|
|
|
82
82
|
return;
|
|
83
83
|
}
|
|
84
84
|
Object.entries(o).forEach(([i, a]) => {
|
|
85
|
-
|
|
85
|
+
Nn(a, wr(t, i), n, r);
|
|
86
86
|
});
|
|
87
87
|
});
|
|
88
88
|
}, wr = (e, t) => {
|
|
@@ -238,7 +238,7 @@ function Xa(e, ...t) {
|
|
|
238
238
|
const V = (e) => {
|
|
239
239
|
const t = (n) => n[e] || [];
|
|
240
240
|
return t.isThemeGetter = !0, t;
|
|
241
|
-
}, Uo = /^\[(?:([a-z-]+):)?(.+)\]$/i, Ya = /^\d+\/\d+$/, Ja = /* @__PURE__ */ new Set(["px", "full", "screen"]), qa = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, Qa = /\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/, ed = /^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/, td = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, nd = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, xe = (e) => Je(e) || Ja.has(e) || Ya.test(e),
|
|
241
|
+
}, Uo = /^\[(?:([a-z-]+):)?(.+)\]$/i, Ya = /^\d+\/\d+$/, Ja = /* @__PURE__ */ new Set(["px", "full", "screen"]), qa = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, Qa = /\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/, ed = /^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/, td = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, nd = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, xe = (e) => Je(e) || Ja.has(e) || Ya.test(e), Pe = (e) => ot(e, "length", ld), Je = (e) => !!e && !Number.isNaN(Number(e)), $n = (e) => ot(e, "number", Je), ut = (e) => !!e && Number.isInteger(Number(e)), rd = (e) => e.endsWith("%") && Je(e.slice(0, -1)), F = (e) => Uo.test(e), Ee = (e) => qa.test(e), od = /* @__PURE__ */ new Set(["length", "size", "percentage"]), id = (e) => ot(e, od, Wo), ad = (e) => ot(e, "position", Wo), dd = /* @__PURE__ */ new Set(["image", "url"]), sd = (e) => ot(e, dd, fd), cd = (e) => ot(e, "", ud), ft = () => !0, ot = (e, t, n) => {
|
|
242
242
|
const r = Uo.exec(e);
|
|
243
243
|
return r ? r[1] ? typeof t == "string" ? r[1] === t : t.has(r[1]) : n(r[2]) : !1;
|
|
244
244
|
}, ld = (e) => (
|
|
@@ -247,13 +247,13 @@ const V = (e) => {
|
|
|
247
247
|
// I could also use lookbehind assertion in `lengthUnitRegex` but that isn't supported widely enough.
|
|
248
248
|
Qa.test(e) && !ed.test(e)
|
|
249
249
|
), Wo = () => !1, ud = (e) => td.test(e), fd = (e) => nd.test(e), $d = () => {
|
|
250
|
-
const e = V("colors"), t = V("spacing"), n = V("blur"), r = V("brightness"), o = V("borderColor"), i = V("borderRadius"), a = V("borderSpacing"), d = V("borderWidth"), s = V("contrast"), c = V("grayscale"), l = V("hueRotate"), u = V("invert"), f = V("gap"), m = V("gradientColorStops"), v = V("gradientColorStopPositions"), $ = V("inset"), g = V("margin"), b = V("opacity"), y = V("padding"), w = V("saturate"), x = V("scale"), S = V("sepia"),
|
|
250
|
+
const e = V("colors"), t = V("spacing"), n = V("blur"), r = V("brightness"), o = V("borderColor"), i = V("borderRadius"), a = V("borderSpacing"), d = V("borderWidth"), s = V("contrast"), c = V("grayscale"), l = V("hueRotate"), u = V("invert"), f = V("gap"), m = V("gradientColorStops"), v = V("gradientColorStopPositions"), $ = V("inset"), g = V("margin"), b = V("opacity"), y = V("padding"), w = V("saturate"), x = V("scale"), S = V("sepia"), P = V("skew"), _ = V("space"), k = V("translate"), D = () => ["auto", "contain", "none"], M = () => ["auto", "hidden", "clip", "visible", "scroll"], B = () => ["auto", F, t], E = () => [F, t], z = () => ["", xe, Pe], O = () => ["auto", Je, F], j = () => ["bottom", "center", "left", "left-bottom", "left-top", "right", "right-bottom", "right-top", "top"], T = () => ["solid", "dashed", "dotted", "double", "none"], Z = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], R = () => ["start", "end", "center", "between", "around", "evenly", "stretch"], U = () => ["", "0", F], ee = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], te = () => [Je, F];
|
|
251
251
|
return {
|
|
252
252
|
cacheSize: 500,
|
|
253
253
|
separator: ":",
|
|
254
254
|
theme: {
|
|
255
255
|
colors: [ft],
|
|
256
|
-
spacing: [xe,
|
|
256
|
+
spacing: [xe, Pe],
|
|
257
257
|
blur: ["none", "", Ee, F],
|
|
258
258
|
brightness: te(),
|
|
259
259
|
borderColor: [e],
|
|
@@ -266,7 +266,7 @@ const V = (e) => {
|
|
|
266
266
|
invert: U(),
|
|
267
267
|
gap: E(),
|
|
268
268
|
gradientColorStops: [e],
|
|
269
|
-
gradientColorStopPositions: [rd,
|
|
269
|
+
gradientColorStopPositions: [rd, Pe],
|
|
270
270
|
inset: B(),
|
|
271
271
|
margin: B(),
|
|
272
272
|
opacity: te(),
|
|
@@ -918,7 +918,7 @@ const V = (e) => {
|
|
|
918
918
|
* @see https://tailwindcss.com/docs/font-size
|
|
919
919
|
*/
|
|
920
920
|
"font-size": [{
|
|
921
|
-
text: ["base", Ee,
|
|
921
|
+
text: ["base", Ee, Pe]
|
|
922
922
|
}],
|
|
923
923
|
/**
|
|
924
924
|
* Font Smoothing
|
|
@@ -1069,7 +1069,7 @@ const V = (e) => {
|
|
|
1069
1069
|
* @see https://tailwindcss.com/docs/text-decoration-thickness
|
|
1070
1070
|
*/
|
|
1071
1071
|
"text-decoration-thickness": [{
|
|
1072
|
-
decoration: ["auto", "from-font", xe,
|
|
1072
|
+
decoration: ["auto", "from-font", xe, Pe]
|
|
1073
1073
|
}],
|
|
1074
1074
|
/**
|
|
1075
1075
|
* Text Underline Offset
|
|
@@ -1565,7 +1565,7 @@ const V = (e) => {
|
|
|
1565
1565
|
* @see https://tailwindcss.com/docs/outline-width
|
|
1566
1566
|
*/
|
|
1567
1567
|
"outline-w": [{
|
|
1568
|
-
outline: [xe,
|
|
1568
|
+
outline: [xe, Pe]
|
|
1569
1569
|
}],
|
|
1570
1570
|
/**
|
|
1571
1571
|
* Outline Color
|
|
@@ -1605,7 +1605,7 @@ const V = (e) => {
|
|
|
1605
1605
|
* @see https://tailwindcss.com/docs/ring-offset-width
|
|
1606
1606
|
*/
|
|
1607
1607
|
"ring-offset-w": [{
|
|
1608
|
-
"ring-offset": [xe,
|
|
1608
|
+
"ring-offset": [xe, Pe]
|
|
1609
1609
|
}],
|
|
1610
1610
|
/**
|
|
1611
1611
|
* Ring Offset Color
|
|
@@ -1927,14 +1927,14 @@ const V = (e) => {
|
|
|
1927
1927
|
* @see https://tailwindcss.com/docs/skew
|
|
1928
1928
|
*/
|
|
1929
1929
|
"skew-x": [{
|
|
1930
|
-
"skew-x": [
|
|
1930
|
+
"skew-x": [P]
|
|
1931
1931
|
}],
|
|
1932
1932
|
/**
|
|
1933
1933
|
* Skew Y
|
|
1934
1934
|
* @see https://tailwindcss.com/docs/skew
|
|
1935
1935
|
*/
|
|
1936
1936
|
"skew-y": [{
|
|
1937
|
-
"skew-y": [
|
|
1937
|
+
"skew-y": [P]
|
|
1938
1938
|
}],
|
|
1939
1939
|
/**
|
|
1940
1940
|
* Transform Origin
|
|
@@ -2200,7 +2200,7 @@ const V = (e) => {
|
|
|
2200
2200
|
* @see https://tailwindcss.com/docs/stroke-width
|
|
2201
2201
|
*/
|
|
2202
2202
|
"stroke-w": [{
|
|
2203
|
-
stroke: [xe,
|
|
2203
|
+
stroke: [xe, Pe, $n]
|
|
2204
2204
|
}],
|
|
2205
2205
|
/**
|
|
2206
2206
|
* Stroke
|
|
@@ -2288,7 +2288,7 @@ const hd = h.forwardRef(
|
|
|
2288
2288
|
onClick: o,
|
|
2289
2289
|
className: i,
|
|
2290
2290
|
...a
|
|
2291
|
-
}, d) => /* @__PURE__ */
|
|
2291
|
+
}, d) => /* @__PURE__ */ N(
|
|
2292
2292
|
"div",
|
|
2293
2293
|
{
|
|
2294
2294
|
ref: d,
|
|
@@ -2302,7 +2302,7 @@ const hd = h.forwardRef(
|
|
|
2302
2302
|
...a,
|
|
2303
2303
|
children: [
|
|
2304
2304
|
/* @__PURE__ */ p("div", { className: "flex items-center justify-center shrink-0", children: n }),
|
|
2305
|
-
/* @__PURE__ */
|
|
2305
|
+
/* @__PURE__ */ N("div", { className: "flex-1 flex flex-col gap-2 min-w-0", children: [
|
|
2306
2306
|
/* @__PURE__ */ p(
|
|
2307
2307
|
"h3",
|
|
2308
2308
|
{
|
|
@@ -2362,7 +2362,7 @@ const md = h.forwardRef(
|
|
|
2362
2362
|
icon: /* @__PURE__ */ p(vr, { size: 24, className: "text-[#202020]" })
|
|
2363
2363
|
}
|
|
2364
2364
|
}[e], c = r || s.icon;
|
|
2365
|
-
return /* @__PURE__ */
|
|
2365
|
+
return /* @__PURE__ */ N(
|
|
2366
2366
|
"div",
|
|
2367
2367
|
{
|
|
2368
2368
|
ref: a,
|
|
@@ -2377,7 +2377,7 @@ const md = h.forwardRef(
|
|
|
2377
2377
|
...i,
|
|
2378
2378
|
children: [
|
|
2379
2379
|
/* @__PURE__ */ p("div", { className: "flex-shrink-0", children: c }),
|
|
2380
|
-
/* @__PURE__ */
|
|
2380
|
+
/* @__PURE__ */ N("div", { className: "flex flex-col gap-0 flex-1 min-w-0", children: [
|
|
2381
2381
|
/* @__PURE__ */ p("div", { className: "font-semibold text-sm leading-[18px]", children: t }),
|
|
2382
2382
|
/* @__PURE__ */ p("div", { className: "font-normal text-sm leading-[18px]", children: n })
|
|
2383
2383
|
] })
|
|
@@ -2495,7 +2495,7 @@ const xr = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Cr = zo, g
|
|
|
2495
2495
|
...s,
|
|
2496
2496
|
children: d
|
|
2497
2497
|
}
|
|
2498
|
-
) : /* @__PURE__ */
|
|
2498
|
+
) : /* @__PURE__ */ N(
|
|
2499
2499
|
l,
|
|
2500
2500
|
{
|
|
2501
2501
|
className: I(Sr({ variant: t, size: n, iconOnly: r, className: e })),
|
|
@@ -2590,7 +2590,7 @@ const yd = h.forwardRef(
|
|
|
2590
2590
|
onClick: o,
|
|
2591
2591
|
className: i,
|
|
2592
2592
|
...a
|
|
2593
|
-
}, d) => /* @__PURE__ */
|
|
2593
|
+
}, d) => /* @__PURE__ */ N(
|
|
2594
2594
|
"div",
|
|
2595
2595
|
{
|
|
2596
2596
|
ref: d,
|
|
@@ -2614,7 +2614,7 @@ const yd = h.forwardRef(
|
|
|
2614
2614
|
children: n
|
|
2615
2615
|
}
|
|
2616
2616
|
),
|
|
2617
|
-
/* @__PURE__ */
|
|
2617
|
+
/* @__PURE__ */ N("div", { className: "flex flex-col gap-2 items-center text-center", style: { width: "300px" }, children: [
|
|
2618
2618
|
/* @__PURE__ */ p(
|
|
2619
2619
|
"h3",
|
|
2620
2620
|
{
|
|
@@ -2685,7 +2685,7 @@ const wd = {};
|
|
|
2685
2685
|
function De(e) {
|
|
2686
2686
|
return wd;
|
|
2687
2687
|
}
|
|
2688
|
-
function
|
|
2688
|
+
function Pn(e, t) {
|
|
2689
2689
|
return typeof t == "bigint" ? t.toString() : t;
|
|
2690
2690
|
}
|
|
2691
2691
|
function Kn(e) {
|
|
@@ -2725,17 +2725,17 @@ function Cd(e) {
|
|
|
2725
2725
|
}
|
|
2726
2726
|
const Go = "captureStackTrace" in Error ? Error.captureStackTrace : (...e) => {
|
|
2727
2727
|
};
|
|
2728
|
-
function
|
|
2728
|
+
function Nr(e) {
|
|
2729
2729
|
return typeof e == "object" && e !== null && !Array.isArray(e);
|
|
2730
2730
|
}
|
|
2731
2731
|
function En(e) {
|
|
2732
|
-
if (
|
|
2732
|
+
if (Nr(e) === !1)
|
|
2733
2733
|
return !1;
|
|
2734
2734
|
const t = e.constructor;
|
|
2735
2735
|
if (t === void 0 || typeof t != "function")
|
|
2736
2736
|
return !0;
|
|
2737
2737
|
const n = t.prototype;
|
|
2738
|
-
return !(
|
|
2738
|
+
return !(Nr(n) === !1 || Object.prototype.hasOwnProperty.call(n, "isPrototypeOf") === !1);
|
|
2739
2739
|
}
|
|
2740
2740
|
function Ko(e) {
|
|
2741
2741
|
return En(e) ? { ...e } : Array.isArray(e) ? [...e] : e;
|
|
@@ -2804,18 +2804,18 @@ const Xo = (e, t) => {
|
|
|
2804
2804
|
}), Object.defineProperty(e, "issues", {
|
|
2805
2805
|
value: t,
|
|
2806
2806
|
enumerable: !1
|
|
2807
|
-
}), e.message = JSON.stringify(t,
|
|
2807
|
+
}), e.message = JSON.stringify(t, Pn, 2), Object.defineProperty(e, "toString", {
|
|
2808
2808
|
value: () => e.message,
|
|
2809
2809
|
enumerable: !1
|
|
2810
2810
|
});
|
|
2811
2811
|
}, Yo = C("$ZodError", Xo), Jo = C("$ZodError", Xo, { Parent: Error });
|
|
2812
|
-
function
|
|
2812
|
+
function Nd(e, t = (n) => n.message) {
|
|
2813
2813
|
const n = {}, r = [];
|
|
2814
2814
|
for (const o of e.issues)
|
|
2815
2815
|
o.path.length > 0 ? (n[o.path[0]] = n[o.path[0]] || [], n[o.path[0]].push(t(o))) : r.push(t(o));
|
|
2816
2816
|
return { formErrors: r, fieldErrors: n };
|
|
2817
2817
|
}
|
|
2818
|
-
function
|
|
2818
|
+
function Pd(e, t = (n) => n.message) {
|
|
2819
2819
|
const n = { _errors: [] }, r = (o) => {
|
|
2820
2820
|
for (const i of o.issues)
|
|
2821
2821
|
if (i.code === "invalid_union" && i.errors.length)
|
|
@@ -2880,7 +2880,7 @@ const qn = (e) => (t, n, r, o) => {
|
|
|
2880
2880
|
}, Fd = (e) => (t, n, r) => Gt(e)(t, n, r), Ld = (e) => async (t, n, r) => {
|
|
2881
2881
|
const o = r ? Object.assign(r, { direction: "backward" }) : { direction: "backward" };
|
|
2882
2882
|
return Kt(e)(t, n, o);
|
|
2883
|
-
}, Md = (e) => async (t, n, r) => Kt(e)(t, n, r), Dd = /^[cC][^\s-]{8,}$/, zd = /^[0-9a-z]+$/, Zd = /^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/, Bd = /^[0-9a-vA-V]{20}$/, jd = /^[A-Za-z0-9]{27}$/, Ud = /^[a-zA-Z0-9_-]{21}$/, Wd = /^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/, Vd = /^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$/,
|
|
2883
|
+
}, Md = (e) => async (t, n, r) => Kt(e)(t, n, r), Dd = /^[cC][^\s-]{8,}$/, zd = /^[0-9a-z]+$/, Zd = /^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/, Bd = /^[0-9a-vA-V]{20}$/, jd = /^[A-Za-z0-9]{27}$/, Ud = /^[a-zA-Z0-9_-]{21}$/, Wd = /^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/, Vd = /^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$/, Pr = (e) => e ? new RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${e}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`) : /^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/, Hd = /^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/, Gd = "^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";
|
|
2884
2884
|
function Kd() {
|
|
2885
2885
|
return new RegExp(Gd, "u");
|
|
2886
2886
|
}
|
|
@@ -3171,9 +3171,9 @@ const os = (e) => {
|
|
|
3171
3171
|
}[t.version];
|
|
3172
3172
|
if (r === void 0)
|
|
3173
3173
|
throw new Error(`Invalid UUID version: "${t.version}"`);
|
|
3174
|
-
t.pattern ?? (t.pattern =
|
|
3174
|
+
t.pattern ?? (t.pattern = Pr(r));
|
|
3175
3175
|
} else
|
|
3176
|
-
t.pattern ?? (t.pattern =
|
|
3176
|
+
t.pattern ?? (t.pattern = Pr());
|
|
3177
3177
|
K.init(e, t);
|
|
3178
3178
|
}), ys = /* @__PURE__ */ C("$ZodEmail", (e, t) => {
|
|
3179
3179
|
t.pattern ?? (t.pattern = Hd), K.init(e, t);
|
|
@@ -3217,9 +3217,9 @@ const os = (e) => {
|
|
|
3217
3217
|
t.pattern ?? (t.pattern = Dd), K.init(e, t);
|
|
3218
3218
|
}), _s = /* @__PURE__ */ C("$ZodCUID2", (e, t) => {
|
|
3219
3219
|
t.pattern ?? (t.pattern = zd), K.init(e, t);
|
|
3220
|
-
}),
|
|
3220
|
+
}), Ns = /* @__PURE__ */ C("$ZodULID", (e, t) => {
|
|
3221
3221
|
t.pattern ?? (t.pattern = Zd), K.init(e, t);
|
|
3222
|
-
}),
|
|
3222
|
+
}), Ps = /* @__PURE__ */ C("$ZodXID", (e, t) => {
|
|
3223
3223
|
t.pattern ?? (t.pattern = Bd), K.init(e, t);
|
|
3224
3224
|
}), Es = /* @__PURE__ */ C("$ZodKSUID", (e, t) => {
|
|
3225
3225
|
t.pattern ?? (t.pattern = jd), K.init(e, t);
|
|
@@ -3626,7 +3626,7 @@ function rc() {
|
|
|
3626
3626
|
return new nc();
|
|
3627
3627
|
}
|
|
3628
3628
|
(Lr = globalThis).__zod_globalRegistry ?? (Lr.__zod_globalRegistry = rc());
|
|
3629
|
-
const
|
|
3629
|
+
const Nt = globalThis.__zod_globalRegistry;
|
|
3630
3630
|
function oc(e, t) {
|
|
3631
3631
|
return new e({
|
|
3632
3632
|
type: "string",
|
|
@@ -3834,7 +3834,7 @@ function _c(e, t) {
|
|
|
3834
3834
|
...L(t)
|
|
3835
3835
|
});
|
|
3836
3836
|
}
|
|
3837
|
-
function
|
|
3837
|
+
function Nc(e, t) {
|
|
3838
3838
|
return new e({
|
|
3839
3839
|
type: "string",
|
|
3840
3840
|
format: "datetime",
|
|
@@ -3845,7 +3845,7 @@ function Pc(e, t) {
|
|
|
3845
3845
|
...L(t)
|
|
3846
3846
|
});
|
|
3847
3847
|
}
|
|
3848
|
-
function
|
|
3848
|
+
function Pc(e, t) {
|
|
3849
3849
|
return new e({
|
|
3850
3850
|
type: "string",
|
|
3851
3851
|
format: "date",
|
|
@@ -3998,13 +3998,13 @@ const Vc = /* @__PURE__ */ C("ZodISODateTime", (e, t) => {
|
|
|
3998
3998
|
Rs.init(e, t), X.init(e, t);
|
|
3999
3999
|
});
|
|
4000
4000
|
function Hc(e) {
|
|
4001
|
-
return
|
|
4001
|
+
return Nc(Vc, e);
|
|
4002
4002
|
}
|
|
4003
4003
|
const Gc = /* @__PURE__ */ C("ZodISODate", (e, t) => {
|
|
4004
4004
|
As.init(e, t), X.init(e, t);
|
|
4005
4005
|
});
|
|
4006
4006
|
function Kc(e) {
|
|
4007
|
-
return
|
|
4007
|
+
return Pc(Gc, e);
|
|
4008
4008
|
}
|
|
4009
4009
|
const Xc = /* @__PURE__ */ C("ZodISOTime", (e, t) => {
|
|
4010
4010
|
Is.init(e, t), X.init(e, t);
|
|
@@ -4021,22 +4021,22 @@ function qc(e) {
|
|
|
4021
4021
|
const Qc = (e, t) => {
|
|
4022
4022
|
Yo.init(e, t), e.name = "ZodError", Object.defineProperties(e, {
|
|
4023
4023
|
format: {
|
|
4024
|
-
value: (n) =>
|
|
4024
|
+
value: (n) => Pd(e, n)
|
|
4025
4025
|
// enumerable: false,
|
|
4026
4026
|
},
|
|
4027
4027
|
flatten: {
|
|
4028
|
-
value: (n) =>
|
|
4028
|
+
value: (n) => Nd(e, n)
|
|
4029
4029
|
// enumerable: false,
|
|
4030
4030
|
},
|
|
4031
4031
|
addIssue: {
|
|
4032
4032
|
value: (n) => {
|
|
4033
|
-
e.issues.push(n), e.message = JSON.stringify(e.issues,
|
|
4033
|
+
e.issues.push(n), e.message = JSON.stringify(e.issues, Pn, 2);
|
|
4034
4034
|
}
|
|
4035
4035
|
// enumerable: false,
|
|
4036
4036
|
},
|
|
4037
4037
|
addIssues: {
|
|
4038
4038
|
value: (n) => {
|
|
4039
|
-
e.issues.push(...n), e.message = JSON.stringify(e.issues,
|
|
4039
|
+
e.issues.push(...n), e.message = JSON.stringify(e.issues, Pn, 2);
|
|
4040
4040
|
}
|
|
4041
4041
|
// enumerable: false,
|
|
4042
4042
|
},
|
|
@@ -4056,25 +4056,25 @@ const Qc = (e, t) => {
|
|
|
4056
4056
|
]
|
|
4057
4057
|
})), e.clone = (n, r) => Sd(e, n, r), e.brand = () => e, e.register = ((n, r) => (n.add(e, r), e)), e.parse = (n, r) => el(e, n, r, { callee: e.parse }), e.safeParse = (n, r) => nl(e, n, r), e.parseAsync = async (n, r) => tl(e, n, r, { callee: e.parseAsync }), e.safeParseAsync = async (n, r) => rl(e, n, r), e.spa = e.safeParseAsync, e.encode = (n, r) => ol(e, n, r), e.decode = (n, r) => il(e, n, r), e.encodeAsync = async (n, r) => al(e, n, r), e.decodeAsync = async (n, r) => dl(e, n, r), e.safeEncode = (n, r) => sl(e, n, r), e.safeDecode = (n, r) => cl(e, n, r), e.safeEncodeAsync = async (n, r) => ll(e, n, r), e.safeDecodeAsync = async (n, r) => ul(e, n, r), e.refine = (n, r) => e.check(ql(n, r)), e.superRefine = (n) => e.check(Ql(n)), e.overwrite = (n) => e.check(it(n)), e.optional = () => zr(e), e.nullable = () => Zr(e), e.nullish = () => zr(Zr(e)), e.nonoptional = (n) => Vl(e, n), e.array = () => Il(e), e.or = (n) => kl([e, n]), e.and = (n) => Fl(e, n), e.transform = (n) => Br(e, Ml(n)), e.default = (n) => Bl(e, n), e.prefault = (n) => Ul(e, n), e.catch = (n) => Gl(e, n), e.pipe = (n) => Br(e, n), e.readonly = () => Yl(e), e.describe = (n) => {
|
|
4058
4058
|
const r = e.clone();
|
|
4059
|
-
return
|
|
4059
|
+
return Nt.add(r, { description: n }), r;
|
|
4060
4060
|
}, Object.defineProperty(e, "description", {
|
|
4061
4061
|
get() {
|
|
4062
|
-
return
|
|
4062
|
+
return Nt.get(e)?.description;
|
|
4063
4063
|
},
|
|
4064
4064
|
configurable: !0
|
|
4065
4065
|
}), e.meta = (...n) => {
|
|
4066
4066
|
if (n.length === 0)
|
|
4067
|
-
return
|
|
4067
|
+
return Nt.get(e);
|
|
4068
4068
|
const r = e.clone();
|
|
4069
|
-
return
|
|
4069
|
+
return Nt.add(r, n[0]), r;
|
|
4070
4070
|
}, e.isOptional = () => e.safeParse(void 0).success, e.isNullable = () => e.safeParse(null).success, e)), oi = /* @__PURE__ */ C("_ZodString", (e, t) => {
|
|
4071
4071
|
er.init(e, t), de.init(e, t);
|
|
4072
4072
|
const n = e._zod.bag;
|
|
4073
4073
|
e.format = n.format ?? null, e.minLength = n.minimum ?? null, e.maxLength = n.maximum ?? null, e.regex = (...r) => e.check(Ac(...r)), e.includes = (...r) => e.check(kc(...r)), e.startsWith = (...r) => e.check(Tc(...r)), e.endsWith = (...r) => e.check(Fc(...r)), e.min = (...r) => e.check(Dt(...r)), e.max = (...r) => e.check(ni(...r)), e.length = (...r) => e.check(ri(...r)), e.nonempty = (...r) => e.check(Dt(1, ...r)), e.lowercase = (r) => e.check(Ic(r)), e.uppercase = (r) => e.check(Oc(r)), e.trim = () => e.check(Mc()), e.normalize = (...r) => e.check(Lc(...r)), e.toLowerCase = () => e.check(Dc()), e.toUpperCase = () => e.check(zc()), e.slugify = () => e.check(Zc());
|
|
4074
4074
|
}), fl = /* @__PURE__ */ C("ZodString", (e, t) => {
|
|
4075
|
-
er.init(e, t), oi.init(e, t), e.email = (n) => e.check(ic($l, n)), e.url = (n) => e.check(lc(pl, n)), e.jwt = (n) => e.check(_c(Rl, n)), e.emoji = (n) => e.check(uc(hl, n)), e.guid = (n) => e.check(Mr(Dr, n)), e.uuid = (n) => e.check(ac(Et, n)), e.uuidv4 = (n) => e.check(dc(Et, n)), e.uuidv6 = (n) => e.check(sc(Et, n)), e.uuidv7 = (n) => e.check(cc(Et, n)), e.nanoid = (n) => e.check(fc(ml, n)), e.guid = (n) => e.check(Mr(Dr, n)), e.cuid = (n) => e.check($c(gl, n)), e.cuid2 = (n) => e.check(pc(vl, n)), e.ulid = (n) => e.check(hc(bl, n)), e.base64 = (n) => e.check(xc(
|
|
4075
|
+
er.init(e, t), oi.init(e, t), e.email = (n) => e.check(ic($l, n)), e.url = (n) => e.check(lc(pl, n)), e.jwt = (n) => e.check(_c(Rl, n)), e.emoji = (n) => e.check(uc(hl, n)), e.guid = (n) => e.check(Mr(Dr, n)), e.uuid = (n) => e.check(ac(Et, n)), e.uuidv4 = (n) => e.check(dc(Et, n)), e.uuidv6 = (n) => e.check(sc(Et, n)), e.uuidv7 = (n) => e.check(cc(Et, n)), e.nanoid = (n) => e.check(fc(ml, n)), e.guid = (n) => e.check(Mr(Dr, n)), e.cuid = (n) => e.check($c(gl, n)), e.cuid2 = (n) => e.check(pc(vl, n)), e.ulid = (n) => e.check(hc(bl, n)), e.base64 = (n) => e.check(xc(Nl, n)), e.base64url = (n) => e.check(Cc(Pl, n)), e.xid = (n) => e.check(mc(yl, n)), e.ksuid = (n) => e.check(gc(wl, n)), e.ipv4 = (n) => e.check(vc(xl, n)), e.ipv6 = (n) => e.check(bc(Cl, n)), e.cidrv4 = (n) => e.check(yc(Sl, n)), e.cidrv6 = (n) => e.check(wc(_l, n)), e.e164 = (n) => e.check(Sc(El, n)), e.datetime = (n) => e.check(Hc(n)), e.date = (n) => e.check(Kc(n)), e.time = (n) => e.check(Yc(n)), e.duration = (n) => e.check(qc(n));
|
|
4076
4076
|
});
|
|
4077
|
-
function
|
|
4077
|
+
function Pt(e) {
|
|
4078
4078
|
return oc(fl, e);
|
|
4079
4079
|
}
|
|
4080
4080
|
const X = /* @__PURE__ */ C("ZodStringFormat", (e, t) => {
|
|
@@ -4096,9 +4096,9 @@ const X = /* @__PURE__ */ C("ZodStringFormat", (e, t) => {
|
|
|
4096
4096
|
}), vl = /* @__PURE__ */ C("ZodCUID2", (e, t) => {
|
|
4097
4097
|
_s.init(e, t), X.init(e, t);
|
|
4098
4098
|
}), bl = /* @__PURE__ */ C("ZodULID", (e, t) => {
|
|
4099
|
-
Ps.init(e, t), X.init(e, t);
|
|
4100
|
-
}), yl = /* @__PURE__ */ C("ZodXID", (e, t) => {
|
|
4101
4099
|
Ns.init(e, t), X.init(e, t);
|
|
4100
|
+
}), yl = /* @__PURE__ */ C("ZodXID", (e, t) => {
|
|
4101
|
+
Ps.init(e, t), X.init(e, t);
|
|
4102
4102
|
}), wl = /* @__PURE__ */ C("ZodKSUID", (e, t) => {
|
|
4103
4103
|
Es.init(e, t), X.init(e, t);
|
|
4104
4104
|
}), xl = /* @__PURE__ */ C("ZodIPv4", (e, t) => {
|
|
@@ -4109,9 +4109,9 @@ const X = /* @__PURE__ */ C("ZodStringFormat", (e, t) => {
|
|
|
4109
4109
|
Fs.init(e, t), X.init(e, t);
|
|
4110
4110
|
}), _l = /* @__PURE__ */ C("ZodCIDRv6", (e, t) => {
|
|
4111
4111
|
Ls.init(e, t), X.init(e, t);
|
|
4112
|
-
}),
|
|
4112
|
+
}), Nl = /* @__PURE__ */ C("ZodBase64", (e, t) => {
|
|
4113
4113
|
Ms.init(e, t), X.init(e, t);
|
|
4114
|
-
}),
|
|
4114
|
+
}), Pl = /* @__PURE__ */ C("ZodBase64URL", (e, t) => {
|
|
4115
4115
|
zs.init(e, t), X.init(e, t);
|
|
4116
4116
|
}), El = /* @__PURE__ */ C("ZodE164", (e, t) => {
|
|
4117
4117
|
Zs.init(e, t), X.init(e, t);
|
|
@@ -4848,7 +4848,7 @@ function yu(e, t, n) {
|
|
|
4848
4848
|
var r = new re(n);
|
|
4849
4849
|
return r.selectNumberingPlan(t), r.numberingPlan.possibleLengths().indexOf(e.length) >= 0;
|
|
4850
4850
|
}
|
|
4851
|
-
var or = 2, wu = 17, xu = 3, $e = "0-90-9٠-٩۰-۹", Cu = "-‐-―−ー-", Su = "//", _u = "..",
|
|
4851
|
+
var or = 2, wu = 17, xu = 3, $e = "0-90-9٠-٩۰-۹", Cu = "-‐-―−ー-", Su = "//", _u = "..", Nu = " ", Pu = "()()[]\\[\\]", Eu = "~⁓∼~", zt = "".concat(Cu).concat(Su).concat(_u).concat(Nu).concat(Pu).concat(Eu), ir = "++", Ru = new RegExp("([" + $e + "])");
|
|
4852
4852
|
function Au(e, t, n, r) {
|
|
4853
4853
|
if (t) {
|
|
4854
4854
|
var o = new re(r);
|
|
@@ -5556,7 +5556,7 @@ function Qr(e) {
|
|
|
5556
5556
|
function _0(e, t, n) {
|
|
5557
5557
|
return e === "+" ? t ? void 0 : "+" : x0(e);
|
|
5558
5558
|
}
|
|
5559
|
-
var fi = "+",
|
|
5559
|
+
var fi = "+", N0 = "[\\-\\.\\(\\)]?", eo = "([" + $e + "]|" + N0 + ")", P0 = "^\\" + fi + eo + "*[" + $e + "]" + eo + "*$", E0 = new RegExp(P0, "g"), kn = $e, R0 = "[" + kn + "]+((\\-)*[" + kn + "])*", A0 = "a-zA-Z", I0 = "[" + A0 + "]+((\\-)*[" + kn + "])*", O0 = "^(" + R0 + "\\.)*" + I0 + "\\.?$", k0 = new RegExp(O0, "g"), to = "tel:", Tn = ";phone-context=", T0 = ";isub=";
|
|
5560
5560
|
function F0(e) {
|
|
5561
5561
|
var t = e.indexOf(Tn);
|
|
5562
5562
|
if (t < 0)
|
|
@@ -5858,9 +5858,9 @@ const mn = (e, t) => {
|
|
|
5858
5858
|
if (t.required && !e)
|
|
5859
5859
|
return typeof t.required == "string" ? t.required : "This field is required";
|
|
5860
5860
|
if (!e) return null;
|
|
5861
|
-
if (t.email && !
|
|
5861
|
+
if (t.email && !Pt().email().safeParse(e).success)
|
|
5862
5862
|
return typeof t.email == "string" ? t.email : "Please enter a valid email address";
|
|
5863
|
-
if (t.number && !
|
|
5863
|
+
if (t.number && !Pt().regex(/^-?\d*\.?\d+$/).safeParse(e).success)
|
|
5864
5864
|
return typeof t.number == "string" ? t.number : "Please enter a valid number";
|
|
5865
5865
|
if (t.phone)
|
|
5866
5866
|
try {
|
|
@@ -5870,7 +5870,7 @@ const mn = (e, t) => {
|
|
|
5870
5870
|
} catch {
|
|
5871
5871
|
return t.phone.message || "Please enter a valid phone number";
|
|
5872
5872
|
}
|
|
5873
|
-
return t.minLength && !
|
|
5873
|
+
return t.minLength && !Pt().min(t.minLength.value).safeParse(e).success ? t.minLength.message || `Must be at least ${t.minLength.value} characters` : t.maxLength && !Pt().max(t.maxLength.value).safeParse(e).success ? t.maxLength.message || `Must be at most ${t.maxLength.value} characters` : t.regex && !t.regex.pattern.test(e) ? t.regex.message || "Invalid format" : null;
|
|
5874
5874
|
}, s1 = Lo(
|
|
5875
5875
|
({
|
|
5876
5876
|
value: e = "",
|
|
@@ -5886,7 +5886,7 @@ const mn = (e, t) => {
|
|
|
5886
5886
|
validateOnBlur: l = !0,
|
|
5887
5887
|
...u
|
|
5888
5888
|
}, f) => {
|
|
5889
|
-
const [m, v] = pt(!1), [$, g] = pt(!1), [b, y] = pt(null), w = !!r || !!b, x = typeof r == "string" ? r : b, S = i === "password" && d,
|
|
5889
|
+
const [m, v] = pt(!1), [$, g] = pt(!1), [b, y] = pt(null), w = !!r || !!b, x = typeof r == "string" ? r : b, S = i === "password" && d, P = S && $ ? "text" : i;
|
|
5890
5890
|
wa(() => {
|
|
5891
5891
|
if (e && s) {
|
|
5892
5892
|
const O = mn(e, s);
|
|
@@ -5942,13 +5942,13 @@ const mn = (e, t) => {
|
|
|
5942
5942
|
"cursor-pointer hover:opacity-70 transition-opacity",
|
|
5943
5943
|
n && "cursor-not-allowed opacity-50"
|
|
5944
5944
|
);
|
|
5945
|
-
return /* @__PURE__ */
|
|
5946
|
-
/* @__PURE__ */
|
|
5945
|
+
return /* @__PURE__ */ N("div", { className: "w-full", children: [
|
|
5946
|
+
/* @__PURE__ */ N("div", { className: B, "data-testid": "input-container", children: [
|
|
5947
5947
|
/* @__PURE__ */ p(
|
|
5948
5948
|
"input",
|
|
5949
5949
|
{
|
|
5950
5950
|
ref: f,
|
|
5951
|
-
type:
|
|
5951
|
+
type: P,
|
|
5952
5952
|
value: e,
|
|
5953
5953
|
onChange: _,
|
|
5954
5954
|
onFocus: k,
|
|
@@ -5999,7 +5999,7 @@ const c1 = h.forwardRef(
|
|
|
5999
5999
|
rightIcon: i,
|
|
6000
6000
|
className: a,
|
|
6001
6001
|
...d
|
|
6002
|
-
}, s) => /* @__PURE__ */
|
|
6002
|
+
}, s) => /* @__PURE__ */ N(
|
|
6003
6003
|
"div",
|
|
6004
6004
|
{
|
|
6005
6005
|
ref: s,
|
|
@@ -6009,7 +6009,7 @@ const c1 = h.forwardRef(
|
|
|
6009
6009
|
),
|
|
6010
6010
|
...d,
|
|
6011
6011
|
children: [
|
|
6012
|
-
/* @__PURE__ */
|
|
6012
|
+
/* @__PURE__ */ N("div", { className: "flex items-center gap-1", children: [
|
|
6013
6013
|
/* @__PURE__ */ p("div", { className: "shrink-0", children: e }),
|
|
6014
6014
|
/* @__PURE__ */ p(
|
|
6015
6015
|
"span",
|
|
@@ -6040,7 +6040,7 @@ const c1 = h.forwardRef(
|
|
|
6040
6040
|
)
|
|
6041
6041
|
);
|
|
6042
6042
|
c1.displayName = "KPIComparisonCustom";
|
|
6043
|
-
const l1 = ({ className: e }) => /* @__PURE__ */
|
|
6043
|
+
const l1 = ({ className: e }) => /* @__PURE__ */ N(
|
|
6044
6044
|
"svg",
|
|
6045
6045
|
{
|
|
6046
6046
|
width: "12",
|
|
@@ -6072,7 +6072,7 @@ const l1 = ({ className: e }) => /* @__PURE__ */ P(
|
|
|
6072
6072
|
)
|
|
6073
6073
|
]
|
|
6074
6074
|
}
|
|
6075
|
-
), u1 = ({ className: e }) => /* @__PURE__ */
|
|
6075
|
+
), u1 = ({ className: e }) => /* @__PURE__ */ N(
|
|
6076
6076
|
"svg",
|
|
6077
6077
|
{
|
|
6078
6078
|
width: "12",
|
|
@@ -6104,7 +6104,7 @@ const l1 = ({ className: e }) => /* @__PURE__ */ P(
|
|
|
6104
6104
|
)
|
|
6105
6105
|
]
|
|
6106
6106
|
}
|
|
6107
|
-
), f1 = ({ className: e }) => /* @__PURE__ */
|
|
6107
|
+
), f1 = ({ className: e }) => /* @__PURE__ */ N(
|
|
6108
6108
|
"svg",
|
|
6109
6109
|
{
|
|
6110
6110
|
width: "16",
|
|
@@ -6154,7 +6154,7 @@ const l1 = ({ className: e }) => /* @__PURE__ */ P(
|
|
|
6154
6154
|
...i
|
|
6155
6155
|
}, a) => {
|
|
6156
6156
|
const d = t === "positive", s = e > 0 ? `+${e.toFixed(1)}%` : `${e.toFixed(1)}%`;
|
|
6157
|
-
return /* @__PURE__ */
|
|
6157
|
+
return /* @__PURE__ */ N(
|
|
6158
6158
|
"div",
|
|
6159
6159
|
{
|
|
6160
6160
|
ref: a,
|
|
@@ -6164,7 +6164,7 @@ const l1 = ({ className: e }) => /* @__PURE__ */ P(
|
|
|
6164
6164
|
),
|
|
6165
6165
|
...i,
|
|
6166
6166
|
children: [
|
|
6167
|
-
/* @__PURE__ */
|
|
6167
|
+
/* @__PURE__ */ N("div", { className: "flex items-center gap-1", children: [
|
|
6168
6168
|
d ? /* @__PURE__ */ p(l1, { className: "text-[#00995a] shrink-0" }) : /* @__PURE__ */ p(u1, { className: "text-[#d4002c] shrink-0" }),
|
|
6169
6169
|
/* @__PURE__ */ p(
|
|
6170
6170
|
"span",
|
|
@@ -6232,7 +6232,7 @@ const ao = {
|
|
|
6232
6232
|
...s
|
|
6233
6233
|
}, c) => {
|
|
6234
6234
|
const l = o ? ao[o.variant || "default"] : ao.default;
|
|
6235
|
-
return /* @__PURE__ */
|
|
6235
|
+
return /* @__PURE__ */ N(
|
|
6236
6236
|
"div",
|
|
6237
6237
|
{
|
|
6238
6238
|
ref: c,
|
|
@@ -6245,8 +6245,8 @@ const ao = {
|
|
|
6245
6245
|
...s,
|
|
6246
6246
|
children: [
|
|
6247
6247
|
/* @__PURE__ */ p("div", { className: "flex items-center justify-center shrink-0", children: i }),
|
|
6248
|
-
/* @__PURE__ */
|
|
6249
|
-
/* @__PURE__ */
|
|
6248
|
+
/* @__PURE__ */ N("div", { className: "flex-1 flex flex-col gap-2 min-w-0", children: [
|
|
6249
|
+
/* @__PURE__ */ N("div", { className: "flex items-center justify-between gap-2 w-full", children: [
|
|
6250
6250
|
/* @__PURE__ */ p(
|
|
6251
6251
|
"h3",
|
|
6252
6252
|
{
|
|
@@ -6280,7 +6280,7 @@ const ao = {
|
|
|
6280
6280
|
);
|
|
6281
6281
|
$1.displayName = "KPICardCustom";
|
|
6282
6282
|
const p1 = ({ color: e = "#312e4d" }) => /* @__PURE__ */ p(
|
|
6283
|
-
|
|
6283
|
+
Na,
|
|
6284
6284
|
{
|
|
6285
6285
|
size: 32,
|
|
6286
6286
|
color: e,
|
|
@@ -6319,7 +6319,7 @@ const p1 = ({ color: e = "#312e4d" }) => /* @__PURE__ */ p(
|
|
|
6319
6319
|
text: "#ff305f"
|
|
6320
6320
|
}
|
|
6321
6321
|
}[a?.variant || "default"];
|
|
6322
|
-
return /* @__PURE__ */
|
|
6322
|
+
return /* @__PURE__ */ N(
|
|
6323
6323
|
"div",
|
|
6324
6324
|
{
|
|
6325
6325
|
ref: v,
|
|
@@ -6332,8 +6332,8 @@ const p1 = ({ color: e = "#312e4d" }) => /* @__PURE__ */ p(
|
|
|
6332
6332
|
...m,
|
|
6333
6333
|
children: [
|
|
6334
6334
|
/* @__PURE__ */ p("div", { className: "flex items-center justify-center shrink-0", children: d || /* @__PURE__ */ p(p1, { color: $[s] }) }),
|
|
6335
|
-
/* @__PURE__ */
|
|
6336
|
-
/* @__PURE__ */
|
|
6335
|
+
/* @__PURE__ */ N("div", { className: "flex-1 flex flex-col gap-2 min-w-0", children: [
|
|
6336
|
+
/* @__PURE__ */ N("div", { className: "flex items-center justify-between gap-2 w-full", children: [
|
|
6337
6337
|
/* @__PURE__ */ p(
|
|
6338
6338
|
"h3",
|
|
6339
6339
|
{
|
|
@@ -6356,7 +6356,7 @@ const p1 = ({ color: e = "#312e4d" }) => /* @__PURE__ */ p(
|
|
|
6356
6356
|
}
|
|
6357
6357
|
)
|
|
6358
6358
|
] }),
|
|
6359
|
-
/* @__PURE__ */
|
|
6359
|
+
/* @__PURE__ */ N("div", { className: "flex items-end gap-1", children: [
|
|
6360
6360
|
/* @__PURE__ */ p(
|
|
6361
6361
|
"span",
|
|
6362
6362
|
{
|
|
@@ -6365,7 +6365,7 @@ const p1 = ({ color: e = "#312e4d" }) => /* @__PURE__ */ p(
|
|
|
6365
6365
|
children: t
|
|
6366
6366
|
}
|
|
6367
6367
|
),
|
|
6368
|
-
r !== void 0 ? /* @__PURE__ */
|
|
6368
|
+
r !== void 0 ? /* @__PURE__ */ N(
|
|
6369
6369
|
"span",
|
|
6370
6370
|
{
|
|
6371
6371
|
className: "text-base leading-[18px] font-medium text-[#575385]",
|
|
@@ -6443,7 +6443,7 @@ const m1 = h.forwardRef(
|
|
|
6443
6443
|
active: "#00b56b",
|
|
6444
6444
|
disabled: "#a29fba"
|
|
6445
6445
|
}[n];
|
|
6446
|
-
return e === "spinner" ? /* @__PURE__ */
|
|
6446
|
+
return e === "spinner" ? /* @__PURE__ */ N(
|
|
6447
6447
|
"div",
|
|
6448
6448
|
{
|
|
6449
6449
|
ref: d,
|
|
@@ -6468,7 +6468,7 @@ const m1 = h.forwardRef(
|
|
|
6468
6468
|
/* @__PURE__ */ p("span", { className: "sr-only", children: "Cargando..." })
|
|
6469
6469
|
]
|
|
6470
6470
|
}
|
|
6471
|
-
) : /* @__PURE__ */
|
|
6471
|
+
) : /* @__PURE__ */ N(
|
|
6472
6472
|
"div",
|
|
6473
6473
|
{
|
|
6474
6474
|
ref: d,
|
|
@@ -6510,7 +6510,7 @@ const g1 = h.forwardRef(
|
|
|
6510
6510
|
disabled: i,
|
|
6511
6511
|
className: a,
|
|
6512
6512
|
...d
|
|
6513
|
-
}, s) => /* @__PURE__ */
|
|
6513
|
+
}, s) => /* @__PURE__ */ N(
|
|
6514
6514
|
"div",
|
|
6515
6515
|
{
|
|
6516
6516
|
ref: s,
|
|
@@ -6526,7 +6526,7 @@ const g1 = h.forwardRef(
|
|
|
6526
6526
|
),
|
|
6527
6527
|
...d,
|
|
6528
6528
|
children: [
|
|
6529
|
-
/* @__PURE__ */
|
|
6529
|
+
/* @__PURE__ */ N("div", { className: "flex gap-3 items-center h-6", children: [
|
|
6530
6530
|
/* @__PURE__ */ p("div", { className: "flex items-center justify-center shrink-0 w-6 h-6", children: /* @__PURE__ */ p(
|
|
6531
6531
|
"div",
|
|
6532
6532
|
{
|
|
@@ -6594,7 +6594,7 @@ const so = {
|
|
|
6594
6594
|
...c
|
|
6595
6595
|
}, l) => {
|
|
6596
6596
|
const u = a ? so[a.variant || "default"] : so.default;
|
|
6597
|
-
return /* @__PURE__ */
|
|
6597
|
+
return /* @__PURE__ */ N(
|
|
6598
6598
|
"div",
|
|
6599
6599
|
{
|
|
6600
6600
|
ref: l,
|
|
@@ -6605,8 +6605,8 @@ const so = {
|
|
|
6605
6605
|
...c,
|
|
6606
6606
|
children: [
|
|
6607
6607
|
/* @__PURE__ */ p("div", { className: "flex items-center justify-center shrink-0", children: i }),
|
|
6608
|
-
/* @__PURE__ */
|
|
6609
|
-
/* @__PURE__ */
|
|
6608
|
+
/* @__PURE__ */ N("div", { className: "flex-1 flex gap-2 items-start justify-end min-w-0", children: [
|
|
6609
|
+
/* @__PURE__ */ N("div", { className: "flex-1 flex flex-col gap-1 min-w-0", children: [
|
|
6610
6610
|
/* @__PURE__ */ p(
|
|
6611
6611
|
"h3",
|
|
6612
6612
|
{
|
|
@@ -6615,7 +6615,7 @@ const so = {
|
|
|
6615
6615
|
children: e
|
|
6616
6616
|
}
|
|
6617
6617
|
),
|
|
6618
|
-
/* @__PURE__ */
|
|
6618
|
+
/* @__PURE__ */ N("div", { className: "flex items-end gap-1", children: [
|
|
6619
6619
|
/* @__PURE__ */ p(
|
|
6620
6620
|
"span",
|
|
6621
6621
|
{
|
|
@@ -6650,7 +6650,7 @@ const so = {
|
|
|
6650
6650
|
}
|
|
6651
6651
|
)
|
|
6652
6652
|
] }),
|
|
6653
|
-
/* @__PURE__ */
|
|
6653
|
+
/* @__PURE__ */ N("div", { className: "flex flex-col gap-4 items-end justify-end pb-[33px]", children: [
|
|
6654
6654
|
a && /* @__PURE__ */ p(
|
|
6655
6655
|
"button",
|
|
6656
6656
|
{
|
|
@@ -6713,7 +6713,7 @@ const qt = "#00995a", Qt = 32, en = 2, b1 = () => /* @__PURE__ */ p(
|
|
|
6713
6713
|
strokeWidth: en
|
|
6714
6714
|
}
|
|
6715
6715
|
), x1 = () => /* @__PURE__ */ p(
|
|
6716
|
-
|
|
6716
|
+
Pa,
|
|
6717
6717
|
{
|
|
6718
6718
|
size: Qt,
|
|
6719
6719
|
color: qt,
|
|
@@ -6753,7 +6753,7 @@ const qt = "#00995a", Qt = 32, en = 2, b1 = () => /* @__PURE__ */ p(
|
|
|
6753
6753
|
...f
|
|
6754
6754
|
}, m) => {
|
|
6755
6755
|
const v = C1[e], $ = c || v.icon, g = (b) => `${l}${b.toFixed(2).replace(/\B(?=(\d{3})+(?!\d))/g, ",")}`;
|
|
6756
|
-
return /* @__PURE__ */
|
|
6756
|
+
return /* @__PURE__ */ N(
|
|
6757
6757
|
"div",
|
|
6758
6758
|
{
|
|
6759
6759
|
ref: m,
|
|
@@ -6764,8 +6764,8 @@ const qt = "#00995a", Qt = 32, en = 2, b1 = () => /* @__PURE__ */ p(
|
|
|
6764
6764
|
...f,
|
|
6765
6765
|
children: [
|
|
6766
6766
|
/* @__PURE__ */ p("div", { className: "flex items-start justify-center shrink-0", children: typeof $ == "function" ? /* @__PURE__ */ p($, {}) : $ }),
|
|
6767
|
-
/* @__PURE__ */
|
|
6768
|
-
/* @__PURE__ */
|
|
6767
|
+
/* @__PURE__ */ N("div", { className: "flex-1 flex gap-2 items-start justify-end min-w-0", children: [
|
|
6768
|
+
/* @__PURE__ */ N("div", { className: "flex-1 flex flex-col gap-1 min-w-0", children: [
|
|
6769
6769
|
/* @__PURE__ */ p(
|
|
6770
6770
|
"h3",
|
|
6771
6771
|
{
|
|
@@ -6774,7 +6774,7 @@ const qt = "#00995a", Qt = 32, en = 2, b1 = () => /* @__PURE__ */ p(
|
|
|
6774
6774
|
children: v.title
|
|
6775
6775
|
}
|
|
6776
6776
|
),
|
|
6777
|
-
/* @__PURE__ */
|
|
6777
|
+
/* @__PURE__ */ N("div", { className: "flex items-end gap-1", children: [
|
|
6778
6778
|
/* @__PURE__ */ p(
|
|
6779
6779
|
"span",
|
|
6780
6780
|
{
|
|
@@ -6792,7 +6792,7 @@ const qt = "#00995a", Qt = 32, en = 2, b1 = () => /* @__PURE__ */ p(
|
|
|
6792
6792
|
}
|
|
6793
6793
|
)
|
|
6794
6794
|
] }),
|
|
6795
|
-
/* @__PURE__ */
|
|
6795
|
+
/* @__PURE__ */ N(
|
|
6796
6796
|
"div",
|
|
6797
6797
|
{
|
|
6798
6798
|
className: "flex gap-1 text-xs leading-normal font-light text-[#575385]",
|
|
@@ -6803,7 +6803,7 @@ const qt = "#00995a", Qt = 32, en = 2, b1 = () => /* @__PURE__ */ p(
|
|
|
6803
6803
|
]
|
|
6804
6804
|
}
|
|
6805
6805
|
),
|
|
6806
|
-
/* @__PURE__ */
|
|
6806
|
+
/* @__PURE__ */ N(
|
|
6807
6807
|
"div",
|
|
6808
6808
|
{
|
|
6809
6809
|
className: "flex gap-1 text-xs leading-normal font-light text-[#575385]",
|
|
@@ -6815,7 +6815,7 @@ const qt = "#00995a", Qt = 32, en = 2, b1 = () => /* @__PURE__ */ p(
|
|
|
6815
6815
|
}
|
|
6816
6816
|
)
|
|
6817
6817
|
] }),
|
|
6818
|
-
/* @__PURE__ */
|
|
6818
|
+
/* @__PURE__ */ N("div", { className: "flex flex-col gap-4 items-end justify-end pl-12 pb-[33px]", children: [
|
|
6819
6819
|
i && /* @__PURE__ */ p(
|
|
6820
6820
|
"button",
|
|
6821
6821
|
{
|
|
@@ -6878,7 +6878,7 @@ const _1 = ({
|
|
|
6878
6878
|
}
|
|
6879
6879
|
return s;
|
|
6880
6880
|
})();
|
|
6881
|
-
return /* @__PURE__ */
|
|
6881
|
+
return /* @__PURE__ */ N("div", { className: "flex gap-1.5 items-center", children: [
|
|
6882
6882
|
/* @__PURE__ */ p(
|
|
6883
6883
|
"button",
|
|
6884
6884
|
{
|
|
@@ -6975,9 +6975,9 @@ function dr(e, t = []) {
|
|
|
6975
6975
|
);
|
|
6976
6976
|
};
|
|
6977
6977
|
};
|
|
6978
|
-
return o.scopeName = e, [r,
|
|
6978
|
+
return o.scopeName = e, [r, N1(o, ...t)];
|
|
6979
6979
|
}
|
|
6980
|
-
function
|
|
6980
|
+
function N1(...e) {
|
|
6981
6981
|
const t = e[0];
|
|
6982
6982
|
if (e.length === 1) return t;
|
|
6983
6983
|
const n = () => {
|
|
@@ -7000,7 +7000,7 @@ function lo(e, t) {
|
|
|
7000
7000
|
return e(t);
|
|
7001
7001
|
e != null && (e.current = t);
|
|
7002
7002
|
}
|
|
7003
|
-
function
|
|
7003
|
+
function P1(...e) {
|
|
7004
7004
|
return (t) => {
|
|
7005
7005
|
let n = !1;
|
|
7006
7006
|
const r = e.map((o) => {
|
|
@@ -7017,7 +7017,7 @@ function N1(...e) {
|
|
|
7017
7017
|
};
|
|
7018
7018
|
}
|
|
7019
7019
|
function ne(...e) {
|
|
7020
|
-
return h.useCallback(
|
|
7020
|
+
return h.useCallback(P1(...e), e);
|
|
7021
7021
|
}
|
|
7022
7022
|
function E1(e) {
|
|
7023
7023
|
const t = e + "CollectionProvider", [n, r] = dr(t), [o, i] = n(
|
|
@@ -7037,8 +7037,8 @@ function E1(e) {
|
|
|
7037
7037
|
c.displayName = d;
|
|
7038
7038
|
const l = e + "CollectionItemSlot", u = "data-radix-collection-item", f = Mt(l), m = Me.forwardRef(
|
|
7039
7039
|
($, g) => {
|
|
7040
|
-
const { scope: b, children: y, ...w } = $, x = Me.useRef(null), S = ne(g, x),
|
|
7041
|
-
return Me.useEffect(() => (
|
|
7040
|
+
const { scope: b, children: y, ...w } = $, x = Me.useRef(null), S = ne(g, x), P = i(l, b);
|
|
7041
|
+
return Me.useEffect(() => (P.itemMap.set(x, { ref: x, ...w }), () => void P.itemMap.delete(x))), /* @__PURE__ */ p(f, { [u]: "", ref: S, children: y });
|
|
7042
7042
|
}
|
|
7043
7043
|
);
|
|
7044
7044
|
m.displayName = l;
|
|
@@ -7049,7 +7049,7 @@ function E1(e) {
|
|
|
7049
7049
|
if (!y) return [];
|
|
7050
7050
|
const w = Array.from(y.querySelectorAll(`[${u}]`));
|
|
7051
7051
|
return Array.from(g.itemMap.values()).sort(
|
|
7052
|
-
(
|
|
7052
|
+
(P, _) => w.indexOf(P.ref.current) - w.indexOf(_.ref.current)
|
|
7053
7053
|
);
|
|
7054
7054
|
}, [g.collectionRef, g.itemMap]);
|
|
7055
7055
|
}
|
|
@@ -7124,7 +7124,7 @@ var T1 = "DismissableLayer", Fn = "dismissableLayer.update", F1 = "dismissableLa
|
|
|
7124
7124
|
} = e, c = h.useContext(pi), [l, u] = h.useState(null), f = l?.ownerDocument ?? globalThis?.document, [, m] = h.useState({}), v = ne(t, (_) => u(_)), $ = Array.from(c.layers), [g] = [...c.layersWithOutsidePointerEventsDisabled].slice(-1), b = $.indexOf(g), y = l ? $.indexOf(l) : -1, w = c.layersWithOutsidePointerEventsDisabled.size > 0, x = y >= b, S = z1((_) => {
|
|
7125
7125
|
const k = _.target, D = [...c.branches].some((M) => M.contains(k));
|
|
7126
7126
|
!x || D || (o?.(_), a?.(_), _.defaultPrevented || d?.());
|
|
7127
|
-
}, f),
|
|
7127
|
+
}, f), P = Z1((_) => {
|
|
7128
7128
|
const k = _.target;
|
|
7129
7129
|
[...c.branches].some((M) => M.contains(k)) || (i?.(_), a?.(_), _.defaultPrevented || d?.());
|
|
7130
7130
|
}, f);
|
|
@@ -7149,8 +7149,8 @@ var T1 = "DismissableLayer", Fn = "dismissableLayer.update", F1 = "dismissableLa
|
|
|
7149
7149
|
pointerEvents: w ? x ? "auto" : "none" : void 0,
|
|
7150
7150
|
...e.style
|
|
7151
7151
|
},
|
|
7152
|
-
onFocusCapture: Q(e.onFocusCapture,
|
|
7153
|
-
onBlurCapture: Q(e.onBlurCapture,
|
|
7152
|
+
onFocusCapture: Q(e.onFocusCapture, P.onFocusCapture),
|
|
7153
|
+
onBlurCapture: Q(e.onBlurCapture, P.onBlurCapture),
|
|
7154
7154
|
onPointerDownCapture: Q(
|
|
7155
7155
|
e.onPointerDownCapture,
|
|
7156
7156
|
S.onPointerDownCapture
|
|
@@ -7654,9 +7654,9 @@ const lf = (e) => ({
|
|
|
7654
7654
|
const u = bi(l), f = {
|
|
7655
7655
|
x: n,
|
|
7656
7656
|
y: r
|
|
7657
|
-
}, m = ur(o), v = lr(m), $ = await a.getDimensions(c), g = m === "y", b = g ? "top" : "left", y = g ? "bottom" : "right", w = g ? "clientHeight" : "clientWidth", x = i.reference[v] + i.reference[m] - f[m] - i.floating[v], S = f[m] - i.reference[m],
|
|
7658
|
-
let _ =
|
|
7659
|
-
(!_ || !await (a.isElement == null ? void 0 : a.isElement(
|
|
7657
|
+
}, m = ur(o), v = lr(m), $ = await a.getDimensions(c), g = m === "y", b = g ? "top" : "left", y = g ? "bottom" : "right", w = g ? "clientHeight" : "clientWidth", x = i.reference[v] + i.reference[m] - f[m] - i.floating[v], S = f[m] - i.reference[m], P = await (a.getOffsetParent == null ? void 0 : a.getOffsetParent(c));
|
|
7658
|
+
let _ = P ? P[w] : 0;
|
|
7659
|
+
(!_ || !await (a.isElement == null ? void 0 : a.isElement(P))) && (_ = d.floating[w] || i.floating[v]);
|
|
7660
7660
|
const k = x / 2 - S / 2, D = _ / 2 - $[v] / 2 - 1, M = Ie(u[b], D), B = Ie(u[y], D), E = M, z = _ - $[v] - B, O = _ / 2 - $[v] / 2 + k, j = Ln(E, O, z), T = !s.arrow && at(o) != null && O !== j && i.reference[v] / 2 - (O < E ? M : B) - $[v] / 2 < 0, Z = T ? O < E ? O - E : O - z : 0;
|
|
7661
7661
|
return {
|
|
7662
7662
|
[m]: f[m] + Z,
|
|
@@ -7694,8 +7694,8 @@ const lf = (e) => ({
|
|
|
7694
7694
|
} = Se(e, t);
|
|
7695
7695
|
if ((n = i.arrow) != null && n.alignmentOffset)
|
|
7696
7696
|
return {};
|
|
7697
|
-
const b = _e(o), y = ge(d), w = _e(d) === d, x = await (s.isRTL == null ? void 0 : s.isRTL(c.floating)), S = f || (w || !$ ? [jt(d)] : nf(d)),
|
|
7698
|
-
!f &&
|
|
7697
|
+
const b = _e(o), y = ge(d), w = _e(d) === d, x = await (s.isRTL == null ? void 0 : s.isRTL(c.floating)), S = f || (w || !$ ? [jt(d)] : nf(d)), P = v !== "none";
|
|
7698
|
+
!f && P && S.push(...df(d, $, v, x));
|
|
7699
7699
|
const _ = [d, ...S], k = await wt(t, g), D = [];
|
|
7700
7700
|
let M = ((r = i.flip) == null ? void 0 : r.overflows) || [];
|
|
7701
7701
|
if (l && D.push(k[b]), u) {
|
|
@@ -7726,7 +7726,7 @@ const lf = (e) => ({
|
|
|
7726
7726
|
case "bestFit": {
|
|
7727
7727
|
var z;
|
|
7728
7728
|
const Z = (z = M.filter((R) => {
|
|
7729
|
-
if (
|
|
7729
|
+
if (P) {
|
|
7730
7730
|
const U = ge(R.placement);
|
|
7731
7731
|
return U === y || // Create a bias to the `y` side axis due to horizontal
|
|
7732
7732
|
// reading directions favoring greater width.
|
|
@@ -7943,8 +7943,8 @@ const pf = function(e) {
|
|
|
7943
7943
|
}
|
|
7944
7944
|
if (c) {
|
|
7945
7945
|
var b, y;
|
|
7946
|
-
const w = f === "y" ? "width" : "height", x = yi.has(_e(o)), S = i.reference[u] - i.floating[w] + (x && ((b = a.offset) == null ? void 0 : b[u]) || 0) + (x ? 0 : g.crossAxis),
|
|
7947
|
-
v < S ? v = S : v >
|
|
7946
|
+
const w = f === "y" ? "width" : "height", x = yi.has(_e(o)), S = i.reference[u] - i.floating[w] + (x && ((b = a.offset) == null ? void 0 : b[u]) || 0) + (x ? 0 : g.crossAxis), P = i.reference[u] + i.reference[w] + (x ? 0 : ((y = a.offset) == null ? void 0 : y[u]) || 0) - (x ? g.crossAxis : 0);
|
|
7947
|
+
v < S ? v = S : v > P && (v = P);
|
|
7948
7948
|
}
|
|
7949
7949
|
return {
|
|
7950
7950
|
[f]: m,
|
|
@@ -7973,9 +7973,9 @@ const pf = function(e) {
|
|
|
7973
7973
|
} = i.floating;
|
|
7974
7974
|
let g, b;
|
|
7975
7975
|
u === "top" || u === "bottom" ? (g = u, b = f === (await (a.isRTL == null ? void 0 : a.isRTL(d.floating)) ? "start" : "end") ? "left" : "right") : (b = u, g = f === "end" ? "top" : "bottom");
|
|
7976
|
-
const y = $ - l.top - l.bottom, w = v - l.left - l.right, x = Ie($ - l[g], y), S = Ie(v - l[b], w),
|
|
7976
|
+
const y = $ - l.top - l.bottom, w = v - l.left - l.right, x = Ie($ - l[g], y), S = Ie(v - l[b], w), P = !t.middlewareData.shift;
|
|
7977
7977
|
let _ = x, k = S;
|
|
7978
|
-
if ((n = t.middlewareData.shift) != null && n.enabled.x && (k = w), (r = t.middlewareData.shift) != null && r.enabled.y && (_ = y),
|
|
7978
|
+
if ((n = t.middlewareData.shift) != null && n.enabled.x && (k = w), (r = t.middlewareData.shift) != null && r.enabled.y && (_ = y), P && !f) {
|
|
7979
7979
|
const M = se(l.left, 0), B = se(l.right, 0), E = se(l.top, 0), z = se(l.bottom, 0);
|
|
7980
7980
|
m ? k = v - 2 * (M !== 0 || B !== 0 ? M + B : se(l.left, l.right)) : _ = $ - 2 * (E !== 0 || z !== 0 ? E + z : se(l.top, l.bottom));
|
|
7981
7981
|
}
|
|
@@ -8062,9 +8062,9 @@ function _f(e) {
|
|
|
8062
8062
|
function $r() {
|
|
8063
8063
|
return typeof CSS > "u" || !CSS.supports ? !1 : CSS.supports("-webkit-backdrop-filter", "none");
|
|
8064
8064
|
}
|
|
8065
|
-
const
|
|
8065
|
+
const Nf = /* @__PURE__ */ new Set(["html", "body", "#document"]);
|
|
8066
8066
|
function rt(e) {
|
|
8067
|
-
return
|
|
8067
|
+
return Nf.has(dt(e));
|
|
8068
8068
|
}
|
|
8069
8069
|
function he(e) {
|
|
8070
8070
|
return ce(e).getComputedStyle(e);
|
|
@@ -8135,10 +8135,10 @@ function et(e) {
|
|
|
8135
8135
|
y: d
|
|
8136
8136
|
};
|
|
8137
8137
|
}
|
|
8138
|
-
const
|
|
8138
|
+
const Pf = /* @__PURE__ */ ve(0);
|
|
8139
8139
|
function Si(e) {
|
|
8140
8140
|
const t = ce(e);
|
|
8141
|
-
return !$r() || !t.visualViewport ?
|
|
8141
|
+
return !$r() || !t.visualViewport ? Pf : {
|
|
8142
8142
|
x: t.visualViewport.offsetLeft,
|
|
8143
8143
|
y: t.visualViewport.offsetTop
|
|
8144
8144
|
};
|
|
@@ -8270,9 +8270,9 @@ function _o(e, t, n) {
|
|
|
8270
8270
|
}
|
|
8271
8271
|
return Ut(r);
|
|
8272
8272
|
}
|
|
8273
|
-
function
|
|
8273
|
+
function Ni(e, t) {
|
|
8274
8274
|
const n = Oe(e);
|
|
8275
|
-
return n === t || !pe(n) || rt(n) ? !1 : he(n).position === "fixed" ||
|
|
8275
|
+
return n === t || !pe(n) || rt(n) ? !1 : he(n).position === "fixed" || Ni(n, t);
|
|
8276
8276
|
}
|
|
8277
8277
|
function Ff(e, t) {
|
|
8278
8278
|
const n = t.get(e);
|
|
@@ -8283,7 +8283,7 @@ function Ff(e, t) {
|
|
|
8283
8283
|
let a = i ? Oe(e) : e;
|
|
8284
8284
|
for (; pe(a) && !rt(a); ) {
|
|
8285
8285
|
const d = he(a), s = fr(a);
|
|
8286
|
-
!s && d.position === "fixed" && (o = null), (i ? !s && !o : !s && d.position === "static" && !!o && kf.has(o.position) || Ct(a) && !s &&
|
|
8286
|
+
!s && d.position === "fixed" && (o = null), (i ? !s && !o : !s && d.position === "static" && !!o && kf.has(o.position) || Ct(a) && !s && Ni(e, a)) ? r = r.filter((l) => l !== a) : o = d, a = Oe(a);
|
|
8287
8287
|
}
|
|
8288
8288
|
return t.set(e, r), r;
|
|
8289
8289
|
}
|
|
@@ -8342,7 +8342,7 @@ function Df(e, t, n) {
|
|
|
8342
8342
|
function yn(e) {
|
|
8343
8343
|
return he(e).position === "static";
|
|
8344
8344
|
}
|
|
8345
|
-
function
|
|
8345
|
+
function No(e, t) {
|
|
8346
8346
|
if (!be(e) || he(e).position === "fixed")
|
|
8347
8347
|
return null;
|
|
8348
8348
|
if (t)
|
|
@@ -8350,7 +8350,7 @@ function Po(e, t) {
|
|
|
8350
8350
|
let n = e.offsetParent;
|
|
8351
8351
|
return we(e) === n && (n = n.ownerDocument.body), n;
|
|
8352
8352
|
}
|
|
8353
|
-
function
|
|
8353
|
+
function Pi(e, t) {
|
|
8354
8354
|
const n = ce(e);
|
|
8355
8355
|
if (nn(e))
|
|
8356
8356
|
return n;
|
|
@@ -8363,13 +8363,13 @@ function Ni(e, t) {
|
|
|
8363
8363
|
}
|
|
8364
8364
|
return n;
|
|
8365
8365
|
}
|
|
8366
|
-
let r =
|
|
8366
|
+
let r = No(e, t);
|
|
8367
8367
|
for (; r && yf(r) && yn(r); )
|
|
8368
|
-
r =
|
|
8368
|
+
r = No(r, t);
|
|
8369
8369
|
return r && rt(r) && yn(r) && !fr(r) ? n : r || _f(e) || n;
|
|
8370
8370
|
}
|
|
8371
8371
|
const zf = async function(e) {
|
|
8372
|
-
const t = this.getOffsetParent ||
|
|
8372
|
+
const t = this.getOffsetParent || Pi, n = this.getDimensions, r = await n(e.floating);
|
|
8373
8373
|
return {
|
|
8374
8374
|
reference: Df(e.reference, await t(e.floating), e.strategy),
|
|
8375
8375
|
floating: {
|
|
@@ -8387,7 +8387,7 @@ const Bf = {
|
|
|
8387
8387
|
convertOffsetParentRelativeRectToViewportRelativeRect: Rf,
|
|
8388
8388
|
getDocumentElement: we,
|
|
8389
8389
|
getClippingRect: Lf,
|
|
8390
|
-
getOffsetParent:
|
|
8390
|
+
getOffsetParent: Pi,
|
|
8391
8391
|
getElementRects: zf,
|
|
8392
8392
|
getClientRects: Af,
|
|
8393
8393
|
getDimensions: Mf,
|
|
@@ -8420,8 +8420,8 @@ function jf(e, t) {
|
|
|
8420
8420
|
threshold: se(0, Ie(1, s)) || 1
|
|
8421
8421
|
};
|
|
8422
8422
|
let x = !0;
|
|
8423
|
-
function S(
|
|
8424
|
-
const _ =
|
|
8423
|
+
function S(P) {
|
|
8424
|
+
const _ = P[0].intersectionRatio;
|
|
8425
8425
|
if (_ !== s) {
|
|
8426
8426
|
if (!x)
|
|
8427
8427
|
return a();
|
|
@@ -8480,7 +8480,7 @@ function Uf(e, t, n, r) {
|
|
|
8480
8480
|
}), u?.(), (b = m) == null || b.disconnect(), m = null, s && cancelAnimationFrame(v);
|
|
8481
8481
|
};
|
|
8482
8482
|
}
|
|
8483
|
-
const Wf = pf, Vf = hf, Hf = uf, Gf = gf, Kf = ff,
|
|
8483
|
+
const Wf = pf, Vf = hf, Hf = uf, Gf = gf, Kf = ff, Po = lf, Xf = mf, Yf = (e, t, n) => {
|
|
8484
8484
|
const r = /* @__PURE__ */ new Map(), o = {
|
|
8485
8485
|
platform: Bf,
|
|
8486
8486
|
...n
|
|
@@ -8562,18 +8562,18 @@ function Qf(e) {
|
|
|
8562
8562
|
}), [f, m] = h.useState(r);
|
|
8563
8563
|
Wt(f, r) || m(r);
|
|
8564
8564
|
const [v, $] = h.useState(null), [g, b] = h.useState(null), y = h.useCallback((R) => {
|
|
8565
|
-
R !==
|
|
8565
|
+
R !== P.current && (P.current = R, $(R));
|
|
8566
8566
|
}, []), w = h.useCallback((R) => {
|
|
8567
8567
|
R !== _.current && (_.current = R, b(R));
|
|
8568
|
-
}, []), x = i || v, S = a || g,
|
|
8569
|
-
if (!
|
|
8568
|
+
}, []), x = i || v, S = a || g, P = h.useRef(null), _ = h.useRef(null), k = h.useRef(l), D = s != null, M = wn(s), B = wn(o), E = wn(c), z = h.useCallback(() => {
|
|
8569
|
+
if (!P.current || !_.current)
|
|
8570
8570
|
return;
|
|
8571
8571
|
const R = {
|
|
8572
8572
|
placement: t,
|
|
8573
8573
|
strategy: n,
|
|
8574
8574
|
middleware: f
|
|
8575
8575
|
};
|
|
8576
|
-
B.current && (R.platform = B.current), Yf(
|
|
8576
|
+
B.current && (R.platform = B.current), Yf(P.current, _.current, R).then((U) => {
|
|
8577
8577
|
const ee = {
|
|
8578
8578
|
...U,
|
|
8579
8579
|
// The floating element's position may be recomputed while it's closed
|
|
@@ -8597,14 +8597,14 @@ function Qf(e) {
|
|
|
8597
8597
|
Tt(() => (O.current = !0, () => {
|
|
8598
8598
|
O.current = !1;
|
|
8599
8599
|
}), []), Tt(() => {
|
|
8600
|
-
if (x && (
|
|
8600
|
+
if (x && (P.current = x), S && (_.current = S), x && S) {
|
|
8601
8601
|
if (M.current)
|
|
8602
8602
|
return M.current(x, S, z);
|
|
8603
8603
|
z();
|
|
8604
8604
|
}
|
|
8605
8605
|
}, [x, S, z, M, D]);
|
|
8606
8606
|
const j = h.useMemo(() => ({
|
|
8607
|
-
reference:
|
|
8607
|
+
reference: P,
|
|
8608
8608
|
floating: _,
|
|
8609
8609
|
setReference: y,
|
|
8610
8610
|
setFloating: w
|
|
@@ -8652,10 +8652,10 @@ const e2 = (e) => {
|
|
|
8652
8652
|
element: r,
|
|
8653
8653
|
padding: o
|
|
8654
8654
|
} = typeof e == "function" ? e(n) : e;
|
|
8655
|
-
return r && t(r) ? r.current != null ?
|
|
8655
|
+
return r && t(r) ? r.current != null ? Po({
|
|
8656
8656
|
element: r.current,
|
|
8657
8657
|
padding: o
|
|
8658
|
-
}).fn(n) : {} : r ?
|
|
8658
|
+
}).fn(n) : {} : r ? Po({
|
|
8659
8659
|
element: r,
|
|
8660
8660
|
padding: o
|
|
8661
8661
|
}).fn(n) : {};
|
|
@@ -8754,7 +8754,7 @@ var mr = "PopperContent", [f2, $2] = Ii(mr), Mi = h.forwardRef(
|
|
|
8754
8754
|
updatePositionStrategy: m = "optimized",
|
|
8755
8755
|
onPlaced: v,
|
|
8756
8756
|
...$
|
|
8757
|
-
} = e, g = ki(mr, n), [b, y] = h.useState(null), w = ne(t, (A) => y(A)), [x, S] = h.useState(null),
|
|
8757
|
+
} = e, g = ki(mr, n), [b, y] = h.useState(null), w = ne(t, (A) => y(A)), [x, S] = h.useState(null), P = l2(x), _ = P?.width ?? 0, k = P?.height ?? 0, D = r + (i !== "center" ? "-" + i : ""), M = typeof l == "number" ? l : { top: 0, right: 0, bottom: 0, left: 0, ...l }, B = Array.isArray(c) ? c : [c], E = B.length > 0, z = {
|
|
8758
8758
|
padding: M,
|
|
8759
8759
|
boundary: B.filter(h2),
|
|
8760
8760
|
// with `strategy: 'fixed'`, this is the only way to get it to respect boundaries
|
|
@@ -8793,7 +8793,7 @@ var mr = "PopperContent", [f2, $2] = Ii(mr), Mi = h.forwardRef(
|
|
|
8793
8793
|
ae(() => {
|
|
8794
8794
|
Z && te?.();
|
|
8795
8795
|
}, [Z, te]);
|
|
8796
|
-
const ct = R.arrow?.x, lt = R.arrow?.y,
|
|
8796
|
+
const ct = R.arrow?.x, lt = R.arrow?.y, Ne = R.arrow?.centerOffset !== 0, [We, Fe] = h.useState();
|
|
8797
8797
|
return ae(() => {
|
|
8798
8798
|
b && Fe(window.getComputedStyle(b).zIndex);
|
|
8799
8799
|
}, [b]), /* @__PURE__ */ p(
|
|
@@ -8828,7 +8828,7 @@ var mr = "PopperContent", [f2, $2] = Ii(mr), Mi = h.forwardRef(
|
|
|
8828
8828
|
onArrowChange: S,
|
|
8829
8829
|
arrowX: ct,
|
|
8830
8830
|
arrowY: lt,
|
|
8831
|
-
shouldHideArrow:
|
|
8831
|
+
shouldHideArrow: Ne,
|
|
8832
8832
|
children: /* @__PURE__ */ p(
|
|
8833
8833
|
J.div,
|
|
8834
8834
|
{
|
|
@@ -8988,7 +8988,7 @@ var ji = Object.freeze({
|
|
|
8988
8988
|
clip: "rect(0, 0, 0, 0)",
|
|
8989
8989
|
whiteSpace: "nowrap",
|
|
8990
8990
|
wordWrap: "normal"
|
|
8991
|
-
}),
|
|
8991
|
+
}), N2 = "VisuallyHidden", P2 = h.forwardRef(
|
|
8992
8992
|
(e, t) => /* @__PURE__ */ p(
|
|
8993
8993
|
J.span,
|
|
8994
8994
|
{
|
|
@@ -8998,7 +8998,7 @@ var ji = Object.freeze({
|
|
|
8998
8998
|
}
|
|
8999
8999
|
)
|
|
9000
9000
|
);
|
|
9001
|
-
|
|
9001
|
+
P2.displayName = N2;
|
|
9002
9002
|
var E2 = function(e) {
|
|
9003
9003
|
if (typeof document > "u")
|
|
9004
9004
|
return null;
|
|
@@ -9196,12 +9196,12 @@ var Hi = Z2(), Sn = function() {
|
|
|
9196
9196
|
onScrollCapture: Sn,
|
|
9197
9197
|
onWheelCapture: Sn,
|
|
9198
9198
|
onTouchMoveCapture: Sn
|
|
9199
|
-
}), o = r[0], i = r[1], a = e.forwardProps, d = e.children, s = e.className, c = e.removeScrollBar, l = e.enabled, u = e.shards, f = e.sideCar, m = e.noRelative, v = e.noIsolation, $ = e.inert, g = e.allowPinchZoom, b = e.as, y = b === void 0 ? "div" : b, w = e.gapMode, x = Wi(e, ["forwardProps", "children", "className", "removeScrollBar", "enabled", "shards", "sideCar", "noRelative", "noIsolation", "inert", "allowPinchZoom", "as", "gapMode"]), S = f,
|
|
9199
|
+
}), o = r[0], i = r[1], a = e.forwardProps, d = e.children, s = e.className, c = e.removeScrollBar, l = e.enabled, u = e.shards, f = e.sideCar, m = e.noRelative, v = e.noIsolation, $ = e.inert, g = e.allowPinchZoom, b = e.as, y = b === void 0 ? "div" : b, w = e.gapMode, x = Wi(e, ["forwardProps", "children", "className", "removeScrollBar", "enabled", "shards", "sideCar", "noRelative", "noIsolation", "inert", "allowPinchZoom", "as", "gapMode"]), S = f, P = M2([n, t]), _ = me(me({}, x), o);
|
|
9200
9200
|
return h.createElement(
|
|
9201
9201
|
h.Fragment,
|
|
9202
9202
|
null,
|
|
9203
9203
|
l && h.createElement(S, { sideCar: Hi, removeScrollBar: c, shards: u, noRelative: m, noIsolation: v, inert: $, setCallbacks: i, allowPinchZoom: !!g, lockRef: n, gapMode: w }),
|
|
9204
|
-
a ? h.cloneElement(h.Children.only(d), me(me({}, _), { ref:
|
|
9204
|
+
a ? h.cloneElement(h.Children.only(d), me(me({}, _), { ref: P })) : h.createElement(y, me({}, _, { className: s, ref: P }), d)
|
|
9205
9205
|
);
|
|
9206
9206
|
});
|
|
9207
9207
|
an.defaultProps = {
|
|
@@ -9447,13 +9447,13 @@ function u3(e) {
|
|
|
9447
9447
|
var d = h.useCallback(function($, g) {
|
|
9448
9448
|
if ("touches" in $ && $.touches.length === 2 || $.type === "wheel" && $.ctrlKey)
|
|
9449
9449
|
return !a.current.allowPinchZoom;
|
|
9450
|
-
var b = kt($), y = n.current, w = "deltaX" in $ ? $.deltaX : y[0] - b[0], x = "deltaY" in $ ? $.deltaY : y[1] - b[1], S,
|
|
9451
|
-
if ("touches" in $ && _ === "h" &&
|
|
9450
|
+
var b = kt($), y = n.current, w = "deltaX" in $ ? $.deltaX : y[0] - b[0], x = "deltaY" in $ ? $.deltaY : y[1] - b[1], S, P = $.target, _ = Math.abs(w) > Math.abs(x) ? "h" : "v";
|
|
9451
|
+
if ("touches" in $ && _ === "h" && P.type === "range")
|
|
9452
9452
|
return !1;
|
|
9453
|
-
var k = Oo(_,
|
|
9453
|
+
var k = Oo(_, P);
|
|
9454
9454
|
if (!k)
|
|
9455
9455
|
return !0;
|
|
9456
|
-
if (k ? S = _ : (S = _ === "v" ? "h" : "v", k = Oo(_,
|
|
9456
|
+
if (k ? S = _ : (S = _ === "v" ? "h" : "v", k = Oo(_, P)), !k)
|
|
9457
9457
|
return !1;
|
|
9458
9458
|
if (!r.current && "changedTouches" in $ && (w || x) && (r.current = S), !S)
|
|
9459
9459
|
return !0;
|
|
@@ -9538,7 +9538,7 @@ var p3 = [" ", "Enter", "ArrowUp", "ArrowDown"], h3 = [" ", "Enter"], je = "Sele
|
|
|
9538
9538
|
disabled: f,
|
|
9539
9539
|
required: m,
|
|
9540
9540
|
form: v
|
|
9541
|
-
} = e, $ = cn(t), [g, b] = h.useState(null), [y, w] = h.useState(null), [x, S] = h.useState(!1),
|
|
9541
|
+
} = e, $ = cn(t), [g, b] = h.useState(null), [y, w] = h.useState(null), [x, S] = h.useState(!1), P = A1(c), [_, k] = Ro({
|
|
9542
9542
|
prop: r,
|
|
9543
9543
|
defaultProp: o ?? !1,
|
|
9544
9544
|
onChange: i,
|
|
@@ -9549,7 +9549,7 @@ var p3 = [" ", "Enter", "ArrowUp", "ArrowDown"], h3 = [" ", "Enter"], je = "Sele
|
|
|
9549
9549
|
onChange: s,
|
|
9550
9550
|
caller: je
|
|
9551
9551
|
}), B = h.useRef(null), E = g ? v || !!g.closest("form") : !0, [z, O] = h.useState(/* @__PURE__ */ new Set()), j = Array.from(z).map((T) => T.props.value).join(";");
|
|
9552
|
-
return /* @__PURE__ */ p(g2, { ...$, children: /* @__PURE__ */
|
|
9552
|
+
return /* @__PURE__ */ p(g2, { ...$, children: /* @__PURE__ */ N(
|
|
9553
9553
|
g3,
|
|
9554
9554
|
{
|
|
9555
9555
|
required: m,
|
|
@@ -9565,7 +9565,7 @@ var p3 = [" ", "Enter", "ArrowUp", "ArrowDown"], h3 = [" ", "Enter"], je = "Sele
|
|
|
9565
9565
|
onValueChange: M,
|
|
9566
9566
|
open: _,
|
|
9567
9567
|
onOpenChange: k,
|
|
9568
|
-
dir:
|
|
9568
|
+
dir: P,
|
|
9569
9569
|
triggerPointerDownPosRef: B,
|
|
9570
9570
|
disabled: f,
|
|
9571
9571
|
children: [
|
|
@@ -9585,7 +9585,7 @@ var p3 = [" ", "Enter", "ArrowUp", "ArrowDown"], h3 = [" ", "Enter"], je = "Sele
|
|
|
9585
9585
|
children: n
|
|
9586
9586
|
}
|
|
9587
9587
|
) }),
|
|
9588
|
-
E ? /* @__PURE__ */
|
|
9588
|
+
E ? /* @__PURE__ */ N(
|
|
9589
9589
|
ga,
|
|
9590
9590
|
{
|
|
9591
9591
|
"aria-hidden": !0,
|
|
@@ -9717,7 +9717,7 @@ var fe = 10, [aa, Te] = st(Ue), x3 = "SelectContentImpl", C3 = Mt("SelectContent
|
|
|
9717
9717
|
avoidCollisions: g,
|
|
9718
9718
|
//
|
|
9719
9719
|
...b
|
|
9720
|
-
} = e, y = ke(Ue, n), [w, x] = h.useState(null), [S,
|
|
9720
|
+
} = e, y = ke(Ue, n), [w, x] = h.useState(null), [S, P] = h.useState(null), _ = ne(t, (A) => x(A)), [k, D] = h.useState(null), [M, B] = h.useState(
|
|
9721
9721
|
null
|
|
9722
9722
|
), E = sn(n), [z, O] = h.useState(!1), j = h.useRef(!1);
|
|
9723
9723
|
h.useEffect(() => {
|
|
@@ -9768,7 +9768,7 @@ var fe = 10, [aa, Te] = st(Ue), x3 = "SelectContentImpl", C3 = Mt("SelectContent
|
|
|
9768
9768
|
(y.value !== void 0 && y.value === Y || W) && (D(A), W && (j.current = !0));
|
|
9769
9769
|
},
|
|
9770
9770
|
[y.value]
|
|
9771
|
-
), lt = h.useCallback(() => w?.focus(), [w]),
|
|
9771
|
+
), lt = h.useCallback(() => w?.focus(), [w]), Ne = h.useCallback(
|
|
9772
9772
|
(A, Y, oe) => {
|
|
9773
9773
|
const W = !j.current && !oe;
|
|
9774
9774
|
(y.value !== void 0 && y.value === Y || W) && B(A);
|
|
@@ -9792,11 +9792,11 @@ var fe = 10, [aa, Te] = st(Ue), x3 = "SelectContentImpl", C3 = Mt("SelectContent
|
|
|
9792
9792
|
scope: n,
|
|
9793
9793
|
content: w,
|
|
9794
9794
|
viewport: S,
|
|
9795
|
-
onViewportChange:
|
|
9795
|
+
onViewportChange: P,
|
|
9796
9796
|
itemRefCallback: ct,
|
|
9797
9797
|
selectedItem: k,
|
|
9798
9798
|
onItemLeave: lt,
|
|
9799
|
-
itemTextRefCallback:
|
|
9799
|
+
itemTextRefCallback: Ne,
|
|
9800
9800
|
focusSelectedItem: Z,
|
|
9801
9801
|
selectedItemText: M,
|
|
9802
9802
|
position: r,
|
|
@@ -9886,8 +9886,8 @@ var S3 = "SelectItemAlignedPosition", sa = h.forwardRef((e, t) => {
|
|
|
9886
9886
|
]);
|
|
9887
9887
|
d.style.minWidth = Le + "px", d.style.right = fn + "px";
|
|
9888
9888
|
}
|
|
9889
|
-
const B = f(), E = window.innerHeight - fe * 2, z = $.scrollHeight, O = window.getComputedStyle(c), j = parseInt(O.borderTopWidth, 10), T = parseInt(O.paddingTop, 10), Z = parseInt(O.borderBottomWidth, 10), R = parseInt(O.paddingBottom, 10), U = j + T + z + R + Z, ee = Math.min(g.offsetHeight * 5, U), te = window.getComputedStyle($), ct = parseInt(te.paddingTop, 10), lt = parseInt(te.paddingBottom, 10),
|
|
9890
|
-
if (Y <=
|
|
9889
|
+
const B = f(), E = window.innerHeight - fe * 2, z = $.scrollHeight, O = window.getComputedStyle(c), j = parseInt(O.borderTopWidth, 10), T = parseInt(O.paddingTop, 10), Z = parseInt(O.borderBottomWidth, 10), R = parseInt(O.paddingBottom, 10), U = j + T + z + R + Z, ee = Math.min(g.offsetHeight * 5, U), te = window.getComputedStyle($), ct = parseInt(te.paddingTop, 10), lt = parseInt(te.paddingBottom, 10), Ne = _.top + _.height / 2 - fe, We = E - Ne, Fe = g.offsetHeight / 2, A = g.offsetTop + Fe, Y = j + T + A, oe = U - Y;
|
|
9890
|
+
if (Y <= Ne) {
|
|
9891
9891
|
const H = B.length > 0 && g === B[B.length - 1].ref.current;
|
|
9892
9892
|
d.style.bottom = "0px";
|
|
9893
9893
|
const q = c.clientHeight - $.offsetTop - $.offsetHeight, le = Math.max(
|
|
@@ -9900,11 +9900,11 @@ var S3 = "SelectItemAlignedPosition", sa = h.forwardRef((e, t) => {
|
|
|
9900
9900
|
const H = B.length > 0 && g === B[0].ref.current;
|
|
9901
9901
|
d.style.top = "0px";
|
|
9902
9902
|
const le = Math.max(
|
|
9903
|
-
|
|
9903
|
+
Ne,
|
|
9904
9904
|
j + $.offsetTop + // viewport might have padding top, include it to avoid a scrollable viewport
|
|
9905
9905
|
(H ? ct : 0) + Fe
|
|
9906
9906
|
) + oe;
|
|
9907
|
-
d.style.height = le + "px", $.scrollTop = Y -
|
|
9907
|
+
d.style.height = le + "px", $.scrollTop = Y - Ne + $.offsetTop;
|
|
9908
9908
|
}
|
|
9909
9909
|
d.style.margin = `${fe}px 0`, d.style.minHeight = ee + "px", d.style.maxHeight = E + "px", r?.(), requestAnimationFrame(() => m.current = !0);
|
|
9910
9910
|
}
|
|
@@ -9925,19 +9925,19 @@ var S3 = "SelectItemAlignedPosition", sa = h.forwardRef((e, t) => {
|
|
|
9925
9925
|
ae(() => {
|
|
9926
9926
|
c && S(window.getComputedStyle(c).zIndex);
|
|
9927
9927
|
}, [c]);
|
|
9928
|
-
const
|
|
9928
|
+
const P = h.useCallback(
|
|
9929
9929
|
(_) => {
|
|
9930
9930
|
_ && v.current === !0 && (w(), y?.(), v.current = !1);
|
|
9931
9931
|
},
|
|
9932
9932
|
[w, y]
|
|
9933
9933
|
);
|
|
9934
9934
|
return /* @__PURE__ */ p(
|
|
9935
|
-
|
|
9935
|
+
N3,
|
|
9936
9936
|
{
|
|
9937
9937
|
scope: n,
|
|
9938
9938
|
contentWrapper: d,
|
|
9939
9939
|
shouldExpandOnScrollRef: m,
|
|
9940
|
-
onScrollButtonChange:
|
|
9940
|
+
onScrollButtonChange: P,
|
|
9941
9941
|
children: /* @__PURE__ */ p(
|
|
9942
9942
|
"div",
|
|
9943
9943
|
{
|
|
@@ -9998,10 +9998,10 @@ var _3 = "SelectPopperPosition", Zn = h.forwardRef((e, t) => {
|
|
|
9998
9998
|
);
|
|
9999
9999
|
});
|
|
10000
10000
|
Zn.displayName = _3;
|
|
10001
|
-
var [
|
|
10001
|
+
var [N3, gr] = st(Ue, {}), Bn = "SelectViewport", ca = h.forwardRef(
|
|
10002
10002
|
(e, t) => {
|
|
10003
10003
|
const { __scopeSelect: n, nonce: r, ...o } = e, i = Te(Bn, n), a = gr(Bn, n), d = ne(t, i.onViewportChange), s = h.useRef(0);
|
|
10004
|
-
return /* @__PURE__ */
|
|
10004
|
+
return /* @__PURE__ */ N(Hn, { children: [
|
|
10005
10005
|
/* @__PURE__ */ p(
|
|
10006
10006
|
"style",
|
|
10007
10007
|
{
|
|
@@ -10051,10 +10051,10 @@ var [P3, gr] = st(Ue, {}), Bn = "SelectViewport", ca = h.forwardRef(
|
|
|
10051
10051
|
}
|
|
10052
10052
|
);
|
|
10053
10053
|
ca.displayName = Bn;
|
|
10054
|
-
var la = "SelectGroup", [
|
|
10054
|
+
var la = "SelectGroup", [P3, E3] = st(la), R3 = h.forwardRef(
|
|
10055
10055
|
(e, t) => {
|
|
10056
10056
|
const { __scopeSelect: n, ...r } = e, o = sr();
|
|
10057
|
-
return /* @__PURE__ */ p(
|
|
10057
|
+
return /* @__PURE__ */ p(P3, { scope: n, id: o, children: /* @__PURE__ */ p(J.div, { role: "group", "aria-labelledby": o, ...r, ref: t }) });
|
|
10058
10058
|
}
|
|
10059
10059
|
);
|
|
10060
10060
|
R3.displayName = la;
|
|
@@ -10154,7 +10154,7 @@ var $t = "SelectItemText", pa = h.forwardRef(
|
|
|
10154
10154
|
() => /* @__PURE__ */ p("option", { value: s.value, disabled: s.disabled, children: m }, s.value),
|
|
10155
10155
|
[s.disabled, s.value, m]
|
|
10156
10156
|
), { onNativeOptionAdd: $, onNativeOptionRemove: g } = c;
|
|
10157
|
-
return ae(() => ($(v), () => g(v)), [$, g, v]), /* @__PURE__ */
|
|
10157
|
+
return ae(() => ($(v), () => g(v)), [$, g, v]), /* @__PURE__ */ N(Hn, { children: [
|
|
10158
10158
|
/* @__PURE__ */ p(J.span, { id: s.textId, ...i, ref: f }),
|
|
10159
10159
|
s.isSelected && a.valueNode && !a.valueNodeHasChildren ? Ht.createPortal(i.children, a.valueNode) : null
|
|
10160
10160
|
] });
|
|
@@ -10322,7 +10322,7 @@ const Vn = Lo(
|
|
|
10322
10322
|
className: d
|
|
10323
10323
|
}, s) => {
|
|
10324
10324
|
const c = r.find((m) => m.id === e), l = c?.text || o, u = a === "primary";
|
|
10325
|
-
return /* @__PURE__ */
|
|
10325
|
+
return /* @__PURE__ */ N(
|
|
10326
10326
|
Z3,
|
|
10327
10327
|
{
|
|
10328
10328
|
value: e,
|
|
@@ -10331,7 +10331,7 @@ const Vn = Lo(
|
|
|
10331
10331
|
},
|
|
10332
10332
|
disabled: n,
|
|
10333
10333
|
children: [
|
|
10334
|
-
/* @__PURE__ */
|
|
10334
|
+
/* @__PURE__ */ N(
|
|
10335
10335
|
B3,
|
|
10336
10336
|
{
|
|
10337
10337
|
ref: s,
|
|
@@ -10370,20 +10370,20 @@ const Vn = Lo(
|
|
|
10370
10370
|
"data-testid": "select-trigger",
|
|
10371
10371
|
"aria-label": i || o,
|
|
10372
10372
|
children: [
|
|
10373
|
-
!u && /* @__PURE__ */
|
|
10374
|
-
|
|
10373
|
+
!u && /* @__PURE__ */ N("div", { className: "flex flex-col flex-1 min-w-0", children: [
|
|
10374
|
+
i && !c && /* @__PURE__ */ p(
|
|
10375
10375
|
"span",
|
|
10376
10376
|
{
|
|
10377
10377
|
className: "text-xs leading-normal font-medium text-[#575385]",
|
|
10378
10378
|
"data-testid": "select-label",
|
|
10379
|
-
children: i
|
|
10379
|
+
children: i
|
|
10380
10380
|
}
|
|
10381
10381
|
),
|
|
10382
10382
|
/* @__PURE__ */ p(Fo, { asChild: !0, children: /* @__PURE__ */ p(
|
|
10383
10383
|
"span",
|
|
10384
10384
|
{
|
|
10385
10385
|
className: I(
|
|
10386
|
-
"text-sm leading-4",
|
|
10386
|
+
"text-sm leading-4 font-normal",
|
|
10387
10387
|
"text-[#312e4d]",
|
|
10388
10388
|
!c && !i && "text-base leading-5"
|
|
10389
10389
|
),
|
|
@@ -10392,8 +10392,8 @@ const Vn = Lo(
|
|
|
10392
10392
|
}
|
|
10393
10393
|
) })
|
|
10394
10394
|
] }),
|
|
10395
|
-
u && /* @__PURE__ */
|
|
10396
|
-
i && /* @__PURE__ */ p(
|
|
10395
|
+
u && /* @__PURE__ */ N("div", { className: "flex flex-col min-w-0", children: [
|
|
10396
|
+
i && !c && /* @__PURE__ */ p(
|
|
10397
10397
|
"span",
|
|
10398
10398
|
{
|
|
10399
10399
|
className: "text-xs leading-normal text-white",
|
|
@@ -10524,16 +10524,16 @@ function t$({
|
|
|
10524
10524
|
}) {
|
|
10525
10525
|
const [l, u] = pt(1), f = d !== void 0 ? d : l, m = (x) => {
|
|
10526
10526
|
d === void 0 && u(x), a?.(x);
|
|
10527
|
-
}, v = Math.ceil(t.length / n), $ = (f - 1) * n, g = $ + n, b = t.slice($, g), y = (x, S,
|
|
10527
|
+
}, v = Math.ceil(t.length / n), $ = (f - 1) * n, g = $ + n, b = t.slice($, g), y = (x, S, P) => {
|
|
10528
10528
|
if (x.render)
|
|
10529
|
-
return x.render(S,
|
|
10529
|
+
return x.render(S, P);
|
|
10530
10530
|
const _ = S[x.key];
|
|
10531
|
-
return _ == null ? "-" : typeof _ == "object" && "primary" in _ ? /* @__PURE__ */
|
|
10531
|
+
return _ == null ? "-" : typeof _ == "object" && "primary" in _ ? /* @__PURE__ */ N("div", { className: "flex flex-col min-w-0", children: [
|
|
10532
10532
|
/* @__PURE__ */ p("span", { className: "text-sm leading-[18px] text-[#312e4d] truncate", children: _.primary }),
|
|
10533
10533
|
_.secondary && /* @__PURE__ */ p("span", { className: "text-xs leading-normal text-[#575385] truncate", children: _.secondary })
|
|
10534
10534
|
] }) : /* @__PURE__ */ p("span", { className: "text-sm leading-[18px] text-[#312e4d] truncate block", children: String(_) });
|
|
10535
10535
|
}, w = (x, S) => typeof i == "function" ? i(x, S) : i;
|
|
10536
|
-
return /* @__PURE__ */
|
|
10536
|
+
return /* @__PURE__ */ N(
|
|
10537
10537
|
"div",
|
|
10538
10538
|
{
|
|
10539
10539
|
className: I(
|
|
@@ -10543,7 +10543,7 @@ function t$({
|
|
|
10543
10543
|
),
|
|
10544
10544
|
"data-testid": "table-container",
|
|
10545
10545
|
children: [
|
|
10546
|
-
/* @__PURE__ */
|
|
10546
|
+
/* @__PURE__ */ p("div", { className: "w-full overflow-x-auto", "data-testid": "table-body", children: /* @__PURE__ */ N("div", { className: "min-w-[800px]", children: [
|
|
10547
10547
|
/* @__PURE__ */ p(
|
|
10548
10548
|
"div",
|
|
10549
10549
|
{
|
|
@@ -10592,22 +10592,22 @@ function t$({
|
|
|
10592
10592
|
w(x, S)
|
|
10593
10593
|
),
|
|
10594
10594
|
"data-testid": `table-row-${S}`,
|
|
10595
|
-
children: e.map((
|
|
10595
|
+
children: e.map((P) => /* @__PURE__ */ p(
|
|
10596
10596
|
"div",
|
|
10597
10597
|
{
|
|
10598
10598
|
className: I(
|
|
10599
10599
|
"flex-1 min-w-0 overflow-hidden",
|
|
10600
|
-
|
|
10600
|
+
P.className
|
|
10601
10601
|
),
|
|
10602
|
-
"data-testid": `table-cell-${S}-${
|
|
10603
|
-
children: y(
|
|
10602
|
+
"data-testid": `table-cell-${S}-${P.key}`,
|
|
10603
|
+
children: y(P, x, S)
|
|
10604
10604
|
},
|
|
10605
|
-
|
|
10605
|
+
P.key
|
|
10606
10606
|
))
|
|
10607
10607
|
},
|
|
10608
10608
|
S
|
|
10609
10609
|
))
|
|
10610
|
-
] }),
|
|
10610
|
+
] }) }),
|
|
10611
10611
|
r && v > 1 && !s && /* @__PURE__ */ p(
|
|
10612
10612
|
"div",
|
|
10613
10613
|
{
|
|
@@ -10640,7 +10640,7 @@ const n$ = ({
|
|
|
10640
10640
|
cards: c = [],
|
|
10641
10641
|
showCards: l = !1,
|
|
10642
10642
|
className: u
|
|
10643
|
-
}) => /* @__PURE__ */
|
|
10643
|
+
}) => /* @__PURE__ */ N(
|
|
10644
10644
|
"div",
|
|
10645
10645
|
{
|
|
10646
10646
|
className: I(
|
|
@@ -10663,14 +10663,14 @@ const n$ = ({
|
|
|
10663
10663
|
{
|
|
10664
10664
|
className: "flex gap-4 w-full",
|
|
10665
10665
|
"data-testid": "table-header-cards",
|
|
10666
|
-
children: c.map((f, m) => /* @__PURE__ */
|
|
10666
|
+
children: c.map((f, m) => /* @__PURE__ */ N(
|
|
10667
10667
|
"div",
|
|
10668
10668
|
{
|
|
10669
10669
|
className: "bg-white border border-[#ecebf0] rounded-xl p-4 flex-1 flex gap-2",
|
|
10670
10670
|
"data-testid": `table-header-card-${m}`,
|
|
10671
10671
|
children: [
|
|
10672
10672
|
f.icon && /* @__PURE__ */ p("div", { className: "shrink-0", "data-testid": `table-header-card-icon-${m}`, children: f.icon }),
|
|
10673
|
-
/* @__PURE__ */
|
|
10673
|
+
/* @__PURE__ */ N("div", { className: "flex flex-col gap-1 flex-1", children: [
|
|
10674
10674
|
/* @__PURE__ */ p("span", { className: "text-base font-medium text-[#575385] leading-5", children: f.label }),
|
|
10675
10675
|
/* @__PURE__ */ p("span", { className: "text-xl font-semibold text-[#312e4d] leading-[22px]", children: f.value })
|
|
10676
10676
|
] })
|
|
@@ -10680,8 +10680,8 @@ const n$ = ({
|
|
|
10680
10680
|
))
|
|
10681
10681
|
}
|
|
10682
10682
|
),
|
|
10683
|
-
/* @__PURE__ */
|
|
10684
|
-
/* @__PURE__ */
|
|
10683
|
+
/* @__PURE__ */ N("div", { className: "flex gap-4 items-center w-full", children: [
|
|
10684
|
+
/* @__PURE__ */ N(
|
|
10685
10685
|
"div",
|
|
10686
10686
|
{
|
|
10687
10687
|
className: "relative flex-1",
|
|
@@ -10753,13 +10753,13 @@ const n$ = ({
|
|
|
10753
10753
|
}
|
|
10754
10754
|
)
|
|
10755
10755
|
] }),
|
|
10756
|
-
a && i.length > 0 && /* @__PURE__ */
|
|
10756
|
+
a && i.length > 0 && /* @__PURE__ */ N(
|
|
10757
10757
|
"div",
|
|
10758
10758
|
{
|
|
10759
10759
|
className: "flex gap-4 items-center",
|
|
10760
10760
|
"data-testid": "table-header-filters",
|
|
10761
10761
|
children: [
|
|
10762
|
-
/* @__PURE__ */
|
|
10762
|
+
/* @__PURE__ */ N("div", { className: "flex items-center gap-2 py-3", children: [
|
|
10763
10763
|
/* @__PURE__ */ p(Oa, { size: 16, className: "text-[#312e4d]" }),
|
|
10764
10764
|
/* @__PURE__ */ p("span", { className: "text-base leading-5 text-[#312e4d]", children: "Filter by" })
|
|
10765
10765
|
] }),
|
|
@@ -10778,7 +10778,7 @@ const n$ = ({
|
|
|
10778
10778
|
label: f.label,
|
|
10779
10779
|
className: "h-11"
|
|
10780
10780
|
}
|
|
10781
|
-
) : /* @__PURE__ */
|
|
10781
|
+
) : /* @__PURE__ */ N(
|
|
10782
10782
|
"button",
|
|
10783
10783
|
{
|
|
10784
10784
|
className: I(
|
|
@@ -10832,7 +10832,7 @@ const n$ = ({
|
|
|
10832
10832
|
className: s.iconColor
|
|
10833
10833
|
}
|
|
10834
10834
|
);
|
|
10835
|
-
return /* @__PURE__ */
|
|
10835
|
+
return /* @__PURE__ */ N(
|
|
10836
10836
|
"div",
|
|
10837
10837
|
{
|
|
10838
10838
|
ref: a,
|
|
@@ -10845,7 +10845,7 @@ const n$ = ({
|
|
|
10845
10845
|
"aria-live": "polite",
|
|
10846
10846
|
...i,
|
|
10847
10847
|
children: [
|
|
10848
|
-
/* @__PURE__ */
|
|
10848
|
+
/* @__PURE__ */ N("div", { className: "flex items-center gap-2 flex-shrink-0", children: [
|
|
10849
10849
|
/* @__PURE__ */ p("div", { className: "flex-shrink-0", children: n || c }),
|
|
10850
10850
|
/* @__PURE__ */ p(
|
|
10851
10851
|
"div",
|