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

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