@3sc/common-component 0.0.439 → 0.0.441
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 +173 -145
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +5 -5
- package/dist/index.umd.js.map +1 -1
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -41397,7 +41397,7 @@ G(Ex)(({ theme: e }) => ({
|
|
|
41397
41397
|
padding: "0!important"
|
|
41398
41398
|
}
|
|
41399
41399
|
}));
|
|
41400
|
-
const
|
|
41400
|
+
const Cz = (e) => /* @__PURE__ */ m.jsx(Gn, { children: /* @__PURE__ */ m.jsx(DV, { ...e }) }), IV = ({ iconUrl: e, ...t }) => {
|
|
41401
41401
|
const [n, r] = De(!1), [o, i] = De(!1), a = Ft();
|
|
41402
41402
|
return /* @__PURE__ */ m.jsxs(
|
|
41403
41403
|
we,
|
|
@@ -41556,7 +41556,7 @@ const LV = ({ progress: e = 0, status: t }) => {
|
|
|
41556
41556
|
showToast: () => {
|
|
41557
41557
|
throw new Error("ToastProvider is not mounted");
|
|
41558
41558
|
}
|
|
41559
|
-
},
|
|
41559
|
+
}, Sz = {
|
|
41560
41560
|
success: (e) => Bd.showToast(e, "SUCCESS"),
|
|
41561
41561
|
error: (e) => Bd.showToast(e, "FAILED")
|
|
41562
41562
|
}, VV = G(ba)(({ theme: e }) => ({
|
|
@@ -41706,7 +41706,7 @@ const LV = ({ progress: e = 0, status: t }) => {
|
|
|
41706
41706
|
)
|
|
41707
41707
|
}
|
|
41708
41708
|
);
|
|
41709
|
-
}, zV = ({ message: e, status: t }) => /* @__PURE__ */ m.jsx(Gn, { children: /* @__PURE__ */ m.jsx(WV, { message: e, status: t }) }),
|
|
41709
|
+
}, zV = ({ message: e, status: t }) => /* @__PURE__ */ m.jsx(Gn, { children: /* @__PURE__ */ m.jsx(WV, { message: e, status: t }) }), Tz = ({ children: e }) => {
|
|
41710
41710
|
const [t, n] = De(null), r = qt((o, i) => {
|
|
41711
41711
|
n({ message: o, status: i, key: Date.now() });
|
|
41712
41712
|
}, []);
|
|
@@ -41753,10 +41753,7 @@ const LV = ({ progress: e = 0, status: t }) => {
|
|
|
41753
41753
|
const f = e ? d.current : u.current;
|
|
41754
41754
|
a(f.offsetWidth), c(f.offsetLeft);
|
|
41755
41755
|
}
|
|
41756
|
-
}, [e]), /* @__PURE__ */ m.jsx(we, { sx: { display: "flex" }, children: /* @__PURE__ */ m.jsxs(UV, {
|
|
41757
|
-
cursor: o ? "not-allowed" : "pointer",
|
|
41758
|
-
opacity: o ? 0.5 : 1
|
|
41759
|
-
}, children: [
|
|
41756
|
+
}, [e]), /* @__PURE__ */ m.jsx(we, { sx: { display: "flex" }, children: /* @__PURE__ */ m.jsxs(UV, { children: [
|
|
41760
41757
|
/* @__PURE__ */ m.jsx(HV, { sx: { width: i, transform: `translateX(${l}px)`, height: "2.5rem" } }),
|
|
41761
41758
|
/* @__PURE__ */ m.jsx(
|
|
41762
41759
|
py,
|
|
@@ -41764,7 +41761,8 @@ const LV = ({ progress: e = 0, status: t }) => {
|
|
|
41764
41761
|
ref: u,
|
|
41765
41762
|
disableRipple: !0,
|
|
41766
41763
|
sx: (f) => ({
|
|
41767
|
-
|
|
41764
|
+
opacity: o ? 0.5 : 1,
|
|
41765
|
+
cursor: `${o ? "not-allowed" : "pointer"}!important`,
|
|
41768
41766
|
color: e ? f.palette.brandColor.grey1 : f.palette.primary.notifyActiveText
|
|
41769
41767
|
}),
|
|
41770
41768
|
onClick: () => o ? null : t(!1),
|
|
@@ -41777,7 +41775,8 @@ const LV = ({ progress: e = 0, status: t }) => {
|
|
|
41777
41775
|
ref: d,
|
|
41778
41776
|
disableRipple: !0,
|
|
41779
41777
|
sx: (f) => ({
|
|
41780
|
-
|
|
41778
|
+
opacity: o ? 0.5 : 1,
|
|
41779
|
+
cursor: `${o ? "not-allowed" : "pointer"}!important`,
|
|
41781
41780
|
color: e ? f.palette.primary.notifyActiveText : f.palette.brandColor.grey1
|
|
41782
41781
|
}),
|
|
41783
41782
|
onClick: () => o ? null : t(!0),
|
|
@@ -41795,7 +41794,7 @@ const GV = jr`
|
|
|
41795
41794
|
66% {background-position: 100% 0,100% 100%,0 100%,0 0 ; width:60px; height: 60px}
|
|
41796
41795
|
100% {background-position: 100% 0,100% 100%,0 100%,0 0 }
|
|
41797
41796
|
`;
|
|
41798
|
-
function
|
|
41797
|
+
function Oz() {
|
|
41799
41798
|
return /* @__PURE__ */ m.jsx(
|
|
41800
41799
|
hc,
|
|
41801
41800
|
{
|
|
@@ -43503,22 +43502,22 @@ Et.getAdapter = Cw.getAdapter;
|
|
|
43503
43502
|
Et.HttpStatusCode = Hd;
|
|
43504
43503
|
Et.default = Et;
|
|
43505
43504
|
const {
|
|
43506
|
-
Axios:
|
|
43507
|
-
AxiosError:
|
|
43508
|
-
CanceledError:
|
|
43509
|
-
isCancel:
|
|
43510
|
-
CancelToken:
|
|
43511
|
-
VERSION:
|
|
43512
|
-
all:
|
|
43513
|
-
Cancel:
|
|
43514
|
-
isAxiosError:
|
|
43515
|
-
spread:
|
|
43516
|
-
toFormData:
|
|
43517
|
-
AxiosHeaders:
|
|
43518
|
-
HttpStatusCode:
|
|
43519
|
-
formToJSON:
|
|
43520
|
-
getAdapter:
|
|
43521
|
-
mergeConfig:
|
|
43505
|
+
Axios: Rz,
|
|
43506
|
+
AxiosError: Pz,
|
|
43507
|
+
CanceledError: Mz,
|
|
43508
|
+
isCancel: Dz,
|
|
43509
|
+
CancelToken: Iz,
|
|
43510
|
+
VERSION: Az,
|
|
43511
|
+
all: jz,
|
|
43512
|
+
Cancel: Nz,
|
|
43513
|
+
isAxiosError: $z,
|
|
43514
|
+
spread: Fz,
|
|
43515
|
+
toFormData: _z,
|
|
43516
|
+
AxiosHeaders: Bz,
|
|
43517
|
+
HttpStatusCode: Lz,
|
|
43518
|
+
formToJSON: Vz,
|
|
43519
|
+
getAdapter: Wz,
|
|
43520
|
+
mergeConfig: zz
|
|
43522
43521
|
} = Et, th = {
|
|
43523
43522
|
BASE_URL: "https://qa.3sc.ai/api",
|
|
43524
43523
|
//VERSION: import.meta.env.VITE_APP_VERSION,
|
|
@@ -43719,17 +43718,18 @@ const Rw = {
|
|
|
43719
43718
|
)) ?? c ?? qu({ definitions: l });
|
|
43720
43719
|
const g = [], v = Tr(c);
|
|
43721
43720
|
for (const b of l) {
|
|
43722
|
-
const k = v[b.key] || {}, E = d[b.key] || {}, R = Tr(k.children || []),
|
|
43723
|
-
let
|
|
43721
|
+
const k = v[b.key] || {}, E = d[b.key] || {}, R = y[b.key], P = Tr(k.children || []), I = Tr(E.children || []);
|
|
43722
|
+
let A = {
|
|
43724
43723
|
...b,
|
|
43724
|
+
style: R == null ? void 0 : R.style,
|
|
43725
43725
|
...k,
|
|
43726
43726
|
...E
|
|
43727
43727
|
};
|
|
43728
|
-
(O = b.children) != null && O.length && (
|
|
43729
|
-
...
|
|
43730
|
-
...
|
|
43731
|
-
...
|
|
43732
|
-
}))), g.push(
|
|
43728
|
+
(O = b.children) != null && O.length && (A.children = b.children.map((M) => ({
|
|
43729
|
+
...M,
|
|
43730
|
+
...P[M.key],
|
|
43731
|
+
...I[M.key]
|
|
43732
|
+
}))), g.push(A);
|
|
43733
43733
|
}
|
|
43734
43734
|
return g.sort((b, k) => b.sequenceId - k.sequenceId);
|
|
43735
43735
|
}, BW = (e) => e.sort((t, n) => t.sequenceId - n.sequenceId), na = (e, t) => e == null ? void 0 : e.map((n) => ({
|
|
@@ -44258,6 +44258,98 @@ const GW = ve.memo(
|
|
|
44258
44258
|
localStorage.setItem(Ir.SETTINGS, JSON.stringify(w)), await Gc({ baseUrl: n, payload: w });
|
|
44259
44259
|
};
|
|
44260
44260
|
return { selectedColumn: a, handleMenuClick: c, handleClose: u, handleHideClick: d, columnUpdaterFunction: f };
|
|
44261
|
+
}, ZW = (e) => {
|
|
44262
|
+
if (!e) return null;
|
|
44263
|
+
const { options: t, ...n } = e, r = t ? "select" : "button", o = {
|
|
44264
|
+
button: (i) => {
|
|
44265
|
+
var a;
|
|
44266
|
+
return /* @__PURE__ */ m.jsx(
|
|
44267
|
+
qr,
|
|
44268
|
+
{
|
|
44269
|
+
...i,
|
|
44270
|
+
styles: {
|
|
44271
|
+
...i.styles,
|
|
44272
|
+
iconPrimary: ((a = i == null ? void 0 : i.styles) == null ? void 0 : a.variant) == "filled"
|
|
44273
|
+
}
|
|
44274
|
+
}
|
|
44275
|
+
);
|
|
44276
|
+
},
|
|
44277
|
+
select: (i) => {
|
|
44278
|
+
var a;
|
|
44279
|
+
return /* @__PURE__ */ m.jsx(
|
|
44280
|
+
we,
|
|
44281
|
+
{
|
|
44282
|
+
sx: {
|
|
44283
|
+
"& .MuiInputBase-input": { padding: "0rem!important" },
|
|
44284
|
+
width: (a = i.styles) == null ? void 0 : a.width
|
|
44285
|
+
},
|
|
44286
|
+
children: /* @__PURE__ */ m.jsx(jV, { ...i, options: t })
|
|
44287
|
+
}
|
|
44288
|
+
);
|
|
44289
|
+
}
|
|
44290
|
+
};
|
|
44291
|
+
return o[r] ? o[r](n) : null;
|
|
44292
|
+
}, JW = ({ presentSetting: e, gridSetting: t, gridPath: n, childUniqueKey: r }) => {
|
|
44293
|
+
if (!n) return e;
|
|
44294
|
+
const o = n.split("/").filter(Boolean);
|
|
44295
|
+
let i = o.reduce(
|
|
44296
|
+
(u, d) => u == null ? void 0 : u[d],
|
|
44297
|
+
e
|
|
44298
|
+
) || null, a = na(t == null ? void 0 : t.grid, r);
|
|
44299
|
+
const l = Tr(i == null ? void 0 : i.columns);
|
|
44300
|
+
a = a == null ? void 0 : a.map((u) => {
|
|
44301
|
+
var p, h;
|
|
44302
|
+
const d = (u == null ? void 0 : u.children) || {}, f = ((p = l == null ? void 0 : l[u == null ? void 0 : u.key]) == null ? void 0 : p.children) || {};
|
|
44303
|
+
return {
|
|
44304
|
+
...u,
|
|
44305
|
+
...(((h = Object.keys(f)) == null ? void 0 : h.length) > 0 || (d == null ? void 0 : d[r])) && {
|
|
44306
|
+
children: {
|
|
44307
|
+
...f,
|
|
44308
|
+
[r]: d == null ? void 0 : d[r]
|
|
44309
|
+
}
|
|
44310
|
+
}
|
|
44311
|
+
};
|
|
44312
|
+
});
|
|
44313
|
+
let c = e;
|
|
44314
|
+
for (let u = 0; u < o.length; u++) {
|
|
44315
|
+
const d = o[u];
|
|
44316
|
+
u === o.length - 1 ? c[d] = {
|
|
44317
|
+
columns: a,
|
|
44318
|
+
pageSize: (t == null ? void 0 : t.pageSize) ?? null
|
|
44319
|
+
} : (c[d] = c[d] || {}, c = c[d]);
|
|
44320
|
+
}
|
|
44321
|
+
return {
|
|
44322
|
+
settingObject: e,
|
|
44323
|
+
defaultUserSettings: a
|
|
44324
|
+
};
|
|
44325
|
+
}, QW = async ({ baseUrl: e, gridSetting: t, childUniqueKey: n, gridPath: r }) => {
|
|
44326
|
+
try {
|
|
44327
|
+
const o = JSON.parse(localStorage.getItem("settings")), { settingObject: i, defaultUserSettings: a } = JW({ presentSetting: o, gridSetting: t, gridPath: r, childUniqueKey: n });
|
|
44328
|
+
return localStorage.setItem("settings", JSON.stringify(i)), await Gc({ baseUrl: e, payload: i }), a;
|
|
44329
|
+
} catch (o) {
|
|
44330
|
+
console.error(o);
|
|
44331
|
+
}
|
|
44332
|
+
}, ez = ({
|
|
44333
|
+
index: e,
|
|
44334
|
+
visibleGridColumns: t,
|
|
44335
|
+
width: n,
|
|
44336
|
+
columnUpdaterFunction: r
|
|
44337
|
+
}) => {
|
|
44338
|
+
if (!t || !t[e]) return null;
|
|
44339
|
+
t[e];
|
|
44340
|
+
let o = `${n / 10}rem`;
|
|
44341
|
+
const i = t.map(
|
|
44342
|
+
(a, l) => l === e ? {
|
|
44343
|
+
...a,
|
|
44344
|
+
style: {
|
|
44345
|
+
...a.style,
|
|
44346
|
+
width: o,
|
|
44347
|
+
minWidth: o,
|
|
44348
|
+
maxWidth: o
|
|
44349
|
+
}
|
|
44350
|
+
} : a
|
|
44351
|
+
);
|
|
44352
|
+
return r({ updatedColumns: i }), i[e];
|
|
44261
44353
|
}, Pw = ({ pagination: e, gridPath: t, baseUrl: n, t: r }) => {
|
|
44262
44354
|
const {
|
|
44263
44355
|
selectedPage: o,
|
|
@@ -44552,7 +44644,9 @@ function Aw({
|
|
|
44552
44644
|
t: d
|
|
44553
44645
|
}) {
|
|
44554
44646
|
var _e;
|
|
44555
|
-
const f = Ft(), { visibleGridColumns: p } = St(Lc)
|
|
44647
|
+
const f = Ft(), { visibleGridColumns: p } = St(Lc);
|
|
44648
|
+
console.log({ visibleGridColumns: p });
|
|
44649
|
+
const h = St(Ma), {
|
|
44556
44650
|
selectedColumn: y,
|
|
44557
44651
|
handleMenuClick: g,
|
|
44558
44652
|
handleClose: v,
|
|
@@ -44770,8 +44864,13 @@ function Aw({
|
|
|
44770
44864
|
resizeStart: () => {
|
|
44771
44865
|
z != null && z.isMandatory && !(z != null && z.isResizable) || (ie.current = !0);
|
|
44772
44866
|
},
|
|
44773
|
-
resizeEnd: () => {
|
|
44774
|
-
z != null && z.isMandatory && !(z != null && z.isResizable) || (ie.current = !1
|
|
44867
|
+
resizeEnd: (ae) => {
|
|
44868
|
+
z != null && z.isMandatory && !(z != null && z.isResizable) || (ie.current = !1, ez({
|
|
44869
|
+
index: de,
|
|
44870
|
+
visibleGridColumns: p,
|
|
44871
|
+
width: ae,
|
|
44872
|
+
columnUpdaterFunction: C
|
|
44873
|
+
}));
|
|
44775
44874
|
},
|
|
44776
44875
|
component: z != null && z.children || z != null && z.isMandatory ? Dl : nh,
|
|
44777
44876
|
rowSpan: z != null && z.children ? 1 : 2,
|
|
@@ -45087,83 +45186,12 @@ const Ry = ({ type: e }) => {
|
|
|
45087
45186
|
] })
|
|
45088
45187
|
] }) })
|
|
45089
45188
|
}[e];
|
|
45090
|
-
},
|
|
45091
|
-
if (!e) return null;
|
|
45092
|
-
const { options: t, ...n } = e, r = t ? "select" : "button", o = {
|
|
45093
|
-
button: (i) => {
|
|
45094
|
-
var a;
|
|
45095
|
-
return /* @__PURE__ */ m.jsx(
|
|
45096
|
-
qr,
|
|
45097
|
-
{
|
|
45098
|
-
...i,
|
|
45099
|
-
styles: {
|
|
45100
|
-
...i.styles,
|
|
45101
|
-
iconPrimary: ((a = i == null ? void 0 : i.styles) == null ? void 0 : a.variant) == "filled"
|
|
45102
|
-
}
|
|
45103
|
-
}
|
|
45104
|
-
);
|
|
45105
|
-
},
|
|
45106
|
-
select: (i) => {
|
|
45107
|
-
var a;
|
|
45108
|
-
return /* @__PURE__ */ m.jsx(
|
|
45109
|
-
we,
|
|
45110
|
-
{
|
|
45111
|
-
sx: {
|
|
45112
|
-
"& .MuiInputBase-input": { padding: "0rem!important" },
|
|
45113
|
-
width: (a = i.styles) == null ? void 0 : a.width
|
|
45114
|
-
},
|
|
45115
|
-
children: /* @__PURE__ */ m.jsx(jV, { ...i, options: t })
|
|
45116
|
-
}
|
|
45117
|
-
);
|
|
45118
|
-
}
|
|
45119
|
-
};
|
|
45120
|
-
return o[r] ? o[r](n) : null;
|
|
45121
|
-
}, JW = ({ presentSetting: e, gridSetting: t, gridPath: n, childUniqueKey: r }) => {
|
|
45122
|
-
if (!n) return e;
|
|
45123
|
-
const o = n.split("/").filter(Boolean);
|
|
45124
|
-
let i = o.reduce(
|
|
45125
|
-
(u, d) => u == null ? void 0 : u[d],
|
|
45126
|
-
e
|
|
45127
|
-
) || null, a = na(t == null ? void 0 : t.grid, r);
|
|
45128
|
-
const l = Tr(i == null ? void 0 : i.columns);
|
|
45129
|
-
a = a == null ? void 0 : a.map((u) => {
|
|
45130
|
-
var p, h;
|
|
45131
|
-
const d = (u == null ? void 0 : u.children) || {}, f = ((p = l == null ? void 0 : l[u == null ? void 0 : u.key]) == null ? void 0 : p.children) || {};
|
|
45132
|
-
return {
|
|
45133
|
-
...u,
|
|
45134
|
-
...(((h = Object.keys(f)) == null ? void 0 : h.length) > 0 || (d == null ? void 0 : d[r])) && {
|
|
45135
|
-
children: {
|
|
45136
|
-
...f,
|
|
45137
|
-
[r]: d == null ? void 0 : d[r]
|
|
45138
|
-
}
|
|
45139
|
-
}
|
|
45140
|
-
};
|
|
45141
|
-
});
|
|
45142
|
-
let c = e;
|
|
45143
|
-
for (let u = 0; u < o.length; u++) {
|
|
45144
|
-
const d = o[u];
|
|
45145
|
-
u === o.length - 1 ? c[d] = {
|
|
45146
|
-
columns: a,
|
|
45147
|
-
pageSize: (t == null ? void 0 : t.pageSize) ?? null
|
|
45148
|
-
} : (c[d] = c[d] || {}, c = c[d]);
|
|
45149
|
-
}
|
|
45150
|
-
return {
|
|
45151
|
-
settingObject: e,
|
|
45152
|
-
defaultUserSettings: a
|
|
45153
|
-
};
|
|
45154
|
-
}, QW = async ({ baseUrl: e, gridSetting: t, childUniqueKey: n, gridPath: r }) => {
|
|
45155
|
-
try {
|
|
45156
|
-
const o = JSON.parse(localStorage.getItem("settings")), { settingObject: i, defaultUserSettings: a } = JW({ presentSetting: o, gridSetting: t, gridPath: r, childUniqueKey: n });
|
|
45157
|
-
return localStorage.setItem("settings", JSON.stringify(i)), await Gc({ baseUrl: e, payload: i }), a;
|
|
45158
|
-
} catch (o) {
|
|
45159
|
-
console.error(o);
|
|
45160
|
-
}
|
|
45161
|
-
}, ez = ({ customTools: e }) => {
|
|
45189
|
+
}, tz = ({ customTools: e }) => {
|
|
45162
45190
|
var r, o;
|
|
45163
45191
|
const t = (r = e == null ? void 0 : e.filter((i) => (i == null ? void 0 : i.type) === Ey.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) === Ey.SECONDARY)) == null ? void 0 : o.sort((i, a) => i.sequenceId - a.sequenceId);
|
|
45164
45192
|
return { primaryButtons: t, secondaryButtons: n };
|
|
45165
45193
|
}, Nw = ({ customTools: e, isExpanded: t, setIsExpanded: n }) => {
|
|
45166
|
-
const { primaryButtons: r, secondaryButtons: o } =
|
|
45194
|
+
const { primaryButtons: r, secondaryButtons: o } = tz({ customTools: e }), [i, a] = De(r), l = (o == null ? void 0 : o.length) > 0, c = (d) => {
|
|
45167
45195
|
d ? a([...r, ...o]) : setTimeout(() => {
|
|
45168
45196
|
a(r);
|
|
45169
45197
|
}, 100);
|
|
@@ -45743,18 +45771,18 @@ Bw.propTypes = {
|
|
|
45743
45771
|
breadcrumbProps: s.object.isRequired,
|
|
45744
45772
|
switchProps: s.object
|
|
45745
45773
|
};
|
|
45746
|
-
function
|
|
45774
|
+
function nz({ headerProps: e }) {
|
|
45747
45775
|
return /* @__PURE__ */ m.jsx(Gn, { children: /* @__PURE__ */ m.jsx(Bw, { ...e }) });
|
|
45748
45776
|
}
|
|
45749
|
-
|
|
45777
|
+
nz.propTypes = {
|
|
45750
45778
|
headerProps: s.object.isRequired
|
|
45751
45779
|
};
|
|
45752
45780
|
const oh = nr(null), Lw = nr(null);
|
|
45753
|
-
function
|
|
45754
|
-
const [t, n] = qy(
|
|
45781
|
+
function rz({ children: e }) {
|
|
45782
|
+
const [t, n] = qy(oz, sz);
|
|
45755
45783
|
return /* @__PURE__ */ m.jsx(oh.Provider, { value: t, children: /* @__PURE__ */ m.jsx(Lw.Provider, { value: n, children: e }) });
|
|
45756
45784
|
}
|
|
45757
|
-
function
|
|
45785
|
+
function oz(e, t) {
|
|
45758
45786
|
var n;
|
|
45759
45787
|
switch (t.type) {
|
|
45760
45788
|
case Ke.LOADING:
|
|
@@ -45769,7 +45797,7 @@ function rz(e, t) {
|
|
|
45769
45797
|
throw new Error(`${Yr.UNHANDLED}: ${t}`);
|
|
45770
45798
|
}
|
|
45771
45799
|
}
|
|
45772
|
-
const
|
|
45800
|
+
const sz = {
|
|
45773
45801
|
loading: !1,
|
|
45774
45802
|
data: [],
|
|
45775
45803
|
error: "",
|
|
@@ -45777,7 +45805,7 @@ const oz = {
|
|
|
45777
45805
|
count: 0,
|
|
45778
45806
|
boo: !1
|
|
45779
45807
|
}
|
|
45780
|
-
}, { TENANT_ID: sh, BU_ID: ih } = Ew, { TENANT_IDS: ah, BU_IDS: lh } = Rw,
|
|
45808
|
+
}, { TENANT_ID: sh, BU_ID: ih } = Ew, { TENANT_IDS: ah, BU_IDS: lh } = Rw, iz = async (e) => {
|
|
45781
45809
|
try {
|
|
45782
45810
|
const t = `${e}${Yc.NOTIFICATION}/v1?${sh}=${ah}&${ih}=${lh}`;
|
|
45783
45811
|
return await Et.get(t, Aa);
|
|
@@ -45791,7 +45819,7 @@ const oz = {
|
|
|
45791
45819
|
} catch (r) {
|
|
45792
45820
|
return r;
|
|
45793
45821
|
}
|
|
45794
|
-
},
|
|
45822
|
+
}, az = async ({ baseUrl: e, id: t, snopId: n }) => {
|
|
45795
45823
|
try {
|
|
45796
45824
|
const r = `${e}${Yc.NOTIFICATION}${th.VERSION}?${sh}=${ah}&${ih}=${lh}&id=${t}`;
|
|
45797
45825
|
return await Et.get(r, Aa);
|
|
@@ -45816,7 +45844,7 @@ const oz = {
|
|
|
45816
45844
|
if (!C.current)
|
|
45817
45845
|
try {
|
|
45818
45846
|
t({ type: Ke.LOADING, loading: !0 }), t({ type: Ke.SUCCESS, data: [] });
|
|
45819
|
-
const L = await
|
|
45847
|
+
const L = await iz(e);
|
|
45820
45848
|
if (L.status === qo.UNAUTHORIZED) {
|
|
45821
45849
|
C.current = !0;
|
|
45822
45850
|
return;
|
|
@@ -45847,7 +45875,7 @@ const oz = {
|
|
|
45847
45875
|
if (N) {
|
|
45848
45876
|
f(N);
|
|
45849
45877
|
try {
|
|
45850
|
-
const V = await
|
|
45878
|
+
const V = await az({ baseUrl: e, id: N, snopId: $ });
|
|
45851
45879
|
if (V.status === qo.OK) {
|
|
45852
45880
|
const H = ((U = (L = (B = V.data) == null ? void 0 : B.responseData) == null ? void 0 : L.response) == null ? void 0 : U[0]) || {};
|
|
45853
45881
|
u(H || {}), l(!0);
|
|
@@ -45960,7 +45988,7 @@ function Yd() {
|
|
|
45960
45988
|
return e;
|
|
45961
45989
|
}, Yd.apply(null, arguments);
|
|
45962
45990
|
}
|
|
45963
|
-
var
|
|
45991
|
+
var lz = function(t) {
|
|
45964
45992
|
return /* @__PURE__ */ S.createElement("svg", Yd({
|
|
45965
45993
|
xmlns: "http://www.w3.org/2000/svg",
|
|
45966
45994
|
width: 16,
|
|
@@ -45983,7 +46011,7 @@ var az = function(t) {
|
|
|
45983
46011
|
d: "M10.013 12.957c0 1.1-.9 2-2 2a2.007 2.007 0 0 1-2-2"
|
|
45984
46012
|
})));
|
|
45985
46013
|
};
|
|
45986
|
-
const
|
|
46014
|
+
const cz = ({ count: e }) => (Ft(), /* @__PURE__ */ m.jsxs(m.Fragment, { children: [
|
|
45987
46015
|
/* @__PURE__ */ m.jsx(
|
|
45988
46016
|
we,
|
|
45989
46017
|
{
|
|
@@ -45997,7 +46025,7 @@ const lz = ({ count: e }) => (Ft(), /* @__PURE__ */ m.jsxs(m.Fragment, { childre
|
|
|
45997
46025
|
}
|
|
45998
46026
|
},
|
|
45999
46027
|
children: /* @__PURE__ */ m.jsx(
|
|
46000
|
-
|
|
46028
|
+
lz,
|
|
46001
46029
|
{
|
|
46002
46030
|
style: {
|
|
46003
46031
|
scale: 2
|
|
@@ -46058,7 +46086,7 @@ function Gd() {
|
|
|
46058
46086
|
return e;
|
|
46059
46087
|
}, Gd.apply(null, arguments);
|
|
46060
46088
|
}
|
|
46061
|
-
var
|
|
46089
|
+
var uz = function(t) {
|
|
46062
46090
|
return /* @__PURE__ */ S.createElement("svg", Gd({
|
|
46063
46091
|
xmlns: "http://www.w3.org/2000/svg",
|
|
46064
46092
|
width: 14,
|
|
@@ -46081,7 +46109,7 @@ function Kd() {
|
|
|
46081
46109
|
return e;
|
|
46082
46110
|
}, Kd.apply(null, arguments);
|
|
46083
46111
|
}
|
|
46084
|
-
var
|
|
46112
|
+
var dz = function(t) {
|
|
46085
46113
|
return /* @__PURE__ */ S.createElement("svg", Kd({
|
|
46086
46114
|
xmlns: "http://www.w3.org/2000/svg",
|
|
46087
46115
|
width: 12,
|
|
@@ -46108,7 +46136,7 @@ function Xd() {
|
|
|
46108
46136
|
return e;
|
|
46109
46137
|
}, Xd.apply(null, arguments);
|
|
46110
46138
|
}
|
|
46111
|
-
var
|
|
46139
|
+
var fz = function(t) {
|
|
46112
46140
|
return /* @__PURE__ */ S.createElement("svg", Xd({
|
|
46113
46141
|
xmlns: "http://www.w3.org/2000/svg",
|
|
46114
46142
|
width: 9,
|
|
@@ -46209,7 +46237,7 @@ const Ww = ({
|
|
|
46209
46237
|
el,
|
|
46210
46238
|
{
|
|
46211
46239
|
icon: /* @__PURE__ */ m.jsx(
|
|
46212
|
-
|
|
46240
|
+
dz,
|
|
46213
46241
|
{
|
|
46214
46242
|
className: `${c === "light" ? "chip-icon-light" : "chip-icon-dark"}`
|
|
46215
46243
|
}
|
|
@@ -46231,7 +46259,7 @@ const Ww = ({
|
|
|
46231
46259
|
el,
|
|
46232
46260
|
{
|
|
46233
46261
|
icon: /* @__PURE__ */ m.jsx(
|
|
46234
|
-
|
|
46262
|
+
fz,
|
|
46235
46263
|
{
|
|
46236
46264
|
className: `${c === "light" ? "chip-icon-light" : "chip-icon-dark"}`
|
|
46237
46265
|
}
|
|
@@ -46425,7 +46453,7 @@ zw.propTypes = {
|
|
|
46425
46453
|
handleRead: s.func,
|
|
46426
46454
|
handleShowDetails: s.func
|
|
46427
46455
|
};
|
|
46428
|
-
const
|
|
46456
|
+
const pz = ({
|
|
46429
46457
|
onRefresh: e,
|
|
46430
46458
|
handleShowDetails: t,
|
|
46431
46459
|
clickId: n,
|
|
@@ -46628,7 +46656,7 @@ const fz = ({
|
|
|
46628
46656
|
variant: "outlined",
|
|
46629
46657
|
className: "view-all",
|
|
46630
46658
|
onClick: o,
|
|
46631
|
-
startIcon: /* @__PURE__ */ m.jsx(
|
|
46659
|
+
startIcon: /* @__PURE__ */ m.jsx(uz, {}),
|
|
46632
46660
|
disabled: !((C = c == null ? void 0 : c.filter((w) => !(w != null && w.isRead))) != null && C.length),
|
|
46633
46661
|
style: { backgroundColor: "transparent" },
|
|
46634
46662
|
sx: {
|
|
@@ -46659,7 +46687,7 @@ const fz = ({
|
|
|
46659
46687
|
}
|
|
46660
46688
|
)
|
|
46661
46689
|
] });
|
|
46662
|
-
},
|
|
46690
|
+
}, hz = ({ data: e, handleClose: t, t: n }) => {
|
|
46663
46691
|
var x;
|
|
46664
46692
|
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("");
|
|
46665
46693
|
return st(() => {
|
|
@@ -46771,7 +46799,7 @@ const fz = ({
|
|
|
46771
46799
|
}
|
|
46772
46800
|
)
|
|
46773
46801
|
] });
|
|
46774
|
-
},
|
|
46802
|
+
}, mz = ({ baseUrl: e, t }) => {
|
|
46775
46803
|
const {
|
|
46776
46804
|
alertDialogProps: n,
|
|
46777
46805
|
showDetailsProps: r,
|
|
@@ -46792,13 +46820,13 @@ const fz = ({
|
|
|
46792
46820
|
var a;
|
|
46793
46821
|
o(), (a = n == null ? void 0 : n.setOpen) == null || a.call(n, !0);
|
|
46794
46822
|
},
|
|
46795
|
-
children: /* @__PURE__ */ m.jsx(
|
|
46823
|
+
children: /* @__PURE__ */ m.jsx(cz, { count: i.count })
|
|
46796
46824
|
}
|
|
46797
46825
|
),
|
|
46798
|
-
/* @__PURE__ */ m.jsx(Ay, { ...n, children: /* @__PURE__ */ m.jsx(
|
|
46799
|
-
/* @__PURE__ */ m.jsx(Ay, { ...r, children: /* @__PURE__ */ m.jsx(
|
|
46826
|
+
/* @__PURE__ */ m.jsx(Ay, { ...n, children: /* @__PURE__ */ m.jsx(pz, { ...n, t }) }),
|
|
46827
|
+
/* @__PURE__ */ m.jsx(Ay, { ...r, children: /* @__PURE__ */ m.jsx(hz, { ...r, t }) })
|
|
46800
46828
|
] });
|
|
46801
|
-
},
|
|
46829
|
+
}, Uz = ({ baseUrl: e, t }) => /* @__PURE__ */ m.jsx(Gn, { children: /* @__PURE__ */ m.jsx(rz, { children: /* @__PURE__ */ m.jsx(mz, { baseUrl: e, t }) }) }), gz = ({
|
|
46802
46830
|
rightChild: e,
|
|
46803
46831
|
leftChild: t,
|
|
46804
46832
|
isDrawerMerged: n,
|
|
@@ -46959,31 +46987,31 @@ const fz = ({
|
|
|
46959
46987
|
}
|
|
46960
46988
|
)
|
|
46961
46989
|
] }) });
|
|
46962
|
-
},
|
|
46963
|
-
|
|
46990
|
+
}, yz = ({ layoutChildren: e, layoutProps: t }) => /* @__PURE__ */ m.jsx(Gn, { children: /* @__PURE__ */ m.jsx(
|
|
46991
|
+
gz,
|
|
46964
46992
|
{
|
|
46965
46993
|
...e,
|
|
46966
46994
|
...t
|
|
46967
46995
|
}
|
|
46968
46996
|
) });
|
|
46969
|
-
|
|
46997
|
+
yz.propTypes = {
|
|
46970
46998
|
layoutChildren: s.object.isRequired,
|
|
46971
46999
|
layoutProps: s.object.isRequired
|
|
46972
47000
|
};
|
|
46973
47001
|
export {
|
|
46974
47002
|
qr as Button,
|
|
46975
47003
|
Ru as Checkbox,
|
|
46976
|
-
|
|
47004
|
+
Cz as DatePicker,
|
|
46977
47005
|
Fw as Grid,
|
|
46978
|
-
|
|
47006
|
+
nz as Header,
|
|
46979
47007
|
AV as InputField,
|
|
46980
|
-
|
|
46981
|
-
|
|
47008
|
+
Oz as Loader,
|
|
47009
|
+
Uz as Notification,
|
|
46982
47010
|
jV as Select,
|
|
46983
|
-
|
|
47011
|
+
yz as SliderLayout,
|
|
46984
47012
|
YV as Switch,
|
|
46985
47013
|
_d as TextField,
|
|
46986
|
-
|
|
46987
|
-
|
|
47014
|
+
Tz as ToastProvider,
|
|
47015
|
+
Sz as toast
|
|
46988
47016
|
};
|
|
46989
47017
|
//# sourceMappingURL=index.es.js.map
|