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