@3sc/common-component 0.0.467 → 0.0.469

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.es.js CHANGED
@@ -45879,7 +45879,7 @@ const uz = {
45879
45879
  t({ type: He.LOADING, loading: !1 });
45880
45880
  }
45881
45881
  }, [e, t]), E = (j) => {
45882
- const F = j || v || [];
45882
+ const F = (v || []).filter((N) => C ? !N.isRead : !0);
45883
45883
  return {
45884
45884
  0: F,
45885
45885
  1: F.filter((N) => (N == null ? void 0 : N.type) === "INFO"),
@@ -45916,7 +45916,7 @@ const uz = {
45916
45916
  const $ = v.map(
45917
45917
  (B) => j.includes(B.id) ? { ...B, isRead: !0 } : B
45918
45918
  ), L = $.filter((B) => !B.isRead).length;
45919
- t({
45919
+ L === 0 && t({ type: He.SET_MODE, mode: !1 }), t({
45920
45920
  type: He.SUCCESS,
45921
45921
  data: Ja($)
45922
45922
  }), t({
@@ -45937,7 +45937,7 @@ const uz = {
45937
45937
  const j = kV(v);
45938
45938
  if ((await My(e, j, NW.MARK_ALL_READ)).status === qo.OK) {
45939
45939
  const N = v.map(($) => ({ ...$, isRead: !0 }));
45940
- t({
45940
+ t({ type: He.SET_MODE, mode: !1 }), t({
45941
45941
  type: He.SUCCESS,
45942
45942
  data: Ja(N)
45943
45943
  }), t({
@@ -45957,8 +45957,8 @@ const uz = {
45957
45957
  }, 400);
45958
45958
  }, M = () => {
45959
45959
  t({ type: He.LOADING, loading: !0 });
45960
- const F = !C ? (O || []).filter((N) => !N.isRead) : v || [];
45961
- t({ type: He.SET_MODE, mode: !C }), b(F), h(1), setTimeout(() => {
45960
+ const j = C ? v || [] : (O || []).filter((F) => !F.isRead);
45961
+ t({ type: He.SET_MODE, mode: !C }), b(j), h(1), setTimeout(() => {
45962
45962
  t({ type: He.LOADING, loading: !1 });
45963
45963
  }, 400);
45964
45964
  };
@@ -45984,7 +45984,7 @@ const uz = {
45984
45984
  },
45985
45985
  activeTab: w,
45986
45986
  loading: g,
45987
- tabData: E(O)[w],
45987
+ tabData: E()[w],
45988
45988
  data: O,
45989
45989
  mode: C,
45990
45990
  handleTabChange: A,
@@ -46711,7 +46711,7 @@ const bz = ({
46711
46711
  const [r, o] = De(1), [i, a] = De(10), [l, c] = De(((x = e == null ? void 0 : e.notificationDetails) == null ? void 0 : x.length) || 0), [u, d] = De("sku_name"), [f, p] = De("asc"), [h, y] = De([]), [g, v] = De("");
46712
46712
  return st(() => {
46713
46713
  var C, w;
46714
- if ((g || u) && !((C = e == null ? void 0 : e.notificationDetails) != null && C.length)) {
46714
+ if ((g || u) && ((C = e == null ? void 0 : e.notificationDetails) != null && C.length)) {
46715
46715
  const O = EV(e == null ? void 0 : e.notificationDetails, AW, g);
46716
46716
  if (u) {
46717
46717
  const b = RV(
@@ -46719,7 +46719,7 @@ const bz = ({
46719
46719
  u,
46720
46720
  f
46721
46721
  );
46722
- console.log(e, e == null ? void 0 : e.notificationDetails, b, O), y($u(b, r, i)), c((b == null ? void 0 : b.length) || 0);
46722
+ y($u(b, r, i)), c((b == null ? void 0 : b.length) || 0);
46723
46723
  return;
46724
46724
  }
46725
46725
  y($u(O, r, i)), c((O == null ? void 0 : O.length) || 0);