@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.
@@ -5612,7 +5612,7 @@ const R6 = (t, e, n) => {
5612
5612
  ...r,
5613
5613
  children: n
5614
5614
  }
5615
- ), x6 = () => import("./features-a1be15bb.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: [
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
- ({ item: t, depth: e, open: n, active: r, isExternalLink: i, ...a }, o) => {
104108
- const { title: s, path: l, icon: c, children: u, disabled: d, caption: f } = t, p = e !== 1, m = /* @__PURE__ */ O.jsxs(
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: o,
104120
+ ref: l,
104112
104121
  open: n,
104113
104122
  depth: e,
104114
104123
  active: r,
104115
- disabled: d,
104116
- ...a,
104124
+ disabled: p,
104125
+ ...s,
104117
104126
  children: [
104118
- c && /* @__PURE__ */ O.jsx(ZTe, { children: c }),
104127
+ d && /* @__PURE__ */ O.jsx(ZTe, { children: d }),
104119
104128
  /* @__PURE__ */ O.jsx(
104120
104129
  Nv,
104121
104130
  {
104122
- primary: s,
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
- ...p && {
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
- f && /* @__PURE__ */ O.jsx(mf, { title: f, arrow: !0, placement: "right", children: /* @__PURE__ */ O.jsx(
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
- !!u && /* @__PURE__ */ O.jsx(
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: l, target: "_blank", rel: "noopener", underline: "none", children: m }) : /* @__PURE__ */ O.jsx(cs, { component: wv, to: l, underline: "none", children: m }))();
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 = ({ data: t, depth: e }) => /* @__PURE__ */ O.jsx(O.Fragment, { children: t.map((n) => /* @__PURE__ */ O.jsx(
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: n,
104209
+ data: i,
104177
104210
  depth: e + 1,
104178
- hasChild: !!n.children
104211
+ hasChild: !!i.children,
104212
+ componentType: n,
104213
+ onNavigate: r
104179
104214
  },
104180
- n.title + n.path
104181
- )) }), _F = ({ data: t, depth: e, hasChild: n }) => {
104182
- const r = tt(null), { pathname: i } = _f(), { active: a, isExternalLink: o } = zy(t.path), [s, l] = Pt(!1);
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
- s && u();
104185
- }, [i]), st(() => {
104186
- const d = Array.from(
104225
+ c && f();
104226
+ }, [o]), st(() => {
104227
+ const p = Array.from(
104187
104228
  document.querySelectorAll(".MuiAppBar-root")
104188
- ), f = () => {
104189
- document.body.style.overflow = "", document.body.style.padding = "", d.forEach((p) => {
104190
- p.style.padding = "";
104229
+ ), m = () => {
104230
+ document.body.style.overflow = "", document.body.style.padding = "", p.forEach((h) => {
104231
+ h.style.padding = "";
104191
104232
  });
104192
104233
  };
104193
- f();
104194
- }, [s]);
104195
- const c = () => {
104196
- l(!0);
104197
- }, u = () => {
104198
- l(!1);
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: r,
104245
+ ref: a,
104205
104246
  item: t,
104206
104247
  depth: e,
104207
- open: s,
104208
- active: a,
104209
- isExternalLink: o,
104210
- onMouseEnter: c,
104211
- onMouseLeave: u
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: s,
104218
- anchorEl: r.current,
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: c,
104223
- onMouseLeave: u
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 = ({ items: t, isLastGroup: e }) => /* @__PURE__ */ O.jsxs(O.Fragment, { children: [
104230
- t.map((n) => /* @__PURE__ */ O.jsx(
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: n,
104281
+ data: i,
104234
104282
  depth: 1,
104235
- hasChild: !!n.children
104283
+ hasChild: !!i.children,
104284
+ componentType: n,
104285
+ onNavigate: r
104236
104286
  },
104237
- n.title + n.path
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 = ({ data: t, sx: e, ...n }) => /* @__PURE__ */ O.jsx(
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
- ...n,
104260
- children: t.map((r, i) => /* @__PURE__ */ O.jsx(
104315
+ ...i,
104316
+ children: t.map((a, o) => /* @__PURE__ */ O.jsx(
104261
104317
  tCe,
104262
104318
  {
104263
- items: r.items,
104264
- isLastGroup: i + 1 === t.length
104319
+ items: a.items,
104320
+ isLastGroup: o + 1 === t.length,
104321
+ componentType: n,
104322
+ onNavigate: r
104265
104323
  },
104266
- r.subheader
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
- ...a
104414
+ componentType: a,
104415
+ onNavigate: o,
104416
+ ...s
104357
104417
  }) => {
104358
- const { title: o, path: s, icon: l, info: c, children: u, disabled: d, caption: f } = t, p = e !== 1, m = /* @__PURE__ */ O.jsxs(
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: d,
104364
- caption: !!f,
104365
- ...a,
104423
+ disabled: p,
104424
+ caption: !!m,
104425
+ ...s,
104366
104426
  children: [
104367
- l && /* @__PURE__ */ O.jsx(Sw, { children: l }),
104368
- p && /* @__PURE__ */ O.jsx(Sw, { children: /* @__PURE__ */ O.jsx(iCe, { active: r && p }) }),
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: o,
104373
- secondary: f && /* @__PURE__ */ O.jsx(mf, { title: f, placement: "top-start", children: /* @__PURE__ */ O.jsx("span", { children: f }) }),
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
- c && /* @__PURE__ */ O.jsx(dt, { component: "span", sx: { lineHeight: 0 }, children: c }),
104386
- !!u && /* @__PURE__ */ O.jsx(
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: s, target: "_blank", rel: "noopener", underline: "none", children: m }) : u ? m : /* @__PURE__ */ O.jsx(cs, { component: wv, to: s, underline: "none", children: m }))();
104398
- }, sCe = ({ data: t, depth: e }) => /* @__PURE__ */ O.jsx(O.Fragment, { children: t.map((n) => /* @__PURE__ */ O.jsx(
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: n,
104485
+ data: i,
104402
104486
  depth: e + 1,
104403
- hasChild: !!n.children
104487
+ hasChild: !!i.children,
104488
+ componentType: n,
104489
+ onNavigate: r
104404
104490
  },
104405
- n.title + n.path
104406
- )) }), bF = ({ data: t, depth: e, hasChild: n }) => {
104407
- const { pathname: r } = _f(), { active: i, isExternalLink: a } = zy(t.path), [o, s] = Pt(i);
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
- i || c();
104410
- }, [r]);
104411
- const l = () => {
104412
- s(!o);
104413
- }, c = () => {
104414
- s(!1);
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: o,
104423
- active: i,
104424
- isExternalLink: a,
104425
- onClick: l
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: o, unmountOnExit: !0, children: /* @__PURE__ */ O.jsx(sCe, { data: t.children, depth: e }) })
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
- ...n
104434
- }) => /* @__PURE__ */ O.jsx(Xe, { sx: e, ...n, children: t.map((r) => {
104435
- const i = r.subheader || r.items[0].title;
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
- r.subheader && /* @__PURE__ */ O.jsx(aCe, { disableSticky: !0, children: r.subheader }),
104438
- r.items.map((a) => /* @__PURE__ */ O.jsx(
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: a,
104545
+ data: s,
104442
104546
  depth: 1,
104443
- hasChild: !!a.children
104547
+ hasChild: !!s.children,
104548
+ componentType: n,
104549
+ onNavigate: r
104444
104550
  },
104445
- a.title + a.path
104551
+ s.title + s.path
104446
104552
  ))
104447
- ] }, i);
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
- ({ item: t, depth: e, open: n, active: r, isExternalLink: i, ...a }, o) => {
104523
- const { title: s, path: l, icon: c, info: u, children: d, disabled: f, caption: p } = t, m = e !== 1, h = /* @__PURE__ */ O.jsxs(
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: o,
104641
+ ref: l,
104527
104642
  open: n,
104528
104643
  depth: e,
104529
104644
  active: r,
104530
- disabled: f,
104531
- ...a,
104645
+ disabled: m,
104646
+ ...s,
104532
104647
  children: [
104533
- c && /* @__PURE__ */ O.jsx(cCe, { children: c }),
104648
+ d && /* @__PURE__ */ O.jsx(cCe, { children: d }),
104534
104649
  /* @__PURE__ */ O.jsx(
104535
104650
  Nv,
104536
104651
  {
104537
- primary: s,
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
- u && /* @__PURE__ */ O.jsx(dt, { component: "span", sx: { ml: 1, lineHeight: 0 }, children: u }),
104546
- p && /* @__PURE__ */ O.jsx(mf, { title: p, 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 }) }) }),
104547
- !!d && /* @__PURE__ */ O.jsx(
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: m ? "eva:chevron-right-fill" : "eva:chevron-down-fill",
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: l, target: "_blank", rel: "noopener", underline: "none", children: h }) : /* @__PURE__ */ O.jsx(cs, { component: wv, to: l, underline: "none", children: h }))();
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 = ({ data: t, depth: e }) => /* @__PURE__ */ O.jsx(O.Fragment, { children: t.map((n) => /* @__PURE__ */ O.jsx(
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: n,
104704
+ data: i,
104566
104705
  depth: e + 1,
104567
- hasChild: !!n.children
104706
+ hasChild: !!i.children,
104707
+ componentType: n,
104708
+ onNavigate: r
104568
104709
  },
104569
- n.title + n.path
104570
- )) }), vF = ({ data: t, depth: e, hasChild: n }) => {
104571
- const r = tt(null), { pathname: i } = _f(), { active: a, isExternalLink: o } = zy(t.path), [s, l] = Pt(!1);
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
- s && u();
104574
- }, [i]), st(() => {
104575
- const d = Array.from(
104720
+ c && f();
104721
+ }, [o]), st(() => {
104722
+ const p = Array.from(
104576
104723
  document.querySelectorAll(".MuiAppBar-root")
104577
- ), f = () => {
104578
- document.body.style.overflow = "", document.body.style.padding = "", d.forEach((p) => {
104579
- p.style.padding = "";
104724
+ ), m = () => {
104725
+ document.body.style.overflow = "", document.body.style.padding = "", p.forEach((h) => {
104726
+ h.style.padding = "";
104580
104727
  });
104581
104728
  };
104582
- f();
104583
- }, [s]);
104584
- const c = () => {
104585
- l(!0);
104586
- }, u = () => {
104587
- l(!1);
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: r,
104740
+ ref: a,
104594
104741
  item: t,
104595
104742
  depth: e,
104596
- open: s,
104597
- active: a,
104598
- isExternalLink: o,
104599
- onMouseEnter: c,
104600
- onMouseLeave: u
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: s,
104607
- anchorEl: r.current,
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: c,
104612
- onMouseLeave: u
104760
+ onMouseEnter: d,
104761
+ onMouseLeave: f
104613
104762
  },
104614
- children: /* @__PURE__ */ O.jsx(dCe, { data: t.children, depth: e })
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((e) => /* @__PURE__ */ O.jsx(
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: e,
104778
+ data: r,
104622
104779
  depth: 1,
104623
- hasChild: !!e.children
104780
+ hasChild: !!r.children,
104781
+ componentType: e,
104782
+ onNavigate: n
104624
104783
  },
104625
- e.title + e.path
104784
+ r.title + r.path
104626
104785
  )) }), pCe = ({
104627
104786
  data: t,
104628
104787
  sx: e,
104629
- ...n
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
- ...n,
104641
- children: t.map((r) => /* @__PURE__ */ O.jsx(fCe, { items: r.items }, r.subheader))
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) {