dccxx-s3-explorer 1.0.15 → 1.0.17
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/s3-explorer.js +491 -501
- package/dist/s3-explorer.js.map +1 -1
- package/dist/s3-explorer.umd.cjs +8 -8
- package/dist/s3-explorer.umd.cjs.map +1 -1
- package/package.json +130 -130
package/dist/s3-explorer.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { jsx as p, Fragment as ce, jsxs as
|
|
1
|
+
import { jsx as p, Fragment as ce, jsxs as O } from "react/jsx-runtime";
|
|
2
2
|
import * as u from "react";
|
|
3
3
|
import le, { forwardRef as ys, createElement as _o, useState as Q, useRef as Er, useEffect as qt, useMemo as Zt, useImperativeHandle as gd, memo as Pa, useLayoutEffect as md } from "react";
|
|
4
4
|
import * as Nr from "react-dom";
|
|
@@ -184,7 +184,7 @@ const fi = /* @__PURE__ */ u.forwardRef(Nd);
|
|
|
184
184
|
function Nt(e, t) {
|
|
185
185
|
return typeof e == "function" ? e(t) : e;
|
|
186
186
|
}
|
|
187
|
-
function
|
|
187
|
+
function Ie(e, t) {
|
|
188
188
|
return (n) => {
|
|
189
189
|
t.setState((r) => ({
|
|
190
190
|
...r,
|
|
@@ -507,8 +507,8 @@ const Ma = (e, t, n) => n.some((r) => {
|
|
|
507
507
|
Ma.autoRemove = (e) => Ke(e) || !(e != null && e.length);
|
|
508
508
|
const ka = (e, t, n) => e.getValue(t) === n;
|
|
509
509
|
ka.autoRemove = (e) => Ke(e);
|
|
510
|
-
const
|
|
511
|
-
|
|
510
|
+
const $a = (e, t, n) => e.getValue(t) == n;
|
|
511
|
+
$a.autoRemove = (e) => Ke(e);
|
|
512
512
|
const bs = (e, t, n) => {
|
|
513
513
|
let [r, o] = n;
|
|
514
514
|
const s = e.getValue(t);
|
|
@@ -531,7 +531,7 @@ const pt = {
|
|
|
531
531
|
arrIncludesAll: Da,
|
|
532
532
|
arrIncludesSome: Ma,
|
|
533
533
|
equals: ka,
|
|
534
|
-
weakEquals:
|
|
534
|
+
weakEquals: $a,
|
|
535
535
|
inNumberRange: bs
|
|
536
536
|
};
|
|
537
537
|
function Ke(e) {
|
|
@@ -546,7 +546,7 @@ const Dd = {
|
|
|
546
546
|
...e
|
|
547
547
|
}),
|
|
548
548
|
getDefaultOptions: (e) => ({
|
|
549
|
-
onColumnFiltersChange:
|
|
549
|
+
onColumnFiltersChange: Ie("columnFilters", e),
|
|
550
550
|
filterFromLeafRows: !1,
|
|
551
551
|
maxLeafRowFilterDepth: 100
|
|
552
552
|
}),
|
|
@@ -624,13 +624,13 @@ const Md = (e, t, n) => n.reduce((r, o) => {
|
|
|
624
624
|
const s = o.getValue(e);
|
|
625
625
|
s != null && (r > s || r === void 0 && s >= s) && (r = s);
|
|
626
626
|
}), r;
|
|
627
|
-
},
|
|
627
|
+
}, $d = (e, t, n) => {
|
|
628
628
|
let r;
|
|
629
629
|
return n.forEach((o) => {
|
|
630
630
|
const s = o.getValue(e);
|
|
631
631
|
s != null && (r < s || r === void 0 && s >= s) && (r = s);
|
|
632
632
|
}), r;
|
|
633
|
-
},
|
|
633
|
+
}, Id = (e, t, n) => {
|
|
634
634
|
let r, o;
|
|
635
635
|
return n.forEach((s) => {
|
|
636
636
|
const i = s.getValue(e);
|
|
@@ -655,8 +655,8 @@ const Md = (e, t, n) => n.reduce((r, o) => {
|
|
|
655
655
|
}, Bd = (e, t) => Array.from(new Set(t.map((n) => n.getValue(e))).values()), zd = (e, t) => new Set(t.map((n) => n.getValue(e))).size, Hd = (e, t) => t.length, Qr = {
|
|
656
656
|
sum: Md,
|
|
657
657
|
min: kd,
|
|
658
|
-
max:
|
|
659
|
-
extent:
|
|
658
|
+
max: $d,
|
|
659
|
+
extent: Id,
|
|
660
660
|
mean: Ld,
|
|
661
661
|
median: Vd,
|
|
662
662
|
unique: Bd,
|
|
@@ -675,7 +675,7 @@ const Md = (e, t, n) => n.reduce((r, o) => {
|
|
|
675
675
|
...e
|
|
676
676
|
}),
|
|
677
677
|
getDefaultOptions: (e) => ({
|
|
678
|
-
onGroupingChange:
|
|
678
|
+
onGroupingChange: Ie("grouping", e),
|
|
679
679
|
groupedColumnMode: "reorder"
|
|
680
680
|
}),
|
|
681
681
|
createColumn: (e, t) => {
|
|
@@ -741,7 +741,7 @@ const Gd = {
|
|
|
741
741
|
...e
|
|
742
742
|
}),
|
|
743
743
|
getDefaultOptions: (e) => ({
|
|
744
|
-
onColumnOrderChange:
|
|
744
|
+
onColumnOrderChange: Ie("columnOrder", e)
|
|
745
745
|
}),
|
|
746
746
|
createColumn: (e, t) => {
|
|
747
747
|
e.getIndex = X((n) => [En(t, n)], (n) => n.findIndex((r) => r.id === e.id), Y(t.options, "debugColumns", "getIndex")), e.getIsFirstColumn = (n) => {
|
|
@@ -781,7 +781,7 @@ const Gd = {
|
|
|
781
781
|
...e
|
|
782
782
|
}),
|
|
783
783
|
getDefaultOptions: (e) => ({
|
|
784
|
-
onColumnPinningChange:
|
|
784
|
+
onColumnPinningChange: Ie("columnPinning", e)
|
|
785
785
|
}),
|
|
786
786
|
createColumn: (e, t) => {
|
|
787
787
|
e.pin = (n) => {
|
|
@@ -872,8 +872,8 @@ const Gd = {
|
|
|
872
872
|
getDefaultOptions: (e) => ({
|
|
873
873
|
columnResizeMode: "onEnd",
|
|
874
874
|
columnResizeDirection: "ltr",
|
|
875
|
-
onColumnSizingChange:
|
|
876
|
-
onColumnSizingInfoChange:
|
|
875
|
+
onColumnSizingChange: Ie("columnSizing", e),
|
|
876
|
+
onColumnSizingInfoChange: Ie("columnSizingInfo", e)
|
|
877
877
|
}),
|
|
878
878
|
createColumn: (e, t) => {
|
|
879
879
|
e.getSize = () => {
|
|
@@ -921,8 +921,8 @@ const Gd = {
|
|
|
921
921
|
var N, b;
|
|
922
922
|
const S = t.options.columnResizeDirection === "rtl" ? -1 : 1, R = (x - ((N = E == null ? void 0 : E.startOffset) != null ? N : 0)) * S, M = Math.max(R / ((b = E == null ? void 0 : E.startSize) != null ? b : 0), -0.999999);
|
|
923
923
|
return E.columnSizingStart.forEach((j) => {
|
|
924
|
-
let [
|
|
925
|
-
l[
|
|
924
|
+
let [z, Z] = j;
|
|
925
|
+
l[z] = Math.round(Math.max(Z + Z * M, 0) * 100) / 100;
|
|
926
926
|
}), {
|
|
927
927
|
...E,
|
|
928
928
|
deltaOffset: R,
|
|
@@ -1016,7 +1016,7 @@ const Xd = {
|
|
|
1016
1016
|
...e
|
|
1017
1017
|
}),
|
|
1018
1018
|
getDefaultOptions: (e) => ({
|
|
1019
|
-
onColumnVisibilityChange:
|
|
1019
|
+
onColumnVisibilityChange: Ie("columnVisibility", e)
|
|
1020
1020
|
}),
|
|
1021
1021
|
createColumn: (e, t) => {
|
|
1022
1022
|
e.toggleVisibility = (n) => {
|
|
@@ -1071,7 +1071,7 @@ const Yd = {
|
|
|
1071
1071
|
...e
|
|
1072
1072
|
}),
|
|
1073
1073
|
getDefaultOptions: (e) => ({
|
|
1074
|
-
onGlobalFilterChange:
|
|
1074
|
+
onGlobalFilterChange: Ie("globalFilter", e),
|
|
1075
1075
|
globalFilterFn: "auto",
|
|
1076
1076
|
getColumnCanGlobalFilter: (t) => {
|
|
1077
1077
|
var n;
|
|
@@ -1104,7 +1104,7 @@ const Yd = {
|
|
|
1104
1104
|
...e
|
|
1105
1105
|
}),
|
|
1106
1106
|
getDefaultOptions: (e) => ({
|
|
1107
|
-
onExpandedChange:
|
|
1107
|
+
onExpandedChange: Ie("expanded", e),
|
|
1108
1108
|
paginateExpandedRows: !0
|
|
1109
1109
|
}),
|
|
1110
1110
|
createTable: (e) => {
|
|
@@ -1197,7 +1197,7 @@ const Yd = {
|
|
|
1197
1197
|
}
|
|
1198
1198
|
}),
|
|
1199
1199
|
getDefaultOptions: (e) => ({
|
|
1200
|
-
onPaginationChange:
|
|
1200
|
+
onPaginationChange: Ie("pagination", e)
|
|
1201
1201
|
}),
|
|
1202
1202
|
createTable: (e) => {
|
|
1203
1203
|
let t = !1, n = !1;
|
|
@@ -1277,7 +1277,7 @@ const Yd = {
|
|
|
1277
1277
|
...e
|
|
1278
1278
|
}),
|
|
1279
1279
|
getDefaultOptions: (e) => ({
|
|
1280
|
-
onRowPinningChange:
|
|
1280
|
+
onRowPinningChange: Ie("rowPinning", e)
|
|
1281
1281
|
}),
|
|
1282
1282
|
createRow: (e, t) => {
|
|
1283
1283
|
e.pin = (n, r, o) => {
|
|
@@ -1378,7 +1378,7 @@ const Yd = {
|
|
|
1378
1378
|
...e
|
|
1379
1379
|
}),
|
|
1380
1380
|
getDefaultOptions: (e) => ({
|
|
1381
|
-
onRowSelectionChange:
|
|
1381
|
+
onRowSelectionChange: Ie("rowSelection", e),
|
|
1382
1382
|
enableRowSelection: !0,
|
|
1383
1383
|
enableMultiRowSelection: !0,
|
|
1384
1384
|
enableSubRowSelection: !0
|
|
@@ -1528,7 +1528,7 @@ function Mo(e, t, n) {
|
|
|
1528
1528
|
}
|
|
1529
1529
|
}), o ? "all" : s ? "some" : !1;
|
|
1530
1530
|
}
|
|
1531
|
-
const ko = /([0-9]+)/gm, nf = (e, t, n) =>
|
|
1531
|
+
const ko = /([0-9]+)/gm, nf = (e, t, n) => Ia(At(e.getValue(n)).toLowerCase(), At(t.getValue(n)).toLowerCase()), rf = (e, t, n) => Ia(At(e.getValue(n)), At(t.getValue(n))), of = (e, t, n) => Cs(At(e.getValue(n)).toLowerCase(), At(t.getValue(n)).toLowerCase()), sf = (e, t, n) => Cs(At(e.getValue(n)), At(t.getValue(n))), af = (e, t, n) => {
|
|
1532
1532
|
const r = e.getValue(n), o = t.getValue(n);
|
|
1533
1533
|
return r > o ? 1 : r < o ? -1 : 0;
|
|
1534
1534
|
}, lf = (e, t, n) => Cs(e.getValue(n), t.getValue(n));
|
|
@@ -1538,7 +1538,7 @@ function Cs(e, t) {
|
|
|
1538
1538
|
function At(e) {
|
|
1539
1539
|
return typeof e == "number" ? isNaN(e) || e === 1 / 0 || e === -1 / 0 ? "" : String(e) : typeof e == "string" ? e : "";
|
|
1540
1540
|
}
|
|
1541
|
-
function
|
|
1541
|
+
function Ia(e, t) {
|
|
1542
1542
|
const n = e.split(ko).filter(Boolean), r = t.split(ko).filter(Boolean);
|
|
1543
1543
|
for (; n.length && r.length; ) {
|
|
1544
1544
|
const o = n.shift(), s = r.shift(), i = parseInt(o, 10), a = parseInt(s, 10), c = [i, a].sort();
|
|
@@ -1575,7 +1575,7 @@ const vn = {
|
|
|
1575
1575
|
sortUndefined: 1
|
|
1576
1576
|
}),
|
|
1577
1577
|
getDefaultOptions: (e) => ({
|
|
1578
|
-
onSortingChange:
|
|
1578
|
+
onSortingChange: Ie("sorting", e),
|
|
1579
1579
|
isMultiSortEvent: (t) => t.shiftKey
|
|
1580
1580
|
}),
|
|
1581
1581
|
createColumn: (e, t) => {
|
|
@@ -2027,18 +2027,18 @@ function ja(e, t) {
|
|
|
2027
2027
|
return null;
|
|
2028
2028
|
}
|
|
2029
2029
|
const Lt = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global, Ua = (e) => !Tn(e) && e !== Lt;
|
|
2030
|
-
function
|
|
2030
|
+
function $o() {
|
|
2031
2031
|
const { caseless: e } = Ua(this) && this || {}, t = {}, n = (r, o) => {
|
|
2032
2032
|
const s = e && ja(t, o) || o;
|
|
2033
|
-
er(t[s]) && er(r) ? t[s] =
|
|
2033
|
+
er(t[s]) && er(r) ? t[s] = $o(t[s], r) : er(r) ? t[s] = $o({}, r) : ln(r) ? t[s] = r.slice() : t[s] = r;
|
|
2034
2034
|
};
|
|
2035
2035
|
for (let r = 0, o = arguments.length; r < o; r++)
|
|
2036
2036
|
arguments[r] && Fn(arguments[r], n);
|
|
2037
2037
|
return t;
|
|
2038
2038
|
}
|
|
2039
|
-
const
|
|
2039
|
+
const $f = (e, t, n, { allOwnKeys: r } = {}) => (Fn(t, (o, s) => {
|
|
2040
2040
|
n && ke(o) ? e[s] = Ba(o, n) : e[s] = o;
|
|
2041
|
-
}, { allOwnKeys: r }), e),
|
|
2041
|
+
}, { allOwnKeys: r }), e), If = (e) => (e.charCodeAt(0) === 65279 && (e = e.slice(1)), e), Lf = (e, t, n, r) => {
|
|
2042
2042
|
e.prototype = Object.create(t.prototype, r), e.prototype.constructor = e, Object.defineProperty(e, "super", {
|
|
2043
2043
|
value: t.prototype
|
|
2044
2044
|
}), n && Object.assign(e.prototype, n);
|
|
@@ -2176,10 +2176,10 @@ const ep = (e) => {
|
|
|
2176
2176
|
isTypedArray: Hf,
|
|
2177
2177
|
isFileList: Pf,
|
|
2178
2178
|
forEach: Fn,
|
|
2179
|
-
merge:
|
|
2180
|
-
extend:
|
|
2179
|
+
merge: $o,
|
|
2180
|
+
extend: $f,
|
|
2181
2181
|
trim: kf,
|
|
2182
|
-
stripBOM:
|
|
2182
|
+
stripBOM: If,
|
|
2183
2183
|
inherits: Lf,
|
|
2184
2184
|
toFlatObject: Vf,
|
|
2185
2185
|
kindOf: Tr,
|
|
@@ -2261,7 +2261,7 @@ ee.from = (e, t, n, r, o, s) => {
|
|
|
2261
2261
|
}, (a) => a !== "isAxiosError"), ee.call(i, e.message, t, n, r, o), i.cause = e, i.name = e.name, s && Object.assign(i, s), i;
|
|
2262
2262
|
};
|
|
2263
2263
|
const op = null;
|
|
2264
|
-
function
|
|
2264
|
+
function Io(e) {
|
|
2265
2265
|
return T.isPlainObject(e) || T.isArray(e);
|
|
2266
2266
|
}
|
|
2267
2267
|
function Ya(e) {
|
|
@@ -2273,7 +2273,7 @@ function vi(e, t, n) {
|
|
|
2273
2273
|
}).join(n ? "." : "") : t;
|
|
2274
2274
|
}
|
|
2275
2275
|
function sp(e) {
|
|
2276
|
-
return T.isArray(e) && !e.some(
|
|
2276
|
+
return T.isArray(e) && !e.some(Io);
|
|
2277
2277
|
}
|
|
2278
2278
|
const ip = T.toFlatObject(T, {}, null, function(t) {
|
|
2279
2279
|
return /^is[A-Z]/.test(t);
|
|
@@ -2313,12 +2313,12 @@ function Fr(e, t, n) {
|
|
|
2313
2313
|
);
|
|
2314
2314
|
}), !1;
|
|
2315
2315
|
}
|
|
2316
|
-
return
|
|
2316
|
+
return Io(v) ? !0 : (t.append(vi(y, m, s), l(v)), !1);
|
|
2317
2317
|
}
|
|
2318
2318
|
const g = [], h = Object.assign(ip, {
|
|
2319
2319
|
defaultVisitor: d,
|
|
2320
2320
|
convertValue: l,
|
|
2321
|
-
isVisitable:
|
|
2321
|
+
isVisitable: Io
|
|
2322
2322
|
});
|
|
2323
2323
|
function f(v, m) {
|
|
2324
2324
|
if (!T.isUndefined(v)) {
|
|
@@ -3059,7 +3059,7 @@ const ol = (e) => {
|
|
|
3059
3059
|
const { signal: c } = r;
|
|
3060
3060
|
return c.unsubscribe = () => T.asap(a), c;
|
|
3061
3061
|
}
|
|
3062
|
-
},
|
|
3062
|
+
}, $p = function* (e, t) {
|
|
3063
3063
|
let n = e.byteLength;
|
|
3064
3064
|
if (n < t) {
|
|
3065
3065
|
yield e;
|
|
@@ -3068,9 +3068,9 @@ const ol = (e) => {
|
|
|
3068
3068
|
let r = 0, o;
|
|
3069
3069
|
for (; r < n; )
|
|
3070
3070
|
o = r + t, yield e.slice(r, o), r = o;
|
|
3071
|
-
},
|
|
3071
|
+
}, Ip = async function* (e, t) {
|
|
3072
3072
|
for await (const n of Lp(e))
|
|
3073
|
-
yield*
|
|
3073
|
+
yield* $p(n, t);
|
|
3074
3074
|
}, Lp = async function* (e) {
|
|
3075
3075
|
if (e[Symbol.asyncIterator]) {
|
|
3076
3076
|
yield* e;
|
|
@@ -3088,7 +3088,7 @@ const ol = (e) => {
|
|
|
3088
3088
|
await t.cancel();
|
|
3089
3089
|
}
|
|
3090
3090
|
}, Ri = (e, t, n, r) => {
|
|
3091
|
-
const o =
|
|
3091
|
+
const o = Ip(e, t);
|
|
3092
3092
|
let s = 0, i, a = (c) => {
|
|
3093
3093
|
i || (i = !0, r && r(c));
|
|
3094
3094
|
};
|
|
@@ -4112,8 +4112,8 @@ const de = (e) => {
|
|
|
4112
4112
|
// For example, `hsl(0 0% 0%)` would be classified as a length without this check.
|
|
4113
4113
|
// I could also use lookbehind assertion in `lengthUnitRegex` but that isn't supported widely enough.
|
|
4114
4114
|
Cg.test(e) && !Sg.test(e)
|
|
4115
|
-
), bl = () => !1, Mg = (e) => Rg.test(e), kg = (e) => Eg.test(e),
|
|
4116
|
-
const e = de("colors"), t = de("spacing"), n = de("blur"), r = de("brightness"), o = de("borderColor"), s = de("borderRadius"), i = de("borderSpacing"), a = de("borderWidth"), c = de("contrast"), l = de("grayscale"), d = de("hueRotate"), g = de("invert"), h = de("gap"), f = de("gradientColorStops"), v = de("gradientColorStopPositions"), m = de("inset"), y = de("margin"), w = de("opacity"), x = de("padding"), E = de("saturate"), N = de("scale"), b = de("sepia"), S = de("skew"), R = de("space"), M = de("translate"), j = () => ["auto", "contain", "none"],
|
|
4115
|
+
), bl = () => !1, Mg = (e) => Rg.test(e), kg = (e) => Eg.test(e), $g = () => {
|
|
4116
|
+
const e = de("colors"), t = de("spacing"), n = de("blur"), r = de("brightness"), o = de("borderColor"), s = de("borderRadius"), i = de("borderSpacing"), a = de("borderWidth"), c = de("contrast"), l = de("grayscale"), d = de("hueRotate"), g = de("invert"), h = de("gap"), f = de("gradientColorStops"), v = de("gradientColorStopPositions"), m = de("inset"), y = de("margin"), w = de("opacity"), x = de("padding"), E = de("saturate"), N = de("scale"), b = de("sepia"), S = de("skew"), R = de("space"), M = de("translate"), j = () => ["auto", "contain", "none"], z = () => ["auto", "hidden", "clip", "visible", "scroll"], Z = () => ["auto", re, t], _ = () => [re, t], $ = () => ["", dt, Ct], F = () => ["auto", en, re], G = () => ["bottom", "center", "left", "left-bottom", "left-top", "right", "right-bottom", "right-top", "top"], B = () => ["solid", "dashed", "dotted", "double", "none"], q = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], K = () => ["start", "end", "center", "between", "around", "evenly", "stretch"], te = () => ["", "0", re], ue = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], oe = () => [en, re];
|
|
4117
4117
|
return {
|
|
4118
4118
|
cacheSize: 500,
|
|
4119
4119
|
separator: ":",
|
|
@@ -4125,7 +4125,7 @@ const de = (e) => {
|
|
|
4125
4125
|
borderColor: [e],
|
|
4126
4126
|
borderRadius: ["none", "", "full", St, re],
|
|
4127
4127
|
borderSpacing: _(),
|
|
4128
|
-
borderWidth:
|
|
4128
|
+
borderWidth: $(),
|
|
4129
4129
|
contrast: oe(),
|
|
4130
4130
|
grayscale: te(),
|
|
4131
4131
|
hueRotate: oe(),
|
|
@@ -4243,21 +4243,21 @@ const de = (e) => {
|
|
|
4243
4243
|
* @see https://tailwindcss.com/docs/overflow
|
|
4244
4244
|
*/
|
|
4245
4245
|
overflow: [{
|
|
4246
|
-
overflow:
|
|
4246
|
+
overflow: z()
|
|
4247
4247
|
}],
|
|
4248
4248
|
/**
|
|
4249
4249
|
* Overflow X
|
|
4250
4250
|
* @see https://tailwindcss.com/docs/overflow
|
|
4251
4251
|
*/
|
|
4252
4252
|
"overflow-x": [{
|
|
4253
|
-
"overflow-x":
|
|
4253
|
+
"overflow-x": z()
|
|
4254
4254
|
}],
|
|
4255
4255
|
/**
|
|
4256
4256
|
* Overflow Y
|
|
4257
4257
|
* @see https://tailwindcss.com/docs/overflow
|
|
4258
4258
|
*/
|
|
4259
4259
|
"overflow-y": [{
|
|
4260
|
-
"overflow-y":
|
|
4260
|
+
"overflow-y": z()
|
|
4261
4261
|
}],
|
|
4262
4262
|
/**
|
|
4263
4263
|
* Overscroll Behavior
|
|
@@ -4431,14 +4431,14 @@ const de = (e) => {
|
|
|
4431
4431
|
* @see https://tailwindcss.com/docs/grid-column
|
|
4432
4432
|
*/
|
|
4433
4433
|
"col-start": [{
|
|
4434
|
-
"col-start":
|
|
4434
|
+
"col-start": F()
|
|
4435
4435
|
}],
|
|
4436
4436
|
/**
|
|
4437
4437
|
* Grid Column End
|
|
4438
4438
|
* @see https://tailwindcss.com/docs/grid-column
|
|
4439
4439
|
*/
|
|
4440
4440
|
"col-end": [{
|
|
4441
|
-
"col-end":
|
|
4441
|
+
"col-end": F()
|
|
4442
4442
|
}],
|
|
4443
4443
|
/**
|
|
4444
4444
|
* Grid Template Rows
|
|
@@ -4461,14 +4461,14 @@ const de = (e) => {
|
|
|
4461
4461
|
* @see https://tailwindcss.com/docs/grid-row
|
|
4462
4462
|
*/
|
|
4463
4463
|
"row-start": [{
|
|
4464
|
-
"row-start":
|
|
4464
|
+
"row-start": F()
|
|
4465
4465
|
}],
|
|
4466
4466
|
/**
|
|
4467
4467
|
* Grid Row End
|
|
4468
4468
|
* @see https://tailwindcss.com/docs/grid-row
|
|
4469
4469
|
*/
|
|
4470
4470
|
"row-end": [{
|
|
4471
|
-
"row-end":
|
|
4471
|
+
"row-end": F()
|
|
4472
4472
|
}],
|
|
4473
4473
|
/**
|
|
4474
4474
|
* Grid Auto Flow
|
|
@@ -5445,7 +5445,7 @@ const de = (e) => {
|
|
|
5445
5445
|
* @see https://tailwindcss.com/docs/ring-width
|
|
5446
5446
|
*/
|
|
5447
5447
|
"ring-w": [{
|
|
5448
|
-
ring:
|
|
5448
|
+
ring: $()
|
|
5449
5449
|
}],
|
|
5450
5450
|
/**
|
|
5451
5451
|
* Ring Width Inset
|
|
@@ -6141,9 +6141,9 @@ const de = (e) => {
|
|
|
6141
6141
|
"font-size": ["leading"]
|
|
6142
6142
|
}
|
|
6143
6143
|
};
|
|
6144
|
-
},
|
|
6144
|
+
}, Ig = /* @__PURE__ */ yg($g);
|
|
6145
6145
|
function J(...e) {
|
|
6146
|
-
return
|
|
6146
|
+
return Ig(ml(e));
|
|
6147
6147
|
}
|
|
6148
6148
|
const Lg = (e) => {
|
|
6149
6149
|
if (e === 0) return "0 Bytes";
|
|
@@ -6580,7 +6580,7 @@ var As = "Checkbox", [Qg, Px] = Mt(As), [em, tm] = Qg(As), Tl = u.forwardRef(
|
|
|
6580
6580
|
const b = () => x(E.current);
|
|
6581
6581
|
return N.addEventListener("reset", b), () => N.removeEventListener("reset", b);
|
|
6582
6582
|
}
|
|
6583
|
-
}, [h, x]), /* @__PURE__ */
|
|
6583
|
+
}, [h, x]), /* @__PURE__ */ O(em, { scope: n, state: w, disabled: a, children: [
|
|
6584
6584
|
/* @__PURE__ */ p(
|
|
6585
6585
|
xe.button,
|
|
6586
6586
|
{
|
|
@@ -6725,11 +6725,11 @@ var im = "DismissableLayer", Ko = "dismissableLayer.update", am = "dismissableLa
|
|
|
6725
6725
|
onDismiss: a,
|
|
6726
6726
|
...c
|
|
6727
6727
|
} = e, l = u.useContext(Ml), [d, g] = u.useState(null), h = (d == null ? void 0 : d.ownerDocument) ?? (globalThis == null ? void 0 : globalThis.document), [, f] = u.useState({}), v = ze(t, (R) => g(R)), m = Array.from(l.layers), [y] = [...l.layersWithOutsidePointerEventsDisabled].slice(-1), w = m.indexOf(y), x = d ? m.indexOf(d) : -1, E = l.layersWithOutsidePointerEventsDisabled.size > 0, N = x >= w, b = um((R) => {
|
|
6728
|
-
const M = R.target, j = [...l.branches].some((
|
|
6728
|
+
const M = R.target, j = [...l.branches].some((z) => z.contains(M));
|
|
6729
6729
|
!N || j || (o == null || o(R), i == null || i(R), R.defaultPrevented || a == null || a());
|
|
6730
6730
|
}, h), S = dm((R) => {
|
|
6731
6731
|
const M = R.target;
|
|
6732
|
-
[...l.branches].some((
|
|
6732
|
+
[...l.branches].some((z) => z.contains(M)) || (s == null || s(R), i == null || i(R), R.defaultPrevented || a == null || a());
|
|
6733
6733
|
}, h);
|
|
6734
6734
|
return Dl((R) => {
|
|
6735
6735
|
x === l.layers.size - 1 && (r == null || r(R), !R.defaultPrevented && a && (R.preventDefault(), a()));
|
|
@@ -6781,7 +6781,7 @@ function um(e, t = globalThis == null ? void 0 : globalThis.document) {
|
|
|
6781
6781
|
const s = (a) => {
|
|
6782
6782
|
if (a.target && !r.current) {
|
|
6783
6783
|
let c = function() {
|
|
6784
|
-
|
|
6784
|
+
$l(
|
|
6785
6785
|
am,
|
|
6786
6786
|
n,
|
|
6787
6787
|
l,
|
|
@@ -6808,7 +6808,7 @@ function dm(e, t = globalThis == null ? void 0 : globalThis.document) {
|
|
|
6808
6808
|
const n = Ne(e), r = u.useRef(!1);
|
|
6809
6809
|
return u.useEffect(() => {
|
|
6810
6810
|
const o = (s) => {
|
|
6811
|
-
s.target && !r.current &&
|
|
6811
|
+
s.target && !r.current && $l(lm, n, { originalEvent: s }, {
|
|
6812
6812
|
discrete: !1
|
|
6813
6813
|
});
|
|
6814
6814
|
};
|
|
@@ -6822,11 +6822,11 @@ function ki() {
|
|
|
6822
6822
|
const e = new CustomEvent(Ko);
|
|
6823
6823
|
document.dispatchEvent(e);
|
|
6824
6824
|
}
|
|
6825
|
-
function
|
|
6825
|
+
function $l(e, t, n, { discrete: r }) {
|
|
6826
6826
|
const o = n.originalEvent.target, s = new CustomEvent(e, { bubbles: !1, cancelable: !0, detail: n });
|
|
6827
6827
|
t && o.addEventListener(e, t, { once: !0 }), r ? Pl(o, s) : o.dispatchEvent(s);
|
|
6828
6828
|
}
|
|
6829
|
-
var fm = _s, pm = kl, fo = "focusScope.autoFocusOnMount", po = "focusScope.autoFocusOnUnmount",
|
|
6829
|
+
var fm = _s, pm = kl, fo = "focusScope.autoFocusOnMount", po = "focusScope.autoFocusOnUnmount", $i = { bubbles: !1, cancelable: !0 }, gm = "FocusScope", Il = u.forwardRef((e, t) => {
|
|
6830
6830
|
const {
|
|
6831
6831
|
loop: n = !1,
|
|
6832
6832
|
trapped: r = !1,
|
|
@@ -6868,12 +6868,12 @@ var fm = _s, pm = kl, fo = "focusScope.autoFocusOnMount", po = "focusScope.autoF
|
|
|
6868
6868
|
Li.add(f);
|
|
6869
6869
|
const m = document.activeElement;
|
|
6870
6870
|
if (!a.contains(m)) {
|
|
6871
|
-
const w = new CustomEvent(fo,
|
|
6871
|
+
const w = new CustomEvent(fo, $i);
|
|
6872
6872
|
a.addEventListener(fo, l), a.dispatchEvent(w), w.defaultPrevented || (mm(bm(Ll(a)), { select: !0 }), document.activeElement === m && Rt(a));
|
|
6873
6873
|
}
|
|
6874
6874
|
return () => {
|
|
6875
6875
|
a.removeEventListener(fo, l), setTimeout(() => {
|
|
6876
|
-
const w = new CustomEvent(po,
|
|
6876
|
+
const w = new CustomEvent(po, $i);
|
|
6877
6877
|
a.addEventListener(po, d), a.dispatchEvent(w), w.defaultPrevented || Rt(m ?? document.body, { select: !0 }), a.removeEventListener(po, d), Li.remove(f);
|
|
6878
6878
|
}, 0);
|
|
6879
6879
|
};
|
|
@@ -6892,14 +6892,14 @@ var fm = _s, pm = kl, fo = "focusScope.autoFocusOnMount", po = "focusScope.autoF
|
|
|
6892
6892
|
);
|
|
6893
6893
|
return /* @__PURE__ */ p(xe.div, { tabIndex: -1, ...i, ref: h, onKeyDown: v });
|
|
6894
6894
|
});
|
|
6895
|
-
|
|
6895
|
+
Il.displayName = gm;
|
|
6896
6896
|
function mm(e, { select: t = !1 } = {}) {
|
|
6897
6897
|
const n = document.activeElement;
|
|
6898
6898
|
for (const r of e)
|
|
6899
6899
|
if (Rt(r, { select: t }), document.activeElement !== n) return;
|
|
6900
6900
|
}
|
|
6901
6901
|
function hm(e) {
|
|
6902
|
-
const t = Ll(e), n =
|
|
6902
|
+
const t = Ll(e), n = Ii(t, e), r = Ii(t.reverse(), e);
|
|
6903
6903
|
return [n, r];
|
|
6904
6904
|
}
|
|
6905
6905
|
function Ll(e) {
|
|
@@ -6912,7 +6912,7 @@ function Ll(e) {
|
|
|
6912
6912
|
for (; n.nextNode(); ) t.push(n.currentNode);
|
|
6913
6913
|
return t;
|
|
6914
6914
|
}
|
|
6915
|
-
function
|
|
6915
|
+
function Ii(e, t) {
|
|
6916
6916
|
for (const n of e)
|
|
6917
6917
|
if (!vm(n, { upTo: t })) return n;
|
|
6918
6918
|
}
|
|
@@ -7178,7 +7178,7 @@ function km(e) {
|
|
|
7178
7178
|
var t = document.head || document.getElementsByTagName("head")[0];
|
|
7179
7179
|
t.appendChild(e);
|
|
7180
7180
|
}
|
|
7181
|
-
var
|
|
7181
|
+
var $m = function() {
|
|
7182
7182
|
var e = 0, t = null;
|
|
7183
7183
|
return {
|
|
7184
7184
|
add: function(n) {
|
|
@@ -7188,8 +7188,8 @@ var Im = function() {
|
|
|
7188
7188
|
e--, !e && t && (t.parentNode && t.parentNode.removeChild(t), t = null);
|
|
7189
7189
|
}
|
|
7190
7190
|
};
|
|
7191
|
-
},
|
|
7192
|
-
var e =
|
|
7191
|
+
}, Im = function() {
|
|
7192
|
+
var e = $m();
|
|
7193
7193
|
return function(t, n) {
|
|
7194
7194
|
u.useEffect(function() {
|
|
7195
7195
|
return e.add(t), function() {
|
|
@@ -7198,7 +7198,7 @@ var Im = function() {
|
|
|
7198
7198
|
}, [t && n]);
|
|
7199
7199
|
};
|
|
7200
7200
|
}, Ul = function() {
|
|
7201
|
-
var e =
|
|
7201
|
+
var e = Im(), t = function(n) {
|
|
7202
7202
|
var r = n.styles, o = n.dynamic;
|
|
7203
7203
|
return e(r, o), null;
|
|
7204
7204
|
};
|
|
@@ -7692,9 +7692,9 @@ var mh = u.forwardRef(
|
|
|
7692
7692
|
), sc = u.forwardRef(
|
|
7693
7693
|
(e, t) => {
|
|
7694
7694
|
const { __scopeDialog: n, trapFocus: r, onOpenAutoFocus: o, onCloseAutoFocus: s, ...i } = e, a = Ze(Gt, n), c = u.useRef(null), l = ze(t, c);
|
|
7695
|
-
return Cm(), /* @__PURE__ */
|
|
7695
|
+
return Cm(), /* @__PURE__ */ O(ce, { children: [
|
|
7696
7696
|
/* @__PURE__ */ p(
|
|
7697
|
-
|
|
7697
|
+
Il,
|
|
7698
7698
|
{
|
|
7699
7699
|
asChild: !0,
|
|
7700
7700
|
loop: !0,
|
|
@@ -7716,7 +7716,7 @@ var mh = u.forwardRef(
|
|
|
7716
7716
|
)
|
|
7717
7717
|
}
|
|
7718
7718
|
),
|
|
7719
|
-
/* @__PURE__ */
|
|
7719
|
+
/* @__PURE__ */ O(ce, { children: [
|
|
7720
7720
|
/* @__PURE__ */ p(vh, { titleId: a.titleId }),
|
|
7721
7721
|
/* @__PURE__ */ p(wh, { contentRef: c, descriptionId: a.descriptionId })
|
|
7722
7722
|
] })
|
|
@@ -7787,9 +7787,9 @@ const Qt = bh, hr = xh, Rh = Ch, vc = u.forwardRef(({ className: e, ...t }, n) =
|
|
|
7787
7787
|
}
|
|
7788
7788
|
));
|
|
7789
7789
|
vc.displayName = pc.displayName;
|
|
7790
|
-
const Vt = u.forwardRef(({ className: e, children: t, ...n }, r) => /* @__PURE__ */
|
|
7790
|
+
const Vt = u.forwardRef(({ className: e, children: t, ...n }, r) => /* @__PURE__ */ O(Rh, { children: [
|
|
7791
7791
|
/* @__PURE__ */ p(vc, {}),
|
|
7792
|
-
/* @__PURE__ */
|
|
7792
|
+
/* @__PURE__ */ O(
|
|
7793
7793
|
gc,
|
|
7794
7794
|
{
|
|
7795
7795
|
ref: r,
|
|
@@ -7800,7 +7800,7 @@ const Vt = u.forwardRef(({ className: e, children: t, ...n }, r) => /* @__PURE__
|
|
|
7800
7800
|
...n,
|
|
7801
7801
|
children: [
|
|
7802
7802
|
t,
|
|
7803
|
-
/* @__PURE__ */
|
|
7803
|
+
/* @__PURE__ */ O(
|
|
7804
7804
|
Sh,
|
|
7805
7805
|
{
|
|
7806
7806
|
className: J(
|
|
@@ -7918,7 +7918,7 @@ const Nh = Ts(
|
|
|
7918
7918
|
}
|
|
7919
7919
|
));
|
|
7920
7920
|
Rn.displayName = wc.displayName;
|
|
7921
|
-
const
|
|
7921
|
+
const $r = u.forwardRef(
|
|
7922
7922
|
({ className: e, ...t }, n) => /* @__PURE__ */ p("div", { className: J("relative w-full overflow-auto", "s3-explr-ui-table-container"), children: /* @__PURE__ */ p(
|
|
7923
7923
|
"table",
|
|
7924
7924
|
{
|
|
@@ -7928,8 +7928,8 @@ const Ir = u.forwardRef(
|
|
|
7928
7928
|
}
|
|
7929
7929
|
) })
|
|
7930
7930
|
);
|
|
7931
|
-
|
|
7932
|
-
const
|
|
7931
|
+
$r.displayName = "Table";
|
|
7932
|
+
const Ir = u.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ p(
|
|
7933
7933
|
"thead",
|
|
7934
7934
|
{
|
|
7935
7935
|
ref: n,
|
|
@@ -7937,7 +7937,7 @@ const $r = u.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ p(
|
|
|
7937
7937
|
...t
|
|
7938
7938
|
}
|
|
7939
7939
|
));
|
|
7940
|
-
|
|
7940
|
+
Ir.displayName = "TableHeader";
|
|
7941
7941
|
const Lr = u.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ p(
|
|
7942
7942
|
"tbody",
|
|
7943
7943
|
{
|
|
@@ -8027,7 +8027,7 @@ function Wi(e, t) {
|
|
|
8027
8027
|
return e(t);
|
|
8028
8028
|
e != null && (e.current = t);
|
|
8029
8029
|
}
|
|
8030
|
-
function
|
|
8030
|
+
function $s(...e) {
|
|
8031
8031
|
return (t) => {
|
|
8032
8032
|
let n = !1;
|
|
8033
8033
|
const r = e.map((o) => {
|
|
@@ -8044,7 +8044,7 @@ function Is(...e) {
|
|
|
8044
8044
|
};
|
|
8045
8045
|
}
|
|
8046
8046
|
function Zo(...e) {
|
|
8047
|
-
return u.useCallback(
|
|
8047
|
+
return u.useCallback($s(...e), e);
|
|
8048
8048
|
}
|
|
8049
8049
|
var Qo = u.forwardRef((e, t) => {
|
|
8050
8050
|
const { children: n, ...r } = e, o = u.Children.toArray(n), s = o.find(_h);
|
|
@@ -8062,7 +8062,7 @@ var es = u.forwardRef((e, t) => {
|
|
|
8062
8062
|
return u.cloneElement(n, {
|
|
8063
8063
|
...Fh(r, n.props),
|
|
8064
8064
|
// @ts-ignore
|
|
8065
|
-
ref: t ?
|
|
8065
|
+
ref: t ? $s(t, o) : o
|
|
8066
8066
|
});
|
|
8067
8067
|
}
|
|
8068
8068
|
return u.Children.count(n) > 1 ? u.Children.only(null) : null;
|
|
@@ -8139,11 +8139,11 @@ bc.displayName = "Slot";
|
|
|
8139
8139
|
var ts = u.forwardRef((e, t) => {
|
|
8140
8140
|
const { children: n, ...r } = e;
|
|
8141
8141
|
if (u.isValidElement(n)) {
|
|
8142
|
-
const o =
|
|
8142
|
+
const o = Ih(n);
|
|
8143
8143
|
return u.cloneElement(n, {
|
|
8144
|
-
|
|
8144
|
+
...$h(r, n.props),
|
|
8145
8145
|
// @ts-ignore
|
|
8146
|
-
ref: t ?
|
|
8146
|
+
ref: t ? $s(t, o) : o
|
|
8147
8147
|
});
|
|
8148
8148
|
}
|
|
8149
8149
|
return u.Children.count(n) > 1 ? u.Children.only(null) : null;
|
|
@@ -8153,7 +8153,7 @@ var Mh = ({ children: e }) => /* @__PURE__ */ p(ce, { children: e });
|
|
|
8153
8153
|
function kh(e) {
|
|
8154
8154
|
return u.isValidElement(e) && e.type === Mh;
|
|
8155
8155
|
}
|
|
8156
|
-
function
|
|
8156
|
+
function $h(e, t) {
|
|
8157
8157
|
const n = { ...t };
|
|
8158
8158
|
for (const r in t) {
|
|
8159
8159
|
const o = e[r], s = t[r];
|
|
@@ -8163,7 +8163,7 @@ function Ih(e, t) {
|
|
|
8163
8163
|
}
|
|
8164
8164
|
return { ...e, ...n };
|
|
8165
8165
|
}
|
|
8166
|
-
function
|
|
8166
|
+
function Ih(e) {
|
|
8167
8167
|
var r, o;
|
|
8168
8168
|
let t = (r = Object.getOwnPropertyDescriptor(e.props, "ref")) == null ? void 0 : r.get, n = t && "isReactWarning" in t && t.isReactWarning;
|
|
8169
8169
|
return n ? e.ref : (t = (o = Object.getOwnPropertyDescriptor(e, "ref")) == null ? void 0 : o.get, n = t && "isReactWarning" in t && t.isReactWarning, n ? e.props.ref : e.props.ref || e.ref);
|
|
@@ -8259,9 +8259,9 @@ var Gh = u.forwardRef((e, t) => {
|
|
|
8259
8259
|
onFocus: rn(e.onFocus, (M) => {
|
|
8260
8260
|
const j = !b.current;
|
|
8261
8261
|
if (M.target === M.currentTarget && j && !w) {
|
|
8262
|
-
const
|
|
8263
|
-
if (M.currentTarget.dispatchEvent(
|
|
8264
|
-
const Z = N().filter((B) => B.focusable), _ = Z.find((B) => B.active),
|
|
8262
|
+
const z = new CustomEvent(bo, Bh);
|
|
8263
|
+
if (M.currentTarget.dispatchEvent(z), !z.defaultPrevented) {
|
|
8264
|
+
const Z = N().filter((B) => B.focusable), _ = Z.find((B) => B.active), $ = Z.find((B) => B.id === m), G = [_, $, ...Z].filter(
|
|
8265
8265
|
Boolean
|
|
8266
8266
|
).map((B) => B.ref.current);
|
|
8267
8267
|
Tc(G, d);
|
|
@@ -8532,9 +8532,9 @@ var lv = [
|
|
|
8532
8532
|
return typeof window < "u" && (window[Symbol.for("radix-ui")] = !0), /* @__PURE__ */ p(a, { ...i, ref: o });
|
|
8533
8533
|
});
|
|
8534
8534
|
return n.displayName = `Primitive.${t}`, { ...e, [t]: n };
|
|
8535
|
-
}, {}),
|
|
8535
|
+
}, {}), Is = "Tabs", [cv, _x] = Mt(Is, [
|
|
8536
8536
|
Rc
|
|
8537
|
-
]), Fc = Rc(), [uv, Ls] = cv(
|
|
8537
|
+
]), Fc = Rc(), [uv, Ls] = cv(Is), Oc = u.forwardRef(
|
|
8538
8538
|
(e, t) => {
|
|
8539
8539
|
const {
|
|
8540
8540
|
__scopeTabs: n,
|
|
@@ -8573,7 +8573,7 @@ var lv = [
|
|
|
8573
8573
|
);
|
|
8574
8574
|
}
|
|
8575
8575
|
);
|
|
8576
|
-
Oc.displayName =
|
|
8576
|
+
Oc.displayName = Is;
|
|
8577
8577
|
var Dc = "TabsList", Mc = u.forwardRef(
|
|
8578
8578
|
(e, t) => {
|
|
8579
8579
|
const { __scopeTabs: n, loop: r = !0, ...o } = e, s = Ls(Dc, n), i = Fc(n);
|
|
@@ -8599,7 +8599,7 @@ var Dc = "TabsList", Mc = u.forwardRef(
|
|
|
8599
8599
|
}
|
|
8600
8600
|
);
|
|
8601
8601
|
Mc.displayName = Dc;
|
|
8602
|
-
var kc = "TabsTrigger",
|
|
8602
|
+
var kc = "TabsTrigger", $c = u.forwardRef(
|
|
8603
8603
|
(e, t) => {
|
|
8604
8604
|
const { __scopeTabs: n, value: r, disabled: o = !1, ...s } = e, i = Ls(kc, n), a = Fc(n), c = Vc(i.baseId, r), l = Bc(i.baseId, r), d = r === i.value;
|
|
8605
8605
|
return /* @__PURE__ */ p(
|
|
@@ -8638,10 +8638,10 @@ var kc = "TabsTrigger", Ic = u.forwardRef(
|
|
|
8638
8638
|
);
|
|
8639
8639
|
}
|
|
8640
8640
|
);
|
|
8641
|
-
|
|
8642
|
-
var
|
|
8641
|
+
$c.displayName = kc;
|
|
8642
|
+
var Ic = "TabsContent", Lc = u.forwardRef(
|
|
8643
8643
|
(e, t) => {
|
|
8644
|
-
const { __scopeTabs: n, value: r, forceMount: o, children: s, ...i } = e, a = Ls(
|
|
8644
|
+
const { __scopeTabs: n, value: r, forceMount: o, children: s, ...i } = e, a = Ls(Ic, n), c = Vc(a.baseId, r), l = Bc(a.baseId, r), d = r === a.value, g = u.useRef(d);
|
|
8645
8645
|
return u.useEffect(() => {
|
|
8646
8646
|
const h = requestAnimationFrame(() => g.current = !1);
|
|
8647
8647
|
return () => cancelAnimationFrame(h);
|
|
@@ -8666,14 +8666,14 @@ var $c = "TabsContent", Lc = u.forwardRef(
|
|
|
8666
8666
|
) });
|
|
8667
8667
|
}
|
|
8668
8668
|
);
|
|
8669
|
-
Lc.displayName =
|
|
8669
|
+
Lc.displayName = Ic;
|
|
8670
8670
|
function Vc(e, t) {
|
|
8671
8671
|
return `${e}-trigger-${t}`;
|
|
8672
8672
|
}
|
|
8673
8673
|
function Bc(e, t) {
|
|
8674
8674
|
return `${e}-content-${t}`;
|
|
8675
8675
|
}
|
|
8676
|
-
var dv = Oc, zc = Mc, Hc =
|
|
8676
|
+
var dv = Oc, zc = Mc, Hc = $c, jc = Lc;
|
|
8677
8677
|
const fv = dv, Uc = u.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ p(
|
|
8678
8678
|
zc,
|
|
8679
8679
|
{
|
|
@@ -8945,7 +8945,7 @@ var qc = "ToastViewport", Rv = ["F8"], ls = "toast.viewportPause", cs = "toast.v
|
|
|
8945
8945
|
const m = u.useCallback(
|
|
8946
8946
|
({ tabbingDirection: y }) => {
|
|
8947
8947
|
const x = a().map((E) => {
|
|
8948
|
-
const N = E.ref.current, b = [N,
|
|
8948
|
+
const N = E.ref.current, b = [N, ...Iv(N)];
|
|
8949
8949
|
return y === "forwards" ? b : b.reverse();
|
|
8950
8950
|
});
|
|
8951
8951
|
return (y === "forwards" ? x.reverse() : x).flat();
|
|
@@ -8964,13 +8964,13 @@ var qc = "ToastViewport", Rv = ["F8"], ls = "toast.viewportPause", cs = "toast.v
|
|
|
8964
8964
|
(b = l.current) == null || b.focus();
|
|
8965
8965
|
return;
|
|
8966
8966
|
}
|
|
8967
|
-
const _ = m({ tabbingDirection: j ? "backwards" : "forwards" }),
|
|
8968
|
-
xo(_.slice(
|
|
8967
|
+
const _ = m({ tabbingDirection: j ? "backwards" : "forwards" }), $ = _.findIndex((F) => F === M);
|
|
8968
|
+
xo(_.slice($ + 1)) ? x.preventDefault() : j ? (S = l.current) == null || S.focus() : (R = d.current) == null || R.focus();
|
|
8969
8969
|
}
|
|
8970
8970
|
};
|
|
8971
8971
|
return y.addEventListener("keydown", w), () => y.removeEventListener("keydown", w);
|
|
8972
8972
|
}
|
|
8973
|
-
}, [a, m]), /* @__PURE__ */
|
|
8973
|
+
}, [a, m]), /* @__PURE__ */ O(
|
|
8974
8974
|
pm,
|
|
8975
8975
|
{
|
|
8976
8976
|
ref: c,
|
|
@@ -9085,41 +9085,41 @@ var [Av, _v] = Gc(Hr, {
|
|
|
9085
9085
|
onSwipeCancel: h,
|
|
9086
9086
|
onSwipeEnd: f,
|
|
9087
9087
|
...v
|
|
9088
|
-
} = e, m = zr(Hr, n), [y, w] = u.useState(null), x = ze(t, (
|
|
9088
|
+
} = e, m = zr(Hr, n), [y, w] = u.useState(null), x = ze(t, (F) => w(F)), E = u.useRef(null), N = u.useRef(null), b = o || m.duration, S = u.useRef(0), R = u.useRef(b), M = u.useRef(0), { onToastAdd: j, onToastRemove: z } = m, Z = Ne(() => {
|
|
9089
9089
|
var G;
|
|
9090
9090
|
(y == null ? void 0 : y.contains(document.activeElement)) && ((G = m.viewport) == null || G.focus()), i();
|
|
9091
9091
|
}), _ = u.useCallback(
|
|
9092
|
-
(
|
|
9093
|
-
!
|
|
9092
|
+
(F) => {
|
|
9093
|
+
!F || F === 1 / 0 || (window.clearTimeout(M.current), S.current = (/* @__PURE__ */ new Date()).getTime(), M.current = window.setTimeout(Z, F));
|
|
9094
9094
|
},
|
|
9095
9095
|
[Z]
|
|
9096
9096
|
);
|
|
9097
9097
|
u.useEffect(() => {
|
|
9098
|
-
const
|
|
9099
|
-
if (
|
|
9098
|
+
const F = m.viewport;
|
|
9099
|
+
if (F) {
|
|
9100
9100
|
const G = () => {
|
|
9101
9101
|
_(R.current), l == null || l();
|
|
9102
9102
|
}, B = () => {
|
|
9103
9103
|
const q = (/* @__PURE__ */ new Date()).getTime() - S.current;
|
|
9104
9104
|
R.current = R.current - q, window.clearTimeout(M.current), c == null || c();
|
|
9105
9105
|
};
|
|
9106
|
-
return
|
|
9107
|
-
|
|
9106
|
+
return F.addEventListener(ls, B), F.addEventListener(cs, G), () => {
|
|
9107
|
+
F.removeEventListener(ls, B), F.removeEventListener(cs, G);
|
|
9108
9108
|
};
|
|
9109
9109
|
}
|
|
9110
9110
|
}, [m.viewport, b, c, l, _]), u.useEffect(() => {
|
|
9111
9111
|
s && !m.isClosePausedRef.current && _(b);
|
|
9112
|
-
}, [s, b, m.isClosePausedRef, _]), u.useEffect(() => (j(), () =>
|
|
9113
|
-
const
|
|
9114
|
-
return m.viewport ? /* @__PURE__ */
|
|
9115
|
-
|
|
9112
|
+
}, [s, b, m.isClosePausedRef, _]), u.useEffect(() => (j(), () => z()), [j, z]);
|
|
9113
|
+
const $ = u.useMemo(() => y ? ru(y) : null, [y]);
|
|
9114
|
+
return m.viewport ? /* @__PURE__ */ O(ce, { children: [
|
|
9115
|
+
$ && /* @__PURE__ */ p(
|
|
9116
9116
|
Ov,
|
|
9117
9117
|
{
|
|
9118
9118
|
__scopeToast: n,
|
|
9119
9119
|
role: "status",
|
|
9120
9120
|
"aria-live": r === "foreground" ? "assertive" : "polite",
|
|
9121
9121
|
"aria-atomic": !0,
|
|
9122
|
-
children:
|
|
9122
|
+
children: $
|
|
9123
9123
|
}
|
|
9124
9124
|
),
|
|
9125
9125
|
/* @__PURE__ */ p(Av, { scope: n, onClose: Z, children: Nr.createPortal(
|
|
@@ -9142,25 +9142,25 @@ var [Av, _v] = Gc(Hr, {
|
|
|
9142
9142
|
...v,
|
|
9143
9143
|
ref: x,
|
|
9144
9144
|
style: { userSelect: "none", touchAction: "none", ...e.style },
|
|
9145
|
-
onKeyDown: we(e.onKeyDown, (
|
|
9146
|
-
|
|
9145
|
+
onKeyDown: we(e.onKeyDown, (F) => {
|
|
9146
|
+
F.key === "Escape" && (a == null || a(F.nativeEvent), F.nativeEvent.defaultPrevented || (m.isFocusedToastEscapeKeyDownRef.current = !0, Z()));
|
|
9147
9147
|
}),
|
|
9148
|
-
onPointerDown: we(e.onPointerDown, (
|
|
9149
|
-
|
|
9148
|
+
onPointerDown: we(e.onPointerDown, (F) => {
|
|
9149
|
+
F.button === 0 && (E.current = { x: F.clientX, y: F.clientY });
|
|
9150
9150
|
}),
|
|
9151
|
-
onPointerMove: we(e.onPointerMove, (
|
|
9151
|
+
onPointerMove: we(e.onPointerMove, (F) => {
|
|
9152
9152
|
if (!E.current) return;
|
|
9153
|
-
const G =
|
|
9153
|
+
const G = F.clientX - E.current.x, B = F.clientY - E.current.y, q = !!N.current, K = ["left", "right"].includes(m.swipeDirection), te = ["left", "up"].includes(m.swipeDirection) ? Math.min : Math.max, ue = K ? te(0, G) : 0, oe = K ? 0 : te(0, B), Pe = F.pointerType === "touch" ? 10 : 2, He = { x: ue, y: oe }, Qe = { originalEvent: F, delta: He };
|
|
9154
9154
|
q ? (N.current = He, Xn(Nv, g, Qe, {
|
|
9155
9155
|
discrete: !1
|
|
9156
9156
|
})) : Xi(He, m.swipeDirection, Pe) ? (N.current = He, Xn(Ev, d, Qe, {
|
|
9157
9157
|
discrete: !1
|
|
9158
|
-
}),
|
|
9158
|
+
}), F.target.setPointerCapture(F.pointerId)) : (Math.abs(G) > Pe || Math.abs(B) > Pe) && (E.current = null);
|
|
9159
9159
|
}),
|
|
9160
|
-
onPointerUp: we(e.onPointerUp, (
|
|
9161
|
-
const G = N.current, B =
|
|
9162
|
-
if (B.hasPointerCapture(
|
|
9163
|
-
const q =
|
|
9160
|
+
onPointerUp: we(e.onPointerUp, (F) => {
|
|
9161
|
+
const G = N.current, B = F.target;
|
|
9162
|
+
if (B.hasPointerCapture(F.pointerId) && B.releasePointerCapture(F.pointerId), N.current = null, E.current = null, G) {
|
|
9163
|
+
const q = F.currentTarget, K = { originalEvent: F, delta: G };
|
|
9164
9164
|
Xi(G, m.swipeDirection, m.swipeThreshold) ? Xn(Tv, f, K, {
|
|
9165
9165
|
discrete: !0
|
|
9166
9166
|
}) : Xn(
|
|
@@ -9188,7 +9188,7 @@ var [Av, _v] = Gc(Hr, {
|
|
|
9188
9188
|
return kv(() => i(!0)), u.useEffect(() => {
|
|
9189
9189
|
const l = window.setTimeout(() => c(!0), 1e3);
|
|
9190
9190
|
return () => window.clearTimeout(l);
|
|
9191
|
-
}, []), a ? null : /* @__PURE__ */ p(Fs, { asChild: !0, children: /* @__PURE__ */ p(Vs, { ...r, children: s && /* @__PURE__ */
|
|
9191
|
+
}, []), a ? null : /* @__PURE__ */ p(Fs, { asChild: !0, children: /* @__PURE__ */ p(Vs, { ...r, children: s && /* @__PURE__ */ O(ce, { children: [
|
|
9192
9192
|
o.label,
|
|
9193
9193
|
" ",
|
|
9194
9194
|
n
|
|
@@ -9246,7 +9246,7 @@ var nu = u.forwardRef((e, t) => {
|
|
|
9246
9246
|
function ru(e) {
|
|
9247
9247
|
const t = [];
|
|
9248
9248
|
return Array.from(e.childNodes).forEach((r) => {
|
|
9249
|
-
if (r.nodeType === r.TEXT_NODE && r.textContent && t.push(r.textContent),
|
|
9249
|
+
if (r.nodeType === r.TEXT_NODE && r.textContent && t.push(r.textContent), $v(r)) {
|
|
9250
9250
|
const o = r.ariaHidden || r.hidden || r.style.display === "none", s = r.dataset.radixToastAnnounceExclude === "";
|
|
9251
9251
|
if (!o)
|
|
9252
9252
|
if (s) {
|
|
@@ -9275,10 +9275,10 @@ function kv(e = () => {
|
|
|
9275
9275
|
};
|
|
9276
9276
|
}, [t]);
|
|
9277
9277
|
}
|
|
9278
|
-
function
|
|
9278
|
+
function $v(e) {
|
|
9279
9279
|
return e.nodeType === e.ELEMENT_NODE;
|
|
9280
9280
|
}
|
|
9281
|
-
function
|
|
9281
|
+
function Iv(e) {
|
|
9282
9282
|
const t = [], n = document.createTreeWalker(e, NodeFilter.SHOW_ELEMENT, {
|
|
9283
9283
|
acceptNode: (r) => {
|
|
9284
9284
|
const o = r.tagName === "INPUT" && r.type === "hidden";
|
|
@@ -9462,10 +9462,10 @@ function js() {
|
|
|
9462
9462
|
}
|
|
9463
9463
|
function mu() {
|
|
9464
9464
|
const { toasts: e } = js();
|
|
9465
|
-
return /* @__PURE__ */
|
|
9465
|
+
return /* @__PURE__ */ O(Vv, { children: [
|
|
9466
9466
|
e.map(function({ id: t, title: n, description: r, action: o, ...s }) {
|
|
9467
|
-
return /* @__PURE__ */
|
|
9468
|
-
/* @__PURE__ */
|
|
9467
|
+
return /* @__PURE__ */ O(du, { ...s, className: `s3-explr-ui-toast ${s.className || ""}`, children: [
|
|
9468
|
+
/* @__PURE__ */ O("div", { className: "s3-explr-ui-toast-content grid gap-1", children: [
|
|
9469
9469
|
n && /* @__PURE__ */ p(pu, { className: "s3-explr-ui-toast-title", children: n }),
|
|
9470
9470
|
r && /* @__PURE__ */ p(gu, { className: "s3-explr-ui-toast-description", children: r })
|
|
9471
9471
|
] }),
|
|
@@ -9572,10 +9572,10 @@ function Fy(e) {
|
|
|
9572
9572
|
return e != null && typeof e == "object";
|
|
9573
9573
|
}
|
|
9574
9574
|
var Oy = Fy, Dy = _y, My = Oy, ky = "[object Symbol]";
|
|
9575
|
-
function
|
|
9575
|
+
function $y(e) {
|
|
9576
9576
|
return typeof e == "symbol" || My(e) && Dy(e) == ky;
|
|
9577
9577
|
}
|
|
9578
|
-
var
|
|
9578
|
+
var Iy = $y, Ly = gy, ea = wu, Vy = Iy, ta = NaN, By = /^[-+]0x[0-9a-f]+$/i, zy = /^0b[01]+$/i, Hy = /^0o[0-7]+$/i, jy = parseInt;
|
|
9579
9579
|
function Uy(e) {
|
|
9580
9580
|
if (typeof e == "number")
|
|
9581
9581
|
return e;
|
|
@@ -9687,7 +9687,7 @@ const nw = ys(({ onChange: e }, t) => {
|
|
|
9687
9687
|
{
|
|
9688
9688
|
wait: 300
|
|
9689
9689
|
}
|
|
9690
|
-
), /* @__PURE__ */
|
|
9690
|
+
), /* @__PURE__ */ O(ce, { children: [
|
|
9691
9691
|
/* @__PURE__ */ p(
|
|
9692
9692
|
Tt,
|
|
9693
9693
|
{
|
|
@@ -9784,31 +9784,31 @@ const nw = ys(({ onChange: e }, t) => {
|
|
|
9784
9784
|
asSelector: r = !1,
|
|
9785
9785
|
onSelected: o = (s) => console.log("selected:", s)
|
|
9786
9786
|
}) => {
|
|
9787
|
-
const [s, i] = Q(""), [a, c] = Q(/* @__PURE__ */ new Set()), [l, d] = Q(n), [g, h] = Q(!1), [f, v] = Q(""), [m, y] = Q(!1), [w, x] = Q(null), [E, N] = Q(!1), [b, S] = Q(!1), [R, M] = Q(!1), [j,
|
|
9787
|
+
const [s, i] = Q(""), [a, c] = Q(/* @__PURE__ */ new Set()), [l, d] = Q(n), [g, h] = Q(!1), [f, v] = Q(""), [m, y] = Q(!1), [w, x] = Q(null), [E, N] = Q(!1), [b, S] = Q(!1), [R, M] = Q(!1), [j, z] = Q(null), Z = Er(null), { toast: _ } = js(), [$, F] = Q(null), [G, B] = Q(""), [q, K] = Q(!1), [te, ue] = Q(/* @__PURE__ */ new Set()), [oe, Pe] = Q(""), [He, Qe] = Q(!1), [kt, yt] = Q(!1), [wt, je] = Q("rename"), {
|
|
9788
9788
|
data: Ce = {},
|
|
9789
9789
|
isLoading: bt,
|
|
9790
|
-
error:
|
|
9790
|
+
error: $t,
|
|
9791
9791
|
refetch: Ve
|
|
9792
9792
|
} = sw(t, n), Ue = Zt(() => Ce[l] || [], [Ce, l]), De = Zt(
|
|
9793
9793
|
() => s ? rw(Ce, s, l) : Ue,
|
|
9794
9794
|
[Ue, s, l, Ce]
|
|
9795
9795
|
), xt = Zt(() => {
|
|
9796
9796
|
const D = {};
|
|
9797
|
-
return De.forEach((
|
|
9798
|
-
a.has(
|
|
9797
|
+
return De.forEach((I, U) => {
|
|
9798
|
+
a.has(I.key) && (D[U] = !0);
|
|
9799
9799
|
}), D;
|
|
9800
9800
|
}, [a, De]), Vn = (D) => {
|
|
9801
|
-
const
|
|
9802
|
-
if (
|
|
9801
|
+
const I = lr(Ce, D);
|
|
9802
|
+
if (I.length === 0)
|
|
9803
9803
|
return a.has(D) ? "all" : "none";
|
|
9804
|
-
const U =
|
|
9805
|
-
return U === 0 ? "none" : U ===
|
|
9806
|
-
},
|
|
9804
|
+
const U = I.filter((se) => a.has(se)).length;
|
|
9805
|
+
return U === 0 ? "none" : U === I.length ? "all" : "partial";
|
|
9806
|
+
}, It = (D) => {
|
|
9807
9807
|
d(D);
|
|
9808
|
-
}, C = async (D,
|
|
9808
|
+
}, C = async (D, I) => {
|
|
9809
9809
|
y(!0);
|
|
9810
9810
|
try {
|
|
9811
|
-
const U = `${
|
|
9811
|
+
const U = `${I}${D}/`;
|
|
9812
9812
|
if ((await ie.post(`${t}/api/create-folder`, {
|
|
9813
9813
|
prefix: U
|
|
9814
9814
|
})).status !== 200) {
|
|
@@ -9832,11 +9832,11 @@ const nw = ys(({ onChange: e }, t) => {
|
|
|
9832
9832
|
} finally {
|
|
9833
9833
|
y(!1);
|
|
9834
9834
|
}
|
|
9835
|
-
}, P = async (D,
|
|
9836
|
-
|
|
9835
|
+
}, P = async (D, I, U) => {
|
|
9836
|
+
z(U);
|
|
9837
9837
|
try {
|
|
9838
9838
|
const se = new FormData();
|
|
9839
|
-
se.append("prefix",
|
|
9839
|
+
se.append("prefix", I), Array.from(D).forEach((ge) => {
|
|
9840
9840
|
ge instanceof File && se.append("files", ge);
|
|
9841
9841
|
}), (await ie.post(`${t}/api/upload`, se, {
|
|
9842
9842
|
headers: {
|
|
@@ -9853,7 +9853,7 @@ const nw = ys(({ onChange: e }, t) => {
|
|
|
9853
9853
|
variant: "destructive"
|
|
9854
9854
|
});
|
|
9855
9855
|
} finally {
|
|
9856
|
-
|
|
9856
|
+
z(null);
|
|
9857
9857
|
}
|
|
9858
9858
|
}, A = async (D) => {
|
|
9859
9859
|
N(!0);
|
|
@@ -9866,8 +9866,8 @@ const nw = ys(({ onChange: e }, t) => {
|
|
|
9866
9866
|
title: "File Deleted",
|
|
9867
9867
|
description: `Successfully deleted "${D.name}"`
|
|
9868
9868
|
}), x(null);
|
|
9869
|
-
} catch (
|
|
9870
|
-
console.error("Error deleting file:",
|
|
9869
|
+
} catch (I) {
|
|
9870
|
+
console.error("Error deleting file:", I), _({
|
|
9871
9871
|
title: "Error",
|
|
9872
9872
|
description: "Failed to delete file",
|
|
9873
9873
|
variant: "destructive"
|
|
@@ -9876,27 +9876,27 @@ const nw = ys(({ onChange: e }, t) => {
|
|
|
9876
9876
|
N(!1);
|
|
9877
9877
|
}
|
|
9878
9878
|
}, V = (D) => {
|
|
9879
|
-
const
|
|
9879
|
+
const I = new Set(a), U = typeof D == "function" ? D(xt) : D;
|
|
9880
9880
|
new Set(Object.keys(xt).map(Number)).forEach((ae) => {
|
|
9881
9881
|
const ge = De[ae];
|
|
9882
|
-
ge && (U[ae] || (
|
|
9883
|
-
(Te) =>
|
|
9882
|
+
ge && (U[ae] || (I.delete(ge.key), ge.isFolder && lr(Ce, ge.key).forEach(
|
|
9883
|
+
(Te) => I.delete(Te)
|
|
9884
9884
|
)));
|
|
9885
9885
|
}), Object.entries(U).forEach(([ae, ge]) => {
|
|
9886
9886
|
const Te = parseInt(ae), ut = De[Te];
|
|
9887
|
-
ut && ge && (
|
|
9888
|
-
}), c(
|
|
9887
|
+
ut && ge && (I.add(ut.key), ut.isFolder && lr(Ce, ut.key).forEach((Jr) => I.add(Jr)));
|
|
9888
|
+
}), c(I);
|
|
9889
9889
|
}, L = async () => {
|
|
9890
9890
|
S(!0);
|
|
9891
9891
|
try {
|
|
9892
|
-
const D = Array.from(a).map((
|
|
9892
|
+
const D = Array.from(a).map((I) => {
|
|
9893
9893
|
var U;
|
|
9894
9894
|
for (const se in Ce) {
|
|
9895
|
-
const ae = (U = Ce[se]) == null ? void 0 : U.find((ge) => ge.key ===
|
|
9895
|
+
const ae = (U = Ce[se]) == null ? void 0 : U.find((ge) => ge.key === I);
|
|
9896
9896
|
if (ae) return ae;
|
|
9897
9897
|
}
|
|
9898
9898
|
return null;
|
|
9899
|
-
}).filter((
|
|
9899
|
+
}).filter((I) => I !== null);
|
|
9900
9900
|
await ie.delete(`${t}/api/files`, {
|
|
9901
9901
|
data: {
|
|
9902
9902
|
paths: Array.from(a)
|
|
@@ -9914,20 +9914,20 @@ const nw = ys(({ onChange: e }, t) => {
|
|
|
9914
9914
|
} finally {
|
|
9915
9915
|
S(!1);
|
|
9916
9916
|
}
|
|
9917
|
-
}, k = async (D,
|
|
9917
|
+
}, k = async (D, I) => {
|
|
9918
9918
|
K(!0);
|
|
9919
9919
|
try {
|
|
9920
9920
|
const U = D.key;
|
|
9921
9921
|
let se;
|
|
9922
9922
|
D.isFolder ? se = U.split("/").slice(0, -2).join("/") + "/" : se = U.substring(0, U.lastIndexOf("/") + 1);
|
|
9923
|
-
const ae = se +
|
|
9923
|
+
const ae = se + I + (D.isFolder ? "/" : "");
|
|
9924
9924
|
await ie.post(`${t}/api/rename`, {
|
|
9925
9925
|
oldPath: U,
|
|
9926
9926
|
newPath: ae
|
|
9927
9927
|
}), nt.current = !0, await Ve(), _({
|
|
9928
9928
|
title: "Item Renamed",
|
|
9929
|
-
description: `Successfully renamed "${D.name}" to "${
|
|
9930
|
-
}),
|
|
9929
|
+
description: `Successfully renamed "${D.name}" to "${I}"`
|
|
9930
|
+
}), F(null), B("");
|
|
9931
9931
|
} catch (U) {
|
|
9932
9932
|
console.error("Error renaming item:", U), _({
|
|
9933
9933
|
title: "Error",
|
|
@@ -9938,35 +9938,35 @@ const nw = ys(({ onChange: e }, t) => {
|
|
|
9938
9938
|
K(!1);
|
|
9939
9939
|
}
|
|
9940
9940
|
}, W = async (D) => {
|
|
9941
|
-
ue((
|
|
9941
|
+
ue((I) => /* @__PURE__ */ new Set([...I, ...D]));
|
|
9942
9942
|
try {
|
|
9943
|
-
const
|
|
9943
|
+
const I = await ie.post(
|
|
9944
9944
|
`${t}/api/download`,
|
|
9945
9945
|
{ paths: D },
|
|
9946
9946
|
{ responseType: "blob" }
|
|
9947
|
-
), U = window.URL.createObjectURL(
|
|
9947
|
+
), U = window.URL.createObjectURL(I.data), se = document.createElement("a");
|
|
9948
9948
|
se.href = U;
|
|
9949
|
-
const ae =
|
|
9949
|
+
const ae = I.headers["Content-Disposition"] || I.headers["content-disposition"], ge = ae == null ? void 0 : ae.match(/filename="(.+)"/), Te = ge ? decodeURIComponent(ge[1]) : "download.zip";
|
|
9950
9950
|
se.setAttribute("download", Te), document.body.appendChild(se), se.click(), document.body.removeChild(se), window.URL.revokeObjectURL(U), _({
|
|
9951
9951
|
title: "Download Started",
|
|
9952
9952
|
description: `Your download has started for ${D.length} item${D.length > 1 ? "s" : ""}`
|
|
9953
9953
|
});
|
|
9954
|
-
} catch (
|
|
9955
|
-
console.error("Error downloading files:",
|
|
9954
|
+
} catch (I) {
|
|
9955
|
+
console.error("Error downloading files:", I), _({
|
|
9956
9956
|
title: "Error",
|
|
9957
9957
|
description: "Failed to download files",
|
|
9958
9958
|
variant: "destructive"
|
|
9959
9959
|
});
|
|
9960
9960
|
} finally {
|
|
9961
|
-
ue((
|
|
9962
|
-
const U = new Set(
|
|
9961
|
+
ue((I) => {
|
|
9962
|
+
const U = new Set(I);
|
|
9963
9963
|
return D.forEach((se) => U.delete(se)), U;
|
|
9964
9964
|
});
|
|
9965
9965
|
}
|
|
9966
9966
|
}, ne = l ? l.replace(n, "").split("/").filter(Boolean) : [], ye = () => Array.from(a).map((D) => {
|
|
9967
|
-
var
|
|
9967
|
+
var I;
|
|
9968
9968
|
for (const U in Ce) {
|
|
9969
|
-
const se = (
|
|
9969
|
+
const se = (I = Ce[U]) == null ? void 0 : I.find((ae) => ae.key === D);
|
|
9970
9970
|
if (se) return se;
|
|
9971
9971
|
}
|
|
9972
9972
|
return null;
|
|
@@ -9975,7 +9975,7 @@ const nw = ys(({ onChange: e }, t) => {
|
|
|
9975
9975
|
{
|
|
9976
9976
|
id: "select",
|
|
9977
9977
|
header: () => {
|
|
9978
|
-
const
|
|
9978
|
+
const I = ow(Ce, l), U = I.length > 0 && I.every((ae) => a.has(ae)), se = I.some((ae) => a.has(ae));
|
|
9979
9979
|
return /* @__PURE__ */ p(
|
|
9980
9980
|
qo,
|
|
9981
9981
|
{
|
|
@@ -9994,15 +9994,15 @@ const nw = ys(({ onChange: e }, t) => {
|
|
|
9994
9994
|
}
|
|
9995
9995
|
);
|
|
9996
9996
|
},
|
|
9997
|
-
cell: ({ row:
|
|
9998
|
-
const U =
|
|
9997
|
+
cell: ({ row: I }) => {
|
|
9998
|
+
const U = I.original, ae = U.isFolder ? Vn(U.key) : a.has(U.key) ? "all" : "none";
|
|
9999
9999
|
return /* @__PURE__ */ p("div", { className: "flex items-center", children: /* @__PURE__ */ p(
|
|
10000
10000
|
qo,
|
|
10001
10001
|
{
|
|
10002
10002
|
checked: ae === "partial" ? "indeterminate" : ae === "all",
|
|
10003
10003
|
onCheckedChange: (ge) => {
|
|
10004
10004
|
const Te = { ...xt };
|
|
10005
|
-
ge ? Te[
|
|
10005
|
+
ge ? Te[I.index] = !0 : delete Te[I.index], V(Te);
|
|
10006
10006
|
},
|
|
10007
10007
|
"aria-label": "Select row"
|
|
10008
10008
|
}
|
|
@@ -10014,15 +10014,15 @@ const nw = ys(({ onChange: e }, t) => {
|
|
|
10014
10014
|
id: "fileName",
|
|
10015
10015
|
header: "File Name",
|
|
10016
10016
|
accessorKey: "name",
|
|
10017
|
-
cell: ({ row:
|
|
10018
|
-
const U =
|
|
10019
|
-
return /* @__PURE__ */
|
|
10020
|
-
/* @__PURE__ */
|
|
10017
|
+
cell: ({ row: I }) => {
|
|
10018
|
+
const U = I.original, se = U.key.substring(0, U.key.lastIndexOf("/")) || "/", ae = s.trim() !== "" && se !== l, ge = se.split("/").filter(Boolean);
|
|
10019
|
+
return /* @__PURE__ */ O("div", { className: "flex flex-col", children: [
|
|
10020
|
+
/* @__PURE__ */ O(
|
|
10021
10021
|
"div",
|
|
10022
10022
|
{
|
|
10023
10023
|
className: `flex items-center gap-2 ${U.isFolder ? "cursor-pointer hover:text-blue-600" : ""}`,
|
|
10024
10024
|
onClick: () => {
|
|
10025
|
-
U.isFolder &&
|
|
10025
|
+
U.isFolder && It(U.key);
|
|
10026
10026
|
},
|
|
10027
10027
|
children: [
|
|
10028
10028
|
U.isFolder ? /* @__PURE__ */ p(Zr, { className: "h-5 w-5 text-blue-500" }) : null,
|
|
@@ -10030,26 +10030,26 @@ const nw = ys(({ onChange: e }, t) => {
|
|
|
10030
10030
|
]
|
|
10031
10031
|
}
|
|
10032
10032
|
),
|
|
10033
|
-
ae && /* @__PURE__ */
|
|
10033
|
+
ae && /* @__PURE__ */ O("div", { className: "text-sm text-gray-500 flex items-center", children: [
|
|
10034
10034
|
/* @__PURE__ */ p(Zr, { className: "h-4 w-4 text-gray-500 my-auto" }),
|
|
10035
|
-
/* @__PURE__ */
|
|
10035
|
+
/* @__PURE__ */ O("span", { className: "flex items-center ml-1", children: [
|
|
10036
10036
|
/* @__PURE__ */ p(
|
|
10037
10037
|
"span",
|
|
10038
10038
|
{
|
|
10039
10039
|
className: "cursor-pointer hover:text-blue-600",
|
|
10040
10040
|
onClick: () => {
|
|
10041
|
-
|
|
10041
|
+
It("");
|
|
10042
10042
|
},
|
|
10043
10043
|
children: "/"
|
|
10044
10044
|
}
|
|
10045
10045
|
),
|
|
10046
|
-
ge.map((Te, ut) => /* @__PURE__ */
|
|
10046
|
+
ge.map((Te, ut) => /* @__PURE__ */ O("span", { className: "flex items-center", children: [
|
|
10047
10047
|
/* @__PURE__ */ p(
|
|
10048
10048
|
"span",
|
|
10049
10049
|
{
|
|
10050
10050
|
className: "cursor-pointer hover:text-blue-600",
|
|
10051
10051
|
onClick: () => {
|
|
10052
|
-
|
|
10052
|
+
It(ge.slice(0, ut + 1).join("/") + "/");
|
|
10053
10053
|
},
|
|
10054
10054
|
children: Te
|
|
10055
10055
|
}
|
|
@@ -10067,8 +10067,8 @@ const nw = ys(({ onChange: e }, t) => {
|
|
|
10067
10067
|
id: "size",
|
|
10068
10068
|
header: "Size",
|
|
10069
10069
|
accessorKey: "size",
|
|
10070
|
-
cell: ({ getValue:
|
|
10071
|
-
const se =
|
|
10070
|
+
cell: ({ getValue: I, row: U }) => {
|
|
10071
|
+
const se = I();
|
|
10072
10072
|
return /* @__PURE__ */ p("span", { children: U.original.isFolder ? "-" : Lg(se) });
|
|
10073
10073
|
}
|
|
10074
10074
|
},
|
|
@@ -10076,8 +10076,8 @@ const nw = ys(({ onChange: e }, t) => {
|
|
|
10076
10076
|
id: "lastModified",
|
|
10077
10077
|
header: "Last Modified",
|
|
10078
10078
|
accessorKey: "lastModified",
|
|
10079
|
-
cell: ({ row:
|
|
10080
|
-
const U =
|
|
10079
|
+
cell: ({ row: I }) => {
|
|
10080
|
+
const U = I.original.lastModified;
|
|
10081
10081
|
return /* @__PURE__ */ p("span", { children: U.toLocaleString() });
|
|
10082
10082
|
}
|
|
10083
10083
|
},
|
|
@@ -10085,16 +10085,16 @@ const nw = ys(({ onChange: e }, t) => {
|
|
|
10085
10085
|
id: "actions",
|
|
10086
10086
|
header: "Actions",
|
|
10087
10087
|
accessorKey: "key",
|
|
10088
|
-
cell: ({ row:
|
|
10088
|
+
cell: ({ row: I }) => /* @__PURE__ */ O("div", { className: "flex items-center gap-2", children: [
|
|
10089
10089
|
/* @__PURE__ */ p(
|
|
10090
10090
|
pe,
|
|
10091
10091
|
{
|
|
10092
10092
|
variant: "ghost",
|
|
10093
10093
|
size: "icon",
|
|
10094
|
-
onClick: () => W([
|
|
10094
|
+
onClick: () => W([I.original.key]),
|
|
10095
10095
|
className: "h-8 w-8 p-0",
|
|
10096
|
-
disabled: te.has(
|
|
10097
|
-
children: te.has(
|
|
10096
|
+
disabled: te.has(I.original.key),
|
|
10097
|
+
children: te.has(I.original.key) ? /* @__PURE__ */ p(Ae, { className: "h-4 w-4 animate-spin" }) : /* @__PURE__ */ p(di, { className: "h-4 w-4" })
|
|
10098
10098
|
}
|
|
10099
10099
|
),
|
|
10100
10100
|
/* @__PURE__ */ p(
|
|
@@ -10103,7 +10103,7 @@ const nw = ys(({ onChange: e }, t) => {
|
|
|
10103
10103
|
variant: "ghost",
|
|
10104
10104
|
size: "icon",
|
|
10105
10105
|
onClick: () => {
|
|
10106
|
-
|
|
10106
|
+
F(I.original), B(I.original.name);
|
|
10107
10107
|
},
|
|
10108
10108
|
className: "h-8 w-8 p-0",
|
|
10109
10109
|
children: /* @__PURE__ */ p(Ed, { className: "h-4 w-4" })
|
|
@@ -10114,7 +10114,7 @@ const nw = ys(({ onChange: e }, t) => {
|
|
|
10114
10114
|
{
|
|
10115
10115
|
variant: "ghost",
|
|
10116
10116
|
size: "icon",
|
|
10117
|
-
onClick: () => x(
|
|
10117
|
+
onClick: () => x(I.original),
|
|
10118
10118
|
className: "h-8 w-8 p-0",
|
|
10119
10119
|
children: /* @__PURE__ */ p(fi, { className: "h-4 w-4" })
|
|
10120
10120
|
}
|
|
@@ -10135,12 +10135,12 @@ const nw = ys(({ onChange: e }, t) => {
|
|
|
10135
10135
|
if (Jn(D)) {
|
|
10136
10136
|
Qe(!0);
|
|
10137
10137
|
try {
|
|
10138
|
-
const
|
|
10138
|
+
const I = await ie.get(`${t}/api/read-text`, {
|
|
10139
10139
|
params: { path: D.key }
|
|
10140
10140
|
});
|
|
10141
|
-
Pe(
|
|
10142
|
-
} catch (
|
|
10143
|
-
console.error("Error loading file content:",
|
|
10141
|
+
Pe(I.data.content);
|
|
10142
|
+
} catch (I) {
|
|
10143
|
+
console.error("Error loading file content:", I), _({
|
|
10144
10144
|
title: "Error",
|
|
10145
10145
|
description: "Failed to load file content",
|
|
10146
10146
|
variant: "destructive"
|
|
@@ -10149,16 +10149,16 @@ const nw = ys(({ onChange: e }, t) => {
|
|
|
10149
10149
|
Qe(!1);
|
|
10150
10150
|
}
|
|
10151
10151
|
}
|
|
10152
|
-
}, hn = async (D,
|
|
10152
|
+
}, hn = async (D, I) => {
|
|
10153
10153
|
yt(!0);
|
|
10154
10154
|
try {
|
|
10155
10155
|
await ie.post(`${t}/api/modify-text`, {
|
|
10156
10156
|
path: D.key,
|
|
10157
|
-
content:
|
|
10157
|
+
content: I
|
|
10158
10158
|
}), _({
|
|
10159
10159
|
title: "File Saved",
|
|
10160
10160
|
description: "File content has been updated successfully"
|
|
10161
|
-
}), nt.current = !0, await Ve(),
|
|
10161
|
+
}), nt.current = !0, await Ve(), F(null), Pe(""), je("rename");
|
|
10162
10162
|
} catch (U) {
|
|
10163
10163
|
console.error("Error saving file content:", U), _({
|
|
10164
10164
|
title: "Error",
|
|
@@ -10170,9 +10170,9 @@ const nw = ys(({ onChange: e }, t) => {
|
|
|
10170
10170
|
}
|
|
10171
10171
|
};
|
|
10172
10172
|
return qt(() => {
|
|
10173
|
-
|
|
10174
|
-
}, [
|
|
10175
|
-
/* @__PURE__ */ p(xl, { className: "s3-explr-breadcrumb", children: /* @__PURE__ */
|
|
10173
|
+
$ && Jn($) && (Yr($), je("rename"));
|
|
10174
|
+
}, [$]), /* @__PURE__ */ O("div", { className: "space-y-4 s3-explr-container", children: [
|
|
10175
|
+
/* @__PURE__ */ p(xl, { className: "s3-explr-breadcrumb", children: /* @__PURE__ */ O(Cl, { className: "s3-explr-breadcrumb-list", children: [
|
|
10176
10176
|
/* @__PURE__ */ p(Uo, { className: "s3-explr-breadcrumb-item", children: /* @__PURE__ */ p(
|
|
10177
10177
|
Go,
|
|
10178
10178
|
{
|
|
@@ -10181,19 +10181,19 @@ const nw = ys(({ onChange: e }, t) => {
|
|
|
10181
10181
|
children: e
|
|
10182
10182
|
}
|
|
10183
10183
|
) }),
|
|
10184
|
-
ne.map((D,
|
|
10184
|
+
ne.map((D, I) => /* @__PURE__ */ O(ce, { children: [
|
|
10185
10185
|
/* @__PURE__ */ p(
|
|
10186
10186
|
Sl,
|
|
10187
10187
|
{
|
|
10188
10188
|
className: "s3-explr-breadcrumb-separator"
|
|
10189
10189
|
},
|
|
10190
|
-
`sep-${
|
|
10190
|
+
`sep-${I}`
|
|
10191
10191
|
),
|
|
10192
10192
|
/* @__PURE__ */ p(Uo, { className: "s3-explr-breadcrumb-item", children: /* @__PURE__ */ p(
|
|
10193
10193
|
Go,
|
|
10194
10194
|
{
|
|
10195
|
-
onClick: () =>
|
|
10196
|
-
n + ne.slice(0,
|
|
10195
|
+
onClick: () => It(
|
|
10196
|
+
n + ne.slice(0, I + 1).join("/") + "/"
|
|
10197
10197
|
),
|
|
10198
10198
|
className: "cursor-pointer s3-explr-breadcrumb-link",
|
|
10199
10199
|
children: D
|
|
@@ -10201,7 +10201,7 @@ const nw = ys(({ onChange: e }, t) => {
|
|
|
10201
10201
|
) }, `item-${D}`)
|
|
10202
10202
|
] }))
|
|
10203
10203
|
] }) }),
|
|
10204
|
-
/* @__PURE__ */
|
|
10204
|
+
/* @__PURE__ */ O("div", { className: "flex items-center space-x-4 s3-explr-toolbar", children: [
|
|
10205
10205
|
/* @__PURE__ */ p("div", { className: "relative max-w-sm w-full s3-explr-search-container", children: /* @__PURE__ */ p(
|
|
10206
10206
|
nw,
|
|
10207
10207
|
{
|
|
@@ -10209,7 +10209,7 @@ const nw = ys(({ onChange: e }, t) => {
|
|
|
10209
10209
|
onChange: (D) => i(D)
|
|
10210
10210
|
}
|
|
10211
10211
|
) }),
|
|
10212
|
-
/* @__PURE__ */
|
|
10212
|
+
/* @__PURE__ */ O(
|
|
10213
10213
|
pe,
|
|
10214
10214
|
{
|
|
10215
10215
|
variant: "outline",
|
|
@@ -10230,9 +10230,9 @@ const nw = ys(({ onChange: e }, t) => {
|
|
|
10230
10230
|
]
|
|
10231
10231
|
}
|
|
10232
10232
|
),
|
|
10233
|
-
!r && /* @__PURE__ */
|
|
10234
|
-
a.size > 0 && /* @__PURE__ */
|
|
10235
|
-
/* @__PURE__ */
|
|
10233
|
+
!r && /* @__PURE__ */ O(ce, { children: [
|
|
10234
|
+
a.size > 0 && /* @__PURE__ */ O(ce, { children: [
|
|
10235
|
+
/* @__PURE__ */ O(
|
|
10236
10236
|
pe,
|
|
10237
10237
|
{
|
|
10238
10238
|
variant: "outline",
|
|
@@ -10248,8 +10248,8 @@ const nw = ys(({ onChange: e }, t) => {
|
|
|
10248
10248
|
]
|
|
10249
10249
|
}
|
|
10250
10250
|
),
|
|
10251
|
-
/* @__PURE__ */
|
|
10252
|
-
/* @__PURE__ */ p(hr, { asChild: !0, children: /* @__PURE__ */
|
|
10251
|
+
/* @__PURE__ */ O(Qt, { open: R, onOpenChange: M, children: [
|
|
10252
|
+
/* @__PURE__ */ p(hr, { asChild: !0, children: /* @__PURE__ */ O(
|
|
10253
10253
|
pe,
|
|
10254
10254
|
{
|
|
10255
10255
|
variant: "destructive",
|
|
@@ -10263,16 +10263,16 @@ const nw = ys(({ onChange: e }, t) => {
|
|
|
10263
10263
|
]
|
|
10264
10264
|
}
|
|
10265
10265
|
) }),
|
|
10266
|
-
/* @__PURE__ */
|
|
10267
|
-
/* @__PURE__ */
|
|
10266
|
+
/* @__PURE__ */ O(Vt, { className: "s3-explr-dialog-content", children: [
|
|
10267
|
+
/* @__PURE__ */ O(Bt, { className: "s3-explr-dialog-header", children: [
|
|
10268
10268
|
/* @__PURE__ */ p(zt, { className: "s3-explr-dialog-title", children: "Confirm Bulk Deletion" }),
|
|
10269
|
-
/* @__PURE__ */
|
|
10269
|
+
/* @__PURE__ */ O(Jo, { className: "s3-explr-dialog-description", children: [
|
|
10270
10270
|
"Are you sure you want to delete ",
|
|
10271
10271
|
a.size,
|
|
10272
10272
|
" selected items? This action cannot be undone."
|
|
10273
10273
|
] })
|
|
10274
10274
|
] }),
|
|
10275
|
-
/* @__PURE__ */
|
|
10275
|
+
/* @__PURE__ */ O(sr, { className: "s3-explr-dialog-footer", children: [
|
|
10276
10276
|
/* @__PURE__ */ p(
|
|
10277
10277
|
pe,
|
|
10278
10278
|
{
|
|
@@ -10289,7 +10289,7 @@ const nw = ys(({ onChange: e }, t) => {
|
|
|
10289
10289
|
onClick: L,
|
|
10290
10290
|
disabled: b,
|
|
10291
10291
|
className: "s3-explr-confirm-delete-btn",
|
|
10292
|
-
children: b ? /* @__PURE__ */
|
|
10292
|
+
children: b ? /* @__PURE__ */ O(ce, { children: [
|
|
10293
10293
|
/* @__PURE__ */ p(Ae, { className: "mr-2 h-4 w-4 animate-spin s3-explr-loader" }),
|
|
10294
10294
|
"Deleting..."
|
|
10295
10295
|
] }) : "Delete Selected"
|
|
@@ -10299,8 +10299,8 @@ const nw = ys(({ onChange: e }, t) => {
|
|
|
10299
10299
|
] })
|
|
10300
10300
|
] })
|
|
10301
10301
|
] }),
|
|
10302
|
-
/* @__PURE__ */
|
|
10303
|
-
/* @__PURE__ */ p(hr, { asChild: !0, children: /* @__PURE__ */
|
|
10302
|
+
/* @__PURE__ */ O(Qt, { open: g, onOpenChange: h, children: [
|
|
10303
|
+
/* @__PURE__ */ p(hr, { asChild: !0, children: /* @__PURE__ */ O(
|
|
10304
10304
|
pe,
|
|
10305
10305
|
{
|
|
10306
10306
|
variant: "outline",
|
|
@@ -10312,10 +10312,10 @@ const nw = ys(({ onChange: e }, t) => {
|
|
|
10312
10312
|
]
|
|
10313
10313
|
}
|
|
10314
10314
|
) }),
|
|
10315
|
-
/* @__PURE__ */
|
|
10315
|
+
/* @__PURE__ */ O(Vt, { className: "s3-explr-dialog-content", children: [
|
|
10316
10316
|
/* @__PURE__ */ p(Bt, { className: "s3-explr-dialog-header", children: /* @__PURE__ */ p(zt, { className: "s3-explr-dialog-title", children: "Create New Folder" }) }),
|
|
10317
|
-
/* @__PURE__ */
|
|
10318
|
-
/* @__PURE__ */
|
|
10317
|
+
/* @__PURE__ */ O("div", { className: "space-y-4 py-4 s3-explr-dialog-body", children: [
|
|
10318
|
+
/* @__PURE__ */ O("div", { className: "space-y-2 s3-explr-input-group", children: [
|
|
10319
10319
|
/* @__PURE__ */ p(Rn, { htmlFor: "name", className: "s3-explr-label", children: "Folder Name" }),
|
|
10320
10320
|
/* @__PURE__ */ p(
|
|
10321
10321
|
Tt,
|
|
@@ -10329,7 +10329,7 @@ const nw = ys(({ onChange: e }, t) => {
|
|
|
10329
10329
|
}
|
|
10330
10330
|
)
|
|
10331
10331
|
] }),
|
|
10332
|
-
/* @__PURE__ */
|
|
10332
|
+
/* @__PURE__ */ O(
|
|
10333
10333
|
pe,
|
|
10334
10334
|
{
|
|
10335
10335
|
onClick: () => {
|
|
@@ -10346,7 +10346,7 @@ const nw = ys(({ onChange: e }, t) => {
|
|
|
10346
10346
|
] })
|
|
10347
10347
|
] })
|
|
10348
10348
|
] }),
|
|
10349
|
-
/* @__PURE__ */
|
|
10349
|
+
/* @__PURE__ */ O("div", { className: "flex items-center gap-2 s3-explr-upload-group", children: [
|
|
10350
10350
|
/* @__PURE__ */ p(
|
|
10351
10351
|
pe,
|
|
10352
10352
|
{
|
|
@@ -10355,16 +10355,16 @@ const nw = ys(({ onChange: e }, t) => {
|
|
|
10355
10355
|
className: "flex items-center gap-2 s3-explr-upload-files-btn",
|
|
10356
10356
|
onClick: () => {
|
|
10357
10357
|
const D = document.createElement("input");
|
|
10358
|
-
D.type = "file", D.multiple = !0, D.onchange = (
|
|
10359
|
-
const U =
|
|
10358
|
+
D.type = "file", D.multiple = !0, D.onchange = (I) => {
|
|
10359
|
+
const U = I.target.files;
|
|
10360
10360
|
U && P(U, l, "files");
|
|
10361
10361
|
}, D.click();
|
|
10362
10362
|
},
|
|
10363
10363
|
disabled: j !== null,
|
|
10364
|
-
children: j === "files" ? /* @__PURE__ */
|
|
10364
|
+
children: j === "files" ? /* @__PURE__ */ O(ce, { children: [
|
|
10365
10365
|
/* @__PURE__ */ p(Ae, { className: "h-4 w-4 animate-spin mr-2 s3-explr-loader" }),
|
|
10366
10366
|
"Uploading..."
|
|
10367
|
-
] }) : /* @__PURE__ */
|
|
10367
|
+
] }) : /* @__PURE__ */ O(ce, { children: [
|
|
10368
10368
|
/* @__PURE__ */ p(bd, { className: "h-4 w-4 s3-explr-upload-icon" }),
|
|
10369
10369
|
"Upload Files"
|
|
10370
10370
|
] })
|
|
@@ -10378,32 +10378,32 @@ const nw = ys(({ onChange: e }, t) => {
|
|
|
10378
10378
|
className: "flex items-center gap-2 s3-explr-upload-folder-btn",
|
|
10379
10379
|
onClick: () => {
|
|
10380
10380
|
const D = document.createElement("input");
|
|
10381
|
-
D.type = "file", D.multiple = !0, D.webkitdirectory = !0, D.onchange = (
|
|
10382
|
-
const U =
|
|
10381
|
+
D.type = "file", D.multiple = !0, D.webkitdirectory = !0, D.onchange = (I) => {
|
|
10382
|
+
const U = I.target.files;
|
|
10383
10383
|
U && P(U, l, "folder");
|
|
10384
10384
|
}, D.click();
|
|
10385
10385
|
},
|
|
10386
10386
|
disabled: j !== null,
|
|
10387
|
-
children: j === "folder" ? /* @__PURE__ */
|
|
10387
|
+
children: j === "folder" ? /* @__PURE__ */ O(ce, { children: [
|
|
10388
10388
|
/* @__PURE__ */ p(Ae, { className: "h-4 w-4 animate-spin mr-2 s3-explr-loader" }),
|
|
10389
10389
|
"Uploading..."
|
|
10390
|
-
] }) : /* @__PURE__ */
|
|
10390
|
+
] }) : /* @__PURE__ */ O(ce, { children: [
|
|
10391
10391
|
/* @__PURE__ */ p(Zr, { className: "h-4 w-4 s3-explr-folder-icon" }),
|
|
10392
10392
|
"Upload Folder"
|
|
10393
10393
|
] })
|
|
10394
10394
|
}
|
|
10395
10395
|
)
|
|
10396
10396
|
] }),
|
|
10397
|
-
/* @__PURE__ */ p(Qt, { open: !!w, onOpenChange: (D) => !D && x(null), children: /* @__PURE__ */
|
|
10398
|
-
/* @__PURE__ */
|
|
10397
|
+
/* @__PURE__ */ p(Qt, { open: !!w, onOpenChange: (D) => !D && x(null), children: /* @__PURE__ */ O(Vt, { className: "s3-explr-dialog-content", children: [
|
|
10398
|
+
/* @__PURE__ */ O(Bt, { className: "s3-explr-dialog-header", children: [
|
|
10399
10399
|
/* @__PURE__ */ p(zt, { className: "s3-explr-dialog-title", children: "Confirm Deletion" }),
|
|
10400
|
-
/* @__PURE__ */
|
|
10400
|
+
/* @__PURE__ */ O(Jo, { className: "s3-explr-dialog-description", children: [
|
|
10401
10401
|
"Are you sure you want to delete ",
|
|
10402
10402
|
w == null ? void 0 : w.name,
|
|
10403
10403
|
"? This action cannot be undone."
|
|
10404
10404
|
] })
|
|
10405
10405
|
] }),
|
|
10406
|
-
/* @__PURE__ */
|
|
10406
|
+
/* @__PURE__ */ O(sr, { className: "s3-explr-dialog-footer", children: [
|
|
10407
10407
|
/* @__PURE__ */ p(
|
|
10408
10408
|
pe,
|
|
10409
10409
|
{
|
|
@@ -10420,7 +10420,7 @@ const nw = ys(({ onChange: e }, t) => {
|
|
|
10420
10420
|
onClick: () => A(w),
|
|
10421
10421
|
disabled: E,
|
|
10422
10422
|
className: "s3-explr-confirm-delete-btn",
|
|
10423
|
-
children: E ? /* @__PURE__ */
|
|
10423
|
+
children: E ? /* @__PURE__ */ O(ce, { children: [
|
|
10424
10424
|
/* @__PURE__ */ p(Ae, { className: "mr-2 h-4 w-4 animate-spin s3-explr-loader" }),
|
|
10425
10425
|
"Deleting..."
|
|
10426
10426
|
] }) : "Delete"
|
|
@@ -10431,23 +10431,23 @@ const nw = ys(({ onChange: e }, t) => {
|
|
|
10431
10431
|
/* @__PURE__ */ p(
|
|
10432
10432
|
Qt,
|
|
10433
10433
|
{
|
|
10434
|
-
open:
|
|
10434
|
+
open: !!$,
|
|
10435
10435
|
onOpenChange: (D) => {
|
|
10436
|
-
D || (
|
|
10436
|
+
D || (F(null), B(""), Pe(""), je("rename"));
|
|
10437
10437
|
},
|
|
10438
|
-
children: /* @__PURE__ */
|
|
10439
|
-
/* @__PURE__ */ p(Bt, { className: "s3-explr-dialog-header", children: /* @__PURE__ */ p(zt, { className: "s3-explr-dialog-title", children:
|
|
10440
|
-
|
|
10438
|
+
children: /* @__PURE__ */ O(Vt, { className: "s3-explr-dialog-content max-w-2xl", children: [
|
|
10439
|
+
/* @__PURE__ */ p(Bt, { className: "s3-explr-dialog-header", children: /* @__PURE__ */ p(zt, { className: "s3-explr-dialog-title", children: $ != null && $.isFolder ? "Rename Folder" : Jn($) ? "Manage File" : "Rename File" }) }),
|
|
10440
|
+
$ && !$.isFolder && Jn($) ? /* @__PURE__ */ O(
|
|
10441
10441
|
fv,
|
|
10442
10442
|
{
|
|
10443
10443
|
value: wt,
|
|
10444
10444
|
onValueChange: (D) => je(D),
|
|
10445
10445
|
children: [
|
|
10446
|
-
/* @__PURE__ */
|
|
10446
|
+
/* @__PURE__ */ O(Uc, { className: "grid w-full grid-cols-2", children: [
|
|
10447
10447
|
/* @__PURE__ */ p(os, { value: "rename", children: "Rename" }),
|
|
10448
10448
|
/* @__PURE__ */ p(os, { value: "edit", children: "Edit Content" })
|
|
10449
10449
|
] }),
|
|
10450
|
-
/* @__PURE__ */ p(ss, { value: "rename", children: /* @__PURE__ */ p("div", { className: "space-y-4 py-4 s3-explr-dialog-body", children: /* @__PURE__ */
|
|
10450
|
+
/* @__PURE__ */ p(ss, { value: "rename", children: /* @__PURE__ */ p("div", { className: "space-y-4 py-4 s3-explr-dialog-body", children: /* @__PURE__ */ O("div", { className: "space-y-2 s3-explr-input-group", children: [
|
|
10451
10451
|
/* @__PURE__ */ p(Rn, { htmlFor: "newName", className: "s3-explr-label", children: "New Name" }),
|
|
10452
10452
|
/* @__PURE__ */ p(
|
|
10453
10453
|
Tt,
|
|
@@ -10461,7 +10461,7 @@ const nw = ys(({ onChange: e }, t) => {
|
|
|
10461
10461
|
}
|
|
10462
10462
|
)
|
|
10463
10463
|
] }) }) }),
|
|
10464
|
-
/* @__PURE__ */ p(ss, { value: "edit", children: /* @__PURE__ */ p("div", { className: "space-y-4 py-4", children: He ? /* @__PURE__ */ p("div", { className: "flex items-center justify-center py-4", children: /* @__PURE__ */ p(Ae, { className: "h-6 w-6 animate-spin" }) }) : /* @__PURE__ */
|
|
10464
|
+
/* @__PURE__ */ p(ss, { value: "edit", children: /* @__PURE__ */ p("div", { className: "space-y-4 py-4", children: He ? /* @__PURE__ */ p("div", { className: "flex items-center justify-center py-4", children: /* @__PURE__ */ p(Ae, { className: "h-6 w-6 animate-spin" }) }) : /* @__PURE__ */ O("div", { className: "space-y-2", children: [
|
|
10465
10465
|
/* @__PURE__ */ p(Rn, { htmlFor: "content", className: "s3-explr-label", children: "File Content" }),
|
|
10466
10466
|
/* @__PURE__ */ p(
|
|
10467
10467
|
vr,
|
|
@@ -10477,7 +10477,7 @@ const nw = ys(({ onChange: e }, t) => {
|
|
|
10477
10477
|
] }) }) })
|
|
10478
10478
|
]
|
|
10479
10479
|
}
|
|
10480
|
-
) : /* @__PURE__ */ p("div", { className: "space-y-4 py-4 s3-explr-dialog-body", children: /* @__PURE__ */
|
|
10480
|
+
) : /* @__PURE__ */ p("div", { className: "space-y-4 py-4 s3-explr-dialog-body", children: /* @__PURE__ */ O("div", { className: "space-y-2 s3-explr-input-group", children: [
|
|
10481
10481
|
/* @__PURE__ */ p(Rn, { htmlFor: "newName", className: "s3-explr-label", children: "New Name" }),
|
|
10482
10482
|
/* @__PURE__ */ p(
|
|
10483
10483
|
Tt,
|
|
@@ -10491,13 +10491,13 @@ const nw = ys(({ onChange: e }, t) => {
|
|
|
10491
10491
|
}
|
|
10492
10492
|
)
|
|
10493
10493
|
] }) }),
|
|
10494
|
-
/* @__PURE__ */
|
|
10494
|
+
/* @__PURE__ */ O(sr, { className: "s3-explr-dialog-footer", children: [
|
|
10495
10495
|
/* @__PURE__ */ p(
|
|
10496
10496
|
pe,
|
|
10497
10497
|
{
|
|
10498
10498
|
variant: "outline",
|
|
10499
10499
|
onClick: () => {
|
|
10500
|
-
|
|
10500
|
+
F(null), B(""), Pe("");
|
|
10501
10501
|
},
|
|
10502
10502
|
className: "s3-explr-cancel-btn",
|
|
10503
10503
|
children: "Cancel"
|
|
@@ -10506,10 +10506,10 @@ const nw = ys(({ onChange: e }, t) => {
|
|
|
10506
10506
|
wt === "edit" ? /* @__PURE__ */ p(
|
|
10507
10507
|
pe,
|
|
10508
10508
|
{
|
|
10509
|
-
onClick: () =>
|
|
10509
|
+
onClick: () => $ && hn($, oe),
|
|
10510
10510
|
disabled: kt || He,
|
|
10511
10511
|
className: "s3-explr-save-btn",
|
|
10512
|
-
children: kt ? /* @__PURE__ */
|
|
10512
|
+
children: kt ? /* @__PURE__ */ O(ce, { children: [
|
|
10513
10513
|
/* @__PURE__ */ p(Ae, { className: "mr-2 h-4 w-4 animate-spin s3-explr-loader" }),
|
|
10514
10514
|
"Saving..."
|
|
10515
10515
|
] }) : "Save Changes"
|
|
@@ -10518,11 +10518,11 @@ const nw = ys(({ onChange: e }, t) => {
|
|
|
10518
10518
|
pe,
|
|
10519
10519
|
{
|
|
10520
10520
|
onClick: () => {
|
|
10521
|
-
G.trim() &&
|
|
10521
|
+
G.trim() && $ && k($, G.trim());
|
|
10522
10522
|
},
|
|
10523
|
-
disabled: q || !G.trim() || G.trim() === (
|
|
10523
|
+
disabled: q || !G.trim() || G.trim() === ($ == null ? void 0 : $.name),
|
|
10524
10524
|
className: "s3-explr-rename-btn",
|
|
10525
|
-
children: q ? /* @__PURE__ */
|
|
10525
|
+
children: q ? /* @__PURE__ */ O(ce, { children: [
|
|
10526
10526
|
/* @__PURE__ */ p(Ae, { className: "mr-2 h-4 w-4 animate-spin s3-explr-loader" }),
|
|
10527
10527
|
"Renaming..."
|
|
10528
10528
|
] }) : "Rename"
|
|
@@ -10534,24 +10534,24 @@ const nw = ys(({ onChange: e }, t) => {
|
|
|
10534
10534
|
)
|
|
10535
10535
|
] })
|
|
10536
10536
|
] }),
|
|
10537
|
-
|
|
10538
|
-
/* @__PURE__ */ p("div", { className: "rounded-md border s3-explr-table-container", children: /* @__PURE__ */
|
|
10539
|
-
/* @__PURE__ */ p(
|
|
10537
|
+
$t && /* @__PURE__ */ p("div", { className: "bg-red-100 border border-red-400 text-red-700 px-4 py-3 rounded relative s3-explr-error", children: "An error occurred while fetching files" }),
|
|
10538
|
+
/* @__PURE__ */ p("div", { className: "rounded-md border s3-explr-table-container", children: /* @__PURE__ */ O($r, { className: "s3-explr-table", children: [
|
|
10539
|
+
/* @__PURE__ */ p(Ir, { className: "s3-explr-table-header", children: Ge.getHeaderGroups().map((D) => /* @__PURE__ */ p(qe, { className: "hover:bg-transparent s3-explr-header-row", children: D.headers.map((I) => /* @__PURE__ */ p(tt, { className: "s3-explr-header-cell", children: I.isPlaceholder ? null : fr(I.column.columnDef.header, I.getContext()) }, I.id)) }, D.id)) }),
|
|
10540
10540
|
/* @__PURE__ */ p(Lr, { className: "s3-explr-table-body", children: Ge.getRowModel().rows.length === 0 ? /* @__PURE__ */ p(qe, { className: "s3-explr-empty-row", children: /* @__PURE__ */ p(
|
|
10541
10541
|
Fe,
|
|
10542
10542
|
{
|
|
10543
10543
|
colSpan: he.length,
|
|
10544
10544
|
className: "h-24 text-center s3-explr-empty-cell",
|
|
10545
|
-
children: s ? /* @__PURE__ */
|
|
10545
|
+
children: s ? /* @__PURE__ */ O("div", { className: "text-gray-500 s3-explr-no-results", children: [
|
|
10546
10546
|
'No files or folders found matching "',
|
|
10547
10547
|
s,
|
|
10548
10548
|
'"'
|
|
10549
10549
|
] }) : /* @__PURE__ */ p("div", { className: "text-gray-500 s3-explr-empty-message", children: bt ? "Retrieving folder contents... Please wait" : "This folder contains no files or subdirectories" })
|
|
10550
10550
|
}
|
|
10551
|
-
) }) : Ge.getRowModel().rows.map((D) => /* @__PURE__ */ p(qe, { className: "h-12 s3-explr-row", children: D.getVisibleCells().map((
|
|
10551
|
+
) }) : Ge.getRowModel().rows.map((D) => /* @__PURE__ */ p(qe, { className: "h-12 s3-explr-row", children: D.getVisibleCells().map((I) => /* @__PURE__ */ p(Fe, { className: "align-middle s3-explr-cell", children: fr(I.column.columnDef.cell, I.getContext()) }, I.id)) }, D.id)) })
|
|
10552
10552
|
] }) }),
|
|
10553
|
-
r && o && /* @__PURE__ */
|
|
10554
|
-
/* @__PURE__ */
|
|
10553
|
+
r && o && /* @__PURE__ */ O("div", { className: "flex justify-between items-center mt-4 s3-explr-selector-footer", children: [
|
|
10554
|
+
/* @__PURE__ */ O("div", { className: "text-sm text-gray-500 s3-explr-selection-count", children: [
|
|
10555
10555
|
a.size,
|
|
10556
10556
|
" ",
|
|
10557
10557
|
a.size === 1 ? "file" : "files",
|
|
@@ -10595,7 +10595,7 @@ function Be(e) {
|
|
|
10595
10595
|
return e;
|
|
10596
10596
|
return t;
|
|
10597
10597
|
}
|
|
10598
|
-
var jr = (e) => Array.isArray(e) ? e.filter(Boolean) : [], me = (e) => e === void 0,
|
|
10598
|
+
var jr = (e) => Array.isArray(e) ? e.filter(Boolean) : [], me = (e) => e === void 0, H = (e, t, n) => {
|
|
10599
10599
|
if (!t || !ve(e))
|
|
10600
10600
|
return n;
|
|
10601
10601
|
const r = jr(t.split(/[,[\].]+?/)).reduce((o, s) => Ee(o) ? o : o[s], e);
|
|
@@ -10664,7 +10664,7 @@ function fw(e) {
|
|
|
10664
10664
|
};
|
|
10665
10665
|
}, [e.disabled]);
|
|
10666
10666
|
}
|
|
10667
|
-
var it = (e) => typeof e == "string", pw = (e, t, n, r, o) => it(e) ? (r && t.watch.add(e),
|
|
10667
|
+
var it = (e) => typeof e == "string", pw = (e, t, n, r, o) => it(e) ? (r && t.watch.add(e), H(n, e, o)) : Array.isArray(e) ? e.map((s) => (r && t.watch.add(s), H(n, s))) : (r && (t.watchAll = !0), n), gw = (e, t, n, r, o) => t ? {
|
|
10668
10668
|
...n[e],
|
|
10669
10669
|
types: {
|
|
10670
10670
|
...n[e] && n[e].types ? n[e].types : {},
|
|
@@ -10679,7 +10679,7 @@ var it = (e) => typeof e == "string", pw = (e, t, n, r, o) => it(e) ? (r && t.wa
|
|
|
10679
10679
|
}), sa = (e, t, n) => !n && (t.watchAll || t.watch.has(e) || [...t.watch].some((r) => e.startsWith(r) && /^\.\w+/.test(e.slice(r.length))));
|
|
10680
10680
|
const Pn = (e, t, n, r) => {
|
|
10681
10681
|
for (const o of n || Object.keys(e)) {
|
|
10682
|
-
const s =
|
|
10682
|
+
const s = H(e, o);
|
|
10683
10683
|
if (s) {
|
|
10684
10684
|
const { _f: i, ...a } = s;
|
|
10685
10685
|
if (i) {
|
|
@@ -10695,7 +10695,7 @@ const Pn = (e, t, n, r) => {
|
|
|
10695
10695
|
}
|
|
10696
10696
|
};
|
|
10697
10697
|
var mw = (e, t, n) => {
|
|
10698
|
-
const r = cr(
|
|
10698
|
+
const r = cr(H(e, n));
|
|
10699
10699
|
return fe(r, "root", t[n]), fe(e, n, r), e;
|
|
10700
10700
|
}, Ws = (e) => e.type === "file", st = (e) => typeof e == "function", yr = (e) => {
|
|
10701
10701
|
if (!Us)
|
|
@@ -10740,76 +10740,76 @@ var Jt = (e) => ve(e) && !wr(e) ? e : {
|
|
|
10740
10740
|
value: e,
|
|
10741
10741
|
message: ""
|
|
10742
10742
|
}, ua = async (e, t, n, r, o) => {
|
|
10743
|
-
const { ref: s, refs: i, required: a, maxLength: c, minLength: l, min: d, max: g, pattern: h, validate: f, name: v, valueAsNumber: m, mount: y, disabled: w } = e._f, x =
|
|
10743
|
+
const { ref: s, refs: i, required: a, maxLength: c, minLength: l, min: d, max: g, pattern: h, validate: f, name: v, valueAsNumber: m, mount: y, disabled: w } = e._f, x = H(t, v);
|
|
10744
10744
|
if (!y || w)
|
|
10745
10745
|
return {};
|
|
10746
10746
|
const E = i ? i[0] : s, N = (_) => {
|
|
10747
10747
|
r && E.reportValidity && (E.setCustomValidity(rt(_) ? "" : _ || ""), E.reportValidity());
|
|
10748
|
-
}, b = {}, S = qs(s), R = Dn(s), M = S || R, j = (m || Ws(s)) && me(s.value) && me(x) || yr(s) && s.value === "" || x === "" || Array.isArray(x) && !x.length,
|
|
10749
|
-
const q = _ ?
|
|
10748
|
+
}, b = {}, S = qs(s), R = Dn(s), M = S || R, j = (m || Ws(s)) && me(s.value) && me(x) || yr(s) && s.value === "" || x === "" || Array.isArray(x) && !x.length, z = gw.bind(null, v, n, b), Z = (_, $, F, G = ft.maxLength, B = ft.minLength) => {
|
|
10749
|
+
const q = _ ? $ : F;
|
|
10750
10750
|
b[v] = {
|
|
10751
10751
|
type: _ ? G : B,
|
|
10752
10752
|
message: q,
|
|
10753
10753
|
ref: s,
|
|
10754
|
-
...
|
|
10754
|
+
...z(_ ? G : B, q)
|
|
10755
10755
|
};
|
|
10756
10756
|
};
|
|
10757
10757
|
if (o ? !Array.isArray(x) || !x.length : a && (!M && (j || Ee(x)) || rt(x) && !x || R && !Eu(i).isValid || S && !Nu(i).isValid)) {
|
|
10758
|
-
const { value: _, message:
|
|
10758
|
+
const { value: _, message: $ } = ur(a) ? { value: !!a, message: a } : Jt(a);
|
|
10759
10759
|
if (_ && (b[v] = {
|
|
10760
10760
|
type: ft.required,
|
|
10761
|
-
message:
|
|
10761
|
+
message: $,
|
|
10762
10762
|
ref: E,
|
|
10763
|
-
...
|
|
10763
|
+
...z(ft.required, $)
|
|
10764
10764
|
}, !n))
|
|
10765
|
-
return N(
|
|
10765
|
+
return N($), b;
|
|
10766
10766
|
}
|
|
10767
10767
|
if (!j && (!Ee(d) || !Ee(g))) {
|
|
10768
|
-
let _,
|
|
10769
|
-
const
|
|
10768
|
+
let _, $;
|
|
10769
|
+
const F = Jt(g), G = Jt(d);
|
|
10770
10770
|
if (!Ee(x) && !isNaN(x)) {
|
|
10771
10771
|
const B = s.valueAsNumber || x && +x;
|
|
10772
|
-
Ee(
|
|
10772
|
+
Ee(F.value) || (_ = B > F.value), Ee(G.value) || ($ = B < G.value);
|
|
10773
10773
|
} else {
|
|
10774
10774
|
const B = s.valueAsDate || new Date(x), q = (ue) => /* @__PURE__ */ new Date((/* @__PURE__ */ new Date()).toDateString() + " " + ue), K = s.type == "time", te = s.type == "week";
|
|
10775
|
-
it(
|
|
10775
|
+
it(F.value) && x && (_ = K ? q(x) > q(F.value) : te ? x > F.value : B > new Date(F.value)), it(G.value) && x && ($ = K ? q(x) < q(G.value) : te ? x < G.value : B < new Date(G.value));
|
|
10776
10776
|
}
|
|
10777
|
-
if ((_ ||
|
|
10777
|
+
if ((_ || $) && (Z(!!_, F.message, G.message, ft.max, ft.min), !n))
|
|
10778
10778
|
return N(b[v].message), b;
|
|
10779
10779
|
}
|
|
10780
10780
|
if ((c || l) && !j && (it(x) || o && Array.isArray(x))) {
|
|
10781
|
-
const _ = Jt(c),
|
|
10782
|
-
if ((
|
|
10781
|
+
const _ = Jt(c), $ = Jt(l), F = !Ee(_.value) && x.length > +_.value, G = !Ee($.value) && x.length < +$.value;
|
|
10782
|
+
if ((F || G) && (Z(F, _.message, $.message), !n))
|
|
10783
10783
|
return N(b[v].message), b;
|
|
10784
10784
|
}
|
|
10785
10785
|
if (h && !j && it(x)) {
|
|
10786
|
-
const { value: _, message:
|
|
10786
|
+
const { value: _, message: $ } = Jt(h);
|
|
10787
10787
|
if (wr(_) && !x.match(_) && (b[v] = {
|
|
10788
10788
|
type: ft.pattern,
|
|
10789
|
-
message:
|
|
10789
|
+
message: $,
|
|
10790
10790
|
ref: s,
|
|
10791
|
-
...
|
|
10791
|
+
...z(ft.pattern, $)
|
|
10792
10792
|
}, !n))
|
|
10793
|
-
return N(
|
|
10793
|
+
return N($), b;
|
|
10794
10794
|
}
|
|
10795
10795
|
if (f) {
|
|
10796
10796
|
if (st(f)) {
|
|
10797
|
-
const _ = await f(x, t),
|
|
10798
|
-
if (
|
|
10799
|
-
|
|
10800
|
-
...
|
|
10797
|
+
const _ = await f(x, t), $ = ca(_, E);
|
|
10798
|
+
if ($ && (b[v] = {
|
|
10799
|
+
...$,
|
|
10800
|
+
...z(ft.validate, $.message)
|
|
10801
10801
|
}, !n))
|
|
10802
|
-
return N(
|
|
10802
|
+
return N($.message), b;
|
|
10803
10803
|
} else if (ve(f)) {
|
|
10804
10804
|
let _ = {};
|
|
10805
|
-
for (const
|
|
10805
|
+
for (const $ in f) {
|
|
10806
10806
|
if (!_e(_) && !n)
|
|
10807
10807
|
break;
|
|
10808
|
-
const
|
|
10809
|
-
|
|
10810
|
-
...
|
|
10811
|
-
...
|
|
10812
|
-
}, N(
|
|
10808
|
+
const F = ca(await f[$](x, t), E, $);
|
|
10809
|
+
F && (_ = {
|
|
10810
|
+
...F,
|
|
10811
|
+
...z($, F.message)
|
|
10812
|
+
}, N(F.message), n && (b[v] = _));
|
|
10813
10813
|
}
|
|
10814
10814
|
if (!_e(_) && (b[v] = {
|
|
10815
10815
|
ref: E,
|
|
@@ -10906,7 +10906,7 @@ function Po(e) {
|
|
|
10906
10906
|
var ww = (e, t, n, r) => {
|
|
10907
10907
|
const o = {};
|
|
10908
10908
|
for (const s of e) {
|
|
10909
|
-
const i =
|
|
10909
|
+
const i = H(t, s);
|
|
10910
10910
|
i && fe(o, s, i._f);
|
|
10911
10911
|
}
|
|
10912
10912
|
return {
|
|
@@ -10919,7 +10919,7 @@ var ww = (e, t, n, r) => {
|
|
|
10919
10919
|
const da = "AsyncFunction";
|
|
10920
10920
|
var bw = (e) => !!e && !!e.validate && !!(st(e.validate) && e.validate.constructor.name === da || ve(e.validate) && Object.values(e.validate).find((t) => t.constructor.name === da)), xw = (e) => e.mount && (e.required || e.min || e.max || e.maxLength || e.minLength || e.pattern || e.validate);
|
|
10921
10921
|
function fa(e, t, n) {
|
|
10922
|
-
const r =
|
|
10922
|
+
const r = H(e, n);
|
|
10923
10923
|
if (r || Gs(n))
|
|
10924
10924
|
return {
|
|
10925
10925
|
error: r,
|
|
@@ -10927,7 +10927,7 @@ function fa(e, t, n) {
|
|
|
10927
10927
|
};
|
|
10928
10928
|
const o = n.split(".");
|
|
10929
10929
|
for (; o.length; ) {
|
|
10930
|
-
const s = o.join("."), i =
|
|
10930
|
+
const s = o.join("."), i = H(t, s), a = H(e, s);
|
|
10931
10931
|
if (i && !Array.isArray(i) && n !== s)
|
|
10932
10932
|
return { name: n };
|
|
10933
10933
|
if (a && a.type)
|
|
@@ -10941,7 +10941,7 @@ function fa(e, t, n) {
|
|
|
10941
10941
|
name: n
|
|
10942
10942
|
};
|
|
10943
10943
|
}
|
|
10944
|
-
var Cw = (e, t, n, r, o) => o.isOnAll ? !1 : !n && o.isOnTouch ? !(t || e) : (n ? r.isOnBlur : o.isOnBlur) ? !e : (n ? r.isOnChange : o.isOnChange) ? e : !0, Sw = (e, t) => !jr(
|
|
10944
|
+
var Cw = (e, t, n, r, o) => o.isOnAll ? !1 : !n && o.isOnTouch ? !(t || e) : (n ? r.isOnBlur : o.isOnBlur) ? !e : (n ? r.isOnChange : o.isOnChange) ? e : !0, Sw = (e, t) => !jr(H(e, t)).length && be(e, t);
|
|
10945
10945
|
const Rw = {
|
|
10946
10946
|
mode: We.onSubmit,
|
|
10947
10947
|
reValidateMode: We.onChange,
|
|
@@ -10991,7 +10991,7 @@ function Ew(e = {}) {
|
|
|
10991
10991
|
clearTimeout(l), l = setTimeout(C, P);
|
|
10992
10992
|
}, y = async (C) => {
|
|
10993
10993
|
if (!t.disabled && (d.isValid || C)) {
|
|
10994
|
-
const P = t.resolver ? _e((await M()).errors) : await
|
|
10994
|
+
const P = t.resolver ? _e((await M()).errors) : await z(r, !0);
|
|
10995
10995
|
P !== n.isValid && g.state.next({
|
|
10996
10996
|
isValid: P
|
|
10997
10997
|
});
|
|
@@ -11005,16 +11005,16 @@ function Ew(e = {}) {
|
|
|
11005
11005
|
}));
|
|
11006
11006
|
}, x = (C, P = [], A, V, L = !0, k = !0) => {
|
|
11007
11007
|
if (V && A && !t.disabled) {
|
|
11008
|
-
if (i.action = !0, k && Array.isArray(
|
|
11009
|
-
const W = A(
|
|
11008
|
+
if (i.action = !0, k && Array.isArray(H(r, C))) {
|
|
11009
|
+
const W = A(H(r, C), V.argA, V.argB);
|
|
11010
11010
|
L && fe(r, C, W);
|
|
11011
11011
|
}
|
|
11012
|
-
if (k && Array.isArray(
|
|
11013
|
-
const W = A(
|
|
11012
|
+
if (k && Array.isArray(H(n.errors, C))) {
|
|
11013
|
+
const W = A(H(n.errors, C), V.argA, V.argB);
|
|
11014
11014
|
L && fe(n.errors, C, W), Sw(n.errors, C);
|
|
11015
11015
|
}
|
|
11016
|
-
if (d.touchedFields && k && Array.isArray(
|
|
11017
|
-
const W = A(
|
|
11016
|
+
if (d.touchedFields && k && Array.isArray(H(n.touchedFields, C))) {
|
|
11017
|
+
const W = A(H(n.touchedFields, C), V.argA, V.argB);
|
|
11018
11018
|
L && fe(n.touchedFields, C, W);
|
|
11019
11019
|
}
|
|
11020
11020
|
d.dirtyFields && (n.dirtyFields = Cn(o, s)), g.state.next({
|
|
@@ -11036,9 +11036,9 @@ function Ew(e = {}) {
|
|
|
11036
11036
|
isValid: !1
|
|
11037
11037
|
});
|
|
11038
11038
|
}, b = (C, P, A, V) => {
|
|
11039
|
-
const L =
|
|
11039
|
+
const L = H(r, C);
|
|
11040
11040
|
if (L) {
|
|
11041
|
-
const k =
|
|
11041
|
+
const k = H(s, C, me(A) ? H(o, C) : A);
|
|
11042
11042
|
me(k) || V && V.defaultChecked || P ? fe(s, C, P ? k : Po(L._f)) : G(C, k), i.mount && y();
|
|
11043
11043
|
}
|
|
11044
11044
|
}, S = (C, P, A, V, L) => {
|
|
@@ -11047,21 +11047,21 @@ function Ew(e = {}) {
|
|
|
11047
11047
|
name: C
|
|
11048
11048
|
};
|
|
11049
11049
|
if (!t.disabled) {
|
|
11050
|
-
const ye = !!(
|
|
11050
|
+
const ye = !!(H(r, C) && H(r, C)._f && H(r, C)._f.disabled);
|
|
11051
11051
|
if (!A || V) {
|
|
11052
11052
|
d.isDirty && (W = n.isDirty, n.isDirty = ne.isDirty = _(), k = W !== ne.isDirty);
|
|
11053
|
-
const he = ye || Et(
|
|
11054
|
-
W = !!(!ye &&
|
|
11053
|
+
const he = ye || Et(H(o, C), P);
|
|
11054
|
+
W = !!(!ye && H(n.dirtyFields, C)), he || ye ? be(n.dirtyFields, C) : fe(n.dirtyFields, C, !0), ne.dirtyFields = n.dirtyFields, k = k || d.dirtyFields && W !== !he;
|
|
11055
11055
|
}
|
|
11056
11056
|
if (A) {
|
|
11057
|
-
const he =
|
|
11057
|
+
const he = H(n.touchedFields, C);
|
|
11058
11058
|
he || (fe(n.touchedFields, C, A), ne.touchedFields = n.touchedFields, k = k || d.touchedFields && he !== A);
|
|
11059
11059
|
}
|
|
11060
11060
|
k && L && g.state.next(ne);
|
|
11061
11061
|
}
|
|
11062
11062
|
return k ? ne : {};
|
|
11063
11063
|
}, R = (C, P, A, V) => {
|
|
11064
|
-
const L =
|
|
11064
|
+
const L = H(n.errors, C), k = d.isValid && rt(P) && n.isValid !== P;
|
|
11065
11065
|
if (t.delayError && A ? (c = m(() => E(C, A)), c(t.delayError)) : (clearTimeout(l), c = null, A ? fe(n.errors, C, A) : be(n.errors, C)), (A ? !Et(L, A) : L) || !_e(V) || k) {
|
|
11066
11066
|
const W = {
|
|
11067
11067
|
...V,
|
|
@@ -11082,13 +11082,13 @@ function Ew(e = {}) {
|
|
|
11082
11082
|
const { errors: P } = await M(C);
|
|
11083
11083
|
if (C)
|
|
11084
11084
|
for (const A of C) {
|
|
11085
|
-
const V =
|
|
11085
|
+
const V = H(P, A);
|
|
11086
11086
|
V ? fe(n.errors, A, V) : be(n.errors, A);
|
|
11087
11087
|
}
|
|
11088
11088
|
else
|
|
11089
11089
|
n.errors = P;
|
|
11090
11090
|
return P;
|
|
11091
|
-
},
|
|
11091
|
+
}, z = async (C, P, A = {
|
|
11092
11092
|
valid: !0
|
|
11093
11093
|
}) => {
|
|
11094
11094
|
for (const V in C) {
|
|
@@ -11101,22 +11101,22 @@ function Ew(e = {}) {
|
|
|
11101
11101
|
const he = await ua(L, s, v, t.shouldUseNativeValidation && !P, ne);
|
|
11102
11102
|
if (ye && d.validatingFields && w([V]), he[k.name] && (A.valid = !1, P))
|
|
11103
11103
|
break;
|
|
11104
|
-
!P && (
|
|
11104
|
+
!P && (H(he, k.name) ? ne ? mw(n.errors, he, k.name) : fe(n.errors, k.name, he[k.name]) : be(n.errors, k.name));
|
|
11105
11105
|
}
|
|
11106
|
-
!_e(W) && await
|
|
11106
|
+
!_e(W) && await z(W, P, A);
|
|
11107
11107
|
}
|
|
11108
11108
|
}
|
|
11109
11109
|
return A.valid;
|
|
11110
11110
|
}, Z = () => {
|
|
11111
11111
|
for (const C of a.unMount) {
|
|
11112
|
-
const P =
|
|
11112
|
+
const P = H(r, C);
|
|
11113
11113
|
P && (P._f.refs ? P._f.refs.every((A) => !No(A)) : !No(P._f.ref)) && yt(C);
|
|
11114
11114
|
}
|
|
11115
11115
|
a.unMount = /* @__PURE__ */ new Set();
|
|
11116
|
-
}, _ = (C, P) => !t.disabled && (C && P && fe(s, C, P), !Et(oe(), o)),
|
|
11116
|
+
}, _ = (C, P) => !t.disabled && (C && P && fe(s, C, P), !Et(oe(), o)), $ = (C, P, A) => pw(C, a, {
|
|
11117
11117
|
...i.mount ? s : me(P) ? o : it(C) ? { [C]: P } : P
|
|
11118
|
-
}, A, P),
|
|
11119
|
-
const V =
|
|
11118
|
+
}, A, P), F = (C) => jr(H(i.mount ? s : o, C, t.shouldUnregister ? H(o, C, []) : [])), G = (C, P, A = {}) => {
|
|
11119
|
+
const V = H(r, C);
|
|
11120
11120
|
let L = P;
|
|
11121
11121
|
if (V) {
|
|
11122
11122
|
const k = V._f;
|
|
@@ -11128,11 +11128,11 @@ function Ew(e = {}) {
|
|
|
11128
11128
|
(A.shouldDirty || A.shouldTouch) && S(C, L, A.shouldTouch, A.shouldDirty, !0), A.shouldValidate && ue(C);
|
|
11129
11129
|
}, B = (C, P, A) => {
|
|
11130
11130
|
for (const V in P) {
|
|
11131
|
-
const L = P[V], k = `${C}.${V}`, W =
|
|
11131
|
+
const L = P[V], k = `${C}.${V}`, W = H(r, k);
|
|
11132
11132
|
(a.array.has(C) || ve(L) || W && !W._f) && !Ht(L) ? B(k, L, A) : G(k, L, A);
|
|
11133
11133
|
}
|
|
11134
11134
|
}, q = (C, P, A = {}) => {
|
|
11135
|
-
const V =
|
|
11135
|
+
const V = H(r, C), L = a.array.has(C), k = Be(P);
|
|
11136
11136
|
fe(s, C, k), L ? (g.array.next({
|
|
11137
11137
|
name: C,
|
|
11138
11138
|
values: { ...s }
|
|
@@ -11148,20 +11148,20 @@ function Ew(e = {}) {
|
|
|
11148
11148
|
i.mount = !0;
|
|
11149
11149
|
const P = C.target;
|
|
11150
11150
|
let A = P.name, V = !0;
|
|
11151
|
-
const L =
|
|
11152
|
-
V = Number.isNaN(ne) || Ht(ne) && isNaN(ne.getTime()) || Et(ne,
|
|
11151
|
+
const L = H(r, A), k = () => P.type ? Po(L._f) : iw(C), W = (ne) => {
|
|
11152
|
+
V = Number.isNaN(ne) || Ht(ne) && isNaN(ne.getTime()) || Et(ne, H(s, A, ne));
|
|
11153
11153
|
};
|
|
11154
11154
|
if (L) {
|
|
11155
11155
|
let ne, ye;
|
|
11156
|
-
const he = k(), Ge = C.type === ra.BLUR || C.type === ra.FOCUS_OUT, Yr = !xw(L._f) && !t.resolver && !
|
|
11156
|
+
const he = k(), Ge = C.type === ra.BLUR || C.type === ra.FOCUS_OUT, Yr = !xw(L._f) && !t.resolver && !H(n.errors, A) && !L._f.deps || Cw(Ge, H(n.touchedFields, A), n.isSubmitted, f, h), hn = sa(A, a, Ge);
|
|
11157
11157
|
fe(s, A, he), Ge ? (L._f.onBlur && L._f.onBlur(C), c && c(0)) : L._f.onChange && L._f.onChange(C);
|
|
11158
|
-
const D = S(A, he, Ge, !1),
|
|
11158
|
+
const D = S(A, he, Ge, !1), I = !_e(D) || hn;
|
|
11159
11159
|
if (!Ge && g.values.next({
|
|
11160
11160
|
name: A,
|
|
11161
11161
|
type: C.type,
|
|
11162
11162
|
values: { ...s }
|
|
11163
11163
|
}), Yr)
|
|
11164
|
-
return d.isValid && (t.mode === "onBlur" ? Ge && y() : y()),
|
|
11164
|
+
return d.isValid && (t.mode === "onBlur" ? Ge && y() : y()), I && g.state.next({ name: A, ...hn ? {} : D });
|
|
11165
11165
|
if (!Ge && hn && g.state.next({ ...n }), t.resolver) {
|
|
11166
11166
|
const { errors: U } = await M([A]);
|
|
11167
11167
|
if (W(he), V) {
|
|
@@ -11169,22 +11169,22 @@ function Ew(e = {}) {
|
|
|
11169
11169
|
ne = ae.error, A = ae.name, ye = _e(U);
|
|
11170
11170
|
}
|
|
11171
11171
|
} else
|
|
11172
|
-
w([A], !0), ne = (await ua(L, s, v, t.shouldUseNativeValidation))[A], w([A]), W(he), V && (ne ? ye = !1 : d.isValid && (ye = await
|
|
11172
|
+
w([A], !0), ne = (await ua(L, s, v, t.shouldUseNativeValidation))[A], w([A]), W(he), V && (ne ? ye = !1 : d.isValid && (ye = await z(r, !0)));
|
|
11173
11173
|
V && (L._f.deps && ue(L._f.deps), R(A, ye, ne, D));
|
|
11174
11174
|
}
|
|
11175
11175
|
}, te = (C, P) => {
|
|
11176
|
-
if (
|
|
11176
|
+
if (H(n.errors, P) && C.focus)
|
|
11177
11177
|
return C.focus(), 1;
|
|
11178
11178
|
}, ue = async (C, P = {}) => {
|
|
11179
11179
|
let A, V;
|
|
11180
11180
|
const L = cr(C);
|
|
11181
11181
|
if (t.resolver) {
|
|
11182
11182
|
const k = await j(me(C) ? C : L);
|
|
11183
|
-
A = _e(k), V = C ? !L.some((W) =>
|
|
11183
|
+
A = _e(k), V = C ? !L.some((W) => H(k, W)) : A;
|
|
11184
11184
|
} else C ? (V = (await Promise.all(L.map(async (k) => {
|
|
11185
|
-
const W =
|
|
11186
|
-
return await
|
|
11187
|
-
}))).every(Boolean), !(!V && !n.isValid) && y()) : V = A = await
|
|
11185
|
+
const W = H(r, k);
|
|
11186
|
+
return await z(W && W._f ? { [k]: W } : W);
|
|
11187
|
+
}))).every(Boolean), !(!V && !n.isValid) && y()) : V = A = await z(r);
|
|
11188
11188
|
return g.state.next({
|
|
11189
11189
|
...!it(C) || d.isValid && A !== n.isValid ? {} : { name: C },
|
|
11190
11190
|
...t.resolver || !C ? { isValid: A } : {},
|
|
@@ -11194,19 +11194,19 @@ function Ew(e = {}) {
|
|
|
11194
11194
|
const P = {
|
|
11195
11195
|
...i.mount ? s : o
|
|
11196
11196
|
};
|
|
11197
|
-
return me(C) ? P : it(C) ?
|
|
11197
|
+
return me(C) ? P : it(C) ? H(P, C) : C.map((A) => H(P, A));
|
|
11198
11198
|
}, Pe = (C, P) => ({
|
|
11199
|
-
invalid: !!
|
|
11200
|
-
isDirty: !!
|
|
11201
|
-
error:
|
|
11202
|
-
isValidating: !!
|
|
11203
|
-
isTouched: !!
|
|
11199
|
+
invalid: !!H((P || n).errors, C),
|
|
11200
|
+
isDirty: !!H((P || n).dirtyFields, C),
|
|
11201
|
+
error: H((P || n).errors, C),
|
|
11202
|
+
isValidating: !!H(n.validatingFields, C),
|
|
11203
|
+
isTouched: !!H((P || n).touchedFields, C)
|
|
11204
11204
|
}), He = (C) => {
|
|
11205
11205
|
C && cr(C).forEach((P) => be(n.errors, P)), g.state.next({
|
|
11206
11206
|
errors: C ? n.errors : {}
|
|
11207
11207
|
});
|
|
11208
11208
|
}, Qe = (C, P, A) => {
|
|
11209
|
-
const V = (
|
|
11209
|
+
const V = (H(r, C, { _f: {} })._f || {}).ref, L = H(n.errors, C) || {}, { ref: k, message: W, type: ne, ...ye } = L;
|
|
11210
11210
|
fe(n.errors, C, {
|
|
11211
11211
|
...ye,
|
|
11212
11212
|
...P,
|
|
@@ -11217,8 +11217,8 @@ function Ew(e = {}) {
|
|
|
11217
11217
|
isValid: !1
|
|
11218
11218
|
}), A && A.shouldFocus && V && V.focus && V.focus();
|
|
11219
11219
|
}, kt = (C, P) => st(C) ? g.values.subscribe({
|
|
11220
|
-
next: (A) => C(
|
|
11221
|
-
}) :
|
|
11220
|
+
next: (A) => C($(void 0, P), A)
|
|
11221
|
+
}) : $(C, P, !0), yt = (C, P = {}) => {
|
|
11222
11222
|
for (const A of C ? cr(C) : a.mount)
|
|
11223
11223
|
a.mount.delete(A), a.array.delete(A), P.keepValue || (be(r, A), be(s, A)), !P.keepError && be(n.errors, A), !P.keepDirty && be(n.dirtyFields, A), !P.keepTouched && be(n.touchedFields, A), !P.keepIsValidating && be(n.validatingFields, A), !t.shouldUnregister && !P.keepDefaultValue && be(o, A);
|
|
11224
11224
|
g.values.next({
|
|
@@ -11229,11 +11229,11 @@ function Ew(e = {}) {
|
|
|
11229
11229
|
}), !P.keepIsValid && y();
|
|
11230
11230
|
}, wt = ({ disabled: C, name: P, field: A, fields: V, value: L }) => {
|
|
11231
11231
|
if (rt(C) && i.mount || C) {
|
|
11232
|
-
const k = C ? void 0 : me(L) ? Po(A ? A._f :
|
|
11232
|
+
const k = C ? void 0 : me(L) ? Po(A ? A._f : H(V, P)._f) : L;
|
|
11233
11233
|
(C || !C && !me(k)) && fe(s, P, k), S(P, k, !1, !1, !0);
|
|
11234
11234
|
}
|
|
11235
11235
|
}, je = (C, P = {}) => {
|
|
11236
|
-
let A =
|
|
11236
|
+
let A = H(r, C);
|
|
11237
11237
|
const V = rt(P.disabled) || rt(t.disabled);
|
|
11238
11238
|
return fe(r, C, {
|
|
11239
11239
|
...A || {},
|
|
@@ -11263,7 +11263,7 @@ function Ew(e = {}) {
|
|
|
11263
11263
|
onBlur: K,
|
|
11264
11264
|
ref: (L) => {
|
|
11265
11265
|
if (L) {
|
|
11266
|
-
je(C, P), A =
|
|
11266
|
+
je(C, P), A = H(r, C);
|
|
11267
11267
|
const k = me(L.value) && L.querySelectorAll && L.querySelectorAll("input,select,textarea")[0] || L, W = yw(k), ne = A._f.refs || [];
|
|
11268
11268
|
if (W ? ne.find((ye) => ye === k) : k === A._f.ref)
|
|
11269
11269
|
return;
|
|
@@ -11274,24 +11274,24 @@ function Ew(e = {}) {
|
|
|
11274
11274
|
refs: [
|
|
11275
11275
|
...ne.filter(No),
|
|
11276
11276
|
k,
|
|
11277
|
-
...Array.isArray(
|
|
11277
|
+
...Array.isArray(H(o, C)) ? [{}] : []
|
|
11278
11278
|
],
|
|
11279
11279
|
ref: { type: k.type, name: C }
|
|
11280
11280
|
} : { ref: k }
|
|
11281
11281
|
}
|
|
11282
11282
|
}), b(C, !1, void 0, k);
|
|
11283
11283
|
} else
|
|
11284
|
-
A =
|
|
11284
|
+
A = H(r, C, {}), A._f && (A._f.mount = !1), (t.shouldUnregister || P.shouldUnregister) && !(lw(a.array, C) && i.action) && a.unMount.add(C);
|
|
11285
11285
|
}
|
|
11286
11286
|
};
|
|
11287
11287
|
}, Ce = () => t.shouldFocusError && Pn(r, te, a.mount), bt = (C) => {
|
|
11288
11288
|
rt(C) && (g.state.next({ disabled: C }), Pn(r, (P, A) => {
|
|
11289
|
-
const V =
|
|
11289
|
+
const V = H(r, A);
|
|
11290
11290
|
V && (P.disabled = V._f.disabled || C, Array.isArray(V._f.refs) && V._f.refs.forEach((L) => {
|
|
11291
11291
|
L.disabled = V._f.disabled || C;
|
|
11292
11292
|
}));
|
|
11293
11293
|
}, 0, !1));
|
|
11294
|
-
},
|
|
11294
|
+
}, $t = (C, P) => async (A) => {
|
|
11295
11295
|
let V;
|
|
11296
11296
|
if (A && (A.preventDefault && A.preventDefault(), A.persist && A.persist()), t.disabled) {
|
|
11297
11297
|
P && await P({ ...n.errors }, A);
|
|
@@ -11304,7 +11304,7 @@ function Ew(e = {}) {
|
|
|
11304
11304
|
const { errors: k, values: W } = await M();
|
|
11305
11305
|
n.errors = k, L = W;
|
|
11306
11306
|
} else
|
|
11307
|
-
await
|
|
11307
|
+
await z(r);
|
|
11308
11308
|
if (be(n.errors, "root"), _e(n.errors)) {
|
|
11309
11309
|
g.state.next({
|
|
11310
11310
|
errors: {}
|
|
@@ -11325,7 +11325,7 @@ function Ew(e = {}) {
|
|
|
11325
11325
|
}), V)
|
|
11326
11326
|
throw V;
|
|
11327
11327
|
}, Ve = (C, P = {}) => {
|
|
11328
|
-
|
|
11328
|
+
H(r, C) && (me(P.defaultValue) ? q(C, Be(H(o, C))) : (q(C, P.defaultValue), fe(o, C, Be(P.defaultValue))), P.keepTouched || be(n.touchedFields, C), P.keepDirty || (be(n.dirtyFields, C), n.isDirty = P.defaultValue ? _(C, Be(H(o, C))) : _()), P.keepError || (be(n.errors, C), d.isValid && y()), g.state.next({ ...n }));
|
|
11329
11329
|
}, Ue = (C, P = {}) => {
|
|
11330
11330
|
const A = C ? Be(C) : o, V = Be(A), L = _e(C), k = L ? o : V;
|
|
11331
11331
|
if (P.keepDefaultValues || (o = A), !P.keepValues) {
|
|
@@ -11335,11 +11335,11 @@ function Ew(e = {}) {
|
|
|
11335
11335
|
...Object.keys(Cn(o, s))
|
|
11336
11336
|
]);
|
|
11337
11337
|
for (const ne of Array.from(W))
|
|
11338
|
-
|
|
11338
|
+
H(n.dirtyFields, ne) ? fe(k, ne, H(s, ne)) : q(ne, H(k, ne));
|
|
11339
11339
|
} else {
|
|
11340
11340
|
if (Us && me(C))
|
|
11341
11341
|
for (const W of a.mount) {
|
|
11342
|
-
const ne =
|
|
11342
|
+
const ne = H(r, W);
|
|
11343
11343
|
if (ne && ne._f) {
|
|
11344
11344
|
const ye = Array.isArray(ne._f.refs) ? ne._f.refs[0] : ne._f.ref;
|
|
11345
11345
|
if (yr(ye)) {
|
|
@@ -11382,16 +11382,16 @@ function Ew(e = {}) {
|
|
|
11382
11382
|
register: je,
|
|
11383
11383
|
unregister: yt,
|
|
11384
11384
|
getFieldState: Pe,
|
|
11385
|
-
handleSubmit:
|
|
11385
|
+
handleSubmit: $t,
|
|
11386
11386
|
setError: Qe,
|
|
11387
11387
|
_executeSchema: M,
|
|
11388
|
-
_getWatch:
|
|
11388
|
+
_getWatch: $,
|
|
11389
11389
|
_getDirty: _,
|
|
11390
11390
|
_updateValid: y,
|
|
11391
11391
|
_removeUnmounted: Z,
|
|
11392
11392
|
_updateFieldArray: x,
|
|
11393
11393
|
_updateDisabledField: wt,
|
|
11394
|
-
_getFieldArray:
|
|
11394
|
+
_getFieldArray: F,
|
|
11395
11395
|
_reset: Ue,
|
|
11396
11396
|
_resetDefaultValues: () => st(t.defaultValues) && t.defaultValues().then((C) => {
|
|
11397
11397
|
De(C, t.resetOptions), g.state.next({
|
|
@@ -11447,7 +11447,7 @@ function Ew(e = {}) {
|
|
|
11447
11447
|
},
|
|
11448
11448
|
trigger: ue,
|
|
11449
11449
|
register: je,
|
|
11450
|
-
handleSubmit:
|
|
11450
|
+
handleSubmit: $t,
|
|
11451
11451
|
watch: kt,
|
|
11452
11452
|
setValue: q,
|
|
11453
11453
|
getValues: oe,
|
|
@@ -11457,7 +11457,7 @@ function Ew(e = {}) {
|
|
|
11457
11457
|
unregister: yt,
|
|
11458
11458
|
setError: Qe,
|
|
11459
11459
|
setFocus: (C, P = {}) => {
|
|
11460
|
-
const A =
|
|
11460
|
+
const A = H(r, C), V = A && A._f;
|
|
11461
11461
|
if (V) {
|
|
11462
11462
|
const L = V.refs ? V.refs[0] : V.ref;
|
|
11463
11463
|
L.focus && (L.focus(), P.shouldSelect && st(L.select) && L.select());
|
|
@@ -11587,11 +11587,11 @@ var _w = "DismissableLayer", fs = "dismissableLayer.update", Fw = "dismissableLa
|
|
|
11587
11587
|
onDismiss: a,
|
|
11588
11588
|
...c
|
|
11589
11589
|
} = e, l = u.useContext(Fu), [d, g] = u.useState(null), h = (d == null ? void 0 : d.ownerDocument) ?? (globalThis == null ? void 0 : globalThis.document), [, f] = u.useState({}), v = Mn(t, (R) => g(R)), m = Array.from(l.layers), [y] = [...l.layersWithOutsidePointerEventsDisabled].slice(-1), w = m.indexOf(y), x = d ? m.indexOf(d) : -1, E = l.layersWithOutsidePointerEventsDisabled.size > 0, N = x >= w, b = kw((R) => {
|
|
11590
|
-
const M = R.target, j = [...l.branches].some((
|
|
11590
|
+
const M = R.target, j = [...l.branches].some((z) => z.contains(M));
|
|
11591
11591
|
!N || j || (o == null || o(R), i == null || i(R), R.defaultPrevented || a == null || a());
|
|
11592
|
-
}, h), S =
|
|
11592
|
+
}, h), S = $w((R) => {
|
|
11593
11593
|
const M = R.target;
|
|
11594
|
-
[...l.branches].some((
|
|
11594
|
+
[...l.branches].some((z) => z.contains(M)) || (s == null || s(R), i == null || i(R), R.defaultPrevented || a == null || a());
|
|
11595
11595
|
}, h);
|
|
11596
11596
|
return Dl((R) => {
|
|
11597
11597
|
x === l.layers.size - 1 && (r == null || r(R), !R.defaultPrevented && a && (R.preventDefault(), a()));
|
|
@@ -11666,7 +11666,7 @@ function kw(e, t = globalThis == null ? void 0 : globalThis.document) {
|
|
|
11666
11666
|
onPointerDownCapture: () => r.current = !0
|
|
11667
11667
|
};
|
|
11668
11668
|
}
|
|
11669
|
-
function
|
|
11669
|
+
function $w(e, t = globalThis == null ? void 0 : globalThis.document) {
|
|
11670
11670
|
const n = Ne(e), r = u.useRef(!1);
|
|
11671
11671
|
return u.useEffect(() => {
|
|
11672
11672
|
const o = (s) => {
|
|
@@ -11688,7 +11688,7 @@ function Du(e, t, n, { discrete: r }) {
|
|
|
11688
11688
|
const o = n.originalEvent.target, s = new CustomEvent(e, { bubbles: !1, cancelable: !0, detail: n });
|
|
11689
11689
|
t && o.addEventListener(e, t, { once: !0 }), r ? Aw(o, s) : o.dispatchEvent(s);
|
|
11690
11690
|
}
|
|
11691
|
-
const
|
|
11691
|
+
const Iw = ["top", "right", "bottom", "left"], _t = Math.min, Me = Math.max, xr = Math.round, Zn = Math.floor, at = (e) => ({
|
|
11692
11692
|
x: e,
|
|
11693
11693
|
y: e
|
|
11694
11694
|
}), Lw = {
|
|
@@ -11971,12 +11971,12 @@ const Ww = (e) => ({
|
|
|
11971
11971
|
}, f = Ys(o), v = Xs(f), m = await i.getDimensions(l), y = f === "y", w = y ? "top" : "left", x = y ? "bottom" : "right", E = y ? "clientHeight" : "clientWidth", N = s.reference[v] + s.reference[f] - h[f] - s.floating[v], b = h[f] - s.reference[f], S = await (i.getOffsetParent == null ? void 0 : i.getOffsetParent(l));
|
|
11972
11972
|
let R = S ? S[E] : 0;
|
|
11973
11973
|
(!R || !await (i.isElement == null ? void 0 : i.isElement(S))) && (R = a.floating[E] || s.floating[v]);
|
|
11974
|
-
const M = N / 2 - b / 2, j = R / 2 - m[v] / 2 - 1,
|
|
11974
|
+
const M = N / 2 - b / 2, j = R / 2 - m[v] / 2 - 1, z = _t(g[w], j), Z = _t(g[x], j), _ = z, $ = R - m[v] - Z, F = R / 2 - m[v] / 2 + M, G = ps(_, F, $), B = !c.arrow && gn(o) != null && F !== G && s.reference[v] / 2 - (F < _ ? z : Z) - m[v] / 2 < 0, q = B ? F < _ ? F - _ : F - $ : 0;
|
|
11975
11975
|
return {
|
|
11976
11976
|
[f]: h[f] + q,
|
|
11977
11977
|
data: {
|
|
11978
11978
|
[f]: G,
|
|
11979
|
-
centerOffset:
|
|
11979
|
+
centerOffset: F - G - q,
|
|
11980
11980
|
...B && {
|
|
11981
11981
|
alignmentOffset: q
|
|
11982
11982
|
}
|
|
@@ -12011,33 +12011,33 @@ const Ww = (e) => ({
|
|
|
12011
12011
|
const w = vt(o), x = Ft(a), E = vt(a) === a, N = await (c.isRTL == null ? void 0 : c.isRTL(l.floating)), b = h || (E || !m ? [Cr(a)] : zw(a)), S = v !== "none";
|
|
12012
12012
|
!h && S && b.push(...jw(a, m, v, N));
|
|
12013
12013
|
const R = [a, ...b], M = await An(t, y), j = [];
|
|
12014
|
-
let
|
|
12014
|
+
let z = ((r = s.flip) == null ? void 0 : r.overflows) || [];
|
|
12015
12015
|
if (d && j.push(M[w]), g) {
|
|
12016
|
-
const
|
|
12017
|
-
j.push(M[
|
|
12016
|
+
const F = Bw(o, i, N);
|
|
12017
|
+
j.push(M[F[0]], M[F[1]]);
|
|
12018
12018
|
}
|
|
12019
|
-
if (
|
|
12019
|
+
if (z = [...z, {
|
|
12020
12020
|
placement: o,
|
|
12021
12021
|
overflows: j
|
|
12022
|
-
}], !j.every((
|
|
12022
|
+
}], !j.every((F) => F <= 0)) {
|
|
12023
12023
|
var Z, _;
|
|
12024
|
-
const
|
|
12024
|
+
const F = (((Z = s.flip) == null ? void 0 : Z.index) || 0) + 1, G = R[F];
|
|
12025
12025
|
if (G)
|
|
12026
12026
|
return {
|
|
12027
12027
|
data: {
|
|
12028
|
-
index:
|
|
12029
|
-
overflows:
|
|
12028
|
+
index: F,
|
|
12029
|
+
overflows: z
|
|
12030
12030
|
},
|
|
12031
12031
|
reset: {
|
|
12032
12032
|
placement: G
|
|
12033
12033
|
}
|
|
12034
12034
|
};
|
|
12035
|
-
let B = (_ =
|
|
12035
|
+
let B = (_ = z.filter((q) => q.overflows[0] <= 0).sort((q, K) => q.overflows[1] - K.overflows[1])[0]) == null ? void 0 : _.placement;
|
|
12036
12036
|
if (!B)
|
|
12037
12037
|
switch (f) {
|
|
12038
12038
|
case "bestFit": {
|
|
12039
|
-
var
|
|
12040
|
-
const q = (
|
|
12039
|
+
var $;
|
|
12040
|
+
const q = ($ = z.filter((K) => {
|
|
12041
12041
|
if (S) {
|
|
12042
12042
|
const te = Ft(K.placement);
|
|
12043
12043
|
return te === x || // Create a bias to the `y` side axis due to horizontal
|
|
@@ -12045,7 +12045,7 @@ const Ww = (e) => ({
|
|
|
12045
12045
|
te === "y";
|
|
12046
12046
|
}
|
|
12047
12047
|
return !0;
|
|
12048
|
-
}).map((K) => [K.placement, K.overflows.filter((te) => te > 0).reduce((te, ue) => te + ue, 0)]).sort((K, te) => K[1] - te[1])[0]) == null ? void 0 :
|
|
12048
|
+
}).map((K) => [K.placement, K.overflows.filter((te) => te > 0).reduce((te, ue) => te + ue, 0)]).sort((K, te) => K[1] - te[1])[0]) == null ? void 0 : $[0];
|
|
12049
12049
|
q && (B = q);
|
|
12050
12050
|
break;
|
|
12051
12051
|
}
|
|
@@ -12073,7 +12073,7 @@ function va(e, t) {
|
|
|
12073
12073
|
};
|
|
12074
12074
|
}
|
|
12075
12075
|
function ya(e) {
|
|
12076
|
-
return
|
|
12076
|
+
return Iw.some((t) => e[t] >= 0);
|
|
12077
12077
|
}
|
|
12078
12078
|
const Kw = function(e) {
|
|
12079
12079
|
return e === void 0 && (e = {}), {
|
|
@@ -12288,8 +12288,8 @@ const Yw = function(e) {
|
|
|
12288
12288
|
const x = m - d.top - d.bottom, E = v - d.left - d.right, N = _t(m - d[y], x), b = _t(v - d[w], E), S = !t.middlewareData.shift;
|
|
12289
12289
|
let R = N, M = b;
|
|
12290
12290
|
if ((n = t.middlewareData.shift) != null && n.enabled.x && (M = E), (r = t.middlewareData.shift) != null && r.enabled.y && (R = x), S && !h) {
|
|
12291
|
-
const
|
|
12292
|
-
f ? M = v - 2 * (
|
|
12291
|
+
const z = Me(d.left, 0), Z = Me(d.right, 0), _ = Me(d.top, 0), $ = Me(d.bottom, 0);
|
|
12292
|
+
f ? M = v - 2 * (z !== 0 || Z !== 0 ? z + Z : Me(d.left, d.right)) : R = m - 2 * (_ !== 0 || $ !== 0 ? _ + $ : Me(d.top, d.bottom));
|
|
12293
12293
|
}
|
|
12294
12294
|
await c({
|
|
12295
12295
|
...t,
|
|
@@ -12311,7 +12311,7 @@ function Ur() {
|
|
|
12311
12311
|
function mn(e) {
|
|
12312
12312
|
return ku(e) ? (e.nodeName || "").toLowerCase() : "#document";
|
|
12313
12313
|
}
|
|
12314
|
-
function
|
|
12314
|
+
function $e(e) {
|
|
12315
12315
|
var t;
|
|
12316
12316
|
return (e == null || (t = e.ownerDocument) == null ? void 0 : t.defaultView) || window;
|
|
12317
12317
|
}
|
|
@@ -12320,18 +12320,18 @@ function ct(e) {
|
|
|
12320
12320
|
return (t = (ku(e) ? e.ownerDocument : e.document) || window.document) == null ? void 0 : t.documentElement;
|
|
12321
12321
|
}
|
|
12322
12322
|
function ku(e) {
|
|
12323
|
-
return Ur() ? e instanceof Node || e instanceof
|
|
12323
|
+
return Ur() ? e instanceof Node || e instanceof $e(e).Node : !1;
|
|
12324
12324
|
}
|
|
12325
12325
|
function Xe(e) {
|
|
12326
|
-
return Ur() ? e instanceof Element || e instanceof
|
|
12326
|
+
return Ur() ? e instanceof Element || e instanceof $e(e).Element : !1;
|
|
12327
12327
|
}
|
|
12328
12328
|
function lt(e) {
|
|
12329
|
-
return Ur() ? e instanceof HTMLElement || e instanceof
|
|
12329
|
+
return Ur() ? e instanceof HTMLElement || e instanceof $e(e).HTMLElement : !1;
|
|
12330
12330
|
}
|
|
12331
12331
|
function wa(e) {
|
|
12332
|
-
return !Ur() || typeof ShadowRoot > "u" ? !1 : e instanceof ShadowRoot || e instanceof
|
|
12332
|
+
return !Ur() || typeof ShadowRoot > "u" ? !1 : e instanceof ShadowRoot || e instanceof $e(e).ShadowRoot;
|
|
12333
12333
|
}
|
|
12334
|
-
function
|
|
12334
|
+
function $n(e) {
|
|
12335
12335
|
const {
|
|
12336
12336
|
overflow: t,
|
|
12337
12337
|
overflowX: n,
|
|
@@ -12374,7 +12374,7 @@ function sn(e) {
|
|
|
12374
12374
|
return ["html", "body", "#document"].includes(mn(e));
|
|
12375
12375
|
}
|
|
12376
12376
|
function Ye(e) {
|
|
12377
|
-
return
|
|
12377
|
+
return $e(e).getComputedStyle(e);
|
|
12378
12378
|
}
|
|
12379
12379
|
function Wr(e) {
|
|
12380
12380
|
return Xe(e) ? {
|
|
@@ -12397,24 +12397,24 @@ function Ot(e) {
|
|
|
12397
12397
|
);
|
|
12398
12398
|
return wa(t) ? t.host : t;
|
|
12399
12399
|
}
|
|
12400
|
-
function
|
|
12400
|
+
function $u(e) {
|
|
12401
12401
|
const t = Ot(e);
|
|
12402
|
-
return sn(t) ? e.ownerDocument ? e.ownerDocument.body : e.body : lt(t) &&
|
|
12402
|
+
return sn(t) ? e.ownerDocument ? e.ownerDocument.body : e.body : lt(t) && $n(t) ? t : $u(t);
|
|
12403
12403
|
}
|
|
12404
12404
|
function _n(e, t, n) {
|
|
12405
12405
|
var r;
|
|
12406
12406
|
t === void 0 && (t = []), n === void 0 && (n = !0);
|
|
12407
|
-
const o =
|
|
12407
|
+
const o = $u(e), s = o === ((r = e.ownerDocument) == null ? void 0 : r.body), i = $e(o);
|
|
12408
12408
|
if (s) {
|
|
12409
12409
|
const a = ms(i);
|
|
12410
|
-
return t.concat(i, i.visualViewport || [],
|
|
12410
|
+
return t.concat(i, i.visualViewport || [], $n(o) ? o : [], a && n ? _n(a) : []);
|
|
12411
12411
|
}
|
|
12412
12412
|
return t.concat(o, _n(o, [], n));
|
|
12413
12413
|
}
|
|
12414
12414
|
function ms(e) {
|
|
12415
12415
|
return e.parent && Object.getPrototypeOf(e.parent) ? e.frameElement : null;
|
|
12416
12416
|
}
|
|
12417
|
-
function
|
|
12417
|
+
function Iu(e) {
|
|
12418
12418
|
const t = Ye(e);
|
|
12419
12419
|
let n = parseFloat(t.width) || 0, r = parseFloat(t.height) || 0;
|
|
12420
12420
|
const o = lt(e), s = o ? e.offsetWidth : n, i = o ? e.offsetHeight : r, a = xr(n) !== s || xr(r) !== i;
|
|
@@ -12435,7 +12435,7 @@ function on(e) {
|
|
|
12435
12435
|
width: r,
|
|
12436
12436
|
height: o,
|
|
12437
12437
|
$: s
|
|
12438
|
-
} =
|
|
12438
|
+
} = Iu(t);
|
|
12439
12439
|
let i = (s ? xr(n.width) : n.width) / r, a = (s ? xr(n.height) : n.height) / o;
|
|
12440
12440
|
return (!i || !Number.isFinite(i)) && (i = 1), (!a || !Number.isFinite(a)) && (a = 1), {
|
|
12441
12441
|
x: i,
|
|
@@ -12444,14 +12444,14 @@ function on(e) {
|
|
|
12444
12444
|
}
|
|
12445
12445
|
const nb = /* @__PURE__ */ at(0);
|
|
12446
12446
|
function Lu(e) {
|
|
12447
|
-
const t =
|
|
12447
|
+
const t = $e(e);
|
|
12448
12448
|
return !Zs() || !t.visualViewport ? nb : {
|
|
12449
12449
|
x: t.visualViewport.offsetLeft,
|
|
12450
12450
|
y: t.visualViewport.offsetTop
|
|
12451
12451
|
};
|
|
12452
12452
|
}
|
|
12453
12453
|
function rb(e, t, n) {
|
|
12454
|
-
return t === void 0 && (t = !1), !n || t && n !==
|
|
12454
|
+
return t === void 0 && (t = !1), !n || t && n !== $e(e) ? !1 : t;
|
|
12455
12455
|
}
|
|
12456
12456
|
function Wt(e, t, n, r) {
|
|
12457
12457
|
t === void 0 && (t = !1), n === void 0 && (n = !1);
|
|
@@ -12461,11 +12461,11 @@ function Wt(e, t, n, r) {
|
|
|
12461
12461
|
const a = rb(s, n, r) ? Lu(s) : at(0);
|
|
12462
12462
|
let c = (o.left + a.x) / i.x, l = (o.top + a.y) / i.y, d = o.width / i.x, g = o.height / i.y;
|
|
12463
12463
|
if (s) {
|
|
12464
|
-
const h =
|
|
12464
|
+
const h = $e(s), f = r && Xe(r) ? $e(r) : r;
|
|
12465
12465
|
let v = h, m = ms(v);
|
|
12466
12466
|
for (; m && r && f !== v; ) {
|
|
12467
12467
|
const y = on(m), w = m.getBoundingClientRect(), x = Ye(m), E = w.left + (m.clientLeft + parseFloat(x.paddingLeft)) * y.x, N = w.top + (m.clientTop + parseFloat(x.paddingTop)) * y.y;
|
|
12468
|
-
c *= y.x, l *= y.y, d *= y.x, g *= y.y, c += E, l += N, v =
|
|
12468
|
+
c *= y.x, l *= y.y, d *= y.x, g *= y.y, c += E, l += N, v = $e(m), m = ms(v);
|
|
12469
12469
|
}
|
|
12470
12470
|
}
|
|
12471
12471
|
return Sr({
|
|
@@ -12505,7 +12505,7 @@ function ob(e) {
|
|
|
12505
12505
|
scrollTop: 0
|
|
12506
12506
|
}, l = at(1);
|
|
12507
12507
|
const d = at(0), g = lt(r);
|
|
12508
|
-
if ((g || !g && !s) && ((mn(r) !== "body" ||
|
|
12508
|
+
if ((g || !g && !s) && ((mn(r) !== "body" || $n(i)) && (c = Wr(r)), lt(r))) {
|
|
12509
12509
|
const f = Wt(r);
|
|
12510
12510
|
l = on(r), d.x = f.x + r.clientLeft, d.y = f.y + r.clientTop;
|
|
12511
12511
|
}
|
|
@@ -12532,7 +12532,7 @@ function ib(e) {
|
|
|
12532
12532
|
};
|
|
12533
12533
|
}
|
|
12534
12534
|
function ab(e, t) {
|
|
12535
|
-
const n =
|
|
12535
|
+
const n = $e(e), r = ct(e), o = n.visualViewport;
|
|
12536
12536
|
let s = r.clientWidth, i = r.clientHeight, a = 0, c = 0;
|
|
12537
12537
|
if (o) {
|
|
12538
12538
|
s = o.width, i = o.height;
|
|
@@ -12587,7 +12587,7 @@ function cb(e, t) {
|
|
|
12587
12587
|
let i = s ? Ot(e) : e;
|
|
12588
12588
|
for (; Xe(i) && !sn(i); ) {
|
|
12589
12589
|
const a = Ye(i), c = Js(i);
|
|
12590
|
-
!c && a.position === "fixed" && (o = null), (s ? !c && !o : !c && a.position === "static" && !!o && ["absolute", "fixed"].includes(o.position) ||
|
|
12590
|
+
!c && a.position === "fixed" && (o = null), (s ? !c && !o : !c && a.position === "static" && !!o && ["absolute", "fixed"].includes(o.position) || $n(i) && !c && Bu(e, i)) ? r = r.filter((d) => d !== i) : o = a, i = Ot(i);
|
|
12591
12591
|
}
|
|
12592
12592
|
return t.set(e, r), r;
|
|
12593
12593
|
}
|
|
@@ -12613,7 +12613,7 @@ function db(e) {
|
|
|
12613
12613
|
const {
|
|
12614
12614
|
width: t,
|
|
12615
12615
|
height: n
|
|
12616
|
-
} =
|
|
12616
|
+
} = Iu(e);
|
|
12617
12617
|
return {
|
|
12618
12618
|
width: t,
|
|
12619
12619
|
height: n
|
|
@@ -12627,7 +12627,7 @@ function fb(e, t, n) {
|
|
|
12627
12627
|
};
|
|
12628
12628
|
const c = at(0);
|
|
12629
12629
|
if (r || !r && !s)
|
|
12630
|
-
if ((mn(t) !== "body" ||
|
|
12630
|
+
if ((mn(t) !== "body" || $n(o)) && (a = Wr(t)), r) {
|
|
12631
12631
|
const h = Wt(t, !0, s, t);
|
|
12632
12632
|
c.x = h.x + t.clientLeft, c.y = h.y + t.clientTop;
|
|
12633
12633
|
} else o && (c.x = ei(o));
|
|
@@ -12651,7 +12651,7 @@ function xa(e, t) {
|
|
|
12651
12651
|
return ct(e) === n && (n = n.ownerDocument.body), n;
|
|
12652
12652
|
}
|
|
12653
12653
|
function zu(e, t) {
|
|
12654
|
-
const n =
|
|
12654
|
+
const n = $e(e);
|
|
12655
12655
|
if (Gr(e))
|
|
12656
12656
|
return n;
|
|
12657
12657
|
if (!lt(e)) {
|
|
@@ -12861,7 +12861,7 @@ function Eb(e) {
|
|
|
12861
12861
|
K !== S.current && (S.current = K, m(K));
|
|
12862
12862
|
}, []), E = u.useCallback((K) => {
|
|
12863
12863
|
K !== R.current && (R.current = K, w(K));
|
|
12864
|
-
}, []), N = s || v, b = i || y, S = u.useRef(null), R = u.useRef(null), M = u.useRef(d), j = c != null,
|
|
12864
|
+
}, []), N = s || v, b = i || y, S = u.useRef(null), R = u.useRef(null), M = u.useRef(d), j = c != null, z = Ao(c), Z = Ao(o), _ = Ao(l), $ = u.useCallback(() => {
|
|
12865
12865
|
if (!S.current || !R.current)
|
|
12866
12866
|
return;
|
|
12867
12867
|
const K = {
|
|
@@ -12878,7 +12878,7 @@ function Eb(e) {
|
|
|
12878
12878
|
// setting it to `true` when `open === false` (must be specified).
|
|
12879
12879
|
isPositioned: _.current !== !1
|
|
12880
12880
|
};
|
|
12881
|
-
|
|
12881
|
+
F.current && !Rr(M.current, ue) && (M.current = ue, Nr.flushSync(() => {
|
|
12882
12882
|
g(ue);
|
|
12883
12883
|
}));
|
|
12884
12884
|
});
|
|
@@ -12889,16 +12889,16 @@ function Eb(e) {
|
|
|
12889
12889
|
isPositioned: !1
|
|
12890
12890
|
})));
|
|
12891
12891
|
}, [l]);
|
|
12892
|
-
const
|
|
12893
|
-
dr(() => (
|
|
12894
|
-
|
|
12892
|
+
const F = u.useRef(!1);
|
|
12893
|
+
dr(() => (F.current = !0, () => {
|
|
12894
|
+
F.current = !1;
|
|
12895
12895
|
}), []), dr(() => {
|
|
12896
12896
|
if (N && (S.current = N), b && (R.current = b), N && b) {
|
|
12897
|
-
if (
|
|
12898
|
-
return
|
|
12899
|
-
|
|
12897
|
+
if (z.current)
|
|
12898
|
+
return z.current(N, b, $);
|
|
12899
|
+
$();
|
|
12900
12900
|
}
|
|
12901
|
-
}, [N, b,
|
|
12901
|
+
}, [N, b, $, z, j]);
|
|
12902
12902
|
const G = u.useMemo(() => ({
|
|
12903
12903
|
reference: S,
|
|
12904
12904
|
floating: R,
|
|
@@ -12930,11 +12930,11 @@ function Eb(e) {
|
|
|
12930
12930
|
}, [n, a, B.floating, d.x, d.y]);
|
|
12931
12931
|
return u.useMemo(() => ({
|
|
12932
12932
|
...d,
|
|
12933
|
-
update:
|
|
12933
|
+
update: $,
|
|
12934
12934
|
refs: G,
|
|
12935
12935
|
elements: B,
|
|
12936
12936
|
floatingStyles: q
|
|
12937
|
-
}), [d,
|
|
12937
|
+
}), [d, $, G, B, q]);
|
|
12938
12938
|
}
|
|
12939
12939
|
const Nb = (e) => {
|
|
12940
12940
|
function t(n) {
|
|
@@ -13002,7 +13002,7 @@ var Mb = [
|
|
|
13002
13002
|
return typeof window < "u" && (window[Symbol.for("radix-ui")] = !0), /* @__PURE__ */ p(a, { ...i, ref: o });
|
|
13003
13003
|
});
|
|
13004
13004
|
return n.displayName = `Primitive.${t}`, { ...e, [t]: n };
|
|
13005
|
-
}, {}),
|
|
13005
|
+
}, {}), $b = "Arrow", ju = u.forwardRef((e, t) => {
|
|
13006
13006
|
const { children: n, width: r = 10, height: o = 5, ...s } = e;
|
|
13007
13007
|
return /* @__PURE__ */ p(
|
|
13008
13008
|
kb.svg,
|
|
@@ -13017,8 +13017,8 @@ var Mb = [
|
|
|
13017
13017
|
}
|
|
13018
13018
|
);
|
|
13019
13019
|
});
|
|
13020
|
-
ju.displayName =
|
|
13021
|
-
var
|
|
13020
|
+
ju.displayName = $b;
|
|
13021
|
+
var Ib = ju;
|
|
13022
13022
|
function Ra(e, t) {
|
|
13023
13023
|
if (typeof e == "function")
|
|
13024
13024
|
return e(t);
|
|
@@ -13082,7 +13082,7 @@ var Yu = "PopperAnchor", Ju = u.forwardRef(
|
|
|
13082
13082
|
Ju.displayName = Yu;
|
|
13083
13083
|
var ni = "PopperContent", [zb, Hb] = Wu(ni), Zu = u.forwardRef(
|
|
13084
13084
|
(e, t) => {
|
|
13085
|
-
var wt, je, Ce, bt,
|
|
13085
|
+
var wt, je, Ce, bt, $t, Ve;
|
|
13086
13086
|
const {
|
|
13087
13087
|
__scopePopper: n,
|
|
13088
13088
|
side: r = "bottom",
|
|
@@ -13098,12 +13098,12 @@ var ni = "PopperContent", [zb, Hb] = Wu(ni), Zu = u.forwardRef(
|
|
|
13098
13098
|
updatePositionStrategy: f = "optimized",
|
|
13099
13099
|
onPlaced: v,
|
|
13100
13100
|
...m
|
|
13101
|
-
} = e, y = Ku(ni, n), [w, x] = u.useState(null), E = Uu(t, (Ue) => x(Ue)), [N, b] = u.useState(null), S = El(N), R = (S == null ? void 0 : S.width) ?? 0, M = (S == null ? void 0 : S.height) ?? 0, j = r + (s !== "center" ? "-" + s : ""),
|
|
13102
|
-
padding:
|
|
13101
|
+
} = e, y = Ku(ni, n), [w, x] = u.useState(null), E = Uu(t, (Ue) => x(Ue)), [N, b] = u.useState(null), S = El(N), R = (S == null ? void 0 : S.width) ?? 0, M = (S == null ? void 0 : S.height) ?? 0, j = r + (s !== "center" ? "-" + s : ""), z = typeof d == "number" ? d : { top: 0, right: 0, bottom: 0, left: 0, ...d }, Z = Array.isArray(l) ? l : [l], _ = Z.length > 0, $ = {
|
|
13102
|
+
padding: z,
|
|
13103
13103
|
boundary: Z.filter(Ub),
|
|
13104
13104
|
// with `strategy: 'fixed'`, this is the only way to get it to respect boundaries
|
|
13105
13105
|
altBoundary: _
|
|
13106
|
-
}, { refs:
|
|
13106
|
+
}, { refs: F, floatingStyles: G, placement: B, isPositioned: q, middlewareData: K } = Eb({
|
|
13107
13107
|
// default to `fixed` strategy so users don't have to pick and we also avoid focus scroll issues
|
|
13108
13108
|
strategy: "fixed",
|
|
13109
13109
|
placement: j,
|
|
@@ -13119,19 +13119,19 @@ var ni = "PopperContent", [zb, Hb] = Wu(ni), Zu = u.forwardRef(
|
|
|
13119
13119
|
mainAxis: !0,
|
|
13120
13120
|
crossAxis: !1,
|
|
13121
13121
|
limiter: g === "partial" ? Ab() : void 0,
|
|
13122
|
-
|
|
13122
|
+
...$
|
|
13123
13123
|
}),
|
|
13124
|
-
c && _b({
|
|
13124
|
+
c && _b({ ...$ }),
|
|
13125
13125
|
Fb({
|
|
13126
|
-
|
|
13126
|
+
...$,
|
|
13127
13127
|
apply: ({ elements: Ue, rects: De, availableWidth: xt, availableHeight: Vn }) => {
|
|
13128
|
-
const { width:
|
|
13129
|
-
P.setProperty("--radix-popper-available-width", `${xt}px`), P.setProperty("--radix-popper-available-height", `${Vn}px`), P.setProperty("--radix-popper-anchor-width", `${
|
|
13128
|
+
const { width: It, height: C } = De.reference, P = Ue.floating.style;
|
|
13129
|
+
P.setProperty("--radix-popper-available-width", `${xt}px`), P.setProperty("--radix-popper-available-height", `${Vn}px`), P.setProperty("--radix-popper-anchor-width", `${It}px`), P.setProperty("--radix-popper-anchor-height", `${C}px`);
|
|
13130
13130
|
}
|
|
13131
13131
|
}),
|
|
13132
13132
|
N && Db({ element: N, padding: a }),
|
|
13133
13133
|
Gb({ arrowWidth: R, arrowHeight: M }),
|
|
13134
|
-
h && Ob({ strategy: "referenceHidden",
|
|
13134
|
+
h && Ob({ strategy: "referenceHidden", ...$ })
|
|
13135
13135
|
]
|
|
13136
13136
|
}), [te, ue] = td(B), oe = Ne(v);
|
|
13137
13137
|
Le(() => {
|
|
@@ -13143,7 +13143,7 @@ var ni = "PopperContent", [zb, Hb] = Wu(ni), Zu = u.forwardRef(
|
|
|
13143
13143
|
}, [w]), /* @__PURE__ */ p(
|
|
13144
13144
|
"div",
|
|
13145
13145
|
{
|
|
13146
|
-
ref:
|
|
13146
|
+
ref: F.setFloating,
|
|
13147
13147
|
"data-radix-popper-content-wrapper": "",
|
|
13148
13148
|
style: {
|
|
13149
13149
|
...G,
|
|
@@ -13153,7 +13153,7 @@ var ni = "PopperContent", [zb, Hb] = Wu(ni), Zu = u.forwardRef(
|
|
|
13153
13153
|
zIndex: kt,
|
|
13154
13154
|
"--radix-popper-transform-origin": [
|
|
13155
13155
|
(bt = K.transformOrigin) == null ? void 0 : bt.x,
|
|
13156
|
-
(
|
|
13156
|
+
($t = K.transformOrigin) == null ? void 0 : $t.y
|
|
13157
13157
|
].join(" "),
|
|
13158
13158
|
// hide the content if using the hide middleware and should be hidden
|
|
13159
13159
|
// set visibility to hidden and disable pointer events so the UI behaves
|
|
@@ -13230,7 +13230,7 @@ var Qu = "PopperArrow", jb = {
|
|
|
13230
13230
|
visibility: s.shouldHideArrow ? "hidden" : void 0
|
|
13231
13231
|
},
|
|
13232
13232
|
children: /* @__PURE__ */ p(
|
|
13233
|
-
|
|
13233
|
+
Ib,
|
|
13234
13234
|
{
|
|
13235
13235
|
...o,
|
|
13236
13236
|
ref: n,
|
|
@@ -13398,7 +13398,7 @@ var tx = rd, [qr, Dx] = Mt("Tooltip", [
|
|
|
13398
13398
|
);
|
|
13399
13399
|
};
|
|
13400
13400
|
sd.displayName = od;
|
|
13401
|
-
var Xr = "Tooltip", [ox,
|
|
13401
|
+
var Xr = "Tooltip", [ox, In] = qr(Xr), id = (e) => {
|
|
13402
13402
|
const {
|
|
13403
13403
|
__scopeTooltip: t,
|
|
13404
13404
|
children: n,
|
|
@@ -13449,7 +13449,7 @@ var Xr = "Tooltip", [ox, $n] = qr(Xr), id = (e) => {
|
|
|
13449
13449
|
id.displayName = Xr;
|
|
13450
13450
|
var vs = "TooltipTrigger", ad = u.forwardRef(
|
|
13451
13451
|
(e, t) => {
|
|
13452
|
-
const { __scopeTooltip: n, ...r } = e, o =
|
|
13452
|
+
const { __scopeTooltip: n, ...r } = e, o = In(vs, n), s = oi(vs, n), i = Kr(n), a = u.useRef(null), c = Mn(t, a, o.onTriggerChange), l = u.useRef(!1), d = u.useRef(!1), g = u.useCallback(() => l.current = !1, []);
|
|
13453
13453
|
return u.useEffect(() => () => document.removeEventListener("pointerup", g), [g]), /* @__PURE__ */ p(qb, { asChild: !0, ...i, children: /* @__PURE__ */ p(
|
|
13454
13454
|
kn.button,
|
|
13455
13455
|
{
|
|
@@ -13479,17 +13479,17 @@ ad.displayName = vs;
|
|
|
13479
13479
|
var si = "TooltipPortal", [sx, ix] = qr(si, {
|
|
13480
13480
|
forceMount: void 0
|
|
13481
13481
|
}), ld = (e) => {
|
|
13482
|
-
const { __scopeTooltip: t, forceMount: n, children: r, container: o } = e, s =
|
|
13482
|
+
const { __scopeTooltip: t, forceMount: n, children: r, container: o } = e, s = In(si, t);
|
|
13483
13483
|
return /* @__PURE__ */ p(sx, { scope: t, forceMount: n, children: /* @__PURE__ */ p(ri, { present: n || s.open, children: /* @__PURE__ */ p(nd, { asChild: !0, container: o, children: r }) }) });
|
|
13484
13484
|
};
|
|
13485
13485
|
ld.displayName = si;
|
|
13486
13486
|
var an = "TooltipContent", cd = u.forwardRef(
|
|
13487
13487
|
(e, t) => {
|
|
13488
|
-
const n = ix(an, e.__scopeTooltip), { forceMount: r = n.forceMount, side: o = "top", ...s } = e, i =
|
|
13488
|
+
const n = ix(an, e.__scopeTooltip), { forceMount: r = n.forceMount, side: o = "top", ...s } = e, i = In(an, e.__scopeTooltip);
|
|
13489
13489
|
return /* @__PURE__ */ p(ri, { present: r || i.open, children: i.disableHoverableContent ? /* @__PURE__ */ p(ud, { side: o, ...s, ref: t }) : /* @__PURE__ */ p(ax, { side: o, ...s, ref: t }) });
|
|
13490
13490
|
}
|
|
13491
13491
|
), ax = u.forwardRef((e, t) => {
|
|
13492
|
-
const n =
|
|
13492
|
+
const n = In(an, e.__scopeTooltip), r = oi(an, e.__scopeTooltip), o = u.useRef(null), s = Mn(t, o), [i, a] = u.useState(null), { trigger: c, onClose: l } = n, d = o.current, { onPointerInTransitChange: g } = r, h = u.useCallback(() => {
|
|
13493
13493
|
a(null), g(!1);
|
|
13494
13494
|
}, [g]), f = u.useCallback(
|
|
13495
13495
|
(v, m) => {
|
|
@@ -13523,7 +13523,7 @@ var an = "TooltipContent", cd = u.forwardRef(
|
|
|
13523
13523
|
onEscapeKeyDown: s,
|
|
13524
13524
|
onPointerDownOutside: i,
|
|
13525
13525
|
...a
|
|
13526
|
-
} = e, c =
|
|
13526
|
+
} = e, c = In(an, n), l = Kr(n), { onClose: d } = c;
|
|
13527
13527
|
return u.useEffect(() => (document.addEventListener(hs, d), () => document.removeEventListener(hs, d)), [d]), u.useEffect(() => {
|
|
13528
13528
|
if (c.trigger) {
|
|
13529
13529
|
const g = (h) => {
|
|
@@ -13541,7 +13541,7 @@ var an = "TooltipContent", cd = u.forwardRef(
|
|
|
13541
13541
|
onPointerDownOutside: i,
|
|
13542
13542
|
onFocusOutside: (g) => g.preventDefault(),
|
|
13543
13543
|
onDismiss: d,
|
|
13544
|
-
children: /* @__PURE__ */
|
|
13544
|
+
children: /* @__PURE__ */ O(
|
|
13545
13545
|
Kb,
|
|
13546
13546
|
{
|
|
13547
13547
|
"data-state": c.stateAttribute,
|
|
@@ -13685,7 +13685,7 @@ const xx = vx, Cx = yx, Sx = wx, pd = u.forwardRef(({ className: e, sideOffset:
|
|
|
13685
13685
|
pd.displayName = fd.displayName;
|
|
13686
13686
|
const Ea = ({ className: e, children: t, content: n, side: r }) => {
|
|
13687
13687
|
const [o, s] = Q(!1);
|
|
13688
|
-
return /* @__PURE__ */ p(xx, { delayDuration: 0, children: /* @__PURE__ */
|
|
13688
|
+
return /* @__PURE__ */ p(xx, { delayDuration: 0, children: /* @__PURE__ */ O(Cx, { open: o, children: [
|
|
13689
13689
|
/* @__PURE__ */ p(Sx, { asChild: !0, children: /* @__PURE__ */ p(
|
|
13690
13690
|
"button",
|
|
13691
13691
|
{
|
|
@@ -13747,7 +13747,7 @@ Ln.displayName = "PaginationLink";
|
|
|
13747
13747
|
const li = ({
|
|
13748
13748
|
className: e,
|
|
13749
13749
|
...t
|
|
13750
|
-
}) => /* @__PURE__ */
|
|
13750
|
+
}) => /* @__PURE__ */ O(
|
|
13751
13751
|
Ln,
|
|
13752
13752
|
{
|
|
13753
13753
|
"aria-label": "Go to previous page",
|
|
@@ -13764,7 +13764,7 @@ li.displayName = "PaginationPrevious";
|
|
|
13764
13764
|
const ci = ({
|
|
13765
13765
|
className: e,
|
|
13766
13766
|
...t
|
|
13767
|
-
}) => /* @__PURE__ */
|
|
13767
|
+
}) => /* @__PURE__ */ O(
|
|
13768
13768
|
Ln,
|
|
13769
13769
|
{
|
|
13770
13770
|
"aria-label": "Go to next page",
|
|
@@ -13781,7 +13781,7 @@ ci.displayName = "PaginationNext";
|
|
|
13781
13781
|
const ui = ({
|
|
13782
13782
|
className: e,
|
|
13783
13783
|
...t
|
|
13784
|
-
}) => /* @__PURE__ */
|
|
13784
|
+
}) => /* @__PURE__ */ O(
|
|
13785
13785
|
"span",
|
|
13786
13786
|
{
|
|
13787
13787
|
"aria-hidden": !0,
|
|
@@ -13836,12 +13836,6 @@ const Mx = ({
|
|
|
13836
13836
|
accessorKey: "code",
|
|
13837
13837
|
cell: ({ row: S }) => /* @__PURE__ */ p("span", { className: "flex flex-col", children: S.original.code })
|
|
13838
13838
|
},
|
|
13839
|
-
{
|
|
13840
|
-
id: "fileName",
|
|
13841
|
-
header: "Tên file",
|
|
13842
|
-
accessorKey: "fileName",
|
|
13843
|
-
cell: ({ row: S }) => /* @__PURE__ */ p("span", { className: "flex flex-col", children: S.original.fileName })
|
|
13844
|
-
},
|
|
13845
13839
|
{
|
|
13846
13840
|
id: "content",
|
|
13847
13841
|
header: "Nội dung",
|
|
@@ -13880,40 +13874,37 @@ const Mx = ({
|
|
|
13880
13874
|
header: "Cập nhật",
|
|
13881
13875
|
accessorKey: "last-update",
|
|
13882
13876
|
cell: ({ row: S }) => {
|
|
13883
|
-
const
|
|
13884
|
-
return /* @__PURE__ */
|
|
13885
|
-
"tháng ",
|
|
13886
|
-
M
|
|
13887
|
-
] });
|
|
13877
|
+
const R = new Date(S.original.lastUpdate), M = R.getDate(), j = R.getMonth() + 1, z = `ngày ${M} tháng ${j}`;
|
|
13878
|
+
return /* @__PURE__ */ p("span", { className: "flex flex-col", children: z });
|
|
13888
13879
|
}
|
|
13889
13880
|
},
|
|
13890
13881
|
{
|
|
13891
13882
|
accessorKey: "edit",
|
|
13892
13883
|
header: () => /* @__PURE__ */ p("div", { className: "font-medium text-center", children: "Sửa" }),
|
|
13893
13884
|
cell: ({ row: S }) => {
|
|
13894
|
-
const [R, M] = Q(!1), [j,
|
|
13895
|
-
return /* @__PURE__ */
|
|
13885
|
+
const [R, M] = Q(!1), [j, z] = Q(!1), { handleSubmit: Z, register: _, reset: $ } = Nw(), F = S.original.id;
|
|
13886
|
+
return /* @__PURE__ */ O(
|
|
13896
13887
|
Qt,
|
|
13897
13888
|
{
|
|
13898
13889
|
open: j,
|
|
13899
13890
|
onOpenChange: (B) => {
|
|
13900
|
-
|
|
13891
|
+
z(B), B ? $({
|
|
13901
13892
|
content: S.original.content,
|
|
13902
13893
|
note: S.original.note
|
|
13903
|
-
}) :
|
|
13894
|
+
}) : $();
|
|
13904
13895
|
},
|
|
13905
13896
|
children: [
|
|
13906
13897
|
/* @__PURE__ */ p(hr, { className: "w-full", children: /* @__PURE__ */ p(
|
|
13907
13898
|
"div",
|
|
13908
13899
|
{
|
|
13909
|
-
onClick: () =>
|
|
13900
|
+
onClick: () => z((B) => !B),
|
|
13910
13901
|
className: "font-medium text-center text-orange-500 cursor-pointer",
|
|
13911
13902
|
children: "sửa"
|
|
13912
13903
|
}
|
|
13913
13904
|
) }),
|
|
13914
|
-
/* @__PURE__ */ p(Vt, { className: "rounded-lg sm:px-3 h-[calc(100dvh-200px)] min-w-[calc(100dvw-112px)]", children: /* @__PURE__ */
|
|
13905
|
+
/* @__PURE__ */ p(Vt, { className: "rounded-lg sm:px-3 h-[calc(100dvh-200px)] min-w-[calc(100dvw-112px)]", children: /* @__PURE__ */ O(Bt, { className: "flex flex-col gap-3", children: [
|
|
13915
13906
|
/* @__PURE__ */ p(zt, { className: "max-sm:hidden text-center", children: "Sửa summary" }),
|
|
13916
|
-
/* @__PURE__ */
|
|
13907
|
+
/* @__PURE__ */ O(
|
|
13917
13908
|
"form",
|
|
13918
13909
|
{
|
|
13919
13910
|
className: "flex flex-col gap-3 h-full justify-between",
|
|
@@ -13923,17 +13914,17 @@ const Mx = ({
|
|
|
13923
13914
|
const q = await ie.patch(`${e}/api/update-summary`, {
|
|
13924
13915
|
note: B.note,
|
|
13925
13916
|
text_summary: B.content,
|
|
13926
|
-
id:
|
|
13917
|
+
id: F
|
|
13927
13918
|
});
|
|
13928
|
-
q.status === 200 ? (await m(a),
|
|
13919
|
+
q.status === 200 ? (await m(a), z(!1)) : console.error("Failed to update summary:", q);
|
|
13929
13920
|
} catch (q) {
|
|
13930
13921
|
console.error("Error updating summary:", q);
|
|
13931
13922
|
}
|
|
13932
13923
|
return M(!1);
|
|
13933
13924
|
}),
|
|
13934
13925
|
children: [
|
|
13935
|
-
/* @__PURE__ */
|
|
13936
|
-
/* @__PURE__ */
|
|
13926
|
+
/* @__PURE__ */ O("div", { className: "flex flex-col gap-2", children: [
|
|
13927
|
+
/* @__PURE__ */ O("div", { className: "flex flex-col items-start", children: [
|
|
13937
13928
|
/* @__PURE__ */ p("span", { children: "Nội dung:" }),
|
|
13938
13929
|
/* @__PURE__ */ p(
|
|
13939
13930
|
vr,
|
|
@@ -13946,7 +13937,7 @@ const Mx = ({
|
|
|
13946
13937
|
}
|
|
13947
13938
|
)
|
|
13948
13939
|
] }),
|
|
13949
|
-
/* @__PURE__ */
|
|
13940
|
+
/* @__PURE__ */ O("div", { className: "flex flex-col items-start", children: [
|
|
13950
13941
|
/* @__PURE__ */ p("span", { children: "Lưu ý:" }),
|
|
13951
13942
|
/* @__PURE__ */ p(
|
|
13952
13943
|
vr,
|
|
@@ -13975,39 +13966,39 @@ const Mx = ({
|
|
|
13975
13966
|
header: "",
|
|
13976
13967
|
accessorKey: "publish",
|
|
13977
13968
|
cell: ({ row: S }) => {
|
|
13978
|
-
const [R, M] = Q(!1), [j,
|
|
13979
|
-
return /* @__PURE__ */
|
|
13969
|
+
const [R, M] = Q(!1), [j, z] = Q(!1), Z = S.original.id, _ = S.getValue("status"), $ = S.getValue("code"), G = new Date(S.original.lastUpdate).getMonth() + 1, [B, q] = Q(""), [K, te] = Q("1");
|
|
13970
|
+
return /* @__PURE__ */ O(
|
|
13980
13971
|
Qt,
|
|
13981
13972
|
{
|
|
13982
13973
|
open: j,
|
|
13983
13974
|
onOpenChange: (oe) => {
|
|
13984
|
-
|
|
13975
|
+
z(oe);
|
|
13985
13976
|
},
|
|
13986
13977
|
children: [
|
|
13987
13978
|
/* @__PURE__ */ p(hr, { className: "w-full", children: /* @__PURE__ */ p(
|
|
13988
13979
|
"div",
|
|
13989
13980
|
{
|
|
13990
|
-
onClick: () =>
|
|
13981
|
+
onClick: () => z((oe) => !oe),
|
|
13991
13982
|
className: "font-medium text-start text-green-400 cursor-pointer",
|
|
13992
13983
|
children: _ === "unpublish" ? "Publish" : "Unpublish"
|
|
13993
13984
|
}
|
|
13994
13985
|
) }),
|
|
13995
|
-
/* @__PURE__ */ p(Vt, { className: "rounded-lg sm:px-3 sm:w-[calc(100%-30px)]", children: /* @__PURE__ */
|
|
13996
|
-
/* @__PURE__ */
|
|
13986
|
+
/* @__PURE__ */ p(Vt, { className: "rounded-lg sm:px-3 sm:w-[calc(100%-30px)]", children: /* @__PURE__ */ O(Bt, { className: "flex flex-col gap-3", children: [
|
|
13987
|
+
/* @__PURE__ */ O(zt, { children: [
|
|
13997
13988
|
_ === "unpublish" ? "Publish" : "Unpublish",
|
|
13998
13989
|
" Summary?"
|
|
13999
13990
|
] }),
|
|
14000
|
-
/* @__PURE__ */
|
|
13991
|
+
/* @__PURE__ */ O("span", { children: [
|
|
14001
13992
|
"Bạn có muốn ",
|
|
14002
13993
|
_ === "unpublish" ? "publish" : "unpublish",
|
|
14003
13994
|
" summary mã ",
|
|
14004
|
-
|
|
13995
|
+
$,
|
|
14005
13996
|
" ",
|
|
14006
13997
|
"tháng ",
|
|
14007
13998
|
G,
|
|
14008
13999
|
" không?"
|
|
14009
14000
|
] }),
|
|
14010
|
-
/* @__PURE__ */
|
|
14001
|
+
/* @__PURE__ */ O("div", { children: [
|
|
14011
14002
|
/* @__PURE__ */ p("span", { children: "id:" }),
|
|
14012
14003
|
/* @__PURE__ */ p(
|
|
14013
14004
|
Tt,
|
|
@@ -14018,7 +14009,7 @@ const Mx = ({
|
|
|
14018
14009
|
}
|
|
14019
14010
|
)
|
|
14020
14011
|
] }),
|
|
14021
|
-
/* @__PURE__ */
|
|
14012
|
+
/* @__PURE__ */ O("div", { children: [
|
|
14022
14013
|
/* @__PURE__ */ p("span", { children: "bucket:" }),
|
|
14023
14014
|
/* @__PURE__ */ p(Tt, { value: B, onChange: (oe) => q(oe.target.value) })
|
|
14024
14015
|
] }),
|
|
@@ -14037,7 +14028,7 @@ const Mx = ({
|
|
|
14037
14028
|
summary_result: S.original.content,
|
|
14038
14029
|
note: S.original.note
|
|
14039
14030
|
});
|
|
14040
|
-
oe.status === 200 ? (m(a),
|
|
14031
|
+
oe.status === 200 ? (m(a), z(!1)) : console.error("Failed to toggle publish status:", oe);
|
|
14041
14032
|
} catch (oe) {
|
|
14042
14033
|
console.error("Error toggling publish status:", oe);
|
|
14043
14034
|
} finally {
|
|
@@ -14063,7 +14054,7 @@ const Mx = ({
|
|
|
14063
14054
|
getFilteredRowModel: mf(),
|
|
14064
14055
|
getCoreRowModel: La()
|
|
14065
14056
|
});
|
|
14066
|
-
return /* @__PURE__ */
|
|
14057
|
+
return /* @__PURE__ */ O("div", { className: "space-y-4 s3-explr-container", children: [
|
|
14067
14058
|
/* @__PURE__ */ p("div", { className: "flex items-center space-x-4 s3-explr-toolbar", children: /* @__PURE__ */ p(
|
|
14068
14059
|
Tt,
|
|
14069
14060
|
{
|
|
@@ -14076,11 +14067,11 @@ const Mx = ({
|
|
|
14076
14067
|
className: "max-w-sm"
|
|
14077
14068
|
}
|
|
14078
14069
|
) }),
|
|
14079
|
-
/* @__PURE__ */ p("div", { className: "rounded-md border s3-explr-table-container", children: /* @__PURE__ */
|
|
14080
|
-
/* @__PURE__ */ p(
|
|
14070
|
+
/* @__PURE__ */ p("div", { className: "rounded-md border s3-explr-table-container", children: /* @__PURE__ */ O($r, { className: "s3-explr-table", children: [
|
|
14071
|
+
/* @__PURE__ */ p(Ir, { className: "s3-explr-table-header", children: w.getHeaderGroups().map((b) => /* @__PURE__ */ p(qe, { className: "hover:bg-transparent s3-explr-header-row", children: b.headers.map((S) => /* @__PURE__ */ p(tt, { className: "s3-explr-header-cell", children: S.isPlaceholder ? null : fr(S.column.columnDef.header, S.getContext()) }, S.id)) }, b.id)) }),
|
|
14081
14072
|
/* @__PURE__ */ p(Lr, { className: "s3-explr-table-body", children: (E = w.getRowModel().rows) != null && E.length ? (N = w.getRowModel().rows) == null ? void 0 : N.map((b) => /* @__PURE__ */ p(qe, { className: "h-12 s3-explr-row", children: b.getVisibleCells().map((S) => /* @__PURE__ */ p(Fe, { className: "align-middle s3-explr-cell", children: fr(S.column.columnDef.cell, S.getContext()) }, S.id)) }, b.id)) : r ? /* @__PURE__ */ p(qe, { children: /* @__PURE__ */ p(Fe, { colSpan: y.length, className: "h-24 text-center", children: "loading..." }) }) : /* @__PURE__ */ p(qe, { children: /* @__PURE__ */ p(Fe, { colSpan: y.length, className: "h-24 text-center", children: "Không có kết quả." }) }) })
|
|
14082
14073
|
] }) }),
|
|
14083
|
-
/* @__PURE__ */ p("div", { className: "mt-4", children: /* @__PURE__ */ p(ii, { children: /* @__PURE__ */
|
|
14074
|
+
/* @__PURE__ */ p("div", { className: "mt-4", children: /* @__PURE__ */ p(ii, { children: /* @__PURE__ */ O(ai, { children: [
|
|
14084
14075
|
/* @__PURE__ */ p(mt, { children: /* @__PURE__ */ p(
|
|
14085
14076
|
li,
|
|
14086
14077
|
{
|
|
@@ -14090,7 +14081,7 @@ const Mx = ({
|
|
|
14090
14081
|
) }),
|
|
14091
14082
|
Array.from({ length: l }, (b, S) => S + 1).filter(
|
|
14092
14083
|
(b) => b === 1 || b === l || Math.abs(b - a) <= 1
|
|
14093
|
-
).map((b, S, R) => /* @__PURE__ */
|
|
14084
|
+
).map((b, S, R) => /* @__PURE__ */ O(ce, { children: [
|
|
14094
14085
|
S > 0 && R[S - 1] !== b - 1 && /* @__PURE__ */ p(mt, { children: /* @__PURE__ */ p(ui, {}) }, b + "..."),
|
|
14095
14086
|
/* @__PURE__ */ p(mt, { children: /* @__PURE__ */ p(
|
|
14096
14087
|
Ln,
|
|
@@ -14143,10 +14134,9 @@ const Mx = ({
|
|
|
14143
14134
|
const w = async (b) => {
|
|
14144
14135
|
h((S) => new Set(S).add(b.toString()));
|
|
14145
14136
|
try {
|
|
14146
|
-
await
|
|
14147
|
-
|
|
14148
|
-
|
|
14149
|
-
description: `Failed to restart job ${b}. Please try again.`
|
|
14137
|
+
await ie.post(`${e}/api/retry-job`, { jobId: b }), f({
|
|
14138
|
+
title: "Job Restarted",
|
|
14139
|
+
description: `Job ${b} has been successfully restarted.`
|
|
14150
14140
|
}), y(t);
|
|
14151
14141
|
} catch {
|
|
14152
14142
|
f({
|
|
@@ -14168,8 +14158,8 @@ const Mx = ({
|
|
|
14168
14158
|
const S = Math.floor(b / 60), R = (b % 60).toFixed(0);
|
|
14169
14159
|
return `${S}m ${R}s`;
|
|
14170
14160
|
};
|
|
14171
|
-
return /* @__PURE__ */
|
|
14172
|
-
/* @__PURE__ */
|
|
14161
|
+
return /* @__PURE__ */ O("div", { children: [
|
|
14162
|
+
/* @__PURE__ */ O("div", { className: "flex items-center gap-2 mb-6", children: [
|
|
14173
14163
|
/* @__PURE__ */ p(Jp, { className: "w-8 h-8 text-primary" }),
|
|
14174
14164
|
/* @__PURE__ */ p("h2", { className: "text-3xl font-bold tracking-tight", children: "Job Management" }),
|
|
14175
14165
|
/* @__PURE__ */ p(
|
|
@@ -14184,8 +14174,8 @@ const Mx = ({
|
|
|
14184
14174
|
}
|
|
14185
14175
|
)
|
|
14186
14176
|
] }),
|
|
14187
|
-
/* @__PURE__ */ p("div", { className: "rounded-md border", children: /* @__PURE__ */
|
|
14188
|
-
/* @__PURE__ */ p(
|
|
14177
|
+
/* @__PURE__ */ p("div", { className: "rounded-md border", children: /* @__PURE__ */ O($r, { children: [
|
|
14178
|
+
/* @__PURE__ */ p(Ir, { children: /* @__PURE__ */ O(qe, { children: [
|
|
14189
14179
|
/* @__PURE__ */ p(tt, { children: "ID" }),
|
|
14190
14180
|
/* @__PURE__ */ p(tt, { children: "Tên Công Việc" }),
|
|
14191
14181
|
/* @__PURE__ */ p(tt, { children: "Thời Gian Bắt Đầu" }),
|
|
@@ -14196,7 +14186,7 @@ const Mx = ({
|
|
|
14196
14186
|
] }) }),
|
|
14197
14187
|
/* @__PURE__ */ p(Lr, { children: a && r.length === 0 ? /* @__PURE__ */ p(qe, { children: /* @__PURE__ */ p(Fe, { colSpan: 7, className: "text-center py-4", children: /* @__PURE__ */ p(Ae, { className: "w-6 h-6 animate-spin mx-auto" }) }) }) : r.map((b) => {
|
|
14198
14188
|
var S, R;
|
|
14199
|
-
return /* @__PURE__ */
|
|
14189
|
+
return /* @__PURE__ */ O(qe, { children: [
|
|
14200
14190
|
/* @__PURE__ */ p(Fe, { className: "!w-[100px]", children: b.id }),
|
|
14201
14191
|
/* @__PURE__ */ p(Fe, { className: "font-medium", children: (S = b.job_name) == null ? void 0 : S.replace("Upload file", "Summary") }),
|
|
14202
14192
|
/* @__PURE__ */ p(Fe, { className: "!w-[200px]", children: E(b.created_at) }),
|
|
@@ -14218,7 +14208,7 @@ const Mx = ({
|
|
|
14218
14208
|
onClick: () => w(b.id),
|
|
14219
14209
|
disabled: g.has(b.id.toString()),
|
|
14220
14210
|
className: "h-[32px]",
|
|
14221
|
-
children: g.has(b.id.toString()) ? /* @__PURE__ */
|
|
14211
|
+
children: g.has(b.id.toString()) ? /* @__PURE__ */ O(ce, { children: [
|
|
14222
14212
|
/* @__PURE__ */ p(Ae, { className: "mr-2 h-4 w-4 animate-spin" }),
|
|
14223
14213
|
"Đang thử lại..."
|
|
14224
14214
|
] }) : "Thử Lại"
|
|
@@ -14227,7 +14217,7 @@ const Mx = ({
|
|
|
14227
14217
|
] }, b.id);
|
|
14228
14218
|
}) })
|
|
14229
14219
|
] }) }),
|
|
14230
|
-
/* @__PURE__ */ p("div", { className: "mt-4", children: /* @__PURE__ */ p(ii, { children: /* @__PURE__ */
|
|
14220
|
+
/* @__PURE__ */ p("div", { className: "mt-4", children: /* @__PURE__ */ p(ii, { children: /* @__PURE__ */ O(ai, { children: [
|
|
14231
14221
|
/* @__PURE__ */ p(mt, { children: /* @__PURE__ */ p(
|
|
14232
14222
|
li,
|
|
14233
14223
|
{
|
|
@@ -14237,7 +14227,7 @@ const Mx = ({
|
|
|
14237
14227
|
) }),
|
|
14238
14228
|
Array.from({ length: s.totalPages }, (b, S) => S + 1).filter(
|
|
14239
14229
|
(b) => b === 1 || b === s.totalPages || Math.abs(b - t) <= 1
|
|
14240
|
-
).map((b, S, R) => /* @__PURE__ */
|
|
14230
|
+
).map((b, S, R) => /* @__PURE__ */ O(ce, { children: [
|
|
14241
14231
|
S > 0 && R[S - 1] !== b - 1 && /* @__PURE__ */ p(mt, { children: /* @__PURE__ */ p(ui, {}) }, b + "..."),
|
|
14242
14232
|
/* @__PURE__ */ p(mt, { children: /* @__PURE__ */ p(
|
|
14243
14233
|
Ln,
|