@gx-design-vue/pro-layout-components 0.1.0-beta.21 → 0.1.0-beta.23
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { ThemeValue } from '@gx-design-vue/
|
|
1
|
+
import type { ThemeValue } from '@gx-design-vue/context';
|
|
2
2
|
import type { PropType } from 'vue';
|
|
3
3
|
import type { LayoutConfig } from '../../props';
|
|
4
4
|
declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
@@ -1,24 +1,25 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Gx Design Pro
|
|
3
|
-
* Version: 0.1.0-beta.
|
|
3
|
+
* Version: 0.1.0-beta.22
|
|
4
4
|
* Author: gx12358
|
|
5
5
|
* Copyright (C) 2024 gx12358
|
|
6
6
|
* License: MIT License
|
|
7
7
|
* Description: Gx Design Pro Layout Components
|
|
8
|
-
* Date Created: 2025-11-
|
|
8
|
+
* Date Created: 2025-11-23
|
|
9
9
|
* Homepage:
|
|
10
10
|
* Contact: gx12358@gmail.com
|
|
11
11
|
*/
|
|
12
|
-
import { defineComponent as x, createVNode as i, ref as F, Fragment as M, reactive as Ie, getCurrentInstance as At, onMounted as Ee, onUpdated as $t, onUnmounted as Tt, watch as W, defineAsyncComponent as $e, mergeProps as q, computed as R, Teleport as Ft, createTextVNode as
|
|
12
|
+
import { defineComponent as x, createVNode as i, ref as F, Fragment as M, reactive as Ie, getCurrentInstance as At, onMounted as Ee, onUpdated as $t, onUnmounted as Tt, watch as W, defineAsyncComponent as $e, mergeProps as q, computed as R, Teleport as Ft, createTextVNode as m, nextTick as Z, Transition as kt, withDirectives as Mt, vShow as Ot, toRaw as Te, unref as Fe } from "vue";
|
|
13
13
|
import { useState as O, useMergedState as Ye, useMediaQuery as Ht } from "@gx-design-vue/pro-hooks";
|
|
14
14
|
import { resetComponent as zt, useProStyle as te, useProForm as Dt, Keyframe as ne, useStyle as Qe, mergeToken as Ze, unit as K, setAlpha as Lt, useContext as Je, useProConfigContext as Re, getTransitionProps as Pt } from "@gx-design-vue/pro-provider";
|
|
15
15
|
import { isUrl as _t, getPrefixCls as H, classNames as h, isBoolean as et, merge as Nt, isWindowsOs as jt, getLevelData as Wt, getSlotsProps as Gt, getSlot as Xt, isFunction as qt, deepMerge as Kt } from "@gx-design-vue/pro-utils";
|
|
16
16
|
import { Popover as Ut, Avatar as tt, Form as ke, Input as nt, Button as le, Empty as Me, Dropdown as Vt, Menu as Oe, MenuItem as He, Tooltip as ie, List as ze, Switch as Yt, message as xe, Drawer as it, Badge as rt, Segmented as Qt, Divider as pe } from "ant-design-vue";
|
|
17
|
-
import { getTokenLayoutTheme as he, LazyIcon as Zt, useProLayoutContext as Be
|
|
17
|
+
import { getTokenLayoutTheme as he, LazyIcon as Zt, useProLayoutContext as Be } from "@gx-design-vue/pro-layout";
|
|
18
18
|
import { getAlphaColor as De } from "ant-design-vue/es/theme/themes/dark/colorAlgorithm";
|
|
19
|
-
import { AppstoreOutlined as
|
|
20
|
-
import {
|
|
21
|
-
import {
|
|
19
|
+
import { AppstoreOutlined as Jt, UserOutlined as at, LockOutlined as ot, MenuOutlined as en, ArrowRightOutlined as tn, CloseOutlined as nn, SearchOutlined as Le, EnterOutlined as rn, ArrowUpOutlined as Pe, CompressOutlined as an, ExpandOutlined as on, SettingOutlined as lt, LogoutOutlined as ln, DesktopOutlined as sn, CheckOutlined as st, CopyOutlined as un, ClearOutlined as cn, EditOutlined as dn } from "@ant-design/icons-vue";
|
|
20
|
+
import { useThemeContext as ut, toggleAnimateTheme as hn } from "@gx-design-vue/context";
|
|
21
|
+
import { useLocalStorage as se, useMagicKeys as ct, whenever as Ce, useThrottleFn as fn, onKeyStroke as me, useFullscreen as gn, useDebounceFn as pn, useClipboard as mn } from "@vueuse/core";
|
|
22
|
+
import { defaultIconProps as vn, GIcon as bn } from "@gx-design-vue/icon";
|
|
22
23
|
import { GProModal as dt } from "@gx-design-vue/pro-modal";
|
|
23
24
|
import { pick as ue, cloneDeep as L, isEqual as _e } from "lodash-es";
|
|
24
25
|
import N from "dayjs";
|
|
@@ -350,14 +351,14 @@ const U = {
|
|
|
350
351
|
baseClassName: `${t}-default`
|
|
351
352
|
}, null));
|
|
352
353
|
}
|
|
353
|
-
}), An = () => i(
|
|
354
|
+
}), An = () => i(Jt, null, null), $n = ({
|
|
354
355
|
logo: e
|
|
355
356
|
}) => typeof e == "string" ? i("img", {
|
|
356
357
|
width: "auto",
|
|
357
358
|
height: 22,
|
|
358
359
|
src: e,
|
|
359
360
|
alt: "logo"
|
|
360
|
-
}, null) : typeof e == "function" ? e() : e,
|
|
361
|
+
}, null) : typeof e == "function" ? e() : e, Cr = /* @__PURE__ */ x({
|
|
361
362
|
name: "AppsLogoIcon",
|
|
362
363
|
inheritAttrs: !1,
|
|
363
364
|
props: U,
|
|
@@ -520,7 +521,7 @@ var Mn = 20, On = ["top", "right", "bottom", "left", "width", "height", "size",
|
|
|
520
521
|
return this.instance_ || (this.instance_ = new e()), this.instance_;
|
|
521
522
|
}, e.instance_ = null, e;
|
|
522
523
|
})()
|
|
523
|
-
),
|
|
524
|
+
), mt = (function(e, t) {
|
|
524
525
|
for (var n = 0, r = Object.keys(t); n < r.length; n++) {
|
|
525
526
|
var a = r[n];
|
|
526
527
|
Object.defineProperty(e, a, {
|
|
@@ -534,7 +535,7 @@ var Mn = 20, On = ["top", "right", "bottom", "left", "width", "height", "size",
|
|
|
534
535
|
}), V = (function(e) {
|
|
535
536
|
var t = e && e.ownerDocument && e.ownerDocument.defaultView;
|
|
536
537
|
return t || ce;
|
|
537
|
-
}),
|
|
538
|
+
}), vt = fe(0, 0, 0, 0);
|
|
538
539
|
function de(e) {
|
|
539
540
|
return parseFloat(e) || 0;
|
|
540
541
|
}
|
|
@@ -560,7 +561,7 @@ function Ln(e) {
|
|
|
560
561
|
function Pn(e) {
|
|
561
562
|
var t = e.clientWidth, n = e.clientHeight;
|
|
562
563
|
if (!t && !n)
|
|
563
|
-
return
|
|
564
|
+
return vt;
|
|
564
565
|
var r = V(e).getComputedStyle(e), a = Dn(r), o = a.left + a.right, l = a.top + a.bottom, s = de(r.width), c = de(r.height);
|
|
565
566
|
if (r.boxSizing === "border-box" && (Math.round(s + o) !== t && (s -= Ne(r, "left", "right") + o), Math.round(c + l) !== n && (c -= Ne(r, "top", "bottom") + l)), !Nn(e)) {
|
|
566
567
|
var g = Math.round(s + o) - t, u = Math.round(c + l) - n;
|
|
@@ -579,11 +580,11 @@ function Nn(e) {
|
|
|
579
580
|
return e === V(e).document.documentElement;
|
|
580
581
|
}
|
|
581
582
|
function jn(e) {
|
|
582
|
-
return Se ? _n(e) ? Ln(e) : Pn(e) :
|
|
583
|
+
return Se ? _n(e) ? Ln(e) : Pn(e) : vt;
|
|
583
584
|
}
|
|
584
585
|
function Wn(e) {
|
|
585
586
|
var t = e.x, n = e.y, r = e.width, a = e.height, o = typeof DOMRectReadOnly < "u" ? DOMRectReadOnly : Object, l = Object.create(o.prototype);
|
|
586
|
-
return
|
|
587
|
+
return mt(l, {
|
|
587
588
|
x: t,
|
|
588
589
|
y: n,
|
|
589
590
|
width: r,
|
|
@@ -616,7 +617,7 @@ var Gn = (
|
|
|
616
617
|
/* @__PURE__ */ (function() {
|
|
617
618
|
function e(t, n) {
|
|
618
619
|
var r = Wn(n);
|
|
619
|
-
|
|
620
|
+
mt(this, { target: t, contentRect: r });
|
|
620
621
|
}
|
|
621
622
|
return e;
|
|
622
623
|
})()
|
|
@@ -725,13 +726,13 @@ const Un = (e) => {
|
|
|
725
726
|
}, s = (u) => {
|
|
726
727
|
const {
|
|
727
728
|
onResize: f
|
|
728
|
-
} = e,
|
|
729
|
+
} = e, v = u[0].target, {
|
|
729
730
|
width: I,
|
|
730
731
|
height: A
|
|
731
|
-
} =
|
|
732
|
+
} = v.getBoundingClientRect(), {
|
|
732
733
|
offsetWidth: S,
|
|
733
734
|
offsetHeight: C
|
|
734
|
-
} =
|
|
735
|
+
} = v, d = Math.floor(I), p = Math.floor(A);
|
|
735
736
|
if (r.width !== d || r.height !== p || r.offsetWidth !== S || r.offsetHeight !== C) {
|
|
736
737
|
const y = {
|
|
737
738
|
width: d,
|
|
@@ -743,7 +744,7 @@ const Un = (e) => {
|
|
|
743
744
|
f(J(J({}, y), {
|
|
744
745
|
offsetWidth: S,
|
|
745
746
|
offsetHeight: C
|
|
746
|
-
}),
|
|
747
|
+
}), v);
|
|
747
748
|
});
|
|
748
749
|
}
|
|
749
750
|
}, c = At(), g = () => {
|
|
@@ -778,7 +779,7 @@ const Un = (e) => {
|
|
|
778
779
|
}, G = /* @__PURE__ */ x({
|
|
779
780
|
inheritAttrs: !1,
|
|
780
781
|
props: {
|
|
781
|
-
...
|
|
782
|
+
...vn,
|
|
782
783
|
type: {
|
|
783
784
|
type: String,
|
|
784
785
|
required: !0
|
|
@@ -909,8 +910,8 @@ const wt = /* @__PURE__ */ x({
|
|
|
909
910
|
} = ei(e.validator), s = (u) => {
|
|
910
911
|
Object.assign(r, u);
|
|
911
912
|
}, c = (u = "", f) => {
|
|
912
|
-
const
|
|
913
|
-
return h(
|
|
913
|
+
const v = u ? `${e.className}-${u}` : e.className;
|
|
914
|
+
return h(v, e.hashId, "");
|
|
914
915
|
}, g = () => {
|
|
915
916
|
a().then(() => {
|
|
916
917
|
e.onSubmit?.(r);
|
|
@@ -927,7 +928,7 @@ const wt = /* @__PURE__ */ x({
|
|
|
927
928
|
class: c("user-info")
|
|
928
929
|
}, [i(tt, {
|
|
929
930
|
size: e.avatarSize,
|
|
930
|
-
icon: i(
|
|
931
|
+
icon: i(at, null, null),
|
|
931
932
|
src: e.avatar
|
|
932
933
|
}, null), e.name && i("div", {
|
|
933
934
|
class: c("user-name")
|
|
@@ -989,7 +990,7 @@ const wt = /* @__PURE__ */ x({
|
|
|
989
990
|
block: !0,
|
|
990
991
|
onClick: () => a(!1)
|
|
991
992
|
}, {
|
|
992
|
-
default: () => [
|
|
993
|
+
default: () => [m("返回")]
|
|
993
994
|
})]
|
|
994
995
|
}), i("div", {
|
|
995
996
|
class: l("form-time")
|
|
@@ -997,22 +998,22 @@ const wt = /* @__PURE__ */ x({
|
|
|
997
998
|
style: {
|
|
998
999
|
fontSize: "26px"
|
|
999
1000
|
}
|
|
1000
|
-
}, [`${o.hh}:${o.mm}`,
|
|
1001
|
+
}, [`${o.hh}:${o.mm}`, m(" "), o.a]), i("span", {
|
|
1001
1002
|
style: {
|
|
1002
1003
|
fontSize: "30px"
|
|
1003
1004
|
}
|
|
1004
|
-
}, [o.day,
|
|
1005
|
+
}, [o.day, m(" "), o.dddd])])]) : i(M, null, [i("div", {
|
|
1005
1006
|
class: l("head")
|
|
1006
|
-
}, [i("span", null, [o.day,
|
|
1007
|
+
}, [i("span", null, [o.day, m(" "), o.dddd]), i("span", {
|
|
1007
1008
|
class: l("lock-icon"),
|
|
1008
1009
|
onClick: () => a(!0)
|
|
1009
|
-
}, [i(
|
|
1010
|
+
}, [i(ot, {
|
|
1010
1011
|
style: {
|
|
1011
1012
|
position: "relative",
|
|
1012
1013
|
top: "1px",
|
|
1013
1014
|
marginInlineEnd: "4px"
|
|
1014
1015
|
}
|
|
1015
|
-
}, null),
|
|
1016
|
+
}, null), m("点击解锁")])]), i("div", {
|
|
1016
1017
|
class: l("time", l("enter", "fadeIn"))
|
|
1017
1018
|
}, [i("div", {
|
|
1018
1019
|
class: l("time-card")
|
|
@@ -1159,9 +1160,9 @@ const wt = /* @__PURE__ */ x({
|
|
|
1159
1160
|
function f(d) {
|
|
1160
1161
|
a.value.open = s.value, a.value.password = u(d);
|
|
1161
1162
|
}
|
|
1162
|
-
const
|
|
1163
|
+
const v = R(() => e.shortsKey), I = R(() => a.value.open && !!a.value.password), A = ct();
|
|
1163
1164
|
Ce(A["Alt+KeyL"], () => {
|
|
1164
|
-
|
|
1165
|
+
v.value?.disabled || o.value || l(!0);
|
|
1165
1166
|
}), W(s, (d) => {
|
|
1166
1167
|
f(d && (g.value?.formState?.password || a.value.password) || "");
|
|
1167
1168
|
}), Ee(() => {
|
|
@@ -1216,7 +1217,7 @@ const li = /* @__PURE__ */ new Set(["$", "(", ")", "*", "+", ".", "?", "[", "\\"
|
|
|
1216
1217
|
description: `未找到搜索结果 "${t}"`
|
|
1217
1218
|
}, null) : i("div", {
|
|
1218
1219
|
class: e
|
|
1219
|
-
}, [
|
|
1220
|
+
}, [m("没有搜索历史")]), ui = /* @__PURE__ */ x({
|
|
1220
1221
|
props: {
|
|
1221
1222
|
...Ae,
|
|
1222
1223
|
className: String,
|
|
@@ -1282,14 +1283,14 @@ const li = /* @__PURE__ */ new Set(["$", "(", ")", "*", "+", ".", "?", "[", "\\"
|
|
|
1282
1283
|
const p = [...d].map((y) => u(y)).join(".*");
|
|
1283
1284
|
return new RegExp(`.*${p}.*`);
|
|
1284
1285
|
}
|
|
1285
|
-
function
|
|
1286
|
+
function v() {
|
|
1286
1287
|
a.value.length !== 0 && (r.value--, r.value < 0 && (r.value = a.value.length - 1), c());
|
|
1287
1288
|
}
|
|
1288
1289
|
function I() {
|
|
1289
1290
|
a.value.length !== 0 && (r.value++, r.value > a.value.length - 1 && (r.value = 0), c());
|
|
1290
1291
|
}
|
|
1291
1292
|
Ee(() => {
|
|
1292
|
-
n.value.length > 0 && (a.value = n.value),
|
|
1293
|
+
n.value.length > 0 && (a.value = n.value), me("Enter", g), me("ArrowUp", v), me("ArrowDown", I);
|
|
1293
1294
|
});
|
|
1294
1295
|
function A(d) {
|
|
1295
1296
|
r.value = d;
|
|
@@ -1300,7 +1301,7 @@ const li = /* @__PURE__ */ new Set(["$", "(", ")", "*", "+", ".", "?", "[", "\\"
|
|
|
1300
1301
|
const C = (d) => h(`${e.className}${d ? `-${d}` : ""}`, e.hashId);
|
|
1301
1302
|
return () => i(M, null, [a.value.length > 0 ? i(M, null, [n.value.length > 0 && !e.keyword && i("div", {
|
|
1302
1303
|
class: C("panel-title")
|
|
1303
|
-
}, [
|
|
1304
|
+
}, [m("搜索历史")]), i("div", {
|
|
1304
1305
|
class: C("panel-list")
|
|
1305
1306
|
}, [ai(a.value, "path").map((d, p) => i("div", {
|
|
1306
1307
|
key: d.name,
|
|
@@ -1311,9 +1312,9 @@ const li = /* @__PURE__ */ new Set(["$", "(", ")", "*", "+", ".", "?", "[", "\\"
|
|
|
1311
1312
|
}, [i("div", {
|
|
1312
1313
|
class: C("panel-item-left")
|
|
1313
1314
|
}, [i(Zt, q(d.meta || {}, {
|
|
1314
|
-
icon: d.meta?.icon || i(
|
|
1315
|
+
icon: d.meta?.icon || i(en, null, null),
|
|
1315
1316
|
classNames: C("panel-icon")
|
|
1316
|
-
}), null), d.meta?.title?.split("**")?.map((y, $) => i(M, null, [y, $ < d.meta?.title?.split("**")?.length - 1 && i(
|
|
1317
|
+
}), null), d.meta?.title?.split("**")?.map((y, $) => i(M, null, [y, $ < d.meta?.title?.split("**")?.length - 1 && i(tn, null, null)])), i("span", null, null)]), i(nn, {
|
|
1317
1318
|
onClick: (y) => S(y, p)
|
|
1318
1319
|
}, null)]))])]) : i(si, {
|
|
1319
1320
|
className: C("result"),
|
|
@@ -1418,11 +1419,11 @@ const hi = ({
|
|
|
1418
1419
|
class: h(`${e}-footer`, t)
|
|
1419
1420
|
}, [i("div", {
|
|
1420
1421
|
class: h(`${e}-footer-icon`, t)
|
|
1421
|
-
}, [i(
|
|
1422
|
+
}, [i(rn, null, null), m("选择")]), i("div", {
|
|
1422
1423
|
class: h(`${e}-footer-icon`, t)
|
|
1423
1424
|
}, [i(Pe, null, null), i(Pe, {
|
|
1424
1425
|
rotate: 180
|
|
1425
|
-
}, null),
|
|
1426
|
+
}, null), m("导航")])]), fi = /* @__PURE__ */ x({
|
|
1426
1427
|
name: "SearchPageInput",
|
|
1427
1428
|
props: {
|
|
1428
1429
|
...Ae,
|
|
@@ -1442,7 +1443,7 @@ const hi = ({
|
|
|
1442
1443
|
}), {
|
|
1443
1444
|
wrapSSR: n,
|
|
1444
1445
|
hashId: r
|
|
1445
|
-
} = di(t), [a, o] = O(""), [l, s] = O(!1), c = Be(), g = ct(), u = jt() ? g["ctrl+k"] : g["cmd+k"], f = F(),
|
|
1446
|
+
} = di(t), [a, o] = O(""), [l, s] = O(!1), c = Be(), g = ct(), u = jt() ? g["ctrl+k"] : g["cmd+k"], f = F(), v = R(() => Wt(e.dataSource?.length ? e.dataSource : c?.menuProps?.value?.menuData));
|
|
1446
1447
|
Ce(u, () => {
|
|
1447
1448
|
e.disabledShortKey || s(!0);
|
|
1448
1449
|
}), Ce(l, () => {
|
|
@@ -1463,9 +1464,9 @@ const hi = ({
|
|
|
1463
1464
|
onClick: () => s(!0)
|
|
1464
1465
|
}, [i(Le, null, null), i("span", {
|
|
1465
1466
|
class: h(`${t}-word`, r.value)
|
|
1466
|
-
}, [
|
|
1467
|
+
}, [m("搜索")]), i("span", {
|
|
1467
1468
|
class: h(`${t}-word-icon`, r.value)
|
|
1468
|
-
}, [
|
|
1469
|
+
}, [m("⌘"), " ", i("kbd", null, [m("K")])])]), i(dt, {
|
|
1469
1470
|
class: h(`${S}`, r.value),
|
|
1470
1471
|
width: 600,
|
|
1471
1472
|
scrollProps: {
|
|
@@ -1495,7 +1496,7 @@ const hi = ({
|
|
|
1495
1496
|
}, {
|
|
1496
1497
|
default: () => [i(ui, q(A, {
|
|
1497
1498
|
keyword: a.value,
|
|
1498
|
-
dataSource:
|
|
1499
|
+
dataSource: v.value,
|
|
1499
1500
|
onClose: () => I()
|
|
1500
1501
|
}), null)]
|
|
1501
1502
|
})]));
|
|
@@ -1594,7 +1595,7 @@ function pi(e) {
|
|
|
1594
1595
|
return [gi(n)];
|
|
1595
1596
|
}, e);
|
|
1596
1597
|
}
|
|
1597
|
-
const
|
|
1598
|
+
const Sr = /* @__PURE__ */ x({
|
|
1598
1599
|
name: "GlobalRightContent",
|
|
1599
1600
|
props: xt(),
|
|
1600
1601
|
inheritAttrs: !1,
|
|
@@ -1613,13 +1614,13 @@ const Cr = /* @__PURE__ */ x({
|
|
|
1613
1614
|
setTheme: l,
|
|
1614
1615
|
isDark: s,
|
|
1615
1616
|
resolvedTheme: c
|
|
1616
|
-
} =
|
|
1617
|
+
} = ut(), g = H({
|
|
1617
1618
|
suffixCls: "global",
|
|
1618
1619
|
isPor: !0
|
|
1619
1620
|
}), {
|
|
1620
1621
|
wrapSSR: u,
|
|
1621
1622
|
hashId: f
|
|
1622
|
-
} = pi(g),
|
|
1623
|
+
} = pi(g), v = F(), [I, A] = O(!1), [S, C] = O("auto"), d = R(() => et(a?.isMobile?.value) ? a?.isMobile?.value : o.value === "sm" || o.value === "xs"), p = R(() => e.actions === !1 ? {} : {
|
|
1623
1624
|
...{
|
|
1624
1625
|
lock: !0,
|
|
1625
1626
|
theme: !0,
|
|
@@ -1631,7 +1632,7 @@ const Cr = /* @__PURE__ */ x({
|
|
|
1631
1632
|
}), y = pn(async (E) => {
|
|
1632
1633
|
C(E);
|
|
1633
1634
|
}, 160), $ = () => {
|
|
1634
|
-
|
|
1635
|
+
v.value && hn(v.value, {
|
|
1635
1636
|
isDark: c.value === "light",
|
|
1636
1637
|
setTheme: l
|
|
1637
1638
|
});
|
|
@@ -1649,7 +1650,7 @@ const Cr = /* @__PURE__ */ x({
|
|
|
1649
1650
|
slots: t,
|
|
1650
1651
|
props: e,
|
|
1651
1652
|
key: "actionsRender"
|
|
1652
|
-
}), k = n.value ?
|
|
1653
|
+
}), k = n.value ? an : on;
|
|
1653
1654
|
return u(i("div", {
|
|
1654
1655
|
class: `${g}-right-content ${f.value}`.trim(),
|
|
1655
1656
|
style: {
|
|
@@ -1674,7 +1675,7 @@ const Cr = /* @__PURE__ */ x({
|
|
|
1674
1675
|
dataSource: e.dataSource,
|
|
1675
1676
|
disabledShortKey: e.shortsKey?.disabled
|
|
1676
1677
|
}, null), p.value.theme && i("div", {
|
|
1677
|
-
ref:
|
|
1678
|
+
ref: v,
|
|
1678
1679
|
class: `${g}-header-actions-item ${g}-header-actions-theme ${f.value}`.trim()
|
|
1679
1680
|
}, [i(G, {
|
|
1680
1681
|
class: `${g}-header-actions-icon ${f.value}`.trim(),
|
|
@@ -1682,7 +1683,7 @@ const Cr = /* @__PURE__ */ x({
|
|
|
1682
1683
|
onClick: () => $()
|
|
1683
1684
|
}, null)]), p.value.themeEditor && !d.value && i("div", {
|
|
1684
1685
|
class: `${g}-header-actions-item ${f.value}`.trim()
|
|
1685
|
-
}, [i(
|
|
1686
|
+
}, [i(lt, {
|
|
1686
1687
|
onClick: () => Q("themeEditor")
|
|
1687
1688
|
}, null)]), p.value.fullScreen && !d.value && i("div", {
|
|
1688
1689
|
class: `${g}-header-actions-item ${f.value}`.trim()
|
|
@@ -1694,16 +1695,16 @@ const Cr = /* @__PURE__ */ x({
|
|
|
1694
1695
|
overlay: E.dropdownMenuRender || i(Oe, null, {
|
|
1695
1696
|
default: () => [E.dropdownMenuExtraItemRender, p.value.lock && i(M, null, [i(He, {
|
|
1696
1697
|
key: "lock",
|
|
1697
|
-
icon: i(
|
|
1698
|
+
icon: i(ot, null, null),
|
|
1698
1699
|
onClick: () => A(!0)
|
|
1699
1700
|
}, {
|
|
1700
|
-
default: () => [
|
|
1701
|
+
default: () => [m("锁定屏幕")]
|
|
1701
1702
|
}), i(Oe.Divider, null, null)]), i(He, {
|
|
1702
1703
|
key: "logout",
|
|
1703
|
-
icon: i(
|
|
1704
|
+
icon: i(ln, null, null),
|
|
1704
1705
|
onClick: () => e.onLogout?.()
|
|
1705
1706
|
}, {
|
|
1706
|
-
default: () => [
|
|
1707
|
+
default: () => [m("退出登录")]
|
|
1707
1708
|
})]
|
|
1708
1709
|
})
|
|
1709
1710
|
}), {
|
|
@@ -1711,7 +1712,7 @@ const Cr = /* @__PURE__ */ x({
|
|
|
1711
1712
|
class: `${g}-header-actions-avatar ${f.value}`.trim()
|
|
1712
1713
|
}, [i(tt, {
|
|
1713
1714
|
size: 28,
|
|
1714
|
-
icon: i(
|
|
1715
|
+
icon: i(at, null, null),
|
|
1715
1716
|
src: e.avatar
|
|
1716
1717
|
}, null), i("span", {
|
|
1717
1718
|
class: `${g}-header-actions-name ${f.value}`.trim()
|
|
@@ -1723,7 +1724,7 @@ const Cr = /* @__PURE__ */ x({
|
|
|
1723
1724
|
}, null)]));
|
|
1724
1725
|
};
|
|
1725
1726
|
}
|
|
1726
|
-
}), { provideContext:
|
|
1727
|
+
}), { provideContext: mi, useInjectContext: X } = Je("theme-editor"), It = {
|
|
1727
1728
|
width: Number,
|
|
1728
1729
|
isEqual: Boolean,
|
|
1729
1730
|
open: {
|
|
@@ -1765,7 +1766,7 @@ const Cr = /* @__PURE__ */ x({
|
|
|
1765
1766
|
type: Function
|
|
1766
1767
|
}
|
|
1767
1768
|
};
|
|
1768
|
-
function
|
|
1769
|
+
function vi(e) {
|
|
1769
1770
|
const n = Object.keys(e).reduce((r, a) => (r[a] = !1, r), {});
|
|
1770
1771
|
return e.layout === "mix" && (n.fixSiderbar = !0, n.fixedHeader = !0), e.layout === "top" && (n.fixSiderbar = !0, n.splitMenus = !0), e.layout === "side" && (n.splitMenus = !0), e.layout === "simple" && (n.splitMenus = !0, n.fixedHeader = !0, n.showTabsBar = !0, n.fixedTabsBar = !0), e.layout === "wide" && (n.splitMenus = !0, n.fixedHeader = !0, n.fixSiderbar = !0, n.showTabsBar = !0, n.fixedTabsBar = !0), n;
|
|
1771
1772
|
}
|
|
@@ -1782,7 +1783,7 @@ const bi = [{
|
|
|
1782
1783
|
}
|
|
1783
1784
|
}, [i(G, {
|
|
1784
1785
|
type: "moon"
|
|
1785
|
-
}, null),
|
|
1786
|
+
}, null), m("亮色")])
|
|
1786
1787
|
}, {
|
|
1787
1788
|
value: "dark",
|
|
1788
1789
|
label: () => i("div", {
|
|
@@ -1793,7 +1794,7 @@ const bi = [{
|
|
|
1793
1794
|
}
|
|
1794
1795
|
}, [i(G, {
|
|
1795
1796
|
type: "sunny"
|
|
1796
|
-
}, null),
|
|
1797
|
+
}, null), m("深色")])
|
|
1797
1798
|
}, {
|
|
1798
1799
|
value: "system",
|
|
1799
1800
|
label: () => i("div", {
|
|
@@ -1802,7 +1803,7 @@ const bi = [{
|
|
|
1802
1803
|
alignItems: "center",
|
|
1803
1804
|
gap: "6px"
|
|
1804
1805
|
}
|
|
1805
|
-
}, [i(
|
|
1806
|
+
}, [i(sn, null, null), m("自动")])
|
|
1806
1807
|
}], yi = [{
|
|
1807
1808
|
key: "light",
|
|
1808
1809
|
title: "亮色"
|
|
@@ -1900,7 +1901,7 @@ const bi = [{
|
|
|
1900
1901
|
onClick: (o) => e.onChange?.(a.key, o)
|
|
1901
1902
|
}, [a.key === "wide" && i("div", {
|
|
1902
1903
|
class: [`${r}-item-${a.key}-content`, t.value]
|
|
1903
|
-
}, null), i(
|
|
1904
|
+
}, null), i(st, {
|
|
1904
1905
|
class: `${r}-selectIcon ${t.value}`.trim(),
|
|
1905
1906
|
style: {
|
|
1906
1907
|
display: e.value === a.key ? "block" : "none"
|
|
@@ -1976,7 +1977,7 @@ const bi = [{
|
|
|
1976
1977
|
copy: o,
|
|
1977
1978
|
copied: l,
|
|
1978
1979
|
isSupported: s
|
|
1979
|
-
} =
|
|
1980
|
+
} = mn(), c = R(() => vi(a.value));
|
|
1980
1981
|
W(l, (u) => {
|
|
1981
1982
|
u && xe.success("拷贝成功,请到 /src/store/modules/layout.ts 文件中替换 layoutConfig 默认配置");
|
|
1982
1983
|
});
|
|
@@ -2008,7 +2009,7 @@ const bi = [{
|
|
|
2008
2009
|
class: h(`${r}-card-header`, t.value)
|
|
2009
2010
|
}, [i("div", {
|
|
2010
2011
|
class: h(`${r}-card-header-title`, t.value)
|
|
2011
|
-
}, [i("span", null, [
|
|
2012
|
+
}, [i("span", null, [m("系统配置")]), i(ie, {
|
|
2012
2013
|
title: !e.isEqual && "数据有变化,点击可进行重置",
|
|
2013
2014
|
placement: "left"
|
|
2014
2015
|
}, {
|
|
@@ -2058,8 +2059,8 @@ const bi = [{
|
|
|
2058
2059
|
valueKey: u,
|
|
2059
2060
|
value: a.value[u],
|
|
2060
2061
|
disabled: c.value?.[u],
|
|
2061
|
-
onChange: (
|
|
2062
|
-
[
|
|
2062
|
+
onChange: (v, I) => e.onChange?.({
|
|
2063
|
+
[v]: I
|
|
2063
2064
|
})
|
|
2064
2065
|
}, null)), i(pe, null, null), i(ee, {
|
|
2065
2066
|
hashId: t.value,
|
|
@@ -2074,8 +2075,8 @@ const bi = [{
|
|
|
2074
2075
|
valueKey: u,
|
|
2075
2076
|
value: a.value[u],
|
|
2076
2077
|
disabled: c.value[u],
|
|
2077
|
-
onChange: (
|
|
2078
|
-
[
|
|
2078
|
+
onChange: (v, I) => e.onChange?.({
|
|
2079
|
+
[v]: I
|
|
2079
2080
|
})
|
|
2080
2081
|
}, null)), i(re, {
|
|
2081
2082
|
label: "色弱模式",
|
|
@@ -2101,11 +2102,11 @@ const bi = [{
|
|
|
2101
2102
|
onClick: () => g(),
|
|
2102
2103
|
block: !0
|
|
2103
2104
|
}, {
|
|
2104
|
-
default: () => [i(
|
|
2105
|
+
default: () => [i(un, null, null), m("拷贝设置")]
|
|
2105
2106
|
}), i(le, {
|
|
2106
2107
|
block: !0
|
|
2107
2108
|
}, {
|
|
2108
|
-
default: () => [i(
|
|
2109
|
+
default: () => [i(cn, null, null), m("清空缓存")]
|
|
2109
2110
|
})])])])])]
|
|
2110
2111
|
})])]
|
|
2111
2112
|
});
|
|
@@ -2257,7 +2258,7 @@ const bi = [{
|
|
|
2257
2258
|
colorPrimary: s.color
|
|
2258
2259
|
});
|
|
2259
2260
|
}
|
|
2260
|
-
}, [s.color.toLowerCase() === o.value.colorPrimary.toLowerCase() ? i(
|
|
2261
|
+
}, [s.color.toLowerCase() === o.value.colorPrimary.toLowerCase() ? i(st, {
|
|
2261
2262
|
style: {
|
|
2262
2263
|
color: a.value.colorWhite,
|
|
2263
2264
|
fontSize: "12px"
|
|
@@ -2280,9 +2281,9 @@ const bi = [{
|
|
|
2280
2281
|
style: {
|
|
2281
2282
|
background: o.value.colorPrimary
|
|
2282
2283
|
}
|
|
2283
|
-
}, [i("p", null, [
|
|
2284
|
+
}, [i("p", null, [m("hsb:"), l.value.hsb]), i("p", null, [m("rgb:"), l.value.rgb])]), i("div", {
|
|
2284
2285
|
class: h(`${e}-color-picker-bottom`, t.value)
|
|
2285
|
-
}, [i("div", null, [i("p", null, [
|
|
2286
|
+
}, [i("div", null, [i("p", null, [m("自定义主题颜色")]), i("p", null, [m("HEX:"), l.value.hex])]), i(dn, {
|
|
2286
2287
|
style: {
|
|
2287
2288
|
fontSize: "18px"
|
|
2288
2289
|
}
|
|
@@ -2748,7 +2749,7 @@ const bi = [{
|
|
|
2748
2749
|
class: h(`${n}-card-header`, t.value)
|
|
2749
2750
|
}, [i("div", {
|
|
2750
2751
|
class: h(`${n}-card-header-title`, t.value)
|
|
2751
|
-
}, [i("span", null, [
|
|
2752
|
+
}, [i("span", null, [m("主题配置")]), i(ie, {
|
|
2752
2753
|
title: !e.isEqual && "数据有变化,点击可进行重置",
|
|
2753
2754
|
placement: "left"
|
|
2754
2755
|
}, {
|
|
@@ -2820,9 +2821,9 @@ const bi = [{
|
|
|
2820
2821
|
onClick: () => e.onTypeChange?.("setting")
|
|
2821
2822
|
}, [i("div", {
|
|
2822
2823
|
class: h(n.value, `${t}-dock-icon`)
|
|
2823
|
-
}, [i(
|
|
2824
|
+
}, [i(lt, null, null), e.type === "setting" && i("span", {
|
|
2824
2825
|
class: h(n.value, `${t}-dock-icon-text`)
|
|
2825
|
-
}, [
|
|
2826
|
+
}, [m("系统配置")])])]), i("div", {
|
|
2826
2827
|
class: h(n.value, `${t}-dock-btn`, e.type === "theme" && `${t}-dock-btn-active`),
|
|
2827
2828
|
style: r(e.type === "theme"),
|
|
2828
2829
|
onClick: () => e.onTypeChange?.("theme")
|
|
@@ -2832,7 +2833,7 @@ const bi = [{
|
|
|
2832
2833
|
type: "palette"
|
|
2833
2834
|
}, null), e.type === "theme" && i("span", {
|
|
2834
2835
|
class: h(n.value, `${t}-dock-icon-text`)
|
|
2835
|
-
}, [
|
|
2836
|
+
}, [m("主题配置")])])])]), [[Ot, e.open]])]
|
|
2836
2837
|
})]);
|
|
2837
2838
|
};
|
|
2838
2839
|
}
|
|
@@ -2889,7 +2890,7 @@ function We(e, t, n) {
|
|
|
2889
2890
|
}
|
|
2890
2891
|
return { h: o, s: l, l: s };
|
|
2891
2892
|
}
|
|
2892
|
-
function
|
|
2893
|
+
function ve(e, t, n) {
|
|
2893
2894
|
return n < 0 && (n += 1), n > 1 && (n -= 1), n < 1 / 6 ? e + (t - e) * (6 * n) : n < 1 / 2 ? t : n < 2 / 3 ? e + (t - e) * (2 / 3 - n) * 6 : e;
|
|
2894
2895
|
}
|
|
2895
2896
|
function Pi(e, t, n) {
|
|
@@ -2898,7 +2899,7 @@ function Pi(e, t, n) {
|
|
|
2898
2899
|
a = n, o = n, r = n;
|
|
2899
2900
|
else {
|
|
2900
2901
|
var l = n < 0.5 ? n * (1 + t) : n + t - n * t, s = 2 * n - l;
|
|
2901
|
-
r =
|
|
2902
|
+
r = ve(s, l, e + 1 / 3), a = ve(s, l, e), o = ve(s, l, e - 1 / 3);
|
|
2902
2903
|
}
|
|
2903
2904
|
return { r: r * 255, g: a * 255, b: o * 255 };
|
|
2904
2905
|
}
|
|
@@ -3776,7 +3777,7 @@ const Ke = new ne("toConic", {
|
|
|
3776
3777
|
}
|
|
3777
3778
|
}, [i("h3", {
|
|
3778
3779
|
class: `${e.prefixCls}-body-title ${e.hashId}`.trim()
|
|
3779
|
-
}, [e.title]), t.default?.()]),
|
|
3780
|
+
}, [e.title]), t.default?.()]), wr = /* @__PURE__ */ x({
|
|
3780
3781
|
name: "ThemeEditor",
|
|
3781
3782
|
inheritAttrs: !1,
|
|
3782
3783
|
props: Et,
|
|
@@ -3798,16 +3799,16 @@ const Ke = new ne("toConic", {
|
|
|
3798
3799
|
} = Be(), {
|
|
3799
3800
|
wrapSSR: s,
|
|
3800
3801
|
hashId: c
|
|
3801
|
-
} = te("ProThemeEditor", [Ji, er, Qi, Zi, nr, tr], o), g = F(L(e.defaultTokens)), u = F(L(e.defaultValue || l.value)), f = se(r, L(u.value)),
|
|
3802
|
+
} = te("ProThemeEditor", [Ji, er, Qi, Zi, nr, tr], o), g = F(L(e.defaultTokens)), u = F(L(e.defaultValue || l.value)), f = se(r, L(u.value)), v = se(a, L(g.value)), {
|
|
3802
3803
|
theme: I,
|
|
3803
3804
|
setTheme: A
|
|
3804
|
-
} =
|
|
3805
|
+
} = ut(), [S, C] = O(!1), [d, p] = O(!1), [y, $] = O("setting");
|
|
3805
3806
|
Object.keys(f.value).length && e.onChangeSettingState?.(je({
|
|
3806
3807
|
...Te(f.value)
|
|
3807
|
-
})), Object.keys(
|
|
3808
|
-
...Te(
|
|
3808
|
+
})), Object.keys(v.value).length && e.onChangeTokensState?.({
|
|
3809
|
+
...Te(v.value)
|
|
3809
3810
|
});
|
|
3810
|
-
const Q = R(() => _e(L(u.value), L(f.value))), E = R(() => _e(L(g.value), L(
|
|
3811
|
+
const Q = R(() => _e(L(u.value), L(f.value))), E = R(() => _e(L(g.value), L(v.value)));
|
|
3811
3812
|
W(() => e.open, (b) => {
|
|
3812
3813
|
b && (y.value === "theme" ? p(b) : C(b));
|
|
3813
3814
|
}), W([() => S.value, () => d.value], () => {
|
|
@@ -3823,14 +3824,14 @@ const Ke = new ne("toConic", {
|
|
|
3823
3824
|
});
|
|
3824
3825
|
}
|
|
3825
3826
|
function _(b) {
|
|
3826
|
-
e.onChangeTokensState?.(b),
|
|
3827
|
+
e.onChangeTokensState?.(b), v.value = b, Z(() => {
|
|
3827
3828
|
g.value = b;
|
|
3828
3829
|
});
|
|
3829
3830
|
}
|
|
3830
|
-
return
|
|
3831
|
+
return mi({
|
|
3831
3832
|
hashId: c,
|
|
3832
3833
|
config: f,
|
|
3833
|
-
tokens:
|
|
3834
|
+
tokens: v,
|
|
3834
3835
|
prefixCls: o,
|
|
3835
3836
|
drawerClass: `${o}-drawer`
|
|
3836
3837
|
}), () => s(i("div", {
|
|
@@ -3881,7 +3882,7 @@ const Ke = new ne("toConic", {
|
|
|
3881
3882
|
});
|
|
3882
3883
|
export {
|
|
3883
3884
|
$n as DefaultRenderLogo,
|
|
3884
|
-
|
|
3885
|
-
|
|
3886
|
-
|
|
3885
|
+
Cr as GAppsLogoComponents,
|
|
3886
|
+
wr as GProThemeEditor,
|
|
3887
|
+
Sr as GRightContent
|
|
3887
3888
|
};
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Gx Design Pro
|
|
3
|
-
* Version: 0.1.0-beta.
|
|
3
|
+
* Version: 0.1.0-beta.22
|
|
4
4
|
* Author: gx12358
|
|
5
5
|
* Copyright (C) 2024 gx12358
|
|
6
6
|
* License: MIT License
|
|
7
7
|
* Description: Gx Design Pro Layout Components
|
|
8
|
-
* Date Created: 2025-11-
|
|
8
|
+
* Date Created: 2025-11-23
|
|
9
9
|
* Homepage:
|
|
10
10
|
* Contact: gx12358@gmail.com
|
|
11
11
|
*/
|
|
12
|
-
(function(C,n){typeof exports=="object"&&typeof module<"u"?n(exports,require("vue"),require("@gx-design-vue/pro-hooks"),require("@gx-design-vue/pro-provider"),require("@gx-design-vue/pro-utils"),require("ant-design-vue"),require("@gx-design-vue/pro-layout"),require("ant-design-vue/es/theme/themes/dark/colorAlgorithm"),require("@ant-design/icons-vue"),require("@vueuse/core"),require("@gx-design-vue/icon"),require("@gx-design-vue/pro-modal"),require("lodash-es"),require("dayjs"),require("dayjs/locale/zh-cn"),require("vue-router"),require("@gx-design-vue/scrollbar"),require("@gx-design-vue/color-picker")):typeof define=="function"&&define.amd?define(["exports","vue","@gx-design-vue/pro-hooks","@gx-design-vue/pro-provider","@gx-design-vue/pro-utils","ant-design-vue","@gx-design-vue/pro-layout","ant-design-vue/es/theme/themes/dark/colorAlgorithm","@ant-design/icons-vue","@vueuse/core","@gx-design-vue/icon","@gx-design-vue/pro-modal","lodash-es","dayjs","dayjs/locale/zh-cn","vue-router","@gx-design-vue/scrollbar","@gx-design-vue/color-picker"],n):(C=typeof globalThis<"u"?globalThis:C||self,n(C.proLayoutComponents={},C.vue,C.proHooks,C.proProvider,C.proUtils,C.antDesignVue,C.proLayout,C.colorAlgorithm,C.iconsVue,C.core,C.icon,C.proModal,C.lodashEs,C.dayjs,null,C.vueRouter,C.scrollbar,C.colorPicker))})(this,(function(C,n,A,p,c,m,$,de,N,I,ue,he,R,H,Tn,He,fe,ge){"use strict";const W={appList:{type:Array,default:void 0},onItemClick:Function},me=n.defineComponent({props:{hashId:String,baseClassName:String,appList:W.appList,onItemClick:W.onItemClick},setup(e){return()=>n.createVNode("div",{class:`${e.baseClassName}-content ${e.hashId}`.trim()},[n.createVNode("ul",{class:`${e.baseClassName}-content-list ${e.hashId}`.trim()},[e.appList?.map((t,a)=>t?.children?.length?n.createVNode("div",{key:a,class:`${e.baseClassName}-content-list-item-group ${e.hashId}`.trim()},[n.createVNode("div",{class:`${e.baseClassName}-content-list-item-group-title ${e.hashId}`.trim()},[t.title]),n.createVNode(me,{hashId:e.hashId,onItemClick:e.onItemClick,appList:t?.children,baseClassName:e.baseClassName},null)]):n.createVNode("li",{key:a,class:`${e.baseClassName}-content-list-item ${e.hashId}`.trim(),onClick:r=>{r.stopPropagation(),e.onItemClick?.(t)}},[n.createVNode("a",{href:e.onItemClick?void 0:t.url,target:t.target,rel:"noreferrer"},[n.createVNode(be,{logo:t.icon},null),n.createVNode("div",null,[n.createVNode("div",null,[t.title]),t.desc?n.createVNode("span",null,[t.desc]):null])])]))])])}}),_e=(e,t)=>{if(e&&typeof e=="string"&&c.isUrl(e))return n.createVNode("img",{src:e,alt:"logo"},null);if(typeof e=="function")return e();if(e&&typeof e=="string")return n.createVNode("div",{id:"avatarLogo"},[e]);if(!e&&t&&typeof t=="string"){const a=t.substring(0,1);return n.createVNode("div",{id:"avatarLogo"},[a])}return e},pe=n.defineComponent({props:{hashId:String,baseClassName:String,appList:W.appList,onItemClick:W.onItemClick},setup(e){return()=>n.createVNode("div",{class:`${e.baseClassName}-content ${e.hashId}`.trim()},[n.createVNode("ul",{class:`${e.baseClassName}-content-list ${e.hashId}`.trim()},[e.appList?.map((t,a)=>t?.children?.length?n.createVNode("div",{key:a,class:`${e.baseClassName}-content-list-item-group ${e.hashId}`.trim()},[n.createVNode("div",{class:`${e.baseClassName}-content-list-item-group-title ${e.hashId}`.trim()},[t.title]),n.createVNode(pe,{hashId:e.hashId,onItemClick:e.onItemClick,appList:t?.children,baseClassName:e.baseClassName},null)]):n.createVNode("li",{key:a,class:`${e.baseClassName}-content-list-item ${e.hashId}`.trim(),onClick:r=>{r.stopPropagation(),e.onItemClick?.(t)}},[n.createVNode("a",{href:e.onItemClick?"javascript:;":t.url,target:t.target,rel:"noreferrer"},[_e(t.icon,t.title),n.createVNode("div",null,[n.createVNode("div",null,[t.title])])])]))])])}}),De=e=>({"&-content":{maxHeight:"calc(100vh - 48px)",overflow:"auto","&-list":{boxSizing:"content-box",maxWidth:656,marginBlock:0,marginInline:0,paddingBlock:0,paddingInline:0,listStyle:"none","&-item":{position:"relative",display:"inline-block",width:328,height:72,paddingInline:16,paddingBlock:16,verticalAlign:"top",listStyleType:"none",transition:"transform 0.2s cubic-bezier(0.333, 0, 0, 1)",borderRadius:e.borderRadius,"&-group":{marginBottom:16,"&-title":{margin:"16px 0 8px 12px",fontWeight:600,color:"rgba(0, 0, 0, 0.88)",fontSize:16,opacity:.85,lineHeight:1.5,"&:first-child":{marginTop:12}}},"&:hover":{backgroundColor:e.colorBgTextHover},"* div":p.resetComponent?.(e),a:{display:"flex",height:"100%",fontSize:12,textDecoration:"none","& > img":{width:40,height:40},"& > div":{marginInlineStart:14,color:e.colorTextHeading,fontSize:14,lineHeight:"22px",whiteSpace:"nowrap",textOverflow:"ellipsis"},"& > div > span":{color:e.colorTextSecondary,fontSize:12,lineHeight:"20px"}}}}}}),je=e=>({"&-content":{maxHeight:"calc(100vh - 48px)",overflow:"auto","&-list":{boxSizing:"border-box",maxWidth:376,marginBlock:0,marginInline:0,paddingBlock:0,paddingInline:0,listStyle:"none","&-item":{position:"relative",display:"inline-block",width:104,height:104,marginBlock:8,marginInline:8,paddingInline:24,paddingBlock:24,verticalAlign:"top",listStyleType:"none",transition:"transform 0.2s cubic-bezier(0.333, 0, 0, 1)",borderRadius:e.borderRadius,"&-group":{marginBottom:16,"&-title":{margin:"16px 0 8px 12px",fontWeight:600,color:"rgba(0, 0, 0, 0.88)",fontSize:16,opacity:.85,lineHeight:1.5,"&:first-child":{marginTop:12}}},"&:hover":{backgroundColor:e.colorBgTextHover},a:{display:"flex",flexDirection:"column",alignItems:"center",height:"100%",fontSize:12,textDecoration:"none","& > #avatarLogo":{width:40,height:40,margin:"0 auto",color:e.colorPrimary,fontSize:22,lineHeight:"40px",textAlign:"center",backgroundImage:"linear-gradient(180deg, #E8F0FB 0%, #F6F8FC 100%)",borderRadius:e.borderRadius},"& > img":{width:40,height:40},"& > div":{marginBlockStart:5,marginInlineStart:0,color:e.colorTextHeading,fontSize:14,lineHeight:"22px",whiteSpace:"nowrap",textOverflow:"ellipsis"},"& > div > span":{color:e.colorTextSecondary,fontSize:12,lineHeight:"20px"}}}}}}),qe=e=>({[e.componentCls]:{"&-simple":je(e),"&-default":De(e)}}),We=e=>{const{theme:t}=$.getTokenLayoutTheme(e);return{[e.componentCls]:{"&-icon":{display:"inline-flex",alignItems:"center",justifyContent:"center",paddingInline:4,paddingBlock:0,fontSize:18,lineHeight:"14px",height:28,width:28,cursor:"pointer",color:t==="dark"?e.colorWhite:e.layout?.colorTextAppListIcon,borderRadius:e.borderRadius,"&:hover":{color:t==="dark"?e.colorWhite:e.layout?.colorTextAppListIconHover,backgroundColor:t==="dark"?de.getAlphaColor("#fff",.12):e.layout?.colorBgAppListIconHover},[`&-active${e.proComponentsCls}-layout-app-icon`]:{fontSize:18,color:t==="dark"?e.colorWhite:e.layout?.colorTextAppListIconHover,backgroundColor:t==="dark"?de.getAlphaColor("#fff",.12):e.layout?.colorBgAppListIconHover}},"&-item-title":{marginInlineStart:"16px",marginInlineEnd:"8px",marginBlockStart:0,marginBlockEnd:"12px",fontWeight:600,color:"rgba(0, 0, 0, 0.88)",fontSize:16,opacity:.85,lineHeight:1.5,"&:first-child":{marginBlockStart:12}},"&-popover":{width:"max-content",maxWidth:"100vw",[`${e.antCls}-popover-arrow`]:{display:"none"}}}}},Ge=n.defineComponent({props:W,emits:["itemClick"],setup(e){const t=c.getPrefixCls({suffixCls:"layout-app",isPor:!0}),{wrapSSR:a,hashId:r}=p.useProStyle("AppsLogoList",[qe],t),o=i=>{e.onItemClick?.(i)};return()=>e.appList?.some(l=>!l?.desc)?a(n.createVNode(pe,{hashId:r.value,appList:e.appList,onItemClick:e.onItemClick?o:void 0,baseClassName:`${t}-simple`},null)):a(n.createVNode(me,{hashId:r.value,appList:e.appList,onItemClick:e.onItemClick?o:void 0,baseClassName:`${t}-default`},null))}}),Ke=()=>n.createVNode(N.AppstoreOutlined,null,null),be=({logo:e})=>typeof e=="string"?n.createVNode("img",{width:"auto",height:22,src:e,alt:"logo"},null):typeof e=="function"?e():e,Xe=n.defineComponent({name:"AppsLogoIcon",inheritAttrs:!1,props:W,setup(e){const t=c.getPrefixCls({suffixCls:"layout-app",isPor:!0}),{wrapSSR:a,hashId:r}=p.useProStyle("AppsLogoIcon",[We],t),[o,i]=A.useState(!1),l=n.ref(),s=n.ref();return()=>a(n.createVNode(n.Fragment,null,[n.createVNode("div",{ref:l,onClick:u=>{u.stopPropagation(),u.preventDefault()}},null),n.createVNode(m.Popover,{placement:"bottomRight",trigger:["click"],arrow:!1,destroyTooltipOnHide:!0,open:o.value,onOpenChange:i,overlayClassName:`${t}-popover ${r.value}`.trim(),content:n.createVNode(Ge,e,null),getPopupContainer:()=>l.value||document.body},{default:()=>[n.createVNode("span",{ref:s,onClick:u=>{u.stopPropagation()},class:c.classNames(`${t}-icon`,r.value,{[`${t}-icon-active`]:o.value})},[n.createVNode(Ke,null,null)])]})]))}});function X(){return X=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)({}).hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e},X.apply(null,arguments)}var ye=(function(){if(typeof Map<"u")return Map;function e(t,a){var r=-1;return t.some(function(o,i){return o[0]===a?(r=i,!0):!1}),r}return(function(){function t(){this.__entries__=[]}return Object.defineProperty(t.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(a){var r=e(this.__entries__,a),o=this.__entries__[r];return o&&o[1]},t.prototype.set=function(a,r){var o=e(this.__entries__,a);~o?this.__entries__[o][1]=r:this.__entries__.push([a,r])},t.prototype.delete=function(a){var r=this.__entries__,o=e(r,a);~o&&r.splice(o,1)},t.prototype.has=function(a){return!!~e(this.__entries__,a)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(a,r){r===void 0&&(r=null);for(var o=0,i=this.__entries__;o<i.length;o++){var l=i[o];a.call(r,l[1],l[0])}},t})()})(),ae=typeof window<"u"&&typeof document<"u"&&window.document===document,Q=(function(){return typeof global<"u"&&global.Math===Math?global:typeof self<"u"&&self.Math===Math?self:typeof window<"u"&&window.Math===Math?window:Function("return this")()})(),Ze=(function(){return typeof requestAnimationFrame=="function"?requestAnimationFrame.bind(Q):function(e){return setTimeout(function(){return e(Date.now())},1e3/60)}})(),Ye=2;function Qe(e,t){var a=!1,r=!1,o=0;function i(){a&&(a=!1,e()),r&&s()}function l(){Ze(i)}function s(){var u=Date.now();if(a){if(u-o<Ye)return;r=!0}else a=!0,r=!1,setTimeout(l,t);o=u}return s}var Je=20,Ue=["top","right","bottom","left","width","height","size","weight"],et=typeof MutationObserver<"u",tt=(function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=Qe(this.refresh.bind(this),Je)}return e.prototype.addObserver=function(t){~this.observers_.indexOf(t)||this.observers_.push(t),this.connected_||this.connect_()},e.prototype.removeObserver=function(t){var a=this.observers_,r=a.indexOf(t);~r&&a.splice(r,1),!a.length&&this.connected_&&this.disconnect_()},e.prototype.refresh=function(){var t=this.updateObservers_();t&&this.refresh()},e.prototype.updateObservers_=function(){var t=this.observers_.filter(function(a){return a.gatherActive(),a.hasActive()});return t.forEach(function(a){return a.broadcastActive()}),t.length>0},e.prototype.connect_=function(){!ae||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),et?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},e.prototype.disconnect_=function(){!ae||!this.connected_||(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(t){var a=t.propertyName,r=a===void 0?"":a,o=Ue.some(function(i){return!!~r.indexOf(i)});o&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e})(),xe=(function(e,t){for(var a=0,r=Object.keys(t);a<r.length;a++){var o=r[a];Object.defineProperty(e,o,{value:t[o],enumerable:!1,writable:!1,configurable:!0})}return e}),G=(function(e){var t=e&&e.ownerDocument&&e.ownerDocument.defaultView;return t||Q}),Ce=U(0,0,0,0);function J(e){return parseFloat(e)||0}function Ne(e){for(var t=[],a=1;a<arguments.length;a++)t[a-1]=arguments[a];return t.reduce(function(r,o){var i=e["border-"+o+"-width"];return r+J(i)},0)}function nt(e){for(var t=["top","right","bottom","left"],a={},r=0,o=t;r<o.length;r++){var i=o[r],l=e["padding-"+i];a[i]=J(l)}return a}function at(e){var t=e.getBBox();return U(0,0,t.width,t.height)}function rt(e){var t=e.clientWidth,a=e.clientHeight;if(!t&&!a)return Ce;var r=G(e).getComputedStyle(e),o=nt(r),i=o.left+o.right,l=o.top+o.bottom,s=J(r.width),u=J(r.height);if(r.boxSizing==="border-box"&&(Math.round(s+i)!==t&&(s-=Ne(r,"left","right")+i),Math.round(u+l)!==a&&(u-=Ne(r,"top","bottom")+l)),!it(e)){var g=Math.round(s+i)-t,d=Math.round(u+l)-a;Math.abs(g)!==1&&(s-=g),Math.abs(d)!==1&&(u-=d)}return U(o.left,o.top,s,u)}var ot=(function(){return typeof SVGGraphicsElement<"u"?function(e){return e instanceof G(e).SVGGraphicsElement}:function(e){return e instanceof G(e).SVGElement&&typeof e.getBBox=="function"}})();function it(e){return e===G(e).document.documentElement}function lt(e){return ae?ot(e)?at(e):rt(e):Ce}function st(e){var t=e.x,a=e.y,r=e.width,o=e.height,i=typeof DOMRectReadOnly<"u"?DOMRectReadOnly:Object,l=Object.create(i.prototype);return xe(l,{x:t,y:a,width:r,height:o,top:a,right:t+r,bottom:o+a,left:t}),l}function U(e,t,a,r){return{x:e,y:t,width:a,height:r}}var ct=(function(){function e(t){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=U(0,0,0,0),this.target=t}return e.prototype.isActive=function(){var t=lt(this.target);return this.contentRect_=t,t.width!==this.broadcastWidth||t.height!==this.broadcastHeight},e.prototype.broadcastRect=function(){var t=this.contentRect_;return this.broadcastWidth=t.width,this.broadcastHeight=t.height,t},e})(),dt=(function(){function e(t,a){var r=st(a);xe(this,{target:t,contentRect:r})}return e})(),ut=(function(){function e(t,a,r){if(this.activeObservations_=[],this.observations_=new ye,typeof t!="function")throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=t,this.controller_=a,this.callbackCtx_=r}return e.prototype.observe=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(t instanceof G(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var a=this.observations_;a.has(t)||(a.set(t,new ct(t)),this.controller_.addObserver(this),this.controller_.refresh())}},e.prototype.unobserve=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(t instanceof G(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var a=this.observations_;a.has(t)&&(a.delete(t),a.size||this.controller_.removeObserver(this))}},e.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},e.prototype.gatherActive=function(){var t=this;this.clearActive(),this.observations_.forEach(function(a){a.isActive()&&t.activeObservations_.push(a)})},e.prototype.broadcastActive=function(){if(this.hasActive()){var t=this.callbackCtx_,a=this.activeObservations_.map(function(r){return new dt(r.target,r.broadcastRect())});this.callback_.call(t,a,t),this.clearActive()}},e.prototype.clearActive=function(){this.activeObservations_.splice(0)},e.prototype.hasActive=function(){return this.activeObservations_.length>0},e})(),ve=typeof WeakMap<"u"?new WeakMap:new ye,Se=(function(){function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var a=tt.getInstance(),r=new ut(t,a,this);ve.set(this,r)}return e})();["observe","unobserve","disconnect"].forEach(function(e){Se.prototype[e]=function(){var t;return(t=ve.get(this))[e].apply(t,arguments)}});var ht=(function(){return typeof Q.ResizeObserver<"u"?Q.ResizeObserver:Se})();const ft=e=>{var t;let a=((t=e?.vnode)===null||t===void 0?void 0:t.el)||e&&(e.$el||e);for(;a&&!a.tagName;)a=a.nextSibling;return a},gt=n.defineComponent({compatConfig:{MODE:3},name:"ResizeObserver",props:{disabled:Boolean,onResize:Function},emits:["resize"],setup(e,t){let{slots:a}=t;const r=n.reactive({width:0,height:0,offsetHeight:0,offsetWidth:0});let o=null,i=null;const l=()=>{i&&(i.disconnect(),i=null)},s=d=>{const{onResize:f}=e,y=d[0].target,{width:T,height:F}=y.getBoundingClientRect(),{offsetWidth:w,offsetHeight:S}=y,h=Math.floor(T),b=Math.floor(F);if(r.width!==h||r.height!==b||r.offsetWidth!==w||r.offsetHeight!==S){const v={width:h,height:b,offsetWidth:w,offsetHeight:S};X(r,v),f&&Promise.resolve().then(()=>{f(X(X({},v),{offsetWidth:w,offsetHeight:S}),y)})}},u=n.getCurrentInstance(),g=()=>{const{disabled:d}=e;if(d){l();return}const f=ft(u);f!==o&&(l(),o=f),!i&&f&&(i=new ht(s),i.observe(f))};return n.onMounted(()=>{g()}),n.onUpdated(()=>{g()}),n.onUnmounted(()=>{l()}),n.watch(()=>e.disabled,()=>{g()},{flush:"post"}),()=>{var d;return(d=a.default)===null||d===void 0?void 0:d.call(a)[0]}}}),mt={paintbrush:n.defineAsyncComponent(()=>Promise.resolve().then(()=>Vn)),palette:n.defineAsyncComponent(()=>Promise.resolve().then(()=>In))},_=n.defineComponent({inheritAttrs:!1,props:{...ue.defaultIconProps,type:{type:String,required:!0}},setup(e){return()=>n.createVNode(ue.GIcon,n.mergeProps(e,{type:e.type,components:mt}),null)}});H.locale("zh-cn");function pt(){const e=n.reactive({hh:"",mm:"",ss:"",dddd:"",day:"",a:""});function t(){e.hh=H().format("HH"),e.mm=H().format("mm"),e.ss=H().format("ss"),e.a=H().format("a").toUpperCase(),e.day=H().format("YYYY-MM-DD"),e.dddd=H().format("dddd"),requestAnimationFrame(t)}return requestAnimationFrame(t),e}const re={dataSource:{type:Array,default:()=>[]},historyKey:String},we=()=>({...re,actions:{type:Object,default:()=>({})},shortsKey:{type:Object,default:()=>({disabled:!1})},name:{type:String,default:"gx·design"},avatar:String,actionsRender:{type:[Array,Function,Object],default:void 0},dropdownProps:{type:[Object],default:()=>({})},dropdownRender:{type:[Array,Function,Object],default:void 0},dropdownMenuRender:{type:[Array,Function,Object],default:void 0},dropdownMenuExtraItemRender:{type:[Array,Function,Object,Boolean],default:void 0},onLogout:Function,onClick:Function}),bt=we(),Ve={hashId:String,className:String},Ie={open:{type:Boolean,default:void 0},onOpenChange:Function,"onUpdate:open":Function,cryptoFn:Function,...R.pick(bt,["name","avatar"])},yt={...Ie,shortsKey:{type:Object,default:()=>({disabled:!1})}};function xt(e){const t=n.reactive({password:""}),{validate:a,resetFields:r,validateInfos:o}=p.useProForm(t,{password:[{validator:(i,l)=>(e&&l?e?.(l):l)?Promise.resolve():Promise.reject(e&&l?"密码错误":"请输入锁屏密码")}]});return{formState:t,validate:a,resetFields:r,validateInfos:o}}const Te=n.defineComponent({props:{...Ve,name:String,avatar:String,avatarSize:{type:Number,default:60},submitText:String,validator:Function,onSubmit:Function},setup(e,{expose:t,slots:a}){const{formState:r,validate:o,validateInfos:i,resetFields:l}=xt(e.validator),s=d=>{Object.assign(r,d)},u=(d="",f)=>{const y=d?`${e.className}-${d}`:e.className;return c.classNames(y,e.hashId,"")},g=()=>{o().then(()=>{e.onSubmit?.(r)}).catch(()=>{})};return t({formState:r,resetFields:l,merageFormState:s}),()=>n.createVNode("div",{class:u("user-form")},[n.createVNode("div",{class:u("user-info")},[n.createVNode(m.Avatar,{size:e.avatarSize,icon:n.createVNode(N.UserOutlined,null,null),src:e.avatar},null),e.name&&n.createVNode("div",{class:u("user-name")},[e.name])]),n.createVNode(m.Form,null,{default:()=>[n.createVNode(m.Form.Item,i.password,{default:()=>[n.createVNode(m.Input.Password,{value:r.password,placeholder:"请输入锁屏密码",onChange:d=>r.password=d.target.value},null)]})]}),n.createVNode(m.Button,{block:!0,type:"primary",onClick:()=>g(),style:{marginBlockStart:"24px"}},{default:()=>[e.submitText]}),a.default?.()])}}),Ct=n.defineComponent({name:"PageLockPopup",props:{...Ve,...Ie,password:String},setup(e){const[t,a]=A.useMergedState(!1,{value:n.computed(()=>c.isBoolean(e.open)?e.open:!1),onChange:e.onOpenChange}),[r,o]=A.useState(!1),i=pt(),l=(s="",u)=>{const g=s?`${e.className}-popup-${s}`:`${e.className}-popup`;return c.classNames(g,e.hashId,u||"")};return()=>t.value?n.createVNode(n.Teleport,{to:"body"},{default:()=>[n.createVNode("div",{class:l()},[r.value?n.createVNode("div",{class:l("form")},[n.createVNode(Te,{avatarSize:70,submitText:"进入系统",avatar:e.avatar,hashId:e.hashId,className:e.className,validator:s=>e.cryptoFn?.(s)===e.password,onSubmit:()=>a(!1)},{default:()=>[n.createVNode(m.Button,{style:{marginBlockStart:"16px"},type:"text",block:!0,onClick:()=>o(!1)},{default:()=>[n.createTextVNode("返回")]})]}),n.createVNode("div",{class:l("form-time")},[n.createVNode("span",{style:{fontSize:"26px"}},[`${i.hh}:${i.mm}`,n.createTextVNode(" "),i.a]),n.createVNode("span",{style:{fontSize:"30px"}},[i.day,n.createTextVNode(" "),i.dddd])])]):n.createVNode(n.Fragment,null,[n.createVNode("div",{class:l("head")},[n.createVNode("span",null,[i.day,n.createTextVNode(" "),i.dddd]),n.createVNode("span",{class:l("lock-icon"),onClick:()=>o(!0)},[n.createVNode(N.LockOutlined,{style:{position:"relative",top:"1px",marginInlineEnd:"4px"}},null),n.createTextVNode("点击解锁")])]),n.createVNode("div",{class:l("time",l("enter","fadeIn"))},[n.createVNode("div",{class:l("time-card")},[i.hh,n.createVNode("span",{class:l("time-range")},[i.a])]),n.createVNode("div",{class:l("time-card")},[i.mm])])])])]}):null}}),Nt=new p.Keyframe("fadeIn",{from:{opacity:0},to:{opacity:1}}),vt=e=>({[e.componentCls]:{"&-user-form":{[`${e.antCls}-form-item`]:{marginBlockEnd:0}},"&-user-info":{display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",gap:20,marginBlockEnd:e.marginLG},"&-user-name":{fontWeight:500,fontSize:18},"&-popup":{display:"flex",flexDirection:"column",background:e.colorBgContainer,position:"fixed",inset:0,zIndex:2200,width:"100vw",height:"100vh","&-enter":{animationDuration:".3s",animationFillMode:"both",animationName:Nt},"&-head":{display:"flex",alignItems:"center",justifyContent:"space-between",marginBlock:e.marginLG,color:e.colorTextSecondary,paddingInline:20,fontSize:20,lineHeight:"28px",fontWeight:600},"&-lock-icon":{cursor:"pointer",transition:"all .3s","&:hover":{transform:"scale(1.1)",color:e.colorText}},"&-time":{display:"flex",paddingInline:"10%",gap:"5rem",flex:1,paddingBottom:"40px",[`${e.componentCls}-popup-time-card`]:{position:"relative",width:"40%",height:"100%",display:"flex",alignItems:"center",justifyContent:"center",flex:"1 1 auto",fontSize:260,borderRadius:e.borderRadiusLG,background:e.colorFillContent},"&-range":{position:"absolute",left:"2%",top:"2%",fontSize:16,fontWeight:600,color:e.colorText}},"&-form":{position:"relative",display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",gap:e.marginLG,height:"100%",[`${e.componentCls}-user-form`]:{width:300},[`${e.componentCls}-popup-form-time`]:{position:"absolute",bottom:e.marginLG,left:"50%",transform:"translateX(-50%)",display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center"}}}}}),St=n.defineComponent({name:"PageLock",props:yt,emits:["update:open","openChange"],setup(e){const t=c.getPrefixCls({suffixCls:"page-lock",isPor:!0}),{wrapSSR:a,hashId:r}=p.useProStyle("ProPageLock",[vt],t),o=I.useLocalStorage(t,{open:!1,password:""}),[i,l]=A.useMergedState(!1,{value:n.computed(()=>e.open),onChange:h=>{e.onOpenChange?.(h),e["onUpdate:open"]?.(h)}}),[s,u]=A.useState(!1),g=n.ref();function d(h){return e.cryptoFn?e.cryptoFn(h):h}function f(h){o.value.open=s.value,o.value.password=d(h)}const y=n.computed(()=>e.shortsKey),T=n.computed(()=>o.value.open&&!!o.value.password),F=I.useMagicKeys();I.whenever(F["Alt+KeyL"],()=>{y.value?.disabled||i.value||l(!0)}),n.watch(s,h=>{f(h&&(g.value?.formState?.password||o.value.password)||"")}),n.onMounted(()=>{T.value?u(!0):f("")});const w=()=>{l(!1),u(!0)},S=()=>{l(!1),f(""),g.value?.resetFields()};return()=>a(n.createVNode(n.Fragment,null,[s.value&&n.createVNode(Ct,n.mergeProps(R.pick(e,["name","avatar"]),{open:s.value,hashId:r.value,className:t,password:o.value.password,cryptoFn:d,onOpenChange:u}),null),n.createVNode(he.GProModal,{width:400,type:"normal",title:"锁定屏幕",open:i.value,footer:!1,onCancel:S},{default:()=>[n.createVNode(Te,n.mergeProps({ref:g},R.pick(e,["name","avatar"]),{submitText:"锁定",hashId:r.value,className:t,onSubmit:w}),null)]})]))}});function wt(e,t){const a=new Map;return e.filter(r=>{const o=r[t];return a.has(o)?!1:(a.set(o,r),!0)})}function Vt(e){return e?/^https?:\/\/.*$/.test(e):!1}const It=new Set(["$","(",")","*","+",".","?","[","\\","]","^","{","|","}"]),Tt=({className:e,value:t})=>t?n.createVNode(m.Empty,{image:m.Empty.PRESENTED_IMAGE_SIMPLE,description:`未找到搜索结果 "${t}"`},null):n.createVNode("div",{class:e},[n.createTextVNode("没有搜索历史")]),Bt=n.defineComponent({props:{...re,className:String,hashId:String,keyword:String,onClose:Function},setup(e){const t=He.useRouter(),a=I.useLocalStorage(e.historyKey||c.getPrefixCls({suffixCls:"layout-search-history",isPor:!0}),[]),r=n.ref(0),o=n.ref([]),i=I.useThrottleFn(l,200);function l(h){if(h=h.trim(),!h){o.value=[];return}const b=f(h),v=[];e.dataSource.forEach(M=>{if(M.meta?.hideInMenu)return;const Y=M.meta?.title||M.name||"";if(b.test(Y.toLowerCase())){let B=[];const P=M?.key?.split("-")||[];for(let O=0;O<P.length;O++)B.push(P.slice(0,O+1).join("-"));B=B.map(O=>e.dataSource.find(q=>q?.key===O)?.meta?.title||""),v.push(c.merge(M,{meta:{title:B.join("**")}}))}}),o.value=v,v.length>0&&(r.value=0),r.value=0}n.watch(()=>e.keyword,h=>{h?i(h):o.value=[...a.value]});function s(){o.value=[],e.onClose?.()}function u(){const h=document.querySelector(`[data-search-item="${r.value}"]`);h&&h.scrollIntoView({block:"nearest"})}async function g(){if(o.value.length===0)return;const h=o.value,b=r.value;if(h.length===0||b<0)return;const v=h[b];v&&(a.value.push(v),s(),await n.nextTick(),Vt(v.path)?window.open(v.path,"_blank"):t.push({path:v.path,replace:!0}))}function d(h){return It.has(h)?`\\${h}`:h}function f(h){const b=[...h].map(v=>d(v)).join(".*");return new RegExp(`.*${b}.*`)}function y(){o.value.length!==0&&(r.value--,r.value<0&&(r.value=o.value.length-1),u())}function T(){o.value.length!==0&&(r.value++,r.value>o.value.length-1&&(r.value=0),u())}n.onMounted(()=>{a.value.length>0&&(o.value=a.value),I.onKeyStroke("Enter",g),I.onKeyStroke("ArrowUp",y),I.onKeyStroke("ArrowDown",T)});function F(h){r.value=h}function w(h,b){h.stopPropagation(),e.keyword?o.value.splice(b,1):a.value.splice(b,1),r.value=r.value-1>=0?r.value-1:0,u()}const S=h=>c.classNames(`${e.className}${h?`-${h}`:""}`,e.hashId);return()=>n.createVNode(n.Fragment,null,[o.value.length>0?n.createVNode(n.Fragment,null,[a.value.length>0&&!e.keyword&&n.createVNode("div",{class:S("panel-title")},[n.createTextVNode("搜索历史")]),n.createVNode("div",{class:S("panel-list")},[wt(o.value,"path").map((h,b)=>n.createVNode("div",{key:h.name,class:S(c.classNames("panel-item",b===r.value&&"active")),"data-search-item":b,onClick:()=>g(),onMouseenter:()=>F(b)},[n.createVNode("div",{class:S("panel-item-left")},[n.createVNode($.LazyIcon,n.mergeProps(h.meta||{},{icon:h.meta?.icon||n.createVNode(N.MenuOutlined,null,null),classNames:S("panel-icon")}),null),h.meta?.title?.split("**")?.map((v,M)=>n.createVNode(n.Fragment,null,[v,M<h.meta?.title?.split("**")?.length-1&&n.createVNode(N.ArrowRightOutlined,null,null)])),n.createVNode("span",null,null)]),n.createVNode(N.CloseOutlined,{onClick:v=>w(v,b)},null)]))])]):n.createVNode(Tt,{className:S("result"),value:e.keyword},null)])}}),Rt=e=>({[e.componentCls]:{display:"flex",alignItems:"center",justifyContent:"center",height:36,gap:12,cursor:"pointer",fontSize:e.fontSizeSM,color:e.colorTextTertiary,paddingBlock:e.paddingXXS/2,paddingInline:e.paddingXS,borderRadius:e.borderRadiusLG*2,backgroundColor:e.layout?.header?.colorBgRightActionsItemHover,transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,">.anticon":{fontSize:e.fontSize,color:e.colorTextTertiary},"&-word-icon":{padding:"4px 6px",lineHeight:p.unit(e.fontSizeSM),borderTopLeftRadius:e.borderRadiusSM,borderBottomLeftRadius:e.borderRadiusSM,borderTopRightRadius:e.borderRadiusLG*2,borderBottomRightRadius:e.borderRadiusLG*2,backgroundColor:e.colorBgContainer},"&:hover":{color:e.colorTextSecondary},"&-panel":{"&-title":{color:e.colorTextQuaternary,lineHeight:e.lineHeight,marginBlockEnd:e.marginXS},"&-list":{display:"flex",flexDirection:"column",gap:12},"&-item":{display:"flex",alignItems:"center",justifyContent:"space-between",cursor:"pointer",fontSize:e.fontSize,lineHeight:e.lineHeight,padding:e.paddingXS,borderRadius:e.borderRadiusLG,backgroundColor:e.colorBgContainer,transition:`all ${e.motionDurationFast} ${e.motionEaseInOut}`,"&-left":{display:"flex",alignItems:"center",gap:e.sizeStep},"&.active":{backgroundColor:e.colorPrimary,color:e.colorTextLightSolid}}},"&-result":{display:"flex",alignItems:"center",justifyContent:"center",paddingBlockStart:60,color:e.colorTextQuaternary},"&-modal-footer":{display:"flex",alignItems:"center",gap:e.marginXS,fontSize:12,color:e.colorTextSecondary},"&-modal-footer-icon":{display:"flex",alignItems:"center",gap:4}}});function At(e){return p.useStyle("SearchPageInput",t=>{const a=p.mergeToken(t,{});return[Rt(a)]},e)}const Et=({className:e,hashId:t})=>n.createVNode("div",{class:c.classNames(`${e}-footer`,t)},[n.createVNode("div",{class:c.classNames(`${e}-footer-icon`,t)},[n.createVNode(N.EnterOutlined,null,null),n.createTextVNode("选择")]),n.createVNode("div",{class:c.classNames(`${e}-footer-icon`,t)},[n.createVNode(N.ArrowUpOutlined,null,null),n.createVNode(N.ArrowUpOutlined,{rotate:180},null),n.createTextVNode("导航")])]),Ft=n.defineComponent({name:"SearchPageInput",props:{...re,dark:{type:Boolean,default:void 0},disabledShortKey:{type:Boolean,default:!1}},setup(e){const t=c.getPrefixCls({suffixCls:"page-search",isPor:!0}),{wrapSSR:a,hashId:r}=At(t),[o,i]=A.useState(""),[l,s]=A.useState(!1),u=$.useProLayoutContext(),g=I.useMagicKeys(),d=c.isWindowsOs()?g["ctrl+k"]:g["cmd+k"],f=n.ref(),y=n.computed(()=>c.getLevelData(e.dataSource?.length?e.dataSource:u?.menuProps?.value?.menuData));I.whenever(d,()=>{e.disabledShortKey||s(!0)}),I.whenever(l,()=>{n.nextTick(()=>{f.value?.focus()})});const T=()=>{s(!1),o.value=""};return()=>{const F={className:`${t}`,hashId:r.value},w=`${t}-modal`;return a(n.createVNode(n.Fragment,null,[n.createVNode("div",{class:c.classNames(t,r.value),onClick:()=>s(!0)},[n.createVNode(N.SearchOutlined,null,null),n.createVNode("span",{class:c.classNames(`${t}-word`,r.value)},[n.createTextVNode("搜索")]),n.createVNode("span",{class:c.classNames(`${t}-word-icon`,r.value)},[n.createTextVNode("⌘")," ",n.createVNode("kbd",null,[n.createTextVNode("K")])])]),n.createVNode(he.GProModal,{class:c.classNames(`${w}`,r.value),width:600,scrollProps:{maxHeight:400,minHeight:200},centered:!1,title:n.createVNode(m.Input,{style:{width:`${600*.8}px`,padding:0},ref:f,bordered:!1,size:"large",placeholder:"搜索导航菜单",value:o.value,prefix:n.createVNode(N.SearchOutlined,null,null),onChange:S=>i(S.target.value)},null),open:l.value,footer:n.createVNode(Et,{className:w,hashId:r.value},null),onCancel:()=>T()},{default:()=>[n.createVNode(Bt,n.mergeProps(F,{keyword:o.value,dataSource:y.value,onClose:()=>T()}),null)]})]))}}}),$t=e=>({[`${e.componentCls}`]:{"&-header-actions":{display:"flex",alignItems:"center",justifyContent:"flex-end",height:"100%",gap:e.paddingXS,"&-item":{display:"inline-flex",alignItems:"center",justifyContent:"center",paddingBlock:0,paddingInline:2,color:e.layout?.header?.colorTextRightActionsItem,fontSize:14,cursor:"pointer",borderRadius:e.borderRadius,".anticon":{color:e.layout?.header?.colorTextRightActionsItem,transition:`color ${e.motionDurationMid}, background-color ${e.motionDurationMid}`,"&:hover":{color:e.layout?.header?.colorTextRightActionsItemHover}},[`&${e.componentCls}-header-actions-theme`]:{fontSize:18,[`${e.componentCls}-header-actions-icon`]:{paddingInline:4,paddingBlock:4}},"> *":{paddingInline:6,paddingBlock:6,borderRadius:e.borderRadius,transition:`color ${e.motionDurationMid}, background-color ${e.motionDurationMid}`,"&:hover":{color:e.layout?.header?.colorTextRightActionsItemHover,backgroundColor:e.layout?.header?.colorBgRightActionsItemHover}}},[`&>${e.antCls}-dropdown-trigger`]:{color:e.colorTextTertiary,paddingInline:8,paddingBlock:8,cursor:"pointer",display:"flex",alignItems:"center",height:44,lineHeight:p.unit(44),borderRadius:e.borderRadius,paddingInlineEnd:e.padding,"&:hover":{backgroundColor:p.setAlpha(e.colorTextBase,.03)}},"&-avatar":{display:"inline-flex",alignItems:"center",justifyContent:"center",paddingInlineStart:e.padding,paddingInlineEnd:e.padding,cursor:"pointer",color:e.layout?.header?.colorTextRightActionsItem,[`${e.componentCls}-header-actions-name`]:{marginInlineStart:8},"> div":{height:"44px",color:e.layout?.header?.colorTextRightActionsItem,paddingInline:8,paddingBlock:8,cursor:"pointer",display:"flex",alignItems:"center",lineHeight:"44px",borderRadius:e.borderRadius,"&:hover":{backgroundColor:e.layout?.header?.colorBgRightActionsItemHover}}}}}});function kt(e){return p.useStyle("RightContent",t=>{const a=p.mergeToken(t);return[$t(a)]},e)}const Mt=n.defineComponent({name:"GlobalRightContent",props:we(),inheritAttrs:!1,emits:{click:e=>e.length>0,logout:e=>typeof e=="function"},slots:Object,setup(e,{slots:t}){const{isFullscreen:a,toggle:r}=I.useFullscreen(),o=$.useProLayoutContext(),i=A.useMediaQuery(),{setTheme:l,isDark:s,resolvedTheme:u}=$.useThemeContext(),g=c.getPrefixCls({suffixCls:"global",isPor:!0}),{wrapSSR:d,hashId:f}=kt(g),y=n.ref(),[T,F]=A.useState(!1),[w,S]=A.useState("auto"),h=n.computed(()=>c.isBoolean(o?.isMobile?.value)?o?.isMobile?.value:i.value==="sm"||i.value==="xs"),b=n.computed(()=>e.actions===!1?{}:{...{lock:!0,theme:!0,search:!0,themeEditor:!0,fullScreen:!0},...e.actions}),v=I.useDebounceFn(async B=>{S(B)},160),M=()=>{y.value&&$.toggleAnimateTheme(y.value,{isDark:u.value==="light",setTheme:l})};function Y(B){c.isFunction(e.onClick)&&e.onClick?.(B)}return()=>{const B=c.getSlotsProps({slots:t,props:e,keys:["dropdownRender","dropdownMenuRender","dropdownMenuExtraItemRender"],render:!0}),P=c.getSlot({slots:t,props:e,key:"actionsRender"}),O=a.value?N.CompressOutlined:N.ExpandOutlined;return d(n.createVNode("div",{class:`${g}-right-content ${f.value}`.trim(),style:{minWidth:w.value,height:"100%"}},[n.createVNode("div",{style:{height:"100%"}},[n.createVNode(gt,{key:"resize-observer",onResize:({width:q})=>{v(q)}},{default:()=>[n.createVNode("div",{class:`${g}-header-actions ${f.value}`.trim()},[t.default?.()??n.createVNode(n.Fragment,null,[b.value.search&&!h.value&&n.createVNode(Ft,{dataSource:e.dataSource,disabledShortKey:e.shortsKey?.disabled},null),b.value.theme&&n.createVNode("div",{ref:y,class:`${g}-header-actions-item ${g}-header-actions-theme ${f.value}`.trim()},[n.createVNode(_,{class:`${g}-header-actions-icon ${f.value}`.trim(),type:s.value?"moon":"sunny",onClick:()=>M()},null)]),b.value.themeEditor&&!h.value&&n.createVNode("div",{class:`${g}-header-actions-item ${f.value}`.trim()},[n.createVNode(N.SettingOutlined,{onClick:()=>Y("themeEditor")},null)]),b.value.fullScreen&&!h.value&&n.createVNode("div",{class:`${g}-header-actions-item ${f.value}`.trim()},[n.createVNode(O,{onClick:()=>r()},null)]),P?P?.([`${g}-header-actions-item`,f.value]):null]),n.createVNode(m.Dropdown,n.mergeProps({placement:"bottomRight"},e.dropdownProps,{overlay:B.dropdownMenuRender||n.createVNode(m.Menu,null,{default:()=>[B.dropdownMenuExtraItemRender,b.value.lock&&n.createVNode(n.Fragment,null,[n.createVNode(m.MenuItem,{key:"lock",icon:n.createVNode(N.LockOutlined,null,null),onClick:()=>F(!0)},{default:()=>[n.createTextVNode("锁定屏幕")]}),n.createVNode(m.Menu.Divider,null,null)]),n.createVNode(m.MenuItem,{key:"logout",icon:n.createVNode(N.LogoutOutlined,null,null),onClick:()=>e.onLogout?.()},{default:()=>[n.createTextVNode("退出登录")]})]})}),{default:()=>[B.dropdownRender||n.createVNode("div",{class:`${g}-header-actions-avatar ${f.value}`.trim()},[n.createVNode(m.Avatar,{size:28,icon:n.createVNode(N.UserOutlined,null,null),src:e.avatar},null),n.createVNode("span",{class:`${g}-header-actions-name ${f.value}`.trim()},[e.name])])]})])]})]),n.createVNode(St,{open:T.value,onOpenChange:q=>F(q)},null)]))}}}),{provideContext:Ot,useInjectContext:D}=p.useContext("theme-editor"),Be={width:Number,isEqual:Boolean,open:{type:Boolean,default:void 0},onSync:Function,onOpenChange:{type:Function,default:void 0}},Re={open:{type:Boolean,default:void 0},"onUpdate:open":{type:Function,default:void 0},defaultValue:{type:Object},defaultTokens:{type:Object,default:()=>({})},onChange:{type:Function},copyButton:{type:Boolean,default:!0},onChangeTokensState:{type:Function},onChangeSettingState:{type:Function}};function zt(e){const a=Object.keys(e).reduce((r,o)=>(r[o]=!1,r),{});return e.layout==="mix"&&(a.fixSiderbar=!0,a.fixedHeader=!0),e.layout==="top"&&(a.fixSiderbar=!0,a.splitMenus=!0),e.layout==="side"&&(a.splitMenus=!0),e.layout==="simple"&&(a.splitMenus=!0,a.fixedHeader=!0,a.showTabsBar=!0,a.fixedTabsBar=!0),e.layout==="wide"&&(a.splitMenus=!0,a.fixedHeader=!0,a.fixSiderbar=!0,a.showTabsBar=!0,a.fixedTabsBar=!0),a}function Ae(e){return e.layout==="mix"&&(e.fixSiderbar=!0,e.fixedHeader=!0,e.splitMenus=!0),e.layout==="top"&&(e.fixSiderbar=!1,e.fixedHeader=!0,e.splitMenus=!1),e.layout==="simple"&&(e.splitMenus=!1,e.showTabsBar=!1,e.fixedHeader=!1,e.fixSiderbar=!1),e.layout==="side"&&(e.splitMenus=!1,e.fixedHeader=!0,e.fixSiderbar=!0),e.layout==="wide"&&(e.splitMenus=!1,e.fixSiderbar=!1,e.fixedHeader=!0,e.showTabsBar=!1,e.fixedTabsBar=!1),e}const Lt=[{value:"light",label:()=>n.createVNode("div",{style:{display:"flex",alignItems:"center",gap:"6px"}},[n.createVNode(_,{type:"moon"},null),n.createTextVNode("亮色")])},{value:"dark",label:()=>n.createVNode("div",{style:{display:"flex",alignItems:"center",gap:"6px"}},[n.createVNode(_,{type:"sunny"},null),n.createTextVNode("深色")])},{value:"system",label:()=>n.createVNode("div",{style:{display:"flex",alignItems:"center",gap:"6px"}},[n.createVNode(N.DesktopOutlined,null,null),n.createTextVNode("自动")])}],Pt=[{key:"light",title:"亮色"},{key:"dark",title:"深色"}],Ee=[{key:"side",title:"侧边导航"},{key:"mix",title:"混合导航"},{key:"top",title:"顶部导航"},{key:"wide",title:"定宽导航"},{key:"simple",title:"简单导航"}],Ht=[{label:"fixedHeader",title:"固定 Header"},{label:"fixSiderbar",title:"固定侧边菜单"},{label:"splitMenus",title:"自动分割菜单"}],_t=[{label:"showTabsBar",title:"多标签"},{label:"fixedTabsBar",title:"固定多标签"}],Dt=[{key:"techBlue",color:"#1677FF",title:"拂晓蓝(默认)"},{key:"dust",color:"#F5222D",title:"薄暮"},{key:"volcano",color:"#FA541C",title:"火山"},{key:"sunset",color:"#FAAD14",title:"日暮"},{key:"cyan",color:"#13C2C2",title:"明青"},{key:"green",color:"#52C41A",title:"极光绿"},{key:"geekblue",color:"#2F54EB",title:"极客蓝"},{key:"purple",color:"#722ED1",title:"酱紫"}],jt=n.defineComponent({name:"BlockCheckbox",props:{value:String,list:{type:Array,default:()=>[]},configType:String,onChange:Function},setup(e){const{hashId:t,prefixCls:a}=D();return()=>{const r=`${a}-block-checkbox`;return n.createVNode("div",{class:[r,t.value]},[e.list.map(o=>n.createVNode(m.Tooltip,{title:o.title,key:o.key},{default:()=>[n.createVNode("div",{class:c.classNames(t.value,`${r}-item`,`${r}-item-${o.key}`,`${r}-${e.configType}-item`),onClick:i=>e.onChange?.(o.key,i)},[o.key==="wide"&&n.createVNode("div",{class:[`${r}-item-${o.key}-content`,t.value]},null),n.createVNode(N.CheckOutlined,{class:`${r}-selectIcon ${t.value}`.trim(),style:{display:e.value===o.key?"block":"none"}},null),o?.icon?n.createVNode("div",{class:`${r}-icon ${t.value}`.trim()},[o.icon]):null])]}))])}}}),ee=n.defineComponent({name:"RegionalChange",props:{label:String,value:Boolean,valueKey:String,disabled:Boolean,onChange:Function},setup(e){const{hashId:t,prefixCls:a}=D();return()=>n.createVNode(m.List,{class:`${a}-list ${t.value}`.trim(),split:!1,size:"small",renderItem:({item:r})=>n.createVNode(m.Tooltip,{title:r.disabled?r.disabledReason:"",placement:"left"},{default:()=>[n.createVNode(m.List.Item,{actions:[r.action]},{default:()=>[n.createVNode("span",{style:{opacity:r.disabled?.5:1}},[r.title])]})]}),dataSource:[{title:e.label,action:n.createVNode(m.Switch,{size:"small",disabled:e.disabled,checked:!!e.value,onChange:r=>{e.onChange&&e.onChange(e.valueKey,r)}},null)}]},null)}}),qt=n.defineComponent({props:{...Be,...R.pick(Re,["copyButton"]),theme:[Boolean,String],onChange:Function,onChangeColorScheme:Function},setup(e){const{hashId:t,drawerClass:a,prefixCls:r,config:o}=D(),{copy:i,copied:l,isSupported:s}=I.useClipboard(),u=n.computed(()=>zt(o.value));n.watch(l,d=>{d&&m.message.success("拷贝成功,请到 /src/store/modules/layout.ts 文件中替换 layoutConfig 默认配置")});const g=()=>{s.value&&i(JSON.stringify(o.value))};return()=>n.createVNode(m.Drawer,{width:e.width,closable:!1,placement:"right",open:e.open,bodyStyle:{padding:0,overflow:"hidden"},maskStyle:{background:"transparent"},onClose:()=>e.onOpenChange?.(!1)},{default:()=>[n.createVNode("div",{class:c.classNames([`${a}-wrapper`,t.value])},[n.createVNode(fe.GScrollbars,null,{default:()=>[n.createVNode("div",{class:c.classNames([`${a}-content`,t.value])},[n.createVNode("div",{class:c.classNames([`${r}-card`,t.value])},[n.createVNode("div",{class:c.classNames(`${r}-card-header`,t.value)},[n.createVNode("div",{class:c.classNames(`${r}-card-header-title`,t.value)},[n.createVNode("span",null,[n.createTextVNode("系统配置")]),n.createVNode(m.Tooltip,{title:!e.isEqual&&"数据有变化,点击可进行重置",placement:"left"},{default:()=>[n.createVNode(m.Badge,{dot:!e.isEqual},{default:()=>[n.createVNode("div",{class:c.classNames(`${r}-card-header-action`,t.value),onClick:()=>!e.isEqual&&e.onSync?.()},[n.createVNode(_,{type:"reload"},null)])]})]})]),n.createVNode("div",{class:c.classNames(`${r}-card-header-subtitle`,t.value)},[o.value.title])]),n.createVNode("div",{class:c.classNames(`${r}-card-content`,t.value)},[n.createVNode(Z,{prefixCls:`${r}`,hashId:t.value,title:"整体风格"},{default:()=>[n.createVNode(m.Segmented,{value:e.theme,options:Lt,onChange:d=>e.onChangeColorScheme?.(d)},null)]}),n.createVNode(m.Divider,null,null),n.createVNode(Z,{hashId:t.value,prefixCls:r,title:"导航模式"},{default:()=>[n.createVNode(jt,{value:o.value.layout,key:"layout",configType:"layout",list:Ee,onChange:d=>e.onChange?.({layout:d})},null)]}),Ht.map(({label:d,title:f})=>n.createVNode(ee,{label:f,valueKey:d,value:o.value[d],disabled:u.value?.[d],onChange:(y,T)=>e.onChange?.({[y]:T})},null)),n.createVNode(m.Divider,null,null),n.createVNode(Z,{hashId:t.value,prefixCls:r,title:"其他设置"},{default:()=>[_t.map(({label:d,title:f})=>n.createVNode(ee,{label:f,valueKey:d,value:o.value[d],disabled:u.value[d],onChange:(y,T)=>e.onChange?.({[y]:T})},null)),n.createVNode(ee,{label:"色弱模式",valueKey:"colorWeak",value:o.value?.colorWeak,onChange:(d,f)=>e.onChange?.({[d]:f})},null),n.createVNode(ee,{label:"顶部进度条",valueKey:"progress",value:o.value?.progress,onChange:(d,f)=>e.onChange?.({[d]:f})},null)]}),e.copyButton&&n.createVNode(m.Divider,null,null),n.createVNode("div",{style:{display:"flex",gap:"10px"}},[e.copyButton&&n.createVNode(m.Button,{onClick:()=>g(),block:!0},{default:()=>[n.createVNode(N.CopyOutlined,null,null),n.createTextVNode("拷贝设置")]}),n.createVNode(m.Button,{block:!0},{default:()=>[n.createVNode(N.ClearOutlined,null,null),n.createTextVNode("清空缓存")]})])])])])]})])]})}}),Wt=e=>({[`${e.componentCls}`]:{display:"flex",alignItems:"flex-start",flex:1,overflow:"hidden","&-nav":{position:"relative",paddingInline:e.paddingXS},"&-line":{position:"absolute",width:3,height:80,left:0,background:e.colorPrimary,transition:`top ${e.motionDurationMid}`,borderRadius:"0 9px 9px 0"},"&-panel":{cursor:"pointer",textAlign:"center",width:56,height:80,padding:e.paddingXXS,borderRadius:e.borderRadius*2,marginBlockEnd:e.marginXS,transition:`all ${e.motionDurationMid} linear`,"&-active":{backgroundColor:e.layout?.header?.colorBgRightActionsItemHover},svg:{fontSize:48,borderRadius:9},"&-title":{fontSize:e.fontSizeSM,marginBlockStart:e.marginXXS-2,lineHeight:"20px",color:e.colorText}},"&-content":{flex:1,height:`calc(100% - ${e.paddingXS}px)`,color:e.colorText,marginInlineEnd:e.marginXS,borderRadius:e.borderRadius*2,backgroundColor:e.layout?.header?.colorBgRightActionsItemHover}}}),Gt=n.defineComponent({props:{activeKey:{type:String,default:""},dataSource:{type:Array,default:()=>[]},renderItem:{type:Function},renderContent:{type:Function},onChange:{type:Function}},setup(e){const t=c.getPrefixCls({suffixCls:"switch-tab",isPor:!0}),{wrapSSR:a,hashId:r}=p.useProStyle("SwitchTab",[Wt],t),o=n.ref(e.activeKey);n.watch(()=>e.activeKey,l=>{o.value=l});function i(l){o.value=l,e.onChange?.(l)}return()=>a(n.createVNode("div",{class:c.classNames(`${t}`,r.value)},[n.createVNode("div",{class:c.classNames(`${t}-nav`,r.value)},[e.dataSource.map(l=>n.createVNode("div",{key:l.value,class:c.classNames(`${t}-panel`,r.value,o.value===l.value&&`${t}-panel-active`),onClick:()=>i(l.value)},[e.renderItem?.(l),n.createVNode("div",{class:c.classNames(`${t}-panel-title`,r.value)},[l.label])])),n.createVNode("div",{class:c.classNames(`${t}-line`,r.value),style:{top:`${88*e.dataSource.findIndex(l=>l.value===o.value)}px`}},null)]),n.createVNode("div",{class:c.classNames(`${t}-content`,r.value)},[n.createVNode(fe.GScrollbars,null,{default:()=>[e.renderContent?.(o.value)]})])]))}}),{provideContext:Kt,useInjectContext:Xt}=p.useContext("tokens-state"),Zt=n.defineComponent({setup(){const{prefixCls:e,hashId:t,tokens:a}=D(),{onChange:r}=Xt(),{token:o}=p.useProConfigContext(),i=n.computed(()=>({colorPrimary:a.value.colorPrimary||o.value.colorPrimary})),l=n.computed(()=>{const s=new ge.AggregationColor(i.value.colorPrimary);return{hsb:s.toHsbString(),rgb:s.toRgbString(),hex:s.toHexString()}});return()=>n.createVNode(Z,{hashId:t.value,prefixCls:e,title:"主题色"},{default:()=>[n.createVNode("div",{class:c.classNames(`${e}-color-list`,t.value)},[Dt.map(s=>n.createVNode(m.Tooltip,{title:s.title,key:s.key},{default:()=>[n.createVNode("div",{class:c.classNames(`${e}-color-item`,t.value),style:{background:s.color},onClick:()=>{r?.({colorPrimary:s.color})}},[s.color.toLowerCase()===i.value.colorPrimary.toLowerCase()?n.createVNode(N.CheckOutlined,{style:{color:o.value.colorWhite,fontSize:"12px"}},null):null])]}))]),n.createVNode(ge.GColorPicker,{value:i.value.colorPrimary,onChangeComplete:s=>{r?.({colorPrimary:s.toHexString()})}},{default:()=>[n.createVNode("div",{class:c.classNames(`${e}-color-picker`,t.value)},[n.createVNode("div",{class:c.classNames(`${e}-color-picker-inner`,t.value)},[n.createVNode("div",{class:c.classNames(`${e}-color-picker-top`,t.value),style:{background:i.value.colorPrimary}},[n.createVNode("p",null,[n.createTextVNode("hsb:"),l.value.hsb]),n.createVNode("p",null,[n.createTextVNode("rgb:"),l.value.rgb])]),n.createVNode("div",{class:c.classNames(`${e}-color-picker-bottom`,t.value)},[n.createVNode("div",null,[n.createVNode("p",null,[n.createTextVNode("自定义主题颜色")]),n.createVNode("p",null,[n.createTextVNode("HEX:"),l.value.hex])]),n.createVNode(N.EditOutlined,{style:{fontSize:"18px"}},null)])])])]})]})}}),Yt=n.defineComponent({setup(){const{prefixCls:e,hashId:t}=D();return()=>n.createVNode(Z,{hashId:t.value,prefixCls:e,title:"侧边主题色"},null)}}),Qt=n.defineComponent({setup(){const{token:e}=p.useProConfigContext();return()=>n.createVNode("div",{style:{padding:p.unit(e.value.padding)}},[n.createVNode(Zt,null,null),n.createVNode(Yt,null,null)])}}),Jt=n.defineComponent({name:"ColorSvg",setup(){return()=>n.createVNode("svg",{width:"1em",height:"1em",viewBox:"0 0 64 64",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[n.createVNode("rect",{width:"8",height:"8",fill:"#DBE1FC"},null),n.createVNode("rect",{y:"8",width:"8",height:"8",fill:"#B6C5FA"},null),n.createVNode("rect",{y:"16",width:"8",height:"8",fill:"#90A9F9"},null),n.createVNode("rect",{y:"24",width:"8",height:"8",fill:"#688DF7"},null),n.createVNode("rect",{y:"32",width:"8",height:"8",fill:"#4471EC"},null),n.createVNode("rect",{y:"40",width:"8",height:"8",fill:"#2257D2"},null),n.createVNode("rect",{y:"48",width:"8",height:"8",fill:"#1640A6"},null),n.createVNode("rect",{y:"56",width:"8",height:"8",fill:"#0D2B76"},null),n.createVNode("rect",{x:"48",width:"8",height:"8",fill:"#CBEAD3"},null),n.createVNode("rect",{x:"48",y:"8",width:"8",height:"8",fill:"#A4D7B5"},null),n.createVNode("rect",{x:"48",y:"16",width:"8",height:"8",fill:"#77BE92"},null),n.createVNode("rect",{x:"48",y:"24",width:"8",height:"8",fill:"#57A075"},null),n.createVNode("rect",{x:"48",y:"32",width:"8",height:"8",fill:"#3F855C"},null),n.createVNode("rect",{x:"48",y:"40",width:"8",height:"8",fill:"#306948"},null),n.createVNode("rect",{x:"48",y:"48",width:"8",height:"8",fill:"#235136"},null),n.createVNode("rect",{x:"48",y:"56",width:"8",height:"8",fill:"#163724"},null),n.createVNode("rect",{x:"32",width:"8",height:"8",fill:"#F8DCCA"},null),n.createVNode("rect",{x:"32",y:"8",width:"8",height:"8",fill:"#F3BA94"},null),n.createVNode("rect",{x:"32",y:"16",width:"8",height:"8",fill:"#EC9B66"},null),n.createVNode("rect",{x:"32",y:"24",width:"8",height:"8",fill:"#D97E40"},null),n.createVNode("rect",{x:"32",y:"32",width:"8",height:"8",fill:"#B9642A"},null),n.createVNode("rect",{x:"32",y:"40",width:"8",height:"8",fill:"#944A1A"},null),n.createVNode("rect",{x:"32",y:"48",width:"8",height:"8",fill:"#713712"},null),n.createVNode("rect",{x:"32",y:"56",width:"8",height:"8",fill:"#51270A"},null),n.createVNode("rect",{x:"56",width:"8",height:"8",fill:"#D5E3FC"},null),n.createVNode("rect",{x:"56",y:"8",width:"8",height:"8",fill:"#A3C7FA"},null),n.createVNode("rect",{x:"56",y:"16",width:"8",height:"8",fill:"#6EAAF8"},null),n.createVNode("rect",{x:"56",y:"24",width:"8",height:"8",fill:"#4C91E7"},null),n.createVNode("rect",{x:"56",y:"32",width:"8",height:"8",fill:"#3577C8"},null),n.createVNode("rect",{x:"56",y:"40",width:"8",height:"8",fill:"#295EA0"},null),n.createVNode("rect",{x:"56",y:"48",width:"8",height:"8",fill:"#1C4679"},null),n.createVNode("rect",{x:"56",y:"56",width:"8",height:"8",fill:"#123258"},null),n.createVNode("rect",{x:"24",width:"8",height:"8",fill:"#F8DADB"},null),n.createVNode("rect",{x:"24",y:"8",width:"8",height:"8",fill:"#F1B2B3"},null),n.createVNode("rect",{x:"24",y:"16",width:"8",height:"8",fill:"#ED8B8D"},null),n.createVNode("rect",{x:"24",y:"24",width:"8",height:"8",fill:"#D96B6D"},null),n.createVNode("rect",{x:"24",y:"32",width:"8",height:"8",fill:"#BD5156"},null),n.createVNode("rect",{x:"24",y:"40",width:"8",height:"8",fill:"#96373C"},null),n.createVNode("rect",{x:"24",y:"48",width:"8",height:"8",fill:"#752027"},null),n.createVNode("rect",{x:"24",y:"56",width:"8",height:"8",fill:"#581119"},null),n.createVNode("rect",{x:"8",width:"8",height:"8",fill:"#EBDDFC"},null),n.createVNode("rect",{x:"8",y:"8",width:"8",height:"8",fill:"#D6BDFA"},null),n.createVNode("rect",{x:"8",y:"16",width:"8",height:"8",fill:"#BE9AF8"},null),n.createVNode("rect",{x:"8",y:"24",width:"8",height:"8",fill:"#A079E4"},null),n.createVNode("rect",{x:"8",y:"32",width:"8",height:"8",fill:"#8862CA"},null),n.createVNode("rect",{x:"8",y:"40",width:"8",height:"8",fill:"#6A44AB"},null),n.createVNode("rect",{x:"8",y:"48",width:"8",height:"8",fill:"#512A91"},null),n.createVNode("rect",{x:"8",y:"56",width:"8",height:"8",fill:"#360F72"},null),n.createVNode("rect",{x:"40",width:"8",height:"8",fill:"#FBE8BF"},null),n.createVNode("rect",{x:"40",y:"8",width:"8",height:"8",fill:"#F7D582"},null),n.createVNode("rect",{x:"40",y:"16",width:"8",height:"8",fill:"#ECBB46"},null),n.createVNode("rect",{x:"40",y:"24",width:"8",height:"8",fill:"#CA9E35"},null),n.createVNode("rect",{x:"40",y:"32",width:"8",height:"8",fill:"#9B7926"},null),n.createVNode("rect",{x:"40",y:"40",width:"8",height:"8",fill:"#74591A"},null),n.createVNode("rect",{x:"40",y:"48",width:"8",height:"8",fill:"#584312"},null),n.createVNode("rect",{x:"40",y:"56",width:"8",height:"8",fill:"#3D2E09"},null),n.createVNode("rect",{x:"16",width:"8",height:"8",fill:"#F8D9EA"},null),n.createVNode("rect",{x:"16",y:"8",width:"8",height:"8",fill:"#F1AED7"},null),n.createVNode("rect",{x:"16",y:"16",width:"8",height:"8",fill:"#EC7EC7"},null),n.createVNode("rect",{x:"16",y:"24",width:"8",height:"8",fill:"#D95EB1"},null),n.createVNode("rect",{x:"16",y:"32",width:"8",height:"8",fill:"#BB4998"},null),n.createVNode("rect",{x:"16",y:"40",width:"8",height:"8",fill:"#943477"},null),n.createVNode("rect",{x:"16",y:"48",width:"8",height:"8",fill:"#72215B"},null),n.createVNode("rect",{x:"16",y:"56",width:"8",height:"8",fill:"#571042"},null)])}}),Ut=[{label:"色彩",value:"colors"}],en=n.defineComponent({props:{...Be,onChange:{type:Function,default:void 0}},setup(e){const{hashId:t,prefixCls:a,drawerClass:r}=D(),{token:o}=p.useProConfigContext(),i=n.ref("colors"),l=n.computed(()=>$.getTokenLayoutTheme(o.value)),s=n.computed(()=>{const u=Ee.find(d=>d.key===l.value.layout)?.title;return`当前系统布局:${Pt.find(d=>d.key===l.value.theme)?.title}/${u}`});return Kt({onChange:e.onChange}),()=>{const{width:u,open:g,onOpenChange:d}=e;return n.createVNode(m.Drawer,{width:u,closable:!1,placement:"right",open:g,bodyStyle:{padding:0},maskStyle:{background:"transparent"},onClose:()=>d?.(!1)},{default:()=>[n.createVNode("div",{class:c.classNames([`${r}-wrapper`,t.value])},[n.createVNode("div",{style:{paddingInline:"8px",paddingTop:"8px"}},[n.createVNode("div",{class:c.classNames(`${a}-card-header`,t.value)},[n.createVNode("div",{class:c.classNames(`${a}-card-header-title`,t.value)},[n.createVNode("span",null,[n.createTextVNode("主题配置")]),n.createVNode(m.Tooltip,{title:!e.isEqual&&"数据有变化,点击可进行重置",placement:"left"},{default:()=>[n.createVNode(m.Badge,{dot:!e.isEqual},{default:()=>[n.createVNode("div",{class:c.classNames(`${a}-card-header-action`,t.value),onClick:()=>!e.isEqual&&e.onSync?.()},[n.createVNode(_,{type:"reload"},null)])]})]})]),n.createVNode("div",{class:c.classNames(`${a}-card-header-subtitle`,t.value)},[s.value])])]),n.createVNode(Gt,{activeKey:i.value,dataSource:Ut,renderItem:f=>{if(f.value==="colors")return n.createVNode(Jt,null,null)},renderContent:f=>{if(f==="colors")return n.createVNode(Qt,null,null)}},null)])]})}}}),tn=n.defineComponent({name:"Trigger",inheritAttrs:!1,props:{type:String,open:Boolean,onTypeChange:Function,onOpenChange:Function,onClose:Function},setup(e){const{prefixCls:t,hashId:a}=D();function r(o){return{width:o?p.unit(216):p.unit(48),transition:"width 0.3s"}}return()=>{const o=p.getTransitionProps(`${t}-dock-zoom`);return n.createVNode(n.Fragment,null,[n.createVNode("div",{class:c.classNames(a.value,`${t}-button`),onClick:()=>e.onOpenChange?.(!0)},[n.createVNode("sup",{class:c.classNames(a.value,`${t}-dot`)},null),n.createVNode("div",{class:c.classNames(a.value,`${t}-icon`)},[n.createVNode(_,{type:"paintbrush"},null)])]),n.createVNode(n.Transition,o,{default:()=>[n.withDirectives(n.createVNode("div",{class:c.classNames(a.value,`${t}-dock`)},[n.createVNode("div",{class:c.classNames(a.value,`${t}-dock-btn`,e.type==="setting"&&`${t}-dock-btn-active`),style:r(e.type==="setting"),onClick:()=>e.onTypeChange?.("setting")},[n.createVNode("div",{class:c.classNames(a.value,`${t}-dock-icon`)},[n.createVNode(N.SettingOutlined,null,null),e.type==="setting"&&n.createVNode("span",{class:c.classNames(a.value,`${t}-dock-icon-text`)},[n.createTextVNode("系统配置")])])]),n.createVNode("div",{class:c.classNames(a.value,`${t}-dock-btn`,e.type==="theme"&&`${t}-dock-btn-active`),style:r(e.type==="theme"),onClick:()=>e.onTypeChange?.("theme")},[n.createVNode("div",{class:c.classNames(a.value,`${t}-dock-icon`)},[n.createVNode(_,{type:"palette"},null),e.type==="theme"&&n.createVNode("span",{class:c.classNames(a.value,`${t}-dock-icon-text`)},[n.createTextVNode("主题配置")])])])]),[[n.vShow,e.open]])]})])}}});function V(e,t){nn(e)&&(e="100%");var a=an(e);return e=t===360?e:Math.min(t,Math.max(0,parseFloat(e))),a&&(e=parseInt(String(e*t),10)/100),Math.abs(e-t)<1e-6?1:(t===360?e=(e<0?e%t+t:e%t)/parseFloat(String(t)):e=e%t/parseFloat(String(t)),e)}function te(e){return Math.min(1,Math.max(0,e))}function nn(e){return typeof e=="string"&&e.indexOf(".")!==-1&&parseFloat(e)===1}function an(e){return typeof e=="string"&&e.indexOf("%")!==-1}function Fe(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function ne(e){return e<=1?"".concat(Number(e)*100,"%"):e}function j(e){return e.length===1?"0"+e:String(e)}function rn(e,t,a){return{r:V(e,255)*255,g:V(t,255)*255,b:V(a,255)*255}}function $e(e,t,a){e=V(e,255),t=V(t,255),a=V(a,255);var r=Math.max(e,t,a),o=Math.min(e,t,a),i=0,l=0,s=(r+o)/2;if(r===o)l=0,i=0;else{var u=r-o;switch(l=s>.5?u/(2-r-o):u/(r+o),r){case e:i=(t-a)/u+(t<a?6:0);break;case t:i=(a-e)/u+2;break;case a:i=(e-t)/u+4;break}i/=6}return{h:i,s:l,l:s}}function oe(e,t,a){return a<0&&(a+=1),a>1&&(a-=1),a<1/6?e+(t-e)*(6*a):a<1/2?t:a<2/3?e+(t-e)*(2/3-a)*6:e}function on(e,t,a){var r,o,i;if(e=V(e,360),t=V(t,100),a=V(a,100),t===0)o=a,i=a,r=a;else{var l=a<.5?a*(1+t):a+t-a*t,s=2*a-l;r=oe(s,l,e+1/3),o=oe(s,l,e),i=oe(s,l,e-1/3)}return{r:r*255,g:o*255,b:i*255}}function ke(e,t,a){e=V(e,255),t=V(t,255),a=V(a,255);var r=Math.max(e,t,a),o=Math.min(e,t,a),i=0,l=r,s=r-o,u=r===0?0:s/r;if(r===o)i=0;else{switch(r){case e:i=(t-a)/s+(t<a?6:0);break;case t:i=(a-e)/s+2;break;case a:i=(e-t)/s+4;break}i/=6}return{h:i,s:u,v:l}}function ln(e,t,a){e=V(e,360)*6,t=V(t,100),a=V(a,100);var r=Math.floor(e),o=e-r,i=a*(1-t),l=a*(1-o*t),s=a*(1-(1-o)*t),u=r%6,g=[a,l,i,i,s,a][u],d=[s,a,a,l,i,i][u],f=[i,i,s,a,a,l][u];return{r:g*255,g:d*255,b:f*255}}function Me(e,t,a,r){var o=[j(Math.round(e).toString(16)),j(Math.round(t).toString(16)),j(Math.round(a).toString(16))];return r&&o[0].startsWith(o[0].charAt(1))&&o[1].startsWith(o[1].charAt(1))&&o[2].startsWith(o[2].charAt(1))?o[0].charAt(0)+o[1].charAt(0)+o[2].charAt(0):o.join("")}function sn(e,t,a,r,o){var i=[j(Math.round(e).toString(16)),j(Math.round(t).toString(16)),j(Math.round(a).toString(16)),j(cn(r))];return o&&i[0].startsWith(i[0].charAt(1))&&i[1].startsWith(i[1].charAt(1))&&i[2].startsWith(i[2].charAt(1))&&i[3].startsWith(i[3].charAt(1))?i[0].charAt(0)+i[1].charAt(0)+i[2].charAt(0)+i[3].charAt(0):i.join("")}function cn(e){return Math.round(parseFloat(e)*255).toString(16)}function Oe(e){return E(e)/255}function E(e){return parseInt(e,16)}function dn(e){return{r:e>>16,g:(e&65280)>>8,b:e&255}}var ie={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",goldenrod:"#daa520",gold:"#ffd700",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavenderblush:"#fff0f5",lavender:"#e6e6fa",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"};function un(e){var t={r:0,g:0,b:0},a=1,r=null,o=null,i=null,l=!1,s=!1;return typeof e=="string"&&(e=gn(e)),typeof e=="object"&&(z(e.r)&&z(e.g)&&z(e.b)?(t=rn(e.r,e.g,e.b),l=!0,s=String(e.r).substr(-1)==="%"?"prgb":"rgb"):z(e.h)&&z(e.s)&&z(e.v)?(r=ne(e.s),o=ne(e.v),t=ln(e.h,r,o),l=!0,s="hsv"):z(e.h)&&z(e.s)&&z(e.l)&&(r=ne(e.s),i=ne(e.l),t=on(e.h,r,i),l=!0,s="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(a=e.a)),a=Fe(a),{ok:l,format:e.format||s,r:Math.min(255,Math.max(t.r,0)),g:Math.min(255,Math.max(t.g,0)),b:Math.min(255,Math.max(t.b,0)),a}}var hn="[-\\+]?\\d+%?",fn="[-\\+]?\\d*\\.\\d+%?",L="(?:".concat(fn,")|(?:").concat(hn,")"),le="[\\s|\\(]+(".concat(L,")[,|\\s]+(").concat(L,")[,|\\s]+(").concat(L,")\\s*\\)?"),se="[\\s|\\(]+(".concat(L,")[,|\\s]+(").concat(L,")[,|\\s]+(").concat(L,")[,|\\s]+(").concat(L,")\\s*\\)?"),k={CSS_UNIT:new RegExp(L),rgb:new RegExp("rgb"+le),rgba:new RegExp("rgba"+se),hsl:new RegExp("hsl"+le),hsla:new RegExp("hsla"+se),hsv:new RegExp("hsv"+le),hsva:new RegExp("hsva"+se),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/};function gn(e){if(e=e.trim().toLowerCase(),e.length===0)return!1;var t=!1;if(ie[e])e=ie[e],t=!0;else if(e==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var a=k.rgb.exec(e);return a?{r:a[1],g:a[2],b:a[3]}:(a=k.rgba.exec(e),a?{r:a[1],g:a[2],b:a[3],a:a[4]}:(a=k.hsl.exec(e),a?{h:a[1],s:a[2],l:a[3]}:(a=k.hsla.exec(e),a?{h:a[1],s:a[2],l:a[3],a:a[4]}:(a=k.hsv.exec(e),a?{h:a[1],s:a[2],v:a[3]}:(a=k.hsva.exec(e),a?{h:a[1],s:a[2],v:a[3],a:a[4]}:(a=k.hex8.exec(e),a?{r:E(a[1]),g:E(a[2]),b:E(a[3]),a:Oe(a[4]),format:t?"name":"hex8"}:(a=k.hex6.exec(e),a?{r:E(a[1]),g:E(a[2]),b:E(a[3]),format:t?"name":"hex"}:(a=k.hex4.exec(e),a?{r:E(a[1]+a[1]),g:E(a[2]+a[2]),b:E(a[3]+a[3]),a:Oe(a[4]+a[4]),format:t?"name":"hex8"}:(a=k.hex3.exec(e),a?{r:E(a[1]+a[1]),g:E(a[2]+a[2]),b:E(a[3]+a[3]),format:t?"name":"hex"}:!1)))))))))}function z(e){return!!k.CSS_UNIT.exec(String(e))}var K=(function(){function e(t,a){t===void 0&&(t=""),a===void 0&&(a={});var r;if(t instanceof e)return t;typeof t=="number"&&(t=dn(t)),this.originalInput=t;var o=un(t);this.originalInput=t,this.r=o.r,this.g=o.g,this.b=o.b,this.a=o.a,this.roundA=Math.round(100*this.a)/100,this.format=(r=a.format)!==null&&r!==void 0?r:o.format,this.gradientType=a.gradientType,this.r<1&&(this.r=Math.round(this.r)),this.g<1&&(this.g=Math.round(this.g)),this.b<1&&(this.b=Math.round(this.b)),this.isValid=o.ok}return e.prototype.isDark=function(){return this.getBrightness()<128},e.prototype.isLight=function(){return!this.isDark()},e.prototype.getBrightness=function(){var t=this.toRgb();return(t.r*299+t.g*587+t.b*114)/1e3},e.prototype.getLuminance=function(){var t=this.toRgb(),a,r,o,i=t.r/255,l=t.g/255,s=t.b/255;return i<=.03928?a=i/12.92:a=Math.pow((i+.055)/1.055,2.4),l<=.03928?r=l/12.92:r=Math.pow((l+.055)/1.055,2.4),s<=.03928?o=s/12.92:o=Math.pow((s+.055)/1.055,2.4),.2126*a+.7152*r+.0722*o},e.prototype.getAlpha=function(){return this.a},e.prototype.setAlpha=function(t){return this.a=Fe(t),this.roundA=Math.round(100*this.a)/100,this},e.prototype.isMonochrome=function(){var t=this.toHsl().s;return t===0},e.prototype.toHsv=function(){var t=ke(this.r,this.g,this.b);return{h:t.h*360,s:t.s,v:t.v,a:this.a}},e.prototype.toHsvString=function(){var t=ke(this.r,this.g,this.b),a=Math.round(t.h*360),r=Math.round(t.s*100),o=Math.round(t.v*100);return this.a===1?"hsv(".concat(a,", ").concat(r,"%, ").concat(o,"%)"):"hsva(".concat(a,", ").concat(r,"%, ").concat(o,"%, ").concat(this.roundA,")")},e.prototype.toHsl=function(){var t=$e(this.r,this.g,this.b);return{h:t.h*360,s:t.s,l:t.l,a:this.a}},e.prototype.toHslString=function(){var t=$e(this.r,this.g,this.b),a=Math.round(t.h*360),r=Math.round(t.s*100),o=Math.round(t.l*100);return this.a===1?"hsl(".concat(a,", ").concat(r,"%, ").concat(o,"%)"):"hsla(".concat(a,", ").concat(r,"%, ").concat(o,"%, ").concat(this.roundA,")")},e.prototype.toHex=function(t){return t===void 0&&(t=!1),Me(this.r,this.g,this.b,t)},e.prototype.toHexString=function(t){return t===void 0&&(t=!1),"#"+this.toHex(t)},e.prototype.toHex8=function(t){return t===void 0&&(t=!1),sn(this.r,this.g,this.b,this.a,t)},e.prototype.toHex8String=function(t){return t===void 0&&(t=!1),"#"+this.toHex8(t)},e.prototype.toHexShortString=function(t){return t===void 0&&(t=!1),this.a===1?this.toHexString(t):this.toHex8String(t)},e.prototype.toRgb=function(){return{r:Math.round(this.r),g:Math.round(this.g),b:Math.round(this.b),a:this.a}},e.prototype.toRgbString=function(){var t=Math.round(this.r),a=Math.round(this.g),r=Math.round(this.b);return this.a===1?"rgb(".concat(t,", ").concat(a,", ").concat(r,")"):"rgba(".concat(t,", ").concat(a,", ").concat(r,", ").concat(this.roundA,")")},e.prototype.toPercentageRgb=function(){var t=function(a){return"".concat(Math.round(V(a,255)*100),"%")};return{r:t(this.r),g:t(this.g),b:t(this.b),a:this.a}},e.prototype.toPercentageRgbString=function(){var t=function(a){return Math.round(V(a,255)*100)};return this.a===1?"rgb(".concat(t(this.r),"%, ").concat(t(this.g),"%, ").concat(t(this.b),"%)"):"rgba(".concat(t(this.r),"%, ").concat(t(this.g),"%, ").concat(t(this.b),"%, ").concat(this.roundA,")")},e.prototype.toName=function(){if(this.a===0)return"transparent";if(this.a<1)return!1;for(var t="#"+Me(this.r,this.g,this.b,!1),a=0,r=Object.entries(ie);a<r.length;a++){var o=r[a],i=o[0],l=o[1];if(t===l)return i}return!1},e.prototype.toString=function(t){var a=!!t;t=t??this.format;var r=!1,o=this.a<1&&this.a>=0,i=!a&&o&&(t.startsWith("hex")||t==="name");return i?t==="name"&&this.a===0?this.toName():this.toRgbString():(t==="rgb"&&(r=this.toRgbString()),t==="prgb"&&(r=this.toPercentageRgbString()),(t==="hex"||t==="hex6")&&(r=this.toHexString()),t==="hex3"&&(r=this.toHexString(!0)),t==="hex4"&&(r=this.toHex8String(!0)),t==="hex8"&&(r=this.toHex8String()),t==="name"&&(r=this.toName()),t==="hsl"&&(r=this.toHslString()),t==="hsv"&&(r=this.toHsvString()),r||this.toHexString())},e.prototype.toNumber=function(){return(Math.round(this.r)<<16)+(Math.round(this.g)<<8)+Math.round(this.b)},e.prototype.clone=function(){return new e(this.toString())},e.prototype.lighten=function(t){t===void 0&&(t=10);var a=this.toHsl();return a.l+=t/100,a.l=te(a.l),new e(a)},e.prototype.brighten=function(t){t===void 0&&(t=10);var a=this.toRgb();return a.r=Math.max(0,Math.min(255,a.r-Math.round(255*-(t/100)))),a.g=Math.max(0,Math.min(255,a.g-Math.round(255*-(t/100)))),a.b=Math.max(0,Math.min(255,a.b-Math.round(255*-(t/100)))),new e(a)},e.prototype.darken=function(t){t===void 0&&(t=10);var a=this.toHsl();return a.l-=t/100,a.l=te(a.l),new e(a)},e.prototype.tint=function(t){return t===void 0&&(t=10),this.mix("white",t)},e.prototype.shade=function(t){return t===void 0&&(t=10),this.mix("black",t)},e.prototype.desaturate=function(t){t===void 0&&(t=10);var a=this.toHsl();return a.s-=t/100,a.s=te(a.s),new e(a)},e.prototype.saturate=function(t){t===void 0&&(t=10);var a=this.toHsl();return a.s+=t/100,a.s=te(a.s),new e(a)},e.prototype.greyscale=function(){return this.desaturate(100)},e.prototype.spin=function(t){var a=this.toHsl(),r=(a.h+t)%360;return a.h=r<0?360+r:r,new e(a)},e.prototype.mix=function(t,a){a===void 0&&(a=50);var r=this.toRgb(),o=new e(t).toRgb(),i=a/100,l={r:(o.r-r.r)*i+r.r,g:(o.g-r.g)*i+r.g,b:(o.b-r.b)*i+r.b,a:(o.a-r.a)*i+r.a};return new e(l)},e.prototype.analogous=function(t,a){t===void 0&&(t=6),a===void 0&&(a=30);var r=this.toHsl(),o=360/a,i=[this];for(r.h=(r.h-(o*t>>1)+720)%360;--t;)r.h=(r.h+o)%360,i.push(new e(r));return i},e.prototype.complement=function(){var t=this.toHsl();return t.h=(t.h+180)%360,new e(t)},e.prototype.monochromatic=function(t){t===void 0&&(t=6);for(var a=this.toHsv(),r=a.h,o=a.s,i=a.v,l=[],s=1/t;t--;)l.push(new e({h:r,s:o,v:i})),i=(i+s)%1;return l},e.prototype.splitcomplement=function(){var t=this.toHsl(),a=t.h;return[this,new e({h:(a+72)%360,s:t.s,l:t.l}),new e({h:(a+216)%360,s:t.s,l:t.l})]},e.prototype.onBackground=function(t){var a=this.toRgb(),r=new e(t).toRgb(),o=a.a+r.a*(1-a.a);return new e({r:(a.r*a.a+r.r*r.a*(1-a.a))/o,g:(a.g*a.a+r.g*r.a*(1-a.a))/o,b:(a.b*a.a+r.b*r.a*(1-a.a))/o,a:o})},e.prototype.triad=function(){return this.polyad(3)},e.prototype.tetrad=function(){return this.polyad(4)},e.prototype.polyad=function(t){for(var a=this.toHsl(),r=a.h,o=[this],i=360/t,l=1;l<t;l++)o.push(new e({h:(r+l*i)%360,s:a.s,l:a.l}));return o},e.prototype.equals=function(t){return this.toRgbString()===new e(t).toRgbString()},e})();const ze=new p.Keyframe("toConic",{"0%":{backgroundPosition:"0 0"},"100%":{backgroundPosition:"100% 50%"}}),mn=new p.Keyframe("dockIconText",{"0%":{display:"none",opacity:0},"80%":{overflow:"hidden"},"100%":{display:"unset",opacity:1}}),pn=new p.Keyframe("dockZoomIn",{"0%":{transform:"translateX(-50%) scale(0)",opacity:0},"100%":{transform:"translateX(-50%) scale(1)",opacity:1}}),bn=new p.Keyframe("dockZoomOut",{"0%":{transform:"translateX(-50%) scale(1)"},"100%":{transform:"translateX(-50%) scale(0)",opacity:0}}),Le=e=>e===0?0:e-Math.sqrt(e**2/2),yn=e=>({[e.componentCls]:{"&-button":{border:"none",position:"fixed",cursor:"pointer",zIndex:e.zIndexPopupBase,width:e.controlHeightLG,height:e.controlHeightLG,insetInlineEnd:e.marginLG,bottom:e.marginXXL,boxShadow:e.boxShadowSecondary,borderRadius:"50%",display:"flex",alignItems:"center",justifyContent:"center",textAlign:"center",backgroundColor:e.colorPrimary,transition:`background-color ${e.motionDurationMid}`,"&:hover":{backgroundColor:e.colorPrimary},[`${e.componentCls}-dot`]:{position:"absolute",transform:"translate(50%, -50%)",transformOrigin:"100% 0%",zIndex:"auto",width:e.fontSizeSM/2,minWidth:e.fontSizeSM/2,height:e.fontSizeSM/2,background:e.colorError,borderRadius:"100%",boxShadow:`0 0 0 ${p.unit(e.lineWidth)} ${e.colorBorderBg}`,top:Le(e.controlHeightLG/2),insetInlineEnd:Le(e.controlHeightLG/2)},[`${e.componentCls}-icon`]:{margin:"auto",color:e.colorTextLightSolid,width:e.calc(e.fontSizeIcon).mul(1.5).equal(),fontSize:e.calc(e.fontSizeIcon).mul(1.5).equal(),lineHeight:1}}}}),xn=e=>{const t=new K(new K("rgb(0, 0, 0)").setAlpha(.06).toRgbString());return{[e.componentCls]:{"&-dock":{position:"fixed",bottom:e.marginXL,left:"50%",zIndex:e.zIndexPopupBase+80,color:e.colorWhite,transform:"translateX(-50%)",display:"flex",alignItems:"center",gap:e.sizeXS,padding:e.paddingXS,borderRadius:e.controlHeight,background:e.colorBgLayout,backdropFilter:"blur(10px)","&-zoom-appear, &-zoom-enter":{animationName:pn,opacity:0,animationTimingFunction:e.motionEaseOutCirc,animationFillMode:"both",transform:"none",animationDuration:e.motionDurationMid,userSelect:"none"},"&-zoom-enter-active":{animationPlayState:"running"},"&-zoom-leave":{animationName:bn,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseInOutCirc,animationFillMode:"both"},"&-btn":{height:e.controlHeightLG,color:e.colorText,borderRadius:e.controlHeight,padding:1,background:`linear-gradient(135deg,${t},${t},${t},#006cfc,#05c4f4,#7ee94c)`,backgroundSize:"400%","&:hover":{animationTimingFunction:"cubic-bezier(.38,0,.24,1)",animationDuration:"0.5s",animationFillMode:"forwards",animationName:ze},"&-active":{animationTimingFunction:"cubic-bezier(.38,0,.24,1)",animationDuration:"0.5s",animationFillMode:"forwards",animationName:ze}},"&-icon":{display:"flex",alignItems:"center",justifyContent:"center",gap:e.size,width:"100%",borderRadius:e.controlHeight,height:e.controlHeightLG-2,backgroundColor:e.colorBgElevated,cursor:"pointer",color:e.colorTextSecondary,fontSize:e.fontSizeLG,"&-text":{animationName:mn,animationDuration:".4s",animationTimingFunction:"ease"}}}}}},Cn=e=>{const{theme:t}=$.getTokenLayoutTheme(e);return{[e.componentCls]:{"&-body-title":{margin:0,marginBlockEnd:e.marginSM,fontSize:"14px",lineHeight:"22px",fontWeight:800,color:e.colorText},"&-block-checkbox":{display:"flex",minHeight:42,gap:e.marginSM,"& &-item":{position:"relative",width:"44px",height:"36px",overflow:"hidden",borderRadius:"4px",boxShadow:`
|
|
12
|
+
(function(y,n){typeof exports=="object"&&typeof module<"u"?n(exports,require("vue"),require("@gx-design-vue/pro-hooks"),require("@gx-design-vue/pro-provider"),require("@gx-design-vue/pro-utils"),require("ant-design-vue"),require("@gx-design-vue/pro-layout"),require("ant-design-vue/es/theme/themes/dark/colorAlgorithm"),require("@ant-design/icons-vue"),require("@gx-design-vue/context"),require("@vueuse/core"),require("@gx-design-vue/icon"),require("@gx-design-vue/pro-modal"),require("lodash-es"),require("dayjs"),require("dayjs/locale/zh-cn"),require("vue-router"),require("@gx-design-vue/scrollbar"),require("@gx-design-vue/color-picker")):typeof define=="function"&&define.amd?define(["exports","vue","@gx-design-vue/pro-hooks","@gx-design-vue/pro-provider","@gx-design-vue/pro-utils","ant-design-vue","@gx-design-vue/pro-layout","ant-design-vue/es/theme/themes/dark/colorAlgorithm","@ant-design/icons-vue","@gx-design-vue/context","@vueuse/core","@gx-design-vue/icon","@gx-design-vue/pro-modal","lodash-es","dayjs","dayjs/locale/zh-cn","vue-router","@gx-design-vue/scrollbar","@gx-design-vue/color-picker"],n):(y=typeof globalThis<"u"?globalThis:y||self,n(y.proLayoutComponents={},y.vue,y.proHooks,y.proProvider,y.proUtils,y.antDesignVue,y.proLayout,y.colorAlgorithm,y.iconsVue,y.context,y.core,y.icon,y.proModal,y.lodashEs,y.dayjs,null,y.vueRouter,y.scrollbar,y.colorPicker))})(this,(function(y,n,A,p,c,m,z,ue,N,ae,I,he,fe,R,H,Bn,_e,ge,me){"use strict";const W={appList:{type:Array,default:void 0},onItemClick:Function},pe=n.defineComponent({props:{hashId:String,baseClassName:String,appList:W.appList,onItemClick:W.onItemClick},setup(e){return()=>n.createVNode("div",{class:`${e.baseClassName}-content ${e.hashId}`.trim()},[n.createVNode("ul",{class:`${e.baseClassName}-content-list ${e.hashId}`.trim()},[e.appList?.map((t,a)=>t?.children?.length?n.createVNode("div",{key:a,class:`${e.baseClassName}-content-list-item-group ${e.hashId}`.trim()},[n.createVNode("div",{class:`${e.baseClassName}-content-list-item-group-title ${e.hashId}`.trim()},[t.title]),n.createVNode(pe,{hashId:e.hashId,onItemClick:e.onItemClick,appList:t?.children,baseClassName:e.baseClassName},null)]):n.createVNode("li",{key:a,class:`${e.baseClassName}-content-list-item ${e.hashId}`.trim(),onClick:r=>{r.stopPropagation(),e.onItemClick?.(t)}},[n.createVNode("a",{href:e.onItemClick?void 0:t.url,target:t.target,rel:"noreferrer"},[n.createVNode(ye,{logo:t.icon},null),n.createVNode("div",null,[n.createVNode("div",null,[t.title]),t.desc?n.createVNode("span",null,[t.desc]):null])])]))])])}}),De=(e,t)=>{if(e&&typeof e=="string"&&c.isUrl(e))return n.createVNode("img",{src:e,alt:"logo"},null);if(typeof e=="function")return e();if(e&&typeof e=="string")return n.createVNode("div",{id:"avatarLogo"},[e]);if(!e&&t&&typeof t=="string"){const a=t.substring(0,1);return n.createVNode("div",{id:"avatarLogo"},[a])}return e},be=n.defineComponent({props:{hashId:String,baseClassName:String,appList:W.appList,onItemClick:W.onItemClick},setup(e){return()=>n.createVNode("div",{class:`${e.baseClassName}-content ${e.hashId}`.trim()},[n.createVNode("ul",{class:`${e.baseClassName}-content-list ${e.hashId}`.trim()},[e.appList?.map((t,a)=>t?.children?.length?n.createVNode("div",{key:a,class:`${e.baseClassName}-content-list-item-group ${e.hashId}`.trim()},[n.createVNode("div",{class:`${e.baseClassName}-content-list-item-group-title ${e.hashId}`.trim()},[t.title]),n.createVNode(be,{hashId:e.hashId,onItemClick:e.onItemClick,appList:t?.children,baseClassName:e.baseClassName},null)]):n.createVNode("li",{key:a,class:`${e.baseClassName}-content-list-item ${e.hashId}`.trim(),onClick:r=>{r.stopPropagation(),e.onItemClick?.(t)}},[n.createVNode("a",{href:e.onItemClick?"javascript:;":t.url,target:t.target,rel:"noreferrer"},[De(t.icon,t.title),n.createVNode("div",null,[n.createVNode("div",null,[t.title])])])]))])])}}),je=e=>({"&-content":{maxHeight:"calc(100vh - 48px)",overflow:"auto","&-list":{boxSizing:"content-box",maxWidth:656,marginBlock:0,marginInline:0,paddingBlock:0,paddingInline:0,listStyle:"none","&-item":{position:"relative",display:"inline-block",width:328,height:72,paddingInline:16,paddingBlock:16,verticalAlign:"top",listStyleType:"none",transition:"transform 0.2s cubic-bezier(0.333, 0, 0, 1)",borderRadius:e.borderRadius,"&-group":{marginBottom:16,"&-title":{margin:"16px 0 8px 12px",fontWeight:600,color:"rgba(0, 0, 0, 0.88)",fontSize:16,opacity:.85,lineHeight:1.5,"&:first-child":{marginTop:12}}},"&:hover":{backgroundColor:e.colorBgTextHover},"* div":p.resetComponent?.(e),a:{display:"flex",height:"100%",fontSize:12,textDecoration:"none","& > img":{width:40,height:40},"& > div":{marginInlineStart:14,color:e.colorTextHeading,fontSize:14,lineHeight:"22px",whiteSpace:"nowrap",textOverflow:"ellipsis"},"& > div > span":{color:e.colorTextSecondary,fontSize:12,lineHeight:"20px"}}}}}}),qe=e=>({"&-content":{maxHeight:"calc(100vh - 48px)",overflow:"auto","&-list":{boxSizing:"border-box",maxWidth:376,marginBlock:0,marginInline:0,paddingBlock:0,paddingInline:0,listStyle:"none","&-item":{position:"relative",display:"inline-block",width:104,height:104,marginBlock:8,marginInline:8,paddingInline:24,paddingBlock:24,verticalAlign:"top",listStyleType:"none",transition:"transform 0.2s cubic-bezier(0.333, 0, 0, 1)",borderRadius:e.borderRadius,"&-group":{marginBottom:16,"&-title":{margin:"16px 0 8px 12px",fontWeight:600,color:"rgba(0, 0, 0, 0.88)",fontSize:16,opacity:.85,lineHeight:1.5,"&:first-child":{marginTop:12}}},"&:hover":{backgroundColor:e.colorBgTextHover},a:{display:"flex",flexDirection:"column",alignItems:"center",height:"100%",fontSize:12,textDecoration:"none","& > #avatarLogo":{width:40,height:40,margin:"0 auto",color:e.colorPrimary,fontSize:22,lineHeight:"40px",textAlign:"center",backgroundImage:"linear-gradient(180deg, #E8F0FB 0%, #F6F8FC 100%)",borderRadius:e.borderRadius},"& > img":{width:40,height:40},"& > div":{marginBlockStart:5,marginInlineStart:0,color:e.colorTextHeading,fontSize:14,lineHeight:"22px",whiteSpace:"nowrap",textOverflow:"ellipsis"},"& > div > span":{color:e.colorTextSecondary,fontSize:12,lineHeight:"20px"}}}}}}),We=e=>({[e.componentCls]:{"&-simple":qe(e),"&-default":je(e)}}),Ge=e=>{const{theme:t}=z.getTokenLayoutTheme(e);return{[e.componentCls]:{"&-icon":{display:"inline-flex",alignItems:"center",justifyContent:"center",paddingInline:4,paddingBlock:0,fontSize:18,lineHeight:"14px",height:28,width:28,cursor:"pointer",color:t==="dark"?e.colorWhite:e.layout?.colorTextAppListIcon,borderRadius:e.borderRadius,"&:hover":{color:t==="dark"?e.colorWhite:e.layout?.colorTextAppListIconHover,backgroundColor:t==="dark"?ue.getAlphaColor("#fff",.12):e.layout?.colorBgAppListIconHover},[`&-active${e.proComponentsCls}-layout-app-icon`]:{fontSize:18,color:t==="dark"?e.colorWhite:e.layout?.colorTextAppListIconHover,backgroundColor:t==="dark"?ue.getAlphaColor("#fff",.12):e.layout?.colorBgAppListIconHover}},"&-item-title":{marginInlineStart:"16px",marginInlineEnd:"8px",marginBlockStart:0,marginBlockEnd:"12px",fontWeight:600,color:"rgba(0, 0, 0, 0.88)",fontSize:16,opacity:.85,lineHeight:1.5,"&:first-child":{marginBlockStart:12}},"&-popover":{width:"max-content",maxWidth:"100vw",[`${e.antCls}-popover-arrow`]:{display:"none"}}}}},Ke=n.defineComponent({props:W,emits:["itemClick"],setup(e){const t=c.getPrefixCls({suffixCls:"layout-app",isPor:!0}),{wrapSSR:a,hashId:r}=p.useProStyle("AppsLogoList",[We],t),o=i=>{e.onItemClick?.(i)};return()=>e.appList?.some(l=>!l?.desc)?a(n.createVNode(be,{hashId:r.value,appList:e.appList,onItemClick:e.onItemClick?o:void 0,baseClassName:`${t}-simple`},null)):a(n.createVNode(pe,{hashId:r.value,appList:e.appList,onItemClick:e.onItemClick?o:void 0,baseClassName:`${t}-default`},null))}}),Xe=()=>n.createVNode(N.AppstoreOutlined,null,null),ye=({logo:e})=>typeof e=="string"?n.createVNode("img",{width:"auto",height:22,src:e,alt:"logo"},null):typeof e=="function"?e():e,Ze=n.defineComponent({name:"AppsLogoIcon",inheritAttrs:!1,props:W,setup(e){const t=c.getPrefixCls({suffixCls:"layout-app",isPor:!0}),{wrapSSR:a,hashId:r}=p.useProStyle("AppsLogoIcon",[Ge],t),[o,i]=A.useState(!1),l=n.ref(),s=n.ref();return()=>a(n.createVNode(n.Fragment,null,[n.createVNode("div",{ref:l,onClick:u=>{u.stopPropagation(),u.preventDefault()}},null),n.createVNode(m.Popover,{placement:"bottomRight",trigger:["click"],arrow:!1,destroyTooltipOnHide:!0,open:o.value,onOpenChange:i,overlayClassName:`${t}-popover ${r.value}`.trim(),content:n.createVNode(Ke,e,null),getPopupContainer:()=>l.value||document.body},{default:()=>[n.createVNode("span",{ref:s,onClick:u=>{u.stopPropagation()},class:c.classNames(`${t}-icon`,r.value,{[`${t}-icon-active`]:o.value})},[n.createVNode(Xe,null,null)])]})]))}});function X(){return X=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)({}).hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e},X.apply(null,arguments)}var xe=(function(){if(typeof Map<"u")return Map;function e(t,a){var r=-1;return t.some(function(o,i){return o[0]===a?(r=i,!0):!1}),r}return(function(){function t(){this.__entries__=[]}return Object.defineProperty(t.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(a){var r=e(this.__entries__,a),o=this.__entries__[r];return o&&o[1]},t.prototype.set=function(a,r){var o=e(this.__entries__,a);~o?this.__entries__[o][1]=r:this.__entries__.push([a,r])},t.prototype.delete=function(a){var r=this.__entries__,o=e(r,a);~o&&r.splice(o,1)},t.prototype.has=function(a){return!!~e(this.__entries__,a)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(a,r){r===void 0&&(r=null);for(var o=0,i=this.__entries__;o<i.length;o++){var l=i[o];a.call(r,l[1],l[0])}},t})()})(),re=typeof window<"u"&&typeof document<"u"&&window.document===document,Q=(function(){return typeof global<"u"&&global.Math===Math?global:typeof self<"u"&&self.Math===Math?self:typeof window<"u"&&window.Math===Math?window:Function("return this")()})(),Ye=(function(){return typeof requestAnimationFrame=="function"?requestAnimationFrame.bind(Q):function(e){return setTimeout(function(){return e(Date.now())},1e3/60)}})(),Qe=2;function Je(e,t){var a=!1,r=!1,o=0;function i(){a&&(a=!1,e()),r&&s()}function l(){Ye(i)}function s(){var u=Date.now();if(a){if(u-o<Qe)return;r=!0}else a=!0,r=!1,setTimeout(l,t);o=u}return s}var Ue=20,et=["top","right","bottom","left","width","height","size","weight"],tt=typeof MutationObserver<"u",nt=(function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=Je(this.refresh.bind(this),Ue)}return e.prototype.addObserver=function(t){~this.observers_.indexOf(t)||this.observers_.push(t),this.connected_||this.connect_()},e.prototype.removeObserver=function(t){var a=this.observers_,r=a.indexOf(t);~r&&a.splice(r,1),!a.length&&this.connected_&&this.disconnect_()},e.prototype.refresh=function(){var t=this.updateObservers_();t&&this.refresh()},e.prototype.updateObservers_=function(){var t=this.observers_.filter(function(a){return a.gatherActive(),a.hasActive()});return t.forEach(function(a){return a.broadcastActive()}),t.length>0},e.prototype.connect_=function(){!re||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),tt?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},e.prototype.disconnect_=function(){!re||!this.connected_||(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(t){var a=t.propertyName,r=a===void 0?"":a,o=et.some(function(i){return!!~r.indexOf(i)});o&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e})(),Ce=(function(e,t){for(var a=0,r=Object.keys(t);a<r.length;a++){var o=r[a];Object.defineProperty(e,o,{value:t[o],enumerable:!1,writable:!1,configurable:!0})}return e}),G=(function(e){var t=e&&e.ownerDocument&&e.ownerDocument.defaultView;return t||Q}),Ne=U(0,0,0,0);function J(e){return parseFloat(e)||0}function ve(e){for(var t=[],a=1;a<arguments.length;a++)t[a-1]=arguments[a];return t.reduce(function(r,o){var i=e["border-"+o+"-width"];return r+J(i)},0)}function at(e){for(var t=["top","right","bottom","left"],a={},r=0,o=t;r<o.length;r++){var i=o[r],l=e["padding-"+i];a[i]=J(l)}return a}function rt(e){var t=e.getBBox();return U(0,0,t.width,t.height)}function ot(e){var t=e.clientWidth,a=e.clientHeight;if(!t&&!a)return Ne;var r=G(e).getComputedStyle(e),o=at(r),i=o.left+o.right,l=o.top+o.bottom,s=J(r.width),u=J(r.height);if(r.boxSizing==="border-box"&&(Math.round(s+i)!==t&&(s-=ve(r,"left","right")+i),Math.round(u+l)!==a&&(u-=ve(r,"top","bottom")+l)),!lt(e)){var g=Math.round(s+i)-t,d=Math.round(u+l)-a;Math.abs(g)!==1&&(s-=g),Math.abs(d)!==1&&(u-=d)}return U(o.left,o.top,s,u)}var it=(function(){return typeof SVGGraphicsElement<"u"?function(e){return e instanceof G(e).SVGGraphicsElement}:function(e){return e instanceof G(e).SVGElement&&typeof e.getBBox=="function"}})();function lt(e){return e===G(e).document.documentElement}function st(e){return re?it(e)?rt(e):ot(e):Ne}function ct(e){var t=e.x,a=e.y,r=e.width,o=e.height,i=typeof DOMRectReadOnly<"u"?DOMRectReadOnly:Object,l=Object.create(i.prototype);return Ce(l,{x:t,y:a,width:r,height:o,top:a,right:t+r,bottom:o+a,left:t}),l}function U(e,t,a,r){return{x:e,y:t,width:a,height:r}}var dt=(function(){function e(t){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=U(0,0,0,0),this.target=t}return e.prototype.isActive=function(){var t=st(this.target);return this.contentRect_=t,t.width!==this.broadcastWidth||t.height!==this.broadcastHeight},e.prototype.broadcastRect=function(){var t=this.contentRect_;return this.broadcastWidth=t.width,this.broadcastHeight=t.height,t},e})(),ut=(function(){function e(t,a){var r=ct(a);Ce(this,{target:t,contentRect:r})}return e})(),ht=(function(){function e(t,a,r){if(this.activeObservations_=[],this.observations_=new xe,typeof t!="function")throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=t,this.controller_=a,this.callbackCtx_=r}return e.prototype.observe=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(t instanceof G(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var a=this.observations_;a.has(t)||(a.set(t,new dt(t)),this.controller_.addObserver(this),this.controller_.refresh())}},e.prototype.unobserve=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(t instanceof G(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var a=this.observations_;a.has(t)&&(a.delete(t),a.size||this.controller_.removeObserver(this))}},e.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},e.prototype.gatherActive=function(){var t=this;this.clearActive(),this.observations_.forEach(function(a){a.isActive()&&t.activeObservations_.push(a)})},e.prototype.broadcastActive=function(){if(this.hasActive()){var t=this.callbackCtx_,a=this.activeObservations_.map(function(r){return new ut(r.target,r.broadcastRect())});this.callback_.call(t,a,t),this.clearActive()}},e.prototype.clearActive=function(){this.activeObservations_.splice(0)},e.prototype.hasActive=function(){return this.activeObservations_.length>0},e})(),Se=typeof WeakMap<"u"?new WeakMap:new xe,we=(function(){function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var a=nt.getInstance(),r=new ht(t,a,this);Se.set(this,r)}return e})();["observe","unobserve","disconnect"].forEach(function(e){we.prototype[e]=function(){var t;return(t=Se.get(this))[e].apply(t,arguments)}});var ft=(function(){return typeof Q.ResizeObserver<"u"?Q.ResizeObserver:we})();const gt=e=>{var t;let a=((t=e?.vnode)===null||t===void 0?void 0:t.el)||e&&(e.$el||e);for(;a&&!a.tagName;)a=a.nextSibling;return a},mt=n.defineComponent({compatConfig:{MODE:3},name:"ResizeObserver",props:{disabled:Boolean,onResize:Function},emits:["resize"],setup(e,t){let{slots:a}=t;const r=n.reactive({width:0,height:0,offsetHeight:0,offsetWidth:0});let o=null,i=null;const l=()=>{i&&(i.disconnect(),i=null)},s=d=>{const{onResize:f}=e,x=d[0].target,{width:T,height:F}=x.getBoundingClientRect(),{offsetWidth:w,offsetHeight:S}=x,h=Math.floor(T),b=Math.floor(F);if(r.width!==h||r.height!==b||r.offsetWidth!==w||r.offsetHeight!==S){const v={width:h,height:b,offsetWidth:w,offsetHeight:S};X(r,v),f&&Promise.resolve().then(()=>{f(X(X({},v),{offsetWidth:w,offsetHeight:S}),x)})}},u=n.getCurrentInstance(),g=()=>{const{disabled:d}=e;if(d){l();return}const f=gt(u);f!==o&&(l(),o=f),!i&&f&&(i=new ft(s),i.observe(f))};return n.onMounted(()=>{g()}),n.onUpdated(()=>{g()}),n.onUnmounted(()=>{l()}),n.watch(()=>e.disabled,()=>{g()},{flush:"post"}),()=>{var d;return(d=a.default)===null||d===void 0?void 0:d.call(a)[0]}}}),pt={paintbrush:n.defineAsyncComponent(()=>Promise.resolve().then(()=>In)),palette:n.defineAsyncComponent(()=>Promise.resolve().then(()=>Tn))},_=n.defineComponent({inheritAttrs:!1,props:{...he.defaultIconProps,type:{type:String,required:!0}},setup(e){return()=>n.createVNode(he.GIcon,n.mergeProps(e,{type:e.type,components:pt}),null)}});H.locale("zh-cn");function bt(){const e=n.reactive({hh:"",mm:"",ss:"",dddd:"",day:"",a:""});function t(){e.hh=H().format("HH"),e.mm=H().format("mm"),e.ss=H().format("ss"),e.a=H().format("a").toUpperCase(),e.day=H().format("YYYY-MM-DD"),e.dddd=H().format("dddd"),requestAnimationFrame(t)}return requestAnimationFrame(t),e}const oe={dataSource:{type:Array,default:()=>[]},historyKey:String},Ve=()=>({...oe,actions:{type:Object,default:()=>({})},shortsKey:{type:Object,default:()=>({disabled:!1})},name:{type:String,default:"gx·design"},avatar:String,actionsRender:{type:[Array,Function,Object],default:void 0},dropdownProps:{type:[Object],default:()=>({})},dropdownRender:{type:[Array,Function,Object],default:void 0},dropdownMenuRender:{type:[Array,Function,Object],default:void 0},dropdownMenuExtraItemRender:{type:[Array,Function,Object,Boolean],default:void 0},onLogout:Function,onClick:Function}),yt=Ve(),Ie={hashId:String,className:String},Te={open:{type:Boolean,default:void 0},onOpenChange:Function,"onUpdate:open":Function,cryptoFn:Function,...R.pick(yt,["name","avatar"])},xt={...Te,shortsKey:{type:Object,default:()=>({disabled:!1})}};function Ct(e){const t=n.reactive({password:""}),{validate:a,resetFields:r,validateInfos:o}=p.useProForm(t,{password:[{validator:(i,l)=>(e&&l?e?.(l):l)?Promise.resolve():Promise.reject(e&&l?"密码错误":"请输入锁屏密码")}]});return{formState:t,validate:a,resetFields:r,validateInfos:o}}const Be=n.defineComponent({props:{...Ie,name:String,avatar:String,avatarSize:{type:Number,default:60},submitText:String,validator:Function,onSubmit:Function},setup(e,{expose:t,slots:a}){const{formState:r,validate:o,validateInfos:i,resetFields:l}=Ct(e.validator),s=d=>{Object.assign(r,d)},u=(d="",f)=>{const x=d?`${e.className}-${d}`:e.className;return c.classNames(x,e.hashId,"")},g=()=>{o().then(()=>{e.onSubmit?.(r)}).catch(()=>{})};return t({formState:r,resetFields:l,merageFormState:s}),()=>n.createVNode("div",{class:u("user-form")},[n.createVNode("div",{class:u("user-info")},[n.createVNode(m.Avatar,{size:e.avatarSize,icon:n.createVNode(N.UserOutlined,null,null),src:e.avatar},null),e.name&&n.createVNode("div",{class:u("user-name")},[e.name])]),n.createVNode(m.Form,null,{default:()=>[n.createVNode(m.Form.Item,i.password,{default:()=>[n.createVNode(m.Input.Password,{value:r.password,placeholder:"请输入锁屏密码",onChange:d=>r.password=d.target.value},null)]})]}),n.createVNode(m.Button,{block:!0,type:"primary",onClick:()=>g(),style:{marginBlockStart:"24px"}},{default:()=>[e.submitText]}),a.default?.()])}}),Nt=n.defineComponent({name:"PageLockPopup",props:{...Ie,...Te,password:String},setup(e){const[t,a]=A.useMergedState(!1,{value:n.computed(()=>c.isBoolean(e.open)?e.open:!1),onChange:e.onOpenChange}),[r,o]=A.useState(!1),i=bt(),l=(s="",u)=>{const g=s?`${e.className}-popup-${s}`:`${e.className}-popup`;return c.classNames(g,e.hashId,u||"")};return()=>t.value?n.createVNode(n.Teleport,{to:"body"},{default:()=>[n.createVNode("div",{class:l()},[r.value?n.createVNode("div",{class:l("form")},[n.createVNode(Be,{avatarSize:70,submitText:"进入系统",avatar:e.avatar,hashId:e.hashId,className:e.className,validator:s=>e.cryptoFn?.(s)===e.password,onSubmit:()=>a(!1)},{default:()=>[n.createVNode(m.Button,{style:{marginBlockStart:"16px"},type:"text",block:!0,onClick:()=>o(!1)},{default:()=>[n.createTextVNode("返回")]})]}),n.createVNode("div",{class:l("form-time")},[n.createVNode("span",{style:{fontSize:"26px"}},[`${i.hh}:${i.mm}`,n.createTextVNode(" "),i.a]),n.createVNode("span",{style:{fontSize:"30px"}},[i.day,n.createTextVNode(" "),i.dddd])])]):n.createVNode(n.Fragment,null,[n.createVNode("div",{class:l("head")},[n.createVNode("span",null,[i.day,n.createTextVNode(" "),i.dddd]),n.createVNode("span",{class:l("lock-icon"),onClick:()=>o(!0)},[n.createVNode(N.LockOutlined,{style:{position:"relative",top:"1px",marginInlineEnd:"4px"}},null),n.createTextVNode("点击解锁")])]),n.createVNode("div",{class:l("time",l("enter","fadeIn"))},[n.createVNode("div",{class:l("time-card")},[i.hh,n.createVNode("span",{class:l("time-range")},[i.a])]),n.createVNode("div",{class:l("time-card")},[i.mm])])])])]}):null}}),vt=new p.Keyframe("fadeIn",{from:{opacity:0},to:{opacity:1}}),St=e=>({[e.componentCls]:{"&-user-form":{[`${e.antCls}-form-item`]:{marginBlockEnd:0}},"&-user-info":{display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",gap:20,marginBlockEnd:e.marginLG},"&-user-name":{fontWeight:500,fontSize:18},"&-popup":{display:"flex",flexDirection:"column",background:e.colorBgContainer,position:"fixed",inset:0,zIndex:2200,width:"100vw",height:"100vh","&-enter":{animationDuration:".3s",animationFillMode:"both",animationName:vt},"&-head":{display:"flex",alignItems:"center",justifyContent:"space-between",marginBlock:e.marginLG,color:e.colorTextSecondary,paddingInline:20,fontSize:20,lineHeight:"28px",fontWeight:600},"&-lock-icon":{cursor:"pointer",transition:"all .3s","&:hover":{transform:"scale(1.1)",color:e.colorText}},"&-time":{display:"flex",paddingInline:"10%",gap:"5rem",flex:1,paddingBottom:"40px",[`${e.componentCls}-popup-time-card`]:{position:"relative",width:"40%",height:"100%",display:"flex",alignItems:"center",justifyContent:"center",flex:"1 1 auto",fontSize:260,borderRadius:e.borderRadiusLG,background:e.colorFillContent},"&-range":{position:"absolute",left:"2%",top:"2%",fontSize:16,fontWeight:600,color:e.colorText}},"&-form":{position:"relative",display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",gap:e.marginLG,height:"100%",[`${e.componentCls}-user-form`]:{width:300},[`${e.componentCls}-popup-form-time`]:{position:"absolute",bottom:e.marginLG,left:"50%",transform:"translateX(-50%)",display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center"}}}}}),wt=n.defineComponent({name:"PageLock",props:xt,emits:["update:open","openChange"],setup(e){const t=c.getPrefixCls({suffixCls:"page-lock",isPor:!0}),{wrapSSR:a,hashId:r}=p.useProStyle("ProPageLock",[St],t),o=I.useLocalStorage(t,{open:!1,password:""}),[i,l]=A.useMergedState(!1,{value:n.computed(()=>e.open),onChange:h=>{e.onOpenChange?.(h),e["onUpdate:open"]?.(h)}}),[s,u]=A.useState(!1),g=n.ref();function d(h){return e.cryptoFn?e.cryptoFn(h):h}function f(h){o.value.open=s.value,o.value.password=d(h)}const x=n.computed(()=>e.shortsKey),T=n.computed(()=>o.value.open&&!!o.value.password),F=I.useMagicKeys();I.whenever(F["Alt+KeyL"],()=>{x.value?.disabled||i.value||l(!0)}),n.watch(s,h=>{f(h&&(g.value?.formState?.password||o.value.password)||"")}),n.onMounted(()=>{T.value?u(!0):f("")});const w=()=>{l(!1),u(!0)},S=()=>{l(!1),f(""),g.value?.resetFields()};return()=>a(n.createVNode(n.Fragment,null,[s.value&&n.createVNode(Nt,n.mergeProps(R.pick(e,["name","avatar"]),{open:s.value,hashId:r.value,className:t,password:o.value.password,cryptoFn:d,onOpenChange:u}),null),n.createVNode(fe.GProModal,{width:400,type:"normal",title:"锁定屏幕",open:i.value,footer:!1,onCancel:S},{default:()=>[n.createVNode(Be,n.mergeProps({ref:g},R.pick(e,["name","avatar"]),{submitText:"锁定",hashId:r.value,className:t,onSubmit:w}),null)]})]))}});function Vt(e,t){const a=new Map;return e.filter(r=>{const o=r[t];return a.has(o)?!1:(a.set(o,r),!0)})}function It(e){return e?/^https?:\/\/.*$/.test(e):!1}const Tt=new Set(["$","(",")","*","+",".","?","[","\\","]","^","{","|","}"]),Bt=({className:e,value:t})=>t?n.createVNode(m.Empty,{image:m.Empty.PRESENTED_IMAGE_SIMPLE,description:`未找到搜索结果 "${t}"`},null):n.createVNode("div",{class:e},[n.createTextVNode("没有搜索历史")]),Rt=n.defineComponent({props:{...oe,className:String,hashId:String,keyword:String,onClose:Function},setup(e){const t=_e.useRouter(),a=I.useLocalStorage(e.historyKey||c.getPrefixCls({suffixCls:"layout-search-history",isPor:!0}),[]),r=n.ref(0),o=n.ref([]),i=I.useThrottleFn(l,200);function l(h){if(h=h.trim(),!h){o.value=[];return}const b=f(h),v=[];e.dataSource.forEach(k=>{if(k.meta?.hideInMenu)return;const Y=k.meta?.title||k.name||"";if(b.test(Y.toLowerCase())){let B=[];const P=k?.key?.split("-")||[];for(let M=0;M<P.length;M++)B.push(P.slice(0,M+1).join("-"));B=B.map(M=>e.dataSource.find(q=>q?.key===M)?.meta?.title||""),v.push(c.merge(k,{meta:{title:B.join("**")}}))}}),o.value=v,v.length>0&&(r.value=0),r.value=0}n.watch(()=>e.keyword,h=>{h?i(h):o.value=[...a.value]});function s(){o.value=[],e.onClose?.()}function u(){const h=document.querySelector(`[data-search-item="${r.value}"]`);h&&h.scrollIntoView({block:"nearest"})}async function g(){if(o.value.length===0)return;const h=o.value,b=r.value;if(h.length===0||b<0)return;const v=h[b];v&&(a.value.push(v),s(),await n.nextTick(),It(v.path)?window.open(v.path,"_blank"):t.push({path:v.path,replace:!0}))}function d(h){return Tt.has(h)?`\\${h}`:h}function f(h){const b=[...h].map(v=>d(v)).join(".*");return new RegExp(`.*${b}.*`)}function x(){o.value.length!==0&&(r.value--,r.value<0&&(r.value=o.value.length-1),u())}function T(){o.value.length!==0&&(r.value++,r.value>o.value.length-1&&(r.value=0),u())}n.onMounted(()=>{a.value.length>0&&(o.value=a.value),I.onKeyStroke("Enter",g),I.onKeyStroke("ArrowUp",x),I.onKeyStroke("ArrowDown",T)});function F(h){r.value=h}function w(h,b){h.stopPropagation(),e.keyword?o.value.splice(b,1):a.value.splice(b,1),r.value=r.value-1>=0?r.value-1:0,u()}const S=h=>c.classNames(`${e.className}${h?`-${h}`:""}`,e.hashId);return()=>n.createVNode(n.Fragment,null,[o.value.length>0?n.createVNode(n.Fragment,null,[a.value.length>0&&!e.keyword&&n.createVNode("div",{class:S("panel-title")},[n.createTextVNode("搜索历史")]),n.createVNode("div",{class:S("panel-list")},[Vt(o.value,"path").map((h,b)=>n.createVNode("div",{key:h.name,class:S(c.classNames("panel-item",b===r.value&&"active")),"data-search-item":b,onClick:()=>g(),onMouseenter:()=>F(b)},[n.createVNode("div",{class:S("panel-item-left")},[n.createVNode(z.LazyIcon,n.mergeProps(h.meta||{},{icon:h.meta?.icon||n.createVNode(N.MenuOutlined,null,null),classNames:S("panel-icon")}),null),h.meta?.title?.split("**")?.map((v,k)=>n.createVNode(n.Fragment,null,[v,k<h.meta?.title?.split("**")?.length-1&&n.createVNode(N.ArrowRightOutlined,null,null)])),n.createVNode("span",null,null)]),n.createVNode(N.CloseOutlined,{onClick:v=>w(v,b)},null)]))])]):n.createVNode(Bt,{className:S("result"),value:e.keyword},null)])}}),At=e=>({[e.componentCls]:{display:"flex",alignItems:"center",justifyContent:"center",height:36,gap:12,cursor:"pointer",fontSize:e.fontSizeSM,color:e.colorTextTertiary,paddingBlock:e.paddingXXS/2,paddingInline:e.paddingXS,borderRadius:e.borderRadiusLG*2,backgroundColor:e.layout?.header?.colorBgRightActionsItemHover,transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,">.anticon":{fontSize:e.fontSize,color:e.colorTextTertiary},"&-word-icon":{padding:"4px 6px",lineHeight:p.unit(e.fontSizeSM),borderTopLeftRadius:e.borderRadiusSM,borderBottomLeftRadius:e.borderRadiusSM,borderTopRightRadius:e.borderRadiusLG*2,borderBottomRightRadius:e.borderRadiusLG*2,backgroundColor:e.colorBgContainer},"&:hover":{color:e.colorTextSecondary},"&-panel":{"&-title":{color:e.colorTextQuaternary,lineHeight:e.lineHeight,marginBlockEnd:e.marginXS},"&-list":{display:"flex",flexDirection:"column",gap:12},"&-item":{display:"flex",alignItems:"center",justifyContent:"space-between",cursor:"pointer",fontSize:e.fontSize,lineHeight:e.lineHeight,padding:e.paddingXS,borderRadius:e.borderRadiusLG,backgroundColor:e.colorBgContainer,transition:`all ${e.motionDurationFast} ${e.motionEaseInOut}`,"&-left":{display:"flex",alignItems:"center",gap:e.sizeStep},"&.active":{backgroundColor:e.colorPrimary,color:e.colorTextLightSolid}}},"&-result":{display:"flex",alignItems:"center",justifyContent:"center",paddingBlockStart:60,color:e.colorTextQuaternary},"&-modal-footer":{display:"flex",alignItems:"center",gap:e.marginXS,fontSize:12,color:e.colorTextSecondary},"&-modal-footer-icon":{display:"flex",alignItems:"center",gap:4}}});function Et(e){return p.useStyle("SearchPageInput",t=>{const a=p.mergeToken(t,{});return[At(a)]},e)}const Ft=({className:e,hashId:t})=>n.createVNode("div",{class:c.classNames(`${e}-footer`,t)},[n.createVNode("div",{class:c.classNames(`${e}-footer-icon`,t)},[n.createVNode(N.EnterOutlined,null,null),n.createTextVNode("选择")]),n.createVNode("div",{class:c.classNames(`${e}-footer-icon`,t)},[n.createVNode(N.ArrowUpOutlined,null,null),n.createVNode(N.ArrowUpOutlined,{rotate:180},null),n.createTextVNode("导航")])]),$t=n.defineComponent({name:"SearchPageInput",props:{...oe,dark:{type:Boolean,default:void 0},disabledShortKey:{type:Boolean,default:!1}},setup(e){const t=c.getPrefixCls({suffixCls:"page-search",isPor:!0}),{wrapSSR:a,hashId:r}=Et(t),[o,i]=A.useState(""),[l,s]=A.useState(!1),u=z.useProLayoutContext(),g=I.useMagicKeys(),d=c.isWindowsOs()?g["ctrl+k"]:g["cmd+k"],f=n.ref(),x=n.computed(()=>c.getLevelData(e.dataSource?.length?e.dataSource:u?.menuProps?.value?.menuData));I.whenever(d,()=>{e.disabledShortKey||s(!0)}),I.whenever(l,()=>{n.nextTick(()=>{f.value?.focus()})});const T=()=>{s(!1),o.value=""};return()=>{const F={className:`${t}`,hashId:r.value},w=`${t}-modal`;return a(n.createVNode(n.Fragment,null,[n.createVNode("div",{class:c.classNames(t,r.value),onClick:()=>s(!0)},[n.createVNode(N.SearchOutlined,null,null),n.createVNode("span",{class:c.classNames(`${t}-word`,r.value)},[n.createTextVNode("搜索")]),n.createVNode("span",{class:c.classNames(`${t}-word-icon`,r.value)},[n.createTextVNode("⌘")," ",n.createVNode("kbd",null,[n.createTextVNode("K")])])]),n.createVNode(fe.GProModal,{class:c.classNames(`${w}`,r.value),width:600,scrollProps:{maxHeight:400,minHeight:200},centered:!1,title:n.createVNode(m.Input,{style:{width:`${600*.8}px`,padding:0},ref:f,bordered:!1,size:"large",placeholder:"搜索导航菜单",value:o.value,prefix:n.createVNode(N.SearchOutlined,null,null),onChange:S=>i(S.target.value)},null),open:l.value,footer:n.createVNode(Ft,{className:w,hashId:r.value},null),onCancel:()=>T()},{default:()=>[n.createVNode(Rt,n.mergeProps(F,{keyword:o.value,dataSource:x.value,onClose:()=>T()}),null)]})]))}}}),kt=e=>({[`${e.componentCls}`]:{"&-header-actions":{display:"flex",alignItems:"center",justifyContent:"flex-end",height:"100%",gap:e.paddingXS,"&-item":{display:"inline-flex",alignItems:"center",justifyContent:"center",paddingBlock:0,paddingInline:2,color:e.layout?.header?.colorTextRightActionsItem,fontSize:14,cursor:"pointer",borderRadius:e.borderRadius,".anticon":{color:e.layout?.header?.colorTextRightActionsItem,transition:`color ${e.motionDurationMid}, background-color ${e.motionDurationMid}`,"&:hover":{color:e.layout?.header?.colorTextRightActionsItemHover}},[`&${e.componentCls}-header-actions-theme`]:{fontSize:18,[`${e.componentCls}-header-actions-icon`]:{paddingInline:4,paddingBlock:4}},"> *":{paddingInline:6,paddingBlock:6,borderRadius:e.borderRadius,transition:`color ${e.motionDurationMid}, background-color ${e.motionDurationMid}`,"&:hover":{color:e.layout?.header?.colorTextRightActionsItemHover,backgroundColor:e.layout?.header?.colorBgRightActionsItemHover}}},[`&>${e.antCls}-dropdown-trigger`]:{color:e.colorTextTertiary,paddingInline:8,paddingBlock:8,cursor:"pointer",display:"flex",alignItems:"center",height:44,lineHeight:p.unit(44),borderRadius:e.borderRadius,paddingInlineEnd:e.padding,"&:hover":{backgroundColor:p.setAlpha(e.colorTextBase,.03)}},"&-avatar":{display:"inline-flex",alignItems:"center",justifyContent:"center",paddingInlineStart:e.padding,paddingInlineEnd:e.padding,cursor:"pointer",color:e.layout?.header?.colorTextRightActionsItem,[`${e.componentCls}-header-actions-name`]:{marginInlineStart:8},"> div":{height:"44px",color:e.layout?.header?.colorTextRightActionsItem,paddingInline:8,paddingBlock:8,cursor:"pointer",display:"flex",alignItems:"center",lineHeight:"44px",borderRadius:e.borderRadius,"&:hover":{backgroundColor:e.layout?.header?.colorBgRightActionsItemHover}}}}}});function Mt(e){return p.useStyle("RightContent",t=>{const a=p.mergeToken(t);return[kt(a)]},e)}const Ot=n.defineComponent({name:"GlobalRightContent",props:Ve(),inheritAttrs:!1,emits:{click:e=>e.length>0,logout:e=>typeof e=="function"},slots:Object,setup(e,{slots:t}){const{isFullscreen:a,toggle:r}=I.useFullscreen(),o=z.useProLayoutContext(),i=A.useMediaQuery(),{setTheme:l,isDark:s,resolvedTheme:u}=ae.useThemeContext(),g=c.getPrefixCls({suffixCls:"global",isPor:!0}),{wrapSSR:d,hashId:f}=Mt(g),x=n.ref(),[T,F]=A.useState(!1),[w,S]=A.useState("auto"),h=n.computed(()=>c.isBoolean(o?.isMobile?.value)?o?.isMobile?.value:i.value==="sm"||i.value==="xs"),b=n.computed(()=>e.actions===!1?{}:{...{lock:!0,theme:!0,search:!0,themeEditor:!0,fullScreen:!0},...e.actions}),v=I.useDebounceFn(async B=>{S(B)},160),k=()=>{x.value&&ae.toggleAnimateTheme(x.value,{isDark:u.value==="light",setTheme:l})};function Y(B){c.isFunction(e.onClick)&&e.onClick?.(B)}return()=>{const B=c.getSlotsProps({slots:t,props:e,keys:["dropdownRender","dropdownMenuRender","dropdownMenuExtraItemRender"],render:!0}),P=c.getSlot({slots:t,props:e,key:"actionsRender"}),M=a.value?N.CompressOutlined:N.ExpandOutlined;return d(n.createVNode("div",{class:`${g}-right-content ${f.value}`.trim(),style:{minWidth:w.value,height:"100%"}},[n.createVNode("div",{style:{height:"100%"}},[n.createVNode(mt,{key:"resize-observer",onResize:({width:q})=>{v(q)}},{default:()=>[n.createVNode("div",{class:`${g}-header-actions ${f.value}`.trim()},[t.default?.()??n.createVNode(n.Fragment,null,[b.value.search&&!h.value&&n.createVNode($t,{dataSource:e.dataSource,disabledShortKey:e.shortsKey?.disabled},null),b.value.theme&&n.createVNode("div",{ref:x,class:`${g}-header-actions-item ${g}-header-actions-theme ${f.value}`.trim()},[n.createVNode(_,{class:`${g}-header-actions-icon ${f.value}`.trim(),type:s.value?"moon":"sunny",onClick:()=>k()},null)]),b.value.themeEditor&&!h.value&&n.createVNode("div",{class:`${g}-header-actions-item ${f.value}`.trim()},[n.createVNode(N.SettingOutlined,{onClick:()=>Y("themeEditor")},null)]),b.value.fullScreen&&!h.value&&n.createVNode("div",{class:`${g}-header-actions-item ${f.value}`.trim()},[n.createVNode(M,{onClick:()=>r()},null)]),P?P?.([`${g}-header-actions-item`,f.value]):null]),n.createVNode(m.Dropdown,n.mergeProps({placement:"bottomRight"},e.dropdownProps,{overlay:B.dropdownMenuRender||n.createVNode(m.Menu,null,{default:()=>[B.dropdownMenuExtraItemRender,b.value.lock&&n.createVNode(n.Fragment,null,[n.createVNode(m.MenuItem,{key:"lock",icon:n.createVNode(N.LockOutlined,null,null),onClick:()=>F(!0)},{default:()=>[n.createTextVNode("锁定屏幕")]}),n.createVNode(m.Menu.Divider,null,null)]),n.createVNode(m.MenuItem,{key:"logout",icon:n.createVNode(N.LogoutOutlined,null,null),onClick:()=>e.onLogout?.()},{default:()=>[n.createTextVNode("退出登录")]})]})}),{default:()=>[B.dropdownRender||n.createVNode("div",{class:`${g}-header-actions-avatar ${f.value}`.trim()},[n.createVNode(m.Avatar,{size:28,icon:n.createVNode(N.UserOutlined,null,null),src:e.avatar},null),n.createVNode("span",{class:`${g}-header-actions-name ${f.value}`.trim()},[e.name])])]})])]})]),n.createVNode(wt,{open:T.value,onOpenChange:q=>F(q)},null)]))}}}),{provideContext:zt,useInjectContext:D}=p.useContext("theme-editor"),Re={width:Number,isEqual:Boolean,open:{type:Boolean,default:void 0},onSync:Function,onOpenChange:{type:Function,default:void 0}},Ae={open:{type:Boolean,default:void 0},"onUpdate:open":{type:Function,default:void 0},defaultValue:{type:Object},defaultTokens:{type:Object,default:()=>({})},onChange:{type:Function},copyButton:{type:Boolean,default:!0},onChangeTokensState:{type:Function},onChangeSettingState:{type:Function}};function Lt(e){const a=Object.keys(e).reduce((r,o)=>(r[o]=!1,r),{});return e.layout==="mix"&&(a.fixSiderbar=!0,a.fixedHeader=!0),e.layout==="top"&&(a.fixSiderbar=!0,a.splitMenus=!0),e.layout==="side"&&(a.splitMenus=!0),e.layout==="simple"&&(a.splitMenus=!0,a.fixedHeader=!0,a.showTabsBar=!0,a.fixedTabsBar=!0),e.layout==="wide"&&(a.splitMenus=!0,a.fixedHeader=!0,a.fixSiderbar=!0,a.showTabsBar=!0,a.fixedTabsBar=!0),a}function Ee(e){return e.layout==="mix"&&(e.fixSiderbar=!0,e.fixedHeader=!0,e.splitMenus=!0),e.layout==="top"&&(e.fixSiderbar=!1,e.fixedHeader=!0,e.splitMenus=!1),e.layout==="simple"&&(e.splitMenus=!1,e.showTabsBar=!1,e.fixedHeader=!1,e.fixSiderbar=!1),e.layout==="side"&&(e.splitMenus=!1,e.fixedHeader=!0,e.fixSiderbar=!0),e.layout==="wide"&&(e.splitMenus=!1,e.fixSiderbar=!1,e.fixedHeader=!0,e.showTabsBar=!1,e.fixedTabsBar=!1),e}const Pt=[{value:"light",label:()=>n.createVNode("div",{style:{display:"flex",alignItems:"center",gap:"6px"}},[n.createVNode(_,{type:"moon"},null),n.createTextVNode("亮色")])},{value:"dark",label:()=>n.createVNode("div",{style:{display:"flex",alignItems:"center",gap:"6px"}},[n.createVNode(_,{type:"sunny"},null),n.createTextVNode("深色")])},{value:"system",label:()=>n.createVNode("div",{style:{display:"flex",alignItems:"center",gap:"6px"}},[n.createVNode(N.DesktopOutlined,null,null),n.createTextVNode("自动")])}],Ht=[{key:"light",title:"亮色"},{key:"dark",title:"深色"}],Fe=[{key:"side",title:"侧边导航"},{key:"mix",title:"混合导航"},{key:"top",title:"顶部导航"},{key:"wide",title:"定宽导航"},{key:"simple",title:"简单导航"}],_t=[{label:"fixedHeader",title:"固定 Header"},{label:"fixSiderbar",title:"固定侧边菜单"},{label:"splitMenus",title:"自动分割菜单"}],Dt=[{label:"showTabsBar",title:"多标签"},{label:"fixedTabsBar",title:"固定多标签"}],jt=[{key:"techBlue",color:"#1677FF",title:"拂晓蓝(默认)"},{key:"dust",color:"#F5222D",title:"薄暮"},{key:"volcano",color:"#FA541C",title:"火山"},{key:"sunset",color:"#FAAD14",title:"日暮"},{key:"cyan",color:"#13C2C2",title:"明青"},{key:"green",color:"#52C41A",title:"极光绿"},{key:"geekblue",color:"#2F54EB",title:"极客蓝"},{key:"purple",color:"#722ED1",title:"酱紫"}],qt=n.defineComponent({name:"BlockCheckbox",props:{value:String,list:{type:Array,default:()=>[]},configType:String,onChange:Function},setup(e){const{hashId:t,prefixCls:a}=D();return()=>{const r=`${a}-block-checkbox`;return n.createVNode("div",{class:[r,t.value]},[e.list.map(o=>n.createVNode(m.Tooltip,{title:o.title,key:o.key},{default:()=>[n.createVNode("div",{class:c.classNames(t.value,`${r}-item`,`${r}-item-${o.key}`,`${r}-${e.configType}-item`),onClick:i=>e.onChange?.(o.key,i)},[o.key==="wide"&&n.createVNode("div",{class:[`${r}-item-${o.key}-content`,t.value]},null),n.createVNode(N.CheckOutlined,{class:`${r}-selectIcon ${t.value}`.trim(),style:{display:e.value===o.key?"block":"none"}},null),o?.icon?n.createVNode("div",{class:`${r}-icon ${t.value}`.trim()},[o.icon]):null])]}))])}}}),ee=n.defineComponent({name:"RegionalChange",props:{label:String,value:Boolean,valueKey:String,disabled:Boolean,onChange:Function},setup(e){const{hashId:t,prefixCls:a}=D();return()=>n.createVNode(m.List,{class:`${a}-list ${t.value}`.trim(),split:!1,size:"small",renderItem:({item:r})=>n.createVNode(m.Tooltip,{title:r.disabled?r.disabledReason:"",placement:"left"},{default:()=>[n.createVNode(m.List.Item,{actions:[r.action]},{default:()=>[n.createVNode("span",{style:{opacity:r.disabled?.5:1}},[r.title])]})]}),dataSource:[{title:e.label,action:n.createVNode(m.Switch,{size:"small",disabled:e.disabled,checked:!!e.value,onChange:r=>{e.onChange&&e.onChange(e.valueKey,r)}},null)}]},null)}}),Wt=n.defineComponent({props:{...Re,...R.pick(Ae,["copyButton"]),theme:[Boolean,String],onChange:Function,onChangeColorScheme:Function},setup(e){const{hashId:t,drawerClass:a,prefixCls:r,config:o}=D(),{copy:i,copied:l,isSupported:s}=I.useClipboard(),u=n.computed(()=>Lt(o.value));n.watch(l,d=>{d&&m.message.success("拷贝成功,请到 /src/store/modules/layout.ts 文件中替换 layoutConfig 默认配置")});const g=()=>{s.value&&i(JSON.stringify(o.value))};return()=>n.createVNode(m.Drawer,{width:e.width,closable:!1,placement:"right",open:e.open,bodyStyle:{padding:0,overflow:"hidden"},maskStyle:{background:"transparent"},onClose:()=>e.onOpenChange?.(!1)},{default:()=>[n.createVNode("div",{class:c.classNames([`${a}-wrapper`,t.value])},[n.createVNode(ge.GScrollbars,null,{default:()=>[n.createVNode("div",{class:c.classNames([`${a}-content`,t.value])},[n.createVNode("div",{class:c.classNames([`${r}-card`,t.value])},[n.createVNode("div",{class:c.classNames(`${r}-card-header`,t.value)},[n.createVNode("div",{class:c.classNames(`${r}-card-header-title`,t.value)},[n.createVNode("span",null,[n.createTextVNode("系统配置")]),n.createVNode(m.Tooltip,{title:!e.isEqual&&"数据有变化,点击可进行重置",placement:"left"},{default:()=>[n.createVNode(m.Badge,{dot:!e.isEqual},{default:()=>[n.createVNode("div",{class:c.classNames(`${r}-card-header-action`,t.value),onClick:()=>!e.isEqual&&e.onSync?.()},[n.createVNode(_,{type:"reload"},null)])]})]})]),n.createVNode("div",{class:c.classNames(`${r}-card-header-subtitle`,t.value)},[o.value.title])]),n.createVNode("div",{class:c.classNames(`${r}-card-content`,t.value)},[n.createVNode(Z,{prefixCls:`${r}`,hashId:t.value,title:"整体风格"},{default:()=>[n.createVNode(m.Segmented,{value:e.theme,options:Pt,onChange:d=>e.onChangeColorScheme?.(d)},null)]}),n.createVNode(m.Divider,null,null),n.createVNode(Z,{hashId:t.value,prefixCls:r,title:"导航模式"},{default:()=>[n.createVNode(qt,{value:o.value.layout,key:"layout",configType:"layout",list:Fe,onChange:d=>e.onChange?.({layout:d})},null)]}),_t.map(({label:d,title:f})=>n.createVNode(ee,{label:f,valueKey:d,value:o.value[d],disabled:u.value?.[d],onChange:(x,T)=>e.onChange?.({[x]:T})},null)),n.createVNode(m.Divider,null,null),n.createVNode(Z,{hashId:t.value,prefixCls:r,title:"其他设置"},{default:()=>[Dt.map(({label:d,title:f})=>n.createVNode(ee,{label:f,valueKey:d,value:o.value[d],disabled:u.value[d],onChange:(x,T)=>e.onChange?.({[x]:T})},null)),n.createVNode(ee,{label:"色弱模式",valueKey:"colorWeak",value:o.value?.colorWeak,onChange:(d,f)=>e.onChange?.({[d]:f})},null),n.createVNode(ee,{label:"顶部进度条",valueKey:"progress",value:o.value?.progress,onChange:(d,f)=>e.onChange?.({[d]:f})},null)]}),e.copyButton&&n.createVNode(m.Divider,null,null),n.createVNode("div",{style:{display:"flex",gap:"10px"}},[e.copyButton&&n.createVNode(m.Button,{onClick:()=>g(),block:!0},{default:()=>[n.createVNode(N.CopyOutlined,null,null),n.createTextVNode("拷贝设置")]}),n.createVNode(m.Button,{block:!0},{default:()=>[n.createVNode(N.ClearOutlined,null,null),n.createTextVNode("清空缓存")]})])])])])]})])]})}}),Gt=e=>({[`${e.componentCls}`]:{display:"flex",alignItems:"flex-start",flex:1,overflow:"hidden","&-nav":{position:"relative",paddingInline:e.paddingXS},"&-line":{position:"absolute",width:3,height:80,left:0,background:e.colorPrimary,transition:`top ${e.motionDurationMid}`,borderRadius:"0 9px 9px 0"},"&-panel":{cursor:"pointer",textAlign:"center",width:56,height:80,padding:e.paddingXXS,borderRadius:e.borderRadius*2,marginBlockEnd:e.marginXS,transition:`all ${e.motionDurationMid} linear`,"&-active":{backgroundColor:e.layout?.header?.colorBgRightActionsItemHover},svg:{fontSize:48,borderRadius:9},"&-title":{fontSize:e.fontSizeSM,marginBlockStart:e.marginXXS-2,lineHeight:"20px",color:e.colorText}},"&-content":{flex:1,height:`calc(100% - ${e.paddingXS}px)`,color:e.colorText,marginInlineEnd:e.marginXS,borderRadius:e.borderRadius*2,backgroundColor:e.layout?.header?.colorBgRightActionsItemHover}}}),Kt=n.defineComponent({props:{activeKey:{type:String,default:""},dataSource:{type:Array,default:()=>[]},renderItem:{type:Function},renderContent:{type:Function},onChange:{type:Function}},setup(e){const t=c.getPrefixCls({suffixCls:"switch-tab",isPor:!0}),{wrapSSR:a,hashId:r}=p.useProStyle("SwitchTab",[Gt],t),o=n.ref(e.activeKey);n.watch(()=>e.activeKey,l=>{o.value=l});function i(l){o.value=l,e.onChange?.(l)}return()=>a(n.createVNode("div",{class:c.classNames(`${t}`,r.value)},[n.createVNode("div",{class:c.classNames(`${t}-nav`,r.value)},[e.dataSource.map(l=>n.createVNode("div",{key:l.value,class:c.classNames(`${t}-panel`,r.value,o.value===l.value&&`${t}-panel-active`),onClick:()=>i(l.value)},[e.renderItem?.(l),n.createVNode("div",{class:c.classNames(`${t}-panel-title`,r.value)},[l.label])])),n.createVNode("div",{class:c.classNames(`${t}-line`,r.value),style:{top:`${88*e.dataSource.findIndex(l=>l.value===o.value)}px`}},null)]),n.createVNode("div",{class:c.classNames(`${t}-content`,r.value)},[n.createVNode(ge.GScrollbars,null,{default:()=>[e.renderContent?.(o.value)]})])]))}}),{provideContext:Xt,useInjectContext:Zt}=p.useContext("tokens-state"),Yt=n.defineComponent({setup(){const{prefixCls:e,hashId:t,tokens:a}=D(),{onChange:r}=Zt(),{token:o}=p.useProConfigContext(),i=n.computed(()=>({colorPrimary:a.value.colorPrimary||o.value.colorPrimary})),l=n.computed(()=>{const s=new me.AggregationColor(i.value.colorPrimary);return{hsb:s.toHsbString(),rgb:s.toRgbString(),hex:s.toHexString()}});return()=>n.createVNode(Z,{hashId:t.value,prefixCls:e,title:"主题色"},{default:()=>[n.createVNode("div",{class:c.classNames(`${e}-color-list`,t.value)},[jt.map(s=>n.createVNode(m.Tooltip,{title:s.title,key:s.key},{default:()=>[n.createVNode("div",{class:c.classNames(`${e}-color-item`,t.value),style:{background:s.color},onClick:()=>{r?.({colorPrimary:s.color})}},[s.color.toLowerCase()===i.value.colorPrimary.toLowerCase()?n.createVNode(N.CheckOutlined,{style:{color:o.value.colorWhite,fontSize:"12px"}},null):null])]}))]),n.createVNode(me.GColorPicker,{value:i.value.colorPrimary,onChangeComplete:s=>{r?.({colorPrimary:s.toHexString()})}},{default:()=>[n.createVNode("div",{class:c.classNames(`${e}-color-picker`,t.value)},[n.createVNode("div",{class:c.classNames(`${e}-color-picker-inner`,t.value)},[n.createVNode("div",{class:c.classNames(`${e}-color-picker-top`,t.value),style:{background:i.value.colorPrimary}},[n.createVNode("p",null,[n.createTextVNode("hsb:"),l.value.hsb]),n.createVNode("p",null,[n.createTextVNode("rgb:"),l.value.rgb])]),n.createVNode("div",{class:c.classNames(`${e}-color-picker-bottom`,t.value)},[n.createVNode("div",null,[n.createVNode("p",null,[n.createTextVNode("自定义主题颜色")]),n.createVNode("p",null,[n.createTextVNode("HEX:"),l.value.hex])]),n.createVNode(N.EditOutlined,{style:{fontSize:"18px"}},null)])])])]})]})}}),Qt=n.defineComponent({setup(){const{prefixCls:e,hashId:t}=D();return()=>n.createVNode(Z,{hashId:t.value,prefixCls:e,title:"侧边主题色"},null)}}),Jt=n.defineComponent({setup(){const{token:e}=p.useProConfigContext();return()=>n.createVNode("div",{style:{padding:p.unit(e.value.padding)}},[n.createVNode(Yt,null,null),n.createVNode(Qt,null,null)])}}),Ut=n.defineComponent({name:"ColorSvg",setup(){return()=>n.createVNode("svg",{width:"1em",height:"1em",viewBox:"0 0 64 64",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[n.createVNode("rect",{width:"8",height:"8",fill:"#DBE1FC"},null),n.createVNode("rect",{y:"8",width:"8",height:"8",fill:"#B6C5FA"},null),n.createVNode("rect",{y:"16",width:"8",height:"8",fill:"#90A9F9"},null),n.createVNode("rect",{y:"24",width:"8",height:"8",fill:"#688DF7"},null),n.createVNode("rect",{y:"32",width:"8",height:"8",fill:"#4471EC"},null),n.createVNode("rect",{y:"40",width:"8",height:"8",fill:"#2257D2"},null),n.createVNode("rect",{y:"48",width:"8",height:"8",fill:"#1640A6"},null),n.createVNode("rect",{y:"56",width:"8",height:"8",fill:"#0D2B76"},null),n.createVNode("rect",{x:"48",width:"8",height:"8",fill:"#CBEAD3"},null),n.createVNode("rect",{x:"48",y:"8",width:"8",height:"8",fill:"#A4D7B5"},null),n.createVNode("rect",{x:"48",y:"16",width:"8",height:"8",fill:"#77BE92"},null),n.createVNode("rect",{x:"48",y:"24",width:"8",height:"8",fill:"#57A075"},null),n.createVNode("rect",{x:"48",y:"32",width:"8",height:"8",fill:"#3F855C"},null),n.createVNode("rect",{x:"48",y:"40",width:"8",height:"8",fill:"#306948"},null),n.createVNode("rect",{x:"48",y:"48",width:"8",height:"8",fill:"#235136"},null),n.createVNode("rect",{x:"48",y:"56",width:"8",height:"8",fill:"#163724"},null),n.createVNode("rect",{x:"32",width:"8",height:"8",fill:"#F8DCCA"},null),n.createVNode("rect",{x:"32",y:"8",width:"8",height:"8",fill:"#F3BA94"},null),n.createVNode("rect",{x:"32",y:"16",width:"8",height:"8",fill:"#EC9B66"},null),n.createVNode("rect",{x:"32",y:"24",width:"8",height:"8",fill:"#D97E40"},null),n.createVNode("rect",{x:"32",y:"32",width:"8",height:"8",fill:"#B9642A"},null),n.createVNode("rect",{x:"32",y:"40",width:"8",height:"8",fill:"#944A1A"},null),n.createVNode("rect",{x:"32",y:"48",width:"8",height:"8",fill:"#713712"},null),n.createVNode("rect",{x:"32",y:"56",width:"8",height:"8",fill:"#51270A"},null),n.createVNode("rect",{x:"56",width:"8",height:"8",fill:"#D5E3FC"},null),n.createVNode("rect",{x:"56",y:"8",width:"8",height:"8",fill:"#A3C7FA"},null),n.createVNode("rect",{x:"56",y:"16",width:"8",height:"8",fill:"#6EAAF8"},null),n.createVNode("rect",{x:"56",y:"24",width:"8",height:"8",fill:"#4C91E7"},null),n.createVNode("rect",{x:"56",y:"32",width:"8",height:"8",fill:"#3577C8"},null),n.createVNode("rect",{x:"56",y:"40",width:"8",height:"8",fill:"#295EA0"},null),n.createVNode("rect",{x:"56",y:"48",width:"8",height:"8",fill:"#1C4679"},null),n.createVNode("rect",{x:"56",y:"56",width:"8",height:"8",fill:"#123258"},null),n.createVNode("rect",{x:"24",width:"8",height:"8",fill:"#F8DADB"},null),n.createVNode("rect",{x:"24",y:"8",width:"8",height:"8",fill:"#F1B2B3"},null),n.createVNode("rect",{x:"24",y:"16",width:"8",height:"8",fill:"#ED8B8D"},null),n.createVNode("rect",{x:"24",y:"24",width:"8",height:"8",fill:"#D96B6D"},null),n.createVNode("rect",{x:"24",y:"32",width:"8",height:"8",fill:"#BD5156"},null),n.createVNode("rect",{x:"24",y:"40",width:"8",height:"8",fill:"#96373C"},null),n.createVNode("rect",{x:"24",y:"48",width:"8",height:"8",fill:"#752027"},null),n.createVNode("rect",{x:"24",y:"56",width:"8",height:"8",fill:"#581119"},null),n.createVNode("rect",{x:"8",width:"8",height:"8",fill:"#EBDDFC"},null),n.createVNode("rect",{x:"8",y:"8",width:"8",height:"8",fill:"#D6BDFA"},null),n.createVNode("rect",{x:"8",y:"16",width:"8",height:"8",fill:"#BE9AF8"},null),n.createVNode("rect",{x:"8",y:"24",width:"8",height:"8",fill:"#A079E4"},null),n.createVNode("rect",{x:"8",y:"32",width:"8",height:"8",fill:"#8862CA"},null),n.createVNode("rect",{x:"8",y:"40",width:"8",height:"8",fill:"#6A44AB"},null),n.createVNode("rect",{x:"8",y:"48",width:"8",height:"8",fill:"#512A91"},null),n.createVNode("rect",{x:"8",y:"56",width:"8",height:"8",fill:"#360F72"},null),n.createVNode("rect",{x:"40",width:"8",height:"8",fill:"#FBE8BF"},null),n.createVNode("rect",{x:"40",y:"8",width:"8",height:"8",fill:"#F7D582"},null),n.createVNode("rect",{x:"40",y:"16",width:"8",height:"8",fill:"#ECBB46"},null),n.createVNode("rect",{x:"40",y:"24",width:"8",height:"8",fill:"#CA9E35"},null),n.createVNode("rect",{x:"40",y:"32",width:"8",height:"8",fill:"#9B7926"},null),n.createVNode("rect",{x:"40",y:"40",width:"8",height:"8",fill:"#74591A"},null),n.createVNode("rect",{x:"40",y:"48",width:"8",height:"8",fill:"#584312"},null),n.createVNode("rect",{x:"40",y:"56",width:"8",height:"8",fill:"#3D2E09"},null),n.createVNode("rect",{x:"16",width:"8",height:"8",fill:"#F8D9EA"},null),n.createVNode("rect",{x:"16",y:"8",width:"8",height:"8",fill:"#F1AED7"},null),n.createVNode("rect",{x:"16",y:"16",width:"8",height:"8",fill:"#EC7EC7"},null),n.createVNode("rect",{x:"16",y:"24",width:"8",height:"8",fill:"#D95EB1"},null),n.createVNode("rect",{x:"16",y:"32",width:"8",height:"8",fill:"#BB4998"},null),n.createVNode("rect",{x:"16",y:"40",width:"8",height:"8",fill:"#943477"},null),n.createVNode("rect",{x:"16",y:"48",width:"8",height:"8",fill:"#72215B"},null),n.createVNode("rect",{x:"16",y:"56",width:"8",height:"8",fill:"#571042"},null)])}}),en=[{label:"色彩",value:"colors"}],tn=n.defineComponent({props:{...Re,onChange:{type:Function,default:void 0}},setup(e){const{hashId:t,prefixCls:a,drawerClass:r}=D(),{token:o}=p.useProConfigContext(),i=n.ref("colors"),l=n.computed(()=>z.getTokenLayoutTheme(o.value)),s=n.computed(()=>{const u=Fe.find(d=>d.key===l.value.layout)?.title;return`当前系统布局:${Ht.find(d=>d.key===l.value.theme)?.title}/${u}`});return Xt({onChange:e.onChange}),()=>{const{width:u,open:g,onOpenChange:d}=e;return n.createVNode(m.Drawer,{width:u,closable:!1,placement:"right",open:g,bodyStyle:{padding:0},maskStyle:{background:"transparent"},onClose:()=>d?.(!1)},{default:()=>[n.createVNode("div",{class:c.classNames([`${r}-wrapper`,t.value])},[n.createVNode("div",{style:{paddingInline:"8px",paddingTop:"8px"}},[n.createVNode("div",{class:c.classNames(`${a}-card-header`,t.value)},[n.createVNode("div",{class:c.classNames(`${a}-card-header-title`,t.value)},[n.createVNode("span",null,[n.createTextVNode("主题配置")]),n.createVNode(m.Tooltip,{title:!e.isEqual&&"数据有变化,点击可进行重置",placement:"left"},{default:()=>[n.createVNode(m.Badge,{dot:!e.isEqual},{default:()=>[n.createVNode("div",{class:c.classNames(`${a}-card-header-action`,t.value),onClick:()=>!e.isEqual&&e.onSync?.()},[n.createVNode(_,{type:"reload"},null)])]})]})]),n.createVNode("div",{class:c.classNames(`${a}-card-header-subtitle`,t.value)},[s.value])])]),n.createVNode(Kt,{activeKey:i.value,dataSource:en,renderItem:f=>{if(f.value==="colors")return n.createVNode(Ut,null,null)},renderContent:f=>{if(f==="colors")return n.createVNode(Jt,null,null)}},null)])]})}}}),nn=n.defineComponent({name:"Trigger",inheritAttrs:!1,props:{type:String,open:Boolean,onTypeChange:Function,onOpenChange:Function,onClose:Function},setup(e){const{prefixCls:t,hashId:a}=D();function r(o){return{width:o?p.unit(216):p.unit(48),transition:"width 0.3s"}}return()=>{const o=p.getTransitionProps(`${t}-dock-zoom`);return n.createVNode(n.Fragment,null,[n.createVNode("div",{class:c.classNames(a.value,`${t}-button`),onClick:()=>e.onOpenChange?.(!0)},[n.createVNode("sup",{class:c.classNames(a.value,`${t}-dot`)},null),n.createVNode("div",{class:c.classNames(a.value,`${t}-icon`)},[n.createVNode(_,{type:"paintbrush"},null)])]),n.createVNode(n.Transition,o,{default:()=>[n.withDirectives(n.createVNode("div",{class:c.classNames(a.value,`${t}-dock`)},[n.createVNode("div",{class:c.classNames(a.value,`${t}-dock-btn`,e.type==="setting"&&`${t}-dock-btn-active`),style:r(e.type==="setting"),onClick:()=>e.onTypeChange?.("setting")},[n.createVNode("div",{class:c.classNames(a.value,`${t}-dock-icon`)},[n.createVNode(N.SettingOutlined,null,null),e.type==="setting"&&n.createVNode("span",{class:c.classNames(a.value,`${t}-dock-icon-text`)},[n.createTextVNode("系统配置")])])]),n.createVNode("div",{class:c.classNames(a.value,`${t}-dock-btn`,e.type==="theme"&&`${t}-dock-btn-active`),style:r(e.type==="theme"),onClick:()=>e.onTypeChange?.("theme")},[n.createVNode("div",{class:c.classNames(a.value,`${t}-dock-icon`)},[n.createVNode(_,{type:"palette"},null),e.type==="theme"&&n.createVNode("span",{class:c.classNames(a.value,`${t}-dock-icon-text`)},[n.createTextVNode("主题配置")])])])]),[[n.vShow,e.open]])]})])}}});function V(e,t){an(e)&&(e="100%");var a=rn(e);return e=t===360?e:Math.min(t,Math.max(0,parseFloat(e))),a&&(e=parseInt(String(e*t),10)/100),Math.abs(e-t)<1e-6?1:(t===360?e=(e<0?e%t+t:e%t)/parseFloat(String(t)):e=e%t/parseFloat(String(t)),e)}function te(e){return Math.min(1,Math.max(0,e))}function an(e){return typeof e=="string"&&e.indexOf(".")!==-1&&parseFloat(e)===1}function rn(e){return typeof e=="string"&&e.indexOf("%")!==-1}function $e(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function ne(e){return e<=1?"".concat(Number(e)*100,"%"):e}function j(e){return e.length===1?"0"+e:String(e)}function on(e,t,a){return{r:V(e,255)*255,g:V(t,255)*255,b:V(a,255)*255}}function ke(e,t,a){e=V(e,255),t=V(t,255),a=V(a,255);var r=Math.max(e,t,a),o=Math.min(e,t,a),i=0,l=0,s=(r+o)/2;if(r===o)l=0,i=0;else{var u=r-o;switch(l=s>.5?u/(2-r-o):u/(r+o),r){case e:i=(t-a)/u+(t<a?6:0);break;case t:i=(a-e)/u+2;break;case a:i=(e-t)/u+4;break}i/=6}return{h:i,s:l,l:s}}function ie(e,t,a){return a<0&&(a+=1),a>1&&(a-=1),a<1/6?e+(t-e)*(6*a):a<1/2?t:a<2/3?e+(t-e)*(2/3-a)*6:e}function ln(e,t,a){var r,o,i;if(e=V(e,360),t=V(t,100),a=V(a,100),t===0)o=a,i=a,r=a;else{var l=a<.5?a*(1+t):a+t-a*t,s=2*a-l;r=ie(s,l,e+1/3),o=ie(s,l,e),i=ie(s,l,e-1/3)}return{r:r*255,g:o*255,b:i*255}}function Me(e,t,a){e=V(e,255),t=V(t,255),a=V(a,255);var r=Math.max(e,t,a),o=Math.min(e,t,a),i=0,l=r,s=r-o,u=r===0?0:s/r;if(r===o)i=0;else{switch(r){case e:i=(t-a)/s+(t<a?6:0);break;case t:i=(a-e)/s+2;break;case a:i=(e-t)/s+4;break}i/=6}return{h:i,s:u,v:l}}function sn(e,t,a){e=V(e,360)*6,t=V(t,100),a=V(a,100);var r=Math.floor(e),o=e-r,i=a*(1-t),l=a*(1-o*t),s=a*(1-(1-o)*t),u=r%6,g=[a,l,i,i,s,a][u],d=[s,a,a,l,i,i][u],f=[i,i,s,a,a,l][u];return{r:g*255,g:d*255,b:f*255}}function Oe(e,t,a,r){var o=[j(Math.round(e).toString(16)),j(Math.round(t).toString(16)),j(Math.round(a).toString(16))];return r&&o[0].startsWith(o[0].charAt(1))&&o[1].startsWith(o[1].charAt(1))&&o[2].startsWith(o[2].charAt(1))?o[0].charAt(0)+o[1].charAt(0)+o[2].charAt(0):o.join("")}function cn(e,t,a,r,o){var i=[j(Math.round(e).toString(16)),j(Math.round(t).toString(16)),j(Math.round(a).toString(16)),j(dn(r))];return o&&i[0].startsWith(i[0].charAt(1))&&i[1].startsWith(i[1].charAt(1))&&i[2].startsWith(i[2].charAt(1))&&i[3].startsWith(i[3].charAt(1))?i[0].charAt(0)+i[1].charAt(0)+i[2].charAt(0)+i[3].charAt(0):i.join("")}function dn(e){return Math.round(parseFloat(e)*255).toString(16)}function ze(e){return E(e)/255}function E(e){return parseInt(e,16)}function un(e){return{r:e>>16,g:(e&65280)>>8,b:e&255}}var le={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",goldenrod:"#daa520",gold:"#ffd700",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavenderblush:"#fff0f5",lavender:"#e6e6fa",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"};function hn(e){var t={r:0,g:0,b:0},a=1,r=null,o=null,i=null,l=!1,s=!1;return typeof e=="string"&&(e=mn(e)),typeof e=="object"&&(O(e.r)&&O(e.g)&&O(e.b)?(t=on(e.r,e.g,e.b),l=!0,s=String(e.r).substr(-1)==="%"?"prgb":"rgb"):O(e.h)&&O(e.s)&&O(e.v)?(r=ne(e.s),o=ne(e.v),t=sn(e.h,r,o),l=!0,s="hsv"):O(e.h)&&O(e.s)&&O(e.l)&&(r=ne(e.s),i=ne(e.l),t=ln(e.h,r,i),l=!0,s="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(a=e.a)),a=$e(a),{ok:l,format:e.format||s,r:Math.min(255,Math.max(t.r,0)),g:Math.min(255,Math.max(t.g,0)),b:Math.min(255,Math.max(t.b,0)),a}}var fn="[-\\+]?\\d+%?",gn="[-\\+]?\\d*\\.\\d+%?",L="(?:".concat(gn,")|(?:").concat(fn,")"),se="[\\s|\\(]+(".concat(L,")[,|\\s]+(").concat(L,")[,|\\s]+(").concat(L,")\\s*\\)?"),ce="[\\s|\\(]+(".concat(L,")[,|\\s]+(").concat(L,")[,|\\s]+(").concat(L,")[,|\\s]+(").concat(L,")\\s*\\)?"),$={CSS_UNIT:new RegExp(L),rgb:new RegExp("rgb"+se),rgba:new RegExp("rgba"+ce),hsl:new RegExp("hsl"+se),hsla:new RegExp("hsla"+ce),hsv:new RegExp("hsv"+se),hsva:new RegExp("hsva"+ce),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/};function mn(e){if(e=e.trim().toLowerCase(),e.length===0)return!1;var t=!1;if(le[e])e=le[e],t=!0;else if(e==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var a=$.rgb.exec(e);return a?{r:a[1],g:a[2],b:a[3]}:(a=$.rgba.exec(e),a?{r:a[1],g:a[2],b:a[3],a:a[4]}:(a=$.hsl.exec(e),a?{h:a[1],s:a[2],l:a[3]}:(a=$.hsla.exec(e),a?{h:a[1],s:a[2],l:a[3],a:a[4]}:(a=$.hsv.exec(e),a?{h:a[1],s:a[2],v:a[3]}:(a=$.hsva.exec(e),a?{h:a[1],s:a[2],v:a[3],a:a[4]}:(a=$.hex8.exec(e),a?{r:E(a[1]),g:E(a[2]),b:E(a[3]),a:ze(a[4]),format:t?"name":"hex8"}:(a=$.hex6.exec(e),a?{r:E(a[1]),g:E(a[2]),b:E(a[3]),format:t?"name":"hex"}:(a=$.hex4.exec(e),a?{r:E(a[1]+a[1]),g:E(a[2]+a[2]),b:E(a[3]+a[3]),a:ze(a[4]+a[4]),format:t?"name":"hex8"}:(a=$.hex3.exec(e),a?{r:E(a[1]+a[1]),g:E(a[2]+a[2]),b:E(a[3]+a[3]),format:t?"name":"hex"}:!1)))))))))}function O(e){return!!$.CSS_UNIT.exec(String(e))}var K=(function(){function e(t,a){t===void 0&&(t=""),a===void 0&&(a={});var r;if(t instanceof e)return t;typeof t=="number"&&(t=un(t)),this.originalInput=t;var o=hn(t);this.originalInput=t,this.r=o.r,this.g=o.g,this.b=o.b,this.a=o.a,this.roundA=Math.round(100*this.a)/100,this.format=(r=a.format)!==null&&r!==void 0?r:o.format,this.gradientType=a.gradientType,this.r<1&&(this.r=Math.round(this.r)),this.g<1&&(this.g=Math.round(this.g)),this.b<1&&(this.b=Math.round(this.b)),this.isValid=o.ok}return e.prototype.isDark=function(){return this.getBrightness()<128},e.prototype.isLight=function(){return!this.isDark()},e.prototype.getBrightness=function(){var t=this.toRgb();return(t.r*299+t.g*587+t.b*114)/1e3},e.prototype.getLuminance=function(){var t=this.toRgb(),a,r,o,i=t.r/255,l=t.g/255,s=t.b/255;return i<=.03928?a=i/12.92:a=Math.pow((i+.055)/1.055,2.4),l<=.03928?r=l/12.92:r=Math.pow((l+.055)/1.055,2.4),s<=.03928?o=s/12.92:o=Math.pow((s+.055)/1.055,2.4),.2126*a+.7152*r+.0722*o},e.prototype.getAlpha=function(){return this.a},e.prototype.setAlpha=function(t){return this.a=$e(t),this.roundA=Math.round(100*this.a)/100,this},e.prototype.isMonochrome=function(){var t=this.toHsl().s;return t===0},e.prototype.toHsv=function(){var t=Me(this.r,this.g,this.b);return{h:t.h*360,s:t.s,v:t.v,a:this.a}},e.prototype.toHsvString=function(){var t=Me(this.r,this.g,this.b),a=Math.round(t.h*360),r=Math.round(t.s*100),o=Math.round(t.v*100);return this.a===1?"hsv(".concat(a,", ").concat(r,"%, ").concat(o,"%)"):"hsva(".concat(a,", ").concat(r,"%, ").concat(o,"%, ").concat(this.roundA,")")},e.prototype.toHsl=function(){var t=ke(this.r,this.g,this.b);return{h:t.h*360,s:t.s,l:t.l,a:this.a}},e.prototype.toHslString=function(){var t=ke(this.r,this.g,this.b),a=Math.round(t.h*360),r=Math.round(t.s*100),o=Math.round(t.l*100);return this.a===1?"hsl(".concat(a,", ").concat(r,"%, ").concat(o,"%)"):"hsla(".concat(a,", ").concat(r,"%, ").concat(o,"%, ").concat(this.roundA,")")},e.prototype.toHex=function(t){return t===void 0&&(t=!1),Oe(this.r,this.g,this.b,t)},e.prototype.toHexString=function(t){return t===void 0&&(t=!1),"#"+this.toHex(t)},e.prototype.toHex8=function(t){return t===void 0&&(t=!1),cn(this.r,this.g,this.b,this.a,t)},e.prototype.toHex8String=function(t){return t===void 0&&(t=!1),"#"+this.toHex8(t)},e.prototype.toHexShortString=function(t){return t===void 0&&(t=!1),this.a===1?this.toHexString(t):this.toHex8String(t)},e.prototype.toRgb=function(){return{r:Math.round(this.r),g:Math.round(this.g),b:Math.round(this.b),a:this.a}},e.prototype.toRgbString=function(){var t=Math.round(this.r),a=Math.round(this.g),r=Math.round(this.b);return this.a===1?"rgb(".concat(t,", ").concat(a,", ").concat(r,")"):"rgba(".concat(t,", ").concat(a,", ").concat(r,", ").concat(this.roundA,")")},e.prototype.toPercentageRgb=function(){var t=function(a){return"".concat(Math.round(V(a,255)*100),"%")};return{r:t(this.r),g:t(this.g),b:t(this.b),a:this.a}},e.prototype.toPercentageRgbString=function(){var t=function(a){return Math.round(V(a,255)*100)};return this.a===1?"rgb(".concat(t(this.r),"%, ").concat(t(this.g),"%, ").concat(t(this.b),"%)"):"rgba(".concat(t(this.r),"%, ").concat(t(this.g),"%, ").concat(t(this.b),"%, ").concat(this.roundA,")")},e.prototype.toName=function(){if(this.a===0)return"transparent";if(this.a<1)return!1;for(var t="#"+Oe(this.r,this.g,this.b,!1),a=0,r=Object.entries(le);a<r.length;a++){var o=r[a],i=o[0],l=o[1];if(t===l)return i}return!1},e.prototype.toString=function(t){var a=!!t;t=t??this.format;var r=!1,o=this.a<1&&this.a>=0,i=!a&&o&&(t.startsWith("hex")||t==="name");return i?t==="name"&&this.a===0?this.toName():this.toRgbString():(t==="rgb"&&(r=this.toRgbString()),t==="prgb"&&(r=this.toPercentageRgbString()),(t==="hex"||t==="hex6")&&(r=this.toHexString()),t==="hex3"&&(r=this.toHexString(!0)),t==="hex4"&&(r=this.toHex8String(!0)),t==="hex8"&&(r=this.toHex8String()),t==="name"&&(r=this.toName()),t==="hsl"&&(r=this.toHslString()),t==="hsv"&&(r=this.toHsvString()),r||this.toHexString())},e.prototype.toNumber=function(){return(Math.round(this.r)<<16)+(Math.round(this.g)<<8)+Math.round(this.b)},e.prototype.clone=function(){return new e(this.toString())},e.prototype.lighten=function(t){t===void 0&&(t=10);var a=this.toHsl();return a.l+=t/100,a.l=te(a.l),new e(a)},e.prototype.brighten=function(t){t===void 0&&(t=10);var a=this.toRgb();return a.r=Math.max(0,Math.min(255,a.r-Math.round(255*-(t/100)))),a.g=Math.max(0,Math.min(255,a.g-Math.round(255*-(t/100)))),a.b=Math.max(0,Math.min(255,a.b-Math.round(255*-(t/100)))),new e(a)},e.prototype.darken=function(t){t===void 0&&(t=10);var a=this.toHsl();return a.l-=t/100,a.l=te(a.l),new e(a)},e.prototype.tint=function(t){return t===void 0&&(t=10),this.mix("white",t)},e.prototype.shade=function(t){return t===void 0&&(t=10),this.mix("black",t)},e.prototype.desaturate=function(t){t===void 0&&(t=10);var a=this.toHsl();return a.s-=t/100,a.s=te(a.s),new e(a)},e.prototype.saturate=function(t){t===void 0&&(t=10);var a=this.toHsl();return a.s+=t/100,a.s=te(a.s),new e(a)},e.prototype.greyscale=function(){return this.desaturate(100)},e.prototype.spin=function(t){var a=this.toHsl(),r=(a.h+t)%360;return a.h=r<0?360+r:r,new e(a)},e.prototype.mix=function(t,a){a===void 0&&(a=50);var r=this.toRgb(),o=new e(t).toRgb(),i=a/100,l={r:(o.r-r.r)*i+r.r,g:(o.g-r.g)*i+r.g,b:(o.b-r.b)*i+r.b,a:(o.a-r.a)*i+r.a};return new e(l)},e.prototype.analogous=function(t,a){t===void 0&&(t=6),a===void 0&&(a=30);var r=this.toHsl(),o=360/a,i=[this];for(r.h=(r.h-(o*t>>1)+720)%360;--t;)r.h=(r.h+o)%360,i.push(new e(r));return i},e.prototype.complement=function(){var t=this.toHsl();return t.h=(t.h+180)%360,new e(t)},e.prototype.monochromatic=function(t){t===void 0&&(t=6);for(var a=this.toHsv(),r=a.h,o=a.s,i=a.v,l=[],s=1/t;t--;)l.push(new e({h:r,s:o,v:i})),i=(i+s)%1;return l},e.prototype.splitcomplement=function(){var t=this.toHsl(),a=t.h;return[this,new e({h:(a+72)%360,s:t.s,l:t.l}),new e({h:(a+216)%360,s:t.s,l:t.l})]},e.prototype.onBackground=function(t){var a=this.toRgb(),r=new e(t).toRgb(),o=a.a+r.a*(1-a.a);return new e({r:(a.r*a.a+r.r*r.a*(1-a.a))/o,g:(a.g*a.a+r.g*r.a*(1-a.a))/o,b:(a.b*a.a+r.b*r.a*(1-a.a))/o,a:o})},e.prototype.triad=function(){return this.polyad(3)},e.prototype.tetrad=function(){return this.polyad(4)},e.prototype.polyad=function(t){for(var a=this.toHsl(),r=a.h,o=[this],i=360/t,l=1;l<t;l++)o.push(new e({h:(r+l*i)%360,s:a.s,l:a.l}));return o},e.prototype.equals=function(t){return this.toRgbString()===new e(t).toRgbString()},e})();const Le=new p.Keyframe("toConic",{"0%":{backgroundPosition:"0 0"},"100%":{backgroundPosition:"100% 50%"}}),pn=new p.Keyframe("dockIconText",{"0%":{display:"none",opacity:0},"80%":{overflow:"hidden"},"100%":{display:"unset",opacity:1}}),bn=new p.Keyframe("dockZoomIn",{"0%":{transform:"translateX(-50%) scale(0)",opacity:0},"100%":{transform:"translateX(-50%) scale(1)",opacity:1}}),yn=new p.Keyframe("dockZoomOut",{"0%":{transform:"translateX(-50%) scale(1)"},"100%":{transform:"translateX(-50%) scale(0)",opacity:0}}),Pe=e=>e===0?0:e-Math.sqrt(e**2/2),xn=e=>({[e.componentCls]:{"&-button":{border:"none",position:"fixed",cursor:"pointer",zIndex:e.zIndexPopupBase,width:e.controlHeightLG,height:e.controlHeightLG,insetInlineEnd:e.marginLG,bottom:e.marginXXL,boxShadow:e.boxShadowSecondary,borderRadius:"50%",display:"flex",alignItems:"center",justifyContent:"center",textAlign:"center",backgroundColor:e.colorPrimary,transition:`background-color ${e.motionDurationMid}`,"&:hover":{backgroundColor:e.colorPrimary},[`${e.componentCls}-dot`]:{position:"absolute",transform:"translate(50%, -50%)",transformOrigin:"100% 0%",zIndex:"auto",width:e.fontSizeSM/2,minWidth:e.fontSizeSM/2,height:e.fontSizeSM/2,background:e.colorError,borderRadius:"100%",boxShadow:`0 0 0 ${p.unit(e.lineWidth)} ${e.colorBorderBg}`,top:Pe(e.controlHeightLG/2),insetInlineEnd:Pe(e.controlHeightLG/2)},[`${e.componentCls}-icon`]:{margin:"auto",color:e.colorTextLightSolid,width:e.calc(e.fontSizeIcon).mul(1.5).equal(),fontSize:e.calc(e.fontSizeIcon).mul(1.5).equal(),lineHeight:1}}}}),Cn=e=>{const t=new K(new K("rgb(0, 0, 0)").setAlpha(.06).toRgbString());return{[e.componentCls]:{"&-dock":{position:"fixed",bottom:e.marginXL,left:"50%",zIndex:e.zIndexPopupBase+80,color:e.colorWhite,transform:"translateX(-50%)",display:"flex",alignItems:"center",gap:e.sizeXS,padding:e.paddingXS,borderRadius:e.controlHeight,background:e.colorBgLayout,backdropFilter:"blur(10px)","&-zoom-appear, &-zoom-enter":{animationName:bn,opacity:0,animationTimingFunction:e.motionEaseOutCirc,animationFillMode:"both",transform:"none",animationDuration:e.motionDurationMid,userSelect:"none"},"&-zoom-enter-active":{animationPlayState:"running"},"&-zoom-leave":{animationName:yn,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseInOutCirc,animationFillMode:"both"},"&-btn":{height:e.controlHeightLG,color:e.colorText,borderRadius:e.controlHeight,padding:1,background:`linear-gradient(135deg,${t},${t},${t},#006cfc,#05c4f4,#7ee94c)`,backgroundSize:"400%","&:hover":{animationTimingFunction:"cubic-bezier(.38,0,.24,1)",animationDuration:"0.5s",animationFillMode:"forwards",animationName:Le},"&-active":{animationTimingFunction:"cubic-bezier(.38,0,.24,1)",animationDuration:"0.5s",animationFillMode:"forwards",animationName:Le}},"&-icon":{display:"flex",alignItems:"center",justifyContent:"center",gap:e.size,width:"100%",borderRadius:e.controlHeight,height:e.controlHeightLG-2,backgroundColor:e.colorBgElevated,cursor:"pointer",color:e.colorTextSecondary,fontSize:e.fontSizeLG,"&-text":{animationName:pn,animationDuration:".4s",animationTimingFunction:"ease"}}}}}},Nn=e=>{const{theme:t}=z.getTokenLayoutTheme(e);return{[e.componentCls]:{"&-body-title":{margin:0,marginBlockEnd:e.marginSM,fontSize:"14px",lineHeight:"22px",fontWeight:800,color:e.colorText},"&-block-checkbox":{display:"flex",minHeight:42,gap:e.marginSM,"& &-item":{position:"relative",width:"44px",height:"36px",overflow:"hidden",borderRadius:"4px",boxShadow:`
|
|
13
13
|
0 6px 16px 0 rgba(0, 0, 0, 0.08),
|
|
14
14
|
0 3px 6px -4px rgba(0, 0, 0, 0.12),
|
|
15
15
|
0 9px 28px 8px rgba(0, 0, 0, 0.05)
|
|
16
|
-
`,cursor:"pointer",fontSize:56,lineHeight:"56px","&::before":{position:"absolute",insetBlockStart:0,insetInlineStart:0,width:"33%",height:"100%",content:"''"},"&::after":{position:"absolute",insetBlockStart:0,insetInlineStart:0,width:"100%",height:"25%",content:"''"},"&-dark":{backgroundColor:"rgba(0, 21, 41, 0.85)","&::before":{backgroundColor:"rgba(0, 0, 0, 0.65)"},"&::after":{backgroundColor:"rgba(0, 0, 0, 0.85)"}},"&-light":{backgroundColor:"#f7f8fa","&::before":{backgroundColor:"#fff"},"&::after":{backgroundColor:"#fff"}},"&-realDark":{backgroundColor:"rgba(0, 21, 41, 0.85)","&::before":{backgroundColor:"rgba(0, 0, 0, 0.65)"},"&::after":{backgroundColor:"rgba(0, 0, 0, 0.85)"}},"&-dark,&-side":{backgroundColor:e.colorBgElevated,"&::before":{zIndex:"1",backgroundColor:"#001529"},"&::after":{backgroundColor:e.colorBgContainer}},"&-wide":{backgroundColor:e.colorBgElevated,"&::before":{backgroundColor:t==="dark"?"#001529":e.colorBgLayout,left:"10%",width:"20%",height:"calc(100% - 38%)",top:"38%"},"&::after":{backgroundColor:t==="dark"?e.colorBgContainer:"#001529"},"&-content":{position:"absolute",height:"calc(100% - 38%)",top:"38%",right:"10%",width:"calc(100% - 10% - 20% - 10% - 10%)",backgroundColor:t==="dark"?"#001529":e.colorBgLayout}},"&-simple":{backgroundColor:e.colorBgElevated,"&::before":{zIndex:"1",backgroundColor:"#001529"},"&::after":{backgroundColor:t==="dark"?e.colorBgContainer:e.colorBgLayout}},"&-mix":{backgroundColor:e.colorBgElevated,"&::before":{backgroundColor:t==="dark"?e.colorBgContainer:e.colorBgLayout},"&::after":{backgroundColor:"#001529"}},"&-top":{backgroundColor:e.colorBgElevated,"&::before":{backgroundColor:"transparent"},"&::after":{backgroundColor:"#001529"}}},"& &-selectIcon":{position:"absolute",insetInlineEnd:"6px",bottom:"4px",color:e.colorPrimary,fontWeight:"bold",fontSize:"14px",pointerEvents:"none",".action":{color:e.colorPrimary}},"& &-icon":{fontSize:56,lineHeight:"56px"}},"&-list":{[`&${e.antCls}-list-sm ${e.antCls}-list-item`]:{paddingInline:0}}}}},
|
|
16
|
+
`,cursor:"pointer",fontSize:56,lineHeight:"56px","&::before":{position:"absolute",insetBlockStart:0,insetInlineStart:0,width:"33%",height:"100%",content:"''"},"&::after":{position:"absolute",insetBlockStart:0,insetInlineStart:0,width:"100%",height:"25%",content:"''"},"&-dark":{backgroundColor:"rgba(0, 21, 41, 0.85)","&::before":{backgroundColor:"rgba(0, 0, 0, 0.65)"},"&::after":{backgroundColor:"rgba(0, 0, 0, 0.85)"}},"&-light":{backgroundColor:"#f7f8fa","&::before":{backgroundColor:"#fff"},"&::after":{backgroundColor:"#fff"}},"&-realDark":{backgroundColor:"rgba(0, 21, 41, 0.85)","&::before":{backgroundColor:"rgba(0, 0, 0, 0.65)"},"&::after":{backgroundColor:"rgba(0, 0, 0, 0.85)"}},"&-dark,&-side":{backgroundColor:e.colorBgElevated,"&::before":{zIndex:"1",backgroundColor:"#001529"},"&::after":{backgroundColor:e.colorBgContainer}},"&-wide":{backgroundColor:e.colorBgElevated,"&::before":{backgroundColor:t==="dark"?"#001529":e.colorBgLayout,left:"10%",width:"20%",height:"calc(100% - 38%)",top:"38%"},"&::after":{backgroundColor:t==="dark"?e.colorBgContainer:"#001529"},"&-content":{position:"absolute",height:"calc(100% - 38%)",top:"38%",right:"10%",width:"calc(100% - 10% - 20% - 10% - 10%)",backgroundColor:t==="dark"?"#001529":e.colorBgLayout}},"&-simple":{backgroundColor:e.colorBgElevated,"&::before":{zIndex:"1",backgroundColor:"#001529"},"&::after":{backgroundColor:t==="dark"?e.colorBgContainer:e.colorBgLayout}},"&-mix":{backgroundColor:e.colorBgElevated,"&::before":{backgroundColor:t==="dark"?e.colorBgContainer:e.colorBgLayout},"&::after":{backgroundColor:"#001529"}},"&-top":{backgroundColor:e.colorBgElevated,"&::before":{backgroundColor:"transparent"},"&::after":{backgroundColor:"#001529"}}},"& &-selectIcon":{position:"absolute",insetInlineEnd:"6px",bottom:"4px",color:e.colorPrimary,fontWeight:"bold",fontSize:"14px",pointerEvents:"none",".action":{color:e.colorPrimary}},"& &-icon":{fontSize:56,lineHeight:"56px"}},"&-list":{[`&${e.antCls}-list-sm ${e.antCls}-list-item`]:{paddingInline:0}}}}},vn=e=>{const{theme:t}=z.getTokenLayoutTheme(e);return{[`${e.componentCls}-drawer`]:{"&-wrapper":{display:"flex",flexDirection:"column",position:"relative",height:"100%",overflow:"hidden",backgroundColor:e.colorBgLayout,"*":{boxSizing:"border-box"}},"&-content":{position:"relative",height:"100%",padding:e.paddingXS,[`${e.antCls}-segmented-item`]:{flex:1},[`${e.antCls}-segmented`]:{backgroundColor:t==="dark"?e.colorBgBase:void 0,[`${e.antCls}-segmented-item-selected`]:{backgroundColor:t==="dark"?"#1f1f1f":void 0}}}}}},Sn=e=>{const t=`${e.componentCls}`,a=new K(new K(e.colorWhite).setAlpha(.8).toRgbString());return{[t]:{"&-card":{display:"flex",flexDirection:"column",borderRadius:e.borderRadiusLG,minHeight:`calc(100vh - ${e.padding}px)`,[`${t}-card-content`]:{flex:1,borderRadius:e.borderRadiusLG,backgroundColor:e.colorBgElevated,padding:e.padding}},"&-card-header":{borderRadius:e.borderRadiusLG,backgroundColor:e.colorPrimary,paddingBlock:e.paddingXS,paddingInline:e.padding-4,marginBlockEnd:e.marginXS,"&-title":{display:"flex",alignItems:"center",justifyContent:"space-between",color:e.colorWhite,fontSize:e.fontSizeXL,lineHeight:e.lineHeight,marginBlockEnd:e.marginXS,fontWeight:e.fontWeightStrong},"&-action":{display:"inline-flex",alignItems:"center",justifyContent:"center",paddingBlock:0,paddingInline:2,color:e.colorWhite,fontSize:e.fontSizeXL,cursor:"pointer",borderRadius:e.borderRadius},"&-subtitle":{color:a.toString()}}}}},wn=e=>{const t=`${e.componentCls}`,a=new K(new K(e.colorWhite).setAlpha(.55).toRgbString());return{[t]:{"&-color-list":{display:"flex",gap:8,marginBlockEnd:e.margin},"&-color-item":{width:20,height:20,display:"flex",alignItems:"center",justifyContent:"center",borderRadius:2,cursor:"pointer",color:e.colorWhite,fontWeight:"bold"},"&-color-picker":{marginBlock:e.marginXS,padding:2,height:106,background:`conic-gradient(from 180deg at 50% 50%,#00c3ff 0,${e.colorPrimary} 120deg,${e.colorPrimary} 180deg,#4ceb1b 290.62deg,#00c3ff 1turn)`,borderRadius:9,cursor:"pointer",transition:`padding ${e.motionDurationMid}`,"&:hover":{padding:4},"&-inner":{backgroundColor:e.colorBgElevated,padding:"2px 2px 4px 2px",borderRadius:7,maxHeight:"100%"},"&-top":{width:"100%",borderRadius:6,padding:"4px 8px",p:{color:a.toString(),lineHeight:"20px",fontSize:e.fontSizeSM,margin:0}},"&-bottom":{display:"flex",alignItems:"center",justifyContent:"space-between",padding:"4px 8px",p:{margin:0,fontSize:e.fontSize,lineHeight:"22px","&:first-child":{color:e.colorText,fontWeight:600},"&:last-child":{color:e.colorTextDescription}}}}}}},He="updatable",Z=(e,{slots:t})=>n.createVNode("div",{style:{marginBottom:"24px"}},[n.createVNode("h3",{class:`${e.prefixCls}-body-title ${e.hashId}`.trim()},[e.title]),t.default?.()]),Vn=n.defineComponent({name:"ThemeEditor",inheritAttrs:!1,props:Ae,emits:["update:open","change","changeSettingState","changeTokensState"],setup(e,{emit:t}){const r=c.getPrefixCls({suffixCls:"settings",isPor:!0}),o=c.getPrefixCls({suffixCls:"tokens",isPor:!0}),i=c.getPrefixCls({suffixCls:"theme-editor",isPor:!0}),{settings:l}=z.useProLayoutContext(),{wrapSSR:s,hashId:u}=p.useProStyle("ProThemeEditor",[Nn,vn,xn,Cn,wn,Sn],i),g=n.ref(R.cloneDeep(e.defaultTokens)),d=n.ref(R.cloneDeep(e.defaultValue||l.value)),f=I.useLocalStorage(r,R.cloneDeep(d.value)),x=I.useLocalStorage(o,R.cloneDeep(g.value)),{theme:T,setTheme:F}=ae.useThemeContext(),[w,S]=A.useState(!1),[h,b]=A.useState(!1),[v,k]=A.useState("setting");Object.keys(f.value).length&&e.onChangeSettingState?.(Ee({...n.toRaw(f.value)})),Object.keys(x.value).length&&e.onChangeTokensState?.({...n.toRaw(x.value)});const Y=n.computed(()=>R.isEqual(R.cloneDeep(d.value),R.cloneDeep(f.value))),B=n.computed(()=>R.isEqual(R.cloneDeep(g.value),R.cloneDeep(x.value)));n.watch(()=>e.open,C=>{C&&(v.value==="theme"?b(C):S(C))}),n.watch([()=>w.value,()=>h.value],()=>{e.onChange&&e.onChange(w.value||h.value),t("update:open",w.value||h.value)});function P(C){v.value==="theme"?(b(C),S(!C)):(b(!C),S(C))}function M(C){const de=Ee(c.deepMerge(n.unref(f.value),C));e.onChangeSettingState?.(de),f.value=de,n.nextTick(()=>{d.value=de})}function q(C){e.onChangeTokensState?.(C),x.value=C,n.nextTick(()=>{g.value=C})}return zt({hashId:u,config:f,tokens:x,prefixCls:i,drawerClass:`${i}-drawer`}),()=>s(n.createVNode("div",{class:c.classNames(u.value,i)},[n.createVNode(nn,{type:v.value,open:w.value||h.value,onTypeChange:C=>{k(C),P(!0)},onOpenChange:C=>{P(C)},onClose:()=>{S(!1),b(!1)}},null),n.createVNode(Wt,{width:348,theme:T.value,open:w.value,isEqual:Y.value,onSync:()=>{m.message.loading({content:"正在同步中...",key:He}),M({...n.unref(d.value)}),n.nextTick(()=>{setTimeout(()=>{m.message.success({content:"同步成功",key:He})},520)})},onChange:M,onChangeColorScheme:C=>F(C),onOpenChange:C=>S(!!C)},null),n.createVNode(tn,{width:348,open:h.value,isEqual:B.value,onChange:C=>q(C),onOpenChange:C=>b(!!C)},null)]))}}),In=Object.freeze(Object.defineProperty({__proto__:null,default:(e={})=>n.createVNode("svg",n.mergeProps({xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24"},e),[n.createVNode("g",{fill:"none","fill-rule":"evenodd"},[n.createVNode("path",{d:"m12.594 23.258l-.012.002l-.071.035l-.02.004l-.014-.004l-.071-.036q-.016-.004-.024.006l-.004.01l-.017.428l.005.02l.01.013l.104.074l.015.004l.012-.004l.104-.074l.012-.016l.004-.017l-.017-.427q-.004-.016-.016-.018m.264-.113l-.014.002l-.184.093l-.01.01l-.003.011l.018.43l.005.012l.008.008l.201.092q.019.005.029-.008l.004-.014l-.034-.614q-.005-.019-.02-.022m-.715.002a.02.02 0 0 0-.027.006l-.006.014l-.034.614q.001.018.017.024l.015-.002l.201-.093l.01-.008l.003-.011l.018-.43l-.003-.012l-.01-.01z"},null),n.createVNode("path",{fill:"currentColor",d:"m8.464 4.222l12.021 12.02a1.01 1.01 0 0 1 0 1.415l-2.828 2.828a1 1 0 0 1-1.414 0L4.222 8.465a2 2 0 0 1 0-2.829l1.414-1.414a2 2 0 0 1 2.828 0M5 11.5c.444 0 .758.269.95.632l.053.112a3.87 3.87 0 0 0 1.385 1.672l.21.128c.358.202.62.525.62.955c0 .38-.203.68-.5.882l-.115.072a3.8 3.8 0 0 0-1.49 1.573l-.105.22c-.187.422-.512.754-1.008.754c-.452 0-.761-.274-.954-.641l-.054-.113a3.83 3.83 0 0 0-1.384-1.664l-.206-.126c-.359-.202-.621-.526-.621-.957c0-.383.208-.68.505-.883l.116-.072a3.76 3.76 0 0 0 1.482-1.565l.113-.236C4.18 11.826 4.51 11.5 5 11.5m5.586-2.328l-1.414 1.414l7.778 7.778l1.414-1.414zm6.845-1.77c.238-.481.8-.513 1.082-.097l.056.096c.216.435.574.804 1.043 1.04c.494.246.501.87.004 1.116a2.35 2.35 0 0 0-.954.872l-.09.164c-.24.486-.804.518-1.085.102l-.056-.096a2.3 2.3 0 0 0-.872-.945l-.17-.094c-.466-.232-.497-.79-.097-1.063l.092-.054a2.33 2.33 0 0 0 .957-.878l.09-.164ZM7.051 5.635L5.635 7.05l2.121 2.122l1.415-1.415L7.05 5.636ZM13.5 2c.294 0 .51.167.654.399l.06.11c.238.477.618.894 1.11 1.187l.196.107c.275.137.48.373.48.697c0 .283-.157.5-.38.64l-.105.06c-.52.26-.932.654-1.205 1.115l-.1.183c-.14.284-.374.502-.71.502c-.294 0-.51-.167-.654-.399l-.06-.11a2.9 2.9 0 0 0-1.11-1.187l-.196-.107c-.275-.137-.48-.374-.48-.698c0-.282.157-.499.38-.64l.105-.058c.52-.262.932-.654 1.205-1.116l.1-.183c.14-.284.374-.502.71-.502"},null)])])},Symbol.toStringTag,{value:"Module"})),Tn=Object.freeze(Object.defineProperty({__proto__:null,default:(e={})=>n.createVNode("svg",n.mergeProps({xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 16 16"},e),[n.createVNode("path",{fill:"currentColor","fill-rule":"evenodd",d:"m14.489 8.388l-.001.006a.1.1 0 0 1-.027.028a.43.43 0 0 1-.264.082h-3.186c-3.118 0-4.68 3.77-2.476 5.974a6.5 6.5 0 1 1 5.953-6.09Zm-.292 1.616c.913 0 1.736-.618 1.79-1.529a8 8 0 1 0-7.032 7.468c1.243-.147 1.527-1.639.641-2.525c-1.26-1.26-.367-3.414 1.415-3.414zM10 5a1 1 0 1 1-2 0a1 1 0 0 1 2 0M6 7a1 1 0 1 0 0-2a1 1 0 0 0 0 2m0 2a1 1 0 1 1-2 0a1 1 0 0 1 2 0","clip-rule":"evenodd"},null)])},Symbol.toStringTag,{value:"Module"}));y.DefaultRenderLogo=ye,y.GAppsLogoComponents=Ze,y.GProThemeEditor=Vn,y.GRightContent=Ot,Object.defineProperty(y,Symbol.toStringTag,{value:"Module"})}));
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gx-design-vue/pro-layout-components",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.1.0-beta.
|
|
4
|
+
"version": "0.1.0-beta.23",
|
|
5
5
|
"description": "Gx Design Pro Layout Components",
|
|
6
6
|
"exports": {
|
|
7
7
|
".": {
|
|
@@ -28,17 +28,18 @@
|
|
|
28
28
|
"peerDependencies": {
|
|
29
29
|
"vue": ">=3.0.0",
|
|
30
30
|
"ant-design-vue": "^4.1.6",
|
|
31
|
-
"@gx-design-vue/pro-layout": "^0.1.0-beta.
|
|
31
|
+
"@gx-design-vue/pro-layout": "^0.1.0-beta.171"
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
34
|
"@gx-design-vue/icon": "^0.0.1",
|
|
35
|
+
"@gx-design-vue/context": "^0.0.3",
|
|
35
36
|
"@gx-design-vue/color-picker": "^0.2.0-beta.38",
|
|
36
37
|
"@gx-design-vue/pro-hooks": "^0.2.0-beta.55",
|
|
37
38
|
"@gx-design-vue/pro-modal": "^0.2.0-beta.37",
|
|
38
39
|
"@gx-design-vue/pro-provider": "^0.1.0-beta.130",
|
|
39
40
|
"@gx-design-vue/pro-utils": "^0.2.0-beta.80",
|
|
40
41
|
"@gx-design-vue/scrollbar": "^0.2.0-beta.21",
|
|
41
|
-
"@vueuse/core": "^
|
|
42
|
+
"@vueuse/core": "^14.0.0",
|
|
42
43
|
"dayjs": "^1.11.0",
|
|
43
44
|
"lodash-es": "^4.17.21"
|
|
44
45
|
},
|