dccxx-s3-explorer 1.0.30 → 1.0.31
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
CHANGED
|
@@ -6262,7 +6262,7 @@ const ge = (e) => {
|
|
|
6262
6262
|
}
|
|
6263
6263
|
};
|
|
6264
6264
|
}, Am = /* @__PURE__ */ um(Pm);
|
|
6265
|
-
function
|
|
6265
|
+
function ne(...e) {
|
|
6266
6266
|
return Am(Vl(e));
|
|
6267
6267
|
}
|
|
6268
6268
|
const _m = (e) => {
|
|
@@ -6274,7 +6274,7 @@ const _m = (e) => {
|
|
|
6274
6274
|
{
|
|
6275
6275
|
ref: n,
|
|
6276
6276
|
"aria-label": "breadcrumb",
|
|
6277
|
-
className:
|
|
6277
|
+
className: ne("s3-explr-ui-breadcrumb", e),
|
|
6278
6278
|
...t
|
|
6279
6279
|
}
|
|
6280
6280
|
));
|
|
@@ -6284,7 +6284,7 @@ const Gl = u.forwardRef(
|
|
|
6284
6284
|
"ol",
|
|
6285
6285
|
{
|
|
6286
6286
|
ref: n,
|
|
6287
|
-
className:
|
|
6287
|
+
className: ne(
|
|
6288
6288
|
"flex flex-wrap items-center gap-1.5 break-words text-sm text-muted-foreground sm:gap-2.5",
|
|
6289
6289
|
"s3-explr-ui-breadcrumb-list",
|
|
6290
6290
|
e
|
|
@@ -6299,7 +6299,7 @@ const fs = u.forwardRef(
|
|
|
6299
6299
|
"li",
|
|
6300
6300
|
{
|
|
6301
6301
|
ref: n,
|
|
6302
|
-
className:
|
|
6302
|
+
className: ne("inline-flex items-center gap-1.5", "s3-explr-ui-breadcrumb-item", e),
|
|
6303
6303
|
...t
|
|
6304
6304
|
}
|
|
6305
6305
|
)
|
|
@@ -6309,7 +6309,7 @@ const ps = u.forwardRef(({ asChild: e, className: t, ...n }, r) => /* @__PURE__
|
|
|
6309
6309
|
e ? Sn : "a",
|
|
6310
6310
|
{
|
|
6311
6311
|
ref: r,
|
|
6312
|
-
className:
|
|
6312
|
+
className: ne(
|
|
6313
6313
|
"transition-colors hover:text-foreground",
|
|
6314
6314
|
"s3-explr-ui-breadcrumb-link",
|
|
6315
6315
|
t
|
|
@@ -6326,7 +6326,7 @@ const Fm = u.forwardRef(
|
|
|
6326
6326
|
role: "link",
|
|
6327
6327
|
"aria-disabled": "true",
|
|
6328
6328
|
"aria-current": "page",
|
|
6329
|
-
className:
|
|
6329
|
+
className: ne("font-normal text-foreground", "s3-explr-ui-breadcrumb-page", e),
|
|
6330
6330
|
...t
|
|
6331
6331
|
}
|
|
6332
6332
|
)
|
|
@@ -6337,7 +6337,7 @@ const ql = ({ children: e, className: t, ...n }) => /* @__PURE__ */ f(
|
|
|
6337
6337
|
{
|
|
6338
6338
|
role: "presentation",
|
|
6339
6339
|
"aria-hidden": "true",
|
|
6340
|
-
className:
|
|
6340
|
+
className: ne("[&>svg]:w-3.5 [&>svg]:h-3.5", "s3-explr-ui-breadcrumb-separator", t),
|
|
6341
6341
|
...n,
|
|
6342
6342
|
children: e ?? /* @__PURE__ */ f(kl, {})
|
|
6343
6343
|
}
|
|
@@ -6397,7 +6397,7 @@ const ra = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, oa = Vl, K
|
|
|
6397
6397
|
}
|
|
6398
6398
|
}
|
|
6399
6399
|
), le = u.forwardRef(
|
|
6400
|
-
({ className: e, variant: t, size: n, asChild: r = !1, ...o }, s) => /* @__PURE__ */ f(r ? Sn : "button", { className:
|
|
6400
|
+
({ className: e, variant: t, size: n, asChild: r = !1, ...o }, s) => /* @__PURE__ */ f(r ? Sn : "button", { className: ne(Kl({ variant: t, size: n, className: e })), ref: s, ...o })
|
|
6401
6401
|
);
|
|
6402
6402
|
le.displayName = "Button";
|
|
6403
6403
|
function Om(e, t) {
|
|
@@ -6798,7 +6798,7 @@ const ms = u.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ f(
|
|
|
6798
6798
|
nc,
|
|
6799
6799
|
{
|
|
6800
6800
|
ref: n,
|
|
6801
|
-
className:
|
|
6801
|
+
className: ne(
|
|
6802
6802
|
"s3-explr-ui-checkbox peer h-4 w-4 shrink-0 rounded-sm border border-primary shadow focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground",
|
|
6803
6803
|
e
|
|
6804
6804
|
),
|
|
@@ -6806,7 +6806,7 @@ const ms = u.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ f(
|
|
|
6806
6806
|
children: /* @__PURE__ */ f(
|
|
6807
6807
|
Xm,
|
|
6808
6808
|
{
|
|
6809
|
-
className:
|
|
6809
|
+
className: ne("s3-explr-ui-checkbox-indicator flex items-center justify-center text-current"),
|
|
6810
6810
|
children: /* @__PURE__ */ f(Lg, { className: "s3-explr-ui-checkbox-check h-4 w-4" })
|
|
6811
6811
|
}
|
|
6812
6812
|
)
|
|
@@ -7899,7 +7899,7 @@ const Mt = fv, Rr = pv, hv = gv, zc = u.forwardRef(({ className: e, ...t }, n) =
|
|
|
7899
7899
|
$c,
|
|
7900
7900
|
{
|
|
7901
7901
|
ref: n,
|
|
7902
|
-
className:
|
|
7902
|
+
className: ne(
|
|
7903
7903
|
"s3-explr-ui-dialog-overlay fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",
|
|
7904
7904
|
e
|
|
7905
7905
|
),
|
|
@@ -7913,7 +7913,7 @@ const St = u.forwardRef(({ className: e, children: t, ...n }, r) => /* @__PURE__
|
|
|
7913
7913
|
Lc,
|
|
7914
7914
|
{
|
|
7915
7915
|
ref: r,
|
|
7916
|
-
className:
|
|
7916
|
+
className: ne(
|
|
7917
7917
|
"s3-explr-ui-dialog-content fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",
|
|
7918
7918
|
e
|
|
7919
7919
|
),
|
|
@@ -7923,7 +7923,7 @@ const St = u.forwardRef(({ className: e, children: t, ...n }, r) => /* @__PURE__
|
|
|
7923
7923
|
/* @__PURE__ */ _(
|
|
7924
7924
|
mv,
|
|
7925
7925
|
{
|
|
7926
|
-
className:
|
|
7926
|
+
className: ne(
|
|
7927
7927
|
"s3-explr-ui-dialog-close absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground"
|
|
7928
7928
|
),
|
|
7929
7929
|
children: [
|
|
@@ -7940,7 +7940,7 @@ St.displayName = Lc.displayName;
|
|
|
7940
7940
|
const Rt = ({ className: e, ...t }) => /* @__PURE__ */ f(
|
|
7941
7941
|
"div",
|
|
7942
7942
|
{
|
|
7943
|
-
className:
|
|
7943
|
+
className: ne(
|
|
7944
7944
|
"s3-explr-ui-dialog-header flex flex-col space-y-1.5 text-center sm:text-left",
|
|
7945
7945
|
e
|
|
7946
7946
|
),
|
|
@@ -7951,7 +7951,7 @@ Rt.displayName = "DialogHeader";
|
|
|
7951
7951
|
const pn = ({ className: e, ...t }) => /* @__PURE__ */ f(
|
|
7952
7952
|
"div",
|
|
7953
7953
|
{
|
|
7954
|
-
className:
|
|
7954
|
+
className: ne(
|
|
7955
7955
|
"s3-explr-ui-dialog-footer flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",
|
|
7956
7956
|
e
|
|
7957
7957
|
),
|
|
@@ -7963,7 +7963,7 @@ const Et = u.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ f(
|
|
|
7963
7963
|
Vc,
|
|
7964
7964
|
{
|
|
7965
7965
|
ref: n,
|
|
7966
|
-
className:
|
|
7966
|
+
className: ne(
|
|
7967
7967
|
"s3-explr-ui-dialog-title text-lg font-semibold leading-none tracking-tight",
|
|
7968
7968
|
e
|
|
7969
7969
|
),
|
|
@@ -7975,7 +7975,7 @@ const Bn = u.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ f(
|
|
|
7975
7975
|
Bc,
|
|
7976
7976
|
{
|
|
7977
7977
|
ref: n,
|
|
7978
|
-
className:
|
|
7978
|
+
className: ne("s3-explr-ui-dialog-description text-sm text-muted-foreground", e),
|
|
7979
7979
|
...t
|
|
7980
7980
|
}
|
|
7981
7981
|
));
|
|
@@ -7985,7 +7985,7 @@ const It = u.forwardRef(
|
|
|
7985
7985
|
"input",
|
|
7986
7986
|
{
|
|
7987
7987
|
type: t,
|
|
7988
|
-
className:
|
|
7988
|
+
className: ne(
|
|
7989
7989
|
"s3-explr-ui-input",
|
|
7990
7990
|
"flex h-9 w-full rounded-md border border-input bg-transparent px-3 py-1 text-base shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",
|
|
7991
7991
|
e
|
|
@@ -8033,17 +8033,17 @@ const yv = Ks(
|
|
|
8033
8033
|
jc,
|
|
8034
8034
|
{
|
|
8035
8035
|
ref: o,
|
|
8036
|
-
className:
|
|
8036
|
+
className: ne(yv({ variant: t, size: n }), e),
|
|
8037
8037
|
...r
|
|
8038
8038
|
}
|
|
8039
8039
|
));
|
|
8040
8040
|
Gt.displayName = jc.displayName;
|
|
8041
8041
|
const eo = u.forwardRef(
|
|
8042
|
-
({ className: e, ...t }, n) => /* @__PURE__ */ f("div", { className:
|
|
8042
|
+
({ className: e, ...t }, n) => /* @__PURE__ */ f("div", { className: ne("relative w-full overflow-auto", "s3-explr-ui-table-container"), children: /* @__PURE__ */ f(
|
|
8043
8043
|
"table",
|
|
8044
8044
|
{
|
|
8045
8045
|
ref: n,
|
|
8046
|
-
className:
|
|
8046
|
+
className: ne("w-full caption-bottom text-sm", "s3-explr-ui-table", e),
|
|
8047
8047
|
...t
|
|
8048
8048
|
}
|
|
8049
8049
|
) })
|
|
@@ -8053,7 +8053,7 @@ const to = u.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ f(
|
|
|
8053
8053
|
"thead",
|
|
8054
8054
|
{
|
|
8055
8055
|
ref: n,
|
|
8056
|
-
className:
|
|
8056
|
+
className: ne("[&_tr]:border-b", "s3-explr-ui-table-header", e),
|
|
8057
8057
|
...t
|
|
8058
8058
|
}
|
|
8059
8059
|
));
|
|
@@ -8062,7 +8062,7 @@ const no = u.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ f(
|
|
|
8062
8062
|
"tbody",
|
|
8063
8063
|
{
|
|
8064
8064
|
ref: n,
|
|
8065
|
-
className:
|
|
8065
|
+
className: ne("[&_tr:last-child]:border-0", "s3-explr-ui-table-body", e),
|
|
8066
8066
|
...t
|
|
8067
8067
|
}
|
|
8068
8068
|
));
|
|
@@ -8071,7 +8071,7 @@ const wv = u.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ f(
|
|
|
8071
8071
|
"tfoot",
|
|
8072
8072
|
{
|
|
8073
8073
|
ref: n,
|
|
8074
|
-
className:
|
|
8074
|
+
className: ne(
|
|
8075
8075
|
"border-t bg-muted/50 font-medium [&>tr]:last:border-b-0",
|
|
8076
8076
|
"s3-explr-ui-table-footer",
|
|
8077
8077
|
e
|
|
@@ -8085,7 +8085,7 @@ const Qe = u.forwardRef(
|
|
|
8085
8085
|
"tr",
|
|
8086
8086
|
{
|
|
8087
8087
|
ref: n,
|
|
8088
|
-
className:
|
|
8088
|
+
className: ne(
|
|
8089
8089
|
"border-b transition-colors hover:bg-muted/50 data-[state=selected]:bg-muted",
|
|
8090
8090
|
"s3-explr-ui-table-row",
|
|
8091
8091
|
e
|
|
@@ -8099,7 +8099,7 @@ const ut = u.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ f(
|
|
|
8099
8099
|
"th",
|
|
8100
8100
|
{
|
|
8101
8101
|
ref: n,
|
|
8102
|
-
className:
|
|
8102
|
+
className: ne(
|
|
8103
8103
|
"h-10 px-2 text-left align-middle font-medium text-muted-foreground [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",
|
|
8104
8104
|
"s3-explr-ui-table-head",
|
|
8105
8105
|
e
|
|
@@ -8112,7 +8112,7 @@ const Le = u.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ f(
|
|
|
8112
8112
|
"td",
|
|
8113
8113
|
{
|
|
8114
8114
|
ref: n,
|
|
8115
|
-
className:
|
|
8115
|
+
className: ne(
|
|
8116
8116
|
"p-2 align-middle [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",
|
|
8117
8117
|
"s3-explr-ui-table-cell",
|
|
8118
8118
|
e
|
|
@@ -8125,7 +8125,7 @@ const bv = u.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ f(
|
|
|
8125
8125
|
"caption",
|
|
8126
8126
|
{
|
|
8127
8127
|
ref: n,
|
|
8128
|
-
className:
|
|
8128
|
+
className: ne("mt-4 text-sm text-muted-foreground", "s3-explr-ui-table-caption", e),
|
|
8129
8129
|
...t
|
|
8130
8130
|
}
|
|
8131
8131
|
));
|
|
@@ -8798,7 +8798,7 @@ const oy = ry, gu = u.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */
|
|
|
8798
8798
|
du,
|
|
8799
8799
|
{
|
|
8800
8800
|
ref: n,
|
|
8801
|
-
className:
|
|
8801
|
+
className: ne(
|
|
8802
8802
|
"inline-flex h-9 items-center justify-center rounded-lg bg-muted p-1 text-muted-foreground",
|
|
8803
8803
|
e
|
|
8804
8804
|
),
|
|
@@ -8810,7 +8810,7 @@ const Er = u.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ f(
|
|
|
8810
8810
|
fu,
|
|
8811
8811
|
{
|
|
8812
8812
|
ref: n,
|
|
8813
|
-
className:
|
|
8813
|
+
className: ne(
|
|
8814
8814
|
"inline-flex items-center justify-center whitespace-nowrap rounded-md px-3 py-1 text-sm font-medium ring-offset-background transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:bg-background data-[state=active]:text-foreground data-[state=active]:shadow",
|
|
8815
8815
|
e
|
|
8816
8816
|
),
|
|
@@ -8822,7 +8822,7 @@ const Nr = u.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ f(
|
|
|
8822
8822
|
pu,
|
|
8823
8823
|
{
|
|
8824
8824
|
ref: n,
|
|
8825
|
-
className:
|
|
8825
|
+
className: ne(
|
|
8826
8826
|
"mt-2 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",
|
|
8827
8827
|
e
|
|
8828
8828
|
),
|
|
@@ -8833,7 +8833,7 @@ Nr.displayName = pu.displayName;
|
|
|
8833
8833
|
const Un = u.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ f(
|
|
8834
8834
|
"textarea",
|
|
8835
8835
|
{
|
|
8836
|
-
className:
|
|
8836
|
+
className: ne(
|
|
8837
8837
|
"flex min-h-[60px] w-full rounded-md border border-input bg-transparent px-3 py-2 text-base shadow-sm placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",
|
|
8838
8838
|
e
|
|
8839
8839
|
),
|
|
@@ -9417,7 +9417,7 @@ const Fy = _y, Mu = u.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */
|
|
|
9417
9417
|
Pu,
|
|
9418
9418
|
{
|
|
9419
9419
|
ref: n,
|
|
9420
|
-
className:
|
|
9420
|
+
className: ne(
|
|
9421
9421
|
"s3-explr-ui-toast-viewport fixed top-0 z-[100] flex max-h-screen w-full flex-col-reverse p-4 sm:bottom-0 sm:right-0 sm:top-auto sm:flex-col md:max-w-[420px]",
|
|
9422
9422
|
e
|
|
9423
9423
|
),
|
|
@@ -9442,7 +9442,7 @@ const Oy = Ks(
|
|
|
9442
9442
|
Au,
|
|
9443
9443
|
{
|
|
9444
9444
|
ref: r,
|
|
9445
|
-
className:
|
|
9445
|
+
className: ne(Oy({ variant: t }), e),
|
|
9446
9446
|
...n
|
|
9447
9447
|
}
|
|
9448
9448
|
));
|
|
@@ -9451,7 +9451,7 @@ const Dy = u.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ f(
|
|
|
9451
9451
|
Ou,
|
|
9452
9452
|
{
|
|
9453
9453
|
ref: n,
|
|
9454
|
-
className:
|
|
9454
|
+
className: ne(
|
|
9455
9455
|
"s3-explr-ui-toast-action inline-flex h-8 shrink-0 items-center justify-center rounded-md border bg-transparent px-3 text-sm font-medium transition-colors hover:bg-secondary focus:outline-none focus:ring-1 focus:ring-ring disabled:pointer-events-none disabled:opacity-50 group-[.destructive]:border-muted/40 group-[.destructive]:hover:border-destructive/30 group-[.destructive]:hover:bg-destructive group-[.destructive]:hover:text-destructive-foreground group-[.destructive]:focus:ring-destructive",
|
|
9456
9456
|
e
|
|
9457
9457
|
),
|
|
@@ -9463,7 +9463,7 @@ const ku = u.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ f(
|
|
|
9463
9463
|
Du,
|
|
9464
9464
|
{
|
|
9465
9465
|
ref: n,
|
|
9466
|
-
className:
|
|
9466
|
+
className: ne(
|
|
9467
9467
|
"s3-explr-ui-toast-close absolute right-1 top-1 rounded-md p-1 text-foreground/50 opacity-0 transition-opacity hover:text-foreground focus:opacity-100 focus:outline-none focus:ring-1 group-hover:opacity-100 group-[.destructive]:text-red-300 group-[.destructive]:hover:text-red-50 group-[.destructive]:focus:ring-red-400 group-[.destructive]:focus:ring-offset-red-600",
|
|
9468
9468
|
e
|
|
9469
9469
|
),
|
|
@@ -9477,7 +9477,7 @@ const $u = u.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ f(
|
|
|
9477
9477
|
_u,
|
|
9478
9478
|
{
|
|
9479
9479
|
ref: n,
|
|
9480
|
-
className:
|
|
9480
|
+
className: ne("s3-explr-ui-toast-title text-sm font-semibold [&+div]:text-xs", e),
|
|
9481
9481
|
...t
|
|
9482
9482
|
}
|
|
9483
9483
|
));
|
|
@@ -9486,7 +9486,7 @@ const Lu = u.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ f(
|
|
|
9486
9486
|
Fu,
|
|
9487
9487
|
{
|
|
9488
9488
|
ref: n,
|
|
9489
|
-
className:
|
|
9489
|
+
className: ne("s3-explr-ui-toast-description text-sm opacity-90", e),
|
|
9490
9490
|
...t
|
|
9491
9491
|
}
|
|
9492
9492
|
));
|
|
@@ -11756,7 +11756,7 @@ const ln = Ab, cn = _b, un = Fb, qt = u.forwardRef(({ className: e, sideOffset:
|
|
|
11756
11756
|
{
|
|
11757
11757
|
ref: r,
|
|
11758
11758
|
sideOffset: t,
|
|
11759
|
-
className:
|
|
11759
|
+
className: ne(
|
|
11760
11760
|
"z-50 overflow-hidden rounded-md bg-primary px-3 py-1.5 text-xs text-primary-foreground animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",
|
|
11761
11761
|
e
|
|
11762
11762
|
),
|
|
@@ -12302,20 +12302,20 @@ const Hx = $s(({ onChange: e }, t) => {
|
|
|
12302
12302
|
}, Fi = async (D, k, U) => {
|
|
12303
12303
|
L(U), ye(!0);
|
|
12304
12304
|
try {
|
|
12305
|
-
|
|
12306
|
-
return;
|
|
12307
|
-
let q = localStorage.getItem("dataLogin"), ne;
|
|
12305
|
+
let q = localStorage.getItem("dataLogin"), te;
|
|
12308
12306
|
try {
|
|
12309
|
-
q && (q = JSON.parse(q),
|
|
12307
|
+
q && (q = JSON.parse(q), te = q.user);
|
|
12310
12308
|
} catch {
|
|
12311
12309
|
q = null;
|
|
12312
12310
|
}
|
|
12311
|
+
if (te && (te == null ? void 0 : te.role) !== "MASTER_ADMIN" && qg(D, B))
|
|
12312
|
+
return;
|
|
12313
12313
|
const ae = new FormData();
|
|
12314
|
-
ae.append("prefix", k), Array.from(D).forEach((he) => ae.append("files", he)),
|
|
12314
|
+
ae.append("prefix", k), Array.from(D).forEach((he) => ae.append("files", he)), te != null && te.id && (console.log("🚀 ~ uploadFiles ~ user:", te), ae.append(
|
|
12315
12315
|
"metadata",
|
|
12316
12316
|
JSON.stringify({
|
|
12317
|
-
creator:
|
|
12318
|
-
creatorId:
|
|
12317
|
+
creator: te.username,
|
|
12318
|
+
creatorId: te.id,
|
|
12319
12319
|
DataSource: "Tệp tải lên"
|
|
12320
12320
|
})
|
|
12321
12321
|
)), await ie.post(`${t}/api/upload`, ae, {
|
|
@@ -12335,7 +12335,7 @@ const Hx = $s(({ onChange: e }, t) => {
|
|
|
12335
12335
|
paths: [D.key]
|
|
12336
12336
|
}
|
|
12337
12337
|
});
|
|
12338
|
-
const U = ((k = D.key) == null ? void 0 : k.replace(/^(.*?)(\/.*)?$/, (q,
|
|
12338
|
+
const U = ((k = D.key) == null ? void 0 : k.replace(/^(.*?)(\/.*)?$/, (q, te, ae) => !ae || ae === "/" ? "" : te + "/")) || "";
|
|
12339
12339
|
v(U), Oe.current = !0, B({
|
|
12340
12340
|
title: "Đã xóa tập tin",
|
|
12341
12341
|
description: `Đã xóa thành công "${D.name}"`
|
|
@@ -12351,13 +12351,13 @@ const Hx = $s(({ onChange: e }, t) => {
|
|
|
12351
12351
|
}
|
|
12352
12352
|
}, sr = (D) => {
|
|
12353
12353
|
const k = new Set(l), U = typeof D == "function" ? D(_n) : D;
|
|
12354
|
-
new Set(Object.keys(_n).map(Number)).forEach((
|
|
12355
|
-
const ae = Wt[
|
|
12356
|
-
ae && (U[
|
|
12354
|
+
new Set(Object.keys(_n).map(Number)).forEach((te) => {
|
|
12355
|
+
const ae = Wt[te];
|
|
12356
|
+
ae && (U[te] || (k.delete(ae.key), ae.isFolder && _r(ke, ae.key).forEach(
|
|
12357
12357
|
(he) => k.delete(he)
|
|
12358
12358
|
)));
|
|
12359
|
-
}), Object.entries(U).forEach(([
|
|
12360
|
-
const he = parseInt(
|
|
12359
|
+
}), Object.entries(U).forEach(([te, ae]) => {
|
|
12360
|
+
const he = parseInt(te), yt = Wt[he];
|
|
12361
12361
|
yt && ae && (k.add(yt.key), yt.isFolder && _r(ke, yt.key).forEach((wo) => k.add(wo)));
|
|
12362
12362
|
}), d(k);
|
|
12363
12363
|
}, Hd = async () => {
|
|
@@ -12365,8 +12365,8 @@ const Hx = $s(({ onChange: e }, t) => {
|
|
|
12365
12365
|
O(!0);
|
|
12366
12366
|
try {
|
|
12367
12367
|
const k = Array.from(l), U = k.map(
|
|
12368
|
-
(
|
|
12369
|
-
).filter((
|
|
12368
|
+
(te) => Object.values(ke).flat().find((ae) => ae.key === te)
|
|
12369
|
+
).filter((te) => te !== void 0);
|
|
12370
12370
|
if (U.length === 0) {
|
|
12371
12371
|
B({
|
|
12372
12372
|
title: "Lỗi",
|
|
@@ -12378,7 +12378,7 @@ const Hx = $s(({ onChange: e }, t) => {
|
|
|
12378
12378
|
await ie.delete(`${t}/api/files`, {
|
|
12379
12379
|
data: { paths: k }
|
|
12380
12380
|
});
|
|
12381
|
-
const q = ((D = U[0]) == null ? void 0 : D.key.replace(/^(.*?)(\/.*)?$/, (
|
|
12381
|
+
const q = ((D = U[0]) == null ? void 0 : D.key.replace(/^(.*?)(\/.*)?$/, (te, ae, he) => !he || he === "/" ? "" : ae + "/")) || "";
|
|
12382
12382
|
v(q), Oe.current = !0, qe(), B({
|
|
12383
12383
|
title: "Đã xóa tập tin",
|
|
12384
12384
|
description: `Đã xóa thành công ${U.length} mục`
|
|
@@ -12398,10 +12398,10 @@ const Hx = $s(({ onChange: e }, t) => {
|
|
|
12398
12398
|
const U = D.key;
|
|
12399
12399
|
let q;
|
|
12400
12400
|
D.isFolder ? q = U.split("/").slice(0, -2).join("/") + "/" : q = U.substring(0, U.lastIndexOf("/") + 1);
|
|
12401
|
-
const
|
|
12401
|
+
const te = q + k + (D.isFolder ? "/" : "");
|
|
12402
12402
|
await ie.post(`${t}/api/rename`, {
|
|
12403
12403
|
oldPath: U,
|
|
12404
|
-
newPath:
|
|
12404
|
+
newPath: te
|
|
12405
12405
|
}), Oe.current = !0, await qe(), B({
|
|
12406
12406
|
title: "Đã đổi tên",
|
|
12407
12407
|
description: `Đã đổi tên thành công "${D.name}" thành "${k}"`
|
|
@@ -12424,7 +12424,7 @@ const Hx = $s(({ onChange: e }, t) => {
|
|
|
12424
12424
|
{ responseType: "blob" }
|
|
12425
12425
|
), U = window.URL.createObjectURL(k.data), q = document.createElement("a");
|
|
12426
12426
|
q.href = U;
|
|
12427
|
-
const
|
|
12427
|
+
const te = k.headers["Content-Disposition"] || k.headers["content-disposition"], ae = te == null ? void 0 : te.match(/filename="(.+)"/), he = ae ? decodeURIComponent(ae[1]) : "download.zip";
|
|
12428
12428
|
q.setAttribute("download", he), document.body.appendChild(q), q.click(), document.body.removeChild(q), window.URL.revokeObjectURL(U), B({
|
|
12429
12429
|
title: "Bắt đầu tải xuống",
|
|
12430
12430
|
description: `Đã bắt đầu tải xuống ${D.length} mục${D.length > 1, ""}`
|
|
@@ -12444,7 +12444,7 @@ const Hx = $s(({ onChange: e }, t) => {
|
|
|
12444
12444
|
}, Di = p ? p.replace(n, "").split("/").filter(Boolean) : [], Ud = () => Array.from(l).map((D) => {
|
|
12445
12445
|
var k;
|
|
12446
12446
|
for (const U in ke) {
|
|
12447
|
-
const q = (k = ke[U]) == null ? void 0 : k.find((
|
|
12447
|
+
const q = (k = ke[U]) == null ? void 0 : k.find((te) => te.key === D);
|
|
12448
12448
|
if (q) return q;
|
|
12449
12449
|
}
|
|
12450
12450
|
return null;
|
|
@@ -12453,13 +12453,13 @@ const Hx = $s(({ onChange: e }, t) => {
|
|
|
12453
12453
|
{
|
|
12454
12454
|
id: "select",
|
|
12455
12455
|
header: () => {
|
|
12456
|
-
const k = Gx(ke, p), U = k.length > 0 && k.every((
|
|
12456
|
+
const k = Gx(ke, p), U = k.length > 0 && k.every((te) => l.has(te)), q = k.some((te) => l.has(te));
|
|
12457
12457
|
return /* @__PURE__ */ f(
|
|
12458
12458
|
ms,
|
|
12459
12459
|
{
|
|
12460
12460
|
checked: U ? !0 : q ? "indeterminate" : !1,
|
|
12461
|
-
onCheckedChange: (
|
|
12462
|
-
if (
|
|
12461
|
+
onCheckedChange: (te) => {
|
|
12462
|
+
if (te) {
|
|
12463
12463
|
const ae = Wt.reduce(
|
|
12464
12464
|
(he, yt, wo) => (he[wo] = !0, he),
|
|
12465
12465
|
{}
|
|
@@ -12473,11 +12473,11 @@ const Hx = $s(({ onChange: e }, t) => {
|
|
|
12473
12473
|
);
|
|
12474
12474
|
},
|
|
12475
12475
|
cell: ({ row: k }) => {
|
|
12476
|
-
const U = k.original,
|
|
12476
|
+
const U = k.original, te = U.isFolder ? Vd(U.key) : l.has(U.key) ? "all" : "none";
|
|
12477
12477
|
return /* @__PURE__ */ f("div", { className: "flex items-center", children: /* @__PURE__ */ f(
|
|
12478
12478
|
ms,
|
|
12479
12479
|
{
|
|
12480
|
-
checked:
|
|
12480
|
+
checked: te === "partial" ? "indeterminate" : te === "all",
|
|
12481
12481
|
onCheckedChange: (ae) => {
|
|
12482
12482
|
const he = { ..._n };
|
|
12483
12483
|
ae ? he[k.index] = !0 : delete he[k.index], sr(he);
|
|
@@ -12493,7 +12493,7 @@ const Hx = $s(({ onChange: e }, t) => {
|
|
|
12493
12493
|
header: "Tên tập tin",
|
|
12494
12494
|
accessorKey: "name",
|
|
12495
12495
|
cell: ({ row: k }) => {
|
|
12496
|
-
const U = k.original, q = U.key.substring(0, U.key.lastIndexOf("/")) || "/",
|
|
12496
|
+
const U = k.original, q = U.key.substring(0, U.key.lastIndexOf("/")) || "/", te = a.trim() !== "" && q !== p, ae = q.split("/").filter(Boolean);
|
|
12497
12497
|
return /* @__PURE__ */ _("div", { className: "flex flex-col", children: [
|
|
12498
12498
|
/* @__PURE__ */ _(
|
|
12499
12499
|
"div",
|
|
@@ -12508,7 +12508,7 @@ const Hx = $s(({ onChange: e }, t) => {
|
|
|
12508
12508
|
]
|
|
12509
12509
|
}
|
|
12510
12510
|
),
|
|
12511
|
-
|
|
12511
|
+
te && /* @__PURE__ */ _("div", { className: "text-sm text-gray-500 flex items-center", children: [
|
|
12512
12512
|
/* @__PURE__ */ f(bo, { className: "h-4 w-4 text-gray-500 my-auto" }),
|
|
12513
12513
|
/* @__PURE__ */ _("span", { className: "flex items-center ml-1", children: [
|
|
12514
12514
|
/* @__PURE__ */ f(
|
|
@@ -12646,8 +12646,8 @@ const Hx = $s(({ onChange: e }, t) => {
|
|
|
12646
12646
|
try {
|
|
12647
12647
|
const q = await ie.get(`${t}/api/read-json`, {
|
|
12648
12648
|
params: { path: D.key + ".metadata.json" }
|
|
12649
|
-
}),
|
|
12650
|
-
return ce({ fullPath: j == null ? void 0 : j.key, ...
|
|
12649
|
+
}), te = ((U = (k = q == null ? void 0 : q.data) == null ? void 0 : k.content) == null ? void 0 : U.metadataAttributes) || null;
|
|
12650
|
+
return ce({ fullPath: j == null ? void 0 : j.key, ...te });
|
|
12651
12651
|
} catch {
|
|
12652
12652
|
return ce("Lỗi phân tích siêu dữ liệu");
|
|
12653
12653
|
}
|
|
@@ -12727,7 +12727,7 @@ const Hx = $s(({ onChange: e }, t) => {
|
|
|
12727
12727
|
prefix: p,
|
|
12728
12728
|
taskId: ((U = q.task) == null ? void 0 : U.id) || ""
|
|
12729
12729
|
});
|
|
12730
|
-
const
|
|
12730
|
+
const te = localStorage.getItem(Ba), ae = te ? JSON.parse(te) : [];
|
|
12731
12731
|
ae.some((he) => he.id === q.id) || (ae.unshift({
|
|
12732
12732
|
url: D,
|
|
12733
12733
|
id: q.id,
|
|
@@ -14335,7 +14335,7 @@ const $d = ({ className: e, children: t, content: n, side: r }) => {
|
|
|
14335
14335
|
"button",
|
|
14336
14336
|
{
|
|
14337
14337
|
type: "button",
|
|
14338
|
-
className:
|
|
14338
|
+
className: ne("cursor-pointer", e),
|
|
14339
14339
|
onClick: () => s(!o),
|
|
14340
14340
|
onMouseEnter: () => s(!0),
|
|
14341
14341
|
onMouseLeave: () => s(!1),
|
|
@@ -14353,7 +14353,7 @@ const $d = ({ className: e, children: t, content: n, side: r }) => {
|
|
|
14353
14353
|
{
|
|
14354
14354
|
role: "navigation",
|
|
14355
14355
|
"aria-label": "pagination",
|
|
14356
|
-
className:
|
|
14356
|
+
className: ne("mx-auto flex w-full justify-center", e),
|
|
14357
14357
|
...t
|
|
14358
14358
|
}
|
|
14359
14359
|
);
|
|
@@ -14362,12 +14362,12 @@ const Ni = u.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ f(
|
|
|
14362
14362
|
"ul",
|
|
14363
14363
|
{
|
|
14364
14364
|
ref: n,
|
|
14365
|
-
className:
|
|
14365
|
+
className: ne("flex flex-row items-center gap-1", e),
|
|
14366
14366
|
...t
|
|
14367
14367
|
}
|
|
14368
14368
|
));
|
|
14369
14369
|
Ni.displayName = "PaginationContent";
|
|
14370
|
-
const Nt = u.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ f("li", { ref: n, className:
|
|
14370
|
+
const Nt = u.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ f("li", { ref: n, className: ne("", e), ...t }));
|
|
14371
14371
|
Nt.displayName = "PaginationItem";
|
|
14372
14372
|
const tr = ({
|
|
14373
14373
|
className: e,
|
|
@@ -14378,7 +14378,7 @@ const tr = ({
|
|
|
14378
14378
|
"a",
|
|
14379
14379
|
{
|
|
14380
14380
|
"aria-current": t ? "page" : void 0,
|
|
14381
|
-
className:
|
|
14381
|
+
className: ne(
|
|
14382
14382
|
Kl({
|
|
14383
14383
|
variant: t ? "outline" : "ghost",
|
|
14384
14384
|
size: n
|
|
@@ -14397,7 +14397,7 @@ const Ti = ({
|
|
|
14397
14397
|
{
|
|
14398
14398
|
"aria-label": "Go to previous page",
|
|
14399
14399
|
size: "default",
|
|
14400
|
-
className:
|
|
14400
|
+
className: ne("gap-1 pl-2.5", e),
|
|
14401
14401
|
...t,
|
|
14402
14402
|
children: [
|
|
14403
14403
|
/* @__PURE__ */ f(Vg, { className: "h-4 w-4" }),
|
|
@@ -14414,7 +14414,7 @@ const Pi = ({
|
|
|
14414
14414
|
{
|
|
14415
14415
|
"aria-label": "Go to next page",
|
|
14416
14416
|
size: "default",
|
|
14417
|
-
className:
|
|
14417
|
+
className: ne("gap-1 pr-2.5", e),
|
|
14418
14418
|
...t,
|
|
14419
14419
|
children: [
|
|
14420
14420
|
/* @__PURE__ */ f("span", { children: "Next" }),
|
|
@@ -14430,7 +14430,7 @@ const Ai = ({
|
|
|
14430
14430
|
"span",
|
|
14431
14431
|
{
|
|
14432
14432
|
"aria-hidden": !0,
|
|
14433
|
-
className:
|
|
14433
|
+
className: ne("flex h-9 w-9 items-center justify-center", e),
|
|
14434
14434
|
...t,
|
|
14435
14435
|
children: [
|
|
14436
14436
|
/* @__PURE__ */ f(Bg, { className: "h-4 w-4" }),
|