dccxx-s3-explorer 1.0.14 → 1.0.15

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.
@@ -1,4 +1,4 @@
1
- import { jsx as p, Fragment as ce, jsxs as O } from "react/jsx-runtime";
1
+ import { jsx as p, Fragment as ce, jsxs as F } from "react/jsx-runtime";
2
2
  import * as u from "react";
3
3
  import le, { forwardRef as ys, createElement as _o, useState as Q, useRef as Er, useEffect as qt, useMemo as Zt, useImperativeHandle as gd, memo as Pa, useLayoutEffect as md } from "react";
4
4
  import * as Nr from "react-dom";
@@ -4113,7 +4113,7 @@ const de = (e) => {
4113
4113
  // I could also use lookbehind assertion in `lengthUnitRegex` but that isn't supported widely enough.
4114
4114
  Cg.test(e) && !Sg.test(e)
4115
4115
  ), bl = () => !1, Mg = (e) => Rg.test(e), kg = (e) => Eg.test(e), Ig = () => {
4116
- const e = de("colors"), t = de("spacing"), n = de("blur"), r = de("brightness"), o = de("borderColor"), s = de("borderRadius"), i = de("borderSpacing"), a = de("borderWidth"), c = de("contrast"), l = de("grayscale"), d = de("hueRotate"), g = de("invert"), h = de("gap"), f = de("gradientColorStops"), v = de("gradientColorStopPositions"), m = de("inset"), y = de("margin"), w = de("opacity"), x = de("padding"), E = de("saturate"), N = de("scale"), b = de("sepia"), S = de("skew"), R = de("space"), M = de("translate"), j = () => ["auto", "contain", "none"], H = () => ["auto", "hidden", "clip", "visible", "scroll"], Z = () => ["auto", re, t], _ = () => [re, t], I = () => ["", dt, Ct], F = () => ["auto", en, re], G = () => ["bottom", "center", "left", "left-bottom", "left-top", "right", "right-bottom", "right-top", "top"], B = () => ["solid", "dashed", "dotted", "double", "none"], q = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], K = () => ["start", "end", "center", "between", "around", "evenly", "stretch"], te = () => ["", "0", re], ue = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], oe = () => [en, re];
4116
+ const e = de("colors"), t = de("spacing"), n = de("blur"), r = de("brightness"), o = de("borderColor"), s = de("borderRadius"), i = de("borderSpacing"), a = de("borderWidth"), c = de("contrast"), l = de("grayscale"), d = de("hueRotate"), g = de("invert"), h = de("gap"), f = de("gradientColorStops"), v = de("gradientColorStopPositions"), m = de("inset"), y = de("margin"), w = de("opacity"), x = de("padding"), E = de("saturate"), N = de("scale"), b = de("sepia"), S = de("skew"), R = de("space"), M = de("translate"), j = () => ["auto", "contain", "none"], H = () => ["auto", "hidden", "clip", "visible", "scroll"], Z = () => ["auto", re, t], _ = () => [re, t], I = () => ["", dt, Ct], O = () => ["auto", en, re], G = () => ["bottom", "center", "left", "left-bottom", "left-top", "right", "right-bottom", "right-top", "top"], B = () => ["solid", "dashed", "dotted", "double", "none"], q = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], K = () => ["start", "end", "center", "between", "around", "evenly", "stretch"], te = () => ["", "0", re], ue = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], oe = () => [en, re];
4117
4117
  return {
4118
4118
  cacheSize: 500,
4119
4119
  separator: ":",
@@ -4431,14 +4431,14 @@ const de = (e) => {
4431
4431
  * @see https://tailwindcss.com/docs/grid-column
4432
4432
  */
4433
4433
  "col-start": [{
4434
- "col-start": F()
4434
+ "col-start": O()
4435
4435
  }],
4436
4436
  /**
4437
4437
  * Grid Column End
4438
4438
  * @see https://tailwindcss.com/docs/grid-column
4439
4439
  */
4440
4440
  "col-end": [{
4441
- "col-end": F()
4441
+ "col-end": O()
4442
4442
  }],
4443
4443
  /**
4444
4444
  * Grid Template Rows
@@ -4461,14 +4461,14 @@ const de = (e) => {
4461
4461
  * @see https://tailwindcss.com/docs/grid-row
4462
4462
  */
4463
4463
  "row-start": [{
4464
- "row-start": F()
4464
+ "row-start": O()
4465
4465
  }],
4466
4466
  /**
4467
4467
  * Grid Row End
4468
4468
  * @see https://tailwindcss.com/docs/grid-row
4469
4469
  */
4470
4470
  "row-end": [{
4471
- "row-end": F()
4471
+ "row-end": O()
4472
4472
  }],
4473
4473
  /**
4474
4474
  * Grid Auto Flow
@@ -6580,7 +6580,7 @@ var As = "Checkbox", [Qg, Px] = Mt(As), [em, tm] = Qg(As), Tl = u.forwardRef(
6580
6580
  const b = () => x(E.current);
6581
6581
  return N.addEventListener("reset", b), () => N.removeEventListener("reset", b);
6582
6582
  }
6583
- }, [h, x]), /* @__PURE__ */ O(em, { scope: n, state: w, disabled: a, children: [
6583
+ }, [h, x]), /* @__PURE__ */ F(em, { scope: n, state: w, disabled: a, children: [
6584
6584
  /* @__PURE__ */ p(
6585
6585
  xe.button,
6586
6586
  {
@@ -7692,7 +7692,7 @@ var mh = u.forwardRef(
7692
7692
  ), sc = u.forwardRef(
7693
7693
  (e, t) => {
7694
7694
  const { __scopeDialog: n, trapFocus: r, onOpenAutoFocus: o, onCloseAutoFocus: s, ...i } = e, a = Ze(Gt, n), c = u.useRef(null), l = ze(t, c);
7695
- return Cm(), /* @__PURE__ */ O(ce, { children: [
7695
+ return Cm(), /* @__PURE__ */ F(ce, { children: [
7696
7696
  /* @__PURE__ */ p(
7697
7697
  $l,
7698
7698
  {
@@ -7716,7 +7716,7 @@ var mh = u.forwardRef(
7716
7716
  )
7717
7717
  }
7718
7718
  ),
7719
- /* @__PURE__ */ O(ce, { children: [
7719
+ /* @__PURE__ */ F(ce, { children: [
7720
7720
  /* @__PURE__ */ p(vh, { titleId: a.titleId }),
7721
7721
  /* @__PURE__ */ p(wh, { contentRef: c, descriptionId: a.descriptionId })
7722
7722
  ] })
@@ -7787,9 +7787,9 @@ const Qt = bh, hr = xh, Rh = Ch, vc = u.forwardRef(({ className: e, ...t }, n) =
7787
7787
  }
7788
7788
  ));
7789
7789
  vc.displayName = pc.displayName;
7790
- const Vt = u.forwardRef(({ className: e, children: t, ...n }, r) => /* @__PURE__ */ O(Rh, { children: [
7790
+ const Vt = u.forwardRef(({ className: e, children: t, ...n }, r) => /* @__PURE__ */ F(Rh, { children: [
7791
7791
  /* @__PURE__ */ p(vc, {}),
7792
- /* @__PURE__ */ O(
7792
+ /* @__PURE__ */ F(
7793
7793
  gc,
7794
7794
  {
7795
7795
  ref: r,
@@ -7800,7 +7800,7 @@ const Vt = u.forwardRef(({ className: e, children: t, ...n }, r) => /* @__PURE__
7800
7800
  ...n,
7801
7801
  children: [
7802
7802
  t,
7803
- /* @__PURE__ */ O(
7803
+ /* @__PURE__ */ F(
7804
7804
  Sh,
7805
7805
  {
7806
7806
  className: J(
@@ -8964,13 +8964,13 @@ var qc = "ToastViewport", Rv = ["F8"], ls = "toast.viewportPause", cs = "toast.v
8964
8964
  (b = l.current) == null || b.focus();
8965
8965
  return;
8966
8966
  }
8967
- const _ = m({ tabbingDirection: j ? "backwards" : "forwards" }), I = _.findIndex((F) => F === M);
8967
+ const _ = m({ tabbingDirection: j ? "backwards" : "forwards" }), I = _.findIndex((O) => O === M);
8968
8968
  xo(_.slice(I + 1)) ? x.preventDefault() : j ? (S = l.current) == null || S.focus() : (R = d.current) == null || R.focus();
8969
8969
  }
8970
8970
  };
8971
8971
  return y.addEventListener("keydown", w), () => y.removeEventListener("keydown", w);
8972
8972
  }
8973
- }, [a, m]), /* @__PURE__ */ O(
8973
+ }, [a, m]), /* @__PURE__ */ F(
8974
8974
  pm,
8975
8975
  {
8976
8976
  ref: c,
@@ -9085,33 +9085,33 @@ var [Av, _v] = Gc(Hr, {
9085
9085
  onSwipeCancel: h,
9086
9086
  onSwipeEnd: f,
9087
9087
  ...v
9088
- } = e, m = zr(Hr, n), [y, w] = u.useState(null), x = ze(t, (F) => w(F)), E = u.useRef(null), N = u.useRef(null), b = o || m.duration, S = u.useRef(0), R = u.useRef(b), M = u.useRef(0), { onToastAdd: j, onToastRemove: H } = m, Z = Ne(() => {
9088
+ } = e, m = zr(Hr, n), [y, w] = u.useState(null), x = ze(t, (O) => w(O)), E = u.useRef(null), N = u.useRef(null), b = o || m.duration, S = u.useRef(0), R = u.useRef(b), M = u.useRef(0), { onToastAdd: j, onToastRemove: H } = m, Z = Ne(() => {
9089
9089
  var G;
9090
9090
  (y == null ? void 0 : y.contains(document.activeElement)) && ((G = m.viewport) == null || G.focus()), i();
9091
9091
  }), _ = u.useCallback(
9092
- (F) => {
9093
- !F || F === 1 / 0 || (window.clearTimeout(M.current), S.current = (/* @__PURE__ */ new Date()).getTime(), M.current = window.setTimeout(Z, F));
9092
+ (O) => {
9093
+ !O || O === 1 / 0 || (window.clearTimeout(M.current), S.current = (/* @__PURE__ */ new Date()).getTime(), M.current = window.setTimeout(Z, O));
9094
9094
  },
9095
9095
  [Z]
9096
9096
  );
9097
9097
  u.useEffect(() => {
9098
- const F = m.viewport;
9099
- if (F) {
9098
+ const O = m.viewport;
9099
+ if (O) {
9100
9100
  const G = () => {
9101
9101
  _(R.current), l == null || l();
9102
9102
  }, B = () => {
9103
9103
  const q = (/* @__PURE__ */ new Date()).getTime() - S.current;
9104
9104
  R.current = R.current - q, window.clearTimeout(M.current), c == null || c();
9105
9105
  };
9106
- return F.addEventListener(ls, B), F.addEventListener(cs, G), () => {
9107
- F.removeEventListener(ls, B), F.removeEventListener(cs, G);
9106
+ return O.addEventListener(ls, B), O.addEventListener(cs, G), () => {
9107
+ O.removeEventListener(ls, B), O.removeEventListener(cs, G);
9108
9108
  };
9109
9109
  }
9110
9110
  }, [m.viewport, b, c, l, _]), u.useEffect(() => {
9111
9111
  s && !m.isClosePausedRef.current && _(b);
9112
9112
  }, [s, b, m.isClosePausedRef, _]), u.useEffect(() => (j(), () => H()), [j, H]);
9113
9113
  const I = u.useMemo(() => y ? ru(y) : null, [y]);
9114
- return m.viewport ? /* @__PURE__ */ O(ce, { children: [
9114
+ return m.viewport ? /* @__PURE__ */ F(ce, { children: [
9115
9115
  I && /* @__PURE__ */ p(
9116
9116
  Ov,
9117
9117
  {
@@ -9142,25 +9142,25 @@ var [Av, _v] = Gc(Hr, {
9142
9142
  ...v,
9143
9143
  ref: x,
9144
9144
  style: { userSelect: "none", touchAction: "none", ...e.style },
9145
- onKeyDown: we(e.onKeyDown, (F) => {
9146
- F.key === "Escape" && (a == null || a(F.nativeEvent), F.nativeEvent.defaultPrevented || (m.isFocusedToastEscapeKeyDownRef.current = !0, Z()));
9145
+ onKeyDown: we(e.onKeyDown, (O) => {
9146
+ O.key === "Escape" && (a == null || a(O.nativeEvent), O.nativeEvent.defaultPrevented || (m.isFocusedToastEscapeKeyDownRef.current = !0, Z()));
9147
9147
  }),
9148
- onPointerDown: we(e.onPointerDown, (F) => {
9149
- F.button === 0 && (E.current = { x: F.clientX, y: F.clientY });
9148
+ onPointerDown: we(e.onPointerDown, (O) => {
9149
+ O.button === 0 && (E.current = { x: O.clientX, y: O.clientY });
9150
9150
  }),
9151
- onPointerMove: we(e.onPointerMove, (F) => {
9151
+ onPointerMove: we(e.onPointerMove, (O) => {
9152
9152
  if (!E.current) return;
9153
- const G = F.clientX - E.current.x, B = F.clientY - E.current.y, q = !!N.current, K = ["left", "right"].includes(m.swipeDirection), te = ["left", "up"].includes(m.swipeDirection) ? Math.min : Math.max, ue = K ? te(0, G) : 0, oe = K ? 0 : te(0, B), Pe = F.pointerType === "touch" ? 10 : 2, He = { x: ue, y: oe }, Qe = { originalEvent: F, delta: He };
9153
+ const G = O.clientX - E.current.x, B = O.clientY - E.current.y, q = !!N.current, K = ["left", "right"].includes(m.swipeDirection), te = ["left", "up"].includes(m.swipeDirection) ? Math.min : Math.max, ue = K ? te(0, G) : 0, oe = K ? 0 : te(0, B), Pe = O.pointerType === "touch" ? 10 : 2, He = { x: ue, y: oe }, Qe = { originalEvent: O, delta: He };
9154
9154
  q ? (N.current = He, Xn(Nv, g, Qe, {
9155
9155
  discrete: !1
9156
9156
  })) : Xi(He, m.swipeDirection, Pe) ? (N.current = He, Xn(Ev, d, Qe, {
9157
9157
  discrete: !1
9158
- }), F.target.setPointerCapture(F.pointerId)) : (Math.abs(G) > Pe || Math.abs(B) > Pe) && (E.current = null);
9158
+ }), O.target.setPointerCapture(O.pointerId)) : (Math.abs(G) > Pe || Math.abs(B) > Pe) && (E.current = null);
9159
9159
  }),
9160
- onPointerUp: we(e.onPointerUp, (F) => {
9161
- const G = N.current, B = F.target;
9162
- if (B.hasPointerCapture(F.pointerId) && B.releasePointerCapture(F.pointerId), N.current = null, E.current = null, G) {
9163
- const q = F.currentTarget, K = { originalEvent: F, delta: G };
9160
+ onPointerUp: we(e.onPointerUp, (O) => {
9161
+ const G = N.current, B = O.target;
9162
+ if (B.hasPointerCapture(O.pointerId) && B.releasePointerCapture(O.pointerId), N.current = null, E.current = null, G) {
9163
+ const q = O.currentTarget, K = { originalEvent: O, delta: G };
9164
9164
  Xi(G, m.swipeDirection, m.swipeThreshold) ? Xn(Tv, f, K, {
9165
9165
  discrete: !0
9166
9166
  }) : Xn(
@@ -9188,7 +9188,7 @@ var [Av, _v] = Gc(Hr, {
9188
9188
  return kv(() => i(!0)), u.useEffect(() => {
9189
9189
  const l = window.setTimeout(() => c(!0), 1e3);
9190
9190
  return () => window.clearTimeout(l);
9191
- }, []), a ? null : /* @__PURE__ */ p(Fs, { asChild: !0, children: /* @__PURE__ */ p(Vs, { ...r, children: s && /* @__PURE__ */ O(ce, { children: [
9191
+ }, []), a ? null : /* @__PURE__ */ p(Fs, { asChild: !0, children: /* @__PURE__ */ p(Vs, { ...r, children: s && /* @__PURE__ */ F(ce, { children: [
9192
9192
  o.label,
9193
9193
  " ",
9194
9194
  n
@@ -9462,10 +9462,10 @@ function js() {
9462
9462
  }
9463
9463
  function mu() {
9464
9464
  const { toasts: e } = js();
9465
- return /* @__PURE__ */ O(Vv, { children: [
9465
+ return /* @__PURE__ */ F(Vv, { children: [
9466
9466
  e.map(function({ id: t, title: n, description: r, action: o, ...s }) {
9467
- return /* @__PURE__ */ O(du, { ...s, className: `s3-explr-ui-toast ${s.className || ""}`, children: [
9468
- /* @__PURE__ */ O("div", { className: "s3-explr-ui-toast-content grid gap-1", children: [
9467
+ return /* @__PURE__ */ F(du, { ...s, className: `s3-explr-ui-toast ${s.className || ""}`, children: [
9468
+ /* @__PURE__ */ F("div", { className: "s3-explr-ui-toast-content grid gap-1", children: [
9469
9469
  n && /* @__PURE__ */ p(pu, { className: "s3-explr-ui-toast-title", children: n }),
9470
9470
  r && /* @__PURE__ */ p(gu, { className: "s3-explr-ui-toast-description", children: r })
9471
9471
  ] }),
@@ -9687,7 +9687,7 @@ const nw = ys(({ onChange: e }, t) => {
9687
9687
  {
9688
9688
  wait: 300
9689
9689
  }
9690
- ), /* @__PURE__ */ O(ce, { children: [
9690
+ ), /* @__PURE__ */ F(ce, { children: [
9691
9691
  /* @__PURE__ */ p(
9692
9692
  Tt,
9693
9693
  {
@@ -9784,7 +9784,7 @@ const nw = ys(({ onChange: e }, t) => {
9784
9784
  asSelector: r = !1,
9785
9785
  onSelected: o = (s) => console.log("selected:", s)
9786
9786
  }) => {
9787
- const [s, i] = Q(""), [a, c] = Q(/* @__PURE__ */ new Set()), [l, d] = Q(n), [g, h] = Q(!1), [f, v] = Q(""), [m, y] = Q(!1), [w, x] = Q(null), [E, N] = Q(!1), [b, S] = Q(!1), [R, M] = Q(!1), [j, H] = Q(null), Z = Er(null), { toast: _ } = js(), [I, F] = Q(null), [G, B] = Q(""), [q, K] = Q(!1), [te, ue] = Q(/* @__PURE__ */ new Set()), [oe, Pe] = Q(""), [He, Qe] = Q(!1), [kt, yt] = Q(!1), [wt, je] = Q("rename"), {
9787
+ const [s, i] = Q(""), [a, c] = Q(/* @__PURE__ */ new Set()), [l, d] = Q(n), [g, h] = Q(!1), [f, v] = Q(""), [m, y] = Q(!1), [w, x] = Q(null), [E, N] = Q(!1), [b, S] = Q(!1), [R, M] = Q(!1), [j, H] = Q(null), Z = Er(null), { toast: _ } = js(), [I, O] = Q(null), [G, B] = Q(""), [q, K] = Q(!1), [te, ue] = Q(/* @__PURE__ */ new Set()), [oe, Pe] = Q(""), [He, Qe] = Q(!1), [kt, yt] = Q(!1), [wt, je] = Q("rename"), {
9788
9788
  data: Ce = {},
9789
9789
  isLoading: bt,
9790
9790
  error: It,
@@ -9927,7 +9927,7 @@ const nw = ys(({ onChange: e }, t) => {
9927
9927
  }), nt.current = !0, await Ve(), _({
9928
9928
  title: "Item Renamed",
9929
9929
  description: `Successfully renamed "${D.name}" to "${$}"`
9930
- }), F(null), B("");
9930
+ }), O(null), B("");
9931
9931
  } catch (U) {
9932
9932
  console.error("Error renaming item:", U), _({
9933
9933
  title: "Error",
@@ -10016,8 +10016,8 @@ const nw = ys(({ onChange: e }, t) => {
10016
10016
  accessorKey: "name",
10017
10017
  cell: ({ row: $ }) => {
10018
10018
  const U = $.original, se = U.key.substring(0, U.key.lastIndexOf("/")) || "/", ae = s.trim() !== "" && se !== l, ge = se.split("/").filter(Boolean);
10019
- return /* @__PURE__ */ O("div", { className: "flex flex-col", children: [
10020
- /* @__PURE__ */ O(
10019
+ return /* @__PURE__ */ F("div", { className: "flex flex-col", children: [
10020
+ /* @__PURE__ */ F(
10021
10021
  "div",
10022
10022
  {
10023
10023
  className: `flex items-center gap-2 ${U.isFolder ? "cursor-pointer hover:text-blue-600" : ""}`,
@@ -10030,9 +10030,9 @@ const nw = ys(({ onChange: e }, t) => {
10030
10030
  ]
10031
10031
  }
10032
10032
  ),
10033
- ae && /* @__PURE__ */ O("div", { className: "text-sm text-gray-500 flex items-center", children: [
10033
+ ae && /* @__PURE__ */ F("div", { className: "text-sm text-gray-500 flex items-center", children: [
10034
10034
  /* @__PURE__ */ p(Zr, { className: "h-4 w-4 text-gray-500 my-auto" }),
10035
- /* @__PURE__ */ O("span", { className: "flex items-center ml-1", children: [
10035
+ /* @__PURE__ */ F("span", { className: "flex items-center ml-1", children: [
10036
10036
  /* @__PURE__ */ p(
10037
10037
  "span",
10038
10038
  {
@@ -10043,7 +10043,7 @@ const nw = ys(({ onChange: e }, t) => {
10043
10043
  children: "/"
10044
10044
  }
10045
10045
  ),
10046
- ge.map((Te, ut) => /* @__PURE__ */ O("span", { className: "flex items-center", children: [
10046
+ ge.map((Te, ut) => /* @__PURE__ */ F("span", { className: "flex items-center", children: [
10047
10047
  /* @__PURE__ */ p(
10048
10048
  "span",
10049
10049
  {
@@ -10085,7 +10085,7 @@ const nw = ys(({ onChange: e }, t) => {
10085
10085
  id: "actions",
10086
10086
  header: "Actions",
10087
10087
  accessorKey: "key",
10088
- cell: ({ row: $ }) => /* @__PURE__ */ O("div", { className: "flex items-center gap-2", children: [
10088
+ cell: ({ row: $ }) => /* @__PURE__ */ F("div", { className: "flex items-center gap-2", children: [
10089
10089
  /* @__PURE__ */ p(
10090
10090
  pe,
10091
10091
  {
@@ -10103,7 +10103,7 @@ const nw = ys(({ onChange: e }, t) => {
10103
10103
  variant: "ghost",
10104
10104
  size: "icon",
10105
10105
  onClick: () => {
10106
- F($.original), B($.original.name);
10106
+ O($.original), B($.original.name);
10107
10107
  },
10108
10108
  className: "h-8 w-8 p-0",
10109
10109
  children: /* @__PURE__ */ p(Ed, { className: "h-4 w-4" })
@@ -10158,7 +10158,7 @@ const nw = ys(({ onChange: e }, t) => {
10158
10158
  }), _({
10159
10159
  title: "File Saved",
10160
10160
  description: "File content has been updated successfully"
10161
- }), nt.current = !0, await Ve(), F(null), Pe(""), je("rename");
10161
+ }), nt.current = !0, await Ve(), O(null), Pe(""), je("rename");
10162
10162
  } catch (U) {
10163
10163
  console.error("Error saving file content:", U), _({
10164
10164
  title: "Error",
@@ -10171,8 +10171,8 @@ const nw = ys(({ onChange: e }, t) => {
10171
10171
  };
10172
10172
  return qt(() => {
10173
10173
  I && Jn(I) && (Yr(I), je("rename"));
10174
- }, [I]), /* @__PURE__ */ O("div", { className: "space-y-4 s3-explr-container", children: [
10175
- /* @__PURE__ */ p(xl, { className: "s3-explr-breadcrumb", children: /* @__PURE__ */ O(Cl, { className: "s3-explr-breadcrumb-list", children: [
10174
+ }, [I]), /* @__PURE__ */ F("div", { className: "space-y-4 s3-explr-container", children: [
10175
+ /* @__PURE__ */ p(xl, { className: "s3-explr-breadcrumb", children: /* @__PURE__ */ F(Cl, { className: "s3-explr-breadcrumb-list", children: [
10176
10176
  /* @__PURE__ */ p(Uo, { className: "s3-explr-breadcrumb-item", children: /* @__PURE__ */ p(
10177
10177
  Go,
10178
10178
  {
@@ -10181,7 +10181,7 @@ const nw = ys(({ onChange: e }, t) => {
10181
10181
  children: e
10182
10182
  }
10183
10183
  ) }),
10184
- ne.map((D, $) => /* @__PURE__ */ O(ce, { children: [
10184
+ ne.map((D, $) => /* @__PURE__ */ F(ce, { children: [
10185
10185
  /* @__PURE__ */ p(
10186
10186
  Sl,
10187
10187
  {
@@ -10201,7 +10201,7 @@ const nw = ys(({ onChange: e }, t) => {
10201
10201
  ) }, `item-${D}`)
10202
10202
  ] }))
10203
10203
  ] }) }),
10204
- /* @__PURE__ */ O("div", { className: "flex items-center space-x-4 s3-explr-toolbar", children: [
10204
+ /* @__PURE__ */ F("div", { className: "flex items-center space-x-4 s3-explr-toolbar", children: [
10205
10205
  /* @__PURE__ */ p("div", { className: "relative max-w-sm w-full s3-explr-search-container", children: /* @__PURE__ */ p(
10206
10206
  nw,
10207
10207
  {
@@ -10209,7 +10209,7 @@ const nw = ys(({ onChange: e }, t) => {
10209
10209
  onChange: (D) => i(D)
10210
10210
  }
10211
10211
  ) }),
10212
- /* @__PURE__ */ O(
10212
+ /* @__PURE__ */ F(
10213
10213
  pe,
10214
10214
  {
10215
10215
  variant: "outline",
@@ -10230,9 +10230,9 @@ const nw = ys(({ onChange: e }, t) => {
10230
10230
  ]
10231
10231
  }
10232
10232
  ),
10233
- !r && /* @__PURE__ */ O(ce, { children: [
10234
- a.size > 0 && /* @__PURE__ */ O(ce, { children: [
10235
- /* @__PURE__ */ O(
10233
+ !r && /* @__PURE__ */ F(ce, { children: [
10234
+ a.size > 0 && /* @__PURE__ */ F(ce, { children: [
10235
+ /* @__PURE__ */ F(
10236
10236
  pe,
10237
10237
  {
10238
10238
  variant: "outline",
@@ -10248,8 +10248,8 @@ const nw = ys(({ onChange: e }, t) => {
10248
10248
  ]
10249
10249
  }
10250
10250
  ),
10251
- /* @__PURE__ */ O(Qt, { open: R, onOpenChange: M, children: [
10252
- /* @__PURE__ */ p(hr, { asChild: !0, children: /* @__PURE__ */ O(
10251
+ /* @__PURE__ */ F(Qt, { open: R, onOpenChange: M, children: [
10252
+ /* @__PURE__ */ p(hr, { asChild: !0, children: /* @__PURE__ */ F(
10253
10253
  pe,
10254
10254
  {
10255
10255
  variant: "destructive",
@@ -10263,16 +10263,16 @@ const nw = ys(({ onChange: e }, t) => {
10263
10263
  ]
10264
10264
  }
10265
10265
  ) }),
10266
- /* @__PURE__ */ O(Vt, { className: "s3-explr-dialog-content", children: [
10267
- /* @__PURE__ */ O(Bt, { className: "s3-explr-dialog-header", children: [
10266
+ /* @__PURE__ */ F(Vt, { className: "s3-explr-dialog-content", children: [
10267
+ /* @__PURE__ */ F(Bt, { className: "s3-explr-dialog-header", children: [
10268
10268
  /* @__PURE__ */ p(zt, { className: "s3-explr-dialog-title", children: "Confirm Bulk Deletion" }),
10269
- /* @__PURE__ */ O(Jo, { className: "s3-explr-dialog-description", children: [
10269
+ /* @__PURE__ */ F(Jo, { className: "s3-explr-dialog-description", children: [
10270
10270
  "Are you sure you want to delete ",
10271
10271
  a.size,
10272
10272
  " selected items? This action cannot be undone."
10273
10273
  ] })
10274
10274
  ] }),
10275
- /* @__PURE__ */ O(sr, { className: "s3-explr-dialog-footer", children: [
10275
+ /* @__PURE__ */ F(sr, { className: "s3-explr-dialog-footer", children: [
10276
10276
  /* @__PURE__ */ p(
10277
10277
  pe,
10278
10278
  {
@@ -10289,7 +10289,7 @@ const nw = ys(({ onChange: e }, t) => {
10289
10289
  onClick: L,
10290
10290
  disabled: b,
10291
10291
  className: "s3-explr-confirm-delete-btn",
10292
- children: b ? /* @__PURE__ */ O(ce, { children: [
10292
+ children: b ? /* @__PURE__ */ F(ce, { children: [
10293
10293
  /* @__PURE__ */ p(Ae, { className: "mr-2 h-4 w-4 animate-spin s3-explr-loader" }),
10294
10294
  "Deleting..."
10295
10295
  ] }) : "Delete Selected"
@@ -10299,8 +10299,8 @@ const nw = ys(({ onChange: e }, t) => {
10299
10299
  ] })
10300
10300
  ] })
10301
10301
  ] }),
10302
- /* @__PURE__ */ O(Qt, { open: g, onOpenChange: h, children: [
10303
- /* @__PURE__ */ p(hr, { asChild: !0, children: /* @__PURE__ */ O(
10302
+ /* @__PURE__ */ F(Qt, { open: g, onOpenChange: h, children: [
10303
+ /* @__PURE__ */ p(hr, { asChild: !0, children: /* @__PURE__ */ F(
10304
10304
  pe,
10305
10305
  {
10306
10306
  variant: "outline",
@@ -10312,10 +10312,10 @@ const nw = ys(({ onChange: e }, t) => {
10312
10312
  ]
10313
10313
  }
10314
10314
  ) }),
10315
- /* @__PURE__ */ O(Vt, { className: "s3-explr-dialog-content", children: [
10315
+ /* @__PURE__ */ F(Vt, { className: "s3-explr-dialog-content", children: [
10316
10316
  /* @__PURE__ */ p(Bt, { className: "s3-explr-dialog-header", children: /* @__PURE__ */ p(zt, { className: "s3-explr-dialog-title", children: "Create New Folder" }) }),
10317
- /* @__PURE__ */ O("div", { className: "space-y-4 py-4 s3-explr-dialog-body", children: [
10318
- /* @__PURE__ */ O("div", { className: "space-y-2 s3-explr-input-group", children: [
10317
+ /* @__PURE__ */ F("div", { className: "space-y-4 py-4 s3-explr-dialog-body", children: [
10318
+ /* @__PURE__ */ F("div", { className: "space-y-2 s3-explr-input-group", children: [
10319
10319
  /* @__PURE__ */ p(Rn, { htmlFor: "name", className: "s3-explr-label", children: "Folder Name" }),
10320
10320
  /* @__PURE__ */ p(
10321
10321
  Tt,
@@ -10329,7 +10329,7 @@ const nw = ys(({ onChange: e }, t) => {
10329
10329
  }
10330
10330
  )
10331
10331
  ] }),
10332
- /* @__PURE__ */ O(
10332
+ /* @__PURE__ */ F(
10333
10333
  pe,
10334
10334
  {
10335
10335
  onClick: () => {
@@ -10346,7 +10346,7 @@ const nw = ys(({ onChange: e }, t) => {
10346
10346
  ] })
10347
10347
  ] })
10348
10348
  ] }),
10349
- /* @__PURE__ */ O("div", { className: "flex items-center gap-2 s3-explr-upload-group", children: [
10349
+ /* @__PURE__ */ F("div", { className: "flex items-center gap-2 s3-explr-upload-group", children: [
10350
10350
  /* @__PURE__ */ p(
10351
10351
  pe,
10352
10352
  {
@@ -10361,10 +10361,10 @@ const nw = ys(({ onChange: e }, t) => {
10361
10361
  }, D.click();
10362
10362
  },
10363
10363
  disabled: j !== null,
10364
- children: j === "files" ? /* @__PURE__ */ O(ce, { children: [
10364
+ children: j === "files" ? /* @__PURE__ */ F(ce, { children: [
10365
10365
  /* @__PURE__ */ p(Ae, { className: "h-4 w-4 animate-spin mr-2 s3-explr-loader" }),
10366
10366
  "Uploading..."
10367
- ] }) : /* @__PURE__ */ O(ce, { children: [
10367
+ ] }) : /* @__PURE__ */ F(ce, { children: [
10368
10368
  /* @__PURE__ */ p(bd, { className: "h-4 w-4 s3-explr-upload-icon" }),
10369
10369
  "Upload Files"
10370
10370
  ] })
@@ -10384,26 +10384,26 @@ const nw = ys(({ onChange: e }, t) => {
10384
10384
  }, D.click();
10385
10385
  },
10386
10386
  disabled: j !== null,
10387
- children: j === "folder" ? /* @__PURE__ */ O(ce, { children: [
10387
+ children: j === "folder" ? /* @__PURE__ */ F(ce, { children: [
10388
10388
  /* @__PURE__ */ p(Ae, { className: "h-4 w-4 animate-spin mr-2 s3-explr-loader" }),
10389
10389
  "Uploading..."
10390
- ] }) : /* @__PURE__ */ O(ce, { children: [
10390
+ ] }) : /* @__PURE__ */ F(ce, { children: [
10391
10391
  /* @__PURE__ */ p(Zr, { className: "h-4 w-4 s3-explr-folder-icon" }),
10392
10392
  "Upload Folder"
10393
10393
  ] })
10394
10394
  }
10395
10395
  )
10396
10396
  ] }),
10397
- /* @__PURE__ */ p(Qt, { open: !!w, onOpenChange: (D) => !D && x(null), children: /* @__PURE__ */ O(Vt, { className: "s3-explr-dialog-content", children: [
10398
- /* @__PURE__ */ O(Bt, { className: "s3-explr-dialog-header", children: [
10397
+ /* @__PURE__ */ p(Qt, { open: !!w, onOpenChange: (D) => !D && x(null), children: /* @__PURE__ */ F(Vt, { className: "s3-explr-dialog-content", children: [
10398
+ /* @__PURE__ */ F(Bt, { className: "s3-explr-dialog-header", children: [
10399
10399
  /* @__PURE__ */ p(zt, { className: "s3-explr-dialog-title", children: "Confirm Deletion" }),
10400
- /* @__PURE__ */ O(Jo, { className: "s3-explr-dialog-description", children: [
10400
+ /* @__PURE__ */ F(Jo, { className: "s3-explr-dialog-description", children: [
10401
10401
  "Are you sure you want to delete ",
10402
10402
  w == null ? void 0 : w.name,
10403
10403
  "? This action cannot be undone."
10404
10404
  ] })
10405
10405
  ] }),
10406
- /* @__PURE__ */ O(sr, { className: "s3-explr-dialog-footer", children: [
10406
+ /* @__PURE__ */ F(sr, { className: "s3-explr-dialog-footer", children: [
10407
10407
  /* @__PURE__ */ p(
10408
10408
  pe,
10409
10409
  {
@@ -10420,7 +10420,7 @@ const nw = ys(({ onChange: e }, t) => {
10420
10420
  onClick: () => A(w),
10421
10421
  disabled: E,
10422
10422
  className: "s3-explr-confirm-delete-btn",
10423
- children: E ? /* @__PURE__ */ O(ce, { children: [
10423
+ children: E ? /* @__PURE__ */ F(ce, { children: [
10424
10424
  /* @__PURE__ */ p(Ae, { className: "mr-2 h-4 w-4 animate-spin s3-explr-loader" }),
10425
10425
  "Deleting..."
10426
10426
  ] }) : "Delete"
@@ -10433,21 +10433,21 @@ const nw = ys(({ onChange: e }, t) => {
10433
10433
  {
10434
10434
  open: !!I,
10435
10435
  onOpenChange: (D) => {
10436
- D || (F(null), B(""), Pe(""), je("rename"));
10436
+ D || (O(null), B(""), Pe(""), je("rename"));
10437
10437
  },
10438
- children: /* @__PURE__ */ O(Vt, { className: "s3-explr-dialog-content max-w-2xl", children: [
10438
+ children: /* @__PURE__ */ F(Vt, { className: "s3-explr-dialog-content max-w-2xl", children: [
10439
10439
  /* @__PURE__ */ p(Bt, { className: "s3-explr-dialog-header", children: /* @__PURE__ */ p(zt, { className: "s3-explr-dialog-title", children: I != null && I.isFolder ? "Rename Folder" : Jn(I) ? "Manage File" : "Rename File" }) }),
10440
- I && !I.isFolder && Jn(I) ? /* @__PURE__ */ O(
10440
+ I && !I.isFolder && Jn(I) ? /* @__PURE__ */ F(
10441
10441
  fv,
10442
10442
  {
10443
10443
  value: wt,
10444
10444
  onValueChange: (D) => je(D),
10445
10445
  children: [
10446
- /* @__PURE__ */ O(Uc, { className: "grid w-full grid-cols-2", children: [
10446
+ /* @__PURE__ */ F(Uc, { className: "grid w-full grid-cols-2", children: [
10447
10447
  /* @__PURE__ */ p(os, { value: "rename", children: "Rename" }),
10448
10448
  /* @__PURE__ */ p(os, { value: "edit", children: "Edit Content" })
10449
10449
  ] }),
10450
- /* @__PURE__ */ p(ss, { value: "rename", children: /* @__PURE__ */ p("div", { className: "space-y-4 py-4 s3-explr-dialog-body", children: /* @__PURE__ */ O("div", { className: "space-y-2 s3-explr-input-group", children: [
10450
+ /* @__PURE__ */ p(ss, { value: "rename", children: /* @__PURE__ */ p("div", { className: "space-y-4 py-4 s3-explr-dialog-body", children: /* @__PURE__ */ F("div", { className: "space-y-2 s3-explr-input-group", children: [
10451
10451
  /* @__PURE__ */ p(Rn, { htmlFor: "newName", className: "s3-explr-label", children: "New Name" }),
10452
10452
  /* @__PURE__ */ p(
10453
10453
  Tt,
@@ -10461,7 +10461,7 @@ const nw = ys(({ onChange: e }, t) => {
10461
10461
  }
10462
10462
  )
10463
10463
  ] }) }) }),
10464
- /* @__PURE__ */ p(ss, { value: "edit", children: /* @__PURE__ */ p("div", { className: "space-y-4 py-4", children: He ? /* @__PURE__ */ p("div", { className: "flex items-center justify-center py-4", children: /* @__PURE__ */ p(Ae, { className: "h-6 w-6 animate-spin" }) }) : /* @__PURE__ */ O("div", { className: "space-y-2", children: [
10464
+ /* @__PURE__ */ p(ss, { value: "edit", children: /* @__PURE__ */ p("div", { className: "space-y-4 py-4", children: He ? /* @__PURE__ */ p("div", { className: "flex items-center justify-center py-4", children: /* @__PURE__ */ p(Ae, { className: "h-6 w-6 animate-spin" }) }) : /* @__PURE__ */ F("div", { className: "space-y-2", children: [
10465
10465
  /* @__PURE__ */ p(Rn, { htmlFor: "content", className: "s3-explr-label", children: "File Content" }),
10466
10466
  /* @__PURE__ */ p(
10467
10467
  vr,
@@ -10477,7 +10477,7 @@ const nw = ys(({ onChange: e }, t) => {
10477
10477
  ] }) }) })
10478
10478
  ]
10479
10479
  }
10480
- ) : /* @__PURE__ */ p("div", { className: "space-y-4 py-4 s3-explr-dialog-body", children: /* @__PURE__ */ O("div", { className: "space-y-2 s3-explr-input-group", children: [
10480
+ ) : /* @__PURE__ */ p("div", { className: "space-y-4 py-4 s3-explr-dialog-body", children: /* @__PURE__ */ F("div", { className: "space-y-2 s3-explr-input-group", children: [
10481
10481
  /* @__PURE__ */ p(Rn, { htmlFor: "newName", className: "s3-explr-label", children: "New Name" }),
10482
10482
  /* @__PURE__ */ p(
10483
10483
  Tt,
@@ -10491,13 +10491,13 @@ const nw = ys(({ onChange: e }, t) => {
10491
10491
  }
10492
10492
  )
10493
10493
  ] }) }),
10494
- /* @__PURE__ */ O(sr, { className: "s3-explr-dialog-footer", children: [
10494
+ /* @__PURE__ */ F(sr, { className: "s3-explr-dialog-footer", children: [
10495
10495
  /* @__PURE__ */ p(
10496
10496
  pe,
10497
10497
  {
10498
10498
  variant: "outline",
10499
10499
  onClick: () => {
10500
- F(null), B(""), Pe("");
10500
+ O(null), B(""), Pe("");
10501
10501
  },
10502
10502
  className: "s3-explr-cancel-btn",
10503
10503
  children: "Cancel"
@@ -10509,7 +10509,7 @@ const nw = ys(({ onChange: e }, t) => {
10509
10509
  onClick: () => I && hn(I, oe),
10510
10510
  disabled: kt || He,
10511
10511
  className: "s3-explr-save-btn",
10512
- children: kt ? /* @__PURE__ */ O(ce, { children: [
10512
+ children: kt ? /* @__PURE__ */ F(ce, { children: [
10513
10513
  /* @__PURE__ */ p(Ae, { className: "mr-2 h-4 w-4 animate-spin s3-explr-loader" }),
10514
10514
  "Saving..."
10515
10515
  ] }) : "Save Changes"
@@ -10522,7 +10522,7 @@ const nw = ys(({ onChange: e }, t) => {
10522
10522
  },
10523
10523
  disabled: q || !G.trim() || G.trim() === (I == null ? void 0 : I.name),
10524
10524
  className: "s3-explr-rename-btn",
10525
- children: q ? /* @__PURE__ */ O(ce, { children: [
10525
+ children: q ? /* @__PURE__ */ F(ce, { children: [
10526
10526
  /* @__PURE__ */ p(Ae, { className: "mr-2 h-4 w-4 animate-spin s3-explr-loader" }),
10527
10527
  "Renaming..."
10528
10528
  ] }) : "Rename"
@@ -10535,14 +10535,14 @@ const nw = ys(({ onChange: e }, t) => {
10535
10535
  ] })
10536
10536
  ] }),
10537
10537
  It && /* @__PURE__ */ p("div", { className: "bg-red-100 border border-red-400 text-red-700 px-4 py-3 rounded relative s3-explr-error", children: "An error occurred while fetching files" }),
10538
- /* @__PURE__ */ p("div", { className: "rounded-md border s3-explr-table-container", children: /* @__PURE__ */ O(Ir, { className: "s3-explr-table", children: [
10538
+ /* @__PURE__ */ p("div", { className: "rounded-md border s3-explr-table-container", children: /* @__PURE__ */ F(Ir, { className: "s3-explr-table", children: [
10539
10539
  /* @__PURE__ */ p($r, { className: "s3-explr-table-header", children: Ge.getHeaderGroups().map((D) => /* @__PURE__ */ p(qe, { className: "hover:bg-transparent s3-explr-header-row", children: D.headers.map(($) => /* @__PURE__ */ p(tt, { className: "s3-explr-header-cell", children: $.isPlaceholder ? null : fr($.column.columnDef.header, $.getContext()) }, $.id)) }, D.id)) }),
10540
10540
  /* @__PURE__ */ p(Lr, { className: "s3-explr-table-body", children: Ge.getRowModel().rows.length === 0 ? /* @__PURE__ */ p(qe, { className: "s3-explr-empty-row", children: /* @__PURE__ */ p(
10541
10541
  Fe,
10542
10542
  {
10543
10543
  colSpan: he.length,
10544
10544
  className: "h-24 text-center s3-explr-empty-cell",
10545
- children: s ? /* @__PURE__ */ O("div", { className: "text-gray-500 s3-explr-no-results", children: [
10545
+ children: s ? /* @__PURE__ */ F("div", { className: "text-gray-500 s3-explr-no-results", children: [
10546
10546
  'No files or folders found matching "',
10547
10547
  s,
10548
10548
  '"'
@@ -10550,8 +10550,8 @@ const nw = ys(({ onChange: e }, t) => {
10550
10550
  }
10551
10551
  ) }) : Ge.getRowModel().rows.map((D) => /* @__PURE__ */ p(qe, { className: "h-12 s3-explr-row", children: D.getVisibleCells().map(($) => /* @__PURE__ */ p(Fe, { className: "align-middle s3-explr-cell", children: fr($.column.columnDef.cell, $.getContext()) }, $.id)) }, D.id)) })
10552
10552
  ] }) }),
10553
- r && o && /* @__PURE__ */ O("div", { className: "flex justify-between items-center mt-4 s3-explr-selector-footer", children: [
10554
- /* @__PURE__ */ O("div", { className: "text-sm text-gray-500 s3-explr-selection-count", children: [
10553
+ r && o && /* @__PURE__ */ F("div", { className: "flex justify-between items-center mt-4 s3-explr-selector-footer", children: [
10554
+ /* @__PURE__ */ F("div", { className: "text-sm text-gray-500 s3-explr-selection-count", children: [
10555
10555
  a.size,
10556
10556
  " ",
10557
10557
  a.size === 1 ? "file" : "files",
@@ -10745,8 +10745,8 @@ var Jt = (e) => ve(e) && !wr(e) ? e : {
10745
10745
  return {};
10746
10746
  const E = i ? i[0] : s, N = (_) => {
10747
10747
  r && E.reportValidity && (E.setCustomValidity(rt(_) ? "" : _ || ""), E.reportValidity());
10748
- }, b = {}, S = qs(s), R = Dn(s), M = S || R, j = (m || Ws(s)) && me(s.value) && me(x) || yr(s) && s.value === "" || x === "" || Array.isArray(x) && !x.length, H = gw.bind(null, v, n, b), Z = (_, I, F, G = ft.maxLength, B = ft.minLength) => {
10749
- const q = _ ? I : F;
10748
+ }, b = {}, S = qs(s), R = Dn(s), M = S || R, j = (m || Ws(s)) && me(s.value) && me(x) || yr(s) && s.value === "" || x === "" || Array.isArray(x) && !x.length, H = gw.bind(null, v, n, b), Z = (_, I, O, G = ft.maxLength, B = ft.minLength) => {
10749
+ const q = _ ? I : O;
10750
10750
  b[v] = {
10751
10751
  type: _ ? G : B,
10752
10752
  message: q,
@@ -10766,20 +10766,20 @@ var Jt = (e) => ve(e) && !wr(e) ? e : {
10766
10766
  }
10767
10767
  if (!j && (!Ee(d) || !Ee(g))) {
10768
10768
  let _, I;
10769
- const F = Jt(g), G = Jt(d);
10769
+ const O = Jt(g), G = Jt(d);
10770
10770
  if (!Ee(x) && !isNaN(x)) {
10771
10771
  const B = s.valueAsNumber || x && +x;
10772
- Ee(F.value) || (_ = B > F.value), Ee(G.value) || (I = B < G.value);
10772
+ Ee(O.value) || (_ = B > O.value), Ee(G.value) || (I = B < G.value);
10773
10773
  } else {
10774
10774
  const B = s.valueAsDate || new Date(x), q = (ue) => /* @__PURE__ */ new Date((/* @__PURE__ */ new Date()).toDateString() + " " + ue), K = s.type == "time", te = s.type == "week";
10775
- it(F.value) && x && (_ = K ? q(x) > q(F.value) : te ? x > F.value : B > new Date(F.value)), it(G.value) && x && (I = K ? q(x) < q(G.value) : te ? x < G.value : B < new Date(G.value));
10775
+ it(O.value) && x && (_ = K ? q(x) > q(O.value) : te ? x > O.value : B > new Date(O.value)), it(G.value) && x && (I = K ? q(x) < q(G.value) : te ? x < G.value : B < new Date(G.value));
10776
10776
  }
10777
- if ((_ || I) && (Z(!!_, F.message, G.message, ft.max, ft.min), !n))
10777
+ if ((_ || I) && (Z(!!_, O.message, G.message, ft.max, ft.min), !n))
10778
10778
  return N(b[v].message), b;
10779
10779
  }
10780
10780
  if ((c || l) && !j && (it(x) || o && Array.isArray(x))) {
10781
- const _ = Jt(c), I = Jt(l), F = !Ee(_.value) && x.length > +_.value, G = !Ee(I.value) && x.length < +I.value;
10782
- if ((F || G) && (Z(F, _.message, I.message), !n))
10781
+ const _ = Jt(c), I = Jt(l), O = !Ee(_.value) && x.length > +_.value, G = !Ee(I.value) && x.length < +I.value;
10782
+ if ((O || G) && (Z(O, _.message, I.message), !n))
10783
10783
  return N(b[v].message), b;
10784
10784
  }
10785
10785
  if (h && !j && it(x)) {
@@ -10805,11 +10805,11 @@ var Jt = (e) => ve(e) && !wr(e) ? e : {
10805
10805
  for (const I in f) {
10806
10806
  if (!_e(_) && !n)
10807
10807
  break;
10808
- const F = ca(await f[I](x, t), E, I);
10809
- F && (_ = {
10810
- ...F,
10811
- ...H(I, F.message)
10812
- }, N(F.message), n && (b[v] = _));
10808
+ const O = ca(await f[I](x, t), E, I);
10809
+ O && (_ = {
10810
+ ...O,
10811
+ ...H(I, O.message)
10812
+ }, N(O.message), n && (b[v] = _));
10813
10813
  }
10814
10814
  if (!_e(_) && (b[v] = {
10815
10815
  ref: E,
@@ -11115,7 +11115,7 @@ function Ew(e = {}) {
11115
11115
  a.unMount = /* @__PURE__ */ new Set();
11116
11116
  }, _ = (C, P) => !t.disabled && (C && P && fe(s, C, P), !Et(oe(), o)), I = (C, P, A) => pw(C, a, {
11117
11117
  ...i.mount ? s : me(P) ? o : it(C) ? { [C]: P } : P
11118
- }, A, P), F = (C) => jr(z(i.mount ? s : o, C, t.shouldUnregister ? z(o, C, []) : [])), G = (C, P, A = {}) => {
11118
+ }, A, P), O = (C) => jr(z(i.mount ? s : o, C, t.shouldUnregister ? z(o, C, []) : [])), G = (C, P, A = {}) => {
11119
11119
  const V = z(r, C);
11120
11120
  let L = P;
11121
11121
  if (V) {
@@ -11391,7 +11391,7 @@ function Ew(e = {}) {
11391
11391
  _removeUnmounted: Z,
11392
11392
  _updateFieldArray: x,
11393
11393
  _updateDisabledField: wt,
11394
- _getFieldArray: F,
11394
+ _getFieldArray: O,
11395
11395
  _reset: Ue,
11396
11396
  _resetDefaultValues: () => st(t.defaultValues) && t.defaultValues().then((C) => {
11397
11397
  De(C, t.resetOptions), g.state.next({
@@ -11971,12 +11971,12 @@ const Ww = (e) => ({
11971
11971
  }, f = Ys(o), v = Xs(f), m = await i.getDimensions(l), y = f === "y", w = y ? "top" : "left", x = y ? "bottom" : "right", E = y ? "clientHeight" : "clientWidth", N = s.reference[v] + s.reference[f] - h[f] - s.floating[v], b = h[f] - s.reference[f], S = await (i.getOffsetParent == null ? void 0 : i.getOffsetParent(l));
11972
11972
  let R = S ? S[E] : 0;
11973
11973
  (!R || !await (i.isElement == null ? void 0 : i.isElement(S))) && (R = a.floating[E] || s.floating[v]);
11974
- const M = N / 2 - b / 2, j = R / 2 - m[v] / 2 - 1, H = _t(g[w], j), Z = _t(g[x], j), _ = H, I = R - m[v] - Z, F = R / 2 - m[v] / 2 + M, G = ps(_, F, I), B = !c.arrow && gn(o) != null && F !== G && s.reference[v] / 2 - (F < _ ? H : Z) - m[v] / 2 < 0, q = B ? F < _ ? F - _ : F - I : 0;
11974
+ const M = N / 2 - b / 2, j = R / 2 - m[v] / 2 - 1, H = _t(g[w], j), Z = _t(g[x], j), _ = H, I = R - m[v] - Z, O = R / 2 - m[v] / 2 + M, G = ps(_, O, I), B = !c.arrow && gn(o) != null && O !== G && s.reference[v] / 2 - (O < _ ? H : Z) - m[v] / 2 < 0, q = B ? O < _ ? O - _ : O - I : 0;
11975
11975
  return {
11976
11976
  [f]: h[f] + q,
11977
11977
  data: {
11978
11978
  [f]: G,
11979
- centerOffset: F - G - q,
11979
+ centerOffset: O - G - q,
11980
11980
  ...B && {
11981
11981
  alignmentOffset: q
11982
11982
  }
@@ -12013,19 +12013,19 @@ const Ww = (e) => ({
12013
12013
  const R = [a, ...b], M = await An(t, y), j = [];
12014
12014
  let H = ((r = s.flip) == null ? void 0 : r.overflows) || [];
12015
12015
  if (d && j.push(M[w]), g) {
12016
- const F = Bw(o, i, N);
12017
- j.push(M[F[0]], M[F[1]]);
12016
+ const O = Bw(o, i, N);
12017
+ j.push(M[O[0]], M[O[1]]);
12018
12018
  }
12019
12019
  if (H = [...H, {
12020
12020
  placement: o,
12021
12021
  overflows: j
12022
- }], !j.every((F) => F <= 0)) {
12022
+ }], !j.every((O) => O <= 0)) {
12023
12023
  var Z, _;
12024
- const F = (((Z = s.flip) == null ? void 0 : Z.index) || 0) + 1, G = R[F];
12024
+ const O = (((Z = s.flip) == null ? void 0 : Z.index) || 0) + 1, G = R[O];
12025
12025
  if (G)
12026
12026
  return {
12027
12027
  data: {
12028
- index: F,
12028
+ index: O,
12029
12029
  overflows: H
12030
12030
  },
12031
12031
  reset: {
@@ -12878,7 +12878,7 @@ function Eb(e) {
12878
12878
  // setting it to `true` when `open === false` (must be specified).
12879
12879
  isPositioned: _.current !== !1
12880
12880
  };
12881
- F.current && !Rr(M.current, ue) && (M.current = ue, Nr.flushSync(() => {
12881
+ O.current && !Rr(M.current, ue) && (M.current = ue, Nr.flushSync(() => {
12882
12882
  g(ue);
12883
12883
  }));
12884
12884
  });
@@ -12889,9 +12889,9 @@ function Eb(e) {
12889
12889
  isPositioned: !1
12890
12890
  })));
12891
12891
  }, [l]);
12892
- const F = u.useRef(!1);
12893
- dr(() => (F.current = !0, () => {
12894
- F.current = !1;
12892
+ const O = u.useRef(!1);
12893
+ dr(() => (O.current = !0, () => {
12894
+ O.current = !1;
12895
12895
  }), []), dr(() => {
12896
12896
  if (N && (S.current = N), b && (R.current = b), N && b) {
12897
12897
  if (H.current)
@@ -13103,7 +13103,7 @@ var ni = "PopperContent", [zb, Hb] = Wu(ni), Zu = u.forwardRef(
13103
13103
  boundary: Z.filter(Ub),
13104
13104
  // with `strategy: 'fixed'`, this is the only way to get it to respect boundaries
13105
13105
  altBoundary: _
13106
- }, { refs: F, floatingStyles: G, placement: B, isPositioned: q, middlewareData: K } = Eb({
13106
+ }, { refs: O, floatingStyles: G, placement: B, isPositioned: q, middlewareData: K } = Eb({
13107
13107
  // default to `fixed` strategy so users don't have to pick and we also avoid focus scroll issues
13108
13108
  strategy: "fixed",
13109
13109
  placement: j,
@@ -13143,7 +13143,7 @@ var ni = "PopperContent", [zb, Hb] = Wu(ni), Zu = u.forwardRef(
13143
13143
  }, [w]), /* @__PURE__ */ p(
13144
13144
  "div",
13145
13145
  {
13146
- ref: F.setFloating,
13146
+ ref: O.setFloating,
13147
13147
  "data-radix-popper-content-wrapper": "",
13148
13148
  style: {
13149
13149
  ...G,
@@ -13541,7 +13541,7 @@ var an = "TooltipContent", cd = u.forwardRef(
13541
13541
  onPointerDownOutside: i,
13542
13542
  onFocusOutside: (g) => g.preventDefault(),
13543
13543
  onDismiss: d,
13544
- children: /* @__PURE__ */ O(
13544
+ children: /* @__PURE__ */ F(
13545
13545
  Kb,
13546
13546
  {
13547
13547
  "data-state": c.stateAttribute,
@@ -13685,7 +13685,7 @@ const xx = vx, Cx = yx, Sx = wx, pd = u.forwardRef(({ className: e, sideOffset:
13685
13685
  pd.displayName = fd.displayName;
13686
13686
  const Ea = ({ className: e, children: t, content: n, side: r }) => {
13687
13687
  const [o, s] = Q(!1);
13688
- return /* @__PURE__ */ p(xx, { delayDuration: 0, children: /* @__PURE__ */ O(Cx, { open: o, children: [
13688
+ return /* @__PURE__ */ p(xx, { delayDuration: 0, children: /* @__PURE__ */ F(Cx, { open: o, children: [
13689
13689
  /* @__PURE__ */ p(Sx, { asChild: !0, children: /* @__PURE__ */ p(
13690
13690
  "button",
13691
13691
  {
@@ -13747,7 +13747,7 @@ Ln.displayName = "PaginationLink";
13747
13747
  const li = ({
13748
13748
  className: e,
13749
13749
  ...t
13750
- }) => /* @__PURE__ */ O(
13750
+ }) => /* @__PURE__ */ F(
13751
13751
  Ln,
13752
13752
  {
13753
13753
  "aria-label": "Go to previous page",
@@ -13764,7 +13764,7 @@ li.displayName = "PaginationPrevious";
13764
13764
  const ci = ({
13765
13765
  className: e,
13766
13766
  ...t
13767
- }) => /* @__PURE__ */ O(
13767
+ }) => /* @__PURE__ */ F(
13768
13768
  Ln,
13769
13769
  {
13770
13770
  "aria-label": "Go to next page",
@@ -13781,7 +13781,7 @@ ci.displayName = "PaginationNext";
13781
13781
  const ui = ({
13782
13782
  className: e,
13783
13783
  ...t
13784
- }) => /* @__PURE__ */ O(
13784
+ }) => /* @__PURE__ */ F(
13785
13785
  "span",
13786
13786
  {
13787
13787
  "aria-hidden": !0,
@@ -13881,7 +13881,7 @@ const Mx = ({
13881
13881
  accessorKey: "last-update",
13882
13882
  cell: ({ row: S }) => {
13883
13883
  const M = new Date(S.original.lastUpdate).getMonth() + 1;
13884
- return /* @__PURE__ */ O("span", { className: "flex flex-col", children: [
13884
+ return /* @__PURE__ */ F("span", { className: "flex flex-col", children: [
13885
13885
  "tháng ",
13886
13886
  M
13887
13887
  ] });
@@ -13891,8 +13891,8 @@ const Mx = ({
13891
13891
  accessorKey: "edit",
13892
13892
  header: () => /* @__PURE__ */ p("div", { className: "font-medium text-center", children: "Sửa" }),
13893
13893
  cell: ({ row: S }) => {
13894
- const [R, M] = Q(!1), [j, H] = Q(!1), { handleSubmit: Z, register: _, reset: I } = Nw(), F = S.original.id;
13895
- return /* @__PURE__ */ O(
13894
+ const [R, M] = Q(!1), [j, H] = Q(!1), { handleSubmit: Z, register: _, reset: I } = Nw(), O = S.original.id;
13895
+ return /* @__PURE__ */ F(
13896
13896
  Qt,
13897
13897
  {
13898
13898
  open: j,
@@ -13911,50 +13911,59 @@ const Mx = ({
13911
13911
  children: "sửa"
13912
13912
  }
13913
13913
  ) }),
13914
- /* @__PURE__ */ p(Vt, { className: "rounded-lg sm:px-3 sm:w-[calc(100%-30px)]", children: /* @__PURE__ */ O(Bt, { className: "flex flex-col gap-3", children: [
13915
- /* @__PURE__ */ p(zt, { children: "Sửa câu hỏi." }),
13916
- /* @__PURE__ */ O("form", { className: "flex flex-col gap-3", onSubmit: Z(async (B) => {
13917
- M(!0);
13918
- try {
13919
- const q = await ie.patch(`${e}/api/update-summary`, {
13920
- note: B.note,
13921
- text_summary: B.content,
13922
- id: F
13923
- });
13924
- q.status === 200 ? (await m(a), H(!1)) : console.error("Failed to update summary:", q);
13925
- } catch (q) {
13926
- console.error("Error updating summary:", q);
13927
- }
13928
- return M(!1);
13929
- }), children: [
13930
- /* @__PURE__ */ O("div", { className: "flex flex-col items-start", children: [
13931
- /* @__PURE__ */ p("span", { children: "Nội dung:" }),
13932
- /* @__PURE__ */ p(
13933
- vr,
13934
- {
13935
- placeholder: "Nội dung",
13936
- className: "w-full input-scroll-bar",
13937
- defaultValue: S.original.answer || "",
13938
- rows: 10,
13939
- ..._("content")
13940
- }
13941
- )
13942
- ] }),
13943
- /* @__PURE__ */ O("div", { className: "flex flex-col items-start", children: [
13944
- /* @__PURE__ */ p("span", { children: "Lưu ý:" }),
13945
- /* @__PURE__ */ p(
13946
- vr,
13947
- {
13948
- placeholder: "Nội dung",
13949
- className: "w-full input-scroll-bar",
13950
- defaultValue: S.original.note || "",
13951
- rows: 10,
13952
- ..._("note")
13914
+ /* @__PURE__ */ p(Vt, { className: "rounded-lg sm:px-3 h-[calc(100dvh-200px)] min-w-[calc(100dvw-112px)]", children: /* @__PURE__ */ F(Bt, { className: "flex flex-col gap-3", children: [
13915
+ /* @__PURE__ */ p(zt, { className: "max-sm:hidden text-center", children: "Sửa summary" }),
13916
+ /* @__PURE__ */ F(
13917
+ "form",
13918
+ {
13919
+ className: "flex flex-col gap-3 h-full justify-between",
13920
+ onSubmit: Z(async (B) => {
13921
+ M(!0);
13922
+ try {
13923
+ const q = await ie.patch(`${e}/api/update-summary`, {
13924
+ note: B.note,
13925
+ text_summary: B.content,
13926
+ id: O
13927
+ });
13928
+ q.status === 200 ? (await m(a), H(!1)) : console.error("Failed to update summary:", q);
13929
+ } catch (q) {
13930
+ console.error("Error updating summary:", q);
13953
13931
  }
13954
- )
13955
- ] }),
13956
- /* @__PURE__ */ p("div", { className: "flex justify-end", children: /* @__PURE__ */ p(pe, { disabled: R, type: "submit", variant: "default", children: "Ok" }) })
13957
- ] })
13932
+ return M(!1);
13933
+ }),
13934
+ children: [
13935
+ /* @__PURE__ */ F("div", { className: "flex flex-col gap-2", children: [
13936
+ /* @__PURE__ */ F("div", { className: "flex flex-col items-start", children: [
13937
+ /* @__PURE__ */ p("span", { children: "Nội dung:" }),
13938
+ /* @__PURE__ */ p(
13939
+ vr,
13940
+ {
13941
+ placeholder: "Nội dung",
13942
+ className: "w-full input-scroll-bar",
13943
+ defaultValue: S.original.answer || "",
13944
+ rows: 10,
13945
+ ..._("content")
13946
+ }
13947
+ )
13948
+ ] }),
13949
+ /* @__PURE__ */ F("div", { className: "flex flex-col items-start", children: [
13950
+ /* @__PURE__ */ p("span", { children: "Lưu ý:" }),
13951
+ /* @__PURE__ */ p(
13952
+ vr,
13953
+ {
13954
+ placeholder: "Nội dung",
13955
+ className: "w-full input-scroll-bar",
13956
+ defaultValue: S.original.note || "",
13957
+ rows: 1,
13958
+ ..._("note")
13959
+ }
13960
+ )
13961
+ ] })
13962
+ ] }),
13963
+ /* @__PURE__ */ p("div", { className: "flex justify-end", children: /* @__PURE__ */ p(pe, { disabled: R, type: "submit", variant: "default", children: "Ok" }) })
13964
+ ]
13965
+ }
13966
+ )
13958
13967
  ] }) })
13959
13968
  ]
13960
13969
  }
@@ -13963,11 +13972,11 @@ const Mx = ({
13963
13972
  },
13964
13973
  {
13965
13974
  id: "publish",
13966
- header: "publish",
13975
+ header: "",
13967
13976
  accessorKey: "publish",
13968
13977
  cell: ({ row: S }) => {
13969
13978
  const [R, M] = Q(!1), [j, H] = Q(!1), Z = S.original.id, _ = S.getValue("status"), I = S.getValue("code"), G = new Date(S.original.lastUpdate).getMonth() + 1, [B, q] = Q(""), [K, te] = Q("1");
13970
- return /* @__PURE__ */ O(
13979
+ return /* @__PURE__ */ F(
13971
13980
  Qt,
13972
13981
  {
13973
13982
  open: j,
@@ -13980,15 +13989,15 @@ const Mx = ({
13980
13989
  {
13981
13990
  onClick: () => H((oe) => !oe),
13982
13991
  className: "font-medium text-start text-green-400 cursor-pointer",
13983
- children: _ === "unpublish" ? "publish" : "unpublish"
13992
+ children: _ === "unpublish" ? "Publish" : "Unpublish"
13984
13993
  }
13985
13994
  ) }),
13986
- /* @__PURE__ */ p(Vt, { className: "rounded-lg sm:px-3 sm:w-[calc(100%-30px)]", children: /* @__PURE__ */ O(Bt, { className: "flex flex-col gap-3", children: [
13987
- /* @__PURE__ */ O(zt, { children: [
13995
+ /* @__PURE__ */ p(Vt, { className: "rounded-lg sm:px-3 sm:w-[calc(100%-30px)]", children: /* @__PURE__ */ F(Bt, { className: "flex flex-col gap-3", children: [
13996
+ /* @__PURE__ */ F(zt, { children: [
13988
13997
  _ === "unpublish" ? "Publish" : "Unpublish",
13989
13998
  " Summary?"
13990
13999
  ] }),
13991
- /* @__PURE__ */ O("span", { children: [
14000
+ /* @__PURE__ */ F("span", { children: [
13992
14001
  "Bạn có muốn ",
13993
14002
  _ === "unpublish" ? "publish" : "unpublish",
13994
14003
  " summary mã ",
@@ -13998,7 +14007,7 @@ const Mx = ({
13998
14007
  G,
13999
14008
  " không?"
14000
14009
  ] }),
14001
- /* @__PURE__ */ O("div", { children: [
14010
+ /* @__PURE__ */ F("div", { children: [
14002
14011
  /* @__PURE__ */ p("span", { children: "id:" }),
14003
14012
  /* @__PURE__ */ p(
14004
14013
  Tt,
@@ -14009,7 +14018,7 @@ const Mx = ({
14009
14018
  }
14010
14019
  )
14011
14020
  ] }),
14012
- /* @__PURE__ */ O("div", { children: [
14021
+ /* @__PURE__ */ F("div", { children: [
14013
14022
  /* @__PURE__ */ p("span", { children: "bucket:" }),
14014
14023
  /* @__PURE__ */ p(Tt, { value: B, onChange: (oe) => q(oe.target.value) })
14015
14024
  ] }),
@@ -14054,7 +14063,7 @@ const Mx = ({
14054
14063
  getFilteredRowModel: mf(),
14055
14064
  getCoreRowModel: La()
14056
14065
  });
14057
- return /* @__PURE__ */ O("div", { className: "space-y-4 s3-explr-container", children: [
14066
+ return /* @__PURE__ */ F("div", { className: "space-y-4 s3-explr-container", children: [
14058
14067
  /* @__PURE__ */ p("div", { className: "flex items-center space-x-4 s3-explr-toolbar", children: /* @__PURE__ */ p(
14059
14068
  Tt,
14060
14069
  {
@@ -14067,11 +14076,11 @@ const Mx = ({
14067
14076
  className: "max-w-sm"
14068
14077
  }
14069
14078
  ) }),
14070
- /* @__PURE__ */ p("div", { className: "rounded-md border s3-explr-table-container", children: /* @__PURE__ */ O(Ir, { className: "s3-explr-table", children: [
14079
+ /* @__PURE__ */ p("div", { className: "rounded-md border s3-explr-table-container", children: /* @__PURE__ */ F(Ir, { className: "s3-explr-table", children: [
14071
14080
  /* @__PURE__ */ p($r, { className: "s3-explr-table-header", children: w.getHeaderGroups().map((b) => /* @__PURE__ */ p(qe, { className: "hover:bg-transparent s3-explr-header-row", children: b.headers.map((S) => /* @__PURE__ */ p(tt, { className: "s3-explr-header-cell", children: S.isPlaceholder ? null : fr(S.column.columnDef.header, S.getContext()) }, S.id)) }, b.id)) }),
14072
14081
  /* @__PURE__ */ p(Lr, { className: "s3-explr-table-body", children: (E = w.getRowModel().rows) != null && E.length ? (N = w.getRowModel().rows) == null ? void 0 : N.map((b) => /* @__PURE__ */ p(qe, { className: "h-12 s3-explr-row", children: b.getVisibleCells().map((S) => /* @__PURE__ */ p(Fe, { className: "align-middle s3-explr-cell", children: fr(S.column.columnDef.cell, S.getContext()) }, S.id)) }, b.id)) : r ? /* @__PURE__ */ p(qe, { children: /* @__PURE__ */ p(Fe, { colSpan: y.length, className: "h-24 text-center", children: "loading..." }) }) : /* @__PURE__ */ p(qe, { children: /* @__PURE__ */ p(Fe, { colSpan: y.length, className: "h-24 text-center", children: "Không có kết quả." }) }) })
14073
14082
  ] }) }),
14074
- /* @__PURE__ */ p("div", { className: "mt-4", children: /* @__PURE__ */ p(ii, { children: /* @__PURE__ */ O(ai, { children: [
14083
+ /* @__PURE__ */ p("div", { className: "mt-4", children: /* @__PURE__ */ p(ii, { children: /* @__PURE__ */ F(ai, { children: [
14075
14084
  /* @__PURE__ */ p(mt, { children: /* @__PURE__ */ p(
14076
14085
  li,
14077
14086
  {
@@ -14081,7 +14090,7 @@ const Mx = ({
14081
14090
  ) }),
14082
14091
  Array.from({ length: l }, (b, S) => S + 1).filter(
14083
14092
  (b) => b === 1 || b === l || Math.abs(b - a) <= 1
14084
- ).map((b, S, R) => /* @__PURE__ */ O(ce, { children: [
14093
+ ).map((b, S, R) => /* @__PURE__ */ F(ce, { children: [
14085
14094
  S > 0 && R[S - 1] !== b - 1 && /* @__PURE__ */ p(mt, { children: /* @__PURE__ */ p(ui, {}) }, b + "..."),
14086
14095
  /* @__PURE__ */ p(mt, { children: /* @__PURE__ */ p(
14087
14096
  Ln,
@@ -14159,8 +14168,8 @@ const Mx = ({
14159
14168
  const S = Math.floor(b / 60), R = (b % 60).toFixed(0);
14160
14169
  return `${S}m ${R}s`;
14161
14170
  };
14162
- return /* @__PURE__ */ O("div", { children: [
14163
- /* @__PURE__ */ O("div", { className: "flex items-center gap-2 mb-6", children: [
14171
+ return /* @__PURE__ */ F("div", { children: [
14172
+ /* @__PURE__ */ F("div", { className: "flex items-center gap-2 mb-6", children: [
14164
14173
  /* @__PURE__ */ p(Jp, { className: "w-8 h-8 text-primary" }),
14165
14174
  /* @__PURE__ */ p("h2", { className: "text-3xl font-bold tracking-tight", children: "Job Management" }),
14166
14175
  /* @__PURE__ */ p(
@@ -14175,8 +14184,8 @@ const Mx = ({
14175
14184
  }
14176
14185
  )
14177
14186
  ] }),
14178
- /* @__PURE__ */ p("div", { className: "rounded-md border", children: /* @__PURE__ */ O(Ir, { children: [
14179
- /* @__PURE__ */ p($r, { children: /* @__PURE__ */ O(qe, { children: [
14187
+ /* @__PURE__ */ p("div", { className: "rounded-md border", children: /* @__PURE__ */ F(Ir, { children: [
14188
+ /* @__PURE__ */ p($r, { children: /* @__PURE__ */ F(qe, { children: [
14180
14189
  /* @__PURE__ */ p(tt, { children: "ID" }),
14181
14190
  /* @__PURE__ */ p(tt, { children: "Tên Công Việc" }),
14182
14191
  /* @__PURE__ */ p(tt, { children: "Thời Gian Bắt Đầu" }),
@@ -14187,7 +14196,7 @@ const Mx = ({
14187
14196
  ] }) }),
14188
14197
  /* @__PURE__ */ p(Lr, { children: a && r.length === 0 ? /* @__PURE__ */ p(qe, { children: /* @__PURE__ */ p(Fe, { colSpan: 7, className: "text-center py-4", children: /* @__PURE__ */ p(Ae, { className: "w-6 h-6 animate-spin mx-auto" }) }) }) : r.map((b) => {
14189
14198
  var S, R;
14190
- return /* @__PURE__ */ O(qe, { children: [
14199
+ return /* @__PURE__ */ F(qe, { children: [
14191
14200
  /* @__PURE__ */ p(Fe, { className: "!w-[100px]", children: b.id }),
14192
14201
  /* @__PURE__ */ p(Fe, { className: "font-medium", children: (S = b.job_name) == null ? void 0 : S.replace("Upload file", "Summary") }),
14193
14202
  /* @__PURE__ */ p(Fe, { className: "!w-[200px]", children: E(b.created_at) }),
@@ -14209,7 +14218,7 @@ const Mx = ({
14209
14218
  onClick: () => w(b.id),
14210
14219
  disabled: g.has(b.id.toString()),
14211
14220
  className: "h-[32px]",
14212
- children: g.has(b.id.toString()) ? /* @__PURE__ */ O(ce, { children: [
14221
+ children: g.has(b.id.toString()) ? /* @__PURE__ */ F(ce, { children: [
14213
14222
  /* @__PURE__ */ p(Ae, { className: "mr-2 h-4 w-4 animate-spin" }),
14214
14223
  "Đang thử lại..."
14215
14224
  ] }) : "Thử Lại"
@@ -14218,7 +14227,7 @@ const Mx = ({
14218
14227
  ] }, b.id);
14219
14228
  }) })
14220
14229
  ] }) }),
14221
- /* @__PURE__ */ p("div", { className: "mt-4", children: /* @__PURE__ */ p(ii, { children: /* @__PURE__ */ O(ai, { children: [
14230
+ /* @__PURE__ */ p("div", { className: "mt-4", children: /* @__PURE__ */ p(ii, { children: /* @__PURE__ */ F(ai, { children: [
14222
14231
  /* @__PURE__ */ p(mt, { children: /* @__PURE__ */ p(
14223
14232
  li,
14224
14233
  {
@@ -14228,7 +14237,7 @@ const Mx = ({
14228
14237
  ) }),
14229
14238
  Array.from({ length: s.totalPages }, (b, S) => S + 1).filter(
14230
14239
  (b) => b === 1 || b === s.totalPages || Math.abs(b - t) <= 1
14231
- ).map((b, S, R) => /* @__PURE__ */ O(ce, { children: [
14240
+ ).map((b, S, R) => /* @__PURE__ */ F(ce, { children: [
14232
14241
  S > 0 && R[S - 1] !== b - 1 && /* @__PURE__ */ p(mt, { children: /* @__PURE__ */ p(ui, {}) }, b + "..."),
14233
14242
  /* @__PURE__ */ p(mt, { children: /* @__PURE__ */ p(
14234
14243
  Ln,