@fileflow/sdk 0.1.8 → 0.1.9
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/{ImportWizard-CptGek_O.js → ImportWizard-D5B5j2TQ.js} +5 -5
- package/dist/{ImportWizard-CptGek_O.js.map → ImportWizard-D5B5j2TQ.js.map} +1 -1
- package/dist/{ImportWizard-Bl9foTic.mjs → ImportWizard-DrDHQwnE.mjs} +271 -271
- package/dist/{ImportWizard-Bl9foTic.mjs.map → ImportWizard-DrDHQwnE.mjs.map} +1 -1
- package/dist/{KYCWizard-B73SHhAI.js → KYCWizard-C1PumBBm.js} +3 -3
- package/dist/KYCWizard-C1PumBBm.js.map +1 -0
- package/dist/{KYCWizard-D4RKtikr.mjs → KYCWizard-W1poXII_.mjs} +40 -40
- package/dist/KYCWizard-W1poXII_.mjs.map +1 -0
- package/dist/import.js +1 -1
- package/dist/import.mjs +1 -1
- package/dist/index-A7EopL2N.js +112 -0
- package/dist/index-A7EopL2N.js.map +1 -0
- package/dist/{index-CEvc89fO.mjs → index-BIGw5rPX.mjs} +3037 -2998
- package/dist/index-BIGw5rPX.mjs.map +1 -0
- package/dist/index.d.ts +33 -0
- package/dist/index.js +1 -1
- package/dist/index.mjs +21 -18
- package/dist/kyc.js +1 -1
- package/dist/kyc.mjs +1 -1
- package/package.json +3 -7
- package/dist/KYCWizard-B73SHhAI.js.map +0 -1
- package/dist/KYCWizard-D4RKtikr.mjs.map +0 -1
- package/dist/index-CEvc89fO.mjs.map +0 -1
- package/dist/index-VbMSbLb2.js +0 -112
- package/dist/index-VbMSbLb2.js.map +0 -1
- package/dist/style.css +0 -1
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { jsx as g, jsxs as w, Fragment as
|
|
2
|
-
import * as
|
|
3
|
-
import
|
|
4
|
-
import {
|
|
1
|
+
import { jsx as g, jsxs as w, Fragment as tt } from "react/jsx-runtime";
|
|
2
|
+
import * as ce from "react";
|
|
3
|
+
import nt, { useCallback as Re, useState as Y, useMemo as Pe, useEffect as Ne } from "react";
|
|
4
|
+
import { h as k, j as ot, k as rt, X as pe, m as A, U as be, A as xe, o as me, q as lt, p as ye, n as De, t as it, d as st, V as Le, g as Z, S as re, L as Ee } from "./index-BIGw5rPX.mjs";
|
|
5
5
|
/**
|
|
6
6
|
* @license lucide-react v0.321.0 - ISC
|
|
7
7
|
*
|
|
8
8
|
* This source code is licensed under the ISC license.
|
|
9
9
|
* See the LICENSE file in the root directory of this source tree.
|
|
10
10
|
*/
|
|
11
|
-
const
|
|
11
|
+
const at = k("ArrowRight", [
|
|
12
12
|
["path", { d: "M5 12h14", key: "1ays0h" }],
|
|
13
13
|
["path", { d: "m12 5 7 7-7 7", key: "xquz4c" }]
|
|
14
14
|
]);
|
|
@@ -18,7 +18,7 @@ const st = k("ArrowRight", [
|
|
|
18
18
|
* This source code is licensed under the ISC license.
|
|
19
19
|
* See the LICENSE file in the root directory of this source tree.
|
|
20
20
|
*/
|
|
21
|
-
const
|
|
21
|
+
const ut = k("CheckSquare", [
|
|
22
22
|
["path", { d: "m9 11 3 3L22 4", key: "1pflzl" }],
|
|
23
23
|
["path", { d: "M21 12v7a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h11", key: "1jnkn4" }]
|
|
24
24
|
]);
|
|
@@ -28,14 +28,14 @@ const at = k("CheckSquare", [
|
|
|
28
28
|
* This source code is licensed under the ISC license.
|
|
29
29
|
* See the LICENSE file in the root directory of this source tree.
|
|
30
30
|
*/
|
|
31
|
-
const
|
|
31
|
+
const ft = k("Check", [["path", { d: "M20 6 9 17l-5-5", key: "1gmf2c" }]]);
|
|
32
32
|
/**
|
|
33
33
|
* @license lucide-react v0.321.0 - ISC
|
|
34
34
|
*
|
|
35
35
|
* This source code is licensed under the ISC license.
|
|
36
36
|
* See the LICENSE file in the root directory of this source tree.
|
|
37
37
|
*/
|
|
38
|
-
const
|
|
38
|
+
const dt = k("ChevronLeft", [
|
|
39
39
|
["path", { d: "m15 18-6-6 6-6", key: "1wnfg3" }]
|
|
40
40
|
]);
|
|
41
41
|
/**
|
|
@@ -44,7 +44,7 @@ const ft = k("ChevronLeft", [
|
|
|
44
44
|
* This source code is licensed under the ISC license.
|
|
45
45
|
* See the LICENSE file in the root directory of this source tree.
|
|
46
46
|
*/
|
|
47
|
-
const
|
|
47
|
+
const gt = k("Eye", [
|
|
48
48
|
["path", { d: "M2 12s3-7 10-7 10 7 10 7-3 7-10 7-10-7-10-7Z", key: "rwhkz3" }],
|
|
49
49
|
["circle", { cx: "12", cy: "12", r: "3", key: "1v7zrd" }]
|
|
50
50
|
]);
|
|
@@ -54,7 +54,7 @@ const dt = k("Eye", [
|
|
|
54
54
|
* This source code is licensed under the ISC license.
|
|
55
55
|
* See the LICENSE file in the root directory of this source tree.
|
|
56
56
|
*/
|
|
57
|
-
const
|
|
57
|
+
const ct = k("FileSpreadsheet", [
|
|
58
58
|
["path", { d: "M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z", key: "1rqfz7" }],
|
|
59
59
|
["path", { d: "M14 2v4a2 2 0 0 0 2 2h4", key: "tnqrlb" }],
|
|
60
60
|
["path", { d: "M8 13h2", key: "yr2amv" }],
|
|
@@ -68,7 +68,7 @@ const gt = k("FileSpreadsheet", [
|
|
|
68
68
|
* This source code is licensed under the ISC license.
|
|
69
69
|
* See the LICENSE file in the root directory of this source tree.
|
|
70
70
|
*/
|
|
71
|
-
const
|
|
71
|
+
const pt = k("File", [
|
|
72
72
|
["path", { d: "M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z", key: "1rqfz7" }],
|
|
73
73
|
["path", { d: "M14 2v4a2 2 0 0 0 2 2h4", key: "tnqrlb" }]
|
|
74
74
|
]);
|
|
@@ -78,7 +78,7 @@ const ct = k("File", [
|
|
|
78
78
|
* This source code is licensed under the ISC license.
|
|
79
79
|
* See the LICENSE file in the root directory of this source tree.
|
|
80
80
|
*/
|
|
81
|
-
const
|
|
81
|
+
const mt = k("GitBranch", [
|
|
82
82
|
["line", { x1: "6", x2: "6", y1: "3", y2: "15", key: "17qcm7" }],
|
|
83
83
|
["circle", { cx: "18", cy: "6", r: "3", key: "1h7g24" }],
|
|
84
84
|
["circle", { cx: "6", cy: "18", r: "3", key: "fqmcym" }],
|
|
@@ -90,7 +90,7 @@ const pt = k("GitBranch", [
|
|
|
90
90
|
* This source code is licensed under the ISC license.
|
|
91
91
|
* See the LICENSE file in the root directory of this source tree.
|
|
92
92
|
*/
|
|
93
|
-
const
|
|
93
|
+
const ht = k("HelpCircle", [
|
|
94
94
|
["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }],
|
|
95
95
|
["path", { d: "M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3", key: "1u773s" }],
|
|
96
96
|
["path", { d: "M12 17h.01", key: "p32p05" }]
|
|
@@ -101,9 +101,9 @@ const mt = k("HelpCircle", [
|
|
|
101
101
|
* This source code is licensed under the ISC license.
|
|
102
102
|
* See the LICENSE file in the root directory of this source tree.
|
|
103
103
|
*/
|
|
104
|
-
const
|
|
104
|
+
const wt = k("Pen", [
|
|
105
105
|
["path", { d: "M17 3a2.85 2.83 0 1 1 4 4L7.5 20.5 2 22l1.5-5.5Z", key: "5qss01" }]
|
|
106
|
-
]),
|
|
106
|
+
]), He = {
|
|
107
107
|
sessionId: null,
|
|
108
108
|
status: "idle",
|
|
109
109
|
step: "upload",
|
|
@@ -124,8 +124,8 @@ const ht = k("Pen", [
|
|
|
124
124
|
error: null,
|
|
125
125
|
editingCell: null,
|
|
126
126
|
editedRows: /* @__PURE__ */ new Set()
|
|
127
|
-
}, U =
|
|
128
|
-
...
|
|
127
|
+
}, U = ot((e, o) => ({
|
|
128
|
+
...He,
|
|
129
129
|
setSchema: (t) => e({ schema: t }),
|
|
130
130
|
setSessionId: (t) => e({ sessionId: t }),
|
|
131
131
|
setFile: (t) => e({
|
|
@@ -178,14 +178,14 @@ const ht = k("Pen", [
|
|
|
178
178
|
setStatus: (t) => e({ status: t }),
|
|
179
179
|
setLoading: (t) => e({ isLoading: t }),
|
|
180
180
|
setError: (t) => e({ error: t }),
|
|
181
|
-
reset: () => e(
|
|
182
|
-
})),
|
|
181
|
+
reset: () => e(He)
|
|
182
|
+
})), vt = ({
|
|
183
183
|
onFileSelect: e,
|
|
184
184
|
maxSize: o = 50 * 1024 * 1024,
|
|
185
185
|
// 50MB
|
|
186
186
|
acceptedTypes: t = [".csv", ".xlsx", ".xls"]
|
|
187
187
|
}) => {
|
|
188
|
-
const { file: n, fileName: r, fileSize: l, setFile: i, error: a, setError: u, isLoading: f } = U(), c =
|
|
188
|
+
const { file: n, fileName: r, fileSize: l, setFile: i, error: a, setError: u, isLoading: f } = U(), c = Re(
|
|
189
189
|
(v, R) => {
|
|
190
190
|
if (R.length > 0) {
|
|
191
191
|
u("Invalid file type or file too large");
|
|
@@ -197,7 +197,7 @@ const ht = k("Pen", [
|
|
|
197
197
|
}
|
|
198
198
|
},
|
|
199
199
|
[e, i, u]
|
|
200
|
-
), { getRootProps: p, getInputProps: d, isDragActive: s } =
|
|
200
|
+
), { getRootProps: p, getInputProps: d, isDragActive: s } = rt({
|
|
201
201
|
onDrop: c,
|
|
202
202
|
accept: {
|
|
203
203
|
"text/csv": [".csv"],
|
|
@@ -211,7 +211,7 @@ const ht = k("Pen", [
|
|
|
211
211
|
v.stopPropagation(), U.getState().reset();
|
|
212
212
|
};
|
|
213
213
|
return n ? /* @__PURE__ */ g("div", { className: "ff-p-4 ff-rounded-xl ff-border", style: { backgroundColor: "var(--ff-success-light)", borderColor: "var(--ff-success)" }, children: /* @__PURE__ */ w("div", { className: "ff-flex ff-items-center ff-gap-3", children: [
|
|
214
|
-
/* @__PURE__ */ g("div", { className: "ff-p-2 ff-rounded-lg", style: { backgroundColor: "rgba(41, 142, 51, 0.15)" }, children: /* @__PURE__ */ g(
|
|
214
|
+
/* @__PURE__ */ g("div", { className: "ff-p-2 ff-rounded-lg", style: { backgroundColor: "rgba(41, 142, 51, 0.15)" }, children: /* @__PURE__ */ g(pt, { className: "ff-w-6 ff-h-6", style: { color: "var(--ff-success)" } }) }),
|
|
215
215
|
/* @__PURE__ */ w("div", { className: "ff-flex-1 ff-min-w-0", children: [
|
|
216
216
|
/* @__PURE__ */ g("p", { className: "ff-font-medium ff-truncate", style: { color: "var(--ff-success-dark)" }, children: r }),
|
|
217
217
|
/* @__PURE__ */ g("p", { className: "ff-text-sm", style: { color: "var(--ff-success)" }, children: m(l || 0) })
|
|
@@ -223,7 +223,7 @@ const ht = k("Pen", [
|
|
|
223
223
|
className: "ff-p-1.5 ff-rounded-full ff-transition-colors",
|
|
224
224
|
style: { color: "var(--ff-success)" },
|
|
225
225
|
"aria-label": "Remove file",
|
|
226
|
-
children: /* @__PURE__ */ g(
|
|
226
|
+
children: /* @__PURE__ */ g(pe, { className: "ff-w-5 ff-h-5" })
|
|
227
227
|
}
|
|
228
228
|
)
|
|
229
229
|
] }) }) : /* @__PURE__ */ w("div", { className: "ff-space-y-6", children: [
|
|
@@ -238,7 +238,7 @@ const ht = k("Pen", [
|
|
|
238
238
|
),
|
|
239
239
|
children: [
|
|
240
240
|
/* @__PURE__ */ g("input", { ...d() }),
|
|
241
|
-
/* @__PURE__ */ g("div", { className: "ff-dropzone-icon-wrapper", children: /* @__PURE__ */ g(
|
|
241
|
+
/* @__PURE__ */ g("div", { className: "ff-dropzone-icon-wrapper", children: /* @__PURE__ */ g(be, { className: "ff-dropzone-icon" }) }),
|
|
242
242
|
/* @__PURE__ */ g("h3", { className: "ff-dropzone-text", children: s ? "Drop your file here" : "Upload your file" }),
|
|
243
243
|
/* @__PURE__ */ g("p", { className: "ff-dropzone-hint", children: "Drag and drop or click to select" }),
|
|
244
244
|
/* @__PURE__ */ g("label", { className: "ff-inline-block", children: /* @__PURE__ */ g("span", { className: A(
|
|
@@ -255,11 +255,11 @@ const ht = k("Pen", [
|
|
|
255
255
|
}
|
|
256
256
|
),
|
|
257
257
|
a && /* @__PURE__ */ w("div", { className: "ff-flex ff-items-center ff-gap-2 ff-p-4 ff-rounded-lg ff-text-sm", style: { backgroundColor: "var(--ff-error-light)", color: "var(--ff-error)" }, children: [
|
|
258
|
-
/* @__PURE__ */ g(
|
|
258
|
+
/* @__PURE__ */ g(xe, { className: "ff-w-4 ff-h-4 ff-flex-shrink-0" }),
|
|
259
259
|
/* @__PURE__ */ g("p", { children: a })
|
|
260
260
|
] })
|
|
261
261
|
] });
|
|
262
|
-
},
|
|
262
|
+
}, St = ({ onMappingChange: e }) => {
|
|
263
263
|
const { mappings: o, schema: t, unmappedSource: n, updateMapping: r } = U(), l = (t == null ? void 0 : t.columns) || [], i = (p, d) => {
|
|
264
264
|
const s = d === "" ? null : d;
|
|
265
265
|
r(p, s), e == null || e(p, s);
|
|
@@ -300,7 +300,7 @@ const ht = k("Pen", [
|
|
|
300
300
|
),
|
|
301
301
|
children: [
|
|
302
302
|
/* @__PURE__ */ g("div", { className: "ff-flex-1", children: /* @__PURE__ */ g("div", { className: "ff-mapping-source", children: p.sourceColumn }) }),
|
|
303
|
-
/* @__PURE__ */ g("div", { className: "ff-mapping-arrow", children: /* @__PURE__ */ g(
|
|
303
|
+
/* @__PURE__ */ g("div", { className: "ff-mapping-arrow", children: /* @__PURE__ */ g(at, { className: "ff-w-5 ff-h-5" }) }),
|
|
304
304
|
/* @__PURE__ */ g("div", { className: "ff-flex-1 ff-mapping-target", children: /* @__PURE__ */ w(
|
|
305
305
|
"select",
|
|
306
306
|
{
|
|
@@ -327,7 +327,7 @@ const ht = k("Pen", [
|
|
|
327
327
|
]
|
|
328
328
|
}
|
|
329
329
|
) }),
|
|
330
|
-
/* @__PURE__ */ g("div", { className: "ff-mapping-status", children: d ? s ? /* @__PURE__ */ g(
|
|
330
|
+
/* @__PURE__ */ g("div", { className: "ff-mapping-status", children: d ? s ? /* @__PURE__ */ g(ft, { className: "ff-w-5 ff-h-5", style: { color: "var(--ff-success)" } }) : /* @__PURE__ */ g(ht, { className: "ff-w-5 ff-h-5", style: { color: "var(--ff-warning)" } }) : /* @__PURE__ */ g("span", { className: "ff-w-5 ff-h-5" }) }),
|
|
331
331
|
p.confidence > 0 && /* @__PURE__ */ w("div", { className: A("ff-confidence", a(p.confidence)), children: [
|
|
332
332
|
/* @__PURE__ */ w("span", { children: [
|
|
333
333
|
Math.round(p.confidence * 100),
|
|
@@ -349,7 +349,7 @@ const ht = k("Pen", [
|
|
|
349
349
|
(d) => d.required && !c.has(d.key)
|
|
350
350
|
);
|
|
351
351
|
return p.length > 0 ? /* @__PURE__ */ w("div", { className: "ff-flex ff-items-start ff-gap-2 ff-p-4 ff-rounded-lg", style: { backgroundColor: "var(--ff-warning-light)", borderColor: "var(--ff-warning)" }, children: [
|
|
352
|
-
/* @__PURE__ */ g(
|
|
352
|
+
/* @__PURE__ */ g(xe, { className: "ff-w-5 ff-h-5 ff-flex-shrink-0 ff-mt-0.5", style: { color: "var(--ff-warning)" } }),
|
|
353
353
|
/* @__PURE__ */ w("div", { children: [
|
|
354
354
|
/* @__PURE__ */ g("p", { className: "ff-text-sm ff-font-medium", style: { color: "var(--ff-warning-dark)" }, children: "Required fields not mapped" }),
|
|
355
355
|
/* @__PURE__ */ g("p", { className: "ff-text-sm ff-mt-1", style: { color: "var(--ff-warning)" }, children: p.map((d) => d.label).join(", ") })
|
|
@@ -368,7 +368,7 @@ const ht = k("Pen", [
|
|
|
368
368
|
*
|
|
369
369
|
* @license MIT
|
|
370
370
|
*/
|
|
371
|
-
function
|
|
371
|
+
function Ct() {
|
|
372
372
|
return {
|
|
373
373
|
accessor: (e, o) => typeof e == "function" ? {
|
|
374
374
|
...o,
|
|
@@ -395,10 +395,10 @@ function H(e, o) {
|
|
|
395
395
|
function ne(e) {
|
|
396
396
|
return e instanceof Function;
|
|
397
397
|
}
|
|
398
|
-
function
|
|
398
|
+
function Rt(e) {
|
|
399
399
|
return Array.isArray(e) && e.every((o) => typeof o == "number");
|
|
400
400
|
}
|
|
401
|
-
function
|
|
401
|
+
function xt(e, o) {
|
|
402
402
|
const t = [], n = (r) => {
|
|
403
403
|
r.forEach((l) => {
|
|
404
404
|
t.push(l);
|
|
@@ -442,7 +442,7 @@ function C(e, o, t, n) {
|
|
|
442
442
|
onChange: n
|
|
443
443
|
};
|
|
444
444
|
}
|
|
445
|
-
function
|
|
445
|
+
function yt(e, o, t, n) {
|
|
446
446
|
const r = () => {
|
|
447
447
|
var i;
|
|
448
448
|
return (i = l.getValue()) != null ? i : e.options.renderFallbackValue;
|
|
@@ -465,7 +465,7 @@ function xt(e, o, t, n) {
|
|
|
465
465
|
i.createCell == null || i.createCell(l, t, o, e);
|
|
466
466
|
}, {}), l;
|
|
467
467
|
}
|
|
468
|
-
function
|
|
468
|
+
function _t(e, o, t, n) {
|
|
469
469
|
var r, l;
|
|
470
470
|
const a = {
|
|
471
471
|
...e._getDefaultColumnDef(),
|
|
@@ -506,7 +506,7 @@ function yt(e, o, t, n) {
|
|
|
506
506
|
return p;
|
|
507
507
|
}
|
|
508
508
|
const D = "debugHeaders";
|
|
509
|
-
function
|
|
509
|
+
function Ge(e, o, t) {
|
|
510
510
|
var n;
|
|
511
511
|
let l = {
|
|
512
512
|
id: (n = t.id) != null ? n : o.id,
|
|
@@ -535,7 +535,7 @@ function He(e, o, t) {
|
|
|
535
535
|
i.createHeader == null || i.createHeader(l, e);
|
|
536
536
|
}), l;
|
|
537
537
|
}
|
|
538
|
-
const
|
|
538
|
+
const Ft = {
|
|
539
539
|
createTable: (e) => {
|
|
540
540
|
e.getHeaderGroups = S(() => [e.getAllColumns(), e.getVisibleLeafColumns(), e.getState().columnPinning.left, e.getState().columnPinning.right], (o, t, n, r) => {
|
|
541
541
|
var l, i;
|
|
@@ -587,7 +587,7 @@ function Q(e, o, t, n) {
|
|
|
587
587
|
if (_ && v.column.parent ? $ = v.column.parent : ($ = v.column, L = !0), R && (R == null ? void 0 : R.column) === $)
|
|
588
588
|
R.subHeaders.push(v);
|
|
589
589
|
else {
|
|
590
|
-
const I =
|
|
590
|
+
const I = Ge(t, $, {
|
|
591
591
|
id: [n, s, $.id, v == null ? void 0 : v.id].filter(Boolean).join("_"),
|
|
592
592
|
isPlaceholder: L,
|
|
593
593
|
placeholderId: L ? `${h.filter((P) => P.column === $).length}` : void 0,
|
|
@@ -598,7 +598,7 @@ function Q(e, o, t, n) {
|
|
|
598
598
|
}
|
|
599
599
|
m.headers.push(v), v.headerGroup = m;
|
|
600
600
|
}), u.push(m), s > 0 && f(h, s - 1);
|
|
601
|
-
}, c = o.map((d, s) =>
|
|
601
|
+
}, c = o.map((d, s) => Ge(t, d, {
|
|
602
602
|
depth: i,
|
|
603
603
|
index: s
|
|
604
604
|
}));
|
|
@@ -620,7 +620,7 @@ function Q(e, o, t, n) {
|
|
|
620
620
|
});
|
|
621
621
|
return p((r = (l = u[0]) == null ? void 0 : l.headers) != null ? r : []), u;
|
|
622
622
|
}
|
|
623
|
-
const
|
|
623
|
+
const _e = (e, o, t, n, r, l, i) => {
|
|
624
624
|
let a = {
|
|
625
625
|
id: o,
|
|
626
626
|
index: n,
|
|
@@ -648,7 +648,7 @@ const ye = (e, o, t, n, r, l, i) => {
|
|
|
648
648
|
return (f = a.getValue(u)) != null ? f : e.options.renderFallbackValue;
|
|
649
649
|
},
|
|
650
650
|
subRows: [],
|
|
651
|
-
getLeafRows: () =>
|
|
651
|
+
getLeafRows: () => xt(a.subRows, (u) => u.subRows),
|
|
652
652
|
getParentRow: () => a.parentId ? e.getRow(a.parentId, !0) : void 0,
|
|
653
653
|
getParentRows: () => {
|
|
654
654
|
let u = [], f = a;
|
|
@@ -659,7 +659,7 @@ const ye = (e, o, t, n, r, l, i) => {
|
|
|
659
659
|
}
|
|
660
660
|
return u.reverse();
|
|
661
661
|
},
|
|
662
|
-
getAllCells: S(() => [e.getAllLeafColumns()], (u) => u.map((f) =>
|
|
662
|
+
getAllCells: S(() => [e.getAllLeafColumns()], (u) => u.map((f) => yt(e, a, f, f.id)), C(e.options, "debugRows", "getAllCells")),
|
|
663
663
|
_getAllCellsByColumnId: S(() => [a.getAllCells()], (u) => u.reduce((f, c) => (f[c.column.id] = c, f), {}), C(e.options, "debugRows", "getAllCellsByColumnId"))
|
|
664
664
|
};
|
|
665
665
|
for (let u = 0; u < e._features.length; u++) {
|
|
@@ -667,54 +667,54 @@ const ye = (e, o, t, n, r, l, i) => {
|
|
|
667
667
|
f == null || f.createRow == null || f.createRow(a, e);
|
|
668
668
|
}
|
|
669
669
|
return a;
|
|
670
|
-
},
|
|
670
|
+
}, $t = {
|
|
671
671
|
createColumn: (e, o) => {
|
|
672
672
|
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 = () => {
|
|
673
673
|
if (e._getFacetedMinMaxValues)
|
|
674
674
|
return e._getFacetedMinMaxValues();
|
|
675
675
|
};
|
|
676
676
|
}
|
|
677
|
-
},
|
|
677
|
+
}, Be = (e, o, t) => {
|
|
678
678
|
var n, r;
|
|
679
679
|
const l = t == null || (n = t.toString()) == null ? void 0 : n.toLowerCase();
|
|
680
680
|
return !!(!((r = e.getValue(o)) == null || (r = r.toString()) == null || (r = r.toLowerCase()) == null) && r.includes(l));
|
|
681
681
|
};
|
|
682
|
-
be.autoRemove = (e) => z(e);
|
|
683
|
-
const Be = (e, o, t) => {
|
|
684
|
-
var n;
|
|
685
|
-
return !!(!((n = e.getValue(o)) == null || (n = n.toString()) == null) && n.includes(t));
|
|
686
|
-
};
|
|
687
682
|
Be.autoRemove = (e) => z(e);
|
|
688
683
|
const Te = (e, o, t) => {
|
|
689
684
|
var n;
|
|
690
|
-
return ((n = e.getValue(o)) == null || (n = n.toString()) == null
|
|
685
|
+
return !!(!((n = e.getValue(o)) == null || (n = n.toString()) == null) && n.includes(t));
|
|
691
686
|
};
|
|
692
687
|
Te.autoRemove = (e) => z(e);
|
|
693
688
|
const qe = (e, o, t) => {
|
|
694
689
|
var n;
|
|
695
|
-
return (n = e.getValue(o)) == null ? void 0 : n.
|
|
690
|
+
return ((n = e.getValue(o)) == null || (n = n.toString()) == null ? void 0 : n.toLowerCase()) === (t == null ? void 0 : t.toLowerCase());
|
|
696
691
|
};
|
|
697
692
|
qe.autoRemove = (e) => z(e);
|
|
698
|
-
const je = (e, o, t) =>
|
|
693
|
+
const je = (e, o, t) => {
|
|
694
|
+
var n;
|
|
695
|
+
return (n = e.getValue(o)) == null ? void 0 : n.includes(t);
|
|
696
|
+
};
|
|
697
|
+
je.autoRemove = (e) => z(e);
|
|
698
|
+
const Ue = (e, o, t) => !t.some((n) => {
|
|
699
699
|
var r;
|
|
700
700
|
return !((r = e.getValue(o)) != null && r.includes(n));
|
|
701
701
|
});
|
|
702
|
-
|
|
703
|
-
const
|
|
702
|
+
Ue.autoRemove = (e) => z(e) || !(e != null && e.length);
|
|
703
|
+
const Ke = (e, o, t) => t.some((n) => {
|
|
704
704
|
var r;
|
|
705
705
|
return (r = e.getValue(o)) == null ? void 0 : r.includes(n);
|
|
706
706
|
});
|
|
707
|
-
|
|
708
|
-
const
|
|
709
|
-
Ke.autoRemove = (e) => z(e);
|
|
710
|
-
const Xe = (e, o, t) => e.getValue(o) == t;
|
|
707
|
+
Ke.autoRemove = (e) => z(e) || !(e != null && e.length);
|
|
708
|
+
const Xe = (e, o, t) => e.getValue(o) === t;
|
|
711
709
|
Xe.autoRemove = (e) => z(e);
|
|
712
|
-
const
|
|
710
|
+
const Ze = (e, o, t) => e.getValue(o) == t;
|
|
711
|
+
Ze.autoRemove = (e) => z(e);
|
|
712
|
+
const Fe = (e, o, t) => {
|
|
713
713
|
let [n, r] = t;
|
|
714
714
|
const l = e.getValue(o);
|
|
715
715
|
return l >= n && l <= r;
|
|
716
716
|
};
|
|
717
|
-
|
|
717
|
+
Fe.resolveFilterValue = (e) => {
|
|
718
718
|
let [o, t] = e, n = typeof o != "number" ? parseFloat(o) : o, r = typeof t != "number" ? parseFloat(t) : t, l = o === null || Number.isNaN(n) ? -1 / 0 : n, i = t === null || Number.isNaN(r) ? 1 / 0 : r;
|
|
719
719
|
if (l > i) {
|
|
720
720
|
const a = l;
|
|
@@ -722,22 +722,22 @@ _e.resolveFilterValue = (e) => {
|
|
|
722
722
|
}
|
|
723
723
|
return [l, i];
|
|
724
724
|
};
|
|
725
|
-
|
|
725
|
+
Fe.autoRemove = (e) => z(e) || z(e[0]) && z(e[1]);
|
|
726
726
|
const O = {
|
|
727
|
-
includesString:
|
|
728
|
-
includesStringSensitive:
|
|
729
|
-
equalsString:
|
|
730
|
-
arrIncludes:
|
|
731
|
-
arrIncludesAll:
|
|
732
|
-
arrIncludesSome:
|
|
733
|
-
equals:
|
|
734
|
-
weakEquals:
|
|
735
|
-
inNumberRange:
|
|
727
|
+
includesString: Be,
|
|
728
|
+
includesStringSensitive: Te,
|
|
729
|
+
equalsString: qe,
|
|
730
|
+
arrIncludes: je,
|
|
731
|
+
arrIncludesAll: Ue,
|
|
732
|
+
arrIncludesSome: Ke,
|
|
733
|
+
equals: Xe,
|
|
734
|
+
weakEquals: Ze,
|
|
735
|
+
inNumberRange: Fe
|
|
736
736
|
};
|
|
737
737
|
function z(e) {
|
|
738
738
|
return e == null || e === "";
|
|
739
739
|
}
|
|
740
|
-
const
|
|
740
|
+
const Mt = {
|
|
741
741
|
getDefaultColumnDef: () => ({
|
|
742
742
|
filterFn: "auto"
|
|
743
743
|
}),
|
|
@@ -772,7 +772,7 @@ const $t = {
|
|
|
772
772
|
}, e.setFilterValue = (t) => {
|
|
773
773
|
o.setColumnFilters((n) => {
|
|
774
774
|
const r = e.getFilterFn(), l = n == null ? void 0 : n.find((c) => c.id === e.id), i = b(t, l ? l.value : void 0);
|
|
775
|
-
if (
|
|
775
|
+
if (Ae(r, i, e)) {
|
|
776
776
|
var a;
|
|
777
777
|
return (a = n == null ? void 0 : n.filter((c) => c.id !== e.id)) != null ? a : [];
|
|
778
778
|
}
|
|
@@ -799,7 +799,7 @@ const $t = {
|
|
|
799
799
|
const a = t.find((u) => u.id === i.id);
|
|
800
800
|
if (a) {
|
|
801
801
|
const u = a.getFilterFn();
|
|
802
|
-
if (
|
|
802
|
+
if (Ae(u, i.value, a))
|
|
803
803
|
return !1;
|
|
804
804
|
}
|
|
805
805
|
return !0;
|
|
@@ -812,57 +812,57 @@ const $t = {
|
|
|
812
812
|
}, 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());
|
|
813
813
|
}
|
|
814
814
|
};
|
|
815
|
-
function
|
|
815
|
+
function Ae(e, o, t) {
|
|
816
816
|
return (e && e.autoRemove ? e.autoRemove(o, t) : !1) || typeof o > "u" || typeof o == "string" && !o;
|
|
817
817
|
}
|
|
818
|
-
const
|
|
818
|
+
const It = (e, o, t) => t.reduce((n, r) => {
|
|
819
819
|
const l = r.getValue(e);
|
|
820
820
|
return n + (typeof l == "number" ? l : 0);
|
|
821
|
-
}, 0),
|
|
821
|
+
}, 0), Vt = (e, o, t) => {
|
|
822
822
|
let n;
|
|
823
823
|
return t.forEach((r) => {
|
|
824
824
|
const l = r.getValue(e);
|
|
825
825
|
l != null && (n > l || n === void 0 && l >= l) && (n = l);
|
|
826
826
|
}), n;
|
|
827
|
-
},
|
|
827
|
+
}, Pt = (e, o, t) => {
|
|
828
828
|
let n;
|
|
829
829
|
return t.forEach((r) => {
|
|
830
830
|
const l = r.getValue(e);
|
|
831
831
|
l != null && (n < l || n === void 0 && l >= l) && (n = l);
|
|
832
832
|
}), n;
|
|
833
|
-
},
|
|
833
|
+
}, Nt = (e, o, t) => {
|
|
834
834
|
let n, r;
|
|
835
835
|
return t.forEach((l) => {
|
|
836
836
|
const i = l.getValue(e);
|
|
837
837
|
i != null && (n === void 0 ? i >= i && (n = r = i) : (n > i && (n = i), r < i && (r = i)));
|
|
838
838
|
}), [n, r];
|
|
839
|
-
},
|
|
839
|
+
}, Dt = (e, o) => {
|
|
840
840
|
let t = 0, n = 0;
|
|
841
841
|
if (o.forEach((r) => {
|
|
842
842
|
let l = r.getValue(e);
|
|
843
843
|
l != null && (l = +l) >= l && (++t, n += l);
|
|
844
844
|
}), t) return n / t;
|
|
845
|
-
},
|
|
845
|
+
}, Lt = (e, o) => {
|
|
846
846
|
if (!o.length)
|
|
847
847
|
return;
|
|
848
848
|
const t = o.map((l) => l.getValue(e));
|
|
849
|
-
if (!
|
|
849
|
+
if (!Rt(t))
|
|
850
850
|
return;
|
|
851
851
|
if (t.length === 1)
|
|
852
852
|
return t[0];
|
|
853
853
|
const n = Math.floor(t.length / 2), r = t.sort((l, i) => l - i);
|
|
854
854
|
return t.length % 2 !== 0 ? r[n] : (r[n - 1] + r[n]) / 2;
|
|
855
|
-
},
|
|
856
|
-
sum:
|
|
857
|
-
min:
|
|
858
|
-
max:
|
|
859
|
-
extent:
|
|
860
|
-
mean:
|
|
861
|
-
median:
|
|
862
|
-
unique:
|
|
863
|
-
uniqueCount:
|
|
864
|
-
count:
|
|
865
|
-
},
|
|
855
|
+
}, Et = (e, o) => Array.from(new Set(o.map((t) => t.getValue(e))).values()), Ht = (e, o) => new Set(o.map((t) => t.getValue(e))).size, Gt = (e, o) => o.length, le = {
|
|
856
|
+
sum: It,
|
|
857
|
+
min: Vt,
|
|
858
|
+
max: Pt,
|
|
859
|
+
extent: Nt,
|
|
860
|
+
mean: Dt,
|
|
861
|
+
median: Lt,
|
|
862
|
+
unique: Et,
|
|
863
|
+
uniqueCount: Ht,
|
|
864
|
+
count: Gt
|
|
865
|
+
}, At = {
|
|
866
866
|
getDefaultColumnDef: () => ({
|
|
867
867
|
aggregatedCell: (e) => {
|
|
868
868
|
var o, t;
|
|
@@ -898,14 +898,14 @@ const Mt = (e, o, t) => t.reduce((n, r) => {
|
|
|
898
898
|
}, e.getAutoAggregationFn = () => {
|
|
899
899
|
const t = o.getCoreRowModel().flatRows[0], n = t == null ? void 0 : t.getValue(e.id);
|
|
900
900
|
if (typeof n == "number")
|
|
901
|
-
return
|
|
901
|
+
return le.sum;
|
|
902
902
|
if (Object.prototype.toString.call(n) === "[object Date]")
|
|
903
|
-
return
|
|
903
|
+
return le.extent;
|
|
904
904
|
}, e.getAggregationFn = () => {
|
|
905
905
|
var t, n;
|
|
906
906
|
if (!e)
|
|
907
907
|
throw new Error();
|
|
908
|
-
return ne(e.columnDef.aggregationFn) ? e.columnDef.aggregationFn : e.columnDef.aggregationFn === "auto" ? e.getAutoAggregationFn() : (t = (n = o.options.aggregationFns) == null ? void 0 : n[e.columnDef.aggregationFn]) != null ? t :
|
|
908
|
+
return ne(e.columnDef.aggregationFn) ? e.columnDef.aggregationFn : e.columnDef.aggregationFn === "auto" ? e.getAutoAggregationFn() : (t = (n = o.options.aggregationFns) == null ? void 0 : n[e.columnDef.aggregationFn]) != null ? t : le[e.columnDef.aggregationFn];
|
|
909
909
|
};
|
|
910
910
|
},
|
|
911
911
|
createTable: (e) => {
|
|
@@ -929,13 +929,13 @@ const Mt = (e, o, t) => t.reduce((n, r) => {
|
|
|
929
929
|
};
|
|
930
930
|
}
|
|
931
931
|
};
|
|
932
|
-
function
|
|
932
|
+
function zt(e, o, t) {
|
|
933
933
|
if (!(o != null && o.length) || !t)
|
|
934
934
|
return e;
|
|
935
935
|
const n = e.filter((l) => !o.includes(l.id));
|
|
936
936
|
return t === "remove" ? n : [...o.map((l) => e.find((i) => i.id === l)).filter(Boolean), ...n];
|
|
937
937
|
}
|
|
938
|
-
const
|
|
938
|
+
const kt = {
|
|
939
939
|
getInitialState: (e) => ({
|
|
940
940
|
columnOrder: [],
|
|
941
941
|
...e
|
|
@@ -969,15 +969,15 @@ const zt = {
|
|
|
969
969
|
}
|
|
970
970
|
l = [...l, ...a];
|
|
971
971
|
}
|
|
972
|
-
return
|
|
972
|
+
return zt(l, t, n);
|
|
973
973
|
}, C(e.options, "debugTable", "_getOrderColumnsFn"));
|
|
974
974
|
}
|
|
975
|
-
},
|
|
975
|
+
}, ie = () => ({
|
|
976
976
|
left: [],
|
|
977
977
|
right: []
|
|
978
|
-
}),
|
|
978
|
+
}), Ot = {
|
|
979
979
|
getInitialState: (e) => ({
|
|
980
|
-
columnPinning:
|
|
980
|
+
columnPinning: ie(),
|
|
981
981
|
...e
|
|
982
982
|
}),
|
|
983
983
|
getDefaultOptions: (e) => ({
|
|
@@ -1037,7 +1037,7 @@ const zt = {
|
|
|
1037
1037
|
createTable: (e) => {
|
|
1038
1038
|
e.setColumnPinning = (o) => e.options.onColumnPinningChange == null ? void 0 : e.options.onColumnPinningChange(o), e.resetColumnPinning = (o) => {
|
|
1039
1039
|
var t, n;
|
|
1040
|
-
return e.setColumnPinning(o ?
|
|
1040
|
+
return e.setColumnPinning(o ? ie() : (t = (n = e.initialState) == null ? void 0 : n.columnPinning) != null ? t : ie());
|
|
1041
1041
|
}, e.getIsSomeColumnsPinned = (o) => {
|
|
1042
1042
|
var t;
|
|
1043
1043
|
const n = e.getState().columnPinning;
|
|
@@ -1052,25 +1052,25 @@ const zt = {
|
|
|
1052
1052
|
}, C(e.options, "debugColumns", "getCenterLeafColumns"));
|
|
1053
1053
|
}
|
|
1054
1054
|
};
|
|
1055
|
-
function
|
|
1055
|
+
function bt(e) {
|
|
1056
1056
|
return e || (typeof document < "u" ? document : null);
|
|
1057
1057
|
}
|
|
1058
1058
|
const ee = {
|
|
1059
1059
|
size: 150,
|
|
1060
1060
|
minSize: 20,
|
|
1061
1061
|
maxSize: Number.MAX_SAFE_INTEGER
|
|
1062
|
-
},
|
|
1062
|
+
}, se = () => ({
|
|
1063
1063
|
startOffset: null,
|
|
1064
1064
|
startSize: null,
|
|
1065
1065
|
deltaOffset: null,
|
|
1066
1066
|
deltaPercentage: null,
|
|
1067
1067
|
isResizingColumn: !1,
|
|
1068
1068
|
columnSizingStart: []
|
|
1069
|
-
}),
|
|
1069
|
+
}), Bt = {
|
|
1070
1070
|
getDefaultColumnDef: () => ee,
|
|
1071
1071
|
getInitialState: (e) => ({
|
|
1072
1072
|
columnSizing: {},
|
|
1073
|
-
columnSizingInfo:
|
|
1073
|
+
columnSizingInfo: se(),
|
|
1074
1074
|
...e
|
|
1075
1075
|
}),
|
|
1076
1076
|
getDefaultOptions: (e) => ({
|
|
@@ -1118,9 +1118,9 @@ const ee = {
|
|
|
1118
1118
|
}, e.getResizeHandler = (t) => {
|
|
1119
1119
|
const n = o.getColumn(e.column.id), r = n == null ? void 0 : n.getCanResize();
|
|
1120
1120
|
return (l) => {
|
|
1121
|
-
if (!n || !r || (l.persist == null || l.persist(),
|
|
1121
|
+
if (!n || !r || (l.persist == null || l.persist(), ae(l) && l.touches && l.touches.length > 1))
|
|
1122
1122
|
return;
|
|
1123
|
-
const i = e.getSize(), a = e ? e.getLeafHeaders().map((R) => [R.column.id, R.column.getSize()]) : [[n.id, n.getSize()]], u =
|
|
1123
|
+
const i = e.getSize(), a = e ? e.getLeafHeaders().map((R) => [R.column.id, R.column.getSize()]) : [[n.id, n.getSize()]], u = ae(l) ? Math.round(l.touches[0].clientX) : l.clientX, f = {}, c = (R, _) => {
|
|
1124
1124
|
typeof _ == "number" && (o.setColumnSizingInfo(($) => {
|
|
1125
1125
|
var L, I;
|
|
1126
1126
|
const P = o.options.columnResizeDirection === "rtl" ? -1 : 1, T = (_ - ((L = $ == null ? void 0 : $.startOffset) != null ? L : 0)) * P, N = Math.max(T / ((I = $ == null ? void 0 : $.startSize) != null ? I : 0), -0.999999);
|
|
@@ -1146,7 +1146,7 @@ const ee = {
|
|
|
1146
1146
|
deltaPercentage: null,
|
|
1147
1147
|
columnSizingStart: []
|
|
1148
1148
|
}));
|
|
1149
|
-
}, s =
|
|
1149
|
+
}, s = bt(t), m = {
|
|
1150
1150
|
moveHandler: (R) => p(R.clientX),
|
|
1151
1151
|
upHandler: (R) => {
|
|
1152
1152
|
s == null || s.removeEventListener("mousemove", m.moveHandler), s == null || s.removeEventListener("mouseup", m.upHandler), d(R.clientX);
|
|
@@ -1157,10 +1157,10 @@ const ee = {
|
|
|
1157
1157
|
var _;
|
|
1158
1158
|
s == null || s.removeEventListener("touchmove", h.moveHandler), s == null || s.removeEventListener("touchend", h.upHandler), R.cancelable && (R.preventDefault(), R.stopPropagation()), d((_ = R.touches[0]) == null ? void 0 : _.clientX);
|
|
1159
1159
|
}
|
|
1160
|
-
}, v =
|
|
1160
|
+
}, v = Tt() ? {
|
|
1161
1161
|
passive: !1
|
|
1162
1162
|
} : !1;
|
|
1163
|
-
|
|
1163
|
+
ae(l) ? (s == null || s.addEventListener("touchmove", h.moveHandler, v), s == null || s.addEventListener("touchend", h.upHandler, v)) : (s == null || s.addEventListener("mousemove", m.moveHandler, v), s == null || s.addEventListener("mouseup", m.upHandler, v)), o.setColumnSizingInfo((R) => ({
|
|
1164
1164
|
...R,
|
|
1165
1165
|
startOffset: u,
|
|
1166
1166
|
startSize: i,
|
|
@@ -1178,7 +1178,7 @@ const ee = {
|
|
|
1178
1178
|
e.setColumnSizing(o ? {} : (t = e.initialState.columnSizing) != null ? t : {});
|
|
1179
1179
|
}, e.resetHeaderSizeInfo = (o) => {
|
|
1180
1180
|
var t;
|
|
1181
|
-
e.setColumnSizingInfo(o ?
|
|
1181
|
+
e.setColumnSizingInfo(o ? se() : (t = e.initialState.columnSizingInfo) != null ? t : se());
|
|
1182
1182
|
}, e.getTotalSize = () => {
|
|
1183
1183
|
var o, t;
|
|
1184
1184
|
return (o = (t = e.getHeaderGroups()[0]) == null ? void 0 : t.headers.reduce((n, r) => n + r.getSize(), 0)) != null ? o : 0;
|
|
@@ -1195,7 +1195,7 @@ const ee = {
|
|
|
1195
1195
|
}
|
|
1196
1196
|
};
|
|
1197
1197
|
let te = null;
|
|
1198
|
-
function
|
|
1198
|
+
function Tt() {
|
|
1199
1199
|
if (typeof te == "boolean") return te;
|
|
1200
1200
|
let e = !1;
|
|
1201
1201
|
try {
|
|
@@ -1211,10 +1211,10 @@ function Bt() {
|
|
|
1211
1211
|
}
|
|
1212
1212
|
return te = e, te;
|
|
1213
1213
|
}
|
|
1214
|
-
function
|
|
1214
|
+
function ae(e) {
|
|
1215
1215
|
return e.type === "touchstart";
|
|
1216
1216
|
}
|
|
1217
|
-
const
|
|
1217
|
+
const qt = {
|
|
1218
1218
|
getInitialState: (e) => ({
|
|
1219
1219
|
columnVisibility: {},
|
|
1220
1220
|
...e
|
|
@@ -1262,14 +1262,14 @@ const Tt = {
|
|
|
1262
1262
|
function J(e, o) {
|
|
1263
1263
|
return o ? o === "center" ? e.getCenterVisibleLeafColumns() : o === "left" ? e.getLeftVisibleLeafColumns() : e.getRightVisibleLeafColumns() : e.getVisibleLeafColumns();
|
|
1264
1264
|
}
|
|
1265
|
-
const
|
|
1265
|
+
const jt = {
|
|
1266
1266
|
createTable: (e) => {
|
|
1267
1267
|
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 = () => {
|
|
1268
1268
|
if (e._getGlobalFacetedMinMaxValues)
|
|
1269
1269
|
return e._getGlobalFacetedMinMaxValues();
|
|
1270
1270
|
};
|
|
1271
1271
|
}
|
|
1272
|
-
},
|
|
1272
|
+
}, Ut = {
|
|
1273
1273
|
getInitialState: (e) => ({
|
|
1274
1274
|
globalFilter: void 0,
|
|
1275
1275
|
...e
|
|
@@ -1302,7 +1302,7 @@ const qt = {
|
|
|
1302
1302
|
e.setGlobalFilter(o ? void 0 : e.initialState.globalFilter);
|
|
1303
1303
|
};
|
|
1304
1304
|
}
|
|
1305
|
-
},
|
|
1305
|
+
}, Kt = {
|
|
1306
1306
|
getInitialState: (e) => ({
|
|
1307
1307
|
expanded: {},
|
|
1308
1308
|
...e
|
|
@@ -1389,14 +1389,14 @@ const qt = {
|
|
|
1389
1389
|
};
|
|
1390
1390
|
};
|
|
1391
1391
|
}
|
|
1392
|
-
},
|
|
1393
|
-
pageIndex:
|
|
1394
|
-
pageSize:
|
|
1395
|
-
}),
|
|
1392
|
+
}, he = 0, we = 10, ue = () => ({
|
|
1393
|
+
pageIndex: he,
|
|
1394
|
+
pageSize: we
|
|
1395
|
+
}), Xt = {
|
|
1396
1396
|
getInitialState: (e) => ({
|
|
1397
1397
|
...e,
|
|
1398
1398
|
pagination: {
|
|
1399
|
-
...
|
|
1399
|
+
...ue(),
|
|
1400
1400
|
...e == null ? void 0 : e.pagination
|
|
1401
1401
|
}
|
|
1402
1402
|
}),
|
|
@@ -1424,7 +1424,7 @@ const qt = {
|
|
|
1424
1424
|
return e.options.onPaginationChange == null ? void 0 : e.options.onPaginationChange(r);
|
|
1425
1425
|
}, e.resetPagination = (n) => {
|
|
1426
1426
|
var r;
|
|
1427
|
-
e.setPagination(n ?
|
|
1427
|
+
e.setPagination(n ? ue() : (r = e.initialState.pagination) != null ? r : ue());
|
|
1428
1428
|
}, e.setPageIndex = (n) => {
|
|
1429
1429
|
e.setPagination((r) => {
|
|
1430
1430
|
let l = b(n, r.pageIndex);
|
|
@@ -1436,10 +1436,10 @@ const qt = {
|
|
|
1436
1436
|
});
|
|
1437
1437
|
}, e.resetPageIndex = (n) => {
|
|
1438
1438
|
var r, l;
|
|
1439
|
-
e.setPageIndex(n ?
|
|
1439
|
+
e.setPageIndex(n ? he : (r = (l = e.initialState) == null || (l = l.pagination) == null ? void 0 : l.pageIndex) != null ? r : he);
|
|
1440
1440
|
}, e.resetPageSize = (n) => {
|
|
1441
1441
|
var r, l;
|
|
1442
|
-
e.setPageSize(n ?
|
|
1442
|
+
e.setPageSize(n ? we : (r = (l = e.initialState) == null || (l = l.pagination) == null ? void 0 : l.pageSize) != null ? r : we);
|
|
1443
1443
|
}, e.setPageSize = (n) => {
|
|
1444
1444
|
e.setPagination((r) => {
|
|
1445
1445
|
const l = Math.max(1, b(n, r.pageSize)), i = r.pageSize * r.pageIndex, a = Math.floor(i / l);
|
|
@@ -1472,12 +1472,12 @@ const qt = {
|
|
|
1472
1472
|
return (n = e.options.rowCount) != null ? n : e.getPrePaginationRowModel().rows.length;
|
|
1473
1473
|
};
|
|
1474
1474
|
}
|
|
1475
|
-
},
|
|
1475
|
+
}, fe = () => ({
|
|
1476
1476
|
top: [],
|
|
1477
1477
|
bottom: []
|
|
1478
|
-
}),
|
|
1478
|
+
}), Zt = {
|
|
1479
1479
|
getInitialState: (e) => ({
|
|
1480
|
-
rowPinning:
|
|
1480
|
+
rowPinning: fe(),
|
|
1481
1481
|
...e
|
|
1482
1482
|
}),
|
|
1483
1483
|
getDefaultOptions: (e) => ({
|
|
@@ -1546,7 +1546,7 @@ const qt = {
|
|
|
1546
1546
|
createTable: (e) => {
|
|
1547
1547
|
e.setRowPinning = (o) => e.options.onRowPinningChange == null ? void 0 : e.options.onRowPinningChange(o), e.resetRowPinning = (o) => {
|
|
1548
1548
|
var t, n;
|
|
1549
|
-
return e.setRowPinning(o ?
|
|
1549
|
+
return e.setRowPinning(o ? fe() : (t = (n = e.initialState) == null ? void 0 : n.rowPinning) != null ? t : fe());
|
|
1550
1550
|
}, e.getIsSomeRowsPinned = (o) => {
|
|
1551
1551
|
var t;
|
|
1552
1552
|
const n = e.getState().rowPinning;
|
|
@@ -1576,7 +1576,7 @@ const qt = {
|
|
|
1576
1576
|
return o.filter((l) => !r.has(l.id));
|
|
1577
1577
|
}, C(e.options, "debugRows", "getCenterRows"));
|
|
1578
1578
|
}
|
|
1579
|
-
},
|
|
1579
|
+
}, Wt = {
|
|
1580
1580
|
getInitialState: (e) => ({
|
|
1581
1581
|
rowSelection: {},
|
|
1582
1582
|
...e
|
|
@@ -1611,17 +1611,17 @@ const qt = {
|
|
|
1611
1611
|
...t
|
|
1612
1612
|
};
|
|
1613
1613
|
return e.getRowModel().rows.forEach((l) => {
|
|
1614
|
-
|
|
1614
|
+
ve(r, l.id, n, !0, e);
|
|
1615
1615
|
}), r;
|
|
1616
|
-
}), e.getPreSelectedRowModel = () => e.getCoreRowModel(), e.getSelectedRowModel = S(() => [e.getState().rowSelection, e.getCoreRowModel()], (o, t) => Object.keys(o).length ?
|
|
1616
|
+
}), e.getPreSelectedRowModel = () => e.getCoreRowModel(), e.getSelectedRowModel = S(() => [e.getState().rowSelection, e.getCoreRowModel()], (o, t) => Object.keys(o).length ? de(e, t) : {
|
|
1617
1617
|
rows: [],
|
|
1618
1618
|
flatRows: [],
|
|
1619
1619
|
rowsById: {}
|
|
1620
|
-
}, C(e.options, "debugTable", "getSelectedRowModel")), e.getFilteredSelectedRowModel = S(() => [e.getState().rowSelection, e.getFilteredRowModel()], (o, t) => Object.keys(o).length ?
|
|
1620
|
+
}, C(e.options, "debugTable", "getSelectedRowModel")), e.getFilteredSelectedRowModel = S(() => [e.getState().rowSelection, e.getFilteredRowModel()], (o, t) => Object.keys(o).length ? de(e, t) : {
|
|
1621
1621
|
rows: [],
|
|
1622
1622
|
flatRows: [],
|
|
1623
1623
|
rowsById: {}
|
|
1624
|
-
}, C(e.options, "debugTable", "getFilteredSelectedRowModel")), e.getGroupedSelectedRowModel = S(() => [e.getState().rowSelection, e.getSortedRowModel()], (o, t) => Object.keys(o).length ?
|
|
1624
|
+
}, C(e.options, "debugTable", "getFilteredSelectedRowModel")), e.getGroupedSelectedRowModel = S(() => [e.getState().rowSelection, e.getSortedRowModel()], (o, t) => Object.keys(o).length ? de(e, t) : {
|
|
1625
1625
|
rows: [],
|
|
1626
1626
|
flatRows: [],
|
|
1627
1627
|
rowsById: {}
|
|
@@ -1660,23 +1660,23 @@ const qt = {
|
|
|
1660
1660
|
const a = {
|
|
1661
1661
|
...l
|
|
1662
1662
|
};
|
|
1663
|
-
return
|
|
1663
|
+
return ve(a, e.id, t, (i = n == null ? void 0 : n.selectChildren) != null ? i : !0, o), a;
|
|
1664
1664
|
});
|
|
1665
1665
|
}, e.getIsSelected = () => {
|
|
1666
1666
|
const {
|
|
1667
1667
|
rowSelection: t
|
|
1668
1668
|
} = o.getState();
|
|
1669
|
-
return
|
|
1669
|
+
return $e(e, t);
|
|
1670
1670
|
}, e.getIsSomeSelected = () => {
|
|
1671
1671
|
const {
|
|
1672
1672
|
rowSelection: t
|
|
1673
1673
|
} = o.getState();
|
|
1674
|
-
return
|
|
1674
|
+
return Se(e, t) === "some";
|
|
1675
1675
|
}, e.getIsAllSubRowsSelected = () => {
|
|
1676
1676
|
const {
|
|
1677
1677
|
rowSelection: t
|
|
1678
1678
|
} = o.getState();
|
|
1679
|
-
return
|
|
1679
|
+
return Se(e, t) === "all";
|
|
1680
1680
|
}, e.getCanSelect = () => {
|
|
1681
1681
|
var t;
|
|
1682
1682
|
return typeof o.options.enableRowSelection == "function" ? o.options.enableRowSelection(e) : (t = o.options.enableRowSelection) != null ? t : !0;
|
|
@@ -1694,16 +1694,16 @@ const qt = {
|
|
|
1694
1694
|
};
|
|
1695
1695
|
};
|
|
1696
1696
|
}
|
|
1697
|
-
},
|
|
1697
|
+
}, ve = (e, o, t, n, r) => {
|
|
1698
1698
|
var l;
|
|
1699
1699
|
const i = r.getRow(o, !0);
|
|
1700
|
-
t ? (i.getCanMultiSelect() || Object.keys(e).forEach((a) => delete e[a]), i.getCanSelect() && (e[o] = !0)) : delete e[o], n && (l = i.subRows) != null && l.length && i.getCanSelectSubRows() && i.subRows.forEach((a) =>
|
|
1700
|
+
t ? (i.getCanMultiSelect() || Object.keys(e).forEach((a) => delete e[a]), i.getCanSelect() && (e[o] = !0)) : delete e[o], n && (l = i.subRows) != null && l.length && i.getCanSelectSubRows() && i.subRows.forEach((a) => ve(e, a.id, t, n, r));
|
|
1701
1701
|
};
|
|
1702
|
-
function
|
|
1702
|
+
function de(e, o) {
|
|
1703
1703
|
const t = e.getState().rowSelection, n = [], r = {}, l = function(i, a) {
|
|
1704
1704
|
return i.map((u) => {
|
|
1705
1705
|
var f;
|
|
1706
|
-
const c =
|
|
1706
|
+
const c = $e(u, t);
|
|
1707
1707
|
if (c && (n.push(u), r[u.id] = u), (f = u.subRows) != null && f.length && (u = {
|
|
1708
1708
|
...u,
|
|
1709
1709
|
subRows: l(u.subRows)
|
|
@@ -1717,33 +1717,33 @@ function fe(e, o) {
|
|
|
1717
1717
|
rowsById: r
|
|
1718
1718
|
};
|
|
1719
1719
|
}
|
|
1720
|
-
function
|
|
1720
|
+
function $e(e, o) {
|
|
1721
1721
|
var t;
|
|
1722
1722
|
return (t = o[e.id]) != null ? t : !1;
|
|
1723
1723
|
}
|
|
1724
|
-
function
|
|
1724
|
+
function Se(e, o, t) {
|
|
1725
1725
|
var n;
|
|
1726
1726
|
if (!((n = e.subRows) != null && n.length)) return !1;
|
|
1727
1727
|
let r = !0, l = !1;
|
|
1728
1728
|
return e.subRows.forEach((i) => {
|
|
1729
|
-
if (!(l && !r) && (i.getCanSelect() && (
|
|
1730
|
-
const a =
|
|
1729
|
+
if (!(l && !r) && (i.getCanSelect() && ($e(i, o) ? l = !0 : r = !1), i.subRows && i.subRows.length)) {
|
|
1730
|
+
const a = Se(i, o);
|
|
1731
1731
|
a === "all" ? l = !0 : (a === "some" && (l = !0), r = !1);
|
|
1732
1732
|
}
|
|
1733
1733
|
}), r ? "all" : l ? "some" : !1;
|
|
1734
1734
|
}
|
|
1735
|
-
const
|
|
1735
|
+
const Ce = /([0-9]+)/gm, Yt = (e, o, t) => We(B(e.getValue(t)).toLowerCase(), B(o.getValue(t)).toLowerCase()), Jt = (e, o, t) => We(B(e.getValue(t)), B(o.getValue(t))), Qt = (e, o, t) => Me(B(e.getValue(t)).toLowerCase(), B(o.getValue(t)).toLowerCase()), en = (e, o, t) => Me(B(e.getValue(t)), B(o.getValue(t))), tn = (e, o, t) => {
|
|
1736
1736
|
const n = e.getValue(t), r = o.getValue(t);
|
|
1737
1737
|
return n > r ? 1 : n < r ? -1 : 0;
|
|
1738
|
-
},
|
|
1739
|
-
function
|
|
1738
|
+
}, nn = (e, o, t) => Me(e.getValue(t), o.getValue(t));
|
|
1739
|
+
function Me(e, o) {
|
|
1740
1740
|
return e === o ? 0 : e > o ? 1 : -1;
|
|
1741
1741
|
}
|
|
1742
1742
|
function B(e) {
|
|
1743
1743
|
return typeof e == "number" ? isNaN(e) || e === 1 / 0 || e === -1 / 0 ? "" : String(e) : typeof e == "string" ? e : "";
|
|
1744
1744
|
}
|
|
1745
|
-
function
|
|
1746
|
-
const t = e.split(
|
|
1745
|
+
function We(e, o) {
|
|
1746
|
+
const t = e.split(Ce).filter(Boolean), n = o.split(Ce).filter(Boolean);
|
|
1747
1747
|
for (; t.length && n.length; ) {
|
|
1748
1748
|
const r = t.shift(), l = n.shift(), i = parseInt(r, 10), a = parseInt(l, 10), u = [i, a].sort();
|
|
1749
1749
|
if (isNaN(u[0])) {
|
|
@@ -1763,13 +1763,13 @@ function Ze(e, o) {
|
|
|
1763
1763
|
return t.length - n.length;
|
|
1764
1764
|
}
|
|
1765
1765
|
const W = {
|
|
1766
|
-
alphanumeric:
|
|
1767
|
-
alphanumericCaseSensitive:
|
|
1768
|
-
text:
|
|
1769
|
-
textCaseSensitive:
|
|
1770
|
-
datetime:
|
|
1771
|
-
basic:
|
|
1772
|
-
},
|
|
1766
|
+
alphanumeric: Yt,
|
|
1767
|
+
alphanumericCaseSensitive: Jt,
|
|
1768
|
+
text: Qt,
|
|
1769
|
+
textCaseSensitive: en,
|
|
1770
|
+
datetime: tn,
|
|
1771
|
+
basic: nn
|
|
1772
|
+
}, on = {
|
|
1773
1773
|
getInitialState: (e) => ({
|
|
1774
1774
|
sorting: [],
|
|
1775
1775
|
...e
|
|
@@ -1790,7 +1790,7 @@ const W = {
|
|
|
1790
1790
|
const l = r == null ? void 0 : r.getValue(e.id);
|
|
1791
1791
|
if (Object.prototype.toString.call(l) === "[object Date]")
|
|
1792
1792
|
return W.datetime;
|
|
1793
|
-
if (typeof l == "string" && (n = !0, l.split(
|
|
1793
|
+
if (typeof l == "string" && (n = !0, l.split(Ce).length > 1))
|
|
1794
1794
|
return W.alphanumeric;
|
|
1795
1795
|
}
|
|
1796
1796
|
return n ? W.text : W.basic;
|
|
@@ -1858,30 +1858,30 @@ const W = {
|
|
|
1858
1858
|
e.setSorting(o ? [] : (t = (n = e.initialState) == null ? void 0 : n.sorting) != null ? t : []);
|
|
1859
1859
|
}, 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());
|
|
1860
1860
|
}
|
|
1861
|
-
},
|
|
1862
|
-
_t,
|
|
1863
|
-
Tt,
|
|
1864
|
-
zt,
|
|
1865
|
-
kt,
|
|
1861
|
+
}, rn = [
|
|
1866
1862
|
Ft,
|
|
1867
|
-
$t,
|
|
1868
1863
|
qt,
|
|
1869
|
-
|
|
1864
|
+
kt,
|
|
1865
|
+
Ot,
|
|
1866
|
+
$t,
|
|
1867
|
+
Mt,
|
|
1870
1868
|
jt,
|
|
1869
|
+
//depends on ColumnFaceting
|
|
1870
|
+
Ut,
|
|
1871
1871
|
//depends on ColumnFiltering
|
|
1872
|
-
|
|
1873
|
-
|
|
1872
|
+
on,
|
|
1873
|
+
At,
|
|
1874
1874
|
//depends on RowSorting
|
|
1875
|
-
Ut,
|
|
1876
1875
|
Kt,
|
|
1877
1876
|
Xt,
|
|
1878
1877
|
Zt,
|
|
1879
|
-
|
|
1878
|
+
Wt,
|
|
1879
|
+
Bt
|
|
1880
1880
|
];
|
|
1881
|
-
function
|
|
1881
|
+
function ln(e) {
|
|
1882
1882
|
var o, t;
|
|
1883
1883
|
process.env.NODE_ENV !== "production" && (e.debugAll || e.debugTable) && console.info("Creating Table Instance...");
|
|
1884
|
-
const n = [...
|
|
1884
|
+
const n = [...rn, ...(o = e._features) != null ? o : []];
|
|
1885
1885
|
let r = {
|
|
1886
1886
|
_features: n
|
|
1887
1887
|
};
|
|
@@ -1961,7 +1961,7 @@ function rn(e) {
|
|
|
1961
1961
|
getAllColumns: S(() => [r._getColumnDefs()], (d) => {
|
|
1962
1962
|
const s = function(m, h, v) {
|
|
1963
1963
|
return v === void 0 && (v = 0), m.map((R) => {
|
|
1964
|
-
const _ =
|
|
1964
|
+
const _ = _t(r, R, v, h), $ = R;
|
|
1965
1965
|
return _.columns = $.columns ? s($.columns, _, v + 1) : [], _;
|
|
1966
1966
|
});
|
|
1967
1967
|
};
|
|
@@ -1985,7 +1985,7 @@ function rn(e) {
|
|
|
1985
1985
|
}
|
|
1986
1986
|
return r;
|
|
1987
1987
|
}
|
|
1988
|
-
function
|
|
1988
|
+
function sn() {
|
|
1989
1989
|
return (e) => S(() => [e.options.data], (o) => {
|
|
1990
1990
|
const t = {
|
|
1991
1991
|
rows: [],
|
|
@@ -1995,7 +1995,7 @@ function ln() {
|
|
|
1995
1995
|
l === void 0 && (l = 0);
|
|
1996
1996
|
const a = [];
|
|
1997
1997
|
for (let f = 0; f < r.length; f++) {
|
|
1998
|
-
const c =
|
|
1998
|
+
const c = _e(e, e._getRowId(r[f], f, i), r[f], f, l, void 0, i == null ? void 0 : i.id);
|
|
1999
1999
|
if (t.flatRows.push(c), t.rowsById[c.id] = c, a.push(c), e.options.getSubRows) {
|
|
2000
2000
|
var u;
|
|
2001
2001
|
c.originalSubRows = e.options.getSubRows(r[f], f), (u = c.originalSubRows) != null && u.length && (c.subRows = n(c.originalSubRows, l + 1, c));
|
|
@@ -2006,7 +2006,7 @@ function ln() {
|
|
|
2006
2006
|
return t.rows = n(o), t;
|
|
2007
2007
|
}, C(e.options, "debugTable", "getRowModel", () => e._autoResetPageIndex()));
|
|
2008
2008
|
}
|
|
2009
|
-
function
|
|
2009
|
+
function an(e) {
|
|
2010
2010
|
const o = [], t = (n) => {
|
|
2011
2011
|
var r;
|
|
2012
2012
|
o.push(n), (r = n.subRows) != null && r.length && n.getIsExpanded() && n.subRows.forEach(t);
|
|
@@ -2017,10 +2017,10 @@ function sn(e) {
|
|
|
2017
2017
|
rowsById: e.rowsById
|
|
2018
2018
|
};
|
|
2019
2019
|
}
|
|
2020
|
-
function an(e, o, t) {
|
|
2021
|
-
return t.options.filterFromLeafRows ? un(e, o, t) : fn(e, o, t);
|
|
2022
|
-
}
|
|
2023
2020
|
function un(e, o, t) {
|
|
2021
|
+
return t.options.filterFromLeafRows ? fn(e, o, t) : dn(e, o, t);
|
|
2022
|
+
}
|
|
2023
|
+
function fn(e, o, t) {
|
|
2024
2024
|
var n;
|
|
2025
2025
|
const r = [], l = {}, i = (n = t.options.maxLeafRowFilterDepth) != null ? n : 100, a = function(u, f) {
|
|
2026
2026
|
f === void 0 && (f = 0);
|
|
@@ -2028,7 +2028,7 @@ function un(e, o, t) {
|
|
|
2028
2028
|
for (let d = 0; d < u.length; d++) {
|
|
2029
2029
|
var p;
|
|
2030
2030
|
let s = u[d];
|
|
2031
|
-
const m =
|
|
2031
|
+
const m = _e(t, s.id, s.original, s.index, s.depth, void 0, s.parentId);
|
|
2032
2032
|
if (m.columnFilters = s.columnFilters, (p = s.subRows) != null && p.length && f < i) {
|
|
2033
2033
|
if (m.subRows = a(s.subRows, f + 1), s = m, o(s) && !m.subRows.length) {
|
|
2034
2034
|
c.push(s), l[s.id] = s, r.push(s);
|
|
@@ -2049,7 +2049,7 @@ function un(e, o, t) {
|
|
|
2049
2049
|
rowsById: l
|
|
2050
2050
|
};
|
|
2051
2051
|
}
|
|
2052
|
-
function
|
|
2052
|
+
function dn(e, o, t) {
|
|
2053
2053
|
var n;
|
|
2054
2054
|
const r = [], l = {}, i = (n = t.options.maxLeafRowFilterDepth) != null ? n : 100, a = function(u, f) {
|
|
2055
2055
|
f === void 0 && (f = 0);
|
|
@@ -2059,7 +2059,7 @@ function fn(e, o, t) {
|
|
|
2059
2059
|
if (o(s)) {
|
|
2060
2060
|
var p;
|
|
2061
2061
|
if ((p = s.subRows) != null && p.length && f < i) {
|
|
2062
|
-
const h =
|
|
2062
|
+
const h = _e(t, s.id, s.original, s.index, s.depth, void 0, s.parentId);
|
|
2063
2063
|
h.subRows = a(s.subRows, f + 1), s = h;
|
|
2064
2064
|
}
|
|
2065
2065
|
c.push(s), r.push(s), l[s.id] = s;
|
|
@@ -2073,7 +2073,7 @@ function fn(e, o, t) {
|
|
|
2073
2073
|
rowsById: l
|
|
2074
2074
|
};
|
|
2075
2075
|
}
|
|
2076
|
-
function
|
|
2076
|
+
function gn() {
|
|
2077
2077
|
return (e) => S(() => [e.getPreFilteredRowModel(), e.getState().columnFilters, e.getState().globalFilter], (o, t, n) => {
|
|
2078
2078
|
if (!o.rows.length || !(t != null && t.length) && !n) {
|
|
2079
2079
|
for (let d = 0; d < o.flatRows.length; d++)
|
|
@@ -2137,10 +2137,10 @@ function dn() {
|
|
|
2137
2137
|
return !1;
|
|
2138
2138
|
return !0;
|
|
2139
2139
|
};
|
|
2140
|
-
return
|
|
2140
|
+
return un(o.rows, p, e);
|
|
2141
2141
|
}, C(e.options, "debugTable", "getFilteredRowModel", () => e._autoResetPageIndex()));
|
|
2142
2142
|
}
|
|
2143
|
-
function
|
|
2143
|
+
function cn(e) {
|
|
2144
2144
|
return (o) => S(() => [o.getState().pagination, o.getPrePaginationRowModel(), o.options.paginateExpandedRows ? void 0 : o.getState().expanded], (t, n) => {
|
|
2145
2145
|
if (!n.rows.length)
|
|
2146
2146
|
return n;
|
|
@@ -2160,7 +2160,7 @@ function gn(e) {
|
|
|
2160
2160
|
rows: i,
|
|
2161
2161
|
flatRows: a,
|
|
2162
2162
|
rowsById: u
|
|
2163
|
-
} : p =
|
|
2163
|
+
} : p = an({
|
|
2164
2164
|
rows: i,
|
|
2165
2165
|
flatRows: a,
|
|
2166
2166
|
rowsById: u
|
|
@@ -2171,7 +2171,7 @@ function gn(e) {
|
|
|
2171
2171
|
return p.rows.forEach(d), p;
|
|
2172
2172
|
}, C(o.options, "debugTable", "getPaginationRowModel"));
|
|
2173
2173
|
}
|
|
2174
|
-
function
|
|
2174
|
+
function pn() {
|
|
2175
2175
|
return (e) => S(() => [e.getState().sorting, e.getPreSortedRowModel()], (o, t) => {
|
|
2176
2176
|
if (!t.rows.length || !(o != null && o.length))
|
|
2177
2177
|
return t;
|
|
@@ -2230,22 +2230,22 @@ function cn() {
|
|
|
2230
2230
|
*
|
|
2231
2231
|
* @license MIT
|
|
2232
2232
|
*/
|
|
2233
|
-
function
|
|
2234
|
-
return e ?
|
|
2235
|
-
}
|
|
2236
|
-
function pn(e) {
|
|
2237
|
-
return mn(e) || typeof e == "function" || hn(e);
|
|
2233
|
+
function ze(e, o) {
|
|
2234
|
+
return e ? mn(e) ? /* @__PURE__ */ ce.createElement(e, o) : e : null;
|
|
2238
2235
|
}
|
|
2239
2236
|
function mn(e) {
|
|
2237
|
+
return hn(e) || typeof e == "function" || wn(e);
|
|
2238
|
+
}
|
|
2239
|
+
function hn(e) {
|
|
2240
2240
|
return typeof e == "function" && (() => {
|
|
2241
2241
|
const o = Object.getPrototypeOf(e);
|
|
2242
2242
|
return o.prototype && o.prototype.isReactComponent;
|
|
2243
2243
|
})();
|
|
2244
2244
|
}
|
|
2245
|
-
function
|
|
2245
|
+
function wn(e) {
|
|
2246
2246
|
return typeof e == "object" && typeof e.$$typeof == "symbol" && ["react.memo", "react.forward_ref"].includes(e.$$typeof.description);
|
|
2247
2247
|
}
|
|
2248
|
-
function
|
|
2248
|
+
function vn(e) {
|
|
2249
2249
|
const o = {
|
|
2250
2250
|
state: {},
|
|
2251
2251
|
// Dummy state
|
|
@@ -2254,9 +2254,9 @@ function wn(e) {
|
|
|
2254
2254
|
// noop
|
|
2255
2255
|
renderFallbackValue: null,
|
|
2256
2256
|
...e
|
|
2257
|
-
}, [t] =
|
|
2258
|
-
current:
|
|
2259
|
-
})), [n, r] =
|
|
2257
|
+
}, [t] = ce.useState(() => ({
|
|
2258
|
+
current: ln(o)
|
|
2259
|
+
})), [n, r] = ce.useState(() => t.current.initialState);
|
|
2260
2260
|
return t.current.setOptions((l) => ({
|
|
2261
2261
|
...l,
|
|
2262
2262
|
...e,
|
|
@@ -2271,7 +2271,7 @@ function wn(e) {
|
|
|
2271
2271
|
}
|
|
2272
2272
|
})), t.current;
|
|
2273
2273
|
}
|
|
2274
|
-
const
|
|
2274
|
+
const ke = ({
|
|
2275
2275
|
editable: e = !0,
|
|
2276
2276
|
pageSize: o = 25,
|
|
2277
2277
|
onCellEdit: t
|
|
@@ -2285,7 +2285,7 @@ const ze = ({
|
|
|
2285
2285
|
startEditing: u,
|
|
2286
2286
|
stopEditing: f,
|
|
2287
2287
|
updateCell: c
|
|
2288
|
-
} = U(), [p, d] = Y([]), [s, m] = Y(""), [h, v] = Y(""), R =
|
|
2288
|
+
} = U(), [p, d] = Y([]), [s, m] = Y(""), [h, v] = Y(""), R = Pe(() => l.filter((x) => x.targetKey !== null).map((x) => {
|
|
2289
2289
|
const y = r == null ? void 0 : r.columns.find((V) => V.key === x.targetKey);
|
|
2290
2290
|
return {
|
|
2291
2291
|
sourceColumn: x.sourceColumn,
|
|
@@ -2293,7 +2293,7 @@ const ze = ({
|
|
|
2293
2293
|
label: (y == null ? void 0 : y.label) || x.targetKey,
|
|
2294
2294
|
type: (y == null ? void 0 : y.type) || "string"
|
|
2295
2295
|
};
|
|
2296
|
-
}), [l, r]), _ =
|
|
2296
|
+
}), [l, r]), _ = Re(
|
|
2297
2297
|
(x, y) => {
|
|
2298
2298
|
const V = i.get(x);
|
|
2299
2299
|
return V == null ? void 0 : V.find((q) => q.columnKey === y);
|
|
@@ -2305,7 +2305,7 @@ const ze = ({
|
|
|
2305
2305
|
a && (c(a.rowIndex, a.columnKey, h), t == null || t(a.rowIndex, a.columnKey, h)), f();
|
|
2306
2306
|
}, I = () => {
|
|
2307
2307
|
v(""), f();
|
|
2308
|
-
}, P =
|
|
2308
|
+
}, P = Ct(), T = Pe(
|
|
2309
2309
|
() => [
|
|
2310
2310
|
P.accessor("rowIndex", {
|
|
2311
2311
|
header: "#",
|
|
@@ -2359,7 +2359,7 @@ const ze = ({
|
|
|
2359
2359
|
children: [
|
|
2360
2360
|
/* @__PURE__ */ g("span", { className: "ff-flex-1 ff-truncate", children: q || /* @__PURE__ */ g("span", { className: "ff-text-gray-300", children: "—" }) }),
|
|
2361
2361
|
E && /* @__PURE__ */ w("div", { className: "ff-relative ff-group/tooltip", children: [
|
|
2362
|
-
E.severity === "error" ? /* @__PURE__ */ g(
|
|
2362
|
+
E.severity === "error" ? /* @__PURE__ */ g(xe, { className: "ff-w-4 ff-h-4 ff-text-error-500" }) : /* @__PURE__ */ g(me, { className: "ff-w-4 ff-h-4 ff-text-warning-500" }),
|
|
2363
2363
|
/* @__PURE__ */ w("div", { className: "ff-tooltip ff-bottom-full ff-left-1/2 ff-transform ff--translate-x-1/2 ff-mb-2 ff-w-48 group-hover/tooltip:ff-tooltip-visible", children: [
|
|
2364
2364
|
E.message,
|
|
2365
2365
|
E.suggestion && /* @__PURE__ */ g("span", { className: "ff-block ff-mt-1 ff-text-gray-300", children: E.suggestion })
|
|
@@ -2370,7 +2370,7 @@ const ze = ({
|
|
|
2370
2370
|
{
|
|
2371
2371
|
onClick: () => $(V, x.targetKey, q),
|
|
2372
2372
|
className: "ff-opacity-0 group-hover:ff-opacity-100 ff-p-1 ff-text-gray-400 hover:ff-text-gray-600 ff-rounded ff-transition-opacity",
|
|
2373
|
-
children: /* @__PURE__ */ g(
|
|
2373
|
+
children: /* @__PURE__ */ g(wt, { className: "ff-w-3 ff-h-3" })
|
|
2374
2374
|
}
|
|
2375
2375
|
)
|
|
2376
2376
|
]
|
|
@@ -2381,7 +2381,7 @@ const ze = ({
|
|
|
2381
2381
|
)
|
|
2382
2382
|
],
|
|
2383
2383
|
[R, a, h, e, _, P]
|
|
2384
|
-
), N =
|
|
2384
|
+
), N = vn({
|
|
2385
2385
|
data: n,
|
|
2386
2386
|
columns: T,
|
|
2387
2387
|
state: {
|
|
@@ -2390,10 +2390,10 @@ const ze = ({
|
|
|
2390
2390
|
},
|
|
2391
2391
|
onSortingChange: d,
|
|
2392
2392
|
onGlobalFilterChange: m,
|
|
2393
|
-
getCoreRowModel:
|
|
2394
|
-
getPaginationRowModel:
|
|
2395
|
-
getSortedRowModel:
|
|
2396
|
-
getFilteredRowModel:
|
|
2393
|
+
getCoreRowModel: sn(),
|
|
2394
|
+
getPaginationRowModel: cn(),
|
|
2395
|
+
getSortedRowModel: pn(),
|
|
2396
|
+
getFilteredRowModel: gn(),
|
|
2397
2397
|
initialState: {
|
|
2398
2398
|
pagination: {
|
|
2399
2399
|
pageSize: o
|
|
@@ -2427,7 +2427,7 @@ const ze = ({
|
|
|
2427
2427
|
y.column.getCanSort() && "ff-cursor-pointer ff-select-none"
|
|
2428
2428
|
),
|
|
2429
2429
|
children: /* @__PURE__ */ w("div", { className: "ff-flex ff-items-center ff-gap-1", children: [
|
|
2430
|
-
|
|
2430
|
+
ze(y.column.columnDef.header, y.getContext()),
|
|
2431
2431
|
y.column.getIsSorted() && /* @__PURE__ */ g("span", { children: y.column.getIsSorted() === "asc" ? "↑" : "↓" })
|
|
2432
2432
|
] })
|
|
2433
2433
|
},
|
|
@@ -2439,7 +2439,7 @@ const ze = ({
|
|
|
2439
2439
|
"tr",
|
|
2440
2440
|
{
|
|
2441
2441
|
className: A(y && "ff-bg-error-50/30"),
|
|
2442
|
-
children: x.getVisibleCells().map((V) => /* @__PURE__ */ g("td", { children:
|
|
2442
|
+
children: x.getVisibleCells().map((V) => /* @__PURE__ */ g("td", { children: ze(V.column.columnDef.cell, V.getContext()) }, V.id))
|
|
2443
2443
|
},
|
|
2444
2444
|
x.id
|
|
2445
2445
|
);
|
|
@@ -2460,7 +2460,7 @@ const ze = ({
|
|
|
2460
2460
|
disabled: !N.getCanPreviousPage(),
|
|
2461
2461
|
className: "ff-btn ff-btn-secondary ff-btn-sm",
|
|
2462
2462
|
children: [
|
|
2463
|
-
/* @__PURE__ */ g(
|
|
2463
|
+
/* @__PURE__ */ g(dt, { className: "ff-w-4 ff-h-4" }),
|
|
2464
2464
|
"Previous"
|
|
2465
2465
|
]
|
|
2466
2466
|
}
|
|
@@ -2473,14 +2473,14 @@ const ze = ({
|
|
|
2473
2473
|
className: "ff-btn ff-btn-secondary ff-btn-sm",
|
|
2474
2474
|
children: [
|
|
2475
2475
|
"Next",
|
|
2476
|
-
/* @__PURE__ */ g(
|
|
2476
|
+
/* @__PURE__ */ g(lt, { className: "ff-w-4 ff-h-4" })
|
|
2477
2477
|
]
|
|
2478
2478
|
}
|
|
2479
2479
|
)
|
|
2480
2480
|
] })
|
|
2481
2481
|
] })
|
|
2482
2482
|
] });
|
|
2483
|
-
},
|
|
2483
|
+
}, Oe = ({
|
|
2484
2484
|
showDetails: e = !0
|
|
2485
2485
|
}) => {
|
|
2486
2486
|
const { validationResults: o } = U();
|
|
@@ -2496,7 +2496,7 @@ const ze = ({
|
|
|
2496
2496
|
t ? "ff-bg-success-50 ff-border-success-200" : "ff-bg-error-50 ff-border-error-200"
|
|
2497
2497
|
),
|
|
2498
2498
|
children: [
|
|
2499
|
-
t ? /* @__PURE__ */ g(
|
|
2499
|
+
t ? /* @__PURE__ */ g(ye, { className: "ff-w-8 ff-h-8 ff-text-success-600" }) : /* @__PURE__ */ g(De, { className: "ff-w-8 ff-h-8 ff-text-error-600" }),
|
|
2500
2500
|
/* @__PURE__ */ w("div", { children: [
|
|
2501
2501
|
/* @__PURE__ */ g(
|
|
2502
2502
|
"h3",
|
|
@@ -2547,12 +2547,12 @@ const ze = ({
|
|
|
2547
2547
|
] }),
|
|
2548
2548
|
/* @__PURE__ */ w("div", { className: "ff-flex ff-items-center ff-gap-3", children: [
|
|
2549
2549
|
p.errorCount > 0 && /* @__PURE__ */ w("span", { className: "ff-badge ff-badge-error", children: [
|
|
2550
|
-
/* @__PURE__ */ g(
|
|
2550
|
+
/* @__PURE__ */ g(De, { className: "ff-w-3 ff-h-3 ff-mr-1" }),
|
|
2551
2551
|
p.errorCount,
|
|
2552
2552
|
" errors"
|
|
2553
2553
|
] }),
|
|
2554
2554
|
p.warningCount > 0 && /* @__PURE__ */ w("span", { className: "ff-badge ff-badge-warning", children: [
|
|
2555
|
-
/* @__PURE__ */ g(
|
|
2555
|
+
/* @__PURE__ */ g(me, { className: "ff-w-3 ff-h-3 ff-mr-1" }),
|
|
2556
2556
|
p.warningCount,
|
|
2557
2557
|
" warnings"
|
|
2558
2558
|
] })
|
|
@@ -2560,7 +2560,7 @@ const ze = ({
|
|
|
2560
2560
|
] }, c)) })
|
|
2561
2561
|
] }),
|
|
2562
2562
|
e && u.duplicates && u.duplicates.length > 0 && /* @__PURE__ */ g("div", { className: "ff-bg-warning-50 ff-border ff-border-warning-200 ff-rounded-lg ff-p-4", children: /* @__PURE__ */ w("div", { className: "ff-flex ff-items-start ff-gap-3", children: [
|
|
2563
|
-
/* @__PURE__ */ g(
|
|
2563
|
+
/* @__PURE__ */ g(me, { className: "ff-w-5 ff-h-5 ff-text-warning-600 ff-flex-shrink-0 ff-mt-0.5" }),
|
|
2564
2564
|
/* @__PURE__ */ w("div", { children: [
|
|
2565
2565
|
/* @__PURE__ */ g("h4", { className: "ff-font-medium ff-text-warning-800", children: "Duplicate Values Found" }),
|
|
2566
2566
|
/* @__PURE__ */ w("ul", { className: "ff-mt-2 ff-space-y-1 ff-text-sm ff-text-warning-700", children: [
|
|
@@ -2586,13 +2586,13 @@ const ze = ({
|
|
|
2586
2586
|
] })
|
|
2587
2587
|
] }) })
|
|
2588
2588
|
] });
|
|
2589
|
-
},
|
|
2590
|
-
{ key: "upload", label: "Upload", icon:
|
|
2591
|
-
{ key: "mapping", label: "Map Columns", icon:
|
|
2592
|
-
{ key: "validation", label: "Validate", icon:
|
|
2593
|
-
{ key: "review", label: "Review", icon:
|
|
2594
|
-
{ key: "complete", label: "Complete", icon:
|
|
2595
|
-
],
|
|
2589
|
+
}, ge = ["upload", "mapping", "validation", "complete"], Sn = [
|
|
2590
|
+
{ key: "upload", label: "Upload", icon: be },
|
|
2591
|
+
{ key: "mapping", label: "Map Columns", icon: mt },
|
|
2592
|
+
{ key: "validation", label: "Validate", icon: ut },
|
|
2593
|
+
{ key: "review", label: "Review", icon: gt },
|
|
2594
|
+
{ key: "complete", label: "Complete", icon: ye }
|
|
2595
|
+
], yn = ({
|
|
2596
2596
|
template: e,
|
|
2597
2597
|
schema: o,
|
|
2598
2598
|
onComplete: t,
|
|
@@ -2620,22 +2620,22 @@ const ze = ({
|
|
|
2620
2620
|
setError: P,
|
|
2621
2621
|
reset: T
|
|
2622
2622
|
} = U(), [N, x] = Y(null), [y, V] = Y(null);
|
|
2623
|
-
|
|
2623
|
+
Ne(() => {
|
|
2624
2624
|
if (V(null), e)
|
|
2625
|
-
if (
|
|
2626
|
-
const M =
|
|
2625
|
+
if (it(e)) {
|
|
2626
|
+
const M = st(e);
|
|
2627
2627
|
M ? x(M) : (V(`Failed to load template "${e}"`), r == null || r(new Error(`Failed to load template "${e}"`)));
|
|
2628
2628
|
} else {
|
|
2629
|
-
const M = `Template "${e}" not found. Available templates: ${
|
|
2629
|
+
const M = `Template "${e}" not found. Available templates: ${Le.join(", ")}`;
|
|
2630
2630
|
V(M), r == null || r(new Error(M));
|
|
2631
2631
|
}
|
|
2632
2632
|
else if (o)
|
|
2633
2633
|
x(o);
|
|
2634
2634
|
else {
|
|
2635
|
-
const M = `No template or schema provided. Please specify a template (${
|
|
2635
|
+
const M = `No template or schema provided. Please specify a template (${Le.join(", ")}) or provide a custom schema.`;
|
|
2636
2636
|
V(M), r == null || r(new Error(M));
|
|
2637
2637
|
}
|
|
2638
|
-
}, [e, o, r]),
|
|
2638
|
+
}, [e, o, r]), Ne(() => {
|
|
2639
2639
|
N && (d(N), q(N));
|
|
2640
2640
|
}, [N]);
|
|
2641
2641
|
const q = async (M) => {
|
|
@@ -2649,7 +2649,7 @@ const ze = ({
|
|
|
2649
2649
|
} finally {
|
|
2650
2650
|
I(!1);
|
|
2651
2651
|
}
|
|
2652
|
-
}, E =
|
|
2652
|
+
}, E = Re(async (M) => {
|
|
2653
2653
|
if (i)
|
|
2654
2654
|
try {
|
|
2655
2655
|
I(!0), P(null);
|
|
@@ -2667,14 +2667,14 @@ const ze = ({
|
|
|
2667
2667
|
data: X,
|
|
2668
2668
|
rawData: Object.values(X)
|
|
2669
2669
|
}))
|
|
2670
|
-
}), $(), await
|
|
2670
|
+
}), $(), await Ie();
|
|
2671
2671
|
} catch (F) {
|
|
2672
2672
|
const G = F;
|
|
2673
2673
|
P(G.message), r == null || r(G);
|
|
2674
2674
|
} finally {
|
|
2675
2675
|
I(!1);
|
|
2676
2676
|
}
|
|
2677
|
-
}, [i]),
|
|
2677
|
+
}, [i]), Ie = async () => {
|
|
2678
2678
|
if (i)
|
|
2679
2679
|
try {
|
|
2680
2680
|
I(!0);
|
|
@@ -2698,7 +2698,7 @@ const ze = ({
|
|
|
2698
2698
|
} finally {
|
|
2699
2699
|
I(!1);
|
|
2700
2700
|
}
|
|
2701
|
-
},
|
|
2701
|
+
}, Ye = async () => {
|
|
2702
2702
|
if (i)
|
|
2703
2703
|
try {
|
|
2704
2704
|
I(!0), P(null);
|
|
@@ -2713,9 +2713,9 @@ const ze = ({
|
|
|
2713
2713
|
} finally {
|
|
2714
2714
|
I(!1);
|
|
2715
2715
|
}
|
|
2716
|
-
},
|
|
2716
|
+
}, Ve = () => {
|
|
2717
2717
|
T(), n == null || n();
|
|
2718
|
-
},
|
|
2718
|
+
}, Je = () => Sn.findIndex((M) => M.key === l), Qe = () => {
|
|
2719
2719
|
switch (l) {
|
|
2720
2720
|
case "upload":
|
|
2721
2721
|
return a !== null;
|
|
@@ -2728,7 +2728,7 @@ const ze = ({
|
|
|
2728
2728
|
default:
|
|
2729
2729
|
return !1;
|
|
2730
2730
|
}
|
|
2731
|
-
},
|
|
2731
|
+
}, et = async () => {
|
|
2732
2732
|
switch (l) {
|
|
2733
2733
|
case "mapping":
|
|
2734
2734
|
await j();
|
|
@@ -2737,36 +2737,36 @@ const ze = ({
|
|
|
2737
2737
|
$();
|
|
2738
2738
|
break;
|
|
2739
2739
|
case "review":
|
|
2740
|
-
await
|
|
2740
|
+
await Ye();
|
|
2741
2741
|
break;
|
|
2742
2742
|
default:
|
|
2743
2743
|
$();
|
|
2744
2744
|
}
|
|
2745
2745
|
};
|
|
2746
2746
|
if (y)
|
|
2747
|
-
return /* @__PURE__ */ g("div", { className: "ff-container ff-bg-white ff-rounded-xl ff-shadow-xl ff-overflow-hidden ff-p-6", children: /* @__PURE__ */ w("div", { className: "ff-flex ff-flex-col ff-items-center ff-justify-center ff-py-8", children: [
|
|
2748
|
-
/* @__PURE__ */ g("div", { className: "ff-w-16 ff-h-16 ff-bg-error-100 ff-rounded-full ff-flex ff-items-center ff-justify-center ff-mb-4", children: /* @__PURE__ */ g(
|
|
2747
|
+
return /* @__PURE__ */ g(re, { children: /* @__PURE__ */ g("div", { className: "ff-container ff-bg-white ff-rounded-xl ff-shadow-xl ff-overflow-hidden ff-p-6", children: /* @__PURE__ */ w("div", { className: "ff-flex ff-flex-col ff-items-center ff-justify-center ff-py-8", children: [
|
|
2748
|
+
/* @__PURE__ */ g("div", { className: "ff-w-16 ff-h-16 ff-bg-error-100 ff-rounded-full ff-flex ff-items-center ff-justify-center ff-mb-4", children: /* @__PURE__ */ g(pe, { className: "ff-w-10 ff-h-10 ff-text-error-600" }) }),
|
|
2749
2749
|
/* @__PURE__ */ g("h3", { className: "ff-text-xl ff-font-semibold ff-text-gray-900 ff-mb-2", children: "Configuration Error" }),
|
|
2750
2750
|
/* @__PURE__ */ g("p", { className: "ff-text-gray-500 ff-text-center ff-max-w-md ff-mb-4", children: y }),
|
|
2751
|
-
n && /* @__PURE__ */ g("button", { onClick:
|
|
2752
|
-
] }) });
|
|
2751
|
+
n && /* @__PURE__ */ g("button", { onClick: Ve, className: "ff-btn ff-btn-secondary", children: "Close" })
|
|
2752
|
+
] }) }) });
|
|
2753
2753
|
if (!N)
|
|
2754
|
-
return /* @__PURE__ */ g("div", { className: "ff-container ff-bg-white ff-rounded-xl ff-shadow-xl ff-overflow-hidden ff-p-6", children: /* @__PURE__ */ w("div", { className: "ff-flex ff-flex-col ff-items-center ff-justify-center ff-py-8", children: [
|
|
2755
|
-
/* @__PURE__ */ g(
|
|
2754
|
+
return /* @__PURE__ */ g(re, { children: /* @__PURE__ */ g("div", { className: "ff-container ff-bg-white ff-rounded-xl ff-shadow-xl ff-overflow-hidden ff-p-6", children: /* @__PURE__ */ w("div", { className: "ff-flex ff-flex-col ff-items-center ff-justify-center ff-py-8", children: [
|
|
2755
|
+
/* @__PURE__ */ g(Ee, { className: "ff-w-10 ff-h-10 ff-text-primary-600 ff-animate-spin ff-mb-4" }),
|
|
2756
2756
|
/* @__PURE__ */ g("p", { className: "ff-text-gray-500", children: "Loading template..." })
|
|
2757
|
-
] }) });
|
|
2757
|
+
] }) }) });
|
|
2758
2758
|
const K = () => {
|
|
2759
2759
|
const M = l === "review" ? "validation" : l;
|
|
2760
|
-
return
|
|
2760
|
+
return ge.indexOf(M);
|
|
2761
2761
|
};
|
|
2762
|
-
return /* @__PURE__ */ w("div", { className: "ff-container ff-modal", children: [
|
|
2762
|
+
return /* @__PURE__ */ g(re, { children: /* @__PURE__ */ w("div", { className: "ff-container ff-modal", children: [
|
|
2763
2763
|
/* @__PURE__ */ w("div", { className: "ff-modal-header", children: [
|
|
2764
2764
|
/* @__PURE__ */ w("div", { className: "ff-modal-header-left", children: [
|
|
2765
2765
|
/* @__PURE__ */ w("div", { className: "ff-flex ff-items-center ff-gap-3", children: [
|
|
2766
|
-
/* @__PURE__ */ g("div", { className: "ff-modal-icon", children: /* @__PURE__ */ g(
|
|
2766
|
+
/* @__PURE__ */ g("div", { className: "ff-modal-icon", children: /* @__PURE__ */ g(ct, {}) }),
|
|
2767
2767
|
/* @__PURE__ */ g("h2", { className: "ff-modal-title", children: "Import Data" })
|
|
2768
2768
|
] }),
|
|
2769
|
-
/* @__PURE__ */ g("div", { className: "ff-steps ff-ml-4", children:
|
|
2769
|
+
/* @__PURE__ */ g("div", { className: "ff-steps ff-ml-4", children: ge.map((M, F) => /* @__PURE__ */ w(nt.Fragment, { children: [
|
|
2770
2770
|
/* @__PURE__ */ g(
|
|
2771
2771
|
"div",
|
|
2772
2772
|
{
|
|
@@ -2779,7 +2779,7 @@ const ze = ({
|
|
|
2779
2779
|
children: K() > F ? "✓" : F + 1
|
|
2780
2780
|
}
|
|
2781
2781
|
),
|
|
2782
|
-
F <
|
|
2782
|
+
F < ge.length - 1 && /* @__PURE__ */ g("div", { className: A(
|
|
2783
2783
|
"ff-step-connector",
|
|
2784
2784
|
K() > F && "ff-step-connector-complete"
|
|
2785
2785
|
) })
|
|
@@ -2788,26 +2788,26 @@ const ze = ({
|
|
|
2788
2788
|
/* @__PURE__ */ g(
|
|
2789
2789
|
"button",
|
|
2790
2790
|
{
|
|
2791
|
-
onClick:
|
|
2791
|
+
onClick: Ve,
|
|
2792
2792
|
className: "ff-modal-close",
|
|
2793
|
-
children: /* @__PURE__ */ g(
|
|
2793
|
+
children: /* @__PURE__ */ g(pe, { className: "ff-w-5 ff-h-5" })
|
|
2794
2794
|
}
|
|
2795
2795
|
)
|
|
2796
2796
|
] }),
|
|
2797
2797
|
/* @__PURE__ */ w("div", { className: "ff-modal-body", children: [
|
|
2798
2798
|
p && /* @__PURE__ */ g("div", { className: "ff-mb-4 ff-p-4 ff-bg-error-50 ff-border ff-border-error-200 ff-rounded-lg ff-text-error-700 ff-text-sm", children: p }),
|
|
2799
|
-
l === "upload" && /* @__PURE__ */ g("div", { className: "ff-py-4", children: /* @__PURE__ */ g("div", { className: "ff-max-w-xl ff-mx-auto", children: /* @__PURE__ */ g(
|
|
2800
|
-
l === "mapping" && /* @__PURE__ */ g(
|
|
2799
|
+
l === "upload" && /* @__PURE__ */ g("div", { className: "ff-py-4", children: /* @__PURE__ */ g("div", { className: "ff-max-w-xl ff-mx-auto", children: /* @__PURE__ */ g(vt, { onFileSelect: E }) }) }),
|
|
2800
|
+
l === "mapping" && /* @__PURE__ */ g(St, {}),
|
|
2801
2801
|
l === "validation" && /* @__PURE__ */ w("div", { className: "ff-space-y-6", children: [
|
|
2802
|
-
/* @__PURE__ */ g(
|
|
2803
|
-
/* @__PURE__ */ g(
|
|
2802
|
+
/* @__PURE__ */ g(Oe, {}),
|
|
2803
|
+
/* @__PURE__ */ g(ke, { editable: !0 })
|
|
2804
2804
|
] }),
|
|
2805
2805
|
l === "review" && /* @__PURE__ */ w("div", { className: "ff-space-y-6", children: [
|
|
2806
|
-
/* @__PURE__ */ g(
|
|
2807
|
-
/* @__PURE__ */ g(
|
|
2806
|
+
/* @__PURE__ */ g(Oe, { showDetails: !1 }),
|
|
2807
|
+
/* @__PURE__ */ g(ke, { editable: !1, pageSize: 10 })
|
|
2808
2808
|
] }),
|
|
2809
2809
|
l === "complete" && /* @__PURE__ */ w("div", { className: "ff-flex ff-flex-col ff-items-center ff-justify-center ff-py-12", children: [
|
|
2810
|
-
/* @__PURE__ */ g("div", { className: "ff-w-16 ff-h-16 ff-rounded-full ff-flex ff-items-center ff-justify-center ff-mb-4", style: { backgroundColor: "var(--ff-success-light)" }, children: /* @__PURE__ */ g(
|
|
2810
|
+
/* @__PURE__ */ g("div", { className: "ff-w-16 ff-h-16 ff-rounded-full ff-flex ff-items-center ff-justify-center ff-mb-4", style: { backgroundColor: "var(--ff-success-light)" }, children: /* @__PURE__ */ g(ye, { className: "ff-w-10 ff-h-10", style: { color: "var(--ff-success)" } }) }),
|
|
2811
2811
|
/* @__PURE__ */ g("h3", { className: "ff-text-xl ff-font-semibold ff-mb-2", style: { color: "var(--ff-text-primary)" }, children: "Import Complete!" }),
|
|
2812
2812
|
/* @__PURE__ */ g("p", { style: { color: "var(--ff-text-muted)" }, children: "Your data has been successfully imported." })
|
|
2813
2813
|
] })
|
|
@@ -2817,7 +2817,7 @@ const ze = ({
|
|
|
2817
2817
|
"button",
|
|
2818
2818
|
{
|
|
2819
2819
|
onClick: L,
|
|
2820
|
-
disabled:
|
|
2820
|
+
disabled: Je() === 0 || c,
|
|
2821
2821
|
className: "ff-btn ff-btn-secondary",
|
|
2822
2822
|
children: "Back"
|
|
2823
2823
|
}
|
|
@@ -2825,24 +2825,24 @@ const ze = ({
|
|
|
2825
2825
|
/* @__PURE__ */ g(
|
|
2826
2826
|
"button",
|
|
2827
2827
|
{
|
|
2828
|
-
onClick:
|
|
2829
|
-
disabled: !
|
|
2828
|
+
onClick: et,
|
|
2829
|
+
disabled: !Qe() || c,
|
|
2830
2830
|
className: "ff-btn ff-btn-primary",
|
|
2831
|
-
children: c ? /* @__PURE__ */ w(
|
|
2832
|
-
/* @__PURE__ */ g(
|
|
2831
|
+
children: c ? /* @__PURE__ */ w(tt, { children: [
|
|
2832
|
+
/* @__PURE__ */ g(Ee, { className: "ff-w-4 ff-h-4 ff-animate-spin" }),
|
|
2833
2833
|
"Processing..."
|
|
2834
2834
|
] }) : l === "review" ? "Complete Import" : "Continue"
|
|
2835
2835
|
}
|
|
2836
2836
|
)
|
|
2837
2837
|
] })
|
|
2838
|
-
] });
|
|
2838
|
+
] }) });
|
|
2839
2839
|
};
|
|
2840
2840
|
export {
|
|
2841
|
-
|
|
2842
|
-
|
|
2843
|
-
|
|
2844
|
-
|
|
2845
|
-
|
|
2841
|
+
St as C,
|
|
2842
|
+
ke as D,
|
|
2843
|
+
vt as F,
|
|
2844
|
+
yn as I,
|
|
2845
|
+
Oe as V,
|
|
2846
2846
|
U as u
|
|
2847
2847
|
};
|
|
2848
|
-
//# sourceMappingURL=ImportWizard-
|
|
2848
|
+
//# sourceMappingURL=ImportWizard-DrDHQwnE.mjs.map
|