@mp-front/components 0.0.1-next-10 → 0.0.1-next-12
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/carousel.component-BcjDXzve.cjs +80 -0
- package/dist/carousel.component-CdgrJtst.js +12762 -0
- package/dist/components/carousel/carousel-container.component.d.ts +2 -0
- package/dist/components/carousel/carousel-container.component.d.ts.map +1 -0
- package/dist/components/carousel/carousel-dots.component.d.ts +3 -0
- package/dist/components/carousel/carousel-dots.component.d.ts.map +1 -0
- package/dist/components/carousel/carousel-item.component.d.ts +3 -0
- package/dist/components/carousel/carousel-item.component.d.ts.map +1 -0
- package/dist/components/carousel/carousel-next-button.component.d.ts +2 -0
- package/dist/components/carousel/carousel-next-button.component.d.ts.map +1 -0
- package/dist/components/carousel/carousel-prev-button.component.d.ts +2 -0
- package/dist/components/carousel/carousel-prev-button.component.d.ts.map +1 -0
- package/dist/components/carousel/carousel.component.d.ts +4 -0
- package/dist/components/carousel/carousel.component.d.ts.map +1 -0
- package/dist/components/carousel/carousel.constants.d.ts +2 -0
- package/dist/components/carousel/carousel.constants.d.ts.map +1 -0
- package/dist/components/carousel/carousel.context.d.ts +4 -0
- package/dist/components/carousel/carousel.context.d.ts.map +1 -0
- package/dist/components/carousel/carousel.stories.d.ts +14 -0
- package/dist/components/carousel/carousel.stories.d.ts.map +1 -0
- package/dist/components/carousel/carousel.types.d.ts +58 -0
- package/dist/components/carousel/carousel.types.d.ts.map +1 -0
- package/dist/components/carousel/utils/handle-key-down.d.ts +3 -0
- package/dist/components/carousel/utils/handle-key-down.d.ts.map +1 -0
- package/dist/components/carousel/utils/index.d.ts +3 -0
- package/dist/components/carousel/utils/index.d.ts.map +1 -0
- package/dist/components/carousel/utils/number-with-range.d.ts +2 -0
- package/dist/components/carousel/utils/number-with-range.d.ts.map +1 -0
- package/dist/components/carousel/utils/tween-scale.d.ts +3 -0
- package/dist/components/carousel/utils/tween-scale.d.ts.map +1 -0
- package/dist/components/index.d.ts +1 -0
- package/dist/components/index.d.ts.map +1 -1
- package/dist/components/progress/progress.component.d.ts +1 -1
- package/dist/components/progress/progress.component.d.ts.map +1 -1
- package/dist/components/progress/progress.types.d.ts +1 -0
- package/dist/components/progress/progress.types.d.ts.map +1 -1
- package/dist/components/steps/index.d.ts +1 -1
- package/dist/components/steps/index.d.ts.map +1 -1
- package/dist/components/steps/steps.component.d.ts +1 -1
- package/dist/components/steps/steps.component.d.ts.map +1 -1
- package/dist/components/steps/steps.functions.d.ts +1 -0
- package/dist/components/steps/steps.functions.d.ts.map +1 -1
- package/dist/components/steps/steps.stories.d.ts +12 -0
- package/dist/components/steps/steps.stories.d.ts.map +1 -1
- package/dist/components/steps/steps.types.d.ts +10 -0
- package/dist/components/steps/steps.types.d.ts.map +1 -1
- package/dist/styles.css +2 -2
- package/dist/ui-components-index.cjs +2 -2
- package/dist/ui-components-index.js +422 -417
- package/dist/ui-components-layout.cjs +1 -1
- package/dist/ui-components-layout.js +1 -1
- package/package.json +2 -1
- package/dist/toggle-group.component-D2gEDqha.js +0 -11259
- package/dist/toggle-group.component-DoOPPzV2.cjs +0 -80
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { j as n, m as
|
|
1
|
+
import { j as n, m as _ } from "./proxy-uRb7Bek8.js";
|
|
2
2
|
import { c as p, a as Gr } from "./classNames-BiTpavcN.js";
|
|
3
|
-
import { P as T, u as I, c as P, a as $, b as L, d as q, R as ct, e as fe, A as Ie, f as te, h as Hr, g as zr, i as Ur, F as Kr, D as dt, C as ut, j as ft, k as $r, l as Ne, m as gt, I as xt, n as ge, o as Ae, p as Me, q as qr, r as ht, s as Yr, t as Wr, v as Xr, w as Zr, x as Qr, T as Jr, y as en, z as Q, B as tn, E as Fe, S as rn, G as nn, H as on, J as sn, K as an, N as ln, L as cn, Q as dn, M as un, O as fn, V as gn, U as xn, W as hn, X as mn, Y as pn, Z as vn, _ as bn, $ as yn, a0 as Cn, a1 as wn } from "./
|
|
4
|
-
import { a2 as
|
|
3
|
+
import { P as T, u as I, c as P, a as $, b as L, d as q, R as ct, e as fe, A as Ie, f as te, h as Hr, g as zr, i as Ur, F as Kr, D as dt, C as ut, j as ft, k as $r, l as Ne, m as gt, I as xt, n as ge, o as Ae, p as Me, q as qr, r as ht, s as Yr, t as Wr, v as Xr, w as Zr, x as Qr, T as Jr, y as en, z as Q, B as tn, E as Fe, S as rn, G as nn, H as on, J as sn, K as an, N as ln, L as cn, Q as dn, M as un, O as fn, V as gn, U as xn, W as hn, X as mn, Y as pn, Z as vn, _ as bn, $ as yn, a0 as Cn, a1 as wn } from "./carousel.component-CdgrJtst.js";
|
|
4
|
+
import { a2 as ol, a3 as sl, a4 as al, a5 as il, a6 as ll, a7 as cl, a8 as dl, a9 as ul, aa as fl } from "./carousel.component-CdgrJtst.js";
|
|
5
5
|
import * as d from "react";
|
|
6
|
-
import { useEffect as D, cloneElement as jn, useState as F, useMemo as xe, useCallback as Sn, useId as
|
|
7
|
-
import { S as Oe, a as tt, b as
|
|
6
|
+
import { useEffect as D, cloneElement as jn, useState as F, useMemo as xe, useCallback as Sn, useId as En, useRef as De } from "react";
|
|
7
|
+
import { S as Oe, a as tt, b as Rn } from "./indeterminate-CSEeEKiJ.js";
|
|
8
8
|
import { S as mt, a as pt, b as vt, c as bt, d as Pn, e as Tn, f as kn, g as _n, h as In, i as Nn, j as yt, k as An, l as Ct } from "./skeleton-avatar-Cp8o0kUa.js";
|
|
9
9
|
import { u as Mn } from "./use-controlled-state-CNjWcDSI.js";
|
|
10
10
|
import { u as Fn } from "./index-q_fyr_Rn.js";
|
|
@@ -13,7 +13,7 @@ const Dn = {
|
|
|
13
13
|
md: "size-12",
|
|
14
14
|
lg: "size-16",
|
|
15
15
|
xl: "size-20"
|
|
16
|
-
},
|
|
16
|
+
}, _i = ({
|
|
17
17
|
size: e = "sm",
|
|
18
18
|
text: t,
|
|
19
19
|
className: r,
|
|
@@ -51,63 +51,63 @@ var [Le] = L("Form"), Ve = "Form", [Ln, re] = Le(Ve), [Vn, jt] = Le(Ve), St = d.
|
|
|
51
51
|
}, ...s } = e, i = d.useRef(null), a = I(t, i), [l, c] = d.useState({}), u = d.useCallback(
|
|
52
52
|
(S) => l[S],
|
|
53
53
|
[l]
|
|
54
|
-
),
|
|
55
|
-
(S,
|
|
56
|
-
...
|
|
57
|
-
[S]: { ...
|
|
54
|
+
), f = d.useCallback(
|
|
55
|
+
(S, R) => c((E) => ({
|
|
56
|
+
...E,
|
|
57
|
+
[S]: { ...E[S] ?? {}, ...R }
|
|
58
58
|
})),
|
|
59
59
|
[]
|
|
60
|
-
),
|
|
61
|
-
c((
|
|
60
|
+
), g = d.useCallback((S) => {
|
|
61
|
+
c((R) => ({ ...R, [S]: void 0 })), y((R) => ({ ...R, [S]: {} }));
|
|
62
62
|
}, []), [x, h] = d.useState({}), m = d.useCallback(
|
|
63
63
|
(S) => x[S] ?? [],
|
|
64
64
|
[x]
|
|
65
|
-
), b = d.useCallback((S,
|
|
66
|
-
h((
|
|
67
|
-
...
|
|
68
|
-
[S]: [...
|
|
65
|
+
), b = d.useCallback((S, R) => {
|
|
66
|
+
h((E) => ({
|
|
67
|
+
...E,
|
|
68
|
+
[S]: [...E[S] ?? [], R]
|
|
69
69
|
}));
|
|
70
|
-
}, []), v = d.useCallback((S,
|
|
71
|
-
h((
|
|
72
|
-
...
|
|
73
|
-
[S]: (
|
|
74
|
-
(N) => N.id !==
|
|
70
|
+
}, []), v = d.useCallback((S, R) => {
|
|
71
|
+
h((E) => ({
|
|
72
|
+
...E,
|
|
73
|
+
[S]: (E[S] ?? []).filter(
|
|
74
|
+
(N) => N.id !== R
|
|
75
75
|
)
|
|
76
76
|
}));
|
|
77
77
|
}, []), [C, y] = d.useState({}), w = d.useCallback(
|
|
78
78
|
(S) => C[S] ?? {},
|
|
79
79
|
[C]
|
|
80
|
-
), j = d.useCallback((S,
|
|
81
|
-
y((
|
|
82
|
-
...
|
|
83
|
-
[S]: { ...
|
|
80
|
+
), j = d.useCallback((S, R) => {
|
|
81
|
+
y((E) => ({
|
|
82
|
+
...E,
|
|
83
|
+
[S]: { ...E[S] ?? {}, ...R }
|
|
84
84
|
}));
|
|
85
|
-
}, []), [
|
|
86
|
-
A((
|
|
87
|
-
const N = new Set(
|
|
88
|
-
return { ...
|
|
85
|
+
}, []), [k, A] = d.useState({}), M = d.useCallback((S, R) => {
|
|
86
|
+
A((E) => {
|
|
87
|
+
const N = new Set(E[S]).add(R);
|
|
88
|
+
return { ...E, [S]: N };
|
|
89
89
|
});
|
|
90
|
-
}, []), H = d.useCallback((S,
|
|
91
|
-
A((
|
|
92
|
-
const N = new Set(
|
|
93
|
-
return N.delete(
|
|
90
|
+
}, []), H = d.useCallback((S, R) => {
|
|
91
|
+
A((E) => {
|
|
92
|
+
const N = new Set(E[S]);
|
|
93
|
+
return N.delete(R), { ...E, [S]: N };
|
|
94
94
|
});
|
|
95
95
|
}, []), z = d.useCallback(
|
|
96
|
-
(S) => Array.from(
|
|
97
|
-
[
|
|
96
|
+
(S) => Array.from(k[S] ?? []).join(" ") || void 0,
|
|
97
|
+
[k]
|
|
98
98
|
);
|
|
99
99
|
return /* @__PURE__ */ n.jsx(
|
|
100
100
|
Ln,
|
|
101
101
|
{
|
|
102
102
|
scope: r,
|
|
103
103
|
getFieldValidity: u,
|
|
104
|
-
onFieldValidityChange:
|
|
104
|
+
onFieldValidityChange: f,
|
|
105
105
|
getFieldCustomMatcherEntries: m,
|
|
106
106
|
onFieldCustomMatcherEntryAdd: b,
|
|
107
107
|
onFieldCustomMatcherEntryRemove: v,
|
|
108
108
|
getFieldCustomErrors: w,
|
|
109
109
|
onFieldCustomErrorsChange: j,
|
|
110
|
-
onFieldValiditionClear:
|
|
110
|
+
onFieldValiditionClear: g,
|
|
111
111
|
children: /* @__PURE__ */ n.jsx(
|
|
112
112
|
Vn,
|
|
113
113
|
{
|
|
@@ -121,8 +121,8 @@ var [Le] = L("Form"), Ve = "Form", [Ln, re] = Le(Ve), [Vn, jt] = Le(Ve), St = d.
|
|
|
121
121
|
...s,
|
|
122
122
|
ref: a,
|
|
123
123
|
onInvalid: P(e.onInvalid, (S) => {
|
|
124
|
-
const
|
|
125
|
-
|
|
124
|
+
const R = kt(S.currentTarget);
|
|
125
|
+
R === S.target && R.focus(), S.preventDefault();
|
|
126
126
|
}),
|
|
127
127
|
onSubmit: P(e.onSubmit, o, {
|
|
128
128
|
checkForDefaultPrevented: !1
|
|
@@ -137,7 +137,7 @@ var [Le] = L("Form"), Ve = "Form", [Ln, re] = Le(Ve), [Vn, jt] = Le(Ve), St = d.
|
|
|
137
137
|
}
|
|
138
138
|
);
|
|
139
139
|
St.displayName = Ve;
|
|
140
|
-
var Be = "FormField", [Bn, Ge] = Le(Be),
|
|
140
|
+
var Be = "FormField", [Bn, Ge] = Le(Be), Et = d.forwardRef(
|
|
141
141
|
(e, t) => {
|
|
142
142
|
const { __scopeForm: r, name: o, serverInvalid: s = !1, ...i } = e, l = re(Be, r).getFieldValidity(o), c = $();
|
|
143
143
|
return /* @__PURE__ */ n.jsx(Bn, { scope: r, id: c, name: o, serverInvalid: s, children: /* @__PURE__ */ n.jsx(
|
|
@@ -151,10 +151,10 @@ var Be = "FormField", [Bn, Ge] = Le(Be), Rt = d.forwardRef(
|
|
|
151
151
|
) });
|
|
152
152
|
}
|
|
153
153
|
);
|
|
154
|
-
|
|
155
|
-
var
|
|
154
|
+
Et.displayName = Be;
|
|
155
|
+
var Ee = "FormLabel", Rt = d.forwardRef(
|
|
156
156
|
(e, t) => {
|
|
157
|
-
const { __scopeForm: r, ...o } = e, s = re(
|
|
157
|
+
const { __scopeForm: r, ...o } = e, s = re(Ee, r), i = Ge(Ee, r), a = o.htmlFor || i.id, l = s.getFieldValidity(i.name);
|
|
158
158
|
return /* @__PURE__ */ n.jsx(
|
|
159
159
|
wt,
|
|
160
160
|
{
|
|
@@ -167,33 +167,33 @@ var Re = "FormLabel", Et = d.forwardRef(
|
|
|
167
167
|
);
|
|
168
168
|
}
|
|
169
169
|
);
|
|
170
|
-
|
|
170
|
+
Rt.displayName = Ee;
|
|
171
171
|
var de = "FormControl", Pt = d.forwardRef(
|
|
172
172
|
(e, t) => {
|
|
173
|
-
const { __scopeForm: r, ...o } = e, s = re(de, r), i = Ge(de, r), a = jt(de, r), l = d.useRef(null), c = I(t, l), u = o.name || i.name,
|
|
173
|
+
const { __scopeForm: r, ...o } = e, s = re(de, r), i = Ge(de, r), a = jt(de, r), l = d.useRef(null), c = I(t, l), u = o.name || i.name, f = o.id || i.id, g = s.getFieldCustomMatcherEntries(u), { onFieldValidityChange: x, onFieldCustomErrorsChange: h, onFieldValiditionClear: m } = s, b = d.useCallback(
|
|
174
174
|
async (y) => {
|
|
175
175
|
if (_t(y.validity)) {
|
|
176
|
-
const
|
|
177
|
-
x(u,
|
|
176
|
+
const E = we(y.validity);
|
|
177
|
+
x(u, E);
|
|
178
178
|
return;
|
|
179
179
|
}
|
|
180
|
-
const w = y.form ? new FormData(y.form) : new FormData(), j = [y.value, w],
|
|
181
|
-
|
|
182
|
-
Wn(
|
|
180
|
+
const w = y.form ? new FormData(y.form) : new FormData(), j = [y.value, w], k = [], A = [];
|
|
181
|
+
g.forEach((E) => {
|
|
182
|
+
Wn(E, j) ? A.push(E) : Xn(E) && k.push(E);
|
|
183
183
|
});
|
|
184
|
-
const M =
|
|
184
|
+
const M = k.map(({ id: E, match: N }) => [E, N(...j)]), H = Object.fromEntries(M), z = Object.values(H).some(Boolean), S = z;
|
|
185
185
|
y.setCustomValidity(S ? J : "");
|
|
186
|
-
const
|
|
187
|
-
if (x(u,
|
|
188
|
-
const
|
|
186
|
+
const R = we(y.validity);
|
|
187
|
+
if (x(u, R), h(u, H), !z && A.length > 0) {
|
|
188
|
+
const E = A.map(
|
|
189
189
|
({ id: O, match: ie }) => ie(...j).then((Br) => [O, Br])
|
|
190
|
-
), N = await Promise.all(
|
|
190
|
+
), N = await Promise.all(E), W = Object.fromEntries(N), B = Object.values(W).some(Boolean);
|
|
191
191
|
y.setCustomValidity(B ? J : "");
|
|
192
192
|
const V = we(y.validity);
|
|
193
193
|
x(u, V), h(u, W);
|
|
194
194
|
}
|
|
195
195
|
},
|
|
196
|
-
[
|
|
196
|
+
[g, u, h, x]
|
|
197
197
|
);
|
|
198
198
|
d.useEffect(() => {
|
|
199
199
|
const y = l.current;
|
|
@@ -229,7 +229,7 @@ var de = "FormControl", Pt = d.forwardRef(
|
|
|
229
229
|
title: "",
|
|
230
230
|
...o,
|
|
231
231
|
ref: c,
|
|
232
|
-
id:
|
|
232
|
+
id: f,
|
|
233
233
|
name: u,
|
|
234
234
|
onInvalid: P(e.onInvalid, (y) => {
|
|
235
235
|
const w = y.currentTarget;
|
|
@@ -268,15 +268,15 @@ var Hn = d.forwardRef(
|
|
|
268
268
|
}
|
|
269
269
|
), zn = d.forwardRef(
|
|
270
270
|
(e, t) => {
|
|
271
|
-
const { match: r, forceMatch: o = !1, name: s, id: i, children: a, ...l } = e, c = re(ne, l.__scopeForm), u = d.useRef(null),
|
|
271
|
+
const { match: r, forceMatch: o = !1, name: s, id: i, children: a, ...l } = e, c = re(ne, l.__scopeForm), u = d.useRef(null), f = I(t, u), g = $(), x = i ?? g, h = d.useMemo(() => ({ id: x, match: r }), [x, r]), { onFieldCustomMatcherEntryAdd: m, onFieldCustomMatcherEntryRemove: b } = c;
|
|
272
272
|
d.useEffect(() => (m(s, h), () => b(s, h.id)), [h, s, m, b]);
|
|
273
273
|
const v = c.getFieldValidity(s), y = c.getFieldCustomErrors(s)[x];
|
|
274
|
-
return o || v && !_t(v) && y ? /* @__PURE__ */ n.jsx(He, { id: x, ref:
|
|
274
|
+
return o || v && !_t(v) && y ? /* @__PURE__ */ n.jsx(He, { id: x, ref: f, ...l, name: s, children: a ?? J }) : null;
|
|
275
275
|
}
|
|
276
276
|
), He = d.forwardRef(
|
|
277
277
|
(e, t) => {
|
|
278
|
-
const { __scopeForm: r, id: o, name: s, ...i } = e, a = jt(ne, r), l = $(), c = o ?? l, { onFieldMessageIdAdd: u, onFieldMessageIdRemove:
|
|
279
|
-
return d.useEffect(() => (u(s, c), () =>
|
|
278
|
+
const { __scopeForm: r, id: o, name: s, ...i } = e, a = jt(ne, r), l = $(), c = o ?? l, { onFieldMessageIdAdd: u, onFieldMessageIdRemove: f } = a;
|
|
279
|
+
return d.useEffect(() => (u(s, c), () => f(s, c)), [s, c, u, f]), /* @__PURE__ */ n.jsx(T.span, { id: c, ...i, ref: t });
|
|
280
280
|
}
|
|
281
281
|
), Un = "FormSubmit", Kn = d.forwardRef(
|
|
282
282
|
(e, t) => {
|
|
@@ -330,7 +330,7 @@ function ze(e, t) {
|
|
|
330
330
|
function Ue(e, t) {
|
|
331
331
|
if ((e == null ? void 0 : e.valid) === !1 || t) return !0;
|
|
332
332
|
}
|
|
333
|
-
var Qn = St, Jn =
|
|
333
|
+
var Qn = St, Jn = Et, eo = Rt, to = Pt, ro = Tt, he = "Popover", [It] = L(he, [
|
|
334
334
|
fe
|
|
335
335
|
]), oe = fe(), [no, G] = It(he), Nt = (e) => {
|
|
336
336
|
const {
|
|
@@ -340,7 +340,7 @@ var Qn = St, Jn = Rt, eo = Et, to = Pt, ro = Tt, he = "Popover", [It] = L(he, [
|
|
|
340
340
|
defaultOpen: s,
|
|
341
341
|
onOpenChange: i,
|
|
342
342
|
modal: a = !1
|
|
343
|
-
} = e, l = oe(t), c = d.useRef(null), [u,
|
|
343
|
+
} = e, l = oe(t), c = d.useRef(null), [u, f] = d.useState(!1), [g, x] = q({
|
|
344
344
|
prop: o,
|
|
345
345
|
defaultProp: s ?? !1,
|
|
346
346
|
onChange: i,
|
|
@@ -352,12 +352,12 @@ var Qn = St, Jn = Rt, eo = Et, to = Pt, ro = Tt, he = "Popover", [It] = L(he, [
|
|
|
352
352
|
scope: t,
|
|
353
353
|
contentId: $(),
|
|
354
354
|
triggerRef: c,
|
|
355
|
-
open:
|
|
355
|
+
open: g,
|
|
356
356
|
onOpenChange: x,
|
|
357
357
|
onOpenToggle: d.useCallback(() => x((h) => !h), [x]),
|
|
358
358
|
hasCustomAnchor: u,
|
|
359
|
-
onCustomAnchorAdd: d.useCallback(() =>
|
|
360
|
-
onCustomAnchorRemove: d.useCallback(() =>
|
|
359
|
+
onCustomAnchorAdd: d.useCallback(() => f(!0), []),
|
|
360
|
+
onCustomAnchorRemove: d.useCallback(() => f(!1), []),
|
|
361
361
|
modal: a,
|
|
362
362
|
children: r
|
|
363
363
|
}
|
|
@@ -390,7 +390,7 @@ var Mt = "PopoverTrigger", so = d.forwardRef(
|
|
|
390
390
|
}
|
|
391
391
|
);
|
|
392
392
|
so.displayName = Mt;
|
|
393
|
-
var ao = "PopoverPortal", [
|
|
393
|
+
var ao = "PopoverPortal", [Ii, io] = It(ao, {
|
|
394
394
|
forceMount: void 0
|
|
395
395
|
}), U = "PopoverContent", lo = d.forwardRef(
|
|
396
396
|
(e, t) => {
|
|
@@ -466,8 +466,8 @@ var co = $r("PopoverContent.RemoveScroll"), uo = d.forwardRef(
|
|
|
466
466
|
onEscapeKeyDown: l,
|
|
467
467
|
onPointerDownOutside: c,
|
|
468
468
|
onFocusOutside: u,
|
|
469
|
-
onInteractOutside:
|
|
470
|
-
...
|
|
469
|
+
onInteractOutside: f,
|
|
470
|
+
...g
|
|
471
471
|
} = e, x = G(U, r), h = oe(r);
|
|
472
472
|
return Ur(), /* @__PURE__ */ n.jsx(
|
|
473
473
|
Kr,
|
|
@@ -482,7 +482,7 @@ var co = $r("PopoverContent.RemoveScroll"), uo = d.forwardRef(
|
|
|
482
482
|
{
|
|
483
483
|
asChild: !0,
|
|
484
484
|
disableOutsidePointerEvents: a,
|
|
485
|
-
onInteractOutside:
|
|
485
|
+
onInteractOutside: f,
|
|
486
486
|
onEscapeKeyDown: l,
|
|
487
487
|
onPointerDownOutside: c,
|
|
488
488
|
onFocusOutside: u,
|
|
@@ -494,10 +494,10 @@ var co = $r("PopoverContent.RemoveScroll"), uo = d.forwardRef(
|
|
|
494
494
|
role: "dialog",
|
|
495
495
|
id: x.contentId,
|
|
496
496
|
...h,
|
|
497
|
-
...
|
|
497
|
+
...g,
|
|
498
498
|
ref: t,
|
|
499
499
|
style: {
|
|
500
|
-
...
|
|
500
|
+
...g.style,
|
|
501
501
|
"--radix-popover-content-transform-origin": "var(--radix-popper-transform-origin)",
|
|
502
502
|
"--radix-popover-content-available-width": "var(--radix-popper-available-width)",
|
|
503
503
|
"--radix-popover-content-available-height": "var(--radix-popper-available-height)",
|
|
@@ -609,7 +609,7 @@ function wo(e, t) {
|
|
|
609
609
|
|
|
610
610
|
Defaulting to \`null\`.`;
|
|
611
611
|
}
|
|
612
|
-
var jo = Lt, So = Bt, qe = "Radio", [
|
|
612
|
+
var jo = Lt, So = Bt, qe = "Radio", [Eo, Ht] = L(qe), [Ro, Po] = Eo(qe), zt = d.forwardRef(
|
|
613
613
|
(e, t) => {
|
|
614
614
|
const {
|
|
615
615
|
__scopeRadio: r,
|
|
@@ -620,9 +620,9 @@ var jo = Lt, So = Bt, qe = "Radio", [Ro, Ht] = L(qe), [Eo, Po] = Ro(qe), zt = d.
|
|
|
620
620
|
value: l = "on",
|
|
621
621
|
onCheck: c,
|
|
622
622
|
form: u,
|
|
623
|
-
...
|
|
624
|
-
} = e, [
|
|
625
|
-
return /* @__PURE__ */ n.jsxs(
|
|
623
|
+
...f
|
|
624
|
+
} = e, [g, x] = d.useState(null), h = I(t, (v) => x(v)), m = d.useRef(!1), b = g ? u || !!g.closest("form") : !0;
|
|
625
|
+
return /* @__PURE__ */ n.jsxs(Ro, { scope: r, checked: s, disabled: a, children: [
|
|
626
626
|
/* @__PURE__ */ n.jsx(
|
|
627
627
|
T.button,
|
|
628
628
|
{
|
|
@@ -633,7 +633,7 @@ var jo = Lt, So = Bt, qe = "Radio", [Ro, Ht] = L(qe), [Eo, Po] = Ro(qe), zt = d.
|
|
|
633
633
|
"data-disabled": a ? "" : void 0,
|
|
634
634
|
disabled: a,
|
|
635
635
|
value: l,
|
|
636
|
-
...
|
|
636
|
+
...f,
|
|
637
637
|
ref: h,
|
|
638
638
|
onClick: P(e.onClick, (v) => {
|
|
639
639
|
s || c == null || c(), b && (m.current = v.isPropagationStopped(), m.current || v.stopPropagation());
|
|
@@ -643,7 +643,7 @@ var jo = Lt, So = Bt, qe = "Radio", [Ro, Ht] = L(qe), [Eo, Po] = Ro(qe), zt = d.
|
|
|
643
643
|
b && /* @__PURE__ */ n.jsx(
|
|
644
644
|
$t,
|
|
645
645
|
{
|
|
646
|
-
control:
|
|
646
|
+
control: g,
|
|
647
647
|
bubbles: !m.current,
|
|
648
648
|
name: o,
|
|
649
649
|
value: l,
|
|
@@ -683,15 +683,15 @@ var To = "RadioBubbleInput", $t = d.forwardRef(
|
|
|
683
683
|
}, i) => {
|
|
684
684
|
const a = d.useRef(null), l = I(a, i), c = Ae(r), u = Me(t);
|
|
685
685
|
return d.useEffect(() => {
|
|
686
|
-
const
|
|
687
|
-
if (!
|
|
688
|
-
const
|
|
689
|
-
|
|
686
|
+
const f = a.current;
|
|
687
|
+
if (!f) return;
|
|
688
|
+
const g = window.HTMLInputElement.prototype, h = Object.getOwnPropertyDescriptor(
|
|
689
|
+
g,
|
|
690
690
|
"checked"
|
|
691
691
|
).set;
|
|
692
692
|
if (c !== r && h) {
|
|
693
693
|
const m = new Event("click", { bubbles: o });
|
|
694
|
-
h.call(
|
|
694
|
+
h.call(f, r), f.dispatchEvent(m);
|
|
695
695
|
}
|
|
696
696
|
}, [c, r, o]), /* @__PURE__ */ n.jsx(
|
|
697
697
|
T.input,
|
|
@@ -732,13 +732,13 @@ var ko = ["ArrowUp", "ArrowDown", "ArrowLeft", "ArrowRight"], me = "RadioGroup",
|
|
|
732
732
|
disabled: l = !1,
|
|
733
733
|
orientation: c,
|
|
734
734
|
dir: u,
|
|
735
|
-
loop:
|
|
736
|
-
onValueChange:
|
|
735
|
+
loop: f = !0,
|
|
736
|
+
onValueChange: g,
|
|
737
737
|
...x
|
|
738
738
|
} = e, h = Yt(r), m = Ne(u), [b, v] = q({
|
|
739
739
|
prop: i,
|
|
740
740
|
defaultProp: s ?? null,
|
|
741
|
-
onChange:
|
|
741
|
+
onChange: g,
|
|
742
742
|
caller: me
|
|
743
743
|
});
|
|
744
744
|
return /* @__PURE__ */ n.jsx(
|
|
@@ -757,7 +757,7 @@ var ko = ["ArrowUp", "ArrowDown", "ArrowLeft", "ArrowRight"], me = "RadioGroup",
|
|
|
757
757
|
...h,
|
|
758
758
|
orientation: c,
|
|
759
759
|
dir: m,
|
|
760
|
-
loop:
|
|
760
|
+
loop: f,
|
|
761
761
|
children: /* @__PURE__ */ n.jsx(
|
|
762
762
|
T.div,
|
|
763
763
|
{
|
|
@@ -779,7 +779,7 @@ var ko = ["ArrowUp", "ArrowDown", "ArrowLeft", "ArrowRight"], me = "RadioGroup",
|
|
|
779
779
|
Xt.displayName = me;
|
|
780
780
|
var Zt = "RadioGroupItem", Qt = d.forwardRef(
|
|
781
781
|
(e, t) => {
|
|
782
|
-
const { __scopeRadioGroup: r, disabled: o, ...s } = e, i = No(Zt, r), a = i.disabled || o, l = Yt(r), c = Wt(r), u = d.useRef(null),
|
|
782
|
+
const { __scopeRadioGroup: r, disabled: o, ...s } = e, i = No(Zt, r), a = i.disabled || o, l = Yt(r), c = Wt(r), u = d.useRef(null), f = I(t, u), g = i.value === s.value, x = d.useRef(!1);
|
|
783
783
|
return d.useEffect(() => {
|
|
784
784
|
const h = (b) => {
|
|
785
785
|
ko.includes(b.key) && (x.current = !0);
|
|
@@ -793,17 +793,17 @@ var Zt = "RadioGroupItem", Qt = d.forwardRef(
|
|
|
793
793
|
asChild: !0,
|
|
794
794
|
...l,
|
|
795
795
|
focusable: !a,
|
|
796
|
-
active:
|
|
796
|
+
active: g,
|
|
797
797
|
children: /* @__PURE__ */ n.jsx(
|
|
798
798
|
zt,
|
|
799
799
|
{
|
|
800
800
|
disabled: a,
|
|
801
801
|
required: i.required,
|
|
802
|
-
checked:
|
|
802
|
+
checked: g,
|
|
803
803
|
...c,
|
|
804
804
|
...s,
|
|
805
805
|
name: i.name,
|
|
806
|
-
ref:
|
|
806
|
+
ref: f,
|
|
807
807
|
onCheck: () => i.onValueChange(s.value),
|
|
808
808
|
onKeyDown: P((h) => {
|
|
809
809
|
h.key === "Enter" && h.preventDefault();
|
|
@@ -831,7 +831,7 @@ var Mo = Xt, Fo = Qt, Do = Jt, er = ["PageUp", "PageDown"], tr = ["ArrowUp", "Ar
|
|
|
831
831
|
"from-right": ["Home", "PageDown", "ArrowDown", "ArrowRight"],
|
|
832
832
|
"from-bottom": ["Home", "PageDown", "ArrowDown", "ArrowLeft"],
|
|
833
833
|
"from-top": ["Home", "PageDown", "ArrowUp", "ArrowLeft"]
|
|
834
|
-
}, Y = "Slider", [
|
|
834
|
+
}, Y = "Slider", [Re, Oo, Lo] = qr(Y), [nr] = L(Y, [
|
|
835
835
|
Lo
|
|
836
836
|
]), [Vo, pe] = nr(Y), or = d.forwardRef(
|
|
837
837
|
(e, t) => {
|
|
@@ -844,37 +844,37 @@ var Mo = Xt, Fo = Qt, Do = Jt, er = ["PageUp", "PageDown"], tr = ["ArrowUp", "Ar
|
|
|
844
844
|
disabled: l = !1,
|
|
845
845
|
minStepsBetweenThumbs: c = 0,
|
|
846
846
|
defaultValue: u = [o],
|
|
847
|
-
value:
|
|
848
|
-
onValueChange:
|
|
847
|
+
value: f,
|
|
848
|
+
onValueChange: g = () => {
|
|
849
849
|
},
|
|
850
850
|
onValueCommit: x = () => {
|
|
851
851
|
},
|
|
852
852
|
inverted: h = !1,
|
|
853
853
|
form: m,
|
|
854
854
|
...b
|
|
855
|
-
} = e, v = d.useRef(/* @__PURE__ */ new Set()), C = d.useRef(0), w = a === "horizontal" ? Bo : Go, [j = [],
|
|
856
|
-
prop:
|
|
855
|
+
} = e, v = d.useRef(/* @__PURE__ */ new Set()), C = d.useRef(0), w = a === "horizontal" ? Bo : Go, [j = [], k] = q({
|
|
856
|
+
prop: f,
|
|
857
857
|
defaultProp: u,
|
|
858
|
-
onChange: (
|
|
858
|
+
onChange: (R) => {
|
|
859
859
|
var N;
|
|
860
|
-
(N = [...v.current][C.current]) == null || N.focus(),
|
|
860
|
+
(N = [...v.current][C.current]) == null || N.focus(), g(R);
|
|
861
861
|
}
|
|
862
862
|
}), A = d.useRef(j);
|
|
863
|
-
function M(
|
|
864
|
-
const
|
|
865
|
-
S(
|
|
863
|
+
function M(R) {
|
|
864
|
+
const E = $o(j, R);
|
|
865
|
+
S(R, E);
|
|
866
866
|
}
|
|
867
|
-
function H(
|
|
868
|
-
S(
|
|
867
|
+
function H(R) {
|
|
868
|
+
S(R, C.current);
|
|
869
869
|
}
|
|
870
870
|
function z() {
|
|
871
|
-
const
|
|
872
|
-
j[C.current] !==
|
|
871
|
+
const R = A.current[C.current];
|
|
872
|
+
j[C.current] !== R && x(j);
|
|
873
873
|
}
|
|
874
|
-
function S(
|
|
875
|
-
const W = Xo(i), ae = Zo(Math.round((
|
|
876
|
-
|
|
877
|
-
const O = Uo(V, B,
|
|
874
|
+
function S(R, E, { commit: N } = { commit: !1 }) {
|
|
875
|
+
const W = Xo(i), ae = Zo(Math.round((R - o) / i) * i + o, W), B = ht(ae, [o, s]);
|
|
876
|
+
k((V = []) => {
|
|
877
|
+
const O = Uo(V, B, E);
|
|
878
878
|
if (Wo(O, c * i)) {
|
|
879
879
|
C.current = O.indexOf(B);
|
|
880
880
|
const ie = String(O) !== String(V);
|
|
@@ -896,7 +896,7 @@ var Mo = Xt, Fo = Qt, Do = Jt, er = ["PageUp", "PageDown"], tr = ["ArrowUp", "Ar
|
|
|
896
896
|
values: j,
|
|
897
897
|
orientation: a,
|
|
898
898
|
form: m,
|
|
899
|
-
children: /* @__PURE__ */ n.jsx(
|
|
899
|
+
children: /* @__PURE__ */ n.jsx(Re.Provider, { scope: e.__scopeSlider, children: /* @__PURE__ */ n.jsx(Re.Slot, { scope: e.__scopeSlider, children: /* @__PURE__ */ n.jsx(
|
|
900
900
|
w,
|
|
901
901
|
{
|
|
902
902
|
"aria-disabled": l,
|
|
@@ -914,9 +914,9 @@ var Mo = Xt, Fo = Qt, Do = Jt, er = ["PageUp", "PageDown"], tr = ["ArrowUp", "Ar
|
|
|
914
914
|
onSlideEnd: l ? void 0 : z,
|
|
915
915
|
onHomeKeyDown: () => !l && S(o, 0, { commit: !0 }),
|
|
916
916
|
onEndKeyDown: () => !l && S(s, j.length - 1, { commit: !0 }),
|
|
917
|
-
onStepKeyDown: ({ event:
|
|
917
|
+
onStepKeyDown: ({ event: R, direction: E }) => {
|
|
918
918
|
if (!l) {
|
|
919
|
-
const ae = er.includes(
|
|
919
|
+
const ae = er.includes(R.key) || R.shiftKey && tr.includes(R.key) ? 10 : 1, B = C.current, V = j[B], O = i * ae * E;
|
|
920
920
|
S(V + O, B, { commit: !0 });
|
|
921
921
|
}
|
|
922
922
|
}
|
|
@@ -943,10 +943,10 @@ var [sr, ar] = nr(Y, {
|
|
|
943
943
|
onSlideMove: l,
|
|
944
944
|
onSlideEnd: c,
|
|
945
945
|
onStepKeyDown: u,
|
|
946
|
-
...
|
|
947
|
-
} = e, [
|
|
946
|
+
...f
|
|
947
|
+
} = e, [g, x] = d.useState(null), h = I(t, (w) => x(w)), m = d.useRef(void 0), b = Ne(s), v = b === "ltr", C = v && !i || !v && i;
|
|
948
948
|
function y(w) {
|
|
949
|
-
const j = m.current ||
|
|
949
|
+
const j = m.current || g.getBoundingClientRect(), k = [0, j.width], M = Ye(k, C ? [r, o] : [o, r]);
|
|
950
950
|
return m.current = j, M(w - j.left);
|
|
951
951
|
}
|
|
952
952
|
return /* @__PURE__ */ n.jsx(
|
|
@@ -962,10 +962,10 @@ var [sr, ar] = nr(Y, {
|
|
|
962
962
|
{
|
|
963
963
|
dir: b,
|
|
964
964
|
"data-orientation": "horizontal",
|
|
965
|
-
...
|
|
965
|
+
...f,
|
|
966
966
|
ref: h,
|
|
967
967
|
style: {
|
|
968
|
-
...
|
|
968
|
+
...f.style,
|
|
969
969
|
"--radix-slider-thumb-transform": "translateX(-50%)"
|
|
970
970
|
},
|
|
971
971
|
onSlideStart: (w) => {
|
|
@@ -980,8 +980,8 @@ var [sr, ar] = nr(Y, {
|
|
|
980
980
|
m.current = void 0, c == null || c();
|
|
981
981
|
},
|
|
982
982
|
onStepKeyDown: (w) => {
|
|
983
|
-
const
|
|
984
|
-
u == null || u({ event: w, direction:
|
|
983
|
+
const k = rr[C ? "from-left" : "from-right"].includes(w.key);
|
|
984
|
+
u == null || u({ event: w, direction: k ? -1 : 1 });
|
|
985
985
|
}
|
|
986
986
|
}
|
|
987
987
|
)
|
|
@@ -999,9 +999,9 @@ var [sr, ar] = nr(Y, {
|
|
|
999
999
|
onSlideEnd: l,
|
|
1000
1000
|
onStepKeyDown: c,
|
|
1001
1001
|
...u
|
|
1002
|
-
} = e,
|
|
1002
|
+
} = e, f = d.useRef(null), g = I(t, f), x = d.useRef(void 0), h = !s;
|
|
1003
1003
|
function m(b) {
|
|
1004
|
-
const v = x.current ||
|
|
1004
|
+
const v = x.current || f.current.getBoundingClientRect(), C = [0, v.height], w = Ye(C, h ? [o, r] : [r, o]);
|
|
1005
1005
|
return x.current = v, w(b - v.top);
|
|
1006
1006
|
}
|
|
1007
1007
|
return /* @__PURE__ */ n.jsx(
|
|
@@ -1017,7 +1017,7 @@ var [sr, ar] = nr(Y, {
|
|
|
1017
1017
|
{
|
|
1018
1018
|
"data-orientation": "vertical",
|
|
1019
1019
|
...u,
|
|
1020
|
-
ref:
|
|
1020
|
+
ref: g,
|
|
1021
1021
|
style: {
|
|
1022
1022
|
...u.style,
|
|
1023
1023
|
"--radix-slider-thumb-transform": "translateY(50%)"
|
|
@@ -1053,25 +1053,25 @@ var [sr, ar] = nr(Y, {
|
|
|
1053
1053
|
onEndKeyDown: l,
|
|
1054
1054
|
onStepKeyDown: c,
|
|
1055
1055
|
...u
|
|
1056
|
-
} = e,
|
|
1056
|
+
} = e, f = pe(Y, r);
|
|
1057
1057
|
return /* @__PURE__ */ n.jsx(
|
|
1058
1058
|
T.span,
|
|
1059
1059
|
{
|
|
1060
1060
|
...u,
|
|
1061
1061
|
ref: t,
|
|
1062
|
-
onKeyDown: P(e.onKeyDown, (
|
|
1063
|
-
|
|
1062
|
+
onKeyDown: P(e.onKeyDown, (g) => {
|
|
1063
|
+
g.key === "Home" ? (a(g), g.preventDefault()) : g.key === "End" ? (l(g), g.preventDefault()) : er.concat(tr).includes(g.key) && (c(g), g.preventDefault());
|
|
1064
1064
|
}),
|
|
1065
|
-
onPointerDown: P(e.onPointerDown, (
|
|
1066
|
-
const x =
|
|
1067
|
-
x.setPointerCapture(
|
|
1065
|
+
onPointerDown: P(e.onPointerDown, (g) => {
|
|
1066
|
+
const x = g.target;
|
|
1067
|
+
x.setPointerCapture(g.pointerId), g.preventDefault(), f.thumbs.has(x) ? x.focus() : o(g);
|
|
1068
1068
|
}),
|
|
1069
|
-
onPointerMove: P(e.onPointerMove, (
|
|
1070
|
-
|
|
1069
|
+
onPointerMove: P(e.onPointerMove, (g) => {
|
|
1070
|
+
g.target.hasPointerCapture(g.pointerId) && s(g);
|
|
1071
1071
|
}),
|
|
1072
|
-
onPointerUp: P(e.onPointerUp, (
|
|
1073
|
-
const x =
|
|
1074
|
-
x.hasPointerCapture(
|
|
1072
|
+
onPointerUp: P(e.onPointerUp, (g) => {
|
|
1073
|
+
const x = g.target;
|
|
1074
|
+
x.hasPointerCapture(g.pointerId) && (x.releasePointerCapture(g.pointerId), i(g));
|
|
1075
1075
|
})
|
|
1076
1076
|
}
|
|
1077
1077
|
);
|
|
@@ -1095,7 +1095,7 @@ var Pe = "SliderRange", dr = d.forwardRef(
|
|
|
1095
1095
|
(e, t) => {
|
|
1096
1096
|
const { __scopeSlider: r, ...o } = e, s = pe(Pe, r), i = ar(Pe, r), a = d.useRef(null), l = I(t, a), c = s.values.length, u = s.values.map(
|
|
1097
1097
|
(x) => gr(x, s.min, s.max)
|
|
1098
|
-
),
|
|
1098
|
+
), f = c > 1 ? Math.min(...u) : 0, g = 100 - Math.max(...u);
|
|
1099
1099
|
return /* @__PURE__ */ n.jsx(
|
|
1100
1100
|
T.span,
|
|
1101
1101
|
{
|
|
@@ -1105,8 +1105,8 @@ var Pe = "SliderRange", dr = d.forwardRef(
|
|
|
1105
1105
|
ref: l,
|
|
1106
1106
|
style: {
|
|
1107
1107
|
...e.style,
|
|
1108
|
-
[i.startEdge]:
|
|
1109
|
-
[i.endEdge]:
|
|
1108
|
+
[i.startEdge]: f + "%",
|
|
1109
|
+
[i.endEdge]: g + "%"
|
|
1110
1110
|
}
|
|
1111
1111
|
}
|
|
1112
1112
|
);
|
|
@@ -1123,7 +1123,7 @@ var Te = "SliderThumb", ur = d.forwardRef(
|
|
|
1123
1123
|
}
|
|
1124
1124
|
), Ho = d.forwardRef(
|
|
1125
1125
|
(e, t) => {
|
|
1126
|
-
const { __scopeSlider: r, index: o, name: s, ...i } = e, a = pe(Te, r), l = ar(Te, r), [c, u] = d.useState(null),
|
|
1126
|
+
const { __scopeSlider: r, index: o, name: s, ...i } = e, a = pe(Te, r), l = ar(Te, r), [c, u] = d.useState(null), f = I(t, (y) => u(y)), g = c ? a.form || !!c.closest("form") : !0, x = Me(c), h = a.values[o], m = h === void 0 ? 0 : gr(h, a.min, a.max), b = Ko(o, a.values.length), v = x == null ? void 0 : x[l.size], C = v ? qo(v, m, l.direction) : 0;
|
|
1127
1127
|
return d.useEffect(() => {
|
|
1128
1128
|
if (c)
|
|
1129
1129
|
return a.thumbs.add(c), () => {
|
|
@@ -1138,7 +1138,7 @@ var Te = "SliderThumb", ur = d.forwardRef(
|
|
|
1138
1138
|
[l.startEdge]: `calc(${m}% + ${C}px)`
|
|
1139
1139
|
},
|
|
1140
1140
|
children: [
|
|
1141
|
-
/* @__PURE__ */ n.jsx(
|
|
1141
|
+
/* @__PURE__ */ n.jsx(Re.ItemSlot, { scope: e.__scopeSlider, children: /* @__PURE__ */ n.jsx(
|
|
1142
1142
|
T.span,
|
|
1143
1143
|
{
|
|
1144
1144
|
role: "slider",
|
|
@@ -1151,14 +1151,14 @@ var Te = "SliderThumb", ur = d.forwardRef(
|
|
|
1151
1151
|
"data-disabled": a.disabled ? "" : void 0,
|
|
1152
1152
|
tabIndex: a.disabled ? void 0 : 0,
|
|
1153
1153
|
...i,
|
|
1154
|
-
ref:
|
|
1154
|
+
ref: f,
|
|
1155
1155
|
style: h === void 0 ? { display: "none" } : e.style,
|
|
1156
1156
|
onFocus: P(e.onFocus, () => {
|
|
1157
1157
|
a.valueIndexToChangeRef.current = o;
|
|
1158
1158
|
})
|
|
1159
1159
|
}
|
|
1160
1160
|
) }),
|
|
1161
|
-
|
|
1161
|
+
g && /* @__PURE__ */ n.jsx(
|
|
1162
1162
|
fr,
|
|
1163
1163
|
{
|
|
1164
1164
|
name: s ?? (a.name ? a.name + (a.values.length > 1 ? "[]" : "") : void 0),
|
|
@@ -1179,10 +1179,10 @@ var zo = "RadioBubbleInput", fr = d.forwardRef(
|
|
|
1179
1179
|
return d.useEffect(() => {
|
|
1180
1180
|
const l = s.current;
|
|
1181
1181
|
if (!l) return;
|
|
1182
|
-
const c = window.HTMLInputElement.prototype,
|
|
1183
|
-
if (a !== t &&
|
|
1184
|
-
const
|
|
1185
|
-
|
|
1182
|
+
const c = window.HTMLInputElement.prototype, f = Object.getOwnPropertyDescriptor(c, "value").set;
|
|
1183
|
+
if (a !== t && f) {
|
|
1184
|
+
const g = new Event("input", { bubbles: !0 });
|
|
1185
|
+
f.call(l, t), l.dispatchEvent(g);
|
|
1186
1186
|
}
|
|
1187
1187
|
}, [a, t]), /* @__PURE__ */ n.jsx(
|
|
1188
1188
|
T.input,
|
|
@@ -1251,9 +1251,9 @@ var Qo = or, Jo = cr, es = dr, ts = ur, ve = "Switch", [rs] = L(ve), [ns, os] =
|
|
|
1251
1251
|
disabled: l,
|
|
1252
1252
|
value: c = "on",
|
|
1253
1253
|
onCheckedChange: u,
|
|
1254
|
-
form:
|
|
1255
|
-
...
|
|
1256
|
-
} = e, [x, h] = d.useState(null), m = I(t, (w) => h(w)), b = d.useRef(!1), v = x ?
|
|
1254
|
+
form: f,
|
|
1255
|
+
...g
|
|
1256
|
+
} = e, [x, h] = d.useState(null), m = I(t, (w) => h(w)), b = d.useRef(!1), v = x ? f || !!x.closest("form") : !0, [C, y] = q({
|
|
1257
1257
|
prop: s,
|
|
1258
1258
|
defaultProp: i ?? !1,
|
|
1259
1259
|
onChange: u,
|
|
@@ -1271,7 +1271,7 @@ var Qo = or, Jo = cr, es = dr, ts = ur, ve = "Switch", [rs] = L(ve), [ns, os] =
|
|
|
1271
1271
|
"data-disabled": l ? "" : void 0,
|
|
1272
1272
|
disabled: l,
|
|
1273
1273
|
value: c,
|
|
1274
|
-
...
|
|
1274
|
+
...g,
|
|
1275
1275
|
ref: m,
|
|
1276
1276
|
onClick: P(e.onClick, (w) => {
|
|
1277
1277
|
y((j) => !j), v && (b.current = w.isPropagationStopped(), b.current || w.stopPropagation());
|
|
@@ -1288,7 +1288,7 @@ var Qo = or, Jo = cr, es = dr, ts = ur, ve = "Switch", [rs] = L(ve), [ns, os] =
|
|
|
1288
1288
|
checked: C,
|
|
1289
1289
|
required: a,
|
|
1290
1290
|
disabled: l,
|
|
1291
|
-
form:
|
|
1291
|
+
form: f,
|
|
1292
1292
|
style: { transform: "translateX(-100%)" }
|
|
1293
1293
|
}
|
|
1294
1294
|
)
|
|
@@ -1321,15 +1321,15 @@ var ss = "SwitchBubbleInput", pr = d.forwardRef(
|
|
|
1321
1321
|
}, i) => {
|
|
1322
1322
|
const a = d.useRef(null), l = I(a, i), c = Ae(r), u = Me(t);
|
|
1323
1323
|
return d.useEffect(() => {
|
|
1324
|
-
const
|
|
1325
|
-
if (!
|
|
1326
|
-
const
|
|
1327
|
-
|
|
1324
|
+
const f = a.current;
|
|
1325
|
+
if (!f) return;
|
|
1326
|
+
const g = window.HTMLInputElement.prototype, h = Object.getOwnPropertyDescriptor(
|
|
1327
|
+
g,
|
|
1328
1328
|
"checked"
|
|
1329
1329
|
).set;
|
|
1330
1330
|
if (c !== r && h) {
|
|
1331
1331
|
const m = new Event("click", { bubbles: o });
|
|
1332
|
-
h.call(
|
|
1332
|
+
h.call(f, r), f.dispatchEvent(m);
|
|
1333
1333
|
}
|
|
1334
1334
|
}, [c, r, o]), /* @__PURE__ */ n.jsx(
|
|
1335
1335
|
"input",
|
|
@@ -1369,7 +1369,7 @@ var as = xr, is = mr, be = "Tabs", [ls] = L(be, [
|
|
|
1369
1369
|
dir: l,
|
|
1370
1370
|
activationMode: c = "automatic",
|
|
1371
1371
|
...u
|
|
1372
|
-
} = e,
|
|
1372
|
+
} = e, f = Ne(l), [g, x] = q({
|
|
1373
1373
|
prop: o,
|
|
1374
1374
|
onChange: s,
|
|
1375
1375
|
defaultProp: i ?? "",
|
|
@@ -1380,15 +1380,15 @@ var as = xr, is = mr, be = "Tabs", [ls] = L(be, [
|
|
|
1380
1380
|
{
|
|
1381
1381
|
scope: r,
|
|
1382
1382
|
baseId: $(),
|
|
1383
|
-
value:
|
|
1383
|
+
value: g,
|
|
1384
1384
|
onValueChange: x,
|
|
1385
1385
|
orientation: a,
|
|
1386
|
-
dir:
|
|
1386
|
+
dir: f,
|
|
1387
1387
|
activationMode: c,
|
|
1388
1388
|
children: /* @__PURE__ */ n.jsx(
|
|
1389
1389
|
T.div,
|
|
1390
1390
|
{
|
|
1391
|
-
dir:
|
|
1391
|
+
dir: f,
|
|
1392
1392
|
"data-orientation": a,
|
|
1393
1393
|
...u,
|
|
1394
1394
|
ref: t
|
|
@@ -1426,36 +1426,36 @@ var Cr = "TabsList", wr = d.forwardRef(
|
|
|
1426
1426
|
wr.displayName = Cr;
|
|
1427
1427
|
var jr = "TabsTrigger", Sr = d.forwardRef(
|
|
1428
1428
|
(e, t) => {
|
|
1429
|
-
const { __scopeTabs: r, value: o, disabled: s = !1, ...i } = e, a = We(jr, r), l = br(r), c = Pr(a.baseId, o), u = Tr(a.baseId, o),
|
|
1429
|
+
const { __scopeTabs: r, value: o, disabled: s = !1, ...i } = e, a = We(jr, r), l = br(r), c = Pr(a.baseId, o), u = Tr(a.baseId, o), f = o === a.value;
|
|
1430
1430
|
return /* @__PURE__ */ n.jsx(
|
|
1431
1431
|
xt,
|
|
1432
1432
|
{
|
|
1433
1433
|
asChild: !0,
|
|
1434
1434
|
...l,
|
|
1435
1435
|
focusable: !s,
|
|
1436
|
-
active:
|
|
1436
|
+
active: f,
|
|
1437
1437
|
children: /* @__PURE__ */ n.jsx(
|
|
1438
1438
|
T.button,
|
|
1439
1439
|
{
|
|
1440
1440
|
type: "button",
|
|
1441
1441
|
role: "tab",
|
|
1442
|
-
"aria-selected":
|
|
1442
|
+
"aria-selected": f,
|
|
1443
1443
|
"aria-controls": u,
|
|
1444
|
-
"data-state":
|
|
1444
|
+
"data-state": f ? "active" : "inactive",
|
|
1445
1445
|
"data-disabled": s ? "" : void 0,
|
|
1446
1446
|
disabled: s,
|
|
1447
1447
|
id: c,
|
|
1448
1448
|
...i,
|
|
1449
1449
|
ref: t,
|
|
1450
|
-
onMouseDown: P(e.onMouseDown, (
|
|
1451
|
-
!s &&
|
|
1450
|
+
onMouseDown: P(e.onMouseDown, (g) => {
|
|
1451
|
+
!s && g.button === 0 && g.ctrlKey === !1 ? a.onValueChange(o) : g.preventDefault();
|
|
1452
1452
|
}),
|
|
1453
|
-
onKeyDown: P(e.onKeyDown, (
|
|
1454
|
-
[" ", "Enter"].includes(
|
|
1453
|
+
onKeyDown: P(e.onKeyDown, (g) => {
|
|
1454
|
+
[" ", "Enter"].includes(g.key) && a.onValueChange(o);
|
|
1455
1455
|
}),
|
|
1456
1456
|
onFocus: P(e.onFocus, () => {
|
|
1457
|
-
const
|
|
1458
|
-
!
|
|
1457
|
+
const g = a.activationMode !== "manual";
|
|
1458
|
+
!f && !s && g && a.onValueChange(o);
|
|
1459
1459
|
})
|
|
1460
1460
|
}
|
|
1461
1461
|
)
|
|
@@ -1464,16 +1464,16 @@ var jr = "TabsTrigger", Sr = d.forwardRef(
|
|
|
1464
1464
|
}
|
|
1465
1465
|
);
|
|
1466
1466
|
Sr.displayName = jr;
|
|
1467
|
-
var
|
|
1467
|
+
var Er = "TabsContent", Rr = d.forwardRef(
|
|
1468
1468
|
(e, t) => {
|
|
1469
|
-
const { __scopeTabs: r, value: o, forceMount: s, children: i, ...a } = e, l = We(
|
|
1469
|
+
const { __scopeTabs: r, value: o, forceMount: s, children: i, ...a } = e, l = We(Er, r), c = Pr(l.baseId, o), u = Tr(l.baseId, o), f = o === l.value, g = d.useRef(f);
|
|
1470
1470
|
return d.useEffect(() => {
|
|
1471
|
-
const x = requestAnimationFrame(() =>
|
|
1471
|
+
const x = requestAnimationFrame(() => g.current = !1);
|
|
1472
1472
|
return () => cancelAnimationFrame(x);
|
|
1473
|
-
}, []), /* @__PURE__ */ n.jsx(te, { present: s ||
|
|
1473
|
+
}, []), /* @__PURE__ */ n.jsx(te, { present: s || f, children: ({ present: x }) => /* @__PURE__ */ n.jsx(
|
|
1474
1474
|
T.div,
|
|
1475
1475
|
{
|
|
1476
|
-
"data-state":
|
|
1476
|
+
"data-state": f ? "active" : "inactive",
|
|
1477
1477
|
"data-orientation": l.orientation,
|
|
1478
1478
|
role: "tabpanel",
|
|
1479
1479
|
"aria-labelledby": c,
|
|
@@ -1484,21 +1484,21 @@ var Rr = "TabsContent", Er = d.forwardRef(
|
|
|
1484
1484
|
ref: t,
|
|
1485
1485
|
style: {
|
|
1486
1486
|
...e.style,
|
|
1487
|
-
animationDuration:
|
|
1487
|
+
animationDuration: g.current ? "0s" : void 0
|
|
1488
1488
|
},
|
|
1489
1489
|
children: x && i
|
|
1490
1490
|
}
|
|
1491
1491
|
) });
|
|
1492
1492
|
}
|
|
1493
1493
|
);
|
|
1494
|
-
|
|
1494
|
+
Rr.displayName = Er;
|
|
1495
1495
|
function Pr(e, t) {
|
|
1496
1496
|
return `${e}-trigger-${t}`;
|
|
1497
1497
|
}
|
|
1498
1498
|
function Tr(e, t) {
|
|
1499
1499
|
return `${e}-content-${t}`;
|
|
1500
1500
|
}
|
|
1501
|
-
var ds = yr, us = wr, fs = Sr, ot =
|
|
1501
|
+
var ds = yr, us = wr, fs = Sr, ot = Rr, [ye] = L("Tooltip", [
|
|
1502
1502
|
fe
|
|
1503
1503
|
]), Ce = fe(), kr = "TooltipProvider", gs = 700, ke = "tooltip.open", [xs, Xe] = ye(kr), _r = (e) => {
|
|
1504
1504
|
const {
|
|
@@ -1545,7 +1545,7 @@ var ee = "Tooltip", [hs, se] = ye(ee), Ir = (e) => {
|
|
|
1545
1545
|
onOpenChange: i,
|
|
1546
1546
|
disableHoverableContent: a,
|
|
1547
1547
|
delayDuration: l
|
|
1548
|
-
} = e, c = Xe(ee, e.__scopeTooltip), u = Ce(t), [
|
|
1548
|
+
} = e, c = Xe(ee, e.__scopeTooltip), u = Ce(t), [f, g] = d.useState(null), x = $(), h = d.useRef(0), m = a ?? c.disableHoverableContent, b = l ?? c.delayDuration, v = d.useRef(!1), [C, y] = q({
|
|
1549
1549
|
prop: o,
|
|
1550
1550
|
defaultProp: s ?? !1,
|
|
1551
1551
|
onChange: (M) => {
|
|
@@ -1554,7 +1554,7 @@ var ee = "Tooltip", [hs, se] = ye(ee), Ir = (e) => {
|
|
|
1554
1554
|
caller: ee
|
|
1555
1555
|
}), w = d.useMemo(() => C ? v.current ? "delayed-open" : "instant-open" : "closed", [C]), j = d.useCallback(() => {
|
|
1556
1556
|
window.clearTimeout(h.current), h.current = 0, v.current = !1, y(!0);
|
|
1557
|
-
}, [y]),
|
|
1557
|
+
}, [y]), k = d.useCallback(() => {
|
|
1558
1558
|
window.clearTimeout(h.current), h.current = 0, y(!1);
|
|
1559
1559
|
}, [y]), A = d.useCallback(() => {
|
|
1560
1560
|
window.clearTimeout(h.current), h.current = window.setTimeout(() => {
|
|
@@ -1570,16 +1570,16 @@ var ee = "Tooltip", [hs, se] = ye(ee), Ir = (e) => {
|
|
|
1570
1570
|
contentId: x,
|
|
1571
1571
|
open: C,
|
|
1572
1572
|
stateAttribute: w,
|
|
1573
|
-
trigger:
|
|
1574
|
-
onTriggerChange:
|
|
1573
|
+
trigger: f,
|
|
1574
|
+
onTriggerChange: g,
|
|
1575
1575
|
onTriggerEnter: d.useCallback(() => {
|
|
1576
1576
|
c.isOpenDelayedRef.current ? A() : j();
|
|
1577
1577
|
}, [c.isOpenDelayedRef, A, j]),
|
|
1578
1578
|
onTriggerLeave: d.useCallback(() => {
|
|
1579
|
-
m ?
|
|
1580
|
-
}, [
|
|
1579
|
+
m ? k() : (window.clearTimeout(h.current), h.current = 0);
|
|
1580
|
+
}, [k, m]),
|
|
1581
1581
|
onOpen: j,
|
|
1582
|
-
onClose:
|
|
1582
|
+
onClose: k,
|
|
1583
1583
|
disableHoverableContent: m,
|
|
1584
1584
|
children: r
|
|
1585
1585
|
}
|
|
@@ -1588,8 +1588,8 @@ var ee = "Tooltip", [hs, se] = ye(ee), Ir = (e) => {
|
|
|
1588
1588
|
Ir.displayName = ee;
|
|
1589
1589
|
var _e = "TooltipTrigger", Nr = d.forwardRef(
|
|
1590
1590
|
(e, t) => {
|
|
1591
|
-
const { __scopeTooltip: r, ...o } = e, s = se(_e, r), i = Xe(_e, r), a = Ce(r), l = d.useRef(null), c = I(t, l, s.onTriggerChange), u = d.useRef(!1),
|
|
1592
|
-
return d.useEffect(() => () => document.removeEventListener("pointerup",
|
|
1591
|
+
const { __scopeTooltip: r, ...o } = e, s = se(_e, r), i = Xe(_e, r), a = Ce(r), l = d.useRef(null), c = I(t, l, s.onTriggerChange), u = d.useRef(!1), f = d.useRef(!1), g = d.useCallback(() => u.current = !1, []);
|
|
1592
|
+
return d.useEffect(() => () => document.removeEventListener("pointerup", g), [g]), /* @__PURE__ */ n.jsx(Ie, { asChild: !0, ...a, children: /* @__PURE__ */ n.jsx(
|
|
1593
1593
|
T.button,
|
|
1594
1594
|
{
|
|
1595
1595
|
"aria-describedby": s.open ? s.contentId : void 0,
|
|
@@ -1597,13 +1597,13 @@ var _e = "TooltipTrigger", Nr = d.forwardRef(
|
|
|
1597
1597
|
...o,
|
|
1598
1598
|
ref: c,
|
|
1599
1599
|
onPointerMove: P(e.onPointerMove, (x) => {
|
|
1600
|
-
x.pointerType !== "touch" && !
|
|
1600
|
+
x.pointerType !== "touch" && !f.current && !i.isPointerInTransitRef.current && (s.onTriggerEnter(), f.current = !0);
|
|
1601
1601
|
}),
|
|
1602
1602
|
onPointerLeave: P(e.onPointerLeave, () => {
|
|
1603
|
-
s.onTriggerLeave(),
|
|
1603
|
+
s.onTriggerLeave(), f.current = !1;
|
|
1604
1604
|
}),
|
|
1605
1605
|
onPointerDown: P(e.onPointerDown, () => {
|
|
1606
|
-
s.open && s.onClose(), u.current = !0, document.addEventListener("pointerup",
|
|
1606
|
+
s.open && s.onClose(), u.current = !0, document.addEventListener("pointerup", g, { once: !0 });
|
|
1607
1607
|
}),
|
|
1608
1608
|
onFocus: P(e.onFocus, () => {
|
|
1609
1609
|
u.current || s.onOpen();
|
|
@@ -1628,31 +1628,31 @@ var K = "TooltipContent", Mr = d.forwardRef(
|
|
|
1628
1628
|
return /* @__PURE__ */ n.jsx(te, { present: o || a.open, children: a.disableHoverableContent ? /* @__PURE__ */ n.jsx(Fr, { side: s, ...i, ref: t }) : /* @__PURE__ */ n.jsx(vs, { side: s, ...i, ref: t }) });
|
|
1629
1629
|
}
|
|
1630
1630
|
), vs = d.forwardRef((e, t) => {
|
|
1631
|
-
const r = se(K, e.__scopeTooltip), o = Xe(K, e.__scopeTooltip), s = d.useRef(null), i = I(t, s), [a, l] = d.useState(null), { trigger: c, onClose: u } = r,
|
|
1632
|
-
l(null),
|
|
1633
|
-
}, [
|
|
1631
|
+
const r = se(K, e.__scopeTooltip), o = Xe(K, e.__scopeTooltip), s = d.useRef(null), i = I(t, s), [a, l] = d.useState(null), { trigger: c, onClose: u } = r, f = s.current, { onPointerInTransitChange: g } = o, x = d.useCallback(() => {
|
|
1632
|
+
l(null), g(!1);
|
|
1633
|
+
}, [g]), h = d.useCallback(
|
|
1634
1634
|
(m, b) => {
|
|
1635
|
-
const v = m.currentTarget, C = { x: m.clientX, y: m.clientY }, y = ws(C, v.getBoundingClientRect()), w = js(C, y), j = Ss(b.getBoundingClientRect()),
|
|
1636
|
-
l(
|
|
1635
|
+
const v = m.currentTarget, C = { x: m.clientX, y: m.clientY }, y = ws(C, v.getBoundingClientRect()), w = js(C, y), j = Ss(b.getBoundingClientRect()), k = Rs([...w, ...j]);
|
|
1636
|
+
l(k), g(!0);
|
|
1637
1637
|
},
|
|
1638
|
-
[
|
|
1638
|
+
[g]
|
|
1639
1639
|
);
|
|
1640
1640
|
return d.useEffect(() => () => x(), [x]), d.useEffect(() => {
|
|
1641
|
-
if (c &&
|
|
1642
|
-
const m = (v) => h(v,
|
|
1643
|
-
return c.addEventListener("pointerleave", m),
|
|
1644
|
-
c.removeEventListener("pointerleave", m),
|
|
1641
|
+
if (c && f) {
|
|
1642
|
+
const m = (v) => h(v, f), b = (v) => h(v, c);
|
|
1643
|
+
return c.addEventListener("pointerleave", m), f.addEventListener("pointerleave", b), () => {
|
|
1644
|
+
c.removeEventListener("pointerleave", m), f.removeEventListener("pointerleave", b);
|
|
1645
1645
|
};
|
|
1646
1646
|
}
|
|
1647
|
-
}, [c,
|
|
1647
|
+
}, [c, f, h, x]), d.useEffect(() => {
|
|
1648
1648
|
if (a) {
|
|
1649
1649
|
const m = (b) => {
|
|
1650
|
-
const v = b.target, C = { x: b.clientX, y: b.clientY }, y = (c == null ? void 0 : c.contains(v)) || (
|
|
1650
|
+
const v = b.target, C = { x: b.clientX, y: b.clientY }, y = (c == null ? void 0 : c.contains(v)) || (f == null ? void 0 : f.contains(v)), w = !Es(C, a);
|
|
1651
1651
|
y ? x() : w && (x(), u());
|
|
1652
1652
|
};
|
|
1653
1653
|
return document.addEventListener("pointermove", m), () => document.removeEventListener("pointermove", m);
|
|
1654
1654
|
}
|
|
1655
|
-
}, [c,
|
|
1655
|
+
}, [c, f, a, u, x]), /* @__PURE__ */ n.jsx(Fr, { ...e, ref: i });
|
|
1656
1656
|
}), [bs, ys] = ye(ee, { isInside: !1 }), Cs = Xr("TooltipContent"), Fr = d.forwardRef(
|
|
1657
1657
|
(e, t) => {
|
|
1658
1658
|
const {
|
|
@@ -1662,24 +1662,24 @@ var K = "TooltipContent", Mr = d.forwardRef(
|
|
|
1662
1662
|
onEscapeKeyDown: i,
|
|
1663
1663
|
onPointerDownOutside: a,
|
|
1664
1664
|
...l
|
|
1665
|
-
} = e, c = se(K, r), u = Ce(r), { onClose:
|
|
1666
|
-
return d.useEffect(() => (document.addEventListener(ke,
|
|
1665
|
+
} = e, c = se(K, r), u = Ce(r), { onClose: f } = c;
|
|
1666
|
+
return d.useEffect(() => (document.addEventListener(ke, f), () => document.removeEventListener(ke, f)), [f]), d.useEffect(() => {
|
|
1667
1667
|
if (c.trigger) {
|
|
1668
|
-
const
|
|
1668
|
+
const g = (x) => {
|
|
1669
1669
|
const h = x.target;
|
|
1670
|
-
h != null && h.contains(c.trigger) &&
|
|
1670
|
+
h != null && h.contains(c.trigger) && f();
|
|
1671
1671
|
};
|
|
1672
|
-
return window.addEventListener("scroll",
|
|
1672
|
+
return window.addEventListener("scroll", g, { capture: !0 }), () => window.removeEventListener("scroll", g, { capture: !0 });
|
|
1673
1673
|
}
|
|
1674
|
-
}, [c.trigger,
|
|
1674
|
+
}, [c.trigger, f]), /* @__PURE__ */ n.jsx(
|
|
1675
1675
|
dt,
|
|
1676
1676
|
{
|
|
1677
1677
|
asChild: !0,
|
|
1678
1678
|
disableOutsidePointerEvents: !1,
|
|
1679
1679
|
onEscapeKeyDown: i,
|
|
1680
1680
|
onPointerDownOutside: a,
|
|
1681
|
-
onFocusOutside: (
|
|
1682
|
-
onDismiss:
|
|
1681
|
+
onFocusOutside: (g) => g.preventDefault(),
|
|
1682
|
+
onDismiss: f,
|
|
1683
1683
|
children: /* @__PURE__ */ n.jsxs(
|
|
1684
1684
|
ut,
|
|
1685
1685
|
{
|
|
@@ -1770,16 +1770,16 @@ function Ss(e) {
|
|
|
1770
1770
|
{ x: s, y: o }
|
|
1771
1771
|
];
|
|
1772
1772
|
}
|
|
1773
|
-
function
|
|
1773
|
+
function Es(e, t) {
|
|
1774
1774
|
const { x: r, y: o } = e;
|
|
1775
1775
|
let s = !1;
|
|
1776
1776
|
for (let i = 0, a = t.length - 1; i < t.length; a = i++) {
|
|
1777
|
-
const l = t[i], c = t[a], u = l.x,
|
|
1778
|
-
|
|
1777
|
+
const l = t[i], c = t[a], u = l.x, f = l.y, g = c.x, x = c.y;
|
|
1778
|
+
f > o != x > o && r < (g - u) * (o - f) / (x - f) + u && (s = !s);
|
|
1779
1779
|
}
|
|
1780
1780
|
return s;
|
|
1781
1781
|
}
|
|
1782
|
-
function
|
|
1782
|
+
function Rs(e) {
|
|
1783
1783
|
const t = e.slice();
|
|
1784
1784
|
return t.sort((r, o) => r.x < o.x ? -1 : r.x > o.x ? 1 : r.y < o.y ? -1 : r.y > o.y ? 1 : 0), Ps(t);
|
|
1785
1785
|
}
|
|
@@ -1809,7 +1809,7 @@ function Ps(e) {
|
|
|
1809
1809
|
return r.pop(), t.length === 1 && r.length === 1 && t[0].x === r[0].x && t[0].y === r[0].y ? t : t.concat(r);
|
|
1810
1810
|
}
|
|
1811
1811
|
var Ts = _r, ks = Ir, _s = Nr, Is = Ar, Ns = Mr, As = Or;
|
|
1812
|
-
const
|
|
1812
|
+
const Ni = ({
|
|
1813
1813
|
items: e,
|
|
1814
1814
|
classNames: t,
|
|
1815
1815
|
showDivider: r,
|
|
@@ -1861,7 +1861,7 @@ const Ii = ({
|
|
|
1861
1861
|
info: "bg-blue-1 border border-blue-3",
|
|
1862
1862
|
warning: "bg-gold-1 border border-gold-3",
|
|
1863
1863
|
error: "bg-red-1 border border-red-3"
|
|
1864
|
-
},
|
|
1864
|
+
}, Ai = ({
|
|
1865
1865
|
type: e = "info",
|
|
1866
1866
|
title: t,
|
|
1867
1867
|
description: r,
|
|
@@ -1874,7 +1874,7 @@ const Ii = ({
|
|
|
1874
1874
|
}) => {
|
|
1875
1875
|
const u = !!t && !r && !l || !t && !!r && !l;
|
|
1876
1876
|
return /* @__PURE__ */ n.jsxs(
|
|
1877
|
-
|
|
1877
|
+
_.div,
|
|
1878
1878
|
{
|
|
1879
1879
|
initial: { opacity: 0, y: -10 },
|
|
1880
1880
|
animate: { opacity: 1, y: 0 },
|
|
@@ -1926,7 +1926,7 @@ const Ii = ({
|
|
|
1926
1926
|
]
|
|
1927
1927
|
}
|
|
1928
1928
|
);
|
|
1929
|
-
},
|
|
1929
|
+
}, Mi = ({
|
|
1930
1930
|
children: e,
|
|
1931
1931
|
className: t = "",
|
|
1932
1932
|
align: r = "horizontal",
|
|
@@ -1961,7 +1961,7 @@ const Ii = ({
|
|
|
1961
1961
|
}
|
|
1962
1962
|
);
|
|
1963
1963
|
return /* @__PURE__ */ n.jsx(
|
|
1964
|
-
|
|
1964
|
+
_.div,
|
|
1965
1965
|
{
|
|
1966
1966
|
initial: { opacity: 0, scale: 0.95 },
|
|
1967
1967
|
animate: { opacity: 1, scale: 1 },
|
|
@@ -1972,7 +1972,7 @@ const Ii = ({
|
|
|
1972
1972
|
children: e
|
|
1973
1973
|
}
|
|
1974
1974
|
);
|
|
1975
|
-
},
|
|
1975
|
+
}, Fi = ({
|
|
1976
1976
|
children: e,
|
|
1977
1977
|
className: t,
|
|
1978
1978
|
width: r = "min-w-full w-full",
|
|
@@ -2025,7 +2025,7 @@ const Ii = ({
|
|
|
2025
2025
|
drawer: {
|
|
2026
2026
|
transition: { type: "tween", duration: 0.2 }
|
|
2027
2027
|
}
|
|
2028
|
-
},
|
|
2028
|
+
}, Di = ({
|
|
2029
2029
|
open: e,
|
|
2030
2030
|
onClose: t,
|
|
2031
2031
|
children: r,
|
|
@@ -2039,7 +2039,7 @@ const Ii = ({
|
|
|
2039
2039
|
return e && document.addEventListener("keydown", a), () => document.removeEventListener("keydown", a);
|
|
2040
2040
|
}, [e, t]), /* @__PURE__ */ n.jsx(tn, { id: "drawer", children: /* @__PURE__ */ n.jsx(Fe, { children: e && /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
|
|
2041
2041
|
/* @__PURE__ */ n.jsx(
|
|
2042
|
-
|
|
2042
|
+
_.div,
|
|
2043
2043
|
{
|
|
2044
2044
|
className: p(X.backdrop, i.backdrop),
|
|
2045
2045
|
initial: le.backdrop.initial,
|
|
@@ -2049,7 +2049,7 @@ const Ii = ({
|
|
|
2049
2049
|
}
|
|
2050
2050
|
),
|
|
2051
2051
|
/* @__PURE__ */ n.jsxs(
|
|
2052
|
-
|
|
2052
|
+
_.div,
|
|
2053
2053
|
{
|
|
2054
2054
|
className: p(
|
|
2055
2055
|
X.drawer,
|
|
@@ -2072,12 +2072,12 @@ const Ii = ({
|
|
|
2072
2072
|
wrapper: "flex flex-col items-center",
|
|
2073
2073
|
icon: "text-3xl text-gray-300",
|
|
2074
2074
|
text: "mt-3 text-base text-gray-300 font-normal"
|
|
2075
|
-
},
|
|
2075
|
+
}, Oi = ({
|
|
2076
2076
|
text: e = "No hay datos para mostrar",
|
|
2077
2077
|
className: t = "",
|
|
2078
2078
|
icon: r = /* @__PURE__ */ n.jsx(Pn, {})
|
|
2079
2079
|
}) => /* @__PURE__ */ n.jsx(rn, { children: /* @__PURE__ */ n.jsx(
|
|
2080
|
-
|
|
2080
|
+
_.section,
|
|
2081
2081
|
{
|
|
2082
2082
|
"data-cy": "empty-component",
|
|
2083
2083
|
initial: { opacity: 0, y: 8 },
|
|
@@ -2086,7 +2086,7 @@ const Ii = ({
|
|
|
2086
2086
|
className: p(ce.container, t),
|
|
2087
2087
|
children: /* @__PURE__ */ n.jsxs("div", { className: ce.wrapper, children: [
|
|
2088
2088
|
/* @__PURE__ */ n.jsx(
|
|
2089
|
-
|
|
2089
|
+
_.div,
|
|
2090
2090
|
{
|
|
2091
2091
|
initial: { scale: 0.9 },
|
|
2092
2092
|
animate: { scale: 1 },
|
|
@@ -2101,7 +2101,7 @@ const Ii = ({
|
|
|
2101
2101
|
}
|
|
2102
2102
|
),
|
|
2103
2103
|
/* @__PURE__ */ n.jsx(
|
|
2104
|
-
|
|
2104
|
+
_.h1,
|
|
2105
2105
|
{
|
|
2106
2106
|
"data-cy": "empty-text",
|
|
2107
2107
|
className: ce.text,
|
|
@@ -2125,13 +2125,13 @@ const Ii = ({
|
|
|
2125
2125
|
className: c,
|
|
2126
2126
|
...u
|
|
2127
2127
|
}) => {
|
|
2128
|
-
const [
|
|
2128
|
+
const [f, g] = F(u.value ?? ""), { baseStyles: x, variantStyles: h, sizeStyles: m, stateStyles: b } = on(
|
|
2129
2129
|
l,
|
|
2130
2130
|
t,
|
|
2131
2131
|
e,
|
|
2132
2132
|
r,
|
|
2133
2133
|
!!o
|
|
2134
|
-
), v = xe(() => i &&
|
|
2134
|
+
), v = xe(() => i && f ? /* @__PURE__ */ n.jsx(nn, { disabled: a, onClick: () => g("") }) : s ? /* @__PURE__ */ n.jsx(
|
|
2135
2135
|
"div",
|
|
2136
2136
|
{
|
|
2137
2137
|
className: p("absolute right-3 top-1/2 -translate-y-1/2", {
|
|
@@ -2139,7 +2139,7 @@ const Ii = ({
|
|
|
2139
2139
|
}),
|
|
2140
2140
|
children: s
|
|
2141
2141
|
}
|
|
2142
|
-
) : null, [i,
|
|
2142
|
+
) : null, [i, f, s, a]);
|
|
2143
2143
|
return /* @__PURE__ */ n.jsxs("div", { className: p("relative", c), children: [
|
|
2144
2144
|
o && /* @__PURE__ */ n.jsx(
|
|
2145
2145
|
"div",
|
|
@@ -2151,12 +2151,12 @@ const Ii = ({
|
|
|
2151
2151
|
}
|
|
2152
2152
|
),
|
|
2153
2153
|
/* @__PURE__ */ n.jsx(
|
|
2154
|
-
|
|
2154
|
+
_.input,
|
|
2155
2155
|
{
|
|
2156
2156
|
...u,
|
|
2157
|
-
value:
|
|
2157
|
+
value: f,
|
|
2158
2158
|
disabled: a,
|
|
2159
|
-
onChange: (C) =>
|
|
2159
|
+
onChange: (C) => g(C.target.value),
|
|
2160
2160
|
className: p(
|
|
2161
2161
|
...x,
|
|
2162
2162
|
...h,
|
|
@@ -2168,7 +2168,7 @@ const Ii = ({
|
|
|
2168
2168
|
),
|
|
2169
2169
|
/* @__PURE__ */ n.jsx(Fe, { children: v })
|
|
2170
2170
|
] });
|
|
2171
|
-
},
|
|
2171
|
+
}, Li = {
|
|
2172
2172
|
Text: Vs,
|
|
2173
2173
|
Number: sn
|
|
2174
2174
|
}, Bs = ({ title: e, className: t = "" }) => /* @__PURE__ */ n.jsx(an.Title, { level: 3, className: t, children: e }), Gs = {
|
|
@@ -2200,7 +2200,7 @@ const Ii = ({
|
|
|
2200
2200
|
}) => {
|
|
2201
2201
|
const i = e.href ? "a" : "button", a = e.href ? { href: e.href } : { onClick: e.onClick, type: "button" };
|
|
2202
2202
|
return /* @__PURE__ */ n.jsx(
|
|
2203
|
-
|
|
2203
|
+
_.li,
|
|
2204
2204
|
{
|
|
2205
2205
|
initial: { opacity: 0, x: -10 },
|
|
2206
2206
|
animate: { opacity: 1, x: 0 },
|
|
@@ -2278,7 +2278,7 @@ const Ii = ({
|
|
|
2278
2278
|
return e.slice(s, i);
|
|
2279
2279
|
}, [e, t, r, o]), Ys = (e, t) => xe(() => Math.ceil(e / t), [e, t]), Ws = (e, t) => t || Gs[e], Xs = (e) => (t) => {
|
|
2280
2280
|
e && e(t);
|
|
2281
|
-
},
|
|
2281
|
+
}, Vi = ({
|
|
2282
2282
|
items: e,
|
|
2283
2283
|
title: t,
|
|
2284
2284
|
size: r = "md",
|
|
@@ -2289,8 +2289,8 @@ const Ii = ({
|
|
|
2289
2289
|
showBorder: l = !0,
|
|
2290
2290
|
showShadow: c = !0,
|
|
2291
2291
|
height: u,
|
|
2292
|
-
className:
|
|
2293
|
-
titleClassName:
|
|
2292
|
+
className: f = "",
|
|
2293
|
+
titleClassName: g = "",
|
|
2294
2294
|
itemClassName: x = "",
|
|
2295
2295
|
emptyMessage: h = "No items to display",
|
|
2296
2296
|
onAnimationStart: m,
|
|
@@ -2303,7 +2303,7 @@ const Ii = ({
|
|
|
2303
2303
|
o,
|
|
2304
2304
|
s,
|
|
2305
2305
|
i
|
|
2306
|
-
), w = Ys(e.length, i), j = Ws(r, u),
|
|
2306
|
+
), w = Ys(e.length, i), j = Ws(r, u), k = Xs(a);
|
|
2307
2307
|
return /* @__PURE__ */ n.jsx(
|
|
2308
2308
|
"div",
|
|
2309
2309
|
{
|
|
@@ -2312,14 +2312,14 @@ const Ii = ({
|
|
|
2312
2312
|
onAnimationIteration: v,
|
|
2313
2313
|
...C,
|
|
2314
2314
|
children: /* @__PURE__ */ n.jsxs(
|
|
2315
|
-
|
|
2315
|
+
_.div,
|
|
2316
2316
|
{
|
|
2317
2317
|
initial: { opacity: 0, y: -10 },
|
|
2318
2318
|
animate: { opacity: 1, y: 0 },
|
|
2319
2319
|
transition: { duration: 0.3 },
|
|
2320
|
-
className: p("flex flex-col", { [
|
|
2320
|
+
className: p("flex flex-col", { [f]: f }),
|
|
2321
2321
|
children: [
|
|
2322
|
-
t && /* @__PURE__ */ n.jsx(Bs, { title: t, size: r, className:
|
|
2322
|
+
t && /* @__PURE__ */ n.jsx(Bs, { title: t, size: r, className: g }),
|
|
2323
2323
|
/* @__PURE__ */ n.jsx(
|
|
2324
2324
|
$s,
|
|
2325
2325
|
{
|
|
@@ -2338,7 +2338,7 @@ const Ii = ({
|
|
|
2338
2338
|
{
|
|
2339
2339
|
currentPage: s,
|
|
2340
2340
|
totalPages: w,
|
|
2341
|
-
onPageChange:
|
|
2341
|
+
onPageChange: k,
|
|
2342
2342
|
size: r
|
|
2343
2343
|
}
|
|
2344
2344
|
)
|
|
@@ -2431,7 +2431,7 @@ const Ii = ({
|
|
|
2431
2431
|
),
|
|
2432
2432
|
children: e
|
|
2433
2433
|
}
|
|
2434
|
-
) : null,
|
|
2434
|
+
) : null, Bi = ({
|
|
2435
2435
|
type: e = "default",
|
|
2436
2436
|
title: t,
|
|
2437
2437
|
message: r,
|
|
@@ -2442,8 +2442,8 @@ const Ii = ({
|
|
|
2442
2442
|
closable: l = !1,
|
|
2443
2443
|
onClose: c,
|
|
2444
2444
|
className: u = "",
|
|
2445
|
-
children:
|
|
2446
|
-
borderColor:
|
|
2445
|
+
children: f,
|
|
2446
|
+
borderColor: g,
|
|
2447
2447
|
iconColor: x,
|
|
2448
2448
|
...h
|
|
2449
2449
|
}) => {
|
|
@@ -2458,11 +2458,11 @@ const Ii = ({
|
|
|
2458
2458
|
}, [o, s, c]);
|
|
2459
2459
|
const C = e ? Zs[e] : null, y = C == null ? void 0 : C.icon, w = p(
|
|
2460
2460
|
"px-6 py-4 rounded flex gap-4 max-w-96 shadow-md relative border bg-white",
|
|
2461
|
-
|
|
2461
|
+
g || (C == null ? void 0 : C.borderColor),
|
|
2462
2462
|
u
|
|
2463
2463
|
);
|
|
2464
2464
|
return /* @__PURE__ */ n.jsxs(
|
|
2465
|
-
|
|
2465
|
+
_.div,
|
|
2466
2466
|
{
|
|
2467
2467
|
layout: !0,
|
|
2468
2468
|
initial: m,
|
|
@@ -2483,7 +2483,7 @@ const Ii = ({
|
|
|
2483
2483
|
defaultIconColor: C == null ? void 0 : C.iconColor
|
|
2484
2484
|
}
|
|
2485
2485
|
),
|
|
2486
|
-
/* @__PURE__ */ n.jsx(ln, { title: t, message: r, children:
|
|
2486
|
+
/* @__PURE__ */ n.jsx(ln, { title: t, message: r, children: f })
|
|
2487
2487
|
]
|
|
2488
2488
|
}
|
|
2489
2489
|
);
|
|
@@ -2504,7 +2504,7 @@ const Ii = ({
|
|
|
2504
2504
|
label: o,
|
|
2505
2505
|
children: s
|
|
2506
2506
|
}) => /* @__PURE__ */ n.jsx(
|
|
2507
|
-
|
|
2507
|
+
_.button,
|
|
2508
2508
|
{
|
|
2509
2509
|
whileHover: { scale: 1.05 },
|
|
2510
2510
|
whileTap: { scale: 0.95 },
|
|
@@ -2527,7 +2527,7 @@ const Ii = ({
|
|
|
2527
2527
|
onPageChange: r,
|
|
2528
2528
|
size: o
|
|
2529
2529
|
}) => /* @__PURE__ */ n.jsx(
|
|
2530
|
-
|
|
2530
|
+
_.button,
|
|
2531
2531
|
{
|
|
2532
2532
|
whileHover: { scale: t ? 1 : 1.05 },
|
|
2533
2533
|
whileTap: { scale: 0.95 },
|
|
@@ -2585,7 +2585,7 @@ const Ii = ({
|
|
|
2585
2585
|
}) => {
|
|
2586
2586
|
const i = sa(e, r), a = aa(e, t, r), l = oa(e, t);
|
|
2587
2587
|
return /* @__PURE__ */ n.jsxs(
|
|
2588
|
-
|
|
2588
|
+
_.div,
|
|
2589
2589
|
{
|
|
2590
2590
|
initial: { opacity: 0 },
|
|
2591
2591
|
animate: { opacity: 1 },
|
|
@@ -2603,9 +2603,9 @@ const Ii = ({
|
|
|
2603
2603
|
children: "←"
|
|
2604
2604
|
}
|
|
2605
2605
|
),
|
|
2606
|
-
l.map((c, u,
|
|
2606
|
+
l.map((c, u, f) => {
|
|
2607
2607
|
if (c === "...") {
|
|
2608
|
-
const h =
|
|
2608
|
+
const h = f[u - 1] || "start", m = f[u + 1] || "end";
|
|
2609
2609
|
return /* @__PURE__ */ n.jsx(
|
|
2610
2610
|
na,
|
|
2611
2611
|
{
|
|
@@ -2616,16 +2616,16 @@ const Ii = ({
|
|
|
2616
2616
|
`ellipsis-${h}-${m}`
|
|
2617
2617
|
);
|
|
2618
2618
|
}
|
|
2619
|
-
const
|
|
2619
|
+
const g = c, x = g === e;
|
|
2620
2620
|
return /* @__PURE__ */ n.jsx(
|
|
2621
2621
|
ra,
|
|
2622
2622
|
{
|
|
2623
|
-
pageNumber:
|
|
2623
|
+
pageNumber: g,
|
|
2624
2624
|
isActive: x,
|
|
2625
2625
|
onPageChange: r,
|
|
2626
2626
|
size: o
|
|
2627
2627
|
},
|
|
2628
|
-
|
|
2628
|
+
g
|
|
2629
2629
|
);
|
|
2630
2630
|
}),
|
|
2631
2631
|
/* @__PURE__ */ n.jsx(
|
|
@@ -2641,7 +2641,7 @@ const Ii = ({
|
|
|
2641
2641
|
]
|
|
2642
2642
|
}
|
|
2643
2643
|
);
|
|
2644
|
-
},
|
|
2644
|
+
}, Gi = (e) => {
|
|
2645
2645
|
const [t, r] = Mn({
|
|
2646
2646
|
value: e == null ? void 0 : e.open,
|
|
2647
2647
|
defaultValue: e == null ? void 0 : e.defaultOpen,
|
|
@@ -2666,7 +2666,7 @@ const Ii = ({
|
|
|
2666
2666
|
warning: "bg-yellow-500",
|
|
2667
2667
|
error: "bg-red-500",
|
|
2668
2668
|
info: "bg-blue-400"
|
|
2669
|
-
},
|
|
2669
|
+
}, Hi = ({
|
|
2670
2670
|
value: e = 0,
|
|
2671
2671
|
classNames: t,
|
|
2672
2672
|
indicatorColor: r = "primary",
|
|
@@ -2674,7 +2674,8 @@ const Ii = ({
|
|
|
2674
2674
|
size: s = "md",
|
|
2675
2675
|
showLabel: i = !1,
|
|
2676
2676
|
labelClassName: a,
|
|
2677
|
-
|
|
2677
|
+
onAnimationComplete: l,
|
|
2678
|
+
...c
|
|
2678
2679
|
}) => /* @__PURE__ */ n.jsxs("div", { className: "w-full", children: [
|
|
2679
2680
|
/* @__PURE__ */ n.jsx(
|
|
2680
2681
|
jo,
|
|
@@ -2685,9 +2686,9 @@ const Ii = ({
|
|
|
2685
2686
|
t == null ? void 0 : t.root
|
|
2686
2687
|
),
|
|
2687
2688
|
value: e,
|
|
2688
|
-
...
|
|
2689
|
+
...c,
|
|
2689
2690
|
children: /* @__PURE__ */ n.jsx(So, { asChild: !0, children: /* @__PURE__ */ n.jsx(
|
|
2690
|
-
|
|
2691
|
+
_.div,
|
|
2691
2692
|
{
|
|
2692
2693
|
className: p(
|
|
2693
2694
|
"size-full",
|
|
@@ -2700,7 +2701,8 @@ const Ii = ({
|
|
|
2700
2701
|
ease: "easeInOut"
|
|
2701
2702
|
},
|
|
2702
2703
|
initial: { x: "-100%" },
|
|
2703
|
-
animate: { x: `-${100 - (e || 0)}%` }
|
|
2704
|
+
animate: { x: `-${100 - (e || 0)}%` },
|
|
2705
|
+
onAnimationComplete: l
|
|
2704
2706
|
}
|
|
2705
2707
|
) })
|
|
2706
2708
|
}
|
|
@@ -2729,11 +2731,11 @@ const Ii = ({
|
|
|
2729
2731
|
marginSize: l = 4,
|
|
2730
2732
|
imageSettings: c,
|
|
2731
2733
|
...u
|
|
2732
|
-
} = e,
|
|
2734
|
+
} = e, f = p(
|
|
2733
2735
|
"flex items-center justify-center",
|
|
2734
2736
|
r
|
|
2735
2737
|
);
|
|
2736
|
-
return /* @__PURE__ */ n.jsx("div", { className:
|
|
2738
|
+
return /* @__PURE__ */ n.jsx("div", { className: f, ...u, children: /* @__PURE__ */ n.jsx(
|
|
2737
2739
|
dn,
|
|
2738
2740
|
{
|
|
2739
2741
|
value: t,
|
|
@@ -2756,13 +2758,13 @@ const Ii = ({
|
|
|
2756
2758
|
fontSize: l = 20,
|
|
2757
2759
|
background: c = "#FFFFFF",
|
|
2758
2760
|
lineColor: u = "#000000",
|
|
2759
|
-
margin:
|
|
2760
|
-
...
|
|
2761
|
+
margin: f = 10,
|
|
2762
|
+
...g
|
|
2761
2763
|
} = e, x = p(
|
|
2762
2764
|
"flex items-center justify-center",
|
|
2763
2765
|
r
|
|
2764
2766
|
);
|
|
2765
|
-
return /* @__PURE__ */ n.jsx("div", { className: x, ...
|
|
2767
|
+
return /* @__PURE__ */ n.jsx("div", { className: x, ...g, children: /* @__PURE__ */ n.jsx(
|
|
2766
2768
|
un,
|
|
2767
2769
|
{
|
|
2768
2770
|
value: t,
|
|
@@ -2773,13 +2775,13 @@ const Ii = ({
|
|
|
2773
2775
|
fontSize: l,
|
|
2774
2776
|
background: c,
|
|
2775
2777
|
lineColor: u,
|
|
2776
|
-
margin:
|
|
2778
|
+
margin: f
|
|
2777
2779
|
}
|
|
2778
2780
|
) });
|
|
2779
|
-
},
|
|
2781
|
+
}, zi = (e) => {
|
|
2780
2782
|
const { variant: t } = e;
|
|
2781
2783
|
return t === "qr" ? /* @__PURE__ */ n.jsx(da, { ...e }) : t === "barcode" ? /* @__PURE__ */ n.jsx(ua, { ...e }) : null;
|
|
2782
|
-
},
|
|
2784
|
+
}, Ui = ({
|
|
2783
2785
|
classNames: e,
|
|
2784
2786
|
group: t = [],
|
|
2785
2787
|
defaultValue: r = "",
|
|
@@ -2794,18 +2796,18 @@ const Ii = ({
|
|
|
2794
2796
|
"aria-label": o,
|
|
2795
2797
|
onValueChange: s,
|
|
2796
2798
|
...i,
|
|
2797
|
-
children: t == null ? void 0 : t.map(({ id: a, label: l, value: c, checked: u, disabled:
|
|
2799
|
+
children: t == null ? void 0 : t.map(({ id: a, label: l, value: c, checked: u, disabled: f }) => /* @__PURE__ */ n.jsxs("div", { className: "flex items-center", children: [
|
|
2798
2800
|
/* @__PURE__ */ n.jsx(
|
|
2799
2801
|
Fo,
|
|
2800
2802
|
{
|
|
2801
2803
|
className: p(
|
|
2802
2804
|
"size-4 cursor-pointer rounded-full bg-white outline-1 hover:outline-primary-blue focus:outline-primary-blue data-[state=checked]:outline-1 data-[state=checked]:outline-primary-blue outline-neutral-3",
|
|
2803
2805
|
{
|
|
2804
|
-
"cursor-not-allowed outline-gray-5 bg-gray-3 hover:outline-neutral-3 data-[state=checked]:outline-neutral-3":
|
|
2806
|
+
"cursor-not-allowed outline-gray-5 bg-gray-3 hover:outline-neutral-3 data-[state=checked]:outline-neutral-3": f
|
|
2805
2807
|
},
|
|
2806
2808
|
e == null ? void 0 : e.item
|
|
2807
2809
|
),
|
|
2808
|
-
disabled:
|
|
2810
|
+
disabled: f,
|
|
2809
2811
|
defaultChecked: u,
|
|
2810
2812
|
value: c,
|
|
2811
2813
|
id: a,
|
|
@@ -2815,7 +2817,7 @@ const Ii = ({
|
|
|
2815
2817
|
className: p(
|
|
2816
2818
|
"relative flex size-full items-center justify-center after:block after:size-2 after:rounded-full after:bg-primary-blue",
|
|
2817
2819
|
{
|
|
2818
|
-
"after:bg-black/25":
|
|
2820
|
+
"after:bg-black/25": f
|
|
2819
2821
|
},
|
|
2820
2822
|
e == null ? void 0 : e.indicator
|
|
2821
2823
|
)
|
|
@@ -2828,7 +2830,7 @@ const Ii = ({
|
|
|
2828
2830
|
{
|
|
2829
2831
|
className: p(
|
|
2830
2832
|
"pl-2 text-[15px] leading-none text-black cursor-pointer",
|
|
2831
|
-
{ "cursor-not-allowed text-black/25":
|
|
2833
|
+
{ "cursor-not-allowed text-black/25": f },
|
|
2832
2834
|
e == null ? void 0 : e.label
|
|
2833
2835
|
),
|
|
2834
2836
|
htmlFor: a,
|
|
@@ -2863,7 +2865,7 @@ const Ii = ({
|
|
|
2863
2865
|
}, ja = (e, t) => e ?? t, Sa = (e) => e.map((t) => typeof t == "string" || typeof t == "number" ? {
|
|
2864
2866
|
label: t,
|
|
2865
2867
|
value: t
|
|
2866
|
-
} : t),
|
|
2868
|
+
} : t), Ea = (e, t) => {
|
|
2867
2869
|
const [r, o] = F(0), s = xe(() => Sa(e), [e]);
|
|
2868
2870
|
return D(() => {
|
|
2869
2871
|
const i = s.findIndex(
|
|
@@ -2871,7 +2873,7 @@ const Ii = ({
|
|
|
2871
2873
|
);
|
|
2872
2874
|
i !== -1 && o(i);
|
|
2873
2875
|
}, [t, s]), { activeIndex: r, setActiveIndex: o, normalizedOptions: s };
|
|
2874
|
-
},
|
|
2876
|
+
}, Ra = (e, t, r, o) => {
|
|
2875
2877
|
const [s, i] = F({
|
|
2876
2878
|
width: 0,
|
|
2877
2879
|
height: 0,
|
|
@@ -2913,7 +2915,7 @@ const Ii = ({
|
|
|
2913
2915
|
}) => {
|
|
2914
2916
|
const o = Pa[r] || "rounded-lg";
|
|
2915
2917
|
return /* @__PURE__ */ n.jsx(
|
|
2916
|
-
|
|
2918
|
+
_.div,
|
|
2917
2919
|
{
|
|
2918
2920
|
className: p(
|
|
2919
2921
|
"absolute bg-white shadow-md",
|
|
@@ -2962,7 +2964,7 @@ const Ii = ({
|
|
|
2962
2964
|
initial: { opacity: 0, scale: 0.95 },
|
|
2963
2965
|
animate: { opacity: 1, scale: 1 },
|
|
2964
2966
|
transition: { duration: 0.3, ease: "easeOut" }
|
|
2965
|
-
},
|
|
2967
|
+
}, Ki = ({
|
|
2966
2968
|
options: e,
|
|
2967
2969
|
value: t,
|
|
2968
2970
|
defaultValue: r,
|
|
@@ -2973,12 +2975,12 @@ const Ii = ({
|
|
|
2973
2975
|
className: l,
|
|
2974
2976
|
...c
|
|
2975
2977
|
}) => {
|
|
2976
|
-
const u =
|
|
2978
|
+
const u = En(), f = De(null), { activeIndex: g, setActiveIndex: x, normalizedOptions: h } = Ea(
|
|
2977
2979
|
e,
|
|
2978
2980
|
ja(t, r)
|
|
2979
|
-
), m =
|
|
2980
|
-
g,
|
|
2981
|
+
), m = Ra(
|
|
2981
2982
|
f,
|
|
2983
|
+
g,
|
|
2982
2984
|
s,
|
|
2983
2985
|
a
|
|
2984
2986
|
), b = wa(
|
|
@@ -2992,9 +2994,9 @@ const Ii = ({
|
|
|
2992
2994
|
l
|
|
2993
2995
|
);
|
|
2994
2996
|
return /* @__PURE__ */ n.jsxs(
|
|
2995
|
-
|
|
2997
|
+
_.div,
|
|
2996
2998
|
{
|
|
2997
|
-
ref:
|
|
2999
|
+
ref: f,
|
|
2998
3000
|
id: `${u}-segmented`,
|
|
2999
3001
|
className: v,
|
|
3000
3002
|
...Ia,
|
|
@@ -3013,7 +3015,7 @@ const Ii = ({
|
|
|
3013
3015
|
{
|
|
3014
3016
|
option: C,
|
|
3015
3017
|
index: y,
|
|
3016
|
-
isActive: y ===
|
|
3018
|
+
isActive: y === g,
|
|
3017
3019
|
disabled: i,
|
|
3018
3020
|
vertical: a,
|
|
3019
3021
|
size: s,
|
|
@@ -3079,12 +3081,12 @@ const Ii = ({
|
|
|
3079
3081
|
onSearchChange: l,
|
|
3080
3082
|
searchPlaceholder: c,
|
|
3081
3083
|
disabled: u,
|
|
3082
|
-
notFoundContent:
|
|
3083
|
-
inputRef:
|
|
3084
|
+
notFoundContent: f,
|
|
3085
|
+
inputRef: g
|
|
3084
3086
|
}) => {
|
|
3085
3087
|
const x = (r == null ? void 0 : r.length) === 0 && !o;
|
|
3086
3088
|
let h;
|
|
3087
|
-
return a &&
|
|
3089
|
+
return a && f ? h = f : a ? h = "No results found" : h = s || "No elements available.", /* @__PURE__ */ n.jsxs(
|
|
3088
3090
|
hn,
|
|
3089
3091
|
{
|
|
3090
3092
|
position: "popper",
|
|
@@ -3097,7 +3099,7 @@ const Ii = ({
|
|
|
3097
3099
|
i && l && /* @__PURE__ */ n.jsx(
|
|
3098
3100
|
mn,
|
|
3099
3101
|
{
|
|
3100
|
-
ref:
|
|
3102
|
+
ref: g,
|
|
3101
3103
|
value: a,
|
|
3102
3104
|
onChange: l,
|
|
3103
3105
|
placeholder: c,
|
|
@@ -3149,12 +3151,12 @@ const Ii = ({
|
|
|
3149
3151
|
if (!x) return !0;
|
|
3150
3152
|
const m = x.toLowerCase(), b = typeof h.children == "string" ? h.children.toLowerCase() : "", v = h.value.toLowerCase();
|
|
3151
3153
|
return b.includes(m) || v.includes(m);
|
|
3152
|
-
},
|
|
3154
|
+
}, f = e ? t.filter((x) => (r || u)(s, x)) : t;
|
|
3153
3155
|
return {
|
|
3154
3156
|
searchValue: s,
|
|
3155
3157
|
open: a,
|
|
3156
3158
|
setOpen: l,
|
|
3157
|
-
filteredItems:
|
|
3159
|
+
filteredItems: f,
|
|
3158
3160
|
handleSearchChange: (x) => {
|
|
3159
3161
|
const h = x.target.value;
|
|
3160
3162
|
i(h), o == null || o(h);
|
|
@@ -3177,7 +3179,7 @@ const Ii = ({
|
|
|
3177
3179
|
e === void 0 && s(l), r == null || r(l);
|
|
3178
3180
|
}
|
|
3179
3181
|
};
|
|
3180
|
-
},
|
|
3182
|
+
}, $i = ({
|
|
3181
3183
|
disabled: e,
|
|
3182
3184
|
className: t,
|
|
3183
3185
|
value: r,
|
|
@@ -3188,8 +3190,8 @@ const Ii = ({
|
|
|
3188
3190
|
emptyMessage: l = "No hay elementos disponibles.",
|
|
3189
3191
|
onValueChange: c,
|
|
3190
3192
|
showSearch: u = !1,
|
|
3191
|
-
searchPlaceholder:
|
|
3192
|
-
onSearch:
|
|
3193
|
+
searchPlaceholder: f = "Buscar...",
|
|
3194
|
+
onSearch: g,
|
|
3193
3195
|
filterOption: x,
|
|
3194
3196
|
notFoundContent: h
|
|
3195
3197
|
}) => {
|
|
@@ -3201,14 +3203,14 @@ const Ii = ({
|
|
|
3201
3203
|
searchValue: y,
|
|
3202
3204
|
open: w,
|
|
3203
3205
|
setOpen: j,
|
|
3204
|
-
filteredItems:
|
|
3206
|
+
filteredItems: k,
|
|
3205
3207
|
handleSearchChange: A,
|
|
3206
3208
|
inputRef: M
|
|
3207
3209
|
} = Oa({
|
|
3208
3210
|
showSearch: u,
|
|
3209
3211
|
items: i,
|
|
3210
3212
|
filterOption: x,
|
|
3211
|
-
onSearch:
|
|
3213
|
+
onSearch: g
|
|
3212
3214
|
});
|
|
3213
3215
|
return /* @__PURE__ */ n.jsxs(
|
|
3214
3216
|
bn,
|
|
@@ -3233,13 +3235,13 @@ const Ii = ({
|
|
|
3233
3235
|
{
|
|
3234
3236
|
width: v,
|
|
3235
3237
|
allItems: i,
|
|
3236
|
-
filteredItems:
|
|
3238
|
+
filteredItems: k,
|
|
3237
3239
|
currentValue: m,
|
|
3238
3240
|
emptyMessage: l,
|
|
3239
3241
|
showSearch: u,
|
|
3240
3242
|
searchValue: y,
|
|
3241
3243
|
onSearchChange: A,
|
|
3242
|
-
searchPlaceholder:
|
|
3244
|
+
searchPlaceholder: f,
|
|
3243
3245
|
disabled: e,
|
|
3244
3246
|
notFoundContent: h,
|
|
3245
3247
|
inputRef: M
|
|
@@ -3343,7 +3345,7 @@ const Ii = ({
|
|
|
3343
3345
|
image: Ba,
|
|
3344
3346
|
"image-description": Ga,
|
|
3345
3347
|
list: Ha
|
|
3346
|
-
},
|
|
3348
|
+
}, qi = ({ type: e = "default" }) => {
|
|
3347
3349
|
const t = za[e] ?? Vr;
|
|
3348
3350
|
return /* @__PURE__ */ n.jsx(t, {});
|
|
3349
3351
|
}, Ua = {
|
|
@@ -3362,7 +3364,7 @@ const Ii = ({
|
|
|
3362
3364
|
md: "h-5 w-5",
|
|
3363
3365
|
lg: "h-6 w-6",
|
|
3364
3366
|
xl: "h-7 w-7"
|
|
3365
|
-
},
|
|
3367
|
+
}, Yi = ({
|
|
3366
3368
|
classNames: e,
|
|
3367
3369
|
rangeColor: t = "primary",
|
|
3368
3370
|
customRangeClass: r,
|
|
@@ -3373,7 +3375,7 @@ const Ii = ({
|
|
|
3373
3375
|
max: l = 100,
|
|
3374
3376
|
...c
|
|
3375
3377
|
}) => {
|
|
3376
|
-
const u = (
|
|
3378
|
+
const u = (f) => i ? i(f) : f.toString();
|
|
3377
3379
|
return /* @__PURE__ */ n.jsxs("div", { className: "w-full", children: [
|
|
3378
3380
|
/* @__PURE__ */ n.jsxs(
|
|
3379
3381
|
Qo,
|
|
@@ -3520,7 +3522,7 @@ const Ii = ({
|
|
|
3520
3522
|
),
|
|
3521
3523
|
children: [
|
|
3522
3524
|
/* @__PURE__ */ n.jsx("span", { className: i, children: r === "COMPLETE" ? /* @__PURE__ */ n.jsx(
|
|
3523
|
-
|
|
3525
|
+
Rn,
|
|
3524
3526
|
{
|
|
3525
3527
|
className: p(
|
|
3526
3528
|
"text-primary-blue",
|
|
@@ -3542,38 +3544,40 @@ const Ii = ({
|
|
|
3542
3544
|
}, Se = (e, t, r, o) => e ? 4 : t ? 3 : r ? 2 : o ? 1 : 3, Ja = (e) => {
|
|
3543
3545
|
const t = e.find((r) => r.status === "CURRENT");
|
|
3544
3546
|
return t ? Number(t.id) - 1 : 0;
|
|
3545
|
-
}, ei = (e) => e === 0, ti = (e, t, r) => e >= t - r, ri = (e) => e - 1, ni = (e) => e + 1,
|
|
3547
|
+
}, ei = (e) => e === 0, ti = (e, t, r) => e >= t - r, ri = (e) => e - 1, ni = (e) => e + 1, oi = {
|
|
3548
|
+
start: "justify-start",
|
|
3549
|
+
center: "justify-center",
|
|
3550
|
+
end: "justify-end"
|
|
3551
|
+
}, Wi = ({
|
|
3546
3552
|
steps: e,
|
|
3547
3553
|
size: t = "md",
|
|
3548
3554
|
className: r = "",
|
|
3549
|
-
withNavigation: o = !0
|
|
3555
|
+
withNavigation: o = !0,
|
|
3556
|
+
align: s = "center"
|
|
3550
3557
|
}) => {
|
|
3551
|
-
const { xs:
|
|
3552
|
-
() => Se(l, a, i
|
|
3553
|
-
), g = Ja(e), [
|
|
3554
|
-
const
|
|
3555
|
-
return Math.min(g,
|
|
3556
|
-
}), [
|
|
3558
|
+
const { xs: i, sm: a, md: l, lg: c } = Fn(), [u, f] = F(
|
|
3559
|
+
() => Se(c, l, a, i)
|
|
3560
|
+
), g = Ja(e), [x, h] = F(() => {
|
|
3561
|
+
const j = Se(c, l, a, i), k = Math.max(0, e.length - j);
|
|
3562
|
+
return Math.min(g, k);
|
|
3563
|
+
}), [m, b] = F([]);
|
|
3557
3564
|
D(() => {
|
|
3558
|
-
|
|
3559
|
-
}, [
|
|
3560
|
-
const
|
|
3561
|
-
|
|
3562
|
-
}, [
|
|
3563
|
-
const
|
|
3564
|
-
|
|
3565
|
+
f(Se(c, l, a, i));
|
|
3566
|
+
}, [i, a, l, c]), D(() => {
|
|
3567
|
+
const j = Math.min(x + u, e.length);
|
|
3568
|
+
b(e.slice(x, j));
|
|
3569
|
+
}, [x, e, u]);
|
|
3570
|
+
const v = () => h(ri(x)), C = () => h(ni(x)), y = ei(x), w = ti(
|
|
3571
|
+
x,
|
|
3565
3572
|
e.length,
|
|
3566
|
-
|
|
3573
|
+
u
|
|
3567
3574
|
);
|
|
3568
3575
|
return /* @__PURE__ */ n.jsxs(
|
|
3569
3576
|
"div",
|
|
3570
3577
|
{
|
|
3571
3578
|
className: p(
|
|
3572
3579
|
"flex flex-row items-center w-full gap-4",
|
|
3573
|
-
|
|
3574
|
-
"justify-between": o,
|
|
3575
|
-
"justify-center": !o
|
|
3576
|
-
},
|
|
3580
|
+
o ? "justify-between" : oi[s],
|
|
3577
3581
|
{ [r]: r }
|
|
3578
3582
|
),
|
|
3579
3583
|
children: [
|
|
@@ -3581,18 +3585,18 @@ const Ii = ({
|
|
|
3581
3585
|
at,
|
|
3582
3586
|
{
|
|
3583
3587
|
arrow: "left",
|
|
3584
|
-
disabled:
|
|
3585
|
-
onClick:
|
|
3588
|
+
disabled: y,
|
|
3589
|
+
onClick: v,
|
|
3586
3590
|
size: t
|
|
3587
3591
|
}
|
|
3588
3592
|
),
|
|
3589
|
-
/* @__PURE__ */ n.jsx(Qa, { visibleSteps:
|
|
3593
|
+
/* @__PURE__ */ n.jsx(Qa, { visibleSteps: m, size: t }),
|
|
3590
3594
|
o && /* @__PURE__ */ n.jsx(
|
|
3591
3595
|
at,
|
|
3592
3596
|
{
|
|
3593
3597
|
arrow: "right",
|
|
3594
|
-
disabled:
|
|
3595
|
-
onClick:
|
|
3598
|
+
disabled: w,
|
|
3599
|
+
onClick: C,
|
|
3596
3600
|
size: t
|
|
3597
3601
|
}
|
|
3598
3602
|
)
|
|
@@ -3616,28 +3620,28 @@ const Ii = ({
|
|
|
3616
3620
|
children: "absolute flex items-center justify-center text-white/80 transition-opacity duration-200",
|
|
3617
3621
|
unCheckedChildren: "left-1 data-[state=checked]:opacity-0 data-[state=checked]:invisible",
|
|
3618
3622
|
checkedChildren: "right-1 data-[state=unchecked]:opacity-0 data-[state=unchecked]:invisible"
|
|
3619
|
-
},
|
|
3623
|
+
}, si = {
|
|
3620
3624
|
default: "data-[state=checked]:bg-[#0047BA]",
|
|
3621
3625
|
success: "data-[state=checked]:bg-green-500",
|
|
3622
3626
|
danger: "data-[state=checked]:bg-red-500"
|
|
3623
|
-
},
|
|
3627
|
+
}, ai = (e, t, r, o) => p(
|
|
3624
3628
|
Z.root,
|
|
3625
|
-
|
|
3629
|
+
si[e],
|
|
3626
3630
|
et[t].root,
|
|
3627
3631
|
r && "cursor-not-allowed",
|
|
3628
3632
|
o
|
|
3629
3633
|
), it = (e, t) => {
|
|
3630
3634
|
const r = t ? Z.checkedChildren : Z.unCheckedChildren;
|
|
3631
3635
|
return p(Z.children, r, et[e].children);
|
|
3632
|
-
},
|
|
3636
|
+
}, ii = (e) => {
|
|
3633
3637
|
const t = typeof e == "string" ? e : e.text, r = typeof e == "string" ? "right" : e.position;
|
|
3634
3638
|
return { labelText: t, labelPosition: r };
|
|
3635
|
-
}, lt = (e) => p("text-sm text-foreground", e && "opacity-50"),
|
|
3639
|
+
}, lt = (e) => p("text-sm text-foreground", e && "opacity-50"), li = (e) => p("flex items-center gap-2", e && "cursor-not-allowed"), ci = {
|
|
3636
3640
|
type: "spring",
|
|
3637
3641
|
stiffness: 500,
|
|
3638
3642
|
damping: 30,
|
|
3639
3643
|
mass: 1
|
|
3640
|
-
},
|
|
3644
|
+
}, Xi = ({
|
|
3641
3645
|
className: e,
|
|
3642
3646
|
label: t,
|
|
3643
3647
|
type: r = "default",
|
|
@@ -3648,25 +3652,25 @@ const Ii = ({
|
|
|
3648
3652
|
onCheckedChange: l,
|
|
3649
3653
|
checkedChildren: c,
|
|
3650
3654
|
unCheckedChildren: u,
|
|
3651
|
-
...
|
|
3655
|
+
...f
|
|
3652
3656
|
}) => {
|
|
3653
|
-
const
|
|
3657
|
+
const g = et[o], x = /* @__PURE__ */ n.jsxs(
|
|
3654
3658
|
as,
|
|
3655
3659
|
{
|
|
3656
|
-
className:
|
|
3660
|
+
className: ai(r, o, a, e),
|
|
3657
3661
|
checked: s,
|
|
3658
3662
|
defaultChecked: i,
|
|
3659
3663
|
disabled: a,
|
|
3660
3664
|
onCheckedChange: l,
|
|
3661
|
-
...
|
|
3665
|
+
...f,
|
|
3662
3666
|
children: [
|
|
3663
3667
|
u && /* @__PURE__ */ n.jsx("div", { className: it(o, !1), children: u }),
|
|
3664
3668
|
/* @__PURE__ */ n.jsx(is, { asChild: !0, children: /* @__PURE__ */ n.jsx(
|
|
3665
|
-
|
|
3669
|
+
_.div,
|
|
3666
3670
|
{
|
|
3667
|
-
className: p(Z.thumb,
|
|
3671
|
+
className: p(Z.thumb, g.thumb),
|
|
3668
3672
|
layout: !0,
|
|
3669
|
-
transition:
|
|
3673
|
+
transition: ci,
|
|
3670
3674
|
whileTap: { scale: 0.95 }
|
|
3671
3675
|
}
|
|
3672
3676
|
) }),
|
|
@@ -3675,15 +3679,15 @@ const Ii = ({
|
|
|
3675
3679
|
}
|
|
3676
3680
|
);
|
|
3677
3681
|
if (t) {
|
|
3678
|
-
const { labelText: h, labelPosition: m } =
|
|
3679
|
-
return /* @__PURE__ */ n.jsxs("div", { className:
|
|
3682
|
+
const { labelText: h, labelPosition: m } = ii(t);
|
|
3683
|
+
return /* @__PURE__ */ n.jsxs("div", { className: li(a), children: [
|
|
3680
3684
|
m === "left" && /* @__PURE__ */ n.jsx("span", { className: lt(a), children: h }),
|
|
3681
3685
|
x,
|
|
3682
3686
|
m === "right" && /* @__PURE__ */ n.jsx("span", { className: lt(a), children: h })
|
|
3683
3687
|
] });
|
|
3684
3688
|
}
|
|
3685
3689
|
return x;
|
|
3686
|
-
},
|
|
3690
|
+
}, di = {
|
|
3687
3691
|
success: {
|
|
3688
3692
|
icon: /* @__PURE__ */ n.jsx(bt, { width: 16, height: 16 }),
|
|
3689
3693
|
bgColor: "bg-green-1",
|
|
@@ -3712,7 +3716,7 @@ const Ii = ({
|
|
|
3712
3716
|
borderColor: "border-red-3",
|
|
3713
3717
|
closeButtonColor: "hover:bg-red-2"
|
|
3714
3718
|
}
|
|
3715
|
-
},
|
|
3719
|
+
}, Zi = ({
|
|
3716
3720
|
children: e,
|
|
3717
3721
|
type: t = "info",
|
|
3718
3722
|
showIcon: r = !1,
|
|
@@ -3723,27 +3727,27 @@ const Ii = ({
|
|
|
3723
3727
|
bgColor: l,
|
|
3724
3728
|
textColor: c,
|
|
3725
3729
|
borderColor: u,
|
|
3726
|
-
...
|
|
3730
|
+
...f
|
|
3727
3731
|
}) => {
|
|
3728
|
-
const
|
|
3732
|
+
const g = !!(l || c || u), x = di[t], h = a || (r ? x.icon : null), m = p(
|
|
3729
3733
|
"inline-flex items-center gap-2 px-2 py-2 rounded border text-sm font-medium leading-none rounded-sm",
|
|
3730
3734
|
{
|
|
3731
|
-
[x.bgColor]: !
|
|
3732
|
-
[x.textColor]: !
|
|
3733
|
-
[x.borderColor]: !
|
|
3735
|
+
[x.bgColor]: !g,
|
|
3736
|
+
[x.textColor]: !g,
|
|
3737
|
+
[x.borderColor]: !g,
|
|
3734
3738
|
[i]: i
|
|
3735
3739
|
}
|
|
3736
|
-
), b =
|
|
3740
|
+
), b = g ? {
|
|
3737
3741
|
backgroundColor: l,
|
|
3738
3742
|
color: c,
|
|
3739
3743
|
borderColor: u
|
|
3740
3744
|
} : void 0, v = p(
|
|
3741
3745
|
"rounded transition-colors cursor-pointer text-black/[0.45]",
|
|
3742
3746
|
{
|
|
3743
|
-
[x.closeButtonColor]: !
|
|
3747
|
+
[x.closeButtonColor]: !g
|
|
3744
3748
|
}
|
|
3745
3749
|
);
|
|
3746
|
-
return /* @__PURE__ */ n.jsxs("span", { className: m, style: b, ...
|
|
3750
|
+
return /* @__PURE__ */ n.jsxs("span", { className: m, style: b, ...f, children: [
|
|
3747
3751
|
h && /* @__PURE__ */ n.jsx("span", { className: "inline-flex shrink-0", children: h }),
|
|
3748
3752
|
/* @__PURE__ */ n.jsx("span", { className: "inline-flex items-center", children: e }),
|
|
3749
3753
|
o && /* @__PURE__ */ n.jsx(
|
|
@@ -3757,11 +3761,11 @@ const Ii = ({
|
|
|
3757
3761
|
}
|
|
3758
3762
|
)
|
|
3759
3763
|
] });
|
|
3760
|
-
},
|
|
3764
|
+
}, ui = {
|
|
3761
3765
|
initial: { opacity: 0, x: 16 },
|
|
3762
3766
|
animate: { opacity: 1, x: 0 },
|
|
3763
3767
|
exit: { opacity: 0, x: -20 }
|
|
3764
|
-
},
|
|
3768
|
+
}, fi = ({
|
|
3765
3769
|
type: e,
|
|
3766
3770
|
items: t,
|
|
3767
3771
|
currentActiveKey: r,
|
|
@@ -3771,10 +3775,10 @@ const Ii = ({
|
|
|
3771
3775
|
if (e === "segmented") {
|
|
3772
3776
|
const i = (s = t.find((a) => a.key === r)) == null ? void 0 : s.content;
|
|
3773
3777
|
return /* @__PURE__ */ n.jsx(ot, { value: r, forceMount: !0, asChild: !0, children: /* @__PURE__ */ n.jsx(Fe, { mode: "wait", initial: !1, children: /* @__PURE__ */ n.jsx(
|
|
3774
|
-
|
|
3778
|
+
_.div,
|
|
3775
3779
|
{
|
|
3776
3780
|
className: p("min-w-full", o),
|
|
3777
|
-
variants:
|
|
3781
|
+
variants: ui,
|
|
3778
3782
|
initial: "initial",
|
|
3779
3783
|
animate: "animate",
|
|
3780
3784
|
exit: "exit",
|
|
@@ -3793,7 +3797,7 @@ const Ii = ({
|
|
|
3793
3797
|
},
|
|
3794
3798
|
i.key
|
|
3795
3799
|
)) });
|
|
3796
|
-
},
|
|
3800
|
+
}, gi = (e, t) => p(
|
|
3797
3801
|
{
|
|
3798
3802
|
"text-sm font-normal": e === "default" || e === "underline" || e === "pills",
|
|
3799
3803
|
"border-b border-gray-200": e === "underline",
|
|
@@ -3801,40 +3805,40 @@ const Ii = ({
|
|
|
3801
3805
|
"bg-gray-100 rounded-xl p-1 text-lg text-grays-Macropay-07 font-normal": e === "segmented"
|
|
3802
3806
|
},
|
|
3803
3807
|
t
|
|
3804
|
-
),
|
|
3808
|
+
), xi = (e) => p("select-none", {
|
|
3805
3809
|
"flex flex-wrap text-center text-gray-500 border-b border-gray-200 font-normal": e === "default" || e === "pills",
|
|
3806
3810
|
"-mb-px": e === "underline",
|
|
3807
3811
|
"flex flex-wrap -mb-px font-normal text-sm text-center text-gray-500": e === "with-icon",
|
|
3808
3812
|
"grid grid-flow-col justify-stretch items-center text-lg font-normal text-center text-lg sm:w-full": e === "segmented"
|
|
3809
|
-
}),
|
|
3813
|
+
}), hi = (e) => p({
|
|
3810
3814
|
"inline-block p-3 py-3 rounded-t-lg active:text-gray-500 active:bg-gray-50": e === "default" || e === "pills",
|
|
3811
3815
|
"inline-block p-3 py-3 border-b-2 rounded-t-lg active:border-primary-blue": e === "underline",
|
|
3812
3816
|
"inline-flex items-center justify-center p-3 border-b-2 rounded-t-lg active:border-gray-300": e === "with-icon",
|
|
3813
3817
|
"md:inline-block px-2 py-3 rounded-lg min-w-full h-full items-center text-center flex justify-center text-sm": e === "segmented"
|
|
3814
|
-
}),
|
|
3818
|
+
}), mi = (e, t) => p({
|
|
3815
3819
|
[`font-bold text-${t} bg-white`]: e === "default" || e === "pills",
|
|
3816
3820
|
[`text-${t} border-b-2 border-primary-blue`]: e === "underline" || e === "with-icon",
|
|
3817
3821
|
[`font-bold text-${t} active:text-${t}`]: e === "segmented"
|
|
3818
|
-
}),
|
|
3822
|
+
}), pi = ({
|
|
3819
3823
|
type: e,
|
|
3820
3824
|
items: t,
|
|
3821
3825
|
currentActiveKey: r,
|
|
3822
3826
|
activeColorTabs: o,
|
|
3823
3827
|
className: s
|
|
3824
|
-
}) => /* @__PURE__ */ n.jsx("div", { className:
|
|
3828
|
+
}) => /* @__PURE__ */ n.jsx("div", { className: gi(e, s), children: /* @__PURE__ */ n.jsx(us, { className: xi(e), children: t.map(({ key: i, label: a, disabled: l }) => /* @__PURE__ */ n.jsxs(
|
|
3825
3829
|
fs,
|
|
3826
3830
|
{
|
|
3827
3831
|
value: i,
|
|
3828
3832
|
disabled: l,
|
|
3829
3833
|
className: p(
|
|
3830
3834
|
"h-full relative",
|
|
3831
|
-
|
|
3832
|
-
i === r &&
|
|
3835
|
+
hi(e),
|
|
3836
|
+
i === r && mi(e, o),
|
|
3833
3837
|
l && "text-gray-300 cursor-not-allowed"
|
|
3834
3838
|
),
|
|
3835
3839
|
children: [
|
|
3836
3840
|
e === "segmented" && i === r && /* @__PURE__ */ n.jsx(
|
|
3837
|
-
|
|
3841
|
+
_.div,
|
|
3838
3842
|
{
|
|
3839
3843
|
layoutId: "segmented-indicator",
|
|
3840
3844
|
className: "absolute inset-0 bg-white rounded-lg z-0",
|
|
@@ -3849,7 +3853,7 @@ const Ii = ({
|
|
|
3849
3853
|
]
|
|
3850
3854
|
},
|
|
3851
3855
|
i
|
|
3852
|
-
)) }) }),
|
|
3856
|
+
)) }) }), Qi = ({
|
|
3853
3857
|
currentActiveKey: e,
|
|
3854
3858
|
type: t = "default",
|
|
3855
3859
|
items: r,
|
|
@@ -3865,7 +3869,7 @@ const Ii = ({
|
|
|
3865
3869
|
className: "flex flex-col gap-4",
|
|
3866
3870
|
children: [
|
|
3867
3871
|
/* @__PURE__ */ n.jsx(
|
|
3868
|
-
|
|
3872
|
+
pi,
|
|
3869
3873
|
{
|
|
3870
3874
|
type: t,
|
|
3871
3875
|
items: r,
|
|
@@ -3875,7 +3879,7 @@ const Ii = ({
|
|
|
3875
3879
|
}
|
|
3876
3880
|
),
|
|
3877
3881
|
/* @__PURE__ */ n.jsx(
|
|
3878
|
-
|
|
3882
|
+
fi,
|
|
3879
3883
|
{
|
|
3880
3884
|
type: t,
|
|
3881
3885
|
items: r,
|
|
@@ -3885,10 +3889,10 @@ const Ii = ({
|
|
|
3885
3889
|
)
|
|
3886
3890
|
]
|
|
3887
3891
|
}
|
|
3888
|
-
),
|
|
3892
|
+
), vi = ({ name: e, label: t, children: r }) => /* @__PURE__ */ n.jsxs(Jn, { name: e, children: [
|
|
3889
3893
|
t && /* @__PURE__ */ n.jsx(eo, { children: t }),
|
|
3890
3894
|
r
|
|
3891
|
-
] }),
|
|
3895
|
+
] }), bi = ({
|
|
3892
3896
|
type: e,
|
|
3893
3897
|
error: t,
|
|
3894
3898
|
disabled: r,
|
|
@@ -3920,7 +3924,7 @@ const Ii = ({
|
|
|
3920
3924
|
[i]: i,
|
|
3921
3925
|
[(a == null ? void 0 : a.input) ?? ""]: a == null ? void 0 : a.input
|
|
3922
3926
|
}
|
|
3923
|
-
),
|
|
3927
|
+
), yi = ({
|
|
3924
3928
|
type: e = "normal",
|
|
3925
3929
|
inputSize: t = "xl",
|
|
3926
3930
|
className: r,
|
|
@@ -3932,7 +3936,7 @@ const Ii = ({
|
|
|
3932
3936
|
"textarea",
|
|
3933
3937
|
{
|
|
3934
3938
|
...a,
|
|
3935
|
-
className:
|
|
3939
|
+
className: bi({
|
|
3936
3940
|
type: e,
|
|
3937
3941
|
inputSize: t,
|
|
3938
3942
|
className: r,
|
|
@@ -3944,10 +3948,10 @@ const Ii = ({
|
|
|
3944
3948
|
s && (l.currentTarget.value = ""), i == null || i(l);
|
|
3945
3949
|
}
|
|
3946
3950
|
}
|
|
3947
|
-
) }),
|
|
3951
|
+
) }), Ci = ({ footer: e, current: t = 0, max: r }) => /* @__PURE__ */ n.jsxs("div", { className: "flex justify-between pt-1 text-sm text-gray-7", children: [
|
|
3948
3952
|
/* @__PURE__ */ n.jsx("span", { children: e }),
|
|
3949
3953
|
r && /* @__PURE__ */ n.jsx("span", { children: `${t} / ${r}` })
|
|
3950
|
-
] }),
|
|
3954
|
+
] }), Ji = ({
|
|
3951
3955
|
name: e,
|
|
3952
3956
|
label: t,
|
|
3953
3957
|
labelFooter: r,
|
|
@@ -3958,30 +3962,30 @@ const Ii = ({
|
|
|
3958
3962
|
classesNames: l,
|
|
3959
3963
|
...c
|
|
3960
3964
|
}) => {
|
|
3961
|
-
const [u,
|
|
3965
|
+
const [u, f] = F(a);
|
|
3962
3966
|
return /* @__PURE__ */ n.jsx(Qn, { children: /* @__PURE__ */ n.jsxs(
|
|
3963
|
-
|
|
3967
|
+
_.div,
|
|
3964
3968
|
{
|
|
3965
3969
|
initial: { opacity: 0 },
|
|
3966
3970
|
animate: { opacity: 1 },
|
|
3967
3971
|
transition: { duration: 0.2 },
|
|
3968
3972
|
className: l == null ? void 0 : l.container,
|
|
3969
3973
|
children: [
|
|
3970
|
-
/* @__PURE__ */ n.jsx(
|
|
3971
|
-
|
|
3974
|
+
/* @__PURE__ */ n.jsx(vi, { name: e, label: t, children: /* @__PURE__ */ n.jsx(
|
|
3975
|
+
yi,
|
|
3972
3976
|
{
|
|
3973
3977
|
...c,
|
|
3974
3978
|
maxLength: s,
|
|
3975
3979
|
minLength: i,
|
|
3976
3980
|
value: u,
|
|
3977
|
-
onChange: (
|
|
3981
|
+
onChange: (g) => {
|
|
3978
3982
|
var x;
|
|
3979
|
-
g
|
|
3983
|
+
f(g.target.value), (x = c.onChange) == null || x.call(c, g);
|
|
3980
3984
|
}
|
|
3981
3985
|
}
|
|
3982
3986
|
) }),
|
|
3983
3987
|
/* @__PURE__ */ n.jsx(
|
|
3984
|
-
|
|
3988
|
+
Ci,
|
|
3985
3989
|
{
|
|
3986
3990
|
footer: r ?? `${i} caracteres requeridos`,
|
|
3987
3991
|
current: u.length,
|
|
@@ -3992,12 +3996,12 @@ const Ii = ({
|
|
|
3992
3996
|
]
|
|
3993
3997
|
}
|
|
3994
3998
|
) });
|
|
3995
|
-
},
|
|
3999
|
+
}, el = ({ className: e, content: t, children: r, ...o }) => {
|
|
3996
4000
|
const s = typeof t == "string";
|
|
3997
4001
|
return /* @__PURE__ */ n.jsx(Ts, { children: /* @__PURE__ */ n.jsxs(ks, { children: [
|
|
3998
4002
|
/* @__PURE__ */ n.jsx(_s, { asChild: !0, children: r }),
|
|
3999
4003
|
/* @__PURE__ */ n.jsx(Is, { children: /* @__PURE__ */ n.jsx(Ns, { className: e, asChild: !0, ...o, children: /* @__PURE__ */ n.jsxs(
|
|
4000
|
-
|
|
4004
|
+
_.div,
|
|
4001
4005
|
{
|
|
4002
4006
|
className: p({
|
|
4003
4007
|
"bg-gray-800 text-white rounded shadow-lg select-none px-4 py-2 outline-none border-0": s && !e
|
|
@@ -4013,7 +4017,7 @@ const Ii = ({
|
|
|
4013
4017
|
}
|
|
4014
4018
|
) }) })
|
|
4015
4019
|
] }) });
|
|
4016
|
-
},
|
|
4020
|
+
}, tl = ({
|
|
4017
4021
|
className: e,
|
|
4018
4022
|
variant: t = "default",
|
|
4019
4023
|
size: r = "default",
|
|
@@ -4027,42 +4031,43 @@ const Ii = ({
|
|
|
4027
4031
|
}
|
|
4028
4032
|
);
|
|
4029
4033
|
export {
|
|
4030
|
-
|
|
4031
|
-
|
|
4032
|
-
|
|
4033
|
-
|
|
4034
|
-
|
|
4035
|
-
|
|
4036
|
-
|
|
4037
|
-
|
|
4038
|
-
Fi as
|
|
4039
|
-
|
|
4040
|
-
|
|
4034
|
+
Ni as Accordion,
|
|
4035
|
+
Ai as Alert,
|
|
4036
|
+
ol as Avatar,
|
|
4037
|
+
sl as Button,
|
|
4038
|
+
Mi as Card,
|
|
4039
|
+
al as Carousel,
|
|
4040
|
+
il as Checkbox,
|
|
4041
|
+
ll as Col,
|
|
4042
|
+
Fi as Divider,
|
|
4043
|
+
Di as Drawer,
|
|
4044
|
+
cl as Dropdown,
|
|
4045
|
+
Oi as Empty,
|
|
4041
4046
|
Q as Flex,
|
|
4042
|
-
|
|
4043
|
-
|
|
4044
|
-
|
|
4045
|
-
|
|
4047
|
+
Li as Input,
|
|
4048
|
+
Vi as List,
|
|
4049
|
+
dl as Modal,
|
|
4050
|
+
Bi as Notification,
|
|
4046
4051
|
ia as Pagination,
|
|
4047
|
-
|
|
4052
|
+
Gi as Popover,
|
|
4048
4053
|
tn as Portal,
|
|
4049
|
-
|
|
4050
|
-
|
|
4051
|
-
|
|
4052
|
-
|
|
4053
|
-
|
|
4054
|
-
|
|
4055
|
-
|
|
4056
|
-
|
|
4057
|
-
|
|
4054
|
+
Hi as Progress,
|
|
4055
|
+
zi as QRBarcode,
|
|
4056
|
+
Ui as RadioGroup,
|
|
4057
|
+
ul as Row,
|
|
4058
|
+
Ki as Segmented,
|
|
4059
|
+
$i as Select,
|
|
4060
|
+
qi as Skeleton,
|
|
4061
|
+
Yi as Slider,
|
|
4062
|
+
_i as Spinner,
|
|
4058
4063
|
Dn as SpinnerSizeMap,
|
|
4059
|
-
|
|
4060
|
-
|
|
4061
|
-
|
|
4062
|
-
|
|
4063
|
-
|
|
4064
|
-
|
|
4065
|
-
|
|
4066
|
-
|
|
4064
|
+
Wi as Steps,
|
|
4065
|
+
Xi as Switch,
|
|
4066
|
+
Qi as Tabs,
|
|
4067
|
+
Zi as Tag,
|
|
4068
|
+
Ji as TextArea,
|
|
4069
|
+
tl as Toggle,
|
|
4070
|
+
fl as ToggleGroup,
|
|
4071
|
+
el as Tooltip,
|
|
4067
4072
|
an as Typography
|
|
4068
4073
|
};
|