@oniratec/onira-react-ui 3.0.1 → 3.1.1
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/factories/form/types.d.ts +2 -0
- package/dist/factories/form/types.d.ts.map +1 -1
- package/dist/index.cjs +2 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +808 -784
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { twMerge as Wo } from "tailwind-merge";
|
|
2
2
|
import { clsx as ha } from "clsx";
|
|
3
|
-
import { jsx as
|
|
3
|
+
import { jsx as c, jsxs as w, Fragment as $s } from "react/jsx-runtime";
|
|
4
4
|
import * as h from "react";
|
|
5
5
|
import k, { useLayoutEffect as Xu, useState as Zt, useId as zo, useRef as Ku, useMemo as kn, useEffect as Nn, forwardRef as ma, useCallback as Qu, Fragment as ii } from "react";
|
|
6
6
|
import { Loader2 as pa, CheckCircle as ed, Info as td, AlertTriangle as rd, AlertCircle as nd, Minus as sd, Check as $n, Calendar as ad, ChevronLeft as Zo, ChevronRight as Wn, X as Ur, Circle as id, UploadCloud as od, FileIcon as ld, EyeOff as Bo, EyeIcon as cd, ChevronDown as zn, ChevronUp as Uo, Menu as ud, ChevronsUpDown as dd, TrendingUp as fd, TrendingDown as hd, Eye as md } from "lucide-react";
|
|
@@ -48,11 +48,11 @@ const oi = ({ name: t, colors: e, title: r, square: n, size: s, ...a }) => {
|
|
|
48
48
|
height: s,
|
|
49
49
|
...a,
|
|
50
50
|
children: [
|
|
51
|
-
r && /* @__PURE__ */
|
|
52
|
-
/* @__PURE__ */
|
|
51
|
+
r && /* @__PURE__ */ c("title", { children: t }),
|
|
52
|
+
/* @__PURE__ */ c("mask", { id: o, maskUnits: "userSpaceOnUse", x: 0, y: 0, width: ue, height: ue, children: /* @__PURE__ */ c("rect", { width: ue, height: ue, rx: n ? void 0 : ue * 2, fill: "#FFFFFF" }) }),
|
|
53
53
|
/* @__PURE__ */ w("g", { mask: `url(#${o})`, children: [
|
|
54
|
-
/* @__PURE__ */
|
|
55
|
-
/* @__PURE__ */
|
|
54
|
+
/* @__PURE__ */ c("rect", { width: ue, height: ue, fill: i[0].color }),
|
|
55
|
+
/* @__PURE__ */ c(
|
|
56
56
|
"rect",
|
|
57
57
|
{
|
|
58
58
|
x: (ue - 60) / 2,
|
|
@@ -63,7 +63,7 @@ const oi = ({ name: t, colors: e, title: r, square: n, size: s, ...a }) => {
|
|
|
63
63
|
transform: "translate(" + i[1].translateX + " " + i[1].translateY + ") rotate(" + i[1].rotate + " " + ue / 2 + " " + ue / 2 + ")"
|
|
64
64
|
}
|
|
65
65
|
),
|
|
66
|
-
/* @__PURE__ */
|
|
66
|
+
/* @__PURE__ */ c(
|
|
67
67
|
"circle",
|
|
68
68
|
{
|
|
69
69
|
cx: ue / 2,
|
|
@@ -73,7 +73,7 @@ const oi = ({ name: t, colors: e, title: r, square: n, size: s, ...a }) => {
|
|
|
73
73
|
transform: "translate(" + i[2].translateX + " " + i[2].translateY + ")"
|
|
74
74
|
}
|
|
75
75
|
),
|
|
76
|
-
/* @__PURE__ */
|
|
76
|
+
/* @__PURE__ */ c(
|
|
77
77
|
"line",
|
|
78
78
|
{
|
|
79
79
|
x1: 0,
|
|
@@ -110,18 +110,18 @@ const xd = ({ name: t, colors: e, title: r, square: n, size: s, ...a }) => {
|
|
|
110
110
|
height: s,
|
|
111
111
|
...a,
|
|
112
112
|
children: [
|
|
113
|
-
r && /* @__PURE__ */
|
|
114
|
-
/* @__PURE__ */
|
|
113
|
+
r && /* @__PURE__ */ c("title", { children: t }),
|
|
114
|
+
/* @__PURE__ */ c("mask", { id: o, maskUnits: "userSpaceOnUse", x: 0, y: 0, width: Pt, height: Pt, children: /* @__PURE__ */ c("rect", { width: Pt, height: Pt, rx: n ? void 0 : Pt * 2, fill: "#FFFFFF" }) }),
|
|
115
115
|
/* @__PURE__ */ w("g", { mask: `url(#${o})`, children: [
|
|
116
|
-
/* @__PURE__ */
|
|
117
|
-
/* @__PURE__ */
|
|
118
|
-
/* @__PURE__ */
|
|
119
|
-
/* @__PURE__ */
|
|
120
|
-
/* @__PURE__ */
|
|
121
|
-
/* @__PURE__ */
|
|
122
|
-
/* @__PURE__ */
|
|
123
|
-
/* @__PURE__ */
|
|
124
|
-
/* @__PURE__ */
|
|
116
|
+
/* @__PURE__ */ c("path", { d: "M0 0h90v45H0z", fill: i[0] }),
|
|
117
|
+
/* @__PURE__ */ c("path", { d: "M0 45h90v45H0z", fill: i[1] }),
|
|
118
|
+
/* @__PURE__ */ c("path", { d: "M83 45a38 38 0 00-76 0h76z", fill: i[2] }),
|
|
119
|
+
/* @__PURE__ */ c("path", { d: "M83 45a38 38 0 01-76 0h76z", fill: i[3] }),
|
|
120
|
+
/* @__PURE__ */ c("path", { d: "M77 45a32 32 0 10-64 0h64z", fill: i[4] }),
|
|
121
|
+
/* @__PURE__ */ c("path", { d: "M77 45a32 32 0 11-64 0h64z", fill: i[5] }),
|
|
122
|
+
/* @__PURE__ */ c("path", { d: "M71 45a26 26 0 00-52 0h52z", fill: i[6] }),
|
|
123
|
+
/* @__PURE__ */ c("path", { d: "M71 45a26 26 0 01-52 0h52z", fill: i[7] }),
|
|
124
|
+
/* @__PURE__ */ c("circle", { cx: 45, cy: 45, r: 23, fill: i[8] })
|
|
125
125
|
] })
|
|
126
126
|
]
|
|
127
127
|
}
|
|
@@ -147,8 +147,8 @@ const Sd = ({ name: t, colors: e, title: r, square: n, size: s, ...a }) => {
|
|
|
147
147
|
height: s,
|
|
148
148
|
...a,
|
|
149
149
|
children: [
|
|
150
|
-
r && /* @__PURE__ */
|
|
151
|
-
/* @__PURE__ */
|
|
150
|
+
r && /* @__PURE__ */ c("title", { children: t }),
|
|
151
|
+
/* @__PURE__ */ c(
|
|
152
152
|
"mask",
|
|
153
153
|
{
|
|
154
154
|
id: o,
|
|
@@ -158,87 +158,87 @@ const Sd = ({ name: t, colors: e, title: r, square: n, size: s, ...a }) => {
|
|
|
158
158
|
y: 0,
|
|
159
159
|
width: Ft,
|
|
160
160
|
height: Ft,
|
|
161
|
-
children: /* @__PURE__ */
|
|
161
|
+
children: /* @__PURE__ */ c("rect", { width: Ft, height: Ft, rx: n ? void 0 : Ft * 2, fill: "#FFFFFF" })
|
|
162
162
|
}
|
|
163
163
|
),
|
|
164
164
|
/* @__PURE__ */ w("g", { mask: `url(#${o})`, children: [
|
|
165
|
-
/* @__PURE__ */
|
|
166
|
-
/* @__PURE__ */
|
|
167
|
-
/* @__PURE__ */
|
|
168
|
-
/* @__PURE__ */
|
|
169
|
-
/* @__PURE__ */
|
|
170
|
-
/* @__PURE__ */
|
|
171
|
-
/* @__PURE__ */
|
|
172
|
-
/* @__PURE__ */
|
|
173
|
-
/* @__PURE__ */
|
|
174
|
-
/* @__PURE__ */
|
|
175
|
-
/* @__PURE__ */
|
|
176
|
-
/* @__PURE__ */
|
|
177
|
-
/* @__PURE__ */
|
|
178
|
-
/* @__PURE__ */
|
|
179
|
-
/* @__PURE__ */
|
|
180
|
-
/* @__PURE__ */
|
|
181
|
-
/* @__PURE__ */
|
|
182
|
-
/* @__PURE__ */
|
|
183
|
-
/* @__PURE__ */
|
|
184
|
-
/* @__PURE__ */
|
|
185
|
-
/* @__PURE__ */
|
|
186
|
-
/* @__PURE__ */
|
|
187
|
-
/* @__PURE__ */
|
|
188
|
-
/* @__PURE__ */
|
|
189
|
-
/* @__PURE__ */
|
|
190
|
-
/* @__PURE__ */
|
|
191
|
-
/* @__PURE__ */
|
|
192
|
-
/* @__PURE__ */
|
|
193
|
-
/* @__PURE__ */
|
|
194
|
-
/* @__PURE__ */
|
|
195
|
-
/* @__PURE__ */
|
|
196
|
-
/* @__PURE__ */
|
|
197
|
-
/* @__PURE__ */
|
|
198
|
-
/* @__PURE__ */
|
|
199
|
-
/* @__PURE__ */
|
|
200
|
-
/* @__PURE__ */
|
|
201
|
-
/* @__PURE__ */
|
|
202
|
-
/* @__PURE__ */
|
|
203
|
-
/* @__PURE__ */
|
|
204
|
-
/* @__PURE__ */
|
|
205
|
-
/* @__PURE__ */
|
|
206
|
-
/* @__PURE__ */
|
|
207
|
-
/* @__PURE__ */
|
|
208
|
-
/* @__PURE__ */
|
|
209
|
-
/* @__PURE__ */
|
|
210
|
-
/* @__PURE__ */
|
|
211
|
-
/* @__PURE__ */
|
|
212
|
-
/* @__PURE__ */
|
|
213
|
-
/* @__PURE__ */
|
|
214
|
-
/* @__PURE__ */
|
|
215
|
-
/* @__PURE__ */
|
|
216
|
-
/* @__PURE__ */
|
|
217
|
-
/* @__PURE__ */
|
|
218
|
-
/* @__PURE__ */
|
|
219
|
-
/* @__PURE__ */
|
|
220
|
-
/* @__PURE__ */
|
|
221
|
-
/* @__PURE__ */
|
|
222
|
-
/* @__PURE__ */
|
|
223
|
-
/* @__PURE__ */
|
|
224
|
-
/* @__PURE__ */
|
|
225
|
-
/* @__PURE__ */
|
|
226
|
-
/* @__PURE__ */
|
|
227
|
-
/* @__PURE__ */
|
|
228
|
-
/* @__PURE__ */
|
|
165
|
+
/* @__PURE__ */ c("rect", { width: 10, height: 10, fill: i[0] }),
|
|
166
|
+
/* @__PURE__ */ c("rect", { x: 20, width: 10, height: 10, fill: i[1] }),
|
|
167
|
+
/* @__PURE__ */ c("rect", { x: 40, width: 10, height: 10, fill: i[2] }),
|
|
168
|
+
/* @__PURE__ */ c("rect", { x: 60, width: 10, height: 10, fill: i[3] }),
|
|
169
|
+
/* @__PURE__ */ c("rect", { x: 10, width: 10, height: 10, fill: i[4] }),
|
|
170
|
+
/* @__PURE__ */ c("rect", { x: 30, width: 10, height: 10, fill: i[5] }),
|
|
171
|
+
/* @__PURE__ */ c("rect", { x: 50, width: 10, height: 10, fill: i[6] }),
|
|
172
|
+
/* @__PURE__ */ c("rect", { x: 70, width: 10, height: 10, fill: i[7] }),
|
|
173
|
+
/* @__PURE__ */ c("rect", { y: 10, width: 10, height: 10, fill: i[8] }),
|
|
174
|
+
/* @__PURE__ */ c("rect", { y: 20, width: 10, height: 10, fill: i[9] }),
|
|
175
|
+
/* @__PURE__ */ c("rect", { y: 30, width: 10, height: 10, fill: i[10] }),
|
|
176
|
+
/* @__PURE__ */ c("rect", { y: 40, width: 10, height: 10, fill: i[11] }),
|
|
177
|
+
/* @__PURE__ */ c("rect", { y: 50, width: 10, height: 10, fill: i[12] }),
|
|
178
|
+
/* @__PURE__ */ c("rect", { y: 60, width: 10, height: 10, fill: i[13] }),
|
|
179
|
+
/* @__PURE__ */ c("rect", { y: 70, width: 10, height: 10, fill: i[14] }),
|
|
180
|
+
/* @__PURE__ */ c("rect", { x: 20, y: 10, width: 10, height: 10, fill: i[15] }),
|
|
181
|
+
/* @__PURE__ */ c("rect", { x: 20, y: 20, width: 10, height: 10, fill: i[16] }),
|
|
182
|
+
/* @__PURE__ */ c("rect", { x: 20, y: 30, width: 10, height: 10, fill: i[17] }),
|
|
183
|
+
/* @__PURE__ */ c("rect", { x: 20, y: 40, width: 10, height: 10, fill: i[18] }),
|
|
184
|
+
/* @__PURE__ */ c("rect", { x: 20, y: 50, width: 10, height: 10, fill: i[19] }),
|
|
185
|
+
/* @__PURE__ */ c("rect", { x: 20, y: 60, width: 10, height: 10, fill: i[20] }),
|
|
186
|
+
/* @__PURE__ */ c("rect", { x: 20, y: 70, width: 10, height: 10, fill: i[21] }),
|
|
187
|
+
/* @__PURE__ */ c("rect", { x: 40, y: 10, width: 10, height: 10, fill: i[22] }),
|
|
188
|
+
/* @__PURE__ */ c("rect", { x: 40, y: 20, width: 10, height: 10, fill: i[23] }),
|
|
189
|
+
/* @__PURE__ */ c("rect", { x: 40, y: 30, width: 10, height: 10, fill: i[24] }),
|
|
190
|
+
/* @__PURE__ */ c("rect", { x: 40, y: 40, width: 10, height: 10, fill: i[25] }),
|
|
191
|
+
/* @__PURE__ */ c("rect", { x: 40, y: 50, width: 10, height: 10, fill: i[26] }),
|
|
192
|
+
/* @__PURE__ */ c("rect", { x: 40, y: 60, width: 10, height: 10, fill: i[27] }),
|
|
193
|
+
/* @__PURE__ */ c("rect", { x: 40, y: 70, width: 10, height: 10, fill: i[28] }),
|
|
194
|
+
/* @__PURE__ */ c("rect", { x: 60, y: 10, width: 10, height: 10, fill: i[29] }),
|
|
195
|
+
/* @__PURE__ */ c("rect", { x: 60, y: 20, width: 10, height: 10, fill: i[30] }),
|
|
196
|
+
/* @__PURE__ */ c("rect", { x: 60, y: 30, width: 10, height: 10, fill: i[31] }),
|
|
197
|
+
/* @__PURE__ */ c("rect", { x: 60, y: 40, width: 10, height: 10, fill: i[32] }),
|
|
198
|
+
/* @__PURE__ */ c("rect", { x: 60, y: 50, width: 10, height: 10, fill: i[33] }),
|
|
199
|
+
/* @__PURE__ */ c("rect", { x: 60, y: 60, width: 10, height: 10, fill: i[34] }),
|
|
200
|
+
/* @__PURE__ */ c("rect", { x: 60, y: 70, width: 10, height: 10, fill: i[35] }),
|
|
201
|
+
/* @__PURE__ */ c("rect", { x: 10, y: 10, width: 10, height: 10, fill: i[36] }),
|
|
202
|
+
/* @__PURE__ */ c("rect", { x: 10, y: 20, width: 10, height: 10, fill: i[37] }),
|
|
203
|
+
/* @__PURE__ */ c("rect", { x: 10, y: 30, width: 10, height: 10, fill: i[38] }),
|
|
204
|
+
/* @__PURE__ */ c("rect", { x: 10, y: 40, width: 10, height: 10, fill: i[39] }),
|
|
205
|
+
/* @__PURE__ */ c("rect", { x: 10, y: 50, width: 10, height: 10, fill: i[40] }),
|
|
206
|
+
/* @__PURE__ */ c("rect", { x: 10, y: 60, width: 10, height: 10, fill: i[41] }),
|
|
207
|
+
/* @__PURE__ */ c("rect", { x: 10, y: 70, width: 10, height: 10, fill: i[42] }),
|
|
208
|
+
/* @__PURE__ */ c("rect", { x: 30, y: 10, width: 10, height: 10, fill: i[43] }),
|
|
209
|
+
/* @__PURE__ */ c("rect", { x: 30, y: 20, width: 10, height: 10, fill: i[44] }),
|
|
210
|
+
/* @__PURE__ */ c("rect", { x: 30, y: 30, width: 10, height: 10, fill: i[45] }),
|
|
211
|
+
/* @__PURE__ */ c("rect", { x: 30, y: 40, width: 10, height: 10, fill: i[46] }),
|
|
212
|
+
/* @__PURE__ */ c("rect", { x: 30, y: 50, width: 10, height: 10, fill: i[47] }),
|
|
213
|
+
/* @__PURE__ */ c("rect", { x: 30, y: 60, width: 10, height: 10, fill: i[48] }),
|
|
214
|
+
/* @__PURE__ */ c("rect", { x: 30, y: 70, width: 10, height: 10, fill: i[49] }),
|
|
215
|
+
/* @__PURE__ */ c("rect", { x: 50, y: 10, width: 10, height: 10, fill: i[50] }),
|
|
216
|
+
/* @__PURE__ */ c("rect", { x: 50, y: 20, width: 10, height: 10, fill: i[51] }),
|
|
217
|
+
/* @__PURE__ */ c("rect", { x: 50, y: 30, width: 10, height: 10, fill: i[52] }),
|
|
218
|
+
/* @__PURE__ */ c("rect", { x: 50, y: 40, width: 10, height: 10, fill: i[53] }),
|
|
219
|
+
/* @__PURE__ */ c("rect", { x: 50, y: 50, width: 10, height: 10, fill: i[54] }),
|
|
220
|
+
/* @__PURE__ */ c("rect", { x: 50, y: 60, width: 10, height: 10, fill: i[55] }),
|
|
221
|
+
/* @__PURE__ */ c("rect", { x: 50, y: 70, width: 10, height: 10, fill: i[56] }),
|
|
222
|
+
/* @__PURE__ */ c("rect", { x: 70, y: 10, width: 10, height: 10, fill: i[57] }),
|
|
223
|
+
/* @__PURE__ */ c("rect", { x: 70, y: 20, width: 10, height: 10, fill: i[58] }),
|
|
224
|
+
/* @__PURE__ */ c("rect", { x: 70, y: 30, width: 10, height: 10, fill: i[59] }),
|
|
225
|
+
/* @__PURE__ */ c("rect", { x: 70, y: 40, width: 10, height: 10, fill: i[60] }),
|
|
226
|
+
/* @__PURE__ */ c("rect", { x: 70, y: 50, width: 10, height: 10, fill: i[61] }),
|
|
227
|
+
/* @__PURE__ */ c("rect", { x: 70, y: 60, width: 10, height: 10, fill: i[62] }),
|
|
228
|
+
/* @__PURE__ */ c("rect", { x: 70, y: 70, width: 10, height: 10, fill: i[63] })
|
|
229
229
|
] })
|
|
230
230
|
]
|
|
231
231
|
}
|
|
232
232
|
);
|
|
233
233
|
}, he = 36;
|
|
234
234
|
function Cd(t, e) {
|
|
235
|
-
const r = kr(t), n = e && e.length, s = Bt(r, e, n), a = Ne(r, 10, 1), i = a < 5 ? a + he / 9 : a, o = Ne(r, 10, 2),
|
|
235
|
+
const r = kr(t), n = e && e.length, s = Bt(r, e, n), a = Ne(r, 10, 1), i = a < 5 ? a + he / 9 : a, o = Ne(r, 10, 2), l = o < 5 ? o + he / 9 : o;
|
|
236
236
|
return {
|
|
237
237
|
wrapperColor: s,
|
|
238
238
|
faceColor: gd(s),
|
|
239
239
|
backgroundColor: Bt(r + 13, e, n),
|
|
240
240
|
wrapperTranslateX: i,
|
|
241
|
-
wrapperTranslateY:
|
|
241
|
+
wrapperTranslateY: l,
|
|
242
242
|
wrapperRotate: Ne(r, 360),
|
|
243
243
|
wrapperScale: 1 + Ne(r, he / 12) / 10,
|
|
244
244
|
isMouthOpen: Ws(r, 2),
|
|
@@ -247,7 +247,7 @@ function Cd(t, e) {
|
|
|
247
247
|
mouthSpread: Ne(r, 3),
|
|
248
248
|
faceRotate: Ne(r, 10, 3),
|
|
249
249
|
faceTranslateX: i > he / 6 ? i / 2 : Ne(r, 8, 1),
|
|
250
|
-
faceTranslateY:
|
|
250
|
+
faceTranslateY: l > he / 6 ? l / 2 : Ne(r, 7, 2)
|
|
251
251
|
};
|
|
252
252
|
}
|
|
253
253
|
const li = ({ name: t, colors: e, title: r, square: n, size: s, ...a }) => {
|
|
@@ -263,11 +263,11 @@ const li = ({ name: t, colors: e, title: r, square: n, size: s, ...a }) => {
|
|
|
263
263
|
height: s,
|
|
264
264
|
...a,
|
|
265
265
|
children: [
|
|
266
|
-
r && /* @__PURE__ */
|
|
267
|
-
/* @__PURE__ */
|
|
266
|
+
r && /* @__PURE__ */ c("title", { children: t }),
|
|
267
|
+
/* @__PURE__ */ c("mask", { id: o, maskUnits: "userSpaceOnUse", x: 0, y: 0, width: he, height: he, children: /* @__PURE__ */ c("rect", { width: he, height: he, rx: n ? void 0 : he * 2, fill: "#FFFFFF" }) }),
|
|
268
268
|
/* @__PURE__ */ w("g", { mask: `url(#${o})`, children: [
|
|
269
|
-
/* @__PURE__ */
|
|
270
|
-
/* @__PURE__ */
|
|
269
|
+
/* @__PURE__ */ c("rect", { width: he, height: he, fill: i.backgroundColor }),
|
|
270
|
+
/* @__PURE__ */ c(
|
|
271
271
|
"rect",
|
|
272
272
|
{
|
|
273
273
|
x: "0",
|
|
@@ -284,7 +284,7 @@ const li = ({ name: t, colors: e, title: r, square: n, size: s, ...a }) => {
|
|
|
284
284
|
{
|
|
285
285
|
transform: "translate(" + i.faceTranslateX + " " + i.faceTranslateY + ") rotate(" + i.faceRotate + " " + he / 2 + " " + he / 2 + ")",
|
|
286
286
|
children: [
|
|
287
|
-
i.isMouthOpen ? /* @__PURE__ */
|
|
287
|
+
i.isMouthOpen ? /* @__PURE__ */ c(
|
|
288
288
|
"path",
|
|
289
289
|
{
|
|
290
290
|
d: "M15 " + (19 + i.mouthSpread) + "c2 1 4 1 6 0",
|
|
@@ -292,14 +292,14 @@ const li = ({ name: t, colors: e, title: r, square: n, size: s, ...a }) => {
|
|
|
292
292
|
fill: "none",
|
|
293
293
|
strokeLinecap: "round"
|
|
294
294
|
}
|
|
295
|
-
) : /* @__PURE__ */
|
|
295
|
+
) : /* @__PURE__ */ c(
|
|
296
296
|
"path",
|
|
297
297
|
{
|
|
298
298
|
d: "M13," + (19 + i.mouthSpread) + " a1,0.75 0 0,0 10,0",
|
|
299
299
|
fill: i.faceColor
|
|
300
300
|
}
|
|
301
301
|
),
|
|
302
|
-
/* @__PURE__ */
|
|
302
|
+
/* @__PURE__ */ c(
|
|
303
303
|
"rect",
|
|
304
304
|
{
|
|
305
305
|
x: 14 - i.eyeSpread,
|
|
@@ -311,7 +311,7 @@ const li = ({ name: t, colors: e, title: r, square: n, size: s, ...a }) => {
|
|
|
311
311
|
fill: i.faceColor
|
|
312
312
|
}
|
|
313
313
|
),
|
|
314
|
-
/* @__PURE__ */
|
|
314
|
+
/* @__PURE__ */ c(
|
|
315
315
|
"rect",
|
|
316
316
|
{
|
|
317
317
|
x: 20 + i.eyeSpread,
|
|
@@ -339,7 +339,7 @@ function Td(t, e) {
|
|
|
339
339
|
);
|
|
340
340
|
}
|
|
341
341
|
const Ed = ({ name: t, colors: e, title: r, square: n, size: s, ...a }) => {
|
|
342
|
-
const i = Td(t, e), o = t.replace(/\s/g, ""),
|
|
342
|
+
const i = Td(t, e), o = t.replace(/\s/g, ""), l = h.useId();
|
|
343
343
|
return /* @__PURE__ */ w(
|
|
344
344
|
"svg",
|
|
345
345
|
{
|
|
@@ -351,11 +351,11 @@ const Ed = ({ name: t, colors: e, title: r, square: n, size: s, ...a }) => {
|
|
|
351
351
|
height: s,
|
|
352
352
|
...a,
|
|
353
353
|
children: [
|
|
354
|
-
r && /* @__PURE__ */
|
|
355
|
-
/* @__PURE__ */
|
|
356
|
-
/* @__PURE__ */ w("g", { mask: `url(#${
|
|
357
|
-
/* @__PURE__ */
|
|
358
|
-
/* @__PURE__ */
|
|
354
|
+
r && /* @__PURE__ */ c("title", { children: t }),
|
|
355
|
+
/* @__PURE__ */ c("mask", { id: l, maskUnits: "userSpaceOnUse", x: 0, y: 0, width: Oe, height: Oe, children: /* @__PURE__ */ c("rect", { width: Oe, height: Oe, rx: n ? void 0 : Oe * 2, fill: "#FFFFFF" }) }),
|
|
356
|
+
/* @__PURE__ */ w("g", { mask: `url(#${l})`, children: [
|
|
357
|
+
/* @__PURE__ */ c("path", { fill: "url(#gradient_paint0_linear_" + o + ")", d: "M0 0h80v40H0z" }),
|
|
358
|
+
/* @__PURE__ */ c("path", { fill: "url(#gradient_paint1_linear_" + o + ")", d: "M0 40h80v40H0z" })
|
|
359
359
|
] }),
|
|
360
360
|
/* @__PURE__ */ w("defs", { children: [
|
|
361
361
|
/* @__PURE__ */ w(
|
|
@@ -368,8 +368,8 @@ const Ed = ({ name: t, colors: e, title: r, square: n, size: s, ...a }) => {
|
|
|
368
368
|
y2: Oe / 2,
|
|
369
369
|
gradientUnits: "userSpaceOnUse",
|
|
370
370
|
children: [
|
|
371
|
-
/* @__PURE__ */
|
|
372
|
-
/* @__PURE__ */
|
|
371
|
+
/* @__PURE__ */ c("stop", { stopColor: i[0] }),
|
|
372
|
+
/* @__PURE__ */ c("stop", { offset: 1, stopColor: i[1] })
|
|
373
373
|
]
|
|
374
374
|
}
|
|
375
375
|
),
|
|
@@ -383,8 +383,8 @@ const Ed = ({ name: t, colors: e, title: r, square: n, size: s, ...a }) => {
|
|
|
383
383
|
y2: Oe,
|
|
384
384
|
gradientUnits: "userSpaceOnUse",
|
|
385
385
|
children: [
|
|
386
|
-
/* @__PURE__ */
|
|
387
|
-
/* @__PURE__ */
|
|
386
|
+
/* @__PURE__ */ c("stop", { stopColor: i[2] }),
|
|
387
|
+
/* @__PURE__ */ c("stop", { offset: 1, stopColor: i[3] })
|
|
388
388
|
]
|
|
389
389
|
}
|
|
390
390
|
)
|
|
@@ -416,11 +416,11 @@ const qo = ({ name: t, colors: e, title: r, square: n, size: s, ...a }) => {
|
|
|
416
416
|
height: s,
|
|
417
417
|
...a,
|
|
418
418
|
children: [
|
|
419
|
-
r && /* @__PURE__ */
|
|
420
|
-
/* @__PURE__ */
|
|
419
|
+
r && /* @__PURE__ */ c("title", { children: t }),
|
|
420
|
+
/* @__PURE__ */ c("mask", { id: o, maskUnits: "userSpaceOnUse", x: 0, y: 0, width: ke, height: ke, children: /* @__PURE__ */ c("rect", { width: ke, height: ke, rx: n ? void 0 : ke * 2, fill: "#FFFFFF" }) }),
|
|
421
421
|
/* @__PURE__ */ w("g", { mask: `url(#${o})`, children: [
|
|
422
|
-
/* @__PURE__ */
|
|
423
|
-
/* @__PURE__ */
|
|
422
|
+
/* @__PURE__ */ c("rect", { width: ke, height: ke, fill: i[0].color }),
|
|
423
|
+
/* @__PURE__ */ c(
|
|
424
424
|
"path",
|
|
425
425
|
{
|
|
426
426
|
filter: `url(#filter_${o})`,
|
|
@@ -429,7 +429,7 @@ const qo = ({ name: t, colors: e, title: r, square: n, size: s, ...a }) => {
|
|
|
429
429
|
transform: "translate(" + i[1].translateX + " " + i[1].translateY + ") rotate(" + i[1].rotate + " " + ke / 2 + " " + ke / 2 + ") scale(" + i[2].scale + ")"
|
|
430
430
|
}
|
|
431
431
|
),
|
|
432
|
-
/* @__PURE__ */
|
|
432
|
+
/* @__PURE__ */ c(
|
|
433
433
|
"path",
|
|
434
434
|
{
|
|
435
435
|
filter: `url(#filter_${o})`,
|
|
@@ -442,16 +442,16 @@ const qo = ({ name: t, colors: e, title: r, square: n, size: s, ...a }) => {
|
|
|
442
442
|
}
|
|
443
443
|
)
|
|
444
444
|
] }),
|
|
445
|
-
/* @__PURE__ */
|
|
445
|
+
/* @__PURE__ */ c("defs", { children: /* @__PURE__ */ w(
|
|
446
446
|
"filter",
|
|
447
447
|
{
|
|
448
448
|
id: `filter_${o}`,
|
|
449
449
|
filterUnits: "userSpaceOnUse",
|
|
450
450
|
colorInterpolationFilters: "sRGB",
|
|
451
451
|
children: [
|
|
452
|
-
/* @__PURE__ */
|
|
453
|
-
/* @__PURE__ */
|
|
454
|
-
/* @__PURE__ */
|
|
452
|
+
/* @__PURE__ */ c("feFlood", { floodOpacity: 0, result: "BackgroundImageFix" }),
|
|
453
|
+
/* @__PURE__ */ c("feBlend", { in: "SourceGraphic", in2: "BackgroundImageFix", result: "shape" }),
|
|
454
|
+
/* @__PURE__ */ c("feGaussianBlur", { stdDeviation: 7, result: "effect1_foregroundBlur" })
|
|
455
455
|
]
|
|
456
456
|
}
|
|
457
457
|
) })
|
|
@@ -479,7 +479,7 @@ const qo = ({ name: t, colors: e, title: r, square: n, size: s, ...a }) => {
|
|
|
479
479
|
...i
|
|
480
480
|
}) => {
|
|
481
481
|
const o = Rd[t] || qo;
|
|
482
|
-
return /* @__PURE__ */
|
|
482
|
+
return /* @__PURE__ */ c(
|
|
483
483
|
o,
|
|
484
484
|
{
|
|
485
485
|
colors: e,
|
|
@@ -494,14 +494,14 @@ const qo = ({ name: t, colors: e, title: r, square: n, size: s, ...a }) => {
|
|
|
494
494
|
"var(--oniratec-brand)",
|
|
495
495
|
"var(--oniratec-fill-primary)",
|
|
496
496
|
"var(--oniratec-label-primary)"
|
|
497
|
-
], A0 = ({ personId: t }) => /* @__PURE__ */
|
|
497
|
+
], A0 = ({ personId: t }) => /* @__PURE__ */ c(Go, { size: 40, name: t, variant: "beam", colors: Jo }), I0 = ({ userId: t }) => /* @__PURE__ */ c(Go, { size: 40, name: t, variant: "bauhaus", colors: Jo });
|
|
498
498
|
function C(...t) {
|
|
499
499
|
return Wo(ha(t));
|
|
500
500
|
}
|
|
501
501
|
const M0 = ({
|
|
502
502
|
children: t,
|
|
503
503
|
className: e
|
|
504
|
-
}) => /* @__PURE__ */
|
|
504
|
+
}) => /* @__PURE__ */ c(
|
|
505
505
|
"div",
|
|
506
506
|
{
|
|
507
507
|
className: C(
|
|
@@ -538,12 +538,12 @@ function $e(...t) {
|
|
|
538
538
|
// @__NO_SIDE_EFFECTS__
|
|
539
539
|
function Zn(t) {
|
|
540
540
|
const e = /* @__PURE__ */ Ad(t), r = h.forwardRef((n, s) => {
|
|
541
|
-
const { children: a, ...i } = n, o = h.Children.toArray(a),
|
|
542
|
-
if (
|
|
543
|
-
const u =
|
|
544
|
-
return /* @__PURE__ */
|
|
541
|
+
const { children: a, ...i } = n, o = h.Children.toArray(a), l = o.find(Md);
|
|
542
|
+
if (l) {
|
|
543
|
+
const u = l.props.children, f = o.map((d) => d === l ? h.Children.count(u) > 1 ? h.Children.only(null) : h.isValidElement(u) ? u.props.children : null : d);
|
|
544
|
+
return /* @__PURE__ */ c(e, { ...i, ref: s, children: h.isValidElement(u) ? h.cloneElement(u, void 0, f) : null });
|
|
545
545
|
}
|
|
546
|
-
return /* @__PURE__ */
|
|
546
|
+
return /* @__PURE__ */ c(e, { ...i, ref: s, children: a });
|
|
547
547
|
});
|
|
548
548
|
return r.displayName = `${t}.Slot`, r;
|
|
549
549
|
}
|
|
@@ -569,8 +569,8 @@ function Pd(t, e) {
|
|
|
569
569
|
for (const n in e) {
|
|
570
570
|
const s = t[n], a = e[n];
|
|
571
571
|
/^on[A-Z]/.test(n) ? s && a ? r[n] = (...o) => {
|
|
572
|
-
const
|
|
573
|
-
return s(...o),
|
|
572
|
+
const l = a(...o);
|
|
573
|
+
return s(...o), l;
|
|
574
574
|
} : s && (r[n] = s) : n === "style" ? r[n] = { ...s, ...a } : n === "className" && (r[n] = [s, a].filter(Boolean).join(" "));
|
|
575
575
|
}
|
|
576
576
|
return { ...t, ...r };
|
|
@@ -590,7 +590,7 @@ const ui = (t) => typeof t == "boolean" ? `${t}` : t === 0 ? "0" : t, di = ha, B
|
|
|
590
590
|
}), o = r && Object.entries(r).reduce((u, f) => {
|
|
591
591
|
let [d, m] = f;
|
|
592
592
|
return m === void 0 || (u[d] = m), u;
|
|
593
|
-
}, {}),
|
|
593
|
+
}, {}), l = e == null || (n = e.compoundVariants) === null || n === void 0 ? void 0 : n.reduce((u, f) => {
|
|
594
594
|
let { class: d, className: m, ...p } = f;
|
|
595
595
|
return Object.entries(p).every((y) => {
|
|
596
596
|
let [g, b] = y;
|
|
@@ -607,7 +607,7 @@ const ui = (t) => typeof t == "boolean" ? `${t}` : t === 0 ? "0" : t, di = ha, B
|
|
|
607
607
|
m
|
|
608
608
|
] : u;
|
|
609
609
|
}, []);
|
|
610
|
-
return di(t, i,
|
|
610
|
+
return di(t, i, l, r?.class, r?.className);
|
|
611
611
|
}, Ld = Bn(
|
|
612
612
|
"inline-flex shrink-0 items-center justify-center gap-1.5 whitespace-nowrap rounded-lg border border-transparent text-sm font-medium transition-[background-color,border-color,color,transform,box-shadow] outline-none select-none focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 active:translate-y-px disabled:pointer-events-none disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg]:size-4",
|
|
613
613
|
{
|
|
@@ -646,17 +646,17 @@ const ui = (t) => typeof t == "boolean" ? `${t}` : t === 0 ? "0" : t, di = ha, B
|
|
|
646
646
|
disabled: a,
|
|
647
647
|
children: i,
|
|
648
648
|
...o
|
|
649
|
-
},
|
|
649
|
+
}, l) => /* @__PURE__ */ w(
|
|
650
650
|
e ? Ko : "button",
|
|
651
651
|
{
|
|
652
|
-
ref:
|
|
652
|
+
ref: l,
|
|
653
653
|
"data-size": n ?? void 0,
|
|
654
654
|
"data-variant": r ?? void 0,
|
|
655
655
|
className: C(Ld({ variant: r, size: n }), t),
|
|
656
656
|
disabled: a || s,
|
|
657
657
|
...o,
|
|
658
658
|
children: [
|
|
659
|
-
s && /* @__PURE__ */
|
|
659
|
+
s && /* @__PURE__ */ c(pa, { className: "h-4 w-4 animate-spin" }),
|
|
660
660
|
i
|
|
661
661
|
]
|
|
662
662
|
}
|
|
@@ -671,7 +671,7 @@ const P0 = ({
|
|
|
671
671
|
className: s,
|
|
672
672
|
ImageComponent: a,
|
|
673
673
|
...i
|
|
674
|
-
}) => /* @__PURE__ */
|
|
674
|
+
}) => /* @__PURE__ */ c(
|
|
675
675
|
a ?? "img",
|
|
676
676
|
{
|
|
677
677
|
type: void 0,
|
|
@@ -684,18 +684,18 @@ const P0 = ({
|
|
|
684
684
|
...i
|
|
685
685
|
},
|
|
686
686
|
null
|
|
687
|
-
), fi = ({ children: t, className: e, size: r = "default" }) => /* @__PURE__ */
|
|
687
|
+
), fi = ({ children: t, className: e, size: r = "default" }) => /* @__PURE__ */ c(
|
|
688
688
|
"div",
|
|
689
689
|
{
|
|
690
690
|
className: C(
|
|
691
|
-
"flex flex-col overflow-hidden rounded-xl bg-card text-card-foreground
|
|
691
|
+
"flex flex-col overflow-hidden rounded-xl border border-border bg-card text-card-foreground shadow-card-sm transition-[box-shadow,transform]",
|
|
692
692
|
r === "sm" ? "gap-3 py-3" : "gap-4 py-4",
|
|
693
693
|
"hover:shadow-card-md",
|
|
694
694
|
e
|
|
695
695
|
),
|
|
696
696
|
children: t
|
|
697
697
|
}
|
|
698
|
-
), Vd = ({ children: t, className: e }) => /* @__PURE__ */
|
|
698
|
+
), Vd = ({ children: t, className: e }) => /* @__PURE__ */ c("div", { className: C("grid gap-1 px-4", e), children: t }), $d = ({ children: t, className: e }) => /* @__PURE__ */ c("h3", { className: C("text-base font-medium leading-snug text-card-foreground", e), children: t }), F0 = ({ children: t, className: e }) => /* @__PURE__ */ c("p", { className: C("text-sm text-muted-foreground", e), children: t }), Wd = ({ children: t, className: e }) => /* @__PURE__ */ c("div", { className: C("px-4", e), children: t }), L0 = ({ children: t, className: e }) => /* @__PURE__ */ c("div", { className: C("ml-auto flex items-center gap-2", e), children: t }), V0 = ({ children: t, className: e }) => /* @__PURE__ */ c("div", { className: C("flex items-center gap-2 border-t bg-muted/50 p-4", e), children: t }), zd = Bn(
|
|
699
699
|
"relative grid w-full grid-cols-[auto_1fr] items-start gap-3 rounded-xl bg-card p-4 text-sm text-card-foreground ring-1 ring-foreground/10",
|
|
700
700
|
{
|
|
701
701
|
variants: {
|
|
@@ -726,15 +726,15 @@ const P0 = ({
|
|
|
726
726
|
className: C(zd({ variant: e }), t),
|
|
727
727
|
...n,
|
|
728
728
|
children: [
|
|
729
|
-
a && /* @__PURE__ */
|
|
730
|
-
/* @__PURE__ */
|
|
729
|
+
a && /* @__PURE__ */ c(a, { className: "mt-0.5 h-4 w-4 shrink-0", "aria-hidden": "true" }),
|
|
730
|
+
/* @__PURE__ */ c("div", { className: "flex-1", children: r })
|
|
731
731
|
]
|
|
732
732
|
}
|
|
733
733
|
);
|
|
734
734
|
}
|
|
735
735
|
);
|
|
736
736
|
Bd.displayName = "Alert";
|
|
737
|
-
const Ud = h.forwardRef(({ className: t, ...e }, r) => /* @__PURE__ */
|
|
737
|
+
const Ud = h.forwardRef(({ className: t, ...e }, r) => /* @__PURE__ */ c(
|
|
738
738
|
"h5",
|
|
739
739
|
{
|
|
740
740
|
ref: r,
|
|
@@ -743,7 +743,7 @@ const Ud = h.forwardRef(({ className: t, ...e }, r) => /* @__PURE__ */ l(
|
|
|
743
743
|
}
|
|
744
744
|
));
|
|
745
745
|
Ud.displayName = "AlertTitle";
|
|
746
|
-
const jd = h.forwardRef(({ className: t, ...e }, r) => /* @__PURE__ */
|
|
746
|
+
const jd = h.forwardRef(({ className: t, ...e }, r) => /* @__PURE__ */ c(
|
|
747
747
|
"div",
|
|
748
748
|
{
|
|
749
749
|
ref: r,
|
|
@@ -776,7 +776,7 @@ const Hd = Bn(
|
|
|
776
776
|
}
|
|
777
777
|
}
|
|
778
778
|
), Qo = h.forwardRef(
|
|
779
|
-
({ className: t, variant: e = "default", size: r = "md", ...n }, s) => /* @__PURE__ */
|
|
779
|
+
({ className: t, variant: e = "default", size: r = "md", ...n }, s) => /* @__PURE__ */ c(
|
|
780
780
|
"span",
|
|
781
781
|
{
|
|
782
782
|
ref: s,
|
|
@@ -796,10 +796,10 @@ const Yd = h.forwardRef(
|
|
|
796
796
|
indeterminate: a = !1,
|
|
797
797
|
disabled: i,
|
|
798
798
|
"aria-describedby": o,
|
|
799
|
-
"aria-invalid":
|
|
799
|
+
"aria-invalid": l,
|
|
800
800
|
...u
|
|
801
801
|
}, f) => {
|
|
802
|
-
const d = h.useId(), m = e ?? d, p = n ? `${m}-description` : void 0, y =
|
|
802
|
+
const d = h.useId(), m = e ?? d, p = n ? `${m}-description` : void 0, y = l === !0 || l === "true", g = h.useRef(null);
|
|
803
803
|
h.useEffect(() => {
|
|
804
804
|
g.current && (g.current.indeterminate = a);
|
|
805
805
|
}, [a]);
|
|
@@ -819,7 +819,7 @@ const Yd = h.forwardRef(
|
|
|
819
819
|
t
|
|
820
820
|
),
|
|
821
821
|
children: [
|
|
822
|
-
/* @__PURE__ */
|
|
822
|
+
/* @__PURE__ */ c(
|
|
823
823
|
"input",
|
|
824
824
|
{
|
|
825
825
|
ref: b,
|
|
@@ -833,7 +833,7 @@ const Yd = h.forwardRef(
|
|
|
833
833
|
...u
|
|
834
834
|
}
|
|
835
835
|
),
|
|
836
|
-
/* @__PURE__ */
|
|
836
|
+
/* @__PURE__ */ c(
|
|
837
837
|
"span",
|
|
838
838
|
{
|
|
839
839
|
className: C(
|
|
@@ -845,12 +845,12 @@ const Yd = h.forwardRef(
|
|
|
845
845
|
y && "border-destructive peer-focus-visible:border-destructive peer-focus-visible:ring-destructive/20",
|
|
846
846
|
s === "sm" ? "h-4 w-4" : "h-5 w-5"
|
|
847
847
|
),
|
|
848
|
-
children: a ? /* @__PURE__ */
|
|
848
|
+
children: a ? /* @__PURE__ */ c(sd, { className: "h-3.5 w-3.5 opacity-0 transition-opacity" }) : /* @__PURE__ */ c($n, { className: "h-3.5 w-3.5 opacity-0 transition-opacity" })
|
|
849
849
|
}
|
|
850
850
|
),
|
|
851
851
|
(r || n) && /* @__PURE__ */ w("span", { className: "grid gap-1 leading-tight", children: [
|
|
852
|
-
r && /* @__PURE__ */
|
|
853
|
-
n && /* @__PURE__ */
|
|
852
|
+
r && /* @__PURE__ */ c("span", { className: "font-medium text-foreground", children: r }),
|
|
853
|
+
n && /* @__PURE__ */ c("span", { id: p, className: "text-sm text-muted-foreground", children: n })
|
|
854
854
|
] })
|
|
855
855
|
]
|
|
856
856
|
}
|
|
@@ -866,8 +866,8 @@ function Ae(t, e, { checkForDefaultPrevented: r = !0 } = {}) {
|
|
|
866
866
|
}
|
|
867
867
|
function qd(t, e) {
|
|
868
868
|
const r = h.createContext(e), n = (a) => {
|
|
869
|
-
const { children: i, ...o } = a,
|
|
870
|
-
return /* @__PURE__ */
|
|
869
|
+
const { children: i, ...o } = a, l = h.useMemo(() => o, Object.values(o));
|
|
870
|
+
return /* @__PURE__ */ c(r.Provider, { value: l, children: i });
|
|
871
871
|
};
|
|
872
872
|
n.displayName = t + "Provider";
|
|
873
873
|
function s(a) {
|
|
@@ -881,15 +881,15 @@ function qd(t, e) {
|
|
|
881
881
|
function Un(t, e = []) {
|
|
882
882
|
let r = [];
|
|
883
883
|
function n(a, i) {
|
|
884
|
-
const o = h.createContext(i),
|
|
884
|
+
const o = h.createContext(i), l = r.length;
|
|
885
885
|
r = [...r, i];
|
|
886
886
|
const u = (d) => {
|
|
887
|
-
const { scope: m, children: p, ...y } = d, g = m?.[t]?.[
|
|
888
|
-
return /* @__PURE__ */
|
|
887
|
+
const { scope: m, children: p, ...y } = d, g = m?.[t]?.[l] || o, b = h.useMemo(() => y, Object.values(y));
|
|
888
|
+
return /* @__PURE__ */ c(g.Provider, { value: b, children: p });
|
|
889
889
|
};
|
|
890
890
|
u.displayName = a + "Provider";
|
|
891
891
|
function f(d, m) {
|
|
892
|
-
const p = m?.[t]?.[
|
|
892
|
+
const p = m?.[t]?.[l] || o, y = h.useContext(p);
|
|
893
893
|
if (y) return y;
|
|
894
894
|
if (i !== void 0) return i;
|
|
895
895
|
throw new Error(`\`${d}\` must be used within \`${a}\``);
|
|
@@ -899,10 +899,10 @@ function Un(t, e = []) {
|
|
|
899
899
|
const s = () => {
|
|
900
900
|
const a = r.map((i) => h.createContext(i));
|
|
901
901
|
return function(o) {
|
|
902
|
-
const
|
|
902
|
+
const l = o?.[t] || a;
|
|
903
903
|
return h.useMemo(
|
|
904
|
-
() => ({ [`__scope${t}`]: { ...o, [t]:
|
|
905
|
-
[o,
|
|
904
|
+
() => ({ [`__scope${t}`]: { ...o, [t]: l } }),
|
|
905
|
+
[o, l]
|
|
906
906
|
);
|
|
907
907
|
};
|
|
908
908
|
};
|
|
@@ -917,8 +917,8 @@ function Gd(...t) {
|
|
|
917
917
|
scopeName: s.scopeName
|
|
918
918
|
}));
|
|
919
919
|
return function(a) {
|
|
920
|
-
const i = n.reduce((o, { useScope:
|
|
921
|
-
const d =
|
|
920
|
+
const i = n.reduce((o, { useScope: l, scopeName: u }) => {
|
|
921
|
+
const d = l(a)[`__scope${u}`];
|
|
922
922
|
return { ...o, ...d };
|
|
923
923
|
}, {});
|
|
924
924
|
return h.useMemo(() => ({ [`__scope${e.scopeName}`]: i }), [i]);
|
|
@@ -946,8 +946,8 @@ var Jd = [
|
|
|
946
946
|
"ul"
|
|
947
947
|
], _e = Jd.reduce((t, e) => {
|
|
948
948
|
const r = /* @__PURE__ */ Zn(`Primitive.${e}`), n = h.forwardRef((s, a) => {
|
|
949
|
-
const { asChild: i, ...o } = s,
|
|
950
|
-
return typeof window < "u" && (window[/* @__PURE__ */ Symbol.for("radix-ui")] = !0), /* @__PURE__ */ l
|
|
949
|
+
const { asChild: i, ...o } = s, l = i ? r : e;
|
|
950
|
+
return typeof window < "u" && (window[/* @__PURE__ */ Symbol.for("radix-ui")] = !0), /* @__PURE__ */ c(l, { ...o, ref: a });
|
|
951
951
|
});
|
|
952
952
|
return n.displayName = `Primitive.${e}`, { ...t, [e]: n };
|
|
953
953
|
}, {});
|
|
@@ -982,7 +982,7 @@ var Qd = "DismissableLayer", zs = "dismissableLayer.update", ef = "dismissableLa
|
|
|
982
982
|
onFocusOutside: a,
|
|
983
983
|
onInteractOutside: i,
|
|
984
984
|
onDismiss: o,
|
|
985
|
-
...
|
|
985
|
+
...l
|
|
986
986
|
} = t, u = h.useContext(el), [f, d] = h.useState(null), m = f?.ownerDocument ?? globalThis?.document, [, p] = h.useState({}), y = $e(e, (E) => d(E)), g = Array.from(u.layers), [b] = [...u.layersWithOutsidePointerEventsDisabled].slice(-1), v = g.indexOf(b), S = f ? g.indexOf(f) : -1, _ = u.layersWithOutsidePointerEventsDisabled.size > 0, N = S >= v, x = sf((E) => {
|
|
987
987
|
const M = E.target, z = [...u.branches].some(($) => $.contains(M));
|
|
988
988
|
!N || z || (s?.(E), i?.(E), E.defaultPrevented || o?.());
|
|
@@ -1002,10 +1002,10 @@ var Qd = "DismissableLayer", zs = "dismissableLayer.update", ef = "dismissableLa
|
|
|
1002
1002
|
}, [f, u]), h.useEffect(() => {
|
|
1003
1003
|
const E = () => p({});
|
|
1004
1004
|
return document.addEventListener(zs, E), () => document.removeEventListener(zs, E);
|
|
1005
|
-
}, []), /* @__PURE__ */
|
|
1005
|
+
}, []), /* @__PURE__ */ c(
|
|
1006
1006
|
_e.div,
|
|
1007
1007
|
{
|
|
1008
|
-
...
|
|
1008
|
+
...l,
|
|
1009
1009
|
ref: y,
|
|
1010
1010
|
style: {
|
|
1011
1011
|
pointerEvents: _ ? N ? "auto" : "none" : void 0,
|
|
@@ -1030,7 +1030,7 @@ var rf = "DismissableLayerBranch", nf = h.forwardRef((t, e) => {
|
|
|
1030
1030
|
return r.branches.add(a), () => {
|
|
1031
1031
|
r.branches.delete(a);
|
|
1032
1032
|
};
|
|
1033
|
-
}, [r.branches]), /* @__PURE__ */
|
|
1033
|
+
}, [r.branches]), /* @__PURE__ */ c(_e.div, { ...t, ref: s });
|
|
1034
1034
|
});
|
|
1035
1035
|
nf.displayName = rf;
|
|
1036
1036
|
function sf(t, e = globalThis?.document) {
|
|
@@ -1039,7 +1039,7 @@ function sf(t, e = globalThis?.document) {
|
|
|
1039
1039
|
return h.useEffect(() => {
|
|
1040
1040
|
const a = (o) => {
|
|
1041
1041
|
if (o.target && !n.current) {
|
|
1042
|
-
let
|
|
1042
|
+
let l = function() {
|
|
1043
1043
|
tl(
|
|
1044
1044
|
ef,
|
|
1045
1045
|
r,
|
|
@@ -1048,7 +1048,7 @@ function sf(t, e = globalThis?.document) {
|
|
|
1048
1048
|
);
|
|
1049
1049
|
};
|
|
1050
1050
|
const u = { originalEvent: o };
|
|
1051
|
-
o.pointerType === "touch" ? (e.removeEventListener("click", s.current), s.current =
|
|
1051
|
+
o.pointerType === "touch" ? (e.removeEventListener("click", s.current), s.current = l, e.addEventListener("click", s.current, { once: !0 })) : l();
|
|
1052
1052
|
} else
|
|
1053
1053
|
e.removeEventListener("click", s.current);
|
|
1054
1054
|
n.current = !1;
|
|
@@ -1105,7 +1105,7 @@ var vs = "focusScope.autoFocusOnMount", bs = "focusScope.autoFocusOnUnmount", gi
|
|
|
1105
1105
|
onMountAutoFocus: s,
|
|
1106
1106
|
onUnmountAutoFocus: a,
|
|
1107
1107
|
...i
|
|
1108
|
-
} = t, [o,
|
|
1108
|
+
} = t, [o, l] = h.useState(null), u = mr(s), f = mr(a), d = h.useRef(null), m = $e(e, (g) => l(g)), p = h.useRef({
|
|
1109
1109
|
paused: !1,
|
|
1110
1110
|
pause() {
|
|
1111
1111
|
this.paused = !0;
|
|
@@ -1162,7 +1162,7 @@ var vs = "focusScope.autoFocusOnMount", bs = "focusScope.autoFocusOnUnmount", gi
|
|
|
1162
1162
|
},
|
|
1163
1163
|
[r, n, p.paused]
|
|
1164
1164
|
);
|
|
1165
|
-
return /* @__PURE__ */
|
|
1165
|
+
return /* @__PURE__ */ c(_e.div, { tabIndex: -1, ...i, ref: m, onKeyDown: y });
|
|
1166
1166
|
});
|
|
1167
1167
|
ya.displayName = of;
|
|
1168
1168
|
function lf(t, { select: e = !1 } = {}) {
|
|
@@ -1346,9 +1346,9 @@ function ki(t, e, r) {
|
|
|
1346
1346
|
reference: n,
|
|
1347
1347
|
floating: s
|
|
1348
1348
|
} = t;
|
|
1349
|
-
const a = at(e), i = wa(e), o = ba(i),
|
|
1349
|
+
const a = at(e), i = wa(e), o = ba(i), l = gt(e), u = a === "y", f = n.x + n.width / 2 - s.width / 2, d = n.y + n.height / 2 - s.height / 2, m = n[o] / 2 - s[o] / 2;
|
|
1350
1350
|
let p;
|
|
1351
|
-
switch (
|
|
1351
|
+
switch (l) {
|
|
1352
1352
|
case "top":
|
|
1353
1353
|
p = {
|
|
1354
1354
|
x: f,
|
|
@@ -1395,7 +1395,7 @@ const Tf = async (t, e, r) => {
|
|
|
1395
1395
|
strategy: s = "absolute",
|
|
1396
1396
|
middleware: a = [],
|
|
1397
1397
|
platform: i
|
|
1398
|
-
} = r, o = a.filter(Boolean),
|
|
1398
|
+
} = r, o = a.filter(Boolean), l = await (i.isRTL == null ? void 0 : i.isRTL(e));
|
|
1399
1399
|
let u = await i.getElementRects({
|
|
1400
1400
|
reference: t,
|
|
1401
1401
|
floating: e,
|
|
@@ -1403,7 +1403,7 @@ const Tf = async (t, e, r) => {
|
|
|
1403
1403
|
}), {
|
|
1404
1404
|
x: f,
|
|
1405
1405
|
y: d
|
|
1406
|
-
} = ki(u, n,
|
|
1406
|
+
} = ki(u, n, l), m = n, p = {}, y = 0;
|
|
1407
1407
|
for (let g = 0; g < o.length; g++) {
|
|
1408
1408
|
const {
|
|
1409
1409
|
name: b,
|
|
@@ -1440,7 +1440,7 @@ const Tf = async (t, e, r) => {
|
|
|
1440
1440
|
}) : x.rects), {
|
|
1441
1441
|
x: f,
|
|
1442
1442
|
y: d
|
|
1443
|
-
} = ki(u, m,
|
|
1443
|
+
} = ki(u, m, l)), g = -1);
|
|
1444
1444
|
}
|
|
1445
1445
|
return {
|
|
1446
1446
|
x: f,
|
|
@@ -1459,7 +1459,7 @@ async function Vr(t, e) {
|
|
|
1459
1459
|
platform: a,
|
|
1460
1460
|
rects: i,
|
|
1461
1461
|
elements: o,
|
|
1462
|
-
strategy:
|
|
1462
|
+
strategy: l
|
|
1463
1463
|
} = t, {
|
|
1464
1464
|
boundary: u = "clippingAncestors",
|
|
1465
1465
|
rootBoundary: f = "viewport",
|
|
@@ -1470,7 +1470,7 @@ async function Vr(t, e) {
|
|
|
1470
1470
|
element: (r = await (a.isElement == null ? void 0 : a.isElement(b))) == null || r ? b : b.contextElement || await (a.getDocumentElement == null ? void 0 : a.getDocumentElement(o.floating)),
|
|
1471
1471
|
boundary: u,
|
|
1472
1472
|
rootBoundary: f,
|
|
1473
|
-
strategy:
|
|
1473
|
+
strategy: l
|
|
1474
1474
|
})), S = d === "floating" ? {
|
|
1475
1475
|
x: n,
|
|
1476
1476
|
y: s,
|
|
@@ -1486,7 +1486,7 @@ async function Vr(t, e) {
|
|
|
1486
1486
|
elements: o,
|
|
1487
1487
|
rect: S,
|
|
1488
1488
|
offsetParent: _,
|
|
1489
|
-
strategy:
|
|
1489
|
+
strategy: l
|
|
1490
1490
|
}) : S);
|
|
1491
1491
|
return {
|
|
1492
1492
|
top: (v.top - x.top + y.top) / N.y,
|
|
@@ -1506,7 +1506,7 @@ const Ef = (t) => ({
|
|
|
1506
1506
|
rects: a,
|
|
1507
1507
|
platform: i,
|
|
1508
1508
|
elements: o,
|
|
1509
|
-
middlewareData:
|
|
1509
|
+
middlewareData: l
|
|
1510
1510
|
} = e, {
|
|
1511
1511
|
element: u,
|
|
1512
1512
|
padding: f = 0
|
|
@@ -1519,7 +1519,7 @@ const Ef = (t) => ({
|
|
|
1519
1519
|
}, p = wa(s), y = ba(p), g = await i.getDimensions(u), b = p === "y", v = b ? "top" : "left", S = b ? "bottom" : "right", _ = b ? "clientHeight" : "clientWidth", N = a.reference[y] + a.reference[p] - m[p] - a.floating[y], x = m[p] - a.reference[p], O = await (i.getOffsetParent == null ? void 0 : i.getOffsetParent(u));
|
|
1520
1520
|
let E = O ? O[_] : 0;
|
|
1521
1521
|
(!E || !await (i.isElement == null ? void 0 : i.isElement(O))) && (E = o.floating[_] || a.floating[y]);
|
|
1522
|
-
const M = N / 2 - x / 2, z = E / 2 - g[y] / 2 - 1, $ = Ot(d[v], z), B = Ot(d[S], z), j = $, J = E - g[y] - B, Q = E / 2 - g[y] / 2 + M, Y = Zs(j, Q, J), L = !
|
|
1522
|
+
const M = N / 2 - x / 2, z = E / 2 - g[y] / 2 - 1, $ = Ot(d[v], z), B = Ot(d[S], z), j = $, J = E - g[y] - B, Q = E / 2 - g[y] / 2 + M, Y = Zs(j, Q, J), L = !l.arrow && Nr(s) != null && Q !== Y && a.reference[y] / 2 - (Q < j ? $ : B) - g[y] / 2 < 0, H = L ? Q < j ? Q - j : Q - J : 0;
|
|
1523
1523
|
return {
|
|
1524
1524
|
[p]: m[p] + H,
|
|
1525
1525
|
data: {
|
|
@@ -1543,7 +1543,7 @@ const Ef = (t) => ({
|
|
|
1543
1543
|
middlewareData: a,
|
|
1544
1544
|
rects: i,
|
|
1545
1545
|
initialPlacement: o,
|
|
1546
|
-
platform:
|
|
1546
|
+
platform: l,
|
|
1547
1547
|
elements: u
|
|
1548
1548
|
} = e, {
|
|
1549
1549
|
mainAxis: f = !0,
|
|
@@ -1556,7 +1556,7 @@ const Ef = (t) => ({
|
|
|
1556
1556
|
} = pt(t, e);
|
|
1557
1557
|
if ((r = a.arrow) != null && r.alignmentOffset)
|
|
1558
1558
|
return {};
|
|
1559
|
-
const v = gt(s), S = at(o), _ = gt(o) === o, N = await (
|
|
1559
|
+
const v = gt(s), S = at(o), _ = gt(o) === o, N = await (l.isRTL == null ? void 0 : l.isRTL(u.floating)), x = m || (_ || !g ? [Cn(o)] : xf(o)), O = y !== "none";
|
|
1560
1560
|
!m && O && x.push(...Cf(o, g, y, N));
|
|
1561
1561
|
const E = [o, ...x], M = await Vr(e, b), z = [];
|
|
1562
1562
|
let $ = ((n = a.flip) == null ? void 0 : n.overflows) || [];
|
|
@@ -1672,7 +1672,7 @@ async function Rf(t, e) {
|
|
|
1672
1672
|
placement: r,
|
|
1673
1673
|
platform: n,
|
|
1674
1674
|
elements: s
|
|
1675
|
-
} = t, a = await (n.isRTL == null ? void 0 : n.isRTL(s.floating)), i = gt(r), o = Nr(r),
|
|
1675
|
+
} = t, a = await (n.isRTL == null ? void 0 : n.isRTL(s.floating)), i = gt(r), o = Nr(r), l = at(r) === "y", u = al.has(i) ? -1 : 1, f = a && l ? -1 : 1, d = pt(e, t);
|
|
1676
1676
|
let {
|
|
1677
1677
|
mainAxis: m,
|
|
1678
1678
|
crossAxis: p,
|
|
@@ -1686,7 +1686,7 @@ async function Rf(t, e) {
|
|
|
1686
1686
|
crossAxis: d.crossAxis || 0,
|
|
1687
1687
|
alignmentAxis: d.alignmentAxis
|
|
1688
1688
|
};
|
|
1689
|
-
return o && typeof y == "number" && (p = o === "end" ? y * -1 : y),
|
|
1689
|
+
return o && typeof y == "number" && (p = o === "end" ? y * -1 : y), l ? {
|
|
1690
1690
|
x: p * f,
|
|
1691
1691
|
y: m * u
|
|
1692
1692
|
} : {
|
|
@@ -1705,12 +1705,12 @@ const Af = function(t) {
|
|
|
1705
1705
|
y: a,
|
|
1706
1706
|
placement: i,
|
|
1707
1707
|
middlewareData: o
|
|
1708
|
-
} = e,
|
|
1708
|
+
} = e, l = await Rf(e, t);
|
|
1709
1709
|
return i === ((r = o.offset) == null ? void 0 : r.placement) && (n = o.arrow) != null && n.alignmentOffset ? {} : {
|
|
1710
|
-
x: s +
|
|
1711
|
-
y: a +
|
|
1710
|
+
x: s + l.x,
|
|
1711
|
+
y: a + l.y,
|
|
1712
1712
|
data: {
|
|
1713
|
-
...
|
|
1713
|
+
...l,
|
|
1714
1714
|
placement: i
|
|
1715
1715
|
}
|
|
1716
1716
|
};
|
|
@@ -1740,11 +1740,11 @@ const Af = function(t) {
|
|
|
1740
1740
|
};
|
|
1741
1741
|
}
|
|
1742
1742
|
},
|
|
1743
|
-
...
|
|
1743
|
+
...l
|
|
1744
1744
|
} = pt(t, e), u = {
|
|
1745
1745
|
x: r,
|
|
1746
1746
|
y: n
|
|
1747
|
-
}, f = await Vr(e,
|
|
1747
|
+
}, f = await Vr(e, l), d = at(gt(s)), m = va(d);
|
|
1748
1748
|
let p = u[m], y = u[d];
|
|
1749
1749
|
if (a) {
|
|
1750
1750
|
const b = m === "y" ? "top" : "left", v = m === "y" ? "bottom" : "right", S = p + f[b], _ = p - f[v];
|
|
@@ -1784,7 +1784,7 @@ const Af = function(t) {
|
|
|
1784
1784
|
middlewareData: i
|
|
1785
1785
|
} = e, {
|
|
1786
1786
|
offset: o = 0,
|
|
1787
|
-
mainAxis:
|
|
1787
|
+
mainAxis: l = !0,
|
|
1788
1788
|
crossAxis: u = !0
|
|
1789
1789
|
} = pt(t, e), f = {
|
|
1790
1790
|
x: r,
|
|
@@ -1799,7 +1799,7 @@ const Af = function(t) {
|
|
|
1799
1799
|
crossAxis: 0,
|
|
1800
1800
|
...g
|
|
1801
1801
|
};
|
|
1802
|
-
if (
|
|
1802
|
+
if (l) {
|
|
1803
1803
|
const _ = m === "y" ? "height" : "width", N = a.reference[m] - a.floating[_] + b.mainAxis, x = a.reference[m] + a.reference[_] - b.mainAxis;
|
|
1804
1804
|
p < N ? p = N : p > x && (p = x);
|
|
1805
1805
|
}
|
|
@@ -1826,7 +1826,7 @@ const Af = function(t) {
|
|
|
1826
1826
|
platform: i,
|
|
1827
1827
|
elements: o
|
|
1828
1828
|
} = e, {
|
|
1829
|
-
apply:
|
|
1829
|
+
apply: l = () => {
|
|
1830
1830
|
},
|
|
1831
1831
|
...u
|
|
1832
1832
|
} = pt(t, e), f = await Vr(e, u), d = gt(s), m = Nr(s), p = at(s) === "y", {
|
|
@@ -1841,7 +1841,7 @@ const Af = function(t) {
|
|
|
1841
1841
|
const $ = Pe(f.left, 0), B = Pe(f.right, 0), j = Pe(f.top, 0), J = Pe(f.bottom, 0);
|
|
1842
1842
|
p ? M = y - 2 * ($ !== 0 || B !== 0 ? $ + B : Pe(f.left, f.right)) : E = g - 2 * (j !== 0 || J !== 0 ? j + J : Pe(f.top, f.bottom));
|
|
1843
1843
|
}
|
|
1844
|
-
await
|
|
1844
|
+
await l({
|
|
1845
1845
|
...e,
|
|
1846
1846
|
availableWidth: M,
|
|
1847
1847
|
availableHeight: E
|
|
@@ -2014,19 +2014,19 @@ function Ut(t, e, r, n) {
|
|
|
2014
2014
|
let i = it(1);
|
|
2015
2015
|
e && (n ? Xe(n) && (i = ur(n)) : i = ur(t));
|
|
2016
2016
|
const o = Hf(a, r, n) ? cl(a) : it(0);
|
|
2017
|
-
let
|
|
2017
|
+
let l = (s.left + o.x) / i.x, u = (s.top + o.y) / i.y, f = s.width / i.x, d = s.height / i.y;
|
|
2018
2018
|
if (a) {
|
|
2019
2019
|
const m = Fe(a), p = n && Xe(n) ? Fe(n) : n;
|
|
2020
2020
|
let y = m, g = Us(y);
|
|
2021
2021
|
for (; g && n && p !== y; ) {
|
|
2022
2022
|
const b = ur(g), v = g.getBoundingClientRect(), S = Ke(g), _ = v.left + (g.clientLeft + parseFloat(S.paddingLeft)) * b.x, N = v.top + (g.clientTop + parseFloat(S.paddingTop)) * b.y;
|
|
2023
|
-
|
|
2023
|
+
l *= b.x, u *= b.y, f *= b.x, d *= b.y, l += _, u += N, y = Fe(g), g = Us(y);
|
|
2024
2024
|
}
|
|
2025
2025
|
}
|
|
2026
2026
|
return _n({
|
|
2027
2027
|
width: f,
|
|
2028
2028
|
height: d,
|
|
2029
|
-
x:
|
|
2029
|
+
x: l,
|
|
2030
2030
|
y: u
|
|
2031
2031
|
});
|
|
2032
2032
|
}
|
|
@@ -2051,21 +2051,21 @@ function Yf(t) {
|
|
|
2051
2051
|
const a = s === "fixed", i = ut(n), o = e ? Hn(e.floating) : !1;
|
|
2052
2052
|
if (n === i || o && a)
|
|
2053
2053
|
return r;
|
|
2054
|
-
let
|
|
2054
|
+
let l = {
|
|
2055
2055
|
scrollLeft: 0,
|
|
2056
2056
|
scrollTop: 0
|
|
2057
2057
|
}, u = it(1);
|
|
2058
2058
|
const f = it(0), d = lt(n);
|
|
2059
|
-
if ((d || !d && !a) && ((Sr(n) !== "body" || jr(i)) && (
|
|
2059
|
+
if ((d || !d && !a) && ((Sr(n) !== "body" || jr(i)) && (l = Yn(n)), lt(n))) {
|
|
2060
2060
|
const p = Ut(n);
|
|
2061
2061
|
u = ur(n), f.x = p.x + n.clientLeft, f.y = p.y + n.clientTop;
|
|
2062
2062
|
}
|
|
2063
|
-
const m = i && !d && !a ? ul(i,
|
|
2063
|
+
const m = i && !d && !a ? ul(i, l) : it(0);
|
|
2064
2064
|
return {
|
|
2065
2065
|
width: r.width * u.x,
|
|
2066
2066
|
height: r.height * u.y,
|
|
2067
|
-
x: r.x * u.x -
|
|
2068
|
-
y: r.y * u.y -
|
|
2067
|
+
x: r.x * u.x - l.scrollLeft * u.x + f.x + m.x,
|
|
2068
|
+
y: r.y * u.y - l.scrollTop * u.y + f.y + m.y
|
|
2069
2069
|
};
|
|
2070
2070
|
}
|
|
2071
2071
|
function qf(t) {
|
|
@@ -2085,11 +2085,11 @@ function Gf(t) {
|
|
|
2085
2085
|
const _i = 25;
|
|
2086
2086
|
function Jf(t, e) {
|
|
2087
2087
|
const r = Fe(t), n = ut(t), s = r.visualViewport;
|
|
2088
|
-
let a = n.clientWidth, i = n.clientHeight, o = 0,
|
|
2088
|
+
let a = n.clientWidth, i = n.clientHeight, o = 0, l = 0;
|
|
2089
2089
|
if (s) {
|
|
2090
2090
|
a = s.width, i = s.height;
|
|
2091
2091
|
const f = ka();
|
|
2092
|
-
(!f || f && e === "fixed") && (o = s.offsetLeft,
|
|
2092
|
+
(!f || f && e === "fixed") && (o = s.offsetLeft, l = s.offsetTop);
|
|
2093
2093
|
}
|
|
2094
2094
|
const u = qn(n);
|
|
2095
2095
|
if (u <= 0) {
|
|
@@ -2100,16 +2100,16 @@ function Jf(t, e) {
|
|
|
2100
2100
|
width: a,
|
|
2101
2101
|
height: i,
|
|
2102
2102
|
x: o,
|
|
2103
|
-
y:
|
|
2103
|
+
y: l
|
|
2104
2104
|
};
|
|
2105
2105
|
}
|
|
2106
2106
|
const Xf = /* @__PURE__ */ new Set(["absolute", "fixed"]);
|
|
2107
2107
|
function Kf(t, e) {
|
|
2108
|
-
const r = Ut(t, !0, e === "fixed"), n = r.top + t.clientTop, s = r.left + t.clientLeft, a = lt(t) ? ur(t) : it(1), i = t.clientWidth * a.x, o = t.clientHeight * a.y,
|
|
2108
|
+
const r = Ut(t, !0, e === "fixed"), n = r.top + t.clientTop, s = r.left + t.clientLeft, a = lt(t) ? ur(t) : it(1), i = t.clientWidth * a.x, o = t.clientHeight * a.y, l = s * a.x, u = n * a.y;
|
|
2109
2109
|
return {
|
|
2110
2110
|
width: i,
|
|
2111
2111
|
height: o,
|
|
2112
|
-
x:
|
|
2112
|
+
x: l,
|
|
2113
2113
|
y: u
|
|
2114
2114
|
};
|
|
2115
2115
|
}
|
|
@@ -2144,8 +2144,8 @@ function Qf(t, e) {
|
|
|
2144
2144
|
const a = Ke(t).position === "fixed";
|
|
2145
2145
|
let i = a ? Dt(t) : t;
|
|
2146
2146
|
for (; Xe(i) && !pr(i); ) {
|
|
2147
|
-
const o = Ke(i),
|
|
2148
|
-
!
|
|
2147
|
+
const o = Ke(i), l = xa(i);
|
|
2148
|
+
!l && o.position === "fixed" && (s = null), (a ? !l && !s : !l && o.position === "static" && !!s && Xf.has(s.position) || jr(i) && !l && dl(t, i)) ? n = n.filter((f) => f !== i) : s = o, i = Dt(i);
|
|
2149
2149
|
}
|
|
2150
2150
|
return e.set(t, n), n;
|
|
2151
2151
|
}
|
|
@@ -2156,15 +2156,15 @@ function eh(t) {
|
|
|
2156
2156
|
rootBoundary: n,
|
|
2157
2157
|
strategy: s
|
|
2158
2158
|
} = t;
|
|
2159
|
-
const i = [...r === "clippingAncestors" ? Hn(e) ? [] : Qf(e, this._c) : [].concat(r), n], o = i[0],
|
|
2159
|
+
const i = [...r === "clippingAncestors" ? Hn(e) ? [] : Qf(e, this._c) : [].concat(r), n], o = i[0], l = i.reduce((u, f) => {
|
|
2160
2160
|
const d = Ti(e, f, s);
|
|
2161
2161
|
return u.top = Pe(d.top, u.top), u.right = Ot(d.right, u.right), u.bottom = Ot(d.bottom, u.bottom), u.left = Pe(d.left, u.left), u;
|
|
2162
2162
|
}, Ti(e, o, s));
|
|
2163
2163
|
return {
|
|
2164
|
-
width:
|
|
2165
|
-
height:
|
|
2166
|
-
x:
|
|
2167
|
-
y:
|
|
2164
|
+
width: l.right - l.left,
|
|
2165
|
+
height: l.bottom - l.top,
|
|
2166
|
+
x: l.left,
|
|
2167
|
+
y: l.top
|
|
2168
2168
|
};
|
|
2169
2169
|
}
|
|
2170
2170
|
function th(t) {
|
|
@@ -2183,17 +2183,17 @@ function rh(t, e, r) {
|
|
|
2183
2183
|
scrollLeft: 0,
|
|
2184
2184
|
scrollTop: 0
|
|
2185
2185
|
};
|
|
2186
|
-
const
|
|
2186
|
+
const l = it(0);
|
|
2187
2187
|
function u() {
|
|
2188
|
-
|
|
2188
|
+
l.x = qn(s);
|
|
2189
2189
|
}
|
|
2190
2190
|
if (n || !n && !a)
|
|
2191
2191
|
if ((Sr(e) !== "body" || jr(s)) && (o = Yn(e)), n) {
|
|
2192
2192
|
const p = Ut(e, !0, a, e);
|
|
2193
|
-
|
|
2193
|
+
l.x = p.x + e.clientLeft, l.y = p.y + e.clientTop;
|
|
2194
2194
|
} else s && u();
|
|
2195
2195
|
a && !n && s && u();
|
|
2196
|
-
const f = s && !n && !a ? ul(s, o) : it(0), d = i.left + o.scrollLeft -
|
|
2196
|
+
const f = s && !n && !a ? ul(s, o) : it(0), d = i.left + o.scrollLeft - l.x - f.x, m = i.top + o.scrollTop - l.y - f.y;
|
|
2197
2197
|
return {
|
|
2198
2198
|
x: d,
|
|
2199
2199
|
y: m,
|
|
@@ -2267,8 +2267,8 @@ function ih(t, e) {
|
|
|
2267
2267
|
var o;
|
|
2268
2268
|
clearTimeout(n), (o = r) == null || o.disconnect(), r = null;
|
|
2269
2269
|
}
|
|
2270
|
-
function i(o,
|
|
2271
|
-
o === void 0 && (o = !1),
|
|
2270
|
+
function i(o, l) {
|
|
2271
|
+
o === void 0 && (o = !1), l === void 0 && (l = 1), a();
|
|
2272
2272
|
const u = t.getBoundingClientRect(), {
|
|
2273
2273
|
left: f,
|
|
2274
2274
|
top: d,
|
|
@@ -2279,12 +2279,12 @@ function ih(t, e) {
|
|
|
2279
2279
|
return;
|
|
2280
2280
|
const y = en(d), g = en(s.clientWidth - (f + m)), b = en(s.clientHeight - (d + p)), v = en(f), _ = {
|
|
2281
2281
|
rootMargin: -y + "px " + -g + "px " + -b + "px " + -v + "px",
|
|
2282
|
-
threshold: Pe(0, Ot(1,
|
|
2282
|
+
threshold: Pe(0, Ot(1, l)) || 1
|
|
2283
2283
|
};
|
|
2284
2284
|
let N = !0;
|
|
2285
2285
|
function x(O) {
|
|
2286
2286
|
const E = O[0].intersectionRatio;
|
|
2287
|
-
if (E !==
|
|
2287
|
+
if (E !== l) {
|
|
2288
2288
|
if (!N)
|
|
2289
2289
|
return i();
|
|
2290
2290
|
E ? i(!1, E) : n = setTimeout(() => {
|
|
@@ -2313,7 +2313,7 @@ function oh(t, e, r, n) {
|
|
|
2313
2313
|
ancestorResize: a = !0,
|
|
2314
2314
|
elementResize: i = typeof ResizeObserver == "function",
|
|
2315
2315
|
layoutShift: o = typeof IntersectionObserver == "function",
|
|
2316
|
-
animationFrame:
|
|
2316
|
+
animationFrame: l = !1
|
|
2317
2317
|
} = n, u = Na(t), f = s || a ? [...u ? $r(u) : [], ...$r(e)] : [];
|
|
2318
2318
|
f.forEach((v) => {
|
|
2319
2319
|
s && v.addEventListener("scroll", r, {
|
|
@@ -2328,9 +2328,9 @@ function oh(t, e, r, n) {
|
|
|
2328
2328
|
var _;
|
|
2329
2329
|
(_ = p) == null || _.observe(e);
|
|
2330
2330
|
})), r();
|
|
2331
|
-
}), u && !
|
|
2332
|
-
let y, g =
|
|
2333
|
-
|
|
2331
|
+
}), u && !l && p.observe(u), p.observe(e));
|
|
2332
|
+
let y, g = l ? Ut(t) : null;
|
|
2333
|
+
l && b();
|
|
2334
2334
|
function b() {
|
|
2335
2335
|
const v = Ut(t);
|
|
2336
2336
|
g && !hl(g, v) && r(), g = v, y = requestAnimationFrame(b);
|
|
@@ -2339,7 +2339,7 @@ function oh(t, e, r, n) {
|
|
|
2339
2339
|
var v;
|
|
2340
2340
|
f.forEach((S) => {
|
|
2341
2341
|
s && S.removeEventListener("scroll", r), a && S.removeEventListener("resize", r);
|
|
2342
|
-
}), d?.(), (v = p) == null || v.disconnect(), p = null,
|
|
2342
|
+
}), d?.(), (v = p) == null || v.disconnect(), p = null, l && cancelAnimationFrame(y);
|
|
2343
2343
|
};
|
|
2344
2344
|
}
|
|
2345
2345
|
const lh = Af, ch = If, uh = Of, dh = Pf, fh = Df, Oi = Ef, hh = Mf, mh = (t, e, r) => {
|
|
@@ -2412,7 +2412,7 @@ function yh(t) {
|
|
|
2412
2412
|
floating: i
|
|
2413
2413
|
} = {},
|
|
2414
2414
|
transform: o = !0,
|
|
2415
|
-
whileElementsMounted:
|
|
2415
|
+
whileElementsMounted: l,
|
|
2416
2416
|
open: u
|
|
2417
2417
|
} = t, [f, d] = h.useState({
|
|
2418
2418
|
x: 0,
|
|
@@ -2427,7 +2427,7 @@ function yh(t) {
|
|
|
2427
2427
|
W !== O.current && (O.current = W, g(W));
|
|
2428
2428
|
}, []), _ = h.useCallback((W) => {
|
|
2429
2429
|
W !== E.current && (E.current = W, v(W));
|
|
2430
|
-
}, []), N = a || y, x = i || b, O = h.useRef(null), E = h.useRef(null), M = h.useRef(f), z =
|
|
2430
|
+
}, []), N = a || y, x = i || b, O = h.useRef(null), E = h.useRef(null), M = h.useRef(f), z = l != null, $ = xs(l), B = xs(s), j = xs(u), J = h.useCallback(() => {
|
|
2431
2431
|
if (!O.current || !E.current)
|
|
2432
2432
|
return;
|
|
2433
2433
|
const W = {
|
|
@@ -2547,7 +2547,7 @@ const vh = (t) => {
|
|
|
2547
2547
|
});
|
|
2548
2548
|
var _h = "Arrow", pl = h.forwardRef((t, e) => {
|
|
2549
2549
|
const { children: r, width: n = 10, height: s = 5, ...a } = t;
|
|
2550
|
-
return /* @__PURE__ */
|
|
2550
|
+
return /* @__PURE__ */ c(
|
|
2551
2551
|
_e.svg,
|
|
2552
2552
|
{
|
|
2553
2553
|
...a,
|
|
@@ -2556,7 +2556,7 @@ var _h = "Arrow", pl = h.forwardRef((t, e) => {
|
|
|
2556
2556
|
height: s,
|
|
2557
2557
|
viewBox: "0 0 30 10",
|
|
2558
2558
|
preserveAspectRatio: "none",
|
|
2559
|
-
children: t.asChild ? r : /* @__PURE__ */
|
|
2559
|
+
children: t.asChild ? r : /* @__PURE__ */ c("polygon", { points: "0,0 30,0 15,10" })
|
|
2560
2560
|
}
|
|
2561
2561
|
);
|
|
2562
2562
|
});
|
|
@@ -2573,7 +2573,7 @@ function gl(t) {
|
|
|
2573
2573
|
const a = s[0];
|
|
2574
2574
|
let i, o;
|
|
2575
2575
|
if ("borderBoxSize" in a) {
|
|
2576
|
-
const
|
|
2576
|
+
const l = a.borderBoxSize, u = Array.isArray(l) ? l[0] : l;
|
|
2577
2577
|
i = u.inlineSize, o = u.blockSize;
|
|
2578
2578
|
} else
|
|
2579
2579
|
i = t.offsetWidth, o = t.offsetHeight;
|
|
@@ -2586,16 +2586,16 @@ function gl(t) {
|
|
|
2586
2586
|
}
|
|
2587
2587
|
var Sa = "Popper", [yl, vl] = Un(Sa), [Eh, bl] = yl(Sa), wl = (t) => {
|
|
2588
2588
|
const { __scopePopper: e, children: r } = t, [n, s] = h.useState(null);
|
|
2589
|
-
return /* @__PURE__ */
|
|
2589
|
+
return /* @__PURE__ */ c(Eh, { scope: e, anchor: n, onAnchorChange: s, children: r });
|
|
2590
2590
|
};
|
|
2591
2591
|
wl.displayName = Sa;
|
|
2592
2592
|
var xl = "PopperAnchor", kl = h.forwardRef(
|
|
2593
2593
|
(t, e) => {
|
|
2594
|
-
const { __scopePopper: r, virtualRef: n, ...s } = t, a = bl(xl, r), i = h.useRef(null), o = $e(e, i),
|
|
2594
|
+
const { __scopePopper: r, virtualRef: n, ...s } = t, a = bl(xl, r), i = h.useRef(null), o = $e(e, i), l = h.useRef(null);
|
|
2595
2595
|
return h.useEffect(() => {
|
|
2596
|
-
const u =
|
|
2597
|
-
|
|
2598
|
-
}), n ? null : /* @__PURE__ */
|
|
2596
|
+
const u = l.current;
|
|
2597
|
+
l.current = n?.current || i.current, u !== l.current && a.onAnchorChange(l.current);
|
|
2598
|
+
}), n ? null : /* @__PURE__ */ c(_e.div, { ...s, ref: o });
|
|
2599
2599
|
}
|
|
2600
2600
|
);
|
|
2601
2601
|
kl.displayName = xl;
|
|
@@ -2608,7 +2608,7 @@ var Ca = "PopperContent", [Oh, Dh] = yl(Ca), Nl = h.forwardRef(
|
|
|
2608
2608
|
align: a = "center",
|
|
2609
2609
|
alignOffset: i = 0,
|
|
2610
2610
|
arrowPadding: o = 0,
|
|
2611
|
-
avoidCollisions:
|
|
2611
|
+
avoidCollisions: l = !0,
|
|
2612
2612
|
collisionBoundary: u = [],
|
|
2613
2613
|
collisionPadding: f = 0,
|
|
2614
2614
|
sticky: d = "partial",
|
|
@@ -2633,13 +2633,13 @@ var Ca = "PopperContent", [Oh, Dh] = yl(Ca), Nl = h.forwardRef(
|
|
|
2633
2633
|
},
|
|
2634
2634
|
middleware: [
|
|
2635
2635
|
bh({ mainAxis: s + M, alignmentAxis: i }),
|
|
2636
|
-
|
|
2636
|
+
l && wh({
|
|
2637
2637
|
mainAxis: !0,
|
|
2638
2638
|
crossAxis: !1,
|
|
2639
2639
|
limiter: d === "partial" ? xh() : void 0,
|
|
2640
2640
|
...J
|
|
2641
2641
|
}),
|
|
2642
|
-
|
|
2642
|
+
l && kh({ ...J }),
|
|
2643
2643
|
Nh({
|
|
2644
2644
|
...J,
|
|
2645
2645
|
apply: ({ elements: Te, rects: le, availableWidth: vt, availableHeight: Gt }) => {
|
|
@@ -2658,7 +2658,7 @@ var Ca = "PopperContent", [Oh, Dh] = yl(Ca), Nl = h.forwardRef(
|
|
|
2658
2658
|
const ee = W.arrow?.x, Z = W.arrow?.y, oe = W.arrow?.centerOffset !== 0, [ce, ve] = h.useState();
|
|
2659
2659
|
return Et(() => {
|
|
2660
2660
|
v && ve(window.getComputedStyle(v).zIndex);
|
|
2661
|
-
}, [v]), /* @__PURE__ */
|
|
2661
|
+
}, [v]), /* @__PURE__ */ c(
|
|
2662
2662
|
"div",
|
|
2663
2663
|
{
|
|
2664
2664
|
ref: Q.setFloating,
|
|
@@ -2682,7 +2682,7 @@ var Ca = "PopperContent", [Oh, Dh] = yl(Ca), Nl = h.forwardRef(
|
|
|
2682
2682
|
}
|
|
2683
2683
|
},
|
|
2684
2684
|
dir: t.dir,
|
|
2685
|
-
children: /* @__PURE__ */
|
|
2685
|
+
children: /* @__PURE__ */ c(
|
|
2686
2686
|
Oh,
|
|
2687
2687
|
{
|
|
2688
2688
|
scope: r,
|
|
@@ -2691,7 +2691,7 @@ var Ca = "PopperContent", [Oh, Dh] = yl(Ca), Nl = h.forwardRef(
|
|
|
2691
2691
|
arrowX: ee,
|
|
2692
2692
|
arrowY: Z,
|
|
2693
2693
|
shouldHideArrow: oe,
|
|
2694
|
-
children: /* @__PURE__ */
|
|
2694
|
+
children: /* @__PURE__ */ c(
|
|
2695
2695
|
_e.div,
|
|
2696
2696
|
{
|
|
2697
2697
|
"data-side": ie,
|
|
@@ -2724,7 +2724,7 @@ var Sl = "PopperArrow", Rh = {
|
|
|
2724
2724
|
// we have to use an extra wrapper because `ResizeObserver` (used by `useSize`)
|
|
2725
2725
|
// doesn't report size as we'd expect on SVG elements.
|
|
2726
2726
|
// it reports their bounding box which is effectively the largest path inside the SVG.
|
|
2727
|
-
/* @__PURE__ */
|
|
2727
|
+
/* @__PURE__ */ c(
|
|
2728
2728
|
"span",
|
|
2729
2729
|
{
|
|
2730
2730
|
ref: a.onArrowChange,
|
|
@@ -2747,7 +2747,7 @@ var Sl = "PopperArrow", Rh = {
|
|
|
2747
2747
|
}[a.placedSide],
|
|
2748
2748
|
visibility: a.shouldHideArrow ? "hidden" : void 0
|
|
2749
2749
|
},
|
|
2750
|
-
children: /* @__PURE__ */
|
|
2750
|
+
children: /* @__PURE__ */ c(
|
|
2751
2751
|
Th,
|
|
2752
2752
|
{
|
|
2753
2753
|
...s,
|
|
@@ -2771,9 +2771,9 @@ var Ih = (t) => ({
|
|
|
2771
2771
|
name: "transformOrigin",
|
|
2772
2772
|
options: t,
|
|
2773
2773
|
fn(e) {
|
|
2774
|
-
const { placement: r, rects: n, middlewareData: s } = e, i = s.arrow?.centerOffset !== 0, o = i ? 0 : t.arrowWidth,
|
|
2774
|
+
const { placement: r, rects: n, middlewareData: s } = e, i = s.arrow?.centerOffset !== 0, o = i ? 0 : t.arrowWidth, l = i ? 0 : t.arrowHeight, [u, f] = _l(r), d = { start: "0%", center: "50%", end: "100%" }[f], m = (s.arrow?.x ?? 0) + o / 2, p = (s.arrow?.y ?? 0) + l / 2;
|
|
2775
2775
|
let y = "", g = "";
|
|
2776
|
-
return u === "bottom" ? (y = i ? d : `${m}px`, g = `${-
|
|
2776
|
+
return u === "bottom" ? (y = i ? d : `${m}px`, g = `${-l}px`) : u === "top" ? (y = i ? d : `${m}px`, g = `${n.floating.height + l}px`) : u === "right" ? (y = `${-l}px`, g = i ? d : `${p}px`) : u === "left" && (y = `${n.floating.width + l}px`, g = i ? d : `${p}px`), { data: { x: y, y: g } };
|
|
2777
2777
|
}
|
|
2778
2778
|
});
|
|
2779
2779
|
function _l(t) {
|
|
@@ -2784,7 +2784,7 @@ var Mh = wl, Tl = kl, Ph = Nl, Fh = Cl, Lh = "Portal", _a = h.forwardRef((t, e)
|
|
|
2784
2784
|
const { container: r, ...n } = t, [s, a] = h.useState(!1);
|
|
2785
2785
|
Et(() => a(!0), []);
|
|
2786
2786
|
const i = r || s && globalThis?.document?.body;
|
|
2787
|
-
return i ? Ho.createPortal(/* @__PURE__ */
|
|
2787
|
+
return i ? Ho.createPortal(/* @__PURE__ */ c(_e.div, { ...n, ref: e }), i) : null;
|
|
2788
2788
|
});
|
|
2789
2789
|
_a.displayName = Lh;
|
|
2790
2790
|
function Vh(t, e) {
|
|
@@ -2796,7 +2796,7 @@ var Cr = (t) => {
|
|
|
2796
2796
|
};
|
|
2797
2797
|
Cr.displayName = "Presence";
|
|
2798
2798
|
function $h(t) {
|
|
2799
|
-
const [e, r] = h.useState(), n = h.useRef(null), s = h.useRef(t), a = h.useRef("none"), i = t ? "mounted" : "unmounted", [o,
|
|
2799
|
+
const [e, r] = h.useState(), n = h.useRef(null), s = h.useRef(t), a = h.useRef("none"), i = t ? "mounted" : "unmounted", [o, l] = Vh(i, {
|
|
2800
2800
|
mounted: {
|
|
2801
2801
|
UNMOUNT: "unmounted",
|
|
2802
2802
|
ANIMATION_OUT: "unmountSuspended"
|
|
@@ -2816,14 +2816,14 @@ function $h(t) {
|
|
|
2816
2816
|
const u = n.current, f = s.current;
|
|
2817
2817
|
if (f !== t) {
|
|
2818
2818
|
const m = a.current, p = tn(u);
|
|
2819
|
-
t ?
|
|
2819
|
+
t ? l("MOUNT") : p === "none" || u?.display === "none" ? l("UNMOUNT") : l(f && m !== p ? "ANIMATION_OUT" : "UNMOUNT"), s.current = t;
|
|
2820
2820
|
}
|
|
2821
|
-
}, [t,
|
|
2821
|
+
}, [t, l]), Et(() => {
|
|
2822
2822
|
if (e) {
|
|
2823
2823
|
let u;
|
|
2824
2824
|
const f = e.ownerDocument.defaultView ?? window, d = (p) => {
|
|
2825
2825
|
const g = tn(n.current).includes(CSS.escape(p.animationName));
|
|
2826
|
-
if (p.target === e && g && (
|
|
2826
|
+
if (p.target === e && g && (l("ANIMATION_END"), !s.current)) {
|
|
2827
2827
|
const b = e.style.animationFillMode;
|
|
2828
2828
|
e.style.animationFillMode = "forwards", u = f.setTimeout(() => {
|
|
2829
2829
|
e.style.animationFillMode === "forwards" && (e.style.animationFillMode = b);
|
|
@@ -2836,8 +2836,8 @@ function $h(t) {
|
|
|
2836
2836
|
f.clearTimeout(u), e.removeEventListener("animationstart", m), e.removeEventListener("animationcancel", d), e.removeEventListener("animationend", d);
|
|
2837
2837
|
};
|
|
2838
2838
|
} else
|
|
2839
|
-
|
|
2840
|
-
}, [e,
|
|
2839
|
+
l("ANIMATION_END");
|
|
2840
|
+
}, [e, l]), {
|
|
2841
2841
|
isPresent: ["mounted", "unmountSuspended"].includes(o),
|
|
2842
2842
|
ref: h.useCallback((u) => {
|
|
2843
2843
|
n.current = u ? getComputedStyle(u) : null, r(u);
|
|
@@ -2862,7 +2862,7 @@ function Ta({
|
|
|
2862
2862
|
const [s, a, i] = Zh({
|
|
2863
2863
|
defaultProp: e,
|
|
2864
2864
|
onChange: r
|
|
2865
|
-
}), o = t !== void 0,
|
|
2865
|
+
}), o = t !== void 0, l = o ? t : s;
|
|
2866
2866
|
{
|
|
2867
2867
|
const f = h.useRef(t !== void 0);
|
|
2868
2868
|
h.useEffect(() => {
|
|
@@ -2882,7 +2882,7 @@ function Ta({
|
|
|
2882
2882
|
},
|
|
2883
2883
|
[o, t, a, i]
|
|
2884
2884
|
);
|
|
2885
|
-
return [
|
|
2885
|
+
return [l, u];
|
|
2886
2886
|
}
|
|
2887
2887
|
function Zh({
|
|
2888
2888
|
defaultProp: t,
|
|
@@ -2917,12 +2917,12 @@ var Uh = function(t) {
|
|
|
2917
2917
|
}, Hh = function(t, e, r, n) {
|
|
2918
2918
|
var s = jh(e, Array.isArray(t) ? t : [t]);
|
|
2919
2919
|
nn[r] || (nn[r] = /* @__PURE__ */ new WeakMap());
|
|
2920
|
-
var a = nn[r], i = [], o = /* @__PURE__ */ new Set(),
|
|
2920
|
+
var a = nn[r], i = [], o = /* @__PURE__ */ new Set(), l = new Set(s), u = function(d) {
|
|
2921
2921
|
!d || o.has(d) || (o.add(d), u(d.parentNode));
|
|
2922
2922
|
};
|
|
2923
2923
|
s.forEach(u);
|
|
2924
2924
|
var f = function(d) {
|
|
2925
|
-
!d ||
|
|
2925
|
+
!d || l.has(d) || Array.prototype.forEach.call(d.children, function(m) {
|
|
2926
2926
|
if (o.has(m))
|
|
2927
2927
|
f(m);
|
|
2928
2928
|
else
|
|
@@ -3053,11 +3053,11 @@ function em(t, e) {
|
|
|
3053
3053
|
var o = r;
|
|
3054
3054
|
r = [], o.forEach(a), i = r;
|
|
3055
3055
|
}
|
|
3056
|
-
var
|
|
3056
|
+
var l = function() {
|
|
3057
3057
|
var f = i;
|
|
3058
3058
|
i = [], f.forEach(a);
|
|
3059
3059
|
}, u = function() {
|
|
3060
|
-
return Promise.resolve().then(
|
|
3060
|
+
return Promise.resolve().then(l);
|
|
3061
3061
|
};
|
|
3062
3062
|
u(), r = {
|
|
3063
3063
|
push: function(f) {
|
|
@@ -3095,12 +3095,12 @@ var Al = tm(), Ss = function() {
|
|
|
3095
3095
|
onScrollCapture: Ss,
|
|
3096
3096
|
onWheelCapture: Ss,
|
|
3097
3097
|
onTouchMoveCapture: Ss
|
|
3098
|
-
}), s = n[0], a = n[1], i = t.forwardProps, o = t.children,
|
|
3098
|
+
}), s = n[0], a = n[1], i = t.forwardProps, o = t.children, l = t.className, u = t.removeScrollBar, f = t.enabled, d = t.shards, m = t.sideCar, p = t.noRelative, y = t.noIsolation, g = t.inert, b = t.allowPinchZoom, v = t.as, S = v === void 0 ? "div" : v, _ = t.gapMode, N = Dl(t, ["forwardProps", "children", "className", "removeScrollBar", "enabled", "shards", "sideCar", "noRelative", "noIsolation", "inert", "allowPinchZoom", "as", "gapMode"]), x = m, O = Kh([r, e]), E = st(st({}, N), s);
|
|
3099
3099
|
return h.createElement(
|
|
3100
3100
|
h.Fragment,
|
|
3101
3101
|
null,
|
|
3102
3102
|
f && h.createElement(x, { sideCar: Al, removeScrollBar: u, shards: d, noRelative: p, noIsolation: y, inert: g, setCallbacks: a, allowPinchZoom: !!b, lockRef: r, gapMode: _ }),
|
|
3103
|
-
i ? h.cloneElement(h.Children.only(o), st(st({}, E), { ref: O })) : h.createElement(S, st({}, E, { className:
|
|
3103
|
+
i ? h.cloneElement(h.Children.only(o), st(st({}, E), { ref: O })) : h.createElement(S, st({}, E, { className: l, ref: O }), o)
|
|
3104
3104
|
);
|
|
3105
3105
|
});
|
|
3106
3106
|
Gn.defaultProps = {
|
|
@@ -3298,7 +3298,7 @@ var rr = js ? { passive: !1 } : !1, gm = function(t) {
|
|
|
3298
3298
|
}, xm = function(t, e) {
|
|
3299
3299
|
return t === "h" && e === "rtl" ? -1 : 1;
|
|
3300
3300
|
}, km = function(t, e, r, n, s) {
|
|
3301
|
-
var a = xm(t, window.getComputedStyle(e).direction), i = a * n, o = r.target,
|
|
3301
|
+
var a = xm(t, window.getComputedStyle(e).direction), i = a * n, o = r.target, l = e.contains(o), u = !1, f = i > 0, d = 0, m = 0;
|
|
3302
3302
|
do {
|
|
3303
3303
|
if (!o)
|
|
3304
3304
|
break;
|
|
@@ -3308,8 +3308,8 @@ var rr = js ? { passive: !1 } : !1, gm = function(t) {
|
|
|
3308
3308
|
o = S && S.nodeType === Node.DOCUMENT_FRAGMENT_NODE ? S.host : S;
|
|
3309
3309
|
} while (
|
|
3310
3310
|
// portaled content
|
|
3311
|
-
!
|
|
3312
|
-
|
|
3311
|
+
!l && o !== document.body || // self content
|
|
3312
|
+
l && (e.contains(o) || e === o)
|
|
3313
3313
|
);
|
|
3314
3314
|
return (f && Math.abs(d) < 1 || !f && Math.abs(m) < 1) && (u = !0), u;
|
|
3315
3315
|
}, an = function(t) {
|
|
@@ -3361,7 +3361,7 @@ function _m(t) {
|
|
|
3361
3361
|
return !0;
|
|
3362
3362
|
var j = n.current || x;
|
|
3363
3363
|
return km(j, b, g, j === "h" ? _ : N);
|
|
3364
|
-
}, []),
|
|
3364
|
+
}, []), l = h.useCallback(function(g) {
|
|
3365
3365
|
var b = g;
|
|
3366
3366
|
if (!(!nr.length || nr[nr.length - 1] !== a)) {
|
|
3367
3367
|
var v = "deltaY" in b ? Mi(b) : an(b), S = e.current.filter(function(x) {
|
|
@@ -3397,10 +3397,10 @@ function _m(t) {
|
|
|
3397
3397
|
onScrollCapture: d,
|
|
3398
3398
|
onWheelCapture: d,
|
|
3399
3399
|
onTouchMoveCapture: m
|
|
3400
|
-
}), document.addEventListener("wheel",
|
|
3400
|
+
}), document.addEventListener("wheel", l, rr), document.addEventListener("touchmove", l, rr), document.addEventListener("touchstart", f, rr), function() {
|
|
3401
3401
|
nr = nr.filter(function(g) {
|
|
3402
3402
|
return g !== a;
|
|
3403
|
-
}), document.removeEventListener("wheel",
|
|
3403
|
+
}), document.removeEventListener("wheel", l, rr), document.removeEventListener("touchmove", l, rr), document.removeEventListener("touchstart", f, rr);
|
|
3404
3404
|
};
|
|
3405
3405
|
}, []);
|
|
3406
3406
|
var p = t.removeScrollBar, y = t.inert;
|
|
@@ -3431,18 +3431,18 @@ var Jn = "Popover", [Ll] = Un(Jn, [
|
|
|
3431
3431
|
defaultOpen: s,
|
|
3432
3432
|
onOpenChange: a,
|
|
3433
3433
|
modal: i = !1
|
|
3434
|
-
} = t, o = Hr(e),
|
|
3434
|
+
} = t, o = Hr(e), l = h.useRef(null), [u, f] = h.useState(!1), [d, m] = Ta({
|
|
3435
3435
|
prop: n,
|
|
3436
3436
|
defaultProp: s ?? !1,
|
|
3437
3437
|
onChange: a,
|
|
3438
3438
|
caller: Jn
|
|
3439
3439
|
});
|
|
3440
|
-
return /* @__PURE__ */
|
|
3440
|
+
return /* @__PURE__ */ c(Mh, { ...o, children: /* @__PURE__ */ c(
|
|
3441
3441
|
Om,
|
|
3442
3442
|
{
|
|
3443
3443
|
scope: e,
|
|
3444
3444
|
contentId: mn(),
|
|
3445
|
-
triggerRef:
|
|
3445
|
+
triggerRef: l,
|
|
3446
3446
|
open: d,
|
|
3447
3447
|
onOpenChange: m,
|
|
3448
3448
|
onOpenToggle: h.useCallback(() => m((p) => !p), [m]),
|
|
@@ -3458,13 +3458,13 @@ Vl.displayName = Jn;
|
|
|
3458
3458
|
var $l = "PopoverAnchor", Dm = h.forwardRef(
|
|
3459
3459
|
(t, e) => {
|
|
3460
3460
|
const { __scopePopover: r, ...n } = t, s = It($l, r), a = Hr(r), { onCustomAnchorAdd: i, onCustomAnchorRemove: o } = s;
|
|
3461
|
-
return h.useEffect(() => (i(), () => o()), [i, o]), /* @__PURE__ */
|
|
3461
|
+
return h.useEffect(() => (i(), () => o()), [i, o]), /* @__PURE__ */ c(Tl, { ...a, ...n, ref: e });
|
|
3462
3462
|
}
|
|
3463
3463
|
);
|
|
3464
3464
|
Dm.displayName = $l;
|
|
3465
3465
|
var Wl = "PopoverTrigger", zl = h.forwardRef(
|
|
3466
3466
|
(t, e) => {
|
|
3467
|
-
const { __scopePopover: r, ...n } = t, s = It(Wl, r), a = Hr(r), i = $e(e, s.triggerRef), o = /* @__PURE__ */
|
|
3467
|
+
const { __scopePopover: r, ...n } = t, s = It(Wl, r), a = Hr(r), i = $e(e, s.triggerRef), o = /* @__PURE__ */ c(
|
|
3468
3468
|
_e.button,
|
|
3469
3469
|
{
|
|
3470
3470
|
type: "button",
|
|
@@ -3477,7 +3477,7 @@ var Wl = "PopoverTrigger", zl = h.forwardRef(
|
|
|
3477
3477
|
onClick: Ae(t.onClick, s.onOpenToggle)
|
|
3478
3478
|
}
|
|
3479
3479
|
);
|
|
3480
|
-
return s.hasCustomAnchor ? o : /* @__PURE__ */
|
|
3480
|
+
return s.hasCustomAnchor ? o : /* @__PURE__ */ c(Tl, { asChild: !0, ...a, children: o });
|
|
3481
3481
|
}
|
|
3482
3482
|
);
|
|
3483
3483
|
zl.displayName = Wl;
|
|
@@ -3485,13 +3485,13 @@ var Oa = "PopoverPortal", [Rm, Am] = Ll(Oa, {
|
|
|
3485
3485
|
forceMount: void 0
|
|
3486
3486
|
}), Zl = (t) => {
|
|
3487
3487
|
const { __scopePopover: e, forceMount: r, children: n, container: s } = t, a = It(Oa, e);
|
|
3488
|
-
return /* @__PURE__ */
|
|
3488
|
+
return /* @__PURE__ */ c(Rm, { scope: e, forceMount: r, children: /* @__PURE__ */ c(Cr, { present: r || a.open, children: /* @__PURE__ */ c(_a, { asChild: !0, container: s, children: n }) }) });
|
|
3489
3489
|
};
|
|
3490
3490
|
Zl.displayName = Oa;
|
|
3491
3491
|
var gr = "PopoverContent", Bl = h.forwardRef(
|
|
3492
3492
|
(t, e) => {
|
|
3493
3493
|
const r = Am(gr, t.__scopePopover), { forceMount: n = r.forceMount, ...s } = t, a = It(gr, t.__scopePopover);
|
|
3494
|
-
return /* @__PURE__ */
|
|
3494
|
+
return /* @__PURE__ */ c(Cr, { present: n || a.open, children: a.modal ? /* @__PURE__ */ c(Mm, { ...s, ref: e }) : /* @__PURE__ */ c(Pm, { ...s, ref: e }) });
|
|
3495
3495
|
}
|
|
3496
3496
|
);
|
|
3497
3497
|
Bl.displayName = gr;
|
|
@@ -3501,7 +3501,7 @@ var Im = /* @__PURE__ */ Zn("PopoverContent.RemoveScroll"), Mm = h.forwardRef(
|
|
|
3501
3501
|
return h.useEffect(() => {
|
|
3502
3502
|
const i = n.current;
|
|
3503
3503
|
if (i) return Ol(i);
|
|
3504
|
-
}, []), /* @__PURE__ */
|
|
3504
|
+
}, []), /* @__PURE__ */ c(Ea, { as: Im, allowPinchZoom: !0, children: /* @__PURE__ */ c(
|
|
3505
3505
|
Ul,
|
|
3506
3506
|
{
|
|
3507
3507
|
...t,
|
|
@@ -3514,7 +3514,7 @@ var Im = /* @__PURE__ */ Zn("PopoverContent.RemoveScroll"), Mm = h.forwardRef(
|
|
|
3514
3514
|
onPointerDownOutside: Ae(
|
|
3515
3515
|
t.onPointerDownOutside,
|
|
3516
3516
|
(i) => {
|
|
3517
|
-
const o = i.detail.originalEvent,
|
|
3517
|
+
const o = i.detail.originalEvent, l = o.button === 0 && o.ctrlKey === !0, u = o.button === 2 || l;
|
|
3518
3518
|
a.current = u;
|
|
3519
3519
|
},
|
|
3520
3520
|
{ checkForDefaultPrevented: !1 }
|
|
@@ -3530,7 +3530,7 @@ var Im = /* @__PURE__ */ Zn("PopoverContent.RemoveScroll"), Mm = h.forwardRef(
|
|
|
3530
3530
|
), Pm = h.forwardRef(
|
|
3531
3531
|
(t, e) => {
|
|
3532
3532
|
const r = It(gr, t.__scopePopover), n = h.useRef(!1), s = h.useRef(!1);
|
|
3533
|
-
return /* @__PURE__ */
|
|
3533
|
+
return /* @__PURE__ */ c(
|
|
3534
3534
|
Ul,
|
|
3535
3535
|
{
|
|
3536
3536
|
...t,
|
|
@@ -3557,12 +3557,12 @@ var Im = /* @__PURE__ */ Zn("PopoverContent.RemoveScroll"), Mm = h.forwardRef(
|
|
|
3557
3557
|
onCloseAutoFocus: a,
|
|
3558
3558
|
disableOutsidePointerEvents: i,
|
|
3559
3559
|
onEscapeKeyDown: o,
|
|
3560
|
-
onPointerDownOutside:
|
|
3560
|
+
onPointerDownOutside: l,
|
|
3561
3561
|
onFocusOutside: u,
|
|
3562
3562
|
onInteractOutside: f,
|
|
3563
3563
|
...d
|
|
3564
3564
|
} = t, m = It(gr, r), p = Hr(r);
|
|
3565
|
-
return rl(), /* @__PURE__ */
|
|
3565
|
+
return rl(), /* @__PURE__ */ c(
|
|
3566
3566
|
ya,
|
|
3567
3567
|
{
|
|
3568
3568
|
asChild: !0,
|
|
@@ -3570,17 +3570,17 @@ var Im = /* @__PURE__ */ Zn("PopoverContent.RemoveScroll"), Mm = h.forwardRef(
|
|
|
3570
3570
|
trapped: n,
|
|
3571
3571
|
onMountAutoFocus: s,
|
|
3572
3572
|
onUnmountAutoFocus: a,
|
|
3573
|
-
children: /* @__PURE__ */
|
|
3573
|
+
children: /* @__PURE__ */ c(
|
|
3574
3574
|
ga,
|
|
3575
3575
|
{
|
|
3576
3576
|
asChild: !0,
|
|
3577
3577
|
disableOutsidePointerEvents: i,
|
|
3578
3578
|
onInteractOutside: f,
|
|
3579
3579
|
onEscapeKeyDown: o,
|
|
3580
|
-
onPointerDownOutside:
|
|
3580
|
+
onPointerDownOutside: l,
|
|
3581
3581
|
onFocusOutside: u,
|
|
3582
3582
|
onDismiss: () => m.onOpenChange(!1),
|
|
3583
|
-
children: /* @__PURE__ */
|
|
3583
|
+
children: /* @__PURE__ */ c(
|
|
3584
3584
|
Ph,
|
|
3585
3585
|
{
|
|
3586
3586
|
"data-state": Hl(m.open),
|
|
@@ -3607,7 +3607,7 @@ var Im = /* @__PURE__ */ Zn("PopoverContent.RemoveScroll"), Mm = h.forwardRef(
|
|
|
3607
3607
|
), jl = "PopoverClose", Fm = h.forwardRef(
|
|
3608
3608
|
(t, e) => {
|
|
3609
3609
|
const { __scopePopover: r, ...n } = t, s = It(jl, r);
|
|
3610
|
-
return /* @__PURE__ */
|
|
3610
|
+
return /* @__PURE__ */ c(
|
|
3611
3611
|
_e.button,
|
|
3612
3612
|
{
|
|
3613
3613
|
type: "button",
|
|
@@ -3622,7 +3622,7 @@ Fm.displayName = jl;
|
|
|
3622
3622
|
var Lm = "PopoverArrow", Vm = h.forwardRef(
|
|
3623
3623
|
(t, e) => {
|
|
3624
3624
|
const { __scopePopover: r, ...n } = t, s = Hr(r);
|
|
3625
|
-
return /* @__PURE__ */
|
|
3625
|
+
return /* @__PURE__ */ c(Fh, { ...s, ...n, ref: e });
|
|
3626
3626
|
}
|
|
3627
3627
|
);
|
|
3628
3628
|
Vm.displayName = Lm;
|
|
@@ -3938,8 +3938,8 @@ const Gm = {
|
|
|
3938
3938
|
second: 6
|
|
3939
3939
|
};
|
|
3940
3940
|
function Jm(t, e) {
|
|
3941
|
-
const r = t.format(e).replace(/\u200E/g, ""), n = /(\d+)\/(\d+)\/(\d+) (AD|BC),? (\d+):(\d+):(\d+)/.exec(r), [, s, a, i, o,
|
|
3942
|
-
return [i, s, a, o,
|
|
3941
|
+
const r = t.format(e).replace(/\u200E/g, ""), n = /(\d+)\/(\d+)\/(\d+) (AD|BC),? (\d+):(\d+):(\d+)/.exec(r), [, s, a, i, o, l, u, f] = n;
|
|
3942
|
+
return [i, s, a, o, l, u, f];
|
|
3943
3943
|
}
|
|
3944
3944
|
function Xm(t, e) {
|
|
3945
3945
|
const r = t.formatToParts(e), n = [];
|
|
@@ -4056,13 +4056,13 @@ class ct extends Yr {
|
|
|
4056
4056
|
const r = new Date(e);
|
|
4057
4057
|
if (isNaN(r)) return NaN;
|
|
4058
4058
|
const n = qm(this.name);
|
|
4059
|
-
let [s, a, i, o,
|
|
4059
|
+
let [s, a, i, o, l, u, f] = n.formatToParts ? Xm(n, r) : Jm(n, r);
|
|
4060
4060
|
o === "BC" && (s = -Math.abs(s) + 1);
|
|
4061
4061
|
const m = Qn({
|
|
4062
4062
|
year: s,
|
|
4063
4063
|
month: a,
|
|
4064
4064
|
day: i,
|
|
4065
|
-
hour:
|
|
4065
|
+
hour: l === 24 ? 0 : l,
|
|
4066
4066
|
minute: u,
|
|
4067
4067
|
second: f,
|
|
4068
4068
|
millisecond: 0
|
|
@@ -4142,8 +4142,8 @@ function np(t) {
|
|
|
4142
4142
|
try {
|
|
4143
4143
|
n = qs(t).resolvedOptions(), s = t;
|
|
4144
4144
|
} catch {
|
|
4145
|
-
const
|
|
4146
|
-
n = qs(
|
|
4145
|
+
const l = t.substring(0, r);
|
|
4146
|
+
n = qs(l).resolvedOptions(), s = l;
|
|
4147
4147
|
}
|
|
4148
4148
|
const { numberingSystem: a, calendar: i } = n;
|
|
4149
4149
|
return [s, a, i];
|
|
@@ -4257,8 +4257,8 @@ class ae {
|
|
|
4257
4257
|
);
|
|
4258
4258
|
}
|
|
4259
4259
|
static create(e, r, n, s, a = !1) {
|
|
4260
|
-
const i = e || de.defaultLocale, o = i || (a ? "en-US" : tp()),
|
|
4261
|
-
return new ae(o,
|
|
4260
|
+
const i = e || de.defaultLocale, o = i || (a ? "en-US" : tp()), l = r || de.defaultNumberingSystem, u = n || de.defaultOutputCalendar, f = ea(s) || de.defaultWeekSettings;
|
|
4261
|
+
return new ae(o, l, u, f, i);
|
|
4262
4262
|
}
|
|
4263
4263
|
static resetCache() {
|
|
4264
4264
|
Ar = null, Ys.clear(), Gs.clear(), Js.clear(), Xs.clear(), Ks.clear();
|
|
@@ -4267,8 +4267,8 @@ class ae {
|
|
|
4267
4267
|
return ae.create(e, r, n, s);
|
|
4268
4268
|
}
|
|
4269
4269
|
constructor(e, r, n, s, a) {
|
|
4270
|
-
const [i, o,
|
|
4271
|
-
this.locale = i, this.numberingSystem = r || o || null, this.outputCalendar = n ||
|
|
4270
|
+
const [i, o, l] = np(e);
|
|
4271
|
+
this.locale = i, this.numberingSystem = r || o || null, this.outputCalendar = n || l || null, this.weekSettings = s, this.intl = sp(this.locale, this.numberingSystem, this.outputCalendar), this.weekdaysCache = { format: {}, standalone: {} }, this.monthsCache = { format: {}, standalone: {} }, this.meridiemCache = null, this.eraCache = {}, this.specifiedLocale = a, this.fastNumbersCached = null;
|
|
4272
4272
|
}
|
|
4273
4273
|
get fastNumbers() {
|
|
4274
4274
|
return this.fastNumbersCached == null && (this.fastNumbersCached = op(this)), this.fastNumbersCached;
|
|
@@ -4786,14 +4786,14 @@ function Aa(t, e) {
|
|
|
4786
4786
|
}
|
|
4787
4787
|
function On(t, e = 4, r = 1) {
|
|
4788
4788
|
const { year: n, month: s, day: a } = t, i = yc(n, s, a), o = Aa(Ra(n, s, a), r);
|
|
4789
|
-
let
|
|
4790
|
-
return
|
|
4789
|
+
let l = Math.floor((i - o + 14 - e) / 7), u;
|
|
4790
|
+
return l < 1 ? (u = n - 1, l = Wr(u, e, r)) : l > Wr(n, e, r) ? (u = n + 1, l = 1) : u = n, { weekYear: u, weekNumber: l, weekday: o, ...ts(t) };
|
|
4791
4791
|
}
|
|
4792
4792
|
function Hi(t, e = 4, r = 1) {
|
|
4793
4793
|
const { weekYear: n, weekNumber: s, weekday: a } = t, i = Aa(Ra(n, 1, e), r), o = fr(n);
|
|
4794
|
-
let
|
|
4795
|
-
|
|
4796
|
-
const { month: f, day: d } = vc(u,
|
|
4794
|
+
let l = s * 7 + a - i - 7 + e, u;
|
|
4795
|
+
l < 1 ? (u = n - 1, l += fr(u)) : l > o ? (u = n + 1, l -= fr(n)) : u = n;
|
|
4796
|
+
const { month: f, day: d } = vc(u, l);
|
|
4797
4797
|
return { year: u, month: f, day: d, ...ts(t) };
|
|
4798
4798
|
}
|
|
4799
4799
|
function Os(t) {
|
|
@@ -4834,8 +4834,8 @@ function bc(t) {
|
|
|
4834
4834
|
return e ? r ? n ? !1 : Ze("day", t.day) : Ze("month", t.month) : Ze("year", t.year);
|
|
4835
4835
|
}
|
|
4836
4836
|
function wc(t) {
|
|
4837
|
-
const { hour: e, minute: r, second: n, millisecond: s } = t, a = Be(e, 0, 23) || e === 24 && r === 0 && n === 0 && s === 0, i = Be(r, 0, 59), o = Be(n, 0, 59),
|
|
4838
|
-
return a ? i ? o ?
|
|
4837
|
+
const { hour: e, minute: r, second: n, millisecond: s } = t, a = Be(e, 0, 23) || e === 24 && r === 0 && n === 0 && s === 0, i = Be(r, 0, 59), o = Be(n, 0, 59), l = Be(s, 0, 999);
|
|
4838
|
+
return a ? i ? o ? l ? !1 : Ze("millisecond", s) : Ze("second", n) : Ze("minute", r) : Ze("hour", e);
|
|
4839
4839
|
}
|
|
4840
4840
|
function U(t) {
|
|
4841
4841
|
return typeof t > "u";
|
|
@@ -4979,7 +4979,7 @@ function Nc(t, e, r, n = null) {
|
|
|
4979
4979
|
minute: "2-digit"
|
|
4980
4980
|
};
|
|
4981
4981
|
n && (a.timeZone = n);
|
|
4982
|
-
const i = { timeZoneName: e, ...a }, o = new Intl.DateTimeFormat(r, i).formatToParts(s).find((
|
|
4982
|
+
const i = { timeZoneName: e, ...a }, o = new Intl.DateTimeFormat(r, i).formatToParts(s).find((l) => l.type.toLowerCase() === "timezonename");
|
|
4983
4983
|
return o ? o.value : null;
|
|
4984
4984
|
}
|
|
4985
4985
|
function es(t, e) {
|
|
@@ -5133,7 +5133,7 @@ function Ap(t, e, r = "always", n = !1) {
|
|
|
5133
5133
|
return d ? "today" : `this ${s[t][0]}`;
|
|
5134
5134
|
}
|
|
5135
5135
|
}
|
|
5136
|
-
const i = Object.is(e, -0) || e < 0, o = Math.abs(e),
|
|
5136
|
+
const i = Object.is(e, -0) || e < 0, o = Math.abs(e), l = o === 1, u = s[t], f = n ? l ? u[1] : u[2] || u[1] : l ? s[t][0] : t;
|
|
5137
5137
|
return i ? `${o} ${f} ago` : `in ${o} ${f}`;
|
|
5138
5138
|
}
|
|
5139
5139
|
function Xi(t, e) {
|
|
@@ -5211,7 +5211,7 @@ class Ce {
|
|
|
5211
5211
|
return r > 0 && (s.padTo = r), n && (s.signDisplay = n), this.loc.numberFormatter(s).format(e);
|
|
5212
5212
|
}
|
|
5213
5213
|
formatDateTimeFromString(e, r) {
|
|
5214
|
-
const n = this.loc.listingMode() === "en", s = this.loc.outputCalendar && this.loc.outputCalendar !== "gregory", a = (p, y) => this.loc.extract(e, p, y), i = (p) => e.isOffsetFixed && e.offset === 0 && p.allowZ ? "Z" : e.isValid ? e.zone.formatOffset(e.ts, p.format) : "", o = () => n ? Ep(e) : a({ hour: "numeric", hourCycle: "h12" }, "dayperiod"),
|
|
5214
|
+
const n = this.loc.listingMode() === "en", s = this.loc.outputCalendar && this.loc.outputCalendar !== "gregory", a = (p, y) => this.loc.extract(e, p, y), i = (p) => e.isOffsetFixed && e.offset === 0 && p.allowZ ? "Z" : e.isValid ? e.zone.formatOffset(e.ts, p.format) : "", o = () => n ? Ep(e) : a({ hour: "numeric", hourCycle: "h12" }, "dayperiod"), l = (p, y) => n ? Dp(e, p) : a(y ? { month: p } : { month: p, day: "numeric" }, "month"), u = (p, y) => n ? Op(e, p) : a(
|
|
5215
5215
|
y ? { weekday: p } : { weekday: p, month: "long", day: "numeric" },
|
|
5216
5216
|
"weekday"
|
|
5217
5217
|
), f = (p) => {
|
|
@@ -5296,22 +5296,22 @@ class Ce {
|
|
|
5296
5296
|
case "LL":
|
|
5297
5297
|
return s ? a({ month: "2-digit", day: "numeric" }, "month") : this.num(e.month, 2);
|
|
5298
5298
|
case "LLL":
|
|
5299
|
-
return
|
|
5299
|
+
return l("short", !0);
|
|
5300
5300
|
case "LLLL":
|
|
5301
|
-
return
|
|
5301
|
+
return l("long", !0);
|
|
5302
5302
|
case "LLLLL":
|
|
5303
|
-
return
|
|
5303
|
+
return l("narrow", !0);
|
|
5304
5304
|
// months - format
|
|
5305
5305
|
case "M":
|
|
5306
5306
|
return s ? a({ month: "numeric" }, "month") : this.num(e.month);
|
|
5307
5307
|
case "MM":
|
|
5308
5308
|
return s ? a({ month: "2-digit" }, "month") : this.num(e.month, 2);
|
|
5309
5309
|
case "MMM":
|
|
5310
|
-
return
|
|
5310
|
+
return l("short", !1);
|
|
5311
5311
|
case "MMMM":
|
|
5312
|
-
return
|
|
5312
|
+
return l("long", !1);
|
|
5313
5313
|
case "MMMMM":
|
|
5314
|
-
return
|
|
5314
|
+
return l("narrow", !1);
|
|
5315
5315
|
// years
|
|
5316
5316
|
case "y":
|
|
5317
5317
|
return s ? a({ year: "numeric" }, "year") : this.num(e.year);
|
|
@@ -5395,13 +5395,13 @@ class Ce {
|
|
|
5395
5395
|
}, i = Ce.parseFormat(r), o = i.reduce(
|
|
5396
5396
|
(f, { literal: d, val: m }) => d ? f : f.concat(m),
|
|
5397
5397
|
[]
|
|
5398
|
-
),
|
|
5399
|
-
isNegativeDuration:
|
|
5398
|
+
), l = e.shiftTo(...o.map(s).filter((f) => f)), u = {
|
|
5399
|
+
isNegativeDuration: l < 0,
|
|
5400
5400
|
// this relies on "collapsed" being based on "shiftTo", which builds up the object
|
|
5401
5401
|
// in order
|
|
5402
|
-
largestUnit: Object.keys(
|
|
5402
|
+
largestUnit: Object.keys(l.values)[0]
|
|
5403
5403
|
};
|
|
5404
|
-
return Xi(i, a(
|
|
5404
|
+
return Xi(i, a(l, u));
|
|
5405
5405
|
}
|
|
5406
5406
|
}
|
|
5407
5407
|
const Ac = /[A-Za-z_+-]{1,256}(?::?\/[A-Za-z0-9_+-]{1,256}(?:\/[A-Za-z0-9_+-]{1,256})?)?/;
|
|
@@ -5412,8 +5412,8 @@ function _r(...t) {
|
|
|
5412
5412
|
function Tr(...t) {
|
|
5413
5413
|
return (e) => t.reduce(
|
|
5414
5414
|
([r, n, s], a) => {
|
|
5415
|
-
const [i, o,
|
|
5416
|
-
return [{ ...r, ...i }, o || n,
|
|
5415
|
+
const [i, o, l] = a(e, s);
|
|
5416
|
+
return [{ ...r, ...i }, o || n, l];
|
|
5417
5417
|
},
|
|
5418
5418
|
[{}, null, 1]
|
|
5419
5419
|
).slice(0, 2);
|
|
@@ -5469,7 +5469,7 @@ function Jr(t, e) {
|
|
|
5469
5469
|
}
|
|
5470
5470
|
const Bp = RegExp(`^T?${Pa.source}$`), Up = /^-?P(?:(?:(-?\d{1,20}(?:\.\d{1,20})?)Y)?(?:(-?\d{1,20}(?:\.\d{1,20})?)M)?(?:(-?\d{1,20}(?:\.\d{1,20})?)W)?(?:(-?\d{1,20}(?:\.\d{1,20})?)D)?(?:T(?:(-?\d{1,20}(?:\.\d{1,20})?)H)?(?:(-?\d{1,20}(?:\.\d{1,20})?)M)?(?:(-?\d{1,20})(?:[.,](-?\d{1,20}))?S)?)?)$/;
|
|
5471
5471
|
function jp(t) {
|
|
5472
|
-
const [e, r, n, s, a, i, o,
|
|
5472
|
+
const [e, r, n, s, a, i, o, l, u] = t, f = e[0] === "-", d = l && l[0] === "-", m = (p, y = !1) => p !== void 0 && (y || p && f) ? -p : p;
|
|
5473
5473
|
return [
|
|
5474
5474
|
{
|
|
5475
5475
|
years: m(Lt(r)),
|
|
@@ -5478,7 +5478,7 @@ function jp(t) {
|
|
|
5478
5478
|
days: m(Lt(a)),
|
|
5479
5479
|
hours: m(Lt(i)),
|
|
5480
5480
|
minutes: m(Lt(o)),
|
|
5481
|
-
seconds: m(Lt(
|
|
5481
|
+
seconds: m(Lt(l), l === "-0"),
|
|
5482
5482
|
milliseconds: m(Ia(u), d)
|
|
5483
5483
|
}
|
|
5484
5484
|
];
|
|
@@ -5515,13 +5515,13 @@ function qp(t) {
|
|
|
5515
5515
|
a,
|
|
5516
5516
|
i,
|
|
5517
5517
|
o,
|
|
5518
|
-
|
|
5518
|
+
l,
|
|
5519
5519
|
u,
|
|
5520
5520
|
f,
|
|
5521
5521
|
d
|
|
5522
5522
|
] = t, m = La(e, s, n, r, a, i, o);
|
|
5523
5523
|
let p;
|
|
5524
|
-
return
|
|
5524
|
+
return l ? p = Hp[l] : u ? p = 0 : p = es(f, d), [m, new Ee(p)];
|
|
5525
5525
|
}
|
|
5526
5526
|
function Gp(t) {
|
|
5527
5527
|
return t.replace(/\([^()]*\)|[\n\t]/g, " ").replace(/(\s\s+)/g, " ").trim();
|
|
@@ -6168,8 +6168,8 @@ class te {
|
|
|
6168
6168
|
for (const u in n)
|
|
6169
6169
|
o += this.matrix[u][i] * n[u], n[u] = 0;
|
|
6170
6170
|
_t(s[i]) && (o += s[i]);
|
|
6171
|
-
const
|
|
6172
|
-
r[i] =
|
|
6171
|
+
const l = Math.trunc(o);
|
|
6172
|
+
r[i] = l, n[i] = (o * 1e3 - l * 1e3) / 1e3;
|
|
6173
6173
|
} else _t(s[i]) && (n[i] = s[i]);
|
|
6174
6174
|
for (const i in n)
|
|
6175
6175
|
n[i] !== 0 && (r[a] += i === a ? n[i] : n[i] / this.matrix[a][i]);
|
|
@@ -6395,19 +6395,19 @@ class me {
|
|
|
6395
6395
|
} catch {
|
|
6396
6396
|
i = !1;
|
|
6397
6397
|
}
|
|
6398
|
-
let o,
|
|
6398
|
+
let o, l;
|
|
6399
6399
|
try {
|
|
6400
|
-
o = F.fromISO(s, r),
|
|
6400
|
+
o = F.fromISO(s, r), l = o.isValid;
|
|
6401
6401
|
} catch {
|
|
6402
|
-
|
|
6402
|
+
l = !1;
|
|
6403
6403
|
}
|
|
6404
|
-
if (i &&
|
|
6404
|
+
if (i && l)
|
|
6405
6405
|
return me.fromDateTimes(a, o);
|
|
6406
6406
|
if (i) {
|
|
6407
6407
|
const u = te.fromISO(s, r);
|
|
6408
6408
|
if (u.isValid)
|
|
6409
6409
|
return me.after(a, u);
|
|
6410
|
-
} else if (
|
|
6410
|
+
} else if (l) {
|
|
6411
6411
|
const u = te.fromISO(n, r);
|
|
6412
6412
|
if (u.isValid)
|
|
6413
6413
|
return me.before(o, u);
|
|
@@ -6566,7 +6566,7 @@ class me {
|
|
|
6566
6566
|
let { s: n } = this, s = 1, a;
|
|
6567
6567
|
const i = [];
|
|
6568
6568
|
for (; n < this.e; ) {
|
|
6569
|
-
const o = this.start.plus(r.mapUnits((
|
|
6569
|
+
const o = this.start.plus(r.mapUnits((l) => l * s));
|
|
6570
6570
|
a = +o > +this.e ? this.e : o, i.push(me.fromDateTimes(n, a)), n = a, s += 1;
|
|
6571
6571
|
}
|
|
6572
6572
|
return i;
|
|
@@ -6665,12 +6665,12 @@ class me {
|
|
|
6665
6665
|
*/
|
|
6666
6666
|
static xor(e) {
|
|
6667
6667
|
let r = null, n = 0;
|
|
6668
|
-
const s = [], a = e.map((
|
|
6669
|
-
{ time:
|
|
6670
|
-
{ time:
|
|
6671
|
-
]), i = Array.prototype.concat(...a), o = i.sort((
|
|
6672
|
-
for (const
|
|
6673
|
-
n +=
|
|
6668
|
+
const s = [], a = e.map((l) => [
|
|
6669
|
+
{ time: l.s, type: "s" },
|
|
6670
|
+
{ time: l.e, type: "e" }
|
|
6671
|
+
]), i = Array.prototype.concat(...a), o = i.sort((l, u) => l.time - u.time);
|
|
6672
|
+
for (const l of o)
|
|
6673
|
+
n += l.type === "s" ? 1 : -1, n === 1 ? r = l.time : (r && +r != +l.time && s.push(me.fromDateTimes(r, l.time)), r = null);
|
|
6674
6674
|
return me.merge(s);
|
|
6675
6675
|
}
|
|
6676
6676
|
/**
|
|
@@ -6961,31 +6961,31 @@ function ro(t, e) {
|
|
|
6961
6961
|
}
|
|
6962
6962
|
function xg(t, e, r) {
|
|
6963
6963
|
const n = [
|
|
6964
|
-
["years", (
|
|
6965
|
-
["quarters", (
|
|
6966
|
-
["months", (
|
|
6964
|
+
["years", (l, u) => u.year - l.year],
|
|
6965
|
+
["quarters", (l, u) => u.quarter - l.quarter + (u.year - l.year) * 4],
|
|
6966
|
+
["months", (l, u) => u.month - l.month + (u.year - l.year) * 12],
|
|
6967
6967
|
[
|
|
6968
6968
|
"weeks",
|
|
6969
|
-
(
|
|
6970
|
-
const f = ro(
|
|
6969
|
+
(l, u) => {
|
|
6970
|
+
const f = ro(l, u);
|
|
6971
6971
|
return (f - f % 7) / 7;
|
|
6972
6972
|
}
|
|
6973
6973
|
],
|
|
6974
6974
|
["days", ro]
|
|
6975
6975
|
], s = {}, a = t;
|
|
6976
6976
|
let i, o;
|
|
6977
|
-
for (const [
|
|
6978
|
-
r.indexOf(
|
|
6977
|
+
for (const [l, u] of n)
|
|
6978
|
+
r.indexOf(l) >= 0 && (i = l, s[l] = u(t, e), o = a.plus(s), o > e ? (s[l]--, t = a.plus(s), t > e && (o = t, s[l]--, t = a.plus(s))) : t = o);
|
|
6979
6979
|
return [t, s, o, i];
|
|
6980
6980
|
}
|
|
6981
6981
|
function kg(t, e, r, n) {
|
|
6982
6982
|
let [s, a, i, o] = xg(t, e, r);
|
|
6983
|
-
const
|
|
6983
|
+
const l = e - s, u = r.filter(
|
|
6984
6984
|
(d) => ["hours", "minutes", "seconds", "milliseconds"].indexOf(d) >= 0
|
|
6985
6985
|
);
|
|
6986
|
-
u.length === 0 && (i < e && (i = s.plus({ [o]: 1 })), i !== s && (a[o] = (a[o] || 0) +
|
|
6986
|
+
u.length === 0 && (i < e && (i = s.plus({ [o]: 1 })), i !== s && (a[o] = (a[o] || 0) + l / (i - s)));
|
|
6987
6987
|
const f = te.fromObject(a, n);
|
|
6988
|
-
return u.length > 0 ? te.fromMillis(
|
|
6988
|
+
return u.length > 0 ? te.fromMillis(l, n).shiftTo(...u).plus(f) : f;
|
|
6989
6989
|
}
|
|
6990
6990
|
const Ng = "missing Intl.DateTimeFormat.formatToParts support";
|
|
6991
6991
|
function se(t, e = (r) => r) {
|
|
@@ -7014,7 +7014,7 @@ function _g(t) {
|
|
|
7014
7014
|
return t.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g, "\\$&");
|
|
7015
7015
|
}
|
|
7016
7016
|
function Tg(t, e) {
|
|
7017
|
-
const r = qe(e), n = qe(e, "{2}"), s = qe(e, "{3}"), a = qe(e, "{4}"), i = qe(e, "{6}"), o = qe(e, "{1,2}"),
|
|
7017
|
+
const r = qe(e), n = qe(e, "{2}"), s = qe(e, "{3}"), a = qe(e, "{4}"), i = qe(e, "{6}"), o = qe(e, "{1,2}"), l = qe(e, "{1,3}"), u = qe(e, "{1,6}"), f = qe(e, "{1,9}"), d = qe(e, "{2,4}"), m = qe(e, "{4,6}"), p = (b) => ({ regex: RegExp(_g(b.val)), deser: ([v]) => v, literal: !0 }), g = ((b) => {
|
|
7018
7018
|
if (t.literal)
|
|
7019
7019
|
return p(b);
|
|
7020
7020
|
switch (b.val) {
|
|
@@ -7058,7 +7058,7 @@ function Tg(t, e) {
|
|
|
7058
7058
|
return se(n);
|
|
7059
7059
|
// ordinals
|
|
7060
7060
|
case "o":
|
|
7061
|
-
return se(
|
|
7061
|
+
return se(l);
|
|
7062
7062
|
case "ooo":
|
|
7063
7063
|
return se(s);
|
|
7064
7064
|
// time
|
|
@@ -7083,7 +7083,7 @@ function Tg(t, e) {
|
|
|
7083
7083
|
case "ss":
|
|
7084
7084
|
return se(n);
|
|
7085
7085
|
case "S":
|
|
7086
|
-
return se(
|
|
7086
|
+
return se(l);
|
|
7087
7087
|
case "SSS":
|
|
7088
7088
|
return se(s);
|
|
7089
7089
|
case "u":
|
|
@@ -7184,10 +7184,10 @@ const Eg = {
|
|
|
7184
7184
|
function Og(t, e, r) {
|
|
7185
7185
|
const { type: n, value: s } = t;
|
|
7186
7186
|
if (n === "literal") {
|
|
7187
|
-
const
|
|
7187
|
+
const l = /^\s+$/.test(s);
|
|
7188
7188
|
return {
|
|
7189
|
-
literal: !
|
|
7190
|
-
val:
|
|
7189
|
+
literal: !l,
|
|
7190
|
+
val: l ? " " : s
|
|
7191
7191
|
};
|
|
7192
7192
|
}
|
|
7193
7193
|
const a = e[n];
|
|
@@ -7210,8 +7210,8 @@ function Rg(t, e, r) {
|
|
|
7210
7210
|
let a = 1;
|
|
7211
7211
|
for (const i in r)
|
|
7212
7212
|
if (yr(r, i)) {
|
|
7213
|
-
const o = r[i],
|
|
7214
|
-
!o.literal && o.token && (s[o.token.val[0]] = o.deser(n.slice(a, a +
|
|
7213
|
+
const o = r[i], l = o.groups ? o.groups + 1 : 1;
|
|
7214
|
+
!o.literal && o.token && (s[o.token.val[0]] = o.deser(n.slice(a, a + l))), a += l;
|
|
7215
7215
|
}
|
|
7216
7216
|
return [n, s];
|
|
7217
7217
|
} else
|
|
@@ -7384,15 +7384,15 @@ function io(t, e) {
|
|
|
7384
7384
|
seconds: e.seconds,
|
|
7385
7385
|
milliseconds: e.milliseconds
|
|
7386
7386
|
}).as("milliseconds"), o = Qn(a);
|
|
7387
|
-
let [
|
|
7388
|
-
return i !== 0 && (
|
|
7387
|
+
let [l, u] = Hc(o, r, t.zone);
|
|
7388
|
+
return i !== 0 && (l += i, u = t.zone.offset(l)), { ts: l, o: u };
|
|
7389
7389
|
}
|
|
7390
7390
|
function ir(t, e, r, n, s, a) {
|
|
7391
7391
|
const { setZone: i, zone: o } = r;
|
|
7392
7392
|
if (t && Object.keys(t).length !== 0 || e) {
|
|
7393
|
-
const
|
|
7393
|
+
const l = e || o, u = F.fromObject(t, {
|
|
7394
7394
|
...r,
|
|
7395
|
-
zone:
|
|
7395
|
+
zone: l,
|
|
7396
7396
|
specificOffset: a
|
|
7397
7397
|
});
|
|
7398
7398
|
return i ? u : u.setZone(o);
|
|
@@ -7418,25 +7418,25 @@ function Ms(t, e, r) {
|
|
|
7418
7418
|
return s += ge(t.c.day), s;
|
|
7419
7419
|
}
|
|
7420
7420
|
function oo(t, e, r, n, s, a, i) {
|
|
7421
|
-
let o = !r || t.c.millisecond !== 0 || t.c.second !== 0,
|
|
7421
|
+
let o = !r || t.c.millisecond !== 0 || t.c.second !== 0, l = "";
|
|
7422
7422
|
switch (i) {
|
|
7423
7423
|
case "day":
|
|
7424
7424
|
case "month":
|
|
7425
7425
|
case "year":
|
|
7426
7426
|
break;
|
|
7427
7427
|
default:
|
|
7428
|
-
if (
|
|
7428
|
+
if (l += ge(t.c.hour), i === "hour") break;
|
|
7429
7429
|
if (e) {
|
|
7430
|
-
if (
|
|
7431
|
-
o && (
|
|
7430
|
+
if (l += ":", l += ge(t.c.minute), i === "minute") break;
|
|
7431
|
+
o && (l += ":", l += ge(t.c.second));
|
|
7432
7432
|
} else {
|
|
7433
|
-
if (
|
|
7434
|
-
o && (
|
|
7433
|
+
if (l += ge(t.c.minute), i === "minute") break;
|
|
7434
|
+
o && (l += ge(t.c.second));
|
|
7435
7435
|
}
|
|
7436
7436
|
if (i === "second") break;
|
|
7437
|
-
o && (!n || t.c.millisecond !== 0) && (
|
|
7437
|
+
o && (!n || t.c.millisecond !== 0) && (l += ".", l += ge(t.c.millisecond, 3));
|
|
7438
7438
|
}
|
|
7439
|
-
return s && (t.isOffsetFixed && t.offset === 0 && !a ?
|
|
7439
|
+
return s && (t.isOffsetFixed && t.offset === 0 && !a ? l += "Z" : t.o < 0 ? (l += "-", l += ge(Math.trunc(-t.o / 60)), l += ":", l += ge(Math.trunc(-t.o % 60))) : (l += "+", l += ge(Math.trunc(t.o / 60)), l += ":", l += ge(Math.trunc(t.o % 60)))), a && (l += "[" + t.zone.ianaName + "]"), l;
|
|
7440
7440
|
}
|
|
7441
7441
|
const Yc = {
|
|
7442
7442
|
month: 1,
|
|
@@ -7528,8 +7528,8 @@ function co(t, e) {
|
|
|
7528
7528
|
if (U(t.year))
|
|
7529
7529
|
s = de.now();
|
|
7530
7530
|
else {
|
|
7531
|
-
for (const
|
|
7532
|
-
U(t[
|
|
7531
|
+
for (const l of bn)
|
|
7532
|
+
U(t[l]) && (t[l] = Yc[l]);
|
|
7533
7533
|
const i = bc(t) || wc(t);
|
|
7534
7534
|
if (i)
|
|
7535
7535
|
return F.invalid(i);
|
|
@@ -7539,13 +7539,13 @@ function co(t, e) {
|
|
|
7539
7539
|
return new F({ ts: s, zone: r, loc: n, o: a });
|
|
7540
7540
|
}
|
|
7541
7541
|
function uo(t, e, r) {
|
|
7542
|
-
const n = U(r.round) ? !0 : r.round, s = U(r.rounding) ? "trunc" : r.rounding, a = (o,
|
|
7542
|
+
const n = U(r.round) ? !0 : r.round, s = U(r.rounding) ? "trunc" : r.rounding, a = (o, l) => (o = Ma(o, n || r.calendary ? 0 : 2, r.calendary ? "round" : s), e.loc.clone(r).relFormatter(r).format(o, l)), i = (o) => r.calendary ? e.hasSame(t, o) ? 0 : e.startOf(o).diff(t.startOf(o), o).get(o) : e.diff(t, o).get(o);
|
|
7543
7543
|
if (r.unit)
|
|
7544
7544
|
return a(i(r.unit), r.unit);
|
|
7545
7545
|
for (const o of r.units) {
|
|
7546
|
-
const
|
|
7547
|
-
if (Math.abs(
|
|
7548
|
-
return a(
|
|
7546
|
+
const l = i(o);
|
|
7547
|
+
if (Math.abs(l) >= 1)
|
|
7548
|
+
return a(l, o);
|
|
7549
7549
|
}
|
|
7550
7550
|
return a(t > e ? -0 : 0, r.units[r.units.length - 1]);
|
|
7551
7551
|
}
|
|
@@ -7606,8 +7606,8 @@ class F {
|
|
|
7606
7606
|
* @return {DateTime}
|
|
7607
7607
|
*/
|
|
7608
7608
|
static local() {
|
|
7609
|
-
const [e, r] = fo(arguments), [n, s, a, i, o,
|
|
7610
|
-
return co({ year: n, month: s, day: a, hour: i, minute: o, second:
|
|
7609
|
+
const [e, r] = fo(arguments), [n, s, a, i, o, l, u] = r;
|
|
7610
|
+
return co({ year: n, month: s, day: a, hour: i, minute: o, second: l, millisecond: u }, e);
|
|
7611
7611
|
}
|
|
7612
7612
|
/**
|
|
7613
7613
|
* Create a DateTime in UTC
|
|
@@ -7635,8 +7635,8 @@ class F {
|
|
|
7635
7635
|
* @return {DateTime}
|
|
7636
7636
|
*/
|
|
7637
7637
|
static utc() {
|
|
7638
|
-
const [e, r] = fo(arguments), [n, s, a, i, o,
|
|
7639
|
-
return e.zone = Ee.utcInstance, co({ year: n, month: s, day: a, hour: i, minute: o, second:
|
|
7638
|
+
const [e, r] = fo(arguments), [n, s, a, i, o, l, u] = r;
|
|
7639
|
+
return e.zone = Ee.utcInstance, co({ year: n, month: s, day: a, hour: i, minute: o, second: l, millisecond: u }, e);
|
|
7640
7640
|
}
|
|
7641
7641
|
/**
|
|
7642
7642
|
* Create a DateTime from a JavaScript Date object. Uses the default zone.
|
|
@@ -7736,7 +7736,7 @@ class F {
|
|
|
7736
7736
|
const n = Ct(r.zone, de.defaultZone);
|
|
7737
7737
|
if (!n.isValid)
|
|
7738
7738
|
return F.invalid(Ir(n));
|
|
7739
|
-
const s = ae.fromObject(r), a = Rn(e, lo), { minDaysInFirstWeek: i, startOfWeek: o } = qi(a, s),
|
|
7739
|
+
const s = ae.fromObject(r), a = Rn(e, lo), { minDaysInFirstWeek: i, startOfWeek: o } = qi(a, s), l = de.now(), u = U(r.specificOffset) ? n.offset(l) : r.specificOffset, f = !U(a.ordinal), d = !U(a.year), m = !U(a.month) || !U(a.day), p = d || m, y = a.weekYear || a.weekNumber;
|
|
7740
7740
|
if ((p || f) && y)
|
|
7741
7741
|
throw new cr(
|
|
7742
7742
|
"Can't mix weekYear/weekNumber units with year/month/day or ordinals"
|
|
@@ -7744,7 +7744,7 @@ class F {
|
|
|
7744
7744
|
if (m && f)
|
|
7745
7745
|
throw new cr("Can't mix ordinal dates with month/day");
|
|
7746
7746
|
const g = y || a.weekday && !p;
|
|
7747
|
-
let b, v, S = un(
|
|
7747
|
+
let b, v, S = un(l, u);
|
|
7748
7748
|
g ? (b = Vg, v = Fg, S = On(S, i, o)) : f ? (b = $g, v = Lg, S = Os(S)) : (b = bn, v = Yc);
|
|
7749
7749
|
let _ = !1;
|
|
7750
7750
|
for (const $ of b) {
|
|
@@ -7846,8 +7846,8 @@ class F {
|
|
|
7846
7846
|
locale: s,
|
|
7847
7847
|
numberingSystem: a,
|
|
7848
7848
|
defaultToEN: !0
|
|
7849
|
-
}), [o,
|
|
7850
|
-
return f ? F.invalid(f) : ir(o,
|
|
7849
|
+
}), [o, l, u, f] = Pg(i, e, r);
|
|
7850
|
+
return f ? F.invalid(f) : ir(o, l, n, `format ${r}`, e, u);
|
|
7851
7851
|
}
|
|
7852
7852
|
/**
|
|
7853
7853
|
* @deprecated use fromFormat instead
|
|
@@ -8224,8 +8224,8 @@ class F {
|
|
|
8224
8224
|
const e = 864e5, r = 6e4, n = Qn(this.c), s = this.zone.offset(n - e), a = this.zone.offset(n + e), i = this.zone.offset(n - s * r), o = this.zone.offset(n - a * r);
|
|
8225
8225
|
if (i === o)
|
|
8226
8226
|
return [this];
|
|
8227
|
-
const
|
|
8228
|
-
return f.hour === d.hour && f.minute === d.minute && f.second === d.second && f.millisecond === d.millisecond ? [Vt(this, { ts:
|
|
8227
|
+
const l = n - i * r, u = n - o * r, f = un(l, i), d = un(u, o);
|
|
8228
|
+
return f.hour === d.hour && f.minute === d.minute && f.second === d.second && f.millisecond === d.millisecond ? [Vt(this, { ts: l }), Vt(this, { ts: u })] : [this];
|
|
8229
8229
|
}
|
|
8230
8230
|
/**
|
|
8231
8231
|
* Returns true if this DateTime is in a leap year, false otherwise
|
|
@@ -8367,12 +8367,12 @@ class F {
|
|
|
8367
8367
|
*/
|
|
8368
8368
|
set(e) {
|
|
8369
8369
|
if (!this.isValid) return this;
|
|
8370
|
-
const r = Rn(e, lo), { minDaysInFirstWeek: n, startOfWeek: s } = qi(r, this.loc), a = !U(r.weekYear) || !U(r.weekNumber) || !U(r.weekday), i = !U(r.ordinal), o = !U(r.year),
|
|
8370
|
+
const r = Rn(e, lo), { minDaysInFirstWeek: n, startOfWeek: s } = qi(r, this.loc), a = !U(r.weekYear) || !U(r.weekNumber) || !U(r.weekday), i = !U(r.ordinal), o = !U(r.year), l = !U(r.month) || !U(r.day), u = o || l, f = r.weekYear || r.weekNumber;
|
|
8371
8371
|
if ((u || i) && f)
|
|
8372
8372
|
throw new cr(
|
|
8373
8373
|
"Can't mix weekYear/weekNumber units with year/month/day or ordinals"
|
|
8374
8374
|
);
|
|
8375
|
-
if (
|
|
8375
|
+
if (l && i)
|
|
8376
8376
|
throw new cr("Can't mix ordinal dates with month/day");
|
|
8377
8377
|
let d;
|
|
8378
8378
|
a ? d = Hi(
|
|
@@ -8559,8 +8559,8 @@ class F {
|
|
|
8559
8559
|
return null;
|
|
8560
8560
|
i = wn(i);
|
|
8561
8561
|
const o = e === "extended";
|
|
8562
|
-
let
|
|
8563
|
-
return bn.indexOf(i) >= 3 && (
|
|
8562
|
+
let l = Ms(this, o, i);
|
|
8563
|
+
return bn.indexOf(i) >= 3 && (l += "T"), l += oo(
|
|
8564
8564
|
this,
|
|
8565
8565
|
o,
|
|
8566
8566
|
r,
|
|
@@ -8568,7 +8568,7 @@ class F {
|
|
|
8568
8568
|
s,
|
|
8569
8569
|
a,
|
|
8570
8570
|
i
|
|
8571
|
-
),
|
|
8571
|
+
), l;
|
|
8572
8572
|
}
|
|
8573
8573
|
/**
|
|
8574
8574
|
* Returns an ISO 8601-compliant string representation of this DateTime's date component
|
|
@@ -8780,7 +8780,7 @@ class F {
|
|
|
8780
8780
|
diff(e, r = "milliseconds", n = {}) {
|
|
8781
8781
|
if (!this.isValid || !e.isValid)
|
|
8782
8782
|
return te.invalid("created by diffing an invalid DateTime");
|
|
8783
|
-
const s = { locale: this.locale, numberingSystem: this.numberingSystem, ...n }, a = bp(r).map(te.normalizeUnit), i = e.valueOf() > this.valueOf(), o = i ? this : e,
|
|
8783
|
+
const s = { locale: this.locale, numberingSystem: this.numberingSystem, ...n }, a = bp(r).map(te.normalizeUnit), i = e.valueOf() > this.valueOf(), o = i ? this : e, l = i ? e : this, u = kg(o, l, a, s);
|
|
8784
8784
|
return i ? u.negate() : u;
|
|
8785
8785
|
}
|
|
8786
8786
|
/**
|
|
@@ -8965,10 +8965,10 @@ class F {
|
|
|
8965
8965
|
throw new Se(
|
|
8966
8966
|
`fromFormatParser called with a locale of ${i}, but the format parser was created for ${r.locale}`
|
|
8967
8967
|
);
|
|
8968
|
-
const { result: o, zone:
|
|
8968
|
+
const { result: o, zone: l, specificOffset: u, invalidReason: f } = r.explainFromTokens(e);
|
|
8969
8969
|
return f ? F.invalid(f) : ir(
|
|
8970
8970
|
o,
|
|
8971
|
-
|
|
8971
|
+
l,
|
|
8972
8972
|
n,
|
|
8973
8973
|
`format ${r.format}`,
|
|
8974
8974
|
e,
|
|
@@ -9206,7 +9206,7 @@ const Va = h.forwardRef(
|
|
|
9206
9206
|
min: a,
|
|
9207
9207
|
max: i,
|
|
9208
9208
|
className: o,
|
|
9209
|
-
isInvalid:
|
|
9209
|
+
isInvalid: l,
|
|
9210
9210
|
timeZone: u
|
|
9211
9211
|
}, f) => {
|
|
9212
9212
|
const d = h.useMemo(() => rs(u), [u]), [m, p] = h.useState(!1), [y, g] = h.useState(e ?? null), [b, v] = h.useState(() => {
|
|
@@ -9280,7 +9280,7 @@ const Va = h.forwardRef(
|
|
|
9280
9280
|
for (let A = 0; A < H; A++) V.push(null);
|
|
9281
9281
|
for (let A = 1; A <= L; A++) V.push(A);
|
|
9282
9282
|
return /* @__PURE__ */ w($m, { open: m, onOpenChange: p, children: [
|
|
9283
|
-
/* @__PURE__ */
|
|
9283
|
+
/* @__PURE__ */ c(Wm, { asChild: !0, disabled: n, children: /* @__PURE__ */ w(
|
|
9284
9284
|
"button",
|
|
9285
9285
|
{
|
|
9286
9286
|
ref: f,
|
|
@@ -9291,18 +9291,18 @@ const Va = h.forwardRef(
|
|
|
9291
9291
|
"disabled:cursor-not-allowed disabled:opacity-50",
|
|
9292
9292
|
"dark:bg-input/30 dark:hover:bg-input/50",
|
|
9293
9293
|
!ie && "text-muted-foreground",
|
|
9294
|
-
|
|
9294
|
+
l && "border-destructive focus-visible:border-destructive focus-visible:ring-destructive/20 dark:border-destructive/50 dark:focus-visible:ring-destructive/40",
|
|
9295
9295
|
o
|
|
9296
9296
|
),
|
|
9297
9297
|
"aria-haspopup": "dialog",
|
|
9298
9298
|
"aria-expanded": m,
|
|
9299
9299
|
children: [
|
|
9300
|
-
/* @__PURE__ */
|
|
9301
|
-
/* @__PURE__ */
|
|
9300
|
+
/* @__PURE__ */ c("span", { children: ie && O ? Hg(O) : s }),
|
|
9301
|
+
/* @__PURE__ */ c(ad, { className: "h-4 w-4 shrink-0 opacity-50" })
|
|
9302
9302
|
]
|
|
9303
9303
|
}
|
|
9304
9304
|
) }),
|
|
9305
|
-
/* @__PURE__ */
|
|
9305
|
+
/* @__PURE__ */ c(zm, { children: /* @__PURE__ */ w(
|
|
9306
9306
|
Zm,
|
|
9307
9307
|
{
|
|
9308
9308
|
ref: z,
|
|
@@ -9320,14 +9320,14 @@ const Va = h.forwardRef(
|
|
|
9320
9320
|
"aria-label": "Calendario",
|
|
9321
9321
|
children: [
|
|
9322
9322
|
/* @__PURE__ */ w("div", { className: "flex items-center justify-between pb-2", children: [
|
|
9323
|
-
/* @__PURE__ */
|
|
9323
|
+
/* @__PURE__ */ c(
|
|
9324
9324
|
"button",
|
|
9325
9325
|
{
|
|
9326
9326
|
type: "button",
|
|
9327
9327
|
className: "inline-flex h-7 w-7 items-center justify-center rounded-md border border-border bg-background text-sm transition-colors hover:bg-muted focus-visible:outline-none focus-visible:ring-3 focus-visible:ring-ring/50",
|
|
9328
9328
|
onClick: () => B(-1),
|
|
9329
9329
|
"aria-label": "Mes anterior",
|
|
9330
|
-
children: /* @__PURE__ */
|
|
9330
|
+
children: /* @__PURE__ */ c(Zo, { className: "h-4 w-4" })
|
|
9331
9331
|
}
|
|
9332
9332
|
),
|
|
9333
9333
|
/* @__PURE__ */ w("span", { className: "text-sm font-medium text-foreground", children: [
|
|
@@ -9335,18 +9335,18 @@ const Va = h.forwardRef(
|
|
|
9335
9335
|
" ",
|
|
9336
9336
|
Q
|
|
9337
9337
|
] }),
|
|
9338
|
-
/* @__PURE__ */
|
|
9338
|
+
/* @__PURE__ */ c(
|
|
9339
9339
|
"button",
|
|
9340
9340
|
{
|
|
9341
9341
|
type: "button",
|
|
9342
9342
|
className: "inline-flex h-7 w-7 items-center justify-center rounded-md border border-border bg-background text-sm transition-colors hover:bg-muted focus-visible:outline-none focus-visible:ring-3 focus-visible:ring-ring/50",
|
|
9343
9343
|
onClick: () => B(1),
|
|
9344
9344
|
"aria-label": "Mes siguiente",
|
|
9345
|
-
children: /* @__PURE__ */
|
|
9345
|
+
children: /* @__PURE__ */ c(Wn, { className: "h-4 w-4" })
|
|
9346
9346
|
}
|
|
9347
9347
|
)
|
|
9348
9348
|
] }),
|
|
9349
|
-
/* @__PURE__ */
|
|
9349
|
+
/* @__PURE__ */ c("div", { className: "grid grid-cols-7 gap-1 pb-1", role: "row", children: Zg.map((A) => /* @__PURE__ */ c(
|
|
9350
9350
|
"span",
|
|
9351
9351
|
{
|
|
9352
9352
|
className: "flex h-8 w-8 items-center justify-center text-[11px] font-medium uppercase tracking-wide text-muted-foreground",
|
|
@@ -9355,11 +9355,11 @@ const Va = h.forwardRef(
|
|
|
9355
9355
|
},
|
|
9356
9356
|
A
|
|
9357
9357
|
)) }),
|
|
9358
|
-
/* @__PURE__ */
|
|
9358
|
+
/* @__PURE__ */ c("div", { className: "grid grid-cols-7 gap-1", role: "grid", children: V.map((A, ee) => {
|
|
9359
9359
|
if (A === null)
|
|
9360
|
-
return /* @__PURE__ */
|
|
9360
|
+
return /* @__PURE__ */ c("span", { className: "h-8 w-8" }, `empty-${ee}`);
|
|
9361
9361
|
const Z = b.set({ day: A }).startOf("day"), oe = O ? Ps(Z, O) : !1, ce = Ps(Z, W), ve = Fs(Z, E, M), Te = S ? Ps(Z, S) : !1;
|
|
9362
|
-
return /* @__PURE__ */
|
|
9362
|
+
return /* @__PURE__ */ c(
|
|
9363
9363
|
"button",
|
|
9364
9364
|
{
|
|
9365
9365
|
type: "button",
|
|
@@ -9397,18 +9397,18 @@ var ns = "Dialog", [qc] = Un(ns), [Yg, et] = qc(ns), Gc = (t) => {
|
|
|
9397
9397
|
defaultOpen: s,
|
|
9398
9398
|
onOpenChange: a,
|
|
9399
9399
|
modal: i = !0
|
|
9400
|
-
} = t, o = h.useRef(null),
|
|
9400
|
+
} = t, o = h.useRef(null), l = h.useRef(null), [u, f] = Ta({
|
|
9401
9401
|
prop: n,
|
|
9402
9402
|
defaultProp: s ?? !1,
|
|
9403
9403
|
onChange: a,
|
|
9404
9404
|
caller: ns
|
|
9405
9405
|
});
|
|
9406
|
-
return /* @__PURE__ */
|
|
9406
|
+
return /* @__PURE__ */ c(
|
|
9407
9407
|
Yg,
|
|
9408
9408
|
{
|
|
9409
9409
|
scope: e,
|
|
9410
9410
|
triggerRef: o,
|
|
9411
|
-
contentRef:
|
|
9411
|
+
contentRef: l,
|
|
9412
9412
|
contentId: mn(),
|
|
9413
9413
|
titleId: mn(),
|
|
9414
9414
|
descriptionId: mn(),
|
|
@@ -9424,7 +9424,7 @@ Gc.displayName = ns;
|
|
|
9424
9424
|
var Jc = "DialogTrigger", Xc = h.forwardRef(
|
|
9425
9425
|
(t, e) => {
|
|
9426
9426
|
const { __scopeDialog: r, ...n } = t, s = et(Jc, r), a = $e(e, s.triggerRef);
|
|
9427
|
-
return /* @__PURE__ */
|
|
9427
|
+
return /* @__PURE__ */ c(
|
|
9428
9428
|
_e.button,
|
|
9429
9429
|
{
|
|
9430
9430
|
type: "button",
|
|
@@ -9444,13 +9444,13 @@ var $a = "DialogPortal", [qg, Kc] = qc($a, {
|
|
|
9444
9444
|
forceMount: void 0
|
|
9445
9445
|
}), Qc = (t) => {
|
|
9446
9446
|
const { __scopeDialog: e, forceMount: r, children: n, container: s } = t, a = et($a, e);
|
|
9447
|
-
return /* @__PURE__ */
|
|
9447
|
+
return /* @__PURE__ */ c(qg, { scope: e, forceMount: r, children: h.Children.map(n, (i) => /* @__PURE__ */ c(Cr, { present: r || a.open, children: /* @__PURE__ */ c(_a, { asChild: !0, container: s, children: i }) })) });
|
|
9448
9448
|
};
|
|
9449
9449
|
Qc.displayName = $a;
|
|
9450
9450
|
var An = "DialogOverlay", eu = h.forwardRef(
|
|
9451
9451
|
(t, e) => {
|
|
9452
9452
|
const r = Kc(An, t.__scopeDialog), { forceMount: n = r.forceMount, ...s } = t, a = et(An, t.__scopeDialog);
|
|
9453
|
-
return a.modal ? /* @__PURE__ */
|
|
9453
|
+
return a.modal ? /* @__PURE__ */ c(Cr, { present: n || a.open, children: /* @__PURE__ */ c(Jg, { ...s, ref: e }) }) : null;
|
|
9454
9454
|
}
|
|
9455
9455
|
);
|
|
9456
9456
|
eu.displayName = An;
|
|
@@ -9460,7 +9460,7 @@ var Gg = /* @__PURE__ */ Zn("DialogOverlay.RemoveScroll"), Jg = h.forwardRef(
|
|
|
9460
9460
|
return (
|
|
9461
9461
|
// Make sure `Content` is scrollable even when it doesn't live inside `RemoveScroll`
|
|
9462
9462
|
// ie. when `Overlay` and `Content` are siblings
|
|
9463
|
-
/* @__PURE__ */
|
|
9463
|
+
/* @__PURE__ */ c(Ea, { as: Gg, allowPinchZoom: !0, shards: [s.contentRef], children: /* @__PURE__ */ c(
|
|
9464
9464
|
_e.div,
|
|
9465
9465
|
{
|
|
9466
9466
|
"data-state": za(s.open),
|
|
@@ -9474,7 +9474,7 @@ var Gg = /* @__PURE__ */ Zn("DialogOverlay.RemoveScroll"), Jg = h.forwardRef(
|
|
|
9474
9474
|
), jt = "DialogContent", tu = h.forwardRef(
|
|
9475
9475
|
(t, e) => {
|
|
9476
9476
|
const r = Kc(jt, t.__scopeDialog), { forceMount: n = r.forceMount, ...s } = t, a = et(jt, t.__scopeDialog);
|
|
9477
|
-
return /* @__PURE__ */
|
|
9477
|
+
return /* @__PURE__ */ c(Cr, { present: n || a.open, children: a.modal ? /* @__PURE__ */ c(Xg, { ...s, ref: e }) : /* @__PURE__ */ c(Kg, { ...s, ref: e }) });
|
|
9478
9478
|
}
|
|
9479
9479
|
);
|
|
9480
9480
|
tu.displayName = jt;
|
|
@@ -9484,7 +9484,7 @@ var Xg = h.forwardRef(
|
|
|
9484
9484
|
return h.useEffect(() => {
|
|
9485
9485
|
const a = n.current;
|
|
9486
9486
|
if (a) return Ol(a);
|
|
9487
|
-
}, []), /* @__PURE__ */
|
|
9487
|
+
}, []), /* @__PURE__ */ c(
|
|
9488
9488
|
ru,
|
|
9489
9489
|
{
|
|
9490
9490
|
...t,
|
|
@@ -9508,7 +9508,7 @@ var Xg = h.forwardRef(
|
|
|
9508
9508
|
), Kg = h.forwardRef(
|
|
9509
9509
|
(t, e) => {
|
|
9510
9510
|
const r = et(jt, t.__scopeDialog), n = h.useRef(!1), s = h.useRef(!1);
|
|
9511
|
-
return /* @__PURE__ */
|
|
9511
|
+
return /* @__PURE__ */ c(
|
|
9512
9512
|
ru,
|
|
9513
9513
|
{
|
|
9514
9514
|
...t,
|
|
@@ -9528,9 +9528,9 @@ var Xg = h.forwardRef(
|
|
|
9528
9528
|
}
|
|
9529
9529
|
), ru = h.forwardRef(
|
|
9530
9530
|
(t, e) => {
|
|
9531
|
-
const { __scopeDialog: r, trapFocus: n, onOpenAutoFocus: s, onCloseAutoFocus: a, ...i } = t, o = et(jt, r),
|
|
9531
|
+
const { __scopeDialog: r, trapFocus: n, onOpenAutoFocus: s, onCloseAutoFocus: a, ...i } = t, o = et(jt, r), l = h.useRef(null), u = $e(e, l);
|
|
9532
9532
|
return rl(), /* @__PURE__ */ w($s, { children: [
|
|
9533
|
-
/* @__PURE__ */
|
|
9533
|
+
/* @__PURE__ */ c(
|
|
9534
9534
|
ya,
|
|
9535
9535
|
{
|
|
9536
9536
|
asChild: !0,
|
|
@@ -9538,7 +9538,7 @@ var Xg = h.forwardRef(
|
|
|
9538
9538
|
trapped: n,
|
|
9539
9539
|
onMountAutoFocus: s,
|
|
9540
9540
|
onUnmountAutoFocus: a,
|
|
9541
|
-
children: /* @__PURE__ */
|
|
9541
|
+
children: /* @__PURE__ */ c(
|
|
9542
9542
|
ga,
|
|
9543
9543
|
{
|
|
9544
9544
|
role: "dialog",
|
|
@@ -9554,29 +9554,29 @@ var Xg = h.forwardRef(
|
|
|
9554
9554
|
}
|
|
9555
9555
|
),
|
|
9556
9556
|
/* @__PURE__ */ w($s, { children: [
|
|
9557
|
-
/* @__PURE__ */
|
|
9558
|
-
/* @__PURE__ */
|
|
9557
|
+
/* @__PURE__ */ c(Qg, { titleId: o.titleId }),
|
|
9558
|
+
/* @__PURE__ */ c(ty, { contentRef: l, descriptionId: o.descriptionId })
|
|
9559
9559
|
] })
|
|
9560
9560
|
] });
|
|
9561
9561
|
}
|
|
9562
9562
|
), Wa = "DialogTitle", nu = h.forwardRef(
|
|
9563
9563
|
(t, e) => {
|
|
9564
9564
|
const { __scopeDialog: r, ...n } = t, s = et(Wa, r);
|
|
9565
|
-
return /* @__PURE__ */
|
|
9565
|
+
return /* @__PURE__ */ c(_e.h2, { id: s.titleId, ...n, ref: e });
|
|
9566
9566
|
}
|
|
9567
9567
|
);
|
|
9568
9568
|
nu.displayName = Wa;
|
|
9569
9569
|
var su = "DialogDescription", au = h.forwardRef(
|
|
9570
9570
|
(t, e) => {
|
|
9571
9571
|
const { __scopeDialog: r, ...n } = t, s = et(su, r);
|
|
9572
|
-
return /* @__PURE__ */
|
|
9572
|
+
return /* @__PURE__ */ c(_e.p, { id: s.descriptionId, ...n, ref: e });
|
|
9573
9573
|
}
|
|
9574
9574
|
);
|
|
9575
9575
|
au.displayName = su;
|
|
9576
9576
|
var iu = "DialogClose", ou = h.forwardRef(
|
|
9577
9577
|
(t, e) => {
|
|
9578
9578
|
const { __scopeDialog: r, ...n } = t, s = et(iu, r);
|
|
9579
|
-
return /* @__PURE__ */
|
|
9579
|
+
return /* @__PURE__ */ c(
|
|
9580
9580
|
_e.button,
|
|
9581
9581
|
{
|
|
9582
9582
|
type: "button",
|
|
@@ -9611,7 +9611,7 @@ For more information, see https://radix-ui.com/primitives/docs/components/${e.do
|
|
|
9611
9611
|
e && s && (document.getElementById(e) || console.warn(n));
|
|
9612
9612
|
}, [n, t, e]), null;
|
|
9613
9613
|
}, uu = Gc, du = Xc, fu = Qc, ss = eu, as = tu, is = nu, os = au, ls = ou;
|
|
9614
|
-
const ry = uu, B0 = du, ny = fu, U0 = ls, hu = h.forwardRef(({ className: t, ...e }, r) => /* @__PURE__ */
|
|
9614
|
+
const ry = uu, B0 = du, ny = fu, U0 = ls, hu = h.forwardRef(({ className: t, ...e }, r) => /* @__PURE__ */ c(
|
|
9615
9615
|
ss,
|
|
9616
9616
|
{
|
|
9617
9617
|
ref: r,
|
|
@@ -9632,7 +9632,7 @@ const sy = {
|
|
|
9632
9632
|
"2xl": "sm:max-w-2xl",
|
|
9633
9633
|
full: "sm:max-w-full"
|
|
9634
9634
|
}, mu = h.forwardRef(({ className: t, children: e, hideClose: r, size: n = "md", ...s }, a) => /* @__PURE__ */ w(ny, { children: [
|
|
9635
|
-
/* @__PURE__ */
|
|
9635
|
+
/* @__PURE__ */ c(hu, {}),
|
|
9636
9636
|
/* @__PURE__ */ w(
|
|
9637
9637
|
as,
|
|
9638
9638
|
{
|
|
@@ -9648,7 +9648,7 @@ const sy = {
|
|
|
9648
9648
|
...s,
|
|
9649
9649
|
children: [
|
|
9650
9650
|
e,
|
|
9651
|
-
!r && /* @__PURE__ */
|
|
9651
|
+
!r && /* @__PURE__ */ c(ls, { asChild: !0, children: /* @__PURE__ */ w(
|
|
9652
9652
|
Ue,
|
|
9653
9653
|
{
|
|
9654
9654
|
variant: "ghost",
|
|
@@ -9656,8 +9656,8 @@ const sy = {
|
|
|
9656
9656
|
className: "absolute right-2 top-2",
|
|
9657
9657
|
"aria-label": "Cerrar",
|
|
9658
9658
|
children: [
|
|
9659
|
-
/* @__PURE__ */
|
|
9660
|
-
/* @__PURE__ */
|
|
9659
|
+
/* @__PURE__ */ c(Ur, { className: "h-4 w-4" }),
|
|
9660
|
+
/* @__PURE__ */ c("span", { className: "sr-only", children: "Cerrar" })
|
|
9661
9661
|
]
|
|
9662
9662
|
}
|
|
9663
9663
|
) })
|
|
@@ -9666,9 +9666,9 @@ const sy = {
|
|
|
9666
9666
|
)
|
|
9667
9667
|
] }));
|
|
9668
9668
|
mu.displayName = as.displayName;
|
|
9669
|
-
const pu = ({ className: t, ...e }) => /* @__PURE__ */
|
|
9669
|
+
const pu = ({ className: t, ...e }) => /* @__PURE__ */ c("div", { className: C("flex flex-col gap-2", t), ...e });
|
|
9670
9670
|
pu.displayName = "DialogHeader";
|
|
9671
|
-
const gu = ({ className: t, ...e }) => /* @__PURE__ */
|
|
9671
|
+
const gu = ({ className: t, ...e }) => /* @__PURE__ */ c(
|
|
9672
9672
|
"div",
|
|
9673
9673
|
{
|
|
9674
9674
|
className: C(
|
|
@@ -9679,7 +9679,7 @@ const gu = ({ className: t, ...e }) => /* @__PURE__ */ l(
|
|
|
9679
9679
|
}
|
|
9680
9680
|
);
|
|
9681
9681
|
gu.displayName = "DialogFooter";
|
|
9682
|
-
const yu = h.forwardRef(({ className: t, ...e }, r) => /* @__PURE__ */
|
|
9682
|
+
const yu = h.forwardRef(({ className: t, ...e }, r) => /* @__PURE__ */ c(
|
|
9683
9683
|
is,
|
|
9684
9684
|
{
|
|
9685
9685
|
ref: r,
|
|
@@ -9688,7 +9688,7 @@ const yu = h.forwardRef(({ className: t, ...e }, r) => /* @__PURE__ */ l(
|
|
|
9688
9688
|
}
|
|
9689
9689
|
));
|
|
9690
9690
|
yu.displayName = is.displayName;
|
|
9691
|
-
const vu = h.forwardRef(({ className: t, ...e }, r) => /* @__PURE__ */
|
|
9691
|
+
const vu = h.forwardRef(({ className: t, ...e }, r) => /* @__PURE__ */ c(
|
|
9692
9692
|
os,
|
|
9693
9693
|
{
|
|
9694
9694
|
ref: r,
|
|
@@ -9697,7 +9697,7 @@ const vu = h.forwardRef(({ className: t, ...e }, r) => /* @__PURE__ */ l(
|
|
|
9697
9697
|
}
|
|
9698
9698
|
));
|
|
9699
9699
|
vu.displayName = os.displayName;
|
|
9700
|
-
const j0 = fe.Root, H0 = fe.Trigger, Y0 = fe.Group, q0 = fe.Portal, G0 = fe.Sub, J0 = fe.RadioGroup, ay = h.forwardRef(({ className: t, sideOffset: e = 6, ...r }, n) => /* @__PURE__ */
|
|
9700
|
+
const j0 = fe.Root, H0 = fe.Trigger, Y0 = fe.Group, q0 = fe.Portal, G0 = fe.Sub, J0 = fe.RadioGroup, ay = h.forwardRef(({ className: t, sideOffset: e = 6, ...r }, n) => /* @__PURE__ */ c(fe.Portal, { children: /* @__PURE__ */ c(
|
|
9701
9701
|
fe.Content,
|
|
9702
9702
|
{
|
|
9703
9703
|
ref: n,
|
|
@@ -9727,7 +9727,7 @@ const iy = h.forwardRef(({ className: t, inset: e, icon: r, destructive: n, chil
|
|
|
9727
9727
|
),
|
|
9728
9728
|
...a,
|
|
9729
9729
|
children: [
|
|
9730
|
-
r && /* @__PURE__ */
|
|
9730
|
+
r && /* @__PURE__ */ c("span", { className: "h-4 w-4 shrink-0 [&>svg]:h-4 [&>svg]:w-4", children: r }),
|
|
9731
9731
|
s
|
|
9732
9732
|
]
|
|
9733
9733
|
}
|
|
@@ -9746,7 +9746,7 @@ const oy = h.forwardRef(({ className: t, children: e, checked: r, ...n }, s) =>
|
|
|
9746
9746
|
checked: r,
|
|
9747
9747
|
...n,
|
|
9748
9748
|
children: [
|
|
9749
|
-
/* @__PURE__ */
|
|
9749
|
+
/* @__PURE__ */ c("span", { className: "absolute right-2 flex h-4 w-4 items-center justify-center", children: /* @__PURE__ */ c(fe.ItemIndicator, { children: /* @__PURE__ */ c($n, { className: "h-4 w-4" }) }) }),
|
|
9750
9750
|
e
|
|
9751
9751
|
]
|
|
9752
9752
|
}
|
|
@@ -9764,13 +9764,13 @@ const ly = h.forwardRef(({ className: t, children: e, ...r }, n) => /* @__PURE__
|
|
|
9764
9764
|
),
|
|
9765
9765
|
...r,
|
|
9766
9766
|
children: [
|
|
9767
|
-
/* @__PURE__ */
|
|
9767
|
+
/* @__PURE__ */ c("span", { className: "absolute right-2 flex h-4 w-4 items-center justify-center", children: /* @__PURE__ */ c(fe.ItemIndicator, { children: /* @__PURE__ */ c(id, { className: "h-2.5 w-2.5 fill-current" }) }) }),
|
|
9768
9768
|
e
|
|
9769
9769
|
]
|
|
9770
9770
|
}
|
|
9771
9771
|
));
|
|
9772
9772
|
ly.displayName = fe.RadioItem.displayName;
|
|
9773
|
-
const cy = h.forwardRef(({ className: t, inset: e, ...r }, n) => /* @__PURE__ */
|
|
9773
|
+
const cy = h.forwardRef(({ className: t, inset: e, ...r }, n) => /* @__PURE__ */ c(
|
|
9774
9774
|
fe.Label,
|
|
9775
9775
|
{
|
|
9776
9776
|
ref: n,
|
|
@@ -9783,7 +9783,7 @@ const cy = h.forwardRef(({ className: t, inset: e, ...r }, n) => /* @__PURE__ */
|
|
|
9783
9783
|
}
|
|
9784
9784
|
));
|
|
9785
9785
|
cy.displayName = fe.Label.displayName;
|
|
9786
|
-
const uy = h.forwardRef(({ className: t, ...e }, r) => /* @__PURE__ */
|
|
9786
|
+
const uy = h.forwardRef(({ className: t, ...e }, r) => /* @__PURE__ */ c(
|
|
9787
9787
|
fe.Separator,
|
|
9788
9788
|
{
|
|
9789
9789
|
ref: r,
|
|
@@ -9805,12 +9805,12 @@ const dy = h.forwardRef(({ className: t, inset: e, children: r, ...n }, s) => /*
|
|
|
9805
9805
|
...n,
|
|
9806
9806
|
children: [
|
|
9807
9807
|
r,
|
|
9808
|
-
/* @__PURE__ */
|
|
9808
|
+
/* @__PURE__ */ c(Wn, { className: "ml-auto h-4 w-4" })
|
|
9809
9809
|
]
|
|
9810
9810
|
}
|
|
9811
9811
|
));
|
|
9812
9812
|
dy.displayName = fe.SubTrigger.displayName;
|
|
9813
|
-
const fy = h.forwardRef(({ className: t, ...e }, r) => /* @__PURE__ */
|
|
9813
|
+
const fy = h.forwardRef(({ className: t, ...e }, r) => /* @__PURE__ */ c(
|
|
9814
9814
|
fe.SubContent,
|
|
9815
9815
|
{
|
|
9816
9816
|
ref: r,
|
|
@@ -9828,7 +9828,7 @@ fy.displayName = fe.SubContent.displayName;
|
|
|
9828
9828
|
const hy = ({
|
|
9829
9829
|
className: t,
|
|
9830
9830
|
...e
|
|
9831
|
-
}) => /* @__PURE__ */
|
|
9831
|
+
}) => /* @__PURE__ */ c(
|
|
9832
9832
|
"span",
|
|
9833
9833
|
{
|
|
9834
9834
|
className: C("ml-auto text-xs tracking-widest text-muted-foreground", t),
|
|
@@ -9850,7 +9850,7 @@ function Za({
|
|
|
9850
9850
|
accept: a,
|
|
9851
9851
|
files: i,
|
|
9852
9852
|
defaultFiles: o = [],
|
|
9853
|
-
onFilesChange:
|
|
9853
|
+
onFilesChange: l,
|
|
9854
9854
|
id: u,
|
|
9855
9855
|
name: f,
|
|
9856
9856
|
allowDrop: d = !1,
|
|
@@ -9862,7 +9862,7 @@ function Za({
|
|
|
9862
9862
|
}) {
|
|
9863
9863
|
const v = zo(), S = u ?? v, _ = e ? `${S}-helper` : void 0, N = r ? `${S}-error` : void 0, x = [_, N].filter(Boolean).join(" ") || void 0, O = Ku(null), [E, M] = Zt(o), [z, $] = Zt(!1), B = i !== void 0, j = B ? i : E, J = (V) => {
|
|
9864
9864
|
const A = s ? V : V.slice(0, 1);
|
|
9865
|
-
B || M(A),
|
|
9865
|
+
B || M(A), l?.(A);
|
|
9866
9866
|
}, Q = (V) => {
|
|
9867
9867
|
if (!s) return V.slice(0, 1);
|
|
9868
9868
|
const A = new Map(j.map((ee) => [or(ee), ee]));
|
|
@@ -9888,8 +9888,8 @@ function Za({
|
|
|
9888
9888
|
}, [W]);
|
|
9889
9889
|
const ie = !!b && j.length === 0;
|
|
9890
9890
|
return /* @__PURE__ */ w("div", { className: C("flex flex-col gap-2", n && "pointer-events-none opacity-60"), children: [
|
|
9891
|
-
t && /* @__PURE__ */
|
|
9892
|
-
/* @__PURE__ */
|
|
9891
|
+
t && /* @__PURE__ */ c("label", { htmlFor: S, className: "text-sm font-medium text-foreground", children: t }),
|
|
9892
|
+
/* @__PURE__ */ c(
|
|
9893
9893
|
"input",
|
|
9894
9894
|
{
|
|
9895
9895
|
ref: O,
|
|
@@ -9924,10 +9924,10 @@ function Za({
|
|
|
9924
9924
|
onDragLeave: () => d && $(!1),
|
|
9925
9925
|
onDrop: H,
|
|
9926
9926
|
children: [
|
|
9927
|
-
/* @__PURE__ */
|
|
9927
|
+
/* @__PURE__ */ c(od, { className: "h-8 w-8 text-muted-foreground" }),
|
|
9928
9928
|
/* @__PURE__ */ w("div", { children: [
|
|
9929
|
-
/* @__PURE__ */
|
|
9930
|
-
/* @__PURE__ */
|
|
9929
|
+
/* @__PURE__ */ c("p", { className: "text-sm font-medium text-foreground", children: s ? "Seleccionar archivos" : "Seleccionar archivo" }),
|
|
9930
|
+
/* @__PURE__ */ c("p", { className: "mt-0.5 text-xs text-muted-foreground", children: m }),
|
|
9931
9931
|
a && /* @__PURE__ */ w("p", { className: "mt-0.5 text-xs text-muted-foreground", children: [
|
|
9932
9932
|
"Acepta: ",
|
|
9933
9933
|
a
|
|
@@ -9936,37 +9936,37 @@ function Za({
|
|
|
9936
9936
|
]
|
|
9937
9937
|
}
|
|
9938
9938
|
),
|
|
9939
|
-
ie && /* @__PURE__ */
|
|
9940
|
-
W.length > 0 && /* @__PURE__ */
|
|
9939
|
+
ie && /* @__PURE__ */ c("div", { className: "mt-2 flex gap-2", children: /* @__PURE__ */ c("div", { className: "h-16 w-16 overflow-hidden rounded-lg bg-muted ring-1 ring-foreground/10", children: /* @__PURE__ */ c("img", { src: b, alt: "Logo actual", className: "h-full w-full object-cover" }) }) }),
|
|
9940
|
+
W.length > 0 && /* @__PURE__ */ c("div", { className: "mt-2 flex flex-wrap gap-2", children: W.map((V) => /* @__PURE__ */ c(
|
|
9941
9941
|
"div",
|
|
9942
9942
|
{
|
|
9943
9943
|
className: "h-16 w-16 overflow-hidden rounded-lg bg-muted ring-1 ring-foreground/10",
|
|
9944
|
-
children: /* @__PURE__ */
|
|
9944
|
+
children: /* @__PURE__ */ c("img", { src: V.url, alt: V.file.name, className: "h-full w-full object-cover" })
|
|
9945
9945
|
},
|
|
9946
9946
|
V.key
|
|
9947
9947
|
)) }),
|
|
9948
|
-
e && !r && /* @__PURE__ */
|
|
9949
|
-
r && /* @__PURE__ */
|
|
9950
|
-
j.length > 0 && /* @__PURE__ */
|
|
9948
|
+
e && !r && /* @__PURE__ */ c("p", { id: _, className: "text-xs text-muted-foreground", children: e }),
|
|
9949
|
+
r && /* @__PURE__ */ c("p", { id: N, className: "text-xs text-destructive", children: r }),
|
|
9950
|
+
j.length > 0 && /* @__PURE__ */ c("ul", { className: "mt-2 flex flex-col gap-1", children: j.map((V) => /* @__PURE__ */ w(
|
|
9951
9951
|
"li",
|
|
9952
9952
|
{
|
|
9953
9953
|
className: "flex items-center justify-between gap-2 rounded-lg bg-muted/40 px-3 py-2 ring-1 ring-foreground/10",
|
|
9954
9954
|
children: [
|
|
9955
9955
|
/* @__PURE__ */ w("div", { className: "flex items-center gap-2 min-w-0", children: [
|
|
9956
|
-
/* @__PURE__ */
|
|
9956
|
+
/* @__PURE__ */ c(ld, { className: "h-4 w-4 shrink-0 text-muted-foreground" }),
|
|
9957
9957
|
/* @__PURE__ */ w("div", { className: "min-w-0", children: [
|
|
9958
|
-
/* @__PURE__ */
|
|
9959
|
-
/* @__PURE__ */
|
|
9958
|
+
/* @__PURE__ */ c("p", { className: "truncate text-sm font-medium text-foreground", children: V.name }),
|
|
9959
|
+
/* @__PURE__ */ c("p", { className: "text-xs text-muted-foreground", children: py(V.size) })
|
|
9960
9960
|
] })
|
|
9961
9961
|
] }),
|
|
9962
|
-
/* @__PURE__ */
|
|
9962
|
+
/* @__PURE__ */ c(
|
|
9963
9963
|
"button",
|
|
9964
9964
|
{
|
|
9965
9965
|
type: "button",
|
|
9966
9966
|
className: "shrink-0 rounded-md p-1 text-muted-foreground transition-colors hover:bg-background hover:text-foreground focus-visible:outline-none focus-visible:ring-3 focus-visible:ring-ring/50",
|
|
9967
9967
|
onClick: () => L(V),
|
|
9968
9968
|
"aria-label": `Eliminar ${V.name}`,
|
|
9969
|
-
children: /* @__PURE__ */
|
|
9969
|
+
children: /* @__PURE__ */ c(Ur, { className: "h-4 w-4" })
|
|
9970
9970
|
}
|
|
9971
9971
|
)
|
|
9972
9972
|
]
|
|
@@ -9984,12 +9984,12 @@ function Ba() {
|
|
|
9984
9984
|
}
|
|
9985
9985
|
function ht({ className: t, error: e, required: r, ...n }) {
|
|
9986
9986
|
const s = h.useId();
|
|
9987
|
-
return /* @__PURE__ */
|
|
9987
|
+
return /* @__PURE__ */ c(bu.Provider, { value: { id: s, error: e, required: r }, children: /* @__PURE__ */ c("div", { className: C("flex flex-col gap-1.5", t), ...n }) });
|
|
9988
9988
|
}
|
|
9989
9989
|
const rt = ma(
|
|
9990
9990
|
(t, e) => {
|
|
9991
9991
|
const { id: r, error: n } = Ba();
|
|
9992
|
-
return /* @__PURE__ */
|
|
9992
|
+
return /* @__PURE__ */ c(Ko, { ref: e, id: r, "aria-invalid": !!n, ...t });
|
|
9993
9993
|
}
|
|
9994
9994
|
);
|
|
9995
9995
|
rt.displayName = "FieldControl";
|
|
@@ -10004,7 +10004,7 @@ const mt = h.forwardRef(({ className: t, children: e, ...r }, n) => {
|
|
|
10004
10004
|
...r,
|
|
10005
10005
|
children: [
|
|
10006
10006
|
e,
|
|
10007
|
-
a && /* @__PURE__ */
|
|
10007
|
+
a && /* @__PURE__ */ c("span", { className: "ml-0.5 text-destructive", children: "*" })
|
|
10008
10008
|
]
|
|
10009
10009
|
}
|
|
10010
10010
|
);
|
|
@@ -10012,7 +10012,7 @@ const mt = h.forwardRef(({ className: t, children: e, ...r }, n) => {
|
|
|
10012
10012
|
mt.displayName = "FieldLabel";
|
|
10013
10013
|
const nt = h.forwardRef(({ className: t, children: e, ...r }, n) => {
|
|
10014
10014
|
const { error: s } = Ba(), a = s ?? e;
|
|
10015
|
-
return a ? /* @__PURE__ */
|
|
10015
|
+
return a ? /* @__PURE__ */ c(
|
|
10016
10016
|
"p",
|
|
10017
10017
|
{
|
|
10018
10018
|
ref: n,
|
|
@@ -10031,7 +10031,7 @@ const gy = ma(
|
|
|
10031
10031
|
({ className: t, containerClassName: e, isInvalid: r, ...n }, s) => {
|
|
10032
10032
|
const [a, i] = Zt(!1);
|
|
10033
10033
|
return /* @__PURE__ */ w("div", { className: C("relative", e), children: [
|
|
10034
|
-
/* @__PURE__ */
|
|
10034
|
+
/* @__PURE__ */ c(
|
|
10035
10035
|
"input",
|
|
10036
10036
|
{
|
|
10037
10037
|
ref: s,
|
|
@@ -10048,13 +10048,13 @@ const gy = ma(
|
|
|
10048
10048
|
...n
|
|
10049
10049
|
}
|
|
10050
10050
|
),
|
|
10051
|
-
/* @__PURE__ */
|
|
10051
|
+
/* @__PURE__ */ c(
|
|
10052
10052
|
"button",
|
|
10053
10053
|
{
|
|
10054
10054
|
type: "button",
|
|
10055
10055
|
className: "absolute right-3 top-1/2 -translate-y-1/2 text-muted-foreground hover:text-foreground transition-colors",
|
|
10056
10056
|
onClick: () => i((o) => !o),
|
|
10057
|
-
children: a ? /* @__PURE__ */
|
|
10057
|
+
children: a ? /* @__PURE__ */ c(Bo, { className: "h-4 w-4" }) : /* @__PURE__ */ c(cd, { className: "h-4 w-4" })
|
|
10058
10058
|
}
|
|
10059
10059
|
)
|
|
10060
10060
|
] });
|
|
@@ -10064,7 +10064,7 @@ gy.displayName = "PasswordInput";
|
|
|
10064
10064
|
const In = h.forwardRef(
|
|
10065
10065
|
({ className: t, isInvalid: e, "aria-invalid": r, ...n }, s) => {
|
|
10066
10066
|
const a = e ?? (r === !0 || r === "true");
|
|
10067
|
-
return /* @__PURE__ */
|
|
10067
|
+
return /* @__PURE__ */ c(
|
|
10068
10068
|
"input",
|
|
10069
10069
|
{
|
|
10070
10070
|
ref: s,
|
|
@@ -10085,7 +10085,7 @@ const In = h.forwardRef(
|
|
|
10085
10085
|
}
|
|
10086
10086
|
);
|
|
10087
10087
|
In.displayName = "Input";
|
|
10088
|
-
const yy = h.forwardRef(({ className: t, ...e }, r) => /* @__PURE__ */
|
|
10088
|
+
const yy = h.forwardRef(({ className: t, ...e }, r) => /* @__PURE__ */ c(
|
|
10089
10089
|
"kbd",
|
|
10090
10090
|
{
|
|
10091
10091
|
ref: r,
|
|
@@ -10105,14 +10105,14 @@ const K0 = ({
|
|
|
10105
10105
|
onAction: s,
|
|
10106
10106
|
fallbackIcon: a
|
|
10107
10107
|
}) => /* @__PURE__ */ w("div", { className: "flex w-full flex-col items-center justify-center text-center", children: [
|
|
10108
|
-
t ? /* @__PURE__ */
|
|
10109
|
-
/* @__PURE__ */
|
|
10110
|
-
r && /* @__PURE__ */
|
|
10111
|
-
n && s && /* @__PURE__ */
|
|
10108
|
+
t ? /* @__PURE__ */ c("div", { className: "mb-4 w-1/2", children: /* @__PURE__ */ c(pd, { animationData: t, loop: !0 }) }) : a && /* @__PURE__ */ c("div", { className: "mb-4 text-[color:var(--oniratec-label-secondary)]", children: a }),
|
|
10109
|
+
/* @__PURE__ */ c("h2", { className: "mb-2 text-lg font-semibold text-[color:var(--oniratec-label-primary)]", children: e }),
|
|
10110
|
+
r && /* @__PURE__ */ c("p", { className: "mb-6 max-w-md text-sm text-[color:var(--oniratec-label-secondary)]", children: r }),
|
|
10111
|
+
n && s && /* @__PURE__ */ c(Ue, { size: "md", onClick: s, children: n })
|
|
10112
10112
|
] }), vy = h.forwardRef(
|
|
10113
10113
|
({ className: t, indicatorClassName: e, max: r = 100, value: n = 0, ...s }, a) => {
|
|
10114
|
-
const i = r > 0 ? r : 100, o = n == null ? 0 : Math.min(Math.max(n, 0), i),
|
|
10115
|
-
return /* @__PURE__ */
|
|
10114
|
+
const i = r > 0 ? r : 100, o = n == null ? 0 : Math.min(Math.max(n, 0), i), l = `${o / i * 100}%`;
|
|
10115
|
+
return /* @__PURE__ */ c(
|
|
10116
10116
|
"div",
|
|
10117
10117
|
{
|
|
10118
10118
|
ref: a,
|
|
@@ -10122,11 +10122,11 @@ const K0 = ({
|
|
|
10122
10122
|
"aria-valuenow": n == null ? void 0 : o,
|
|
10123
10123
|
className: C("h-2 w-full overflow-hidden rounded-full bg-muted ring-1 ring-foreground/10", t),
|
|
10124
10124
|
...s,
|
|
10125
|
-
children: /* @__PURE__ */
|
|
10125
|
+
children: /* @__PURE__ */ c(
|
|
10126
10126
|
"div",
|
|
10127
10127
|
{
|
|
10128
10128
|
className: C("h-full rounded-full bg-primary transition-[width] duration-300", e),
|
|
10129
|
-
style: { width:
|
|
10129
|
+
style: { width: l }
|
|
10130
10130
|
}
|
|
10131
10131
|
)
|
|
10132
10132
|
}
|
|
@@ -10150,7 +10150,7 @@ function Q0({
|
|
|
10150
10150
|
orientation: a = "vertical",
|
|
10151
10151
|
required: i,
|
|
10152
10152
|
value: o,
|
|
10153
|
-
...
|
|
10153
|
+
...l
|
|
10154
10154
|
}) {
|
|
10155
10155
|
const u = h.useId(), [f, d] = h.useState(e), m = o !== void 0, p = m ? o : f, y = h.useCallback(
|
|
10156
10156
|
(g) => {
|
|
@@ -10158,7 +10158,7 @@ function Q0({
|
|
|
10158
10158
|
},
|
|
10159
10159
|
[m, s]
|
|
10160
10160
|
);
|
|
10161
|
-
return /* @__PURE__ */
|
|
10161
|
+
return /* @__PURE__ */ c(
|
|
10162
10162
|
wu.Provider,
|
|
10163
10163
|
{
|
|
10164
10164
|
value: {
|
|
@@ -10169,7 +10169,7 @@ function Q0({
|
|
|
10169
10169
|
required: i,
|
|
10170
10170
|
value: p
|
|
10171
10171
|
},
|
|
10172
|
-
children: /* @__PURE__ */
|
|
10172
|
+
children: /* @__PURE__ */ c(
|
|
10173
10173
|
"div",
|
|
10174
10174
|
{
|
|
10175
10175
|
role: "radiogroup",
|
|
@@ -10180,7 +10180,7 @@ function Q0({
|
|
|
10180
10180
|
a === "horizontal" ? "flex-row flex-wrap items-center" : "flex-col",
|
|
10181
10181
|
t
|
|
10182
10182
|
),
|
|
10183
|
-
...
|
|
10183
|
+
...l
|
|
10184
10184
|
}
|
|
10185
10185
|
)
|
|
10186
10186
|
}
|
|
@@ -10196,11 +10196,11 @@ const wy = h.forwardRef(
|
|
|
10196
10196
|
size: a = "md",
|
|
10197
10197
|
value: i,
|
|
10198
10198
|
"aria-describedby": o,
|
|
10199
|
-
"aria-invalid":
|
|
10199
|
+
"aria-invalid": l,
|
|
10200
10200
|
onChange: u,
|
|
10201
10201
|
...f
|
|
10202
10202
|
}, d) => {
|
|
10203
|
-
const m = h.useId(), p = n ?? m, y = e ? `${p}-description` : void 0, g =
|
|
10203
|
+
const m = h.useId(), p = n ?? m, y = e ? `${p}-description` : void 0, g = l === !0 || l === "true", b = by(), v = b.value === i, S = b.disabled || r;
|
|
10204
10204
|
return /* @__PURE__ */ w(
|
|
10205
10205
|
"label",
|
|
10206
10206
|
{
|
|
@@ -10211,7 +10211,7 @@ const wy = h.forwardRef(
|
|
|
10211
10211
|
t
|
|
10212
10212
|
),
|
|
10213
10213
|
children: [
|
|
10214
|
-
/* @__PURE__ */
|
|
10214
|
+
/* @__PURE__ */ c(
|
|
10215
10215
|
"input",
|
|
10216
10216
|
{
|
|
10217
10217
|
ref: d,
|
|
@@ -10231,7 +10231,7 @@ const wy = h.forwardRef(
|
|
|
10231
10231
|
...f
|
|
10232
10232
|
}
|
|
10233
10233
|
),
|
|
10234
|
-
/* @__PURE__ */
|
|
10234
|
+
/* @__PURE__ */ c(
|
|
10235
10235
|
"span",
|
|
10236
10236
|
{
|
|
10237
10237
|
className: C(
|
|
@@ -10242,7 +10242,7 @@ const wy = h.forwardRef(
|
|
|
10242
10242
|
g && "border-destructive peer-focus-visible:border-destructive peer-focus-visible:ring-destructive/20",
|
|
10243
10243
|
a === "sm" ? "h-4 w-4" : "h-5 w-5"
|
|
10244
10244
|
),
|
|
10245
|
-
children: /* @__PURE__ */
|
|
10245
|
+
children: /* @__PURE__ */ c(
|
|
10246
10246
|
"span",
|
|
10247
10247
|
{
|
|
10248
10248
|
className: C(
|
|
@@ -10254,8 +10254,8 @@ const wy = h.forwardRef(
|
|
|
10254
10254
|
}
|
|
10255
10255
|
),
|
|
10256
10256
|
(s || e) && /* @__PURE__ */ w("span", { className: "grid gap-1 leading-tight", children: [
|
|
10257
|
-
s && /* @__PURE__ */
|
|
10258
|
-
e && /* @__PURE__ */
|
|
10257
|
+
s && /* @__PURE__ */ c("span", { className: "font-medium text-foreground", children: s }),
|
|
10258
|
+
e && /* @__PURE__ */ c("span", { id: y, className: "text-sm text-muted-foreground", children: e })
|
|
10259
10259
|
] })
|
|
10260
10260
|
]
|
|
10261
10261
|
}
|
|
@@ -10281,32 +10281,32 @@ const Ua = pe.Root, eb = pe.Group, ja = pe.Value, cs = h.forwardRef(({ className
|
|
|
10281
10281
|
...n,
|
|
10282
10282
|
children: [
|
|
10283
10283
|
r,
|
|
10284
|
-
/* @__PURE__ */
|
|
10284
|
+
/* @__PURE__ */ c(pe.Icon, { asChild: !0, children: /* @__PURE__ */ c(zn, { className: "h-4 w-4 shrink-0 text-muted-foreground" }) })
|
|
10285
10285
|
]
|
|
10286
10286
|
}
|
|
10287
10287
|
));
|
|
10288
10288
|
cs.displayName = pe.Trigger.displayName;
|
|
10289
|
-
const xu = h.forwardRef(({ className: t, ...e }, r) => /* @__PURE__ */
|
|
10289
|
+
const xu = h.forwardRef(({ className: t, ...e }, r) => /* @__PURE__ */ c(
|
|
10290
10290
|
pe.ScrollUpButton,
|
|
10291
10291
|
{
|
|
10292
10292
|
ref: r,
|
|
10293
10293
|
className: C("flex cursor-default items-center justify-center bg-popover py-1", t),
|
|
10294
10294
|
...e,
|
|
10295
|
-
children: /* @__PURE__ */
|
|
10295
|
+
children: /* @__PURE__ */ c(Uo, { className: "h-4 w-4" })
|
|
10296
10296
|
}
|
|
10297
10297
|
));
|
|
10298
10298
|
xu.displayName = pe.ScrollUpButton.displayName;
|
|
10299
|
-
const ku = h.forwardRef(({ className: t, ...e }, r) => /* @__PURE__ */
|
|
10299
|
+
const ku = h.forwardRef(({ className: t, ...e }, r) => /* @__PURE__ */ c(
|
|
10300
10300
|
pe.ScrollDownButton,
|
|
10301
10301
|
{
|
|
10302
10302
|
ref: r,
|
|
10303
10303
|
className: C("flex cursor-default items-center justify-center bg-popover py-1", t),
|
|
10304
10304
|
...e,
|
|
10305
|
-
children: /* @__PURE__ */
|
|
10305
|
+
children: /* @__PURE__ */ c(zn, { className: "h-4 w-4" })
|
|
10306
10306
|
}
|
|
10307
10307
|
));
|
|
10308
10308
|
ku.displayName = pe.ScrollDownButton.displayName;
|
|
10309
|
-
const us = h.forwardRef(({ className: t, children: e, position: r = "popper", ...n }, s) => /* @__PURE__ */
|
|
10309
|
+
const us = h.forwardRef(({ className: t, children: e, position: r = "popper", ...n }, s) => /* @__PURE__ */ c(pe.Portal, { children: /* @__PURE__ */ w(
|
|
10310
10310
|
pe.Content,
|
|
10311
10311
|
{
|
|
10312
10312
|
ref: s,
|
|
@@ -10321,8 +10321,8 @@ const us = h.forwardRef(({ className: t, children: e, position: r = "popper", ..
|
|
|
10321
10321
|
position: r,
|
|
10322
10322
|
...n,
|
|
10323
10323
|
children: [
|
|
10324
|
-
/* @__PURE__ */
|
|
10325
|
-
/* @__PURE__ */
|
|
10324
|
+
/* @__PURE__ */ c(xu, {}),
|
|
10325
|
+
/* @__PURE__ */ c(
|
|
10326
10326
|
pe.Viewport,
|
|
10327
10327
|
{
|
|
10328
10328
|
className: C(
|
|
@@ -10332,12 +10332,12 @@ const us = h.forwardRef(({ className: t, children: e, position: r = "popper", ..
|
|
|
10332
10332
|
children: e
|
|
10333
10333
|
}
|
|
10334
10334
|
),
|
|
10335
|
-
/* @__PURE__ */
|
|
10335
|
+
/* @__PURE__ */ c(ku, {})
|
|
10336
10336
|
]
|
|
10337
10337
|
}
|
|
10338
10338
|
) }));
|
|
10339
10339
|
us.displayName = pe.Content.displayName;
|
|
10340
|
-
const xy = h.forwardRef(({ className: t, ...e }, r) => /* @__PURE__ */
|
|
10340
|
+
const xy = h.forwardRef(({ className: t, ...e }, r) => /* @__PURE__ */ c(
|
|
10341
10341
|
pe.Label,
|
|
10342
10342
|
{
|
|
10343
10343
|
ref: r,
|
|
@@ -10358,13 +10358,13 @@ const ds = h.forwardRef(({ className: t, children: e, ...r }, n) => /* @__PURE__
|
|
|
10358
10358
|
),
|
|
10359
10359
|
...r,
|
|
10360
10360
|
children: [
|
|
10361
|
-
/* @__PURE__ */
|
|
10362
|
-
/* @__PURE__ */
|
|
10361
|
+
/* @__PURE__ */ c("span", { className: "absolute right-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ c(pe.ItemIndicator, { children: /* @__PURE__ */ c($n, { className: "h-4 w-4" }) }) }),
|
|
10362
|
+
/* @__PURE__ */ c(pe.ItemText, { children: e })
|
|
10363
10363
|
]
|
|
10364
10364
|
}
|
|
10365
10365
|
));
|
|
10366
10366
|
ds.displayName = pe.Item.displayName;
|
|
10367
|
-
const ky = h.forwardRef(({ className: t, ...e }, r) => /* @__PURE__ */
|
|
10367
|
+
const ky = h.forwardRef(({ className: t, ...e }, r) => /* @__PURE__ */ c(
|
|
10368
10368
|
pe.Separator,
|
|
10369
10369
|
{
|
|
10370
10370
|
ref: r,
|
|
@@ -10389,7 +10389,7 @@ function Nu({
|
|
|
10389
10389
|
hasError: a,
|
|
10390
10390
|
minChars: i = 2,
|
|
10391
10391
|
debounceMs: o = 300,
|
|
10392
|
-
fetcher:
|
|
10392
|
+
fetcher: l,
|
|
10393
10393
|
getOptionValue: u,
|
|
10394
10394
|
getOptionLabel: f,
|
|
10395
10395
|
emptyLabel: d = "Sin resultados",
|
|
@@ -10415,7 +10415,7 @@ function Nu({
|
|
|
10415
10415
|
}
|
|
10416
10416
|
O(!0);
|
|
10417
10417
|
try {
|
|
10418
|
-
const H = await
|
|
10418
|
+
const H = await l(B.trim());
|
|
10419
10419
|
if (!Y) return;
|
|
10420
10420
|
M(H ?? []);
|
|
10421
10421
|
} finally {
|
|
@@ -10425,7 +10425,7 @@ function Nu({
|
|
|
10425
10425
|
})(), () => {
|
|
10426
10426
|
Y = !1;
|
|
10427
10427
|
};
|
|
10428
|
-
}, [v, B, j,
|
|
10428
|
+
}, [v, B, j, l]), h.useEffect(() => {
|
|
10429
10429
|
if (!t) {
|
|
10430
10430
|
$("");
|
|
10431
10431
|
return;
|
|
@@ -10452,8 +10452,8 @@ function Nu({
|
|
|
10452
10452
|
b
|
|
10453
10453
|
),
|
|
10454
10454
|
children: [
|
|
10455
|
-
/* @__PURE__ */
|
|
10456
|
-
/* @__PURE__ */
|
|
10455
|
+
/* @__PURE__ */ c("span", { className: C("truncate", !z && "text-muted-foreground"), children: Q }),
|
|
10456
|
+
/* @__PURE__ */ c(
|
|
10457
10457
|
zn,
|
|
10458
10458
|
{
|
|
10459
10459
|
className: C("h-4 w-4 shrink-0 opacity-50 transition-transform", v && "rotate-180")
|
|
@@ -10472,7 +10472,7 @@ function Nu({
|
|
|
10472
10472
|
role: "listbox",
|
|
10473
10473
|
children: [
|
|
10474
10474
|
/* @__PURE__ */ w("div", { className: "flex items-center border-b border-border px-3", children: [
|
|
10475
|
-
/* @__PURE__ */
|
|
10475
|
+
/* @__PURE__ */ c(
|
|
10476
10476
|
"input",
|
|
10477
10477
|
{
|
|
10478
10478
|
className: "flex h-9 w-full bg-transparent py-2 text-sm outline-none placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-50",
|
|
@@ -10482,7 +10482,7 @@ function Nu({
|
|
|
10482
10482
|
autoFocus: !0
|
|
10483
10483
|
}
|
|
10484
10484
|
),
|
|
10485
|
-
x && /* @__PURE__ */
|
|
10485
|
+
x && /* @__PURE__ */ c(pa, { className: "h-4 w-4 shrink-0 animate-spin text-muted-foreground" })
|
|
10486
10486
|
] }),
|
|
10487
10487
|
/* @__PURE__ */ w("div", { className: "max-h-60 overflow-y-auto p-1", children: [
|
|
10488
10488
|
!j && /* @__PURE__ */ w("p", { className: "py-2 text-center text-xs text-muted-foreground", children: [
|
|
@@ -10490,10 +10490,10 @@ function Nu({
|
|
|
10490
10490
|
i,
|
|
10491
10491
|
" caracteres"
|
|
10492
10492
|
] }),
|
|
10493
|
-
j && x && /* @__PURE__ */
|
|
10493
|
+
j && x && /* @__PURE__ */ c("p", { className: "py-2 text-center text-xs text-muted-foreground", children: m }),
|
|
10494
10494
|
j && !x && E.length === 0 && /* @__PURE__ */ w("div", { className: "flex flex-col items-center gap-2 py-3", children: [
|
|
10495
|
-
/* @__PURE__ */
|
|
10496
|
-
p && y && /* @__PURE__ */
|
|
10495
|
+
/* @__PURE__ */ c("p", { className: "text-xs text-muted-foreground", children: d }),
|
|
10496
|
+
p && y && /* @__PURE__ */ c(
|
|
10497
10497
|
"button",
|
|
10498
10498
|
{
|
|
10499
10499
|
type: "button",
|
|
@@ -10503,9 +10503,9 @@ function Nu({
|
|
|
10503
10503
|
}
|
|
10504
10504
|
)
|
|
10505
10505
|
] }),
|
|
10506
|
-
E.length > 0 && /* @__PURE__ */
|
|
10506
|
+
E.length > 0 && /* @__PURE__ */ c("ul", { children: E.map((Y) => {
|
|
10507
10507
|
const L = u(Y), H = f(Y), W = L === t;
|
|
10508
|
-
return /* @__PURE__ */
|
|
10508
|
+
return /* @__PURE__ */ c("li", { children: /* @__PURE__ */ w(
|
|
10509
10509
|
"button",
|
|
10510
10510
|
{
|
|
10511
10511
|
type: "button",
|
|
@@ -10520,8 +10520,8 @@ function Nu({
|
|
|
10520
10520
|
e(L), $(H), S(!1), N("");
|
|
10521
10521
|
},
|
|
10522
10522
|
children: [
|
|
10523
|
-
W && /* @__PURE__ */
|
|
10524
|
-
/* @__PURE__ */
|
|
10523
|
+
W && /* @__PURE__ */ c($n, { className: "mr-2 h-4 w-4 shrink-0" }),
|
|
10524
|
+
/* @__PURE__ */ c("span", { className: C(!W && "ml-6"), children: H })
|
|
10525
10525
|
]
|
|
10526
10526
|
}
|
|
10527
10527
|
) }, L);
|
|
@@ -10533,7 +10533,7 @@ function Nu({
|
|
|
10533
10533
|
] });
|
|
10534
10534
|
}
|
|
10535
10535
|
const Sy = h.forwardRef(
|
|
10536
|
-
({ className: t, decorative: e = !0, orientation: r = "horizontal", ...n }, s) => /* @__PURE__ */
|
|
10536
|
+
({ className: t, decorative: e = !0, orientation: r = "horizontal", ...n }, s) => /* @__PURE__ */ c(
|
|
10537
10537
|
"div",
|
|
10538
10538
|
{
|
|
10539
10539
|
ref: s,
|
|
@@ -10550,7 +10550,7 @@ const Sy = h.forwardRef(
|
|
|
10550
10550
|
)
|
|
10551
10551
|
);
|
|
10552
10552
|
Sy.displayName = "Separator";
|
|
10553
|
-
const tb = uu, rb = du, nb = ls, Cy = fu, Su = h.forwardRef(({ className: t, ...e }, r) => /* @__PURE__ */
|
|
10553
|
+
const tb = uu, rb = du, nb = ls, Cy = fu, Su = h.forwardRef(({ className: t, ...e }, r) => /* @__PURE__ */ c(
|
|
10554
10554
|
ss,
|
|
10555
10555
|
{
|
|
10556
10556
|
ref: r,
|
|
@@ -10579,7 +10579,7 @@ const _y = Bn(
|
|
|
10579
10579
|
}
|
|
10580
10580
|
}
|
|
10581
10581
|
), Ty = h.forwardRef(({ side: t = "right", className: e, children: r, hideClose: n, ...s }, a) => /* @__PURE__ */ w(Cy, { children: [
|
|
10582
|
-
/* @__PURE__ */
|
|
10582
|
+
/* @__PURE__ */ c(Su, {}),
|
|
10583
10583
|
/* @__PURE__ */ w(
|
|
10584
10584
|
as,
|
|
10585
10585
|
{
|
|
@@ -10587,7 +10587,7 @@ const _y = Bn(
|
|
|
10587
10587
|
className: C(_y({ side: t }), e),
|
|
10588
10588
|
...s,
|
|
10589
10589
|
children: [
|
|
10590
|
-
!n && /* @__PURE__ */
|
|
10590
|
+
!n && /* @__PURE__ */ c(ls, { asChild: !0, children: /* @__PURE__ */ w(
|
|
10591
10591
|
Ue,
|
|
10592
10592
|
{
|
|
10593
10593
|
variant: "ghost",
|
|
@@ -10595,8 +10595,8 @@ const _y = Bn(
|
|
|
10595
10595
|
className: "absolute right-2 top-2",
|
|
10596
10596
|
"aria-label": "Cerrar",
|
|
10597
10597
|
children: [
|
|
10598
|
-
/* @__PURE__ */
|
|
10599
|
-
/* @__PURE__ */
|
|
10598
|
+
/* @__PURE__ */ c(Ur, { className: "h-4 w-4" }),
|
|
10599
|
+
/* @__PURE__ */ c("span", { className: "sr-only", children: "Cerrar" })
|
|
10600
10600
|
]
|
|
10601
10601
|
}
|
|
10602
10602
|
) }),
|
|
@@ -10606,9 +10606,9 @@ const _y = Bn(
|
|
|
10606
10606
|
)
|
|
10607
10607
|
] }));
|
|
10608
10608
|
Ty.displayName = as.displayName;
|
|
10609
|
-
const Ey = ({ className: t, ...e }) => /* @__PURE__ */
|
|
10609
|
+
const Ey = ({ className: t, ...e }) => /* @__PURE__ */ c("div", { className: C("flex flex-col gap-2", t), ...e });
|
|
10610
10610
|
Ey.displayName = "SheetHeader";
|
|
10611
|
-
const Oy = ({ className: t, ...e }) => /* @__PURE__ */
|
|
10611
|
+
const Oy = ({ className: t, ...e }) => /* @__PURE__ */ c(
|
|
10612
10612
|
"div",
|
|
10613
10613
|
{
|
|
10614
10614
|
className: C(
|
|
@@ -10619,7 +10619,7 @@ const Oy = ({ className: t, ...e }) => /* @__PURE__ */ l(
|
|
|
10619
10619
|
}
|
|
10620
10620
|
);
|
|
10621
10621
|
Oy.displayName = "SheetFooter";
|
|
10622
|
-
const Dy = h.forwardRef(({ className: t, ...e }, r) => /* @__PURE__ */
|
|
10622
|
+
const Dy = h.forwardRef(({ className: t, ...e }, r) => /* @__PURE__ */ c(
|
|
10623
10623
|
is,
|
|
10624
10624
|
{
|
|
10625
10625
|
ref: r,
|
|
@@ -10628,7 +10628,7 @@ const Dy = h.forwardRef(({ className: t, ...e }, r) => /* @__PURE__ */ l(
|
|
|
10628
10628
|
}
|
|
10629
10629
|
));
|
|
10630
10630
|
Dy.displayName = is.displayName;
|
|
10631
|
-
const Ry = h.forwardRef(({ className: t, ...e }, r) => /* @__PURE__ */
|
|
10631
|
+
const Ry = h.forwardRef(({ className: t, ...e }, r) => /* @__PURE__ */ c(
|
|
10632
10632
|
os,
|
|
10633
10633
|
{
|
|
10634
10634
|
ref: r,
|
|
@@ -10638,12 +10638,12 @@ const Ry = h.forwardRef(({ className: t, ...e }, r) => /* @__PURE__ */ l(
|
|
|
10638
10638
|
));
|
|
10639
10639
|
Ry.displayName = os.displayName;
|
|
10640
10640
|
function mo({ className: t }) {
|
|
10641
|
-
return /* @__PURE__ */
|
|
10641
|
+
return /* @__PURE__ */ c("div", { className: C("animate-pulse rounded-lg bg-muted/80", t) });
|
|
10642
10642
|
}
|
|
10643
10643
|
const Ay = h.forwardRef(
|
|
10644
10644
|
({ className: t, isInvalid: e, "aria-invalid": r, ...n }, s) => {
|
|
10645
10645
|
const a = e ?? (r === !0 || r === "true");
|
|
10646
|
-
return /* @__PURE__ */
|
|
10646
|
+
return /* @__PURE__ */ c(
|
|
10647
10647
|
"textarea",
|
|
10648
10648
|
{
|
|
10649
10649
|
ref: s,
|
|
@@ -10680,18 +10680,18 @@ function sb({
|
|
|
10680
10680
|
value: a,
|
|
10681
10681
|
...i
|
|
10682
10682
|
}) {
|
|
10683
|
-
const o = h.useId(), [
|
|
10683
|
+
const o = h.useId(), [l, u] = h.useState(r), f = a !== void 0, d = f ? a : l, m = h.useCallback(
|
|
10684
10684
|
(p) => {
|
|
10685
10685
|
f || u(p), n?.(p);
|
|
10686
10686
|
},
|
|
10687
10687
|
[f, n]
|
|
10688
10688
|
);
|
|
10689
|
-
return /* @__PURE__ */
|
|
10689
|
+
return /* @__PURE__ */ c(Cu.Provider, { value: { baseId: o, onValueChange: m, orientation: s, value: d }, children: /* @__PURE__ */ c("div", { className: C("w-full", e), "data-orientation": s, ...i, children: t }) });
|
|
10690
10690
|
}
|
|
10691
10691
|
const Iy = h.forwardRef(
|
|
10692
10692
|
({ className: t, onKeyDown: e, ...r }, n) => {
|
|
10693
10693
|
const { onValueChange: s, orientation: a } = Ha();
|
|
10694
|
-
return /* @__PURE__ */
|
|
10694
|
+
return /* @__PURE__ */ c(
|
|
10695
10695
|
"div",
|
|
10696
10696
|
{
|
|
10697
10697
|
ref: n,
|
|
@@ -10703,8 +10703,8 @@ const Iy = h.forwardRef(
|
|
|
10703
10703
|
t
|
|
10704
10704
|
),
|
|
10705
10705
|
onKeyDown: (i) => {
|
|
10706
|
-
const o = a === "horizontal" ? i.key === "ArrowRight" : i.key === "ArrowDown",
|
|
10707
|
-
if (!o && !
|
|
10706
|
+
const o = a === "horizontal" ? i.key === "ArrowRight" : i.key === "ArrowDown", l = a === "horizontal" ? i.key === "ArrowLeft" : i.key === "ArrowUp", u = i.key === "Home" || i.key === "End";
|
|
10707
|
+
if (!o && !l && !u) {
|
|
10708
10708
|
e?.(i);
|
|
10709
10709
|
return;
|
|
10710
10710
|
}
|
|
@@ -10717,7 +10717,7 @@ const Iy = h.forwardRef(
|
|
|
10717
10717
|
}
|
|
10718
10718
|
const d = f.findIndex((g) => g === document.activeElement);
|
|
10719
10719
|
let m = d === -1 ? 0 : d;
|
|
10720
|
-
o && (m = (d + 1 + f.length) % f.length),
|
|
10720
|
+
o && (m = (d + 1 + f.length) % f.length), l && (m = (d - 1 + f.length) % f.length), i.key === "Home" && (m = 0), i.key === "End" && (m = f.length - 1), i.preventDefault();
|
|
10721
10721
|
const p = f[m];
|
|
10722
10722
|
p?.focus();
|
|
10723
10723
|
const y = p?.dataset.value;
|
|
@@ -10731,8 +10731,8 @@ const Iy = h.forwardRef(
|
|
|
10731
10731
|
Iy.displayName = "TabsList";
|
|
10732
10732
|
const My = h.forwardRef(
|
|
10733
10733
|
({ children: t, className: e, value: r, ...n }, s) => {
|
|
10734
|
-
const { baseId: a, onValueChange: i, orientation: o, value:
|
|
10735
|
-
return /* @__PURE__ */
|
|
10734
|
+
const { baseId: a, onValueChange: i, orientation: o, value: l } = Ha(), u = r === l;
|
|
10735
|
+
return /* @__PURE__ */ c(
|
|
10736
10736
|
"button",
|
|
10737
10737
|
{
|
|
10738
10738
|
ref: s,
|
|
@@ -10763,7 +10763,7 @@ My.displayName = "TabsTrigger";
|
|
|
10763
10763
|
const Py = h.forwardRef(
|
|
10764
10764
|
({ className: t, forceMount: e = !1, value: r, ...n }, s) => {
|
|
10765
10765
|
const { baseId: a, value: i } = Ha(), o = r === i;
|
|
10766
|
-
return !o && !e ? null : /* @__PURE__ */
|
|
10766
|
+
return !o && !e ? null : /* @__PURE__ */ c(
|
|
10767
10767
|
"div",
|
|
10768
10768
|
{
|
|
10769
10769
|
ref: s,
|
|
@@ -10797,7 +10797,7 @@ var fs = "Switch", [Ly] = Un(fs), [Vy, $y] = Ly(fs), _u = h.forwardRef(
|
|
|
10797
10797
|
defaultChecked: a,
|
|
10798
10798
|
required: i,
|
|
10799
10799
|
disabled: o,
|
|
10800
|
-
value:
|
|
10800
|
+
value: l = "on",
|
|
10801
10801
|
onCheckedChange: u,
|
|
10802
10802
|
form: f,
|
|
10803
10803
|
...d
|
|
@@ -10808,7 +10808,7 @@ var fs = "Switch", [Ly] = Un(fs), [Vy, $y] = Ly(fs), _u = h.forwardRef(
|
|
|
10808
10808
|
caller: fs
|
|
10809
10809
|
});
|
|
10810
10810
|
return /* @__PURE__ */ w(Vy, { scope: r, checked: v, disabled: o, children: [
|
|
10811
|
-
/* @__PURE__ */
|
|
10811
|
+
/* @__PURE__ */ c(
|
|
10812
10812
|
_e.button,
|
|
10813
10813
|
{
|
|
10814
10814
|
type: "button",
|
|
@@ -10818,7 +10818,7 @@ var fs = "Switch", [Ly] = Un(fs), [Vy, $y] = Ly(fs), _u = h.forwardRef(
|
|
|
10818
10818
|
"data-state": Du(v),
|
|
10819
10819
|
"data-disabled": o ? "" : void 0,
|
|
10820
10820
|
disabled: o,
|
|
10821
|
-
value:
|
|
10821
|
+
value: l,
|
|
10822
10822
|
...d,
|
|
10823
10823
|
ref: y,
|
|
10824
10824
|
onClick: Ae(t.onClick, (_) => {
|
|
@@ -10826,13 +10826,13 @@ var fs = "Switch", [Ly] = Un(fs), [Vy, $y] = Ly(fs), _u = h.forwardRef(
|
|
|
10826
10826
|
})
|
|
10827
10827
|
}
|
|
10828
10828
|
),
|
|
10829
|
-
b && /* @__PURE__ */
|
|
10829
|
+
b && /* @__PURE__ */ c(
|
|
10830
10830
|
Ou,
|
|
10831
10831
|
{
|
|
10832
10832
|
control: m,
|
|
10833
10833
|
bubbles: !g.current,
|
|
10834
10834
|
name: n,
|
|
10835
|
-
value:
|
|
10835
|
+
value: l,
|
|
10836
10836
|
checked: v,
|
|
10837
10837
|
required: i,
|
|
10838
10838
|
disabled: o,
|
|
@@ -10847,7 +10847,7 @@ _u.displayName = fs;
|
|
|
10847
10847
|
var Tu = "SwitchThumb", Eu = h.forwardRef(
|
|
10848
10848
|
(t, e) => {
|
|
10849
10849
|
const { __scopeSwitch: r, ...n } = t, s = $y(Tu, r);
|
|
10850
|
-
return /* @__PURE__ */
|
|
10850
|
+
return /* @__PURE__ */ c(
|
|
10851
10851
|
_e.span,
|
|
10852
10852
|
{
|
|
10853
10853
|
"data-state": Du(s.checked),
|
|
@@ -10867,7 +10867,7 @@ var Wy = "SwitchBubbleInput", Ou = h.forwardRef(
|
|
|
10867
10867
|
bubbles: n = !0,
|
|
10868
10868
|
...s
|
|
10869
10869
|
}, a) => {
|
|
10870
|
-
const i = h.useRef(null), o = $e(i, a),
|
|
10870
|
+
const i = h.useRef(null), o = $e(i, a), l = Fy(r), u = gl(e);
|
|
10871
10871
|
return h.useEffect(() => {
|
|
10872
10872
|
const f = i.current;
|
|
10873
10873
|
if (!f) return;
|
|
@@ -10875,11 +10875,11 @@ var Wy = "SwitchBubbleInput", Ou = h.forwardRef(
|
|
|
10875
10875
|
d,
|
|
10876
10876
|
"checked"
|
|
10877
10877
|
).set;
|
|
10878
|
-
if (
|
|
10878
|
+
if (l !== r && p) {
|
|
10879
10879
|
const y = new Event("click", { bubbles: n });
|
|
10880
10880
|
p.call(f, r), f.dispatchEvent(y);
|
|
10881
10881
|
}
|
|
10882
|
-
}, [
|
|
10882
|
+
}, [l, r, n]), /* @__PURE__ */ c(
|
|
10883
10883
|
"input",
|
|
10884
10884
|
{
|
|
10885
10885
|
type: "checkbox",
|
|
@@ -10915,11 +10915,11 @@ const hs = h.forwardRef(
|
|
|
10915
10915
|
label: a,
|
|
10916
10916
|
className: i,
|
|
10917
10917
|
ariaLabel: o,
|
|
10918
|
-
id:
|
|
10918
|
+
id: l
|
|
10919
10919
|
}, u) => {
|
|
10920
|
-
const f = h.useId(), d =
|
|
10920
|
+
const f = h.useId(), d = l ?? f;
|
|
10921
10921
|
return /* @__PURE__ */ w("div", { className: C("flex items-center gap-2", i), children: [
|
|
10922
|
-
/* @__PURE__ */
|
|
10922
|
+
/* @__PURE__ */ c(
|
|
10923
10923
|
zy,
|
|
10924
10924
|
{
|
|
10925
10925
|
ref: u,
|
|
@@ -10936,7 +10936,7 @@ const hs = h.forwardRef(
|
|
|
10936
10936
|
"data-[state=checked]:bg-primary data-[state=unchecked]:bg-input dark:data-[state=unchecked]:bg-muted/60",
|
|
10937
10937
|
n === "sm" ? "h-4 w-7" : "h-5 w-9"
|
|
10938
10938
|
),
|
|
10939
|
-
children: /* @__PURE__ */
|
|
10939
|
+
children: /* @__PURE__ */ c(
|
|
10940
10940
|
Zy,
|
|
10941
10941
|
{
|
|
10942
10942
|
className: C(
|
|
@@ -10947,7 +10947,7 @@ const hs = h.forwardRef(
|
|
|
10947
10947
|
)
|
|
10948
10948
|
}
|
|
10949
10949
|
),
|
|
10950
|
-
a && /* @__PURE__ */
|
|
10950
|
+
a && /* @__PURE__ */ c(
|
|
10951
10951
|
"label",
|
|
10952
10952
|
{
|
|
10953
10953
|
htmlFor: d,
|
|
@@ -11076,19 +11076,19 @@ class Qy {
|
|
|
11076
11076
|
];
|
|
11077
11077
|
}, this.create = (e) => {
|
|
11078
11078
|
var r;
|
|
11079
|
-
const { message: n, ...s } = e, a = typeof e?.id == "number" || ((r = e.id) == null ? void 0 : r.length) > 0 ? e.id : aa++, i = this.toasts.find((
|
|
11080
|
-
return this.dismissedToasts.has(a) && this.dismissedToasts.delete(a), i ? this.toasts = this.toasts.map((
|
|
11081
|
-
...
|
|
11079
|
+
const { message: n, ...s } = e, a = typeof e?.id == "number" || ((r = e.id) == null ? void 0 : r.length) > 0 ? e.id : aa++, i = this.toasts.find((l) => l.id === a), o = e.dismissible === void 0 ? !0 : e.dismissible;
|
|
11080
|
+
return this.dismissedToasts.has(a) && this.dismissedToasts.delete(a), i ? this.toasts = this.toasts.map((l) => l.id === a ? (this.publish({
|
|
11081
|
+
...l,
|
|
11082
11082
|
...e,
|
|
11083
11083
|
id: a,
|
|
11084
11084
|
title: n
|
|
11085
11085
|
}), {
|
|
11086
|
-
...
|
|
11086
|
+
...l,
|
|
11087
11087
|
...e,
|
|
11088
11088
|
id: a,
|
|
11089
11089
|
dismissible: o,
|
|
11090
11090
|
title: n
|
|
11091
|
-
}) :
|
|
11091
|
+
}) : l) : this.addToast({
|
|
11092
11092
|
title: n,
|
|
11093
11093
|
...s,
|
|
11094
11094
|
dismissible: o,
|
|
@@ -11200,11 +11200,11 @@ class Qy {
|
|
|
11200
11200
|
}
|
|
11201
11201
|
}).finally(() => {
|
|
11202
11202
|
a && (this.dismiss(n), n = void 0), r.finally == null || r.finally.call(r);
|
|
11203
|
-
}),
|
|
11203
|
+
}), l = () => new Promise((u, f) => o.then(() => i[0] === "reject" ? f(i[1]) : u(i[1])).catch(f));
|
|
11204
11204
|
return typeof n != "string" && typeof n != "number" ? {
|
|
11205
|
-
unwrap:
|
|
11205
|
+
unwrap: l
|
|
11206
11206
|
} : Object.assign(n, {
|
|
11207
|
-
unwrap:
|
|
11207
|
+
unwrap: l
|
|
11208
11208
|
});
|
|
11209
11209
|
}, this.custom = (e, r) => {
|
|
11210
11210
|
const n = r?.id || aa++;
|
|
@@ -11250,7 +11250,7 @@ function fv(t) {
|
|
|
11250
11250
|
return e && n.push(e), r && n.push(r), n;
|
|
11251
11251
|
}
|
|
11252
11252
|
const hv = (t) => {
|
|
11253
|
-
var e, r, n, s, a, i, o,
|
|
11253
|
+
var e, r, n, s, a, i, o, l, u;
|
|
11254
11254
|
const { invert: f, toast: d, unstyled: m, interacting: p, setHeights: y, visibleToasts: g, heights: b, index: v, toasts: S, expanded: _, removeToast: N, defaultRichColors: x, closeButton: O, style: E, cancelButtonStyle: M, actionButtonStyle: z, className: $ = "", descriptionClassName: B = "", duration: j, position: J, gap: Q, expandByDefault: Y, classNames: L, icons: H, closeButtonAriaLabel: W = "Close toast" } = t, [ie, V] = k.useState(null), [A, ee] = k.useState(null), [Z, oe] = k.useState(!1), [ce, ve] = k.useState(!1), [Te, le] = k.useState(!1), [vt, Gt] = k.useState(!1), [Jt, bt] = k.useState(!1), [Xt, ms] = k.useState(0), [Wu, Xa] = k.useState(0), Dr = k.useRef(d.duration || j || po), Ka = k.useRef(null), dt = k.useRef(null), zu = v === 0, Zu = v + 1 <= g, Ie = d.type, Kt = d.dismissible !== !1, Bu = d.className || "", Uu = d.descriptionClassName || "", Xr = k.useMemo(() => b.findIndex((X) => X.toastId === d.id) || 0, [
|
|
11255
11255
|
b,
|
|
11256
11256
|
d.id
|
|
@@ -11482,7 +11482,7 @@ const hv = (t) => {
|
|
|
11482
11482
|
onClick: (X) => {
|
|
11483
11483
|
fn(d.cancel) && Kt && (d.cancel.onClick == null || d.cancel.onClick.call(d.cancel, X), wt());
|
|
11484
11484
|
},
|
|
11485
|
-
className: tt(L?.cancelButton, d == null || (
|
|
11485
|
+
className: tt(L?.cancelButton, d == null || (l = d.classNames) == null ? void 0 : l.cancelButton)
|
|
11486
11486
|
}, d.cancel.label) : null, /* @__PURE__ */ k.isValidElement(d.action) ? d.action : d.action && fn(d.action) ? /* @__PURE__ */ k.createElement("button", {
|
|
11487
11487
|
"data-button": !0,
|
|
11488
11488
|
"data-action": !0,
|
|
@@ -11505,7 +11505,7 @@ function mv(t, e) {
|
|
|
11505
11505
|
e
|
|
11506
11506
|
].forEach((n, s) => {
|
|
11507
11507
|
const a = s === 1, i = a ? "--mobile-offset" : "--offset", o = a ? ov : iv;
|
|
11508
|
-
function
|
|
11508
|
+
function l(u) {
|
|
11509
11509
|
[
|
|
11510
11510
|
"top",
|
|
11511
11511
|
"right",
|
|
@@ -11515,21 +11515,21 @@ function mv(t, e) {
|
|
|
11515
11515
|
r[`${i}-${f}`] = typeof u == "number" ? `${u}px` : u;
|
|
11516
11516
|
});
|
|
11517
11517
|
}
|
|
11518
|
-
typeof n == "number" || typeof n == "string" ?
|
|
11518
|
+
typeof n == "number" || typeof n == "string" ? l(n) : typeof n == "object" ? [
|
|
11519
11519
|
"top",
|
|
11520
11520
|
"right",
|
|
11521
11521
|
"bottom",
|
|
11522
11522
|
"left"
|
|
11523
11523
|
].forEach((u) => {
|
|
11524
11524
|
n[u] === void 0 ? r[`${i}-${u}`] = o : r[`${i}-${u}`] = typeof n[u] == "number" ? `${n[u]}px` : n[u];
|
|
11525
|
-
}) :
|
|
11525
|
+
}) : l(o);
|
|
11526
11526
|
}), r;
|
|
11527
11527
|
}
|
|
11528
11528
|
const pv = /* @__PURE__ */ k.forwardRef(function(e, r) {
|
|
11529
11529
|
const { id: n, invert: s, position: a = "bottom-right", hotkey: i = [
|
|
11530
11530
|
"altKey",
|
|
11531
11531
|
"KeyT"
|
|
11532
|
-
], expand: o, closeButton:
|
|
11532
|
+
], expand: o, closeButton: l, className: u, offset: f, mobileOffset: d, theme: m = "light", richColors: p, duration: y, style: g, visibleToasts: b = av, toastOptions: v, dir: S = go(), gap: _ = cv, icons: N, containerAriaLabel: x = "Notifications" } = e, [O, E] = k.useState([]), M = k.useMemo(() => n ? O.filter((Z) => Z.toasterId === n) : O.filter((Z) => !Z.toasterId), [
|
|
11533
11533
|
O,
|
|
11534
11534
|
n
|
|
11535
11535
|
]), z = k.useMemo(() => Array.from(new Set([
|
|
@@ -11680,7 +11680,7 @@ const pv = /* @__PURE__ */ k.forwardRef(function(e, r) {
|
|
|
11680
11680
|
descriptionClassName: v?.descriptionClassName,
|
|
11681
11681
|
invert: s,
|
|
11682
11682
|
visibleToasts: b,
|
|
11683
|
-
closeButton: (Jt = v?.closeButton) != null ? Jt :
|
|
11683
|
+
closeButton: (Jt = v?.closeButton) != null ? Jt : l,
|
|
11684
11684
|
interacting: Q,
|
|
11685
11685
|
position: Z,
|
|
11686
11686
|
style: v?.style,
|
|
@@ -11702,7 +11702,7 @@ const pv = /* @__PURE__ */ k.forwardRef(function(e, r) {
|
|
|
11702
11702
|
}));
|
|
11703
11703
|
});
|
|
11704
11704
|
function ob({ ...t }) {
|
|
11705
|
-
return /* @__PURE__ */
|
|
11705
|
+
return /* @__PURE__ */ c(
|
|
11706
11706
|
pv,
|
|
11707
11707
|
{
|
|
11708
11708
|
position: "bottom-right",
|
|
@@ -11724,7 +11724,7 @@ function ob({ ...t }) {
|
|
|
11724
11724
|
}
|
|
11725
11725
|
);
|
|
11726
11726
|
}
|
|
11727
|
-
const lb = zt.Provider, cb = zt.Root, ub = zt.Trigger, gv = ma(({ className: t, sideOffset: e = 6, children: r, ...n }, s) => /* @__PURE__ */
|
|
11727
|
+
const lb = zt.Provider, cb = zt.Root, ub = zt.Trigger, gv = ma(({ className: t, sideOffset: e = 6, children: r, ...n }, s) => /* @__PURE__ */ c(zt.Portal, { children: /* @__PURE__ */ w(
|
|
11728
11728
|
zt.Content,
|
|
11729
11729
|
{
|
|
11730
11730
|
ref: s,
|
|
@@ -11739,12 +11739,12 @@ const lb = zt.Provider, cb = zt.Root, ub = zt.Trigger, gv = ma(({ className: t,
|
|
|
11739
11739
|
...n,
|
|
11740
11740
|
children: [
|
|
11741
11741
|
r,
|
|
11742
|
-
/* @__PURE__ */
|
|
11742
|
+
/* @__PURE__ */ c(zt.Arrow, { className: "fill-foreground" })
|
|
11743
11743
|
]
|
|
11744
11744
|
}
|
|
11745
11745
|
) }));
|
|
11746
11746
|
gv.displayName = zt.Content.displayName;
|
|
11747
|
-
const yv = ({ logo: t, children: e, footer: r, className: n }) => /* @__PURE__ */
|
|
11747
|
+
const yv = ({ logo: t, children: e, footer: r, className: n }) => /* @__PURE__ */ c("div", { className: "flex min-h-screen items-center justify-center bg-gradient-to-br from-[--surface-1] via-[--surface-2] to-[--surface-1] px-4 py-12", children: /* @__PURE__ */ w(
|
|
11748
11748
|
"div",
|
|
11749
11749
|
{
|
|
11750
11750
|
className: C(
|
|
@@ -11754,9 +11754,9 @@ const yv = ({ logo: t, children: e, footer: r, className: n }) => /* @__PURE__ *
|
|
|
11754
11754
|
n
|
|
11755
11755
|
),
|
|
11756
11756
|
children: [
|
|
11757
|
-
t && /* @__PURE__ */
|
|
11758
|
-
/* @__PURE__ */
|
|
11759
|
-
r && /* @__PURE__ */
|
|
11757
|
+
t && /* @__PURE__ */ c("div", { className: "flex justify-center", children: t.href ? /* @__PURE__ */ c("a", { href: t.href, className: "focus-visible:outline-none focus-visible:ring-2", children: /* @__PURE__ */ c("img", { src: t.src, alt: t.alt, className: "h-10 w-auto" }) }) : /* @__PURE__ */ c("img", { src: t.src, alt: t.alt, className: "h-10 w-auto" }) }),
|
|
11758
|
+
/* @__PURE__ */ c("div", { className: "flex flex-col gap-4", children: e }),
|
|
11759
|
+
r && /* @__PURE__ */ c("div", { className: "border-t border-[--border-1] pt-4 text-center text-xs text-[--text-2]", children: r })
|
|
11760
11760
|
]
|
|
11761
11761
|
}
|
|
11762
11762
|
) });
|
|
@@ -11767,9 +11767,9 @@ function db({
|
|
|
11767
11767
|
separator: r,
|
|
11768
11768
|
renderLink: n
|
|
11769
11769
|
}) {
|
|
11770
|
-
const s = r ?? /* @__PURE__ */
|
|
11771
|
-
return /* @__PURE__ */
|
|
11772
|
-
const o = i === t.length - 1,
|
|
11770
|
+
const s = r ?? /* @__PURE__ */ c(Wn, { className: "h-4 w-4 text-[color:var(--oniratec-label-secondary)]" });
|
|
11771
|
+
return /* @__PURE__ */ c("nav", { "aria-label": "Breadcrumb", className: e, children: /* @__PURE__ */ c("ol", { className: "flex flex-wrap items-center gap-2 text-sm", children: t.map((a, i) => {
|
|
11772
|
+
const o = i === t.length - 1, l = /* @__PURE__ */ c(
|
|
11773
11773
|
"span",
|
|
11774
11774
|
{
|
|
11775
11775
|
className: C(
|
|
@@ -11780,8 +11780,8 @@ function db({
|
|
|
11780
11780
|
}
|
|
11781
11781
|
), u = "inline-flex items-center gap-1 rounded-md focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[color:var(--oniratec-focus)] focus-visible:ring-offset-2 focus-visible:ring-offset-[color:var(--oniratec-fill-primary)]";
|
|
11782
11782
|
return /* @__PURE__ */ w("li", { className: "flex items-center gap-2", children: [
|
|
11783
|
-
o ? /* @__PURE__ */
|
|
11784
|
-
!o && /* @__PURE__ */
|
|
11783
|
+
o ? /* @__PURE__ */ c("span", { "aria-current": "page", children: l }) : n ? n({ item: a, className: u, children: l }) : a.href ? /* @__PURE__ */ c("a", { href: a.href, className: u, children: l }) : /* @__PURE__ */ c("button", { type: "button", onClick: a.onClick, className: u, children: l }),
|
|
11784
|
+
!o && /* @__PURE__ */ c("span", { "aria-hidden": "true", children: s })
|
|
11785
11785
|
] }, `${a.label}-${i}`);
|
|
11786
11786
|
}) }) });
|
|
11787
11787
|
}
|
|
@@ -11794,20 +11794,20 @@ function fb({
|
|
|
11794
11794
|
cancelLabel: a = "Cancelar",
|
|
11795
11795
|
variant: i = "default",
|
|
11796
11796
|
onConfirm: o,
|
|
11797
|
-
loading:
|
|
11797
|
+
loading: l = !1
|
|
11798
11798
|
}) {
|
|
11799
|
-
return /* @__PURE__ */
|
|
11799
|
+
return /* @__PURE__ */ c(ry, { open: t, onOpenChange: e, children: /* @__PURE__ */ w(mu, { size: "sm", hideClose: !0, children: [
|
|
11800
11800
|
/* @__PURE__ */ w(pu, { children: [
|
|
11801
|
-
/* @__PURE__ */
|
|
11802
|
-
n && /* @__PURE__ */
|
|
11801
|
+
/* @__PURE__ */ c(yu, { children: r }),
|
|
11802
|
+
n && /* @__PURE__ */ c(vu, { children: n })
|
|
11803
11803
|
] }),
|
|
11804
11804
|
/* @__PURE__ */ w(gu, { children: [
|
|
11805
|
-
/* @__PURE__ */
|
|
11805
|
+
/* @__PURE__ */ c(
|
|
11806
11806
|
Ue,
|
|
11807
11807
|
{
|
|
11808
11808
|
variant: "secondary",
|
|
11809
11809
|
onClick: () => e(!1),
|
|
11810
|
-
disabled:
|
|
11810
|
+
disabled: l,
|
|
11811
11811
|
children: a
|
|
11812
11812
|
}
|
|
11813
11813
|
),
|
|
@@ -11818,9 +11818,9 @@ function fb({
|
|
|
11818
11818
|
onClick: async () => {
|
|
11819
11819
|
await o();
|
|
11820
11820
|
},
|
|
11821
|
-
disabled:
|
|
11821
|
+
disabled: l,
|
|
11822
11822
|
children: [
|
|
11823
|
-
|
|
11823
|
+
l && /* @__PURE__ */ c(pa, { className: "h-4 w-4 animate-spin" }),
|
|
11824
11824
|
s
|
|
11825
11825
|
]
|
|
11826
11826
|
}
|
|
@@ -11828,7 +11828,7 @@ function fb({
|
|
|
11828
11828
|
] })
|
|
11829
11829
|
] }) });
|
|
11830
11830
|
}
|
|
11831
|
-
const yo = "onira-sidebar-collapsed", vv = ({ to: t, children: e, className: r, onClick: n }) => /* @__PURE__ */
|
|
11831
|
+
const yo = "onira-sidebar-collapsed", vv = ({ to: t, children: e, className: r, onClick: n }) => /* @__PURE__ */ c("a", { href: t, className: r, onClick: n, children: e });
|
|
11832
11832
|
function bv({ item: t, collapsed: e, LinkComponent: r, onMobileClose: n }) {
|
|
11833
11833
|
const s = r ?? vv, a = t.icon;
|
|
11834
11834
|
return /* @__PURE__ */ w(
|
|
@@ -11844,7 +11844,7 @@ function bv({ item: t, collapsed: e, LinkComponent: r, onMobileClose: n }) {
|
|
|
11844
11844
|
),
|
|
11845
11845
|
onClick: n,
|
|
11846
11846
|
children: [
|
|
11847
|
-
a && /* @__PURE__ */
|
|
11847
|
+
a && /* @__PURE__ */ c(
|
|
11848
11848
|
a,
|
|
11849
11849
|
{
|
|
11850
11850
|
className: C(
|
|
@@ -11853,8 +11853,8 @@ function bv({ item: t, collapsed: e, LinkComponent: r, onMobileClose: n }) {
|
|
|
11853
11853
|
)
|
|
11854
11854
|
}
|
|
11855
11855
|
),
|
|
11856
|
-
!e && /* @__PURE__ */
|
|
11857
|
-
!e && t.badge !== void 0 && /* @__PURE__ */
|
|
11856
|
+
!e && /* @__PURE__ */ c("span", { className: "flex-1 truncate", children: t.label }),
|
|
11857
|
+
!e && t.badge !== void 0 && /* @__PURE__ */ c(Qo, { variant: "secondary", size: "sm", children: t.badge })
|
|
11858
11858
|
]
|
|
11859
11859
|
}
|
|
11860
11860
|
);
|
|
@@ -11876,22 +11876,22 @@ function vo({
|
|
|
11876
11876
|
n ? "justify-center px-2" : "gap-2"
|
|
11877
11877
|
),
|
|
11878
11878
|
children: [
|
|
11879
|
-
e && /* @__PURE__ */
|
|
11880
|
-
!n && r && /* @__PURE__ */
|
|
11879
|
+
e && /* @__PURE__ */ c("div", { className: "shrink-0", children: e }),
|
|
11880
|
+
!n && r && /* @__PURE__ */ c("span", { className: "truncate text-sm font-semibold text-foreground", children: r })
|
|
11881
11881
|
]
|
|
11882
11882
|
}
|
|
11883
11883
|
),
|
|
11884
|
-
/* @__PURE__ */
|
|
11885
|
-
!n && i.title && /* @__PURE__ */
|
|
11886
|
-
i.items.map((
|
|
11884
|
+
/* @__PURE__ */ c("nav", { className: "flex-1 overflow-y-auto px-2 py-3 space-y-4", children: t.map((i, o) => /* @__PURE__ */ w("div", { className: "space-y-1", children: [
|
|
11885
|
+
!n && i.title && /* @__PURE__ */ c("p", { className: "px-3 pb-1 text-xs font-semibold uppercase tracking-wider text-muted-foreground", children: i.title }),
|
|
11886
|
+
i.items.map((l) => /* @__PURE__ */ c(
|
|
11887
11887
|
bv,
|
|
11888
11888
|
{
|
|
11889
|
-
item:
|
|
11889
|
+
item: l,
|
|
11890
11890
|
collapsed: n,
|
|
11891
11891
|
LinkComponent: s,
|
|
11892
11892
|
onMobileClose: a
|
|
11893
11893
|
},
|
|
11894
|
-
|
|
11894
|
+
l.to
|
|
11895
11895
|
))
|
|
11896
11896
|
] }, o)) })
|
|
11897
11897
|
] });
|
|
@@ -11910,7 +11910,7 @@ function hb({
|
|
|
11910
11910
|
} catch {
|
|
11911
11911
|
return !1;
|
|
11912
11912
|
}
|
|
11913
|
-
}), [
|
|
11913
|
+
}), [l, u] = h.useState(!1), f = () => {
|
|
11914
11914
|
const d = !i;
|
|
11915
11915
|
o(d);
|
|
11916
11916
|
try {
|
|
@@ -11928,7 +11928,7 @@ function hb({
|
|
|
11928
11928
|
i ? "w-14" : "w-60"
|
|
11929
11929
|
),
|
|
11930
11930
|
children: [
|
|
11931
|
-
/* @__PURE__ */
|
|
11931
|
+
/* @__PURE__ */ c(
|
|
11932
11932
|
vo,
|
|
11933
11933
|
{
|
|
11934
11934
|
navSections: t,
|
|
@@ -11938,7 +11938,7 @@ function hb({
|
|
|
11938
11938
|
LinkComponent: a
|
|
11939
11939
|
}
|
|
11940
11940
|
),
|
|
11941
|
-
/* @__PURE__ */
|
|
11941
|
+
/* @__PURE__ */ c(
|
|
11942
11942
|
"button",
|
|
11943
11943
|
{
|
|
11944
11944
|
type: "button",
|
|
@@ -11947,14 +11947,14 @@ function hb({
|
|
|
11947
11947
|
"absolute -right-3 top-16 z-10 flex h-6 w-6 items-center justify-center rounded-full border border-border bg-background text-muted-foreground shadow-card-sm transition-colors hover:bg-accent hover:text-accent-foreground"
|
|
11948
11948
|
),
|
|
11949
11949
|
"aria-label": i ? "Expandir sidebar" : "Colapsar sidebar",
|
|
11950
|
-
children: i ? /* @__PURE__ */
|
|
11950
|
+
children: i ? /* @__PURE__ */ c(Wn, { className: "h-3 w-3" }) : /* @__PURE__ */ c(Zo, { className: "h-3 w-3" })
|
|
11951
11951
|
}
|
|
11952
11952
|
)
|
|
11953
11953
|
]
|
|
11954
11954
|
}
|
|
11955
11955
|
),
|
|
11956
|
-
|
|
11957
|
-
/* @__PURE__ */
|
|
11956
|
+
l && /* @__PURE__ */ w($s, { children: [
|
|
11957
|
+
/* @__PURE__ */ c(
|
|
11958
11958
|
"div",
|
|
11959
11959
|
{
|
|
11960
11960
|
className: "fixed inset-0 z-40 bg-black/50 md:hidden",
|
|
@@ -11962,16 +11962,16 @@ function hb({
|
|
|
11962
11962
|
}
|
|
11963
11963
|
),
|
|
11964
11964
|
/* @__PURE__ */ w("div", { className: "fixed inset-y-0 left-0 z-50 w-72 bg-card shadow-card-xl md:hidden", children: [
|
|
11965
|
-
/* @__PURE__ */
|
|
11965
|
+
/* @__PURE__ */ c("div", { className: "absolute right-3 top-3", children: /* @__PURE__ */ c(
|
|
11966
11966
|
"button",
|
|
11967
11967
|
{
|
|
11968
11968
|
type: "button",
|
|
11969
11969
|
onClick: () => u(!1),
|
|
11970
11970
|
className: "rounded-md p-1.5 text-muted-foreground hover:text-foreground",
|
|
11971
|
-
children: /* @__PURE__ */
|
|
11971
|
+
children: /* @__PURE__ */ c(Ur, { className: "h-5 w-5" })
|
|
11972
11972
|
}
|
|
11973
11973
|
) }),
|
|
11974
|
-
/* @__PURE__ */
|
|
11974
|
+
/* @__PURE__ */ c(
|
|
11975
11975
|
vo,
|
|
11976
11976
|
{
|
|
11977
11977
|
navSections: t,
|
|
@@ -11986,20 +11986,20 @@ function hb({
|
|
|
11986
11986
|
] }),
|
|
11987
11987
|
/* @__PURE__ */ w("div", { className: "flex flex-1 flex-col overflow-hidden", children: [
|
|
11988
11988
|
/* @__PURE__ */ w("header", { className: "flex h-14 shrink-0 items-center justify-between border-b border-border bg-card px-4 md:px-6", children: [
|
|
11989
|
-
/* @__PURE__ */
|
|
11989
|
+
/* @__PURE__ */ c(
|
|
11990
11990
|
"button",
|
|
11991
11991
|
{
|
|
11992
11992
|
type: "button",
|
|
11993
11993
|
className: "md:hidden rounded-md p-1.5 text-muted-foreground hover:text-foreground",
|
|
11994
11994
|
onClick: () => u(!0),
|
|
11995
11995
|
"aria-label": "Abrir menú",
|
|
11996
|
-
children: /* @__PURE__ */
|
|
11996
|
+
children: /* @__PURE__ */ c(ud, { className: "h-5 w-5" })
|
|
11997
11997
|
}
|
|
11998
11998
|
),
|
|
11999
|
-
/* @__PURE__ */
|
|
12000
|
-
n && /* @__PURE__ */
|
|
11999
|
+
/* @__PURE__ */ c("div", { className: "hidden md:block" }),
|
|
12000
|
+
n && /* @__PURE__ */ c("div", { className: "flex items-center gap-2", children: n })
|
|
12001
12001
|
] }),
|
|
12002
|
-
/* @__PURE__ */
|
|
12002
|
+
/* @__PURE__ */ c("main", { className: "flex-1 overflow-y-auto", children: s })
|
|
12003
12003
|
] })
|
|
12004
12004
|
] });
|
|
12005
12005
|
}
|
|
@@ -12018,14 +12018,14 @@ function xv({
|
|
|
12018
12018
|
onSortChange: a,
|
|
12019
12019
|
unsortedIcon: i = "muted",
|
|
12020
12020
|
sortMode: o = "single",
|
|
12021
|
-
manualSorting:
|
|
12021
|
+
manualSorting: l = !1,
|
|
12022
12022
|
emptyContent: u,
|
|
12023
12023
|
loadingContent: f,
|
|
12024
12024
|
errorContent: d,
|
|
12025
12025
|
isLoading: m = !1
|
|
12026
12026
|
}) {
|
|
12027
12027
|
const [p, y] = Zt(s), g = n !== void 0 ? n : p, b = bo(g), v = kn(() => new Map(t.map((x) => [x.key, x])), [t]), S = kn(() => {
|
|
12028
|
-
if (
|
|
12028
|
+
if (l || !r || b.length === 0) return e;
|
|
12029
12029
|
const x = [...e];
|
|
12030
12030
|
return x.sort((O, E) => {
|
|
12031
12031
|
for (const M of b) {
|
|
@@ -12039,7 +12039,7 @@ function xv({
|
|
|
12039
12039
|
}
|
|
12040
12040
|
return 0;
|
|
12041
12041
|
}), x;
|
|
12042
|
-
}, [e,
|
|
12042
|
+
}, [e, l, b, v, r]), _ = (x) => {
|
|
12043
12043
|
n === void 0 && y(x), a?.(x);
|
|
12044
12044
|
}, N = (x, O) => {
|
|
12045
12045
|
if (!(r && (x.sortable ?? !!(x.sortFn || x.sortValue)))) return;
|
|
@@ -12055,10 +12055,10 @@ function xv({
|
|
|
12055
12055
|
}
|
|
12056
12056
|
_({ columnId: x.key, direction: $ });
|
|
12057
12057
|
};
|
|
12058
|
-
return /* @__PURE__ */
|
|
12059
|
-
/* @__PURE__ */
|
|
12058
|
+
return /* @__PURE__ */ c("div", { className: "oniratec-data-table", children: /* @__PURE__ */ w("table", { className: "oniratec-data-table__table", children: [
|
|
12059
|
+
/* @__PURE__ */ c("thead", { className: "oniratec-data-table__head", children: /* @__PURE__ */ c("tr", { className: "oniratec-data-table__head-row", children: t.map((x) => {
|
|
12060
12060
|
const O = r && (x.sortable ?? !!(x.sortFn || x.sortValue)), M = b.find(($) => $.columnId === x.key)?.direction;
|
|
12061
|
-
return /* @__PURE__ */
|
|
12061
|
+
return /* @__PURE__ */ c(
|
|
12062
12062
|
"th",
|
|
12063
12063
|
{
|
|
12064
12064
|
scope: "col",
|
|
@@ -12071,7 +12071,7 @@ function xv({
|
|
|
12071
12071
|
onClick: ($) => N(x, $.shiftKey),
|
|
12072
12072
|
className: "oniratec-data-table__sort-button",
|
|
12073
12073
|
children: [
|
|
12074
|
-
/* @__PURE__ */
|
|
12074
|
+
/* @__PURE__ */ c("span", { className: "flex-1", children: x.header }),
|
|
12075
12075
|
/* @__PURE__ */ w(
|
|
12076
12076
|
"span",
|
|
12077
12077
|
{
|
|
@@ -12083,9 +12083,9 @@ function xv({
|
|
|
12083
12083
|
),
|
|
12084
12084
|
"aria-hidden": "true",
|
|
12085
12085
|
children: [
|
|
12086
|
-
M === "asc" && /* @__PURE__ */
|
|
12087
|
-
M === "desc" && /* @__PURE__ */
|
|
12088
|
-
!M && i !== "hidden" && /* @__PURE__ */
|
|
12086
|
+
M === "asc" && /* @__PURE__ */ c(Uo, { className: "h-4 w-4" }),
|
|
12087
|
+
M === "desc" && /* @__PURE__ */ c(zn, { className: "h-4 w-4" }),
|
|
12088
|
+
!M && i !== "hidden" && /* @__PURE__ */ c(dd, { className: "h-4 w-4" })
|
|
12089
12089
|
]
|
|
12090
12090
|
}
|
|
12091
12091
|
)
|
|
@@ -12096,11 +12096,11 @@ function xv({
|
|
|
12096
12096
|
x.key
|
|
12097
12097
|
);
|
|
12098
12098
|
}) }) }),
|
|
12099
|
-
/* @__PURE__ */
|
|
12099
|
+
/* @__PURE__ */ c("tbody", { className: "oniratec-data-table__divider", children: d && !m ? /* @__PURE__ */ c("tr", { children: /* @__PURE__ */ c("td", { colSpan: t.length, className: "oniratec-data-table__empty", children: d }) }) : m ? /* @__PURE__ */ c("tr", { children: /* @__PURE__ */ c("td", { colSpan: t.length, className: "oniratec-data-table__empty", children: f ?? "Cargando..." }) }) : S.length === 0 ? /* @__PURE__ */ c("tr", { children: /* @__PURE__ */ c("td", { colSpan: t.length, className: "oniratec-data-table__empty", children: u ?? "No hay datos disponibles." }) }) : S.map((x, O) => /* @__PURE__ */ c("tr", { className: "oniratec-data-table__row", children: t.map((E) => /* @__PURE__ */ c("td", { className: C("oniratec-data-table__td", E.className), children: E.render(x) }, E.key)) }, O)) })
|
|
12100
12100
|
] }) });
|
|
12101
12101
|
}
|
|
12102
12102
|
const kv = [5, 10, 25, 50], Nv = ({ value: t, onChange: e, options: r = kv }) => /* @__PURE__ */ w("div", { className: "flex items-center gap-2 text-[color:var(--oniratec-label-secondary)]", children: [
|
|
12103
|
-
/* @__PURE__ */
|
|
12103
|
+
/* @__PURE__ */ c("span", { children: "Mostrar" }),
|
|
12104
12104
|
/* @__PURE__ */ w(
|
|
12105
12105
|
Ua,
|
|
12106
12106
|
{
|
|
@@ -12109,12 +12109,12 @@ const kv = [5, 10, 25, 50], Nv = ({ value: t, onChange: e, options: r = kv }) =>
|
|
|
12109
12109
|
e(parseInt(n));
|
|
12110
12110
|
},
|
|
12111
12111
|
children: [
|
|
12112
|
-
/* @__PURE__ */
|
|
12113
|
-
/* @__PURE__ */
|
|
12112
|
+
/* @__PURE__ */ c(cs, { children: /* @__PURE__ */ c(ja, {}) }),
|
|
12113
|
+
/* @__PURE__ */ c(us, { children: (r ?? []).map((n) => /* @__PURE__ */ c(ds, { value: n.toString(), children: String(n) }, n)) })
|
|
12114
12114
|
]
|
|
12115
12115
|
}
|
|
12116
12116
|
),
|
|
12117
|
-
/* @__PURE__ */
|
|
12117
|
+
/* @__PURE__ */ c("span", { children: "por página" })
|
|
12118
12118
|
] }), mb = ({ page: t, pageSize: e, total: r, onPageChange: n, onPageSizeChange: s }) => {
|
|
12119
12119
|
const a = Math.ceil(r / e);
|
|
12120
12120
|
if (a <= 1 && r <= e)
|
|
@@ -12127,9 +12127,9 @@ const kv = [5, 10, 25, 50], Nv = ({ value: t, onChange: e, options: r = kv }) =>
|
|
|
12127
12127
|
" de ",
|
|
12128
12128
|
a
|
|
12129
12129
|
] }),
|
|
12130
|
-
/* @__PURE__ */
|
|
12130
|
+
/* @__PURE__ */ c(Nv, { value: e, onChange: s }),
|
|
12131
12131
|
/* @__PURE__ */ w("div", { className: "flex gap-2", children: [
|
|
12132
|
-
/* @__PURE__ */
|
|
12132
|
+
/* @__PURE__ */ c(
|
|
12133
12133
|
"button",
|
|
12134
12134
|
{
|
|
12135
12135
|
disabled: t === 0,
|
|
@@ -12139,7 +12139,7 @@ const kv = [5, 10, 25, 50], Nv = ({ value: t, onChange: e, options: r = kv }) =>
|
|
|
12139
12139
|
children: "Anterior"
|
|
12140
12140
|
}
|
|
12141
12141
|
),
|
|
12142
|
-
/* @__PURE__ */
|
|
12142
|
+
/* @__PURE__ */ c(
|
|
12143
12143
|
"button",
|
|
12144
12144
|
{
|
|
12145
12145
|
disabled: t + 1 >= a,
|
|
@@ -12161,7 +12161,7 @@ function Sv({
|
|
|
12161
12161
|
showReset: a = !0,
|
|
12162
12162
|
className: i,
|
|
12163
12163
|
layout: o = "inline",
|
|
12164
|
-
actions:
|
|
12164
|
+
actions: l
|
|
12165
12165
|
}) {
|
|
12166
12166
|
const u = (m, p) => {
|
|
12167
12167
|
r({ ...e, [m]: p });
|
|
@@ -12174,12 +12174,12 @@ function Sv({
|
|
|
12174
12174
|
i
|
|
12175
12175
|
),
|
|
12176
12176
|
children: [
|
|
12177
|
-
/* @__PURE__ */
|
|
12177
|
+
/* @__PURE__ */ c("div", { className: d, children: t.map((m) => /* @__PURE__ */ w("div", { className: "flex flex-col gap-2", children: [
|
|
12178
12178
|
/* @__PURE__ */ w("div", { className: "flex flex-col gap-1", children: [
|
|
12179
|
-
/* @__PURE__ */
|
|
12180
|
-
m.helperText && /* @__PURE__ */
|
|
12179
|
+
/* @__PURE__ */ c("span", { className: "text-sm font-semibold text-[color:var(--text-1)]", children: m.label }),
|
|
12180
|
+
m.helperText && /* @__PURE__ */ c("span", { className: "text-xs text-[color:var(--text-2)]", children: m.helperText })
|
|
12181
12181
|
] }),
|
|
12182
|
-
m.type === "text" && /* @__PURE__ */
|
|
12182
|
+
m.type === "text" && /* @__PURE__ */ c(
|
|
12183
12183
|
In,
|
|
12184
12184
|
{
|
|
12185
12185
|
placeholder: m.placeholder,
|
|
@@ -12195,12 +12195,12 @@ function Sv({
|
|
|
12195
12195
|
onValueChange: (p) => u(m.id, p),
|
|
12196
12196
|
disabled: m.disabled,
|
|
12197
12197
|
children: [
|
|
12198
|
-
/* @__PURE__ */
|
|
12199
|
-
/* @__PURE__ */
|
|
12198
|
+
/* @__PURE__ */ c(cs, { children: /* @__PURE__ */ c(ja, { placeholder: m.placeholder ?? "Seleccionar" }) }),
|
|
12199
|
+
/* @__PURE__ */ c(us, { children: m.options.map((p) => /* @__PURE__ */ c(ds, { value: p.value, children: p.label }, p.value)) })
|
|
12200
12200
|
]
|
|
12201
12201
|
}
|
|
12202
12202
|
),
|
|
12203
|
-
m.type === "async-select" && /* @__PURE__ */
|
|
12203
|
+
m.type === "async-select" && /* @__PURE__ */ c(
|
|
12204
12204
|
Nu,
|
|
12205
12205
|
{
|
|
12206
12206
|
value: e[m.id] ?? "",
|
|
@@ -12219,7 +12219,7 @@ function Sv({
|
|
|
12219
12219
|
disabled: m.disabled
|
|
12220
12220
|
}
|
|
12221
12221
|
),
|
|
12222
|
-
m.type === "toggle" && /* @__PURE__ */
|
|
12222
|
+
m.type === "toggle" && /* @__PURE__ */ c(
|
|
12223
12223
|
hs,
|
|
12224
12224
|
{
|
|
12225
12225
|
checked: e[m.id] ?? !1,
|
|
@@ -12229,7 +12229,7 @@ function Sv({
|
|
|
12229
12229
|
label: m.description
|
|
12230
12230
|
}
|
|
12231
12231
|
),
|
|
12232
|
-
m.type === "date" && /* @__PURE__ */
|
|
12232
|
+
m.type === "date" && /* @__PURE__ */ c(
|
|
12233
12233
|
Va,
|
|
12234
12234
|
{
|
|
12235
12235
|
value: e[m.id] ?? null,
|
|
@@ -12242,9 +12242,9 @@ function Sv({
|
|
|
12242
12242
|
}
|
|
12243
12243
|
)
|
|
12244
12244
|
] }, m.id)) }),
|
|
12245
|
-
(f ||
|
|
12246
|
-
f && /* @__PURE__ */
|
|
12247
|
-
|
|
12245
|
+
(f || l) && /* @__PURE__ */ w("div", { className: "mt-4 flex flex-wrap items-center justify-between gap-3", children: [
|
|
12246
|
+
f && /* @__PURE__ */ c(Ue, { type: "button", variant: "ghost", onClick: n, children: s }),
|
|
12247
|
+
l && /* @__PURE__ */ c("div", { className: "flex items-center gap-2", children: l })
|
|
12248
12248
|
] })
|
|
12249
12249
|
]
|
|
12250
12250
|
}
|
|
@@ -12259,7 +12259,7 @@ function Cv({
|
|
|
12259
12259
|
onApply: a,
|
|
12260
12260
|
applyLabel: i = "Aplicar filtros",
|
|
12261
12261
|
closeLabel: o = "Cerrar",
|
|
12262
|
-
className:
|
|
12262
|
+
className: l
|
|
12263
12263
|
}) {
|
|
12264
12264
|
const u = zo(), f = e ? `${u}-description` : void 0, d = n, m = Qu(
|
|
12265
12265
|
(p) => {
|
|
@@ -12279,7 +12279,7 @@ function Cv({
|
|
|
12279
12279
|
return document.body.style.overflow = "hidden", () => {
|
|
12280
12280
|
document.body.style.overflow = p;
|
|
12281
12281
|
};
|
|
12282
|
-
}, [d]), d ? /* @__PURE__ */
|
|
12282
|
+
}, [d]), d ? /* @__PURE__ */ c("div", { className: "fixed inset-0 z-50 flex items-center justify-center bg-black/40 p-4", children: /* @__PURE__ */ w(
|
|
12283
12283
|
"div",
|
|
12284
12284
|
{
|
|
12285
12285
|
role: "dialog",
|
|
@@ -12288,15 +12288,15 @@ function Cv({
|
|
|
12288
12288
|
"aria-describedby": f,
|
|
12289
12289
|
className: C(
|
|
12290
12290
|
"w-full max-w-3xl rounded-2xl border border-[color:var(--border-1)] bg-[color:var(--surface-1)] p-6 shadow-[var(--shadow-card-lg)]",
|
|
12291
|
-
|
|
12291
|
+
l
|
|
12292
12292
|
),
|
|
12293
12293
|
children: [
|
|
12294
12294
|
/* @__PURE__ */ w("div", { className: "flex items-start justify-between gap-4", children: [
|
|
12295
12295
|
/* @__PURE__ */ w("div", { className: "space-y-2", children: [
|
|
12296
|
-
/* @__PURE__ */
|
|
12297
|
-
e && /* @__PURE__ */
|
|
12296
|
+
/* @__PURE__ */ c("h2", { id: u, className: "text-lg font-semibold text-[color:var(--text-1)]", children: t }),
|
|
12297
|
+
e && /* @__PURE__ */ c("p", { id: f, className: "text-sm text-[color:var(--text-2)]", children: e })
|
|
12298
12298
|
] }),
|
|
12299
|
-
/* @__PURE__ */
|
|
12299
|
+
/* @__PURE__ */ c(
|
|
12300
12300
|
"button",
|
|
12301
12301
|
{
|
|
12302
12302
|
type: "button",
|
|
@@ -12308,14 +12308,14 @@ function Cv({
|
|
|
12308
12308
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[color:var(--focus)]"
|
|
12309
12309
|
),
|
|
12310
12310
|
"aria-label": o,
|
|
12311
|
-
children: /* @__PURE__ */
|
|
12311
|
+
children: /* @__PURE__ */ c(Ur, { className: "h-4 w-4" })
|
|
12312
12312
|
}
|
|
12313
12313
|
)
|
|
12314
12314
|
] }),
|
|
12315
|
-
/* @__PURE__ */
|
|
12315
|
+
/* @__PURE__ */ c("div", { className: "mt-6", children: r }),
|
|
12316
12316
|
/* @__PURE__ */ w("div", { className: "mt-6 flex flex-wrap items-center justify-end gap-2", children: [
|
|
12317
|
-
/* @__PURE__ */
|
|
12318
|
-
/* @__PURE__ */
|
|
12317
|
+
/* @__PURE__ */ c(Ue, { type: "button", variant: "ghost", onClick: () => m(!1), children: o }),
|
|
12318
|
+
/* @__PURE__ */ c(
|
|
12319
12319
|
Ue,
|
|
12320
12320
|
{
|
|
12321
12321
|
type: "button",
|
|
@@ -12340,10 +12340,10 @@ function pb({
|
|
|
12340
12340
|
actionLabel: a = "Importar",
|
|
12341
12341
|
disabled: i = !1,
|
|
12342
12342
|
loading: o = !1,
|
|
12343
|
-
summary:
|
|
12343
|
+
summary: l,
|
|
12344
12344
|
onImport: u
|
|
12345
12345
|
}) {
|
|
12346
|
-
const [f, d] = Zt([]), m = f[0] ?? null, p = kn(() =>
|
|
12346
|
+
const [f, d] = Zt([]), m = f[0] ?? null, p = kn(() => l ? `Resultado: ${l.created} creados, ${l.updated} actualizados, ${l.failed} fallidos` : null, [l]), y = async () => {
|
|
12347
12347
|
!m || i || o || await u(m);
|
|
12348
12348
|
};
|
|
12349
12349
|
return /* @__PURE__ */ w(
|
|
@@ -12355,10 +12355,10 @@ function pb({
|
|
|
12355
12355
|
),
|
|
12356
12356
|
children: [
|
|
12357
12357
|
/* @__PURE__ */ w("header", { className: "space-y-1", children: [
|
|
12358
|
-
/* @__PURE__ */
|
|
12359
|
-
/* @__PURE__ */
|
|
12358
|
+
/* @__PURE__ */ c("h3", { className: "text-sm font-semibold text-slate-900", children: t }),
|
|
12359
|
+
/* @__PURE__ */ c("p", { className: "text-sm text-slate-600", children: e })
|
|
12360
12360
|
] }),
|
|
12361
|
-
/* @__PURE__ */
|
|
12361
|
+
/* @__PURE__ */ c(
|
|
12362
12362
|
Za,
|
|
12363
12363
|
{
|
|
12364
12364
|
files: f,
|
|
@@ -12371,8 +12371,8 @@ function pb({
|
|
|
12371
12371
|
disabled: i || o
|
|
12372
12372
|
}
|
|
12373
12373
|
),
|
|
12374
|
-
p && /* @__PURE__ */
|
|
12375
|
-
/* @__PURE__ */
|
|
12374
|
+
p && /* @__PURE__ */ c("p", { className: "text-sm text-slate-700", children: p }),
|
|
12375
|
+
/* @__PURE__ */ c("div", { className: "flex justify-end", children: /* @__PURE__ */ c(
|
|
12376
12376
|
Ue,
|
|
12377
12377
|
{
|
|
12378
12378
|
type: "button",
|
|
@@ -12399,34 +12399,34 @@ function gb({
|
|
|
12399
12399
|
loading: i = !1,
|
|
12400
12400
|
className: o
|
|
12401
12401
|
}) {
|
|
12402
|
-
const
|
|
12402
|
+
const l = r !== void 0 && r >= 0, u = r !== void 0 && r < 0;
|
|
12403
12403
|
return i ? /* @__PURE__ */ w(fi, { className: C("p-6", o), children: [
|
|
12404
|
-
/* @__PURE__ */
|
|
12405
|
-
/* @__PURE__ */
|
|
12404
|
+
/* @__PURE__ */ c(mo, { className: "mb-2 h-4 w-24" }),
|
|
12405
|
+
/* @__PURE__ */ c(mo, { className: "h-8 w-32" })
|
|
12406
12406
|
] }) : /* @__PURE__ */ w(fi, { className: o, children: [
|
|
12407
|
-
/* @__PURE__ */
|
|
12408
|
-
/* @__PURE__ */
|
|
12409
|
-
s && /* @__PURE__ */
|
|
12407
|
+
/* @__PURE__ */ c(Vd, { children: /* @__PURE__ */ w("div", { className: "flex items-center justify-between", children: [
|
|
12408
|
+
/* @__PURE__ */ c($d, { className: "text-sm font-medium text-muted-foreground", children: t }),
|
|
12409
|
+
s && /* @__PURE__ */ c("div", { className: "flex h-8 w-8 items-center justify-center rounded-md bg-primary/10", children: /* @__PURE__ */ c(s, { className: "h-4 w-4 text-primary" }) })
|
|
12410
12410
|
] }) }),
|
|
12411
12411
|
/* @__PURE__ */ w(Wd, { children: [
|
|
12412
|
-
/* @__PURE__ */
|
|
12412
|
+
/* @__PURE__ */ c("div", { className: "text-2xl font-bold text-foreground", children: e }),
|
|
12413
12413
|
(r !== void 0 || a) && /* @__PURE__ */ w("div", { className: "mt-1 flex items-center gap-1.5", children: [
|
|
12414
12414
|
r !== void 0 && /* @__PURE__ */ w(
|
|
12415
12415
|
"span",
|
|
12416
12416
|
{
|
|
12417
12417
|
className: C(
|
|
12418
12418
|
"inline-flex items-center gap-0.5 text-xs font-medium",
|
|
12419
|
-
|
|
12419
|
+
l && "text-emerald-600",
|
|
12420
12420
|
u && "text-red-600"
|
|
12421
12421
|
),
|
|
12422
12422
|
children: [
|
|
12423
|
-
|
|
12423
|
+
l ? /* @__PURE__ */ c(fd, { className: "h-3 w-3" }) : /* @__PURE__ */ c(hd, { className: "h-3 w-3" }),
|
|
12424
12424
|
Math.abs(r),
|
|
12425
12425
|
"%"
|
|
12426
12426
|
]
|
|
12427
12427
|
}
|
|
12428
12428
|
),
|
|
12429
|
-
a && /* @__PURE__ */
|
|
12429
|
+
a && /* @__PURE__ */ c("p", { className: "text-xs text-muted-foreground", children: n ?? a })
|
|
12430
12430
|
] })
|
|
12431
12431
|
] })
|
|
12432
12432
|
] });
|
|
@@ -12434,10 +12434,10 @@ function gb({
|
|
|
12434
12434
|
function yb({ title: t, description: e, actions: r, className: n }) {
|
|
12435
12435
|
return /* @__PURE__ */ w("div", { className: C("flex items-start justify-between gap-4", n), children: [
|
|
12436
12436
|
/* @__PURE__ */ w("div", { className: "flex flex-col gap-1", children: [
|
|
12437
|
-
/* @__PURE__ */
|
|
12438
|
-
e && /* @__PURE__ */
|
|
12437
|
+
/* @__PURE__ */ c("h1", { className: "text-2xl font-semibold tracking-tight text-foreground", children: t }),
|
|
12438
|
+
e && /* @__PURE__ */ c("p", { className: "text-sm text-muted-foreground", children: e })
|
|
12439
12439
|
] }),
|
|
12440
|
-
r && /* @__PURE__ */
|
|
12440
|
+
r && /* @__PURE__ */ c("div", { className: "flex shrink-0 items-center gap-2", children: r })
|
|
12441
12441
|
] });
|
|
12442
12442
|
}
|
|
12443
12443
|
function vb({
|
|
@@ -12582,10 +12582,10 @@ class yt extends Error {
|
|
|
12582
12582
|
else if (i.path.length === 0)
|
|
12583
12583
|
n._errors.push(r(i));
|
|
12584
12584
|
else {
|
|
12585
|
-
let o = n,
|
|
12586
|
-
for (;
|
|
12587
|
-
const u = i.path[
|
|
12588
|
-
|
|
12585
|
+
let o = n, l = 0;
|
|
12586
|
+
for (; l < i.path.length; ) {
|
|
12587
|
+
const u = i.path[l];
|
|
12588
|
+
l === i.path.length - 1 ? (o[u] = o[u] || { _errors: [] }, o[u]._errors.push(r(i))) : o[u] = o[u] || { _errors: [] }, o = o[u], l++;
|
|
12589
12589
|
}
|
|
12590
12590
|
}
|
|
12591
12591
|
};
|
|
@@ -12691,8 +12691,8 @@ const Ov = (t) => {
|
|
|
12691
12691
|
message: s.message
|
|
12692
12692
|
};
|
|
12693
12693
|
let o = "";
|
|
12694
|
-
const
|
|
12695
|
-
for (const u of
|
|
12694
|
+
const l = n.filter((u) => !!u).slice().reverse();
|
|
12695
|
+
for (const u of l)
|
|
12696
12696
|
o = u(i, { data: e, defaultError: o }).message;
|
|
12697
12697
|
return {
|
|
12698
12698
|
...s,
|
|
@@ -12796,8 +12796,8 @@ function K(t) {
|
|
|
12796
12796
|
if (e && (r || n))
|
|
12797
12797
|
throw new Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);
|
|
12798
12798
|
return e ? { errorMap: e, description: s } : { errorMap: (i, o) => {
|
|
12799
|
-
const { message:
|
|
12800
|
-
return i.code === "invalid_enum_value" ? { message:
|
|
12799
|
+
const { message: l } = t;
|
|
12800
|
+
return i.code === "invalid_enum_value" ? { message: l ?? o.defaultError } : typeof o.data > "u" ? { message: l ?? n ?? o.defaultError } : i.code !== "invalid_type" ? { message: o.defaultError } : { message: l ?? r ?? o.defaultError };
|
|
12801
12801
|
}, description: s };
|
|
12802
12802
|
}
|
|
12803
12803
|
class re {
|
|
@@ -12921,7 +12921,7 @@ class re {
|
|
|
12921
12921
|
code: T.custom,
|
|
12922
12922
|
...n(s)
|
|
12923
12923
|
});
|
|
12924
|
-
return typeof Promise < "u" && i instanceof Promise ? i.then((
|
|
12924
|
+
return typeof Promise < "u" && i instanceof Promise ? i.then((l) => l ? !0 : (o(), !1)) : i ? !0 : (o(), !1);
|
|
12925
12925
|
});
|
|
12926
12926
|
}
|
|
12927
12927
|
refinement(e, r) {
|
|
@@ -14060,10 +14060,10 @@ class ye extends re {
|
|
|
14060
14060
|
if (!(this._def.catchall instanceof At && this._def.unknownKeys === "strip"))
|
|
14061
14061
|
for (const u in s.data)
|
|
14062
14062
|
i.includes(u) || o.push(u);
|
|
14063
|
-
const
|
|
14063
|
+
const l = [];
|
|
14064
14064
|
for (const u of i) {
|
|
14065
14065
|
const f = a[u], d = s.data[u];
|
|
14066
|
-
|
|
14066
|
+
l.push({
|
|
14067
14067
|
key: { status: "valid", value: u },
|
|
14068
14068
|
value: f._parse(new Rt(s, d, s.path, u)),
|
|
14069
14069
|
alwaysSet: u in s.data
|
|
@@ -14073,7 +14073,7 @@ class ye extends re {
|
|
|
14073
14073
|
const u = this._def.unknownKeys;
|
|
14074
14074
|
if (u === "passthrough")
|
|
14075
14075
|
for (const f of o)
|
|
14076
|
-
|
|
14076
|
+
l.push({
|
|
14077
14077
|
key: { status: "valid", value: f },
|
|
14078
14078
|
value: { status: "valid", value: s.data[f] }
|
|
14079
14079
|
});
|
|
@@ -14087,7 +14087,7 @@ class ye extends re {
|
|
|
14087
14087
|
const u = this._def.catchall;
|
|
14088
14088
|
for (const f of o) {
|
|
14089
14089
|
const d = s.data[f];
|
|
14090
|
-
|
|
14090
|
+
l.push({
|
|
14091
14091
|
key: { status: "valid", value: f },
|
|
14092
14092
|
value: u._parse(
|
|
14093
14093
|
new Rt(s, d, s.path, f)
|
|
@@ -14099,7 +14099,7 @@ class ye extends re {
|
|
|
14099
14099
|
}
|
|
14100
14100
|
return s.common.async ? Promise.resolve().then(async () => {
|
|
14101
14101
|
const u = [];
|
|
14102
|
-
for (const f of
|
|
14102
|
+
for (const f of l) {
|
|
14103
14103
|
const d = await f.key, m = await f.value;
|
|
14104
14104
|
u.push({
|
|
14105
14105
|
key: d,
|
|
@@ -14108,7 +14108,7 @@ class ye extends re {
|
|
|
14108
14108
|
});
|
|
14109
14109
|
}
|
|
14110
14110
|
return u;
|
|
14111
|
-
}).then((u) => Ve.mergeObjectSync(n, u)) : Ve.mergeObjectSync(n,
|
|
14111
|
+
}).then((u) => Ve.mergeObjectSync(n, u)) : Ve.mergeObjectSync(n, l);
|
|
14112
14112
|
}
|
|
14113
14113
|
get shape() {
|
|
14114
14114
|
return this._def.shape();
|
|
@@ -14362,7 +14362,7 @@ class Fn extends re {
|
|
|
14362
14362
|
{
|
|
14363
14363
|
let a;
|
|
14364
14364
|
const i = [];
|
|
14365
|
-
for (const
|
|
14365
|
+
for (const l of n) {
|
|
14366
14366
|
const u = {
|
|
14367
14367
|
...r,
|
|
14368
14368
|
common: {
|
|
@@ -14370,7 +14370,7 @@ class Fn extends re {
|
|
|
14370
14370
|
issues: []
|
|
14371
14371
|
},
|
|
14372
14372
|
parent: null
|
|
14373
|
-
}, f =
|
|
14373
|
+
}, f = l._parseSync({
|
|
14374
14374
|
data: r.data,
|
|
14375
14375
|
path: r.path,
|
|
14376
14376
|
parent: u
|
|
@@ -14381,7 +14381,7 @@ class Fn extends re {
|
|
|
14381
14381
|
}
|
|
14382
14382
|
if (a)
|
|
14383
14383
|
return r.common.issues.push(...a.ctx.common.issues), a.result;
|
|
14384
|
-
const o = i.map((
|
|
14384
|
+
const o = i.map((l) => new yt(l));
|
|
14385
14385
|
return R(r, {
|
|
14386
14386
|
code: T.invalid_union,
|
|
14387
14387
|
unionErrors: o
|
|
@@ -14404,10 +14404,10 @@ function la(t, e) {
|
|
|
14404
14404
|
if (r === I.object && n === I.object) {
|
|
14405
14405
|
const s = ne.objectKeys(e), a = ne.objectKeys(t).filter((o) => s.indexOf(o) !== -1), i = { ...t, ...e };
|
|
14406
14406
|
for (const o of a) {
|
|
14407
|
-
const
|
|
14408
|
-
if (!
|
|
14407
|
+
const l = la(t[o], e[o]);
|
|
14408
|
+
if (!l.valid)
|
|
14409
14409
|
return { valid: !1 };
|
|
14410
|
-
i[o] =
|
|
14410
|
+
i[o] = l.data;
|
|
14411
14411
|
}
|
|
14412
14412
|
return { valid: !0, data: i };
|
|
14413
14413
|
} else if (r === I.array && n === I.array) {
|
|
@@ -14415,10 +14415,10 @@ function la(t, e) {
|
|
|
14415
14415
|
return { valid: !1 };
|
|
14416
14416
|
const s = [];
|
|
14417
14417
|
for (let a = 0; a < t.length; a++) {
|
|
14418
|
-
const i = t[a], o = e[a],
|
|
14419
|
-
if (!
|
|
14418
|
+
const i = t[a], o = e[a], l = la(i, o);
|
|
14419
|
+
if (!l.valid)
|
|
14420
14420
|
return { valid: !1 };
|
|
14421
|
-
s.push(
|
|
14421
|
+
s.push(l.data);
|
|
14422
14422
|
}
|
|
14423
14423
|
return { valid: !0, data: s };
|
|
14424
14424
|
} else return r === I.date && n === I.date && +t == +e ? { valid: !0, data: t } : { valid: !1 };
|
|
@@ -14486,8 +14486,8 @@ class Ht extends re {
|
|
|
14486
14486
|
type: "array"
|
|
14487
14487
|
}), r.dirty());
|
|
14488
14488
|
const a = [...n.data].map((i, o) => {
|
|
14489
|
-
const
|
|
14490
|
-
return
|
|
14489
|
+
const l = this._def.items[o] || this._def.rest;
|
|
14490
|
+
return l ? l._parse(new Rt(n, i, n.path, o)) : null;
|
|
14491
14491
|
}).filter((i) => !!i);
|
|
14492
14492
|
return n.common.async ? Promise.all(a).then((i) => Ve.mergeArray(r, i)) : Ve.mergeArray(r, a);
|
|
14493
14493
|
}
|
|
@@ -14526,15 +14526,15 @@ class Do extends re {
|
|
|
14526
14526
|
expected: I.map,
|
|
14527
14527
|
received: n.parsedType
|
|
14528
14528
|
}), q;
|
|
14529
|
-
const s = this._def.keyType, a = this._def.valueType, i = [...n.data.entries()].map(([o,
|
|
14529
|
+
const s = this._def.keyType, a = this._def.valueType, i = [...n.data.entries()].map(([o, l], u) => ({
|
|
14530
14530
|
key: s._parse(new Rt(n, o, n.path, [u, "key"])),
|
|
14531
|
-
value: a._parse(new Rt(n,
|
|
14531
|
+
value: a._parse(new Rt(n, l, n.path, [u, "value"]))
|
|
14532
14532
|
}));
|
|
14533
14533
|
if (n.common.async) {
|
|
14534
14534
|
const o = /* @__PURE__ */ new Map();
|
|
14535
14535
|
return Promise.resolve().then(async () => {
|
|
14536
|
-
for (const
|
|
14537
|
-
const u = await
|
|
14536
|
+
for (const l of i) {
|
|
14537
|
+
const u = await l.key, f = await l.value;
|
|
14538
14538
|
if (u.status === "aborted" || f.status === "aborted")
|
|
14539
14539
|
return q;
|
|
14540
14540
|
(u.status === "dirty" || f.status === "dirty") && r.dirty(), o.set(u.value, f.value);
|
|
@@ -14543,8 +14543,8 @@ class Do extends re {
|
|
|
14543
14543
|
});
|
|
14544
14544
|
} else {
|
|
14545
14545
|
const o = /* @__PURE__ */ new Map();
|
|
14546
|
-
for (const
|
|
14547
|
-
const u =
|
|
14546
|
+
for (const l of i) {
|
|
14547
|
+
const u = l.key, f = l.value;
|
|
14548
14548
|
if (u.status === "aborted" || f.status === "aborted")
|
|
14549
14549
|
return q;
|
|
14550
14550
|
(u.status === "dirty" || f.status === "dirty") && r.dirty(), o.set(u.value, f.value);
|
|
@@ -14585,17 +14585,17 @@ class Br extends re {
|
|
|
14585
14585
|
message: s.maxSize.message
|
|
14586
14586
|
}), r.dirty());
|
|
14587
14587
|
const a = this._def.valueType;
|
|
14588
|
-
function i(
|
|
14588
|
+
function i(l) {
|
|
14589
14589
|
const u = /* @__PURE__ */ new Set();
|
|
14590
|
-
for (const f of
|
|
14590
|
+
for (const f of l) {
|
|
14591
14591
|
if (f.status === "aborted")
|
|
14592
14592
|
return q;
|
|
14593
14593
|
f.status === "dirty" && r.dirty(), u.add(f.value);
|
|
14594
14594
|
}
|
|
14595
14595
|
return { status: r.value, value: u };
|
|
14596
14596
|
}
|
|
14597
|
-
const o = [...n.data.values()].map((
|
|
14598
|
-
return n.common.async ? Promise.all(o).then((
|
|
14597
|
+
const o = [...n.data.values()].map((l, u) => a._parse(new Rt(n, l, n.path, u)));
|
|
14598
|
+
return n.common.async ? Promise.all(o).then((l) => i(l)) : i(o);
|
|
14599
14599
|
}
|
|
14600
14600
|
min(e, r) {
|
|
14601
14601
|
return new Br({
|
|
@@ -14796,12 +14796,12 @@ class wr extends re {
|
|
|
14796
14796
|
return Promise.resolve(i).then(async (o) => {
|
|
14797
14797
|
if (r.value === "aborted")
|
|
14798
14798
|
return q;
|
|
14799
|
-
const
|
|
14799
|
+
const l = await this._def.schema._parseAsync({
|
|
14800
14800
|
data: o,
|
|
14801
14801
|
path: n.path,
|
|
14802
14802
|
parent: n
|
|
14803
14803
|
});
|
|
14804
|
-
return
|
|
14804
|
+
return l.status === "aborted" ? q : l.status === "dirty" || r.value === "dirty" ? Pr(l.value) : l;
|
|
14805
14805
|
});
|
|
14806
14806
|
{
|
|
14807
14807
|
if (r.value === "aborted")
|
|
@@ -14816,10 +14816,10 @@ class wr extends re {
|
|
|
14816
14816
|
}
|
|
14817
14817
|
if (s.type === "refinement") {
|
|
14818
14818
|
const i = (o) => {
|
|
14819
|
-
const
|
|
14819
|
+
const l = s.refinement(o, a);
|
|
14820
14820
|
if (n.common.async)
|
|
14821
|
-
return Promise.resolve(
|
|
14822
|
-
if (
|
|
14821
|
+
return Promise.resolve(l);
|
|
14822
|
+
if (l instanceof Promise)
|
|
14823
14823
|
throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");
|
|
14824
14824
|
return o;
|
|
14825
14825
|
};
|
|
@@ -15111,14 +15111,14 @@ var Fu = (t) => /^\w*$/.test(t), fa = (t) => t === void 0, l0 = (t) => Array.isA
|
|
|
15111
15111
|
const s = Fu(e) ? [e] : Lu(e), a = s.length, i = a - 1;
|
|
15112
15112
|
for (; ++n < a; ) {
|
|
15113
15113
|
const o = s[n];
|
|
15114
|
-
let
|
|
15114
|
+
let l = r;
|
|
15115
15115
|
if (n !== i) {
|
|
15116
15116
|
const u = t[o];
|
|
15117
|
-
|
|
15117
|
+
l = Yt(u) || Array.isArray(u) ? u : isNaN(+s[n + 1]) ? {} : [];
|
|
15118
15118
|
}
|
|
15119
15119
|
if (o === "__proto__" || o === "constructor" || o === "prototype")
|
|
15120
15120
|
return;
|
|
15121
|
-
t[o] =
|
|
15121
|
+
t[o] = l, t = t[o];
|
|
15122
15122
|
}
|
|
15123
15123
|
};
|
|
15124
15124
|
const Fo = {
|
|
@@ -15147,7 +15147,7 @@ var u0 = (t, e, r, n = !0) => {
|
|
|
15147
15147
|
};
|
|
15148
15148
|
const Vu = typeof window < "u" ? k.useLayoutEffect : k.useEffect;
|
|
15149
15149
|
function d0(t) {
|
|
15150
|
-
const e = Ja(), { control: r = e.control, disabled: n, name: s, exact: a } = t || {}, [i, o] = k.useState(r._formState),
|
|
15150
|
+
const e = Ja(), { control: r = e.control, disabled: n, name: s, exact: a } = t || {}, [i, o] = k.useState(r._formState), l = k.useRef({
|
|
15151
15151
|
isDirty: !1,
|
|
15152
15152
|
isLoading: !1,
|
|
15153
15153
|
dirtyFields: !1,
|
|
@@ -15159,7 +15159,7 @@ function d0(t) {
|
|
|
15159
15159
|
});
|
|
15160
15160
|
return Vu(() => r._subscribe({
|
|
15161
15161
|
name: s,
|
|
15162
|
-
formState:
|
|
15162
|
+
formState: l.current,
|
|
15163
15163
|
exact: a,
|
|
15164
15164
|
callback: (u) => {
|
|
15165
15165
|
!n && o({
|
|
@@ -15168,8 +15168,8 @@ function d0(t) {
|
|
|
15168
15168
|
});
|
|
15169
15169
|
}
|
|
15170
15170
|
}), [s, n, a]), k.useEffect(() => {
|
|
15171
|
-
|
|
15172
|
-
}, [r]), k.useMemo(() => u0(i, r,
|
|
15171
|
+
l.current.isValid && r._setValid(!0);
|
|
15172
|
+
}, [r]), k.useMemo(() => u0(i, r, l.current, !1), [i, r]);
|
|
15173
15173
|
}
|
|
15174
15174
|
var f0 = (t) => typeof t == "string", Vo = (t, e, r, n, s) => f0(t) ? De(r, t, s) : Array.isArray(t) ? t.map((a) => De(r, a)) : r, $o = (t) => qa(t) || !Mu(t);
|
|
15175
15175
|
function xn(t, e, r = /* @__PURE__ */ new WeakSet()) {
|
|
@@ -15196,17 +15196,17 @@ function xn(t, e, r = /* @__PURE__ */ new WeakSet()) {
|
|
|
15196
15196
|
return !0;
|
|
15197
15197
|
}
|
|
15198
15198
|
function $u(t) {
|
|
15199
|
-
const e = Ja(), { control: r = e.control, name: n, defaultValue: s, disabled: a, exact: i, compute: o } = t || {},
|
|
15199
|
+
const e = Ja(), { control: r = e.control, name: n, defaultValue: s, disabled: a, exact: i, compute: o } = t || {}, l = k.useRef(s), u = k.useRef(o), f = k.useRef(void 0), d = k.useRef(r), m = k.useRef(n);
|
|
15200
15200
|
u.current = o;
|
|
15201
15201
|
const [p, y] = k.useState(() => {
|
|
15202
|
-
const N = r._getWatch(n,
|
|
15202
|
+
const N = r._getWatch(n, l.current);
|
|
15203
15203
|
return u.current ? u.current(N) : N;
|
|
15204
15204
|
}), g = k.useCallback((N) => {
|
|
15205
|
-
const x = Vo(n, r._names, N || r._formValues, !1,
|
|
15205
|
+
const x = Vo(n, r._names, N || r._formValues, !1, l.current);
|
|
15206
15206
|
return u.current ? u.current(x) : x;
|
|
15207
15207
|
}, [r._formValues, r._names, n]), b = k.useCallback((N) => {
|
|
15208
15208
|
if (!a) {
|
|
15209
|
-
const x = Vo(n, r._names, N || r._formValues, !1,
|
|
15209
|
+
const x = Vo(n, r._names, N || r._formValues, !1, l.current);
|
|
15210
15210
|
if (u.current) {
|
|
15211
15211
|
const O = u.current(x);
|
|
15212
15212
|
xn(O, f.current) || (y(O), f.current = O);
|
|
@@ -15233,7 +15233,7 @@ function $u(t) {
|
|
|
15233
15233
|
return _ !== null ? _ : p;
|
|
15234
15234
|
}
|
|
15235
15235
|
function h0(t) {
|
|
15236
|
-
const e = Ja(), { name: r, disabled: n, control: s = e.control, shouldUnregister: a, defaultValue: i, exact: o = !0 } = t,
|
|
15236
|
+
const e = Ja(), { name: r, disabled: n, control: s = e.control, shouldUnregister: a, defaultValue: i, exact: o = !0 } = t, l = a0(s._names.array, r), u = k.useMemo(() => De(s._formValues, r, De(s._defaultValues, r, i)), [s, r, i]), f = $u({
|
|
15237
15237
|
control: s,
|
|
15238
15238
|
name: r,
|
|
15239
15239
|
defaultValue: u,
|
|
@@ -15299,7 +15299,7 @@ function h0(t) {
|
|
|
15299
15299
|
}), [r, n, d.disabled, b, v, S, f]);
|
|
15300
15300
|
return k.useEffect(() => {
|
|
15301
15301
|
const N = s._options.shouldUnregister || a, x = p.current;
|
|
15302
|
-
x && x !== r && !
|
|
15302
|
+
x && x !== r && !l && s.unregister(x), s.register(r, {
|
|
15303
15303
|
...m.current.rules,
|
|
15304
15304
|
...Vs(m.current.disabled) ? { disabled: m.current.disabled } : {}
|
|
15305
15305
|
});
|
|
@@ -15311,10 +15311,10 @@ function h0(t) {
|
|
|
15311
15311
|
const E = Pu(De(s._options.defaultValues, r, m.current.defaultValue));
|
|
15312
15312
|
Po(s._defaultValues, r, E), fa(De(s._formValues, r)) && Po(s._formValues, r, E);
|
|
15313
15313
|
}
|
|
15314
|
-
return !
|
|
15315
|
-
(
|
|
15314
|
+
return !l && s.register(r), p.current = r, () => {
|
|
15315
|
+
(l ? N && !s._state.action : N) ? s.unregister(r) : O(r, !1);
|
|
15316
15316
|
};
|
|
15317
|
-
}, [r, s,
|
|
15317
|
+
}, [r, s, l, a]), k.useEffect(() => {
|
|
15318
15318
|
s._setDisabledField({
|
|
15319
15319
|
disabled: n,
|
|
15320
15320
|
name: r
|
|
@@ -15331,7 +15331,7 @@ function p0({
|
|
|
15331
15331
|
field: e
|
|
15332
15332
|
}) {
|
|
15333
15333
|
const [r, n] = Zt(!1);
|
|
15334
|
-
return /* @__PURE__ */
|
|
15334
|
+
return /* @__PURE__ */ c(
|
|
15335
15335
|
m0,
|
|
15336
15336
|
{
|
|
15337
15337
|
control: t.control,
|
|
@@ -15339,7 +15339,7 @@ function p0({
|
|
|
15339
15339
|
render: ({ field: s, fieldState: { error: a } }) => {
|
|
15340
15340
|
const i = (u) => e.normalize ? e.normalize(u) : u, o = () => {
|
|
15341
15341
|
e.deps?.onChangeTrigger && t.trigger(e.deps.onChangeTrigger);
|
|
15342
|
-
},
|
|
15342
|
+
}, l = {
|
|
15343
15343
|
className: e.className,
|
|
15344
15344
|
error: a?.message,
|
|
15345
15345
|
required: !e.schema?.isOptional?.()
|
|
@@ -15348,14 +15348,17 @@ function p0({
|
|
|
15348
15348
|
case "custom":
|
|
15349
15349
|
if (!e.render)
|
|
15350
15350
|
throw new Error(`Field ${e.name} marked as custom but has no render function`);
|
|
15351
|
-
return /* @__PURE__ */
|
|
15351
|
+
return /* @__PURE__ */ c("div", { className: e.className, children: e.render({ form: t }) });
|
|
15352
15352
|
/* =====================================================
|
|
15353
15353
|
INPUT / PASSWORD
|
|
15354
15354
|
===================================================== */
|
|
15355
15355
|
case "input":
|
|
15356
|
-
return /* @__PURE__ */ w(ht, { ...
|
|
15357
|
-
/* @__PURE__ */
|
|
15358
|
-
|
|
15356
|
+
return /* @__PURE__ */ w(ht, { ...l, children: [
|
|
15357
|
+
/* @__PURE__ */ w(mt, { children: [
|
|
15358
|
+
e.label,
|
|
15359
|
+
e.labelAddon
|
|
15360
|
+
] }),
|
|
15361
|
+
/* @__PURE__ */ c(rt, { children: /* @__PURE__ */ c(
|
|
15359
15362
|
In,
|
|
15360
15363
|
{
|
|
15361
15364
|
type: "text",
|
|
@@ -15367,13 +15370,16 @@ function p0({
|
|
|
15367
15370
|
onBlur: s.onBlur
|
|
15368
15371
|
}
|
|
15369
15372
|
) }),
|
|
15370
|
-
/* @__PURE__ */
|
|
15373
|
+
/* @__PURE__ */ c(nt, {})
|
|
15371
15374
|
] });
|
|
15372
15375
|
case "password":
|
|
15373
|
-
return /* @__PURE__ */ w(ht, { ...
|
|
15374
|
-
/* @__PURE__ */
|
|
15375
|
-
|
|
15376
|
-
|
|
15376
|
+
return /* @__PURE__ */ w(ht, { ...l, children: [
|
|
15377
|
+
/* @__PURE__ */ w(mt, { children: [
|
|
15378
|
+
e.label,
|
|
15379
|
+
e.labelAddon
|
|
15380
|
+
] }),
|
|
15381
|
+
/* @__PURE__ */ c(rt, { children: /* @__PURE__ */ w("div", { className: "relative flex w-full items-center", children: [
|
|
15382
|
+
/* @__PURE__ */ c(
|
|
15377
15383
|
In,
|
|
15378
15384
|
{
|
|
15379
15385
|
type: r ? "text" : "password",
|
|
@@ -15387,7 +15393,7 @@ function p0({
|
|
|
15387
15393
|
onBlur: s.onBlur
|
|
15388
15394
|
}
|
|
15389
15395
|
),
|
|
15390
|
-
/* @__PURE__ */
|
|
15396
|
+
/* @__PURE__ */ c(
|
|
15391
15397
|
Ue,
|
|
15392
15398
|
{
|
|
15393
15399
|
type: "button",
|
|
@@ -15395,19 +15401,22 @@ function p0({
|
|
|
15395
15401
|
className: "absolute right-3 flex items-center justify-center text-slate-400 hover:text-slate-600 focus:outline-none",
|
|
15396
15402
|
onClick: () => n(!r),
|
|
15397
15403
|
tabIndex: -1,
|
|
15398
|
-
children: r ? /* @__PURE__ */
|
|
15404
|
+
children: r ? /* @__PURE__ */ c(Bo, { className: "h-4 w-4" }) : /* @__PURE__ */ c(md, { className: "h-4 w-4" })
|
|
15399
15405
|
}
|
|
15400
15406
|
)
|
|
15401
15407
|
] }) }),
|
|
15402
|
-
/* @__PURE__ */
|
|
15408
|
+
/* @__PURE__ */ c(nt, {})
|
|
15403
15409
|
] });
|
|
15404
15410
|
/* =====================================================
|
|
15405
15411
|
TEXTAREA
|
|
15406
15412
|
===================================================== */
|
|
15407
15413
|
case "textarea":
|
|
15408
|
-
return /* @__PURE__ */ w(ht, { ...
|
|
15409
|
-
/* @__PURE__ */
|
|
15410
|
-
|
|
15414
|
+
return /* @__PURE__ */ w(ht, { ...l, children: [
|
|
15415
|
+
/* @__PURE__ */ w(mt, { children: [
|
|
15416
|
+
e.label,
|
|
15417
|
+
e.labelAddon
|
|
15418
|
+
] }),
|
|
15419
|
+
/* @__PURE__ */ c(rt, { children: /* @__PURE__ */ c(
|
|
15411
15420
|
"textarea",
|
|
15412
15421
|
{
|
|
15413
15422
|
className: "oniratec-field__textarea",
|
|
@@ -15420,15 +15429,18 @@ function p0({
|
|
|
15420
15429
|
onBlur: s.onBlur
|
|
15421
15430
|
}
|
|
15422
15431
|
) }),
|
|
15423
|
-
/* @__PURE__ */
|
|
15432
|
+
/* @__PURE__ */ c(nt, {})
|
|
15424
15433
|
] });
|
|
15425
15434
|
/* =====================================================
|
|
15426
15435
|
SELECT (Radix composable)
|
|
15427
15436
|
===================================================== */
|
|
15428
15437
|
case "select":
|
|
15429
|
-
return /* @__PURE__ */ w(ht, { ...
|
|
15430
|
-
/* @__PURE__ */
|
|
15431
|
-
|
|
15438
|
+
return /* @__PURE__ */ w(ht, { ...l, children: [
|
|
15439
|
+
/* @__PURE__ */ w(mt, { children: [
|
|
15440
|
+
e.label,
|
|
15441
|
+
e.labelAddon
|
|
15442
|
+
] }),
|
|
15443
|
+
/* @__PURE__ */ c(rt, { children: /* @__PURE__ */ w(
|
|
15432
15444
|
Ua,
|
|
15433
15445
|
{
|
|
15434
15446
|
value: s.value || void 0,
|
|
@@ -15436,17 +15448,20 @@ function p0({
|
|
|
15436
15448
|
s.onChange(i(u || void 0)), o();
|
|
15437
15449
|
},
|
|
15438
15450
|
children: [
|
|
15439
|
-
/* @__PURE__ */
|
|
15440
|
-
/* @__PURE__ */
|
|
15451
|
+
/* @__PURE__ */ c(cs, { children: /* @__PURE__ */ c(ja, {}) }),
|
|
15452
|
+
/* @__PURE__ */ c(us, { children: (e.options ?? []).map((u) => /* @__PURE__ */ c(ds, { value: String(u.value), children: u.label }, u.value)) })
|
|
15441
15453
|
]
|
|
15442
15454
|
}
|
|
15443
15455
|
) }),
|
|
15444
|
-
/* @__PURE__ */
|
|
15456
|
+
/* @__PURE__ */ c(nt, {})
|
|
15445
15457
|
] });
|
|
15446
15458
|
case "asyncSelect":
|
|
15447
|
-
return /* @__PURE__ */ w(ht, { ...
|
|
15448
|
-
/* @__PURE__ */
|
|
15449
|
-
|
|
15459
|
+
return /* @__PURE__ */ w(ht, { ...l, children: [
|
|
15460
|
+
/* @__PURE__ */ w(mt, { children: [
|
|
15461
|
+
e.label,
|
|
15462
|
+
e.labelAddon
|
|
15463
|
+
] }),
|
|
15464
|
+
/* @__PURE__ */ c(rt, { children: /* @__PURE__ */ c(
|
|
15450
15465
|
Nu,
|
|
15451
15466
|
{
|
|
15452
15467
|
value: s.value || void 0,
|
|
@@ -15466,15 +15481,18 @@ function p0({
|
|
|
15466
15481
|
hasError: !!a?.message
|
|
15467
15482
|
}
|
|
15468
15483
|
) }),
|
|
15469
|
-
/* @__PURE__ */
|
|
15484
|
+
/* @__PURE__ */ c(nt, {})
|
|
15470
15485
|
] });
|
|
15471
15486
|
/* =====================================================
|
|
15472
15487
|
TOGGLE
|
|
15473
15488
|
===================================================== */
|
|
15474
15489
|
case "toggle":
|
|
15475
|
-
return /* @__PURE__ */ w(ht, { ...
|
|
15476
|
-
/* @__PURE__ */
|
|
15477
|
-
|
|
15490
|
+
return /* @__PURE__ */ w(ht, { ...l, children: [
|
|
15491
|
+
/* @__PURE__ */ w(mt, { children: [
|
|
15492
|
+
e.label,
|
|
15493
|
+
e.labelAddon
|
|
15494
|
+
] }),
|
|
15495
|
+
/* @__PURE__ */ c(rt, { children: /* @__PURE__ */ c(
|
|
15478
15496
|
hs,
|
|
15479
15497
|
{
|
|
15480
15498
|
checked: !!s.value,
|
|
@@ -15483,15 +15501,15 @@ function p0({
|
|
|
15483
15501
|
}
|
|
15484
15502
|
}
|
|
15485
15503
|
) }),
|
|
15486
|
-
/* @__PURE__ */
|
|
15504
|
+
/* @__PURE__ */ c(nt, {})
|
|
15487
15505
|
] });
|
|
15488
15506
|
/* =====================================================
|
|
15489
15507
|
CHECKBOX (nativo)
|
|
15490
15508
|
===================================================== */
|
|
15491
15509
|
case "checkbox":
|
|
15492
|
-
return /* @__PURE__ */ w(ht, { ...
|
|
15493
|
-
/* @__PURE__ */
|
|
15494
|
-
/* @__PURE__ */
|
|
15510
|
+
return /* @__PURE__ */ w(ht, { ...l, children: [
|
|
15511
|
+
/* @__PURE__ */ c(rt, { children: /* @__PURE__ */ w("label", { className: "oniratec-checkbox", children: [
|
|
15512
|
+
/* @__PURE__ */ c(
|
|
15495
15513
|
"input",
|
|
15496
15514
|
{
|
|
15497
15515
|
type: "checkbox",
|
|
@@ -15502,17 +15520,20 @@ function p0({
|
|
|
15502
15520
|
onBlur: s.onBlur
|
|
15503
15521
|
}
|
|
15504
15522
|
),
|
|
15505
|
-
/* @__PURE__ */
|
|
15523
|
+
/* @__PURE__ */ c("span", { children: e.label })
|
|
15506
15524
|
] }) }),
|
|
15507
|
-
/* @__PURE__ */
|
|
15525
|
+
/* @__PURE__ */ c(nt, {})
|
|
15508
15526
|
] });
|
|
15509
15527
|
/* =====================================================
|
|
15510
15528
|
DATE PICKER
|
|
15511
15529
|
===================================================== */
|
|
15512
15530
|
case "date":
|
|
15513
|
-
return /* @__PURE__ */ w(ht, { ...
|
|
15514
|
-
/* @__PURE__ */
|
|
15515
|
-
|
|
15531
|
+
return /* @__PURE__ */ w(ht, { ...l, children: [
|
|
15532
|
+
/* @__PURE__ */ w(mt, { children: [
|
|
15533
|
+
e.label,
|
|
15534
|
+
e.labelAddon
|
|
15535
|
+
] }),
|
|
15536
|
+
/* @__PURE__ */ c(rt, { children: /* @__PURE__ */ c(
|
|
15516
15537
|
Va,
|
|
15517
15538
|
{
|
|
15518
15539
|
value: s.value,
|
|
@@ -15526,16 +15547,19 @@ function p0({
|
|
|
15526
15547
|
isInvalid: !!a?.message
|
|
15527
15548
|
}
|
|
15528
15549
|
) }),
|
|
15529
|
-
/* @__PURE__ */
|
|
15550
|
+
/* @__PURE__ */ c(nt, {})
|
|
15530
15551
|
] });
|
|
15531
15552
|
/* =====================================================
|
|
15532
15553
|
FILE UPLOAD
|
|
15533
15554
|
===================================================== */
|
|
15534
15555
|
case "fileUpload": {
|
|
15535
15556
|
const u = Array.isArray(s.value) ? s.value : [];
|
|
15536
|
-
return /* @__PURE__ */ w(ht, { ...
|
|
15537
|
-
/* @__PURE__ */
|
|
15538
|
-
|
|
15557
|
+
return /* @__PURE__ */ w(ht, { ...l, children: [
|
|
15558
|
+
/* @__PURE__ */ w(mt, { children: [
|
|
15559
|
+
e.label,
|
|
15560
|
+
e.labelAddon
|
|
15561
|
+
] }),
|
|
15562
|
+
/* @__PURE__ */ c(rt, { children: /* @__PURE__ */ c(
|
|
15539
15563
|
Za,
|
|
15540
15564
|
{
|
|
15541
15565
|
files: u,
|
|
@@ -15550,7 +15574,7 @@ function p0({
|
|
|
15550
15574
|
defaultPreviewUrl: e.defaultPreviewUrl
|
|
15551
15575
|
}
|
|
15552
15576
|
) }),
|
|
15553
|
-
/* @__PURE__ */
|
|
15577
|
+
/* @__PURE__ */ c(nt, {})
|
|
15554
15578
|
] });
|
|
15555
15579
|
}
|
|
15556
15580
|
}
|
|
@@ -15571,16 +15595,16 @@ function y0({
|
|
|
15571
15595
|
children: i
|
|
15572
15596
|
}) {
|
|
15573
15597
|
const o = $u({ control: e.control });
|
|
15574
|
-
return /* @__PURE__ */
|
|
15598
|
+
return /* @__PURE__ */ c(c0, { ...e, children: /* @__PURE__ */ w(
|
|
15575
15599
|
"form",
|
|
15576
15600
|
{
|
|
15577
|
-
onSubmit: e.handleSubmit(r, (
|
|
15601
|
+
onSubmit: e.handleSubmit(r, (l) => n(l)),
|
|
15578
15602
|
className: C("space-y-8", a),
|
|
15579
15603
|
children: [
|
|
15580
|
-
t.sections.map((
|
|
15604
|
+
t.sections.map((l, u) => /* @__PURE__ */ w(ii, { children: [
|
|
15581
15605
|
/* @__PURE__ */ w("section", { className: "space-y-4", children: [
|
|
15582
|
-
/* @__PURE__ */
|
|
15583
|
-
/* @__PURE__ */
|
|
15606
|
+
/* @__PURE__ */ c("h3", { className: "oniratec-form__section-title", children: l.title }),
|
|
15607
|
+
/* @__PURE__ */ c("div", { className: "space-y-4", children: l.fields.map((f, d) => {
|
|
15584
15608
|
const m = g0(f).filter((g) => !g.hidden?.(o));
|
|
15585
15609
|
if (!m.length) return null;
|
|
15586
15610
|
const p = m.reduce((g, b) => g + (b.colSpan ?? 1), 0), y = p > 1 ? C(
|
|
@@ -15589,26 +15613,26 @@ function y0({
|
|
|
15589
15613
|
p === 3 && "grid-cols-3",
|
|
15590
15614
|
p === 4 && "grid-cols-4"
|
|
15591
15615
|
) : "";
|
|
15592
|
-
return /* @__PURE__ */
|
|
15616
|
+
return /* @__PURE__ */ c("div", { className: y, children: m.map((g) => /* @__PURE__ */ c(
|
|
15593
15617
|
"div",
|
|
15594
15618
|
{
|
|
15595
15619
|
className: g.colSpan ? `col-span-${g.colSpan}` : void 0,
|
|
15596
|
-
children: /* @__PURE__ */
|
|
15620
|
+
children: /* @__PURE__ */ c(p0, { form: e, field: g })
|
|
15597
15621
|
},
|
|
15598
15622
|
g.name
|
|
15599
15623
|
)) }, d);
|
|
15600
15624
|
}) })
|
|
15601
|
-
] },
|
|
15602
|
-
u < t.sections.length - 1 && /* @__PURE__ */
|
|
15603
|
-
] }, `fragment-${
|
|
15625
|
+
] }, l.title),
|
|
15626
|
+
u < t.sections.length - 1 && /* @__PURE__ */ c(ii, { children: /* @__PURE__ */ c("hr", { className: "oniratec-form__separator" }) })
|
|
15627
|
+
] }, `fragment-${l.title}`)),
|
|
15604
15628
|
i,
|
|
15605
|
-
/* @__PURE__ */
|
|
15629
|
+
/* @__PURE__ */ c("div", { className: "oniratec-form__actions", children: /* @__PURE__ */ c(Ue, { type: "submit", loading: e.formState.isSubmitting, children: s }) })
|
|
15606
15630
|
]
|
|
15607
15631
|
}
|
|
15608
15632
|
) });
|
|
15609
15633
|
}
|
|
15610
15634
|
function xb(t) {
|
|
15611
|
-
return /* @__PURE__ */
|
|
15635
|
+
return /* @__PURE__ */ c(y0, { ...t });
|
|
15612
15636
|
}
|
|
15613
15637
|
const v0 = (t) => t === "center" ? "text-center" : t === "right" ? "text-right" : "text-left", b0 = (t) => {
|
|
15614
15638
|
if (t)
|
|
@@ -15621,7 +15645,7 @@ function x0(t) {
|
|
|
15621
15645
|
return {
|
|
15622
15646
|
key: n.id,
|
|
15623
15647
|
header: n.header,
|
|
15624
|
-
render: n.cell ?? ((
|
|
15648
|
+
render: n.cell ?? ((l) => String(n.accessor?.(l) ?? "")),
|
|
15625
15649
|
className: i || void 0,
|
|
15626
15650
|
headerClassName: o || void 0,
|
|
15627
15651
|
sortable: n.sortable ?? !!(n.sortFn || n.accessor),
|
|
@@ -15634,7 +15658,7 @@ function x0(t) {
|
|
|
15634
15658
|
}
|
|
15635
15659
|
function kb(t, e, r) {
|
|
15636
15660
|
const { columns: n } = x0(t);
|
|
15637
|
-
return /* @__PURE__ */
|
|
15661
|
+
return /* @__PURE__ */ c(xv, { columns: n, data: e, ...r });
|
|
15638
15662
|
}
|
|
15639
15663
|
const k0 = (t) => t.reduce((e, r) => r.type === "toggle" ? (e[r.id] = r.value ?? !1, e) : r.type === "date" ? (e[r.id] = r.value ?? null, e) : (e[r.id] = r.value ?? "", e), {});
|
|
15640
15664
|
function Nb(t) {
|
|
@@ -15651,7 +15675,7 @@ function Nb(t) {
|
|
|
15651
15675
|
};
|
|
15652
15676
|
}
|
|
15653
15677
|
function N0(t, e, r, n) {
|
|
15654
|
-
return /* @__PURE__ */
|
|
15678
|
+
return /* @__PURE__ */ c(
|
|
15655
15679
|
Sv,
|
|
15656
15680
|
{
|
|
15657
15681
|
filters: t.filters,
|
|
@@ -15667,7 +15691,7 @@ function N0(t, e, r, n) {
|
|
|
15667
15691
|
);
|
|
15668
15692
|
}
|
|
15669
15693
|
function Sb(t, e, r, n) {
|
|
15670
|
-
return /* @__PURE__ */
|
|
15694
|
+
return /* @__PURE__ */ c(
|
|
15671
15695
|
Cv,
|
|
15672
15696
|
{
|
|
15673
15697
|
title: n.title,
|