@gx-design-vue/pro-layout 0.1.0-beta.88 → 0.1.0-beta.89

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.
@@ -4,7 +4,7 @@ import { LayoutFooter as Qn, Tabs as wt, Menu as ye, Dropdown as gt, Popover as
4
4
  import { useLocalStorage as ot, useColorMode as la, useStyleTag as ra, useMagicKeys as on, whenever as yt, useThrottleFn as sa, onKeyStroke as mt, useFullscreen as ua, useDebounceFn as ca, useClipboard as da } from "@vueuse/core";
5
5
  import { useState as xe, useMemo as bt, useMergedState as De, useMediaQuery as ln } from "@gx-design-vue/pro-hooks";
6
6
  import { getPrefixCls as ie, arrayRepeat as ma, classNames as V, isBoolean as oe, merge as pe, isNumber as _e, isUrl as Bt, isImg as fa, isArray as it, convertValueBoolean as Te, isObject as ha, isString as ga, getLevelData as Mt, deepCopy as ya, getRandomNumber as vt, getSlot as se, getSlotVNode as Pe, getSlotsProps as rn, isWindowsOs as ba, isDeepEqualReact as va, isBrowser as pa } from "@gx-design-vue/pro-utils";
7
- import Ca, { themeConfig as Z, useContext as Lt, useProStyle as ge, useStyle as Fe, mergeToken as je, getTokenLayoutTheme as be, resetComponent as xa, Keyframe as I, checkMenuDark as lt, calcUnit as Ee, getDefaultLayoutToken as rt, useProConfigContext as ke, unit as Ae, getLayoutTheme as sn, useProForm as Sa, setAlpha as Ia, defaultSystemTheme as wa, defaultLayout as Ra, colorList as $a } from "@gx-design-vue/pro-provider";
7
+ import Ca, { themeConfig as Z, useContext as Lt, useProStyle as ge, useStyle as Fe, mergeToken as je, getTokenLayoutTheme as be, resetComponent as xa, Keyframe as S, checkMenuDark as lt, calcUnit as Ee, getDefaultLayoutToken as rt, useProConfigContext as ke, unit as Ae, getLayoutTheme as sn, useProForm as Sa, setAlpha as Ia, defaultSystemTheme as wa, defaultLayout as Ra, colorList as $a } from "@gx-design-vue/pro-provider";
8
8
  import { createTypes as Ba } from "vue-types";
9
9
  import "ant-design-vue/es/spin";
10
10
  import Be from "dayjs";
@@ -461,6 +461,12 @@ const Ne = {
461
461
  ...ce,
462
462
  ...vn,
463
463
  ...le(Ct, ["onTabsChange", "onReloadPage", "onUpdate:tabs"]),
464
+ id: String,
465
+ class: String,
466
+ style: {
467
+ type: Object,
468
+ default: () => ({})
469
+ },
464
470
  contentWidth: tt.contentWidth,
465
471
  pageContainerProps: {
466
472
  type: Object
@@ -795,35 +801,35 @@ const Io = /* @__PURE__ */ K({
795
801
  flatMenuData: h,
796
802
  layout: g,
797
803
  splitMenus: u,
798
- getPrefixCls: y
799
- } = re(), b = y({
804
+ getPrefixCls: I
805
+ } = re(), y = I({
800
806
  isPor: !0,
801
807
  suffixCls: "tabs-route"
802
808
  }), {
803
- wrapSSR: c,
804
- hashId: x
805
- } = go(b), w = ot(b, {
809
+ wrapSSR: d,
810
+ hashId: C
811
+ } = go(y), w = ot(y, {
806
812
  fixed: [],
807
813
  normal: []
808
- }), d = Ce({
814
+ }), c = Ce({
809
815
  fixed: o.value && ((fe = w.value) != null && fe.fixed) ? (Se = w.value) == null ? void 0 : Se.fixed : [],
810
816
  normal: o.value && ((Re = w.value) != null && Re.normal) ? ($e = w.value) == null ? void 0 : $e.normal : []
811
817
  });
812
- ae(o, (C) => {
813
- w.value = C ? we(d) : {
818
+ ae(o, (p) => {
819
+ w.value = p ? we(c) : {
814
820
  fixed: [],
815
821
  normal: []
816
822
  };
817
823
  });
818
- const p = R(() => d.fixed.concat(d.normal)), m = R(() => g.value === "mix" && !e.isMobile && u.value), S = R(() => _(s.currentRoute.value)), P = R(() => a.value && !t.value), N = R(() => {
819
- const C = !(m.value && ue(h.value).length === 0 || f.value.length === 0 || g.value === "top");
820
- return P.value && C ? `calc(100% - ${e.collapsed ? e.collapsedWidth : e.siderWidth}px)` : "100%";
821
- }), B = R(() => V(`${b}-wrap`, {
822
- [`${x.value}`]: !0,
823
- [`${b}-wrap-fixed`]: a.value,
824
- [`${b}-wrap-loading`]: e.loading
824
+ const v = R(() => c.fixed.concat(c.normal)), m = R(() => g.value === "mix" && !e.isMobile && u.value), x = R(() => _(s.currentRoute.value)), P = R(() => a.value && !t.value), N = R(() => {
825
+ const p = !(m.value && ue(h.value).length === 0 || f.value.length === 0 || g.value === "top");
826
+ return P.value && p ? `calc(100% - ${e.collapsed ? e.collapsedWidth : e.siderWidth}px)` : "100%";
827
+ }), B = R(() => V(`${y}-wrap`, {
828
+ [`${C.value}`]: !0,
829
+ [`${y}-wrap-fixed`]: a.value,
830
+ [`${y}-wrap-loading`]: e.loading
825
831
  })), z = R(() => {
826
- const C = {
832
+ const p = {
827
833
  display: e.visible ? void 0 : "none"
828
834
  };
829
835
  return a.value ? {
@@ -832,125 +838,125 @@ const Io = /* @__PURE__ */ K({
832
838
  paddingTop: "6px",
833
839
  zIndex: 99,
834
840
  top: r.value ? 0 : void 0,
835
- ...C
836
- } : C;
841
+ ...p
842
+ } : p;
837
843
  });
838
- ae(() => d, (C) => {
844
+ ae(() => c, (p) => {
839
845
  var M;
840
- o.value && (w.value = we(C)), (M = e.onTabsChange) == null || M.call(e, [...d.fixed, ...d.normal]);
846
+ o.value && (w.value = we(p)), (M = e.onTabsChange) == null || M.call(e, [...c.fixed, ...c.normal]);
841
847
  }, {
842
848
  deep: !0
843
849
  });
844
- const $ = (C) => {
845
- let M = d.fixed.find((T) => _(T) === C);
846
- return M || (M = d.normal.find((T) => _(T) === C)), M;
847
- }, v = (C) => _(C) === S.value, L = (C) => {
850
+ const $ = (p) => {
851
+ let M = c.fixed.find((T) => _(T) === p);
852
+ return M || (M = c.normal.find((T) => _(T) === p)), M;
853
+ }, b = (p) => _(p) === x.value, L = (p) => {
848
854
  var T;
849
855
  const {
850
856
  fixed: M
851
- } = ((T = C == null ? void 0 : C.meta) == null ? void 0 : T.tabState) || {};
852
- return C != null && C.meta ? oe(M) ? M : M === 0 : !1;
853
- }, A = (C) => {
857
+ } = ((T = p == null ? void 0 : p.meta) == null ? void 0 : T.tabState) || {};
858
+ return p != null && p.meta ? oe(M) ? M : M === 0 : !1;
859
+ }, A = (p) => {
854
860
  var T, Y;
855
861
  const {
856
862
  hidden: M
857
- } = ((T = C == null ? void 0 : C.meta) == null ? void 0 : T.tabState) || {};
858
- if (C.name && C.meta && M !== !0) {
859
- const D = L(C), H = _(C), de = $(H), ze = {
863
+ } = ((T = p == null ? void 0 : p.meta) == null ? void 0 : T.tabState) || {};
864
+ if (p.name && p.meta && M !== !0) {
865
+ const D = L(p), H = _(p), de = $(H), ze = {
860
866
  name: H,
861
- path: C.path,
862
- fullPath: C.fullPath,
863
- query: C.query,
864
- params: C.params,
865
- meta: pe(C.meta, {
866
- tabState: (Y = C.meta) == null ? void 0 : Y.tabState
867
+ path: p.path,
868
+ fullPath: p.fullPath,
869
+ query: p.query,
870
+ params: p.params,
871
+ meta: pe(p.meta, {
872
+ tabState: (Y = p.meta) == null ? void 0 : Y.tabState
867
873
  })
868
874
  };
869
- de ? pe(de, ze) : D ? d.fixed.push(ze) : d.normal.push(ze), v(C) && (l.activeKey = H);
875
+ de ? pe(de, ze) : D ? c.fixed.push(ze) : c.normal.push(ze), b(p) && (l.activeKey = H);
870
876
  }
871
- }, j = (C) => {
872
- C.forEach((M) => {
877
+ }, j = (p) => {
878
+ p.forEach((M) => {
873
879
  L(M) && A(ue(M));
874
880
  });
875
881
  };
876
- ae(() => f.value, (C) => {
877
- j(C);
882
+ ae(() => f.value, (p) => {
883
+ j(p);
878
884
  }, {
879
885
  deep: !0,
880
886
  immediate: !0
881
- }), ae(() => s.currentRoute.value, (C) => {
882
- A(C);
887
+ }), ae(() => s.currentRoute.value, (p) => {
888
+ A(p);
883
889
  }, {
884
890
  deep: !0,
885
891
  immediate: !0
886
892
  });
887
- const E = (C) => {
888
- const M = p.value.find((T) => (C || l.activeKey) === _(T));
893
+ const E = (p) => {
894
+ const M = v.value.find((T) => (p || l.activeKey) === _(T));
889
895
  return (M == null ? void 0 : M.redirect) || (M == null ? void 0 : M.fullPath) || (M == null ? void 0 : M.path) || "";
890
- }, ne = (C, {
896
+ }, ne = (p, {
891
897
  type: M,
892
898
  addType: T,
893
899
  params: Y
894
900
  }) => {
895
- const D = L(C) ? "fixed" : "normal";
896
- M === "add" && T ? d[D][T](Y) : M === "merge" ? d[D] = d[D].map((H) => _(H) === _(C) ? pe(H, Y) : H) : M === "remove" && (d[D] = d[D].filter((H) => _(H) !== _(C)));
901
+ const D = L(p) ? "fixed" : "normal";
902
+ M === "add" && T ? c[D][T](Y) : M === "merge" ? c[D] = c[D].map((H) => _(H) === _(p) ? pe(H, Y) : H) : M === "remove" && (c[D] = c[D].filter((H) => _(H) !== _(p)));
897
903
  }, me = () => {
898
- const C = p.value.slice(-1)[0];
899
- C ? s.push({
900
- path: E(_(C))
904
+ const p = v.value.slice(-1)[0];
905
+ p ? s.push({
906
+ path: E(_(p))
901
907
  }) : s.push("/");
902
- }, O = async (C) => {
903
- const M = p.value.find((T) => C === _(T));
908
+ }, O = async (p) => {
909
+ const M = v.value.find((T) => p === _(T));
904
910
  M && (ne(M, {
905
911
  type: "remove",
906
912
  params: M
907
- }), v(M) && me());
908
- }, F = (C) => {
909
- const M = p.value.find((T) => _(T) === C);
913
+ }), b(M) && me());
914
+ }, F = (p) => {
915
+ const M = v.value.find((T) => _(T) === p);
910
916
  M && l.activeKey !== _(M) && s.push({
911
917
  path: E(_(M))
912
918
  });
913
919
  }, k = () => {
914
- var C;
915
- i.value = !0, e.onReloadPage && ((C = e.onReloadPage) == null || C.call(e)), setTimeout(() => {
920
+ var p;
921
+ i.value = !0, e.onReloadPage && ((p = e.onReloadPage) == null || p.call(e)), setTimeout(() => {
916
922
  i.value = !1;
917
923
  }, 500);
918
- }, U = (C) => l[C], ee = (C) => {
919
- const M = p.value.find((T) => _(T) === U(C));
920
- l.activeKey !== U(C) && (d.normal.length > 0 ? $(_(M)) || s.push(E(U(C))) : me());
921
- }, ve = (C, M) => {
922
- let T = d.normal.findIndex((H) => _(H) === U(M));
923
- const Y = p.value.find((H) => _(H) === U(M)), D = L(Y);
924
- switch (C) {
924
+ }, U = (p) => l[p], ee = (p) => {
925
+ const M = v.value.find((T) => _(T) === U(p));
926
+ l.activeKey !== U(p) && (c.normal.length > 0 ? $(_(M)) || s.push(E(U(p))) : me());
927
+ }, ve = (p, M) => {
928
+ let T = c.normal.findIndex((H) => _(H) === U(M));
929
+ const Y = v.value.find((H) => _(H) === U(M)), D = L(Y);
930
+ switch (p) {
925
931
  case "fixed":
926
- D ? (T = d.fixed.findIndex((H) => _(H) === U(M)), d.normal.unshift(pe(Y, {
932
+ D ? (T = c.fixed.findIndex((H) => _(H) === U(M)), c.normal.unshift(pe(Y, {
927
933
  meta: {
928
934
  tabState: {
929
935
  fixed: !D
930
936
  }
931
937
  }
932
- })), d.fixed = d.fixed.filter((H, de) => de !== T)) : (d.fixed.push(pe(Y, {
938
+ })), c.fixed = c.fixed.filter((H, de) => de !== T)) : (c.fixed.push(pe(Y, {
933
939
  meta: {
934
940
  tabState: {
935
941
  fixed: !D
936
942
  }
937
943
  }
938
- })), d.normal = d.normal.filter((H, de) => de !== T));
944
+ })), c.normal = c.normal.filter((H, de) => de !== T));
939
945
  break;
940
946
  case "close":
941
947
  !i.value && O(_(Y) || "");
942
948
  break;
943
949
  case "closeOthersTabs":
944
- d.normal = d.normal.filter((H) => _(H) === U(M) || L(H)), ee(M);
950
+ c.normal = c.normal.filter((H) => _(H) === U(M) || L(H)), ee(M);
945
951
  break;
946
952
  case "closeLeftTabs":
947
- _e(T) && (d.normal = d.normal.filter((H, de) => de >= T || L(H))), ee(M);
953
+ _e(T) && (c.normal = c.normal.filter((H, de) => de >= T || L(H))), ee(M);
948
954
  break;
949
955
  case "closeRightTabs":
950
- _e(T) && (d.normal = d.normal.filter((H, de) => de <= T || L(H))), ee(M);
956
+ _e(T) && (c.normal = c.normal.filter((H, de) => de <= T || L(H))), ee(M);
951
957
  break;
952
958
  case "closeAllTabs":
953
- d.normal = d.normal.filter((H) => L(H)), me();
959
+ c.normal = c.normal.filter((H) => L(H)), me();
954
960
  break;
955
961
  case "reloadPage":
956
962
  (T === 0 || T) && l.activeKey === U(M) && k();
@@ -962,20 +968,20 @@ const Io = /* @__PURE__ */ K({
962
968
  r.value = !r.value;
963
969
  break;
964
970
  }
965
- }, W = (C, M) => {
966
- const T = p.value.findIndex((Y) => _(Y) === M);
967
- if (C === "closeOthersTabs")
968
- return p.value.filter((D, H) => H !== T && !L(D)).length === 0;
969
- if (C === "closeLeftTabs")
970
- return p.value.filter((D, H) => H < T && !L(D)).length === 0;
971
- if (C === "closeRightTabs")
972
- return p.value.filter((D, H) => H > T && !L(D)).length === 0;
973
- }, Q = (C) => {
971
+ }, W = (p, M) => {
972
+ const T = v.value.findIndex((Y) => _(Y) === M);
973
+ if (p === "closeOthersTabs")
974
+ return v.value.filter((D, H) => H !== T && !L(D)).length === 0;
975
+ if (p === "closeLeftTabs")
976
+ return v.value.filter((D, H) => H < T && !L(D)).length === 0;
977
+ if (p === "closeRightTabs")
978
+ return v.value.filter((D, H) => H > T && !L(D)).length === 0;
979
+ }, Q = (p) => {
974
980
  let M;
975
981
  const {
976
982
  name: T,
977
983
  stateType: Y
978
- } = C;
984
+ } = p;
979
985
  return n(ye, {
980
986
  selectedKeys: [],
981
987
  onClick: (D) => ve(D.key, Y)
@@ -1004,45 +1010,45 @@ const Io = /* @__PURE__ */ K({
1004
1010
  default: () => [M]
1005
1011
  });
1006
1012
  }, G = ({
1007
- router: C
1013
+ router: p
1008
1014
  }) => {
1009
- const M = e.itemRender ? e.itemRender(C) : null, T = L(C);
1015
+ const M = e.itemRender ? e.itemRender(p) : null, T = L(p);
1010
1016
  return n(gt, {
1011
1017
  trigger: "contextmenu",
1012
1018
  overlay: n(Q, {
1013
- name: _(C) || "",
1019
+ name: _(p) || "",
1014
1020
  stateType: "contextMenuActiveKey"
1015
1021
  }, null),
1016
1022
  onOpenChange: (Y) => {
1017
- l.contextMenuActiveKey = Y && _(C) || "";
1023
+ l.contextMenuActiveKey = Y && _(p) || "";
1018
1024
  }
1019
1025
  }, {
1020
1026
  default: () => {
1021
1027
  var Y;
1022
1028
  return [M || n("div", {
1023
- class: [`${b}-title`, x.value]
1024
- }, [l.activeKey === _(C) && n(pt, {
1025
- class: [`${b}-reload-btn`, x.value],
1029
+ class: [`${y}-title`, C.value]
1030
+ }, [l.activeKey === _(p) && n(pt, {
1031
+ class: [`${y}-reload-btn`, C.value],
1026
1032
  spin: i.value,
1027
1033
  onClick: (D) => {
1028
1034
  D.stopPropagation(), !i.value && k();
1029
1035
  }
1030
- }, null), (Y = C.meta) == null ? void 0 : Y.title, T && n(Xe, {
1031
- class: [`${b}-icon`, x.value],
1036
+ }, null), (Y = p.meta) == null ? void 0 : Y.title, T && n(Xe, {
1037
+ class: [`${y}-icon`, C.value],
1032
1038
  name: "fixed"
1033
- }, null), p.value.length > 1 && !L(C) && n(st, {
1034
- class: [`${b}-close-btn`, x.value],
1039
+ }, null), v.value.length > 1 && !L(p) && n(st, {
1040
+ class: [`${y}-close-btn`, C.value],
1035
1041
  onClick: (D) => {
1036
- D.stopPropagation(), !i.value && O(_(C) || "");
1042
+ D.stopPropagation(), !i.value && O(_(p) || "");
1037
1043
  }
1038
1044
  }, null)])];
1039
1045
  }
1040
1046
  });
1041
1047
  };
1042
1048
  return () => {
1043
- const C = r.value ? un : cn;
1044
- return c(n(J, null, [a.value && Xn(n("div", {
1045
- class: [`${b}-fixed`, x.value]
1049
+ const p = r.value ? un : cn;
1050
+ return d(n(J, null, [a.value && Xn(n("div", {
1051
+ class: [`${y}-fixed`, C.value]
1046
1052
  }, null), [[Vn, e.visible]]), n(wt, {
1047
1053
  hideAdd: !0,
1048
1054
  type: "editable-card",
@@ -1051,7 +1057,7 @@ const Io = /* @__PURE__ */ K({
1051
1057
  activeKey: l.activeKey,
1052
1058
  onTabClick: F
1053
1059
  }, {
1054
- default: () => [p.value.map((M) => n(xo, {
1060
+ default: () => [v.value.map((M) => n(xo, {
1055
1061
  key: _(M),
1056
1062
  closable: !1,
1057
1063
  tab: n(G, {
@@ -1059,12 +1065,12 @@ const Io = /* @__PURE__ */ K({
1059
1065
  }, null)
1060
1066
  }, null))],
1061
1067
  rightExtra: () => n("div", {
1062
- class: V(`${b}-dropdown-menu`, x.value)
1068
+ class: V(`${y}-dropdown-menu`, C.value)
1063
1069
  }, [n(pt, {
1064
- class: [`${b}-dropdown-menu-btn`, x.value],
1070
+ class: [`${y}-dropdown-menu-btn`, C.value],
1065
1071
  onClick: () => ve("reloadPage", "activeKey")
1066
1072
  }, null), n("div", {
1067
- class: [`${b}-dropdown-menu-btn-divider`, x.value]
1073
+ class: [`${y}-dropdown-menu-btn-divider`, C.value]
1068
1074
  }, null), n(gt, {
1069
1075
  overlay: n(Q, {
1070
1076
  name: l.activeKey,
@@ -1072,12 +1078,12 @@ const Io = /* @__PURE__ */ K({
1072
1078
  }, null)
1073
1079
  }, {
1074
1080
  default: () => [n(Ta, {
1075
- class: [`${b}-dropdown-menu-btn`, x.value]
1081
+ class: [`${y}-dropdown-menu-btn`, C.value]
1076
1082
  }, null)]
1077
1083
  }), n("div", {
1078
- class: [`${b}-dropdown-menu-btn-divider`, x.value]
1079
- }, null), n(C, {
1080
- class: [`${b}-dropdown-menu-btn`, x.value],
1084
+ class: [`${y}-dropdown-menu-btn-divider`, C.value]
1085
+ }, null), n(p, {
1086
+ class: [`${y}-dropdown-menu-btn`, C.value],
1081
1087
  onClick: () => ve("fullScreen", "activeKey")
1082
1088
  }, null)])
1083
1089
  })]));
@@ -1505,90 +1511,90 @@ const nt = (e) => {
1505
1511
  } = re(), o = a({
1506
1512
  suffixCls: "menu-item",
1507
1513
  isPor: !0
1508
- }), i = R(() => b(e.menuData)), l = (c) => {
1509
- var x;
1510
- (x = e.onOpenKeys) == null || x.call(e, c);
1511
- }, s = (c) => {
1512
- var x;
1513
- (x = e.onSelect) == null || x.call(e, c);
1514
- }, r = (c) => {
1515
- var x;
1516
- (x = e.onClick) == null || x.call(e, c);
1517
- }, f = (c, x) => {
1518
- var p;
1519
- const w = c.link || "", d = Bt(w);
1520
- ((p = t.currentRoute.value) == null ? void 0 : p.fullPath) !== x.to && d && w && c.linkStatus === 1 && window.open(w);
1521
- }, h = en("router-link"), g = (c, x) => {
1514
+ }), i = R(() => y(e.menuData)), l = (d) => {
1515
+ var C;
1516
+ (C = e.onOpenKeys) == null || C.call(e, d);
1517
+ }, s = (d) => {
1518
+ var C;
1519
+ (C = e.onSelect) == null || C.call(e, d);
1520
+ }, r = (d) => {
1521
+ var C;
1522
+ (C = e.onClick) == null || C.call(e, d);
1523
+ }, f = (d, C) => {
1524
+ var v;
1525
+ const w = d.link || "", c = Bt(w);
1526
+ ((v = t.currentRoute.value) == null ? void 0 : v.fullPath) !== C.to && c && w && d.linkStatus === 1 && window.open(w);
1527
+ }, h = en("router-link"), g = (d, C) => {
1522
1528
  var m;
1523
- const w = Te(c == null ? void 0 : c.icon), d = typeof c.badge == "function" ? n("div", {
1529
+ const w = Te(d == null ? void 0 : d.icon), c = typeof d.badge == "function" ? n("div", {
1524
1530
  class: `${o}-item-bradde`
1525
- }, [(m = c.badge) == null ? void 0 : m.call(c, Ie(c, "badge"))]) : null, p = n("span", {
1531
+ }, [(m = d.badge) == null ? void 0 : m.call(d, Ie(d, "badge"))]) : null, v = n("span", {
1526
1532
  class: [`${o}-title`, !w && `${o}-title-no-icon`]
1527
- }, [c.title]);
1528
- return x ? p : n(J, null, [p, d ?? (ha(c.badge) && n(Jn, te({
1533
+ }, [d.title]);
1534
+ return C ? v : n(J, null, [v, c ?? (ha(d.badge) && n(Jn, te({
1529
1535
  class: `${o}-item-bradde`,
1530
1536
  overflowCount: 999
1531
- }, c.badge), null))]);
1532
- }, u = (c) => {
1537
+ }, d.badge), null))]);
1538
+ }, u = (d) => {
1533
1539
  var N, B, z;
1534
- let x;
1540
+ let C;
1535
1541
  const w = {
1536
- ...c.meta
1537
- }, d = w.linkStatus === 1 && w.link ? "a" : h, p = {
1538
- to: ga(c.redirect) ? c.redirect : c.path || ""
1539
- }, m = Te((N = c.meta) == null ? void 0 : N.icon), S = n(d, te(p, {
1542
+ ...d.meta
1543
+ }, c = w.linkStatus === 1 && w.link ? "a" : h, v = {
1544
+ to: ga(d.redirect) ? d.redirect : d.path || ""
1545
+ }, m = Te((N = d.meta) == null ? void 0 : N.icon), x = n(c, te(v, {
1540
1546
  class: "gx-pro-menu-item",
1541
- onClick: () => f(w, p)
1542
- }), ft(x = g(w, !m)) ? x : {
1543
- default: () => [x]
1547
+ onClick: () => f(w, v)
1548
+ }), ft(C = g(w, !m)) ? C : {
1549
+ default: () => [C]
1544
1550
  }), P = m && n(nt, {
1545
1551
  className: o,
1546
- icon: (B = c.meta) == null ? void 0 : B.icon,
1552
+ icon: (B = d.meta) == null ? void 0 : B.icon,
1547
1553
  iconfontUrl: e.iconfontUrl,
1548
- iconFont: (z = c.meta) == null ? void 0 : z.iconFont
1554
+ iconFont: (z = d.meta) == null ? void 0 : z.iconFont
1549
1555
  }, null) || void 0;
1550
- return [S, P];
1551
- }, y = (c) => {
1552
- var p, m, S, P, N, B, z, $, v;
1553
- if (((p = c == null ? void 0 : c.meta) == null ? void 0 : p.menuType) === "C" ? !1 : it(c.children) && !((m = c == null ? void 0 : c.meta) != null && m.hideInMenu) && !((S = c == null ? void 0 : c.meta) != null && S.hideChildrenInMenu)) {
1556
+ return [x, P];
1557
+ }, I = (d) => {
1558
+ var v, m, x, P, N, B, z, $, b;
1559
+ if (((v = d == null ? void 0 : d.meta) == null ? void 0 : v.menuType) === "C" ? !1 : it(d.children) && !((m = d == null ? void 0 : d.meta) != null && m.hideInMenu) && !((x = d == null ? void 0 : d.meta) != null && x.hideChildrenInMenu)) {
1554
1560
  let L;
1555
1561
  if (e.subMenuItemRender)
1556
1562
  return e.subMenuItemRender({
1557
- item: c,
1558
- children: b(c.children)
1563
+ item: d,
1564
+ children: y(d.children)
1559
1565
  });
1560
- const A = (P = c.meta) != null && P.icon ? n("span", {
1566
+ const A = (P = d.meta) != null && P.icon ? n("span", {
1561
1567
  class: "gx-pro-menu-item"
1562
- }, [g(c.meta)]) : c.meta && g(c.meta), j = ((N = c.meta) == null ? void 0 : N.type) === "group", E = j ? ye.ItemGroup : ye.SubMenu;
1568
+ }, [g(d.meta)]) : d.meta && g(d.meta), j = ((N = d.meta) == null ? void 0 : N.type) === "group", E = j ? ye.ItemGroup : ye.SubMenu;
1563
1569
  return n(E, {
1564
1570
  title: A,
1565
- key: c.path,
1571
+ key: d.path,
1566
1572
  icon: j ? null : n(nt, {
1567
1573
  className: o,
1568
- icon: (B = c.meta) == null ? void 0 : B.icon,
1574
+ icon: (B = d.meta) == null ? void 0 : B.icon,
1569
1575
  iconfontUrl: e.iconfontUrl,
1570
- iconFont: (z = c.meta) == null ? void 0 : z.iconFont
1576
+ iconFont: (z = d.meta) == null ? void 0 : z.iconFont
1571
1577
  }, null)
1572
- }, ft(L = b(c.children)) ? L : {
1578
+ }, ft(L = y(d.children)) ? L : {
1573
1579
  default: () => [L]
1574
1580
  });
1575
1581
  }
1576
- if (($ = c == null ? void 0 : c.meta) != null && $.hideInMenu) return null;
1577
- const [w, d] = u(c);
1582
+ if (($ = d == null ? void 0 : d.meta) != null && $.hideInMenu) return null;
1583
+ const [w, c] = u(d);
1578
1584
  return e.menuItemRender && e.menuItemRender({
1579
- item: c,
1585
+ item: d,
1580
1586
  title: w,
1581
- icon: d
1587
+ icon: c
1582
1588
  }) || n(ye.Item, {
1583
- disabled: (v = c.meta) == null ? void 0 : v.disabled,
1584
- key: c.path,
1585
- icon: d
1589
+ disabled: (b = d.meta) == null ? void 0 : b.disabled,
1590
+ key: d.path,
1591
+ icon: c
1586
1592
  }, ft(w) ? w : {
1587
1593
  default: () => [w]
1588
1594
  });
1589
1595
  };
1590
- function b(c = []) {
1591
- return c.map((x) => y(x)).filter((x) => x);
1596
+ function y(d = []) {
1597
+ return d.map((C) => I(C)).filter((C) => C);
1592
1598
  }
1593
1599
  return () => n(ye, te({
1594
1600
  key: "Menu",
@@ -1597,14 +1603,14 @@ const nt = (e) => {
1597
1603
  theme: e.theme,
1598
1604
  openKeys: e.openKeys,
1599
1605
  selectedKeys: e.selectedKeys || [],
1600
- onOpenChange: (c) => l(c),
1606
+ onOpenChange: (d) => l(d),
1601
1607
  onSelect: s,
1602
1608
  onClick: r
1603
1609
  }, e.menuProps), {
1604
1610
  default: () => [i.value]
1605
1611
  });
1606
1612
  }
1607
- }), Rn = new I("pro-layout-title-hide", {
1613
+ }), Rn = new S("pro-layout-title-hide", {
1608
1614
  "0%": { display: "none", opacity: 0 },
1609
1615
  "80%": {
1610
1616
  overflow: "hidden"
@@ -1989,7 +1995,7 @@ function Ho(e) {
1989
1995
  var g, u;
1990
1996
  const r = s.path, f = s.name, h = t.has(f) && t.get(f) !== r;
1991
1997
  if ((g = s == null ? void 0 : s.meta) != null && g.hidden || !f || h)
1992
- return (!f || h) && (a.some((y) => y.name === f && r === s.path) || a.push({ ...s })), null;
1998
+ return (!f || h) && (a.some((I) => I.name === f && r === s.path) || a.push({ ...s })), null;
1993
1999
  if (t.set(f, r), s && (s != null && s.children))
1994
2000
  if ((u = s == null ? void 0 : s.meta) != null && u.hideChildren)
1995
2001
  s.children = [];
@@ -2054,16 +2060,16 @@ function On(e, t) {
2054
2060
  }
2055
2061
  }
2056
2062
  function Fn({ menuData: e, levelMenuData: t }, { path: a, name: o }) {
2057
- var y, b, c, x;
2058
- const i = t.find((w) => w.name === o), l = (i == null ? void 0 : i.key) || "", s = (y = i == null ? void 0 : i.meta) == null ? void 0 : y.hideInMenu;
2059
- let r = ((b = t.find((w) => w.path === a)) == null ? void 0 : b.key) || "";
2063
+ var I, y, d, C;
2064
+ const i = t.find((w) => w.name === o), l = (i == null ? void 0 : i.key) || "", s = (I = i == null ? void 0 : i.meta) == null ? void 0 : I.hideInMenu;
2065
+ let r = ((y = t.find((w) => w.path === a)) == null ? void 0 : y.key) || "";
2060
2066
  const f = !r || s, h = l.split("-").slice(0, -1).join("-"), g = t.find((w) => w.key === h), u = On(e, h) || r;
2061
- if (r = f ? (c = g == null ? void 0 : g.meta) != null && c.menuSelectKey && ((x = t.find((w) => w.path === Pt(g))) == null ? void 0 : x.key) || u : r, r) {
2062
- const w = [], d = r.split("-");
2063
- for (let m = 0; m < d.length; m += 1)
2064
- w.push(we(d).splice(0, m + 1).join("-"));
2065
- const p = l === r || s ? [] : t.filter((m) => l === m.key);
2066
- return t.filter((m) => w.some((S) => S === (m == null ? void 0 : m.key) || "")).concat(p);
2067
+ if (r = f ? (d = g == null ? void 0 : g.meta) != null && d.menuSelectKey && ((C = t.find((w) => w.path === Pt(g))) == null ? void 0 : C.key) || u : r, r) {
2068
+ const w = [], c = r.split("-");
2069
+ for (let m = 0; m < c.length; m += 1)
2070
+ w.push(we(c).splice(0, m + 1).join("-"));
2071
+ const v = l === r || s ? [] : t.filter((m) => l === m.key);
2072
+ return t.filter((m) => w.some((x) => x === (m == null ? void 0 : m.key) || "")).concat(v);
2067
2073
  }
2068
2074
  return [];
2069
2075
  }
@@ -2143,21 +2149,21 @@ const {
2143
2149
  } = ke(), {
2144
2150
  theme: g,
2145
2151
  layout: u,
2146
- isMobile: y,
2147
- menuLoading: b,
2148
- breakpoint: c,
2149
- fixSiderbar: x,
2152
+ isMobile: I,
2153
+ menuLoading: y,
2154
+ breakpoint: d,
2155
+ fixSiderbar: C,
2150
2156
  fixedHeader: w,
2151
- collapsed: d,
2152
- siderWidth: p,
2157
+ collapsed: c,
2158
+ siderWidth: v,
2153
2159
  collapsedWidth: m,
2154
- menuContentRender: S,
2160
+ menuContentRender: x,
2155
2161
  menuFooterRender: P,
2156
2162
  collapsedButtonRender: N
2157
2163
  } = Ye(e), B = t({
2158
2164
  suffixCls: "sider",
2159
2165
  isPor: !0
2160
- }), z = R(() => e.layout === "wide"), $ = R(() => e.layout === "mix" && !e.isMobile && e.splitMenus), v = R(() => u.value === "side" || u.value === "simple"), L = R(() => e.isMobile || z.value ? !1 : x.value), A = R(() => (e.layout === "mix" || z.value) && "light" || s.value.theme), {
2166
+ }), z = R(() => e.layout === "wide"), $ = R(() => e.layout === "mix" && !e.isMobile && e.splitMenus), b = R(() => u.value === "side" || u.value === "simple"), L = R(() => e.isMobile || z.value ? !1 : C.value), A = R(() => (e.layout === "mix" || z.value) && "light" || s.value.theme), {
2161
2167
  wrapSSR: j,
2162
2168
  hashId: E
2163
2169
  } = ge("ProLayoutSiderMenu", [Po, ko, Fo, Bn, (W) => {
@@ -2176,7 +2182,7 @@ const {
2176
2182
  }
2177
2183
  }
2178
2184
  };
2179
- }], B), ne = R(() => u.value === "top" ? [] : i.value), me = R(() => e.collapsed ? m.value : p.value), O = R(() => V([E.value, B, y.value ? "shadow" : null, `${B}-${g.value}`, L.value ? `${B}-fixed` : null])), F = R(() => N.value !== !1 ? N.value || Pn : !1), k = bt(() => e.layout === "simple" || !e.appLogoListRender ? null : n(In, null, {
2185
+ }], B), ne = R(() => u.value === "top" ? [] : i.value), me = R(() => e.collapsed ? m.value : v.value), O = R(() => V([E.value, B, I.value ? "shadow" : null, `${B}-${g.value}`, L.value ? `${B}-fixed` : null])), F = R(() => N.value !== !1 ? N.value || Pn : !1), k = bt(() => e.layout === "simple" || !e.appLogoListRender ? null : n(In, null, {
2180
2186
  default: () => {
2181
2187
  var W;
2182
2188
  return [typeof e.appLogoListRender == "function" ? (W = e.appLogoListRender) == null ? void 0 : W.call(e) : e.appLogoListRender];
@@ -2184,17 +2190,17 @@ const {
2184
2190
  }), [() => e.appLogoListRender]);
2185
2191
  function U() {
2186
2192
  var W;
2187
- e.onCollapse && ((W = e.onCollapse) == null || W.call(e, !d.value));
2193
+ e.onCollapse && ((W = e.onCollapse) == null || W.call(e, !c.value));
2188
2194
  }
2189
2195
  const ee = bt(() => {
2190
2196
  var Q;
2191
2197
  if (N.value === !1) return null;
2192
2198
  const W = n(Do, {
2193
- isMobile: y.value,
2194
- collapsed: d.value,
2199
+ isMobile: I.value,
2200
+ collapsed: c.value,
2195
2201
  onClick: () => U()
2196
2202
  }, null);
2197
- return N.value ? (Q = N.value) == null ? void 0 : Q.call(N, d.value, W) : W;
2203
+ return N.value ? (Q = N.value) == null ? void 0 : Q.call(N, c.value, W) : W;
2198
2204
  }, [() => e.collapsedButtonRender, () => e.isMobile, () => e.collapsed]), ve = (W) => {
2199
2205
  var Q;
2200
2206
  if (e.onSelect) {
@@ -2209,7 +2215,7 @@ const {
2209
2215
  return () => {
2210
2216
  var $e;
2211
2217
  let W;
2212
- const Q = v.value && n(kt, te({
2218
+ const Q = b.value && n(kt, te({
2213
2219
  hashId: E.value,
2214
2220
  baseClassName: B
2215
2221
  }, le(e, Object.keys(ut))), {
@@ -2228,9 +2234,9 @@ const {
2228
2234
  style: {
2229
2235
  width: "100%"
2230
2236
  },
2231
- onOpenKeys: (C) => {
2237
+ onOpenKeys: (p) => {
2232
2238
  var M;
2233
- return e.onOpenKeys && ((M = e.onOpenKeys) == null ? void 0 : M.call(e, C));
2239
+ return e.onOpenKeys && ((M = e.onOpenKeys) == null ? void 0 : M.call(e, p));
2234
2240
  },
2235
2241
  onSelect: ve
2236
2242
  }, null);
@@ -2271,18 +2277,18 @@ const {
2271
2277
  height: e.layout === "wide" ? `calc(100vh - ${e.headerHeight + 20 * 2}px)` : void 0
2272
2278
  },
2273
2279
  theme: A.value,
2274
- breakpoint: c.value || void 0,
2275
- collapsed: d.value,
2276
- width: p.value,
2280
+ breakpoint: d.value || void 0,
2281
+ collapsed: c.value,
2282
+ width: v.value,
2277
2283
  collapsedWidth: m.value
2278
2284
  }, {
2279
2285
  default: () => {
2280
- var C, M, T, Y;
2281
- return [b.value && n("div", {
2286
+ var p, M, T, Y;
2287
+ return [y.value && n("div", {
2282
2288
  class: ["gx-pro-sider-loading", E.value]
2283
2289
  }, [n($t, {
2284
- spinning: b.value,
2285
- indicator: (C = f == null ? void 0 : f.indicator) == null ? void 0 : C.value
2290
+ spinning: y.value,
2291
+ indicator: (p = f == null ? void 0 : f.indicator) == null ? void 0 : p.value
2286
2292
  }, null)]), Q || null, Te(e.menuHeaderRender) && n("div", {
2287
2293
  class: V([E.value, `${B}-extra`, !Q && `${B}-extra-no-logo`])
2288
2294
  }, [G]), n("div", {
@@ -2291,7 +2297,7 @@ const {
2291
2297
  overflow: "hidden auto"
2292
2298
  },
2293
2299
  class: V(`${B}-menu-container`)
2294
- }, [S.value && ((M = S.value) == null ? void 0 : M.call(S, e, Re)) || Re]), e.layout !== "wide" && n(J, null, [Te(fe) && it(fe) && fe.length > 0 && n("div", {
2300
+ }, [x.value && ((M = x.value) == null ? void 0 : M.call(x, e, Re)) || Re]), e.layout !== "wide" && n(J, null, [Te(fe) && it(fe) && fe.length > 0 && n("div", {
2295
2301
  class: `${B}-links ${E.value}`
2296
2302
  }, [n(ye, {
2297
2303
  theme: A.value,
@@ -2307,12 +2313,12 @@ const {
2307
2313
  default: () => [D]
2308
2314
  }))) ? W : {
2309
2315
  default: () => [W]
2310
- })]), y.value ? null : n("div", {
2316
+ })]), I.value ? null : n("div", {
2311
2317
  class: V(`${B}-actions`, E.value)
2312
2318
  }, [Se || n(J, null, [n("div", {
2313
2319
  class: V(`${B}-actions-item`, E.value),
2314
2320
  onClick: () => U()
2315
- }, [F.value && ((T = F.value) == null ? void 0 : T.call(F, d.value))])])])]), P.value && n("div", {
2321
+ }, [F.value && ((T = F.value) == null ? void 0 : T.call(F, c.value))])])])]), P.value && n("div", {
2316
2322
  class: `${B}-footer ${E.value}`
2317
2323
  }, [(Y = P.value) == null ? void 0 : Y.call(P, e)]), r.value || u.value === "wide" ? null : ee.value];
2318
2324
  }
@@ -2347,14 +2353,14 @@ const {
2347
2353
  suffixCls: "global-header",
2348
2354
  isPor: !0
2349
2355
  }), {
2350
- wrapSSR: y,
2351
- hashId: b
2352
- } = ge("ProGlobalHeader", [wo, Bn], u), c = R(() => ({
2353
- [`${b.value}`]: !0,
2356
+ wrapSSR: I,
2357
+ hashId: y
2358
+ } = ge("ProGlobalHeader", [wo, Bn], u), d = R(() => ({
2359
+ [`${y.value}`]: !0,
2354
2360
  [`${u}`]: !0,
2355
2361
  [`${u}-${e.layout}`]: !0
2356
- })), x = (m, S, P) => {
2357
- var $, v;
2362
+ })), C = (m, x, P) => {
2363
+ var $, b;
2358
2364
  const N = a.currentRoute.value, B = e.layout === "mix", z = (($ = o == null ? void 0 : o.matchedMenu) == null ? void 0 : $.value) || Fn({
2359
2365
  menuData: h.value,
2360
2366
  levelMenuData: g.value
@@ -2363,14 +2369,14 @@ const {
2363
2369
  name: N.name
2364
2370
  });
2365
2371
  if (e.onSelect && m === "select") {
2366
- const L = (v = e.menuData.find((A) => A.path === P)) == null ? void 0 : v.redirect;
2367
- e.onSelect(B && L ? z.map((A) => A.path) : S);
2372
+ const L = (b = e.menuData.find((A) => A.path === P)) == null ? void 0 : b.redirect;
2373
+ e.onSelect(B && L ? z.map((A) => A.path) : x);
2368
2374
  }
2369
- e.onOpenKeys && m === "openKeys" && e.onOpenKeys(B ? z.filter((L) => L.path !== N.path).map((L) => L.path) : S);
2375
+ e.onOpenKeys && m === "openKeys" && e.onOpenKeys(B ? z.filter((L) => L.path !== N.path).map((L) => L.path) : x);
2370
2376
  }, w = () => {
2371
2377
  t("collapse", !e.collapsed);
2372
- }, d = R(() => e.collapsedButtonRender || Pn), p = () => {
2373
- var S;
2378
+ }, c = R(() => e.collapsedButtonRender || Pn), v = () => {
2379
+ var x;
2374
2380
  const m = e.headerContentRender || e.headerContentRender === !1 ? n("div", {
2375
2381
  style: {
2376
2382
  flex: 1
@@ -2379,8 +2385,8 @@ const {
2379
2385
  style: {
2380
2386
  flex: 1
2381
2387
  },
2382
- class: [`${u}-menu`, b.value]
2383
- }, [((S = e.menuData) == null ? void 0 : S.length) > 0 && n(Rt, {
2388
+ class: [`${u}-menu`, y.value]
2389
+ }, [((x = e.menuData) == null ? void 0 : x.length) > 0 && n(Rt, {
2384
2390
  theme: {
2385
2391
  components: {
2386
2392
  Layout: {
@@ -2414,10 +2420,10 @@ const {
2414
2420
  subMenuItemRender: e.subMenuItemRender,
2415
2421
  class: {
2416
2422
  "top-nav-menu": e.mode === "horizontal",
2417
- [`${b.value}`]: !0
2423
+ [`${y.value}`]: !0
2418
2424
  },
2419
- onSelect: (P) => x("select", P.selectedKeys, P.key),
2420
- onOpenKeys: (P) => x("openKeys", P)
2425
+ onSelect: (P) => C("select", P.selectedKeys, P.key),
2426
+ onOpenKeys: (P) => C("openKeys", P)
2421
2427
  }, null)]
2422
2428
  })]);
2423
2429
  return n(J, null, [m, e.layout !== "simple" && n(ei, te(e, {
@@ -2429,32 +2435,32 @@ const {
2429
2435
  const m = n("span", {
2430
2436
  key: "logo",
2431
2437
  onClick: () => {
2432
- var S;
2433
- return (S = e.onLogoClick) == null ? void 0 : S.call(e);
2438
+ var x;
2439
+ return (x = e.onLogoClick) == null ? void 0 : x.call(e);
2434
2440
  },
2435
- class: [`${u}-logo`, e.isMobile && "mobile", b.value]
2441
+ class: [`${u}-logo`, e.isMobile && "mobile", y.value]
2436
2442
  }, [n("a", null, [$n(e.logo, e.logoStyle)])]);
2437
- return y(n("div", {
2438
- class: c.value
2439
- }, [e.isMobile ? n(J, null, [Jo(e.logoContentRender, m), e.isMobile && ue(d) && n("span", {
2440
- class: `${u}-collapsed-button ${b.value}`,
2443
+ return I(n("div", {
2444
+ class: d.value
2445
+ }, [e.isMobile ? n(J, null, [Jo(e.logoContentRender, m), e.isMobile && ue(c) && n("span", {
2446
+ class: `${u}-collapsed-button ${y.value}`,
2441
2447
  onClick: w
2442
- }, [ue(d)(e.collapsed)]), p()]) : Zo.includes(e.layout) ? n("div", {
2443
- class: `${u}-main ${b.value}`,
2448
+ }, [ue(c)(e.collapsed)]), v()]) : Zo.includes(e.layout) ? n("div", {
2449
+ class: `${u}-main ${y.value}`,
2444
2450
  style: {
2445
2451
  width: Ae(e.headerMainWidth ? e.headerMainWidth : e.layout === "wide" ? e.wideWidth : void 0)
2446
2452
  }
2447
2453
  }, [n("div", {
2448
- class: `${u}-main-left ${b.value}`
2454
+ class: `${u}-main-left ${y.value}`
2449
2455
  }, [e.layout !== "wide" && e.appLogoListRender && n(In, null, {
2450
2456
  default: () => {
2451
- var S;
2452
- return [typeof e.appLogoListRender == "function" ? (S = e.appLogoListRender) == null ? void 0 : S.call(e) : e.appLogoListRender];
2457
+ var x;
2458
+ return [typeof e.appLogoListRender == "function" ? (x = e.appLogoListRender) == null ? void 0 : x.call(e) : e.appLogoListRender];
2453
2459
  }
2454
2460
  }), n(kt, te({
2455
- hashId: b.value,
2461
+ hashId: y.value,
2456
2462
  baseClassName: u
2457
- }, e), null)]), p()]) : p()]));
2463
+ }, e), null)]), v()]) : v()]));
2458
2464
  };
2459
2465
  }
2460
2466
  });
@@ -2481,36 +2487,36 @@ const {
2481
2487
  contentFullScreen: h,
2482
2488
  menuState: g,
2483
2489
  headerHeight: u
2484
- } = re(), y = r({
2490
+ } = re(), I = r({
2485
2491
  suffixCls: "header",
2486
2492
  isPor: !0
2487
- }), b = r({
2493
+ }), y = r({
2488
2494
  suffixCls: "fixed-header",
2489
2495
  isPor: !0
2490
- }), c = R(() => o.value === "wide"), x = R(() => a.value), w = R(() => o.value === "side" || o.value === "simple"), d = R(() => w.value && "light" || g.value.theme), {
2491
- wrapSSR: p,
2496
+ }), d = R(() => o.value === "wide"), C = R(() => a.value), w = R(() => o.value === "side" || o.value === "simple"), c = R(() => w.value && "light" || g.value.theme), {
2497
+ wrapSSR: v,
2492
2498
  hashId: m
2493
- } = Fe("ProLayoutHeader", (v) => {
2499
+ } = Fe("ProLayoutHeader", (b) => {
2494
2500
  var E, ne;
2495
- const L = (E = v.layout) == null ? void 0 : E.header, A = rt("header", v, (ne = v.layout) == null ? void 0 : ne.key), j = lt(v, "header");
2501
+ const L = (E = b.layout) == null ? void 0 : E.header, A = rt("header", b, (ne = b.layout) == null ? void 0 : ne.key), j = lt(b, "header");
2496
2502
  return {
2497
- [`${v.proComponentsCls}-basic-layout`]: {
2498
- [`${v.antCls}-layout-header${v.componentCls}${v.componentCls}-${ue(g.value.key)}`]: {
2499
- color: j ? v.colorWhite : v.colorText,
2503
+ [`${b.proComponentsCls}-basic-layout`]: {
2504
+ [`${b.antCls}-layout-header${b.componentCls}${b.componentCls}-${ue(g.value.key)}`]: {
2505
+ color: j ? b.colorWhite : b.colorText,
2500
2506
  backgroundColor: (L == null ? void 0 : L.colorBgMenu) || (A == null ? void 0 : A.colorBgMenu),
2501
2507
  boxShadow: s.value ? "#0d0d0da6 0 2px 8px" : "",
2502
- [`${v.proComponentsCls}-global-header-collapsed-button`]: {
2503
- color: j ? v.colorWhite : void 0
2508
+ [`${b.proComponentsCls}-global-header-collapsed-button`]: {
2509
+ color: j ? b.colorWhite : void 0
2504
2510
  }
2505
2511
  },
2506
- [`${v.antCls}-layout-header${v.componentCls}`]: {
2512
+ [`${b.antCls}-layout-header${b.componentCls}`]: {
2507
2513
  zIndex: 19,
2508
2514
  paddingBlock: 0,
2509
2515
  paddingInline: 0,
2510
2516
  WebkitBackdropFilter: "blur(8px)",
2511
2517
  backdropFilter: "blur(8px)",
2512
2518
  transition: "background-color 0.2s cubic-bezier(.645,.045,.355,1)",
2513
- [`&${v.proComponentsCls}`]: {
2519
+ [`&${b.proComponentsCls}`]: {
2514
2520
  "&-fixed-header": {
2515
2521
  position: "fixed",
2516
2522
  width: "100%",
@@ -2530,7 +2536,7 @@ const {
2530
2536
  paddingBlock: 0,
2531
2537
  paddingInline: 8,
2532
2538
  "&:hover": {
2533
- color: v.colorText
2539
+ color: b.colorText
2534
2540
  }
2535
2541
  }
2536
2542
  },
@@ -2541,24 +2547,24 @@ const {
2541
2547
  }
2542
2548
  }
2543
2549
  };
2544
- }, y), S = R(() => ({
2550
+ }, I), x = R(() => ({
2545
2551
  [`${m.value}`]: !0,
2546
- [`${y}`]: !0,
2547
- [`${y}-${g.value.key}`]: !0,
2548
- [`${b}`]: x.value
2549
- })), P = R(() => x.value && !t.value), N = R(() => l.value && o.value === "mix" ? jo(we(f.value)) : o.value === "top" ? f.value : []), B = R(() => w.value && P.value ? `calc(100% - ${e.collapsed ? e.collapsedWidth : e.siderWidth}px)` : "100%"), z = R(() => x.value ? 0 : void 0), $ = () => {
2550
- const v = n(ti, te(e, {
2552
+ [`${I}`]: !0,
2553
+ [`${I}-${g.value.key}`]: !0,
2554
+ [`${y}`]: C.value
2555
+ })), P = R(() => C.value && !t.value), N = R(() => l.value && o.value === "mix" ? jo(we(f.value)) : o.value === "top" ? f.value : []), B = R(() => w.value && P.value ? `calc(100% - ${e.collapsed ? e.collapsedWidth : e.siderWidth}px)` : "100%"), z = R(() => C.value ? 0 : void 0), $ = () => {
2556
+ const b = n(ti, te(e, {
2551
2557
  mode: "horizontal",
2552
- theme: d.value,
2558
+ theme: c.value,
2553
2559
  onCollapse: i.value,
2554
2560
  menuData: N.value,
2555
2561
  headerContentRender: e.headerContentRender && typeof e.headerContentRender == "function" ? e.headerContentRender(e) : e.headerContentRender
2556
2562
  }), null);
2557
- return e.headerRender ? e.headerRender(e, v) : v;
2563
+ return e.headerRender ? e.headerRender(e, b) : b;
2558
2564
  };
2559
2565
  return () => {
2560
- let v;
2561
- return p(n(J, null, [x.value && !c.value && n(Vt, {
2566
+ let b;
2567
+ return v(n(J, null, [C.value && !d.value && n(Vt, {
2562
2568
  style: {
2563
2569
  height: `${u.value}px`,
2564
2570
  lineHeight: `${u.value}px`,
@@ -2566,7 +2572,7 @@ const {
2566
2572
  marginTop: h.value ? `-${u.value}px` : void 0
2567
2573
  }
2568
2574
  }, null), n(Vt, {
2569
- class: S.value,
2575
+ class: x.value,
2570
2576
  style: {
2571
2577
  height: `${u.value}px`,
2572
2578
  lineHeight: `${u.value}px`,
@@ -2575,8 +2581,8 @@ const {
2575
2581
  right: z.value,
2576
2582
  marginTop: h.value ? `-${u.value}px` : void 0
2577
2583
  }
2578
- }, ni(v = $()) ? v : {
2579
- default: () => [v]
2584
+ }, ni(b = $()) ? b : {
2585
+ default: () => [b]
2580
2586
  })]));
2581
2587
  };
2582
2588
  }
@@ -2678,8 +2684,8 @@ html[data-theme="dark"]::view-transition-new(root) {
2678
2684
  window._iconfont_svg_string_4694134 = '<svg><symbol id="icon-fixed" viewBox="0 0 1024 1024"><path d="M540.736 900.608l-208.64-208.64v-0.064h-0.064l-208.64-208.64a304 304 0 0 1 262.656-28.8 41.152 41.152 0 0 0 38.976-6.336l259.328-202.752a40.96 40.96 0 0 0 14.72-41.344 143.68 143.68 0 0 1 13.696-100.8l195.648 195.648a144.448 144.448 0 0 1-100.8 13.696 41.088 41.088 0 0 0-41.408 14.72L568.704 579.776a41.088 41.088 0 0 0-5.44 41.28 305.344 305.344 0 0 1-22.528 279.552z m-528.64 53.312a41.024 41.024 0 0 0 57.984 58.048l233.024-233.024 213.312 213.376a40.96 40.96 0 0 0 28.992 11.968h1.6a41.28 41.28 0 0 0 29.568-14.272 388.224 388.224 0 0 0 71.104-378.048L815.872 396.8a224.512 224.512 0 0 0 183.68-64.832 41.024 41.024 0 0 0 0-57.984L737.536 11.968a41.024 41.024 0 0 0-57.984 0 224.768 224.768 0 0 0-64.832 183.68L391.616 370.176A385.856 385.856 0 0 0 34.048 447.488a40.96 40.96 0 0 0-2.304 60.16l213.376 213.312-233.024 232.96z m0 0" ></path></symbol><symbol id="icon-unpinned" viewBox="0 0 1024 1024"><path d="M1000.445782 331.509251a40.959412 40.959412 0 0 0 0-57.89271L738.842298 12.013057a40.959412 40.959412 0 0 0-57.89271 0 224.414127 224.414127 0 0 0-64.729929 183.390816L393.466912 369.593198A385.248511 385.248511 0 0 0 36.461864 446.783478a40.895513 40.895513 0 0 0-2.300372 60.065285l213.040062 212.976163-232.657129 232.657129a40.959412 40.959412 0 1 0 57.892711 57.89271l232.657128-232.657128 80.513041 80.513041c2.172574-14.377329 5.495335-28.435161 9.840483-41.9818a275.661317 275.661317 0 0 1-4.664644-68.627783l-56.742524-56.742524v-0.063899h-0.0639l-208.311518-208.311519a303.521385 303.521385 0 0 1 262.242476-28.754658 41.087211 41.087211 0 0 0 38.914637-6.326024l258.919716-202.432789a40.895513 40.895513 0 0 0 14.696824-41.278908 143.453791 143.453791 0 0 1 13.674438-100.641302L909.453266 298.409446a144.220582 144.220582 0 0 1-100.641301 13.674437 41.023311 41.023311 0 0 0-41.342808 14.696825L637.753702 492.663132a274.063836 274.063836 0 0 1 97.126843 8.626397l82.110522-105.050349a224.286328 224.286328 0 0 0 183.454715-64.729929z" ></path><path d="M653.089519 511.193911a239.366549 239.366549 0 1 0 0 478.733098 239.366549 239.366549 0 0 0 0-478.733098z m-174.381022 239.366549c0-28.818557 7.028916-56.039633 19.489267-80.001847l260.581097 218.599296a173.486434 173.486434 0 0 1-105.689342 35.783574 174.572721 174.572721 0 0 1-174.381022-174.381023z m307.674835 112.270963l1.469682-1.72528a35.144581 35.144581 0 0 0-1.469682 1.72528z m21.086749-31.374527L546.569488 612.602003a173.486434 173.486434 0 0 1 106.520031-36.422566 174.572721 174.572721 0 0 1 174.381023 174.381023 172.527945 172.527945 0 0 1-20.000461 80.896436z" ></path></symbol><symbol id="icon-anhei" viewBox="0 0 1024 1024"><path d="M398.97 64.12c-0.02 0.02-0.04 0.04-0.05 0.06 0.02 0 0.03-0.01 0.05-0.01v-0.05zM421.78 613.56C273.43 463.81 263.53 225.73 398.92 64.18 166.66 117.34 10.47 335.32 34.82 572.34c33.7 248.91 251.89 430.88 502.8 419.35a501.84 501.84 0 0 0 192.95-43.45 484.233 484.233 0 0 0 159.29-112.16A467.675 467.675 0 0 0 989 672.7c-179.36 116.54-415.76 91.89-567.22-59.14z" ></path><path d="M660.42 278.77a62.323 62.323 0 0 1 37.49 36.01c11.2 28.47 20.09 57.8 26.6 87.7 3.61 15.85 6.86 31.91 10.64 49.36 1.91-9.36 3.35-17.23 5.05-25a727.852 727.852 0 0 1 30.42-108.71 66.904 66.904 0 0 1 43.4-41.11c43.9-14.5 88.9-25.42 134.55-32.66h0.21c0.85-2.71-2.13-1.33-2.82-2.45-18.46-3.78-37.18-7.07-55.68-11.22a495.51 495.51 0 0 1-85.63-25.53 54.54 54.54 0 0 1-29.57-28.14 310.576 310.576 0 0 1-14.68-38.45 983.926 983.926 0 0 1-25.05-103.98l-5 23.67a731.899 731.899 0 0 1-30.74 109.29 68.137 68.137 0 0 1-43.66 41.75 767.933 767.933 0 0 1-101.58 26.97c-11.43 2.39-23.03 4.52-34.57 6.8 11.12 2.87 22.29 4.74 32.92 6.97a693.502 693.502 0 0 1 107.7 28.73zM771.31 516.98a456.433 456.433 0 0 1-60.63-15 35.124 35.124 0 0 1-23.72-22.55 318.968 318.968 0 0 1-9.89-32.71c-2.29-9.52-4.42-18.99-6.54-28.5a44.044 44.044 0 0 0-3.41 10.64 272.599 272.599 0 0 1-17.18 56.91 26.15 26.15 0 0 1-13.67 13.24c-11.1 4.72-22.62 8.38-34.41 10.96l-35.74 7.87c0.9 1.76 2.23 1.76 3.3 1.76 21.98 3.54 43.6 9.1 64.57 16.59 7.77 2.77 14.02 8.7 17.17 16.33 4.91 11.82 8.84 24.02 11.75 36.48 2.45 9.73 4.58 19.57 6.86 29.41a595.34 595.34 0 0 1 17.5-62.06 34.357 34.357 0 0 1 22.71-21.75 434.977 434.977 0 0 1 62.76-15.27l-0.16-0.1c0.91-1.51-0.53-1.72-1.27-2.25z" ></path></symbol><symbol id="icon-liangse" viewBox="0 0 1024 1024"><path d="M510.805433 812.646946A302.737439 302.737439 0 0 1 209.091909 510.76277 302.737439 302.737439 0 0 1 510.805433 209.049246a299.751021 299.751021 0 0 1 301.884176 301.79885 299.751021 299.751021 0 0 1-301.884176 301.884176z m0 0A302.737439 302.737439 0 0 1 209.091909 510.76277 302.737439 302.737439 0 0 1 510.805433 209.049246a299.751021 299.751021 0 0 1 301.884176 301.79885 299.751021 299.751021 0 0 1-301.884176 301.884176z m-383.114741-299.495042c0-2.389134 0-2.389134 0 0 0-16.211982 2.389134-32.509291 2.389135-48.806599H37.15957A39.932672 39.932672 0 0 0 0.042663 501.547538v16.211982c0 20.904925 18.601117 39.506041 37.116907 39.506041h92.920257c-2.303808-13.993501-2.303808-30.205483-2.303808-44.113657z m83.619699-239.169403a400.179985 400.179985 0 0 1 62.714774-62.714773l-32.509291-32.423965c-11.604366-16.297309-37.116907-16.297309-53.414216 0l-9.300558 9.215232a35.325056 35.325056 0 0 0 0 53.414216l32.509291 32.423964z m601.379218 0l30.205483-34.813098c16.211982-11.604366 16.211982-37.202233 0-53.414216L831.120073 174.065495c-11.604366-16.211982-37.116907-16.211982-53.328889 0l-32.509291 32.423964c23.208733 20.990251 46.417465 41.809849 67.32239 67.407716zM510.805433 127.733356c16.211982 0 30.205483 2.303808 46.502791 2.303808V37.116907A39.932672 39.932672 0 0 0 520.105991 0h-16.211982c-20.904925 0-39.506041 18.601117-39.506041 37.116907v95.224065c16.211982-2.303808 30.205483-4.607616 46.417465-4.607616z m471.342055 336.611949H891.701692c2.303808 16.211982 2.303808 30.205483 2.303808 46.417465 0 16.211982 0 30.205483-2.303808 44.113657h90.531122a40.700608 40.700608 0 0 0 39.506041-39.420715v-16.211982c0-16.297309-18.601117-34.898425-39.506041-34.898425zM211.310391 750.017499l-30.205483 32.50929c-16.211982 11.604366-16.211982 37.116907 0 53.414216l11.689692 11.604366c11.604366 16.211982 37.116907 16.211982 53.32889 0l32.509291-32.509291a298.385801 298.385801 0 0 1-67.32239-65.018581z m603.683026-4.607616c-18.601117 25.512541-41.809849 48.721273-67.407716 67.322389l32.594617 32.423965c11.604366 16.297309 37.116907 16.297309 53.414216 0l13.908174-13.908174c16.211982-11.604366 16.211982-37.116907 0-53.32889l-32.509291-32.50929z m-304.187984 148.552953c-13.908174 0-30.120157 0-44.113657-2.303808v92.834931c0 20.904925 16.211982 39.506041 37.202233 39.506041h16.211982c18.601117 0 37.202233-18.601117 37.202233-39.506041V891.659028c-16.211982 2.303808-30.205483 2.303808-46.502791 2.303808z" ></path></symbol></svg>', ((e) => {
2679
2685
  var t = (a = (a = document.getElementsByTagName("script"))[a.length - 1]).getAttribute("data-injectcss"), a = a.getAttribute("data-disable-injectsvg");
2680
2686
  if (!a) {
2681
- var o, i, l, s, r, f = function(u, y) {
2682
- y.parentNode.insertBefore(u, y);
2687
+ var o, i, l, s, r, f = function(u, I) {
2688
+ I.parentNode.insertBefore(u, I);
2683
2689
  };
2684
2690
  if (t && !e.__iconfont__svg__cssinject__) {
2685
2691
  e.__iconfont__svg__cssinject__ = !0;
@@ -2690,8 +2696,8 @@ window._iconfont_svg_string_4694134 = '<svg><symbol id="icon-fixed" viewBox="0 0
2690
2696
  }
2691
2697
  }
2692
2698
  o = function() {
2693
- var u, y = document.createElement("div");
2694
- y.innerHTML = e._iconfont_svg_string_4694134, (y = y.getElementsByTagName("svg")[0]) && (y.setAttribute("aria-hidden", "true"), y.style.position = "absolute", y.style.width = 0, y.style.height = 0, y.style.overflow = "hidden", y = y, (u = document.body).firstChild ? f(y, u.firstChild) : u.appendChild(y));
2699
+ var u, I = document.createElement("div");
2700
+ I.innerHTML = e._iconfont_svg_string_4694134, (I = I.getElementsByTagName("svg")[0]) && (I.setAttribute("aria-hidden", "true"), I.style.position = "absolute", I.style.width = 0, I.style.height = 0, I.style.overflow = "hidden", I = I, (u = document.body).firstChild ? f(I, u.firstChild) : u.appendChild(I));
2695
2701
  }, document.addEventListener ? ~["complete", "loaded", "interactive"].indexOf(document.readyState) ? setTimeout(o, 0) : (i = function() {
2696
2702
  document.removeEventListener("DOMContentLoaded", i, !1), o();
2697
2703
  }, document.addEventListener("DOMContentLoaded", i, !1)) : document.attachEvent && (l = o, s = e.document, r = !1, g(), s.onreadystatechange = function() {
@@ -2718,13 +2724,7 @@ const oi = /* @__PURE__ */ K({
2718
2724
  GlobalFooter: Ut,
2719
2725
  SiderMenuWrapper: Yt
2720
2726
  },
2721
- props: {
2722
- ...He,
2723
- style: {
2724
- type: Object,
2725
- default: () => ({})
2726
- }
2727
- },
2727
+ props: He,
2728
2728
  setup(e, {
2729
2729
  slots: t
2730
2730
  }) {
@@ -2739,45 +2739,45 @@ const oi = /* @__PURE__ */ K({
2739
2739
  } = ge("ProLayout", [uo, co], a), l = ln(), s = Tn(), {
2740
2740
  token: r,
2741
2741
  dark: f
2742
- } = ke(), h = he(vt().uuid(10)), g = he(!1), u = he(!1), y = he(!1), b = Ce({
2742
+ } = ke(), h = he(vt().uuid(10)), g = he(!1), u = he(!1), I = he(!1), y = Ce({
2743
2743
  position: "relative"
2744
- }), c = R(() => {
2745
- var v;
2746
- return (v = r == null ? void 0 : r.value) == null ? void 0 : v.colorPrimary;
2744
+ }), d = R(() => {
2745
+ var b;
2746
+ return (b = r == null ? void 0 : r.value) == null ? void 0 : b.colorPrimary;
2747
2747
  });
2748
2748
  Gn(() => {
2749
- const v = document.querySelector("html");
2750
- v && (c.value && v.style.setProperty("--gx-primary-color", c.value), v.setAttribute("data-theme", f.value ? "dark" : "light"));
2749
+ const b = document.querySelector("html");
2750
+ b && (d.value && b.style.setProperty("--gx-primary-color", d.value), b.setAttribute("data-theme", f.value ? "dark" : "light"));
2751
2751
  });
2752
- const x = R(() => e.layout === "mix" || e.layout === "side" || e.layout === "wide" || !1), w = R(() => {
2753
- var v;
2754
- return e.menuData || ((v = s == null ? void 0 : s.menuData) == null ? void 0 : v.value) || [];
2755
- }), d = R(() => {
2756
- var v, L;
2757
- return it(e.levelMenuData) && ((v = e.levelMenuData) != null && v.length) ? e.levelMenuData : ((L = s == null ? void 0 : s.menuData) == null ? void 0 : L.value) || Mt(w.value);
2758
- }), p = R(() => e.layout === "wide"), m = R(() => ({
2752
+ const C = R(() => e.layout === "mix" || e.layout === "side" || e.layout === "wide" || !1), w = R(() => {
2753
+ var b;
2754
+ return e.menuData || ((b = s == null ? void 0 : s.menuData) == null ? void 0 : b.value) || [];
2755
+ }), c = R(() => {
2756
+ var b, L;
2757
+ return it(e.levelMenuData) && ((b = e.levelMenuData) != null && b.length) ? e.levelMenuData : ((L = s == null ? void 0 : s.menuData) == null ? void 0 : L.value) || Mt(w.value);
2758
+ }), v = R(() => e.layout === "wide"), m = R(() => ({
2759
2759
  key: sn(f.value, e.theme),
2760
2760
  theme: f.value ? "dark" : e.theme
2761
- })), S = R(() => (l.value === "sm" || l.value === "xs") && !e.disableMobile && !p.value), P = R(() => ({
2761
+ })), x = R(() => (l.value === "sm" || l.value === "xs") && !e.disableMobile && !v.value), P = R(() => ({
2762
2762
  ...e.breadcrumb || {},
2763
2763
  itemRender: se(t, e, "pageContainerProps:breadcrumbRender")
2764
- })), N = R(() => x.value && e.selectedKeys ? Eo(w.value, e.selectedKeys[0]) : []), B = R(() => _e(e.headerHeight) ? e.headerHeight : Z.headerHeight), z = bt(() => y.value ? 0 : _e(e.siderWidth) ? e.siderWidth : e.layout === "mix" ? 215 : e.layout === "wide" ? 208 : 256, [() => e.layout, () => e.siderWidth, () => y.value]);
2765
- ae([() => e.layout, () => e.theme], ([v]) => {
2766
- (v === "wide" || v === "simple") && (y.value = !1), h.value = vt().uuid(10);
2767
- }), ae(() => p.value, (v) => {
2768
- if (v) {
2764
+ })), N = R(() => C.value && e.selectedKeys ? Eo(w.value, e.selectedKeys[0]) : []), B = R(() => _e(e.headerHeight) ? e.headerHeight : Z.headerHeight), z = bt(() => I.value ? 0 : _e(e.siderWidth) ? e.siderWidth : e.layout === "mix" ? 215 : e.layout === "wide" ? 208 : 256, [() => e.layout, () => e.siderWidth, () => I.value]);
2765
+ ae([() => e.layout, () => e.theme], ([b]) => {
2766
+ (b === "wide" || b === "simple") && (I.value = !1), h.value = vt().uuid(10);
2767
+ }), ae(() => v.value, (b) => {
2768
+ if (b) {
2769
2769
  const L = document.querySelector('meta[name="viewport"]');
2770
2770
  L && (L.content = "");
2771
2771
  }
2772
2772
  }, {
2773
2773
  immediate: !0
2774
2774
  }), ae([() => e.contentStyle, () => e.isChildrenLayout], () => {
2775
- (e.isChildrenLayout || e.contentStyle && e.contentStyle.minHeight) && (b.minHeight = 0);
2775
+ (e.isChildrenLayout || e.contentStyle && e.contentStyle.minHeight) && (y.minHeight = 0);
2776
2776
  }, {
2777
2777
  immediate: !0,
2778
2778
  deep: !0
2779
2779
  });
2780
- const $ = (v, L) => v.headerRender === !1 || v.pure ? null : n(Gt, te(Ie(v, "headerHeight"), {
2780
+ const $ = (b, L) => b.headerRender === !1 || b.pure ? null : n(Gt, te(Ie(b, "headerHeight"), {
2781
2781
  headerHeight: B.value,
2782
2782
  matchMenuKeys: L || []
2783
2783
  }), null);
@@ -2788,76 +2788,78 @@ const oi = /* @__PURE__ */ K({
2788
2788
  menuState: m,
2789
2789
  lockOpen: g,
2790
2790
  settingsOpen: u,
2791
- contentFullScreen: y,
2792
- hasContentWide: p,
2793
- isMobile: S,
2791
+ contentFullScreen: I,
2792
+ hasContentWide: v,
2793
+ isMobile: x,
2794
2794
  siderWidth: z,
2795
2795
  headerHeight: B,
2796
2796
  breadcrumb: P,
2797
2797
  flatMenuData: N,
2798
- hasSide: x,
2799
- levelMenuData: d,
2798
+ hasSide: C,
2799
+ levelMenuData: c,
2800
2800
  contentStyle: R(() => {
2801
- const v = p.value ? {
2801
+ const b = v.value ? {
2802
2802
  minHeight: "835px",
2803
2803
  marginInlineStart: z.value === 0 || w.value.length === 0 ? 0 : void 0
2804
2804
  } : {};
2805
2805
  return {
2806
2806
  ...e.contentStyle,
2807
- ...v
2807
+ ...b
2808
2808
  };
2809
2809
  }),
2810
2810
  onDarkChange: e.onDarkChange,
2811
2811
  pageHeaderRender: R(() => Pe(t, e, "pageContainerProps:pageHeaderRender"))
2812
2812
  }), () => {
2813
2813
  var fe;
2814
- const v = rn(Sn, t, e, {
2814
+ const b = rn(Sn, t, e, {
2815
2815
  render: !0
2816
2816
  }), L = se(t, e, "collapsedButtonRender"), A = se(t, e, "footerRender"), j = se(t, e, "headerRender"), E = se(t, e, "headerContentRender"), ne = se(t, e, "rightContentRender"), me = se(t, e, "tabsRouteItemRender"), O = se(t, e, "menuItemRender"), F = se(t, e, "menuHeaderRender"), k = se(t, e, "logoContentRender"), U = se(t, e, "menuFooterRender"), ee = se(t, e, "subMenuItemRender"), ve = se(t, e, "menuContentRender"), W = $({
2817
2817
  ...e,
2818
- ...le(v, xn),
2818
+ ...le(b, xn),
2819
2819
  menuItemRender: O,
2820
2820
  subMenuItemRender: ee,
2821
- hasSiderMenu: x.value,
2822
- isMobile: S.value,
2821
+ hasSiderMenu: C.value,
2822
+ isMobile: x.value,
2823
2823
  rightContentRender: ne,
2824
2824
  logoContentRender: k,
2825
2825
  headerContentRender: E,
2826
2826
  headerRender: j
2827
- }, e.matchMenuKeys), Q = p.value ? {
2827
+ }, e.matchMenuKeys), Q = v.value ? {
2828
2828
  minHeight: "835px",
2829
2829
  marginInlineStart: z.value === 0 || w.value.length === 0 ? 0 : void 0
2830
2830
  } : {}, G = A === !1 ? null : A ? typeof A == "function" ? A(e) : A : n(Ut, {
2831
- copyright: v.copyrightRender,
2831
+ copyright: b.copyrightRender,
2832
2832
  links: e.footerLinks
2833
2833
  }, null);
2834
2834
  return o(n(J, null, [e.pure ? (fe = t.default) == null ? void 0 : fe.call(t) : n("div", {
2835
+ id: e.id,
2835
2836
  class: V({
2836
2837
  [`${i.value}`]: !0,
2838
+ [`${e.class}`]: !!e.class,
2837
2839
  [`${a}`]: !0,
2838
2840
  [`${a}-${e.layout}`]: !0
2839
2841
  }),
2840
- style: p.value ? {
2842
+ style: v.value ? {
2841
2843
  minWidth: Ae(e.wideWidth),
2842
2844
  ...e.style
2843
2845
  } : e.style
2844
2846
  }, [n(Ue, {
2845
- style: p.value ? {
2847
+ style: v.value ? {
2846
2848
  width: Ae(e.wideWidth),
2847
2849
  paddingTop: `${B.value + 20}px`,
2848
- margin: p.value ? "0 auto" : void 0
2850
+ margin: v.value ? "0 auto" : void 0
2849
2851
  } : void 0
2850
2852
  }, {
2851
2853
  default: () => [z.value > 0 && n(Yt, te(e, {
2852
2854
  siderWidth: z.value,
2853
- isMobile: S.value,
2855
+ isMobile: x.value,
2854
2856
  menuHeaderRender: F,
2855
2857
  logoContentRender: k,
2856
2858
  menuFooterRender: U,
2857
2859
  menuContentRender: ve,
2858
2860
  collapsedButtonRender: L
2859
- }, le(v, Cn)), null), n(Ue, {
2860
- style: b
2861
+ }, le(b, Cn)), null), n(Ue, {
2862
+ style: y
2861
2863
  }, {
2862
2864
  default: () => [e.layout !== "simple" && B.value > 0 && W, n(Ft, te(le(e, fo), {
2863
2865
  hashId: i.value,
@@ -2875,7 +2877,7 @@ const oi = /* @__PURE__ */ K({
2875
2877
  }
2876
2878
  }), e.layout !== "wide" && G]
2877
2879
  })]
2878
- }), v.pageLockRender, e.layout === "wide" && G])]));
2880
+ }), b.pageLockRender, e.layout === "wide" && G])]));
2879
2881
  };
2880
2882
  }
2881
2883
  }), us = /* @__PURE__ */ K({
@@ -2889,40 +2891,39 @@ const oi = /* @__PURE__ */ K({
2889
2891
  slots: Object,
2890
2892
  setup(e, {
2891
2893
  slots: t,
2892
- emit: a,
2893
- attrs: o
2894
+ emit: a
2894
2895
  }) {
2895
2896
  const {
2896
- isDark: i,
2897
- innerDark: l,
2898
- toggleMode: s
2897
+ isDark: o,
2898
+ innerDark: i,
2899
+ toggleMode: l
2899
2900
  } = Nt(R(() => e.dark), {
2900
- change: (y) => {
2901
- var b, c;
2902
- (b = e.onDarkChange) == null || b.call(e, y), (c = e == null ? void 0 : e["onUpdate:dark"]) == null || c.call(e, y);
2901
+ change: (u) => {
2902
+ var I, y;
2903
+ (I = e.onDarkChange) == null || I.call(e, u), (y = e == null ? void 0 : e["onUpdate:dark"]) == null || y.call(e, u);
2903
2904
  }
2904
- }), r = R(() => {
2905
- var b, c;
2906
- let y = e.token || {};
2907
- return (c = (b = y.layout) == null ? void 0 : b.header) != null && c.heightLayoutHeader || (y = pe(y, {
2905
+ }), s = R(() => {
2906
+ var I, y;
2907
+ let u = e.token || {};
2908
+ return (y = (I = u.layout) == null ? void 0 : I.header) != null && y.heightLayoutHeader || (u = pe(u, {
2908
2909
  layout: {
2909
2910
  header: {
2910
2911
  heightLayoutHeader: e.headerHeight
2911
2912
  }
2912
2913
  }
2913
- })), pe(y, {
2914
+ })), pe(u, {
2914
2915
  layout: {
2915
- key: `${sn(i.value, e.theme)}:${e.layout}`
2916
+ key: `${sn(o.value, e.theme)}:${e.layout}`
2916
2917
  }
2917
2918
  });
2918
- }), f = (y) => {
2919
- a("update:collapsed", y), a("collapse", y);
2920
- }, h = (y) => {
2921
- a("update:open-keys", y), a("openKeys", y);
2922
- }, g = (y) => {
2923
- a("update:selected-keys", y), a("select", y);
2924
- }, u = (y) => {
2925
- a("update:tabs", y), a("tabsChange", y);
2919
+ }), r = (u) => {
2920
+ a("update:collapsed", u), a("collapse", u);
2921
+ }, f = (u) => {
2922
+ a("update:open-keys", u), a("openKeys", u);
2923
+ }, h = (u) => {
2924
+ a("update:selected-keys", u), a("select", u);
2925
+ }, g = (u) => {
2926
+ a("update:tabs", u), a("tabsChange", u);
2926
2927
  };
2927
2928
  return () => n(Rt, {
2928
2929
  theme: e.primaryColor ? {
@@ -2932,18 +2933,16 @@ const oi = /* @__PURE__ */ K({
2932
2933
  } : void 0
2933
2934
  }, {
2934
2935
  default: () => [n(Ca, {
2935
- token: r.value,
2936
- dark: i.value
2936
+ token: s.value,
2937
+ dark: o.value
2937
2938
  }, {
2938
- default: () => [n(oi, te({
2939
- style: o.style
2940
- }, Ie(e, ["onSelect", "onOpenKeys", "onCollapse", "onTabsChange", "onDarkChange", "dark"]), {
2941
- dark: l.value,
2942
- onSelect: g,
2943
- onOpenKeys: h,
2944
- onCollapse: f,
2945
- onTabsChange: u,
2946
- onDarkChange: s
2939
+ default: () => [n(oi, te(Ie(e, ["onSelect", "onOpenKeys", "onCollapse", "onTabsChange", "onDarkChange", "dark"]), {
2940
+ dark: i.value,
2941
+ onSelect: h,
2942
+ onOpenKeys: f,
2943
+ onCollapse: r,
2944
+ onTabsChange: g,
2945
+ onDarkChange: l
2947
2946
  }), t)]
2948
2947
  })]
2949
2948
  });
@@ -3022,7 +3021,7 @@ const oi = /* @__PURE__ */ K({
3022
3021
  disabeld: !1
3023
3022
  })
3024
3023
  }
3025
- }, ri = new I("fadeIn", {
3024
+ }, ri = new S("fadeIn", {
3026
3025
  from: {
3027
3026
  opacity: 0
3028
3027
  },
@@ -3169,8 +3168,8 @@ const jn = /* @__PURE__ */ K({
3169
3168
  } = ui(e.validator), r = (g) => {
3170
3169
  Object.assign(o, g);
3171
3170
  }, f = (g = "", u) => {
3172
- const y = g ? `${e.className}-${g}` : e.className;
3173
- return V(y, e.hashId, "");
3171
+ const I = g ? `${e.className}-${g}` : e.className;
3172
+ return V(I, e.hashId, "");
3174
3173
  }, h = () => {
3175
3174
  i().then(() => {
3176
3175
  var g;
@@ -3323,38 +3322,38 @@ const di = /* @__PURE__ */ K({
3323
3322
  return oe(e.open) ? e.open : (m = a == null ? void 0 : a.lockOpen) == null ? void 0 : m.value;
3324
3323
  }),
3325
3324
  onChange: (m) => {
3326
- var S, P;
3327
- (S = e.onOpenChange) == null || S.call(e, m), (P = e["onUpdate:open"]) == null || P.call(e, m), a && (a.lockOpen.value = m);
3325
+ var x, P;
3326
+ (x = e.onOpenChange) == null || x.call(e, m), (P = e["onUpdate:open"]) == null || P.call(e, m), a && (a.lockOpen.value = m);
3328
3327
  }
3329
3328
  }), [h, g] = xe(!1), u = he();
3330
- function y(m) {
3329
+ function I(m) {
3331
3330
  return e.cryptoFn ? e.cryptoFn(m) : m;
3332
3331
  }
3333
- function b(m) {
3334
- l.value.open = h.value, l.value.password = y(m);
3332
+ function y(m) {
3333
+ l.value.open = h.value, l.value.password = I(m);
3335
3334
  }
3336
- const c = R(() => e.shortsKey), x = R(() => l.value.open && !!l.value.password), w = on();
3335
+ const d = R(() => e.shortsKey), C = R(() => l.value.open && !!l.value.password), w = on();
3337
3336
  yt(w["Alt+KeyL"], () => {
3338
3337
  var m;
3339
- (m = c.value) != null && m.disabeld || f.value || r(!0);
3338
+ (m = d.value) != null && m.disabeld || f.value || r(!0);
3340
3339
  }), ae(h, (m) => {
3341
- var S, P;
3342
- b(m && (((P = (S = u.value) == null ? void 0 : S.formState) == null ? void 0 : P.password) || l.value.password) || "");
3340
+ var x, P;
3341
+ y(m && (((P = (x = u.value) == null ? void 0 : x.formState) == null ? void 0 : P.password) || l.value.password) || "");
3343
3342
  }), It(() => {
3344
- x.value ? g(!0) : b("");
3343
+ C.value ? g(!0) : y("");
3345
3344
  });
3346
- const d = () => {
3345
+ const c = () => {
3347
3346
  r(!1), g(!0);
3348
- }, p = () => {
3347
+ }, v = () => {
3349
3348
  var m;
3350
- r(!1), b(""), (m = u.value) == null || m.resetFields();
3349
+ r(!1), y(""), (m = u.value) == null || m.resetFields();
3351
3350
  };
3352
3351
  return () => o(n(J, null, [n(di, te(le(e, ["name", "avatar"]), {
3353
3352
  open: h.value,
3354
3353
  hashId: i.value,
3355
3354
  className: t,
3356
3355
  password: l.value.password,
3357
- cryptoFn: y,
3356
+ cryptoFn: I,
3358
3357
  onOpenChange: g
3359
3358
  }), null), n(to, {
3360
3359
  width: 400,
@@ -3362,7 +3361,7 @@ const di = /* @__PURE__ */ K({
3362
3361
  title: "锁定屏幕",
3363
3362
  open: f.value,
3364
3363
  footer: !1,
3365
- onCancel: p
3364
+ onCancel: v
3366
3365
  }, {
3367
3366
  default: () => [n(jn, te({
3368
3367
  ref: u
@@ -3370,7 +3369,7 @@ const di = /* @__PURE__ */ K({
3370
3369
  submitText: "锁定",
3371
3370
  hashId: i.value,
3372
3371
  className: t,
3373
- onSubmit: d
3372
+ onSubmit: c
3374
3373
  }), null)]
3375
3374
  })]));
3376
3375
  }
@@ -3502,25 +3501,25 @@ const yi = /* @__PURE__ */ new Set(["$", "(", ")", "*", "+", ".", "?", "[", "\\"
3502
3501
  suffixCls: "layout-search-history",
3503
3502
  isPor: !0
3504
3503
  }), []), o = he(0), i = he([]), l = sa(s, 200);
3505
- function s(d) {
3506
- if (d = d.trim(), !d) {
3504
+ function s(c) {
3505
+ if (c = c.trim(), !c) {
3507
3506
  i.value = [];
3508
3507
  return;
3509
3508
  }
3510
- const p = u(d), m = [];
3511
- e.dataSource.forEach((S) => {
3509
+ const v = u(c), m = [];
3510
+ e.dataSource.forEach((x) => {
3512
3511
  var N, B, z;
3513
- if ((N = S.meta) != null && N.hideInMenu) return;
3514
- const P = ((B = S.meta) == null ? void 0 : B.title) || S.name || "";
3515
- if (p.test(P.toLowerCase())) {
3512
+ if ((N = x.meta) != null && N.hideInMenu) return;
3513
+ const P = ((B = x.meta) == null ? void 0 : B.title) || x.name || "";
3514
+ if (v.test(P.toLowerCase())) {
3516
3515
  let $ = [];
3517
- const v = ((z = S == null ? void 0 : S.key) == null ? void 0 : z.split("-")) || [];
3518
- for (let L = 0; L < v.length; L++)
3519
- $.push(v.slice(0, L + 1).join("-"));
3516
+ const b = ((z = x == null ? void 0 : x.key) == null ? void 0 : z.split("-")) || [];
3517
+ for (let L = 0; L < b.length; L++)
3518
+ $.push(b.slice(0, L + 1).join("-"));
3520
3519
  $ = $.map((L) => {
3521
3520
  var A, j;
3522
3521
  return ((j = (A = e.dataSource.find((E) => (E == null ? void 0 : E.key) === L)) == null ? void 0 : A.meta) == null ? void 0 : j.title) || "";
3523
- }), m.push(pe(S, {
3522
+ }), m.push(pe(x, {
3524
3523
  meta: {
3525
3524
  title: $.join("**")
3526
3525
  }
@@ -3528,76 +3527,76 @@ const yi = /* @__PURE__ */ new Set(["$", "(", ")", "*", "+", ".", "?", "[", "\\"
3528
3527
  }
3529
3528
  }), i.value = m, m.length > 0 && (o.value = 0), o.value = 0;
3530
3529
  }
3531
- ae(() => e.keyword, (d) => {
3532
- d ? l(d) : i.value = [...a.value];
3530
+ ae(() => e.keyword, (c) => {
3531
+ c ? l(c) : i.value = [...a.value];
3533
3532
  });
3534
3533
  function r() {
3535
- var d;
3536
- i.value = [], (d = e.onClose) == null || d.call(e);
3534
+ var c;
3535
+ i.value = [], (c = e.onClose) == null || c.call(e);
3537
3536
  }
3538
3537
  function f() {
3539
- const d = document.querySelector(`[data-search-item="${o.value}"]`);
3540
- d && d.scrollIntoView({
3538
+ const c = document.querySelector(`[data-search-item="${o.value}"]`);
3539
+ c && c.scrollIntoView({
3541
3540
  block: "nearest"
3542
3541
  });
3543
3542
  }
3544
3543
  async function h() {
3545
3544
  if (i.value.length === 0)
3546
3545
  return;
3547
- const d = i.value, p = o.value;
3548
- if (d.length === 0 || p < 0)
3546
+ const c = i.value, v = o.value;
3547
+ if (c.length === 0 || v < 0)
3549
3548
  return;
3550
- const m = d[p];
3549
+ const m = c[v];
3551
3550
  m && (a.value.push(m), r(), await St(), gi(m.path) ? window.open(m.path, "_blank") : t.push({
3552
3551
  path: m.path,
3553
3552
  replace: !0
3554
3553
  }));
3555
3554
  }
3556
- function g(d) {
3557
- return yi.has(d) ? `\\${d}` : d;
3555
+ function g(c) {
3556
+ return yi.has(c) ? `\\${c}` : c;
3558
3557
  }
3559
- function u(d) {
3560
- const p = [...d].map((m) => g(m)).join(".*");
3561
- return new RegExp(`.*${p}.*`);
3558
+ function u(c) {
3559
+ const v = [...c].map((m) => g(m)).join(".*");
3560
+ return new RegExp(`.*${v}.*`);
3562
3561
  }
3563
- function y() {
3562
+ function I() {
3564
3563
  i.value.length !== 0 && (o.value--, o.value < 0 && (o.value = i.value.length - 1), f());
3565
3564
  }
3566
- function b() {
3565
+ function y() {
3567
3566
  i.value.length !== 0 && (o.value++, o.value > i.value.length - 1 && (o.value = 0), f());
3568
3567
  }
3569
3568
  It(() => {
3570
- a.value.length > 0 && (i.value = a.value), mt("Enter", h), mt("ArrowUp", y), mt("ArrowDown", b);
3569
+ a.value.length > 0 && (i.value = a.value), mt("Enter", h), mt("ArrowUp", I), mt("ArrowDown", y);
3571
3570
  });
3572
- function c(d) {
3573
- o.value = d;
3571
+ function d(c) {
3572
+ o.value = c;
3574
3573
  }
3575
- function x(d, p) {
3576
- d.stopPropagation(), e.keyword ? i.value.splice(p, 1) : a.value.splice(p, 1), o.value = o.value - 1 >= 0 ? o.value - 1 : 0, f();
3574
+ function C(c, v) {
3575
+ c.stopPropagation(), e.keyword ? i.value.splice(v, 1) : a.value.splice(v, 1), o.value = o.value - 1 >= 0 ? o.value - 1 : 0, f();
3577
3576
  }
3578
- const w = (d) => V(`${e.className}${d ? `-${d}` : ""}`, e.hashId);
3577
+ const w = (c) => V(`${e.className}${c ? `-${c}` : ""}`, e.hashId);
3579
3578
  return () => n(J, null, [i.value.length > 0 ? n(J, null, [a.value.length > 0 && !e.keyword && n("div", {
3580
3579
  class: w("panel-title")
3581
3580
  }, [X("搜索历史")]), n("div", {
3582
3581
  class: w("panel-list")
3583
- }, [hi(i.value, "path").map((d, p) => {
3584
- var m, S, P, N;
3582
+ }, [hi(i.value, "path").map((c, v) => {
3583
+ var m, x, P, N;
3585
3584
  return n("div", {
3586
- key: d.name,
3587
- class: w(V("panel-item", p === o.value && "active")),
3588
- "data-search-item": p,
3585
+ key: c.name,
3586
+ class: w(V("panel-item", v === o.value && "active")),
3587
+ "data-search-item": v,
3589
3588
  onClick: () => h(),
3590
- onMouseenter: () => c(p)
3589
+ onMouseenter: () => d(v)
3591
3590
  }, [n("div", {
3592
3591
  class: w("panel-item-left")
3593
- }, [n(nt, te(d.meta || {}, {
3594
- icon: ((m = d.meta) == null ? void 0 : m.icon) || n(ja, null, null),
3592
+ }, [n(nt, te(c.meta || {}, {
3593
+ icon: ((m = c.meta) == null ? void 0 : m.icon) || n(ja, null, null),
3595
3594
  classNames: w("panel-icon")
3596
- }), null), (N = (P = (S = d.meta) == null ? void 0 : S.title) == null ? void 0 : P.split("**")) == null ? void 0 : N.map((B, z) => {
3597
- var $, v, L;
3598
- return n(J, null, [B, z < ((L = (v = ($ = d.meta) == null ? void 0 : $.title) == null ? void 0 : v.split("**")) == null ? void 0 : L.length) - 1 && n(Ea, null, null)]);
3595
+ }), null), (N = (P = (x = c.meta) == null ? void 0 : x.title) == null ? void 0 : P.split("**")) == null ? void 0 : N.map((B, z) => {
3596
+ var $, b, L;
3597
+ return n(J, null, [B, z < ((L = (b = ($ = c.meta) == null ? void 0 : $.title) == null ? void 0 : b.split("**")) == null ? void 0 : L.length) - 1 && n(Ea, null, null)]);
3599
3598
  }), n("span", null, null)]), n(st, {
3600
- onClick: (B) => x(B, p)
3599
+ onClick: (B) => C(B, v)
3601
3600
  }, null)]);
3602
3601
  })])]) : n(bi, {
3603
3602
  className: w("result"),
@@ -3635,26 +3634,26 @@ const yi = /* @__PURE__ */ new Set(["$", "(", ")", "*", "+", ".", "?", "[", "\\"
3635
3634
  }), {
3636
3635
  wrapSSR: a,
3637
3636
  hashId: o
3638
- } = fi(t), [i, l] = xe(""), [s, r] = xe(!1), f = re(), h = on(), g = ba() ? h["ctrl+k"] : h["cmd+k"], u = he(), y = R(() => {
3639
- var c;
3640
- return Mt(e.dataSource || ((c = f == null ? void 0 : f.menuData) == null ? void 0 : c.value));
3637
+ } = fi(t), [i, l] = xe(""), [s, r] = xe(!1), f = re(), h = on(), g = ba() ? h["ctrl+k"] : h["cmd+k"], u = he(), I = R(() => {
3638
+ var d;
3639
+ return Mt(e.dataSource || ((d = f == null ? void 0 : f.menuData) == null ? void 0 : d.value));
3641
3640
  });
3642
3641
  yt(g, () => {
3643
3642
  e.disabeldShortKey || r(!0);
3644
3643
  }), yt(s, () => {
3645
3644
  St(() => {
3646
- var c;
3647
- (c = u.value) == null || c.focus();
3645
+ var d;
3646
+ (d = u.value) == null || d.focus();
3648
3647
  });
3649
3648
  });
3650
- const b = () => {
3649
+ const y = () => {
3651
3650
  r(!1), i.value = "";
3652
3651
  };
3653
3652
  return () => {
3654
- const c = {
3653
+ const d = {
3655
3654
  className: `${t}`,
3656
3655
  hashId: o.value
3657
- }, x = `${t}-modal`;
3656
+ }, C = `${t}-modal`;
3658
3657
  return a(n(J, null, [n("div", {
3659
3658
  class: V(t, o.value),
3660
3659
  onClick: () => r(!0)
@@ -3663,7 +3662,7 @@ const yi = /* @__PURE__ */ new Set(["$", "(", ")", "*", "+", ".", "?", "[", "\\"
3663
3662
  }, [X("搜索")]), n("span", {
3664
3663
  class: V(`${t}-word-icon`, o.value)
3665
3664
  }, [X("⌘ "), n("kbd", null, [X("K")])])]), n(eo, {
3666
- class: V(`${x}`, o.value),
3665
+ class: V(`${C}`, o.value),
3667
3666
  width: 600,
3668
3667
  scrollProps: {
3669
3668
  maxHeight: 400,
@@ -3685,15 +3684,15 @@ const yi = /* @__PURE__ */ new Set(["$", "(", ")", "*", "+", ".", "?", "[", "\\"
3685
3684
  }, null),
3686
3685
  open: s.value,
3687
3686
  footer: n(pi, {
3688
- className: x,
3687
+ className: C,
3689
3688
  hashId: o.value
3690
3689
  }, null),
3691
- onCancel: () => b()
3690
+ onCancel: () => y()
3692
3691
  }, {
3693
- default: () => [n(vi, te(c, {
3692
+ default: () => [n(vi, te(d, {
3694
3693
  keyword: i.value,
3695
- dataSource: y.value,
3696
- onClose: () => b()
3694
+ dataSource: I.value,
3695
+ onClose: () => y()
3697
3696
  }), null)]
3698
3697
  })]));
3699
3698
  };
@@ -3787,18 +3786,18 @@ const ds = /* @__PURE__ */ K({
3787
3786
  }), [f, h] = xe(!1), {
3788
3787
  wrapSSR: g,
3789
3788
  hashId: u
3790
- } = Si(r), [y, b] = xe("auto"), {
3791
- isDark: c,
3792
- toggleMode: x
3789
+ } = Si(r), [I, y] = xe("auto"), {
3790
+ isDark: d,
3791
+ toggleMode: C
3793
3792
  } = Nt(R(() => {
3794
3793
  var B;
3795
3794
  return Ve(e.dark) ? e.dark : (B = l == null ? void 0 : l.dark) == null ? void 0 : B.value;
3796
3795
  }), {
3797
3796
  change: (B) => {
3798
- var z, $, v;
3799
- (z = e.onDarkChange) == null || z.call(e, B), ($ = e == null ? void 0 : e["onUpdate:dark"]) == null || $.call(e, B), (v = l == null ? void 0 : l.onDarkChange) == null || v.call(l, B);
3797
+ var z, $, b;
3798
+ (z = e.onDarkChange) == null || z.call(e, B), ($ = e == null ? void 0 : e["onUpdate:dark"]) == null || $.call(e, B), (b = l == null ? void 0 : l.onDarkChange) == null || b.call(l, B);
3800
3799
  }
3801
- }), [w, d] = De(!1, {
3800
+ }), [w, c] = De(!1, {
3802
3801
  value: R(() => {
3803
3802
  var B;
3804
3803
  return oe(e.settingsOpen) ? e.settingsOpen : (B = l == null ? void 0 : l.settingsOpen) == null ? void 0 : B.value;
@@ -3807,29 +3806,29 @@ const ds = /* @__PURE__ */ K({
3807
3806
  var z, $;
3808
3807
  (z = e.onSettingsOpenChange) == null || z.call(e, B), ($ = e == null ? void 0 : e["onUpdate:settingsOpen"]) == null || $.call(e, B), l && !oe(e.settingsOpen) && (l.settingsOpen.value = B);
3809
3808
  }
3810
- }), p = R(() => {
3809
+ }), v = R(() => {
3811
3810
  var B, z;
3812
3811
  return oe((B = l == null ? void 0 : l.isMobile) == null ? void 0 : B.value) ? (z = l == null ? void 0 : l.isMobile) == null ? void 0 : z.value : s.value === "sm" || s.value === "xs";
3813
3812
  }), m = R(() => {
3814
3813
  var B;
3815
- return Ve(e.dark) ? c.value : (B = i == null ? void 0 : i.dark) == null ? void 0 : B.value;
3816
- }), S = ca(async (B) => {
3817
- b(B);
3814
+ return Ve(e.dark) ? d.value : (B = i == null ? void 0 : i.dark) == null ? void 0 : B.value;
3815
+ }), x = ca(async (B) => {
3816
+ y(B);
3818
3817
  }, 160), P = (B) => {
3819
3818
  zn({
3820
3819
  event: B,
3821
3820
  isDark: m,
3822
- toggle: x
3821
+ toggle: C
3823
3822
  });
3824
3823
  }, N = () => {
3825
3824
  e != null && e.onLogout && (h(!0), e.onLogout(() => h(!1)));
3826
3825
  };
3827
3826
  return () => {
3828
- const B = Pe(t, e, "dropdownMenuRender"), z = Pe(t, e, "dropdownRender"), $ = Pe(t, e, "dropdownMenuExtraItemRender"), v = se(t, e, "actionsRender"), L = a.value ? Wa : Ua;
3827
+ const B = Pe(t, e, "dropdownMenuRender"), z = Pe(t, e, "dropdownRender"), $ = Pe(t, e, "dropdownMenuExtraItemRender"), b = se(t, e, "actionsRender"), L = a.value ? Wa : Ua;
3829
3828
  return g(n("div", {
3830
3829
  class: `${r}-right-content ${u.value}`.trim(),
3831
3830
  style: {
3832
- minWidth: y.value,
3831
+ minWidth: I.value,
3833
3832
  height: "100%"
3834
3833
  }
3835
3834
  }, [n("div", {
@@ -3841,14 +3840,14 @@ const ds = /* @__PURE__ */ K({
3841
3840
  onResize: ({
3842
3841
  width: A
3843
3842
  }) => {
3844
- S(A);
3843
+ x(A);
3845
3844
  }
3846
3845
  }, {
3847
3846
  default: () => {
3848
3847
  var A;
3849
3848
  return [n("div", {
3850
3849
  class: `${r}-header-actions ${u.value}`.trim()
3851
- }, [e.actions.search && !p.value && n(Ci, {
3850
+ }, [e.actions.search && !v.value && n(Ci, {
3852
3851
  dataSource: e.dataSource,
3853
3852
  disabeldShortKey: (A = e.shortsKey) == null ? void 0 : A.disabeld
3854
3853
  }, null), e.actions.theme && n("div", {
@@ -3857,15 +3856,15 @@ const ds = /* @__PURE__ */ K({
3857
3856
  class: `${r}-header-actions-icon ${u.value}`.trim(),
3858
3857
  name: m.value ? "liangse" : "anhei",
3859
3858
  onClick: (j) => P(j)
3860
- }, null)]), e.actions.settings && !p.value && n("div", {
3859
+ }, null)]), e.actions.settings && !v.value && n("div", {
3861
3860
  class: `${r}-header-actions-item ${u.value}`.trim()
3862
3861
  }, [n(fn, {
3863
- onClick: () => d(!w.value)
3864
- }, null)]), e.actions.fullScreen && !p.value && n("div", {
3862
+ onClick: () => c(!w.value)
3863
+ }, null)]), e.actions.fullScreen && !v.value && n("div", {
3865
3864
  class: `${r}-header-actions-item ${u.value}`.trim()
3866
3865
  }, [n(L, {
3867
3866
  onClick: () => o()
3868
- }, null)]), v ? v == null ? void 0 : v([`${r}-header-actions-item`, u.value]) : null, n(gt, {
3867
+ }, null)]), b ? b == null ? void 0 : b([`${r}-header-actions-item`, u.value]) : null, n(gt, {
3869
3868
  overlay: B || n(ye, null, {
3870
3869
  default: () => [$, e.actions.lock && n(J, null, [n(jt, {
3871
3870
  key: "lock",
@@ -3926,9 +3925,9 @@ const ds = /* @__PURE__ */ K({
3926
3925
  hashId: l
3927
3926
  } = ge("ProPageHeader", [Ii], o), s = R(() => {
3928
3927
  var g;
3929
- const r = ((g = t == null ? void 0 : t.breadcrumb) == null ? void 0 : g.value) || {}, f = r.routes || [], h = f.map((u, y) => ({
3928
+ const r = ((g = t == null ? void 0 : t.breadcrumb) == null ? void 0 : g.value) || {}, f = r.routes || [], h = f.map((u, I) => ({
3930
3929
  ...u,
3931
- path: u.path && y !== f.length - 1 ? vt().uuid(10) : "",
3930
+ path: u.path && I !== f.length - 1 ? vt().uuid(10) : "",
3932
3931
  link: u.path
3933
3932
  }));
3934
3933
  return {
@@ -4041,28 +4040,28 @@ const {
4041
4040
  }), u = R(() => {
4042
4041
  var $;
4043
4042
  return (($ = l == null ? void 0 : l.pageContainerProps) == null ? void 0 : $.value) || {};
4044
- }), y = R(() => {
4043
+ }), I = R(() => {
4045
4044
  var $;
4046
4045
  return e.pageCardProps || (($ = u.value) == null ? void 0 : $.pageCardProps);
4047
- }), b = R(() => {
4046
+ }), y = R(() => {
4048
4047
  var $;
4049
4048
  return e.waterMarkProps || (($ = u.value) == null ? void 0 : $.waterMarkProps) || {};
4050
- }), c = R(() => {
4049
+ }), d = R(() => {
4051
4050
  var $;
4052
4051
  return e.pageContentStyle || (($ = u.value) == null ? void 0 : $.pageContentStyle);
4053
- }), x = R(() => {
4052
+ }), C = R(() => {
4054
4053
  var $;
4055
4054
  return e.pageChildrenContentStyle || (($ = u.value) == null ? void 0 : $.pageChildrenContentStyle) || {};
4056
4055
  }), w = R(() => {
4057
4056
  var $;
4058
4057
  return ($ = l == null ? void 0 : l.hasContentWide) == null ? void 0 : $.value;
4059
- }), d = R(() => {
4060
- var $, v;
4061
- return oe(e.usePageCard) ? e.usePageCard : oe(($ = u.value) == null ? void 0 : $.usePageCard) ? (v = u.value) == null ? void 0 : v.usePageCard : !0;
4062
- }), p = R(() => {
4063
- var $, v, L;
4064
- return (L = (v = ($ = s == null ? void 0 : s.token) == null ? void 0 : $.value) == null ? void 0 : v.layout) == null ? void 0 : L.pageContainer;
4065
- }), m = R(() => Ae(_e(e.contentWidth) && e.contentWidth ? e.contentWidth : l == null ? void 0 : l.contentWidth.value)), S = R(() => {
4058
+ }), c = R(() => {
4059
+ var $, b;
4060
+ return oe(e.usePageCard) ? e.usePageCard : oe(($ = u.value) == null ? void 0 : $.usePageCard) ? (b = u.value) == null ? void 0 : b.usePageCard : !0;
4061
+ }), v = R(() => {
4062
+ var $, b, L;
4063
+ return (L = (b = ($ = s == null ? void 0 : s.token) == null ? void 0 : $.value) == null ? void 0 : b.layout) == null ? void 0 : L.pageContainer;
4064
+ }), m = R(() => Ae(_e(e.contentWidth) && e.contentWidth ? e.contentWidth : l == null ? void 0 : l.contentWidth.value)), x = R(() => {
4066
4065
  var $;
4067
4066
  return ($ = i == null ? void 0 : i.spinning) != null && $.value ? !1 : e.loading;
4068
4067
  }), {
@@ -4070,13 +4069,13 @@ const {
4070
4069
  hashId: N
4071
4070
  } = $i(h), B = () => {
4072
4071
  var L, A, j, E;
4073
- const $ = Pe(t, e, "pageChildrenExtraRender"), v = V(`${h}-children-content`, N.value);
4072
+ const $ = Pe(t, e, "pageChildrenExtraRender"), b = V(`${h}-children-content`, N.value);
4074
4073
  return n("div", {
4075
- class: v,
4074
+ class: b,
4076
4075
  style: {
4077
- ...x.value
4076
+ ...C.value
4078
4077
  }
4079
- }, [$, d.value ? n(ta, te(y.value ? le(y.value, ["loading", "bodyStyle"]) : {}, {
4078
+ }, [$, c.value ? n(ta, te(I.value ? le(I.value, ["loading", "bodyStyle"]) : {}, {
4080
4079
  style: w.value ? {
4081
4080
  minHeight: "853px"
4082
4081
  } : void 0,
@@ -4087,20 +4086,20 @@ const {
4087
4086
  return [(ne = t.default) == null ? void 0 : ne.call(t)];
4088
4087
  }
4089
4088
  }) : Te($) ? n("div", {
4090
- style: (L = p.value) != null && L.marginBlockPageContainerContent ? {
4091
- marginBlockStart: `${(A = p.value) == null ? void 0 : A.marginBlockPageContainerContent}px`
4089
+ style: (L = v.value) != null && L.marginBlockPageContainerContent ? {
4090
+ marginBlockStart: `${(A = v.value) == null ? void 0 : A.marginBlockPageContainerContent}px`
4092
4091
  } : void 0
4093
4092
  }, [(j = t.default) == null ? void 0 : j.call(t)]) : (E = t.default) == null ? void 0 : E.call(t)]);
4094
4093
  }, z = () => {
4095
- var v;
4094
+ var b;
4096
4095
  let $;
4097
- return n(J, null, [(oe(e.waterMark) ? e.waterMark : (v = l == null ? void 0 : l.waterMark) != null && v.value) ? n(ao, b.value, Li($ = B()) ? $ : {
4096
+ return n(J, null, [(oe(e.waterMark) ? e.waterMark : (b = l == null ? void 0 : l.waterMark) != null && b.value) ? n(ao, y.value, Li($ = B()) ? $ : {
4098
4097
  default: () => [$]
4099
4098
  }) : B()]);
4100
4099
  };
4101
4100
  return () => {
4102
4101
  var j, E;
4103
- const $ = Pe(t, e, "pageHeaderRender") || ((j = l == null ? void 0 : l.pageHeaderRender) == null ? void 0 : j.value), v = se(t, e, "breadcrumbRender"), L = Pe(t, e, "contentRender"), A = {
4102
+ const $ = Pe(t, e, "pageHeaderRender") || ((j = l == null ? void 0 : l.pageHeaderRender) == null ? void 0 : j.value), b = se(t, e, "breadcrumbRender"), L = Pe(t, e, "contentRender"), A = {
4104
4103
  ...a.style || {},
4105
4104
  ...((E = l == null ? void 0 : l.contentStyle) == null ? void 0 : E.value) || {},
4106
4105
  width: m.value,
@@ -4117,7 +4116,7 @@ const {
4117
4116
  [`${N.value}`]: !0,
4118
4117
  [`${h}`]: !0
4119
4118
  }
4120
- }, [S.value && n("div", {
4119
+ }, [x.value && n("div", {
4121
4120
  class: V(`${h}-blur`, N.value),
4122
4121
  style: {
4123
4122
  backgroundColor: e.loadingBlur ? void 0 : "transparent"
@@ -4126,13 +4125,13 @@ const {
4126
4125
  indicator: (ne = o == null ? void 0 : o.indicator) == null ? void 0 : ne.value
4127
4126
  }, null)]), !w.value && $ !== !1 && ($ || n(wi, {
4128
4127
  style: e.pageHeaderStyle,
4129
- breadcrumb: v,
4128
+ breadcrumb: b,
4130
4129
  content: L
4131
4130
  }, null)), n("div", {
4132
4131
  class: [g, N.value]
4133
4132
  }, [n("div", {
4134
4133
  class: `${g}-children ${N.value}`,
4135
- style: c.value
4134
+ style: d.value
4136
4135
  }, [z()])])])];
4137
4136
  }
4138
4137
  }));
@@ -4147,30 +4146,30 @@ function fs({ menuData: e, watchOpenKeys: t = !0 }) {
4147
4146
  openKeys: [],
4148
4147
  selectedKeys: []
4149
4148
  }), s = R(() => a.currentRoute.value), r = (u) => {
4150
- var y, b;
4151
- if ((b = (y = s.value) == null ? void 0 : y.meta) != null && b.hidden)
4149
+ var I, y;
4150
+ if ((y = (I = s.value) == null ? void 0 : I.meta) != null && y.hidden)
4152
4151
  i.menuData = [], i.levelMenuData = [];
4153
4152
  else {
4154
- const c = Ao(Ho(u));
4155
- i.menuData = c.menuData, i.levelMenuData = c.getLevel();
4153
+ const d = Ao(Ho(u));
4154
+ i.menuData = d.menuData, i.levelMenuData = d.getLevel();
4156
4155
  }
4157
4156
  };
4158
4157
  e && Dt(e) && ae(() => e.value, (u) => r(u), { deep: !0 });
4159
4158
  const f = R(() => Fn(i, { path: Pt(s.value), name: s.value.name })), h = R(() => {
4160
- const u = f.value.map((y) => {
4161
- var c, x;
4162
- const b = Ln((c = y.meta) != null && c.hideChildrenInMenu ? [] : y.children || []);
4159
+ const u = f.value.map((I) => {
4160
+ var d, C;
4161
+ const y = Ln((d = I.meta) != null && d.hideChildrenInMenu ? [] : I.children || []);
4163
4162
  return {
4164
- path: y.redirect || b || y.path || "",
4165
- breadcrumbName: ((x = y.meta) == null ? void 0 : x.title) || ""
4163
+ path: I.redirect || y || I.path || "",
4164
+ breadcrumbName: ((C = I.meta) == null ? void 0 : C.title) || ""
4166
4165
  };
4167
- }).filter((y) => y.breadcrumbName);
4166
+ }).filter((I) => I.breadcrumbName);
4168
4167
  return Yo(u, "breadcrumbName");
4169
4168
  }), g = () => {
4170
4169
  l.openKeys = f.value.filter((u) => u.path !== s.value.path).map((u) => u.path);
4171
4170
  };
4172
4171
  return ae(() => s.value, (u) => {
4173
- u && (r(e ? Dt(e) ? e.value : e : o), l.selectedKeys = f.value.map((y) => y.path), t && g());
4172
+ u && (r(e ? Dt(e) ? e.value : e : o), l.selectedKeys = f.value.map((I) => I.path), t && g());
4174
4173
  }, { immediate: !0, deep: !0 }), It(() => {
4175
4174
  t || g();
4176
4175
  }), Qo({
@@ -4742,131 +4741,131 @@ const Ki = /* @__PURE__ */ K({
4742
4741
  } = ge("ProThemeEditor", [ji], i), {
4743
4742
  token: r
4744
4743
  } = ke(), f = R(() => {
4745
- var b;
4746
- return (b = r.value) == null ? void 0 : b.layout;
4744
+ var y;
4745
+ return (y = r.value) == null ? void 0 : y.layout;
4747
4746
  });
4748
- function h(b) {
4749
- return we(Wn).map((c) => {
4747
+ function h(y) {
4748
+ return we(Wn).map((d) => {
4750
4749
  var w;
4751
- const x = rt(b, r.value, c.key);
4752
- if (c.token = x, x)
4753
- for (const d in c.token) {
4754
- const p = (w = f.value) == null ? void 0 : w[b], m = (p == null ? void 0 : p[d]) || c.token[d];
4755
- c.token[d] = m;
4750
+ const C = rt(y, r.value, d.key);
4751
+ if (d.token = C, C)
4752
+ for (const c in d.token) {
4753
+ const v = (w = f.value) == null ? void 0 : w[y], m = (v == null ? void 0 : v[c]) || d.token[c];
4754
+ d.token[c] = m;
4756
4755
  }
4757
- return c;
4758
- }).filter((c) => c.token);
4756
+ return d;
4757
+ }).filter((d) => d.token);
4759
4758
  }
4760
4759
  const g = Ce({
4761
4760
  header: h("header"),
4762
4761
  sider: h("sider")
4763
4762
  });
4764
4763
  ae([() => {
4765
- var b, c;
4766
- return (c = (b = r.value) == null ? void 0 : b.layout) == null ? void 0 : c.header;
4764
+ var y, d;
4765
+ return (d = (y = r.value) == null ? void 0 : y.layout) == null ? void 0 : d.header;
4767
4766
  }, () => {
4768
- var b, c;
4769
- return (c = (b = r.value) == null ? void 0 : b.layout) == null ? void 0 : c.sider;
4767
+ var y, d;
4768
+ return (d = (y = r.value) == null ? void 0 : y.layout) == null ? void 0 : d.sider;
4770
4769
  }], () => {
4771
4770
  g.sider = h("sider"), g.header = h("header");
4772
4771
  }, {
4773
4772
  deep: 1
4774
4773
  });
4775
4774
  const u = R(() => {
4776
- var c;
4777
- const b = (c = g[a.value].find((x) => {
4775
+ var d;
4776
+ const y = (d = g[a.value].find((C) => {
4778
4777
  var w;
4779
- return x.key === ((w = f.value) == null ? void 0 : w.key);
4780
- })) == null ? void 0 : c.token;
4781
- return Object.keys(b || {}).map((x) => {
4782
- var d;
4778
+ return C.key === ((w = f.value) == null ? void 0 : w.key);
4779
+ })) == null ? void 0 : d.token;
4780
+ return Object.keys(y || {}).map((C) => {
4781
+ var c;
4783
4782
  return {
4784
- title: ((d = Ni.find((p) => p.key === x)) == null ? void 0 : d.name) || "",
4785
- key: x,
4786
- value: (b == null ? void 0 : b[x]) || ""
4783
+ title: ((c = Ni.find((v) => v.key === C)) == null ? void 0 : c.name) || "",
4784
+ key: C,
4785
+ value: (y == null ? void 0 : y[C]) || ""
4787
4786
  };
4788
4787
  });
4789
- }), y = (b, c) => {
4790
- var x;
4788
+ }), I = (y, d) => {
4789
+ var C;
4791
4790
  g[a.value] = g[a.value].map((w) => {
4792
- var d;
4793
- return w.key === ((d = f.value) == null ? void 0 : d.key) && (w.token[c] = b), w;
4794
- }), (x = e.onChange) == null || x.call(e, b, a.value, c);
4791
+ var c;
4792
+ return w.key === ((c = f.value) == null ? void 0 : c.key) && (w.token[d] = y), w;
4793
+ }), (C = e.onChange) == null || C.call(e, y, a.value, d);
4795
4794
  };
4796
4795
  return () => {
4797
- var c, x, w;
4798
- let b;
4796
+ var d, C, w;
4797
+ let y;
4799
4798
  return l(n("div", {
4800
4799
  class: [i, s.value]
4801
4800
  }, [n("h3", {
4802
4801
  class: [`${i}-title`, s.value]
4803
4802
  }, [X("主题编辑器"), n("div", {
4804
4803
  class: [`${i}-sub-title`, s.value]
4805
- }, [n("span", null, [(c = En.find((d) => d.key === e.theme)) == null ? void 0 : c.title]), n("span", {
4804
+ }, [n("span", null, [(d = En.find((c) => c.key === e.theme)) == null ? void 0 : d.title]), n("span", {
4806
4805
  style: {
4807
4806
  marginInline: "8px"
4808
4807
  }
4809
- }, [X("/")]), n("span", null, [(x = Kn.find((d) => {
4810
- var p;
4811
- return d.key === ((p = e.settingValue) == null ? void 0 : p.layout);
4812
- })) == null ? void 0 : x.title])])]), n("div", {
4808
+ }, [X("/")]), n("span", null, [(C = Kn.find((c) => {
4809
+ var v;
4810
+ return c.key === ((v = e.settingValue) == null ? void 0 : v.layout);
4811
+ })) == null ? void 0 : C.title])])]), n("div", {
4813
4812
  class: [`${i}-content`, s.value]
4814
4813
  }, [n(Me, {
4815
4814
  class: `${i}-list ${s.value}`.trim(),
4816
4815
  split: !1,
4817
4816
  size: "small",
4818
4817
  renderItem: ({
4819
- item: d
4818
+ item: c
4820
4819
  }) => n(Me.Item, {
4821
- actions: [d.action]
4820
+ actions: [c.action]
4822
4821
  }, {
4823
4822
  default: () => [n("span", {
4824
4823
  style: {
4825
- opacity: d.show ? 1 : 0.5
4824
+ opacity: c.show ? 1 : 0.5
4826
4825
  }
4827
- }, [d.title])]
4826
+ }, [c.title])]
4828
4827
  }),
4829
4828
  dataSource: [{
4830
4829
  title: "自定义主题色",
4831
4830
  action: n(Wt, {
4832
4831
  value: (w = e.settingValue) == null ? void 0 : w.primaryColor,
4833
4832
  size: "small",
4834
- onChangeComplete: (d) => e.onChange && e.onChange(d.toCssString(), "primaryColor")
4833
+ onChangeComplete: (c) => e.onChange && e.onChange(c.toCssString(), "primaryColor")
4835
4834
  }, null)
4836
4835
  }]
4837
4836
  }, null), n(wt, {
4838
4837
  activeKey: a.value,
4839
- onChange: (d) => o(d)
4840
- }, Ei(b = Ti.map((d) => n(na, {
4841
- key: d.key,
4842
- tab: d.title
4838
+ onChange: (c) => o(c)
4839
+ }, Ei(y = Ti.map((c) => n(na, {
4840
+ key: c.key,
4841
+ tab: c.title
4843
4842
  }, {
4844
4843
  default: () => [n(Me, {
4845
4844
  class: `${i}-list ${s.value}`.trim(),
4846
4845
  split: !1,
4847
4846
  size: "small",
4848
4847
  renderItem: ({
4849
- item: p
4848
+ item: v
4850
4849
  }) => n(Me.Item, {
4851
- actions: [p.action]
4850
+ actions: [v.action]
4852
4851
  }, {
4853
4852
  default: () => [n("span", {
4854
4853
  style: {
4855
- opacity: p.disabled ? 0.5 : 1
4854
+ opacity: v.disabled ? 0.5 : 1
4856
4855
  }
4857
- }, [p.title])]
4856
+ }, [v.title])]
4858
4857
  }),
4859
- dataSource: u.value.map((p) => ({
4860
- ...p,
4858
+ dataSource: u.value.map((v) => ({
4859
+ ...v,
4861
4860
  action: n(Wt, {
4862
- value: p.value,
4861
+ value: v.value,
4863
4862
  size: "small",
4864
- onChangeComplete: (m) => y(m.toCssString(), p.key)
4863
+ onChangeComplete: (m) => I(m.toCssString(), v.key)
4865
4864
  }, null)
4866
4865
  }))
4867
4866
  }, null)]
4868
- }))) ? b : {
4869
- default: () => [b]
4867
+ }))) ? y : {
4868
+ default: () => [y]
4870
4869
  })])]));
4871
4870
  };
4872
4871
  }
@@ -4922,7 +4921,7 @@ const {
4922
4921
  hashId: o
4923
4922
  } = ge("SettingsDrawOthers", [Wi], t);
4924
4923
  return () => {
4925
- var l, s, r, f, h, g, u, y, b, c, x, w, d, p;
4924
+ var l, s, r, f, h, g, u, I, y, d, C, w, c, v;
4926
4925
  let i;
4927
4926
  return a(n("div", {
4928
4927
  class: [t, o.value]
@@ -4954,8 +4953,8 @@ const {
4954
4953
  checked: !((s = (l = e.settingValue) == null ? void 0 : l.animate) != null && s.disabled),
4955
4954
  size: "small",
4956
4955
  onChange: (m) => {
4957
- var S;
4958
- return (S = e.onChange) == null ? void 0 : S.call(e, "animate", "disabled", !m);
4956
+ var x;
4957
+ return (x = e.onChange) == null ? void 0 : x.call(e, "animate", "disabled", !m);
4959
4958
  }
4960
4959
  }, null)
4961
4960
  }, {
@@ -4967,11 +4966,11 @@ const {
4967
4966
  width: "100px"
4968
4967
  },
4969
4968
  size: "small",
4970
- disabled: (y = (u = e.settingValue) == null ? void 0 : u.animate) == null ? void 0 : y.disabled,
4969
+ disabled: (I = (u = e.settingValue) == null ? void 0 : u.animate) == null ? void 0 : I.disabled,
4971
4970
  getPopupContainer: (m) => m && m.parentNode ? m.parentNode : m,
4972
4971
  onChange: (m) => {
4973
- var S;
4974
- return (S = e.onChange) == null ? void 0 : S.call(e, "animate", "name", m);
4972
+ var x;
4973
+ return (x = e.onChange) == null ? void 0 : x.call(e, "animate", "name", m);
4975
4974
  }
4976
4975
  }, Qt(i = Zt.map((m) => n(Qe.Option, {
4977
4976
  value: m.name
@@ -4982,9 +4981,9 @@ const {
4982
4981
  })
4983
4982
  }, {
4984
4983
  title: "动画方向",
4985
- disabled: (c = (b = e.settingValue) == null ? void 0 : b.animate) == null ? void 0 : c.disabled,
4984
+ disabled: (d = (y = e.settingValue) == null ? void 0 : y.animate) == null ? void 0 : d.disabled,
4986
4985
  action: n(Qe, {
4987
- value: (w = (x = e.settingValue) == null ? void 0 : x.animate) == null ? void 0 : w.direction,
4986
+ value: (w = (C = e.settingValue) == null ? void 0 : C.animate) == null ? void 0 : w.direction,
4988
4987
  style: {
4989
4988
  width: "100px"
4990
4989
  },
@@ -4992,22 +4991,22 @@ const {
4992
4991
  dropdownStyle: {
4993
4992
  minWidth: "120px"
4994
4993
  },
4995
- disabled: (p = (d = e.settingValue) == null ? void 0 : d.animate) == null ? void 0 : p.disabled,
4994
+ disabled: (v = (c = e.settingValue) == null ? void 0 : c.animate) == null ? void 0 : v.disabled,
4996
4995
  getPopupContainer: (m) => m && m.parentNode ? m.parentNode : m,
4997
4996
  onChange: (m) => {
4998
- var S;
4999
- return (S = e.onChange) == null ? void 0 : S.call(e, "animate", "direction", m);
4997
+ var x;
4998
+ return (x = e.onChange) == null ? void 0 : x.call(e, "animate", "direction", m);
5000
4999
  }
5001
5000
  }, {
5002
5001
  default: () => {
5003
5002
  var m;
5004
- return [(m = Zt.find((S) => {
5003
+ return [(m = Zt.find((x) => {
5005
5004
  var P, N;
5006
- return S.name === ((N = (P = e.settingValue) == null ? void 0 : P.animate) == null ? void 0 : N.name);
5007
- })) == null ? void 0 : m.directions.map((S) => n(Qe.Option, {
5008
- value: S
5009
- }, Qt(S) ? S : {
5010
- default: () => [S]
5005
+ return x.name === ((N = (P = e.settingValue) == null ? void 0 : P.animate) == null ? void 0 : N.name);
5006
+ })) == null ? void 0 : m.directions.map((x) => n(Qe.Option, {
5007
+ value: x
5008
+ }, Qt(x) ? x : {
5009
+ default: () => [x]
5011
5010
  }))];
5012
5011
  }
5013
5012
  })
@@ -5087,8 +5086,8 @@ const {
5087
5086
  }
5088
5087
  }), {
5089
5088
  innerDark: u,
5090
- isDark: y,
5091
- toggleMode: b
5089
+ isDark: I,
5090
+ toggleMode: y
5092
5091
  } = Nt(R(() => {
5093
5092
  var O;
5094
5093
  return Ve(e.dark) ? e.dark : (O = a == null ? void 0 : a.dark) == null ? void 0 : O.value;
@@ -5097,7 +5096,7 @@ const {
5097
5096
  var F, k, U;
5098
5097
  (F = e.onDarkChange) == null || F.call(e, O), (k = e == null ? void 0 : e["onUpdate:dark"]) == null || k.call(e, O), (U = a == null ? void 0 : a.onDarkChange) == null || U.call(a, O);
5099
5098
  }
5100
- }), [c, x] = xe(!1), [w, d] = xe(!1), p = R(() => e.storage ? Object.keys(l.value).length > 0 : !1), m = R(() => Jt(le(e.settings, xt))), [S, P] = De(() => Jt(le(e.settings, xt)), {
5099
+ }), [d, C] = xe(!1), [w, c] = xe(!1), v = R(() => e.storage ? Object.keys(l.value).length > 0 : !1), m = R(() => Jt(le(e.settings, xt))), [x, P] = De(() => Jt(le(e.settings, xt)), {
5101
5100
  value: m,
5102
5101
  onChange: (O) => {
5103
5102
  var F;
@@ -5105,28 +5104,28 @@ const {
5105
5104
  }
5106
5105
  }), N = R(() => {
5107
5106
  var O;
5108
- return Ve(e.dark) ? y.value : (O = t == null ? void 0 : t.dark) == null ? void 0 : O.value;
5107
+ return Ve(e.dark) ? I.value : (O = t == null ? void 0 : t.dark) == null ? void 0 : O.value;
5109
5108
  }), B = (O, F) => {
5110
5109
  zn({
5111
5110
  event: O,
5112
5111
  isDark: N,
5113
- toggle: b,
5112
+ toggle: y,
5114
5113
  value: F
5115
5114
  });
5116
5115
  };
5117
5116
  ae(() => e.storage, (O) => {
5118
- O && (p.value ? (Object.assign(i, {
5117
+ O && (v.value ? (Object.assign(i, {
5119
5118
  dark: u.value,
5120
- ...we(S.value)
5121
- }), va(Ie(l.value, "dark"), S.value) || P(Ie(l.value, "dark")), B(null, l.value.dark)) : l.value = {
5122
- ...S.value,
5119
+ ...we(x.value)
5120
+ }), va(Ie(l.value, "dark"), x.value) || P(Ie(l.value, "dark")), B(null, l.value.dark)) : l.value = {
5121
+ ...x.value,
5123
5122
  dark: u.value
5124
5123
  });
5125
5124
  }, {
5126
5125
  immediate: !0
5127
5126
  });
5128
- const z = R(() => e.colorList && it(e.colorList) ? e.colorList : []), $ = R(() => Go(ue(S))), {
5129
- copy: v,
5127
+ const z = R(() => e.colorList && it(e.colorList) ? e.colorList : []), $ = R(() => Go(ue(x))), {
5128
+ copy: b,
5130
5129
  copied: L,
5131
5130
  isSupported: A
5132
5131
  } = da();
@@ -5154,13 +5153,13 @@ const {
5154
5153
  const G = document.querySelector("body");
5155
5154
  G && (G.dataset.prosettingdrawer = F === !0 ? G.style.filter : G.dataset.prosettingdrawer || "none", F === !0 && (G.dataset.prosettingdrawer = G.style.filter), G.style.filter = F === !0 ? "invert(80%)" : G.dataset.prosettingdrawer || "none", F || delete G.dataset.prosettingdrawer);
5156
5155
  }
5157
- P(pe(ue(S), {
5156
+ P(pe(ue(x), {
5158
5157
  ...Vo(Ie(ee, U))
5159
5158
  }));
5160
5159
  }, E = (O) => {
5161
5160
  l.value.dark = O === "system" ? O : O === "dark", B(null, O === "system" ? O : O === "dark");
5162
5161
  }, ne = () => {
5163
- A.value && v(JSON.stringify(ue(S)));
5162
+ A.value && b(JSON.stringify(ue(x)));
5164
5163
  }, me = () => {
5165
5164
  P(Ie(we(i), "dark")), B(null, i.dark), l.value = we(i);
5166
5165
  };
@@ -5210,7 +5209,7 @@ const {
5210
5209
  hashId: r.value,
5211
5210
  prefixCls: o,
5212
5211
  list: En,
5213
- value: S.value.theme,
5212
+ value: x.value.theme,
5214
5213
  configType: "theme",
5215
5214
  key: "navTheme",
5216
5215
  onChange: (F, k) => j("theme", F, {
@@ -5224,7 +5223,7 @@ const {
5224
5223
  fontSize: "12px",
5225
5224
  marginLeft: "4px"
5226
5225
  },
5227
- onClick: () => x(!0)
5226
+ onClick: () => C(!0)
5228
5227
  }, [X("更多配置")])]),
5229
5228
  prefixCls: o
5230
5229
  }, {
@@ -5232,7 +5231,7 @@ const {
5232
5231
  hashId: r.value,
5233
5232
  prefixCls: o,
5234
5233
  colorList: z.value,
5235
- settingValue: S.value,
5234
+ settingValue: x.value,
5236
5235
  onChange: (F, k) => j(k || "primaryColor", F)
5237
5236
  }, null)]
5238
5237
  }), !e.themeOnly && n(J, null, [n(dt, null, null), n(We, {
@@ -5242,7 +5241,7 @@ const {
5242
5241
  }, {
5243
5242
  default: () => [n(qt, {
5244
5243
  prefixCls: o,
5245
- value: ue(S).layout,
5244
+ value: ue(x).layout,
5246
5245
  key: "layout",
5247
5246
  hashId: r.value,
5248
5247
  configType: "layout",
@@ -5255,7 +5254,7 @@ const {
5255
5254
  }) => n(Ze, {
5256
5255
  label: k,
5257
5256
  disabled: $.value[F],
5258
- value: S.value[F],
5257
+ value: x.value[F],
5259
5258
  prefixCls: o,
5260
5259
  hashId: r.value,
5261
5260
  valueKey: F,
@@ -5268,7 +5267,7 @@ const {
5268
5267
  fontSize: "12px",
5269
5268
  marginLeft: "4px"
5270
5269
  },
5271
- onClick: () => d(!0)
5270
+ onClick: () => c(!0)
5272
5271
  }, [X("更多配置")])])
5273
5272
  }, {
5274
5273
  default: () => [Di.map(({
@@ -5277,21 +5276,21 @@ const {
5277
5276
  }) => n(Ze, {
5278
5277
  label: k,
5279
5278
  disabled: ue($)[F],
5280
- value: ue(S)[F],
5279
+ value: ue(x)[F],
5281
5280
  prefixCls: o,
5282
5281
  hashId: r.value,
5283
5282
  valueKey: F,
5284
5283
  onChange: (U, ee) => j(U, ee)
5285
5284
  }, null)), e.weakmode && n(Ze, {
5286
5285
  label: "色弱模式",
5287
- value: ue(S).colorWeak,
5286
+ value: ue(x).colorWeak,
5288
5287
  prefixCls: o,
5289
5288
  hashId: r.value,
5290
5289
  valueKey: "colorWeak",
5291
5290
  onChange: (F, k) => j(F, k)
5292
5291
  }, null), e.showProgress && n(Ze, {
5293
5292
  label: "顶部进度条",
5294
- value: ue(S).showProgressBar,
5293
+ value: ue(x).showProgressBar,
5295
5294
  prefixCls: o,
5296
5295
  hashId: r.value,
5297
5296
  valueKey: "showProgressBar",
@@ -5325,15 +5324,15 @@ const {
5325
5324
  width: 320,
5326
5325
  closable: !1,
5327
5326
  placement: "right",
5328
- open: c.value,
5327
+ open: d.value,
5329
5328
  bodyStyle: {
5330
5329
  padding: 0
5331
5330
  },
5332
- onClose: () => x(!1)
5331
+ onClose: () => C(!1)
5333
5332
  }, {
5334
5333
  default: () => [n(Ki, {
5335
- theme: S.value.theme,
5336
- settingValue: S.value,
5334
+ theme: x.value.theme,
5335
+ settingValue: x.value,
5337
5336
  onChange: (F, k, U) => j(k || "primaryColor", F, {
5338
5337
  subKey: U
5339
5338
  })
@@ -5346,10 +5345,10 @@ const {
5346
5345
  bodyStyle: {
5347
5346
  padding: 0
5348
5347
  },
5349
- onClose: () => d(!1)
5348
+ onClose: () => c(!1)
5350
5349
  }, {
5351
5350
  default: () => [n(Ui, {
5352
- settingValue: S.value,
5351
+ settingValue: x.value,
5353
5352
  onChange: (F, k, U) => j(F, U, {
5354
5353
  subKey: k
5355
5354
  })
@@ -5358,7 +5357,7 @@ const {
5358
5357
  }));
5359
5358
  };
5360
5359
  }
5361
- }), Gi = new I("backInLeft", {
5360
+ }), Gi = new S("backInLeft", {
5362
5361
  "0%": {
5363
5362
  opacity: 0.7,
5364
5363
  transform: "translateX(-2000px) scale(0.7)"
@@ -5371,7 +5370,7 @@ const {
5371
5370
  opacity: 1,
5372
5371
  transform: "scale(1)"
5373
5372
  }
5374
- }), Yi = new I("backInRight", {
5373
+ }), Yi = new S("backInRight", {
5375
5374
  "0%": {
5376
5375
  opacity: 0.7,
5377
5376
  transform: "translateX(2000px) scale(0.7)"
@@ -5384,7 +5383,7 @@ const {
5384
5383
  opacity: 1,
5385
5384
  transform: "scale(1)"
5386
5385
  }
5387
- }), qi = new I("backInUp", {
5386
+ }), qi = new S("backInUp", {
5388
5387
  "0%": {
5389
5388
  opacity: 0.7,
5390
5389
  transform: "translateY(1200px) scale(0.7)"
@@ -5397,7 +5396,7 @@ const {
5397
5396
  opacity: 1,
5398
5397
  transform: "scale(1)"
5399
5398
  }
5400
- }), Qi = new I("backInDown", {
5399
+ }), Qi = new S("backInDown", {
5401
5400
  "0%": {
5402
5401
  opacity: 0.7,
5403
5402
  transform: "translateY(-1200px) scale(0.7)"
@@ -5410,7 +5409,7 @@ const {
5410
5409
  opacity: 1,
5411
5410
  transform: "scale(1)"
5412
5411
  }
5413
- }), Zi = new I("backOutLeft", {
5412
+ }), Zi = new S("backOutLeft", {
5414
5413
  "0%": {
5415
5414
  opacity: 1,
5416
5415
  transform: "scale(1)"
@@ -5423,7 +5422,7 @@ const {
5423
5422
  opacity: 0.7,
5424
5423
  transform: "translateX(-2000px) scale(0.7)"
5425
5424
  }
5426
- }), Ji = new I("backOutRight", {
5425
+ }), Ji = new S("backOutRight", {
5427
5426
  "0%": {
5428
5427
  opacity: 1,
5429
5428
  transform: "scale(1)"
@@ -5436,7 +5435,7 @@ const {
5436
5435
  opacity: 0.7,
5437
5436
  transform: "translateX(2000px) scale(0.7)"
5438
5437
  }
5439
- }), el = new I("backOutUp", {
5438
+ }), el = new S("backOutUp", {
5440
5439
  "0%": {
5441
5440
  opacity: 1,
5442
5441
  transform: "scale(1)"
@@ -5449,7 +5448,7 @@ const {
5449
5448
  opacity: 0.7,
5450
5449
  transform: "translateY(-700px) scale(0.7)"
5451
5450
  }
5452
- }), tl = new I("backOutDown", {
5451
+ }), tl = new S("backOutDown", {
5453
5452
  "0%": {
5454
5453
  opacity: 1,
5455
5454
  transform: "scale(1)"
@@ -5496,7 +5495,7 @@ const {
5496
5495
  animationFillMode: "both",
5497
5496
  animationName: tl
5498
5497
  }
5499
- }), ol = new I("bounceIn", {
5498
+ }), ol = new S("bounceIn", {
5500
5499
  "from,20%,40%,60%,80%,to": {
5501
5500
  animationTimingFunction: "cubic-bezier(0.215, 0.61, 0.355, 1)"
5502
5501
  },
@@ -5520,7 +5519,7 @@ const {
5520
5519
  opacity: 1,
5521
5520
  transform: "scale3d(1, 1, 1)"
5522
5521
  }
5523
- }), il = new I("bounceInLeft", {
5522
+ }), il = new S("bounceInLeft", {
5524
5523
  "from,60%,75%,90%,to": {
5525
5524
  animationTimingFunction: "cubic-bezier(0.215, 0.61, 0.355, 1)"
5526
5525
  },
@@ -5541,7 +5540,7 @@ const {
5541
5540
  to: {
5542
5541
  transform: "translate3d(0, 0, 0)"
5543
5542
  }
5544
- }), ll = new I("bounceInRight", {
5543
+ }), ll = new S("bounceInRight", {
5545
5544
  "from,60%,75%,90%,to": {
5546
5545
  animationTimingFunction: "cubic-bezier(0.215, 0.61, 0.355, 1)"
5547
5546
  },
@@ -5562,7 +5561,7 @@ const {
5562
5561
  to: {
5563
5562
  transform: "translate3d(0, 0, 0)"
5564
5563
  }
5565
- }), rl = new I("bounceInDown", {
5564
+ }), rl = new S("bounceInDown", {
5566
5565
  "from,60%,75%,90%,to": {
5567
5566
  animationTimingFunction: "cubic-bezier(0.215, 0.61, 0.355, 1)"
5568
5567
  },
@@ -5583,7 +5582,7 @@ const {
5583
5582
  to: {
5584
5583
  transform: "translate3d(0, 0, 0)"
5585
5584
  }
5586
- }), sl = new I("bounceInUp", {
5585
+ }), sl = new S("bounceInUp", {
5587
5586
  "from,60%,75%,90%,to": {
5588
5587
  animationTimingFunction: "cubic-bezier(0.215, 0.61, 0.355, 1)"
5589
5588
  },
@@ -5604,7 +5603,7 @@ const {
5604
5603
  to: {
5605
5604
  transform: "translate3d(0, 0, 0)"
5606
5605
  }
5607
- }), ul = new I("bounceOut", {
5606
+ }), ul = new S("bounceOut", {
5608
5607
  "20%": {
5609
5608
  transform: "scale3d(0.9, 0.9, 0.9)"
5610
5609
  },
@@ -5618,7 +5617,7 @@ const {
5618
5617
  opacity: 0,
5619
5618
  transform: "scale3d(0.3, 0.3, 0.3)"
5620
5619
  }
5621
- }), cl = new I("bounceOutLeft", {
5620
+ }), cl = new S("bounceOutLeft", {
5622
5621
  "20%": {
5623
5622
  opacity: 1,
5624
5623
  transform: "translate3d(20px, 0, 0) scaleX(0.9)"
@@ -5627,7 +5626,7 @@ const {
5627
5626
  opacity: 0,
5628
5627
  transform: "translate3d(-2000px, 0, 0) scaleX(2)"
5629
5628
  }
5630
- }), dl = new I("bounceOutRight", {
5629
+ }), dl = new S("bounceOutRight", {
5631
5630
  "20%": {
5632
5631
  opacity: 1,
5633
5632
  transform: "translate3d(-20px, 0, 0) scaleX(0.9)"
@@ -5636,7 +5635,7 @@ const {
5636
5635
  opacity: 0,
5637
5636
  transform: "translate3d(2000px, 0, 0) scaleX(2)"
5638
5637
  }
5639
- }), ml = new I("bounceOutDown", {
5638
+ }), ml = new S("bounceOutDown", {
5640
5639
  "20%": {
5641
5640
  transform: "translate3d(0, 10px, 0) scaleY(0.985)"
5642
5641
  },
@@ -5648,7 +5647,7 @@ const {
5648
5647
  opacity: 0,
5649
5648
  transform: "translate3d(0, 2000px, 0) scaleY(3)"
5650
5649
  }
5651
- }), fl = new I("bounceOutUp", {
5650
+ }), fl = new S("bounceOutUp", {
5652
5651
  "20%": {
5653
5652
  transform: "translate3d(0, -10px, 0) scaleY(0.985)"
5654
5653
  },
@@ -5704,14 +5703,14 @@ const {
5704
5703
  animationFillMode: "both",
5705
5704
  animationName: fl
5706
5705
  }
5707
- }), yl = new I("fadeIn", {
5706
+ }), yl = new S("fadeIn", {
5708
5707
  from: {
5709
5708
  opacity: 0
5710
5709
  },
5711
5710
  to: {
5712
5711
  opacity: 1
5713
5712
  }
5714
- }), bl = new I("fadeInLeft", {
5713
+ }), bl = new S("fadeInLeft", {
5715
5714
  from: {
5716
5715
  opacity: 0,
5717
5716
  transform: "translate3d(-100%, 0, 0)"
@@ -5720,7 +5719,7 @@ const {
5720
5719
  opacity: 1,
5721
5720
  transform: "translate3d(0, 0, 0)"
5722
5721
  }
5723
- }), vl = new I("fadeInRight", {
5722
+ }), vl = new S("fadeInRight", {
5724
5723
  from: {
5725
5724
  opacity: 0,
5726
5725
  transform: "translate3d(100%, 0, 0)"
@@ -5729,7 +5728,7 @@ const {
5729
5728
  opacity: 1,
5730
5729
  transform: "translate3d(0, 0, 0)"
5731
5730
  }
5732
- }), pl = new I("fadeInDown", {
5731
+ }), pl = new S("fadeInDown", {
5733
5732
  from: {
5734
5733
  opacity: 0,
5735
5734
  transform: "translate3d(0, -100%, 0)"
@@ -5738,7 +5737,7 @@ const {
5738
5737
  opacity: 1,
5739
5738
  transform: "translate3d(0, 0, 0)"
5740
5739
  }
5741
- }), Cl = new I("fadeInUp", {
5740
+ }), Cl = new S("fadeInUp", {
5742
5741
  from: {
5743
5742
  opacity: 0,
5744
5743
  transform: "translate3d(0, 100%, 0)"
@@ -5747,7 +5746,7 @@ const {
5747
5746
  opacity: 1,
5748
5747
  transform: "translate3d(0, 0, 0)"
5749
5748
  }
5750
- }), xl = new I("fadeInDownBig", {
5749
+ }), xl = new S("fadeInDownBig", {
5751
5750
  from: {
5752
5751
  opacity: 0,
5753
5752
  transform: "translate3d(0, -2000px, 0)"
@@ -5756,7 +5755,7 @@ const {
5756
5755
  opacity: 1,
5757
5756
  transform: "translate3d(0, 0, 0)"
5758
5757
  }
5759
- }), Sl = new I("fadeInUpBig", {
5758
+ }), Sl = new S("fadeInUpBig", {
5760
5759
  from: {
5761
5760
  opacity: 0,
5762
5761
  transform: "translate3d(0, 2000px, 0)"
@@ -5765,7 +5764,7 @@ const {
5765
5764
  opacity: 1,
5766
5765
  transform: "translate3d(0, 0, 0)"
5767
5766
  }
5768
- }), Il = new I("fadeInLeftBig", {
5767
+ }), Il = new S("fadeInLeftBig", {
5769
5768
  from: {
5770
5769
  opacity: 0,
5771
5770
  transform: "translate3d(-2000px, 0, 0)"
@@ -5774,7 +5773,7 @@ const {
5774
5773
  opacity: 1,
5775
5774
  transform: "translate3d(0, 0, 0)"
5776
5775
  }
5777
- }), wl = new I("fadeInRightBig", {
5776
+ }), wl = new S("fadeInRightBig", {
5778
5777
  from: {
5779
5778
  opacity: 0,
5780
5779
  transform: "translate3d(2000px, 0, 0)"
@@ -5783,7 +5782,7 @@ const {
5783
5782
  opacity: 1,
5784
5783
  transform: "translate3d(0, 0, 0)"
5785
5784
  }
5786
- }), Rl = new I("fadeInTopLeft", {
5785
+ }), Rl = new S("fadeInTopLeft", {
5787
5786
  from: {
5788
5787
  opacity: 0,
5789
5788
  transform: "translate3d(-100%, -100%, 0)"
@@ -5792,7 +5791,7 @@ const {
5792
5791
  opacity: 1,
5793
5792
  transform: "translate3d(0, 0, 0)"
5794
5793
  }
5795
- }), $l = new I("fadeInBottomRight", {
5794
+ }), $l = new S("fadeInBottomRight", {
5796
5795
  from: {
5797
5796
  opacity: 0,
5798
5797
  transform: "translate3d(100%, 100%, 0)"
@@ -5801,7 +5800,7 @@ const {
5801
5800
  opacity: 1,
5802
5801
  transform: "translate3d(0, 0, 0)"
5803
5802
  }
5804
- }), Bl = new I("fadeInTopRight", {
5803
+ }), Bl = new S("fadeInTopRight", {
5805
5804
  from: {
5806
5805
  opacity: 0,
5807
5806
  transform: "translate3d(100%, -100%, 0)"
@@ -5810,7 +5809,7 @@ const {
5810
5809
  opacity: 1,
5811
5810
  transform: "translate3d(0, 0, 0)"
5812
5811
  }
5813
- }), Ml = new I("fadeInBottomLeft", {
5812
+ }), Ml = new S("fadeInBottomLeft", {
5814
5813
  from: {
5815
5814
  opacity: 0,
5816
5815
  transform: "translate3d(-100%, 100%, 0)"
@@ -5819,14 +5818,14 @@ const {
5819
5818
  opacity: 1,
5820
5819
  transform: "translate3d(0, 0, 0)"
5821
5820
  }
5822
- }), Ll = new I("fadeOut", {
5821
+ }), Ll = new S("fadeOut", {
5823
5822
  from: {
5824
5823
  opacity: 1
5825
5824
  },
5826
5825
  to: {
5827
5826
  opacity: 0
5828
5827
  }
5829
- }), Ol = new I("fadeOutLeft", {
5828
+ }), Ol = new S("fadeOutLeft", {
5830
5829
  from: {
5831
5830
  opacity: 1
5832
5831
  },
@@ -5834,7 +5833,7 @@ const {
5834
5833
  opacity: 0,
5835
5834
  transform: "translate3d(-100%, 0, 0)"
5836
5835
  }
5837
- }), Fl = new I("fadeOutRight", {
5836
+ }), Fl = new S("fadeOutRight", {
5838
5837
  from: {
5839
5838
  opacity: 1
5840
5839
  },
@@ -5842,7 +5841,7 @@ const {
5842
5841
  opacity: 0,
5843
5842
  transform: "translate3d(100%, 0, 0)"
5844
5843
  }
5845
- }), kl = new I("fadeOutDown", {
5844
+ }), kl = new S("fadeOutDown", {
5846
5845
  from: {
5847
5846
  opacity: 1
5848
5847
  },
@@ -5850,7 +5849,7 @@ const {
5850
5849
  opacity: 0,
5851
5850
  transform: "translate3d(0, 100%, 0)"
5852
5851
  }
5853
- }), Pl = new I("fadeOutUp", {
5852
+ }), Pl = new S("fadeOutUp", {
5854
5853
  from: {
5855
5854
  opacity: 1
5856
5855
  },
@@ -5858,7 +5857,7 @@ const {
5858
5857
  opacity: 0,
5859
5858
  transform: "translate3d(0, -100%, 0)"
5860
5859
  }
5861
- }), Tl = new I("fadeOutDownBig", {
5860
+ }), Tl = new S("fadeOutDownBig", {
5862
5861
  from: {
5863
5862
  opacity: 1
5864
5863
  },
@@ -5866,7 +5865,7 @@ const {
5866
5865
  opacity: 0,
5867
5866
  transform: "translate3d(0, 2000px, 0)"
5868
5867
  }
5869
- }), Nl = new I("fadeOutUpBig", {
5868
+ }), Nl = new S("fadeOutUpBig", {
5870
5869
  from: {
5871
5870
  opacity: 1
5872
5871
  },
@@ -5874,7 +5873,7 @@ const {
5874
5873
  opacity: 0,
5875
5874
  transform: "translate3d(0, -2000px, 0)"
5876
5875
  }
5877
- }), zl = new I("fadeOutLeftBig", {
5876
+ }), zl = new S("fadeOutLeftBig", {
5878
5877
  from: {
5879
5878
  opacity: 1
5880
5879
  },
@@ -5882,7 +5881,7 @@ const {
5882
5881
  opacity: 0,
5883
5882
  transform: "translate3d(-2000px, 0, 0)"
5884
5883
  }
5885
- }), Dl = new I("fadeOutRightBig", {
5884
+ }), Dl = new S("fadeOutRightBig", {
5886
5885
  from: {
5887
5886
  opacity: 1
5888
5887
  },
@@ -5890,7 +5889,7 @@ const {
5890
5889
  opacity: 0,
5891
5890
  transform: "translate3d(2000px, 0, 0)"
5892
5891
  }
5893
- }), Al = new I("fadeOutTopLeft", {
5892
+ }), Al = new S("fadeOutTopLeft", {
5894
5893
  from: {
5895
5894
  opacity: 1,
5896
5895
  transform: "translate3d(0, 0, 0)"
@@ -5899,7 +5898,7 @@ const {
5899
5898
  opacity: 0,
5900
5899
  transform: "translate3d(-100%, -100%, 0)"
5901
5900
  }
5902
- }), Hl = new I("fadeOutBottomRight", {
5901
+ }), Hl = new S("fadeOutBottomRight", {
5903
5902
  from: {
5904
5903
  opacity: 1,
5905
5904
  transform: "translate3d(0, 0, 0)"
@@ -5908,7 +5907,7 @@ const {
5908
5907
  opacity: 0,
5909
5908
  transform: "translate3d(100%, 100%, 0)"
5910
5909
  }
5911
- }), jl = new I("fadeOutTopRight", {
5910
+ }), jl = new S("fadeOutTopRight", {
5912
5911
  from: {
5913
5912
  opacity: 1,
5914
5913
  transform: "translate3d(0, 0, 0)"
@@ -5917,7 +5916,7 @@ const {
5917
5916
  opacity: 0,
5918
5917
  transform: "translate3d(100%, -100%, 0)"
5919
5918
  }
5920
- }), El = new I("fadeOutBottomLeft", {
5919
+ }), El = new S("fadeOutBottomLeft", {
5921
5920
  from: {
5922
5921
  opacity: 1,
5923
5922
  transform: "translate3d(0, 0, 0)"
@@ -6032,7 +6031,7 @@ const {
6032
6031
  animationFillMode: "both",
6033
6032
  animationName: El
6034
6033
  }
6035
- }), Ul = new I("flipInX", {
6034
+ }), Ul = new S("flipInX", {
6036
6035
  from: {
6037
6036
  opacity: 0,
6038
6037
  animationTimingFunction: "ease-in",
@@ -6052,7 +6051,7 @@ const {
6052
6051
  to: {
6053
6052
  transform: "perspective(400px)"
6054
6053
  }
6055
- }), _l = new I("flipInY", {
6054
+ }), _l = new S("flipInY", {
6056
6055
  from: {
6057
6056
  opacity: 0,
6058
6057
  animationTimingFunction: "ease-in",
@@ -6072,7 +6071,7 @@ const {
6072
6071
  to: {
6073
6072
  transform: "perspective(400px)"
6074
6073
  }
6075
- }), Xl = new I("flipOutX", {
6074
+ }), Xl = new S("flipOutX", {
6076
6075
  from: {
6077
6076
  transform: "perspective(400px)"
6078
6077
  },
@@ -6084,7 +6083,7 @@ const {
6084
6083
  opacity: 0,
6085
6084
  transform: "perspective(400px) rotate3d(1, 0, 0, 90deg)"
6086
6085
  }
6087
- }), Vl = new I("flipOutY", {
6086
+ }), Vl = new S("flipOutY", {
6088
6087
  from: {
6089
6088
  transform: "perspective(400px)"
6090
6089
  },
@@ -6120,7 +6119,7 @@ const {
6120
6119
  animationDuration: `${0.3 * 0.75}s !important`,
6121
6120
  animationName: Vl
6122
6121
  }
6123
- }), ql = new I("lightSpeedInLeft", {
6122
+ }), ql = new S("lightSpeedInLeft", {
6124
6123
  from: {
6125
6124
  opacity: 0,
6126
6125
  transform: "translate3d(-100%, 0, 0) skewX(30deg)"
@@ -6135,7 +6134,7 @@ const {
6135
6134
  to: {
6136
6135
  transform: "translate3d(0, 0, 0)"
6137
6136
  }
6138
- }), Ql = new I("lightSpeedInRight", {
6137
+ }), Ql = new S("lightSpeedInRight", {
6139
6138
  from: {
6140
6139
  opacity: 0,
6141
6140
  transform: "translate3d(100%, 0, 0) skewX(-30deg)"
@@ -6150,7 +6149,7 @@ const {
6150
6149
  to: {
6151
6150
  transform: "translate3d(0, 0, 0)"
6152
6151
  }
6153
- }), Zl = new I("lightSpeedOutLeft", {
6152
+ }), Zl = new S("lightSpeedOutLeft", {
6154
6153
  from: {
6155
6154
  opacity: 1
6156
6155
  },
@@ -6158,7 +6157,7 @@ const {
6158
6157
  opacity: 0,
6159
6158
  transform: "translate3d(-100%, 0, 0) skewX(-30deg)"
6160
6159
  }
6161
- }), Jl = new I("lightSpeedOutRight", {
6160
+ }), Jl = new S("lightSpeedOutRight", {
6162
6161
  from: {
6163
6162
  opacity: 1
6164
6163
  },
@@ -6188,7 +6187,7 @@ const {
6188
6187
  animationTimingFunction: "ease-in",
6189
6188
  animationName: Jl
6190
6189
  }
6191
- }), nr = new I("rotateIn", {
6190
+ }), nr = new S("rotateIn", {
6192
6191
  from: {
6193
6192
  opacity: 0,
6194
6193
  transform: "rotate3d(0, 0, 1, -200deg)"
@@ -6197,7 +6196,7 @@ const {
6197
6196
  opacity: 1,
6198
6197
  transform: "translate3d(0, 0, 0)"
6199
6198
  }
6200
- }), ar = new I("rotateInDownLeft", {
6199
+ }), ar = new S("rotateInDownLeft", {
6201
6200
  from: {
6202
6201
  opacity: 0,
6203
6202
  transform: "rotate3d(0, 0, 1, -45deg)"
@@ -6206,7 +6205,7 @@ const {
6206
6205
  opacity: 1,
6207
6206
  transform: "translate3d(0, 0, 0)"
6208
6207
  }
6209
- }), or = new I("rotateInDownRight", {
6208
+ }), or = new S("rotateInDownRight", {
6210
6209
  from: {
6211
6210
  opacity: 0,
6212
6211
  transform: "rotate3d(0, 0, 1, 45deg)"
@@ -6215,7 +6214,7 @@ const {
6215
6214
  opacity: 1,
6216
6215
  transform: "translate3d(0, 0, 0)"
6217
6216
  }
6218
- }), ir = new I("rotateInUpLeft", {
6217
+ }), ir = new S("rotateInUpLeft", {
6219
6218
  from: {
6220
6219
  opacity: 0,
6221
6220
  transform: "rotate3d(0, 0, 1, 45deg)"
@@ -6224,7 +6223,7 @@ const {
6224
6223
  opacity: 1,
6225
6224
  transform: "translate3d(0, 0, 0)"
6226
6225
  }
6227
- }), lr = new I("rotateInUpRight", {
6226
+ }), lr = new S("rotateInUpRight", {
6228
6227
  from: {
6229
6228
  opacity: 0,
6230
6229
  transform: "rotate3d(0, 0, 1, -90deg)"
@@ -6233,7 +6232,7 @@ const {
6233
6232
  opacity: 1,
6234
6233
  transform: "translate3d(0, 0, 0)"
6235
6234
  }
6236
- }), rr = new I("rotateOut", {
6235
+ }), rr = new S("rotateOut", {
6237
6236
  from: {
6238
6237
  opacity: 1
6239
6238
  },
@@ -6241,7 +6240,7 @@ const {
6241
6240
  opacity: 0,
6242
6241
  transform: "rotate3d(0, 0, 1, 200deg)"
6243
6242
  }
6244
- }), sr = new I("rotateOutDownLeft", {
6243
+ }), sr = new S("rotateOutDownLeft", {
6245
6244
  from: {
6246
6245
  opacity: 1
6247
6246
  },
@@ -6249,7 +6248,7 @@ const {
6249
6248
  opacity: 0,
6250
6249
  transform: "rotate3d(0, 0, 1, 45deg)"
6251
6250
  }
6252
- }), ur = new I("rotateOutDownRight", {
6251
+ }), ur = new S("rotateOutDownRight", {
6253
6252
  from: {
6254
6253
  opacity: 1
6255
6254
  },
@@ -6257,7 +6256,7 @@ const {
6257
6256
  opacity: 0,
6258
6257
  transform: "rotate3d(0, 0, 1, -45deg)"
6259
6258
  }
6260
- }), cr = new I("rotateOutUpLeft", {
6259
+ }), cr = new S("rotateOutUpLeft", {
6261
6260
  from: {
6262
6261
  opacity: 1
6263
6262
  },
@@ -6265,7 +6264,7 @@ const {
6265
6264
  opacity: 0,
6266
6265
  transform: "rotate3d(0, 0, 1, -45deg)"
6267
6266
  }
6268
- }), dr = new I("rotateOutUpRight", {
6267
+ }), dr = new S("rotateOutUpRight", {
6269
6268
  from: {
6270
6269
  opacity: 1
6271
6270
  },
@@ -6325,7 +6324,7 @@ const {
6325
6324
  transformOrigin: "right bottom",
6326
6325
  animationName: dr
6327
6326
  }
6328
- }), hr = new I("rollIn", {
6327
+ }), hr = new S("rollIn", {
6329
6328
  from: {
6330
6329
  opacity: 0,
6331
6330
  transform: "translate3d(-100%, 0, 0) rotate3d(0, 0, 1, -120deg)"
@@ -6334,7 +6333,7 @@ const {
6334
6333
  opacity: 1,
6335
6334
  transform: "translate3d(0, 0, 0)"
6336
6335
  }
6337
- }), gr = new I("rollOut", {
6336
+ }), gr = new S("rollOut", {
6338
6337
  from: {
6339
6338
  opacity: 1
6340
6339
  },
@@ -6352,7 +6351,7 @@ const {
6352
6351
  animationFillMode: "both",
6353
6352
  animationName: gr
6354
6353
  }
6355
- }), vr = new I("zoomIn", {
6354
+ }), vr = new S("zoomIn", {
6356
6355
  from: {
6357
6356
  opacity: 0,
6358
6357
  transform: "scale3d(0.3, 0.3, 0.3)"
@@ -6360,7 +6359,7 @@ const {
6360
6359
  "50%": {
6361
6360
  opacity: 1
6362
6361
  }
6363
- }), pr = new I("zoomInDown", {
6362
+ }), pr = new S("zoomInDown", {
6364
6363
  from: {
6365
6364
  opacity: 0,
6366
6365
  transform: "scale3d(0.1, 0.1, 0.1) translate3d(0, -1000px, 0)",
@@ -6371,7 +6370,7 @@ const {
6371
6370
  transform: "scale3d(0.475, 0.475, 0.475) translate3d(0, 60px, 0)",
6372
6371
  animationTimingFunction: "cubic-bezier(0.175, 0.885, 0.32, 1)"
6373
6372
  }
6374
- }), Cr = new I("zoomInLeft", {
6373
+ }), Cr = new S("zoomInLeft", {
6375
6374
  from: {
6376
6375
  opacity: 0,
6377
6376
  transform: "scale3d(0.1, 0.1, 0.1) translate3d(-1000px, 0, 0)",
@@ -6382,7 +6381,7 @@ const {
6382
6381
  transform: "scale3d(0.475, 0.475, 0.475) translate3d(10px, 0, 0)",
6383
6382
  animationTimingFunction: "cubic-bezier(0.175, 0.885, 0.32, 1)"
6384
6383
  }
6385
- }), xr = new I("zoomInRight", {
6384
+ }), xr = new S("zoomInRight", {
6386
6385
  from: {
6387
6386
  opacity: 0,
6388
6387
  transform: "scale3d(0.1, 0.1, 0.1) translate3d(1000px, 0, 0)",
@@ -6393,7 +6392,7 @@ const {
6393
6392
  transform: "scale3d(0.475, 0.475, 0.475) translate3d(-10px, 0, 0)",
6394
6393
  animationTimingFunction: "cubic-bezier(0.175, 0.885, 0.32, 1)"
6395
6394
  }
6396
- }), Sr = new I("zoomInUp", {
6395
+ }), Sr = new S("zoomInUp", {
6397
6396
  from: {
6398
6397
  opacity: 0,
6399
6398
  transform: "scale3d(0.1, 0.1, 0.1) translate3d(0, 1000px, 0)",
@@ -6404,7 +6403,7 @@ const {
6404
6403
  transform: "scale3d(0.475, 0.475, 0.475) translate3d(0, -60px, 0)",
6405
6404
  animationTimingFunction: "cubic-bezier(0.175, 0.885, 0.32, 1)"
6406
6405
  }
6407
- }), Ir = new I("zoomOut", {
6406
+ }), Ir = new S("zoomOut", {
6408
6407
  from: {
6409
6408
  opacity: 1
6410
6409
  },
@@ -6415,7 +6414,7 @@ const {
6415
6414
  to: {
6416
6415
  opacity: 0
6417
6416
  }
6418
- }), wr = new I("zoomOutDown", {
6417
+ }), wr = new S("zoomOutDown", {
6419
6418
  "40%": {
6420
6419
  opacity: 1,
6421
6420
  transform: "scale3d(0.475, 0.475, 0.475) translate3d(0, -60px, 0)",
@@ -6426,7 +6425,7 @@ const {
6426
6425
  transform: "scale3d(0.1, 0.1, 0.1) translate3d(0, 2000px, 0)",
6427
6426
  animationTimingFunction: "cubic-bezier(0.175, 0.885, 0.32, 1)"
6428
6427
  }
6429
- }), Rr = new I("zoomOutLeft", {
6428
+ }), Rr = new S("zoomOutLeft", {
6430
6429
  "40%": {
6431
6430
  opacity: 1,
6432
6431
  transform: "scale3d(0.475, 0.475, 0.475) translate3d(42px, 0, 0)"
@@ -6435,7 +6434,7 @@ const {
6435
6434
  opacity: 0,
6436
6435
  transform: "scale(0.1) translate3d(-2000px, 0, 0)"
6437
6436
  }
6438
- }), $r = new I("zoomOutRight", {
6437
+ }), $r = new S("zoomOutRight", {
6439
6438
  "40%": {
6440
6439
  opacity: 1,
6441
6440
  transform: "scale3d(0.475, 0.475, 0.475) translate3d(-42px, 0, 0)"
@@ -6444,7 +6443,7 @@ const {
6444
6443
  opacity: 0,
6445
6444
  transform: "scale(0.1) translate3d(2000px, 0, 0)"
6446
6445
  }
6447
- }), Br = new I("zoomOutUp", {
6446
+ }), Br = new S("zoomOutUp", {
6448
6447
  "40%": {
6449
6448
  opacity: 1,
6450
6449
  transform: "scale3d(0.475, 0.475, 0.475) translate3d(0, 60px, 0)",
@@ -6501,7 +6500,7 @@ const {
6501
6500
  transformOrigin: "center bottom",
6502
6501
  animationName: Br
6503
6502
  }
6504
- }), Or = new I("slideInDown", {
6503
+ }), Or = new S("slideInDown", {
6505
6504
  from: {
6506
6505
  transform: "translate3d(0, -100%, 0)",
6507
6506
  visibility: "visible"
@@ -6509,7 +6508,7 @@ const {
6509
6508
  to: {
6510
6509
  transform: "translate3d(0, 0, 0)"
6511
6510
  }
6512
- }), Fr = new I("slideInLeft", {
6511
+ }), Fr = new S("slideInLeft", {
6513
6512
  from: {
6514
6513
  transform: "translate3d(-100%, 0, 0)",
6515
6514
  visibility: "visible"
@@ -6517,7 +6516,7 @@ const {
6517
6516
  to: {
6518
6517
  transform: "translate3d(0, 0, 0)"
6519
6518
  }
6520
- }), kr = new I("slideInRight", {
6519
+ }), kr = new S("slideInRight", {
6521
6520
  from: {
6522
6521
  transform: "translate3d(100%, 0, 0)",
6523
6522
  visibility: "visible"
@@ -6525,7 +6524,7 @@ const {
6525
6524
  to: {
6526
6525
  transform: "translate3d(0, 0, 0)"
6527
6526
  }
6528
- }), Pr = new I("slideInUp", {
6527
+ }), Pr = new S("slideInUp", {
6529
6528
  from: {
6530
6529
  transform: "translate3d(0, 100%, 0)",
6531
6530
  visibility: "visible"
@@ -6533,7 +6532,7 @@ const {
6533
6532
  to: {
6534
6533
  transform: "translate3d(0, 0, 0)"
6535
6534
  }
6536
- }), Tr = new I("slideOutDown", {
6535
+ }), Tr = new S("slideOutDown", {
6537
6536
  from: {
6538
6537
  transform: "translate3d(0, 0, 0)"
6539
6538
  },
@@ -6541,7 +6540,7 @@ const {
6541
6540
  transform: "translate3d(0, 100%, 0)",
6542
6541
  visibility: "hidden"
6543
6542
  }
6544
- }), Nr = new I("slideOutLeft", {
6543
+ }), Nr = new S("slideOutLeft", {
6545
6544
  from: {
6546
6545
  transform: "translate3d(0, 0, 0)"
6547
6546
  },
@@ -6549,7 +6548,7 @@ const {
6549
6548
  transform: "translate3d(-100%, 0, 0)",
6550
6549
  visibility: "hidden"
6551
6550
  }
6552
- }), zr = new I("slideOutRight", {
6551
+ }), zr = new S("slideOutRight", {
6553
6552
  from: {
6554
6553
  transform: "translate3d(0, 0, 0)"
6555
6554
  },
@@ -6557,7 +6556,7 @@ const {
6557
6556
  transform: "translate3d(100%, 0, 0)",
6558
6557
  visibility: "hidden"
6559
6558
  }
6560
- }), Dr = new I("slideOutUp", {
6559
+ }), Dr = new S("slideOutUp", {
6561
6560
  from: {
6562
6561
  transform: "translate3d(0, 0, 0)"
6563
6562
  },
@@ -6668,13 +6667,13 @@ const ys = /* @__PURE__ */ K({
6668
6667
  let u = g.indexOf(h);
6669
6668
  return u = u % 2 === 1 ? u - 1 : u + 1, g[u];
6670
6669
  }, s = (h) => {
6671
- const g = Tt.preset.find((b) => e.name === b.name);
6670
+ const g = Tt.preset.find((y) => e.name === y.name);
6672
6671
  if (g === void 0)
6673
6672
  return "";
6674
6673
  let u = "";
6675
- e.direction === void 0 ? u = g.directions[0] : u = g.directions.find((b) => b === e.direction) || "", u = u === void 0 || u === "default" ? "" : u, u !== "" && (u = h && e.reverse ? l(u, g.directions) : u, u = u[0].toUpperCase() + u.substring(1));
6676
- const y = h ? "Out" : "In";
6677
- return g.name + y + u;
6674
+ e.direction === void 0 ? u = g.directions[0] : u = g.directions.find((y) => y === e.direction) || "", u = u === void 0 || u === "default" ? "" : u, u !== "" && (u = h && e.reverse ? l(u, g.directions) : u, u = u[0].toUpperCase() + u.substring(1));
6675
+ const I = h ? "Out" : "In";
6676
+ return g.name + I + u;
6678
6677
  }, r = R(() => [s(!1), `${a}-enter`, i.value].join(" ")), f = R(() => [s(!0), `${a}-leave`, i.value].join(" "));
6679
6678
  return () => {
6680
6679
  var h;