@sigtes/ui 0.3.1 → 0.3.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/Button-Blvd-lqJ.cjs +6 -0
- package/dist/Button-CjoUyDk1.js +329 -0
- package/dist/components/calendar/DatePicker.d.ts +3 -1
- package/dist/components/table/DataTable.d.ts +2 -1
- package/dist/components/table/ProductsTable.d.ts +1 -1
- package/dist/components.cjs.js +1 -1
- package/dist/components.es.js +455 -451
- package/dist/globals.css +1 -1
- package/dist/pages.cjs.js +6 -1
- package/dist/pages.es.js +1982 -35
- package/package.json +1 -1
- package/dist/providers.es-Dbo7mSRf.js +0 -2285
- package/dist/providers.es-c63iqHg7.cjs +0 -11
package/dist/components.es.js
CHANGED
|
@@ -1,40 +1,40 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { j as r, B as j, c as s, b as be
|
|
3
|
-
import { useSortable as
|
|
4
|
-
import { CSS as
|
|
5
|
-
import { flexRender as
|
|
2
|
+
import { j as r, B as j, c as s, b as be } from "./Button-CjoUyDk1.js";
|
|
3
|
+
import { useSortable as _e, SortableContext as st, verticalListSortingStrategy as it, arrayMove as dt } from "@dnd-kit/sortable";
|
|
4
|
+
import { CSS as lt } from "@dnd-kit/utilities";
|
|
5
|
+
import { flexRender as Te, useReactTable as ct, getFacetedUniqueValues as ut, getFacetedRowModel as mt, getSortedRowModel as ft, getPaginationRowModel as gt, getFilteredRowModel as ht, getCoreRowModel as xt } from "@tanstack/react-table";
|
|
6
6
|
import * as N from "react";
|
|
7
|
-
import { useState as S, useId as
|
|
8
|
-
import { useSensors as
|
|
9
|
-
import { CheckIcon as ue, CircleIcon as
|
|
10
|
-
import { Slot as
|
|
11
|
-
import { cva as
|
|
7
|
+
import { useState as S, useId as pt, useMemo as bt, useEffect as A, useRef as vt } from "react";
|
|
8
|
+
import { useSensors as wt, useSensor as ne, MouseSensor as yt, TouchSensor as jt, KeyboardSensor as Nt, DndContext as Ct, closestCenter as kt } from "@dnd-kit/core";
|
|
9
|
+
import { CheckIcon as ue, CircleIcon as St, ChevronRightIcon as ze, ChevronDownIcon as me, ChevronUpIcon as Dt, Search as Mt, FilterIcon as Pt, ChevronLeftIcon as _t, Calendar as Fe, XIcon as Tt, SearchIcon as zt, ChevronsUpDown as Ft, Check as Ie, PlusCircle as It } from "lucide-react";
|
|
10
|
+
import { Slot as Oe } from "@radix-ui/react-slot";
|
|
11
|
+
import { cva as Ot } from "class-variance-authority";
|
|
12
12
|
import "tailwind-merge";
|
|
13
13
|
import * as v from "@radix-ui/react-dropdown-menu";
|
|
14
|
-
import { IconDotsVertical as
|
|
14
|
+
import { IconDotsVertical as Wt, IconChevronDown as ve, IconLayoutColumns as Yt, IconChevronsLeft as Rt, IconChevronLeft as Et, IconChevronRight as Lt, IconChevronsRight as Vt, IconGripVertical as qt } from "@tabler/icons-react";
|
|
15
15
|
import * as y from "@radix-ui/react-select";
|
|
16
|
-
import { restrictToVerticalAxis as
|
|
17
|
-
import * as
|
|
18
|
-
import { getDefaultClassNames as
|
|
19
|
-
import { TZDate as
|
|
16
|
+
import { restrictToVerticalAxis as Ht } from "@dnd-kit/modifiers";
|
|
17
|
+
import * as Gt from "@radix-ui/react-label";
|
|
18
|
+
import { getDefaultClassNames as We, DayPicker as $t, TZDate as q } from "react-day-picker";
|
|
19
|
+
import { TZDate as ao } from "react-day-picker";
|
|
20
20
|
import * as Q from "@radix-ui/react-popover";
|
|
21
21
|
import * as we from "@radix-ui/react-checkbox";
|
|
22
22
|
import * as fe from "@radix-ui/react-collapsible";
|
|
23
23
|
import * as D from "@radix-ui/react-dialog";
|
|
24
24
|
import { Command as T } from "cmdk";
|
|
25
|
-
import * as
|
|
26
|
-
import { FormProvider as
|
|
27
|
-
import { useTheme as
|
|
28
|
-
import { Toaster as
|
|
29
|
-
import { toast as
|
|
25
|
+
import * as At from "@radix-ui/react-separator";
|
|
26
|
+
import { FormProvider as Bt, Controller as Qt, useFormContext as Xt, useFormState as Ut } from "react-hook-form";
|
|
27
|
+
import { useTheme as Jt } from "next-themes";
|
|
28
|
+
import { Toaster as Kt } from "sonner";
|
|
29
|
+
import { toast as so } from "sonner";
|
|
30
30
|
import * as X from "@radix-ui/react-tabs";
|
|
31
31
|
import * as ge from "recharts";
|
|
32
|
-
function
|
|
32
|
+
function Zt({
|
|
33
33
|
row: e,
|
|
34
34
|
onRowClick: t = () => {
|
|
35
35
|
}
|
|
36
36
|
}) {
|
|
37
|
-
const { transform: n, transition: a, setNodeRef: o, isDragging: i } =
|
|
37
|
+
const { transform: n, transition: a, setNodeRef: o, isDragging: i } = _e({
|
|
38
38
|
id: e.original.id
|
|
39
39
|
});
|
|
40
40
|
return /* @__PURE__ */ r.jsx(
|
|
@@ -44,14 +44,14 @@ function en({
|
|
|
44
44
|
"data-dragging": i,
|
|
45
45
|
ref: o,
|
|
46
46
|
style: {
|
|
47
|
-
transform:
|
|
47
|
+
transform: lt.Transform.toString(n),
|
|
48
48
|
transition: a,
|
|
49
49
|
cursor: "grab"
|
|
50
50
|
},
|
|
51
51
|
onClick: () => {
|
|
52
52
|
t(e.original);
|
|
53
53
|
},
|
|
54
|
-
children: e.getVisibleCells().map((l) => /* @__PURE__ */ r.jsx(
|
|
54
|
+
children: e.getVisibleCells().map((l) => /* @__PURE__ */ r.jsx(Re, { className: "cursor-pointer", children: Te(l.column.columnDef.cell, l.getContext()) }, l.id))
|
|
55
55
|
}
|
|
56
56
|
);
|
|
57
57
|
}
|
|
@@ -60,7 +60,7 @@ function ye({
|
|
|
60
60
|
}) {
|
|
61
61
|
return /* @__PURE__ */ r.jsx(v.Root, { "data-slot": "dropdown-menu", ...e });
|
|
62
62
|
}
|
|
63
|
-
function
|
|
63
|
+
function Zr({
|
|
64
64
|
...e
|
|
65
65
|
}) {
|
|
66
66
|
return /* @__PURE__ */ r.jsx(v.Portal, { "data-slot": "dropdown-menu-portal", ...e });
|
|
@@ -94,12 +94,12 @@ function je({
|
|
|
94
94
|
}
|
|
95
95
|
) });
|
|
96
96
|
}
|
|
97
|
-
function
|
|
97
|
+
function ea({
|
|
98
98
|
...e
|
|
99
99
|
}) {
|
|
100
100
|
return /* @__PURE__ */ r.jsx(v.Group, { "data-slot": "dropdown-menu-group", ...e });
|
|
101
101
|
}
|
|
102
|
-
function
|
|
102
|
+
function ta({
|
|
103
103
|
className: e,
|
|
104
104
|
inset: t,
|
|
105
105
|
variant: n = "default",
|
|
@@ -119,7 +119,7 @@ function na({
|
|
|
119
119
|
}
|
|
120
120
|
);
|
|
121
121
|
}
|
|
122
|
-
function
|
|
122
|
+
function en({
|
|
123
123
|
className: e,
|
|
124
124
|
children: t,
|
|
125
125
|
checked: n,
|
|
@@ -142,7 +142,7 @@ function tn({
|
|
|
142
142
|
}
|
|
143
143
|
);
|
|
144
144
|
}
|
|
145
|
-
function
|
|
145
|
+
function tn({
|
|
146
146
|
...e
|
|
147
147
|
}) {
|
|
148
148
|
return /* @__PURE__ */ r.jsx(
|
|
@@ -153,7 +153,7 @@ function nn({
|
|
|
153
153
|
}
|
|
154
154
|
);
|
|
155
155
|
}
|
|
156
|
-
function
|
|
156
|
+
function nn({
|
|
157
157
|
className: e,
|
|
158
158
|
children: t,
|
|
159
159
|
...n
|
|
@@ -168,13 +168,13 @@ function rn({
|
|
|
168
168
|
),
|
|
169
169
|
...n,
|
|
170
170
|
children: [
|
|
171
|
-
/* @__PURE__ */ r.jsx("span", { className: "pointer-events-none absolute left-2 flex size-3.5 items-center justify-center", children: /* @__PURE__ */ r.jsx(v.ItemIndicator, { children: /* @__PURE__ */ r.jsx(
|
|
171
|
+
/* @__PURE__ */ r.jsx("span", { className: "pointer-events-none absolute left-2 flex size-3.5 items-center justify-center", children: /* @__PURE__ */ r.jsx(v.ItemIndicator, { children: /* @__PURE__ */ r.jsx(St, { className: "size-2 fill-current" }) }) }),
|
|
172
172
|
t
|
|
173
173
|
]
|
|
174
174
|
}
|
|
175
175
|
);
|
|
176
176
|
}
|
|
177
|
-
function
|
|
177
|
+
function na({
|
|
178
178
|
className: e,
|
|
179
179
|
inset: t,
|
|
180
180
|
...n
|
|
@@ -192,7 +192,7 @@ function ra({
|
|
|
192
192
|
}
|
|
193
193
|
);
|
|
194
194
|
}
|
|
195
|
-
function
|
|
195
|
+
function ra({
|
|
196
196
|
className: e,
|
|
197
197
|
...t
|
|
198
198
|
}) {
|
|
@@ -205,7 +205,7 @@ function aa({
|
|
|
205
205
|
}
|
|
206
206
|
);
|
|
207
207
|
}
|
|
208
|
-
function
|
|
208
|
+
function aa({
|
|
209
209
|
className: e,
|
|
210
210
|
...t
|
|
211
211
|
}) {
|
|
@@ -221,12 +221,12 @@ function oa({
|
|
|
221
221
|
}
|
|
222
222
|
);
|
|
223
223
|
}
|
|
224
|
-
function
|
|
224
|
+
function oa({
|
|
225
225
|
...e
|
|
226
226
|
}) {
|
|
227
227
|
return /* @__PURE__ */ r.jsx(v.Sub, { "data-slot": "dropdown-menu-sub", ...e });
|
|
228
228
|
}
|
|
229
|
-
function
|
|
229
|
+
function sa({
|
|
230
230
|
className: e,
|
|
231
231
|
inset: t,
|
|
232
232
|
children: n,
|
|
@@ -244,12 +244,12 @@ function ia({
|
|
|
244
244
|
...a,
|
|
245
245
|
children: [
|
|
246
246
|
n,
|
|
247
|
-
/* @__PURE__ */ r.jsx(
|
|
247
|
+
/* @__PURE__ */ r.jsx(ze, { className: "ml-auto size-4" })
|
|
248
248
|
]
|
|
249
249
|
}
|
|
250
250
|
);
|
|
251
251
|
}
|
|
252
|
-
function
|
|
252
|
+
function ia({
|
|
253
253
|
className: e,
|
|
254
254
|
...t
|
|
255
255
|
}) {
|
|
@@ -265,7 +265,7 @@ function da({
|
|
|
265
265
|
}
|
|
266
266
|
);
|
|
267
267
|
}
|
|
268
|
-
function
|
|
268
|
+
function da() {
|
|
269
269
|
return /* @__PURE__ */ r.jsx(oe, { asChild: !0, children: /* @__PURE__ */ r.jsxs(
|
|
270
270
|
j,
|
|
271
271
|
{
|
|
@@ -273,13 +273,13 @@ function la() {
|
|
|
273
273
|
className: "data-[state=open]:bg-muted text-muted-foreground flex size-8 p-0",
|
|
274
274
|
size: "icon",
|
|
275
275
|
children: [
|
|
276
|
-
/* @__PURE__ */ r.jsx(
|
|
276
|
+
/* @__PURE__ */ r.jsx(Wt, { className: "size-4" }),
|
|
277
277
|
/* @__PURE__ */ r.jsx("span", { className: "sr-only", children: "Abrir Menu" })
|
|
278
278
|
]
|
|
279
279
|
}
|
|
280
280
|
) });
|
|
281
281
|
}
|
|
282
|
-
function
|
|
282
|
+
function rn({ className: e, type: t, ...n }) {
|
|
283
283
|
return /* @__PURE__ */ r.jsx(
|
|
284
284
|
"input",
|
|
285
285
|
{
|
|
@@ -295,22 +295,22 @@ function an({ className: e, type: t, ...n }) {
|
|
|
295
295
|
}
|
|
296
296
|
);
|
|
297
297
|
}
|
|
298
|
-
function
|
|
298
|
+
function an({
|
|
299
299
|
...e
|
|
300
300
|
}) {
|
|
301
301
|
return /* @__PURE__ */ r.jsx(y.Root, { "data-slot": "select", ...e });
|
|
302
302
|
}
|
|
303
|
-
function
|
|
303
|
+
function la({
|
|
304
304
|
...e
|
|
305
305
|
}) {
|
|
306
306
|
return /* @__PURE__ */ r.jsx(y.Group, { "data-slot": "select-group", ...e });
|
|
307
307
|
}
|
|
308
|
-
function
|
|
308
|
+
function on({
|
|
309
309
|
...e
|
|
310
310
|
}) {
|
|
311
311
|
return /* @__PURE__ */ r.jsx(y.Value, { "data-slot": "select-value", ...e });
|
|
312
312
|
}
|
|
313
|
-
function
|
|
313
|
+
function sn({
|
|
314
314
|
className: e,
|
|
315
315
|
size: t = "default",
|
|
316
316
|
children: n,
|
|
@@ -333,7 +333,7 @@ function dn({
|
|
|
333
333
|
}
|
|
334
334
|
);
|
|
335
335
|
}
|
|
336
|
-
function
|
|
336
|
+
function dn({
|
|
337
337
|
className: e,
|
|
338
338
|
children: t,
|
|
339
339
|
position: n = "popper",
|
|
@@ -351,7 +351,7 @@ function ln({
|
|
|
351
351
|
position: n,
|
|
352
352
|
...a,
|
|
353
353
|
children: [
|
|
354
|
-
/* @__PURE__ */ r.jsx(
|
|
354
|
+
/* @__PURE__ */ r.jsx(cn, {}),
|
|
355
355
|
/* @__PURE__ */ r.jsx(
|
|
356
356
|
y.Viewport,
|
|
357
357
|
{
|
|
@@ -362,12 +362,12 @@ function ln({
|
|
|
362
362
|
children: t
|
|
363
363
|
}
|
|
364
364
|
),
|
|
365
|
-
/* @__PURE__ */ r.jsx(
|
|
365
|
+
/* @__PURE__ */ r.jsx(un, {})
|
|
366
366
|
]
|
|
367
367
|
}
|
|
368
368
|
) });
|
|
369
369
|
}
|
|
370
|
-
function
|
|
370
|
+
function ca({
|
|
371
371
|
className: e,
|
|
372
372
|
...t
|
|
373
373
|
}) {
|
|
@@ -380,7 +380,7 @@ function ua({
|
|
|
380
380
|
}
|
|
381
381
|
);
|
|
382
382
|
}
|
|
383
|
-
function
|
|
383
|
+
function ln({
|
|
384
384
|
className: e,
|
|
385
385
|
children: t,
|
|
386
386
|
...n
|
|
@@ -401,7 +401,7 @@ function cn({
|
|
|
401
401
|
}
|
|
402
402
|
);
|
|
403
403
|
}
|
|
404
|
-
function
|
|
404
|
+
function ua({
|
|
405
405
|
className: e,
|
|
406
406
|
...t
|
|
407
407
|
}) {
|
|
@@ -414,7 +414,7 @@ function ma({
|
|
|
414
414
|
}
|
|
415
415
|
);
|
|
416
416
|
}
|
|
417
|
-
function
|
|
417
|
+
function cn({
|
|
418
418
|
className: e,
|
|
419
419
|
...t
|
|
420
420
|
}) {
|
|
@@ -427,11 +427,11 @@ function un({
|
|
|
427
427
|
e
|
|
428
428
|
),
|
|
429
429
|
...t,
|
|
430
|
-
children: /* @__PURE__ */ r.jsx(
|
|
430
|
+
children: /* @__PURE__ */ r.jsx(Dt, { className: "size-4" })
|
|
431
431
|
}
|
|
432
432
|
);
|
|
433
433
|
}
|
|
434
|
-
function
|
|
434
|
+
function un({
|
|
435
435
|
className: e,
|
|
436
436
|
...t
|
|
437
437
|
}) {
|
|
@@ -448,12 +448,12 @@ function mn({
|
|
|
448
448
|
}
|
|
449
449
|
);
|
|
450
450
|
}
|
|
451
|
-
function
|
|
451
|
+
function Ye({
|
|
452
452
|
className: e,
|
|
453
453
|
...t
|
|
454
454
|
}) {
|
|
455
455
|
return /* @__PURE__ */ r.jsx(
|
|
456
|
-
|
|
456
|
+
Gt.Root,
|
|
457
457
|
{
|
|
458
458
|
"data-slot": "label",
|
|
459
459
|
className: s(
|
|
@@ -464,7 +464,7 @@ function Re({
|
|
|
464
464
|
}
|
|
465
465
|
);
|
|
466
466
|
}
|
|
467
|
-
function
|
|
467
|
+
function ma({
|
|
468
468
|
data: e,
|
|
469
469
|
columns: t,
|
|
470
470
|
getRowId: n,
|
|
@@ -487,14 +487,14 @@ function fa({
|
|
|
487
487
|
pageSize: Number(
|
|
488
488
|
typeof window < "u" && localStorage.getItem(d)
|
|
489
489
|
) || 10
|
|
490
|
-
}), G =
|
|
490
|
+
}), G = pt(), F = wt(
|
|
491
|
+
ne(yt, {}),
|
|
491
492
|
ne(jt, {}),
|
|
492
|
-
ne(Nt, {})
|
|
493
|
-
|
|
494
|
-
), p = vt(
|
|
493
|
+
ne(Nt, {})
|
|
494
|
+
), p = bt(
|
|
495
495
|
() => e?.map(({ id: c }) => c) || [],
|
|
496
496
|
[e]
|
|
497
|
-
), [W, I] = S(e), [k, $] = S({}), [
|
|
497
|
+
), [W, I] = S(e), [k, $] = S({}), [Je, xe] = S([]), [Ke, Ze] = S([]);
|
|
498
498
|
A(() => {
|
|
499
499
|
I(e);
|
|
500
500
|
}, [e]), A(() => {
|
|
@@ -502,7 +502,7 @@ function fa({
|
|
|
502
502
|
}, [f, m]), A(() => {
|
|
503
503
|
localStorage.setItem(d, String(w.pageSize));
|
|
504
504
|
}, [w.pageSize, d]);
|
|
505
|
-
function
|
|
505
|
+
function et({
|
|
506
506
|
columns: c
|
|
507
507
|
}) {
|
|
508
508
|
let b = !1;
|
|
@@ -516,54 +516,54 @@ function fa({
|
|
|
516
516
|
};
|
|
517
517
|
return b ? [...c] : [R, ...c];
|
|
518
518
|
}
|
|
519
|
-
function
|
|
519
|
+
function tt(c) {
|
|
520
520
|
const { active: b, over: R } = c;
|
|
521
521
|
b && R && b.id !== R.id && I((E) => {
|
|
522
|
-
const
|
|
522
|
+
const at = E.findIndex((te) => te.id === b.id), ot = E.findIndex((te) => te.id === R.id), pe = dt(E, at, ot);
|
|
523
523
|
return a && a(pe), pe;
|
|
524
524
|
});
|
|
525
525
|
}
|
|
526
|
-
const x =
|
|
526
|
+
const x = ct({
|
|
527
527
|
data: W,
|
|
528
|
-
columns:
|
|
528
|
+
columns: et({ columns: t }),
|
|
529
529
|
state: {
|
|
530
|
-
sorting:
|
|
530
|
+
sorting: Ke,
|
|
531
531
|
columnVisibility: f,
|
|
532
532
|
rowSelection: k,
|
|
533
|
-
columnFilters:
|
|
533
|
+
columnFilters: Je,
|
|
534
534
|
pagination: w
|
|
535
535
|
},
|
|
536
536
|
getRowId: n,
|
|
537
537
|
enableRowSelection: !0,
|
|
538
538
|
onRowSelectionChange: $,
|
|
539
|
-
onSortingChange:
|
|
539
|
+
onSortingChange: Ze,
|
|
540
540
|
onColumnFiltersChange: xe,
|
|
541
541
|
onColumnVisibilityChange: g,
|
|
542
542
|
onPaginationChange: z,
|
|
543
|
-
getCoreRowModel:
|
|
544
|
-
getFilteredRowModel:
|
|
545
|
-
getPaginationRowModel:
|
|
546
|
-
getSortedRowModel:
|
|
547
|
-
getFacetedRowModel:
|
|
548
|
-
getFacetedUniqueValues:
|
|
543
|
+
getCoreRowModel: xt(),
|
|
544
|
+
getFilteredRowModel: ht(),
|
|
545
|
+
getPaginationRowModel: gt(),
|
|
546
|
+
getSortedRowModel: ft(),
|
|
547
|
+
getFacetedRowModel: mt(),
|
|
548
|
+
getFacetedUniqueValues: ut()
|
|
549
549
|
});
|
|
550
|
-
function
|
|
550
|
+
function nt() {
|
|
551
551
|
const c = x.getAllColumns()[1].columnDef;
|
|
552
552
|
return String(c.id) ? String(c.id) : String(c.header);
|
|
553
553
|
}
|
|
554
|
-
const [Y,
|
|
555
|
-
u ??
|
|
554
|
+
const [Y, rt] = S(
|
|
555
|
+
u ?? nt()
|
|
556
556
|
);
|
|
557
557
|
return /* @__PURE__ */ r.jsxs("div", { children: [
|
|
558
558
|
/* @__PURE__ */ r.jsxs("div", { className: "flex items-center justify-between px-4 lg:px-6 mb-5 gap-2", children: [
|
|
559
|
-
/* @__PURE__ */ r.jsxs("div", { className: "relative w-full h-
|
|
560
|
-
/* @__PURE__ */ r.jsx(
|
|
559
|
+
/* @__PURE__ */ r.jsxs("div", { className: "relative w-full h-8", children: [
|
|
560
|
+
/* @__PURE__ */ r.jsx(Mt, { className: "absolute left-3 top-1/2 w-4 -translate-y-1/2 text-muted-foreground" }),
|
|
561
561
|
/* @__PURE__ */ r.jsx(
|
|
562
|
-
|
|
562
|
+
rn,
|
|
563
563
|
{
|
|
564
564
|
type: "text",
|
|
565
565
|
placeholder: "",
|
|
566
|
-
className: "pl-10 h-
|
|
566
|
+
className: "pl-10 h-8",
|
|
567
567
|
value: x.getColumn(Y)?.getFilterValue() ?? "",
|
|
568
568
|
onChange: (c) => {
|
|
569
569
|
x.getColumn(Y)?.setFilterValue(c.target.value);
|
|
@@ -574,30 +574,30 @@ function fa({
|
|
|
574
574
|
/* @__PURE__ */ r.jsxs("div", { className: "flex items-center gap-2", children: [
|
|
575
575
|
/* @__PURE__ */ r.jsxs(ye, { children: [
|
|
576
576
|
/* @__PURE__ */ r.jsx(oe, { asChild: !0, children: /* @__PURE__ */ r.jsxs(j, { variant: "outline", size: "sm", children: [
|
|
577
|
-
/* @__PURE__ */ r.jsx(
|
|
577
|
+
/* @__PURE__ */ r.jsx(Pt, {}),
|
|
578
578
|
/* @__PURE__ */ r.jsx("span", { className: "sm:hidden lg:inline", children: Y || "Filtro" }),
|
|
579
579
|
/* @__PURE__ */ r.jsx("span", { className: "lg:hidden", children: Y || "Filtro" }),
|
|
580
580
|
/* @__PURE__ */ r.jsx(ve, {})
|
|
581
581
|
] }) }),
|
|
582
582
|
/* @__PURE__ */ r.jsx(je, { align: "end", className: "w-56", children: /* @__PURE__ */ r.jsx(
|
|
583
|
-
|
|
583
|
+
tn,
|
|
584
584
|
{
|
|
585
585
|
value: Y,
|
|
586
586
|
onValueChange: (c) => {
|
|
587
|
-
xe([]),
|
|
587
|
+
xe([]), rt(c);
|
|
588
588
|
},
|
|
589
589
|
children: x.getAllColumns().filter(
|
|
590
590
|
(c) => typeof c.accessorFn < "u" && c.getCanHide()
|
|
591
591
|
).map((c) => {
|
|
592
592
|
const b = c.columnDef.id ? String(c.columnDef.id) : String(c.columnDef.header);
|
|
593
|
-
return /* @__PURE__ */ r.jsx(
|
|
593
|
+
return /* @__PURE__ */ r.jsx(nn, { value: b, children: b }, b);
|
|
594
594
|
})
|
|
595
595
|
}
|
|
596
596
|
) })
|
|
597
597
|
] }),
|
|
598
598
|
/* @__PURE__ */ r.jsxs(ye, { children: [
|
|
599
599
|
/* @__PURE__ */ r.jsx(oe, { asChild: !0, children: /* @__PURE__ */ r.jsxs(j, { variant: "outline", size: "sm", children: [
|
|
600
|
-
/* @__PURE__ */ r.jsx(
|
|
600
|
+
/* @__PURE__ */ r.jsx(Yt, {}),
|
|
601
601
|
/* @__PURE__ */ r.jsx("span", { className: "hidden lg:inline", children: "Colunas" }),
|
|
602
602
|
/* @__PURE__ */ r.jsx("span", { className: "lg:hidden", children: "Colunas" }),
|
|
603
603
|
/* @__PURE__ */ r.jsx(ve, {})
|
|
@@ -605,7 +605,7 @@ function fa({
|
|
|
605
605
|
/* @__PURE__ */ r.jsx(je, { align: "end", className: "w-56", children: x.getAllColumns().filter(
|
|
606
606
|
(c) => typeof c.accessorFn < "u" && c.getCanHide()
|
|
607
607
|
).map((c) => /* @__PURE__ */ r.jsx(
|
|
608
|
-
|
|
608
|
+
en,
|
|
609
609
|
{
|
|
610
610
|
className: "capitalize",
|
|
611
611
|
checked: c.getIsVisible(),
|
|
@@ -622,32 +622,32 @@ function fa({
|
|
|
622
622
|
] }),
|
|
623
623
|
/* @__PURE__ */ r.jsxs("div", { className: "relative flex flex-col gap-4 overflow-auto px-4 lg:px-6", children: [
|
|
624
624
|
/* @__PURE__ */ r.jsx("div", { className: "overflow-hidden rounded-lg border", children: /* @__PURE__ */ r.jsx(
|
|
625
|
-
|
|
625
|
+
Ct,
|
|
626
626
|
{
|
|
627
|
-
collisionDetection:
|
|
628
|
-
modifiers: [
|
|
629
|
-
onDragEnd:
|
|
627
|
+
collisionDetection: kt,
|
|
628
|
+
modifiers: [Ht],
|
|
629
|
+
onDragEnd: tt,
|
|
630
630
|
sensors: F,
|
|
631
631
|
id: G,
|
|
632
|
-
children: /* @__PURE__ */ r.jsxs(
|
|
633
|
-
/* @__PURE__ */ r.jsx(
|
|
632
|
+
children: /* @__PURE__ */ r.jsxs(mn, { children: [
|
|
633
|
+
/* @__PURE__ */ r.jsx(fn, { className: "sticky top-0 z-10", children: x.getHeaderGroups().map((c) => /* @__PURE__ */ r.jsx(se, { children: c.headers.map((b) => /* @__PURE__ */ r.jsx(hn, { colSpan: b.colSpan, children: b.isPlaceholder ? null : Te(
|
|
634
634
|
b.column.columnDef.header,
|
|
635
635
|
b.getContext()
|
|
636
636
|
) }, b.id)) }, c.id)) }),
|
|
637
637
|
/* @__PURE__ */ r.jsx(
|
|
638
|
-
|
|
638
|
+
st,
|
|
639
639
|
{
|
|
640
640
|
items: p,
|
|
641
|
-
strategy:
|
|
642
|
-
children: /* @__PURE__ */ r.jsx(
|
|
643
|
-
|
|
641
|
+
strategy: it,
|
|
642
|
+
children: /* @__PURE__ */ r.jsx(gn, { className: "**:data-[slot=table-cell]:first:w-8", children: x.getRowModel().rows?.length ? x.getRowModel().rows.map((c) => /* @__PURE__ */ r.jsx(
|
|
643
|
+
Zt,
|
|
644
644
|
{
|
|
645
645
|
row: c,
|
|
646
646
|
onRowClick: o
|
|
647
647
|
},
|
|
648
648
|
c.id
|
|
649
649
|
)) : /* @__PURE__ */ r.jsx(se, { children: /* @__PURE__ */ r.jsx(
|
|
650
|
-
|
|
650
|
+
Re,
|
|
651
651
|
{
|
|
652
652
|
colSpan: t.length,
|
|
653
653
|
className: "h-24 text-center",
|
|
@@ -669,22 +669,22 @@ function fa({
|
|
|
669
669
|
] }),
|
|
670
670
|
/* @__PURE__ */ r.jsxs("div", { className: "flex w-full items-center gap-8 lg:w-fit", children: [
|
|
671
671
|
/* @__PURE__ */ r.jsxs("div", { className: "hidden items-center gap-2 lg:flex", children: [
|
|
672
|
-
/* @__PURE__ */ r.jsx(
|
|
672
|
+
/* @__PURE__ */ r.jsx(Ye, { htmlFor: "rows-per-page", className: "text-sm font-medium", children: "linhas por paginas" }),
|
|
673
673
|
/* @__PURE__ */ r.jsxs(
|
|
674
|
-
|
|
674
|
+
an,
|
|
675
675
|
{
|
|
676
676
|
value: `${x.getState().pagination.pageSize}`,
|
|
677
677
|
onValueChange: (c) => {
|
|
678
678
|
x.setPageSize(Number(c));
|
|
679
679
|
},
|
|
680
680
|
children: [
|
|
681
|
-
/* @__PURE__ */ r.jsx(
|
|
682
|
-
|
|
681
|
+
/* @__PURE__ */ r.jsx(sn, { size: "sm", className: "w-20", id: "rows-per-page", children: /* @__PURE__ */ r.jsx(
|
|
682
|
+
on,
|
|
683
683
|
{
|
|
684
684
|
placeholder: x.getState().pagination.pageSize
|
|
685
685
|
}
|
|
686
686
|
) }),
|
|
687
|
-
/* @__PURE__ */ r.jsx(
|
|
687
|
+
/* @__PURE__ */ r.jsx(dn, { side: "top", children: [10, 20, 30, 40, 50].map((c) => /* @__PURE__ */ r.jsx(ln, { value: `${c}`, children: c }, c)) })
|
|
688
688
|
]
|
|
689
689
|
}
|
|
690
690
|
)
|
|
@@ -706,7 +706,7 @@ function fa({
|
|
|
706
706
|
disabled: !x.getCanPreviousPage(),
|
|
707
707
|
children: [
|
|
708
708
|
/* @__PURE__ */ r.jsx("span", { className: "sr-only", children: "Go to first page" }),
|
|
709
|
-
/* @__PURE__ */ r.jsx(
|
|
709
|
+
/* @__PURE__ */ r.jsx(Rt, {})
|
|
710
710
|
]
|
|
711
711
|
}
|
|
712
712
|
),
|
|
@@ -720,7 +720,7 @@ function fa({
|
|
|
720
720
|
disabled: !x.getCanPreviousPage(),
|
|
721
721
|
children: [
|
|
722
722
|
/* @__PURE__ */ r.jsx("span", { className: "sr-only", children: "Go to previous page" }),
|
|
723
|
-
/* @__PURE__ */ r.jsx(
|
|
723
|
+
/* @__PURE__ */ r.jsx(Et, {})
|
|
724
724
|
]
|
|
725
725
|
}
|
|
726
726
|
),
|
|
@@ -734,7 +734,7 @@ function fa({
|
|
|
734
734
|
disabled: !x.getCanNextPage(),
|
|
735
735
|
children: [
|
|
736
736
|
/* @__PURE__ */ r.jsx("span", { className: "sr-only", children: "Go to next page" }),
|
|
737
|
-
/* @__PURE__ */ r.jsx(
|
|
737
|
+
/* @__PURE__ */ r.jsx(Lt, {})
|
|
738
738
|
]
|
|
739
739
|
}
|
|
740
740
|
),
|
|
@@ -748,7 +748,7 @@ function fa({
|
|
|
748
748
|
disabled: !x.getCanNextPage(),
|
|
749
749
|
children: [
|
|
750
750
|
/* @__PURE__ */ r.jsx("span", { className: "sr-only", children: "Go to last page" }),
|
|
751
|
-
/* @__PURE__ */ r.jsx(
|
|
751
|
+
/* @__PURE__ */ r.jsx(Vt, {})
|
|
752
752
|
]
|
|
753
753
|
}
|
|
754
754
|
)
|
|
@@ -758,8 +758,8 @@ function fa({
|
|
|
758
758
|
] })
|
|
759
759
|
] });
|
|
760
760
|
}
|
|
761
|
-
function
|
|
762
|
-
const { attributes: t, listeners: n } =
|
|
761
|
+
function fa({ id: e }) {
|
|
762
|
+
const { attributes: t, listeners: n } = _e({
|
|
763
763
|
id: e
|
|
764
764
|
});
|
|
765
765
|
return /* @__PURE__ */ r.jsxs(
|
|
@@ -771,13 +771,13 @@ function ga({ id: e }) {
|
|
|
771
771
|
size: "icon",
|
|
772
772
|
className: "text-muted-foreground size-7 hover:bg-transparent cursor-pointer",
|
|
773
773
|
children: [
|
|
774
|
-
/* @__PURE__ */ r.jsx(
|
|
774
|
+
/* @__PURE__ */ r.jsx(qt, { className: "text-muted-foreground size-3" }),
|
|
775
775
|
/* @__PURE__ */ r.jsx("span", { className: "sr-only", children: "Drag to reorder" })
|
|
776
776
|
]
|
|
777
777
|
}
|
|
778
778
|
);
|
|
779
779
|
}
|
|
780
|
-
function
|
|
780
|
+
function mn({ className: e, ...t }) {
|
|
781
781
|
return /* @__PURE__ */ r.jsx(
|
|
782
782
|
"div",
|
|
783
783
|
{
|
|
@@ -794,7 +794,7 @@ function fn({ className: e, ...t }) {
|
|
|
794
794
|
}
|
|
795
795
|
);
|
|
796
796
|
}
|
|
797
|
-
function
|
|
797
|
+
function fn({
|
|
798
798
|
className: e,
|
|
799
799
|
...t
|
|
800
800
|
}) {
|
|
@@ -807,7 +807,7 @@ function gn({
|
|
|
807
807
|
}
|
|
808
808
|
);
|
|
809
809
|
}
|
|
810
|
-
function
|
|
810
|
+
function gn({
|
|
811
811
|
className: e,
|
|
812
812
|
...t
|
|
813
813
|
}) {
|
|
@@ -820,7 +820,7 @@ function hn({
|
|
|
820
820
|
}
|
|
821
821
|
);
|
|
822
822
|
}
|
|
823
|
-
function
|
|
823
|
+
function ga({
|
|
824
824
|
className: e,
|
|
825
825
|
...t
|
|
826
826
|
}) {
|
|
@@ -849,7 +849,7 @@ function se({ className: e, ...t }) {
|
|
|
849
849
|
}
|
|
850
850
|
);
|
|
851
851
|
}
|
|
852
|
-
function
|
|
852
|
+
function hn({ className: e, ...t }) {
|
|
853
853
|
return /* @__PURE__ */ r.jsx(
|
|
854
854
|
"th",
|
|
855
855
|
{
|
|
@@ -862,7 +862,7 @@ function xn({ className: e, ...t }) {
|
|
|
862
862
|
}
|
|
863
863
|
);
|
|
864
864
|
}
|
|
865
|
-
function
|
|
865
|
+
function Re({ className: e, ...t }) {
|
|
866
866
|
return /* @__PURE__ */ r.jsx(
|
|
867
867
|
"td",
|
|
868
868
|
{
|
|
@@ -875,7 +875,7 @@ function Ee({ className: e, ...t }) {
|
|
|
875
875
|
}
|
|
876
876
|
);
|
|
877
877
|
}
|
|
878
|
-
function
|
|
878
|
+
function ha({
|
|
879
879
|
className: e,
|
|
880
880
|
...t
|
|
881
881
|
}) {
|
|
@@ -888,7 +888,7 @@ function xa({
|
|
|
888
888
|
}
|
|
889
889
|
);
|
|
890
890
|
}
|
|
891
|
-
function
|
|
891
|
+
function Ee({
|
|
892
892
|
className: e,
|
|
893
893
|
classNames: t,
|
|
894
894
|
showOutsideDays: n = !0,
|
|
@@ -898,9 +898,9 @@ function Le({
|
|
|
898
898
|
components: l,
|
|
899
899
|
...u
|
|
900
900
|
}) {
|
|
901
|
-
const d =
|
|
901
|
+
const d = We();
|
|
902
902
|
return /* @__PURE__ */ r.jsx(
|
|
903
|
-
|
|
903
|
+
$t,
|
|
904
904
|
{
|
|
905
905
|
showOutsideDays: n,
|
|
906
906
|
className: s(
|
|
@@ -1006,14 +1006,14 @@ function Le({
|
|
|
1006
1006
|
...g
|
|
1007
1007
|
}
|
|
1008
1008
|
),
|
|
1009
|
-
Chevron: ({ className: m, orientation: f, ...g }) => f === "left" ? /* @__PURE__ */ r.jsx(
|
|
1010
|
-
|
|
1009
|
+
Chevron: ({ className: m, orientation: f, ...g }) => f === "left" ? /* @__PURE__ */ r.jsx(_t, { className: s("size-4", m), ...g }) : f === "right" ? /* @__PURE__ */ r.jsx(
|
|
1010
|
+
ze,
|
|
1011
1011
|
{
|
|
1012
1012
|
className: s("size-4", m),
|
|
1013
1013
|
...g
|
|
1014
1014
|
}
|
|
1015
1015
|
) : /* @__PURE__ */ r.jsx(me, { className: s("size-4", m), ...g }),
|
|
1016
|
-
DayButton:
|
|
1016
|
+
DayButton: xn,
|
|
1017
1017
|
WeekNumber: ({ children: m, ...f }) => /* @__PURE__ */ r.jsx("td", { ...f, children: /* @__PURE__ */ r.jsx("div", { className: "flex size-(--cell-size) items-center justify-center text-center", children: m }) }),
|
|
1018
1018
|
...l
|
|
1019
1019
|
},
|
|
@@ -1021,13 +1021,13 @@ function Le({
|
|
|
1021
1021
|
}
|
|
1022
1022
|
);
|
|
1023
1023
|
}
|
|
1024
|
-
function
|
|
1024
|
+
function xn({
|
|
1025
1025
|
className: e,
|
|
1026
1026
|
day: t,
|
|
1027
1027
|
modifiers: n,
|
|
1028
1028
|
...a
|
|
1029
1029
|
}) {
|
|
1030
|
-
const o =
|
|
1030
|
+
const o = We(), i = vt(null);
|
|
1031
1031
|
return A(() => {
|
|
1032
1032
|
n.focused && i.current?.focus();
|
|
1033
1033
|
}, [n.focused]), /* @__PURE__ */ r.jsx(
|
|
@@ -1050,16 +1050,16 @@ function pn({
|
|
|
1050
1050
|
}
|
|
1051
1051
|
);
|
|
1052
1052
|
}
|
|
1053
|
-
const
|
|
1053
|
+
const Le = 6048e5, pn = 864e5, Ne = /* @__PURE__ */ Symbol.for("constructDateFrom");
|
|
1054
1054
|
function P(e, t) {
|
|
1055
1055
|
return typeof e == "function" ? e(t) : e && typeof e == "object" && Ne in e ? e[Ne](t) : e instanceof Date ? new e.constructor(t) : new Date(t);
|
|
1056
1056
|
}
|
|
1057
1057
|
function C(e, t) {
|
|
1058
1058
|
return P(t || e, e);
|
|
1059
1059
|
}
|
|
1060
|
-
let
|
|
1060
|
+
let bn = {};
|
|
1061
1061
|
function U() {
|
|
1062
|
-
return
|
|
1062
|
+
return bn;
|
|
1063
1063
|
}
|
|
1064
1064
|
function H(e, t) {
|
|
1065
1065
|
const n = U(), a = t?.weekStartsOn ?? t?.locale?.options?.weekStartsOn ?? n.weekStartsOn ?? n.locale?.options?.weekStartsOn ?? 0, o = C(e, t?.in), i = o.getDay(), l = (i < a ? 7 : 0) + i - a;
|
|
@@ -1068,7 +1068,7 @@ function H(e, t) {
|
|
|
1068
1068
|
function B(e, t) {
|
|
1069
1069
|
return H(e, { ...t, weekStartsOn: 1 });
|
|
1070
1070
|
}
|
|
1071
|
-
function
|
|
1071
|
+
function Ve(e, t) {
|
|
1072
1072
|
const n = C(e, t?.in), a = n.getFullYear(), o = P(n, 0);
|
|
1073
1073
|
o.setFullYear(a + 1, 0, 4), o.setHours(0, 0, 0, 0);
|
|
1074
1074
|
const i = B(o), l = P(n, 0);
|
|
@@ -1090,7 +1090,7 @@ function Ce(e) {
|
|
|
1090
1090
|
);
|
|
1091
1091
|
return n.setUTCFullYear(t.getFullYear()), +e - +n;
|
|
1092
1092
|
}
|
|
1093
|
-
function
|
|
1093
|
+
function vn(e, ...t) {
|
|
1094
1094
|
const n = P.bind(
|
|
1095
1095
|
null,
|
|
1096
1096
|
t.find((a) => typeof a == "object")
|
|
@@ -1101,29 +1101,29 @@ function ke(e, t) {
|
|
|
1101
1101
|
const n = C(e, t?.in);
|
|
1102
1102
|
return n.setHours(0, 0, 0, 0), n;
|
|
1103
1103
|
}
|
|
1104
|
-
function
|
|
1105
|
-
const [a, o] =
|
|
1104
|
+
function wn(e, t, n) {
|
|
1105
|
+
const [a, o] = vn(
|
|
1106
1106
|
n?.in,
|
|
1107
1107
|
e,
|
|
1108
1108
|
t
|
|
1109
1109
|
), i = ke(a), l = ke(o), u = +i - Ce(i), d = +l - Ce(l);
|
|
1110
|
-
return Math.round((u - d) /
|
|
1110
|
+
return Math.round((u - d) / pn);
|
|
1111
1111
|
}
|
|
1112
|
-
function
|
|
1113
|
-
const n =
|
|
1112
|
+
function yn(e, t) {
|
|
1113
|
+
const n = Ve(e, t), a = P(e, 0);
|
|
1114
1114
|
return a.setFullYear(n, 0, 4), a.setHours(0, 0, 0, 0), B(a);
|
|
1115
1115
|
}
|
|
1116
|
-
function
|
|
1116
|
+
function jn(e) {
|
|
1117
1117
|
return e instanceof Date || typeof e == "object" && Object.prototype.toString.call(e) === "[object Date]";
|
|
1118
1118
|
}
|
|
1119
|
-
function
|
|
1120
|
-
return !(!
|
|
1119
|
+
function Nn(e) {
|
|
1120
|
+
return !(!jn(e) && typeof e != "number" || isNaN(+C(e)));
|
|
1121
1121
|
}
|
|
1122
|
-
function
|
|
1122
|
+
function Cn(e, t) {
|
|
1123
1123
|
const n = C(e, t?.in);
|
|
1124
1124
|
return n.setFullYear(n.getFullYear(), 0, 1), n.setHours(0, 0, 0, 0), n;
|
|
1125
1125
|
}
|
|
1126
|
-
const
|
|
1126
|
+
const kn = {
|
|
1127
1127
|
lessThanXSeconds: {
|
|
1128
1128
|
one: "less than a second",
|
|
1129
1129
|
other: "less than {{count}} seconds"
|
|
@@ -1185,9 +1185,9 @@ const Sn = {
|
|
|
1185
1185
|
one: "almost 1 year",
|
|
1186
1186
|
other: "almost {{count}} years"
|
|
1187
1187
|
}
|
|
1188
|
-
},
|
|
1188
|
+
}, Sn = (e, t, n) => {
|
|
1189
1189
|
let a;
|
|
1190
|
-
const o =
|
|
1190
|
+
const o = kn[e];
|
|
1191
1191
|
return typeof o == "string" ? a = o : t === 1 ? a = o.one : a = o.other.replace("{{count}}", t.toString()), n?.addSuffix ? n.comparison && n.comparison > 0 ? "in " + a : a + " ago" : a;
|
|
1192
1192
|
};
|
|
1193
1193
|
function re(e) {
|
|
@@ -1196,42 +1196,42 @@ function re(e) {
|
|
|
1196
1196
|
return e.formats[n] || e.formats[e.defaultWidth];
|
|
1197
1197
|
};
|
|
1198
1198
|
}
|
|
1199
|
-
const
|
|
1199
|
+
const Dn = {
|
|
1200
1200
|
full: "EEEE, MMMM do, y",
|
|
1201
1201
|
long: "MMMM do, y",
|
|
1202
1202
|
medium: "MMM d, y",
|
|
1203
1203
|
short: "MM/dd/yyyy"
|
|
1204
|
-
},
|
|
1204
|
+
}, Mn = {
|
|
1205
1205
|
full: "h:mm:ss a zzzz",
|
|
1206
1206
|
long: "h:mm:ss a z",
|
|
1207
1207
|
medium: "h:mm:ss a",
|
|
1208
1208
|
short: "h:mm a"
|
|
1209
|
-
},
|
|
1209
|
+
}, Pn = {
|
|
1210
1210
|
full: "{{date}} 'at' {{time}}",
|
|
1211
1211
|
long: "{{date}} 'at' {{time}}",
|
|
1212
1212
|
medium: "{{date}}, {{time}}",
|
|
1213
1213
|
short: "{{date}}, {{time}}"
|
|
1214
|
-
},
|
|
1214
|
+
}, _n = {
|
|
1215
1215
|
date: re({
|
|
1216
|
-
formats:
|
|
1216
|
+
formats: Dn,
|
|
1217
1217
|
defaultWidth: "full"
|
|
1218
1218
|
}),
|
|
1219
1219
|
time: re({
|
|
1220
|
-
formats:
|
|
1220
|
+
formats: Mn,
|
|
1221
1221
|
defaultWidth: "full"
|
|
1222
1222
|
}),
|
|
1223
1223
|
dateTime: re({
|
|
1224
|
-
formats:
|
|
1224
|
+
formats: Pn,
|
|
1225
1225
|
defaultWidth: "full"
|
|
1226
1226
|
})
|
|
1227
|
-
},
|
|
1227
|
+
}, Tn = {
|
|
1228
1228
|
lastWeek: "'last' eeee 'at' p",
|
|
1229
1229
|
yesterday: "'yesterday at' p",
|
|
1230
1230
|
today: "'today at' p",
|
|
1231
1231
|
tomorrow: "'tomorrow at' p",
|
|
1232
1232
|
nextWeek: "eeee 'at' p",
|
|
1233
1233
|
other: "P"
|
|
1234
|
-
},
|
|
1234
|
+
}, zn = (e, t, n, a) => Tn[e];
|
|
1235
1235
|
function L(e) {
|
|
1236
1236
|
return (t, n) => {
|
|
1237
1237
|
const a = n?.context ? String(n.context) : "standalone";
|
|
@@ -1247,15 +1247,15 @@ function L(e) {
|
|
|
1247
1247
|
return o[i];
|
|
1248
1248
|
};
|
|
1249
1249
|
}
|
|
1250
|
-
const
|
|
1250
|
+
const Fn = {
|
|
1251
1251
|
narrow: ["B", "A"],
|
|
1252
1252
|
abbreviated: ["BC", "AD"],
|
|
1253
1253
|
wide: ["Before Christ", "Anno Domini"]
|
|
1254
|
-
},
|
|
1254
|
+
}, In = {
|
|
1255
1255
|
narrow: ["1", "2", "3", "4"],
|
|
1256
1256
|
abbreviated: ["Q1", "Q2", "Q3", "Q4"],
|
|
1257
1257
|
wide: ["1st quarter", "2nd quarter", "3rd quarter", "4th quarter"]
|
|
1258
|
-
},
|
|
1258
|
+
}, On = {
|
|
1259
1259
|
narrow: ["J", "F", "M", "A", "M", "J", "J", "A", "S", "O", "N", "D"],
|
|
1260
1260
|
abbreviated: [
|
|
1261
1261
|
"Jan",
|
|
@@ -1285,7 +1285,7 @@ const In = {
|
|
|
1285
1285
|
"November",
|
|
1286
1286
|
"December"
|
|
1287
1287
|
]
|
|
1288
|
-
},
|
|
1288
|
+
}, Wn = {
|
|
1289
1289
|
narrow: ["S", "M", "T", "W", "T", "F", "S"],
|
|
1290
1290
|
short: ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"],
|
|
1291
1291
|
abbreviated: ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"],
|
|
@@ -1298,7 +1298,7 @@ const In = {
|
|
|
1298
1298
|
"Friday",
|
|
1299
1299
|
"Saturday"
|
|
1300
1300
|
]
|
|
1301
|
-
},
|
|
1301
|
+
}, Yn = {
|
|
1302
1302
|
narrow: {
|
|
1303
1303
|
am: "a",
|
|
1304
1304
|
pm: "p",
|
|
@@ -1329,7 +1329,7 @@ const In = {
|
|
|
1329
1329
|
evening: "evening",
|
|
1330
1330
|
night: "night"
|
|
1331
1331
|
}
|
|
1332
|
-
},
|
|
1332
|
+
}, Rn = {
|
|
1333
1333
|
narrow: {
|
|
1334
1334
|
am: "a",
|
|
1335
1335
|
pm: "p",
|
|
@@ -1360,7 +1360,7 @@ const In = {
|
|
|
1360
1360
|
evening: "in the evening",
|
|
1361
1361
|
night: "at night"
|
|
1362
1362
|
}
|
|
1363
|
-
},
|
|
1363
|
+
}, En = (e, t) => {
|
|
1364
1364
|
const n = Number(e), a = n % 100;
|
|
1365
1365
|
if (a > 20 || a < 10)
|
|
1366
1366
|
switch (a % 10) {
|
|
@@ -1372,29 +1372,29 @@ const In = {
|
|
|
1372
1372
|
return n + "rd";
|
|
1373
1373
|
}
|
|
1374
1374
|
return n + "th";
|
|
1375
|
-
},
|
|
1376
|
-
ordinalNumber:
|
|
1375
|
+
}, Ln = {
|
|
1376
|
+
ordinalNumber: En,
|
|
1377
1377
|
era: L({
|
|
1378
|
-
values:
|
|
1378
|
+
values: Fn,
|
|
1379
1379
|
defaultWidth: "wide"
|
|
1380
1380
|
}),
|
|
1381
1381
|
quarter: L({
|
|
1382
|
-
values:
|
|
1382
|
+
values: In,
|
|
1383
1383
|
defaultWidth: "wide",
|
|
1384
1384
|
argumentCallback: (e) => e - 1
|
|
1385
1385
|
}),
|
|
1386
1386
|
month: L({
|
|
1387
|
-
values:
|
|
1387
|
+
values: On,
|
|
1388
1388
|
defaultWidth: "wide"
|
|
1389
1389
|
}),
|
|
1390
1390
|
day: L({
|
|
1391
|
-
values:
|
|
1391
|
+
values: Wn,
|
|
1392
1392
|
defaultWidth: "wide"
|
|
1393
1393
|
}),
|
|
1394
1394
|
dayPeriod: L({
|
|
1395
|
-
values:
|
|
1395
|
+
values: Yn,
|
|
1396
1396
|
defaultWidth: "wide",
|
|
1397
|
-
formattingValues:
|
|
1397
|
+
formattingValues: Rn,
|
|
1398
1398
|
defaultFormattingWidth: "wide"
|
|
1399
1399
|
})
|
|
1400
1400
|
};
|
|
@@ -1403,9 +1403,9 @@ function V(e) {
|
|
|
1403
1403
|
const a = n.width, o = a && e.matchPatterns[a] || e.matchPatterns[e.defaultMatchWidth], i = t.match(o);
|
|
1404
1404
|
if (!i)
|
|
1405
1405
|
return null;
|
|
1406
|
-
const l = i[0], u = a && e.parsePatterns[a] || e.parsePatterns[e.defaultParseWidth], d = Array.isArray(u) ?
|
|
1406
|
+
const l = i[0], u = a && e.parsePatterns[a] || e.parsePatterns[e.defaultParseWidth], d = Array.isArray(u) ? qn(u, (g) => g.test(l)) : (
|
|
1407
1407
|
// [TODO] -- I challenge you to fix the type
|
|
1408
|
-
|
|
1408
|
+
Vn(u, (g) => g.test(l))
|
|
1409
1409
|
);
|
|
1410
1410
|
let m;
|
|
1411
1411
|
m = e.valueCallback ? e.valueCallback(d) : d, m = n.valueCallback ? (
|
|
@@ -1416,17 +1416,17 @@ function V(e) {
|
|
|
1416
1416
|
return { value: m, rest: f };
|
|
1417
1417
|
};
|
|
1418
1418
|
}
|
|
1419
|
-
function
|
|
1419
|
+
function Vn(e, t) {
|
|
1420
1420
|
for (const n in e)
|
|
1421
1421
|
if (Object.prototype.hasOwnProperty.call(e, n) && t(e[n]))
|
|
1422
1422
|
return n;
|
|
1423
1423
|
}
|
|
1424
|
-
function
|
|
1424
|
+
function qn(e, t) {
|
|
1425
1425
|
for (let n = 0; n < e.length; n++)
|
|
1426
1426
|
if (t(e[n]))
|
|
1427
1427
|
return n;
|
|
1428
1428
|
}
|
|
1429
|
-
function
|
|
1429
|
+
function Hn(e) {
|
|
1430
1430
|
return (t, n = {}) => {
|
|
1431
1431
|
const a = t.match(e.matchPattern);
|
|
1432
1432
|
if (!a) return null;
|
|
@@ -1438,23 +1438,23 @@ function Gn(e) {
|
|
|
1438
1438
|
return { value: l, rest: u };
|
|
1439
1439
|
};
|
|
1440
1440
|
}
|
|
1441
|
-
const
|
|
1441
|
+
const Gn = /^(\d+)(th|st|nd|rd)?/i, $n = /\d+/i, An = {
|
|
1442
1442
|
narrow: /^(b|a)/i,
|
|
1443
1443
|
abbreviated: /^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,
|
|
1444
1444
|
wide: /^(before christ|before common era|anno domini|common era)/i
|
|
1445
|
-
},
|
|
1445
|
+
}, Bn = {
|
|
1446
1446
|
any: [/^b/i, /^(a|c)/i]
|
|
1447
|
-
},
|
|
1447
|
+
}, Qn = {
|
|
1448
1448
|
narrow: /^[1234]/i,
|
|
1449
1449
|
abbreviated: /^q[1234]/i,
|
|
1450
1450
|
wide: /^[1234](th|st|nd|rd)? quarter/i
|
|
1451
|
-
},
|
|
1451
|
+
}, Xn = {
|
|
1452
1452
|
any: [/1/i, /2/i, /3/i, /4/i]
|
|
1453
|
-
},
|
|
1453
|
+
}, Un = {
|
|
1454
1454
|
narrow: /^[jfmasond]/i,
|
|
1455
1455
|
abbreviated: /^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,
|
|
1456
1456
|
wide: /^(january|february|march|april|may|june|july|august|september|october|november|december)/i
|
|
1457
|
-
},
|
|
1457
|
+
}, Jn = {
|
|
1458
1458
|
narrow: [
|
|
1459
1459
|
/^j/i,
|
|
1460
1460
|
/^f/i,
|
|
@@ -1483,18 +1483,18 @@ const $n = /^(\d+)(th|st|nd|rd)?/i, An = /\d+/i, Bn = {
|
|
|
1483
1483
|
/^n/i,
|
|
1484
1484
|
/^d/i
|
|
1485
1485
|
]
|
|
1486
|
-
},
|
|
1486
|
+
}, Kn = {
|
|
1487
1487
|
narrow: /^[smtwf]/i,
|
|
1488
1488
|
short: /^(su|mo|tu|we|th|fr|sa)/i,
|
|
1489
1489
|
abbreviated: /^(sun|mon|tue|wed|thu|fri|sat)/i,
|
|
1490
1490
|
wide: /^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i
|
|
1491
|
-
},
|
|
1491
|
+
}, Zn = {
|
|
1492
1492
|
narrow: [/^s/i, /^m/i, /^t/i, /^w/i, /^t/i, /^f/i, /^s/i],
|
|
1493
1493
|
any: [/^su/i, /^m/i, /^tu/i, /^w/i, /^th/i, /^f/i, /^sa/i]
|
|
1494
|
-
},
|
|
1494
|
+
}, er = {
|
|
1495
1495
|
narrow: /^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,
|
|
1496
1496
|
any: /^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i
|
|
1497
|
-
},
|
|
1497
|
+
}, tr = {
|
|
1498
1498
|
any: {
|
|
1499
1499
|
am: /^a/i,
|
|
1500
1500
|
pm: /^p/i,
|
|
@@ -1505,64 +1505,64 @@ const $n = /^(\d+)(th|st|nd|rd)?/i, An = /\d+/i, Bn = {
|
|
|
1505
1505
|
evening: /evening/i,
|
|
1506
1506
|
night: /night/i
|
|
1507
1507
|
}
|
|
1508
|
-
},
|
|
1509
|
-
ordinalNumber:
|
|
1510
|
-
matchPattern:
|
|
1511
|
-
parsePattern:
|
|
1508
|
+
}, nr = {
|
|
1509
|
+
ordinalNumber: Hn({
|
|
1510
|
+
matchPattern: Gn,
|
|
1511
|
+
parsePattern: $n,
|
|
1512
1512
|
valueCallback: (e) => parseInt(e, 10)
|
|
1513
1513
|
}),
|
|
1514
1514
|
era: V({
|
|
1515
|
-
matchPatterns:
|
|
1515
|
+
matchPatterns: An,
|
|
1516
1516
|
defaultMatchWidth: "wide",
|
|
1517
|
-
parsePatterns:
|
|
1517
|
+
parsePatterns: Bn,
|
|
1518
1518
|
defaultParseWidth: "any"
|
|
1519
1519
|
}),
|
|
1520
1520
|
quarter: V({
|
|
1521
|
-
matchPatterns:
|
|
1521
|
+
matchPatterns: Qn,
|
|
1522
1522
|
defaultMatchWidth: "wide",
|
|
1523
|
-
parsePatterns:
|
|
1523
|
+
parsePatterns: Xn,
|
|
1524
1524
|
defaultParseWidth: "any",
|
|
1525
1525
|
valueCallback: (e) => e + 1
|
|
1526
1526
|
}),
|
|
1527
1527
|
month: V({
|
|
1528
|
-
matchPatterns:
|
|
1528
|
+
matchPatterns: Un,
|
|
1529
1529
|
defaultMatchWidth: "wide",
|
|
1530
|
-
parsePatterns:
|
|
1530
|
+
parsePatterns: Jn,
|
|
1531
1531
|
defaultParseWidth: "any"
|
|
1532
1532
|
}),
|
|
1533
1533
|
day: V({
|
|
1534
|
-
matchPatterns:
|
|
1534
|
+
matchPatterns: Kn,
|
|
1535
1535
|
defaultMatchWidth: "wide",
|
|
1536
|
-
parsePatterns:
|
|
1536
|
+
parsePatterns: Zn,
|
|
1537
1537
|
defaultParseWidth: "any"
|
|
1538
1538
|
}),
|
|
1539
1539
|
dayPeriod: V({
|
|
1540
|
-
matchPatterns:
|
|
1540
|
+
matchPatterns: er,
|
|
1541
1541
|
defaultMatchWidth: "any",
|
|
1542
|
-
parsePatterns:
|
|
1542
|
+
parsePatterns: tr,
|
|
1543
1543
|
defaultParseWidth: "any"
|
|
1544
1544
|
})
|
|
1545
|
-
},
|
|
1545
|
+
}, rr = {
|
|
1546
1546
|
code: "en-US",
|
|
1547
|
-
formatDistance:
|
|
1548
|
-
formatLong:
|
|
1549
|
-
formatRelative:
|
|
1550
|
-
localize:
|
|
1551
|
-
match:
|
|
1547
|
+
formatDistance: Sn,
|
|
1548
|
+
formatLong: _n,
|
|
1549
|
+
formatRelative: zn,
|
|
1550
|
+
localize: Ln,
|
|
1551
|
+
match: nr,
|
|
1552
1552
|
options: {
|
|
1553
1553
|
weekStartsOn: 0,
|
|
1554
1554
|
firstWeekContainsDate: 1
|
|
1555
1555
|
}
|
|
1556
1556
|
};
|
|
1557
|
-
function
|
|
1557
|
+
function ar(e, t) {
|
|
1558
1558
|
const n = C(e, t?.in);
|
|
1559
|
-
return
|
|
1559
|
+
return wn(n, Cn(n)) + 1;
|
|
1560
1560
|
}
|
|
1561
|
-
function
|
|
1562
|
-
const n = C(e, t?.in), a = +B(n) - +
|
|
1563
|
-
return Math.round(a /
|
|
1561
|
+
function or(e, t) {
|
|
1562
|
+
const n = C(e, t?.in), a = +B(n) - +yn(n);
|
|
1563
|
+
return Math.round(a / Le) + 1;
|
|
1564
1564
|
}
|
|
1565
|
-
function
|
|
1565
|
+
function qe(e, t) {
|
|
1566
1566
|
const n = C(e, t?.in), a = n.getFullYear(), o = U(), i = t?.firstWeekContainsDate ?? t?.locale?.options?.firstWeekContainsDate ?? o.firstWeekContainsDate ?? o.locale?.options?.firstWeekContainsDate ?? 1, l = P(t?.in || e, 0);
|
|
1567
1567
|
l.setFullYear(a + 1, 0, i), l.setHours(0, 0, 0, 0);
|
|
1568
1568
|
const u = H(l, t), d = P(t?.in || e, 0);
|
|
@@ -1570,13 +1570,13 @@ function He(e, t) {
|
|
|
1570
1570
|
const m = H(d, t);
|
|
1571
1571
|
return +n >= +u ? a + 1 : +n >= +m ? a : a - 1;
|
|
1572
1572
|
}
|
|
1573
|
-
function
|
|
1574
|
-
const n = U(), a = t?.firstWeekContainsDate ?? t?.locale?.options?.firstWeekContainsDate ?? n.firstWeekContainsDate ?? n.locale?.options?.firstWeekContainsDate ?? 1, o =
|
|
1573
|
+
function sr(e, t) {
|
|
1574
|
+
const n = U(), a = t?.firstWeekContainsDate ?? t?.locale?.options?.firstWeekContainsDate ?? n.firstWeekContainsDate ?? n.locale?.options?.firstWeekContainsDate ?? 1, o = qe(e, t), i = P(t?.in || e, 0);
|
|
1575
1575
|
return i.setFullYear(o, 0, a), i.setHours(0, 0, 0, 0), H(i, t);
|
|
1576
1576
|
}
|
|
1577
|
-
function
|
|
1578
|
-
const n = C(e, t?.in), a = +H(n, t) - +
|
|
1579
|
-
return Math.round(a /
|
|
1577
|
+
function ir(e, t) {
|
|
1578
|
+
const n = C(e, t?.in), a = +H(n, t) - +sr(n, t);
|
|
1579
|
+
return Math.round(a / Le) + 1;
|
|
1580
1580
|
}
|
|
1581
1581
|
function h(e, t) {
|
|
1582
1582
|
const n = e < 0 ? "-" : "", a = Math.abs(e).toString().padStart(t, "0");
|
|
@@ -1669,7 +1669,7 @@ const M = {
|
|
|
1669
1669
|
},
|
|
1670
1670
|
// Local week-numbering year
|
|
1671
1671
|
Y: function(e, t, n, a) {
|
|
1672
|
-
const o =
|
|
1672
|
+
const o = qe(e, a), i = o > 0 ? o : 1 - o;
|
|
1673
1673
|
if (t === "YY") {
|
|
1674
1674
|
const l = i % 100;
|
|
1675
1675
|
return h(l, 2);
|
|
@@ -1678,7 +1678,7 @@ const M = {
|
|
|
1678
1678
|
},
|
|
1679
1679
|
// ISO week-numbering year
|
|
1680
1680
|
R: function(e, t) {
|
|
1681
|
-
const n =
|
|
1681
|
+
const n = Ve(e);
|
|
1682
1682
|
return h(n, t.length);
|
|
1683
1683
|
},
|
|
1684
1684
|
// Extended year. This is a single number designating the year of this calendar system.
|
|
@@ -1815,12 +1815,12 @@ const M = {
|
|
|
1815
1815
|
},
|
|
1816
1816
|
// Local week of year
|
|
1817
1817
|
w: function(e, t, n, a) {
|
|
1818
|
-
const o =
|
|
1818
|
+
const o = ir(e, a);
|
|
1819
1819
|
return t === "wo" ? n.ordinalNumber(o, { unit: "week" }) : h(o, t.length);
|
|
1820
1820
|
},
|
|
1821
1821
|
// ISO week of year
|
|
1822
1822
|
I: function(e, t, n) {
|
|
1823
|
-
const a =
|
|
1823
|
+
const a = or(e);
|
|
1824
1824
|
return t === "Io" ? n.ordinalNumber(a, { unit: "week" }) : h(a, t.length);
|
|
1825
1825
|
},
|
|
1826
1826
|
// Day of the month
|
|
@@ -1829,7 +1829,7 @@ const M = {
|
|
|
1829
1829
|
},
|
|
1830
1830
|
// Day of year
|
|
1831
1831
|
D: function(e, t, n) {
|
|
1832
|
-
const a =
|
|
1832
|
+
const a = ar(e);
|
|
1833
1833
|
return t === "Do" ? n.ordinalNumber(a, { unit: "dayOfYear" }) : h(a, t.length);
|
|
1834
1834
|
},
|
|
1835
1835
|
// Day of week
|
|
@@ -2184,7 +2184,7 @@ const Pe = (e, t) => {
|
|
|
2184
2184
|
default:
|
|
2185
2185
|
return t.date({ width: "full" });
|
|
2186
2186
|
}
|
|
2187
|
-
},
|
|
2187
|
+
}, He = (e, t) => {
|
|
2188
2188
|
switch (e) {
|
|
2189
2189
|
case "p":
|
|
2190
2190
|
return t.time({ width: "short" });
|
|
@@ -2195,7 +2195,7 @@ const Pe = (e, t) => {
|
|
|
2195
2195
|
default:
|
|
2196
2196
|
return t.time({ width: "full" });
|
|
2197
2197
|
}
|
|
2198
|
-
},
|
|
2198
|
+
}, dr = (e, t) => {
|
|
2199
2199
|
const n = e.match(/(P+)(p+)?/) || [], a = n[1], o = n[2];
|
|
2200
2200
|
if (!o)
|
|
2201
2201
|
return Pe(e, t);
|
|
@@ -2214,46 +2214,46 @@ const Pe = (e, t) => {
|
|
|
2214
2214
|
i = t.dateTime({ width: "full" });
|
|
2215
2215
|
break;
|
|
2216
2216
|
}
|
|
2217
|
-
return i.replace("{{date}}", Pe(a, t)).replace("{{time}}",
|
|
2218
|
-
},
|
|
2219
|
-
p:
|
|
2220
|
-
P:
|
|
2221
|
-
},
|
|
2217
|
+
return i.replace("{{date}}", Pe(a, t)).replace("{{time}}", He(o, t));
|
|
2218
|
+
}, lr = {
|
|
2219
|
+
p: He,
|
|
2220
|
+
P: dr
|
|
2221
|
+
}, cr = /^D+$/, ur = /^Y+$/, mr = ["D", "DD", "YY", "YYYY"];
|
|
2222
|
+
function fr(e) {
|
|
2223
|
+
return cr.test(e);
|
|
2224
|
+
}
|
|
2222
2225
|
function gr(e) {
|
|
2223
2226
|
return ur.test(e);
|
|
2224
2227
|
}
|
|
2225
|
-
function hr(e) {
|
|
2226
|
-
|
|
2228
|
+
function hr(e, t, n) {
|
|
2229
|
+
const a = xr(e, t, n);
|
|
2230
|
+
if (console.warn(a), mr.includes(e)) throw new RangeError(a);
|
|
2227
2231
|
}
|
|
2228
2232
|
function xr(e, t, n) {
|
|
2229
|
-
const a = pr(e, t, n);
|
|
2230
|
-
if (console.warn(a), fr.includes(e)) throw new RangeError(a);
|
|
2231
|
-
}
|
|
2232
|
-
function pr(e, t, n) {
|
|
2233
2233
|
const a = e[0] === "Y" ? "years" : "days of the month";
|
|
2234
2234
|
return `Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${t}\`) for formatting ${a} to the input \`${n}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`;
|
|
2235
2235
|
}
|
|
2236
|
-
const
|
|
2236
|
+
const pr = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, br = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, vr = /^'([^]*?)'?$/, wr = /''/g, yr = /[a-zA-Z]/;
|
|
2237
2237
|
function ie(e, t, n) {
|
|
2238
|
-
const a = U(), o = n?.locale ?? a.locale ??
|
|
2239
|
-
if (!
|
|
2238
|
+
const a = U(), o = n?.locale ?? a.locale ?? rr, i = n?.firstWeekContainsDate ?? n?.locale?.options?.firstWeekContainsDate ?? a.firstWeekContainsDate ?? a.locale?.options?.firstWeekContainsDate ?? 1, l = n?.weekStartsOn ?? n?.locale?.options?.weekStartsOn ?? a.weekStartsOn ?? a.locale?.options?.weekStartsOn ?? 0, u = C(e, n?.in);
|
|
2239
|
+
if (!Nn(u))
|
|
2240
2240
|
throw new RangeError("Invalid time value");
|
|
2241
|
-
let d = t.match(
|
|
2241
|
+
let d = t.match(br).map((f) => {
|
|
2242
2242
|
const g = f[0];
|
|
2243
2243
|
if (g === "p" || g === "P") {
|
|
2244
|
-
const w =
|
|
2244
|
+
const w = lr[g];
|
|
2245
2245
|
return w(f, o.formatLong);
|
|
2246
2246
|
}
|
|
2247
2247
|
return f;
|
|
2248
|
-
}).join("").match(
|
|
2248
|
+
}).join("").match(pr).map((f) => {
|
|
2249
2249
|
if (f === "''")
|
|
2250
2250
|
return { isToken: !1, value: "'" };
|
|
2251
2251
|
const g = f[0];
|
|
2252
2252
|
if (g === "'")
|
|
2253
|
-
return { isToken: !1, value:
|
|
2253
|
+
return { isToken: !1, value: jr(f) };
|
|
2254
2254
|
if (Se[g])
|
|
2255
2255
|
return { isToken: !0, value: f };
|
|
2256
|
-
if (g.match(
|
|
2256
|
+
if (g.match(yr))
|
|
2257
2257
|
throw new RangeError(
|
|
2258
2258
|
"Format string contains an unescaped latin alphabet character `" + g + "`"
|
|
2259
2259
|
);
|
|
@@ -2268,14 +2268,14 @@ function ie(e, t, n) {
|
|
|
2268
2268
|
return d.map((f) => {
|
|
2269
2269
|
if (!f.isToken) return f.value;
|
|
2270
2270
|
const g = f.value;
|
|
2271
|
-
(!n?.useAdditionalWeekYearTokens &&
|
|
2271
|
+
(!n?.useAdditionalWeekYearTokens && gr(g) || !n?.useAdditionalDayOfYearTokens && fr(g)) && hr(g, t, String(e));
|
|
2272
2272
|
const w = Se[g[0]];
|
|
2273
2273
|
return w(u, g, o.localize, m);
|
|
2274
2274
|
}).join("");
|
|
2275
2275
|
}
|
|
2276
|
-
function
|
|
2277
|
-
const t = e.match(
|
|
2278
|
-
return t ? t[1].replace(
|
|
2276
|
+
function jr(e) {
|
|
2277
|
+
const t = e.match(vr);
|
|
2278
|
+
return t ? t[1].replace(wr, "'") : e;
|
|
2279
2279
|
}
|
|
2280
2280
|
function J({
|
|
2281
2281
|
...e
|
|
@@ -2307,69 +2307,73 @@ function Z({
|
|
|
2307
2307
|
}
|
|
2308
2308
|
);
|
|
2309
2309
|
}
|
|
2310
|
-
function
|
|
2310
|
+
function xa({
|
|
2311
2311
|
...e
|
|
2312
2312
|
}) {
|
|
2313
2313
|
return /* @__PURE__ */ r.jsx(Q.Anchor, { "data-slot": "popover-anchor", ...e });
|
|
2314
2314
|
}
|
|
2315
|
-
function
|
|
2316
|
-
|
|
2317
|
-
|
|
2315
|
+
function pa({
|
|
2316
|
+
value: e,
|
|
2317
|
+
onChange: t = () => {
|
|
2318
|
+
},
|
|
2319
|
+
locale: n
|
|
2320
|
+
}) {
|
|
2321
|
+
const [a, o] = S(e);
|
|
2318
2322
|
return /* @__PURE__ */ r.jsxs(J, { children: [
|
|
2319
2323
|
/* @__PURE__ */ r.jsx(K, { asChild: !0, children: /* @__PURE__ */ r.jsxs(
|
|
2320
2324
|
j,
|
|
2321
2325
|
{
|
|
2322
2326
|
variant: "outline",
|
|
2323
2327
|
className: s(
|
|
2324
|
-
"justify-start text-left font-normal cursor-pointer h-
|
|
2325
|
-
!
|
|
2328
|
+
"justify-start text-left font-normal cursor-pointer h-8 border-dashed",
|
|
2329
|
+
!a && "text-muted-foreground"
|
|
2326
2330
|
),
|
|
2327
2331
|
children: [
|
|
2328
|
-
/* @__PURE__ */ r.jsx(
|
|
2329
|
-
|
|
2330
|
-
new q(
|
|
2332
|
+
/* @__PURE__ */ r.jsx(Fe, { className: "mr-2 h-4 w-4" }),
|
|
2333
|
+
a ? ie(
|
|
2334
|
+
new q(a.toString(), "UTC"),
|
|
2331
2335
|
"dd 'de' MMMM 'de' yyyy",
|
|
2332
2336
|
{
|
|
2333
|
-
locale:
|
|
2337
|
+
locale: n
|
|
2334
2338
|
}
|
|
2335
2339
|
) : /* @__PURE__ */ r.jsx("span", { children: "Selecione uma data" })
|
|
2336
2340
|
]
|
|
2337
2341
|
}
|
|
2338
2342
|
) }),
|
|
2339
2343
|
/* @__PURE__ */ r.jsx(Z, { className: "w-auto p-0", children: /* @__PURE__ */ r.jsx(
|
|
2340
|
-
|
|
2344
|
+
Ee,
|
|
2341
2345
|
{
|
|
2342
2346
|
mode: "single",
|
|
2343
2347
|
captionLayout: "dropdown",
|
|
2344
2348
|
timeZone: "UTC",
|
|
2345
|
-
selected:
|
|
2349
|
+
selected: a,
|
|
2346
2350
|
defaultMonth: e ? new q(e.toString()) : new q(),
|
|
2347
2351
|
onSelect: (i) => {
|
|
2348
|
-
console.log(i),
|
|
2352
|
+
console.log(i), o(i), t(i);
|
|
2349
2353
|
},
|
|
2350
2354
|
endMonth: new q(2099, 11)
|
|
2351
2355
|
}
|
|
2352
2356
|
) })
|
|
2353
2357
|
] });
|
|
2354
2358
|
}
|
|
2355
|
-
function
|
|
2359
|
+
function ba({
|
|
2356
2360
|
locale: e,
|
|
2357
2361
|
value: t,
|
|
2358
2362
|
onChange: n = () => {
|
|
2359
2363
|
}
|
|
2360
2364
|
}) {
|
|
2361
|
-
const [a, o] = S(t)
|
|
2365
|
+
const [a, o] = S(t);
|
|
2362
2366
|
return /* @__PURE__ */ r.jsxs(J, { children: [
|
|
2363
2367
|
/* @__PURE__ */ r.jsx(K, { asChild: !0, children: /* @__PURE__ */ r.jsxs(
|
|
2364
2368
|
j,
|
|
2365
2369
|
{
|
|
2366
2370
|
variant: "outline",
|
|
2367
2371
|
className: s(
|
|
2368
|
-
"justify-start text-left font-normal cursor-pointer h-
|
|
2372
|
+
"justify-start text-left font-normal cursor-pointer h-8 border-dashed",
|
|
2369
2373
|
!a && "text-muted-foreground"
|
|
2370
2374
|
),
|
|
2371
2375
|
children: [
|
|
2372
|
-
/* @__PURE__ */ r.jsx(
|
|
2376
|
+
/* @__PURE__ */ r.jsx(Fe, { className: "mr-2 h-4 w-4" }),
|
|
2373
2377
|
a?.from && a?.to ? `${ie(a.from, "dd/MM/yy")} - ${ie(
|
|
2374
2378
|
a.to,
|
|
2375
2379
|
"dd/MM/yy"
|
|
@@ -2378,14 +2382,14 @@ function va({
|
|
|
2378
2382
|
}
|
|
2379
2383
|
) }),
|
|
2380
2384
|
/* @__PURE__ */ r.jsx(Z, { className: "w-auto p-0", children: /* @__PURE__ */ r.jsx(
|
|
2381
|
-
|
|
2385
|
+
Ee,
|
|
2382
2386
|
{
|
|
2383
2387
|
mode: "range",
|
|
2384
2388
|
selected: a,
|
|
2385
|
-
onSelect: (
|
|
2386
|
-
|
|
2389
|
+
onSelect: (i) => {
|
|
2390
|
+
i && (o(i), n(i));
|
|
2387
2391
|
},
|
|
2388
|
-
locale: e
|
|
2392
|
+
locale: e,
|
|
2389
2393
|
captionLayout: "dropdown",
|
|
2390
2394
|
endMonth: new q(2099, 11),
|
|
2391
2395
|
numberOfMonths: 1,
|
|
@@ -2394,7 +2398,7 @@ function va({
|
|
|
2394
2398
|
) })
|
|
2395
2399
|
] });
|
|
2396
2400
|
}
|
|
2397
|
-
const
|
|
2401
|
+
const Nr = Ot(
|
|
2398
2402
|
"inline-flex items-center justify-center rounded-md border px-2 py-0.5 text-xs font-medium w-fit whitespace-nowrap shrink-0 [&>svg]:size-3 gap-1 [&>svg]:pointer-events-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive transition-[color,box-shadow] overflow-hidden",
|
|
2399
2403
|
{
|
|
2400
2404
|
variants: {
|
|
@@ -2416,17 +2420,17 @@ function ae({
|
|
|
2416
2420
|
asChild: n = !1,
|
|
2417
2421
|
...a
|
|
2418
2422
|
}) {
|
|
2419
|
-
const o = n ?
|
|
2423
|
+
const o = n ? Oe : "span";
|
|
2420
2424
|
return /* @__PURE__ */ r.jsx(
|
|
2421
2425
|
o,
|
|
2422
2426
|
{
|
|
2423
2427
|
"data-slot": "badge",
|
|
2424
|
-
className: s(
|
|
2428
|
+
className: s(Nr({ variant: t }), e),
|
|
2425
2429
|
...a
|
|
2426
2430
|
}
|
|
2427
2431
|
);
|
|
2428
2432
|
}
|
|
2429
|
-
function
|
|
2433
|
+
function va({ className: e, ...t }) {
|
|
2430
2434
|
return /* @__PURE__ */ r.jsx(
|
|
2431
2435
|
"div",
|
|
2432
2436
|
{
|
|
@@ -2439,7 +2443,7 @@ function wa({ className: e, ...t }) {
|
|
|
2439
2443
|
}
|
|
2440
2444
|
);
|
|
2441
2445
|
}
|
|
2442
|
-
function
|
|
2446
|
+
function wa({
|
|
2443
2447
|
className: e,
|
|
2444
2448
|
...t
|
|
2445
2449
|
}) {
|
|
@@ -2455,7 +2459,7 @@ function ya({
|
|
|
2455
2459
|
}
|
|
2456
2460
|
);
|
|
2457
2461
|
}
|
|
2458
|
-
function
|
|
2462
|
+
function ya({
|
|
2459
2463
|
className: e,
|
|
2460
2464
|
...t
|
|
2461
2465
|
}) {
|
|
@@ -2468,7 +2472,7 @@ function ja({
|
|
|
2468
2472
|
}
|
|
2469
2473
|
);
|
|
2470
2474
|
}
|
|
2471
|
-
function
|
|
2475
|
+
function ja({
|
|
2472
2476
|
className: e,
|
|
2473
2477
|
...t
|
|
2474
2478
|
}) {
|
|
@@ -2481,7 +2485,7 @@ function Na({
|
|
|
2481
2485
|
}
|
|
2482
2486
|
);
|
|
2483
2487
|
}
|
|
2484
|
-
function
|
|
2488
|
+
function Na({
|
|
2485
2489
|
className: e,
|
|
2486
2490
|
...t
|
|
2487
2491
|
}) {
|
|
@@ -2497,7 +2501,7 @@ function Ca({
|
|
|
2497
2501
|
}
|
|
2498
2502
|
);
|
|
2499
2503
|
}
|
|
2500
|
-
function
|
|
2504
|
+
function Ca({
|
|
2501
2505
|
className: e,
|
|
2502
2506
|
...t
|
|
2503
2507
|
}) {
|
|
@@ -2510,7 +2514,7 @@ function ka({
|
|
|
2510
2514
|
}
|
|
2511
2515
|
);
|
|
2512
2516
|
}
|
|
2513
|
-
function
|
|
2517
|
+
function ka({
|
|
2514
2518
|
className: e,
|
|
2515
2519
|
...t
|
|
2516
2520
|
}) {
|
|
@@ -2523,7 +2527,7 @@ function Sa({
|
|
|
2523
2527
|
}
|
|
2524
2528
|
);
|
|
2525
2529
|
}
|
|
2526
|
-
function
|
|
2530
|
+
function Sa({
|
|
2527
2531
|
className: e,
|
|
2528
2532
|
...t
|
|
2529
2533
|
}) {
|
|
@@ -2547,12 +2551,12 @@ function Da({
|
|
|
2547
2551
|
}
|
|
2548
2552
|
);
|
|
2549
2553
|
}
|
|
2550
|
-
function
|
|
2554
|
+
function Da({
|
|
2551
2555
|
...e
|
|
2552
2556
|
}) {
|
|
2553
2557
|
return /* @__PURE__ */ r.jsx(fe.Root, { "data-slot": "collapsible", ...e });
|
|
2554
2558
|
}
|
|
2555
|
-
function
|
|
2559
|
+
function Ma({
|
|
2556
2560
|
...e
|
|
2557
2561
|
}) {
|
|
2558
2562
|
return /* @__PURE__ */ r.jsx(
|
|
@@ -2563,7 +2567,7 @@ function Pa({
|
|
|
2563
2567
|
}
|
|
2564
2568
|
);
|
|
2565
2569
|
}
|
|
2566
|
-
function
|
|
2570
|
+
function Pa({
|
|
2567
2571
|
...e
|
|
2568
2572
|
}) {
|
|
2569
2573
|
return /* @__PURE__ */ r.jsx(
|
|
@@ -2574,27 +2578,27 @@ function _a({
|
|
|
2574
2578
|
}
|
|
2575
2579
|
);
|
|
2576
2580
|
}
|
|
2577
|
-
function
|
|
2581
|
+
function Cr({
|
|
2578
2582
|
...e
|
|
2579
2583
|
}) {
|
|
2580
2584
|
return /* @__PURE__ */ r.jsx(D.Root, { "data-slot": "dialog", ...e });
|
|
2581
2585
|
}
|
|
2582
|
-
function
|
|
2586
|
+
function _a({
|
|
2583
2587
|
...e
|
|
2584
2588
|
}) {
|
|
2585
2589
|
return /* @__PURE__ */ r.jsx(D.Trigger, { "data-slot": "dialog-trigger", ...e });
|
|
2586
2590
|
}
|
|
2587
|
-
function
|
|
2591
|
+
function kr({
|
|
2588
2592
|
...e
|
|
2589
2593
|
}) {
|
|
2590
2594
|
return /* @__PURE__ */ r.jsx(D.Portal, { "data-slot": "dialog-portal", ...e });
|
|
2591
2595
|
}
|
|
2592
|
-
function
|
|
2596
|
+
function Ta({
|
|
2593
2597
|
...e
|
|
2594
2598
|
}) {
|
|
2595
2599
|
return /* @__PURE__ */ r.jsx(D.Close, { "data-slot": "dialog-close", ...e });
|
|
2596
2600
|
}
|
|
2597
|
-
function
|
|
2601
|
+
function Sr({
|
|
2598
2602
|
className: e,
|
|
2599
2603
|
...t
|
|
2600
2604
|
}) {
|
|
@@ -2610,14 +2614,14 @@ function Dr({
|
|
|
2610
2614
|
}
|
|
2611
2615
|
);
|
|
2612
2616
|
}
|
|
2613
|
-
function
|
|
2617
|
+
function Dr({
|
|
2614
2618
|
className: e,
|
|
2615
2619
|
children: t,
|
|
2616
2620
|
showCloseButton: n = !0,
|
|
2617
2621
|
...a
|
|
2618
2622
|
}) {
|
|
2619
|
-
return /* @__PURE__ */ r.jsxs(
|
|
2620
|
-
/* @__PURE__ */ r.jsx(
|
|
2623
|
+
return /* @__PURE__ */ r.jsxs(kr, { "data-slot": "dialog-portal", children: [
|
|
2624
|
+
/* @__PURE__ */ r.jsx(Sr, {}),
|
|
2621
2625
|
/* @__PURE__ */ r.jsxs(
|
|
2622
2626
|
D.Content,
|
|
2623
2627
|
{
|
|
@@ -2635,7 +2639,7 @@ function Mr({
|
|
|
2635
2639
|
"data-slot": "dialog-close",
|
|
2636
2640
|
className: "ring-offset-background focus:ring-ring data-[state=open]:bg-accent data-[state=open]:text-muted-foreground absolute top-4 right-4 rounded-xs opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
|
|
2637
2641
|
children: [
|
|
2638
|
-
/* @__PURE__ */ r.jsx(
|
|
2642
|
+
/* @__PURE__ */ r.jsx(Tt, {}),
|
|
2639
2643
|
/* @__PURE__ */ r.jsx("span", { className: "sr-only", children: "Close" })
|
|
2640
2644
|
]
|
|
2641
2645
|
}
|
|
@@ -2645,7 +2649,7 @@ function Mr({
|
|
|
2645
2649
|
)
|
|
2646
2650
|
] });
|
|
2647
2651
|
}
|
|
2648
|
-
function
|
|
2652
|
+
function Mr({
|
|
2649
2653
|
className: e,
|
|
2650
2654
|
...t
|
|
2651
2655
|
}) {
|
|
@@ -2658,7 +2662,7 @@ function Pr({
|
|
|
2658
2662
|
}
|
|
2659
2663
|
);
|
|
2660
2664
|
}
|
|
2661
|
-
function
|
|
2665
|
+
function za({
|
|
2662
2666
|
className: e,
|
|
2663
2667
|
...t
|
|
2664
2668
|
}) {
|
|
@@ -2674,7 +2678,7 @@ function Fa({
|
|
|
2674
2678
|
}
|
|
2675
2679
|
);
|
|
2676
2680
|
}
|
|
2677
|
-
function
|
|
2681
|
+
function Pr({
|
|
2678
2682
|
className: e,
|
|
2679
2683
|
...t
|
|
2680
2684
|
}) {
|
|
@@ -2687,7 +2691,7 @@ function _r({
|
|
|
2687
2691
|
}
|
|
2688
2692
|
);
|
|
2689
2693
|
}
|
|
2690
|
-
function
|
|
2694
|
+
function _r({
|
|
2691
2695
|
className: e,
|
|
2692
2696
|
...t
|
|
2693
2697
|
}) {
|
|
@@ -2716,7 +2720,7 @@ function he({
|
|
|
2716
2720
|
}
|
|
2717
2721
|
);
|
|
2718
2722
|
}
|
|
2719
|
-
function
|
|
2723
|
+
function Fa({
|
|
2720
2724
|
title: e = "Command Palette",
|
|
2721
2725
|
description: t = "Search for a command to run...",
|
|
2722
2726
|
children: n,
|
|
@@ -2724,13 +2728,13 @@ function Ia({
|
|
|
2724
2728
|
showCloseButton: o = !0,
|
|
2725
2729
|
...i
|
|
2726
2730
|
}) {
|
|
2727
|
-
return /* @__PURE__ */ r.jsxs(
|
|
2728
|
-
/* @__PURE__ */ r.jsxs(
|
|
2729
|
-
/* @__PURE__ */ r.jsx(
|
|
2730
|
-
/* @__PURE__ */ r.jsx(
|
|
2731
|
+
return /* @__PURE__ */ r.jsxs(Cr, { ...i, children: [
|
|
2732
|
+
/* @__PURE__ */ r.jsxs(Mr, { className: "sr-only", children: [
|
|
2733
|
+
/* @__PURE__ */ r.jsx(Pr, { children: e }),
|
|
2734
|
+
/* @__PURE__ */ r.jsx(_r, { children: t })
|
|
2731
2735
|
] }),
|
|
2732
2736
|
/* @__PURE__ */ r.jsx(
|
|
2733
|
-
|
|
2737
|
+
Dr,
|
|
2734
2738
|
{
|
|
2735
2739
|
className: s("overflow-hidden p-0", a),
|
|
2736
2740
|
showCloseButton: o,
|
|
@@ -2739,7 +2743,7 @@ function Ia({
|
|
|
2739
2743
|
)
|
|
2740
2744
|
] });
|
|
2741
2745
|
}
|
|
2742
|
-
function
|
|
2746
|
+
function Ge({
|
|
2743
2747
|
className: e,
|
|
2744
2748
|
...t
|
|
2745
2749
|
}) {
|
|
@@ -2749,7 +2753,7 @@ function $e({
|
|
|
2749
2753
|
"data-slot": "command-input-wrapper",
|
|
2750
2754
|
className: "flex h-9 items-center gap-2 border-b px-3",
|
|
2751
2755
|
children: [
|
|
2752
|
-
/* @__PURE__ */ r.jsx(
|
|
2756
|
+
/* @__PURE__ */ r.jsx(zt, { className: "size-4 shrink-0 opacity-50" }),
|
|
2753
2757
|
/* @__PURE__ */ r.jsx(
|
|
2754
2758
|
T.Input,
|
|
2755
2759
|
{
|
|
@@ -2765,7 +2769,7 @@ function $e({
|
|
|
2765
2769
|
}
|
|
2766
2770
|
);
|
|
2767
2771
|
}
|
|
2768
|
-
function
|
|
2772
|
+
function $e({
|
|
2769
2773
|
className: e,
|
|
2770
2774
|
...t
|
|
2771
2775
|
}) {
|
|
@@ -2781,7 +2785,7 @@ function Ae({
|
|
|
2781
2785
|
}
|
|
2782
2786
|
);
|
|
2783
2787
|
}
|
|
2784
|
-
function
|
|
2788
|
+
function Ae({
|
|
2785
2789
|
...e
|
|
2786
2790
|
}) {
|
|
2787
2791
|
return /* @__PURE__ */ r.jsx(
|
|
@@ -2809,7 +2813,7 @@ function de({
|
|
|
2809
2813
|
}
|
|
2810
2814
|
);
|
|
2811
2815
|
}
|
|
2812
|
-
function
|
|
2816
|
+
function Tr({
|
|
2813
2817
|
className: e,
|
|
2814
2818
|
...t
|
|
2815
2819
|
}) {
|
|
@@ -2838,7 +2842,7 @@ function le({
|
|
|
2838
2842
|
}
|
|
2839
2843
|
);
|
|
2840
2844
|
}
|
|
2841
|
-
function
|
|
2845
|
+
function Ia({
|
|
2842
2846
|
className: e,
|
|
2843
2847
|
...t
|
|
2844
2848
|
}) {
|
|
@@ -2854,7 +2858,7 @@ function Oa({
|
|
|
2854
2858
|
}
|
|
2855
2859
|
);
|
|
2856
2860
|
}
|
|
2857
|
-
function
|
|
2861
|
+
function Oa({
|
|
2858
2862
|
data: e = [],
|
|
2859
2863
|
placeholder: t = "Selecione um item...",
|
|
2860
2864
|
value: n,
|
|
@@ -2875,21 +2879,21 @@ function Wa({
|
|
|
2875
2879
|
disabled: a.disabled,
|
|
2876
2880
|
children: [
|
|
2877
2881
|
u > -1 ? e[u].label : /* @__PURE__ */ r.jsx("div", { className: "text-sm text-foreground opacity-50 font-normal", children: t }),
|
|
2878
|
-
/* @__PURE__ */ r.jsx(
|
|
2882
|
+
/* @__PURE__ */ r.jsx(Ft, { className: "opacity-50" })
|
|
2879
2883
|
]
|
|
2880
2884
|
}
|
|
2881
2885
|
) }),
|
|
2882
2886
|
/* @__PURE__ */ r.jsx(Z, { className: " lg:w-[654px] md:w-[558px] p-0", children: /* @__PURE__ */ r.jsxs(he, { children: [
|
|
2883
2887
|
/* @__PURE__ */ r.jsx(
|
|
2884
|
-
|
|
2888
|
+
Ge,
|
|
2885
2889
|
{
|
|
2886
2890
|
placeholder: t,
|
|
2887
2891
|
className: "h-9 opacity-50",
|
|
2888
2892
|
...a
|
|
2889
2893
|
}
|
|
2890
2894
|
),
|
|
2891
|
-
/* @__PURE__ */ r.jsxs(
|
|
2892
|
-
/* @__PURE__ */ r.jsx(
|
|
2895
|
+
/* @__PURE__ */ r.jsxs($e, { children: [
|
|
2896
|
+
/* @__PURE__ */ r.jsx(Ae, { children: "Nenhum registro encontrado." }),
|
|
2893
2897
|
/* @__PURE__ */ r.jsx(de, { children: e?.map((m) => /* @__PURE__ */ r.jsxs(
|
|
2894
2898
|
le,
|
|
2895
2899
|
{
|
|
@@ -2904,7 +2908,7 @@ function Wa({
|
|
|
2904
2908
|
children: [
|
|
2905
2909
|
m.label,
|
|
2906
2910
|
/* @__PURE__ */ r.jsx(
|
|
2907
|
-
|
|
2911
|
+
Ie,
|
|
2908
2912
|
{
|
|
2909
2913
|
className: s(
|
|
2910
2914
|
"ml-auto",
|
|
@@ -2920,14 +2924,14 @@ function Wa({
|
|
|
2920
2924
|
] }) })
|
|
2921
2925
|
] });
|
|
2922
2926
|
}
|
|
2923
|
-
function
|
|
2927
|
+
function zr({
|
|
2924
2928
|
className: e,
|
|
2925
2929
|
orientation: t = "horizontal",
|
|
2926
2930
|
decorative: n = !0,
|
|
2927
2931
|
...a
|
|
2928
2932
|
}) {
|
|
2929
2933
|
return /* @__PURE__ */ r.jsx(
|
|
2930
|
-
|
|
2934
|
+
At.Root,
|
|
2931
2935
|
{
|
|
2932
2936
|
"data-slot": "separator",
|
|
2933
2937
|
decorative: n,
|
|
@@ -2940,7 +2944,7 @@ function Fr({
|
|
|
2940
2944
|
}
|
|
2941
2945
|
);
|
|
2942
2946
|
}
|
|
2943
|
-
function
|
|
2947
|
+
function Wa({
|
|
2944
2948
|
column: e,
|
|
2945
2949
|
title: t,
|
|
2946
2950
|
options: n,
|
|
@@ -2957,10 +2961,10 @@ function Ya({
|
|
|
2957
2961
|
},
|
|
2958
2962
|
children: [
|
|
2959
2963
|
/* @__PURE__ */ r.jsx(K, { asChild: !0, children: /* @__PURE__ */ r.jsxs(j, { variant: "outline", size: "sm", className: "h-8 border-dashed", children: [
|
|
2960
|
-
/* @__PURE__ */ r.jsx(
|
|
2964
|
+
/* @__PURE__ */ r.jsx(It, {}),
|
|
2961
2965
|
t,
|
|
2962
2966
|
u?.length > 0 && /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
|
|
2963
|
-
/* @__PURE__ */ r.jsx(
|
|
2967
|
+
/* @__PURE__ */ r.jsx(zr, { orientation: "vertical", className: "mx-2 h-4" }),
|
|
2964
2968
|
/* @__PURE__ */ r.jsx(
|
|
2965
2969
|
ae,
|
|
2966
2970
|
{
|
|
@@ -2991,9 +2995,9 @@ function Ya({
|
|
|
2991
2995
|
] })
|
|
2992
2996
|
] }) }),
|
|
2993
2997
|
/* @__PURE__ */ r.jsx(Z, { className: "w-[200px] p-0", align: "start", children: /* @__PURE__ */ r.jsxs(he, { children: [
|
|
2994
|
-
/* @__PURE__ */ r.jsx(
|
|
2995
|
-
/* @__PURE__ */ r.jsxs(
|
|
2996
|
-
/* @__PURE__ */ r.jsx(
|
|
2998
|
+
/* @__PURE__ */ r.jsx(Ge, { placeholder: t }),
|
|
2999
|
+
/* @__PURE__ */ r.jsxs($e, { children: [
|
|
3000
|
+
/* @__PURE__ */ r.jsx(Ae, { children: "Nenhum resultado encontrado." }),
|
|
2997
3001
|
/* @__PURE__ */ r.jsx(de, { children: n.map((d) => {
|
|
2998
3002
|
const m = u.includes(d.value);
|
|
2999
3003
|
return /* @__PURE__ */ r.jsxs(
|
|
@@ -3017,7 +3021,7 @@ function Ya({
|
|
|
3017
3021
|
"flex size-4 items-center justify-center rounded-[4px] border",
|
|
3018
3022
|
m ? "bg-primary border-primary text-primary-foreground" : "border-input [&_svg]:invisible"
|
|
3019
3023
|
),
|
|
3020
|
-
children: /* @__PURE__ */ r.jsx(
|
|
3024
|
+
children: /* @__PURE__ */ r.jsx(Ie, { className: "text-primary-foreground size-3.5" })
|
|
3021
3025
|
}
|
|
3022
3026
|
),
|
|
3023
3027
|
d.icon && /* @__PURE__ */ r.jsx(d.icon, { className: "text-muted-foreground size-4" }),
|
|
@@ -3029,7 +3033,7 @@ function Ya({
|
|
|
3029
3033
|
);
|
|
3030
3034
|
}) }),
|
|
3031
3035
|
u.length > 0 && /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
|
|
3032
|
-
/* @__PURE__ */ r.jsx(
|
|
3036
|
+
/* @__PURE__ */ r.jsx(Tr, {}),
|
|
3033
3037
|
/* @__PURE__ */ r.jsx(de, { children: /* @__PURE__ */ r.jsx(
|
|
3034
3038
|
le,
|
|
3035
3039
|
{
|
|
@@ -3047,12 +3051,12 @@ function Ya({
|
|
|
3047
3051
|
}
|
|
3048
3052
|
);
|
|
3049
3053
|
}
|
|
3050
|
-
const
|
|
3054
|
+
const Ya = Bt, Be = N.createContext(
|
|
3051
3055
|
{}
|
|
3052
|
-
),
|
|
3056
|
+
), Ra = ({
|
|
3053
3057
|
...e
|
|
3054
|
-
}) => /* @__PURE__ */ r.jsx(
|
|
3055
|
-
const e = N.useContext(
|
|
3058
|
+
}) => /* @__PURE__ */ r.jsx(Be.Provider, { value: { name: e.name }, children: /* @__PURE__ */ r.jsx(Qt, { ...e }) }), ee = () => {
|
|
3059
|
+
const e = N.useContext(Be), t = N.useContext(Qe), { getFieldState: n } = Xt(), a = Ut({ name: e.name }), o = n(e.name, a);
|
|
3056
3060
|
if (!e)
|
|
3057
3061
|
throw new Error("useFormField should be used within <FormField>");
|
|
3058
3062
|
const { id: i } = t;
|
|
@@ -3064,12 +3068,12 @@ const Ra = Qt, Qe = N.createContext(
|
|
|
3064
3068
|
formMessageId: `${i}-form-item-message`,
|
|
3065
3069
|
...o
|
|
3066
3070
|
};
|
|
3067
|
-
},
|
|
3071
|
+
}, Qe = N.createContext(
|
|
3068
3072
|
{}
|
|
3069
3073
|
);
|
|
3070
|
-
function
|
|
3074
|
+
function Ea({ className: e, ...t }) {
|
|
3071
3075
|
const n = N.useId();
|
|
3072
|
-
return /* @__PURE__ */ r.jsx(
|
|
3076
|
+
return /* @__PURE__ */ r.jsx(Qe.Provider, { value: { id: n }, children: /* @__PURE__ */ r.jsx(
|
|
3073
3077
|
"div",
|
|
3074
3078
|
{
|
|
3075
3079
|
"data-slot": "form-item",
|
|
@@ -3078,13 +3082,13 @@ function La({ className: e, ...t }) {
|
|
|
3078
3082
|
}
|
|
3079
3083
|
) });
|
|
3080
3084
|
}
|
|
3081
|
-
function
|
|
3085
|
+
function La({
|
|
3082
3086
|
className: e,
|
|
3083
3087
|
...t
|
|
3084
3088
|
}) {
|
|
3085
3089
|
const { error: n, formItemId: a } = ee();
|
|
3086
3090
|
return /* @__PURE__ */ r.jsx(
|
|
3087
|
-
|
|
3091
|
+
Ye,
|
|
3088
3092
|
{
|
|
3089
3093
|
"data-slot": "form-label",
|
|
3090
3094
|
"data-error": !!n,
|
|
@@ -3094,10 +3098,10 @@ function Va({
|
|
|
3094
3098
|
}
|
|
3095
3099
|
);
|
|
3096
3100
|
}
|
|
3097
|
-
function
|
|
3101
|
+
function Va({ ...e }) {
|
|
3098
3102
|
const { error: t, formItemId: n, formDescriptionId: a, formMessageId: o } = ee();
|
|
3099
3103
|
return /* @__PURE__ */ r.jsx(
|
|
3100
|
-
|
|
3104
|
+
Oe,
|
|
3101
3105
|
{
|
|
3102
3106
|
"data-slot": "form-control",
|
|
3103
3107
|
id: n,
|
|
@@ -3107,7 +3111,7 @@ function qa({ ...e }) {
|
|
|
3107
3111
|
}
|
|
3108
3112
|
);
|
|
3109
3113
|
}
|
|
3110
|
-
function
|
|
3114
|
+
function qa({
|
|
3111
3115
|
className: e,
|
|
3112
3116
|
...t
|
|
3113
3117
|
}) {
|
|
@@ -3122,7 +3126,7 @@ function Ha({
|
|
|
3122
3126
|
}
|
|
3123
3127
|
);
|
|
3124
3128
|
}
|
|
3125
|
-
function
|
|
3129
|
+
function Ha({
|
|
3126
3130
|
className: e,
|
|
3127
3131
|
...t
|
|
3128
3132
|
}) {
|
|
@@ -3138,7 +3142,7 @@ function Ga({
|
|
|
3138
3142
|
}
|
|
3139
3143
|
) : null;
|
|
3140
3144
|
}
|
|
3141
|
-
function
|
|
3145
|
+
function Fr({ className: e, ...t }) {
|
|
3142
3146
|
return /* @__PURE__ */ r.jsx(
|
|
3143
3147
|
"div",
|
|
3144
3148
|
{
|
|
@@ -3148,10 +3152,10 @@ function Ir({ className: e, ...t }) {
|
|
|
3148
3152
|
}
|
|
3149
3153
|
);
|
|
3150
3154
|
}
|
|
3151
|
-
const
|
|
3152
|
-
const { theme: t = "system" } =
|
|
3155
|
+
const Ga = ({ ...e }) => {
|
|
3156
|
+
const { theme: t = "system" } = Jt();
|
|
3153
3157
|
return /* @__PURE__ */ r.jsx(
|
|
3154
|
-
|
|
3158
|
+
Kt,
|
|
3155
3159
|
{
|
|
3156
3160
|
theme: t,
|
|
3157
3161
|
className: "toaster group",
|
|
@@ -3164,7 +3168,7 @@ const $a = ({ ...e }) => {
|
|
|
3164
3168
|
}
|
|
3165
3169
|
);
|
|
3166
3170
|
};
|
|
3167
|
-
function
|
|
3171
|
+
function $a({
|
|
3168
3172
|
className: e,
|
|
3169
3173
|
...t
|
|
3170
3174
|
}) {
|
|
@@ -3177,7 +3181,7 @@ function Aa({
|
|
|
3177
3181
|
}
|
|
3178
3182
|
);
|
|
3179
3183
|
}
|
|
3180
|
-
function
|
|
3184
|
+
function Aa({
|
|
3181
3185
|
className: e,
|
|
3182
3186
|
...t
|
|
3183
3187
|
}) {
|
|
@@ -3193,7 +3197,7 @@ function Ba({
|
|
|
3193
3197
|
}
|
|
3194
3198
|
);
|
|
3195
3199
|
}
|
|
3196
|
-
function
|
|
3200
|
+
function Ba({
|
|
3197
3201
|
className: e,
|
|
3198
3202
|
...t
|
|
3199
3203
|
}) {
|
|
@@ -3209,7 +3213,7 @@ function Qa({
|
|
|
3209
3213
|
}
|
|
3210
3214
|
);
|
|
3211
3215
|
}
|
|
3212
|
-
function
|
|
3216
|
+
function Qa({
|
|
3213
3217
|
className: e,
|
|
3214
3218
|
...t
|
|
3215
3219
|
}) {
|
|
@@ -3222,7 +3226,7 @@ function Xa({
|
|
|
3222
3226
|
}
|
|
3223
3227
|
);
|
|
3224
3228
|
}
|
|
3225
|
-
function
|
|
3229
|
+
function Xa({
|
|
3226
3230
|
className: e,
|
|
3227
3231
|
...t
|
|
3228
3232
|
}) {
|
|
@@ -3238,18 +3242,18 @@ function Ua({
|
|
|
3238
3242
|
}
|
|
3239
3243
|
);
|
|
3240
3244
|
}
|
|
3241
|
-
function
|
|
3245
|
+
function Ua({ user: e }) {
|
|
3242
3246
|
const t = e?.username, n = t ? t.substring(0, 2) : "";
|
|
3243
|
-
return e.id === "" ? /* @__PURE__ */ r.jsx(
|
|
3247
|
+
return e.id === "" ? /* @__PURE__ */ r.jsx(Fr, { className: "h-9 w-9 rounded-4xl" }) : /* @__PURE__ */ r.jsx("div", { className: "rounded-full w-9 h-9 justify-center text-xs cursor-default uppercase items-center flex flex-col bg-amber-400 border-2 border-black", children: n });
|
|
3244
3248
|
}
|
|
3245
|
-
const
|
|
3246
|
-
function
|
|
3247
|
-
const e = N.useContext(
|
|
3249
|
+
const Ir = { light: "", dark: ".dark" }, Xe = N.createContext(null);
|
|
3250
|
+
function Ue() {
|
|
3251
|
+
const e = N.useContext(Xe);
|
|
3248
3252
|
if (!e)
|
|
3249
3253
|
throw new Error("useChart must be used within a <ChartContainer />");
|
|
3250
3254
|
return e;
|
|
3251
3255
|
}
|
|
3252
|
-
function
|
|
3256
|
+
function Ja({
|
|
3253
3257
|
id: e,
|
|
3254
3258
|
className: t,
|
|
3255
3259
|
children: n,
|
|
@@ -3257,7 +3261,7 @@ function Ka({
|
|
|
3257
3261
|
...o
|
|
3258
3262
|
}) {
|
|
3259
3263
|
const i = N.useId(), l = `chart-${e || i.replace(/:/g, "")}`;
|
|
3260
|
-
return /* @__PURE__ */ r.jsx(
|
|
3264
|
+
return /* @__PURE__ */ r.jsx(Xe.Provider, { value: { config: a }, children: /* @__PURE__ */ r.jsxs(
|
|
3261
3265
|
"div",
|
|
3262
3266
|
{
|
|
3263
3267
|
"data-slot": "chart",
|
|
@@ -3268,13 +3272,13 @@ function Ka({
|
|
|
3268
3272
|
),
|
|
3269
3273
|
...o,
|
|
3270
3274
|
children: [
|
|
3271
|
-
/* @__PURE__ */ r.jsx(
|
|
3275
|
+
/* @__PURE__ */ r.jsx(Or, { id: l, config: a }),
|
|
3272
3276
|
/* @__PURE__ */ r.jsx(ge.ResponsiveContainer, { children: n })
|
|
3273
3277
|
]
|
|
3274
3278
|
}
|
|
3275
3279
|
) });
|
|
3276
3280
|
}
|
|
3277
|
-
const
|
|
3281
|
+
const Or = ({
|
|
3278
3282
|
id: e,
|
|
3279
3283
|
config: t
|
|
3280
3284
|
}) => {
|
|
@@ -3285,7 +3289,7 @@ const Wr = ({
|
|
|
3285
3289
|
"style",
|
|
3286
3290
|
{
|
|
3287
3291
|
dangerouslySetInnerHTML: {
|
|
3288
|
-
__html: Object.entries(
|
|
3292
|
+
__html: Object.entries(Ir).map(
|
|
3289
3293
|
([a, o]) => `
|
|
3290
3294
|
${o} [data-chart=${e}] {
|
|
3291
3295
|
${n.map(([i, l]) => {
|
|
@@ -3300,8 +3304,8 @@ ${n.map(([i, l]) => {
|
|
|
3300
3304
|
}
|
|
3301
3305
|
}
|
|
3302
3306
|
) : null;
|
|
3303
|
-
},
|
|
3304
|
-
function
|
|
3307
|
+
}, Ka = ge.Tooltip;
|
|
3308
|
+
function Za({
|
|
3305
3309
|
active: e,
|
|
3306
3310
|
payload: t,
|
|
3307
3311
|
className: n,
|
|
@@ -3316,7 +3320,7 @@ function eo({
|
|
|
3316
3320
|
nameKey: g,
|
|
3317
3321
|
labelKey: w
|
|
3318
3322
|
}) {
|
|
3319
|
-
const { config: z } =
|
|
3323
|
+
const { config: z } = Ue(), G = N.useMemo(() => {
|
|
3320
3324
|
if (o || !t?.length)
|
|
3321
3325
|
return null;
|
|
3322
3326
|
const [p] = t, W = `${w || p?.dataKey || p?.name || "value"}`, I = ce(z, p, W), k = !w && typeof l == "string" ? z[l]?.label || l : I?.label;
|
|
@@ -3395,15 +3399,15 @@ function eo({
|
|
|
3395
3399
|
}
|
|
3396
3400
|
);
|
|
3397
3401
|
}
|
|
3398
|
-
const
|
|
3399
|
-
function
|
|
3402
|
+
const eo = ge.Legend;
|
|
3403
|
+
function to({
|
|
3400
3404
|
className: e,
|
|
3401
3405
|
hideIcon: t = !1,
|
|
3402
3406
|
payload: n,
|
|
3403
3407
|
verticalAlign: a = "bottom",
|
|
3404
3408
|
nameKey: o
|
|
3405
3409
|
}) {
|
|
3406
|
-
const { config: i } =
|
|
3410
|
+
const { config: i } = Ue();
|
|
3407
3411
|
return n?.length ? /* @__PURE__ */ r.jsx(
|
|
3408
3412
|
"div",
|
|
3409
3413
|
{
|
|
@@ -3447,112 +3451,112 @@ function ce(e, t, n) {
|
|
|
3447
3451
|
return n in t && typeof t[n] == "string" ? o = t[n] : a && n in a && typeof a[n] == "string" && (o = a[n]), o in e ? e[o] : e[n];
|
|
3448
3452
|
}
|
|
3449
3453
|
export {
|
|
3450
|
-
|
|
3454
|
+
Ua as Avatar,
|
|
3451
3455
|
ae as Badge,
|
|
3452
3456
|
j as Button,
|
|
3453
|
-
|
|
3454
|
-
|
|
3455
|
-
|
|
3456
|
-
|
|
3457
|
-
|
|
3458
|
-
|
|
3459
|
-
|
|
3460
|
-
|
|
3461
|
-
|
|
3462
|
-
|
|
3463
|
-
|
|
3464
|
-
|
|
3465
|
-
|
|
3466
|
-
|
|
3467
|
-
|
|
3468
|
-
|
|
3469
|
-
|
|
3470
|
-
|
|
3471
|
-
|
|
3472
|
-
|
|
3457
|
+
Ee as Calendar,
|
|
3458
|
+
xn as CalendarDayButton,
|
|
3459
|
+
va as Card,
|
|
3460
|
+
Na as CardAction,
|
|
3461
|
+
Ca as CardContent,
|
|
3462
|
+
ja as CardDescription,
|
|
3463
|
+
ka as CardFooter,
|
|
3464
|
+
wa as CardHeader,
|
|
3465
|
+
ya as CardTitle,
|
|
3466
|
+
Ja as ChartContainer,
|
|
3467
|
+
eo as ChartLegend,
|
|
3468
|
+
to as ChartLegendContent,
|
|
3469
|
+
Or as ChartStyle,
|
|
3470
|
+
Ka as ChartTooltip,
|
|
3471
|
+
Za as ChartTooltipContent,
|
|
3472
|
+
Sa as Checkbox,
|
|
3473
|
+
Da as Collapsible,
|
|
3474
|
+
Pa as CollapsibleContent,
|
|
3475
|
+
Ma as CollapsibleTrigger,
|
|
3476
|
+
Oa as Combobox,
|
|
3473
3477
|
he as Command,
|
|
3474
|
-
|
|
3475
|
-
|
|
3478
|
+
Fa as CommandDialog,
|
|
3479
|
+
Ae as CommandEmpty,
|
|
3476
3480
|
de as CommandGroup,
|
|
3477
|
-
|
|
3481
|
+
Ge as CommandInput,
|
|
3478
3482
|
le as CommandItem,
|
|
3479
|
-
|
|
3480
|
-
|
|
3481
|
-
|
|
3482
|
-
|
|
3483
|
-
|
|
3484
|
-
|
|
3485
|
-
|
|
3486
|
-
|
|
3487
|
-
|
|
3488
|
-
|
|
3489
|
-
|
|
3490
|
-
|
|
3491
|
-
|
|
3492
|
-
|
|
3493
|
-
|
|
3494
|
-
|
|
3495
|
-
|
|
3496
|
-
|
|
3497
|
-
|
|
3498
|
-
|
|
3483
|
+
$e as CommandList,
|
|
3484
|
+
Tr as CommandSeparator,
|
|
3485
|
+
Ia as CommandShortcut,
|
|
3486
|
+
ma as DataTable,
|
|
3487
|
+
Wa as DataTableFacetedFilter,
|
|
3488
|
+
pa as DatePicker,
|
|
3489
|
+
ba as DateRangePicker,
|
|
3490
|
+
da as DefaultDropdownMenuTrigger,
|
|
3491
|
+
Cr as Dialog,
|
|
3492
|
+
Ta as DialogClose,
|
|
3493
|
+
Dr as DialogContent,
|
|
3494
|
+
_r as DialogDescription,
|
|
3495
|
+
za as DialogFooter,
|
|
3496
|
+
Mr as DialogHeader,
|
|
3497
|
+
Sr as DialogOverlay,
|
|
3498
|
+
kr as DialogPortal,
|
|
3499
|
+
Pr as DialogTitle,
|
|
3500
|
+
_a as DialogTrigger,
|
|
3501
|
+
fa as DragHandle,
|
|
3502
|
+
Zt as DraggableRow,
|
|
3499
3503
|
ye as DropdownMenu,
|
|
3500
|
-
|
|
3504
|
+
en as DropdownMenuCheckboxItem,
|
|
3501
3505
|
je as DropdownMenuContent,
|
|
3502
|
-
|
|
3503
|
-
|
|
3504
|
-
|
|
3505
|
-
|
|
3506
|
-
|
|
3507
|
-
|
|
3508
|
-
|
|
3509
|
-
|
|
3510
|
-
|
|
3511
|
-
|
|
3512
|
-
|
|
3506
|
+
ea as DropdownMenuGroup,
|
|
3507
|
+
ta as DropdownMenuItem,
|
|
3508
|
+
na as DropdownMenuLabel,
|
|
3509
|
+
Zr as DropdownMenuPortal,
|
|
3510
|
+
tn as DropdownMenuRadioGroup,
|
|
3511
|
+
nn as DropdownMenuRadioItem,
|
|
3512
|
+
ra as DropdownMenuSeparator,
|
|
3513
|
+
aa as DropdownMenuShortcut,
|
|
3514
|
+
oa as DropdownMenuSub,
|
|
3515
|
+
ia as DropdownMenuSubContent,
|
|
3516
|
+
sa as DropdownMenuSubTrigger,
|
|
3513
3517
|
oe as DropdownMenuTrigger,
|
|
3514
|
-
|
|
3515
|
-
|
|
3516
|
-
|
|
3517
|
-
|
|
3518
|
-
|
|
3519
|
-
|
|
3520
|
-
|
|
3521
|
-
|
|
3522
|
-
|
|
3518
|
+
Ya as Form,
|
|
3519
|
+
Va as FormControl,
|
|
3520
|
+
qa as FormDescription,
|
|
3521
|
+
Ra as FormField,
|
|
3522
|
+
Ea as FormItem,
|
|
3523
|
+
La as FormLabel,
|
|
3524
|
+
Ha as FormMessage,
|
|
3525
|
+
rn as Input,
|
|
3526
|
+
Ye as Label,
|
|
3523
3527
|
J as Popover,
|
|
3524
|
-
|
|
3528
|
+
xa as PopoverAnchor,
|
|
3525
3529
|
Z as PopoverContent,
|
|
3526
3530
|
K as PopoverTrigger,
|
|
3527
|
-
|
|
3528
|
-
|
|
3529
|
-
|
|
3530
|
-
|
|
3531
|
-
|
|
3532
|
-
|
|
3533
|
-
|
|
3534
|
-
|
|
3535
|
-
|
|
3536
|
-
|
|
3537
|
-
|
|
3538
|
-
|
|
3539
|
-
|
|
3540
|
-
|
|
3541
|
-
|
|
3542
|
-
|
|
3543
|
-
|
|
3544
|
-
|
|
3545
|
-
|
|
3546
|
-
|
|
3531
|
+
an as Select,
|
|
3532
|
+
dn as SelectContent,
|
|
3533
|
+
la as SelectGroup,
|
|
3534
|
+
ln as SelectItem,
|
|
3535
|
+
ca as SelectLabel,
|
|
3536
|
+
un as SelectScrollDownButton,
|
|
3537
|
+
cn as SelectScrollUpButton,
|
|
3538
|
+
ua as SelectSeparator,
|
|
3539
|
+
sn as SelectTrigger,
|
|
3540
|
+
on as SelectValue,
|
|
3541
|
+
zr as Separator,
|
|
3542
|
+
Fr as Skeleton,
|
|
3543
|
+
ao as TZDate,
|
|
3544
|
+
mn as Table,
|
|
3545
|
+
gn as TableBody,
|
|
3546
|
+
ha as TableCaption,
|
|
3547
|
+
Re as TableCell,
|
|
3548
|
+
ga as TableFooter,
|
|
3549
|
+
hn as TableHead,
|
|
3550
|
+
fn as TableHeader,
|
|
3547
3551
|
se as TableRow,
|
|
3548
|
-
|
|
3549
|
-
|
|
3550
|
-
|
|
3551
|
-
|
|
3552
|
-
|
|
3553
|
-
|
|
3554
|
-
|
|
3552
|
+
$a as Tabs,
|
|
3553
|
+
Qa as TabsContent,
|
|
3554
|
+
Aa as TabsList,
|
|
3555
|
+
Ba as TabsTrigger,
|
|
3556
|
+
Xa as Textarea,
|
|
3557
|
+
Ga as Toaster,
|
|
3558
|
+
Nr as badgeVariants,
|
|
3555
3559
|
be as buttonVariants,
|
|
3556
|
-
|
|
3560
|
+
so as toast,
|
|
3557
3561
|
ee as useFormField
|
|
3558
3562
|
};
|