sevago-library 1.6.13 → 1.6.14

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/index.esm.js CHANGED
@@ -7,7 +7,7 @@ import { createTheme as n5, Stack as cA, TableCell as oo, tableCellClasses as uc
7
7
  import BA from "dayjs";
8
8
  import { jsxs as H, jsx as u, Fragment as Ot } from "react/jsx-runtime";
9
9
  import * as S from "react";
10
- import ye, { useState as RA, useId as qs, useEffect as de, Fragment as ws, useRef as Ee, isValidElement as g2, cloneElement as m2, Children as P5, useMemo as je, createElement as lu, useImperativeHandle as k5, useContext as xs, useCallback as ce } from "react";
10
+ import ye, { useState as RA, useId as qs, useEffect as ce, Fragment as ws, useRef as Ee, isValidElement as g2, cloneElement as m2, Children as P5, useMemo as je, createElement as lu, useImperativeHandle as k5, useContext as xs, useCallback as de } from "react";
11
11
  import { unstable_createGetCssVar as R5, createSpacing as N5, useTheme as F5, GlobalStyles as L5, unstable_memoTheme as Q5, keyframes as Er, css as cu, shouldForwardProp as du, alpha as h0, Stack as Lt, Box as gc } from "@mui/system";
12
12
  import ei from "@emotion/styled";
13
13
  import { ThemeContext as U5 } from "@emotion/react";
@@ -7264,7 +7264,7 @@ const Yt = (A) => i3(A) && A !== "classes", Q = N8({
7264
7264
  gap: "unset"
7265
7265
  }, eg = (A) => {
7266
7266
  const [e, t] = RA(A);
7267
- return de(() => {
7267
+ return ce(() => {
7268
7268
  t(A);
7269
7269
  }, [A]), { selected: e, setSelected: t };
7270
7270
  };
@@ -40527,7 +40527,7 @@ const JT = ({
40527
40527
  minute: P[1] || ""
40528
40528
  };
40529
40529
  }, [h, f] = RA(m(i).hour), [C, b] = RA(m(i).minute), [w, q] = RA("");
40530
- de(() => {
40530
+ ce(() => {
40531
40531
  const M = m(i);
40532
40532
  f(M.hour), b(M.minute);
40533
40533
  }, [i]);
@@ -40878,7 +40878,7 @@ const JT = ({
40878
40878
  ...g
40879
40879
  }) => {
40880
40880
  const [m, h] = RA(d ?? p ?? "");
40881
- de(() => {
40881
+ ce(() => {
40882
40882
  d !== void 0 && h(d ?? "");
40883
40883
  }, [d]);
40884
40884
  const f = je(
@@ -40892,7 +40892,7 @@ const JT = ({
40892
40892
  }, s),
40893
40893
  [s, A, o]
40894
40894
  );
40895
- de(() => () => {
40895
+ ce(() => () => {
40896
40896
  f.clear();
40897
40897
  }, [f]);
40898
40898
  const C = (b) => {
@@ -43088,7 +43088,7 @@ const UE = (A, e) => {
43088
43088
  maxFiles: h
43089
43089
  }) => {
43090
43090
  const { palette: f } = qe(), [C, b] = RA(a || []);
43091
- de(() => {
43091
+ ce(() => {
43092
43092
  b(a || []);
43093
43093
  }, [a]);
43094
43094
  const w = (y) => {
@@ -44784,13 +44784,13 @@ var aI = function(A, e) {
44784
44784
  var t = Ee(new sI(A)).current, o = lI(A.children, ms(t));
44785
44785
  return k5(e, function() {
44786
44786
  return ms(t);
44787
- }, [t]), de(function() {
44787
+ }, [t]), ce(function() {
44788
44788
  t.update(A);
44789
44789
  }, [t, A]), u(sa.Provider, Ht({ value: t }, { children: o }));
44790
44790
  });
44791
44791
  ye.forwardRef(function(A, e) {
44792
44792
  var t = Ee(null), o = xs(sa);
44793
- return de(function() {
44793
+ return ce(function() {
44794
44794
  return o.onChange(function(r) {
44795
44795
  if (t.current) {
44796
44796
  var i = 0, a = 0;
@@ -44854,12 +44854,12 @@ var uI = `.transform-component-module_wrapper__SPB86 {
44854
44854
  dI(uI);
44855
44855
  var pI = function(A) {
44856
44856
  var e = A.children, t = A.wrapperClass, o = t === void 0 ? "" : t, r = A.contentClass, i = r === void 0 ? "" : r, a = A.wrapperStyle, s = A.contentStyle, l = A.wrapperProps, c = l === void 0 ? {} : l, d = A.contentProps, p = d === void 0 ? {} : d, g = A.infinite, m = g === void 0 ? !1 : g, h = xs(sa), f = h.init, C = h.cleanupWindowEvents, b = Ee(null), w = Ee(null), q = Ee(null);
44857
- return de(function() {
44857
+ return ce(function() {
44858
44858
  var y = b.current, x = w.current;
44859
44859
  return y !== null && x !== null && f && (f == null || f(y, x)), function() {
44860
44860
  C == null || C();
44861
44861
  };
44862
- }, []), de(function() {
44862
+ }, []), ce(function() {
44863
44863
  if (m) {
44864
44864
  var y = q.current;
44865
44865
  if (y) {
@@ -44900,7 +44900,7 @@ function gI(A) {
44900
44900
  }
44901
44901
  ye.forwardRef(function(A, e) {
44902
44902
  var t = A.x, o = A.y, r = A.width, i = A.height, a = A.margin, s = a === void 0 ? 0 : a, l = A.threshold, c = l === void 0 ? 0 : l, d = A.placeholder, p = d === void 0 ? null : d, g = A.onShow, m = A.onHide, h = A.children, f = A.className, C = A.style, b = xs(sa), w = RA(!1), q = w[0], y = w[1], x = Ee(!1), E = Ee(g), I = Ee(m);
44903
- return E.current = g, I.current = m, de(function() {
44903
+ return E.current = g, I.current = m, ce(function() {
44904
44904
  var T = function() {
44905
44905
  var P, v, D = b.wrapperComponent;
44906
44906
  if (D) {
@@ -45102,39 +45102,39 @@ const mI = ({
45102
45102
  () => A.map((nA, X) => GE(nA, X, j)),
45103
45103
  [j, A]
45104
45104
  ), Z = eA.length, W = Zn(t ?? K, Z), V = eA[W], _ = Z > 1, sA = e === hs.SUMMARY, tA = !sA && _ && d;
45105
- de(() => {
45105
+ ce(() => {
45106
45106
  z((nA) => Zn(nA, Z));
45107
45107
  }, [Z]);
45108
- const J = ce(
45108
+ const J = de(
45109
45109
  (nA) => {
45110
45110
  if (!f) return;
45111
45111
  const X = nA.currentTarget;
45112
45112
  X.dataset.galleryFallback !== "true" && (X.dataset.galleryFallback = "true", X.src = f);
45113
45113
  },
45114
45114
  [f]
45115
- ), $ = ce(
45115
+ ), $ = de(
45116
45116
  (nA) => {
45117
45117
  const X = Zn(nA, Z), aA = eA[X];
45118
45118
  aA && (t == null && z(X), D == null || D(X, aA));
45119
45119
  },
45120
45120
  [t, Z, eA, D]
45121
- ), G = _ && (h || W > 0), lA = _ && (h || W < Z - 1), iA = ce(() => {
45121
+ ), G = _ && (h || W > 0), lA = _ && (h || W < Z - 1), iA = de(() => {
45122
45122
  G && $(Pd(W, -1, Z, h));
45123
- }, [G, $, Z, h, W]), oA = ce(() => {
45123
+ }, [G, $, Z, h, W]), oA = de(() => {
45124
45124
  lA && $(Pd(W, 1, Z, h));
45125
- }, [lA, $, Z, h, W]), AA = ce(() => {
45125
+ }, [lA, $, Z, h, W]), AA = de(() => {
45126
45126
  !V || !m || (N(!0), O == null || O(W, V));
45127
- }, [O, m, V, W]), pA = ce(
45127
+ }, [O, m, V, W]), pA = de(
45128
45128
  (nA) => {
45129
45129
  if (!m) return;
45130
45130
  const X = Zn(nA, Z), aA = eA[X];
45131
45131
  aA && (X !== W && (t == null && z(X), D == null || D(X, aA)), N(!0), O == null || O(X, aA));
45132
45132
  },
45133
45133
  [t, Z, eA, D, O, m, W]
45134
- ), Y = ce(() => {
45134
+ ), Y = de(() => {
45135
45135
  N(!1), R == null || R();
45136
45136
  }, [R]);
45137
- return de(() => {
45137
+ return ce(() => {
45138
45138
  if (!U || !_) return;
45139
45139
  const nA = (X) => {
45140
45140
  X.key === "ArrowLeft" && (X.preventDefault(), iA()), X.key === "ArrowRight" && (X.preventDefault(), oA());
@@ -45321,7 +45321,7 @@ const mI = ({
45321
45321
  }), e;
45322
45322
  }, wI = (A) => A ? Array.isArray(A) ? A : zf(A).flatMap(jf) : [], xI = () => {
45323
45323
  const [A, e] = RA("");
45324
- return de(() => {
45324
+ return ce(() => {
45325
45325
  if (typeof window > "u") return;
45326
45326
  const t = () => e(window.location.pathname), o = () => {
45327
45327
  window.setTimeout(() => {
@@ -45340,7 +45340,7 @@ const mI = ({
45340
45340
  }, []), A;
45341
45341
  }, SI = () => {
45342
45342
  const [A, e] = RA({ width: 0, height: 0 });
45343
- return de(() => {
45343
+ return ce(() => {
45344
45344
  if (typeof window > "u") return;
45345
45345
  const t = () => e({
45346
45346
  width: window.innerWidth,
@@ -45353,7 +45353,7 @@ const mI = ({
45353
45353
  side: "right",
45354
45354
  top: 160
45355
45355
  });
45356
- return de(() => {
45356
+ return ce(() => {
45357
45357
  A.height && t((o) => ({
45358
45358
  ...o,
45359
45359
  top: sc(
@@ -45371,7 +45371,7 @@ const mI = ({
45371
45371
  onOpen: r
45372
45372
  }) => {
45373
45373
  const i = z5(), a = Ee(!1), s = lc(t.height), l = Vd(e.side, t.width), c = sc(e.top, Dr, s);
45374
- return de(() => {
45374
+ return ce(() => {
45375
45375
  t.width && i.start({
45376
45376
  x: l,
45377
45377
  y: c,
@@ -45603,9 +45603,9 @@ const mI = ({
45603
45603
  ...f
45604
45604
  }) => {
45605
45605
  const C = s ?? /* @__PURE__ */ u(Nr, { content: h }), [b, w] = RA(""), [q, y] = RA(), [x, E] = RA(!1), [I, T] = RA(0), [B, M] = RA(!1), P = Ee(m), v = Ee(0), D = xI(), O = SI(), { launcherPosition: R, setLauncherPosition: k } = EI(O), F = c ? q : A, K = e || x, z = je(() => zf(F), [F]), U = je(() => z.length ? jf(z[I] ?? z[0]) : wI(F), [I, F, z]), N = D ? CI(D, d) : !1;
45606
- P.current = m, de(() => {
45606
+ P.current = m, ce(() => {
45607
45607
  N && M(!1);
45608
- }, [N]), de(() => {
45608
+ }, [N]), ce(() => {
45609
45609
  T(0);
45610
45610
  }, [F]);
45611
45611
  const j = async (Z = b) => {
@@ -45766,7 +45766,7 @@ const mI = ({
45766
45766
  s(g), e(g);
45767
45767
  }
45768
45768
  };
45769
- return de(() => () => a == null ? void 0 : a.forEach((d) => {
45769
+ return ce(() => () => a == null ? void 0 : a.forEach((d) => {
45770
45770
  URL.revokeObjectURL(d.preview);
45771
45771
  }), [a]), /* @__PURE__ */ H(ye.Fragment, { children: [
45772
45772
  /* @__PURE__ */ u(cA, { sx: { width: "fit-content", height: "fit-content" }, children: /* @__PURE__ */ u(
@@ -46277,7 +46277,7 @@ const FI = [
46277
46277
  onApply: s
46278
46278
  }) => {
46279
46279
  const l = je(() => zI(t), [t]), c = je(() => t.map((y) => ({ label: y.label, value: y.key })), [t]), [d, p] = RA(() => Yd(t, o)), [g, m] = RA(null);
46280
- de(() => {
46280
+ ce(() => {
46281
46281
  A && (p(Yd(t, o)), m(null));
46282
46282
  }, [t, A, o]);
46283
46283
  const h = () => {
@@ -46509,7 +46509,7 @@ const FI = [
46509
46509
  onApply: c
46510
46510
  }) => {
46511
46511
  const [d, p] = RA([]), [g, m] = RA(null);
46512
- de(() => {
46512
+ ce(() => {
46513
46513
  A && (o && o.length > 0 ? p(
46514
46514
  o.map((E) => ({
46515
46515
  id: on(),
@@ -46694,7 +46694,7 @@ const FI = [
46694
46694
  ignoredKeysInCount: i = []
46695
46695
  }) => {
46696
46696
  const [a, s] = RA(!1), [l, c] = RA(o), [d, p] = RA(o), g = Object.entries(l).filter(([C, b]) => i.includes(C) ? !1 : Array.isArray(b) ? b.length > 0 : b != null && b !== "").length;
46697
- de(() => {
46697
+ ce(() => {
46698
46698
  a && p({ ...l });
46699
46699
  }, [l, a]);
46700
46700
  const m = (C, b) => {
@@ -47055,7 +47055,7 @@ function XI({
47055
47055
  enableTree: d = !1,
47056
47056
  rowLevels: p = {}
47057
47057
  }) {
47058
- const { palette: g } = qe(), m = i(e), h = s ? s(e, t) : { ...J2 }, f = ce((w, q) => {
47058
+ const { palette: g } = qe(), m = i(e), h = s ? s(e, t) : { ...J2 }, f = de((w, q) => {
47059
47059
  const y = q || "";
47060
47060
  return /* @__PURE__ */ H(pt, { sx: { color: io[950] }, children: [
47061
47061
  w,
@@ -47367,14 +47367,14 @@ function cc({
47367
47367
  q,
47368
47368
  y,
47369
47369
  E
47370
- ].filter(Boolean).length + I, U = z > 0 ? z * 19 + Math.max(z - 1, 0) * 16 : 0, N = ce(
47370
+ ].filter(Boolean).length + I, U = z > 0 ? z * 19 + Math.max(z - 1, 0) * 16 : 0, N = de(
47371
47371
  (oA) => s ? s(oA) : String(oA.id),
47372
47372
  [s]
47373
- ), j = ce(
47373
+ ), j = de(
47374
47374
  (oA) => c ? d ? d(oA) : oA && oA.children || [] : [],
47375
47375
  [c, d]
47376
47376
  );
47377
- de(() => {
47377
+ ce(() => {
47378
47378
  if (!c) {
47379
47379
  k(/* @__PURE__ */ new Set());
47380
47380
  return;
@@ -47390,19 +47390,19 @@ function cc({
47390
47390
  const { visibleRows: eA, rowLevels: Z, hasChildrenById: W } = je(
47391
47391
  () => ZI({ rows: v, enableTree: c, expandedRowIds: R, getRowId: N, getChildren: j }),
47392
47392
  [v, c, R, N, j]
47393
- ), V = je(() => eA.map(N), [eA, N]), _ = m ? V.every((oA) => m.includes(oA)) : !1, sA = m ? m.length > 0 && !_ : !1, tA = ce(() => {
47393
+ ), V = je(() => eA.map(N), [eA, N]), _ = m ? V.every((oA) => m.includes(oA)) : !1, sA = m ? m.length > 0 && !_ : !1, tA = de(() => {
47394
47394
  _ ? h == null || h([]) : h == null || h(V);
47395
- }, [_, h, V]), J = ce(
47395
+ }, [_, h, V]), J = de(
47396
47396
  (oA) => {
47397
47397
  m && (m.includes(oA) ? h == null || h(m.filter((AA) => AA !== oA)) : h == null || h([...m, oA]));
47398
47398
  },
47399
47399
  [m, h]
47400
- ), $ = ce((oA) => {
47400
+ ), $ = de((oA) => {
47401
47401
  k((AA) => {
47402
47402
  const pA = new Set(AA);
47403
47403
  return pA.has(oA) ? pA.delete(oA) : pA.add(oA), pA;
47404
47404
  });
47405
- }, []), G = ce(
47405
+ }, []), G = de(
47406
47406
  (oA, AA) => {
47407
47407
  const pA = N(oA);
47408
47408
  if (pA === Sr.TOTAL || pA === Sr.TOTAL_INCOME) return null;
@@ -47603,7 +47603,7 @@ function cc({
47603
47603
  U,
47604
47604
  i,
47605
47605
  G
47606
- ]), iA = ce(
47606
+ ]), iA = de(
47607
47607
  (oA, AA, pA) => /* @__PURE__ */ u(
47608
47608
  XI,
47609
47609
  {
@@ -47680,7 +47680,7 @@ function Kf({
47680
47680
  renderDefaultRow: i,
47681
47681
  onDisabled: a
47682
47682
  }) {
47683
- const { palette: s } = qe(), [l, c] = RA(!1), [d, p] = RA(), [g, m] = RA(!1), { iconTitle: h, title: f, children: C, indentSize: b, ...w } = t, { columns: q, ...y } = w, x = C == null ? void 0 : C[0], E = (b ?? nB) * r, I = ce(
47683
+ const { palette: s } = qe(), [l, c] = RA(!1), [d, p] = RA(), [g, m] = RA(!1), { iconTitle: h, title: f, children: C, indentSize: b, ...w } = t, { columns: q, ...y } = w, x = C == null ? void 0 : C[0], E = (b ?? nB) * r, I = de(
47684
47684
  async (O, R) => {
47685
47685
  const k = !l;
47686
47686
  if (c(k), !(!k || !t.onOpenCollapse || d !== void 0)) {
@@ -47696,7 +47696,7 @@ function Kf({
47696
47696
  }
47697
47697
  },
47698
47698
  [t, l, d]
47699
- ), T = ce(
47699
+ ), T = de(
47700
47700
  (O, R) => {
47701
47701
  const k = a ? a(O, R) : { ...J2 }, F = k.DISABLED_ROW || k.DISABLED_ALL_ACTIONS;
47702
47702
  return /* @__PURE__ */ u(So, { onClick: (K) => K.stopPropagation(), children: /* @__PURE__ */ u(
@@ -47714,7 +47714,11 @@ function Kf({
47714
47714
  ), B = je(
47715
47715
  () => bs(A).map((O) => O.id !== Cs ? O : { ...O, render: T }),
47716
47716
  [A, T]
47717
- ), M = oB(e, t, d), P = x ? bs(q) : q, v = rB(o, E), D = ce(
47717
+ ), M = oB(e, t, d), P = x ? bs(q) : q, v = rB(o, E);
47718
+ ce(() => {
47719
+ c(!1), p(void 0), m(!1);
47720
+ }, [e]);
47721
+ const D = de(
47718
47722
  ({
47719
47723
  row: O,
47720
47724
  index: R,
@@ -47741,10 +47745,11 @@ function Kf({
47741
47745
  cA,
47742
47746
  {
47743
47747
  sx: {
47744
- display: "flex",
47745
- overflowX: "auto",
47746
- maxWidth: "100%",
47747
- width: v,
47748
+ display: "block",
47749
+ overflowX: "visible",
47750
+ maxWidth: "none",
47751
+ minWidth: v,
47752
+ width: "max-content",
47748
47753
  marginLeft: `${E}px`
47749
47754
  },
47750
47755
  children: /* @__PURE__ */ u(ys, { in: l, timeout: "auto", unmountOnExit: !0, children: /* @__PURE__ */ H(
@@ -47753,7 +47758,9 @@ function Kf({
47753
47758
  sx: {
47754
47759
  padding: Re,
47755
47760
  borderRadius: Ie,
47756
- backgroundColor: s.background.default
47761
+ backgroundColor: s.background.default,
47762
+ minWidth: v,
47763
+ width: "max-content"
47757
47764
  },
47758
47765
  children: [
47759
47766
  f && /* @__PURE__ */ u(F0, { icon: h || "filter_list", content: f, size: "medium" }),
@@ -47783,7 +47790,7 @@ function DM({
47783
47790
  ...r
47784
47791
  }) {
47785
47792
  const i = je(() => e || [], [e]), a = je(() => bs(t), [t]), s = Ee(null), [l, c] = RA(0);
47786
- return de(() => {
47793
+ return ce(() => {
47787
47794
  s.current && c(s.current.clientWidth);
47788
47795
  }, []), /* @__PURE__ */ u(
47789
47796
  cc,
@@ -48922,7 +48929,7 @@ const UM = ({ averageRating: A, reviewCount: e, onClick: t, sx: o = {} }) => (t
48922
48929
  toggleSx: d
48923
48930
  }) => {
48924
48931
  const [p, g] = RA(o), [m, h] = RA({});
48925
- de(() => {
48932
+ ce(() => {
48926
48933
  A.length || i == null || i();
48927
48934
  }, [i, A.length]);
48928
48935
  const f = () => {
@@ -49158,17 +49165,17 @@ const Fa = () => {
49158
49165
  onStatusChange: a,
49159
49166
  onError: s
49160
49167
  }) => {
49161
- const [l, c] = RA(Ze.Idle), [d, p] = RA("Chưa kiểm tra"), [g, m] = RA(""), [h, f] = RA([]), [C, b] = RA(), [w, q] = RA([]), [y, x] = RA(!1), [E, I] = RA(!1), T = Ee(void 0), B = Ee(void 0), M = Ee(void 0), P = Ee(void 0), v = Ee(!0), D = Ee(0), O = Ee(Ze.Idle), R = Ee(!1), k = ce(
49168
+ const [l, c] = RA(Ze.Idle), [d, p] = RA("Chưa kiểm tra"), [g, m] = RA(""), [h, f] = RA([]), [C, b] = RA(), [w, q] = RA([]), [y, x] = RA(!1), [E, I] = RA(!1), T = Ee(void 0), B = Ee(void 0), M = Ee(void 0), P = Ee(void 0), v = Ee(!0), D = Ee(0), O = Ee(Ze.Idle), R = Ee(!1), k = de(
49162
49169
  (V) => {
49163
49170
  O.current = V, c(V), a == null || a(V);
49164
49171
  },
49165
49172
  [a]
49166
- ), F = ce(
49173
+ ), F = de(
49167
49174
  (V) => {
49168
49175
  m(V), s == null || s(V);
49169
49176
  },
49170
49177
  [s]
49171
- ), K = ce(
49178
+ ), K = de(
49172
49179
  (V) => {
49173
49180
  if (!V.trim()) return;
49174
49181
  f((J) => [...J.slice(-(Math.max(t, 1) - 1)), V]);
@@ -49182,7 +49189,7 @@ const Fa = () => {
49182
49189
  b(tA), i == null || i(tA);
49183
49190
  },
49184
49191
  [t, i, r]
49185
- ), z = ce(
49192
+ ), z = de(
49186
49193
  async (V, _) => {
49187
49194
  if (!V.readable) return;
49188
49195
  const sA = new TextDecoderStream();
@@ -49214,7 +49221,7 @@ const Fa = () => {
49214
49221
  }
49215
49222
  },
49216
49223
  [K, F, k]
49217
- ), U = ce(async () => {
49224
+ ), U = de(async () => {
49218
49225
  v.current = !0, D.current += 1;
49219
49226
  const V = B.current;
49220
49227
  if (V)
@@ -49239,7 +49246,7 @@ const Fa = () => {
49239
49246
  } catch {
49240
49247
  }
49241
49248
  B.current = void 0, M.current = void 0, P.current = void 0, T.current = void 0;
49242
- }, []), N = ce(
49249
+ }, []), N = de(
49243
49250
  async (V) => {
49244
49251
  try {
49245
49252
  await V.open(A);
@@ -49251,13 +49258,13 @@ const Fa = () => {
49251
49258
  }
49252
49259
  },
49253
49260
  [U, A]
49254
- ), j = ce(async () => {
49261
+ ), j = de(async () => {
49255
49262
  const V = Fa();
49256
49263
  if (!V)
49257
49264
  return q([]), [];
49258
49265
  const _ = jB(await V.getPorts(), e);
49259
49266
  return q(zB(_)), _;
49260
- }, [e]), eA = ce(
49267
+ }, [e]), eA = de(
49261
49268
  async (V) => {
49262
49269
  if (O.current === Ze.Connecting || O.current === Ze.Disconnecting)
49263
49270
  return;
@@ -49289,19 +49296,19 @@ const Fa = () => {
49289
49296
  }
49290
49297
  },
49291
49298
  [U, N, z, j, e, F, k]
49292
- ), Z = ce(async () => {
49299
+ ), Z = de(async () => {
49293
49300
  if (!T.current && O.current !== Ze.Error) {
49294
49301
  k(Ze.Idle);
49295
49302
  return;
49296
49303
  }
49297
49304
  k(Ze.Disconnecting), b(void 0), await U(), k(Ze.Idle);
49298
- }, [U, k]), W = ce(() => {
49305
+ }, [U, k]), W = de(() => {
49299
49306
  f([]);
49300
49307
  }, []);
49301
- return de(() => {
49308
+ return ce(() => {
49302
49309
  const V = Fa(), _ = $d();
49303
49310
  x(!!V), I(_), p(V ? "navigator.serial: có" : "navigator.serial: không"), j();
49304
- }, [j]), de(() => {
49311
+ }, [j]), ce(() => {
49305
49312
  if (!o) {
49306
49313
  R.current = !1;
49307
49314
  return;
@@ -49310,7 +49317,7 @@ const Fa = () => {
49310
49317
  R.current = !0, (async () => {
49311
49318
  (await j()).length === 1 && eA({ useAuthorizedPort: !0, authorizedPortIndex: 0, silentNoAuthorizedPort: !0 });
49312
49319
  })();
49313
- }, [o, eA, j]), de(
49320
+ }, [o, eA, j]), ce(
49314
49321
  () => () => {
49315
49322
  U();
49316
49323
  },
@@ -49361,12 +49368,12 @@ const Fa = () => {
49361
49368
  lineLimit: c,
49362
49369
  autoConnectAuthorized: s,
49363
49370
  onReading: p
49364
- }), v = I === Ze.Connected, D = I === Ze.Connecting || I === Ze.Disconnecting, O = ce(
49371
+ }), v = I === Ze.Connected, D = I === Ze.Connecting || I === Ze.Disconnecting, O = de(
49365
49372
  (k) => {
49366
49373
  t === void 0 && f(k);
49367
49374
  },
49368
49375
  [t]
49369
- ), R = ce(async () => {
49376
+ ), R = de(async () => {
49370
49377
  var F;
49371
49378
  if (!v || !x || !(T != null && T.value) || x.disabled) return;
49372
49379
  const k = Date.now();
@@ -49376,7 +49383,7 @@ const Fa = () => {
49376
49383
  } catch {
49377
49384
  }
49378
49385
  }, [x, a, v, g, T]);
49379
- return de(() => {
49386
+ return ce(() => {
49380
49387
  if (!A.length) {
49381
49388
  O("");
49382
49389
  return;
@@ -49384,9 +49391,9 @@ const Fa = () => {
49384
49391
  if (x || !e) return;
49385
49392
  const k = A.find((F) => F.name === e);
49386
49393
  k && O(k.name);
49387
- }, [x, e, O, A]), de(() => {
49394
+ }, [x, e, O, A]), ce(() => {
49388
49395
  !r || !(T != null && T.receivedAt) || C.current === T.receivedAt || R();
49389
- }, [R, r, T == null ? void 0 : T.receivedAt]), de(() => {
49396
+ }, [R, r, T == null ? void 0 : T.receivedAt]), ce(() => {
49390
49397
  w.current !== y && (w.current = y, !(!r || !i || !(T != null && T.value)) && R());
49391
49398
  }, [y, i, R, r, T == null ? void 0 : T.value]), /* @__PURE__ */ H(De, { sx: [{ gap: NA, flexWrap: "wrap" }, ...q], children: [
49392
49399
  v ? /* @__PURE__ */ u(
@@ -49485,7 +49492,7 @@ const Fa = () => {
49485
49492
  sx: h,
49486
49493
  labelSx: f
49487
49494
  }) => {
49488
- const C = je(() => l === "max" ? "100px" : `${l}px`, [l]), b = je(() => p.find((E) => E.value === t), [p, t]), w = ce(() => r && a ? a : i && s ? s : d || "", [r, a, i, s, d]), q = ce(() => r ? M0[500] : i ? sr[500] : le[400], [r, i]), y = ce(() => r ? M0[500] : i ? sr[500] : le[300], [r, i]), x = je(
49495
+ const C = je(() => l === "max" ? "100px" : `${l}px`, [l]), b = je(() => p.find((E) => E.value === t), [p, t]), w = de(() => r && a ? a : i && s ? s : d || "", [r, a, i, s, d]), q = de(() => r ? M0[500] : i ? sr[500] : le[400], [r, i]), y = de(() => r ? M0[500] : i ? sr[500] : le[300], [r, i]), x = je(
49489
49496
  () => ({
49490
49497
  "& .MuiOutlinedInput-root": {
49491
49498
  borderRadius: `${C} !important`,
@@ -49711,11 +49718,11 @@ const Fa = () => {
49711
49718
  sx: y
49712
49719
  }) => {
49713
49720
  const [E, I] = RA(""), [T, B] = RA(C), [M, P] = RA(!1), v = Ee(null), D = Ee(r), O = Ee(o), R = Ee(C);
49714
- de(() => {
49721
+ ce(() => {
49715
49722
  D.current = r, O.current = o, R.current = C;
49716
49723
  }, [r, o, C]);
49717
49724
  const k = je(() => A ? (Array.isArray(A) ? A : [A]).map((N) => typeof N == "object" ? N : { label: String(N), value: N }) : [], [A]);
49718
- de(() => {
49725
+ ce(() => {
49719
49726
  if (v.current && clearTimeout(v.current), !E.trim()) {
49720
49727
  B(R.current);
49721
49728
  return;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sevago-library",
3
- "version": "1.6.13",
3
+ "version": "1.6.14",
4
4
  "description": "Sevago SSO Frontend Library - A comprehensive SSO solution with React components",
5
5
  "main": "dist/index.cjs.js",
6
6
  "module": "dist/index.esm.js",