@gx-design-vue/pro-layout 0.1.0-beta.55 → 0.1.0-beta.56

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.
@@ -254,9 +254,9 @@ function fn(e) {
254
254
  return /\w.(png|jpg|jpeg|svg|webp|gif|bmp)$/i.test(e);
255
255
  }
256
256
  function gt(e, t, a, i) {
257
- var u, g, m, w, p, O, h, T, l, r, I, R, v, y, f, C, F, c, S, M, B, P, H, z, D, V, _, G, Y, J, d, x, k, $;
257
+ var u, h, m, w, p, O, g, T, l, r, I, R, v, y, f, C, F, c, S, M, B, P, H, z, D, V, _, G, Y, J, d, x, k, $;
258
258
  const o = { ...e };
259
- return a === "light" ? (o.colorItemBg = (g = (u = t.layout) == null ? void 0 : u[i]) == null ? void 0 : g.colorBgMenu, o.colorSubItemBg = (w = (m = t.layout) == null ? void 0 : m[i]) == null ? void 0 : w.colorSubItemBg, o.colorItemBgSelected = (O = (p = t.layout) == null ? void 0 : p[i]) == null ? void 0 : O.colorBgMenuItemSelected, o.colorItemBgSelectedHorizontal = (T = (h = t.layout) == null ? void 0 : h[i]) == null ? void 0 : T.colorBgMenuItemSelected, o.colorItemText = (r = (l = t.layout) == null ? void 0 : l[i]) == null ? void 0 : r.colorTextMenu, o.colorItemTextHover = (R = (I = t.layout) == null ? void 0 : I[i]) == null ? void 0 : R.colorTextMenuHover, o.colorItemTextSelected = (y = (v = t.layout) == null ? void 0 : v[i]) == null ? void 0 : y.colorTextMenuSelected, o.colorItemTextSelectedHorizontal = (C = (f = t.layout) == null ? void 0 : f[i]) == null ? void 0 : C.colorTextMenuSelected, i === "sider" && (o.colorItemBgHover = (c = (F = t.layout) == null ? void 0 : F[i]) == null ? void 0 : c.colorBgMenuItemHover)) : a === "dark" && (o.colorItemBg = (M = (S = t.layout) == null ? void 0 : S[i]) == null ? void 0 : M.colorDarkBgMenu, o.colorSubItemBg = (P = (B = t.layout) == null ? void 0 : B[i]) == null ? void 0 : P.colorDarkSubItemBg, o.colorItemBgSelected = (z = (H = t.layout) == null ? void 0 : H[i]) == null ? void 0 : z.colorDarkBgMenuItemSelected, o.colorItemBgSelectedHorizontal = (V = (D = t.layout) == null ? void 0 : D[i]) == null ? void 0 : V.colorDarkBgMenuItemSelected, o.colorItemText = (G = (_ = t.layout) == null ? void 0 : _[i]) == null ? void 0 : G.colorDarkTextMenu, o.colorItemTextHover = (J = (Y = t.layout) == null ? void 0 : Y[i]) == null ? void 0 : J.colorDarkTextMenuHover, o.colorItemTextSelected = (x = (d = t.layout) == null ? void 0 : d[i]) == null ? void 0 : x.colorDarkTextMenuSelected, o.colorItemTextSelectedHorizontal = ($ = (k = t.layout) == null ? void 0 : k[i]) == null ? void 0 : $.colorDarkTextMenuSelected, i === "header" && (o.colorActiveBarHeight = 0)), o;
259
+ return a === "light" ? (o.colorItemBg = (h = (u = t.layout) == null ? void 0 : u[i]) == null ? void 0 : h.colorBgMenu, o.colorSubItemBg = (w = (m = t.layout) == null ? void 0 : m[i]) == null ? void 0 : w.colorSubItemBg, o.colorItemBgSelected = (O = (p = t.layout) == null ? void 0 : p[i]) == null ? void 0 : O.colorBgMenuItemSelected, o.colorItemBgSelectedHorizontal = (T = (g = t.layout) == null ? void 0 : g[i]) == null ? void 0 : T.colorBgMenuItemSelected, o.colorItemText = (r = (l = t.layout) == null ? void 0 : l[i]) == null ? void 0 : r.colorTextMenu, o.colorItemTextHover = (R = (I = t.layout) == null ? void 0 : I[i]) == null ? void 0 : R.colorTextMenuHover, o.colorItemTextSelected = (y = (v = t.layout) == null ? void 0 : v[i]) == null ? void 0 : y.colorTextMenuSelected, o.colorItemTextSelectedHorizontal = (C = (f = t.layout) == null ? void 0 : f[i]) == null ? void 0 : C.colorTextMenuSelected, i === "sider" && (o.colorItemBgHover = (c = (F = t.layout) == null ? void 0 : F[i]) == null ? void 0 : c.colorBgMenuItemHover)) : a === "dark" && (o.colorItemBg = (M = (S = t.layout) == null ? void 0 : S[i]) == null ? void 0 : M.colorDarkBgMenu, o.colorSubItemBg = (P = (B = t.layout) == null ? void 0 : B[i]) == null ? void 0 : P.colorDarkSubItemBg, o.colorItemBgSelected = (z = (H = t.layout) == null ? void 0 : H[i]) == null ? void 0 : z.colorDarkBgMenuItemSelected, o.colorItemBgSelectedHorizontal = (V = (D = t.layout) == null ? void 0 : D[i]) == null ? void 0 : V.colorDarkBgMenuItemSelected, o.colorItemText = (G = (_ = t.layout) == null ? void 0 : _[i]) == null ? void 0 : G.colorDarkTextMenu, o.colorItemTextHover = (J = (Y = t.layout) == null ? void 0 : Y[i]) == null ? void 0 : J.colorDarkTextMenuHover, o.colorItemTextSelected = (x = (d = t.layout) == null ? void 0 : d[i]) == null ? void 0 : x.colorDarkTextMenuSelected, o.colorItemTextSelectedHorizontal = ($ = (k = t.layout) == null ? void 0 : k[i]) == null ? void 0 : $.colorDarkTextMenuSelected, i === "header" && (o.colorActiveBarHeight = 0)), o;
260
260
  }
261
261
  const gn = ["left", "right"], ue = ["left", "right", "down", "up"], hn = ["downBig", "upBig", "leftBig", "rightBig"], yn = ["topLeft", "bottomRight", "topRight", "bottomLeft"], bn = ["downLeft", "upRight", "downRight", "upLeft"], Ae = {
262
262
  preset: [
@@ -325,9 +325,9 @@ function Bi(e, t) {
325
325
  var i, o;
326
326
  const a = ((o = (i = e.find((u) => u.path === t)) == null ? void 0 : i.meta) == null ? void 0 : o.key) || "";
327
327
  if (a) {
328
- const u = [], g = a.split("-");
329
- for (let m = 0; m < g.length; m += 1)
330
- u.push(He(g).splice(0, m + 1).join("-"));
328
+ const u = [], h = a.split("-");
329
+ for (let m = 0; m < h.length; m += 1)
330
+ u.push(He(h).splice(0, m + 1).join("-"));
331
331
  return e.filter((m) => u.some((w) => {
332
332
  var p;
333
333
  return w === ((p = m == null ? void 0 : m.meta) == null ? void 0 : p.key) || "";
@@ -423,7 +423,7 @@ const ht = /* @__PURE__ */ j({
423
423
  }, u = (l) => {
424
424
  var r;
425
425
  (r = e.onSelect) == null || r.call(e, l.selectedKeys);
426
- }, g = (l) => {
426
+ }, h = (l) => {
427
427
  var r;
428
428
  (r = e.onClick) == null || r.call(e, ...l);
429
429
  }, m = (l, r) => {
@@ -462,7 +462,7 @@ const ht = /* @__PURE__ */ j({
462
462
  if (e.subMenuItemRender)
463
463
  return e.subMenuItemRender({
464
464
  item: l,
465
- children: h(l.children)
465
+ children: g(l.children)
466
466
  });
467
467
  const P = (y = l.meta) == null ? void 0 : y.title, H = (f = l.meta) != null && f.icon ? n("span", {
468
468
  class: "gx-pro-sider-menu-item"
@@ -480,7 +480,7 @@ const ht = /* @__PURE__ */ j({
480
480
  iconfontUrl: e.iconfontUrl,
481
481
  iconType: (c = l.meta) == null ? void 0 : c.iconType
482
482
  }, null)
483
- }, qe(B = h(l.children)) ? B : {
483
+ }, qe(B = g(l.children)) ? B : {
484
484
  default: () => [B]
485
485
  });
486
486
  }
@@ -498,10 +498,10 @@ const ht = /* @__PURE__ */ j({
498
498
  default: () => [r]
499
499
  });
500
500
  };
501
- function h(l = []) {
501
+ function g(l = []) {
502
502
  return l.map((r) => O(r)).filter((r) => r);
503
503
  }
504
- const T = b(() => h(e.menuData));
504
+ const T = b(() => g(e.menuData));
505
505
  return () => n(ae, q({
506
506
  key: "Menu",
507
507
  inlineIndent: 16,
@@ -511,7 +511,7 @@ const ht = /* @__PURE__ */ j({
511
511
  selectedKeys: e.selectedKeys || [],
512
512
  onOpenChange: (l) => o(l),
513
513
  onSelect: u,
514
- onClick: g
514
+ onClick: h
515
515
  }, e.menuProps), {
516
516
  default: () => [T.value]
517
517
  });
@@ -538,7 +538,7 @@ const ht = /* @__PURE__ */ j({
538
538
  }
539
539
  };
540
540
  }, Fn = (e) => {
541
- var t, a, i, o, u, g, m, w, p, O, h, T;
541
+ var t, a, i, o, u, h, m, w, p, O, g, T;
542
542
  return {
543
543
  [`${e.proComponentsCls}-basic-layout`]: {
544
544
  [`&${e.proComponentsCls}-basic-layout-wide`]: {
@@ -571,7 +571,7 @@ const ht = /* @__PURE__ */ j({
571
571
  background: (o = (i = e.layout) == null ? void 0 : i.sider) == null ? void 0 : o.colorBgMenu,
572
572
  boxShadow: "2px 0 8px 0 rgba(29,35,41,.05)",
573
573
  [`${e.componentCls}-footer`]: {
574
- color: (g = (u = e.layout) == null ? void 0 : u.sider) == null ? void 0 : g.colorTextMenu
574
+ color: (h = (u = e.layout) == null ? void 0 : u.sider) == null ? void 0 : h.colorTextMenu
575
575
  }
576
576
  },
577
577
  "&-links": {
@@ -603,7 +603,7 @@ const ht = /* @__PURE__ */ j({
603
603
  height: "100%",
604
604
  "&-mix": {
605
605
  height: `calc(100% - ${((O = (p = e.layout) == null ? void 0 : p.header) == null ? void 0 : O.heightLayoutHeader) || A.headerHeight}px)`,
606
- insetBlockStart: `${((T = (h = e.layout) == null ? void 0 : h.header) == null ? void 0 : T.heightLayoutHeader) || A.headerHeight}px`
606
+ insetBlockStart: `${((T = (g = e.layout) == null ? void 0 : g.header) == null ? void 0 : T.heightLayoutHeader) || A.headerHeight}px`
607
607
  }
608
608
  }
609
609
  }
@@ -686,11 +686,11 @@ const ht = /* @__PURE__ */ j({
686
686
  logoStyle: i,
687
687
  title: o,
688
688
  layout: u
689
- } = e, g = e[t || ""];
690
- if (g === !1)
689
+ } = e, h = e[t || ""];
690
+ if (h === !1)
691
691
  return null;
692
692
  const m = bt(a, i), w = o && n("h1", null, [o]);
693
- return typeof g == "function" ? g(m, e.collapsed ? null : w, e) : n(Q, null, [m || null, e.collapsed && u === "side" ? null : w]);
693
+ return typeof h == "function" ? h(m, e.collapsed ? null : w, e) : n(Q, null, [m || null, e.collapsed && u === "side" ? null : w]);
694
694
  }, We = /* @__PURE__ */ j({
695
695
  name: "LogoContent",
696
696
  props: re,
@@ -703,7 +703,7 @@ const ht = /* @__PURE__ */ j({
703
703
  })), {
704
704
  wrapSSR: o,
705
705
  hashId: u
706
- } = ne("ProLayoutLogo", [Tn]), g = b(() => Pn(e, e.renderKey));
706
+ } = ne("ProLayoutLogo", [Tn]), h = b(() => Pn(e, e.renderKey));
707
707
  return () => o(n("div", {
708
708
  id: "logo",
709
709
  class: {
@@ -715,7 +715,7 @@ const ht = /* @__PURE__ */ j({
715
715
  var m;
716
716
  return (m = e.onMenuHeaderClick) == null ? void 0 : m.call(e);
717
717
  }
718
- }, [n("a", null, [g.value || null])]));
718
+ }, [n("a", null, [h.value || null])]));
719
719
  }
720
720
  });
721
721
  We.inheritAttrs = !1;
@@ -737,14 +737,14 @@ const {
737
737
  menuData: o,
738
738
  openKeys: u
739
739
  } = ee(), {
740
- indicator: g
740
+ indicator: h
741
741
  } = Le(), {
742
742
  token: m
743
743
  } = fe(), {
744
744
  theme: w,
745
745
  layout: p,
746
746
  isMobile: O,
747
- menuLoading: h,
747
+ menuLoading: g,
748
748
  breakpoint: T,
749
749
  fixSiderbar: l,
750
750
  collapsed: r,
@@ -839,11 +839,11 @@ const {
839
839
  }, {
840
840
  default: () => {
841
841
  var N, K;
842
- return [h.value && n("div", {
842
+ return [g.value && n("div", {
843
843
  class: ["gx-pro-sider-loading", M.value]
844
844
  }, [n(xe, {
845
- spinning: h.value,
846
- indicator: g == null ? void 0 : g.value
845
+ spinning: g.value,
846
+ indicator: h == null ? void 0 : h.value
847
847
  }, null)]), d || null, x && !e.collapsed && n("div", {
848
848
  class: {
849
849
  [`${M.value}`]: !0,
@@ -991,7 +991,7 @@ const {
991
991
  }), {
992
992
  wrapSSR: o,
993
993
  hashId: u
994
- } = ne("ProPageHeader", [Nn], i), g = b(() => {
994
+ } = ne("ProPageHeader", [Nn], i), h = b(() => {
995
995
  var m;
996
996
  return {
997
997
  ...t.value,
@@ -1008,13 +1008,13 @@ const {
1008
1008
  var m, w;
1009
1009
  return o(n("div", {
1010
1010
  class: [`${i}`, u.value, `${i}-has-breadcrumb`]
1011
- }, [e.breadcrumb ? (m = e.breadcrumb) == null ? void 0 : m.call(e, g.value) : n(Lt, g.value, null), e.content && n("div", {
1011
+ }, [e.breadcrumb ? (m = e.breadcrumb) == null ? void 0 : m.call(e, h.value) : n(Lt, h.value, null), e.content && n("div", {
1012
1012
  class: [`${i}-content`, u.value]
1013
1013
  }, [(w = e.content) == null ? void 0 : w.call(e)])]));
1014
1014
  };
1015
1015
  }
1016
1016
  }), Hn = (e) => {
1017
- var t, a, i, o, u, g, m, w;
1017
+ var t, a, i, o, u, h, m, w;
1018
1018
  return {
1019
1019
  [`${e.proComponentsCls}-basic-layout`]: {
1020
1020
  [e.componentCls]: {
@@ -1027,7 +1027,7 @@ const {
1027
1027
  },
1028
1028
  [e.componentCls]: {
1029
1029
  "&-children-content": {
1030
- marginInline: ((g = (u = e.layout) == null ? void 0 : u.pageContainer) == null ? void 0 : g.marginInlinePageContainerContent) ?? 24,
1030
+ marginInline: ((h = (u = e.layout) == null ? void 0 : u.pageContainer) == null ? void 0 : h.marginInlinePageContainerContent) ?? 24,
1031
1031
  marginBlockStart: ((w = (m = e.layout) == null ? void 0 : m.pageContainer) == null ? void 0 : w.marginBlockPageContainerContent) ?? 24,
1032
1032
  padding: "inherit"
1033
1033
  }
@@ -1057,12 +1057,12 @@ const Oi = /* @__PURE__ */ j({
1057
1057
  getPrefixCls: i,
1058
1058
  hasContentWide: o,
1059
1059
  waterMark: u,
1060
- pageHeaderRender: g,
1060
+ pageHeaderRender: h,
1061
1061
  pageContentStyle: m,
1062
1062
  pageChildrenContentStyle: w,
1063
1063
  pageCardProps: p,
1064
1064
  usePageCard: O,
1065
- waterMarkProps: h
1065
+ waterMarkProps: g
1066
1066
  } = ee(), {
1067
1067
  indicator: T
1068
1068
  } = Le(), l = fe(), r = i({
@@ -1071,7 +1071,7 @@ const Oi = /* @__PURE__ */ j({
1071
1071
  }), I = i({
1072
1072
  suffixCls: "grid-content",
1073
1073
  isPor: !0
1074
- }), R = b(() => e.pageCardProps || p.value), v = b(() => e.waterMarkProps || h.value || {}), y = b(() => e.pageContentStyle || m.value), f = b(() => e.pageChildrenContentStyle || w.value || {}), C = b(() => _e(e.usePageCard) ? e.usePageCard : _e(O.value) ? O.value : !0), {
1074
+ }), R = b(() => e.pageCardProps || p.value), v = b(() => e.waterMarkProps || g.value || {}), y = b(() => e.pageContentStyle || m.value), f = b(() => e.pageChildrenContentStyle || w.value || {}), C = b(() => _e(e.usePageCard) ? e.usePageCard : _e(O.value) ? O.value : !0), {
1075
1075
  wrapSSR: F,
1076
1076
  hashId: c
1077
1077
  } = Vn(r), S = () => {
@@ -1102,7 +1102,7 @@ const Oi = /* @__PURE__ */ j({
1102
1102
  }) : S()]);
1103
1103
  };
1104
1104
  return () => {
1105
- const B = U(t, e, "pageHeaderRender") || g.value, P = U(t, e, "breadcrumbRender"), H = U(t, e, "contentRender");
1105
+ const B = U(t, e, "pageHeaderRender") || h.value, P = U(t, e, "breadcrumbRender"), H = U(t, e, "contentRender");
1106
1106
  return F(n(xe, {
1107
1107
  spinning: e.loading,
1108
1108
  indicator: T == null ? void 0 : T.value
@@ -1480,18 +1480,18 @@ const _n = Pe.TabPane, Gn = ae.Item, qn = /* @__PURE__ */ j({
1480
1480
  activeKey: "",
1481
1481
  contextMenuActiveKey: ""
1482
1482
  }), u = De(), {
1483
- menuData: g,
1483
+ menuData: h,
1484
1484
  flatMenuData: m,
1485
1485
  layout: w,
1486
1486
  splitMenus: p,
1487
1487
  getPrefixCls: O
1488
- } = ee(), h = O({
1488
+ } = ee(), g = O({
1489
1489
  isPor: !0,
1490
1490
  suffixCls: "multi-tab"
1491
1491
  }), {
1492
1492
  wrapSSR: T,
1493
1493
  hashId: l
1494
- } = En(h), r = Oe([]);
1494
+ } = En(g), r = Oe([]);
1495
1495
  de(r, () => {
1496
1496
  var d;
1497
1497
  (d = e.onChangeTabs) == null || d.call(e, He(X(r)));
@@ -1499,12 +1499,12 @@ const _n = Pe.TabPane, Gn = ae.Item, qn = /* @__PURE__ */ j({
1499
1499
  deep: !0
1500
1500
  });
1501
1501
  const I = b(() => w.value === "mix" && !e.isMobile && p.value), R = b(() => E(u.currentRoute.value)), v = b(() => a.value && !t.value), y = b(() => {
1502
- const d = !(I.value && X(m.value).length === 0 || g.value.length === 0 || w.value === "top");
1502
+ const d = !(I.value && X(m.value).length === 0 || h.value.length === 0 || w.value === "top");
1503
1503
  return v.value && d ? `calc(100% - ${e.collapsed ? e.collapsedWidth : e.siderWidth}px)` : "100%";
1504
- }), f = b(() => mt(`${h}-wrap`, {
1504
+ }), f = b(() => mt(`${g}-wrap`, {
1505
1505
  [`${l.value}`]: !0,
1506
- [`${h}-wrap-fixed`]: e.isFixedMultiTab,
1507
- [`${h}-wrap-loading`]: e.loading
1506
+ [`${g}-wrap-fixed`]: e.isFixedMultiTab,
1507
+ [`${g}-wrap-loading`]: e.loading
1508
1508
  })), C = b(() => {
1509
1509
  const d = {
1510
1510
  display: e.visible ? void 0 : "none"
@@ -1536,7 +1536,7 @@ const _n = Pe.TabPane, Gn = ae.Item, qn = /* @__PURE__ */ j({
1536
1536
  x.meta && x.meta.tagFixed && c(x), x.children && S(x.children);
1537
1537
  });
1538
1538
  };
1539
- de(() => g.value, (d) => {
1539
+ de(() => h.value, (d) => {
1540
1540
  S(d);
1541
1541
  }, {
1542
1542
  deep: !0,
@@ -1645,15 +1645,15 @@ const _n = Pe.TabPane, Gn = ae.Item, qn = /* @__PURE__ */ j({
1645
1645
  default: () => {
1646
1646
  var k;
1647
1647
  return [n("div", {
1648
- class: [`${h}-title`, l.value]
1648
+ class: [`${g}-title`, l.value]
1649
1649
  }, [(k = x.meta) == null ? void 0 : k.title, o.activeKey === E(x) && n(Yt, {
1650
- class: [`${h}-reload-btn`, l.value],
1650
+ class: [`${g}-reload-btn`, l.value],
1651
1651
  spin: i.value,
1652
1652
  onClick: ($) => {
1653
1653
  $.stopPropagation(), !i.value && z();
1654
1654
  }
1655
1655
  }, null), r.value.length > 1 && !D(x) && n(ut, {
1656
- class: [`${h}-close-btn`, l.value],
1656
+ class: [`${g}-close-btn`, l.value],
1657
1657
  onClick: ($) => {
1658
1658
  $.stopPropagation(), !i.value && P(E(x) || "");
1659
1659
  }
@@ -1662,7 +1662,7 @@ const _n = Pe.TabPane, Gn = ae.Item, qn = /* @__PURE__ */ j({
1662
1662
  });
1663
1663
  };
1664
1664
  return () => T(n(Q, null, [!!e.isFixedMultiTab && Ft(n("div", {
1665
- class: [`${h}-fixed`, l.value]
1665
+ class: [`${g}-fixed`, l.value]
1666
1666
  }, null), [[$t, e.visible]]), n(Pe, {
1667
1667
  hideAdd: !0,
1668
1668
  type: "editable-card",
@@ -1685,7 +1685,7 @@ const _n = Pe.TabPane, Gn = ae.Item, qn = /* @__PURE__ */ j({
1685
1685
  }, null)
1686
1686
  }, {
1687
1687
  default: () => [n(Xt, {
1688
- class: [`${h}-dropdown-menu-btn`, l.value],
1688
+ class: [`${g}-dropdown-menu-btn`, l.value],
1689
1689
  rotate: 90
1690
1690
  }, null)]
1691
1691
  })
@@ -1702,12 +1702,12 @@ const _n = Pe.TabPane, Gn = ae.Item, qn = /* @__PURE__ */ j({
1702
1702
  hashId: i,
1703
1703
  prefixCls: o,
1704
1704
  isMobile: u,
1705
- loading: g,
1705
+ loading: h,
1706
1706
  collapsed: m,
1707
1707
  siderWidth: w,
1708
1708
  isShowTabsBar: p,
1709
1709
  isFixedMultiTab: O,
1710
- onReloadPage: h,
1710
+ onReloadPage: g,
1711
1711
  onChangeTabs: T
1712
1712
  } = e;
1713
1713
  if (e.isChildrenLayout)
@@ -1719,11 +1719,11 @@ const _n = Pe.TabPane, Gn = ae.Item, qn = /* @__PURE__ */ j({
1719
1719
  return n(Q, null, [n(qn, {
1720
1720
  visible: (X(r) === "mix" ? X(l).length > 0 : !0) && p,
1721
1721
  isMobile: u,
1722
- loading: g,
1722
+ loading: h,
1723
1723
  isFixedMultiTab: O,
1724
1724
  siderWidth: w,
1725
1725
  collapsed: m,
1726
- onReloadPage: h,
1726
+ onReloadPage: g,
1727
1727
  onChangeTabs: T
1728
1728
  }, null), n(Zn, {
1729
1729
  style: a.style,
@@ -1731,10 +1731,10 @@ const _n = Pe.TabPane, Gn = ae.Item, qn = /* @__PURE__ */ j({
1731
1731
  }, {
1732
1732
  default: () => {
1733
1733
  var R;
1734
- return [g && n(cn, null, null), n("div", {
1734
+ return [h && n(cn, null, null), n("div", {
1735
1735
  class: [`${o}-content-spin-container`, i],
1736
1736
  style: {
1737
- opacity: g ? "0" : void 0
1737
+ opacity: h ? "0" : void 0
1738
1738
  }
1739
1739
  }, [(R = t.default) == null ? void 0 : R.call(t)])];
1740
1740
  }
@@ -1898,7 +1898,7 @@ const Jn = (e) => {
1898
1898
  token: o
1899
1899
  } = fe(), {
1900
1900
  getPrefixCls: u,
1901
- openKeys: g,
1901
+ openKeys: h,
1902
1902
  selectedKeys: m
1903
1903
  } = ee(), {
1904
1904
  width: w
@@ -1907,9 +1907,9 @@ const Jn = (e) => {
1907
1907
  isPor: !0
1908
1908
  }), {
1909
1909
  wrapSSR: O,
1910
- hashId: h
1910
+ hashId: g
1911
1911
  } = ne("ProGlobalHeader", [Qn], p), T = b(() => e.isMobile ? !1 : e.layout === "top" || e.layout === "mix" && e.splitMenus), l = b(() => ({
1912
- [`${h.value}`]: !0,
1912
+ [`${g.value}`]: !0,
1913
1913
  [`${p}`]: !0,
1914
1914
  [`${p}-${e.layout}`]: !0
1915
1915
  })), r = (y) => {
@@ -1926,7 +1926,7 @@ const Jn = (e) => {
1926
1926
  style: {
1927
1927
  flex: 1
1928
1928
  },
1929
- class: [`${p}-menu`, h.value]
1929
+ class: [`${p}-menu`, g.value]
1930
1930
  }, [((y = e.menuData) == null ? void 0 : y.length) > 0 && n(Te, {
1931
1931
  theme: {
1932
1932
  components: {
@@ -1949,14 +1949,14 @@ const Jn = (e) => {
1949
1949
  mode: e.mode,
1950
1950
  collapsed: e.collapsed,
1951
1951
  menuData: e.menuData,
1952
- openKeys: g.value,
1952
+ openKeys: h.value,
1953
1953
  selectedKeys: m.value,
1954
1954
  iconfontUrl: e.iconfontUrl,
1955
1955
  menuItemRender: e.menuItemRender,
1956
1956
  subMenuItemRender: e.subMenuItemRender,
1957
1957
  class: {
1958
1958
  "top-nav-menu": e.mode === "horizontal",
1959
- [`${h.value}`]: !0
1959
+ [`${g.value}`]: !0
1960
1960
  }
1961
1961
  }, {
1962
1962
  "onUpdate:openKeys": () => r("openKeys"),
@@ -1978,21 +1978,21 @@ const Jn = (e) => {
1978
1978
  var f;
1979
1979
  return (f = e.onMenuHeaderClick) == null ? void 0 : f.call(e);
1980
1980
  },
1981
- class: [`${p}-logo`, e.isMobile ? "mobile" : "", h.value]
1981
+ class: [`${p}-logo`, e.isMobile ? "mobile" : "", g.value]
1982
1982
  }, [n("a", null, [bt(e.logo)])]);
1983
1983
  return O(n("div", {
1984
1984
  class: l.value
1985
1985
  }, [e.isMobile ? n(Q, null, [ea(e.menuHeaderRender, y), e.isMobile && X(R) && n("span", {
1986
- class: `${p}-collapsed-button ${h.value}`,
1986
+ class: `${p}-collapsed-button ${g.value}`,
1987
1987
  onClick: I
1988
1988
  }, [X(R)(e.collapsed)]), v()]) : ["mix", "wide", "top"].includes(e.layout) ? n("div", {
1989
1989
  style: {
1990
1990
  width: e.layout === "wide" ? `${e.wideWidth}px` : void 0,
1991
1991
  padding: e.layout === "wide" && w.value < e.wideWidth ? "0 50px" : void 0
1992
1992
  },
1993
- class: `${p}-main ${h.value}`
1993
+ class: `${p}-main ${g.value}`
1994
1994
  }, [n("div", {
1995
- class: `${p}-main-left ${h.value}`
1995
+ class: `${p}-main-left ${g.value}`
1996
1996
  }, [n(We, q(e, {
1997
1997
  renderKey: "headerTitleRender"
1998
1998
  }), null)]), v()]) : v()]));
@@ -2014,7 +2014,7 @@ const {
2014
2014
  fixedHeader: i,
2015
2015
  headerHeight: o,
2016
2016
  layout: u,
2017
- onCollapse: g,
2017
+ onCollapse: h,
2018
2018
  splitMenus: m
2019
2019
  } = Se(e), {
2020
2020
  getPrefixCls: w,
@@ -2022,7 +2022,7 @@ const {
2022
2022
  } = ee(), O = w({
2023
2023
  suffixCls: "header",
2024
2024
  isPor: !0
2025
- }), h = w({
2025
+ }), g = w({
2026
2026
  suffixCls: "fixed-header",
2027
2027
  isPor: !0
2028
2028
  }), {
@@ -2032,12 +2032,12 @@ const {
2032
2032
  [`${l.value}`]: !0,
2033
2033
  [`${O}-${y.value}`]: !0,
2034
2034
  [`${O}`]: !0,
2035
- [`${h}`]: I.value
2035
+ [`${g}`]: I.value
2036
2036
  })), C = b(() => I.value && !a.value), F = b(() => m.value ? p.value && vn(p.value) || [] : u.value === "top" ? p.value : []), c = b(() => v.value && C.value ? `calc(100% - ${e.collapsed ? e.collapsedWidth : e.siderWidth}px)` : "100%"), S = b(() => I.value ? 0 : void 0), M = () => {
2037
2037
  const B = n(na, q(e, {
2038
2038
  theme: y.value,
2039
2039
  mode: "horizontal",
2040
- onCollapse: g.value,
2040
+ onCollapse: h.value,
2041
2041
  menuData: F.value
2042
2042
  }), {
2043
2043
  default: () => [R.value ? null : e.headerContentRender && typeof e.headerContentRender == "function" ? e.headerContentRender(e) : e.headerContentRender]
@@ -2088,15 +2088,15 @@ const {
2088
2088
  wrapSSR: i,
2089
2089
  hashId: o
2090
2090
  } = ne("ProLayout", [Wn, Kn], a), u = on(), {
2091
- token: g
2091
+ token: h
2092
2092
  } = fe(), m = b(() => {
2093
2093
  var y;
2094
- return (y = g == null ? void 0 : g.value) == null ? void 0 : y.colorPrimary;
2094
+ return (y = h == null ? void 0 : h.value) == null ? void 0 : y.colorPrimary;
2095
2095
  });
2096
2096
  Tt(() => {
2097
2097
  m.value && document.querySelector("html") && document.querySelector("html").style.setProperty("--gx-primary-color", m.value);
2098
2098
  });
2099
- const w = b(() => e.layout === "mix" || e.layout === "side" || e.layout === "wide" || !1), p = b(() => e.layout === "wide"), O = b(() => w.value), h = b(() => e.collapsed ? e.collapsedWidth : e.siderWidth), T = b(() => (e.theme || "dark").toLocaleLowerCase().includes("dark") ? "dark" : "light"), l = b(() => (u.value === "sm" || u.value === "xs") && !e.disableMobile && !p.value), r = rt({
2099
+ const w = b(() => e.layout === "mix" || e.layout === "side" || e.layout === "wide" || !1), p = b(() => e.layout === "wide"), O = b(() => w.value), g = b(() => e.collapsed ? e.collapsedWidth : e.siderWidth), T = b(() => (e.theme || "dark").toLocaleLowerCase().includes("dark") ? "dark" : "light"), l = b(() => (u.value === "sm" || u.value === "xs") && !e.disableMobile && !p.value), r = rt({
2100
2100
  position: "relative"
2101
2101
  });
2102
2102
  (e.isChildrenLayout || e.contentStyle && e.contentStyle.minHeight) && (r.minHeight = 0);
@@ -2112,7 +2112,7 @@ const {
2112
2112
  theme: T,
2113
2113
  hasContentWide: p,
2114
2114
  isMobile: l,
2115
- siderWidth: h,
2115
+ siderWidth: g,
2116
2116
  breadcrumb: R,
2117
2117
  flatMenuData: v,
2118
2118
  hasSide: w,
@@ -2211,10 +2211,10 @@ const {
2211
2211
  a("update:collapsed", m), a("collapse", m);
2212
2212
  }, u = (m) => {
2213
2213
  a("update:open-keys", m), a("openKeys", m);
2214
- }, g = (m) => {
2214
+ }, h = (m) => {
2215
2215
  a("update:selected-keys", m), a("select", m);
2216
2216
  };
2217
- return () => (console.log(e.token), n(Te, {
2217
+ return () => n(Te, {
2218
2218
  theme: e.primaryColor ? {
2219
2219
  token: {
2220
2220
  colorPrimary: e.primaryColor
@@ -2225,12 +2225,12 @@ const {
2225
2225
  token: e.token
2226
2226
  }, i.value), {
2227
2227
  default: () => [n(oa, q(Ve(e, ["onSelect", "onOpenKeys", "onCollapse"]), {
2228
- onSelect: g,
2228
+ onSelect: h,
2229
2229
  onOpenKeys: u,
2230
2230
  onCollapse: o
2231
2231
  }), t)]
2232
2232
  })]
2233
- }));
2233
+ });
2234
2234
  }
2235
2235
  }), Mt = (e, t, a) => e.map((i, o) => {
2236
2236
  var u;
@@ -2518,9 +2518,9 @@ const {
2518
2518
  title: u
2519
2519
  }, {
2520
2520
  default: () => {
2521
- var g, m;
2521
+ var h, m;
2522
2522
  return [n("div", {
2523
- class: [`${t}-block ${e.hashId}`.trim(), ((g = e.settingValue) == null ? void 0 : g.primaryColor) === o ? `${t}-block-checked` : ""],
2523
+ class: [`${t}-block ${e.hashId}`.trim(), ((h = e.settingValue) == null ? void 0 : h.primaryColor) === o ? `${t}-block-checked` : ""],
2524
2524
  style: {
2525
2525
  backgroundColor: o
2526
2526
  },
@@ -2623,7 +2623,7 @@ const da = /* @__PURE__ */ j({
2623
2623
  isPor: !0
2624
2624
  }), {
2625
2625
  wrapSSR: u,
2626
- hashId: g
2626
+ hashId: h
2627
2627
  } = ne("ProThemeEditor", [sa], o), {
2628
2628
  token: m
2629
2629
  } = fe(), w = b(() => {
@@ -2735,19 +2735,19 @@ const da = /* @__PURE__ */ j({
2735
2735
  title: "菜单文字选中颜色",
2736
2736
  disabled: ((ge = e.settingValue) == null ? void 0 : ge.theme) === "light" || ((Ee = e.settingValue) == null ? void 0 : Ee.theme) === "dark" && ["mix", "wide"].includes((Xe = e.settingValue) == null ? void 0 : Xe.layout)
2737
2737
  }];
2738
- }), h = b(() => a.value === "header" ? p.value : a.value === "sider" ? O.value : []), T = (l) => {
2738
+ }), g = b(() => a.value === "header" ? p.value : a.value === "sider" ? O.value : []), T = (l) => {
2739
2739
  var r, I;
2740
- return (I = (r = w.value) == null ? void 0 : r[a.value]) == null ? void 0 : I[l];
2740
+ return console.log(w.value), (I = (r = w.value) == null ? void 0 : r[a.value]) == null ? void 0 : I[l];
2741
2741
  };
2742
2742
  return () => {
2743
2743
  var r, I, R;
2744
2744
  let l;
2745
- return u(n("div", {
2746
- class: [o, g.value]
2745
+ return console.log(g.value), u(n("div", {
2746
+ class: [o, h.value]
2747
2747
  }, [n("h3", {
2748
- class: [`${o}-title`, g.value]
2748
+ class: [`${o}-title`, h.value]
2749
2749
  }, [te("主题编辑器"), n("div", {
2750
- class: [`${o}-sub-title`, g.value]
2750
+ class: [`${o}-sub-title`, h.value]
2751
2751
  }, [n("span", null, [(r = Bt.find((v) => {
2752
2752
  var y;
2753
2753
  return v.key === ((y = e.settingValue) == null ? void 0 : y.theme);
@@ -2759,9 +2759,9 @@ const da = /* @__PURE__ */ j({
2759
2759
  var y;
2760
2760
  return v.key === ((y = e.settingValue) == null ? void 0 : y.layout);
2761
2761
  })) == null ? void 0 : I.title])])]), n("div", {
2762
- class: [`${o}-content`, g.value]
2762
+ class: [`${o}-content`, h.value]
2763
2763
  }, [n(oe, {
2764
- class: `${o}-list ${g.value}`.trim(),
2764
+ class: `${o}-list ${h.value}`.trim(),
2765
2765
  split: !1,
2766
2766
  size: "small",
2767
2767
  renderItem: ({
@@ -2793,7 +2793,7 @@ const da = /* @__PURE__ */ j({
2793
2793
  tab: v.title
2794
2794
  }, {
2795
2795
  default: () => [n(oe, {
2796
- class: `${o}-list ${g.value}`.trim(),
2796
+ class: `${o}-list ${h.value}`.trim(),
2797
2797
  split: !1,
2798
2798
  size: "small",
2799
2799
  renderItem: ({
@@ -2807,7 +2807,7 @@ const da = /* @__PURE__ */ j({
2807
2807
  }
2808
2808
  }, [y.title])]
2809
2809
  }),
2810
- dataSource: h.value.filter((y) => !y.disabled).map((y) => ({
2810
+ dataSource: g.value.filter((y) => !y.disabled).map((y) => ({
2811
2811
  ...y,
2812
2812
  action: n(Ge, {
2813
2813
  value: T(y.key),
@@ -2875,7 +2875,7 @@ const {
2875
2875
  hashId: i
2876
2876
  } = ne("SettingsDrawOthers", [ca], t);
2877
2877
  return () => {
2878
- var u, g, m, w, p, O, h, T, l, r, I, R, v, y;
2878
+ var u, h, m, w, p, O, g, T, l, r, I, R, v, y;
2879
2879
  let o;
2880
2880
  return a(n("div", {
2881
2881
  class: [t, i.value]
@@ -2904,7 +2904,7 @@ const {
2904
2904
  dataSource: [{
2905
2905
  title: "禁用动画",
2906
2906
  action: n(st, {
2907
- checked: !((g = (u = e.settingValue) == null ? void 0 : u.animate) != null && g.disabled),
2907
+ checked: !((h = (u = e.settingValue) == null ? void 0 : u.animate) != null && h.disabled),
2908
2908
  size: "small",
2909
2909
  onChange: (f) => {
2910
2910
  var C;
@@ -2920,7 +2920,7 @@ const {
2920
2920
  width: "100px"
2921
2921
  },
2922
2922
  size: "small",
2923
- disabled: (T = (h = e.settingValue) == null ? void 0 : h.animate) == null ? void 0 : T.disabled,
2923
+ disabled: (T = (g = e.settingValue) == null ? void 0 : g.animate) == null ? void 0 : T.disabled,
2924
2924
  getPopupContainer: (f) => f && f.parentNode ? f.parentNode : f,
2925
2925
  onChange: (f) => {
2926
2926
  var C;
@@ -3030,7 +3030,7 @@ const {
3030
3030
  }), {
3031
3031
  wrapSSR: i,
3032
3032
  hashId: o
3033
- } = ne("ProSettingDraw", [la], a), u = Oe(!1), [g, m] = ve(!1), [w, p] = ve(!1), [O, h] = ve(!1), T = b(() => ot(le(e.settings, $e))), [l, r] = ln(() => ot(le(e.settings, $e)), {
3033
+ } = ne("ProSettingDraw", [la], a), u = Oe(!1), [h, m] = ve(!1), [w, p] = ve(!1), [O, g] = ve(!1), T = b(() => ot(le(e.settings, $e))), [l, r] = ln(() => ot(le(e.settings, $e)), {
3034
3034
  value: T,
3035
3035
  onChange: e.onChange
3036
3036
  }), I = b(() => e.colorList && ct(e.colorList) ? e.colorList : []), R = b(() => Sn(X(l))), {
@@ -3038,7 +3038,7 @@ const {
3038
3038
  copied: y,
3039
3039
  isSupported: f
3040
3040
  } = un();
3041
- de(g, () => {
3041
+ de(h, () => {
3042
3042
  u.value || (u.value = !0);
3043
3043
  });
3044
3044
  const C = (c, S, M) => {
@@ -3064,8 +3064,8 @@ const {
3064
3064
  }), () => i(n(pe, {
3065
3065
  width: 300,
3066
3066
  closable: !1,
3067
- open: g.value,
3068
- rootClassName: `${a} ${o.value} ${g.value && `${a}-show`} ${!u.value && `${a}-trantion-none`}`,
3067
+ open: h.value,
3068
+ rootClassName: `${a} ${o.value} ${h.value && `${a}-show`} ${!u.value && `${a}-trantion-none`}`,
3069
3069
  placement: "right",
3070
3070
  rootStyle: {
3071
3071
  zIndex: 999
@@ -3076,8 +3076,8 @@ const {
3076
3076
  onClose: () => m(!1),
3077
3077
  handle: n("div", {
3078
3078
  class: [`${a}-handle`, o.value],
3079
- onClick: () => m(!g.value)
3080
- }, [g.value ? n(ut, {
3079
+ onClick: () => m(!h.value)
3080
+ }, [h.value ? n(ut, {
3081
3081
  style: at
3082
3082
  }, null) : n(_t, {
3083
3083
  style: at
@@ -3151,7 +3151,7 @@ const {
3151
3151
  style: {
3152
3152
  fontSize: "12px"
3153
3153
  },
3154
- onClick: () => h(!0)
3154
+ onClick: () => g(!0)
3155
3155
  }, [te("更多配置")])])
3156
3156
  }, {
3157
3157
  default: () => [ha.map(({
@@ -3216,7 +3216,7 @@ const {
3216
3216
  bodyStyle: {
3217
3217
  padding: 0
3218
3218
  },
3219
- onClose: () => h(!1)
3219
+ onClose: () => g(!1)
3220
3220
  }, {
3221
3221
  default: () => [n(ma, {
3222
3222
  settingValue: l.value,
@@ -4532,17 +4532,17 @@ const $i = /* @__PURE__ */ j({
4532
4532
  } = di(a), u = (p, O) => {
4533
4533
  if (p.length === 0 || p === "x" || p === "y")
4534
4534
  return p;
4535
- let h = O.indexOf(p);
4536
- return h = h % 2 === 1 ? h - 1 : h + 1, O[h];
4537
- }, g = (p) => {
4535
+ let g = O.indexOf(p);
4536
+ return g = g % 2 === 1 ? g - 1 : g + 1, O[g];
4537
+ }, h = (p) => {
4538
4538
  const O = Ae.preset.find((l) => e.name === l.name);
4539
4539
  if (O === void 0)
4540
4540
  return "";
4541
- let h = "";
4542
- e.direction === void 0 ? h = O.directions[0] : h = O.directions.find((l) => l === e.direction) || "", h = h === void 0 || h === "default" ? "" : h, h !== "" && (h = p && e.reverse ? u(h, O.directions) : h, h = h[0].toUpperCase() + h.substring(1));
4541
+ let g = "";
4542
+ e.direction === void 0 ? g = O.directions[0] : g = O.directions.find((l) => l === e.direction) || "", g = g === void 0 || g === "default" ? "" : g, g !== "" && (g = p && e.reverse ? u(g, O.directions) : g, g = g[0].toUpperCase() + g.substring(1));
4543
4543
  const T = p ? "Out" : "In";
4544
- return O.name + T + h;
4545
- }, m = b(() => [g(!1), `${a}-enter`, o.value].join(" ")), w = b(() => [g(!0), `${a}-leave`, o.value].join(" "));
4544
+ return O.name + T + g;
4545
+ }, m = b(() => [h(!1), `${a}-enter`, o.value].join(" ")), w = b(() => [h(!0), `${a}-leave`, o.value].join(" "));
4546
4546
  return () => {
4547
4547
  var p;
4548
4548
  return e.disabled ? (p = t.default) == null ? void 0 : p.call(t) : i(n(Pt, {
@@ -1 +1 @@
1
- (function(O,t){typeof exports=="object"&&typeof module<"u"?t(exports,require("vue"),require("ant-design-vue"),require("@gx-design-vue/pro-app"),require("vue-router"),require("@ant-design/icons-vue"),require("@gx-design-vue/pro-utils"),require("@gx-design-vue/pro-provider"),require("vue-types"),require("lodash-es"),require("@gx-design-vue/pro-watermark"),require("@gx-design-vue/pro-hooks"),require("dayjs"),require("@vueuse/core"),require("@gx-design-vue/scrollbar"),require("@gx-design-vue/color-picker")):typeof define=="function"&&define.amd?define(["exports","vue","ant-design-vue","@gx-design-vue/pro-app","vue-router","@ant-design/icons-vue","@gx-design-vue/pro-utils","@gx-design-vue/pro-provider","vue-types","lodash-es","@gx-design-vue/pro-watermark","@gx-design-vue/pro-hooks","dayjs","@vueuse/core","@gx-design-vue/scrollbar","@gx-design-vue/color-picker"],t):(O=typeof globalThis<"u"?globalThis:O||self,t(O.ProLayout={},O.vue,O.antDesignVue,O.proApp,O.vueRouter,O.iconsVue,O.proUtils,O.ProConfigProvider,O.vueTypes,O.lodashEs,O.proWatermark,O.proHooks,O.dayjs,O.core,O.GScrollbars,O.colorPicker))})(this,function(O,t,p,fe,oe,Z,$,i,lt,J,it,te,rt,Se,dt,we){"use strict";const Ne=t.defineComponent({name:"PageLoading",props:{...p.Spin.props},setup(e){const{indicator:a}=fe.useProAppContext();return t.createVNode("div",{style:{paddingTop:"100px",textAlign:"center"}},[t.createVNode(p.Spin,t.mergeProps(e,{indicator:a==null?void 0:a.value}),null)])}}),D=lt.createTypes({func:void 0,bool:void 0,string:void 0,number:void 0,array:void 0,object:void 0,integer:void 0});D.extend([{name:"looseBool",getter:!0,type:Boolean,default:void 0},{name:"style",getter:!0,type:[String,Object],default:void 0},{name:"VueNode",getter:!0,type:null}]);const P={theme:{type:String,default:i.themeConfig.theme},layout:{type:String,default:i.themeConfig.layout},wideWidth:{type:Number,default:i.themeConfig.wideWidth},splitMenus:{type:Boolean,default:i.themeConfig.splitMenus},fixedMultiTab:{type:Boolean,default:i.themeConfig.fixedMultiTab},showProgressBar:{type:Boolean,default:i.themeConfig.showProgressBar},fixedHeader:{type:Boolean,default:i.themeConfig.fixedHeader},fixSiderbar:{type:Boolean,default:i.themeConfig.fixSiderbar},showTabsBar:{type:Boolean,default:i.themeConfig.showTabsBar},showFullScreen:{type:Boolean,default:i.themeConfig.showFullScreen},autoHideHeader:{type:Boolean,default:i.themeConfig.autoHideHeader},headerHeight:{type:Number,default:i.themeConfig.headerHeight},title:{type:String,default:i.themeConfig.title},iconfontUrl:{type:String,default:i.themeConfig.iconfontUrl},animate:{type:Object,default:i.themeConfig.animate},primaryColor:{type:String,default:i.themeConfig.primaryColor}},ee={renderKey:D.string.def("menuHeaderRender"),title:P.title,layout:P.layout,logo:{type:[Object,String,Function],default:()=>{}},logoStyle:{type:Object,default:()=>{}},logoDirection:{type:String,default:"horizontal"},drawer:D.looseBool,collapsed:D.looseBool,menuHeaderRender:{type:[Object,Function],default:()=>{}},onMenuHeaderClick:Function},ae={...P,mode:{type:String,default:"inline"},menuData:{type:Array,default:()=>[]},theme:{type:String,default:"dark"},layout:{type:String,default:"mix"},collapsed:{type:Boolean,default:()=>!1},openKeys:{type:[Array,Boolean],default:()=>[]},selectedKeys:{type:Array,default:()=>[]},menuProps:{type:Object,default:()=>null},menuItemRender:{type:[Function,Boolean],default:()=>{}},subMenuItemRender:{type:[Function,Boolean],default:()=>{}},onClick:[Function,Object],onOpenKeys:{type:Function},onSelect:{type:Function}},G={...P,...ae,menuLoading:D.looseBool,logo:ee.logo,logoStyle:ee.logoStyle,logoDirection:ee.logoDirection,siderWidth:D.number.def(208),headerHeight:D.number.def(48),collapsedWidth:D.number.def(48),links:{type:[Function,Object,Array],default:()=>{}},menuHeaderRender:{type:[Function,Object],default:()=>{}},menuFooterRender:{type:[Function,Object,Boolean],default:()=>!1},menuContentRender:{type:[Function,Object,Boolean],default:()=>!1},menuExtraRender:{type:[Function,Object,Boolean],default:()=>!1},collapsedButtonRender:{type:[Function,Object,Boolean],default:()=>{}},breakpoint:{type:[Object,Boolean],default:()=>!1},isMobile:D.looseBool,matchMenuKeys:{type:Array,default:()=>[]},onMenuHeaderClick:D.func,onMenuClick:D.func,onCollapse:{type:Function}},ct=/(((^https?:(?:\/\/)?)(?:[-;:&=+$,\w]+@)?[A-Za-z0-9.-]+(?::\d+)?|(?:www.|[-;:&=+$,\w]+@)[A-Za-z0-9.-]+)((?:\/[+~%/.\w-]*)?\??[-+=&;%@.\w]*#?\w*))$/,Ie=e=>ct.test(e);function st(e){return/\w.(png|jpg|jpeg|svg|webp|gif|bmp)$/i.test(e)}function Me(e,a,n,l){var c,h,m,w,b,B,g,L,r,d,I,F,x,y,f,S,V,u,N,M,k,K,j,A,z,W,Y,q,X,_,s,C,R,T;const o={...e};return n==="light"?(o.colorItemBg=(h=(c=a.layout)==null?void 0:c[l])==null?void 0:h.colorBgMenu,o.colorSubItemBg=(w=(m=a.layout)==null?void 0:m[l])==null?void 0:w.colorSubItemBg,o.colorItemBgSelected=(B=(b=a.layout)==null?void 0:b[l])==null?void 0:B.colorBgMenuItemSelected,o.colorItemBgSelectedHorizontal=(L=(g=a.layout)==null?void 0:g[l])==null?void 0:L.colorBgMenuItemSelected,o.colorItemText=(d=(r=a.layout)==null?void 0:r[l])==null?void 0:d.colorTextMenu,o.colorItemTextHover=(F=(I=a.layout)==null?void 0:I[l])==null?void 0:F.colorTextMenuHover,o.colorItemTextSelected=(y=(x=a.layout)==null?void 0:x[l])==null?void 0:y.colorTextMenuSelected,o.colorItemTextSelectedHorizontal=(S=(f=a.layout)==null?void 0:f[l])==null?void 0:S.colorTextMenuSelected,l==="sider"&&(o.colorItemBgHover=(u=(V=a.layout)==null?void 0:V[l])==null?void 0:u.colorBgMenuItemHover)):n==="dark"&&(o.colorItemBg=(M=(N=a.layout)==null?void 0:N[l])==null?void 0:M.colorDarkBgMenu,o.colorSubItemBg=(K=(k=a.layout)==null?void 0:k[l])==null?void 0:K.colorDarkSubItemBg,o.colorItemBgSelected=(A=(j=a.layout)==null?void 0:j[l])==null?void 0:A.colorDarkBgMenuItemSelected,o.colorItemBgSelectedHorizontal=(W=(z=a.layout)==null?void 0:z[l])==null?void 0:W.colorDarkBgMenuItemSelected,o.colorItemText=(q=(Y=a.layout)==null?void 0:Y[l])==null?void 0:q.colorDarkTextMenu,o.colorItemTextHover=(_=(X=a.layout)==null?void 0:X[l])==null?void 0:_.colorDarkTextMenuHover,o.colorItemTextSelected=(C=(s=a.layout)==null?void 0:s[l])==null?void 0:C.colorDarkTextMenuSelected,o.colorItemTextSelectedHorizontal=(T=(R=a.layout)==null?void 0:R[l])==null?void 0:T.colorDarkTextMenuSelected,l==="header"&&(o.colorActiveBarHeight=0)),o}const ut=["left","right"],ne=["left","right","down","up"],mt=["downBig","upBig","leftBig","rightBig"],ft=["topLeft","bottomRight","topRight","bottomLeft"],ht=["downLeft","upRight","downRight","upLeft"],he={preset:[{name:"back",alias:"渐近",directions:ne},{name:"bounce",alias:"弹跳",directions:ne.concat("default")},{name:"fade",alias:"淡化",directions:ne.concat(mt).concat(ft).concat("default")},{name:"flip",alias:"翻转",directions:["x","y"]},{name:"lightSpeed",alias:"光速",directions:ut},{name:"rotate",alias:"旋转",directions:ht.concat("default")},{name:"roll",alias:"翻滚",directions:["default"]},{name:"zoom",alias:"缩放",directions:ne.concat("default")},{name:"slide",alias:"滑动",directions:ne}]};function ke(e){return e.map(a=>{var l;const n={...a};if((l=n.meta)!=null&&l.hideInMenu)return null;if(n&&(n!=null&&n.children)){if(n.children.some(o=>{var c;return o&&!((c=o.meta)!=null&&c.hideInMenu)}))return{...n,children:ke(n.children)};delete n.children}return n}).filter(a=>a)}function Be(e){return e.map(a=>{var l;const n={...a};return(l=n.meta)!=null&&l.hideInMenu?null:(n.linkPath=Fe(n.children||[]),n.children&&delete n.children,n)}).filter(a=>a)}function Oe(e,a){const n=(a||"").split("/").length===2?a||"":`/${(a||"").split("/")[1]}`,l=e.find(o=>o.path===n);return a===void 0?[]:(l==null?void 0:l.children)||[]}function Fe(e){let a="";const n=function(o){let c="";return o.children&&o.children.length>0?c=n(o.children[0]):c=o.path,c},l=e==null?void 0:e.filter(o=>!o.hidden);if(l.length>0&&l[0].children&&l[0].children.length>0)a=n(l[0].children[0]);else{const o=l.length>0?l[0]:void 0;a=(o==null?void 0:o.path)||""}return a}function gt(e,a){var l,o;const n=((o=(l=e.find(c=>c.path===a))==null?void 0:l.meta)==null?void 0:o.key)||"";if(n){const c=[],h=n.split("-");for(let m=0;m<h.length;m+=1)c.push(J.cloneDeep(h).splice(0,m+1).join("-"));return e.filter(m=>c.some(w=>{var b;return w===((b=m==null?void 0:m.meta)==null?void 0:b.key)||""}))}return[]}function Re(e){return e.layout==="mix"&&(e.fixSiderbar=!0,e.fixedHeader=!0,e.splitMenus=!0),e.layout==="top"&&(e.fixSiderbar=!1,e.fixedHeader=!0,e.splitMenus=!1),e.layout==="simple"&&(e.splitMenus=!1,e.showTabsBar=!1),e.layout==="side"&&(e.splitMenus=!1),e.layout==="wide"&&(e.splitMenus=!1,e.fixSiderbar=!1,e.fixedHeader=!0,e.showTabsBar=!1,e.fixedMultiTab=!1),{...e}}function yt(e){const a=["showTabsBar","fixedMultiTab","fixSiderbar","fixedHeader","splitMenus"];let l=Object.keys(e).reduce((o,c)=>(o[c]=!1,o),{});return l=bt(l,a),e.layout==="mix"&&(l.fixSiderbar=!0,l.fixedHeader=!0),e.layout==="side"&&(l.splitMenus=!0),e.layout==="simple"&&(l.splitMenus=!0,l.fixedHeader=!0,l.showTabsBar=!0,l.fixedMultiTab=!0),e.layout==="wide"&&(l.splitMenus=!0,l.fixedHeader=!0,l.fixSiderbar=!0,l.showTabsBar=!0,l.fixedMultiTab=!0),l}function bt(e,a){return{...a.reduce((n,l)=>({...n,[l]:e[l]}),{})}}const Ve=(e=Symbol(),a="Context.Provider")=>t.defineComponent({name:a,props:{value:{type:Object,required:!0}},setup(l,{slots:o}){return t.provide(e,t.readonly(l.value)),()=>{var c;return(c=o.default)==null?void 0:c.call(o)}}}),Te=(e=Symbol(),a)=>t.inject(e,a||{}),ge=Symbol("pro-layout-context"),$e=()=>Ve(ge,"ProLayoutContext.Provider"),Le=e=>{t.provide(ge,e)},Q=()=>Te(ge);$e();function Ke(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!t.isVNode(e)}const le=e=>{const{icon:a,iconType:n,iconfontUrl:l}=e;if(!a)return null;if(typeof a=="string"&&a!==""){if(Ie(a)||st(a))return t.createVNode("img",{src:a,alt:"icon",class:`${e.className}-icon-image`},null);if(n===1){const c=Z.createFromIconfontCN({scriptUrl:l||i.themeConfig.iconfontUrl});return l?t.createVNode(c,{type:a},null):t.createVNode("i",{class:`iconfont ${a} ${e.className}-icon`},null)}}if(t.isVNode(a))return a;const o=t.resolveComponent(a);return typeof le=="function"&&t.createVNode(o,null,null)||null};le.props={icon:{type:[String,Function,Object]},iconType:Number,className:String,iconfontUrl:String};const ye=t.defineComponent({name:"BaseMenu",props:ae,setup(e){const a=oe.useRouter(),{getPrefixCls:n}=Q(),l=n({suffixCls:"menu-item",isPor:!0}),o=r=>{var d;(d=e.onOpenKeys)==null||d.call(e,r)},c=r=>{var d;(d=e.onSelect)==null||d.call(e,r.selectedKeys)},h=r=>{var d;(d=e.onClick)==null||d.call(e,...r)},m=(r,d)=>{var x;const I=r.target||"",F=Ie(I);((x=a.currentRoute.value)==null?void 0:x.fullPath)!==d.to&&F&&I&&r.targetStatus===1&&window.open(I)},w=t.resolveComponent("router-link"),b=r=>{var S,V,u,N,M;const d={...r.meta},I=d.targetStatus===1&&d.target?"a":w,F={to:r.linkPath||r.path||""},x=(S=r.meta)==null?void 0:S.title,y=(V=r.meta)!=null&&V.icon?t.createVNode(I,t.mergeProps(F,{class:"gx-pro-sider-menu-item",onClick:()=>m(d,F)}),{default:()=>[t.createVNode("span",{class:"gx-pro-sider-menu-item-title"},[x])]}):t.createVNode(I,t.mergeProps(F,{class:"gx-pro-sider-menu-item",onClick:()=>m(d,F)}),{default:()=>[t.createVNode("span",null,[x])]}),f=((u=r.meta)==null?void 0:u.icon)&&t.createVNode(le,{className:l,icon:(N=r.meta)==null?void 0:N.icon,iconfontUrl:e.iconfontUrl,iconType:(M=r.meta)==null?void 0:M.iconType},null)||void 0;return[y,f]},B=r=>{var F,x,y,f,S,V,u,N,M;if(Array.isArray(r.children)&&r.children.length>0&&!((F=r==null?void 0:r.meta)!=null&&F.hideInMenu)&&!((x=r==null?void 0:r.meta)!=null&&x.hideChildrenInMenu)){let k;if(e.subMenuItemRender)return e.subMenuItemRender({item:r,children:g(r.children)});const K=(y=r.meta)==null?void 0:y.title,j=(f=r.meta)!=null&&f.icon?t.createVNode("span",{class:"gx-pro-sider-menu-item"},[t.createVNode("span",{class:"gx-pro-sider-menu-item-title"},[K])]):t.createVNode("span",{class:"gx-pro-sider-menu-item"},[K]),A=((S=r.meta)==null?void 0:S.type)==="group",z=A?p.Menu.ItemGroup:p.Menu.SubMenu;return t.createVNode(z,{title:j,key:r.path,icon:A?null:t.createVNode(le,{className:l,icon:(V=r.meta)==null?void 0:V.icon,iconfontUrl:e.iconfontUrl,iconType:(u=r.meta)==null?void 0:u.iconType},null)},Ke(k=g(r.children))?k:{default:()=>[k]})}const[d,I]=b(r);return e.menuItemRender&&e.menuItemRender({item:r,title:d,icon:I})||t.createVNode(p.Menu.Item,{disabled:(N=r.meta)==null?void 0:N.disabled,danger:(M=r.meta)==null?void 0:M.danger,key:r.path,icon:I},Ke(d)?d:{default:()=>[d]})};function g(r=[]){return r.map(d=>B(d)).filter(d=>d)}const L=t.computed(()=>g(e.menuData));return()=>t.createVNode(p.Menu,t.mergeProps({key:"Menu",inlineIndent:16,mode:e.mode,theme:e.theme,openKeys:e.openKeys===!1?[]:$.isArray(e.openKeys)?e.openKeys:[],selectedKeys:e.selectedKeys||[],onOpenChange:r=>o(r),onSelect:c,onClick:h},e.menuProps),{default:()=>[L.value]})}}),De=new i.Keyframe("pro-layout-title-hide",{"0%":{display:"none",opacity:0},"99%":{display:"none",opacity:0},"100%":{display:"block",opacity:1}}),pt=e=>{const a=`${e.antCls}-menu`;return{[`${e.proComponentsCls}-basic-layout`]:{[`${a}${a}-root`]:{[`${a}-item a`]:{transition:"none"}}}}},xt=e=>{var a,n,l,o,c,h,m,w,b,B,g,L;return{[`${e.proComponentsCls}-basic-layout`]:{[`&${e.proComponentsCls}-basic-layout-wide`]:{[e.componentCls]:{position:"sticky",zIndex:100,borderRadius:e.borderRadiusSM}},[e.componentCls]:{position:"relative",borderRight:0,background:(n=(a=e.layout)==null?void 0:a.sider)==null?void 0:n.colorDarkBgMenu,zIndex:9,"&-menu":{position:"relative",zIndex:10,minHeight:"100%","&-icon":{verticalAlign:"unset"}},[`& ${e.antCls}-layout-sider-children`]:{position:"relative",display:"flex",flexDirection:"column",height:"100%"},"&-light":{background:(o=(l=e.layout)==null?void 0:l.sider)==null?void 0:o.colorBgMenu,boxShadow:"2px 0 8px 0 rgba(29,35,41,.05)",[`${e.componentCls}-footer`]:{color:(h=(c=e.layout)==null?void 0:c.sider)==null?void 0:h.colorTextMenu}},"&-links":{width:"100%",borderTop:"1px solid rgba(0,0,0,.06)",ul:{height:"auto"}},"&-link-menu":{border:"none",boxShadow:"none",background:"transparent"},"&-footer":{color:(w=(m=e.layout)==null?void 0:m.sider)==null?void 0:w.colorDarkTextMenu,paddingBlockEnd:16,fontSize:e.fontSize,animationName:De,animationDuration:".4s",animationTimingFunction:"ease"}},[`${e.componentCls}${e.componentCls}-fixed`]:{position:"fixed",insetBlockStart:0,insetInlineStart:0,zIndex:"100",height:"100%","&-mix":{height:`calc(100% - ${((B=(b=e.layout)==null?void 0:b.header)==null?void 0:B.heightLayoutHeader)||i.themeConfig.headerHeight}px)`,insetBlockStart:`${((L=(g=e.layout)==null?void 0:g.header)==null?void 0:L.heightLayoutHeader)||i.themeConfig.headerHeight}px`}}}}},Ct=e=>({[`${e.proComponentsCls}-basic-layout`]:{[`${e.antCls}-menu`]:{[`${e.proComponentsCls}-menu-item-icon${e.antCls}-menu-item-icon`]:{verticalAlign:"unset",lineHeight:1}}}}),St=e=>({[`${e.proComponentsCls}-sider`]:{"&-light":{[`${e.proComponentsCls}-sider-logo`]:{h1:{color:e.colorPrimary}}},"&-logo":{position:"relative",display:"flex",alignItems:"center",justifyContent:"space-between",padding:"16px 8px",cursor:"pointer",transition:"padding .3s cubic-bezier(.645,.045,.355,1)","> a":{display:"flex",alignItems:"center",justifyContent:"center",maxHeight:32,"> img":{display:"inline-block",height:32,verticalAlign:"middle"},"> h1":{display:"inline-block",lineHeight:"32px",marginBlock:0,marginInlineEnd:0,marginInlineStart:12,color:e.colorWhite,animationName:De,animationDuration:".2s",fontWeight:600,fontSize:18,overflow:"hidden",verticalAlign:"middle"}},"&-collapsed":{flexDirection:"column-reverse",margin:0,padding:12,[`${e.proComponentsCls}-layout-apps-icon`]:{marginBlockEnd:8,fontSize:16,transition:"font-size 0.2s ease-in-out,color 0.2s ease-in-out"}}},[`&${e.antCls}-layout-sider-collapsed`]:{[`${e.proComponentsCls}-sider-logo`]:{padding:"16px 8px"}}}}),ze=(e,a)=>e?typeof e=="string"?t.createVNode("img",{src:e,alt:"logo",style:a},null):typeof e=="function"?e():e:null,wt=(e,a="menuHeaderRender")=>{const{logo:n,logoStyle:l,title:o,layout:c}=e,h=e[a||""];if(h===!1)return null;const m=ze(n,l),w=o&&t.createVNode("h1",null,[o]);return typeof h=="function"?h(m,e.collapsed?null:w,e):t.createVNode(t.Fragment,null,[m||null,e.collapsed&&c==="side"?null:w])},be=t.defineComponent({name:"LogoContent",props:ee,setup(e){const{getPrefixCls:a}=Q(),n=t.computed(()=>e.layout==="side"||e.layout==="simple"),l=t.computed(()=>a({suffixCls:n.value||e.drawer?"sider":"global-header",isPor:!0})),{wrapSSR:o,hashId:c}=i.useProStyle("ProLayoutLogo",[St]),h=t.computed(()=>wt(e,e.renderKey));return()=>o(t.createVNode("div",{id:"logo",class:{[`${c.value}`]:!0,[`${l.value}-logo`]:!0,[`${l.value}-logo-collapsed`]:!!e.collapsed},onClick:()=>{var m;return(m=e.onMenuHeaderClick)==null?void 0:m.call(e)}},[t.createVNode("a",null,[h.value||null])]))}});be.inheritAttrs=!1;function Nt(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!t.isVNode(e)}const{Sider:It}=p.Layout,{Item:He}=p.Menu,Ae=e=>e?t.createVNode(Z.MenuUnfoldOutlined,null,null):t.createVNode(Z.MenuFoldOutlined,null,null),je=t.defineComponent({props:G,inheritAttrs:!1,setup(e){const{getPrefixCls:a,selectedKeys:n,flatMenuData:l,menuData:o,openKeys:c}=Q(),{indicator:h}=fe.useProAppContext(),{token:m}=i.useProConfigContext(),{theme:w,layout:b,isMobile:B,menuLoading:g,breakpoint:L,fixSiderbar:r,collapsed:d,siderWidth:I,collapsedWidth:F,menuExtraRender:x,menuContentRender:y,menuFooterRender:f,collapsedButtonRender:S,links:V}=t.toRefs(e),u=a({suffixCls:"sider",isPor:!0}),{wrapSSR:N,hashId:M}=i.useProStyle("ProLayoutSiderMenu",[pt,xt,Ct],u),k=t.computed(()=>e.layout==="wide"),K=t.computed(()=>e.layout==="mix"&&!e.isMobile&&e.splitMenus),j=t.computed(()=>b.value==="side"||b.value==="simple"),A=t.computed(()=>(e.layout==="mix"||k.value)&&"light"||w.value),z=t.computed(()=>b.value==="top"?[]:o.value),W=t.computed(()=>e.collapsed?e.collapsedWidth:e.siderWidth),Y=t.computed(()=>[M.value,u,B.value?"shadow":null,`${u}-${A.value}`,r.value&&e.layout!=="wide"?`${u}-fixed`:null]),q=t.computed(()=>{var s;return typeof V.value=="function"?(s=V.value)==null?void 0:s.call(V):V.value}),X=t.computed(()=>S.value!==!1?S.value||Ae:!1),_=s=>{var C;if(e.onSelect){if(t.unref(K)){e.onSelect([(C=n==null?void 0:n.value)==null?void 0:C[0],...s]);return}e.onSelect(s)}};return()=>{var T;const s=j.value?t.createVNode(be,t.mergeProps({drawer:B.value},e),null):null,C=x.value&&((T=x.value)==null?void 0:T.call(x,e)),R=t.createVNode(ye,{class:`${u}-menu ${M.value}`,theme:A.value,mode:"inline",menuData:K.value?l.value:z.value,iconfontUrl:e.iconfontUrl,openKeys:c.value,selectedKeys:n.value,menuItemRender:e.menuItemRender,subMenuItemRender:e.subMenuItemRender,onClick:e.onMenuClick,style:{width:"100%"},onOpenKeys:H=>{var U;return e.onOpenKeys&&((U=e.onOpenKeys)==null?void 0:U.call(e,H))},onSelect:_},null);return K.value&&t.unref(l.value).length===0||z.value.length===0?null:N(t.createVNode(p.ConfigProvider,{theme:{components:{Menu:Me({radiusItem:4,colorActiveBarWidth:0,colorActiveBarHeight:0,colorActiveBarBorderSize:0},(m==null?void 0:m.value)||{},A.value,"sider")}}},{default:()=>[r.value&&t.createVNode("div",{style:{width:`${W.value}px`,overflow:"hidden",flex:`0 0 ${W.value}px`,maxWidth:`${W.value}px`,minWidth:`${W.value}px`,transition:"background-color 0.2s, min-width 0.2s, max-width 0.2s"}},null),t.createVNode(It,{collapsible:!0,trigger:null,class:Y.value,style:{overflow:"hidden",zIndex:r.value?101:void 0,paddingTop:j.value||e.isMobile||k.value?0:`${e.headerHeight}px`,top:e.layout==="wide"?`${e.headerHeight+20}px`:void 0,height:e.layout==="wide"?`calc(100vh - ${e.headerHeight+20*2}px)`:void 0},theme:A.value,breakpoint:L.value||void 0,collapsed:d.value,width:I.value,collapsedWidth:F.value},{default:()=>{var H,U;return[g.value&&t.createVNode("div",{class:["gx-pro-sider-loading",M.value]},[t.createVNode(p.Spin,{spinning:g.value,indicator:h==null?void 0:h.value},null)]),s||null,C&&!e.collapsed&&t.createVNode("div",{class:{[`${M.value}`]:!0,[`${u}-extra`]:!0,[`${u}-extra-no-logo`]:!s}},[C]),t.createVNode("div",{style:{flex:"1 1 0%",overflow:"hidden auto"}},[y.value&&((H=y.value)==null?void 0:H.call(y,e,R))||R]),e.layout!=="wide"&&t.createVNode("div",{class:`${u}-links ${M.value}`},[t.createVNode(p.Menu,{theme:A.value,inlineIndent:16,class:`${u}-link-menu ${M.value}`,selectedKeys:[],openKeys:[],mode:"inline"},{default:()=>[(q.value||[]).map((v,me)=>t.createVNode(He,{class:`${u}-link ${M.value}`,key:me},Nt(v)?v:{default:()=>[v]})),X.value&&!B.value&&t.createVNode(He,{class:`${u}-collapsed-button ${M.value}`,title:!1,key:"collapsed",onClick:()=>{var v;e.onCollapse&&((v=e.onCollapse)==null||v.call(e,!d.value))}},{default:()=>{var v;return[(v=X.value)==null?void 0:v.call(X,d.value)]}})]})]),f.value&&t.createVNode("div",{class:`${u}-footer ${M.value}`},[(U=f.value)==null?void 0:U.call(f,e)])]}})]}))}}}),ie=t.defineComponent({name:"SiderMenuWrapper",inheritAttrs:!1,props:{...G,matchMenuKeys:{type:Array,default:()=>[]}},setup(e){return()=>t.createVNode(t.Fragment,null,[e.isMobile?t.createVNode(p.Drawer,{maskClosable:!0,open:!e.collapsed,closable:!1,placement:"left",style:{padding:0,height:"100vh"},getContainer:!1,onClose:()=>e.onCollapse&&e.onCollapse(!0),width:e.siderWidth,bodyStyle:{height:"100vh",padding:0,display:"flex",flexDirection:"row"}},{default:()=>[t.createVNode(je,t.mergeProps(e,{collapsed:e.isMobile?!1:e.collapsed}),null)]}):t.createVNode(je,e,null)])}}),We={usePageCard:{type:Boolean,default:()=>{}},pageCardProps:Object,pageContentStyle:D.style,pageChildrenContentStyle:D.style,waterMarkProps:{type:Object},waterMark:D.bool.def(!0),pageHeaderRender:{type:[Object,Function,Boolean],default:()=>{}}},re={pageChildrenExtraRender:{type:[Object,Function,Boolean],default:()=>{}},contentRender:{type:[Object,Function,Boolean],default:()=>{}},breadcrumbRender:{type:[Object,Function,Boolean],default:()=>{}},pageHeaderStyle:D.style,loading:D.bool.def(!1),...We},Mt=e=>({[e.componentCls]:{background:e.colorBgContainer,padding:`${e.paddingLG}px`,"&-has-breadcrumb":{paddingBlock:`${e.paddingSM}px`},"&-content":{marginTop:"8px"}}}),kt=t.defineComponent({name:"ProPageHeader",props:{content:re.contentRender,breadcrumb:re.breadcrumbRender},setup(e){const{breadcrumb:a,getPrefixCls:n}=Q(),l=n({isPor:!0,suffixCls:"page-header"}),{wrapSSR:o,hashId:c}=i.useProStyle("ProPageHeader",[Mt],l),h=t.computed(()=>{var m;return{...a.value,itemRender:((m=a.value)==null?void 0:m.itemRender)||(({route:w})=>w.path?t.createVNode(oe.RouterLink,{to:w.path},{default:()=>[w.breadcrumbName]}):w.breadcrumbName)}});return()=>{var m,w;return o(t.createVNode("div",{class:[`${l}`,c.value,`${l}-has-breadcrumb`]},[e.breadcrumb?(m=e.breadcrumb)==null?void 0:m.call(e,h.value):t.createVNode(p.Breadcrumb,h.value,null),e.content&&t.createVNode("div",{class:[`${l}-content`,c.value]},[(w=e.content)==null?void 0:w.call(e)])]))}}}),Bt=e=>{var a,n,l,o,c,h,m,w;return{[`${e.proComponentsCls}-basic-layout`]:{[e.componentCls]:{marginInline:-(((n=(a=e.layout)==null?void 0:a.pageContainer)==null?void 0:n.paddingBlockPageContainerContent)??24),marginBlockStart:-(((o=(l=e.layout)==null?void 0:l.pageContainer)==null?void 0:o.paddingBlockPageContainerContent)??24)},[e.gridContent]:{width:"100%"}},[e.componentCls]:{"&-children-content":{marginInline:((h=(c=e.layout)==null?void 0:c.pageContainer)==null?void 0:h.marginInlinePageContainerContent)??24,marginBlockStart:((w=(m=e.layout)==null?void 0:m.pageContainer)==null?void 0:w.marginBlockPageContainerContent)??24,padding:"inherit"}}}};function Ot(e){return i.useStyle("ProPageContainter",a=>{const n=i.mergeToken(a,{gridContent:`${a.proComponentsCls}-grid-content`});return[Bt(n)]},e)}function Ft(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!t.isVNode(e)}const Rt=t.defineComponent({inheritAttrs:!1,name:"GProPageContainer",props:re,setup(e,{slots:a,attrs:n}){const{getPrefixCls:l,hasContentWide:o,waterMark:c,pageHeaderRender:h,pageContentStyle:m,pageChildrenContentStyle:w,pageCardProps:b,usePageCard:B,waterMarkProps:g}=Q(),{indicator:L}=fe.useProAppContext(),r=i.useProConfigContext(),d=l({suffixCls:"page-container",isPor:!0}),I=l({suffixCls:"grid-content",isPor:!0}),F=t.computed(()=>e.pageCardProps||b.value),x=t.computed(()=>e.waterMarkProps||g.value||{}),y=t.computed(()=>e.pageContentStyle||m.value),f=t.computed(()=>e.pageChildrenContentStyle||w.value||{}),S=t.computed(()=>$.isBoolean(e.usePageCard)?e.usePageCard:$.isBoolean(B.value)?B.value:!0),{wrapSSR:V,hashId:u}=Ot(d),N=()=>{var K,j,A,z,W,Y;const k=$.getSlot(a,e,"pageChildrenExtraRender");return t.createVNode("div",{class:`${d}-children-content ${u.value}`,style:f.value},[k&&(k==null?void 0:k()),S.value?t.createVNode(p.Card,t.mergeProps(F.value?J.pick(F.value,["loading","bodyStyle"]):{},{style:o.value?{minHeight:"853px"}:void 0,bordered:!1}),{default:()=>{var q;return[(q=a.default)==null?void 0:q.call(a)]}}):k?t.createVNode("div",{style:{marginBlockStart:`${(z=(A=(j=(K=r==null?void 0:r.token)==null?void 0:K.value)==null?void 0:j.layout)==null?void 0:A.pageContainer)==null?void 0:z.marginBlockPageContainerContent}px`}},[(W=a.default)==null?void 0:W.call(a)]):(Y=a.default)==null?void 0:Y.call(a)])},M=()=>{let k;return t.createVNode(t.Fragment,null,[e.waterMark&&c.value?t.createVNode(it.GPorWaterMark,x.value,Ft(k=N())?k:{default:()=>[k]}):N()])};return()=>{const k=$.getSlot(a,e,"pageHeaderRender")||h.value,K=$.getSlot(a,e,"breadcrumbRender"),j=$.getSlot(a,e,"contentRender");return V(t.createVNode(p.Spin,{spinning:e.loading,indicator:L==null?void 0:L.value},{default:()=>[t.createVNode("div",{style:n.style,class:{[`${u.value}`]:!0,[`${d}`]:!0}},[!o.value&&k!==!1&&(k||t.createVNode(kt,{style:e.pageHeaderStyle,breadcrumb:K,content:j},null)),t.createVNode("div",{class:[I,u.value]},[t.createVNode("div",{class:`${I}-children ${u.value}`,style:y.value},[M()])])])]}))}}}),pe={...P,...ae,logo:ee.logo,logoStyle:ee.logoStyle,logoDirection:ee.logoDirection,menuLoading:Boolean,autoHideHeader:Boolean,collapsed:Boolean,isMobile:Boolean,siderWidth:G.siderWidth,headerTheme:{type:String,default:"dark"},menuData:{type:Array,default:()=>[]},menuRender:{type:[Object,Function],default:()=>{}},extraRightDropdownRender:{type:[Object,Function],default:()=>{}},rightContentRender:{type:[Object,Function],default:()=>{}},collapsedButtonRender:G.collapsedButtonRender,matchMenuKeys:G.matchMenuKeys,onCollapse:G.onCollapse,onOpenKeys:G.onOpenKeys,onMenuHeaderClick:Function,onSelect:G.onSelect},ve={...pe,headerTitleRender:{type:[Object,Function],default:()=>{}},headerRender:{type:[Object,Function],default:()=>{}},headerContentRender:{type:[Object,Function],default:()=>{}},hasSiderMenu:Boolean,collapsedWidth:G.collapsedWidth,siderWidth:G.siderWidth},Ee={loading:D.looseBool,isMobile:G.isMobile,collapsed:ae.collapsed,siderWidth:G.siderWidth,collapsedWidth:G.collapsedWidth,isFixedMultiTab:P.fixedMultiTab,onReloadPage:{type:Function},onChangeTabs:{type:Function},"onUpdate:tabs":{type:Function}},Vt=e=>({[e.componentCls]:{marginBlock:0,marginBlockStart:48,marginBlockEnd:24,marginInline:0,paddingBlock:0,paddingInline:16,textAlign:"center","&-links":{marginBottom:8,a:{color:e.colorTextSecondary,textDecoration:e.linkDecoration,"&:hover":{color:e.colorPrimary}},"a:not(:last-child)":{marginInlineEnd:40}},"&-copyright":{fontSize:"14px",color:e.colorTextSecondary,a:{color:e.colorTextSecondary,textDecoration:e.linkDecoration}}}}),Ue=[{key:"Ant Design Pro",title:"Ant Design Pro",href:"https://pro.ant.design",blankTarget:!0},{key:"gitee",title:t.createVNode(Z.GithubOutlined,null,null),href:"https://gitee.com/gx12358/vue-antd-admin",blankTarget:!0},{key:"Ant Design Vue",title:"Ant Design Vue",href:"https://next.antdv.com/components/overview-cn/",blankTarget:!0}],de=t.defineComponent({name:"GlobalFooter",props:{links:{type:[Array,Boolean],default:Ue},copyright:{type:[Object,Function,Boolean,String],default:"皖ICP备2022010510号-1"}},setup(e){const a=$.getPrefixCls({suffixCls:"global-footer",isPor:!0}),{wrapSSR:n,hashId:l}=i.useProStyle("ProLayoutFooter",[Vt],a);return()=>n(t.createVNode(p.LayoutFooter,{style:{padding:0}},{default:()=>[t.createVNode("div",{class:[a,l.value]},[e.links&&t.createVNode("div",{class:`${a}-links ${l.value}`},[e.links.map(o=>t.createVNode("a",{key:o.key,title:o.key,target:o.blankTarget?"_blank":"_self",href:o.href},[o.title]))]),e.copyright&&t.createVNode("div",{class:`${a}-copyright ${l.value}`},[t.createTextVNode("Copyright  "),rt().format("YYYY"),t.createTextVNode("  "),t.createVNode("a",{href:"https://beian.miit.gov.cn/"},[e.copyright])])])]}))}}),Xe={...P,...pe,...G,...ve,...Ee,...re,pure:Boolean,token:Object,waterMark:{type:Boolean,default:!0},disableMobile:{type:Boolean,required:!1},contentStyle:{type:[String,Object],default:()=>null},breadcrumb:[Object,Function],disableContentMargin:D.looseBool,isChildrenLayout:D.looseBool,loading:D.looseBool,footerLinks:{type:[Array,Boolean],default:Ue},copyrightRender:{type:[Object,Function,Boolean,String],default:()=>{}},footerRender:{type:[Object,Function,Boolean],default:()=>{}},menuData:{type:Array,default:()=>[]},levelMenuData:{type:Array,default:()=>[]},collapsed:D.looseBool},Tt=e=>({[e.componentCls]:{display:"flex",flexDirection:"column",width:"100%",minHeight:"100vh"}}),$t=e=>{var a,n;return{[e.componentCls]:{a:{color:e.colorPrimary,"&:hover":{color:e.colorPrimaryHover}},[`&${e.componentCls}-wide`]:{backgroundColor:e.colorBgLayout,[`${e.componentCls}-content`]:{margin:0,marginInlineStart:20}},[`${e.componentCls}-content`]:{position:"relative",margin:(n=(a=e.layout)==null?void 0:a.pageContainer)==null?void 0:n.paddingBlockPageContainerContent},[`${e.componentCls}-container`]:{width:"100%",display:"flex",flexDirection:"column",minWidth:0,minHeight:0,backgroundColor:"transparent"}}}},Lt=e=>{var a,n;return{[`${e.componentCls}-title`]:{display:"flex",alignItems:"center",gap:8,[`${e.componentCls}-reload-btn,${e.componentCls}-close-btn`]:{color:e.colorTextSecondary,fontSize:12,cursor:"pointer",transition:"color .3s cubic-bezier(.645,.045,.355,1)","&:hover":{color:e.colorPrimary}}},[`${e.componentCls}`]:{"&-fixed":{width:"100%",height:62,background:"transparent"}},[`${e.componentWrapCls}`]:{background:e.colorBgContainer,[`${e.antCls}-tabs-nav`]:{paddingLeft:16,".ant-tabs-tab .anticon":{margin:0},[`${e.antCls}-tabs-tab:not(${e.antCls}-tabs-tab-active)`]:{borderBottomColor:"transparent"},[`${e.componentCls}-dropdown-menu-btn`]:{marginInlineEnd:8,padding:12,fontSize:16,cursor:"pointer"}},"&-fixed":{position:"fixed",height:62,top:((n=(a=e.layout)==null?void 0:a.header)==null?void 0:n.heightLayoutHeader)||i.themeConfig.headerHeight,right:0,zIndex:9,transition:"width .2s"}}}};function Kt(e){return i.useStyle("ProMultiTabs",a=>{const n=i.mergeToken(a,{componentWrapCls:`${a.componentCls}-wrap`});return[Lt(n)]},e)}const Dt=[{key:"closeOthersTabs",label:"关闭其他"},{key:"closeLeftTabs",label:"关闭左侧"},{key:"closeRightTabs",label:"关闭右侧"},{key:"reloadPage",label:"刷新当前页"}];function zt(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!t.isVNode(e)}function E(e){var a;return((a=e==null?void 0:e.meta)==null?void 0:a.currenFulltPath)||e.fullPath||e.path}const Ht=p.Tabs.TabPane,At=p.Menu.Item,jt=t.defineComponent({props:{...Ee,visible:{type:Boolean,default:!0}},inheritAttrs:!1,setup(e){const{isMobile:a,isFixedMultiTab:n}=t.toRefs(e),l=t.ref(!1),o=t.reactive({activeKey:"",contextMenuActiveKey:""}),c=oe.useRouter(),{menuData:h,flatMenuData:m,layout:w,splitMenus:b,getPrefixCls:B}=Q(),g=B({isPor:!0,suffixCls:"multi-tab"}),{wrapSSR:L,hashId:r}=Kt(g),d=t.ref([]);t.watch(d,()=>{var s;(s=e.onChangeTabs)==null||s.call(e,J.cloneDeep(t.unref(d)))},{deep:!0});const I=t.computed(()=>w.value==="mix"&&!e.isMobile&&b.value),F=t.computed(()=>E(c.currentRoute.value)),x=t.computed(()=>n.value&&!a.value),y=t.computed(()=>{const s=!(I.value&&t.unref(m.value).length===0||h.value.length===0||w.value==="top");return x.value&&s?`calc(100% - ${e.collapsed?e.collapsedWidth:e.siderWidth}px)`:"100%"}),f=t.computed(()=>$.classNames(`${g}-wrap`,{[`${r.value}`]:!0,[`${g}-wrap-fixed`]:e.isFixedMultiTab,[`${g}-wrap-loading`]:e.loading})),S=t.computed(()=>{const s={display:e.visible?void 0:"none"};return e.isFixedMultiTab?{margin:0,width:y.value,paddingTop:"6px",zIndex:99,...s}:s}),V=s=>E(s)===F.value,u=s=>{if(s.name&&s.meta&&s.meta.tagHidden!==!0){const C=E(s),R=d.value.find(H=>E(H)===C),T={path:s.path,fullPath:C,query:s.query,params:s.params,name:s.name,meta:{...s.meta,originTagPath:s.fullPath}};R?Object.assign(R,T):s.meta.tagFixed?d.value.unshift(T):d.value.push(T),V(s)&&(o.activeKey=C)}},N=s=>{s.forEach(C=>{C.meta&&C.meta.tagFixed&&u(C),C.children&&N(C.children)})};t.watch(()=>h.value,s=>{N(s)},{deep:!0,immediate:!0}),t.watch(()=>c.currentRoute.value,s=>{u(s)},{deep:!0,immediate:!0});const M=s=>{var C,R;return((R=(C=d.value.find(T=>(s||o.activeKey)===E(T)))==null?void 0:C.meta)==null?void 0:R.originTagPath)||s||o.activeKey},k=()=>{const s=d.value.slice(-1)[0];s?c.push({path:M(E(s))}):c.push("/")},K=async s=>{const C=d.value.find(R=>s===E(R));d.value=d.value.filter(R=>E(R)!==s),C&&V(C)&&k()},j=s=>{const C=d.value.find(R=>E(R)===s);C&&o.activeKey!==E(C)&&c.push({path:M(E(C))})},A=()=>{var s;l.value=!0,e.onReloadPage&&((s=e.onReloadPage)==null||s.call(e)),setTimeout(()=>{l.value=!1},500)},z=s=>s.meta&&s.meta.tagFixed,W=s=>o[s],Y=(s,C)=>{const R=d.value.findIndex(T=>E(T)===W(C));switch(s){case"closeOthersTabs":d.value=d.value.filter(T=>{var H;return E(T)===W(C)||((H=T.meta)==null?void 0:H.tagFixed)});break;case"closeLeftTabs":R&&(d.value=d.value.filter((T,H)=>{var U;return H>=R||((U=T.meta)==null?void 0:U.tagFixed)}));break;case"closeRightTabs":R&&(d.value=d.value.filter((T,H)=>{var U;return H<=R||((U=T.meta)==null?void 0:U.tagFixed)}));break;case"reloadPage":(R===0||R)&&o.activeKey===W(C)&&A();break}o.activeKey!==W(C)&&c.push(M(W(C)))},q=(s,C)=>{const R=d.value.findIndex(T=>E(T)===C);if(s==="closeOthersTabs")return d.value.filter((H,U)=>{var v;return U!==R&&!((v=H.meta)!=null&&v.tagFixed)}).length===0;if(s==="closeLeftTabs")return d.value.filter((H,U)=>{var v;return U<R&&!((v=H.meta)!=null&&v.tagFixed)}).length===0;if(s==="closeRightTabs")return d.value.filter((H,U)=>{var v;return U>R&&!((v=H.meta)!=null&&v.tagFixed)}).length===0},X=s=>{let C;const{path:R,stateType:T}=s;return t.createVNode(p.Menu,{selectedKeys:[],onClick:H=>Y(H.key,T)},zt(C=Dt.map(H=>t.createVNode(At,{key:H.key,disabled:q(H.key,R)},{default:()=>[H.label]})))?C:{default:()=>[C]})},_=s=>{const{router:C}=s;return t.createVNode(p.Dropdown,{trigger:"contextmenu",overlay:t.createVNode(X,{path:E(C)||"",stateType:"contextMenuActiveKey"},null),onOpenChange:R=>{o.contextMenuActiveKey=R&&E(C)||""}},{default:()=>{var R;return[t.createVNode("div",{class:[`${g}-title`,r.value]},[(R=C.meta)==null?void 0:R.title,o.activeKey===E(C)&&t.createVNode(Z.ReloadOutlined,{class:[`${g}-reload-btn`,r.value],spin:l.value,onClick:T=>{T.stopPropagation(),!l.value&&A()}},null),d.value.length>1&&!z(C)&&t.createVNode(Z.CloseOutlined,{class:[`${g}-close-btn`,r.value],onClick:T=>{T.stopPropagation(),!l.value&&K(E(C)||"")}},null)])]}})};return()=>L(t.createVNode(t.Fragment,null,[!!e.isFixedMultiTab&&t.withDirectives(t.createVNode("div",{class:[`${g}-fixed`,r.value]},null),[[t.vShow,e.visible]]),t.createVNode(p.Tabs,{hideAdd:!0,type:"editable-card",style:S.value,class:f.value,activeKey:o.activeKey,onTabClick:j},{default:()=>[d.value.map(s=>t.createVNode(Ht,{key:E(s),closable:!1,tab:t.createVNode(_,{router:s},null)},null))],rightExtra:()=>t.createVNode(p.Dropdown,{overlay:t.createVNode(X,{path:o.activeKey,stateType:"activeKey"},null)},{default:()=>[t.createVNode(Z.EllipsisOutlined,{class:[`${g}-dropdown-menu-btn`,r.value],rotate:90},null)]})})]))}}),{Content:Wt}=p.Layout,ce=(e,{slots:a,attrs:n})=>{var I;const{hashId:l,prefixCls:o,isMobile:c,loading:h,collapsed:m,siderWidth:w,isShowTabsBar:b,isFixedMultiTab:B,onReloadPage:g,onChangeTabs:L}=e;if(e.isChildrenLayout)return(I=a.default)==null?void 0:I.call(a);const{flatMenuData:r,layout:d}=Q();return t.createVNode(t.Fragment,null,[t.createVNode(jt,{visible:(t.unref(d)==="mix"?t.unref(r).length>0:!0)&&b,isMobile:c,loading:h,isFixedMultiTab:B,siderWidth:w,collapsed:m,onReloadPage:g,onChangeTabs:L},null),t.createVNode(Wt,{style:n.style,class:[`${o}-content`]},{default:()=>{var F;return[h&&t.createVNode(Ne,null,null),t.createVNode("div",{class:[`${o}-content-spin-container`,l],style:{opacity:h?"0":void 0}},[(F=a.default)==null?void 0:F.call(a)])]}})])};ce.inheritAttrs=!1,ce.displayName="wrap-content";const vt=e=>{var a,n,l,o;return{[`${e.proComponentsCls}-basic-layout`]:{[`${e.antCls}-layout-header${e.componentCls}${e.componentCls}-light`]:{backgroundColor:((n=(a=e.layout)==null?void 0:a.header)==null?void 0:n.colorBgMenu)||e.colorBgElevated},[`${e.antCls}-layout-header${e.componentCls}${e.componentCls}-dark`]:{backgroundColor:(o=(l=e.layout)==null?void 0:l.header)==null?void 0:o.colorDarkBgMenu,[`${e.proComponentsCls}-global-header-collapsed-button`]:{color:"#fff"}},[`${e.antCls}-layout-header${e.componentCls}`]:{zIndex:19,paddingBlock:0,paddingInline:0,WebkitBackdropFilter:"blur(8px)",backdropFilter:"blur(8px)",transition:"background-color 0.2s cubic-bezier(.645,.045,.355,1)",[`&${e.proComponentsCls}`]:{"&-fixed-header":{position:"fixed",width:"100%",zIndex:9,top:0,transition:"width .2s","&-action":{transition:"width .3s cubic-bezier(.645,.045,.355,1)"}},"&-header-actions":{display:"flex",alignItems:"center",fontSize:"16",cursor:"pointer","& &-item":{paddingBlock:0,paddingInline:8,"&:hover":{color:e.colorText}}},"&-header-realDark":{boxShadow:"0 2px 8px 0 rgba(0, 0, 0, 65%)"},"&-header-actions-header-action":{transition:"width 0.3s cubic-bezier(0.645, 0.045, 0.355, 1)"}}}}}},Et=e=>({[`${e.proComponentsCls}-header`]:{"&-light":{[`${e.componentCls}-logo`]:{h1:{color:e.colorBgSpotlight}}}},[e.componentCls]:{position:"relative",background:"transparent",display:"flex",marginBlock:0,paddingInline:16,width:"100%",height:"100%",boxShadow:"0 1px 4px rgba(0,21,41,.08)",boxSizing:"border-box","&-mix":{boxShadow:"0 1px 4px 0 rgba(0,21,41,.12)"},"&-wide":{boxShadow:"0 1px 4px 0 rgba(0,21,41,.12)",padding:0,[`${e.componentCls}-main`]:{margin:"0 auto"}},"&-main":{display:"flex",width:"100%",height:"100%","&-left":{display:"flex",minWidth:192}},"> a":{height:"100%"},"> *":{height:"100%"},[`${e.proComponentsCls}-layout-apps-icon`]:{marginInlineEnd:16},"&-collapsed-button":{display:"flex",alignItems:"center",fontSize:"20px",marginInlineEnd:"16px"},"&-logo":{position:"relative",marginInlineEnd:"16px",a:{display:"flex",alignItems:"center",height:"100%",minHeight:"22px",fontSize:"20px"},img:{height:"28px"},h1:{marginBlock:0,marginInline:0,marginInlineStart:12,fontWeight:"500",color:e.colorWhite,fontSize:16},"&-mix":{display:"flex",alignItems:"center"}},"&-logo-mobile":{minWidth:"24px",marginInlineEnd:0}}}),Ye={...G,...pe},Ut=(e,a)=>e===!1?null:e?e(a,null):a,Xt=t.defineComponent({props:Ye,setup(e){return()=>e.rightContentRender&&typeof e.rightContentRender=="function"&&t.createVNode(t.Fragment,null,[e.rightContentRender({...e})])}}),qe=t.defineComponent({props:Ye,inheritAttrs:!1,setup(e,{slots:a,emit:n}){const l=oe.useRouter(),{token:o}=i.useProConfigContext(),{getPrefixCls:c,openKeys:h,selectedKeys:m}=Q(),{width:w}=Se.useWindowSize(),b=c({suffixCls:"global-header",isPor:!0}),{wrapSSR:B,hashId:g}=i.useProStyle("ProGlobalHeader",[Et],b),L=t.computed(()=>e.isMobile?!1:e.layout==="top"||e.layout==="mix"&&e.splitMenus),r=t.computed(()=>({[`${g.value}`]:!0,[`${b}`]:!0,[`${b}-${e.layout}`]:!0})),d=y=>{var f;if(l.currentRoute){const S=l.currentRoute.value.matched.concat();e.onSelect&&y==="select"&&e.onSelect(S.filter(V=>V.name!=="index").map(V=>V.path)),e.onOpenKeys&&y==="openKeys"&&((f=e.onOpenKeys)==null||f.call(e,S.filter(V=>V.path!==l.currentRoute.value.path).map(V=>V.path)))}},I=()=>{n("collapse",!e.collapsed)},F=t.computed(()=>e.collapsedButtonRender||Ae),x=()=>{var y,f;return t.createVNode(t.Fragment,null,[L.value?t.createVNode("div",{style:{flex:1},class:[`${b}-menu`,g.value]},[((y=e.menuData)==null?void 0:y.length)>0&&t.createVNode(p.ConfigProvider,{theme:{components:{Layout:{headerBg:"transparent",bodyBg:"transparent"},Menu:Me({radiusItem:4,colorActiveBarWidth:0,colorActiveBarHeight:2,colorActiveBarBorderSize:0,horizontalItemBorderRadius:4},o.value||{},e.theme,"header")}}},{default:()=>[t.createVNode(ye,t.mergeProps({theme:e.theme,mode:e.mode,collapsed:e.collapsed,menuData:e.menuData,openKeys:h.value,selectedKeys:m.value,iconfontUrl:e.iconfontUrl,menuItemRender:e.menuItemRender,subMenuItemRender:e.subMenuItemRender,class:{"top-nav-menu":e.mode==="horizontal",[`${g.value}`]:!0}},{"onUpdate:openKeys":()=>d("openKeys"),"onUpdate:selectedKeys":()=>d("select")}),null)]})]):t.createVNode("div",{style:{flex:1}},[(f=a.default)==null?void 0:f.call(a)]),e.layout!=="simple"&&t.createVNode(Xt,t.mergeProps(e,{extraRightDropdownRender:e.extraRightDropdownRender,rightContentRender:e.rightContentRender}),null)])};return()=>{const y=t.createVNode("span",{key:"logo",onClick:()=>{var f;return(f=e.onMenuHeaderClick)==null?void 0:f.call(e)},class:[`${b}-logo`,e.isMobile?"mobile":"",g.value]},[t.createVNode("a",null,[ze(e.logo)])]);return B(t.createVNode("div",{class:r.value},[e.isMobile?t.createVNode(t.Fragment,null,[Ut(e.menuHeaderRender,y),e.isMobile&&t.unref(F)&&t.createVNode("span",{class:`${b}-collapsed-button ${g.value}`,onClick:I},[t.unref(F)(e.collapsed)]),x()]):["mix","wide","top"].includes(e.layout)?t.createVNode("div",{style:{width:e.layout==="wide"?`${e.wideWidth}px`:void 0,padding:e.layout==="wide"&&w.value<e.wideWidth?"0 50px":void 0},class:`${b}-main ${g.value}`},[t.createVNode("div",{class:`${b}-main-left ${g.value}`},[t.createVNode(be,t.mergeProps(e,{renderKey:"headerTitleRender"}),null)]),x()]):x()]))}}});function Yt(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!t.isVNode(e)}const{Header:Ge}=p.Layout,xe=t.defineComponent({inheritAttrs:!1,props:ve,setup(e){const{theme:a,isMobile:n,fixedHeader:l,headerHeight:o,layout:c,onCollapse:h,splitMenus:m}=t.toRefs(e),{getPrefixCls:w,menuData:b}=Q(),B=w({suffixCls:"header",isPor:!0}),g=w({suffixCls:"fixed-header",isPor:!0}),{wrapSSR:L,hashId:r}=i.useProStyle("ProLayoutHeader",[vt],B),d=t.computed(()=>c.value==="wide"),I=t.computed(()=>l.value),F=t.computed(()=>c.value==="mix"||d.value),x=t.computed(()=>c.value==="side"||c.value==="simple"),y=t.computed(()=>x.value&&"light"||a.value),f=t.computed(()=>({[`${r.value}`]:!0,[`${B}-${y.value}`]:!0,[`${B}`]:!0,[`${g}`]:I.value})),S=t.computed(()=>I.value&&!n.value),V=t.computed(()=>m.value?b.value&&Be(b.value)||[]:c.value==="top"?b.value:[]),u=t.computed(()=>x.value&&S.value?`calc(100% - ${e.collapsed?e.collapsedWidth:e.siderWidth}px)`:"100%"),N=t.computed(()=>I.value?0:void 0),M=()=>{const k=t.createVNode(qe,t.mergeProps(e,{theme:y.value,mode:"horizontal",onCollapse:h.value,menuData:V.value}),{default:()=>[F.value?null:e.headerContentRender&&typeof e.headerContentRender=="function"?e.headerContentRender(e):e.headerContentRender]});return e.headerRender?e.headerRender(e,k):k};return()=>{let k;return L(t.createVNode(t.Fragment,null,[I.value&&!d.value&&t.createVNode(Ge,{theme:y.value,style:{height:`${o.value}px`,lineHeight:`${o.value}px`,background:"transparent"}},null),t.createVNode(Ge,{theme:y.value,class:f.value,style:{height:`${o.value}px`,lineHeight:`${o.value}px`,width:u.value,zIndex:x.value?100:101,right:N.value}},Yt(k=M())?k:{default:()=>[k]})]))}}}),qt=t.defineComponent({name:"BaseProLayout",inheritAttrs:!1,components:{GlobalHeader:xe,GlobalFooter:de,SiderMenuWrapper:ie},props:Xe,emits:["update:collapsed","update:open-keys","update:selected-keys","collapse","openKeys","reloadPage","select","menuHeaderClick","menuClick","changeTabs"],setup(e,{slots:a}){const n=$.getPrefixCls({suffixCls:"basic-layout",isPor:!0}),{wrapSSR:l,hashId:o}=i.useProStyle("ProLayout",[Tt,$t],n),c=te.useMediaQuery(),{token:h}=i.useProConfigContext(),m=t.computed(()=>{var y;return(y=h==null?void 0:h.value)==null?void 0:y.colorPrimary});t.watchEffect(()=>{m.value&&document.querySelector("html")&&document.querySelector("html").style.setProperty("--gx-primary-color",m.value)});const w=t.computed(()=>e.layout==="mix"||e.layout==="side"||e.layout==="wide"||!1),b=t.computed(()=>e.layout==="wide"),B=t.computed(()=>w.value),g=t.computed(()=>e.collapsed?e.collapsedWidth:e.siderWidth),L=t.computed(()=>(e.theme||"dark").toLocaleLowerCase().includes("dark")?"dark":"light"),r=t.computed(()=>(c.value==="sm"||c.value==="xs")&&!e.disableMobile&&!b.value),d=t.reactive({position:"relative"});(e.isChildrenLayout||e.contentStyle&&e.contentStyle.minHeight)&&(d.minHeight=0);const I=(y,f)=>y.headerRender===!1||y.pure?null:t.createVNode(xe,t.mergeProps(y,{matchMenuKeys:f||[]}),null),F=t.computed(()=>({...e.breadcrumb,itemRender:$.getSlot(a,e,"breadcrumbRender")})),x=t.computed(()=>B.value&&e.selectedKeys?Oe(e.menuData,e.selectedKeys[0]):[]);return Le({getPrefixCls:$.getPrefixCls,...J.pick(t.toRefs(e),["layout","waterMark","menuData","openKeys","splitMenus","headerHeight","selectedKeys","disableMobile","fixSiderbar","fixedHeader","waterMarkProps"].concat(Object.keys(We))),theme:L,hasContentWide:b,isMobile:r,siderWidth:g,breadcrumb:F,flatMenuData:x,hasSide:w,flatMenu:B,pageHeaderRender:t.computed(()=>$.getSlot(a,e,"pageHeaderRender"))}),()=>{var T;const y=$.getSlot(a,e,"collapsedButtonRender"),f=$.getSlot(a,e,"headerContentRender"),S=$.getSlot(a,e,"rightContentRender"),V=$.getSlot(a,e,"headerRender"),u=$.getSlot(a,e,"footerRender"),N=$.getSlot(a,e,"links"),M=$.getSlot(a,e,"copyrightRender"),k=$.getSlot(a,e,"extraRightDropdownRender"),K=$.getSlot(a,e,"menuHeaderRender"),j=$.getSlot(a,e,"menuExtraRender"),A=$.getSlot(a,e,"menuContentRender"),z=$.getSlot(a,e,"menuFooterRender"),W=$.getSlot(a,e,"menuItemRender"),Y=$.getSlot(a,e,"subMenuItemRender"),q={menuItemRender:W,subMenuItemRender:Y},X=t.computed(()=>I({...e,...q,hasSiderMenu:w.value,menuData:e.menuData,isMobile:t.unref(r),rightContentRender:S,extraRightDropdownRender:k,headerTitleRender:K,headerContentRender:f,headerRender:V,theme:L.value},e.matchMenuKeys)),_=t.computed(()=>({[`${o.value}`]:!0,[`${n}`]:!0,[`${n}-${e.layout}`]:!0})),s=t.computed(()=>b.value?{minWidth:`${e.wideWidth}px`}:void 0),C=t.computed(()=>b.value?{width:e.menuData.length?`${e.wideWidth}px`:`${e.wideWidth-e.siderWidth-20}px`,paddingTop:`${e.headerHeight+20}px`,margin:b.value?"0 auto":void 0}:void 0),R=t.computed(()=>b.value?{minHeight:"835px"}:{});return l(t.createVNode(t.Fragment,null,[e.pure?(T=a.default)==null?void 0:T.call(a):t.createVNode("div",{class:_.value,style:s.value},[t.createVNode(p.Layout,{style:C.value},{default:()=>[t.createVNode(ie,t.mergeProps(J.omit(e,["pure","theme"]),{links:N,theme:L.value,isMobile:r.value,menuHeaderRender:K,menuContentRender:A,menuExtraRender:j,menuFooterRender:z,collapsedButtonRender:y}),null),t.createVNode(p.Layout,{style:d},{default:()=>[X.value,t.createVNode(ce,t.mergeProps({hashId:o.value,isMobile:r.value,prefixCls:n,collapsedWidth:e.collapsedWidth,isChildrenLayout:e.isChildrenLayout,loading:e.loading,isShowTabsBar:e.showTabsBar,isFixedMultiTab:e.fixedMultiTab,siderWidth:e.siderWidth,collapsed:e.collapsed,style:e.disableContentMargin?R.value:{...e.contentStyle,...R.value}},J.pick(e,["onReloadPage","onChangeTabs"])),{default:()=>{var H;return[(H=a.default)==null?void 0:H.call(a)]}}),u===!1?null:u?u(e):t.createVNode(de,{copyright:M},null)]})]})])]))}}}),Gt=t.defineComponent({components:{GlobalHeader:xe,GlobalFooter:de,SiderMenuWrapper:ie},props:Xe,emits:["update:collapsed","update:open-keys","update:selected-keys","collapse","openKeys","reloadPage","select","menuHeaderClick","menuClick","changeTabs"],setup(e,{slots:a,emit:n}){const l=t.computed(()=>e.theme!==void 0?{dark:e.theme==="realDark"}:{}),o=m=>{n("update:collapsed",m),n("collapse",m)},c=m=>{n("update:open-keys",m),n("openKeys",m)},h=m=>{n("update:selected-keys",m),n("select",m)};return()=>(console.log(e.token),t.createVNode(p.ConfigProvider,{theme:e.primaryColor?{token:{colorPrimary:e.primaryColor}}:void 0},{default:()=>[t.createVNode(i,t.mergeProps({token:e.token},l.value),{default:()=>[t.createVNode(qt,t.mergeProps(J.omit(e,["onSelect","onOpenKeys","onCollapse"]),{onSelect:h,onOpenKeys:c,onCollapse:o}),a)]})]}))}}),_e=(e,a,n)=>e.map((l,o)=>{var c;return l.meta&&(l.meta.key=n?`${n}-${o}`:`${o}`),l.path=l.path.replace("//","/"),l.children&&l.children.length>0&&(l.children=_e(l.children,a,(c=l.meta)==null?void 0:c.key)),a[`${l.path}`]=l,l}),_t=e=>{const a=e.find(o=>{var c;return o.path==="/"&&((c=o.children)==null?void 0:c.length)}),n={},l=_e((a==null?void 0:a.children)||[],n);return{menuData:l,breadcrumb:n,levelMenuData:$.getLevelData(l)}},Ze=[{key:"light",title:"亮色菜单风格"},{key:"dark",title:"暗色菜单风格"},{key:"realDark",title:"暗黑模式"}],Je=[{key:"side",title:"侧边菜单布局"},{key:"mix",title:"混合菜单布局"},{key:"wide",title:"定宽菜单布局"},{key:"simple",title:"简单菜单布局"}],Zt=[{key:"header",title:"顶部主题"},{key:"sider",title:"左侧主题"}],Jt=e=>({[e.componentCls]:{[`${e.antCls}-drawer-content-wrapper`]:{transform:"translate(100%)",display:"block !important"},"&-show":{[`${e.antCls}-drawer-content-wrapper`]:{transform:"translate(0%)"}},"&-trantion-none":{[`${e.antCls}-drawer-content-wrapper`]:{transition:"none !important;"}},"&-handle":{position:"absolute",top:240,right:300,zIndex:0,display:"flex",alignItems:"center",justifyContent:"center",width:"48px",height:"48px",fontSize:"16px",textAlign:"center",backgroundColor:e.colorPrimary,borderEndStartRadius:e.borderRadiusLG,borderStartStartRadius:e.borderRadiusLG,"-webkit-backdropilter":"saturate(180%) blur(20px)",backdropFilter:"saturate(180%) blur(20px)",cursor:"pointer",pointerEvents:"auto"},"&-wrapper":{position:"relative",height:`calc(100vh - ${e.marginLG*2}px)`},"&-content":{padding:e.marginLG},"&-body-title":{margin:0,marginBlockEnd:e.marginSM,fontSize:"14px",lineHeight:"22px",color:e.colorBgSpotlight},"&-block-checkbox":{display:"flex",minHeight:42,gap:e.marginSM,"& &-item":{position:"relative",width:"44px",height:"36px",overflow:"hidden",borderRadius:"4px",boxShadow:"0 1px 2.5px rgba(0,0,0,.18)",cursor:"pointer",fontSize:56,lineHeight:"56px","&::before":{position:"absolute",insetBlockStart:0,insetInlineStart:0,width:"33%",height:"100%",content:"''"},"&::after":{position:"absolute",insetBlockStart:0,insetInlineStart:0,width:"100%",height:"25%",content:"''"},"&-dark":{backgroundColor:"rgba(0, 21, 41, 0.85)","&::before":{backgroundColor:"rgba(0, 0, 0, 0.65)"},"&::after":{backgroundColor:"rgba(0, 0, 0, 0.85)"}},"&-light":{backgroundColor:"#f7f8fa","&::before":{backgroundColor:"#fff"},"&::after":{backgroundColor:"#fff"}},"&-realDark":{backgroundColor:"rgba(0, 21, 41, 0.85)","&::before":{backgroundColor:"rgba(0, 0, 0, 0.65)"},"&::after":{backgroundColor:"rgba(0, 0, 0, 0.85)"}},"&-dark,&-side":{backgroundColor:"#f7f8fa","&::before":{zIndex:"1",backgroundColor:"#001529"},"&::after":{backgroundColor:"#fff"}},"&-wide":{backgroundColor:"#f7f8fa","&::before":{backgroundColor:"#fff",left:"15%",width:"15%",height:"calc(100% - 38%)",top:"38%"},"&::after":{backgroundColor:"#fff"},"&-content":{position:"absolute",height:"calc(100% - 38%)",top:"38%",right:"15%",width:"calc(100% - 15% - 15% - 10% - 15%)",backgroundColor:"#fff"}},"&-simple":{backgroundColor:"#f7f8fa","&::before":{backgroundColor:"#fff"},"&::after":{display:"none"}},"&-mix":{backgroundColor:"#f7f8fa","&::before":{backgroundColor:"#fff"},"&::after":{backgroundColor:"#001529"}}},"& &-selectIcon":{position:"absolute",insetInlineEnd:"6px",bottom:"4px",color:e.colorPrimary,fontWeight:"bold",fontSize:"14px",pointerEvents:"none",".action":{color:e.colorPrimary}},"& &-icon":{fontSize:56,lineHeight:"56px"}},"&-theme-color":{marginBlockStart:"16px",display:"flex",gap:8,"&-label":{marginBlock:"16px"},"&-block":{display:"flex",alignItems:"center",justifyContent:"center",width:"20px",height:"20px",color:"#fff",fontWeight:"bold",textAlign:"center",borderRadius:"2px",cursor:"pointer"}},"&-list":{[`&${e.antCls}-list-sm ${e.antCls}-list-item`]:{paddingInline:0}}}}),Qe=t.defineComponent({name:"BlockCheckbox",props:{value:D.string,list:{type:Array,default:()=>[]},configType:D.string,prefixCls:D.string,hashId:D.string,onChange:Function},setup(e){return()=>{const a=`${e.prefixCls}-block-checkbox`;return t.createVNode("div",{class:[a,e.hashId]},[e.list.map(n=>t.createVNode(p.Tooltip,{title:n.title,key:n.key},{default:()=>[t.createVNode("div",{class:$.classNames(e.hashId,`${a}-item`,`${a}-item-${n.key}`,`${a}-${e.configType}-item`),onClick:()=>{var l;return(l=e.onChange)==null?void 0:l.call(e,n.key)}},[n.key==="wide"&&t.createVNode("div",{class:[`${a}-item-${n.key}-content`,e.hashId]},null),t.createVNode(Z.CheckOutlined,{class:`${a}-selectIcon ${e.hashId}`.trim(),style:{display:e.value===n.key?"block":"none"}},null),n!=null&&n.icon?t.createVNode("div",{class:`${a}-icon ${e.hashId}`.trim()},[n.icon]):null])]}))])}}}),Qt=t.defineComponent({name:"ThemeColor",inheritAttrs:!1,props:{settingValue:Object,colorList:{type:Array,default:()=>[]},prefixCls:D.string,hashId:D.string,onChange:Function},setup(e){return()=>{var n;const a=`${e.prefixCls}-theme-color`;return t.createVNode("div",{class:`${a} ${e.hashId}`.trim()},[(n=e.colorList)==null?void 0:n.map(({key:l,color:o,title:c})=>l?t.createVNode(p.Tooltip,{key:o,title:c},{default:()=>{var h,m;return[t.createVNode("div",{class:[`${a}-block ${e.hashId}`.trim(),((h=e.settingValue)==null?void 0:h.primaryColor)===o?`${a}-block-checked`:""],style:{backgroundColor:o},onClick:()=>e.onChange&&e.onChange(o)},[((m=e.settingValue)==null?void 0:m.primaryColor)===o&&t.createVNode(Z.CheckOutlined,null,null)])]}}):null)])}}}),se=t.defineComponent({name:"RegionalChange",props:{label:D.string,value:D.bool,prefixCls:D.string,valueKey:String,hashId:D.string,disabled:D.bool,onChange:Function},setup(e){return()=>t.createVNode(p.List,{class:`${e.prefixCls}-list ${e.hashId}`.trim(),split:!1,size:"small",renderItem:({item:a})=>t.createVNode(p.Tooltip,{title:a.disabled?a.disabledReason:"",placement:"left"},{default:()=>[t.createVNode(p.List.Item,{actions:[a.action]},{default:()=>[t.createVNode("span",{style:{opacity:a.disabled?.5:1}},[a.title])]})]}),dataSource:[{title:e.label,action:t.createVNode(p.Switch,{size:"small",disabled:e.disabled,checked:!!e.value,onChange:a=>{e.onChange&&e.onChange(e.valueKey,a)}},null)}]},null)}}),Pt=e=>({[e.componentCls]:{padding:e.marginLG,"&-title":{display:"flex",alignItems:"center",margin:0,gap:10,marginBlockEnd:e.marginSM,fontSize:"14px",lineHeight:"22px",color:e.colorBgSpotlight},"&-sub-title":{margin:0,display:"flex",alignItems:"center",fontSize:12,fontWeight:"normal",color:e.colorTextDescription},"&-list":{[`&${e.antCls}-list-sm ${e.antCls}-list-item`]:{paddingInline:0,[`${e.antCls}-list-item-action`]:{marginInlineStart:10}}}}});function ea(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!t.isVNode(e)}const ta=t.defineComponent({name:"ThemeEditor",props:{settingValue:Object,onChange:Function},setup(e){const{getPrefixCls:a}=Q(),[n,l]=te.useState("header"),o=a({suffixCls:"theme-editor",isPor:!0}),{wrapSSR:c,hashId:h}=i.useProStyle("ProThemeEditor",[Pt],o),{token:m}=i.useProConfigContext(),w=t.computed(()=>{var r;return(r=m.value)==null?void 0:r.layout}),b=t.computed(()=>{var r,d,I,F,x,y,f,S,V,u,N,M,k,K,j,A,z,W,Y,q,X,_,s,C,R;return[{key:"colorBgMenu",title:"全部背景",disabled:((r=e.settingValue)==null?void 0:r.theme)==="dark"&&["mix","wide"].includes((d=e.settingValue)==null?void 0:d.layout)},{key:"colorDarkBgMenu",title:"全部背景",disabled:((I=e.settingValue)==null?void 0:I.theme)==="light"||((F=e.settingValue)==null?void 0:F.theme)==="dark"&&["side","simple"].includes((x=e.settingValue)==null?void 0:x.layout)},{key:"colorSubItemBg",title:"子菜单背景",disabled:!0},{key:"colorDarkSubItemBg",title:"子菜单背景",disabled:!0},{key:"colorBgMenuItemSelected",title:"菜单选中背景",disabled:((y=e.settingValue)==null?void 0:y.theme)==="dark"&&["mix","wide"].includes((f=e.settingValue)==null?void 0:f.layout)},{key:"colorDarkBgMenuItemSelected",title:"菜单选中背景",disabled:((S=e.settingValue)==null?void 0:S.theme)==="light"||((V=e.settingValue)==null?void 0:V.theme)==="dark"&&["side","simple"].includes((u=e.settingValue)==null?void 0:u.layout)},{key:"colorTextMenu",title:"菜单文字颜色",disabled:((N=e.settingValue)==null?void 0:N.theme)==="dark"&&["mix","wide"].includes((M=e.settingValue)==null?void 0:M.layout)},{key:"colorDarkTextMenu",title:"菜单文字颜色",disabled:((k=e.settingValue)==null?void 0:k.theme)==="light"||((K=e.settingValue)==null?void 0:K.theme)==="dark"&&["side","simple"].includes((j=e.settingValue)==null?void 0:j.layout)},{key:"colorTextMenuHover",title:"菜单文字移入颜色",disabled:((A=e.settingValue)==null?void 0:A.theme)==="dark"&&["mix","wide"].includes((z=e.settingValue)==null?void 0:z.layout)},{key:"colorDarkTextMenuHover",title:"菜单文字移入颜色",disabled:((W=e.settingValue)==null?void 0:W.theme)==="light"||((Y=e.settingValue)==null?void 0:Y.theme)==="dark"&&["side","simple"].includes((q=e.settingValue)==null?void 0:q.layout)},{key:"colorTextMenuSelected",title:"菜单文字选中颜色",disabled:((X=e.settingValue)==null?void 0:X.theme)==="dark"&&["mix","wide"].includes((_=e.settingValue)==null?void 0:_.layout)},{key:"colorDarkTextMenuSelected",title:"菜单文字选中颜色",disabled:((s=e.settingValue)==null?void 0:s.theme)==="light"||((C=e.settingValue)==null?void 0:C.theme)==="dark"&&["side","simple"].includes((R=e.settingValue)==null?void 0:R.layout)}]}),B=t.computed(()=>{var r,d,I,F,x,y,f,S,V,u,N,M,k,K,j,A,z,W,Y,q,X,_,s,C,R,T,H,U,v,me,nt,ot;return[{key:"colorBgMenu",title:"全部背景",disabled:((r=e.settingValue)==null?void 0:r.theme)==="dark"&&["side","simple"].includes((d=e.settingValue)==null?void 0:d.layout)},{key:"colorDarkBgMenu",title:"全部背景",disabled:((I=e.settingValue)==null?void 0:I.theme)==="light"||((F=e.settingValue)==null?void 0:F.theme)==="dark"&&["mix","wide"].includes((x=e.settingValue)==null?void 0:x.layout)},{key:"colorSubItemBg",title:"子菜单背景",disabled:((y=e.settingValue)==null?void 0:y.theme)==="dark"&&["side","simple"].includes((f=e.settingValue)==null?void 0:f.layout)},{key:"colorDarkSubItemBg",title:"子菜单背景",disabled:((S=e.settingValue)==null?void 0:S.theme)==="light"||((V=e.settingValue)==null?void 0:V.theme)==="dark"&&["mix","wide"].includes((u=e.settingValue)==null?void 0:u.layout)},{key:"colorBgMenuItemHover",title:"菜单移入背景",disabled:((N=e.settingValue)==null?void 0:N.theme)==="dark"&&((M=e.settingValue)==null?void 0:M.layout)!=="mix"},{key:"colorBgMenuItemSelected",title:"菜单选中背景",disabled:((k=e.settingValue)==null?void 0:k.theme)==="dark"&&((K=e.settingValue)==null?void 0:K.layout)!=="mix"},{key:"colorDarkBgMenuItemSelected",title:"菜单选中背景",disabled:((j=e.settingValue)==null?void 0:j.theme)==="light"||((A=e.settingValue)==null?void 0:A.theme)==="dark"&&["mix","wide"].includes((z=e.settingValue)==null?void 0:z.layout)},{key:"colorTextMenu",title:"菜单文字颜色",disabled:((W=e.settingValue)==null?void 0:W.theme)==="dark"&&((Y=e.settingValue)==null?void 0:Y.layout)!=="mix"},{key:"colorDarkTextMenu",title:"菜单文字颜色",disabled:((q=e.settingValue)==null?void 0:q.theme)==="light"||((X=e.settingValue)==null?void 0:X.theme)==="dark"&&["mix","wide"].includes((_=e.settingValue)==null?void 0:_.layout)},{key:"colorTextMenuHover",title:"菜单文字移入颜色",disabled:((s=e.settingValue)==null?void 0:s.theme)==="dark"&&((C=e.settingValue)==null?void 0:C.layout)!=="mix"},{key:"colorDarkTextMenuHover",title:"菜单文字移入颜色",disabled:((R=e.settingValue)==null?void 0:R.theme)==="light"||((T=e.settingValue)==null?void 0:T.theme)==="dark"&&["mix","wide"].includes((H=e.settingValue)==null?void 0:H.layout)},{key:"colorTextMenuSelected",title:"菜单文字选中颜色",disabled:((U=e.settingValue)==null?void 0:U.theme)==="dark"&&((v=e.settingValue)==null?void 0:v.layout)!=="mix"},{key:"colorDarkTextMenuSelected",title:"菜单文字选中颜色",disabled:((me=e.settingValue)==null?void 0:me.theme)==="light"||((nt=e.settingValue)==null?void 0:nt.theme)==="dark"&&["mix","wide"].includes((ot=e.settingValue)==null?void 0:ot.layout)}]}),g=t.computed(()=>n.value==="header"?b.value:n.value==="sider"?B.value:[]),L=r=>{var d,I;return(I=(d=w.value)==null?void 0:d[n.value])==null?void 0:I[r]};return()=>{var d,I,F;let r;return c(t.createVNode("div",{class:[o,h.value]},[t.createVNode("h3",{class:[`${o}-title`,h.value]},[t.createTextVNode("主题编辑器"),t.createVNode("div",{class:[`${o}-sub-title`,h.value]},[t.createVNode("span",null,[(d=Ze.find(x=>{var y;return x.key===((y=e.settingValue)==null?void 0:y.theme)}))==null?void 0:d.title]),t.createVNode("span",{style:{marginInline:"8px"}},[t.createTextVNode("/")]),t.createVNode("span",null,[(I=Je.find(x=>{var y;return x.key===((y=e.settingValue)==null?void 0:y.layout)}))==null?void 0:I.title])])]),t.createVNode("div",{class:[`${o}-content`,h.value]},[t.createVNode(p.List,{class:`${o}-list ${h.value}`.trim(),split:!1,size:"small",renderItem:({item:x})=>t.createVNode(p.List.Item,{actions:[x.action]},{default:()=>[t.createVNode("span",{style:{opacity:x.disabled?.5:1}},[x.title])]}),dataSource:[{title:"自定义主题色",action:t.createVNode(we.GColorPicker,{value:(F=e.settingValue)==null?void 0:F.primaryColor,actions:["confirm"],modes:["rgb"],size:"small",onConfirm:x=>e.onChange&&e.onChange(x,"primaryColor")},null)}]},null),t.createVNode(p.Tabs,{activeKey:n.value,onChange:x=>l(x)},ea(r=Zt.map(x=>t.createVNode(p.TabPane,{key:x.key,tab:x.title},{default:()=>[t.createVNode(p.List,{class:`${o}-list ${h.value}`.trim(),split:!1,size:"small",renderItem:({item:y})=>t.createVNode(p.List.Item,{actions:[y.action]},{default:()=>[t.createVNode("span",{style:{opacity:y.disabled?.5:1}},[y.title])]}),dataSource:g.value.filter(y=>!y.disabled).map(y=>({...y,action:t.createVNode(we.GColorPicker,{value:L(y.key),actions:["confirm"],modes:["rgb"],size:"small",onConfirm:f=>e.onChange&&e.onChange(f,n.value,y.key)},null)}))},null)]})))?r:{default:()=>[r]})])]))}}}),aa=e=>({[e.componentCls]:{padding:e.marginLG,"&-title":{display:"flex",alignItems:"center",margin:0,gap:10,marginBlockEnd:e.marginSM,fontSize:"14px",lineHeight:"22px",color:e.colorBgSpotlight},"&-sub-title":{margin:0,display:"flex",alignItems:"center",fontSize:12,fontWeight:"normal",color:e.colorTextDescription},"&-list":{[`&${e.antCls}-list-sm ${e.antCls}-list-item`]:{paddingInline:0,[`${e.antCls}-list-item-action`]:{marginInlineStart:10}}}}});function Pe(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!t.isVNode(e)}const{preset:et}=he,na=t.defineComponent({name:"OthersChange",props:{prefixCls:D.string,settingValue:Object,onChange:Function},setup(e){const a=$.getPrefixCls({suffixCls:"others",isPor:!0}),{wrapSSR:n,hashId:l}=i.useProStyle("SettingsDrawOthers",[aa],a);return()=>{var c,h,m,w,b,B,g,L,r,d,I,F,x,y;let o;return n(t.createVNode("div",{class:[a,l.value]},[t.createVNode("h3",{class:[`${a}-title`,l.value]},[t.createTextVNode("页面动画设置")]),t.createVNode(p.List,{class:`${a}-list ${l.value}`.trim(),split:!1,size:"small",renderItem:({item:f})=>t.createVNode(p.Tooltip,{title:f.disabled?f.disabledReason:"",placement:"left"},{default:()=>[t.createVNode(p.List.Item,{actions:[f.action]},{default:()=>[t.createVNode("span",{style:{opacity:f.disabled?.5:1}},[f.title])]})]}),dataSource:[{title:"禁用动画",action:t.createVNode(p.Switch,{checked:!((h=(c=e.settingValue)==null?void 0:c.animate)!=null&&h.disabled),size:"small",onChange:f=>{var S;return(S=e.onChange)==null?void 0:S.call(e,"animate","disabled",!f)}},null)},{title:"动画效果",disabled:(w=(m=e.settingValue)==null?void 0:m.animate)==null?void 0:w.disabled,action:t.createVNode(p.Select,{value:(B=(b=e.settingValue)==null?void 0:b.animate)==null?void 0:B.name,style:{width:"100px"},size:"small",disabled:(L=(g=e.settingValue)==null?void 0:g.animate)==null?void 0:L.disabled,getPopupContainer:f=>f&&f.parentNode?f.parentNode:f,onChange:f=>{var S;return(S=e.onChange)==null?void 0:S.call(e,"animate","name",f)}},Pe(o=et.map(f=>t.createVNode(p.Select.Option,{value:f.name},{default:()=>[f.alias]})))?o:{default:()=>[o]})},{title:"动画方向",disabled:(d=(r=e.settingValue)==null?void 0:r.animate)==null?void 0:d.disabled,action:t.createVNode(p.Select,{value:(F=(I=e.settingValue)==null?void 0:I.animate)==null?void 0:F.direction,style:{width:"100px"},size:"small",dropdownStyle:{minWidth:"120px"},disabled:(y=(x=e.settingValue)==null?void 0:x.animate)==null?void 0:y.disabled,getPopupContainer:f=>f&&f.parentNode?f.parentNode:f,onChange:f=>{var S;return(S=e.onChange)==null?void 0:S.call(e,"animate","direction",f)}},{default:()=>{var f;return[(f=et.find(S=>{var V,u;return S.name===((u=(V=e.settingValue)==null?void 0:V.animate)==null?void 0:u.name)}))==null?void 0:f.directions.map(S=>t.createVNode(p.Select.Option,{value:S},Pe(S)?S:{default:()=>[S]}))]}})}]},null)]))}}}),{preset:oa}=he,Ce=Object.keys(i.themeConfig).filter(e=>e!=="title"),tt={color:"#fff",fontSize:20},la=[{label:"fixedHeader",title:"固定 Header"},{label:"fixSiderbar",title:"固定侧边菜单"},{label:"splitMenus",title:"自动分割菜单"}],ia=[{label:"showTabsBar",title:"多标签"},{label:"fixedMultiTab",title:"固定多标签"}],at=e=>$.isBrowser()?{...J.pick(i.themeConfig,Ce),...e||{}}:J.cloneDeep(i.themeConfig),ue=(e,{slots:a})=>{var n;return t.createVNode("div",{style:{marginBottom:"24px"}},[t.createVNode("h3",{class:`${e.prefixCls}-body-title ${e.hashId}`.trim()},[e.title]),(n=a.default)==null?void 0:n.call(a)])},ra=t.defineComponent({name:"SettingDrawer",props:{themeOnly:Boolean,hideHintAlert:Boolean,hideCopyButton:Boolean,weakmode:Boolean,showProgress:Boolean,settings:{type:Object},colorList:{type:[Boolean,Array],default:()=>i.colorList},onChange:Function,onChangeLayout:Function},emits:["change","changeLayout"],setup(e){const{getPrefixCls:a}=Q(),n=a({suffixCls:"setting-drawer",isPor:!0}),{wrapSSR:l,hashId:o}=i.useProStyle("ProSettingDraw",[Jt],n),c=t.ref(!1),[h,m]=te.useState(!1),[w,b]=te.useState(!1),[B,g]=te.useState(!1),L=t.computed(()=>at(J.pick(e.settings,Ce))),[r,d]=te.useMergedState(()=>at(J.pick(e.settings,Ce)),{value:L,onChange:e.onChange}),I=t.computed(()=>e.colorList&&$.isArray(e.colorList)?e.colorList:[]),F=t.computed(()=>yt(t.unref(r))),{copy:x,copied:y,isSupported:f}=Se.useClipboard();t.watch(h,()=>{c.value||(c.value=!0)});const S=(u,N,M)=>{var j,A;const k=["header","sider"],K={};if(M&&k.includes(u)){K[u]={},K[u][M]=N,e.onChangeLayout&&e.onChangeLayout(J.pick(K,k));return}else u==="animate"?(K[u]={},K[u][M]=N,M==="name"&&(K[u].direction=(A=(j=oa.find(z=>z.name===N))==null?void 0:j.directions)==null?void 0:A[0])):K[u]=N;if(u==="colorWeak"){const z=document.querySelector("body");z&&(z.dataset.prosettingdrawer=N===!0?z.style.filter:z.dataset.prosettingdrawer||"none",N===!0&&(z.dataset.prosettingdrawer=z.style.filter),z.style.filter=N===!0?"invert(80%)":z.dataset.prosettingdrawer||"none",N||delete z.dataset.prosettingdrawer)}d($.merge(t.unref(r),{...Re(J.omit(K,k))}))},V=()=>{f.value&&x(JSON.stringify(t.unref(r)))};return t.watch(y,u=>{u&&p.message.success("拷贝成功,请到 config/default/themeConfig.js 中替换默认配置")}),()=>l(t.createVNode(p.Drawer,{width:300,closable:!1,open:h.value,rootClassName:`${n} ${o.value} ${h.value&&`${n}-show`} ${!c.value&&`${n}-trantion-none`}`,placement:"right",rootStyle:{zIndex:999},bodyStyle:{padding:0},onClose:()=>m(!1),handle:t.createVNode("div",{class:[`${n}-handle`,o.value],onClick:()=>m(!h.value)},[h.value?t.createVNode(Z.CloseOutlined,{style:tt},null):t.createVNode(Z.SettingOutlined,{style:tt},null)])},{default:()=>[t.createVNode("div",{class:[`${n}-wrapper`,o.value]},[t.createVNode(dt,null,{default:()=>[t.createVNode("div",{class:[`${n}-content`,o.value]},[t.createVNode(ue,{prefixCls:n,hashId:o.value,title:"整体风格设置"},{default:()=>[t.createVNode(Qe,{hashId:o.value,prefixCls:n,list:Ze,value:r.value.theme,configType:"theme",key:"navTheme",onChange:u=>S("theme",u)},null)]}),t.createVNode(ue,{hashId:o.value,title:t.createVNode("span",null,[t.createTextVNode("主题色"),t.createVNode("a",{style:{fontSize:"12px"},onClick:()=>b(!0)},[t.createTextVNode("更多配置")])]),prefixCls:n},{default:()=>[t.createVNode(Qt,{hashId:o.value,prefixCls:n,colorList:I.value,settingValue:r.value,onChange:(u,N)=>S(N||"primaryColor",u)},null)]}),!e.themeOnly&&t.createVNode(t.Fragment,null,[t.createVNode(p.Divider,null,null),t.createVNode(ue,{hashId:o.value,prefixCls:n,title:"导航模式"},{default:()=>[t.createVNode(Qe,{prefixCls:n,value:t.unref(r).layout,key:"layout",hashId:o.value,configType:"layout",list:Je,onChange:u=>S("layout",u)},null)]}),la.map(({label:u,title:N})=>t.createVNode(se,{label:N,disabled:t.unref(F)[u],value:t.unref(r)[u],prefixCls:n,hashId:o.value,valueKey:u,onChange:(M,k)=>S(M,k)},null)),t.createVNode(p.Divider,null,null),t.createVNode(ue,{hashId:o.value,prefixCls:n,title:t.createVNode("span",null,[t.createTextVNode("其他设置"),t.createVNode("a",{style:{fontSize:"12px"},onClick:()=>g(!0)},[t.createTextVNode("更多配置")])])},{default:()=>[ia.map(({label:u,title:N})=>t.createVNode(se,{label:N,disabled:t.unref(F)[u],value:t.unref(r)[u],prefixCls:n,hashId:o.value,valueKey:u,onChange:(M,k)=>S(M,k)},null)),e.weakmode&&t.createVNode(se,{label:"色弱模式",value:t.unref(r).colorWeak,prefixCls:n,hashId:o.value,valueKey:"colorWeak",onChange:(u,N)=>S(u,N)},null),e.showProgress&&t.createVNode(se,{label:"顶部进度条",value:t.unref(r).showProgressBar,prefixCls:n,hashId:o.value,valueKey:"showProgressBar",onChange:(u,N)=>S(u,N)},null)]})]),e.hideHintAlert&&e.hideCopyButton?null:t.createVNode(p.Divider,null,null),e.hideHintAlert?null:t.createVNode(p.Alert,{type:"warning",message:"配置栏只在开发环境用于预览,生产环境不会展现,请拷贝后手动修改配置文件",icon:t.createVNode(Z.NotificationOutlined,null,null),showIcon:!0,style:{marginBottom:"16px"}},null),e.hideCopyButton?null:t.createVNode(p.Button,{onClick:()=>V(),block:!0},{default:()=>[t.createVNode(Z.CopyOutlined,null,null),t.createTextVNode("拷贝设置")]})])]})]),t.createVNode(p.Drawer,{width:320,closable:!1,placement:"right",open:w.value,bodyStyle:{padding:0},onClose:()=>b(!1)},{default:()=>[t.createVNode(ta,{settingValue:r.value,onChange:(u,N,M)=>S(N||"primaryColor",u,M)},null)]}),t.createVNode(p.Drawer,{width:320,closable:!1,placement:"right",open:B.value,bodyStyle:{padding:0},onClose:()=>g(!1)},{default:()=>[t.createVNode(na,{settingValue:r.value,onChange:(u,N,M)=>S(u,M,N)},null)]})]}))}}),da=new i.Keyframe("backInLeft",{"0%":{opacity:.7,transform:"translateX(-2000px) scale(0.7)"},"80%":{opacity:.7,transform:"translateX(0px) scale(0.7)"},"100%":{opacity:1,transform:"scale(1)"}}),ca=new i.Keyframe("backInRight",{"0%":{opacity:.7,transform:"translateX(2000px) scale(0.7)"},"80%":{opacity:.7,transform:"translateX(0px) scale(0.7)"},"100%":{opacity:1,transform:"scale(1)"}}),sa=new i.Keyframe("backInUp",{"0%":{opacity:.7,transform:"translateY(1200px) scale(0.7)"},"80%":{opacity:.7,transform:"translateY(0px) scale(0.7)"},"100%":{opacity:1,transform:"scale(1)"}}),ua=new i.Keyframe("backInDown",{"0%":{opacity:.7,transform:"translateY(-1200px) scale(0.7)"},"80%":{opacity:.7,transform:"translateY(0px) scale(0.7)"},"100%":{opacity:1,transform:"scale(1)"}}),ma=new i.Keyframe("backOutLeft",{"0%":{opacity:1,transform:"scale(1)"},"20%":{opacity:.7,transform:"translateX(0px) scale(0.7)"},"100%":{opacity:.7,transform:"translateX(-2000px) scale(0.7)"}}),fa=new i.Keyframe("backOutRight",{"0%":{opacity:1,transform:"scale(1)"},"20%":{opacity:.7,transform:"translateX(0px) scale(0.7)"},"100%":{opacity:.7,transform:"translateX(2000px) scale(0.7)"}}),ha=new i.Keyframe("backOutUp",{"0%":{opacity:1,transform:"scale(1)"},"20%":{opacity:.7,transform:"translateY(0px) scale(0.7)"},"100%":{opacity:.7,transform:"translateY(-700px) scale(0.7)"}}),ga=new i.Keyframe("backOutDown",{"0%":{opacity:1,transform:"scale(1)"},"20%":{opacity:.7,transform:"translateY(0px) scale(0.7)"},"100%":{opacity:.7,transform:"translateY(700px) scale(0.7)"}}),ya=()=>({"&.backInLeft":{animationFillMode:"both",animationName:da},"&.backInRight":{animationFillMode:"both",animationName:ca},"&.backInUp":{animationFillMode:"both",animationName:sa},"&.backInDown":{animationFillMode:"both",animationName:ua}}),ba=()=>({"&.backOutLeft":{animationFillMode:"both",animationName:ma},"&.backOutRight":{animationFillMode:"both",animationName:fa},"&.backOutUp":{animationFillMode:"both",animationName:ha},"&.backOutDown":{animationFillMode:"both",animationName:ga}}),pa=new i.Keyframe("bounceIn",{"from,20%,40%,60%,80%,to":{animationTimingFunction:"cubic-bezier(0.215, 0.61, 0.355, 1)"},"0%":{opacity:0,transform:"scale3d(0.3, 0.3, 0.3)"},"20%":{transform:"scale3d(1.1, 1.1, 1.1)"},"40%":{transform:"scale3d(0.9, 0.9, 0.9)"},"60%":{transform:"scale3d(1.03, 1.03, 1.03)"},"80%":{transform:"scale3d(0.97, 0.97, 0.97)"},to:{opacity:1,transform:"scale3d(1, 1, 1)"}}),xa=new i.Keyframe("bounceInLeft",{"from,60%,75%,90%,to":{animationTimingFunction:"cubic-bezier(0.215, 0.61, 0.355, 1)"},"0%":{opacity:0,transform:"translate3d(-3000px, 0, 0) scaleX(3)"},"60%":{opacity:1,transform:"translate3d(25px, 0, 0) scaleX(1)"},"75%":{transform:"translate3d(-10px, 0, 0) scaleX(0.98)"},"90%":{transform:"translate3d(5px, 0, 0) scaleX(0.995)"},to:{transform:"translate3d(0, 0, 0)"}}),Ca=new i.Keyframe("bounceInRight",{"from,60%,75%,90%,to":{animationTimingFunction:"cubic-bezier(0.215, 0.61, 0.355, 1)"},from:{opacity:0,transform:"translate3d(3000px, 0, 0) scaleX(3)"},"60%":{opacity:1,transform:"translate3d(-25px, 0, 0) scaleX(1)"},"75%":{transform:"translate3d(10px, 0, 0) scaleX(0.98)"},"90%":{transform:"translate3d(-5px, 0, 0) scaleX(0.995)"},to:{transform:"translate3d(0, 0, 0)"}}),Sa=new i.Keyframe("bounceInDown",{"from,60%,75%,90%,to":{animationTimingFunction:"cubic-bezier(0.215, 0.61, 0.355, 1)"},"0%":{opacity:0,transform:"translate3d(0, -3000px, 0) scaleY(3)"},"60%":{opacity:1,transform:"translate3d(0, 25px, 0) scaleY(0.9)"},"75%":{transform:"translate3d(0, -10px, 0) scaleY(0.95)"},"90%":{transform:"translate3d(0, 5px, 0) scaleY(0.985)"},to:{transform:"translate3d(0, 0, 0)"}}),wa=new i.Keyframe("bounceInUp",{"from,60%,75%,90%,to":{animationTimingFunction:"cubic-bezier(0.215, 0.61, 0.355, 1)"},from:{opacity:0,transform:"translate3d(0, 3000px, 0) scaleY(5)"},"60%":{opacity:1,transform:"translate3d(0, -20px, 0) scaleY(0.9)"},"75%":{transform:"translate3d(0, 10px, 0) scaleY(0.95)"},"90%":{transform:"translate3d(0, -5px, 0) scaleY(0.985)"},to:{transform:"translate3d(0, 0, 0)"}}),Na=new i.Keyframe("bounceOut",{"20%":{transform:"scale3d(0.9, 0.9, 0.9)"},"50%,55%":{transform:"scale3d(1.1, 1.1, 1.1)"},"60%":{transform:"scale3d(1.03, 1.03, 1.03)"},to:{opacity:0,transform:"scale3d(0.3, 0.3, 0.3)"}}),Ia=new i.Keyframe("bounceOutLeft",{"20%":{opacity:1,transform:"translate3d(20px, 0, 0) scaleX(0.9)"},to:{opacity:0,transform:"translate3d(-2000px, 0, 0) scaleX(2)"}}),Ma=new i.Keyframe("bounceOutRight",{"20%":{opacity:1,transform:"translate3d(-20px, 0, 0) scaleX(0.9)"},to:{opacity:0,transform:"translate3d(2000px, 0, 0) scaleX(2)"}}),ka=new i.Keyframe("bounceOutDown",{"20%":{transform:"translate3d(0, 10px, 0) scaleY(0.985)"},"40%,45%":{opacity:1,transform:"translate3d(0, -20px, 0) scaleY(0.9)"},to:{opacity:0,transform:"translate3d(0, 2000px, 0) scaleY(3)"}}),Ba=new i.Keyframe("bounceOutUp",{"20%":{transform:"translate3d(0, -10px, 0) scaleY(0.985)"},"40%,45%":{opacity:1,transform:"translate3d(0, 20px, 0) scaleY(0.9)"},to:{opacity:0,transform:"translate3d(0, -2000px, 0) scaleY(3)"}}),Oa=()=>({"&.bounceIn":{animationFillMode:"both",animationDuration:`${.3*.75}s !important`,animationName:pa},"&.bounceInLeft":{animationFillMode:"both",animationName:xa},"&.bounceInRight":{animationFillMode:"both",animationName:Ca},"&.bounceInDown":{animationFillMode:"both",animationName:Sa},"&.bounceInUp":{animationFillMode:"both",animationName:wa}}),Fa=()=>({"&.bounceOut":{animationFillMode:"both",animationDuration:`${.3*.75}s !important`,animationName:Na},"&.bounceOutLeft":{animationFillMode:"both",animationName:Ia},"&.bounceOutRight":{animationFillMode:"both",animationName:Ma},"&.bounceOutDown":{animationFillMode:"both",animationName:ka},"&.bounceOutUp":{animationFillMode:"both",animationName:Ba}}),Ra=new i.Keyframe("fadeIn",{from:{opacity:0},to:{opacity:1}}),Va=new i.Keyframe("fadeInLeft",{from:{opacity:0,transform:"translate3d(-100%, 0, 0)"},to:{opacity:1,transform:"translate3d(0, 0, 0)"}}),Ta=new i.Keyframe("fadeInRight",{from:{opacity:0,transform:"translate3d(100%, 0, 0)"},to:{opacity:1,transform:"translate3d(0, 0, 0)"}}),$a=new i.Keyframe("fadeInDown",{from:{opacity:0,transform:"translate3d(0, -100%, 0)"},to:{opacity:1,transform:"translate3d(0, 0, 0)"}}),La=new i.Keyframe("fadeInUp",{from:{opacity:0,transform:"translate3d(0, 100%, 0)"},to:{opacity:1,transform:"translate3d(0, 0, 0)"}}),Ka=new i.Keyframe("fadeInDownBig",{from:{opacity:0,transform:"translate3d(0, -2000px, 0)"},to:{opacity:1,transform:"translate3d(0, 0, 0)"}}),Da=new i.Keyframe("fadeInUpBig",{from:{opacity:0,transform:"translate3d(0, 2000px, 0)"},to:{opacity:1,transform:"translate3d(0, 0, 0)"}}),za=new i.Keyframe("fadeInLeftBig",{from:{opacity:0,transform:"translate3d(-2000px, 0, 0)"},to:{opacity:1,transform:"translate3d(0, 0, 0)"}}),Ha=new i.Keyframe("fadeInRightBig",{from:{opacity:0,transform:"translate3d(2000px, 0, 0)"},to:{opacity:1,transform:"translate3d(0, 0, 0)"}}),Aa=new i.Keyframe("fadeInTopLeft",{from:{opacity:0,transform:"translate3d(-100%, -100%, 0)"},to:{opacity:1,transform:"translate3d(0, 0, 0)"}}),ja=new i.Keyframe("fadeInBottomRight",{from:{opacity:0,transform:"translate3d(100%, 100%, 0)"},to:{opacity:1,transform:"translate3d(0, 0, 0)"}}),Wa=new i.Keyframe("fadeInTopRight",{from:{opacity:0,transform:"translate3d(100%, -100%, 0)"},to:{opacity:1,transform:"translate3d(0, 0, 0)"}}),va=new i.Keyframe("fadeInBottomLeft",{from:{opacity:0,transform:"translate3d(-100%, 100%, 0)"},to:{opacity:1,transform:"translate3d(0, 0, 0)"}}),Ea=new i.Keyframe("fadeOut",{from:{opacity:1},to:{opacity:0}}),Ua=new i.Keyframe("fadeOutLeft",{from:{opacity:1},to:{opacity:0,transform:"translate3d(-100%, 0, 0)"}}),Xa=new i.Keyframe("fadeOutRight",{from:{opacity:1},to:{opacity:0,transform:"translate3d(100%, 0, 0)"}}),Ya=new i.Keyframe("fadeOutDown",{from:{opacity:1},to:{opacity:0,transform:"translate3d(0, 100%, 0)"}}),qa=new i.Keyframe("fadeOutUp",{from:{opacity:1},to:{opacity:0,transform:"translate3d(0, -100%, 0)"}}),Ga=new i.Keyframe("fadeOutDownBig",{from:{opacity:1},to:{opacity:0,transform:"translate3d(0, 2000px, 0)"}}),_a=new i.Keyframe("fadeOutUpBig",{from:{opacity:1},to:{opacity:0,transform:"translate3d(0, -2000px, 0)"}}),Za=new i.Keyframe("fadeOutLeftBig",{from:{opacity:1},to:{opacity:0,transform:"translate3d(-2000px, 0, 0)"}}),Ja=new i.Keyframe("fadeOutRightBig",{from:{opacity:1},to:{opacity:0,transform:"translate3d(2000px, 0, 0)"}}),Qa=new i.Keyframe("fadeOutTopLeft",{from:{opacity:1,transform:"translate3d(0, 0, 0)"},to:{opacity:0,transform:"translate3d(-100%, -100%, 0)"}}),Pa=new i.Keyframe("fadeOutBottomRight",{from:{opacity:1,transform:"translate3d(0, 0, 0)"},to:{opacity:0,transform:"translate3d(100%, 100%, 0)"}}),en=new i.Keyframe("fadeOutTopRight",{from:{opacity:1,transform:"translate3d(0, 0, 0)"},to:{opacity:0,transform:"translate3d(100%, -100%, 0)"}}),tn=new i.Keyframe("fadeOutBottomLeft",{from:{opacity:1,transform:"translate3d(0, 0, 0)"},to:{opacity:0,transform:"translate3d(-100%, 100%, 0)"}}),an=()=>({"&.fadeIn":{animationFillMode:"both",animationName:Ra},"&.fadeInLeft":{animationFillMode:"both",animationName:Va},"&.fadeInRight":{animationFillMode:"both",animationName:Ta},"&.fadeInDown":{animationFillMode:"both",animationName:$a},"&.fadeInUp":{animationFillMode:"both",animationName:La},"&.fadeInLeftBig":{animationFillMode:"both",animationName:za},"&.fadeInRightBig":{animationFillMode:"both",animationName:Ha},"&.fadeInUpBig":{animationFillMode:"both",animationName:Da},"&.fadeInDownBig":{animationFillMode:"both",animationName:Ka},"&.fadeInTopLeft":{animationFillMode:"both",animationName:Aa},"&.fadeInBottomRight":{animationFillMode:"both",animationName:ja},"&.fadeInTopRight":{animationFillMode:"both",animationName:Wa},"&.fadeInBottomLeft":{animationFillMode:"both",animationName:va}}),nn=()=>({"&.fadeOut":{animationFillMode:"both",animationName:Ea},"&.fadeOutLeft":{animationFillMode:"both",animationName:Ua},"&.fadeOutRight":{animationFillMode:"both",animationName:Xa},"&.fadeOutDown":{animationFillMode:"both",animationName:Ya},"&.fadeOutUp":{animationFillMode:"both",animationName:qa},"&.fadeOutDownBig":{animationFillMode:"both",animationName:Ga},"&.fadeOutUpBig":{animationFillMode:"both",animationName:_a},"&.fadeOutLeftBig":{animationFillMode:"both",animationName:Za},"&.fadeOutRightBig":{animationFillMode:"both",animationName:Ja},"&.fadeOutTopLeft":{animationFillMode:"both",animationName:Qa},"&.fadeOutBottomRight":{animationFillMode:"both",animationName:Pa},"&.fadeOutTopRight":{animationFillMode:"both",animationName:en},"&.fadeOutBottomLeft":{animationFillMode:"both",animationName:tn}}),on=new i.Keyframe("flipInX",{from:{opacity:0,animationTimingFunction:"ease-in",transform:"perspective(400px) rotate3d(1, 0, 0, 90deg)"},"40%":{animationTimingFunction:"ease-in",transform:"perspective(400px) rotate3d(1, 0, 0, -20deg)"},"60%":{opacity:1,transform:"perspective(400px) rotate3d(1, 0, 0, 10deg)"},"80%":{transform:"perspective(400px) rotate3d(1, 0, 0, -5deg)"},to:{transform:"perspective(400px)"}}),ln=new i.Keyframe("flipInY",{from:{opacity:0,animationTimingFunction:"ease-in",transform:"perspective(400px) rotate3d(0, 1, 0, 90deg)"},"40%":{animationTimingFunction:"ease-in",transform:"perspective(400px) rotate3d(0, 1, 0, -20deg)"},"60%":{opacity:1,transform:"perspective(400px) rotate3d(0, 1, 0, 10deg)"},"80%":{transform:"perspective(400px) rotate3d(0, 1, 0, -5deg)"},to:{transform:"perspective(400px)"}}),rn=new i.Keyframe("flipOutX",{from:{transform:"perspective(400px)"},"40%":{opacity:1,transform:"perspective(400px) rotate3d(1, 0, 0, -20deg)"},to:{opacity:0,transform:"perspective(400px) rotate3d(1, 0, 0, 90deg)"}}),dn=new i.Keyframe("flipOutY",{from:{transform:"perspective(400px)"},"40%":{opacity:1,transform:"perspective(400px) rotate3d(0, 1, 0, -15deg)"},to:{opacity:0,transform:"perspective(400px) rotate3d(0, 1, 0, 90deg)"}}),cn=()=>({"&.flipInX":{animationFillMode:"both",backfaceVisibility:"visible !important",animationName:on},"&.flipInY":{animationFillMode:"both",backfaceVisibility:"visible !important",animationName:ln}}),sn=()=>({"&.flipOutX":{animationFillMode:"both",backfaceVisibility:"visible !important",animationDuration:`${.3*.75}s !important`,animationName:rn},"&.flipOutY":{animationFillMode:"both",backfaceVisibility:"visible !important",animationDuration:`${.3*.75}s !important`,animationName:dn}}),un=new i.Keyframe("lightSpeedInLeft",{from:{opacity:0,transform:"translate3d(-100%, 0, 0) skewX(30deg)"},"60%":{opacity:1,transform:"skewX(-20deg)"},"80%":{transform:"skewX(5deg)"},to:{transform:"translate3d(0, 0, 0)"}}),mn=new i.Keyframe("lightSpeedInRight",{from:{opacity:0,transform:"translate3d(100%, 0, 0) skewX(-30deg)"},"60%":{opacity:1,transform:"skewX(20deg)"},"80%":{transform:"skewX(-5deg)"},to:{transform:"translate3d(0, 0, 0)"}}),fn=new i.Keyframe("lightSpeedOutLeft",{from:{opacity:1},to:{opacity:0,transform:"translate3d(-100%, 0, 0) skewX(-30deg)"}}),hn=new i.Keyframe("lightSpeedOutRight",{from:{opacity:1},to:{opacity:0,transform:"translate3d(100%, 0, 0) skewX(30deg)"}}),gn=()=>({"&.lightSpeedInLeft":{animationFillMode:"both",animationTimingFunction:"ease-out",animationName:un},"&.lightSpeedInRight":{animationFillMode:"both",animationTimingFunction:"ease-out",animationName:mn}}),yn=()=>({"&.lightSpeedOutLeft":{animationFillMode:"both",animationTimingFunction:"ease-in",animationName:fn},"&.lightSpeedOutRight":{animationFillMode:"both",animationTimingFunction:"ease-in",animationName:hn}}),bn=new i.Keyframe("rotateIn",{from:{opacity:0,transform:"rotate3d(0, 0, 1, -200deg)"},to:{opacity:1,transform:"translate3d(0, 0, 0)"}}),pn=new i.Keyframe("rotateInDownLeft",{from:{opacity:0,transform:"rotate3d(0, 0, 1, -45deg)"},to:{opacity:1,transform:"translate3d(0, 0, 0)"}}),xn=new i.Keyframe("rotateInDownRight",{from:{opacity:0,transform:"rotate3d(0, 0, 1, 45deg)"},to:{opacity:1,transform:"translate3d(0, 0, 0)"}}),Cn=new i.Keyframe("rotateInUpLeft",{from:{opacity:0,transform:"rotate3d(0, 0, 1, 45deg)"},to:{opacity:1,transform:"translate3d(0, 0, 0)"}}),Sn=new i.Keyframe("rotateInUpRight",{from:{opacity:0,transform:"rotate3d(0, 0, 1, -90deg)"},to:{opacity:1,transform:"translate3d(0, 0, 0)"}}),wn=new i.Keyframe("rotateOut",{from:{opacity:1},to:{opacity:0,transform:"rotate3d(0, 0, 1, 200deg)"}}),Nn=new i.Keyframe("rotateOutDownLeft",{from:{opacity:1},to:{opacity:0,transform:"rotate3d(0, 0, 1, 45deg)"}}),In=new i.Keyframe("rotateOutDownRight",{from:{opacity:1},to:{opacity:0,transform:"rotate3d(0, 0, 1, -45deg)"}}),Mn=new i.Keyframe("rotateOutUpLeft",{from:{opacity:1},to:{opacity:0,transform:"rotate3d(0, 0, 1, -45deg)"}}),kn=new i.Keyframe("rotateOutUpRight",{from:{opacity:1},to:{opacity:0,transform:"rotate3d(0, 0, 1, 90deg)"}}),Bn=()=>({"&.rotateIn":{animationFillMode:"both",transformOrigin:"center",animationName:bn},"&.rotateInDownLeft":{animationFillMode:"both",transformOrigin:"left bottom",animationName:pn},"&.rotateInDownRight":{animationFillMode:"both",transformOrigin:"right bottom",animationName:xn},"&.rotateInUpLeft":{animationFillMode:"both",transformOrigin:"left bottom",animationName:Cn},"&.rotateInUpRight":{animationFillMode:"both",transformOrigin:"right bottom",animationName:Sn}}),On=()=>({"&.rotateOut":{animationFillMode:"both",transformOrigin:"center",animationName:wn},"&.rotateOutDownLeft":{animationFillMode:"both",transformOrigin:"left bottom",animationName:Nn},"&.rotateOutDownRight":{animationFillMode:"both",transformOrigin:"right bottom",animationName:In},"&.rotateOutUpLeft":{animationFillMode:"both",transformOrigin:"left bottom",animationName:Mn},"&.rotateOutUpRight":{animationFillMode:"both",transformOrigin:"right bottom",animationName:kn}}),Fn=new i.Keyframe("rollIn",{from:{opacity:0,transform:"translate3d(-100%, 0, 0) rotate3d(0, 0, 1, -120deg)"},to:{opacity:1,transform:"translate3d(0, 0, 0)"}}),Rn=new i.Keyframe("rollOut",{from:{opacity:1},to:{opacity:0,transform:"translate3d(100%, 0, 0) rotate3d(0, 0, 1, 120deg)"}}),Vn=()=>({"&.rollIn":{animationFillMode:"both",animationName:Fn}}),Tn=()=>({"&.rollOut":{animationFillMode:"both",animationName:Rn}}),$n=new i.Keyframe("zoomIn",{from:{opacity:0,transform:"scale3d(0.3, 0.3, 0.3)"},"50%":{opacity:1}}),Ln=new i.Keyframe("zoomInDown",{from:{opacity:0,transform:"scale3d(0.1, 0.1, 0.1) translate3d(0, -1000px, 0)",animationTimingFunction:"cubic-bezier(0.55, 0.055, 0.675, 0.19)"},"60%":{opacity:1,transform:"scale3d(0.475, 0.475, 0.475) translate3d(0, 60px, 0)",animationTimingFunction:"cubic-bezier(0.175, 0.885, 0.32, 1)"}}),Kn=new i.Keyframe("zoomInLeft",{from:{opacity:0,transform:"scale3d(0.1, 0.1, 0.1) translate3d(-1000px, 0, 0)",animationTimingFunction:"cubic-bezier(0.55, 0.055, 0.675, 0.19)"},"60%":{opacity:1,transform:"scale3d(0.475, 0.475, 0.475) translate3d(10px, 0, 0)",animationTimingFunction:"cubic-bezier(0.175, 0.885, 0.32, 1)"}}),Dn=new i.Keyframe("zoomInRight",{from:{opacity:0,transform:"scale3d(0.1, 0.1, 0.1) translate3d(1000px, 0, 0)",animationTimingFunction:"cubic-bezier(0.55, 0.055, 0.675, 0.19)"},"60%":{opacity:1,transform:"scale3d(0.475, 0.475, 0.475) translate3d(-10px, 0, 0)",animationTimingFunction:"cubic-bezier(0.175, 0.885, 0.32, 1)"}}),zn=new i.Keyframe("zoomInUp",{from:{opacity:0,transform:"scale3d(0.1, 0.1, 0.1) translate3d(0, 1000px, 0)",animationTimingFunction:"cubic-bezier(0.55, 0.055, 0.675, 0.19)"},"60%":{opacity:1,transform:"scale3d(0.475, 0.475, 0.475) translate3d(0, -60px, 0)",animationTimingFunction:"cubic-bezier(0.175, 0.885, 0.32, 1)"}}),Hn=new i.Keyframe("zoomOut",{from:{opacity:1},"50%":{opacity:0,transform:"scale3d(0.3, 0.3, 0.3)"},to:{opacity:0}}),An=new i.Keyframe("zoomOutDown",{"40%":{opacity:1,transform:"scale3d(0.475, 0.475, 0.475) translate3d(0, -60px, 0)",animationTimingFunction:"cubic-bezier(0.55, 0.055, 0.675, 0.19)"},to:{opacity:0,transform:"scale3d(0.1, 0.1, 0.1) translate3d(0, 2000px, 0)",animationTimingFunction:"cubic-bezier(0.175, 0.885, 0.32, 1)"}}),jn=new i.Keyframe("zoomOutLeft",{"40%":{opacity:1,transform:"scale3d(0.475, 0.475, 0.475) translate3d(42px, 0, 0)"},to:{opacity:0,transform:"scale(0.1) translate3d(-2000px, 0, 0)"}}),Wn=new i.Keyframe("zoomOutRight",{"40%":{opacity:1,transform:"scale3d(0.475, 0.475, 0.475) translate3d(-42px, 0, 0)"},to:{opacity:0,transform:"scale(0.1) translate3d(2000px, 0, 0)"}}),vn=new i.Keyframe("zoomOutUp",{"40%":{opacity:1,transform:"scale3d(0.475, 0.475, 0.475) translate3d(0, 60px, 0)",animationTimingFunction:"cubic-bezier(0.55, 0.055, 0.675, 0.19)"},to:{opacity:0,transform:"scale3d(0.1, 0.1, 0.1) translate3d(0, -2000px, 0)",animationTimingFunction:"cubic-bezier(0.175, 0.885, 0.32, 1)"}}),En=()=>({"&.zoomIn":{animationFillMode:"both",animationName:$n},"&.zoomInDown":{animationFillMode:"both",animationName:Ln},"&.zoomInLeft":{animationFillMode:"both",animationName:Kn},"&.zoomInRight":{animationFillMode:"both",animationName:Dn},"&.zoomInUp":{animationFillMode:"both",animationName:zn}}),Un=()=>({"&.zoomOut":{animationFillMode:"both",animationName:Hn},"&.zoomOutDown":{animationFillMode:"both",transformOrigin:"center bottom",animationName:An},"&.zoomOutLeft":{animationFillMode:"both",transformOrigin:"left center",animationName:jn},"&.zoomOutRight":{animationFillMode:"both",transformOrigin:"right center",animationName:Wn},"&.zoomOutUp":{animationFillMode:"both",transformOrigin:"center bottom",animationName:vn}}),Xn=new i.Keyframe("slideInDown",{from:{transform:"translate3d(0, -100%, 0)",visibility:"visible"},to:{transform:"translate3d(0, 0, 0)"}}),Yn=new i.Keyframe("slideInLeft",{from:{transform:"translate3d(-100%, 0, 0)",visibility:"visible"},to:{transform:"translate3d(0, 0, 0)"}}),qn=new i.Keyframe("slideInRight",{from:{transform:"translate3d(100%, 0, 0)",visibility:"visible"},to:{transform:"translate3d(0, 0, 0)"}}),Gn=new i.Keyframe("slideInUp",{from:{transform:"translate3d(0, 100%, 0)",visibility:"visible"},to:{transform:"translate3d(0, 0, 0)"}}),_n=new i.Keyframe("slideOutDown",{from:{transform:"translate3d(0, 0, 0)"},to:{transform:"translate3d(0, 100%, 0)",visibility:"hidden"}}),Zn=new i.Keyframe("slideOutLeft",{from:{transform:"translate3d(0, 0, 0)"},to:{transform:"translate3d(-100%, 0, 0)",visibility:"hidden"}}),Jn=new i.Keyframe("slideOutRight",{from:{transform:"translate3d(0, 0, 0)"},to:{transform:"translate3d(100%, 0, 0)",visibility:"hidden"}}),Qn=new i.Keyframe("slideOutUp",{from:{transform:"translate3d(0, 0, 0)"},to:{transform:"translate3d(0, -100%, 0)",visibility:"hidden"}}),Pn=()=>({"&.slideInDown":{animationFillMode:"both",animationName:Xn},"&.slideInLeft":{animationFillMode:"both",animationName:Yn},"&.slideInRight":{animationFillMode:"both",animationName:qn},"&.slideInUp":{animationFillMode:"both",animationName:Gn}}),eo=()=>({"&.slideOutDown":{animationFillMode:"both",animationName:_n},"&.slideOutLeft":{animationFillMode:"both",animationName:Zn},"&.slideOutRight":{animationFillMode:"both",animationName:Jn},"&.slideOutUp":{animationFillMode:"both",animationName:Qn}}),to=e=>({[e.componentCls]:{"&-enter":{background:"transparent",animationDuration:".3s !important",...ya(),...Oa(),...an(),...cn(),...gn(),...Bn(),...Vn(),...En(),...Pn()},"&-leave":{display:"none",background:"transparent",animationDuration:".3s !important",...ba(),...Fa(),...nn(),...sn(),...yn(),...On(),...Tn(),...Un(),...eo()}}});function ao(e){return i.useStyle("LayoutPageTranstion",a=>{const n=i.mergeToken(a);return[to(n)]},e)}const no=t.defineComponent({name:"PageTranstion",props:{disabled:{type:Boolean,default:!1},reverse:{type:Boolean,default:!0},name:{type:String,default:"bounce"},direction:String},setup(e,{slots:a}){const n=$.getPrefixCls({suffixCls:"page-transtion",isPor:!0}),{wrapSSR:l,hashId:o}=ao(n),c=(b,B)=>{if(b.length===0||b==="x"||b==="y")return b;let g=B.indexOf(b);return g=g%2===1?g-1:g+1,B[g]},h=b=>{const B=he.preset.find(r=>e.name===r.name);if(B===void 0)return"";let g="";e.direction===void 0?g=B.directions[0]:g=B.directions.find(r=>r===e.direction)||"",g=g===void 0||g==="default"?"":g,g!==""&&(g=b&&e.reverse?c(g,B.directions):g,g=g[0].toUpperCase()+g.substring(1));const L=b?"Out":"In";return B.name+L+g},m=t.computed(()=>[h(!1),`${n}-enter`,o.value].join(" ")),w=t.computed(()=>[h(!0),`${n}-leave`,o.value].join(" "));return()=>{var b;return e.disabled?(b=a.default)==null?void 0:b.call(a):l(t.createVNode(t.Transition,{enterActiveClass:m.value,leaveActiveClass:w.value},{default:()=>{var B;return[(B=a.default)==null?void 0:B.call(a)]}}))}}});O.BaseMenu=ye,O.DefaultHeader=qe,O.GProLayout=Gt,O.GlobalFooter=de,O.PageContainer=Rt,O.PageLoading=Ne,O.PageTranstion=no,O.SettingDrawer=ra,O.SiderMenuWrapper=ie,O.WrapContent=ce,O.baseMenuProps=ae,O.clearMenuItem=ke,O.createContext=Ve,O.createRouteContext=$e,O.flatMap=Be,O.getMatchedList=gt,O.getMenuData=_t,O.getMenuFirstChildren=Oe,O.getMenuFirstLastChildPath=Fe,O.handleThemeConfig=Re,O.hanlePathKey=E,O.provideProLayoutContext=Le,O.useContext=Te,O.useProLayoutContext=Q,Object.defineProperty(O,Symbol.toStringTag,{value:"Module"})});
1
+ (function(O,t){typeof exports=="object"&&typeof module<"u"?t(exports,require("vue"),require("ant-design-vue"),require("@gx-design-vue/pro-app"),require("vue-router"),require("@ant-design/icons-vue"),require("@gx-design-vue/pro-utils"),require("@gx-design-vue/pro-provider"),require("vue-types"),require("lodash-es"),require("@gx-design-vue/pro-watermark"),require("@gx-design-vue/pro-hooks"),require("dayjs"),require("@vueuse/core"),require("@gx-design-vue/scrollbar"),require("@gx-design-vue/color-picker")):typeof define=="function"&&define.amd?define(["exports","vue","ant-design-vue","@gx-design-vue/pro-app","vue-router","@ant-design/icons-vue","@gx-design-vue/pro-utils","@gx-design-vue/pro-provider","vue-types","lodash-es","@gx-design-vue/pro-watermark","@gx-design-vue/pro-hooks","dayjs","@vueuse/core","@gx-design-vue/scrollbar","@gx-design-vue/color-picker"],t):(O=typeof globalThis<"u"?globalThis:O||self,t(O.ProLayout={},O.vue,O.antDesignVue,O.proApp,O.vueRouter,O.iconsVue,O.proUtils,O.ProConfigProvider,O.vueTypes,O.lodashEs,O.proWatermark,O.proHooks,O.dayjs,O.core,O.GScrollbars,O.colorPicker))})(this,function(O,t,p,fe,oe,Z,$,i,lt,J,it,te,rt,Se,dt,we){"use strict";const Ne=t.defineComponent({name:"PageLoading",props:{...p.Spin.props},setup(e){const{indicator:a}=fe.useProAppContext();return t.createVNode("div",{style:{paddingTop:"100px",textAlign:"center"}},[t.createVNode(p.Spin,t.mergeProps(e,{indicator:a==null?void 0:a.value}),null)])}}),D=lt.createTypes({func:void 0,bool:void 0,string:void 0,number:void 0,array:void 0,object:void 0,integer:void 0});D.extend([{name:"looseBool",getter:!0,type:Boolean,default:void 0},{name:"style",getter:!0,type:[String,Object],default:void 0},{name:"VueNode",getter:!0,type:null}]);const P={theme:{type:String,default:i.themeConfig.theme},layout:{type:String,default:i.themeConfig.layout},wideWidth:{type:Number,default:i.themeConfig.wideWidth},splitMenus:{type:Boolean,default:i.themeConfig.splitMenus},fixedMultiTab:{type:Boolean,default:i.themeConfig.fixedMultiTab},showProgressBar:{type:Boolean,default:i.themeConfig.showProgressBar},fixedHeader:{type:Boolean,default:i.themeConfig.fixedHeader},fixSiderbar:{type:Boolean,default:i.themeConfig.fixSiderbar},showTabsBar:{type:Boolean,default:i.themeConfig.showTabsBar},showFullScreen:{type:Boolean,default:i.themeConfig.showFullScreen},autoHideHeader:{type:Boolean,default:i.themeConfig.autoHideHeader},headerHeight:{type:Number,default:i.themeConfig.headerHeight},title:{type:String,default:i.themeConfig.title},iconfontUrl:{type:String,default:i.themeConfig.iconfontUrl},animate:{type:Object,default:i.themeConfig.animate},primaryColor:{type:String,default:i.themeConfig.primaryColor}},ee={renderKey:D.string.def("menuHeaderRender"),title:P.title,layout:P.layout,logo:{type:[Object,String,Function],default:()=>{}},logoStyle:{type:Object,default:()=>{}},logoDirection:{type:String,default:"horizontal"},drawer:D.looseBool,collapsed:D.looseBool,menuHeaderRender:{type:[Object,Function],default:()=>{}},onMenuHeaderClick:Function},ae={...P,mode:{type:String,default:"inline"},menuData:{type:Array,default:()=>[]},theme:{type:String,default:"dark"},layout:{type:String,default:"mix"},collapsed:{type:Boolean,default:()=>!1},openKeys:{type:[Array,Boolean],default:()=>[]},selectedKeys:{type:Array,default:()=>[]},menuProps:{type:Object,default:()=>null},menuItemRender:{type:[Function,Boolean],default:()=>{}},subMenuItemRender:{type:[Function,Boolean],default:()=>{}},onClick:[Function,Object],onOpenKeys:{type:Function},onSelect:{type:Function}},G={...P,...ae,menuLoading:D.looseBool,logo:ee.logo,logoStyle:ee.logoStyle,logoDirection:ee.logoDirection,siderWidth:D.number.def(208),headerHeight:D.number.def(48),collapsedWidth:D.number.def(48),links:{type:[Function,Object,Array],default:()=>{}},menuHeaderRender:{type:[Function,Object],default:()=>{}},menuFooterRender:{type:[Function,Object,Boolean],default:()=>!1},menuContentRender:{type:[Function,Object,Boolean],default:()=>!1},menuExtraRender:{type:[Function,Object,Boolean],default:()=>!1},collapsedButtonRender:{type:[Function,Object,Boolean],default:()=>{}},breakpoint:{type:[Object,Boolean],default:()=>!1},isMobile:D.looseBool,matchMenuKeys:{type:Array,default:()=>[]},onMenuHeaderClick:D.func,onMenuClick:D.func,onCollapse:{type:Function}},ct=/(((^https?:(?:\/\/)?)(?:[-;:&=+$,\w]+@)?[A-Za-z0-9.-]+(?::\d+)?|(?:www.|[-;:&=+$,\w]+@)[A-Za-z0-9.-]+)((?:\/[+~%/.\w-]*)?\??[-+=&;%@.\w]*#?\w*))$/,Ie=e=>ct.test(e);function st(e){return/\w.(png|jpg|jpeg|svg|webp|gif|bmp)$/i.test(e)}function Me(e,a,n,l){var c,g,m,w,b,B,h,L,r,d,I,F,x,y,f,S,V,u,N,M,k,K,j,A,z,W,Y,q,X,_,s,C,R,T;const o={...e};return n==="light"?(o.colorItemBg=(g=(c=a.layout)==null?void 0:c[l])==null?void 0:g.colorBgMenu,o.colorSubItemBg=(w=(m=a.layout)==null?void 0:m[l])==null?void 0:w.colorSubItemBg,o.colorItemBgSelected=(B=(b=a.layout)==null?void 0:b[l])==null?void 0:B.colorBgMenuItemSelected,o.colorItemBgSelectedHorizontal=(L=(h=a.layout)==null?void 0:h[l])==null?void 0:L.colorBgMenuItemSelected,o.colorItemText=(d=(r=a.layout)==null?void 0:r[l])==null?void 0:d.colorTextMenu,o.colorItemTextHover=(F=(I=a.layout)==null?void 0:I[l])==null?void 0:F.colorTextMenuHover,o.colorItemTextSelected=(y=(x=a.layout)==null?void 0:x[l])==null?void 0:y.colorTextMenuSelected,o.colorItemTextSelectedHorizontal=(S=(f=a.layout)==null?void 0:f[l])==null?void 0:S.colorTextMenuSelected,l==="sider"&&(o.colorItemBgHover=(u=(V=a.layout)==null?void 0:V[l])==null?void 0:u.colorBgMenuItemHover)):n==="dark"&&(o.colorItemBg=(M=(N=a.layout)==null?void 0:N[l])==null?void 0:M.colorDarkBgMenu,o.colorSubItemBg=(K=(k=a.layout)==null?void 0:k[l])==null?void 0:K.colorDarkSubItemBg,o.colorItemBgSelected=(A=(j=a.layout)==null?void 0:j[l])==null?void 0:A.colorDarkBgMenuItemSelected,o.colorItemBgSelectedHorizontal=(W=(z=a.layout)==null?void 0:z[l])==null?void 0:W.colorDarkBgMenuItemSelected,o.colorItemText=(q=(Y=a.layout)==null?void 0:Y[l])==null?void 0:q.colorDarkTextMenu,o.colorItemTextHover=(_=(X=a.layout)==null?void 0:X[l])==null?void 0:_.colorDarkTextMenuHover,o.colorItemTextSelected=(C=(s=a.layout)==null?void 0:s[l])==null?void 0:C.colorDarkTextMenuSelected,o.colorItemTextSelectedHorizontal=(T=(R=a.layout)==null?void 0:R[l])==null?void 0:T.colorDarkTextMenuSelected,l==="header"&&(o.colorActiveBarHeight=0)),o}const ut=["left","right"],ne=["left","right","down","up"],mt=["downBig","upBig","leftBig","rightBig"],ft=["topLeft","bottomRight","topRight","bottomLeft"],ht=["downLeft","upRight","downRight","upLeft"],he={preset:[{name:"back",alias:"渐近",directions:ne},{name:"bounce",alias:"弹跳",directions:ne.concat("default")},{name:"fade",alias:"淡化",directions:ne.concat(mt).concat(ft).concat("default")},{name:"flip",alias:"翻转",directions:["x","y"]},{name:"lightSpeed",alias:"光速",directions:ut},{name:"rotate",alias:"旋转",directions:ht.concat("default")},{name:"roll",alias:"翻滚",directions:["default"]},{name:"zoom",alias:"缩放",directions:ne.concat("default")},{name:"slide",alias:"滑动",directions:ne}]};function ke(e){return e.map(a=>{var l;const n={...a};if((l=n.meta)!=null&&l.hideInMenu)return null;if(n&&(n!=null&&n.children)){if(n.children.some(o=>{var c;return o&&!((c=o.meta)!=null&&c.hideInMenu)}))return{...n,children:ke(n.children)};delete n.children}return n}).filter(a=>a)}function Be(e){return e.map(a=>{var l;const n={...a};return(l=n.meta)!=null&&l.hideInMenu?null:(n.linkPath=Fe(n.children||[]),n.children&&delete n.children,n)}).filter(a=>a)}function Oe(e,a){const n=(a||"").split("/").length===2?a||"":`/${(a||"").split("/")[1]}`,l=e.find(o=>o.path===n);return a===void 0?[]:(l==null?void 0:l.children)||[]}function Fe(e){let a="";const n=function(o){let c="";return o.children&&o.children.length>0?c=n(o.children[0]):c=o.path,c},l=e==null?void 0:e.filter(o=>!o.hidden);if(l.length>0&&l[0].children&&l[0].children.length>0)a=n(l[0].children[0]);else{const o=l.length>0?l[0]:void 0;a=(o==null?void 0:o.path)||""}return a}function gt(e,a){var l,o;const n=((o=(l=e.find(c=>c.path===a))==null?void 0:l.meta)==null?void 0:o.key)||"";if(n){const c=[],g=n.split("-");for(let m=0;m<g.length;m+=1)c.push(J.cloneDeep(g).splice(0,m+1).join("-"));return e.filter(m=>c.some(w=>{var b;return w===((b=m==null?void 0:m.meta)==null?void 0:b.key)||""}))}return[]}function Re(e){return e.layout==="mix"&&(e.fixSiderbar=!0,e.fixedHeader=!0,e.splitMenus=!0),e.layout==="top"&&(e.fixSiderbar=!1,e.fixedHeader=!0,e.splitMenus=!1),e.layout==="simple"&&(e.splitMenus=!1,e.showTabsBar=!1),e.layout==="side"&&(e.splitMenus=!1),e.layout==="wide"&&(e.splitMenus=!1,e.fixSiderbar=!1,e.fixedHeader=!0,e.showTabsBar=!1,e.fixedMultiTab=!1),{...e}}function yt(e){const a=["showTabsBar","fixedMultiTab","fixSiderbar","fixedHeader","splitMenus"];let l=Object.keys(e).reduce((o,c)=>(o[c]=!1,o),{});return l=bt(l,a),e.layout==="mix"&&(l.fixSiderbar=!0,l.fixedHeader=!0),e.layout==="side"&&(l.splitMenus=!0),e.layout==="simple"&&(l.splitMenus=!0,l.fixedHeader=!0,l.showTabsBar=!0,l.fixedMultiTab=!0),e.layout==="wide"&&(l.splitMenus=!0,l.fixedHeader=!0,l.fixSiderbar=!0,l.showTabsBar=!0,l.fixedMultiTab=!0),l}function bt(e,a){return{...a.reduce((n,l)=>({...n,[l]:e[l]}),{})}}const Ve=(e=Symbol(),a="Context.Provider")=>t.defineComponent({name:a,props:{value:{type:Object,required:!0}},setup(l,{slots:o}){return t.provide(e,t.readonly(l.value)),()=>{var c;return(c=o.default)==null?void 0:c.call(o)}}}),Te=(e=Symbol(),a)=>t.inject(e,a||{}),ge=Symbol("pro-layout-context"),$e=()=>Ve(ge,"ProLayoutContext.Provider"),Le=e=>{t.provide(ge,e)},Q=()=>Te(ge);$e();function Ke(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!t.isVNode(e)}const le=e=>{const{icon:a,iconType:n,iconfontUrl:l}=e;if(!a)return null;if(typeof a=="string"&&a!==""){if(Ie(a)||st(a))return t.createVNode("img",{src:a,alt:"icon",class:`${e.className}-icon-image`},null);if(n===1){const c=Z.createFromIconfontCN({scriptUrl:l||i.themeConfig.iconfontUrl});return l?t.createVNode(c,{type:a},null):t.createVNode("i",{class:`iconfont ${a} ${e.className}-icon`},null)}}if(t.isVNode(a))return a;const o=t.resolveComponent(a);return typeof le=="function"&&t.createVNode(o,null,null)||null};le.props={icon:{type:[String,Function,Object]},iconType:Number,className:String,iconfontUrl:String};const ye=t.defineComponent({name:"BaseMenu",props:ae,setup(e){const a=oe.useRouter(),{getPrefixCls:n}=Q(),l=n({suffixCls:"menu-item",isPor:!0}),o=r=>{var d;(d=e.onOpenKeys)==null||d.call(e,r)},c=r=>{var d;(d=e.onSelect)==null||d.call(e,r.selectedKeys)},g=r=>{var d;(d=e.onClick)==null||d.call(e,...r)},m=(r,d)=>{var x;const I=r.target||"",F=Ie(I);((x=a.currentRoute.value)==null?void 0:x.fullPath)!==d.to&&F&&I&&r.targetStatus===1&&window.open(I)},w=t.resolveComponent("router-link"),b=r=>{var S,V,u,N,M;const d={...r.meta},I=d.targetStatus===1&&d.target?"a":w,F={to:r.linkPath||r.path||""},x=(S=r.meta)==null?void 0:S.title,y=(V=r.meta)!=null&&V.icon?t.createVNode(I,t.mergeProps(F,{class:"gx-pro-sider-menu-item",onClick:()=>m(d,F)}),{default:()=>[t.createVNode("span",{class:"gx-pro-sider-menu-item-title"},[x])]}):t.createVNode(I,t.mergeProps(F,{class:"gx-pro-sider-menu-item",onClick:()=>m(d,F)}),{default:()=>[t.createVNode("span",null,[x])]}),f=((u=r.meta)==null?void 0:u.icon)&&t.createVNode(le,{className:l,icon:(N=r.meta)==null?void 0:N.icon,iconfontUrl:e.iconfontUrl,iconType:(M=r.meta)==null?void 0:M.iconType},null)||void 0;return[y,f]},B=r=>{var F,x,y,f,S,V,u,N,M;if(Array.isArray(r.children)&&r.children.length>0&&!((F=r==null?void 0:r.meta)!=null&&F.hideInMenu)&&!((x=r==null?void 0:r.meta)!=null&&x.hideChildrenInMenu)){let k;if(e.subMenuItemRender)return e.subMenuItemRender({item:r,children:h(r.children)});const K=(y=r.meta)==null?void 0:y.title,j=(f=r.meta)!=null&&f.icon?t.createVNode("span",{class:"gx-pro-sider-menu-item"},[t.createVNode("span",{class:"gx-pro-sider-menu-item-title"},[K])]):t.createVNode("span",{class:"gx-pro-sider-menu-item"},[K]),A=((S=r.meta)==null?void 0:S.type)==="group",z=A?p.Menu.ItemGroup:p.Menu.SubMenu;return t.createVNode(z,{title:j,key:r.path,icon:A?null:t.createVNode(le,{className:l,icon:(V=r.meta)==null?void 0:V.icon,iconfontUrl:e.iconfontUrl,iconType:(u=r.meta)==null?void 0:u.iconType},null)},Ke(k=h(r.children))?k:{default:()=>[k]})}const[d,I]=b(r);return e.menuItemRender&&e.menuItemRender({item:r,title:d,icon:I})||t.createVNode(p.Menu.Item,{disabled:(N=r.meta)==null?void 0:N.disabled,danger:(M=r.meta)==null?void 0:M.danger,key:r.path,icon:I},Ke(d)?d:{default:()=>[d]})};function h(r=[]){return r.map(d=>B(d)).filter(d=>d)}const L=t.computed(()=>h(e.menuData));return()=>t.createVNode(p.Menu,t.mergeProps({key:"Menu",inlineIndent:16,mode:e.mode,theme:e.theme,openKeys:e.openKeys===!1?[]:$.isArray(e.openKeys)?e.openKeys:[],selectedKeys:e.selectedKeys||[],onOpenChange:r=>o(r),onSelect:c,onClick:g},e.menuProps),{default:()=>[L.value]})}}),De=new i.Keyframe("pro-layout-title-hide",{"0%":{display:"none",opacity:0},"99%":{display:"none",opacity:0},"100%":{display:"block",opacity:1}}),pt=e=>{const a=`${e.antCls}-menu`;return{[`${e.proComponentsCls}-basic-layout`]:{[`${a}${a}-root`]:{[`${a}-item a`]:{transition:"none"}}}}},xt=e=>{var a,n,l,o,c,g,m,w,b,B,h,L;return{[`${e.proComponentsCls}-basic-layout`]:{[`&${e.proComponentsCls}-basic-layout-wide`]:{[e.componentCls]:{position:"sticky",zIndex:100,borderRadius:e.borderRadiusSM}},[e.componentCls]:{position:"relative",borderRight:0,background:(n=(a=e.layout)==null?void 0:a.sider)==null?void 0:n.colorDarkBgMenu,zIndex:9,"&-menu":{position:"relative",zIndex:10,minHeight:"100%","&-icon":{verticalAlign:"unset"}},[`& ${e.antCls}-layout-sider-children`]:{position:"relative",display:"flex",flexDirection:"column",height:"100%"},"&-light":{background:(o=(l=e.layout)==null?void 0:l.sider)==null?void 0:o.colorBgMenu,boxShadow:"2px 0 8px 0 rgba(29,35,41,.05)",[`${e.componentCls}-footer`]:{color:(g=(c=e.layout)==null?void 0:c.sider)==null?void 0:g.colorTextMenu}},"&-links":{width:"100%",borderTop:"1px solid rgba(0,0,0,.06)",ul:{height:"auto"}},"&-link-menu":{border:"none",boxShadow:"none",background:"transparent"},"&-footer":{color:(w=(m=e.layout)==null?void 0:m.sider)==null?void 0:w.colorDarkTextMenu,paddingBlockEnd:16,fontSize:e.fontSize,animationName:De,animationDuration:".4s",animationTimingFunction:"ease"}},[`${e.componentCls}${e.componentCls}-fixed`]:{position:"fixed",insetBlockStart:0,insetInlineStart:0,zIndex:"100",height:"100%","&-mix":{height:`calc(100% - ${((B=(b=e.layout)==null?void 0:b.header)==null?void 0:B.heightLayoutHeader)||i.themeConfig.headerHeight}px)`,insetBlockStart:`${((L=(h=e.layout)==null?void 0:h.header)==null?void 0:L.heightLayoutHeader)||i.themeConfig.headerHeight}px`}}}}},Ct=e=>({[`${e.proComponentsCls}-basic-layout`]:{[`${e.antCls}-menu`]:{[`${e.proComponentsCls}-menu-item-icon${e.antCls}-menu-item-icon`]:{verticalAlign:"unset",lineHeight:1}}}}),St=e=>({[`${e.proComponentsCls}-sider`]:{"&-light":{[`${e.proComponentsCls}-sider-logo`]:{h1:{color:e.colorPrimary}}},"&-logo":{position:"relative",display:"flex",alignItems:"center",justifyContent:"space-between",padding:"16px 8px",cursor:"pointer",transition:"padding .3s cubic-bezier(.645,.045,.355,1)","> a":{display:"flex",alignItems:"center",justifyContent:"center",maxHeight:32,"> img":{display:"inline-block",height:32,verticalAlign:"middle"},"> h1":{display:"inline-block",lineHeight:"32px",marginBlock:0,marginInlineEnd:0,marginInlineStart:12,color:e.colorWhite,animationName:De,animationDuration:".2s",fontWeight:600,fontSize:18,overflow:"hidden",verticalAlign:"middle"}},"&-collapsed":{flexDirection:"column-reverse",margin:0,padding:12,[`${e.proComponentsCls}-layout-apps-icon`]:{marginBlockEnd:8,fontSize:16,transition:"font-size 0.2s ease-in-out,color 0.2s ease-in-out"}}},[`&${e.antCls}-layout-sider-collapsed`]:{[`${e.proComponentsCls}-sider-logo`]:{padding:"16px 8px"}}}}),ze=(e,a)=>e?typeof e=="string"?t.createVNode("img",{src:e,alt:"logo",style:a},null):typeof e=="function"?e():e:null,wt=(e,a="menuHeaderRender")=>{const{logo:n,logoStyle:l,title:o,layout:c}=e,g=e[a||""];if(g===!1)return null;const m=ze(n,l),w=o&&t.createVNode("h1",null,[o]);return typeof g=="function"?g(m,e.collapsed?null:w,e):t.createVNode(t.Fragment,null,[m||null,e.collapsed&&c==="side"?null:w])},be=t.defineComponent({name:"LogoContent",props:ee,setup(e){const{getPrefixCls:a}=Q(),n=t.computed(()=>e.layout==="side"||e.layout==="simple"),l=t.computed(()=>a({suffixCls:n.value||e.drawer?"sider":"global-header",isPor:!0})),{wrapSSR:o,hashId:c}=i.useProStyle("ProLayoutLogo",[St]),g=t.computed(()=>wt(e,e.renderKey));return()=>o(t.createVNode("div",{id:"logo",class:{[`${c.value}`]:!0,[`${l.value}-logo`]:!0,[`${l.value}-logo-collapsed`]:!!e.collapsed},onClick:()=>{var m;return(m=e.onMenuHeaderClick)==null?void 0:m.call(e)}},[t.createVNode("a",null,[g.value||null])]))}});be.inheritAttrs=!1;function Nt(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!t.isVNode(e)}const{Sider:It}=p.Layout,{Item:He}=p.Menu,Ae=e=>e?t.createVNode(Z.MenuUnfoldOutlined,null,null):t.createVNode(Z.MenuFoldOutlined,null,null),je=t.defineComponent({props:G,inheritAttrs:!1,setup(e){const{getPrefixCls:a,selectedKeys:n,flatMenuData:l,menuData:o,openKeys:c}=Q(),{indicator:g}=fe.useProAppContext(),{token:m}=i.useProConfigContext(),{theme:w,layout:b,isMobile:B,menuLoading:h,breakpoint:L,fixSiderbar:r,collapsed:d,siderWidth:I,collapsedWidth:F,menuExtraRender:x,menuContentRender:y,menuFooterRender:f,collapsedButtonRender:S,links:V}=t.toRefs(e),u=a({suffixCls:"sider",isPor:!0}),{wrapSSR:N,hashId:M}=i.useProStyle("ProLayoutSiderMenu",[pt,xt,Ct],u),k=t.computed(()=>e.layout==="wide"),K=t.computed(()=>e.layout==="mix"&&!e.isMobile&&e.splitMenus),j=t.computed(()=>b.value==="side"||b.value==="simple"),A=t.computed(()=>(e.layout==="mix"||k.value)&&"light"||w.value),z=t.computed(()=>b.value==="top"?[]:o.value),W=t.computed(()=>e.collapsed?e.collapsedWidth:e.siderWidth),Y=t.computed(()=>[M.value,u,B.value?"shadow":null,`${u}-${A.value}`,r.value&&e.layout!=="wide"?`${u}-fixed`:null]),q=t.computed(()=>{var s;return typeof V.value=="function"?(s=V.value)==null?void 0:s.call(V):V.value}),X=t.computed(()=>S.value!==!1?S.value||Ae:!1),_=s=>{var C;if(e.onSelect){if(t.unref(K)){e.onSelect([(C=n==null?void 0:n.value)==null?void 0:C[0],...s]);return}e.onSelect(s)}};return()=>{var T;const s=j.value?t.createVNode(be,t.mergeProps({drawer:B.value},e),null):null,C=x.value&&((T=x.value)==null?void 0:T.call(x,e)),R=t.createVNode(ye,{class:`${u}-menu ${M.value}`,theme:A.value,mode:"inline",menuData:K.value?l.value:z.value,iconfontUrl:e.iconfontUrl,openKeys:c.value,selectedKeys:n.value,menuItemRender:e.menuItemRender,subMenuItemRender:e.subMenuItemRender,onClick:e.onMenuClick,style:{width:"100%"},onOpenKeys:H=>{var U;return e.onOpenKeys&&((U=e.onOpenKeys)==null?void 0:U.call(e,H))},onSelect:_},null);return K.value&&t.unref(l.value).length===0||z.value.length===0?null:N(t.createVNode(p.ConfigProvider,{theme:{components:{Menu:Me({radiusItem:4,colorActiveBarWidth:0,colorActiveBarHeight:0,colorActiveBarBorderSize:0},(m==null?void 0:m.value)||{},A.value,"sider")}}},{default:()=>[r.value&&t.createVNode("div",{style:{width:`${W.value}px`,overflow:"hidden",flex:`0 0 ${W.value}px`,maxWidth:`${W.value}px`,minWidth:`${W.value}px`,transition:"background-color 0.2s, min-width 0.2s, max-width 0.2s"}},null),t.createVNode(It,{collapsible:!0,trigger:null,class:Y.value,style:{overflow:"hidden",zIndex:r.value?101:void 0,paddingTop:j.value||e.isMobile||k.value?0:`${e.headerHeight}px`,top:e.layout==="wide"?`${e.headerHeight+20}px`:void 0,height:e.layout==="wide"?`calc(100vh - ${e.headerHeight+20*2}px)`:void 0},theme:A.value,breakpoint:L.value||void 0,collapsed:d.value,width:I.value,collapsedWidth:F.value},{default:()=>{var H,U;return[h.value&&t.createVNode("div",{class:["gx-pro-sider-loading",M.value]},[t.createVNode(p.Spin,{spinning:h.value,indicator:g==null?void 0:g.value},null)]),s||null,C&&!e.collapsed&&t.createVNode("div",{class:{[`${M.value}`]:!0,[`${u}-extra`]:!0,[`${u}-extra-no-logo`]:!s}},[C]),t.createVNode("div",{style:{flex:"1 1 0%",overflow:"hidden auto"}},[y.value&&((H=y.value)==null?void 0:H.call(y,e,R))||R]),e.layout!=="wide"&&t.createVNode("div",{class:`${u}-links ${M.value}`},[t.createVNode(p.Menu,{theme:A.value,inlineIndent:16,class:`${u}-link-menu ${M.value}`,selectedKeys:[],openKeys:[],mode:"inline"},{default:()=>[(q.value||[]).map((v,me)=>t.createVNode(He,{class:`${u}-link ${M.value}`,key:me},Nt(v)?v:{default:()=>[v]})),X.value&&!B.value&&t.createVNode(He,{class:`${u}-collapsed-button ${M.value}`,title:!1,key:"collapsed",onClick:()=>{var v;e.onCollapse&&((v=e.onCollapse)==null||v.call(e,!d.value))}},{default:()=>{var v;return[(v=X.value)==null?void 0:v.call(X,d.value)]}})]})]),f.value&&t.createVNode("div",{class:`${u}-footer ${M.value}`},[(U=f.value)==null?void 0:U.call(f,e)])]}})]}))}}}),ie=t.defineComponent({name:"SiderMenuWrapper",inheritAttrs:!1,props:{...G,matchMenuKeys:{type:Array,default:()=>[]}},setup(e){return()=>t.createVNode(t.Fragment,null,[e.isMobile?t.createVNode(p.Drawer,{maskClosable:!0,open:!e.collapsed,closable:!1,placement:"left",style:{padding:0,height:"100vh"},getContainer:!1,onClose:()=>e.onCollapse&&e.onCollapse(!0),width:e.siderWidth,bodyStyle:{height:"100vh",padding:0,display:"flex",flexDirection:"row"}},{default:()=>[t.createVNode(je,t.mergeProps(e,{collapsed:e.isMobile?!1:e.collapsed}),null)]}):t.createVNode(je,e,null)])}}),We={usePageCard:{type:Boolean,default:()=>{}},pageCardProps:Object,pageContentStyle:D.style,pageChildrenContentStyle:D.style,waterMarkProps:{type:Object},waterMark:D.bool.def(!0),pageHeaderRender:{type:[Object,Function,Boolean],default:()=>{}}},re={pageChildrenExtraRender:{type:[Object,Function,Boolean],default:()=>{}},contentRender:{type:[Object,Function,Boolean],default:()=>{}},breadcrumbRender:{type:[Object,Function,Boolean],default:()=>{}},pageHeaderStyle:D.style,loading:D.bool.def(!1),...We},Mt=e=>({[e.componentCls]:{background:e.colorBgContainer,padding:`${e.paddingLG}px`,"&-has-breadcrumb":{paddingBlock:`${e.paddingSM}px`},"&-content":{marginTop:"8px"}}}),kt=t.defineComponent({name:"ProPageHeader",props:{content:re.contentRender,breadcrumb:re.breadcrumbRender},setup(e){const{breadcrumb:a,getPrefixCls:n}=Q(),l=n({isPor:!0,suffixCls:"page-header"}),{wrapSSR:o,hashId:c}=i.useProStyle("ProPageHeader",[Mt],l),g=t.computed(()=>{var m;return{...a.value,itemRender:((m=a.value)==null?void 0:m.itemRender)||(({route:w})=>w.path?t.createVNode(oe.RouterLink,{to:w.path},{default:()=>[w.breadcrumbName]}):w.breadcrumbName)}});return()=>{var m,w;return o(t.createVNode("div",{class:[`${l}`,c.value,`${l}-has-breadcrumb`]},[e.breadcrumb?(m=e.breadcrumb)==null?void 0:m.call(e,g.value):t.createVNode(p.Breadcrumb,g.value,null),e.content&&t.createVNode("div",{class:[`${l}-content`,c.value]},[(w=e.content)==null?void 0:w.call(e)])]))}}}),Bt=e=>{var a,n,l,o,c,g,m,w;return{[`${e.proComponentsCls}-basic-layout`]:{[e.componentCls]:{marginInline:-(((n=(a=e.layout)==null?void 0:a.pageContainer)==null?void 0:n.paddingBlockPageContainerContent)??24),marginBlockStart:-(((o=(l=e.layout)==null?void 0:l.pageContainer)==null?void 0:o.paddingBlockPageContainerContent)??24)},[e.gridContent]:{width:"100%"}},[e.componentCls]:{"&-children-content":{marginInline:((g=(c=e.layout)==null?void 0:c.pageContainer)==null?void 0:g.marginInlinePageContainerContent)??24,marginBlockStart:((w=(m=e.layout)==null?void 0:m.pageContainer)==null?void 0:w.marginBlockPageContainerContent)??24,padding:"inherit"}}}};function Ot(e){return i.useStyle("ProPageContainter",a=>{const n=i.mergeToken(a,{gridContent:`${a.proComponentsCls}-grid-content`});return[Bt(n)]},e)}function Ft(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!t.isVNode(e)}const Rt=t.defineComponent({inheritAttrs:!1,name:"GProPageContainer",props:re,setup(e,{slots:a,attrs:n}){const{getPrefixCls:l,hasContentWide:o,waterMark:c,pageHeaderRender:g,pageContentStyle:m,pageChildrenContentStyle:w,pageCardProps:b,usePageCard:B,waterMarkProps:h}=Q(),{indicator:L}=fe.useProAppContext(),r=i.useProConfigContext(),d=l({suffixCls:"page-container",isPor:!0}),I=l({suffixCls:"grid-content",isPor:!0}),F=t.computed(()=>e.pageCardProps||b.value),x=t.computed(()=>e.waterMarkProps||h.value||{}),y=t.computed(()=>e.pageContentStyle||m.value),f=t.computed(()=>e.pageChildrenContentStyle||w.value||{}),S=t.computed(()=>$.isBoolean(e.usePageCard)?e.usePageCard:$.isBoolean(B.value)?B.value:!0),{wrapSSR:V,hashId:u}=Ot(d),N=()=>{var K,j,A,z,W,Y;const k=$.getSlot(a,e,"pageChildrenExtraRender");return t.createVNode("div",{class:`${d}-children-content ${u.value}`,style:f.value},[k&&(k==null?void 0:k()),S.value?t.createVNode(p.Card,t.mergeProps(F.value?J.pick(F.value,["loading","bodyStyle"]):{},{style:o.value?{minHeight:"853px"}:void 0,bordered:!1}),{default:()=>{var q;return[(q=a.default)==null?void 0:q.call(a)]}}):k?t.createVNode("div",{style:{marginBlockStart:`${(z=(A=(j=(K=r==null?void 0:r.token)==null?void 0:K.value)==null?void 0:j.layout)==null?void 0:A.pageContainer)==null?void 0:z.marginBlockPageContainerContent}px`}},[(W=a.default)==null?void 0:W.call(a)]):(Y=a.default)==null?void 0:Y.call(a)])},M=()=>{let k;return t.createVNode(t.Fragment,null,[e.waterMark&&c.value?t.createVNode(it.GPorWaterMark,x.value,Ft(k=N())?k:{default:()=>[k]}):N()])};return()=>{const k=$.getSlot(a,e,"pageHeaderRender")||g.value,K=$.getSlot(a,e,"breadcrumbRender"),j=$.getSlot(a,e,"contentRender");return V(t.createVNode(p.Spin,{spinning:e.loading,indicator:L==null?void 0:L.value},{default:()=>[t.createVNode("div",{style:n.style,class:{[`${u.value}`]:!0,[`${d}`]:!0}},[!o.value&&k!==!1&&(k||t.createVNode(kt,{style:e.pageHeaderStyle,breadcrumb:K,content:j},null)),t.createVNode("div",{class:[I,u.value]},[t.createVNode("div",{class:`${I}-children ${u.value}`,style:y.value},[M()])])])]}))}}}),pe={...P,...ae,logo:ee.logo,logoStyle:ee.logoStyle,logoDirection:ee.logoDirection,menuLoading:Boolean,autoHideHeader:Boolean,collapsed:Boolean,isMobile:Boolean,siderWidth:G.siderWidth,headerTheme:{type:String,default:"dark"},menuData:{type:Array,default:()=>[]},menuRender:{type:[Object,Function],default:()=>{}},extraRightDropdownRender:{type:[Object,Function],default:()=>{}},rightContentRender:{type:[Object,Function],default:()=>{}},collapsedButtonRender:G.collapsedButtonRender,matchMenuKeys:G.matchMenuKeys,onCollapse:G.onCollapse,onOpenKeys:G.onOpenKeys,onMenuHeaderClick:Function,onSelect:G.onSelect},ve={...pe,headerTitleRender:{type:[Object,Function],default:()=>{}},headerRender:{type:[Object,Function],default:()=>{}},headerContentRender:{type:[Object,Function],default:()=>{}},hasSiderMenu:Boolean,collapsedWidth:G.collapsedWidth,siderWidth:G.siderWidth},Ee={loading:D.looseBool,isMobile:G.isMobile,collapsed:ae.collapsed,siderWidth:G.siderWidth,collapsedWidth:G.collapsedWidth,isFixedMultiTab:P.fixedMultiTab,onReloadPage:{type:Function},onChangeTabs:{type:Function},"onUpdate:tabs":{type:Function}},Vt=e=>({[e.componentCls]:{marginBlock:0,marginBlockStart:48,marginBlockEnd:24,marginInline:0,paddingBlock:0,paddingInline:16,textAlign:"center","&-links":{marginBottom:8,a:{color:e.colorTextSecondary,textDecoration:e.linkDecoration,"&:hover":{color:e.colorPrimary}},"a:not(:last-child)":{marginInlineEnd:40}},"&-copyright":{fontSize:"14px",color:e.colorTextSecondary,a:{color:e.colorTextSecondary,textDecoration:e.linkDecoration}}}}),Ue=[{key:"Ant Design Pro",title:"Ant Design Pro",href:"https://pro.ant.design",blankTarget:!0},{key:"gitee",title:t.createVNode(Z.GithubOutlined,null,null),href:"https://gitee.com/gx12358/vue-antd-admin",blankTarget:!0},{key:"Ant Design Vue",title:"Ant Design Vue",href:"https://next.antdv.com/components/overview-cn/",blankTarget:!0}],de=t.defineComponent({name:"GlobalFooter",props:{links:{type:[Array,Boolean],default:Ue},copyright:{type:[Object,Function,Boolean,String],default:"皖ICP备2022010510号-1"}},setup(e){const a=$.getPrefixCls({suffixCls:"global-footer",isPor:!0}),{wrapSSR:n,hashId:l}=i.useProStyle("ProLayoutFooter",[Vt],a);return()=>n(t.createVNode(p.LayoutFooter,{style:{padding:0}},{default:()=>[t.createVNode("div",{class:[a,l.value]},[e.links&&t.createVNode("div",{class:`${a}-links ${l.value}`},[e.links.map(o=>t.createVNode("a",{key:o.key,title:o.key,target:o.blankTarget?"_blank":"_self",href:o.href},[o.title]))]),e.copyright&&t.createVNode("div",{class:`${a}-copyright ${l.value}`},[t.createTextVNode("Copyright  "),rt().format("YYYY"),t.createTextVNode("  "),t.createVNode("a",{href:"https://beian.miit.gov.cn/"},[e.copyright])])])]}))}}),Xe={...P,...pe,...G,...ve,...Ee,...re,pure:Boolean,token:Object,waterMark:{type:Boolean,default:!0},disableMobile:{type:Boolean,required:!1},contentStyle:{type:[String,Object],default:()=>null},breadcrumb:[Object,Function],disableContentMargin:D.looseBool,isChildrenLayout:D.looseBool,loading:D.looseBool,footerLinks:{type:[Array,Boolean],default:Ue},copyrightRender:{type:[Object,Function,Boolean,String],default:()=>{}},footerRender:{type:[Object,Function,Boolean],default:()=>{}},menuData:{type:Array,default:()=>[]},levelMenuData:{type:Array,default:()=>[]},collapsed:D.looseBool},Tt=e=>({[e.componentCls]:{display:"flex",flexDirection:"column",width:"100%",minHeight:"100vh"}}),$t=e=>{var a,n;return{[e.componentCls]:{a:{color:e.colorPrimary,"&:hover":{color:e.colorPrimaryHover}},[`&${e.componentCls}-wide`]:{backgroundColor:e.colorBgLayout,[`${e.componentCls}-content`]:{margin:0,marginInlineStart:20}},[`${e.componentCls}-content`]:{position:"relative",margin:(n=(a=e.layout)==null?void 0:a.pageContainer)==null?void 0:n.paddingBlockPageContainerContent},[`${e.componentCls}-container`]:{width:"100%",display:"flex",flexDirection:"column",minWidth:0,minHeight:0,backgroundColor:"transparent"}}}},Lt=e=>{var a,n;return{[`${e.componentCls}-title`]:{display:"flex",alignItems:"center",gap:8,[`${e.componentCls}-reload-btn,${e.componentCls}-close-btn`]:{color:e.colorTextSecondary,fontSize:12,cursor:"pointer",transition:"color .3s cubic-bezier(.645,.045,.355,1)","&:hover":{color:e.colorPrimary}}},[`${e.componentCls}`]:{"&-fixed":{width:"100%",height:62,background:"transparent"}},[`${e.componentWrapCls}`]:{background:e.colorBgContainer,[`${e.antCls}-tabs-nav`]:{paddingLeft:16,".ant-tabs-tab .anticon":{margin:0},[`${e.antCls}-tabs-tab:not(${e.antCls}-tabs-tab-active)`]:{borderBottomColor:"transparent"},[`${e.componentCls}-dropdown-menu-btn`]:{marginInlineEnd:8,padding:12,fontSize:16,cursor:"pointer"}},"&-fixed":{position:"fixed",height:62,top:((n=(a=e.layout)==null?void 0:a.header)==null?void 0:n.heightLayoutHeader)||i.themeConfig.headerHeight,right:0,zIndex:9,transition:"width .2s"}}}};function Kt(e){return i.useStyle("ProMultiTabs",a=>{const n=i.mergeToken(a,{componentWrapCls:`${a.componentCls}-wrap`});return[Lt(n)]},e)}const Dt=[{key:"closeOthersTabs",label:"关闭其他"},{key:"closeLeftTabs",label:"关闭左侧"},{key:"closeRightTabs",label:"关闭右侧"},{key:"reloadPage",label:"刷新当前页"}];function zt(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!t.isVNode(e)}function E(e){var a;return((a=e==null?void 0:e.meta)==null?void 0:a.currenFulltPath)||e.fullPath||e.path}const Ht=p.Tabs.TabPane,At=p.Menu.Item,jt=t.defineComponent({props:{...Ee,visible:{type:Boolean,default:!0}},inheritAttrs:!1,setup(e){const{isMobile:a,isFixedMultiTab:n}=t.toRefs(e),l=t.ref(!1),o=t.reactive({activeKey:"",contextMenuActiveKey:""}),c=oe.useRouter(),{menuData:g,flatMenuData:m,layout:w,splitMenus:b,getPrefixCls:B}=Q(),h=B({isPor:!0,suffixCls:"multi-tab"}),{wrapSSR:L,hashId:r}=Kt(h),d=t.ref([]);t.watch(d,()=>{var s;(s=e.onChangeTabs)==null||s.call(e,J.cloneDeep(t.unref(d)))},{deep:!0});const I=t.computed(()=>w.value==="mix"&&!e.isMobile&&b.value),F=t.computed(()=>E(c.currentRoute.value)),x=t.computed(()=>n.value&&!a.value),y=t.computed(()=>{const s=!(I.value&&t.unref(m.value).length===0||g.value.length===0||w.value==="top");return x.value&&s?`calc(100% - ${e.collapsed?e.collapsedWidth:e.siderWidth}px)`:"100%"}),f=t.computed(()=>$.classNames(`${h}-wrap`,{[`${r.value}`]:!0,[`${h}-wrap-fixed`]:e.isFixedMultiTab,[`${h}-wrap-loading`]:e.loading})),S=t.computed(()=>{const s={display:e.visible?void 0:"none"};return e.isFixedMultiTab?{margin:0,width:y.value,paddingTop:"6px",zIndex:99,...s}:s}),V=s=>E(s)===F.value,u=s=>{if(s.name&&s.meta&&s.meta.tagHidden!==!0){const C=E(s),R=d.value.find(H=>E(H)===C),T={path:s.path,fullPath:C,query:s.query,params:s.params,name:s.name,meta:{...s.meta,originTagPath:s.fullPath}};R?Object.assign(R,T):s.meta.tagFixed?d.value.unshift(T):d.value.push(T),V(s)&&(o.activeKey=C)}},N=s=>{s.forEach(C=>{C.meta&&C.meta.tagFixed&&u(C),C.children&&N(C.children)})};t.watch(()=>g.value,s=>{N(s)},{deep:!0,immediate:!0}),t.watch(()=>c.currentRoute.value,s=>{u(s)},{deep:!0,immediate:!0});const M=s=>{var C,R;return((R=(C=d.value.find(T=>(s||o.activeKey)===E(T)))==null?void 0:C.meta)==null?void 0:R.originTagPath)||s||o.activeKey},k=()=>{const s=d.value.slice(-1)[0];s?c.push({path:M(E(s))}):c.push("/")},K=async s=>{const C=d.value.find(R=>s===E(R));d.value=d.value.filter(R=>E(R)!==s),C&&V(C)&&k()},j=s=>{const C=d.value.find(R=>E(R)===s);C&&o.activeKey!==E(C)&&c.push({path:M(E(C))})},A=()=>{var s;l.value=!0,e.onReloadPage&&((s=e.onReloadPage)==null||s.call(e)),setTimeout(()=>{l.value=!1},500)},z=s=>s.meta&&s.meta.tagFixed,W=s=>o[s],Y=(s,C)=>{const R=d.value.findIndex(T=>E(T)===W(C));switch(s){case"closeOthersTabs":d.value=d.value.filter(T=>{var H;return E(T)===W(C)||((H=T.meta)==null?void 0:H.tagFixed)});break;case"closeLeftTabs":R&&(d.value=d.value.filter((T,H)=>{var U;return H>=R||((U=T.meta)==null?void 0:U.tagFixed)}));break;case"closeRightTabs":R&&(d.value=d.value.filter((T,H)=>{var U;return H<=R||((U=T.meta)==null?void 0:U.tagFixed)}));break;case"reloadPage":(R===0||R)&&o.activeKey===W(C)&&A();break}o.activeKey!==W(C)&&c.push(M(W(C)))},q=(s,C)=>{const R=d.value.findIndex(T=>E(T)===C);if(s==="closeOthersTabs")return d.value.filter((H,U)=>{var v;return U!==R&&!((v=H.meta)!=null&&v.tagFixed)}).length===0;if(s==="closeLeftTabs")return d.value.filter((H,U)=>{var v;return U<R&&!((v=H.meta)!=null&&v.tagFixed)}).length===0;if(s==="closeRightTabs")return d.value.filter((H,U)=>{var v;return U>R&&!((v=H.meta)!=null&&v.tagFixed)}).length===0},X=s=>{let C;const{path:R,stateType:T}=s;return t.createVNode(p.Menu,{selectedKeys:[],onClick:H=>Y(H.key,T)},zt(C=Dt.map(H=>t.createVNode(At,{key:H.key,disabled:q(H.key,R)},{default:()=>[H.label]})))?C:{default:()=>[C]})},_=s=>{const{router:C}=s;return t.createVNode(p.Dropdown,{trigger:"contextmenu",overlay:t.createVNode(X,{path:E(C)||"",stateType:"contextMenuActiveKey"},null),onOpenChange:R=>{o.contextMenuActiveKey=R&&E(C)||""}},{default:()=>{var R;return[t.createVNode("div",{class:[`${h}-title`,r.value]},[(R=C.meta)==null?void 0:R.title,o.activeKey===E(C)&&t.createVNode(Z.ReloadOutlined,{class:[`${h}-reload-btn`,r.value],spin:l.value,onClick:T=>{T.stopPropagation(),!l.value&&A()}},null),d.value.length>1&&!z(C)&&t.createVNode(Z.CloseOutlined,{class:[`${h}-close-btn`,r.value],onClick:T=>{T.stopPropagation(),!l.value&&K(E(C)||"")}},null)])]}})};return()=>L(t.createVNode(t.Fragment,null,[!!e.isFixedMultiTab&&t.withDirectives(t.createVNode("div",{class:[`${h}-fixed`,r.value]},null),[[t.vShow,e.visible]]),t.createVNode(p.Tabs,{hideAdd:!0,type:"editable-card",style:S.value,class:f.value,activeKey:o.activeKey,onTabClick:j},{default:()=>[d.value.map(s=>t.createVNode(Ht,{key:E(s),closable:!1,tab:t.createVNode(_,{router:s},null)},null))],rightExtra:()=>t.createVNode(p.Dropdown,{overlay:t.createVNode(X,{path:o.activeKey,stateType:"activeKey"},null)},{default:()=>[t.createVNode(Z.EllipsisOutlined,{class:[`${h}-dropdown-menu-btn`,r.value],rotate:90},null)]})})]))}}),{Content:Wt}=p.Layout,ce=(e,{slots:a,attrs:n})=>{var I;const{hashId:l,prefixCls:o,isMobile:c,loading:g,collapsed:m,siderWidth:w,isShowTabsBar:b,isFixedMultiTab:B,onReloadPage:h,onChangeTabs:L}=e;if(e.isChildrenLayout)return(I=a.default)==null?void 0:I.call(a);const{flatMenuData:r,layout:d}=Q();return t.createVNode(t.Fragment,null,[t.createVNode(jt,{visible:(t.unref(d)==="mix"?t.unref(r).length>0:!0)&&b,isMobile:c,loading:g,isFixedMultiTab:B,siderWidth:w,collapsed:m,onReloadPage:h,onChangeTabs:L},null),t.createVNode(Wt,{style:n.style,class:[`${o}-content`]},{default:()=>{var F;return[g&&t.createVNode(Ne,null,null),t.createVNode("div",{class:[`${o}-content-spin-container`,l],style:{opacity:g?"0":void 0}},[(F=a.default)==null?void 0:F.call(a)])]}})])};ce.inheritAttrs=!1,ce.displayName="wrap-content";const vt=e=>{var a,n,l,o;return{[`${e.proComponentsCls}-basic-layout`]:{[`${e.antCls}-layout-header${e.componentCls}${e.componentCls}-light`]:{backgroundColor:((n=(a=e.layout)==null?void 0:a.header)==null?void 0:n.colorBgMenu)||e.colorBgElevated},[`${e.antCls}-layout-header${e.componentCls}${e.componentCls}-dark`]:{backgroundColor:(o=(l=e.layout)==null?void 0:l.header)==null?void 0:o.colorDarkBgMenu,[`${e.proComponentsCls}-global-header-collapsed-button`]:{color:"#fff"}},[`${e.antCls}-layout-header${e.componentCls}`]:{zIndex:19,paddingBlock:0,paddingInline:0,WebkitBackdropFilter:"blur(8px)",backdropFilter:"blur(8px)",transition:"background-color 0.2s cubic-bezier(.645,.045,.355,1)",[`&${e.proComponentsCls}`]:{"&-fixed-header":{position:"fixed",width:"100%",zIndex:9,top:0,transition:"width .2s","&-action":{transition:"width .3s cubic-bezier(.645,.045,.355,1)"}},"&-header-actions":{display:"flex",alignItems:"center",fontSize:"16",cursor:"pointer","& &-item":{paddingBlock:0,paddingInline:8,"&:hover":{color:e.colorText}}},"&-header-realDark":{boxShadow:"0 2px 8px 0 rgba(0, 0, 0, 65%)"},"&-header-actions-header-action":{transition:"width 0.3s cubic-bezier(0.645, 0.045, 0.355, 1)"}}}}}},Et=e=>({[`${e.proComponentsCls}-header`]:{"&-light":{[`${e.componentCls}-logo`]:{h1:{color:e.colorBgSpotlight}}}},[e.componentCls]:{position:"relative",background:"transparent",display:"flex",marginBlock:0,paddingInline:16,width:"100%",height:"100%",boxShadow:"0 1px 4px rgba(0,21,41,.08)",boxSizing:"border-box","&-mix":{boxShadow:"0 1px 4px 0 rgba(0,21,41,.12)"},"&-wide":{boxShadow:"0 1px 4px 0 rgba(0,21,41,.12)",padding:0,[`${e.componentCls}-main`]:{margin:"0 auto"}},"&-main":{display:"flex",width:"100%",height:"100%","&-left":{display:"flex",minWidth:192}},"> a":{height:"100%"},"> *":{height:"100%"},[`${e.proComponentsCls}-layout-apps-icon`]:{marginInlineEnd:16},"&-collapsed-button":{display:"flex",alignItems:"center",fontSize:"20px",marginInlineEnd:"16px"},"&-logo":{position:"relative",marginInlineEnd:"16px",a:{display:"flex",alignItems:"center",height:"100%",minHeight:"22px",fontSize:"20px"},img:{height:"28px"},h1:{marginBlock:0,marginInline:0,marginInlineStart:12,fontWeight:"500",color:e.colorWhite,fontSize:16},"&-mix":{display:"flex",alignItems:"center"}},"&-logo-mobile":{minWidth:"24px",marginInlineEnd:0}}}),Ye={...G,...pe},Ut=(e,a)=>e===!1?null:e?e(a,null):a,Xt=t.defineComponent({props:Ye,setup(e){return()=>e.rightContentRender&&typeof e.rightContentRender=="function"&&t.createVNode(t.Fragment,null,[e.rightContentRender({...e})])}}),qe=t.defineComponent({props:Ye,inheritAttrs:!1,setup(e,{slots:a,emit:n}){const l=oe.useRouter(),{token:o}=i.useProConfigContext(),{getPrefixCls:c,openKeys:g,selectedKeys:m}=Q(),{width:w}=Se.useWindowSize(),b=c({suffixCls:"global-header",isPor:!0}),{wrapSSR:B,hashId:h}=i.useProStyle("ProGlobalHeader",[Et],b),L=t.computed(()=>e.isMobile?!1:e.layout==="top"||e.layout==="mix"&&e.splitMenus),r=t.computed(()=>({[`${h.value}`]:!0,[`${b}`]:!0,[`${b}-${e.layout}`]:!0})),d=y=>{var f;if(l.currentRoute){const S=l.currentRoute.value.matched.concat();e.onSelect&&y==="select"&&e.onSelect(S.filter(V=>V.name!=="index").map(V=>V.path)),e.onOpenKeys&&y==="openKeys"&&((f=e.onOpenKeys)==null||f.call(e,S.filter(V=>V.path!==l.currentRoute.value.path).map(V=>V.path)))}},I=()=>{n("collapse",!e.collapsed)},F=t.computed(()=>e.collapsedButtonRender||Ae),x=()=>{var y,f;return t.createVNode(t.Fragment,null,[L.value?t.createVNode("div",{style:{flex:1},class:[`${b}-menu`,h.value]},[((y=e.menuData)==null?void 0:y.length)>0&&t.createVNode(p.ConfigProvider,{theme:{components:{Layout:{headerBg:"transparent",bodyBg:"transparent"},Menu:Me({radiusItem:4,colorActiveBarWidth:0,colorActiveBarHeight:2,colorActiveBarBorderSize:0,horizontalItemBorderRadius:4},o.value||{},e.theme,"header")}}},{default:()=>[t.createVNode(ye,t.mergeProps({theme:e.theme,mode:e.mode,collapsed:e.collapsed,menuData:e.menuData,openKeys:g.value,selectedKeys:m.value,iconfontUrl:e.iconfontUrl,menuItemRender:e.menuItemRender,subMenuItemRender:e.subMenuItemRender,class:{"top-nav-menu":e.mode==="horizontal",[`${h.value}`]:!0}},{"onUpdate:openKeys":()=>d("openKeys"),"onUpdate:selectedKeys":()=>d("select")}),null)]})]):t.createVNode("div",{style:{flex:1}},[(f=a.default)==null?void 0:f.call(a)]),e.layout!=="simple"&&t.createVNode(Xt,t.mergeProps(e,{extraRightDropdownRender:e.extraRightDropdownRender,rightContentRender:e.rightContentRender}),null)])};return()=>{const y=t.createVNode("span",{key:"logo",onClick:()=>{var f;return(f=e.onMenuHeaderClick)==null?void 0:f.call(e)},class:[`${b}-logo`,e.isMobile?"mobile":"",h.value]},[t.createVNode("a",null,[ze(e.logo)])]);return B(t.createVNode("div",{class:r.value},[e.isMobile?t.createVNode(t.Fragment,null,[Ut(e.menuHeaderRender,y),e.isMobile&&t.unref(F)&&t.createVNode("span",{class:`${b}-collapsed-button ${h.value}`,onClick:I},[t.unref(F)(e.collapsed)]),x()]):["mix","wide","top"].includes(e.layout)?t.createVNode("div",{style:{width:e.layout==="wide"?`${e.wideWidth}px`:void 0,padding:e.layout==="wide"&&w.value<e.wideWidth?"0 50px":void 0},class:`${b}-main ${h.value}`},[t.createVNode("div",{class:`${b}-main-left ${h.value}`},[t.createVNode(be,t.mergeProps(e,{renderKey:"headerTitleRender"}),null)]),x()]):x()]))}}});function Yt(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!t.isVNode(e)}const{Header:Ge}=p.Layout,xe=t.defineComponent({inheritAttrs:!1,props:ve,setup(e){const{theme:a,isMobile:n,fixedHeader:l,headerHeight:o,layout:c,onCollapse:g,splitMenus:m}=t.toRefs(e),{getPrefixCls:w,menuData:b}=Q(),B=w({suffixCls:"header",isPor:!0}),h=w({suffixCls:"fixed-header",isPor:!0}),{wrapSSR:L,hashId:r}=i.useProStyle("ProLayoutHeader",[vt],B),d=t.computed(()=>c.value==="wide"),I=t.computed(()=>l.value),F=t.computed(()=>c.value==="mix"||d.value),x=t.computed(()=>c.value==="side"||c.value==="simple"),y=t.computed(()=>x.value&&"light"||a.value),f=t.computed(()=>({[`${r.value}`]:!0,[`${B}-${y.value}`]:!0,[`${B}`]:!0,[`${h}`]:I.value})),S=t.computed(()=>I.value&&!n.value),V=t.computed(()=>m.value?b.value&&Be(b.value)||[]:c.value==="top"?b.value:[]),u=t.computed(()=>x.value&&S.value?`calc(100% - ${e.collapsed?e.collapsedWidth:e.siderWidth}px)`:"100%"),N=t.computed(()=>I.value?0:void 0),M=()=>{const k=t.createVNode(qe,t.mergeProps(e,{theme:y.value,mode:"horizontal",onCollapse:g.value,menuData:V.value}),{default:()=>[F.value?null:e.headerContentRender&&typeof e.headerContentRender=="function"?e.headerContentRender(e):e.headerContentRender]});return e.headerRender?e.headerRender(e,k):k};return()=>{let k;return L(t.createVNode(t.Fragment,null,[I.value&&!d.value&&t.createVNode(Ge,{theme:y.value,style:{height:`${o.value}px`,lineHeight:`${o.value}px`,background:"transparent"}},null),t.createVNode(Ge,{theme:y.value,class:f.value,style:{height:`${o.value}px`,lineHeight:`${o.value}px`,width:u.value,zIndex:x.value?100:101,right:N.value}},Yt(k=M())?k:{default:()=>[k]})]))}}}),qt=t.defineComponent({name:"BaseProLayout",inheritAttrs:!1,components:{GlobalHeader:xe,GlobalFooter:de,SiderMenuWrapper:ie},props:Xe,emits:["update:collapsed","update:open-keys","update:selected-keys","collapse","openKeys","reloadPage","select","menuHeaderClick","menuClick","changeTabs"],setup(e,{slots:a}){const n=$.getPrefixCls({suffixCls:"basic-layout",isPor:!0}),{wrapSSR:l,hashId:o}=i.useProStyle("ProLayout",[Tt,$t],n),c=te.useMediaQuery(),{token:g}=i.useProConfigContext(),m=t.computed(()=>{var y;return(y=g==null?void 0:g.value)==null?void 0:y.colorPrimary});t.watchEffect(()=>{m.value&&document.querySelector("html")&&document.querySelector("html").style.setProperty("--gx-primary-color",m.value)});const w=t.computed(()=>e.layout==="mix"||e.layout==="side"||e.layout==="wide"||!1),b=t.computed(()=>e.layout==="wide"),B=t.computed(()=>w.value),h=t.computed(()=>e.collapsed?e.collapsedWidth:e.siderWidth),L=t.computed(()=>(e.theme||"dark").toLocaleLowerCase().includes("dark")?"dark":"light"),r=t.computed(()=>(c.value==="sm"||c.value==="xs")&&!e.disableMobile&&!b.value),d=t.reactive({position:"relative"});(e.isChildrenLayout||e.contentStyle&&e.contentStyle.minHeight)&&(d.minHeight=0);const I=(y,f)=>y.headerRender===!1||y.pure?null:t.createVNode(xe,t.mergeProps(y,{matchMenuKeys:f||[]}),null),F=t.computed(()=>({...e.breadcrumb,itemRender:$.getSlot(a,e,"breadcrumbRender")})),x=t.computed(()=>B.value&&e.selectedKeys?Oe(e.menuData,e.selectedKeys[0]):[]);return Le({getPrefixCls:$.getPrefixCls,...J.pick(t.toRefs(e),["layout","waterMark","menuData","openKeys","splitMenus","headerHeight","selectedKeys","disableMobile","fixSiderbar","fixedHeader","waterMarkProps"].concat(Object.keys(We))),theme:L,hasContentWide:b,isMobile:r,siderWidth:h,breadcrumb:F,flatMenuData:x,hasSide:w,flatMenu:B,pageHeaderRender:t.computed(()=>$.getSlot(a,e,"pageHeaderRender"))}),()=>{var T;const y=$.getSlot(a,e,"collapsedButtonRender"),f=$.getSlot(a,e,"headerContentRender"),S=$.getSlot(a,e,"rightContentRender"),V=$.getSlot(a,e,"headerRender"),u=$.getSlot(a,e,"footerRender"),N=$.getSlot(a,e,"links"),M=$.getSlot(a,e,"copyrightRender"),k=$.getSlot(a,e,"extraRightDropdownRender"),K=$.getSlot(a,e,"menuHeaderRender"),j=$.getSlot(a,e,"menuExtraRender"),A=$.getSlot(a,e,"menuContentRender"),z=$.getSlot(a,e,"menuFooterRender"),W=$.getSlot(a,e,"menuItemRender"),Y=$.getSlot(a,e,"subMenuItemRender"),q={menuItemRender:W,subMenuItemRender:Y},X=t.computed(()=>I({...e,...q,hasSiderMenu:w.value,menuData:e.menuData,isMobile:t.unref(r),rightContentRender:S,extraRightDropdownRender:k,headerTitleRender:K,headerContentRender:f,headerRender:V,theme:L.value},e.matchMenuKeys)),_=t.computed(()=>({[`${o.value}`]:!0,[`${n}`]:!0,[`${n}-${e.layout}`]:!0})),s=t.computed(()=>b.value?{minWidth:`${e.wideWidth}px`}:void 0),C=t.computed(()=>b.value?{width:e.menuData.length?`${e.wideWidth}px`:`${e.wideWidth-e.siderWidth-20}px`,paddingTop:`${e.headerHeight+20}px`,margin:b.value?"0 auto":void 0}:void 0),R=t.computed(()=>b.value?{minHeight:"835px"}:{});return l(t.createVNode(t.Fragment,null,[e.pure?(T=a.default)==null?void 0:T.call(a):t.createVNode("div",{class:_.value,style:s.value},[t.createVNode(p.Layout,{style:C.value},{default:()=>[t.createVNode(ie,t.mergeProps(J.omit(e,["pure","theme"]),{links:N,theme:L.value,isMobile:r.value,menuHeaderRender:K,menuContentRender:A,menuExtraRender:j,menuFooterRender:z,collapsedButtonRender:y}),null),t.createVNode(p.Layout,{style:d},{default:()=>[X.value,t.createVNode(ce,t.mergeProps({hashId:o.value,isMobile:r.value,prefixCls:n,collapsedWidth:e.collapsedWidth,isChildrenLayout:e.isChildrenLayout,loading:e.loading,isShowTabsBar:e.showTabsBar,isFixedMultiTab:e.fixedMultiTab,siderWidth:e.siderWidth,collapsed:e.collapsed,style:e.disableContentMargin?R.value:{...e.contentStyle,...R.value}},J.pick(e,["onReloadPage","onChangeTabs"])),{default:()=>{var H;return[(H=a.default)==null?void 0:H.call(a)]}}),u===!1?null:u?u(e):t.createVNode(de,{copyright:M},null)]})]})])]))}}}),Gt=t.defineComponent({components:{GlobalHeader:xe,GlobalFooter:de,SiderMenuWrapper:ie},props:Xe,emits:["update:collapsed","update:open-keys","update:selected-keys","collapse","openKeys","reloadPage","select","menuHeaderClick","menuClick","changeTabs"],setup(e,{slots:a,emit:n}){const l=t.computed(()=>e.theme!==void 0?{dark:e.theme==="realDark"}:{}),o=m=>{n("update:collapsed",m),n("collapse",m)},c=m=>{n("update:open-keys",m),n("openKeys",m)},g=m=>{n("update:selected-keys",m),n("select",m)};return()=>t.createVNode(p.ConfigProvider,{theme:e.primaryColor?{token:{colorPrimary:e.primaryColor}}:void 0},{default:()=>[t.createVNode(i,t.mergeProps({token:e.token},l.value),{default:()=>[t.createVNode(qt,t.mergeProps(J.omit(e,["onSelect","onOpenKeys","onCollapse"]),{onSelect:g,onOpenKeys:c,onCollapse:o}),a)]})]})}}),_e=(e,a,n)=>e.map((l,o)=>{var c;return l.meta&&(l.meta.key=n?`${n}-${o}`:`${o}`),l.path=l.path.replace("//","/"),l.children&&l.children.length>0&&(l.children=_e(l.children,a,(c=l.meta)==null?void 0:c.key)),a[`${l.path}`]=l,l}),_t=e=>{const a=e.find(o=>{var c;return o.path==="/"&&((c=o.children)==null?void 0:c.length)}),n={},l=_e((a==null?void 0:a.children)||[],n);return{menuData:l,breadcrumb:n,levelMenuData:$.getLevelData(l)}},Ze=[{key:"light",title:"亮色菜单风格"},{key:"dark",title:"暗色菜单风格"},{key:"realDark",title:"暗黑模式"}],Je=[{key:"side",title:"侧边菜单布局"},{key:"mix",title:"混合菜单布局"},{key:"wide",title:"定宽菜单布局"},{key:"simple",title:"简单菜单布局"}],Zt=[{key:"header",title:"顶部主题"},{key:"sider",title:"左侧主题"}],Jt=e=>({[e.componentCls]:{[`${e.antCls}-drawer-content-wrapper`]:{transform:"translate(100%)",display:"block !important"},"&-show":{[`${e.antCls}-drawer-content-wrapper`]:{transform:"translate(0%)"}},"&-trantion-none":{[`${e.antCls}-drawer-content-wrapper`]:{transition:"none !important;"}},"&-handle":{position:"absolute",top:240,right:300,zIndex:0,display:"flex",alignItems:"center",justifyContent:"center",width:"48px",height:"48px",fontSize:"16px",textAlign:"center",backgroundColor:e.colorPrimary,borderEndStartRadius:e.borderRadiusLG,borderStartStartRadius:e.borderRadiusLG,"-webkit-backdropilter":"saturate(180%) blur(20px)",backdropFilter:"saturate(180%) blur(20px)",cursor:"pointer",pointerEvents:"auto"},"&-wrapper":{position:"relative",height:`calc(100vh - ${e.marginLG*2}px)`},"&-content":{padding:e.marginLG},"&-body-title":{margin:0,marginBlockEnd:e.marginSM,fontSize:"14px",lineHeight:"22px",color:e.colorBgSpotlight},"&-block-checkbox":{display:"flex",minHeight:42,gap:e.marginSM,"& &-item":{position:"relative",width:"44px",height:"36px",overflow:"hidden",borderRadius:"4px",boxShadow:"0 1px 2.5px rgba(0,0,0,.18)",cursor:"pointer",fontSize:56,lineHeight:"56px","&::before":{position:"absolute",insetBlockStart:0,insetInlineStart:0,width:"33%",height:"100%",content:"''"},"&::after":{position:"absolute",insetBlockStart:0,insetInlineStart:0,width:"100%",height:"25%",content:"''"},"&-dark":{backgroundColor:"rgba(0, 21, 41, 0.85)","&::before":{backgroundColor:"rgba(0, 0, 0, 0.65)"},"&::after":{backgroundColor:"rgba(0, 0, 0, 0.85)"}},"&-light":{backgroundColor:"#f7f8fa","&::before":{backgroundColor:"#fff"},"&::after":{backgroundColor:"#fff"}},"&-realDark":{backgroundColor:"rgba(0, 21, 41, 0.85)","&::before":{backgroundColor:"rgba(0, 0, 0, 0.65)"},"&::after":{backgroundColor:"rgba(0, 0, 0, 0.85)"}},"&-dark,&-side":{backgroundColor:"#f7f8fa","&::before":{zIndex:"1",backgroundColor:"#001529"},"&::after":{backgroundColor:"#fff"}},"&-wide":{backgroundColor:"#f7f8fa","&::before":{backgroundColor:"#fff",left:"15%",width:"15%",height:"calc(100% - 38%)",top:"38%"},"&::after":{backgroundColor:"#fff"},"&-content":{position:"absolute",height:"calc(100% - 38%)",top:"38%",right:"15%",width:"calc(100% - 15% - 15% - 10% - 15%)",backgroundColor:"#fff"}},"&-simple":{backgroundColor:"#f7f8fa","&::before":{backgroundColor:"#fff"},"&::after":{display:"none"}},"&-mix":{backgroundColor:"#f7f8fa","&::before":{backgroundColor:"#fff"},"&::after":{backgroundColor:"#001529"}}},"& &-selectIcon":{position:"absolute",insetInlineEnd:"6px",bottom:"4px",color:e.colorPrimary,fontWeight:"bold",fontSize:"14px",pointerEvents:"none",".action":{color:e.colorPrimary}},"& &-icon":{fontSize:56,lineHeight:"56px"}},"&-theme-color":{marginBlockStart:"16px",display:"flex",gap:8,"&-label":{marginBlock:"16px"},"&-block":{display:"flex",alignItems:"center",justifyContent:"center",width:"20px",height:"20px",color:"#fff",fontWeight:"bold",textAlign:"center",borderRadius:"2px",cursor:"pointer"}},"&-list":{[`&${e.antCls}-list-sm ${e.antCls}-list-item`]:{paddingInline:0}}}}),Qe=t.defineComponent({name:"BlockCheckbox",props:{value:D.string,list:{type:Array,default:()=>[]},configType:D.string,prefixCls:D.string,hashId:D.string,onChange:Function},setup(e){return()=>{const a=`${e.prefixCls}-block-checkbox`;return t.createVNode("div",{class:[a,e.hashId]},[e.list.map(n=>t.createVNode(p.Tooltip,{title:n.title,key:n.key},{default:()=>[t.createVNode("div",{class:$.classNames(e.hashId,`${a}-item`,`${a}-item-${n.key}`,`${a}-${e.configType}-item`),onClick:()=>{var l;return(l=e.onChange)==null?void 0:l.call(e,n.key)}},[n.key==="wide"&&t.createVNode("div",{class:[`${a}-item-${n.key}-content`,e.hashId]},null),t.createVNode(Z.CheckOutlined,{class:`${a}-selectIcon ${e.hashId}`.trim(),style:{display:e.value===n.key?"block":"none"}},null),n!=null&&n.icon?t.createVNode("div",{class:`${a}-icon ${e.hashId}`.trim()},[n.icon]):null])]}))])}}}),Qt=t.defineComponent({name:"ThemeColor",inheritAttrs:!1,props:{settingValue:Object,colorList:{type:Array,default:()=>[]},prefixCls:D.string,hashId:D.string,onChange:Function},setup(e){return()=>{var n;const a=`${e.prefixCls}-theme-color`;return t.createVNode("div",{class:`${a} ${e.hashId}`.trim()},[(n=e.colorList)==null?void 0:n.map(({key:l,color:o,title:c})=>l?t.createVNode(p.Tooltip,{key:o,title:c},{default:()=>{var g,m;return[t.createVNode("div",{class:[`${a}-block ${e.hashId}`.trim(),((g=e.settingValue)==null?void 0:g.primaryColor)===o?`${a}-block-checked`:""],style:{backgroundColor:o},onClick:()=>e.onChange&&e.onChange(o)},[((m=e.settingValue)==null?void 0:m.primaryColor)===o&&t.createVNode(Z.CheckOutlined,null,null)])]}}):null)])}}}),se=t.defineComponent({name:"RegionalChange",props:{label:D.string,value:D.bool,prefixCls:D.string,valueKey:String,hashId:D.string,disabled:D.bool,onChange:Function},setup(e){return()=>t.createVNode(p.List,{class:`${e.prefixCls}-list ${e.hashId}`.trim(),split:!1,size:"small",renderItem:({item:a})=>t.createVNode(p.Tooltip,{title:a.disabled?a.disabledReason:"",placement:"left"},{default:()=>[t.createVNode(p.List.Item,{actions:[a.action]},{default:()=>[t.createVNode("span",{style:{opacity:a.disabled?.5:1}},[a.title])]})]}),dataSource:[{title:e.label,action:t.createVNode(p.Switch,{size:"small",disabled:e.disabled,checked:!!e.value,onChange:a=>{e.onChange&&e.onChange(e.valueKey,a)}},null)}]},null)}}),Pt=e=>({[e.componentCls]:{padding:e.marginLG,"&-title":{display:"flex",alignItems:"center",margin:0,gap:10,marginBlockEnd:e.marginSM,fontSize:"14px",lineHeight:"22px",color:e.colorBgSpotlight},"&-sub-title":{margin:0,display:"flex",alignItems:"center",fontSize:12,fontWeight:"normal",color:e.colorTextDescription},"&-list":{[`&${e.antCls}-list-sm ${e.antCls}-list-item`]:{paddingInline:0,[`${e.antCls}-list-item-action`]:{marginInlineStart:10}}}}});function ea(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!t.isVNode(e)}const ta=t.defineComponent({name:"ThemeEditor",props:{settingValue:Object,onChange:Function},setup(e){const{getPrefixCls:a}=Q(),[n,l]=te.useState("header"),o=a({suffixCls:"theme-editor",isPor:!0}),{wrapSSR:c,hashId:g}=i.useProStyle("ProThemeEditor",[Pt],o),{token:m}=i.useProConfigContext(),w=t.computed(()=>{var r;return(r=m.value)==null?void 0:r.layout}),b=t.computed(()=>{var r,d,I,F,x,y,f,S,V,u,N,M,k,K,j,A,z,W,Y,q,X,_,s,C,R;return[{key:"colorBgMenu",title:"全部背景",disabled:((r=e.settingValue)==null?void 0:r.theme)==="dark"&&["mix","wide"].includes((d=e.settingValue)==null?void 0:d.layout)},{key:"colorDarkBgMenu",title:"全部背景",disabled:((I=e.settingValue)==null?void 0:I.theme)==="light"||((F=e.settingValue)==null?void 0:F.theme)==="dark"&&["side","simple"].includes((x=e.settingValue)==null?void 0:x.layout)},{key:"colorSubItemBg",title:"子菜单背景",disabled:!0},{key:"colorDarkSubItemBg",title:"子菜单背景",disabled:!0},{key:"colorBgMenuItemSelected",title:"菜单选中背景",disabled:((y=e.settingValue)==null?void 0:y.theme)==="dark"&&["mix","wide"].includes((f=e.settingValue)==null?void 0:f.layout)},{key:"colorDarkBgMenuItemSelected",title:"菜单选中背景",disabled:((S=e.settingValue)==null?void 0:S.theme)==="light"||((V=e.settingValue)==null?void 0:V.theme)==="dark"&&["side","simple"].includes((u=e.settingValue)==null?void 0:u.layout)},{key:"colorTextMenu",title:"菜单文字颜色",disabled:((N=e.settingValue)==null?void 0:N.theme)==="dark"&&["mix","wide"].includes((M=e.settingValue)==null?void 0:M.layout)},{key:"colorDarkTextMenu",title:"菜单文字颜色",disabled:((k=e.settingValue)==null?void 0:k.theme)==="light"||((K=e.settingValue)==null?void 0:K.theme)==="dark"&&["side","simple"].includes((j=e.settingValue)==null?void 0:j.layout)},{key:"colorTextMenuHover",title:"菜单文字移入颜色",disabled:((A=e.settingValue)==null?void 0:A.theme)==="dark"&&["mix","wide"].includes((z=e.settingValue)==null?void 0:z.layout)},{key:"colorDarkTextMenuHover",title:"菜单文字移入颜色",disabled:((W=e.settingValue)==null?void 0:W.theme)==="light"||((Y=e.settingValue)==null?void 0:Y.theme)==="dark"&&["side","simple"].includes((q=e.settingValue)==null?void 0:q.layout)},{key:"colorTextMenuSelected",title:"菜单文字选中颜色",disabled:((X=e.settingValue)==null?void 0:X.theme)==="dark"&&["mix","wide"].includes((_=e.settingValue)==null?void 0:_.layout)},{key:"colorDarkTextMenuSelected",title:"菜单文字选中颜色",disabled:((s=e.settingValue)==null?void 0:s.theme)==="light"||((C=e.settingValue)==null?void 0:C.theme)==="dark"&&["side","simple"].includes((R=e.settingValue)==null?void 0:R.layout)}]}),B=t.computed(()=>{var r,d,I,F,x,y,f,S,V,u,N,M,k,K,j,A,z,W,Y,q,X,_,s,C,R,T,H,U,v,me,nt,ot;return[{key:"colorBgMenu",title:"全部背景",disabled:((r=e.settingValue)==null?void 0:r.theme)==="dark"&&["side","simple"].includes((d=e.settingValue)==null?void 0:d.layout)},{key:"colorDarkBgMenu",title:"全部背景",disabled:((I=e.settingValue)==null?void 0:I.theme)==="light"||((F=e.settingValue)==null?void 0:F.theme)==="dark"&&["mix","wide"].includes((x=e.settingValue)==null?void 0:x.layout)},{key:"colorSubItemBg",title:"子菜单背景",disabled:((y=e.settingValue)==null?void 0:y.theme)==="dark"&&["side","simple"].includes((f=e.settingValue)==null?void 0:f.layout)},{key:"colorDarkSubItemBg",title:"子菜单背景",disabled:((S=e.settingValue)==null?void 0:S.theme)==="light"||((V=e.settingValue)==null?void 0:V.theme)==="dark"&&["mix","wide"].includes((u=e.settingValue)==null?void 0:u.layout)},{key:"colorBgMenuItemHover",title:"菜单移入背景",disabled:((N=e.settingValue)==null?void 0:N.theme)==="dark"&&((M=e.settingValue)==null?void 0:M.layout)!=="mix"},{key:"colorBgMenuItemSelected",title:"菜单选中背景",disabled:((k=e.settingValue)==null?void 0:k.theme)==="dark"&&((K=e.settingValue)==null?void 0:K.layout)!=="mix"},{key:"colorDarkBgMenuItemSelected",title:"菜单选中背景",disabled:((j=e.settingValue)==null?void 0:j.theme)==="light"||((A=e.settingValue)==null?void 0:A.theme)==="dark"&&["mix","wide"].includes((z=e.settingValue)==null?void 0:z.layout)},{key:"colorTextMenu",title:"菜单文字颜色",disabled:((W=e.settingValue)==null?void 0:W.theme)==="dark"&&((Y=e.settingValue)==null?void 0:Y.layout)!=="mix"},{key:"colorDarkTextMenu",title:"菜单文字颜色",disabled:((q=e.settingValue)==null?void 0:q.theme)==="light"||((X=e.settingValue)==null?void 0:X.theme)==="dark"&&["mix","wide"].includes((_=e.settingValue)==null?void 0:_.layout)},{key:"colorTextMenuHover",title:"菜单文字移入颜色",disabled:((s=e.settingValue)==null?void 0:s.theme)==="dark"&&((C=e.settingValue)==null?void 0:C.layout)!=="mix"},{key:"colorDarkTextMenuHover",title:"菜单文字移入颜色",disabled:((R=e.settingValue)==null?void 0:R.theme)==="light"||((T=e.settingValue)==null?void 0:T.theme)==="dark"&&["mix","wide"].includes((H=e.settingValue)==null?void 0:H.layout)},{key:"colorTextMenuSelected",title:"菜单文字选中颜色",disabled:((U=e.settingValue)==null?void 0:U.theme)==="dark"&&((v=e.settingValue)==null?void 0:v.layout)!=="mix"},{key:"colorDarkTextMenuSelected",title:"菜单文字选中颜色",disabled:((me=e.settingValue)==null?void 0:me.theme)==="light"||((nt=e.settingValue)==null?void 0:nt.theme)==="dark"&&["mix","wide"].includes((ot=e.settingValue)==null?void 0:ot.layout)}]}),h=t.computed(()=>n.value==="header"?b.value:n.value==="sider"?B.value:[]),L=r=>{var d,I;return console.log(w.value),(I=(d=w.value)==null?void 0:d[n.value])==null?void 0:I[r]};return()=>{var d,I,F;let r;return console.log(h.value),c(t.createVNode("div",{class:[o,g.value]},[t.createVNode("h3",{class:[`${o}-title`,g.value]},[t.createTextVNode("主题编辑器"),t.createVNode("div",{class:[`${o}-sub-title`,g.value]},[t.createVNode("span",null,[(d=Ze.find(x=>{var y;return x.key===((y=e.settingValue)==null?void 0:y.theme)}))==null?void 0:d.title]),t.createVNode("span",{style:{marginInline:"8px"}},[t.createTextVNode("/")]),t.createVNode("span",null,[(I=Je.find(x=>{var y;return x.key===((y=e.settingValue)==null?void 0:y.layout)}))==null?void 0:I.title])])]),t.createVNode("div",{class:[`${o}-content`,g.value]},[t.createVNode(p.List,{class:`${o}-list ${g.value}`.trim(),split:!1,size:"small",renderItem:({item:x})=>t.createVNode(p.List.Item,{actions:[x.action]},{default:()=>[t.createVNode("span",{style:{opacity:x.disabled?.5:1}},[x.title])]}),dataSource:[{title:"自定义主题色",action:t.createVNode(we.GColorPicker,{value:(F=e.settingValue)==null?void 0:F.primaryColor,actions:["confirm"],modes:["rgb"],size:"small",onConfirm:x=>e.onChange&&e.onChange(x,"primaryColor")},null)}]},null),t.createVNode(p.Tabs,{activeKey:n.value,onChange:x=>l(x)},ea(r=Zt.map(x=>t.createVNode(p.TabPane,{key:x.key,tab:x.title},{default:()=>[t.createVNode(p.List,{class:`${o}-list ${g.value}`.trim(),split:!1,size:"small",renderItem:({item:y})=>t.createVNode(p.List.Item,{actions:[y.action]},{default:()=>[t.createVNode("span",{style:{opacity:y.disabled?.5:1}},[y.title])]}),dataSource:h.value.filter(y=>!y.disabled).map(y=>({...y,action:t.createVNode(we.GColorPicker,{value:L(y.key),actions:["confirm"],modes:["rgb"],size:"small",onConfirm:f=>e.onChange&&e.onChange(f,n.value,y.key)},null)}))},null)]})))?r:{default:()=>[r]})])]))}}}),aa=e=>({[e.componentCls]:{padding:e.marginLG,"&-title":{display:"flex",alignItems:"center",margin:0,gap:10,marginBlockEnd:e.marginSM,fontSize:"14px",lineHeight:"22px",color:e.colorBgSpotlight},"&-sub-title":{margin:0,display:"flex",alignItems:"center",fontSize:12,fontWeight:"normal",color:e.colorTextDescription},"&-list":{[`&${e.antCls}-list-sm ${e.antCls}-list-item`]:{paddingInline:0,[`${e.antCls}-list-item-action`]:{marginInlineStart:10}}}}});function Pe(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!t.isVNode(e)}const{preset:et}=he,na=t.defineComponent({name:"OthersChange",props:{prefixCls:D.string,settingValue:Object,onChange:Function},setup(e){const a=$.getPrefixCls({suffixCls:"others",isPor:!0}),{wrapSSR:n,hashId:l}=i.useProStyle("SettingsDrawOthers",[aa],a);return()=>{var c,g,m,w,b,B,h,L,r,d,I,F,x,y;let o;return n(t.createVNode("div",{class:[a,l.value]},[t.createVNode("h3",{class:[`${a}-title`,l.value]},[t.createTextVNode("页面动画设置")]),t.createVNode(p.List,{class:`${a}-list ${l.value}`.trim(),split:!1,size:"small",renderItem:({item:f})=>t.createVNode(p.Tooltip,{title:f.disabled?f.disabledReason:"",placement:"left"},{default:()=>[t.createVNode(p.List.Item,{actions:[f.action]},{default:()=>[t.createVNode("span",{style:{opacity:f.disabled?.5:1}},[f.title])]})]}),dataSource:[{title:"禁用动画",action:t.createVNode(p.Switch,{checked:!((g=(c=e.settingValue)==null?void 0:c.animate)!=null&&g.disabled),size:"small",onChange:f=>{var S;return(S=e.onChange)==null?void 0:S.call(e,"animate","disabled",!f)}},null)},{title:"动画效果",disabled:(w=(m=e.settingValue)==null?void 0:m.animate)==null?void 0:w.disabled,action:t.createVNode(p.Select,{value:(B=(b=e.settingValue)==null?void 0:b.animate)==null?void 0:B.name,style:{width:"100px"},size:"small",disabled:(L=(h=e.settingValue)==null?void 0:h.animate)==null?void 0:L.disabled,getPopupContainer:f=>f&&f.parentNode?f.parentNode:f,onChange:f=>{var S;return(S=e.onChange)==null?void 0:S.call(e,"animate","name",f)}},Pe(o=et.map(f=>t.createVNode(p.Select.Option,{value:f.name},{default:()=>[f.alias]})))?o:{default:()=>[o]})},{title:"动画方向",disabled:(d=(r=e.settingValue)==null?void 0:r.animate)==null?void 0:d.disabled,action:t.createVNode(p.Select,{value:(F=(I=e.settingValue)==null?void 0:I.animate)==null?void 0:F.direction,style:{width:"100px"},size:"small",dropdownStyle:{minWidth:"120px"},disabled:(y=(x=e.settingValue)==null?void 0:x.animate)==null?void 0:y.disabled,getPopupContainer:f=>f&&f.parentNode?f.parentNode:f,onChange:f=>{var S;return(S=e.onChange)==null?void 0:S.call(e,"animate","direction",f)}},{default:()=>{var f;return[(f=et.find(S=>{var V,u;return S.name===((u=(V=e.settingValue)==null?void 0:V.animate)==null?void 0:u.name)}))==null?void 0:f.directions.map(S=>t.createVNode(p.Select.Option,{value:S},Pe(S)?S:{default:()=>[S]}))]}})}]},null)]))}}}),{preset:oa}=he,Ce=Object.keys(i.themeConfig).filter(e=>e!=="title"),tt={color:"#fff",fontSize:20},la=[{label:"fixedHeader",title:"固定 Header"},{label:"fixSiderbar",title:"固定侧边菜单"},{label:"splitMenus",title:"自动分割菜单"}],ia=[{label:"showTabsBar",title:"多标签"},{label:"fixedMultiTab",title:"固定多标签"}],at=e=>$.isBrowser()?{...J.pick(i.themeConfig,Ce),...e||{}}:J.cloneDeep(i.themeConfig),ue=(e,{slots:a})=>{var n;return t.createVNode("div",{style:{marginBottom:"24px"}},[t.createVNode("h3",{class:`${e.prefixCls}-body-title ${e.hashId}`.trim()},[e.title]),(n=a.default)==null?void 0:n.call(a)])},ra=t.defineComponent({name:"SettingDrawer",props:{themeOnly:Boolean,hideHintAlert:Boolean,hideCopyButton:Boolean,weakmode:Boolean,showProgress:Boolean,settings:{type:Object},colorList:{type:[Boolean,Array],default:()=>i.colorList},onChange:Function,onChangeLayout:Function},emits:["change","changeLayout"],setup(e){const{getPrefixCls:a}=Q(),n=a({suffixCls:"setting-drawer",isPor:!0}),{wrapSSR:l,hashId:o}=i.useProStyle("ProSettingDraw",[Jt],n),c=t.ref(!1),[g,m]=te.useState(!1),[w,b]=te.useState(!1),[B,h]=te.useState(!1),L=t.computed(()=>at(J.pick(e.settings,Ce))),[r,d]=te.useMergedState(()=>at(J.pick(e.settings,Ce)),{value:L,onChange:e.onChange}),I=t.computed(()=>e.colorList&&$.isArray(e.colorList)?e.colorList:[]),F=t.computed(()=>yt(t.unref(r))),{copy:x,copied:y,isSupported:f}=Se.useClipboard();t.watch(g,()=>{c.value||(c.value=!0)});const S=(u,N,M)=>{var j,A;const k=["header","sider"],K={};if(M&&k.includes(u)){K[u]={},K[u][M]=N,e.onChangeLayout&&e.onChangeLayout(J.pick(K,k));return}else u==="animate"?(K[u]={},K[u][M]=N,M==="name"&&(K[u].direction=(A=(j=oa.find(z=>z.name===N))==null?void 0:j.directions)==null?void 0:A[0])):K[u]=N;if(u==="colorWeak"){const z=document.querySelector("body");z&&(z.dataset.prosettingdrawer=N===!0?z.style.filter:z.dataset.prosettingdrawer||"none",N===!0&&(z.dataset.prosettingdrawer=z.style.filter),z.style.filter=N===!0?"invert(80%)":z.dataset.prosettingdrawer||"none",N||delete z.dataset.prosettingdrawer)}d($.merge(t.unref(r),{...Re(J.omit(K,k))}))},V=()=>{f.value&&x(JSON.stringify(t.unref(r)))};return t.watch(y,u=>{u&&p.message.success("拷贝成功,请到 config/default/themeConfig.js 中替换默认配置")}),()=>l(t.createVNode(p.Drawer,{width:300,closable:!1,open:g.value,rootClassName:`${n} ${o.value} ${g.value&&`${n}-show`} ${!c.value&&`${n}-trantion-none`}`,placement:"right",rootStyle:{zIndex:999},bodyStyle:{padding:0},onClose:()=>m(!1),handle:t.createVNode("div",{class:[`${n}-handle`,o.value],onClick:()=>m(!g.value)},[g.value?t.createVNode(Z.CloseOutlined,{style:tt},null):t.createVNode(Z.SettingOutlined,{style:tt},null)])},{default:()=>[t.createVNode("div",{class:[`${n}-wrapper`,o.value]},[t.createVNode(dt,null,{default:()=>[t.createVNode("div",{class:[`${n}-content`,o.value]},[t.createVNode(ue,{prefixCls:n,hashId:o.value,title:"整体风格设置"},{default:()=>[t.createVNode(Qe,{hashId:o.value,prefixCls:n,list:Ze,value:r.value.theme,configType:"theme",key:"navTheme",onChange:u=>S("theme",u)},null)]}),t.createVNode(ue,{hashId:o.value,title:t.createVNode("span",null,[t.createTextVNode("主题色"),t.createVNode("a",{style:{fontSize:"12px"},onClick:()=>b(!0)},[t.createTextVNode("更多配置")])]),prefixCls:n},{default:()=>[t.createVNode(Qt,{hashId:o.value,prefixCls:n,colorList:I.value,settingValue:r.value,onChange:(u,N)=>S(N||"primaryColor",u)},null)]}),!e.themeOnly&&t.createVNode(t.Fragment,null,[t.createVNode(p.Divider,null,null),t.createVNode(ue,{hashId:o.value,prefixCls:n,title:"导航模式"},{default:()=>[t.createVNode(Qe,{prefixCls:n,value:t.unref(r).layout,key:"layout",hashId:o.value,configType:"layout",list:Je,onChange:u=>S("layout",u)},null)]}),la.map(({label:u,title:N})=>t.createVNode(se,{label:N,disabled:t.unref(F)[u],value:t.unref(r)[u],prefixCls:n,hashId:o.value,valueKey:u,onChange:(M,k)=>S(M,k)},null)),t.createVNode(p.Divider,null,null),t.createVNode(ue,{hashId:o.value,prefixCls:n,title:t.createVNode("span",null,[t.createTextVNode("其他设置"),t.createVNode("a",{style:{fontSize:"12px"},onClick:()=>h(!0)},[t.createTextVNode("更多配置")])])},{default:()=>[ia.map(({label:u,title:N})=>t.createVNode(se,{label:N,disabled:t.unref(F)[u],value:t.unref(r)[u],prefixCls:n,hashId:o.value,valueKey:u,onChange:(M,k)=>S(M,k)},null)),e.weakmode&&t.createVNode(se,{label:"色弱模式",value:t.unref(r).colorWeak,prefixCls:n,hashId:o.value,valueKey:"colorWeak",onChange:(u,N)=>S(u,N)},null),e.showProgress&&t.createVNode(se,{label:"顶部进度条",value:t.unref(r).showProgressBar,prefixCls:n,hashId:o.value,valueKey:"showProgressBar",onChange:(u,N)=>S(u,N)},null)]})]),e.hideHintAlert&&e.hideCopyButton?null:t.createVNode(p.Divider,null,null),e.hideHintAlert?null:t.createVNode(p.Alert,{type:"warning",message:"配置栏只在开发环境用于预览,生产环境不会展现,请拷贝后手动修改配置文件",icon:t.createVNode(Z.NotificationOutlined,null,null),showIcon:!0,style:{marginBottom:"16px"}},null),e.hideCopyButton?null:t.createVNode(p.Button,{onClick:()=>V(),block:!0},{default:()=>[t.createVNode(Z.CopyOutlined,null,null),t.createTextVNode("拷贝设置")]})])]})]),t.createVNode(p.Drawer,{width:320,closable:!1,placement:"right",open:w.value,bodyStyle:{padding:0},onClose:()=>b(!1)},{default:()=>[t.createVNode(ta,{settingValue:r.value,onChange:(u,N,M)=>S(N||"primaryColor",u,M)},null)]}),t.createVNode(p.Drawer,{width:320,closable:!1,placement:"right",open:B.value,bodyStyle:{padding:0},onClose:()=>h(!1)},{default:()=>[t.createVNode(na,{settingValue:r.value,onChange:(u,N,M)=>S(u,M,N)},null)]})]}))}}),da=new i.Keyframe("backInLeft",{"0%":{opacity:.7,transform:"translateX(-2000px) scale(0.7)"},"80%":{opacity:.7,transform:"translateX(0px) scale(0.7)"},"100%":{opacity:1,transform:"scale(1)"}}),ca=new i.Keyframe("backInRight",{"0%":{opacity:.7,transform:"translateX(2000px) scale(0.7)"},"80%":{opacity:.7,transform:"translateX(0px) scale(0.7)"},"100%":{opacity:1,transform:"scale(1)"}}),sa=new i.Keyframe("backInUp",{"0%":{opacity:.7,transform:"translateY(1200px) scale(0.7)"},"80%":{opacity:.7,transform:"translateY(0px) scale(0.7)"},"100%":{opacity:1,transform:"scale(1)"}}),ua=new i.Keyframe("backInDown",{"0%":{opacity:.7,transform:"translateY(-1200px) scale(0.7)"},"80%":{opacity:.7,transform:"translateY(0px) scale(0.7)"},"100%":{opacity:1,transform:"scale(1)"}}),ma=new i.Keyframe("backOutLeft",{"0%":{opacity:1,transform:"scale(1)"},"20%":{opacity:.7,transform:"translateX(0px) scale(0.7)"},"100%":{opacity:.7,transform:"translateX(-2000px) scale(0.7)"}}),fa=new i.Keyframe("backOutRight",{"0%":{opacity:1,transform:"scale(1)"},"20%":{opacity:.7,transform:"translateX(0px) scale(0.7)"},"100%":{opacity:.7,transform:"translateX(2000px) scale(0.7)"}}),ha=new i.Keyframe("backOutUp",{"0%":{opacity:1,transform:"scale(1)"},"20%":{opacity:.7,transform:"translateY(0px) scale(0.7)"},"100%":{opacity:.7,transform:"translateY(-700px) scale(0.7)"}}),ga=new i.Keyframe("backOutDown",{"0%":{opacity:1,transform:"scale(1)"},"20%":{opacity:.7,transform:"translateY(0px) scale(0.7)"},"100%":{opacity:.7,transform:"translateY(700px) scale(0.7)"}}),ya=()=>({"&.backInLeft":{animationFillMode:"both",animationName:da},"&.backInRight":{animationFillMode:"both",animationName:ca},"&.backInUp":{animationFillMode:"both",animationName:sa},"&.backInDown":{animationFillMode:"both",animationName:ua}}),ba=()=>({"&.backOutLeft":{animationFillMode:"both",animationName:ma},"&.backOutRight":{animationFillMode:"both",animationName:fa},"&.backOutUp":{animationFillMode:"both",animationName:ha},"&.backOutDown":{animationFillMode:"both",animationName:ga}}),pa=new i.Keyframe("bounceIn",{"from,20%,40%,60%,80%,to":{animationTimingFunction:"cubic-bezier(0.215, 0.61, 0.355, 1)"},"0%":{opacity:0,transform:"scale3d(0.3, 0.3, 0.3)"},"20%":{transform:"scale3d(1.1, 1.1, 1.1)"},"40%":{transform:"scale3d(0.9, 0.9, 0.9)"},"60%":{transform:"scale3d(1.03, 1.03, 1.03)"},"80%":{transform:"scale3d(0.97, 0.97, 0.97)"},to:{opacity:1,transform:"scale3d(1, 1, 1)"}}),xa=new i.Keyframe("bounceInLeft",{"from,60%,75%,90%,to":{animationTimingFunction:"cubic-bezier(0.215, 0.61, 0.355, 1)"},"0%":{opacity:0,transform:"translate3d(-3000px, 0, 0) scaleX(3)"},"60%":{opacity:1,transform:"translate3d(25px, 0, 0) scaleX(1)"},"75%":{transform:"translate3d(-10px, 0, 0) scaleX(0.98)"},"90%":{transform:"translate3d(5px, 0, 0) scaleX(0.995)"},to:{transform:"translate3d(0, 0, 0)"}}),Ca=new i.Keyframe("bounceInRight",{"from,60%,75%,90%,to":{animationTimingFunction:"cubic-bezier(0.215, 0.61, 0.355, 1)"},from:{opacity:0,transform:"translate3d(3000px, 0, 0) scaleX(3)"},"60%":{opacity:1,transform:"translate3d(-25px, 0, 0) scaleX(1)"},"75%":{transform:"translate3d(10px, 0, 0) scaleX(0.98)"},"90%":{transform:"translate3d(-5px, 0, 0) scaleX(0.995)"},to:{transform:"translate3d(0, 0, 0)"}}),Sa=new i.Keyframe("bounceInDown",{"from,60%,75%,90%,to":{animationTimingFunction:"cubic-bezier(0.215, 0.61, 0.355, 1)"},"0%":{opacity:0,transform:"translate3d(0, -3000px, 0) scaleY(3)"},"60%":{opacity:1,transform:"translate3d(0, 25px, 0) scaleY(0.9)"},"75%":{transform:"translate3d(0, -10px, 0) scaleY(0.95)"},"90%":{transform:"translate3d(0, 5px, 0) scaleY(0.985)"},to:{transform:"translate3d(0, 0, 0)"}}),wa=new i.Keyframe("bounceInUp",{"from,60%,75%,90%,to":{animationTimingFunction:"cubic-bezier(0.215, 0.61, 0.355, 1)"},from:{opacity:0,transform:"translate3d(0, 3000px, 0) scaleY(5)"},"60%":{opacity:1,transform:"translate3d(0, -20px, 0) scaleY(0.9)"},"75%":{transform:"translate3d(0, 10px, 0) scaleY(0.95)"},"90%":{transform:"translate3d(0, -5px, 0) scaleY(0.985)"},to:{transform:"translate3d(0, 0, 0)"}}),Na=new i.Keyframe("bounceOut",{"20%":{transform:"scale3d(0.9, 0.9, 0.9)"},"50%,55%":{transform:"scale3d(1.1, 1.1, 1.1)"},"60%":{transform:"scale3d(1.03, 1.03, 1.03)"},to:{opacity:0,transform:"scale3d(0.3, 0.3, 0.3)"}}),Ia=new i.Keyframe("bounceOutLeft",{"20%":{opacity:1,transform:"translate3d(20px, 0, 0) scaleX(0.9)"},to:{opacity:0,transform:"translate3d(-2000px, 0, 0) scaleX(2)"}}),Ma=new i.Keyframe("bounceOutRight",{"20%":{opacity:1,transform:"translate3d(-20px, 0, 0) scaleX(0.9)"},to:{opacity:0,transform:"translate3d(2000px, 0, 0) scaleX(2)"}}),ka=new i.Keyframe("bounceOutDown",{"20%":{transform:"translate3d(0, 10px, 0) scaleY(0.985)"},"40%,45%":{opacity:1,transform:"translate3d(0, -20px, 0) scaleY(0.9)"},to:{opacity:0,transform:"translate3d(0, 2000px, 0) scaleY(3)"}}),Ba=new i.Keyframe("bounceOutUp",{"20%":{transform:"translate3d(0, -10px, 0) scaleY(0.985)"},"40%,45%":{opacity:1,transform:"translate3d(0, 20px, 0) scaleY(0.9)"},to:{opacity:0,transform:"translate3d(0, -2000px, 0) scaleY(3)"}}),Oa=()=>({"&.bounceIn":{animationFillMode:"both",animationDuration:`${.3*.75}s !important`,animationName:pa},"&.bounceInLeft":{animationFillMode:"both",animationName:xa},"&.bounceInRight":{animationFillMode:"both",animationName:Ca},"&.bounceInDown":{animationFillMode:"both",animationName:Sa},"&.bounceInUp":{animationFillMode:"both",animationName:wa}}),Fa=()=>({"&.bounceOut":{animationFillMode:"both",animationDuration:`${.3*.75}s !important`,animationName:Na},"&.bounceOutLeft":{animationFillMode:"both",animationName:Ia},"&.bounceOutRight":{animationFillMode:"both",animationName:Ma},"&.bounceOutDown":{animationFillMode:"both",animationName:ka},"&.bounceOutUp":{animationFillMode:"both",animationName:Ba}}),Ra=new i.Keyframe("fadeIn",{from:{opacity:0},to:{opacity:1}}),Va=new i.Keyframe("fadeInLeft",{from:{opacity:0,transform:"translate3d(-100%, 0, 0)"},to:{opacity:1,transform:"translate3d(0, 0, 0)"}}),Ta=new i.Keyframe("fadeInRight",{from:{opacity:0,transform:"translate3d(100%, 0, 0)"},to:{opacity:1,transform:"translate3d(0, 0, 0)"}}),$a=new i.Keyframe("fadeInDown",{from:{opacity:0,transform:"translate3d(0, -100%, 0)"},to:{opacity:1,transform:"translate3d(0, 0, 0)"}}),La=new i.Keyframe("fadeInUp",{from:{opacity:0,transform:"translate3d(0, 100%, 0)"},to:{opacity:1,transform:"translate3d(0, 0, 0)"}}),Ka=new i.Keyframe("fadeInDownBig",{from:{opacity:0,transform:"translate3d(0, -2000px, 0)"},to:{opacity:1,transform:"translate3d(0, 0, 0)"}}),Da=new i.Keyframe("fadeInUpBig",{from:{opacity:0,transform:"translate3d(0, 2000px, 0)"},to:{opacity:1,transform:"translate3d(0, 0, 0)"}}),za=new i.Keyframe("fadeInLeftBig",{from:{opacity:0,transform:"translate3d(-2000px, 0, 0)"},to:{opacity:1,transform:"translate3d(0, 0, 0)"}}),Ha=new i.Keyframe("fadeInRightBig",{from:{opacity:0,transform:"translate3d(2000px, 0, 0)"},to:{opacity:1,transform:"translate3d(0, 0, 0)"}}),Aa=new i.Keyframe("fadeInTopLeft",{from:{opacity:0,transform:"translate3d(-100%, -100%, 0)"},to:{opacity:1,transform:"translate3d(0, 0, 0)"}}),ja=new i.Keyframe("fadeInBottomRight",{from:{opacity:0,transform:"translate3d(100%, 100%, 0)"},to:{opacity:1,transform:"translate3d(0, 0, 0)"}}),Wa=new i.Keyframe("fadeInTopRight",{from:{opacity:0,transform:"translate3d(100%, -100%, 0)"},to:{opacity:1,transform:"translate3d(0, 0, 0)"}}),va=new i.Keyframe("fadeInBottomLeft",{from:{opacity:0,transform:"translate3d(-100%, 100%, 0)"},to:{opacity:1,transform:"translate3d(0, 0, 0)"}}),Ea=new i.Keyframe("fadeOut",{from:{opacity:1},to:{opacity:0}}),Ua=new i.Keyframe("fadeOutLeft",{from:{opacity:1},to:{opacity:0,transform:"translate3d(-100%, 0, 0)"}}),Xa=new i.Keyframe("fadeOutRight",{from:{opacity:1},to:{opacity:0,transform:"translate3d(100%, 0, 0)"}}),Ya=new i.Keyframe("fadeOutDown",{from:{opacity:1},to:{opacity:0,transform:"translate3d(0, 100%, 0)"}}),qa=new i.Keyframe("fadeOutUp",{from:{opacity:1},to:{opacity:0,transform:"translate3d(0, -100%, 0)"}}),Ga=new i.Keyframe("fadeOutDownBig",{from:{opacity:1},to:{opacity:0,transform:"translate3d(0, 2000px, 0)"}}),_a=new i.Keyframe("fadeOutUpBig",{from:{opacity:1},to:{opacity:0,transform:"translate3d(0, -2000px, 0)"}}),Za=new i.Keyframe("fadeOutLeftBig",{from:{opacity:1},to:{opacity:0,transform:"translate3d(-2000px, 0, 0)"}}),Ja=new i.Keyframe("fadeOutRightBig",{from:{opacity:1},to:{opacity:0,transform:"translate3d(2000px, 0, 0)"}}),Qa=new i.Keyframe("fadeOutTopLeft",{from:{opacity:1,transform:"translate3d(0, 0, 0)"},to:{opacity:0,transform:"translate3d(-100%, -100%, 0)"}}),Pa=new i.Keyframe("fadeOutBottomRight",{from:{opacity:1,transform:"translate3d(0, 0, 0)"},to:{opacity:0,transform:"translate3d(100%, 100%, 0)"}}),en=new i.Keyframe("fadeOutTopRight",{from:{opacity:1,transform:"translate3d(0, 0, 0)"},to:{opacity:0,transform:"translate3d(100%, -100%, 0)"}}),tn=new i.Keyframe("fadeOutBottomLeft",{from:{opacity:1,transform:"translate3d(0, 0, 0)"},to:{opacity:0,transform:"translate3d(-100%, 100%, 0)"}}),an=()=>({"&.fadeIn":{animationFillMode:"both",animationName:Ra},"&.fadeInLeft":{animationFillMode:"both",animationName:Va},"&.fadeInRight":{animationFillMode:"both",animationName:Ta},"&.fadeInDown":{animationFillMode:"both",animationName:$a},"&.fadeInUp":{animationFillMode:"both",animationName:La},"&.fadeInLeftBig":{animationFillMode:"both",animationName:za},"&.fadeInRightBig":{animationFillMode:"both",animationName:Ha},"&.fadeInUpBig":{animationFillMode:"both",animationName:Da},"&.fadeInDownBig":{animationFillMode:"both",animationName:Ka},"&.fadeInTopLeft":{animationFillMode:"both",animationName:Aa},"&.fadeInBottomRight":{animationFillMode:"both",animationName:ja},"&.fadeInTopRight":{animationFillMode:"both",animationName:Wa},"&.fadeInBottomLeft":{animationFillMode:"both",animationName:va}}),nn=()=>({"&.fadeOut":{animationFillMode:"both",animationName:Ea},"&.fadeOutLeft":{animationFillMode:"both",animationName:Ua},"&.fadeOutRight":{animationFillMode:"both",animationName:Xa},"&.fadeOutDown":{animationFillMode:"both",animationName:Ya},"&.fadeOutUp":{animationFillMode:"both",animationName:qa},"&.fadeOutDownBig":{animationFillMode:"both",animationName:Ga},"&.fadeOutUpBig":{animationFillMode:"both",animationName:_a},"&.fadeOutLeftBig":{animationFillMode:"both",animationName:Za},"&.fadeOutRightBig":{animationFillMode:"both",animationName:Ja},"&.fadeOutTopLeft":{animationFillMode:"both",animationName:Qa},"&.fadeOutBottomRight":{animationFillMode:"both",animationName:Pa},"&.fadeOutTopRight":{animationFillMode:"both",animationName:en},"&.fadeOutBottomLeft":{animationFillMode:"both",animationName:tn}}),on=new i.Keyframe("flipInX",{from:{opacity:0,animationTimingFunction:"ease-in",transform:"perspective(400px) rotate3d(1, 0, 0, 90deg)"},"40%":{animationTimingFunction:"ease-in",transform:"perspective(400px) rotate3d(1, 0, 0, -20deg)"},"60%":{opacity:1,transform:"perspective(400px) rotate3d(1, 0, 0, 10deg)"},"80%":{transform:"perspective(400px) rotate3d(1, 0, 0, -5deg)"},to:{transform:"perspective(400px)"}}),ln=new i.Keyframe("flipInY",{from:{opacity:0,animationTimingFunction:"ease-in",transform:"perspective(400px) rotate3d(0, 1, 0, 90deg)"},"40%":{animationTimingFunction:"ease-in",transform:"perspective(400px) rotate3d(0, 1, 0, -20deg)"},"60%":{opacity:1,transform:"perspective(400px) rotate3d(0, 1, 0, 10deg)"},"80%":{transform:"perspective(400px) rotate3d(0, 1, 0, -5deg)"},to:{transform:"perspective(400px)"}}),rn=new i.Keyframe("flipOutX",{from:{transform:"perspective(400px)"},"40%":{opacity:1,transform:"perspective(400px) rotate3d(1, 0, 0, -20deg)"},to:{opacity:0,transform:"perspective(400px) rotate3d(1, 0, 0, 90deg)"}}),dn=new i.Keyframe("flipOutY",{from:{transform:"perspective(400px)"},"40%":{opacity:1,transform:"perspective(400px) rotate3d(0, 1, 0, -15deg)"},to:{opacity:0,transform:"perspective(400px) rotate3d(0, 1, 0, 90deg)"}}),cn=()=>({"&.flipInX":{animationFillMode:"both",backfaceVisibility:"visible !important",animationName:on},"&.flipInY":{animationFillMode:"both",backfaceVisibility:"visible !important",animationName:ln}}),sn=()=>({"&.flipOutX":{animationFillMode:"both",backfaceVisibility:"visible !important",animationDuration:`${.3*.75}s !important`,animationName:rn},"&.flipOutY":{animationFillMode:"both",backfaceVisibility:"visible !important",animationDuration:`${.3*.75}s !important`,animationName:dn}}),un=new i.Keyframe("lightSpeedInLeft",{from:{opacity:0,transform:"translate3d(-100%, 0, 0) skewX(30deg)"},"60%":{opacity:1,transform:"skewX(-20deg)"},"80%":{transform:"skewX(5deg)"},to:{transform:"translate3d(0, 0, 0)"}}),mn=new i.Keyframe("lightSpeedInRight",{from:{opacity:0,transform:"translate3d(100%, 0, 0) skewX(-30deg)"},"60%":{opacity:1,transform:"skewX(20deg)"},"80%":{transform:"skewX(-5deg)"},to:{transform:"translate3d(0, 0, 0)"}}),fn=new i.Keyframe("lightSpeedOutLeft",{from:{opacity:1},to:{opacity:0,transform:"translate3d(-100%, 0, 0) skewX(-30deg)"}}),hn=new i.Keyframe("lightSpeedOutRight",{from:{opacity:1},to:{opacity:0,transform:"translate3d(100%, 0, 0) skewX(30deg)"}}),gn=()=>({"&.lightSpeedInLeft":{animationFillMode:"both",animationTimingFunction:"ease-out",animationName:un},"&.lightSpeedInRight":{animationFillMode:"both",animationTimingFunction:"ease-out",animationName:mn}}),yn=()=>({"&.lightSpeedOutLeft":{animationFillMode:"both",animationTimingFunction:"ease-in",animationName:fn},"&.lightSpeedOutRight":{animationFillMode:"both",animationTimingFunction:"ease-in",animationName:hn}}),bn=new i.Keyframe("rotateIn",{from:{opacity:0,transform:"rotate3d(0, 0, 1, -200deg)"},to:{opacity:1,transform:"translate3d(0, 0, 0)"}}),pn=new i.Keyframe("rotateInDownLeft",{from:{opacity:0,transform:"rotate3d(0, 0, 1, -45deg)"},to:{opacity:1,transform:"translate3d(0, 0, 0)"}}),xn=new i.Keyframe("rotateInDownRight",{from:{opacity:0,transform:"rotate3d(0, 0, 1, 45deg)"},to:{opacity:1,transform:"translate3d(0, 0, 0)"}}),Cn=new i.Keyframe("rotateInUpLeft",{from:{opacity:0,transform:"rotate3d(0, 0, 1, 45deg)"},to:{opacity:1,transform:"translate3d(0, 0, 0)"}}),Sn=new i.Keyframe("rotateInUpRight",{from:{opacity:0,transform:"rotate3d(0, 0, 1, -90deg)"},to:{opacity:1,transform:"translate3d(0, 0, 0)"}}),wn=new i.Keyframe("rotateOut",{from:{opacity:1},to:{opacity:0,transform:"rotate3d(0, 0, 1, 200deg)"}}),Nn=new i.Keyframe("rotateOutDownLeft",{from:{opacity:1},to:{opacity:0,transform:"rotate3d(0, 0, 1, 45deg)"}}),In=new i.Keyframe("rotateOutDownRight",{from:{opacity:1},to:{opacity:0,transform:"rotate3d(0, 0, 1, -45deg)"}}),Mn=new i.Keyframe("rotateOutUpLeft",{from:{opacity:1},to:{opacity:0,transform:"rotate3d(0, 0, 1, -45deg)"}}),kn=new i.Keyframe("rotateOutUpRight",{from:{opacity:1},to:{opacity:0,transform:"rotate3d(0, 0, 1, 90deg)"}}),Bn=()=>({"&.rotateIn":{animationFillMode:"both",transformOrigin:"center",animationName:bn},"&.rotateInDownLeft":{animationFillMode:"both",transformOrigin:"left bottom",animationName:pn},"&.rotateInDownRight":{animationFillMode:"both",transformOrigin:"right bottom",animationName:xn},"&.rotateInUpLeft":{animationFillMode:"both",transformOrigin:"left bottom",animationName:Cn},"&.rotateInUpRight":{animationFillMode:"both",transformOrigin:"right bottom",animationName:Sn}}),On=()=>({"&.rotateOut":{animationFillMode:"both",transformOrigin:"center",animationName:wn},"&.rotateOutDownLeft":{animationFillMode:"both",transformOrigin:"left bottom",animationName:Nn},"&.rotateOutDownRight":{animationFillMode:"both",transformOrigin:"right bottom",animationName:In},"&.rotateOutUpLeft":{animationFillMode:"both",transformOrigin:"left bottom",animationName:Mn},"&.rotateOutUpRight":{animationFillMode:"both",transformOrigin:"right bottom",animationName:kn}}),Fn=new i.Keyframe("rollIn",{from:{opacity:0,transform:"translate3d(-100%, 0, 0) rotate3d(0, 0, 1, -120deg)"},to:{opacity:1,transform:"translate3d(0, 0, 0)"}}),Rn=new i.Keyframe("rollOut",{from:{opacity:1},to:{opacity:0,transform:"translate3d(100%, 0, 0) rotate3d(0, 0, 1, 120deg)"}}),Vn=()=>({"&.rollIn":{animationFillMode:"both",animationName:Fn}}),Tn=()=>({"&.rollOut":{animationFillMode:"both",animationName:Rn}}),$n=new i.Keyframe("zoomIn",{from:{opacity:0,transform:"scale3d(0.3, 0.3, 0.3)"},"50%":{opacity:1}}),Ln=new i.Keyframe("zoomInDown",{from:{opacity:0,transform:"scale3d(0.1, 0.1, 0.1) translate3d(0, -1000px, 0)",animationTimingFunction:"cubic-bezier(0.55, 0.055, 0.675, 0.19)"},"60%":{opacity:1,transform:"scale3d(0.475, 0.475, 0.475) translate3d(0, 60px, 0)",animationTimingFunction:"cubic-bezier(0.175, 0.885, 0.32, 1)"}}),Kn=new i.Keyframe("zoomInLeft",{from:{opacity:0,transform:"scale3d(0.1, 0.1, 0.1) translate3d(-1000px, 0, 0)",animationTimingFunction:"cubic-bezier(0.55, 0.055, 0.675, 0.19)"},"60%":{opacity:1,transform:"scale3d(0.475, 0.475, 0.475) translate3d(10px, 0, 0)",animationTimingFunction:"cubic-bezier(0.175, 0.885, 0.32, 1)"}}),Dn=new i.Keyframe("zoomInRight",{from:{opacity:0,transform:"scale3d(0.1, 0.1, 0.1) translate3d(1000px, 0, 0)",animationTimingFunction:"cubic-bezier(0.55, 0.055, 0.675, 0.19)"},"60%":{opacity:1,transform:"scale3d(0.475, 0.475, 0.475) translate3d(-10px, 0, 0)",animationTimingFunction:"cubic-bezier(0.175, 0.885, 0.32, 1)"}}),zn=new i.Keyframe("zoomInUp",{from:{opacity:0,transform:"scale3d(0.1, 0.1, 0.1) translate3d(0, 1000px, 0)",animationTimingFunction:"cubic-bezier(0.55, 0.055, 0.675, 0.19)"},"60%":{opacity:1,transform:"scale3d(0.475, 0.475, 0.475) translate3d(0, -60px, 0)",animationTimingFunction:"cubic-bezier(0.175, 0.885, 0.32, 1)"}}),Hn=new i.Keyframe("zoomOut",{from:{opacity:1},"50%":{opacity:0,transform:"scale3d(0.3, 0.3, 0.3)"},to:{opacity:0}}),An=new i.Keyframe("zoomOutDown",{"40%":{opacity:1,transform:"scale3d(0.475, 0.475, 0.475) translate3d(0, -60px, 0)",animationTimingFunction:"cubic-bezier(0.55, 0.055, 0.675, 0.19)"},to:{opacity:0,transform:"scale3d(0.1, 0.1, 0.1) translate3d(0, 2000px, 0)",animationTimingFunction:"cubic-bezier(0.175, 0.885, 0.32, 1)"}}),jn=new i.Keyframe("zoomOutLeft",{"40%":{opacity:1,transform:"scale3d(0.475, 0.475, 0.475) translate3d(42px, 0, 0)"},to:{opacity:0,transform:"scale(0.1) translate3d(-2000px, 0, 0)"}}),Wn=new i.Keyframe("zoomOutRight",{"40%":{opacity:1,transform:"scale3d(0.475, 0.475, 0.475) translate3d(-42px, 0, 0)"},to:{opacity:0,transform:"scale(0.1) translate3d(2000px, 0, 0)"}}),vn=new i.Keyframe("zoomOutUp",{"40%":{opacity:1,transform:"scale3d(0.475, 0.475, 0.475) translate3d(0, 60px, 0)",animationTimingFunction:"cubic-bezier(0.55, 0.055, 0.675, 0.19)"},to:{opacity:0,transform:"scale3d(0.1, 0.1, 0.1) translate3d(0, -2000px, 0)",animationTimingFunction:"cubic-bezier(0.175, 0.885, 0.32, 1)"}}),En=()=>({"&.zoomIn":{animationFillMode:"both",animationName:$n},"&.zoomInDown":{animationFillMode:"both",animationName:Ln},"&.zoomInLeft":{animationFillMode:"both",animationName:Kn},"&.zoomInRight":{animationFillMode:"both",animationName:Dn},"&.zoomInUp":{animationFillMode:"both",animationName:zn}}),Un=()=>({"&.zoomOut":{animationFillMode:"both",animationName:Hn},"&.zoomOutDown":{animationFillMode:"both",transformOrigin:"center bottom",animationName:An},"&.zoomOutLeft":{animationFillMode:"both",transformOrigin:"left center",animationName:jn},"&.zoomOutRight":{animationFillMode:"both",transformOrigin:"right center",animationName:Wn},"&.zoomOutUp":{animationFillMode:"both",transformOrigin:"center bottom",animationName:vn}}),Xn=new i.Keyframe("slideInDown",{from:{transform:"translate3d(0, -100%, 0)",visibility:"visible"},to:{transform:"translate3d(0, 0, 0)"}}),Yn=new i.Keyframe("slideInLeft",{from:{transform:"translate3d(-100%, 0, 0)",visibility:"visible"},to:{transform:"translate3d(0, 0, 0)"}}),qn=new i.Keyframe("slideInRight",{from:{transform:"translate3d(100%, 0, 0)",visibility:"visible"},to:{transform:"translate3d(0, 0, 0)"}}),Gn=new i.Keyframe("slideInUp",{from:{transform:"translate3d(0, 100%, 0)",visibility:"visible"},to:{transform:"translate3d(0, 0, 0)"}}),_n=new i.Keyframe("slideOutDown",{from:{transform:"translate3d(0, 0, 0)"},to:{transform:"translate3d(0, 100%, 0)",visibility:"hidden"}}),Zn=new i.Keyframe("slideOutLeft",{from:{transform:"translate3d(0, 0, 0)"},to:{transform:"translate3d(-100%, 0, 0)",visibility:"hidden"}}),Jn=new i.Keyframe("slideOutRight",{from:{transform:"translate3d(0, 0, 0)"},to:{transform:"translate3d(100%, 0, 0)",visibility:"hidden"}}),Qn=new i.Keyframe("slideOutUp",{from:{transform:"translate3d(0, 0, 0)"},to:{transform:"translate3d(0, -100%, 0)",visibility:"hidden"}}),Pn=()=>({"&.slideInDown":{animationFillMode:"both",animationName:Xn},"&.slideInLeft":{animationFillMode:"both",animationName:Yn},"&.slideInRight":{animationFillMode:"both",animationName:qn},"&.slideInUp":{animationFillMode:"both",animationName:Gn}}),eo=()=>({"&.slideOutDown":{animationFillMode:"both",animationName:_n},"&.slideOutLeft":{animationFillMode:"both",animationName:Zn},"&.slideOutRight":{animationFillMode:"both",animationName:Jn},"&.slideOutUp":{animationFillMode:"both",animationName:Qn}}),to=e=>({[e.componentCls]:{"&-enter":{background:"transparent",animationDuration:".3s !important",...ya(),...Oa(),...an(),...cn(),...gn(),...Bn(),...Vn(),...En(),...Pn()},"&-leave":{display:"none",background:"transparent",animationDuration:".3s !important",...ba(),...Fa(),...nn(),...sn(),...yn(),...On(),...Tn(),...Un(),...eo()}}});function ao(e){return i.useStyle("LayoutPageTranstion",a=>{const n=i.mergeToken(a);return[to(n)]},e)}const no=t.defineComponent({name:"PageTranstion",props:{disabled:{type:Boolean,default:!1},reverse:{type:Boolean,default:!0},name:{type:String,default:"bounce"},direction:String},setup(e,{slots:a}){const n=$.getPrefixCls({suffixCls:"page-transtion",isPor:!0}),{wrapSSR:l,hashId:o}=ao(n),c=(b,B)=>{if(b.length===0||b==="x"||b==="y")return b;let h=B.indexOf(b);return h=h%2===1?h-1:h+1,B[h]},g=b=>{const B=he.preset.find(r=>e.name===r.name);if(B===void 0)return"";let h="";e.direction===void 0?h=B.directions[0]:h=B.directions.find(r=>r===e.direction)||"",h=h===void 0||h==="default"?"":h,h!==""&&(h=b&&e.reverse?c(h,B.directions):h,h=h[0].toUpperCase()+h.substring(1));const L=b?"Out":"In";return B.name+L+h},m=t.computed(()=>[g(!1),`${n}-enter`,o.value].join(" ")),w=t.computed(()=>[g(!0),`${n}-leave`,o.value].join(" "));return()=>{var b;return e.disabled?(b=a.default)==null?void 0:b.call(a):l(t.createVNode(t.Transition,{enterActiveClass:m.value,leaveActiveClass:w.value},{default:()=>{var B;return[(B=a.default)==null?void 0:B.call(a)]}}))}}});O.BaseMenu=ye,O.DefaultHeader=qe,O.GProLayout=Gt,O.GlobalFooter=de,O.PageContainer=Rt,O.PageLoading=Ne,O.PageTranstion=no,O.SettingDrawer=ra,O.SiderMenuWrapper=ie,O.WrapContent=ce,O.baseMenuProps=ae,O.clearMenuItem=ke,O.createContext=Ve,O.createRouteContext=$e,O.flatMap=Be,O.getMatchedList=gt,O.getMenuData=_t,O.getMenuFirstChildren=Oe,O.getMenuFirstLastChildPath=Fe,O.handleThemeConfig=Re,O.hanlePathKey=E,O.provideProLayoutContext=Le,O.useContext=Te,O.useProLayoutContext=Q,Object.defineProperty(O,Symbol.toStringTag,{value:"Module"})});
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gx-design-vue/pro-layout",
3
- "version": "0.1.0-beta.55",
3
+ "version": "0.1.0-beta.56",
4
4
  "scripts": {
5
5
  "dev": "vite",
6
6
  "build": "vite build",
@@ -28,7 +28,7 @@
28
28
  "@gx-design-vue/pro-app": "^0.1.0-beta.11",
29
29
  "@gx-design-vue/pro-utils": "^0.2.0-beta.28",
30
30
  "@gx-design-vue/pro-hooks": "^0.2.0-beta.20",
31
- "@gx-design-vue/pro-provider": "^0.1.0-beta.55",
31
+ "@gx-design-vue/pro-provider": "^0.1.0-beta.56",
32
32
  "@gx-design-vue/pro-watermark": "^0.2.0-beta.7",
33
33
  "@gx-design-vue/scrollbar": "^0.2.0-beta.13",
34
34
  "@gx-design-vue/color-picker": "^0.2.0-beta.18",