@gx-design-vue/pro-layout 0.1.0-beta.46 → 0.1.0-beta.48
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.
- package/dist/pro-layout.js +107 -107
- package/dist/pro-layout.umd.cjs +1 -1
- package/package.json +1 -1
package/dist/pro-layout.js
CHANGED
|
@@ -253,9 +253,9 @@ function mn(e) {
|
|
|
253
253
|
return /\w.(png|jpg|jpeg|svg|webp|gif|bmp)$/i.test(e);
|
|
254
254
|
}
|
|
255
255
|
function ft(e, t, a, i) {
|
|
256
|
-
var d,
|
|
256
|
+
var d, g, m, w, p, R, h, T, l, r, I, k, x, y, f, C, $, u, S, M, O, P, H, N, D, V, Y, _, E, J, c, v, B, F;
|
|
257
257
|
const o = { ...e };
|
|
258
|
-
return a === "light" ? (o.colorItemBg = (
|
|
258
|
+
return a === "light" ? (o.colorItemBg = (g = (d = t.layout) == null ? void 0 : d[i]) == null ? void 0 : g.colorBgMenu, o.colorSubItemBg = (w = (m = t.layout) == null ? void 0 : m[i]) == null ? void 0 : w.colorSubItemBg, o.colorItemBgSelected = (R = (p = t.layout) == null ? void 0 : p[i]) == null ? void 0 : R.colorBgMenuItemSelected, o.colorItemBgSelectedHorizontal = (T = (h = t.layout) == null ? void 0 : h[i]) == null ? void 0 : T.colorBgMenuItemSelected, o.colorItemText = (r = (l = t.layout) == null ? void 0 : l[i]) == null ? void 0 : r.colorTextMenu, o.colorItemTextHover = (k = (I = t.layout) == null ? void 0 : I[i]) == null ? void 0 : k.colorTextMenuHover, o.colorItemTextSelected = (y = (x = t.layout) == null ? void 0 : x[i]) == null ? void 0 : y.colorTextMenuSelected, o.colorItemTextSelectedHorizontal = (C = (f = t.layout) == null ? void 0 : f[i]) == null ? void 0 : C.colorTextMenuSelected, i === "sider" && (o.colorItemBgHover = (u = ($ = t.layout) == null ? void 0 : $[i]) == null ? void 0 : u.colorBgMenuItemHover)) : a === "dark" && (o.colorItemBg = (M = (S = t.layout) == null ? void 0 : S[i]) == null ? void 0 : M.colorDarkBgMenu, o.colorSubItemBg = (P = (O = t.layout) == null ? void 0 : O[i]) == null ? void 0 : P.colorDarkSubItemBg, o.colorItemBgSelected = (N = (H = t.layout) == null ? void 0 : H[i]) == null ? void 0 : N.colorDarkBgMenuItemSelected, o.colorItemBgSelectedHorizontal = (V = (D = t.layout) == null ? void 0 : D[i]) == null ? void 0 : V.colorDarkBgMenuItemSelected, o.colorItemText = (_ = (Y = t.layout) == null ? void 0 : Y[i]) == null ? void 0 : _.colorDarkTextMenu, o.colorItemTextHover = (J = (E = t.layout) == null ? void 0 : E[i]) == null ? void 0 : J.colorDarkTextMenuHover, o.colorItemTextSelected = (v = (c = t.layout) == null ? void 0 : c[i]) == null ? void 0 : v.colorDarkTextMenuSelected, o.colorItemTextSelectedHorizontal = (F = (B = t.layout) == null ? void 0 : B[i]) == null ? void 0 : F.colorDarkTextMenuSelected, i === "header" && (o.colorActiveBarHeight = 0)), o;
|
|
259
259
|
}
|
|
260
260
|
const fn = ["left", "right"], ce = ["left", "right", "down", "up"], gn = ["downBig", "upBig", "leftBig", "rightBig"], hn = ["topLeft", "bottomRight", "topRight", "bottomLeft"], yn = ["downLeft", "upRight", "downRight", "upLeft"], We = {
|
|
261
261
|
preset: [
|
|
@@ -324,9 +324,9 @@ function Ii(e, t) {
|
|
|
324
324
|
var i, o;
|
|
325
325
|
const a = ((o = (i = e.find((d) => d.path === t)) == null ? void 0 : i.meta) == null ? void 0 : o.key) || "";
|
|
326
326
|
if (a) {
|
|
327
|
-
const d = [],
|
|
328
|
-
for (let m = 0; m <
|
|
329
|
-
d.push(Ve(
|
|
327
|
+
const d = [], g = a.split("-");
|
|
328
|
+
for (let m = 0; m < g.length; m += 1)
|
|
329
|
+
d.push(Ve(g).splice(0, m + 1).join("-"));
|
|
330
330
|
return e.filter((m) => d.some((w) => {
|
|
331
331
|
var p;
|
|
332
332
|
return w === ((p = m == null ? void 0 : m.meta) == null ? void 0 : p.key) || "";
|
|
@@ -422,7 +422,7 @@ const gt = /* @__PURE__ */ W({
|
|
|
422
422
|
}, d = (l) => {
|
|
423
423
|
var r;
|
|
424
424
|
(r = e.onSelect) == null || r.call(e, l.selectedKeys);
|
|
425
|
-
},
|
|
425
|
+
}, g = (l) => {
|
|
426
426
|
var r;
|
|
427
427
|
(r = e.onClick) == null || r.call(e, ...l);
|
|
428
428
|
}, m = (l, r) => {
|
|
@@ -430,7 +430,7 @@ const gt = /* @__PURE__ */ W({
|
|
|
430
430
|
const I = l.target || "", k = mt(I);
|
|
431
431
|
((x = t.currentRoute.value) == null ? void 0 : x.fullPath) !== r.to && k && I && l.targetStatus === 1 && window.open(I);
|
|
432
432
|
}, w = lt("router-link"), p = (l = []) => l.map((r) => R(r)).filter((r) => r), R = (l) => {
|
|
433
|
-
var k, x, y,
|
|
433
|
+
var k, x, y, f, C, $, u, S, M;
|
|
434
434
|
if (Array.isArray(l.children) && l.children.length > 0 && !((k = l == null ? void 0 : l.meta) != null && k.hideInMenu) && !((x = l == null ? void 0 : l.meta) != null && x.hideChildrenInMenu)) {
|
|
435
435
|
let O;
|
|
436
436
|
if (e.subMenuItemRender)
|
|
@@ -438,7 +438,7 @@ const gt = /* @__PURE__ */ W({
|
|
|
438
438
|
item: l,
|
|
439
439
|
children: p(l.children)
|
|
440
440
|
});
|
|
441
|
-
const P = (y = l.meta) == null ? void 0 : y.title, H = (
|
|
441
|
+
const P = (y = l.meta) == null ? void 0 : y.title, H = (f = l.meta) != null && f.icon ? n("span", {
|
|
442
442
|
class: "gx-pro-sider-menu-item"
|
|
443
443
|
}, [n("span", {
|
|
444
444
|
class: "gx-pro-sider-menu-item-title"
|
|
@@ -489,13 +489,13 @@ const gt = /* @__PURE__ */ W({
|
|
|
489
489
|
onClick: () => m(r, k)
|
|
490
490
|
}), {
|
|
491
491
|
default: () => [n("span", null, [x])]
|
|
492
|
-
}),
|
|
492
|
+
}), f = ((u = l.meta) == null ? void 0 : u.icon) && n(we, {
|
|
493
493
|
className: i,
|
|
494
494
|
icon: (S = l.meta) == null ? void 0 : S.icon,
|
|
495
495
|
iconfontUrl: e.iconfontUrl,
|
|
496
496
|
iconType: (M = l.meta) == null ? void 0 : M.iconType
|
|
497
497
|
}, null) || void 0;
|
|
498
|
-
return [y,
|
|
498
|
+
return [y, f];
|
|
499
499
|
}, T = b(() => p(e.menuData));
|
|
500
500
|
return () => n(ie, G({
|
|
501
501
|
key: "Menu",
|
|
@@ -506,7 +506,7 @@ const gt = /* @__PURE__ */ W({
|
|
|
506
506
|
selectedKeys: e.selectedKeys || [],
|
|
507
507
|
onOpenChange: o,
|
|
508
508
|
onSelect: d,
|
|
509
|
-
onClick:
|
|
509
|
+
onClick: g
|
|
510
510
|
}, e.menuProps), {
|
|
511
511
|
default: () => [T.value]
|
|
512
512
|
});
|
|
@@ -533,7 +533,7 @@ const gt = /* @__PURE__ */ W({
|
|
|
533
533
|
}
|
|
534
534
|
};
|
|
535
535
|
}, Bn = (e) => {
|
|
536
|
-
var t, a, i, o, d,
|
|
536
|
+
var t, a, i, o, d, g, m, w, p, R, h, T;
|
|
537
537
|
return {
|
|
538
538
|
[`${e.proComponentsCls}-basic-layout`]: {
|
|
539
539
|
[`&${e.proComponentsCls}-basic-layout-wide`]: {
|
|
@@ -566,7 +566,7 @@ const gt = /* @__PURE__ */ W({
|
|
|
566
566
|
background: (o = (i = e.layout) == null ? void 0 : i.sider) == null ? void 0 : o.colorBgMenu,
|
|
567
567
|
boxShadow: "2px 0 8px 0 rgba(29,35,41,.05)",
|
|
568
568
|
[`${e.componentCls}-footer`]: {
|
|
569
|
-
color: (
|
|
569
|
+
color: (g = (d = e.layout) == null ? void 0 : d.sider) == null ? void 0 : g.colorTextMenu
|
|
570
570
|
}
|
|
571
571
|
},
|
|
572
572
|
"&-links": {
|
|
@@ -681,11 +681,11 @@ const gt = /* @__PURE__ */ W({
|
|
|
681
681
|
logoStyle: i,
|
|
682
682
|
title: o,
|
|
683
683
|
layout: d
|
|
684
|
-
} = e,
|
|
685
|
-
if (
|
|
684
|
+
} = e, g = e[t || ""];
|
|
685
|
+
if (g === !1)
|
|
686
686
|
return null;
|
|
687
687
|
const m = yt(a, i), w = o && n("h1", null, [o]);
|
|
688
|
-
return typeof
|
|
688
|
+
return typeof g == "function" ? g(m, e.collapsed ? null : w, e) : n(Q, null, [m || null, e.collapsed && d === "side" ? null : w]);
|
|
689
689
|
}, Ae = /* @__PURE__ */ W({
|
|
690
690
|
name: "LogoContent",
|
|
691
691
|
props: de,
|
|
@@ -698,7 +698,7 @@ const gt = /* @__PURE__ */ W({
|
|
|
698
698
|
})), {
|
|
699
699
|
wrapSSR: o,
|
|
700
700
|
hashId: d
|
|
701
|
-
} = ae("ProLayoutLogo", [Fn]),
|
|
701
|
+
} = ae("ProLayoutLogo", [Fn]), g = b(() => Tn(e, e.renderKey));
|
|
702
702
|
return () => o(n("div", {
|
|
703
703
|
id: "logo",
|
|
704
704
|
class: {
|
|
@@ -710,7 +710,7 @@ const gt = /* @__PURE__ */ W({
|
|
|
710
710
|
var m;
|
|
711
711
|
return (m = e.onMenuHeaderClick) == null ? void 0 : m.call(e);
|
|
712
712
|
}
|
|
713
|
-
}, [n("a", null, [
|
|
713
|
+
}, [n("a", null, [g.value || null])]));
|
|
714
714
|
}
|
|
715
715
|
});
|
|
716
716
|
Ae.inheritAttrs = !1;
|
|
@@ -732,7 +732,7 @@ const {
|
|
|
732
732
|
menuData: o,
|
|
733
733
|
openKeys: d
|
|
734
734
|
} = te(), {
|
|
735
|
-
indicator:
|
|
735
|
+
indicator: g
|
|
736
736
|
} = De(), {
|
|
737
737
|
token: m
|
|
738
738
|
} = he(), {
|
|
@@ -747,7 +747,7 @@ const {
|
|
|
747
747
|
collapsedWidth: k,
|
|
748
748
|
menuExtraRender: x,
|
|
749
749
|
menuContentRender: y,
|
|
750
|
-
menuFooterRender:
|
|
750
|
+
menuFooterRender: f,
|
|
751
751
|
collapsedButtonRender: C,
|
|
752
752
|
links: $
|
|
753
753
|
} = Ie(e), u = t({
|
|
@@ -838,7 +838,7 @@ const {
|
|
|
838
838
|
class: ["gx-pro-sider-loading", M.value]
|
|
839
839
|
}, [n(Ce, {
|
|
840
840
|
spinning: h.value,
|
|
841
|
-
indicator:
|
|
841
|
+
indicator: g == null ? void 0 : g.value
|
|
842
842
|
}, null)]), c || null, v && !e.collapsed && n("div", {
|
|
843
843
|
class: {
|
|
844
844
|
[`${M.value}`]: !0,
|
|
@@ -879,9 +879,9 @@ const {
|
|
|
879
879
|
return [(X = E.value) == null ? void 0 : X.call(E, r.value)];
|
|
880
880
|
}
|
|
881
881
|
})]
|
|
882
|
-
})]),
|
|
882
|
+
})]), f.value && n("div", {
|
|
883
883
|
class: `${u}-footer ${M.value}`
|
|
884
|
-
}, [(q =
|
|
884
|
+
}, [(q = f.value) == null ? void 0 : q.call(f, e)])];
|
|
885
885
|
}
|
|
886
886
|
})]
|
|
887
887
|
}));
|
|
@@ -986,7 +986,7 @@ const {
|
|
|
986
986
|
}), {
|
|
987
987
|
wrapSSR: o,
|
|
988
988
|
hashId: d
|
|
989
|
-
} = ae("ProPageHeader", [Dn], i),
|
|
989
|
+
} = ae("ProPageHeader", [Dn], i), g = b(() => {
|
|
990
990
|
var m;
|
|
991
991
|
return {
|
|
992
992
|
...t.value,
|
|
@@ -1003,13 +1003,13 @@ const {
|
|
|
1003
1003
|
var m, w;
|
|
1004
1004
|
return o(n("div", {
|
|
1005
1005
|
class: [`${i}`, d.value, `${i}-has-breadcrumb`]
|
|
1006
|
-
}, [e.breadcrumb ? (m = e.breadcrumb) == null ? void 0 : m.call(e,
|
|
1006
|
+
}, [e.breadcrumb ? (m = e.breadcrumb) == null ? void 0 : m.call(e, g.value) : n(Pt, g.value, null), e.content && n("div", {
|
|
1007
1007
|
class: [`${i}-content`, d.value]
|
|
1008
1008
|
}, [(w = e.content) == null ? void 0 : w.call(e)])]));
|
|
1009
1009
|
};
|
|
1010
1010
|
}
|
|
1011
1011
|
}), zn = (e) => {
|
|
1012
|
-
var t, a, i, o, d,
|
|
1012
|
+
var t, a, i, o, d, g, m, w;
|
|
1013
1013
|
return {
|
|
1014
1014
|
[`${e.proComponentsCls}-basic-layout`]: {
|
|
1015
1015
|
[e.componentCls]: {
|
|
@@ -1022,7 +1022,7 @@ const {
|
|
|
1022
1022
|
},
|
|
1023
1023
|
[e.componentCls]: {
|
|
1024
1024
|
"&-children-content": {
|
|
1025
|
-
marginInline: ((
|
|
1025
|
+
marginInline: ((g = (d = e.layout) == null ? void 0 : d.pageContainer) == null ? void 0 : g.marginInlinePageContainerContent) ?? 24,
|
|
1026
1026
|
marginBlockStart: ((w = (m = e.layout) == null ? void 0 : m.pageContainer) == null ? void 0 : w.marginBlockPageContainerContent) ?? 24,
|
|
1027
1027
|
padding: "inherit"
|
|
1028
1028
|
}
|
|
@@ -1052,7 +1052,7 @@ const Mi = /* @__PURE__ */ W({
|
|
|
1052
1052
|
getPrefixCls: i,
|
|
1053
1053
|
hasContentWide: o,
|
|
1054
1054
|
waterMark: d,
|
|
1055
|
-
pageHeaderRender:
|
|
1055
|
+
pageHeaderRender: g,
|
|
1056
1056
|
pageContentStyle: m,
|
|
1057
1057
|
pageChildrenContentStyle: w,
|
|
1058
1058
|
pageCardProps: p,
|
|
@@ -1066,7 +1066,7 @@ const Mi = /* @__PURE__ */ W({
|
|
|
1066
1066
|
}), I = i({
|
|
1067
1067
|
suffixCls: "grid-content",
|
|
1068
1068
|
isPor: !0
|
|
1069
|
-
}), k = b(() => e.pageCardProps || p.value), x = b(() => e.waterMarkProps || h.value || {}), y = b(() => e.pageContentStyle || m.value),
|
|
1069
|
+
}), k = b(() => e.pageCardProps || p.value), x = b(() => e.waterMarkProps || h.value || {}), y = b(() => e.pageContentStyle || m.value), f = b(() => e.pageChildrenContentStyle || w.value || {}), C = b(() => _e(e.usePageCard) ? e.usePageCard : _e(R.value) ? R.value : !0), {
|
|
1070
1070
|
wrapSSR: $,
|
|
1071
1071
|
hashId: u
|
|
1072
1072
|
} = Hn(r), S = () => {
|
|
@@ -1074,7 +1074,7 @@ const Mi = /* @__PURE__ */ W({
|
|
|
1074
1074
|
const O = K(t, e, "pageChildrenExtraRender");
|
|
1075
1075
|
return n("div", {
|
|
1076
1076
|
class: `${r}-children-content ${u.value}`,
|
|
1077
|
-
style:
|
|
1077
|
+
style: f.value
|
|
1078
1078
|
}, [O && (O == null ? void 0 : O()), C.value ? n(Lt, G(k.value ? se(k.value, ["loading", "bodyStyle"]) : {}, {
|
|
1079
1079
|
style: o.value ? {
|
|
1080
1080
|
minHeight: "853px"
|
|
@@ -1097,7 +1097,7 @@ const Mi = /* @__PURE__ */ W({
|
|
|
1097
1097
|
}) : S()]);
|
|
1098
1098
|
};
|
|
1099
1099
|
return () => {
|
|
1100
|
-
const O = K(t, e, "pageHeaderRender") ||
|
|
1100
|
+
const O = K(t, e, "pageHeaderRender") || g.value, P = K(t, e, "breadcrumbRender"), H = K(t, e, "contentRender");
|
|
1101
1101
|
return $(n(Ce, {
|
|
1102
1102
|
spinning: e.loading,
|
|
1103
1103
|
indicator: T == null ? void 0 : T.value
|
|
@@ -1476,7 +1476,7 @@ const Yn = Le.TabPane, _n = ie.Item, Gn = /* @__PURE__ */ W({
|
|
|
1476
1476
|
activeKey: "",
|
|
1477
1477
|
contextMenuActiveKey: ""
|
|
1478
1478
|
}), d = Ne(), {
|
|
1479
|
-
menuData:
|
|
1479
|
+
menuData: g,
|
|
1480
1480
|
flatMenuData: m,
|
|
1481
1481
|
layout: w,
|
|
1482
1482
|
splitMenus: p,
|
|
@@ -1495,9 +1495,9 @@ const Yn = Le.TabPane, _n = ie.Item, Gn = /* @__PURE__ */ W({
|
|
|
1495
1495
|
deep: !0
|
|
1496
1496
|
});
|
|
1497
1497
|
const I = b(() => w.value === "mix" && !e.isMobile && p.value), k = b(() => A(d.currentRoute.value)), x = b(() => a.value && !t.value), y = b(() => {
|
|
1498
|
-
const c = !(I.value && U(m.value).length === 0 ||
|
|
1498
|
+
const c = !(I.value && U(m.value).length === 0 || g.value.length === 0 || w.value === "top");
|
|
1499
1499
|
return x.value && c ? `calc(100% - ${e.collapsed ? e.collapsedWidth : e.siderWidth}px)` : "100%";
|
|
1500
|
-
}),
|
|
1500
|
+
}), f = b(() => ct(`${h}-wrap`, {
|
|
1501
1501
|
[`${l.value}`]: !0,
|
|
1502
1502
|
[`${h}-wrap-fixed`]: e.isFixedMultiTab,
|
|
1503
1503
|
[`${h}-wrap-loading`]: e.loading
|
|
@@ -1532,7 +1532,7 @@ const Yn = Le.TabPane, _n = ie.Item, Gn = /* @__PURE__ */ W({
|
|
|
1532
1532
|
v.meta && v.meta.tagFixed && u(v), v.children && S(v.children);
|
|
1533
1533
|
});
|
|
1534
1534
|
};
|
|
1535
|
-
me(() =>
|
|
1535
|
+
me(() => g.value, (c) => {
|
|
1536
1536
|
S(c);
|
|
1537
1537
|
}, {
|
|
1538
1538
|
deep: !0,
|
|
@@ -1667,7 +1667,7 @@ const Yn = Le.TabPane, _n = ie.Item, Gn = /* @__PURE__ */ W({
|
|
|
1667
1667
|
hideAdd: !0,
|
|
1668
1668
|
type: "editable-card",
|
|
1669
1669
|
style: C.value,
|
|
1670
|
-
class:
|
|
1670
|
+
class: f.value,
|
|
1671
1671
|
activeKey: o.activeKey,
|
|
1672
1672
|
onTabClick: H
|
|
1673
1673
|
}, {
|
|
@@ -1702,7 +1702,7 @@ const Yn = Le.TabPane, _n = ie.Item, Gn = /* @__PURE__ */ W({
|
|
|
1702
1702
|
hashId: i,
|
|
1703
1703
|
prefixCls: o,
|
|
1704
1704
|
isMobile: d,
|
|
1705
|
-
loading:
|
|
1705
|
+
loading: g,
|
|
1706
1706
|
collapsed: m,
|
|
1707
1707
|
siderWidth: w,
|
|
1708
1708
|
isShowTabsBar: p,
|
|
@@ -1719,7 +1719,7 @@ const Yn = Le.TabPane, _n = ie.Item, Gn = /* @__PURE__ */ W({
|
|
|
1719
1719
|
return n(Q, null, [n(Gn, {
|
|
1720
1720
|
visible: (U(r) === "mix" ? U(l).length > 0 : !0) && p,
|
|
1721
1721
|
isMobile: d,
|
|
1722
|
-
loading:
|
|
1722
|
+
loading: g,
|
|
1723
1723
|
isFixedMultiTab: R,
|
|
1724
1724
|
siderWidth: w,
|
|
1725
1725
|
collapsed: m,
|
|
@@ -1731,10 +1731,10 @@ const Yn = Le.TabPane, _n = ie.Item, Gn = /* @__PURE__ */ W({
|
|
|
1731
1731
|
}, {
|
|
1732
1732
|
default: () => {
|
|
1733
1733
|
var k;
|
|
1734
|
-
return [
|
|
1734
|
+
return [g && n(un, null, null), n("div", {
|
|
1735
1735
|
class: [`${o}-content-spin-container`, i],
|
|
1736
1736
|
style: {
|
|
1737
|
-
opacity:
|
|
1737
|
+
opacity: g ? "0" : void 0
|
|
1738
1738
|
}
|
|
1739
1739
|
}, [(k = t.default) == null ? void 0 : k.call(t)])];
|
|
1740
1740
|
}
|
|
@@ -1898,7 +1898,7 @@ const Zn = (e) => {
|
|
|
1898
1898
|
token: o
|
|
1899
1899
|
} = he(), {
|
|
1900
1900
|
getPrefixCls: d,
|
|
1901
|
-
openKeys:
|
|
1901
|
+
openKeys: g,
|
|
1902
1902
|
selectedKeys: m
|
|
1903
1903
|
} = te(), {
|
|
1904
1904
|
width: w
|
|
@@ -1908,26 +1908,26 @@ const Zn = (e) => {
|
|
|
1908
1908
|
}), {
|
|
1909
1909
|
wrapSSR: R,
|
|
1910
1910
|
hashId: h
|
|
1911
|
-
} = ae("ProGlobalHeader", [Jn], p), T = b(() =>
|
|
1911
|
+
} = ae("ProGlobalHeader", [Jn], p), T = b(() => e.isMobile ? !1 : e.layout === "top" || e.layout === "mix" && e.splitMenus), l = b(() => ({
|
|
1912
1912
|
[`${h.value}`]: !0,
|
|
1913
1913
|
[`${p}`]: !0,
|
|
1914
1914
|
[`${p}-${e.layout}`]: !0
|
|
1915
1915
|
})), r = (y) => {
|
|
1916
|
-
var
|
|
1916
|
+
var f;
|
|
1917
1917
|
if (i.currentRoute) {
|
|
1918
1918
|
const C = i.currentRoute.value.matched.concat();
|
|
1919
|
-
e.onSelect && y === "select" && e.onSelect(C.filter(($) => $.name !== "index").map(($) => $.path)), e.onOpenKeys && y === "openKeys" && ((
|
|
1919
|
+
e.onSelect && y === "select" && e.onSelect(C.filter(($) => $.name !== "index").map(($) => $.path)), e.onOpenKeys && y === "openKeys" && ((f = e.onOpenKeys) == null || f.call(e, C.filter(($) => $.path !== i.currentRoute.value.path).map(($) => $.path)));
|
|
1920
1920
|
}
|
|
1921
1921
|
}, I = () => {
|
|
1922
1922
|
a("collapse", !e.collapsed);
|
|
1923
1923
|
}, k = b(() => e.collapsedButtonRender || bt), x = () => {
|
|
1924
|
-
var y;
|
|
1924
|
+
var y, f;
|
|
1925
1925
|
return n(Q, null, [T.value ? n("div", {
|
|
1926
1926
|
style: {
|
|
1927
1927
|
flex: 1
|
|
1928
1928
|
},
|
|
1929
1929
|
class: [`${p}-menu`, h.value]
|
|
1930
|
-
}, [n(Pe, {
|
|
1930
|
+
}, [((y = e.menuData) == null ? void 0 : y.length) > 0 && n(Pe, {
|
|
1931
1931
|
theme: {
|
|
1932
1932
|
components: {
|
|
1933
1933
|
Layout: {
|
|
@@ -1949,7 +1949,7 @@ const Zn = (e) => {
|
|
|
1949
1949
|
mode: e.mode,
|
|
1950
1950
|
collapsed: e.collapsed,
|
|
1951
1951
|
menuData: e.menuData,
|
|
1952
|
-
openKeys:
|
|
1952
|
+
openKeys: g.value,
|
|
1953
1953
|
selectedKeys: m.value,
|
|
1954
1954
|
iconfontUrl: e.iconfontUrl,
|
|
1955
1955
|
menuItemRender: e.menuItemRender,
|
|
@@ -1966,7 +1966,7 @@ const Zn = (e) => {
|
|
|
1966
1966
|
style: {
|
|
1967
1967
|
flex: 1
|
|
1968
1968
|
}
|
|
1969
|
-
}, [(
|
|
1969
|
+
}, [(f = t.default) == null ? void 0 : f.call(t)]), e.layout !== "simple" && n(ea, G(e, {
|
|
1970
1970
|
extraRightDropdownRender: e.extraRightDropdownRender,
|
|
1971
1971
|
rightContentRender: e.rightContentRender
|
|
1972
1972
|
}), null)]);
|
|
@@ -1975,8 +1975,8 @@ const Zn = (e) => {
|
|
|
1975
1975
|
const y = n("span", {
|
|
1976
1976
|
key: "logo",
|
|
1977
1977
|
onClick: () => {
|
|
1978
|
-
var
|
|
1979
|
-
return (
|
|
1978
|
+
var f;
|
|
1979
|
+
return (f = e.onMenuHeaderClick) == null ? void 0 : f.call(e);
|
|
1980
1980
|
},
|
|
1981
1981
|
class: [`${p}-logo`, e.isMobile ? "mobile" : "", h.value]
|
|
1982
1982
|
}, [n("a", null, [yt(e.logo)])]);
|
|
@@ -2014,7 +2014,7 @@ const {
|
|
|
2014
2014
|
fixedHeader: i,
|
|
2015
2015
|
headerHeight: o,
|
|
2016
2016
|
layout: d,
|
|
2017
|
-
onCollapse:
|
|
2017
|
+
onCollapse: g,
|
|
2018
2018
|
splitMenus: m
|
|
2019
2019
|
} = Ie(e), {
|
|
2020
2020
|
getPrefixCls: w,
|
|
@@ -2028,7 +2028,7 @@ const {
|
|
|
2028
2028
|
}), {
|
|
2029
2029
|
wrapSSR: T,
|
|
2030
2030
|
hashId: l
|
|
2031
|
-
} = ae("ProLayoutHeader", [Zn], R), r = b(() => d.value === "wide"), I = b(() => i.value), k = b(() => d.value === "mix" || r.value), x = b(() => d.value === "side" || d.value === "simple"), y = b(() => x.value && "light" || t.value),
|
|
2031
|
+
} = ae("ProLayoutHeader", [Zn], R), r = b(() => d.value === "wide"), I = b(() => i.value), k = b(() => d.value === "mix" || r.value), x = b(() => d.value === "side" || d.value === "simple"), y = b(() => x.value && "light" || t.value), f = b(() => ({
|
|
2032
2032
|
[`${l.value}`]: !0,
|
|
2033
2033
|
[`${R}-${y.value}`]: !0,
|
|
2034
2034
|
[`${R}`]: !0,
|
|
@@ -2037,7 +2037,7 @@ const {
|
|
|
2037
2037
|
const O = n(ta, G(e, {
|
|
2038
2038
|
theme: y.value,
|
|
2039
2039
|
mode: "horizontal",
|
|
2040
|
-
onCollapse:
|
|
2040
|
+
onCollapse: g.value,
|
|
2041
2041
|
menuData: $.value
|
|
2042
2042
|
}), {
|
|
2043
2043
|
default: () => [k.value ? null : e.headerContentRender && typeof e.headerContentRender == "function" ? e.headerContentRender(e) : e.headerContentRender]
|
|
@@ -2055,7 +2055,7 @@ const {
|
|
|
2055
2055
|
}
|
|
2056
2056
|
}, null), n(Qe, {
|
|
2057
2057
|
theme: y.value,
|
|
2058
|
-
class:
|
|
2058
|
+
class: f.value,
|
|
2059
2059
|
style: {
|
|
2060
2060
|
height: `${o.value}px`,
|
|
2061
2061
|
lineHeight: `${o.value}px`,
|
|
@@ -2088,10 +2088,10 @@ const {
|
|
|
2088
2088
|
wrapSSR: i,
|
|
2089
2089
|
hashId: o
|
|
2090
2090
|
} = ae("ProLayout", [Wn, Kn], a), d = on(), {
|
|
2091
|
-
token:
|
|
2091
|
+
token: g
|
|
2092
2092
|
} = he(), m = b(() => {
|
|
2093
2093
|
var y;
|
|
2094
|
-
return (y =
|
|
2094
|
+
return (y = g == null ? void 0 : g.value) == null ? void 0 : y.colorPrimary;
|
|
2095
2095
|
});
|
|
2096
2096
|
Ft(() => {
|
|
2097
2097
|
m.value && document.querySelector("html") && document.querySelector("html").style.setProperty("--gx-primary-color", m.value);
|
|
@@ -2100,8 +2100,8 @@ const {
|
|
|
2100
2100
|
position: "relative"
|
|
2101
2101
|
});
|
|
2102
2102
|
(e.isChildrenLayout || e.contentStyle && e.contentStyle.minHeight) && (r.minHeight = 0);
|
|
2103
|
-
const I = (y,
|
|
2104
|
-
matchMenuKeys:
|
|
2103
|
+
const I = (y, f) => y.headerRender === !1 || y.pure ? null : n(Fe, G(y, {
|
|
2104
|
+
matchMenuKeys: f || []
|
|
2105
2105
|
}), null), k = b(() => ({
|
|
2106
2106
|
...e.breadcrumb,
|
|
2107
2107
|
itemRender: K(t, e, "breadcrumbRender")
|
|
@@ -2120,7 +2120,7 @@ const {
|
|
|
2120
2120
|
pageHeaderRender: b(() => K(t, e, "pageHeaderRender"))
|
|
2121
2121
|
}), () => {
|
|
2122
2122
|
var F;
|
|
2123
|
-
const y = K(t, e, "collapsedButtonRender"),
|
|
2123
|
+
const y = K(t, e, "collapsedButtonRender"), f = K(t, e, "headerContentRender"), C = K(t, e, "rightContentRender"), $ = K(t, e, "headerRender"), u = K(t, e, "footerRender"), S = K(t, e, "links"), M = K(t, e, "copyrightRender"), O = K(t, e, "extraRightDropdownRender"), P = K(t, e, "menuHeaderRender"), H = K(t, e, "menuExtraRender"), N = K(t, e, "menuContentRender"), D = K(t, e, "menuFooterRender"), V = K(t, e, "menuItemRender"), Y = K(t, e, "subMenuItemRender"), _ = {
|
|
2124
2124
|
menuItemRender: V,
|
|
2125
2125
|
subMenuItemRender: Y
|
|
2126
2126
|
}, E = b(() => I({
|
|
@@ -2132,7 +2132,7 @@ const {
|
|
|
2132
2132
|
rightContentRender: C,
|
|
2133
2133
|
extraRightDropdownRender: O,
|
|
2134
2134
|
headerTitleRender: P,
|
|
2135
|
-
headerContentRender:
|
|
2135
|
+
headerContentRender: f,
|
|
2136
2136
|
headerRender: $,
|
|
2137
2137
|
theme: T.value
|
|
2138
2138
|
}, e.matchMenuKeys)), J = b(() => ({
|
|
@@ -2211,7 +2211,7 @@ const {
|
|
|
2211
2211
|
a("update:collapsed", m), a("collapse", m);
|
|
2212
2212
|
}, d = (m) => {
|
|
2213
2213
|
a("update:open-keys", m), a("openKeys", m);
|
|
2214
|
-
},
|
|
2214
|
+
}, g = (m) => {
|
|
2215
2215
|
a("update:selected-keys", m), a("select", m);
|
|
2216
2216
|
};
|
|
2217
2217
|
return () => n(Pe, {
|
|
@@ -2225,7 +2225,7 @@ const {
|
|
|
2225
2225
|
token: e.token
|
|
2226
2226
|
}, i.value), {
|
|
2227
2227
|
default: () => [n(aa, G(je(e, ["onSelect", "onOpenKeys", "onCollapse"]), {
|
|
2228
|
-
onSelect:
|
|
2228
|
+
onSelect: g,
|
|
2229
2229
|
onOpenKeys: d,
|
|
2230
2230
|
onCollapse: o
|
|
2231
2231
|
}), t)]
|
|
@@ -2515,9 +2515,9 @@ const {
|
|
|
2515
2515
|
title: d
|
|
2516
2516
|
}, {
|
|
2517
2517
|
default: () => {
|
|
2518
|
-
var
|
|
2518
|
+
var g, m;
|
|
2519
2519
|
return [n("div", {
|
|
2520
|
-
class: [`${t}-block ${e.hashId}`.trim(), ((
|
|
2520
|
+
class: [`${t}-block ${e.hashId}`.trim(), ((g = e.settingValue) == null ? void 0 : g.primaryColor) === o ? `${t}-block-checked` : ""],
|
|
2521
2521
|
style: {
|
|
2522
2522
|
backgroundColor: o
|
|
2523
2523
|
},
|
|
@@ -2620,14 +2620,14 @@ const da = /* @__PURE__ */ W({
|
|
|
2620
2620
|
isPor: !0
|
|
2621
2621
|
}), {
|
|
2622
2622
|
wrapSSR: d,
|
|
2623
|
-
hashId:
|
|
2623
|
+
hashId: g
|
|
2624
2624
|
} = ae("ProThemeEditor", [ra], o), {
|
|
2625
2625
|
token: m
|
|
2626
2626
|
} = he(), w = b(() => {
|
|
2627
2627
|
var l;
|
|
2628
2628
|
return (l = m.value) == null ? void 0 : l.layout;
|
|
2629
2629
|
}), p = b(() => {
|
|
2630
|
-
var l, r, I, k, x, y,
|
|
2630
|
+
var l, r, I, k, x, y, f, C, $, u, S, M, O, P, H, N, D, V, Y, _, E, J, c, v, B;
|
|
2631
2631
|
return [{
|
|
2632
2632
|
key: "colorBgMenu",
|
|
2633
2633
|
title: "全部背景",
|
|
@@ -2647,7 +2647,7 @@ const da = /* @__PURE__ */ W({
|
|
|
2647
2647
|
}, {
|
|
2648
2648
|
key: "colorBgMenuItemSelected",
|
|
2649
2649
|
title: "菜单选中背景",
|
|
2650
|
-
disabled: ((y = e.settingValue) == null ? void 0 : y.theme) === "dark" && ["mix", "wide"].includes((
|
|
2650
|
+
disabled: ((y = e.settingValue) == null ? void 0 : y.theme) === "dark" && ["mix", "wide"].includes((f = e.settingValue) == null ? void 0 : f.layout)
|
|
2651
2651
|
}, {
|
|
2652
2652
|
key: "colorDarkBgMenuItemSelected",
|
|
2653
2653
|
title: "菜单选中背景",
|
|
@@ -2678,7 +2678,7 @@ const da = /* @__PURE__ */ W({
|
|
|
2678
2678
|
disabled: ((c = e.settingValue) == null ? void 0 : c.theme) === "light" || ((v = e.settingValue) == null ? void 0 : v.theme) === "dark" && ["side", "simple"].includes((B = e.settingValue) == null ? void 0 : B.layout)
|
|
2679
2679
|
}];
|
|
2680
2680
|
}), R = b(() => {
|
|
2681
|
-
var l, r, I, k, x, y,
|
|
2681
|
+
var l, r, I, k, x, y, f, C, $, u, S, M, O, P, H, N, D, V, Y, _, E, J, c, v, B, F, z, q, X, ne, ee, Xe;
|
|
2682
2682
|
return [{
|
|
2683
2683
|
key: "colorBgMenu",
|
|
2684
2684
|
title: "全部背景",
|
|
@@ -2690,7 +2690,7 @@ const da = /* @__PURE__ */ W({
|
|
|
2690
2690
|
}, {
|
|
2691
2691
|
key: "colorSubItemBg",
|
|
2692
2692
|
title: "子菜单背景",
|
|
2693
|
-
disabled: ((y = e.settingValue) == null ? void 0 : y.theme) === "dark" && ["side", "simple"].includes((
|
|
2693
|
+
disabled: ((y = e.settingValue) == null ? void 0 : y.theme) === "dark" && ["side", "simple"].includes((f = e.settingValue) == null ? void 0 : f.layout)
|
|
2694
2694
|
}, {
|
|
2695
2695
|
key: "colorDarkSubItemBg",
|
|
2696
2696
|
title: "子菜单背景",
|
|
@@ -2740,11 +2740,11 @@ const da = /* @__PURE__ */ W({
|
|
|
2740
2740
|
var r, I, k;
|
|
2741
2741
|
let l;
|
|
2742
2742
|
return d(n("div", {
|
|
2743
|
-
class: [o,
|
|
2743
|
+
class: [o, g.value]
|
|
2744
2744
|
}, [n("h3", {
|
|
2745
|
-
class: [`${o}-title`,
|
|
2745
|
+
class: [`${o}-title`, g.value]
|
|
2746
2746
|
}, [oe("主题编辑器"), n("div", {
|
|
2747
|
-
class: [`${o}-sub-title`,
|
|
2747
|
+
class: [`${o}-sub-title`, g.value]
|
|
2748
2748
|
}, [n("span", null, [(r = Mt.find((x) => {
|
|
2749
2749
|
var y;
|
|
2750
2750
|
return x.key === ((y = e.settingValue) == null ? void 0 : y.theme);
|
|
@@ -2756,9 +2756,9 @@ const da = /* @__PURE__ */ W({
|
|
|
2756
2756
|
var y;
|
|
2757
2757
|
return x.key === ((y = e.settingValue) == null ? void 0 : y.layout);
|
|
2758
2758
|
})) == null ? void 0 : I.title])])]), n("div", {
|
|
2759
|
-
class: [`${o}-content`,
|
|
2759
|
+
class: [`${o}-content`, g.value]
|
|
2760
2760
|
}, [n(le, {
|
|
2761
|
-
class: `${o}-list ${
|
|
2761
|
+
class: `${o}-list ${g.value}`.trim(),
|
|
2762
2762
|
split: !1,
|
|
2763
2763
|
size: "small",
|
|
2764
2764
|
renderItem: ({
|
|
@@ -2790,7 +2790,7 @@ const da = /* @__PURE__ */ W({
|
|
|
2790
2790
|
tab: x.title
|
|
2791
2791
|
}, {
|
|
2792
2792
|
default: () => [n(le, {
|
|
2793
|
-
class: `${o}-list ${
|
|
2793
|
+
class: `${o}-list ${g.value}`.trim(),
|
|
2794
2794
|
split: !1,
|
|
2795
2795
|
size: "small",
|
|
2796
2796
|
renderItem: ({
|
|
@@ -2811,7 +2811,7 @@ const da = /* @__PURE__ */ W({
|
|
|
2811
2811
|
actions: ["confirm"],
|
|
2812
2812
|
modes: ["rgb"],
|
|
2813
2813
|
size: "small",
|
|
2814
|
-
onConfirm: (
|
|
2814
|
+
onConfirm: (f) => e.onChange && e.onChange(f, a.value, y.key)
|
|
2815
2815
|
}, null)
|
|
2816
2816
|
}))
|
|
2817
2817
|
}, null)]
|
|
@@ -2872,7 +2872,7 @@ const {
|
|
|
2872
2872
|
hashId: i
|
|
2873
2873
|
} = ae("SettingsDrawOthers", [ua], t);
|
|
2874
2874
|
return () => {
|
|
2875
|
-
var d,
|
|
2875
|
+
var d, g, m, w, p, R, h, T, l, r, I, k, x, y;
|
|
2876
2876
|
let o;
|
|
2877
2877
|
return a(n("div", {
|
|
2878
2878
|
class: [t, i.value]
|
|
@@ -2883,29 +2883,29 @@ const {
|
|
|
2883
2883
|
split: !1,
|
|
2884
2884
|
size: "small",
|
|
2885
2885
|
renderItem: ({
|
|
2886
|
-
item:
|
|
2886
|
+
item: f
|
|
2887
2887
|
}) => n(Me, {
|
|
2888
|
-
title:
|
|
2888
|
+
title: f.disabled ? f.disabledReason : "",
|
|
2889
2889
|
placement: "left"
|
|
2890
2890
|
}, {
|
|
2891
2891
|
default: () => [n(le.Item, {
|
|
2892
|
-
actions: [
|
|
2892
|
+
actions: [f.action]
|
|
2893
2893
|
}, {
|
|
2894
2894
|
default: () => [n("span", {
|
|
2895
2895
|
style: {
|
|
2896
|
-
opacity:
|
|
2896
|
+
opacity: f.disabled ? 0.5 : 1
|
|
2897
2897
|
}
|
|
2898
|
-
}, [
|
|
2898
|
+
}, [f.title])]
|
|
2899
2899
|
})]
|
|
2900
2900
|
}),
|
|
2901
2901
|
dataSource: [{
|
|
2902
2902
|
title: "禁用动画",
|
|
2903
2903
|
action: n(st, {
|
|
2904
|
-
checked: !((
|
|
2904
|
+
checked: !((g = (d = e.settingValue) == null ? void 0 : d.animate) != null && g.disabled),
|
|
2905
2905
|
size: "small",
|
|
2906
|
-
onChange: (
|
|
2906
|
+
onChange: (f) => {
|
|
2907
2907
|
var C;
|
|
2908
|
-
return (C = e.onChange) == null ? void 0 : C.call(e, "animate", "disabled", !
|
|
2908
|
+
return (C = e.onChange) == null ? void 0 : C.call(e, "animate", "disabled", !f);
|
|
2909
2909
|
}
|
|
2910
2910
|
}, null)
|
|
2911
2911
|
}, {
|
|
@@ -2918,15 +2918,15 @@ const {
|
|
|
2918
2918
|
},
|
|
2919
2919
|
size: "small",
|
|
2920
2920
|
disabled: (T = (h = e.settingValue) == null ? void 0 : h.animate) == null ? void 0 : T.disabled,
|
|
2921
|
-
getPopupContainer: (
|
|
2922
|
-
onChange: (
|
|
2921
|
+
getPopupContainer: (f) => f && f.parentNode ? f.parentNode : f,
|
|
2922
|
+
onChange: (f) => {
|
|
2923
2923
|
var C;
|
|
2924
|
-
return (C = e.onChange) == null ? void 0 : C.call(e, "animate", "name",
|
|
2924
|
+
return (C = e.onChange) == null ? void 0 : C.call(e, "animate", "name", f);
|
|
2925
2925
|
}
|
|
2926
|
-
}, tt(o = nt.map((
|
|
2927
|
-
value:
|
|
2926
|
+
}, tt(o = nt.map((f) => n(ye.Option, {
|
|
2927
|
+
value: f.name
|
|
2928
2928
|
}, {
|
|
2929
|
-
default: () => [
|
|
2929
|
+
default: () => [f.alias]
|
|
2930
2930
|
}))) ? o : {
|
|
2931
2931
|
default: () => [o]
|
|
2932
2932
|
})
|
|
@@ -2943,18 +2943,18 @@ const {
|
|
|
2943
2943
|
minWidth: "120px"
|
|
2944
2944
|
},
|
|
2945
2945
|
disabled: (y = (x = e.settingValue) == null ? void 0 : x.animate) == null ? void 0 : y.disabled,
|
|
2946
|
-
getPopupContainer: (
|
|
2947
|
-
onChange: (
|
|
2946
|
+
getPopupContainer: (f) => f && f.parentNode ? f.parentNode : f,
|
|
2947
|
+
onChange: (f) => {
|
|
2948
2948
|
var C;
|
|
2949
|
-
return (C = e.onChange) == null ? void 0 : C.call(e, "animate", "direction",
|
|
2949
|
+
return (C = e.onChange) == null ? void 0 : C.call(e, "animate", "direction", f);
|
|
2950
2950
|
}
|
|
2951
2951
|
}, {
|
|
2952
2952
|
default: () => {
|
|
2953
|
-
var
|
|
2954
|
-
return [(
|
|
2953
|
+
var f;
|
|
2954
|
+
return [(f = nt.find((C) => {
|
|
2955
2955
|
var $, u;
|
|
2956
2956
|
return C.name === ((u = ($ = e.settingValue) == null ? void 0 : $.animate) == null ? void 0 : u.name);
|
|
2957
|
-
})) == null ? void 0 :
|
|
2957
|
+
})) == null ? void 0 : f.directions.map((C) => n(ye.Option, {
|
|
2958
2958
|
value: C
|
|
2959
2959
|
}, tt(C) ? C : {
|
|
2960
2960
|
default: () => [C]
|
|
@@ -3027,15 +3027,15 @@ const {
|
|
|
3027
3027
|
}), {
|
|
3028
3028
|
wrapSSR: i,
|
|
3029
3029
|
hashId: o
|
|
3030
|
-
} = ae("ProSettingDraw", [ia], a), d = ke(!1), [
|
|
3030
|
+
} = ae("ProSettingDraw", [ia], a), d = ke(!1), [g, m] = xe(!1), [w, p] = xe(!1), [R, h] = xe(!1), T = b(() => ot(se(e.settings, Te))), [l, r] = ln(() => ot(se(e.settings, Te)), {
|
|
3031
3031
|
value: T,
|
|
3032
3032
|
onChange: e.onChange
|
|
3033
3033
|
}), I = b(() => e.colorList && tn(e.colorList) ? e.colorList : []), k = b(() => wn(U(l))), {
|
|
3034
3034
|
copy: x,
|
|
3035
3035
|
copied: y,
|
|
3036
|
-
isSupported:
|
|
3036
|
+
isSupported: f
|
|
3037
3037
|
} = sn();
|
|
3038
|
-
me(
|
|
3038
|
+
me(g, () => {
|
|
3039
3039
|
d.value || (d.value = !0);
|
|
3040
3040
|
});
|
|
3041
3041
|
const C = (u, S, M) => {
|
|
@@ -3054,15 +3054,15 @@ const {
|
|
|
3054
3054
|
...Cn(je(P, O))
|
|
3055
3055
|
}));
|
|
3056
3056
|
}, $ = () => {
|
|
3057
|
-
|
|
3057
|
+
f.value && x(JSON.stringify(U(l)));
|
|
3058
3058
|
};
|
|
3059
3059
|
return me(y, (u) => {
|
|
3060
3060
|
u && zt.success("拷贝成功,请到 config/default/themeConfig.js 中替换默认配置");
|
|
3061
3061
|
}), () => i(n(ve, {
|
|
3062
3062
|
width: 300,
|
|
3063
3063
|
closable: !1,
|
|
3064
|
-
open:
|
|
3065
|
-
rootClassName: `${a} ${o.value} ${
|
|
3064
|
+
open: g.value,
|
|
3065
|
+
rootClassName: `${a} ${o.value} ${g.value && `${a}-show`} ${!d.value && `${a}-trantion-none`}`,
|
|
3066
3066
|
placement: "right",
|
|
3067
3067
|
rootStyle: {
|
|
3068
3068
|
zIndex: 999
|
|
@@ -3073,8 +3073,8 @@ const {
|
|
|
3073
3073
|
onClose: () => m(!1),
|
|
3074
3074
|
handle: n("div", {
|
|
3075
3075
|
class: [`${a}-handle`, o.value],
|
|
3076
|
-
onClick: () => m(!
|
|
3077
|
-
}, [
|
|
3076
|
+
onClick: () => m(!g.value)
|
|
3077
|
+
}, [g.value ? n(dt, {
|
|
3078
3078
|
style: at
|
|
3079
3079
|
}, null) : n(Yt, {
|
|
3080
3080
|
style: at
|
|
@@ -4526,7 +4526,7 @@ const Bi = /* @__PURE__ */ W({
|
|
|
4526
4526
|
}), {
|
|
4527
4527
|
wrapSSR: i,
|
|
4528
4528
|
hashId: o
|
|
4529
|
-
} = di(a), d = b(() => [m(!1), `${a}-enter`, o.value].join(" ")),
|
|
4529
|
+
} = di(a), d = b(() => [m(!1), `${a}-enter`, o.value].join(" ")), g = b(() => [m(!0), `${a}-leave`, o.value].join(" ")), m = (p) => {
|
|
4530
4530
|
const R = We.preset.find((l) => e.name == l.name);
|
|
4531
4531
|
if (R == null)
|
|
4532
4532
|
return "";
|
|
@@ -4544,7 +4544,7 @@ const Bi = /* @__PURE__ */ W({
|
|
|
4544
4544
|
var p;
|
|
4545
4545
|
return e.disabled ? (p = t.default) == null ? void 0 : p.call(t) : i(n(Tt, {
|
|
4546
4546
|
enterActiveClass: d.value,
|
|
4547
|
-
leaveActiveClass:
|
|
4547
|
+
leaveActiveClass: g.value
|
|
4548
4548
|
}, {
|
|
4549
4549
|
default: () => {
|
|
4550
4550
|
var R;
|
package/dist/pro-layout.umd.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(V,t){typeof exports=="object"&&typeof module<"u"?t(exports,require("vue"),require("ant-design-vue"),require("@gx-design-vue/pro-app"),require("vue-router"),require("@ant-design/icons-vue"),require("@gx-design-vue/pro-provider"),require("vue-types"),require("lodash-es"),require("@gx-design-vue/pro-watermark"),require("@gx-design-vue/pro-utils"),require("@gx-design-vue/pro-hooks"),require("@vueuse/core"),require("@gx-design-vue/scrollbar"),require("@gx-design-vue/color-picker")):typeof define=="function"&&define.amd?define(["exports","vue","ant-design-vue","@gx-design-vue/pro-app","vue-router","@ant-design/icons-vue","@gx-design-vue/pro-provider","vue-types","lodash-es","@gx-design-vue/pro-watermark","@gx-design-vue/pro-utils","@gx-design-vue/pro-hooks","@vueuse/core","@gx-design-vue/scrollbar","@gx-design-vue/color-picker"],t):(V=typeof globalThis<"u"?globalThis:V||self,t(V.ProLayout={},V.vue,V.antDesignVue,V.proApp,V.vueRouter,V.iconsVue,V.ProConfigProvider,V.vueTypes,V.lodashEs,V.proWatermark,V.proUtils,V.proHooks,V.core,V.GScrollbars,V.colorPicker))})(this,function(V,t,p,he,ie,Z,i,lt,J,it,K,ne,we,rt,Ne){"use strict";const Ie=t.defineComponent({name:"PageLoading",props:{...p.Spin.props},setup(e){const{indicator:a}=he.useProAppContext();return t.createVNode("div",{style:{paddingTop:"100px",textAlign:"center"}},[t.createVNode(p.Spin,t.mergeProps(e,{indicator:a==null?void 0:a.value}),null)])}}),z=lt.createTypes({func:void 0,bool:void 0,string:void 0,number:void 0,array:void 0,object:void 0,integer:void 0});z.extend([{name:"looseBool",getter:!0,type:Boolean,default:void 0},{name:"style",getter:!0,type:[String,Object],default:void 0},{name:"VueNode",getter:!0,type:null}]);const te={theme:{type:String,default:i.themeConfig.theme},layout:{type:String,default:i.themeConfig.layout},wideWidth:{type:Number,default:i.themeConfig.wideWidth},splitMenus:{type:Boolean,default:i.themeConfig.splitMenus},fixedMultiTab:{type:Boolean,default:i.themeConfig.fixedMultiTab},showProgressBar:{type:Boolean,default:i.themeConfig.showProgressBar},fixedHeader:{type:Boolean,default:i.themeConfig.fixedHeader},fixSiderbar:{type:Boolean,default:i.themeConfig.fixSiderbar},showTabsBar:{type:Boolean,default:i.themeConfig.showTabsBar},showFullScreen:{type:Boolean,default:i.themeConfig.showFullScreen},autoHideHeader:{type:Boolean,default:i.themeConfig.autoHideHeader},headerHeight:{type:Number,default:i.themeConfig.headerHeight},title:{type:String,default:i.themeConfig.title},iconfontUrl:{type:String,default:i.themeConfig.iconfontUrl},animate:{type:Object,default:i.themeConfig.animate},primaryColor:{type:String,default:i.themeConfig.primaryColor}},ae={renderKey:z.string.def("menuHeaderRender"),title:te.title,layout:te.layout,logo:{type:[Object,String,Function],default:()=>{}},logoStyle:{type:Object,default:()=>{}},logoDirection:{type:String,default:"horizontal"},drawer:z.looseBool,collapsed:z.looseBool,menuHeaderRender:{type:[Object,Function],default:()=>{}},onMenuHeaderClick:Function},oe={...te,mode:{type:String,default:"inline"},menuData:{type:Array,default:()=>[]},theme:{type:String,default:"dark"},layout:{type:String,default:"mix"},collapsed:{type:Boolean,default:()=>!1},openKeys:{type:[Array,Boolean],default:()=>[]},selectedKeys:{type:Array,default:()=>[]},menuProps:{type:Object,default:()=>null},menuItemRender:{type:[Function,Boolean],default:()=>{}},subMenuItemRender:{type:[Function,Boolean],default:()=>{}},onClick:[Function,Object],onOpenKeys:{type:Function},onSelect:{type:Function}},_={...te,...oe,menuLoading:z.looseBool,logo:ae.logo,logoStyle:ae.logoStyle,logoDirection:ae.logoDirection,siderWidth:z.number.def(208),headerHeight:z.number.def(48),collapsedWidth:z.number.def(48),links:{type:[Function,Object,Array],default:()=>{}},menuHeaderRender:{type:[Function,Object],default:()=>{}},menuFooterRender:{type:[Function,Object,Boolean],default:()=>!1},menuContentRender:{type:[Function,Object,Boolean],default:()=>!1},menuExtraRender:{type:[Function,Object,Boolean],default:()=>!1},collapsedButtonRender:{type:[Function,Object,Boolean],default:()=>{}},breakpoint:{type:[Object,Boolean],default:()=>!1},isMobile:z.looseBool,matchMenuKeys:{type:Array,default:()=>[]},onMenuHeaderClick:z.func,onMenuClick:z.func,onCollapse:{type:Function}},dt=/(((^https?:(?:\/\/)?)(?:[-;:&=\+\$,\w]+@)?[A-Za-z0-9.-]+(?::\d+)?|(?:www.|[-;:&=\+\$,\w]+@)[A-Za-z0-9.-]+)((?:\/[\+~%\/.\w-_]*)?\??(?:[-\+=&;%@.\w_]*)#?(?:[\w]*))?)$/,Me=e=>dt.test(e);function ct(e){return/\w.(png|jpg|jpeg|svg|webp|gif|bmp)$/i.test(e)}function ke(e,a,n,l){var c,f,m,w,b,O,g,$,r,d,I,R,C,y,h,S,F,s,N,M,k,L,W,H,D,A,E,Y,U,q,u,x,B,T;const o={...e};return n==="light"?(o.colorItemBg=(f=(c=a.layout)==null?void 0:c[l])==null?void 0:f.colorBgMenu,o.colorSubItemBg=(w=(m=a.layout)==null?void 0:m[l])==null?void 0:w.colorSubItemBg,o.colorItemBgSelected=(O=(b=a.layout)==null?void 0:b[l])==null?void 0:O.colorBgMenuItemSelected,o.colorItemBgSelectedHorizontal=($=(g=a.layout)==null?void 0:g[l])==null?void 0:$.colorBgMenuItemSelected,o.colorItemText=(d=(r=a.layout)==null?void 0:r[l])==null?void 0:d.colorTextMenu,o.colorItemTextHover=(R=(I=a.layout)==null?void 0:I[l])==null?void 0:R.colorTextMenuHover,o.colorItemTextSelected=(y=(C=a.layout)==null?void 0:C[l])==null?void 0:y.colorTextMenuSelected,o.colorItemTextSelectedHorizontal=(S=(h=a.layout)==null?void 0:h[l])==null?void 0:S.colorTextMenuSelected,l==="sider"&&(o.colorItemBgHover=(s=(F=a.layout)==null?void 0:F[l])==null?void 0:s.colorBgMenuItemHover)):n==="dark"&&(o.colorItemBg=(M=(N=a.layout)==null?void 0:N[l])==null?void 0:M.colorDarkBgMenu,o.colorSubItemBg=(L=(k=a.layout)==null?void 0:k[l])==null?void 0:L.colorDarkSubItemBg,o.colorItemBgSelected=(H=(W=a.layout)==null?void 0:W[l])==null?void 0:H.colorDarkBgMenuItemSelected,o.colorItemBgSelectedHorizontal=(A=(D=a.layout)==null?void 0:D[l])==null?void 0:A.colorDarkBgMenuItemSelected,o.colorItemText=(Y=(E=a.layout)==null?void 0:E[l])==null?void 0:Y.colorDarkTextMenu,o.colorItemTextHover=(q=(U=a.layout)==null?void 0:U[l])==null?void 0:q.colorDarkTextMenuHover,o.colorItemTextSelected=(x=(u=a.layout)==null?void 0:u[l])==null?void 0:x.colorDarkTextMenuSelected,o.colorItemTextSelectedHorizontal=(T=(B=a.layout)==null?void 0:B[l])==null?void 0:T.colorDarkTextMenuSelected,l==="header"&&(o.colorActiveBarHeight=0)),o}const st=["left","right"],le=["left","right","down","up"],ut=["downBig","upBig","leftBig","rightBig"],mt=["topLeft","bottomRight","topRight","bottomLeft"],ft=["downLeft","upRight","downRight","upLeft"],ge={preset:[{name:"back",alias:"渐近",directions:le},{name:"bounce",alias:"弹跳",directions:le.concat("default")},{name:"fade",alias:"淡化",directions:le.concat(ut).concat(mt).concat("default")},{name:"flip",alias:"翻转",directions:["x","y"]},{name:"lightSpeed",alias:"光速",directions:st},{name:"rotate",alias:"旋转",directions:ft.concat("default")},{name:"roll",alias:"翻滚",directions:["default"]},{name:"zoom",alias:"缩放",directions:le.concat("default")},{name:"slide",alias:"滑动",directions:le}]};function Oe(e){return e.map(a=>{var l;const n={...a};if((l=n.meta)!=null&&l.hideInMenu)return null;if(n&&(n!=null&&n.children)){if(n.children.some(o=>{var c;return o&&!((c=o.meta)!=null&&c.hideInMenu)}))return{...n,children:Oe(n.children)};delete n.children}return n}).filter(a=>a)}function Re(e){return e.map(a=>{var l;const n={...a};return(l=n.meta)!=null&&l.hideInMenu?null:(n.linkPath=Ve(n.children||[]),n.children&&delete n.children,n)}).filter(a=>a)}function Be(e,a){const n=(a||"").split("/").length===2?a||"":`/${(a||"").split("/")[1]}`,l=e.find(o=>o.path===n);return a===void 0?[]:(l==null?void 0:l.children)||[]}function Ve(e){let a="";const n=function(o){let c="";return o.children&&o.children.length>0?c=n(o.children[0]):c=o.path,c},l=e==null?void 0:e.filter(o=>!o.hidden);if(l.length>0&&l[0].children&&l[0].children.length>0)a=n(l[0].children[0]);else{const o=l.length>0?l[0]:void 0;a=(o==null?void 0:o.path)||""}return a}function ht(e,a){var l,o;const n=((o=(l=e.find(c=>c.path===a))==null?void 0:l.meta)==null?void 0:o.key)||"";if(n){const c=[],f=n.split("-");for(let m=0;m<f.length;m+=1)c.push(J.cloneDeep(f).splice(0,m+1).join("-"));return e.filter(m=>c.some(w=>{var b;return w===((b=m==null?void 0:m.meta)==null?void 0:b.key)||""}))}return[]}function Fe(e){return e.layout==="mix"&&(e.fixSiderbar=!0,e.fixedHeader=!0,e.splitMenus=!0),e.layout==="top"&&(e.fixSiderbar=!1,e.fixedHeader=!0,e.splitMenus=!1),e.layout==="simple"&&(e.splitMenus=!1,e.showTabsBar=!1),e.layout==="side"&&(e.splitMenus=!1),e.layout==="wide"&&(e.splitMenus=!1,e.fixSiderbar=!1,e.fixedHeader=!0,e.showTabsBar=!1,e.fixedMultiTab=!1),{...e}}function gt(e){const a=["showTabsBar","fixedMultiTab","fixSiderbar","fixedHeader","splitMenus"];let l=Object.keys(e).reduce((o,c)=>(o[c]=!1,o),{});return l=yt(l,a),e.layout==="mix"&&(l.fixSiderbar=!0,l.fixedHeader=!0),e.layout==="side"&&(l.splitMenus=!0),e.layout==="simple"&&(l.splitMenus=!0,l.fixedHeader=!0,l.showTabsBar=!0,l.fixedMultiTab=!0),e.layout==="wide"&&(l.splitMenus=!0,l.fixedHeader=!0,l.fixSiderbar=!0,l.showTabsBar=!0,l.fixedMultiTab=!0),l}function yt(e,a){return{...a.reduce((n,l)=>({...n,[l]:e[l]}),{})}}const Te=(e=Symbol(),a="Context.Provider")=>t.defineComponent({name:a,props:{value:{type:Object,required:!0}},setup(l,{slots:o}){return t.provide(e,t.readonly(l.value)),()=>{var c;return(c=o.default)==null?void 0:c.call(o)}}}),$e=(e=Symbol(),a)=>t.inject(e,a||{}),ye=Symbol("pro-layout-context"),Le=()=>Te(ye,"ProLayoutContext.Provider"),Ke=e=>{t.provide(ye,e)},Q=()=>$e(ye);Le();function ze(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!t.isVNode(e)}const re=e=>{const{icon:a,iconType:n,iconfontUrl:l}=e;if(!a)return null;if(typeof a=="string"&&a!==""){if(Me(a)||ct(a))return t.createVNode("img",{src:a,alt:"icon",class:`${e.className}-icon-image`},null);if(n===1){const c=Z.createFromIconfontCN({scriptUrl:l||i.themeConfig.iconfontUrl});return l?t.createVNode(c,{type:a},null):t.createVNode("i",{class:`iconfont ${a} ${e.className}-icon`},null)}}if(t.isVNode(a))return a;const o=t.resolveComponent(a);return typeof re=="function"&&t.createVNode(o,null,null)||null};re.props={icon:{type:[String,Function,Object]},iconType:Number,className:String,iconfontUrl:String};const be=t.defineComponent({name:"BaseMenu",props:oe,setup(e){const a=ie.useRouter(),{getPrefixCls:n}=Q(),l=n({suffixCls:"menu-item",isPor:!0}),o=r=>{var d;(d=e.onOpenKeys)==null||d.call(e,r)},c=r=>{var d;(d=e.onSelect)==null||d.call(e,r.selectedKeys)},f=r=>{var d;(d=e.onClick)==null||d.call(e,...r)},m=(r,d)=>{var C;const I=r.target||"",R=Me(I);((C=a.currentRoute.value)==null?void 0:C.fullPath)!==d.to&&R&&I&&r.targetStatus===1&&window.open(I)},w=t.resolveComponent("router-link"),b=(r=[])=>r.map(d=>O(d)).filter(d=>d),O=r=>{var R,C,y,h,S,F,s,N,M;if(Array.isArray(r.children)&&r.children.length>0&&!((R=r==null?void 0:r.meta)!=null&&R.hideInMenu)&&!((C=r==null?void 0:r.meta)!=null&&C.hideChildrenInMenu)){let k;if(e.subMenuItemRender)return e.subMenuItemRender({item:r,children:b(r.children)});const L=(y=r.meta)==null?void 0:y.title,W=(h=r.meta)!=null&&h.icon?t.createVNode("span",{class:"gx-pro-sider-menu-item"},[t.createVNode("span",{class:"gx-pro-sider-menu-item-title"},[L])]):t.createVNode("span",{class:"gx-pro-sider-menu-item"},[L]),H=((S=r.meta)==null?void 0:S.type)==="group",D=H?p.Menu.ItemGroup:p.Menu.SubMenu;return t.createVNode(D,{title:W,key:r.path,icon:H?null:t.createVNode(re,{className:l,icon:(F=r.meta)==null?void 0:F.icon,iconfontUrl:e.iconfontUrl,iconType:(s=r.meta)==null?void 0:s.iconType},null)},ze(k=b(r.children))?k:{default:()=>[k]})}const[d,I]=g(r);return e.menuItemRender&&e.menuItemRender({item:r,title:d,icon:I})||t.createVNode(p.Menu.Item,{disabled:(N=r.meta)==null?void 0:N.disabled,danger:(M=r.meta)==null?void 0:M.danger,key:r.path,icon:I},ze(d)?d:{default:()=>[d]})},g=r=>{var S,F,s,N,M;const d={...r.meta},I=d.targetStatus===1&&d.target?"a":w,R={to:r.linkPath||r.path||""},C=(S=r.meta)==null?void 0:S.title,y=(F=r.meta)!=null&&F.icon?t.createVNode(I,t.mergeProps(R,{class:"gx-pro-sider-menu-item",onClick:()=>m(d,R)}),{default:()=>[t.createVNode("span",{class:"gx-pro-sider-menu-item-title"},[C])]}):t.createVNode(I,t.mergeProps(R,{class:"gx-pro-sider-menu-item",onClick:()=>m(d,R)}),{default:()=>[t.createVNode("span",null,[C])]}),h=((s=r.meta)==null?void 0:s.icon)&&t.createVNode(re,{className:l,icon:(N=r.meta)==null?void 0:N.icon,iconfontUrl:e.iconfontUrl,iconType:(M=r.meta)==null?void 0:M.iconType},null)||void 0;return[y,h]},$=t.computed(()=>b(e.menuData));return()=>t.createVNode(p.Menu,t.mergeProps({key:"Menu",inlineIndent:16,mode:e.mode,theme:e.theme,openKeys:e.openKeys===!1?[]:e.openKeys,selectedKeys:e.selectedKeys||[],onOpenChange:o,onSelect:c,onClick:f},e.menuProps),{default:()=>[$.value]})}}),De=new i.Keyframe("pro-layout-title-hide",{"0%":{display:"none",opacity:0},"99%":{display:"none",opacity:0},"100%":{display:"block",opacity:1}}),bt=e=>{const a=`${e.antCls}-menu`;return{[`${e.proComponentsCls}-basic-layout`]:{[`${a}${a}-root`]:{[`${a}-item a`]:{transition:"none"}}}}},pt=e=>{var a,n,l,o,c,f,m,w,b,O,g,$;return{[`${e.proComponentsCls}-basic-layout`]:{[`&${e.proComponentsCls}-basic-layout-wide`]:{[e.componentCls]:{position:"sticky",zIndex:100,borderRadius:e.borderRadiusSM}},[e.componentCls]:{position:"relative",borderRight:0,background:(n=(a=e.layout)==null?void 0:a.sider)==null?void 0:n.colorDarkBgMenu,zIndex:9,"&-menu":{position:"relative",zIndex:10,minHeight:"100%","&-icon":{verticalAlign:"unset"}},[`& ${e.antCls}-layout-sider-children`]:{position:"relative",display:"flex",flexDirection:"column",height:"100%"},"&-light":{background:(o=(l=e.layout)==null?void 0:l.sider)==null?void 0:o.colorBgMenu,boxShadow:"2px 0 8px 0 rgba(29,35,41,.05)",[`${e.componentCls}-footer`]:{color:(f=(c=e.layout)==null?void 0:c.sider)==null?void 0:f.colorTextMenu}},"&-links":{width:"100%",borderTop:"1px solid rgba(0,0,0,.06)",ul:{height:"auto"}},"&-link-menu":{border:"none",boxShadow:"none",background:"transparent"},"&-footer":{color:(w=(m=e.layout)==null?void 0:m.sider)==null?void 0:w.colorDarkTextMenu,paddingBlockEnd:16,fontSize:e.fontSize,animationName:De,animationDuration:".4s",animationTimingFunction:"ease"}},[`${e.componentCls}${e.componentCls}-fixed`]:{position:"fixed",insetBlockStart:0,insetInlineStart:0,zIndex:"100",height:"100%","&-mix":{height:`calc(100% - ${((O=(b=e.layout)==null?void 0:b.header)==null?void 0:O.heightLayoutHeader)||i.themeConfig.headerHeight}px)`,insetBlockStart:`${(($=(g=e.layout)==null?void 0:g.header)==null?void 0:$.heightLayoutHeader)||i.themeConfig.headerHeight}px`}}}}},xt=e=>({[`${e.proComponentsCls}-basic-layout`]:{[`${e.antCls}-menu`]:{[`${e.proComponentsCls}-menu-item-icon${e.antCls}-menu-item-icon`]:{verticalAlign:"unset",lineHeight:1}}}}),Ct=e=>({[`${e.proComponentsCls}-sider`]:{"&-light":{[`${e.proComponentsCls}-sider-logo`]:{h1:{color:e.colorPrimary}}},"&-logo":{position:"relative",display:"flex",alignItems:"center",justifyContent:"space-between",padding:"16px 8px",cursor:"pointer",transition:"padding .3s cubic-bezier(.645,.045,.355,1)","> a":{display:"flex",alignItems:"center",justifyContent:"center",maxHeight:32,"> img":{display:"inline-block",height:32,verticalAlign:"middle"},"> h1":{display:"inline-block",lineHeight:"32px",marginBlock:0,marginInlineEnd:0,marginInlineStart:12,color:e.colorWhite,animationName:De,animationDuration:".2s",fontWeight:600,fontSize:18,overflow:"hidden",verticalAlign:"middle"}},"&-collapsed":{flexDirection:"column-reverse",margin:0,padding:12,[`${e.proComponentsCls}-layout-apps-icon`]:{marginBlockEnd:8,fontSize:16,transition:"font-size 0.2s ease-in-out,color 0.2s ease-in-out"}}},[`&${e.antCls}-layout-sider-collapsed`]:{[`${e.proComponentsCls}-sider-logo`]:{padding:"16px 8px"}}}}),He=(e,a)=>e?typeof e=="string"?t.createVNode("img",{src:e,alt:"logo",style:a},null):typeof e=="function"?e():e:null,St=(e,a="menuHeaderRender")=>{const{logo:n,logoStyle:l,title:o,layout:c}=e,f=e[a||""];if(f===!1)return null;const m=He(n,l),w=o&&t.createVNode("h1",null,[o]);return typeof f=="function"?f(m,e.collapsed?null:w,e):t.createVNode(t.Fragment,null,[m||null,e.collapsed&&c==="side"?null:w])},pe=t.defineComponent({name:"LogoContent",props:ae,setup(e){const{getPrefixCls:a}=Q(),n=t.computed(()=>e.layout==="side"||e.layout==="simple"),l=t.computed(()=>a({suffixCls:n.value||e.drawer?"sider":"global-header",isPor:!0})),{wrapSSR:o,hashId:c}=i.useProStyle("ProLayoutLogo",[Ct]),f=t.computed(()=>St(e,e.renderKey));return()=>o(t.createVNode("div",{id:"logo",class:{[`${c.value}`]:!0,[`${l.value}-logo`]:!0,[`${l.value}-logo-collapsed`]:!!e.collapsed},onClick:()=>{var m;return(m=e.onMenuHeaderClick)==null?void 0:m.call(e)}},[t.createVNode("a",null,[f.value||null])]))}});pe.inheritAttrs=!1;function wt(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!t.isVNode(e)}const{Sider:Nt}=p.Layout,{Item:je}=p.Menu,We=e=>e?t.createVNode(Z.MenuUnfoldOutlined,null,null):t.createVNode(Z.MenuFoldOutlined,null,null),Ae=t.defineComponent({props:_,inheritAttrs:!1,setup(e){const{getPrefixCls:a,selectedKeys:n,flatMenuData:l,menuData:o,openKeys:c}=Q(),{indicator:f}=he.useProAppContext(),{token:m}=i.useProConfigContext(),{theme:w,layout:b,isMobile:O,menuLoading:g,breakpoint:$,fixSiderbar:r,collapsed:d,siderWidth:I,collapsedWidth:R,menuExtraRender:C,menuContentRender:y,menuFooterRender:h,collapsedButtonRender:S,links:F}=t.toRefs(e),s=a({suffixCls:"sider",isPor:!0}),{wrapSSR:N,hashId:M}=i.useProStyle("ProLayoutSiderMenu",[bt,pt,xt],s),k=t.computed(()=>e.layout==="wide"),L=t.computed(()=>e.layout==="mix"&&!e.isMobile&&e.splitMenus),W=t.computed(()=>b.value==="side"||b.value==="simple"),H=t.computed(()=>(e.layout==="mix"||k.value)&&"light"||w.value),D=t.computed(()=>b.value==="top"?[]:o.value),A=t.computed(()=>e.collapsed?e.collapsedWidth:e.siderWidth),E=t.computed(()=>[M.value,s,O.value?"shadow":null,`${s}-${H.value}`,r.value&&e.layout!=="wide"?`${s}-fixed`:null]),Y=t.computed(()=>{var u;return typeof F.value=="function"?(u=F.value)==null?void 0:u.call(F):F.value}),U=t.computed(()=>S.value!==!1?S.value||We:!1),q=u=>{var x;if(e.onSelect){if(t.unref(L)){e.onSelect([(x=n==null?void 0:n.value)==null?void 0:x[0],...u]);return}e.onSelect(u)}};return()=>{var T;const u=W.value?t.createVNode(pe,t.mergeProps({drawer:O.value},e),null):null,x=C.value&&((T=C.value)==null?void 0:T.call(C,e)),B=t.createVNode(be,{class:`${s}-menu ${M.value}`,theme:H.value,mode:"inline",menuData:L.value?l.value:D.value,iconfontUrl:e.iconfontUrl,openKeys:c.value,selectedKeys:n.value,menuItemRender:e.menuItemRender,subMenuItemRender:e.subMenuItemRender,onClick:e.onMenuClick,style:{width:"100%"},onOpenKeys:j=>{var G;return e.onOpenKeys&&((G=e.onOpenKeys)==null?void 0:G.call(e,j))},onSelect:q},null);return L.value&&t.unref(l.value).length===0||D.value.length===0?null:N(t.createVNode(p.ConfigProvider,{theme:{components:{Menu:ke({radiusItem:4,colorActiveBarWidth:0,colorActiveBarHeight:0,colorActiveBarBorderSize:0},(m==null?void 0:m.value)||{},H.value,"sider")}}},{default:()=>[r.value&&t.createVNode("div",{style:{width:`${A.value}px`,overflow:"hidden",flex:`0 0 ${A.value}px`,maxWidth:`${A.value}px`,minWidth:`${A.value}px`,transition:"background-color 0.2s, min-width 0.2s, max-width 0.2s"}},null),t.createVNode(Nt,{collapsible:!0,trigger:null,class:E.value,style:{overflow:"hidden",zIndex:r.value?101:void 0,paddingTop:W.value||e.isMobile||k.value?0:`${e.headerHeight}px`,top:e.layout==="wide"?`${e.headerHeight+20}px`:void 0,height:e.layout==="wide"?`calc(100vh - ${e.headerHeight+20*2}px)`:void 0},theme:H.value,breakpoint:$.value||void 0,collapsed:d.value,width:I.value,collapsedWidth:R.value},{default:()=>{var j,G;return[g.value&&t.createVNode("div",{class:["gx-pro-sider-loading",M.value]},[t.createVNode(p.Spin,{spinning:g.value,indicator:f==null?void 0:f.value},null)]),u||null,x&&!e.collapsed&&t.createVNode("div",{class:{[`${M.value}`]:!0,[`${s}-extra`]:!0,[`${s}-extra-no-logo`]:!u}},[x]),t.createVNode("div",{style:{flex:"1 1 0%",overflow:"hidden auto"}},[y.value&&((j=y.value)==null?void 0:j.call(y,e,B))||B]),e.layout!=="wide"&&t.createVNode("div",{class:`${s}-links ${M.value}`},[t.createVNode(p.Menu,{theme:H.value,inlineIndent:16,class:`${s}-link-menu ${M.value}`,selectedKeys:[],openKeys:[],mode:"inline"},{default:()=>[(Y.value||[]).map((X,ee)=>t.createVNode(je,{class:`${s}-link ${M.value}`,key:ee},wt(X)?X:{default:()=>[X]})),U.value&&!O.value&&t.createVNode(je,{class:`${s}-collapsed-button ${M.value}`,title:!1,key:"collapsed",onClick:()=>{var X;e.onCollapse&&((X=e.onCollapse)==null||X.call(e,!d.value))}},{default:()=>{var X;return[(X=U.value)==null?void 0:X.call(U,d.value)]}})]})]),h.value&&t.createVNode("div",{class:`${s}-footer ${M.value}`},[(G=h.value)==null?void 0:G.call(h,e)])]}})]}))}}}),de=t.defineComponent({name:"SiderMenuWrapper",inheritAttrs:!1,props:{..._,matchMenuKeys:{type:Array,default:()=>[]}},setup(e){return()=>t.createVNode(t.Fragment,null,[e.isMobile?t.createVNode(p.Drawer,{maskClosable:!0,open:!e.collapsed,closable:!1,placement:"left",style:{padding:0,height:"100vh"},getContainer:!1,onClose:()=>e.onCollapse&&e.onCollapse(!0),width:e.siderWidth,bodyStyle:{height:"100vh",padding:0,display:"flex",flexDirection:"row"}},{default:()=>[t.createVNode(Ae,t.mergeProps(e,{collapsed:e.isMobile?!1:e.collapsed}),null)]}):t.createVNode(Ae,e,null)])}}),ve={usePageCard:{type:Boolean,default:()=>{}},pageCardProps:Object,pageContentStyle:z.style,pageChildrenContentStyle:z.style,waterMarkProps:{type:Object},waterMark:z.bool.def(!0),pageHeaderRender:{type:[Object,Function,Boolean],default:()=>{}}},ce={pageChildrenExtraRender:{type:[Object,Function,Boolean],default:()=>{}},contentRender:{type:[Object,Function,Boolean],default:()=>{}},breadcrumbRender:{type:[Object,Function,Boolean],default:()=>{}},pageHeaderStyle:z.style,loading:z.bool.def(!1),...ve},It=e=>({[e.componentCls]:{background:e.colorBgContainer,padding:`${e.paddingLG}px`,"&-has-breadcrumb":{paddingBlock:`${e.paddingSM}px`},"&-content":{marginTop:"8px"}}}),Mt=t.defineComponent({name:"ProPageHeader",props:{content:ce.contentRender,breadcrumb:ce.breadcrumbRender},setup(e){const{breadcrumb:a,getPrefixCls:n}=Q(),l=n({isPor:!0,suffixCls:"page-header"}),{wrapSSR:o,hashId:c}=i.useProStyle("ProPageHeader",[It],l),f=t.computed(()=>{var m;return{...a.value,itemRender:((m=a.value)==null?void 0:m.itemRender)||(({route:w})=>w.path?t.createVNode(ie.RouterLink,{to:w.path},{default:()=>[w.breadcrumbName]}):w.breadcrumbName)}});return()=>{var m,w;return o(t.createVNode("div",{class:[`${l}`,c.value,`${l}-has-breadcrumb`]},[e.breadcrumb?(m=e.breadcrumb)==null?void 0:m.call(e,f.value):t.createVNode(p.Breadcrumb,f.value,null),e.content&&t.createVNode("div",{class:[`${l}-content`,c.value]},[(w=e.content)==null?void 0:w.call(e)])]))}}}),kt=e=>{var a,n,l,o,c,f,m,w;return{[`${e.proComponentsCls}-basic-layout`]:{[e.componentCls]:{marginInline:-(((n=(a=e.layout)==null?void 0:a.pageContainer)==null?void 0:n.paddingBlockPageContainerContent)??24),marginBlockStart:-(((o=(l=e.layout)==null?void 0:l.pageContainer)==null?void 0:o.paddingBlockPageContainerContent)??24)},[e.gridContent]:{width:"100%"}},[e.componentCls]:{"&-children-content":{marginInline:((f=(c=e.layout)==null?void 0:c.pageContainer)==null?void 0:f.marginInlinePageContainerContent)??24,marginBlockStart:((w=(m=e.layout)==null?void 0:m.pageContainer)==null?void 0:w.marginBlockPageContainerContent)??24,padding:"inherit"}}}};function Ot(e){return i.useStyle("ProPageContainter",a=>{const n=i.mergeToken(a,{gridContent:`${a.proComponentsCls}-grid-content`});return[kt(n)]},e)}function Rt(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!t.isVNode(e)}const Bt=t.defineComponent({inheritAttrs:!1,name:"GProPageContainer",props:ce,setup(e,{slots:a,attrs:n}){const{getPrefixCls:l,hasContentWide:o,waterMark:c,pageHeaderRender:f,pageContentStyle:m,pageChildrenContentStyle:w,pageCardProps:b,usePageCard:O,waterMarkProps:g}=Q(),{indicator:$}=he.useProAppContext(),r=i.useProConfigContext(),d=l({suffixCls:"page-container",isPor:!0}),I=l({suffixCls:"grid-content",isPor:!0}),R=t.computed(()=>e.pageCardProps||b.value),C=t.computed(()=>e.waterMarkProps||g.value||{}),y=t.computed(()=>e.pageContentStyle||m.value),h=t.computed(()=>e.pageChildrenContentStyle||w.value||{}),S=t.computed(()=>K.isBoolean(e.usePageCard)?e.usePageCard:K.isBoolean(O.value)?O.value:!0),{wrapSSR:F,hashId:s}=Ot(d),N=()=>{var L,W,H,D,A,E;const k=K.getSlot(a,e,"pageChildrenExtraRender");return t.createVNode("div",{class:`${d}-children-content ${s.value}`,style:h.value},[k&&(k==null?void 0:k()),S.value?t.createVNode(p.Card,t.mergeProps(R.value?J.pick(R.value,["loading","bodyStyle"]):{},{style:o.value?{minHeight:"853px"}:void 0,bordered:!1}),{default:()=>{var Y;return[(Y=a.default)==null?void 0:Y.call(a)]}}):k?t.createVNode("div",{style:{marginBlockStart:`${(D=(H=(W=(L=r==null?void 0:r.token)==null?void 0:L.value)==null?void 0:W.layout)==null?void 0:H.pageContainer)==null?void 0:D.marginBlockPageContainerContent}px`}},[(A=a.default)==null?void 0:A.call(a)]):(E=a.default)==null?void 0:E.call(a)])},M=()=>{let k;return t.createVNode(t.Fragment,null,[e.waterMark&&c.value?t.createVNode(it.GPorWaterMark,C.value,Rt(k=N())?k:{default:()=>[k]}):N()])};return()=>{const k=K.getSlot(a,e,"pageHeaderRender")||f.value,L=K.getSlot(a,e,"breadcrumbRender"),W=K.getSlot(a,e,"contentRender");return F(t.createVNode(p.Spin,{spinning:e.loading,indicator:$==null?void 0:$.value},{default:()=>[t.createVNode("div",{style:n.style,class:{[`${s.value}`]:!0,[`${d}`]:!0}},[!o.value&&k!==!1&&(k||t.createVNode(Mt,{style:e.pageHeaderStyle,breadcrumb:L,content:W},null)),t.createVNode("div",{class:[I,s.value]},[t.createVNode("div",{class:`${I}-children ${s.value}`,style:y.value},[M()])])])]}))}}}),xe={...te,...oe,logo:ae.logo,logoStyle:ae.logoStyle,logoDirection:ae.logoDirection,menuLoading:Boolean,autoHideHeader:Boolean,collapsed:Boolean,isMobile:Boolean,siderWidth:_.siderWidth,headerTheme:{type:String,default:"dark"},menuData:{type:Array,default:()=>[]},menuRender:{type:[Object,Function],default:()=>{}},extraRightDropdownRender:{type:[Object,Function],default:()=>{}},rightContentRender:{type:[Object,Function],default:()=>{}},collapsedButtonRender:_.collapsedButtonRender,matchMenuKeys:_.matchMenuKeys,onCollapse:_.onCollapse,onOpenKeys:_.onOpenKeys,onMenuHeaderClick:Function,onSelect:_.onSelect},Ue={...xe,headerTitleRender:{type:[Object,Function],default:()=>{}},headerRender:{type:[Object,Function],default:()=>{}},headerContentRender:{type:[Object,Function],default:()=>{}},hasSiderMenu:Boolean,collapsedWidth:_.collapsedWidth,siderWidth:_.siderWidth},Xe={loading:z.looseBool,isMobile:_.isMobile,collapsed:oe.collapsed,siderWidth:_.siderWidth,collapsedWidth:_.collapsedWidth,isFixedMultiTab:te.fixedMultiTab,onReloadPage:{type:Function},onChangeTabs:{type:Function},"onUpdate:tabs":{type:Function}},Vt=e=>({[e.componentCls]:{marginBlock:0,marginBlockStart:48,marginBlockEnd:24,marginInline:0,paddingBlock:0,paddingInline:16,textAlign:"center","&-links":{marginBottom:8,a:{color:e.colorTextSecondary,textDecoration:e.linkDecoration,"&:hover":{color:e.colorPrimary}},"a:not(:last-child)":{marginInlineEnd:40}},"&-copyright":{fontSize:"14px",color:e.colorTextSecondary,a:{color:e.colorTextSecondary,textDecoration:e.linkDecoration}}}}),Ee=[{key:"Ant Design Pro",title:"Ant Design Pro",href:"https://pro.ant.design",blankTarget:!0},{key:"gitee",title:t.createVNode(Z.GithubOutlined,null,null),href:"https://gitee.com/gx12358/vue-antd-admin",blankTarget:!0},{key:"Ant Design Vue",title:"Ant Design Vue",href:"https://next.antdv.com/components/overview-cn/",blankTarget:!0}],se=t.defineComponent({name:"GlobalFooter",props:{links:{type:[Array,Boolean],default:Ee},copyright:{type:[Object,Function,Boolean,String],default:"皖ICP备2022010510号-1"}},setup(e){const a=K.getPrefixCls({suffixCls:"global-footer",isPor:!0}),{wrapSSR:n,hashId:l}=i.useProStyle("ProLayoutFooter",[Vt],a);return()=>n(t.createVNode(p.LayoutFooter,{style:{padding:0}},{default:()=>[t.createVNode("div",{class:[a,l.value]},[e.links&&t.createVNode("div",{class:`${a}-links ${l.value}`},[e.links.map(o=>t.createVNode("a",{key:o.key,title:o.key,target:o.blankTarget?"_blank":"_self",href:o.href},[o.title]))]),e.copyright&&t.createVNode("div",{class:`${a}-copyright ${l.value}`},[t.createTextVNode("Copyright 2022 "),t.createVNode("a",{href:"https://beian.miit.gov.cn/"},[e.copyright])])])]}))}}),Ye={...te,...xe,..._,...Ue,...Xe,...ce,pure:Boolean,token:Object,waterMark:{type:Boolean,default:!0},disableMobile:{type:Boolean,required:!1},contentStyle:{type:[String,Object],default:()=>null},breadcrumb:{type:[Object,Function],default:()=>null},disableContentMargin:z.looseBool,isChildrenLayout:z.looseBool,loading:z.looseBool,footerLinks:{type:[Array,Boolean],default:Ee},copyrightRender:{type:[Object,Function,Boolean,String],default:()=>{}},footerRender:{type:[Object,Function,Boolean],default:()=>{}},menuData:{type:Array,default:()=>[]},levelMenuData:{type:Array,default:()=>[]},collapsed:z.looseBool},Ft=e=>({[e.componentCls]:{display:"flex",flexDirection:"column",width:"100%",minHeight:"100vh"}}),Tt=e=>{var a,n;return{[e.componentCls]:{a:{color:e.colorPrimary,"&:hover":{color:e.colorPrimaryHover}},[`&${e.componentCls}-wide`]:{backgroundColor:e.colorBgLayout,[`${e.componentCls}-content`]:{margin:0,marginInlineStart:20}},[`${e.componentCls}-content`]:{position:"relative",margin:(n=(a=e.layout)==null?void 0:a.pageContainer)==null?void 0:n.paddingBlockPageContainerContent},[`${e.componentCls}-container`]:{width:"100%",display:"flex",flexDirection:"column",minWidth:0,minHeight:0,backgroundColor:"transparent"}}}},$t=e=>{var a,n;return{[`${e.componentCls}`]:{"&-fixed":{width:"100%",height:62,background:"transparent"}},[`${e.componentWrapCls}`]:{background:e.colorBgContainer,[`${e.antCls}-tabs-nav`]:{paddingLeft:16,[`${e.antCls}-tabs-tab:not(${e.antCls}-tabs-tab-active)`]:{borderBottomColor:"transparent"},[`${e.componentCls}-title`]:{display:"flex",alignItems:"center",gap:8,[`${e.componentCls}-reload-btn,${e.componentCls}-close-btn`]:{color:e.colorTextSecondary,fontSize:12,margin:0,cursor:"pointer",transition:"color .3s cubic-bezier(.645,.045,.355,1)","&:hover":{color:e.colorPrimary}}},[`${e.componentCls}-dropdown-menu-btn`]:{marginInlineEnd:8,padding:12,fontSize:16,cursor:"pointer"}},"&-fixed":{position:"fixed",height:62,top:((n=(a=e.layout)==null?void 0:a.header)==null?void 0:n.heightLayoutHeader)||i.themeConfig.headerHeight,right:0,zIndex:9,transition:"width .2s"}}}};function Lt(e){return i.useStyle("ProMultiTabs",a=>{const n=i.mergeToken(a,{componentWrapCls:`${a.componentCls}-wrap`});return[$t(n)]},e)}const Kt=[{key:"closeOthersTabs",label:"关闭其他"},{key:"closeLeftTabs",label:"关闭左侧"},{key:"closeRightTabs",label:"关闭右侧"},{key:"reloadPage",label:"刷新当前页"}];function zt(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!t.isVNode(e)}function v(e){var a;return((a=e==null?void 0:e.meta)==null?void 0:a.currenFulltPath)||e.fullPath||e.path}const Dt=p.Tabs.TabPane,Ht=p.Menu.Item,jt=t.defineComponent({props:{...Xe,visible:{type:Boolean,default:!0}},inheritAttrs:!1,setup(e){const{isMobile:a,isFixedMultiTab:n}=t.toRefs(e),l=t.ref(!1),o=t.reactive({activeKey:"",contextMenuActiveKey:""}),c=ie.useRouter(),{menuData:f,flatMenuData:m,layout:w,splitMenus:b,getPrefixCls:O}=Q(),g=O({isPor:!0,suffixCls:"multi-tab"}),{wrapSSR:$,hashId:r}=Lt(g),d=t.ref([]);t.watch(d,()=>{var u;(u=e.onChangeTabs)==null||u.call(e,J.cloneDeep(t.unref(d)))},{deep:!0});const I=t.computed(()=>w.value==="mix"&&!e.isMobile&&b.value),R=t.computed(()=>v(c.currentRoute.value)),C=t.computed(()=>n.value&&!a.value),y=t.computed(()=>{const u=!(I.value&&t.unref(m.value).length===0||f.value.length===0||w.value==="top");return C.value&&u?`calc(100% - ${e.collapsed?e.collapsedWidth:e.siderWidth}px)`:"100%"}),h=t.computed(()=>K.classNames(`${g}-wrap`,{[`${r.value}`]:!0,[`${g}-wrap-fixed`]:e.isFixedMultiTab,[`${g}-wrap-loading`]:e.loading})),S=t.computed(()=>{const u={display:e.visible?void 0:"none"};return e.isFixedMultiTab?{margin:0,width:y.value,paddingTop:"6px",zIndex:99,...u}:u}),F=u=>v(u)===R.value,s=u=>{if(u.name&&u.meta&&u.meta.tagHidden!==!0){const x=v(u),B=d.value.find(j=>v(j)===x),T={path:u.path,fullPath:x,query:u.query,params:u.params,name:u.name,meta:{...u.meta,originTagPath:u.fullPath}};B?Object.assign(B,T):u.meta.tagFixed?d.value.unshift(T):d.value.push(T),F(u)&&(o.activeKey=x)}},N=u=>{u.forEach(x=>{x.meta&&x.meta.tagFixed&&s(x),x.children&&N(x.children)})};t.watch(()=>f.value,u=>{N(u)},{deep:!0,immediate:!0}),t.watch(()=>c.currentRoute.value,u=>{s(u)},{deep:!0,immediate:!0});const M=u=>{var x,B;return((B=(x=d.value.find(T=>(u||o.activeKey)===v(T)))==null?void 0:x.meta)==null?void 0:B.originTagPath)||u||o.activeKey},k=()=>{const u=d.value.slice(-1)[0];u?c.push({path:M(v(u))}):c.push("/")},L=async u=>{const x=d.value.find(B=>u===v(B));d.value=d.value.filter(B=>v(B)!==u),x&&F(x)&&k()},W=u=>{const x=d.value.find(B=>v(B)===u);x&&o.activeKey!==v(x)&&c.push({path:M(v(x))})},H=()=>{var u;l.value=!0,e.onReloadPage&&((u=e.onReloadPage)==null||u.call(e)),setTimeout(()=>{l.value=!1},500)},D=u=>u.meta&&u.meta.tagFixed,A=u=>o[u],E=(u,x)=>{const B=d.value.findIndex(T=>v(T)===A(x));switch(u){case"closeOthersTabs":d.value=d.value.filter(T=>{var j;return v(T)===A(x)||((j=T.meta)==null?void 0:j.tagFixed)});break;case"closeLeftTabs":B&&(d.value=d.value.filter((T,j)=>{var G;return j>=B||((G=T.meta)==null?void 0:G.tagFixed)}));break;case"closeRightTabs":B&&(d.value=d.value.filter((T,j)=>{var G;return j<=B||((G=T.meta)==null?void 0:G.tagFixed)}));break;case"reloadPage":(B===0||B)&&o.activeKey===A(x)&&H();break}o.activeKey!==A(x)&&c.push(M(A(x)))},Y=(u,x)=>{const B=d.value.findIndex(T=>v(T)===x);switch(u){case"closeOthersTabs":return d.value.filter((X,ee)=>{var P;return ee!==B&&!((P=X.meta)!=null&&P.tagFixed)}).length===0;case"closeLeftTabs":return d.value.filter((X,ee)=>{var P;return ee<B&&!((P=X.meta)!=null&&P.tagFixed)}).length===0;case"closeRightTabs":return d.value.filter((X,ee)=>{var P;return ee>B&&!((P=X.meta)!=null&&P.tagFixed)}).length===0}},U=u=>{let x;const{path:B,stateType:T}=u;return t.createVNode(p.Menu,{selectedKeys:[],onClick:({key:j})=>E(j,T)},zt(x=Kt.map(j=>t.createVNode(Ht,{key:j.key,disabled:Y(j.key,B)},{default:()=>[j.label]})))?x:{default:()=>[x]})},q=u=>{const{router:x}=u;return t.createVNode(p.Dropdown,{trigger:"contextmenu",overlay:t.createVNode(U,{path:v(x)||"",stateType:"contextMenuActiveKey"},null),onOpenChange:B=>{o.contextMenuActiveKey=B&&v(x)||""}},{default:()=>{var B;return[t.createVNode("div",{class:[`${g}-title`,r.value]},[(B=x.meta)==null?void 0:B.title,o.activeKey===v(x)&&t.createVNode(Z.ReloadOutlined,{class:[`${g}-reload-btn`,r.value],spin:l.value,onClick:T=>{T.stopPropagation(),!l.value&&H()}},null),d.value.length>1&&!D(x)&&t.createVNode(Z.CloseOutlined,{class:[`${g}-close-btn`,r.value],onClick:T=>{T.stopPropagation(),!l.value&&L(v(x)||"")}},null)])]}})};return()=>$(t.createVNode(t.Fragment,null,[!!e.isFixedMultiTab&&t.withDirectives(t.createVNode("div",{class:[`${g}-fixed`,r.value]},null),[[t.vShow,e.visible]]),t.createVNode(p.Tabs,{hideAdd:!0,type:"editable-card",style:S.value,class:h.value,activeKey:o.activeKey,onTabClick:W},{default:()=>[d.value.map(u=>t.createVNode(Dt,{key:v(u),closable:!1,tab:t.createVNode(q,{router:u},null)},null))],rightExtra:()=>t.createVNode(p.Dropdown,{overlay:t.createVNode(U,{path:o.activeKey,stateType:"activeKey"},null)},{default:()=>[t.createVNode(Z.EllipsisOutlined,{class:[`${g}-dropdown-menu-btn`,r.value],rotate:90},null)]})})]))}}),{Content:Wt}=p.Layout,ue=(e,{slots:a,attrs:n})=>{var I;const{hashId:l,prefixCls:o,isMobile:c,loading:f,collapsed:m,siderWidth:w,isShowTabsBar:b,isFixedMultiTab:O,onReloadPage:g,onChangeTabs:$}=e;if(e.isChildrenLayout)return(I=a.default)==null?void 0:I.call(a);const{flatMenuData:r,layout:d}=Q();return t.createVNode(t.Fragment,null,[t.createVNode(jt,{visible:(t.unref(d)==="mix"?t.unref(r).length>0:!0)&&b,isMobile:c,loading:f,isFixedMultiTab:O,siderWidth:w,collapsed:m,onReloadPage:g,onChangeTabs:$},null),t.createVNode(Wt,{style:n.style,class:[`${o}-content`]},{default:()=>{var R;return[f&&t.createVNode(Ie,null,null),t.createVNode("div",{class:[`${o}-content-spin-container`,l],style:{opacity:f?"0":void 0}},[(R=a.default)==null?void 0:R.call(a)])]}})])};ue.inheritAttrs=!1,ue.displayName="wrap-content";const At=e=>{var a,n,l,o;return{[`${e.proComponentsCls}-basic-layout`]:{[`${e.antCls}-layout-header${e.componentCls}${e.componentCls}-light`]:{backgroundColor:((n=(a=e.layout)==null?void 0:a.header)==null?void 0:n.colorBgMenu)||e.colorBgElevated},[`${e.antCls}-layout-header${e.componentCls}${e.componentCls}-dark`]:{backgroundColor:(o=(l=e.layout)==null?void 0:l.header)==null?void 0:o.colorDarkBgMenu,[`${e.proComponentsCls}-global-header-collapsed-button`]:{color:"#fff"}},[`${e.antCls}-layout-header${e.componentCls}`]:{zIndex:19,paddingBlock:0,paddingInline:0,WebkitBackdropFilter:"blur(8px)",backdropFilter:"blur(8px)",transition:"background-color 0.2s cubic-bezier(.645,.045,.355,1)",[`&${e.proComponentsCls}`]:{"&-fixed-header":{position:"fixed",width:"100%",zIndex:9,top:0,transition:"width .2s","&-action":{transition:"width .3s cubic-bezier(.645,.045,.355,1)"}},"&-header-actions":{display:"flex",alignItems:"center",fontSize:"16",cursor:"pointer","& &-item":{paddingBlock:0,paddingInline:8,"&:hover":{color:e.colorText}}},"&-header-realDark":{boxShadow:"0 2px 8px 0 rgba(0, 0, 0, 65%)"},"&-header-actions-header-action":{transition:"width 0.3s cubic-bezier(0.645, 0.045, 0.355, 1)"}}}}}},vt=e=>({[`${e.proComponentsCls}-header`]:{"&-light":{[`${e.componentCls}-logo`]:{h1:{color:e.colorBgSpotlight}}}},[e.componentCls]:{position:"relative",background:"transparent",display:"flex",marginBlock:0,paddingInline:16,width:"100%",height:"100%",boxShadow:"0 1px 4px rgba(0,21,41,.08)",boxSizing:"border-box","&-mix":{boxShadow:"0 1px 4px 0 rgba(0,21,41,.12)"},"&-wide":{boxShadow:"0 1px 4px 0 rgba(0,21,41,.12)",padding:0,[`${e.componentCls}-main`]:{margin:"0 auto"}},"&-main":{display:"flex",width:"100%",height:"100%","&-left":{display:"flex",minWidth:192}},"> a":{height:"100%"},"> *":{height:"100%"},[`${e.proComponentsCls}-layout-apps-icon`]:{marginInlineEnd:16},"&-collapsed-button":{display:"flex",alignItems:"center",fontSize:"20px",marginInlineEnd:"16px"},"&-logo":{position:"relative",marginInlineEnd:"16px",a:{display:"flex",alignItems:"center",height:"100%",minHeight:"22px",fontSize:"20px"},img:{height:"28px"},h1:{marginBlock:0,marginInline:0,marginInlineStart:12,fontWeight:"500",color:e.colorWhite,fontSize:16},"&-mix":{display:"flex",alignItems:"center"}},"&-logo-mobile":{minWidth:"24px",marginInlineEnd:0}}}),_e={..._,...xe},Ut=(e,a)=>e===!1?null:e?e(a,null):a,Xt=t.defineComponent({props:_e,setup(e){return()=>e.rightContentRender&&typeof e.rightContentRender=="function"&&t.createVNode(t.Fragment,null,[e.rightContentRender({...e})])}}),Ge=t.defineComponent({props:_e,inheritAttrs:!1,setup(e,{slots:a,emit:n}){const l=ie.useRouter(),{token:o}=i.useProConfigContext(),{getPrefixCls:c,openKeys:f,selectedKeys:m}=Q(),{width:w}=we.useWindowSize(),b=c({suffixCls:"global-header",isPor:!0}),{wrapSSR:O,hashId:g}=i.useProStyle("ProGlobalHeader",[vt],b),$=t.computed(()=>!e.isMobile||e.layout==="top"||e.layout==="mix"&&e.splitMenus),r=t.computed(()=>({[`${g.value}`]:!0,[`${b}`]:!0,[`${b}-${e.layout}`]:!0})),d=y=>{var h;if(l.currentRoute){const S=l.currentRoute.value.matched.concat();e.onSelect&&y==="select"&&e.onSelect(S.filter(F=>F.name!=="index").map(F=>F.path)),e.onOpenKeys&&y==="openKeys"&&((h=e.onOpenKeys)==null||h.call(e,S.filter(F=>F.path!==l.currentRoute.value.path).map(F=>F.path)))}},I=()=>{n("collapse",!e.collapsed)},R=t.computed(()=>e.collapsedButtonRender||We),C=()=>{var y;return t.createVNode(t.Fragment,null,[$.value?t.createVNode("div",{style:{flex:1},class:[`${b}-menu`,g.value]},[t.createVNode(p.ConfigProvider,{theme:{components:{Layout:{headerBg:"transparent",bodyBg:"transparent"},Menu:ke({radiusItem:4,colorActiveBarWidth:0,colorActiveBarHeight:2,colorActiveBarBorderSize:0,horizontalItemBorderRadius:4},o.value||{},e.theme,"header")}}},{default:()=>[t.createVNode(be,t.mergeProps({theme:e.theme,mode:e.mode,collapsed:e.collapsed,menuData:e.menuData,openKeys:f.value,selectedKeys:m.value,iconfontUrl:e.iconfontUrl,menuItemRender:e.menuItemRender,subMenuItemRender:e.subMenuItemRender,class:{"top-nav-menu":e.mode==="horizontal",[`${g.value}`]:!0}},{"onUpdate:openKeys":()=>d("openKeys"),"onUpdate:selectedKeys":()=>d("select")}),null)]})]):t.createVNode("div",{style:{flex:1}},[(y=a.default)==null?void 0:y.call(a)]),e.layout!=="simple"&&t.createVNode(Xt,t.mergeProps(e,{extraRightDropdownRender:e.extraRightDropdownRender,rightContentRender:e.rightContentRender}),null)])};return()=>{const y=t.createVNode("span",{key:"logo",onClick:()=>{var h;return(h=e.onMenuHeaderClick)==null?void 0:h.call(e)},class:[`${b}-logo`,e.isMobile?"mobile":"",g.value]},[t.createVNode("a",null,[He(e.logo)])]);return O(t.createVNode("div",{class:r.value},[e.isMobile?t.createVNode(t.Fragment,null,[Ut(e.menuHeaderRender,y),e.isMobile&&t.unref(R)&&t.createVNode("span",{class:`${b}-collapsed-button ${g.value}`,onClick:I},[t.unref(R)(e.collapsed)]),C()]):["mix","wide","top"].includes(e.layout)?t.createVNode(t.Fragment,null,[t.createVNode("div",{style:{width:e.layout==="wide"?`${e.wideWidth}px`:void 0,padding:e.layout==="wide"&&w.value<e.wideWidth?"0 50px":void 0},class:`${b}-main ${g.value}`},[t.createVNode("div",{class:`${b}-main-left ${g.value}`},[t.createVNode(pe,t.mergeProps(e,{renderKey:"headerTitleRender"}),null)]),C()])]):C()]))}}});function Et(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!t.isVNode(e)}const{Header:qe}=p.Layout,Ce=t.defineComponent({inheritAttrs:!1,props:Ue,setup(e){const{theme:a,isMobile:n,fixedHeader:l,headerHeight:o,layout:c,onCollapse:f,splitMenus:m}=t.toRefs(e),{getPrefixCls:w,menuData:b}=Q(),O=w({suffixCls:"header",isPor:!0}),g=w({suffixCls:"fixed-header",isPor:!0}),{wrapSSR:$,hashId:r}=i.useProStyle("ProLayoutHeader",[At],O),d=t.computed(()=>c.value==="wide"),I=t.computed(()=>l.value),R=t.computed(()=>c.value==="mix"||d.value),C=t.computed(()=>c.value==="side"||c.value==="simple"),y=t.computed(()=>C.value&&"light"||a.value),h=t.computed(()=>({[`${r.value}`]:!0,[`${O}-${y.value}`]:!0,[`${O}`]:!0,[`${g}`]:I.value})),S=t.computed(()=>I.value&&!n.value),F=t.computed(()=>m.value?b.value&&Re(b.value)||[]:c.value==="top"?b.value:[]),s=t.computed(()=>C.value&&S.value?`calc(100% - ${e.collapsed?e.collapsedWidth:e.siderWidth}px)`:"100%"),N=t.computed(()=>I.value?0:void 0),M=()=>{const k=t.createVNode(Ge,t.mergeProps(e,{theme:y.value,mode:"horizontal",onCollapse:f.value,menuData:F.value}),{default:()=>[R.value?null:e.headerContentRender&&typeof e.headerContentRender=="function"?e.headerContentRender(e):e.headerContentRender]});return e.headerRender?e.headerRender(e,k):k};return()=>{let k;return $(t.createVNode(t.Fragment,null,[I.value&&!d.value&&t.createVNode(qe,{theme:y.value,style:{height:`${o.value}px`,lineHeight:`${o.value}px`,background:"transparent"}},null),t.createVNode(qe,{theme:y.value,class:h.value,style:{height:`${o.value}px`,lineHeight:`${o.value}px`,width:s.value,zIndex:C.value?100:101,right:N.value}},Et(k=M())?k:{default:()=>[k]})]))}}}),Yt=t.defineComponent({name:"BaseProLayout",inheritAttrs:!1,components:{GlobalHeader:Ce,GlobalFooter:se,SiderMenuWrapper:de},props:Ye,emits:["update:collapsed","update:open-keys","update:selected-keys","collapse","openKeys","reloadPage","select","menuHeaderClick","menuClick","changeTabs"],setup(e,{slots:a}){const n=K.getPrefixCls({suffixCls:"basic-layout",isPor:!0}),{wrapSSR:l,hashId:o}=i.useProStyle("ProLayout",[Ft,Tt],n),c=ne.useMediaQuery(),{token:f}=i.useProConfigContext(),m=t.computed(()=>{var y;return(y=f==null?void 0:f.value)==null?void 0:y.colorPrimary});t.watchEffect(()=>{m.value&&document.querySelector("html")&&document.querySelector("html").style.setProperty("--gx-primary-color",m.value)});const w=t.computed(()=>e.layout==="mix"||e.layout==="side"||e.layout==="wide"||!1),b=t.computed(()=>e.layout==="wide"),O=t.computed(()=>w.value),g=t.computed(()=>e.collapsed?e.collapsedWidth:e.siderWidth),$=t.computed(()=>(e.theme||"dark").toLocaleLowerCase().includes("dark")?"dark":"light"),r=t.computed(()=>(c.value==="sm"||c.value==="xs")&&!e.disableMobile&&!b.value),d=t.reactive({position:"relative"});(e.isChildrenLayout||e.contentStyle&&e.contentStyle.minHeight)&&(d.minHeight=0);const I=(y,h)=>y.headerRender===!1||y.pure?null:t.createVNode(Ce,t.mergeProps(y,{matchMenuKeys:h||[]}),null),R=t.computed(()=>({...e.breadcrumb,itemRender:K.getSlot(a,e,"breadcrumbRender")})),C=t.computed(()=>O.value&&e.selectedKeys?Be(e.menuData,e.selectedKeys[0]):[]);return Ke({getPrefixCls:K.getPrefixCls,...J.pick(t.toRefs(e),["layout","waterMark","menuData","openKeys","splitMenus","headerHeight","selectedKeys","disableMobile","fixSiderbar","fixedHeader","waterMarkProps"].concat(Object.keys(ve))),theme:$.value,hasContentWide:b,isMobile:r,siderWidth:g,breadcrumb:R,flatMenuData:C,hasSide:w,flatMenu:O,pageHeaderRender:t.computed(()=>K.getSlot(a,e,"pageHeaderRender"))}),()=>{var T;const y=K.getSlot(a,e,"collapsedButtonRender"),h=K.getSlot(a,e,"headerContentRender"),S=K.getSlot(a,e,"rightContentRender"),F=K.getSlot(a,e,"headerRender"),s=K.getSlot(a,e,"footerRender"),N=K.getSlot(a,e,"links"),M=K.getSlot(a,e,"copyrightRender"),k=K.getSlot(a,e,"extraRightDropdownRender"),L=K.getSlot(a,e,"menuHeaderRender"),W=K.getSlot(a,e,"menuExtraRender"),H=K.getSlot(a,e,"menuContentRender"),D=K.getSlot(a,e,"menuFooterRender"),A=K.getSlot(a,e,"menuItemRender"),E=K.getSlot(a,e,"subMenuItemRender"),Y={menuItemRender:A,subMenuItemRender:E},U=t.computed(()=>I({...e,...Y,hasSiderMenu:w.value,menuData:e.menuData,isMobile:t.unref(r),rightContentRender:S,extraRightDropdownRender:k,headerTitleRender:L,headerContentRender:h,headerRender:F,theme:$.value},e.matchMenuKeys)),q=t.computed(()=>({[`${o.value}`]:!0,[`${n}`]:!0,[`${n}-${e.layout}`]:!0})),u=t.computed(()=>b.value?{minWidth:`${e.wideWidth}px`}:void 0),x=t.computed(()=>b.value?{width:e.menuData.length?`${e.wideWidth}px`:`${e.wideWidth-e.siderWidth-20}px`,paddingTop:`${e.headerHeight+20}px`,margin:b.value?"0 auto":void 0}:void 0),B=t.computed(()=>b.value?{minHeight:"835px"}:{});return l(t.createVNode(t.Fragment,null,[e.pure?(T=a.default)==null?void 0:T.call(a):t.createVNode("div",{class:q.value,style:u.value},[t.createVNode(p.Layout,{style:x.value},{default:()=>[t.createVNode(de,t.mergeProps(J.omit(e,["pure","theme"]),{links:N,theme:$.value,isMobile:r.value,menuHeaderRender:L,menuContentRender:H,menuExtraRender:W,menuFooterRender:D,collapsedButtonRender:y}),null),t.createVNode(p.Layout,{style:d},{default:()=>[U.value,t.createVNode(ue,t.mergeProps({hashId:o.value,isMobile:r.value,prefixCls:n,collapsedWidth:e.collapsedWidth,isChildrenLayout:e.isChildrenLayout,loading:e.loading,isShowTabsBar:e.showTabsBar,isFixedMultiTab:e.fixedMultiTab,siderWidth:e.siderWidth,collapsed:e.collapsed,style:e.disableContentMargin?B.value:{...e.contentStyle,...B.value}},J.pick(e,["onReloadPage","onChangeTabs"])),{default:()=>{var j;return[(j=a.default)==null?void 0:j.call(a)]}}),s===!1?null:s?s(e):t.createVNode(se,{copyright:M},null)]})]})])]))}}}),_t=t.defineComponent({components:{GlobalHeader:Ce,GlobalFooter:se,SiderMenuWrapper:de},props:Ye,emits:["update:collapsed","update:open-keys","update:selected-keys","collapse","openKeys","reloadPage","select","menuHeaderClick","menuClick","changeTabs"],setup(e,{slots:a,emit:n}){const l=t.computed(()=>e.theme!==void 0?{dark:e.theme==="realDark"}:{}),o=m=>{n("update:collapsed",m),n("collapse",m)},c=m=>{n("update:open-keys",m),n("openKeys",m)},f=m=>{n("update:selected-keys",m),n("select",m)};return()=>t.createVNode(p.ConfigProvider,{theme:e.primaryColor?{token:{colorPrimary:e.primaryColor}}:void 0},{default:()=>[t.createVNode(i,t.mergeProps({token:e.token},l.value),{default:()=>[t.createVNode(Yt,t.mergeProps(J.omit(e,["onSelect","onOpenKeys","onCollapse"]),{onSelect:f,onOpenKeys:c,onCollapse:o}),a)]})]})}}),Ze=(e,a,n)=>e.map((l,o)=>{var c;return l.meta&&(l.meta.key=n?`${n}-${o}`:`${o}`),l.path=l.path.replace("//","/"),l.children&&l.children.length>0&&(l.children=Ze(l.children,a,(c=l.meta)==null?void 0:c.key)),a[`${l.path}`]=l,l}),Gt=e=>{const a=e.find(o=>o.path==="/"),n={},l=Ze((a==null?void 0:a.children)||[],n);return{menuData:l,breadcrumb:n,levelMenuData:K.getLevelData(l)}},Je=[{key:"light",title:"亮色菜单风格"},{key:"dark",title:"暗色菜单风格"},{key:"realDark",title:"暗黑模式"}],Qe=[{key:"side",title:"侧边菜单布局"},{key:"mix",title:"混合菜单布局"},{key:"wide",title:"定宽菜单布局"},{key:"simple",title:"简单菜单布局"}],qt=[{key:"header",title:"顶部主题"},{key:"sider",title:"左侧主题"}],Zt=e=>({[e.componentCls]:{[`${e.antCls}-drawer-content-wrapper`]:{transform:"translate(100%)",display:"block !important"},"&-show":{[`${e.antCls}-drawer-content-wrapper`]:{transform:"translate(0%)"}},"&-trantion-none":{[`${e.antCls}-drawer-content-wrapper`]:{transition:"none !important;"}},"&-handle":{position:"absolute",top:240,right:300,zIndex:0,display:"flex",alignItems:"center",justifyContent:"center",width:"48px",height:"48px",fontSize:"16px",textAlign:"center",backgroundColor:e.colorPrimary,borderEndStartRadius:e.borderRadiusLG,borderStartStartRadius:e.borderRadiusLG,"-webkit-backdropilter":"saturate(180%) blur(20px)",backdropFilter:"saturate(180%) blur(20px)",cursor:"pointer",pointerEvents:"auto"},"&-wrapper":{position:"relative",height:`calc(100vh - ${e.marginLG*2}px)`},"&-content":{padding:e.marginLG},"&-body-title":{margin:0,marginBlockEnd:e.marginSM,fontSize:"14px",lineHeight:"22px",color:e.colorBgSpotlight},"&-block-checkbox":{display:"flex",minHeight:42,gap:e.marginSM,"& &-item":{position:"relative",width:"44px",height:"36px",overflow:"hidden",borderRadius:"4px",boxShadow:"0 1px 2.5px rgba(0,0,0,.18)",cursor:"pointer",fontSize:56,lineHeight:"56px","&::before":{position:"absolute",insetBlockStart:0,insetInlineStart:0,width:"33%",height:"100%",content:"''"},"&::after":{position:"absolute",insetBlockStart:0,insetInlineStart:0,width:"100%",height:"25%",content:"''"},"&-dark":{backgroundColor:"rgba(0, 21, 41, 0.85)","&::before":{backgroundColor:"rgba(0, 0, 0, 0.65)"},"&::after":{backgroundColor:"rgba(0, 0, 0, 0.85)"}},"&-light":{backgroundColor:"#f7f8fa","&::before":{backgroundColor:"#fff"},"&::after":{backgroundColor:"#fff"}},"&-realDark":{backgroundColor:"rgba(0, 21, 41, 0.85)","&::before":{backgroundColor:"rgba(0, 0, 0, 0.65)"},"&::after":{backgroundColor:"rgba(0, 0, 0, 0.85)"}},"&-dark,&-side":{backgroundColor:"#f7f8fa","&::before":{zIndex:"1",backgroundColor:"#001529"},"&::after":{backgroundColor:"#fff"}},"&-wide":{backgroundColor:"#f7f8fa","&::before":{backgroundColor:"#fff",left:"15%",width:"15%",height:"calc(100% - 38%)",top:"38%"},"&::after":{backgroundColor:"#fff"},"&-content":{position:"absolute",height:"calc(100% - 38%)",top:"38%",right:"15%",width:"calc(100% - 15% - 15% - 10% - 15%)",backgroundColor:"#fff"}},"&-simple":{backgroundColor:"#f7f8fa","&::before":{backgroundColor:"#fff"},"&::after":{display:"none"}},"&-mix":{backgroundColor:"#f7f8fa","&::before":{backgroundColor:"#fff"},"&::after":{backgroundColor:"#001529"}}},"& &-selectIcon":{position:"absolute",insetInlineEnd:"6px",bottom:"4px",color:e.colorPrimary,fontWeight:"bold",fontSize:"14px",pointerEvents:"none",".action":{color:e.colorPrimary}},"& &-icon":{fontSize:56,lineHeight:"56px"}},"&-theme-color":{marginBlockStart:"16px",display:"flex",gap:8,"&-label":{marginBlock:"16px"},"&-block":{display:"flex",alignItems:"center",justifyContent:"center",width:"20px",height:"20px",color:"#fff",fontWeight:"bold",textAlign:"center",borderRadius:"2px",cursor:"pointer"}},"&-list":{[`&${e.antCls}-list-sm ${e.antCls}-list-item`]:{paddingInline:0}}}}),Pe=t.defineComponent({name:"BlockCheckbox",props:{value:z.string,list:{type:Array,default:()=>[]},configType:z.string,prefixCls:z.string,hashId:z.string,onChange:Function},setup(e){return()=>{const a=`${e.prefixCls}-block-checkbox`;return t.createVNode("div",{class:[a,e.hashId]},[e.list.map(n=>t.createVNode(p.Tooltip,{title:n.title,key:n.key},{default:()=>[t.createVNode("div",{class:K.classNames(e.hashId,`${a}-item`,`${a}-item-${n.key}`,`${a}-${e.configType}-item`),onClick:()=>{var l;return(l=e.onChange)==null?void 0:l.call(e,n.key)}},[n.key==="wide"&&t.createVNode("div",{class:[`${a}-item-${n.key}-content`,e.hashId]},null),t.createVNode(Z.CheckOutlined,{class:`${a}-selectIcon ${e.hashId}`.trim(),style:{display:e.value===n.key?"block":"none"}},null),n!=null&&n.icon?t.createVNode("div",{class:`${a}-icon ${e.hashId}`.trim()},[n.icon]):null])]}))])}}}),Jt=t.defineComponent({name:"ThemeColor",inheritAttrs:!1,props:{settingValue:Object,colorList:{type:Array,default:()=>[]},prefixCls:z.string,hashId:z.string,onChange:Function},setup(e){return()=>{var n;const a=`${e.prefixCls}-theme-color`;return t.createVNode(t.Fragment,null,[t.createVNode("div",{class:`${a} ${e.hashId}`.trim()},[(n=e.colorList)==null?void 0:n.map(({key:l,color:o,title:c})=>l?t.createVNode(p.Tooltip,{key:o,title:c},{default:()=>{var f,m;return[t.createVNode("div",{class:[`${a}-block ${e.hashId}`.trim(),((f=e.settingValue)==null?void 0:f.primaryColor)===o?`${a}-block-checked`:""],style:{backgroundColor:o},onClick:()=>e.onChange&&e.onChange(o)},[((m=e.settingValue)==null?void 0:m.primaryColor)===o&&t.createVNode(Z.CheckOutlined,null,null)])]}}):null)])])}}}),me=t.defineComponent({name:"RegionalChange",props:{label:z.string,value:z.bool,prefixCls:z.string,valueKey:String,hashId:z.string,disabled:z.bool,onChange:Function},setup(e){return()=>t.createVNode(p.List,{class:`${e.prefixCls}-list ${e.hashId}`.trim(),split:!1,size:"small",renderItem:({item:a})=>t.createVNode(p.Tooltip,{title:a.disabled?a.disabledReason:"",placement:"left"},{default:()=>[t.createVNode(p.List.Item,{actions:[a.action]},{default:()=>[t.createVNode("span",{style:{opacity:a.disabled?.5:1}},[a.title])]})]}),dataSource:[{title:e.label,action:t.createVNode(p.Switch,{size:"small",disabled:e.disabled,checked:!!e.value,onChange:a=>{e.onChange&&e.onChange(e.valueKey,a)}},null)}]},null)}}),Qt=e=>({[e.componentCls]:{padding:e.marginLG,"&-title":{display:"flex",alignItems:"center",margin:0,gap:10,marginBlockEnd:e.marginSM,fontSize:"14px",lineHeight:"22px",color:e.colorBgSpotlight},"&-sub-title":{margin:0,display:"flex",alignItems:"center",fontSize:12,fontWeight:"normal",color:e.colorTextDescription},"&-list":{[`&${e.antCls}-list-sm ${e.antCls}-list-item`]:{paddingInline:0,[`${e.antCls}-list-item-action`]:{marginInlineStart:10}}}}});function Pt(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!t.isVNode(e)}const ea=t.defineComponent({name:"ThemeEditor",props:{settingValue:Object,onChange:Function},setup(e){const{getPrefixCls:a}=Q(),[n,l]=ne.useState("header"),o=a({suffixCls:"theme-editor",isPor:!0}),{wrapSSR:c,hashId:f}=i.useProStyle("ProThemeEditor",[Qt],o),{token:m}=i.useProConfigContext(),w=t.computed(()=>{var r;return(r=m.value)==null?void 0:r.layout}),b=t.computed(()=>{var r,d,I,R,C,y,h,S,F,s,N,M,k,L,W,H,D,A,E,Y,U,q,u,x,B;return[{key:"colorBgMenu",title:"全部背景",disabled:((r=e.settingValue)==null?void 0:r.theme)==="dark"&&["mix","wide"].includes((d=e.settingValue)==null?void 0:d.layout)},{key:"colorDarkBgMenu",title:"全部背景",disabled:((I=e.settingValue)==null?void 0:I.theme)==="light"||((R=e.settingValue)==null?void 0:R.theme)==="dark"&&["side","simple"].includes((C=e.settingValue)==null?void 0:C.layout)},{key:"colorSubItemBg",title:"子菜单背景",disabled:!0},{key:"colorDarkSubItemBg",title:"子菜单背景",disabled:!0},{key:"colorBgMenuItemSelected",title:"菜单选中背景",disabled:((y=e.settingValue)==null?void 0:y.theme)==="dark"&&["mix","wide"].includes((h=e.settingValue)==null?void 0:h.layout)},{key:"colorDarkBgMenuItemSelected",title:"菜单选中背景",disabled:((S=e.settingValue)==null?void 0:S.theme)==="light"||((F=e.settingValue)==null?void 0:F.theme)==="dark"&&["side","simple"].includes((s=e.settingValue)==null?void 0:s.layout)},{key:"colorTextMenu",title:"菜单文字颜色",disabled:((N=e.settingValue)==null?void 0:N.theme)==="dark"&&["mix","wide"].includes((M=e.settingValue)==null?void 0:M.layout)},{key:"colorDarkTextMenu",title:"菜单文字颜色",disabled:((k=e.settingValue)==null?void 0:k.theme)==="light"||((L=e.settingValue)==null?void 0:L.theme)==="dark"&&["side","simple"].includes((W=e.settingValue)==null?void 0:W.layout)},{key:"colorTextMenuHover",title:"菜单文字移入颜色",disabled:((H=e.settingValue)==null?void 0:H.theme)==="dark"&&["mix","wide"].includes((D=e.settingValue)==null?void 0:D.layout)},{key:"colorDarkTextMenuHover",title:"菜单文字移入颜色",disabled:((A=e.settingValue)==null?void 0:A.theme)==="light"||((E=e.settingValue)==null?void 0:E.theme)==="dark"&&["side","simple"].includes((Y=e.settingValue)==null?void 0:Y.layout)},{key:"colorTextMenuSelected",title:"菜单文字选中颜色",disabled:((U=e.settingValue)==null?void 0:U.theme)==="dark"&&["mix","wide"].includes((q=e.settingValue)==null?void 0:q.layout)},{key:"colorDarkTextMenuSelected",title:"菜单文字选中颜色",disabled:((u=e.settingValue)==null?void 0:u.theme)==="light"||((x=e.settingValue)==null?void 0:x.theme)==="dark"&&["side","simple"].includes((B=e.settingValue)==null?void 0:B.layout)}]}),O=t.computed(()=>{var r,d,I,R,C,y,h,S,F,s,N,M,k,L,W,H,D,A,E,Y,U,q,u,x,B,T,j,G,X,ee,P,ot;return[{key:"colorBgMenu",title:"全部背景",disabled:((r=e.settingValue)==null?void 0:r.theme)==="dark"&&["side","simple"].includes((d=e.settingValue)==null?void 0:d.layout)},{key:"colorDarkBgMenu",title:"全部背景",disabled:((I=e.settingValue)==null?void 0:I.theme)==="light"||((R=e.settingValue)==null?void 0:R.theme)==="dark"&&["mix","wide"].includes((C=e.settingValue)==null?void 0:C.layout)},{key:"colorSubItemBg",title:"子菜单背景",disabled:((y=e.settingValue)==null?void 0:y.theme)==="dark"&&["side","simple"].includes((h=e.settingValue)==null?void 0:h.layout)},{key:"colorDarkSubItemBg",title:"子菜单背景",disabled:((S=e.settingValue)==null?void 0:S.theme)==="light"||((F=e.settingValue)==null?void 0:F.theme)==="dark"&&["mix","wide"].includes((s=e.settingValue)==null?void 0:s.layout)},{key:"colorBgMenuItemHover",title:"菜单移入背景",disabled:((N=e.settingValue)==null?void 0:N.theme)==="dark"&&((M=e.settingValue)==null?void 0:M.layout)!=="mix"},{key:"colorBgMenuItemSelected",title:"菜单选中背景",disabled:((k=e.settingValue)==null?void 0:k.theme)==="dark"&&((L=e.settingValue)==null?void 0:L.layout)!=="mix"},{key:"colorDarkBgMenuItemSelected",title:"菜单选中背景",disabled:((W=e.settingValue)==null?void 0:W.theme)==="light"||((H=e.settingValue)==null?void 0:H.theme)==="dark"&&["mix","wide"].includes((D=e.settingValue)==null?void 0:D.layout)},{key:"colorTextMenu",title:"菜单文字颜色",disabled:((A=e.settingValue)==null?void 0:A.theme)==="dark"&&((E=e.settingValue)==null?void 0:E.layout)!=="mix"},{key:"colorDarkTextMenu",title:"菜单文字颜色",disabled:((Y=e.settingValue)==null?void 0:Y.theme)==="light"||((U=e.settingValue)==null?void 0:U.theme)==="dark"&&["mix","wide"].includes((q=e.settingValue)==null?void 0:q.layout)},{key:"colorTextMenuHover",title:"菜单文字移入颜色",disabled:((u=e.settingValue)==null?void 0:u.theme)==="dark"&&((x=e.settingValue)==null?void 0:x.layout)!=="mix"},{key:"colorDarkTextMenuHover",title:"菜单文字移入颜色",disabled:((B=e.settingValue)==null?void 0:B.theme)==="light"||((T=e.settingValue)==null?void 0:T.theme)==="dark"&&["mix","wide"].includes((j=e.settingValue)==null?void 0:j.layout)},{key:"colorTextMenuSelected",title:"菜单文字选中颜色",disabled:((G=e.settingValue)==null?void 0:G.theme)==="dark"&&((X=e.settingValue)==null?void 0:X.layout)!=="mix"},{key:"colorDarkTextMenuSelected",title:"菜单文字选中颜色",disabled:((ee=e.settingValue)==null?void 0:ee.theme)==="light"||((P=e.settingValue)==null?void 0:P.theme)==="dark"&&["mix","wide"].includes((ot=e.settingValue)==null?void 0:ot.layout)}]}),g=t.computed(()=>n.value==="header"?b.value:n.value==="sider"?O.value:[]),$=r=>{var d,I;return(I=(d=w.value)==null?void 0:d[n.value])==null?void 0:I[r]};return()=>{var d,I,R;let r;return c(t.createVNode("div",{class:[o,f.value]},[t.createVNode("h3",{class:[`${o}-title`,f.value]},[t.createTextVNode("主题编辑器"),t.createVNode("div",{class:[`${o}-sub-title`,f.value]},[t.createVNode("span",null,[(d=Je.find(C=>{var y;return C.key===((y=e.settingValue)==null?void 0:y.theme)}))==null?void 0:d.title]),t.createVNode("span",{style:{marginInline:"8px"}},[t.createTextVNode("/")]),t.createVNode("span",null,[(I=Qe.find(C=>{var y;return C.key===((y=e.settingValue)==null?void 0:y.layout)}))==null?void 0:I.title])])]),t.createVNode("div",{class:[`${o}-content`,f.value]},[t.createVNode(p.List,{class:`${o}-list ${f.value}`.trim(),split:!1,size:"small",renderItem:({item:C})=>t.createVNode(p.List.Item,{actions:[C.action]},{default:()=>[t.createVNode("span",{style:{opacity:C.disabled?.5:1}},[C.title])]}),dataSource:[{title:"自定义主题色",action:t.createVNode(Ne.GColorPicker,{value:(R=e.settingValue)==null?void 0:R.primaryColor,actions:["confirm"],modes:["rgb"],size:"small",onConfirm:C=>e.onChange&&e.onChange(C,"primaryColor")},null)}]},null),t.createVNode(p.Tabs,{activeKey:n.value,onChange:l},Pt(r=qt.map(C=>t.createVNode(p.TabPane,{key:C.key,tab:C.title},{default:()=>[t.createVNode(p.List,{class:`${o}-list ${f.value}`.trim(),split:!1,size:"small",renderItem:({item:y})=>t.createVNode(p.List.Item,{actions:[y.action]},{default:()=>[t.createVNode("span",{style:{opacity:y.disabled?.5:1}},[y.title])]}),dataSource:g.value.filter(y=>!y.disabled).map(y=>({...y,action:t.createVNode(Ne.GColorPicker,{value:$(y.key),actions:["confirm"],modes:["rgb"],size:"small",onConfirm:h=>e.onChange&&e.onChange(h,n.value,y.key)},null)}))},null)]})))?r:{default:()=>[r]})])]))}}}),ta=e=>({[e.componentCls]:{padding:e.marginLG,"&-title":{display:"flex",alignItems:"center",margin:0,gap:10,marginBlockEnd:e.marginSM,fontSize:"14px",lineHeight:"22px",color:e.colorBgSpotlight},"&-sub-title":{margin:0,display:"flex",alignItems:"center",fontSize:12,fontWeight:"normal",color:e.colorTextDescription},"&-list":{[`&${e.antCls}-list-sm ${e.antCls}-list-item`]:{paddingInline:0,[`${e.antCls}-list-item-action`]:{marginInlineStart:10}}}}});function et(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!t.isVNode(e)}const{preset:tt}=ge,aa=t.defineComponent({name:"OthersChange",props:{prefixCls:z.string,settingValue:Object,onChange:Function},setup(e){const a=K.getPrefixCls({suffixCls:"others",isPor:!0}),{wrapSSR:n,hashId:l}=i.useProStyle("SettingsDrawOthers",[ta],a);return()=>{var c,f,m,w,b,O,g,$,r,d,I,R,C,y;let o;return n(t.createVNode("div",{class:[a,l.value]},[t.createVNode("h3",{class:[`${a}-title`,l.value]},[t.createTextVNode("页面动画设置")]),t.createVNode(p.List,{class:`${a}-list ${l.value}`.trim(),split:!1,size:"small",renderItem:({item:h})=>t.createVNode(p.Tooltip,{title:h.disabled?h.disabledReason:"",placement:"left"},{default:()=>[t.createVNode(p.List.Item,{actions:[h.action]},{default:()=>[t.createVNode("span",{style:{opacity:h.disabled?.5:1}},[h.title])]})]}),dataSource:[{title:"禁用动画",action:t.createVNode(p.Switch,{checked:!((f=(c=e.settingValue)==null?void 0:c.animate)!=null&&f.disabled),size:"small",onChange:h=>{var S;return(S=e.onChange)==null?void 0:S.call(e,"animate","disabled",!h)}},null)},{title:"动画效果",disabled:(w=(m=e.settingValue)==null?void 0:m.animate)==null?void 0:w.disabled,action:t.createVNode(p.Select,{value:(O=(b=e.settingValue)==null?void 0:b.animate)==null?void 0:O.name,style:{width:"100px"},size:"small",disabled:($=(g=e.settingValue)==null?void 0:g.animate)==null?void 0:$.disabled,getPopupContainer:h=>h&&h.parentNode?h.parentNode:h,onChange:h=>{var S;return(S=e.onChange)==null?void 0:S.call(e,"animate","name",h)}},et(o=tt.map(h=>t.createVNode(p.Select.Option,{value:h.name},{default:()=>[h.alias]})))?o:{default:()=>[o]})},{title:"动画方向",disabled:(d=(r=e.settingValue)==null?void 0:r.animate)==null?void 0:d.disabled,action:t.createVNode(p.Select,{value:(R=(I=e.settingValue)==null?void 0:I.animate)==null?void 0:R.direction,style:{width:"100px"},size:"small",dropdownStyle:{minWidth:"120px"},disabled:(y=(C=e.settingValue)==null?void 0:C.animate)==null?void 0:y.disabled,getPopupContainer:h=>h&&h.parentNode?h.parentNode:h,onChange:h=>{var S;return(S=e.onChange)==null?void 0:S.call(e,"animate","direction",h)}},{default:()=>{var h;return[(h=tt.find(S=>{var F,s;return S.name===((s=(F=e.settingValue)==null?void 0:F.animate)==null?void 0:s.name)}))==null?void 0:h.directions.map(S=>t.createVNode(p.Select.Option,{value:S},et(S)?S:{default:()=>[S]}))]}})}]},null)]))}}}),{preset:na}=ge,Se=Object.keys(i.themeConfig).filter(e=>e!=="title"),at={color:"#fff",fontSize:20},oa=[{label:"fixedHeader",title:"固定 Header"},{label:"fixSiderbar",title:"固定侧边菜单"},{label:"splitMenus",title:"自动分割菜单"}],la=[{label:"showTabsBar",title:"多标签"},{label:"fixedMultiTab",title:"固定多标签"}],nt=e=>K.isBrowser()?{...J.pick(i.themeConfig,Se),...e||{}}:J.cloneDeep(i.themeConfig),fe=(e,{slots:a})=>{var n;return t.createVNode("div",{style:{marginBottom:"24px"}},[t.createVNode("h3",{class:`${e.prefixCls}-body-title ${e.hashId}`.trim()},[e.title]),(n=a.default)==null?void 0:n.call(a)])},ia=t.defineComponent({name:"SettingDrawer",props:{themeOnly:Boolean,hideHintAlert:Boolean,hideCopyButton:Boolean,weakmode:Boolean,showProgress:Boolean,settings:{type:Object},colorList:{type:[Boolean,Array],default:()=>i.colorList},onChange:Function,onChangeLayout:Function},emits:["change","changeLayout"],setup(e){const{getPrefixCls:a}=Q(),n=a({suffixCls:"setting-drawer",isPor:!0}),{wrapSSR:l,hashId:o}=i.useProStyle("ProSettingDraw",[Zt],n),c=t.ref(!1),[f,m]=ne.useState(!1),[w,b]=ne.useState(!1),[O,g]=ne.useState(!1),$=t.computed(()=>nt(J.pick(e.settings,Se))),[r,d]=ne.useMergedState(()=>nt(J.pick(e.settings,Se)),{value:$,onChange:e.onChange}),I=t.computed(()=>e.colorList&&K.isArray(e.colorList)?e.colorList:[]),R=t.computed(()=>gt(t.unref(r))),{copy:C,copied:y,isSupported:h}=we.useClipboard();t.watch(f,()=>{c.value||(c.value=!0)});const S=(s,N,M)=>{var W,H;const k=["header","sider"],L={};if(M&&k.includes(s)){L[s]={},L[s][M]=N,e.onChangeLayout&&e.onChangeLayout(J.pick(L,k));return}else s==="animate"?(L[s]={},L[s][M]=N,M==="name"&&(L[s].direction=(H=(W=na.find(D=>D.name===N))==null?void 0:W.directions)==null?void 0:H[0])):L[s]=N;if(s==="colorWeak"){const D=document.querySelector("body");D&&(D.dataset.prosettingdrawer=N===!0?D.style.filter:D.dataset.prosettingdrawer||"none",N===!0&&(D.dataset.prosettingdrawer=D.style.filter),D.style.filter=N===!0?"invert(80%)":D.dataset.prosettingdrawer||"none",N||delete D.dataset.prosettingdrawer)}d(K.merge(t.unref(r),{...Fe(J.omit(L,k))}))},F=()=>{h.value&&C(JSON.stringify(t.unref(r)))};return t.watch(y,s=>{s&&p.message.success("拷贝成功,请到 config/default/themeConfig.js 中替换默认配置")}),()=>l(t.createVNode(p.Drawer,{width:300,closable:!1,open:f.value,rootClassName:`${n} ${o.value} ${f.value&&`${n}-show`} ${!c.value&&`${n}-trantion-none`}`,placement:"right",rootStyle:{zIndex:999},bodyStyle:{padding:0},onClose:()=>m(!1),handle:t.createVNode("div",{class:[`${n}-handle`,o.value],onClick:()=>m(!f.value)},[f.value?t.createVNode(Z.CloseOutlined,{style:at},null):t.createVNode(Z.SettingOutlined,{style:at},null)])},{default:()=>[t.createVNode("div",{class:[`${n}-wrapper`,o.value]},[t.createVNode(rt,null,{default:()=>[t.createVNode("div",{class:[`${n}-content`,o.value]},[t.createVNode(fe,{prefixCls:n,hashId:o.value,title:"整体风格设置"},{default:()=>[t.createVNode(Pe,{hashId:o.value,prefixCls:n,list:Je,value:r.value.theme,configType:"theme",key:"navTheme",onChange:s=>S("theme",s)},null)]}),t.createVNode(fe,{hashId:o.value,title:t.createVNode("span",null,[t.createTextVNode("主题色 "),t.createVNode("a",{style:{fontSize:"12px"},onClick:()=>b(!0)},[t.createTextVNode("更多配置")])]),prefixCls:n},{default:()=>[t.createVNode(Jt,{hashId:o.value,prefixCls:n,colorList:I.value,settingValue:r.value,onChange:(s,N)=>S(N||"primaryColor",s)},null)]}),!e.themeOnly&&t.createVNode(t.Fragment,null,[t.createVNode(p.Divider,null,null),t.createVNode(fe,{hashId:o.value,prefixCls:n,title:"导航模式"},{default:()=>[t.createVNode(Pe,{prefixCls:n,value:t.unref(r).layout,key:"layout",hashId:o.value,configType:"layout",list:Qe,onChange:s=>S("layout",s)},null)]}),oa.map(({label:s,title:N})=>t.createVNode(me,{label:N,disabled:t.unref(R)[s],value:t.unref(r)[s],prefixCls:n,hashId:o.value,valueKey:s,onChange:(M,k)=>S(M,k)},null)),t.createVNode(p.Divider,null,null),t.createVNode(fe,{hashId:o.value,prefixCls:n,title:t.createVNode("span",null,[t.createTextVNode("其他设置 "),t.createVNode("a",{style:{fontSize:"12px"},onClick:()=>g(!0)},[t.createTextVNode("更多配置")])])},{default:()=>[la.map(({label:s,title:N})=>t.createVNode(me,{label:N,disabled:t.unref(R)[s],value:t.unref(r)[s],prefixCls:n,hashId:o.value,valueKey:s,onChange:(M,k)=>S(M,k)},null)),e.weakmode&&t.createVNode(me,{label:"色弱模式",value:t.unref(r).colorWeak,prefixCls:n,hashId:o.value,valueKey:"colorWeak",onChange:(s,N)=>S(s,N)},null),e.showProgress&&t.createVNode(me,{label:"顶部进度条",value:t.unref(r).showProgressBar,prefixCls:n,hashId:o.value,valueKey:"showProgressBar",onChange:(s,N)=>S(s,N)},null)]})]),e.hideHintAlert&&e.hideCopyButton?null:t.createVNode(p.Divider,null,null),e.hideHintAlert?null:t.createVNode(p.Alert,{type:"warning",message:"配置栏只在开发环境用于预览,生产环境不会展现,请拷贝后手动修改配置文件",icon:t.createVNode(Z.NotificationOutlined,null,null),showIcon:!0,style:{marginBottom:"16px"}},null),e.hideCopyButton?null:t.createVNode(p.Button,{onClick:()=>F(),block:!0},{default:()=>[t.createVNode(Z.CopyOutlined,null,null),t.createTextVNode("拷贝设置")]})])]})]),t.createVNode(p.Drawer,{width:320,closable:!1,placement:"right",open:w.value,bodyStyle:{padding:0},onClose:()=>b(!1)},{default:()=>[t.createVNode(ea,{settingValue:r.value,onChange:(s,N,M)=>S(N||"primaryColor",s,M)},null)]}),t.createVNode(p.Drawer,{width:320,closable:!1,placement:"right",open:O.value,bodyStyle:{padding:0},onClose:()=>g(!1)},{default:()=>[t.createVNode(aa,{settingValue:r.value,onChange:(s,N,M)=>S(s,M,N)},null)]})]}))}}),ra=new i.Keyframe("backInLeft",{"0%":{opacity:.7,transform:"translateX(-2000px) scale(0.7)"},"80%":{opacity:.7,transform:"translateX(0px) scale(0.7)"},"100%":{opacity:1,transform:"scale(1)"}}),da=new i.Keyframe("backInRight",{"0%":{opacity:.7,transform:"translateX(2000px) scale(0.7)"},"80%":{opacity:.7,transform:"translateX(0px) scale(0.7)"},"100%":{opacity:1,transform:"scale(1)"}}),ca=new i.Keyframe("backInUp",{"0%":{opacity:.7,transform:"translateY(1200px) scale(0.7)"},"80%":{opacity:.7,transform:"translateY(0px) scale(0.7)"},"100%":{opacity:1,transform:"scale(1)"}}),sa=new i.Keyframe("backInDown",{"0%":{opacity:.7,transform:"translateY(-1200px) scale(0.7)"},"80%":{opacity:.7,transform:"translateY(0px) scale(0.7)"},"100%":{opacity:1,transform:"scale(1)"}}),ua=new i.Keyframe("backOutLeft",{"0%":{opacity:1,transform:"scale(1)"},"20%":{opacity:.7,transform:"translateX(0px) scale(0.7)"},"100%":{opacity:.7,transform:"translateX(-2000px) scale(0.7)"}}),ma=new i.Keyframe("backOutRight",{"0%":{opacity:1,transform:"scale(1)"},"20%":{opacity:.7,transform:"translateX(0px) scale(0.7)"},"100%":{opacity:.7,transform:"translateX(2000px) scale(0.7)"}}),fa=new i.Keyframe("backOutUp",{"0%":{opacity:1,transform:"scale(1)"},"20%":{opacity:.7,transform:"translateY(0px) scale(0.7)"},"100%":{opacity:.7,transform:"translateY(-700px) scale(0.7)"}}),ha=new i.Keyframe("backOutDown",{"0%":{opacity:1,transform:"scale(1)"},"20%":{opacity:.7,transform:"translateY(0px) scale(0.7)"},"100%":{opacity:.7,transform:"translateY(700px) scale(0.7)"}}),ga=()=>({"&.backInLeft":{animationFillMode:"both",animationName:ra},"&.backInRight":{animationFillMode:"both",animationName:da},"&.backInUp":{animationFillMode:"both",animationName:ca},"&.backInDown":{animationFillMode:"both",animationName:sa}}),ya=()=>({"&.backOutLeft":{animationFillMode:"both",animationName:ua},"&.backOutRight":{animationFillMode:"both",animationName:ma},"&.backOutUp":{animationFillMode:"both",animationName:fa},"&.backOutDown":{animationFillMode:"both",animationName:ha}}),ba=new i.Keyframe("bounceIn",{"from,20%,40%,60%,80%,to":{animationTimingFunction:"cubic-bezier(0.215, 0.61, 0.355, 1)"},"0%":{opacity:0,transform:"scale3d(0.3, 0.3, 0.3)"},"20%":{transform:"scale3d(1.1, 1.1, 1.1)"},"40%":{transform:"scale3d(0.9, 0.9, 0.9)"},"60%":{transform:"scale3d(1.03, 1.03, 1.03)"},"80%":{transform:"scale3d(0.97, 0.97, 0.97)"},to:{opacity:1,transform:"scale3d(1, 1, 1)"}}),pa=new i.Keyframe("bounceInLeft",{"from,60%,75%,90%,to":{animationTimingFunction:"cubic-bezier(0.215, 0.61, 0.355, 1)"},"0%":{opacity:0,transform:"translate3d(-3000px, 0, 0) scaleX(3)"},"60%":{opacity:1,transform:"translate3d(25px, 0, 0) scaleX(1)"},"75%":{transform:"translate3d(-10px, 0, 0) scaleX(0.98)"},"90%":{transform:"translate3d(5px, 0, 0) scaleX(0.995)"},to:{transform:"translate3d(0, 0, 0)"}}),xa=new i.Keyframe("bounceInRight",{"from,60%,75%,90%,to":{animationTimingFunction:"cubic-bezier(0.215, 0.61, 0.355, 1)"},from:{opacity:0,transform:"translate3d(3000px, 0, 0) scaleX(3)"},"60%":{opacity:1,transform:"translate3d(-25px, 0, 0) scaleX(1)"},"75%":{transform:"translate3d(10px, 0, 0) scaleX(0.98)"},"90%":{transform:"translate3d(-5px, 0, 0) scaleX(0.995)"},to:{transform:"translate3d(0, 0, 0)"}}),Ca=new i.Keyframe("bounceInDown",{"from,60%,75%,90%,to":{animationTimingFunction:"cubic-bezier(0.215, 0.61, 0.355, 1)"},"0%":{opacity:0,transform:"translate3d(0, -3000px, 0) scaleY(3)"},"60%":{opacity:1,transform:"translate3d(0, 25px, 0) scaleY(0.9)"},"75%":{transform:"translate3d(0, -10px, 0) scaleY(0.95)"},"90%":{transform:"translate3d(0, 5px, 0) scaleY(0.985)"},to:{transform:"translate3d(0, 0, 0)"}}),Sa=new i.Keyframe("bounceInUp",{"from,60%,75%,90%,to":{animationTimingFunction:"cubic-bezier(0.215, 0.61, 0.355, 1)"},from:{opacity:0,transform:"translate3d(0, 3000px, 0) scaleY(5)"},"60%":{opacity:1,transform:"translate3d(0, -20px, 0) scaleY(0.9)"},"75%":{transform:"translate3d(0, 10px, 0) scaleY(0.95)"},"90%":{transform:"translate3d(0, -5px, 0) scaleY(0.985)"},to:{transform:"translate3d(0, 0, 0)"}}),wa=new i.Keyframe("bounceOut",{"20%":{transform:"scale3d(0.9, 0.9, 0.9)"},"50%,55%":{transform:"scale3d(1.1, 1.1, 1.1)"},"60%":{transform:"scale3d(1.03, 1.03, 1.03)"},to:{opacity:0,transform:"scale3d(0.3, 0.3, 0.3)"}}),Na=new i.Keyframe("bounceOutLeft",{"20%":{opacity:1,transform:"translate3d(20px, 0, 0) scaleX(0.9)"},to:{opacity:0,transform:"translate3d(-2000px, 0, 0) scaleX(2)"}}),Ia=new i.Keyframe("bounceOutRight",{"20%":{opacity:1,transform:"translate3d(-20px, 0, 0) scaleX(0.9)"},to:{opacity:0,transform:"translate3d(2000px, 0, 0) scaleX(2)"}}),Ma=new i.Keyframe("bounceOutDown",{"20%":{transform:"translate3d(0, 10px, 0) scaleY(0.985)"},"40%,45%":{opacity:1,transform:"translate3d(0, -20px, 0) scaleY(0.9)"},to:{opacity:0,transform:"translate3d(0, 2000px, 0) scaleY(3)"}}),ka=new i.Keyframe("bounceOutUp",{"20%":{transform:"translate3d(0, -10px, 0) scaleY(0.985)"},"40%,45%":{opacity:1,transform:"translate3d(0, 20px, 0) scaleY(0.9)"},to:{opacity:0,transform:"translate3d(0, -2000px, 0) scaleY(3)"}}),Oa=()=>({"&.bounceIn":{animationFillMode:"both",animationDuration:`${.3*.75}s !important`,animationName:ba},"&.bounceInLeft":{animationFillMode:"both",animationName:pa},"&.bounceInRight":{animationFillMode:"both",animationName:xa},"&.bounceInDown":{animationFillMode:"both",animationName:Ca},"&.bounceInUp":{animationFillMode:"both",animationName:Sa}}),Ra=()=>({"&.bounceOut":{animationFillMode:"both",animationDuration:`${.3*.75}s !important`,animationName:wa},"&.bounceOutLeft":{animationFillMode:"both",animationName:Na},"&.bounceOutRight":{animationFillMode:"both",animationName:Ia},"&.bounceOutDown":{animationFillMode:"both",animationName:Ma},"&.bounceOutUp":{animationFillMode:"both",animationName:ka}}),Ba=new i.Keyframe("fadeIn",{from:{opacity:0},to:{opacity:1}}),Va=new i.Keyframe("fadeInLeft",{from:{opacity:0,transform:"translate3d(-100%, 0, 0)"},to:{opacity:1,transform:"translate3d(0, 0, 0)"}}),Fa=new i.Keyframe("fadeInRight",{from:{opacity:0,transform:"translate3d(100%, 0, 0)"},to:{opacity:1,transform:"translate3d(0, 0, 0)"}}),Ta=new i.Keyframe("fadeInDown",{from:{opacity:0,transform:"translate3d(0, -100%, 0)"},to:{opacity:1,transform:"translate3d(0, 0, 0)"}}),$a=new i.Keyframe("fadeInUp",{from:{opacity:0,transform:"translate3d(0, 100%, 0)"},to:{opacity:1,transform:"translate3d(0, 0, 0)"}}),La=new i.Keyframe("fadeInDownBig",{from:{opacity:0,transform:"translate3d(0, -2000px, 0)"},to:{opacity:1,transform:"translate3d(0, 0, 0)"}}),Ka=new i.Keyframe("fadeInUpBig",{from:{opacity:0,transform:"translate3d(0, 2000px, 0)"},to:{opacity:1,transform:"translate3d(0, 0, 0)"}}),za=new i.Keyframe("fadeInLeftBig",{from:{opacity:0,transform:"translate3d(-2000px, 0, 0)"},to:{opacity:1,transform:"translate3d(0, 0, 0)"}}),Da=new i.Keyframe("fadeInRightBig",{from:{opacity:0,transform:"translate3d(2000px, 0, 0)"},to:{opacity:1,transform:"translate3d(0, 0, 0)"}}),Ha=new i.Keyframe("fadeInTopLeft",{from:{opacity:0,transform:"translate3d(-100%, -100%, 0)"},to:{opacity:1,transform:"translate3d(0, 0, 0)"}}),ja=new i.Keyframe("fadeInBottomRight",{from:{opacity:0,transform:"translate3d(100%, 100%, 0)"},to:{opacity:1,transform:"translate3d(0, 0, 0)"}}),Wa=new i.Keyframe("fadeInTopRight",{from:{opacity:0,transform:"translate3d(100%, -100%, 0)"},to:{opacity:1,transform:"translate3d(0, 0, 0)"}}),Aa=new i.Keyframe("fadeInBottomLeft",{from:{opacity:0,transform:"translate3d(-100%, 100%, 0)"},to:{opacity:1,transform:"translate3d(0, 0, 0)"}}),va=new i.Keyframe("fadeOut",{from:{opacity:1},to:{opacity:0}}),Ua=new i.Keyframe("fadeOutLeft",{from:{opacity:1},to:{opacity:0,transform:"translate3d(-100%, 0, 0)"}}),Xa=new i.Keyframe("fadeOutRight",{from:{opacity:1},to:{opacity:0,transform:"translate3d(100%, 0, 0)"}}),Ea=new i.Keyframe("fadeOutDown",{from:{opacity:1},to:{opacity:0,transform:"translate3d(0, 100%, 0)"}}),Ya=new i.Keyframe("fadeOutUp",{from:{opacity:1},to:{opacity:0,transform:"translate3d(0, -100%, 0)"}}),_a=new i.Keyframe("fadeOutDownBig",{from:{opacity:1},to:{opacity:0,transform:"translate3d(0, 2000px, 0)"}}),Ga=new i.Keyframe("fadeOutUpBig",{from:{opacity:1},to:{opacity:0,transform:"translate3d(0, -2000px, 0)"}}),qa=new i.Keyframe("fadeOutLeftBig",{from:{opacity:1},to:{opacity:0,transform:"translate3d(-2000px, 0, 0)"}}),Za=new i.Keyframe("fadeOutRightBig",{from:{opacity:1},to:{opacity:0,transform:"translate3d(2000px, 0, 0)"}}),Ja=new i.Keyframe("fadeOutTopLeft",{from:{opacity:1,transform:"translate3d(0, 0, 0)"},to:{opacity:0,transform:"translate3d(-100%, -100%, 0)"}}),Qa=new i.Keyframe("fadeOutBottomRight",{from:{opacity:1,transform:"translate3d(0, 0, 0)"},to:{opacity:0,transform:"translate3d(100%, 100%, 0)"}}),Pa=new i.Keyframe("fadeOutTopRight",{from:{opacity:1,transform:"translate3d(0, 0, 0)"},to:{opacity:0,transform:"translate3d(100%, -100%, 0)"}}),en=new i.Keyframe("fadeOutBottomLeft",{from:{opacity:1,transform:"translate3d(0, 0, 0)"},to:{opacity:0,transform:"translate3d(-100%, 100%, 0)"}}),tn=()=>({"&.fadeIn":{animationFillMode:"both",animationName:Ba},"&.fadeInLeft":{animationFillMode:"both",animationName:Va},"&.fadeInRight":{animationFillMode:"both",animationName:Fa},"&.fadeInDown":{animationFillMode:"both",animationName:Ta},"&.fadeInUp":{animationFillMode:"both",animationName:$a},"&.fadeInLeftBig":{animationFillMode:"both",animationName:za},"&.fadeInRightBig":{animationFillMode:"both",animationName:Da},"&.fadeInUpBig":{animationFillMode:"both",animationName:Ka},"&.fadeInDownBig":{animationFillMode:"both",animationName:La},"&.fadeInTopLeft":{animationFillMode:"both",animationName:Ha},"&.fadeInBottomRight":{animationFillMode:"both",animationName:ja},"&.fadeInTopRight":{animationFillMode:"both",animationName:Wa},"&.fadeInBottomLeft":{animationFillMode:"both",animationName:Aa}}),an=()=>({"&.fadeOut":{animationFillMode:"both",animationName:va},"&.fadeOutLeft":{animationFillMode:"both",animationName:Ua},"&.fadeOutRight":{animationFillMode:"both",animationName:Xa},"&.fadeOutDown":{animationFillMode:"both",animationName:Ea},"&.fadeOutUp":{animationFillMode:"both",animationName:Ya},"&.fadeOutDownBig":{animationFillMode:"both",animationName:_a},"&.fadeOutUpBig":{animationFillMode:"both",animationName:Ga},"&.fadeOutLeftBig":{animationFillMode:"both",animationName:qa},"&.fadeOutRightBig":{animationFillMode:"both",animationName:Za},"&.fadeOutTopLeft":{animationFillMode:"both",animationName:Ja},"&.fadeOutBottomRight":{animationFillMode:"both",animationName:Qa},"&.fadeOutTopRight":{animationFillMode:"both",animationName:Pa},"&.fadeOutBottomLeft":{animationFillMode:"both",animationName:en}}),nn=new i.Keyframe("flipInX",{from:{opacity:0,animationTimingFunction:"ease-in",transform:"perspective(400px) rotate3d(1, 0, 0, 90deg)"},"40%":{animationTimingFunction:"ease-in",transform:"perspective(400px) rotate3d(1, 0, 0, -20deg)"},"60%":{opacity:1,transform:"perspective(400px) rotate3d(1, 0, 0, 10deg)"},"80%":{transform:"perspective(400px) rotate3d(1, 0, 0, -5deg)"},to:{transform:"perspective(400px)"}}),on=new i.Keyframe("flipInY",{from:{opacity:0,animationTimingFunction:"ease-in",transform:"perspective(400px) rotate3d(0, 1, 0, 90deg)"},"40%":{animationTimingFunction:"ease-in",transform:"perspective(400px) rotate3d(0, 1, 0, -20deg)"},"60%":{opacity:1,transform:"perspective(400px) rotate3d(0, 1, 0, 10deg)"},"80%":{transform:"perspective(400px) rotate3d(0, 1, 0, -5deg)"},to:{transform:"perspective(400px)"}}),ln=new i.Keyframe("flipOutX",{from:{transform:"perspective(400px)"},"40%":{opacity:1,transform:"perspective(400px) rotate3d(1, 0, 0, -20deg)"},to:{opacity:0,transform:"perspective(400px) rotate3d(1, 0, 0, 90deg)"}}),rn=new i.Keyframe("flipOutY",{from:{transform:"perspective(400px)"},"40%":{opacity:1,transform:"perspective(400px) rotate3d(0, 1, 0, -15deg)"},to:{opacity:0,transform:"perspective(400px) rotate3d(0, 1, 0, 90deg)"}}),dn=()=>({"&.flipInX":{animationFillMode:"both",backfaceVisibility:"visible !important",animationName:nn},"&.flipInY":{animationFillMode:"both",backfaceVisibility:"visible !important",animationName:on}}),cn=()=>({"&.flipOutX":{animationFillMode:"both",backfaceVisibility:"visible !important",animationDuration:`${.3*.75}s !important`,animationName:ln},"&.flipOutY":{animationFillMode:"both",backfaceVisibility:"visible !important",animationDuration:`${.3*.75}s !important`,animationName:rn}}),sn=new i.Keyframe("lightSpeedInLeft",{from:{opacity:0,transform:"translate3d(-100%, 0, 0) skewX(30deg)"},"60%":{opacity:1,transform:"skewX(-20deg)"},"80%":{transform:"skewX(5deg)"},to:{transform:"translate3d(0, 0, 0)"}}),un=new i.Keyframe("lightSpeedInRight",{from:{opacity:0,transform:"translate3d(100%, 0, 0) skewX(-30deg)"},"60%":{opacity:1,transform:"skewX(20deg)"},"80%":{transform:"skewX(-5deg)"},to:{transform:"translate3d(0, 0, 0)"}}),mn=new i.Keyframe("lightSpeedOutLeft",{from:{opacity:1},to:{opacity:0,transform:"translate3d(-100%, 0, 0) skewX(-30deg)"}}),fn=new i.Keyframe("lightSpeedOutRight",{from:{opacity:1},to:{opacity:0,transform:"translate3d(100%, 0, 0) skewX(30deg)"}}),hn=()=>({"&.lightSpeedInLeft":{animationFillMode:"both",animationTimingFunction:"ease-out",animationName:sn},"&.lightSpeedInRight":{animationFillMode:"both",animationTimingFunction:"ease-out",animationName:un}}),gn=()=>({"&.lightSpeedOutLeft":{animationFillMode:"both",animationTimingFunction:"ease-in",animationName:mn},"&.lightSpeedOutRight":{animationFillMode:"both",animationTimingFunction:"ease-in",animationName:fn}}),yn=new i.Keyframe("rotateIn",{from:{opacity:0,transform:"rotate3d(0, 0, 1, -200deg)"},to:{opacity:1,transform:"translate3d(0, 0, 0)"}}),bn=new i.Keyframe("rotateInDownLeft",{from:{opacity:0,transform:"rotate3d(0, 0, 1, -45deg)"},to:{opacity:1,transform:"translate3d(0, 0, 0)"}}),pn=new i.Keyframe("rotateInDownRight",{from:{opacity:0,transform:"rotate3d(0, 0, 1, 45deg)"},to:{opacity:1,transform:"translate3d(0, 0, 0)"}}),xn=new i.Keyframe("rotateInUpLeft",{from:{opacity:0,transform:"rotate3d(0, 0, 1, 45deg)"},to:{opacity:1,transform:"translate3d(0, 0, 0)"}}),Cn=new i.Keyframe("rotateInUpRight",{from:{opacity:0,transform:"rotate3d(0, 0, 1, -90deg)"},to:{opacity:1,transform:"translate3d(0, 0, 0)"}}),Sn=new i.Keyframe("rotateOut",{from:{opacity:1},to:{opacity:0,transform:"rotate3d(0, 0, 1, 200deg)"}}),wn=new i.Keyframe("rotateOutDownLeft",{from:{opacity:1},to:{opacity:0,transform:"rotate3d(0, 0, 1, 45deg)"}}),Nn=new i.Keyframe("rotateOutDownRight",{from:{opacity:1},to:{opacity:0,transform:"rotate3d(0, 0, 1, -45deg)"}}),In=new i.Keyframe("rotateOutUpLeft",{from:{opacity:1},to:{opacity:0,transform:"rotate3d(0, 0, 1, -45deg)"}}),Mn=new i.Keyframe("rotateOutUpRight",{from:{opacity:1},to:{opacity:0,transform:"rotate3d(0, 0, 1, 90deg)"}}),kn=()=>({"&.rotateIn":{animationFillMode:"both",transformOrigin:"center",animationName:yn},"&.rotateInDownLeft":{animationFillMode:"both",transformOrigin:"left bottom",animationName:bn},"&.rotateInDownRight":{animationFillMode:"both",transformOrigin:"right bottom",animationName:pn},"&.rotateInUpLeft":{animationFillMode:"both",transformOrigin:"left bottom",animationName:xn},"&.rotateInUpRight":{animationFillMode:"both",transformOrigin:"right bottom",animationName:Cn}}),On=()=>({"&.rotateOut":{animationFillMode:"both",transformOrigin:"center",animationName:Sn},"&.rotateOutDownLeft":{animationFillMode:"both",transformOrigin:"left bottom",animationName:wn},"&.rotateOutDownRight":{animationFillMode:"both",transformOrigin:"right bottom",animationName:Nn},"&.rotateOutUpLeft":{animationFillMode:"both",transformOrigin:"left bottom",animationName:In},"&.rotateOutUpRight":{animationFillMode:"both",transformOrigin:"right bottom",animationName:Mn}}),Rn=new i.Keyframe("rollIn",{from:{opacity:0,transform:"translate3d(-100%, 0, 0) rotate3d(0, 0, 1, -120deg)"},to:{opacity:1,transform:"translate3d(0, 0, 0)"}}),Bn=new i.Keyframe("rollOut",{from:{opacity:1},to:{opacity:0,transform:"translate3d(100%, 0, 0) rotate3d(0, 0, 1, 120deg)"}}),Vn=()=>({"&.rollIn":{animationFillMode:"both",animationName:Rn}}),Fn=()=>({"&.rollOut":{animationFillMode:"both",animationName:Bn}}),Tn=new i.Keyframe("zoomIn",{from:{opacity:0,transform:"scale3d(0.3, 0.3, 0.3)"},"50%":{opacity:1}}),$n=new i.Keyframe("zoomInDown",{from:{opacity:0,transform:"scale3d(0.1, 0.1, 0.1) translate3d(0, -1000px, 0)",animationTimingFunction:"cubic-bezier(0.55, 0.055, 0.675, 0.19)"},"60%":{opacity:1,transform:"scale3d(0.475, 0.475, 0.475) translate3d(0, 60px, 0)",animationTimingFunction:"cubic-bezier(0.175, 0.885, 0.32, 1)"}}),Ln=new i.Keyframe("zoomInLeft",{from:{opacity:0,transform:"scale3d(0.1, 0.1, 0.1) translate3d(-1000px, 0, 0)",animationTimingFunction:"cubic-bezier(0.55, 0.055, 0.675, 0.19)"},"60%":{opacity:1,transform:"scale3d(0.475, 0.475, 0.475) translate3d(10px, 0, 0)",animationTimingFunction:"cubic-bezier(0.175, 0.885, 0.32, 1)"}}),Kn=new i.Keyframe("zoomInRight",{from:{opacity:0,transform:"scale3d(0.1, 0.1, 0.1) translate3d(1000px, 0, 0)",animationTimingFunction:"cubic-bezier(0.55, 0.055, 0.675, 0.19)"},"60%":{opacity:1,transform:"scale3d(0.475, 0.475, 0.475) translate3d(-10px, 0, 0)",animationTimingFunction:"cubic-bezier(0.175, 0.885, 0.32, 1)"}}),zn=new i.Keyframe("zoomInUp",{from:{opacity:0,transform:"scale3d(0.1, 0.1, 0.1) translate3d(0, 1000px, 0)",animationTimingFunction:"cubic-bezier(0.55, 0.055, 0.675, 0.19)"},"60%":{opacity:1,transform:"scale3d(0.475, 0.475, 0.475) translate3d(0, -60px, 0)",animationTimingFunction:"cubic-bezier(0.175, 0.885, 0.32, 1)"}}),Dn=new i.Keyframe("zoomOut",{from:{opacity:1},"50%":{opacity:0,transform:"scale3d(0.3, 0.3, 0.3)"},to:{opacity:0}}),Hn=new i.Keyframe("zoomOutDown",{"40%":{opacity:1,transform:"scale3d(0.475, 0.475, 0.475) translate3d(0, -60px, 0)",animationTimingFunction:"cubic-bezier(0.55, 0.055, 0.675, 0.19)"},to:{opacity:0,transform:"scale3d(0.1, 0.1, 0.1) translate3d(0, 2000px, 0)",animationTimingFunction:"cubic-bezier(0.175, 0.885, 0.32, 1)"}}),jn=new i.Keyframe("zoomOutLeft",{"40%":{opacity:1,transform:"scale3d(0.475, 0.475, 0.475) translate3d(42px, 0, 0)"},to:{opacity:0,transform:"scale(0.1) translate3d(-2000px, 0, 0)"}}),Wn=new i.Keyframe("zoomOutRight",{"40%":{opacity:1,transform:"scale3d(0.475, 0.475, 0.475) translate3d(-42px, 0, 0)"},to:{opacity:0,transform:"scale(0.1) translate3d(2000px, 0, 0)"}}),An=new i.Keyframe("zoomOutUp",{"40%":{opacity:1,transform:"scale3d(0.475, 0.475, 0.475) translate3d(0, 60px, 0)",animationTimingFunction:"cubic-bezier(0.55, 0.055, 0.675, 0.19)"},to:{opacity:0,transform:"scale3d(0.1, 0.1, 0.1) translate3d(0, -2000px, 0)",animationTimingFunction:"cubic-bezier(0.175, 0.885, 0.32, 1)"}}),vn=()=>({"&.zoomIn":{animationFillMode:"both",animationName:Tn},"&.zoomInDown":{animationFillMode:"both",animationName:$n},"&.zoomInLeft":{animationFillMode:"both",animationName:Ln},"&.zoomInRight":{animationFillMode:"both",animationName:Kn},"&.zoomInUp":{animationFillMode:"both",animationName:zn}}),Un=()=>({"&.zoomOut":{animationFillMode:"both",animationName:Dn},"&.zoomOutDown":{animationFillMode:"both",transformOrigin:"center bottom",animationName:Hn},"&.zoomOutLeft":{animationFillMode:"both",transformOrigin:"left center",animationName:jn},"&.zoomOutRight":{animationFillMode:"both",transformOrigin:"right center",animationName:Wn},"&.zoomOutUp":{animationFillMode:"both",transformOrigin:"center bottom",animationName:An}}),Xn=new i.Keyframe("slideInDown",{from:{transform:"translate3d(0, -100%, 0)",visibility:"visible"},to:{transform:"translate3d(0, 0, 0)"}}),En=new i.Keyframe("slideInLeft",{from:{transform:"translate3d(-100%, 0, 0)",visibility:"visible"},to:{transform:"translate3d(0, 0, 0)"}}),Yn=new i.Keyframe("slideInRight",{from:{transform:"translate3d(100%, 0, 0)",visibility:"visible"},to:{transform:"translate3d(0, 0, 0)"}}),_n=new i.Keyframe("slideInUp",{from:{transform:"translate3d(0, 100%, 0)",visibility:"visible"},to:{transform:"translate3d(0, 0, 0)"}}),Gn=new i.Keyframe("slideOutDown",{from:{transform:"translate3d(0, 0, 0)"},to:{transform:"translate3d(0, 100%, 0)",visibility:"hidden"}}),qn=new i.Keyframe("slideOutLeft",{from:{transform:"translate3d(0, 0, 0)"},to:{transform:"translate3d(-100%, 0, 0)",visibility:"hidden"}}),Zn=new i.Keyframe("slideOutRight",{from:{transform:"translate3d(0, 0, 0)"},to:{transform:"translate3d(100%, 0, 0)",visibility:"hidden"}}),Jn=new i.Keyframe("slideOutUp",{from:{transform:"translate3d(0, 0, 0)"},to:{transform:"translate3d(0, -100%, 0)",visibility:"hidden"}}),Qn=()=>({"&.slideInDown":{animationFillMode:"both",animationName:Xn},"&.slideInLeft":{animationFillMode:"both",animationName:En},"&.slideInRight":{animationFillMode:"both",animationName:Yn},"&.slideInUp":{animationFillMode:"both",animationName:_n}}),Pn=()=>({"&.slideOutDown":{animationFillMode:"both",animationName:Gn},"&.slideOutLeft":{animationFillMode:"both",animationName:qn},"&.slideOutRight":{animationFillMode:"both",animationName:Zn},"&.slideOutUp":{animationFillMode:"both",animationName:Jn}}),eo=e=>({[e.componentCls]:{"&-enter":{background:"transparent",animationDuration:".3s !important",...ga(),...Oa(),...tn(),...dn(),...hn(),...kn(),...Vn(),...vn(),...Qn()},"&-leave":{display:"none",background:"transparent",animationDuration:".3s !important",...ya(),...Ra(),...an(),...cn(),...gn(),...On(),...Fn(),...Un(),...Pn()}}});function to(e){return i.useStyle("LayoutPageTranstion",a=>{const n=i.mergeToken(a);return[eo(n)]},e)}const ao=t.defineComponent({name:"PageTranstion",props:{disabled:{type:Boolean,default:!1},reverse:{type:Boolean,default:!0},name:{type:String,default:"bounce"},direction:String},setup(e,{slots:a}){const n=K.getPrefixCls({suffixCls:"page-transtion",isPor:!0}),{wrapSSR:l,hashId:o}=to(n),c=t.computed(()=>[m(!1),`${n}-enter`,o.value].join(" ")),f=t.computed(()=>[m(!0),`${n}-leave`,o.value].join(" ")),m=b=>{const O=ge.preset.find(r=>e.name==r.name);if(O==null)return"";let g="";e.direction==null?g=O.directions[0]:g=O.directions.find(r=>r==e.direction)||"",g=g==null||g==="default"?"":g,g!=""&&(g=b&&e.reverse?w(g,O.directions):g,g=g[0].toUpperCase()+g.substring(1));const $=b?"Out":"In";return O.name+$+g},w=(b,O)=>{if(b.length==0||b=="x"||b=="y")return b;let g=O.indexOf(b);return g=g%2==1?g-1:g+1,O[g]};return()=>{var b;return e.disabled?(b=a.default)==null?void 0:b.call(a):l(t.createVNode(t.Transition,{enterActiveClass:c.value,leaveActiveClass:f.value},{default:()=>{var O;return[(O=a.default)==null?void 0:O.call(a)]}}))}}});V.BaseMenu=be,V.DefaultHeader=Ge,V.GProLayout=_t,V.GlobalFooter=se,V.PageContainer=Bt,V.PageLoading=Ie,V.PageTranstion=ao,V.SettingDrawer=ia,V.SiderMenuWrapper=de,V.WrapContent=ue,V.baseMenuProps=oe,V.clearMenuItem=Oe,V.createContext=Te,V.createRouteContext=Le,V.flatMap=Re,V.getMatchedList=ht,V.getMenuData=Gt,V.getMenuFirstChildren=Be,V.getMenuFirstLastChildPath=Ve,V.handleThemeConfig=Fe,V.hanlePathKey=v,V.provideProLayoutContext=Ke,V.useContext=$e,V.useProLayoutContext=Q,Object.defineProperty(V,Symbol.toStringTag,{value:"Module"})});
|
|
1
|
+
(function(V,t){typeof exports=="object"&&typeof module<"u"?t(exports,require("vue"),require("ant-design-vue"),require("@gx-design-vue/pro-app"),require("vue-router"),require("@ant-design/icons-vue"),require("@gx-design-vue/pro-provider"),require("vue-types"),require("lodash-es"),require("@gx-design-vue/pro-watermark"),require("@gx-design-vue/pro-utils"),require("@gx-design-vue/pro-hooks"),require("@vueuse/core"),require("@gx-design-vue/scrollbar"),require("@gx-design-vue/color-picker")):typeof define=="function"&&define.amd?define(["exports","vue","ant-design-vue","@gx-design-vue/pro-app","vue-router","@ant-design/icons-vue","@gx-design-vue/pro-provider","vue-types","lodash-es","@gx-design-vue/pro-watermark","@gx-design-vue/pro-utils","@gx-design-vue/pro-hooks","@vueuse/core","@gx-design-vue/scrollbar","@gx-design-vue/color-picker"],t):(V=typeof globalThis<"u"?globalThis:V||self,t(V.ProLayout={},V.vue,V.antDesignVue,V.proApp,V.vueRouter,V.iconsVue,V.ProConfigProvider,V.vueTypes,V.lodashEs,V.proWatermark,V.proUtils,V.proHooks,V.core,V.GScrollbars,V.colorPicker))})(this,function(V,t,p,he,ie,Z,i,lt,J,it,K,ne,we,rt,Ne){"use strict";const Ie=t.defineComponent({name:"PageLoading",props:{...p.Spin.props},setup(e){const{indicator:a}=he.useProAppContext();return t.createVNode("div",{style:{paddingTop:"100px",textAlign:"center"}},[t.createVNode(p.Spin,t.mergeProps(e,{indicator:a==null?void 0:a.value}),null)])}}),D=lt.createTypes({func:void 0,bool:void 0,string:void 0,number:void 0,array:void 0,object:void 0,integer:void 0});D.extend([{name:"looseBool",getter:!0,type:Boolean,default:void 0},{name:"style",getter:!0,type:[String,Object],default:void 0},{name:"VueNode",getter:!0,type:null}]);const te={theme:{type:String,default:i.themeConfig.theme},layout:{type:String,default:i.themeConfig.layout},wideWidth:{type:Number,default:i.themeConfig.wideWidth},splitMenus:{type:Boolean,default:i.themeConfig.splitMenus},fixedMultiTab:{type:Boolean,default:i.themeConfig.fixedMultiTab},showProgressBar:{type:Boolean,default:i.themeConfig.showProgressBar},fixedHeader:{type:Boolean,default:i.themeConfig.fixedHeader},fixSiderbar:{type:Boolean,default:i.themeConfig.fixSiderbar},showTabsBar:{type:Boolean,default:i.themeConfig.showTabsBar},showFullScreen:{type:Boolean,default:i.themeConfig.showFullScreen},autoHideHeader:{type:Boolean,default:i.themeConfig.autoHideHeader},headerHeight:{type:Number,default:i.themeConfig.headerHeight},title:{type:String,default:i.themeConfig.title},iconfontUrl:{type:String,default:i.themeConfig.iconfontUrl},animate:{type:Object,default:i.themeConfig.animate},primaryColor:{type:String,default:i.themeConfig.primaryColor}},ae={renderKey:D.string.def("menuHeaderRender"),title:te.title,layout:te.layout,logo:{type:[Object,String,Function],default:()=>{}},logoStyle:{type:Object,default:()=>{}},logoDirection:{type:String,default:"horizontal"},drawer:D.looseBool,collapsed:D.looseBool,menuHeaderRender:{type:[Object,Function],default:()=>{}},onMenuHeaderClick:Function},oe={...te,mode:{type:String,default:"inline"},menuData:{type:Array,default:()=>[]},theme:{type:String,default:"dark"},layout:{type:String,default:"mix"},collapsed:{type:Boolean,default:()=>!1},openKeys:{type:[Array,Boolean],default:()=>[]},selectedKeys:{type:Array,default:()=>[]},menuProps:{type:Object,default:()=>null},menuItemRender:{type:[Function,Boolean],default:()=>{}},subMenuItemRender:{type:[Function,Boolean],default:()=>{}},onClick:[Function,Object],onOpenKeys:{type:Function},onSelect:{type:Function}},_={...te,...oe,menuLoading:D.looseBool,logo:ae.logo,logoStyle:ae.logoStyle,logoDirection:ae.logoDirection,siderWidth:D.number.def(208),headerHeight:D.number.def(48),collapsedWidth:D.number.def(48),links:{type:[Function,Object,Array],default:()=>{}},menuHeaderRender:{type:[Function,Object],default:()=>{}},menuFooterRender:{type:[Function,Object,Boolean],default:()=>!1},menuContentRender:{type:[Function,Object,Boolean],default:()=>!1},menuExtraRender:{type:[Function,Object,Boolean],default:()=>!1},collapsedButtonRender:{type:[Function,Object,Boolean],default:()=>{}},breakpoint:{type:[Object,Boolean],default:()=>!1},isMobile:D.looseBool,matchMenuKeys:{type:Array,default:()=>[]},onMenuHeaderClick:D.func,onMenuClick:D.func,onCollapse:{type:Function}},dt=/(((^https?:(?:\/\/)?)(?:[-;:&=\+\$,\w]+@)?[A-Za-z0-9.-]+(?::\d+)?|(?:www.|[-;:&=\+\$,\w]+@)[A-Za-z0-9.-]+)((?:\/[\+~%\/.\w-_]*)?\??(?:[-\+=&;%@.\w_]*)#?(?:[\w]*))?)$/,Me=e=>dt.test(e);function ct(e){return/\w.(png|jpg|jpeg|svg|webp|gif|bmp)$/i.test(e)}function ke(e,a,n,l){var c,h,m,w,b,O,g,$,r,d,I,R,C,y,f,S,F,s,N,M,k,L,W,H,z,A,E,Y,U,q,u,x,B,T;const o={...e};return n==="light"?(o.colorItemBg=(h=(c=a.layout)==null?void 0:c[l])==null?void 0:h.colorBgMenu,o.colorSubItemBg=(w=(m=a.layout)==null?void 0:m[l])==null?void 0:w.colorSubItemBg,o.colorItemBgSelected=(O=(b=a.layout)==null?void 0:b[l])==null?void 0:O.colorBgMenuItemSelected,o.colorItemBgSelectedHorizontal=($=(g=a.layout)==null?void 0:g[l])==null?void 0:$.colorBgMenuItemSelected,o.colorItemText=(d=(r=a.layout)==null?void 0:r[l])==null?void 0:d.colorTextMenu,o.colorItemTextHover=(R=(I=a.layout)==null?void 0:I[l])==null?void 0:R.colorTextMenuHover,o.colorItemTextSelected=(y=(C=a.layout)==null?void 0:C[l])==null?void 0:y.colorTextMenuSelected,o.colorItemTextSelectedHorizontal=(S=(f=a.layout)==null?void 0:f[l])==null?void 0:S.colorTextMenuSelected,l==="sider"&&(o.colorItemBgHover=(s=(F=a.layout)==null?void 0:F[l])==null?void 0:s.colorBgMenuItemHover)):n==="dark"&&(o.colorItemBg=(M=(N=a.layout)==null?void 0:N[l])==null?void 0:M.colorDarkBgMenu,o.colorSubItemBg=(L=(k=a.layout)==null?void 0:k[l])==null?void 0:L.colorDarkSubItemBg,o.colorItemBgSelected=(H=(W=a.layout)==null?void 0:W[l])==null?void 0:H.colorDarkBgMenuItemSelected,o.colorItemBgSelectedHorizontal=(A=(z=a.layout)==null?void 0:z[l])==null?void 0:A.colorDarkBgMenuItemSelected,o.colorItemText=(Y=(E=a.layout)==null?void 0:E[l])==null?void 0:Y.colorDarkTextMenu,o.colorItemTextHover=(q=(U=a.layout)==null?void 0:U[l])==null?void 0:q.colorDarkTextMenuHover,o.colorItemTextSelected=(x=(u=a.layout)==null?void 0:u[l])==null?void 0:x.colorDarkTextMenuSelected,o.colorItemTextSelectedHorizontal=(T=(B=a.layout)==null?void 0:B[l])==null?void 0:T.colorDarkTextMenuSelected,l==="header"&&(o.colorActiveBarHeight=0)),o}const st=["left","right"],le=["left","right","down","up"],ut=["downBig","upBig","leftBig","rightBig"],mt=["topLeft","bottomRight","topRight","bottomLeft"],ft=["downLeft","upRight","downRight","upLeft"],ge={preset:[{name:"back",alias:"渐近",directions:le},{name:"bounce",alias:"弹跳",directions:le.concat("default")},{name:"fade",alias:"淡化",directions:le.concat(ut).concat(mt).concat("default")},{name:"flip",alias:"翻转",directions:["x","y"]},{name:"lightSpeed",alias:"光速",directions:st},{name:"rotate",alias:"旋转",directions:ft.concat("default")},{name:"roll",alias:"翻滚",directions:["default"]},{name:"zoom",alias:"缩放",directions:le.concat("default")},{name:"slide",alias:"滑动",directions:le}]};function Oe(e){return e.map(a=>{var l;const n={...a};if((l=n.meta)!=null&&l.hideInMenu)return null;if(n&&(n!=null&&n.children)){if(n.children.some(o=>{var c;return o&&!((c=o.meta)!=null&&c.hideInMenu)}))return{...n,children:Oe(n.children)};delete n.children}return n}).filter(a=>a)}function Re(e){return e.map(a=>{var l;const n={...a};return(l=n.meta)!=null&&l.hideInMenu?null:(n.linkPath=Ve(n.children||[]),n.children&&delete n.children,n)}).filter(a=>a)}function Be(e,a){const n=(a||"").split("/").length===2?a||"":`/${(a||"").split("/")[1]}`,l=e.find(o=>o.path===n);return a===void 0?[]:(l==null?void 0:l.children)||[]}function Ve(e){let a="";const n=function(o){let c="";return o.children&&o.children.length>0?c=n(o.children[0]):c=o.path,c},l=e==null?void 0:e.filter(o=>!o.hidden);if(l.length>0&&l[0].children&&l[0].children.length>0)a=n(l[0].children[0]);else{const o=l.length>0?l[0]:void 0;a=(o==null?void 0:o.path)||""}return a}function ht(e,a){var l,o;const n=((o=(l=e.find(c=>c.path===a))==null?void 0:l.meta)==null?void 0:o.key)||"";if(n){const c=[],h=n.split("-");for(let m=0;m<h.length;m+=1)c.push(J.cloneDeep(h).splice(0,m+1).join("-"));return e.filter(m=>c.some(w=>{var b;return w===((b=m==null?void 0:m.meta)==null?void 0:b.key)||""}))}return[]}function Fe(e){return e.layout==="mix"&&(e.fixSiderbar=!0,e.fixedHeader=!0,e.splitMenus=!0),e.layout==="top"&&(e.fixSiderbar=!1,e.fixedHeader=!0,e.splitMenus=!1),e.layout==="simple"&&(e.splitMenus=!1,e.showTabsBar=!1),e.layout==="side"&&(e.splitMenus=!1),e.layout==="wide"&&(e.splitMenus=!1,e.fixSiderbar=!1,e.fixedHeader=!0,e.showTabsBar=!1,e.fixedMultiTab=!1),{...e}}function gt(e){const a=["showTabsBar","fixedMultiTab","fixSiderbar","fixedHeader","splitMenus"];let l=Object.keys(e).reduce((o,c)=>(o[c]=!1,o),{});return l=yt(l,a),e.layout==="mix"&&(l.fixSiderbar=!0,l.fixedHeader=!0),e.layout==="side"&&(l.splitMenus=!0),e.layout==="simple"&&(l.splitMenus=!0,l.fixedHeader=!0,l.showTabsBar=!0,l.fixedMultiTab=!0),e.layout==="wide"&&(l.splitMenus=!0,l.fixedHeader=!0,l.fixSiderbar=!0,l.showTabsBar=!0,l.fixedMultiTab=!0),l}function yt(e,a){return{...a.reduce((n,l)=>({...n,[l]:e[l]}),{})}}const Te=(e=Symbol(),a="Context.Provider")=>t.defineComponent({name:a,props:{value:{type:Object,required:!0}},setup(l,{slots:o}){return t.provide(e,t.readonly(l.value)),()=>{var c;return(c=o.default)==null?void 0:c.call(o)}}}),$e=(e=Symbol(),a)=>t.inject(e,a||{}),ye=Symbol("pro-layout-context"),Le=()=>Te(ye,"ProLayoutContext.Provider"),Ke=e=>{t.provide(ye,e)},Q=()=>$e(ye);Le();function De(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!t.isVNode(e)}const re=e=>{const{icon:a,iconType:n,iconfontUrl:l}=e;if(!a)return null;if(typeof a=="string"&&a!==""){if(Me(a)||ct(a))return t.createVNode("img",{src:a,alt:"icon",class:`${e.className}-icon-image`},null);if(n===1){const c=Z.createFromIconfontCN({scriptUrl:l||i.themeConfig.iconfontUrl});return l?t.createVNode(c,{type:a},null):t.createVNode("i",{class:`iconfont ${a} ${e.className}-icon`},null)}}if(t.isVNode(a))return a;const o=t.resolveComponent(a);return typeof re=="function"&&t.createVNode(o,null,null)||null};re.props={icon:{type:[String,Function,Object]},iconType:Number,className:String,iconfontUrl:String};const be=t.defineComponent({name:"BaseMenu",props:oe,setup(e){const a=ie.useRouter(),{getPrefixCls:n}=Q(),l=n({suffixCls:"menu-item",isPor:!0}),o=r=>{var d;(d=e.onOpenKeys)==null||d.call(e,r)},c=r=>{var d;(d=e.onSelect)==null||d.call(e,r.selectedKeys)},h=r=>{var d;(d=e.onClick)==null||d.call(e,...r)},m=(r,d)=>{var C;const I=r.target||"",R=Me(I);((C=a.currentRoute.value)==null?void 0:C.fullPath)!==d.to&&R&&I&&r.targetStatus===1&&window.open(I)},w=t.resolveComponent("router-link"),b=(r=[])=>r.map(d=>O(d)).filter(d=>d),O=r=>{var R,C,y,f,S,F,s,N,M;if(Array.isArray(r.children)&&r.children.length>0&&!((R=r==null?void 0:r.meta)!=null&&R.hideInMenu)&&!((C=r==null?void 0:r.meta)!=null&&C.hideChildrenInMenu)){let k;if(e.subMenuItemRender)return e.subMenuItemRender({item:r,children:b(r.children)});const L=(y=r.meta)==null?void 0:y.title,W=(f=r.meta)!=null&&f.icon?t.createVNode("span",{class:"gx-pro-sider-menu-item"},[t.createVNode("span",{class:"gx-pro-sider-menu-item-title"},[L])]):t.createVNode("span",{class:"gx-pro-sider-menu-item"},[L]),H=((S=r.meta)==null?void 0:S.type)==="group",z=H?p.Menu.ItemGroup:p.Menu.SubMenu;return t.createVNode(z,{title:W,key:r.path,icon:H?null:t.createVNode(re,{className:l,icon:(F=r.meta)==null?void 0:F.icon,iconfontUrl:e.iconfontUrl,iconType:(s=r.meta)==null?void 0:s.iconType},null)},De(k=b(r.children))?k:{default:()=>[k]})}const[d,I]=g(r);return e.menuItemRender&&e.menuItemRender({item:r,title:d,icon:I})||t.createVNode(p.Menu.Item,{disabled:(N=r.meta)==null?void 0:N.disabled,danger:(M=r.meta)==null?void 0:M.danger,key:r.path,icon:I},De(d)?d:{default:()=>[d]})},g=r=>{var S,F,s,N,M;const d={...r.meta},I=d.targetStatus===1&&d.target?"a":w,R={to:r.linkPath||r.path||""},C=(S=r.meta)==null?void 0:S.title,y=(F=r.meta)!=null&&F.icon?t.createVNode(I,t.mergeProps(R,{class:"gx-pro-sider-menu-item",onClick:()=>m(d,R)}),{default:()=>[t.createVNode("span",{class:"gx-pro-sider-menu-item-title"},[C])]}):t.createVNode(I,t.mergeProps(R,{class:"gx-pro-sider-menu-item",onClick:()=>m(d,R)}),{default:()=>[t.createVNode("span",null,[C])]}),f=((s=r.meta)==null?void 0:s.icon)&&t.createVNode(re,{className:l,icon:(N=r.meta)==null?void 0:N.icon,iconfontUrl:e.iconfontUrl,iconType:(M=r.meta)==null?void 0:M.iconType},null)||void 0;return[y,f]},$=t.computed(()=>b(e.menuData));return()=>t.createVNode(p.Menu,t.mergeProps({key:"Menu",inlineIndent:16,mode:e.mode,theme:e.theme,openKeys:e.openKeys===!1?[]:e.openKeys,selectedKeys:e.selectedKeys||[],onOpenChange:o,onSelect:c,onClick:h},e.menuProps),{default:()=>[$.value]})}}),ze=new i.Keyframe("pro-layout-title-hide",{"0%":{display:"none",opacity:0},"99%":{display:"none",opacity:0},"100%":{display:"block",opacity:1}}),bt=e=>{const a=`${e.antCls}-menu`;return{[`${e.proComponentsCls}-basic-layout`]:{[`${a}${a}-root`]:{[`${a}-item a`]:{transition:"none"}}}}},pt=e=>{var a,n,l,o,c,h,m,w,b,O,g,$;return{[`${e.proComponentsCls}-basic-layout`]:{[`&${e.proComponentsCls}-basic-layout-wide`]:{[e.componentCls]:{position:"sticky",zIndex:100,borderRadius:e.borderRadiusSM}},[e.componentCls]:{position:"relative",borderRight:0,background:(n=(a=e.layout)==null?void 0:a.sider)==null?void 0:n.colorDarkBgMenu,zIndex:9,"&-menu":{position:"relative",zIndex:10,minHeight:"100%","&-icon":{verticalAlign:"unset"}},[`& ${e.antCls}-layout-sider-children`]:{position:"relative",display:"flex",flexDirection:"column",height:"100%"},"&-light":{background:(o=(l=e.layout)==null?void 0:l.sider)==null?void 0:o.colorBgMenu,boxShadow:"2px 0 8px 0 rgba(29,35,41,.05)",[`${e.componentCls}-footer`]:{color:(h=(c=e.layout)==null?void 0:c.sider)==null?void 0:h.colorTextMenu}},"&-links":{width:"100%",borderTop:"1px solid rgba(0,0,0,.06)",ul:{height:"auto"}},"&-link-menu":{border:"none",boxShadow:"none",background:"transparent"},"&-footer":{color:(w=(m=e.layout)==null?void 0:m.sider)==null?void 0:w.colorDarkTextMenu,paddingBlockEnd:16,fontSize:e.fontSize,animationName:ze,animationDuration:".4s",animationTimingFunction:"ease"}},[`${e.componentCls}${e.componentCls}-fixed`]:{position:"fixed",insetBlockStart:0,insetInlineStart:0,zIndex:"100",height:"100%","&-mix":{height:`calc(100% - ${((O=(b=e.layout)==null?void 0:b.header)==null?void 0:O.heightLayoutHeader)||i.themeConfig.headerHeight}px)`,insetBlockStart:`${(($=(g=e.layout)==null?void 0:g.header)==null?void 0:$.heightLayoutHeader)||i.themeConfig.headerHeight}px`}}}}},xt=e=>({[`${e.proComponentsCls}-basic-layout`]:{[`${e.antCls}-menu`]:{[`${e.proComponentsCls}-menu-item-icon${e.antCls}-menu-item-icon`]:{verticalAlign:"unset",lineHeight:1}}}}),Ct=e=>({[`${e.proComponentsCls}-sider`]:{"&-light":{[`${e.proComponentsCls}-sider-logo`]:{h1:{color:e.colorPrimary}}},"&-logo":{position:"relative",display:"flex",alignItems:"center",justifyContent:"space-between",padding:"16px 8px",cursor:"pointer",transition:"padding .3s cubic-bezier(.645,.045,.355,1)","> a":{display:"flex",alignItems:"center",justifyContent:"center",maxHeight:32,"> img":{display:"inline-block",height:32,verticalAlign:"middle"},"> h1":{display:"inline-block",lineHeight:"32px",marginBlock:0,marginInlineEnd:0,marginInlineStart:12,color:e.colorWhite,animationName:ze,animationDuration:".2s",fontWeight:600,fontSize:18,overflow:"hidden",verticalAlign:"middle"}},"&-collapsed":{flexDirection:"column-reverse",margin:0,padding:12,[`${e.proComponentsCls}-layout-apps-icon`]:{marginBlockEnd:8,fontSize:16,transition:"font-size 0.2s ease-in-out,color 0.2s ease-in-out"}}},[`&${e.antCls}-layout-sider-collapsed`]:{[`${e.proComponentsCls}-sider-logo`]:{padding:"16px 8px"}}}}),He=(e,a)=>e?typeof e=="string"?t.createVNode("img",{src:e,alt:"logo",style:a},null):typeof e=="function"?e():e:null,St=(e,a="menuHeaderRender")=>{const{logo:n,logoStyle:l,title:o,layout:c}=e,h=e[a||""];if(h===!1)return null;const m=He(n,l),w=o&&t.createVNode("h1",null,[o]);return typeof h=="function"?h(m,e.collapsed?null:w,e):t.createVNode(t.Fragment,null,[m||null,e.collapsed&&c==="side"?null:w])},pe=t.defineComponent({name:"LogoContent",props:ae,setup(e){const{getPrefixCls:a}=Q(),n=t.computed(()=>e.layout==="side"||e.layout==="simple"),l=t.computed(()=>a({suffixCls:n.value||e.drawer?"sider":"global-header",isPor:!0})),{wrapSSR:o,hashId:c}=i.useProStyle("ProLayoutLogo",[Ct]),h=t.computed(()=>St(e,e.renderKey));return()=>o(t.createVNode("div",{id:"logo",class:{[`${c.value}`]:!0,[`${l.value}-logo`]:!0,[`${l.value}-logo-collapsed`]:!!e.collapsed},onClick:()=>{var m;return(m=e.onMenuHeaderClick)==null?void 0:m.call(e)}},[t.createVNode("a",null,[h.value||null])]))}});pe.inheritAttrs=!1;function wt(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!t.isVNode(e)}const{Sider:Nt}=p.Layout,{Item:je}=p.Menu,We=e=>e?t.createVNode(Z.MenuUnfoldOutlined,null,null):t.createVNode(Z.MenuFoldOutlined,null,null),Ae=t.defineComponent({props:_,inheritAttrs:!1,setup(e){const{getPrefixCls:a,selectedKeys:n,flatMenuData:l,menuData:o,openKeys:c}=Q(),{indicator:h}=he.useProAppContext(),{token:m}=i.useProConfigContext(),{theme:w,layout:b,isMobile:O,menuLoading:g,breakpoint:$,fixSiderbar:r,collapsed:d,siderWidth:I,collapsedWidth:R,menuExtraRender:C,menuContentRender:y,menuFooterRender:f,collapsedButtonRender:S,links:F}=t.toRefs(e),s=a({suffixCls:"sider",isPor:!0}),{wrapSSR:N,hashId:M}=i.useProStyle("ProLayoutSiderMenu",[bt,pt,xt],s),k=t.computed(()=>e.layout==="wide"),L=t.computed(()=>e.layout==="mix"&&!e.isMobile&&e.splitMenus),W=t.computed(()=>b.value==="side"||b.value==="simple"),H=t.computed(()=>(e.layout==="mix"||k.value)&&"light"||w.value),z=t.computed(()=>b.value==="top"?[]:o.value),A=t.computed(()=>e.collapsed?e.collapsedWidth:e.siderWidth),E=t.computed(()=>[M.value,s,O.value?"shadow":null,`${s}-${H.value}`,r.value&&e.layout!=="wide"?`${s}-fixed`:null]),Y=t.computed(()=>{var u;return typeof F.value=="function"?(u=F.value)==null?void 0:u.call(F):F.value}),U=t.computed(()=>S.value!==!1?S.value||We:!1),q=u=>{var x;if(e.onSelect){if(t.unref(L)){e.onSelect([(x=n==null?void 0:n.value)==null?void 0:x[0],...u]);return}e.onSelect(u)}};return()=>{var T;const u=W.value?t.createVNode(pe,t.mergeProps({drawer:O.value},e),null):null,x=C.value&&((T=C.value)==null?void 0:T.call(C,e)),B=t.createVNode(be,{class:`${s}-menu ${M.value}`,theme:H.value,mode:"inline",menuData:L.value?l.value:z.value,iconfontUrl:e.iconfontUrl,openKeys:c.value,selectedKeys:n.value,menuItemRender:e.menuItemRender,subMenuItemRender:e.subMenuItemRender,onClick:e.onMenuClick,style:{width:"100%"},onOpenKeys:j=>{var G;return e.onOpenKeys&&((G=e.onOpenKeys)==null?void 0:G.call(e,j))},onSelect:q},null);return L.value&&t.unref(l.value).length===0||z.value.length===0?null:N(t.createVNode(p.ConfigProvider,{theme:{components:{Menu:ke({radiusItem:4,colorActiveBarWidth:0,colorActiveBarHeight:0,colorActiveBarBorderSize:0},(m==null?void 0:m.value)||{},H.value,"sider")}}},{default:()=>[r.value&&t.createVNode("div",{style:{width:`${A.value}px`,overflow:"hidden",flex:`0 0 ${A.value}px`,maxWidth:`${A.value}px`,minWidth:`${A.value}px`,transition:"background-color 0.2s, min-width 0.2s, max-width 0.2s"}},null),t.createVNode(Nt,{collapsible:!0,trigger:null,class:E.value,style:{overflow:"hidden",zIndex:r.value?101:void 0,paddingTop:W.value||e.isMobile||k.value?0:`${e.headerHeight}px`,top:e.layout==="wide"?`${e.headerHeight+20}px`:void 0,height:e.layout==="wide"?`calc(100vh - ${e.headerHeight+20*2}px)`:void 0},theme:H.value,breakpoint:$.value||void 0,collapsed:d.value,width:I.value,collapsedWidth:R.value},{default:()=>{var j,G;return[g.value&&t.createVNode("div",{class:["gx-pro-sider-loading",M.value]},[t.createVNode(p.Spin,{spinning:g.value,indicator:h==null?void 0:h.value},null)]),u||null,x&&!e.collapsed&&t.createVNode("div",{class:{[`${M.value}`]:!0,[`${s}-extra`]:!0,[`${s}-extra-no-logo`]:!u}},[x]),t.createVNode("div",{style:{flex:"1 1 0%",overflow:"hidden auto"}},[y.value&&((j=y.value)==null?void 0:j.call(y,e,B))||B]),e.layout!=="wide"&&t.createVNode("div",{class:`${s}-links ${M.value}`},[t.createVNode(p.Menu,{theme:H.value,inlineIndent:16,class:`${s}-link-menu ${M.value}`,selectedKeys:[],openKeys:[],mode:"inline"},{default:()=>[(Y.value||[]).map((X,ee)=>t.createVNode(je,{class:`${s}-link ${M.value}`,key:ee},wt(X)?X:{default:()=>[X]})),U.value&&!O.value&&t.createVNode(je,{class:`${s}-collapsed-button ${M.value}`,title:!1,key:"collapsed",onClick:()=>{var X;e.onCollapse&&((X=e.onCollapse)==null||X.call(e,!d.value))}},{default:()=>{var X;return[(X=U.value)==null?void 0:X.call(U,d.value)]}})]})]),f.value&&t.createVNode("div",{class:`${s}-footer ${M.value}`},[(G=f.value)==null?void 0:G.call(f,e)])]}})]}))}}}),de=t.defineComponent({name:"SiderMenuWrapper",inheritAttrs:!1,props:{..._,matchMenuKeys:{type:Array,default:()=>[]}},setup(e){return()=>t.createVNode(t.Fragment,null,[e.isMobile?t.createVNode(p.Drawer,{maskClosable:!0,open:!e.collapsed,closable:!1,placement:"left",style:{padding:0,height:"100vh"},getContainer:!1,onClose:()=>e.onCollapse&&e.onCollapse(!0),width:e.siderWidth,bodyStyle:{height:"100vh",padding:0,display:"flex",flexDirection:"row"}},{default:()=>[t.createVNode(Ae,t.mergeProps(e,{collapsed:e.isMobile?!1:e.collapsed}),null)]}):t.createVNode(Ae,e,null)])}}),ve={usePageCard:{type:Boolean,default:()=>{}},pageCardProps:Object,pageContentStyle:D.style,pageChildrenContentStyle:D.style,waterMarkProps:{type:Object},waterMark:D.bool.def(!0),pageHeaderRender:{type:[Object,Function,Boolean],default:()=>{}}},ce={pageChildrenExtraRender:{type:[Object,Function,Boolean],default:()=>{}},contentRender:{type:[Object,Function,Boolean],default:()=>{}},breadcrumbRender:{type:[Object,Function,Boolean],default:()=>{}},pageHeaderStyle:D.style,loading:D.bool.def(!1),...ve},It=e=>({[e.componentCls]:{background:e.colorBgContainer,padding:`${e.paddingLG}px`,"&-has-breadcrumb":{paddingBlock:`${e.paddingSM}px`},"&-content":{marginTop:"8px"}}}),Mt=t.defineComponent({name:"ProPageHeader",props:{content:ce.contentRender,breadcrumb:ce.breadcrumbRender},setup(e){const{breadcrumb:a,getPrefixCls:n}=Q(),l=n({isPor:!0,suffixCls:"page-header"}),{wrapSSR:o,hashId:c}=i.useProStyle("ProPageHeader",[It],l),h=t.computed(()=>{var m;return{...a.value,itemRender:((m=a.value)==null?void 0:m.itemRender)||(({route:w})=>w.path?t.createVNode(ie.RouterLink,{to:w.path},{default:()=>[w.breadcrumbName]}):w.breadcrumbName)}});return()=>{var m,w;return o(t.createVNode("div",{class:[`${l}`,c.value,`${l}-has-breadcrumb`]},[e.breadcrumb?(m=e.breadcrumb)==null?void 0:m.call(e,h.value):t.createVNode(p.Breadcrumb,h.value,null),e.content&&t.createVNode("div",{class:[`${l}-content`,c.value]},[(w=e.content)==null?void 0:w.call(e)])]))}}}),kt=e=>{var a,n,l,o,c,h,m,w;return{[`${e.proComponentsCls}-basic-layout`]:{[e.componentCls]:{marginInline:-(((n=(a=e.layout)==null?void 0:a.pageContainer)==null?void 0:n.paddingBlockPageContainerContent)??24),marginBlockStart:-(((o=(l=e.layout)==null?void 0:l.pageContainer)==null?void 0:o.paddingBlockPageContainerContent)??24)},[e.gridContent]:{width:"100%"}},[e.componentCls]:{"&-children-content":{marginInline:((h=(c=e.layout)==null?void 0:c.pageContainer)==null?void 0:h.marginInlinePageContainerContent)??24,marginBlockStart:((w=(m=e.layout)==null?void 0:m.pageContainer)==null?void 0:w.marginBlockPageContainerContent)??24,padding:"inherit"}}}};function Ot(e){return i.useStyle("ProPageContainter",a=>{const n=i.mergeToken(a,{gridContent:`${a.proComponentsCls}-grid-content`});return[kt(n)]},e)}function Rt(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!t.isVNode(e)}const Bt=t.defineComponent({inheritAttrs:!1,name:"GProPageContainer",props:ce,setup(e,{slots:a,attrs:n}){const{getPrefixCls:l,hasContentWide:o,waterMark:c,pageHeaderRender:h,pageContentStyle:m,pageChildrenContentStyle:w,pageCardProps:b,usePageCard:O,waterMarkProps:g}=Q(),{indicator:$}=he.useProAppContext(),r=i.useProConfigContext(),d=l({suffixCls:"page-container",isPor:!0}),I=l({suffixCls:"grid-content",isPor:!0}),R=t.computed(()=>e.pageCardProps||b.value),C=t.computed(()=>e.waterMarkProps||g.value||{}),y=t.computed(()=>e.pageContentStyle||m.value),f=t.computed(()=>e.pageChildrenContentStyle||w.value||{}),S=t.computed(()=>K.isBoolean(e.usePageCard)?e.usePageCard:K.isBoolean(O.value)?O.value:!0),{wrapSSR:F,hashId:s}=Ot(d),N=()=>{var L,W,H,z,A,E;const k=K.getSlot(a,e,"pageChildrenExtraRender");return t.createVNode("div",{class:`${d}-children-content ${s.value}`,style:f.value},[k&&(k==null?void 0:k()),S.value?t.createVNode(p.Card,t.mergeProps(R.value?J.pick(R.value,["loading","bodyStyle"]):{},{style:o.value?{minHeight:"853px"}:void 0,bordered:!1}),{default:()=>{var Y;return[(Y=a.default)==null?void 0:Y.call(a)]}}):k?t.createVNode("div",{style:{marginBlockStart:`${(z=(H=(W=(L=r==null?void 0:r.token)==null?void 0:L.value)==null?void 0:W.layout)==null?void 0:H.pageContainer)==null?void 0:z.marginBlockPageContainerContent}px`}},[(A=a.default)==null?void 0:A.call(a)]):(E=a.default)==null?void 0:E.call(a)])},M=()=>{let k;return t.createVNode(t.Fragment,null,[e.waterMark&&c.value?t.createVNode(it.GPorWaterMark,C.value,Rt(k=N())?k:{default:()=>[k]}):N()])};return()=>{const k=K.getSlot(a,e,"pageHeaderRender")||h.value,L=K.getSlot(a,e,"breadcrumbRender"),W=K.getSlot(a,e,"contentRender");return F(t.createVNode(p.Spin,{spinning:e.loading,indicator:$==null?void 0:$.value},{default:()=>[t.createVNode("div",{style:n.style,class:{[`${s.value}`]:!0,[`${d}`]:!0}},[!o.value&&k!==!1&&(k||t.createVNode(Mt,{style:e.pageHeaderStyle,breadcrumb:L,content:W},null)),t.createVNode("div",{class:[I,s.value]},[t.createVNode("div",{class:`${I}-children ${s.value}`,style:y.value},[M()])])])]}))}}}),xe={...te,...oe,logo:ae.logo,logoStyle:ae.logoStyle,logoDirection:ae.logoDirection,menuLoading:Boolean,autoHideHeader:Boolean,collapsed:Boolean,isMobile:Boolean,siderWidth:_.siderWidth,headerTheme:{type:String,default:"dark"},menuData:{type:Array,default:()=>[]},menuRender:{type:[Object,Function],default:()=>{}},extraRightDropdownRender:{type:[Object,Function],default:()=>{}},rightContentRender:{type:[Object,Function],default:()=>{}},collapsedButtonRender:_.collapsedButtonRender,matchMenuKeys:_.matchMenuKeys,onCollapse:_.onCollapse,onOpenKeys:_.onOpenKeys,onMenuHeaderClick:Function,onSelect:_.onSelect},Ue={...xe,headerTitleRender:{type:[Object,Function],default:()=>{}},headerRender:{type:[Object,Function],default:()=>{}},headerContentRender:{type:[Object,Function],default:()=>{}},hasSiderMenu:Boolean,collapsedWidth:_.collapsedWidth,siderWidth:_.siderWidth},Xe={loading:D.looseBool,isMobile:_.isMobile,collapsed:oe.collapsed,siderWidth:_.siderWidth,collapsedWidth:_.collapsedWidth,isFixedMultiTab:te.fixedMultiTab,onReloadPage:{type:Function},onChangeTabs:{type:Function},"onUpdate:tabs":{type:Function}},Vt=e=>({[e.componentCls]:{marginBlock:0,marginBlockStart:48,marginBlockEnd:24,marginInline:0,paddingBlock:0,paddingInline:16,textAlign:"center","&-links":{marginBottom:8,a:{color:e.colorTextSecondary,textDecoration:e.linkDecoration,"&:hover":{color:e.colorPrimary}},"a:not(:last-child)":{marginInlineEnd:40}},"&-copyright":{fontSize:"14px",color:e.colorTextSecondary,a:{color:e.colorTextSecondary,textDecoration:e.linkDecoration}}}}),Ee=[{key:"Ant Design Pro",title:"Ant Design Pro",href:"https://pro.ant.design",blankTarget:!0},{key:"gitee",title:t.createVNode(Z.GithubOutlined,null,null),href:"https://gitee.com/gx12358/vue-antd-admin",blankTarget:!0},{key:"Ant Design Vue",title:"Ant Design Vue",href:"https://next.antdv.com/components/overview-cn/",blankTarget:!0}],se=t.defineComponent({name:"GlobalFooter",props:{links:{type:[Array,Boolean],default:Ee},copyright:{type:[Object,Function,Boolean,String],default:"皖ICP备2022010510号-1"}},setup(e){const a=K.getPrefixCls({suffixCls:"global-footer",isPor:!0}),{wrapSSR:n,hashId:l}=i.useProStyle("ProLayoutFooter",[Vt],a);return()=>n(t.createVNode(p.LayoutFooter,{style:{padding:0}},{default:()=>[t.createVNode("div",{class:[a,l.value]},[e.links&&t.createVNode("div",{class:`${a}-links ${l.value}`},[e.links.map(o=>t.createVNode("a",{key:o.key,title:o.key,target:o.blankTarget?"_blank":"_self",href:o.href},[o.title]))]),e.copyright&&t.createVNode("div",{class:`${a}-copyright ${l.value}`},[t.createTextVNode("Copyright 2022 "),t.createVNode("a",{href:"https://beian.miit.gov.cn/"},[e.copyright])])])]}))}}),Ye={...te,...xe,..._,...Ue,...Xe,...ce,pure:Boolean,token:Object,waterMark:{type:Boolean,default:!0},disableMobile:{type:Boolean,required:!1},contentStyle:{type:[String,Object],default:()=>null},breadcrumb:{type:[Object,Function],default:()=>null},disableContentMargin:D.looseBool,isChildrenLayout:D.looseBool,loading:D.looseBool,footerLinks:{type:[Array,Boolean],default:Ee},copyrightRender:{type:[Object,Function,Boolean,String],default:()=>{}},footerRender:{type:[Object,Function,Boolean],default:()=>{}},menuData:{type:Array,default:()=>[]},levelMenuData:{type:Array,default:()=>[]},collapsed:D.looseBool},Ft=e=>({[e.componentCls]:{display:"flex",flexDirection:"column",width:"100%",minHeight:"100vh"}}),Tt=e=>{var a,n;return{[e.componentCls]:{a:{color:e.colorPrimary,"&:hover":{color:e.colorPrimaryHover}},[`&${e.componentCls}-wide`]:{backgroundColor:e.colorBgLayout,[`${e.componentCls}-content`]:{margin:0,marginInlineStart:20}},[`${e.componentCls}-content`]:{position:"relative",margin:(n=(a=e.layout)==null?void 0:a.pageContainer)==null?void 0:n.paddingBlockPageContainerContent},[`${e.componentCls}-container`]:{width:"100%",display:"flex",flexDirection:"column",minWidth:0,minHeight:0,backgroundColor:"transparent"}}}},$t=e=>{var a,n;return{[`${e.componentCls}`]:{"&-fixed":{width:"100%",height:62,background:"transparent"}},[`${e.componentWrapCls}`]:{background:e.colorBgContainer,[`${e.antCls}-tabs-nav`]:{paddingLeft:16,[`${e.antCls}-tabs-tab:not(${e.antCls}-tabs-tab-active)`]:{borderBottomColor:"transparent"},[`${e.componentCls}-title`]:{display:"flex",alignItems:"center",gap:8,[`${e.componentCls}-reload-btn,${e.componentCls}-close-btn`]:{color:e.colorTextSecondary,fontSize:12,margin:0,cursor:"pointer",transition:"color .3s cubic-bezier(.645,.045,.355,1)","&:hover":{color:e.colorPrimary}}},[`${e.componentCls}-dropdown-menu-btn`]:{marginInlineEnd:8,padding:12,fontSize:16,cursor:"pointer"}},"&-fixed":{position:"fixed",height:62,top:((n=(a=e.layout)==null?void 0:a.header)==null?void 0:n.heightLayoutHeader)||i.themeConfig.headerHeight,right:0,zIndex:9,transition:"width .2s"}}}};function Lt(e){return i.useStyle("ProMultiTabs",a=>{const n=i.mergeToken(a,{componentWrapCls:`${a.componentCls}-wrap`});return[$t(n)]},e)}const Kt=[{key:"closeOthersTabs",label:"关闭其他"},{key:"closeLeftTabs",label:"关闭左侧"},{key:"closeRightTabs",label:"关闭右侧"},{key:"reloadPage",label:"刷新当前页"}];function Dt(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!t.isVNode(e)}function v(e){var a;return((a=e==null?void 0:e.meta)==null?void 0:a.currenFulltPath)||e.fullPath||e.path}const zt=p.Tabs.TabPane,Ht=p.Menu.Item,jt=t.defineComponent({props:{...Xe,visible:{type:Boolean,default:!0}},inheritAttrs:!1,setup(e){const{isMobile:a,isFixedMultiTab:n}=t.toRefs(e),l=t.ref(!1),o=t.reactive({activeKey:"",contextMenuActiveKey:""}),c=ie.useRouter(),{menuData:h,flatMenuData:m,layout:w,splitMenus:b,getPrefixCls:O}=Q(),g=O({isPor:!0,suffixCls:"multi-tab"}),{wrapSSR:$,hashId:r}=Lt(g),d=t.ref([]);t.watch(d,()=>{var u;(u=e.onChangeTabs)==null||u.call(e,J.cloneDeep(t.unref(d)))},{deep:!0});const I=t.computed(()=>w.value==="mix"&&!e.isMobile&&b.value),R=t.computed(()=>v(c.currentRoute.value)),C=t.computed(()=>n.value&&!a.value),y=t.computed(()=>{const u=!(I.value&&t.unref(m.value).length===0||h.value.length===0||w.value==="top");return C.value&&u?`calc(100% - ${e.collapsed?e.collapsedWidth:e.siderWidth}px)`:"100%"}),f=t.computed(()=>K.classNames(`${g}-wrap`,{[`${r.value}`]:!0,[`${g}-wrap-fixed`]:e.isFixedMultiTab,[`${g}-wrap-loading`]:e.loading})),S=t.computed(()=>{const u={display:e.visible?void 0:"none"};return e.isFixedMultiTab?{margin:0,width:y.value,paddingTop:"6px",zIndex:99,...u}:u}),F=u=>v(u)===R.value,s=u=>{if(u.name&&u.meta&&u.meta.tagHidden!==!0){const x=v(u),B=d.value.find(j=>v(j)===x),T={path:u.path,fullPath:x,query:u.query,params:u.params,name:u.name,meta:{...u.meta,originTagPath:u.fullPath}};B?Object.assign(B,T):u.meta.tagFixed?d.value.unshift(T):d.value.push(T),F(u)&&(o.activeKey=x)}},N=u=>{u.forEach(x=>{x.meta&&x.meta.tagFixed&&s(x),x.children&&N(x.children)})};t.watch(()=>h.value,u=>{N(u)},{deep:!0,immediate:!0}),t.watch(()=>c.currentRoute.value,u=>{s(u)},{deep:!0,immediate:!0});const M=u=>{var x,B;return((B=(x=d.value.find(T=>(u||o.activeKey)===v(T)))==null?void 0:x.meta)==null?void 0:B.originTagPath)||u||o.activeKey},k=()=>{const u=d.value.slice(-1)[0];u?c.push({path:M(v(u))}):c.push("/")},L=async u=>{const x=d.value.find(B=>u===v(B));d.value=d.value.filter(B=>v(B)!==u),x&&F(x)&&k()},W=u=>{const x=d.value.find(B=>v(B)===u);x&&o.activeKey!==v(x)&&c.push({path:M(v(x))})},H=()=>{var u;l.value=!0,e.onReloadPage&&((u=e.onReloadPage)==null||u.call(e)),setTimeout(()=>{l.value=!1},500)},z=u=>u.meta&&u.meta.tagFixed,A=u=>o[u],E=(u,x)=>{const B=d.value.findIndex(T=>v(T)===A(x));switch(u){case"closeOthersTabs":d.value=d.value.filter(T=>{var j;return v(T)===A(x)||((j=T.meta)==null?void 0:j.tagFixed)});break;case"closeLeftTabs":B&&(d.value=d.value.filter((T,j)=>{var G;return j>=B||((G=T.meta)==null?void 0:G.tagFixed)}));break;case"closeRightTabs":B&&(d.value=d.value.filter((T,j)=>{var G;return j<=B||((G=T.meta)==null?void 0:G.tagFixed)}));break;case"reloadPage":(B===0||B)&&o.activeKey===A(x)&&H();break}o.activeKey!==A(x)&&c.push(M(A(x)))},Y=(u,x)=>{const B=d.value.findIndex(T=>v(T)===x);switch(u){case"closeOthersTabs":return d.value.filter((X,ee)=>{var P;return ee!==B&&!((P=X.meta)!=null&&P.tagFixed)}).length===0;case"closeLeftTabs":return d.value.filter((X,ee)=>{var P;return ee<B&&!((P=X.meta)!=null&&P.tagFixed)}).length===0;case"closeRightTabs":return d.value.filter((X,ee)=>{var P;return ee>B&&!((P=X.meta)!=null&&P.tagFixed)}).length===0}},U=u=>{let x;const{path:B,stateType:T}=u;return t.createVNode(p.Menu,{selectedKeys:[],onClick:({key:j})=>E(j,T)},Dt(x=Kt.map(j=>t.createVNode(Ht,{key:j.key,disabled:Y(j.key,B)},{default:()=>[j.label]})))?x:{default:()=>[x]})},q=u=>{const{router:x}=u;return t.createVNode(p.Dropdown,{trigger:"contextmenu",overlay:t.createVNode(U,{path:v(x)||"",stateType:"contextMenuActiveKey"},null),onOpenChange:B=>{o.contextMenuActiveKey=B&&v(x)||""}},{default:()=>{var B;return[t.createVNode("div",{class:[`${g}-title`,r.value]},[(B=x.meta)==null?void 0:B.title,o.activeKey===v(x)&&t.createVNode(Z.ReloadOutlined,{class:[`${g}-reload-btn`,r.value],spin:l.value,onClick:T=>{T.stopPropagation(),!l.value&&H()}},null),d.value.length>1&&!z(x)&&t.createVNode(Z.CloseOutlined,{class:[`${g}-close-btn`,r.value],onClick:T=>{T.stopPropagation(),!l.value&&L(v(x)||"")}},null)])]}})};return()=>$(t.createVNode(t.Fragment,null,[!!e.isFixedMultiTab&&t.withDirectives(t.createVNode("div",{class:[`${g}-fixed`,r.value]},null),[[t.vShow,e.visible]]),t.createVNode(p.Tabs,{hideAdd:!0,type:"editable-card",style:S.value,class:f.value,activeKey:o.activeKey,onTabClick:W},{default:()=>[d.value.map(u=>t.createVNode(zt,{key:v(u),closable:!1,tab:t.createVNode(q,{router:u},null)},null))],rightExtra:()=>t.createVNode(p.Dropdown,{overlay:t.createVNode(U,{path:o.activeKey,stateType:"activeKey"},null)},{default:()=>[t.createVNode(Z.EllipsisOutlined,{class:[`${g}-dropdown-menu-btn`,r.value],rotate:90},null)]})})]))}}),{Content:Wt}=p.Layout,ue=(e,{slots:a,attrs:n})=>{var I;const{hashId:l,prefixCls:o,isMobile:c,loading:h,collapsed:m,siderWidth:w,isShowTabsBar:b,isFixedMultiTab:O,onReloadPage:g,onChangeTabs:$}=e;if(e.isChildrenLayout)return(I=a.default)==null?void 0:I.call(a);const{flatMenuData:r,layout:d}=Q();return t.createVNode(t.Fragment,null,[t.createVNode(jt,{visible:(t.unref(d)==="mix"?t.unref(r).length>0:!0)&&b,isMobile:c,loading:h,isFixedMultiTab:O,siderWidth:w,collapsed:m,onReloadPage:g,onChangeTabs:$},null),t.createVNode(Wt,{style:n.style,class:[`${o}-content`]},{default:()=>{var R;return[h&&t.createVNode(Ie,null,null),t.createVNode("div",{class:[`${o}-content-spin-container`,l],style:{opacity:h?"0":void 0}},[(R=a.default)==null?void 0:R.call(a)])]}})])};ue.inheritAttrs=!1,ue.displayName="wrap-content";const At=e=>{var a,n,l,o;return{[`${e.proComponentsCls}-basic-layout`]:{[`${e.antCls}-layout-header${e.componentCls}${e.componentCls}-light`]:{backgroundColor:((n=(a=e.layout)==null?void 0:a.header)==null?void 0:n.colorBgMenu)||e.colorBgElevated},[`${e.antCls}-layout-header${e.componentCls}${e.componentCls}-dark`]:{backgroundColor:(o=(l=e.layout)==null?void 0:l.header)==null?void 0:o.colorDarkBgMenu,[`${e.proComponentsCls}-global-header-collapsed-button`]:{color:"#fff"}},[`${e.antCls}-layout-header${e.componentCls}`]:{zIndex:19,paddingBlock:0,paddingInline:0,WebkitBackdropFilter:"blur(8px)",backdropFilter:"blur(8px)",transition:"background-color 0.2s cubic-bezier(.645,.045,.355,1)",[`&${e.proComponentsCls}`]:{"&-fixed-header":{position:"fixed",width:"100%",zIndex:9,top:0,transition:"width .2s","&-action":{transition:"width .3s cubic-bezier(.645,.045,.355,1)"}},"&-header-actions":{display:"flex",alignItems:"center",fontSize:"16",cursor:"pointer","& &-item":{paddingBlock:0,paddingInline:8,"&:hover":{color:e.colorText}}},"&-header-realDark":{boxShadow:"0 2px 8px 0 rgba(0, 0, 0, 65%)"},"&-header-actions-header-action":{transition:"width 0.3s cubic-bezier(0.645, 0.045, 0.355, 1)"}}}}}},vt=e=>({[`${e.proComponentsCls}-header`]:{"&-light":{[`${e.componentCls}-logo`]:{h1:{color:e.colorBgSpotlight}}}},[e.componentCls]:{position:"relative",background:"transparent",display:"flex",marginBlock:0,paddingInline:16,width:"100%",height:"100%",boxShadow:"0 1px 4px rgba(0,21,41,.08)",boxSizing:"border-box","&-mix":{boxShadow:"0 1px 4px 0 rgba(0,21,41,.12)"},"&-wide":{boxShadow:"0 1px 4px 0 rgba(0,21,41,.12)",padding:0,[`${e.componentCls}-main`]:{margin:"0 auto"}},"&-main":{display:"flex",width:"100%",height:"100%","&-left":{display:"flex",minWidth:192}},"> a":{height:"100%"},"> *":{height:"100%"},[`${e.proComponentsCls}-layout-apps-icon`]:{marginInlineEnd:16},"&-collapsed-button":{display:"flex",alignItems:"center",fontSize:"20px",marginInlineEnd:"16px"},"&-logo":{position:"relative",marginInlineEnd:"16px",a:{display:"flex",alignItems:"center",height:"100%",minHeight:"22px",fontSize:"20px"},img:{height:"28px"},h1:{marginBlock:0,marginInline:0,marginInlineStart:12,fontWeight:"500",color:e.colorWhite,fontSize:16},"&-mix":{display:"flex",alignItems:"center"}},"&-logo-mobile":{minWidth:"24px",marginInlineEnd:0}}}),_e={..._,...xe},Ut=(e,a)=>e===!1?null:e?e(a,null):a,Xt=t.defineComponent({props:_e,setup(e){return()=>e.rightContentRender&&typeof e.rightContentRender=="function"&&t.createVNode(t.Fragment,null,[e.rightContentRender({...e})])}}),Ge=t.defineComponent({props:_e,inheritAttrs:!1,setup(e,{slots:a,emit:n}){const l=ie.useRouter(),{token:o}=i.useProConfigContext(),{getPrefixCls:c,openKeys:h,selectedKeys:m}=Q(),{width:w}=we.useWindowSize(),b=c({suffixCls:"global-header",isPor:!0}),{wrapSSR:O,hashId:g}=i.useProStyle("ProGlobalHeader",[vt],b),$=t.computed(()=>e.isMobile?!1:e.layout==="top"||e.layout==="mix"&&e.splitMenus),r=t.computed(()=>({[`${g.value}`]:!0,[`${b}`]:!0,[`${b}-${e.layout}`]:!0})),d=y=>{var f;if(l.currentRoute){const S=l.currentRoute.value.matched.concat();e.onSelect&&y==="select"&&e.onSelect(S.filter(F=>F.name!=="index").map(F=>F.path)),e.onOpenKeys&&y==="openKeys"&&((f=e.onOpenKeys)==null||f.call(e,S.filter(F=>F.path!==l.currentRoute.value.path).map(F=>F.path)))}},I=()=>{n("collapse",!e.collapsed)},R=t.computed(()=>e.collapsedButtonRender||We),C=()=>{var y,f;return t.createVNode(t.Fragment,null,[$.value?t.createVNode("div",{style:{flex:1},class:[`${b}-menu`,g.value]},[((y=e.menuData)==null?void 0:y.length)>0&&t.createVNode(p.ConfigProvider,{theme:{components:{Layout:{headerBg:"transparent",bodyBg:"transparent"},Menu:ke({radiusItem:4,colorActiveBarWidth:0,colorActiveBarHeight:2,colorActiveBarBorderSize:0,horizontalItemBorderRadius:4},o.value||{},e.theme,"header")}}},{default:()=>[t.createVNode(be,t.mergeProps({theme:e.theme,mode:e.mode,collapsed:e.collapsed,menuData:e.menuData,openKeys:h.value,selectedKeys:m.value,iconfontUrl:e.iconfontUrl,menuItemRender:e.menuItemRender,subMenuItemRender:e.subMenuItemRender,class:{"top-nav-menu":e.mode==="horizontal",[`${g.value}`]:!0}},{"onUpdate:openKeys":()=>d("openKeys"),"onUpdate:selectedKeys":()=>d("select")}),null)]})]):t.createVNode("div",{style:{flex:1}},[(f=a.default)==null?void 0:f.call(a)]),e.layout!=="simple"&&t.createVNode(Xt,t.mergeProps(e,{extraRightDropdownRender:e.extraRightDropdownRender,rightContentRender:e.rightContentRender}),null)])};return()=>{const y=t.createVNode("span",{key:"logo",onClick:()=>{var f;return(f=e.onMenuHeaderClick)==null?void 0:f.call(e)},class:[`${b}-logo`,e.isMobile?"mobile":"",g.value]},[t.createVNode("a",null,[He(e.logo)])]);return O(t.createVNode("div",{class:r.value},[e.isMobile?t.createVNode(t.Fragment,null,[Ut(e.menuHeaderRender,y),e.isMobile&&t.unref(R)&&t.createVNode("span",{class:`${b}-collapsed-button ${g.value}`,onClick:I},[t.unref(R)(e.collapsed)]),C()]):["mix","wide","top"].includes(e.layout)?t.createVNode(t.Fragment,null,[t.createVNode("div",{style:{width:e.layout==="wide"?`${e.wideWidth}px`:void 0,padding:e.layout==="wide"&&w.value<e.wideWidth?"0 50px":void 0},class:`${b}-main ${g.value}`},[t.createVNode("div",{class:`${b}-main-left ${g.value}`},[t.createVNode(pe,t.mergeProps(e,{renderKey:"headerTitleRender"}),null)]),C()])]):C()]))}}});function Et(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!t.isVNode(e)}const{Header:qe}=p.Layout,Ce=t.defineComponent({inheritAttrs:!1,props:Ue,setup(e){const{theme:a,isMobile:n,fixedHeader:l,headerHeight:o,layout:c,onCollapse:h,splitMenus:m}=t.toRefs(e),{getPrefixCls:w,menuData:b}=Q(),O=w({suffixCls:"header",isPor:!0}),g=w({suffixCls:"fixed-header",isPor:!0}),{wrapSSR:$,hashId:r}=i.useProStyle("ProLayoutHeader",[At],O),d=t.computed(()=>c.value==="wide"),I=t.computed(()=>l.value),R=t.computed(()=>c.value==="mix"||d.value),C=t.computed(()=>c.value==="side"||c.value==="simple"),y=t.computed(()=>C.value&&"light"||a.value),f=t.computed(()=>({[`${r.value}`]:!0,[`${O}-${y.value}`]:!0,[`${O}`]:!0,[`${g}`]:I.value})),S=t.computed(()=>I.value&&!n.value),F=t.computed(()=>m.value?b.value&&Re(b.value)||[]:c.value==="top"?b.value:[]),s=t.computed(()=>C.value&&S.value?`calc(100% - ${e.collapsed?e.collapsedWidth:e.siderWidth}px)`:"100%"),N=t.computed(()=>I.value?0:void 0),M=()=>{const k=t.createVNode(Ge,t.mergeProps(e,{theme:y.value,mode:"horizontal",onCollapse:h.value,menuData:F.value}),{default:()=>[R.value?null:e.headerContentRender&&typeof e.headerContentRender=="function"?e.headerContentRender(e):e.headerContentRender]});return e.headerRender?e.headerRender(e,k):k};return()=>{let k;return $(t.createVNode(t.Fragment,null,[I.value&&!d.value&&t.createVNode(qe,{theme:y.value,style:{height:`${o.value}px`,lineHeight:`${o.value}px`,background:"transparent"}},null),t.createVNode(qe,{theme:y.value,class:f.value,style:{height:`${o.value}px`,lineHeight:`${o.value}px`,width:s.value,zIndex:C.value?100:101,right:N.value}},Et(k=M())?k:{default:()=>[k]})]))}}}),Yt=t.defineComponent({name:"BaseProLayout",inheritAttrs:!1,components:{GlobalHeader:Ce,GlobalFooter:se,SiderMenuWrapper:de},props:Ye,emits:["update:collapsed","update:open-keys","update:selected-keys","collapse","openKeys","reloadPage","select","menuHeaderClick","menuClick","changeTabs"],setup(e,{slots:a}){const n=K.getPrefixCls({suffixCls:"basic-layout",isPor:!0}),{wrapSSR:l,hashId:o}=i.useProStyle("ProLayout",[Ft,Tt],n),c=ne.useMediaQuery(),{token:h}=i.useProConfigContext(),m=t.computed(()=>{var y;return(y=h==null?void 0:h.value)==null?void 0:y.colorPrimary});t.watchEffect(()=>{m.value&&document.querySelector("html")&&document.querySelector("html").style.setProperty("--gx-primary-color",m.value)});const w=t.computed(()=>e.layout==="mix"||e.layout==="side"||e.layout==="wide"||!1),b=t.computed(()=>e.layout==="wide"),O=t.computed(()=>w.value),g=t.computed(()=>e.collapsed?e.collapsedWidth:e.siderWidth),$=t.computed(()=>(e.theme||"dark").toLocaleLowerCase().includes("dark")?"dark":"light"),r=t.computed(()=>(c.value==="sm"||c.value==="xs")&&!e.disableMobile&&!b.value),d=t.reactive({position:"relative"});(e.isChildrenLayout||e.contentStyle&&e.contentStyle.minHeight)&&(d.minHeight=0);const I=(y,f)=>y.headerRender===!1||y.pure?null:t.createVNode(Ce,t.mergeProps(y,{matchMenuKeys:f||[]}),null),R=t.computed(()=>({...e.breadcrumb,itemRender:K.getSlot(a,e,"breadcrumbRender")})),C=t.computed(()=>O.value&&e.selectedKeys?Be(e.menuData,e.selectedKeys[0]):[]);return Ke({getPrefixCls:K.getPrefixCls,...J.pick(t.toRefs(e),["layout","waterMark","menuData","openKeys","splitMenus","headerHeight","selectedKeys","disableMobile","fixSiderbar","fixedHeader","waterMarkProps"].concat(Object.keys(ve))),theme:$.value,hasContentWide:b,isMobile:r,siderWidth:g,breadcrumb:R,flatMenuData:C,hasSide:w,flatMenu:O,pageHeaderRender:t.computed(()=>K.getSlot(a,e,"pageHeaderRender"))}),()=>{var T;const y=K.getSlot(a,e,"collapsedButtonRender"),f=K.getSlot(a,e,"headerContentRender"),S=K.getSlot(a,e,"rightContentRender"),F=K.getSlot(a,e,"headerRender"),s=K.getSlot(a,e,"footerRender"),N=K.getSlot(a,e,"links"),M=K.getSlot(a,e,"copyrightRender"),k=K.getSlot(a,e,"extraRightDropdownRender"),L=K.getSlot(a,e,"menuHeaderRender"),W=K.getSlot(a,e,"menuExtraRender"),H=K.getSlot(a,e,"menuContentRender"),z=K.getSlot(a,e,"menuFooterRender"),A=K.getSlot(a,e,"menuItemRender"),E=K.getSlot(a,e,"subMenuItemRender"),Y={menuItemRender:A,subMenuItemRender:E},U=t.computed(()=>I({...e,...Y,hasSiderMenu:w.value,menuData:e.menuData,isMobile:t.unref(r),rightContentRender:S,extraRightDropdownRender:k,headerTitleRender:L,headerContentRender:f,headerRender:F,theme:$.value},e.matchMenuKeys)),q=t.computed(()=>({[`${o.value}`]:!0,[`${n}`]:!0,[`${n}-${e.layout}`]:!0})),u=t.computed(()=>b.value?{minWidth:`${e.wideWidth}px`}:void 0),x=t.computed(()=>b.value?{width:e.menuData.length?`${e.wideWidth}px`:`${e.wideWidth-e.siderWidth-20}px`,paddingTop:`${e.headerHeight+20}px`,margin:b.value?"0 auto":void 0}:void 0),B=t.computed(()=>b.value?{minHeight:"835px"}:{});return l(t.createVNode(t.Fragment,null,[e.pure?(T=a.default)==null?void 0:T.call(a):t.createVNode("div",{class:q.value,style:u.value},[t.createVNode(p.Layout,{style:x.value},{default:()=>[t.createVNode(de,t.mergeProps(J.omit(e,["pure","theme"]),{links:N,theme:$.value,isMobile:r.value,menuHeaderRender:L,menuContentRender:H,menuExtraRender:W,menuFooterRender:z,collapsedButtonRender:y}),null),t.createVNode(p.Layout,{style:d},{default:()=>[U.value,t.createVNode(ue,t.mergeProps({hashId:o.value,isMobile:r.value,prefixCls:n,collapsedWidth:e.collapsedWidth,isChildrenLayout:e.isChildrenLayout,loading:e.loading,isShowTabsBar:e.showTabsBar,isFixedMultiTab:e.fixedMultiTab,siderWidth:e.siderWidth,collapsed:e.collapsed,style:e.disableContentMargin?B.value:{...e.contentStyle,...B.value}},J.pick(e,["onReloadPage","onChangeTabs"])),{default:()=>{var j;return[(j=a.default)==null?void 0:j.call(a)]}}),s===!1?null:s?s(e):t.createVNode(se,{copyright:M},null)]})]})])]))}}}),_t=t.defineComponent({components:{GlobalHeader:Ce,GlobalFooter:se,SiderMenuWrapper:de},props:Ye,emits:["update:collapsed","update:open-keys","update:selected-keys","collapse","openKeys","reloadPage","select","menuHeaderClick","menuClick","changeTabs"],setup(e,{slots:a,emit:n}){const l=t.computed(()=>e.theme!==void 0?{dark:e.theme==="realDark"}:{}),o=m=>{n("update:collapsed",m),n("collapse",m)},c=m=>{n("update:open-keys",m),n("openKeys",m)},h=m=>{n("update:selected-keys",m),n("select",m)};return()=>t.createVNode(p.ConfigProvider,{theme:e.primaryColor?{token:{colorPrimary:e.primaryColor}}:void 0},{default:()=>[t.createVNode(i,t.mergeProps({token:e.token},l.value),{default:()=>[t.createVNode(Yt,t.mergeProps(J.omit(e,["onSelect","onOpenKeys","onCollapse"]),{onSelect:h,onOpenKeys:c,onCollapse:o}),a)]})]})}}),Ze=(e,a,n)=>e.map((l,o)=>{var c;return l.meta&&(l.meta.key=n?`${n}-${o}`:`${o}`),l.path=l.path.replace("//","/"),l.children&&l.children.length>0&&(l.children=Ze(l.children,a,(c=l.meta)==null?void 0:c.key)),a[`${l.path}`]=l,l}),Gt=e=>{const a=e.find(o=>o.path==="/"),n={},l=Ze((a==null?void 0:a.children)||[],n);return{menuData:l,breadcrumb:n,levelMenuData:K.getLevelData(l)}},Je=[{key:"light",title:"亮色菜单风格"},{key:"dark",title:"暗色菜单风格"},{key:"realDark",title:"暗黑模式"}],Qe=[{key:"side",title:"侧边菜单布局"},{key:"mix",title:"混合菜单布局"},{key:"wide",title:"定宽菜单布局"},{key:"simple",title:"简单菜单布局"}],qt=[{key:"header",title:"顶部主题"},{key:"sider",title:"左侧主题"}],Zt=e=>({[e.componentCls]:{[`${e.antCls}-drawer-content-wrapper`]:{transform:"translate(100%)",display:"block !important"},"&-show":{[`${e.antCls}-drawer-content-wrapper`]:{transform:"translate(0%)"}},"&-trantion-none":{[`${e.antCls}-drawer-content-wrapper`]:{transition:"none !important;"}},"&-handle":{position:"absolute",top:240,right:300,zIndex:0,display:"flex",alignItems:"center",justifyContent:"center",width:"48px",height:"48px",fontSize:"16px",textAlign:"center",backgroundColor:e.colorPrimary,borderEndStartRadius:e.borderRadiusLG,borderStartStartRadius:e.borderRadiusLG,"-webkit-backdropilter":"saturate(180%) blur(20px)",backdropFilter:"saturate(180%) blur(20px)",cursor:"pointer",pointerEvents:"auto"},"&-wrapper":{position:"relative",height:`calc(100vh - ${e.marginLG*2}px)`},"&-content":{padding:e.marginLG},"&-body-title":{margin:0,marginBlockEnd:e.marginSM,fontSize:"14px",lineHeight:"22px",color:e.colorBgSpotlight},"&-block-checkbox":{display:"flex",minHeight:42,gap:e.marginSM,"& &-item":{position:"relative",width:"44px",height:"36px",overflow:"hidden",borderRadius:"4px",boxShadow:"0 1px 2.5px rgba(0,0,0,.18)",cursor:"pointer",fontSize:56,lineHeight:"56px","&::before":{position:"absolute",insetBlockStart:0,insetInlineStart:0,width:"33%",height:"100%",content:"''"},"&::after":{position:"absolute",insetBlockStart:0,insetInlineStart:0,width:"100%",height:"25%",content:"''"},"&-dark":{backgroundColor:"rgba(0, 21, 41, 0.85)","&::before":{backgroundColor:"rgba(0, 0, 0, 0.65)"},"&::after":{backgroundColor:"rgba(0, 0, 0, 0.85)"}},"&-light":{backgroundColor:"#f7f8fa","&::before":{backgroundColor:"#fff"},"&::after":{backgroundColor:"#fff"}},"&-realDark":{backgroundColor:"rgba(0, 21, 41, 0.85)","&::before":{backgroundColor:"rgba(0, 0, 0, 0.65)"},"&::after":{backgroundColor:"rgba(0, 0, 0, 0.85)"}},"&-dark,&-side":{backgroundColor:"#f7f8fa","&::before":{zIndex:"1",backgroundColor:"#001529"},"&::after":{backgroundColor:"#fff"}},"&-wide":{backgroundColor:"#f7f8fa","&::before":{backgroundColor:"#fff",left:"15%",width:"15%",height:"calc(100% - 38%)",top:"38%"},"&::after":{backgroundColor:"#fff"},"&-content":{position:"absolute",height:"calc(100% - 38%)",top:"38%",right:"15%",width:"calc(100% - 15% - 15% - 10% - 15%)",backgroundColor:"#fff"}},"&-simple":{backgroundColor:"#f7f8fa","&::before":{backgroundColor:"#fff"},"&::after":{display:"none"}},"&-mix":{backgroundColor:"#f7f8fa","&::before":{backgroundColor:"#fff"},"&::after":{backgroundColor:"#001529"}}},"& &-selectIcon":{position:"absolute",insetInlineEnd:"6px",bottom:"4px",color:e.colorPrimary,fontWeight:"bold",fontSize:"14px",pointerEvents:"none",".action":{color:e.colorPrimary}},"& &-icon":{fontSize:56,lineHeight:"56px"}},"&-theme-color":{marginBlockStart:"16px",display:"flex",gap:8,"&-label":{marginBlock:"16px"},"&-block":{display:"flex",alignItems:"center",justifyContent:"center",width:"20px",height:"20px",color:"#fff",fontWeight:"bold",textAlign:"center",borderRadius:"2px",cursor:"pointer"}},"&-list":{[`&${e.antCls}-list-sm ${e.antCls}-list-item`]:{paddingInline:0}}}}),Pe=t.defineComponent({name:"BlockCheckbox",props:{value:D.string,list:{type:Array,default:()=>[]},configType:D.string,prefixCls:D.string,hashId:D.string,onChange:Function},setup(e){return()=>{const a=`${e.prefixCls}-block-checkbox`;return t.createVNode("div",{class:[a,e.hashId]},[e.list.map(n=>t.createVNode(p.Tooltip,{title:n.title,key:n.key},{default:()=>[t.createVNode("div",{class:K.classNames(e.hashId,`${a}-item`,`${a}-item-${n.key}`,`${a}-${e.configType}-item`),onClick:()=>{var l;return(l=e.onChange)==null?void 0:l.call(e,n.key)}},[n.key==="wide"&&t.createVNode("div",{class:[`${a}-item-${n.key}-content`,e.hashId]},null),t.createVNode(Z.CheckOutlined,{class:`${a}-selectIcon ${e.hashId}`.trim(),style:{display:e.value===n.key?"block":"none"}},null),n!=null&&n.icon?t.createVNode("div",{class:`${a}-icon ${e.hashId}`.trim()},[n.icon]):null])]}))])}}}),Jt=t.defineComponent({name:"ThemeColor",inheritAttrs:!1,props:{settingValue:Object,colorList:{type:Array,default:()=>[]},prefixCls:D.string,hashId:D.string,onChange:Function},setup(e){return()=>{var n;const a=`${e.prefixCls}-theme-color`;return t.createVNode(t.Fragment,null,[t.createVNode("div",{class:`${a} ${e.hashId}`.trim()},[(n=e.colorList)==null?void 0:n.map(({key:l,color:o,title:c})=>l?t.createVNode(p.Tooltip,{key:o,title:c},{default:()=>{var h,m;return[t.createVNode("div",{class:[`${a}-block ${e.hashId}`.trim(),((h=e.settingValue)==null?void 0:h.primaryColor)===o?`${a}-block-checked`:""],style:{backgroundColor:o},onClick:()=>e.onChange&&e.onChange(o)},[((m=e.settingValue)==null?void 0:m.primaryColor)===o&&t.createVNode(Z.CheckOutlined,null,null)])]}}):null)])])}}}),me=t.defineComponent({name:"RegionalChange",props:{label:D.string,value:D.bool,prefixCls:D.string,valueKey:String,hashId:D.string,disabled:D.bool,onChange:Function},setup(e){return()=>t.createVNode(p.List,{class:`${e.prefixCls}-list ${e.hashId}`.trim(),split:!1,size:"small",renderItem:({item:a})=>t.createVNode(p.Tooltip,{title:a.disabled?a.disabledReason:"",placement:"left"},{default:()=>[t.createVNode(p.List.Item,{actions:[a.action]},{default:()=>[t.createVNode("span",{style:{opacity:a.disabled?.5:1}},[a.title])]})]}),dataSource:[{title:e.label,action:t.createVNode(p.Switch,{size:"small",disabled:e.disabled,checked:!!e.value,onChange:a=>{e.onChange&&e.onChange(e.valueKey,a)}},null)}]},null)}}),Qt=e=>({[e.componentCls]:{padding:e.marginLG,"&-title":{display:"flex",alignItems:"center",margin:0,gap:10,marginBlockEnd:e.marginSM,fontSize:"14px",lineHeight:"22px",color:e.colorBgSpotlight},"&-sub-title":{margin:0,display:"flex",alignItems:"center",fontSize:12,fontWeight:"normal",color:e.colorTextDescription},"&-list":{[`&${e.antCls}-list-sm ${e.antCls}-list-item`]:{paddingInline:0,[`${e.antCls}-list-item-action`]:{marginInlineStart:10}}}}});function Pt(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!t.isVNode(e)}const ea=t.defineComponent({name:"ThemeEditor",props:{settingValue:Object,onChange:Function},setup(e){const{getPrefixCls:a}=Q(),[n,l]=ne.useState("header"),o=a({suffixCls:"theme-editor",isPor:!0}),{wrapSSR:c,hashId:h}=i.useProStyle("ProThemeEditor",[Qt],o),{token:m}=i.useProConfigContext(),w=t.computed(()=>{var r;return(r=m.value)==null?void 0:r.layout}),b=t.computed(()=>{var r,d,I,R,C,y,f,S,F,s,N,M,k,L,W,H,z,A,E,Y,U,q,u,x,B;return[{key:"colorBgMenu",title:"全部背景",disabled:((r=e.settingValue)==null?void 0:r.theme)==="dark"&&["mix","wide"].includes((d=e.settingValue)==null?void 0:d.layout)},{key:"colorDarkBgMenu",title:"全部背景",disabled:((I=e.settingValue)==null?void 0:I.theme)==="light"||((R=e.settingValue)==null?void 0:R.theme)==="dark"&&["side","simple"].includes((C=e.settingValue)==null?void 0:C.layout)},{key:"colorSubItemBg",title:"子菜单背景",disabled:!0},{key:"colorDarkSubItemBg",title:"子菜单背景",disabled:!0},{key:"colorBgMenuItemSelected",title:"菜单选中背景",disabled:((y=e.settingValue)==null?void 0:y.theme)==="dark"&&["mix","wide"].includes((f=e.settingValue)==null?void 0:f.layout)},{key:"colorDarkBgMenuItemSelected",title:"菜单选中背景",disabled:((S=e.settingValue)==null?void 0:S.theme)==="light"||((F=e.settingValue)==null?void 0:F.theme)==="dark"&&["side","simple"].includes((s=e.settingValue)==null?void 0:s.layout)},{key:"colorTextMenu",title:"菜单文字颜色",disabled:((N=e.settingValue)==null?void 0:N.theme)==="dark"&&["mix","wide"].includes((M=e.settingValue)==null?void 0:M.layout)},{key:"colorDarkTextMenu",title:"菜单文字颜色",disabled:((k=e.settingValue)==null?void 0:k.theme)==="light"||((L=e.settingValue)==null?void 0:L.theme)==="dark"&&["side","simple"].includes((W=e.settingValue)==null?void 0:W.layout)},{key:"colorTextMenuHover",title:"菜单文字移入颜色",disabled:((H=e.settingValue)==null?void 0:H.theme)==="dark"&&["mix","wide"].includes((z=e.settingValue)==null?void 0:z.layout)},{key:"colorDarkTextMenuHover",title:"菜单文字移入颜色",disabled:((A=e.settingValue)==null?void 0:A.theme)==="light"||((E=e.settingValue)==null?void 0:E.theme)==="dark"&&["side","simple"].includes((Y=e.settingValue)==null?void 0:Y.layout)},{key:"colorTextMenuSelected",title:"菜单文字选中颜色",disabled:((U=e.settingValue)==null?void 0:U.theme)==="dark"&&["mix","wide"].includes((q=e.settingValue)==null?void 0:q.layout)},{key:"colorDarkTextMenuSelected",title:"菜单文字选中颜色",disabled:((u=e.settingValue)==null?void 0:u.theme)==="light"||((x=e.settingValue)==null?void 0:x.theme)==="dark"&&["side","simple"].includes((B=e.settingValue)==null?void 0:B.layout)}]}),O=t.computed(()=>{var r,d,I,R,C,y,f,S,F,s,N,M,k,L,W,H,z,A,E,Y,U,q,u,x,B,T,j,G,X,ee,P,ot;return[{key:"colorBgMenu",title:"全部背景",disabled:((r=e.settingValue)==null?void 0:r.theme)==="dark"&&["side","simple"].includes((d=e.settingValue)==null?void 0:d.layout)},{key:"colorDarkBgMenu",title:"全部背景",disabled:((I=e.settingValue)==null?void 0:I.theme)==="light"||((R=e.settingValue)==null?void 0:R.theme)==="dark"&&["mix","wide"].includes((C=e.settingValue)==null?void 0:C.layout)},{key:"colorSubItemBg",title:"子菜单背景",disabled:((y=e.settingValue)==null?void 0:y.theme)==="dark"&&["side","simple"].includes((f=e.settingValue)==null?void 0:f.layout)},{key:"colorDarkSubItemBg",title:"子菜单背景",disabled:((S=e.settingValue)==null?void 0:S.theme)==="light"||((F=e.settingValue)==null?void 0:F.theme)==="dark"&&["mix","wide"].includes((s=e.settingValue)==null?void 0:s.layout)},{key:"colorBgMenuItemHover",title:"菜单移入背景",disabled:((N=e.settingValue)==null?void 0:N.theme)==="dark"&&((M=e.settingValue)==null?void 0:M.layout)!=="mix"},{key:"colorBgMenuItemSelected",title:"菜单选中背景",disabled:((k=e.settingValue)==null?void 0:k.theme)==="dark"&&((L=e.settingValue)==null?void 0:L.layout)!=="mix"},{key:"colorDarkBgMenuItemSelected",title:"菜单选中背景",disabled:((W=e.settingValue)==null?void 0:W.theme)==="light"||((H=e.settingValue)==null?void 0:H.theme)==="dark"&&["mix","wide"].includes((z=e.settingValue)==null?void 0:z.layout)},{key:"colorTextMenu",title:"菜单文字颜色",disabled:((A=e.settingValue)==null?void 0:A.theme)==="dark"&&((E=e.settingValue)==null?void 0:E.layout)!=="mix"},{key:"colorDarkTextMenu",title:"菜单文字颜色",disabled:((Y=e.settingValue)==null?void 0:Y.theme)==="light"||((U=e.settingValue)==null?void 0:U.theme)==="dark"&&["mix","wide"].includes((q=e.settingValue)==null?void 0:q.layout)},{key:"colorTextMenuHover",title:"菜单文字移入颜色",disabled:((u=e.settingValue)==null?void 0:u.theme)==="dark"&&((x=e.settingValue)==null?void 0:x.layout)!=="mix"},{key:"colorDarkTextMenuHover",title:"菜单文字移入颜色",disabled:((B=e.settingValue)==null?void 0:B.theme)==="light"||((T=e.settingValue)==null?void 0:T.theme)==="dark"&&["mix","wide"].includes((j=e.settingValue)==null?void 0:j.layout)},{key:"colorTextMenuSelected",title:"菜单文字选中颜色",disabled:((G=e.settingValue)==null?void 0:G.theme)==="dark"&&((X=e.settingValue)==null?void 0:X.layout)!=="mix"},{key:"colorDarkTextMenuSelected",title:"菜单文字选中颜色",disabled:((ee=e.settingValue)==null?void 0:ee.theme)==="light"||((P=e.settingValue)==null?void 0:P.theme)==="dark"&&["mix","wide"].includes((ot=e.settingValue)==null?void 0:ot.layout)}]}),g=t.computed(()=>n.value==="header"?b.value:n.value==="sider"?O.value:[]),$=r=>{var d,I;return(I=(d=w.value)==null?void 0:d[n.value])==null?void 0:I[r]};return()=>{var d,I,R;let r;return c(t.createVNode("div",{class:[o,h.value]},[t.createVNode("h3",{class:[`${o}-title`,h.value]},[t.createTextVNode("主题编辑器"),t.createVNode("div",{class:[`${o}-sub-title`,h.value]},[t.createVNode("span",null,[(d=Je.find(C=>{var y;return C.key===((y=e.settingValue)==null?void 0:y.theme)}))==null?void 0:d.title]),t.createVNode("span",{style:{marginInline:"8px"}},[t.createTextVNode("/")]),t.createVNode("span",null,[(I=Qe.find(C=>{var y;return C.key===((y=e.settingValue)==null?void 0:y.layout)}))==null?void 0:I.title])])]),t.createVNode("div",{class:[`${o}-content`,h.value]},[t.createVNode(p.List,{class:`${o}-list ${h.value}`.trim(),split:!1,size:"small",renderItem:({item:C})=>t.createVNode(p.List.Item,{actions:[C.action]},{default:()=>[t.createVNode("span",{style:{opacity:C.disabled?.5:1}},[C.title])]}),dataSource:[{title:"自定义主题色",action:t.createVNode(Ne.GColorPicker,{value:(R=e.settingValue)==null?void 0:R.primaryColor,actions:["confirm"],modes:["rgb"],size:"small",onConfirm:C=>e.onChange&&e.onChange(C,"primaryColor")},null)}]},null),t.createVNode(p.Tabs,{activeKey:n.value,onChange:l},Pt(r=qt.map(C=>t.createVNode(p.TabPane,{key:C.key,tab:C.title},{default:()=>[t.createVNode(p.List,{class:`${o}-list ${h.value}`.trim(),split:!1,size:"small",renderItem:({item:y})=>t.createVNode(p.List.Item,{actions:[y.action]},{default:()=>[t.createVNode("span",{style:{opacity:y.disabled?.5:1}},[y.title])]}),dataSource:g.value.filter(y=>!y.disabled).map(y=>({...y,action:t.createVNode(Ne.GColorPicker,{value:$(y.key),actions:["confirm"],modes:["rgb"],size:"small",onConfirm:f=>e.onChange&&e.onChange(f,n.value,y.key)},null)}))},null)]})))?r:{default:()=>[r]})])]))}}}),ta=e=>({[e.componentCls]:{padding:e.marginLG,"&-title":{display:"flex",alignItems:"center",margin:0,gap:10,marginBlockEnd:e.marginSM,fontSize:"14px",lineHeight:"22px",color:e.colorBgSpotlight},"&-sub-title":{margin:0,display:"flex",alignItems:"center",fontSize:12,fontWeight:"normal",color:e.colorTextDescription},"&-list":{[`&${e.antCls}-list-sm ${e.antCls}-list-item`]:{paddingInline:0,[`${e.antCls}-list-item-action`]:{marginInlineStart:10}}}}});function et(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!t.isVNode(e)}const{preset:tt}=ge,aa=t.defineComponent({name:"OthersChange",props:{prefixCls:D.string,settingValue:Object,onChange:Function},setup(e){const a=K.getPrefixCls({suffixCls:"others",isPor:!0}),{wrapSSR:n,hashId:l}=i.useProStyle("SettingsDrawOthers",[ta],a);return()=>{var c,h,m,w,b,O,g,$,r,d,I,R,C,y;let o;return n(t.createVNode("div",{class:[a,l.value]},[t.createVNode("h3",{class:[`${a}-title`,l.value]},[t.createTextVNode("页面动画设置")]),t.createVNode(p.List,{class:`${a}-list ${l.value}`.trim(),split:!1,size:"small",renderItem:({item:f})=>t.createVNode(p.Tooltip,{title:f.disabled?f.disabledReason:"",placement:"left"},{default:()=>[t.createVNode(p.List.Item,{actions:[f.action]},{default:()=>[t.createVNode("span",{style:{opacity:f.disabled?.5:1}},[f.title])]})]}),dataSource:[{title:"禁用动画",action:t.createVNode(p.Switch,{checked:!((h=(c=e.settingValue)==null?void 0:c.animate)!=null&&h.disabled),size:"small",onChange:f=>{var S;return(S=e.onChange)==null?void 0:S.call(e,"animate","disabled",!f)}},null)},{title:"动画效果",disabled:(w=(m=e.settingValue)==null?void 0:m.animate)==null?void 0:w.disabled,action:t.createVNode(p.Select,{value:(O=(b=e.settingValue)==null?void 0:b.animate)==null?void 0:O.name,style:{width:"100px"},size:"small",disabled:($=(g=e.settingValue)==null?void 0:g.animate)==null?void 0:$.disabled,getPopupContainer:f=>f&&f.parentNode?f.parentNode:f,onChange:f=>{var S;return(S=e.onChange)==null?void 0:S.call(e,"animate","name",f)}},et(o=tt.map(f=>t.createVNode(p.Select.Option,{value:f.name},{default:()=>[f.alias]})))?o:{default:()=>[o]})},{title:"动画方向",disabled:(d=(r=e.settingValue)==null?void 0:r.animate)==null?void 0:d.disabled,action:t.createVNode(p.Select,{value:(R=(I=e.settingValue)==null?void 0:I.animate)==null?void 0:R.direction,style:{width:"100px"},size:"small",dropdownStyle:{minWidth:"120px"},disabled:(y=(C=e.settingValue)==null?void 0:C.animate)==null?void 0:y.disabled,getPopupContainer:f=>f&&f.parentNode?f.parentNode:f,onChange:f=>{var S;return(S=e.onChange)==null?void 0:S.call(e,"animate","direction",f)}},{default:()=>{var f;return[(f=tt.find(S=>{var F,s;return S.name===((s=(F=e.settingValue)==null?void 0:F.animate)==null?void 0:s.name)}))==null?void 0:f.directions.map(S=>t.createVNode(p.Select.Option,{value:S},et(S)?S:{default:()=>[S]}))]}})}]},null)]))}}}),{preset:na}=ge,Se=Object.keys(i.themeConfig).filter(e=>e!=="title"),at={color:"#fff",fontSize:20},oa=[{label:"fixedHeader",title:"固定 Header"},{label:"fixSiderbar",title:"固定侧边菜单"},{label:"splitMenus",title:"自动分割菜单"}],la=[{label:"showTabsBar",title:"多标签"},{label:"fixedMultiTab",title:"固定多标签"}],nt=e=>K.isBrowser()?{...J.pick(i.themeConfig,Se),...e||{}}:J.cloneDeep(i.themeConfig),fe=(e,{slots:a})=>{var n;return t.createVNode("div",{style:{marginBottom:"24px"}},[t.createVNode("h3",{class:`${e.prefixCls}-body-title ${e.hashId}`.trim()},[e.title]),(n=a.default)==null?void 0:n.call(a)])},ia=t.defineComponent({name:"SettingDrawer",props:{themeOnly:Boolean,hideHintAlert:Boolean,hideCopyButton:Boolean,weakmode:Boolean,showProgress:Boolean,settings:{type:Object},colorList:{type:[Boolean,Array],default:()=>i.colorList},onChange:Function,onChangeLayout:Function},emits:["change","changeLayout"],setup(e){const{getPrefixCls:a}=Q(),n=a({suffixCls:"setting-drawer",isPor:!0}),{wrapSSR:l,hashId:o}=i.useProStyle("ProSettingDraw",[Zt],n),c=t.ref(!1),[h,m]=ne.useState(!1),[w,b]=ne.useState(!1),[O,g]=ne.useState(!1),$=t.computed(()=>nt(J.pick(e.settings,Se))),[r,d]=ne.useMergedState(()=>nt(J.pick(e.settings,Se)),{value:$,onChange:e.onChange}),I=t.computed(()=>e.colorList&&K.isArray(e.colorList)?e.colorList:[]),R=t.computed(()=>gt(t.unref(r))),{copy:C,copied:y,isSupported:f}=we.useClipboard();t.watch(h,()=>{c.value||(c.value=!0)});const S=(s,N,M)=>{var W,H;const k=["header","sider"],L={};if(M&&k.includes(s)){L[s]={},L[s][M]=N,e.onChangeLayout&&e.onChangeLayout(J.pick(L,k));return}else s==="animate"?(L[s]={},L[s][M]=N,M==="name"&&(L[s].direction=(H=(W=na.find(z=>z.name===N))==null?void 0:W.directions)==null?void 0:H[0])):L[s]=N;if(s==="colorWeak"){const z=document.querySelector("body");z&&(z.dataset.prosettingdrawer=N===!0?z.style.filter:z.dataset.prosettingdrawer||"none",N===!0&&(z.dataset.prosettingdrawer=z.style.filter),z.style.filter=N===!0?"invert(80%)":z.dataset.prosettingdrawer||"none",N||delete z.dataset.prosettingdrawer)}d(K.merge(t.unref(r),{...Fe(J.omit(L,k))}))},F=()=>{f.value&&C(JSON.stringify(t.unref(r)))};return t.watch(y,s=>{s&&p.message.success("拷贝成功,请到 config/default/themeConfig.js 中替换默认配置")}),()=>l(t.createVNode(p.Drawer,{width:300,closable:!1,open:h.value,rootClassName:`${n} ${o.value} ${h.value&&`${n}-show`} ${!c.value&&`${n}-trantion-none`}`,placement:"right",rootStyle:{zIndex:999},bodyStyle:{padding:0},onClose:()=>m(!1),handle:t.createVNode("div",{class:[`${n}-handle`,o.value],onClick:()=>m(!h.value)},[h.value?t.createVNode(Z.CloseOutlined,{style:at},null):t.createVNode(Z.SettingOutlined,{style:at},null)])},{default:()=>[t.createVNode("div",{class:[`${n}-wrapper`,o.value]},[t.createVNode(rt,null,{default:()=>[t.createVNode("div",{class:[`${n}-content`,o.value]},[t.createVNode(fe,{prefixCls:n,hashId:o.value,title:"整体风格设置"},{default:()=>[t.createVNode(Pe,{hashId:o.value,prefixCls:n,list:Je,value:r.value.theme,configType:"theme",key:"navTheme",onChange:s=>S("theme",s)},null)]}),t.createVNode(fe,{hashId:o.value,title:t.createVNode("span",null,[t.createTextVNode("主题色 "),t.createVNode("a",{style:{fontSize:"12px"},onClick:()=>b(!0)},[t.createTextVNode("更多配置")])]),prefixCls:n},{default:()=>[t.createVNode(Jt,{hashId:o.value,prefixCls:n,colorList:I.value,settingValue:r.value,onChange:(s,N)=>S(N||"primaryColor",s)},null)]}),!e.themeOnly&&t.createVNode(t.Fragment,null,[t.createVNode(p.Divider,null,null),t.createVNode(fe,{hashId:o.value,prefixCls:n,title:"导航模式"},{default:()=>[t.createVNode(Pe,{prefixCls:n,value:t.unref(r).layout,key:"layout",hashId:o.value,configType:"layout",list:Qe,onChange:s=>S("layout",s)},null)]}),oa.map(({label:s,title:N})=>t.createVNode(me,{label:N,disabled:t.unref(R)[s],value:t.unref(r)[s],prefixCls:n,hashId:o.value,valueKey:s,onChange:(M,k)=>S(M,k)},null)),t.createVNode(p.Divider,null,null),t.createVNode(fe,{hashId:o.value,prefixCls:n,title:t.createVNode("span",null,[t.createTextVNode("其他设置 "),t.createVNode("a",{style:{fontSize:"12px"},onClick:()=>g(!0)},[t.createTextVNode("更多配置")])])},{default:()=>[la.map(({label:s,title:N})=>t.createVNode(me,{label:N,disabled:t.unref(R)[s],value:t.unref(r)[s],prefixCls:n,hashId:o.value,valueKey:s,onChange:(M,k)=>S(M,k)},null)),e.weakmode&&t.createVNode(me,{label:"色弱模式",value:t.unref(r).colorWeak,prefixCls:n,hashId:o.value,valueKey:"colorWeak",onChange:(s,N)=>S(s,N)},null),e.showProgress&&t.createVNode(me,{label:"顶部进度条",value:t.unref(r).showProgressBar,prefixCls:n,hashId:o.value,valueKey:"showProgressBar",onChange:(s,N)=>S(s,N)},null)]})]),e.hideHintAlert&&e.hideCopyButton?null:t.createVNode(p.Divider,null,null),e.hideHintAlert?null:t.createVNode(p.Alert,{type:"warning",message:"配置栏只在开发环境用于预览,生产环境不会展现,请拷贝后手动修改配置文件",icon:t.createVNode(Z.NotificationOutlined,null,null),showIcon:!0,style:{marginBottom:"16px"}},null),e.hideCopyButton?null:t.createVNode(p.Button,{onClick:()=>F(),block:!0},{default:()=>[t.createVNode(Z.CopyOutlined,null,null),t.createTextVNode("拷贝设置")]})])]})]),t.createVNode(p.Drawer,{width:320,closable:!1,placement:"right",open:w.value,bodyStyle:{padding:0},onClose:()=>b(!1)},{default:()=>[t.createVNode(ea,{settingValue:r.value,onChange:(s,N,M)=>S(N||"primaryColor",s,M)},null)]}),t.createVNode(p.Drawer,{width:320,closable:!1,placement:"right",open:O.value,bodyStyle:{padding:0},onClose:()=>g(!1)},{default:()=>[t.createVNode(aa,{settingValue:r.value,onChange:(s,N,M)=>S(s,M,N)},null)]})]}))}}),ra=new i.Keyframe("backInLeft",{"0%":{opacity:.7,transform:"translateX(-2000px) scale(0.7)"},"80%":{opacity:.7,transform:"translateX(0px) scale(0.7)"},"100%":{opacity:1,transform:"scale(1)"}}),da=new i.Keyframe("backInRight",{"0%":{opacity:.7,transform:"translateX(2000px) scale(0.7)"},"80%":{opacity:.7,transform:"translateX(0px) scale(0.7)"},"100%":{opacity:1,transform:"scale(1)"}}),ca=new i.Keyframe("backInUp",{"0%":{opacity:.7,transform:"translateY(1200px) scale(0.7)"},"80%":{opacity:.7,transform:"translateY(0px) scale(0.7)"},"100%":{opacity:1,transform:"scale(1)"}}),sa=new i.Keyframe("backInDown",{"0%":{opacity:.7,transform:"translateY(-1200px) scale(0.7)"},"80%":{opacity:.7,transform:"translateY(0px) scale(0.7)"},"100%":{opacity:1,transform:"scale(1)"}}),ua=new i.Keyframe("backOutLeft",{"0%":{opacity:1,transform:"scale(1)"},"20%":{opacity:.7,transform:"translateX(0px) scale(0.7)"},"100%":{opacity:.7,transform:"translateX(-2000px) scale(0.7)"}}),ma=new i.Keyframe("backOutRight",{"0%":{opacity:1,transform:"scale(1)"},"20%":{opacity:.7,transform:"translateX(0px) scale(0.7)"},"100%":{opacity:.7,transform:"translateX(2000px) scale(0.7)"}}),fa=new i.Keyframe("backOutUp",{"0%":{opacity:1,transform:"scale(1)"},"20%":{opacity:.7,transform:"translateY(0px) scale(0.7)"},"100%":{opacity:.7,transform:"translateY(-700px) scale(0.7)"}}),ha=new i.Keyframe("backOutDown",{"0%":{opacity:1,transform:"scale(1)"},"20%":{opacity:.7,transform:"translateY(0px) scale(0.7)"},"100%":{opacity:.7,transform:"translateY(700px) scale(0.7)"}}),ga=()=>({"&.backInLeft":{animationFillMode:"both",animationName:ra},"&.backInRight":{animationFillMode:"both",animationName:da},"&.backInUp":{animationFillMode:"both",animationName:ca},"&.backInDown":{animationFillMode:"both",animationName:sa}}),ya=()=>({"&.backOutLeft":{animationFillMode:"both",animationName:ua},"&.backOutRight":{animationFillMode:"both",animationName:ma},"&.backOutUp":{animationFillMode:"both",animationName:fa},"&.backOutDown":{animationFillMode:"both",animationName:ha}}),ba=new i.Keyframe("bounceIn",{"from,20%,40%,60%,80%,to":{animationTimingFunction:"cubic-bezier(0.215, 0.61, 0.355, 1)"},"0%":{opacity:0,transform:"scale3d(0.3, 0.3, 0.3)"},"20%":{transform:"scale3d(1.1, 1.1, 1.1)"},"40%":{transform:"scale3d(0.9, 0.9, 0.9)"},"60%":{transform:"scale3d(1.03, 1.03, 1.03)"},"80%":{transform:"scale3d(0.97, 0.97, 0.97)"},to:{opacity:1,transform:"scale3d(1, 1, 1)"}}),pa=new i.Keyframe("bounceInLeft",{"from,60%,75%,90%,to":{animationTimingFunction:"cubic-bezier(0.215, 0.61, 0.355, 1)"},"0%":{opacity:0,transform:"translate3d(-3000px, 0, 0) scaleX(3)"},"60%":{opacity:1,transform:"translate3d(25px, 0, 0) scaleX(1)"},"75%":{transform:"translate3d(-10px, 0, 0) scaleX(0.98)"},"90%":{transform:"translate3d(5px, 0, 0) scaleX(0.995)"},to:{transform:"translate3d(0, 0, 0)"}}),xa=new i.Keyframe("bounceInRight",{"from,60%,75%,90%,to":{animationTimingFunction:"cubic-bezier(0.215, 0.61, 0.355, 1)"},from:{opacity:0,transform:"translate3d(3000px, 0, 0) scaleX(3)"},"60%":{opacity:1,transform:"translate3d(-25px, 0, 0) scaleX(1)"},"75%":{transform:"translate3d(10px, 0, 0) scaleX(0.98)"},"90%":{transform:"translate3d(-5px, 0, 0) scaleX(0.995)"},to:{transform:"translate3d(0, 0, 0)"}}),Ca=new i.Keyframe("bounceInDown",{"from,60%,75%,90%,to":{animationTimingFunction:"cubic-bezier(0.215, 0.61, 0.355, 1)"},"0%":{opacity:0,transform:"translate3d(0, -3000px, 0) scaleY(3)"},"60%":{opacity:1,transform:"translate3d(0, 25px, 0) scaleY(0.9)"},"75%":{transform:"translate3d(0, -10px, 0) scaleY(0.95)"},"90%":{transform:"translate3d(0, 5px, 0) scaleY(0.985)"},to:{transform:"translate3d(0, 0, 0)"}}),Sa=new i.Keyframe("bounceInUp",{"from,60%,75%,90%,to":{animationTimingFunction:"cubic-bezier(0.215, 0.61, 0.355, 1)"},from:{opacity:0,transform:"translate3d(0, 3000px, 0) scaleY(5)"},"60%":{opacity:1,transform:"translate3d(0, -20px, 0) scaleY(0.9)"},"75%":{transform:"translate3d(0, 10px, 0) scaleY(0.95)"},"90%":{transform:"translate3d(0, -5px, 0) scaleY(0.985)"},to:{transform:"translate3d(0, 0, 0)"}}),wa=new i.Keyframe("bounceOut",{"20%":{transform:"scale3d(0.9, 0.9, 0.9)"},"50%,55%":{transform:"scale3d(1.1, 1.1, 1.1)"},"60%":{transform:"scale3d(1.03, 1.03, 1.03)"},to:{opacity:0,transform:"scale3d(0.3, 0.3, 0.3)"}}),Na=new i.Keyframe("bounceOutLeft",{"20%":{opacity:1,transform:"translate3d(20px, 0, 0) scaleX(0.9)"},to:{opacity:0,transform:"translate3d(-2000px, 0, 0) scaleX(2)"}}),Ia=new i.Keyframe("bounceOutRight",{"20%":{opacity:1,transform:"translate3d(-20px, 0, 0) scaleX(0.9)"},to:{opacity:0,transform:"translate3d(2000px, 0, 0) scaleX(2)"}}),Ma=new i.Keyframe("bounceOutDown",{"20%":{transform:"translate3d(0, 10px, 0) scaleY(0.985)"},"40%,45%":{opacity:1,transform:"translate3d(0, -20px, 0) scaleY(0.9)"},to:{opacity:0,transform:"translate3d(0, 2000px, 0) scaleY(3)"}}),ka=new i.Keyframe("bounceOutUp",{"20%":{transform:"translate3d(0, -10px, 0) scaleY(0.985)"},"40%,45%":{opacity:1,transform:"translate3d(0, 20px, 0) scaleY(0.9)"},to:{opacity:0,transform:"translate3d(0, -2000px, 0) scaleY(3)"}}),Oa=()=>({"&.bounceIn":{animationFillMode:"both",animationDuration:`${.3*.75}s !important`,animationName:ba},"&.bounceInLeft":{animationFillMode:"both",animationName:pa},"&.bounceInRight":{animationFillMode:"both",animationName:xa},"&.bounceInDown":{animationFillMode:"both",animationName:Ca},"&.bounceInUp":{animationFillMode:"both",animationName:Sa}}),Ra=()=>({"&.bounceOut":{animationFillMode:"both",animationDuration:`${.3*.75}s !important`,animationName:wa},"&.bounceOutLeft":{animationFillMode:"both",animationName:Na},"&.bounceOutRight":{animationFillMode:"both",animationName:Ia},"&.bounceOutDown":{animationFillMode:"both",animationName:Ma},"&.bounceOutUp":{animationFillMode:"both",animationName:ka}}),Ba=new i.Keyframe("fadeIn",{from:{opacity:0},to:{opacity:1}}),Va=new i.Keyframe("fadeInLeft",{from:{opacity:0,transform:"translate3d(-100%, 0, 0)"},to:{opacity:1,transform:"translate3d(0, 0, 0)"}}),Fa=new i.Keyframe("fadeInRight",{from:{opacity:0,transform:"translate3d(100%, 0, 0)"},to:{opacity:1,transform:"translate3d(0, 0, 0)"}}),Ta=new i.Keyframe("fadeInDown",{from:{opacity:0,transform:"translate3d(0, -100%, 0)"},to:{opacity:1,transform:"translate3d(0, 0, 0)"}}),$a=new i.Keyframe("fadeInUp",{from:{opacity:0,transform:"translate3d(0, 100%, 0)"},to:{opacity:1,transform:"translate3d(0, 0, 0)"}}),La=new i.Keyframe("fadeInDownBig",{from:{opacity:0,transform:"translate3d(0, -2000px, 0)"},to:{opacity:1,transform:"translate3d(0, 0, 0)"}}),Ka=new i.Keyframe("fadeInUpBig",{from:{opacity:0,transform:"translate3d(0, 2000px, 0)"},to:{opacity:1,transform:"translate3d(0, 0, 0)"}}),Da=new i.Keyframe("fadeInLeftBig",{from:{opacity:0,transform:"translate3d(-2000px, 0, 0)"},to:{opacity:1,transform:"translate3d(0, 0, 0)"}}),za=new i.Keyframe("fadeInRightBig",{from:{opacity:0,transform:"translate3d(2000px, 0, 0)"},to:{opacity:1,transform:"translate3d(0, 0, 0)"}}),Ha=new i.Keyframe("fadeInTopLeft",{from:{opacity:0,transform:"translate3d(-100%, -100%, 0)"},to:{opacity:1,transform:"translate3d(0, 0, 0)"}}),ja=new i.Keyframe("fadeInBottomRight",{from:{opacity:0,transform:"translate3d(100%, 100%, 0)"},to:{opacity:1,transform:"translate3d(0, 0, 0)"}}),Wa=new i.Keyframe("fadeInTopRight",{from:{opacity:0,transform:"translate3d(100%, -100%, 0)"},to:{opacity:1,transform:"translate3d(0, 0, 0)"}}),Aa=new i.Keyframe("fadeInBottomLeft",{from:{opacity:0,transform:"translate3d(-100%, 100%, 0)"},to:{opacity:1,transform:"translate3d(0, 0, 0)"}}),va=new i.Keyframe("fadeOut",{from:{opacity:1},to:{opacity:0}}),Ua=new i.Keyframe("fadeOutLeft",{from:{opacity:1},to:{opacity:0,transform:"translate3d(-100%, 0, 0)"}}),Xa=new i.Keyframe("fadeOutRight",{from:{opacity:1},to:{opacity:0,transform:"translate3d(100%, 0, 0)"}}),Ea=new i.Keyframe("fadeOutDown",{from:{opacity:1},to:{opacity:0,transform:"translate3d(0, 100%, 0)"}}),Ya=new i.Keyframe("fadeOutUp",{from:{opacity:1},to:{opacity:0,transform:"translate3d(0, -100%, 0)"}}),_a=new i.Keyframe("fadeOutDownBig",{from:{opacity:1},to:{opacity:0,transform:"translate3d(0, 2000px, 0)"}}),Ga=new i.Keyframe("fadeOutUpBig",{from:{opacity:1},to:{opacity:0,transform:"translate3d(0, -2000px, 0)"}}),qa=new i.Keyframe("fadeOutLeftBig",{from:{opacity:1},to:{opacity:0,transform:"translate3d(-2000px, 0, 0)"}}),Za=new i.Keyframe("fadeOutRightBig",{from:{opacity:1},to:{opacity:0,transform:"translate3d(2000px, 0, 0)"}}),Ja=new i.Keyframe("fadeOutTopLeft",{from:{opacity:1,transform:"translate3d(0, 0, 0)"},to:{opacity:0,transform:"translate3d(-100%, -100%, 0)"}}),Qa=new i.Keyframe("fadeOutBottomRight",{from:{opacity:1,transform:"translate3d(0, 0, 0)"},to:{opacity:0,transform:"translate3d(100%, 100%, 0)"}}),Pa=new i.Keyframe("fadeOutTopRight",{from:{opacity:1,transform:"translate3d(0, 0, 0)"},to:{opacity:0,transform:"translate3d(100%, -100%, 0)"}}),en=new i.Keyframe("fadeOutBottomLeft",{from:{opacity:1,transform:"translate3d(0, 0, 0)"},to:{opacity:0,transform:"translate3d(-100%, 100%, 0)"}}),tn=()=>({"&.fadeIn":{animationFillMode:"both",animationName:Ba},"&.fadeInLeft":{animationFillMode:"both",animationName:Va},"&.fadeInRight":{animationFillMode:"both",animationName:Fa},"&.fadeInDown":{animationFillMode:"both",animationName:Ta},"&.fadeInUp":{animationFillMode:"both",animationName:$a},"&.fadeInLeftBig":{animationFillMode:"both",animationName:Da},"&.fadeInRightBig":{animationFillMode:"both",animationName:za},"&.fadeInUpBig":{animationFillMode:"both",animationName:Ka},"&.fadeInDownBig":{animationFillMode:"both",animationName:La},"&.fadeInTopLeft":{animationFillMode:"both",animationName:Ha},"&.fadeInBottomRight":{animationFillMode:"both",animationName:ja},"&.fadeInTopRight":{animationFillMode:"both",animationName:Wa},"&.fadeInBottomLeft":{animationFillMode:"both",animationName:Aa}}),an=()=>({"&.fadeOut":{animationFillMode:"both",animationName:va},"&.fadeOutLeft":{animationFillMode:"both",animationName:Ua},"&.fadeOutRight":{animationFillMode:"both",animationName:Xa},"&.fadeOutDown":{animationFillMode:"both",animationName:Ea},"&.fadeOutUp":{animationFillMode:"both",animationName:Ya},"&.fadeOutDownBig":{animationFillMode:"both",animationName:_a},"&.fadeOutUpBig":{animationFillMode:"both",animationName:Ga},"&.fadeOutLeftBig":{animationFillMode:"both",animationName:qa},"&.fadeOutRightBig":{animationFillMode:"both",animationName:Za},"&.fadeOutTopLeft":{animationFillMode:"both",animationName:Ja},"&.fadeOutBottomRight":{animationFillMode:"both",animationName:Qa},"&.fadeOutTopRight":{animationFillMode:"both",animationName:Pa},"&.fadeOutBottomLeft":{animationFillMode:"both",animationName:en}}),nn=new i.Keyframe("flipInX",{from:{opacity:0,animationTimingFunction:"ease-in",transform:"perspective(400px) rotate3d(1, 0, 0, 90deg)"},"40%":{animationTimingFunction:"ease-in",transform:"perspective(400px) rotate3d(1, 0, 0, -20deg)"},"60%":{opacity:1,transform:"perspective(400px) rotate3d(1, 0, 0, 10deg)"},"80%":{transform:"perspective(400px) rotate3d(1, 0, 0, -5deg)"},to:{transform:"perspective(400px)"}}),on=new i.Keyframe("flipInY",{from:{opacity:0,animationTimingFunction:"ease-in",transform:"perspective(400px) rotate3d(0, 1, 0, 90deg)"},"40%":{animationTimingFunction:"ease-in",transform:"perspective(400px) rotate3d(0, 1, 0, -20deg)"},"60%":{opacity:1,transform:"perspective(400px) rotate3d(0, 1, 0, 10deg)"},"80%":{transform:"perspective(400px) rotate3d(0, 1, 0, -5deg)"},to:{transform:"perspective(400px)"}}),ln=new i.Keyframe("flipOutX",{from:{transform:"perspective(400px)"},"40%":{opacity:1,transform:"perspective(400px) rotate3d(1, 0, 0, -20deg)"},to:{opacity:0,transform:"perspective(400px) rotate3d(1, 0, 0, 90deg)"}}),rn=new i.Keyframe("flipOutY",{from:{transform:"perspective(400px)"},"40%":{opacity:1,transform:"perspective(400px) rotate3d(0, 1, 0, -15deg)"},to:{opacity:0,transform:"perspective(400px) rotate3d(0, 1, 0, 90deg)"}}),dn=()=>({"&.flipInX":{animationFillMode:"both",backfaceVisibility:"visible !important",animationName:nn},"&.flipInY":{animationFillMode:"both",backfaceVisibility:"visible !important",animationName:on}}),cn=()=>({"&.flipOutX":{animationFillMode:"both",backfaceVisibility:"visible !important",animationDuration:`${.3*.75}s !important`,animationName:ln},"&.flipOutY":{animationFillMode:"both",backfaceVisibility:"visible !important",animationDuration:`${.3*.75}s !important`,animationName:rn}}),sn=new i.Keyframe("lightSpeedInLeft",{from:{opacity:0,transform:"translate3d(-100%, 0, 0) skewX(30deg)"},"60%":{opacity:1,transform:"skewX(-20deg)"},"80%":{transform:"skewX(5deg)"},to:{transform:"translate3d(0, 0, 0)"}}),un=new i.Keyframe("lightSpeedInRight",{from:{opacity:0,transform:"translate3d(100%, 0, 0) skewX(-30deg)"},"60%":{opacity:1,transform:"skewX(20deg)"},"80%":{transform:"skewX(-5deg)"},to:{transform:"translate3d(0, 0, 0)"}}),mn=new i.Keyframe("lightSpeedOutLeft",{from:{opacity:1},to:{opacity:0,transform:"translate3d(-100%, 0, 0) skewX(-30deg)"}}),fn=new i.Keyframe("lightSpeedOutRight",{from:{opacity:1},to:{opacity:0,transform:"translate3d(100%, 0, 0) skewX(30deg)"}}),hn=()=>({"&.lightSpeedInLeft":{animationFillMode:"both",animationTimingFunction:"ease-out",animationName:sn},"&.lightSpeedInRight":{animationFillMode:"both",animationTimingFunction:"ease-out",animationName:un}}),gn=()=>({"&.lightSpeedOutLeft":{animationFillMode:"both",animationTimingFunction:"ease-in",animationName:mn},"&.lightSpeedOutRight":{animationFillMode:"both",animationTimingFunction:"ease-in",animationName:fn}}),yn=new i.Keyframe("rotateIn",{from:{opacity:0,transform:"rotate3d(0, 0, 1, -200deg)"},to:{opacity:1,transform:"translate3d(0, 0, 0)"}}),bn=new i.Keyframe("rotateInDownLeft",{from:{opacity:0,transform:"rotate3d(0, 0, 1, -45deg)"},to:{opacity:1,transform:"translate3d(0, 0, 0)"}}),pn=new i.Keyframe("rotateInDownRight",{from:{opacity:0,transform:"rotate3d(0, 0, 1, 45deg)"},to:{opacity:1,transform:"translate3d(0, 0, 0)"}}),xn=new i.Keyframe("rotateInUpLeft",{from:{opacity:0,transform:"rotate3d(0, 0, 1, 45deg)"},to:{opacity:1,transform:"translate3d(0, 0, 0)"}}),Cn=new i.Keyframe("rotateInUpRight",{from:{opacity:0,transform:"rotate3d(0, 0, 1, -90deg)"},to:{opacity:1,transform:"translate3d(0, 0, 0)"}}),Sn=new i.Keyframe("rotateOut",{from:{opacity:1},to:{opacity:0,transform:"rotate3d(0, 0, 1, 200deg)"}}),wn=new i.Keyframe("rotateOutDownLeft",{from:{opacity:1},to:{opacity:0,transform:"rotate3d(0, 0, 1, 45deg)"}}),Nn=new i.Keyframe("rotateOutDownRight",{from:{opacity:1},to:{opacity:0,transform:"rotate3d(0, 0, 1, -45deg)"}}),In=new i.Keyframe("rotateOutUpLeft",{from:{opacity:1},to:{opacity:0,transform:"rotate3d(0, 0, 1, -45deg)"}}),Mn=new i.Keyframe("rotateOutUpRight",{from:{opacity:1},to:{opacity:0,transform:"rotate3d(0, 0, 1, 90deg)"}}),kn=()=>({"&.rotateIn":{animationFillMode:"both",transformOrigin:"center",animationName:yn},"&.rotateInDownLeft":{animationFillMode:"both",transformOrigin:"left bottom",animationName:bn},"&.rotateInDownRight":{animationFillMode:"both",transformOrigin:"right bottom",animationName:pn},"&.rotateInUpLeft":{animationFillMode:"both",transformOrigin:"left bottom",animationName:xn},"&.rotateInUpRight":{animationFillMode:"both",transformOrigin:"right bottom",animationName:Cn}}),On=()=>({"&.rotateOut":{animationFillMode:"both",transformOrigin:"center",animationName:Sn},"&.rotateOutDownLeft":{animationFillMode:"both",transformOrigin:"left bottom",animationName:wn},"&.rotateOutDownRight":{animationFillMode:"both",transformOrigin:"right bottom",animationName:Nn},"&.rotateOutUpLeft":{animationFillMode:"both",transformOrigin:"left bottom",animationName:In},"&.rotateOutUpRight":{animationFillMode:"both",transformOrigin:"right bottom",animationName:Mn}}),Rn=new i.Keyframe("rollIn",{from:{opacity:0,transform:"translate3d(-100%, 0, 0) rotate3d(0, 0, 1, -120deg)"},to:{opacity:1,transform:"translate3d(0, 0, 0)"}}),Bn=new i.Keyframe("rollOut",{from:{opacity:1},to:{opacity:0,transform:"translate3d(100%, 0, 0) rotate3d(0, 0, 1, 120deg)"}}),Vn=()=>({"&.rollIn":{animationFillMode:"both",animationName:Rn}}),Fn=()=>({"&.rollOut":{animationFillMode:"both",animationName:Bn}}),Tn=new i.Keyframe("zoomIn",{from:{opacity:0,transform:"scale3d(0.3, 0.3, 0.3)"},"50%":{opacity:1}}),$n=new i.Keyframe("zoomInDown",{from:{opacity:0,transform:"scale3d(0.1, 0.1, 0.1) translate3d(0, -1000px, 0)",animationTimingFunction:"cubic-bezier(0.55, 0.055, 0.675, 0.19)"},"60%":{opacity:1,transform:"scale3d(0.475, 0.475, 0.475) translate3d(0, 60px, 0)",animationTimingFunction:"cubic-bezier(0.175, 0.885, 0.32, 1)"}}),Ln=new i.Keyframe("zoomInLeft",{from:{opacity:0,transform:"scale3d(0.1, 0.1, 0.1) translate3d(-1000px, 0, 0)",animationTimingFunction:"cubic-bezier(0.55, 0.055, 0.675, 0.19)"},"60%":{opacity:1,transform:"scale3d(0.475, 0.475, 0.475) translate3d(10px, 0, 0)",animationTimingFunction:"cubic-bezier(0.175, 0.885, 0.32, 1)"}}),Kn=new i.Keyframe("zoomInRight",{from:{opacity:0,transform:"scale3d(0.1, 0.1, 0.1) translate3d(1000px, 0, 0)",animationTimingFunction:"cubic-bezier(0.55, 0.055, 0.675, 0.19)"},"60%":{opacity:1,transform:"scale3d(0.475, 0.475, 0.475) translate3d(-10px, 0, 0)",animationTimingFunction:"cubic-bezier(0.175, 0.885, 0.32, 1)"}}),Dn=new i.Keyframe("zoomInUp",{from:{opacity:0,transform:"scale3d(0.1, 0.1, 0.1) translate3d(0, 1000px, 0)",animationTimingFunction:"cubic-bezier(0.55, 0.055, 0.675, 0.19)"},"60%":{opacity:1,transform:"scale3d(0.475, 0.475, 0.475) translate3d(0, -60px, 0)",animationTimingFunction:"cubic-bezier(0.175, 0.885, 0.32, 1)"}}),zn=new i.Keyframe("zoomOut",{from:{opacity:1},"50%":{opacity:0,transform:"scale3d(0.3, 0.3, 0.3)"},to:{opacity:0}}),Hn=new i.Keyframe("zoomOutDown",{"40%":{opacity:1,transform:"scale3d(0.475, 0.475, 0.475) translate3d(0, -60px, 0)",animationTimingFunction:"cubic-bezier(0.55, 0.055, 0.675, 0.19)"},to:{opacity:0,transform:"scale3d(0.1, 0.1, 0.1) translate3d(0, 2000px, 0)",animationTimingFunction:"cubic-bezier(0.175, 0.885, 0.32, 1)"}}),jn=new i.Keyframe("zoomOutLeft",{"40%":{opacity:1,transform:"scale3d(0.475, 0.475, 0.475) translate3d(42px, 0, 0)"},to:{opacity:0,transform:"scale(0.1) translate3d(-2000px, 0, 0)"}}),Wn=new i.Keyframe("zoomOutRight",{"40%":{opacity:1,transform:"scale3d(0.475, 0.475, 0.475) translate3d(-42px, 0, 0)"},to:{opacity:0,transform:"scale(0.1) translate3d(2000px, 0, 0)"}}),An=new i.Keyframe("zoomOutUp",{"40%":{opacity:1,transform:"scale3d(0.475, 0.475, 0.475) translate3d(0, 60px, 0)",animationTimingFunction:"cubic-bezier(0.55, 0.055, 0.675, 0.19)"},to:{opacity:0,transform:"scale3d(0.1, 0.1, 0.1) translate3d(0, -2000px, 0)",animationTimingFunction:"cubic-bezier(0.175, 0.885, 0.32, 1)"}}),vn=()=>({"&.zoomIn":{animationFillMode:"both",animationName:Tn},"&.zoomInDown":{animationFillMode:"both",animationName:$n},"&.zoomInLeft":{animationFillMode:"both",animationName:Ln},"&.zoomInRight":{animationFillMode:"both",animationName:Kn},"&.zoomInUp":{animationFillMode:"both",animationName:Dn}}),Un=()=>({"&.zoomOut":{animationFillMode:"both",animationName:zn},"&.zoomOutDown":{animationFillMode:"both",transformOrigin:"center bottom",animationName:Hn},"&.zoomOutLeft":{animationFillMode:"both",transformOrigin:"left center",animationName:jn},"&.zoomOutRight":{animationFillMode:"both",transformOrigin:"right center",animationName:Wn},"&.zoomOutUp":{animationFillMode:"both",transformOrigin:"center bottom",animationName:An}}),Xn=new i.Keyframe("slideInDown",{from:{transform:"translate3d(0, -100%, 0)",visibility:"visible"},to:{transform:"translate3d(0, 0, 0)"}}),En=new i.Keyframe("slideInLeft",{from:{transform:"translate3d(-100%, 0, 0)",visibility:"visible"},to:{transform:"translate3d(0, 0, 0)"}}),Yn=new i.Keyframe("slideInRight",{from:{transform:"translate3d(100%, 0, 0)",visibility:"visible"},to:{transform:"translate3d(0, 0, 0)"}}),_n=new i.Keyframe("slideInUp",{from:{transform:"translate3d(0, 100%, 0)",visibility:"visible"},to:{transform:"translate3d(0, 0, 0)"}}),Gn=new i.Keyframe("slideOutDown",{from:{transform:"translate3d(0, 0, 0)"},to:{transform:"translate3d(0, 100%, 0)",visibility:"hidden"}}),qn=new i.Keyframe("slideOutLeft",{from:{transform:"translate3d(0, 0, 0)"},to:{transform:"translate3d(-100%, 0, 0)",visibility:"hidden"}}),Zn=new i.Keyframe("slideOutRight",{from:{transform:"translate3d(0, 0, 0)"},to:{transform:"translate3d(100%, 0, 0)",visibility:"hidden"}}),Jn=new i.Keyframe("slideOutUp",{from:{transform:"translate3d(0, 0, 0)"},to:{transform:"translate3d(0, -100%, 0)",visibility:"hidden"}}),Qn=()=>({"&.slideInDown":{animationFillMode:"both",animationName:Xn},"&.slideInLeft":{animationFillMode:"both",animationName:En},"&.slideInRight":{animationFillMode:"both",animationName:Yn},"&.slideInUp":{animationFillMode:"both",animationName:_n}}),Pn=()=>({"&.slideOutDown":{animationFillMode:"both",animationName:Gn},"&.slideOutLeft":{animationFillMode:"both",animationName:qn},"&.slideOutRight":{animationFillMode:"both",animationName:Zn},"&.slideOutUp":{animationFillMode:"both",animationName:Jn}}),eo=e=>({[e.componentCls]:{"&-enter":{background:"transparent",animationDuration:".3s !important",...ga(),...Oa(),...tn(),...dn(),...hn(),...kn(),...Vn(),...vn(),...Qn()},"&-leave":{display:"none",background:"transparent",animationDuration:".3s !important",...ya(),...Ra(),...an(),...cn(),...gn(),...On(),...Fn(),...Un(),...Pn()}}});function to(e){return i.useStyle("LayoutPageTranstion",a=>{const n=i.mergeToken(a);return[eo(n)]},e)}const ao=t.defineComponent({name:"PageTranstion",props:{disabled:{type:Boolean,default:!1},reverse:{type:Boolean,default:!0},name:{type:String,default:"bounce"},direction:String},setup(e,{slots:a}){const n=K.getPrefixCls({suffixCls:"page-transtion",isPor:!0}),{wrapSSR:l,hashId:o}=to(n),c=t.computed(()=>[m(!1),`${n}-enter`,o.value].join(" ")),h=t.computed(()=>[m(!0),`${n}-leave`,o.value].join(" ")),m=b=>{const O=ge.preset.find(r=>e.name==r.name);if(O==null)return"";let g="";e.direction==null?g=O.directions[0]:g=O.directions.find(r=>r==e.direction)||"",g=g==null||g==="default"?"":g,g!=""&&(g=b&&e.reverse?w(g,O.directions):g,g=g[0].toUpperCase()+g.substring(1));const $=b?"Out":"In";return O.name+$+g},w=(b,O)=>{if(b.length==0||b=="x"||b=="y")return b;let g=O.indexOf(b);return g=g%2==1?g-1:g+1,O[g]};return()=>{var b;return e.disabled?(b=a.default)==null?void 0:b.call(a):l(t.createVNode(t.Transition,{enterActiveClass:c.value,leaveActiveClass:h.value},{default:()=>{var O;return[(O=a.default)==null?void 0:O.call(a)]}}))}}});V.BaseMenu=be,V.DefaultHeader=Ge,V.GProLayout=_t,V.GlobalFooter=se,V.PageContainer=Bt,V.PageLoading=Ie,V.PageTranstion=ao,V.SettingDrawer=ia,V.SiderMenuWrapper=de,V.WrapContent=ue,V.baseMenuProps=oe,V.clearMenuItem=Oe,V.createContext=Te,V.createRouteContext=Le,V.flatMap=Re,V.getMatchedList=ht,V.getMenuData=Gt,V.getMenuFirstChildren=Be,V.getMenuFirstLastChildPath=Ve,V.handleThemeConfig=Fe,V.hanlePathKey=v,V.provideProLayoutContext=Ke,V.useContext=$e,V.useProLayoutContext=Q,Object.defineProperty(V,Symbol.toStringTag,{value:"Module"})});
|