@3sc/common-component 0.0.440 → 0.0.442
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 +170 -141
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +4 -4
- 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
|
}, []);
|
|
@@ -41794,7 +41794,7 @@ const GV = jr`
|
|
|
41794
41794
|
66% {background-position: 100% 0,100% 100%,0 100%,0 0 ; width:60px; height: 60px}
|
|
41795
41795
|
100% {background-position: 100% 0,100% 100%,0 100%,0 0 }
|
|
41796
41796
|
`;
|
|
41797
|
-
function
|
|
41797
|
+
function Oz() {
|
|
41798
41798
|
return /* @__PURE__ */ m.jsx(
|
|
41799
41799
|
hc,
|
|
41800
41800
|
{
|
|
@@ -43502,22 +43502,22 @@ Et.getAdapter = Cw.getAdapter;
|
|
|
43502
43502
|
Et.HttpStatusCode = Hd;
|
|
43503
43503
|
Et.default = Et;
|
|
43504
43504
|
const {
|
|
43505
|
-
Axios:
|
|
43506
|
-
AxiosError:
|
|
43507
|
-
CanceledError:
|
|
43508
|
-
isCancel:
|
|
43509
|
-
CancelToken:
|
|
43510
|
-
VERSION:
|
|
43511
|
-
all:
|
|
43512
|
-
Cancel:
|
|
43513
|
-
isAxiosError:
|
|
43514
|
-
spread:
|
|
43515
|
-
toFormData:
|
|
43516
|
-
AxiosHeaders:
|
|
43517
|
-
HttpStatusCode:
|
|
43518
|
-
formToJSON:
|
|
43519
|
-
getAdapter:
|
|
43520
|
-
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
|
|
43521
43521
|
} = Et, th = {
|
|
43522
43522
|
BASE_URL: "https://qa.3sc.ai/api",
|
|
43523
43523
|
//VERSION: import.meta.env.VITE_APP_VERSION,
|
|
@@ -43718,17 +43718,18 @@ const Rw = {
|
|
|
43718
43718
|
)) ?? c ?? qu({ definitions: l });
|
|
43719
43719
|
const g = [], v = Tr(c);
|
|
43720
43720
|
for (const b of l) {
|
|
43721
|
-
const k = v[b.key] || {}, E = d[b.key] || {}, R = Tr(k.children || []),
|
|
43722
|
-
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 = {
|
|
43723
43723
|
...b,
|
|
43724
|
+
style: R == null ? void 0 : R.style,
|
|
43724
43725
|
...k,
|
|
43725
43726
|
...E
|
|
43726
43727
|
};
|
|
43727
|
-
(O = b.children) != null && O.length && (
|
|
43728
|
-
...
|
|
43729
|
-
...
|
|
43730
|
-
...
|
|
43731
|
-
}))), 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);
|
|
43732
43733
|
}
|
|
43733
43734
|
return g.sort((b, k) => b.sequenceId - k.sequenceId);
|
|
43734
43735
|
}, BW = (e) => e.sort((t, n) => t.sequenceId - n.sequenceId), na = (e, t) => e == null ? void 0 : e.map((n) => ({
|
|
@@ -44257,6 +44258,98 @@ const GW = ve.memo(
|
|
|
44257
44258
|
localStorage.setItem(Ir.SETTINGS, JSON.stringify(w)), await Gc({ baseUrl: n, payload: w });
|
|
44258
44259
|
};
|
|
44259
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];
|
|
44260
44353
|
}, Pw = ({ pagination: e, gridPath: t, baseUrl: n, t: r }) => {
|
|
44261
44354
|
const {
|
|
44262
44355
|
selectedPage: o,
|
|
@@ -44551,7 +44644,9 @@ function Aw({
|
|
|
44551
44644
|
t: d
|
|
44552
44645
|
}) {
|
|
44553
44646
|
var _e;
|
|
44554
|
-
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), {
|
|
44555
44650
|
selectedColumn: y,
|
|
44556
44651
|
handleMenuClick: g,
|
|
44557
44652
|
handleClose: v,
|
|
@@ -44769,8 +44864,13 @@ function Aw({
|
|
|
44769
44864
|
resizeStart: () => {
|
|
44770
44865
|
z != null && z.isMandatory && !(z != null && z.isResizable) || (ie.current = !0);
|
|
44771
44866
|
},
|
|
44772
|
-
resizeEnd: () => {
|
|
44773
|
-
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
|
+
}));
|
|
44774
44874
|
},
|
|
44775
44875
|
component: z != null && z.children || z != null && z.isMandatory ? Dl : nh,
|
|
44776
44876
|
rowSpan: z != null && z.children ? 1 : 2,
|
|
@@ -45086,83 +45186,12 @@ const Ry = ({ type: e }) => {
|
|
|
45086
45186
|
] })
|
|
45087
45187
|
] }) })
|
|
45088
45188
|
}[e];
|
|
45089
|
-
},
|
|
45090
|
-
if (!e) return null;
|
|
45091
|
-
const { options: t, ...n } = e, r = t ? "select" : "button", o = {
|
|
45092
|
-
button: (i) => {
|
|
45093
|
-
var a;
|
|
45094
|
-
return /* @__PURE__ */ m.jsx(
|
|
45095
|
-
qr,
|
|
45096
|
-
{
|
|
45097
|
-
...i,
|
|
45098
|
-
styles: {
|
|
45099
|
-
...i.styles,
|
|
45100
|
-
iconPrimary: ((a = i == null ? void 0 : i.styles) == null ? void 0 : a.variant) == "filled"
|
|
45101
|
-
}
|
|
45102
|
-
}
|
|
45103
|
-
);
|
|
45104
|
-
},
|
|
45105
|
-
select: (i) => {
|
|
45106
|
-
var a;
|
|
45107
|
-
return /* @__PURE__ */ m.jsx(
|
|
45108
|
-
we,
|
|
45109
|
-
{
|
|
45110
|
-
sx: {
|
|
45111
|
-
"& .MuiInputBase-input": { padding: "0rem!important" },
|
|
45112
|
-
width: (a = i.styles) == null ? void 0 : a.width
|
|
45113
|
-
},
|
|
45114
|
-
children: /* @__PURE__ */ m.jsx(jV, { ...i, options: t })
|
|
45115
|
-
}
|
|
45116
|
-
);
|
|
45117
|
-
}
|
|
45118
|
-
};
|
|
45119
|
-
return o[r] ? o[r](n) : null;
|
|
45120
|
-
}, JW = ({ presentSetting: e, gridSetting: t, gridPath: n, childUniqueKey: r }) => {
|
|
45121
|
-
if (!n) return e;
|
|
45122
|
-
const o = n.split("/").filter(Boolean);
|
|
45123
|
-
let i = o.reduce(
|
|
45124
|
-
(u, d) => u == null ? void 0 : u[d],
|
|
45125
|
-
e
|
|
45126
|
-
) || null, a = na(t == null ? void 0 : t.grid, r);
|
|
45127
|
-
const l = Tr(i == null ? void 0 : i.columns);
|
|
45128
|
-
a = a == null ? void 0 : a.map((u) => {
|
|
45129
|
-
var p, h;
|
|
45130
|
-
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) || {};
|
|
45131
|
-
return {
|
|
45132
|
-
...u,
|
|
45133
|
-
...(((h = Object.keys(f)) == null ? void 0 : h.length) > 0 || (d == null ? void 0 : d[r])) && {
|
|
45134
|
-
children: {
|
|
45135
|
-
...f,
|
|
45136
|
-
[r]: d == null ? void 0 : d[r]
|
|
45137
|
-
}
|
|
45138
|
-
}
|
|
45139
|
-
};
|
|
45140
|
-
});
|
|
45141
|
-
let c = e;
|
|
45142
|
-
for (let u = 0; u < o.length; u++) {
|
|
45143
|
-
const d = o[u];
|
|
45144
|
-
u === o.length - 1 ? c[d] = {
|
|
45145
|
-
columns: a,
|
|
45146
|
-
pageSize: (t == null ? void 0 : t.pageSize) ?? null
|
|
45147
|
-
} : (c[d] = c[d] || {}, c = c[d]);
|
|
45148
|
-
}
|
|
45149
|
-
return {
|
|
45150
|
-
settingObject: e,
|
|
45151
|
-
defaultUserSettings: a
|
|
45152
|
-
};
|
|
45153
|
-
}, QW = async ({ baseUrl: e, gridSetting: t, childUniqueKey: n, gridPath: r }) => {
|
|
45154
|
-
try {
|
|
45155
|
-
const o = JSON.parse(localStorage.getItem("settings")), { settingObject: i, defaultUserSettings: a } = JW({ presentSetting: o, gridSetting: t, gridPath: r, childUniqueKey: n });
|
|
45156
|
-
return localStorage.setItem("settings", JSON.stringify(i)), await Gc({ baseUrl: e, payload: i }), a;
|
|
45157
|
-
} catch (o) {
|
|
45158
|
-
console.error(o);
|
|
45159
|
-
}
|
|
45160
|
-
}, ez = ({ customTools: e }) => {
|
|
45189
|
+
}, tz = ({ customTools: e }) => {
|
|
45161
45190
|
var r, o;
|
|
45162
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);
|
|
45163
45192
|
return { primaryButtons: t, secondaryButtons: n };
|
|
45164
45193
|
}, Nw = ({ customTools: e, isExpanded: t, setIsExpanded: n }) => {
|
|
45165
|
-
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) => {
|
|
45166
45195
|
d ? a([...r, ...o]) : setTimeout(() => {
|
|
45167
45196
|
a(r);
|
|
45168
45197
|
}, 100);
|
|
@@ -45465,8 +45494,8 @@ function Fw({ tableProps: e, toolbarProps: t, isDefaultConfig: n, isLoading: r,
|
|
|
45465
45494
|
var a, l;
|
|
45466
45495
|
const i = (a = e.columns) == null ? void 0 : a.isManageable;
|
|
45467
45496
|
return /* @__PURE__ */ m.jsx(ew, { children: r ? /* @__PURE__ */ m.jsxs(m.Fragment, { children: [
|
|
45468
|
-
/* @__PURE__ */ m.jsx(Ry, { type: "toolbar" }),
|
|
45469
|
-
/* @__PURE__ */ m.jsx(Ry, { type: "grid" })
|
|
45497
|
+
t && /* @__PURE__ */ m.jsx(Ry, { type: "toolbar" }),
|
|
45498
|
+
e && /* @__PURE__ */ m.jsx(Ry, { type: "grid" })
|
|
45470
45499
|
] }) : /* @__PURE__ */ m.jsxs(we, { sx: {
|
|
45471
45500
|
position: "sticky"
|
|
45472
45501
|
}, children: [
|
|
@@ -45742,18 +45771,18 @@ Bw.propTypes = {
|
|
|
45742
45771
|
breadcrumbProps: s.object.isRequired,
|
|
45743
45772
|
switchProps: s.object
|
|
45744
45773
|
};
|
|
45745
|
-
function
|
|
45774
|
+
function nz({ headerProps: e }) {
|
|
45746
45775
|
return /* @__PURE__ */ m.jsx(Gn, { children: /* @__PURE__ */ m.jsx(Bw, { ...e }) });
|
|
45747
45776
|
}
|
|
45748
|
-
|
|
45777
|
+
nz.propTypes = {
|
|
45749
45778
|
headerProps: s.object.isRequired
|
|
45750
45779
|
};
|
|
45751
45780
|
const oh = nr(null), Lw = nr(null);
|
|
45752
|
-
function
|
|
45753
|
-
const [t, n] = qy(
|
|
45781
|
+
function rz({ children: e }) {
|
|
45782
|
+
const [t, n] = qy(oz, sz);
|
|
45754
45783
|
return /* @__PURE__ */ m.jsx(oh.Provider, { value: t, children: /* @__PURE__ */ m.jsx(Lw.Provider, { value: n, children: e }) });
|
|
45755
45784
|
}
|
|
45756
|
-
function
|
|
45785
|
+
function oz(e, t) {
|
|
45757
45786
|
var n;
|
|
45758
45787
|
switch (t.type) {
|
|
45759
45788
|
case Ke.LOADING:
|
|
@@ -45768,7 +45797,7 @@ function rz(e, t) {
|
|
|
45768
45797
|
throw new Error(`${Yr.UNHANDLED}: ${t}`);
|
|
45769
45798
|
}
|
|
45770
45799
|
}
|
|
45771
|
-
const
|
|
45800
|
+
const sz = {
|
|
45772
45801
|
loading: !1,
|
|
45773
45802
|
data: [],
|
|
45774
45803
|
error: "",
|
|
@@ -45776,7 +45805,7 @@ const oz = {
|
|
|
45776
45805
|
count: 0,
|
|
45777
45806
|
boo: !1
|
|
45778
45807
|
}
|
|
45779
|
-
}, { 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) => {
|
|
45780
45809
|
try {
|
|
45781
45810
|
const t = `${e}${Yc.NOTIFICATION}/v1?${sh}=${ah}&${ih}=${lh}`;
|
|
45782
45811
|
return await Et.get(t, Aa);
|
|
@@ -45790,7 +45819,7 @@ const oz = {
|
|
|
45790
45819
|
} catch (r) {
|
|
45791
45820
|
return r;
|
|
45792
45821
|
}
|
|
45793
|
-
},
|
|
45822
|
+
}, az = async ({ baseUrl: e, id: t, snopId: n }) => {
|
|
45794
45823
|
try {
|
|
45795
45824
|
const r = `${e}${Yc.NOTIFICATION}${th.VERSION}?${sh}=${ah}&${ih}=${lh}&id=${t}`;
|
|
45796
45825
|
return await Et.get(r, Aa);
|
|
@@ -45815,7 +45844,7 @@ const oz = {
|
|
|
45815
45844
|
if (!C.current)
|
|
45816
45845
|
try {
|
|
45817
45846
|
t({ type: Ke.LOADING, loading: !0 }), t({ type: Ke.SUCCESS, data: [] });
|
|
45818
|
-
const L = await
|
|
45847
|
+
const L = await iz(e);
|
|
45819
45848
|
if (L.status === qo.UNAUTHORIZED) {
|
|
45820
45849
|
C.current = !0;
|
|
45821
45850
|
return;
|
|
@@ -45846,7 +45875,7 @@ const oz = {
|
|
|
45846
45875
|
if (N) {
|
|
45847
45876
|
f(N);
|
|
45848
45877
|
try {
|
|
45849
|
-
const V = await
|
|
45878
|
+
const V = await az({ baseUrl: e, id: N, snopId: $ });
|
|
45850
45879
|
if (V.status === qo.OK) {
|
|
45851
45880
|
const H = ((U = (L = (B = V.data) == null ? void 0 : B.responseData) == null ? void 0 : L.response) == null ? void 0 : U[0]) || {};
|
|
45852
45881
|
u(H || {}), l(!0);
|
|
@@ -45959,7 +45988,7 @@ function Yd() {
|
|
|
45959
45988
|
return e;
|
|
45960
45989
|
}, Yd.apply(null, arguments);
|
|
45961
45990
|
}
|
|
45962
|
-
var
|
|
45991
|
+
var lz = function(t) {
|
|
45963
45992
|
return /* @__PURE__ */ S.createElement("svg", Yd({
|
|
45964
45993
|
xmlns: "http://www.w3.org/2000/svg",
|
|
45965
45994
|
width: 16,
|
|
@@ -45982,7 +46011,7 @@ var az = function(t) {
|
|
|
45982
46011
|
d: "M10.013 12.957c0 1.1-.9 2-2 2a2.007 2.007 0 0 1-2-2"
|
|
45983
46012
|
})));
|
|
45984
46013
|
};
|
|
45985
|
-
const
|
|
46014
|
+
const cz = ({ count: e }) => (Ft(), /* @__PURE__ */ m.jsxs(m.Fragment, { children: [
|
|
45986
46015
|
/* @__PURE__ */ m.jsx(
|
|
45987
46016
|
we,
|
|
45988
46017
|
{
|
|
@@ -45996,7 +46025,7 @@ const lz = ({ count: e }) => (Ft(), /* @__PURE__ */ m.jsxs(m.Fragment, { childre
|
|
|
45996
46025
|
}
|
|
45997
46026
|
},
|
|
45998
46027
|
children: /* @__PURE__ */ m.jsx(
|
|
45999
|
-
|
|
46028
|
+
lz,
|
|
46000
46029
|
{
|
|
46001
46030
|
style: {
|
|
46002
46031
|
scale: 2
|
|
@@ -46057,7 +46086,7 @@ function Gd() {
|
|
|
46057
46086
|
return e;
|
|
46058
46087
|
}, Gd.apply(null, arguments);
|
|
46059
46088
|
}
|
|
46060
|
-
var
|
|
46089
|
+
var uz = function(t) {
|
|
46061
46090
|
return /* @__PURE__ */ S.createElement("svg", Gd({
|
|
46062
46091
|
xmlns: "http://www.w3.org/2000/svg",
|
|
46063
46092
|
width: 14,
|
|
@@ -46080,7 +46109,7 @@ function Kd() {
|
|
|
46080
46109
|
return e;
|
|
46081
46110
|
}, Kd.apply(null, arguments);
|
|
46082
46111
|
}
|
|
46083
|
-
var
|
|
46112
|
+
var dz = function(t) {
|
|
46084
46113
|
return /* @__PURE__ */ S.createElement("svg", Kd({
|
|
46085
46114
|
xmlns: "http://www.w3.org/2000/svg",
|
|
46086
46115
|
width: 12,
|
|
@@ -46107,7 +46136,7 @@ function Xd() {
|
|
|
46107
46136
|
return e;
|
|
46108
46137
|
}, Xd.apply(null, arguments);
|
|
46109
46138
|
}
|
|
46110
|
-
var
|
|
46139
|
+
var fz = function(t) {
|
|
46111
46140
|
return /* @__PURE__ */ S.createElement("svg", Xd({
|
|
46112
46141
|
xmlns: "http://www.w3.org/2000/svg",
|
|
46113
46142
|
width: 9,
|
|
@@ -46208,7 +46237,7 @@ const Ww = ({
|
|
|
46208
46237
|
el,
|
|
46209
46238
|
{
|
|
46210
46239
|
icon: /* @__PURE__ */ m.jsx(
|
|
46211
|
-
|
|
46240
|
+
dz,
|
|
46212
46241
|
{
|
|
46213
46242
|
className: `${c === "light" ? "chip-icon-light" : "chip-icon-dark"}`
|
|
46214
46243
|
}
|
|
@@ -46230,7 +46259,7 @@ const Ww = ({
|
|
|
46230
46259
|
el,
|
|
46231
46260
|
{
|
|
46232
46261
|
icon: /* @__PURE__ */ m.jsx(
|
|
46233
|
-
|
|
46262
|
+
fz,
|
|
46234
46263
|
{
|
|
46235
46264
|
className: `${c === "light" ? "chip-icon-light" : "chip-icon-dark"}`
|
|
46236
46265
|
}
|
|
@@ -46424,7 +46453,7 @@ zw.propTypes = {
|
|
|
46424
46453
|
handleRead: s.func,
|
|
46425
46454
|
handleShowDetails: s.func
|
|
46426
46455
|
};
|
|
46427
|
-
const
|
|
46456
|
+
const pz = ({
|
|
46428
46457
|
onRefresh: e,
|
|
46429
46458
|
handleShowDetails: t,
|
|
46430
46459
|
clickId: n,
|
|
@@ -46627,7 +46656,7 @@ const fz = ({
|
|
|
46627
46656
|
variant: "outlined",
|
|
46628
46657
|
className: "view-all",
|
|
46629
46658
|
onClick: o,
|
|
46630
|
-
startIcon: /* @__PURE__ */ m.jsx(
|
|
46659
|
+
startIcon: /* @__PURE__ */ m.jsx(uz, {}),
|
|
46631
46660
|
disabled: !((C = c == null ? void 0 : c.filter((w) => !(w != null && w.isRead))) != null && C.length),
|
|
46632
46661
|
style: { backgroundColor: "transparent" },
|
|
46633
46662
|
sx: {
|
|
@@ -46658,7 +46687,7 @@ const fz = ({
|
|
|
46658
46687
|
}
|
|
46659
46688
|
)
|
|
46660
46689
|
] });
|
|
46661
|
-
},
|
|
46690
|
+
}, hz = ({ data: e, handleClose: t, t: n }) => {
|
|
46662
46691
|
var x;
|
|
46663
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("");
|
|
46664
46693
|
return st(() => {
|
|
@@ -46770,7 +46799,7 @@ const fz = ({
|
|
|
46770
46799
|
}
|
|
46771
46800
|
)
|
|
46772
46801
|
] });
|
|
46773
|
-
},
|
|
46802
|
+
}, mz = ({ baseUrl: e, t }) => {
|
|
46774
46803
|
const {
|
|
46775
46804
|
alertDialogProps: n,
|
|
46776
46805
|
showDetailsProps: r,
|
|
@@ -46791,13 +46820,13 @@ const fz = ({
|
|
|
46791
46820
|
var a;
|
|
46792
46821
|
o(), (a = n == null ? void 0 : n.setOpen) == null || a.call(n, !0);
|
|
46793
46822
|
},
|
|
46794
|
-
children: /* @__PURE__ */ m.jsx(
|
|
46823
|
+
children: /* @__PURE__ */ m.jsx(cz, { count: i.count })
|
|
46795
46824
|
}
|
|
46796
46825
|
),
|
|
46797
|
-
/* @__PURE__ */ m.jsx(Ay, { ...n, children: /* @__PURE__ */ m.jsx(
|
|
46798
|
-
/* @__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 }) })
|
|
46799
46828
|
] });
|
|
46800
|
-
},
|
|
46829
|
+
}, Uz = ({ baseUrl: e, t }) => /* @__PURE__ */ m.jsx(Gn, { children: /* @__PURE__ */ m.jsx(rz, { children: /* @__PURE__ */ m.jsx(mz, { baseUrl: e, t }) }) }), gz = ({
|
|
46801
46830
|
rightChild: e,
|
|
46802
46831
|
leftChild: t,
|
|
46803
46832
|
isDrawerMerged: n,
|
|
@@ -46958,31 +46987,31 @@ const fz = ({
|
|
|
46958
46987
|
}
|
|
46959
46988
|
)
|
|
46960
46989
|
] }) });
|
|
46961
|
-
},
|
|
46962
|
-
|
|
46990
|
+
}, yz = ({ layoutChildren: e, layoutProps: t }) => /* @__PURE__ */ m.jsx(Gn, { children: /* @__PURE__ */ m.jsx(
|
|
46991
|
+
gz,
|
|
46963
46992
|
{
|
|
46964
46993
|
...e,
|
|
46965
46994
|
...t
|
|
46966
46995
|
}
|
|
46967
46996
|
) });
|
|
46968
|
-
|
|
46997
|
+
yz.propTypes = {
|
|
46969
46998
|
layoutChildren: s.object.isRequired,
|
|
46970
46999
|
layoutProps: s.object.isRequired
|
|
46971
47000
|
};
|
|
46972
47001
|
export {
|
|
46973
47002
|
qr as Button,
|
|
46974
47003
|
Ru as Checkbox,
|
|
46975
|
-
|
|
47004
|
+
Cz as DatePicker,
|
|
46976
47005
|
Fw as Grid,
|
|
46977
|
-
|
|
47006
|
+
nz as Header,
|
|
46978
47007
|
AV as InputField,
|
|
46979
|
-
|
|
46980
|
-
|
|
47008
|
+
Oz as Loader,
|
|
47009
|
+
Uz as Notification,
|
|
46981
47010
|
jV as Select,
|
|
46982
|
-
|
|
47011
|
+
yz as SliderLayout,
|
|
46983
47012
|
YV as Switch,
|
|
46984
47013
|
_d as TextField,
|
|
46985
|
-
|
|
46986
|
-
|
|
47014
|
+
Tz as ToastProvider,
|
|
47015
|
+
Sz as toast
|
|
46987
47016
|
};
|
|
46988
47017
|
//# sourceMappingURL=index.es.js.map
|