@zydon/common 1.1.47 → 1.1.48
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/App.d.ts.map +1 -1
- package/dist/components/nav-section/NavSectionHorizontal/NavItem.d.ts.map +1 -1
- package/dist/components/nav-section/NavSectionHorizontal/NavList.d.ts +2 -0
- package/dist/components/nav-section/NavSectionHorizontal/NavList.d.ts.map +1 -1
- package/dist/components/nav-section/NavSectionHorizontal/index.d.ts.map +1 -1
- package/dist/components/nav-section/NavSectionMini/NavItem.d.ts.map +1 -1
- package/dist/components/nav-section/NavSectionMini/NavList.d.ts +2 -0
- package/dist/components/nav-section/NavSectionMini/NavList.d.ts.map +1 -1
- package/dist/components/nav-section/NavSectionMini/index.d.ts.map +1 -1
- package/dist/components/nav-section/NavSectionVertical/NavItem.d.ts.map +1 -1
- package/dist/components/nav-section/NavSectionVertical/NavList.d.ts +2 -0
- package/dist/components/nav-section/NavSectionVertical/NavList.d.ts.map +1 -1
- package/dist/components/nav-section/NavSectionVertical/index.d.ts.map +1 -1
- package/dist/components/nav-section/types.d.ts +4 -0
- package/dist/components/nav-section/types.d.ts.map +1 -1
- package/dist/{features-a1be15bb.js → features-804ebd09.js} +1 -1
- package/dist/{index-d61f6142.js → index-f8ce0fe0.js} +306 -137
- package/dist/index.js +1 -1
- package/dist/index.umd.cjs +1 -1
- package/package.json +1 -1
|
@@ -5612,7 +5612,7 @@ const R6 = (t, e, n) => {
|
|
|
5612
5612
|
...r,
|
|
5613
5613
|
children: n
|
|
5614
5614
|
}
|
|
5615
|
-
), x6 = () => import("./features-
|
|
5615
|
+
), x6 = () => import("./features-804ebd09.js").then((t) => t.default), A6 = ({ children: t }) => /* @__PURE__ */ O.jsx(d5, { strict: !0, features: x6, children: /* @__PURE__ */ O.jsxs(Dr.div, { style: { height: "100%" }, children: [
|
|
5616
5616
|
" ",
|
|
5617
5617
|
t,
|
|
5618
5618
|
" "
|
|
@@ -104104,22 +104104,31 @@ const mF = {
|
|
|
104104
104104
|
...Sp({ color: t.palette.background.default })
|
|
104105
104105
|
}
|
|
104106
104106
|
})), gF = on(
|
|
104107
|
-
({
|
|
104108
|
-
|
|
104107
|
+
({
|
|
104108
|
+
item: t,
|
|
104109
|
+
depth: e,
|
|
104110
|
+
open: n,
|
|
104111
|
+
active: r,
|
|
104112
|
+
isExternalLink: i,
|
|
104113
|
+
onNavigate: a,
|
|
104114
|
+
componentType: o,
|
|
104115
|
+
...s
|
|
104116
|
+
}, l) => {
|
|
104117
|
+
const { title: c, path: u, icon: d, children: f, disabled: p, caption: m } = t, h = e !== 1, g = /* @__PURE__ */ O.jsxs(
|
|
104109
104118
|
XTe,
|
|
104110
104119
|
{
|
|
104111
|
-
ref:
|
|
104120
|
+
ref: l,
|
|
104112
104121
|
open: n,
|
|
104113
104122
|
depth: e,
|
|
104114
104123
|
active: r,
|
|
104115
|
-
disabled:
|
|
104116
|
-
...
|
|
104124
|
+
disabled: p,
|
|
104125
|
+
...s,
|
|
104117
104126
|
children: [
|
|
104118
|
-
|
|
104127
|
+
d && /* @__PURE__ */ O.jsx(ZTe, { children: d }),
|
|
104119
104128
|
/* @__PURE__ */ O.jsx(
|
|
104120
104129
|
Nv,
|
|
104121
104130
|
{
|
|
104122
|
-
primary:
|
|
104131
|
+
primary: c,
|
|
104123
104132
|
primaryTypographyProps: {
|
|
104124
104133
|
noWrap: !0,
|
|
104125
104134
|
sx: {
|
|
@@ -104130,7 +104139,7 @@ const mF = {
|
|
|
104130
104139
|
...r && {
|
|
104131
104140
|
fontWeight: "fontWeightMedium"
|
|
104132
104141
|
},
|
|
104133
|
-
...
|
|
104142
|
+
...h && {
|
|
104134
104143
|
fontSize: 14,
|
|
104135
104144
|
width: "auto",
|
|
104136
104145
|
textAlign: "left"
|
|
@@ -104139,7 +104148,7 @@ const mF = {
|
|
|
104139
104148
|
}
|
|
104140
104149
|
}
|
|
104141
104150
|
),
|
|
104142
|
-
|
|
104151
|
+
m && /* @__PURE__ */ O.jsx(mf, { title: m, arrow: !0, placement: "right", children: /* @__PURE__ */ O.jsx(
|
|
104143
104152
|
It,
|
|
104144
104153
|
{
|
|
104145
104154
|
icon: "eva:info-outline",
|
|
@@ -104151,7 +104160,7 @@ const mF = {
|
|
|
104151
104160
|
}
|
|
104152
104161
|
}
|
|
104153
104162
|
) }),
|
|
104154
|
-
!!
|
|
104163
|
+
!!f && /* @__PURE__ */ O.jsx(
|
|
104155
104164
|
It,
|
|
104156
104165
|
{
|
|
104157
104166
|
width: 16,
|
|
@@ -104166,75 +104175,116 @@ const mF = {
|
|
|
104166
104175
|
]
|
|
104167
104176
|
}
|
|
104168
104177
|
);
|
|
104169
|
-
return (() => i ? /* @__PURE__ */ O.jsx(cs, { href:
|
|
104178
|
+
return (() => i ? /* @__PURE__ */ O.jsx(cs, { href: u, target: "_blank", rel: "noopener", underline: "none", children: g }) : /* @__PURE__ */ O.jsx(
|
|
104179
|
+
cs,
|
|
104180
|
+
{
|
|
104181
|
+
component: o === "button" ? "button" : wv,
|
|
104182
|
+
underline: "none",
|
|
104183
|
+
...o === "button" && {
|
|
104184
|
+
type: "button",
|
|
104185
|
+
onClick: () => {
|
|
104186
|
+
a && a(u);
|
|
104187
|
+
},
|
|
104188
|
+
sx: {
|
|
104189
|
+
width: "100%"
|
|
104190
|
+
}
|
|
104191
|
+
},
|
|
104192
|
+
...o === "link" && {
|
|
104193
|
+
to: u
|
|
104194
|
+
},
|
|
104195
|
+
children: g
|
|
104196
|
+
}
|
|
104197
|
+
))();
|
|
104170
104198
|
}
|
|
104171
104199
|
);
|
|
104172
104200
|
gF.displayName = "NavItem";
|
|
104173
|
-
const eCe = ({
|
|
104201
|
+
const eCe = ({
|
|
104202
|
+
data: t,
|
|
104203
|
+
depth: e,
|
|
104204
|
+
componentType: n,
|
|
104205
|
+
onNavigate: r
|
|
104206
|
+
}) => /* @__PURE__ */ O.jsx(O.Fragment, { children: t.map((i) => /* @__PURE__ */ O.jsx(
|
|
104174
104207
|
_F,
|
|
104175
104208
|
{
|
|
104176
|
-
data:
|
|
104209
|
+
data: i,
|
|
104177
104210
|
depth: e + 1,
|
|
104178
|
-
hasChild: !!
|
|
104211
|
+
hasChild: !!i.children,
|
|
104212
|
+
componentType: n,
|
|
104213
|
+
onNavigate: r
|
|
104179
104214
|
},
|
|
104180
|
-
|
|
104181
|
-
)) }), _F = ({
|
|
104182
|
-
|
|
104215
|
+
i.title + i.path
|
|
104216
|
+
)) }), _F = ({
|
|
104217
|
+
data: t,
|
|
104218
|
+
depth: e,
|
|
104219
|
+
hasChild: n,
|
|
104220
|
+
componentType: r,
|
|
104221
|
+
onNavigate: i
|
|
104222
|
+
}) => {
|
|
104223
|
+
const a = tt(null), { pathname: o } = _f(), { active: s, isExternalLink: l } = zy(t.path), [c, u] = Pt(!1);
|
|
104183
104224
|
st(() => {
|
|
104184
|
-
|
|
104185
|
-
}, [
|
|
104186
|
-
const
|
|
104225
|
+
c && f();
|
|
104226
|
+
}, [o]), st(() => {
|
|
104227
|
+
const p = Array.from(
|
|
104187
104228
|
document.querySelectorAll(".MuiAppBar-root")
|
|
104188
|
-
),
|
|
104189
|
-
document.body.style.overflow = "", document.body.style.padding = "",
|
|
104190
|
-
|
|
104229
|
+
), m = () => {
|
|
104230
|
+
document.body.style.overflow = "", document.body.style.padding = "", p.forEach((h) => {
|
|
104231
|
+
h.style.padding = "";
|
|
104191
104232
|
});
|
|
104192
104233
|
};
|
|
104193
|
-
|
|
104194
|
-
}, [
|
|
104195
|
-
const
|
|
104196
|
-
|
|
104197
|
-
},
|
|
104198
|
-
|
|
104234
|
+
m();
|
|
104235
|
+
}, [c]);
|
|
104236
|
+
const d = () => {
|
|
104237
|
+
u(!0);
|
|
104238
|
+
}, f = () => {
|
|
104239
|
+
u(!1);
|
|
104199
104240
|
};
|
|
104200
104241
|
return /* @__PURE__ */ O.jsxs(O.Fragment, { children: [
|
|
104201
104242
|
/* @__PURE__ */ O.jsx(
|
|
104202
104243
|
gF,
|
|
104203
104244
|
{
|
|
104204
|
-
ref:
|
|
104245
|
+
ref: a,
|
|
104205
104246
|
item: t,
|
|
104206
104247
|
depth: e,
|
|
104207
|
-
open:
|
|
104208
|
-
active:
|
|
104209
|
-
isExternalLink:
|
|
104210
|
-
onMouseEnter:
|
|
104211
|
-
onMouseLeave:
|
|
104248
|
+
open: c,
|
|
104249
|
+
active: s,
|
|
104250
|
+
isExternalLink: l,
|
|
104251
|
+
onMouseEnter: d,
|
|
104252
|
+
onMouseLeave: f,
|
|
104253
|
+
componentType: r,
|
|
104254
|
+
onNavigate: i
|
|
104212
104255
|
}
|
|
104213
104256
|
),
|
|
104214
104257
|
n && /* @__PURE__ */ O.jsx(
|
|
104215
104258
|
JTe,
|
|
104216
104259
|
{
|
|
104217
|
-
open:
|
|
104218
|
-
anchorEl:
|
|
104260
|
+
open: c,
|
|
104261
|
+
anchorEl: a.current,
|
|
104219
104262
|
anchorOrigin: { vertical: "center", horizontal: "right" },
|
|
104220
104263
|
transformOrigin: { vertical: "center", horizontal: "left" },
|
|
104221
104264
|
PaperProps: {
|
|
104222
|
-
onMouseEnter:
|
|
104223
|
-
onMouseLeave:
|
|
104265
|
+
onMouseEnter: d,
|
|
104266
|
+
onMouseLeave: f
|
|
104224
104267
|
},
|
|
104225
104268
|
children: /* @__PURE__ */ O.jsx(eCe, { data: t.children, depth: e })
|
|
104226
104269
|
}
|
|
104227
104270
|
)
|
|
104228
104271
|
] });
|
|
104229
|
-
}, tCe = ({
|
|
104230
|
-
t
|
|
104272
|
+
}, tCe = ({
|
|
104273
|
+
items: t,
|
|
104274
|
+
isLastGroup: e,
|
|
104275
|
+
componentType: n,
|
|
104276
|
+
onNavigate: r
|
|
104277
|
+
}) => /* @__PURE__ */ O.jsxs(O.Fragment, { children: [
|
|
104278
|
+
t.map((i) => /* @__PURE__ */ O.jsx(
|
|
104231
104279
|
_F,
|
|
104232
104280
|
{
|
|
104233
|
-
data:
|
|
104281
|
+
data: i,
|
|
104234
104282
|
depth: 1,
|
|
104235
|
-
hasChild: !!
|
|
104283
|
+
hasChild: !!i.children,
|
|
104284
|
+
componentType: n,
|
|
104285
|
+
onNavigate: r
|
|
104236
104286
|
},
|
|
104237
|
-
|
|
104287
|
+
i.title + i.path
|
|
104238
104288
|
)),
|
|
104239
104289
|
!e && /* @__PURE__ */ O.jsx(
|
|
104240
104290
|
dt,
|
|
@@ -104247,7 +104297,13 @@ const eCe = ({ data: t, depth: e }) => /* @__PURE__ */ O.jsx(O.Fragment, { child
|
|
|
104247
104297
|
}
|
|
104248
104298
|
}
|
|
104249
104299
|
)
|
|
104250
|
-
] }), nCe = ({
|
|
104300
|
+
] }), nCe = ({
|
|
104301
|
+
data: t,
|
|
104302
|
+
sx: e,
|
|
104303
|
+
componentType: n,
|
|
104304
|
+
onNavigate: r,
|
|
104305
|
+
...i
|
|
104306
|
+
}) => /* @__PURE__ */ O.jsx(
|
|
104251
104307
|
Xe,
|
|
104252
104308
|
{
|
|
104253
104309
|
spacing: 0.5,
|
|
@@ -104256,14 +104312,16 @@ const eCe = ({ data: t, depth: e }) => /* @__PURE__ */ O.jsx(O.Fragment, { child
|
|
|
104256
104312
|
px: 0.75,
|
|
104257
104313
|
...e
|
|
104258
104314
|
},
|
|
104259
|
-
...
|
|
104260
|
-
children: t.map((
|
|
104315
|
+
...i,
|
|
104316
|
+
children: t.map((a, o) => /* @__PURE__ */ O.jsx(
|
|
104261
104317
|
tCe,
|
|
104262
104318
|
{
|
|
104263
|
-
items:
|
|
104264
|
-
isLastGroup:
|
|
104319
|
+
items: a.items,
|
|
104320
|
+
isLastGroup: o + 1 === t.length,
|
|
104321
|
+
componentType: n,
|
|
104322
|
+
onNavigate: r
|
|
104265
104323
|
},
|
|
104266
|
-
|
|
104324
|
+
a.subheader
|
|
104267
104325
|
))
|
|
104268
104326
|
}
|
|
104269
104327
|
), hRe = $a(nCe), rCe = fn(xv, {
|
|
@@ -104353,24 +104411,26 @@ const eCe = ({ data: t, depth: e }) => /* @__PURE__ */ O.jsx(O.Fragment, { child
|
|
|
104353
104411
|
open: n,
|
|
104354
104412
|
active: r,
|
|
104355
104413
|
isExternalLink: i,
|
|
104356
|
-
|
|
104414
|
+
componentType: a,
|
|
104415
|
+
onNavigate: o,
|
|
104416
|
+
...s
|
|
104357
104417
|
}) => {
|
|
104358
|
-
const { title:
|
|
104418
|
+
const { title: l, path: c, icon: u, info: d, children: f, disabled: p, caption: m } = t, h = e !== 1, g = /* @__PURE__ */ O.jsxs(
|
|
104359
104419
|
rCe,
|
|
104360
104420
|
{
|
|
104361
104421
|
depth: e,
|
|
104362
104422
|
active: r,
|
|
104363
|
-
disabled:
|
|
104364
|
-
caption: !!
|
|
104365
|
-
...
|
|
104423
|
+
disabled: p,
|
|
104424
|
+
caption: !!m,
|
|
104425
|
+
...s,
|
|
104366
104426
|
children: [
|
|
104367
|
-
|
|
104368
|
-
|
|
104427
|
+
u && /* @__PURE__ */ O.jsx(Sw, { children: u }),
|
|
104428
|
+
h && /* @__PURE__ */ O.jsx(Sw, { children: /* @__PURE__ */ O.jsx(iCe, { active: r && h }) }),
|
|
104369
104429
|
/* @__PURE__ */ O.jsx(
|
|
104370
104430
|
Nv,
|
|
104371
104431
|
{
|
|
104372
|
-
primary:
|
|
104373
|
-
secondary:
|
|
104432
|
+
primary: l,
|
|
104433
|
+
secondary: m && /* @__PURE__ */ O.jsx(mf, { title: m, placement: "top-start", children: /* @__PURE__ */ O.jsx("span", { children: m }) }),
|
|
104374
104434
|
primaryTypographyProps: {
|
|
104375
104435
|
noWrap: !0,
|
|
104376
104436
|
component: "span",
|
|
@@ -104382,8 +104442,8 @@ const eCe = ({ data: t, depth: e }) => /* @__PURE__ */ O.jsx(O.Fragment, { child
|
|
|
104382
104442
|
}
|
|
104383
104443
|
}
|
|
104384
104444
|
),
|
|
104385
|
-
|
|
104386
|
-
!!
|
|
104445
|
+
d && /* @__PURE__ */ O.jsx(dt, { component: "span", sx: { lineHeight: 0 }, children: d }),
|
|
104446
|
+
!!f && /* @__PURE__ */ O.jsx(
|
|
104387
104447
|
It,
|
|
104388
104448
|
{
|
|
104389
104449
|
width: 16,
|
|
@@ -104394,24 +104454,56 @@ const eCe = ({ data: t, depth: e }) => /* @__PURE__ */ O.jsx(O.Fragment, { child
|
|
|
104394
104454
|
]
|
|
104395
104455
|
}
|
|
104396
104456
|
);
|
|
104397
|
-
return (() => i ? /* @__PURE__ */ O.jsx(cs, { href:
|
|
104398
|
-
|
|
104457
|
+
return (() => i ? /* @__PURE__ */ O.jsx(cs, { href: c, target: "_blank", rel: "noopener", underline: "none", children: g }) : f ? g : /* @__PURE__ */ O.jsx(
|
|
104458
|
+
cs,
|
|
104459
|
+
{
|
|
104460
|
+
component: a === "button" ? "button" : wv,
|
|
104461
|
+
underline: "none",
|
|
104462
|
+
...a === "button" && {
|
|
104463
|
+
type: "button",
|
|
104464
|
+
onClick: () => {
|
|
104465
|
+
o && o(c);
|
|
104466
|
+
},
|
|
104467
|
+
sx: {
|
|
104468
|
+
width: "100%"
|
|
104469
|
+
}
|
|
104470
|
+
},
|
|
104471
|
+
...a === "link" && {
|
|
104472
|
+
to: c
|
|
104473
|
+
},
|
|
104474
|
+
children: g
|
|
104475
|
+
}
|
|
104476
|
+
))();
|
|
104477
|
+
}, sCe = ({
|
|
104478
|
+
data: t,
|
|
104479
|
+
depth: e,
|
|
104480
|
+
componentType: n,
|
|
104481
|
+
onNavigate: r
|
|
104482
|
+
}) => /* @__PURE__ */ O.jsx(O.Fragment, { children: t.map((i) => /* @__PURE__ */ O.jsx(
|
|
104399
104483
|
bF,
|
|
104400
104484
|
{
|
|
104401
|
-
data:
|
|
104485
|
+
data: i,
|
|
104402
104486
|
depth: e + 1,
|
|
104403
|
-
hasChild: !!
|
|
104487
|
+
hasChild: !!i.children,
|
|
104488
|
+
componentType: n,
|
|
104489
|
+
onNavigate: r
|
|
104404
104490
|
},
|
|
104405
|
-
|
|
104406
|
-
)) }), bF = ({
|
|
104407
|
-
|
|
104491
|
+
i.title + i.path
|
|
104492
|
+
)) }), bF = ({
|
|
104493
|
+
data: t,
|
|
104494
|
+
depth: e,
|
|
104495
|
+
hasChild: n,
|
|
104496
|
+
componentType: r,
|
|
104497
|
+
onNavigate: i
|
|
104498
|
+
}) => {
|
|
104499
|
+
const { pathname: a } = _f(), { active: o, isExternalLink: s } = zy(t.path), [l, c] = Pt(o);
|
|
104408
104500
|
st(() => {
|
|
104409
|
-
|
|
104410
|
-
}, [
|
|
104411
|
-
const
|
|
104412
|
-
|
|
104413
|
-
},
|
|
104414
|
-
|
|
104501
|
+
o || d();
|
|
104502
|
+
}, [a]);
|
|
104503
|
+
const u = () => {
|
|
104504
|
+
c(!l);
|
|
104505
|
+
}, d = () => {
|
|
104506
|
+
c(!1);
|
|
104415
104507
|
};
|
|
104416
104508
|
return /* @__PURE__ */ O.jsxs(O.Fragment, { children: [
|
|
104417
104509
|
/* @__PURE__ */ O.jsx(
|
|
@@ -104419,32 +104511,46 @@ const eCe = ({ data: t, depth: e }) => /* @__PURE__ */ O.jsx(O.Fragment, { child
|
|
|
104419
104511
|
{
|
|
104420
104512
|
item: t,
|
|
104421
104513
|
depth: e,
|
|
104422
|
-
open:
|
|
104423
|
-
active:
|
|
104424
|
-
isExternalLink:
|
|
104425
|
-
onClick:
|
|
104514
|
+
open: l,
|
|
104515
|
+
active: o,
|
|
104516
|
+
isExternalLink: s,
|
|
104517
|
+
onClick: u,
|
|
104518
|
+
componentType: r,
|
|
104519
|
+
onNavigate: i
|
|
104426
104520
|
}
|
|
104427
104521
|
),
|
|
104428
|
-
n && /* @__PURE__ */ O.jsx(LB, { in:
|
|
104522
|
+
n && /* @__PURE__ */ O.jsx(LB, { in: l, unmountOnExit: !0, children: /* @__PURE__ */ O.jsx(
|
|
104523
|
+
sCe,
|
|
104524
|
+
{
|
|
104525
|
+
data: t.children,
|
|
104526
|
+
depth: e,
|
|
104527
|
+
componentType: r,
|
|
104528
|
+
onNavigate: i
|
|
104529
|
+
}
|
|
104530
|
+
) })
|
|
104429
104531
|
] });
|
|
104430
104532
|
}, mRe = ({
|
|
104431
104533
|
data: t,
|
|
104432
104534
|
sx: e,
|
|
104433
|
-
|
|
104434
|
-
|
|
104435
|
-
|
|
104535
|
+
componentType: n,
|
|
104536
|
+
onNavigate: r,
|
|
104537
|
+
...i
|
|
104538
|
+
}) => /* @__PURE__ */ O.jsx(Xe, { sx: e, ...i, children: t.map((a) => {
|
|
104539
|
+
const o = a.subheader || a.items[0].title;
|
|
104436
104540
|
return /* @__PURE__ */ O.jsxs(PB, { disablePadding: !0, sx: { px: 2 }, children: [
|
|
104437
|
-
|
|
104438
|
-
|
|
104541
|
+
a.subheader && /* @__PURE__ */ O.jsx(aCe, { disableSticky: !0, children: a.subheader }),
|
|
104542
|
+
a.items.map((s) => /* @__PURE__ */ O.jsx(
|
|
104439
104543
|
bF,
|
|
104440
104544
|
{
|
|
104441
|
-
data:
|
|
104545
|
+
data: s,
|
|
104442
104546
|
depth: 1,
|
|
104443
|
-
hasChild: !!
|
|
104547
|
+
hasChild: !!s.children,
|
|
104548
|
+
componentType: n,
|
|
104549
|
+
onNavigate: r
|
|
104444
104550
|
},
|
|
104445
|
-
|
|
104551
|
+
s.title + s.path
|
|
104446
104552
|
))
|
|
104447
|
-
] },
|
|
104553
|
+
] }, o);
|
|
104448
104554
|
}) }), lCe = fn(xv, {
|
|
104449
104555
|
shouldForwardProp: (t) => t !== "active" && t !== "open"
|
|
104450
104556
|
})(({ active: t, disabled: e, open: n, depth: r, theme: i }) => {
|
|
@@ -104519,22 +104625,31 @@ const eCe = ({ data: t, depth: e }) => /* @__PURE__ */ O.jsx(O.Fragment, { child
|
|
|
104519
104625
|
...Sp({ color: t.palette.background.default })
|
|
104520
104626
|
}
|
|
104521
104627
|
})), EF = on(
|
|
104522
|
-
({
|
|
104523
|
-
|
|
104628
|
+
({
|
|
104629
|
+
item: t,
|
|
104630
|
+
depth: e,
|
|
104631
|
+
open: n,
|
|
104632
|
+
active: r,
|
|
104633
|
+
isExternalLink: i,
|
|
104634
|
+
onNavigate: a,
|
|
104635
|
+
componentType: o,
|
|
104636
|
+
...s
|
|
104637
|
+
}, l) => {
|
|
104638
|
+
const { title: c, path: u, icon: d, info: f, children: p, disabled: m, caption: h } = t, g = e !== 1, _ = /* @__PURE__ */ O.jsxs(
|
|
104524
104639
|
lCe,
|
|
104525
104640
|
{
|
|
104526
|
-
ref:
|
|
104641
|
+
ref: l,
|
|
104527
104642
|
open: n,
|
|
104528
104643
|
depth: e,
|
|
104529
104644
|
active: r,
|
|
104530
|
-
disabled:
|
|
104531
|
-
...
|
|
104645
|
+
disabled: m,
|
|
104646
|
+
...s,
|
|
104532
104647
|
children: [
|
|
104533
|
-
|
|
104648
|
+
d && /* @__PURE__ */ O.jsx(cCe, { children: d }),
|
|
104534
104649
|
/* @__PURE__ */ O.jsx(
|
|
104535
104650
|
Nv,
|
|
104536
104651
|
{
|
|
104537
|
-
primary:
|
|
104652
|
+
primary: c,
|
|
104538
104653
|
primaryTypographyProps: {
|
|
104539
104654
|
noWrap: !0,
|
|
104540
104655
|
component: "span",
|
|
@@ -104542,12 +104657,12 @@ const eCe = ({ data: t, depth: e }) => /* @__PURE__ */ O.jsx(O.Fragment, { child
|
|
|
104542
104657
|
}
|
|
104543
104658
|
}
|
|
104544
104659
|
),
|
|
104545
|
-
|
|
104546
|
-
|
|
104547
|
-
!!
|
|
104660
|
+
f && /* @__PURE__ */ O.jsx(dt, { component: "span", sx: { ml: 1, lineHeight: 0 }, children: f }),
|
|
104661
|
+
h && /* @__PURE__ */ O.jsx(mf, { title: h, arrow: !0, children: /* @__PURE__ */ O.jsx(dt, { component: "span", sx: { ml: 0.5, lineHeight: 0 }, children: /* @__PURE__ */ O.jsx(It, { icon: "eva:info-outline", width: 16 }) }) }),
|
|
104662
|
+
!!p && /* @__PURE__ */ O.jsx(
|
|
104548
104663
|
It,
|
|
104549
104664
|
{
|
|
104550
|
-
icon:
|
|
104665
|
+
icon: g ? "eva:chevron-right-fill" : "eva:chevron-down-fill",
|
|
104551
104666
|
width: 16,
|
|
104552
104667
|
sx: { ml: 0.5, flexShrink: 0 }
|
|
104553
104668
|
}
|
|
@@ -104555,78 +104670,124 @@ const eCe = ({ data: t, depth: e }) => /* @__PURE__ */ O.jsx(O.Fragment, { child
|
|
|
104555
104670
|
]
|
|
104556
104671
|
}
|
|
104557
104672
|
);
|
|
104558
|
-
return (() => i ? /* @__PURE__ */ O.jsx(cs, { href:
|
|
104673
|
+
return (() => i ? /* @__PURE__ */ O.jsx(cs, { href: u, target: "_blank", rel: "noopener", underline: "none", children: _ }) : /* @__PURE__ */ O.jsx(
|
|
104674
|
+
cs,
|
|
104675
|
+
{
|
|
104676
|
+
component: o === "button" ? "button" : wv,
|
|
104677
|
+
underline: "none",
|
|
104678
|
+
...o === "button" && {
|
|
104679
|
+
type: "button",
|
|
104680
|
+
onClick: () => {
|
|
104681
|
+
a && a(u);
|
|
104682
|
+
},
|
|
104683
|
+
sx: {
|
|
104684
|
+
width: "100%"
|
|
104685
|
+
}
|
|
104686
|
+
},
|
|
104687
|
+
...o === "link" && {
|
|
104688
|
+
to: u
|
|
104689
|
+
},
|
|
104690
|
+
children: _
|
|
104691
|
+
}
|
|
104692
|
+
))();
|
|
104559
104693
|
}
|
|
104560
104694
|
);
|
|
104561
104695
|
EF.displayName = "NavItem";
|
|
104562
|
-
const dCe = ({
|
|
104696
|
+
const dCe = ({
|
|
104697
|
+
data: t,
|
|
104698
|
+
depth: e,
|
|
104699
|
+
componentType: n,
|
|
104700
|
+
onNavigate: r
|
|
104701
|
+
}) => /* @__PURE__ */ O.jsx(O.Fragment, { children: t.map((i) => /* @__PURE__ */ O.jsx(
|
|
104563
104702
|
vF,
|
|
104564
104703
|
{
|
|
104565
|
-
data:
|
|
104704
|
+
data: i,
|
|
104566
104705
|
depth: e + 1,
|
|
104567
|
-
hasChild: !!
|
|
104706
|
+
hasChild: !!i.children,
|
|
104707
|
+
componentType: n,
|
|
104708
|
+
onNavigate: r
|
|
104568
104709
|
},
|
|
104569
|
-
|
|
104570
|
-
)) }), vF = ({
|
|
104571
|
-
|
|
104710
|
+
i.title + i.path
|
|
104711
|
+
)) }), vF = ({
|
|
104712
|
+
data: t,
|
|
104713
|
+
depth: e,
|
|
104714
|
+
hasChild: n,
|
|
104715
|
+
componentType: r,
|
|
104716
|
+
onNavigate: i
|
|
104717
|
+
}) => {
|
|
104718
|
+
const a = tt(null), { pathname: o } = _f(), { active: s, isExternalLink: l } = zy(t.path), [c, u] = Pt(!1);
|
|
104572
104719
|
st(() => {
|
|
104573
|
-
|
|
104574
|
-
}, [
|
|
104575
|
-
const
|
|
104720
|
+
c && f();
|
|
104721
|
+
}, [o]), st(() => {
|
|
104722
|
+
const p = Array.from(
|
|
104576
104723
|
document.querySelectorAll(".MuiAppBar-root")
|
|
104577
|
-
),
|
|
104578
|
-
document.body.style.overflow = "", document.body.style.padding = "",
|
|
104579
|
-
|
|
104724
|
+
), m = () => {
|
|
104725
|
+
document.body.style.overflow = "", document.body.style.padding = "", p.forEach((h) => {
|
|
104726
|
+
h.style.padding = "";
|
|
104580
104727
|
});
|
|
104581
104728
|
};
|
|
104582
|
-
|
|
104583
|
-
}, [
|
|
104584
|
-
const
|
|
104585
|
-
|
|
104586
|
-
},
|
|
104587
|
-
|
|
104729
|
+
m();
|
|
104730
|
+
}, [c]);
|
|
104731
|
+
const d = () => {
|
|
104732
|
+
u(!0);
|
|
104733
|
+
}, f = () => {
|
|
104734
|
+
u(!1);
|
|
104588
104735
|
};
|
|
104589
104736
|
return /* @__PURE__ */ O.jsxs(O.Fragment, { children: [
|
|
104590
104737
|
/* @__PURE__ */ O.jsx(
|
|
104591
104738
|
EF,
|
|
104592
104739
|
{
|
|
104593
|
-
ref:
|
|
104740
|
+
ref: a,
|
|
104594
104741
|
item: t,
|
|
104595
104742
|
depth: e,
|
|
104596
|
-
open:
|
|
104597
|
-
active:
|
|
104598
|
-
isExternalLink:
|
|
104599
|
-
onMouseEnter:
|
|
104600
|
-
onMouseLeave:
|
|
104743
|
+
open: c,
|
|
104744
|
+
active: s,
|
|
104745
|
+
isExternalLink: l,
|
|
104746
|
+
onMouseEnter: d,
|
|
104747
|
+
onMouseLeave: f,
|
|
104748
|
+
componentType: r,
|
|
104749
|
+
onNavigate: i
|
|
104601
104750
|
}
|
|
104602
104751
|
),
|
|
104603
104752
|
n && /* @__PURE__ */ O.jsx(
|
|
104604
104753
|
uCe,
|
|
104605
104754
|
{
|
|
104606
|
-
open:
|
|
104607
|
-
anchorEl:
|
|
104755
|
+
open: c,
|
|
104756
|
+
anchorEl: a.current,
|
|
104608
104757
|
anchorOrigin: e === 1 ? { vertical: "bottom", horizontal: "left" } : { vertical: "center", horizontal: "right" },
|
|
104609
104758
|
transformOrigin: e === 1 ? { vertical: "top", horizontal: "left" } : { vertical: "center", horizontal: "left" },
|
|
104610
104759
|
PaperProps: {
|
|
104611
|
-
onMouseEnter:
|
|
104612
|
-
onMouseLeave:
|
|
104760
|
+
onMouseEnter: d,
|
|
104761
|
+
onMouseLeave: f
|
|
104613
104762
|
},
|
|
104614
|
-
children: /* @__PURE__ */ O.jsx(
|
|
104763
|
+
children: /* @__PURE__ */ O.jsx(
|
|
104764
|
+
dCe,
|
|
104765
|
+
{
|
|
104766
|
+
data: t.children,
|
|
104767
|
+
depth: e,
|
|
104768
|
+
componentType: r,
|
|
104769
|
+
onNavigate: i
|
|
104770
|
+
}
|
|
104771
|
+
)
|
|
104615
104772
|
}
|
|
104616
104773
|
)
|
|
104617
104774
|
] });
|
|
104618
|
-
}, fCe = ({ items: t }) => /* @__PURE__ */ O.jsx(O.Fragment, { children: t.map((
|
|
104775
|
+
}, fCe = ({ items: t, componentType: e, onNavigate: n }) => /* @__PURE__ */ O.jsx(O.Fragment, { children: t.map((r) => /* @__PURE__ */ O.jsx(
|
|
104619
104776
|
vF,
|
|
104620
104777
|
{
|
|
104621
|
-
data:
|
|
104778
|
+
data: r,
|
|
104622
104779
|
depth: 1,
|
|
104623
|
-
hasChild: !!
|
|
104780
|
+
hasChild: !!r.children,
|
|
104781
|
+
componentType: e,
|
|
104782
|
+
onNavigate: n
|
|
104624
104783
|
},
|
|
104625
|
-
|
|
104784
|
+
r.title + r.path
|
|
104626
104785
|
)) }), pCe = ({
|
|
104627
104786
|
data: t,
|
|
104628
104787
|
sx: e,
|
|
104629
|
-
|
|
104788
|
+
componentType: n,
|
|
104789
|
+
onNavigate: r,
|
|
104790
|
+
...i
|
|
104630
104791
|
}) => /* @__PURE__ */ O.jsx(
|
|
104631
104792
|
Xe,
|
|
104632
104793
|
{
|
|
@@ -104637,8 +104798,16 @@ const dCe = ({ data: t, depth: e }) => /* @__PURE__ */ O.jsx(O.Fragment, { child
|
|
|
104637
104798
|
...mF,
|
|
104638
104799
|
...e
|
|
104639
104800
|
},
|
|
104640
|
-
...
|
|
104641
|
-
children: t.map((
|
|
104801
|
+
...i,
|
|
104802
|
+
children: t.map((a) => /* @__PURE__ */ O.jsx(
|
|
104803
|
+
fCe,
|
|
104804
|
+
{
|
|
104805
|
+
items: a.items,
|
|
104806
|
+
componentType: n,
|
|
104807
|
+
onNavigate: r
|
|
104808
|
+
},
|
|
104809
|
+
a.subheader
|
|
104810
|
+
))
|
|
104642
104811
|
}
|
|
104643
104812
|
), gRe = $a(pCe);
|
|
104644
104813
|
function qs(t, e, n, r) {
|