@plyaz/ui 0.8.4 → 0.8.5
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/client/toaster.cjs.js +1 -1
- package/dist/client/toaster.es.js +34 -8
- package/dist/index.cjs.js +27 -6
- package/dist/index.es.js +2137 -437
- package/dist/types/components/DataTable/DataTable.d.ts +8 -0
- package/dist/types/components/DataTable/DataTable.d.ts.map +1 -0
- package/dist/types/components/DataTable/DataTable.stories.d.ts +27 -0
- package/dist/types/components/DataTable/DataTable.stories.d.ts.map +1 -0
- package/dist/types/components/Toaster/Toaster.d.ts +1 -1
- package/dist/types/components/Toaster/Toaster.d.ts.map +1 -1
- package/dist/types/components/Toaster/Toaster.stories.d.ts.map +1 -1
- package/dist/types/components/index.d.ts +1 -0
- package/dist/types/components/index.d.ts.map +1 -1
- package/dist/ui.css +1 -1
- package/package.json +2 -1
package/dist/index.es.js
CHANGED
|
@@ -1,27 +1,28 @@
|
|
|
1
|
-
import { f as
|
|
2
|
-
import { i as
|
|
3
|
-
import { jsx as
|
|
4
|
-
import { c as
|
|
5
|
-
import { b as
|
|
6
|
-
import { B as
|
|
7
|
-
import * as
|
|
8
|
-
import { CheckIcon as
|
|
9
|
-
import { useTranslations as
|
|
10
|
-
import
|
|
11
|
-
import
|
|
1
|
+
import { f as ye, a as Ee } from "./Textarea-BfrJwucE.js";
|
|
2
|
+
import { i as Qn, k as eo, j as to, A as no, B as oo, I as ro, b as io, c as lo, d as so, g as ao, e as uo, h as go, T as co } from "./Textarea-BfrJwucE.js";
|
|
3
|
+
import { jsx as d, jsxs as I } from "react/jsx-runtime";
|
|
4
|
+
import { c as w } from "./utils-B6yFEsav.js";
|
|
5
|
+
import { b as De } from "./Button-B7sEajdG.js";
|
|
6
|
+
import { B as po } from "./Button-B7sEajdG.js";
|
|
7
|
+
import * as $ from "@radix-ui/react-select";
|
|
8
|
+
import { CheckIcon as Ae, ChevronDownIcon as fe, ChevronUpIcon as Ge, ChevronRight as He, MoreHorizontal as ze, ChevronLeftIcon as Le, ChevronRightIcon as Ne, MoreHorizontalIcon as Te } from "lucide-react";
|
|
9
|
+
import { useTranslations as pe } from "next-intl";
|
|
10
|
+
import * as J from "react";
|
|
11
|
+
import Oe from "react";
|
|
12
|
+
import { Slot as Be } from "@radix-ui/react-slot";
|
|
12
13
|
import "@radix-ui/react-separator";
|
|
13
14
|
import "clsx";
|
|
14
15
|
import "tailwind-merge";
|
|
15
|
-
import { S as
|
|
16
|
-
const
|
|
17
|
-
|
|
16
|
+
import { S as So, a as Co } from "./Skeleton-Cj9Od_Nd.js";
|
|
17
|
+
const z = ({ children: e, element: n = "div", className: t = "", ...o }) => /* @__PURE__ */ d(n, { className: t, ...o, "data-testid": "box", children: e }), dn = ({ className: e = "", children: n, element: t, ...o }) => /* @__PURE__ */ d(
|
|
18
|
+
z,
|
|
18
19
|
{
|
|
19
|
-
element:
|
|
20
|
-
className:
|
|
21
|
-
...
|
|
22
|
-
children:
|
|
20
|
+
element: t,
|
|
21
|
+
className: w("mx-auto px-4 sm:px-6 lg:px-8 max-w-7xl", e),
|
|
22
|
+
...o,
|
|
23
|
+
children: n
|
|
23
24
|
}
|
|
24
|
-
),
|
|
25
|
+
), me = {
|
|
25
26
|
start: "justify-start",
|
|
26
27
|
end: "justify-end",
|
|
27
28
|
center: "justify-center",
|
|
@@ -29,17 +30,17 @@ const m = ({ children: e, element: t = "div", className: r = "", ...s }) => /* @
|
|
|
29
30
|
around: "justify-around",
|
|
30
31
|
evenly: "justify-evenly",
|
|
31
32
|
stretch: "justify-stretch"
|
|
32
|
-
},
|
|
33
|
+
}, Se = {
|
|
33
34
|
start: "items-start",
|
|
34
35
|
end: "items-end",
|
|
35
36
|
center: "items-center",
|
|
36
37
|
baseline: "items-baseline",
|
|
37
38
|
stretch: "items-stretch"
|
|
38
|
-
},
|
|
39
|
+
}, be = {
|
|
39
40
|
body: "font-general",
|
|
40
41
|
heading: "font-general",
|
|
41
42
|
caption: "font-general"
|
|
42
|
-
},
|
|
43
|
+
}, ke = {
|
|
43
44
|
xs: "text-xs",
|
|
44
45
|
sm: "text-sm",
|
|
45
46
|
base: "text-base",
|
|
@@ -53,13 +54,13 @@ const m = ({ children: e, element: t = "div", className: r = "", ...s }) => /* @
|
|
|
53
54
|
"7xl": "text-7xl",
|
|
54
55
|
"8xl": "text-8xl",
|
|
55
56
|
"9xl": "text-9xl"
|
|
56
|
-
},
|
|
57
|
+
}, qe = {
|
|
57
58
|
normal: "font-normal",
|
|
58
59
|
medium: "font-medium",
|
|
59
60
|
semibold: "font-semibold",
|
|
60
61
|
bold: "font-bold",
|
|
61
62
|
light: "font-light"
|
|
62
|
-
},
|
|
63
|
+
}, je = {
|
|
63
64
|
1: "grid-cols-1",
|
|
64
65
|
2: "grid-cols-2",
|
|
65
66
|
3: "grid-cols-3",
|
|
@@ -69,7 +70,7 @@ const m = ({ children: e, element: t = "div", className: r = "", ...s }) => /* @
|
|
|
69
70
|
7: "grid-cols-7",
|
|
70
71
|
8: "grid-cols-8",
|
|
71
72
|
9: "grid-cols-9"
|
|
72
|
-
},
|
|
73
|
+
}, Ue = {
|
|
73
74
|
1: "grid-rows-1",
|
|
74
75
|
2: "grid-rows-2",
|
|
75
76
|
3: "grid-rows-3",
|
|
@@ -79,7 +80,7 @@ const m = ({ children: e, element: t = "div", className: r = "", ...s }) => /* @
|
|
|
79
80
|
7: "grid-rows-7",
|
|
80
81
|
8: "grid-rows-8",
|
|
81
82
|
9: "grid-rows-9"
|
|
82
|
-
},
|
|
83
|
+
}, Ce = {
|
|
83
84
|
1: "gap-1",
|
|
84
85
|
2: "gap-2",
|
|
85
86
|
3: "gap-3",
|
|
@@ -89,68 +90,68 @@ const m = ({ children: e, element: t = "div", className: r = "", ...s }) => /* @
|
|
|
89
90
|
7: "gap-7",
|
|
90
91
|
8: "gap-8",
|
|
91
92
|
9: "gap-9"
|
|
92
|
-
},
|
|
93
|
+
}, Xe = {
|
|
93
94
|
row: "flex-row",
|
|
94
95
|
col: "flex-col",
|
|
95
96
|
row_reverse: "flex-row-reverse",
|
|
96
97
|
col_reverse: "flex-col-reverse"
|
|
97
|
-
},
|
|
98
|
+
}, Ke = {
|
|
98
99
|
wrap: "flex-wrap",
|
|
99
100
|
nowrap: "flex-nowrap",
|
|
100
101
|
wrap_reverse: "flex-wrap-reverse"
|
|
101
|
-
},
|
|
102
|
+
}, cn = ({
|
|
102
103
|
children: e,
|
|
103
|
-
gap:
|
|
104
|
-
direction:
|
|
105
|
-
justify:
|
|
106
|
-
align:
|
|
107
|
-
wrap:
|
|
108
|
-
className:
|
|
109
|
-
element:
|
|
110
|
-
...
|
|
111
|
-
}) => /* @__PURE__ */
|
|
112
|
-
|
|
104
|
+
gap: n,
|
|
105
|
+
direction: t,
|
|
106
|
+
justify: o,
|
|
107
|
+
align: r,
|
|
108
|
+
wrap: i,
|
|
109
|
+
className: l = "",
|
|
110
|
+
element: s,
|
|
111
|
+
...a
|
|
112
|
+
}) => /* @__PURE__ */ d(
|
|
113
|
+
z,
|
|
113
114
|
{
|
|
114
|
-
element:
|
|
115
|
-
className:
|
|
115
|
+
element: s,
|
|
116
|
+
className: w(
|
|
116
117
|
"flex",
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
118
|
+
t && Xe[t],
|
|
119
|
+
o && me[o],
|
|
120
|
+
r && Se[r],
|
|
121
|
+
i && Ke[i],
|
|
122
|
+
n && Ce[n],
|
|
123
|
+
l
|
|
123
124
|
),
|
|
124
|
-
...
|
|
125
|
+
...a,
|
|
125
126
|
children: e
|
|
126
127
|
}
|
|
127
|
-
),
|
|
128
|
+
), fn = ({
|
|
128
129
|
children: e,
|
|
129
|
-
className:
|
|
130
|
-
cols:
|
|
131
|
-
rows:
|
|
132
|
-
gap:
|
|
133
|
-
justify:
|
|
134
|
-
align:
|
|
135
|
-
element:
|
|
136
|
-
...
|
|
137
|
-
}) => /* @__PURE__ */
|
|
138
|
-
|
|
130
|
+
className: n,
|
|
131
|
+
cols: t,
|
|
132
|
+
rows: o,
|
|
133
|
+
gap: r,
|
|
134
|
+
justify: i,
|
|
135
|
+
align: l,
|
|
136
|
+
element: s,
|
|
137
|
+
...a
|
|
138
|
+
}) => /* @__PURE__ */ d(
|
|
139
|
+
z,
|
|
139
140
|
{
|
|
140
|
-
element:
|
|
141
|
-
className:
|
|
141
|
+
element: s,
|
|
142
|
+
className: w(
|
|
142
143
|
"grid",
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
144
|
+
t && je[t],
|
|
145
|
+
o && Ue[o],
|
|
146
|
+
r && Ce[r],
|
|
147
|
+
i && me[i],
|
|
148
|
+
l && Se[l],
|
|
149
|
+
n
|
|
149
150
|
),
|
|
150
|
-
...
|
|
151
|
+
...a,
|
|
151
152
|
children: e
|
|
152
153
|
}
|
|
153
|
-
),
|
|
154
|
+
), We = {
|
|
154
155
|
xs: "xs",
|
|
155
156
|
sm: "sm",
|
|
156
157
|
base: "base",
|
|
@@ -159,98 +160,98 @@ const m = ({ children: e, element: t = "div", className: r = "", ...s }) => /* @
|
|
|
159
160
|
"2xl": "2xl",
|
|
160
161
|
"3xl": "3xl",
|
|
161
162
|
"4xl": "4xl"
|
|
162
|
-
},
|
|
163
|
-
|
|
163
|
+
}, pn = ({ children: e, element: n, className: t, size: o, ...r }) => /* @__PURE__ */ d(
|
|
164
|
+
L,
|
|
164
165
|
{
|
|
165
|
-
className:
|
|
166
|
-
element:
|
|
167
|
-
size:
|
|
166
|
+
className: t,
|
|
167
|
+
element: n,
|
|
168
|
+
size: We[o],
|
|
168
169
|
variant: "heading",
|
|
169
170
|
weight: "medium",
|
|
170
|
-
...
|
|
171
|
+
...r,
|
|
171
172
|
children: e
|
|
172
173
|
}
|
|
173
|
-
),
|
|
174
|
+
), mn = ({ children: e, className: n, href: t, ...o }) => /* @__PURE__ */ d(
|
|
174
175
|
"a",
|
|
175
176
|
{
|
|
176
177
|
"data-testid": "link",
|
|
177
|
-
href:
|
|
178
|
+
href: t,
|
|
178
179
|
rel: "noopener noreferrer",
|
|
179
180
|
target: "_blank",
|
|
180
|
-
className:
|
|
181
|
+
className: w(
|
|
181
182
|
"focus:outline-none text-blue-600 active:text-blue-900 visited:text-purple-600 hover:underline",
|
|
182
|
-
|
|
183
|
+
n
|
|
183
184
|
),
|
|
184
|
-
...
|
|
185
|
+
...o,
|
|
185
186
|
children: e
|
|
186
187
|
}
|
|
187
|
-
),
|
|
188
|
+
), Ze = {
|
|
188
189
|
xs: "xs",
|
|
189
190
|
sm: "sm",
|
|
190
191
|
base: "base",
|
|
191
192
|
lg: "lg"
|
|
192
|
-
},
|
|
193
|
-
|
|
193
|
+
}, Sn = ({ children: e, className: n, size: t, ...o }) => /* @__PURE__ */ d(
|
|
194
|
+
L,
|
|
194
195
|
{
|
|
195
|
-
className:
|
|
196
|
+
className: n,
|
|
196
197
|
element: "p",
|
|
197
|
-
size:
|
|
198
|
+
size: Ze[t],
|
|
198
199
|
variant: "body",
|
|
199
200
|
weight: "normal",
|
|
200
|
-
...
|
|
201
|
+
...o,
|
|
201
202
|
children: e
|
|
202
203
|
}
|
|
203
|
-
),
|
|
204
|
+
), Cn = ({ className: e = "", children: n, ...t }) => /* @__PURE__ */ d(z, { element: "section", className: e, ...t, children: n }), hn = ({
|
|
204
205
|
children: e,
|
|
205
|
-
direction:
|
|
206
|
-
spacing:
|
|
207
|
-
element:
|
|
208
|
-
className:
|
|
209
|
-
...
|
|
210
|
-
}) => /* @__PURE__ */
|
|
206
|
+
direction: n = "horizontal",
|
|
207
|
+
spacing: t = "space-x-2",
|
|
208
|
+
element: o,
|
|
209
|
+
className: r,
|
|
210
|
+
...i
|
|
211
|
+
}) => /* @__PURE__ */ d(z, { className: w("flex", n === "vertical" ? "flex-col" : "flex-row", t, r), element: o, ...i, children: e }), L = ({
|
|
211
212
|
className: e,
|
|
212
|
-
children:
|
|
213
|
-
element:
|
|
214
|
-
weight:
|
|
215
|
-
variant:
|
|
216
|
-
size:
|
|
217
|
-
...
|
|
218
|
-
}) => /* @__PURE__ */
|
|
219
|
-
|
|
213
|
+
children: n,
|
|
214
|
+
element: t,
|
|
215
|
+
weight: o,
|
|
216
|
+
variant: r,
|
|
217
|
+
size: i,
|
|
218
|
+
...l
|
|
219
|
+
}) => /* @__PURE__ */ d(
|
|
220
|
+
t,
|
|
220
221
|
{
|
|
221
222
|
"data-testid": "text",
|
|
222
|
-
className:
|
|
223
|
+
className: w(
|
|
223
224
|
"font-normal text-base",
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
225
|
+
i && ke[i],
|
|
226
|
+
o && qe[o],
|
|
227
|
+
r && be[r],
|
|
227
228
|
e
|
|
228
229
|
),
|
|
229
|
-
...
|
|
230
|
-
children:
|
|
230
|
+
...l,
|
|
231
|
+
children: n
|
|
231
232
|
}
|
|
232
233
|
);
|
|
233
|
-
function
|
|
234
|
-
return /* @__PURE__ */
|
|
234
|
+
function Je({ ...e }) {
|
|
235
|
+
return /* @__PURE__ */ d($.Root, { "data-slot": "select", ...e });
|
|
235
236
|
}
|
|
236
|
-
function
|
|
237
|
-
return /* @__PURE__ */
|
|
237
|
+
function wn({ ...e }) {
|
|
238
|
+
return /* @__PURE__ */ d($.Group, { "data-slot": "select-group", ...e });
|
|
238
239
|
}
|
|
239
|
-
function
|
|
240
|
-
return /* @__PURE__ */
|
|
240
|
+
function Ye({ ...e }) {
|
|
241
|
+
return /* @__PURE__ */ d($.Value, { "data-slot": "select-value", ...e });
|
|
241
242
|
}
|
|
242
|
-
function
|
|
243
|
+
function Qe({
|
|
243
244
|
className: e,
|
|
244
|
-
size:
|
|
245
|
-
children:
|
|
246
|
-
...
|
|
245
|
+
size: n = "default",
|
|
246
|
+
children: t,
|
|
247
|
+
...o
|
|
247
248
|
}) {
|
|
248
|
-
return /* @__PURE__ */
|
|
249
|
-
|
|
249
|
+
return /* @__PURE__ */ I(
|
|
250
|
+
$.Trigger,
|
|
250
251
|
{
|
|
251
252
|
"data-slot": "select-trigger",
|
|
252
|
-
"data-size":
|
|
253
|
-
className:
|
|
253
|
+
"data-size": n,
|
|
254
|
+
className: w(
|
|
254
255
|
`
|
|
255
256
|
flex w-fit items-center justify-between gap-2 rounded-sm
|
|
256
257
|
border-subtle bg-background px-3 py-2 text-sm whitespace-nowrap
|
|
@@ -273,25 +274,25 @@ function W({
|
|
|
273
274
|
`,
|
|
274
275
|
e
|
|
275
276
|
),
|
|
276
|
-
...
|
|
277
|
+
...o,
|
|
277
278
|
children: [
|
|
278
|
-
|
|
279
|
-
/* @__PURE__ */
|
|
279
|
+
t,
|
|
280
|
+
/* @__PURE__ */ d($.Icon, { asChild: !0, children: /* @__PURE__ */ d(fe, { className: "size-4" }) })
|
|
280
281
|
]
|
|
281
282
|
}
|
|
282
283
|
);
|
|
283
284
|
}
|
|
284
|
-
function
|
|
285
|
+
function et({
|
|
285
286
|
className: e,
|
|
286
|
-
children:
|
|
287
|
-
position:
|
|
288
|
-
...
|
|
287
|
+
children: n,
|
|
288
|
+
position: t = "popper",
|
|
289
|
+
...o
|
|
289
290
|
}) {
|
|
290
|
-
return /* @__PURE__ */
|
|
291
|
-
|
|
291
|
+
return /* @__PURE__ */ d($.Portal, { "data-testid": "select", children: /* @__PURE__ */ I(
|
|
292
|
+
$.Content,
|
|
292
293
|
{
|
|
293
294
|
"data-slot": "select-content",
|
|
294
|
-
className:
|
|
295
|
+
className: w(
|
|
295
296
|
`
|
|
296
297
|
relative z-50 max-h-(--radix-select-content-available-height)
|
|
297
298
|
min-w-[8rem] origin-(--radix-select-content-transform-origin)
|
|
@@ -306,7 +307,7 @@ function Z({
|
|
|
306
307
|
data-[state=open]:animate-in data-[state=open]:fade-in-0
|
|
307
308
|
data-[state=open]:zoom-in-95
|
|
308
309
|
`,
|
|
309
|
-
|
|
310
|
+
t === "popper" && `
|
|
310
311
|
data-[side=bottom]:translate-y-1
|
|
311
312
|
data-[side=left]:-translate-x-1
|
|
312
313
|
data-[side=right]:translate-x-1
|
|
@@ -314,48 +315,48 @@ function Z({
|
|
|
314
315
|
`,
|
|
315
316
|
e
|
|
316
317
|
),
|
|
317
|
-
position:
|
|
318
|
-
...
|
|
318
|
+
position: t,
|
|
319
|
+
...o,
|
|
319
320
|
children: [
|
|
320
|
-
/* @__PURE__ */
|
|
321
|
-
/* @__PURE__ */
|
|
322
|
-
|
|
321
|
+
/* @__PURE__ */ d(nt, {}),
|
|
322
|
+
/* @__PURE__ */ d(
|
|
323
|
+
$.Viewport,
|
|
323
324
|
{
|
|
324
|
-
className:
|
|
325
|
+
className: w(
|
|
325
326
|
"p-1",
|
|
326
|
-
|
|
327
|
+
t === "popper" && `
|
|
327
328
|
h-[var(--radix-select-trigger-height)] w-full
|
|
328
329
|
min-w-[var(--radix-select-trigger-width)] scroll-my-1
|
|
329
330
|
`
|
|
330
331
|
),
|
|
331
|
-
children:
|
|
332
|
+
children: n
|
|
332
333
|
}
|
|
333
334
|
),
|
|
334
|
-
/* @__PURE__ */
|
|
335
|
+
/* @__PURE__ */ d(ot, {})
|
|
335
336
|
]
|
|
336
337
|
}
|
|
337
338
|
) });
|
|
338
339
|
}
|
|
339
|
-
function
|
|
340
|
-
return /* @__PURE__ */
|
|
341
|
-
|
|
340
|
+
function vn({ className: e, ...n }) {
|
|
341
|
+
return /* @__PURE__ */ d(
|
|
342
|
+
$.Label,
|
|
342
343
|
{
|
|
343
344
|
"data-slot": "select-label",
|
|
344
|
-
className:
|
|
345
|
-
...
|
|
345
|
+
className: w("px-2 py-1.5 text-sm text-secondary font-semibold", e),
|
|
346
|
+
...n
|
|
346
347
|
}
|
|
347
348
|
);
|
|
348
349
|
}
|
|
349
|
-
function
|
|
350
|
+
function tt({
|
|
350
351
|
className: e,
|
|
351
|
-
children:
|
|
352
|
-
...
|
|
352
|
+
children: n,
|
|
353
|
+
...t
|
|
353
354
|
}) {
|
|
354
|
-
return /* @__PURE__ */
|
|
355
|
-
|
|
355
|
+
return /* @__PURE__ */ I(
|
|
356
|
+
$.Item,
|
|
356
357
|
{
|
|
357
358
|
"data-slot": "select-item",
|
|
358
|
-
className:
|
|
359
|
+
className: w(
|
|
359
360
|
`
|
|
360
361
|
relative flex w-full cursor-default items-center gap-2 rounded-sm
|
|
361
362
|
py-1.5 pr-8 pl-2 text-sm outline-hidden select-none
|
|
@@ -368,550 +369,2249 @@ function $({
|
|
|
368
369
|
`,
|
|
369
370
|
e
|
|
370
371
|
),
|
|
371
|
-
...
|
|
372
|
+
...t,
|
|
372
373
|
children: [
|
|
373
|
-
/* @__PURE__ */
|
|
374
|
-
/* @__PURE__ */
|
|
374
|
+
/* @__PURE__ */ d("span", { className: "absolute right-2 flex size-3.5 items-center justify-center", children: /* @__PURE__ */ d($.ItemIndicator, { children: /* @__PURE__ */ d(Ae, { className: "size-4" }) }) }),
|
|
375
|
+
/* @__PURE__ */ d($.ItemText, { children: n })
|
|
375
376
|
]
|
|
376
377
|
}
|
|
377
378
|
);
|
|
378
379
|
}
|
|
379
|
-
function
|
|
380
|
+
function Rn({
|
|
380
381
|
className: e,
|
|
381
|
-
...
|
|
382
|
+
...n
|
|
382
383
|
}) {
|
|
383
|
-
return /* @__PURE__ */
|
|
384
|
-
|
|
384
|
+
return /* @__PURE__ */ d(
|
|
385
|
+
$.Separator,
|
|
385
386
|
{
|
|
386
387
|
"data-slot": "select-separator",
|
|
387
|
-
className:
|
|
388
|
-
...
|
|
388
|
+
className: w("pointer-events-none -mx-1 my-1 h-px bg-border", e),
|
|
389
|
+
...n
|
|
389
390
|
}
|
|
390
391
|
);
|
|
391
392
|
}
|
|
392
|
-
function
|
|
393
|
+
function nt({
|
|
393
394
|
className: e,
|
|
394
|
-
...
|
|
395
|
+
...n
|
|
395
396
|
}) {
|
|
396
|
-
return /* @__PURE__ */
|
|
397
|
-
|
|
397
|
+
return /* @__PURE__ */ d(
|
|
398
|
+
$.ScrollUpButton,
|
|
398
399
|
{
|
|
399
400
|
"data-slot": "select-scroll-up-button",
|
|
400
|
-
className:
|
|
401
|
+
className: w(
|
|
401
402
|
"flex cursor-default items-center justify-center py-1 text-secondary",
|
|
402
403
|
e
|
|
403
404
|
),
|
|
404
|
-
...
|
|
405
|
-
children: /* @__PURE__ */
|
|
405
|
+
...n,
|
|
406
|
+
children: /* @__PURE__ */ d(Ge, { className: "size-4" })
|
|
406
407
|
}
|
|
407
408
|
);
|
|
408
409
|
}
|
|
409
|
-
function
|
|
410
|
+
function ot({
|
|
410
411
|
className: e,
|
|
411
|
-
...
|
|
412
|
+
...n
|
|
412
413
|
}) {
|
|
413
|
-
return /* @__PURE__ */
|
|
414
|
-
|
|
414
|
+
return /* @__PURE__ */ d(
|
|
415
|
+
$.ScrollDownButton,
|
|
415
416
|
{
|
|
416
417
|
"data-slot": "select-scroll-down-button",
|
|
417
|
-
className:
|
|
418
|
+
className: w(
|
|
418
419
|
"flex cursor-default items-center justify-center py-1 text-secondary",
|
|
419
420
|
e
|
|
420
421
|
),
|
|
421
|
-
...
|
|
422
|
-
children: /* @__PURE__ */
|
|
422
|
+
...n,
|
|
423
|
+
children: /* @__PURE__ */ d(fe, { className: "size-4" })
|
|
423
424
|
}
|
|
424
425
|
);
|
|
425
426
|
}
|
|
426
|
-
const
|
|
427
|
+
const xn = ({
|
|
427
428
|
translationKey: e,
|
|
428
|
-
translationOptions:
|
|
429
|
-
namespace:
|
|
430
|
-
...
|
|
429
|
+
translationOptions: n,
|
|
430
|
+
namespace: t,
|
|
431
|
+
...o
|
|
431
432
|
}) => {
|
|
432
|
-
const
|
|
433
|
+
const i = pe(t)(
|
|
433
434
|
e,
|
|
434
|
-
|
|
435
|
+
n == null ? void 0 : n.args
|
|
435
436
|
);
|
|
436
|
-
return /* @__PURE__ */
|
|
437
|
-
},
|
|
437
|
+
return /* @__PURE__ */ d(L, { ...o, children: i });
|
|
438
|
+
}, _n = ({
|
|
438
439
|
translationKey: e,
|
|
439
|
-
translationOptions:
|
|
440
|
-
namespace:
|
|
441
|
-
className:
|
|
442
|
-
tag:
|
|
440
|
+
translationOptions: n,
|
|
441
|
+
namespace: t,
|
|
442
|
+
className: o,
|
|
443
|
+
tag: r = "div"
|
|
443
444
|
}) => {
|
|
444
|
-
const
|
|
445
|
+
const l = pe(t)(
|
|
445
446
|
e,
|
|
446
|
-
|
|
447
|
+
n == null ? void 0 : n.args
|
|
447
448
|
);
|
|
448
|
-
return
|
|
449
|
-
},
|
|
449
|
+
return Oe.createElement(r, { className: o, "data-testid": "translated-html" }, l);
|
|
450
|
+
}, Fn = ({
|
|
450
451
|
date: e,
|
|
451
|
-
formatOptions:
|
|
452
|
-
locale:
|
|
453
|
-
...
|
|
452
|
+
formatOptions: n,
|
|
453
|
+
locale: t,
|
|
454
|
+
...o
|
|
454
455
|
}) => {
|
|
455
|
-
const
|
|
456
|
-
return /* @__PURE__ */
|
|
457
|
-
},
|
|
456
|
+
const r = ye(e, t, n);
|
|
457
|
+
return /* @__PURE__ */ d(L, { ...o, children: r });
|
|
458
|
+
}, $n = ({
|
|
458
459
|
value: e,
|
|
459
|
-
formatOptions:
|
|
460
|
-
locale:
|
|
461
|
-
...
|
|
460
|
+
formatOptions: n,
|
|
461
|
+
locale: t,
|
|
462
|
+
...o
|
|
462
463
|
}) => {
|
|
463
|
-
const
|
|
464
|
-
return /* @__PURE__ */
|
|
464
|
+
const r = Ee(e, t, n);
|
|
465
|
+
return /* @__PURE__ */ d(L, { ...o, children: r });
|
|
465
466
|
};
|
|
466
|
-
function
|
|
467
|
+
function Mn({
|
|
467
468
|
locale: e,
|
|
468
|
-
locales:
|
|
469
|
-
onChange:
|
|
470
|
-
getLabel:
|
|
471
|
-
disabled:
|
|
469
|
+
locales: n,
|
|
470
|
+
onChange: t,
|
|
471
|
+
getLabel: o,
|
|
472
|
+
disabled: r
|
|
472
473
|
}) {
|
|
473
|
-
return /* @__PURE__ */
|
|
474
|
-
/* @__PURE__ */
|
|
475
|
-
/* @__PURE__ */
|
|
474
|
+
return /* @__PURE__ */ I(Je, { value: e, onValueChange: t, disabled: r, children: [
|
|
475
|
+
/* @__PURE__ */ d(Qe, { children: /* @__PURE__ */ d(Ye, { placeholder: o(e) }) }),
|
|
476
|
+
/* @__PURE__ */ d(et, { children: n.map((i) => /* @__PURE__ */ d(tt, { value: i, children: o(i) }, i)) })
|
|
476
477
|
] });
|
|
477
478
|
}
|
|
478
|
-
function
|
|
479
|
+
function Pn({
|
|
479
480
|
className: e,
|
|
480
|
-
reverse:
|
|
481
|
-
pauseOnHover:
|
|
482
|
-
paused:
|
|
483
|
-
children:
|
|
484
|
-
vertical:
|
|
485
|
-
repeat:
|
|
486
|
-
...
|
|
481
|
+
reverse: n = !1,
|
|
482
|
+
pauseOnHover: t = !1,
|
|
483
|
+
paused: o = !1,
|
|
484
|
+
children: r,
|
|
485
|
+
vertical: i = !1,
|
|
486
|
+
repeat: l = 4,
|
|
487
|
+
...s
|
|
487
488
|
}) {
|
|
488
|
-
return /* @__PURE__ */
|
|
489
|
+
return /* @__PURE__ */ d(
|
|
489
490
|
"div",
|
|
490
491
|
{
|
|
491
|
-
...
|
|
492
|
-
className:
|
|
492
|
+
...s,
|
|
493
|
+
className: w(
|
|
493
494
|
"group flex overflow-hidden p-2 [--duration:40s] [--gap:1rem] [gap:var(--gap)]",
|
|
494
495
|
{
|
|
495
|
-
"flex-row": !
|
|
496
|
-
"flex-col":
|
|
496
|
+
"flex-row": !i,
|
|
497
|
+
"flex-col": i
|
|
497
498
|
},
|
|
498
499
|
e
|
|
499
500
|
),
|
|
500
|
-
children: Array(
|
|
501
|
+
children: Array(l).fill(0).map((a, g) => /* @__PURE__ */ d(
|
|
501
502
|
"div",
|
|
502
503
|
{
|
|
503
|
-
className:
|
|
504
|
-
"animate-marquee flex-row": !
|
|
505
|
-
"animate-marquee-vertical flex-col":
|
|
506
|
-
"group-hover:[animation-play-state:paused]":
|
|
507
|
-
"[animation-direction:reverse]":
|
|
508
|
-
"[animation-play-state:paused]":
|
|
504
|
+
className: w("flex shrink-0 justify-around [gap:var(--gap)]", {
|
|
505
|
+
"animate-marquee flex-row": !i,
|
|
506
|
+
"animate-marquee-vertical flex-col": i,
|
|
507
|
+
"group-hover:[animation-play-state:paused]": t,
|
|
508
|
+
"[animation-direction:reverse]": n,
|
|
509
|
+
"[animation-play-state:paused]": o
|
|
509
510
|
}),
|
|
510
|
-
children:
|
|
511
|
+
children: r
|
|
511
512
|
},
|
|
512
|
-
|
|
513
|
+
g
|
|
513
514
|
))
|
|
514
515
|
}
|
|
515
516
|
);
|
|
516
517
|
}
|
|
517
|
-
function
|
|
518
|
-
return /* @__PURE__ */
|
|
518
|
+
function Vn({ ...e }) {
|
|
519
|
+
return /* @__PURE__ */ d("nav", { "aria-label": "breadcrumb", "data-slot": "breadcrumb", ...e });
|
|
519
520
|
}
|
|
520
|
-
function
|
|
521
|
-
return /* @__PURE__ */
|
|
521
|
+
function In({ className: e, ...n }) {
|
|
522
|
+
return /* @__PURE__ */ d(
|
|
522
523
|
"ol",
|
|
523
524
|
{
|
|
524
525
|
"data-slot": "breadcrumb-list",
|
|
525
|
-
className:
|
|
526
|
+
className: w(
|
|
526
527
|
"text-muted-foreground flex flex-wrap items-center gap-1.5 text-sm break-words sm:gap-2.5",
|
|
527
528
|
e
|
|
528
529
|
),
|
|
529
|
-
...
|
|
530
|
+
...n
|
|
530
531
|
}
|
|
531
532
|
);
|
|
532
533
|
}
|
|
533
|
-
function
|
|
534
|
-
return /* @__PURE__ */
|
|
534
|
+
function yn({ className: e, ...n }) {
|
|
535
|
+
return /* @__PURE__ */ d(
|
|
535
536
|
"li",
|
|
536
537
|
{
|
|
537
538
|
"data-slot": "breadcrumb-item",
|
|
538
|
-
className:
|
|
539
|
-
...
|
|
539
|
+
className: w("inline-flex items-center gap-1.5", e),
|
|
540
|
+
...n
|
|
540
541
|
}
|
|
541
542
|
);
|
|
542
543
|
}
|
|
543
|
-
function
|
|
544
|
+
function En({
|
|
544
545
|
asChild: e,
|
|
545
|
-
className:
|
|
546
|
-
...
|
|
546
|
+
className: n,
|
|
547
|
+
...t
|
|
547
548
|
}) {
|
|
548
|
-
return /* @__PURE__ */
|
|
549
|
-
e ?
|
|
549
|
+
return /* @__PURE__ */ d(
|
|
550
|
+
e ? Be : "a",
|
|
550
551
|
{
|
|
551
552
|
"data-slot": "breadcrumb-link",
|
|
552
|
-
className:
|
|
553
|
-
...
|
|
553
|
+
className: w("hover:text-secondary transition-colors", n),
|
|
554
|
+
...t
|
|
554
555
|
}
|
|
555
556
|
);
|
|
556
557
|
}
|
|
557
|
-
function
|
|
558
|
-
return /* @__PURE__ */
|
|
558
|
+
function Dn({ className: e, ...n }) {
|
|
559
|
+
return /* @__PURE__ */ d(
|
|
559
560
|
"span",
|
|
560
561
|
{
|
|
561
562
|
"data-slot": "breadcrumb-page",
|
|
562
563
|
role: "link",
|
|
563
564
|
"aria-disabled": "true",
|
|
564
565
|
"aria-current": "page",
|
|
565
|
-
className:
|
|
566
|
-
...
|
|
566
|
+
className: w("text-secondary font-normal", e),
|
|
567
|
+
...n
|
|
567
568
|
}
|
|
568
569
|
);
|
|
569
570
|
}
|
|
570
|
-
function
|
|
571
|
-
return /* @__PURE__ */
|
|
571
|
+
function An({ children: e, className: n, ...t }) {
|
|
572
|
+
return /* @__PURE__ */ d(
|
|
572
573
|
"li",
|
|
573
574
|
{
|
|
574
575
|
"data-slot": "breadcrumb-separator",
|
|
575
576
|
role: "presentation",
|
|
576
577
|
"aria-hidden": "true",
|
|
577
|
-
className:
|
|
578
|
-
...
|
|
579
|
-
children: e ?? /* @__PURE__ */
|
|
578
|
+
className: w("[&>svg]:size-3.5", n),
|
|
579
|
+
...t,
|
|
580
|
+
children: e ?? /* @__PURE__ */ d(He, {})
|
|
580
581
|
}
|
|
581
582
|
);
|
|
582
583
|
}
|
|
583
|
-
function
|
|
584
|
-
return /* @__PURE__ */
|
|
584
|
+
function Gn({ className: e, ...n }) {
|
|
585
|
+
return /* @__PURE__ */ I(
|
|
585
586
|
"span",
|
|
586
587
|
{
|
|
587
588
|
"data-slot": "breadcrumb-ellipsis",
|
|
588
589
|
role: "presentation",
|
|
589
590
|
"aria-hidden": "true",
|
|
590
|
-
className:
|
|
591
|
-
...
|
|
591
|
+
className: w("flex size-9 items-center justify-center", e),
|
|
592
|
+
...n,
|
|
592
593
|
children: [
|
|
593
|
-
/* @__PURE__ */
|
|
594
|
-
/* @__PURE__ */
|
|
594
|
+
/* @__PURE__ */ d(ze, { className: "size-4" }),
|
|
595
|
+
/* @__PURE__ */ d("span", { className: "sr-only", children: "More" })
|
|
595
596
|
]
|
|
596
597
|
}
|
|
597
598
|
);
|
|
598
599
|
}
|
|
599
|
-
function
|
|
600
|
-
return /* @__PURE__ */
|
|
600
|
+
function Hn({ className: e, ...n }) {
|
|
601
|
+
return /* @__PURE__ */ d(
|
|
601
602
|
"div",
|
|
602
603
|
{
|
|
603
604
|
"data-slot": "card",
|
|
604
|
-
className:
|
|
605
|
+
className: w(
|
|
605
606
|
"bg-card text-card-foreground flex flex-col gap-6 rounded border border-subtle shadow-sm",
|
|
606
607
|
e
|
|
607
608
|
),
|
|
608
|
-
...
|
|
609
|
+
...n
|
|
609
610
|
}
|
|
610
611
|
);
|
|
611
612
|
}
|
|
612
|
-
function
|
|
613
|
-
return /* @__PURE__ */
|
|
613
|
+
function zn({ className: e, ...n }) {
|
|
614
|
+
return /* @__PURE__ */ d(
|
|
614
615
|
"div",
|
|
615
616
|
{
|
|
616
617
|
"data-slot": "card-header",
|
|
617
|
-
className:
|
|
618
|
+
className: w(
|
|
618
619
|
"@container/card-header grid auto-rows-min grid-rows-[auto_auto] items-start gap-1 p-6 has-data-[slot=card-action]:grid-cols-[1fr_auto] [.border-b]:pb-6",
|
|
619
620
|
e
|
|
620
621
|
),
|
|
621
|
-
...
|
|
622
|
+
...n
|
|
622
623
|
}
|
|
623
624
|
);
|
|
624
625
|
}
|
|
625
|
-
function
|
|
626
|
-
return /* @__PURE__ */
|
|
626
|
+
function Ln({ className: e, ...n }) {
|
|
627
|
+
return /* @__PURE__ */ d(
|
|
627
628
|
"div",
|
|
628
629
|
{
|
|
629
630
|
"data-slot": "card-title",
|
|
630
|
-
className:
|
|
631
|
-
...
|
|
631
|
+
className: w("text-xl font-semibold text-secondary", e),
|
|
632
|
+
...n
|
|
632
633
|
}
|
|
633
634
|
);
|
|
634
635
|
}
|
|
635
|
-
function
|
|
636
|
-
return /* @__PURE__ */
|
|
636
|
+
function Nn({ className: e, ...n }) {
|
|
637
|
+
return /* @__PURE__ */ d(
|
|
637
638
|
"div",
|
|
638
639
|
{
|
|
639
640
|
"data-slot": "card-description",
|
|
640
|
-
className:
|
|
641
|
-
...
|
|
641
|
+
className: w("text-muted-foreground text-sm", e),
|
|
642
|
+
...n
|
|
642
643
|
}
|
|
643
644
|
);
|
|
644
645
|
}
|
|
645
|
-
function
|
|
646
|
-
return /* @__PURE__ */
|
|
646
|
+
function Tn({ className: e, ...n }) {
|
|
647
|
+
return /* @__PURE__ */ d(
|
|
647
648
|
"div",
|
|
648
649
|
{
|
|
649
650
|
"data-slot": "card-action",
|
|
650
|
-
className:
|
|
651
|
-
...
|
|
651
|
+
className: w("col-start-2 row-span-2 row-start-1 self-start justify-self-end", e),
|
|
652
|
+
...n
|
|
652
653
|
}
|
|
653
654
|
);
|
|
654
655
|
}
|
|
655
|
-
function
|
|
656
|
-
return /* @__PURE__ */
|
|
656
|
+
function On({ className: e, ...n }) {
|
|
657
|
+
return /* @__PURE__ */ d("div", { "data-slot": "card-content", className: w("px-6 pb-6", e), ...n });
|
|
657
658
|
}
|
|
658
|
-
function
|
|
659
|
-
return /* @__PURE__ */
|
|
659
|
+
function Bn({ className: e, ...n }) {
|
|
660
|
+
return /* @__PURE__ */ d(
|
|
660
661
|
"div",
|
|
661
662
|
{
|
|
662
663
|
"data-slot": "card-footer",
|
|
663
|
-
className:
|
|
664
|
-
...
|
|
664
|
+
className: w("flex items-center px-6 pb-6 [.border-t]:pt-6", e),
|
|
665
|
+
...n
|
|
665
666
|
}
|
|
666
667
|
);
|
|
667
668
|
}
|
|
668
|
-
function
|
|
669
|
-
return /* @__PURE__ */
|
|
669
|
+
function bn({ className: e, ...n }) {
|
|
670
|
+
return /* @__PURE__ */ d(
|
|
670
671
|
"nav",
|
|
671
672
|
{
|
|
672
673
|
role: "navigation",
|
|
673
674
|
"aria-label": "pagination",
|
|
674
675
|
"data-slot": "pagination",
|
|
675
|
-
className:
|
|
676
|
-
...
|
|
676
|
+
className: w("mx-auto flex w-full justify-center", e),
|
|
677
|
+
...n
|
|
677
678
|
}
|
|
678
679
|
);
|
|
679
680
|
}
|
|
680
|
-
function
|
|
681
|
-
return /* @__PURE__ */
|
|
681
|
+
function kn({ className: e, ...n }) {
|
|
682
|
+
return /* @__PURE__ */ d(
|
|
682
683
|
"ul",
|
|
683
684
|
{
|
|
684
685
|
"data-slot": "pagination-content",
|
|
685
|
-
className:
|
|
686
|
-
...
|
|
686
|
+
className: w("flex flex-row items-center gap-1", e),
|
|
687
|
+
...n
|
|
687
688
|
}
|
|
688
689
|
);
|
|
689
690
|
}
|
|
690
|
-
function
|
|
691
|
-
return /* @__PURE__ */
|
|
691
|
+
function qn({ ...e }) {
|
|
692
|
+
return /* @__PURE__ */ d("li", { "data-slot": "pagination-item", ...e });
|
|
692
693
|
}
|
|
693
|
-
function
|
|
694
|
+
function he({
|
|
694
695
|
className: e,
|
|
695
|
-
isActive:
|
|
696
|
-
size:
|
|
697
|
-
children:
|
|
698
|
-
...
|
|
696
|
+
isActive: n,
|
|
697
|
+
size: t = "icon",
|
|
698
|
+
children: o,
|
|
699
|
+
...r
|
|
699
700
|
}) {
|
|
700
|
-
return /* @__PURE__ */
|
|
701
|
+
return /* @__PURE__ */ d(
|
|
701
702
|
"a",
|
|
702
703
|
{
|
|
703
|
-
"aria-current":
|
|
704
|
+
"aria-current": n ? "page" : void 0,
|
|
704
705
|
"data-slot": "pagination-link",
|
|
705
|
-
"data-active":
|
|
706
|
-
"aria-label":
|
|
707
|
-
className:
|
|
708
|
-
|
|
709
|
-
variant:
|
|
710
|
-
size:
|
|
706
|
+
"data-active": n,
|
|
707
|
+
"aria-label": o ? void 0 : `Go to page ${o}`,
|
|
708
|
+
className: w(
|
|
709
|
+
De({
|
|
710
|
+
variant: n ? "outline" : "ghost",
|
|
711
|
+
size: t
|
|
711
712
|
}),
|
|
712
713
|
"rounded-sm hover:shadow-none hover:bg-muted",
|
|
713
|
-
|
|
714
|
+
n && "border-subtle",
|
|
714
715
|
e
|
|
715
716
|
),
|
|
716
|
-
...
|
|
717
|
-
children:
|
|
717
|
+
...r,
|
|
718
|
+
children: o
|
|
718
719
|
}
|
|
719
720
|
);
|
|
720
721
|
}
|
|
721
|
-
function
|
|
722
|
-
return /* @__PURE__ */
|
|
723
|
-
|
|
722
|
+
function jn({ className: e, ...n }) {
|
|
723
|
+
return /* @__PURE__ */ I(
|
|
724
|
+
he,
|
|
724
725
|
{
|
|
725
726
|
"aria-label": "Go to previous page",
|
|
726
727
|
size: "default",
|
|
727
|
-
className:
|
|
728
|
-
...
|
|
728
|
+
className: w("gap-1 px-2.5 sm:pl-2.5", e),
|
|
729
|
+
...n,
|
|
729
730
|
children: [
|
|
730
|
-
/* @__PURE__ */
|
|
731
|
-
/* @__PURE__ */
|
|
731
|
+
/* @__PURE__ */ d(Le, {}),
|
|
732
|
+
/* @__PURE__ */ d("span", { className: "hidden sm:block", children: "Previous" })
|
|
732
733
|
]
|
|
733
734
|
}
|
|
734
735
|
);
|
|
735
736
|
}
|
|
736
|
-
function
|
|
737
|
-
return /* @__PURE__ */
|
|
738
|
-
|
|
737
|
+
function Un({ className: e, ...n }) {
|
|
738
|
+
return /* @__PURE__ */ I(
|
|
739
|
+
he,
|
|
739
740
|
{
|
|
740
741
|
"aria-label": "Go to next page",
|
|
741
742
|
size: "default",
|
|
742
|
-
className:
|
|
743
|
-
...
|
|
743
|
+
className: w("gap-1 px-2.5 sm:pr-2.5", e),
|
|
744
|
+
...n,
|
|
744
745
|
children: [
|
|
745
|
-
/* @__PURE__ */
|
|
746
|
-
/* @__PURE__ */
|
|
746
|
+
/* @__PURE__ */ d("span", { className: "hidden sm:block", children: "Next" }),
|
|
747
|
+
/* @__PURE__ */ d(Ne, {})
|
|
747
748
|
]
|
|
748
749
|
}
|
|
749
750
|
);
|
|
750
751
|
}
|
|
751
|
-
function
|
|
752
|
-
return /* @__PURE__ */
|
|
752
|
+
function Xn({ className: e, ...n }) {
|
|
753
|
+
return /* @__PURE__ */ I(
|
|
753
754
|
"span",
|
|
754
755
|
{
|
|
755
756
|
"aria-hidden": !0,
|
|
756
757
|
"data-slot": "pagination-ellipsis",
|
|
757
|
-
className:
|
|
758
|
-
...
|
|
758
|
+
className: w("flex size-9 items-center justify-center text-secondary", e),
|
|
759
|
+
...n,
|
|
759
760
|
children: [
|
|
760
|
-
/* @__PURE__ */
|
|
761
|
-
/* @__PURE__ */
|
|
761
|
+
/* @__PURE__ */ d(Te, { className: "size-4" }),
|
|
762
|
+
/* @__PURE__ */ d("span", { className: "sr-only", children: "More pages" })
|
|
762
763
|
]
|
|
763
764
|
}
|
|
764
765
|
);
|
|
765
766
|
}
|
|
766
|
-
function
|
|
767
|
-
return /* @__PURE__ */
|
|
767
|
+
function rt({ className: e, ...n }) {
|
|
768
|
+
return /* @__PURE__ */ d("div", { "data-slot": "table-wrapper", className: "relative w-full overflow-auto", children: /* @__PURE__ */ d(
|
|
768
769
|
"table",
|
|
769
770
|
{
|
|
770
771
|
"data-slot": "table",
|
|
771
|
-
className:
|
|
772
|
-
...
|
|
772
|
+
className: w("w-full caption-bottom text-sm", e),
|
|
773
|
+
...n
|
|
773
774
|
}
|
|
774
775
|
) });
|
|
775
776
|
}
|
|
776
|
-
function
|
|
777
|
-
return /* @__PURE__ */
|
|
777
|
+
function it({ className: e, ...n }) {
|
|
778
|
+
return /* @__PURE__ */ d("thead", { "data-slot": "table-header", className: w("[&_tr]:border-b", e), ...n });
|
|
778
779
|
}
|
|
779
|
-
function
|
|
780
|
-
return /* @__PURE__ */
|
|
780
|
+
function lt({ className: e, ...n }) {
|
|
781
|
+
return /* @__PURE__ */ d(
|
|
781
782
|
"tbody",
|
|
782
783
|
{
|
|
783
784
|
"data-slot": "table-body",
|
|
784
|
-
className:
|
|
785
|
-
...
|
|
785
|
+
className: w("[&_tr:last-child]:border-0", e),
|
|
786
|
+
...n
|
|
786
787
|
}
|
|
787
788
|
);
|
|
788
789
|
}
|
|
789
|
-
function
|
|
790
|
-
return /* @__PURE__ */
|
|
790
|
+
function Kn({ className: e, ...n }) {
|
|
791
|
+
return /* @__PURE__ */ d(
|
|
791
792
|
"tfoot",
|
|
792
793
|
{
|
|
793
794
|
"data-slot": "table-footer",
|
|
794
|
-
className:
|
|
795
|
-
...
|
|
795
|
+
className: w("bg-muted/50 font-medium [&>tr]:last:border-b-0", e),
|
|
796
|
+
...n
|
|
796
797
|
}
|
|
797
798
|
);
|
|
798
799
|
}
|
|
799
|
-
function
|
|
800
|
-
return /* @__PURE__ */
|
|
800
|
+
function k({ className: e, ...n }) {
|
|
801
|
+
return /* @__PURE__ */ d(
|
|
801
802
|
"tr",
|
|
802
803
|
{
|
|
803
804
|
"data-slot": "table-row",
|
|
804
|
-
className:
|
|
805
|
+
className: w(
|
|
805
806
|
"border-b border-subtle transition-colors hover:bg-muted/50 data-[state=selected]:bg-muted",
|
|
806
807
|
e
|
|
807
808
|
),
|
|
808
|
-
...
|
|
809
|
+
...n
|
|
809
810
|
}
|
|
810
811
|
);
|
|
811
812
|
}
|
|
812
|
-
function
|
|
813
|
-
return /* @__PURE__ */
|
|
813
|
+
function st({ className: e, ...n }) {
|
|
814
|
+
return /* @__PURE__ */ d(
|
|
814
815
|
"th",
|
|
815
816
|
{
|
|
816
817
|
"data-slot": "table-head",
|
|
817
|
-
className:
|
|
818
|
+
className: w(
|
|
818
819
|
"h-12 px-4 text-left align-middle font-medium text-accent-foreground [&:has([role=checkbox])]:pr-0",
|
|
819
820
|
e
|
|
820
821
|
),
|
|
821
|
-
...
|
|
822
|
+
...n
|
|
822
823
|
}
|
|
823
824
|
);
|
|
824
825
|
}
|
|
825
|
-
function
|
|
826
|
-
return /* @__PURE__ */
|
|
826
|
+
function ue({ className: e, ...n }) {
|
|
827
|
+
return /* @__PURE__ */ d(
|
|
827
828
|
"td",
|
|
828
829
|
{
|
|
829
830
|
"data-slot": "table-cell",
|
|
830
|
-
className:
|
|
831
|
-
...
|
|
831
|
+
className: w("text-secondary p-4 align-middle [&:has([role=checkbox])]:pr-0", e),
|
|
832
|
+
...n
|
|
832
833
|
}
|
|
833
834
|
);
|
|
834
835
|
}
|
|
835
|
-
function
|
|
836
|
-
return /* @__PURE__ */
|
|
836
|
+
function Wn({ className: e, ...n }) {
|
|
837
|
+
return /* @__PURE__ */ d(
|
|
837
838
|
"caption",
|
|
838
839
|
{
|
|
839
840
|
"data-slot": "table-caption",
|
|
840
|
-
className:
|
|
841
|
-
...
|
|
841
|
+
className: w("mt-4 text-sm text-secondary-foreground", e),
|
|
842
|
+
...n
|
|
842
843
|
}
|
|
843
844
|
);
|
|
844
845
|
}
|
|
846
|
+
/**
|
|
847
|
+
* table-core
|
|
848
|
+
*
|
|
849
|
+
* Copyright (c) TanStack
|
|
850
|
+
*
|
|
851
|
+
* This source code is licensed under the MIT license found in the
|
|
852
|
+
* LICENSE.md file in the root directory of this source tree.
|
|
853
|
+
*
|
|
854
|
+
* @license MIT
|
|
855
|
+
*/
|
|
856
|
+
function E(e, n) {
|
|
857
|
+
return typeof e == "function" ? e(n) : e;
|
|
858
|
+
}
|
|
859
|
+
function M(e, n) {
|
|
860
|
+
return (t) => {
|
|
861
|
+
n.setState((o) => ({
|
|
862
|
+
...o,
|
|
863
|
+
[e]: E(t, o[e])
|
|
864
|
+
}));
|
|
865
|
+
};
|
|
866
|
+
}
|
|
867
|
+
function B(e) {
|
|
868
|
+
return e instanceof Function;
|
|
869
|
+
}
|
|
870
|
+
function at(e) {
|
|
871
|
+
return Array.isArray(e) && e.every((n) => typeof n == "number");
|
|
872
|
+
}
|
|
873
|
+
function ut(e, n) {
|
|
874
|
+
const t = [], o = (r) => {
|
|
875
|
+
r.forEach((i) => {
|
|
876
|
+
t.push(i);
|
|
877
|
+
const l = n(i);
|
|
878
|
+
l != null && l.length && o(l);
|
|
879
|
+
});
|
|
880
|
+
};
|
|
881
|
+
return o(e), t;
|
|
882
|
+
}
|
|
883
|
+
function S(e, n, t) {
|
|
884
|
+
let o = [], r;
|
|
885
|
+
return (i) => {
|
|
886
|
+
let l;
|
|
887
|
+
t.key && t.debug && (l = Date.now());
|
|
888
|
+
const s = e(i);
|
|
889
|
+
if (!(s.length !== o.length || s.some((f, h) => o[h] !== f)))
|
|
890
|
+
return r;
|
|
891
|
+
o = s;
|
|
892
|
+
let g;
|
|
893
|
+
if (t.key && t.debug && (g = Date.now()), r = n(...s), t == null || t.onChange == null || t.onChange(r), t.key && t.debug && t != null && t.debug()) {
|
|
894
|
+
const f = Math.round((Date.now() - l) * 100) / 100, h = Math.round((Date.now() - g) * 100) / 100, c = h / 16, u = (p, m) => {
|
|
895
|
+
for (p = String(p); p.length < m; )
|
|
896
|
+
p = " " + p;
|
|
897
|
+
return p;
|
|
898
|
+
};
|
|
899
|
+
console.info(`%c⏱ ${u(h, 5)} /${u(f, 5)} ms`, `
|
|
900
|
+
font-size: .6rem;
|
|
901
|
+
font-weight: bold;
|
|
902
|
+
color: hsl(${Math.max(0, Math.min(120 - 120 * c, 120))}deg 100% 31%);`, t == null ? void 0 : t.key);
|
|
903
|
+
}
|
|
904
|
+
return r;
|
|
905
|
+
};
|
|
906
|
+
}
|
|
907
|
+
function C(e, n, t, o) {
|
|
908
|
+
return {
|
|
909
|
+
debug: () => {
|
|
910
|
+
var r;
|
|
911
|
+
return (r = e == null ? void 0 : e.debugAll) != null ? r : e[n];
|
|
912
|
+
},
|
|
913
|
+
key: process.env.NODE_ENV === "development" && t,
|
|
914
|
+
onChange: o
|
|
915
|
+
};
|
|
916
|
+
}
|
|
917
|
+
function gt(e, n, t, o) {
|
|
918
|
+
const r = () => {
|
|
919
|
+
var l;
|
|
920
|
+
return (l = i.getValue()) != null ? l : e.options.renderFallbackValue;
|
|
921
|
+
}, i = {
|
|
922
|
+
id: `${n.id}_${t.id}`,
|
|
923
|
+
row: n,
|
|
924
|
+
column: t,
|
|
925
|
+
getValue: () => n.getValue(o),
|
|
926
|
+
renderValue: r,
|
|
927
|
+
getContext: S(() => [e, t, n, i], (l, s, a, g) => ({
|
|
928
|
+
table: l,
|
|
929
|
+
column: s,
|
|
930
|
+
row: a,
|
|
931
|
+
cell: g,
|
|
932
|
+
getValue: g.getValue,
|
|
933
|
+
renderValue: g.renderValue
|
|
934
|
+
}), C(e.options, "debugCells", "cell.getContext"))
|
|
935
|
+
};
|
|
936
|
+
return e._features.forEach((l) => {
|
|
937
|
+
l.createCell == null || l.createCell(i, t, n, e);
|
|
938
|
+
}, {}), i;
|
|
939
|
+
}
|
|
940
|
+
function dt(e, n, t, o) {
|
|
941
|
+
var r, i;
|
|
942
|
+
const s = {
|
|
943
|
+
...e._getDefaultColumnDef(),
|
|
944
|
+
...n
|
|
945
|
+
}, a = s.accessorKey;
|
|
946
|
+
let g = (r = (i = s.id) != null ? i : a ? typeof String.prototype.replaceAll == "function" ? a.replaceAll(".", "_") : a.replace(/\./g, "_") : void 0) != null ? r : typeof s.header == "string" ? s.header : void 0, f;
|
|
947
|
+
if (s.accessorFn ? f = s.accessorFn : a && (a.includes(".") ? f = (c) => {
|
|
948
|
+
let u = c;
|
|
949
|
+
for (const m of a.split(".")) {
|
|
950
|
+
var p;
|
|
951
|
+
u = (p = u) == null ? void 0 : p[m], process.env.NODE_ENV !== "production" && u === void 0 && console.warn(`"${m}" in deeply nested key "${a}" returned undefined.`);
|
|
952
|
+
}
|
|
953
|
+
return u;
|
|
954
|
+
} : f = (c) => c[s.accessorKey]), !g)
|
|
955
|
+
throw process.env.NODE_ENV !== "production" ? new Error(s.accessorFn ? "Columns require an id when using an accessorFn" : "Columns require an id when using a non-string header") : new Error();
|
|
956
|
+
let h = {
|
|
957
|
+
id: `${String(g)}`,
|
|
958
|
+
accessorFn: f,
|
|
959
|
+
parent: o,
|
|
960
|
+
depth: t,
|
|
961
|
+
columnDef: s,
|
|
962
|
+
columns: [],
|
|
963
|
+
getFlatColumns: S(() => [!0], () => {
|
|
964
|
+
var c;
|
|
965
|
+
return [h, ...(c = h.columns) == null ? void 0 : c.flatMap((u) => u.getFlatColumns())];
|
|
966
|
+
}, C(e.options, "debugColumns", "column.getFlatColumns")),
|
|
967
|
+
getLeafColumns: S(() => [e._getOrderColumnsFn()], (c) => {
|
|
968
|
+
var u;
|
|
969
|
+
if ((u = h.columns) != null && u.length) {
|
|
970
|
+
let p = h.columns.flatMap((m) => m.getLeafColumns());
|
|
971
|
+
return c(p);
|
|
972
|
+
}
|
|
973
|
+
return [h];
|
|
974
|
+
}, C(e.options, "debugColumns", "column.getLeafColumns"))
|
|
975
|
+
};
|
|
976
|
+
for (const c of e._features)
|
|
977
|
+
c.createColumn == null || c.createColumn(h, e);
|
|
978
|
+
return h;
|
|
979
|
+
}
|
|
980
|
+
const _ = "debugHeaders";
|
|
981
|
+
function ge(e, n, t) {
|
|
982
|
+
var o;
|
|
983
|
+
let i = {
|
|
984
|
+
id: (o = t.id) != null ? o : n.id,
|
|
985
|
+
column: n,
|
|
986
|
+
index: t.index,
|
|
987
|
+
isPlaceholder: !!t.isPlaceholder,
|
|
988
|
+
placeholderId: t.placeholderId,
|
|
989
|
+
depth: t.depth,
|
|
990
|
+
subHeaders: [],
|
|
991
|
+
colSpan: 0,
|
|
992
|
+
rowSpan: 0,
|
|
993
|
+
headerGroup: null,
|
|
994
|
+
getLeafHeaders: () => {
|
|
995
|
+
const l = [], s = (a) => {
|
|
996
|
+
a.subHeaders && a.subHeaders.length && a.subHeaders.map(s), l.push(a);
|
|
997
|
+
};
|
|
998
|
+
return s(i), l;
|
|
999
|
+
},
|
|
1000
|
+
getContext: () => ({
|
|
1001
|
+
table: e,
|
|
1002
|
+
header: i,
|
|
1003
|
+
column: n
|
|
1004
|
+
})
|
|
1005
|
+
};
|
|
1006
|
+
return e._features.forEach((l) => {
|
|
1007
|
+
l.createHeader == null || l.createHeader(i, e);
|
|
1008
|
+
}), i;
|
|
1009
|
+
}
|
|
1010
|
+
const ct = {
|
|
1011
|
+
createTable: (e) => {
|
|
1012
|
+
e.getHeaderGroups = S(() => [e.getAllColumns(), e.getVisibleLeafColumns(), e.getState().columnPinning.left, e.getState().columnPinning.right], (n, t, o, r) => {
|
|
1013
|
+
var i, l;
|
|
1014
|
+
const s = (i = o == null ? void 0 : o.map((h) => t.find((c) => c.id === h)).filter(Boolean)) != null ? i : [], a = (l = r == null ? void 0 : r.map((h) => t.find((c) => c.id === h)).filter(Boolean)) != null ? l : [], g = t.filter((h) => !(o != null && o.includes(h.id)) && !(r != null && r.includes(h.id)));
|
|
1015
|
+
return N(n, [...s, ...g, ...a], e);
|
|
1016
|
+
}, C(e.options, _, "getHeaderGroups")), e.getCenterHeaderGroups = S(() => [e.getAllColumns(), e.getVisibleLeafColumns(), e.getState().columnPinning.left, e.getState().columnPinning.right], (n, t, o, r) => (t = t.filter((i) => !(o != null && o.includes(i.id)) && !(r != null && r.includes(i.id))), N(n, t, e, "center")), C(e.options, _, "getCenterHeaderGroups")), e.getLeftHeaderGroups = S(() => [e.getAllColumns(), e.getVisibleLeafColumns(), e.getState().columnPinning.left], (n, t, o) => {
|
|
1017
|
+
var r;
|
|
1018
|
+
const i = (r = o == null ? void 0 : o.map((l) => t.find((s) => s.id === l)).filter(Boolean)) != null ? r : [];
|
|
1019
|
+
return N(n, i, e, "left");
|
|
1020
|
+
}, C(e.options, _, "getLeftHeaderGroups")), e.getRightHeaderGroups = S(() => [e.getAllColumns(), e.getVisibleLeafColumns(), e.getState().columnPinning.right], (n, t, o) => {
|
|
1021
|
+
var r;
|
|
1022
|
+
const i = (r = o == null ? void 0 : o.map((l) => t.find((s) => s.id === l)).filter(Boolean)) != null ? r : [];
|
|
1023
|
+
return N(n, i, e, "right");
|
|
1024
|
+
}, C(e.options, _, "getRightHeaderGroups")), e.getFooterGroups = S(() => [e.getHeaderGroups()], (n) => [...n].reverse(), C(e.options, _, "getFooterGroups")), e.getLeftFooterGroups = S(() => [e.getLeftHeaderGroups()], (n) => [...n].reverse(), C(e.options, _, "getLeftFooterGroups")), e.getCenterFooterGroups = S(() => [e.getCenterHeaderGroups()], (n) => [...n].reverse(), C(e.options, _, "getCenterFooterGroups")), e.getRightFooterGroups = S(() => [e.getRightHeaderGroups()], (n) => [...n].reverse(), C(e.options, _, "getRightFooterGroups")), e.getFlatHeaders = S(() => [e.getHeaderGroups()], (n) => n.map((t) => t.headers).flat(), C(e.options, _, "getFlatHeaders")), e.getLeftFlatHeaders = S(() => [e.getLeftHeaderGroups()], (n) => n.map((t) => t.headers).flat(), C(e.options, _, "getLeftFlatHeaders")), e.getCenterFlatHeaders = S(() => [e.getCenterHeaderGroups()], (n) => n.map((t) => t.headers).flat(), C(e.options, _, "getCenterFlatHeaders")), e.getRightFlatHeaders = S(() => [e.getRightHeaderGroups()], (n) => n.map((t) => t.headers).flat(), C(e.options, _, "getRightFlatHeaders")), e.getCenterLeafHeaders = S(() => [e.getCenterFlatHeaders()], (n) => n.filter((t) => {
|
|
1025
|
+
var o;
|
|
1026
|
+
return !((o = t.subHeaders) != null && o.length);
|
|
1027
|
+
}), C(e.options, _, "getCenterLeafHeaders")), e.getLeftLeafHeaders = S(() => [e.getLeftFlatHeaders()], (n) => n.filter((t) => {
|
|
1028
|
+
var o;
|
|
1029
|
+
return !((o = t.subHeaders) != null && o.length);
|
|
1030
|
+
}), C(e.options, _, "getLeftLeafHeaders")), e.getRightLeafHeaders = S(() => [e.getRightFlatHeaders()], (n) => n.filter((t) => {
|
|
1031
|
+
var o;
|
|
1032
|
+
return !((o = t.subHeaders) != null && o.length);
|
|
1033
|
+
}), C(e.options, _, "getRightLeafHeaders")), e.getLeafHeaders = S(() => [e.getLeftHeaderGroups(), e.getCenterHeaderGroups(), e.getRightHeaderGroups()], (n, t, o) => {
|
|
1034
|
+
var r, i, l, s, a, g;
|
|
1035
|
+
return [...(r = (i = n[0]) == null ? void 0 : i.headers) != null ? r : [], ...(l = (s = t[0]) == null ? void 0 : s.headers) != null ? l : [], ...(a = (g = o[0]) == null ? void 0 : g.headers) != null ? a : []].map((f) => f.getLeafHeaders()).flat();
|
|
1036
|
+
}, C(e.options, _, "getLeafHeaders"));
|
|
1037
|
+
}
|
|
1038
|
+
};
|
|
1039
|
+
function N(e, n, t, o) {
|
|
1040
|
+
var r, i;
|
|
1041
|
+
let l = 0;
|
|
1042
|
+
const s = function(c, u) {
|
|
1043
|
+
u === void 0 && (u = 1), l = Math.max(l, u), c.filter((p) => p.getIsVisible()).forEach((p) => {
|
|
1044
|
+
var m;
|
|
1045
|
+
(m = p.columns) != null && m.length && s(p.columns, u + 1);
|
|
1046
|
+
}, 0);
|
|
1047
|
+
};
|
|
1048
|
+
s(e);
|
|
1049
|
+
let a = [];
|
|
1050
|
+
const g = (c, u) => {
|
|
1051
|
+
const p = {
|
|
1052
|
+
depth: u,
|
|
1053
|
+
id: [o, `${u}`].filter(Boolean).join("_"),
|
|
1054
|
+
headers: []
|
|
1055
|
+
}, m = [];
|
|
1056
|
+
c.forEach((R) => {
|
|
1057
|
+
const v = [...m].reverse()[0], F = R.column.depth === p.depth;
|
|
1058
|
+
let x, y = !1;
|
|
1059
|
+
if (F && R.column.parent ? x = R.column.parent : (x = R.column, y = !0), v && (v == null ? void 0 : v.column) === x)
|
|
1060
|
+
v.subHeaders.push(R);
|
|
1061
|
+
else {
|
|
1062
|
+
const A = ge(t, x, {
|
|
1063
|
+
id: [o, u, x.id, R == null ? void 0 : R.id].filter(Boolean).join("_"),
|
|
1064
|
+
isPlaceholder: y,
|
|
1065
|
+
placeholderId: y ? `${m.filter((b) => b.column === x).length}` : void 0,
|
|
1066
|
+
depth: u,
|
|
1067
|
+
index: m.length
|
|
1068
|
+
});
|
|
1069
|
+
A.subHeaders.push(R), m.push(A);
|
|
1070
|
+
}
|
|
1071
|
+
p.headers.push(R), R.headerGroup = p;
|
|
1072
|
+
}), a.push(p), u > 0 && g(m, u - 1);
|
|
1073
|
+
}, f = n.map((c, u) => ge(t, c, {
|
|
1074
|
+
depth: l,
|
|
1075
|
+
index: u
|
|
1076
|
+
}));
|
|
1077
|
+
g(f, l - 1), a.reverse();
|
|
1078
|
+
const h = (c) => c.filter((p) => p.column.getIsVisible()).map((p) => {
|
|
1079
|
+
let m = 0, R = 0, v = [0];
|
|
1080
|
+
p.subHeaders && p.subHeaders.length ? (v = [], h(p.subHeaders).forEach((x) => {
|
|
1081
|
+
let {
|
|
1082
|
+
colSpan: y,
|
|
1083
|
+
rowSpan: A
|
|
1084
|
+
} = x;
|
|
1085
|
+
m += y, v.push(A);
|
|
1086
|
+
})) : m = 1;
|
|
1087
|
+
const F = Math.min(...v);
|
|
1088
|
+
return R = R + F, p.colSpan = m, p.rowSpan = R, {
|
|
1089
|
+
colSpan: m,
|
|
1090
|
+
rowSpan: R
|
|
1091
|
+
};
|
|
1092
|
+
});
|
|
1093
|
+
return h((r = (i = a[0]) == null ? void 0 : i.headers) != null ? r : []), a;
|
|
1094
|
+
}
|
|
1095
|
+
const ft = (e, n, t, o, r, i, l) => {
|
|
1096
|
+
let s = {
|
|
1097
|
+
id: n,
|
|
1098
|
+
index: o,
|
|
1099
|
+
original: t,
|
|
1100
|
+
depth: r,
|
|
1101
|
+
parentId: l,
|
|
1102
|
+
_valuesCache: {},
|
|
1103
|
+
_uniqueValuesCache: {},
|
|
1104
|
+
getValue: (a) => {
|
|
1105
|
+
if (s._valuesCache.hasOwnProperty(a))
|
|
1106
|
+
return s._valuesCache[a];
|
|
1107
|
+
const g = e.getColumn(a);
|
|
1108
|
+
if (g != null && g.accessorFn)
|
|
1109
|
+
return s._valuesCache[a] = g.accessorFn(s.original, o), s._valuesCache[a];
|
|
1110
|
+
},
|
|
1111
|
+
getUniqueValues: (a) => {
|
|
1112
|
+
if (s._uniqueValuesCache.hasOwnProperty(a))
|
|
1113
|
+
return s._uniqueValuesCache[a];
|
|
1114
|
+
const g = e.getColumn(a);
|
|
1115
|
+
if (g != null && g.accessorFn)
|
|
1116
|
+
return g.columnDef.getUniqueValues ? (s._uniqueValuesCache[a] = g.columnDef.getUniqueValues(s.original, o), s._uniqueValuesCache[a]) : (s._uniqueValuesCache[a] = [s.getValue(a)], s._uniqueValuesCache[a]);
|
|
1117
|
+
},
|
|
1118
|
+
renderValue: (a) => {
|
|
1119
|
+
var g;
|
|
1120
|
+
return (g = s.getValue(a)) != null ? g : e.options.renderFallbackValue;
|
|
1121
|
+
},
|
|
1122
|
+
subRows: [],
|
|
1123
|
+
getLeafRows: () => ut(s.subRows, (a) => a.subRows),
|
|
1124
|
+
getParentRow: () => s.parentId ? e.getRow(s.parentId, !0) : void 0,
|
|
1125
|
+
getParentRows: () => {
|
|
1126
|
+
let a = [], g = s;
|
|
1127
|
+
for (; ; ) {
|
|
1128
|
+
const f = g.getParentRow();
|
|
1129
|
+
if (!f) break;
|
|
1130
|
+
a.push(f), g = f;
|
|
1131
|
+
}
|
|
1132
|
+
return a.reverse();
|
|
1133
|
+
},
|
|
1134
|
+
getAllCells: S(() => [e.getAllLeafColumns()], (a) => a.map((g) => gt(e, s, g, g.id)), C(e.options, "debugRows", "getAllCells")),
|
|
1135
|
+
_getAllCellsByColumnId: S(() => [s.getAllCells()], (a) => a.reduce((g, f) => (g[f.column.id] = f, g), {}), C(e.options, "debugRows", "getAllCellsByColumnId"))
|
|
1136
|
+
};
|
|
1137
|
+
for (let a = 0; a < e._features.length; a++) {
|
|
1138
|
+
const g = e._features[a];
|
|
1139
|
+
g == null || g.createRow == null || g.createRow(s, e);
|
|
1140
|
+
}
|
|
1141
|
+
return s;
|
|
1142
|
+
}, pt = {
|
|
1143
|
+
createColumn: (e, n) => {
|
|
1144
|
+
e._getFacetedRowModel = n.options.getFacetedRowModel && n.options.getFacetedRowModel(n, e.id), e.getFacetedRowModel = () => e._getFacetedRowModel ? e._getFacetedRowModel() : n.getPreFilteredRowModel(), e._getFacetedUniqueValues = n.options.getFacetedUniqueValues && n.options.getFacetedUniqueValues(n, e.id), e.getFacetedUniqueValues = () => e._getFacetedUniqueValues ? e._getFacetedUniqueValues() : /* @__PURE__ */ new Map(), e._getFacetedMinMaxValues = n.options.getFacetedMinMaxValues && n.options.getFacetedMinMaxValues(n, e.id), e.getFacetedMinMaxValues = () => {
|
|
1145
|
+
if (e._getFacetedMinMaxValues)
|
|
1146
|
+
return e._getFacetedMinMaxValues();
|
|
1147
|
+
};
|
|
1148
|
+
}
|
|
1149
|
+
}, we = (e, n, t) => {
|
|
1150
|
+
var o, r;
|
|
1151
|
+
const i = t == null || (o = t.toString()) == null ? void 0 : o.toLowerCase();
|
|
1152
|
+
return !!(!((r = e.getValue(n)) == null || (r = r.toString()) == null || (r = r.toLowerCase()) == null) && r.includes(i));
|
|
1153
|
+
};
|
|
1154
|
+
we.autoRemove = (e) => P(e);
|
|
1155
|
+
const ve = (e, n, t) => {
|
|
1156
|
+
var o;
|
|
1157
|
+
return !!(!((o = e.getValue(n)) == null || (o = o.toString()) == null) && o.includes(t));
|
|
1158
|
+
};
|
|
1159
|
+
ve.autoRemove = (e) => P(e);
|
|
1160
|
+
const Re = (e, n, t) => {
|
|
1161
|
+
var o;
|
|
1162
|
+
return ((o = e.getValue(n)) == null || (o = o.toString()) == null ? void 0 : o.toLowerCase()) === (t == null ? void 0 : t.toLowerCase());
|
|
1163
|
+
};
|
|
1164
|
+
Re.autoRemove = (e) => P(e);
|
|
1165
|
+
const xe = (e, n, t) => {
|
|
1166
|
+
var o;
|
|
1167
|
+
return (o = e.getValue(n)) == null ? void 0 : o.includes(t);
|
|
1168
|
+
};
|
|
1169
|
+
xe.autoRemove = (e) => P(e);
|
|
1170
|
+
const _e = (e, n, t) => !t.some((o) => {
|
|
1171
|
+
var r;
|
|
1172
|
+
return !((r = e.getValue(n)) != null && r.includes(o));
|
|
1173
|
+
});
|
|
1174
|
+
_e.autoRemove = (e) => P(e) || !(e != null && e.length);
|
|
1175
|
+
const Fe = (e, n, t) => t.some((o) => {
|
|
1176
|
+
var r;
|
|
1177
|
+
return (r = e.getValue(n)) == null ? void 0 : r.includes(o);
|
|
1178
|
+
});
|
|
1179
|
+
Fe.autoRemove = (e) => P(e) || !(e != null && e.length);
|
|
1180
|
+
const $e = (e, n, t) => e.getValue(n) === t;
|
|
1181
|
+
$e.autoRemove = (e) => P(e);
|
|
1182
|
+
const Me = (e, n, t) => e.getValue(n) == t;
|
|
1183
|
+
Me.autoRemove = (e) => P(e);
|
|
1184
|
+
const oe = (e, n, t) => {
|
|
1185
|
+
let [o, r] = t;
|
|
1186
|
+
const i = e.getValue(n);
|
|
1187
|
+
return i >= o && i <= r;
|
|
1188
|
+
};
|
|
1189
|
+
oe.resolveFilterValue = (e) => {
|
|
1190
|
+
let [n, t] = e, o = typeof n != "number" ? parseFloat(n) : n, r = typeof t != "number" ? parseFloat(t) : t, i = n === null || Number.isNaN(o) ? -1 / 0 : o, l = t === null || Number.isNaN(r) ? 1 / 0 : r;
|
|
1191
|
+
if (i > l) {
|
|
1192
|
+
const s = i;
|
|
1193
|
+
i = l, l = s;
|
|
1194
|
+
}
|
|
1195
|
+
return [i, l];
|
|
1196
|
+
};
|
|
1197
|
+
oe.autoRemove = (e) => P(e) || P(e[0]) && P(e[1]);
|
|
1198
|
+
const V = {
|
|
1199
|
+
includesString: we,
|
|
1200
|
+
includesStringSensitive: ve,
|
|
1201
|
+
equalsString: Re,
|
|
1202
|
+
arrIncludes: xe,
|
|
1203
|
+
arrIncludesAll: _e,
|
|
1204
|
+
arrIncludesSome: Fe,
|
|
1205
|
+
equals: $e,
|
|
1206
|
+
weakEquals: Me,
|
|
1207
|
+
inNumberRange: oe
|
|
1208
|
+
};
|
|
1209
|
+
function P(e) {
|
|
1210
|
+
return e == null || e === "";
|
|
1211
|
+
}
|
|
1212
|
+
const mt = {
|
|
1213
|
+
getDefaultColumnDef: () => ({
|
|
1214
|
+
filterFn: "auto"
|
|
1215
|
+
}),
|
|
1216
|
+
getInitialState: (e) => ({
|
|
1217
|
+
columnFilters: [],
|
|
1218
|
+
...e
|
|
1219
|
+
}),
|
|
1220
|
+
getDefaultOptions: (e) => ({
|
|
1221
|
+
onColumnFiltersChange: M("columnFilters", e),
|
|
1222
|
+
filterFromLeafRows: !1,
|
|
1223
|
+
maxLeafRowFilterDepth: 100
|
|
1224
|
+
}),
|
|
1225
|
+
createColumn: (e, n) => {
|
|
1226
|
+
e.getAutoFilterFn = () => {
|
|
1227
|
+
const t = n.getCoreRowModel().flatRows[0], o = t == null ? void 0 : t.getValue(e.id);
|
|
1228
|
+
return typeof o == "string" ? V.includesString : typeof o == "number" ? V.inNumberRange : typeof o == "boolean" || o !== null && typeof o == "object" ? V.equals : Array.isArray(o) ? V.arrIncludes : V.weakEquals;
|
|
1229
|
+
}, e.getFilterFn = () => {
|
|
1230
|
+
var t, o;
|
|
1231
|
+
return B(e.columnDef.filterFn) ? e.columnDef.filterFn : e.columnDef.filterFn === "auto" ? e.getAutoFilterFn() : (
|
|
1232
|
+
// @ts-ignore
|
|
1233
|
+
(t = (o = n.options.filterFns) == null ? void 0 : o[e.columnDef.filterFn]) != null ? t : V[e.columnDef.filterFn]
|
|
1234
|
+
);
|
|
1235
|
+
}, e.getCanFilter = () => {
|
|
1236
|
+
var t, o, r;
|
|
1237
|
+
return ((t = e.columnDef.enableColumnFilter) != null ? t : !0) && ((o = n.options.enableColumnFilters) != null ? o : !0) && ((r = n.options.enableFilters) != null ? r : !0) && !!e.accessorFn;
|
|
1238
|
+
}, e.getIsFiltered = () => e.getFilterIndex() > -1, e.getFilterValue = () => {
|
|
1239
|
+
var t;
|
|
1240
|
+
return (t = n.getState().columnFilters) == null || (t = t.find((o) => o.id === e.id)) == null ? void 0 : t.value;
|
|
1241
|
+
}, e.getFilterIndex = () => {
|
|
1242
|
+
var t, o;
|
|
1243
|
+
return (t = (o = n.getState().columnFilters) == null ? void 0 : o.findIndex((r) => r.id === e.id)) != null ? t : -1;
|
|
1244
|
+
}, e.setFilterValue = (t) => {
|
|
1245
|
+
n.setColumnFilters((o) => {
|
|
1246
|
+
const r = e.getFilterFn(), i = o == null ? void 0 : o.find((f) => f.id === e.id), l = E(t, i ? i.value : void 0);
|
|
1247
|
+
if (de(r, l, e)) {
|
|
1248
|
+
var s;
|
|
1249
|
+
return (s = o == null ? void 0 : o.filter((f) => f.id !== e.id)) != null ? s : [];
|
|
1250
|
+
}
|
|
1251
|
+
const a = {
|
|
1252
|
+
id: e.id,
|
|
1253
|
+
value: l
|
|
1254
|
+
};
|
|
1255
|
+
if (i) {
|
|
1256
|
+
var g;
|
|
1257
|
+
return (g = o == null ? void 0 : o.map((f) => f.id === e.id ? a : f)) != null ? g : [];
|
|
1258
|
+
}
|
|
1259
|
+
return o != null && o.length ? [...o, a] : [a];
|
|
1260
|
+
});
|
|
1261
|
+
};
|
|
1262
|
+
},
|
|
1263
|
+
createRow: (e, n) => {
|
|
1264
|
+
e.columnFilters = {}, e.columnFiltersMeta = {};
|
|
1265
|
+
},
|
|
1266
|
+
createTable: (e) => {
|
|
1267
|
+
e.setColumnFilters = (n) => {
|
|
1268
|
+
const t = e.getAllLeafColumns(), o = (r) => {
|
|
1269
|
+
var i;
|
|
1270
|
+
return (i = E(n, r)) == null ? void 0 : i.filter((l) => {
|
|
1271
|
+
const s = t.find((a) => a.id === l.id);
|
|
1272
|
+
if (s) {
|
|
1273
|
+
const a = s.getFilterFn();
|
|
1274
|
+
if (de(a, l.value, s))
|
|
1275
|
+
return !1;
|
|
1276
|
+
}
|
|
1277
|
+
return !0;
|
|
1278
|
+
});
|
|
1279
|
+
};
|
|
1280
|
+
e.options.onColumnFiltersChange == null || e.options.onColumnFiltersChange(o);
|
|
1281
|
+
}, e.resetColumnFilters = (n) => {
|
|
1282
|
+
var t, o;
|
|
1283
|
+
e.setColumnFilters(n ? [] : (t = (o = e.initialState) == null ? void 0 : o.columnFilters) != null ? t : []);
|
|
1284
|
+
}, e.getPreFilteredRowModel = () => e.getCoreRowModel(), e.getFilteredRowModel = () => (!e._getFilteredRowModel && e.options.getFilteredRowModel && (e._getFilteredRowModel = e.options.getFilteredRowModel(e)), e.options.manualFiltering || !e._getFilteredRowModel ? e.getPreFilteredRowModel() : e._getFilteredRowModel());
|
|
1285
|
+
}
|
|
1286
|
+
};
|
|
1287
|
+
function de(e, n, t) {
|
|
1288
|
+
return (e && e.autoRemove ? e.autoRemove(n, t) : !1) || typeof n > "u" || typeof n == "string" && !n;
|
|
1289
|
+
}
|
|
1290
|
+
const St = (e, n, t) => t.reduce((o, r) => {
|
|
1291
|
+
const i = r.getValue(e);
|
|
1292
|
+
return o + (typeof i == "number" ? i : 0);
|
|
1293
|
+
}, 0), Ct = (e, n, t) => {
|
|
1294
|
+
let o;
|
|
1295
|
+
return t.forEach((r) => {
|
|
1296
|
+
const i = r.getValue(e);
|
|
1297
|
+
i != null && (o > i || o === void 0 && i >= i) && (o = i);
|
|
1298
|
+
}), o;
|
|
1299
|
+
}, ht = (e, n, t) => {
|
|
1300
|
+
let o;
|
|
1301
|
+
return t.forEach((r) => {
|
|
1302
|
+
const i = r.getValue(e);
|
|
1303
|
+
i != null && (o < i || o === void 0 && i >= i) && (o = i);
|
|
1304
|
+
}), o;
|
|
1305
|
+
}, wt = (e, n, t) => {
|
|
1306
|
+
let o, r;
|
|
1307
|
+
return t.forEach((i) => {
|
|
1308
|
+
const l = i.getValue(e);
|
|
1309
|
+
l != null && (o === void 0 ? l >= l && (o = r = l) : (o > l && (o = l), r < l && (r = l)));
|
|
1310
|
+
}), [o, r];
|
|
1311
|
+
}, vt = (e, n) => {
|
|
1312
|
+
let t = 0, o = 0;
|
|
1313
|
+
if (n.forEach((r) => {
|
|
1314
|
+
let i = r.getValue(e);
|
|
1315
|
+
i != null && (i = +i) >= i && (++t, o += i);
|
|
1316
|
+
}), t) return o / t;
|
|
1317
|
+
}, Rt = (e, n) => {
|
|
1318
|
+
if (!n.length)
|
|
1319
|
+
return;
|
|
1320
|
+
const t = n.map((i) => i.getValue(e));
|
|
1321
|
+
if (!at(t))
|
|
1322
|
+
return;
|
|
1323
|
+
if (t.length === 1)
|
|
1324
|
+
return t[0];
|
|
1325
|
+
const o = Math.floor(t.length / 2), r = t.sort((i, l) => i - l);
|
|
1326
|
+
return t.length % 2 !== 0 ? r[o] : (r[o - 1] + r[o]) / 2;
|
|
1327
|
+
}, xt = (e, n) => Array.from(new Set(n.map((t) => t.getValue(e))).values()), _t = (e, n) => new Set(n.map((t) => t.getValue(e))).size, Ft = (e, n) => n.length, q = {
|
|
1328
|
+
sum: St,
|
|
1329
|
+
min: Ct,
|
|
1330
|
+
max: ht,
|
|
1331
|
+
extent: wt,
|
|
1332
|
+
mean: vt,
|
|
1333
|
+
median: Rt,
|
|
1334
|
+
unique: xt,
|
|
1335
|
+
uniqueCount: _t,
|
|
1336
|
+
count: Ft
|
|
1337
|
+
}, $t = {
|
|
1338
|
+
getDefaultColumnDef: () => ({
|
|
1339
|
+
aggregatedCell: (e) => {
|
|
1340
|
+
var n, t;
|
|
1341
|
+
return (n = (t = e.getValue()) == null || t.toString == null ? void 0 : t.toString()) != null ? n : null;
|
|
1342
|
+
},
|
|
1343
|
+
aggregationFn: "auto"
|
|
1344
|
+
}),
|
|
1345
|
+
getInitialState: (e) => ({
|
|
1346
|
+
grouping: [],
|
|
1347
|
+
...e
|
|
1348
|
+
}),
|
|
1349
|
+
getDefaultOptions: (e) => ({
|
|
1350
|
+
onGroupingChange: M("grouping", e),
|
|
1351
|
+
groupedColumnMode: "reorder"
|
|
1352
|
+
}),
|
|
1353
|
+
createColumn: (e, n) => {
|
|
1354
|
+
e.toggleGrouping = () => {
|
|
1355
|
+
n.setGrouping((t) => t != null && t.includes(e.id) ? t.filter((o) => o !== e.id) : [...t ?? [], e.id]);
|
|
1356
|
+
}, e.getCanGroup = () => {
|
|
1357
|
+
var t, o;
|
|
1358
|
+
return ((t = e.columnDef.enableGrouping) != null ? t : !0) && ((o = n.options.enableGrouping) != null ? o : !0) && (!!e.accessorFn || !!e.columnDef.getGroupingValue);
|
|
1359
|
+
}, e.getIsGrouped = () => {
|
|
1360
|
+
var t;
|
|
1361
|
+
return (t = n.getState().grouping) == null ? void 0 : t.includes(e.id);
|
|
1362
|
+
}, e.getGroupedIndex = () => {
|
|
1363
|
+
var t;
|
|
1364
|
+
return (t = n.getState().grouping) == null ? void 0 : t.indexOf(e.id);
|
|
1365
|
+
}, e.getToggleGroupingHandler = () => {
|
|
1366
|
+
const t = e.getCanGroup();
|
|
1367
|
+
return () => {
|
|
1368
|
+
t && e.toggleGrouping();
|
|
1369
|
+
};
|
|
1370
|
+
}, e.getAutoAggregationFn = () => {
|
|
1371
|
+
const t = n.getCoreRowModel().flatRows[0], o = t == null ? void 0 : t.getValue(e.id);
|
|
1372
|
+
if (typeof o == "number")
|
|
1373
|
+
return q.sum;
|
|
1374
|
+
if (Object.prototype.toString.call(o) === "[object Date]")
|
|
1375
|
+
return q.extent;
|
|
1376
|
+
}, e.getAggregationFn = () => {
|
|
1377
|
+
var t, o;
|
|
1378
|
+
if (!e)
|
|
1379
|
+
throw new Error();
|
|
1380
|
+
return B(e.columnDef.aggregationFn) ? e.columnDef.aggregationFn : e.columnDef.aggregationFn === "auto" ? e.getAutoAggregationFn() : (t = (o = n.options.aggregationFns) == null ? void 0 : o[e.columnDef.aggregationFn]) != null ? t : q[e.columnDef.aggregationFn];
|
|
1381
|
+
};
|
|
1382
|
+
},
|
|
1383
|
+
createTable: (e) => {
|
|
1384
|
+
e.setGrouping = (n) => e.options.onGroupingChange == null ? void 0 : e.options.onGroupingChange(n), e.resetGrouping = (n) => {
|
|
1385
|
+
var t, o;
|
|
1386
|
+
e.setGrouping(n ? [] : (t = (o = e.initialState) == null ? void 0 : o.grouping) != null ? t : []);
|
|
1387
|
+
}, e.getPreGroupedRowModel = () => e.getFilteredRowModel(), e.getGroupedRowModel = () => (!e._getGroupedRowModel && e.options.getGroupedRowModel && (e._getGroupedRowModel = e.options.getGroupedRowModel(e)), e.options.manualGrouping || !e._getGroupedRowModel ? e.getPreGroupedRowModel() : e._getGroupedRowModel());
|
|
1388
|
+
},
|
|
1389
|
+
createRow: (e, n) => {
|
|
1390
|
+
e.getIsGrouped = () => !!e.groupingColumnId, e.getGroupingValue = (t) => {
|
|
1391
|
+
if (e._groupingValuesCache.hasOwnProperty(t))
|
|
1392
|
+
return e._groupingValuesCache[t];
|
|
1393
|
+
const o = n.getColumn(t);
|
|
1394
|
+
return o != null && o.columnDef.getGroupingValue ? (e._groupingValuesCache[t] = o.columnDef.getGroupingValue(e.original), e._groupingValuesCache[t]) : e.getValue(t);
|
|
1395
|
+
}, e._groupingValuesCache = {};
|
|
1396
|
+
},
|
|
1397
|
+
createCell: (e, n, t, o) => {
|
|
1398
|
+
e.getIsGrouped = () => n.getIsGrouped() && n.id === t.groupingColumnId, e.getIsPlaceholder = () => !e.getIsGrouped() && n.getIsGrouped(), e.getIsAggregated = () => {
|
|
1399
|
+
var r;
|
|
1400
|
+
return !e.getIsGrouped() && !e.getIsPlaceholder() && !!((r = t.subRows) != null && r.length);
|
|
1401
|
+
};
|
|
1402
|
+
}
|
|
1403
|
+
};
|
|
1404
|
+
function Mt(e, n, t) {
|
|
1405
|
+
if (!(n != null && n.length) || !t)
|
|
1406
|
+
return e;
|
|
1407
|
+
const o = e.filter((i) => !n.includes(i.id));
|
|
1408
|
+
return t === "remove" ? o : [...n.map((i) => e.find((l) => l.id === i)).filter(Boolean), ...o];
|
|
1409
|
+
}
|
|
1410
|
+
const Pt = {
|
|
1411
|
+
getInitialState: (e) => ({
|
|
1412
|
+
columnOrder: [],
|
|
1413
|
+
...e
|
|
1414
|
+
}),
|
|
1415
|
+
getDefaultOptions: (e) => ({
|
|
1416
|
+
onColumnOrderChange: M("columnOrder", e)
|
|
1417
|
+
}),
|
|
1418
|
+
createColumn: (e, n) => {
|
|
1419
|
+
e.getIndex = S((t) => [H(n, t)], (t) => t.findIndex((o) => o.id === e.id), C(n.options, "debugColumns", "getIndex")), e.getIsFirstColumn = (t) => {
|
|
1420
|
+
var o;
|
|
1421
|
+
return ((o = H(n, t)[0]) == null ? void 0 : o.id) === e.id;
|
|
1422
|
+
}, e.getIsLastColumn = (t) => {
|
|
1423
|
+
var o;
|
|
1424
|
+
const r = H(n, t);
|
|
1425
|
+
return ((o = r[r.length - 1]) == null ? void 0 : o.id) === e.id;
|
|
1426
|
+
};
|
|
1427
|
+
},
|
|
1428
|
+
createTable: (e) => {
|
|
1429
|
+
e.setColumnOrder = (n) => e.options.onColumnOrderChange == null ? void 0 : e.options.onColumnOrderChange(n), e.resetColumnOrder = (n) => {
|
|
1430
|
+
var t;
|
|
1431
|
+
e.setColumnOrder(n ? [] : (t = e.initialState.columnOrder) != null ? t : []);
|
|
1432
|
+
}, e._getOrderColumnsFn = S(() => [e.getState().columnOrder, e.getState().grouping, e.options.groupedColumnMode], (n, t, o) => (r) => {
|
|
1433
|
+
let i = [];
|
|
1434
|
+
if (!(n != null && n.length))
|
|
1435
|
+
i = r;
|
|
1436
|
+
else {
|
|
1437
|
+
const l = [...n], s = [...r];
|
|
1438
|
+
for (; s.length && l.length; ) {
|
|
1439
|
+
const a = l.shift(), g = s.findIndex((f) => f.id === a);
|
|
1440
|
+
g > -1 && i.push(s.splice(g, 1)[0]);
|
|
1441
|
+
}
|
|
1442
|
+
i = [...i, ...s];
|
|
1443
|
+
}
|
|
1444
|
+
return Mt(i, t, o);
|
|
1445
|
+
}, C(e.options, "debugTable", "_getOrderColumnsFn"));
|
|
1446
|
+
}
|
|
1447
|
+
}, j = () => ({
|
|
1448
|
+
left: [],
|
|
1449
|
+
right: []
|
|
1450
|
+
}), Vt = {
|
|
1451
|
+
getInitialState: (e) => ({
|
|
1452
|
+
columnPinning: j(),
|
|
1453
|
+
...e
|
|
1454
|
+
}),
|
|
1455
|
+
getDefaultOptions: (e) => ({
|
|
1456
|
+
onColumnPinningChange: M("columnPinning", e)
|
|
1457
|
+
}),
|
|
1458
|
+
createColumn: (e, n) => {
|
|
1459
|
+
e.pin = (t) => {
|
|
1460
|
+
const o = e.getLeafColumns().map((r) => r.id).filter(Boolean);
|
|
1461
|
+
n.setColumnPinning((r) => {
|
|
1462
|
+
var i, l;
|
|
1463
|
+
if (t === "right") {
|
|
1464
|
+
var s, a;
|
|
1465
|
+
return {
|
|
1466
|
+
left: ((s = r == null ? void 0 : r.left) != null ? s : []).filter((h) => !(o != null && o.includes(h))),
|
|
1467
|
+
right: [...((a = r == null ? void 0 : r.right) != null ? a : []).filter((h) => !(o != null && o.includes(h))), ...o]
|
|
1468
|
+
};
|
|
1469
|
+
}
|
|
1470
|
+
if (t === "left") {
|
|
1471
|
+
var g, f;
|
|
1472
|
+
return {
|
|
1473
|
+
left: [...((g = r == null ? void 0 : r.left) != null ? g : []).filter((h) => !(o != null && o.includes(h))), ...o],
|
|
1474
|
+
right: ((f = r == null ? void 0 : r.right) != null ? f : []).filter((h) => !(o != null && o.includes(h)))
|
|
1475
|
+
};
|
|
1476
|
+
}
|
|
1477
|
+
return {
|
|
1478
|
+
left: ((i = r == null ? void 0 : r.left) != null ? i : []).filter((h) => !(o != null && o.includes(h))),
|
|
1479
|
+
right: ((l = r == null ? void 0 : r.right) != null ? l : []).filter((h) => !(o != null && o.includes(h)))
|
|
1480
|
+
};
|
|
1481
|
+
});
|
|
1482
|
+
}, e.getCanPin = () => e.getLeafColumns().some((o) => {
|
|
1483
|
+
var r, i, l;
|
|
1484
|
+
return ((r = o.columnDef.enablePinning) != null ? r : !0) && ((i = (l = n.options.enableColumnPinning) != null ? l : n.options.enablePinning) != null ? i : !0);
|
|
1485
|
+
}), e.getIsPinned = () => {
|
|
1486
|
+
const t = e.getLeafColumns().map((s) => s.id), {
|
|
1487
|
+
left: o,
|
|
1488
|
+
right: r
|
|
1489
|
+
} = n.getState().columnPinning, i = t.some((s) => o == null ? void 0 : o.includes(s)), l = t.some((s) => r == null ? void 0 : r.includes(s));
|
|
1490
|
+
return i ? "left" : l ? "right" : !1;
|
|
1491
|
+
}, e.getPinnedIndex = () => {
|
|
1492
|
+
var t, o;
|
|
1493
|
+
const r = e.getIsPinned();
|
|
1494
|
+
return r ? (t = (o = n.getState().columnPinning) == null || (o = o[r]) == null ? void 0 : o.indexOf(e.id)) != null ? t : -1 : 0;
|
|
1495
|
+
};
|
|
1496
|
+
},
|
|
1497
|
+
createRow: (e, n) => {
|
|
1498
|
+
e.getCenterVisibleCells = S(() => [e._getAllVisibleCells(), n.getState().columnPinning.left, n.getState().columnPinning.right], (t, o, r) => {
|
|
1499
|
+
const i = [...o ?? [], ...r ?? []];
|
|
1500
|
+
return t.filter((l) => !i.includes(l.column.id));
|
|
1501
|
+
}, C(n.options, "debugRows", "getCenterVisibleCells")), e.getLeftVisibleCells = S(() => [e._getAllVisibleCells(), n.getState().columnPinning.left], (t, o) => (o ?? []).map((i) => t.find((l) => l.column.id === i)).filter(Boolean).map((i) => ({
|
|
1502
|
+
...i,
|
|
1503
|
+
position: "left"
|
|
1504
|
+
})), C(n.options, "debugRows", "getLeftVisibleCells")), e.getRightVisibleCells = S(() => [e._getAllVisibleCells(), n.getState().columnPinning.right], (t, o) => (o ?? []).map((i) => t.find((l) => l.column.id === i)).filter(Boolean).map((i) => ({
|
|
1505
|
+
...i,
|
|
1506
|
+
position: "right"
|
|
1507
|
+
})), C(n.options, "debugRows", "getRightVisibleCells"));
|
|
1508
|
+
},
|
|
1509
|
+
createTable: (e) => {
|
|
1510
|
+
e.setColumnPinning = (n) => e.options.onColumnPinningChange == null ? void 0 : e.options.onColumnPinningChange(n), e.resetColumnPinning = (n) => {
|
|
1511
|
+
var t, o;
|
|
1512
|
+
return e.setColumnPinning(n ? j() : (t = (o = e.initialState) == null ? void 0 : o.columnPinning) != null ? t : j());
|
|
1513
|
+
}, e.getIsSomeColumnsPinned = (n) => {
|
|
1514
|
+
var t;
|
|
1515
|
+
const o = e.getState().columnPinning;
|
|
1516
|
+
if (!n) {
|
|
1517
|
+
var r, i;
|
|
1518
|
+
return !!((r = o.left) != null && r.length || (i = o.right) != null && i.length);
|
|
1519
|
+
}
|
|
1520
|
+
return !!((t = o[n]) != null && t.length);
|
|
1521
|
+
}, e.getLeftLeafColumns = S(() => [e.getAllLeafColumns(), e.getState().columnPinning.left], (n, t) => (t ?? []).map((o) => n.find((r) => r.id === o)).filter(Boolean), C(e.options, "debugColumns", "getLeftLeafColumns")), e.getRightLeafColumns = S(() => [e.getAllLeafColumns(), e.getState().columnPinning.right], (n, t) => (t ?? []).map((o) => n.find((r) => r.id === o)).filter(Boolean), C(e.options, "debugColumns", "getRightLeafColumns")), e.getCenterLeafColumns = S(() => [e.getAllLeafColumns(), e.getState().columnPinning.left, e.getState().columnPinning.right], (n, t, o) => {
|
|
1522
|
+
const r = [...t ?? [], ...o ?? []];
|
|
1523
|
+
return n.filter((i) => !r.includes(i.id));
|
|
1524
|
+
}, C(e.options, "debugColumns", "getCenterLeafColumns"));
|
|
1525
|
+
}
|
|
1526
|
+
};
|
|
1527
|
+
function It(e) {
|
|
1528
|
+
return e || (typeof document < "u" ? document : null);
|
|
1529
|
+
}
|
|
1530
|
+
const T = {
|
|
1531
|
+
size: 150,
|
|
1532
|
+
minSize: 20,
|
|
1533
|
+
maxSize: Number.MAX_SAFE_INTEGER
|
|
1534
|
+
}, U = () => ({
|
|
1535
|
+
startOffset: null,
|
|
1536
|
+
startSize: null,
|
|
1537
|
+
deltaOffset: null,
|
|
1538
|
+
deltaPercentage: null,
|
|
1539
|
+
isResizingColumn: !1,
|
|
1540
|
+
columnSizingStart: []
|
|
1541
|
+
}), yt = {
|
|
1542
|
+
getDefaultColumnDef: () => T,
|
|
1543
|
+
getInitialState: (e) => ({
|
|
1544
|
+
columnSizing: {},
|
|
1545
|
+
columnSizingInfo: U(),
|
|
1546
|
+
...e
|
|
1547
|
+
}),
|
|
1548
|
+
getDefaultOptions: (e) => ({
|
|
1549
|
+
columnResizeMode: "onEnd",
|
|
1550
|
+
columnResizeDirection: "ltr",
|
|
1551
|
+
onColumnSizingChange: M("columnSizing", e),
|
|
1552
|
+
onColumnSizingInfoChange: M("columnSizingInfo", e)
|
|
1553
|
+
}),
|
|
1554
|
+
createColumn: (e, n) => {
|
|
1555
|
+
e.getSize = () => {
|
|
1556
|
+
var t, o, r;
|
|
1557
|
+
const i = n.getState().columnSizing[e.id];
|
|
1558
|
+
return Math.min(Math.max((t = e.columnDef.minSize) != null ? t : T.minSize, (o = i ?? e.columnDef.size) != null ? o : T.size), (r = e.columnDef.maxSize) != null ? r : T.maxSize);
|
|
1559
|
+
}, e.getStart = S((t) => [t, H(n, t), n.getState().columnSizing], (t, o) => o.slice(0, e.getIndex(t)).reduce((r, i) => r + i.getSize(), 0), C(n.options, "debugColumns", "getStart")), e.getAfter = S((t) => [t, H(n, t), n.getState().columnSizing], (t, o) => o.slice(e.getIndex(t) + 1).reduce((r, i) => r + i.getSize(), 0), C(n.options, "debugColumns", "getAfter")), e.resetSize = () => {
|
|
1560
|
+
n.setColumnSizing((t) => {
|
|
1561
|
+
let {
|
|
1562
|
+
[e.id]: o,
|
|
1563
|
+
...r
|
|
1564
|
+
} = t;
|
|
1565
|
+
return r;
|
|
1566
|
+
});
|
|
1567
|
+
}, e.getCanResize = () => {
|
|
1568
|
+
var t, o;
|
|
1569
|
+
return ((t = e.columnDef.enableResizing) != null ? t : !0) && ((o = n.options.enableColumnResizing) != null ? o : !0);
|
|
1570
|
+
}, e.getIsResizing = () => n.getState().columnSizingInfo.isResizingColumn === e.id;
|
|
1571
|
+
},
|
|
1572
|
+
createHeader: (e, n) => {
|
|
1573
|
+
e.getSize = () => {
|
|
1574
|
+
let t = 0;
|
|
1575
|
+
const o = (r) => {
|
|
1576
|
+
if (r.subHeaders.length)
|
|
1577
|
+
r.subHeaders.forEach(o);
|
|
1578
|
+
else {
|
|
1579
|
+
var i;
|
|
1580
|
+
t += (i = r.column.getSize()) != null ? i : 0;
|
|
1581
|
+
}
|
|
1582
|
+
};
|
|
1583
|
+
return o(e), t;
|
|
1584
|
+
}, e.getStart = () => {
|
|
1585
|
+
if (e.index > 0) {
|
|
1586
|
+
const t = e.headerGroup.headers[e.index - 1];
|
|
1587
|
+
return t.getStart() + t.getSize();
|
|
1588
|
+
}
|
|
1589
|
+
return 0;
|
|
1590
|
+
}, e.getResizeHandler = (t) => {
|
|
1591
|
+
const o = n.getColumn(e.column.id), r = o == null ? void 0 : o.getCanResize();
|
|
1592
|
+
return (i) => {
|
|
1593
|
+
if (!o || !r || (i.persist == null || i.persist(), X(i) && i.touches && i.touches.length > 1))
|
|
1594
|
+
return;
|
|
1595
|
+
const l = e.getSize(), s = e ? e.getLeafHeaders().map((v) => [v.column.id, v.column.getSize()]) : [[o.id, o.getSize()]], a = X(i) ? Math.round(i.touches[0].clientX) : i.clientX, g = {}, f = (v, F) => {
|
|
1596
|
+
typeof F == "number" && (n.setColumnSizingInfo((x) => {
|
|
1597
|
+
var y, A;
|
|
1598
|
+
const b = n.options.columnResizeDirection === "rtl" ? -1 : 1, le = (F - ((y = x == null ? void 0 : x.startOffset) != null ? y : 0)) * b, se = Math.max(le / ((A = x == null ? void 0 : x.startSize) != null ? A : 0), -0.999999);
|
|
1599
|
+
return x.columnSizingStart.forEach((Ve) => {
|
|
1600
|
+
let [Ie, ae] = Ve;
|
|
1601
|
+
g[Ie] = Math.round(Math.max(ae + ae * se, 0) * 100) / 100;
|
|
1602
|
+
}), {
|
|
1603
|
+
...x,
|
|
1604
|
+
deltaOffset: le,
|
|
1605
|
+
deltaPercentage: se
|
|
1606
|
+
};
|
|
1607
|
+
}), (n.options.columnResizeMode === "onChange" || v === "end") && n.setColumnSizing((x) => ({
|
|
1608
|
+
...x,
|
|
1609
|
+
...g
|
|
1610
|
+
})));
|
|
1611
|
+
}, h = (v) => f("move", v), c = (v) => {
|
|
1612
|
+
f("end", v), n.setColumnSizingInfo((F) => ({
|
|
1613
|
+
...F,
|
|
1614
|
+
isResizingColumn: !1,
|
|
1615
|
+
startOffset: null,
|
|
1616
|
+
startSize: null,
|
|
1617
|
+
deltaOffset: null,
|
|
1618
|
+
deltaPercentage: null,
|
|
1619
|
+
columnSizingStart: []
|
|
1620
|
+
}));
|
|
1621
|
+
}, u = It(t), p = {
|
|
1622
|
+
moveHandler: (v) => h(v.clientX),
|
|
1623
|
+
upHandler: (v) => {
|
|
1624
|
+
u == null || u.removeEventListener("mousemove", p.moveHandler), u == null || u.removeEventListener("mouseup", p.upHandler), c(v.clientX);
|
|
1625
|
+
}
|
|
1626
|
+
}, m = {
|
|
1627
|
+
moveHandler: (v) => (v.cancelable && (v.preventDefault(), v.stopPropagation()), h(v.touches[0].clientX), !1),
|
|
1628
|
+
upHandler: (v) => {
|
|
1629
|
+
var F;
|
|
1630
|
+
u == null || u.removeEventListener("touchmove", m.moveHandler), u == null || u.removeEventListener("touchend", m.upHandler), v.cancelable && (v.preventDefault(), v.stopPropagation()), c((F = v.touches[0]) == null ? void 0 : F.clientX);
|
|
1631
|
+
}
|
|
1632
|
+
}, R = Et() ? {
|
|
1633
|
+
passive: !1
|
|
1634
|
+
} : !1;
|
|
1635
|
+
X(i) ? (u == null || u.addEventListener("touchmove", m.moveHandler, R), u == null || u.addEventListener("touchend", m.upHandler, R)) : (u == null || u.addEventListener("mousemove", p.moveHandler, R), u == null || u.addEventListener("mouseup", p.upHandler, R)), n.setColumnSizingInfo((v) => ({
|
|
1636
|
+
...v,
|
|
1637
|
+
startOffset: a,
|
|
1638
|
+
startSize: l,
|
|
1639
|
+
deltaOffset: 0,
|
|
1640
|
+
deltaPercentage: 0,
|
|
1641
|
+
columnSizingStart: s,
|
|
1642
|
+
isResizingColumn: o.id
|
|
1643
|
+
}));
|
|
1644
|
+
};
|
|
1645
|
+
};
|
|
1646
|
+
},
|
|
1647
|
+
createTable: (e) => {
|
|
1648
|
+
e.setColumnSizing = (n) => e.options.onColumnSizingChange == null ? void 0 : e.options.onColumnSizingChange(n), e.setColumnSizingInfo = (n) => e.options.onColumnSizingInfoChange == null ? void 0 : e.options.onColumnSizingInfoChange(n), e.resetColumnSizing = (n) => {
|
|
1649
|
+
var t;
|
|
1650
|
+
e.setColumnSizing(n ? {} : (t = e.initialState.columnSizing) != null ? t : {});
|
|
1651
|
+
}, e.resetHeaderSizeInfo = (n) => {
|
|
1652
|
+
var t;
|
|
1653
|
+
e.setColumnSizingInfo(n ? U() : (t = e.initialState.columnSizingInfo) != null ? t : U());
|
|
1654
|
+
}, e.getTotalSize = () => {
|
|
1655
|
+
var n, t;
|
|
1656
|
+
return (n = (t = e.getHeaderGroups()[0]) == null ? void 0 : t.headers.reduce((o, r) => o + r.getSize(), 0)) != null ? n : 0;
|
|
1657
|
+
}, e.getLeftTotalSize = () => {
|
|
1658
|
+
var n, t;
|
|
1659
|
+
return (n = (t = e.getLeftHeaderGroups()[0]) == null ? void 0 : t.headers.reduce((o, r) => o + r.getSize(), 0)) != null ? n : 0;
|
|
1660
|
+
}, e.getCenterTotalSize = () => {
|
|
1661
|
+
var n, t;
|
|
1662
|
+
return (n = (t = e.getCenterHeaderGroups()[0]) == null ? void 0 : t.headers.reduce((o, r) => o + r.getSize(), 0)) != null ? n : 0;
|
|
1663
|
+
}, e.getRightTotalSize = () => {
|
|
1664
|
+
var n, t;
|
|
1665
|
+
return (n = (t = e.getRightHeaderGroups()[0]) == null ? void 0 : t.headers.reduce((o, r) => o + r.getSize(), 0)) != null ? n : 0;
|
|
1666
|
+
};
|
|
1667
|
+
}
|
|
1668
|
+
};
|
|
1669
|
+
let O = null;
|
|
1670
|
+
function Et() {
|
|
1671
|
+
if (typeof O == "boolean") return O;
|
|
1672
|
+
let e = !1;
|
|
1673
|
+
try {
|
|
1674
|
+
const n = {
|
|
1675
|
+
get passive() {
|
|
1676
|
+
return e = !0, !1;
|
|
1677
|
+
}
|
|
1678
|
+
}, t = () => {
|
|
1679
|
+
};
|
|
1680
|
+
window.addEventListener("test", t, n), window.removeEventListener("test", t);
|
|
1681
|
+
} catch {
|
|
1682
|
+
e = !1;
|
|
1683
|
+
}
|
|
1684
|
+
return O = e, O;
|
|
1685
|
+
}
|
|
1686
|
+
function X(e) {
|
|
1687
|
+
return e.type === "touchstart";
|
|
1688
|
+
}
|
|
1689
|
+
const Dt = {
|
|
1690
|
+
getInitialState: (e) => ({
|
|
1691
|
+
columnVisibility: {},
|
|
1692
|
+
...e
|
|
1693
|
+
}),
|
|
1694
|
+
getDefaultOptions: (e) => ({
|
|
1695
|
+
onColumnVisibilityChange: M("columnVisibility", e)
|
|
1696
|
+
}),
|
|
1697
|
+
createColumn: (e, n) => {
|
|
1698
|
+
e.toggleVisibility = (t) => {
|
|
1699
|
+
e.getCanHide() && n.setColumnVisibility((o) => ({
|
|
1700
|
+
...o,
|
|
1701
|
+
[e.id]: t ?? !e.getIsVisible()
|
|
1702
|
+
}));
|
|
1703
|
+
}, e.getIsVisible = () => {
|
|
1704
|
+
var t, o;
|
|
1705
|
+
const r = e.columns;
|
|
1706
|
+
return (t = r.length ? r.some((i) => i.getIsVisible()) : (o = n.getState().columnVisibility) == null ? void 0 : o[e.id]) != null ? t : !0;
|
|
1707
|
+
}, e.getCanHide = () => {
|
|
1708
|
+
var t, o;
|
|
1709
|
+
return ((t = e.columnDef.enableHiding) != null ? t : !0) && ((o = n.options.enableHiding) != null ? o : !0);
|
|
1710
|
+
}, e.getToggleVisibilityHandler = () => (t) => {
|
|
1711
|
+
e.toggleVisibility == null || e.toggleVisibility(t.target.checked);
|
|
1712
|
+
};
|
|
1713
|
+
},
|
|
1714
|
+
createRow: (e, n) => {
|
|
1715
|
+
e._getAllVisibleCells = S(() => [e.getAllCells(), n.getState().columnVisibility], (t) => t.filter((o) => o.column.getIsVisible()), C(n.options, "debugRows", "_getAllVisibleCells")), e.getVisibleCells = S(() => [e.getLeftVisibleCells(), e.getCenterVisibleCells(), e.getRightVisibleCells()], (t, o, r) => [...t, ...o, ...r], C(n.options, "debugRows", "getVisibleCells"));
|
|
1716
|
+
},
|
|
1717
|
+
createTable: (e) => {
|
|
1718
|
+
const n = (t, o) => S(() => [o(), o().filter((r) => r.getIsVisible()).map((r) => r.id).join("_")], (r) => r.filter((i) => i.getIsVisible == null ? void 0 : i.getIsVisible()), C(e.options, "debugColumns", t));
|
|
1719
|
+
e.getVisibleFlatColumns = n("getVisibleFlatColumns", () => e.getAllFlatColumns()), e.getVisibleLeafColumns = n("getVisibleLeafColumns", () => e.getAllLeafColumns()), e.getLeftVisibleLeafColumns = n("getLeftVisibleLeafColumns", () => e.getLeftLeafColumns()), e.getRightVisibleLeafColumns = n("getRightVisibleLeafColumns", () => e.getRightLeafColumns()), e.getCenterVisibleLeafColumns = n("getCenterVisibleLeafColumns", () => e.getCenterLeafColumns()), e.setColumnVisibility = (t) => e.options.onColumnVisibilityChange == null ? void 0 : e.options.onColumnVisibilityChange(t), e.resetColumnVisibility = (t) => {
|
|
1720
|
+
var o;
|
|
1721
|
+
e.setColumnVisibility(t ? {} : (o = e.initialState.columnVisibility) != null ? o : {});
|
|
1722
|
+
}, e.toggleAllColumnsVisible = (t) => {
|
|
1723
|
+
var o;
|
|
1724
|
+
t = (o = t) != null ? o : !e.getIsAllColumnsVisible(), e.setColumnVisibility(e.getAllLeafColumns().reduce((r, i) => ({
|
|
1725
|
+
...r,
|
|
1726
|
+
[i.id]: t || !(i.getCanHide != null && i.getCanHide())
|
|
1727
|
+
}), {}));
|
|
1728
|
+
}, e.getIsAllColumnsVisible = () => !e.getAllLeafColumns().some((t) => !(t.getIsVisible != null && t.getIsVisible())), e.getIsSomeColumnsVisible = () => e.getAllLeafColumns().some((t) => t.getIsVisible == null ? void 0 : t.getIsVisible()), e.getToggleAllColumnsVisibilityHandler = () => (t) => {
|
|
1729
|
+
var o;
|
|
1730
|
+
e.toggleAllColumnsVisible((o = t.target) == null ? void 0 : o.checked);
|
|
1731
|
+
};
|
|
1732
|
+
}
|
|
1733
|
+
};
|
|
1734
|
+
function H(e, n) {
|
|
1735
|
+
return n ? n === "center" ? e.getCenterVisibleLeafColumns() : n === "left" ? e.getLeftVisibleLeafColumns() : e.getRightVisibleLeafColumns() : e.getVisibleLeafColumns();
|
|
1736
|
+
}
|
|
1737
|
+
const At = {
|
|
1738
|
+
createTable: (e) => {
|
|
1739
|
+
e._getGlobalFacetedRowModel = e.options.getFacetedRowModel && e.options.getFacetedRowModel(e, "__global__"), e.getGlobalFacetedRowModel = () => e.options.manualFiltering || !e._getGlobalFacetedRowModel ? e.getPreFilteredRowModel() : e._getGlobalFacetedRowModel(), e._getGlobalFacetedUniqueValues = e.options.getFacetedUniqueValues && e.options.getFacetedUniqueValues(e, "__global__"), e.getGlobalFacetedUniqueValues = () => e._getGlobalFacetedUniqueValues ? e._getGlobalFacetedUniqueValues() : /* @__PURE__ */ new Map(), e._getGlobalFacetedMinMaxValues = e.options.getFacetedMinMaxValues && e.options.getFacetedMinMaxValues(e, "__global__"), e.getGlobalFacetedMinMaxValues = () => {
|
|
1740
|
+
if (e._getGlobalFacetedMinMaxValues)
|
|
1741
|
+
return e._getGlobalFacetedMinMaxValues();
|
|
1742
|
+
};
|
|
1743
|
+
}
|
|
1744
|
+
}, Gt = {
|
|
1745
|
+
getInitialState: (e) => ({
|
|
1746
|
+
globalFilter: void 0,
|
|
1747
|
+
...e
|
|
1748
|
+
}),
|
|
1749
|
+
getDefaultOptions: (e) => ({
|
|
1750
|
+
onGlobalFilterChange: M("globalFilter", e),
|
|
1751
|
+
globalFilterFn: "auto",
|
|
1752
|
+
getColumnCanGlobalFilter: (n) => {
|
|
1753
|
+
var t;
|
|
1754
|
+
const o = (t = e.getCoreRowModel().flatRows[0]) == null || (t = t._getAllCellsByColumnId()[n.id]) == null ? void 0 : t.getValue();
|
|
1755
|
+
return typeof o == "string" || typeof o == "number";
|
|
1756
|
+
}
|
|
1757
|
+
}),
|
|
1758
|
+
createColumn: (e, n) => {
|
|
1759
|
+
e.getCanGlobalFilter = () => {
|
|
1760
|
+
var t, o, r, i;
|
|
1761
|
+
return ((t = e.columnDef.enableGlobalFilter) != null ? t : !0) && ((o = n.options.enableGlobalFilter) != null ? o : !0) && ((r = n.options.enableFilters) != null ? r : !0) && ((i = n.options.getColumnCanGlobalFilter == null ? void 0 : n.options.getColumnCanGlobalFilter(e)) != null ? i : !0) && !!e.accessorFn;
|
|
1762
|
+
};
|
|
1763
|
+
},
|
|
1764
|
+
createTable: (e) => {
|
|
1765
|
+
e.getGlobalAutoFilterFn = () => V.includesString, e.getGlobalFilterFn = () => {
|
|
1766
|
+
var n, t;
|
|
1767
|
+
const {
|
|
1768
|
+
globalFilterFn: o
|
|
1769
|
+
} = e.options;
|
|
1770
|
+
return B(o) ? o : o === "auto" ? e.getGlobalAutoFilterFn() : (n = (t = e.options.filterFns) == null ? void 0 : t[o]) != null ? n : V[o];
|
|
1771
|
+
}, e.setGlobalFilter = (n) => {
|
|
1772
|
+
e.options.onGlobalFilterChange == null || e.options.onGlobalFilterChange(n);
|
|
1773
|
+
}, e.resetGlobalFilter = (n) => {
|
|
1774
|
+
e.setGlobalFilter(n ? void 0 : e.initialState.globalFilter);
|
|
1775
|
+
};
|
|
1776
|
+
}
|
|
1777
|
+
}, Ht = {
|
|
1778
|
+
getInitialState: (e) => ({
|
|
1779
|
+
expanded: {},
|
|
1780
|
+
...e
|
|
1781
|
+
}),
|
|
1782
|
+
getDefaultOptions: (e) => ({
|
|
1783
|
+
onExpandedChange: M("expanded", e),
|
|
1784
|
+
paginateExpandedRows: !0
|
|
1785
|
+
}),
|
|
1786
|
+
createTable: (e) => {
|
|
1787
|
+
let n = !1, t = !1;
|
|
1788
|
+
e._autoResetExpanded = () => {
|
|
1789
|
+
var o, r;
|
|
1790
|
+
if (!n) {
|
|
1791
|
+
e._queue(() => {
|
|
1792
|
+
n = !0;
|
|
1793
|
+
});
|
|
1794
|
+
return;
|
|
1795
|
+
}
|
|
1796
|
+
if ((o = (r = e.options.autoResetAll) != null ? r : e.options.autoResetExpanded) != null ? o : !e.options.manualExpanding) {
|
|
1797
|
+
if (t) return;
|
|
1798
|
+
t = !0, e._queue(() => {
|
|
1799
|
+
e.resetExpanded(), t = !1;
|
|
1800
|
+
});
|
|
1801
|
+
}
|
|
1802
|
+
}, e.setExpanded = (o) => e.options.onExpandedChange == null ? void 0 : e.options.onExpandedChange(o), e.toggleAllRowsExpanded = (o) => {
|
|
1803
|
+
o ?? !e.getIsAllRowsExpanded() ? e.setExpanded(!0) : e.setExpanded({});
|
|
1804
|
+
}, e.resetExpanded = (o) => {
|
|
1805
|
+
var r, i;
|
|
1806
|
+
e.setExpanded(o ? {} : (r = (i = e.initialState) == null ? void 0 : i.expanded) != null ? r : {});
|
|
1807
|
+
}, e.getCanSomeRowsExpand = () => e.getPrePaginationRowModel().flatRows.some((o) => o.getCanExpand()), e.getToggleAllRowsExpandedHandler = () => (o) => {
|
|
1808
|
+
o.persist == null || o.persist(), e.toggleAllRowsExpanded();
|
|
1809
|
+
}, e.getIsSomeRowsExpanded = () => {
|
|
1810
|
+
const o = e.getState().expanded;
|
|
1811
|
+
return o === !0 || Object.values(o).some(Boolean);
|
|
1812
|
+
}, e.getIsAllRowsExpanded = () => {
|
|
1813
|
+
const o = e.getState().expanded;
|
|
1814
|
+
return typeof o == "boolean" ? o === !0 : !(!Object.keys(o).length || e.getRowModel().flatRows.some((r) => !r.getIsExpanded()));
|
|
1815
|
+
}, e.getExpandedDepth = () => {
|
|
1816
|
+
let o = 0;
|
|
1817
|
+
return (e.getState().expanded === !0 ? Object.keys(e.getRowModel().rowsById) : Object.keys(e.getState().expanded)).forEach((i) => {
|
|
1818
|
+
const l = i.split(".");
|
|
1819
|
+
o = Math.max(o, l.length);
|
|
1820
|
+
}), o;
|
|
1821
|
+
}, e.getPreExpandedRowModel = () => e.getSortedRowModel(), e.getExpandedRowModel = () => (!e._getExpandedRowModel && e.options.getExpandedRowModel && (e._getExpandedRowModel = e.options.getExpandedRowModel(e)), e.options.manualExpanding || !e._getExpandedRowModel ? e.getPreExpandedRowModel() : e._getExpandedRowModel());
|
|
1822
|
+
},
|
|
1823
|
+
createRow: (e, n) => {
|
|
1824
|
+
e.toggleExpanded = (t) => {
|
|
1825
|
+
n.setExpanded((o) => {
|
|
1826
|
+
var r;
|
|
1827
|
+
const i = o === !0 ? !0 : !!(o != null && o[e.id]);
|
|
1828
|
+
let l = {};
|
|
1829
|
+
if (o === !0 ? Object.keys(n.getRowModel().rowsById).forEach((s) => {
|
|
1830
|
+
l[s] = !0;
|
|
1831
|
+
}) : l = o, t = (r = t) != null ? r : !i, !i && t)
|
|
1832
|
+
return {
|
|
1833
|
+
...l,
|
|
1834
|
+
[e.id]: !0
|
|
1835
|
+
};
|
|
1836
|
+
if (i && !t) {
|
|
1837
|
+
const {
|
|
1838
|
+
[e.id]: s,
|
|
1839
|
+
...a
|
|
1840
|
+
} = l;
|
|
1841
|
+
return a;
|
|
1842
|
+
}
|
|
1843
|
+
return o;
|
|
1844
|
+
});
|
|
1845
|
+
}, e.getIsExpanded = () => {
|
|
1846
|
+
var t;
|
|
1847
|
+
const o = n.getState().expanded;
|
|
1848
|
+
return !!((t = n.options.getIsRowExpanded == null ? void 0 : n.options.getIsRowExpanded(e)) != null ? t : o === !0 || o != null && o[e.id]);
|
|
1849
|
+
}, e.getCanExpand = () => {
|
|
1850
|
+
var t, o, r;
|
|
1851
|
+
return (t = n.options.getRowCanExpand == null ? void 0 : n.options.getRowCanExpand(e)) != null ? t : ((o = n.options.enableExpanding) != null ? o : !0) && !!((r = e.subRows) != null && r.length);
|
|
1852
|
+
}, e.getIsAllParentsExpanded = () => {
|
|
1853
|
+
let t = !0, o = e;
|
|
1854
|
+
for (; t && o.parentId; )
|
|
1855
|
+
o = n.getRow(o.parentId, !0), t = o.getIsExpanded();
|
|
1856
|
+
return t;
|
|
1857
|
+
}, e.getToggleExpandedHandler = () => {
|
|
1858
|
+
const t = e.getCanExpand();
|
|
1859
|
+
return () => {
|
|
1860
|
+
t && e.toggleExpanded();
|
|
1861
|
+
};
|
|
1862
|
+
};
|
|
1863
|
+
}
|
|
1864
|
+
}, Y = 0, Q = 10, K = () => ({
|
|
1865
|
+
pageIndex: Y,
|
|
1866
|
+
pageSize: Q
|
|
1867
|
+
}), zt = {
|
|
1868
|
+
getInitialState: (e) => ({
|
|
1869
|
+
...e,
|
|
1870
|
+
pagination: {
|
|
1871
|
+
...K(),
|
|
1872
|
+
...e == null ? void 0 : e.pagination
|
|
1873
|
+
}
|
|
1874
|
+
}),
|
|
1875
|
+
getDefaultOptions: (e) => ({
|
|
1876
|
+
onPaginationChange: M("pagination", e)
|
|
1877
|
+
}),
|
|
1878
|
+
createTable: (e) => {
|
|
1879
|
+
let n = !1, t = !1;
|
|
1880
|
+
e._autoResetPageIndex = () => {
|
|
1881
|
+
var o, r;
|
|
1882
|
+
if (!n) {
|
|
1883
|
+
e._queue(() => {
|
|
1884
|
+
n = !0;
|
|
1885
|
+
});
|
|
1886
|
+
return;
|
|
1887
|
+
}
|
|
1888
|
+
if ((o = (r = e.options.autoResetAll) != null ? r : e.options.autoResetPageIndex) != null ? o : !e.options.manualPagination) {
|
|
1889
|
+
if (t) return;
|
|
1890
|
+
t = !0, e._queue(() => {
|
|
1891
|
+
e.resetPageIndex(), t = !1;
|
|
1892
|
+
});
|
|
1893
|
+
}
|
|
1894
|
+
}, e.setPagination = (o) => {
|
|
1895
|
+
const r = (i) => E(o, i);
|
|
1896
|
+
return e.options.onPaginationChange == null ? void 0 : e.options.onPaginationChange(r);
|
|
1897
|
+
}, e.resetPagination = (o) => {
|
|
1898
|
+
var r;
|
|
1899
|
+
e.setPagination(o ? K() : (r = e.initialState.pagination) != null ? r : K());
|
|
1900
|
+
}, e.setPageIndex = (o) => {
|
|
1901
|
+
e.setPagination((r) => {
|
|
1902
|
+
let i = E(o, r.pageIndex);
|
|
1903
|
+
const l = typeof e.options.pageCount > "u" || e.options.pageCount === -1 ? Number.MAX_SAFE_INTEGER : e.options.pageCount - 1;
|
|
1904
|
+
return i = Math.max(0, Math.min(i, l)), {
|
|
1905
|
+
...r,
|
|
1906
|
+
pageIndex: i
|
|
1907
|
+
};
|
|
1908
|
+
});
|
|
1909
|
+
}, e.resetPageIndex = (o) => {
|
|
1910
|
+
var r, i;
|
|
1911
|
+
e.setPageIndex(o ? Y : (r = (i = e.initialState) == null || (i = i.pagination) == null ? void 0 : i.pageIndex) != null ? r : Y);
|
|
1912
|
+
}, e.resetPageSize = (o) => {
|
|
1913
|
+
var r, i;
|
|
1914
|
+
e.setPageSize(o ? Q : (r = (i = e.initialState) == null || (i = i.pagination) == null ? void 0 : i.pageSize) != null ? r : Q);
|
|
1915
|
+
}, e.setPageSize = (o) => {
|
|
1916
|
+
e.setPagination((r) => {
|
|
1917
|
+
const i = Math.max(1, E(o, r.pageSize)), l = r.pageSize * r.pageIndex, s = Math.floor(l / i);
|
|
1918
|
+
return {
|
|
1919
|
+
...r,
|
|
1920
|
+
pageIndex: s,
|
|
1921
|
+
pageSize: i
|
|
1922
|
+
};
|
|
1923
|
+
});
|
|
1924
|
+
}, e.setPageCount = (o) => e.setPagination((r) => {
|
|
1925
|
+
var i;
|
|
1926
|
+
let l = E(o, (i = e.options.pageCount) != null ? i : -1);
|
|
1927
|
+
return typeof l == "number" && (l = Math.max(-1, l)), {
|
|
1928
|
+
...r,
|
|
1929
|
+
pageCount: l
|
|
1930
|
+
};
|
|
1931
|
+
}), e.getPageOptions = S(() => [e.getPageCount()], (o) => {
|
|
1932
|
+
let r = [];
|
|
1933
|
+
return o && o > 0 && (r = [...new Array(o)].fill(null).map((i, l) => l)), r;
|
|
1934
|
+
}, C(e.options, "debugTable", "getPageOptions")), e.getCanPreviousPage = () => e.getState().pagination.pageIndex > 0, e.getCanNextPage = () => {
|
|
1935
|
+
const {
|
|
1936
|
+
pageIndex: o
|
|
1937
|
+
} = e.getState().pagination, r = e.getPageCount();
|
|
1938
|
+
return r === -1 ? !0 : r === 0 ? !1 : o < r - 1;
|
|
1939
|
+
}, e.previousPage = () => e.setPageIndex((o) => o - 1), e.nextPage = () => e.setPageIndex((o) => o + 1), e.firstPage = () => e.setPageIndex(0), e.lastPage = () => e.setPageIndex(e.getPageCount() - 1), e.getPrePaginationRowModel = () => e.getExpandedRowModel(), e.getPaginationRowModel = () => (!e._getPaginationRowModel && e.options.getPaginationRowModel && (e._getPaginationRowModel = e.options.getPaginationRowModel(e)), e.options.manualPagination || !e._getPaginationRowModel ? e.getPrePaginationRowModel() : e._getPaginationRowModel()), e.getPageCount = () => {
|
|
1940
|
+
var o;
|
|
1941
|
+
return (o = e.options.pageCount) != null ? o : Math.ceil(e.getRowCount() / e.getState().pagination.pageSize);
|
|
1942
|
+
}, e.getRowCount = () => {
|
|
1943
|
+
var o;
|
|
1944
|
+
return (o = e.options.rowCount) != null ? o : e.getPrePaginationRowModel().rows.length;
|
|
1945
|
+
};
|
|
1946
|
+
}
|
|
1947
|
+
}, W = () => ({
|
|
1948
|
+
top: [],
|
|
1949
|
+
bottom: []
|
|
1950
|
+
}), Lt = {
|
|
1951
|
+
getInitialState: (e) => ({
|
|
1952
|
+
rowPinning: W(),
|
|
1953
|
+
...e
|
|
1954
|
+
}),
|
|
1955
|
+
getDefaultOptions: (e) => ({
|
|
1956
|
+
onRowPinningChange: M("rowPinning", e)
|
|
1957
|
+
}),
|
|
1958
|
+
createRow: (e, n) => {
|
|
1959
|
+
e.pin = (t, o, r) => {
|
|
1960
|
+
const i = o ? e.getLeafRows().map((a) => {
|
|
1961
|
+
let {
|
|
1962
|
+
id: g
|
|
1963
|
+
} = a;
|
|
1964
|
+
return g;
|
|
1965
|
+
}) : [], l = r ? e.getParentRows().map((a) => {
|
|
1966
|
+
let {
|
|
1967
|
+
id: g
|
|
1968
|
+
} = a;
|
|
1969
|
+
return g;
|
|
1970
|
+
}) : [], s = /* @__PURE__ */ new Set([...l, e.id, ...i]);
|
|
1971
|
+
n.setRowPinning((a) => {
|
|
1972
|
+
var g, f;
|
|
1973
|
+
if (t === "bottom") {
|
|
1974
|
+
var h, c;
|
|
1975
|
+
return {
|
|
1976
|
+
top: ((h = a == null ? void 0 : a.top) != null ? h : []).filter((m) => !(s != null && s.has(m))),
|
|
1977
|
+
bottom: [...((c = a == null ? void 0 : a.bottom) != null ? c : []).filter((m) => !(s != null && s.has(m))), ...Array.from(s)]
|
|
1978
|
+
};
|
|
1979
|
+
}
|
|
1980
|
+
if (t === "top") {
|
|
1981
|
+
var u, p;
|
|
1982
|
+
return {
|
|
1983
|
+
top: [...((u = a == null ? void 0 : a.top) != null ? u : []).filter((m) => !(s != null && s.has(m))), ...Array.from(s)],
|
|
1984
|
+
bottom: ((p = a == null ? void 0 : a.bottom) != null ? p : []).filter((m) => !(s != null && s.has(m)))
|
|
1985
|
+
};
|
|
1986
|
+
}
|
|
1987
|
+
return {
|
|
1988
|
+
top: ((g = a == null ? void 0 : a.top) != null ? g : []).filter((m) => !(s != null && s.has(m))),
|
|
1989
|
+
bottom: ((f = a == null ? void 0 : a.bottom) != null ? f : []).filter((m) => !(s != null && s.has(m)))
|
|
1990
|
+
};
|
|
1991
|
+
});
|
|
1992
|
+
}, e.getCanPin = () => {
|
|
1993
|
+
var t;
|
|
1994
|
+
const {
|
|
1995
|
+
enableRowPinning: o,
|
|
1996
|
+
enablePinning: r
|
|
1997
|
+
} = n.options;
|
|
1998
|
+
return typeof o == "function" ? o(e) : (t = o ?? r) != null ? t : !0;
|
|
1999
|
+
}, e.getIsPinned = () => {
|
|
2000
|
+
const t = [e.id], {
|
|
2001
|
+
top: o,
|
|
2002
|
+
bottom: r
|
|
2003
|
+
} = n.getState().rowPinning, i = t.some((s) => o == null ? void 0 : o.includes(s)), l = t.some((s) => r == null ? void 0 : r.includes(s));
|
|
2004
|
+
return i ? "top" : l ? "bottom" : !1;
|
|
2005
|
+
}, e.getPinnedIndex = () => {
|
|
2006
|
+
var t, o;
|
|
2007
|
+
const r = e.getIsPinned();
|
|
2008
|
+
if (!r) return -1;
|
|
2009
|
+
const i = (t = r === "top" ? n.getTopRows() : n.getBottomRows()) == null ? void 0 : t.map((l) => {
|
|
2010
|
+
let {
|
|
2011
|
+
id: s
|
|
2012
|
+
} = l;
|
|
2013
|
+
return s;
|
|
2014
|
+
});
|
|
2015
|
+
return (o = i == null ? void 0 : i.indexOf(e.id)) != null ? o : -1;
|
|
2016
|
+
};
|
|
2017
|
+
},
|
|
2018
|
+
createTable: (e) => {
|
|
2019
|
+
e.setRowPinning = (n) => e.options.onRowPinningChange == null ? void 0 : e.options.onRowPinningChange(n), e.resetRowPinning = (n) => {
|
|
2020
|
+
var t, o;
|
|
2021
|
+
return e.setRowPinning(n ? W() : (t = (o = e.initialState) == null ? void 0 : o.rowPinning) != null ? t : W());
|
|
2022
|
+
}, e.getIsSomeRowsPinned = (n) => {
|
|
2023
|
+
var t;
|
|
2024
|
+
const o = e.getState().rowPinning;
|
|
2025
|
+
if (!n) {
|
|
2026
|
+
var r, i;
|
|
2027
|
+
return !!((r = o.top) != null && r.length || (i = o.bottom) != null && i.length);
|
|
2028
|
+
}
|
|
2029
|
+
return !!((t = o[n]) != null && t.length);
|
|
2030
|
+
}, e._getPinnedRows = (n, t, o) => {
|
|
2031
|
+
var r;
|
|
2032
|
+
return ((r = e.options.keepPinnedRows) == null || r ? (
|
|
2033
|
+
//get all rows that are pinned even if they would not be otherwise visible
|
|
2034
|
+
//account for expanded parent rows, but not pagination or filtering
|
|
2035
|
+
(t ?? []).map((l) => {
|
|
2036
|
+
const s = e.getRow(l, !0);
|
|
2037
|
+
return s.getIsAllParentsExpanded() ? s : null;
|
|
2038
|
+
})
|
|
2039
|
+
) : (
|
|
2040
|
+
//else get only visible rows that are pinned
|
|
2041
|
+
(t ?? []).map((l) => n.find((s) => s.id === l))
|
|
2042
|
+
)).filter(Boolean).map((l) => ({
|
|
2043
|
+
...l,
|
|
2044
|
+
position: o
|
|
2045
|
+
}));
|
|
2046
|
+
}, e.getTopRows = S(() => [e.getRowModel().rows, e.getState().rowPinning.top], (n, t) => e._getPinnedRows(n, t, "top"), C(e.options, "debugRows", "getTopRows")), e.getBottomRows = S(() => [e.getRowModel().rows, e.getState().rowPinning.bottom], (n, t) => e._getPinnedRows(n, t, "bottom"), C(e.options, "debugRows", "getBottomRows")), e.getCenterRows = S(() => [e.getRowModel().rows, e.getState().rowPinning.top, e.getState().rowPinning.bottom], (n, t, o) => {
|
|
2047
|
+
const r = /* @__PURE__ */ new Set([...t ?? [], ...o ?? []]);
|
|
2048
|
+
return n.filter((i) => !r.has(i.id));
|
|
2049
|
+
}, C(e.options, "debugRows", "getCenterRows"));
|
|
2050
|
+
}
|
|
2051
|
+
}, Nt = {
|
|
2052
|
+
getInitialState: (e) => ({
|
|
2053
|
+
rowSelection: {},
|
|
2054
|
+
...e
|
|
2055
|
+
}),
|
|
2056
|
+
getDefaultOptions: (e) => ({
|
|
2057
|
+
onRowSelectionChange: M("rowSelection", e),
|
|
2058
|
+
enableRowSelection: !0,
|
|
2059
|
+
enableMultiRowSelection: !0,
|
|
2060
|
+
enableSubRowSelection: !0
|
|
2061
|
+
// enableGroupingRowSelection: false,
|
|
2062
|
+
// isAdditiveSelectEvent: (e: unknown) => !!e.metaKey,
|
|
2063
|
+
// isInclusiveSelectEvent: (e: unknown) => !!e.shiftKey,
|
|
2064
|
+
}),
|
|
2065
|
+
createTable: (e) => {
|
|
2066
|
+
e.setRowSelection = (n) => e.options.onRowSelectionChange == null ? void 0 : e.options.onRowSelectionChange(n), e.resetRowSelection = (n) => {
|
|
2067
|
+
var t;
|
|
2068
|
+
return e.setRowSelection(n ? {} : (t = e.initialState.rowSelection) != null ? t : {});
|
|
2069
|
+
}, e.toggleAllRowsSelected = (n) => {
|
|
2070
|
+
e.setRowSelection((t) => {
|
|
2071
|
+
n = typeof n < "u" ? n : !e.getIsAllRowsSelected();
|
|
2072
|
+
const o = {
|
|
2073
|
+
...t
|
|
2074
|
+
}, r = e.getPreGroupedRowModel().flatRows;
|
|
2075
|
+
return n ? r.forEach((i) => {
|
|
2076
|
+
i.getCanSelect() && (o[i.id] = !0);
|
|
2077
|
+
}) : r.forEach((i) => {
|
|
2078
|
+
delete o[i.id];
|
|
2079
|
+
}), o;
|
|
2080
|
+
});
|
|
2081
|
+
}, e.toggleAllPageRowsSelected = (n) => e.setRowSelection((t) => {
|
|
2082
|
+
const o = typeof n < "u" ? n : !e.getIsAllPageRowsSelected(), r = {
|
|
2083
|
+
...t
|
|
2084
|
+
};
|
|
2085
|
+
return e.getRowModel().rows.forEach((i) => {
|
|
2086
|
+
ee(r, i.id, o, !0, e);
|
|
2087
|
+
}), r;
|
|
2088
|
+
}), e.getPreSelectedRowModel = () => e.getCoreRowModel(), e.getSelectedRowModel = S(() => [e.getState().rowSelection, e.getCoreRowModel()], (n, t) => Object.keys(n).length ? Z(e, t) : {
|
|
2089
|
+
rows: [],
|
|
2090
|
+
flatRows: [],
|
|
2091
|
+
rowsById: {}
|
|
2092
|
+
}, C(e.options, "debugTable", "getSelectedRowModel")), e.getFilteredSelectedRowModel = S(() => [e.getState().rowSelection, e.getFilteredRowModel()], (n, t) => Object.keys(n).length ? Z(e, t) : {
|
|
2093
|
+
rows: [],
|
|
2094
|
+
flatRows: [],
|
|
2095
|
+
rowsById: {}
|
|
2096
|
+
}, C(e.options, "debugTable", "getFilteredSelectedRowModel")), e.getGroupedSelectedRowModel = S(() => [e.getState().rowSelection, e.getSortedRowModel()], (n, t) => Object.keys(n).length ? Z(e, t) : {
|
|
2097
|
+
rows: [],
|
|
2098
|
+
flatRows: [],
|
|
2099
|
+
rowsById: {}
|
|
2100
|
+
}, C(e.options, "debugTable", "getGroupedSelectedRowModel")), e.getIsAllRowsSelected = () => {
|
|
2101
|
+
const n = e.getFilteredRowModel().flatRows, {
|
|
2102
|
+
rowSelection: t
|
|
2103
|
+
} = e.getState();
|
|
2104
|
+
let o = !!(n.length && Object.keys(t).length);
|
|
2105
|
+
return o && n.some((r) => r.getCanSelect() && !t[r.id]) && (o = !1), o;
|
|
2106
|
+
}, e.getIsAllPageRowsSelected = () => {
|
|
2107
|
+
const n = e.getPaginationRowModel().flatRows.filter((r) => r.getCanSelect()), {
|
|
2108
|
+
rowSelection: t
|
|
2109
|
+
} = e.getState();
|
|
2110
|
+
let o = !!n.length;
|
|
2111
|
+
return o && n.some((r) => !t[r.id]) && (o = !1), o;
|
|
2112
|
+
}, e.getIsSomeRowsSelected = () => {
|
|
2113
|
+
var n;
|
|
2114
|
+
const t = Object.keys((n = e.getState().rowSelection) != null ? n : {}).length;
|
|
2115
|
+
return t > 0 && t < e.getFilteredRowModel().flatRows.length;
|
|
2116
|
+
}, e.getIsSomePageRowsSelected = () => {
|
|
2117
|
+
const n = e.getPaginationRowModel().flatRows;
|
|
2118
|
+
return e.getIsAllPageRowsSelected() ? !1 : n.filter((t) => t.getCanSelect()).some((t) => t.getIsSelected() || t.getIsSomeSelected());
|
|
2119
|
+
}, e.getToggleAllRowsSelectedHandler = () => (n) => {
|
|
2120
|
+
e.toggleAllRowsSelected(n.target.checked);
|
|
2121
|
+
}, e.getToggleAllPageRowsSelectedHandler = () => (n) => {
|
|
2122
|
+
e.toggleAllPageRowsSelected(n.target.checked);
|
|
2123
|
+
};
|
|
2124
|
+
},
|
|
2125
|
+
createRow: (e, n) => {
|
|
2126
|
+
e.toggleSelected = (t, o) => {
|
|
2127
|
+
const r = e.getIsSelected();
|
|
2128
|
+
n.setRowSelection((i) => {
|
|
2129
|
+
var l;
|
|
2130
|
+
if (t = typeof t < "u" ? t : !r, e.getCanSelect() && r === t)
|
|
2131
|
+
return i;
|
|
2132
|
+
const s = {
|
|
2133
|
+
...i
|
|
2134
|
+
};
|
|
2135
|
+
return ee(s, e.id, t, (l = o == null ? void 0 : o.selectChildren) != null ? l : !0, n), s;
|
|
2136
|
+
});
|
|
2137
|
+
}, e.getIsSelected = () => {
|
|
2138
|
+
const {
|
|
2139
|
+
rowSelection: t
|
|
2140
|
+
} = n.getState();
|
|
2141
|
+
return re(e, t);
|
|
2142
|
+
}, e.getIsSomeSelected = () => {
|
|
2143
|
+
const {
|
|
2144
|
+
rowSelection: t
|
|
2145
|
+
} = n.getState();
|
|
2146
|
+
return te(e, t) === "some";
|
|
2147
|
+
}, e.getIsAllSubRowsSelected = () => {
|
|
2148
|
+
const {
|
|
2149
|
+
rowSelection: t
|
|
2150
|
+
} = n.getState();
|
|
2151
|
+
return te(e, t) === "all";
|
|
2152
|
+
}, e.getCanSelect = () => {
|
|
2153
|
+
var t;
|
|
2154
|
+
return typeof n.options.enableRowSelection == "function" ? n.options.enableRowSelection(e) : (t = n.options.enableRowSelection) != null ? t : !0;
|
|
2155
|
+
}, e.getCanSelectSubRows = () => {
|
|
2156
|
+
var t;
|
|
2157
|
+
return typeof n.options.enableSubRowSelection == "function" ? n.options.enableSubRowSelection(e) : (t = n.options.enableSubRowSelection) != null ? t : !0;
|
|
2158
|
+
}, e.getCanMultiSelect = () => {
|
|
2159
|
+
var t;
|
|
2160
|
+
return typeof n.options.enableMultiRowSelection == "function" ? n.options.enableMultiRowSelection(e) : (t = n.options.enableMultiRowSelection) != null ? t : !0;
|
|
2161
|
+
}, e.getToggleSelectedHandler = () => {
|
|
2162
|
+
const t = e.getCanSelect();
|
|
2163
|
+
return (o) => {
|
|
2164
|
+
var r;
|
|
2165
|
+
t && e.toggleSelected((r = o.target) == null ? void 0 : r.checked);
|
|
2166
|
+
};
|
|
2167
|
+
};
|
|
2168
|
+
}
|
|
2169
|
+
}, ee = (e, n, t, o, r) => {
|
|
2170
|
+
var i;
|
|
2171
|
+
const l = r.getRow(n, !0);
|
|
2172
|
+
t ? (l.getCanMultiSelect() || Object.keys(e).forEach((s) => delete e[s]), l.getCanSelect() && (e[n] = !0)) : delete e[n], o && (i = l.subRows) != null && i.length && l.getCanSelectSubRows() && l.subRows.forEach((s) => ee(e, s.id, t, o, r));
|
|
2173
|
+
};
|
|
2174
|
+
function Z(e, n) {
|
|
2175
|
+
const t = e.getState().rowSelection, o = [], r = {}, i = function(l, s) {
|
|
2176
|
+
return l.map((a) => {
|
|
2177
|
+
var g;
|
|
2178
|
+
const f = re(a, t);
|
|
2179
|
+
if (f && (o.push(a), r[a.id] = a), (g = a.subRows) != null && g.length && (a = {
|
|
2180
|
+
...a,
|
|
2181
|
+
subRows: i(a.subRows)
|
|
2182
|
+
}), f)
|
|
2183
|
+
return a;
|
|
2184
|
+
}).filter(Boolean);
|
|
2185
|
+
};
|
|
2186
|
+
return {
|
|
2187
|
+
rows: i(n.rows),
|
|
2188
|
+
flatRows: o,
|
|
2189
|
+
rowsById: r
|
|
2190
|
+
};
|
|
2191
|
+
}
|
|
2192
|
+
function re(e, n) {
|
|
2193
|
+
var t;
|
|
2194
|
+
return (t = n[e.id]) != null ? t : !1;
|
|
2195
|
+
}
|
|
2196
|
+
function te(e, n, t) {
|
|
2197
|
+
var o;
|
|
2198
|
+
if (!((o = e.subRows) != null && o.length)) return !1;
|
|
2199
|
+
let r = !0, i = !1;
|
|
2200
|
+
return e.subRows.forEach((l) => {
|
|
2201
|
+
if (!(i && !r) && (l.getCanSelect() && (re(l, n) ? i = !0 : r = !1), l.subRows && l.subRows.length)) {
|
|
2202
|
+
const s = te(l, n);
|
|
2203
|
+
s === "all" ? i = !0 : (s === "some" && (i = !0), r = !1);
|
|
2204
|
+
}
|
|
2205
|
+
}), r ? "all" : i ? "some" : !1;
|
|
2206
|
+
}
|
|
2207
|
+
const ne = /([0-9]+)/gm, Tt = (e, n, t) => Pe(D(e.getValue(t)).toLowerCase(), D(n.getValue(t)).toLowerCase()), Ot = (e, n, t) => Pe(D(e.getValue(t)), D(n.getValue(t))), Bt = (e, n, t) => ie(D(e.getValue(t)).toLowerCase(), D(n.getValue(t)).toLowerCase()), bt = (e, n, t) => ie(D(e.getValue(t)), D(n.getValue(t))), kt = (e, n, t) => {
|
|
2208
|
+
const o = e.getValue(t), r = n.getValue(t);
|
|
2209
|
+
return o > r ? 1 : o < r ? -1 : 0;
|
|
2210
|
+
}, qt = (e, n, t) => ie(e.getValue(t), n.getValue(t));
|
|
2211
|
+
function ie(e, n) {
|
|
2212
|
+
return e === n ? 0 : e > n ? 1 : -1;
|
|
2213
|
+
}
|
|
2214
|
+
function D(e) {
|
|
2215
|
+
return typeof e == "number" ? isNaN(e) || e === 1 / 0 || e === -1 / 0 ? "" : String(e) : typeof e == "string" ? e : "";
|
|
2216
|
+
}
|
|
2217
|
+
function Pe(e, n) {
|
|
2218
|
+
const t = e.split(ne).filter(Boolean), o = n.split(ne).filter(Boolean);
|
|
2219
|
+
for (; t.length && o.length; ) {
|
|
2220
|
+
const r = t.shift(), i = o.shift(), l = parseInt(r, 10), s = parseInt(i, 10), a = [l, s].sort();
|
|
2221
|
+
if (isNaN(a[0])) {
|
|
2222
|
+
if (r > i)
|
|
2223
|
+
return 1;
|
|
2224
|
+
if (i > r)
|
|
2225
|
+
return -1;
|
|
2226
|
+
continue;
|
|
2227
|
+
}
|
|
2228
|
+
if (isNaN(a[1]))
|
|
2229
|
+
return isNaN(l) ? -1 : 1;
|
|
2230
|
+
if (l > s)
|
|
2231
|
+
return 1;
|
|
2232
|
+
if (s > l)
|
|
2233
|
+
return -1;
|
|
2234
|
+
}
|
|
2235
|
+
return t.length - o.length;
|
|
2236
|
+
}
|
|
2237
|
+
const G = {
|
|
2238
|
+
alphanumeric: Tt,
|
|
2239
|
+
alphanumericCaseSensitive: Ot,
|
|
2240
|
+
text: Bt,
|
|
2241
|
+
textCaseSensitive: bt,
|
|
2242
|
+
datetime: kt,
|
|
2243
|
+
basic: qt
|
|
2244
|
+
}, jt = {
|
|
2245
|
+
getInitialState: (e) => ({
|
|
2246
|
+
sorting: [],
|
|
2247
|
+
...e
|
|
2248
|
+
}),
|
|
2249
|
+
getDefaultColumnDef: () => ({
|
|
2250
|
+
sortingFn: "auto",
|
|
2251
|
+
sortUndefined: 1
|
|
2252
|
+
}),
|
|
2253
|
+
getDefaultOptions: (e) => ({
|
|
2254
|
+
onSortingChange: M("sorting", e),
|
|
2255
|
+
isMultiSortEvent: (n) => n.shiftKey
|
|
2256
|
+
}),
|
|
2257
|
+
createColumn: (e, n) => {
|
|
2258
|
+
e.getAutoSortingFn = () => {
|
|
2259
|
+
const t = n.getFilteredRowModel().flatRows.slice(10);
|
|
2260
|
+
let o = !1;
|
|
2261
|
+
for (const r of t) {
|
|
2262
|
+
const i = r == null ? void 0 : r.getValue(e.id);
|
|
2263
|
+
if (Object.prototype.toString.call(i) === "[object Date]")
|
|
2264
|
+
return G.datetime;
|
|
2265
|
+
if (typeof i == "string" && (o = !0, i.split(ne).length > 1))
|
|
2266
|
+
return G.alphanumeric;
|
|
2267
|
+
}
|
|
2268
|
+
return o ? G.text : G.basic;
|
|
2269
|
+
}, e.getAutoSortDir = () => {
|
|
2270
|
+
const t = n.getFilteredRowModel().flatRows[0];
|
|
2271
|
+
return typeof (t == null ? void 0 : t.getValue(e.id)) == "string" ? "asc" : "desc";
|
|
2272
|
+
}, e.getSortingFn = () => {
|
|
2273
|
+
var t, o;
|
|
2274
|
+
if (!e)
|
|
2275
|
+
throw new Error();
|
|
2276
|
+
return B(e.columnDef.sortingFn) ? e.columnDef.sortingFn : e.columnDef.sortingFn === "auto" ? e.getAutoSortingFn() : (t = (o = n.options.sortingFns) == null ? void 0 : o[e.columnDef.sortingFn]) != null ? t : G[e.columnDef.sortingFn];
|
|
2277
|
+
}, e.toggleSorting = (t, o) => {
|
|
2278
|
+
const r = e.getNextSortingOrder(), i = typeof t < "u" && t !== null;
|
|
2279
|
+
n.setSorting((l) => {
|
|
2280
|
+
const s = l == null ? void 0 : l.find((u) => u.id === e.id), a = l == null ? void 0 : l.findIndex((u) => u.id === e.id);
|
|
2281
|
+
let g = [], f, h = i ? t : r === "desc";
|
|
2282
|
+
if (l != null && l.length && e.getCanMultiSort() && o ? s ? f = "toggle" : f = "add" : l != null && l.length && a !== l.length - 1 ? f = "replace" : s ? f = "toggle" : f = "replace", f === "toggle" && (i || r || (f = "remove")), f === "add") {
|
|
2283
|
+
var c;
|
|
2284
|
+
g = [...l, {
|
|
2285
|
+
id: e.id,
|
|
2286
|
+
desc: h
|
|
2287
|
+
}], g.splice(0, g.length - ((c = n.options.maxMultiSortColCount) != null ? c : Number.MAX_SAFE_INTEGER));
|
|
2288
|
+
} else f === "toggle" ? g = l.map((u) => u.id === e.id ? {
|
|
2289
|
+
...u,
|
|
2290
|
+
desc: h
|
|
2291
|
+
} : u) : f === "remove" ? g = l.filter((u) => u.id !== e.id) : g = [{
|
|
2292
|
+
id: e.id,
|
|
2293
|
+
desc: h
|
|
2294
|
+
}];
|
|
2295
|
+
return g;
|
|
2296
|
+
});
|
|
2297
|
+
}, e.getFirstSortDir = () => {
|
|
2298
|
+
var t, o;
|
|
2299
|
+
return ((t = (o = e.columnDef.sortDescFirst) != null ? o : n.options.sortDescFirst) != null ? t : e.getAutoSortDir() === "desc") ? "desc" : "asc";
|
|
2300
|
+
}, e.getNextSortingOrder = (t) => {
|
|
2301
|
+
var o, r;
|
|
2302
|
+
const i = e.getFirstSortDir(), l = e.getIsSorted();
|
|
2303
|
+
return l ? l !== i && ((o = n.options.enableSortingRemoval) == null || o) && // If enableSortRemove, enable in general
|
|
2304
|
+
(!(t && (r = n.options.enableMultiRemove) != null) || r) ? !1 : l === "desc" ? "asc" : "desc" : i;
|
|
2305
|
+
}, e.getCanSort = () => {
|
|
2306
|
+
var t, o;
|
|
2307
|
+
return ((t = e.columnDef.enableSorting) != null ? t : !0) && ((o = n.options.enableSorting) != null ? o : !0) && !!e.accessorFn;
|
|
2308
|
+
}, e.getCanMultiSort = () => {
|
|
2309
|
+
var t, o;
|
|
2310
|
+
return (t = (o = e.columnDef.enableMultiSort) != null ? o : n.options.enableMultiSort) != null ? t : !!e.accessorFn;
|
|
2311
|
+
}, e.getIsSorted = () => {
|
|
2312
|
+
var t;
|
|
2313
|
+
const o = (t = n.getState().sorting) == null ? void 0 : t.find((r) => r.id === e.id);
|
|
2314
|
+
return o ? o.desc ? "desc" : "asc" : !1;
|
|
2315
|
+
}, e.getSortIndex = () => {
|
|
2316
|
+
var t, o;
|
|
2317
|
+
return (t = (o = n.getState().sorting) == null ? void 0 : o.findIndex((r) => r.id === e.id)) != null ? t : -1;
|
|
2318
|
+
}, e.clearSorting = () => {
|
|
2319
|
+
n.setSorting((t) => t != null && t.length ? t.filter((o) => o.id !== e.id) : []);
|
|
2320
|
+
}, e.getToggleSortingHandler = () => {
|
|
2321
|
+
const t = e.getCanSort();
|
|
2322
|
+
return (o) => {
|
|
2323
|
+
t && (o.persist == null || o.persist(), e.toggleSorting == null || e.toggleSorting(void 0, e.getCanMultiSort() ? n.options.isMultiSortEvent == null ? void 0 : n.options.isMultiSortEvent(o) : !1));
|
|
2324
|
+
};
|
|
2325
|
+
};
|
|
2326
|
+
},
|
|
2327
|
+
createTable: (e) => {
|
|
2328
|
+
e.setSorting = (n) => e.options.onSortingChange == null ? void 0 : e.options.onSortingChange(n), e.resetSorting = (n) => {
|
|
2329
|
+
var t, o;
|
|
2330
|
+
e.setSorting(n ? [] : (t = (o = e.initialState) == null ? void 0 : o.sorting) != null ? t : []);
|
|
2331
|
+
}, e.getPreSortedRowModel = () => e.getGroupedRowModel(), e.getSortedRowModel = () => (!e._getSortedRowModel && e.options.getSortedRowModel && (e._getSortedRowModel = e.options.getSortedRowModel(e)), e.options.manualSorting || !e._getSortedRowModel ? e.getPreSortedRowModel() : e._getSortedRowModel());
|
|
2332
|
+
}
|
|
2333
|
+
}, Ut = [
|
|
2334
|
+
ct,
|
|
2335
|
+
Dt,
|
|
2336
|
+
Pt,
|
|
2337
|
+
Vt,
|
|
2338
|
+
pt,
|
|
2339
|
+
mt,
|
|
2340
|
+
At,
|
|
2341
|
+
//depends on ColumnFaceting
|
|
2342
|
+
Gt,
|
|
2343
|
+
//depends on ColumnFiltering
|
|
2344
|
+
jt,
|
|
2345
|
+
$t,
|
|
2346
|
+
//depends on RowSorting
|
|
2347
|
+
Ht,
|
|
2348
|
+
zt,
|
|
2349
|
+
Lt,
|
|
2350
|
+
Nt,
|
|
2351
|
+
yt
|
|
2352
|
+
];
|
|
2353
|
+
function Xt(e) {
|
|
2354
|
+
var n, t;
|
|
2355
|
+
process.env.NODE_ENV !== "production" && (e.debugAll || e.debugTable) && console.info("Creating Table Instance...");
|
|
2356
|
+
const o = [...Ut, ...(n = e._features) != null ? n : []];
|
|
2357
|
+
let r = {
|
|
2358
|
+
_features: o
|
|
2359
|
+
};
|
|
2360
|
+
const i = r._features.reduce((c, u) => Object.assign(c, u.getDefaultOptions == null ? void 0 : u.getDefaultOptions(r)), {}), l = (c) => r.options.mergeOptions ? r.options.mergeOptions(i, c) : {
|
|
2361
|
+
...i,
|
|
2362
|
+
...c
|
|
2363
|
+
};
|
|
2364
|
+
let a = {
|
|
2365
|
+
...{},
|
|
2366
|
+
...(t = e.initialState) != null ? t : {}
|
|
2367
|
+
};
|
|
2368
|
+
r._features.forEach((c) => {
|
|
2369
|
+
var u;
|
|
2370
|
+
a = (u = c.getInitialState == null ? void 0 : c.getInitialState(a)) != null ? u : a;
|
|
2371
|
+
});
|
|
2372
|
+
const g = [];
|
|
2373
|
+
let f = !1;
|
|
2374
|
+
const h = {
|
|
2375
|
+
_features: o,
|
|
2376
|
+
options: {
|
|
2377
|
+
...i,
|
|
2378
|
+
...e
|
|
2379
|
+
},
|
|
2380
|
+
initialState: a,
|
|
2381
|
+
_queue: (c) => {
|
|
2382
|
+
g.push(c), f || (f = !0, Promise.resolve().then(() => {
|
|
2383
|
+
for (; g.length; )
|
|
2384
|
+
g.shift()();
|
|
2385
|
+
f = !1;
|
|
2386
|
+
}).catch((u) => setTimeout(() => {
|
|
2387
|
+
throw u;
|
|
2388
|
+
})));
|
|
2389
|
+
},
|
|
2390
|
+
reset: () => {
|
|
2391
|
+
r.setState(r.initialState);
|
|
2392
|
+
},
|
|
2393
|
+
setOptions: (c) => {
|
|
2394
|
+
const u = E(c, r.options);
|
|
2395
|
+
r.options = l(u);
|
|
2396
|
+
},
|
|
2397
|
+
getState: () => r.options.state,
|
|
2398
|
+
setState: (c) => {
|
|
2399
|
+
r.options.onStateChange == null || r.options.onStateChange(c);
|
|
2400
|
+
},
|
|
2401
|
+
_getRowId: (c, u, p) => {
|
|
2402
|
+
var m;
|
|
2403
|
+
return (m = r.options.getRowId == null ? void 0 : r.options.getRowId(c, u, p)) != null ? m : `${p ? [p.id, u].join(".") : u}`;
|
|
2404
|
+
},
|
|
2405
|
+
getCoreRowModel: () => (r._getCoreRowModel || (r._getCoreRowModel = r.options.getCoreRowModel(r)), r._getCoreRowModel()),
|
|
2406
|
+
// The final calls start at the bottom of the model,
|
|
2407
|
+
// expanded rows, which then work their way up
|
|
2408
|
+
getRowModel: () => r.getPaginationRowModel(),
|
|
2409
|
+
//in next version, we should just pass in the row model as the optional 2nd arg
|
|
2410
|
+
getRow: (c, u) => {
|
|
2411
|
+
let p = (u ? r.getPrePaginationRowModel() : r.getRowModel()).rowsById[c];
|
|
2412
|
+
if (!p && (p = r.getCoreRowModel().rowsById[c], !p))
|
|
2413
|
+
throw process.env.NODE_ENV !== "production" ? new Error(`getRow could not find row with ID: ${c}`) : new Error();
|
|
2414
|
+
return p;
|
|
2415
|
+
},
|
|
2416
|
+
_getDefaultColumnDef: S(() => [r.options.defaultColumn], (c) => {
|
|
2417
|
+
var u;
|
|
2418
|
+
return c = (u = c) != null ? u : {}, {
|
|
2419
|
+
header: (p) => {
|
|
2420
|
+
const m = p.header.column.columnDef;
|
|
2421
|
+
return m.accessorKey ? m.accessorKey : m.accessorFn ? m.id : null;
|
|
2422
|
+
},
|
|
2423
|
+
// footer: props => props.header.column.id,
|
|
2424
|
+
cell: (p) => {
|
|
2425
|
+
var m, R;
|
|
2426
|
+
return (m = (R = p.renderValue()) == null || R.toString == null ? void 0 : R.toString()) != null ? m : null;
|
|
2427
|
+
},
|
|
2428
|
+
...r._features.reduce((p, m) => Object.assign(p, m.getDefaultColumnDef == null ? void 0 : m.getDefaultColumnDef()), {}),
|
|
2429
|
+
...c
|
|
2430
|
+
};
|
|
2431
|
+
}, C(e, "debugColumns", "_getDefaultColumnDef")),
|
|
2432
|
+
_getColumnDefs: () => r.options.columns,
|
|
2433
|
+
getAllColumns: S(() => [r._getColumnDefs()], (c) => {
|
|
2434
|
+
const u = function(p, m, R) {
|
|
2435
|
+
return R === void 0 && (R = 0), p.map((v) => {
|
|
2436
|
+
const F = dt(r, v, R, m), x = v;
|
|
2437
|
+
return F.columns = x.columns ? u(x.columns, F, R + 1) : [], F;
|
|
2438
|
+
});
|
|
2439
|
+
};
|
|
2440
|
+
return u(c);
|
|
2441
|
+
}, C(e, "debugColumns", "getAllColumns")),
|
|
2442
|
+
getAllFlatColumns: S(() => [r.getAllColumns()], (c) => c.flatMap((u) => u.getFlatColumns()), C(e, "debugColumns", "getAllFlatColumns")),
|
|
2443
|
+
_getAllFlatColumnsById: S(() => [r.getAllFlatColumns()], (c) => c.reduce((u, p) => (u[p.id] = p, u), {}), C(e, "debugColumns", "getAllFlatColumnsById")),
|
|
2444
|
+
getAllLeafColumns: S(() => [r.getAllColumns(), r._getOrderColumnsFn()], (c, u) => {
|
|
2445
|
+
let p = c.flatMap((m) => m.getLeafColumns());
|
|
2446
|
+
return u(p);
|
|
2447
|
+
}, C(e, "debugColumns", "getAllLeafColumns")),
|
|
2448
|
+
getColumn: (c) => {
|
|
2449
|
+
const u = r._getAllFlatColumnsById()[c];
|
|
2450
|
+
return process.env.NODE_ENV !== "production" && !u && console.error(`[Table] Column with id '${c}' does not exist.`), u;
|
|
2451
|
+
}
|
|
2452
|
+
};
|
|
2453
|
+
Object.assign(r, h);
|
|
2454
|
+
for (let c = 0; c < r._features.length; c++) {
|
|
2455
|
+
const u = r._features[c];
|
|
2456
|
+
u == null || u.createTable == null || u.createTable(r);
|
|
2457
|
+
}
|
|
2458
|
+
return r;
|
|
2459
|
+
}
|
|
2460
|
+
function Kt() {
|
|
2461
|
+
return (e) => S(() => [e.options.data], (n) => {
|
|
2462
|
+
const t = {
|
|
2463
|
+
rows: [],
|
|
2464
|
+
flatRows: [],
|
|
2465
|
+
rowsById: {}
|
|
2466
|
+
}, o = function(r, i, l) {
|
|
2467
|
+
i === void 0 && (i = 0);
|
|
2468
|
+
const s = [];
|
|
2469
|
+
for (let g = 0; g < r.length; g++) {
|
|
2470
|
+
const f = ft(e, e._getRowId(r[g], g, l), r[g], g, i, void 0, l == null ? void 0 : l.id);
|
|
2471
|
+
if (t.flatRows.push(f), t.rowsById[f.id] = f, s.push(f), e.options.getSubRows) {
|
|
2472
|
+
var a;
|
|
2473
|
+
f.originalSubRows = e.options.getSubRows(r[g], g), (a = f.originalSubRows) != null && a.length && (f.subRows = o(f.originalSubRows, i + 1, f));
|
|
2474
|
+
}
|
|
2475
|
+
}
|
|
2476
|
+
return s;
|
|
2477
|
+
};
|
|
2478
|
+
return t.rows = o(n), t;
|
|
2479
|
+
}, C(e.options, "debugTable", "getRowModel", () => e._autoResetPageIndex()));
|
|
2480
|
+
}
|
|
2481
|
+
/**
|
|
2482
|
+
* react-table
|
|
2483
|
+
*
|
|
2484
|
+
* Copyright (c) TanStack
|
|
2485
|
+
*
|
|
2486
|
+
* This source code is licensed under the MIT license found in the
|
|
2487
|
+
* LICENSE.md file in the root directory of this source tree.
|
|
2488
|
+
*
|
|
2489
|
+
* @license MIT
|
|
2490
|
+
*/
|
|
2491
|
+
function ce(e, n) {
|
|
2492
|
+
return e ? Wt(e) ? /* @__PURE__ */ J.createElement(e, n) : e : null;
|
|
2493
|
+
}
|
|
2494
|
+
function Wt(e) {
|
|
2495
|
+
return Zt(e) || typeof e == "function" || Jt(e);
|
|
2496
|
+
}
|
|
2497
|
+
function Zt(e) {
|
|
2498
|
+
return typeof e == "function" && (() => {
|
|
2499
|
+
const n = Object.getPrototypeOf(e);
|
|
2500
|
+
return n.prototype && n.prototype.isReactComponent;
|
|
2501
|
+
})();
|
|
2502
|
+
}
|
|
2503
|
+
function Jt(e) {
|
|
2504
|
+
return typeof e == "object" && typeof e.$$typeof == "symbol" && ["react.memo", "react.forward_ref"].includes(e.$$typeof.description);
|
|
2505
|
+
}
|
|
2506
|
+
function Yt(e) {
|
|
2507
|
+
const n = {
|
|
2508
|
+
state: {},
|
|
2509
|
+
// Dummy state
|
|
2510
|
+
onStateChange: () => {
|
|
2511
|
+
},
|
|
2512
|
+
// noop
|
|
2513
|
+
renderFallbackValue: null,
|
|
2514
|
+
...e
|
|
2515
|
+
}, [t] = J.useState(() => ({
|
|
2516
|
+
current: Xt(n)
|
|
2517
|
+
})), [o, r] = J.useState(() => t.current.initialState);
|
|
2518
|
+
return t.current.setOptions((i) => ({
|
|
2519
|
+
...i,
|
|
2520
|
+
...e,
|
|
2521
|
+
state: {
|
|
2522
|
+
...o,
|
|
2523
|
+
...e.state
|
|
2524
|
+
},
|
|
2525
|
+
// Similarly, we'll maintain both our internal state and any user-provided
|
|
2526
|
+
// state.
|
|
2527
|
+
onStateChange: (l) => {
|
|
2528
|
+
r(l), e.onStateChange == null || e.onStateChange(l);
|
|
2529
|
+
}
|
|
2530
|
+
})), t.current;
|
|
2531
|
+
}
|
|
2532
|
+
function Zn({ columns: e, data: n }) {
|
|
2533
|
+
var o;
|
|
2534
|
+
const t = Yt({
|
|
2535
|
+
data: n,
|
|
2536
|
+
columns: e,
|
|
2537
|
+
getCoreRowModel: Kt()
|
|
2538
|
+
});
|
|
2539
|
+
return /* @__PURE__ */ d("div", { className: "overflow-hidden rounded-md border", children: /* @__PURE__ */ I(rt, { children: [
|
|
2540
|
+
/* @__PURE__ */ d(it, { children: t.getHeaderGroups().map((r) => /* @__PURE__ */ d(k, { children: r.headers.map((i) => /* @__PURE__ */ d(st, { children: i.isPlaceholder ? null : ce(i.column.columnDef.header, i.getContext()) }, i.id)) }, r.id)) }),
|
|
2541
|
+
/* @__PURE__ */ d(lt, { children: (o = t.getRowModel().rows) != null && o.length ? t.getRowModel().rows.map((r) => /* @__PURE__ */ d(k, { "data-state": r.getIsSelected() && "selected", children: r.getVisibleCells().map((i) => /* @__PURE__ */ d(ue, { children: ce(i.column.columnDef.cell, i.getContext()) }, i.id)) }, r.id)) : /* @__PURE__ */ d(k, { children: /* @__PURE__ */ d(ue, { colSpan: e.length, className: "h-24 text-center", children: "No results." }) }) })
|
|
2542
|
+
] }) });
|
|
2543
|
+
}
|
|
845
2544
|
export {
|
|
846
|
-
|
|
847
|
-
|
|
848
|
-
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
|
|
867
|
-
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
|
|
876
|
-
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
|
|
883
|
-
|
|
884
|
-
|
|
885
|
-
|
|
886
|
-
|
|
887
|
-
|
|
888
|
-
|
|
889
|
-
|
|
890
|
-
|
|
891
|
-
|
|
892
|
-
|
|
893
|
-
|
|
894
|
-
|
|
895
|
-
|
|
896
|
-
|
|
897
|
-
|
|
898
|
-
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
|
|
902
|
-
|
|
903
|
-
|
|
904
|
-
|
|
905
|
-
|
|
906
|
-
|
|
907
|
-
|
|
908
|
-
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
|
|
912
|
-
|
|
913
|
-
|
|
914
|
-
|
|
915
|
-
|
|
916
|
-
|
|
2545
|
+
Qn as Alert,
|
|
2546
|
+
eo as AlertDescription,
|
|
2547
|
+
to as AlertTitle,
|
|
2548
|
+
no as AuroraText,
|
|
2549
|
+
oo as Badge,
|
|
2550
|
+
z as Box,
|
|
2551
|
+
Vn as Breadcrumb,
|
|
2552
|
+
Gn as BreadcrumbEllipsis,
|
|
2553
|
+
yn as BreadcrumbItem,
|
|
2554
|
+
En as BreadcrumbLink,
|
|
2555
|
+
In as BreadcrumbList,
|
|
2556
|
+
Dn as BreadcrumbPage,
|
|
2557
|
+
An as BreadcrumbSeparator,
|
|
2558
|
+
po as Button,
|
|
2559
|
+
Hn as Card,
|
|
2560
|
+
Tn as CardAction,
|
|
2561
|
+
On as CardContent,
|
|
2562
|
+
Nn as CardDescription,
|
|
2563
|
+
Bn as CardFooter,
|
|
2564
|
+
zn as CardHeader,
|
|
2565
|
+
Ln as CardTitle,
|
|
2566
|
+
dn as Container,
|
|
2567
|
+
Zn as DataTable,
|
|
2568
|
+
mn as ExternalLink,
|
|
2569
|
+
cn as Flex,
|
|
2570
|
+
Fn as FormattedDate,
|
|
2571
|
+
$n as FormattedNumber,
|
|
2572
|
+
fn as Grid,
|
|
2573
|
+
pn as Heading,
|
|
2574
|
+
ro as Input,
|
|
2575
|
+
io as InputGroup,
|
|
2576
|
+
lo as InputGroupAddon,
|
|
2577
|
+
so as InputGroupButton,
|
|
2578
|
+
ao as InputGroupInput,
|
|
2579
|
+
uo as InputGroupText,
|
|
2580
|
+
go as InputGroupTextarea,
|
|
2581
|
+
Mn as LanguageSelector,
|
|
2582
|
+
Pn as Marquee,
|
|
2583
|
+
bn as Pagination,
|
|
2584
|
+
kn as PaginationContent,
|
|
2585
|
+
Xn as PaginationEllipsis,
|
|
2586
|
+
qn as PaginationItem,
|
|
2587
|
+
he as PaginationLink,
|
|
2588
|
+
Un as PaginationNext,
|
|
2589
|
+
jn as PaginationPrevious,
|
|
2590
|
+
Sn as Paragraph,
|
|
2591
|
+
Cn as Section,
|
|
2592
|
+
Je as Select,
|
|
2593
|
+
et as SelectContent,
|
|
2594
|
+
wn as SelectGroup,
|
|
2595
|
+
tt as SelectItem,
|
|
2596
|
+
vn as SelectLabel,
|
|
2597
|
+
ot as SelectScrollDownButton,
|
|
2598
|
+
nt as SelectScrollUpButton,
|
|
2599
|
+
Rn as SelectSeparator,
|
|
2600
|
+
Qe as SelectTrigger,
|
|
2601
|
+
Ye as SelectValue,
|
|
2602
|
+
So as Separator,
|
|
2603
|
+
Co as Skeleton,
|
|
2604
|
+
hn as Stack,
|
|
2605
|
+
rt as Table,
|
|
2606
|
+
lt as TableBody,
|
|
2607
|
+
Wn as TableCaption,
|
|
2608
|
+
ue as TableCell,
|
|
2609
|
+
Kn as TableFooter,
|
|
2610
|
+
st as TableHead,
|
|
2611
|
+
it as TableHeader,
|
|
2612
|
+
k as TableRow,
|
|
2613
|
+
L as Text,
|
|
2614
|
+
co as Textarea,
|
|
2615
|
+
_n as TranslatedHtml,
|
|
2616
|
+
xn as TranslatedText
|
|
917
2617
|
};
|