@gx-design-vue/pro-layout 0.1.0-beta.5 → 0.1.0-beta.50

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