@gx-design-vue/pro-layout 0.1.0-beta.204 → 0.1.0-beta.206

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.
@@ -1,36 +1,36 @@
1
1
  /*!
2
2
  * Gx Design Pro
3
- * Version: 0.1.0-beta.203
3
+ * Version: 0.1.0-beta.205
4
4
  * Author: gx12358
5
5
  * Copyright (C) 2024 gx12358
6
6
  * License: MIT License
7
7
  * Description: Gx Design Pro Layout
8
- * Date Created: 2025-12-31
8
+ * Date Created: 2026-01-03
9
9
  * Homepage:
10
10
  * Contact: gx12358@gmail.com
11
11
  */
12
- import { defineComponent as X, computed as x, watch as U, createVNode as o, mergeProps as oe, isVNode as ve, cloneVNode as tn, resolveComponent as nn, ref as q, toRefs as Xe, unref as we, Fragment as G, reactive as Me, toRaw as qe, inject as an, onMounted as St, onUnmounted as on, Teleport as ln, Transition as rn, isRef as ut } from "vue";
13
- import { createFromIconfontCN as Qe, MenuUnfoldOutlined as sn, MenuFoldOutlined as un, GithubOutlined as cn, HomeOutlined as dn, CloseOutlined as Ae, FullscreenExitOutlined as Rt, FullscreenOutlined as $t, ReloadOutlined as wt, ExportOutlined as mn, VerticalRightOutlined as fn, VerticalLeftOutlined as pn, VerticalAlignMiddleOutlined as gn, SwapOutlined as hn, DownOutlined as yn } from "@ant-design/icons-vue";
14
- import { useState as Oe, useMemo as Be, useMediaQuery as bn, useSlotsProps as vn, onMountedOrActivated as Cn } from "@gx-design-vue/pro-hooks";
15
- import { unit as z, useProConfigContext as Ne, useProStyle as le, Keyframe as g, useStyle as Ce, mergeToken as Je, GProConfigProvider as xn, setAlpha as In, getAlphaColor as Sn } from "@gx-design-vue/pro-provider";
16
- import { isString as Ve, getPrefixCls as ae, classNames as O, isUrl as he, isImg as Ke, convertValueBoolean as Rn, isArray as $n, getSlotVNode as ie, arrayRepeat as wn, isBoolean as re, merge as Re, isNumber as ct, deepMerge as Ze, getRandomNumber as dt, getLevelData as Mn, getSlot as Pe, getSlotsProps as ge, isFunction as On, isBrowser as Bn, cloneDeep as Pn } from "@gx-design-vue/pro-utils";
17
- import { useStyleTag as Mt, useMouse as Tn, watchThrottled as Fn, useElementBounding as Nn, useLocalStorage as Ln, useThrottleFn as Hn, useDark as Ot } from "@vueuse/core";
18
- import { Menu as be, Layout as Te, ConfigProvider as et, Spin as Bt, Drawer as Dn, LayoutFooter as zn, Breadcrumb as Wn, Tabs as Pt, Dropdown as mt, Card as jn } from "ant-design-vue";
19
- import { pick as Fe, omit as de, cloneDeep as Ue } from "lodash-es";
20
- import { useRouter as Le, RouterLink as ft, useRoute as An } from "vue-router";
21
- import { useContext as tt, useThemeContext as Tt, ThemeContext as Kn } from "@gx-design-vue/context";
22
- import { useProAppContext as Ft, proAppProps as Un, proAppSlots as kn, GProApp as En } from "@gx-design-vue/pro-app";
23
- import { GIcon as ke } from "@gx-design-vue/icon";
24
- import { GPorWaterMark as Xn } from "@gx-design-vue/pro-watermark";
25
- import { GScrollbars as Vn } from "@gx-design-vue/scrollbar";
26
- function xe(e) {
12
+ import { defineComponent as G, computed as v, watch as k, createVNode as o, mergeProps as oe, isVNode as Ce, cloneVNode as en, resolveComponent as tn, ref as Q, toRefs as Ee, Fragment as _, reactive as Me, toRaw as _e, onMounted as Ze, unref as Qe, inject as nn, onUnmounted as an, Teleport as on, Transition as ln, isRef as ct } from "vue";
13
+ import { createFromIconfontCN as Je, MenuUnfoldOutlined as rn, MenuFoldOutlined as sn, GithubOutlined as un, HomeOutlined as cn, CloseOutlined as je, FullscreenExitOutlined as Rt, FullscreenOutlined as $t, ReloadOutlined as wt, ExportOutlined as dn, VerticalRightOutlined as mn, VerticalLeftOutlined as fn, VerticalAlignMiddleOutlined as pn, SwapOutlined as gn, DownOutlined as hn } from "@ant-design/icons-vue";
14
+ import { useState as Be, useMemo as Oe, useMediaQuery as yn, useSlotsProps as bn, onMountedOrActivated as vn } from "@gx-design-vue/pro-hooks";
15
+ import { unit as W, useProConfigContext as Ne, useProStyle as le, Keyframe as h, useStyle as xe, mergeToken as et, GProConfigProvider as Cn, setAlpha as xn, getAlphaColor as In } from "@gx-design-vue/pro-provider";
16
+ import { isString as ke, getPrefixCls as ae, classNames as w, isUrl as he, isImg as Ae, convertValueBoolean as Sn, isArray as Rn, getSlotVNode as ie, cloneDeep as Mt, arrayRepeat as $n, isBoolean as re, deepMerge as de, isNumber as dt, getRandomNumber as mt, getLevelData as wn, getSlot as Pe, getSlotsProps as ge, isFunction as Mn, isBrowser as Bn } from "@gx-design-vue/pro-utils";
17
+ import { useStyleTag as Bt, useMouse as On, watchThrottled as Pn, useElementBounding as Tn, useLocalStorage as Fn, useThrottleFn as Nn, useDark as Ot } from "@vueuse/core";
18
+ import { Menu as be, Layout as Te, ConfigProvider as tt, Spin as Pt, Drawer as Ln, LayoutFooter as Hn, Breadcrumb as Dn, Tabs as Tt, Dropdown as ft, Card as zn } from "ant-design-vue";
19
+ import { pick as Fe, omit as ve, cloneDeep as qe } from "lodash-es";
20
+ import { useRouter as Le, RouterLink as pt, useRoute as Wn } from "vue-router";
21
+ import { useContext as Xe, useThemeContext as Ft, ThemeContext as jn } from "@gx-design-vue/context";
22
+ import { useProAppContext as Nt, proAppProps as An, proAppSlots as Kn, GProApp as Un } from "@gx-design-vue/pro-app";
23
+ import { GIcon as Ke } from "@gx-design-vue/icon";
24
+ import { GPorWaterMark as En } from "@gx-design-vue/pro-watermark";
25
+ import { GScrollbars as kn } from "@gx-design-vue/scrollbar";
26
+ function Ie(e) {
27
27
  const n = e.layout?.key?.split(":") || [];
28
28
  return {
29
29
  theme: n[0],
30
30
  layout: n[1]
31
31
  };
32
32
  }
33
- const k = {
33
+ const X = {
34
34
  // 布局模式 side/mix/simple/wide/top
35
35
  layout: "mix",
36
36
  // 标题
@@ -56,37 +56,43 @@ const k = {
56
56
  name: "fade",
57
57
  direction: "default"
58
58
  }
59
- }, Gn = ["styles", "waterMarkProps", "classNames", "openKeys", "selectedKeys", "disableMobile", "shortcutKey", "pageContainer"], {
60
- provideContext: Yn,
61
- useInjectContext: Z
62
- } = tt("pro-layout");
63
- function _n(e) {
59
+ }, Xn = [
60
+ "styles",
61
+ "waterMarkProps",
62
+ "classNames",
63
+ "openKeys",
64
+ "selectedKeys",
65
+ "disableMobile",
66
+ "shortcutKey",
67
+ "pageContainer"
68
+ ], { provideContext: Vn, useInjectContext: q } = Xe("pro-layout");
69
+ function Gn(e) {
64
70
  const n = document.documentElement;
65
71
  return getComputedStyle(n).getPropertyValue(e);
66
72
  }
67
- function Nt(e) {
68
- return Number.parseFloat(_n(e));
69
- }
70
73
  function Lt(e) {
74
+ return Number.parseFloat(Gn(e));
75
+ }
76
+ function Ht(e) {
71
77
  const n = /var\((--[\w-]+)\)/, t = e.match(n);
72
78
  return t ? t[1] : (/^--[\w-]+$/.test(e), e);
73
79
  }
74
80
  function se(e) {
75
- return e || e === 0 ? Ve(e) && e.includes("--") ? `var(${e})` : z(e) : "";
81
+ return e || e === 0 ? ke(e) && e.includes("--") ? `var(${e})` : W(e) : "";
76
82
  }
77
- function qn(e, n) {
83
+ function Yn(e, n) {
78
84
  let t = e;
79
- if (typeof e == "string" && e.includes("--") && (t = Nt(Lt(e))), typeof t == "string") {
85
+ if (typeof e == "string" && e.includes("--") && (t = Lt(Ht(e))), typeof t == "string") {
80
86
  const a = Number.parseFloat(t);
81
87
  Number.isNaN(a) || (t = a);
82
88
  }
83
- return z(t + n);
89
+ return W(t + n);
84
90
  }
85
- function Zn(e) {
86
- if (Ve(e)) {
87
- const n = Lt(e);
91
+ function _n(e) {
92
+ if (ke(e)) {
93
+ const n = Ht(e);
88
94
  if (n.startsWith("--"))
89
- return Nt(n);
95
+ return Lt(n);
90
96
  const t = Number(e);
91
97
  if (!Number.isNaN(t))
92
98
  return t;
@@ -96,10 +102,10 @@ function Zn(e) {
96
102
  }
97
103
  return e || 0;
98
104
  }
99
- function pt(e) {
105
+ function gt(e) {
100
106
  return e ? Object.entries(e).map(([n, t]) => `${n.replace(/([A-Z])/g, (r) => `-${r.toLowerCase()}`)}: ${t};`).join(" ") : "";
101
107
  }
102
- const Qn = `::view-transition-old(root),
108
+ const qn = `::view-transition-old(root),
103
109
  ::view-transition-new(root) {
104
110
  animation: none;
105
111
  mix-blend-mode: normal;
@@ -122,35 +128,35 @@ html[data-theme="dark"]::view-transition-new(root) {
122
128
  }`, nt = {
123
129
  layout: {
124
130
  type: String,
125
- default: k.layout
131
+ default: X.layout
126
132
  },
127
133
  wideWidth: {
128
134
  type: [Number, String],
129
- default: k.wideWidth
135
+ default: X.wideWidth
130
136
  },
131
137
  splitMenus: {
132
138
  type: Boolean,
133
- default: k.splitMenus
139
+ default: X.splitMenus
134
140
  },
135
141
  fixedTabsBar: {
136
142
  type: Boolean,
137
- default: k.fixedTabsBar
143
+ default: X.fixedTabsBar
138
144
  },
139
145
  fixedHeader: {
140
146
  type: Boolean,
141
- default: k.fixedHeader
147
+ default: X.fixedHeader
142
148
  },
143
149
  fixSiderbar: {
144
150
  type: Boolean,
145
- default: k.fixSiderbar
151
+ default: X.fixSiderbar
146
152
  },
147
153
  showTabsBar: {
148
154
  type: Boolean,
149
- default: k.showTabsBar
155
+ default: X.showTabsBar
150
156
  },
151
157
  headerHeight: {
152
158
  type: [Number, String],
153
- default: k.headerHeight
159
+ default: X.headerHeight
154
160
  },
155
161
  siderWidth: {
156
162
  type: [Number, String],
@@ -158,20 +164,20 @@ html[data-theme="dark"]::view-transition-new(root) {
158
164
  },
159
165
  title: {
160
166
  type: String,
161
- default: k.title
167
+ default: X.title
162
168
  },
163
169
  iconfontUrl: {
164
170
  type: String,
165
- default: k.iconfontUrl
171
+ default: X.iconfontUrl
166
172
  },
167
173
  animate: {
168
174
  type: Object,
169
- default: k.animate
175
+ default: X.animate
170
176
  }
171
- }, Jn = {
177
+ }, Zn = {
172
178
  mode: "inline",
173
179
  menuProps: null
174
- }, Ht = {
180
+ }, Dt = {
175
181
  openKeys: {
176
182
  type: Array,
177
183
  default: () => []
@@ -180,7 +186,7 @@ html[data-theme="dark"]::view-transition-new(root) {
180
186
  type: Array,
181
187
  default: () => []
182
188
  }
183
- }, Ge = {
189
+ }, Ve = {
184
190
  onOpenKeys: {
185
191
  type: Function
186
192
  },
@@ -202,9 +208,9 @@ html[data-theme="dark"]::view-transition-new(root) {
202
208
  default: () => {
203
209
  }
204
210
  }
205
- }, ea = {
206
- ...Ht,
207
- ...Fe(Ge, ["menuItemRender", "subMenuItemRender", "menuTextRender"]),
211
+ }, Qn = {
212
+ ...Dt,
213
+ ...Fe(Ve, ["menuItemRender", "subMenuItemRender", "menuTextRender"]),
208
214
  class: {
209
215
  type: String
210
216
  },
@@ -246,8 +252,8 @@ html[data-theme="dark"]::view-transition-new(root) {
246
252
  onSelect: {
247
253
  type: Function
248
254
  }
249
- }, ta = (e) => {
250
- const n = z(e.layout?.menuItemIconSize || e.fontSize), t = z((e.layout?.menuItemIconSize || e.fontSize) + 2), a = e.layout?.sider, r = e.layout?.header;
255
+ }, Jn = (e) => {
256
+ const n = W(e.layout?.menuItemIconSize || e.fontSize), t = W((e.layout?.menuItemIconSize || e.fontSize) + 2), a = e.layout?.sider, r = e.layout?.header;
251
257
  return {
252
258
  [`${e.antCls}-menu`]: {
253
259
  [`&${e.componentCls}`]: {
@@ -255,6 +261,13 @@ html[data-theme="dark"]::view-transition-new(root) {
255
261
  border: "none",
256
262
  [`&${e.componentCls}-inline`]: {
257
263
  color: a?.colorTextMenu,
264
+ [`${e.componentCls}-item-right-content`]: {
265
+ position: "absolute",
266
+ right: 0,
267
+ top: "50%",
268
+ transform: "translateY(-50%)",
269
+ lineHeight: "normal"
270
+ },
258
271
  [`${e.antCls}-menu-submenu`]: {
259
272
  "&-selected": {
260
273
  [`>${e.antCls}-menu-submenu-title`]: {
@@ -268,6 +281,7 @@ html[data-theme="dark"]::view-transition-new(root) {
268
281
  },
269
282
  [`&${e.componentCls}-horizontal`]: {
270
283
  color: r?.colorTextMenu,
284
+ [`${e.componentCls}-item-right-content`]: {},
271
285
  [`${e.antCls}-menu-submenu`]: {
272
286
  "&-selected": {
273
287
  [`>${e.antCls}-menu-submenu-title`]: {
@@ -343,13 +357,6 @@ html[data-theme="dark"]::view-transition-new(root) {
343
357
  flexDirection: "row",
344
358
  alignItems: "center",
345
359
  gap: e.marginXS,
346
- [`${e.componentCls}-item-right-content`]: {
347
- position: "absolute",
348
- right: 0,
349
- top: "50%",
350
- transform: "translateY(-50%)",
351
- lineHeight: "normal"
352
- },
353
360
  [`${e.componentCls}-item-icon`]: {
354
361
  [`${e.componentCls}-item-image`]: {
355
362
  width: t
@@ -452,47 +459,47 @@ html[data-theme="dark"]::view-transition-new(root) {
452
459
  iconfontUrl: a,
453
460
  hashId: r,
454
461
  style: l
455
- } = e, i = O(e.className, t, r), f = o("span", {
456
- class: O(i),
462
+ } = e, i = w(e.className, t, r), m = o("span", {
463
+ class: w(i),
457
464
  style: {
458
465
  display: "none"
459
466
  }
460
467
  }, [o("span", {
461
468
  class: "anticon"
462
469
  }, null)]);
463
- if (!n) return f;
464
- const c = (h) => o("img", {
465
- src: h,
470
+ if (!n) return m;
471
+ const s = (p) => o("img", {
472
+ src: p,
466
473
  alt: "icon",
467
- class: O(e.className ? `${e.className}-image` : "", i),
474
+ class: w(e.className ? `${e.className}-image` : "", i),
468
475
  style: l
469
- }, null), d = (h) => {
470
- const I = Qe({
471
- scriptUrl: a || k.iconfontUrl
476
+ }, null), c = (p) => {
477
+ const I = Je({
478
+ scriptUrl: a || X.iconfontUrl
472
479
  });
473
480
  return a ? o(I, {
474
- type: h,
481
+ type: p,
475
482
  class: i,
476
483
  style: l
477
484
  }, null) : o("span", {
478
485
  class: i,
479
486
  style: l
480
487
  }, null);
481
- }, p = () => tn(n, {
488
+ }, g = () => en(n, {
482
489
  class: i,
483
490
  style: l
484
- }), u = (h) => {
485
- if (he(h) || Ke(h)) return c(h);
486
- if (t === "iconfont") return d(h);
487
- const I = nn(h);
488
- return typeof I == "function" && o(I, null, null) || f;
491
+ }), u = (p) => {
492
+ if (he(p) || Ae(p)) return s(p);
493
+ if (t === "iconfont") return c(p);
494
+ const I = tn(p);
495
+ return typeof I == "function" && o(I, null, null) || m;
489
496
  };
490
- return typeof n == "string" ? n !== "" ? u(n) : f : ve(n) ? p() : f;
497
+ return typeof n == "string" ? n !== "" ? u(n) : m : Ce(n) ? g() : m;
491
498
  };
492
- let Dt = Qe({
493
- scriptUrl: k.iconfontUrl
499
+ let zt = Je({
500
+ scriptUrl: X.iconfontUrl
494
501
  });
495
- const gt = ({
502
+ const ht = ({
496
503
  icon: e,
497
504
  style: n,
498
505
  iconPrefixes: t = "icon-",
@@ -500,100 +507,100 @@ const gt = ({
500
507
  hashId: r
501
508
  }) => {
502
509
  if (typeof e == "string" && e !== "") {
503
- if (he(e) || Ke(e))
510
+ if (he(e) || Ae(e))
504
511
  return o("img", {
505
512
  key: e,
506
513
  src: e,
507
514
  alt: "icon",
508
515
  style: n,
509
- class: O(`${a}-image`, r)
516
+ class: w(`${a}-image`, r)
510
517
  }, null);
511
518
  if (e.startsWith(t))
512
- return o(Dt, {
519
+ return o(zt, {
513
520
  type: e,
514
521
  style: n
515
522
  }, null);
516
523
  }
517
524
  return e;
518
- }, ht = (e) => e && typeof e == "string" ? e.substring(0, 1).toUpperCase() : null;
519
- class na {
525
+ }, yt = (e) => e && typeof e == "string" ? e.substring(0, 1).toUpperCase() : null;
526
+ class ea {
520
527
  constructor(n) {
521
528
  this.getNavMenuItems = (t = [], a, r) => t.filter((l) => !l.meta?.hideInMenu).map((l) => this.getSubMenuOrItem(l, a, r)).filter((l) => l).flat(1), this.getSubMenuOrItem = (t, a, r) => {
522
529
  const {
523
530
  menuRenderType: l,
524
531
  subMenuItemRender: i,
525
- baseClassName: f,
526
- collapsed: c,
527
- iconPrefixes: d,
528
- styles: p,
532
+ baseClassName: m,
533
+ collapsed: s,
534
+ iconPrefixes: c,
535
+ styles: g,
529
536
  classNames: u
530
- } = this.props, h = this.getIntlName(t), I = l === "sider" ? t.meta?.inlineIndent ?? a * (this.props.extraInlineIndent ?? 10) : 0, R = t?.children, s = t?.meta?.hideInMenu, y = t?.meta?.rightContent, b = t?.meta?.divider, S = Array.isArray(R) && R.length > 0 && !s, T = R?.every((L) => L.meta?.hideInMenu);
531
- if (S && !T) {
532
- const L = t.meta?.icon || a === 1, v = typeof t.meta?.icon == "string" ? he(t.meta?.icon) || Ke(t.meta?.icon) : !1, M = gt({
537
+ } = this.props, p = this.getIntlName(t), I = l === "sider" ? t.meta?.inlineIndent ?? a * (this.props.extraInlineIndent ?? 10) : 0, M = t?.children, y = t?.meta?.hideInMenu, f = t?.meta?.rightContent, x = t?.meta?.divider, C = Array.isArray(M) && M.length > 0 && !y, P = M?.every(($) => $.meta?.hideInMenu);
538
+ if (C && !P) {
539
+ const $ = t.meta?.icon || a === 1, b = typeof t.meta?.icon == "string" ? he(t.meta?.icon) || Ae(t.meta?.icon) : !1, T = ht({
533
540
  icon: t.meta?.icon,
534
541
  style: t.meta?.styles?.itemIcon,
535
- iconPrefixes: d,
536
- className: O(`${f}-item`, t.meta?.classNames?.itemIcon),
542
+ iconPrefixes: c,
543
+ className: w(`${m}-item`, t.meta?.classNames?.itemIcon),
537
544
  hashId: this.props?.hashId
538
- }), V = c && L ? ht(h) : null, j = o("div", {
539
- class: O(u?.menuItemTitle, `${f}-item-title`, this.props?.hashId, {
540
- [`${f}-item-title-collapsed`]: c,
541
- [`${f}-item-title-collapsed-level-${r}`]: c
545
+ }), Y = s && $ ? yt(p) : null, K = o("div", {
546
+ class: w(u?.menuItemTitle, `${m}-item-title`, this.props?.hashId, {
547
+ [`${m}-item-title-collapsed`]: s,
548
+ [`${m}-item-title-collapsed-level-${r}`]: s
542
549
  }, t.meta?.classNames?.itemTitle),
543
550
  style: {
544
- paddingInlineStart: this.props.collapsed ? 0 : z(I),
545
- ...p?.menuItemTitle || {},
551
+ paddingInlineStart: this.props.collapsed ? 0 : W(I),
552
+ ...g?.menuItemTitle || {},
546
553
  ...t.meta?.styles?.itemTitle || {}
547
554
  }
548
- }, [c ? null : L && M ? o("span", {
549
- class: O(`${f}-item-icon`, this.props?.hashId, u?.menuItemIcon, t.meta?.classNames?.itemIcon),
555
+ }, [s ? null : $ && T ? o("span", {
556
+ class: w(`${m}-item-icon`, this.props?.hashId, u?.menuItemIcon, t.meta?.classNames?.itemIcon),
550
557
  style: {
551
- ...p?.menuItemIcon,
552
- ...v ? {} : t.meta?.styles?.itemIcon || {}
558
+ ...g?.menuItemIcon,
559
+ ...b ? {} : t.meta?.styles?.itemIcon || {}
553
560
  }
554
- }, [M]) : V, o("span", {
555
- class: O(`${f}-item-text`, this.props?.hashId, {
556
- [`${f}-item-text-has-icon`]: L && (M || V)
561
+ }, [T]) : Y, o("span", {
562
+ class: w(`${m}-item-text`, this.props?.hashId, {
563
+ [`${m}-item-text-has-icon`]: $ && (T || Y)
557
564
  }, u?.menuItemTitleText, t.meta?.classNames?.itemTitle),
558
565
  style: {
559
- ...p?.menuItemTitleText || {},
566
+ ...g?.menuItemTitleText || {},
560
567
  ...t.meta?.styles?.itemTitle || {}
561
568
  }
562
- }, [h]), y && typeof y == "function" ? o("div", {
563
- class: O(`${f}-item-right-content`, this.props.hashId, t.meta?.classNames?.itemRight),
569
+ }, [p]), f && typeof f == "function" ? o("div", {
570
+ class: w(`${m}-item-right-content`, this.props.hashId, t.meta?.classNames?.itemRight),
564
571
  style: t.meta?.styles?.itemRight
565
- }, [y(t.meta)]) : null]), A = i ? i({
572
+ }, [f(t.meta)]) : null]), U = i ? i({
566
573
  item: t,
567
- children: j,
574
+ children: K,
568
575
  menuProps: this.props
569
- }) : j;
576
+ }) : K;
570
577
  if (a === 0 && this.props.collapsed)
571
- return this.getNavMenuItems(R, a + 1, a);
572
- const E = this.getNavMenuItems(R, a + 1, a === 0 && this.props.collapsed ? a : a + 1);
573
- return [b ? {
578
+ return this.getNavMenuItems(M, a + 1, a);
579
+ const V = this.getNavMenuItems(M, a + 1, a === 0 && this.props.collapsed ? a : a + 1);
580
+ return [x && l === "sider" ? {
574
581
  type: "divider"
575
582
  } : void 0, {
576
583
  key: t.name,
577
- label: A,
578
- children: E,
584
+ label: U,
585
+ children: V,
579
586
  style: {
580
- ...p?.subMenu || {},
587
+ ...g?.subMenu || {},
581
588
  ...t.meta?.styles?.subMenu || {}
582
589
  },
583
590
  disabled: t.meta?.disabled,
584
- class: O(u?.subMenu, {
585
- [`${f}-submenu`]: !0,
586
- [`${f}-submenu-has-icon`]: L && M
591
+ class: w(u?.subMenu, {
592
+ [`${m}-submenu`]: !0,
593
+ [`${m}-submenu-has-icon`]: $ && T
587
594
  }, t.meta?.classNames?.subMenu),
588
- popupClassName: O(u?.subMenuPopup, `${f}-submenu-popup`, `${f}-submenu-popup-${this.props?.menuRenderType}`, this.props?.hashId, t.meta?.classNames?.subMenuPopup)
595
+ popupClassName: w(u?.subMenuPopup, `${m}-submenu-popup`, `${m}-submenu-popup-${this.props?.menuRenderType}`, this.props?.hashId, t.meta?.classNames?.subMenuPopup)
589
596
  }].filter(Boolean);
590
597
  }
591
- return [b ? {
598
+ return [x && l === "sider" ? {
592
599
  type: "divider"
593
600
  } : void 0, {
594
- class: O(`${f}-item`, u?.menuItem, t.meta?.classNames?.item),
601
+ class: w(`${m}-item`, u?.menuItem, t.meta?.classNames?.item),
595
602
  style: {
596
- ...p?.menuItem || {},
603
+ ...g?.menuItem || {},
597
604
  ...t.meta?.styles?.item || {}
598
605
  },
599
606
  key: t.name,
@@ -612,88 +619,88 @@ class na {
612
619
  }, this.getMenuItemPath = (t, a, r) => {
613
620
  const l = this.conversionPath(t.path || "/"), {
614
621
  isMobile: i,
615
- menuRenderType: f,
616
- onCollapse: c,
617
- menuItemRender: d,
618
- iconPrefixes: p,
622
+ menuRenderType: m,
623
+ onCollapse: s,
624
+ menuItemRender: c,
625
+ iconPrefixes: g,
619
626
  classNames: u,
620
- styles: h
627
+ styles: p
621
628
  } = this.props, I = this.getIntlName(t), {
622
- baseClassName: R,
623
- collapsed: s
624
- } = this.props, y = t.meta?.icon || a === 1, b = t.meta?.rightContent, S = typeof t.meta?.icon == "string" ? he(t.meta?.icon) || Ke(t.meta?.icon) : !1, T = f === "sider" ? t.meta?.inlineIndent ?? a * (this.props.extraInlineIndent ?? 10) : 0, L = y ? gt({
629
+ baseClassName: M,
630
+ collapsed: y
631
+ } = this.props, f = t.meta?.icon || a === 1, x = t.meta?.rightContent, C = typeof t.meta?.icon == "string" ? he(t.meta?.icon) || Ae(t.meta?.icon) : !1, P = m === "sider" ? t.meta?.inlineIndent ?? a * (this.props.extraInlineIndent ?? 10) : 0, $ = f ? ht({
625
632
  icon: t.meta?.icon,
626
633
  style: t.meta?.styles?.itemIcon,
627
- iconPrefixes: p,
628
- className: `${R}-item`,
634
+ iconPrefixes: g,
635
+ className: `${M}-item`,
629
636
  hashId: this.props?.hashId
630
- }) : null, v = s && y ? ht(I) : null, M = t.meta?.linkStatus === 1 && he(t.meta?.link), V = o("div", {
637
+ }) : null, b = y && f ? yt(I) : null, T = t.meta?.linkStatus === 1 && he(t.meta?.link), Y = o("div", {
631
638
  key: l,
632
- class: O(u?.menuItemTitle, `${R}-item-title`, this.props?.hashId, {
633
- [`${R}-item-link`]: M,
634
- [`${R}-item-title-collapsed`]: s,
635
- [`${R}-item-title-collapsed-level-${r}`]: s
639
+ class: w(u?.menuItemTitle, `${M}-item-title`, this.props?.hashId, {
640
+ [`${M}-item-link`]: T,
641
+ [`${M}-item-title-collapsed`]: y,
642
+ [`${M}-item-title-collapsed-level-${r}`]: y
636
643
  }, t.meta?.classNames?.itemTitle),
637
644
  style: {
638
- paddingInlineStart: this.props.collapsed ? 0 : z(T),
639
- ...h?.menuItemTitle || {},
645
+ paddingInlineStart: this.props.collapsed ? 0 : W(P),
646
+ ...p?.menuItemTitle || {},
640
647
  ...t.meta?.styles?.itemTitle || {}
641
648
  }
642
649
  }, [o("span", {
643
- class: O(`${R}-item-icon ${this.props?.hashId}`, u?.menuItemIcon),
650
+ class: w(`${M}-item-icon ${this.props?.hashId}`, u?.menuItemIcon),
644
651
  style: {
645
- display: v === null && !L ? "none" : "",
646
- ...h?.menuItemIcon,
647
- ...S ? {} : t.meta?.styles?.itemIcon || {}
652
+ display: b === null && !$ ? "none" : "",
653
+ ...p?.menuItemIcon,
654
+ ...C ? {} : t.meta?.styles?.itemIcon || {}
648
655
  }
649
- }, [L || o("span", {
656
+ }, [$ || o("span", {
650
657
  class: "anticon"
651
- }, [v])]), o("span", {
652
- class: O(u?.menuItemTitleText, `${R}-item-text`, this.props?.hashId, {
653
- [`${R}-item-text-has-icon`]: y && (L || v)
658
+ }, [b])]), o("span", {
659
+ class: w(u?.menuItemTitleText, `${M}-item-text`, this.props?.hashId, {
660
+ [`${M}-item-text-has-icon`]: f && ($ || b)
654
661
  }, t.meta?.classNames?.itemTitleText),
655
662
  style: {
656
- ...h?.menuItemTitleText || {},
663
+ ...p?.menuItemTitleText || {},
657
664
  ...t.meta?.styles?.itemTitleText || {}
658
665
  }
659
- }, [I]), b && typeof b == "function" ? o("div", {
660
- class: O(`${R}-item-right-content`, this.props.hashId, t.meta?.classNames?.itemRight),
666
+ }, [I]), x && typeof x == "function" ? o("div", {
667
+ class: w(`${M}-item-right-content`, this.props.hashId, t.meta?.classNames?.itemRight),
661
668
  style: t.meta?.styles?.itemRight
662
- }, [b(t.meta)]) : null]);
663
- if (d) {
664
- const j = {
669
+ }, [x(t.meta)]) : null]);
670
+ if (c) {
671
+ const K = {
665
672
  ...t,
666
- isUrl: M,
673
+ isUrl: T,
667
674
  itemPath: l,
668
675
  isMobile: i,
669
676
  replace: l === location.pathname,
670
- onClick: () => c && c(!0),
677
+ onClick: () => s && s(!0),
671
678
  children: void 0
672
679
  };
673
- return d({
674
- item: j,
675
- defaultDom: V,
680
+ return c({
681
+ item: K,
682
+ defaultDom: Y,
676
683
  menuProps: this.props
677
684
  });
678
685
  }
679
- return V;
686
+ return Y;
680
687
  }, this.conversionPath = (t) => t && t.indexOf("http") === 0 ? t : `/${t || ""}`.replace(/\/+/g, "/"), this.props = n;
681
688
  }
682
689
  }
683
- const zt = /* @__PURE__ */ X({
690
+ const Wt = /* @__PURE__ */ G({
684
691
  name: "BaseMenu",
685
- props: ea,
692
+ props: Qn,
686
693
  setup(e) {
687
694
  const n = Le(), {
688
695
  dark: t,
689
696
  token: a
690
- } = Ne(), r = Z(), i = (r?.getPrefixCls || ae)({
697
+ } = Ne(), r = q(), i = (r?.getPrefixCls || ae)({
691
698
  isPor: !0,
692
699
  suffixCls: "base-menu"
693
700
  }), {
694
- wrapSSR: f,
695
- hashId: c
696
- } = le("ProBaseMenu", [ta], i), [d, p] = Oe(e.openKeys || []), [u, h] = Oe(e.selectedKeys || []), I = Be(() => new na({
701
+ wrapSSR: m,
702
+ hashId: s
703
+ } = le("ProBaseMenu", [Jn], i), [c, g] = Be(e.openKeys || []), [u, p] = Be(e.selectedKeys || []), I = Oe(() => new ea({
697
704
  ...e,
698
705
  layout: r?.settings?.value?.layout,
699
706
  isMobile: r?.isMobile?.value,
@@ -704,61 +711,61 @@ const zt = /* @__PURE__ */ X({
704
711
  inlineIndent: e.menuProps?.inlineIndent,
705
712
  extraInlineIndent: e.menuProps?.extraInlineIndent,
706
713
  iconfontUrl: e.iconfontUrl,
707
- hashId: c.value,
708
- onCollapse: (s) => {
709
- r && (r.collapsed.value = s);
714
+ hashId: s.value,
715
+ onCollapse: (y) => {
716
+ r && (r.collapsed.value = y);
710
717
  }
711
- }), [() => c.value, () => a.value, () => e.menuData, () => e.iconfontUrl, () => e.styles, () => e.classNames, () => e.menuProps?.inlineIndent, () => e.menuProps?.extraInlineIndent, () => r?.isMobile?.value, () => r?.collapsedEffect?.value, () => r?.settings?.value?.layout]), R = x(() => {
712
- const s = `.${i}`, y = `.${i}-item`, b = `.${i}-submenu`, S = `${a.value.antCls}-menu-item-selected`, T = `${a.value.antCls}-menu-submenu-title`;
718
+ }), [() => s.value, () => a.value, () => e.menuData, () => e.iconfontUrl, () => e.styles, () => e.classNames, () => e.menuProps?.inlineIndent, () => e.menuProps?.extraInlineIndent, () => r?.isMobile?.value, () => r?.collapsedEffect?.value, () => r?.settings?.value?.layout]), M = v(() => {
719
+ const y = `.${i}`, f = `.${i}-item`, x = `.${i}-submenu`, C = `${a.value.antCls}-menu-item-selected`, P = `${a.value.antCls}-menu-submenu-title`;
713
720
  return `
714
- ${s} ${b}>${T} {
715
- ${pt(e.styles.subMenuTitle)}
721
+ ${y} ${x}>${P} {
722
+ ${gt(e.styles.subMenuTitle)}
716
723
  }
717
- ${s} ${y}${S} {
718
- ${pt(e.styles.menuItemSelect)}
724
+ ${y} ${f}${C} {
725
+ ${gt(e.styles.menuItemSelect)}
719
726
  }
720
727
  `;
721
728
  });
722
- return Mt(R), U(() => e.openKeys, (s) => p(s)), U(() => e.selectedKeys, (s) => h(s)), U(() => e.iconfontUrl, () => {
723
- e.iconfontUrl && (Dt = Qe({
729
+ return Bt(M), k(() => e.openKeys, (y) => g(y)), k(() => e.selectedKeys, (y) => p(y)), k(() => e.iconfontUrl, () => {
730
+ e.iconfontUrl && (zt = Je({
724
731
  scriptUrl: e.iconfontUrl
725
732
  }));
726
733
  }, {
727
734
  immediate: !0
728
- }), () => e.menuData && e.menuData?.length < 1 ? null : f(o(be, oe({
735
+ }), () => e.menuData && e.menuData?.length < 1 ? null : m(o(be, oe({
729
736
  key: "Menu",
730
737
  mode: e.mode,
731
738
  inlineIndent: 16,
732
739
  theme: t.value ? "dark" : "light",
733
- openKeys: d.value,
740
+ openKeys: c.value,
734
741
  selectedKeys: u.value,
735
742
  style: {
736
743
  backgroundColor: "transparent",
737
744
  border: "none",
738
745
  ...e.style
739
746
  },
740
- class: O(e.class, c, i, {
747
+ class: w(e.class, s, i, {
741
748
  [`${i}-inline`]: e.mode === "inline",
742
749
  [`${i}-horizontal`]: e.mode === "horizontal",
743
750
  [`${i}-collapsed`]: r?.collapsedEffect?.value
744
751
  }),
745
752
  items: I.value.getNavMenuItems(e.menuData, 0, 0)
746
- }, de(e.menuProps, ["onOpenChange", "onSelect", "onClick"]), {
747
- onOpenChange: (s) => {
748
- p(s), e.onOpenKeys && e.onOpenKeys(s);
753
+ }, ve(e.menuProps, ["onOpenChange", "onSelect", "onClick"]), {
754
+ onOpenChange: (y) => {
755
+ g(y), e.onOpenKeys && e.onOpenKeys(y);
749
756
  },
750
- onSelect: (s) => {
751
- e.onSelect && e.onSelect(s), h(s.selectedKeys);
757
+ onSelect: (y) => {
758
+ e.onSelect && e.onSelect(y), p(y.selectedKeys);
752
759
  },
753
- onClick: (s) => {
760
+ onClick: (y) => {
754
761
  if (e.onClick)
755
- e.onClick(s);
762
+ e.onClick(y);
756
763
  else {
757
- const y = r?.menu?.value?.flatMenus?.find((b) => b.name === s.key);
758
- if (y) {
759
- const b = Ve(y.redirect) ? y.redirect : y.path || "", S = y.meta?.link || "", T = he(S);
760
- n.currentRoute.value?.fullPath !== b && (T && S && y.meta?.linkStatus === 1 ? window.open(S) : n.push({
761
- path: b
764
+ const f = r?.menu?.value?.flatMenus?.find((x) => x.name === y.key);
765
+ if (f) {
766
+ const x = ke(f.redirect) ? f.redirect : f.path || "", C = f.meta?.link || "", P = he(C);
767
+ n.currentRoute.value?.fullPath !== x && (P && C && f.meta?.linkStatus === 1 ? window.open(C) : n.push({
768
+ path: x
762
769
  }));
763
770
  }
764
771
  }
@@ -776,23 +783,23 @@ const zt = /* @__PURE__ */ X({
776
783
  default: () => {
777
784
  }
778
785
  }
779
- }, aa = {
786
+ }, ta = {
780
787
  ...He
781
- }, Wt = (e, { breadcrumb: n, parentRoute: t, menuMap: a, flatMenus: r }) => e.map((l, i) => (l.meta = l.meta || {}, l.meta.order = l.meta.order ?? i + 1, l.key = t?.key ? `${t?.key}-${i}` : `${i}`, t?.meta?.hidden && (l.meta.hidden = !0), t?.meta?.hideChildren && (l.meta.hidden = !0), t?.meta?.hideInMenu && (l.meta.hideInMenu = !0), t?.meta?.hideChildrenInMenu && (l.meta.hideInMenu = !0), l.path = l.path.replace("//", "/"), l.children && l.children.length > 0 && (l.children = Wt(l.children, {
788
+ }, jt = (e, { breadcrumb: n, parentRoute: t, menuMap: a, flatMenus: r }) => e.map((l, i) => (l.meta = l.meta || {}, l.meta.order = l.meta.order ?? i + 1, l.key = t?.key ? `${t?.key}-${i}` : `${i}`, l.redirect = l.redirect ? l.redirect : l.children?.length ? at(l.children || []) : void 0, t?.meta?.hidden && (l.meta.hidden = !0), t?.meta?.hideChildren && (l.meta.hidden = !0), t?.meta?.hideInMenu && (l.meta.hideInMenu = !0), t?.meta?.hideChildrenInMenu && (l.meta.hideInMenu = !0), l.path = l.path.replace("//", "/"), r.every((m) => m.name !== l.name) && r.push(l), a.has(l.name) || a.set(l.name, ve(l, "children")), l.children && l.children.length > 0 && (l.children = jt(l.children, {
782
789
  breadcrumb: n,
783
790
  flatMenus: r,
784
791
  parentRoute: l,
785
792
  menuMap: a
786
- })), r.every((f) => f.name !== l.name) && r.push(de(l, "children")), a.has(l.name) || a.set(l.name, de(l, "children")), n[`${l.path}`] = l, de(l, "component"))).sort((l, i) => {
787
- const f = l.meta?.order || 0, c = i.meta?.order || 0;
788
- return f - c > 0 ? 1 : -1;
793
+ })), n[`${l.path}`] = l, ve(l, "component"))).sort((l, i) => {
794
+ const m = l.meta?.order || 0, s = i.meta?.order || 0;
795
+ return m - s > 0 ? 1 : -1;
789
796
  });
790
- function jt(e) {
797
+ function Ti(e) {
791
798
  const { menuSelectKey: n } = e?.meta || {};
792
799
  return n || e?.fullPath || e?.path;
793
800
  }
794
- const oa = (e) => {
795
- const n = e.find((i) => (i.name === "root" || i.path === "/") && i.children?.length), t = {}, a = [], r = /* @__PURE__ */ new Map(), l = Wt(n?.children || [], {
801
+ const na = (e) => {
802
+ const n = e.find((i) => (i.name === "root" || i.path === "/") && i.children?.length), t = {}, a = [], r = /* @__PURE__ */ new Map(), l = jt(n?.children || [], {
796
803
  menuMap: r,
797
804
  flatMenus: a,
798
805
  breadcrumb: t
@@ -804,14 +811,14 @@ const oa = (e) => {
804
811
  flatMenus: a
805
812
  };
806
813
  };
807
- function la(e) {
814
+ function aa(e) {
808
815
  const n = /* @__PURE__ */ new Map(), t = [];
809
816
  function a(l) {
810
817
  return l.map((i) => {
811
- const f = i.path, c = i.name, d = n.has(c) && n.get(c) !== f;
812
- if (i?.meta?.hidden || !c || d)
813
- return (!c || d) && (t.some((p) => p.name === c && f === i.path) || t.push({ ...i })), null;
814
- if (n.set(c, f), i && i?.children)
818
+ const m = i.path, s = i.name, c = n.has(s) && n.get(s) !== m;
819
+ if (i?.meta?.hidden || !s || c)
820
+ return (!s || c) && (t.some((g) => g.name === s && m === i.path) || t.push({ ...i })), null;
821
+ if (n.set(s, m), i && i?.children)
815
822
  if (i?.meta?.hideChildren)
816
823
  i.children = [];
817
824
  else
@@ -825,14 +832,14 @@ function la(e) {
825
832
  const r = a(e);
826
833
  return t.length > 0 && console.warn("The menu contains duplicate names or name undefined: ", t), r;
827
834
  }
828
- function ia(e) {
829
- return e.map((n) => n?.meta?.hidden ? null : (n.redirect = n.redirect === void 0 ? At(n.children || []) || void 0 : n.redirect, n.children && delete n.children, n)).filter((n) => n);
835
+ function oa(e) {
836
+ return e.map((n) => n?.meta?.hidden ? null : (n.redirect = n.redirect === void 0 ? at(n.children || []) || void 0 : n.redirect, n.children && delete n.children, n)).filter((n) => n);
830
837
  }
831
- function ra(e, n) {
838
+ function la(e, n) {
832
839
  const t = e.find((a) => a.name === n);
833
840
  return n === void 0 ? [] : t?.children || [];
834
841
  }
835
- function At(e) {
842
+ function at(e) {
836
843
  const n = e?.filter((l) => !l?.meta?.hidden && !l.meta?.hideInMenu), t = n[0];
837
844
  let a = "";
838
845
  const r = function(l) {
@@ -847,51 +854,36 @@ function At(e) {
847
854
  }
848
855
  return a;
849
856
  }
850
- function Kt(e, n) {
851
- for (const t of e) {
852
- if (t.key === n) {
853
- let a = t;
854
- for (; a.children && a.children.length > 0; ) {
855
- if (a.meta?.hideInMenu)
856
- return a.key;
857
- a = a.children[0];
858
- }
859
- return a.key;
860
- }
861
- if (t.children) {
862
- const a = Kt(t.children, n);
863
- if (a)
864
- return a;
865
- }
866
- }
857
+ function ia(e) {
858
+ const n = e.split("-"), t = [];
859
+ for (let a = 0; a < n.length; a++)
860
+ t.push(n.slice(0, a + 1).join("-"));
861
+ return t;
867
862
  }
868
- function Ut({ menuData: e, flatMenus: n, menuMap: t }, { path: a, name: r }) {
869
- const l = t && t.size > 0 ? t.get(r) : n.find((R) => R.name === r), i = l?.key || "", f = l?.meta?.hidden, c = l?.meta?.hideInMenu;
870
- let d = n.find((R) => R.path === a)?.key || "";
871
- const p = !d || c, u = i.split("-").slice(0, -1).join("-"), h = Kt(e, u) || d, I = l ? n.find((R) => R.name === l?.meta?.menuSelectKey || R.path === jt(l))?.key : void 0;
872
- if (d = p ? l?.meta?.menuSelectKey && I || h : d, d) {
873
- const R = [], s = d.split("-");
874
- for (let b = 0; b < s.length; b += 1)
875
- R.push(Ue(s).splice(0, b + 1).join("-"));
876
- const y = i === d || f ? [] : n.filter((b) => i === b.key);
877
- return n.filter((b) => R.some((S) => S === b?.key || "")).concat(y);
863
+ function At(e, n) {
864
+ const t = e.menuMap.get(n);
865
+ if (t) {
866
+ if (t.meta?.hidden)
867
+ return [];
868
+ const a = t.meta?.menuSelectKey || t.key || "", r = ia(a);
869
+ return e.flatMenus.filter((i) => r.includes(i.key || "")).filter((i) => !i.meta?.hideInMenu);
878
870
  }
879
871
  return [];
880
872
  }
881
- function sa(e, n) {
873
+ function ra(e, n) {
882
874
  return e.map((t) => {
883
- const a = t.children ? sa(t.children, n) : [];
875
+ const a = t.children ? ra(t.children, n) : [];
884
876
  return n(t) || a.length > 0 ? {
885
877
  ...t,
886
878
  children: a.length > 0 ? a : void 0
887
879
  } : null;
888
880
  }).filter((t) => t !== null);
889
881
  }
890
- function ua(e, n) {
882
+ function sa(e, n) {
891
883
  const t = /* @__PURE__ */ new Set();
892
884
  return e.filter((a) => t.has(a[n]) ? !1 : (t.add(a[n]), !0));
893
885
  }
894
- const Ye = {
886
+ const Ge = {
895
887
  class: String,
896
888
  style: Object,
897
889
  logo: {
@@ -910,12 +902,12 @@ const Ye = {
910
902
  }
911
903
  },
912
904
  onLogoClick: Function
913
- }, ca = {
905
+ }, ua = {
914
906
  ...Fe(nt, ["title", "layout"]),
915
- ...Ye
916
- }, at = {
917
- ...Ye,
907
+ ...Ge
908
+ }, ot = {
918
909
  ...Ge,
910
+ ...Ve,
919
911
  suppressSiderWhenMenuEmpty: {
920
912
  type: Boolean,
921
913
  default: !0
@@ -956,46 +948,46 @@ const Ye = {
956
948
  }
957
949
  }
958
950
  };
959
- function da(e, n) {
960
- const { x: t, y: a } = Tn(), [r, l] = Oe(!1);
951
+ function ca(e, n) {
952
+ const { x: t, y: a } = On(), [r, l] = Be(!1);
961
953
  if (!n?.disabled) {
962
- let d;
963
- U(() => e.value, (p) => {
964
- p ? d = Fn([() => t.value, () => a.value], ([u, h]) => {
965
- c(u, h);
966
- }, { throttle: 60 }) : (d?.(), l(!1));
954
+ let c;
955
+ k(() => e.value, (g) => {
956
+ g ? c = Pn([() => t.value, () => a.value], ([u, p]) => {
957
+ s(u, p);
958
+ }, { throttle: 60 }) : (c?.(), l(!1));
967
959
  }, { immediate: !0 });
968
960
  }
969
- function i(d, p, u) {
970
- return d >= u.left && d <= u.right && p >= u.top && p <= u.bottom;
961
+ function i(c, g, u) {
962
+ return c >= u.left && c <= u.right && g >= u.top && g <= u.bottom;
971
963
  }
972
- function f(d, p, u) {
973
- return u.some((h) => {
974
- if (!h)
964
+ function m(c, g, u) {
965
+ return u.some((p) => {
966
+ if (!p)
975
967
  return !1;
976
- const I = h.getBoundingClientRect();
977
- return i(d, p, I);
968
+ const I = p.getBoundingClientRect();
969
+ return i(c, g, I);
978
970
  });
979
971
  }
980
- function c(d, p) {
981
- const u = n?.rectEl?.value, h = n?.footEl?.value;
972
+ function s(c, g) {
973
+ const u = n?.rectEl?.value, p = n?.footEl?.value;
982
974
  if (!u)
983
975
  return;
984
976
  const I = n?.distance || 50;
985
- if (d <= I && !r.value) {
977
+ if (c <= I && !r.value) {
986
978
  l(!0);
987
979
  return;
988
980
  }
989
- if (!r.value || d <= I)
981
+ if (!r.value || c <= I)
990
982
  return;
991
- f(d, p, [u, h]) || l(!1);
983
+ m(c, g, [u, p]) || l(!1);
992
984
  }
993
985
  return {
994
986
  innerCollapsed: r,
995
987
  setInnerCollapsed: l
996
988
  };
997
989
  }
998
- function ma() {
990
+ function da() {
999
991
  return o("svg", {
1000
992
  width: "1em",
1001
993
  height: "1em",
@@ -1006,7 +998,7 @@ function ma() {
1006
998
  d: "M6.432 7.967a.448.448 0 01-.318.133h-.228a.46.46 0 01-.318-.133L2.488 4.85a.305.305 0 010-.43l.427-.43a.293.293 0 01.42 0L6 6.687l2.665-2.699a.299.299 0 01.426 0l.42.431a.305.305 0 010 .43L6.432 7.967z"
1007
999
  }, null)]);
1008
1000
  }
1009
- const fa = (e) => ({
1001
+ const ma = (e) => ({
1010
1002
  [e.componentCls]: {
1011
1003
  position: "absolute",
1012
1004
  insetBlockStart: "18px",
@@ -1042,48 +1034,48 @@ const fa = (e) => ({
1042
1034
  }
1043
1035
  }
1044
1036
  }
1045
- }), kt = (e, n, t) => e !== !1 ? typeof e == "function" ? e(n, t) : e || t : t, ot = (e) => e.iconRender ? typeof e?.iconRender == "function" ? e?.iconRender() : e.iconRender : e.collapsed ? o(sn, null, null) : o(un, null, null), pa = /* @__PURE__ */ X({
1037
+ }), Kt = (e, n, t) => e !== !1 ? typeof e == "function" ? e(n, t) : e || t : t, lt = (e) => e.iconRender ? typeof e?.iconRender == "function" ? e?.iconRender() : e.iconRender : e.collapsed ? o(rn, null, null) : o(sn, null, null), fa = /* @__PURE__ */ G({
1046
1038
  name: "CollapsedIcon",
1047
1039
  inheritAttrs: !1,
1048
1040
  props: {
1049
1041
  isMobile: Boolean,
1050
1042
  collapsed: Boolean,
1051
1043
  onClick: Function,
1052
- iconRender: aa.collapsedIconRender
1044
+ iconRender: ta.collapsedIconRender
1053
1045
  },
1054
1046
  setup(e) {
1055
1047
  const {
1056
1048
  getPrefixCls: n
1057
- } = Z(), t = n({
1049
+ } = q(), t = n({
1058
1050
  suffixCls: "collapsed-button",
1059
1051
  isPor: !0
1060
1052
  }), {
1061
1053
  wrapSSR: a,
1062
1054
  hashId: r
1063
- } = le("SiderMenuCollapsedIcon", [fa], t);
1055
+ } = le("SiderMenuCollapsedIcon", [ma], t);
1064
1056
  return () => a(o("div", {
1065
- class: O(t, r.value, {
1057
+ class: w(t, r.value, {
1066
1058
  [`${t}-collapsed`]: e.collapsed,
1067
1059
  [`${t}-is-mobile`]: e.isMobile
1068
1060
  }),
1069
1061
  onClick: (l) => e.onClick?.(l)
1070
- }, [ot({
1062
+ }, [lt({
1071
1063
  collapsed: e.collapsed,
1072
- iconRender: e.iconRender ? e.iconRender : () => o(ma, null, null)
1064
+ iconRender: e.iconRender ? e.iconRender : () => o(da, null, null)
1073
1065
  })]));
1074
1066
  }
1075
- }), Et = (e, n) => e === !1 ? null : typeof e == "string" ? o("img", {
1067
+ }), Ut = (e, n) => e === !1 ? null : typeof e == "string" ? o("img", {
1076
1068
  src: e,
1077
1069
  alt: "logo",
1078
1070
  style: n
1079
- }, null) : typeof e == "function" ? e() : e, ga = (e, n) => o("span", {
1071
+ }, null) : typeof e == "function" ? e() : e, pa = (e, n) => o("span", {
1080
1072
  key: "logo",
1081
1073
  onClick: () => n.onLogoClick?.(),
1082
1074
  class: e
1083
- }, [o("a", null, [Et(n.logo, n.logoStyle)])]), ha = (e, n) => e === !1 ? null : e ? e({
1075
+ }, [o("a", null, [Ut(n.logo, n.logoStyle)])]), ga = (e, n) => e === !1 ? null : e ? e({
1084
1076
  logo: n,
1085
1077
  title: null
1086
- }) : n, ya = (e) => {
1078
+ }) : n, ha = (e) => {
1087
1079
  const {
1088
1080
  logo: n,
1089
1081
  logoStyle: t,
@@ -1091,21 +1083,21 @@ const fa = (e) => ({
1091
1083
  layout: r,
1092
1084
  collapsed: l,
1093
1085
  collapsedWidth: i
1094
- } = e, f = e.logoRender;
1095
- if (f === !1) return null;
1096
- const c = Et(n, t), d = a && o("h1", null, [a]);
1097
- return typeof f == "function" ? f({
1098
- logo: c,
1099
- title: e.collapsed ? null : d,
1086
+ } = e, m = e.logoRender;
1087
+ if (m === !1) return null;
1088
+ const s = Ut(n, t), c = a && o("h1", null, [a]);
1089
+ return typeof m == "function" ? m({
1090
+ logo: s,
1091
+ title: e.collapsed ? null : c,
1100
1092
  props: e
1101
- }) : f || o("a", {
1093
+ }) : m || o("a", {
1102
1094
  key: "title",
1103
1095
  onClick: () => e.onLogoClick?.()
1104
- }, [(l && i || !l) && (c || null), e.collapsed && (r === "side" || r === "simple") ? null : d]);
1105
- }, lt = /* @__PURE__ */ X({
1096
+ }, [(l && i || !l) && (s || null), e.collapsed && (r === "side" || r === "simple") ? null : c]);
1097
+ }, it = /* @__PURE__ */ G({
1106
1098
  name: "LogoContent",
1107
1099
  props: {
1108
- ...ca,
1100
+ ...ua,
1109
1101
  hashId: String,
1110
1102
  baseClassName: String
1111
1103
  },
@@ -1118,29 +1110,29 @@ const fa = (e) => ({
1118
1110
  settings: r,
1119
1111
  collapsedProps: l,
1120
1112
  styles: i,
1121
- classNames: f,
1122
- isMobile: c
1123
- } = Z(), d = q(), {
1124
- height: p
1125
- } = Nn(d);
1113
+ classNames: m,
1114
+ isMobile: s
1115
+ } = q(), c = Q(), {
1116
+ height: g
1117
+ } = Tn(c);
1126
1118
  return t({
1127
- getHeight: () => p.value
1119
+ getHeight: () => g.value
1128
1120
  }), () => o("div", {
1129
1121
  id: "logo",
1130
- ref: d,
1122
+ ref: c,
1131
1123
  class: {
1132
1124
  [`${e.class}`]: e.class,
1133
1125
  [`${e.hashId}`]: !0,
1134
1126
  [`${e.baseClassName}-logo`]: !0,
1135
- [`${e.baseClassName}-logo-mobile`]: c.value,
1127
+ [`${e.baseClassName}-logo-mobile`]: s.value,
1136
1128
  [`${e.baseClassName}-logo-collapsed`]: !!a.value,
1137
- [`${f.value?.logo}`]: !!f.value?.logo
1129
+ [`${m.value?.logo}`]: !!m.value?.logo
1138
1130
  },
1139
1131
  style: {
1140
1132
  ...e.style || {},
1141
1133
  ...i.value.logo || {}
1142
1134
  }
1143
- }, [ya({
1135
+ }, [ha({
1144
1136
  ...e,
1145
1137
  title: e.title || r.value.title,
1146
1138
  collapsed: a.value,
@@ -1148,8 +1140,8 @@ const fa = (e) => ({
1148
1140
  }) || null, n.default?.()]);
1149
1141
  }
1150
1142
  });
1151
- lt.inheritAttrs = !1;
1152
- const Ee = (e) => ({
1143
+ it.inheritAttrs = !1;
1144
+ const Ue = (e) => ({
1153
1145
  paddingInline: 6,
1154
1146
  paddingBlock: 6,
1155
1147
  lineHeight: "16px",
@@ -1162,15 +1154,15 @@ const Ee = (e) => ({
1162
1154
  color: e.layout?.header?.colorTextRightActionsItemHover,
1163
1155
  backgroundColor: e.layout?.header?.colorBgRightActionsItemHover
1164
1156
  }
1165
- }), ba = (e) => ({
1157
+ }), ya = (e) => ({
1166
1158
  [e.componentCls]: {
1167
1159
  display: "flex",
1168
1160
  flexDirection: "column",
1169
1161
  width: "100%",
1170
1162
  minHeight: "100vh"
1171
1163
  }
1172
- }), va = (e) => {
1173
- const { layout: n } = xe(e), t = e.layout?.pageContainer;
1164
+ }), ba = (e) => {
1165
+ const { layout: n } = Ie(e), t = e.layout?.pageContainer;
1174
1166
  return {
1175
1167
  [`${e.antCls}-layout`]: {
1176
1168
  background: "transparent !important"
@@ -1207,7 +1199,7 @@ const Ee = (e) => ({
1207
1199
  }
1208
1200
  }
1209
1201
  };
1210
- }, Xt = new g("antBadgeLoadingCircle", {
1202
+ }, Et = new h("antBadgeLoadingCircle", {
1211
1203
  "0%": { display: "none", opacity: 0, overflow: "hidden" },
1212
1204
  "80%": {
1213
1205
  overflow: "hidden"
@@ -1216,15 +1208,15 @@ const Ee = (e) => ({
1216
1208
  display: "unset",
1217
1209
  opacity: 1
1218
1210
  }
1219
- }), yt = () => ({
1211
+ }), bt = () => ({
1220
1212
  display: "flex",
1221
1213
  alignItems: "center",
1222
1214
  justifyContent: "space-between",
1223
1215
  paddingBlock: 4,
1224
1216
  paddingInline: 8,
1225
1217
  marginInline: 0
1226
- }), Ca = (e, { siderChildren: n = {} }) => {
1227
- const { layout: t } = xe(e), a = e.layout?.pageContainer;
1218
+ }), va = (e, { siderChildren: n = {} }) => {
1219
+ const { layout: t } = Ie(e), a = e.layout?.pageContainer;
1228
1220
  return {
1229
1221
  [`${e.proComponentsCls}-basic-layout`]: {
1230
1222
  [`${e.antCls}-layout-sider${e.componentCls}`]: {
@@ -1252,7 +1244,7 @@ const Ee = (e) => ({
1252
1244
  flexDirection: "column",
1253
1245
  borderInlineEnd: `1px solid ${e.colorSplit}`,
1254
1246
  paddingBlock: 0,
1255
- paddingBlockStart: t === "simple" ? z(e.layout?.header?.heightLayoutHeader) : 0,
1247
+ paddingBlockStart: t === "simple" ? W(e.layout?.header?.heightLayoutHeader) : 0,
1256
1248
  background: "transparent",
1257
1249
  transition: `transform ${e.motionDurationMid} ${e.motionEaseOut}`,
1258
1250
  ...n
@@ -1349,23 +1341,23 @@ const Ee = (e) => ({
1349
1341
  background: "transparent"
1350
1342
  },
1351
1343
  "&-actions": {
1352
- ...yt(),
1344
+ ...bt(),
1353
1345
  color: e.layout?.sider?.colorTextMenu,
1354
- "&-item": Ee(e)
1346
+ "&-item": Ue(e)
1355
1347
  },
1356
1348
  "&-collapsed-button": {
1357
1349
  flexDirection: "row-reverse",
1358
- ...yt(),
1350
+ ...bt(),
1359
1351
  "&.collapsed": {
1360
1352
  flexDirection: "none",
1361
1353
  justifyContent: "center"
1362
1354
  },
1363
- "&>:first-child": Ee(e)
1355
+ "&>:first-child": Ue(e)
1364
1356
  },
1365
1357
  "&-footer": {
1366
1358
  paddingBlockEnd: 16,
1367
1359
  fontSize: e.fontSize,
1368
- animationName: Xt,
1360
+ animationName: Et,
1369
1361
  animationDuration: ".4s",
1370
1362
  animationTimingFunction: "ease",
1371
1363
  [`&>${e.antCls}-menu`]: {
@@ -1382,8 +1374,8 @@ const Ee = (e) => ({
1382
1374
  }
1383
1375
  }
1384
1376
  };
1385
- }, Vt = (e) => {
1386
- const { layout: n } = xe(e);
1377
+ }, kt = (e) => {
1378
+ const { layout: n } = Ie(e);
1387
1379
  return {
1388
1380
  [`${e.componentCls}-logo`]: {
1389
1381
  position: "relative",
@@ -1417,7 +1409,7 @@ const Ee = (e) => ({
1417
1409
  marginInlineEnd: 0,
1418
1410
  marginInlineStart: 6,
1419
1411
  color: e.layout?.sider?.colorTextMenuTitle,
1420
- animationName: Xt,
1412
+ animationName: Et,
1421
1413
  animationDuration: ".4s",
1422
1414
  animationTimingFunction: "ease",
1423
1415
  fontWeight: 600,
@@ -1444,14 +1436,14 @@ const Ee = (e) => ({
1444
1436
  }
1445
1437
  };
1446
1438
  };
1447
- function bt(e) {
1448
- return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !ve(e);
1439
+ function vt(e) {
1440
+ return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !Ce(e);
1449
1441
  }
1450
1442
  const {
1451
- Sider: xa
1452
- } = Te, vt = /* @__PURE__ */ X({
1443
+ Sider: Ca
1444
+ } = Te, Ct = /* @__PURE__ */ G({
1453
1445
  props: {
1454
- ...at,
1446
+ ...ot,
1455
1447
  ...He
1456
1448
  },
1457
1449
  inheritAttrs: !1,
@@ -1463,219 +1455,219 @@ const {
1463
1455
  collapsedEffect: r,
1464
1456
  collapsedProps: l,
1465
1457
  layoutProps: i,
1466
- selectedKeys: f,
1467
- settings: c,
1468
- openKeys: d,
1469
- menu: p,
1458
+ selectedKeys: m,
1459
+ settings: s,
1460
+ openKeys: c,
1461
+ menu: g,
1470
1462
  styles: u,
1471
- classNames: h,
1463
+ classNames: p,
1472
1464
  contentFullScreen: I
1473
- } = Z(), R = Ft(), {
1474
- token: s
1465
+ } = q(), M = Nt(), {
1466
+ token: y
1475
1467
  } = Ne(), {
1476
- breakpoint: y
1477
- } = Xe(e), b = n({
1468
+ breakpoint: f
1469
+ } = Ee(e), x = n({
1478
1470
  suffixCls: "sider",
1479
1471
  isPor: !0
1480
- }), S = q(), T = q(), L = q(), v = x(() => t.value ? !1 : r.value), M = x(() => c.value.layout === "mix" && !t.value && c.value.splitMenus), V = x(() => c.value.layout === "side" || c.value.layout === "simple"), j = x(() => t.value || i.value.isWide ? !1 : c.value.fixSiderbar), A = x(() => (c.value.layout === "mix" || i.value.isWide) && "light" || p.value.baseTheme), E = x(() => l.value?.width ? {} : {
1472
+ }), C = Q(), P = Q(), $ = Q(), b = v(() => t.value ? !1 : r.value), T = v(() => s.value.layout === "mix" && !t.value && s.value.splitMenus), Y = v(() => s.value.layout === "side" || s.value.layout === "simple"), K = v(() => t.value || i.value.isWide ? !1 : s.value.fixSiderbar), U = v(() => (s.value.layout === "mix" || i.value.isWide) && "light" || g.value.baseTheme), V = v(() => l.value?.width ? {} : {
1481
1473
  transform: `translateX(${a.value ? "-100%" : "0"})`,
1482
1474
  pointerEvents: a.value ? "none" : void 0
1483
1475
  }), {
1484
- wrapSSR: Y,
1485
- hashId: D
1486
- } = le("ProLayoutSiderMenu", [(W) => Ca(W, {
1476
+ wrapSSR: Z,
1477
+ hashId: z
1478
+ } = le("ProLayoutSiderMenu", [(A) => va(A, {
1487
1479
  siderChildren: u.value?.siderChildren
1488
- }), Vt], b), te = x(() => c.value.layout === "top" ? [] : p.value.menuData), _ = x(() => M.value ? p.value.mixSiderMenus : te.value), C = x(() => _.value.filter((W) => !W.meta?.fixed)), $ = x(() => _.value.filter((W) => W.meta?.fixed)), J = x(() => l.value?.width ? v.value ? l.value?.width : i.value.siderWidth : a.value ? 0 : i.value.siderWidth), {
1480
+ }), kt], x), R = v(() => s.value.layout === "top" ? [] : g.value.menuData), D = v(() => T.value ? g.value.mixSiderMenus : R.value), B = v(() => D.value.filter((A) => !A.meta?.fixed)), O = v(() => D.value.filter((A) => A.meta?.fixed)), ee = v(() => l.value?.width ? b.value ? l.value?.width : i.value.siderWidth : a.value ? 0 : i.value.siderWidth), {
1489
1481
  innerCollapsed: ue
1490
- } = da(x(() => l.value?.width === 0 && a.value), {
1491
- rectEl: L,
1492
- footEl: x(() => e.menuFooterRender || $.value.length > 0 ? T.value : void 0),
1482
+ } = ca(v(() => l.value?.width === 0 && a.value), {
1483
+ rectEl: $,
1484
+ footEl: v(() => e.menuFooterRender || O.value.length > 0 ? P.value : void 0),
1493
1485
  disabled: l.value?.disabledInnerCollapse ?? l.value?.width !== 0
1494
- }), De = x(() => O(a.value && `${b}-collapsed`, ue.value && `${b}-inner-collapsed`, (e.menuFooterRender || $.value.length > 0) && `${b}-has-footer`, [D.value, b, h?.value?.sider, t.value ? "shadow" : null, `${b}-${p.value.baseTheme}`, j.value ? `${b}-fixed` : null])), me = x(() => {
1495
- const W = s.value?.layout?.pageContainer;
1496
- return (W?.padding || W?.margin || "").split(" ")?.[0] || z(20);
1497
- }), ze = Be(() => c.value.layout === "simple" || !e.appsLogoComponents ? null : typeof e.appsLogoComponents == "function" ? e.appsLogoComponents?.() : e.appsLogoComponents, [() => e.appsLogoComponents]);
1498
- function Ie() {
1486
+ }), De = v(() => w(a.value && `${x}-collapsed`, ue.value && `${x}-inner-collapsed`, (e.menuFooterRender || O.value.length > 0) && `${x}-has-footer`, [z.value, x, p?.value?.sider, t.value ? "shadow" : null, `${x}-${g.value.baseTheme}`, K.value ? `${x}-fixed` : null])), me = v(() => {
1487
+ const A = y.value?.layout?.pageContainer;
1488
+ return (A?.padding || A?.margin || "").split(" ")?.[0] || W(20);
1489
+ }), Se = Oe(() => s.value.layout === "simple" || !e.appsLogoComponents ? null : typeof e.appsLogoComponents == "function" ? e.appsLogoComponents?.() : e.appsLogoComponents, [() => e.appsLogoComponents]);
1490
+ function Re() {
1499
1491
  a.value = !a.value;
1500
1492
  }
1501
- const We = Be(() => {
1493
+ const ze = Oe(() => {
1502
1494
  if (l.value?.collapsedButtonRender === !1) return null;
1503
- const W = e.collapsedButtonRender || l.value?.collapsedButtonRender, Q = e.collapsedIconRender || l.value?.collapsedIconRender, ee = o(pa, {
1504
- iconRender: Q,
1495
+ const A = e.collapsedButtonRender || l.value?.collapsedButtonRender, J = e.collapsedIconRender || l.value?.collapsedIconRender, te = o(fa, {
1496
+ iconRender: J,
1505
1497
  isMobile: t.value,
1506
- collapsed: v.value,
1507
- onClick: () => Ie()
1498
+ collapsed: b.value,
1499
+ onClick: () => Re()
1508
1500
  }, null);
1509
- return W ? W?.(!!v.value, ee) : ee;
1510
- }, [() => l.value?.collapsedButtonRender, () => t.value, () => v.value]), _e = (W) => {
1501
+ return A ? A?.(!!b.value, te) : te;
1502
+ }, [() => l.value?.collapsedButtonRender, () => t.value, () => b.value]), Ye = (A) => {
1511
1503
  if (e.onSelect) {
1512
- const Q = W.selectedKeys;
1513
- if (we(M)) {
1514
- e.onSelect([f?.value?.[0], ...Q]);
1504
+ const J = A.selectedKeys;
1505
+ if (T.value) {
1506
+ e.onSelect([m?.value?.[0], ...J]);
1515
1507
  return;
1516
1508
  }
1517
- e.onSelect(Q);
1509
+ e.onSelect(J);
1518
1510
  }
1519
- }, fe = (W, Q) => o(zt, {
1511
+ }, fe = (A, J) => o(Wt, {
1520
1512
  key: "sider-base-menu",
1521
- class: O(`${b}-menu ${D.value}`, Q?.class),
1513
+ class: w(`${x}-menu ${z.value}`, J?.class),
1522
1514
  styles: u.value,
1523
- classNames: h.value,
1524
- type: p.value?.type,
1525
- mode: v.value && !t.value ? "vertical" : "inline",
1515
+ classNames: p.value,
1516
+ type: g.value?.type,
1517
+ mode: b.value && !t.value ? "vertical" : "inline",
1526
1518
  menuRenderType: "sider",
1527
- menuProps: p.value?.menuProps,
1528
- menuData: W,
1529
- iconfontUrl: c.value.iconfontUrl,
1530
- openKeys: d.value,
1531
- selectedKeys: f.value,
1519
+ menuProps: g.value?.menuProps,
1520
+ menuData: A,
1521
+ iconfontUrl: s.value.iconfontUrl,
1522
+ openKeys: c.value,
1523
+ selectedKeys: m.value,
1532
1524
  menuTextRender: e.menuTextRender,
1533
1525
  menuItemRender: e.menuItemRender,
1534
1526
  subMenuItemRender: e.subMenuItemRender,
1535
1527
  style: {
1536
1528
  width: "100%",
1537
1529
  minHeight: ue.value ? "unset" : "",
1538
- backgroundColor: ue.value ? s.value.layout?.sider?.colorMenuBackground : "",
1539
- ...Q?.style || {}
1530
+ backgroundColor: ue.value ? y.value.layout?.sider?.colorMenuBackground : "",
1531
+ ...J?.style || {}
1540
1532
  },
1541
- onClick: p.value?.menuProps?.onClick,
1533
+ onClick: g.value?.menuProps?.onClick,
1542
1534
  onOpenKeys: (ne) => e.onOpenKeys && e.onOpenKeys?.(ne),
1543
- onSelect: _e
1535
+ onSelect: Ye
1544
1536
  }, null);
1545
1537
  return () => {
1546
- let W;
1547
- const Q = V.value && c.value.layout !== "simple" && o(lt, oe({
1548
- ref: S,
1549
- title: c.value.title,
1550
- hashId: D.value,
1551
- layout: c.value.layout,
1538
+ let A;
1539
+ const J = Y.value && s.value.layout !== "simple" && o(it, oe({
1540
+ ref: C,
1541
+ title: s.value.title,
1542
+ hashId: z.value,
1543
+ layout: s.value.layout,
1552
1544
  style: a.value && l.value.width === 0 ? {
1553
1545
  opacity: 0
1554
1546
  } : void 0,
1555
- baseClassName: b
1556
- }, Fe(e, Object.keys(Ye))), {
1557
- default: () => [ze.value]
1558
- }), ee = e.menuHeaderRender && e.menuHeaderRender?.(e), ne = e.menuLinksRender, pe = e.siderActionsRender;
1559
- return M.value && we(p.value.mixSiderMenus).length === 0 && e.suppressSiderWhenMenuEmpty || te.value.length === 0 && e.suppressSiderWhenMenuEmpty ? null : Y(o(et, {
1547
+ baseClassName: x
1548
+ }, Fe(e, Object.keys(Ge))), {
1549
+ default: () => [Se.value]
1550
+ }), te = e.menuHeaderRender && e.menuHeaderRender?.(e), ne = e.menuLinksRender, pe = e.siderActionsRender;
1551
+ return T.value && g.value.mixSiderMenus.length === 0 && e.suppressSiderWhenMenuEmpty || R.value.length === 0 && e.suppressSiderWhenMenuEmpty ? null : Z(o(tt, {
1560
1552
  theme: {
1561
1553
  components: {
1562
1554
  Menu: {
1563
- itemMarginInline: s.value.layout?.sider?.menuItemMarginInline,
1564
- colorItemBg: s.value.layout?.sider?.colorMenuBackground || "transparent",
1565
- colorSubItemBg: s.value.layout?.sider?.colorMenuBackground || "transparent",
1566
- radiusItem: s.value.layout?.sider?.borderRadius || s.value.borderRadius,
1567
- colorItemBgSelected: s.value.layout?.sider?.colorBgMenuItemSelected || s.value?.colorBgTextHover,
1568
- colorItemBgHover: s.value.layout?.sider?.colorBgMenuItemHover || s.value?.colorBgTextHover,
1569
- colorItemBgActive: s.value.layout?.sider?.colorBgMenuItemActive || s.value?.colorBgTextActive,
1570
- colorItemText: s.value.layout?.sider?.colorTextMenu || s.value?.colorTextSecondary,
1571
- colorItemTextHover: s.value.layout?.sider?.colorTextMenuItemHover || "rgba(0, 0, 0, 0.85)",
1555
+ itemMarginInline: y.value.layout?.sider?.menuItemMarginInline,
1556
+ colorItemBg: y.value.layout?.sider?.colorMenuBackground || "transparent",
1557
+ colorSubItemBg: y.value.layout?.sider?.colorMenuBackground || "transparent",
1558
+ radiusItem: y.value.layout?.sider?.borderRadius || y.value.borderRadius,
1559
+ colorItemBgSelected: y.value.layout?.sider?.colorBgMenuItemSelected || y.value?.colorBgTextHover,
1560
+ colorItemBgHover: y.value.layout?.sider?.colorBgMenuItemHover || y.value?.colorBgTextHover,
1561
+ colorItemBgActive: y.value.layout?.sider?.colorBgMenuItemActive || y.value?.colorBgTextActive,
1562
+ colorItemText: y.value.layout?.sider?.colorTextMenu || y.value?.colorTextSecondary,
1563
+ colorItemTextHover: y.value.layout?.sider?.colorTextMenuItemHover || "rgba(0, 0, 0, 0.85)",
1572
1564
  // 悬浮态
1573
- colorItemTextSelected: s.value.layout?.sider?.colorTextMenuSelected || "rgba(0, 0, 0, 1)"
1565
+ colorItemTextSelected: y.value.layout?.sider?.colorTextMenuSelected || "rgba(0, 0, 0, 1)"
1574
1566
  }
1575
1567
  }
1576
1568
  }
1577
1569
  }, {
1578
- default: () => [j.value && o("div", {
1570
+ default: () => [K.value && o("div", {
1579
1571
  style: {
1580
- width: `${z(J.value)}`,
1572
+ width: `${W(ee.value)}`,
1581
1573
  overflow: "hidden",
1582
- flex: `0 0 ${z(J.value)}`,
1583
- maxWidth: `${z(J.value)}`,
1584
- minWidth: `${z(J.value)}`,
1574
+ flex: `0 0 ${W(ee.value)}`,
1575
+ maxWidth: `${W(ee.value)}`,
1576
+ minWidth: `${W(ee.value)}`,
1585
1577
  transition: "all 0.2s ease 0s",
1586
- ...E.value
1578
+ ...V.value
1587
1579
  }
1588
- }, null), o(xa, {
1580
+ }, null), o(Ca, {
1589
1581
  collapsible: !0,
1590
1582
  trigger: null,
1591
1583
  class: De.value,
1592
1584
  style: {
1593
- zIndex: j.value ? 101 : void 0,
1594
- paddingTop: j.value && c.value.fixedHeader && c.value.layout === "mix" ? i.value.headerHeight : 0,
1595
- top: c.value.layout === "wide" ? `calc(${i.value.headerHeight} + ${me.value})` : void 0,
1596
- height: c.value.layout === "wide" ? `calc(100vh - ${i.value.headerHeight} - (${me.value}) * 2)` : void 0,
1585
+ zIndex: K.value ? 101 : void 0,
1586
+ paddingTop: K.value && s.value.fixedHeader && s.value.layout === "mix" ? i.value.headerHeight : 0,
1587
+ top: s.value.layout === "wide" ? `calc(${i.value.headerHeight} + ${me.value})` : void 0,
1588
+ height: s.value.layout === "wide" ? `calc(100vh - ${i.value.headerHeight} - (${me.value}) * 2)` : void 0,
1597
1589
  ...u.value?.sider || {},
1598
- ...E.value
1590
+ ...V.value
1599
1591
  },
1600
- theme: A.value,
1601
- breakpoint: y.value || void 0,
1602
- collapsed: v.value,
1603
- width: J.value,
1592
+ theme: U.value,
1593
+ breakpoint: f.value || void 0,
1594
+ collapsed: b.value,
1595
+ width: ee.value,
1604
1596
  collapsedWidth: l.value?.width
1605
1597
  }, {
1606
- default: () => [p.value.loading && o("div", {
1607
- class: [`${b}-loading`, D.value]
1608
- }, [o(Bt, {
1609
- spinning: p.value.loading,
1610
- indicator: R?.indicator?.value
1611
- }, null)]), Q || null, o("div", {
1612
- ref: L,
1613
- class: `${b}-content`,
1598
+ default: () => [g.value.loading && o("div", {
1599
+ class: [`${x}-loading`, z.value]
1600
+ }, [o(Pt, {
1601
+ spinning: g.value.loading,
1602
+ indicator: M?.indicator?.value
1603
+ }, null)]), J || null, o("div", {
1604
+ ref: $,
1605
+ class: `${x}-content`,
1614
1606
  style: {
1615
1607
  flex: "1 1 0%",
1616
1608
  overflow: "hidden",
1617
- maxHeight: a.value && l.value?.width === 0 ? `calc(100% - ${S.value?.getHeight?.() * 2}px)` : ""
1609
+ maxHeight: a.value && l.value?.width === 0 ? `calc(100% - ${C.value?.getHeight?.() * 2}px)` : ""
1618
1610
  }
1619
- }, [Rn(e.menuHeaderRender) && o("div", {
1620
- class: O(h.value?.siderHeader, [D.value, `${b}-header`, !Q && `${b}-header-only`]),
1611
+ }, [Sn(e.menuHeaderRender) && o("div", {
1612
+ class: w(p.value?.siderHeader, [z.value, `${x}-header`, !J && `${x}-header-only`]),
1621
1613
  style: u.value?.siderHeader
1622
- }, [ee]), o("div", {
1614
+ }, [te]), o("div", {
1623
1615
  style: {
1624
1616
  flex: "1 1 0%",
1625
1617
  overflow: "hidden auto"
1626
1618
  },
1627
- class: O(`${b}-menu-container`)
1619
+ class: w(`${x}-menu-container`)
1628
1620
  }, [e.menuContentRender && e.menuContentRender?.({
1629
1621
  props: e,
1630
- defaultDom: fe(C.value, {
1622
+ defaultDom: fe(B.value, {
1631
1623
  style: u.value?.menu,
1632
- class: h.value?.menu
1624
+ class: p.value?.menu
1633
1625
  })
1634
- }) || fe(C.value, {
1626
+ }) || fe(B.value, {
1635
1627
  style: u.value?.menu,
1636
- class: h.value?.menu
1637
- })])]), c.value.layout !== "wide" && o(G, null, [ne && $n(ne) && ne.length > 0 && o("div", {
1638
- class: `${b}-links ${D.value}`
1628
+ class: p.value?.menu
1629
+ })])]), s.value.layout !== "wide" && o(_, null, [ne && Rn(ne) && ne.length > 0 && o("div", {
1630
+ class: `${x}-links ${z.value}`
1639
1631
  }, [o(be, {
1640
- theme: A.value,
1632
+ theme: U.value,
1641
1633
  inlineIndent: 16,
1642
- class: `${b}-link-menu ${D.value}`,
1634
+ class: `${x}-link-menu ${z.value}`,
1643
1635
  selectedKeys: [],
1644
1636
  openKeys: [],
1645
1637
  mode: "inline"
1646
- }, bt(W = (ne || []).map((Se, je) => o(be.Item, {
1647
- class: `${b}-link ${D.value}`,
1648
- key: je
1649
- }, bt(Se) ? Se : {
1650
- default: () => [Se]
1651
- }))) ? W : {
1652
- default: () => [W]
1638
+ }, vt(A = (ne || []).map(($e, We) => o(be.Item, {
1639
+ class: `${x}-link ${z.value}`,
1640
+ key: We
1641
+ }, vt($e) ? $e : {
1642
+ default: () => [$e]
1643
+ }))) ? A : {
1644
+ default: () => [A]
1653
1645
  })]), t.value ? null : pe && o("div", {
1654
- class: O(`${b}-actions`, D.value)
1655
- }, [pe]), l.value?.position === "sider" && !t.value && l.value.collapsedButtonRender !== !1 && o(G, null, [o("div", {
1656
- class: O(`${b}-collapsed-button`, v.value && "collapsed", D.value)
1646
+ class: w(`${x}-actions`, z.value)
1647
+ }, [pe]), l.value?.position === "sider" && !t.value && l.value.collapsedButtonRender !== !1 && o(_, null, [o("div", {
1648
+ class: w(`${x}-collapsed-button`, b.value && "collapsed", z.value)
1657
1649
  }, [o("span", {
1658
- onClick: () => Ie()
1659
- }, [kt(e.collapsedButtonRender || l.value?.collapsedButtonRender, v.value, ot({
1660
- collapsed: v.value,
1650
+ onClick: () => Re()
1651
+ }, [Kt(e.collapsedButtonRender || l.value?.collapsedButtonRender, b.value, lt({
1652
+ collapsed: b.value,
1661
1653
  iconRender: e.collapsedIconRender || l.value?.collapsedIconRender
1662
- }))])])])]), (e.menuFooterRender || $.value.length > 0) && o("div", {
1663
- ref: T,
1664
- class: O(`${b}-footer ${D.value}`, h.value?.siderFooter),
1654
+ }))])])])]), (e.menuFooterRender || O.value.length > 0) && o("div", {
1655
+ ref: P,
1656
+ class: w(`${x}-footer ${z.value}`, p.value?.siderFooter),
1665
1657
  style: u.value?.siderFooter
1666
- }, [fe($.value, {
1658
+ }, [fe(O.value, {
1667
1659
  style: u.value?.footerMenu,
1668
- class: h.value?.footerMenu
1669
- }), e.menuFooterRender && e.menuFooterRender?.(e)]), I.value || c.value.layout === "wide" || t.value ? null : l.value?.position === "fixed" && We.value]
1660
+ class: p.value?.footerMenu
1661
+ }), e.menuFooterRender && e.menuFooterRender?.(e)]), I.value || s.value.layout === "wide" || t.value ? null : l.value?.position === "fixed" && ze.value]
1670
1662
  })]
1671
1663
  }));
1672
1664
  };
1673
1665
  }
1674
- }), Ia = /* @__PURE__ */ X({
1666
+ }), xa = /* @__PURE__ */ G({
1675
1667
  name: "SiderMenuWrapper",
1676
1668
  inheritAttrs: !1,
1677
1669
  props: {
1678
- ...at,
1670
+ ...ot,
1679
1671
  ...He,
1680
1672
  isMobile: Boolean,
1681
1673
  siderWidth: nt.siderWidth
@@ -1683,10 +1675,10 @@ const {
1683
1675
  setup(e) {
1684
1676
  const {
1685
1677
  collapsed: n
1686
- } = Z();
1678
+ } = q();
1687
1679
  return () => {
1688
- const t = de(e, ["siderWidth", "isMobile"]);
1689
- return o(G, null, [e.isMobile ? o(Dn, {
1680
+ const t = ve(e, ["siderWidth", "isMobile"]);
1681
+ return o(_, null, [e.isMobile ? o(Ln, {
1690
1682
  maskClosable: !0,
1691
1683
  open: !n.value,
1692
1684
  closable: !1,
@@ -1697,7 +1689,7 @@ const {
1697
1689
  },
1698
1690
  getContainer: !1,
1699
1691
  onClose: () => n.value = !0,
1700
- width: Zn(e.siderWidth),
1692
+ width: _n(e.siderWidth),
1701
1693
  bodyStyle: {
1702
1694
  height: "100vh",
1703
1695
  padding: 0,
@@ -1705,25 +1697,25 @@ const {
1705
1697
  flexDirection: "row"
1706
1698
  }
1707
1699
  }, {
1708
- default: () => [o(vt, t, null)]
1709
- }) : o(vt, t, null)]);
1700
+ default: () => [o(Ct, t, null)]
1701
+ }) : o(Ct, t, null)]);
1710
1702
  };
1711
1703
  }
1712
1704
  });
1713
- function Sa(e = 0) {
1714
- const { token: n } = Ne(), { settings: t } = Z();
1715
- return x(() => {
1716
- const r = n.value?.layout?.header?.heightLayoutHeader ?? t.value?.headerHeight ?? 48, l = n.value?.layout?.pageContainer?.margin || "", i = n.value?.layout?.pageContainer?.padding || "", f = l?.split(" ")?.[0], c = i?.split(" ")?.[0], d = f ? `(${f} * 2)` : 0, p = c ? `(${c} * 2)` : 0;
1705
+ function Ia(e = 0) {
1706
+ const { token: n } = Ne(), { settings: t } = q();
1707
+ return v(() => {
1708
+ const r = n.value?.layout?.header?.heightLayoutHeader ?? t.value?.headerHeight ?? 48, l = n.value?.layout?.pageContainer?.margin || "", i = n.value?.layout?.pageContainer?.padding || "", m = l?.split(" ")?.[0], s = i?.split(" ")?.[0], c = m ? `(${m} * 2)` : 0, g = s ? `(${s} * 2)` : 0;
1717
1709
  return `calc(100vh - ${[
1718
1710
  r,
1719
1711
  t.value?.showTabsBar ? 40 : 0,
1720
- d,
1721
- p,
1712
+ c,
1713
+ g,
1722
1714
  e
1723
- ].filter(Boolean).map((h) => z(h)).join(" - ")})`;
1715
+ ].filter(Boolean).map((p) => W(p)).join(" - ")})`;
1724
1716
  });
1725
1717
  }
1726
- const { provideContext: Ra, useInjectContext: it } = tt("pro-layout-menu"), $a = (e) => ({
1718
+ const { provideContext: Sa, useInjectContext: rt } = Xe("pro-layout-menu"), Ra = (e) => ({
1727
1719
  [e.componentCls]: {
1728
1720
  marginBlock: 0,
1729
1721
  marginBlockStart: 48,
@@ -1748,14 +1740,14 @@ const { provideContext: Ra, useInjectContext: it } = tt("pro-layout-menu"), $a =
1748
1740
  },
1749
1741
  "&-copyright": { fontSize: "14px", color: e.colorText }
1750
1742
  }
1751
- }), Gt = [{
1743
+ }), Xt = [{
1752
1744
  key: "Ant Design Pro",
1753
1745
  title: "Ant Design Pro",
1754
1746
  href: "https://pro.ant.design",
1755
1747
  blankTarget: !0
1756
1748
  }, {
1757
1749
  key: "github",
1758
- title: o(cn, null, null),
1750
+ title: o(un, null, null),
1759
1751
  href: "https://github.com/gx12358/vue3-antd-admin",
1760
1752
  blankTarget: !0
1761
1753
  }, {
@@ -1763,12 +1755,12 @@ const { provideContext: Ra, useInjectContext: it } = tt("pro-layout-menu"), $a =
1763
1755
  title: "Ant Design Vue",
1764
1756
  href: "https://next.antdv.com/components/overview-cn/",
1765
1757
  blankTarget: !0
1766
- }], wa = /* @__PURE__ */ X({
1758
+ }], $a = /* @__PURE__ */ G({
1767
1759
  name: "GlobalFooter",
1768
1760
  props: {
1769
1761
  links: {
1770
1762
  type: [Array, Boolean],
1771
- default: Gt
1763
+ default: Xt
1772
1764
  },
1773
1765
  copyright: {
1774
1766
  type: [Object, Function, Boolean, String]
@@ -1778,20 +1770,20 @@ const { provideContext: Ra, useInjectContext: it } = tt("pro-layout-menu"), $a =
1778
1770
  setup(e, {
1779
1771
  slots: n
1780
1772
  }) {
1781
- const t = Z(), r = (t?.getPrefixCls || ae)({
1773
+ const t = q(), r = (t?.getPrefixCls || ae)({
1782
1774
  suffixCls: "global-footer",
1783
1775
  isPor: !0
1784
1776
  }), {
1785
1777
  wrapSSR: l,
1786
1778
  hashId: i
1787
- } = le("ProLayoutFooter", [$a], r);
1779
+ } = le("ProLayoutFooter", [Ra], r);
1788
1780
  return () => {
1789
- const f = ie({
1781
+ const m = ie({
1790
1782
  slots: n,
1791
1783
  props: e,
1792
1784
  key: "copyright"
1793
1785
  });
1794
- return l(o(zn, {
1786
+ return l(o(Hn, {
1795
1787
  style: {
1796
1788
  padding: 0,
1797
1789
  background: "none",
@@ -1803,19 +1795,19 @@ const { provideContext: Ra, useInjectContext: it } = tt("pro-layout-menu"), $a =
1803
1795
  class: [r, i.value]
1804
1796
  }, [e.links && o("div", {
1805
1797
  class: `${r}-list ${i.value}`
1806
- }, [e.links.map((c) => o("a", {
1798
+ }, [e.links.map((s) => o("a", {
1807
1799
  class: `${r}-list-link ${i.value}`.trim(),
1808
- key: c.key,
1809
- title: c.key,
1810
- target: c.blankTarget ? "_blank" : "_self",
1811
- href: c.href
1812
- }, [c.title]))]), f !== !1 && o("div", {
1800
+ key: s.key,
1801
+ title: s.key,
1802
+ target: s.blankTarget ? "_blank" : "_self",
1803
+ href: s.href
1804
+ }, [s.title]))]), m !== !1 && o("div", {
1813
1805
  class: `${r}-copyright ${i.value}`
1814
- }, [f])])]
1806
+ }, [m])])]
1815
1807
  }));
1816
1808
  };
1817
1809
  }
1818
- }), Ma = {
1810
+ }), wa = {
1819
1811
  usePageCard: {
1820
1812
  type: Boolean,
1821
1813
  default: () => {
@@ -1895,69 +1887,69 @@ const { provideContext: Ra, useInjectContext: it } = tt("pro-layout-menu"), $a =
1895
1887
  default: () => {
1896
1888
  }
1897
1889
  },
1898
- ...Ma
1899
- }, Oa = (e) => ({
1890
+ ...wa
1891
+ }, Ma = (e) => ({
1900
1892
  [e.componentCls]: {
1901
1893
  [`&${e.componentCls}-header`]: {
1902
1894
  marginInline: e.margin
1903
1895
  }
1904
1896
  }
1905
- }), Yt = /* @__PURE__ */ X({
1897
+ }), Vt = /* @__PURE__ */ G({
1906
1898
  name: "BreadCrumb",
1907
1899
  props: {
1908
1900
  breadcrumb: ye.breadcrumbRender
1909
1901
  },
1910
1902
  setup(e) {
1911
- const n = Z(), a = (n?.getPrefixCls || ae)({
1903
+ const n = q(), a = (n?.getPrefixCls || ae)({
1912
1904
  isPor: !0,
1913
1905
  suffixCls: "breadCrumb"
1914
1906
  }), {
1915
1907
  wrapSSR: r,
1916
1908
  hashId: l
1917
- } = le("ProBreadCrumb", [Oa], a), i = x(() => {
1918
- const f = n?.breadcrumb?.value || {}, c = f.showHome ?? !0, d = Ue(f.routes || []);
1919
- d.length && c && d.unshift({
1909
+ } = le("ProBreadCrumb", [Ma], a), i = v(() => {
1910
+ const m = n?.breadcrumb?.value || {}, s = m.showHome ?? !0, c = qe(m.routes || []);
1911
+ c.length && s && c.unshift({
1920
1912
  path: "/",
1921
1913
  name: "首页",
1922
1914
  breadcrumbName: "首页"
1923
1915
  });
1924
- function p(h) {
1916
+ function g(p) {
1925
1917
  return {
1926
- ...h,
1927
- link: h.path
1918
+ ...p,
1919
+ link: p.path
1928
1920
  };
1929
1921
  }
1930
- const u = d.map((h, I) => ({
1931
- ...h,
1932
- path: h.name,
1933
- children: h.children ? h.children?.map((R) => p(R)) : [],
1934
- isFirst: c && I === 0,
1935
- isLast: h.path && I === d.length - 1,
1936
- link: h.path
1922
+ const u = c.map((p, I) => ({
1923
+ ...p,
1924
+ path: p.name,
1925
+ children: p.children ? p.children?.map((M) => g(M)) : [],
1926
+ isFirst: s && I === 0,
1927
+ isLast: p.path && I === c.length - 1,
1928
+ link: p.path
1937
1929
  }));
1938
1930
  return {
1939
- ...f,
1931
+ ...m,
1940
1932
  routes: u,
1941
- itemRender: f?.itemRender || (({
1942
- route: h
1943
- }) => h.isFirst ? o(ft, {
1944
- to: h.link
1933
+ itemRender: m?.itemRender || (({
1934
+ route: p
1935
+ }) => p.isFirst ? o(pt, {
1936
+ to: p.link
1945
1937
  }, {
1946
- default: () => [o(dn, null, null)]
1947
- }) : h.isLast ? h.breadcrumbName : o(ft, {
1948
- to: h.link
1938
+ default: () => [o(cn, null, null)]
1939
+ }) : p.isLast ? p.breadcrumbName : o(pt, {
1940
+ to: p.link
1949
1941
  }, {
1950
- default: () => [h.breadcrumbName]
1942
+ default: () => [p.breadcrumbName]
1951
1943
  }))
1952
1944
  };
1953
1945
  });
1954
1946
  return () => r(o("div", {
1955
- class: O(a, l.value, n?.breadcrumb?.value?.position === "header" && `${a}-header`)
1956
- }, [e.breadcrumb === !1 ? o("span", null, null) : e.breadcrumb ? e.breadcrumb?.(i.value) : o(Wn, i.value, null)]));
1947
+ class: w(a, l.value, n?.breadcrumb?.value?.position === "header" && `${a}-header`)
1948
+ }, [e.breadcrumb === !1 ? o("span", null, null) : e.breadcrumb ? e.breadcrumb?.(i.value) : o(Dn, i.value, null)]));
1957
1949
  }
1958
- }), rt = {
1959
- ...Ye,
1950
+ }), st = {
1960
1951
  ...Ge,
1952
+ ...Ve,
1961
1953
  autoHideHeader: Boolean,
1962
1954
  headerMainWidth: {
1963
1955
  type: [Number, String],
@@ -1990,7 +1982,7 @@ const { provideContext: Ra, useInjectContext: it } = tt("pro-layout-menu"), $a =
1990
1982
  }
1991
1983
  }
1992
1984
  }, Ba = (e) => {
1993
- const { layout: n, theme: t } = xe(e), a = e.lineWidth, r = e?.layout?.header;
1985
+ const { layout: n, theme: t } = Ie(e), a = e.lineWidth, r = e?.layout?.header;
1994
1986
  return {
1995
1987
  [`${e.proComponentsCls}-header`]: {
1996
1988
  "&-light": {
@@ -2030,7 +2022,7 @@ const { provideContext: Ra, useInjectContext: it } = tt("pro-layout-menu"), $a =
2030
2022
  marginInlineEnd: 16
2031
2023
  },
2032
2024
  [`${e.componentCls}-collapsed-button`]: {
2033
- ...Ee(e)
2025
+ ...Ue(e)
2034
2026
  }
2035
2027
  }
2036
2028
  },
@@ -2040,7 +2032,7 @@ const { provideContext: Ra, useInjectContext: it } = tt("pro-layout-menu"), $a =
2040
2032
  alignItems: "center",
2041
2033
  paddingInline: 6,
2042
2034
  paddingBlock: 6,
2043
- lineHeight: `calc(${z(e.layout?.header?.heightLayoutHeader)} - ${z(12)})`,
2035
+ lineHeight: `calc(${W(e.layout?.header?.heightLayoutHeader)} - ${W(12)})`,
2044
2036
  [`${e.antCls}-menu-${t}${e.antCls}-menu-horizontal`]: {
2045
2037
  width: "100%",
2046
2038
  color: r?.colorTextMenu,
@@ -2116,56 +2108,53 @@ const { provideContext: Ra, useInjectContext: it } = tt("pro-layout-menu"), $a =
2116
2108
  }
2117
2109
  }
2118
2110
  };
2119
- }, Pa = ["mix", "top", "wide"], Ta = /* @__PURE__ */ X({
2111
+ }, Oa = ["mix", "top", "wide"], Pa = /* @__PURE__ */ G({
2120
2112
  name: "DefaultHeader",
2121
2113
  props: {
2122
- ...rt,
2114
+ ...st,
2123
2115
  ...He
2124
2116
  },
2125
2117
  inheritAttrs: !1,
2126
2118
  setup(e) {
2127
- const n = Le(), t = it(), {
2119
+ const n = Le(), t = rt(), {
2128
2120
  token: a
2129
2121
  } = Ne(), {
2130
2122
  styles: r,
2131
2123
  classNames: l,
2132
2124
  getPrefixCls: i,
2133
- collapsed: f,
2134
- collapsedProps: c,
2135
- settings: d,
2136
- isMobile: p,
2125
+ collapsed: m,
2126
+ collapsedProps: s,
2127
+ settings: c,
2128
+ isMobile: g,
2137
2129
  openKeys: u,
2138
- selectedKeys: h,
2130
+ selectedKeys: p,
2139
2131
  menu: I,
2140
- breadcrumb: R,
2141
- breadcrumbRender: s
2142
- } = Z(), y = i({
2132
+ breadcrumb: M,
2133
+ breadcrumbRender: y
2134
+ } = q(), f = i({
2143
2135
  suffixCls: "global-header",
2144
2136
  isPor: !0
2145
2137
  }), {
2146
- wrapSSR: b,
2147
- hashId: S
2148
- } = le("ProDefaultHeader", [Ba, Vt], y), T = x(() => d.value.layout === "side" || d.value.layout === "simple"), L = x(() => ({
2149
- [`${S.value}`]: !0,
2150
- [`${y}`]: !0,
2151
- [`${y}-${d.value.layout}`]: !0
2152
- })), v = x(() => d.value.splitMenus && d.value.layout === "mix" ? ia(I.value.menuData) : d.value.layout === "top" ? I.value.menuData : []), M = (A, E, Y) => {
2153
- const D = n?.currentRoute?.value, te = d.value.layout === "mix", _ = t?.matchedMenu?.value || Ut({
2154
- menuData: v.value,
2138
+ wrapSSR: x,
2139
+ hashId: C
2140
+ } = le("ProDefaultHeader", [Ba, kt], f), P = v(() => c.value.layout === "side" || c.value.layout === "simple"), $ = v(() => ({
2141
+ [`${C.value}`]: !0,
2142
+ [`${f}`]: !0,
2143
+ [`${f}-${c.value.layout}`]: !0
2144
+ })), b = v(() => c.value.splitMenus && c.value.layout === "mix" ? oa(Mt(I.value.menuData)) : c.value.layout === "top" ? I.value.menuData : []), T = (U, V, Z) => {
2145
+ const z = n?.currentRoute?.value, R = c.value.layout === "mix", D = t?.matchedMenu?.value || At({
2146
+ menuMap: t.menuMap.value,
2155
2147
  flatMenus: I.value.flatMenus
2156
- }, {
2157
- path: jt(D),
2158
- name: D?.name
2159
- });
2160
- if (e.onSelect && A === "select") {
2161
- const C = v.value.find(($) => $.name === Y)?.redirect;
2162
- e.onSelect(te && C ? _.map(($) => $.name) : E);
2148
+ }, z?.name);
2149
+ if (e.onSelect && U === "select") {
2150
+ const B = b.value.find((O) => O.name === Z)?.redirect;
2151
+ e.onSelect(R && B ? D.map((O) => O.name) : V);
2163
2152
  }
2164
- e.onOpenKeys && A === "openKeys" && e.onOpenKeys(te ? _.filter((C) => C.name !== D?.name).map((C) => C.name) : E);
2165
- }, V = () => {
2166
- f.value = !f.value;
2167
- }, j = () => {
2168
- const A = e.headerContentRender !== !1 && typeof e.headerContentRender == "function" ? o("div", {
2153
+ e.onOpenKeys && U === "openKeys" && e.onOpenKeys(R ? D.filter((B) => B.name !== z?.name).map((B) => B.name) : V);
2154
+ }, Y = () => {
2155
+ m.value = !m.value;
2156
+ }, K = () => {
2157
+ const U = e.headerContentRender !== !1 && typeof e.headerContentRender == "function" ? o("div", {
2169
2158
  style: {
2170
2159
  flex: 1
2171
2160
  }
@@ -2173,8 +2162,8 @@ const { provideContext: Ra, useInjectContext: it } = tt("pro-layout-menu"), $a =
2173
2162
  style: {
2174
2163
  flex: 1
2175
2164
  },
2176
- class: [`${y}-menu`, S.value]
2177
- }, [v.value?.length > 0 && o(et, {
2165
+ class: [`${f}-menu`, C.value]
2166
+ }, [b.value?.length > 0 && o(tt, {
2178
2167
  theme: {
2179
2168
  components: {
2180
2169
  Layout: {
@@ -2196,9 +2185,9 @@ const { provideContext: Ra, useInjectContext: it } = tt("pro-layout-menu"), $a =
2196
2185
  }
2197
2186
  }
2198
2187
  }, {
2199
- default: () => [o(zt, {
2188
+ default: () => [o(Wt, {
2200
2189
  key: "header-base-menu",
2201
- class: O(`${y}-menu ${S.value}`, l.value?.menu),
2190
+ class: w(`${f}-menu ${C.value}`, l.value?.menu),
2202
2191
  styles: r.value,
2203
2192
  classNames: l.value,
2204
2193
  type: I.value?.type,
@@ -2206,55 +2195,55 @@ const { provideContext: Ra, useInjectContext: it } = tt("pro-layout-menu"), $a =
2206
2195
  menuRenderType: "header",
2207
2196
  style: r.value?.menu,
2208
2197
  menuProps: I.value?.menuProps,
2209
- menuData: v.value,
2210
- iconfontUrl: d.value?.iconfontUrl,
2198
+ menuData: b.value,
2199
+ iconfontUrl: c.value?.iconfontUrl,
2211
2200
  openKeys: u.value,
2212
- selectedKeys: h.value,
2201
+ selectedKeys: p.value,
2213
2202
  menuTextRender: e.menuTextRender,
2214
2203
  menuItemRender: e.menuItemRender,
2215
2204
  subMenuItemRender: e.subMenuItemRender,
2216
2205
  onClick: I.value?.menuProps?.onClick,
2217
- onSelect: (E) => M("select", E.selectedKeys, E.key),
2218
- onOpenKeys: (E) => M("openKeys", E)
2206
+ onSelect: (V) => T("select", V.selectedKeys, V.key),
2207
+ onOpenKeys: (V) => T("openKeys", V)
2219
2208
  }, null)]
2220
2209
  })]);
2221
- return o(G, null, [A, d.value.layout !== "simple" && (e.rightContentRender && typeof e.rightContentRender == "function" ? e.rightContentRender(e) : o(G, null, null))]);
2210
+ return o(_, null, [U, c.value.layout !== "simple" && (e.rightContentRender && typeof e.rightContentRender == "function" ? e.rightContentRender(e) : o(_, null, null))]);
2222
2211
  };
2223
2212
  return () => {
2224
- const A = kt(e.collapsedButtonRender || c.value?.collapsedButtonRender, f.value, ot({
2225
- collapsed: f.value,
2226
- iconRender: e.collapsedIconRender || c.value?.collapsedIconRender
2213
+ const U = Kt(e.collapsedButtonRender || s.value?.collapsedButtonRender, m.value, lt({
2214
+ collapsed: m.value,
2215
+ iconRender: e.collapsedIconRender || s.value?.collapsedIconRender
2227
2216
  }));
2228
- return b(o("div", {
2229
- class: L.value
2230
- }, [p.value ? o(G, null, [ha(e.logoRender, ga(O([`${y}-logo`, p.value && `${y}-logo-mobile`, S.value]), e)), c.value?.collapsedButtonRender !== !1 && o("span", {
2231
- class: `${y}-collapsed-button ${S.value}`,
2232
- onClick: V
2233
- }, [A]), j()]) : o("div", {
2234
- class: `${y}-main ${S.value}`,
2217
+ return x(o("div", {
2218
+ class: $.value
2219
+ }, [g.value ? o(_, null, [ga(e.logoRender, pa(w([`${f}-logo`, g.value && `${f}-logo-mobile`, C.value]), e)), s.value?.collapsedButtonRender !== !1 && o("span", {
2220
+ class: `${f}-collapsed-button ${C.value}`,
2221
+ onClick: Y
2222
+ }, [U]), K()]) : o("div", {
2223
+ class: `${f}-main ${C.value}`,
2235
2224
  style: {
2236
- width: e.headerMainWidth || e.headerMainWidth === 0 ? z(e.headerMainWidth) : d.value.layout === "wide" ? se(d.value.wideWidth) : void 0
2225
+ width: e.headerMainWidth || e.headerMainWidth === 0 ? W(e.headerMainWidth) : c.value.layout === "wide" ? se(c.value.wideWidth) : void 0
2237
2226
  }
2238
2227
  }, [o("div", {
2239
- class: `${y}-main-left ${S.value}`
2240
- }, [c.value?.position === "header" && c.value?.collapsedButtonRender !== !1 && T.value && (d.value.layout !== "mix" ? I.value.menuData : I.value.mixSiderMenus).length > 0 && o("div", {
2241
- class: `${y}-collapsed-button ${S.value}`,
2242
- onClick: V
2243
- }, [A]), Pa.includes(d.value.layout) && o(G, null, [d.value.layout !== "wide" && e.appsLogoComponents && o(G, null, [typeof e.appsLogoComponents == "function" ? e.appsLogoComponents?.() : e.appsLogoComponents]), o(lt, oe({
2244
- hashId: S.value,
2245
- baseClassName: y
2228
+ class: `${f}-main-left ${C.value}`
2229
+ }, [s.value?.position === "header" && s.value?.collapsedButtonRender !== !1 && P.value && (c.value.layout !== "mix" ? I.value.menuData : I.value.mixSiderMenus).length > 0 && o("div", {
2230
+ class: `${f}-collapsed-button ${C.value}`,
2231
+ onClick: Y
2232
+ }, [U]), Oa.includes(c.value.layout) && o(_, null, [c.value.layout !== "wide" && e.appsLogoComponents && o(_, null, [typeof e.appsLogoComponents == "function" ? e.appsLogoComponents?.() : e.appsLogoComponents]), o(it, oe({
2233
+ hashId: C.value,
2234
+ baseClassName: f
2246
2235
  }, e, {
2247
- title: d.value.title
2248
- }), null)]), R.value?.position === "header" && R.value?.visible && o(Yt, {
2249
- breadcrumb: s.value
2250
- }, null)]), j()])]));
2236
+ title: c.value.title
2237
+ }), null)]), M.value?.position === "header" && M.value?.visible && o(Vt, {
2238
+ breadcrumb: y.value
2239
+ }, null)]), K()])]));
2251
2240
  };
2252
2241
  }
2253
- }), Fa = (e) => ({
2242
+ }), Ta = (e) => ({
2254
2243
  [`${e.proComponentsCls}-basic-layout`]: {
2255
2244
  [`${e.antCls}-layout-header${e.componentCls}`]: {
2256
- height: z(e.layout?.header?.heightLayoutHeader || 56),
2257
- lineHeight: z(e.layout?.header?.heightLayoutHeader || 56),
2245
+ height: W(e.layout?.header?.heightLayoutHeader || 56),
2246
+ lineHeight: W(e.layout?.header?.heightLayoutHeader || 56),
2258
2247
  // hitu 用了这个属性,不能删除哦 @南取
2259
2248
  zIndex: 19,
2260
2249
  width: "100%",
@@ -2295,16 +2284,16 @@ const { provideContext: Ra, useInjectContext: it } = tt("pro-layout-menu"), $a =
2295
2284
  }
2296
2285
  }
2297
2286
  });
2298
- function Na(e) {
2299
- return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !ve(e);
2287
+ function Fa(e) {
2288
+ return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !Ce(e);
2300
2289
  }
2301
2290
  const {
2302
- Header: Ct
2303
- } = Te, La = /* @__PURE__ */ X({
2291
+ Header: xt
2292
+ } = Te, Na = /* @__PURE__ */ G({
2304
2293
  name: "GlobalHeader",
2305
2294
  inheritAttrs: !1,
2306
2295
  props: {
2307
- ...rt,
2296
+ ...st,
2308
2297
  ...He
2309
2298
  },
2310
2299
  setup(e) {
@@ -2315,59 +2304,59 @@ const {
2315
2304
  collapsedEffect: r,
2316
2305
  collapsedProps: l,
2317
2306
  getPrefixCls: i,
2318
- contentFullScreen: f,
2319
- settings: c,
2320
- isMobile: d,
2321
- layoutProps: p
2322
- } = Z(), u = i({
2307
+ contentFullScreen: m,
2308
+ settings: s,
2309
+ isMobile: c,
2310
+ layoutProps: g
2311
+ } = q(), u = i({
2323
2312
  suffixCls: "layout-header",
2324
2313
  isPor: !0
2325
- }), h = x(() => c.value.fixedHeader), I = x(() => c.value.layout === "side" || c.value.layout === "simple"), {
2326
- wrapSSR: R,
2327
- hashId: s
2328
- } = le("ProLayoutHeader", [Fa], u), y = x(() => ({
2329
- [`${s.value}`]: !0,
2314
+ }), p = v(() => s.value.fixedHeader), I = v(() => s.value.layout === "side" || s.value.layout === "simple"), {
2315
+ wrapSSR: M,
2316
+ hashId: y
2317
+ } = le("ProLayoutHeader", [Ta], u), f = v(() => ({
2318
+ [`${y.value}`]: !0,
2330
2319
  [`${u}`]: !0,
2331
2320
  [`${t.value.header}`]: t.value.header,
2332
- [`${u}-fixed-header`]: h.value
2333
- })), b = x(() => h.value && !d.value), S = x(() => {
2321
+ [`${u}-fixed-header`]: p.value
2322
+ })), x = v(() => p.value && !c.value), C = v(() => {
2334
2323
  if (l.value?.width === 0 && a.value)
2335
2324
  return "100%";
2336
- const v = r.value ? l.value?.width : p.value.siderWidth;
2337
- return I.value && b.value ? r.value ? v ? `calc(100% - ${z(v)})` : "100%" : v ? `calc(100% - ${z(v)})` : "100%" : "100%";
2338
- }), T = x(() => h.value ? 0 : void 0), L = () => {
2339
- const v = o(Ta, e, null);
2325
+ const b = r.value ? l.value?.width : g.value.siderWidth;
2326
+ return I.value && x.value ? r.value ? b ? `calc(100% - ${W(b)})` : "100%" : b ? `calc(100% - ${W(b)})` : "100%" : "100%";
2327
+ }), P = v(() => p.value ? 0 : void 0), $ = () => {
2328
+ const b = o(Pa, e, null);
2340
2329
  return e.headerRender ? e.headerRender({
2341
2330
  props: e,
2342
- defaultDom: v
2343
- }) : v;
2331
+ defaultDom: b
2332
+ }) : b;
2344
2333
  };
2345
2334
  return () => {
2346
- let v;
2347
- return R(o(G, null, [h.value && o(Ct, {
2335
+ let b;
2336
+ return M(o(_, null, [p.value && o(xt, {
2348
2337
  style: {
2349
- height: `${p.value.headerHeight}`,
2350
- lineHeight: `${p.value.headerHeight}`,
2338
+ height: `${g.value.headerHeight}`,
2339
+ lineHeight: `${g.value.headerHeight}`,
2351
2340
  background: "transparent",
2352
- marginTop: f.value ? `-${p.value.headerHeight}` : void 0
2341
+ marginTop: m.value ? `-${g.value.headerHeight}` : void 0
2353
2342
  }
2354
- }, null), o(Ct, {
2355
- class: y.value,
2343
+ }, null), o(xt, {
2344
+ class: f.value,
2356
2345
  style: {
2357
- height: `${p.value.headerHeight}`,
2358
- lineHeight: `${p.value.headerHeight}`,
2359
- width: S.value,
2346
+ height: `${g.value.headerHeight}`,
2347
+ lineHeight: `${g.value.headerHeight}`,
2348
+ width: C.value,
2360
2349
  zIndex: I.value ? 100 : 101,
2361
- right: T.value,
2362
- marginTop: f.value ? `-${p.value.headerHeight}` : void 0,
2350
+ right: P.value,
2351
+ marginTop: m.value ? `-${g.value.headerHeight}` : void 0,
2363
2352
  ...n.value?.header || {}
2364
2353
  }
2365
- }, Na(v = L()) ? v : {
2366
- default: () => [v]
2354
+ }, Fa(b = $()) ? b : {
2355
+ default: () => [b]
2367
2356
  })]));
2368
2357
  };
2369
2358
  }
2370
- }), Ha = {
2359
+ }), { provideContext: La, useInjectContext: Gt } = Xe("pro-layout-expose"), Ha = {
2371
2360
  visible: {
2372
2361
  type: Boolean,
2373
2362
  default: void 0
@@ -2389,7 +2378,7 @@ const {
2389
2378
  default: () => {
2390
2379
  }
2391
2380
  }
2392
- }, _t = {
2381
+ }, Yt = {
2393
2382
  onReloadPage: {
2394
2383
  type: Function
2395
2384
  },
@@ -2400,13 +2389,13 @@ const {
2400
2389
  "onUpdate:tabs": {
2401
2390
  type: Function
2402
2391
  }
2403
- }, qt = {
2392
+ }, _t = {
2404
2393
  ...Ha,
2405
2394
  loading: {
2406
2395
  type: Boolean,
2407
2396
  default: void 0
2408
2397
  },
2409
- ..._t
2398
+ ...Yt
2410
2399
  }, Da = {
2411
2400
  theme: {
2412
2401
  type: [String]
@@ -2421,14 +2410,14 @@ const {
2421
2410
  type: Object,
2422
2411
  default: () => ({})
2423
2412
  }
2424
- }, st = {
2413
+ }, ut = {
2425
2414
  ...za,
2426
2415
  ...Da,
2427
- ...at,
2428
- ...rt,
2429
- ..._t,
2430
- ...Ge,
2431
- ...Ht,
2416
+ ...ot,
2417
+ ...st,
2418
+ ...Yt,
2419
+ ...Ve,
2420
+ ...Dt,
2432
2421
  styles: {
2433
2422
  type: Object,
2434
2423
  default: () => ({})
@@ -2442,11 +2431,11 @@ const {
2442
2431
  },
2443
2432
  settings: {
2444
2433
  type: Object,
2445
- default: () => k
2434
+ default: () => X
2446
2435
  },
2447
2436
  menu: {
2448
2437
  type: Object,
2449
- default: () => Jn
2438
+ default: () => Zn
2450
2439
  },
2451
2440
  route: {
2452
2441
  type: Object,
@@ -2485,7 +2474,7 @@ const {
2485
2474
  loading: Boolean,
2486
2475
  footerLinks: {
2487
2476
  type: [Array, Boolean],
2488
- default: Gt
2477
+ default: Xt
2489
2478
  },
2490
2479
  pageLockRender: {
2491
2480
  type: [Object, Function, Boolean, String],
@@ -2502,9 +2491,9 @@ const {
2502
2491
  }
2503
2492
  },
2504
2493
  onContentFullScreenChange: ye.onContentFullScreenChange
2505
- }, Zt = ["menuLinksRender", "appsLogoComponents", "siderActionsRender"], Qt = ["appsLogoComponents", "extraRightDropdownRender"], Jt = wn([
2506
- ...Qt,
2494
+ }, qt = ["menuLinksRender", "appsLogoComponents", "siderActionsRender"], Zt = ["appsLogoComponents", "extraRightDropdownRender"], Qt = $n([
2507
2495
  ...Zt,
2496
+ ...qt,
2508
2497
  "pageHeaderRender",
2509
2498
  "copyrightRender"
2510
2499
  ]), Wa = [
@@ -2520,9 +2509,9 @@ const {
2520
2509
  "breadcrumbRender",
2521
2510
  "collapsedButtonRender"
2522
2511
  ];
2523
- [...Jt, ...Wa];
2524
- const xt = 40, ja = (e) => {
2525
- const { theme: n } = xe(e);
2512
+ [...Qt, ...Wa];
2513
+ const It = 40, ja = (e) => {
2514
+ const { theme: n } = Ie(e);
2526
2515
  return {
2527
2516
  [`${e.componentTitleCls}`]: {
2528
2517
  display: "flex",
@@ -2537,7 +2526,7 @@ const xt = 40, ja = (e) => {
2537
2526
  [`${e.componentCls}`]: {
2538
2527
  "&-fixed": {
2539
2528
  width: "100%",
2540
- height: xt,
2529
+ height: It,
2541
2530
  background: "transparent"
2542
2531
  }
2543
2532
  },
@@ -2648,7 +2637,7 @@ const xt = 40, ja = (e) => {
2648
2637
  [`${e.componentCls}-dropdown-menu-btn`]: {
2649
2638
  fontWeight: e.fontWeightStrong,
2650
2639
  textDecoration: "none",
2651
- ...Ee(e),
2640
+ ...Ue(e),
2652
2641
  "&:active": {
2653
2642
  backgroundColor: e.wireframe ? "transparent" : e.colorFillContentHover
2654
2643
  }
@@ -2660,8 +2649,8 @@ const xt = 40, ja = (e) => {
2660
2649
  },
2661
2650
  "&-fixed": {
2662
2651
  position: "fixed",
2663
- height: xt,
2664
- top: se(e.layout?.header?.heightLayoutHeader || k.headerHeight),
2652
+ height: It,
2653
+ top: se(e.layout?.header?.heightLayoutHeader || X.headerHeight),
2665
2654
  right: 0,
2666
2655
  zIndex: 9,
2667
2656
  transition: "width .2s"
@@ -2670,8 +2659,8 @@ const xt = 40, ja = (e) => {
2670
2659
  };
2671
2660
  };
2672
2661
  function Aa(e) {
2673
- return Ce("ProMultiTabs", (n) => {
2674
- const t = Je(n, {
2662
+ return xe("ProMultiTabs", (n) => {
2663
+ const t = et(n, {
2675
2664
  componentWrapCls: `${n.componentCls}-wrap`,
2676
2665
  componentTitleCls: `${n.componentCls}-title`
2677
2666
  });
@@ -2681,13 +2670,13 @@ function Aa(e) {
2681
2670
  const Ka = [{
2682
2671
  key: "fixed",
2683
2672
  label: "置顶",
2684
- icon: (e) => o(ke, {
2673
+ icon: (e) => o(Ke, {
2685
2674
  type: e ? "unpin" : "pin"
2686
2675
  }, null)
2687
2676
  }, {
2688
2677
  key: "close",
2689
2678
  label: "关闭",
2690
- icon: o(Ae, null, null)
2679
+ icon: o(je, null, null)
2691
2680
  }, {
2692
2681
  key: "fullScreen",
2693
2682
  icon: (e) => e ? o(Rt, null, null) : o($t, null, null)
@@ -2698,29 +2687,29 @@ const Ka = [{
2698
2687
  }, {
2699
2688
  key: "newBlank",
2700
2689
  label: "新窗口打开",
2701
- icon: o(mn, null, null)
2690
+ icon: o(dn, null, null)
2702
2691
  }, {
2703
2692
  key: "divider"
2704
2693
  }, {
2705
2694
  key: "closeLeftTabs",
2706
2695
  label: "关闭左侧",
2707
- icon: o(fn, null, null)
2696
+ icon: o(mn, null, null)
2708
2697
  }, {
2709
2698
  key: "closeRightTabs",
2710
2699
  label: "关闭右侧",
2711
- icon: o(pn, null, null)
2700
+ icon: o(fn, null, null)
2712
2701
  }, {
2713
2702
  key: "divider"
2714
2703
  }, {
2715
2704
  key: "closeOthersTabs",
2716
2705
  label: "关闭其他",
2717
- icon: o(gn, {
2706
+ icon: o(pn, {
2718
2707
  rotate: 90
2719
2708
  }, null)
2720
2709
  }, {
2721
2710
  key: "closeAllTabs",
2722
2711
  label: "关闭全部",
2723
- icon: o(hn, null, null)
2712
+ icon: o(gn, null, null)
2724
2713
  }];
2725
2714
  function Ua(e, n) {
2726
2715
  const {
@@ -2728,434 +2717,437 @@ function Ua(e, n) {
2728
2717
  } = n.tabs, a = re(t) ? t : t === 0;
2729
2718
  return e.key === "fixed" ? a ? "取消置顶" : "置顶" : e.key === "fullScreen" ? n.fullScreen ? "还原" : "最大化" : e.label;
2730
2719
  }
2731
- function ka(e) {
2732
- return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !ve(e);
2720
+ function Ea(e) {
2721
+ return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !Ce(e);
2733
2722
  }
2734
- const Ea = Pt.TabPane, Xa = be.Item;
2735
- function N(e) {
2723
+ const ka = Tt.TabPane, Xa = be.Item;
2724
+ function H(e) {
2736
2725
  return e.name;
2737
2726
  }
2738
- const Va = /* @__PURE__ */ X({
2739
- props: qt,
2727
+ const Va = /* @__PURE__ */ G({
2728
+ name: "TabsRoute",
2729
+ props: _t,
2740
2730
  inheritAttrs: !1,
2741
- setup(e, {
2742
- expose: n
2743
- }) {
2731
+ setup(e) {
2744
2732
  const {
2745
- storage: t
2746
- } = Xe(e), a = q(!1), r = Me({
2733
+ storage: n
2734
+ } = Ee(e), t = Q(!1), a = Me({
2747
2735
  activeKey: "",
2748
2736
  contextMenuActiveKey: ""
2749
- }), l = Le(), {
2737
+ }), r = Le(), {
2738
+ tabsRouteRef: l
2739
+ } = Gt(), {
2750
2740
  isMobile: i,
2751
- collapsedEffect: f,
2752
- collapsedProps: c,
2753
- layoutProps: d,
2754
- contentFullScreen: p,
2741
+ collapsedEffect: m,
2742
+ collapsedProps: s,
2743
+ layoutProps: c,
2744
+ contentFullScreen: g,
2755
2745
  settings: u,
2756
- menu: h,
2746
+ menu: p,
2757
2747
  renderRouterView: I,
2758
- getPrefixCls: R
2759
- } = Z(), s = it(), y = R({
2748
+ getPrefixCls: M
2749
+ } = q(), y = rt(), f = M({
2760
2750
  isPor: !0,
2761
2751
  suffixCls: "layout-tabs"
2762
2752
  }), {
2763
- wrapSSR: b,
2764
- hashId: S
2765
- } = Aa(y), T = Ln(y, {
2753
+ wrapSSR: x,
2754
+ hashId: C
2755
+ } = Aa(f), P = Fn(f, {
2766
2756
  fixed: [],
2767
2757
  normal: []
2768
2758
  });
2769
- function L(m) {
2770
- return s?.menuMap?.value?.get(m.name) || h.value?.flatMenus?.some((w) => w.name === m.name);
2759
+ function $(d) {
2760
+ return y?.menuMap?.value?.get(d.name);
2771
2761
  }
2772
- const v = Me({
2773
- fixed: t.value && T.value?.fixed ? T.value?.fixed : [],
2774
- normal: t.value && T.value?.normal ? T.value?.normal : []
2762
+ const b = Me({
2763
+ fixed: n.value && P.value?.fixed ? P.value?.fixed : [],
2764
+ normal: n.value && P.value?.normal ? P.value?.normal : []
2775
2765
  });
2776
- U(() => h.value.flatMenus, () => {
2777
- v.fixed.length && (v.fixed = v.fixed.filter((m) => L(m))), v.normal.length && (v.normal = v.normal.filter((m) => L(m)));
2766
+ k(() => p.value.flatMenus, () => {
2767
+ b.fixed.length && (b.fixed = b.fixed.filter((d) => $(d))), b.normal.length && (b.normal = b.normal.filter((d) => $(d)));
2778
2768
  }, {
2779
2769
  immediate: !0,
2780
2770
  deep: !0
2781
- }), U(t, (m) => {
2782
- T.value = m ? Ue(qe(v)) : {
2771
+ }), k(n, (d) => {
2772
+ P.value = d ? qe(_e(b)) : {
2783
2773
  fixed: [],
2784
2774
  normal: []
2785
2775
  };
2786
2776
  }, {
2787
2777
  immediate: !0
2788
2778
  });
2789
- const M = x(() => v.fixed.concat(v.normal)), V = x(() => u.value.layout === "mix" && !i.value && u.value.splitMenus), j = x(() => N(l?.currentRoute?.value)), A = x(() => u.value.fixedTabsBar && !i.value), E = x(() => {
2790
- const m = !(V.value && h.value.mixSiderMenus.length === 0 || h.value.menuData.length === 0 || u.value.layout === "top");
2791
- return A.value && m ? p.value ? "100%" : `calc(100% - ${f.value ? z(c.value?.width) : d.value.siderWidth})` : "100%";
2792
- }), Y = x(() => O(`${y}-wrap`, {
2793
- [`${S.value}`]: !0,
2794
- [`${y}-wrap-${e.type}`]: e.type,
2795
- [`${y}-wrap-fixed`]: u.value.fixedTabsBar,
2796
- [`${y}-wrap-loading`]: e.loading
2797
- })), D = x(() => e.destroyOnHide === !1 && e.visible), te = x(() => {
2798
- const m = {
2799
- display: D.value ? void 0 : "none"
2779
+ const T = v(() => b.fixed.concat(b.normal)), Y = v(() => u.value.layout === "mix" && !i.value && u.value.splitMenus), K = v(() => H(r?.currentRoute?.value)), U = v(() => u.value.fixedTabsBar && !i.value), V = v(() => {
2780
+ const d = !(Y.value && p.value.mixSiderMenus.length === 0 || p.value.menuData.length === 0 || u.value.layout === "top");
2781
+ return U.value && d ? g.value ? "100%" : `calc(100% - ${m.value ? W(s.value?.width) : c.value.siderWidth})` : "100%";
2782
+ }), Z = v(() => w(`${f}-wrap`, {
2783
+ [`${C.value}`]: !0,
2784
+ [`${f}-wrap-${e.type}`]: e.type,
2785
+ [`${f}-wrap-fixed`]: u.value.fixedTabsBar,
2786
+ [`${f}-wrap-loading`]: e.loading
2787
+ })), z = v(() => e.destroyOnHide === !1 && e.visible), R = v(() => {
2788
+ const d = {
2789
+ display: z.value ? void 0 : "none"
2800
2790
  };
2801
2791
  return u.value.fixedTabsBar ? {
2802
2792
  margin: 0,
2803
- width: E.value,
2793
+ width: V.value,
2804
2794
  paddingTop: "6px",
2805
2795
  zIndex: 99,
2806
- top: p.value ? 0 : void 0,
2807
- ...m
2808
- } : m;
2796
+ top: g.value ? 0 : void 0,
2797
+ ...d
2798
+ } : d;
2809
2799
  });
2810
- U(() => v, (m) => {
2811
- t.value && (T.value = Ue(m)), e.onTabsChange?.([...v.fixed, ...v.normal]);
2800
+ k(() => b, (d) => {
2801
+ n.value && (P.value = qe(d)), e.onTabsChange?.([...b.fixed, ...b.normal]);
2812
2802
  }, {
2813
2803
  deep: !0
2814
2804
  });
2815
- const _ = (m) => M.value.find((w) => N(w) === m), C = (m) => N(m) === j.value, $ = (m) => {
2805
+ const D = (d) => T.value.find((S) => H(S) === d), B = (d) => H(d) === K.value, O = (d) => {
2816
2806
  const {
2817
- fixed: w
2818
- } = m?.meta?.tabState || {};
2819
- return m?.meta ? re(w) ? w : w === 0 : !1;
2820
- }, J = (m) => {
2807
+ fixed: S
2808
+ } = d?.meta?.tabState || {};
2809
+ return d?.meta ? re(S) ? S : S === 0 : !1;
2810
+ }, ee = (d) => {
2821
2811
  const {
2822
- hidden: w
2823
- } = m?.meta?.tabState || {};
2824
- if (m.name && m.meta && w !== !0) {
2825
- const B = $(m), F = N(m), P = _(F), H = {
2826
- name: F,
2827
- path: m.path,
2828
- fullPath: m.fullPath,
2829
- query: m.query,
2830
- params: m.params,
2831
- meta: Re(m.meta, {
2832
- tabState: m.meta?.tabState
2812
+ hidden: S
2813
+ } = d?.meta?.tabState || {};
2814
+ if (d.name && d.meta && S !== !0) {
2815
+ const N = O(d), L = H(d), F = {
2816
+ name: L,
2817
+ path: d.path,
2818
+ fullPath: d.fullPath,
2819
+ query: d.query,
2820
+ params: d.params,
2821
+ meta: de(d.meta, {
2822
+ tabState: d.meta?.tabState
2833
2823
  })
2834
2824
  };
2835
- P ? Re(P, H) : B ? v.fixed.push(H) : v.normal.push(H), C(m) && (r.activeKey = F);
2825
+ T.value.some((j) => H(j) === L) ? Se(d, {
2826
+ type: "merge",
2827
+ params: F
2828
+ }) : N ? b.fixed.push(F) : b.normal.push(F), B(d) && (a.activeKey = L);
2836
2829
  }
2837
- }, ue = (m) => {
2838
- m.forEach((w) => {
2839
- $(w) && J(we(w));
2830
+ }, ue = (d) => {
2831
+ d.forEach((S) => {
2832
+ O(S) && ee(Qe(S));
2840
2833
  });
2841
2834
  };
2842
- U(() => h.value.flatMenus, (m) => {
2843
- ue(m);
2835
+ k(() => p.value.flatMenus, (d) => {
2836
+ ue(d);
2844
2837
  }, {
2845
2838
  deep: !0,
2846
2839
  immediate: !0
2847
- }), U(() => l?.currentRoute?.value, (m) => {
2848
- m && J(m);
2840
+ }), k(() => r?.currentRoute?.value, (d) => {
2841
+ d && ee(d);
2849
2842
  }, {
2850
2843
  deep: !0,
2851
2844
  immediate: !0
2852
2845
  });
2853
- const De = (m) => {
2854
- const w = M.value.find((B) => (m || r.activeKey) === N(B));
2855
- return w?.redirect || w?.fullPath || w?.path || "";
2846
+ const De = (d) => {
2847
+ const S = T.value.find((N) => (d || a.activeKey) === H(N));
2848
+ return S?.redirect || S?.fullPath || S?.path || "";
2856
2849
  };
2857
- function me(m) {
2858
- const w = {};
2859
- return m.query && (w.query = m.query), m.params && (w.params = m.params), w;
2850
+ function me(d) {
2851
+ const S = {};
2852
+ return d.query && (S.query = d.query), d.params && (S.params = d.params), S;
2860
2853
  }
2861
- const ze = (m, {
2862
- type: w,
2863
- addType: B,
2864
- params: F
2865
- }) => {
2866
- const P = $(m) ? "fixed" : "normal";
2867
- w === "add" && B ? v[P][B](F) : w === "merge" ? v[P] = v[P].map((H) => N(H) === N(m) ? Re(H, F) : H) : w === "remove" && (v[P] = v[P].filter((H) => N(H) !== N(m)));
2868
- }, Ie = () => {
2869
- const m = M.value.slice(-1)[0];
2870
- m ? l.push({
2871
- path: De(N(m)),
2872
- ...me(m)
2873
- }) : l.push("/");
2874
- }, We = (m, w) => {
2875
- const B = M.value.find((F) => m === N(F));
2876
- B && (ze(B, {
2854
+ function Se(d, {
2855
+ type: S,
2856
+ addType: N,
2857
+ params: L
2858
+ }) {
2859
+ const F = O(d) ? "fixed" : "normal";
2860
+ S === "add" && N ? b[F][N](L) : S === "merge" ? b[F] = b[F].map((j) => H(j) === H(d) ? de(j, L) : j) : S === "remove" && (b[F] = b[F].filter((j) => H(j) !== H(d)));
2861
+ }
2862
+ const Re = () => {
2863
+ const d = T.value.slice(-1)[0];
2864
+ d ? r.push({
2865
+ path: De(H(d)),
2866
+ ...me(d)
2867
+ }) : r.push("/");
2868
+ }, ze = (d, S) => {
2869
+ const N = T.value.find((L) => d === H(L));
2870
+ N && (Se(N, {
2877
2871
  type: "remove",
2878
- params: B
2879
- }), w?.(B));
2880
- }, _e = () => {
2881
- v.fixed = [], v.normal = [];
2882
- }, fe = async (m) => {
2883
- We(m, (w) => {
2884
- C(w) && Ie();
2872
+ params: N
2873
+ }), S?.(N));
2874
+ }, Ye = () => {
2875
+ b.fixed = [], b.normal = [];
2876
+ }, fe = async (d) => {
2877
+ ze(d, (S) => {
2878
+ B(S) && Re();
2885
2879
  });
2886
- }, W = (m) => {
2887
- const w = M.value.find((B) => N(B) === m);
2888
- w && r.activeKey !== N(w) && l.push({
2889
- path: De(N(w)),
2890
- ...me(w)
2880
+ }, A = (d) => {
2881
+ const S = T.value.find((N) => H(N) === d);
2882
+ S && a.activeKey !== H(S) && r.push({
2883
+ path: De(H(S)),
2884
+ ...me(S)
2891
2885
  });
2892
- }, Q = Hn(() => {
2893
- I.value = !1, a.value = !0, e.onReloadPage && e.onReloadPage?.(), setTimeout(() => {
2886
+ }, J = Nn(() => {
2887
+ I.value = !1, t.value = !0, e.onReloadPage && e.onReloadPage?.(), setTimeout(() => {
2894
2888
  I.value = !0;
2895
2889
  }, 200), setTimeout(() => {
2896
- a.value = !1;
2890
+ t.value = !1;
2897
2891
  }, 500);
2898
- }, 500), ee = (m) => r[m], ne = (m) => {
2899
- l.push({
2900
- path: m.path,
2901
- ...me(m)
2892
+ }, 500), te = (d) => a[d], ne = (d) => {
2893
+ r.push({
2894
+ path: d.path,
2895
+ ...me(d)
2902
2896
  });
2903
- }, pe = (m, w) => {
2904
- let B = v.normal.findIndex((K) => N(K) === ee(w));
2905
- const F = M.value.find((K) => N(K) === ee(w)), P = $(F);
2906
- let H = !1;
2907
- switch (m) {
2897
+ }, pe = (d, S) => {
2898
+ let N = b.normal.findIndex((E) => H(E) === te(S));
2899
+ const L = T.value.find((E) => H(E) === te(S)), F = O(L);
2900
+ let j = !1;
2901
+ switch (d) {
2908
2902
  case "fixed":
2909
- P ? (B = v.fixed.findIndex((K) => N(K) === ee(w)), v.normal.unshift(Re(F, {
2903
+ F ? (N = b.fixed.findIndex((E) => H(E) === te(S)), b.normal.unshift(de(L, {
2910
2904
  meta: {
2911
2905
  tabState: {
2912
- fixed: !P
2906
+ fixed: !F
2913
2907
  }
2914
2908
  }
2915
- })), v.fixed = v.fixed.filter((K, ce) => ce !== B)) : (v.fixed.push(Re(F, {
2909
+ })), b.fixed = b.fixed.filter((E, ce) => ce !== N)) : (b.fixed.push(de(L, {
2916
2910
  meta: {
2917
2911
  tabState: {
2918
- fixed: !P
2912
+ fixed: !F
2919
2913
  }
2920
2914
  }
2921
- })), v.normal = v.normal.filter((K, ce) => ce !== B));
2915
+ })), b.normal = b.normal.filter((E, ce) => ce !== N));
2922
2916
  break;
2923
2917
  case "close":
2924
- fe(N(F) || "");
2918
+ fe(H(L) || "");
2925
2919
  break;
2926
2920
  case "closeOthersTabs":
2927
- v.normal = v.normal.filter((K) => N(K) === ee(w) || $(K)), H = r[w] !== r.activeKey, H && ne(F);
2921
+ b.normal = b.normal.filter((E) => H(E) === te(S) || O(E)), j = a[S] !== a.activeKey, j && ne(L);
2928
2922
  break;
2929
2923
  case "closeLeftTabs":
2930
- ct(B) && (v.normal = v.normal.filter((K, ce) => ce >= B || $(K)), H = !M.value.some((K) => N(K) === r.activeKey), H && ne(F));
2924
+ dt(N) && (b.normal = b.normal.filter((E, ce) => ce >= N || O(E)), j = !T.value.some((E) => H(E) === a.activeKey), j && ne(L));
2931
2925
  break;
2932
2926
  case "closeRightTabs":
2933
- ct(B) && (v.normal = v.normal.filter((K, ce) => ce <= B || $(K))), H = !M.value.some((K) => N(K) === r.activeKey), H && ne(F);
2927
+ dt(N) && (b.normal = b.normal.filter((E, ce) => ce <= N || O(E))), j = !T.value.some((E) => H(E) === a.activeKey), j && ne(L);
2934
2928
  break;
2935
2929
  case "closeAllTabs":
2936
- v.normal = v.normal.filter((K) => $(K)), Ie();
2930
+ b.normal = b.normal.filter((E) => O(E)), Re();
2937
2931
  break;
2938
2932
  case "reloadPage":
2939
- (B === 0 || B) && r.activeKey === ee(w) && Q();
2933
+ (N === 0 || N) && a.activeKey === te(S) && J();
2940
2934
  break;
2941
2935
  case "newBlank":
2942
2936
  window.open(location.href);
2943
2937
  break;
2944
2938
  case "fullScreen":
2945
- p.value = !p.value;
2939
+ g.value = !g.value;
2946
2940
  break;
2947
2941
  }
2948
- }, Se = (m, w) => {
2949
- const B = M.value.findIndex((F) => N(F) === w);
2950
- if (m === "closeOthersTabs")
2951
- return M.value.filter((P, H) => H !== B && !$(P)).length === 0;
2952
- if (m === "closeLeftTabs")
2953
- return M.value.filter((P, H) => H < B && !$(P)).length === 0;
2954
- if (m === "closeRightTabs")
2955
- return M.value.filter((P, H) => H > B && !$(P)).length === 0;
2956
- }, je = (m) => {
2957
- let w;
2942
+ }, $e = (d, S) => {
2943
+ const N = T.value.findIndex((L) => H(L) === S);
2944
+ if (d === "closeOthersTabs")
2945
+ return T.value.filter((F, j) => j !== N && !O(F)).length === 0;
2946
+ if (d === "closeLeftTabs")
2947
+ return T.value.filter((F, j) => j < N && !O(F)).length === 0;
2948
+ if (d === "closeRightTabs")
2949
+ return T.value.filter((F, j) => j > N && !O(F)).length === 0;
2950
+ }, We = (d) => {
2951
+ let S;
2958
2952
  const {
2959
- name: B,
2960
- stateType: F
2961
- } = m;
2953
+ name: N,
2954
+ stateType: L
2955
+ } = d;
2962
2956
  return o(be, {
2963
2957
  selectedKeys: [],
2964
- onClick: (P) => pe(P.key, F)
2965
- }, ka(w = Ka.map((P) => {
2966
- if (P.key === "divider") return o(be.Divider, {
2967
- key: P.key
2958
+ onClick: (F) => pe(F.key, L)
2959
+ }, Ea(S = Ka.map((F) => {
2960
+ if (F.key === "divider") return o(be.Divider, {
2961
+ key: F.key
2968
2962
  }, null);
2969
- const H = P.icon;
2970
- return P.key === "close" && $(_(B)) ? null : o(Xa, {
2971
- key: P.key,
2972
- disabled: Se(P.key, B)
2963
+ const j = F.icon;
2964
+ return F.key === "close" && O(D(N)) ? null : o(Xa, {
2965
+ key: F.key,
2966
+ disabled: $e(F.key, N)
2973
2967
  }, {
2974
- default: () => [P.icon && typeof P.icon == "function" ? P.key === "fullScreen" ? P.icon(p.value) : P.key === "fixed" ? P.icon($(_(B))) : null : o(H, null, null), o("span", {
2968
+ default: () => [F.icon && typeof F.icon == "function" ? F.key === "fullScreen" ? F.icon(g.value) : F.key === "fixed" ? F.icon(O(D(N))) : null : o(j, null, null), o("span", {
2975
2969
  style: {
2976
2970
  marginInlineStart: "8px"
2977
2971
  }
2978
- }, [Ua(P, {
2979
- tabs: _(B)?.meta?.tabState || {},
2980
- fullScreen: p.value
2972
+ }, [Ua(F, {
2973
+ tabs: D(N)?.meta?.tabState || {},
2974
+ fullScreen: g.value
2981
2975
  })])]
2982
2976
  });
2983
- })) ? w : {
2984
- default: () => [w]
2977
+ })) ? S : {
2978
+ default: () => [S]
2985
2979
  });
2986
- }, en = ({
2987
- router: m
2980
+ }, Jt = ({
2981
+ router: d
2988
2982
  }) => {
2989
- const w = e.itemRender ? e.itemRender(m) : null, B = $(m);
2990
- return o(mt, {
2983
+ const S = e.itemRender ? e.itemRender(d) : null, N = O(d);
2984
+ return o(ft, {
2991
2985
  trigger: "contextmenu",
2992
- overlay: o(je, {
2993
- name: N(m) || "",
2986
+ overlay: o(We, {
2987
+ name: H(d) || "",
2994
2988
  stateType: "contextMenuActiveKey"
2995
2989
  }, null),
2996
- onOpenChange: (F) => {
2997
- r.contextMenuActiveKey = F && N(m) || "";
2990
+ onOpenChange: (L) => {
2991
+ a.contextMenuActiveKey = L && H(d) || "";
2998
2992
  }
2999
2993
  }, {
3000
- default: () => [w || o("div", {
3001
- class: [`${y}-title`, S.value]
3002
- }, [m.meta?.title, B && o(ke, {
2994
+ default: () => [S || o("div", {
2995
+ class: [`${f}-title`, C.value]
2996
+ }, [d.meta?.title, N && o(Ke, {
3003
2997
  type: "pin",
3004
- class: [`${y}-icon`, S.value]
3005
- }, null), M.value.length > 1 && !$(m) && o(Ae, {
3006
- class: [`${y}-close-btn`, S.value],
3007
- onClick: (F) => {
3008
- F.stopPropagation(), fe(N(m) || "");
2998
+ class: [`${f}-icon`, C.value]
2999
+ }, null), T.value.length > 1 && !O(d) && o(je, {
3000
+ class: [`${f}-close-btn`, C.value],
3001
+ onClick: (L) => {
3002
+ L.stopPropagation(), fe(H(d) || "");
3009
3003
  }
3010
3004
  }, null)])]
3011
3005
  });
3012
3006
  };
3013
- return n({
3014
- clean: _e,
3015
- close: We,
3016
- change: ze
3007
+ return Ze(() => {
3008
+ l.value = {
3009
+ clean: Ye,
3010
+ close: ze,
3011
+ update: Se
3012
+ };
3017
3013
  }), () => {
3018
- const m = p.value ? Rt : $t;
3019
- return b(o(G, null, [u.value.fixedTabsBar && o("div", {
3014
+ const d = g.value ? Rt : $t;
3015
+ return x(o(_, null, [u.value.fixedTabsBar && o("div", {
3020
3016
  style: {
3021
- display: D.value ? void 0 : "none"
3017
+ display: z.value ? void 0 : "none"
3022
3018
  },
3023
- class: [`${y}-fixed`, S.value]
3024
- }, null), o(Pt, {
3019
+ class: [`${f}-fixed`, C.value]
3020
+ }, null), o(Tt, {
3025
3021
  hideAdd: !0,
3026
- style: te.value,
3027
- class: Y.value,
3028
- activeKey: r.activeKey,
3029
- onTabClick: W
3022
+ style: R.value,
3023
+ class: Z.value,
3024
+ activeKey: a.activeKey,
3025
+ onTabClick: A
3030
3026
  }, {
3031
- default: () => [M.value.map((w) => o(Ea, {
3032
- key: N(w),
3027
+ default: () => [T.value.map((S) => o(ka, {
3028
+ key: H(S),
3033
3029
  closable: !1,
3034
- tab: o(en, {
3035
- router: w
3030
+ tab: o(Jt, {
3031
+ router: S
3036
3032
  }, null)
3037
3033
  }, null))],
3038
3034
  rightExtra: () => o("div", {
3039
- class: O(`${y}-dropdown-menu`, S.value)
3035
+ class: w(`${f}-dropdown-menu`, C.value)
3040
3036
  }, [o(wt, {
3041
- class: [`${y}-dropdown-menu-btn`, S.value],
3037
+ class: [`${f}-dropdown-menu-btn`, C.value],
3042
3038
  onClick: () => pe("reloadPage", "activeKey")
3043
- }, null), o(mt, {
3044
- overlay: o(je, {
3045
- name: r.activeKey,
3039
+ }, null), o(ft, {
3040
+ overlay: o(We, {
3041
+ name: a.activeKey,
3046
3042
  stateType: "activeKey"
3047
3043
  }, null)
3048
3044
  }, {
3049
- default: () => [o(yn, {
3050
- class: [`${y}-dropdown-menu-btn`, S.value]
3045
+ default: () => [o(hn, {
3046
+ class: [`${f}-dropdown-menu-btn`, C.value]
3051
3047
  }, null)]
3052
- }), o(m, {
3053
- class: [`${y}-dropdown-menu-btn`, S.value],
3048
+ }), o(d, {
3049
+ class: [`${f}-dropdown-menu-btn`, C.value],
3054
3050
  onClick: () => pe("fullScreen", "activeKey")
3055
3051
  }, null)])
3056
3052
  })]));
3057
3053
  };
3058
3054
  }
3059
- }), Ga = ["isChildrenLayout", "loading", "onTabsChange", "onReloadPage"], Ya = /* @__PURE__ */ X({
3055
+ }), Ga = ["isChildrenLayout", "loading", "onTabsChange", "onReloadPage"], Ya = /* @__PURE__ */ G({
3060
3056
  inheritAttrs: !1,
3061
3057
  displayName: "wrap-content",
3062
3058
  props: {
3063
- ...de(qt, ["visible", "destroyOnHide", "storage", "itemRender"]),
3059
+ ...ve(_t, ["visible", "destroyOnHide", "storage", "itemRender"]),
3064
3060
  hashId: String,
3065
3061
  prefixCls: String,
3066
3062
  isChildrenLayout: Boolean,
3067
- tabsRoute: st.tabsRoute
3063
+ tabsRoute: ut.tabsRoute
3068
3064
  },
3069
3065
  setup(e, {
3070
3066
  slots: n
3071
3067
  }) {
3072
3068
  const {
3073
- tabsComRef: t,
3074
- contentFullScreen: a,
3075
- layoutProps: r,
3076
- settings: l,
3077
- fullScreenOnTabsHide: i
3078
- } = Z(), f = x(() => re(e.tabsRoute?.visible) ? e.tabsRoute?.visible : !(a.value && i.value));
3069
+ contentFullScreen: t,
3070
+ layoutProps: a,
3071
+ settings: r,
3072
+ fullScreenOnTabsHide: l
3073
+ } = q(), i = v(() => re(e.tabsRoute?.visible) ? e.tabsRoute?.visible : !(t.value && l.value));
3079
3074
  return () => {
3080
3075
  const {
3081
- prefixCls: c,
3082
- hashId: d,
3083
- tabsRoute: p,
3084
- ...u
3076
+ prefixCls: m,
3077
+ hashId: s,
3078
+ tabsRoute: c,
3079
+ ...g
3085
3080
  } = e;
3086
3081
  return e.isChildrenLayout ? n.default?.() : o("div", {
3087
- class: O(`${c}-container`, d, r.value.siderWidth && `${c}-container-has-silder`)
3088
- }, [!l.value.showTabsBar || r.value.isWide || l.value.layout === "simple" ? null : o(Va, oe({
3089
- ref: t
3090
- }, u, e.tabsRoute, {
3091
- visible: f.value
3082
+ class: w(`${m}-container`, s, a.value.siderWidth && `${m}-container-has-silder`)
3083
+ }, [!r.value.showTabsBar || a.value.isWide || r.value.layout === "simple" ? null : o(Va, oe(g, e.tabsRoute, {
3084
+ visible: i.value
3092
3085
  }), null), n.default?.()]);
3093
3086
  };
3094
3087
  }
3095
3088
  }), {
3096
3089
  Content: _a
3097
- } = Te, qa = /* @__PURE__ */ X({
3090
+ } = Te, qa = /* @__PURE__ */ G({
3098
3091
  name: "BaseProLayout",
3099
3092
  inheritAttrs: !1,
3100
3093
  props: {
3101
- ...st,
3094
+ ...ut,
3102
3095
  onCollapse: Function
3103
3096
  },
3104
3097
  slots: Object,
3105
3098
  setup(e, {
3106
- slots: n,
3107
- expose: t
3099
+ slots: n
3108
3100
  }) {
3109
- const a = ae({
3101
+ const t = ae({
3110
3102
  suffixCls: "basic-layout",
3111
3103
  isPor: !0
3112
3104
  }), {
3113
- wrapSSR: r,
3114
- hashId: l
3115
- } = le("ProLayout", [ba, va], a), {
3116
- theme: i,
3117
- resolvedTheme: f
3118
- } = Tt(), [c, d] = Oe(!1), p = bn(), u = it(), h = vn({
3105
+ wrapSSR: a,
3106
+ hashId: r
3107
+ } = le("ProLayout", [ya, ba], t), {
3108
+ theme: l,
3109
+ resolvedTheme: i
3110
+ } = Ft(), [m, s] = Be(!1), c = yn(), g = rt(), u = bn({
3119
3111
  slots: n,
3120
3112
  props: e,
3121
- keys: Jt,
3113
+ keys: Qt,
3122
3114
  render: !0
3123
3115
  }), {
3124
- token: I
3125
- } = Ne(), R = q(), s = q(!!e.collapsedProps?.value), y = q(!0), b = q(!1), S = q(!1), T = q(), L = q(dt().uuid(10)), v = Me({
3116
+ token: p
3117
+ } = Ne(), I = Q(!!e.collapsedProps?.value), M = Q(!0), y = Q(!1), f = Q(!1), x = Q(), C = Q(mt().uuid(10)), P = Me({
3126
3118
  position: "relative"
3127
- }), M = x(() => {
3128
- let C = 0;
3129
- if (S.value)
3130
- C = 0;
3119
+ }), $ = v(() => {
3120
+ let R = 0;
3121
+ if (f.value)
3122
+ R = 0;
3131
3123
  else if (e.settings.siderWidth === 0)
3132
- C = 0;
3124
+ R = 0;
3133
3125
  else {
3134
- const $ = e.settings.layout === "wide" ? 208 : k.siderWidth;
3135
- C = se(e.settings.siderWidth || $);
3126
+ const D = e.settings.layout === "wide" ? 208 : X.siderWidth;
3127
+ R = se(e.settings.siderWidth || D);
3136
3128
  }
3137
3129
  return {
3138
3130
  isWide: e.settings.layout === "wide",
3139
- headerHeight: e.settings.headerHeight === 0 ? 0 : se(e.settings.headerHeight || k.headerHeight),
3140
- siderWidth: C,
3131
+ headerHeight: e.settings.headerHeight === 0 ? 0 : se(e.settings.headerHeight || X.headerHeight),
3132
+ siderWidth: R,
3141
3133
  hasSilder: e.settings.layout === "mix" || e.settings.layout === "side" || e.settings.layout === "wide" || !1
3142
3134
  };
3143
- }), V = x(() => Ze({
3135
+ }), b = v(() => de({
3144
3136
  position: "fixed",
3145
3137
  width: 64
3146
- }, e.collapsedProps || {})), j = x(() => {
3147
- const C = e.route || u?.menuData?.value || [], $ = u?.flatMenus?.value ?? Mn(C);
3138
+ }, e.collapsedProps || {})), T = v(() => {
3139
+ const R = e.route || g?.menuData?.value || [], D = g?.flatMenus?.value ?? wn(R);
3148
3140
  return {
3149
3141
  ...e.menu,
3150
- menuData: C,
3151
- flatMenus: $,
3152
- key: i.value,
3153
- baseTheme: f.value,
3154
- mixSiderMenus: M.value.hasSilder && e?.selectedKeys ? ra(C, e.selectedKeys[0]) : []
3142
+ menuData: R,
3143
+ flatMenus: D,
3144
+ key: l.value,
3145
+ baseTheme: i.value,
3146
+ mixSiderMenus: $.value.hasSilder && e?.selectedKeys ? la(R, e.selectedKeys[0]) : []
3155
3147
  };
3156
- }), A = x(() => (p.value === "sm" || p.value === "xs") && !e.disableMobile && !M.value.isWide), E = x(() => ({
3148
+ }), Y = v(() => (c.value === "sm" || c.value === "xs") && !e.disableMobile && !$.value.isWide), K = v(() => ({
3157
3149
  ...e.breadcrumb,
3158
- position: e.breadcrumb?.position && Ve(e.breadcrumb?.position) ? e.breadcrumb?.position : e.settings.layout === "side" ? "header" : "pageHeader",
3150
+ position: e.breadcrumb?.position && ke(e.breadcrumb?.position) ? e.breadcrumb?.position : e.settings.layout === "side" ? "header" : "pageHeader",
3159
3151
  visible: e.breadcrumb?.visible ?? !0,
3160
3152
  itemRender: Pe({
3161
3153
  slots: n,
@@ -3165,171 +3157,168 @@ const Va = /* @__PURE__ */ X({
3165
3157
  key: "breadcrumbRender"
3166
3158
  })
3167
3159
  }));
3168
- U(() => e.collapsedProps?.value, (C) => {
3169
- s.value = !!C;
3170
- }), U(() => s.value, (C) => {
3171
- e.onCollapse?.(C);
3172
- }), U([() => e.settings.layout], ([C]) => {
3173
- (C === "wide" || C === "simple") && (S.value = !1), L.value = dt().uuid(10);
3174
- }), U(() => M.value.isWide, (C) => {
3175
- if (C) {
3176
- const $ = document.querySelector('meta[name="viewport"]');
3177
- $ && ($.content = "");
3160
+ k(() => e.collapsedProps?.value, (R) => {
3161
+ I.value = !!R;
3162
+ }), k(() => I.value, (R) => {
3163
+ e.onCollapse?.(R);
3164
+ }), k([() => e.settings.layout], ([R]) => {
3165
+ (R === "wide" || R === "simple") && (f.value = !1), C.value = mt().uuid(10);
3166
+ }), k(() => $.value.isWide, (R) => {
3167
+ if (R) {
3168
+ const D = document.querySelector('meta[name="viewport"]');
3169
+ D && (D.content = "");
3178
3170
  }
3179
3171
  }, {
3180
3172
  immediate: !0
3181
- }), U(S, (C) => {
3182
- e.onContentFullScreenChange?.(C);
3183
- }), U([() => e.isChildrenLayout], () => {
3184
- const C = e.styles?.content;
3185
- (e.isChildrenLayout || C && C.minHeight) && (v.minHeight = 0);
3173
+ }), k(f, (R) => {
3174
+ e.onContentFullScreenChange?.(R);
3175
+ }), k([() => e.isChildrenLayout], () => {
3176
+ const R = e.styles?.content;
3177
+ (e.isChildrenLayout || R && R.minHeight) && (P.minHeight = 0);
3186
3178
  }, {
3187
3179
  immediate: !0,
3188
3180
  deep: !0
3189
3181
  });
3190
- function Y() {
3182
+ function U() {
3191
3183
  return ge({
3192
3184
  slots: n,
3193
3185
  props: e,
3194
3186
  keys: ["menuItemRender", "menuTextRender", "subMenuItemRender", "collapsedIconRender", "collapsedButtonRender"]
3195
3187
  });
3196
3188
  }
3197
- const D = () => {
3198
- if (e.headerRender === !1 || e.pure || e.settings.layout === "simple" || !M.value.headerHeight || M.value.headerHeight === 0)
3189
+ const V = () => {
3190
+ if (e.headerRender === !1 || e.pure || e.settings.layout === "simple" || !$.value.headerHeight || $.value.headerHeight === 0)
3199
3191
  return null;
3200
- const C = ge({
3192
+ const R = ge({
3201
3193
  slots: n,
3202
3194
  props: e,
3203
3195
  keys: ["logoRender", "headerRender", "headerContentRender", "rightContentRender"]
3204
- }), $ = ge({
3196
+ }), D = ge({
3205
3197
  slots: n,
3206
3198
  props: e,
3207
- keys: Qt,
3199
+ keys: Zt,
3208
3200
  render: !0
3209
3201
  });
3210
- return o(La, oe(e, $, Y(), {
3211
- logoRender: C.logoRender,
3212
- headerRender: C.headerRender,
3213
- rightContentRender: C.rightContentRender,
3214
- headerContentRender: C.headerContentRender
3202
+ return o(Na, oe(e, D, U(), {
3203
+ logoRender: R.logoRender,
3204
+ headerRender: R.headerRender,
3205
+ rightContentRender: R.rightContentRender,
3206
+ headerContentRender: R.headerContentRender
3215
3207
  }), null);
3216
- }, te = () => {
3217
- if (!M.value.siderWidth || M.value.siderWidth === 0) return null;
3218
- const C = ge({
3208
+ }, Z = () => {
3209
+ if (!$.value.siderWidth || $.value.siderWidth === 0) return null;
3210
+ const R = ge({
3219
3211
  slots: n,
3220
3212
  props: e,
3221
- keys: Zt,
3213
+ keys: qt,
3222
3214
  render: !0
3223
- }), $ = ge({
3215
+ }), D = ge({
3224
3216
  slots: n,
3225
3217
  props: e,
3226
3218
  keys: ["logoRender", "menuHeaderRender", "menuFooterRender", "menuContentRender"]
3227
3219
  });
3228
- return o(Ia, oe(e, C, Y(), {
3229
- isMobile: A.value,
3230
- logoRender: $.logoRender,
3231
- siderWidth: M.value.siderWidth,
3232
- menuHeaderRender: $.menuHeaderRender,
3233
- menuFooterRender: $.menuFooterRender,
3234
- menuContentRender: $.menuContentRender
3220
+ return o(xa, oe(e, R, U(), {
3221
+ isMobile: Y.value,
3222
+ logoRender: D.logoRender,
3223
+ siderWidth: $.value.siderWidth,
3224
+ menuHeaderRender: D.menuHeaderRender,
3225
+ menuFooterRender: D.menuFooterRender,
3226
+ menuContentRender: D.menuContentRender
3235
3227
  }), null);
3236
- }, _ = () => {
3237
- const C = Pe({
3228
+ }, z = () => {
3229
+ const R = Pe({
3238
3230
  slots: n,
3239
3231
  props: e,
3240
3232
  key: "footerRender",
3241
3233
  render: !1
3242
3234
  });
3243
- return o(G, null, [C === !1 ? null : typeof C == "function" ? C(e) : C || o(wa, {
3244
- copyright: h.value.copyrightRender,
3235
+ return o(_, null, [R === !1 ? null : typeof R == "function" ? R(e) : R || o($a, {
3236
+ copyright: u.value.copyrightRender,
3245
3237
  links: e.footerLinks
3246
- }, null), c.value && o("div", {
3247
- class: `${a}-has-footer`,
3238
+ }, null), m.value && o("div", {
3239
+ class: `${t}-has-footer`,
3248
3240
  style: {
3249
3241
  height: "64px",
3250
- marginBlockStart: I.value.marginMD
3242
+ marginBlockStart: p.value.marginMD
3251
3243
  }
3252
3244
  }, null)]);
3253
3245
  };
3254
- return Yn({
3255
- ...Fe(Xe(e), Gn),
3256
- collapsedProps: V,
3246
+ return Vn({
3247
+ ...Fe(Ee(e), Xn),
3248
+ collapsedProps: b,
3257
3249
  getPrefixCls: ae,
3258
- collapsed: s,
3259
- collapsedEffect: x(() => V.value?.width ? s.value : !1),
3260
- settings: x(() => e.settings),
3261
- menu: j,
3262
- tabsComRef: R,
3263
- contentFullScreen: S,
3264
- layoutProps: M,
3265
- isMobile: A,
3266
- renderRouterView: y,
3267
- breadcrumb: E,
3268
- fullScreenOnTabsHide: b,
3269
- breadcrumbRender: T,
3270
- hasFooterToolbar: c,
3271
- setHasFooterToolbar: d,
3272
- pageHeaderRender: x(() => ie({
3250
+ collapsed: I,
3251
+ collapsedEffect: v(() => b.value?.width ? I.value : !1),
3252
+ settings: v(() => e.settings),
3253
+ menu: T,
3254
+ contentFullScreen: f,
3255
+ layoutProps: $,
3256
+ isMobile: Y,
3257
+ renderRouterView: M,
3258
+ breadcrumb: K,
3259
+ fullScreenOnTabsHide: y,
3260
+ breadcrumbRender: x,
3261
+ hasFooterToolbar: m,
3262
+ setHasFooterToolbar: s,
3263
+ pageHeaderRender: v(() => ie({
3273
3264
  slots: n,
3274
3265
  props: {
3275
3266
  pageHeaderRender: e.pageContainer?.pageHeaderRender
3276
3267
  },
3277
3268
  key: "pageHeaderRender"
3278
3269
  }))
3279
- }), t({
3280
- tabsComRef: () => R.value
3281
3270
  }), () => {
3282
- const C = {
3283
- minWidth: M.value.isWide ? se(e.settings.wideWidth) : void 0,
3271
+ const R = {
3272
+ minWidth: $.value.isWide ? se(e.settings.wideWidth) : void 0,
3284
3273
  minHeight: e.settings.layout === "simple" ? `calc(100vh - ${se(e.settings.headerHeight)})` : void 0,
3285
3274
  ...e.styles?.root || {}
3286
3275
  };
3287
- return r(o(G, null, [e.pure ? n.default?.() : o("div", {
3276
+ return a(o(_, null, [e.pure ? n.default?.() : o("div", {
3288
3277
  id: e.id,
3289
- class: O({
3290
- [`${l.value}`]: !0,
3278
+ class: w({
3279
+ [`${r.value}`]: !0,
3291
3280
  [`${e.classNames?.root}`]: !!e.classNames?.root,
3292
- [`${a}`]: !0,
3293
- [`${a}-${e.settings.layout}`]: !0
3281
+ [`${t}`]: !0,
3282
+ [`${t}-${e.settings.layout}`]: !0
3294
3283
  }),
3295
- style: C
3296
- }, [I.value.layout?.bgLayout ? o("div", {
3297
- class: O(`${a}-bg-list`, l.value)
3284
+ style: R
3285
+ }, [p.value.layout?.bgLayout ? o("div", {
3286
+ class: w(`${t}-bg-list`, r.value)
3298
3287
  }, null) : null, o(Te, {
3299
- style: M.value.isWide ? {
3288
+ style: $.value.isWide ? {
3300
3289
  width: se(e.settings.wideWidth),
3301
- paddingTop: qn(M.value.headerHeight, 20),
3302
- margin: M.value.isWide ? "0 auto" : void 0
3290
+ paddingTop: Yn($.value.headerHeight, 20),
3291
+ margin: $.value.isWide ? "0 auto" : void 0
3303
3292
  } : void 0
3304
3293
  }, {
3305
- default: () => [te(), o(Te, {
3306
- style: v
3294
+ default: () => [Z(), o(Te, {
3295
+ style: P
3307
3296
  }, {
3308
- default: () => [D(), o(Ya, oe(Fe(e, Ga), {
3297
+ default: () => [V(), o(Ya, oe(Fe(e, Ga), {
3309
3298
  tabsRoute: {
3310
3299
  ...e.tabsRoute,
3311
3300
  itemRender: n.tabsRouteItemRender || e.tabsRoute?.itemRender
3312
3301
  },
3313
- hashId: l.value,
3314
- prefixCls: a
3302
+ hashId: r.value,
3303
+ prefixCls: t
3315
3304
  }), {
3316
3305
  default: () => [o(_a, {
3317
- class: O(`${a}-content`, l.value)
3306
+ class: w(`${t}-content`, r.value)
3318
3307
  }, {
3319
3308
  default: () => [n.default?.()]
3320
3309
  })]
3321
- }), !M.value.isWide && _()]
3310
+ }), !$.value.isWide && z()]
3322
3311
  })]
3323
- }), M.value.isWide && _()])]));
3312
+ }), $.value.isWide && z()])]));
3324
3313
  };
3325
3314
  }
3326
- }), Ti = /* @__PURE__ */ X({
3315
+ }), Fi = /* @__PURE__ */ G({
3327
3316
  name: "GProLayout",
3328
3317
  compatConfig: {
3329
3318
  MODE: 3
3330
3319
  },
3331
3320
  inheritAttrs: !1,
3332
- props: st,
3321
+ props: ut,
3333
3322
  emits: {
3334
3323
  select: (e) => !0,
3335
3324
  "update:selected-keys": (e) => !0,
@@ -3351,77 +3340,77 @@ const Va = /* @__PURE__ */ X({
3351
3340
  emit: t,
3352
3341
  expose: a
3353
3342
  }) {
3354
- const r = Tt(), l = q(), [i, f] = Oe(e.theme ?? r?.theme?.value ?? "system");
3355
- U(() => e.theme, (s) => {
3356
- s && (i.value = s);
3343
+ const r = Ft(), l = Q(), [i, m] = Be(e.theme ?? r?.theme?.value ?? "system");
3344
+ k(() => e.theme, (y) => {
3345
+ y && (i.value = y);
3357
3346
  });
3358
- const c = Ot(), d = x(() => {
3359
- let s = e.token || {};
3360
- if (!s.layout?.header?.heightLayoutHeader) {
3361
- const y = e.settings.headerHeight === 0 ? k.headerHeight : se(e.settings.headerHeight || k.headerHeight);
3362
- s = Ze(s, {
3347
+ const s = Ot(), c = v(() => {
3348
+ let y = e.token || {};
3349
+ if (!y.layout?.header?.heightLayoutHeader) {
3350
+ const f = e.settings.headerHeight === 0 ? X.headerHeight : se(e.settings.headerHeight || X.headerHeight);
3351
+ y = de(y, {
3363
3352
  layout: {
3364
3353
  header: {
3365
- heightLayoutHeader: y
3354
+ heightLayoutHeader: f
3366
3355
  }
3367
3356
  }
3368
3357
  });
3369
3358
  }
3370
- return Ze(s, {
3359
+ return de(y, {
3371
3360
  layout: {
3372
- key: `${c.value ? "dark" : "light"}:${e.settings.layout}`
3361
+ key: `${s.value ? "dark" : "light"}:${e.settings.layout}`
3373
3362
  }
3374
3363
  });
3375
- }), p = (s) => {
3376
- t("collapse", s), e.collapsedProps?.onCollapse && e.collapsedProps.onCollapse(s);
3377
- }, u = (s) => {
3378
- t("update:open-keys", s), t("openKeys", s);
3379
- }, h = (s) => {
3380
- t("update:selected-keys", s), t("select", s);
3381
- }, I = (s) => {
3382
- t("update:tabs", s), t("tabsChange", s);
3383
- }, R = (s) => {
3384
- t("contentFullScreenChange", s);
3364
+ }), g = (y) => {
3365
+ t("collapse", y), e.collapsedProps?.onCollapse && e.collapsedProps.onCollapse(y);
3366
+ }, u = (y) => {
3367
+ t("update:open-keys", y), t("openKeys", y);
3368
+ }, p = (y) => {
3369
+ t("update:selected-keys", y), t("select", y);
3370
+ }, I = (y) => {
3371
+ t("update:tabs", y), t("tabsChange", y);
3372
+ }, M = (y) => {
3373
+ t("contentFullScreenChange", y);
3385
3374
  };
3386
- return a({
3387
- tabsComRef: () => l.value?.tabsComRef?.()
3375
+ return La({
3376
+ tabsRouteRef: l
3377
+ }), a({
3378
+ tabsRouteRef: l
3388
3379
  }), () => {
3389
- const s = ["onSelect", "onOpenKeys", "onCollapse", "onTabsChange", "onDarkChange", "theme", "onContentFullScreenChange", "onThemeChange"];
3390
- return o(et, null, {
3391
- default: () => [o(xn, {
3392
- token: d.value,
3393
- dark: c.value,
3380
+ const y = ["onSelect", "onOpenKeys", "onCollapse", "onTabsChange", "onDarkChange", "theme", "onContentFullScreenChange", "onThemeChange"];
3381
+ return o(tt, null, {
3382
+ default: () => [o(Cn, {
3383
+ token: c.value,
3384
+ dark: s.value,
3394
3385
  cssVar: e.cssVar
3395
3386
  }, {
3396
- default: () => [o(Kn, {
3387
+ default: () => [o(jn, {
3397
3388
  theme: i.value,
3398
- onChange: (y) => {
3399
- f(y), t("themeChange", y), t("update:theme", y);
3389
+ onChange: (f) => {
3390
+ m(f), t("themeChange", f), t("update:theme", f);
3400
3391
  },
3401
3392
  onChangeBase: () => {
3402
- e.onDarkChange?.(c.value);
3393
+ e.onDarkChange?.(s.value);
3403
3394
  }
3404
3395
  }, {
3405
- default: () => [o(qa, oe({
3406
- ref: l
3407
- }, de(e, s), {
3408
- onSelect: h,
3396
+ default: () => [o(qa, oe(ve(e, y), {
3397
+ onSelect: p,
3409
3398
  onOpenKeys: u,
3410
- onCollapse: p,
3399
+ onCollapse: g,
3411
3400
  onTabsChange: I,
3412
- onContentFullScreenChange: R
3401
+ onContentFullScreenChange: M
3413
3402
  }), n)]
3414
3403
  })]
3415
3404
  })]
3416
3405
  });
3417
3406
  };
3418
3407
  }
3419
- }), { useInjectContext: Za, provideContext: Qa } = tt("pro-page"), Ja = "anticon", eo = /* @__PURE__ */ Symbol("configProvider"), to = {
3408
+ }), { useInjectContext: Za, provideContext: Qa } = Xe("pro-page"), Ja = "anticon", eo = /* @__PURE__ */ Symbol("configProvider"), to = {
3420
3409
  getPrefixCls: (e, n) => n || (e ? `ant-${e}` : "ant"),
3421
- iconPrefixCls: x(() => Ja),
3422
- getPopupContainer: x(() => () => document.body),
3423
- direction: x(() => "ltr")
3424
- }, no = () => an(eo, to), ao = () => ({
3410
+ iconPrefixCls: v(() => Ja),
3411
+ getPopupContainer: v(() => () => document.body),
3412
+ direction: v(() => "ltr")
3413
+ }, no = () => nn(eo, to), ao = () => ({
3425
3414
  extra: {
3426
3415
  type: [Object, String, Number, Function, Object, Array],
3427
3416
  default: void 0
@@ -3451,7 +3440,7 @@ const Va = /* @__PURE__ */ X({
3451
3440
  boxSizing: "border-box",
3452
3441
  lineHeight: "64px",
3453
3442
  /* A way to reset the style of the component. */
3454
- backgroundColor: In(e.colorBgElevated, 0.6),
3443
+ backgroundColor: xn(e.colorBgElevated, 0.6),
3455
3444
  borderBlockStart: `1px solid ${e.colorSplit}`,
3456
3445
  "-webkit-backdrop-filter": "blur(8px)",
3457
3446
  backdropFilter: "blur(8px)",
@@ -3474,7 +3463,7 @@ const Va = /* @__PURE__ */ X({
3474
3463
  }
3475
3464
  });
3476
3465
  function lo(e) {
3477
- return Ce("ProLayoutFooterToolbar", (n) => {
3466
+ return xe("ProLayoutFooterToolbar", (n) => {
3478
3467
  const t = {
3479
3468
  ...n,
3480
3469
  componentCls: `.${e}`
@@ -3483,7 +3472,7 @@ function lo(e) {
3483
3472
  });
3484
3473
  }
3485
3474
  function io(e, { stylish: n }) {
3486
- return Ce("ProLayoutFooterToolbarStylish", (t) => {
3475
+ return xe("ProLayoutFooterToolbarStylish", (t) => {
3487
3476
  const a = {
3488
3477
  ...t,
3489
3478
  componentCls: `.${e}`
@@ -3496,9 +3485,9 @@ function io(e, { stylish: n }) {
3496
3485
  });
3497
3486
  }
3498
3487
  function ro(e) {
3499
- return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !ve(e);
3488
+ return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !Ce(e);
3500
3489
  }
3501
- const so = /* @__PURE__ */ X({
3490
+ const so = /* @__PURE__ */ G({
3502
3491
  name: "FooterToolbar",
3503
3492
  props: ao(),
3504
3493
  inheritAttrs: !1,
@@ -3506,7 +3495,7 @@ const so = /* @__PURE__ */ X({
3506
3495
  setup(e, {
3507
3496
  slots: n
3508
3497
  }) {
3509
- const t = Z(), a = (t.getPrefixCls || ae)({
3498
+ const t = q(), a = (t.getPrefixCls || ae)({
3510
3499
  suffixCls: "footer-toolbar",
3511
3500
  isPor: !0
3512
3501
  }), {
@@ -3514,50 +3503,50 @@ const so = /* @__PURE__ */ X({
3514
3503
  } = no(), {
3515
3504
  wrapSSR: l,
3516
3505
  hashId: i
3517
- } = lo(a), f = x(() => t?.collapsed?.value), c = x(() => t?.layoutProps?.value), d = x(() => t?.collapsedProps?.value), p = x(() => t?.isMobile.value ? !1 : t?.collapsedEffect?.value), u = x(() => d?.value?.width ? p.value ? d.value?.width : c.value.siderWidth : f.value ? 0 : c.value.siderWidth), h = Be(() => {
3518
- if (c.value?.hasSilder)
3519
- return c.value?.siderWidth ? t?.isMobile?.value ? "100%" : `calc(100% - ${z(u.value)})` : "100%";
3520
- }, [() => t?.collapsed?.value, () => t?.layoutProps?.value?.hasSilder, () => t?.isMobile, () => t?.layoutProps?.value?.siderWidth]), I = Be(() => typeof window > "u" || typeof document > "u" ? null : r?.value?.() || document.body, []), R = io(`${a}.${a}-stylish`, {
3506
+ } = lo(a), m = v(() => t?.collapsed?.value), s = v(() => t?.layoutProps?.value), c = v(() => t?.collapsedProps?.value), g = v(() => t?.isMobile.value ? !1 : t?.collapsedEffect?.value), u = v(() => c?.value?.width ? g.value ? c.value?.width : s.value.siderWidth : m.value ? 0 : s.value.siderWidth), p = Oe(() => {
3507
+ if (s.value?.hasSilder)
3508
+ return s.value?.siderWidth ? t?.isMobile?.value ? "100%" : `calc(100% - ${W(u.value)})` : "100%";
3509
+ }, [() => t?.collapsed?.value, () => t?.layoutProps?.value?.hasSilder, () => t?.isMobile, () => t?.layoutProps?.value?.siderWidth]), I = Oe(() => typeof window > "u" || typeof document > "u" ? null : r?.value?.() || document.body, []), M = io(`${a}.${a}-stylish`, {
3521
3510
  stylish: e.stylish
3522
3511
  });
3523
- return St(() => {
3512
+ return Ze(() => {
3524
3513
  !t || !t?.setHasFooterToolbar || t?.setHasFooterToolbar(!0);
3525
- }), on(() => {
3514
+ }), an(() => {
3526
3515
  t?.setHasFooterToolbar?.(!1);
3527
3516
  }), () => {
3528
- const s = ie({
3517
+ const y = ie({
3529
3518
  slots: n,
3530
3519
  props: e,
3531
3520
  key: "extra"
3532
- }), y = Pe({
3521
+ }), f = Pe({
3533
3522
  slots: n,
3534
3523
  props: e,
3535
3524
  key: "renderContent"
3536
- }), b = o(G, null, [o("div", {
3525
+ }), x = o(_, null, [o("div", {
3537
3526
  class: `${a}-left ${i.value}`.trim()
3538
- }, [s]), o("div", {
3527
+ }, [y]), o("div", {
3539
3528
  class: `${a}-right ${i.value}`.trim()
3540
- }, [n.default?.()])]), S = o("div", {
3541
- class: O(e.class, i.value, a, {
3529
+ }, [n.default?.()])]), C = o("div", {
3530
+ class: w(e.class, i.value, a, {
3542
3531
  [`${a}-stylish`]: !!e.stylish
3543
3532
  }),
3544
3533
  style: {
3545
- width: h.value,
3534
+ width: p.value,
3546
3535
  ...e.style
3547
3536
  }
3548
- }, [y && On(y) ? y({
3537
+ }, [f && Mn(f) ? f({
3549
3538
  props: {
3550
3539
  ...e,
3551
3540
  ...t,
3552
- leftWidth: h.value
3541
+ leftWidth: p.value
3553
3542
  },
3554
- dom: b
3555
- }) : b]), T = !Bn() || !e.portalDom || !I.value ? S : o(ln, {
3543
+ dom: x
3544
+ }) : x]), P = !Bn() || !e.portalDom || !I.value ? C : o(on, {
3556
3545
  to: I.value
3557
- }, ro(S) ? S : {
3558
- default: () => [S]
3546
+ }, ro(C) ? C : {
3547
+ default: () => [C]
3559
3548
  });
3560
- return R.wrapSSR(l(o(G, null, [T])));
3549
+ return M.wrapSSR(l(o(_, null, [P])));
3561
3550
  };
3562
3551
  }
3563
3552
  }), uo = (e) => ({
@@ -3607,7 +3596,7 @@ const so = /* @__PURE__ */ X({
3607
3596
  }
3608
3597
  }
3609
3598
  }
3610
- }), co = /* @__PURE__ */ X({
3599
+ }), co = /* @__PURE__ */ G({
3611
3600
  name: "ProPageHeader",
3612
3601
  props: {
3613
3602
  close: {
@@ -3619,7 +3608,7 @@ const so = /* @__PURE__ */ X({
3619
3608
  breadcrumb: ye.breadcrumbRender
3620
3609
  },
3621
3610
  setup(e) {
3622
- const n = Z(), a = (n?.getPrefixCls || ae)({
3611
+ const n = q(), a = (n?.getPrefixCls || ae)({
3623
3612
  isPor: !0,
3624
3613
  suffixCls: "page-header"
3625
3614
  }), {
@@ -3632,15 +3621,15 @@ const so = /* @__PURE__ */ X({
3632
3621
  class: [`${a}`, l.value, i && `${a}-has-breadcrumb`],
3633
3622
  style: e.style
3634
3623
  }, [n?.breadcrumb?.value?.position === "pageHeader" && n?.breadcrumb?.value?.visible && o("div", {
3635
- class: O(`${a}-top`, l.value)
3636
- }, [o(Yt, {
3624
+ class: w(`${a}-top`, l.value)
3625
+ }, [o(Vt, {
3637
3626
  breadcrumb: e.breadcrumb
3638
3627
  }, null), n?.contentFullScreen?.value && e.close && o("div", {
3639
3628
  class: [`${a}-close`, l.value],
3640
3629
  onClick: () => {
3641
3630
  n && (n.contentFullScreen.value = !1);
3642
3631
  }
3643
- }, [o(Ae, {
3632
+ }, [o(je, {
3644
3633
  class: [`${a}-close-x`, l.value]
3645
3634
  }, null)])]), e.content && o("div", {
3646
3635
  class: [`${a}-content`, l.value]
@@ -3649,13 +3638,13 @@ const so = /* @__PURE__ */ X({
3649
3638
  onClick: () => {
3650
3639
  n && (n.contentFullScreen.value = !1);
3651
3640
  }
3652
- }, [o(Ae, {
3641
+ }, [o(je, {
3653
3642
  class: [`${a}-close-x`, l.value]
3654
3643
  }, null)])])]));
3655
3644
  };
3656
3645
  }
3657
3646
  }), mo = (e) => {
3658
- const { layout: n } = xe(e), t = e.layout?.pageContainer, a = t?.borderRadius || e.borderRadiusLG, r = `${e.proComponentsCls}-basic-layout-content`;
3647
+ const { layout: n } = Ie(e), t = e.layout?.pageContainer, a = t?.borderRadius || e.borderRadiusLG, r = `${e.proComponentsCls}-basic-layout-content`;
3659
3648
  return {
3660
3649
  [`${e.proComponentsCls}-basic-layout`]: {
3661
3650
  [`&-content${r}-width`]: {
@@ -3706,19 +3695,19 @@ const so = /* @__PURE__ */ X({
3706
3695
  };
3707
3696
  };
3708
3697
  function fo(e) {
3709
- return Ce("ProPageContainer", (n) => {
3710
- const t = Je(n, {
3698
+ return xe("ProPageContainer", (n) => {
3699
+ const t = et(n, {
3711
3700
  gridContent: `${n.proComponentsCls}-grid-content`
3712
3701
  });
3713
3702
  return [mo(t)];
3714
3703
  }, e);
3715
3704
  }
3716
- function It(e) {
3717
- return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !ve(e);
3705
+ function St(e) {
3706
+ return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !Ce(e);
3718
3707
  }
3719
3708
  const po = {
3720
3709
  type: "default"
3721
- }, Fi = /* @__PURE__ */ X({
3710
+ }, Ni = /* @__PURE__ */ G({
3722
3711
  inheritAttrs: !1,
3723
3712
  name: "GProPageContainer",
3724
3713
  props: ye,
@@ -3729,91 +3718,91 @@ const po = {
3729
3718
  attrs: t,
3730
3719
  expose: a
3731
3720
  }) {
3732
- const r = Ft(), l = Za(), i = Z(), f = Sa(), c = i?.getPrefixCls || ae, d = c({
3721
+ const r = Nt(), l = Za(), i = q(), m = Ia(), s = i?.getPrefixCls || ae, c = s({
3733
3722
  suffixCls: "page-container",
3734
3723
  isPor: !0
3735
- }), p = c({
3724
+ }), g = s({
3736
3725
  suffixCls: "grid-content",
3737
3726
  isPor: !0
3738
- }), u = x(() => i?.pageContainer?.value || {}), h = x(() => {
3739
- const C = re(e.waterMarkProps) ? {} : e.waterMarkProps || {};
3727
+ }), u = v(() => i?.pageContainer?.value || {}), p = v(() => {
3728
+ const B = re(e.waterMarkProps) ? {} : e.waterMarkProps || {};
3740
3729
  return {
3741
3730
  ...re(i?.waterMarkProps?.value) ? {} : i?.waterMarkProps?.value || {},
3742
- ...C
3731
+ ...B
3743
3732
  };
3744
- }), I = x(() => e.pageCardProps || u.value?.pageCardProps), R = x(() => e.pageHeaderStyle || u.value?.pageHeaderStyle), s = x(() => e.pageContentStyle || u.value?.pageContentStyle), y = x(() => e.pageChildrenContentClass || u.value?.pageChildrenContentClass || ""), b = x(() => e.pageChildrenContentStyle || u.value?.pageChildrenContentStyle || {}), S = x(() => i?.layoutProps?.value?.isWide), T = x(() => re(e.usePageCard) ? e.usePageCard : re(u.value?.usePageCard) ? u.value?.usePageCard : !0), L = x(() => {
3745
- const C = e.contentWidth ?? u.value?.contentWidth;
3746
- return z(C);
3747
- }), v = x(() => {
3748
- const C = re(e.loading) ? e.loading : !!e.loading?.spinning;
3749
- return l?.spinning?.value ? !1 : C;
3750
- }), M = x(() => {
3751
- const C = u.value?.loadingProps;
3752
- return typeof e.loading == "boolean" ? C ?? po : {
3753
- ...C,
3733
+ }), I = v(() => e.pageCardProps || u.value?.pageCardProps), M = v(() => e.pageHeaderStyle || u.value?.pageHeaderStyle), y = v(() => e.pageContentStyle || u.value?.pageContentStyle), f = v(() => e.pageChildrenContentClass || u.value?.pageChildrenContentClass || ""), x = v(() => e.pageChildrenContentStyle || u.value?.pageChildrenContentStyle || {}), C = v(() => i?.layoutProps?.value?.isWide), P = v(() => re(e.usePageCard) ? e.usePageCard : re(u.value?.usePageCard) ? u.value?.usePageCard : !0), $ = v(() => {
3734
+ const B = e.contentWidth ?? u.value?.contentWidth;
3735
+ return W(B);
3736
+ }), b = v(() => {
3737
+ const B = re(e.loading) ? e.loading : !!e.loading?.spinning;
3738
+ return l?.spinning?.value ? !1 : B;
3739
+ }), T = v(() => {
3740
+ const B = u.value?.loadingProps;
3741
+ return typeof e.loading == "boolean" ? B ?? po : {
3742
+ ...B,
3754
3743
  ...e.loading
3755
3744
  };
3756
- }), V = x(() => {
3757
- const C = ie({
3745
+ }), Y = v(() => {
3746
+ const B = ie({
3758
3747
  slots: n,
3759
3748
  props: e,
3760
3749
  key: "pageHeaderContentRender"
3761
- }), $ = i?.breadcrumb?.value || {}, J = $.routes || [];
3762
- return S.value ? !1 : $?.position === "pageHeader" && J.length > 0 || C;
3763
- }), j = x(() => e.height ? {
3764
- [e.height === "min" ? "min-height" : e.height === "max" ? "max-height" : "height"]: f.value,
3750
+ }), O = i?.breadcrumb?.value || {}, ee = O.routes || [];
3751
+ return C.value ? !1 : O?.position === "pageHeader" && ee.length > 0 || B;
3752
+ }), K = v(() => e.height ? {
3753
+ [e.height === "min" ? "min-height" : e.height === "max" ? "max-height" : "height"]: m.value,
3765
3754
  overflow: e.height !== "min" ? "hidden" : void 0
3766
3755
  } : {});
3767
- U([() => e.breadcrumbRender, () => i?.breadcrumb?.value?.position], () => {
3768
- A();
3756
+ k([() => e.breadcrumbRender, () => i?.breadcrumb?.value?.position], () => {
3757
+ U();
3769
3758
  }, {
3770
3759
  deep: !0
3771
- }), Cn(() => {
3772
- i && i.fullScreenOnTabsHide && (i.fullScreenOnTabsHide.value = !!e.fullScreenOnTabsHide), A();
3760
+ }), vn(() => {
3761
+ i && i.fullScreenOnTabsHide && (i.fullScreenOnTabsHide.value = !!e.fullScreenOnTabsHide), U();
3773
3762
  });
3774
- function A() {
3775
- const C = Pe({
3763
+ function U() {
3764
+ const B = Pe({
3776
3765
  slots: n,
3777
3766
  props: e,
3778
3767
  key: "breadcrumbRender"
3779
3768
  });
3780
- i && (i.breadcrumbRender.value = i?.breadcrumb?.value?.position === "header" ? C : void 0);
3769
+ i && (i.breadcrumbRender.value = i?.breadcrumb?.value?.position === "header" ? B : void 0);
3781
3770
  }
3782
3771
  const {
3783
- wrapSSR: E,
3784
- hashId: Y
3785
- } = fo(d);
3786
- U(() => i?.contentFullScreen?.value, (C) => {
3787
- e.onContentFullScreenChange?.(C);
3772
+ wrapSSR: V,
3773
+ hashId: Z
3774
+ } = fo(c);
3775
+ k(() => i?.contentFullScreen?.value, (B) => {
3776
+ e.onContentFullScreenChange?.(B);
3788
3777
  });
3789
- const D = () => {
3790
- const C = ie({
3778
+ const z = () => {
3779
+ const B = ie({
3791
3780
  slots: n,
3792
3781
  props: e,
3793
3782
  key: "pageChildrenExtraRender"
3794
- }), $ = O(`${d}-children-container`, Y.value, y.value);
3783
+ }), O = w(`${c}-children-container`, Z.value, f.value);
3795
3784
  return o("div", {
3796
- class: $,
3785
+ class: O,
3797
3786
  style: {
3798
- ...b.value
3787
+ ...x.value
3799
3788
  }
3800
- }, [v.value && o("div", {
3801
- class: O(`${d}-spinning`, Y.value)
3802
- }, [o(Bt, {
3789
+ }, [b.value && o("div", {
3790
+ class: w(`${c}-spinning`, Z.value)
3791
+ }, [o(Pt, {
3803
3792
  indicator: r?.indicator?.value,
3804
- tip: M.value?.tip
3793
+ tip: T.value?.tip
3805
3794
  }, null)]), o("div", {
3806
- class: O(`${d}-spinning-content`, Y.value, v.value && M.value.type ? `${d}-spinning-content-${M.value.type}` : "")
3807
- }, [C, T.value ? o(jn, oe({
3795
+ class: w(`${c}-spinning-content`, Z.value, b.value && T.value.type ? `${c}-spinning-content-${T.value.type}` : "")
3796
+ }, [B, P.value ? o(zn, oe({
3808
3797
  bordered: !1
3809
3798
  }, I.value || {}, {
3810
3799
  style: {
3811
3800
  ...I.value?.style || {},
3812
- ...j.value
3801
+ ...K.value
3813
3802
  },
3814
3803
  bodyStyle: {
3815
3804
  ...I.value?.bodyStyle || {},
3816
- ...j.value
3805
+ ...K.value
3817
3806
  }
3818
3807
  }), {
3819
3808
  default: () => [n.default?.()]
@@ -3821,41 +3810,41 @@ const po = {
3821
3810
  class: I.value?.class,
3822
3811
  style: {
3823
3812
  ...I.value?.style || {},
3824
- ...j.value
3813
+ ...K.value
3825
3814
  }
3826
3815
  }, [n.default?.()])])]);
3827
- }, te = () => {
3816
+ }, R = () => {
3828
3817
  if (e.waterMarkProps !== !1 && i?.waterMarkProps?.value !== !1) {
3829
- let $;
3830
- return o(Xn, we(h.value), It($ = D()) ? $ : {
3831
- default: () => [$]
3818
+ let O;
3819
+ return o(En, Qe(p.value), St(O = z()) ? O : {
3820
+ default: () => [O]
3832
3821
  });
3833
3822
  }
3834
- return D();
3835
- }, _ = () => o(G, null, [o("div", {
3836
- class: [p, Y.value],
3823
+ return z();
3824
+ }, D = () => o(_, null, [o("div", {
3825
+ class: [g, Z.value],
3837
3826
  style: {
3838
- width: L.value,
3839
- marginInline: L.value && "auto"
3827
+ width: $.value,
3828
+ marginInline: $.value && "auto"
3840
3829
  }
3841
3830
  }, [o("div", {
3842
- class: `${p}-children ${Y.value}`,
3843
- style: s.value
3844
- }, [te()])])]);
3831
+ class: `${g}-children ${Z.value}`,
3832
+ style: y.value
3833
+ }, [R()])])]);
3845
3834
  return a({
3846
- changeContentFullScreen: (C) => {
3847
- i && (i.contentFullScreen.value = C);
3835
+ changeContentFullScreen: (B) => {
3836
+ i && (i.contentFullScreen.value = B);
3848
3837
  }
3849
3838
  }), () => {
3850
- const C = ie({
3839
+ const B = ie({
3851
3840
  slots: n,
3852
3841
  props: e,
3853
3842
  key: "footer"
3854
- }), $ = ie({
3843
+ }), O = ie({
3855
3844
  slots: n,
3856
3845
  props: e,
3857
3846
  key: "pageHeaderRender"
3858
- }) || i?.pageHeaderRender?.value, J = ie({
3847
+ }) || i?.pageHeaderRender?.value, ee = ie({
3859
3848
  slots: n,
3860
3849
  props: e,
3861
3850
  key: "pageHeaderContentRender"
@@ -3864,19 +3853,19 @@ const po = {
3864
3853
  props: e,
3865
3854
  key: "breadcrumbRender"
3866
3855
  });
3867
- return E(o("div", {
3868
- class: O(i?.classNames?.value?.content, Y.value, d, t.class),
3856
+ return V(o("div", {
3857
+ class: w(i?.classNames?.value?.content, Z.value, c, t.class),
3869
3858
  style: {
3870
3859
  ...t.style || {},
3871
3860
  ...i?.styles?.value?.content || {}
3872
3861
  }
3873
- }, [o(G, null, [$ !== !1 && V.value && ($ || o(co, {
3874
- style: R?.value,
3862
+ }, [o(_, null, [O !== !1 && Y.value && (O || o(co, {
3863
+ style: M?.value,
3875
3864
  breadcrumb: ue,
3876
- content: J,
3865
+ content: ee,
3877
3866
  close: e.fullScreenOnTabsHide
3878
- }, null)), _()]), C && o(so, e.footerToolBarProps || {}, It(C) ? C : {
3879
- default: () => [C]
3867
+ }, null)), D()]), B && o(so, e.footerToolBarProps || {}, St(B) ? B : {
3868
+ default: () => [B]
3880
3869
  })]));
3881
3870
  };
3882
3871
  }
@@ -3895,7 +3884,7 @@ const po = {
3895
3884
  width: "100%",
3896
3885
  height: "100%",
3897
3886
  zIndex: 200,
3898
- backgroundColor: Sn(e.colorBgContainer, 0.5),
3887
+ backgroundColor: In(e.colorBgContainer, 0.5),
3899
3888
  [`& > ${e.componentCls}-spin`]: {
3900
3889
  position: "absolute",
3901
3890
  top: "50%",
@@ -3915,12 +3904,12 @@ const po = {
3915
3904
  }
3916
3905
  });
3917
3906
  function ho(e) {
3918
- return Ce("PageLoading", (n) => [go(n)], e);
3907
+ return xe("PageLoading", (n) => [go(n)], e);
3919
3908
  }
3920
- const Ni = /* @__PURE__ */ X({
3909
+ const Li = /* @__PURE__ */ G({
3921
3910
  name: "GProAppPage",
3922
3911
  props: {
3923
- ...Un,
3912
+ ...An,
3924
3913
  spinning: {
3925
3914
  type: Object,
3926
3915
  default: () => ({})
@@ -3932,7 +3921,7 @@ const Ni = /* @__PURE__ */ X({
3932
3921
  slots: n,
3933
3922
  attrs: t
3934
3923
  }) {
3935
- Mt(Qn);
3924
+ Bt(qn);
3936
3925
  const a = ae({
3937
3926
  isPor: !0,
3938
3927
  suffixCls: "app-page"
@@ -3941,25 +3930,25 @@ const Ni = /* @__PURE__ */ X({
3941
3930
  wrapSSR: l
3942
3931
  } = ho(a);
3943
3932
  return Qa({
3944
- spinning: x(() => e.spinning?.loading)
3933
+ spinning: v(() => e.spinning?.loading)
3945
3934
  }), () => {
3946
3935
  const i = ge({
3947
3936
  slots: n,
3948
3937
  props: e,
3949
- keys: kn,
3938
+ keys: Kn,
3950
3939
  render: !0
3951
3940
  });
3952
- return l(o(En, {
3941
+ return l(o(Un, {
3953
3942
  style: t.style,
3954
- class: O(t.class, e.spinning?.loading && `${a}-loading`, a, r.value),
3955
- indicator: i.indicator ?? o(ke, {
3943
+ class: w(t.class, e.spinning?.loading && `${a}-loading`, a, r.value),
3944
+ indicator: i.indicator ?? o(Ke, {
3956
3945
  type: "spinning",
3957
3946
  spin: !0,
3958
3947
  class: `${a}-spin-dot ${r.value}`
3959
3948
  }, null),
3960
3949
  emptyText: i.emptyText
3961
3950
  }, {
3962
- default: () => [o(Vn, {
3951
+ default: () => [o(kn, {
3963
3952
  barStyle: {
3964
3953
  x: {
3965
3954
  zIndex: 110
@@ -3974,14 +3963,14 @@ const Ni = /* @__PURE__ */ X({
3974
3963
  }, {
3975
3964
  default: () => [n.default?.()]
3976
3965
  }), e.spinning?.loading && o("div", {
3977
- class: O(`${a}-blur`, r.value),
3966
+ class: w(`${a}-blur`, r.value),
3978
3967
  style: {
3979
3968
  backgroundColor: e.spinning?.blur ? void 0 : "unset",
3980
3969
  ...e.spinning?.style || {}
3981
3970
  }
3982
3971
  }, [o("div", {
3983
- class: O(`${a}-spin`)
3984
- }, [i.indicator ?? o(ke, {
3972
+ class: w(`${a}-spin`)
3973
+ }, [i.indicator ?? o(Ke, {
3985
3974
  type: "spinning",
3986
3975
  spin: !0,
3987
3976
  class: `${a}-spin-dot ${r.value}`
@@ -3989,24 +3978,24 @@ const Ni = /* @__PURE__ */ X({
3989
3978
  }));
3990
3979
  };
3991
3980
  }
3992
- }), yo = ["left", "right"], $e = ["left", "right", "down", "up"], bo = ["downBig", "upBig", "leftBig", "rightBig"], vo = ["topLeft", "bottomRight", "topRight", "bottomLeft"], Co = ["downLeft", "upRight", "downRight", "upLeft"], xo = {
3981
+ }), yo = ["left", "right"], we = ["left", "right", "down", "up"], bo = ["downBig", "upBig", "leftBig", "rightBig"], vo = ["topLeft", "bottomRight", "topRight", "bottomLeft"], Co = ["downLeft", "upRight", "downRight", "upLeft"], xo = {
3993
3982
  preset: [
3994
3983
  // 预设动画配置
3995
- { name: "back", alias: "渐近", directions: $e },
3996
- { name: "bounce", alias: "弹跳", directions: $e.concat("default") },
3984
+ { name: "back", alias: "渐近", directions: we },
3985
+ { name: "bounce", alias: "弹跳", directions: we.concat("default") },
3997
3986
  {
3998
3987
  name: "fade",
3999
3988
  alias: "淡化",
4000
- directions: $e.concat(bo).concat(vo).concat("default")
3989
+ directions: we.concat(bo).concat(vo).concat("default")
4001
3990
  },
4002
3991
  { name: "flip", alias: "翻转", directions: ["x", "y"] },
4003
3992
  { name: "lightSpeed", alias: "光速", directions: yo },
4004
3993
  { name: "rotate", alias: "旋转", directions: Co.concat("default") },
4005
3994
  { name: "roll", alias: "翻滚", directions: ["default"] },
4006
- { name: "zoom", alias: "缩放", directions: $e.concat("default") },
4007
- { name: "slide", alias: "滑动", directions: $e }
3995
+ { name: "zoom", alias: "缩放", directions: we.concat("default") },
3996
+ { name: "slide", alias: "滑动", directions: we }
4008
3997
  ]
4009
- }, Io = new g("backInLeft", {
3998
+ }, Io = new h("backInLeft", {
4010
3999
  "0%": {
4011
4000
  opacity: 0.7,
4012
4001
  transform: "translateX(-2000px) scale(0.7)"
@@ -4019,7 +4008,7 @@ const Ni = /* @__PURE__ */ X({
4019
4008
  opacity: 1,
4020
4009
  transform: "scale(1)"
4021
4010
  }
4022
- }), So = new g("backInRight", {
4011
+ }), So = new h("backInRight", {
4023
4012
  "0%": {
4024
4013
  opacity: 0.7,
4025
4014
  transform: "translateX(2000px) scale(0.7)"
@@ -4032,7 +4021,7 @@ const Ni = /* @__PURE__ */ X({
4032
4021
  opacity: 1,
4033
4022
  transform: "scale(1)"
4034
4023
  }
4035
- }), Ro = new g("backInUp", {
4024
+ }), Ro = new h("backInUp", {
4036
4025
  "0%": {
4037
4026
  opacity: 0.7,
4038
4027
  transform: "translateY(1200px) scale(0.7)"
@@ -4045,7 +4034,7 @@ const Ni = /* @__PURE__ */ X({
4045
4034
  opacity: 1,
4046
4035
  transform: "scale(1)"
4047
4036
  }
4048
- }), $o = new g("backInDown", {
4037
+ }), $o = new h("backInDown", {
4049
4038
  "0%": {
4050
4039
  opacity: 0.7,
4051
4040
  transform: "translateY(-1200px) scale(0.7)"
@@ -4058,7 +4047,7 @@ const Ni = /* @__PURE__ */ X({
4058
4047
  opacity: 1,
4059
4048
  transform: "scale(1)"
4060
4049
  }
4061
- }), wo = new g("backOutLeft", {
4050
+ }), wo = new h("backOutLeft", {
4062
4051
  "0%": {
4063
4052
  opacity: 1,
4064
4053
  transform: "scale(1)"
@@ -4071,7 +4060,7 @@ const Ni = /* @__PURE__ */ X({
4071
4060
  opacity: 0.7,
4072
4061
  transform: "translateX(-2000px) scale(0.7)"
4073
4062
  }
4074
- }), Mo = new g("backOutRight", {
4063
+ }), Mo = new h("backOutRight", {
4075
4064
  "0%": {
4076
4065
  opacity: 1,
4077
4066
  transform: "scale(1)"
@@ -4084,7 +4073,7 @@ const Ni = /* @__PURE__ */ X({
4084
4073
  opacity: 0.7,
4085
4074
  transform: "translateX(2000px) scale(0.7)"
4086
4075
  }
4087
- }), Oo = new g("backOutUp", {
4076
+ }), Bo = new h("backOutUp", {
4088
4077
  "0%": {
4089
4078
  opacity: 1,
4090
4079
  transform: "scale(1)"
@@ -4097,7 +4086,7 @@ const Ni = /* @__PURE__ */ X({
4097
4086
  opacity: 0.7,
4098
4087
  transform: "translateY(-700px) scale(0.7)"
4099
4088
  }
4100
- }), Bo = new g("backOutDown", {
4089
+ }), Oo = new h("backOutDown", {
4101
4090
  "0%": {
4102
4091
  opacity: 1,
4103
4092
  transform: "scale(1)"
@@ -4138,13 +4127,13 @@ const Ni = /* @__PURE__ */ X({
4138
4127
  },
4139
4128
  "&.backOutUp": {
4140
4129
  animationFillMode: "both",
4141
- animationName: Oo
4130
+ animationName: Bo
4142
4131
  },
4143
4132
  "&.backOutDown": {
4144
4133
  animationFillMode: "both",
4145
- animationName: Bo
4134
+ animationName: Oo
4146
4135
  }
4147
- }), Fo = new g("bounceIn", {
4136
+ }), Fo = new h("bounceIn", {
4148
4137
  "from,20%,40%,60%,80%,to": {
4149
4138
  animationTimingFunction: "cubic-bezier(0.215, 0.61, 0.355, 1)"
4150
4139
  },
@@ -4168,7 +4157,7 @@ const Ni = /* @__PURE__ */ X({
4168
4157
  opacity: 1,
4169
4158
  transform: "scale3d(1, 1, 1)"
4170
4159
  }
4171
- }), No = new g("bounceInLeft", {
4160
+ }), No = new h("bounceInLeft", {
4172
4161
  "from,60%,75%,90%,to": {
4173
4162
  animationTimingFunction: "cubic-bezier(0.215, 0.61, 0.355, 1)"
4174
4163
  },
@@ -4189,7 +4178,7 @@ const Ni = /* @__PURE__ */ X({
4189
4178
  to: {
4190
4179
  transform: "translate3d(0, 0, 0)"
4191
4180
  }
4192
- }), Lo = new g("bounceInRight", {
4181
+ }), Lo = new h("bounceInRight", {
4193
4182
  "from,60%,75%,90%,to": {
4194
4183
  animationTimingFunction: "cubic-bezier(0.215, 0.61, 0.355, 1)"
4195
4184
  },
@@ -4210,7 +4199,7 @@ const Ni = /* @__PURE__ */ X({
4210
4199
  to: {
4211
4200
  transform: "translate3d(0, 0, 0)"
4212
4201
  }
4213
- }), Ho = new g("bounceInDown", {
4202
+ }), Ho = new h("bounceInDown", {
4214
4203
  "from,60%,75%,90%,to": {
4215
4204
  animationTimingFunction: "cubic-bezier(0.215, 0.61, 0.355, 1)"
4216
4205
  },
@@ -4231,7 +4220,7 @@ const Ni = /* @__PURE__ */ X({
4231
4220
  to: {
4232
4221
  transform: "translate3d(0, 0, 0)"
4233
4222
  }
4234
- }), Do = new g("bounceInUp", {
4223
+ }), Do = new h("bounceInUp", {
4235
4224
  "from,60%,75%,90%,to": {
4236
4225
  animationTimingFunction: "cubic-bezier(0.215, 0.61, 0.355, 1)"
4237
4226
  },
@@ -4252,7 +4241,7 @@ const Ni = /* @__PURE__ */ X({
4252
4241
  to: {
4253
4242
  transform: "translate3d(0, 0, 0)"
4254
4243
  }
4255
- }), zo = new g("bounceOut", {
4244
+ }), zo = new h("bounceOut", {
4256
4245
  "20%": {
4257
4246
  transform: "scale3d(0.9, 0.9, 0.9)"
4258
4247
  },
@@ -4266,7 +4255,7 @@ const Ni = /* @__PURE__ */ X({
4266
4255
  opacity: 0,
4267
4256
  transform: "scale3d(0.3, 0.3, 0.3)"
4268
4257
  }
4269
- }), Wo = new g("bounceOutLeft", {
4258
+ }), Wo = new h("bounceOutLeft", {
4270
4259
  "20%": {
4271
4260
  opacity: 1,
4272
4261
  transform: "translate3d(20px, 0, 0) scaleX(0.9)"
@@ -4275,7 +4264,7 @@ const Ni = /* @__PURE__ */ X({
4275
4264
  opacity: 0,
4276
4265
  transform: "translate3d(-2000px, 0, 0) scaleX(2)"
4277
4266
  }
4278
- }), jo = new g("bounceOutRight", {
4267
+ }), jo = new h("bounceOutRight", {
4279
4268
  "20%": {
4280
4269
  opacity: 1,
4281
4270
  transform: "translate3d(-20px, 0, 0) scaleX(0.9)"
@@ -4284,7 +4273,7 @@ const Ni = /* @__PURE__ */ X({
4284
4273
  opacity: 0,
4285
4274
  transform: "translate3d(2000px, 0, 0) scaleX(2)"
4286
4275
  }
4287
- }), Ao = new g("bounceOutDown", {
4276
+ }), Ao = new h("bounceOutDown", {
4288
4277
  "20%": {
4289
4278
  transform: "translate3d(0, 10px, 0) scaleY(0.985)"
4290
4279
  },
@@ -4296,7 +4285,7 @@ const Ni = /* @__PURE__ */ X({
4296
4285
  opacity: 0,
4297
4286
  transform: "translate3d(0, 2000px, 0) scaleY(3)"
4298
4287
  }
4299
- }), Ko = new g("bounceOutUp", {
4288
+ }), Ko = new h("bounceOutUp", {
4300
4289
  "20%": {
4301
4290
  transform: "translate3d(0, -10px, 0) scaleY(0.985)"
4302
4291
  },
@@ -4330,7 +4319,7 @@ const Ni = /* @__PURE__ */ X({
4330
4319
  animationFillMode: "both",
4331
4320
  animationName: Do
4332
4321
  }
4333
- }), ko = () => ({
4322
+ }), Eo = () => ({
4334
4323
  "&.bounceOut": {
4335
4324
  animationFillMode: "both",
4336
4325
  animationDuration: `${0.3 * 0.75}s !important`,
@@ -4352,14 +4341,14 @@ const Ni = /* @__PURE__ */ X({
4352
4341
  animationFillMode: "both",
4353
4342
  animationName: Ko
4354
4343
  }
4355
- }), Eo = new g("fadeIn", {
4344
+ }), ko = new h("fadeIn", {
4356
4345
  from: {
4357
4346
  opacity: 0
4358
4347
  },
4359
4348
  to: {
4360
4349
  opacity: 1
4361
4350
  }
4362
- }), Xo = new g("fadeInLeft", {
4351
+ }), Xo = new h("fadeInLeft", {
4363
4352
  from: {
4364
4353
  opacity: 0,
4365
4354
  transform: "translate3d(-100%, 0, 0)"
@@ -4368,7 +4357,7 @@ const Ni = /* @__PURE__ */ X({
4368
4357
  opacity: 1,
4369
4358
  transform: "translate3d(0, 0, 0)"
4370
4359
  }
4371
- }), Vo = new g("fadeInRight", {
4360
+ }), Vo = new h("fadeInRight", {
4372
4361
  from: {
4373
4362
  opacity: 0,
4374
4363
  transform: "translate3d(100%, 0, 0)"
@@ -4377,7 +4366,7 @@ const Ni = /* @__PURE__ */ X({
4377
4366
  opacity: 1,
4378
4367
  transform: "translate3d(0, 0, 0)"
4379
4368
  }
4380
- }), Go = new g("fadeInDown", {
4369
+ }), Go = new h("fadeInDown", {
4381
4370
  from: {
4382
4371
  opacity: 0,
4383
4372
  transform: "translate3d(0, -100%, 0)"
@@ -4386,7 +4375,7 @@ const Ni = /* @__PURE__ */ X({
4386
4375
  opacity: 1,
4387
4376
  transform: "translate3d(0, 0, 0)"
4388
4377
  }
4389
- }), Yo = new g("fadeInUp", {
4378
+ }), Yo = new h("fadeInUp", {
4390
4379
  from: {
4391
4380
  opacity: 0,
4392
4381
  transform: "translate3d(0, 100%, 0)"
@@ -4395,7 +4384,7 @@ const Ni = /* @__PURE__ */ X({
4395
4384
  opacity: 1,
4396
4385
  transform: "translate3d(0, 0, 0)"
4397
4386
  }
4398
- }), _o = new g("fadeInDownBig", {
4387
+ }), _o = new h("fadeInDownBig", {
4399
4388
  from: {
4400
4389
  opacity: 0,
4401
4390
  transform: "translate3d(0, -2000px, 0)"
@@ -4404,7 +4393,7 @@ const Ni = /* @__PURE__ */ X({
4404
4393
  opacity: 1,
4405
4394
  transform: "translate3d(0, 0, 0)"
4406
4395
  }
4407
- }), qo = new g("fadeInUpBig", {
4396
+ }), qo = new h("fadeInUpBig", {
4408
4397
  from: {
4409
4398
  opacity: 0,
4410
4399
  transform: "translate3d(0, 2000px, 0)"
@@ -4413,7 +4402,7 @@ const Ni = /* @__PURE__ */ X({
4413
4402
  opacity: 1,
4414
4403
  transform: "translate3d(0, 0, 0)"
4415
4404
  }
4416
- }), Zo = new g("fadeInLeftBig", {
4405
+ }), Zo = new h("fadeInLeftBig", {
4417
4406
  from: {
4418
4407
  opacity: 0,
4419
4408
  transform: "translate3d(-2000px, 0, 0)"
@@ -4422,7 +4411,7 @@ const Ni = /* @__PURE__ */ X({
4422
4411
  opacity: 1,
4423
4412
  transform: "translate3d(0, 0, 0)"
4424
4413
  }
4425
- }), Qo = new g("fadeInRightBig", {
4414
+ }), Qo = new h("fadeInRightBig", {
4426
4415
  from: {
4427
4416
  opacity: 0,
4428
4417
  transform: "translate3d(2000px, 0, 0)"
@@ -4431,7 +4420,7 @@ const Ni = /* @__PURE__ */ X({
4431
4420
  opacity: 1,
4432
4421
  transform: "translate3d(0, 0, 0)"
4433
4422
  }
4434
- }), Jo = new g("fadeInTopLeft", {
4423
+ }), Jo = new h("fadeInTopLeft", {
4435
4424
  from: {
4436
4425
  opacity: 0,
4437
4426
  transform: "translate3d(-100%, -100%, 0)"
@@ -4440,7 +4429,7 @@ const Ni = /* @__PURE__ */ X({
4440
4429
  opacity: 1,
4441
4430
  transform: "translate3d(0, 0, 0)"
4442
4431
  }
4443
- }), el = new g("fadeInBottomRight", {
4432
+ }), el = new h("fadeInBottomRight", {
4444
4433
  from: {
4445
4434
  opacity: 0,
4446
4435
  transform: "translate3d(100%, 100%, 0)"
@@ -4449,7 +4438,7 @@ const Ni = /* @__PURE__ */ X({
4449
4438
  opacity: 1,
4450
4439
  transform: "translate3d(0, 0, 0)"
4451
4440
  }
4452
- }), tl = new g("fadeInTopRight", {
4441
+ }), tl = new h("fadeInTopRight", {
4453
4442
  from: {
4454
4443
  opacity: 0,
4455
4444
  transform: "translate3d(100%, -100%, 0)"
@@ -4458,7 +4447,7 @@ const Ni = /* @__PURE__ */ X({
4458
4447
  opacity: 1,
4459
4448
  transform: "translate3d(0, 0, 0)"
4460
4449
  }
4461
- }), nl = new g("fadeInBottomLeft", {
4450
+ }), nl = new h("fadeInBottomLeft", {
4462
4451
  from: {
4463
4452
  opacity: 0,
4464
4453
  transform: "translate3d(-100%, 100%, 0)"
@@ -4467,14 +4456,14 @@ const Ni = /* @__PURE__ */ X({
4467
4456
  opacity: 1,
4468
4457
  transform: "translate3d(0, 0, 0)"
4469
4458
  }
4470
- }), al = new g("fadeOut", {
4459
+ }), al = new h("fadeOut", {
4471
4460
  from: {
4472
4461
  opacity: 1
4473
4462
  },
4474
4463
  to: {
4475
4464
  opacity: 0
4476
4465
  }
4477
- }), ol = new g("fadeOutLeft", {
4466
+ }), ol = new h("fadeOutLeft", {
4478
4467
  from: {
4479
4468
  opacity: 1
4480
4469
  },
@@ -4482,7 +4471,7 @@ const Ni = /* @__PURE__ */ X({
4482
4471
  opacity: 0,
4483
4472
  transform: "translate3d(-100%, 0, 0)"
4484
4473
  }
4485
- }), ll = new g("fadeOutRight", {
4474
+ }), ll = new h("fadeOutRight", {
4486
4475
  from: {
4487
4476
  opacity: 1
4488
4477
  },
@@ -4490,7 +4479,7 @@ const Ni = /* @__PURE__ */ X({
4490
4479
  opacity: 0,
4491
4480
  transform: "translate3d(100%, 0, 0)"
4492
4481
  }
4493
- }), il = new g("fadeOutDown", {
4482
+ }), il = new h("fadeOutDown", {
4494
4483
  from: {
4495
4484
  opacity: 1
4496
4485
  },
@@ -4498,7 +4487,7 @@ const Ni = /* @__PURE__ */ X({
4498
4487
  opacity: 0,
4499
4488
  transform: "translate3d(0, 100%, 0)"
4500
4489
  }
4501
- }), rl = new g("fadeOutUp", {
4490
+ }), rl = new h("fadeOutUp", {
4502
4491
  from: {
4503
4492
  opacity: 1
4504
4493
  },
@@ -4506,7 +4495,7 @@ const Ni = /* @__PURE__ */ X({
4506
4495
  opacity: 0,
4507
4496
  transform: "translate3d(0, -100%, 0)"
4508
4497
  }
4509
- }), sl = new g("fadeOutDownBig", {
4498
+ }), sl = new h("fadeOutDownBig", {
4510
4499
  from: {
4511
4500
  opacity: 1
4512
4501
  },
@@ -4514,7 +4503,7 @@ const Ni = /* @__PURE__ */ X({
4514
4503
  opacity: 0,
4515
4504
  transform: "translate3d(0, 2000px, 0)"
4516
4505
  }
4517
- }), ul = new g("fadeOutUpBig", {
4506
+ }), ul = new h("fadeOutUpBig", {
4518
4507
  from: {
4519
4508
  opacity: 1
4520
4509
  },
@@ -4522,7 +4511,7 @@ const Ni = /* @__PURE__ */ X({
4522
4511
  opacity: 0,
4523
4512
  transform: "translate3d(0, -2000px, 0)"
4524
4513
  }
4525
- }), cl = new g("fadeOutLeftBig", {
4514
+ }), cl = new h("fadeOutLeftBig", {
4526
4515
  from: {
4527
4516
  opacity: 1
4528
4517
  },
@@ -4530,7 +4519,7 @@ const Ni = /* @__PURE__ */ X({
4530
4519
  opacity: 0,
4531
4520
  transform: "translate3d(-2000px, 0, 0)"
4532
4521
  }
4533
- }), dl = new g("fadeOutRightBig", {
4522
+ }), dl = new h("fadeOutRightBig", {
4534
4523
  from: {
4535
4524
  opacity: 1
4536
4525
  },
@@ -4538,7 +4527,7 @@ const Ni = /* @__PURE__ */ X({
4538
4527
  opacity: 0,
4539
4528
  transform: "translate3d(2000px, 0, 0)"
4540
4529
  }
4541
- }), ml = new g("fadeOutTopLeft", {
4530
+ }), ml = new h("fadeOutTopLeft", {
4542
4531
  from: {
4543
4532
  opacity: 1,
4544
4533
  transform: "translate3d(0, 0, 0)"
@@ -4547,7 +4536,7 @@ const Ni = /* @__PURE__ */ X({
4547
4536
  opacity: 0,
4548
4537
  transform: "translate3d(-100%, -100%, 0)"
4549
4538
  }
4550
- }), fl = new g("fadeOutBottomRight", {
4539
+ }), fl = new h("fadeOutBottomRight", {
4551
4540
  from: {
4552
4541
  opacity: 1,
4553
4542
  transform: "translate3d(0, 0, 0)"
@@ -4556,7 +4545,7 @@ const Ni = /* @__PURE__ */ X({
4556
4545
  opacity: 0,
4557
4546
  transform: "translate3d(100%, 100%, 0)"
4558
4547
  }
4559
- }), pl = new g("fadeOutTopRight", {
4548
+ }), pl = new h("fadeOutTopRight", {
4560
4549
  from: {
4561
4550
  opacity: 1,
4562
4551
  transform: "translate3d(0, 0, 0)"
@@ -4565,7 +4554,7 @@ const Ni = /* @__PURE__ */ X({
4565
4554
  opacity: 0,
4566
4555
  transform: "translate3d(100%, -100%, 0)"
4567
4556
  }
4568
- }), gl = new g("fadeOutBottomLeft", {
4557
+ }), gl = new h("fadeOutBottomLeft", {
4569
4558
  from: {
4570
4559
  opacity: 1,
4571
4560
  transform: "translate3d(0, 0, 0)"
@@ -4577,7 +4566,7 @@ const Ni = /* @__PURE__ */ X({
4577
4566
  }), hl = () => ({
4578
4567
  "&.fadeIn": {
4579
4568
  animationFillMode: "both",
4580
- animationName: Eo
4569
+ animationName: ko
4581
4570
  },
4582
4571
  "&.fadeInLeft": {
4583
4572
  animationFillMode: "both",
@@ -4680,7 +4669,7 @@ const Ni = /* @__PURE__ */ X({
4680
4669
  animationFillMode: "both",
4681
4670
  animationName: gl
4682
4671
  }
4683
- }), bl = new g("flipInX", {
4672
+ }), bl = new h("flipInX", {
4684
4673
  from: {
4685
4674
  opacity: 0,
4686
4675
  animationTimingFunction: "ease-in",
@@ -4700,7 +4689,7 @@ const Ni = /* @__PURE__ */ X({
4700
4689
  to: {
4701
4690
  transform: "perspective(400px)"
4702
4691
  }
4703
- }), vl = new g("flipInY", {
4692
+ }), vl = new h("flipInY", {
4704
4693
  from: {
4705
4694
  opacity: 0,
4706
4695
  animationTimingFunction: "ease-in",
@@ -4720,7 +4709,7 @@ const Ni = /* @__PURE__ */ X({
4720
4709
  to: {
4721
4710
  transform: "perspective(400px)"
4722
4711
  }
4723
- }), Cl = new g("flipOutX", {
4712
+ }), Cl = new h("flipOutX", {
4724
4713
  from: {
4725
4714
  transform: "perspective(400px)"
4726
4715
  },
@@ -4732,7 +4721,7 @@ const Ni = /* @__PURE__ */ X({
4732
4721
  opacity: 0,
4733
4722
  transform: "perspective(400px) rotate3d(1, 0, 0, 90deg)"
4734
4723
  }
4735
- }), xl = new g("flipOutY", {
4724
+ }), xl = new h("flipOutY", {
4736
4725
  from: {
4737
4726
  transform: "perspective(400px)"
4738
4727
  },
@@ -4768,7 +4757,7 @@ const Ni = /* @__PURE__ */ X({
4768
4757
  animationDuration: `${0.3 * 0.75}s !important`,
4769
4758
  animationName: xl
4770
4759
  }
4771
- }), Rl = new g("lightSpeedInLeft", {
4760
+ }), Rl = new h("lightSpeedInLeft", {
4772
4761
  from: {
4773
4762
  opacity: 0,
4774
4763
  transform: "translate3d(-100%, 0, 0) skewX(30deg)"
@@ -4783,7 +4772,7 @@ const Ni = /* @__PURE__ */ X({
4783
4772
  to: {
4784
4773
  transform: "translate3d(0, 0, 0)"
4785
4774
  }
4786
- }), $l = new g("lightSpeedInRight", {
4775
+ }), $l = new h("lightSpeedInRight", {
4787
4776
  from: {
4788
4777
  opacity: 0,
4789
4778
  transform: "translate3d(100%, 0, 0) skewX(-30deg)"
@@ -4798,7 +4787,7 @@ const Ni = /* @__PURE__ */ X({
4798
4787
  to: {
4799
4788
  transform: "translate3d(0, 0, 0)"
4800
4789
  }
4801
- }), wl = new g("lightSpeedOutLeft", {
4790
+ }), wl = new h("lightSpeedOutLeft", {
4802
4791
  from: {
4803
4792
  opacity: 1
4804
4793
  },
@@ -4806,7 +4795,7 @@ const Ni = /* @__PURE__ */ X({
4806
4795
  opacity: 0,
4807
4796
  transform: "translate3d(-100%, 0, 0) skewX(-30deg)"
4808
4797
  }
4809
- }), Ml = new g("lightSpeedOutRight", {
4798
+ }), Ml = new h("lightSpeedOutRight", {
4810
4799
  from: {
4811
4800
  opacity: 1
4812
4801
  },
@@ -4814,7 +4803,7 @@ const Ni = /* @__PURE__ */ X({
4814
4803
  opacity: 0,
4815
4804
  transform: "translate3d(100%, 0, 0) skewX(30deg)"
4816
4805
  }
4817
- }), Ol = () => ({
4806
+ }), Bl = () => ({
4818
4807
  "&.lightSpeedInLeft": {
4819
4808
  animationFillMode: "both",
4820
4809
  animationTimingFunction: "ease-out",
@@ -4825,7 +4814,7 @@ const Ni = /* @__PURE__ */ X({
4825
4814
  animationTimingFunction: "ease-out",
4826
4815
  animationName: $l
4827
4816
  }
4828
- }), Bl = () => ({
4817
+ }), Ol = () => ({
4829
4818
  "&.lightSpeedOutLeft": {
4830
4819
  animationFillMode: "both",
4831
4820
  animationTimingFunction: "ease-in",
@@ -4836,7 +4825,7 @@ const Ni = /* @__PURE__ */ X({
4836
4825
  animationTimingFunction: "ease-in",
4837
4826
  animationName: Ml
4838
4827
  }
4839
- }), Pl = new g("rollIn", {
4828
+ }), Pl = new h("rollIn", {
4840
4829
  from: {
4841
4830
  opacity: 0,
4842
4831
  transform: "translate3d(-100%, 0, 0) rotate3d(0, 0, 1, -120deg)"
@@ -4845,7 +4834,7 @@ const Ni = /* @__PURE__ */ X({
4845
4834
  opacity: 1,
4846
4835
  transform: "translate3d(0, 0, 0)"
4847
4836
  }
4848
- }), Tl = new g("rollOut", {
4837
+ }), Tl = new h("rollOut", {
4849
4838
  from: {
4850
4839
  opacity: 1
4851
4840
  },
@@ -4863,7 +4852,7 @@ const Ni = /* @__PURE__ */ X({
4863
4852
  animationFillMode: "both",
4864
4853
  animationName: Tl
4865
4854
  }
4866
- }), Ll = new g("rotateIn", {
4855
+ }), Ll = new h("rotateIn", {
4867
4856
  from: {
4868
4857
  opacity: 0,
4869
4858
  transform: "rotate3d(0, 0, 1, -200deg)"
@@ -4872,7 +4861,7 @@ const Ni = /* @__PURE__ */ X({
4872
4861
  opacity: 1,
4873
4862
  transform: "translate3d(0, 0, 0)"
4874
4863
  }
4875
- }), Hl = new g("rotateInDownLeft", {
4864
+ }), Hl = new h("rotateInDownLeft", {
4876
4865
  from: {
4877
4866
  opacity: 0,
4878
4867
  transform: "rotate3d(0, 0, 1, -45deg)"
@@ -4881,7 +4870,7 @@ const Ni = /* @__PURE__ */ X({
4881
4870
  opacity: 1,
4882
4871
  transform: "translate3d(0, 0, 0)"
4883
4872
  }
4884
- }), Dl = new g("rotateInDownRight", {
4873
+ }), Dl = new h("rotateInDownRight", {
4885
4874
  from: {
4886
4875
  opacity: 0,
4887
4876
  transform: "rotate3d(0, 0, 1, 45deg)"
@@ -4890,7 +4879,7 @@ const Ni = /* @__PURE__ */ X({
4890
4879
  opacity: 1,
4891
4880
  transform: "translate3d(0, 0, 0)"
4892
4881
  }
4893
- }), zl = new g("rotateInUpLeft", {
4882
+ }), zl = new h("rotateInUpLeft", {
4894
4883
  from: {
4895
4884
  opacity: 0,
4896
4885
  transform: "rotate3d(0, 0, 1, 45deg)"
@@ -4899,7 +4888,7 @@ const Ni = /* @__PURE__ */ X({
4899
4888
  opacity: 1,
4900
4889
  transform: "translate3d(0, 0, 0)"
4901
4890
  }
4902
- }), Wl = new g("rotateInUpRight", {
4891
+ }), Wl = new h("rotateInUpRight", {
4903
4892
  from: {
4904
4893
  opacity: 0,
4905
4894
  transform: "rotate3d(0, 0, 1, -90deg)"
@@ -4908,7 +4897,7 @@ const Ni = /* @__PURE__ */ X({
4908
4897
  opacity: 1,
4909
4898
  transform: "translate3d(0, 0, 0)"
4910
4899
  }
4911
- }), jl = new g("rotateOut", {
4900
+ }), jl = new h("rotateOut", {
4912
4901
  from: {
4913
4902
  opacity: 1
4914
4903
  },
@@ -4916,7 +4905,7 @@ const Ni = /* @__PURE__ */ X({
4916
4905
  opacity: 0,
4917
4906
  transform: "rotate3d(0, 0, 1, 200deg)"
4918
4907
  }
4919
- }), Al = new g("rotateOutDownLeft", {
4908
+ }), Al = new h("rotateOutDownLeft", {
4920
4909
  from: {
4921
4910
  opacity: 1
4922
4911
  },
@@ -4924,7 +4913,7 @@ const Ni = /* @__PURE__ */ X({
4924
4913
  opacity: 0,
4925
4914
  transform: "rotate3d(0, 0, 1, 45deg)"
4926
4915
  }
4927
- }), Kl = new g("rotateOutDownRight", {
4916
+ }), Kl = new h("rotateOutDownRight", {
4928
4917
  from: {
4929
4918
  opacity: 1
4930
4919
  },
@@ -4932,7 +4921,7 @@ const Ni = /* @__PURE__ */ X({
4932
4921
  opacity: 0,
4933
4922
  transform: "rotate3d(0, 0, 1, -45deg)"
4934
4923
  }
4935
- }), Ul = new g("rotateOutUpLeft", {
4924
+ }), Ul = new h("rotateOutUpLeft", {
4936
4925
  from: {
4937
4926
  opacity: 1
4938
4927
  },
@@ -4940,7 +4929,7 @@ const Ni = /* @__PURE__ */ X({
4940
4929
  opacity: 0,
4941
4930
  transform: "rotate3d(0, 0, 1, -45deg)"
4942
4931
  }
4943
- }), kl = new g("rotateOutUpRight", {
4932
+ }), El = new h("rotateOutUpRight", {
4944
4933
  from: {
4945
4934
  opacity: 1
4946
4935
  },
@@ -4948,7 +4937,7 @@ const Ni = /* @__PURE__ */ X({
4948
4937
  opacity: 0,
4949
4938
  transform: "rotate3d(0, 0, 1, 90deg)"
4950
4939
  }
4951
- }), El = () => ({
4940
+ }), kl = () => ({
4952
4941
  "&.rotateIn": {
4953
4942
  animationFillMode: "both",
4954
4943
  transformOrigin: "center",
@@ -4998,9 +4987,9 @@ const Ni = /* @__PURE__ */ X({
4998
4987
  "&.rotateOutUpRight": {
4999
4988
  animationFillMode: "both",
5000
4989
  transformOrigin: "right bottom",
5001
- animationName: kl
4990
+ animationName: El
5002
4991
  }
5003
- }), Vl = new g("slideInDown", {
4992
+ }), Vl = new h("slideInDown", {
5004
4993
  from: {
5005
4994
  transform: "translate3d(0, -100%, 0)",
5006
4995
  visibility: "visible"
@@ -5008,7 +4997,7 @@ const Ni = /* @__PURE__ */ X({
5008
4997
  to: {
5009
4998
  transform: "translate3d(0, 0, 0)"
5010
4999
  }
5011
- }), Gl = new g("slideInLeft", {
5000
+ }), Gl = new h("slideInLeft", {
5012
5001
  from: {
5013
5002
  transform: "translate3d(-100%, 0, 0)",
5014
5003
  visibility: "visible"
@@ -5016,7 +5005,7 @@ const Ni = /* @__PURE__ */ X({
5016
5005
  to: {
5017
5006
  transform: "translate3d(0, 0, 0)"
5018
5007
  }
5019
- }), Yl = new g("slideInRight", {
5008
+ }), Yl = new h("slideInRight", {
5020
5009
  from: {
5021
5010
  transform: "translate3d(100%, 0, 0)",
5022
5011
  visibility: "visible"
@@ -5024,7 +5013,7 @@ const Ni = /* @__PURE__ */ X({
5024
5013
  to: {
5025
5014
  transform: "translate3d(0, 0, 0)"
5026
5015
  }
5027
- }), _l = new g("slideInUp", {
5016
+ }), _l = new h("slideInUp", {
5028
5017
  from: {
5029
5018
  transform: "translate3d(0, 100%, 0)",
5030
5019
  visibility: "visible"
@@ -5032,7 +5021,7 @@ const Ni = /* @__PURE__ */ X({
5032
5021
  to: {
5033
5022
  transform: "translate3d(0, 0, 0)"
5034
5023
  }
5035
- }), ql = new g("slideOutDown", {
5024
+ }), ql = new h("slideOutDown", {
5036
5025
  from: {
5037
5026
  transform: "translate3d(0, 0, 0)"
5038
5027
  },
@@ -5040,7 +5029,7 @@ const Ni = /* @__PURE__ */ X({
5040
5029
  transform: "translate3d(0, 100%, 0)",
5041
5030
  visibility: "hidden"
5042
5031
  }
5043
- }), Zl = new g("slideOutLeft", {
5032
+ }), Zl = new h("slideOutLeft", {
5044
5033
  from: {
5045
5034
  transform: "translate3d(0, 0, 0)"
5046
5035
  },
@@ -5048,7 +5037,7 @@ const Ni = /* @__PURE__ */ X({
5048
5037
  transform: "translate3d(-100%, 0, 0)",
5049
5038
  visibility: "hidden"
5050
5039
  }
5051
- }), Ql = new g("slideOutRight", {
5040
+ }), Ql = new h("slideOutRight", {
5052
5041
  from: {
5053
5042
  transform: "translate3d(0, 0, 0)"
5054
5043
  },
@@ -5056,7 +5045,7 @@ const Ni = /* @__PURE__ */ X({
5056
5045
  transform: "translate3d(100%, 0, 0)",
5057
5046
  visibility: "hidden"
5058
5047
  }
5059
- }), Jl = new g("slideOutUp", {
5048
+ }), Jl = new h("slideOutUp", {
5060
5049
  from: {
5061
5050
  transform: "translate3d(0, 0, 0)"
5062
5051
  },
@@ -5098,7 +5087,7 @@ const Ni = /* @__PURE__ */ X({
5098
5087
  animationFillMode: "both",
5099
5088
  animationName: Jl
5100
5089
  }
5101
- }), ni = new g("zoomIn", {
5090
+ }), ni = new h("zoomIn", {
5102
5091
  from: {
5103
5092
  opacity: 0,
5104
5093
  transform: "scale3d(0.3, 0.3, 0.3)"
@@ -5106,7 +5095,7 @@ const Ni = /* @__PURE__ */ X({
5106
5095
  "50%": {
5107
5096
  opacity: 1
5108
5097
  }
5109
- }), ai = new g("zoomInDown", {
5098
+ }), ai = new h("zoomInDown", {
5110
5099
  from: {
5111
5100
  opacity: 0,
5112
5101
  transform: "scale3d(0.1, 0.1, 0.1) translate3d(0, -1000px, 0)",
@@ -5117,7 +5106,7 @@ const Ni = /* @__PURE__ */ X({
5117
5106
  transform: "scale3d(0.475, 0.475, 0.475) translate3d(0, 60px, 0)",
5118
5107
  animationTimingFunction: "cubic-bezier(0.175, 0.885, 0.32, 1)"
5119
5108
  }
5120
- }), oi = new g("zoomInLeft", {
5109
+ }), oi = new h("zoomInLeft", {
5121
5110
  from: {
5122
5111
  opacity: 0,
5123
5112
  transform: "scale3d(0.1, 0.1, 0.1) translate3d(-1000px, 0, 0)",
@@ -5128,7 +5117,7 @@ const Ni = /* @__PURE__ */ X({
5128
5117
  transform: "scale3d(0.475, 0.475, 0.475) translate3d(10px, 0, 0)",
5129
5118
  animationTimingFunction: "cubic-bezier(0.175, 0.885, 0.32, 1)"
5130
5119
  }
5131
- }), li = new g("zoomInRight", {
5120
+ }), li = new h("zoomInRight", {
5132
5121
  from: {
5133
5122
  opacity: 0,
5134
5123
  transform: "scale3d(0.1, 0.1, 0.1) translate3d(1000px, 0, 0)",
@@ -5139,7 +5128,7 @@ const Ni = /* @__PURE__ */ X({
5139
5128
  transform: "scale3d(0.475, 0.475, 0.475) translate3d(-10px, 0, 0)",
5140
5129
  animationTimingFunction: "cubic-bezier(0.175, 0.885, 0.32, 1)"
5141
5130
  }
5142
- }), ii = new g("zoomInUp", {
5131
+ }), ii = new h("zoomInUp", {
5143
5132
  from: {
5144
5133
  opacity: 0,
5145
5134
  transform: "scale3d(0.1, 0.1, 0.1) translate3d(0, 1000px, 0)",
@@ -5150,7 +5139,7 @@ const Ni = /* @__PURE__ */ X({
5150
5139
  transform: "scale3d(0.475, 0.475, 0.475) translate3d(0, -60px, 0)",
5151
5140
  animationTimingFunction: "cubic-bezier(0.175, 0.885, 0.32, 1)"
5152
5141
  }
5153
- }), ri = new g("zoomOut", {
5142
+ }), ri = new h("zoomOut", {
5154
5143
  from: {
5155
5144
  opacity: 1
5156
5145
  },
@@ -5161,7 +5150,7 @@ const Ni = /* @__PURE__ */ X({
5161
5150
  to: {
5162
5151
  opacity: 0
5163
5152
  }
5164
- }), si = new g("zoomOutDown", {
5153
+ }), si = new h("zoomOutDown", {
5165
5154
  "40%": {
5166
5155
  opacity: 1,
5167
5156
  transform: "scale3d(0.475, 0.475, 0.475) translate3d(0, -60px, 0)",
@@ -5172,7 +5161,7 @@ const Ni = /* @__PURE__ */ X({
5172
5161
  transform: "scale3d(0.1, 0.1, 0.1) translate3d(0, 2000px, 0)",
5173
5162
  animationTimingFunction: "cubic-bezier(0.175, 0.885, 0.32, 1)"
5174
5163
  }
5175
- }), ui = new g("zoomOutLeft", {
5164
+ }), ui = new h("zoomOutLeft", {
5176
5165
  "40%": {
5177
5166
  opacity: 1,
5178
5167
  transform: "scale3d(0.475, 0.475, 0.475) translate3d(42px, 0, 0)"
@@ -5181,7 +5170,7 @@ const Ni = /* @__PURE__ */ X({
5181
5170
  opacity: 0,
5182
5171
  transform: "scale(0.1) translate3d(-2000px, 0, 0)"
5183
5172
  }
5184
- }), ci = new g("zoomOutRight", {
5173
+ }), ci = new h("zoomOutRight", {
5185
5174
  "40%": {
5186
5175
  opacity: 1,
5187
5176
  transform: "scale3d(0.475, 0.475, 0.475) translate3d(-42px, 0, 0)"
@@ -5190,7 +5179,7 @@ const Ni = /* @__PURE__ */ X({
5190
5179
  opacity: 0,
5191
5180
  transform: "scale(0.1) translate3d(2000px, 0, 0)"
5192
5181
  }
5193
- }), di = new g("zoomOutUp", {
5182
+ }), di = new h("zoomOutUp", {
5194
5183
  "40%": {
5195
5184
  opacity: 1,
5196
5185
  transform: "scale3d(0.475, 0.475, 0.475) translate3d(0, 60px, 0)",
@@ -5256,8 +5245,8 @@ const Ni = /* @__PURE__ */ X({
5256
5245
  ...Uo(),
5257
5246
  ...hl(),
5258
5247
  ...Il(),
5259
- ...Ol(),
5260
- ...El(),
5248
+ ...Bl(),
5249
+ ...kl(),
5261
5250
  ...Fl(),
5262
5251
  ...mi(),
5263
5252
  ...ei()
@@ -5267,10 +5256,10 @@ const Ni = /* @__PURE__ */ X({
5267
5256
  background: "transparent",
5268
5257
  animationDuration: ".3s !important",
5269
5258
  ...To(),
5270
- ...ko(),
5259
+ ...Eo(),
5271
5260
  ...yl(),
5272
5261
  ...Sl(),
5273
- ...Bl(),
5262
+ ...Ol(),
5274
5263
  ...Xl(),
5275
5264
  ...Nl(),
5276
5265
  ...fi(),
@@ -5279,12 +5268,12 @@ const Ni = /* @__PURE__ */ X({
5279
5268
  }
5280
5269
  });
5281
5270
  function gi(e) {
5282
- return Ce("LayoutPageTranstion", (n) => {
5283
- const t = Je(n);
5271
+ return xe("LayoutPageTranstion", (n) => {
5272
+ const t = et(n);
5284
5273
  return [pi(t)];
5285
5274
  }, e);
5286
5275
  }
5287
- const Li = /* @__PURE__ */ X({
5276
+ const Hi = /* @__PURE__ */ G({
5288
5277
  name: "PageTransition",
5289
5278
  props: {
5290
5279
  disabled: {
@@ -5310,155 +5299,160 @@ const Li = /* @__PURE__ */ X({
5310
5299
  }), {
5311
5300
  wrapSSR: a,
5312
5301
  hashId: r
5313
- } = gi(t), l = (d, p) => {
5314
- if (d.length === 0 || d === "x" || d === "y")
5315
- return d;
5316
- let u = p.indexOf(d);
5317
- return u = u % 2 === 1 ? u - 1 : u + 1, p[u];
5318
- }, i = (d) => {
5319
- const p = xo.preset.find((I) => e.name === I.name);
5320
- if (p === void 0)
5302
+ } = gi(t), l = (c, g) => {
5303
+ if (c.length === 0 || c === "x" || c === "y")
5304
+ return c;
5305
+ let u = g.indexOf(c);
5306
+ return u = u % 2 === 1 ? u - 1 : u + 1, g[u];
5307
+ }, i = (c) => {
5308
+ const g = xo.preset.find((I) => e.name === I.name);
5309
+ if (g === void 0)
5321
5310
  return "";
5322
5311
  let u = "";
5323
- e.direction === void 0 ? u = p.directions[0] : u = p.directions.find((I) => I === e.direction) || "", u = u === void 0 || u === "default" ? "" : u, u !== "" && (u = d && e.reverse ? l(u, p.directions) : u, u = u[0].toUpperCase() + u.substring(1));
5324
- const h = d ? "Out" : "In";
5325
- return p.name + h + u;
5326
- }, f = x(() => [i(!1), `${t}-enter`, r.value].join(" ")), c = x(() => [i(!0), `${t}-leave`, r.value].join(" "));
5327
- return () => e.disabled ? n.default?.() : a(o(rn, {
5328
- enterActiveClass: f.value,
5329
- leaveActiveClass: c.value
5312
+ e.direction === void 0 ? u = g.directions[0] : u = g.directions.find((I) => I === e.direction) || "", u = u === void 0 || u === "default" ? "" : u, u !== "" && (u = c && e.reverse ? l(u, g.directions) : u, u = u[0].toUpperCase() + u.substring(1));
5313
+ const p = c ? "Out" : "In";
5314
+ return g.name + p + u;
5315
+ }, m = v(() => [i(!1), `${t}-enter`, r.value].join(" ")), s = v(() => [i(!0), `${t}-leave`, r.value].join(" "));
5316
+ return () => e.disabled ? n.default?.() : a(o(ln, {
5317
+ enterActiveClass: m.value,
5318
+ leaveActiveClass: s.value
5330
5319
  }, {
5331
5320
  default: () => [n.default?.()]
5332
5321
  }));
5333
5322
  }
5334
5323
  });
5335
- function Hi(e) {
5336
- const n = An(), t = Le(), a = () => e.value?.tabsComRef();
5324
+ function Di() {
5325
+ const e = Wn(), n = Le(), { tabsRouteRef: t } = Gt();
5337
5326
  return {
5338
5327
  tabsRouter: {
5339
- clean: () => a()?.clean(),
5340
- close: (r) => a()?.close(r?.name || n.name, r?.callback),
5341
- change: (r, l) => a()?.change(l || t.currentRoute.value, {
5342
- type: "merge",
5343
- params: r
5344
- })
5328
+ clean: () => t.value?.clean(),
5329
+ close: (a) => t.value?.close(a?.name || e.name, a?.callback),
5330
+ update: (a, r) => {
5331
+ t.value?.update(r || n.currentRoute.value, {
5332
+ type: "merge",
5333
+ params: a
5334
+ });
5335
+ }
5345
5336
  }
5346
5337
  };
5347
5338
  }
5348
- function Di(e) {
5349
- const n = Le(), t = e?.defaultOpen ?? !0, a = e?.autoClose ?? !0, r = n.getRoutes(), l = q([]), i = Me({
5339
+ function zi(e) {
5340
+ const n = Le(), t = e?.defaultOpen ?? !0, a = e?.autoClose ?? !0, r = n.getRoutes(), l = Q([]), i = Me({
5350
5341
  menuMap: /* @__PURE__ */ new Map(),
5351
5342
  flatMenus: [],
5352
5343
  names: []
5353
- }), f = Me({
5344
+ }), m = Me({
5354
5345
  openKeys: [],
5355
5346
  selectedKeys: []
5356
- }), c = x(() => n.currentRoute.value);
5357
- function d(s, y = [], b = /* @__PURE__ */ new Map()) {
5358
- for (const S of s)
5359
- y.push(qe(S)), b.set(S.name, qe(S)), S.children?.length && d(S.children, y, b);
5347
+ }), s = v(() => n.currentRoute.value), c = v(() => e?.currentName?.value ?? s.value?.name);
5348
+ function g(f, x = [], C = /* @__PURE__ */ new Map()) {
5349
+ for (const P of f)
5350
+ x.push(_e(P)), C.set(P.name, _e(P)), P.children?.length && g(P.children, x, C);
5360
5351
  return {
5361
- flatMenus: y,
5362
- map: b
5352
+ flatMenus: x,
5353
+ map: C
5363
5354
  };
5364
5355
  }
5365
- const p = (s) => {
5366
- const y = oa(la(s));
5367
- l.value = Pn(y.menuData), i.menuMap = y.menuMap, i.flatMenus = y.flatMenus, i.names = y.flatMenus.map((b) => b.name);
5356
+ const u = (f) => {
5357
+ const x = na(aa(f));
5358
+ l.value = Mt(x.menuData), i.menuMap = x.menuMap, i.flatMenus = x.flatMenus, i.names = x.flatMenus.map((C) => C.name);
5368
5359
  };
5369
- e?.menuData && ut(e.menuData) && U(() => e.menuData.value, (s) => p(s), { deep: !0 }), p(e?.menuData ? ut(e.menuData) ? e.menuData.value : e.menuData : r);
5370
- const u = x(() => Ut({
5371
- menuData: l.value,
5360
+ e?.menuData && k(() => ct(e.menuData) ? e.menuData.value : e.menuData, (f) => {
5361
+ u(f || []);
5362
+ }, { deep: !0 }), u(e?.menuData ? ct(e.menuData) ? e.menuData.value : e.menuData : r);
5363
+ const p = v(() => At({
5372
5364
  menuMap: i.menuMap,
5373
5365
  flatMenus: i.flatMenus
5374
- }, { path: c.value.path, name: c.value.name })), h = x(() => {
5375
- function s(b) {
5376
- const S = At(b.meta?.hideChildrenInMenu ? [] : b.children || []);
5366
+ }, c.value)), I = v(() => {
5367
+ function f(C) {
5368
+ const P = at(C.meta?.hideChildrenInMenu ? [] : C.children || []);
5377
5369
  return {
5378
- name: b.name,
5379
- icon: b.meta?.icon || "",
5380
- path: b.redirect || S || b.path || "",
5381
- breadcrumbName: b.meta?.title || "",
5382
- children: b.children && b.children?.length > 1 ? b.children?.map((T) => s(T)).filter((T) => T.breadcrumbName) : []
5370
+ name: C.name,
5371
+ icon: C.meta?.icon || "",
5372
+ path: C.redirect || P || C.path || "",
5373
+ breadcrumbName: C.meta?.title || "",
5374
+ children: C.children && C.children?.length > 1 ? C.children?.map(($) => f($)).filter(($) => $.breadcrumbName) : []
5383
5375
  };
5384
5376
  }
5385
- const y = u.value.map((b) => s(b)).filter((b) => b.breadcrumbName);
5386
- return ua(y, "breadcrumbName");
5387
- }), I = () => {
5388
- const { flatMenus: s, map: y } = d(we(l));
5389
- i.flatMenus = s, i.menuMap = y, i.names = s.map((b) => b.name);
5390
- }, R = () => {
5391
- f.openKeys = u.value.filter((s) => s.name !== c.value.name).map((s) => s.name);
5377
+ const x = p.value.map((C) => f(C)).filter((C) => C.breadcrumbName);
5378
+ return sa(x, "breadcrumbName");
5379
+ }), M = () => {
5380
+ const { flatMenus: f, map: x } = g(Qe(l));
5381
+ i.flatMenus = f, i.menuMap = x, i.names = f.map((C) => C.name);
5382
+ }, y = () => {
5383
+ m.openKeys = p.value.filter((f) => f.name !== c.value).map((f) => f.name);
5392
5384
  };
5393
- return U(() => c.value, (s) => {
5394
- s && (f.selectedKeys = u.value.map((y) => y.name), a && R());
5395
- }, { immediate: !0, deep: !0 }), St(() => {
5396
- t && R();
5397
- }), Ra({
5398
- ...Xe(i),
5399
- syncMatchedKeys: (s = 60) => {
5385
+ return k(() => s.value, (f) => {
5386
+ f && (m.selectedKeys = p.value.map((x) => x.name), a && y());
5387
+ }, { immediate: !0, deep: !0 }), Ze(() => {
5388
+ t && y();
5389
+ }), Sa({
5390
+ ...Ee(i),
5391
+ syncMatchedKeys: (f = 60) => {
5400
5392
  setTimeout(() => {
5401
- f.selectedKeys = u.value.map((y) => y.name), R();
5402
- }, s);
5393
+ m.selectedKeys = p.value.map((x) => x.name), y();
5394
+ }, f);
5403
5395
  },
5404
- update: I,
5396
+ update: M,
5405
5397
  menuData: l,
5406
- matchedMenu: u,
5407
- matchedKeys: f
5398
+ matchedMenu: p,
5399
+ matchedKeys: m
5408
5400
  }), {
5409
- update: I,
5401
+ update: M,
5410
5402
  menuState: i,
5411
5403
  menuData: l,
5412
- matchedKeys: f,
5413
- matchedMenu: u,
5414
- breadcrumbRouters: h
5404
+ matchedKeys: m,
5405
+ matchedMenu: p,
5406
+ breadcrumbRouters: I
5415
5407
  };
5416
5408
  }
5417
- function zi(e) {
5418
- const n = q(e ?? "system"), t = Ot();
5409
+ function Wi(e) {
5410
+ const n = Q(e ?? "system"), t = Ot();
5419
5411
  return {
5420
5412
  theme: n,
5421
5413
  isDark: t
5422
5414
  };
5423
5415
  }
5424
5416
  export {
5425
- zt as GBaseMenu,
5426
- Li as GPageTransition,
5427
- Ni as GProAppPage,
5428
- Ti as GProLayout,
5429
- Fi as GProPageContainer,
5430
- wa as GlobalFooter,
5417
+ Wt as GBaseMenu,
5418
+ Hi as GPageTransition,
5419
+ Li as GProAppPage,
5420
+ Fi as GProLayout,
5421
+ Ni as GProPageContainer,
5422
+ $a as GlobalFooter,
5431
5423
  Pi as LazyIcon,
5432
- Ia as SiderMenuWrapper,
5424
+ xa as SiderMenuWrapper,
5433
5425
  xo as animateSetting,
5434
- ea as baseMenuProps,
5435
- qn as calculateCss,
5436
- la as clearMenuItem,
5437
- pt as convertCSSPropertiesToString,
5438
- Zn as cssValueToNumber,
5439
- Gn as defaultContextKey,
5440
- k as defaultSettings,
5441
- Lt as extractCSSVariableName,
5442
- sa as filterTree,
5443
- Kt as findLastKey,
5444
- ia as flatMap,
5426
+ Qn as baseMenuProps,
5427
+ Yn as calculateCss,
5428
+ aa as clearMenuItem,
5429
+ gt as convertCSSPropertiesToString,
5430
+ _n as cssValueToNumber,
5431
+ Xn as defaultContextKey,
5432
+ X as defaultSettings,
5433
+ Ht as extractCSSVariableName,
5434
+ ra as filterTree,
5435
+ oa as flatMap,
5445
5436
  se as getCssVarOrUnit,
5446
- _n as getCssVarValue,
5447
- Nt as getCssVariableValue,
5448
- At as getLastPath,
5449
- Ut as getMatchedList,
5450
- oa as getMenuData,
5451
- ra as getMenuFirstChildren,
5452
- xe as getTokenLayoutTheme,
5453
- jt as handlePathKey,
5454
- Ee as iconStyle,
5455
- Qn as layout,
5456
- Yn as provideProLayoutContext,
5457
- ua as removeDuplicatesByName,
5458
- Di as useLayoutMenu,
5459
- Sa as usePageContent,
5460
- Hi as useProLayout,
5461
- Z as useProLayoutContext,
5462
- it as useProLayoutMenuContext,
5463
- zi as useThemeState
5437
+ Gn as getCssVarValue,
5438
+ Lt as getCssVariableValue,
5439
+ at as getLastPath,
5440
+ At as getMatchedList,
5441
+ na as getMenuData,
5442
+ la as getMenuFirstChildren,
5443
+ ia as getParentKeys,
5444
+ Ie as getTokenLayoutTheme,
5445
+ Ti as handlePathKey,
5446
+ Ue as iconStyle,
5447
+ qn as layout,
5448
+ Vn as provideProLayoutContext,
5449
+ La as provideProLayoutExposeContext,
5450
+ sa as removeDuplicatesByName,
5451
+ Di as useLayoutExpose,
5452
+ zi as useLayoutMenu,
5453
+ Ia as usePageContent,
5454
+ q as useProLayoutContext,
5455
+ Gt as useProLayoutExposeContext,
5456
+ rt as useProLayoutMenuContext,
5457
+ Wi as useThemeState
5464
5458
  };