@3sc/common-component 0.0.341 → 0.0.343

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
@@ -40640,7 +40640,7 @@ q(vx)(({ theme: e }) => ({
40640
40640
  padding: "0!important"
40641
40641
  }
40642
40642
  }));
40643
- const lz = (e) => /* @__PURE__ */ y.jsx(Gn, { children: /* @__PURE__ */ y.jsx(h8, { ...e }) }), m8 = ({ iconUrl: e, ...t }) => {
40643
+ const cz = (e) => /* @__PURE__ */ y.jsx(Gn, { children: /* @__PURE__ */ y.jsx(h8, { ...e }) }), m8 = ({ iconUrl: e, ...t }) => {
40644
40644
  const [n, r] = Pe(!1), o = Nt();
40645
40645
  return /* @__PURE__ */ y.jsxs(
40646
40646
  we,
@@ -41376,7 +41376,7 @@ const A8 = ({ progress: e = 0, status: t }) => {
41376
41376
  showToast: () => {
41377
41377
  throw new Error("ToastProvider is not mounted");
41378
41378
  }
41379
- }, cz = {
41379
+ }, uz = {
41380
41380
  success: (e) => jd.showToast(e, "SUCCESS"),
41381
41381
  error: (e) => jd.showToast(e, "FAILED")
41382
41382
  }, j8 = q(pa)(({ theme: e }) => ({
@@ -41526,7 +41526,7 @@ const A8 = ({ progress: e = 0, status: t }) => {
41526
41526
  )
41527
41527
  }
41528
41528
  );
41529
- }, $8 = ({ message: e, status: t }) => /* @__PURE__ */ y.jsx(Gn, { children: /* @__PURE__ */ y.jsx(N8, { message: e, status: t }) }), uz = ({ children: e }) => {
41529
+ }, $8 = ({ message: e, status: t }) => /* @__PURE__ */ y.jsx(Gn, { children: /* @__PURE__ */ y.jsx(N8, { message: e, status: t }) }), dz = ({ children: e }) => {
41530
41530
  const [t, n] = Pe(null), r = Kt((o, i) => {
41531
41531
  n({ message: o, status: i, key: Date.now() });
41532
41532
  }, []);
@@ -41610,7 +41610,7 @@ const V8 = Ir`
41610
41610
  66% {background-position: 100% 0,100% 100%,0 100%,0 0 ; width:60px; height: 60px}
41611
41611
  100% {background-position: 100% 0,100% 100%,0 100%,0 0 }
41612
41612
  `;
41613
- function dz() {
41613
+ function fz() {
41614
41614
  return /* @__PURE__ */ y.jsx(
41615
41615
  dc,
41616
41616
  {
@@ -43310,22 +43310,22 @@ Ot.getAdapter = hw.getAdapter;
43310
43310
  Ot.HttpStatusCode = Ld;
43311
43311
  Ot.default = Ot;
43312
43312
  const {
43313
- Axios: hz,
43314
- AxiosError: mz,
43315
- CanceledError: gz,
43316
- isCancel: yz,
43317
- CancelToken: bz,
43318
- VERSION: vz,
43319
- all: xz,
43320
- Cancel: wz,
43321
- isAxiosError: Cz,
43322
- spread: Sz,
43323
- toFormData: Tz,
43324
- AxiosHeaders: Oz,
43325
- HttpStatusCode: kz,
43326
- formToJSON: Ez,
43327
- getAdapter: Rz,
43328
- mergeConfig: Pz
43313
+ Axios: mz,
43314
+ AxiosError: gz,
43315
+ CanceledError: yz,
43316
+ isCancel: bz,
43317
+ CancelToken: vz,
43318
+ VERSION: xz,
43319
+ all: wz,
43320
+ Cancel: Cz,
43321
+ isAxiosError: Sz,
43322
+ spread: Tz,
43323
+ toFormData: Oz,
43324
+ AxiosHeaders: kz,
43325
+ HttpStatusCode: Ez,
43326
+ formToJSON: Rz,
43327
+ getAdapter: Pz,
43328
+ mergeConfig: Mz
43329
43329
  } = Ot, Xp = {
43330
43330
  BASE_URL: "https://qa.3sc.ai/api",
43331
43331
  //VERSION: import.meta.env.VITE_APP_VERSION,
@@ -43499,8 +43499,9 @@ const Bu = $c(Mr.SNOP), Lu = $c(Mr.SELECTED_BU), Vu = $c(Mr.USER), SW = $c(Mr.SE
43499
43499
  }
43500
43500
  })());
43501
43501
  }
43502
- a = (d == null ? void 0 : d.columns) ?? a ?? wy({ definitions: i });
43502
+ a = ((d == null ? void 0 : d.columns) && MW(d == null ? void 0 : d.columns, a)) ?? a ?? wy({ definitions: i });
43503
43503
  const f = a.reduce((x, w) => (x[w.key] = w, x), {}), p = l.reduce((x, w) => (x[w.key] = w, x), {}), h = [];
43504
+ console.log({ defaultUserSettings: a, definitions: i, hashMapUserSettings: f, hashMapLabels: p });
43504
43505
  for (const x of i) {
43505
43506
  const w = f[x.key] || {}, C = p[x.key] || {};
43506
43507
  let O = {
@@ -43508,7 +43509,7 @@ const Bu = $c(Mr.SNOP), Lu = $c(Mr.SELECTED_BU), Vu = $c(Mr.USER), SW = $c(Mr.SE
43508
43509
  ...w,
43509
43510
  ...C
43510
43511
  };
43511
- if ((b = x.children) != null && b.length) {
43512
+ if (console.log({ item: x, userSetting: w, label: C, obj: O }), (b = x.children) != null && b.length) {
43512
43513
  const v = (w.children || []).reduce((E, M) => (M != null && M.key && (E[M.key] = M), E), {}), k = (C.children || []).reduce((E, M) => (M != null && M.key && (E[M.key] = M), E), {});
43513
43514
  O.children = x.children.map((E) => ({
43514
43515
  ...E,
@@ -43528,7 +43529,14 @@ const Bu = $c(Mr.SNOP), Lu = $c(Mr.SELECTED_BU), Vu = $c(Mr.USER), SW = $c(Mr.SE
43528
43529
  ...(t == null ? void 0 : t.children) && {
43529
43530
  children: Zp(t.children)
43530
43531
  }
43531
- })), wy = ({ definitions: e }) => Zp(e), MW = () => ({
43532
+ })), wy = ({ definitions: e }) => Zp(e), MW = (e, t) => t.map((n) => {
43533
+ var r, o;
43534
+ return {
43535
+ ...n,
43536
+ sequenceId: ((r = e.find((i) => i.key === n.key)) == null ? void 0 : r.sequenceId) || n.sequenceId,
43537
+ isHidden: ((o = e.find((i) => i.key === n.key)) == null ? void 0 : o.isHidden) || n.isHidden
43538
+ };
43539
+ }), DW = () => ({
43532
43540
  definitions: [
43533
43541
  {
43534
43542
  id: 1,
@@ -43671,7 +43679,7 @@ Jp.propTypes = {
43671
43679
  minWidth: "number",
43672
43680
  className: "string"
43673
43681
  };
43674
- const DW = (e, t, n, r, o) => {
43682
+ const IW = (e, t, n, r, o) => {
43675
43683
  const [i, a] = Pe({
43676
43684
  isOpen: !1,
43677
43685
  column: null
@@ -43983,7 +43991,7 @@ q(hc)(({ theme: e }) => ({
43983
43991
  const bo = q(at)(({ theme: e }) => ({
43984
43992
  color: e.palette.primary.notifyTextColor,
43985
43993
  fontSize: "1.1rem"
43986
- })), IW = q(Nv)(({ theme: e }) => ({
43994
+ })), AW = q(Nv)(({ theme: e }) => ({
43987
43995
  width: 28,
43988
43996
  height: 16,
43989
43997
  padding: 0,
@@ -44028,7 +44036,7 @@ const bo = q(at)(({ theme: e }) => ({
44028
44036
  backgroundColor: "rgba(255,255,255,.35)"
44029
44037
  })
44030
44038
  }
44031
- })), AW = q(fa)(({ theme: e }) => ({
44039
+ })), jW = q(fa)(({ theme: e }) => ({
44032
44040
  color: e.palette.primary.notifyTextColor,
44033
44041
  padding: "0.6rem 0",
44034
44042
  fontSize: "0.9rem",
@@ -44036,7 +44044,7 @@ const bo = q(at)(({ theme: e }) => ({
44036
44044
  "&::before, &::after": {
44037
44045
  borderColor: `${e.palette.primary.notifyBorderColor}!important`
44038
44046
  }
44039
- })), jW = q(If)(({ theme: e }) => ({
44047
+ })), NW = q(If)(({ theme: e }) => ({
44040
44048
  "& .MuiBadge-badge": {
44041
44049
  right: 3.5,
44042
44050
  top: 1.8,
@@ -44080,7 +44088,7 @@ q(xc)(({ theme: e }) => ({
44080
44088
  }
44081
44089
  }
44082
44090
  }));
44083
- const NW = q(Uv)(({ theme: e }) => ({
44091
+ const $W = q(Uv)(({ theme: e }) => ({
44084
44092
  minHeight: "2rem",
44085
44093
  "& .MuiTabs-indicator": {
44086
44094
  height: "0.1rem",
@@ -44170,7 +44178,7 @@ Tw.propTypes = {
44170
44178
  handleMenuClick: s.func,
44171
44179
  isManageable: s.bool
44172
44180
  };
44173
- const $W = q(El)(({ theme: e }) => ({
44181
+ const _W = q(El)(({ theme: e }) => ({
44174
44182
  overflow: "hidden",
44175
44183
  textOverflow: "ellipsis",
44176
44184
  whiteSpace: "nowrap",
@@ -44190,19 +44198,19 @@ const $W = q(El)(({ theme: e }) => ({
44190
44198
  }
44191
44199
  }));
44192
44200
  function di({ children: e, ...t }) {
44193
- return /* @__PURE__ */ y.jsx($W, { ...t, children: e });
44201
+ return /* @__PURE__ */ y.jsx(_W, { ...t, children: e });
44194
44202
  }
44195
44203
  di.propTypes = {
44196
44204
  children: s.node
44197
44205
  // Expecting column width as a string like "150px"
44198
44206
  };
44199
- const _W = q(Vv)(() => ({
44207
+ const FW = q(Vv)(() => ({
44200
44208
  "&:last-child td": {
44201
44209
  borderBottom: 0
44202
44210
  }
44203
44211
  }));
44204
44212
  function qo({ children: e, ...t }) {
44205
- return /* @__PURE__ */ y.jsx(_W, { ...t, children: e });
44213
+ return /* @__PURE__ */ y.jsx(FW, { ...t, children: e });
44206
44214
  }
44207
44215
  qo.propTypes = {
44208
44216
  children: s.node
@@ -44224,7 +44232,7 @@ function Ow({
44224
44232
  handleClose: h,
44225
44233
  handleHideClick: g,
44226
44234
  columnUpdaterFunction: m
44227
- } = DW(
44235
+ } = IW(
44228
44236
  u,
44229
44237
  d,
44230
44238
  a,
@@ -44698,7 +44706,7 @@ const Cy = ({ type: e }) => {
44698
44706
  ] })
44699
44707
  ] }) })
44700
44708
  }[e];
44701
- }, FW = (e) => {
44709
+ }, BW = (e) => {
44702
44710
  if (!e) return null;
44703
44711
  const { options: t, ...n } = e, r = t ? "select" : "button", o = {
44704
44712
  button: (i) => {
@@ -44729,7 +44737,7 @@ const Cy = ({ type: e }) => {
44729
44737
  }
44730
44738
  };
44731
44739
  return o[r] ? o[r](n) : null;
44732
- }, BW = ({ presentSetting: e, gridSetting: t, gridPath: n }) => {
44740
+ }, LW = ({ presentSetting: e, gridSetting: t, gridPath: n }) => {
44733
44741
  if (!n) return e;
44734
44742
  const r = n.split("/").filter(Boolean), o = Zp(t == null ? void 0 : t.grid);
44735
44743
  let i = e;
@@ -44744,19 +44752,19 @@ const Cy = ({ type: e }) => {
44744
44752
  settingObject: e,
44745
44753
  defaultUserSettings: o
44746
44754
  };
44747
- }, LW = async ({ baseUrl: e, gridSetting: t, gridPath: n }) => {
44755
+ }, VW = async ({ baseUrl: e, gridSetting: t, gridPath: n }) => {
44748
44756
  try {
44749
- const r = JSON.parse(localStorage.getItem("settings")), { settingObject: o, defaultUserSettings: i } = BW({ presentSetting: r, gridSetting: t, gridPath: n });
44757
+ const r = JSON.parse(localStorage.getItem("settings")), { settingObject: o, defaultUserSettings: i } = LW({ presentSetting: r, gridSetting: t, gridPath: n });
44750
44758
  return localStorage.setItem("settings", JSON.stringify(o)), await qc({ baseUrl: e, payload: o }), i;
44751
44759
  } catch (r) {
44752
44760
  console.error(r);
44753
44761
  }
44754
- }, VW = ({ customTools: e }) => {
44762
+ }, WW = ({ customTools: e }) => {
44755
44763
  var r, o;
44756
44764
  const t = (r = e == null ? void 0 : e.filter((i) => (i == null ? void 0 : i.type) === xy.PRIMARY)) == null ? void 0 : r.sort((i, a) => i.sequenceId - a.sequenceId), n = (o = e == null ? void 0 : e.filter((i) => (i == null ? void 0 : i.type) === xy.SECONDARY)) == null ? void 0 : o.sort((i, a) => i.sequenceId - a.sequenceId);
44757
44765
  return { primaryButtons: t, secondaryButtons: n };
44758
44766
  }, Ew = ({ customTools: e, isExpanded: t, setIsExpanded: n }) => {
44759
- const { primaryButtons: r, secondaryButtons: o } = VW({ customTools: e }), [i, a] = Pe(r), l = (o == null ? void 0 : o.length) > 0, c = (d) => {
44767
+ const { primaryButtons: r, secondaryButtons: o } = WW({ customTools: e }), [i, a] = Pe(r), l = (o == null ? void 0 : o.length) > 0, c = (d) => {
44760
44768
  d ? a([...r, ...o]) : setTimeout(() => {
44761
44769
  a(r);
44762
44770
  }, 100);
@@ -44801,7 +44809,7 @@ const Cy = ({ type: e }) => {
44801
44809
  exit: { opacity: 0 },
44802
44810
  transition: { duration: 0.15 },
44803
44811
  layout: !0,
44804
- children: /* @__PURE__ */ y.jsx(we, { sx: { flexShrink: 0, minWidth: "fit-content" }, children: FW(d) })
44812
+ children: /* @__PURE__ */ y.jsx(we, { sx: { flexShrink: 0, minWidth: "fit-content" }, children: BW(d) })
44805
44813
  },
44806
44814
  `${d.id}_${f}`
44807
44815
  )) }),
@@ -44865,7 +44873,7 @@ const Rw = ({
44865
44873
  }, [u]);
44866
44874
  const m = async (M) => {
44867
44875
  try {
44868
- await LW({
44876
+ await VW({
44869
44877
  baseUrl: r,
44870
44878
  gridPath: o,
44871
44879
  gridSetting: {
@@ -45328,18 +45336,18 @@ Dw.propTypes = {
45328
45336
  breadcrumbProps: s.object.isRequired,
45329
45337
  switchProps: s.object
45330
45338
  };
45331
- function WW({ headerProps: e }) {
45339
+ function zW({ headerProps: e }) {
45332
45340
  return /* @__PURE__ */ y.jsx(Gn, { children: /* @__PURE__ */ y.jsx(Dw, { ...e }) });
45333
45341
  }
45334
- WW.propTypes = {
45342
+ zW.propTypes = {
45335
45343
  headerProps: s.object.isRequired
45336
45344
  };
45337
45345
  const Qp = er(null), Iw = er(null);
45338
- function zW({ children: e }) {
45339
- const [t, n] = _y(UW, HW);
45346
+ function UW({ children: e }) {
45347
+ const [t, n] = _y(HW, qW);
45340
45348
  return /* @__PURE__ */ y.jsx(Qp.Provider, { value: t, children: /* @__PURE__ */ y.jsx(Iw.Provider, { value: n, children: e }) });
45341
45349
  }
45342
- function UW(e, t) {
45350
+ function HW(e, t) {
45343
45351
  var n;
45344
45352
  switch (t.type) {
45345
45353
  case qe.LOADING:
@@ -45354,7 +45362,7 @@ function UW(e, t) {
45354
45362
  throw new Error(`${Ur.UNHANDLED}: ${t}`);
45355
45363
  }
45356
45364
  }
45357
- const HW = {
45365
+ const qW = {
45358
45366
  loading: !1,
45359
45367
  data: [],
45360
45368
  error: "",
@@ -45362,7 +45370,7 @@ const HW = {
45362
45370
  count: 0,
45363
45371
  boo: !1
45364
45372
  }
45365
- }, { TENANT_ID: eh, BU_ID: th, SNOP_ID: Aw } = vw, { TENANT_IDS: nh, BU_IDS: rh } = Hc, qW = async (e) => {
45373
+ }, { TENANT_ID: eh, BU_ID: th, SNOP_ID: Aw } = vw, { TENANT_IDS: nh, BU_IDS: rh } = Hc, YW = async (e) => {
45366
45374
  try {
45367
45375
  const t = `${e}${Uc.NOTIFICATION}/v1?${eh}=${nh}&${th}=${rh}`;
45368
45376
  return await Ot.get(t, Ra);
@@ -45376,7 +45384,7 @@ const HW = {
45376
45384
  } catch (r) {
45377
45385
  return r;
45378
45386
  }
45379
- }, YW = async ({ baseUrl: e, id: t, snopId: n }) => {
45387
+ }, GW = async ({ baseUrl: e, id: t, snopId: n }) => {
45380
45388
  try {
45381
45389
  const r = `${e}${Uc.NOTIFICATION}${Xp.VERSION}?${eh}=${nh}&${th}=${rh}&${Aw}=${n}&id=${t}`;
45382
45390
  return await Ot.get(r, Ra);
@@ -45400,7 +45408,7 @@ const HW = {
45400
45408
  var _, F;
45401
45409
  try {
45402
45410
  t({ type: qe.LOADING, loading: !0 }), t({ type: qe.SUCCESS, data: [] });
45403
- const $ = await qW(e);
45411
+ const $ = await YW(e);
45404
45412
  if ($.status === Xa.OK) {
45405
45413
  const B = ((F = (_ = $.data) == null ? void 0 : _.responseData) == null ? void 0 : F.response) || [], V = Ya(B);
45406
45414
  t({ type: qe.SUCCESS, data: Ya(V) }), t({
@@ -45427,7 +45435,7 @@ const HW = {
45427
45435
  if (_) {
45428
45436
  f(_);
45429
45437
  try {
45430
- const P = await YW({ baseUrl: e, id: _, snopId: F });
45438
+ const P = await GW({ baseUrl: e, id: _, snopId: F });
45431
45439
  if (P.status === Xa.OK) {
45432
45440
  const N = ((V = (B = ($ = P.data) == null ? void 0 : $.responseData) == null ? void 0 : B.response) == null ? void 0 : V[0]) || {};
45433
45441
  u(N || {}), l(!0);
@@ -45540,7 +45548,7 @@ function zd() {
45540
45548
  return e;
45541
45549
  }, zd.apply(null, arguments);
45542
45550
  }
45543
- var GW = function(t) {
45551
+ var KW = function(t) {
45544
45552
  return /* @__PURE__ */ S.createElement("svg", zd({
45545
45553
  xmlns: "http://www.w3.org/2000/svg",
45546
45554
  width: 16,
@@ -45563,7 +45571,7 @@ var GW = function(t) {
45563
45571
  d: "M10.013 12.957c0 1.1-.9 2-2 2a2.007 2.007 0 0 1-2-2"
45564
45572
  })));
45565
45573
  };
45566
- const KW = ({ count: e }) => (Nt(), /* @__PURE__ */ y.jsxs(y.Fragment, { children: [
45574
+ const XW = ({ count: e }) => (Nt(), /* @__PURE__ */ y.jsxs(y.Fragment, { children: [
45567
45575
  /* @__PURE__ */ y.jsx(
45568
45576
  we,
45569
45577
  {
@@ -45577,7 +45585,7 @@ const KW = ({ count: e }) => (Nt(), /* @__PURE__ */ y.jsxs(y.Fragment, { childre
45577
45585
  }
45578
45586
  },
45579
45587
  children: /* @__PURE__ */ y.jsx(
45580
- GW,
45588
+ KW,
45581
45589
  {
45582
45590
  style: {
45583
45591
  scale: 2
@@ -45587,7 +45595,7 @@ const KW = ({ count: e }) => (Nt(), /* @__PURE__ */ y.jsxs(y.Fragment, { childre
45587
45595
  }
45588
45596
  ),
45589
45597
  /* @__PURE__ */ y.jsx(
45590
- jW,
45598
+ NW,
45591
45599
  {
45592
45600
  badgeContent: e != 0 ? "" : null,
45593
45601
  color: "error"
@@ -45644,7 +45652,7 @@ function Ud() {
45644
45652
  return e;
45645
45653
  }, Ud.apply(null, arguments);
45646
45654
  }
45647
- var XW = function(t) {
45655
+ var ZW = function(t) {
45648
45656
  return /* @__PURE__ */ S.createElement("svg", Ud({
45649
45657
  xmlns: "http://www.w3.org/2000/svg",
45650
45658
  width: 14,
@@ -45667,7 +45675,7 @@ function Hd() {
45667
45675
  return e;
45668
45676
  }, Hd.apply(null, arguments);
45669
45677
  }
45670
- var ZW = function(t) {
45678
+ var JW = function(t) {
45671
45679
  return /* @__PURE__ */ S.createElement("svg", Hd({
45672
45680
  xmlns: "http://www.w3.org/2000/svg",
45673
45681
  width: 12,
@@ -45694,7 +45702,7 @@ function qd() {
45694
45702
  return e;
45695
45703
  }, qd.apply(null, arguments);
45696
45704
  }
45697
- var JW = function(t) {
45705
+ var QW = function(t) {
45698
45706
  return /* @__PURE__ */ S.createElement("svg", qd({
45699
45707
  xmlns: "http://www.w3.org/2000/svg",
45700
45708
  width: 9,
@@ -45794,7 +45802,7 @@ const Nw = ({
45794
45802
  Ka,
45795
45803
  {
45796
45804
  icon: /* @__PURE__ */ y.jsx(
45797
- ZW,
45805
+ JW,
45798
45806
  {
45799
45807
  className: `${l === "light" ? "chip-icon-light" : "chip-icon-dark"}`
45800
45808
  }
@@ -45816,7 +45824,7 @@ const Nw = ({
45816
45824
  Ka,
45817
45825
  {
45818
45826
  icon: /* @__PURE__ */ y.jsx(
45819
- JW,
45827
+ QW,
45820
45828
  {
45821
45829
  className: `${l === "light" ? "chip-icon-light" : "chip-icon-dark"}`
45822
45830
  }
@@ -45947,7 +45955,7 @@ const $w = ({
45947
45955
  },
45948
45956
  children: [
45949
45957
  Object.entries(w8(d)).map(([C, O]) => /* @__PURE__ */ y.jsxs(ye.Fragment, { children: [
45950
- C !== u && /* @__PURE__ */ y.jsx(AW, { children: C }),
45958
+ C !== u && /* @__PURE__ */ y.jsx(jW, { children: C }),
45951
45959
  O.map((v, k) => /* @__PURE__ */ y.jsx(ye.Fragment, { children: /* @__PURE__ */ y.jsx(
45952
45960
  Nw,
45953
45961
  {
@@ -46008,7 +46016,7 @@ $w.propTypes = {
46008
46016
  handleRead: s.func,
46009
46017
  handleShowDetails: s.func
46010
46018
  };
46011
- const QW = ({
46019
+ const ez = ({
46012
46020
  onRefresh: e,
46013
46021
  handleShowDetails: t,
46014
46022
  clickId: n,
@@ -46069,7 +46077,7 @@ const QW = ({
46069
46077
  m: "1.2rem 1.2rem 0 1.2rem",
46070
46078
  borderColor: (w) => w.palette.primary.notifyBorderColor
46071
46079
  },
46072
- children: /* @__PURE__ */ y.jsxs(NW, { value: a, onChange: p, children: [
46080
+ children: /* @__PURE__ */ y.jsxs($W, { value: a, onChange: p, children: [
46073
46081
  /* @__PURE__ */ y.jsx(
46074
46082
  Wu,
46075
46083
  {
@@ -46199,7 +46207,7 @@ const QW = ({
46199
46207
  /* @__PURE__ */ y.jsxs(mt, { direction: "row", gap: 1, children: [
46200
46208
  /* @__PURE__ */ y.jsx(bo, { sx: { fontSize: "1rem" }, children: "Only show unread" }),
46201
46209
  /* @__PURE__ */ y.jsx(
46202
- IW,
46210
+ AW,
46203
46211
  {
46204
46212
  disabled: i,
46205
46213
  checked: u,
@@ -46213,7 +46221,7 @@ const QW = ({
46213
46221
  variant: "outlined",
46214
46222
  className: "view-all",
46215
46223
  onClick: o,
46216
- startIcon: /* @__PURE__ */ y.jsx(XW, {}),
46224
+ startIcon: /* @__PURE__ */ y.jsx(ZW, {}),
46217
46225
  disabled: !((x = l == null ? void 0 : l.filter((w) => !(w != null && w.isRead))) != null && x.length),
46218
46226
  style: { backgroundColor: "transparent" },
46219
46227
  sx: {
@@ -46244,7 +46252,7 @@ const QW = ({
46244
46252
  }
46245
46253
  )
46246
46254
  ] });
46247
- }, ez = ({ data: e, handleClose: t }) => {
46255
+ }, tz = ({ data: e, handleClose: t }) => {
46248
46256
  var b;
46249
46257
  const [n, r] = Pe(1), [o, i] = Pe(10), [a, l] = Pe(((b = e == null ? void 0 : e.notificationDetails) == null ? void 0 : b.length) || 0), [c, u] = Pe("sku_name"), [d, f] = Pe("asc"), [p, h] = Pe([]), [g, m] = Pe("");
46250
46258
  return gt(() => {
@@ -46306,7 +46314,7 @@ const QW = ({
46306
46314
  tableProps: {
46307
46315
  data: p,
46308
46316
  columns: {
46309
- ...MW(),
46317
+ ...DW(),
46310
46318
  isManageable: !1
46311
46319
  },
46312
46320
  sort: {
@@ -46355,7 +46363,7 @@ const QW = ({
46355
46363
  }
46356
46364
  )
46357
46365
  ] });
46358
- }, tz = ({ baseUrl: e }) => {
46366
+ }, nz = ({ baseUrl: e }) => {
46359
46367
  const {
46360
46368
  alertDialogProps: t,
46361
46369
  showDetailsProps: n,
@@ -46376,13 +46384,13 @@ const QW = ({
46376
46384
  var i;
46377
46385
  r(), (i = t == null ? void 0 : t.setOpen) == null || i.call(t, !0);
46378
46386
  },
46379
- children: /* @__PURE__ */ y.jsx(KW, { count: o.count })
46387
+ children: /* @__PURE__ */ y.jsx(XW, { count: o.count })
46380
46388
  }
46381
46389
  ),
46382
- /* @__PURE__ */ y.jsx(Ey, { ...t, children: /* @__PURE__ */ y.jsx(QW, { ...t }) }),
46383
- /* @__PURE__ */ y.jsx(Ey, { ...n, children: /* @__PURE__ */ y.jsx(ez, { ...n }) })
46390
+ /* @__PURE__ */ y.jsx(Ey, { ...t, children: /* @__PURE__ */ y.jsx(ez, { ...t }) }),
46391
+ /* @__PURE__ */ y.jsx(Ey, { ...n, children: /* @__PURE__ */ y.jsx(tz, { ...n }) })
46384
46392
  ] });
46385
- }, Mz = ({ baseUrl: e }) => /* @__PURE__ */ y.jsx(Gn, { children: /* @__PURE__ */ y.jsx(zW, { children: /* @__PURE__ */ y.jsx(tz, { baseUrl: e }) }) }), nz = ({
46393
+ }, Dz = ({ baseUrl: e }) => /* @__PURE__ */ y.jsx(Gn, { children: /* @__PURE__ */ y.jsx(UW, { children: /* @__PURE__ */ y.jsx(nz, { baseUrl: e }) }) }), rz = ({
46386
46394
  rightChild: e,
46387
46395
  leftChild: t,
46388
46396
  isDrawerMerged: n,
@@ -46560,31 +46568,31 @@ const QW = ({
46560
46568
  }
46561
46569
  )
46562
46570
  ] }) });
46563
- }, rz = ({ layoutChildren: e, layoutProps: t }) => /* @__PURE__ */ y.jsx(Gn, { children: /* @__PURE__ */ y.jsx(
46564
- nz,
46571
+ }, oz = ({ layoutChildren: e, layoutProps: t }) => /* @__PURE__ */ y.jsx(Gn, { children: /* @__PURE__ */ y.jsx(
46572
+ rz,
46565
46573
  {
46566
46574
  ...e,
46567
46575
  ...t
46568
46576
  }
46569
46577
  ) });
46570
- rz.propTypes = {
46578
+ oz.propTypes = {
46571
46579
  layoutChildren: s.object.isRequired,
46572
46580
  layoutProps: s.object.isRequired
46573
46581
  };
46574
46582
  export {
46575
46583
  Qo as Button,
46576
46584
  ku as Checkbox,
46577
- lz as DatePicker,
46585
+ cz as DatePicker,
46578
46586
  Pw as Grid,
46579
- WW as Header,
46587
+ zW as Header,
46580
46588
  g8 as InputField,
46581
- dz as Loader,
46582
- Mz as Notification,
46589
+ fz as Loader,
46590
+ Dz as Notification,
46583
46591
  E8 as Select,
46584
- rz as SliderLayout,
46592
+ oz as SliderLayout,
46585
46593
  L8 as Switch,
46586
46594
  Ad as TextField,
46587
- uz as ToastProvider,
46588
- cz as toast
46595
+ dz as ToastProvider,
46596
+ uz as toast
46589
46597
  };
46590
46598
  //# sourceMappingURL=index.es.js.map