@gx-design-vue/pro-layout 0.1.0-beta.57 → 0.1.0-beta.59

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.
Files changed (33) hide show
  1. package/dist/Context.d.ts +5 -3
  2. package/dist/PageLoading.d.ts +2 -2
  3. package/dist/ProLayout.d.ts +835 -9
  4. package/dist/components/GlobalFooter/index.d.ts +4 -4
  5. package/dist/components/GlobalHeader/DefaultHeader.d.ts +5 -5
  6. package/dist/components/GlobalHeader/index.d.ts +8 -8
  7. package/dist/components/GlobalHeader/props.d.ts +1 -1
  8. package/dist/components/GlobalHeader/{style/globalHeader.d.ts → style.d.ts} +1 -1
  9. package/dist/components/LogoContent/index.d.ts +7 -7
  10. package/dist/components/LogoContent/props.d.ts +1 -1
  11. package/dist/components/LogoContent/style.d.ts +6 -3
  12. package/dist/components/MultiTab/index.d.ts +4 -4
  13. package/dist/components/PageContainer/PageHeader.d.ts +4 -4
  14. package/dist/components/PageContainer/index.d.ts +4 -4
  15. package/dist/components/PageTranstion/index.d.ts +4 -4
  16. package/dist/components/SettingDrawer/BlockCheckbox.d.ts +5 -5
  17. package/dist/components/SettingDrawer/OthersChange.d.ts +4 -4
  18. package/dist/components/SettingDrawer/RegionalChange.d.ts +4 -4
  19. package/dist/components/SettingDrawer/ThemeColor.d.ts +4 -4
  20. package/dist/components/SettingDrawer/ThemeEditor.d.ts +3 -3
  21. package/dist/components/SettingDrawer/index.d.ts +5 -5
  22. package/dist/components/SettingDrawer/utils/config.d.ts +4 -0
  23. package/dist/components/SiderMenu/BaseMenu.d.ts +5 -5
  24. package/dist/components/SiderMenu/SiderMenu.d.ts +5 -5
  25. package/dist/components/SiderMenu/index.d.ts +5 -5
  26. package/dist/defaultSettings.d.ts +1 -1
  27. package/dist/pro-layout.js +1418 -1411
  28. package/dist/pro-layout.umd.cjs +1 -1
  29. package/dist/props.d.ts +1 -1
  30. package/dist/utils/coverToNewToken.d.ts +9 -3
  31. package/dist/utils/index.d.ts +1 -1
  32. package/package.json +2 -2
  33. package/dist/components/GlobalHeader/style/index.d.ts +0 -3
@@ -1,37 +1,37 @@
1
- import { defineComponent as j, createVNode as n, mergeProps as q, provide as it, readonly as Rt, inject as kt, resolveComponent as lt, computed as b, isVNode as ie, Fragment as Q, toRefs as Se, unref as X, createTextVNode as te, ref as Oe, reactive as rt, watch as de, withDirectives as Ft, vShow as $t, watchEffect as Tt, Transition as Pt } from "vue";
2
- import { Spin as xe, Menu as ae, ConfigProvider as Te, Layout as ce, Drawer as pe, Breadcrumb as Lt, Card as Dt, LayoutFooter as Nt, Tabs as Pe, Dropdown as Ye, Tooltip as Ie, List as oe, Switch as st, TabPane as zt, Select as he, message as Ht, Divider as Be, Alert as Vt, Button as At } from "ant-design-vue";
3
- import { useProAppContext as Le } from "@gx-design-vue/pro-app";
4
- import { useRouter as De, RouterLink as jt } from "vue-router";
5
- import { createFromIconfontCN as Wt, MenuUnfoldOutlined as Kt, MenuFoldOutlined as Ut, GithubOutlined as Et, EllipsisOutlined as Xt, ReloadOutlined as Yt, CloseOutlined as ut, CheckOutlined as dt, SettingOutlined as _t, NotificationOutlined as Gt, CopyOutlined as qt } from "@ant-design/icons-vue";
6
- import { isArray as ct, isBoolean as _e, getSlot as U, getPrefixCls as me, classNames as mt, getLevelData as Zt, isBrowser as Jt, merge as Qt } from "@gx-design-vue/pro-utils";
7
- import en, { themeConfig as A, Keyframe as s, useProStyle as ne, useProConfigContext as fe, useStyle as Ne, mergeToken as ze, colorList as tn } from "@gx-design-vue/pro-provider";
8
- import { createTypes as nn } from "vue-types";
9
- import { cloneDeep as He, pick as le, omit as Ve } from "lodash-es";
10
- import { GPorWaterMark as an } from "@gx-design-vue/pro-watermark";
11
- import { useMediaQuery as on, useState as ve, useMergedState as ln } from "@gx-design-vue/pro-hooks";
12
- import rn from "dayjs";
13
- import { useWindowSize as sn, useClipboard as un } from "@vueuse/core";
14
- import dn from "@gx-design-vue/scrollbar";
15
- import { GColorPicker as Ge } from "@gx-design-vue/color-picker";
16
- const cn = /* @__PURE__ */ j({
1
+ import { defineComponent as A, createVNode as n, mergeProps as V, provide as st, readonly as Pt, inject as Lt, resolveComponent as ut, computed as m, isVNode as oe, Fragment as Z, toRefs as Oe, unref as j, createTextVNode as Q, ref as we, reactive as He, watch as ce, withDirectives as Dt, vShow as Nt, watchEffect as zt, Transition as Ht } from "vue";
2
+ import { Spin as Se, Menu as ne, ConfigProvider as Ke, Layout as fe, Drawer as Ce, Breadcrumb as Kt, Card as jt, LayoutFooter as At, Tabs as je, Dropdown as Ge, Tooltip as Re, List as ae, Switch as dt, TabPane as Wt, Select as be, message as Ut, Divider as Te, Alert as Et, Button as Xt } from "ant-design-vue";
3
+ import { useProAppContext as Ae } from "@gx-design-vue/pro-app";
4
+ import { useRouter as We, RouterLink as Yt } from "vue-router";
5
+ import { createFromIconfontCN as Vt, MenuUnfoldOutlined as _t, MenuFoldOutlined as Gt, GithubOutlined as qt, EllipsisOutlined as Zt, ReloadOutlined as Jt, CloseOutlined as ct, CheckOutlined as mt, SettingOutlined as Qt, NotificationOutlined as en, CopyOutlined as tn } from "@ant-design/icons-vue";
6
+ import { isArray as ft, isBoolean as qe, getSlot as W, getPrefixCls as he, classNames as ht, merge as gt, getRandomNumber as Ze, getLevelData as nn, isBrowser as an } from "@gx-design-vue/pro-utils";
7
+ import on, { themeConfig as K, getDefaultLayoutToken as Fe, Keyframe as s, useStyle as ge, mergeToken as $e, useProConfigContext as ye, useProStyle as ie, defaultTheme as ln, defaultLayout as rn, colorList as sn } from "@gx-design-vue/pro-provider";
8
+ import { createTypes as un } from "vue-types";
9
+ import { cloneDeep as Be, pick as re, omit as Ue } from "lodash-es";
10
+ import { GPorWaterMark as dn } from "@gx-design-vue/pro-watermark";
11
+ import { useMediaQuery as cn, useState as xe, useMergedState as mn } from "@gx-design-vue/pro-hooks";
12
+ import fn from "dayjs";
13
+ import { useWindowSize as hn, useClipboard as gn } from "@vueuse/core";
14
+ import yn from "@gx-design-vue/scrollbar";
15
+ import { GColorPicker as Je } from "@gx-design-vue/color-picker";
16
+ const bn = /* @__PURE__ */ A({
17
17
  name: "PageLoading",
18
18
  props: {
19
- ...xe.props
19
+ ...Se.props
20
20
  },
21
21
  setup(e) {
22
22
  const {
23
23
  indicator: t
24
- } = Le();
24
+ } = Ae();
25
25
  return n("div", {
26
26
  style: {
27
27
  paddingTop: "100px",
28
28
  textAlign: "center"
29
29
  }
30
- }, [n(xe, q(e, {
30
+ }, [n(Se, V(e, {
31
31
  indicator: t == null ? void 0 : t.value
32
32
  }), null)]);
33
33
  }
34
- }), L = nn({
34
+ }), L = un({
35
35
  func: void 0,
36
36
  bool: void 0,
37
37
  string: void 0,
@@ -55,75 +55,75 @@ L.extend([{
55
55
  getter: !0,
56
56
  type: null
57
57
  }]);
58
- const se = {
58
+ const ue = {
59
59
  theme: {
60
60
  type: String,
61
- default: A.theme
61
+ default: K.theme
62
62
  },
63
63
  layout: {
64
64
  type: String,
65
- default: A.layout
65
+ default: K.layout
66
66
  },
67
67
  wideWidth: {
68
68
  type: Number,
69
- default: A.wideWidth
69
+ default: K.wideWidth
70
70
  },
71
71
  splitMenus: {
72
72
  type: Boolean,
73
- default: A.splitMenus
73
+ default: K.splitMenus
74
74
  },
75
75
  fixedMultiTab: {
76
76
  type: Boolean,
77
- default: A.fixedMultiTab
77
+ default: K.fixedMultiTab
78
78
  },
79
79
  showProgressBar: {
80
80
  type: Boolean,
81
- default: A.showProgressBar
81
+ default: K.showProgressBar
82
82
  },
83
83
  fixedHeader: {
84
84
  type: Boolean,
85
- default: A.fixedHeader
85
+ default: K.fixedHeader
86
86
  },
87
87
  fixSiderbar: {
88
88
  type: Boolean,
89
- default: A.fixSiderbar
89
+ default: K.fixSiderbar
90
90
  },
91
91
  showTabsBar: {
92
92
  type: Boolean,
93
- default: A.showTabsBar
93
+ default: K.showTabsBar
94
94
  },
95
95
  showFullScreen: {
96
96
  type: Boolean,
97
- default: A.showFullScreen
97
+ default: K.showFullScreen
98
98
  },
99
99
  autoHideHeader: {
100
100
  type: Boolean,
101
- default: A.autoHideHeader
101
+ default: K.autoHideHeader
102
102
  },
103
103
  headerHeight: {
104
104
  type: Number,
105
- default: A.headerHeight
105
+ default: K.headerHeight
106
106
  },
107
107
  title: {
108
108
  type: String,
109
- default: A.title
109
+ default: K.title
110
110
  },
111
111
  iconfontUrl: {
112
112
  type: String,
113
- default: A.iconfontUrl
113
+ default: K.iconfontUrl
114
114
  },
115
115
  animate: {
116
116
  type: Object,
117
- default: A.animate
117
+ default: K.animate
118
118
  },
119
119
  primaryColor: {
120
120
  type: String,
121
- default: A.primaryColor
121
+ default: K.primaryColor
122
122
  }
123
- }, re = {
123
+ }, se = {
124
124
  renderKey: L.string.def("menuHeaderRender"),
125
- title: se.title,
126
- layout: se.layout,
125
+ title: ue.title,
126
+ layout: ue.layout,
127
127
  logo: {
128
128
  type: [Object, String, Function],
129
129
  default: () => {
@@ -146,8 +146,8 @@ const se = {
146
146
  }
147
147
  },
148
148
  onMenuHeaderClick: Function
149
- }, Me = {
150
- ...se,
149
+ }, ke = {
150
+ ...ue,
151
151
  mode: {
152
152
  type: String,
153
153
  default: "inline"
@@ -197,13 +197,13 @@ const se = {
197
197
  onSelect: {
198
198
  type: Function
199
199
  }
200
- }, Z = {
201
- ...se,
202
- ...Me,
200
+ }, _ = {
201
+ ...ue,
202
+ ...ke,
203
203
  menuLoading: L.looseBool,
204
- logo: re.logo,
205
- logoStyle: re.logoStyle,
206
- logoDirection: re.logoDirection,
204
+ logo: se.logo,
205
+ logoStyle: se.logoStyle,
206
+ logoDirection: se.logoDirection,
207
207
  siderWidth: L.number.def(208),
208
208
  headerHeight: L.number.def(48),
209
209
  collapsedWidth: L.number.def(48),
@@ -249,34 +249,45 @@ const se = {
249
249
  onCollapse: {
250
250
  type: Function
251
251
  }
252
- }, mn = /(((^https?:(?:\/\/)?)(?:[-;:&=+$,\w]+@)?[A-Za-z0-9.-]+(?::\d+)?|(?:www.|[-;:&=+$,\w]+@)[A-Za-z0-9.-]+)((?:\/[+~%/.\w-]*)?\??[-+=&;%@.\w]*#?\w*))$/, ft = (e) => mn.test(e);
253
- function fn(e) {
252
+ }, pn = /(((^https?:(?:\/\/)?)(?:[-;:&=+$,\w]+@)?[A-Za-z0-9.-]+(?::\d+)?|(?:www.|[-;:&=+$,\w]+@)[A-Za-z0-9.-]+)((?:\/[+~%/.\w-]*)?\??[-+=&;%@.\w]*#?\w*))$/, yt = (e) => pn.test(e);
253
+ function vn(e) {
254
254
  return /\w.(png|jpg|jpeg|svg|webp|gif|bmp)$/i.test(e);
255
255
  }
256
- function gt(e, t, a, i) {
257
- var u, g, m, w, p, O, h, T, l, r, I, R, v, y, f, C, F, c, S, M, B, P, H, z, D, V, _, G, Y, J, d, x, k, $;
258
- const o = { ...e };
259
- return a === "light" ? (o.colorItemBg = (g = (u = t.layout) == null ? void 0 : u[i]) == null ? void 0 : g.colorBgMenu, o.colorSubItemBg = (w = (m = t.layout) == null ? void 0 : m[i]) == null ? void 0 : w.colorSubItemBg, o.colorItemBgSelected = (O = (p = t.layout) == null ? void 0 : p[i]) == null ? void 0 : O.colorBgMenuItemSelected, o.colorItemBgSelectedHorizontal = (T = (h = t.layout) == null ? void 0 : h[i]) == null ? void 0 : T.colorBgMenuItemSelected, o.colorItemText = (r = (l = t.layout) == null ? void 0 : l[i]) == null ? void 0 : r.colorTextMenu, o.colorItemTextHover = (R = (I = t.layout) == null ? void 0 : I[i]) == null ? void 0 : R.colorTextMenuHover, o.colorItemTextSelected = (y = (v = t.layout) == null ? void 0 : v[i]) == null ? void 0 : y.colorTextMenuSelected, o.colorItemTextSelectedHorizontal = (C = (f = t.layout) == null ? void 0 : f[i]) == null ? void 0 : C.colorTextMenuSelected, i === "sider" && (o.colorItemBgHover = (c = (F = t.layout) == null ? void 0 : F[i]) == null ? void 0 : c.colorBgMenuItemHover)) : a === "dark" && (o.colorItemBg = (M = (S = t.layout) == null ? void 0 : S[i]) == null ? void 0 : M.colorDarkBgMenu, o.colorSubItemBg = (P = (B = t.layout) == null ? void 0 : B[i]) == null ? void 0 : P.colorDarkSubItemBg, o.colorItemBgSelected = (z = (H = t.layout) == null ? void 0 : H[i]) == null ? void 0 : z.colorDarkBgMenuItemSelected, o.colorItemBgSelectedHorizontal = (V = (D = t.layout) == null ? void 0 : D[i]) == null ? void 0 : V.colorDarkBgMenuItemSelected, o.colorItemText = (G = (_ = t.layout) == null ? void 0 : _[i]) == null ? void 0 : G.colorDarkTextMenu, o.colorItemTextHover = (J = (Y = t.layout) == null ? void 0 : Y[i]) == null ? void 0 : J.colorDarkTextMenuHover, o.colorItemTextSelected = (x = (d = t.layout) == null ? void 0 : d[i]) == null ? void 0 : x.colorDarkTextMenuSelected, o.colorItemTextSelectedHorizontal = ($ = (k = t.layout) == null ? void 0 : k[i]) == null ? void 0 : $.colorDarkTextMenuSelected, i === "header" && (o.colorActiveBarHeight = 0)), o;
256
+ const Pe = {
257
+ colorItemBg: "colorBgMenu",
258
+ colorSubItemBg: "colorSubItemBg",
259
+ colorItemBgHover: "colorBgMenuItemHover",
260
+ colorItemBgSelected: "colorBgMenuItemSelected",
261
+ colorItemBgSelectedHorizontal: "colorBgMenuItemSelected",
262
+ colorItemText: "colorTextMenu",
263
+ colorItemTextHover: "colorTextMenuHover",
264
+ colorItemTextSelected: "colorTextMenuSelected",
265
+ colorItemTextSelectedHorizontal: "colorTextMenuSelected"
266
+ };
267
+ function bt({ type: e, token: t, theme: a, staticToken: i, layoutThemeKey: o }) {
268
+ var C;
269
+ const u = a === "dark" || a === "realDark", f = (C = t.layout) == null ? void 0 : C[e], b = Fe(e, t)[o], g = Object.keys(Pe).reduce((d, F) => (d[F] = f[Pe[F]] || b[Pe[F]], d), {}), M = Object.assign(i, Object.fromEntries(Object.entries(g).filter(([d, F]) => F !== void 0)));
270
+ return u && e === "header" && (M.colorActiveBarHeight = 0), M;
260
271
  }
261
- const gn = ["left", "right"], ue = ["left", "right", "down", "up"], hn = ["downBig", "upBig", "leftBig", "rightBig"], yn = ["topLeft", "bottomRight", "topRight", "bottomLeft"], bn = ["downLeft", "upRight", "downRight", "upLeft"], Ae = {
272
+ const Cn = ["left", "right"], me = ["left", "right", "down", "up"], xn = ["downBig", "upBig", "leftBig", "rightBig"], wn = ["topLeft", "bottomRight", "topRight", "bottomLeft"], Sn = ["downLeft", "upRight", "downRight", "upLeft"], Ee = {
262
273
  preset: [
263
274
  // 预设动画配置
264
- { name: "back", alias: "渐近", directions: ue },
265
- { name: "bounce", alias: "弹跳", directions: ue.concat("default") },
275
+ { name: "back", alias: "渐近", directions: me },
276
+ { name: "bounce", alias: "弹跳", directions: me.concat("default") },
266
277
  {
267
278
  name: "fade",
268
279
  alias: "淡化",
269
- directions: ue.concat(hn).concat(yn).concat("default")
280
+ directions: me.concat(xn).concat(wn).concat("default")
270
281
  },
271
282
  { name: "flip", alias: "翻转", directions: ["x", "y"] },
272
- { name: "lightSpeed", alias: "光速", directions: gn },
273
- { name: "rotate", alias: "旋转", directions: bn.concat("default") },
283
+ { name: "lightSpeed", alias: "光速", directions: Cn },
284
+ { name: "rotate", alias: "旋转", directions: Sn.concat("default") },
274
285
  { name: "roll", alias: "翻滚", directions: ["default"] },
275
- { name: "zoom", alias: "缩放", directions: ue.concat("default") },
276
- { name: "slide", alias: "滑动", directions: ue }
286
+ { name: "zoom", alias: "缩放", directions: me.concat("default") },
287
+ { name: "slide", alias: "滑动", directions: me }
277
288
  ]
278
289
  };
279
- function pn(e) {
290
+ function In(e) {
280
291
  return e.map((t) => {
281
292
  var i;
282
293
  const a = { ...t };
@@ -289,25 +300,25 @@ function pn(e) {
289
300
  }))
290
301
  return {
291
302
  ...a,
292
- children: pn(a.children)
303
+ children: In(a.children)
293
304
  };
294
305
  delete a.children;
295
306
  }
296
307
  return a;
297
308
  }).filter((t) => t);
298
309
  }
299
- function vn(e) {
310
+ function Mn(e) {
300
311
  return e.map((t) => {
301
312
  var i;
302
313
  const a = { ...t };
303
- return (i = a.meta) != null && i.hideInMenu ? null : (a.linkPath = Cn(a.children || []), a.children && delete a.children, a);
314
+ return (i = a.meta) != null && i.hideInMenu ? null : (a.linkPath = Rn(a.children || []), a.children && delete a.children, a);
304
315
  }).filter((t) => t);
305
316
  }
306
- function xn(e, t) {
317
+ function On(e, t) {
307
318
  const a = (t || "").split("/").length === 2 ? t || "" : `/${(t || "").split("/")[1]}`, i = e.find((o) => o.path === a);
308
319
  return t === void 0 ? [] : (i == null ? void 0 : i.children) || [];
309
320
  }
310
- function Cn(e) {
321
+ function Rn(e) {
311
322
  let t = "";
312
323
  const a = function(o) {
313
324
  let u = "";
@@ -321,34 +332,34 @@ function Cn(e) {
321
332
  }
322
333
  return t;
323
334
  }
324
- function Bi(e, t) {
335
+ function Pi(e, t) {
325
336
  var i, o;
326
337
  const a = ((o = (i = e.find((u) => u.path === t)) == null ? void 0 : i.meta) == null ? void 0 : o.key) || "";
327
338
  if (a) {
328
- const u = [], g = a.split("-");
329
- for (let m = 0; m < g.length; m += 1)
330
- u.push(He(g).splice(0, m + 1).join("-"));
331
- return e.filter((m) => u.some((w) => {
332
- var p;
333
- return w === ((p = m == null ? void 0 : m.meta) == null ? void 0 : p.key) || "";
339
+ const u = [], f = a.split("-");
340
+ for (let b = 0; b < f.length; b += 1)
341
+ u.push(Be(f).splice(0, b + 1).join("-"));
342
+ return e.filter((b) => u.some((g) => {
343
+ var M;
344
+ return g === ((M = b == null ? void 0 : b.meta) == null ? void 0 : M.key) || "";
334
345
  }));
335
346
  }
336
347
  return [];
337
348
  }
338
- function wn(e) {
349
+ function Fn(e) {
339
350
  return e.layout === "mix" && (e.fixSiderbar = !0, e.fixedHeader = !0, e.splitMenus = !0), e.layout === "top" && (e.fixSiderbar = !1, e.fixedHeader = !0, e.splitMenus = !1), e.layout === "simple" && (e.splitMenus = !1, e.showTabsBar = !1), e.layout === "side" && (e.splitMenus = !1), e.layout === "wide" && (e.splitMenus = !1, e.fixSiderbar = !1, e.fixedHeader = !0, e.showTabsBar = !1, e.fixedMultiTab = !1), { ...e };
340
351
  }
341
- function Sn(e) {
352
+ function $n(e) {
342
353
  const t = ["showTabsBar", "fixedMultiTab", "fixSiderbar", "fixedHeader", "splitMenus"];
343
354
  let i = Object.keys(e).reduce((o, u) => (o[u] = !1, o), {});
344
- return i = In(i, t), e.layout === "mix" && (i.fixSiderbar = !0, i.fixedHeader = !0), e.layout === "side" && (i.splitMenus = !0), e.layout === "simple" && (i.splitMenus = !0, i.fixedHeader = !0, i.showTabsBar = !0, i.fixedMultiTab = !0), e.layout === "wide" && (i.splitMenus = !0, i.fixedHeader = !0, i.fixSiderbar = !0, i.showTabsBar = !0, i.fixedMultiTab = !0), i;
355
+ return i = Bn(i, t), e.layout === "mix" && (i.fixSiderbar = !0, i.fixedHeader = !0), e.layout === "side" && (i.splitMenus = !0), e.layout === "simple" && (i.splitMenus = !0, i.fixedHeader = !0, i.showTabsBar = !0, i.fixedMultiTab = !0), e.layout === "wide" && (i.splitMenus = !0, i.fixedHeader = !0, i.fixSiderbar = !0, i.showTabsBar = !0, i.fixedMultiTab = !0), i;
345
356
  }
346
- function In(e, t) {
357
+ function Bn(e, t) {
347
358
  return {
348
359
  ...t.reduce((a, i) => ({ ...a, [i]: e[i] }), {})
349
360
  };
350
361
  }
351
- const Mn = (e = Symbol(), t = "Context.Provider") => j({
362
+ const kn = (e = Symbol(), t = "Context.Provider") => A({
352
363
  name: t,
353
364
  props: {
354
365
  value: {
@@ -357,19 +368,19 @@ const Mn = (e = Symbol(), t = "Context.Provider") => j({
357
368
  }
358
369
  },
359
370
  setup(i, { slots: o }) {
360
- return it(e, Rt(i.value)), () => {
371
+ return st(e, Pt(i.value)), () => {
361
372
  var u;
362
373
  return (u = o.default) == null ? void 0 : u.call(o);
363
374
  };
364
375
  }
365
- }), Bn = (e = Symbol(), t) => kt(e, t || {}), je = Symbol("pro-layout-context"), On = () => Mn(je, "ProLayoutContext.Provider"), Rn = (e) => {
366
- it(je, e);
367
- }, ee = () => Bn(je);
368
- On();
369
- function qe(e) {
370
- return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !ie(e);
376
+ }), Tn = (e = Symbol(), t) => Lt(e, t || {}), Xe = Symbol("pro-layout-context"), Pn = () => kn(Xe, "ProLayoutContext.Provider"), Ln = (e) => {
377
+ st(Xe, e);
378
+ }, J = () => Tn(Xe);
379
+ Pn();
380
+ function Qe(e) {
381
+ return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !oe(e);
371
382
  }
372
- const Ce = (e) => {
383
+ const Ie = (e) => {
373
384
  const {
374
385
  icon: t,
375
386
  iconType: a,
@@ -378,15 +389,15 @@ const Ce = (e) => {
378
389
  if (!t)
379
390
  return null;
380
391
  if (typeof t == "string" && t !== "") {
381
- if (ft(t) || fn(t))
392
+ if (yt(t) || vn(t))
382
393
  return n("img", {
383
394
  src: t,
384
395
  alt: "icon",
385
396
  class: `${e.className}-icon-image`
386
397
  }, null);
387
398
  if (a === 1) {
388
- const u = Wt({
389
- scriptUrl: i || A.iconfontUrl
399
+ const u = Vt({
400
+ scriptUrl: i || K.iconfontUrl
390
401
  });
391
402
  return i ? n(u, {
392
403
  type: t
@@ -395,12 +406,12 @@ const Ce = (e) => {
395
406
  }, null);
396
407
  }
397
408
  }
398
- if (ie(t))
409
+ if (oe(t))
399
410
  return t;
400
- const o = lt(t);
401
- return typeof Ce == "function" && n(o, null, null) || null;
411
+ const o = ut(t);
412
+ return typeof Ie == "function" && n(o, null, null) || null;
402
413
  };
403
- Ce.props = {
414
+ Ie.props = {
404
415
  icon: {
405
416
  type: [String, Function, Object]
406
417
  },
@@ -408,13 +419,13 @@ Ce.props = {
408
419
  className: String,
409
420
  iconfontUrl: String
410
421
  };
411
- const ht = /* @__PURE__ */ j({
422
+ const pt = /* @__PURE__ */ A({
412
423
  name: "BaseMenu",
413
- props: Me,
424
+ props: ke,
414
425
  setup(e) {
415
- const t = De(), {
426
+ const t = We(), {
416
427
  getPrefixCls: a
417
- } = ee(), i = a({
428
+ } = J(), i = a({
418
429
  suffixCls: "menu-item",
419
430
  isPor: !0
420
431
  }), o = (l) => {
@@ -423,100 +434,100 @@ const ht = /* @__PURE__ */ j({
423
434
  }, u = (l) => {
424
435
  var r;
425
436
  (r = e.onSelect) == null || r.call(e, l.selectedKeys);
426
- }, g = (l) => {
437
+ }, f = (l) => {
427
438
  var r;
428
439
  (r = e.onClick) == null || r.call(e, ...l);
429
- }, m = (l, r) => {
430
- var v;
431
- const I = l.target || "", R = ft(I);
432
- ((v = t.currentRoute.value) == null ? void 0 : v.fullPath) !== r.to && R && I && l.targetStatus === 1 && window.open(I);
433
- }, w = lt("router-link"), p = (l) => {
434
- var C, F, c, S, M;
440
+ }, b = (l, r) => {
441
+ var S;
442
+ const x = l.target || "", w = yt(x);
443
+ ((S = t.currentRoute.value) == null ? void 0 : S.fullPath) !== r.to && w && x && l.targetStatus === 1 && window.open(x);
444
+ }, g = ut("router-link"), M = (l) => {
445
+ var y, T, h, p, P;
435
446
  const r = {
436
447
  ...l.meta
437
- }, I = r.targetStatus === 1 && r.target ? "a" : w, R = {
448
+ }, x = r.targetStatus === 1 && r.target ? "a" : g, w = {
438
449
  to: l.linkPath || l.path || ""
439
- }, v = (C = l.meta) == null ? void 0 : C.title, y = (F = l.meta) != null && F.icon ? n(I, q(R, {
450
+ }, S = (y = l.meta) == null ? void 0 : y.title, O = (T = l.meta) != null && T.icon ? n(x, V(w, {
440
451
  class: "gx-pro-sider-menu-item",
441
- onClick: () => m(r, R)
452
+ onClick: () => b(r, w)
442
453
  }), {
443
454
  default: () => [n("span", {
444
455
  class: "gx-pro-sider-menu-item-title"
445
- }, [v])]
446
- }) : n(I, q(R, {
456
+ }, [S])]
457
+ }) : n(x, V(w, {
447
458
  class: "gx-pro-sider-menu-item",
448
- onClick: () => m(r, R)
459
+ onClick: () => b(r, w)
449
460
  }), {
450
- default: () => [n("span", null, [v])]
451
- }), f = ((c = l.meta) == null ? void 0 : c.icon) && n(Ce, {
461
+ default: () => [n("span", null, [S])]
462
+ }), v = ((h = l.meta) == null ? void 0 : h.icon) && n(Ie, {
452
463
  className: i,
453
- icon: (S = l.meta) == null ? void 0 : S.icon,
464
+ icon: (p = l.meta) == null ? void 0 : p.icon,
454
465
  iconfontUrl: e.iconfontUrl,
455
- iconType: (M = l.meta) == null ? void 0 : M.iconType
466
+ iconType: (P = l.meta) == null ? void 0 : P.iconType
456
467
  }, null) || void 0;
457
- return [y, f];
458
- }, O = (l) => {
459
- var R, v, y, f, C, F, c, S, M;
460
- if (Array.isArray(l.children) && l.children.length > 0 && !((R = l == null ? void 0 : l.meta) != null && R.hideInMenu) && !((v = l == null ? void 0 : l.meta) != null && v.hideChildrenInMenu)) {
461
- let B;
468
+ return [O, v];
469
+ }, C = (l) => {
470
+ var w, S, O, v, y, T, h, p, P;
471
+ if (Array.isArray(l.children) && l.children.length > 0 && !((w = l == null ? void 0 : l.meta) != null && w.hideInMenu) && !((S = l == null ? void 0 : l.meta) != null && S.hideChildrenInMenu)) {
472
+ let k;
462
473
  if (e.subMenuItemRender)
463
474
  return e.subMenuItemRender({
464
475
  item: l,
465
- children: h(l.children)
476
+ children: d(l.children)
466
477
  });
467
- const P = (y = l.meta) == null ? void 0 : y.title, H = (f = l.meta) != null && f.icon ? n("span", {
478
+ const N = (O = l.meta) == null ? void 0 : O.title, B = (v = l.meta) != null && v.icon ? n("span", {
468
479
  class: "gx-pro-sider-menu-item"
469
480
  }, [n("span", {
470
481
  class: "gx-pro-sider-menu-item-title"
471
- }, [P])]) : n("span", {
482
+ }, [N])]) : n("span", {
472
483
  class: "gx-pro-sider-menu-item"
473
- }, [P]), z = ((C = l.meta) == null ? void 0 : C.type) === "group", D = z ? ae.ItemGroup : ae.SubMenu;
474
- return n(D, {
475
- title: H,
484
+ }, [N]), U = ((y = l.meta) == null ? void 0 : y.type) === "group", z = U ? ne.ItemGroup : ne.SubMenu;
485
+ return n(z, {
486
+ title: B,
476
487
  key: l.path,
477
- icon: z ? null : n(Ce, {
488
+ icon: U ? null : n(Ie, {
478
489
  className: i,
479
- icon: (F = l.meta) == null ? void 0 : F.icon,
490
+ icon: (T = l.meta) == null ? void 0 : T.icon,
480
491
  iconfontUrl: e.iconfontUrl,
481
- iconType: (c = l.meta) == null ? void 0 : c.iconType
492
+ iconType: (h = l.meta) == null ? void 0 : h.iconType
482
493
  }, null)
483
- }, qe(B = h(l.children)) ? B : {
484
- default: () => [B]
494
+ }, Qe(k = d(l.children)) ? k : {
495
+ default: () => [k]
485
496
  });
486
497
  }
487
- const [r, I] = p(l);
498
+ const [r, x] = M(l);
488
499
  return e.menuItemRender && e.menuItemRender({
489
500
  item: l,
490
501
  title: r,
491
- icon: I
492
- }) || n(ae.Item, {
493
- disabled: (S = l.meta) == null ? void 0 : S.disabled,
494
- danger: (M = l.meta) == null ? void 0 : M.danger,
502
+ icon: x
503
+ }) || n(ne.Item, {
504
+ disabled: (p = l.meta) == null ? void 0 : p.disabled,
505
+ danger: (P = l.meta) == null ? void 0 : P.danger,
495
506
  key: l.path,
496
- icon: I
497
- }, qe(r) ? r : {
507
+ icon: x
508
+ }, Qe(r) ? r : {
498
509
  default: () => [r]
499
510
  });
500
511
  };
501
- function h(l = []) {
502
- return l.map((r) => O(r)).filter((r) => r);
512
+ function d(l = []) {
513
+ return l.map((r) => C(r)).filter((r) => r);
503
514
  }
504
- const T = b(() => h(e.menuData));
505
- return () => n(ae, q({
515
+ const F = m(() => d(e.menuData));
516
+ return () => n(ne, V({
506
517
  key: "Menu",
507
518
  inlineIndent: 16,
508
519
  mode: e.mode,
509
520
  theme: e.theme,
510
- openKeys: e.openKeys === !1 ? [] : ct(e.openKeys) ? e.openKeys : [],
521
+ openKeys: e.openKeys === !1 ? [] : ft(e.openKeys) ? e.openKeys : [],
511
522
  selectedKeys: e.selectedKeys || [],
512
523
  onOpenChange: (l) => o(l),
513
524
  onSelect: u,
514
- onClick: g
525
+ onClick: f
515
526
  }, e.menuProps), {
516
- default: () => [T.value]
527
+ default: () => [F.value]
517
528
  });
518
529
  }
519
- }), yt = new s("pro-layout-title-hide", {
530
+ }), vt = new s("pro-layout-title-hide", {
520
531
  "0%": { display: "none", opacity: 0 },
521
532
  "99%": {
522
533
  display: "none",
@@ -526,7 +537,7 @@ const ht = /* @__PURE__ */ j({
526
537
  display: "block",
527
538
  opacity: 1
528
539
  }
529
- }), kn = (e) => {
540
+ }), Dn = (e) => {
530
541
  const t = `${e.antCls}-menu`;
531
542
  return {
532
543
  [`${e.proComponentsCls}-basic-layout`]: {
@@ -537,8 +548,8 @@ const ht = /* @__PURE__ */ j({
537
548
  }
538
549
  }
539
550
  };
540
- }, Fn = (e) => {
541
- var t, a, i, o, u, g, m, w, p, O, h, T;
551
+ }, Nn = (e) => {
552
+ var t, a, i, o;
542
553
  return {
543
554
  [`${e.proComponentsCls}-basic-layout`]: {
544
555
  [`&${e.proComponentsCls}-basic-layout-wide`]: {
@@ -551,7 +562,6 @@ const ht = /* @__PURE__ */ j({
551
562
  [e.componentCls]: {
552
563
  position: "relative",
553
564
  borderRight: 0,
554
- background: (a = (t = e.layout) == null ? void 0 : t.sider) == null ? void 0 : a.colorDarkBgMenu,
555
565
  zIndex: 9,
556
566
  "&-menu": {
557
567
  position: "relative",
@@ -567,13 +577,6 @@ const ht = /* @__PURE__ */ j({
567
577
  flexDirection: "column",
568
578
  height: "100%"
569
579
  },
570
- "&-light": {
571
- background: (o = (i = e.layout) == null ? void 0 : i.sider) == null ? void 0 : o.colorBgMenu,
572
- boxShadow: "2px 0 8px 0 rgba(29,35,41,.05)",
573
- [`${e.componentCls}-footer`]: {
574
- color: (g = (u = e.layout) == null ? void 0 : u.sider) == null ? void 0 : g.colorTextMenu
575
- }
576
- },
577
580
  "&-links": {
578
581
  width: "100%",
579
582
  borderTop: "1px solid rgba(0,0,0,.06)",
@@ -587,10 +590,9 @@ const ht = /* @__PURE__ */ j({
587
590
  background: "transparent"
588
591
  },
589
592
  "&-footer": {
590
- color: (w = (m = e.layout) == null ? void 0 : m.sider) == null ? void 0 : w.colorDarkTextMenu,
591
593
  paddingBlockEnd: 16,
592
594
  fontSize: e.fontSize,
593
- animationName: yt,
595
+ animationName: vt,
594
596
  animationDuration: ".4s",
595
597
  animationTimingFunction: "ease"
596
598
  }
@@ -602,13 +604,13 @@ const ht = /* @__PURE__ */ j({
602
604
  zIndex: "100",
603
605
  height: "100%",
604
606
  "&-mix": {
605
- height: `calc(100% - ${((O = (p = e.layout) == null ? void 0 : p.header) == null ? void 0 : O.heightLayoutHeader) || A.headerHeight}px)`,
606
- insetBlockStart: `${((T = (h = e.layout) == null ? void 0 : h.header) == null ? void 0 : T.heightLayoutHeader) || A.headerHeight}px`
607
+ height: `calc(100% - ${((a = (t = e.layout) == null ? void 0 : t.header) == null ? void 0 : a.heightLayoutHeader) || K.headerHeight}px)`,
608
+ insetBlockStart: `${((o = (i = e.layout) == null ? void 0 : i.header) == null ? void 0 : o.heightLayoutHeader) || K.headerHeight}px`
607
609
  }
608
610
  }
609
611
  }
610
612
  };
611
- }, $n = (e) => ({
613
+ }, zn = (e) => ({
612
614
  [`${e.proComponentsCls}-basic-layout`]: {
613
615
  [`${e.antCls}-menu`]: {
614
616
  [`${e.proComponentsCls}-menu-item-icon${e.antCls}-menu-item-icon`]: {
@@ -617,15 +619,8 @@ const ht = /* @__PURE__ */ j({
617
619
  }
618
620
  }
619
621
  }
620
- }), Tn = (e) => ({
622
+ }), Hn = (e) => ({
621
623
  [`${e.proComponentsCls}-sider`]: {
622
- "&-light": {
623
- [`${e.proComponentsCls}-sider-logo`]: {
624
- h1: {
625
- color: e.colorPrimary
626
- }
627
- }
628
- },
629
624
  "&-logo": {
630
625
  position: "relative",
631
626
  display: "flex",
@@ -650,8 +645,8 @@ const ht = /* @__PURE__ */ j({
650
645
  marginBlock: 0,
651
646
  marginInlineEnd: 0,
652
647
  marginInlineStart: 12,
653
- color: e.colorWhite,
654
- animationName: yt,
648
+ color: e.theme === "light" ? e.colorPrimary : e.colorWhite,
649
+ animationName: vt,
655
650
  animationDuration: ".2s",
656
651
  fontWeight: 600,
657
652
  fontSize: 18,
@@ -676,58 +671,68 @@ const ht = /* @__PURE__ */ j({
676
671
  }
677
672
  }
678
673
  }
679
- }), bt = (e, t) => e ? typeof e == "string" ? n("img", {
674
+ });
675
+ function Kn(e, t) {
676
+ return ge("AppLayoutSider", (a) => {
677
+ const i = $e(a, {
678
+ theme: t.value
679
+ });
680
+ return [Hn(i)];
681
+ }, e);
682
+ }
683
+ const Ct = (e, t) => e ? typeof e == "string" ? n("img", {
680
684
  src: e,
681
685
  alt: "logo",
682
686
  style: t
683
- }, null) : typeof e == "function" ? e() : e : null, Pn = (e, t = "menuHeaderRender") => {
687
+ }, null) : typeof e == "function" ? e() : e : null, jn = (e, t = "menuHeaderRender") => {
684
688
  const {
685
689
  logo: a,
686
690
  logoStyle: i,
687
691
  title: o,
688
692
  layout: u
689
- } = e, g = e[t || ""];
690
- if (g === !1)
693
+ } = e, f = e[t || ""];
694
+ if (f === !1)
691
695
  return null;
692
- const m = bt(a, i), w = o && n("h1", null, [o]);
693
- return typeof g == "function" ? g(m, e.collapsed ? null : w, e) : n(Q, null, [m || null, e.collapsed && u === "side" ? null : w]);
694
- }, We = /* @__PURE__ */ j({
696
+ const b = Ct(a, i), g = o && n("h1", null, [o]);
697
+ return typeof f == "function" ? f(b, e.collapsed ? null : g, e) : n(Z, null, [b || null, e.collapsed && u === "side" ? null : g]);
698
+ }, Ye = /* @__PURE__ */ A({
695
699
  name: "LogoContent",
696
- props: re,
700
+ props: se,
697
701
  setup(e) {
698
702
  const {
699
- getPrefixCls: t
700
- } = ee(), a = b(() => e.layout === "side" || e.layout === "simple"), i = b(() => t({
701
- suffixCls: a.value || e.drawer ? "sider" : "global-header",
703
+ getPrefixCls: t,
704
+ theme: a
705
+ } = J(), i = m(() => e.layout === "side" || e.layout === "simple"), o = m(() => t({
706
+ suffixCls: i.value || e.drawer ? "sider" : "global-header",
702
707
  isPor: !0
703
708
  })), {
704
- wrapSSR: o,
705
- hashId: u
706
- } = ne("ProLayoutLogo", [Tn]), g = b(() => Pn(e, e.renderKey));
707
- return () => o(n("div", {
709
+ wrapSSR: u,
710
+ hashId: f
711
+ } = Kn(o.value, a), b = m(() => jn(e, e.renderKey));
712
+ return () => u(n("div", {
708
713
  id: "logo",
709
714
  class: {
710
- [`${u.value}`]: !0,
711
- [`${i.value}-logo`]: !0,
712
- [`${i.value}-logo-collapsed`]: !!e.collapsed
715
+ [`${f.value}`]: !0,
716
+ [`${o.value}-logo`]: !0,
717
+ [`${o.value}-logo-collapsed`]: !!e.collapsed
713
718
  },
714
719
  onClick: () => {
715
- var m;
716
- return (m = e.onMenuHeaderClick) == null ? void 0 : m.call(e);
720
+ var g;
721
+ return (g = e.onMenuHeaderClick) == null ? void 0 : g.call(e);
717
722
  }
718
- }, [n("a", null, [g.value || null])]));
723
+ }, [n("a", null, [b.value || null])]));
719
724
  }
720
725
  });
721
- We.inheritAttrs = !1;
722
- function Ln(e) {
723
- return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !ie(e);
726
+ Ye.inheritAttrs = !1;
727
+ function An(e) {
728
+ return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !oe(e);
724
729
  }
725
730
  const {
726
- Sider: Dn
727
- } = ce, {
728
- Item: Ze
729
- } = ae, pt = (e) => e ? n(Kt, null, null) : n(Ut, null, null), Je = /* @__PURE__ */ j({
730
- props: Z,
731
+ Sider: Wn
732
+ } = fe, {
733
+ Item: et
734
+ } = ne, xt = (e) => e ? n(_t, null, null) : n(Gt, null, null), tt = /* @__PURE__ */ A({
735
+ props: _,
731
736
  inheritAttrs: !1,
732
737
  setup(e) {
733
738
  const {
@@ -735,54 +740,71 @@ const {
735
740
  selectedKeys: a,
736
741
  flatMenuData: i,
737
742
  menuData: o,
738
- openKeys: u
739
- } = ee(), {
740
- indicator: g
741
- } = Le(), {
742
- token: m
743
- } = fe(), {
744
- theme: w,
745
- layout: p,
746
- isMobile: O,
747
- menuLoading: h,
748
- breakpoint: T,
749
- fixSiderbar: l,
750
- collapsed: r,
751
- siderWidth: I,
752
- collapsedWidth: R,
753
- menuExtraRender: v,
754
- menuContentRender: y,
755
- menuFooterRender: f,
756
- collapsedButtonRender: C,
757
- links: F
758
- } = Se(e), c = t({
743
+ openKeys: u,
744
+ theme: f
745
+ } = J(), {
746
+ indicator: b
747
+ } = Ae(), {
748
+ token: g
749
+ } = ye(), {
750
+ theme: M,
751
+ layout: C,
752
+ isMobile: d,
753
+ menuLoading: F,
754
+ breakpoint: l,
755
+ fixSiderbar: r,
756
+ collapsed: x,
757
+ siderWidth: w,
758
+ collapsedWidth: S,
759
+ menuExtraRender: O,
760
+ menuContentRender: v,
761
+ menuFooterRender: y,
762
+ collapsedButtonRender: T,
763
+ links: h
764
+ } = Oe(e), p = t({
759
765
  suffixCls: "sider",
760
766
  isPor: !0
761
- }), {
762
- wrapSSR: S,
763
- hashId: M
764
- } = ne("ProLayoutSiderMenu", [kn, Fn, $n], c), B = b(() => e.layout === "wide"), P = b(() => e.layout === "mix" && !e.isMobile && e.splitMenus), H = b(() => p.value === "side" || p.value === "simple"), z = b(() => (e.layout === "mix" || B.value) && "light" || w.value), D = b(() => p.value === "top" ? [] : o.value), V = b(() => e.collapsed ? e.collapsedWidth : e.siderWidth), _ = b(() => [M.value, c, O.value ? "shadow" : null, `${c}-${z.value}`, l.value && e.layout !== "wide" ? `${c}-fixed` : null]), G = b(() => {
765
- var d;
766
- return typeof F.value == "function" ? (d = F.value) == null ? void 0 : d.call(F) : F.value;
767
- }), Y = b(() => C.value !== !1 ? C.value || pt : !1), J = (d) => {
768
- var x;
767
+ }), P = m(() => e.layout === "wide"), k = m(() => e.layout === "mix" && !e.isMobile && e.splitMenus), N = m(() => C.value === "side" || C.value === "simple"), B = m(() => (e.layout === "mix" || P.value) && "light" || M.value), U = m(() => `${f.value}:${C.value}`), {
768
+ wrapSSR: z,
769
+ hashId: H
770
+ } = ie("ProLayoutSiderMenu", [zn, Dn, Nn, (I) => {
771
+ var E, X, q;
772
+ const $ = (E = I == null ? void 0 : I.layout) == null ? void 0 : E.sider, D = ((X = I.layout) == null ? void 0 : X.layoutThemeKey) || "";
773
+ return {
774
+ [`${I.proComponentsCls}-basic-layout`]: {
775
+ [I.componentCls]: {
776
+ [`&-${f.value}`]: {
777
+ background: ($ == null ? void 0 : $.colorBgMenu) || ((q = Fe("sider", I)[D]) == null ? void 0 : q.colorBgMenu),
778
+ boxShadow: f.value === "realDark" ? "#0d0d0da6 0 2px 8px" : "2px 0 8px 0 rgba(29,35,41,.05)",
779
+ [`${I.componentCls}-footer`]: {
780
+ color: $ == null ? void 0 : $.colorTextMenu
781
+ }
782
+ }
783
+ }
784
+ }
785
+ };
786
+ }], p), ee = m(() => C.value === "top" ? [] : o.value), G = m(() => e.collapsed ? e.collapsedWidth : e.siderWidth), de = m(() => [H.value, p, d.value ? "shadow" : null, `${p}-${f.value}`, r.value && e.layout !== "wide" ? `${p}-fixed` : null]), le = m(() => {
787
+ var I;
788
+ return typeof h.value == "function" ? (I = h.value) == null ? void 0 : I.call(h) : h.value;
789
+ }), c = m(() => T.value !== !1 ? T.value || xt : !1), R = (I) => {
790
+ var $;
769
791
  if (e.onSelect) {
770
- if (X(P)) {
771
- e.onSelect([(x = a == null ? void 0 : a.value) == null ? void 0 : x[0], ...d]);
792
+ if (j(k)) {
793
+ e.onSelect([($ = a == null ? void 0 : a.value) == null ? void 0 : $[0], ...I]);
772
794
  return;
773
795
  }
774
- e.onSelect(d);
796
+ e.onSelect(I);
775
797
  }
776
798
  };
777
799
  return () => {
778
- var $;
779
- const d = H.value ? n(We, q({
780
- drawer: O.value
781
- }, e), null) : null, x = v.value && (($ = v.value) == null ? void 0 : $.call(v, e)), k = n(ht, {
782
- class: `${c}-menu ${M.value}`,
783
- theme: z.value,
800
+ var E;
801
+ const I = N.value ? n(Ye, V({
802
+ drawer: d.value
803
+ }, e), null) : null, $ = O.value && ((E = O.value) == null ? void 0 : E.call(O, e)), D = n(pt, {
804
+ class: `${p}-menu ${H.value}`,
805
+ theme: B.value,
784
806
  mode: "inline",
785
- menuData: P.value ? i.value : D.value,
807
+ menuData: k.value ? i.value : ee.value,
786
808
  iconfontUrl: e.iconfontUrl,
787
809
  openKeys: u.value,
788
810
  selectedKeys: a.value,
@@ -792,118 +814,123 @@ const {
792
814
  style: {
793
815
  width: "100%"
794
816
  },
795
- onOpenKeys: (N) => {
796
- var K;
797
- return e.onOpenKeys && ((K = e.onOpenKeys) == null ? void 0 : K.call(e, N));
817
+ onOpenKeys: (X) => {
818
+ var q;
819
+ return e.onOpenKeys && ((q = e.onOpenKeys) == null ? void 0 : q.call(e, X));
798
820
  },
799
- onSelect: J
821
+ onSelect: R
800
822
  }, null);
801
- return P.value && X(i.value).length === 0 || D.value.length === 0 ? null : S(n(Te, {
823
+ return k.value && j(i.value).length === 0 || ee.value.length === 0 ? null : z(n(Ke, {
802
824
  theme: {
803
825
  components: {
804
- Menu: gt({
805
- radiusItem: 4,
806
- colorActiveBarWidth: 0,
807
- colorActiveBarHeight: 0,
808
- colorActiveBarBorderSize: 0
809
- // 主题颜色
810
- }, (m == null ? void 0 : m.value) || {}, z.value, "sider")
826
+ Menu: bt({
827
+ token: (g == null ? void 0 : g.value) || {},
828
+ staticToken: {
829
+ radiusItem: 4,
830
+ colorActiveBarWidth: 0,
831
+ colorActiveBarHeight: 0,
832
+ colorActiveBarBorderSize: 0
833
+ },
834
+ theme: f.value,
835
+ type: "sider",
836
+ layoutThemeKey: U.value
837
+ })
811
838
  }
812
839
  }
813
840
  }, {
814
- default: () => [l.value && n("div", {
841
+ default: () => [r.value && n("div", {
815
842
  style: {
816
- width: `${V.value}px`,
843
+ width: `${G.value}px`,
817
844
  overflow: "hidden",
818
- flex: `0 0 ${V.value}px`,
819
- maxWidth: `${V.value}px`,
820
- minWidth: `${V.value}px`,
845
+ flex: `0 0 ${G.value}px`,
846
+ maxWidth: `${G.value}px`,
847
+ minWidth: `${G.value}px`,
821
848
  transition: "background-color 0.2s, min-width 0.2s, max-width 0.2s"
822
849
  }
823
- }, null), n(Dn, {
850
+ }, null), n(Wn, {
824
851
  collapsible: !0,
825
852
  trigger: null,
826
- class: _.value,
853
+ class: de.value,
827
854
  style: {
828
855
  overflow: "hidden",
829
- zIndex: l.value ? 101 : void 0,
830
- paddingTop: H.value || e.isMobile || B.value ? 0 : `${e.headerHeight}px`,
856
+ zIndex: r.value ? 101 : void 0,
857
+ paddingTop: N.value || e.isMobile || P.value ? 0 : `${e.headerHeight}px`,
831
858
  top: e.layout === "wide" ? `${e.headerHeight + 20}px` : void 0,
832
859
  height: e.layout === "wide" ? `calc(100vh - ${e.headerHeight + 20 * 2}px)` : void 0
833
860
  },
834
- theme: z.value,
835
- breakpoint: T.value || void 0,
836
- collapsed: r.value,
837
- width: I.value,
838
- collapsedWidth: R.value
861
+ theme: B.value,
862
+ breakpoint: l.value || void 0,
863
+ collapsed: x.value,
864
+ width: w.value,
865
+ collapsedWidth: S.value
839
866
  }, {
840
867
  default: () => {
841
- var N, K;
842
- return [h.value && n("div", {
843
- class: ["gx-pro-sider-loading", M.value]
844
- }, [n(xe, {
845
- spinning: h.value,
846
- indicator: g == null ? void 0 : g.value
847
- }, null)]), d || null, x && !e.collapsed && n("div", {
868
+ var X, q;
869
+ return [F.value && n("div", {
870
+ class: ["gx-pro-sider-loading", H.value]
871
+ }, [n(Se, {
872
+ spinning: F.value,
873
+ indicator: b == null ? void 0 : b.value
874
+ }, null)]), I || null, $ && !e.collapsed && n("div", {
848
875
  class: {
849
- [`${M.value}`]: !0,
850
- [`${c}-extra`]: !0,
851
- [`${c}-extra-no-logo`]: !d
876
+ [`${H.value}`]: !0,
877
+ [`${p}-extra`]: !0,
878
+ [`${p}-extra-no-logo`]: !I
852
879
  }
853
- }, [x]), n("div", {
880
+ }, [$]), n("div", {
854
881
  style: {
855
882
  flex: "1 1 0%",
856
883
  overflow: "hidden auto"
857
884
  }
858
- }, [y.value && ((N = y.value) == null ? void 0 : N.call(y, e, k)) || k]), e.layout !== "wide" && n("div", {
859
- class: `${c}-links ${M.value}`
860
- }, [n(ae, {
861
- theme: z.value,
885
+ }, [v.value && ((X = v.value) == null ? void 0 : X.call(v, e, D)) || D]), e.layout !== "wide" && n("div", {
886
+ class: `${p}-links ${H.value}`
887
+ }, [n(ne, {
888
+ theme: B.value,
862
889
  inlineIndent: 16,
863
- class: `${c}-link-menu ${M.value}`,
890
+ class: `${p}-link-menu ${H.value}`,
864
891
  selectedKeys: [],
865
892
  openKeys: [],
866
893
  mode: "inline"
867
894
  }, {
868
- default: () => [(G.value || []).map((W, ge) => n(Ze, {
869
- class: `${c}-link ${M.value}`,
870
- key: ge
871
- }, Ln(W) ? W : {
872
- default: () => [W]
873
- })), Y.value && !O.value && n(Ze, {
874
- class: `${c}-collapsed-button ${M.value}`,
895
+ default: () => [(le.value || []).map((te, Tt) => n(et, {
896
+ class: `${p}-link ${H.value}`,
897
+ key: Tt
898
+ }, An(te) ? te : {
899
+ default: () => [te]
900
+ })), c.value && !d.value && n(et, {
901
+ class: `${p}-collapsed-button ${H.value}`,
875
902
  title: !1,
876
903
  key: "collapsed",
877
904
  onClick: () => {
878
- var W;
879
- e.onCollapse && ((W = e.onCollapse) == null || W.call(e, !r.value));
905
+ var te;
906
+ e.onCollapse && ((te = e.onCollapse) == null || te.call(e, !x.value));
880
907
  }
881
908
  }, {
882
909
  default: () => {
883
- var W;
884
- return [(W = Y.value) == null ? void 0 : W.call(Y, r.value)];
910
+ var te;
911
+ return [(te = c.value) == null ? void 0 : te.call(c, x.value)];
885
912
  }
886
913
  })]
887
- })]), f.value && n("div", {
888
- class: `${c}-footer ${M.value}`
889
- }, [(K = f.value) == null ? void 0 : K.call(f, e)])];
914
+ })]), y.value && n("div", {
915
+ class: `${p}-footer ${H.value}`
916
+ }, [(q = y.value) == null ? void 0 : q.call(y, e)])];
890
917
  }
891
918
  })]
892
919
  }));
893
920
  };
894
921
  }
895
- }), Re = /* @__PURE__ */ j({
922
+ }), Le = /* @__PURE__ */ A({
896
923
  name: "SiderMenuWrapper",
897
924
  inheritAttrs: !1,
898
925
  props: {
899
- ...Z,
926
+ ..._,
900
927
  matchMenuKeys: {
901
928
  type: Array,
902
929
  default: () => []
903
930
  }
904
931
  },
905
932
  setup(e) {
906
- return () => n(Q, null, [e.isMobile ? n(pe, {
933
+ return () => n(Z, null, [e.isMobile ? n(Ce, {
907
934
  maskClosable: !0,
908
935
  open: !e.collapsed,
909
936
  closable: !1,
@@ -922,12 +949,12 @@ const {
922
949
  flexDirection: "row"
923
950
  }
924
951
  }, {
925
- default: () => [n(Je, q(e, {
952
+ default: () => [n(tt, V(e, {
926
953
  collapsed: e.isMobile ? !1 : e.collapsed
927
954
  }), null)]
928
- }) : n(Je, e, null)]);
955
+ }) : n(tt, e, null)]);
929
956
  }
930
- }), vt = {
957
+ }), wt = {
931
958
  usePageCard: {
932
959
  type: Boolean,
933
960
  default: () => {
@@ -945,7 +972,7 @@ const {
945
972
  default: () => {
946
973
  }
947
974
  }
948
- }, we = {
975
+ }, Me = {
949
976
  pageChildrenExtraRender: {
950
977
  type: [Object, Function, Boolean],
951
978
  default: () => {
@@ -963,8 +990,8 @@ const {
963
990
  },
964
991
  pageHeaderStyle: L.style,
965
992
  loading: L.bool.def(!1),
966
- ...vt
967
- }, Nn = (e) => ({
993
+ ...wt
994
+ }, Un = (e) => ({
968
995
  [e.componentCls]: {
969
996
  background: e.colorBgContainer,
970
997
  padding: `${e.paddingLG}px`,
@@ -975,51 +1002,51 @@ const {
975
1002
  marginTop: "8px"
976
1003
  }
977
1004
  }
978
- }), zn = /* @__PURE__ */ j({
1005
+ }), En = /* @__PURE__ */ A({
979
1006
  name: "ProPageHeader",
980
1007
  props: {
981
- content: we.contentRender,
982
- breadcrumb: we.breadcrumbRender
1008
+ content: Me.contentRender,
1009
+ breadcrumb: Me.breadcrumbRender
983
1010
  },
984
1011
  setup(e) {
985
1012
  const {
986
1013
  breadcrumb: t,
987
1014
  getPrefixCls: a
988
- } = ee(), i = a({
1015
+ } = J(), i = a({
989
1016
  isPor: !0,
990
1017
  suffixCls: "page-header"
991
1018
  }), {
992
1019
  wrapSSR: o,
993
1020
  hashId: u
994
- } = ne("ProPageHeader", [Nn], i), g = b(() => {
995
- var m;
1021
+ } = ie("ProPageHeader", [Un], i), f = m(() => {
1022
+ var b;
996
1023
  return {
997
1024
  ...t.value,
998
- itemRender: ((m = t.value) == null ? void 0 : m.itemRender) || (({
999
- route: w
1000
- }) => w.path ? n(jt, {
1001
- to: w.path
1025
+ itemRender: ((b = t.value) == null ? void 0 : b.itemRender) || (({
1026
+ route: g
1027
+ }) => g.path ? n(Yt, {
1028
+ to: g.path
1002
1029
  }, {
1003
- default: () => [w.breadcrumbName]
1004
- }) : w.breadcrumbName)
1030
+ default: () => [g.breadcrumbName]
1031
+ }) : g.breadcrumbName)
1005
1032
  };
1006
1033
  });
1007
1034
  return () => {
1008
- var m, w;
1035
+ var b, g;
1009
1036
  return o(n("div", {
1010
1037
  class: [`${i}`, u.value, `${i}-has-breadcrumb`]
1011
- }, [e.breadcrumb ? (m = e.breadcrumb) == null ? void 0 : m.call(e, g.value) : n(Lt, g.value, null), e.content && n("div", {
1038
+ }, [e.breadcrumb ? (b = e.breadcrumb) == null ? void 0 : b.call(e, f.value) : n(Kt, f.value, null), e.content && n("div", {
1012
1039
  class: [`${i}-content`, u.value]
1013
- }, [(w = e.content) == null ? void 0 : w.call(e)])]));
1040
+ }, [(g = e.content) == null ? void 0 : g.call(e)])]));
1014
1041
  };
1015
1042
  }
1016
- }), Hn = (e) => {
1017
- var t, a, i, o, u, g, m, w;
1043
+ }), Xn = (e) => {
1044
+ var t, a, i, o, u, f, b, g;
1018
1045
  return {
1019
1046
  [`${e.proComponentsCls}-basic-layout`]: {
1020
1047
  [e.componentCls]: {
1021
- marginInline: -(((a = (t = e.layout) == null ? void 0 : t.pageContainer) == null ? void 0 : a.paddingBlockPageContainerContent) ?? 24),
1022
- marginBlockStart: -(((o = (i = e.layout) == null ? void 0 : i.pageContainer) == null ? void 0 : o.paddingBlockPageContainerContent) ?? 24)
1048
+ marginInline: -(((a = (t = e.layout) == null ? void 0 : t.pageContainer) == null ? void 0 : a.paddingBlockPageContainerContent) || 24),
1049
+ marginBlockStart: -(((o = (i = e.layout) == null ? void 0 : i.pageContainer) == null ? void 0 : o.paddingBlockPageContainerContent) || 24)
1023
1050
  },
1024
1051
  [e.gridContent]: {
1025
1052
  width: "100%"
@@ -1027,28 +1054,28 @@ const {
1027
1054
  },
1028
1055
  [e.componentCls]: {
1029
1056
  "&-children-content": {
1030
- marginInline: ((g = (u = e.layout) == null ? void 0 : u.pageContainer) == null ? void 0 : g.marginInlinePageContainerContent) ?? 24,
1031
- marginBlockStart: ((w = (m = e.layout) == null ? void 0 : m.pageContainer) == null ? void 0 : w.marginBlockPageContainerContent) ?? 24,
1057
+ marginInline: ((f = (u = e.layout) == null ? void 0 : u.pageContainer) == null ? void 0 : f.marginInlinePageContainerContent) || 24,
1058
+ marginBlockStart: ((g = (b = e.layout) == null ? void 0 : b.pageContainer) == null ? void 0 : g.marginBlockPageContainerContent) || 24,
1032
1059
  padding: "inherit"
1033
1060
  }
1034
1061
  }
1035
1062
  };
1036
1063
  };
1037
- function Vn(e) {
1038
- return Ne("ProPageContainter", (t) => {
1039
- const a = ze(t, {
1064
+ function Yn(e) {
1065
+ return ge("ProPageContainter", (t) => {
1066
+ const a = $e(t, {
1040
1067
  gridContent: `${t.proComponentsCls}-grid-content`
1041
1068
  });
1042
- return [Hn(a)];
1069
+ return [Xn(a)];
1043
1070
  }, e);
1044
1071
  }
1045
- function An(e) {
1046
- return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !ie(e);
1072
+ function Vn(e) {
1073
+ return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !oe(e);
1047
1074
  }
1048
- const Oi = /* @__PURE__ */ j({
1075
+ const Li = /* @__PURE__ */ A({
1049
1076
  inheritAttrs: !1,
1050
1077
  name: "GProPageContainer",
1051
- props: we,
1078
+ props: Me,
1052
1079
  setup(e, {
1053
1080
  slots: t,
1054
1081
  attrs: a
@@ -1057,30 +1084,30 @@ const Oi = /* @__PURE__ */ j({
1057
1084
  getPrefixCls: i,
1058
1085
  hasContentWide: o,
1059
1086
  waterMark: u,
1060
- pageHeaderRender: g,
1061
- pageContentStyle: m,
1062
- pageChildrenContentStyle: w,
1063
- pageCardProps: p,
1064
- usePageCard: O,
1065
- waterMarkProps: h
1066
- } = ee(), {
1067
- indicator: T
1068
- } = Le(), l = fe(), r = i({
1087
+ pageHeaderRender: f,
1088
+ pageContentStyle: b,
1089
+ pageChildrenContentStyle: g,
1090
+ pageCardProps: M,
1091
+ usePageCard: C,
1092
+ waterMarkProps: d
1093
+ } = J(), {
1094
+ indicator: F
1095
+ } = Ae(), l = ye(), r = i({
1069
1096
  suffixCls: "page-container",
1070
1097
  isPor: !0
1071
- }), I = i({
1098
+ }), x = i({
1072
1099
  suffixCls: "grid-content",
1073
1100
  isPor: !0
1074
- }), R = b(() => e.pageCardProps || p.value), v = b(() => e.waterMarkProps || h.value || {}), y = b(() => e.pageContentStyle || m.value), f = b(() => e.pageChildrenContentStyle || w.value || {}), C = b(() => _e(e.usePageCard) ? e.usePageCard : _e(O.value) ? O.value : !0), {
1075
- wrapSSR: F,
1076
- hashId: c
1077
- } = Vn(r), S = () => {
1078
- var P, H, z, D, V, _;
1079
- const B = U(t, e, "pageChildrenExtraRender");
1101
+ }), w = m(() => e.pageCardProps || M.value), S = m(() => e.waterMarkProps || d.value || {}), O = m(() => e.pageContentStyle || b.value), v = m(() => e.pageChildrenContentStyle || g.value || {}), y = m(() => qe(e.usePageCard) ? e.usePageCard : qe(C.value) ? C.value : !0), {
1102
+ wrapSSR: T,
1103
+ hashId: h
1104
+ } = Yn(r), p = () => {
1105
+ var N, B, U, z, H, ee;
1106
+ const k = W(t, e, "pageChildrenExtraRender");
1080
1107
  return n("div", {
1081
- class: `${r}-children-content ${c.value}`,
1082
- style: f.value
1083
- }, [B && (B == null ? void 0 : B()), C.value ? n(Dt, q(R.value ? le(R.value, ["loading", "bodyStyle"]) : {}, {
1108
+ class: `${r}-children-content ${h.value}`,
1109
+ style: v.value
1110
+ }, [k && (k == null ? void 0 : k()), y.value ? n(jt, V(w.value ? re(w.value, ["loading", "bodyStyle"]) : {}, {
1084
1111
  style: o.value ? {
1085
1112
  minHeight: "853px"
1086
1113
  } : void 0,
@@ -1090,53 +1117,53 @@ const Oi = /* @__PURE__ */ j({
1090
1117
  var G;
1091
1118
  return [(G = t.default) == null ? void 0 : G.call(t)];
1092
1119
  }
1093
- }) : B ? n("div", {
1120
+ }) : k ? n("div", {
1094
1121
  style: {
1095
- marginBlockStart: `${(D = (z = (H = (P = l == null ? void 0 : l.token) == null ? void 0 : P.value) == null ? void 0 : H.layout) == null ? void 0 : z.pageContainer) == null ? void 0 : D.marginBlockPageContainerContent}px`
1122
+ marginBlockStart: `${(z = (U = (B = (N = l == null ? void 0 : l.token) == null ? void 0 : N.value) == null ? void 0 : B.layout) == null ? void 0 : U.pageContainer) == null ? void 0 : z.marginBlockPageContainerContent}px`
1096
1123
  }
1097
- }, [(V = t.default) == null ? void 0 : V.call(t)]) : (_ = t.default) == null ? void 0 : _.call(t)]);
1098
- }, M = () => {
1099
- let B;
1100
- return n(Q, null, [e.waterMark && u.value ? n(an, v.value, An(B = S()) ? B : {
1101
- default: () => [B]
1102
- }) : S()]);
1124
+ }, [(H = t.default) == null ? void 0 : H.call(t)]) : (ee = t.default) == null ? void 0 : ee.call(t)]);
1125
+ }, P = () => {
1126
+ let k;
1127
+ return n(Z, null, [e.waterMark && u.value ? n(dn, S.value, Vn(k = p()) ? k : {
1128
+ default: () => [k]
1129
+ }) : p()]);
1103
1130
  };
1104
1131
  return () => {
1105
- const B = U(t, e, "pageHeaderRender") || g.value, P = U(t, e, "breadcrumbRender"), H = U(t, e, "contentRender");
1106
- return F(n(xe, {
1132
+ const k = W(t, e, "pageHeaderRender") || f.value, N = W(t, e, "breadcrumbRender"), B = W(t, e, "contentRender");
1133
+ return T(n(Se, {
1107
1134
  spinning: e.loading,
1108
- indicator: T == null ? void 0 : T.value
1135
+ indicator: F == null ? void 0 : F.value
1109
1136
  }, {
1110
1137
  default: () => [n("div", {
1111
1138
  style: a.style,
1112
1139
  class: {
1113
- [`${c.value}`]: !0,
1140
+ [`${h.value}`]: !0,
1114
1141
  [`${r}`]: !0
1115
1142
  }
1116
- }, [!o.value && B !== !1 && (B || n(zn, {
1143
+ }, [!o.value && k !== !1 && (k || n(En, {
1117
1144
  style: e.pageHeaderStyle,
1118
- breadcrumb: P,
1119
- content: H
1145
+ breadcrumb: N,
1146
+ content: B
1120
1147
  }, null)), n("div", {
1121
- class: [I, c.value]
1148
+ class: [x, h.value]
1122
1149
  }, [n("div", {
1123
- class: `${I}-children ${c.value}`,
1124
- style: y.value
1125
- }, [M()])])])]
1150
+ class: `${x}-children ${h.value}`,
1151
+ style: O.value
1152
+ }, [P()])])])]
1126
1153
  }));
1127
1154
  };
1128
1155
  }
1129
- }), Ke = {
1130
- ...se,
1131
- ...Me,
1132
- logo: re.logo,
1133
- logoStyle: re.logoStyle,
1134
- logoDirection: re.logoDirection,
1156
+ }), Ve = {
1157
+ ...ue,
1158
+ ...ke,
1159
+ logo: se.logo,
1160
+ logoStyle: se.logoStyle,
1161
+ logoDirection: se.logoDirection,
1135
1162
  menuLoading: Boolean,
1136
1163
  autoHideHeader: Boolean,
1137
1164
  collapsed: Boolean,
1138
1165
  isMobile: Boolean,
1139
- siderWidth: Z.siderWidth,
1166
+ siderWidth: _.siderWidth,
1140
1167
  headerTheme: {
1141
1168
  type: String,
1142
1169
  default: "dark"
@@ -1160,14 +1187,14 @@ const Oi = /* @__PURE__ */ j({
1160
1187
  default: () => {
1161
1188
  }
1162
1189
  },
1163
- collapsedButtonRender: Z.collapsedButtonRender,
1164
- matchMenuKeys: Z.matchMenuKeys,
1165
- onCollapse: Z.onCollapse,
1166
- onOpenKeys: Z.onOpenKeys,
1190
+ collapsedButtonRender: _.collapsedButtonRender,
1191
+ matchMenuKeys: _.matchMenuKeys,
1192
+ onCollapse: _.onCollapse,
1193
+ onOpenKeys: _.onOpenKeys,
1167
1194
  onMenuHeaderClick: Function,
1168
- onSelect: Z.onSelect
1169
- }, xt = {
1170
- ...Ke,
1195
+ onSelect: _.onSelect
1196
+ }, St = {
1197
+ ...Ve,
1171
1198
  headerTitleRender: {
1172
1199
  type: [Object, Function],
1173
1200
  default: () => {
@@ -1184,15 +1211,15 @@ const Oi = /* @__PURE__ */ j({
1184
1211
  }
1185
1212
  },
1186
1213
  hasSiderMenu: Boolean,
1187
- collapsedWidth: Z.collapsedWidth,
1188
- siderWidth: Z.siderWidth
1189
- }, Ct = {
1214
+ collapsedWidth: _.collapsedWidth,
1215
+ siderWidth: _.siderWidth
1216
+ }, It = {
1190
1217
  loading: L.looseBool,
1191
- isMobile: Z.isMobile,
1192
- collapsed: Me.collapsed,
1193
- siderWidth: Z.siderWidth,
1194
- collapsedWidth: Z.collapsedWidth,
1195
- isFixedMultiTab: se.fixedMultiTab,
1218
+ isMobile: _.isMobile,
1219
+ collapsed: ke.collapsed,
1220
+ siderWidth: _.siderWidth,
1221
+ collapsedWidth: _.collapsedWidth,
1222
+ isFixedMultiTab: ue.fixedMultiTab,
1196
1223
  onReloadPage: {
1197
1224
  type: Function
1198
1225
  },
@@ -1202,7 +1229,7 @@ const Oi = /* @__PURE__ */ j({
1202
1229
  "onUpdate:tabs": {
1203
1230
  type: Function
1204
1231
  }
1205
- }, jn = (e) => ({
1232
+ }, _n = (e) => ({
1206
1233
  [e.componentCls]: {
1207
1234
  marginBlock: 0,
1208
1235
  marginBlockStart: 48,
@@ -1233,14 +1260,14 @@ const Oi = /* @__PURE__ */ j({
1233
1260
  }
1234
1261
  }
1235
1262
  }
1236
- }), wt = [{
1263
+ }), Mt = [{
1237
1264
  key: "Ant Design Pro",
1238
1265
  title: "Ant Design Pro",
1239
1266
  href: "https://pro.ant.design",
1240
1267
  blankTarget: !0
1241
1268
  }, {
1242
1269
  key: "gitee",
1243
- title: n(Et, null, null),
1270
+ title: n(qt, null, null),
1244
1271
  href: "https://gitee.com/gx12358/vue-antd-admin",
1245
1272
  blankTarget: !0
1246
1273
  }, {
@@ -1248,12 +1275,12 @@ const Oi = /* @__PURE__ */ j({
1248
1275
  title: "Ant Design Vue",
1249
1276
  href: "https://next.antdv.com/components/overview-cn/",
1250
1277
  blankTarget: !0
1251
- }], ke = /* @__PURE__ */ j({
1278
+ }], De = /* @__PURE__ */ A({
1252
1279
  name: "GlobalFooter",
1253
1280
  props: {
1254
1281
  links: {
1255
1282
  type: [Array, Boolean],
1256
- default: wt
1283
+ default: Mt
1257
1284
  },
1258
1285
  copyright: {
1259
1286
  type: [Object, Function, Boolean, String],
@@ -1261,14 +1288,14 @@ const Oi = /* @__PURE__ */ j({
1261
1288
  }
1262
1289
  },
1263
1290
  setup(e) {
1264
- const t = me({
1291
+ const t = he({
1265
1292
  suffixCls: "global-footer",
1266
1293
  isPor: !0
1267
1294
  }), {
1268
1295
  wrapSSR: a,
1269
1296
  hashId: i
1270
- } = ne("ProLayoutFooter", [jn], t);
1271
- return () => a(n(Nt, {
1297
+ } = ie("ProLayoutFooter", [_n], t);
1298
+ return () => a(n(At, {
1272
1299
  style: {
1273
1300
  padding: 0
1274
1301
  }
@@ -1284,18 +1311,18 @@ const Oi = /* @__PURE__ */ j({
1284
1311
  href: o.href
1285
1312
  }, [o.title]))]), e.copyright && n("div", {
1286
1313
  class: `${t}-copyright ${i.value}`
1287
- }, [te("Copyright  "), rn().format("YYYY"), te("  "), n("a", {
1314
+ }, [Q("Copyright  "), fn().format("YYYY"), Q("  "), n("a", {
1288
1315
  href: "https://beian.miit.gov.cn/"
1289
1316
  }, [e.copyright])])])]
1290
1317
  }));
1291
1318
  }
1292
- }), St = {
1293
- ...se,
1294
- ...Ke,
1295
- ...Z,
1296
- ...xt,
1297
- ...Ct,
1298
- ...we,
1319
+ }), Ot = {
1320
+ ...ue,
1321
+ ...Ve,
1322
+ ..._,
1323
+ ...St,
1324
+ ...It,
1325
+ ...Me,
1299
1326
  pure: Boolean,
1300
1327
  token: Object,
1301
1328
  waterMark: {
@@ -1319,7 +1346,7 @@ const Oi = /* @__PURE__ */ j({
1319
1346
  loading: L.looseBool,
1320
1347
  footerLinks: {
1321
1348
  type: [Array, Boolean],
1322
- default: wt
1349
+ default: Mt
1323
1350
  },
1324
1351
  copyrightRender: {
1325
1352
  type: [Object, Function, Boolean, String],
@@ -1340,14 +1367,14 @@ const Oi = /* @__PURE__ */ j({
1340
1367
  default: () => []
1341
1368
  },
1342
1369
  collapsed: L.looseBool
1343
- }, Wn = (e) => ({
1370
+ }, Gn = (e) => ({
1344
1371
  [e.componentCls]: {
1345
1372
  display: "flex",
1346
1373
  flexDirection: "column",
1347
1374
  width: "100%",
1348
1375
  minHeight: "100vh"
1349
1376
  }
1350
- }), Kn = (e) => {
1377
+ }), qn = (e) => {
1351
1378
  var t, a;
1352
1379
  return {
1353
1380
  [e.componentCls]: {
@@ -1378,7 +1405,7 @@ const Oi = /* @__PURE__ */ j({
1378
1405
  }
1379
1406
  }
1380
1407
  };
1381
- }, Un = (e) => {
1408
+ }, Zn = (e) => {
1382
1409
  var t, a;
1383
1410
  return {
1384
1411
  [`${e.componentCls}-title`]: {
@@ -1422,7 +1449,7 @@ const Oi = /* @__PURE__ */ j({
1422
1449
  "&-fixed": {
1423
1450
  position: "fixed",
1424
1451
  height: 62,
1425
- top: ((a = (t = e.layout) == null ? void 0 : t.header) == null ? void 0 : a.heightLayoutHeader) || A.headerHeight,
1452
+ top: ((a = (t = e.layout) == null ? void 0 : t.header) == null ? void 0 : a.heightLayoutHeader) || K.headerHeight,
1426
1453
  right: 0,
1427
1454
  zIndex: 9,
1428
1455
  transition: "width .2s"
@@ -1430,15 +1457,15 @@ const Oi = /* @__PURE__ */ j({
1430
1457
  }
1431
1458
  };
1432
1459
  };
1433
- function En(e) {
1434
- return Ne("ProMultiTabs", (t) => {
1435
- const a = ze(t, {
1460
+ function Jn(e) {
1461
+ return ge("ProMultiTabs", (t) => {
1462
+ const a = $e(t, {
1436
1463
  componentWrapCls: `${t.componentCls}-wrap`
1437
1464
  });
1438
- return [Un(a)];
1465
+ return [Zn(a)];
1439
1466
  }, e);
1440
1467
  }
1441
- const Xn = [
1468
+ const Qn = [
1442
1469
  {
1443
1470
  key: "closeOthersTabs",
1444
1471
  label: "关闭其他"
@@ -1456,16 +1483,16 @@ const Xn = [
1456
1483
  label: "刷新当前页"
1457
1484
  }
1458
1485
  ];
1459
- function Yn(e) {
1460
- return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !ie(e);
1486
+ function ea(e) {
1487
+ return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !oe(e);
1461
1488
  }
1462
- function E(e) {
1489
+ function Y(e) {
1463
1490
  var t;
1464
1491
  return ((t = e == null ? void 0 : e.meta) == null ? void 0 : t.currenFulltPath) || e.fullPath || e.path;
1465
1492
  }
1466
- const _n = Pe.TabPane, Gn = ae.Item, qn = /* @__PURE__ */ j({
1493
+ const ta = je.TabPane, na = ne.Item, aa = /* @__PURE__ */ A({
1467
1494
  props: {
1468
- ...Ct,
1495
+ ...It,
1469
1496
  visible: {
1470
1497
  type: Boolean,
1471
1498
  default: !0
@@ -1476,325 +1503,273 @@ const _n = Pe.TabPane, Gn = ae.Item, qn = /* @__PURE__ */ j({
1476
1503
  const {
1477
1504
  isMobile: t,
1478
1505
  isFixedMultiTab: a
1479
- } = Se(e), i = Oe(!1), o = rt({
1506
+ } = Oe(e), i = we(!1), o = He({
1480
1507
  activeKey: "",
1481
1508
  contextMenuActiveKey: ""
1482
- }), u = De(), {
1483
- menuData: g,
1484
- flatMenuData: m,
1485
- layout: w,
1486
- splitMenus: p,
1487
- getPrefixCls: O
1488
- } = ee(), h = O({
1509
+ }), u = We(), {
1510
+ menuData: f,
1511
+ flatMenuData: b,
1512
+ layout: g,
1513
+ splitMenus: M,
1514
+ getPrefixCls: C
1515
+ } = J(), d = C({
1489
1516
  isPor: !0,
1490
1517
  suffixCls: "multi-tab"
1491
1518
  }), {
1492
- wrapSSR: T,
1519
+ wrapSSR: F,
1493
1520
  hashId: l
1494
- } = En(h), r = Oe([]);
1495
- de(r, () => {
1496
- var d;
1497
- (d = e.onChangeTabs) == null || d.call(e, He(X(r)));
1521
+ } = Jn(d), r = we([]);
1522
+ ce(r, () => {
1523
+ var c;
1524
+ (c = e.onChangeTabs) == null || c.call(e, Be(j(r)));
1498
1525
  }, {
1499
1526
  deep: !0
1500
1527
  });
1501
- const I = b(() => w.value === "mix" && !e.isMobile && p.value), R = b(() => E(u.currentRoute.value)), v = b(() => a.value && !t.value), y = b(() => {
1502
- const d = !(I.value && X(m.value).length === 0 || g.value.length === 0 || w.value === "top");
1503
- return v.value && d ? `calc(100% - ${e.collapsed ? e.collapsedWidth : e.siderWidth}px)` : "100%";
1504
- }), f = b(() => mt(`${h}-wrap`, {
1528
+ const x = m(() => g.value === "mix" && !e.isMobile && M.value), w = m(() => Y(u.currentRoute.value)), S = m(() => a.value && !t.value), O = m(() => {
1529
+ const c = !(x.value && j(b.value).length === 0 || f.value.length === 0 || g.value === "top");
1530
+ return S.value && c ? `calc(100% - ${e.collapsed ? e.collapsedWidth : e.siderWidth}px)` : "100%";
1531
+ }), v = m(() => ht(`${d}-wrap`, {
1505
1532
  [`${l.value}`]: !0,
1506
- [`${h}-wrap-fixed`]: e.isFixedMultiTab,
1507
- [`${h}-wrap-loading`]: e.loading
1508
- })), C = b(() => {
1509
- const d = {
1533
+ [`${d}-wrap-fixed`]: e.isFixedMultiTab,
1534
+ [`${d}-wrap-loading`]: e.loading
1535
+ })), y = m(() => {
1536
+ const c = {
1510
1537
  display: e.visible ? void 0 : "none"
1511
1538
  };
1512
1539
  return e.isFixedMultiTab ? {
1513
1540
  margin: 0,
1514
- width: y.value,
1541
+ width: O.value,
1515
1542
  paddingTop: "6px",
1516
1543
  zIndex: 99,
1517
- ...d
1518
- } : d;
1519
- }), F = (d) => E(d) === R.value, c = (d) => {
1520
- if (d.name && d.meta && d.meta.tagHidden !== !0) {
1521
- const x = E(d), k = r.value.find((N) => E(N) === x), $ = {
1522
- path: d.path,
1523
- fullPath: x,
1524
- query: d.query,
1525
- params: d.params,
1526
- name: d.name,
1544
+ ...c
1545
+ } : c;
1546
+ }), T = (c) => Y(c) === w.value, h = (c) => {
1547
+ if (c.name && c.meta && c.meta.tagHidden !== !0) {
1548
+ const R = Y(c), I = r.value.find((D) => Y(D) === R), $ = {
1549
+ path: c.path,
1550
+ fullPath: R,
1551
+ query: c.query,
1552
+ params: c.params,
1553
+ name: c.name,
1527
1554
  meta: {
1528
- ...d.meta,
1529
- originTagPath: d.fullPath
1555
+ ...c.meta,
1556
+ originTagPath: c.fullPath
1530
1557
  }
1531
1558
  };
1532
- k ? Object.assign(k, $) : d.meta.tagFixed ? r.value.unshift($) : r.value.push($), F(d) && (o.activeKey = x);
1559
+ I ? Object.assign(I, $) : c.meta.tagFixed ? r.value.unshift($) : r.value.push($), T(c) && (o.activeKey = R);
1533
1560
  }
1534
- }, S = (d) => {
1535
- d.forEach((x) => {
1536
- x.meta && x.meta.tagFixed && c(x), x.children && S(x.children);
1561
+ }, p = (c) => {
1562
+ c.forEach((R) => {
1563
+ R.meta && R.meta.tagFixed && h(R), R.children && p(R.children);
1537
1564
  });
1538
1565
  };
1539
- de(() => g.value, (d) => {
1540
- S(d);
1566
+ ce(() => f.value, (c) => {
1567
+ p(c);
1541
1568
  }, {
1542
1569
  deep: !0,
1543
1570
  immediate: !0
1544
- }), de(() => u.currentRoute.value, (d) => {
1545
- c(d);
1571
+ }), ce(() => u.currentRoute.value, (c) => {
1572
+ h(c);
1546
1573
  }, {
1547
1574
  deep: !0,
1548
1575
  immediate: !0
1549
1576
  });
1550
- const M = (d) => {
1551
- var x, k;
1552
- return ((k = (x = r.value.find(($) => (d || o.activeKey) === E($))) == null ? void 0 : x.meta) == null ? void 0 : k.originTagPath) || d || o.activeKey;
1553
- }, B = () => {
1554
- const d = r.value.slice(-1)[0];
1555
- d ? u.push({
1556
- path: M(E(d))
1577
+ const P = (c) => {
1578
+ var R, I;
1579
+ return ((I = (R = r.value.find(($) => (c || o.activeKey) === Y($))) == null ? void 0 : R.meta) == null ? void 0 : I.originTagPath) || c || o.activeKey;
1580
+ }, k = () => {
1581
+ const c = r.value.slice(-1)[0];
1582
+ c ? u.push({
1583
+ path: P(Y(c))
1557
1584
  }) : u.push("/");
1558
- }, P = async (d) => {
1559
- const x = r.value.find((k) => d === E(k));
1560
- r.value = r.value.filter((k) => E(k) !== d), x && F(x) && B();
1561
- }, H = (d) => {
1562
- const x = r.value.find((k) => E(k) === d);
1563
- x && o.activeKey !== E(x) && u.push({
1564
- path: M(E(x))
1585
+ }, N = async (c) => {
1586
+ const R = r.value.find((I) => c === Y(I));
1587
+ r.value = r.value.filter((I) => Y(I) !== c), R && T(R) && k();
1588
+ }, B = (c) => {
1589
+ const R = r.value.find((I) => Y(I) === c);
1590
+ R && o.activeKey !== Y(R) && u.push({
1591
+ path: P(Y(R))
1565
1592
  });
1566
- }, z = () => {
1567
- var d;
1568
- i.value = !0, e.onReloadPage && ((d = e.onReloadPage) == null || d.call(e)), setTimeout(() => {
1593
+ }, U = () => {
1594
+ var c;
1595
+ i.value = !0, e.onReloadPage && ((c = e.onReloadPage) == null || c.call(e)), setTimeout(() => {
1569
1596
  i.value = !1;
1570
1597
  }, 500);
1571
- }, D = (d) => d.meta && d.meta.tagFixed, V = (d) => o[d], _ = (d, x) => {
1572
- const k = r.value.findIndex(($) => E($) === V(x));
1573
- switch (d) {
1598
+ }, z = (c) => c.meta && c.meta.tagFixed, H = (c) => o[c], ee = (c, R) => {
1599
+ const I = r.value.findIndex(($) => Y($) === H(R));
1600
+ switch (c) {
1574
1601
  case "closeOthersTabs":
1575
1602
  r.value = r.value.filter(($) => {
1576
- var N;
1577
- return E($) === V(x) || ((N = $.meta) == null ? void 0 : N.tagFixed);
1603
+ var D;
1604
+ return Y($) === H(R) || ((D = $.meta) == null ? void 0 : D.tagFixed);
1578
1605
  });
1579
1606
  break;
1580
1607
  case "closeLeftTabs":
1581
- k && (r.value = r.value.filter(($, N) => {
1582
- var K;
1583
- return N >= k || ((K = $.meta) == null ? void 0 : K.tagFixed);
1608
+ I && (r.value = r.value.filter(($, D) => {
1609
+ var E;
1610
+ return D >= I || ((E = $.meta) == null ? void 0 : E.tagFixed);
1584
1611
  }));
1585
1612
  break;
1586
1613
  case "closeRightTabs":
1587
- k && (r.value = r.value.filter(($, N) => {
1588
- var K;
1589
- return N <= k || ((K = $.meta) == null ? void 0 : K.tagFixed);
1614
+ I && (r.value = r.value.filter(($, D) => {
1615
+ var E;
1616
+ return D <= I || ((E = $.meta) == null ? void 0 : E.tagFixed);
1590
1617
  }));
1591
1618
  break;
1592
1619
  case "reloadPage":
1593
- (k === 0 || k) && o.activeKey === V(x) && z();
1620
+ (I === 0 || I) && o.activeKey === H(R) && U();
1594
1621
  break;
1595
1622
  }
1596
- o.activeKey !== V(x) && u.push(M(V(x)));
1597
- }, G = (d, x) => {
1598
- const k = r.value.findIndex(($) => E($) === x);
1599
- if (d === "closeOthersTabs")
1600
- return r.value.filter((N, K) => {
1601
- var W;
1602
- return K !== k && !((W = N.meta) != null && W.tagFixed);
1623
+ o.activeKey !== H(R) && u.push(P(H(R)));
1624
+ }, G = (c, R) => {
1625
+ const I = r.value.findIndex(($) => Y($) === R);
1626
+ if (c === "closeOthersTabs")
1627
+ return r.value.filter((D, E) => {
1628
+ var X;
1629
+ return E !== I && !((X = D.meta) != null && X.tagFixed);
1603
1630
  }).length === 0;
1604
- if (d === "closeLeftTabs")
1605
- return r.value.filter((N, K) => {
1606
- var W;
1607
- return K < k && !((W = N.meta) != null && W.tagFixed);
1631
+ if (c === "closeLeftTabs")
1632
+ return r.value.filter((D, E) => {
1633
+ var X;
1634
+ return E < I && !((X = D.meta) != null && X.tagFixed);
1608
1635
  }).length === 0;
1609
- if (d === "closeRightTabs")
1610
- return r.value.filter((N, K) => {
1611
- var W;
1612
- return K > k && !((W = N.meta) != null && W.tagFixed);
1636
+ if (c === "closeRightTabs")
1637
+ return r.value.filter((D, E) => {
1638
+ var X;
1639
+ return E > I && !((X = D.meta) != null && X.tagFixed);
1613
1640
  }).length === 0;
1614
- }, Y = (d) => {
1615
- let x;
1641
+ }, de = (c) => {
1642
+ let R;
1616
1643
  const {
1617
- path: k,
1644
+ path: I,
1618
1645
  stateType: $
1619
- } = d;
1620
- return n(ae, {
1646
+ } = c;
1647
+ return n(ne, {
1621
1648
  selectedKeys: [],
1622
- onClick: (N) => _(N.key, $)
1623
- }, Yn(x = Xn.map((N) => n(Gn, {
1624
- key: N.key,
1625
- disabled: G(N.key, k)
1649
+ onClick: (D) => ee(D.key, $)
1650
+ }, ea(R = Qn.map((D) => n(na, {
1651
+ key: D.key,
1652
+ disabled: G(D.key, I)
1626
1653
  }, {
1627
- default: () => [N.label]
1628
- }))) ? x : {
1629
- default: () => [x]
1654
+ default: () => [D.label]
1655
+ }))) ? R : {
1656
+ default: () => [R]
1630
1657
  });
1631
- }, J = (d) => {
1658
+ }, le = (c) => {
1632
1659
  const {
1633
- router: x
1634
- } = d;
1635
- return n(Ye, {
1660
+ router: R
1661
+ } = c;
1662
+ return n(Ge, {
1636
1663
  trigger: "contextmenu",
1637
- overlay: n(Y, {
1638
- path: E(x) || "",
1664
+ overlay: n(de, {
1665
+ path: Y(R) || "",
1639
1666
  stateType: "contextMenuActiveKey"
1640
1667
  }, null),
1641
- onOpenChange: (k) => {
1642
- o.contextMenuActiveKey = k && E(x) || "";
1668
+ onOpenChange: (I) => {
1669
+ o.contextMenuActiveKey = I && Y(R) || "";
1643
1670
  }
1644
1671
  }, {
1645
1672
  default: () => {
1646
- var k;
1673
+ var I;
1647
1674
  return [n("div", {
1648
- class: [`${h}-title`, l.value]
1649
- }, [(k = x.meta) == null ? void 0 : k.title, o.activeKey === E(x) && n(Yt, {
1650
- class: [`${h}-reload-btn`, l.value],
1675
+ class: [`${d}-title`, l.value]
1676
+ }, [(I = R.meta) == null ? void 0 : I.title, o.activeKey === Y(R) && n(Jt, {
1677
+ class: [`${d}-reload-btn`, l.value],
1651
1678
  spin: i.value,
1652
1679
  onClick: ($) => {
1653
- $.stopPropagation(), !i.value && z();
1680
+ $.stopPropagation(), !i.value && U();
1654
1681
  }
1655
- }, null), r.value.length > 1 && !D(x) && n(ut, {
1656
- class: [`${h}-close-btn`, l.value],
1682
+ }, null), r.value.length > 1 && !z(R) && n(ct, {
1683
+ class: [`${d}-close-btn`, l.value],
1657
1684
  onClick: ($) => {
1658
- $.stopPropagation(), !i.value && P(E(x) || "");
1685
+ $.stopPropagation(), !i.value && N(Y(R) || "");
1659
1686
  }
1660
1687
  }, null)])];
1661
1688
  }
1662
1689
  });
1663
1690
  };
1664
- return () => T(n(Q, null, [!!e.isFixedMultiTab && Ft(n("div", {
1665
- class: [`${h}-fixed`, l.value]
1666
- }, null), [[$t, e.visible]]), n(Pe, {
1691
+ return () => F(n(Z, null, [!!e.isFixedMultiTab && Dt(n("div", {
1692
+ class: [`${d}-fixed`, l.value]
1693
+ }, null), [[Nt, e.visible]]), n(je, {
1667
1694
  hideAdd: !0,
1668
1695
  type: "editable-card",
1669
- style: C.value,
1670
- class: f.value,
1696
+ style: y.value,
1697
+ class: v.value,
1671
1698
  activeKey: o.activeKey,
1672
- onTabClick: H
1699
+ onTabClick: B
1673
1700
  }, {
1674
- default: () => [r.value.map((d) => n(_n, {
1675
- key: E(d),
1701
+ default: () => [r.value.map((c) => n(ta, {
1702
+ key: Y(c),
1676
1703
  closable: !1,
1677
- tab: n(J, {
1678
- router: d
1704
+ tab: n(le, {
1705
+ router: c
1679
1706
  }, null)
1680
1707
  }, null))],
1681
- rightExtra: () => n(Ye, {
1682
- overlay: n(Y, {
1708
+ rightExtra: () => n(Ge, {
1709
+ overlay: n(de, {
1683
1710
  path: o.activeKey,
1684
1711
  stateType: "activeKey"
1685
1712
  }, null)
1686
1713
  }, {
1687
- default: () => [n(Xt, {
1688
- class: [`${h}-dropdown-menu-btn`, l.value],
1714
+ default: () => [n(Zt, {
1715
+ class: [`${d}-dropdown-menu-btn`, l.value],
1689
1716
  rotate: 90
1690
1717
  }, null)]
1691
1718
  })
1692
1719
  })]));
1693
1720
  }
1694
1721
  }), {
1695
- Content: Zn
1696
- } = ce, Ue = (e, {
1722
+ Content: oa
1723
+ } = fe, _e = (e, {
1697
1724
  slots: t,
1698
1725
  attrs: a
1699
1726
  }) => {
1700
- var I;
1727
+ var x;
1701
1728
  const {
1702
1729
  hashId: i,
1703
1730
  prefixCls: o,
1704
1731
  isMobile: u,
1705
- loading: g,
1706
- collapsed: m,
1707
- siderWidth: w,
1708
- isShowTabsBar: p,
1709
- isFixedMultiTab: O,
1710
- onReloadPage: h,
1711
- onChangeTabs: T
1732
+ loading: f,
1733
+ collapsed: b,
1734
+ siderWidth: g,
1735
+ isShowTabsBar: M,
1736
+ isFixedMultiTab: C,
1737
+ onReloadPage: d,
1738
+ onChangeTabs: F
1712
1739
  } = e;
1713
1740
  if (e.isChildrenLayout)
1714
- return (I = t.default) == null ? void 0 : I.call(t);
1741
+ return (x = t.default) == null ? void 0 : x.call(t);
1715
1742
  const {
1716
1743
  flatMenuData: l,
1717
1744
  layout: r
1718
- } = ee();
1719
- return n(Q, null, [n(qn, {
1720
- visible: (X(r) === "mix" ? X(l).length > 0 : !0) && p,
1745
+ } = J();
1746
+ return n(Z, null, [n(aa, {
1747
+ visible: (j(r) === "mix" ? j(l).length > 0 : !0) && M,
1721
1748
  isMobile: u,
1722
- loading: g,
1723
- isFixedMultiTab: O,
1724
- siderWidth: w,
1725
- collapsed: m,
1726
- onReloadPage: h,
1727
- onChangeTabs: T
1728
- }, null), n(Zn, {
1749
+ loading: f,
1750
+ isFixedMultiTab: C,
1751
+ siderWidth: g,
1752
+ collapsed: b,
1753
+ onReloadPage: d,
1754
+ onChangeTabs: F
1755
+ }, null), n(oa, {
1729
1756
  style: a.style,
1730
1757
  class: [`${o}-content`]
1731
1758
  }, {
1732
1759
  default: () => {
1733
- var R;
1734
- return [g && n(cn, null, null), n("div", {
1760
+ var w;
1761
+ return [f && n(bn, null, null), n("div", {
1735
1762
  class: [`${o}-content-spin-container`, i],
1736
1763
  style: {
1737
- opacity: g ? "0" : void 0
1764
+ opacity: f ? "0" : void 0
1738
1765
  }
1739
- }, [(R = t.default) == null ? void 0 : R.call(t)])];
1766
+ }, [(w = t.default) == null ? void 0 : w.call(t)])];
1740
1767
  }
1741
1768
  })]);
1742
1769
  };
1743
- Ue.inheritAttrs = !1;
1744
- Ue.displayName = "wrap-content";
1745
- const Jn = (e) => {
1746
- var t, a, i, o;
1747
- return {
1748
- [`${e.proComponentsCls}-basic-layout`]: {
1749
- [`${e.antCls}-layout-header${e.componentCls}${e.componentCls}-light`]: {
1750
- backgroundColor: ((a = (t = e.layout) == null ? void 0 : t.header) == null ? void 0 : a.colorBgMenu) || e.colorBgElevated
1751
- },
1752
- [`${e.antCls}-layout-header${e.componentCls}${e.componentCls}-dark`]: {
1753
- backgroundColor: (o = (i = e.layout) == null ? void 0 : i.header) == null ? void 0 : o.colorDarkBgMenu,
1754
- [`${e.proComponentsCls}-global-header-collapsed-button`]: {
1755
- color: "#fff"
1756
- }
1757
- },
1758
- [`${e.antCls}-layout-header${e.componentCls}`]: {
1759
- zIndex: 19,
1760
- paddingBlock: 0,
1761
- paddingInline: 0,
1762
- WebkitBackdropFilter: "blur(8px)",
1763
- backdropFilter: "blur(8px)",
1764
- transition: "background-color 0.2s cubic-bezier(.645,.045,.355,1)",
1765
- [`&${e.proComponentsCls}`]: {
1766
- "&-fixed-header": {
1767
- position: "fixed",
1768
- width: "100%",
1769
- zIndex: 9,
1770
- top: 0,
1771
- transition: "width .2s",
1772
- "&-action": {
1773
- transition: "width .3s cubic-bezier(.645,.045,.355,1)"
1774
- }
1775
- },
1776
- "&-header-actions": {
1777
- display: "flex",
1778
- alignItems: "center",
1779
- fontSize: "16",
1780
- cursor: "pointer",
1781
- "& &-item": {
1782
- paddingBlock: 0,
1783
- paddingInline: 8,
1784
- "&:hover": {
1785
- color: e.colorText
1786
- }
1787
- }
1788
- },
1789
- "&-header-realDark": { boxShadow: "0 2px 8px 0 rgba(0, 0, 0, 65%)" },
1790
- "&-header-actions-header-action": {
1791
- transition: "width 0.3s cubic-bezier(0.645, 0.045, 0.355, 1)"
1792
- }
1793
- }
1794
- }
1795
- }
1796
- };
1797
- }, Qn = (e) => ({
1770
+ _e.inheritAttrs = !1;
1771
+ _e.displayName = "wrap-content";
1772
+ const ia = (e) => ({
1798
1773
  [`${e.proComponentsCls}-header`]: {
1799
1774
  "&-light": {
1800
1775
  [`${e.componentCls}-logo`]: {
@@ -1812,13 +1787,8 @@ const Jn = (e) => {
1812
1787
  paddingInline: 16,
1813
1788
  width: "100%",
1814
1789
  height: "100%",
1815
- boxShadow: "0 1px 4px rgba(0,21,41,.08)",
1816
- boxSizing: "border-box",
1817
- "&-mix": {
1818
- boxShadow: "0 1px 4px 0 rgba(0,21,41,.12)"
1819
- },
1790
+ boxShadow: "0 1px 4px rgba(0,21,41,.12)",
1820
1791
  "&-wide": {
1821
- boxShadow: "0 1px 4px 0 rgba(0,21,41,.12)",
1822
1792
  padding: 0,
1823
1793
  [`${e.componentCls}-main`]: {
1824
1794
  margin: "0 auto"
@@ -1877,96 +1847,103 @@ const Jn = (e) => {
1877
1847
  marginInlineEnd: 0
1878
1848
  }
1879
1849
  }
1880
- }), It = {
1881
- ...Z,
1882
- ...Ke
1883
- }, ea = (e, t) => e === !1 ? null : e ? e(t, null) : t, ta = /* @__PURE__ */ j({
1884
- props: It,
1850
+ }), Rt = {
1851
+ ..._,
1852
+ ...Ve
1853
+ }, la = (e, t) => e === !1 ? null : e ? e(t, null) : t, ra = /* @__PURE__ */ A({
1854
+ props: Rt,
1885
1855
  setup(e) {
1886
- return () => e.rightContentRender && typeof e.rightContentRender == "function" && n(Q, null, [e.rightContentRender({
1856
+ return () => e.rightContentRender && typeof e.rightContentRender == "function" && n(Z, null, [e.rightContentRender({
1887
1857
  ...e
1888
1858
  })]);
1889
1859
  }
1890
- }), na = /* @__PURE__ */ j({
1891
- props: It,
1860
+ }), sa = /* @__PURE__ */ A({
1861
+ props: Rt,
1892
1862
  inheritAttrs: !1,
1893
1863
  setup(e, {
1894
1864
  slots: t,
1895
1865
  emit: a
1896
1866
  }) {
1897
- const i = De(), {
1867
+ const i = We(), {
1898
1868
  token: o
1899
- } = fe(), {
1869
+ } = ye(), {
1900
1870
  getPrefixCls: u,
1901
- openKeys: g,
1902
- selectedKeys: m
1903
- } = ee(), {
1904
- width: w
1905
- } = sn(), p = u({
1871
+ openKeys: f,
1872
+ selectedKeys: b,
1873
+ theme: g
1874
+ } = J(), {
1875
+ width: M
1876
+ } = hn(), C = u({
1906
1877
  suffixCls: "global-header",
1907
1878
  isPor: !0
1908
1879
  }), {
1909
- wrapSSR: O,
1910
- hashId: h
1911
- } = ne("ProGlobalHeader", [Qn], p), T = b(() => e.isMobile ? !1 : e.layout === "top" || e.layout === "mix" && e.splitMenus), l = b(() => ({
1912
- [`${h.value}`]: !0,
1913
- [`${p}`]: !0,
1914
- [`${p}-${e.layout}`]: !0
1915
- })), r = (y) => {
1916
- var f;
1880
+ wrapSSR: d,
1881
+ hashId: F
1882
+ } = ie("ProGlobalHeader", [ia], C), l = m(() => e.isMobile ? !1 : e.layout === "top" || e.layout === "mix" && e.splitMenus), r = m(() => `${g.value}:${e.layout}`), x = m(() => ({
1883
+ [`${F.value}`]: !0,
1884
+ [`${C}`]: !0,
1885
+ [`${C}-${e.layout}`]: !0
1886
+ })), w = (y) => {
1887
+ var T;
1917
1888
  if (i.currentRoute) {
1918
- const C = i.currentRoute.value.matched.concat();
1919
- e.onSelect && y === "select" && e.onSelect(C.filter((F) => F.name !== "index").map((F) => F.path)), e.onOpenKeys && y === "openKeys" && ((f = e.onOpenKeys) == null || f.call(e, C.filter((F) => F.path !== i.currentRoute.value.path).map((F) => F.path)));
1889
+ const h = i.currentRoute.value.matched.concat();
1890
+ e.onSelect && y === "select" && e.onSelect(h.filter((p) => p.name !== "index").map((p) => p.path)), e.onOpenKeys && y === "openKeys" && ((T = e.onOpenKeys) == null || T.call(e, h.filter((p) => p.path !== i.currentRoute.value.path).map((p) => p.path)));
1920
1891
  }
1921
- }, I = () => {
1892
+ }, S = () => {
1922
1893
  a("collapse", !e.collapsed);
1923
- }, R = b(() => e.collapsedButtonRender || pt), v = () => {
1924
- var y, f;
1925
- return n(Q, null, [T.value ? n("div", {
1894
+ }, O = m(() => e.collapsedButtonRender || xt), v = () => {
1895
+ var y, T;
1896
+ return n(Z, null, [l.value ? n("div", {
1926
1897
  style: {
1927
1898
  flex: 1
1928
1899
  },
1929
- class: [`${p}-menu`, h.value]
1930
- }, [((y = e.menuData) == null ? void 0 : y.length) > 0 && n(Te, {
1900
+ class: [`${C}-menu`, F.value]
1901
+ }, [((y = e.menuData) == null ? void 0 : y.length) > 0 && n(Ke, {
1931
1902
  theme: {
1932
1903
  components: {
1933
1904
  Layout: {
1934
1905
  headerBg: "transparent",
1935
1906
  bodyBg: "transparent"
1936
1907
  },
1937
- Menu: gt({
1938
- radiusItem: 4,
1939
- colorActiveBarWidth: 0,
1940
- colorActiveBarHeight: 2,
1941
- colorActiveBarBorderSize: 0,
1942
- horizontalItemBorderRadius: 4
1943
- }, o.value || {}, e.theme, "header")
1908
+ Menu: bt({
1909
+ token: (o == null ? void 0 : o.value) || {},
1910
+ staticToken: {
1911
+ radiusItem: 4,
1912
+ colorActiveBarWidth: 0,
1913
+ colorActiveBarHeight: 2,
1914
+ colorActiveBarBorderSize: 0,
1915
+ horizontalItemBorderRadius: 4
1916
+ },
1917
+ theme: g.value,
1918
+ type: "header",
1919
+ layoutThemeKey: r.value
1920
+ })
1944
1921
  }
1945
1922
  }
1946
1923
  }, {
1947
- default: () => [n(ht, q({
1924
+ default: () => [n(pt, V({
1948
1925
  theme: e.theme,
1949
1926
  mode: e.mode,
1950
1927
  collapsed: e.collapsed,
1951
1928
  menuData: e.menuData,
1952
- openKeys: g.value,
1953
- selectedKeys: m.value,
1929
+ openKeys: f.value,
1930
+ selectedKeys: b.value,
1954
1931
  iconfontUrl: e.iconfontUrl,
1955
1932
  menuItemRender: e.menuItemRender,
1956
1933
  subMenuItemRender: e.subMenuItemRender,
1957
1934
  class: {
1958
1935
  "top-nav-menu": e.mode === "horizontal",
1959
- [`${h.value}`]: !0
1936
+ [`${F.value}`]: !0
1960
1937
  }
1961
1938
  }, {
1962
- "onUpdate:openKeys": () => r("openKeys"),
1963
- "onUpdate:selectedKeys": () => r("select")
1939
+ "onUpdate:openKeys": () => w("openKeys"),
1940
+ "onUpdate:selectedKeys": () => w("select")
1964
1941
  }), null)]
1965
1942
  })]) : n("div", {
1966
1943
  style: {
1967
1944
  flex: 1
1968
1945
  }
1969
- }, [(f = t.default) == null ? void 0 : f.call(t)]), e.layout !== "simple" && n(ta, q(e, {
1946
+ }, [(T = t.default) == null ? void 0 : T.call(t)]), e.layout !== "simple" && n(ra, V(e, {
1970
1947
  extraRightDropdownRender: e.extraRightDropdownRender,
1971
1948
  rightContentRender: e.rightContentRender
1972
1949
  }), null)]);
@@ -1975,38 +1952,38 @@ const Jn = (e) => {
1975
1952
  const y = n("span", {
1976
1953
  key: "logo",
1977
1954
  onClick: () => {
1978
- var f;
1979
- return (f = e.onMenuHeaderClick) == null ? void 0 : f.call(e);
1955
+ var T;
1956
+ return (T = e.onMenuHeaderClick) == null ? void 0 : T.call(e);
1980
1957
  },
1981
- class: [`${p}-logo`, e.isMobile ? "mobile" : "", h.value]
1982
- }, [n("a", null, [bt(e.logo)])]);
1983
- return O(n("div", {
1984
- class: l.value
1985
- }, [e.isMobile ? n(Q, null, [ea(e.menuHeaderRender, y), e.isMobile && X(R) && n("span", {
1986
- class: `${p}-collapsed-button ${h.value}`,
1987
- onClick: I
1988
- }, [X(R)(e.collapsed)]), v()]) : ["mix", "wide", "top"].includes(e.layout) ? n("div", {
1958
+ class: [`${C}-logo`, e.isMobile ? "mobile" : "", F.value]
1959
+ }, [n("a", null, [Ct(e.logo)])]);
1960
+ return d(n("div", {
1961
+ class: x.value
1962
+ }, [e.isMobile ? n(Z, null, [la(e.menuHeaderRender, y), e.isMobile && j(O) && n("span", {
1963
+ class: `${C}-collapsed-button ${F.value}`,
1964
+ onClick: S
1965
+ }, [j(O)(e.collapsed)]), v()]) : ["mix", "wide", "top"].includes(e.layout) ? n("div", {
1989
1966
  style: {
1990
1967
  width: e.layout === "wide" ? `${e.wideWidth}px` : void 0,
1991
- padding: e.layout === "wide" && w.value < e.wideWidth ? "0 50px" : void 0
1968
+ padding: e.layout === "wide" && M.value < e.wideWidth ? "0 50px" : void 0
1992
1969
  },
1993
- class: `${p}-main ${h.value}`
1970
+ class: `${C}-main ${F.value}`
1994
1971
  }, [n("div", {
1995
- class: `${p}-main-left ${h.value}`
1996
- }, [n(We, q(e, {
1972
+ class: `${C}-main-left ${F.value}`
1973
+ }, [n(Ye, V(e, {
1997
1974
  renderKey: "headerTitleRender"
1998
1975
  }), null)]), v()]) : v()]));
1999
1976
  };
2000
1977
  }
2001
1978
  });
2002
- function aa(e) {
2003
- return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !ie(e);
1979
+ function ua(e) {
1980
+ return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !oe(e);
2004
1981
  }
2005
1982
  const {
2006
- Header: Qe
2007
- } = ce, Fe = /* @__PURE__ */ j({
1983
+ Header: nt
1984
+ } = fe, Ne = /* @__PURE__ */ A({
2008
1985
  inheritAttrs: !1,
2009
- props: xt,
1986
+ props: St,
2010
1987
  setup(e) {
2011
1988
  const {
2012
1989
  theme: t,
@@ -2014,161 +1991,215 @@ const {
2014
1991
  fixedHeader: i,
2015
1992
  headerHeight: o,
2016
1993
  layout: u,
2017
- onCollapse: g,
2018
- splitMenus: m
2019
- } = Se(e), {
2020
- getPrefixCls: w,
2021
- menuData: p
2022
- } = ee(), O = w({
1994
+ onCollapse: f,
1995
+ splitMenus: b
1996
+ } = Oe(e), {
1997
+ getPrefixCls: g,
1998
+ menuData: M,
1999
+ theme: C
2000
+ } = J(), d = g({
2023
2001
  suffixCls: "header",
2024
2002
  isPor: !0
2025
- }), h = w({
2003
+ }), F = g({
2026
2004
  suffixCls: "fixed-header",
2027
2005
  isPor: !0
2028
- }), {
2029
- wrapSSR: T,
2030
- hashId: l
2031
- } = ne("ProLayoutHeader", [Jn], O), r = b(() => u.value === "wide"), I = b(() => i.value), R = b(() => u.value === "mix" || r.value), v = b(() => u.value === "side" || u.value === "simple"), y = b(() => v.value && "light" || t.value), f = b(() => ({
2032
- [`${l.value}`]: !0,
2033
- [`${O}-${y.value}`]: !0,
2034
- [`${O}`]: !0,
2035
- [`${h}`]: I.value
2036
- })), C = b(() => I.value && !a.value), F = b(() => m.value ? p.value && vn(p.value) || [] : u.value === "top" ? p.value : []), c = b(() => v.value && C.value ? `calc(100% - ${e.collapsed ? e.collapsedWidth : e.siderWidth}px)` : "100%"), S = b(() => I.value ? 0 : void 0), M = () => {
2037
- const B = n(na, q(e, {
2038
- theme: y.value,
2006
+ }), l = m(() => u.value === "wide"), r = m(() => i.value), x = m(() => u.value === "mix" || l.value), w = m(() => u.value === "side" || u.value === "simple"), S = m(() => w.value && "light" || t.value), O = m(() => `${j(C)}:${j(u)}`), {
2007
+ wrapSSR: v,
2008
+ hashId: y
2009
+ } = ge("ProLayoutHeader", (B) => {
2010
+ var z, H;
2011
+ const U = (z = B.layout) == null ? void 0 : z.header;
2012
+ return {
2013
+ [`${B.proComponentsCls}-basic-layout`]: {
2014
+ [`${B.antCls}-layout-header${B.componentCls}${B.componentCls}-${j(C)}`]: {
2015
+ color: C.value === "light" ? B.colorText : B.colorWhite,
2016
+ backgroundColor: (U == null ? void 0 : U.colorBgMenu) || ((H = Fe("header", B)[O.value]) == null ? void 0 : H.colorBgMenu),
2017
+ boxShadow: C.value === "realDark" ? "#0d0d0da6 0 2px 8px" : "",
2018
+ [`${B.proComponentsCls}-global-header-collapsed-button`]: {
2019
+ color: C.value === "light" ? void 0 : "#fff"
2020
+ }
2021
+ },
2022
+ [`${B.antCls}-layout-header${B.componentCls}`]: {
2023
+ zIndex: 19,
2024
+ paddingBlock: 0,
2025
+ paddingInline: 0,
2026
+ WebkitBackdropFilter: "blur(8px)",
2027
+ backdropFilter: "blur(8px)",
2028
+ transition: "background-color 0.2s cubic-bezier(.645,.045,.355,1)",
2029
+ [`&${B.proComponentsCls}`]: {
2030
+ "&-fixed-header": {
2031
+ position: "fixed",
2032
+ width: "100%",
2033
+ zIndex: 9,
2034
+ top: 0,
2035
+ transition: "width .2s",
2036
+ "&-action": {
2037
+ transition: "width .3s cubic-bezier(.645,.045,.355,1)"
2038
+ }
2039
+ },
2040
+ "&-header-actions": {
2041
+ display: "flex",
2042
+ alignItems: "center",
2043
+ fontSize: "16",
2044
+ cursor: "pointer",
2045
+ "& &-item": {
2046
+ paddingBlock: 0,
2047
+ paddingInline: 8,
2048
+ "&:hover": {
2049
+ color: B.colorText
2050
+ }
2051
+ }
2052
+ },
2053
+ "&-header-actions-header-action": {
2054
+ transition: "width 0.3s cubic-bezier(0.645, 0.045, 0.355, 1)"
2055
+ }
2056
+ }
2057
+ }
2058
+ }
2059
+ };
2060
+ }, d), T = m(() => ({
2061
+ [`${y.value}`]: !0,
2062
+ [`${d}`]: !0,
2063
+ [`${d}-${C.value}`]: !0,
2064
+ [`${F}`]: r.value
2065
+ })), h = m(() => r.value && !a.value), p = m(() => b.value ? M.value && Mn(M.value) || [] : u.value === "top" ? M.value : []), P = m(() => w.value && h.value ? `calc(100% - ${e.collapsed ? e.collapsedWidth : e.siderWidth}px)` : "100%"), k = m(() => r.value ? 0 : void 0), N = () => {
2066
+ const B = n(sa, V(e, {
2067
+ theme: S.value,
2039
2068
  mode: "horizontal",
2040
- onCollapse: g.value,
2041
- menuData: F.value
2069
+ onCollapse: f.value,
2070
+ menuData: p.value
2042
2071
  }), {
2043
- default: () => [R.value ? null : e.headerContentRender && typeof e.headerContentRender == "function" ? e.headerContentRender(e) : e.headerContentRender]
2072
+ default: () => [x.value ? null : e.headerContentRender && typeof e.headerContentRender == "function" ? e.headerContentRender(e) : e.headerContentRender]
2044
2073
  });
2045
2074
  return e.headerRender ? e.headerRender(e, B) : B;
2046
2075
  };
2047
2076
  return () => {
2048
2077
  let B;
2049
- return T(n(Q, null, [I.value && !r.value && n(Qe, {
2050
- theme: y.value,
2078
+ return v(n(Z, null, [r.value && !l.value && n(nt, {
2051
2079
  style: {
2052
2080
  height: `${o.value}px`,
2053
2081
  lineHeight: `${o.value}px`,
2054
2082
  background: "transparent"
2055
2083
  }
2056
- }, null), n(Qe, {
2057
- theme: y.value,
2058
- class: f.value,
2084
+ }, null), n(nt, {
2085
+ class: T.value,
2059
2086
  style: {
2060
2087
  height: `${o.value}px`,
2061
2088
  lineHeight: `${o.value}px`,
2062
- width: c.value,
2063
- zIndex: v.value ? 100 : 101,
2064
- right: S.value
2089
+ width: P.value,
2090
+ zIndex: w.value ? 100 : 101,
2091
+ right: k.value
2065
2092
  }
2066
- }, aa(B = M()) ? B : {
2093
+ }, ua(B = N()) ? B : {
2067
2094
  default: () => [B]
2068
2095
  })]));
2069
2096
  };
2070
2097
  }
2071
- }), oa = /* @__PURE__ */ j({
2098
+ }), da = /* @__PURE__ */ A({
2072
2099
  name: "BaseProLayout",
2073
2100
  inheritAttrs: !1,
2074
2101
  components: {
2075
- GlobalHeader: Fe,
2076
- GlobalFooter: ke,
2077
- SiderMenuWrapper: Re
2102
+ GlobalHeader: Ne,
2103
+ GlobalFooter: De,
2104
+ SiderMenuWrapper: Le
2078
2105
  },
2079
- props: St,
2106
+ props: Ot,
2080
2107
  emits: ["update:collapsed", "update:open-keys", "update:selected-keys", "collapse", "openKeys", "reloadPage", "select", "menuHeaderClick", "menuClick", "changeTabs"],
2081
2108
  setup(e, {
2082
2109
  slots: t
2083
2110
  }) {
2084
- const a = me({
2111
+ const a = he({
2085
2112
  suffixCls: "basic-layout",
2086
2113
  isPor: !0
2087
2114
  }), {
2088
2115
  wrapSSR: i,
2089
2116
  hashId: o
2090
- } = ne("ProLayout", [Wn, Kn], a), u = on(), {
2091
- token: g
2092
- } = fe(), m = b(() => {
2117
+ } = ie("ProLayout", [Gn, qn], a), u = cn(), {
2118
+ token: f
2119
+ } = ye(), b = we(Ze().uuid(10)), g = He({
2120
+ position: "relative"
2121
+ }), M = m(() => {
2093
2122
  var y;
2094
- return (y = g == null ? void 0 : g.value) == null ? void 0 : y.colorPrimary;
2123
+ return (y = f == null ? void 0 : f.value) == null ? void 0 : y.colorPrimary;
2095
2124
  });
2096
- Tt(() => {
2097
- m.value && document.querySelector("html") && document.querySelector("html").style.setProperty("--gx-primary-color", m.value);
2125
+ zt(() => {
2126
+ M.value && document.querySelector("html") && document.querySelector("html").style.setProperty("--gx-primary-color", M.value);
2098
2127
  });
2099
- const w = b(() => e.layout === "mix" || e.layout === "side" || e.layout === "wide" || !1), p = b(() => e.layout === "wide"), O = b(() => w.value), h = b(() => e.collapsed ? e.collapsedWidth : e.siderWidth), T = b(() => (e.theme || "dark").toLocaleLowerCase().includes("dark") ? "dark" : "light"), l = b(() => (u.value === "sm" || u.value === "xs") && !e.disableMobile && !p.value), r = rt({
2100
- position: "relative"
2101
- });
2102
- (e.isChildrenLayout || e.contentStyle && e.contentStyle.minHeight) && (r.minHeight = 0);
2103
- const I = (y, f) => y.headerRender === !1 || y.pure ? null : n(Fe, q(y, {
2104
- matchMenuKeys: f || []
2105
- }), null), R = b(() => ({
2106
- ...e.breadcrumb,
2107
- itemRender: U(t, e, "breadcrumbRender")
2108
- })), v = b(() => O.value && e.selectedKeys ? xn(e.menuData, e.selectedKeys[0]) : []);
2109
- return Rn({
2110
- getPrefixCls: me,
2111
- ...le(Se(e), ["layout", "waterMark", "menuData", "openKeys", "splitMenus", "headerHeight", "selectedKeys", "disableMobile", "fixSiderbar", "fixedHeader", "waterMarkProps"].concat(Object.keys(vt))),
2112
- theme: T,
2113
- hasContentWide: p,
2114
- isMobile: l,
2115
- siderWidth: h,
2116
- breadcrumb: R,
2128
+ const C = m(() => e.layout === "mix" || e.layout === "side" || e.layout === "wide" || !1), d = m(() => e.layout === "wide"), F = m(() => C.value), l = m(() => e.collapsed ? e.collapsedWidth : e.siderWidth), r = m(() => (e.theme || "dark").toLocaleLowerCase().includes("dark") ? "dark" : "light"), x = m(() => e.theme === "realDark"), w = m(() => (u.value === "sm" || u.value === "xs") && !e.disableMobile && !d.value);
2129
+ ce([() => e.layout, () => e.theme], () => {
2130
+ b.value = Ze().uuid(10);
2131
+ }), (e.isChildrenLayout || e.contentStyle && e.contentStyle.minHeight) && (g.minHeight = 0);
2132
+ const S = (y, T) => y.headerRender === !1 || y.pure ? null : n(Ne, V(y, {
2133
+ matchMenuKeys: T || []
2134
+ }), null), O = m(() => ({
2135
+ ...e.breadcrumb || {},
2136
+ itemRender: W(t, e, "breadcrumbRender")
2137
+ })), v = m(() => F.value && e.selectedKeys ? On(e.menuData, e.selectedKeys[0]) : []);
2138
+ return Ln({
2139
+ getPrefixCls: he,
2140
+ ...re(Oe(e), ["layout", "theme", "waterMark", "menuData", "openKeys", "splitMenus", "headerHeight", "selectedKeys", "disableMobile", "fixSiderbar", "fixedHeader", "waterMarkProps"].concat(Object.keys(wt))),
2141
+ menuTheme: r,
2142
+ isDarkMode: x,
2143
+ hasContentWide: d,
2144
+ isMobile: w,
2145
+ siderWidth: l,
2146
+ breadcrumb: O,
2117
2147
  flatMenuData: v,
2118
- hasSide: w,
2119
- flatMenu: O,
2120
- pageHeaderRender: b(() => U(t, e, "pageHeaderRender"))
2148
+ hasSide: C,
2149
+ flatMenu: F,
2150
+ pageHeaderRender: m(() => W(t, e, "pageHeaderRender"))
2121
2151
  }), () => {
2122
- var $;
2123
- const y = U(t, e, "collapsedButtonRender"), f = U(t, e, "headerContentRender"), C = U(t, e, "rightContentRender"), F = U(t, e, "headerRender"), c = U(t, e, "footerRender"), S = U(t, e, "links"), M = U(t, e, "copyrightRender"), B = U(t, e, "extraRightDropdownRender"), P = U(t, e, "menuHeaderRender"), H = U(t, e, "menuExtraRender"), z = U(t, e, "menuContentRender"), D = U(t, e, "menuFooterRender"), V = U(t, e, "menuItemRender"), _ = U(t, e, "subMenuItemRender"), G = {
2124
- menuItemRender: V,
2125
- subMenuItemRender: _
2126
- }, Y = b(() => I({
2152
+ var X;
2153
+ const y = W(t, e, "collapsedButtonRender"), T = W(t, e, "headerContentRender"), h = W(t, e, "rightContentRender"), p = W(t, e, "headerRender"), P = W(t, e, "footerRender"), k = W(t, e, "links"), N = W(t, e, "copyrightRender"), B = W(t, e, "extraRightDropdownRender"), U = W(t, e, "menuHeaderRender"), z = W(t, e, "menuExtraRender"), H = W(t, e, "menuContentRender"), ee = W(t, e, "menuFooterRender"), G = W(t, e, "menuItemRender"), de = W(t, e, "subMenuItemRender"), le = W(t, e, "settingDrawer"), c = {
2154
+ menuItemRender: G,
2155
+ subMenuItemRender: de
2156
+ }, R = m(() => S({
2127
2157
  ...e,
2128
- ...G,
2129
- hasSiderMenu: w.value,
2158
+ ...c,
2159
+ hasSiderMenu: C.value,
2130
2160
  menuData: e.menuData,
2131
- isMobile: X(l),
2132
- rightContentRender: C,
2161
+ isMobile: j(w),
2162
+ rightContentRender: h,
2133
2163
  extraRightDropdownRender: B,
2134
- headerTitleRender: P,
2135
- headerContentRender: f,
2136
- headerRender: F,
2137
- theme: T.value
2138
- }, e.matchMenuKeys)), J = b(() => ({
2164
+ headerTitleRender: U,
2165
+ headerContentRender: T,
2166
+ headerRender: p,
2167
+ theme: r.value
2168
+ }, e.matchMenuKeys)), I = m(() => ({
2139
2169
  [`${o.value}`]: !0,
2140
2170
  [`${a}`]: !0,
2141
2171
  [`${a}-${e.layout}`]: !0
2142
- })), d = b(() => p.value ? {
2172
+ })), $ = m(() => d.value ? {
2143
2173
  minWidth: `${e.wideWidth}px`
2144
- } : void 0), x = b(() => p.value ? {
2174
+ } : void 0), D = m(() => d.value ? {
2145
2175
  width: e.menuData.length ? `${e.wideWidth}px` : `${e.wideWidth - e.siderWidth - 20}px`,
2146
2176
  paddingTop: `${e.headerHeight + 20}px`,
2147
- margin: p.value ? "0 auto" : void 0
2148
- } : void 0), k = b(() => p.value ? {
2177
+ margin: d.value ? "0 auto" : void 0
2178
+ } : void 0), E = m(() => d.value ? {
2149
2179
  minHeight: "835px"
2150
2180
  } : {});
2151
- return i(n(Q, null, [e.pure ? ($ = t.default) == null ? void 0 : $.call(t) : n("div", {
2152
- class: J.value,
2153
- style: d.value
2154
- }, [n(ce, {
2155
- style: x.value
2181
+ return i(n(Z, null, [e.pure ? (X = t.default) == null ? void 0 : X.call(t) : n("div", {
2182
+ class: I.value,
2183
+ style: $.value,
2184
+ "data-theme": x.value ?? "dark"
2185
+ }, [n(fe, {
2186
+ style: D.value
2156
2187
  }, {
2157
- default: () => [n(Re, q(Ve(e, ["pure", "theme"]), {
2158
- links: S,
2159
- theme: T.value,
2160
- isMobile: l.value,
2161
- menuHeaderRender: P,
2162
- menuContentRender: z,
2163
- menuExtraRender: H,
2164
- menuFooterRender: D,
2188
+ default: () => [n(Le, V(Ue(e, ["pure", "theme"]), {
2189
+ links: k,
2190
+ theme: r.value,
2191
+ isMobile: w.value,
2192
+ menuHeaderRender: U,
2193
+ menuContentRender: H,
2194
+ menuExtraRender: z,
2195
+ menuFooterRender: ee,
2165
2196
  collapsedButtonRender: y
2166
- }), null), n(ce, {
2167
- style: r
2197
+ }), null), n(fe, {
2198
+ style: g
2168
2199
  }, {
2169
- default: () => [Y.value, n(Ue, q({
2200
+ default: () => [R.value, n(_e, V({
2170
2201
  hashId: o.value,
2171
- isMobile: l.value,
2202
+ isMobile: w.value,
2172
2203
  prefixCls: a,
2173
2204
  collapsedWidth: e.collapsedWidth,
2174
2205
  isChildrenLayout: e.isChildrenLayout,
@@ -2177,75 +2208,79 @@ const {
2177
2208
  isFixedMultiTab: e.fixedMultiTab,
2178
2209
  siderWidth: e.siderWidth,
2179
2210
  collapsed: e.collapsed,
2180
- style: e.disableContentMargin ? k.value : {
2211
+ style: e.disableContentMargin ? E.value : {
2181
2212
  ...e.contentStyle,
2182
- ...k.value
2213
+ ...E.value
2183
2214
  }
2184
- }, le(e, ["onReloadPage", "onChangeTabs"])), {
2215
+ }, re(e, ["onReloadPage", "onChangeTabs"])), {
2185
2216
  default: () => {
2186
- var N;
2187
- return [(N = t.default) == null ? void 0 : N.call(t)];
2217
+ var q;
2218
+ return [(q = t.default) == null ? void 0 : q.call(t)];
2188
2219
  }
2189
- }), c === !1 ? null : c ? c(e) : n(ke, {
2190
- copyright: M
2220
+ }), P === !1 ? null : P ? P(e) : n(De, {
2221
+ copyright: N
2191
2222
  }, null)]
2192
2223
  })]
2193
- })])]));
2224
+ }), le == null ? void 0 : le()])]));
2194
2225
  };
2195
2226
  }
2196
- }), Ri = /* @__PURE__ */ j({
2227
+ }), Di = /* @__PURE__ */ A({
2197
2228
  components: {
2198
- GlobalHeader: Fe,
2199
- GlobalFooter: ke,
2200
- SiderMenuWrapper: Re
2229
+ GlobalHeader: Ne,
2230
+ GlobalFooter: De,
2231
+ SiderMenuWrapper: Le
2201
2232
  },
2202
- props: St,
2233
+ props: Ot,
2203
2234
  emits: ["update:collapsed", "update:open-keys", "update:selected-keys", "collapse", "openKeys", "reloadPage", "select", "menuHeaderClick", "menuClick", "changeTabs"],
2204
2235
  setup(e, {
2205
2236
  slots: t,
2206
2237
  emit: a
2207
2238
  }) {
2208
- const i = b(() => e.theme !== void 0 ? {
2239
+ const i = m(() => e.theme !== void 0 ? {
2209
2240
  dark: e.theme === "realDark"
2210
- } : {}), o = (m) => {
2211
- a("update:collapsed", m), a("collapse", m);
2212
- }, u = (m) => {
2213
- a("update:open-keys", m), a("openKeys", m);
2214
- }, g = (m) => {
2215
- a("update:selected-keys", m), a("select", m);
2241
+ } : {}), o = m(() => gt(e.token || {}, {
2242
+ layout: {
2243
+ layoutThemeKey: `${e.theme}:${e.layout}`
2244
+ }
2245
+ })), u = (g) => {
2246
+ a("update:collapsed", g), a("collapse", g);
2247
+ }, f = (g) => {
2248
+ a("update:open-keys", g), a("openKeys", g);
2249
+ }, b = (g) => {
2250
+ a("update:selected-keys", g), a("select", g);
2216
2251
  };
2217
- return () => n(Te, {
2252
+ return () => n(Ke, {
2218
2253
  theme: e.primaryColor ? {
2219
2254
  token: {
2220
2255
  colorPrimary: e.primaryColor
2221
2256
  }
2222
2257
  } : void 0
2223
2258
  }, {
2224
- default: () => [n(en, q({
2225
- token: e.token
2259
+ default: () => [n(on, V({
2260
+ token: o.value
2226
2261
  }, i.value), {
2227
- default: () => [n(oa, q(Ve(e, ["onSelect", "onOpenKeys", "onCollapse"]), {
2228
- onSelect: g,
2229
- onOpenKeys: u,
2230
- onCollapse: o
2262
+ default: () => [n(da, V(Ue(e, ["onSelect", "onOpenKeys", "onCollapse"]), {
2263
+ onSelect: b,
2264
+ onOpenKeys: f,
2265
+ onCollapse: u
2231
2266
  }), t)]
2232
2267
  })]
2233
2268
  });
2234
2269
  }
2235
- }), Mt = (e, t, a) => e.map((i, o) => {
2270
+ }), Ft = (e, t, a) => e.map((i, o) => {
2236
2271
  var u;
2237
- return i.meta && (i.meta.key = a ? `${a}-${o}` : `${o}`), i.path = i.path.replace("//", "/"), i.children && i.children.length > 0 && (i.children = Mt(i.children, t, (u = i.meta) == null ? void 0 : u.key)), t[`${i.path}`] = i, i;
2238
- }), ki = (e) => {
2272
+ return i.meta && (i.meta.key = a ? `${a}-${o}` : `${o}`), i.path = i.path.replace("//", "/"), i.children && i.children.length > 0 && (i.children = Ft(i.children, t, (u = i.meta) == null ? void 0 : u.key)), t[`${i.path}`] = i, i;
2273
+ }), Ni = (e) => {
2239
2274
  const t = e.find((o) => {
2240
2275
  var u;
2241
2276
  return o.path === "/" && ((u = o.children) == null ? void 0 : u.length);
2242
- }), a = {}, i = Mt((t == null ? void 0 : t.children) || [], a);
2277
+ }), a = {}, i = Ft((t == null ? void 0 : t.children) || [], a);
2243
2278
  return {
2244
2279
  menuData: i,
2245
2280
  breadcrumb: a,
2246
- levelMenuData: Zt(i)
2281
+ levelMenuData: nn(i)
2247
2282
  };
2248
- }, Bt = [
2283
+ }, $t = [
2249
2284
  {
2250
2285
  key: "light",
2251
2286
  title: "亮色菜单风格"
@@ -2258,7 +2293,7 @@ const {
2258
2293
  key: "realDark",
2259
2294
  title: "暗黑模式"
2260
2295
  }
2261
- ], Ot = [
2296
+ ], Bt = [
2262
2297
  {
2263
2298
  key: "side",
2264
2299
  title: "侧边菜单布局"
@@ -2274,8 +2309,12 @@ const {
2274
2309
  {
2275
2310
  key: "simple",
2276
2311
  title: "简单菜单布局"
2312
+ },
2313
+ {
2314
+ key: "top",
2315
+ title: "顶部菜单布局"
2277
2316
  }
2278
- ], ia = [
2317
+ ], ca = [
2279
2318
  {
2280
2319
  key: "header",
2281
2320
  title: "顶部主题"
@@ -2284,7 +2323,36 @@ const {
2284
2323
  key: "sider",
2285
2324
  title: "左侧主题"
2286
2325
  }
2287
- ], la = (e) => ({
2326
+ ], ma = [
2327
+ {
2328
+ key: "colorBgMenu",
2329
+ name: "全部背景"
2330
+ },
2331
+ {
2332
+ key: "colorSubItemBg",
2333
+ name: "子菜单背景"
2334
+ },
2335
+ {
2336
+ key: "colorBgMenuItemHover",
2337
+ name: "菜单移入背景"
2338
+ },
2339
+ {
2340
+ key: "colorBgMenuItemSelected",
2341
+ name: "菜单背景选中背景"
2342
+ },
2343
+ {
2344
+ key: "colorTextMenu",
2345
+ name: "菜单文字颜色"
2346
+ },
2347
+ {
2348
+ key: "colorTextMenuHover",
2349
+ name: "菜单文字移入颜色"
2350
+ },
2351
+ {
2352
+ key: "colorTextMenuSelected",
2353
+ name: "菜单文字选中颜色"
2354
+ }
2355
+ ], fa = (e) => ({
2288
2356
  [e.componentCls]: {
2289
2357
  [`${e.antCls}-drawer-content-wrapper`]: {
2290
2358
  transform: "translate(100%)",
@@ -2406,6 +2474,10 @@ const {
2406
2474
  backgroundColor: "#f7f8fa",
2407
2475
  "&::before": { backgroundColor: "#fff" },
2408
2476
  "&::after": { backgroundColor: "#001529" }
2477
+ },
2478
+ "&-top": {
2479
+ backgroundColor: "#f7f8fa",
2480
+ "&::after": { backgroundColor: "#001529" }
2409
2481
  }
2410
2482
  },
2411
2483
  "& &-selectIcon": {
@@ -2449,7 +2521,7 @@ const {
2449
2521
  }
2450
2522
  }
2451
2523
  }
2452
- }), et = /* @__PURE__ */ j({
2524
+ }), at = /* @__PURE__ */ A({
2453
2525
  name: "BlockCheckbox",
2454
2526
  props: {
2455
2527
  value: L.string,
@@ -2467,19 +2539,19 @@ const {
2467
2539
  const t = `${e.prefixCls}-block-checkbox`;
2468
2540
  return n("div", {
2469
2541
  class: [t, e.hashId]
2470
- }, [e.list.map((a) => n(Ie, {
2542
+ }, [e.list.map((a) => n(Re, {
2471
2543
  title: a.title,
2472
2544
  key: a.key
2473
2545
  }, {
2474
2546
  default: () => [n("div", {
2475
- class: mt(e.hashId, `${t}-item`, `${t}-item-${a.key}`, `${t}-${e.configType}-item`),
2547
+ class: ht(e.hashId, `${t}-item`, `${t}-item-${a.key}`, `${t}-${e.configType}-item`),
2476
2548
  onClick: () => {
2477
2549
  var i;
2478
2550
  return (i = e.onChange) == null ? void 0 : i.call(e, a.key);
2479
2551
  }
2480
2552
  }, [a.key === "wide" && n("div", {
2481
2553
  class: [`${t}-item-${a.key}-content`, e.hashId]
2482
- }, null), n(dt, {
2554
+ }, null), n(mt, {
2483
2555
  class: `${t}-selectIcon ${e.hashId}`.trim(),
2484
2556
  style: {
2485
2557
  display: e.value === a.key ? "block" : "none"
@@ -2490,7 +2562,7 @@ const {
2490
2562
  }))]);
2491
2563
  };
2492
2564
  }
2493
- }), ra = /* @__PURE__ */ j({
2565
+ }), ha = /* @__PURE__ */ A({
2494
2566
  name: "ThemeColor",
2495
2567
  inheritAttrs: !1,
2496
2568
  props: {
@@ -2513,24 +2585,24 @@ const {
2513
2585
  key: i,
2514
2586
  color: o,
2515
2587
  title: u
2516
- }) => i ? n(Ie, {
2588
+ }) => i ? n(Re, {
2517
2589
  key: o,
2518
2590
  title: u
2519
2591
  }, {
2520
2592
  default: () => {
2521
- var g, m;
2593
+ var f, b;
2522
2594
  return [n("div", {
2523
- class: [`${t}-block ${e.hashId}`.trim(), ((g = e.settingValue) == null ? void 0 : g.primaryColor) === o ? `${t}-block-checked` : ""],
2595
+ class: [`${t}-block ${e.hashId}`.trim(), ((f = e.settingValue) == null ? void 0 : f.primaryColor) === o ? `${t}-block-checked` : ""],
2524
2596
  style: {
2525
2597
  backgroundColor: o
2526
2598
  },
2527
2599
  onClick: () => e.onChange && e.onChange(o)
2528
- }, [((m = e.settingValue) == null ? void 0 : m.primaryColor) === o && n(dt, null, null)])];
2600
+ }, [((b = e.settingValue) == null ? void 0 : b.primaryColor) === o && n(mt, null, null)])];
2529
2601
  }
2530
2602
  }) : null)]);
2531
2603
  };
2532
2604
  }
2533
- }), ye = /* @__PURE__ */ j({
2605
+ }), pe = /* @__PURE__ */ A({
2534
2606
  name: "RegionalChange",
2535
2607
  props: {
2536
2608
  label: L.string,
@@ -2542,17 +2614,17 @@ const {
2542
2614
  onChange: Function
2543
2615
  },
2544
2616
  setup(e) {
2545
- return () => n(oe, {
2617
+ return () => n(ae, {
2546
2618
  class: `${e.prefixCls}-list ${e.hashId}`.trim(),
2547
2619
  split: !1,
2548
2620
  size: "small",
2549
2621
  renderItem: ({
2550
2622
  item: t
2551
- }) => n(Ie, {
2623
+ }) => n(Re, {
2552
2624
  title: t.disabled ? t.disabledReason : "",
2553
2625
  placement: "left"
2554
2626
  }, {
2555
- default: () => [n(oe.Item, {
2627
+ default: () => [n(ae.Item, {
2556
2628
  actions: [t.action]
2557
2629
  }, {
2558
2630
  default: () => [n("span", {
@@ -2564,7 +2636,7 @@ const {
2564
2636
  }),
2565
2637
  dataSource: [{
2566
2638
  title: e.label,
2567
- action: n(st, {
2639
+ action: n(dt, {
2568
2640
  size: "small",
2569
2641
  disabled: e.disabled,
2570
2642
  checked: !!e.value,
@@ -2575,7 +2647,7 @@ const {
2575
2647
  }]
2576
2648
  }, null);
2577
2649
  }
2578
- }), sa = (e) => ({
2650
+ }), ga = (e) => ({
2579
2651
  [e.componentCls]: {
2580
2652
  padding: e.marginLG,
2581
2653
  "&-title": {
@@ -2606,10 +2678,19 @@ const {
2606
2678
  }
2607
2679
  }
2608
2680
  });
2609
- function ua(e) {
2610
- return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !ie(e);
2681
+ function ya(e) {
2682
+ return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !oe(e);
2611
2683
  }
2612
- const da = /* @__PURE__ */ j({
2684
+ const kt = [];
2685
+ ln.forEach((e) => {
2686
+ rn.forEach((t) => {
2687
+ kt.push({
2688
+ key: `${e}:${t}`,
2689
+ token: {}
2690
+ });
2691
+ });
2692
+ });
2693
+ const ba = /* @__PURE__ */ A({
2613
2694
  name: "ThemeEditor",
2614
2695
  props: {
2615
2696
  settingValue: Object,
@@ -2618,203 +2699,129 @@ const da = /* @__PURE__ */ j({
2618
2699
  setup(e) {
2619
2700
  const {
2620
2701
  getPrefixCls: t
2621
- } = ee(), [a, i] = ve("header"), o = t({
2702
+ } = J(), [a, i] = xe("header"), o = t({
2622
2703
  suffixCls: "theme-editor",
2623
2704
  isPor: !0
2624
2705
  }), {
2625
2706
  wrapSSR: u,
2626
- hashId: g
2627
- } = ne("ProThemeEditor", [sa], o), {
2628
- token: m
2629
- } = fe(), w = b(() => {
2707
+ hashId: f
2708
+ } = ie("ProThemeEditor", [ga], o), {
2709
+ token: b
2710
+ } = ye();
2711
+ function g(l) {
2712
+ const r = Fe(l, b.value);
2713
+ return Be(kt).filter((x) => r[x.key]).map((x) => {
2714
+ var w, S, O;
2715
+ x.token = r[x.key];
2716
+ for (const v in x.token) {
2717
+ const y = ((O = (S = (w = b.value) == null ? void 0 : w.layout) == null ? void 0 : S[l]) == null ? void 0 : O[v]) || x.token[v];
2718
+ x.token[v] = y;
2719
+ }
2720
+ return x;
2721
+ });
2722
+ }
2723
+ const M = He({
2724
+ header: g("header"),
2725
+ sider: g("sider")
2726
+ }), C = m(() => {
2630
2727
  var l;
2631
- return (l = m.value) == null ? void 0 : l.layout;
2632
- }), p = b(() => {
2633
- var l, r, I, R, v, y, f, C, F, c, S, M, B, P, H, z, D, V, _, G, Y, J, d, x, k;
2634
- return [{
2635
- key: "colorBgMenu",
2636
- title: "全部背景",
2637
- disabled: ((l = e.settingValue) == null ? void 0 : l.theme) === "dark" && ["mix", "wide"].includes((r = e.settingValue) == null ? void 0 : r.layout)
2638
- }, {
2639
- key: "colorDarkBgMenu",
2640
- title: "全部背景",
2641
- disabled: ((I = e.settingValue) == null ? void 0 : I.theme) === "light" || ((R = e.settingValue) == null ? void 0 : R.theme) === "dark" && ["side", "simple"].includes((v = e.settingValue) == null ? void 0 : v.layout)
2642
- }, {
2643
- key: "colorSubItemBg",
2644
- title: "子菜单背景",
2645
- disabled: !0
2646
- }, {
2647
- key: "colorDarkSubItemBg",
2648
- title: "子菜单背景",
2649
- disabled: !0
2650
- }, {
2651
- key: "colorBgMenuItemSelected",
2652
- title: "菜单选中背景",
2653
- disabled: ((y = e.settingValue) == null ? void 0 : y.theme) === "dark" && ["mix", "wide"].includes((f = e.settingValue) == null ? void 0 : f.layout)
2654
- }, {
2655
- key: "colorDarkBgMenuItemSelected",
2656
- title: "菜单选中背景",
2657
- disabled: ((C = e.settingValue) == null ? void 0 : C.theme) === "light" || ((F = e.settingValue) == null ? void 0 : F.theme) === "dark" && ["side", "simple"].includes((c = e.settingValue) == null ? void 0 : c.layout)
2658
- }, {
2659
- key: "colorTextMenu",
2660
- title: "菜单文字颜色",
2661
- disabled: ((S = e.settingValue) == null ? void 0 : S.theme) === "dark" && ["mix", "wide"].includes((M = e.settingValue) == null ? void 0 : M.layout)
2662
- }, {
2663
- key: "colorDarkTextMenu",
2664
- title: "菜单文字颜色",
2665
- disabled: ((B = e.settingValue) == null ? void 0 : B.theme) === "light" || ((P = e.settingValue) == null ? void 0 : P.theme) === "dark" && ["side", "simple"].includes((H = e.settingValue) == null ? void 0 : H.layout)
2666
- }, {
2667
- key: "colorTextMenuHover",
2668
- title: "菜单文字移入颜色",
2669
- disabled: ((z = e.settingValue) == null ? void 0 : z.theme) === "dark" && ["mix", "wide"].includes((D = e.settingValue) == null ? void 0 : D.layout)
2670
- }, {
2671
- key: "colorDarkTextMenuHover",
2672
- title: "菜单文字移入颜色",
2673
- disabled: ((V = e.settingValue) == null ? void 0 : V.theme) === "light" || ((_ = e.settingValue) == null ? void 0 : _.theme) === "dark" && ["side", "simple"].includes((G = e.settingValue) == null ? void 0 : G.layout)
2674
- }, {
2675
- key: "colorTextMenuSelected",
2676
- title: "菜单文字选中颜色",
2677
- disabled: ((Y = e.settingValue) == null ? void 0 : Y.theme) === "dark" && ["mix", "wide"].includes((J = e.settingValue) == null ? void 0 : J.layout)
2678
- }, {
2679
- key: "colorDarkTextMenuSelected",
2680
- title: "菜单文字选中颜色",
2681
- disabled: ((d = e.settingValue) == null ? void 0 : d.theme) === "light" || ((x = e.settingValue) == null ? void 0 : x.theme) === "dark" && ["side", "simple"].includes((k = e.settingValue) == null ? void 0 : k.layout)
2682
- }];
2683
- }), O = b(() => {
2684
- var l, r, I, R, v, y, f, C, F, c, S, M, B, P, H, z, D, V, _, G, Y, J, d, x, k, $, N, K, W, ge, Ee, Xe;
2685
- return [{
2686
- key: "colorBgMenu",
2687
- title: "全部背景",
2688
- disabled: ((l = e.settingValue) == null ? void 0 : l.theme) === "dark" && ["side", "simple"].includes((r = e.settingValue) == null ? void 0 : r.layout)
2689
- }, {
2690
- key: "colorDarkBgMenu",
2691
- title: "全部背景",
2692
- disabled: ((I = e.settingValue) == null ? void 0 : I.theme) === "light" || ((R = e.settingValue) == null ? void 0 : R.theme) === "dark" && ["mix", "wide"].includes((v = e.settingValue) == null ? void 0 : v.layout)
2693
- }, {
2694
- key: "colorSubItemBg",
2695
- title: "子菜单背景",
2696
- disabled: ((y = e.settingValue) == null ? void 0 : y.theme) === "dark" && ["side", "simple"].includes((f = e.settingValue) == null ? void 0 : f.layout)
2697
- }, {
2698
- key: "colorDarkSubItemBg",
2699
- title: "子菜单背景",
2700
- disabled: ((C = e.settingValue) == null ? void 0 : C.theme) === "light" || ((F = e.settingValue) == null ? void 0 : F.theme) === "dark" && ["mix", "wide"].includes((c = e.settingValue) == null ? void 0 : c.layout)
2701
- }, {
2702
- key: "colorBgMenuItemHover",
2703
- title: "菜单移入背景",
2704
- disabled: ((S = e.settingValue) == null ? void 0 : S.theme) === "dark" && ((M = e.settingValue) == null ? void 0 : M.layout) !== "mix"
2705
- }, {
2706
- key: "colorBgMenuItemSelected",
2707
- title: "菜单选中背景",
2708
- disabled: ((B = e.settingValue) == null ? void 0 : B.theme) === "dark" && ((P = e.settingValue) == null ? void 0 : P.layout) !== "mix"
2709
- }, {
2710
- key: "colorDarkBgMenuItemSelected",
2711
- title: "菜单选中背景",
2712
- disabled: ((H = e.settingValue) == null ? void 0 : H.theme) === "light" || ((z = e.settingValue) == null ? void 0 : z.theme) === "dark" && ["mix", "wide"].includes((D = e.settingValue) == null ? void 0 : D.layout)
2713
- }, {
2714
- key: "colorTextMenu",
2715
- title: "菜单文字颜色",
2716
- disabled: ((V = e.settingValue) == null ? void 0 : V.theme) === "dark" && ((_ = e.settingValue) == null ? void 0 : _.layout) !== "mix"
2717
- }, {
2718
- key: "colorDarkTextMenu",
2719
- title: "菜单文字颜色",
2720
- disabled: ((G = e.settingValue) == null ? void 0 : G.theme) === "light" || ((Y = e.settingValue) == null ? void 0 : Y.theme) === "dark" && ["mix", "wide"].includes((J = e.settingValue) == null ? void 0 : J.layout)
2721
- }, {
2722
- key: "colorTextMenuHover",
2723
- title: "菜单文字移入颜色",
2724
- disabled: ((d = e.settingValue) == null ? void 0 : d.theme) === "dark" && ((x = e.settingValue) == null ? void 0 : x.layout) !== "mix"
2725
- }, {
2726
- key: "colorDarkTextMenuHover",
2727
- title: "菜单文字移入颜色",
2728
- disabled: ((k = e.settingValue) == null ? void 0 : k.theme) === "light" || (($ = e.settingValue) == null ? void 0 : $.theme) === "dark" && ["mix", "wide"].includes((N = e.settingValue) == null ? void 0 : N.layout)
2729
- }, {
2730
- key: "colorTextMenuSelected",
2731
- title: "菜单文字选中颜色",
2732
- disabled: ((K = e.settingValue) == null ? void 0 : K.theme) === "dark" && ((W = e.settingValue) == null ? void 0 : W.layout) !== "mix"
2733
- }, {
2734
- key: "colorDarkTextMenuSelected",
2735
- title: "菜单文字选中颜色",
2736
- disabled: ((ge = e.settingValue) == null ? void 0 : ge.theme) === "light" || ((Ee = e.settingValue) == null ? void 0 : Ee.theme) === "dark" && ["mix", "wide"].includes((Xe = e.settingValue) == null ? void 0 : Xe.layout)
2737
- }];
2738
- }), h = b(() => a.value === "header" ? p.value : a.value === "sider" ? O.value : []), T = (l) => {
2739
- var r, I;
2740
- return (I = (r = w.value) == null ? void 0 : r[a.value]) == null ? void 0 : I[l];
2728
+ return (l = b.value) == null ? void 0 : l.layout;
2729
+ }), d = m(() => {
2730
+ var r;
2731
+ const l = (r = M[a.value].find((x) => {
2732
+ var w;
2733
+ return x.key === ((w = C.value) == null ? void 0 : w.layoutThemeKey);
2734
+ })) == null ? void 0 : r.token;
2735
+ return Object.keys(l || {}).map((x) => {
2736
+ var S;
2737
+ return {
2738
+ title: ((S = ma.find((O) => O.key === x)) == null ? void 0 : S.name) || "",
2739
+ key: x,
2740
+ value: (l == null ? void 0 : l[x]) || ""
2741
+ };
2742
+ });
2743
+ }), F = (l, r) => {
2744
+ var x;
2745
+ M[a.value] = M[a.value].map((w) => {
2746
+ var S;
2747
+ return w.key === ((S = C.value) == null ? void 0 : S.layoutThemeKey) && (w.token[r] = l), w;
2748
+ }), (x = e.onChange) == null || x.call(e, l, a.value, r);
2741
2749
  };
2742
2750
  return () => {
2743
- var r, I, R;
2751
+ var r, x, w;
2744
2752
  let l;
2745
2753
  return u(n("div", {
2746
- class: [o, g.value]
2754
+ class: [o, f.value]
2747
2755
  }, [n("h3", {
2748
- class: [`${o}-title`, g.value]
2749
- }, [te("主题编辑器"), n("div", {
2750
- class: [`${o}-sub-title`, g.value]
2751
- }, [n("span", null, [(r = Bt.find((v) => {
2752
- var y;
2753
- return v.key === ((y = e.settingValue) == null ? void 0 : y.theme);
2756
+ class: [`${o}-title`, f.value]
2757
+ }, [Q("主题编辑器"), n("div", {
2758
+ class: [`${o}-sub-title`, f.value]
2759
+ }, [n("span", null, [(r = $t.find((S) => {
2760
+ var O;
2761
+ return S.key === ((O = e.settingValue) == null ? void 0 : O.theme);
2754
2762
  })) == null ? void 0 : r.title]), n("span", {
2755
2763
  style: {
2756
2764
  marginInline: "8px"
2757
2765
  }
2758
- }, [te("/")]), n("span", null, [(I = Ot.find((v) => {
2759
- var y;
2760
- return v.key === ((y = e.settingValue) == null ? void 0 : y.layout);
2761
- })) == null ? void 0 : I.title])])]), n("div", {
2762
- class: [`${o}-content`, g.value]
2763
- }, [n(oe, {
2764
- class: `${o}-list ${g.value}`.trim(),
2766
+ }, [Q("/")]), n("span", null, [(x = Bt.find((S) => {
2767
+ var O;
2768
+ return S.key === ((O = e.settingValue) == null ? void 0 : O.layout);
2769
+ })) == null ? void 0 : x.title])])]), n("div", {
2770
+ class: [`${o}-content`, f.value]
2771
+ }, [n(ae, {
2772
+ class: `${o}-list ${f.value}`.trim(),
2765
2773
  split: !1,
2766
2774
  size: "small",
2767
2775
  renderItem: ({
2768
- item: v
2769
- }) => n(oe.Item, {
2770
- actions: [v.action]
2776
+ item: S
2777
+ }) => n(ae.Item, {
2778
+ actions: [S.action]
2771
2779
  }, {
2772
2780
  default: () => [n("span", {
2773
2781
  style: {
2774
- opacity: v.disabled ? 0.5 : 1
2782
+ opacity: S.show ? 1 : 0.5
2775
2783
  }
2776
- }, [v.title])]
2784
+ }, [S.title])]
2777
2785
  }),
2778
2786
  dataSource: [{
2779
2787
  title: "自定义主题色",
2780
- action: n(Ge, {
2781
- value: (R = e.settingValue) == null ? void 0 : R.primaryColor,
2788
+ action: n(Je, {
2789
+ value: (w = e.settingValue) == null ? void 0 : w.primaryColor,
2782
2790
  actions: ["confirm"],
2783
2791
  modes: ["rgb"],
2784
2792
  size: "small",
2785
- onConfirm: (v) => e.onChange && e.onChange(v, "primaryColor")
2793
+ onConfirm: (S) => e.onChange && e.onChange(S, "primaryColor")
2786
2794
  }, null)
2787
2795
  }]
2788
- }, null), n(Pe, {
2796
+ }, null), n(je, {
2789
2797
  activeKey: a.value,
2790
- onChange: (v) => i(v)
2791
- }, ua(l = ia.map((v) => n(zt, {
2792
- key: v.key,
2793
- tab: v.title
2798
+ onChange: (S) => i(S)
2799
+ }, ya(l = ca.map((S) => n(Wt, {
2800
+ key: S.key,
2801
+ tab: S.title
2794
2802
  }, {
2795
- default: () => [n(oe, {
2796
- class: `${o}-list ${g.value}`.trim(),
2803
+ default: () => [n(ae, {
2804
+ class: `${o}-list ${f.value}`.trim(),
2797
2805
  split: !1,
2798
2806
  size: "small",
2799
2807
  renderItem: ({
2800
- item: y
2801
- }) => n(oe.Item, {
2802
- actions: [y.action]
2808
+ item: O
2809
+ }) => n(ae.Item, {
2810
+ actions: [O.action]
2803
2811
  }, {
2804
2812
  default: () => [n("span", {
2805
2813
  style: {
2806
- opacity: y.disabled ? 0.5 : 1
2814
+ opacity: O.disabled ? 0.5 : 1
2807
2815
  }
2808
- }, [y.title])]
2816
+ }, [O.title])]
2809
2817
  }),
2810
- dataSource: h.value.filter((y) => !y.disabled).map((y) => ({
2811
- ...y,
2812
- action: n(Ge, {
2813
- value: T(y.key),
2818
+ dataSource: d.value.map((O) => ({
2819
+ ...O,
2820
+ action: n(Je, {
2821
+ value: O.value,
2814
2822
  actions: ["confirm"],
2815
- modes: ["rgb"],
2816
2823
  size: "small",
2817
- onConfirm: (f) => e.onChange && e.onChange(f, a.value, y.key)
2824
+ onConfirm: (v) => F(v, O.key)
2818
2825
  }, null)
2819
2826
  }))
2820
2827
  }, null)]
@@ -2823,7 +2830,7 @@ const da = /* @__PURE__ */ j({
2823
2830
  })])]));
2824
2831
  };
2825
2832
  }
2826
- }), ca = (e) => ({
2833
+ }), pa = (e) => ({
2827
2834
  [e.componentCls]: {
2828
2835
  padding: e.marginLG,
2829
2836
  "&-title": {
@@ -2854,12 +2861,12 @@ const da = /* @__PURE__ */ j({
2854
2861
  }
2855
2862
  }
2856
2863
  });
2857
- function tt(e) {
2858
- return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !ie(e);
2864
+ function ot(e) {
2865
+ return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !oe(e);
2859
2866
  }
2860
2867
  const {
2861
- preset: nt
2862
- } = Ae, ma = /* @__PURE__ */ j({
2868
+ preset: it
2869
+ } = Ee, va = /* @__PURE__ */ A({
2863
2870
  name: "OthersChange",
2864
2871
  props: {
2865
2872
  prefixCls: L.string,
@@ -2867,77 +2874,77 @@ const {
2867
2874
  onChange: Function
2868
2875
  },
2869
2876
  setup(e) {
2870
- const t = me({
2877
+ const t = he({
2871
2878
  suffixCls: "others",
2872
2879
  isPor: !0
2873
2880
  }), {
2874
2881
  wrapSSR: a,
2875
2882
  hashId: i
2876
- } = ne("SettingsDrawOthers", [ca], t);
2883
+ } = ie("SettingsDrawOthers", [pa], t);
2877
2884
  return () => {
2878
- var u, g, m, w, p, O, h, T, l, r, I, R, v, y;
2885
+ var u, f, b, g, M, C, d, F, l, r, x, w, S, O;
2879
2886
  let o;
2880
2887
  return a(n("div", {
2881
2888
  class: [t, i.value]
2882
2889
  }, [n("h3", {
2883
2890
  class: [`${t}-title`, i.value]
2884
- }, [te("页面动画设置")]), n(oe, {
2891
+ }, [Q("页面动画设置")]), n(ae, {
2885
2892
  class: `${t}-list ${i.value}`.trim(),
2886
2893
  split: !1,
2887
2894
  size: "small",
2888
2895
  renderItem: ({
2889
- item: f
2890
- }) => n(Ie, {
2891
- title: f.disabled ? f.disabledReason : "",
2896
+ item: v
2897
+ }) => n(Re, {
2898
+ title: v.disabled ? v.disabledReason : "",
2892
2899
  placement: "left"
2893
2900
  }, {
2894
- default: () => [n(oe.Item, {
2895
- actions: [f.action]
2901
+ default: () => [n(ae.Item, {
2902
+ actions: [v.action]
2896
2903
  }, {
2897
2904
  default: () => [n("span", {
2898
2905
  style: {
2899
- opacity: f.disabled ? 0.5 : 1
2906
+ opacity: v.disabled ? 0.5 : 1
2900
2907
  }
2901
- }, [f.title])]
2908
+ }, [v.title])]
2902
2909
  })]
2903
2910
  }),
2904
2911
  dataSource: [{
2905
2912
  title: "禁用动画",
2906
- action: n(st, {
2907
- checked: !((g = (u = e.settingValue) == null ? void 0 : u.animate) != null && g.disabled),
2913
+ action: n(dt, {
2914
+ checked: !((f = (u = e.settingValue) == null ? void 0 : u.animate) != null && f.disabled),
2908
2915
  size: "small",
2909
- onChange: (f) => {
2910
- var C;
2911
- return (C = e.onChange) == null ? void 0 : C.call(e, "animate", "disabled", !f);
2916
+ onChange: (v) => {
2917
+ var y;
2918
+ return (y = e.onChange) == null ? void 0 : y.call(e, "animate", "disabled", !v);
2912
2919
  }
2913
2920
  }, null)
2914
2921
  }, {
2915
2922
  title: "动画效果",
2916
- disabled: (w = (m = e.settingValue) == null ? void 0 : m.animate) == null ? void 0 : w.disabled,
2917
- action: n(he, {
2918
- value: (O = (p = e.settingValue) == null ? void 0 : p.animate) == null ? void 0 : O.name,
2923
+ disabled: (g = (b = e.settingValue) == null ? void 0 : b.animate) == null ? void 0 : g.disabled,
2924
+ action: n(be, {
2925
+ value: (C = (M = e.settingValue) == null ? void 0 : M.animate) == null ? void 0 : C.name,
2919
2926
  style: {
2920
2927
  width: "100px"
2921
2928
  },
2922
2929
  size: "small",
2923
- disabled: (T = (h = e.settingValue) == null ? void 0 : h.animate) == null ? void 0 : T.disabled,
2924
- getPopupContainer: (f) => f && f.parentNode ? f.parentNode : f,
2925
- onChange: (f) => {
2926
- var C;
2927
- return (C = e.onChange) == null ? void 0 : C.call(e, "animate", "name", f);
2930
+ disabled: (F = (d = e.settingValue) == null ? void 0 : d.animate) == null ? void 0 : F.disabled,
2931
+ getPopupContainer: (v) => v && v.parentNode ? v.parentNode : v,
2932
+ onChange: (v) => {
2933
+ var y;
2934
+ return (y = e.onChange) == null ? void 0 : y.call(e, "animate", "name", v);
2928
2935
  }
2929
- }, tt(o = nt.map((f) => n(he.Option, {
2930
- value: f.name
2936
+ }, ot(o = it.map((v) => n(be.Option, {
2937
+ value: v.name
2931
2938
  }, {
2932
- default: () => [f.alias]
2939
+ default: () => [v.alias]
2933
2940
  }))) ? o : {
2934
2941
  default: () => [o]
2935
2942
  })
2936
2943
  }, {
2937
2944
  title: "动画方向",
2938
2945
  disabled: (r = (l = e.settingValue) == null ? void 0 : l.animate) == null ? void 0 : r.disabled,
2939
- action: n(he, {
2940
- value: (R = (I = e.settingValue) == null ? void 0 : I.animate) == null ? void 0 : R.direction,
2946
+ action: n(be, {
2947
+ value: (w = (x = e.settingValue) == null ? void 0 : x.animate) == null ? void 0 : w.direction,
2941
2948
  style: {
2942
2949
  width: "100px"
2943
2950
  },
@@ -2945,22 +2952,22 @@ const {
2945
2952
  dropdownStyle: {
2946
2953
  minWidth: "120px"
2947
2954
  },
2948
- disabled: (y = (v = e.settingValue) == null ? void 0 : v.animate) == null ? void 0 : y.disabled,
2949
- getPopupContainer: (f) => f && f.parentNode ? f.parentNode : f,
2950
- onChange: (f) => {
2951
- var C;
2952
- return (C = e.onChange) == null ? void 0 : C.call(e, "animate", "direction", f);
2955
+ disabled: (O = (S = e.settingValue) == null ? void 0 : S.animate) == null ? void 0 : O.disabled,
2956
+ getPopupContainer: (v) => v && v.parentNode ? v.parentNode : v,
2957
+ onChange: (v) => {
2958
+ var y;
2959
+ return (y = e.onChange) == null ? void 0 : y.call(e, "animate", "direction", v);
2953
2960
  }
2954
2961
  }, {
2955
2962
  default: () => {
2956
- var f;
2957
- return [(f = nt.find((C) => {
2958
- var F, c;
2959
- return C.name === ((c = (F = e.settingValue) == null ? void 0 : F.animate) == null ? void 0 : c.name);
2960
- })) == null ? void 0 : f.directions.map((C) => n(he.Option, {
2961
- value: C
2962
- }, tt(C) ? C : {
2963
- default: () => [C]
2963
+ var v;
2964
+ return [(v = it.find((y) => {
2965
+ var T, h;
2966
+ return y.name === ((h = (T = e.settingValue) == null ? void 0 : T.animate) == null ? void 0 : h.name);
2967
+ })) == null ? void 0 : v.directions.map((y) => n(be.Option, {
2968
+ value: y
2969
+ }, ot(y) ? y : {
2970
+ default: () => [y]
2964
2971
  }))];
2965
2972
  }
2966
2973
  })
@@ -2969,11 +2976,11 @@ const {
2969
2976
  };
2970
2977
  }
2971
2978
  }), {
2972
- preset: fa
2973
- } = Ae, $e = Object.keys(A).filter((e) => e !== "title"), at = {
2979
+ preset: Ca
2980
+ } = Ee, ze = Object.keys(K).filter((e) => e !== "title"), lt = {
2974
2981
  color: "#fff",
2975
2982
  fontSize: 20
2976
- }, ga = [{
2983
+ }, xa = [{
2977
2984
  label: "fixedHeader",
2978
2985
  title: "固定 Header"
2979
2986
  }, {
@@ -2982,16 +2989,16 @@ const {
2982
2989
  }, {
2983
2990
  label: "splitMenus",
2984
2991
  title: "自动分割菜单"
2985
- }], ha = [{
2992
+ }], wa = [{
2986
2993
  label: "showTabsBar",
2987
2994
  title: "多标签"
2988
2995
  }, {
2989
2996
  label: "fixedMultiTab",
2990
2997
  title: "固定多标签"
2991
- }], ot = (e) => Jt() ? {
2992
- ...le(A, $e),
2998
+ }], rt = (e) => an() ? {
2999
+ ...re(K, ze),
2993
3000
  ...e || {}
2994
- } : He(A), be = (e, {
3001
+ } : Be(K), ve = (e, {
2995
3002
  slots: t
2996
3003
  }) => {
2997
3004
  var a;
@@ -3002,7 +3009,7 @@ const {
3002
3009
  }, [n("h3", {
3003
3010
  class: `${e.prefixCls}-body-title ${e.hashId}`.trim()
3004
3011
  }, [e.title]), (a = t.default) == null ? void 0 : a.call(t)]);
3005
- }, Fi = /* @__PURE__ */ j({
3012
+ }, zi = /* @__PURE__ */ A({
3006
3013
  name: "SettingDrawer",
3007
3014
  props: {
3008
3015
  themeOnly: Boolean,
@@ -3015,7 +3022,7 @@ const {
3015
3022
  },
3016
3023
  colorList: {
3017
3024
  type: [Boolean, Array],
3018
- default: () => tn
3025
+ default: () => sn
3019
3026
  },
3020
3027
  onChange: Function,
3021
3028
  onChangeLayout: Function
@@ -3024,48 +3031,48 @@ const {
3024
3031
  setup(e) {
3025
3032
  const {
3026
3033
  getPrefixCls: t
3027
- } = ee(), a = t({
3034
+ } = J(), a = t({
3028
3035
  suffixCls: "setting-drawer",
3029
3036
  isPor: !0
3030
3037
  }), {
3031
3038
  wrapSSR: i,
3032
3039
  hashId: o
3033
- } = ne("ProSettingDraw", [la], a), u = Oe(!1), [g, m] = ve(!1), [w, p] = ve(!1), [O, h] = ve(!1), T = b(() => ot(le(e.settings, $e))), [l, r] = ln(() => ot(le(e.settings, $e)), {
3034
- value: T,
3040
+ } = ie("ProSettingDraw", [fa], a), u = we(!1), [f, b] = xe(!1), [g, M] = xe(!1), [C, d] = xe(!1), F = m(() => rt(re(e.settings, ze))), [l, r] = mn(() => rt(re(e.settings, ze)), {
3041
+ value: F,
3035
3042
  onChange: e.onChange
3036
- }), I = b(() => e.colorList && ct(e.colorList) ? e.colorList : []), R = b(() => Sn(X(l))), {
3037
- copy: v,
3038
- copied: y,
3039
- isSupported: f
3040
- } = un();
3041
- de(g, () => {
3043
+ }), x = m(() => e.colorList && ft(e.colorList) ? e.colorList : []), w = m(() => $n(j(l))), {
3044
+ copy: S,
3045
+ copied: O,
3046
+ isSupported: v
3047
+ } = gn();
3048
+ ce(f, () => {
3042
3049
  u.value || (u.value = !0);
3043
3050
  });
3044
- const C = (c, S, M) => {
3045
- var H, z;
3046
- const B = ["header", "sider"], P = {};
3047
- if (M && B.includes(c)) {
3048
- P[c] = {}, P[c][M] = S, e.onChangeLayout && e.onChangeLayout(le(P, B));
3051
+ const y = (h, p, P) => {
3052
+ var B, U;
3053
+ const k = ["header", "sider"], N = {};
3054
+ if (P && k.includes(h)) {
3055
+ N[h] = {}, N[h][P] = p, e.onChangeLayout && e.onChangeLayout(re(N, k));
3049
3056
  return;
3050
3057
  } else
3051
- c === "animate" ? (P[c] = {}, P[c][M] = S, M === "name" && (P[c].direction = (z = (H = fa.find((D) => D.name === S)) == null ? void 0 : H.directions) == null ? void 0 : z[0])) : P[c] = S;
3052
- if (c === "colorWeak") {
3053
- const D = document.querySelector("body");
3054
- D && (D.dataset.prosettingdrawer = S === !0 ? D.style.filter : D.dataset.prosettingdrawer || "none", S === !0 && (D.dataset.prosettingdrawer = D.style.filter), D.style.filter = S === !0 ? "invert(80%)" : D.dataset.prosettingdrawer || "none", S || delete D.dataset.prosettingdrawer);
3058
+ h === "animate" ? (N[h] = {}, N[h][P] = p, P === "name" && (N[h].direction = (U = (B = Ca.find((z) => z.name === p)) == null ? void 0 : B.directions) == null ? void 0 : U[0])) : N[h] = p;
3059
+ if (h === "colorWeak") {
3060
+ const z = document.querySelector("body");
3061
+ z && (z.dataset.prosettingdrawer = p === !0 ? z.style.filter : z.dataset.prosettingdrawer || "none", p === !0 && (z.dataset.prosettingdrawer = z.style.filter), z.style.filter = p === !0 ? "invert(80%)" : z.dataset.prosettingdrawer || "none", p || delete z.dataset.prosettingdrawer);
3055
3062
  }
3056
- r(Qt(X(l), {
3057
- ...wn(Ve(P, B))
3063
+ r(gt(j(l), {
3064
+ ...Fn(Ue(N, k))
3058
3065
  }));
3059
- }, F = () => {
3060
- f.value && v(JSON.stringify(X(l)));
3066
+ }, T = () => {
3067
+ v.value && S(JSON.stringify(j(l)));
3061
3068
  };
3062
- return de(y, (c) => {
3063
- c && Ht.success("拷贝成功,请到 config/default/themeConfig.js 中替换默认配置");
3064
- }), () => i(n(pe, {
3069
+ return ce(O, (h) => {
3070
+ h && Ut.success("拷贝成功,请到 config/default/themeConfig.js 中替换默认配置");
3071
+ }), () => i(n(Ce, {
3065
3072
  width: 300,
3066
3073
  closable: !1,
3067
- open: g.value,
3068
- rootClassName: `${a} ${o.value} ${g.value && `${a}-show`} ${!u.value && `${a}-trantion-none`}`,
3074
+ open: f.value,
3075
+ rootClassName: `${a} ${o.value} ${f.value && `${a}-show`} ${!u.value && `${a}-trantion-none`}`,
3069
3076
  placement: "right",
3070
3077
  rootStyle: {
3071
3078
  zIndex: 999
@@ -3073,159 +3080,159 @@ const {
3073
3080
  bodyStyle: {
3074
3081
  padding: 0
3075
3082
  },
3076
- onClose: () => m(!1),
3083
+ onClose: () => b(!1),
3077
3084
  handle: n("div", {
3078
3085
  class: [`${a}-handle`, o.value],
3079
- onClick: () => m(!g.value)
3080
- }, [g.value ? n(ut, {
3081
- style: at
3082
- }, null) : n(_t, {
3083
- style: at
3086
+ onClick: () => b(!f.value)
3087
+ }, [f.value ? n(ct, {
3088
+ style: lt
3089
+ }, null) : n(Qt, {
3090
+ style: lt
3084
3091
  }, null)])
3085
3092
  }, {
3086
3093
  default: () => [n("div", {
3087
3094
  class: [`${a}-wrapper`, o.value]
3088
- }, [n(dn, null, {
3095
+ }, [n(yn, null, {
3089
3096
  default: () => [n("div", {
3090
3097
  class: [`${a}-content`, o.value]
3091
- }, [n(be, {
3098
+ }, [n(ve, {
3092
3099
  prefixCls: a,
3093
3100
  hashId: o.value,
3094
3101
  title: "整体风格设置"
3095
3102
  }, {
3096
- default: () => [n(et, {
3103
+ default: () => [n(at, {
3097
3104
  hashId: o.value,
3098
3105
  prefixCls: a,
3099
- list: Bt,
3106
+ list: $t,
3100
3107
  value: l.value.theme,
3101
3108
  configType: "theme",
3102
3109
  key: "navTheme",
3103
- onChange: (c) => C("theme", c)
3110
+ onChange: (h) => y("theme", h)
3104
3111
  }, null)]
3105
- }), n(be, {
3112
+ }), n(ve, {
3106
3113
  hashId: o.value,
3107
- title: n("span", null, [te("主题色"), n("a", {
3114
+ title: n("span", null, [Q("主题色"), n("a", {
3108
3115
  style: {
3109
3116
  fontSize: "12px"
3110
3117
  },
3111
- onClick: () => p(!0)
3112
- }, [te("更多配置")])]),
3118
+ onClick: () => M(!0)
3119
+ }, [Q("更多配置")])]),
3113
3120
  prefixCls: a
3114
3121
  }, {
3115
- default: () => [n(ra, {
3122
+ default: () => [n(ha, {
3116
3123
  hashId: o.value,
3117
3124
  prefixCls: a,
3118
- colorList: I.value,
3125
+ colorList: x.value,
3119
3126
  settingValue: l.value,
3120
- onChange: (c, S) => C(S || "primaryColor", c)
3127
+ onChange: (h, p) => y(p || "primaryColor", h)
3121
3128
  }, null)]
3122
- }), !e.themeOnly && n(Q, null, [n(Be, null, null), n(be, {
3129
+ }), !e.themeOnly && n(Z, null, [n(Te, null, null), n(ve, {
3123
3130
  hashId: o.value,
3124
3131
  prefixCls: a,
3125
3132
  title: "导航模式"
3126
3133
  }, {
3127
- default: () => [n(et, {
3134
+ default: () => [n(at, {
3128
3135
  prefixCls: a,
3129
- value: X(l).layout,
3136
+ value: j(l).layout,
3130
3137
  key: "layout",
3131
3138
  hashId: o.value,
3132
3139
  configType: "layout",
3133
- list: Ot,
3134
- onChange: (c) => C("layout", c)
3140
+ list: Bt,
3141
+ onChange: (h) => y("layout", h)
3135
3142
  }, null)]
3136
- }), ga.map(({
3137
- label: c,
3138
- title: S
3139
- }) => n(ye, {
3140
- label: S,
3141
- disabled: X(R)[c],
3142
- value: X(l)[c],
3143
+ }), xa.map(({
3144
+ label: h,
3145
+ title: p
3146
+ }) => n(pe, {
3147
+ label: p,
3148
+ disabled: j(w)[h],
3149
+ value: j(l)[h],
3143
3150
  prefixCls: a,
3144
3151
  hashId: o.value,
3145
- valueKey: c,
3146
- onChange: (M, B) => C(M, B)
3147
- }, null)), n(Be, null, null), n(be, {
3152
+ valueKey: h,
3153
+ onChange: (P, k) => y(P, k)
3154
+ }, null)), n(Te, null, null), n(ve, {
3148
3155
  hashId: o.value,
3149
3156
  prefixCls: a,
3150
- title: n("span", null, [te("其他设置"), n("a", {
3157
+ title: n("span", null, [Q("其他设置"), n("a", {
3151
3158
  style: {
3152
3159
  fontSize: "12px"
3153
3160
  },
3154
- onClick: () => h(!0)
3155
- }, [te("更多配置")])])
3161
+ onClick: () => d(!0)
3162
+ }, [Q("更多配置")])])
3156
3163
  }, {
3157
- default: () => [ha.map(({
3158
- label: c,
3159
- title: S
3160
- }) => n(ye, {
3161
- label: S,
3162
- disabled: X(R)[c],
3163
- value: X(l)[c],
3164
+ default: () => [wa.map(({
3165
+ label: h,
3166
+ title: p
3167
+ }) => n(pe, {
3168
+ label: p,
3169
+ disabled: j(w)[h],
3170
+ value: j(l)[h],
3164
3171
  prefixCls: a,
3165
3172
  hashId: o.value,
3166
- valueKey: c,
3167
- onChange: (M, B) => C(M, B)
3168
- }, null)), e.weakmode && n(ye, {
3173
+ valueKey: h,
3174
+ onChange: (P, k) => y(P, k)
3175
+ }, null)), e.weakmode && n(pe, {
3169
3176
  label: "色弱模式",
3170
- value: X(l).colorWeak,
3177
+ value: j(l).colorWeak,
3171
3178
  prefixCls: a,
3172
3179
  hashId: o.value,
3173
3180
  valueKey: "colorWeak",
3174
- onChange: (c, S) => C(c, S)
3175
- }, null), e.showProgress && n(ye, {
3181
+ onChange: (h, p) => y(h, p)
3182
+ }, null), e.showProgress && n(pe, {
3176
3183
  label: "顶部进度条",
3177
- value: X(l).showProgressBar,
3184
+ value: j(l).showProgressBar,
3178
3185
  prefixCls: a,
3179
3186
  hashId: o.value,
3180
3187
  valueKey: "showProgressBar",
3181
- onChange: (c, S) => C(c, S)
3188
+ onChange: (h, p) => y(h, p)
3182
3189
  }, null)]
3183
- })]), e.hideHintAlert && e.hideCopyButton ? null : n(Be, null, null), e.hideHintAlert ? null : n(Vt, {
3190
+ })]), e.hideHintAlert && e.hideCopyButton ? null : n(Te, null, null), e.hideHintAlert ? null : n(Et, {
3184
3191
  type: "warning",
3185
3192
  message: "配置栏只在开发环境用于预览,生产环境不会展现,请拷贝后手动修改配置文件",
3186
- icon: n(Gt, null, null),
3193
+ icon: n(en, null, null),
3187
3194
  showIcon: !0,
3188
3195
  style: {
3189
3196
  marginBottom: "16px"
3190
3197
  }
3191
- }, null), e.hideCopyButton ? null : n(At, {
3192
- onClick: () => F(),
3198
+ }, null), e.hideCopyButton ? null : n(Xt, {
3199
+ onClick: () => T(),
3193
3200
  block: !0
3194
3201
  }, {
3195
- default: () => [n(qt, null, null), te("拷贝设置")]
3202
+ default: () => [n(tn, null, null), Q("拷贝设置")]
3196
3203
  })])]
3197
- })]), n(pe, {
3204
+ })]), n(Ce, {
3198
3205
  width: 320,
3199
3206
  closable: !1,
3200
3207
  placement: "right",
3201
- open: w.value,
3208
+ open: g.value,
3202
3209
  bodyStyle: {
3203
3210
  padding: 0
3204
3211
  },
3205
- onClose: () => p(!1)
3212
+ onClose: () => M(!1)
3206
3213
  }, {
3207
- default: () => [n(da, {
3214
+ default: () => [n(ba, {
3208
3215
  settingValue: l.value,
3209
- onChange: (c, S, M) => C(S || "primaryColor", c, M)
3216
+ onChange: (h, p, P) => y(p || "primaryColor", h, P)
3210
3217
  }, null)]
3211
- }), n(pe, {
3218
+ }), n(Ce, {
3212
3219
  width: 320,
3213
3220
  closable: !1,
3214
3221
  placement: "right",
3215
- open: O.value,
3222
+ open: C.value,
3216
3223
  bodyStyle: {
3217
3224
  padding: 0
3218
3225
  },
3219
- onClose: () => h(!1)
3226
+ onClose: () => d(!1)
3220
3227
  }, {
3221
- default: () => [n(ma, {
3228
+ default: () => [n(va, {
3222
3229
  settingValue: l.value,
3223
- onChange: (c, S, M) => C(c, M, S)
3230
+ onChange: (h, p, P) => y(h, P, p)
3224
3231
  }, null)]
3225
3232
  })]
3226
3233
  }));
3227
3234
  }
3228
- }), ya = new s("backInLeft", {
3235
+ }), Sa = new s("backInLeft", {
3229
3236
  "0%": {
3230
3237
  opacity: 0.7,
3231
3238
  transform: "translateX(-2000px) scale(0.7)"
@@ -3238,7 +3245,7 @@ const {
3238
3245
  opacity: 1,
3239
3246
  transform: "scale(1)"
3240
3247
  }
3241
- }), ba = new s("backInRight", {
3248
+ }), Ia = new s("backInRight", {
3242
3249
  "0%": {
3243
3250
  opacity: 0.7,
3244
3251
  transform: "translateX(2000px) scale(0.7)"
@@ -3251,7 +3258,7 @@ const {
3251
3258
  opacity: 1,
3252
3259
  transform: "scale(1)"
3253
3260
  }
3254
- }), pa = new s("backInUp", {
3261
+ }), Ma = new s("backInUp", {
3255
3262
  "0%": {
3256
3263
  opacity: 0.7,
3257
3264
  transform: "translateY(1200px) scale(0.7)"
@@ -3264,7 +3271,7 @@ const {
3264
3271
  opacity: 1,
3265
3272
  transform: "scale(1)"
3266
3273
  }
3267
- }), va = new s("backInDown", {
3274
+ }), Oa = new s("backInDown", {
3268
3275
  "0%": {
3269
3276
  opacity: 0.7,
3270
3277
  transform: "translateY(-1200px) scale(0.7)"
@@ -3277,7 +3284,7 @@ const {
3277
3284
  opacity: 1,
3278
3285
  transform: "scale(1)"
3279
3286
  }
3280
- }), xa = new s("backOutLeft", {
3287
+ }), Ra = new s("backOutLeft", {
3281
3288
  "0%": {
3282
3289
  opacity: 1,
3283
3290
  transform: "scale(1)"
@@ -3290,7 +3297,7 @@ const {
3290
3297
  opacity: 0.7,
3291
3298
  transform: "translateX(-2000px) scale(0.7)"
3292
3299
  }
3293
- }), Ca = new s("backOutRight", {
3300
+ }), Fa = new s("backOutRight", {
3294
3301
  "0%": {
3295
3302
  opacity: 1,
3296
3303
  transform: "scale(1)"
@@ -3303,7 +3310,7 @@ const {
3303
3310
  opacity: 0.7,
3304
3311
  transform: "translateX(2000px) scale(0.7)"
3305
3312
  }
3306
- }), wa = new s("backOutUp", {
3313
+ }), $a = new s("backOutUp", {
3307
3314
  "0%": {
3308
3315
  opacity: 1,
3309
3316
  transform: "scale(1)"
@@ -3316,7 +3323,7 @@ const {
3316
3323
  opacity: 0.7,
3317
3324
  transform: "translateY(-700px) scale(0.7)"
3318
3325
  }
3319
- }), Sa = new s("backOutDown", {
3326
+ }), Ba = new s("backOutDown", {
3320
3327
  "0%": {
3321
3328
  opacity: 1,
3322
3329
  transform: "scale(1)"
@@ -3329,41 +3336,41 @@ const {
3329
3336
  opacity: 0.7,
3330
3337
  transform: "translateY(700px) scale(0.7)"
3331
3338
  }
3332
- }), Ia = () => ({
3339
+ }), ka = () => ({
3333
3340
  "&.backInLeft": {
3334
3341
  animationFillMode: "both",
3335
- animationName: ya
3342
+ animationName: Sa
3336
3343
  },
3337
3344
  "&.backInRight": {
3338
3345
  animationFillMode: "both",
3339
- animationName: ba
3346
+ animationName: Ia
3340
3347
  },
3341
3348
  "&.backInUp": {
3342
3349
  animationFillMode: "both",
3343
- animationName: pa
3350
+ animationName: Ma
3344
3351
  },
3345
3352
  "&.backInDown": {
3346
3353
  animationFillMode: "both",
3347
- animationName: va
3354
+ animationName: Oa
3348
3355
  }
3349
- }), Ma = () => ({
3356
+ }), Ta = () => ({
3350
3357
  "&.backOutLeft": {
3351
3358
  animationFillMode: "both",
3352
- animationName: xa
3359
+ animationName: Ra
3353
3360
  },
3354
3361
  "&.backOutRight": {
3355
3362
  animationFillMode: "both",
3356
- animationName: Ca
3363
+ animationName: Fa
3357
3364
  },
3358
3365
  "&.backOutUp": {
3359
3366
  animationFillMode: "both",
3360
- animationName: wa
3367
+ animationName: $a
3361
3368
  },
3362
3369
  "&.backOutDown": {
3363
3370
  animationFillMode: "both",
3364
- animationName: Sa
3371
+ animationName: Ba
3365
3372
  }
3366
- }), Ba = new s("bounceIn", {
3373
+ }), Pa = new s("bounceIn", {
3367
3374
  "from,20%,40%,60%,80%,to": {
3368
3375
  animationTimingFunction: "cubic-bezier(0.215, 0.61, 0.355, 1)"
3369
3376
  },
@@ -3387,7 +3394,7 @@ const {
3387
3394
  opacity: 1,
3388
3395
  transform: "scale3d(1, 1, 1)"
3389
3396
  }
3390
- }), Oa = new s("bounceInLeft", {
3397
+ }), La = new s("bounceInLeft", {
3391
3398
  "from,60%,75%,90%,to": {
3392
3399
  animationTimingFunction: "cubic-bezier(0.215, 0.61, 0.355, 1)"
3393
3400
  },
@@ -3408,7 +3415,7 @@ const {
3408
3415
  to: {
3409
3416
  transform: "translate3d(0, 0, 0)"
3410
3417
  }
3411
- }), Ra = new s("bounceInRight", {
3418
+ }), Da = new s("bounceInRight", {
3412
3419
  "from,60%,75%,90%,to": {
3413
3420
  animationTimingFunction: "cubic-bezier(0.215, 0.61, 0.355, 1)"
3414
3421
  },
@@ -3429,7 +3436,7 @@ const {
3429
3436
  to: {
3430
3437
  transform: "translate3d(0, 0, 0)"
3431
3438
  }
3432
- }), ka = new s("bounceInDown", {
3439
+ }), Na = new s("bounceInDown", {
3433
3440
  "from,60%,75%,90%,to": {
3434
3441
  animationTimingFunction: "cubic-bezier(0.215, 0.61, 0.355, 1)"
3435
3442
  },
@@ -3450,7 +3457,7 @@ const {
3450
3457
  to: {
3451
3458
  transform: "translate3d(0, 0, 0)"
3452
3459
  }
3453
- }), Fa = new s("bounceInUp", {
3460
+ }), za = new s("bounceInUp", {
3454
3461
  "from,60%,75%,90%,to": {
3455
3462
  animationTimingFunction: "cubic-bezier(0.215, 0.61, 0.355, 1)"
3456
3463
  },
@@ -3471,7 +3478,7 @@ const {
3471
3478
  to: {
3472
3479
  transform: "translate3d(0, 0, 0)"
3473
3480
  }
3474
- }), $a = new s("bounceOut", {
3481
+ }), Ha = new s("bounceOut", {
3475
3482
  "20%": {
3476
3483
  transform: "scale3d(0.9, 0.9, 0.9)"
3477
3484
  },
@@ -3485,7 +3492,7 @@ const {
3485
3492
  opacity: 0,
3486
3493
  transform: "scale3d(0.3, 0.3, 0.3)"
3487
3494
  }
3488
- }), Ta = new s("bounceOutLeft", {
3495
+ }), Ka = new s("bounceOutLeft", {
3489
3496
  "20%": {
3490
3497
  opacity: 1,
3491
3498
  transform: "translate3d(20px, 0, 0) scaleX(0.9)"
@@ -3494,7 +3501,7 @@ const {
3494
3501
  opacity: 0,
3495
3502
  transform: "translate3d(-2000px, 0, 0) scaleX(2)"
3496
3503
  }
3497
- }), Pa = new s("bounceOutRight", {
3504
+ }), ja = new s("bounceOutRight", {
3498
3505
  "20%": {
3499
3506
  opacity: 1,
3500
3507
  transform: "translate3d(-20px, 0, 0) scaleX(0.9)"
@@ -3503,7 +3510,7 @@ const {
3503
3510
  opacity: 0,
3504
3511
  transform: "translate3d(2000px, 0, 0) scaleX(2)"
3505
3512
  }
3506
- }), La = new s("bounceOutDown", {
3513
+ }), Aa = new s("bounceOutDown", {
3507
3514
  "20%": {
3508
3515
  transform: "translate3d(0, 10px, 0) scaleY(0.985)"
3509
3516
  },
@@ -3515,7 +3522,7 @@ const {
3515
3522
  opacity: 0,
3516
3523
  transform: "translate3d(0, 2000px, 0) scaleY(3)"
3517
3524
  }
3518
- }), Da = new s("bounceOutUp", {
3525
+ }), Wa = new s("bounceOutUp", {
3519
3526
  "20%": {
3520
3527
  transform: "translate3d(0, -10px, 0) scaleY(0.985)"
3521
3528
  },
@@ -3527,58 +3534,58 @@ const {
3527
3534
  opacity: 0,
3528
3535
  transform: "translate3d(0, -2000px, 0) scaleY(3)"
3529
3536
  }
3530
- }), Na = () => ({
3537
+ }), Ua = () => ({
3531
3538
  "&.bounceIn": {
3532
3539
  animationFillMode: "both",
3533
3540
  animationDuration: `${0.3 * 0.75}s !important`,
3534
- animationName: Ba
3541
+ animationName: Pa
3535
3542
  },
3536
3543
  "&.bounceInLeft": {
3537
3544
  animationFillMode: "both",
3538
- animationName: Oa
3545
+ animationName: La
3539
3546
  },
3540
3547
  "&.bounceInRight": {
3541
3548
  animationFillMode: "both",
3542
- animationName: Ra
3549
+ animationName: Da
3543
3550
  },
3544
3551
  "&.bounceInDown": {
3545
3552
  animationFillMode: "both",
3546
- animationName: ka
3553
+ animationName: Na
3547
3554
  },
3548
3555
  "&.bounceInUp": {
3549
3556
  animationFillMode: "both",
3550
- animationName: Fa
3557
+ animationName: za
3551
3558
  }
3552
- }), za = () => ({
3559
+ }), Ea = () => ({
3553
3560
  "&.bounceOut": {
3554
3561
  animationFillMode: "both",
3555
3562
  animationDuration: `${0.3 * 0.75}s !important`,
3556
- animationName: $a
3563
+ animationName: Ha
3557
3564
  },
3558
3565
  "&.bounceOutLeft": {
3559
3566
  animationFillMode: "both",
3560
- animationName: Ta
3567
+ animationName: Ka
3561
3568
  },
3562
3569
  "&.bounceOutRight": {
3563
3570
  animationFillMode: "both",
3564
- animationName: Pa
3571
+ animationName: ja
3565
3572
  },
3566
3573
  "&.bounceOutDown": {
3567
3574
  animationFillMode: "both",
3568
- animationName: La
3575
+ animationName: Aa
3569
3576
  },
3570
3577
  "&.bounceOutUp": {
3571
3578
  animationFillMode: "both",
3572
- animationName: Da
3579
+ animationName: Wa
3573
3580
  }
3574
- }), Ha = new s("fadeIn", {
3581
+ }), Xa = new s("fadeIn", {
3575
3582
  from: {
3576
3583
  opacity: 0
3577
3584
  },
3578
3585
  to: {
3579
3586
  opacity: 1
3580
3587
  }
3581
- }), Va = new s("fadeInLeft", {
3588
+ }), Ya = new s("fadeInLeft", {
3582
3589
  from: {
3583
3590
  opacity: 0,
3584
3591
  transform: "translate3d(-100%, 0, 0)"
@@ -3587,7 +3594,7 @@ const {
3587
3594
  opacity: 1,
3588
3595
  transform: "translate3d(0, 0, 0)"
3589
3596
  }
3590
- }), Aa = new s("fadeInRight", {
3597
+ }), Va = new s("fadeInRight", {
3591
3598
  from: {
3592
3599
  opacity: 0,
3593
3600
  transform: "translate3d(100%, 0, 0)"
@@ -3596,7 +3603,7 @@ const {
3596
3603
  opacity: 1,
3597
3604
  transform: "translate3d(0, 0, 0)"
3598
3605
  }
3599
- }), ja = new s("fadeInDown", {
3606
+ }), _a = new s("fadeInDown", {
3600
3607
  from: {
3601
3608
  opacity: 0,
3602
3609
  transform: "translate3d(0, -100%, 0)"
@@ -3605,7 +3612,7 @@ const {
3605
3612
  opacity: 1,
3606
3613
  transform: "translate3d(0, 0, 0)"
3607
3614
  }
3608
- }), Wa = new s("fadeInUp", {
3615
+ }), Ga = new s("fadeInUp", {
3609
3616
  from: {
3610
3617
  opacity: 0,
3611
3618
  transform: "translate3d(0, 100%, 0)"
@@ -3614,7 +3621,7 @@ const {
3614
3621
  opacity: 1,
3615
3622
  transform: "translate3d(0, 0, 0)"
3616
3623
  }
3617
- }), Ka = new s("fadeInDownBig", {
3624
+ }), qa = new s("fadeInDownBig", {
3618
3625
  from: {
3619
3626
  opacity: 0,
3620
3627
  transform: "translate3d(0, -2000px, 0)"
@@ -3623,7 +3630,7 @@ const {
3623
3630
  opacity: 1,
3624
3631
  transform: "translate3d(0, 0, 0)"
3625
3632
  }
3626
- }), Ua = new s("fadeInUpBig", {
3633
+ }), Za = new s("fadeInUpBig", {
3627
3634
  from: {
3628
3635
  opacity: 0,
3629
3636
  transform: "translate3d(0, 2000px, 0)"
@@ -3632,7 +3639,7 @@ const {
3632
3639
  opacity: 1,
3633
3640
  transform: "translate3d(0, 0, 0)"
3634
3641
  }
3635
- }), Ea = new s("fadeInLeftBig", {
3642
+ }), Ja = new s("fadeInLeftBig", {
3636
3643
  from: {
3637
3644
  opacity: 0,
3638
3645
  transform: "translate3d(-2000px, 0, 0)"
@@ -3641,7 +3648,7 @@ const {
3641
3648
  opacity: 1,
3642
3649
  transform: "translate3d(0, 0, 0)"
3643
3650
  }
3644
- }), Xa = new s("fadeInRightBig", {
3651
+ }), Qa = new s("fadeInRightBig", {
3645
3652
  from: {
3646
3653
  opacity: 0,
3647
3654
  transform: "translate3d(2000px, 0, 0)"
@@ -3650,7 +3657,7 @@ const {
3650
3657
  opacity: 1,
3651
3658
  transform: "translate3d(0, 0, 0)"
3652
3659
  }
3653
- }), Ya = new s("fadeInTopLeft", {
3660
+ }), eo = new s("fadeInTopLeft", {
3654
3661
  from: {
3655
3662
  opacity: 0,
3656
3663
  transform: "translate3d(-100%, -100%, 0)"
@@ -3659,7 +3666,7 @@ const {
3659
3666
  opacity: 1,
3660
3667
  transform: "translate3d(0, 0, 0)"
3661
3668
  }
3662
- }), _a = new s("fadeInBottomRight", {
3669
+ }), to = new s("fadeInBottomRight", {
3663
3670
  from: {
3664
3671
  opacity: 0,
3665
3672
  transform: "translate3d(100%, 100%, 0)"
@@ -3668,7 +3675,7 @@ const {
3668
3675
  opacity: 1,
3669
3676
  transform: "translate3d(0, 0, 0)"
3670
3677
  }
3671
- }), Ga = new s("fadeInTopRight", {
3678
+ }), no = new s("fadeInTopRight", {
3672
3679
  from: {
3673
3680
  opacity: 0,
3674
3681
  transform: "translate3d(100%, -100%, 0)"
@@ -3677,7 +3684,7 @@ const {
3677
3684
  opacity: 1,
3678
3685
  transform: "translate3d(0, 0, 0)"
3679
3686
  }
3680
- }), qa = new s("fadeInBottomLeft", {
3687
+ }), ao = new s("fadeInBottomLeft", {
3681
3688
  from: {
3682
3689
  opacity: 0,
3683
3690
  transform: "translate3d(-100%, 100%, 0)"
@@ -3686,14 +3693,14 @@ const {
3686
3693
  opacity: 1,
3687
3694
  transform: "translate3d(0, 0, 0)"
3688
3695
  }
3689
- }), Za = new s("fadeOut", {
3696
+ }), oo = new s("fadeOut", {
3690
3697
  from: {
3691
3698
  opacity: 1
3692
3699
  },
3693
3700
  to: {
3694
3701
  opacity: 0
3695
3702
  }
3696
- }), Ja = new s("fadeOutLeft", {
3703
+ }), io = new s("fadeOutLeft", {
3697
3704
  from: {
3698
3705
  opacity: 1
3699
3706
  },
@@ -3701,7 +3708,7 @@ const {
3701
3708
  opacity: 0,
3702
3709
  transform: "translate3d(-100%, 0, 0)"
3703
3710
  }
3704
- }), Qa = new s("fadeOutRight", {
3711
+ }), lo = new s("fadeOutRight", {
3705
3712
  from: {
3706
3713
  opacity: 1
3707
3714
  },
@@ -3709,7 +3716,7 @@ const {
3709
3716
  opacity: 0,
3710
3717
  transform: "translate3d(100%, 0, 0)"
3711
3718
  }
3712
- }), eo = new s("fadeOutDown", {
3719
+ }), ro = new s("fadeOutDown", {
3713
3720
  from: {
3714
3721
  opacity: 1
3715
3722
  },
@@ -3717,7 +3724,7 @@ const {
3717
3724
  opacity: 0,
3718
3725
  transform: "translate3d(0, 100%, 0)"
3719
3726
  }
3720
- }), to = new s("fadeOutUp", {
3727
+ }), so = new s("fadeOutUp", {
3721
3728
  from: {
3722
3729
  opacity: 1
3723
3730
  },
@@ -3725,7 +3732,7 @@ const {
3725
3732
  opacity: 0,
3726
3733
  transform: "translate3d(0, -100%, 0)"
3727
3734
  }
3728
- }), no = new s("fadeOutDownBig", {
3735
+ }), uo = new s("fadeOutDownBig", {
3729
3736
  from: {
3730
3737
  opacity: 1
3731
3738
  },
@@ -3733,7 +3740,7 @@ const {
3733
3740
  opacity: 0,
3734
3741
  transform: "translate3d(0, 2000px, 0)"
3735
3742
  }
3736
- }), ao = new s("fadeOutUpBig", {
3743
+ }), co = new s("fadeOutUpBig", {
3737
3744
  from: {
3738
3745
  opacity: 1
3739
3746
  },
@@ -3741,7 +3748,7 @@ const {
3741
3748
  opacity: 0,
3742
3749
  transform: "translate3d(0, -2000px, 0)"
3743
3750
  }
3744
- }), oo = new s("fadeOutLeftBig", {
3751
+ }), mo = new s("fadeOutLeftBig", {
3745
3752
  from: {
3746
3753
  opacity: 1
3747
3754
  },
@@ -3749,7 +3756,7 @@ const {
3749
3756
  opacity: 0,
3750
3757
  transform: "translate3d(-2000px, 0, 0)"
3751
3758
  }
3752
- }), io = new s("fadeOutRightBig", {
3759
+ }), fo = new s("fadeOutRightBig", {
3753
3760
  from: {
3754
3761
  opacity: 1
3755
3762
  },
@@ -3757,7 +3764,7 @@ const {
3757
3764
  opacity: 0,
3758
3765
  transform: "translate3d(2000px, 0, 0)"
3759
3766
  }
3760
- }), lo = new s("fadeOutTopLeft", {
3767
+ }), ho = new s("fadeOutTopLeft", {
3761
3768
  from: {
3762
3769
  opacity: 1,
3763
3770
  transform: "translate3d(0, 0, 0)"
@@ -3766,7 +3773,7 @@ const {
3766
3773
  opacity: 0,
3767
3774
  transform: "translate3d(-100%, -100%, 0)"
3768
3775
  }
3769
- }), ro = new s("fadeOutBottomRight", {
3776
+ }), go = new s("fadeOutBottomRight", {
3770
3777
  from: {
3771
3778
  opacity: 1,
3772
3779
  transform: "translate3d(0, 0, 0)"
@@ -3775,7 +3782,7 @@ const {
3775
3782
  opacity: 0,
3776
3783
  transform: "translate3d(100%, 100%, 0)"
3777
3784
  }
3778
- }), so = new s("fadeOutTopRight", {
3785
+ }), yo = new s("fadeOutTopRight", {
3779
3786
  from: {
3780
3787
  opacity: 1,
3781
3788
  transform: "translate3d(0, 0, 0)"
@@ -3784,7 +3791,7 @@ const {
3784
3791
  opacity: 0,
3785
3792
  transform: "translate3d(100%, -100%, 0)"
3786
3793
  }
3787
- }), uo = new s("fadeOutBottomLeft", {
3794
+ }), bo = new s("fadeOutBottomLeft", {
3788
3795
  from: {
3789
3796
  opacity: 1,
3790
3797
  transform: "translate3d(0, 0, 0)"
@@ -3793,113 +3800,113 @@ const {
3793
3800
  opacity: 0,
3794
3801
  transform: "translate3d(-100%, 100%, 0)"
3795
3802
  }
3796
- }), co = () => ({
3803
+ }), po = () => ({
3797
3804
  "&.fadeIn": {
3798
3805
  animationFillMode: "both",
3799
- animationName: Ha
3806
+ animationName: Xa
3800
3807
  },
3801
3808
  "&.fadeInLeft": {
3802
3809
  animationFillMode: "both",
3803
- animationName: Va
3810
+ animationName: Ya
3804
3811
  },
3805
3812
  "&.fadeInRight": {
3806
3813
  animationFillMode: "both",
3807
- animationName: Aa
3814
+ animationName: Va
3808
3815
  },
3809
3816
  "&.fadeInDown": {
3810
3817
  animationFillMode: "both",
3811
- animationName: ja
3818
+ animationName: _a
3812
3819
  },
3813
3820
  "&.fadeInUp": {
3814
3821
  animationFillMode: "both",
3815
- animationName: Wa
3822
+ animationName: Ga
3816
3823
  },
3817
3824
  "&.fadeInLeftBig": {
3818
3825
  animationFillMode: "both",
3819
- animationName: Ea
3826
+ animationName: Ja
3820
3827
  },
3821
3828
  "&.fadeInRightBig": {
3822
3829
  animationFillMode: "both",
3823
- animationName: Xa
3830
+ animationName: Qa
3824
3831
  },
3825
3832
  "&.fadeInUpBig": {
3826
3833
  animationFillMode: "both",
3827
- animationName: Ua
3834
+ animationName: Za
3828
3835
  },
3829
3836
  "&.fadeInDownBig": {
3830
3837
  animationFillMode: "both",
3831
- animationName: Ka
3838
+ animationName: qa
3832
3839
  },
3833
3840
  "&.fadeInTopLeft": {
3834
3841
  animationFillMode: "both",
3835
- animationName: Ya
3842
+ animationName: eo
3836
3843
  },
3837
3844
  "&.fadeInBottomRight": {
3838
3845
  animationFillMode: "both",
3839
- animationName: _a
3846
+ animationName: to
3840
3847
  },
3841
3848
  "&.fadeInTopRight": {
3842
3849
  animationFillMode: "both",
3843
- animationName: Ga
3850
+ animationName: no
3844
3851
  },
3845
3852
  "&.fadeInBottomLeft": {
3846
3853
  animationFillMode: "both",
3847
- animationName: qa
3854
+ animationName: ao
3848
3855
  }
3849
- }), mo = () => ({
3856
+ }), vo = () => ({
3850
3857
  "&.fadeOut": {
3851
3858
  animationFillMode: "both",
3852
- animationName: Za
3859
+ animationName: oo
3853
3860
  },
3854
3861
  "&.fadeOutLeft": {
3855
3862
  animationFillMode: "both",
3856
- animationName: Ja
3863
+ animationName: io
3857
3864
  },
3858
3865
  "&.fadeOutRight": {
3859
3866
  animationFillMode: "both",
3860
- animationName: Qa
3867
+ animationName: lo
3861
3868
  },
3862
3869
  "&.fadeOutDown": {
3863
3870
  animationFillMode: "both",
3864
- animationName: eo
3871
+ animationName: ro
3865
3872
  },
3866
3873
  "&.fadeOutUp": {
3867
3874
  animationFillMode: "both",
3868
- animationName: to
3875
+ animationName: so
3869
3876
  },
3870
3877
  "&.fadeOutDownBig": {
3871
3878
  animationFillMode: "both",
3872
- animationName: no
3879
+ animationName: uo
3873
3880
  },
3874
3881
  "&.fadeOutUpBig": {
3875
3882
  animationFillMode: "both",
3876
- animationName: ao
3883
+ animationName: co
3877
3884
  },
3878
3885
  "&.fadeOutLeftBig": {
3879
3886
  animationFillMode: "both",
3880
- animationName: oo
3887
+ animationName: mo
3881
3888
  },
3882
3889
  "&.fadeOutRightBig": {
3883
3890
  animationFillMode: "both",
3884
- animationName: io
3891
+ animationName: fo
3885
3892
  },
3886
3893
  "&.fadeOutTopLeft": {
3887
3894
  animationFillMode: "both",
3888
- animationName: lo
3895
+ animationName: ho
3889
3896
  },
3890
3897
  "&.fadeOutBottomRight": {
3891
3898
  animationFillMode: "both",
3892
- animationName: ro
3899
+ animationName: go
3893
3900
  },
3894
3901
  "&.fadeOutTopRight": {
3895
3902
  animationFillMode: "both",
3896
- animationName: so
3903
+ animationName: yo
3897
3904
  },
3898
3905
  "&.fadeOutBottomLeft": {
3899
3906
  animationFillMode: "both",
3900
- animationName: uo
3907
+ animationName: bo
3901
3908
  }
3902
- }), fo = new s("flipInX", {
3909
+ }), Co = new s("flipInX", {
3903
3910
  from: {
3904
3911
  opacity: 0,
3905
3912
  animationTimingFunction: "ease-in",
@@ -3919,7 +3926,7 @@ const {
3919
3926
  to: {
3920
3927
  transform: "perspective(400px)"
3921
3928
  }
3922
- }), go = new s("flipInY", {
3929
+ }), xo = new s("flipInY", {
3923
3930
  from: {
3924
3931
  opacity: 0,
3925
3932
  animationTimingFunction: "ease-in",
@@ -3939,7 +3946,7 @@ const {
3939
3946
  to: {
3940
3947
  transform: "perspective(400px)"
3941
3948
  }
3942
- }), ho = new s("flipOutX", {
3949
+ }), wo = new s("flipOutX", {
3943
3950
  from: {
3944
3951
  transform: "perspective(400px)"
3945
3952
  },
@@ -3951,7 +3958,7 @@ const {
3951
3958
  opacity: 0,
3952
3959
  transform: "perspective(400px) rotate3d(1, 0, 0, 90deg)"
3953
3960
  }
3954
- }), yo = new s("flipOutY", {
3961
+ }), So = new s("flipOutY", {
3955
3962
  from: {
3956
3963
  transform: "perspective(400px)"
3957
3964
  },
@@ -3963,31 +3970,31 @@ const {
3963
3970
  opacity: 0,
3964
3971
  transform: "perspective(400px) rotate3d(0, 1, 0, 90deg)"
3965
3972
  }
3966
- }), bo = () => ({
3973
+ }), Io = () => ({
3967
3974
  "&.flipInX": {
3968
3975
  animationFillMode: "both",
3969
3976
  backfaceVisibility: "visible !important",
3970
- animationName: fo
3977
+ animationName: Co
3971
3978
  },
3972
3979
  "&.flipInY": {
3973
3980
  animationFillMode: "both",
3974
3981
  backfaceVisibility: "visible !important",
3975
- animationName: go
3982
+ animationName: xo
3976
3983
  }
3977
- }), po = () => ({
3984
+ }), Mo = () => ({
3978
3985
  "&.flipOutX": {
3979
3986
  animationFillMode: "both",
3980
3987
  backfaceVisibility: "visible !important",
3981
3988
  animationDuration: `${0.3 * 0.75}s !important`,
3982
- animationName: ho
3989
+ animationName: wo
3983
3990
  },
3984
3991
  "&.flipOutY": {
3985
3992
  animationFillMode: "both",
3986
3993
  backfaceVisibility: "visible !important",
3987
3994
  animationDuration: `${0.3 * 0.75}s !important`,
3988
- animationName: yo
3995
+ animationName: So
3989
3996
  }
3990
- }), vo = new s("lightSpeedInLeft", {
3997
+ }), Oo = new s("lightSpeedInLeft", {
3991
3998
  from: {
3992
3999
  opacity: 0,
3993
4000
  transform: "translate3d(-100%, 0, 0) skewX(30deg)"
@@ -4002,7 +4009,7 @@ const {
4002
4009
  to: {
4003
4010
  transform: "translate3d(0, 0, 0)"
4004
4011
  }
4005
- }), xo = new s("lightSpeedInRight", {
4012
+ }), Ro = new s("lightSpeedInRight", {
4006
4013
  from: {
4007
4014
  opacity: 0,
4008
4015
  transform: "translate3d(100%, 0, 0) skewX(-30deg)"
@@ -4017,7 +4024,7 @@ const {
4017
4024
  to: {
4018
4025
  transform: "translate3d(0, 0, 0)"
4019
4026
  }
4020
- }), Co = new s("lightSpeedOutLeft", {
4027
+ }), Fo = new s("lightSpeedOutLeft", {
4021
4028
  from: {
4022
4029
  opacity: 1
4023
4030
  },
@@ -4025,7 +4032,7 @@ const {
4025
4032
  opacity: 0,
4026
4033
  transform: "translate3d(-100%, 0, 0) skewX(-30deg)"
4027
4034
  }
4028
- }), wo = new s("lightSpeedOutRight", {
4035
+ }), $o = new s("lightSpeedOutRight", {
4029
4036
  from: {
4030
4037
  opacity: 1
4031
4038
  },
@@ -4033,29 +4040,29 @@ const {
4033
4040
  opacity: 0,
4034
4041
  transform: "translate3d(100%, 0, 0) skewX(30deg)"
4035
4042
  }
4036
- }), So = () => ({
4043
+ }), Bo = () => ({
4037
4044
  "&.lightSpeedInLeft": {
4038
4045
  animationFillMode: "both",
4039
4046
  animationTimingFunction: "ease-out",
4040
- animationName: vo
4047
+ animationName: Oo
4041
4048
  },
4042
4049
  "&.lightSpeedInRight": {
4043
4050
  animationFillMode: "both",
4044
4051
  animationTimingFunction: "ease-out",
4045
- animationName: xo
4052
+ animationName: Ro
4046
4053
  }
4047
- }), Io = () => ({
4054
+ }), ko = () => ({
4048
4055
  "&.lightSpeedOutLeft": {
4049
4056
  animationFillMode: "both",
4050
4057
  animationTimingFunction: "ease-in",
4051
- animationName: Co
4058
+ animationName: Fo
4052
4059
  },
4053
4060
  "&.lightSpeedOutRight": {
4054
4061
  animationFillMode: "both",
4055
4062
  animationTimingFunction: "ease-in",
4056
- animationName: wo
4063
+ animationName: $o
4057
4064
  }
4058
- }), Mo = new s("rotateIn", {
4065
+ }), To = new s("rotateIn", {
4059
4066
  from: {
4060
4067
  opacity: 0,
4061
4068
  transform: "rotate3d(0, 0, 1, -200deg)"
@@ -4064,7 +4071,7 @@ const {
4064
4071
  opacity: 1,
4065
4072
  transform: "translate3d(0, 0, 0)"
4066
4073
  }
4067
- }), Bo = new s("rotateInDownLeft", {
4074
+ }), Po = new s("rotateInDownLeft", {
4068
4075
  from: {
4069
4076
  opacity: 0,
4070
4077
  transform: "rotate3d(0, 0, 1, -45deg)"
@@ -4073,7 +4080,7 @@ const {
4073
4080
  opacity: 1,
4074
4081
  transform: "translate3d(0, 0, 0)"
4075
4082
  }
4076
- }), Oo = new s("rotateInDownRight", {
4083
+ }), Lo = new s("rotateInDownRight", {
4077
4084
  from: {
4078
4085
  opacity: 0,
4079
4086
  transform: "rotate3d(0, 0, 1, 45deg)"
@@ -4082,7 +4089,7 @@ const {
4082
4089
  opacity: 1,
4083
4090
  transform: "translate3d(0, 0, 0)"
4084
4091
  }
4085
- }), Ro = new s("rotateInUpLeft", {
4092
+ }), Do = new s("rotateInUpLeft", {
4086
4093
  from: {
4087
4094
  opacity: 0,
4088
4095
  transform: "rotate3d(0, 0, 1, 45deg)"
@@ -4091,7 +4098,7 @@ const {
4091
4098
  opacity: 1,
4092
4099
  transform: "translate3d(0, 0, 0)"
4093
4100
  }
4094
- }), ko = new s("rotateInUpRight", {
4101
+ }), No = new s("rotateInUpRight", {
4095
4102
  from: {
4096
4103
  opacity: 0,
4097
4104
  transform: "rotate3d(0, 0, 1, -90deg)"
@@ -4100,7 +4107,7 @@ const {
4100
4107
  opacity: 1,
4101
4108
  transform: "translate3d(0, 0, 0)"
4102
4109
  }
4103
- }), Fo = new s("rotateOut", {
4110
+ }), zo = new s("rotateOut", {
4104
4111
  from: {
4105
4112
  opacity: 1
4106
4113
  },
@@ -4108,7 +4115,7 @@ const {
4108
4115
  opacity: 0,
4109
4116
  transform: "rotate3d(0, 0, 1, 200deg)"
4110
4117
  }
4111
- }), $o = new s("rotateOutDownLeft", {
4118
+ }), Ho = new s("rotateOutDownLeft", {
4112
4119
  from: {
4113
4120
  opacity: 1
4114
4121
  },
@@ -4116,7 +4123,7 @@ const {
4116
4123
  opacity: 0,
4117
4124
  transform: "rotate3d(0, 0, 1, 45deg)"
4118
4125
  }
4119
- }), To = new s("rotateOutDownRight", {
4126
+ }), Ko = new s("rotateOutDownRight", {
4120
4127
  from: {
4121
4128
  opacity: 1
4122
4129
  },
@@ -4124,7 +4131,7 @@ const {
4124
4131
  opacity: 0,
4125
4132
  transform: "rotate3d(0, 0, 1, -45deg)"
4126
4133
  }
4127
- }), Po = new s("rotateOutUpLeft", {
4134
+ }), jo = new s("rotateOutUpLeft", {
4128
4135
  from: {
4129
4136
  opacity: 1
4130
4137
  },
@@ -4132,7 +4139,7 @@ const {
4132
4139
  opacity: 0,
4133
4140
  transform: "rotate3d(0, 0, 1, -45deg)"
4134
4141
  }
4135
- }), Lo = new s("rotateOutUpRight", {
4142
+ }), Ao = new s("rotateOutUpRight", {
4136
4143
  from: {
4137
4144
  opacity: 1
4138
4145
  },
@@ -4140,59 +4147,59 @@ const {
4140
4147
  opacity: 0,
4141
4148
  transform: "rotate3d(0, 0, 1, 90deg)"
4142
4149
  }
4143
- }), Do = () => ({
4150
+ }), Wo = () => ({
4144
4151
  "&.rotateIn": {
4145
4152
  animationFillMode: "both",
4146
4153
  transformOrigin: "center",
4147
- animationName: Mo
4154
+ animationName: To
4148
4155
  },
4149
4156
  "&.rotateInDownLeft": {
4150
4157
  animationFillMode: "both",
4151
4158
  transformOrigin: "left bottom",
4152
- animationName: Bo
4159
+ animationName: Po
4153
4160
  },
4154
4161
  "&.rotateInDownRight": {
4155
4162
  animationFillMode: "both",
4156
4163
  transformOrigin: "right bottom",
4157
- animationName: Oo
4164
+ animationName: Lo
4158
4165
  },
4159
4166
  "&.rotateInUpLeft": {
4160
4167
  animationFillMode: "both",
4161
4168
  transformOrigin: "left bottom",
4162
- animationName: Ro
4169
+ animationName: Do
4163
4170
  },
4164
4171
  "&.rotateInUpRight": {
4165
4172
  animationFillMode: "both",
4166
4173
  transformOrigin: "right bottom",
4167
- animationName: ko
4174
+ animationName: No
4168
4175
  }
4169
- }), No = () => ({
4176
+ }), Uo = () => ({
4170
4177
  "&.rotateOut": {
4171
4178
  animationFillMode: "both",
4172
4179
  transformOrigin: "center",
4173
- animationName: Fo
4180
+ animationName: zo
4174
4181
  },
4175
4182
  "&.rotateOutDownLeft": {
4176
4183
  animationFillMode: "both",
4177
4184
  transformOrigin: "left bottom",
4178
- animationName: $o
4185
+ animationName: Ho
4179
4186
  },
4180
4187
  "&.rotateOutDownRight": {
4181
4188
  animationFillMode: "both",
4182
4189
  transformOrigin: "right bottom",
4183
- animationName: To
4190
+ animationName: Ko
4184
4191
  },
4185
4192
  "&.rotateOutUpLeft": {
4186
4193
  animationFillMode: "both",
4187
4194
  transformOrigin: "left bottom",
4188
- animationName: Po
4195
+ animationName: jo
4189
4196
  },
4190
4197
  "&.rotateOutUpRight": {
4191
4198
  animationFillMode: "both",
4192
4199
  transformOrigin: "right bottom",
4193
- animationName: Lo
4200
+ animationName: Ao
4194
4201
  }
4195
- }), zo = new s("rollIn", {
4202
+ }), Eo = new s("rollIn", {
4196
4203
  from: {
4197
4204
  opacity: 0,
4198
4205
  transform: "translate3d(-100%, 0, 0) rotate3d(0, 0, 1, -120deg)"
@@ -4201,7 +4208,7 @@ const {
4201
4208
  opacity: 1,
4202
4209
  transform: "translate3d(0, 0, 0)"
4203
4210
  }
4204
- }), Ho = new s("rollOut", {
4211
+ }), Xo = new s("rollOut", {
4205
4212
  from: {
4206
4213
  opacity: 1
4207
4214
  },
@@ -4209,17 +4216,17 @@ const {
4209
4216
  opacity: 0,
4210
4217
  transform: "translate3d(100%, 0, 0) rotate3d(0, 0, 1, 120deg)"
4211
4218
  }
4212
- }), Vo = () => ({
4219
+ }), Yo = () => ({
4213
4220
  "&.rollIn": {
4214
4221
  animationFillMode: "both",
4215
- animationName: zo
4222
+ animationName: Eo
4216
4223
  }
4217
- }), Ao = () => ({
4224
+ }), Vo = () => ({
4218
4225
  "&.rollOut": {
4219
4226
  animationFillMode: "both",
4220
- animationName: Ho
4227
+ animationName: Xo
4221
4228
  }
4222
- }), jo = new s("zoomIn", {
4229
+ }), _o = new s("zoomIn", {
4223
4230
  from: {
4224
4231
  opacity: 0,
4225
4232
  transform: "scale3d(0.3, 0.3, 0.3)"
@@ -4227,7 +4234,7 @@ const {
4227
4234
  "50%": {
4228
4235
  opacity: 1
4229
4236
  }
4230
- }), Wo = new s("zoomInDown", {
4237
+ }), Go = new s("zoomInDown", {
4231
4238
  from: {
4232
4239
  opacity: 0,
4233
4240
  transform: "scale3d(0.1, 0.1, 0.1) translate3d(0, -1000px, 0)",
@@ -4238,7 +4245,7 @@ const {
4238
4245
  transform: "scale3d(0.475, 0.475, 0.475) translate3d(0, 60px, 0)",
4239
4246
  animationTimingFunction: "cubic-bezier(0.175, 0.885, 0.32, 1)"
4240
4247
  }
4241
- }), Ko = new s("zoomInLeft", {
4248
+ }), qo = new s("zoomInLeft", {
4242
4249
  from: {
4243
4250
  opacity: 0,
4244
4251
  transform: "scale3d(0.1, 0.1, 0.1) translate3d(-1000px, 0, 0)",
@@ -4249,7 +4256,7 @@ const {
4249
4256
  transform: "scale3d(0.475, 0.475, 0.475) translate3d(10px, 0, 0)",
4250
4257
  animationTimingFunction: "cubic-bezier(0.175, 0.885, 0.32, 1)"
4251
4258
  }
4252
- }), Uo = new s("zoomInRight", {
4259
+ }), Zo = new s("zoomInRight", {
4253
4260
  from: {
4254
4261
  opacity: 0,
4255
4262
  transform: "scale3d(0.1, 0.1, 0.1) translate3d(1000px, 0, 0)",
@@ -4260,7 +4267,7 @@ const {
4260
4267
  transform: "scale3d(0.475, 0.475, 0.475) translate3d(-10px, 0, 0)",
4261
4268
  animationTimingFunction: "cubic-bezier(0.175, 0.885, 0.32, 1)"
4262
4269
  }
4263
- }), Eo = new s("zoomInUp", {
4270
+ }), Jo = new s("zoomInUp", {
4264
4271
  from: {
4265
4272
  opacity: 0,
4266
4273
  transform: "scale3d(0.1, 0.1, 0.1) translate3d(0, 1000px, 0)",
@@ -4271,7 +4278,7 @@ const {
4271
4278
  transform: "scale3d(0.475, 0.475, 0.475) translate3d(0, -60px, 0)",
4272
4279
  animationTimingFunction: "cubic-bezier(0.175, 0.885, 0.32, 1)"
4273
4280
  }
4274
- }), Xo = new s("zoomOut", {
4281
+ }), Qo = new s("zoomOut", {
4275
4282
  from: {
4276
4283
  opacity: 1
4277
4284
  },
@@ -4282,7 +4289,7 @@ const {
4282
4289
  to: {
4283
4290
  opacity: 0
4284
4291
  }
4285
- }), Yo = new s("zoomOutDown", {
4292
+ }), ei = new s("zoomOutDown", {
4286
4293
  "40%": {
4287
4294
  opacity: 1,
4288
4295
  transform: "scale3d(0.475, 0.475, 0.475) translate3d(0, -60px, 0)",
@@ -4293,7 +4300,7 @@ const {
4293
4300
  transform: "scale3d(0.1, 0.1, 0.1) translate3d(0, 2000px, 0)",
4294
4301
  animationTimingFunction: "cubic-bezier(0.175, 0.885, 0.32, 1)"
4295
4302
  }
4296
- }), _o = new s("zoomOutLeft", {
4303
+ }), ti = new s("zoomOutLeft", {
4297
4304
  "40%": {
4298
4305
  opacity: 1,
4299
4306
  transform: "scale3d(0.475, 0.475, 0.475) translate3d(42px, 0, 0)"
@@ -4302,7 +4309,7 @@ const {
4302
4309
  opacity: 0,
4303
4310
  transform: "scale(0.1) translate3d(-2000px, 0, 0)"
4304
4311
  }
4305
- }), Go = new s("zoomOutRight", {
4312
+ }), ni = new s("zoomOutRight", {
4306
4313
  "40%": {
4307
4314
  opacity: 1,
4308
4315
  transform: "scale3d(0.475, 0.475, 0.475) translate3d(-42px, 0, 0)"
@@ -4311,7 +4318,7 @@ const {
4311
4318
  opacity: 0,
4312
4319
  transform: "scale(0.1) translate3d(2000px, 0, 0)"
4313
4320
  }
4314
- }), qo = new s("zoomOutUp", {
4321
+ }), ai = new s("zoomOutUp", {
4315
4322
  "40%": {
4316
4323
  opacity: 1,
4317
4324
  transform: "scale3d(0.475, 0.475, 0.475) translate3d(0, 60px, 0)",
@@ -4322,53 +4329,53 @@ const {
4322
4329
  transform: "scale3d(0.1, 0.1, 0.1) translate3d(0, -2000px, 0)",
4323
4330
  animationTimingFunction: "cubic-bezier(0.175, 0.885, 0.32, 1)"
4324
4331
  }
4325
- }), Zo = () => ({
4332
+ }), oi = () => ({
4326
4333
  "&.zoomIn": {
4327
4334
  animationFillMode: "both",
4328
- animationName: jo
4335
+ animationName: _o
4329
4336
  },
4330
4337
  "&.zoomInDown": {
4331
4338
  animationFillMode: "both",
4332
- animationName: Wo
4339
+ animationName: Go
4333
4340
  },
4334
4341
  "&.zoomInLeft": {
4335
4342
  animationFillMode: "both",
4336
- animationName: Ko
4343
+ animationName: qo
4337
4344
  },
4338
4345
  "&.zoomInRight": {
4339
4346
  animationFillMode: "both",
4340
- animationName: Uo
4347
+ animationName: Zo
4341
4348
  },
4342
4349
  "&.zoomInUp": {
4343
4350
  animationFillMode: "both",
4344
- animationName: Eo
4351
+ animationName: Jo
4345
4352
  }
4346
- }), Jo = () => ({
4353
+ }), ii = () => ({
4347
4354
  "&.zoomOut": {
4348
4355
  animationFillMode: "both",
4349
- animationName: Xo
4356
+ animationName: Qo
4350
4357
  },
4351
4358
  "&.zoomOutDown": {
4352
4359
  animationFillMode: "both",
4353
4360
  transformOrigin: "center bottom",
4354
- animationName: Yo
4361
+ animationName: ei
4355
4362
  },
4356
4363
  "&.zoomOutLeft": {
4357
4364
  animationFillMode: "both",
4358
4365
  transformOrigin: "left center",
4359
- animationName: _o
4366
+ animationName: ti
4360
4367
  },
4361
4368
  "&.zoomOutRight": {
4362
4369
  animationFillMode: "both",
4363
4370
  transformOrigin: "right center",
4364
- animationName: Go
4371
+ animationName: ni
4365
4372
  },
4366
4373
  "&.zoomOutUp": {
4367
4374
  animationFillMode: "both",
4368
4375
  transformOrigin: "center bottom",
4369
- animationName: qo
4376
+ animationName: ai
4370
4377
  }
4371
- }), Qo = new s("slideInDown", {
4378
+ }), li = new s("slideInDown", {
4372
4379
  from: {
4373
4380
  transform: "translate3d(0, -100%, 0)",
4374
4381
  visibility: "visible"
@@ -4376,7 +4383,7 @@ const {
4376
4383
  to: {
4377
4384
  transform: "translate3d(0, 0, 0)"
4378
4385
  }
4379
- }), ei = new s("slideInLeft", {
4386
+ }), ri = new s("slideInLeft", {
4380
4387
  from: {
4381
4388
  transform: "translate3d(-100%, 0, 0)",
4382
4389
  visibility: "visible"
@@ -4384,7 +4391,7 @@ const {
4384
4391
  to: {
4385
4392
  transform: "translate3d(0, 0, 0)"
4386
4393
  }
4387
- }), ti = new s("slideInRight", {
4394
+ }), si = new s("slideInRight", {
4388
4395
  from: {
4389
4396
  transform: "translate3d(100%, 0, 0)",
4390
4397
  visibility: "visible"
@@ -4392,7 +4399,7 @@ const {
4392
4399
  to: {
4393
4400
  transform: "translate3d(0, 0, 0)"
4394
4401
  }
4395
- }), ni = new s("slideInUp", {
4402
+ }), ui = new s("slideInUp", {
4396
4403
  from: {
4397
4404
  transform: "translate3d(0, 100%, 0)",
4398
4405
  visibility: "visible"
@@ -4400,7 +4407,7 @@ const {
4400
4407
  to: {
4401
4408
  transform: "translate3d(0, 0, 0)"
4402
4409
  }
4403
- }), ai = new s("slideOutDown", {
4410
+ }), di = new s("slideOutDown", {
4404
4411
  from: {
4405
4412
  transform: "translate3d(0, 0, 0)"
4406
4413
  },
@@ -4408,7 +4415,7 @@ const {
4408
4415
  transform: "translate3d(0, 100%, 0)",
4409
4416
  visibility: "hidden"
4410
4417
  }
4411
- }), oi = new s("slideOutLeft", {
4418
+ }), ci = new s("slideOutLeft", {
4412
4419
  from: {
4413
4420
  transform: "translate3d(0, 0, 0)"
4414
4421
  },
@@ -4416,7 +4423,7 @@ const {
4416
4423
  transform: "translate3d(-100%, 0, 0)",
4417
4424
  visibility: "hidden"
4418
4425
  }
4419
- }), ii = new s("slideOutRight", {
4426
+ }), mi = new s("slideOutRight", {
4420
4427
  from: {
4421
4428
  transform: "translate3d(0, 0, 0)"
4422
4429
  },
@@ -4424,7 +4431,7 @@ const {
4424
4431
  transform: "translate3d(100%, 0, 0)",
4425
4432
  visibility: "hidden"
4426
4433
  }
4427
- }), li = new s("slideOutUp", {
4434
+ }), fi = new s("slideOutUp", {
4428
4435
  from: {
4429
4436
  transform: "translate3d(0, 0, 0)"
4430
4437
  },
@@ -4432,78 +4439,78 @@ const {
4432
4439
  transform: "translate3d(0, -100%, 0)",
4433
4440
  visibility: "hidden"
4434
4441
  }
4435
- }), ri = () => ({
4442
+ }), hi = () => ({
4436
4443
  "&.slideInDown": {
4437
4444
  animationFillMode: "both",
4438
- animationName: Qo
4445
+ animationName: li
4439
4446
  },
4440
4447
  "&.slideInLeft": {
4441
4448
  animationFillMode: "both",
4442
- animationName: ei
4449
+ animationName: ri
4443
4450
  },
4444
4451
  "&.slideInRight": {
4445
4452
  animationFillMode: "both",
4446
- animationName: ti
4453
+ animationName: si
4447
4454
  },
4448
4455
  "&.slideInUp": {
4449
4456
  animationFillMode: "both",
4450
- animationName: ni
4457
+ animationName: ui
4451
4458
  }
4452
- }), si = () => ({
4459
+ }), gi = () => ({
4453
4460
  "&.slideOutDown": {
4454
4461
  animationFillMode: "both",
4455
- animationName: ai
4462
+ animationName: di
4456
4463
  },
4457
4464
  "&.slideOutLeft": {
4458
4465
  animationFillMode: "both",
4459
- animationName: oi
4466
+ animationName: ci
4460
4467
  },
4461
4468
  "&.slideOutRight": {
4462
4469
  animationFillMode: "both",
4463
- animationName: ii
4470
+ animationName: mi
4464
4471
  },
4465
4472
  "&.slideOutUp": {
4466
4473
  animationFillMode: "both",
4467
- animationName: li
4474
+ animationName: fi
4468
4475
  }
4469
- }), ui = (e) => ({
4476
+ }), yi = (e) => ({
4470
4477
  [e.componentCls]: {
4471
4478
  "&-enter": {
4472
4479
  background: "transparent",
4473
4480
  animationDuration: ".3s !important",
4474
- ...Ia(),
4475
- ...Na(),
4476
- ...co(),
4477
- ...bo(),
4478
- ...So(),
4479
- ...Do(),
4480
- ...Vo(),
4481
- ...Zo(),
4482
- ...ri()
4481
+ ...ka(),
4482
+ ...Ua(),
4483
+ ...po(),
4484
+ ...Io(),
4485
+ ...Bo(),
4486
+ ...Wo(),
4487
+ ...Yo(),
4488
+ ...oi(),
4489
+ ...hi()
4483
4490
  },
4484
4491
  "&-leave": {
4485
4492
  display: "none",
4486
4493
  background: "transparent",
4487
4494
  animationDuration: ".3s !important",
4488
- ...Ma(),
4489
- ...za(),
4490
- ...mo(),
4491
- ...po(),
4492
- ...Io(),
4493
- ...No(),
4494
- ...Ao(),
4495
- ...Jo(),
4496
- ...si()
4495
+ ...Ta(),
4496
+ ...Ea(),
4497
+ ...vo(),
4498
+ ...Mo(),
4499
+ ...ko(),
4500
+ ...Uo(),
4501
+ ...Vo(),
4502
+ ...ii(),
4503
+ ...gi()
4497
4504
  }
4498
4505
  }
4499
4506
  });
4500
- function di(e) {
4501
- return Ne("LayoutPageTranstion", (t) => {
4502
- const a = ze(t);
4503
- return [ui(a)];
4507
+ function bi(e) {
4508
+ return ge("LayoutPageTranstion", (t) => {
4509
+ const a = $e(t);
4510
+ return [yi(a)];
4504
4511
  }, e);
4505
4512
  }
4506
- const $i = /* @__PURE__ */ j({
4513
+ const Hi = /* @__PURE__ */ A({
4507
4514
  name: "PageTranstion",
4508
4515
  props: {
4509
4516
  disabled: {
@@ -4523,63 +4530,63 @@ const $i = /* @__PURE__ */ j({
4523
4530
  setup(e, {
4524
4531
  slots: t
4525
4532
  }) {
4526
- const a = me({
4533
+ const a = he({
4527
4534
  suffixCls: "page-transtion",
4528
4535
  isPor: !0
4529
4536
  }), {
4530
4537
  wrapSSR: i,
4531
4538
  hashId: o
4532
- } = di(a), u = (p, O) => {
4533
- if (p.length === 0 || p === "x" || p === "y")
4534
- return p;
4535
- let h = O.indexOf(p);
4536
- return h = h % 2 === 1 ? h - 1 : h + 1, O[h];
4537
- }, g = (p) => {
4538
- const O = Ae.preset.find((l) => e.name === l.name);
4539
- if (O === void 0)
4539
+ } = bi(a), u = (M, C) => {
4540
+ if (M.length === 0 || M === "x" || M === "y")
4541
+ return M;
4542
+ let d = C.indexOf(M);
4543
+ return d = d % 2 === 1 ? d - 1 : d + 1, C[d];
4544
+ }, f = (M) => {
4545
+ const C = Ee.preset.find((l) => e.name === l.name);
4546
+ if (C === void 0)
4540
4547
  return "";
4541
- let h = "";
4542
- e.direction === void 0 ? h = O.directions[0] : h = O.directions.find((l) => l === e.direction) || "", h = h === void 0 || h === "default" ? "" : h, h !== "" && (h = p && e.reverse ? u(h, O.directions) : h, h = h[0].toUpperCase() + h.substring(1));
4543
- const T = p ? "Out" : "In";
4544
- return O.name + T + h;
4545
- }, m = b(() => [g(!1), `${a}-enter`, o.value].join(" ")), w = b(() => [g(!0), `${a}-leave`, o.value].join(" "));
4548
+ let d = "";
4549
+ e.direction === void 0 ? d = C.directions[0] : d = C.directions.find((l) => l === e.direction) || "", d = d === void 0 || d === "default" ? "" : d, d !== "" && (d = M && e.reverse ? u(d, C.directions) : d, d = d[0].toUpperCase() + d.substring(1));
4550
+ const F = M ? "Out" : "In";
4551
+ return C.name + F + d;
4552
+ }, b = m(() => [f(!1), `${a}-enter`, o.value].join(" ")), g = m(() => [f(!0), `${a}-leave`, o.value].join(" "));
4546
4553
  return () => {
4547
- var p;
4548
- return e.disabled ? (p = t.default) == null ? void 0 : p.call(t) : i(n(Pt, {
4549
- enterActiveClass: m.value,
4550
- leaveActiveClass: w.value
4554
+ var M;
4555
+ return e.disabled ? (M = t.default) == null ? void 0 : M.call(t) : i(n(Ht, {
4556
+ enterActiveClass: b.value,
4557
+ leaveActiveClass: g.value
4551
4558
  }, {
4552
4559
  default: () => {
4553
- var O;
4554
- return [(O = t.default) == null ? void 0 : O.call(t)];
4560
+ var C;
4561
+ return [(C = t.default) == null ? void 0 : C.call(t)];
4555
4562
  }
4556
4563
  }));
4557
4564
  };
4558
4565
  }
4559
4566
  });
4560
4567
  export {
4561
- ht as BaseMenu,
4562
- na as DefaultHeader,
4563
- Ri as GProLayout,
4564
- ke as GlobalFooter,
4565
- Oi as PageContainer,
4566
- cn as PageLoading,
4567
- $i as PageTranstion,
4568
- Fi as SettingDrawer,
4569
- Re as SiderMenuWrapper,
4570
- Ue as WrapContent,
4571
- Me as baseMenuProps,
4572
- pn as clearMenuItem,
4573
- Mn as createContext,
4574
- On as createRouteContext,
4575
- vn as flatMap,
4576
- Bi as getMatchedList,
4577
- ki as getMenuData,
4578
- xn as getMenuFirstChildren,
4579
- Cn as getMenuFirstLastChildPath,
4580
- wn as handleThemeConfig,
4581
- E as hanlePathKey,
4582
- Rn as provideProLayoutContext,
4583
- Bn as useContext,
4584
- ee as useProLayoutContext
4568
+ pt as BaseMenu,
4569
+ sa as DefaultHeader,
4570
+ Di as GProLayout,
4571
+ De as GlobalFooter,
4572
+ Li as PageContainer,
4573
+ bn as PageLoading,
4574
+ Hi as PageTranstion,
4575
+ zi as SettingDrawer,
4576
+ Le as SiderMenuWrapper,
4577
+ _e as WrapContent,
4578
+ ke as baseMenuProps,
4579
+ In as clearMenuItem,
4580
+ kn as createContext,
4581
+ Pn as createRouteContext,
4582
+ Mn as flatMap,
4583
+ Pi as getMatchedList,
4584
+ Ni as getMenuData,
4585
+ On as getMenuFirstChildren,
4586
+ Rn as getMenuFirstLastChildPath,
4587
+ Fn as handleThemeConfig,
4588
+ Y as hanlePathKey,
4589
+ Ln as provideProLayoutContext,
4590
+ Tn as useContext,
4591
+ J as useProLayoutContext
4585
4592
  };