dccxx-s3-explorer 1.0.41 → 1.0.42
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/README.md +340 -340
- package/dist/s3-explorer.js +208 -211
- package/dist/s3-explorer.js.map +1 -1
- package/dist/s3-explorer.umd.cjs +6 -6
- package/dist/s3-explorer.umd.cjs.map +1 -1
- package/package.json +133 -133
package/dist/s3-explorer.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as m, Fragment as Re, jsxs as $ } from "react/jsx-runtime";
|
|
2
2
|
import * as d from "react";
|
|
3
|
-
import Ne, { forwardRef as To, createElement as Ki, useState as ie, useLayoutEffect as Wp, useEffect as
|
|
3
|
+
import Ne, { forwardRef as To, createElement as Ki, useState as ie, useLayoutEffect as Wp, useEffect as Ve, useRef as Yt, useMemo as mt, useImperativeHandle as Sc, useReducer as qp, useCallback as ft, Fragment as Gp, memo as Ec } from "react";
|
|
4
4
|
import * as _o from "react-dom";
|
|
5
5
|
import Rc from "react-dom";
|
|
6
6
|
function Kp({
|
|
@@ -4006,14 +4006,14 @@ var du = { exports: {} };
|
|
|
4006
4006
|
return j ? Se : Se.endOf(l);
|
|
4007
4007
|
}, Q = function(de, ce) {
|
|
4008
4008
|
return G.w(A.toDate()[de].apply(A.toDate("s"), (j ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(ce)), A);
|
|
4009
|
-
},
|
|
4009
|
+
}, re = this.$W, ee = this.$M, ue = this.$D, oe = "set" + (this.$u ? "UTC" : "");
|
|
4010
4010
|
switch (R) {
|
|
4011
4011
|
case f:
|
|
4012
4012
|
return j ? B(1, 0) : B(31, 11);
|
|
4013
4013
|
case p:
|
|
4014
4014
|
return j ? B(1, ee) : B(0, ee + 1);
|
|
4015
4015
|
case u:
|
|
4016
|
-
var ae = this.$locale().weekStart || 0, fe = (
|
|
4016
|
+
var ae = this.$locale().weekStart || 0, fe = (re < ae ? re + 7 : re) - ae;
|
|
4017
4017
|
return B(j ? ue - fe : ue + (6 - fe), ee);
|
|
4018
4018
|
case l:
|
|
4019
4019
|
case v:
|
|
@@ -4032,8 +4032,8 @@ var du = { exports: {} };
|
|
|
4032
4032
|
}, F.$set = function(N, W) {
|
|
4033
4033
|
var A, j = G.p(N), R = "set" + (this.$u ? "UTC" : ""), B = (A = {}, A[l] = R + "Date", A[v] = R + "Date", A[p] = R + "Month", A[f] = R + "FullYear", A[c] = R + "Hours", A[s] = R + "Minutes", A[a] = R + "Seconds", A[i] = R + "Milliseconds", A)[j], Q = j === l ? this.$D + (W - this.$W) : W;
|
|
4034
4034
|
if (j === p || j === f) {
|
|
4035
|
-
var
|
|
4036
|
-
|
|
4035
|
+
var re = this.clone().set(v, 1);
|
|
4036
|
+
re.$d[B](Q), re.init(), this.$d = re.set(v, Math.min(this.$D, re.daysInMonth())).$d;
|
|
4037
4037
|
} else B && this.$d[B](Q);
|
|
4038
4038
|
return this.init(), this;
|
|
4039
4039
|
}, F.set = function(N, W) {
|
|
@@ -4051,14 +4051,14 @@ var du = { exports: {} };
|
|
|
4051
4051
|
if (R === f) return this.set(f, this.$y + N);
|
|
4052
4052
|
if (R === l) return B(1);
|
|
4053
4053
|
if (R === u) return B(7);
|
|
4054
|
-
var Q = (A = {}, A[s] = r, A[c] = o, A[a] = n, A)[R] || 1,
|
|
4055
|
-
return G.w(
|
|
4054
|
+
var Q = (A = {}, A[s] = r, A[c] = o, A[a] = n, A)[R] || 1, re = this.$d.getTime() + N * Q;
|
|
4055
|
+
return G.w(re, this);
|
|
4056
4056
|
}, F.subtract = function(N, W) {
|
|
4057
4057
|
return this.add(-1 * N, W);
|
|
4058
4058
|
}, F.format = function(N) {
|
|
4059
4059
|
var W = this, A = this.$locale();
|
|
4060
4060
|
if (!this.isValid()) return A.invalidDate || g;
|
|
4061
|
-
var j = N || "YYYY-MM-DDTHH:mm:ssZ", R = G.z(this), B = this.$H, Q = this.$m,
|
|
4061
|
+
var j = N || "YYYY-MM-DDTHH:mm:ssZ", R = G.z(this), B = this.$H, Q = this.$m, re = this.$M, ee = A.weekdays, ue = A.months, oe = A.meridiem, ae = function(ce, Se, K, Te) {
|
|
4062
4062
|
return ce && (ce[Se] || ce(W, j)) || K[Se].slice(0, Te);
|
|
4063
4063
|
}, fe = function(ce) {
|
|
4064
4064
|
return G.s(B % 12 || 12, ce, "0");
|
|
@@ -4074,13 +4074,13 @@ var du = { exports: {} };
|
|
|
4074
4074
|
case "YYYY":
|
|
4075
4075
|
return G.s(W.$y, 4, "0");
|
|
4076
4076
|
case "M":
|
|
4077
|
-
return
|
|
4077
|
+
return re + 1;
|
|
4078
4078
|
case "MM":
|
|
4079
|
-
return G.s(
|
|
4079
|
+
return G.s(re + 1, 2, "0");
|
|
4080
4080
|
case "MMM":
|
|
4081
|
-
return ae(A.monthsShort,
|
|
4081
|
+
return ae(A.monthsShort, re, ue, 3);
|
|
4082
4082
|
case "MMMM":
|
|
4083
|
-
return ae(ue,
|
|
4083
|
+
return ae(ue, re);
|
|
4084
4084
|
case "D":
|
|
4085
4085
|
return W.$D;
|
|
4086
4086
|
case "DD":
|
|
@@ -4124,7 +4124,7 @@ var du = { exports: {} };
|
|
|
4124
4124
|
}, F.utcOffset = function() {
|
|
4125
4125
|
return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
|
|
4126
4126
|
}, F.diff = function(N, W, A) {
|
|
4127
|
-
var j, R = this, B = G.p(W), Q = O(N),
|
|
4127
|
+
var j, R = this, B = G.p(W), Q = O(N), re = (Q.utcOffset() - this.utcOffset()) * r, ee = this - Q, ue = function() {
|
|
4128
4128
|
return G.m(R, Q);
|
|
4129
4129
|
};
|
|
4130
4130
|
switch (B) {
|
|
@@ -4138,10 +4138,10 @@ var du = { exports: {} };
|
|
|
4138
4138
|
j = ue() / 3;
|
|
4139
4139
|
break;
|
|
4140
4140
|
case u:
|
|
4141
|
-
j = (ee -
|
|
4141
|
+
j = (ee - re) / 6048e5;
|
|
4142
4142
|
break;
|
|
4143
4143
|
case l:
|
|
4144
|
-
j = (ee -
|
|
4144
|
+
j = (ee - re) / 864e5;
|
|
4145
4145
|
break;
|
|
4146
4146
|
case c:
|
|
4147
4147
|
j = ee / o;
|
|
@@ -4344,7 +4344,7 @@ const Zh = ht("Eye", [
|
|
|
4344
4344
|
* This source code is licensed under the ISC license.
|
|
4345
4345
|
* See the LICENSE file in the root directory of this source tree.
|
|
4346
4346
|
*/
|
|
4347
|
-
const
|
|
4347
|
+
const Le = ht("LoaderCircle", [
|
|
4348
4348
|
["path", { d: "M21 12a9 9 0 1 1-6.219-8.56", key: "13zald" }]
|
|
4349
4349
|
]);
|
|
4350
4350
|
/**
|
|
@@ -6950,7 +6950,7 @@ function Uv(...e) {
|
|
|
6950
6950
|
};
|
|
6951
6951
|
return n.scopeName = t.scopeName, n;
|
|
6952
6952
|
}
|
|
6953
|
-
function
|
|
6953
|
+
function je(e, t, { checkForDefaultPrevented: n = !0 } = {}) {
|
|
6954
6954
|
return function(o) {
|
|
6955
6955
|
if (e == null || e(o), n === !1 || !o.defaultPrevented)
|
|
6956
6956
|
return t == null ? void 0 : t(o);
|
|
@@ -7191,10 +7191,10 @@ var Qa = "Checkbox", [ty, OE] = pn(Qa), [ny, ry] = ty(Qa), Pu = d.forwardRef(
|
|
|
7191
7191
|
value: c,
|
|
7192
7192
|
...p,
|
|
7193
7193
|
ref: v,
|
|
7194
|
-
onKeyDown:
|
|
7194
|
+
onKeyDown: je(e.onKeyDown, (E) => {
|
|
7195
7195
|
E.key === "Enter" && E.preventDefault();
|
|
7196
7196
|
}),
|
|
7197
|
-
onClick:
|
|
7197
|
+
onClick: je(e.onClick, (E) => {
|
|
7198
7198
|
b((x) => sn(x) ? !0 : !x), y && (g.current = E.isPropagationStopped(), g.current || E.stopPropagation());
|
|
7199
7199
|
})
|
|
7200
7200
|
}
|
|
@@ -7349,9 +7349,9 @@ var ly = "DismissableLayer", fa = "dismissableLayer.update", cy = "dismissableLa
|
|
|
7349
7349
|
pointerEvents: C ? E ? "auto" : "none" : void 0,
|
|
7350
7350
|
...e.style
|
|
7351
7351
|
},
|
|
7352
|
-
onFocusCapture:
|
|
7353
|
-
onBlurCapture:
|
|
7354
|
-
onPointerDownCapture:
|
|
7352
|
+
onFocusCapture: je(e.onFocusCapture, P.onFocusCapture),
|
|
7353
|
+
onBlurCapture: je(e.onBlurCapture, P.onBlurCapture),
|
|
7354
|
+
onPointerDownCapture: je(
|
|
7355
7355
|
e.onPointerDownCapture,
|
|
7356
7356
|
x.onPointerDownCapture
|
|
7357
7357
|
)
|
|
@@ -8218,7 +8218,7 @@ var ed = "DialogTrigger", td = d.forwardRef(
|
|
|
8218
8218
|
"data-state": is(o.open),
|
|
8219
8219
|
...r,
|
|
8220
8220
|
ref: i,
|
|
8221
|
-
onClick:
|
|
8221
|
+
onClick: je(e.onClick, o.onOpenToggle)
|
|
8222
8222
|
}
|
|
8223
8223
|
);
|
|
8224
8224
|
}
|
|
@@ -8275,15 +8275,15 @@ var vx = d.forwardRef(
|
|
|
8275
8275
|
ref: o,
|
|
8276
8276
|
trapFocus: n.open,
|
|
8277
8277
|
disableOutsidePointerEvents: !0,
|
|
8278
|
-
onCloseAutoFocus:
|
|
8278
|
+
onCloseAutoFocus: je(e.onCloseAutoFocus, (i) => {
|
|
8279
8279
|
var a;
|
|
8280
8280
|
i.preventDefault(), (a = n.triggerRef.current) == null || a.focus();
|
|
8281
8281
|
}),
|
|
8282
|
-
onPointerDownOutside:
|
|
8282
|
+
onPointerDownOutside: je(e.onPointerDownOutside, (i) => {
|
|
8283
8283
|
const a = i.detail.originalEvent, s = a.button === 0 && a.ctrlKey === !0;
|
|
8284
8284
|
(a.button === 2 || s) && i.preventDefault();
|
|
8285
8285
|
}),
|
|
8286
|
-
onFocusOutside:
|
|
8286
|
+
onFocusOutside: je(
|
|
8287
8287
|
e.onFocusOutside,
|
|
8288
8288
|
(i) => i.preventDefault()
|
|
8289
8289
|
)
|
|
@@ -8369,7 +8369,7 @@ var ud = "DialogClose", dd = d.forwardRef(
|
|
|
8369
8369
|
type: "button",
|
|
8370
8370
|
...r,
|
|
8371
8371
|
ref: t,
|
|
8372
|
-
onClick:
|
|
8372
|
+
onClick: je(e.onClick, () => o.onOpenChange(!1))
|
|
8373
8373
|
}
|
|
8374
8374
|
);
|
|
8375
8375
|
}
|
|
@@ -9762,17 +9762,17 @@ var Yo = "Toast", _w = "toast.swipeStart", Aw = "toast.swipeMove", Pw = "toast.s
|
|
|
9762
9762
|
onClose: () => c(!1),
|
|
9763
9763
|
onPause: Ze(e.onPause),
|
|
9764
9764
|
onResume: Ze(e.onResume),
|
|
9765
|
-
onSwipeStart:
|
|
9765
|
+
onSwipeStart: je(e.onSwipeStart, (l) => {
|
|
9766
9766
|
l.currentTarget.setAttribute("data-swipe", "start");
|
|
9767
9767
|
}),
|
|
9768
|
-
onSwipeMove:
|
|
9768
|
+
onSwipeMove: je(e.onSwipeMove, (l) => {
|
|
9769
9769
|
const { x: u, y: p } = l.detail.delta;
|
|
9770
9770
|
l.currentTarget.setAttribute("data-swipe", "move"), l.currentTarget.style.setProperty("--radix-toast-swipe-move-x", `${u}px`), l.currentTarget.style.setProperty("--radix-toast-swipe-move-y", `${p}px`);
|
|
9771
9771
|
}),
|
|
9772
|
-
onSwipeCancel:
|
|
9772
|
+
onSwipeCancel: je(e.onSwipeCancel, (l) => {
|
|
9773
9773
|
l.currentTarget.setAttribute("data-swipe", "cancel"), l.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"), l.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"), l.currentTarget.style.removeProperty("--radix-toast-swipe-end-x"), l.currentTarget.style.removeProperty("--radix-toast-swipe-end-y");
|
|
9774
9774
|
}),
|
|
9775
|
-
onSwipeEnd:
|
|
9775
|
+
onSwipeEnd: je(e.onSwipeEnd, (l) => {
|
|
9776
9776
|
const { x: u, y: p } = l.detail.delta;
|
|
9777
9777
|
l.currentTarget.setAttribute("data-swipe", "end"), l.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"), l.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"), l.currentTarget.style.setProperty("--radix-toast-swipe-end-x", `${u}px`), l.currentTarget.style.setProperty("--radix-toast-swipe-end-y", `${p}px`), c(!1);
|
|
9778
9778
|
})
|
|
@@ -9842,7 +9842,7 @@ var [Ow, kw] = qd(Yo, {
|
|
|
9842
9842
|
my,
|
|
9843
9843
|
{
|
|
9844
9844
|
asChild: !0,
|
|
9845
|
-
onEscapeKeyDown:
|
|
9845
|
+
onEscapeKeyDown: je(s, () => {
|
|
9846
9846
|
g.isFocusedToastEscapeKeyDownRef.current || G(), g.isFocusedToastEscapeKeyDownRef.current = !1;
|
|
9847
9847
|
}),
|
|
9848
9848
|
children: /* @__PURE__ */ m(
|
|
@@ -9857,22 +9857,22 @@ var [Ow, kw] = qd(Yo, {
|
|
|
9857
9857
|
...v,
|
|
9858
9858
|
ref: b,
|
|
9859
9859
|
style: { userSelect: "none", touchAction: "none", ...e.style },
|
|
9860
|
-
onKeyDown:
|
|
9860
|
+
onKeyDown: je(e.onKeyDown, (_) => {
|
|
9861
9861
|
_.key === "Escape" && (s == null || s(_.nativeEvent), _.nativeEvent.defaultPrevented || (g.isFocusedToastEscapeKeyDownRef.current = !0, G()));
|
|
9862
9862
|
}),
|
|
9863
|
-
onPointerDown:
|
|
9863
|
+
onPointerDown: je(e.onPointerDown, (_) => {
|
|
9864
9864
|
_.button === 0 && (C.current = { x: _.clientX, y: _.clientY });
|
|
9865
9865
|
}),
|
|
9866
|
-
onPointerMove:
|
|
9866
|
+
onPointerMove: je(e.onPointerMove, (_) => {
|
|
9867
9867
|
if (!C.current) return;
|
|
9868
|
-
const F = _.clientX - C.current.x, N = _.clientY - C.current.y, W = !!E.current, A = ["left", "right"].includes(g.swipeDirection), j = ["left", "up"].includes(g.swipeDirection) ? Math.min : Math.max, R = A ? j(0, F) : 0, B = A ? 0 : j(0, N), Q = _.pointerType === "touch" ? 10 : 2,
|
|
9869
|
-
W ? (E.current =
|
|
9868
|
+
const F = _.clientX - C.current.x, N = _.clientY - C.current.y, W = !!E.current, A = ["left", "right"].includes(g.swipeDirection), j = ["left", "up"].includes(g.swipeDirection) ? Math.min : Math.max, R = A ? j(0, F) : 0, B = A ? 0 : j(0, N), Q = _.pointerType === "touch" ? 10 : 2, re = { x: R, y: B }, ee = { originalEvent: _, delta: re };
|
|
9869
|
+
W ? (E.current = re, qr(Aw, p, ee, {
|
|
9870
9870
|
discrete: !1
|
|
9871
|
-
})) : Rl(
|
|
9871
|
+
})) : Rl(re, g.swipeDirection, Q) ? (E.current = re, qr(_w, u, ee, {
|
|
9872
9872
|
discrete: !1
|
|
9873
9873
|
}), _.target.setPointerCapture(_.pointerId)) : (Math.abs(F) > Q || Math.abs(N) > Q) && (C.current = null);
|
|
9874
9874
|
}),
|
|
9875
|
-
onPointerUp:
|
|
9875
|
+
onPointerUp: je(e.onPointerUp, (_) => {
|
|
9876
9876
|
const F = E.current, N = _.target;
|
|
9877
9877
|
if (N.hasPointerCapture(_.pointerId) && N.releasePointerCapture(_.pointerId), E.current = null, C.current = null, F) {
|
|
9878
9878
|
const W = _.currentTarget, A = { originalEvent: _, delta: F };
|
|
@@ -9940,7 +9940,7 @@ var nf = "ToastClose", fs = d.forwardRef(
|
|
|
9940
9940
|
type: "button",
|
|
9941
9941
|
...r,
|
|
9942
9942
|
ref: t,
|
|
9943
|
-
onClick:
|
|
9943
|
+
onClick: je(e.onClick, o.onClose)
|
|
9944
9944
|
}
|
|
9945
9945
|
) });
|
|
9946
9946
|
}
|
|
@@ -11466,7 +11466,7 @@ const Vb = yb, zb = xb, Bb = gb, Hb = bb, Ub = hb, $l = mb, Wb = wb, qb = (e, t,
|
|
|
11466
11466
|
platform: i
|
|
11467
11467
|
});
|
|
11468
11468
|
};
|
|
11469
|
-
var so = typeof document < "u" ? Wp :
|
|
11469
|
+
var so = typeof document < "u" ? Wp : Ve;
|
|
11470
11470
|
function xo(e, t) {
|
|
11471
11471
|
if (e === t)
|
|
11472
11472
|
return !0;
|
|
@@ -11813,7 +11813,7 @@ var bs = "PopperContent", [c0, u0] = Df(bs), jf = d.forwardRef(
|
|
|
11813
11813
|
ct(() => {
|
|
11814
11814
|
W && (B == null || B());
|
|
11815
11815
|
}, [W, B]);
|
|
11816
|
-
const Q = (ae = A.arrow) == null ? void 0 : ae.x,
|
|
11816
|
+
const Q = (ae = A.arrow) == null ? void 0 : ae.x, re = (fe = A.arrow) == null ? void 0 : fe.y, ee = ((de = A.arrow) == null ? void 0 : de.centerOffset) !== 0, [ue, oe] = d.useState();
|
|
11817
11817
|
return ct(() => {
|
|
11818
11818
|
w && oe(window.getComputedStyle(w).zIndex);
|
|
11819
11819
|
}, [w]), /* @__PURE__ */ m(
|
|
@@ -11847,7 +11847,7 @@ var bs = "PopperContent", [c0, u0] = Df(bs), jf = d.forwardRef(
|
|
|
11847
11847
|
placedSide: j,
|
|
11848
11848
|
onArrowChange: x,
|
|
11849
11849
|
arrowX: Q,
|
|
11850
|
-
arrowY:
|
|
11850
|
+
arrowY: re,
|
|
11851
11851
|
shouldHideArrow: ee,
|
|
11852
11852
|
children: /* @__PURE__ */ m(
|
|
11853
11853
|
kf.div,
|
|
@@ -12398,7 +12398,7 @@ var W0 = function(e) {
|
|
|
12398
12398
|
}, ep = function(e) {
|
|
12399
12399
|
return typeof e == "function";
|
|
12400
12400
|
}, tp = process.env.NODE_ENV === "development" || process.env.NODE_ENV === "test";
|
|
12401
|
-
const q0 = W0(
|
|
12401
|
+
const q0 = W0(Ve);
|
|
12402
12402
|
function np(e) {
|
|
12403
12403
|
var t = Yt(e);
|
|
12404
12404
|
return t.current = e, t;
|
|
@@ -12406,7 +12406,7 @@ function np(e) {
|
|
|
12406
12406
|
var G0 = function(e) {
|
|
12407
12407
|
tp && (ep(e) || console.error("useUnmount expected parameter is a function, got ".concat(typeof e)));
|
|
12408
12408
|
var t = np(e);
|
|
12409
|
-
|
|
12409
|
+
Ve(function() {
|
|
12410
12410
|
return function() {
|
|
12411
12411
|
t.current();
|
|
12412
12412
|
};
|
|
@@ -12548,7 +12548,7 @@ function XC(e, t, n) {
|
|
|
12548
12548
|
var r = zu(ie({}), 2), o = r[0], i = r[1], a = YC(function() {
|
|
12549
12549
|
i({});
|
|
12550
12550
|
}, n).run;
|
|
12551
|
-
|
|
12551
|
+
Ve(function() {
|
|
12552
12552
|
return a();
|
|
12553
12553
|
}, t), q0(e, [o]);
|
|
12554
12554
|
}
|
|
@@ -12729,7 +12729,7 @@ function QC() {
|
|
|
12729
12729
|
function Q(K) {
|
|
12730
12730
|
return E(K) === a;
|
|
12731
12731
|
}
|
|
12732
|
-
function
|
|
12732
|
+
function re(K) {
|
|
12733
12733
|
return typeof K == "object" && K !== null && K.$$typeof === t;
|
|
12734
12734
|
}
|
|
12735
12735
|
function ee(K) {
|
|
@@ -12756,7 +12756,7 @@ function QC() {
|
|
|
12756
12756
|
function Se(K) {
|
|
12757
12757
|
return E(K) === p;
|
|
12758
12758
|
}
|
|
12759
|
-
Pe.AsyncMode = x, Pe.ConcurrentMode = P, Pe.ContextConsumer = D, Pe.ContextProvider = M, Pe.Element = H, Pe.ForwardRef = O, Pe.Fragment = G, Pe.Lazy = U, Pe.Memo = Z, Pe.Portal = _, Pe.Profiler = F, Pe.StrictMode = N, Pe.Suspense = W, Pe.isAsyncMode = j, Pe.isConcurrentMode = R, Pe.isContextConsumer = B, Pe.isContextProvider = Q, Pe.isElement =
|
|
12759
|
+
Pe.AsyncMode = x, Pe.ConcurrentMode = P, Pe.ContextConsumer = D, Pe.ContextProvider = M, Pe.Element = H, Pe.ForwardRef = O, Pe.Fragment = G, Pe.Lazy = U, Pe.Memo = Z, Pe.Portal = _, Pe.Profiler = F, Pe.StrictMode = N, Pe.Suspense = W, Pe.isAsyncMode = j, Pe.isConcurrentMode = R, Pe.isContextConsumer = B, Pe.isContextProvider = Q, Pe.isElement = re, Pe.isForwardRef = ee, Pe.isFragment = ue, Pe.isLazy = oe, Pe.isMemo = ae, Pe.isPortal = fe, Pe.isProfiler = de, Pe.isStrictMode = ce, Pe.isSuspense = Se, Pe.isValidElementType = C, Pe.typeOf = E;
|
|
12760
12760
|
}()), Pe;
|
|
12761
12761
|
}
|
|
12762
12762
|
var Gl;
|
|
@@ -12929,7 +12929,7 @@ function nS() {
|
|
|
12929
12929
|
function y(R) {
|
|
12930
12930
|
if (process.env.NODE_ENV !== "production")
|
|
12931
12931
|
var B = {}, Q = 0;
|
|
12932
|
-
function
|
|
12932
|
+
function re(ue, oe, ae, fe, de, ce, Se) {
|
|
12933
12933
|
if (fe = fe || h, ce = ce || ae, Se !== n) {
|
|
12934
12934
|
if (c) {
|
|
12935
12935
|
var K = new Error(
|
|
@@ -12946,12 +12946,12 @@ function nS() {
|
|
|
12946
12946
|
}
|
|
12947
12947
|
return oe[ae] == null ? ue ? oe[ae] === null ? new g("The " + de + " `" + ce + "` is marked as required " + ("in `" + fe + "`, but its value is `null`.")) : new g("The " + de + " `" + ce + "` is marked as required in " + ("`" + fe + "`, but its value is `undefined`.")) : null : R(oe, ae, fe, de, ce);
|
|
12948
12948
|
}
|
|
12949
|
-
var ee =
|
|
12950
|
-
return ee.isRequired =
|
|
12949
|
+
var ee = re.bind(null, !1);
|
|
12950
|
+
return ee.isRequired = re.bind(null, !0), ee;
|
|
12951
12951
|
}
|
|
12952
12952
|
function w(R) {
|
|
12953
|
-
function B(Q,
|
|
12954
|
-
var fe = Q[
|
|
12953
|
+
function B(Q, re, ee, ue, oe, ae) {
|
|
12954
|
+
var fe = Q[re], de = N(fe);
|
|
12955
12955
|
if (de !== R) {
|
|
12956
12956
|
var ce = W(fe);
|
|
12957
12957
|
return new g(
|
|
@@ -12967,10 +12967,10 @@ function nS() {
|
|
|
12967
12967
|
return y(a);
|
|
12968
12968
|
}
|
|
12969
12969
|
function C(R) {
|
|
12970
|
-
function B(Q,
|
|
12970
|
+
function B(Q, re, ee, ue, oe) {
|
|
12971
12971
|
if (typeof R != "function")
|
|
12972
12972
|
return new g("Property `" + oe + "` of component `" + ee + "` has invalid PropType notation inside arrayOf.");
|
|
12973
|
-
var ae = Q[
|
|
12973
|
+
var ae = Q[re];
|
|
12974
12974
|
if (!Array.isArray(ae)) {
|
|
12975
12975
|
var fe = N(ae);
|
|
12976
12976
|
return new g("Invalid " + ue + " `" + oe + "` of type " + ("`" + fe + "` supplied to `" + ee + "`, expected an array."));
|
|
@@ -12985,31 +12985,31 @@ function nS() {
|
|
|
12985
12985
|
return y(B);
|
|
12986
12986
|
}
|
|
12987
12987
|
function E() {
|
|
12988
|
-
function R(B, Q,
|
|
12988
|
+
function R(B, Q, re, ee, ue) {
|
|
12989
12989
|
var oe = B[Q];
|
|
12990
12990
|
if (!s(oe)) {
|
|
12991
12991
|
var ae = N(oe);
|
|
12992
|
-
return new g("Invalid " + ee + " `" + ue + "` of type " + ("`" + ae + "` supplied to `" +
|
|
12992
|
+
return new g("Invalid " + ee + " `" + ue + "` of type " + ("`" + ae + "` supplied to `" + re + "`, expected a single ReactElement."));
|
|
12993
12993
|
}
|
|
12994
12994
|
return null;
|
|
12995
12995
|
}
|
|
12996
12996
|
return y(R);
|
|
12997
12997
|
}
|
|
12998
12998
|
function x() {
|
|
12999
|
-
function R(B, Q,
|
|
12999
|
+
function R(B, Q, re, ee, ue) {
|
|
13000
13000
|
var oe = B[Q];
|
|
13001
13001
|
if (!e.isValidElementType(oe)) {
|
|
13002
13002
|
var ae = N(oe);
|
|
13003
|
-
return new g("Invalid " + ee + " `" + ue + "` of type " + ("`" + ae + "` supplied to `" +
|
|
13003
|
+
return new g("Invalid " + ee + " `" + ue + "` of type " + ("`" + ae + "` supplied to `" + re + "`, expected a single ReactElement type."));
|
|
13004
13004
|
}
|
|
13005
13005
|
return null;
|
|
13006
13006
|
}
|
|
13007
13007
|
return y(R);
|
|
13008
13008
|
}
|
|
13009
13009
|
function P(R) {
|
|
13010
|
-
function B(Q,
|
|
13011
|
-
if (!(Q[
|
|
13012
|
-
var ae = R.name || h, fe = j(Q[
|
|
13010
|
+
function B(Q, re, ee, ue, oe) {
|
|
13011
|
+
if (!(Q[re] instanceof R)) {
|
|
13012
|
+
var ae = R.name || h, fe = j(Q[re]);
|
|
13013
13013
|
return new g("Invalid " + ue + " `" + oe + "` of type " + ("`" + fe + "` supplied to `" + ee + "`, expected ") + ("instance of `" + ae + "`."));
|
|
13014
13014
|
}
|
|
13015
13015
|
return null;
|
|
@@ -13021,8 +13021,8 @@ function nS() {
|
|
|
13021
13021
|
return process.env.NODE_ENV !== "production" && (arguments.length > 1 ? i(
|
|
13022
13022
|
"Invalid arguments supplied to oneOf, expected an array, got " + arguments.length + " arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."
|
|
13023
13023
|
) : i("Invalid argument supplied to oneOf, expected an array.")), a;
|
|
13024
|
-
function B(Q,
|
|
13025
|
-
for (var ae = Q[
|
|
13024
|
+
function B(Q, re, ee, ue, oe) {
|
|
13025
|
+
for (var ae = Q[re], fe = 0; fe < R.length; fe++)
|
|
13026
13026
|
if (v(ae, R[fe]))
|
|
13027
13027
|
return null;
|
|
13028
13028
|
var de = JSON.stringify(R, function(Se, K) {
|
|
@@ -13034,10 +13034,10 @@ function nS() {
|
|
|
13034
13034
|
return y(B);
|
|
13035
13035
|
}
|
|
13036
13036
|
function M(R) {
|
|
13037
|
-
function B(Q,
|
|
13037
|
+
function B(Q, re, ee, ue, oe) {
|
|
13038
13038
|
if (typeof R != "function")
|
|
13039
13039
|
return new g("Property `" + oe + "` of component `" + ee + "` has invalid PropType notation inside objectOf.");
|
|
13040
|
-
var ae = Q[
|
|
13040
|
+
var ae = Q[re], fe = N(ae);
|
|
13041
13041
|
if (fe !== "object")
|
|
13042
13042
|
return new g("Invalid " + ue + " `" + oe + "` of type " + ("`" + fe + "` supplied to `" + ee + "`, expected an object."));
|
|
13043
13043
|
for (var de in ae)
|
|
@@ -13060,7 +13060,7 @@ function nS() {
|
|
|
13060
13060
|
"Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + A(Q) + " at index " + B + "."
|
|
13061
13061
|
), a;
|
|
13062
13062
|
}
|
|
13063
|
-
function
|
|
13063
|
+
function re(ee, ue, oe, ae, fe) {
|
|
13064
13064
|
for (var de = [], ce = 0; ce < R.length; ce++) {
|
|
13065
13065
|
var Se = R[ce], K = Se(ee, ue, oe, ae, fe, n);
|
|
13066
13066
|
if (K == null)
|
|
@@ -13070,22 +13070,22 @@ function nS() {
|
|
|
13070
13070
|
var Te = de.length > 0 ? ", expected one of type [" + de.join(", ") + "]" : "";
|
|
13071
13071
|
return new g("Invalid " + ae + " `" + fe + "` supplied to " + ("`" + oe + "`" + Te + "."));
|
|
13072
13072
|
}
|
|
13073
|
-
return y(
|
|
13073
|
+
return y(re);
|
|
13074
13074
|
}
|
|
13075
13075
|
function O() {
|
|
13076
|
-
function R(B, Q,
|
|
13077
|
-
return _(B[Q]) ? null : new g("Invalid " + ee + " `" + ue + "` supplied to " + ("`" +
|
|
13076
|
+
function R(B, Q, re, ee, ue) {
|
|
13077
|
+
return _(B[Q]) ? null : new g("Invalid " + ee + " `" + ue + "` supplied to " + ("`" + re + "`, expected a ReactNode."));
|
|
13078
13078
|
}
|
|
13079
13079
|
return y(R);
|
|
13080
13080
|
}
|
|
13081
|
-
function G(R, B, Q,
|
|
13081
|
+
function G(R, B, Q, re, ee) {
|
|
13082
13082
|
return new g(
|
|
13083
|
-
(R || "React class") + ": " + B + " type `" + Q + "." +
|
|
13083
|
+
(R || "React class") + ": " + B + " type `" + Q + "." + re + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + ee + "`."
|
|
13084
13084
|
);
|
|
13085
13085
|
}
|
|
13086
13086
|
function U(R) {
|
|
13087
|
-
function B(Q,
|
|
13088
|
-
var ae = Q[
|
|
13087
|
+
function B(Q, re, ee, ue, oe) {
|
|
13088
|
+
var ae = Q[re], fe = N(ae);
|
|
13089
13089
|
if (fe !== "object")
|
|
13090
13090
|
return new g("Invalid " + ue + " `" + oe + "` of type `" + fe + "` " + ("supplied to `" + ee + "`, expected `object`."));
|
|
13091
13091
|
for (var de in R) {
|
|
@@ -13101,18 +13101,18 @@ function nS() {
|
|
|
13101
13101
|
return y(B);
|
|
13102
13102
|
}
|
|
13103
13103
|
function Z(R) {
|
|
13104
|
-
function B(Q,
|
|
13105
|
-
var ae = Q[
|
|
13104
|
+
function B(Q, re, ee, ue, oe) {
|
|
13105
|
+
var ae = Q[re], fe = N(ae);
|
|
13106
13106
|
if (fe !== "object")
|
|
13107
13107
|
return new g("Invalid " + ue + " `" + oe + "` of type `" + fe + "` " + ("supplied to `" + ee + "`, expected `object`."));
|
|
13108
|
-
var de = t({}, Q[
|
|
13108
|
+
var de = t({}, Q[re], R);
|
|
13109
13109
|
for (var ce in de) {
|
|
13110
13110
|
var Se = R[ce];
|
|
13111
13111
|
if (r(R, ce) && typeof Se != "function")
|
|
13112
13112
|
return G(ee, ue, oe, ce, W(Se));
|
|
13113
13113
|
if (!Se)
|
|
13114
13114
|
return new g(
|
|
13115
|
-
"Invalid " + ue + " `" + oe + "` key `" + ce + "` supplied to `" + ee + "`.\nBad object: " + JSON.stringify(Q[
|
|
13115
|
+
"Invalid " + ue + " `" + oe + "` key `" + ce + "` supplied to `" + ee + "`.\nBad object: " + JSON.stringify(Q[re], null, " ") + `
|
|
13116
13116
|
Valid keys: ` + JSON.stringify(Object.keys(R), null, " ")
|
|
13117
13117
|
);
|
|
13118
13118
|
var K = Se(ae, ce, ee, ue, oe + "." + ce, n);
|
|
@@ -13138,14 +13138,14 @@ Valid keys: ` + JSON.stringify(Object.keys(R), null, " ")
|
|
|
13138
13138
|
return !0;
|
|
13139
13139
|
var B = p(R);
|
|
13140
13140
|
if (B) {
|
|
13141
|
-
var Q = B.call(R),
|
|
13141
|
+
var Q = B.call(R), re;
|
|
13142
13142
|
if (B !== R.entries) {
|
|
13143
|
-
for (; !(
|
|
13144
|
-
if (!_(
|
|
13143
|
+
for (; !(re = Q.next()).done; )
|
|
13144
|
+
if (!_(re.value))
|
|
13145
13145
|
return !1;
|
|
13146
13146
|
} else
|
|
13147
|
-
for (; !(
|
|
13148
|
-
var ee =
|
|
13147
|
+
for (; !(re = Q.next()).done; ) {
|
|
13148
|
+
var ee = re.value;
|
|
13149
13149
|
if (ee && !_(ee[1]))
|
|
13150
13150
|
return !1;
|
|
13151
13151
|
}
|
|
@@ -15124,7 +15124,7 @@ function xp() {
|
|
|
15124
15124
|
return typeof y == "function" ? y : uc;
|
|
15125
15125
|
}, [y]), Z = mt(function() {
|
|
15126
15126
|
return typeof g == "function" ? g : uc;
|
|
15127
|
-
}, [g]), _ = Yt(null), F = Yt(null), N = qp(QS, Ia), W = Ui(N, 2), A = W[0], j = W[1], R = A.isFocused, B = A.isFileDialogActive, Q = Yt(typeof window < "u" && window.isSecureContext && w && $S()),
|
|
15127
|
+
}, [g]), _ = Yt(null), F = Yt(null), N = qp(QS, Ia), W = Ui(N, 2), A = W[0], j = W[1], R = A.isFocused, B = A.isFileDialogActive, Q = Yt(typeof window < "u" && window.isSecureContext && w && $S()), re = function() {
|
|
15128
15128
|
!Q.current && B && setTimeout(function() {
|
|
15129
15129
|
if (F.current) {
|
|
15130
15130
|
var Y = F.current.files;
|
|
@@ -15134,19 +15134,19 @@ function xp() {
|
|
|
15134
15134
|
}
|
|
15135
15135
|
}, 300);
|
|
15136
15136
|
};
|
|
15137
|
-
|
|
15138
|
-
return window.addEventListener("focus",
|
|
15139
|
-
window.removeEventListener("focus",
|
|
15137
|
+
Ve(function() {
|
|
15138
|
+
return window.addEventListener("focus", re, !1), function() {
|
|
15139
|
+
window.removeEventListener("focus", re, !1);
|
|
15140
15140
|
};
|
|
15141
15141
|
}, [F, B, Z, Q]);
|
|
15142
15142
|
var ee = Yt([]), ue = function(Y) {
|
|
15143
15143
|
_.current && _.current.contains(Y.target) || (Y.preventDefault(), ee.current = []);
|
|
15144
15144
|
};
|
|
15145
|
-
|
|
15145
|
+
Ve(function() {
|
|
15146
15146
|
return C && (document.addEventListener("dragover", lc, !1), document.addEventListener("drop", ue, !1)), function() {
|
|
15147
15147
|
C && (document.removeEventListener("dragover", lc), document.removeEventListener("drop", ue));
|
|
15148
15148
|
};
|
|
15149
|
-
}, [_, C]),
|
|
15149
|
+
}, [_, C]), Ve(function() {
|
|
15150
15150
|
return !r && b && _.current && _.current.focus(), function() {
|
|
15151
15151
|
};
|
|
15152
15152
|
}, [_, b, r]);
|
|
@@ -15391,7 +15391,7 @@ const eE = ({ onFilesSelected: e, children: t }) => {
|
|
|
15391
15391
|
},
|
|
15392
15392
|
multiple: !0
|
|
15393
15393
|
});
|
|
15394
|
-
return
|
|
15394
|
+
return Ve(() => {
|
|
15395
15395
|
const a = (s) => {
|
|
15396
15396
|
s.clientX === 0 && s.clientY === 0 && r(!1);
|
|
15397
15397
|
};
|
|
@@ -15413,7 +15413,7 @@ const eE = ({ onFilesSelected: e, children: t }) => {
|
|
|
15413
15413
|
}) => {
|
|
15414
15414
|
var b;
|
|
15415
15415
|
const [s, c] = ie({}), [l, u] = ie(!1), [p, h] = ie(!1), [f, v] = ie(""), { toast: g } = Xo();
|
|
15416
|
-
|
|
15416
|
+
Ve(() => {
|
|
15417
15417
|
e && y(f);
|
|
15418
15418
|
}, [f, e]);
|
|
15419
15419
|
const y = async (C) => {
|
|
@@ -15528,19 +15528,19 @@ const ot = {
|
|
|
15528
15528
|
current: !1
|
|
15529
15529
|
}, dc = "crawl:jobs", Ln = "crawl:current_job", nE = (e) => {
|
|
15530
15530
|
const [t, n] = ie(null), [r, o] = ie(0);
|
|
15531
|
-
return
|
|
15531
|
+
return Ve(() => {
|
|
15532
15532
|
const i = localStorage.getItem(Ln);
|
|
15533
15533
|
if (i) {
|
|
15534
15534
|
const a = JSON.parse(i);
|
|
15535
15535
|
n(a), a != null && a.startTime && o(Math.floor((Date.now() - a.startTime) / 1e3));
|
|
15536
15536
|
}
|
|
15537
|
-
}, []),
|
|
15537
|
+
}, []), Ve(() => {
|
|
15538
15538
|
if (!(t != null && t.startTime)) return;
|
|
15539
15539
|
const i = setInterval(() => {
|
|
15540
15540
|
o(Math.floor((Date.now() - t.startTime) / 1e3));
|
|
15541
15541
|
}, 1e3);
|
|
15542
15542
|
return () => clearInterval(i);
|
|
15543
|
-
}, [t == null ? void 0 : t.startTime]),
|
|
15543
|
+
}, [t == null ? void 0 : t.startTime]), Ve(() => {
|
|
15544
15544
|
if (!(t != null && t.id)) return;
|
|
15545
15545
|
const i = async () => {
|
|
15546
15546
|
try {
|
|
@@ -15580,7 +15580,7 @@ const ot = {
|
|
|
15580
15580
|
}), n;
|
|
15581
15581
|
}, oE = (e, t, n = [], r, o, i) => {
|
|
15582
15582
|
const [a, s] = ie({}), [c, l] = ie(!1), [u, p] = ie(null), [h, f] = ie(0), v = Yt(t);
|
|
15583
|
-
|
|
15583
|
+
Ve(() => {
|
|
15584
15584
|
v.current = t;
|
|
15585
15585
|
}, [t]);
|
|
15586
15586
|
const g = async () => {
|
|
@@ -15619,7 +15619,7 @@ const ot = {
|
|
|
15619
15619
|
l(!1);
|
|
15620
15620
|
}
|
|
15621
15621
|
};
|
|
15622
|
-
return
|
|
15622
|
+
return Ve(() => {
|
|
15623
15623
|
!r && !c && g(), r && !c && y(r);
|
|
15624
15624
|
}, [r, o]), {
|
|
15625
15625
|
data: a,
|
|
@@ -15656,7 +15656,7 @@ const ot = {
|
|
|
15656
15656
|
preSelectedFiles: a
|
|
15657
15657
|
}) => {
|
|
15658
15658
|
var Ms;
|
|
15659
|
-
const [s, c] = ie([]), [l, u] = ie(""), [p, h] = ie(
|
|
15659
|
+
const [s, c] = ie([]), [l, u] = ie(""), [p, h] = ie(new Set(a)), [f, v] = ie(n), [g, y] = ie(""), [w, b] = ie(!1), [C, E] = ie(""), [x, P] = ie(!1), [D, M] = ie(null), [H, O] = ie(null), [G, U] = ie(!1), [Z, _] = ie(!1), [F, N] = ie(null), W = Yt(null), { toast: A } = Xo(), [j, R] = ie(null), [B, Q] = ie(null), [re, ee] = ie(""), [ue, oe] = ie(!1), [ae, fe] = ie(!1), [de, ce] = ie(/* @__PURE__ */ new Set()), [Se, K] = ie(""), [Te, We] = ie(!1), [qe, Rt] = ie(!1), [nt, S] = ie("rename"), [T, L] = ie(!1), [te, J] = ie(""), [X, V] = ie("1"), [Y, ye] = ie(!1), [Ce, _e] = ie(!1), [Tt, ut] = ie(!1), [ze, zt] = ie(1), [Bt, Ht] = ie(!1), { currentJob: Ee, elapsedTime: Zt, setCurrentJob: _n } = nE(t), [dt, mn] = ie(null), [rr, Fr] = ie(""), [Pp, or] = ie(!1), Np = new URL(window.location.href).searchParams.get("prefix") || "", Op = n + Np || g || n, {
|
|
15660
15660
|
data: _t,
|
|
15661
15661
|
isLoading: oi,
|
|
15662
15662
|
error: kp,
|
|
@@ -15670,10 +15670,7 @@ const ot = {
|
|
|
15670
15670
|
ze,
|
|
15671
15671
|
u
|
|
15672
15672
|
);
|
|
15673
|
-
|
|
15674
|
-
const k = new Set(a);
|
|
15675
|
-
h(k);
|
|
15676
|
-
}, []), Ie(() => {
|
|
15673
|
+
Ve(() => {
|
|
15677
15674
|
Ee != null && Ee.status && (Ee.status.status === "completed" ? (A({
|
|
15678
15675
|
title: "Thu thập website hoàn tất",
|
|
15679
15676
|
description: `Đã thu thập thành công ${Ee.url} với ${Ee.status.completed} trang`
|
|
@@ -15692,20 +15689,20 @@ const ot = {
|
|
|
15692
15689
|
const z = lo(_t, k);
|
|
15693
15690
|
if (z.length === 0)
|
|
15694
15691
|
return p.has(k) ? "all" : "none";
|
|
15695
|
-
const q = z.filter((
|
|
15692
|
+
const q = z.filter((ne) => p.has(ne)).length;
|
|
15696
15693
|
return q === 0 ? "none" : q === z.length ? "all" : "partial";
|
|
15697
15694
|
}, An = (k, z = !0) => {
|
|
15698
|
-
if (f !== k && (Ht(!0), y(k), v(k), h(/* @__PURE__ */ new Set()), z)) {
|
|
15695
|
+
if (f !== k && (Ht(!0), y(k), v(k), a || h(/* @__PURE__ */ new Set()), z)) {
|
|
15699
15696
|
console.log("🚀 ~ handleFolderClick ~ prefix:", k);
|
|
15700
|
-
const q = window.location.pathname === "/" ? "" : window.location.pathname,
|
|
15701
|
-
console.log("🚀 ~ useEffect ~ basePath:", q), console.log("🚀 ~ useEffect ~ newUrl:",
|
|
15697
|
+
const q = window.location.pathname === "/" ? "" : window.location.pathname, ne = k ? `${window.location.origin}${q}?prefix=${encodeURIComponent(k)}` : `${window.location.origin}${q}`;
|
|
15698
|
+
console.log("🚀 ~ useEffect ~ basePath:", q), console.log("🚀 ~ useEffect ~ newUrl:", ne), window.history.pushState({ path: ne }, "", ne);
|
|
15702
15699
|
}
|
|
15703
15700
|
};
|
|
15704
|
-
|
|
15701
|
+
Ve(() => {
|
|
15705
15702
|
Bt && (ot.current = !0, rt().finally(() => Ht(!1)));
|
|
15706
15703
|
}, [Bt]);
|
|
15707
15704
|
const Fp = async (k, z) => {
|
|
15708
|
-
var q,
|
|
15705
|
+
var q, ne;
|
|
15709
15706
|
P(!0);
|
|
15710
15707
|
try {
|
|
15711
15708
|
if (Qt.some(
|
|
@@ -15735,7 +15732,7 @@ const ot = {
|
|
|
15735
15732
|
}), E(""), b(!1);
|
|
15736
15733
|
} catch (le) {
|
|
15737
15734
|
console.error("Error creating folder:", le);
|
|
15738
|
-
const he = ((
|
|
15735
|
+
const he = ((ne = (q = le == null ? void 0 : le.response) == null ? void 0 : q.data) == null ? void 0 : ne.error) || "Không thể tạo thư mục";
|
|
15739
15736
|
A({
|
|
15740
15737
|
title: "Lỗi",
|
|
15741
15738
|
description: he,
|
|
@@ -15745,7 +15742,7 @@ const ot = {
|
|
|
15745
15742
|
P(!1);
|
|
15746
15743
|
}
|
|
15747
15744
|
}, ii = async (k, z, q) => {
|
|
15748
|
-
var
|
|
15745
|
+
var ne, le, he, Fe, Ye, Pn, $s, Is, Ls;
|
|
15749
15746
|
N(q), _e(!0);
|
|
15750
15747
|
try {
|
|
15751
15748
|
if (Array.from(k).reduce((Xe, cr) => Xe + cr.size, 0) >= 100 * 1024 * 1024) {
|
|
@@ -15788,7 +15785,7 @@ const ot = {
|
|
|
15788
15785
|
const Be = await ve.post(`${t}/api/check-files-existed`, gn, {
|
|
15789
15786
|
headers: { "Content-Type": "multipart/form-data" }
|
|
15790
15787
|
});
|
|
15791
|
-
if (((
|
|
15788
|
+
if (((ne = Be == null ? void 0 : Be.data) == null ? void 0 : ne.status) === 200)
|
|
15792
15789
|
await ve.post(`${t}/api/upload`, gn, {
|
|
15793
15790
|
headers: { "Content-Type": "multipart/form-data" }
|
|
15794
15791
|
}), u(""), y(z), setTimeout(async () => {
|
|
@@ -15819,11 +15816,11 @@ const ot = {
|
|
|
15819
15816
|
const q = new FormData();
|
|
15820
15817
|
if (dt) {
|
|
15821
15818
|
N(rr ? "folder" : "files"), or(!1);
|
|
15822
|
-
let
|
|
15819
|
+
let ne = localStorage.getItem("dataLogin"), le;
|
|
15823
15820
|
try {
|
|
15824
|
-
|
|
15821
|
+
ne && (ne = JSON.parse(ne), le = ne.user);
|
|
15825
15822
|
} catch {
|
|
15826
|
-
|
|
15823
|
+
ne = null;
|
|
15827
15824
|
}
|
|
15828
15825
|
if (le != null && le.id && (console.log("🚀 ~ uploadFiles ~ user:", le), q.append(
|
|
15829
15826
|
"metadata",
|
|
@@ -15849,10 +15846,10 @@ const ot = {
|
|
|
15849
15846
|
}
|
|
15850
15847
|
} catch (q) {
|
|
15851
15848
|
console.error("Lỗi tải lên:", q);
|
|
15852
|
-
const
|
|
15849
|
+
const ne = ((z = (k = q == null ? void 0 : q.response) == null ? void 0 : k.data) == null ? void 0 : z.error) || "Không thể tải lên tập tin";
|
|
15853
15850
|
A({
|
|
15854
15851
|
title: "Lỗi",
|
|
15855
|
-
description:
|
|
15852
|
+
description: ne,
|
|
15856
15853
|
variant: "destructive"
|
|
15857
15854
|
});
|
|
15858
15855
|
} finally {
|
|
@@ -15868,10 +15865,10 @@ const ot = {
|
|
|
15868
15865
|
paths: [k.key]
|
|
15869
15866
|
}
|
|
15870
15867
|
}), p.has(k.key)) {
|
|
15871
|
-
const
|
|
15872
|
-
|
|
15868
|
+
const ne = new Set(p);
|
|
15869
|
+
ne.delete(k.key), h(ne);
|
|
15873
15870
|
}
|
|
15874
|
-
const q = ((z = k.key) == null ? void 0 : z.replace(/^(.*?)(\/.*)?$/, (
|
|
15871
|
+
const q = ((z = k.key) == null ? void 0 : z.replace(/^(.*?)(\/.*)?$/, (ne, le, he) => !he || he === "/" ? "" : le + "/")) || "";
|
|
15875
15872
|
y(q), ot.current = !0, A({
|
|
15876
15873
|
title: "Đã xóa tập tin",
|
|
15877
15874
|
description: `Đã xóa thành công "${k.name}"`
|
|
@@ -15914,8 +15911,8 @@ const ot = {
|
|
|
15914
15911
|
await ve.delete(`${t}/api/files`, {
|
|
15915
15912
|
data: { paths: z }
|
|
15916
15913
|
});
|
|
15917
|
-
const
|
|
15918
|
-
y(
|
|
15914
|
+
const ne = ((k = q[0]) == null ? void 0 : k.key.replace(/^(.*?)(\/.*)?$/, (le, he, Fe) => !Fe || Fe === "/" ? "" : he + "/")) || "";
|
|
15915
|
+
y(ne), ot.current = !0, rt(), A({
|
|
15919
15916
|
title: "Đã xóa tập tin",
|
|
15920
15917
|
description: `Đã xóa thành công ${q.length} mục`
|
|
15921
15918
|
}), _(!1), h(/* @__PURE__ */ new Set());
|
|
@@ -15940,9 +15937,9 @@ const ot = {
|
|
|
15940
15937
|
fe(!0);
|
|
15941
15938
|
try {
|
|
15942
15939
|
const q = k.key;
|
|
15943
|
-
let
|
|
15944
|
-
k.isFolder ?
|
|
15945
|
-
const le =
|
|
15940
|
+
let ne;
|
|
15941
|
+
k.isFolder ? ne = q.split("/").slice(0, -2).join("/") + "/" : ne = q.substring(0, q.lastIndexOf("/") + 1);
|
|
15942
|
+
const le = ne + z + (k.isFolder ? "/" : "");
|
|
15946
15943
|
await ve.post(`${t}/api/rename`, {
|
|
15947
15944
|
oldPath: q,
|
|
15948
15945
|
newPath: le
|
|
@@ -15966,10 +15963,10 @@ const ot = {
|
|
|
15966
15963
|
`${t}/api/download`,
|
|
15967
15964
|
{ paths: k },
|
|
15968
15965
|
{ responseType: "blob" }
|
|
15969
|
-
), q = window.URL.createObjectURL(z.data),
|
|
15970
|
-
|
|
15966
|
+
), q = window.URL.createObjectURL(z.data), ne = document.createElement("a");
|
|
15967
|
+
ne.href = q;
|
|
15971
15968
|
const le = z.headers["Content-Disposition"] || z.headers["content-disposition"], he = le == null ? void 0 : le.match(/filename="(.+)"/), Fe = he ? decodeURIComponent(he[1]) : "download.zip";
|
|
15972
|
-
|
|
15969
|
+
ne.setAttribute("download", Fe), document.body.appendChild(ne), ne.click(), document.body.removeChild(ne), window.URL.revokeObjectURL(q), A({
|
|
15973
15970
|
title: "Bắt đầu tải xuống",
|
|
15974
15971
|
description: `Đã bắt đầu tải xuống ${k.length} mục${k.length > 1, ""}`
|
|
15975
15972
|
});
|
|
@@ -15982,14 +15979,14 @@ const ot = {
|
|
|
15982
15979
|
} finally {
|
|
15983
15980
|
ce((z) => {
|
|
15984
15981
|
const q = new Set(z);
|
|
15985
|
-
return k.forEach((
|
|
15982
|
+
return k.forEach((ne) => q.delete(ne)), q;
|
|
15986
15983
|
});
|
|
15987
15984
|
}
|
|
15988
15985
|
}, Ds = f ? f.replace(n, "").split("/").filter(Boolean) : [], jp = () => Array.from(p).map((k) => {
|
|
15989
15986
|
var z;
|
|
15990
15987
|
for (const q in _t) {
|
|
15991
|
-
const
|
|
15992
|
-
if (
|
|
15988
|
+
const ne = (z = _t[q]) == null ? void 0 : z.find((le) => le.key === k);
|
|
15989
|
+
if (ne) return ne;
|
|
15993
15990
|
}
|
|
15994
15991
|
return null;
|
|
15995
15992
|
}).filter((k) => k !== null), Fs = mt(() => {
|
|
@@ -15997,11 +15994,11 @@ const ot = {
|
|
|
15997
15994
|
{
|
|
15998
15995
|
id: "select",
|
|
15999
15996
|
header: () => {
|
|
16000
|
-
const z = rE(_t, f), q = z.length > 0 && z.every((le) => p.has(le)),
|
|
15997
|
+
const z = rE(_t, f), q = z.length > 0 && z.every((le) => p.has(le)), ne = z.some((le) => p.has(le));
|
|
16001
15998
|
return /* @__PURE__ */ m(
|
|
16002
15999
|
da,
|
|
16003
16000
|
{
|
|
16004
|
-
checked: q ? !0 :
|
|
16001
|
+
checked: q ? !0 : ne ? "indeterminate" : !1,
|
|
16005
16002
|
onCheckedChange: (le) => {
|
|
16006
16003
|
if (le) {
|
|
16007
16004
|
const he = Qt.reduce(
|
|
@@ -16050,14 +16047,14 @@ const ot = {
|
|
|
16050
16047
|
),
|
|
16051
16048
|
accessorKey: "name",
|
|
16052
16049
|
cell: ({ row: z }) => {
|
|
16053
|
-
const q = z.original,
|
|
16050
|
+
const q = z.original, ne = q.key.substring(0, q.key.lastIndexOf("/")) || "/", le = l.trim() !== "" && ne !== f, he = ne.split("/").filter(Boolean);
|
|
16054
16051
|
return /* @__PURE__ */ $("div", { className: "flex flex-col", children: [
|
|
16055
16052
|
/* @__PURE__ */ $(
|
|
16056
16053
|
"div",
|
|
16057
16054
|
{
|
|
16058
16055
|
className: `flex items-center gap-2 ${q.isFolder ? "cursor-pointer hover:text-blue-600" : ""}`,
|
|
16059
16056
|
onClick: () => {
|
|
16060
|
-
q.isFolder && (h(/* @__PURE__ */ new Set()), An(q.key));
|
|
16057
|
+
q.isFolder && (a || h(/* @__PURE__ */ new Set()), An(q.key));
|
|
16061
16058
|
},
|
|
16062
16059
|
children: [
|
|
16063
16060
|
q.isFolder ? /* @__PURE__ */ m(si, { className: "h-5 w-5 text-blue-500" }) : null,
|
|
@@ -16114,8 +16111,8 @@ const ot = {
|
|
|
16114
16111
|
),
|
|
16115
16112
|
accessorKey: "size",
|
|
16116
16113
|
cell: ({ getValue: z, row: q }) => {
|
|
16117
|
-
const
|
|
16118
|
-
return /* @__PURE__ */ m("div", { className: "w-full flex-row justify-end items-center text-right", children: /* @__PURE__ */ m("span", { children: q.original.isFolder ? "-" : Vv(
|
|
16114
|
+
const ne = z();
|
|
16115
|
+
return /* @__PURE__ */ m("div", { className: "w-full flex-row justify-end items-center text-right", children: /* @__PURE__ */ m("span", { children: q.original.isFolder ? "-" : Vv(ne) }) });
|
|
16119
16116
|
},
|
|
16120
16117
|
size: 100
|
|
16121
16118
|
},
|
|
@@ -16155,7 +16152,7 @@ const ot = {
|
|
|
16155
16152
|
onClick: () => ks([z.original.key]),
|
|
16156
16153
|
className: "h-8 w-8 p-0",
|
|
16157
16154
|
disabled: de.has(z.original.key),
|
|
16158
|
-
children: de.has(z.original.key) ? /* @__PURE__ */ m(
|
|
16155
|
+
children: de.has(z.original.key) ? /* @__PURE__ */ m(Le, { className: "h-4 w-4 animate-spin" }) : /* @__PURE__ */ m(js, { className: "h-4 w-4" })
|
|
16159
16156
|
}
|
|
16160
16157
|
) }),
|
|
16161
16158
|
/* @__PURE__ */ m(yn, { children: "Tải xuống" })
|
|
@@ -16223,21 +16220,21 @@ const ot = {
|
|
|
16223
16220
|
We(!0);
|
|
16224
16221
|
try {
|
|
16225
16222
|
if (gr(k)) {
|
|
16226
|
-
const
|
|
16223
|
+
const ne = await ve.get(`${t}/api/read-text`, {
|
|
16227
16224
|
params: { path: k.key }
|
|
16228
16225
|
});
|
|
16229
|
-
K(
|
|
16226
|
+
K(ne.data.content);
|
|
16230
16227
|
}
|
|
16231
16228
|
try {
|
|
16232
|
-
const
|
|
16229
|
+
const ne = await ve.get(`${t}/api/read-json`, {
|
|
16233
16230
|
params: { path: k.key + ".metadata.json" }
|
|
16234
|
-
}), le = ((q = (z =
|
|
16231
|
+
}), le = ((q = (z = ne == null ? void 0 : ne.data) == null ? void 0 : z.content) == null ? void 0 : q.metadataAttributes) || null;
|
|
16235
16232
|
return Q({ fullPath: j == null ? void 0 : j.key, ...le });
|
|
16236
16233
|
} catch {
|
|
16237
16234
|
return Q("Lỗi phân tích siêu dữ liệu");
|
|
16238
16235
|
}
|
|
16239
|
-
} catch (
|
|
16240
|
-
console.error("Error loading file content:",
|
|
16236
|
+
} catch (ne) {
|
|
16237
|
+
console.error("Error loading file content:", ne), A({
|
|
16241
16238
|
title: "Lỗi",
|
|
16242
16239
|
description: "Không thể tải nội dung tập tin",
|
|
16243
16240
|
variant: "destructive"
|
|
@@ -16284,7 +16281,7 @@ const ot = {
|
|
|
16284
16281
|
Rt(!1);
|
|
16285
16282
|
}
|
|
16286
16283
|
};
|
|
16287
|
-
|
|
16284
|
+
Ve(() => {
|
|
16288
16285
|
j && (j.isFolder || Vp(j), S("rename"));
|
|
16289
16286
|
}, [j]);
|
|
16290
16287
|
const Hp = async (k, z) => {
|
|
@@ -16299,23 +16296,23 @@ const ot = {
|
|
|
16299
16296
|
}
|
|
16300
16297
|
ye(!0);
|
|
16301
16298
|
try {
|
|
16302
|
-
const { data:
|
|
16299
|
+
const { data: ne } = await ve.post(`${t}/api/crawl`, {
|
|
16303
16300
|
url: k,
|
|
16304
16301
|
limit: z,
|
|
16305
16302
|
prefix: f
|
|
16306
16303
|
});
|
|
16307
|
-
if (
|
|
16304
|
+
if (ne.id) {
|
|
16308
16305
|
_n({
|
|
16309
|
-
id:
|
|
16306
|
+
id: ne.id,
|
|
16310
16307
|
url: k,
|
|
16311
16308
|
limit: z,
|
|
16312
16309
|
prefix: f,
|
|
16313
|
-
taskId: ((q =
|
|
16310
|
+
taskId: ((q = ne.task) == null ? void 0 : q.id) || ""
|
|
16314
16311
|
});
|
|
16315
16312
|
const le = localStorage.getItem(dc), he = le ? JSON.parse(le) : [];
|
|
16316
|
-
he.some((Fe) => Fe.id ===
|
|
16313
|
+
he.some((Fe) => Fe.id === ne.id) || (he.unshift({
|
|
16317
16314
|
url: k,
|
|
16318
|
-
id:
|
|
16315
|
+
id: ne.id,
|
|
16319
16316
|
limit: z,
|
|
16320
16317
|
prefix: f,
|
|
16321
16318
|
timestamp: Date.now()
|
|
@@ -16324,8 +16321,8 @@ const ot = {
|
|
|
16324
16321
|
description: `Đã thêm nhiệm vụ thu thập ${k} với giới hạn ${z}. Dữ liệu sẽ có sẵn sau khi thu thập hoàn tất.`
|
|
16325
16322
|
}), L(!1), J(""), V("1");
|
|
16326
16323
|
}
|
|
16327
|
-
} catch (
|
|
16328
|
-
console.error("Error crawling website:",
|
|
16324
|
+
} catch (ne) {
|
|
16325
|
+
console.error("Error crawling website:", ne), A({
|
|
16329
16326
|
title: "Lỗi",
|
|
16330
16327
|
description: "Không thể bắt đầu thu thập website",
|
|
16331
16328
|
variant: "destructive"
|
|
@@ -16348,15 +16345,15 @@ const ot = {
|
|
|
16348
16345
|
});
|
|
16349
16346
|
}
|
|
16350
16347
|
};
|
|
16351
|
-
return
|
|
16352
|
-
const k = () => {
|
|
16353
|
-
const
|
|
16354
|
-
|
|
16348
|
+
return Ve(() => {
|
|
16349
|
+
const k = (z = !0) => {
|
|
16350
|
+
const ne = new URL(window.location.href).searchParams.get("prefix") || "";
|
|
16351
|
+
ne ? An(n + ne, !1) : (z && !a && h(/* @__PURE__ */ new Set()), y(""), v(""), ot.current = !0, setTimeout(() => {
|
|
16355
16352
|
rt();
|
|
16356
16353
|
}, 0));
|
|
16357
16354
|
};
|
|
16358
|
-
return k(), window.addEventListener("popstate", k), () => {
|
|
16359
|
-
window.removeEventListener("popstate", k);
|
|
16355
|
+
return k(!1), window.addEventListener("popstate", () => k(!0)), () => {
|
|
16356
|
+
window.removeEventListener("popstate", () => k(!0));
|
|
16360
16357
|
};
|
|
16361
16358
|
}, []), /* @__PURE__ */ $("div", { className: "space-y-4 s3-explr-container", children: [
|
|
16362
16359
|
/* @__PURE__ */ m(vf, {}),
|
|
@@ -16467,7 +16464,7 @@ const ot = {
|
|
|
16467
16464
|
disabled: Array.from(p).some((k) => de.has(k)),
|
|
16468
16465
|
className: "flex items-center gap-2 s3-explr-download-selected-btn",
|
|
16469
16466
|
children: [
|
|
16470
|
-
Array.from(p).some((k) => de.has(k)) ? /* @__PURE__ */ m(
|
|
16467
|
+
Array.from(p).some((k) => de.has(k)) ? /* @__PURE__ */ m(Le, { className: "h-4 w-4 animate-spin mr-2 s3-explr-loader" }) : /* @__PURE__ */ m(js, { className: "h-4 w-4 s3-explr-download-icon" }),
|
|
16471
16468
|
"Tải xuống đã chọn (",
|
|
16472
16469
|
p.size,
|
|
16473
16470
|
")"
|
|
@@ -16516,7 +16513,7 @@ const ot = {
|
|
|
16516
16513
|
disabled: G,
|
|
16517
16514
|
className: "s3-explr-confirm-delete-btn",
|
|
16518
16515
|
children: G ? /* @__PURE__ */ $(Re, { children: [
|
|
16519
|
-
/* @__PURE__ */ m(
|
|
16516
|
+
/* @__PURE__ */ m(Le, { className: "mr-2 h-4 w-4 animate-spin s3-explr-loader" }),
|
|
16520
16517
|
"Đang xóa..."
|
|
16521
16518
|
] }) : "Xóa đã chọn"
|
|
16522
16519
|
}
|
|
@@ -16565,7 +16562,7 @@ const ot = {
|
|
|
16565
16562
|
disabled: x,
|
|
16566
16563
|
className: "s3-explr-create-btn",
|
|
16567
16564
|
children: [
|
|
16568
|
-
x && /* @__PURE__ */ m(
|
|
16565
|
+
x && /* @__PURE__ */ m(Le, { className: "mr-2 h-4 w-4 animate-spin s3-explr-loader" }),
|
|
16569
16566
|
x ? "Đang tạo..." : "Tạo"
|
|
16570
16567
|
]
|
|
16571
16568
|
}
|
|
@@ -16589,7 +16586,7 @@ const ot = {
|
|
|
16589
16586
|
},
|
|
16590
16587
|
disabled: F !== null || !!i && !f,
|
|
16591
16588
|
children: F === "files" ? /* @__PURE__ */ $(Re, { children: [
|
|
16592
|
-
/* @__PURE__ */ m(
|
|
16589
|
+
/* @__PURE__ */ m(Le, { className: "h-4 w-4 animate-spin mr-2 s3-explr-loader" }),
|
|
16593
16590
|
"Đang tải lên..."
|
|
16594
16591
|
] }) : /* @__PURE__ */ $(Re, { children: [
|
|
16595
16592
|
/* @__PURE__ */ m(Zp, { className: "h-4 w-4 s3-explr-upload-icon" }),
|
|
@@ -16612,7 +16609,7 @@ const ot = {
|
|
|
16612
16609
|
},
|
|
16613
16610
|
disabled: F !== null || !!i && !f,
|
|
16614
16611
|
children: F === "folder" ? /* @__PURE__ */ $(Re, { children: [
|
|
16615
|
-
/* @__PURE__ */ m(
|
|
16612
|
+
/* @__PURE__ */ m(Le, { className: "h-4 w-4 animate-spin mr-2 s3-explr-loader" }),
|
|
16616
16613
|
"Đang tải lên..."
|
|
16617
16614
|
] }) : /* @__PURE__ */ $(Re, { children: [
|
|
16618
16615
|
/* @__PURE__ */ m(si, { className: "h-4 w-4 s3-explr-folder-icon" }),
|
|
@@ -16630,7 +16627,7 @@ const ot = {
|
|
|
16630
16627
|
className: "flex items-center gap-2 s3-explr-add-website-btn",
|
|
16631
16628
|
disabled: !0,
|
|
16632
16629
|
children: [
|
|
16633
|
-
/* @__PURE__ */ m(
|
|
16630
|
+
/* @__PURE__ */ m(Le, { className: "h-4 w-4 animate-spin s3-explr-loader" }),
|
|
16634
16631
|
Ee.status ? /* @__PURE__ */ $(Re, { children: [
|
|
16635
16632
|
"Đang thu thập (",
|
|
16636
16633
|
Ee.status.completed,
|
|
@@ -16759,7 +16756,7 @@ const ot = {
|
|
|
16759
16756
|
disabled: Y || !te.trim(),
|
|
16760
16757
|
className: "s3-explr-crawl-btn",
|
|
16761
16758
|
children: Y ? /* @__PURE__ */ $(Re, { children: [
|
|
16762
|
-
/* @__PURE__ */ m(
|
|
16759
|
+
/* @__PURE__ */ m(Le, { className: "mr-2 h-4 w-4 animate-spin s3-explr-loader" }),
|
|
16763
16760
|
"Đang thu thập..."
|
|
16764
16761
|
] }) : "Bắt đầu thu thập"
|
|
16765
16762
|
}
|
|
@@ -16795,7 +16792,7 @@ const ot = {
|
|
|
16795
16792
|
disabled: Tt,
|
|
16796
16793
|
className: "s3-explr-confirm-delete-btn",
|
|
16797
16794
|
children: Tt ? /* @__PURE__ */ $(Re, { children: [
|
|
16798
|
-
/* @__PURE__ */ m(
|
|
16795
|
+
/* @__PURE__ */ m(Le, { className: "mr-2 h-4 w-4 animate-spin s3-explr-loader" }),
|
|
16799
16796
|
"Đang xóa..."
|
|
16800
16797
|
] }) : "Xóa"
|
|
16801
16798
|
}
|
|
@@ -16838,7 +16835,7 @@ const ot = {
|
|
|
16838
16835
|
rn,
|
|
16839
16836
|
{
|
|
16840
16837
|
id: "newName",
|
|
16841
|
-
value:
|
|
16838
|
+
value: re,
|
|
16842
16839
|
onChange: (k) => ee(k.target.value),
|
|
16843
16840
|
placeholder: "Nhập tên mới",
|
|
16844
16841
|
disabled: ae,
|
|
@@ -16847,7 +16844,7 @@ const ot = {
|
|
|
16847
16844
|
)
|
|
16848
16845
|
] }) }) }),
|
|
16849
16846
|
!j.isFolder && /* @__PURE__ */ $(Re, { children: [
|
|
16850
|
-
gr(j) && /* @__PURE__ */ m(oo, { value: "edit", children: /* @__PURE__ */ m("div", { className: "space-y-4 py-4", children: Te ? /* @__PURE__ */ m("div", { className: "flex items-center justify-center py-4", children: /* @__PURE__ */ m(
|
|
16847
|
+
gr(j) && /* @__PURE__ */ m(oo, { value: "edit", children: /* @__PURE__ */ m("div", { className: "space-y-4 py-4", children: Te ? /* @__PURE__ */ m("div", { className: "flex items-center justify-center py-4", children: /* @__PURE__ */ m(Le, { className: "h-6 w-6 animate-spin" }) }) : /* @__PURE__ */ $("div", { className: "h-[70dvh] min-h-[500px] overflow-hidden overflow-y-auto pb-3 px-1", children: [
|
|
16851
16848
|
/* @__PURE__ */ m(hn, { htmlFor: "content", className: "s3-explr-label", children: "Nội dung tập tin" }),
|
|
16852
16849
|
/* @__PURE__ */ m(
|
|
16853
16850
|
Sr,
|
|
@@ -16861,7 +16858,7 @@ const ot = {
|
|
|
16861
16858
|
}
|
|
16862
16859
|
)
|
|
16863
16860
|
] }) }) }),
|
|
16864
|
-
/* @__PURE__ */ m(oo, { value: "edit-metadata", children: /* @__PURE__ */ m("div", { className: "space-y-4 py-4", children: Te ? /* @__PURE__ */ m("div", { className: "flex items-center justify-center py-4", children: /* @__PURE__ */ m(
|
|
16861
|
+
/* @__PURE__ */ m(oo, { value: "edit-metadata", children: /* @__PURE__ */ m("div", { className: "space-y-4 py-4", children: Te ? /* @__PURE__ */ m("div", { className: "flex items-center justify-center py-4", children: /* @__PURE__ */ m(Le, { className: "h-6 w-6 animate-spin" }) }) : /* @__PURE__ */ m("div", { className: "h-[70dvh] min-h-[500px] overflow-hidden overflow-y-auto pb-3 px-1", children: B && typeof B == "object" && Object.entries(B).map(([k, z], q) => /* @__PURE__ */ $("div", { className: "pb-3 flex flex-col gap-2", children: [
|
|
16865
16862
|
/* @__PURE__ */ $(
|
|
16866
16863
|
hn,
|
|
16867
16864
|
{
|
|
@@ -16878,10 +16875,10 @@ const ot = {
|
|
|
16878
16875
|
{
|
|
16879
16876
|
id: k,
|
|
16880
16877
|
value: typeof z == "string" ? z : JSON.stringify(z),
|
|
16881
|
-
onChange: (
|
|
16878
|
+
onChange: (ne) => {
|
|
16882
16879
|
const le = {
|
|
16883
16880
|
...B,
|
|
16884
|
-
[k]:
|
|
16881
|
+
[k]: ne.target.value
|
|
16885
16882
|
};
|
|
16886
16883
|
Q(le);
|
|
16887
16884
|
},
|
|
@@ -16894,10 +16891,10 @@ const ot = {
|
|
|
16894
16891
|
{
|
|
16895
16892
|
id: k,
|
|
16896
16893
|
value: typeof z == "string" ? z : JSON.stringify(z),
|
|
16897
|
-
onChange: (
|
|
16894
|
+
onChange: (ne) => {
|
|
16898
16895
|
const le = {
|
|
16899
16896
|
...B,
|
|
16900
|
-
[k]:
|
|
16897
|
+
[k]: ne.target.value
|
|
16901
16898
|
};
|
|
16902
16899
|
Q(le);
|
|
16903
16900
|
},
|
|
@@ -16930,7 +16927,7 @@ const ot = {
|
|
|
16930
16927
|
disabled: qe || Te,
|
|
16931
16928
|
className: "s3-explr-save-btn",
|
|
16932
16929
|
children: qe ? /* @__PURE__ */ $(Re, { children: [
|
|
16933
|
-
/* @__PURE__ */ m(
|
|
16930
|
+
/* @__PURE__ */ m(Le, { className: "mr-2 h-4 w-4 animate-spin s3-explr-loader" }),
|
|
16934
16931
|
"Đang lưu..."
|
|
16935
16932
|
] }) : "Lưu thay đổi"
|
|
16936
16933
|
}
|
|
@@ -16941,7 +16938,7 @@ const ot = {
|
|
|
16941
16938
|
disabled: qe || Te,
|
|
16942
16939
|
className: "s3-explr-save-btn",
|
|
16943
16940
|
children: qe ? /* @__PURE__ */ $(Re, { children: [
|
|
16944
|
-
/* @__PURE__ */ m(
|
|
16941
|
+
/* @__PURE__ */ m(Le, { className: "mr-2 h-4 w-4 animate-spin s3-explr-loader" }),
|
|
16945
16942
|
"Đang lưu..."
|
|
16946
16943
|
] }) : "Lưu thay đổi"
|
|
16947
16944
|
}
|
|
@@ -16949,12 +16946,12 @@ const ot = {
|
|
|
16949
16946
|
be,
|
|
16950
16947
|
{
|
|
16951
16948
|
onClick: () => {
|
|
16952
|
-
|
|
16949
|
+
re.trim() && j && Lp(j, re.trim());
|
|
16953
16950
|
},
|
|
16954
|
-
disabled: ae || !
|
|
16951
|
+
disabled: ae || !re.trim() || re.trim() === (j == null ? void 0 : j.name),
|
|
16955
16952
|
className: "s3-explr-rename-btn",
|
|
16956
16953
|
children: ae ? /* @__PURE__ */ $(Re, { children: [
|
|
16957
|
-
/* @__PURE__ */ m(
|
|
16954
|
+
/* @__PURE__ */ m(Le, { className: "mr-2 h-4 w-4 animate-spin s3-explr-loader" }),
|
|
16958
16955
|
"Đang đổi tên..."
|
|
16959
16956
|
] }) : "Đổi tên"
|
|
16960
16957
|
}
|
|
@@ -17026,8 +17023,8 @@ const ot = {
|
|
|
17026
17023
|
}
|
|
17027
17024
|
),
|
|
17028
17025
|
Array.from({ length: Math.ceil(ir / 20) }, (k, z) => {
|
|
17029
|
-
const q = z + 1,
|
|
17030
|
-
return
|
|
17026
|
+
const q = z + 1, ne = Math.ceil(ir / 20);
|
|
17027
|
+
return ne > 7 && !(q === 1 || q === ne || q >= ze - 1 && q <= ze + 1) ? q === ze - 2 && ze > 4 || q === ze + 2 && ze < ne - 3 ? /* @__PURE__ */ m(Bo, { className: "pointer-events-none", children: "..." }, z) : null : /* @__PURE__ */ m(yt, { className: "cursor-pointer", children: /* @__PURE__ */ m(
|
|
17031
17028
|
er,
|
|
17032
17029
|
{
|
|
17033
17030
|
isActive: ze === q,
|
|
@@ -17071,9 +17068,9 @@ const ot = {
|
|
|
17071
17068
|
);
|
|
17072
17069
|
var Dr = (e) => e.type === "checkbox", bn = (e) => e instanceof Date, Je = (e) => e == null;
|
|
17073
17070
|
const wp = (e) => typeof e == "object";
|
|
17074
|
-
var
|
|
17071
|
+
var Ie = (e) => !Je(e) && !Array.isArray(e) && wp(e) && !bn(e), iE = (e) => Ie(e) && e.target ? Dr(e.target) ? e.target.checked : e.target.value : e, aE = (e) => e.substring(0, e.search(/\.\d+(\.|$)/)) || e, sE = (e, t) => e.has(aE(t)), lE = (e) => {
|
|
17075
17072
|
const t = e.constructor && e.constructor.prototype;
|
|
17076
|
-
return
|
|
17073
|
+
return Ie(t) && t.hasOwnProperty("isPrototypeOf");
|
|
17077
17074
|
}, _s = typeof window < "u" && typeof window.HTMLElement < "u" && typeof document < "u";
|
|
17078
17075
|
function pt(e) {
|
|
17079
17076
|
let t;
|
|
@@ -17082,7 +17079,7 @@ function pt(e) {
|
|
|
17082
17079
|
t = new Date(e);
|
|
17083
17080
|
else if (e instanceof Set)
|
|
17084
17081
|
t = new Set(e);
|
|
17085
|
-
else if (!(_s && (e instanceof Blob || r)) && (n ||
|
|
17082
|
+
else if (!(_s && (e instanceof Blob || r)) && (n || Ie(e)))
|
|
17086
17083
|
if (t = n ? [] : {}, !n && !lE(e))
|
|
17087
17084
|
t = e;
|
|
17088
17085
|
else
|
|
@@ -17093,7 +17090,7 @@ function pt(e) {
|
|
|
17093
17090
|
return t;
|
|
17094
17091
|
}
|
|
17095
17092
|
var ri = (e) => Array.isArray(e) ? e.filter(Boolean) : [], $e = (e) => e === void 0, se = (e, t, n) => {
|
|
17096
|
-
if (!t || !
|
|
17093
|
+
if (!t || !Ie(e))
|
|
17097
17094
|
return n;
|
|
17098
17095
|
const r = ri(t.split(/[,[\].]+?/)).reduce((o, i) => Je(o) ? o : o[i], e);
|
|
17099
17096
|
return $e(r) || r === e ? $e(e[t]) ? n : e[t] : r;
|
|
@@ -17105,7 +17102,7 @@ var ri = (e) => Array.isArray(e) ? e.filter(Boolean) : [], $e = (e) => e === voi
|
|
|
17105
17102
|
let c = n;
|
|
17106
17103
|
if (r !== a) {
|
|
17107
17104
|
const l = e[s];
|
|
17108
|
-
c =
|
|
17105
|
+
c = Ie(l) || Array.isArray(l) ? l : isNaN(+o[r + 1]) ? {} : [];
|
|
17109
17106
|
}
|
|
17110
17107
|
if (s === "__proto__" || s === "constructor" || s === "prototype")
|
|
17111
17108
|
return;
|
|
@@ -17145,7 +17142,7 @@ var cE = (e, t, n, r = !0) => {
|
|
|
17145
17142
|
}
|
|
17146
17143
|
});
|
|
17147
17144
|
return o;
|
|
17148
|
-
}, Qe = (e) =>
|
|
17145
|
+
}, Qe = (e) => Ie(e) && !Object.keys(e).length, uE = (e, t, n, r) => {
|
|
17149
17146
|
n(e);
|
|
17150
17147
|
const { name: o, ...i } = e;
|
|
17151
17148
|
return Qe(i) || Object.keys(i).length >= Object.keys(t).length || Object.keys(i).find((a) => t[a] === vt.all);
|
|
@@ -17186,7 +17183,7 @@ const br = (e, t, n, r) => {
|
|
|
17186
17183
|
return !0;
|
|
17187
17184
|
if (br(s, t))
|
|
17188
17185
|
break;
|
|
17189
|
-
} else if (
|
|
17186
|
+
} else if (Ie(s) && br(s, t))
|
|
17190
17187
|
break;
|
|
17191
17188
|
}
|
|
17192
17189
|
}
|
|
@@ -17233,7 +17230,7 @@ function yc(e, t, n = "validate") {
|
|
|
17233
17230
|
ref: t
|
|
17234
17231
|
};
|
|
17235
17232
|
}
|
|
17236
|
-
var Fn = (e) =>
|
|
17233
|
+
var Fn = (e) => Ie(e) && !Eo(e) ? e : {
|
|
17237
17234
|
value: e,
|
|
17238
17235
|
message: ""
|
|
17239
17236
|
}, xc = async (e, t, n, r, o) => {
|
|
@@ -17297,7 +17294,7 @@ var Fn = (e) => Le(e) && !Eo(e) ? e : {
|
|
|
17297
17294
|
...O(Wt.validate, Z.message)
|
|
17298
17295
|
}, !n))
|
|
17299
17296
|
return E(Z.message), x;
|
|
17300
|
-
} else if (
|
|
17297
|
+
} else if (Ie(f)) {
|
|
17301
17298
|
let U = {};
|
|
17302
17299
|
for (const Z in f) {
|
|
17303
17300
|
if (!Qe(U) && !n)
|
|
@@ -17332,7 +17329,7 @@ function hE(e) {
|
|
|
17332
17329
|
}
|
|
17333
17330
|
function He(e, t) {
|
|
17334
17331
|
const n = Array.isArray(t) ? t : As(t) ? [t] : bp(t), r = n.length === 1 ? e : gE(e, n), o = n.length - 1, i = n[o];
|
|
17335
|
-
return r && delete r[i], o !== 0 && (
|
|
17332
|
+
return r && delete r[i], o !== 0 && (Ie(r) && Qe(r) || Array.isArray(r) && hE(r)) && He(e, n.slice(0, -1)), e;
|
|
17336
17333
|
}
|
|
17337
17334
|
var Wi = () => {
|
|
17338
17335
|
let e = [];
|
|
@@ -17368,7 +17365,7 @@ function on(e, t) {
|
|
|
17368
17365
|
return !1;
|
|
17369
17366
|
if (o !== "ref") {
|
|
17370
17367
|
const a = t[o];
|
|
17371
|
-
if (bn(i) && bn(a) ||
|
|
17368
|
+
if (bn(i) && bn(a) || Ie(i) && Ie(a) || Array.isArray(i) && Array.isArray(a) ? !on(i, a) : i !== a)
|
|
17372
17369
|
return !1;
|
|
17373
17370
|
}
|
|
17374
17371
|
}
|
|
@@ -17382,16 +17379,16 @@ var Ep = (e) => e.type === "select-multiple", vE = (e) => Ns(e) || Dr(e), qi = (
|
|
|
17382
17379
|
};
|
|
17383
17380
|
function Ro(e, t = {}) {
|
|
17384
17381
|
const n = Array.isArray(e);
|
|
17385
|
-
if (
|
|
17382
|
+
if (Ie(e) || n)
|
|
17386
17383
|
for (const r in e)
|
|
17387
|
-
Array.isArray(e[r]) ||
|
|
17384
|
+
Array.isArray(e[r]) || Ie(e[r]) && !Rp(e[r]) ? (t[r] = Array.isArray(e[r]) ? [] : {}, Ro(e[r], t[r])) : Je(e[r]) || (t[r] = !0);
|
|
17388
17385
|
return t;
|
|
17389
17386
|
}
|
|
17390
17387
|
function Tp(e, t, n) {
|
|
17391
17388
|
const r = Array.isArray(e);
|
|
17392
|
-
if (
|
|
17389
|
+
if (Ie(e) || r)
|
|
17393
17390
|
for (const o in e)
|
|
17394
|
-
Array.isArray(e[o]) ||
|
|
17391
|
+
Array.isArray(e[o]) || Ie(e[o]) && !Rp(e[o]) ? $e(t) || La(n[o]) ? n[o] = Array.isArray(e[o]) ? Ro(e[o], []) : { ...Ro(e[o]) } : Tp(e[o], Je(t) ? {} : t[o], n[o]) : n[o] = !on(e[o], t[o]);
|
|
17395
17392
|
return n;
|
|
17396
17393
|
}
|
|
17397
17394
|
var hr = (e, t) => Tp(e, t, Ro(t)), _p = (e, { valueAsNumber: t, valueAsDate: n, setValueAs: r }) => $e(e) ? e : t ? e === "" ? NaN : e && +e : n && It(e) ? new Date(e) : r ? r(e) : e;
|
|
@@ -17412,9 +17409,9 @@ var yE = (e, t, n, r) => {
|
|
|
17412
17409
|
fields: o,
|
|
17413
17410
|
shouldUseNativeValidation: r
|
|
17414
17411
|
};
|
|
17415
|
-
}, vr = (e) => $e(e) ? e : Eo(e) ? e.source :
|
|
17412
|
+
}, vr = (e) => $e(e) ? e : Eo(e) ? e.source : Ie(e) ? Eo(e.value) ? e.value.source : e.value : e;
|
|
17416
17413
|
const wc = "AsyncFunction";
|
|
17417
|
-
var xE = (e) => !!e && !!e.validate && !!($t(e.validate) && e.validate.constructor.name === wc ||
|
|
17414
|
+
var xE = (e) => !!e && !!e.validate && !!($t(e.validate) && e.validate.constructor.name === wc || Ie(e.validate) && Object.values(e.validate).find((t) => t.constructor.name === wc)), wE = (e) => e.mount && (e.required || e.min || e.max || e.maxLength || e.minLength || e.pattern || e.validate);
|
|
17418
17415
|
function bc(e, t, n) {
|
|
17419
17416
|
const r = se(e, n);
|
|
17420
17417
|
if (r || As(n))
|
|
@@ -17462,7 +17459,7 @@ function EE(e = {}) {
|
|
|
17462
17459
|
validatingFields: {},
|
|
17463
17460
|
errors: t.errors || {},
|
|
17464
17461
|
disabled: t.disabled || !1
|
|
17465
|
-
}, r = {}, o =
|
|
17462
|
+
}, r = {}, o = Ie(t.defaultValues) || Ie(t.values) ? pt(t.defaultValues || t.values) || {} : {}, i = t.shouldUnregister ? {} : pt(o), a = {
|
|
17466
17463
|
action: !1,
|
|
17467
17464
|
mount: !1,
|
|
17468
17465
|
watch: !1
|
|
@@ -17626,7 +17623,7 @@ function EE(e = {}) {
|
|
|
17626
17623
|
}, N = (S, T, L) => {
|
|
17627
17624
|
for (const te in T) {
|
|
17628
17625
|
const J = T[te], X = `${S}.${te}`, V = se(r, X);
|
|
17629
|
-
(s.array.has(S) ||
|
|
17626
|
+
(s.array.has(S) || Ie(J) || V && !V._f) && !bn(J) ? N(X, J, L) : F(X, J, L);
|
|
17630
17627
|
}
|
|
17631
17628
|
}, W = (S, T, L = {}) => {
|
|
17632
17629
|
const te = se(r, S), J = s.array.has(S), X = pt(T);
|
|
@@ -17698,7 +17695,7 @@ function EE(e = {}) {
|
|
|
17698
17695
|
error: se((T || n).errors, S),
|
|
17699
17696
|
isValidating: !!se(n.validatingFields, S),
|
|
17700
17697
|
isTouched: !!se((T || n).touchedFields, S)
|
|
17701
|
-
}),
|
|
17698
|
+
}), re = (S) => {
|
|
17702
17699
|
S && co(S).forEach((T) => He(n.errors, T)), p.state.next({
|
|
17703
17700
|
errors: S ? n.errors : {}
|
|
17704
17701
|
});
|
|
@@ -17950,7 +17947,7 @@ function EE(e = {}) {
|
|
|
17950
17947
|
getValues: B,
|
|
17951
17948
|
reset: We,
|
|
17952
17949
|
resetField: K,
|
|
17953
|
-
clearErrors:
|
|
17950
|
+
clearErrors: re,
|
|
17954
17951
|
unregister: oe,
|
|
17955
17952
|
setError: ee,
|
|
17956
17953
|
setFocus: (S, T = {}) => {
|
|
@@ -18034,7 +18031,7 @@ const Ap = ({ className: e, children: t, content: n, side: r }) => {
|
|
|
18034
18031
|
] }) });
|
|
18035
18032
|
}, TE = (e, t) => {
|
|
18036
18033
|
const [n, r] = ie(e);
|
|
18037
|
-
return
|
|
18034
|
+
return Ve(() => {
|
|
18038
18035
|
const o = setTimeout(() => {
|
|
18039
18036
|
r(e);
|
|
18040
18037
|
}, t);
|
|
@@ -18156,9 +18153,9 @@ const Ap = ({ className: e, children: t, content: n, side: r }) => {
|
|
|
18156
18153
|
accessorKey: "actions",
|
|
18157
18154
|
header: () => /* @__PURE__ */ m("div", { className: "font-medium text-right", children: "Hành động" }),
|
|
18158
18155
|
cell: ({ row: H }) => {
|
|
18159
|
-
const [O, G] = ie(!1), [U, Z] = ie(!1), [_, F] = ie(!1), { handleSubmit: N, register: W, reset: A } = RE(), j = H.original.id, R = H.getValue("status"), B = H.getValue("content"), [Q,
|
|
18156
|
+
const [O, G] = ie(!1), [U, Z] = ie(!1), [_, F] = ie(!1), { handleSubmit: N, register: W, reset: A } = RE(), j = H.original.id, R = H.getValue("status"), B = H.getValue("content"), [Q, re] = ie(!1), ee = async () => {
|
|
18160
18157
|
try {
|
|
18161
|
-
|
|
18158
|
+
re(!0);
|
|
18162
18159
|
const oe = R === "unpublish" ? "published" : "unpublish", ae = await ve.patch(`${e}/api/toggle-publish/${j}`, {
|
|
18163
18160
|
id: j,
|
|
18164
18161
|
typeAction: "update",
|
|
@@ -18176,7 +18173,7 @@ const Ap = ({ className: e, children: t, content: n, side: r }) => {
|
|
|
18176
18173
|
} catch (oe) {
|
|
18177
18174
|
console.error("Error toggling publish status:", oe);
|
|
18178
18175
|
} finally {
|
|
18179
|
-
|
|
18176
|
+
re(!1);
|
|
18180
18177
|
}
|
|
18181
18178
|
};
|
|
18182
18179
|
return /* @__PURE__ */ $("div", { className: "flex items-center justify-end gap-2", children: [
|
|
@@ -18264,7 +18261,7 @@ const Ap = ({ className: e, children: t, content: n, side: r }) => {
|
|
|
18264
18261
|
)
|
|
18265
18262
|
] })
|
|
18266
18263
|
] }),
|
|
18267
|
-
/* @__PURE__ */ m("div", { className: "flex justify-end", children: /* @__PURE__ */ m(be, { disabled: O, type: "submit", variant: "default", children: O ? /* @__PURE__ */ m(
|
|
18264
|
+
/* @__PURE__ */ m("div", { className: "flex justify-end", children: /* @__PURE__ */ m(be, { disabled: O, type: "submit", variant: "default", children: O ? /* @__PURE__ */ m(Le, { className: "h-4 w-4 animate-spin" }) : "Ok" }) })
|
|
18268
18265
|
]
|
|
18269
18266
|
}
|
|
18270
18267
|
)
|
|
@@ -18280,7 +18277,7 @@ const Ap = ({ className: e, children: t, content: n, side: r }) => {
|
|
|
18280
18277
|
onClick: ee,
|
|
18281
18278
|
disabled: Q,
|
|
18282
18279
|
className: "w-[70px] px-2 py-0.5 h-7",
|
|
18283
|
-
children: Q ? /* @__PURE__ */ m(
|
|
18280
|
+
children: Q ? /* @__PURE__ */ m(Le, { className: "h-4 w-4 animate-spin" }) : R === "unpublish" ? "Publish" : "Unpublish"
|
|
18284
18281
|
}
|
|
18285
18282
|
)
|
|
18286
18283
|
] });
|
|
@@ -18341,7 +18338,7 @@ const Ap = ({ className: e, children: t, content: n, side: r }) => {
|
|
|
18341
18338
|
onClick: () => c(M),
|
|
18342
18339
|
isActive: s === M,
|
|
18343
18340
|
className: `cursor-pointer ${r ? "pointer-events-none" : ""}`,
|
|
18344
|
-
children: p === M ? /* @__PURE__ */ m(
|
|
18341
|
+
children: p === M ? /* @__PURE__ */ m(Le, { className: "h-4 w-4 animate-spin" }) : M
|
|
18345
18342
|
}
|
|
18346
18343
|
) }, M)
|
|
18347
18344
|
] })),
|
|
@@ -18380,7 +18377,7 @@ const Ap = ({ className: e, children: t, content: n, side: r }) => {
|
|
|
18380
18377
|
u(null), c(!1);
|
|
18381
18378
|
}
|
|
18382
18379
|
};
|
|
18383
|
-
|
|
18380
|
+
Ve(() => {
|
|
18384
18381
|
y(t);
|
|
18385
18382
|
}, [t, e]);
|
|
18386
18383
|
const w = async (x) => {
|
|
@@ -18436,7 +18433,7 @@ const Ap = ({ className: e, children: t, content: n, side: r }) => {
|
|
|
18436
18433
|
/* @__PURE__ */ m(Nt, { children: "Trạng Thái" }),
|
|
18437
18434
|
/* @__PURE__ */ m(Nt, { children: "Thao Tác" })
|
|
18438
18435
|
] }) }),
|
|
18439
|
-
/* @__PURE__ */ m(Wo, { children: s && r.length === 0 ? /* @__PURE__ */ m(xt, { children: /* @__PURE__ */ m(et, { colSpan: 7, className: "text-center py-4", children: /* @__PURE__ */ m(
|
|
18436
|
+
/* @__PURE__ */ m(Wo, { children: s && r.length === 0 ? /* @__PURE__ */ m(xt, { children: /* @__PURE__ */ m(et, { colSpan: 7, className: "text-center py-4", children: /* @__PURE__ */ m(Le, { className: "w-6 h-6 animate-spin mx-auto" }) }) }) : r.map((x) => {
|
|
18440
18437
|
var P, D;
|
|
18441
18438
|
return /* @__PURE__ */ $(xt, { children: [
|
|
18442
18439
|
/* @__PURE__ */ m(et, { className: "!w-[100px]", children: x.id }),
|
|
@@ -18467,7 +18464,7 @@ const Ap = ({ className: e, children: t, content: n, side: r }) => {
|
|
|
18467
18464
|
disabled: p.has(x.id.toString()),
|
|
18468
18465
|
className: "h-[32px]",
|
|
18469
18466
|
children: p.has(x.id.toString()) ? /* @__PURE__ */ $(Re, { children: [
|
|
18470
|
-
/* @__PURE__ */ m(
|
|
18467
|
+
/* @__PURE__ */ m(Le, { className: "mr-2 h-4 w-4 animate-spin" }),
|
|
18471
18468
|
"Đang thử lại..."
|
|
18472
18469
|
] }) : "Thử Lại"
|
|
18473
18470
|
}
|
|
@@ -18493,7 +18490,7 @@ const Ap = ({ className: e, children: t, content: n, side: r }) => {
|
|
|
18493
18490
|
onClick: () => n(x),
|
|
18494
18491
|
isActive: t === x,
|
|
18495
18492
|
className: `cursor-pointer ${l !== null ? "pointer-events-none" : ""}`,
|
|
18496
|
-
children: l === x ? /* @__PURE__ */ m(
|
|
18493
|
+
children: l === x ? /* @__PURE__ */ m(Le, { className: "h-4 w-4 animate-spin" }) : x
|
|
18497
18494
|
}
|
|
18498
18495
|
) }, x)
|
|
18499
18496
|
] })),
|