@scbt-ecom/ui 0.60.0 → 0.61.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/ui.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { j as p, c as
|
|
2
|
-
import { n as
|
|
1
|
+
import { j as p, c as tt, R as nt, B as D, u as ot, a as rt, b as it, d as lt, P as U, e as Fe, f as ut, I as st, g as X, h as at, A as gt, H as dt, i as N, k as ct, m as we, D as ft, V as pt, O as mt } from "./index-CTkhWiic.js";
|
|
2
|
+
import { n as io, C as lo, t as uo, s as so, o as ao, K as go, L as co, N as fo, l as po, p as mo, q as ho, U as So, r as Co, v as wo } from "./index-CTkhWiic.js";
|
|
3
3
|
import * as E from "react";
|
|
4
|
-
import { forwardRef as M, useState as
|
|
4
|
+
import { forwardRef as M, useRef as ht, useState as ne, useEffect as ye, isValidElement as k, cloneElement as $e, Children as G } from "react";
|
|
5
5
|
import { c as w, T as Re } from "./typeGuards-Bhdr9KYW.js";
|
|
6
|
-
import { D as
|
|
7
|
-
import { createPortal as
|
|
8
|
-
import { a as
|
|
9
|
-
import { m as
|
|
10
|
-
const
|
|
6
|
+
import { D as vo, d as xo, f as _o, b as Fo, a as yo } from "./utils-Cc0awqbk.js";
|
|
7
|
+
import { createPortal as Ve } from "react-dom";
|
|
8
|
+
import { a as Me } from "./useDebounce-QgEEiWs9.js";
|
|
9
|
+
import { m as St } from "./mergeRefs-qDToYXtM.js";
|
|
10
|
+
const Ct = tt(
|
|
11
11
|
"group flex items-center justify-center cursor-pointer rounded-full outline-offset-[3px] outline-transparent outline-2 transition duration-12 active:scale-[0.97] disabled:pointer-events-none",
|
|
12
12
|
{
|
|
13
13
|
variants: {
|
|
@@ -27,10 +27,10 @@ const St = Qe(
|
|
|
27
27
|
size: "lg"
|
|
28
28
|
}
|
|
29
29
|
}
|
|
30
|
-
),
|
|
31
|
-
({ size: e, intent: o, children: t, classes: n, type: r = "button", ...i }, l) => /* @__PURE__ */ p.jsx("button", { ref: l, type: r, className: w(
|
|
32
|
-
),
|
|
33
|
-
|
|
30
|
+
), Un = M(
|
|
31
|
+
({ size: e, intent: o, children: t, classes: n, type: r = "button", ...i }, l) => /* @__PURE__ */ p.jsx("button", { ref: l, type: r, className: w(Ct({ intent: o, size: e }), n == null ? void 0 : n.button), ...i, children: /* @__PURE__ */ p.jsx("span", { className: w(n == null ? void 0 : n.icon), children: t }) })
|
|
32
|
+
), Kn = ({ className: e }) => /* @__PURE__ */ p.jsx("div", { className: w("skeleton-apply h-full w-full", e) }), Xn = ({ isVisible: e, classes: o, children: t, buttonProps: n }) => /* @__PURE__ */ p.jsxs(
|
|
33
|
+
nt,
|
|
34
34
|
{
|
|
35
35
|
className: w(
|
|
36
36
|
"fixed bottom-0 left-1/2 z-[60] w-full max-w-[604px] -translate-x-1/2 translate-y-0 rounded-t-lg bg-color-white px-6 py-4 shadow-[0px_-6px_8px_0px_#2929290A] transition-transform duration-1000 desktop:hidden",
|
|
@@ -42,7 +42,7 @@ const St = Qe(
|
|
|
42
42
|
/* @__PURE__ */ p.jsx(D, { size: "lg", className: w("m-auto w-full", o == null ? void 0 : o.button), ...n, children: "Оформить заявку" })
|
|
43
43
|
]
|
|
44
44
|
}
|
|
45
|
-
),
|
|
45
|
+
), Wn = {
|
|
46
46
|
group: {
|
|
47
47
|
arrows: ["arrows/arrowCircle", "arrows/arrowLink", "arrows/arrowRight", "arrows/arrowRotate", "arrows/arrowScroll"],
|
|
48
48
|
brandLogos: [
|
|
@@ -140,9 +140,9 @@ const St = Qe(
|
|
|
140
140
|
"status/iconUser"
|
|
141
141
|
]
|
|
142
142
|
};
|
|
143
|
-
var
|
|
143
|
+
var ge = "Tabs", [wt, Yn] = it(ge, [
|
|
144
144
|
Fe
|
|
145
|
-
]),
|
|
145
|
+
]), Ie = Fe(), [Rt, de] = wt(ge), Pe = E.forwardRef(
|
|
146
146
|
(e, o) => {
|
|
147
147
|
const {
|
|
148
148
|
__scopeTabs: t,
|
|
@@ -153,16 +153,16 @@ var ae = "Tabs", [Ct, Xn] = ot(ae, [
|
|
|
153
153
|
dir: u,
|
|
154
154
|
activationMode: s = "automatic",
|
|
155
155
|
...g
|
|
156
|
-
} = e, d =
|
|
156
|
+
} = e, d = ot(u), [f, c] = rt({
|
|
157
157
|
prop: n,
|
|
158
158
|
onChange: r,
|
|
159
159
|
defaultProp: i
|
|
160
160
|
});
|
|
161
161
|
return /* @__PURE__ */ p.jsx(
|
|
162
|
-
|
|
162
|
+
Rt,
|
|
163
163
|
{
|
|
164
164
|
scope: t,
|
|
165
|
-
baseId:
|
|
165
|
+
baseId: lt(),
|
|
166
166
|
value: f,
|
|
167
167
|
onValueChange: c,
|
|
168
168
|
orientation: l,
|
|
@@ -181,12 +181,12 @@ var ae = "Tabs", [Ct, Xn] = ot(ae, [
|
|
|
181
181
|
);
|
|
182
182
|
}
|
|
183
183
|
);
|
|
184
|
-
|
|
185
|
-
var
|
|
184
|
+
Pe.displayName = ge;
|
|
185
|
+
var Ee = "TabsList", De = E.forwardRef(
|
|
186
186
|
(e, o) => {
|
|
187
|
-
const { __scopeTabs: t, loop: n = !0, ...r } = e, i =
|
|
187
|
+
const { __scopeTabs: t, loop: n = !0, ...r } = e, i = de(Ee, t), l = Ie(t);
|
|
188
188
|
return /* @__PURE__ */ p.jsx(
|
|
189
|
-
|
|
189
|
+
ut,
|
|
190
190
|
{
|
|
191
191
|
asChild: !0,
|
|
192
192
|
...l,
|
|
@@ -206,12 +206,12 @@ var Ie = "TabsList", Pe = E.forwardRef(
|
|
|
206
206
|
);
|
|
207
207
|
}
|
|
208
208
|
);
|
|
209
|
-
|
|
210
|
-
var
|
|
209
|
+
De.displayName = Ee;
|
|
210
|
+
var Le = "TabsTrigger", be = E.forwardRef(
|
|
211
211
|
(e, o) => {
|
|
212
|
-
const { __scopeTabs: t, value: n, disabled: r = !1, ...i } = e, l =
|
|
212
|
+
const { __scopeTabs: t, value: n, disabled: r = !1, ...i } = e, l = de(Le, t), u = Ie(t), s = Ge(l.baseId, n), g = je(l.baseId, n), d = n === l.value;
|
|
213
213
|
return /* @__PURE__ */ p.jsx(
|
|
214
|
-
|
|
214
|
+
st,
|
|
215
215
|
{
|
|
216
216
|
asChild: !0,
|
|
217
217
|
...u,
|
|
@@ -246,14 +246,14 @@ var Ee = "TabsTrigger", De = E.forwardRef(
|
|
|
246
246
|
);
|
|
247
247
|
}
|
|
248
248
|
);
|
|
249
|
-
|
|
250
|
-
var
|
|
249
|
+
be.displayName = Le;
|
|
250
|
+
var Ae = "TabsContent", He = E.forwardRef(
|
|
251
251
|
(e, o) => {
|
|
252
|
-
const { __scopeTabs: t, value: n, forceMount: r, children: i, ...l } = e, u =
|
|
252
|
+
const { __scopeTabs: t, value: n, forceMount: r, children: i, ...l } = e, u = de(Ae, t), s = Ge(u.baseId, n), g = je(u.baseId, n), d = n === u.value, f = E.useRef(d);
|
|
253
253
|
return E.useEffect(() => {
|
|
254
254
|
const c = requestAnimationFrame(() => f.current = !1);
|
|
255
255
|
return () => cancelAnimationFrame(c);
|
|
256
|
-
}, []), /* @__PURE__ */ p.jsx(
|
|
256
|
+
}, []), /* @__PURE__ */ p.jsx(at, { present: r || d, children: ({ present: c }) => /* @__PURE__ */ p.jsx(
|
|
257
257
|
U.div,
|
|
258
258
|
{
|
|
259
259
|
"data-state": d ? "active" : "inactive",
|
|
@@ -274,26 +274,26 @@ var Le = "TabsContent", be = E.forwardRef(
|
|
|
274
274
|
) });
|
|
275
275
|
}
|
|
276
276
|
);
|
|
277
|
-
|
|
278
|
-
function
|
|
277
|
+
He.displayName = Ae;
|
|
278
|
+
function Ge(e, o) {
|
|
279
279
|
return `${e}-trigger-${o}`;
|
|
280
280
|
}
|
|
281
|
-
function
|
|
281
|
+
function je(e, o) {
|
|
282
282
|
return `${e}-content-${o}`;
|
|
283
283
|
}
|
|
284
|
-
var
|
|
285
|
-
const
|
|
284
|
+
var vt = Pe, xt = De, _t = be, ve = He;
|
|
285
|
+
const Ft = ({ classes: e, contents: o }) => /* @__PURE__ */ p.jsx("div", { className: w("flex flex-col gap-4", e == null ? void 0 : e.contentsWrapper), children: o == null ? void 0 : o.map(({ id: t, body: n, accordion: r }) => r && (r != null && r.title) ? /* @__PURE__ */ p.jsx(ve, { value: t, className: w("py-8", e == null ? void 0 : e.content), children: /* @__PURE__ */ p.jsx(gt, { label: r == null ? void 0 : r.title, children: n }) }, t) : /* @__PURE__ */ p.jsx(ve, { value: t, className: w("py-8", e == null ? void 0 : e.content), children: n }, t)) }), Zn = ({ renderContent: e, defaultActiveTabId: o = "1", value: t, onChangeTab: n, classes: r }) => {
|
|
286
286
|
var i;
|
|
287
287
|
return /* @__PURE__ */ p.jsxs(
|
|
288
|
-
|
|
288
|
+
vt,
|
|
289
289
|
{
|
|
290
290
|
value: t,
|
|
291
291
|
onValueChange: n,
|
|
292
292
|
defaultValue: o,
|
|
293
293
|
className: w("flex flex-col", r == null ? void 0 : r.root),
|
|
294
294
|
children: [
|
|
295
|
-
/* @__PURE__ */ p.jsx(
|
|
296
|
-
|
|
295
|
+
/* @__PURE__ */ p.jsx(xt, { className: w("flex items-center gap-4", r == null ? void 0 : r.list), children: (i = e == null ? void 0 : e.triggers) == null ? void 0 : i.map(({ id: l, label: u }) => /* @__PURE__ */ p.jsx(
|
|
296
|
+
_t,
|
|
297
297
|
{
|
|
298
298
|
value: l,
|
|
299
299
|
className: w(
|
|
@@ -304,42 +304,62 @@ const _t = ({ classes: e, contents: o }) => /* @__PURE__ */ p.jsx("div", { class
|
|
|
304
304
|
},
|
|
305
305
|
l
|
|
306
306
|
)) }),
|
|
307
|
-
/* @__PURE__ */ p.jsx(
|
|
307
|
+
/* @__PURE__ */ p.jsx(Ft, { contents: e == null ? void 0 : e.contents, classes: r == null ? void 0 : r.tabContent })
|
|
308
308
|
]
|
|
309
309
|
}
|
|
310
310
|
);
|
|
311
|
-
},
|
|
311
|
+
}, yt = {
|
|
312
312
|
initial: { opacity: 0 },
|
|
313
313
|
animate: { opacity: 1 },
|
|
314
314
|
exit: { opacity: 0 },
|
|
315
315
|
transition: { duration: 0.3, ease: "easeInOut" }
|
|
316
|
-
},
|
|
316
|
+
}, $t = {
|
|
317
317
|
initial: { opacity: 0, scale: 0 },
|
|
318
318
|
animate: { opacity: 1, scale: 1 },
|
|
319
319
|
exit: { opacity: 0, scale: 0 },
|
|
320
320
|
transition: { duration: 0.3, ease: "easeInOut" }
|
|
321
|
-
},
|
|
322
|
-
|
|
321
|
+
}, Vt = ({ children: e, className: o, ...t }) => {
|
|
322
|
+
var l;
|
|
323
|
+
const n = ht(null), [r, i] = ne(!1);
|
|
324
|
+
return ye(() => {
|
|
325
|
+
if (!n.current) return;
|
|
326
|
+
const u = new AbortController(), s = n.current;
|
|
327
|
+
return s.addEventListener(
|
|
328
|
+
"load",
|
|
329
|
+
() => {
|
|
330
|
+
document.querySelectorAll('head > link[rel="stylesheet"], head > style').forEach((g) => {
|
|
331
|
+
var d;
|
|
332
|
+
(d = s.contentDocument) == null || d.head.appendChild(g.cloneNode(!0));
|
|
333
|
+
}), i(!0);
|
|
334
|
+
},
|
|
335
|
+
{ signal: u.signal }
|
|
336
|
+
), () => {
|
|
337
|
+
u.abort();
|
|
338
|
+
};
|
|
339
|
+
}, []), /* @__PURE__ */ p.jsx("iframe", { ...t, ref: n, className: w("w-full", o), children: r && ((l = n.current) == null ? void 0 : l.contentDocument) && Ve(e, n.current.contentDocument.body) });
|
|
340
|
+
}, Mt = ({ title: e, closeModal: o, classes: t }) => /* @__PURE__ */ p.jsxs("div", { className: w("flex items-start justify-between gap-4", t == null ? void 0 : t.header), children: [
|
|
341
|
+
e && /* @__PURE__ */ p.jsx(dt, { as: "h3", className: w("flex-1 text-color-dark", t == null ? void 0 : t.title), children: e }),
|
|
323
342
|
/* @__PURE__ */ p.jsx(
|
|
324
|
-
|
|
343
|
+
N,
|
|
325
344
|
{
|
|
326
345
|
onClick: o,
|
|
327
346
|
name: "general/close",
|
|
328
347
|
className: w("size-8 cursor-pointer text-icon-dark-hover", t == null ? void 0 : t.icon)
|
|
329
348
|
}
|
|
330
349
|
)
|
|
331
|
-
] }),
|
|
350
|
+
] }), Jn = ({
|
|
332
351
|
title: e,
|
|
333
352
|
children: o,
|
|
334
353
|
isModalOpen: t,
|
|
335
354
|
isPortal: n = !0,
|
|
336
|
-
portalContainer: r = ((
|
|
355
|
+
portalContainer: r = ((s) => (s = globalThis == null ? void 0 : globalThis.document) == null ? void 0 : s.body)(),
|
|
337
356
|
closeModal: i,
|
|
338
|
-
classes: l
|
|
357
|
+
classes: l,
|
|
358
|
+
iframe: u
|
|
339
359
|
}) => {
|
|
340
360
|
t ? document.body.style.overflow = "hidden" : document.body.style.overflow = "visible";
|
|
341
|
-
const
|
|
342
|
-
|
|
361
|
+
const g = u ? Vt : "div", d = /* @__PURE__ */ p.jsx(ct, { children: t && /* @__PURE__ */ p.jsx(
|
|
362
|
+
we.div,
|
|
343
363
|
{
|
|
344
364
|
tabIndex: -1,
|
|
345
365
|
onClick: i,
|
|
@@ -348,47 +368,47 @@ const _t = ({ classes: e, contents: o }) => /* @__PURE__ */ p.jsx("div", { class
|
|
|
348
368
|
{ "z-1000": !n },
|
|
349
369
|
l == null ? void 0 : l.overlay
|
|
350
370
|
),
|
|
351
|
-
onKeyDown: (
|
|
352
|
-
|
|
371
|
+
onKeyDown: (f) => {
|
|
372
|
+
f.key === "Escape" && i();
|
|
353
373
|
},
|
|
354
374
|
"data-test-id": "modal-overlay",
|
|
355
|
-
...
|
|
375
|
+
...yt,
|
|
356
376
|
children: /* @__PURE__ */ p.jsxs(
|
|
357
|
-
|
|
377
|
+
we.div,
|
|
358
378
|
{
|
|
359
|
-
onClick: (
|
|
379
|
+
onClick: (f) => f.stopPropagation(),
|
|
360
380
|
className: w(
|
|
361
381
|
"w-full max-w-[600px] rounded-md bg-color-white px-4 py-6 shadow-sm desktop:px-6 desktop:py-8",
|
|
362
382
|
l == null ? void 0 : l.modal
|
|
363
383
|
),
|
|
364
384
|
"data-test-id": "modal",
|
|
365
|
-
|
|
385
|
+
...$t,
|
|
366
386
|
children: [
|
|
367
|
-
/* @__PURE__ */ p.jsx(
|
|
368
|
-
/* @__PURE__ */ p.jsx(
|
|
387
|
+
/* @__PURE__ */ p.jsx(Mt, { title: e, closeModal: i, classes: l == null ? void 0 : l.modalHeader }),
|
|
388
|
+
/* @__PURE__ */ p.jsx(g, { className: w("mt-4", l == null ? void 0 : l.content), children: o })
|
|
369
389
|
]
|
|
370
390
|
}
|
|
371
391
|
)
|
|
372
392
|
}
|
|
373
393
|
) });
|
|
374
|
-
return /* @__PURE__ */ p.jsx(p.Fragment, { children: n ?
|
|
375
|
-
},
|
|
376
|
-
|
|
377
|
-
const
|
|
378
|
-
|
|
379
|
-
const
|
|
380
|
-
|
|
381
|
-
const
|
|
382
|
-
|
|
394
|
+
return /* @__PURE__ */ p.jsx(p.Fragment, { children: n ? Ve(d, r) : d });
|
|
395
|
+
}, Ne = M((e, o) => /* @__PURE__ */ p.jsx("table", { ref: o, ...e }));
|
|
396
|
+
Ne.displayName = "Table";
|
|
397
|
+
const ze = M((e, o) => /* @__PURE__ */ p.jsx("thead", { ref: o, ...e }));
|
|
398
|
+
ze.displayName = "TableHeader";
|
|
399
|
+
const Te = M((e, o) => /* @__PURE__ */ p.jsx("tbody", { ref: o, ...e }));
|
|
400
|
+
Te.displayName = "TableBody";
|
|
401
|
+
const It = M((e, o) => /* @__PURE__ */ p.jsx("tfoot", { ref: o, ...e }));
|
|
402
|
+
It.displayName = "TableFooter";
|
|
383
403
|
const B = M((e, o) => /* @__PURE__ */ p.jsx("tr", { ref: o, ...e }));
|
|
384
404
|
B.displayName = "TableRow";
|
|
385
|
-
const
|
|
386
|
-
|
|
387
|
-
const
|
|
388
|
-
|
|
389
|
-
const
|
|
390
|
-
|
|
391
|
-
const
|
|
405
|
+
const Oe = M((e, o) => /* @__PURE__ */ p.jsx("th", { ref: o, ...e }));
|
|
406
|
+
Oe.displayName = "TableHead";
|
|
407
|
+
const oe = M((e, o) => /* @__PURE__ */ p.jsx("td", { ref: o, ...e }));
|
|
408
|
+
oe.displayName = "TableCell";
|
|
409
|
+
const Pt = M((e, o) => /* @__PURE__ */ p.jsx("caption", { ref: o, ...e }));
|
|
410
|
+
Pt.displayName = "TableCaption";
|
|
411
|
+
const Et = ({
|
|
392
412
|
children: e,
|
|
393
413
|
canSort: o,
|
|
394
414
|
toggleSorting: t,
|
|
@@ -396,7 +416,7 @@ const It = ({
|
|
|
396
416
|
isSorted: r,
|
|
397
417
|
classes: i
|
|
398
418
|
}) => {
|
|
399
|
-
const { root: l, content: u, icon: s } = i || {}, { isDesktop: g } =
|
|
419
|
+
const { root: l, content: u, icon: s } = i || {}, { isDesktop: g } = Me(), d = o && g;
|
|
400
420
|
return /* @__PURE__ */ p.jsxs(
|
|
401
421
|
"button",
|
|
402
422
|
{
|
|
@@ -407,7 +427,7 @@ const It = ({
|
|
|
407
427
|
children: [
|
|
408
428
|
/* @__PURE__ */ p.jsx("span", { className: w("", u), children: e }),
|
|
409
429
|
d && /* @__PURE__ */ p.jsx(
|
|
410
|
-
|
|
430
|
+
N,
|
|
411
431
|
{
|
|
412
432
|
name: "arrows/arrowRight",
|
|
413
433
|
className: w(
|
|
@@ -433,7 +453,7 @@ const It = ({
|
|
|
433
453
|
*
|
|
434
454
|
* @license MIT
|
|
435
455
|
*/
|
|
436
|
-
function
|
|
456
|
+
function Dt() {
|
|
437
457
|
return {
|
|
438
458
|
accessor: (e, o) => typeof e == "function" ? {
|
|
439
459
|
...o,
|
|
@@ -460,10 +480,10 @@ function $(e, o) {
|
|
|
460
480
|
function K(e) {
|
|
461
481
|
return e instanceof Function;
|
|
462
482
|
}
|
|
463
|
-
function
|
|
483
|
+
function Lt(e) {
|
|
464
484
|
return Array.isArray(e) && e.every((o) => typeof o == "number");
|
|
465
485
|
}
|
|
466
|
-
function
|
|
486
|
+
function bt(e, o) {
|
|
467
487
|
const t = [], n = (r) => {
|
|
468
488
|
r.forEach((i) => {
|
|
469
489
|
t.push(i);
|
|
@@ -507,7 +527,7 @@ function C(e, o, t, n) {
|
|
|
507
527
|
onChange: n
|
|
508
528
|
};
|
|
509
529
|
}
|
|
510
|
-
function
|
|
530
|
+
function At(e, o, t, n) {
|
|
511
531
|
const r = () => {
|
|
512
532
|
var l;
|
|
513
533
|
return (l = i.getValue()) != null ? l : e.options.renderFallbackValue;
|
|
@@ -530,7 +550,7 @@ function Lt(e, o, t, n) {
|
|
|
530
550
|
l.createCell == null || l.createCell(i, t, o, e);
|
|
531
551
|
}, {}), i;
|
|
532
552
|
}
|
|
533
|
-
function
|
|
553
|
+
function Ht(e, o, t, n) {
|
|
534
554
|
var r, i;
|
|
535
555
|
const u = {
|
|
536
556
|
...e._getDefaultColumnDef(),
|
|
@@ -600,20 +620,20 @@ function xe(e, o, t) {
|
|
|
600
620
|
l.createHeader == null || l.createHeader(i, e);
|
|
601
621
|
}), i;
|
|
602
622
|
}
|
|
603
|
-
const
|
|
623
|
+
const Gt = {
|
|
604
624
|
createTable: (e) => {
|
|
605
625
|
e.getHeaderGroups = S(() => [e.getAllColumns(), e.getVisibleLeafColumns(), e.getState().columnPinning.left, e.getState().columnPinning.right], (o, t, n, r) => {
|
|
606
626
|
var i, l;
|
|
607
627
|
const u = (i = n == null ? void 0 : n.map((f) => t.find((c) => c.id === f)).filter(Boolean)) != null ? i : [], s = (l = r == null ? void 0 : r.map((f) => t.find((c) => c.id === f)).filter(Boolean)) != null ? l : [], g = t.filter((f) => !(n != null && n.includes(f.id)) && !(r != null && r.includes(f.id)));
|
|
608
|
-
return
|
|
609
|
-
}, C(e.options, F, "getHeaderGroups")), e.getCenterHeaderGroups = S(() => [e.getAllColumns(), e.getVisibleLeafColumns(), e.getState().columnPinning.left, e.getState().columnPinning.right], (o, t, n, r) => (t = t.filter((i) => !(n != null && n.includes(i.id)) && !(r != null && r.includes(i.id))),
|
|
628
|
+
return z(o, [...u, ...g, ...s], e);
|
|
629
|
+
}, C(e.options, F, "getHeaderGroups")), e.getCenterHeaderGroups = S(() => [e.getAllColumns(), e.getVisibleLeafColumns(), e.getState().columnPinning.left, e.getState().columnPinning.right], (o, t, n, r) => (t = t.filter((i) => !(n != null && n.includes(i.id)) && !(r != null && r.includes(i.id))), z(o, t, e, "center")), C(e.options, F, "getCenterHeaderGroups")), e.getLeftHeaderGroups = S(() => [e.getAllColumns(), e.getVisibleLeafColumns(), e.getState().columnPinning.left], (o, t, n) => {
|
|
610
630
|
var r;
|
|
611
631
|
const i = (r = n == null ? void 0 : n.map((l) => t.find((u) => u.id === l)).filter(Boolean)) != null ? r : [];
|
|
612
|
-
return
|
|
632
|
+
return z(o, i, e, "left");
|
|
613
633
|
}, C(e.options, F, "getLeftHeaderGroups")), e.getRightHeaderGroups = S(() => [e.getAllColumns(), e.getVisibleLeafColumns(), e.getState().columnPinning.right], (o, t, n) => {
|
|
614
634
|
var r;
|
|
615
635
|
const i = (r = n == null ? void 0 : n.map((l) => t.find((u) => u.id === l)).filter(Boolean)) != null ? r : [];
|
|
616
|
-
return
|
|
636
|
+
return z(o, i, e, "right");
|
|
617
637
|
}, C(e.options, F, "getRightHeaderGroups")), e.getFooterGroups = S(() => [e.getHeaderGroups()], (o) => [...o].reverse(), C(e.options, F, "getFooterGroups")), e.getLeftFooterGroups = S(() => [e.getLeftHeaderGroups()], (o) => [...o].reverse(), C(e.options, F, "getLeftFooterGroups")), e.getCenterFooterGroups = S(() => [e.getCenterHeaderGroups()], (o) => [...o].reverse(), C(e.options, F, "getCenterFooterGroups")), e.getRightFooterGroups = S(() => [e.getRightHeaderGroups()], (o) => [...o].reverse(), C(e.options, F, "getRightFooterGroups")), e.getFlatHeaders = S(() => [e.getHeaderGroups()], (o) => o.map((t) => t.headers).flat(), C(e.options, F, "getFlatHeaders")), e.getLeftFlatHeaders = S(() => [e.getLeftHeaderGroups()], (o) => o.map((t) => t.headers).flat(), C(e.options, F, "getLeftFlatHeaders")), e.getCenterFlatHeaders = S(() => [e.getCenterHeaderGroups()], (o) => o.map((t) => t.headers).flat(), C(e.options, F, "getCenterFlatHeaders")), e.getRightFlatHeaders = S(() => [e.getRightHeaderGroups()], (o) => o.map((t) => t.headers).flat(), C(e.options, F, "getRightFlatHeaders")), e.getCenterLeafHeaders = S(() => [e.getCenterFlatHeaders()], (o) => o.filter((t) => {
|
|
618
638
|
var n;
|
|
619
639
|
return !((n = t.subHeaders) != null && n.length);
|
|
@@ -629,7 +649,7 @@ const At = {
|
|
|
629
649
|
}, C(e.options, F, "getLeafHeaders"));
|
|
630
650
|
}
|
|
631
651
|
};
|
|
632
|
-
function
|
|
652
|
+
function z(e, o, t, n) {
|
|
633
653
|
var r, i;
|
|
634
654
|
let l = 0;
|
|
635
655
|
const u = function(c, a) {
|
|
@@ -685,7 +705,7 @@ function N(e, o, t, n) {
|
|
|
685
705
|
});
|
|
686
706
|
return f((r = (i = s[0]) == null ? void 0 : i.headers) != null ? r : []), s;
|
|
687
707
|
}
|
|
688
|
-
const
|
|
708
|
+
const ce = (e, o, t, n, r, i, l) => {
|
|
689
709
|
let u = {
|
|
690
710
|
id: o,
|
|
691
711
|
index: n,
|
|
@@ -713,7 +733,7 @@ const de = (e, o, t, n, r, i, l) => {
|
|
|
713
733
|
return (g = u.getValue(s)) != null ? g : e.options.renderFallbackValue;
|
|
714
734
|
},
|
|
715
735
|
subRows: [],
|
|
716
|
-
getLeafRows: () =>
|
|
736
|
+
getLeafRows: () => bt(u.subRows, (s) => s.subRows),
|
|
717
737
|
getParentRow: () => u.parentId ? e.getRow(u.parentId, !0) : void 0,
|
|
718
738
|
getParentRows: () => {
|
|
719
739
|
let s = [], g = u;
|
|
@@ -724,7 +744,7 @@ const de = (e, o, t, n, r, i, l) => {
|
|
|
724
744
|
}
|
|
725
745
|
return s.reverse();
|
|
726
746
|
},
|
|
727
|
-
getAllCells: S(() => [e.getAllLeafColumns()], (s) => s.map((g) =>
|
|
747
|
+
getAllCells: S(() => [e.getAllLeafColumns()], (s) => s.map((g) => At(e, u, g, g.id)), C(e.options, "debugRows", "getAllCells")),
|
|
728
748
|
_getAllCellsByColumnId: S(() => [u.getAllCells()], (s) => s.reduce((g, d) => (g[d.column.id] = d, g), {}), C(e.options, "debugRows", "getAllCellsByColumnId"))
|
|
729
749
|
};
|
|
730
750
|
for (let s = 0; s < e._features.length; s++) {
|
|
@@ -732,54 +752,54 @@ const de = (e, o, t, n, r, i, l) => {
|
|
|
732
752
|
g == null || g.createRow == null || g.createRow(u, e);
|
|
733
753
|
}
|
|
734
754
|
return u;
|
|
735
|
-
},
|
|
755
|
+
}, jt = {
|
|
736
756
|
createColumn: (e, o) => {
|
|
737
757
|
e._getFacetedRowModel = o.options.getFacetedRowModel && o.options.getFacetedRowModel(o, e.id), e.getFacetedRowModel = () => e._getFacetedRowModel ? e._getFacetedRowModel() : o.getPreFilteredRowModel(), e._getFacetedUniqueValues = o.options.getFacetedUniqueValues && o.options.getFacetedUniqueValues(o, e.id), e.getFacetedUniqueValues = () => e._getFacetedUniqueValues ? e._getFacetedUniqueValues() : /* @__PURE__ */ new Map(), e._getFacetedMinMaxValues = o.options.getFacetedMinMaxValues && o.options.getFacetedMinMaxValues(o, e.id), e.getFacetedMinMaxValues = () => {
|
|
738
758
|
if (e._getFacetedMinMaxValues)
|
|
739
759
|
return e._getFacetedMinMaxValues();
|
|
740
760
|
};
|
|
741
761
|
}
|
|
742
|
-
},
|
|
762
|
+
}, Be = (e, o, t) => {
|
|
743
763
|
var n, r;
|
|
744
764
|
const i = t == null || (n = t.toString()) == null ? void 0 : n.toLowerCase();
|
|
745
765
|
return !!(!((r = e.getValue(o)) == null || (r = r.toString()) == null || (r = r.toLowerCase()) == null) && r.includes(i));
|
|
746
766
|
};
|
|
747
|
-
|
|
748
|
-
const
|
|
767
|
+
Be.autoRemove = (e) => V(e);
|
|
768
|
+
const ke = (e, o, t) => {
|
|
749
769
|
var n;
|
|
750
770
|
return !!(!((n = e.getValue(o)) == null || (n = n.toString()) == null) && n.includes(t));
|
|
751
771
|
};
|
|
752
|
-
|
|
753
|
-
const
|
|
772
|
+
ke.autoRemove = (e) => V(e);
|
|
773
|
+
const qe = (e, o, t) => {
|
|
754
774
|
var n;
|
|
755
775
|
return ((n = e.getValue(o)) == null || (n = n.toString()) == null ? void 0 : n.toLowerCase()) === (t == null ? void 0 : t.toLowerCase());
|
|
756
776
|
};
|
|
757
|
-
|
|
758
|
-
const
|
|
777
|
+
qe.autoRemove = (e) => V(e);
|
|
778
|
+
const Ue = (e, o, t) => {
|
|
759
779
|
var n;
|
|
760
780
|
return (n = e.getValue(o)) == null ? void 0 : n.includes(t);
|
|
761
781
|
};
|
|
762
|
-
|
|
763
|
-
const
|
|
782
|
+
Ue.autoRemove = (e) => V(e);
|
|
783
|
+
const Ke = (e, o, t) => !t.some((n) => {
|
|
764
784
|
var r;
|
|
765
785
|
return !((r = e.getValue(o)) != null && r.includes(n));
|
|
766
786
|
});
|
|
767
|
-
|
|
768
|
-
const
|
|
787
|
+
Ke.autoRemove = (e) => V(e) || !(e != null && e.length);
|
|
788
|
+
const Xe = (e, o, t) => t.some((n) => {
|
|
769
789
|
var r;
|
|
770
790
|
return (r = e.getValue(o)) == null ? void 0 : r.includes(n);
|
|
771
791
|
});
|
|
772
|
-
|
|
773
|
-
const
|
|
774
|
-
|
|
775
|
-
const
|
|
776
|
-
|
|
777
|
-
const
|
|
792
|
+
Xe.autoRemove = (e) => V(e) || !(e != null && e.length);
|
|
793
|
+
const We = (e, o, t) => e.getValue(o) === t;
|
|
794
|
+
We.autoRemove = (e) => V(e);
|
|
795
|
+
const Ye = (e, o, t) => e.getValue(o) == t;
|
|
796
|
+
Ye.autoRemove = (e) => V(e);
|
|
797
|
+
const fe = (e, o, t) => {
|
|
778
798
|
let [n, r] = t;
|
|
779
799
|
const i = e.getValue(o);
|
|
780
800
|
return i >= n && i <= r;
|
|
781
801
|
};
|
|
782
|
-
|
|
802
|
+
fe.resolveFilterValue = (e) => {
|
|
783
803
|
let [o, t] = e, n = typeof o != "number" ? parseFloat(o) : o, r = typeof t != "number" ? parseFloat(t) : t, i = o === null || Number.isNaN(n) ? -1 / 0 : n, l = t === null || Number.isNaN(r) ? 1 / 0 : r;
|
|
784
804
|
if (i > l) {
|
|
785
805
|
const u = i;
|
|
@@ -787,22 +807,22 @@ ce.resolveFilterValue = (e) => {
|
|
|
787
807
|
}
|
|
788
808
|
return [i, l];
|
|
789
809
|
};
|
|
790
|
-
|
|
810
|
+
fe.autoRemove = (e) => V(e) || V(e[0]) && V(e[1]);
|
|
791
811
|
const P = {
|
|
792
|
-
includesString:
|
|
793
|
-
includesStringSensitive:
|
|
794
|
-
equalsString:
|
|
795
|
-
arrIncludes:
|
|
796
|
-
arrIncludesAll:
|
|
797
|
-
arrIncludesSome:
|
|
798
|
-
equals:
|
|
799
|
-
weakEquals:
|
|
800
|
-
inNumberRange:
|
|
812
|
+
includesString: Be,
|
|
813
|
+
includesStringSensitive: ke,
|
|
814
|
+
equalsString: qe,
|
|
815
|
+
arrIncludes: Ue,
|
|
816
|
+
arrIncludesAll: Ke,
|
|
817
|
+
arrIncludesSome: Xe,
|
|
818
|
+
equals: We,
|
|
819
|
+
weakEquals: Ye,
|
|
820
|
+
inNumberRange: fe
|
|
801
821
|
};
|
|
802
822
|
function V(e) {
|
|
803
823
|
return e == null || e === "";
|
|
804
824
|
}
|
|
805
|
-
const
|
|
825
|
+
const Nt = {
|
|
806
826
|
getDefaultColumnDef: () => ({
|
|
807
827
|
filterFn: "auto"
|
|
808
828
|
}),
|
|
@@ -880,54 +900,54 @@ const Gt = {
|
|
|
880
900
|
function _e(e, o, t) {
|
|
881
901
|
return (e && e.autoRemove ? e.autoRemove(o, t) : !1) || typeof o > "u" || typeof o == "string" && !o;
|
|
882
902
|
}
|
|
883
|
-
const
|
|
903
|
+
const zt = (e, o, t) => t.reduce((n, r) => {
|
|
884
904
|
const i = r.getValue(e);
|
|
885
905
|
return n + (typeof i == "number" ? i : 0);
|
|
886
|
-
}, 0),
|
|
906
|
+
}, 0), Tt = (e, o, t) => {
|
|
887
907
|
let n;
|
|
888
908
|
return t.forEach((r) => {
|
|
889
909
|
const i = r.getValue(e);
|
|
890
910
|
i != null && (n > i || n === void 0 && i >= i) && (n = i);
|
|
891
911
|
}), n;
|
|
892
|
-
},
|
|
912
|
+
}, Ot = (e, o, t) => {
|
|
893
913
|
let n;
|
|
894
914
|
return t.forEach((r) => {
|
|
895
915
|
const i = r.getValue(e);
|
|
896
916
|
i != null && (n < i || n === void 0 && i >= i) && (n = i);
|
|
897
917
|
}), n;
|
|
898
|
-
},
|
|
918
|
+
}, Bt = (e, o, t) => {
|
|
899
919
|
let n, r;
|
|
900
920
|
return t.forEach((i) => {
|
|
901
921
|
const l = i.getValue(e);
|
|
902
922
|
l != null && (n === void 0 ? l >= l && (n = r = l) : (n > l && (n = l), r < l && (r = l)));
|
|
903
923
|
}), [n, r];
|
|
904
|
-
},
|
|
924
|
+
}, kt = (e, o) => {
|
|
905
925
|
let t = 0, n = 0;
|
|
906
926
|
if (o.forEach((r) => {
|
|
907
927
|
let i = r.getValue(e);
|
|
908
928
|
i != null && (i = +i) >= i && (++t, n += i);
|
|
909
929
|
}), t) return n / t;
|
|
910
|
-
},
|
|
930
|
+
}, qt = (e, o) => {
|
|
911
931
|
if (!o.length)
|
|
912
932
|
return;
|
|
913
933
|
const t = o.map((i) => i.getValue(e));
|
|
914
|
-
if (!
|
|
934
|
+
if (!Lt(t))
|
|
915
935
|
return;
|
|
916
936
|
if (t.length === 1)
|
|
917
937
|
return t[0];
|
|
918
938
|
const n = Math.floor(t.length / 2), r = t.sort((i, l) => i - l);
|
|
919
939
|
return t.length % 2 !== 0 ? r[n] : (r[n - 1] + r[n]) / 2;
|
|
920
|
-
},
|
|
921
|
-
sum:
|
|
922
|
-
min:
|
|
923
|
-
max:
|
|
924
|
-
extent:
|
|
925
|
-
mean:
|
|
926
|
-
median:
|
|
927
|
-
unique:
|
|
928
|
-
uniqueCount:
|
|
929
|
-
count:
|
|
930
|
-
},
|
|
940
|
+
}, Ut = (e, o) => Array.from(new Set(o.map((t) => t.getValue(e))).values()), Kt = (e, o) => new Set(o.map((t) => t.getValue(e))).size, Xt = (e, o) => o.length, W = {
|
|
941
|
+
sum: zt,
|
|
942
|
+
min: Tt,
|
|
943
|
+
max: Ot,
|
|
944
|
+
extent: Bt,
|
|
945
|
+
mean: kt,
|
|
946
|
+
median: qt,
|
|
947
|
+
unique: Ut,
|
|
948
|
+
uniqueCount: Kt,
|
|
949
|
+
count: Xt
|
|
950
|
+
}, Wt = {
|
|
931
951
|
getDefaultColumnDef: () => ({
|
|
932
952
|
aggregatedCell: (e) => {
|
|
933
953
|
var o, t;
|
|
@@ -994,13 +1014,13 @@ const jt = (e, o, t) => t.reduce((n, r) => {
|
|
|
994
1014
|
};
|
|
995
1015
|
}
|
|
996
1016
|
};
|
|
997
|
-
function
|
|
1017
|
+
function Yt(e, o, t) {
|
|
998
1018
|
if (!(o != null && o.length) || !t)
|
|
999
1019
|
return e;
|
|
1000
1020
|
const n = e.filter((i) => !o.includes(i.id));
|
|
1001
1021
|
return t === "remove" ? n : [...o.map((i) => e.find((l) => l.id === i)).filter(Boolean), ...n];
|
|
1002
1022
|
}
|
|
1003
|
-
const
|
|
1023
|
+
const Zt = {
|
|
1004
1024
|
getInitialState: (e) => ({
|
|
1005
1025
|
columnOrder: [],
|
|
1006
1026
|
...e
|
|
@@ -1034,13 +1054,13 @@ const Wt = {
|
|
|
1034
1054
|
}
|
|
1035
1055
|
i = [...i, ...u];
|
|
1036
1056
|
}
|
|
1037
|
-
return
|
|
1057
|
+
return Yt(i, t, n);
|
|
1038
1058
|
}, C(e.options, "debugTable", "_getOrderColumnsFn"));
|
|
1039
1059
|
}
|
|
1040
1060
|
}, Y = () => ({
|
|
1041
1061
|
left: [],
|
|
1042
1062
|
right: []
|
|
1043
|
-
}),
|
|
1063
|
+
}), Jt = {
|
|
1044
1064
|
getInitialState: (e) => ({
|
|
1045
1065
|
columnPinning: Y(),
|
|
1046
1066
|
...e
|
|
@@ -1127,7 +1147,7 @@ const Wt = {
|
|
|
1127
1147
|
deltaPercentage: null,
|
|
1128
1148
|
isResizingColumn: !1,
|
|
1129
1149
|
columnSizingStart: []
|
|
1130
|
-
}),
|
|
1150
|
+
}), Qt = {
|
|
1131
1151
|
getDefaultColumnDef: () => T,
|
|
1132
1152
|
getInitialState: (e) => ({
|
|
1133
1153
|
columnSizing: {},
|
|
@@ -1184,14 +1204,14 @@ const Wt = {
|
|
|
1184
1204
|
const l = e.getSize(), u = e ? e.getLeafHeaders().map((v) => [v.column.id, v.column.getSize()]) : [[n.id, n.getSize()]], s = J(i) ? Math.round(i.touches[0].clientX) : i.clientX, g = {}, d = (v, x) => {
|
|
1185
1205
|
typeof x == "number" && (o.setColumnSizingInfo((_) => {
|
|
1186
1206
|
var I, y;
|
|
1187
|
-
const A = o.options.columnResizeDirection === "rtl" ? -1 : 1,
|
|
1188
|
-
return _.columnSizingStart.forEach((
|
|
1189
|
-
let [
|
|
1190
|
-
g[
|
|
1207
|
+
const A = o.options.columnResizeDirection === "rtl" ? -1 : 1, he = (x - ((I = _ == null ? void 0 : _.startOffset) != null ? I : 0)) * A, Se = Math.max(he / ((y = _ == null ? void 0 : _.startSize) != null ? y : 0), -0.999999);
|
|
1208
|
+
return _.columnSizingStart.forEach((Qe) => {
|
|
1209
|
+
let [et, Ce] = Qe;
|
|
1210
|
+
g[et] = Math.round(Math.max(Ce + Ce * Se, 0) * 100) / 100;
|
|
1191
1211
|
}), {
|
|
1192
1212
|
..._,
|
|
1193
|
-
deltaOffset:
|
|
1194
|
-
deltaPercentage:
|
|
1213
|
+
deltaOffset: he,
|
|
1214
|
+
deltaPercentage: Se
|
|
1195
1215
|
};
|
|
1196
1216
|
}), (o.options.columnResizeMode === "onChange" || v === "end") && o.setColumnSizing((_) => ({
|
|
1197
1217
|
..._,
|
|
@@ -1218,7 +1238,7 @@ const Wt = {
|
|
|
1218
1238
|
var x;
|
|
1219
1239
|
a == null || a.removeEventListener("touchmove", h.moveHandler), a == null || a.removeEventListener("touchend", h.upHandler), v.cancelable && (v.preventDefault(), v.stopPropagation()), c((x = v.touches[0]) == null ? void 0 : x.clientX);
|
|
1220
1240
|
}
|
|
1221
|
-
}, R =
|
|
1241
|
+
}, R = en() ? {
|
|
1222
1242
|
passive: !1
|
|
1223
1243
|
} : !1;
|
|
1224
1244
|
J(i) ? (a == null || a.addEventListener("touchmove", h.moveHandler, R), a == null || a.addEventListener("touchend", h.upHandler, R)) : (a == null || a.addEventListener("mousemove", m.moveHandler, R), a == null || a.addEventListener("mouseup", m.upHandler, R)), o.setColumnSizingInfo((v) => ({
|
|
@@ -1256,7 +1276,7 @@ const Wt = {
|
|
|
1256
1276
|
}
|
|
1257
1277
|
};
|
|
1258
1278
|
let O = null;
|
|
1259
|
-
function
|
|
1279
|
+
function en() {
|
|
1260
1280
|
if (typeof O == "boolean") return O;
|
|
1261
1281
|
let e = !1;
|
|
1262
1282
|
try {
|
|
@@ -1275,7 +1295,7 @@ function Jt() {
|
|
|
1275
1295
|
function J(e) {
|
|
1276
1296
|
return e.type === "touchstart";
|
|
1277
1297
|
}
|
|
1278
|
-
const
|
|
1298
|
+
const tn = {
|
|
1279
1299
|
getInitialState: (e) => ({
|
|
1280
1300
|
columnVisibility: {},
|
|
1281
1301
|
...e
|
|
@@ -1323,14 +1343,14 @@ const Qt = {
|
|
|
1323
1343
|
function j(e, o) {
|
|
1324
1344
|
return o ? o === "center" ? e.getCenterVisibleLeafColumns() : o === "left" ? e.getLeftVisibleLeafColumns() : e.getRightVisibleLeafColumns() : e.getVisibleLeafColumns();
|
|
1325
1345
|
}
|
|
1326
|
-
const
|
|
1346
|
+
const nn = {
|
|
1327
1347
|
createTable: (e) => {
|
|
1328
1348
|
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 = () => {
|
|
1329
1349
|
if (e._getGlobalFacetedMinMaxValues)
|
|
1330
1350
|
return e._getGlobalFacetedMinMaxValues();
|
|
1331
1351
|
};
|
|
1332
1352
|
}
|
|
1333
|
-
},
|
|
1353
|
+
}, on = {
|
|
1334
1354
|
getInitialState: (e) => ({
|
|
1335
1355
|
globalFilter: void 0,
|
|
1336
1356
|
...e
|
|
@@ -1363,7 +1383,7 @@ const en = {
|
|
|
1363
1383
|
e.setGlobalFilter(o ? void 0 : e.initialState.globalFilter);
|
|
1364
1384
|
};
|
|
1365
1385
|
}
|
|
1366
|
-
},
|
|
1386
|
+
}, rn = {
|
|
1367
1387
|
getInitialState: (e) => ({
|
|
1368
1388
|
expanded: {},
|
|
1369
1389
|
...e
|
|
@@ -1450,10 +1470,10 @@ const en = {
|
|
|
1450
1470
|
};
|
|
1451
1471
|
};
|
|
1452
1472
|
}
|
|
1453
|
-
},
|
|
1454
|
-
pageIndex:
|
|
1455
|
-
pageSize:
|
|
1456
|
-
}),
|
|
1473
|
+
}, re = 0, ie = 10, Q = () => ({
|
|
1474
|
+
pageIndex: re,
|
|
1475
|
+
pageSize: ie
|
|
1476
|
+
}), ln = {
|
|
1457
1477
|
getInitialState: (e) => ({
|
|
1458
1478
|
...e,
|
|
1459
1479
|
pagination: {
|
|
@@ -1497,10 +1517,10 @@ const en = {
|
|
|
1497
1517
|
});
|
|
1498
1518
|
}, e.resetPageIndex = (n) => {
|
|
1499
1519
|
var r, i;
|
|
1500
|
-
e.setPageIndex(n ?
|
|
1520
|
+
e.setPageIndex(n ? re : (r = (i = e.initialState) == null || (i = i.pagination) == null ? void 0 : i.pageIndex) != null ? r : re);
|
|
1501
1521
|
}, e.resetPageSize = (n) => {
|
|
1502
1522
|
var r, i;
|
|
1503
|
-
e.setPageSize(n ?
|
|
1523
|
+
e.setPageSize(n ? ie : (r = (i = e.initialState) == null || (i = i.pagination) == null ? void 0 : i.pageSize) != null ? r : ie);
|
|
1504
1524
|
}, e.setPageSize = (n) => {
|
|
1505
1525
|
e.setPagination((r) => {
|
|
1506
1526
|
const i = Math.max(1, L(n, r.pageSize)), l = r.pageSize * r.pageIndex, u = Math.floor(l / i);
|
|
@@ -1536,7 +1556,7 @@ const en = {
|
|
|
1536
1556
|
}, ee = () => ({
|
|
1537
1557
|
top: [],
|
|
1538
1558
|
bottom: []
|
|
1539
|
-
}),
|
|
1559
|
+
}), un = {
|
|
1540
1560
|
getInitialState: (e) => ({
|
|
1541
1561
|
rowPinning: ee(),
|
|
1542
1562
|
...e
|
|
@@ -1637,7 +1657,7 @@ const en = {
|
|
|
1637
1657
|
return o.filter((i) => !r.has(i.id));
|
|
1638
1658
|
}, C(e.options, "debugRows", "getCenterRows"));
|
|
1639
1659
|
}
|
|
1640
|
-
},
|
|
1660
|
+
}, sn = {
|
|
1641
1661
|
getInitialState: (e) => ({
|
|
1642
1662
|
rowSelection: {},
|
|
1643
1663
|
...e
|
|
@@ -1672,7 +1692,7 @@ const en = {
|
|
|
1672
1692
|
...t
|
|
1673
1693
|
};
|
|
1674
1694
|
return e.getRowModel().rows.forEach((i) => {
|
|
1675
|
-
|
|
1695
|
+
le(r, i.id, n, !0, e);
|
|
1676
1696
|
}), r;
|
|
1677
1697
|
}), e.getPreSelectedRowModel = () => e.getCoreRowModel(), e.getSelectedRowModel = S(() => [e.getState().rowSelection, e.getCoreRowModel()], (o, t) => Object.keys(o).length ? te(e, t) : {
|
|
1678
1698
|
rows: [],
|
|
@@ -1721,23 +1741,23 @@ const en = {
|
|
|
1721
1741
|
const u = {
|
|
1722
1742
|
...i
|
|
1723
1743
|
};
|
|
1724
|
-
return
|
|
1744
|
+
return le(u, e.id, t, (l = n == null ? void 0 : n.selectChildren) != null ? l : !0, o), u;
|
|
1725
1745
|
});
|
|
1726
1746
|
}, e.getIsSelected = () => {
|
|
1727
1747
|
const {
|
|
1728
1748
|
rowSelection: t
|
|
1729
1749
|
} = o.getState();
|
|
1730
|
-
return
|
|
1750
|
+
return pe(e, t);
|
|
1731
1751
|
}, e.getIsSomeSelected = () => {
|
|
1732
1752
|
const {
|
|
1733
1753
|
rowSelection: t
|
|
1734
1754
|
} = o.getState();
|
|
1735
|
-
return
|
|
1755
|
+
return ue(e, t) === "some";
|
|
1736
1756
|
}, e.getIsAllSubRowsSelected = () => {
|
|
1737
1757
|
const {
|
|
1738
1758
|
rowSelection: t
|
|
1739
1759
|
} = o.getState();
|
|
1740
|
-
return
|
|
1760
|
+
return ue(e, t) === "all";
|
|
1741
1761
|
}, e.getCanSelect = () => {
|
|
1742
1762
|
var t;
|
|
1743
1763
|
return typeof o.options.enableRowSelection == "function" ? o.options.enableRowSelection(e) : (t = o.options.enableRowSelection) != null ? t : !0;
|
|
@@ -1755,16 +1775,16 @@ const en = {
|
|
|
1755
1775
|
};
|
|
1756
1776
|
};
|
|
1757
1777
|
}
|
|
1758
|
-
},
|
|
1778
|
+
}, le = (e, o, t, n, r) => {
|
|
1759
1779
|
var i;
|
|
1760
1780
|
const l = r.getRow(o, !0);
|
|
1761
|
-
t ? (l.getCanMultiSelect() || Object.keys(e).forEach((u) => delete e[u]), l.getCanSelect() && (e[o] = !0)) : delete e[o], n && (i = l.subRows) != null && i.length && l.getCanSelectSubRows() && l.subRows.forEach((u) =>
|
|
1781
|
+
t ? (l.getCanMultiSelect() || Object.keys(e).forEach((u) => delete e[u]), l.getCanSelect() && (e[o] = !0)) : delete e[o], n && (i = l.subRows) != null && i.length && l.getCanSelectSubRows() && l.subRows.forEach((u) => le(e, u.id, t, n, r));
|
|
1762
1782
|
};
|
|
1763
1783
|
function te(e, o) {
|
|
1764
1784
|
const t = e.getState().rowSelection, n = [], r = {}, i = function(l, u) {
|
|
1765
1785
|
return l.map((s) => {
|
|
1766
1786
|
var g;
|
|
1767
|
-
const d =
|
|
1787
|
+
const d = pe(s, t);
|
|
1768
1788
|
if (d && (n.push(s), r[s.id] = s), (g = s.subRows) != null && g.length && (s = {
|
|
1769
1789
|
...s,
|
|
1770
1790
|
subRows: i(s.subRows)
|
|
@@ -1778,33 +1798,33 @@ function te(e, o) {
|
|
|
1778
1798
|
rowsById: r
|
|
1779
1799
|
};
|
|
1780
1800
|
}
|
|
1781
|
-
function
|
|
1801
|
+
function pe(e, o) {
|
|
1782
1802
|
var t;
|
|
1783
1803
|
return (t = o[e.id]) != null ? t : !1;
|
|
1784
1804
|
}
|
|
1785
|
-
function
|
|
1805
|
+
function ue(e, o, t) {
|
|
1786
1806
|
var n;
|
|
1787
1807
|
if (!((n = e.subRows) != null && n.length)) return !1;
|
|
1788
1808
|
let r = !0, i = !1;
|
|
1789
1809
|
return e.subRows.forEach((l) => {
|
|
1790
|
-
if (!(i && !r) && (l.getCanSelect() && (
|
|
1791
|
-
const u =
|
|
1810
|
+
if (!(i && !r) && (l.getCanSelect() && (pe(l, o) ? i = !0 : r = !1), l.subRows && l.subRows.length)) {
|
|
1811
|
+
const u = ue(l, o);
|
|
1792
1812
|
u === "all" ? i = !0 : (u === "some" && (i = !0), r = !1);
|
|
1793
1813
|
}
|
|
1794
1814
|
}), r ? "all" : i ? "some" : !1;
|
|
1795
1815
|
}
|
|
1796
|
-
const
|
|
1816
|
+
const se = /([0-9]+)/gm, an = (e, o, t) => Ze(b(e.getValue(t)).toLowerCase(), b(o.getValue(t)).toLowerCase()), gn = (e, o, t) => Ze(b(e.getValue(t)), b(o.getValue(t))), dn = (e, o, t) => me(b(e.getValue(t)).toLowerCase(), b(o.getValue(t)).toLowerCase()), cn = (e, o, t) => me(b(e.getValue(t)), b(o.getValue(t))), fn = (e, o, t) => {
|
|
1797
1817
|
const n = e.getValue(t), r = o.getValue(t);
|
|
1798
1818
|
return n > r ? 1 : n < r ? -1 : 0;
|
|
1799
|
-
},
|
|
1800
|
-
function
|
|
1819
|
+
}, pn = (e, o, t) => me(e.getValue(t), o.getValue(t));
|
|
1820
|
+
function me(e, o) {
|
|
1801
1821
|
return e === o ? 0 : e > o ? 1 : -1;
|
|
1802
1822
|
}
|
|
1803
1823
|
function b(e) {
|
|
1804
1824
|
return typeof e == "number" ? isNaN(e) || e === 1 / 0 || e === -1 / 0 ? "" : String(e) : typeof e == "string" ? e : "";
|
|
1805
1825
|
}
|
|
1806
|
-
function
|
|
1807
|
-
const t = e.split(
|
|
1826
|
+
function Ze(e, o) {
|
|
1827
|
+
const t = e.split(se).filter(Boolean), n = o.split(se).filter(Boolean);
|
|
1808
1828
|
for (; t.length && n.length; ) {
|
|
1809
1829
|
const r = t.shift(), i = n.shift(), l = parseInt(r, 10), u = parseInt(i, 10), s = [l, u].sort();
|
|
1810
1830
|
if (isNaN(s[0])) {
|
|
@@ -1824,13 +1844,13 @@ function We(e, o) {
|
|
|
1824
1844
|
return t.length - n.length;
|
|
1825
1845
|
}
|
|
1826
1846
|
const H = {
|
|
1827
|
-
alphanumeric:
|
|
1828
|
-
alphanumericCaseSensitive:
|
|
1829
|
-
text:
|
|
1830
|
-
textCaseSensitive:
|
|
1831
|
-
datetime:
|
|
1832
|
-
basic:
|
|
1833
|
-
},
|
|
1847
|
+
alphanumeric: an,
|
|
1848
|
+
alphanumericCaseSensitive: gn,
|
|
1849
|
+
text: dn,
|
|
1850
|
+
textCaseSensitive: cn,
|
|
1851
|
+
datetime: fn,
|
|
1852
|
+
basic: pn
|
|
1853
|
+
}, mn = {
|
|
1834
1854
|
getInitialState: (e) => ({
|
|
1835
1855
|
sorting: [],
|
|
1836
1856
|
...e
|
|
@@ -1851,7 +1871,7 @@ const H = {
|
|
|
1851
1871
|
const i = r == null ? void 0 : r.getValue(e.id);
|
|
1852
1872
|
if (Object.prototype.toString.call(i) === "[object Date]")
|
|
1853
1873
|
return H.datetime;
|
|
1854
|
-
if (typeof i == "string" && (n = !0, i.split(
|
|
1874
|
+
if (typeof i == "string" && (n = !0, i.split(se).length > 1))
|
|
1855
1875
|
return H.alphanumeric;
|
|
1856
1876
|
}
|
|
1857
1877
|
return n ? H.text : H.basic;
|
|
@@ -1919,30 +1939,30 @@ const H = {
|
|
|
1919
1939
|
e.setSorting(o ? [] : (t = (n = e.initialState) == null ? void 0 : n.sorting) != null ? t : []);
|
|
1920
1940
|
}, 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());
|
|
1921
1941
|
}
|
|
1922
|
-
},
|
|
1923
|
-
At,
|
|
1924
|
-
Qt,
|
|
1925
|
-
Wt,
|
|
1926
|
-
Yt,
|
|
1927
|
-
Ht,
|
|
1942
|
+
}, hn = [
|
|
1928
1943
|
Gt,
|
|
1929
|
-
en,
|
|
1930
|
-
//depends on ColumnFaceting
|
|
1931
1944
|
tn,
|
|
1932
|
-
|
|
1933
|
-
|
|
1934
|
-
|
|
1935
|
-
|
|
1945
|
+
Zt,
|
|
1946
|
+
Jt,
|
|
1947
|
+
jt,
|
|
1948
|
+
Nt,
|
|
1936
1949
|
nn,
|
|
1950
|
+
//depends on ColumnFaceting
|
|
1937
1951
|
on,
|
|
1952
|
+
//depends on ColumnFiltering
|
|
1953
|
+
mn,
|
|
1954
|
+
Wt,
|
|
1955
|
+
//depends on RowSorting
|
|
1938
1956
|
rn,
|
|
1939
1957
|
ln,
|
|
1940
|
-
|
|
1958
|
+
un,
|
|
1959
|
+
sn,
|
|
1960
|
+
Qt
|
|
1941
1961
|
];
|
|
1942
|
-
function
|
|
1962
|
+
function Sn(e) {
|
|
1943
1963
|
var o, t;
|
|
1944
1964
|
process.env.NODE_ENV !== "production" && (e.debugAll || e.debugTable) && console.info("Creating Table Instance...");
|
|
1945
|
-
const n = [...
|
|
1965
|
+
const n = [...hn, ...(o = e._features) != null ? o : []];
|
|
1946
1966
|
let r = {
|
|
1947
1967
|
_features: n
|
|
1948
1968
|
};
|
|
@@ -2022,7 +2042,7 @@ function mn(e) {
|
|
|
2022
2042
|
getAllColumns: S(() => [r._getColumnDefs()], (c) => {
|
|
2023
2043
|
const a = function(m, h, R) {
|
|
2024
2044
|
return R === void 0 && (R = 0), m.map((v) => {
|
|
2025
|
-
const x =
|
|
2045
|
+
const x = Ht(r, v, R, h), _ = v;
|
|
2026
2046
|
return x.columns = _.columns ? a(_.columns, x, R + 1) : [], x;
|
|
2027
2047
|
});
|
|
2028
2048
|
};
|
|
@@ -2046,7 +2066,7 @@ function mn(e) {
|
|
|
2046
2066
|
}
|
|
2047
2067
|
return r;
|
|
2048
2068
|
}
|
|
2049
|
-
function
|
|
2069
|
+
function Cn() {
|
|
2050
2070
|
return (e) => S(() => [e.options.data], (o) => {
|
|
2051
2071
|
const t = {
|
|
2052
2072
|
rows: [],
|
|
@@ -2056,7 +2076,7 @@ function hn() {
|
|
|
2056
2076
|
i === void 0 && (i = 0);
|
|
2057
2077
|
const u = [];
|
|
2058
2078
|
for (let g = 0; g < r.length; g++) {
|
|
2059
|
-
const d =
|
|
2079
|
+
const d = ce(e, e._getRowId(r[g], g, l), r[g], g, i, void 0, l == null ? void 0 : l.id);
|
|
2060
2080
|
if (t.flatRows.push(d), t.rowsById[d.id] = d, u.push(d), e.options.getSubRows) {
|
|
2061
2081
|
var s;
|
|
2062
2082
|
d.originalSubRows = e.options.getSubRows(r[g], g), (s = d.originalSubRows) != null && s.length && (d.subRows = n(d.originalSubRows, i + 1, d));
|
|
@@ -2067,7 +2087,7 @@ function hn() {
|
|
|
2067
2087
|
return t.rows = n(o), t;
|
|
2068
2088
|
}, C(e.options, "debugTable", "getRowModel", () => e._autoResetPageIndex()));
|
|
2069
2089
|
}
|
|
2070
|
-
function
|
|
2090
|
+
function wn(e) {
|
|
2071
2091
|
const o = [], t = (n) => {
|
|
2072
2092
|
var r;
|
|
2073
2093
|
o.push(n), (r = n.subRows) != null && r.length && n.getIsExpanded() && n.subRows.forEach(t);
|
|
@@ -2078,10 +2098,10 @@ function Sn(e) {
|
|
|
2078
2098
|
rowsById: e.rowsById
|
|
2079
2099
|
};
|
|
2080
2100
|
}
|
|
2081
|
-
function
|
|
2082
|
-
return t.options.filterFromLeafRows ?
|
|
2101
|
+
function Je(e, o, t) {
|
|
2102
|
+
return t.options.filterFromLeafRows ? Rn(e, o, t) : vn(e, o, t);
|
|
2083
2103
|
}
|
|
2084
|
-
function
|
|
2104
|
+
function Rn(e, o, t) {
|
|
2085
2105
|
var n;
|
|
2086
2106
|
const r = [], i = {}, l = (n = t.options.maxLeafRowFilterDepth) != null ? n : 100, u = function(s, g) {
|
|
2087
2107
|
g === void 0 && (g = 0);
|
|
@@ -2089,7 +2109,7 @@ function Cn(e, o, t) {
|
|
|
2089
2109
|
for (let c = 0; c < s.length; c++) {
|
|
2090
2110
|
var f;
|
|
2091
2111
|
let a = s[c];
|
|
2092
|
-
const m =
|
|
2112
|
+
const m = ce(t, a.id, a.original, a.index, a.depth, void 0, a.parentId);
|
|
2093
2113
|
if (m.columnFilters = a.columnFilters, (f = a.subRows) != null && f.length && g < l) {
|
|
2094
2114
|
if (m.subRows = u(a.subRows, g + 1), a = m, o(a) && !m.subRows.length) {
|
|
2095
2115
|
d.push(a), i[a.id] = a, r.push(a);
|
|
@@ -2110,7 +2130,7 @@ function Cn(e, o, t) {
|
|
|
2110
2130
|
rowsById: i
|
|
2111
2131
|
};
|
|
2112
2132
|
}
|
|
2113
|
-
function
|
|
2133
|
+
function vn(e, o, t) {
|
|
2114
2134
|
var n;
|
|
2115
2135
|
const r = [], i = {}, l = (n = t.options.maxLeafRowFilterDepth) != null ? n : 100, u = function(s, g) {
|
|
2116
2136
|
g === void 0 && (g = 0);
|
|
@@ -2120,7 +2140,7 @@ function wn(e, o, t) {
|
|
|
2120
2140
|
if (o(a)) {
|
|
2121
2141
|
var f;
|
|
2122
2142
|
if ((f = a.subRows) != null && f.length && g < l) {
|
|
2123
|
-
const h =
|
|
2143
|
+
const h = ce(t, a.id, a.original, a.index, a.depth, void 0, a.parentId);
|
|
2124
2144
|
h.subRows = u(a.subRows, g + 1), a = h;
|
|
2125
2145
|
}
|
|
2126
2146
|
d.push(a), r.push(a), i[a.id] = a;
|
|
@@ -2134,7 +2154,7 @@ function wn(e, o, t) {
|
|
|
2134
2154
|
rowsById: i
|
|
2135
2155
|
};
|
|
2136
2156
|
}
|
|
2137
|
-
function
|
|
2157
|
+
function xn() {
|
|
2138
2158
|
return (e, o) => S(() => [e.getPreFilteredRowModel(), e.getState().columnFilters, e.getState().globalFilter, e.getFilteredRowModel()], (t, n, r) => {
|
|
2139
2159
|
if (!t.rows.length || !(n != null && n.length) && !r)
|
|
2140
2160
|
return t;
|
|
@@ -2144,10 +2164,10 @@ function Rn() {
|
|
|
2144
2164
|
return !1;
|
|
2145
2165
|
return !0;
|
|
2146
2166
|
};
|
|
2147
|
-
return
|
|
2167
|
+
return Je(t.rows, l, e);
|
|
2148
2168
|
}, C(e.options, "debugTable", "getFacetedRowModel"));
|
|
2149
2169
|
}
|
|
2150
|
-
function
|
|
2170
|
+
function _n() {
|
|
2151
2171
|
return (e, o) => S(() => {
|
|
2152
2172
|
var t;
|
|
2153
2173
|
return [(t = e.getColumn(o)) == null ? void 0 : t.getFacetedRowModel()];
|
|
@@ -2168,7 +2188,7 @@ function vn() {
|
|
|
2168
2188
|
return n;
|
|
2169
2189
|
}, C(e.options, "debugTable", `getFacetedUniqueValues_${o}`));
|
|
2170
2190
|
}
|
|
2171
|
-
function
|
|
2191
|
+
function Fn() {
|
|
2172
2192
|
return (e) => S(() => [e.getPreFilteredRowModel(), e.getState().columnFilters, e.getState().globalFilter], (o, t, n) => {
|
|
2173
2193
|
if (!o.rows.length || !(t != null && t.length) && !n) {
|
|
2174
2194
|
for (let c = 0; c < o.flatRows.length; c++)
|
|
@@ -2232,10 +2252,10 @@ function xn() {
|
|
|
2232
2252
|
return !1;
|
|
2233
2253
|
return !0;
|
|
2234
2254
|
};
|
|
2235
|
-
return
|
|
2255
|
+
return Je(o.rows, f, e);
|
|
2236
2256
|
}, C(e.options, "debugTable", "getFilteredRowModel", () => e._autoResetPageIndex()));
|
|
2237
2257
|
}
|
|
2238
|
-
function
|
|
2258
|
+
function yn(e) {
|
|
2239
2259
|
return (o) => S(() => [o.getState().pagination, o.getPrePaginationRowModel(), o.options.paginateExpandedRows ? void 0 : o.getState().expanded], (t, n) => {
|
|
2240
2260
|
if (!n.rows.length)
|
|
2241
2261
|
return n;
|
|
@@ -2255,7 +2275,7 @@ function _n(e) {
|
|
|
2255
2275
|
rows: l,
|
|
2256
2276
|
flatRows: u,
|
|
2257
2277
|
rowsById: s
|
|
2258
|
-
} : f =
|
|
2278
|
+
} : f = wn({
|
|
2259
2279
|
rows: l,
|
|
2260
2280
|
flatRows: u,
|
|
2261
2281
|
rowsById: s
|
|
@@ -2266,7 +2286,7 @@ function _n(e) {
|
|
|
2266
2286
|
return f.rows.forEach(c), f;
|
|
2267
2287
|
}, C(o.options, "debugTable", "getPaginationRowModel"));
|
|
2268
2288
|
}
|
|
2269
|
-
function
|
|
2289
|
+
function $n() {
|
|
2270
2290
|
return (e) => S(() => [e.getState().sorting, e.getPreSortedRowModel()], (o, t) => {
|
|
2271
2291
|
if (!t.rows.length || !(o != null && o.length))
|
|
2272
2292
|
return t;
|
|
@@ -2326,21 +2346,21 @@ function Fn() {
|
|
|
2326
2346
|
* @license MIT
|
|
2327
2347
|
*/
|
|
2328
2348
|
function q(e, o) {
|
|
2329
|
-
return e ?
|
|
2349
|
+
return e ? Vn(e) ? /* @__PURE__ */ E.createElement(e, o) : e : null;
|
|
2330
2350
|
}
|
|
2331
|
-
function
|
|
2332
|
-
return
|
|
2351
|
+
function Vn(e) {
|
|
2352
|
+
return Mn(e) || typeof e == "function" || In(e);
|
|
2333
2353
|
}
|
|
2334
|
-
function
|
|
2354
|
+
function Mn(e) {
|
|
2335
2355
|
return typeof e == "function" && (() => {
|
|
2336
2356
|
const o = Object.getPrototypeOf(e);
|
|
2337
2357
|
return o.prototype && o.prototype.isReactComponent;
|
|
2338
2358
|
})();
|
|
2339
2359
|
}
|
|
2340
|
-
function
|
|
2360
|
+
function In(e) {
|
|
2341
2361
|
return typeof e == "object" && typeof e.$$typeof == "symbol" && ["react.memo", "react.forward_ref"].includes(e.$$typeof.description);
|
|
2342
2362
|
}
|
|
2343
|
-
function
|
|
2363
|
+
function Pn(e) {
|
|
2344
2364
|
const o = {
|
|
2345
2365
|
state: {},
|
|
2346
2366
|
// Dummy state
|
|
@@ -2350,7 +2370,7 @@ function Mn(e) {
|
|
|
2350
2370
|
renderFallbackValue: null,
|
|
2351
2371
|
...e
|
|
2352
2372
|
}, [t] = E.useState(() => ({
|
|
2353
|
-
current:
|
|
2373
|
+
current: Sn(o)
|
|
2354
2374
|
})), [n, r] = E.useState(() => t.current.initialState);
|
|
2355
2375
|
return t.current.setOptions((i) => ({
|
|
2356
2376
|
...i,
|
|
@@ -2366,7 +2386,7 @@ function Mn(e) {
|
|
|
2366
2386
|
}
|
|
2367
2387
|
})), t.current;
|
|
2368
2388
|
}
|
|
2369
|
-
const
|
|
2389
|
+
const En = ({
|
|
2370
2390
|
page: e = 1,
|
|
2371
2391
|
between: o = 3,
|
|
2372
2392
|
totalPages: t,
|
|
@@ -2390,7 +2410,7 @@ const In = ({
|
|
|
2390
2410
|
className: w("mob-body-regular-l w-[40px] p-0 text-color-dark disabled:text-icon-disabled", l == null ? void 0 : l.button),
|
|
2391
2411
|
disabled: e <= 1,
|
|
2392
2412
|
onClick: () => e > 1 && n(e - 2),
|
|
2393
|
-
children: /* @__PURE__ */ p.jsx(
|
|
2413
|
+
children: /* @__PURE__ */ p.jsx(N, { name: "arrows/arrowRight", className: "rotate-180" })
|
|
2394
2414
|
}
|
|
2395
2415
|
),
|
|
2396
2416
|
t > s && i > 0 && u.slice(0, e - 1 <= o ? 0 : i).map((d) => /* @__PURE__ */ p.jsx(
|
|
@@ -2461,11 +2481,11 @@ const In = ({
|
|
|
2461
2481
|
className: w("mob-body-regular-l w-[40px] p-0 text-color-dark disabled:text-icon-disabled", l == null ? void 0 : l.button),
|
|
2462
2482
|
disabled: e >= t,
|
|
2463
2483
|
onClick: () => e < t && n(e),
|
|
2464
|
-
children: /* @__PURE__ */ p.jsx(
|
|
2484
|
+
children: /* @__PURE__ */ p.jsx(N, { name: "arrows/arrowRight" })
|
|
2465
2485
|
}
|
|
2466
2486
|
)
|
|
2467
2487
|
] });
|
|
2468
|
-
},
|
|
2488
|
+
}, Dn = ({ page: e, pageCount: o, pageSize: t, onPageIndexChange: n, rowsCount: r, classes: i }) => {
|
|
2469
2489
|
const l = t * e, u = l > r ? r : l;
|
|
2470
2490
|
return /* @__PURE__ */ p.jsxs("div", { className: w("flex w-full items-center justify-between", i == null ? void 0 : i.root), children: [
|
|
2471
2491
|
/* @__PURE__ */ p.jsxs("span", { className: w("desk-body-regular-m text-color-tetriary", i == null ? void 0 : i.displayShown), children: [
|
|
@@ -2475,7 +2495,7 @@ const In = ({
|
|
|
2475
2495
|
r
|
|
2476
2496
|
] }),
|
|
2477
2497
|
/* @__PURE__ */ p.jsx(
|
|
2478
|
-
|
|
2498
|
+
En,
|
|
2479
2499
|
{
|
|
2480
2500
|
totalPages: o,
|
|
2481
2501
|
changePage: (s) => n(s),
|
|
@@ -2485,7 +2505,7 @@ const In = ({
|
|
|
2485
2505
|
}
|
|
2486
2506
|
)
|
|
2487
2507
|
] });
|
|
2488
|
-
},
|
|
2508
|
+
}, Ln = ({ mode: e, enableHeaders: o, table: t, classes: n, pagination: r }) => {
|
|
2489
2509
|
const i = r !== !1 && t.getPageCount() > 1, l = {
|
|
2490
2510
|
pageCount: t.getPageCount(),
|
|
2491
2511
|
rowsCount: t.getCoreRowModel().rows.length,
|
|
@@ -2495,8 +2515,8 @@ const In = ({
|
|
|
2495
2515
|
classes: n == null ? void 0 : n.pagination
|
|
2496
2516
|
};
|
|
2497
2517
|
return /* @__PURE__ */ p.jsxs("div", { className: w("flex w-full flex-col gap-y-4", n == null ? void 0 : n.root), children: [
|
|
2498
|
-
/* @__PURE__ */ p.jsxs(
|
|
2499
|
-
o && /* @__PURE__ */ p.jsx(
|
|
2518
|
+
/* @__PURE__ */ p.jsxs(Ne, { className: w("w-full", n == null ? void 0 : n.table), children: [
|
|
2519
|
+
o && /* @__PURE__ */ p.jsx(ze, { className: "px-2", children: t.getHeaderGroups().map((u) => /* @__PURE__ */ p.jsx(
|
|
2500
2520
|
B,
|
|
2501
2521
|
{
|
|
2502
2522
|
className: w(
|
|
@@ -2507,7 +2527,7 @@ const In = ({
|
|
|
2507
2527
|
n == null ? void 0 : n.tableHeader
|
|
2508
2528
|
),
|
|
2509
2529
|
children: u.headers.map((s) => /* @__PURE__ */ p.jsx(
|
|
2510
|
-
|
|
2530
|
+
Oe,
|
|
2511
2531
|
{
|
|
2512
2532
|
className: w(
|
|
2513
2533
|
"py-3",
|
|
@@ -2523,7 +2543,7 @@ const In = ({
|
|
|
2523
2543
|
},
|
|
2524
2544
|
u.id
|
|
2525
2545
|
)) }),
|
|
2526
|
-
/* @__PURE__ */ p.jsx(
|
|
2546
|
+
/* @__PURE__ */ p.jsx(Te, { children: t.getRowModel().rows.length ? t.getRowModel().rows.map((u) => /* @__PURE__ */ p.jsx(
|
|
2527
2547
|
B,
|
|
2528
2548
|
{
|
|
2529
2549
|
className: w(
|
|
@@ -2535,7 +2555,7 @@ const In = ({
|
|
|
2535
2555
|
n == null ? void 0 : n.tableRow
|
|
2536
2556
|
),
|
|
2537
2557
|
children: u.getVisibleCells().map((s, g) => /* @__PURE__ */ p.jsx(
|
|
2538
|
-
|
|
2558
|
+
oe,
|
|
2539
2559
|
{
|
|
2540
2560
|
className: w(
|
|
2541
2561
|
"py-3",
|
|
@@ -2551,11 +2571,11 @@ const In = ({
|
|
|
2551
2571
|
))
|
|
2552
2572
|
},
|
|
2553
2573
|
u.id
|
|
2554
|
-
)) : /* @__PURE__ */ p.jsx(B, { children: /* @__PURE__ */ p.jsx(
|
|
2574
|
+
)) : /* @__PURE__ */ p.jsx(B, { children: /* @__PURE__ */ p.jsx(oe, { colSpan: t.getRowCount(), children: "Not found" }) }) })
|
|
2555
2575
|
] }),
|
|
2556
|
-
i ? typeof r == "function" ? r(l) : /* @__PURE__ */ p.jsx(
|
|
2576
|
+
i ? typeof r == "function" ? r(l) : /* @__PURE__ */ p.jsx(Dn, { ...l }) : null
|
|
2557
2577
|
] });
|
|
2558
|
-
},
|
|
2578
|
+
}, bn = ({
|
|
2559
2579
|
mode: e,
|
|
2560
2580
|
enableHeaders: o,
|
|
2561
2581
|
table: t,
|
|
@@ -2593,7 +2613,7 @@ const In = ({
|
|
|
2593
2613
|
})
|
|
2594
2614
|
},
|
|
2595
2615
|
r.id
|
|
2596
|
-
)) : /* @__PURE__ */ p.jsx("div", { children: "Not found" }) }),
|
|
2616
|
+
)) : /* @__PURE__ */ p.jsx("div", { children: "Not found" }) }), Qn = ({
|
|
2597
2617
|
columns: e,
|
|
2598
2618
|
data: o,
|
|
2599
2619
|
enableHeaders: t = !0,
|
|
@@ -2601,25 +2621,25 @@ const In = ({
|
|
|
2601
2621
|
classes: r,
|
|
2602
2622
|
pagination: i = !0
|
|
2603
2623
|
}) => {
|
|
2604
|
-
const [l, u] =
|
|
2624
|
+
const [l, u] = ne([]), [s, g] = ne([]), d = Pn({
|
|
2605
2625
|
data: o,
|
|
2606
2626
|
columns: e,
|
|
2607
2627
|
state: { columnFilters: l, sorting: s },
|
|
2608
2628
|
enableRowSelection: !0,
|
|
2609
2629
|
onSortingChange: g,
|
|
2610
2630
|
onColumnFiltersChange: u,
|
|
2611
|
-
getCoreRowModel:
|
|
2612
|
-
getFilteredRowModel:
|
|
2613
|
-
getSortedRowModel:
|
|
2614
|
-
getFacetedRowModel:
|
|
2615
|
-
getFacetedUniqueValues:
|
|
2616
|
-
getPaginationRowModel:
|
|
2617
|
-
}), { isMobile: f } =
|
|
2618
|
-
return f ? /* @__PURE__ */ p.jsx(
|
|
2631
|
+
getCoreRowModel: Cn(),
|
|
2632
|
+
getFilteredRowModel: Fn(),
|
|
2633
|
+
getSortedRowModel: $n(),
|
|
2634
|
+
getFacetedRowModel: xn(),
|
|
2635
|
+
getFacetedUniqueValues: _n(),
|
|
2636
|
+
getPaginationRowModel: yn()
|
|
2637
|
+
}), { isMobile: f } = Me();
|
|
2638
|
+
return f ? /* @__PURE__ */ p.jsx(bn, { table: d, enableHeaders: t, mode: n, classes: r }) : /* @__PURE__ */ p.jsx(Ln, { table: d, enableHeaders: t, mode: n, pagination: i, classes: r });
|
|
2619
2639
|
};
|
|
2620
|
-
class
|
|
2640
|
+
class eo {
|
|
2621
2641
|
static getColumnHelper() {
|
|
2622
|
-
return
|
|
2642
|
+
return Dt();
|
|
2623
2643
|
}
|
|
2624
2644
|
static getColumns(o, t) {
|
|
2625
2645
|
const {
|
|
@@ -2633,7 +2653,7 @@ class Jn {
|
|
|
2633
2653
|
header: (d) => {
|
|
2634
2654
|
const { column: f } = d, c = u ? u[g] : null;
|
|
2635
2655
|
return /* @__PURE__ */ p.jsx(
|
|
2636
|
-
|
|
2656
|
+
Et,
|
|
2637
2657
|
{
|
|
2638
2658
|
isSorted: f.getIsSorted() === "desc",
|
|
2639
2659
|
nextSortingOrder: f.getNextSortingOrder(),
|
|
@@ -2652,12 +2672,12 @@ class Jn {
|
|
|
2652
2672
|
}));
|
|
2653
2673
|
}
|
|
2654
2674
|
}
|
|
2655
|
-
const
|
|
2656
|
-
const { toasts: t } =
|
|
2657
|
-
return
|
|
2658
|
-
t.filter((n) => n.visible).filter((n, r) => r >= e).forEach((n) =>
|
|
2675
|
+
const to = ({ maxToastViewLimit: e = 2, toastDuration: o = 5e3 }) => {
|
|
2676
|
+
const { toasts: t } = ft();
|
|
2677
|
+
return ye(() => {
|
|
2678
|
+
t.filter((n) => n.visible).filter((n, r) => r >= e).forEach((n) => pt.dismiss(n.id));
|
|
2659
2679
|
}, [e, t]), /* @__PURE__ */ p.jsx(
|
|
2660
|
-
|
|
2680
|
+
mt,
|
|
2661
2681
|
{
|
|
2662
2682
|
position: "top-center",
|
|
2663
2683
|
toastOptions: {
|
|
@@ -2665,7 +2685,7 @@ const Qn = ({ maxToastViewLimit: e = 2, toastDuration: o = 5e3 }) => {
|
|
|
2665
2685
|
}
|
|
2666
2686
|
}
|
|
2667
2687
|
);
|
|
2668
|
-
},
|
|
2688
|
+
}, no = ({ linksList: e }) => /* @__PURE__ */ p.jsx("div", { "aria-label": "Breadcrumb", className: "flex max-w-[840px] items-center gap-2", children: e.map((o) => /* @__PURE__ */ p.jsx(p.Fragment, { children: "path" in o ? /* @__PURE__ */ p.jsxs(
|
|
2669
2689
|
"div",
|
|
2670
2690
|
{
|
|
2671
2691
|
className: w(
|
|
@@ -2687,7 +2707,7 @@ const Qn = ({ maxToastViewLimit: e = 2, toastDuration: o = 5e3 }) => {
|
|
|
2687
2707
|
}
|
|
2688
2708
|
),
|
|
2689
2709
|
/* @__PURE__ */ p.jsx(
|
|
2690
|
-
|
|
2710
|
+
N,
|
|
2691
2711
|
{
|
|
2692
2712
|
name: "arrows/arrowRight",
|
|
2693
2713
|
className: w("size-4 text-icon-primary-default", { "!text-icon-disabled": o == null ? void 0 : o.isDisabled })
|
|
@@ -2695,24 +2715,24 @@ const Qn = ({ maxToastViewLimit: e = 2, toastDuration: o = 5e3 }) => {
|
|
|
2695
2715
|
)
|
|
2696
2716
|
]
|
|
2697
2717
|
}
|
|
2698
|
-
) : /* @__PURE__ */ p.jsx("div", { "aria-current": "page", className: "desk-body-regular-m text-color-blue-grey-600", children: o.label }) })) }),
|
|
2718
|
+
) : /* @__PURE__ */ p.jsx("div", { "aria-current": "page", className: "desk-body-regular-m text-color-blue-grey-600", children: o.label }) })) }), An = ({ children: e }) => /* @__PURE__ */ p.jsx(p.Fragment, { children: e }), ae = M(({ children: e, ...o }, t) => {
|
|
2699
2719
|
if (k(e)) {
|
|
2700
|
-
const n =
|
|
2701
|
-
return
|
|
2702
|
-
...
|
|
2720
|
+
const n = Gn(e);
|
|
2721
|
+
return $e(e, {
|
|
2722
|
+
...jn(o, e.props),
|
|
2703
2723
|
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
2704
2724
|
// @ts-expect-error
|
|
2705
|
-
ref: t ?
|
|
2725
|
+
ref: t ? St(t, n) : n
|
|
2706
2726
|
});
|
|
2707
2727
|
}
|
|
2708
2728
|
return G.count(e) > 1 ? G.only(null) : null;
|
|
2709
2729
|
});
|
|
2710
|
-
|
|
2711
|
-
const
|
|
2730
|
+
ae.displayName = "SlotClone";
|
|
2731
|
+
const Hn = (e) => k(e) && e.type === An, Gn = (e) => {
|
|
2712
2732
|
var n, r;
|
|
2713
2733
|
let o = (n = Object.getOwnPropertyDescriptor(e.props, "ref")) == null ? void 0 : n.get, t = o && "isReactWarning" in o && o.isReactWarning;
|
|
2714
2734
|
return t ? e.ref : (o = (r = Object.getOwnPropertyDescriptor(e, "ref")) == null ? void 0 : r.get, t = o && "isReactWarning" in o && o.isReactWarning, t ? e.props.ref : e.props.ref || e.ref);
|
|
2715
|
-
},
|
|
2735
|
+
}, jn = (e, o) => {
|
|
2716
2736
|
const t = { ...o };
|
|
2717
2737
|
for (const n in o) {
|
|
2718
2738
|
const r = e[n], i = o[n];
|
|
@@ -2721,60 +2741,60 @@ const bn = (e) => k(e) && e.type === Ln, An = (e) => {
|
|
|
2721
2741
|
}) : r ? t[n] = r : n === "style" ? t[n] = { ...r, ...i } : n === "className" && (t[n] = [r, i].filter(Boolean).join(" "));
|
|
2722
2742
|
}
|
|
2723
2743
|
return { ...e, ...t };
|
|
2724
|
-
},
|
|
2725
|
-
const n = G.toArray(e), r = n.find(
|
|
2744
|
+
}, Nn = M(({ children: e, ...o }, t) => {
|
|
2745
|
+
const n = G.toArray(e), r = n.find(Hn);
|
|
2726
2746
|
if (r) {
|
|
2727
2747
|
const i = r.props.children, l = n.map((u) => u === r ? G.count(i) > 1 ? G.only(null) : k(i) ? i.props.children : null : u);
|
|
2728
|
-
return /* @__PURE__ */ p.jsx(
|
|
2748
|
+
return /* @__PURE__ */ p.jsx(ae, { ...o, ref: t, children: k(i) ? $e(i, void 0, l) : null });
|
|
2729
2749
|
}
|
|
2730
|
-
return /* @__PURE__ */ p.jsx(
|
|
2750
|
+
return /* @__PURE__ */ p.jsx(ae, { ...o, ref: t, children: e });
|
|
2731
2751
|
});
|
|
2732
|
-
|
|
2752
|
+
Nn.displayName = "Slot";
|
|
2733
2753
|
export {
|
|
2734
|
-
|
|
2735
|
-
|
|
2736
|
-
|
|
2754
|
+
gt as Accordion,
|
|
2755
|
+
io as Badge,
|
|
2756
|
+
no as Breadcrumbs,
|
|
2737
2757
|
D as Button,
|
|
2738
|
-
|
|
2739
|
-
|
|
2740
|
-
|
|
2741
|
-
|
|
2742
|
-
|
|
2743
|
-
|
|
2744
|
-
|
|
2745
|
-
|
|
2746
|
-
|
|
2747
|
-
|
|
2748
|
-
|
|
2749
|
-
|
|
2750
|
-
|
|
2751
|
-
|
|
2752
|
-
|
|
2753
|
-
|
|
2754
|
-
|
|
2755
|
-
|
|
2756
|
-
|
|
2757
|
-
|
|
2758
|
-
|
|
2759
|
-
|
|
2760
|
-
|
|
2761
|
-
|
|
2762
|
-
|
|
2763
|
-
|
|
2764
|
-
|
|
2765
|
-
|
|
2766
|
-
|
|
2767
|
-
|
|
2758
|
+
Un as ButtonIcon,
|
|
2759
|
+
lo as Calendar,
|
|
2760
|
+
uo as Controlled,
|
|
2761
|
+
so as CustomLink,
|
|
2762
|
+
vo as DATE_VISIBLE_PATTERN,
|
|
2763
|
+
Qn as DataTable,
|
|
2764
|
+
Et as DataTableColumnHeader,
|
|
2765
|
+
Xn as FloatButton,
|
|
2766
|
+
dt as Heading,
|
|
2767
|
+
ao as Hint,
|
|
2768
|
+
N as Icon,
|
|
2769
|
+
go as KeyboardShortcuts,
|
|
2770
|
+
co as Loader,
|
|
2771
|
+
Jn as Modal,
|
|
2772
|
+
fo as Notification,
|
|
2773
|
+
to as NotificationProvider,
|
|
2774
|
+
En as Pagination,
|
|
2775
|
+
po as PhoneView,
|
|
2776
|
+
mo as Popover,
|
|
2777
|
+
ho as ProgressBar,
|
|
2778
|
+
nt as ResponsiveContainer,
|
|
2779
|
+
Kn as Skeleton,
|
|
2780
|
+
Nn as Slot,
|
|
2781
|
+
Ne as Table,
|
|
2782
|
+
Te as TableBody,
|
|
2783
|
+
Pt as TableCaption,
|
|
2784
|
+
oe as TableCell,
|
|
2785
|
+
It as TableFooter,
|
|
2786
|
+
Oe as TableHead,
|
|
2787
|
+
ze as TableHeader,
|
|
2768
2788
|
B as TableRow,
|
|
2769
|
-
|
|
2770
|
-
|
|
2771
|
-
|
|
2772
|
-
|
|
2773
|
-
|
|
2774
|
-
|
|
2775
|
-
|
|
2776
|
-
|
|
2777
|
-
|
|
2778
|
-
|
|
2789
|
+
eo as TableUtils,
|
|
2790
|
+
Zn as TabsSwitcher,
|
|
2791
|
+
So as Uncontrolled,
|
|
2792
|
+
Wn as allowedIcons,
|
|
2793
|
+
Co as brandLogos,
|
|
2794
|
+
xo as defaultClassNames,
|
|
2795
|
+
_o as formatDateToLocaleString,
|
|
2796
|
+
Fo as formatDateToMonthString,
|
|
2797
|
+
yo as formatDateToYearString,
|
|
2798
|
+
wo as isSingleOption
|
|
2779
2799
|
};
|
|
2780
2800
|
//# sourceMappingURL=ui.js.map
|