@fileflow/sdk 0.1.21 → 0.1.22
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-m62gzl2R.js → ImportWizard-B20izQeY.js} +15 -15
- package/dist/{ImportWizard-m62gzl2R.js.map → ImportWizard-B20izQeY.js.map} +1 -1
- package/dist/{ImportWizard-Dececv65.mjs → ImportWizard-Ctm4PB3o.mjs} +114 -114
- package/dist/{ImportWizard-Dececv65.mjs.map → ImportWizard-Ctm4PB3o.mjs.map} +1 -1
- package/dist/import.js +1 -1
- package/dist/import.mjs +1 -1
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as c, jsxs as w, Fragment as ee } from "react/jsx-runtime";
|
|
2
2
|
import * as _e from "react";
|
|
3
|
-
import vt, { useCallback as Pe, useState as
|
|
3
|
+
import vt, { useCallback as Pe, useState as q, useMemo as Be, useEffect as Ke } from "react";
|
|
4
4
|
import { h as T, j as wt, k as Ct, X as ce, m as W, U as Ze, n as ke, T as Fe, q as yt, p as Ee, o as qe, t as St, d as Rt, V as je, g as re, S as pe, L as ae } from "./index-DJ8UbzFt.mjs";
|
|
5
5
|
/**
|
|
6
6
|
* @license lucide-react v0.563.0 - ISC
|
|
@@ -343,8 +343,8 @@ function me(e, r, t) {
|
|
|
343
343
|
if (!y.targetKey) continue;
|
|
344
344
|
const x = r.columns.find((P) => P.key === y.targetKey);
|
|
345
345
|
if (!x) continue;
|
|
346
|
-
const $ = v.data[y.targetKey] || v.data[y.sourceColumn] || "",
|
|
347
|
-
for (const P of
|
|
346
|
+
const $ = v.data[y.targetKey] || v.data[y.sourceColumn] || "", _ = qt(String($), x);
|
|
347
|
+
for (const P of _)
|
|
348
348
|
n.push({ ...P, rowIndex: v.rowIndex });
|
|
349
349
|
}
|
|
350
350
|
const o = ((C = r.options) == null ? void 0 : C.uniqueKeys) || [];
|
|
@@ -353,14 +353,14 @@ function me(e, r, t) {
|
|
|
353
353
|
if (!y) continue;
|
|
354
354
|
const x = /* @__PURE__ */ new Map();
|
|
355
355
|
for (const $ of e) {
|
|
356
|
-
const
|
|
357
|
-
if (!
|
|
358
|
-
const P = x.get(
|
|
359
|
-
P.push($.rowIndex), x.set(
|
|
356
|
+
const _ = String($.data[v] || $.data[y.sourceColumn] || "").toLowerCase().trim();
|
|
357
|
+
if (!_) continue;
|
|
358
|
+
const P = x.get(_) || [];
|
|
359
|
+
P.push($.rowIndex), x.set(_, P);
|
|
360
360
|
}
|
|
361
|
-
for (const [$,
|
|
362
|
-
if (
|
|
363
|
-
for (const P of
|
|
361
|
+
for (const [$, _] of x.entries())
|
|
362
|
+
if (_.length > 1)
|
|
363
|
+
for (const P of _.slice(1))
|
|
364
364
|
n.push({
|
|
365
365
|
rowIndex: P,
|
|
366
366
|
columnKey: v,
|
|
@@ -396,13 +396,13 @@ function me(e, r, t) {
|
|
|
396
396
|
if (!y) continue;
|
|
397
397
|
const x = /* @__PURE__ */ new Map();
|
|
398
398
|
for (const $ of e) {
|
|
399
|
-
const
|
|
400
|
-
if (!
|
|
401
|
-
const P = x.get(
|
|
402
|
-
P.push($.rowIndex), x.set(
|
|
399
|
+
const _ = String($.data[v] || $.data[y.sourceColumn] || "").toLowerCase().trim();
|
|
400
|
+
if (!_) continue;
|
|
401
|
+
const P = x.get(_) || [];
|
|
402
|
+
P.push($.rowIndex), x.set(_, P);
|
|
403
403
|
}
|
|
404
|
-
for (const [$,
|
|
405
|
-
|
|
404
|
+
for (const [$, _] of x.entries())
|
|
405
|
+
_.length > 1 && m.push({ columnKey: v, value: $, rowIndices: _ });
|
|
406
406
|
}
|
|
407
407
|
const h = {
|
|
408
408
|
byColumn: d,
|
|
@@ -917,14 +917,14 @@ function ue(e, r, t, n) {
|
|
|
917
917
|
if (y && C.column.parent ? x = C.column.parent : (x = C.column, $ = !0), v && (v == null ? void 0 : v.column) === x)
|
|
918
918
|
v.subHeaders.push(C);
|
|
919
919
|
else {
|
|
920
|
-
const
|
|
920
|
+
const _ = Xe(t, x, {
|
|
921
921
|
id: [n, a, x.id, C == null ? void 0 : C.id].filter(Boolean).join("_"),
|
|
922
922
|
isPlaceholder: $,
|
|
923
923
|
placeholderId: $ ? `${h.filter((P) => P.column === x).length}` : void 0,
|
|
924
924
|
depth: a,
|
|
925
925
|
index: h.length
|
|
926
926
|
});
|
|
927
|
-
|
|
927
|
+
_.subHeaders.push(C), h.push(_);
|
|
928
928
|
}
|
|
929
929
|
m.headers.push(C), C.headerGroup = m;
|
|
930
930
|
}), u.push(m), a > 0 && f(h, a - 1);
|
|
@@ -938,9 +938,9 @@ function ue(e, r, t, n) {
|
|
|
938
938
|
m.subHeaders && m.subHeaders.length ? (v = [], p(m.subHeaders).forEach((x) => {
|
|
939
939
|
let {
|
|
940
940
|
colSpan: $,
|
|
941
|
-
rowSpan:
|
|
941
|
+
rowSpan: _
|
|
942
942
|
} = x;
|
|
943
|
-
h += $, v.push(
|
|
943
|
+
h += $, v.push(_);
|
|
944
944
|
})) : h = 1;
|
|
945
945
|
const y = Math.min(...v);
|
|
946
946
|
return C = C + y, m.colSpan = h, m.rowSpan = C, {
|
|
@@ -1053,7 +1053,7 @@ De.resolveFilterValue = (e) => {
|
|
|
1053
1053
|
return [l, s];
|
|
1054
1054
|
};
|
|
1055
1055
|
De.autoRemove = (e) => O(e) || O(e[0]) && O(e[1]);
|
|
1056
|
-
const
|
|
1056
|
+
const K = {
|
|
1057
1057
|
includesString: et,
|
|
1058
1058
|
includesStringSensitive: tt,
|
|
1059
1059
|
equalsString: nt,
|
|
@@ -1083,12 +1083,12 @@ const tn = {
|
|
|
1083
1083
|
createColumn: (e, r) => {
|
|
1084
1084
|
e.getAutoFilterFn = () => {
|
|
1085
1085
|
const t = r.getCoreRowModel().flatRows[0], n = t == null ? void 0 : t.getValue(e.id);
|
|
1086
|
-
return typeof n == "string" ?
|
|
1086
|
+
return typeof n == "string" ? K.includesString : typeof n == "number" ? K.inNumberRange : typeof n == "boolean" || n !== null && typeof n == "object" ? K.equals : Array.isArray(n) ? K.arrIncludes : K.weakEquals;
|
|
1087
1087
|
}, e.getFilterFn = () => {
|
|
1088
1088
|
var t, n;
|
|
1089
1089
|
return ge(e.columnDef.filterFn) ? e.columnDef.filterFn : e.columnDef.filterFn === "auto" ? e.getAutoFilterFn() : (
|
|
1090
1090
|
// @ts-ignore
|
|
1091
|
-
(t = (n = r.options.filterFns) == null ? void 0 : n[e.columnDef.filterFn]) != null ? t :
|
|
1091
|
+
(t = (n = r.options.filterFns) == null ? void 0 : n[e.columnDef.filterFn]) != null ? t : K[e.columnDef.filterFn]
|
|
1092
1092
|
);
|
|
1093
1093
|
}, e.getCanFilter = () => {
|
|
1094
1094
|
var t, n, o;
|
|
@@ -1452,11 +1452,11 @@ const fe = {
|
|
|
1452
1452
|
return;
|
|
1453
1453
|
const s = e.getSize(), i = e ? e.getLeafHeaders().map((v) => [v.column.id, v.column.getSize()]) : [[n.id, n.getSize()]], u = Ce(l) ? Math.round(l.touches[0].clientX) : l.clientX, f = {}, g = (v, y) => {
|
|
1454
1454
|
typeof y == "number" && (r.setColumnSizingInfo((x) => {
|
|
1455
|
-
var $,
|
|
1456
|
-
const P = r.options.columnResizeDirection === "rtl" ? -1 : 1, Y = (y - (($ = x == null ? void 0 : x.startOffset) != null ? $ : 0)) * P, k = Math.max(Y / ((
|
|
1455
|
+
var $, _;
|
|
1456
|
+
const P = r.options.columnResizeDirection === "rtl" ? -1 : 1, Y = (y - (($ = x == null ? void 0 : x.startOffset) != null ? $ : 0)) * P, k = Math.max(Y / ((_ = x == null ? void 0 : x.startSize) != null ? _ : 0), -0.999999);
|
|
1457
1457
|
return x.columnSizingStart.forEach((G) => {
|
|
1458
|
-
let [
|
|
1459
|
-
f[
|
|
1458
|
+
let [j, D] = G;
|
|
1459
|
+
f[j] = Math.round(Math.max(D + D * k, 0) * 100) / 100;
|
|
1460
1460
|
}), {
|
|
1461
1461
|
...x,
|
|
1462
1462
|
deltaOffset: Y,
|
|
@@ -1620,12 +1620,12 @@ const yn = {
|
|
|
1620
1620
|
};
|
|
1621
1621
|
},
|
|
1622
1622
|
createTable: (e) => {
|
|
1623
|
-
e.getGlobalAutoFilterFn = () =>
|
|
1623
|
+
e.getGlobalAutoFilterFn = () => K.includesString, e.getGlobalFilterFn = () => {
|
|
1624
1624
|
var r, t;
|
|
1625
1625
|
const {
|
|
1626
1626
|
globalFilterFn: n
|
|
1627
1627
|
} = e.options;
|
|
1628
|
-
return ge(n) ? n : n === "auto" ? e.getGlobalAutoFilterFn() : (r = (t = e.options.filterFns) == null ? void 0 : t[n]) != null ? r :
|
|
1628
|
+
return ge(n) ? n : n === "auto" ? e.getGlobalAutoFilterFn() : (r = (t = e.options.filterFns) == null ? void 0 : t[n]) != null ? r : K[n];
|
|
1629
1629
|
}, e.setGlobalFilter = (r) => {
|
|
1630
1630
|
e.options.onGlobalFilterChange == null || e.options.onGlobalFilterChange(r);
|
|
1631
1631
|
}, e.resetGlobalFilter = (r) => {
|
|
@@ -2527,11 +2527,11 @@ function Tn() {
|
|
|
2527
2527
|
const m = l[a], h = s[m.id], C = h.sortUndefined, v = (d = m == null ? void 0 : m.desc) != null ? d : !1;
|
|
2528
2528
|
let y = 0;
|
|
2529
2529
|
if (C) {
|
|
2530
|
-
const x = g.getValue(m.id), $ = p.getValue(m.id),
|
|
2531
|
-
if (
|
|
2532
|
-
if (C === "first") return
|
|
2533
|
-
if (C === "last") return
|
|
2534
|
-
y =
|
|
2530
|
+
const x = g.getValue(m.id), $ = p.getValue(m.id), _ = x === void 0, P = $ === void 0;
|
|
2531
|
+
if (_ || P) {
|
|
2532
|
+
if (C === "first") return _ ? -1 : 1;
|
|
2533
|
+
if (C === "last") return _ ? 1 : -1;
|
|
2534
|
+
y = _ && P ? 0 : _ ? C : -C;
|
|
2535
2535
|
}
|
|
2536
2536
|
}
|
|
2537
2537
|
if (y === 0 && (y = h.sortingFn(g, p, m.id)), y !== 0)
|
|
@@ -2618,42 +2618,77 @@ const Ye = ({
|
|
|
2618
2618
|
stopEditing: p,
|
|
2619
2619
|
updateCell: d,
|
|
2620
2620
|
deleteRow: a
|
|
2621
|
-
} = te(), [m, h] =
|
|
2622
|
-
const I = s == null ? void 0 : s.columns.find((M) => M.key ===
|
|
2621
|
+
} = te(), [m, h] = q([]), [C, v] = q(""), [y, x] = q(""), $ = Be(() => i.filter((F) => F.targetKey !== null).map((F) => {
|
|
2622
|
+
const I = s == null ? void 0 : s.columns.find((M) => M.key === F.targetKey);
|
|
2623
2623
|
return {
|
|
2624
|
-
sourceColumn:
|
|
2625
|
-
targetKey:
|
|
2626
|
-
label: (I == null ? void 0 : I.label) ||
|
|
2624
|
+
sourceColumn: F.sourceColumn,
|
|
2625
|
+
targetKey: F.targetKey,
|
|
2626
|
+
label: (I == null ? void 0 : I.label) || F.targetKey,
|
|
2627
2627
|
type: (I == null ? void 0 : I.type) || "string"
|
|
2628
2628
|
};
|
|
2629
|
-
}), [i, s]),
|
|
2630
|
-
(
|
|
2631
|
-
const M = u.get(
|
|
2629
|
+
}), [i, s]), _ = Pe(
|
|
2630
|
+
(F, I) => {
|
|
2631
|
+
const M = u.get(F);
|
|
2632
2632
|
return M == null ? void 0 : M.find((H) => H.columnKey === I);
|
|
2633
2633
|
},
|
|
2634
2634
|
[u]
|
|
2635
|
-
), P = (
|
|
2636
|
-
x(M), g(
|
|
2635
|
+
), P = (F, I, M) => {
|
|
2636
|
+
x(M), g(F, I);
|
|
2637
2637
|
}, Y = () => {
|
|
2638
2638
|
f && (d(f.rowIndex, f.columnKey, y), n == null || n(f.rowIndex, f.columnKey, y)), p();
|
|
2639
2639
|
}, k = () => {
|
|
2640
2640
|
x(""), p();
|
|
2641
|
-
}, G = (
|
|
2642
|
-
a(
|
|
2643
|
-
},
|
|
2641
|
+
}, G = (F) => {
|
|
2642
|
+
a(F), o == null || o(F);
|
|
2643
|
+
}, j = Xt(), D = Be(
|
|
2644
2644
|
() => [
|
|
2645
|
-
|
|
2645
|
+
j.accessor("rowIndex", {
|
|
2646
2646
|
header: "#",
|
|
2647
|
-
size: 60,
|
|
2648
|
-
cell: (
|
|
2647
|
+
size: r ? 80 : 60,
|
|
2648
|
+
cell: (F) => {
|
|
2649
|
+
const I = F.getValue();
|
|
2650
|
+
return /* @__PURE__ */ w("div", { style: { display: "flex", alignItems: "center", gap: "4px" }, children: [
|
|
2651
|
+
/* @__PURE__ */ c("span", { className: "ff-font-mono ff-text-xs", style: { color: "var(--ff-text-muted)" }, children: I + 1 }),
|
|
2652
|
+
r && /* @__PURE__ */ c(
|
|
2653
|
+
"button",
|
|
2654
|
+
{
|
|
2655
|
+
onClick: (M) => {
|
|
2656
|
+
M.stopPropagation(), G(I);
|
|
2657
|
+
},
|
|
2658
|
+
title: "Delete row",
|
|
2659
|
+
style: {
|
|
2660
|
+
display: "inline-flex",
|
|
2661
|
+
alignItems: "center",
|
|
2662
|
+
justifyContent: "center",
|
|
2663
|
+
padding: "4px",
|
|
2664
|
+
borderRadius: "4px",
|
|
2665
|
+
cursor: "pointer",
|
|
2666
|
+
color: "#8e8d89",
|
|
2667
|
+
background: "transparent",
|
|
2668
|
+
border: "none",
|
|
2669
|
+
transition: "color 0.15s, background-color 0.15s",
|
|
2670
|
+
marginLeft: "2px",
|
|
2671
|
+
flexShrink: 0
|
|
2672
|
+
},
|
|
2673
|
+
onMouseEnter: (M) => {
|
|
2674
|
+
M.currentTarget.style.color = "#d43338", M.currentTarget.style.backgroundColor = "#fcdede";
|
|
2675
|
+
},
|
|
2676
|
+
onMouseLeave: (M) => {
|
|
2677
|
+
M.currentTarget.style.color = "#8e8d89", M.currentTarget.style.backgroundColor = "transparent";
|
|
2678
|
+
},
|
|
2679
|
+
children: /* @__PURE__ */ c(Kt, { style: { width: "14px", height: "14px", display: "block" } })
|
|
2680
|
+
}
|
|
2681
|
+
)
|
|
2682
|
+
] });
|
|
2683
|
+
}
|
|
2649
2684
|
}),
|
|
2650
2685
|
...$.map(
|
|
2651
|
-
(
|
|
2652
|
-
id:
|
|
2653
|
-
header:
|
|
2686
|
+
(F) => j.accessor((I) => I.data[F.targetKey] || I.data[F.sourceColumn], {
|
|
2687
|
+
id: F.targetKey,
|
|
2688
|
+
header: F.label,
|
|
2654
2689
|
cell: (I) => {
|
|
2655
|
-
const M = I.row.original.rowIndex, H = String(I.getValue() ?? ""), b =
|
|
2656
|
-
return (f == null ? void 0 : f.rowIndex) === M && (f == null ? void 0 : f.columnKey) ===
|
|
2690
|
+
const M = I.row.original.rowIndex, H = String(I.getValue() ?? ""), b = _(M, F.targetKey);
|
|
2691
|
+
return (f == null ? void 0 : f.rowIndex) === M && (f == null ? void 0 : f.columnKey) === F.targetKey ? /* @__PURE__ */ w("div", { className: "ff-flex ff-items-center ff-gap-2 ff-min-w-[280px]", children: [
|
|
2657
2692
|
/* @__PURE__ */ c(
|
|
2658
2693
|
"input",
|
|
2659
2694
|
{
|
|
@@ -2703,7 +2738,7 @@ const Ye = ({
|
|
|
2703
2738
|
e && /* @__PURE__ */ c(
|
|
2704
2739
|
"button",
|
|
2705
2740
|
{
|
|
2706
|
-
onClick: () => P(M,
|
|
2741
|
+
onClick: () => P(M, F.targetKey, H),
|
|
2707
2742
|
className: "ff-opacity-0 group-hover:ff-opacity-100 ff-p-1 ff-rounded ff-transition-opacity ff-edit-btn",
|
|
2708
2743
|
children: /* @__PURE__ */ c(Gt, { className: "ff-w-3 ff-h-3" })
|
|
2709
2744
|
}
|
|
@@ -2713,46 +2748,11 @@ const Ye = ({
|
|
|
2713
2748
|
);
|
|
2714
2749
|
}
|
|
2715
2750
|
})
|
|
2716
|
-
)
|
|
2717
|
-
//
|
|
2718
|
-
|
|
2719
|
-
K.display({
|
|
2720
|
-
id: "actions",
|
|
2721
|
-
header: "",
|
|
2722
|
-
size: 50,
|
|
2723
|
-
cell: (_) => {
|
|
2724
|
-
const I = _.row.original.rowIndex;
|
|
2725
|
-
return /* @__PURE__ */ c(
|
|
2726
|
-
"button",
|
|
2727
|
-
{
|
|
2728
|
-
onClick: () => G(I),
|
|
2729
|
-
title: "Delete row",
|
|
2730
|
-
style: {
|
|
2731
|
-
display: "flex",
|
|
2732
|
-
alignItems: "center",
|
|
2733
|
-
justifyContent: "center",
|
|
2734
|
-
padding: "6px",
|
|
2735
|
-
borderRadius: "6px",
|
|
2736
|
-
cursor: "pointer",
|
|
2737
|
-
color: "#8e8d89",
|
|
2738
|
-
background: "transparent",
|
|
2739
|
-
border: "none",
|
|
2740
|
-
transition: "color 0.15s, background-color 0.15s"
|
|
2741
|
-
},
|
|
2742
|
-
onMouseEnter: (M) => {
|
|
2743
|
-
M.currentTarget.style.color = "#d43338", M.currentTarget.style.backgroundColor = "#fcdede";
|
|
2744
|
-
},
|
|
2745
|
-
onMouseLeave: (M) => {
|
|
2746
|
-
M.currentTarget.style.color = "#8e8d89", M.currentTarget.style.backgroundColor = "transparent";
|
|
2747
|
-
},
|
|
2748
|
-
children: /* @__PURE__ */ c(Kt, { style: { width: "16px", height: "16px", display: "block" } })
|
|
2749
|
-
}
|
|
2750
|
-
);
|
|
2751
|
-
}
|
|
2752
|
-
})
|
|
2753
|
-
] : []
|
|
2751
|
+
)
|
|
2752
|
+
// Delete button is now in the # column (first column) so it's always visible
|
|
2753
|
+
// even when the table has many columns and requires horizontal scrolling.
|
|
2754
2754
|
],
|
|
2755
|
-
[$, f, y, e, r,
|
|
2755
|
+
[$, f, y, e, r, _, j]
|
|
2756
2756
|
), z = jn({
|
|
2757
2757
|
data: l,
|
|
2758
2758
|
columns: D,
|
|
@@ -2779,7 +2779,7 @@ const Ye = ({
|
|
|
2779
2779
|
{
|
|
2780
2780
|
type: "text",
|
|
2781
2781
|
value: C,
|
|
2782
|
-
onChange: (
|
|
2782
|
+
onChange: (F) => v(F.target.value),
|
|
2783
2783
|
placeholder: "Search all columns...",
|
|
2784
2784
|
className: "ff-input ff-max-w-xs"
|
|
2785
2785
|
}
|
|
@@ -2790,7 +2790,7 @@ const Ye = ({
|
|
|
2790
2790
|
] })
|
|
2791
2791
|
] }),
|
|
2792
2792
|
/* @__PURE__ */ c("div", { className: "ff-table-container ff-max-h-[500px]", children: /* @__PURE__ */ w("table", { className: "ff-table", children: [
|
|
2793
|
-
/* @__PURE__ */ c("thead", { children: z.getHeaderGroups().map((
|
|
2793
|
+
/* @__PURE__ */ c("thead", { children: z.getHeaderGroups().map((F) => /* @__PURE__ */ c("tr", { children: F.headers.map((I) => /* @__PURE__ */ c(
|
|
2794
2794
|
"th",
|
|
2795
2795
|
{
|
|
2796
2796
|
style: { width: I.getSize() },
|
|
@@ -2804,16 +2804,16 @@ const Ye = ({
|
|
|
2804
2804
|
] })
|
|
2805
2805
|
},
|
|
2806
2806
|
I.id
|
|
2807
|
-
)) },
|
|
2808
|
-
/* @__PURE__ */ c("tbody", { children: z.getRowModel().rows.map((
|
|
2809
|
-
const I = u.has(
|
|
2807
|
+
)) }, F.id)) }),
|
|
2808
|
+
/* @__PURE__ */ c("tbody", { children: z.getRowModel().rows.map((F) => {
|
|
2809
|
+
const I = u.has(F.original.rowIndex);
|
|
2810
2810
|
return /* @__PURE__ */ c(
|
|
2811
2811
|
"tr",
|
|
2812
2812
|
{
|
|
2813
2813
|
className: W(I && "ff-row-error"),
|
|
2814
|
-
children:
|
|
2814
|
+
children: F.getVisibleCells().map((M) => /* @__PURE__ */ c("td", { children: Qe(M.column.columnDef.cell, M.getContext()) }, M.id))
|
|
2815
2815
|
},
|
|
2816
|
-
|
|
2816
|
+
F.id
|
|
2817
2817
|
);
|
|
2818
2818
|
}) })
|
|
2819
2819
|
] }) }),
|
|
@@ -2999,13 +2999,13 @@ const Ye = ({
|
|
|
2999
2999
|
setMappings: y,
|
|
3000
3000
|
setUnmapped: x,
|
|
3001
3001
|
setValidationResults: $,
|
|
3002
|
-
setStep:
|
|
3002
|
+
setStep: _,
|
|
3003
3003
|
nextStep: P,
|
|
3004
3004
|
previousStep: Y,
|
|
3005
3005
|
setLoading: k,
|
|
3006
3006
|
setError: G,
|
|
3007
|
-
reset:
|
|
3008
|
-
} = te(), [D, z] =
|
|
3007
|
+
reset: j
|
|
3008
|
+
} = te(), [D, z] = q(null), [F, I] = q(null), [M, H] = q(0), [b, U] = q("");
|
|
3009
3009
|
Ke(() => {
|
|
3010
3010
|
if (I(null), e)
|
|
3011
3011
|
if (St(e)) {
|
|
@@ -3081,7 +3081,7 @@ const Ye = ({
|
|
|
3081
3081
|
} finally {
|
|
3082
3082
|
k(!1);
|
|
3083
3083
|
}
|
|
3084
|
-
}, [He, se] =
|
|
3084
|
+
}, [He, se] = q(null), [A, Ae] = q(null), ct = async () => {
|
|
3085
3085
|
if (f)
|
|
3086
3086
|
try {
|
|
3087
3087
|
k(!0), G(null), se(null);
|
|
@@ -3089,16 +3089,16 @@ const Ye = ({
|
|
|
3089
3089
|
skipInvalidRows: !0,
|
|
3090
3090
|
acknowledgeWarnings: !0
|
|
3091
3091
|
});
|
|
3092
|
-
Ae(V),
|
|
3092
|
+
Ae(V), _("complete"), l == null || l(V);
|
|
3093
3093
|
} catch (N) {
|
|
3094
|
-
se(N.message),
|
|
3094
|
+
se(N.message), _("complete");
|
|
3095
3095
|
} finally {
|
|
3096
3096
|
k(!1);
|
|
3097
3097
|
}
|
|
3098
3098
|
}, ie = () => {
|
|
3099
|
-
|
|
3099
|
+
j(), s == null || s();
|
|
3100
3100
|
}, Ge = () => {
|
|
3101
|
-
se(null), Ae(null), H(0), U(""),
|
|
3101
|
+
se(null), Ae(null), H(0), U(""), j(), D && (h(D), J(D));
|
|
3102
3102
|
}, gt = () => Un.findIndex((N) => N.key === u), pt = () => {
|
|
3103
3103
|
switch (u) {
|
|
3104
3104
|
case "upload":
|
|
@@ -3127,11 +3127,11 @@ const Ye = ({
|
|
|
3127
3127
|
P();
|
|
3128
3128
|
}
|
|
3129
3129
|
};
|
|
3130
|
-
if (
|
|
3130
|
+
if (F)
|
|
3131
3131
|
return /* @__PURE__ */ c(pe, { theme: n, useShadowDom: o, children: /* @__PURE__ */ c("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: [
|
|
3132
3132
|
/* @__PURE__ */ c("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-error-light)" }, children: /* @__PURE__ */ c(ce, { className: "ff-w-10 ff-h-10", style: { color: "var(--ff-error)" } }) }),
|
|
3133
3133
|
/* @__PURE__ */ c("h3", { className: "ff-text-xl ff-font-semibold ff-mb-2", style: { color: "var(--ff-text-primary)" }, children: "Configuration Error" }),
|
|
3134
|
-
/* @__PURE__ */ c("p", { className: "ff-text-center ff-max-w-md ff-mb-4", style: { color: "var(--ff-text-muted)" }, children:
|
|
3134
|
+
/* @__PURE__ */ c("p", { className: "ff-text-center ff-max-w-md ff-mb-4", style: { color: "var(--ff-text-muted)" }, children: F }),
|
|
3135
3135
|
s && /* @__PURE__ */ c("button", { onClick: ie, className: "ff-btn ff-btn-secondary", children: "Close" })
|
|
3136
3136
|
] }) }) });
|
|
3137
3137
|
if (!D)
|
|
@@ -3226,7 +3226,7 @@ const Ye = ({
|
|
|
3226
3226
|
"button",
|
|
3227
3227
|
{
|
|
3228
3228
|
onClick: () => {
|
|
3229
|
-
se(null),
|
|
3229
|
+
se(null), _("review");
|
|
3230
3230
|
},
|
|
3231
3231
|
className: "ff-btn ff-btn-secondary",
|
|
3232
3232
|
children: "Back to Review"
|
|
@@ -3306,4 +3306,4 @@ export {
|
|
|
3306
3306
|
Je as V,
|
|
3307
3307
|
te as u
|
|
3308
3308
|
};
|
|
3309
|
-
//# sourceMappingURL=ImportWizard-
|
|
3309
|
+
//# sourceMappingURL=ImportWizard-Ctm4PB3o.mjs.map
|