@gx-design-vue/pro-layout-components 0.1.0-beta.0 → 0.1.0-beta.2
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.
|
@@ -9,7 +9,7 @@ import { UserOutlined as q, LockOutlined as V } from "@ant-design/icons-vue";
|
|
|
9
9
|
import { Avatar as X, Form as S, Input as J, Button as k } from "ant-design-vue";
|
|
10
10
|
import f from "dayjs";
|
|
11
11
|
import "dayjs/locale/zh-cn";
|
|
12
|
-
import { g as Q } from "./index-
|
|
12
|
+
import { g as Q } from "./index-DFpeKk29.js";
|
|
13
13
|
f.locale("zh-cn");
|
|
14
14
|
function Z() {
|
|
15
15
|
const e = F({
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { defineComponent as w, reactive as dt, getCurrentInstance as ht, onMounted as Pe, onUpdated as ft, onUnmounted as gt, watch as j, createVNode as i, mergeProps as N, ref as G, Fragment as D, createTextVNode as m, nextTick as ne, computed as $, defineAsyncComponent as pt, unref as vt, Transition as mt, withDirectives as bt, vShow as yt, toRaw as z } from "vue";
|
|
2
2
|
import Q, { MenuOutlined as xt, ArrowRightOutlined as Ct, CloseOutlined as St, SearchOutlined as Se, EnterOutlined as wt, ArrowUpOutlined as we, CompressOutlined as Mt, ExpandOutlined as Tt, SettingOutlined as We, LockOutlined as kt, LogoutOutlined as It, UserOutlined as At, AppstoreOutlined as Rt, DesktopOutlined as Bt, CheckOutlined as je, CopyOutlined as Et, ClearOutlined as Ot, EditOutlined as $t } from "@ant-design/icons-vue";
|
|
3
3
|
import { useState as H, useMediaQuery as zt } from "@gx-design-vue/pro-hooks";
|
|
4
|
-
import { darkThemeProps as Ft, LazyIcon as Lt,
|
|
5
|
-
import { useStyle as Ke, mergeToken as qe, unit as X, setAlpha as Ht, useProConfigContext as Ue, resetComponent as _t, useProStyle as oe, getTransitionProps as Nt, Keyframe as le } from "@gx-design-vue/pro-provider";
|
|
4
|
+
import { darkThemeProps as Ft, LazyIcon as Lt, useProLayoutContext as ae, getTokenLayoutTheme as be, checkMenuDark as Dt, useDarkTheme as Ge, hasDarkValue as Me, toggleLayoutTheme as Xe } from "@gx-design-vue/pro-layout";
|
|
5
|
+
import { useStyle as Ke, mergeToken as qe, unit as X, getProSolidColor as J, setAlpha as Ht, useProConfigContext as Ue, resetComponent as _t, useProStyle as oe, getTransitionProps as Nt, Keyframe as le } from "@gx-design-vue/pro-provider";
|
|
6
6
|
import { getPrefixCls as _, merge as Pt, classNames as d, isWindowsOs as Wt, getLevelData as jt, isBoolean as Ve, getSlotsProps as Gt, getSlot as Xt, isFunction as Kt, isUrl as qt, deepMerge as Te } from "@gx-design-vue/pro-utils";
|
|
7
7
|
import { useLocalStorage as Ze, useThrottleFn as Ut, onKeyStroke as ue, useMagicKeys as Vt, whenever as ke, useFullscreen as Zt, useDebounceFn as Qt, useClipboard as Jt } from "@vueuse/core";
|
|
8
8
|
import { Empty as Ie, Input as Yt, Dropdown as en, Menu as Ae, MenuItem as Re, Avatar as tn, Popover as nn, Tooltip as ye, List as Be, Switch as rn, message as an, Drawer as Qe, Segmented as on, Divider as ce, Button as Ee } from "ant-design-vue";
|
|
@@ -1256,7 +1256,7 @@ const Ki = /* @__PURE__ */ w({
|
|
|
1256
1256
|
slots: t,
|
|
1257
1257
|
props: e,
|
|
1258
1258
|
key: "actionsRender"
|
|
1259
|
-
}), E = n.value ? Mt : Tt, f = v.value.lock ? pt(() => import("./index-
|
|
1259
|
+
}), E = n.value ? Mt : Tt, f = v.value.lock ? pt(() => import("./index-BE3WbI0h.js")) : i("div", null, null);
|
|
1260
1260
|
return u(i("div", {
|
|
1261
1261
|
class: `${s}-right-content ${c.value}`.trim(),
|
|
1262
1262
|
style: {
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Gx Design Pro
|
|
3
|
-
* Version: 0.0.
|
|
3
|
+
* Version: 0.1.0-beta.1
|
|
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-08-
|
|
8
|
+
* Date Created: 2025-08-20
|
|
9
9
|
* Homepage:
|
|
10
10
|
* Contact: gx12358@gmail.com
|
|
11
11
|
*/
|
|
12
|
-
import { A as e, T as s, G as n } from "./index-
|
|
12
|
+
import { A as e, T as s, G as n } from "./index-DFpeKk29.js";
|
|
13
13
|
export {
|
|
14
14
|
e as GAppsLogoComponents,
|
|
15
15
|
s as GProThemeEditor,
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Gx Design Pro
|
|
3
|
-
* Version: 0.0.
|
|
3
|
+
* Version: 0.1.0-beta.1
|
|
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-08-
|
|
8
|
+
* Date Created: 2025-08-20
|
|
9
9
|
* Homepage:
|
|
10
10
|
* Contact: gx12358@gmail.com
|
|
11
11
|
*/
|
|
12
|
-
(function(N,t){typeof exports=="object"&&typeof module<"u"?t(exports,require("vue"),require("@ant-design/icons-vue"),require("@gx-design-vue/pro-hooks"),require("@gx-design-vue/pro-layout"),require("@gx-design-vue/pro-provider"),require("@gx-design-vue/pro-utils"),require("@vueuse/core"),require("ant-design-vue"),require("@gx-design-vue/pro-modal"),require("vue-router"),require("ant-design-vue/es/theme/themes/dark/colorAlgorithm"),require("lodash-es"),require("@gx-design-vue/scrollbar"),require("@gx-design-vue/color-picker"),require("dayjs"),require("dayjs/locale/zh-cn")):typeof define=="function"&&define.amd?define(["exports","vue","@ant-design/icons-vue","@gx-design-vue/pro-hooks","@gx-design-vue/pro-layout","@gx-design-vue/pro-provider","@gx-design-vue/pro-utils","@vueuse/core","ant-design-vue","@gx-design-vue/pro-modal","vue-router","ant-design-vue/es/theme/themes/dark/colorAlgorithm","lodash-es","@gx-design-vue/scrollbar","@gx-design-vue/color-picker","dayjs","dayjs/locale/zh-cn"],t):(N=typeof globalThis<"u"?globalThis:N||self,t(N.proLayoutComponents={},N.vue,N.Icon,N.proHooks,N.proLayout,N.proProvider,N.proUtils,N.core,N.antDesignVue,N.proModal,N.vueRouter,N.colorAlgorithm,N.lodashEs,N.scrollbar,N.colorPicker,N.dayjs))})(this,(function(N,t,b,I,S,x,d,k,m,ce,ze,te,L,de,ue,D){"use strict";function q(){return q=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var a=arguments[n];for(var r in a)({}).hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e},q.apply(null,arguments)}var he=(function(){if(typeof Map<"u")return Map;function e(n,a){var r=-1;return n.some(function(i,l){return i[0]===a?(r=l,!0):!1}),r}return(function(){function n(){this.__entries__=[]}return Object.defineProperty(n.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),n.prototype.get=function(a){var r=e(this.__entries__,a),i=this.__entries__[r];return i&&i[1]},n.prototype.set=function(a,r){var i=e(this.__entries__,a);~i?this.__entries__[i][1]=r:this.__entries__.push([a,r])},n.prototype.delete=function(a){var r=this.__entries__,i=e(r,a);~i&&r.splice(i,1)},n.prototype.has=function(a){return!!~e(this.__entries__,a)},n.prototype.clear=function(){this.__entries__.splice(0)},n.prototype.forEach=function(a,r){r===void 0&&(r=null);for(var i=0,l=this.__entries__;i<l.length;i++){var o=l[i];a.call(r,o[1],o[0])}},n})()})(),ne=typeof window<"u"&&typeof document<"u"&&window.document===document,Z=(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")()})(),Ee=(function(){return typeof requestAnimationFrame=="function"?requestAnimationFrame.bind(Z):function(e){return setTimeout(function(){return e(Date.now())},1e3/60)}})(),Le=2;function Pe(e,n){var a=!1,r=!1,i=0;function l(){a&&(a=!1,e()),r&&s()}function o(){Ee(l)}function s(){var c=Date.now();if(a){if(c-i<Le)return;r=!0}else a=!0,r=!1,setTimeout(o,n);i=c}return s}var He=20,De=["top","right","bottom","left","width","height","size","weight"],_e=typeof MutationObserver<"u",je=(function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=Pe(this.refresh.bind(this),He)}return e.prototype.addObserver=function(n){~this.observers_.indexOf(n)||this.observers_.push(n),this.connected_||this.connect_()},e.prototype.removeObserver=function(n){var a=this.observers_,r=a.indexOf(n);~r&&a.splice(r,1),!a.length&&this.connected_&&this.disconnect_()},e.prototype.refresh=function(){var n=this.updateObservers_();n&&this.refresh()},e.prototype.updateObservers_=function(){var n=this.observers_.filter(function(a){return a.gatherActive(),a.hasActive()});return n.forEach(function(a){return a.broadcastActive()}),n.length>0},e.prototype.connect_=function(){!ne||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),_e?(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(){!ne||!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(n){var a=n.propertyName,r=a===void 0?"":a,i=De.some(function(l){return!!~r.indexOf(l)});i&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e})(),fe=(function(e,n){for(var a=0,r=Object.keys(n);a<r.length;a++){var i=r[a];Object.defineProperty(e,i,{value:n[i],enumerable:!1,writable:!1,configurable:!0})}return e}),W=(function(e){var n=e&&e.ownerDocument&&e.ownerDocument.defaultView;return n||Z}),ge=Q(0,0,0,0);function Y(e){return parseFloat(e)||0}function me(e){for(var n=[],a=1;a<arguments.length;a++)n[a-1]=arguments[a];return n.reduce(function(r,i){var l=e["border-"+i+"-width"];return r+Y(l)},0)}function We(e){for(var n=["top","right","bottom","left"],a={},r=0,i=n;r<i.length;r++){var l=i[r],o=e["padding-"+l];a[l]=Y(o)}return a}function Ge(e){var n=e.getBBox();return Q(0,0,n.width,n.height)}function qe(e){var n=e.clientWidth,a=e.clientHeight;if(!n&&!a)return ge;var r=W(e).getComputedStyle(e),i=We(r),l=i.left+i.right,o=i.top+i.bottom,s=Y(r.width),c=Y(r.height);if(r.boxSizing==="border-box"&&(Math.round(s+l)!==n&&(s-=me(r,"left","right")+l),Math.round(c+o)!==a&&(c-=me(r,"top","bottom")+o)),!Ke(e)){var u=Math.round(s+l)-n,f=Math.round(c+o)-a;Math.abs(u)!==1&&(s-=u),Math.abs(f)!==1&&(c-=f)}return Q(i.left,i.top,s,c)}var Xe=(function(){return typeof SVGGraphicsElement<"u"?function(e){return e instanceof W(e).SVGGraphicsElement}:function(e){return e instanceof W(e).SVGElement&&typeof e.getBBox=="function"}})();function Ke(e){return e===W(e).document.documentElement}function Ze(e){return ne?Xe(e)?Ge(e):qe(e):ge}function Ye(e){var n=e.x,a=e.y,r=e.width,i=e.height,l=typeof DOMRectReadOnly<"u"?DOMRectReadOnly:Object,o=Object.create(l.prototype);return fe(o,{x:n,y:a,width:r,height:i,top:a,right:n+r,bottom:i+a,left:n}),o}function Q(e,n,a,r){return{x:e,y:n,width:a,height:r}}var Qe=(function(){function e(n){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=Q(0,0,0,0),this.target=n}return e.prototype.isActive=function(){var n=Ze(this.target);return this.contentRect_=n,n.width!==this.broadcastWidth||n.height!==this.broadcastHeight},e.prototype.broadcastRect=function(){var n=this.contentRect_;return this.broadcastWidth=n.width,this.broadcastHeight=n.height,n},e})(),Je=(function(){function e(n,a){var r=Ye(a);fe(this,{target:n,contentRect:r})}return e})(),Ue=(function(){function e(n,a,r){if(this.activeObservations_=[],this.observations_=new he,typeof n!="function")throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=n,this.controller_=a,this.callbackCtx_=r}return e.prototype.observe=function(n){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(n instanceof W(n).Element))throw new TypeError('parameter 1 is not of type "Element".');var a=this.observations_;a.has(n)||(a.set(n,new Qe(n)),this.controller_.addObserver(this),this.controller_.refresh())}},e.prototype.unobserve=function(n){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(n instanceof W(n).Element))throw new TypeError('parameter 1 is not of type "Element".');var a=this.observations_;a.has(n)&&(a.delete(n),a.size||this.controller_.removeObserver(this))}},e.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},e.prototype.gatherActive=function(){var n=this;this.clearActive(),this.observations_.forEach(function(a){a.isActive()&&n.activeObservations_.push(a)})},e.prototype.broadcastActive=function(){if(this.hasActive()){var n=this.callbackCtx_,a=this.activeObservations_.map(function(r){return new Je(r.target,r.broadcastRect())});this.callback_.call(n,a,n),this.clearActive()}},e.prototype.clearActive=function(){this.activeObservations_.splice(0)},e.prototype.hasActive=function(){return this.activeObservations_.length>0},e})(),pe=typeof WeakMap<"u"?new WeakMap:new he,be=(function(){function e(n){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=je.getInstance(),r=new Ue(n,a,this);pe.set(this,r)}return e})();["observe","unobserve","disconnect"].forEach(function(e){be.prototype[e]=function(){var n;return(n=pe.get(this))[e].apply(n,arguments)}});var et=(function(){return typeof Z.ResizeObserver<"u"?Z.ResizeObserver:be})();const tt=e=>{var n;let a=((n=e?.vnode)===null||n===void 0?void 0:n.el)||e&&(e.$el||e);for(;a&&!a.tagName;)a=a.nextSibling;return a},nt=t.defineComponent({compatConfig:{MODE:3},name:"ResizeObserver",props:{disabled:Boolean,onResize:Function},emits:["resize"],setup(e,n){let{slots:a}=n;const r=t.reactive({width:0,height:0,offsetHeight:0,offsetWidth:0});let i=null,l=null;const o=()=>{l&&(l.disconnect(),l=null)},s=f=>{const{onResize:p}=e,w=f[0].target,{width:O,height:B}=w.getBoundingClientRect(),{offsetWidth:A,offsetHeight:v}=w,h=Math.floor(O),g=Math.floor(B);if(r.width!==h||r.height!==g||r.offsetWidth!==A||r.offsetHeight!==v){const C={width:h,height:g,offsetWidth:A,offsetHeight:v};q(r,C),p&&Promise.resolve().then(()=>{p(q(q({},C),{offsetWidth:A,offsetHeight:v}),w)})}},c=t.getCurrentInstance(),u=()=>{const{disabled:f}=e;if(f){o();return}const p=tt(c);p!==i&&(o(),i=p),!l&&p&&(l=new et(s),l.observe(p))};return t.onMounted(()=>{u()}),t.onUpdated(()=>{u()}),t.onUnmounted(()=>{o()}),t.watch(()=>e.disabled,()=>{u()},{flush:"post"}),()=>{var f;return(f=a.default)===null||f===void 0?void 0:f.call(a)[0]}}});function at(e){return t.createVNode("svg",t.mergeProps({xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 16 16"},e),[t.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)])}function ye(e){return t.createVNode("svg",t.mergeProps({xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24"},e),[t.createVNode("g",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2"},[t.createVNode("path",{"stroke-dasharray":"2","stroke-dashoffset":"2",d:"M12 19v1M19 12h1M12 5v-1M5 12h-1"},[t.createVNode("animate",{fill:"freeze",attributeName:"d",begin:"0.6s",dur:"0.2s",values:"M12 19v1M19 12h1M12 5v-1M5 12h-1;M12 21v1M21 12h1M12 3v-1M3 12h-1"},null),t.createVNode("animate",{fill:"freeze",attributeName:"stroke-dashoffset",begin:"0.6s",dur:"0.2s",values:"2;0"},null)]),t.createVNode("path",{"stroke-dasharray":"2","stroke-dashoffset":"2",d:"M17 17l0.5 0.5M17 7l0.5 -0.5M7 7l-0.5 -0.5M7 17l-0.5 0.5"},[t.createVNode("animate",{fill:"freeze",attributeName:"d",begin:"0.8s",dur:"0.2s",values:"M17 17l0.5 0.5M17 7l0.5 -0.5M7 7l-0.5 -0.5M7 17l-0.5 0.5;M18.5 18.5l0.5 0.5M18.5 5.5l0.5 -0.5M5.5 5.5l-0.5 -0.5M5.5 18.5l-0.5 0.5"},null),t.createVNode("animate",{fill:"freeze",attributeName:"stroke-dashoffset",begin:"0.8s",dur:"0.2s",values:"2;0"},null)]),t.createVNode("animateTransform",{attributeName:"transform",dur:"30s",repeatCount:"indefinite",type:"rotate",values:"0 12 12;360 12 12"},null)]),t.createVNode("mask",{id:"lineMdMoonAltToSunnyOutlineLoopTransition0"},[t.createVNode("circle",{cx:"12",cy:"12",r:"12",fill:"#fff"},null),t.createVNode("circle",{cx:"12",cy:"12",r:"8"},[t.createVNode("animate",{fill:"freeze",attributeName:"r",dur:"0.4s",values:"8;4"},null)]),t.createVNode("circle",{cx:"18",cy:"6",r:"12",fill:"#fff"},[t.createVNode("animate",{fill:"freeze",attributeName:"cx",dur:"0.4s",values:"18;22"},null),t.createVNode("animate",{fill:"freeze",attributeName:"cy",dur:"0.4s",values:"6;2"},null),t.createVNode("animate",{fill:"freeze",attributeName:"r",dur:"0.4s",values:"12;3"},null)]),t.createVNode("circle",{cx:"18",cy:"6",r:"10"},[t.createVNode("animate",{fill:"freeze",attributeName:"cx",dur:"0.4s",values:"18;22"},null),t.createVNode("animate",{fill:"freeze",attributeName:"cy",dur:"0.4s",values:"6;2"},null),t.createVNode("animate",{fill:"freeze",attributeName:"r",dur:"0.4s",values:"10;1"},null)])]),t.createVNode("circle",{cx:"12",cy:"12",r:"10",mask:"url(#lineMdMoonAltToSunnyOutlineLoopTransition0)",fill:"currentColor"},[t.createVNode("animate",{fill:"freeze",attributeName:"r",dur:"0.4s",values:"10;6"},null)])])}function xe(e){return t.createVNode("svg",t.mergeProps({xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24"},e),[t.createVNode("g",{fill:"none",stroke:"currentColor","stroke-dasharray":"4","stroke-dashoffset":"4","stroke-linecap":"round","stroke-linejoin":"round"},[t.createVNode("path",{d:"M13 4h1.5M13 4h-1.5M13 4v1.5M13 4v-1.5"},[t.createVNode("animate",{id:"lineMdSunnyOutlineToMoonAltLoopTransition0",fill:"freeze",attributeName:"stroke-dashoffset",begin:"0.6s;lineMdSunnyOutlineToMoonAltLoopTransition0.begin+6s",dur:"0.4s",values:"4;0"},null),t.createVNode("animate",{fill:"freeze",attributeName:"stroke-dashoffset",begin:"lineMdSunnyOutlineToMoonAltLoopTransition0.begin+2s;lineMdSunnyOutlineToMoonAltLoopTransition0.begin+4s",dur:"0.4s",values:"4;0"},null),t.createVNode("animate",{fill:"freeze",attributeName:"stroke-dashoffset",begin:"lineMdSunnyOutlineToMoonAltLoopTransition0.begin+1.2s;lineMdSunnyOutlineToMoonAltLoopTransition0.begin+3.2s;lineMdSunnyOutlineToMoonAltLoopTransition0.begin+5.2s",dur:"0.4s",values:"0;4"},null),t.createVNode("set",{fill:"freeze",attributeName:"d",begin:"lineMdSunnyOutlineToMoonAltLoopTransition0.begin+1.8s",to:"M12 5h1.5M12 5h-1.5M12 5v1.5M12 5v-1.5"},null),t.createVNode("set",{fill:"freeze",attributeName:"d",begin:"lineMdSunnyOutlineToMoonAltLoopTransition0.begin+3.8s",to:"M12 4h1.5M12 4h-1.5M12 4v1.5M12 4v-1.5"},null),t.createVNode("set",{fill:"freeze",attributeName:"d",begin:"lineMdSunnyOutlineToMoonAltLoopTransition0.begin+5.8s",to:"M13 4h1.5M13 4h-1.5M13 4v1.5M13 4v-1.5"},null)]),t.createVNode("path",{d:"M19 11h1.5M19 11h-1.5M19 11v1.5M19 11v-1.5"},[t.createVNode("animate",{id:"lineMdSunnyOutlineToMoonAltLoopTransition1",fill:"freeze",attributeName:"stroke-dashoffset",begin:"1s;lineMdSunnyOutlineToMoonAltLoopTransition1.begin+6s",dur:"0.4s",values:"4;0"},null),t.createVNode("animate",{fill:"freeze",attributeName:"stroke-dashoffset",begin:"lineMdSunnyOutlineToMoonAltLoopTransition1.begin+2s;lineMdSunnyOutlineToMoonAltLoopTransition1.begin+4s",dur:"0.4s",values:"4;0"},null),t.createVNode("animate",{fill:"freeze",attributeName:"stroke-dashoffset",begin:"lineMdSunnyOutlineToMoonAltLoopTransition1.begin+1.2s;lineMdSunnyOutlineToMoonAltLoopTransition1.begin+3.2s;lineMdSunnyOutlineToMoonAltLoopTransition1.begin+5.2s",dur:"0.4s",values:"0;4"},null),t.createVNode("set",{fill:"freeze",attributeName:"d",begin:"lineMdSunnyOutlineToMoonAltLoopTransition1.begin+1.8s",to:"M17 11h1.5M17 11h-1.5M17 11v1.5M17 11v-1.5"},null),t.createVNode("set",{fill:"freeze",attributeName:"d",begin:"lineMdSunnyOutlineToMoonAltLoopTransition1.begin+3.8s",to:"M18 12h1.5M18 12h-1.5M18 12v1.5M18 12v-1.5"},null),t.createVNode("set",{fill:"freeze",attributeName:"d",begin:"lineMdSunnyOutlineToMoonAltLoopTransition1.begin+5.8s",to:"M19 11h1.5M19 11h-1.5M19 11v1.5M19 11v-1.5"},null)]),t.createVNode("path",{d:"M19 4h1.5M19 4h-1.5M19 4v1.5M19 4v-1.5"},[t.createVNode("animate",{id:"lineMdSunnyOutlineToMoonAltLoopTransition2",fill:"freeze",attributeName:"stroke-dashoffset",begin:"2.8s;lineMdSunnyOutlineToMoonAltLoopTransition2.begin+6s",dur:"0.4s",values:"4;0"},null),t.createVNode("animate",{fill:"freeze",attributeName:"stroke-dashoffset",begin:"lineMdSunnyOutlineToMoonAltLoopTransition2.begin+2s",dur:"0.4s",values:"4;0"},null),t.createVNode("animate",{fill:"freeze",attributeName:"stroke-dashoffset",begin:"lineMdSunnyOutlineToMoonAltLoopTransition2.begin+1.2s;lineMdSunnyOutlineToMoonAltLoopTransition2.begin+3.2s",dur:"0.4s",values:"0;4"},null),t.createVNode("set",{fill:"freeze",attributeName:"d",begin:"lineMdSunnyOutlineToMoonAltLoopTransition2.begin+1.8s",to:"M20 5h1.5M20 5h-1.5M20 5v1.5M20 5v-1.5"},null),t.createVNode("set",{fill:"freeze",attributeName:"d",begin:"lineMdSunnyOutlineToMoonAltLoopTransition2.begin+5.8s",to:"M19 4h1.5M19 4h-1.5M19 4v1.5M19 4v-1.5"},null)])]),t.createVNode("g",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2"},[t.createVNode("g",null,[t.createVNode("path",{"stroke-dasharray":"2","stroke-dashoffset":"4",d:"M12 21v1M21 12h1M12 3v-1M3 12h-1"},[t.createVNode("animate",{fill:"freeze",attributeName:"stroke-dashoffset",dur:"0.2s",values:"4;2"},null)]),t.createVNode("path",{"stroke-dasharray":"2","stroke-dashoffset":"4",d:"M18.5 18.5l0.5 0.5M18.5 5.5l0.5 -0.5M5.5 5.5l-0.5 -0.5M5.5 18.5l-0.5 0.5"},[t.createVNode("animate",{fill:"freeze",attributeName:"stroke-dashoffset",begin:"0.2s",dur:"0.2s",values:"4;2"},null)]),t.createVNode("set",{fill:"freeze",attributeName:"opacity",begin:"0.5s",to:"0"},null)]),t.createVNode("path",{d:"M7 6 C7 12.08 11.92 17 18 17 C18.53 17 19.05 16.96 19.56 16.89 C17.95 19.36 15.17 21 12 21 C7.03 21 3 16.97 3 12 C3 8.83 4.64 6.05 7.11 4.44 C7.04 4.95 7 5.47 7 6 Z",opacity:"0"},[t.createVNode("set",{fill:"freeze",attributeName:"opacity",begin:"0.5s",to:"1"},null)])]),t.createVNode("mask",{id:"lineMdSunnyOutlineToMoonAltLoopTransition3"},[t.createVNode("circle",{cx:"12",cy:"12",r:"12",fill:"#fff"},null),t.createVNode("circle",{cx:"12",cy:"12",r:"4"},[t.createVNode("animate",{fill:"freeze",attributeName:"r",begin:"0.1s",dur:"0.4s",values:"4;8"},null)]),t.createVNode("circle",{cx:"22",cy:"2",r:"3",fill:"#fff"},[t.createVNode("animate",{fill:"freeze",attributeName:"cx",begin:"0.1s",dur:"0.4s",values:"22;18"},null),t.createVNode("animate",{fill:"freeze",attributeName:"cy",begin:"0.1s",dur:"0.4s",values:"2;6"},null),t.createVNode("animate",{fill:"freeze",attributeName:"r",begin:"0.1s",dur:"0.4s",values:"3;12"},null)]),t.createVNode("circle",{cx:"22",cy:"2",r:"1"},[t.createVNode("animate",{fill:"freeze",attributeName:"cx",begin:"0.1s",dur:"0.4s",values:"22;18"},null),t.createVNode("animate",{fill:"freeze",attributeName:"cy",begin:"0.1s",dur:"0.4s",values:"2;6"},null),t.createVNode("animate",{fill:"freeze",attributeName:"r",begin:"0.1s",dur:"0.4s",values:"1;10"},null)])]),t.createVNode("circle",{cx:"12",cy:"12",r:"6",mask:"url(#lineMdSunnyOutlineToMoonAltLoopTransition3)",fill:"currentColor"},[t.createVNode("animate",{fill:"freeze",attributeName:"r",begin:"0.1s",dur:"0.4s",values:"6;10"},null),t.createVNode("set",{fill:"freeze",attributeName:"opacity",begin:"0.5s",to:"0"},null)])])}function rt(e){return t.createVNode("svg",t.mergeProps({xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24"},e),[t.createVNode("g",{fill:"none","fill-rule":"evenodd"},[t.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),t.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)])])}const ae={dataSource:{type:Array,default:()=>[]},historyKey:String},Ne=()=>({...S.darkThemeProps,...ae,actions:{type:Object,default:()=>({})},shortsKey:{type:Object,default:()=>({disabled:!1})},name:{type:String,default:"gx·design"},themeEditorOpen:{type:Boolean,default:!0},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,onClickSettings:Function});function it(e,n){const a=new Map;return e.filter(r=>{const i=r[n];return a.has(i)?!1:(a.set(i,r),!0)})}function ot(e){return e?/^https?:\/\/.*$/.test(e):!1}const lt=new Set(["$","(",")","*","+",".","?","[","\\","]","^","{","|","}"]),st=({className:e,value:n})=>n?t.createVNode(m.Empty,{image:m.Empty.PRESENTED_IMAGE_SIMPLE,description:`未找到搜索结果 "${n}"`},null):t.createVNode("div",{class:e},[t.createTextVNode("没有搜索历史")]),ct=t.defineComponent({props:{...ae,className:String,hashId:String,keyword:String,onClose:Function},setup(e){const n=ze.useRouter(),a=k.useLocalStorage(e.historyKey||d.getPrefixCls({suffixCls:"layout-search-history",isPor:!0}),[]),r=t.ref(0),i=t.ref([]),l=k.useThrottleFn(o,200);function o(h){if(h=h.trim(),!h){i.value=[];return}const g=p(h),C=[];e.dataSource.forEach(F=>{if(F.meta?.hideInMenu)return;const K=F.meta?.title||F.name||"";if(g.test(K.toLowerCase())){let V=[];const j=F?.key?.split("-")||[];for(let E=0;E<j.length;E++)V.push(j.slice(0,E+1).join("-"));V=V.map(E=>e.dataSource.find(y=>y?.key===E)?.meta?.title||""),C.push(d.merge(F,{meta:{title:V.join("**")}}))}}),i.value=C,C.length>0&&(r.value=0),r.value=0}t.watch(()=>e.keyword,h=>{h?l(h):i.value=[...a.value]});function s(){i.value=[],e.onClose?.()}function c(){const h=document.querySelector(`[data-search-item="${r.value}"]`);h&&h.scrollIntoView({block:"nearest"})}async function u(){if(i.value.length===0)return;const h=i.value,g=r.value;if(h.length===0||g<0)return;const C=h[g];C&&(a.value.push(C),s(),await t.nextTick(),ot(C.path)?window.open(C.path,"_blank"):n.push({path:C.path,replace:!0}))}function f(h){return lt.has(h)?`\\${h}`:h}function p(h){const g=[...h].map(C=>f(C)).join(".*");return new RegExp(`.*${g}.*`)}function w(){i.value.length!==0&&(r.value--,r.value<0&&(r.value=i.value.length-1),c())}function O(){i.value.length!==0&&(r.value++,r.value>i.value.length-1&&(r.value=0),c())}t.onMounted(()=>{a.value.length>0&&(i.value=a.value),k.onKeyStroke("Enter",u),k.onKeyStroke("ArrowUp",w),k.onKeyStroke("ArrowDown",O)});function B(h){r.value=h}function A(h,g){h.stopPropagation(),e.keyword?i.value.splice(g,1):a.value.splice(g,1),r.value=r.value-1>=0?r.value-1:0,c()}const v=h=>d.classNames(`${e.className}${h?`-${h}`:""}`,e.hashId);return()=>t.createVNode(t.Fragment,null,[i.value.length>0?t.createVNode(t.Fragment,null,[a.value.length>0&&!e.keyword&&t.createVNode("div",{class:v("panel-title")},[t.createTextVNode("搜索历史")]),t.createVNode("div",{class:v("panel-list")},[it(i.value,"path").map((h,g)=>t.createVNode("div",{key:h.name,class:v(d.classNames("panel-item",g===r.value&&"active")),"data-search-item":g,onClick:()=>u(),onMouseenter:()=>B(g)},[t.createVNode("div",{class:v("panel-item-left")},[t.createVNode(S.LazyIcon,t.mergeProps(h.meta||{},{icon:h.meta?.icon||t.createVNode(b.MenuOutlined,null,null),classNames:v("panel-icon")}),null),h.meta?.title?.split("**")?.map((C,F)=>t.createVNode(t.Fragment,null,[C,F<h.meta?.title?.split("**")?.length-1&&t.createVNode(b.ArrowRightOutlined,null,null)])),t.createVNode("span",null,null)]),t.createVNode(b.CloseOutlined,{onClick:C=>A(C,g)},null)]))])]):t.createVNode(st,{className:v("result"),value:e.keyword},null)])}}),dt=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:S.getProSolidColor(e,e.colorBgLayout),transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,">.anticon":{fontSize:e.fontSize,color:e.colorTextTertiary},"&-word":{lineHeight:e.lineHeight},"&-word-icon":{padding:"4px 6px",lineHeight:x.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.colorBgLayout,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 ut(e){return x.useStyle("SearchPageInput",n=>{const a=x.mergeToken(n,{});return[dt(a)]},e)}const ht=({className:e,hashId:n})=>t.createVNode("div",{class:d.classNames(`${e}-footer`,n)},[t.createVNode("div",{class:d.classNames(`${e}-footer-icon`,n)},[t.createVNode(b.EnterOutlined,null,null),t.createTextVNode("选择")]),t.createVNode("div",{class:d.classNames(`${e}-footer-icon`,n)},[t.createVNode(b.ArrowUpOutlined,null,null),t.createVNode(b.ArrowUpOutlined,{rotate:180},null),t.createTextVNode("导航")])]),ft=t.defineComponent({name:"SearchPageInput",props:{...ae,dark:{type:Boolean,default:void 0},disabledShortKey:{type:Boolean,default:!1}},setup(e){const n=d.getPrefixCls({suffixCls:"page-search",isPor:!0}),{wrapSSR:a,hashId:r}=ut(n),[i,l]=I.useState(""),[o,s]=I.useState(!1),c=S.useProLayoutContext(),u=k.useMagicKeys(),f=d.isWindowsOs()?u["ctrl+k"]:u["cmd+k"],p=t.ref(),w=t.computed(()=>d.getLevelData(e.dataSource?.length?e.dataSource:c?.menuProps?.value?.menuData));k.whenever(f,()=>{e.disabledShortKey||s(!0)}),k.whenever(o,()=>{t.nextTick(()=>{p.value?.focus()})});const O=()=>{s(!1),i.value=""};return()=>{const B={className:`${n}`,hashId:r.value},A=`${n}-modal`;return a(t.createVNode(t.Fragment,null,[t.createVNode("div",{class:d.classNames(n,r.value),onClick:()=>s(!0)},[t.createVNode(b.SearchOutlined,null,null),t.createVNode("span",{class:d.classNames(`${n}-word`,r.value)},[t.createTextVNode("搜索")]),t.createVNode("span",{class:d.classNames(`${n}-word-icon`,r.value)},[t.createTextVNode("⌘")," ",t.createVNode("kbd",null,[t.createTextVNode("K")])])]),t.createVNode(ce.GProModal,{class:d.classNames(`${A}`,r.value),width:600,scrollProps:{maxHeight:400,minHeight:200},centered:!1,title:t.createVNode(m.Input,{style:{width:`${600*.8}px`,padding:0},ref:p,bordered:!1,size:"large",placeholder:"搜索导航菜单",value:i.value,prefix:t.createVNode(b.SearchOutlined,null,null),onChange:v=>l(v.target.value)},null),open:o.value,footer:t.createVNode(ht,{className:A,hashId:r.value},null),onCancel:()=>O()},{default:()=>[t.createVNode(ct,t.mergeProps(B,{keyword:i.value,dataSource:w.value,onClose:()=>O()}),null)]})]))}}}),gt=e=>{const{dark:n}=S.getTokenLayoutTheme(e),a=S.checkMenuDark(e,"header");return{[`${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:n||a?e.colorWhite:e.colorTextTertiary,fontSize:"16px",cursor:"pointer",lineHeight:1,borderRadius:e.borderRadius,".anticon":{color:n||a?e.colorWhite:e.colorTextTertiary},[`${e.componentCls}-header-actions-icon`]:{fontSize:e.fontSizeXL},"> *":{paddingInline:6,paddingBlock:6,borderRadius:e.borderRadius,transition:`color ${e.motionDurationMid}, background-color ${e.motionDurationMid}`,"&:hover":{background:a?te.getAlphaColor("#fff",.12):e.colorBgTextHover}}},[`&>${e.antCls}-dropdown-trigger`]:{color:e.colorTextTertiary,paddingInline:8,paddingBlock:8,cursor:"pointer",display:"flex",alignItems:"center",height:44,lineHeight:x.unit(44),borderRadius:e.borderRadius,paddingInlineEnd:e.padding,"&:hover":{backgroundColor:x.setAlpha(e.colorTextBase,.03)}},"&-avatar":{display:"inline-flex",alignItems:"center",justifyContent:"center",gap:e.paddingXS,cursor:"pointer",color:e.colorTextTertiary,"> div":{color:n||a?e.colorWhite:e.colorTextTertiary}}}}}};function mt(e){return x.useStyle("RightContent",n=>{const a=x.mergeToken(n);return[gt(a)]},e)}const pt=t.defineComponent({name:"GlobalRightContent",props:Ne(),inheritAttrs:!1,emits:["logout","darkChange","clickSettings","update:dark","lockOpenChange"],slots:Object,setup(e,{slots:n}){const{isFullscreen:a,toggle:r}=k.useFullscreen(),i=x.useProConfigContext(),l=S.useProLayoutContext(),o=I.useMediaQuery(),s=d.getPrefixCls({suffixCls:"global-header",isPor:!0}),{wrapSSR:c,hashId:u}=mt(s),[f,p]=I.useState(!1),[w,O]=I.useState("auto"),{isDark:B,toggleMode:A}=S.useDarkTheme(t.computed(()=>S.hasDarkValue(e.dark)?e.dark:l?.dark?.value),{change:V=>{e.onDarkChange?.(V),e?.["onUpdate:dark"]?.(V),l?.onDarkChange?.(V)}}),v=t.computed(()=>d.isBoolean(l?.isMobile?.value)?l?.isMobile?.value:o.value==="sm"||o.value==="xs"),h=t.computed(()=>S.hasDarkValue(e.dark)?B.value:i?.dark?.value),g=t.computed(()=>e.actions===!1?{}:{...{lock:!0,theme:!0,search:!0,settings:!0,fullScreen:!0},...e.actions}),C=k.useDebounceFn(async V=>{O(V)},160),F=V=>{S.toggleLayoutTheme({event:V,isDark:h,toggle:A})};function K(V){d.isFunction(e.onClickSettings)&&e.onClickSettings?.(V)}return()=>{const V=d.getSlotsProps({slots:n,props:e,keys:["dropdownRender","dropdownMenuRender","dropdownMenuExtraItemRender"],render:!0}),j=d.getSlot({slots:n,props:e,key:"actionsRender"}),E=a.value?b.CompressOutlined:b.ExpandOutlined,y=g.value.lock?t.defineAsyncComponent(()=>Promise.resolve().then(()=>gn)):t.createVNode("div",null,null);return c(t.createVNode("div",{class:`${s}-right-content ${u.value}`.trim(),style:{minWidth:w.value,height:"100%"}},[t.createVNode("div",{style:{height:"100%"}},[t.createVNode(nt,{key:"resize-observer",onResize:({width:M})=>{C(M)}},{default:()=>[t.createVNode("div",{class:`${s}-header-actions ${u.value}`.trim()},[n.default?.()??t.createVNode(t.Fragment,null,[g.value.search&&!v.value&&t.createVNode(ft,{dataSource:e.dataSource,disabledShortKey:e.shortsKey?.disabled},null),g.value.theme&&t.createVNode("div",{class:`${s}-header-actions-item ${u.value}`.trim()},[t.createVNode(b,{class:`${s}-header-actions-icon ${u.value}`.trim(),component:h.value?xe:ye,onClick:M=>F(M)},null)]),g.value.settings&&!v.value&&t.createVNode("div",{class:`${s}-header-actions-item ${u.value}`.trim()},[t.createVNode(b.SettingOutlined,{onClick:()=>K("settings")},null)]),g.value.fullScreen&&!v.value&&t.createVNode("div",{class:`${s}-header-actions-item ${u.value}`.trim()},[t.createVNode(E,{onClick:()=>r()},null)]),j?j?.([`${s}-header-actions-item`,u.value]):null]),t.createVNode(m.Dropdown,t.mergeProps({placement:"bottomRight",overlayStyle:{maxWidth:120,minWidth:120}},e.dropdownProps,{overlay:V.dropdownMenuRender||t.createVNode(m.Menu,null,{default:()=>[V.dropdownMenuExtraItemRender,g.value.lock&&t.createVNode(t.Fragment,null,[t.createVNode(m.MenuItem,{key:"lock",icon:t.createVNode(b.LockOutlined,null,null),onClick:()=>p(!0)},{default:()=>[t.createTextVNode("锁定屏幕")]}),t.createVNode(m.Menu.Divider,null,null)]),t.createVNode(m.MenuItem,{key:"logout",icon:t.createVNode(b.LogoutOutlined,null,null),onClick:()=>e.onLogout?.()},{default:()=>[t.createTextVNode("退出登录")]})]})}),{default:()=>[V.dropdownRender||t.createVNode("div",{class:`${s}-header-actions-avatar ${u.value}`.trim()},[t.createVNode(m.Avatar,{size:28,icon:t.createVNode(b.UserOutlined,null,null),src:e.avatar},null),t.createVNode("div",{class:`${s}-header-actions-name ${u.value}`.trim()},[e.name])])]})])]})]),t.createVNode(y,{open:f.value,onOpenChange:M=>p(M)},null)]))}}}),G={appList:{type:Array,default:void 0},onItemClick:Function},Ce=t.defineComponent({props:{hashId:String,baseClassName:String,appList:G.appList,onItemClick:G.onItemClick},setup(e){return()=>t.createVNode("div",{class:`${e.baseClassName}-content ${e.hashId}`.trim()},[t.createVNode("ul",{class:`${e.baseClassName}-content-list ${e.hashId}`.trim()},[e.appList?.map((n,a)=>n?.children?.length?t.createVNode("div",{key:a,class:`${e.baseClassName}-content-list-item-group ${e.hashId}`.trim()},[t.createVNode("div",{class:`${e.baseClassName}-content-list-item-group-title ${e.hashId}`.trim()},[n.title]),t.createVNode(Ce,{hashId:e.hashId,onItemClick:e.onItemClick,appList:n?.children,baseClassName:e.baseClassName},null)]):t.createVNode("li",{key:a,class:`${e.baseClassName}-content-list-item ${e.hashId}`.trim(),onClick:r=>{r.stopPropagation(),e.onItemClick?.(n)}},[t.createVNode("a",{href:e.onItemClick?void 0:n.url,target:n.target,rel:"noreferrer"},[t.createVNode(Vt,{logo:n.icon},null),t.createVNode("div",null,[t.createVNode("div",null,[n.title]),n.desc?t.createVNode("span",null,[n.desc]):null])])]))])])}}),bt=(e,n)=>{if(e&&typeof e=="string"&&d.isUrl(e))return t.createVNode("img",{src:e,alt:"logo"},null);if(typeof e=="function")return e();if(e&&typeof e=="string")return t.createVNode("div",{id:"avatarLogo"},[e]);if(!e&&n&&typeof n=="string"){const a=n.substring(0,1);return t.createVNode("div",{id:"avatarLogo"},[a])}return e},Se=t.defineComponent({props:{hashId:String,baseClassName:String,appList:G.appList,onItemClick:G.onItemClick},setup(e){return()=>t.createVNode("div",{class:`${e.baseClassName}-content ${e.hashId}`.trim()},[t.createVNode("ul",{class:`${e.baseClassName}-content-list ${e.hashId}`.trim()},[e.appList?.map((n,a)=>n?.children?.length?t.createVNode("div",{key:a,class:`${e.baseClassName}-content-list-item-group ${e.hashId}`.trim()},[t.createVNode("div",{class:`${e.baseClassName}-content-list-item-group-title ${e.hashId}`.trim()},[n.title]),t.createVNode(Se,{hashId:e.hashId,onItemClick:e.onItemClick,appList:n?.children,baseClassName:e.baseClassName},null)]):t.createVNode("li",{key:a,class:`${e.baseClassName}-content-list-item ${e.hashId}`.trim(),onClick:r=>{r.stopPropagation(),e.onItemClick?.(n)}},[t.createVNode("a",{href:e.onItemClick?"javascript:;":n.url,target:n.target,rel:"noreferrer"},[bt(n.icon,n.title),t.createVNode("div",null,[t.createVNode("div",null,[n.title])])])]))])])}}),yt=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":x.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"}}}}}}),xt=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"}}}}}}),Nt=e=>({[e.componentCls]:{"&-simple":xt(e),"&-default":yt(e)}}),Ct=e=>{const{theme:n}=S.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:n==="dark"?e.colorWhite:e.layout?.colorTextAppListIcon,borderRadius:e.borderRadius,"&:hover":{color:n==="dark"?e.colorWhite:e.layout?.colorTextAppListIconHover,backgroundColor:n==="dark"?te.getAlphaColor("#fff",.12):e.layout?.colorBgAppListIconHover},[`&-active${e.proComponentsCls}-layout-app-icon`]:{fontSize:18,color:n==="dark"?e.colorWhite:e.layout?.colorTextAppListIconHover,backgroundColor:n==="dark"?te.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"}}}}},St=t.defineComponent({props:G,emits:["itemClick"],setup(e){const n=d.getPrefixCls({suffixCls:"layout-app",isPor:!0}),{wrapSSR:a,hashId:r}=x.useProStyle("AppsLogoList",[Nt],n),i=l=>{e.onItemClick?.(l)};return()=>e.appList?.some(o=>!o?.desc)?a(t.createVNode(Se,{hashId:r.value,appList:e.appList,onItemClick:e.onItemClick?i:void 0,baseClassName:`${n}-simple`},null)):a(t.createVNode(Ce,{hashId:r.value,appList:e.appList,onItemClick:e.onItemClick?i:void 0,baseClassName:`${n}-default`},null))}}),wt=()=>t.createVNode(b.AppstoreOutlined,null,null),Vt=({logo:e})=>typeof e=="string"?t.createVNode("img",{width:"auto",height:22,src:e,alt:"logo"},null):typeof e=="function"?e():e,vt=t.defineComponent({name:"AppsLogoIcon",inheritAttrs:!1,props:G,setup(e){const n=d.getPrefixCls({suffixCls:"layout-app",isPor:!0}),{wrapSSR:a,hashId:r}=x.useProStyle("AppsLogoIcon",[Ct],n),[i,l]=I.useState(!1),o=t.ref(),s=t.ref();return()=>a(t.createVNode(t.Fragment,null,[t.createVNode("div",{ref:o,onClick:c=>{c.stopPropagation(),c.preventDefault()}},null),t.createVNode(m.Popover,{placement:"bottomRight",trigger:["click"],arrow:!1,destroyTooltipOnHide:!0,open:i.value,onOpenChange:l,overlayClassName:`${n}-popover ${r.value}`.trim(),content:t.createVNode(St,e,null),getPopupContainer:()=>o.value||document.body},{default:()=>[t.createVNode("span",{ref:s,onClick:c=>{c.stopPropagation()},class:d.classNames(`${n}-icon`,r.value,{[`${n}-icon-active`]:i.value})},[t.createVNode(wt,null,null)])]})]))}}),we={prefixCls:String,hashId:String,width:Number,open:{type:Boolean,default:void 0},onOpenChange:{type:Function,default:void 0}},Ve={open:{type:Boolean,default:void 0},onChange:{type:Function},"onUpdate:open":{type:Function},extraSettingState:{type:Object},weakMode:{type:Boolean,default:!0},copyButton:{type:Boolean,default:!0},progress:{type:Boolean,default:!0},onChangeThemeState:{type:Function},onChangeSettingState:{type:Function}},Mt=[{value:"light",label:()=>t.createVNode("div",{style:{display:"flex",alignItems:"center",gap:"6px"}},[t.createVNode(b,{component:ye},null),t.createTextVNode("亮色")])},{value:"dark",label:()=>t.createVNode("div",{style:{display:"flex",alignItems:"center",gap:"6px"}},[t.createVNode(b,{component:xe},null),t.createTextVNode("深色")])},{value:"system",label:()=>t.createVNode("div",{style:{display:"flex",alignItems:"center",gap:"6px"}},[t.createVNode(b.DesktopOutlined,null,null),t.createTextVNode("自动")])}],Tt=[{key:"light",title:"亮色菜单风格"},{key:"dark",title:"暗色菜单风格"}],kt=[{key:"side",title:"侧边菜单布局"},{key:"mix",title:"混合菜单布局"},{key:"top",title:"顶部菜单布局"},{key:"wide",title:"定宽菜单布局"},{key:"simple",title:"简单菜单布局"}],At=[{label:"fixedHeader",title:"固定 Header"},{label:"fixSiderbar",title:"固定侧边菜单"},{label:"splitMenus",title:"自动分割菜单"}],It=[{label:"showTabsBar",title:"多标签"},{label:"fixedTabsBar",title:"固定多标签"}],Rt=[{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:"酱紫"}],ve=t.defineComponent({name:"BlockCheckbox",props:{value:String,list:{type:Array,default:()=>[]},configType:String,prefixCls:String,hashId:String,onChange:Function},setup(e){return()=>{const n=`${e.prefixCls}-block-checkbox`;return t.createVNode("div",{class:[n,e.hashId]},[e.list.map(a=>t.createVNode(m.Tooltip,{title:a.title,key:a.key},{default:()=>[t.createVNode("div",{class:d.classNames(e.hashId,`${n}-item`,`${n}-item-${a.key}`,`${n}-${e.configType}-item`),onClick:r=>e.onChange?.(a.key,r)},[a.key==="wide"&&t.createVNode("div",{class:[`${n}-item-${a.key}-content`,e.hashId]},null),t.createVNode(b.CheckOutlined,{class:`${n}-selectIcon ${e.hashId}`.trim(),style:{display:e.value===a.key?"block":"none"}},null),a?.icon?t.createVNode("div",{class:`${n}-icon ${e.hashId}`.trim()},[a.icon]):null])]}))])}}}),J=t.defineComponent({name:"RegionalChange",props:{label:String,value:Boolean,prefixCls:String,valueKey:String,hashId:String,disabled:Boolean,onChange:Function},setup(e){return()=>t.createVNode(m.List,{class:`${e.prefixCls}-list ${e.hashId}`.trim(),split:!1,size:"small",renderItem:({item:n})=>t.createVNode(m.Tooltip,{title:n.disabled?n.disabledReason:"",placement:"left"},{default:()=>[t.createVNode(m.List.Item,{actions:[n.action]},{default:()=>[t.createVNode("span",{style:{opacity:n.disabled?.5:1}},[n.title])]})]}),dataSource:[{title:e.label,action:t.createVNode(m.Switch,{size:"small",disabled:e.disabled,checked:!!e.value,onChange:n=>{e.onChange&&e.onChange(e.valueKey,n)}},null)}]},null)}}),Bt=["copyButton","progress","weakMode","extraSettingState"],Ot=t.defineComponent({props:{...we,...L.pick(Ve,["copyButton","progress","weakMode","extraSettingState"]),disabled:Object,dark:Boolean,onChangeDark:Function,onChangeConfig:Function,onChangeExtraConfig:Function},setup(e){const n=S.useProLayoutContext(),{copy:a,copied:r,isSupported:i}=k.useClipboard();t.watch(r,o=>{o&&m.message.success("拷贝成功,请到 config/default/themeConfig.js 中替换默认配置")});const l=()=>{i.value&&a(JSON.stringify(t.unref(n?.settings?.value)))};return()=>{const{prefixCls:o,hashId:s}=e;return t.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:()=>[t.createVNode("div",{class:d.classNames([`${o}-wrapper`,s])},[t.createVNode(de.GScrollbars,null,{default:()=>[t.createVNode("div",{class:d.classNames([`${o}-content`,s])},[t.createVNode("div",{class:d.classNames([`${o}-card`,s])},[t.createVNode("div",{class:d.classNames(`${o}-card-header`,s)},[t.createVNode("div",{class:d.classNames(`${o}-card-header-title`,s)},[t.createTextVNode("系统配置")]),t.createVNode("div",{class:d.classNames(`${o}-card-header-subtitle`,s)},[t.createTextVNode("GxDesign Pro")])]),t.createVNode("div",{class:d.classNames(`${o}-card-content`,s)},[t.createVNode(X,{prefixCls:`${o}`,hashId:s,title:"整体风格"},{default:()=>[t.createVNode(m.Segmented,{value:d.isBoolean(e.dark)?e.dark?"dark":"light":"system",options:Mt,onChange:c=>e.onChangeDark?.(c)},null)]}),t.createVNode(X,{prefixCls:o,hashId:s,title:"菜单风格"},{default:()=>[t.createVNode(ve,{value:n?.settings?.value.theme,hashId:s,prefixCls:o,list:Tt,configType:"menuTheme",key:"menuTheme",onChange:c=>e.onChangeConfig?.({theme:c})},null)]}),t.createVNode(m.Divider,null,null),t.createVNode(X,{hashId:s,prefixCls:o,title:"导航模式"},{default:()=>[t.createVNode(ve,{value:n?.settings?.value.layout,prefixCls:o,key:"layout",hashId:s,configType:"layout",list:kt,onChange:c=>e.onChangeConfig?.({layout:c})},null)]}),At.map(({label:c,title:u})=>t.createVNode(J,{label:u,prefixCls:o,hashId:s,valueKey:c,value:n?.settings?.value[c],disabled:e.disabled?.[c],onChange:(f,p)=>e.onChangeConfig?.({[f]:p})},null)),t.createVNode(m.Divider,null,null),t.createVNode(X,{hashId:s,prefixCls:o,title:"其他设置"},{default:()=>[It.map(({label:c,title:u})=>t.createVNode(J,{label:u,prefixCls:o,hashId:s,valueKey:c,value:n?.settings?.value[c],disabled:e.disabled?.[c],onChange:(f,p)=>e.onChangeConfig?.({[f]:p})},null)),e.weakMode&&t.createVNode(J,{label:"色弱模式",prefixCls:o,hashId:s,valueKey:"colorWeak",value:e.extraSettingState?.colorWeak,onChange:(c,u)=>e.onChangeExtraConfig?.({[c]:u})},null),e.progress&&t.createVNode(J,{label:"顶部进度条",prefixCls:o,hashId:s,valueKey:"progress",value:e.extraSettingState?.progress,onChange:(c,u)=>e.onChangeExtraConfig?.({[c]:u})},null)]}),e.copyButton&&t.createVNode(m.Divider,null,null),t.createVNode("div",{style:{display:"flex",gap:"10px"}},[e.copyButton&&t.createVNode(m.Button,{onClick:()=>l(),block:!0},{default:()=>[t.createVNode(b.CopyOutlined,null,null),t.createTextVNode("拷贝设置")]}),t.createVNode(m.Button,{block:!0},{default:()=>[t.createVNode(b.ClearOutlined,null,null),t.createTextVNode("清空缓存")]})])])])])]})])]})}}}),Ft=t.defineComponent({name:"ColorSvg",setup(){return()=>t.createVNode("svg",{width:"1em",height:"1em",viewBox:"0 0 64 64",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[t.createVNode("rect",{width:"8",height:"8",fill:"#DBE1FC"},null),t.createVNode("rect",{y:"8",width:"8",height:"8",fill:"#B6C5FA"},null),t.createVNode("rect",{y:"16",width:"8",height:"8",fill:"#90A9F9"},null),t.createVNode("rect",{y:"24",width:"8",height:"8",fill:"#688DF7"},null),t.createVNode("rect",{y:"32",width:"8",height:"8",fill:"#4471EC"},null),t.createVNode("rect",{y:"40",width:"8",height:"8",fill:"#2257D2"},null),t.createVNode("rect",{y:"48",width:"8",height:"8",fill:"#1640A6"},null),t.createVNode("rect",{y:"56",width:"8",height:"8",fill:"#0D2B76"},null),t.createVNode("rect",{x:"48",width:"8",height:"8",fill:"#CBEAD3"},null),t.createVNode("rect",{x:"48",y:"8",width:"8",height:"8",fill:"#A4D7B5"},null),t.createVNode("rect",{x:"48",y:"16",width:"8",height:"8",fill:"#77BE92"},null),t.createVNode("rect",{x:"48",y:"24",width:"8",height:"8",fill:"#57A075"},null),t.createVNode("rect",{x:"48",y:"32",width:"8",height:"8",fill:"#3F855C"},null),t.createVNode("rect",{x:"48",y:"40",width:"8",height:"8",fill:"#306948"},null),t.createVNode("rect",{x:"48",y:"48",width:"8",height:"8",fill:"#235136"},null),t.createVNode("rect",{x:"48",y:"56",width:"8",height:"8",fill:"#163724"},null),t.createVNode("rect",{x:"32",width:"8",height:"8",fill:"#F8DCCA"},null),t.createVNode("rect",{x:"32",y:"8",width:"8",height:"8",fill:"#F3BA94"},null),t.createVNode("rect",{x:"32",y:"16",width:"8",height:"8",fill:"#EC9B66"},null),t.createVNode("rect",{x:"32",y:"24",width:"8",height:"8",fill:"#D97E40"},null),t.createVNode("rect",{x:"32",y:"32",width:"8",height:"8",fill:"#B9642A"},null),t.createVNode("rect",{x:"32",y:"40",width:"8",height:"8",fill:"#944A1A"},null),t.createVNode("rect",{x:"32",y:"48",width:"8",height:"8",fill:"#713712"},null),t.createVNode("rect",{x:"32",y:"56",width:"8",height:"8",fill:"#51270A"},null),t.createVNode("rect",{x:"56",width:"8",height:"8",fill:"#D5E3FC"},null),t.createVNode("rect",{x:"56",y:"8",width:"8",height:"8",fill:"#A3C7FA"},null),t.createVNode("rect",{x:"56",y:"16",width:"8",height:"8",fill:"#6EAAF8"},null),t.createVNode("rect",{x:"56",y:"24",width:"8",height:"8",fill:"#4C91E7"},null),t.createVNode("rect",{x:"56",y:"32",width:"8",height:"8",fill:"#3577C8"},null),t.createVNode("rect",{x:"56",y:"40",width:"8",height:"8",fill:"#295EA0"},null),t.createVNode("rect",{x:"56",y:"48",width:"8",height:"8",fill:"#1C4679"},null),t.createVNode("rect",{x:"56",y:"56",width:"8",height:"8",fill:"#123258"},null),t.createVNode("rect",{x:"24",width:"8",height:"8",fill:"#F8DADB"},null),t.createVNode("rect",{x:"24",y:"8",width:"8",height:"8",fill:"#F1B2B3"},null),t.createVNode("rect",{x:"24",y:"16",width:"8",height:"8",fill:"#ED8B8D"},null),t.createVNode("rect",{x:"24",y:"24",width:"8",height:"8",fill:"#D96B6D"},null),t.createVNode("rect",{x:"24",y:"32",width:"8",height:"8",fill:"#BD5156"},null),t.createVNode("rect",{x:"24",y:"40",width:"8",height:"8",fill:"#96373C"},null),t.createVNode("rect",{x:"24",y:"48",width:"8",height:"8",fill:"#752027"},null),t.createVNode("rect",{x:"24",y:"56",width:"8",height:"8",fill:"#581119"},null),t.createVNode("rect",{x:"8",width:"8",height:"8",fill:"#EBDDFC"},null),t.createVNode("rect",{x:"8",y:"8",width:"8",height:"8",fill:"#D6BDFA"},null),t.createVNode("rect",{x:"8",y:"16",width:"8",height:"8",fill:"#BE9AF8"},null),t.createVNode("rect",{x:"8",y:"24",width:"8",height:"8",fill:"#A079E4"},null),t.createVNode("rect",{x:"8",y:"32",width:"8",height:"8",fill:"#8862CA"},null),t.createVNode("rect",{x:"8",y:"40",width:"8",height:"8",fill:"#6A44AB"},null),t.createVNode("rect",{x:"8",y:"48",width:"8",height:"8",fill:"#512A91"},null),t.createVNode("rect",{x:"8",y:"56",width:"8",height:"8",fill:"#360F72"},null),t.createVNode("rect",{x:"40",width:"8",height:"8",fill:"#FBE8BF"},null),t.createVNode("rect",{x:"40",y:"8",width:"8",height:"8",fill:"#F7D582"},null),t.createVNode("rect",{x:"40",y:"16",width:"8",height:"8",fill:"#ECBB46"},null),t.createVNode("rect",{x:"40",y:"24",width:"8",height:"8",fill:"#CA9E35"},null),t.createVNode("rect",{x:"40",y:"32",width:"8",height:"8",fill:"#9B7926"},null),t.createVNode("rect",{x:"40",y:"40",width:"8",height:"8",fill:"#74591A"},null),t.createVNode("rect",{x:"40",y:"48",width:"8",height:"8",fill:"#584312"},null),t.createVNode("rect",{x:"40",y:"56",width:"8",height:"8",fill:"#3D2E09"},null),t.createVNode("rect",{x:"16",width:"8",height:"8",fill:"#F8D9EA"},null),t.createVNode("rect",{x:"16",y:"8",width:"8",height:"8",fill:"#F1AED7"},null),t.createVNode("rect",{x:"16",y:"16",width:"8",height:"8",fill:"#EC7EC7"},null),t.createVNode("rect",{x:"16",y:"24",width:"8",height:"8",fill:"#D95EB1"},null),t.createVNode("rect",{x:"16",y:"32",width:"8",height:"8",fill:"#BB4998"},null),t.createVNode("rect",{x:"16",y:"40",width:"8",height:"8",fill:"#943477"},null),t.createVNode("rect",{x:"16",y:"48",width:"8",height:"8",fill:"#72215B"},null),t.createVNode("rect",{x:"16",y:"56",width:"8",height:"8",fill:"#571042"},null)])}}),$t=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:S.getProSolidColor(e,e.colorBgContainer)},svg:{fontSize:48,borderRadius:9},"&-title":{fontSize:e.fontSizeSM,marginBlockStart:e.marginXXS,lineHeight:`${e.controlHeightSM}px`,color:e.colorText}},"&-content":{flex:1,height:`calc(100% - ${e.paddingXS}px)`,color:e.colorText,marginInlineEnd:e.marginXS,borderRadius:e.borderRadius*2,backgroundColor:S.getProSolidColor(e,e.colorBgContainer)}}}),zt=t.defineComponent({props:{activeKey:{type:String,default:""},dataSource:{type:Array,default:()=>[]},renderItem:{type:Function},renderContent:{type:Function},onChange:{type:Function}},setup(e){const n=d.getPrefixCls({suffixCls:"switch-tab",isPor:!0}),{wrapSSR:a,hashId:r}=x.useProStyle("SwitchTab",[$t],n),i=t.ref(e.activeKey);t.watch(()=>e.activeKey,o=>{i.value=o});function l(o){i.value=o,e.onChange?.(o)}return()=>a(t.createVNode("div",{class:d.classNames(`${n}`,r.value)},[t.createVNode("div",{class:d.classNames(`${n}-nav`,r.value)},[e.dataSource.map(o=>t.createVNode("div",{key:o.value,class:d.classNames(`${n}-panel`,r.value,i.value===o.value&&`${n}-panel-active`),onClick:()=>l(o.value)},[e.renderItem?.(o),t.createVNode("div",{class:d.classNames(`${n}-panel-title`,r.value)},[o.label])])),t.createVNode("div",{class:d.classNames(`${n}-line`,r.value),style:{top:`${88*e.dataSource.findIndex(o=>o.value===i.value)}px`}},null)]),t.createVNode("div",{class:d.classNames(`${n}-content`,r.value)},[t.createVNode(de.GScrollbars,null,{default:()=>[e.renderContent?.(i.value)]})])]))}}),Et=t.defineComponent({props:{...we,onChange:{type:Function,default:void 0}},setup(e){const{token:n}=x.useProConfigContext(),a=t.computed(()=>{const i=new ue.AggregationColor(n.value.colorPrimary);return{hsb:i.toHsbString(),rgb:i.toRgbString(),hex:i.toHexString()}}),r=i=>{e.onChange?.(i)};return()=>{const{width:i,open:l,prefixCls:o,hashId:s,onOpenChange:c}=e;return t.createVNode(m.Drawer,{width:i,closable:!1,placement:"right",open:l,bodyStyle:{padding:0},maskStyle:{background:"transparent"},onClose:()=>c?.(!1)},{default:()=>[t.createVNode("div",{class:d.classNames([`${o}-wrapper`,s])},[t.createVNode("div",{style:{paddingInline:"8px",paddingTop:"8px"}},[t.createVNode("div",{class:d.classNames(`${o}-card-header`,s)},[t.createVNode("div",{class:d.classNames(`${o}-card-header-title`,s)},[t.createTextVNode("主题配置")]),t.createVNode("div",{class:d.classNames(`${o}-card-header-subtitle`,s)},[t.createTextVNode("GxDesign Pro")])])]),t.createVNode(zt,{activeKey:"color",dataSource:[{label:"色彩",value:"color"}],renderItem:u=>u.value==="color"?t.createVNode(Ft,null,null):null,renderContent:()=>t.createVNode("div",{style:{padding:x.unit(n.value.padding)}},[t.createVNode(X,{hashId:s,prefixCls:o,title:"主题色"},{default:()=>[t.createVNode("div",{class:d.classNames(`${o}-color-list`,s)},[Rt.map(u=>t.createVNode(m.Tooltip,{title:u.title,key:u.key},{default:()=>[t.createVNode("div",{class:d.classNames(`${o}-color-item`,s),style:{background:u.color}},[u.color.toLowerCase()===n.value.colorPrimary.toLowerCase()?t.createVNode(b.CheckOutlined,{style:{color:n.value.colorWhite,fontSize:"12px"}},null):null])]}))]),t.createVNode(ue.GColorPicker,{value:n.value.colorPrimary,onChangeComplete:u=>{r({colorPrimary:u.toHexString()})}},{default:()=>[t.createVNode("div",{class:d.classNames(`${o}-color-picker`,s)},[t.createVNode("div",{class:d.classNames(`${o}-color-picker-inner`,s)},[t.createVNode("div",{class:d.classNames(`${o}-color-picker-top`,s),style:{background:n.value.colorPrimary}},[t.createVNode("p",null,[t.createTextVNode("hsb:"),a.value.hsb]),t.createVNode("p",null,[t.createTextVNode("rgb:"),a.value.rgb])]),t.createVNode("div",{class:d.classNames(`${o}-color-picker-bottom`,s)},[t.createVNode("div",null,[t.createVNode("p",null,[t.createTextVNode("自定义主题颜色")]),t.createVNode("p",{style:{color:n.value.colorPrimary}},[t.createTextVNode("HEX:"),a.value.hex])]),t.createVNode(b.EditOutlined,{style:{fontSize:"18px"}},null)])])])]})]})])},null)])]})}}}),Lt=t.defineComponent({name:"Trigger",inheritAttrs:!1,props:{type:String,open:Boolean,hashId:String,prefixCls:String,onTypeChange:Function,onOpenChange:Function,onClose:Function},setup(e){function n(a){return{width:a?x.unit(216):x.unit(48),transition:"width 0.3s"}}return()=>{const a=x.getTransitionProps(`${e.prefixCls}-dock-zoom`);return t.createVNode(t.Fragment,null,[t.createVNode("div",{class:d.classNames(e.hashId,`${e.prefixCls}-button`),onClick:()=>e.onOpenChange?.(!0)},[t.createVNode("sup",{class:d.classNames(e.hashId,`${e.prefixCls}-dot`)},null),t.createVNode("div",{class:d.classNames(e.hashId,`${e.prefixCls}-icon`)},[t.createVNode(b,{component:rt},null)])]),t.createVNode(t.Transition,a,{default:()=>[t.withDirectives(t.createVNode("div",{class:d.classNames(e.hashId,`${e.prefixCls}-dock`)},[t.createVNode("div",{class:d.classNames(e.hashId,`${e.prefixCls}-dock-btn`,e.type==="setting"&&`${e.prefixCls}-dock-btn-active`),style:n(e.type==="setting"),onClick:()=>e.onTypeChange?.("setting")},[t.createVNode("div",{class:d.classNames(e.hashId,`${e.prefixCls}-dock-icon`)},[t.createVNode(b.SettingOutlined,null,null),e.type==="setting"&&t.createVNode("span",{class:d.classNames(e.hashId,`${e.prefixCls}-dock-icon-text`)},[t.createTextVNode("系统配置")])])]),t.createVNode("div",{class:d.classNames(e.hashId,`${e.prefixCls}-dock-btn`,e.type==="theme"&&`${e.prefixCls}-dock-btn-active`),style:n(e.type==="theme"),onClick:()=>e.onTypeChange?.("theme")},[t.createVNode("div",{class:d.classNames(e.hashId,`${e.prefixCls}-dock-icon`)},[t.createVNode(b,{component:at},null),e.type==="theme"&&t.createVNode("span",{class:d.classNames(e.hashId,`${e.prefixCls}-dock-icon-text`)},[t.createTextVNode("主题配置")])])])]),[[t.vShow,e.open]])]})])}}});function T(e,n){Pt(e)&&(e="100%");var a=Ht(e);return e=n===360?e:Math.min(n,Math.max(0,parseFloat(e))),a&&(e=parseInt(String(e*n),10)/100),Math.abs(e-n)<1e-6?1:(n===360?e=(e<0?e%n+n:e%n)/parseFloat(String(n)):e=e%n/parseFloat(String(n)),e)}function U(e){return Math.min(1,Math.max(0,e))}function Pt(e){return typeof e=="string"&&e.indexOf(".")!==-1&&parseFloat(e)===1}function Ht(e){return typeof e=="string"&&e.indexOf("%")!==-1}function Me(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function ee(e){return e<=1?"".concat(Number(e)*100,"%"):e}function _(e){return e.length===1?"0"+e:String(e)}function Dt(e,n,a){return{r:T(e,255)*255,g:T(n,255)*255,b:T(a,255)*255}}function Te(e,n,a){e=T(e,255),n=T(n,255),a=T(a,255);var r=Math.max(e,n,a),i=Math.min(e,n,a),l=0,o=0,s=(r+i)/2;if(r===i)o=0,l=0;else{var c=r-i;switch(o=s>.5?c/(2-r-i):c/(r+i),r){case e:l=(n-a)/c+(n<a?6:0);break;case n:l=(a-e)/c+2;break;case a:l=(e-n)/c+4;break}l/=6}return{h:l,s:o,l:s}}function re(e,n,a){return a<0&&(a+=1),a>1&&(a-=1),a<1/6?e+(n-e)*(6*a):a<1/2?n:a<2/3?e+(n-e)*(2/3-a)*6:e}function _t(e,n,a){var r,i,l;if(e=T(e,360),n=T(n,100),a=T(a,100),n===0)i=a,l=a,r=a;else{var o=a<.5?a*(1+n):a+n-a*n,s=2*a-o;r=re(s,o,e+1/3),i=re(s,o,e),l=re(s,o,e-1/3)}return{r:r*255,g:i*255,b:l*255}}function ke(e,n,a){e=T(e,255),n=T(n,255),a=T(a,255);var r=Math.max(e,n,a),i=Math.min(e,n,a),l=0,o=r,s=r-i,c=r===0?0:s/r;if(r===i)l=0;else{switch(r){case e:l=(n-a)/s+(n<a?6:0);break;case n:l=(a-e)/s+2;break;case a:l=(e-n)/s+4;break}l/=6}return{h:l,s:c,v:o}}function jt(e,n,a){e=T(e,360)*6,n=T(n,100),a=T(a,100);var r=Math.floor(e),i=e-r,l=a*(1-n),o=a*(1-i*n),s=a*(1-(1-i)*n),c=r%6,u=[a,o,l,l,s,a][c],f=[s,a,a,o,l,l][c],p=[l,l,s,a,a,o][c];return{r:u*255,g:f*255,b:p*255}}function Ae(e,n,a,r){var i=[_(Math.round(e).toString(16)),_(Math.round(n).toString(16)),_(Math.round(a).toString(16))];return r&&i[0].startsWith(i[0].charAt(1))&&i[1].startsWith(i[1].charAt(1))&&i[2].startsWith(i[2].charAt(1))?i[0].charAt(0)+i[1].charAt(0)+i[2].charAt(0):i.join("")}function Wt(e,n,a,r,i){var l=[_(Math.round(e).toString(16)),_(Math.round(n).toString(16)),_(Math.round(a).toString(16)),_(Gt(r))];return i&&l[0].startsWith(l[0].charAt(1))&&l[1].startsWith(l[1].charAt(1))&&l[2].startsWith(l[2].charAt(1))&&l[3].startsWith(l[3].charAt(1))?l[0].charAt(0)+l[1].charAt(0)+l[2].charAt(0)+l[3].charAt(0):l.join("")}function Gt(e){return Math.round(parseFloat(e)*255).toString(16)}function Ie(e){return R(e)/255}function R(e){return parseInt(e,16)}function qt(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 Xt(e){var n={r:0,g:0,b:0},a=1,r=null,i=null,l=null,o=!1,s=!1;return typeof e=="string"&&(e=Yt(e)),typeof e=="object"&&(z(e.r)&&z(e.g)&&z(e.b)?(n=Dt(e.r,e.g,e.b),o=!0,s=String(e.r).substr(-1)==="%"?"prgb":"rgb"):z(e.h)&&z(e.s)&&z(e.v)?(r=ee(e.s),i=ee(e.v),n=jt(e.h,r,i),o=!0,s="hsv"):z(e.h)&&z(e.s)&&z(e.l)&&(r=ee(e.s),l=ee(e.l),n=_t(e.h,r,l),o=!0,s="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(a=e.a)),a=Me(a),{ok:o,format:e.format||s,r:Math.min(255,Math.max(n.r,0)),g:Math.min(255,Math.max(n.g,0)),b:Math.min(255,Math.max(n.b,0)),a}}var Kt="[-\\+]?\\d+%?",Zt="[-\\+]?\\d*\\.\\d+%?",P="(?:".concat(Zt,")|(?:").concat(Kt,")"),oe="[\\s|\\(]+(".concat(P,")[,|\\s]+(").concat(P,")[,|\\s]+(").concat(P,")\\s*\\)?"),le="[\\s|\\(]+(".concat(P,")[,|\\s]+(").concat(P,")[,|\\s]+(").concat(P,")[,|\\s]+(").concat(P,")\\s*\\)?"),$={CSS_UNIT:new RegExp(P),rgb:new RegExp("rgb"+oe),rgba:new RegExp("rgba"+le),hsl:new RegExp("hsl"+oe),hsla:new RegExp("hsla"+le),hsv:new RegExp("hsv"+oe),hsva:new RegExp("hsva"+le),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 Yt(e){if(e=e.trim().toLowerCase(),e.length===0)return!1;var n=!1;if(ie[e])e=ie[e],n=!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:R(a[1]),g:R(a[2]),b:R(a[3]),a:Ie(a[4]),format:n?"name":"hex8"}:(a=$.hex6.exec(e),a?{r:R(a[1]),g:R(a[2]),b:R(a[3]),format:n?"name":"hex"}:(a=$.hex4.exec(e),a?{r:R(a[1]+a[1]),g:R(a[2]+a[2]),b:R(a[3]+a[3]),a:Ie(a[4]+a[4]),format:n?"name":"hex8"}:(a=$.hex3.exec(e),a?{r:R(a[1]+a[1]),g:R(a[2]+a[2]),b:R(a[3]+a[3]),format:n?"name":"hex"}:!1)))))))))}function z(e){return!!$.CSS_UNIT.exec(String(e))}var H=(function(){function e(n,a){n===void 0&&(n=""),a===void 0&&(a={});var r;if(n instanceof e)return n;typeof n=="number"&&(n=qt(n)),this.originalInput=n;var i=Xt(n);this.originalInput=n,this.r=i.r,this.g=i.g,this.b=i.b,this.a=i.a,this.roundA=Math.round(100*this.a)/100,this.format=(r=a.format)!==null&&r!==void 0?r:i.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=i.ok}return e.prototype.isDark=function(){return this.getBrightness()<128},e.prototype.isLight=function(){return!this.isDark()},e.prototype.getBrightness=function(){var n=this.toRgb();return(n.r*299+n.g*587+n.b*114)/1e3},e.prototype.getLuminance=function(){var n=this.toRgb(),a,r,i,l=n.r/255,o=n.g/255,s=n.b/255;return l<=.03928?a=l/12.92:a=Math.pow((l+.055)/1.055,2.4),o<=.03928?r=o/12.92:r=Math.pow((o+.055)/1.055,2.4),s<=.03928?i=s/12.92:i=Math.pow((s+.055)/1.055,2.4),.2126*a+.7152*r+.0722*i},e.prototype.getAlpha=function(){return this.a},e.prototype.setAlpha=function(n){return this.a=Me(n),this.roundA=Math.round(100*this.a)/100,this},e.prototype.isMonochrome=function(){var n=this.toHsl().s;return n===0},e.prototype.toHsv=function(){var n=ke(this.r,this.g,this.b);return{h:n.h*360,s:n.s,v:n.v,a:this.a}},e.prototype.toHsvString=function(){var n=ke(this.r,this.g,this.b),a=Math.round(n.h*360),r=Math.round(n.s*100),i=Math.round(n.v*100);return this.a===1?"hsv(".concat(a,", ").concat(r,"%, ").concat(i,"%)"):"hsva(".concat(a,", ").concat(r,"%, ").concat(i,"%, ").concat(this.roundA,")")},e.prototype.toHsl=function(){var n=Te(this.r,this.g,this.b);return{h:n.h*360,s:n.s,l:n.l,a:this.a}},e.prototype.toHslString=function(){var n=Te(this.r,this.g,this.b),a=Math.round(n.h*360),r=Math.round(n.s*100),i=Math.round(n.l*100);return this.a===1?"hsl(".concat(a,", ").concat(r,"%, ").concat(i,"%)"):"hsla(".concat(a,", ").concat(r,"%, ").concat(i,"%, ").concat(this.roundA,")")},e.prototype.toHex=function(n){return n===void 0&&(n=!1),Ae(this.r,this.g,this.b,n)},e.prototype.toHexString=function(n){return n===void 0&&(n=!1),"#"+this.toHex(n)},e.prototype.toHex8=function(n){return n===void 0&&(n=!1),Wt(this.r,this.g,this.b,this.a,n)},e.prototype.toHex8String=function(n){return n===void 0&&(n=!1),"#"+this.toHex8(n)},e.prototype.toHexShortString=function(n){return n===void 0&&(n=!1),this.a===1?this.toHexString(n):this.toHex8String(n)},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 n=Math.round(this.r),a=Math.round(this.g),r=Math.round(this.b);return this.a===1?"rgb(".concat(n,", ").concat(a,", ").concat(r,")"):"rgba(".concat(n,", ").concat(a,", ").concat(r,", ").concat(this.roundA,")")},e.prototype.toPercentageRgb=function(){var n=function(a){return"".concat(Math.round(T(a,255)*100),"%")};return{r:n(this.r),g:n(this.g),b:n(this.b),a:this.a}},e.prototype.toPercentageRgbString=function(){var n=function(a){return Math.round(T(a,255)*100)};return this.a===1?"rgb(".concat(n(this.r),"%, ").concat(n(this.g),"%, ").concat(n(this.b),"%)"):"rgba(".concat(n(this.r),"%, ").concat(n(this.g),"%, ").concat(n(this.b),"%, ").concat(this.roundA,")")},e.prototype.toName=function(){if(this.a===0)return"transparent";if(this.a<1)return!1;for(var n="#"+Ae(this.r,this.g,this.b,!1),a=0,r=Object.entries(ie);a<r.length;a++){var i=r[a],l=i[0],o=i[1];if(n===o)return l}return!1},e.prototype.toString=function(n){var a=!!n;n=n??this.format;var r=!1,i=this.a<1&&this.a>=0,l=!a&&i&&(n.startsWith("hex")||n==="name");return l?n==="name"&&this.a===0?this.toName():this.toRgbString():(n==="rgb"&&(r=this.toRgbString()),n==="prgb"&&(r=this.toPercentageRgbString()),(n==="hex"||n==="hex6")&&(r=this.toHexString()),n==="hex3"&&(r=this.toHexString(!0)),n==="hex4"&&(r=this.toHex8String(!0)),n==="hex8"&&(r=this.toHex8String()),n==="name"&&(r=this.toName()),n==="hsl"&&(r=this.toHslString()),n==="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(n){n===void 0&&(n=10);var a=this.toHsl();return a.l+=n/100,a.l=U(a.l),new e(a)},e.prototype.brighten=function(n){n===void 0&&(n=10);var a=this.toRgb();return a.r=Math.max(0,Math.min(255,a.r-Math.round(255*-(n/100)))),a.g=Math.max(0,Math.min(255,a.g-Math.round(255*-(n/100)))),a.b=Math.max(0,Math.min(255,a.b-Math.round(255*-(n/100)))),new e(a)},e.prototype.darken=function(n){n===void 0&&(n=10);var a=this.toHsl();return a.l-=n/100,a.l=U(a.l),new e(a)},e.prototype.tint=function(n){return n===void 0&&(n=10),this.mix("white",n)},e.prototype.shade=function(n){return n===void 0&&(n=10),this.mix("black",n)},e.prototype.desaturate=function(n){n===void 0&&(n=10);var a=this.toHsl();return a.s-=n/100,a.s=U(a.s),new e(a)},e.prototype.saturate=function(n){n===void 0&&(n=10);var a=this.toHsl();return a.s+=n/100,a.s=U(a.s),new e(a)},e.prototype.greyscale=function(){return this.desaturate(100)},e.prototype.spin=function(n){var a=this.toHsl(),r=(a.h+n)%360;return a.h=r<0?360+r:r,new e(a)},e.prototype.mix=function(n,a){a===void 0&&(a=50);var r=this.toRgb(),i=new e(n).toRgb(),l=a/100,o={r:(i.r-r.r)*l+r.r,g:(i.g-r.g)*l+r.g,b:(i.b-r.b)*l+r.b,a:(i.a-r.a)*l+r.a};return new e(o)},e.prototype.analogous=function(n,a){n===void 0&&(n=6),a===void 0&&(a=30);var r=this.toHsl(),i=360/a,l=[this];for(r.h=(r.h-(i*n>>1)+720)%360;--n;)r.h=(r.h+i)%360,l.push(new e(r));return l},e.prototype.complement=function(){var n=this.toHsl();return n.h=(n.h+180)%360,new e(n)},e.prototype.monochromatic=function(n){n===void 0&&(n=6);for(var a=this.toHsv(),r=a.h,i=a.s,l=a.v,o=[],s=1/n;n--;)o.push(new e({h:r,s:i,v:l})),l=(l+s)%1;return o},e.prototype.splitcomplement=function(){var n=this.toHsl(),a=n.h;return[this,new e({h:(a+72)%360,s:n.s,l:n.l}),new e({h:(a+216)%360,s:n.s,l:n.l})]},e.prototype.onBackground=function(n){var a=this.toRgb(),r=new e(n).toRgb(),i=a.a+r.a*(1-a.a);return new e({r:(a.r*a.a+r.r*r.a*(1-a.a))/i,g:(a.g*a.a+r.g*r.a*(1-a.a))/i,b:(a.b*a.a+r.b*r.a*(1-a.a))/i,a:i})},e.prototype.triad=function(){return this.polyad(3)},e.prototype.tetrad=function(){return this.polyad(4)},e.prototype.polyad=function(n){for(var a=this.toHsl(),r=a.h,i=[this],l=360/n,o=1;o<n;o++)i.push(new e({h:(r+o*l)%360,s:a.s,l:a.l}));return i},e.prototype.equals=function(n){return this.toRgbString()===new e(n).toRgbString()},e})();const Re=new x.Keyframe("toConic",{"0%":{backgroundPosition:"0 0"},"100%":{backgroundPosition:"100% 50%"}}),Qt=new x.Keyframe("dockIconText",{"0%":{display:"none",opacity:0},"80%":{overflow:"hidden"},"100%":{display:"unset",opacity:1}}),Jt=new x.Keyframe("dockZoomIn",{"0%":{transform:"translateX(-50%) scale(0)",opacity:0},"100%":{transform:"translateX(-50%) scale(1)",opacity:1}}),Ut=new x.Keyframe("dockZoomOut",{"0%":{transform:"translateX(-50%) scale(1)"},"100%":{transform:"translateX(-50%) scale(0)",opacity:0}}),Be=e=>e===0?0:e-Math.sqrt(e**2/2),en=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 ${x.unit(e.lineWidth)} ${e.colorBorderBg}`,top:Be(e.controlHeightLG/2),insetInlineEnd:Be(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}}}}),tn=e=>{const n=new H(new H("rgb(0, 0, 0)").setAlpha(.06).toRgbString()),a=new H(new H(e.colorBgBase).setAlpha(.6).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,backgroundColor:a.toRgbString(),borderRadius:e.controlHeight,backdropFilter:"blur(10px)","&-zoom-appear, &-zoom-enter":{animationName:Jt,opacity:0,animationTimingFunction:e.motionEaseOutCirc,animationFillMode:"both",transform:"none",animationDuration:e.motionDurationMid,userSelect:"none"},"&-zoom-enter-active":{animationPlayState:"running"},"&-zoom-leave":{animationName:Ut,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseInOutCirc,animationFillMode:"both"},"&-btn":{height:e.controlHeightLG,color:e.colorText,borderRadius:e.controlHeight,padding:1,background:`linear-gradient(135deg,${n},${n},${n},#006cfc,#05c4f4,#7ee94c)`,backgroundSize:"400%","&:hover":{animationTimingFunction:"cubic-bezier(.38,0,.24,1)",animationDuration:"0.5s",animationFillMode:"forwards",animationName:Re},"&-active":{animationTimingFunction:"cubic-bezier(.38,0,.24,1)",animationDuration:"0.5s",animationFillMode:"forwards",animationName:Re}},"&-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:Qt,animationDuration:".4s",animationTimingFunction:"ease"}}}}}},nn=e=>{const{dark:n}=S.getTokenLayoutTheme(e),a=`${e.componentCls}-drawer`,r=new H(new H(e.colorWhite).setAlpha(.55).toRgbString());return{[a]:{"&-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:n?e.colorBgBase:void 0,[`${e.antCls}-segmented-item-selected`]:{backgroundColor:n?"#1f1f1f":void 0}}},"&-card":{display:"flex",flexDirection:"column",borderRadius:e.borderRadiusLG,minHeight:`calc(100vh - ${e.padding}px)`,[`${a}-card-content`]:{flex:1,borderRadius:e.borderRadiusLG,backgroundColor:S.getProSolidColor(e,e.colorBgContainer),padding:e.padding}},"&-card-header":{borderRadius:e.borderRadiusLG,backgroundColor:e.colorPrimary,paddingBlock:e.paddingXS,paddingInline:e.padding-4,marginBlockEnd:e.marginXS,"&-title":{color:e.colorWhite,fontSize:e.fontSizeXL,lineHeight:e.lineHeight,marginBlockEnd:e.marginXS,fontWeight:e.fontWeightStrong},"&-subtitle":{color:r.toString()}},"&-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:"0 1px 2.5px rgba(0,0,0,.18)",cursor:"pointer",fontSize:56,lineHeight:"56px","&::before":{position:"absolute",insetBlockStart:0,insetInlineStart:0,width:"33%",height:"100%",content:"''"},"&::after":{position:"absolute",insetBlockStart:0,insetInlineStart:0,width:"100%",height:"25%",content:"''"},"&-dark":{backgroundColor:"rgba(0, 21, 41, 0.85)","&::before":{backgroundColor:"rgba(0, 0, 0, 0.65)"},"&::after":{backgroundColor:"rgba(0, 0, 0, 0.85)"}},"&-light":{backgroundColor:"#f7f8fa","&::before":{backgroundColor:"#fff"},"&::after":{backgroundColor:"#fff"}},"&-realDark":{backgroundColor:"rgba(0, 21, 41, 0.85)","&::before":{backgroundColor:"rgba(0, 0, 0, 0.65)"},"&::after":{backgroundColor:"rgba(0, 0, 0, 0.85)"}},"&-dark,&-side":{backgroundColor:"#f7f8fa","&::before":{zIndex:"1",backgroundColor:"#001529"},"&::after":{backgroundColor:"#fff"}},"&-wide":{backgroundColor:"#f7f8fa","&::before":{backgroundColor:"#fff",left:"15%",width:"15%",height:"calc(100% - 38%)",top:"38%"},"&::after":{backgroundColor:"#fff"},"&-content":{position:"absolute",height:"calc(100% - 38%)",top:"38%",right:"15%",width:"calc(100% - 15% - 15% - 10% - 15%)",backgroundColor:"#fff"}},"&-simple":{backgroundColor:"#f7f8fa","&::before":{backgroundColor:"#fff"},"&::after":{display:"none"}},"&-mix":{backgroundColor:"#f7f8fa","&::before":{backgroundColor:"#fff"},"&::after":{backgroundColor:"#001529"}},"&-top":{backgroundColor:"#f7f8fa","&::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}}}}},an=e=>{const n=`${e.componentCls}-drawer`,a=new H(new H(e.colorWhite).setAlpha(.55).toRgbString());return{[n]:{"&-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:S.getProSolidColor(e,e.colorBgContainer),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}}}}}}};function rn(e){const n=["showTabsBar","fixedMultiTab","fixSiderbar","fixedHeader","splitMenus"];let r=Object.keys(e).reduce((i,l)=>(i[l]=!1,i),{});return r=L.pick(r,n),e.layout==="mix"&&(r.fixSiderbar=!0,r.fixedHeader=!0),e.layout==="top"&&(r.fixSiderbar=!0,r.splitMenus=!0),e.layout==="side"&&(r.splitMenus=!0),e.layout==="simple"&&(r.splitMenus=!0,r.fixedHeader=!0,r.showTabsBar=!0,r.fixedTabsBar=!0),e.layout==="wide"&&(r.splitMenus=!0,r.fixedHeader=!0,r.fixSiderbar=!0,r.showTabsBar=!0,r.fixedTabsBar=!0),r}function se(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 X=(e,{slots:n})=>t.createVNode("div",{style:{marginBottom:"24px"}},[t.createVNode("h3",{class:`${e.prefixCls}-body-title ${e.hashId}`.trim()},[e.title]),n.default?.()]),on=t.defineComponent({name:"ThemeEditor",inheritAttrs:!1,props:Ve,emits:["update:open","change","changeSettingState","changeThemeState"],setup(e){const a=d.getPrefixCls({suffixCls:"theme-setting",isPor:!0}),r=d.getPrefixCls({suffixCls:"theme-editor",isPor:!0}),{wrapSSR:i,hashId:l}=x.useProStyle("ProThemeEditor",[nn,en,tn,an],r),o=k.useLocalStorage(a,{}),s=S.useProLayoutContext(),[c,u]=I.useState(!0),[f,p]=I.useState(!1),[w,O]=I.useState("setting");Object.keys(o.value).length&&e.onChangeSettingState?.(se({...t.toRaw(o.value)}));const B=t.computed(()=>({progress:!!e.extraSettingState?.progress,colorWeak:!!e.extraSettingState?.colorWeak})),A=t.computed(()=>rn({...t.toRaw(s.settings.value),...t.toRaw(B.value)}));t.watch(()=>e.open,y=>{y&&(w.value==="theme"?p(y):u(y))}),t.watch([()=>c.value,()=>f.value],()=>{e.onChange&&e.onChange(c.value||f.value),e?.["onUpdate:open"]?.(c.value||f.value)});const{dark:v,isDark:h,toggleMode:g}=S.useDarkTheme(t.computed(()=>s?.dark?.value),{change:y=>{s?.onDarkChange?.(y)}});function C(y){p(!y),u(y)}function F(y){p(y),u(!y)}const K=(y,M)=>S.toggleLayoutTheme({event:y,isDark:h,toggle:g,value:M}),V=y=>{K(null,y==="system"?y:y==="dark")};function j(y){e.onChangeSettingState?.(y),t.nextTick(()=>{s&&(o.value=se(d.deepMerge(L.cloneDeep(o.value),{...t.toRaw(s.settings.value),...t.toRaw(B.value)})))})}function E(y){e.onChangeSettingState?.(y),t.nextTick(()=>{s&&(o.value=se(d.deepMerge(L.cloneDeep(o.value),{...t.toRaw(s.settings.value),...t.toRaw(B.value),...t.toRaw(y)})))})}return()=>{const y=`${r}-drawer`;return i(t.createVNode("div",{class:d.classNames(l.value,r)},[t.createVNode(Lt,{hashId:l.value,prefixCls:r,type:w.value,open:c.value||f.value,onTypeChange:M=>{O(M),M==="setting"?C(!0):M==="theme"&&F(!0)},onOpenChange:M=>{w.value==="setting"?C(M):w.value==="theme"&&F(M)},onClose:()=>{u(!1),p(!1)}},null),t.createVNode(Ot,t.mergeProps({width:348,dark:v.value,open:c.value,prefixCls:y,hashId:l.value,disabled:A.value},L.pick(e,Bt),{onChangeDark:V,onChangeConfig:j,onOpenChange:M=>u(!!M),onChangeExtraConfig:E}),null),t.createVNode(Et,{width:348,open:f.value,prefixCls:y,hashId:l.value,onChange:M=>e.onChangeThemeState?.(M),onOpenChange:M=>p(!!M)},null)]))}}});D.locale("zh-cn");function ln(){const e=t.reactive({hh:"",mm:"",ss:"",dddd:"",day:"",a:""});function n(){e.hh=D().format("HH"),e.mm=D().format("mm"),e.ss=D().format("ss"),e.a=D().format("a").toUpperCase(),e.day=D().format("YYYY-MM-DD"),e.dddd=D().format("dddd"),requestAnimationFrame(n)}return requestAnimationFrame(n),e}const sn=Ne(),Oe={hashId:String,className:String},Fe={open:{type:Boolean,default:void 0},onOpenChange:Function,"onUpdate:open":Function,cryptoFn:Function,...L.pick(sn,["name","avatar"])},cn={...Fe,shortsKey:{type:Object,default:()=>({disabled:!1})}};function dn(e){const n=t.reactive({password:""}),{validate:a,resetFields:r,validateInfos:i}=x.useProForm(n,{password:[{validator:(l,o)=>(e&&o?e?.(o):o)?Promise.resolve():Promise.reject(e&&o?"密码错误":"请输入锁屏密码")}]});return{formState:n,validate:a,resetFields:r,validateInfos:i}}const $e=t.defineComponent({props:{...Oe,name:String,avatar:String,avatarSize:{type:Number,default:60},submitText:String,validator:Function,onSubmit:Function},setup(e,{expose:n,slots:a}){const{formState:r,validate:i,validateInfos:l,resetFields:o}=dn(e.validator),s=f=>{Object.assign(r,f)},c=(f="",p)=>{const w=f?`${e.className}-${f}`:e.className;return d.classNames(w,e.hashId,"")},u=()=>{i().then(()=>{e.onSubmit?.(r)}).catch(()=>{})};return n({formState:r,resetFields:o,merageFormState:s}),()=>t.createVNode("div",{class:c("user-form")},[t.createVNode("div",{class:c("user-info")},[t.createVNode(m.Avatar,{size:e.avatarSize,icon:t.createVNode(b.UserOutlined,null,null),src:e.avatar},null),e.name&&t.createVNode("div",{class:c("user-name")},[e.name])]),t.createVNode(m.Form,null,{default:()=>[t.createVNode(m.Form.Item,l.password,{default:()=>[t.createVNode(m.Input.Password,{value:r.password,placeholder:"请输入锁屏密码",onChange:f=>r.password=f.target.value},null)]})]}),t.createVNode(m.Button,{block:!0,type:"primary",onClick:()=>u(),style:{marginBlockStart:"24px"}},{default:()=>[e.submitText]}),a.default?.()])}}),un=t.defineComponent({name:"PageLockPopup",props:{...Oe,...Fe,password:String},setup(e){const[n,a]=I.useMergedState(!1,{value:t.computed(()=>d.isBoolean(e.open)?e.open:!1),onChange:e.onOpenChange}),[r,i]=I.useState(!1),l=ln(),o=(s="",c)=>{const u=s?`${e.className}-popup-${s}`:`${e.className}-popup`;return d.classNames(u,e.hashId,c||"")};return()=>n.value?t.createVNode("div",{class:o()},[r.value?t.createVNode("div",{class:o("form")},[t.createVNode($e,{avatarSize:70,submitText:"进入系统",avatar:e.avatar,hashId:e.hashId,className:e.className,validator:s=>e.cryptoFn?.(s)===e.password,onSubmit:()=>a(!1)},{default:()=>[t.createVNode(m.Button,{style:{marginBlockStart:"16px"},type:"text",block:!0,onClick:()=>i(!1)},{default:()=>[t.createTextVNode("返回")]})]}),t.createVNode("div",{class:o("form-time")},[t.createVNode("span",{style:{fontSize:"26px"}},[`${l.hh}:${l.mm}`,t.createTextVNode(" "),l.a]),t.createVNode("span",{style:{fontSize:"30px"}},[l.day,t.createTextVNode(" "),l.dddd])])]):t.createVNode(t.Fragment,null,[t.createVNode("div",{class:o("head")},[t.createVNode("span",null,[l.day,t.createTextVNode(" "),l.dddd]),t.createVNode("span",{class:o("lock-icon"),onClick:()=>i(!0)},[t.createVNode(b.LockOutlined,{style:{position:"relative",top:"1px",marginInlineEnd:"4px"}},null),t.createTextVNode("点击解锁")])]),t.createVNode("div",{class:o("time",o("enter","fadeIn"))},[t.createVNode("div",{class:o("time-card")},[l.hh,t.createVNode("span",{class:o("time-range")},[l.a])]),t.createVNode("div",{class:o("time-card")},[l.mm])])])]):null}}),hn=new x.Keyframe("fadeIn",{from:{opacity:0},to:{opacity:1}}),fn=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",zIndex:2200,width:"100%",height:"100%","&-enter":{animationDuration:".3s",animationFillMode:"both",animationName:hn},"&-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"}}}}}),gn=Object.freeze(Object.defineProperty({__proto__:null,default:t.defineComponent({name:"PageLock",props:cn,emits:["update:open","openChange"],setup(e){const n=d.getPrefixCls({suffixCls:"page-lock",isPor:!0}),{wrapSSR:a,hashId:r}=x.useProStyle("ProPageLock",[fn],n),i=k.useLocalStorage(n,{open:!1,password:""}),[l,o,s]=I.useMergedState(!1,{value:t.computed(()=>e.open),onChange:g=>{e.onOpenChange?.(g),e["onUpdate:open"]?.(g)}}),[c,u]=I.useState(!1),f=t.ref();function p(g){return e.cryptoFn?e.cryptoFn(g):g}function w(g){i.value.open=c.value,i.value.password=p(g)}const O=t.computed(()=>e.shortsKey),B=t.computed(()=>i.value.open&&!!i.value.password),A=k.useMagicKeys();k.whenever(A["Alt+KeyL"],()=>{O.value?.disabled||s.value||o(!0)}),t.watch(c,g=>{w(g&&(f.value?.formState?.password||i.value.password)||"")}),t.onMounted(()=>{B.value?u(!0):w("")});const v=()=>{o(!1),u(!0)},h=()=>{o(!1),w(""),f.value?.resetFields()};return()=>a(t.createVNode(t.Fragment,null,[t.createVNode(un,t.mergeProps(L.pick(e,["name","avatar"]),{open:c.value,hashId:r.value,className:n,password:i.value.password,cryptoFn:p,onOpenChange:u}),null),t.createVNode(ce.GProModal,{width:400,type:"normal",title:"锁定屏幕",open:s.value,footer:!1,onCancel:h},{default:()=>[t.createVNode($e,t.mergeProps({ref:f},L.pick(e,["name","avatar"]),{submitText:"锁定",hashId:r.value,className:n,onSubmit:v}),null)]})]))}})},Symbol.toStringTag,{value:"Module"}));N.GAppsLogoComponents=vt,N.GProThemeEditor=on,N.GRightContent=pt,Object.defineProperty(N,Symbol.toStringTag,{value:"Module"})}));
|
|
12
|
+
(function(N,t){typeof exports=="object"&&typeof module<"u"?t(exports,require("vue"),require("@ant-design/icons-vue"),require("@gx-design-vue/pro-hooks"),require("@gx-design-vue/pro-layout"),require("@gx-design-vue/pro-provider"),require("@gx-design-vue/pro-utils"),require("@vueuse/core"),require("ant-design-vue"),require("@gx-design-vue/pro-modal"),require("vue-router"),require("ant-design-vue/es/theme/themes/dark/colorAlgorithm"),require("lodash-es"),require("@gx-design-vue/scrollbar"),require("@gx-design-vue/color-picker"),require("dayjs"),require("dayjs/locale/zh-cn")):typeof define=="function"&&define.amd?define(["exports","vue","@ant-design/icons-vue","@gx-design-vue/pro-hooks","@gx-design-vue/pro-layout","@gx-design-vue/pro-provider","@gx-design-vue/pro-utils","@vueuse/core","ant-design-vue","@gx-design-vue/pro-modal","vue-router","ant-design-vue/es/theme/themes/dark/colorAlgorithm","lodash-es","@gx-design-vue/scrollbar","@gx-design-vue/color-picker","dayjs","dayjs/locale/zh-cn"],t):(N=typeof globalThis<"u"?globalThis:N||self,t(N.proLayoutComponents={},N.vue,N.Icon,N.proHooks,N.proLayout,N.proProvider,N.proUtils,N.core,N.antDesignVue,N.proModal,N.vueRouter,N.colorAlgorithm,N.lodashEs,N.scrollbar,N.colorPicker,N.dayjs))})(this,(function(N,t,y,I,T,m,d,k,p,ce,ze,te,L,de,ue,D){"use strict";function q(){return q=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var a=arguments[n];for(var r in a)({}).hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e},q.apply(null,arguments)}var he=(function(){if(typeof Map<"u")return Map;function e(n,a){var r=-1;return n.some(function(i,l){return i[0]===a?(r=l,!0):!1}),r}return(function(){function n(){this.__entries__=[]}return Object.defineProperty(n.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),n.prototype.get=function(a){var r=e(this.__entries__,a),i=this.__entries__[r];return i&&i[1]},n.prototype.set=function(a,r){var i=e(this.__entries__,a);~i?this.__entries__[i][1]=r:this.__entries__.push([a,r])},n.prototype.delete=function(a){var r=this.__entries__,i=e(r,a);~i&&r.splice(i,1)},n.prototype.has=function(a){return!!~e(this.__entries__,a)},n.prototype.clear=function(){this.__entries__.splice(0)},n.prototype.forEach=function(a,r){r===void 0&&(r=null);for(var i=0,l=this.__entries__;i<l.length;i++){var o=l[i];a.call(r,o[1],o[0])}},n})()})(),ne=typeof window<"u"&&typeof document<"u"&&window.document===document,Z=(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")()})(),Ee=(function(){return typeof requestAnimationFrame=="function"?requestAnimationFrame.bind(Z):function(e){return setTimeout(function(){return e(Date.now())},1e3/60)}})(),Le=2;function Pe(e,n){var a=!1,r=!1,i=0;function l(){a&&(a=!1,e()),r&&s()}function o(){Ee(l)}function s(){var c=Date.now();if(a){if(c-i<Le)return;r=!0}else a=!0,r=!1,setTimeout(o,n);i=c}return s}var He=20,De=["top","right","bottom","left","width","height","size","weight"],_e=typeof MutationObserver<"u",je=(function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=Pe(this.refresh.bind(this),He)}return e.prototype.addObserver=function(n){~this.observers_.indexOf(n)||this.observers_.push(n),this.connected_||this.connect_()},e.prototype.removeObserver=function(n){var a=this.observers_,r=a.indexOf(n);~r&&a.splice(r,1),!a.length&&this.connected_&&this.disconnect_()},e.prototype.refresh=function(){var n=this.updateObservers_();n&&this.refresh()},e.prototype.updateObservers_=function(){var n=this.observers_.filter(function(a){return a.gatherActive(),a.hasActive()});return n.forEach(function(a){return a.broadcastActive()}),n.length>0},e.prototype.connect_=function(){!ne||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),_e?(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(){!ne||!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(n){var a=n.propertyName,r=a===void 0?"":a,i=De.some(function(l){return!!~r.indexOf(l)});i&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e})(),fe=(function(e,n){for(var a=0,r=Object.keys(n);a<r.length;a++){var i=r[a];Object.defineProperty(e,i,{value:n[i],enumerable:!1,writable:!1,configurable:!0})}return e}),W=(function(e){var n=e&&e.ownerDocument&&e.ownerDocument.defaultView;return n||Z}),ge=Q(0,0,0,0);function Y(e){return parseFloat(e)||0}function me(e){for(var n=[],a=1;a<arguments.length;a++)n[a-1]=arguments[a];return n.reduce(function(r,i){var l=e["border-"+i+"-width"];return r+Y(l)},0)}function We(e){for(var n=["top","right","bottom","left"],a={},r=0,i=n;r<i.length;r++){var l=i[r],o=e["padding-"+l];a[l]=Y(o)}return a}function Ge(e){var n=e.getBBox();return Q(0,0,n.width,n.height)}function qe(e){var n=e.clientWidth,a=e.clientHeight;if(!n&&!a)return ge;var r=W(e).getComputedStyle(e),i=We(r),l=i.left+i.right,o=i.top+i.bottom,s=Y(r.width),c=Y(r.height);if(r.boxSizing==="border-box"&&(Math.round(s+l)!==n&&(s-=me(r,"left","right")+l),Math.round(c+o)!==a&&(c-=me(r,"top","bottom")+o)),!Ke(e)){var u=Math.round(s+l)-n,f=Math.round(c+o)-a;Math.abs(u)!==1&&(s-=u),Math.abs(f)!==1&&(c-=f)}return Q(i.left,i.top,s,c)}var Xe=(function(){return typeof SVGGraphicsElement<"u"?function(e){return e instanceof W(e).SVGGraphicsElement}:function(e){return e instanceof W(e).SVGElement&&typeof e.getBBox=="function"}})();function Ke(e){return e===W(e).document.documentElement}function Ze(e){return ne?Xe(e)?Ge(e):qe(e):ge}function Ye(e){var n=e.x,a=e.y,r=e.width,i=e.height,l=typeof DOMRectReadOnly<"u"?DOMRectReadOnly:Object,o=Object.create(l.prototype);return fe(o,{x:n,y:a,width:r,height:i,top:a,right:n+r,bottom:i+a,left:n}),o}function Q(e,n,a,r){return{x:e,y:n,width:a,height:r}}var Qe=(function(){function e(n){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=Q(0,0,0,0),this.target=n}return e.prototype.isActive=function(){var n=Ze(this.target);return this.contentRect_=n,n.width!==this.broadcastWidth||n.height!==this.broadcastHeight},e.prototype.broadcastRect=function(){var n=this.contentRect_;return this.broadcastWidth=n.width,this.broadcastHeight=n.height,n},e})(),Je=(function(){function e(n,a){var r=Ye(a);fe(this,{target:n,contentRect:r})}return e})(),Ue=(function(){function e(n,a,r){if(this.activeObservations_=[],this.observations_=new he,typeof n!="function")throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=n,this.controller_=a,this.callbackCtx_=r}return e.prototype.observe=function(n){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(n instanceof W(n).Element))throw new TypeError('parameter 1 is not of type "Element".');var a=this.observations_;a.has(n)||(a.set(n,new Qe(n)),this.controller_.addObserver(this),this.controller_.refresh())}},e.prototype.unobserve=function(n){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(n instanceof W(n).Element))throw new TypeError('parameter 1 is not of type "Element".');var a=this.observations_;a.has(n)&&(a.delete(n),a.size||this.controller_.removeObserver(this))}},e.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},e.prototype.gatherActive=function(){var n=this;this.clearActive(),this.observations_.forEach(function(a){a.isActive()&&n.activeObservations_.push(a)})},e.prototype.broadcastActive=function(){if(this.hasActive()){var n=this.callbackCtx_,a=this.activeObservations_.map(function(r){return new Je(r.target,r.broadcastRect())});this.callback_.call(n,a,n),this.clearActive()}},e.prototype.clearActive=function(){this.activeObservations_.splice(0)},e.prototype.hasActive=function(){return this.activeObservations_.length>0},e})(),pe=typeof WeakMap<"u"?new WeakMap:new he,be=(function(){function e(n){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=je.getInstance(),r=new Ue(n,a,this);pe.set(this,r)}return e})();["observe","unobserve","disconnect"].forEach(function(e){be.prototype[e]=function(){var n;return(n=pe.get(this))[e].apply(n,arguments)}});var et=(function(){return typeof Z.ResizeObserver<"u"?Z.ResizeObserver:be})();const tt=e=>{var n;let a=((n=e?.vnode)===null||n===void 0?void 0:n.el)||e&&(e.$el||e);for(;a&&!a.tagName;)a=a.nextSibling;return a},nt=t.defineComponent({compatConfig:{MODE:3},name:"ResizeObserver",props:{disabled:Boolean,onResize:Function},emits:["resize"],setup(e,n){let{slots:a}=n;const r=t.reactive({width:0,height:0,offsetHeight:0,offsetWidth:0});let i=null,l=null;const o=()=>{l&&(l.disconnect(),l=null)},s=f=>{const{onResize:b}=e,S=f[0].target,{width:O,height:B}=S.getBoundingClientRect(),{offsetWidth:A,offsetHeight:V}=S,h=Math.floor(O),g=Math.floor(B);if(r.width!==h||r.height!==g||r.offsetWidth!==A||r.offsetHeight!==V){const C={width:h,height:g,offsetWidth:A,offsetHeight:V};q(r,C),b&&Promise.resolve().then(()=>{b(q(q({},C),{offsetWidth:A,offsetHeight:V}),S)})}},c=t.getCurrentInstance(),u=()=>{const{disabled:f}=e;if(f){o();return}const b=tt(c);b!==i&&(o(),i=b),!l&&b&&(l=new et(s),l.observe(b))};return t.onMounted(()=>{u()}),t.onUpdated(()=>{u()}),t.onUnmounted(()=>{o()}),t.watch(()=>e.disabled,()=>{u()},{flush:"post"}),()=>{var f;return(f=a.default)===null||f===void 0?void 0:f.call(a)[0]}}});function at(e){return t.createVNode("svg",t.mergeProps({xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 16 16"},e),[t.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)])}function ye(e){return t.createVNode("svg",t.mergeProps({xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24"},e),[t.createVNode("g",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2"},[t.createVNode("path",{"stroke-dasharray":"2","stroke-dashoffset":"2",d:"M12 19v1M19 12h1M12 5v-1M5 12h-1"},[t.createVNode("animate",{fill:"freeze",attributeName:"d",begin:"0.6s",dur:"0.2s",values:"M12 19v1M19 12h1M12 5v-1M5 12h-1;M12 21v1M21 12h1M12 3v-1M3 12h-1"},null),t.createVNode("animate",{fill:"freeze",attributeName:"stroke-dashoffset",begin:"0.6s",dur:"0.2s",values:"2;0"},null)]),t.createVNode("path",{"stroke-dasharray":"2","stroke-dashoffset":"2",d:"M17 17l0.5 0.5M17 7l0.5 -0.5M7 7l-0.5 -0.5M7 17l-0.5 0.5"},[t.createVNode("animate",{fill:"freeze",attributeName:"d",begin:"0.8s",dur:"0.2s",values:"M17 17l0.5 0.5M17 7l0.5 -0.5M7 7l-0.5 -0.5M7 17l-0.5 0.5;M18.5 18.5l0.5 0.5M18.5 5.5l0.5 -0.5M5.5 5.5l-0.5 -0.5M5.5 18.5l-0.5 0.5"},null),t.createVNode("animate",{fill:"freeze",attributeName:"stroke-dashoffset",begin:"0.8s",dur:"0.2s",values:"2;0"},null)]),t.createVNode("animateTransform",{attributeName:"transform",dur:"30s",repeatCount:"indefinite",type:"rotate",values:"0 12 12;360 12 12"},null)]),t.createVNode("mask",{id:"lineMdMoonAltToSunnyOutlineLoopTransition0"},[t.createVNode("circle",{cx:"12",cy:"12",r:"12",fill:"#fff"},null),t.createVNode("circle",{cx:"12",cy:"12",r:"8"},[t.createVNode("animate",{fill:"freeze",attributeName:"r",dur:"0.4s",values:"8;4"},null)]),t.createVNode("circle",{cx:"18",cy:"6",r:"12",fill:"#fff"},[t.createVNode("animate",{fill:"freeze",attributeName:"cx",dur:"0.4s",values:"18;22"},null),t.createVNode("animate",{fill:"freeze",attributeName:"cy",dur:"0.4s",values:"6;2"},null),t.createVNode("animate",{fill:"freeze",attributeName:"r",dur:"0.4s",values:"12;3"},null)]),t.createVNode("circle",{cx:"18",cy:"6",r:"10"},[t.createVNode("animate",{fill:"freeze",attributeName:"cx",dur:"0.4s",values:"18;22"},null),t.createVNode("animate",{fill:"freeze",attributeName:"cy",dur:"0.4s",values:"6;2"},null),t.createVNode("animate",{fill:"freeze",attributeName:"r",dur:"0.4s",values:"10;1"},null)])]),t.createVNode("circle",{cx:"12",cy:"12",r:"10",mask:"url(#lineMdMoonAltToSunnyOutlineLoopTransition0)",fill:"currentColor"},[t.createVNode("animate",{fill:"freeze",attributeName:"r",dur:"0.4s",values:"10;6"},null)])])}function xe(e){return t.createVNode("svg",t.mergeProps({xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24"},e),[t.createVNode("g",{fill:"none",stroke:"currentColor","stroke-dasharray":"4","stroke-dashoffset":"4","stroke-linecap":"round","stroke-linejoin":"round"},[t.createVNode("path",{d:"M13 4h1.5M13 4h-1.5M13 4v1.5M13 4v-1.5"},[t.createVNode("animate",{id:"lineMdSunnyOutlineToMoonAltLoopTransition0",fill:"freeze",attributeName:"stroke-dashoffset",begin:"0.6s;lineMdSunnyOutlineToMoonAltLoopTransition0.begin+6s",dur:"0.4s",values:"4;0"},null),t.createVNode("animate",{fill:"freeze",attributeName:"stroke-dashoffset",begin:"lineMdSunnyOutlineToMoonAltLoopTransition0.begin+2s;lineMdSunnyOutlineToMoonAltLoopTransition0.begin+4s",dur:"0.4s",values:"4;0"},null),t.createVNode("animate",{fill:"freeze",attributeName:"stroke-dashoffset",begin:"lineMdSunnyOutlineToMoonAltLoopTransition0.begin+1.2s;lineMdSunnyOutlineToMoonAltLoopTransition0.begin+3.2s;lineMdSunnyOutlineToMoonAltLoopTransition0.begin+5.2s",dur:"0.4s",values:"0;4"},null),t.createVNode("set",{fill:"freeze",attributeName:"d",begin:"lineMdSunnyOutlineToMoonAltLoopTransition0.begin+1.8s",to:"M12 5h1.5M12 5h-1.5M12 5v1.5M12 5v-1.5"},null),t.createVNode("set",{fill:"freeze",attributeName:"d",begin:"lineMdSunnyOutlineToMoonAltLoopTransition0.begin+3.8s",to:"M12 4h1.5M12 4h-1.5M12 4v1.5M12 4v-1.5"},null),t.createVNode("set",{fill:"freeze",attributeName:"d",begin:"lineMdSunnyOutlineToMoonAltLoopTransition0.begin+5.8s",to:"M13 4h1.5M13 4h-1.5M13 4v1.5M13 4v-1.5"},null)]),t.createVNode("path",{d:"M19 11h1.5M19 11h-1.5M19 11v1.5M19 11v-1.5"},[t.createVNode("animate",{id:"lineMdSunnyOutlineToMoonAltLoopTransition1",fill:"freeze",attributeName:"stroke-dashoffset",begin:"1s;lineMdSunnyOutlineToMoonAltLoopTransition1.begin+6s",dur:"0.4s",values:"4;0"},null),t.createVNode("animate",{fill:"freeze",attributeName:"stroke-dashoffset",begin:"lineMdSunnyOutlineToMoonAltLoopTransition1.begin+2s;lineMdSunnyOutlineToMoonAltLoopTransition1.begin+4s",dur:"0.4s",values:"4;0"},null),t.createVNode("animate",{fill:"freeze",attributeName:"stroke-dashoffset",begin:"lineMdSunnyOutlineToMoonAltLoopTransition1.begin+1.2s;lineMdSunnyOutlineToMoonAltLoopTransition1.begin+3.2s;lineMdSunnyOutlineToMoonAltLoopTransition1.begin+5.2s",dur:"0.4s",values:"0;4"},null),t.createVNode("set",{fill:"freeze",attributeName:"d",begin:"lineMdSunnyOutlineToMoonAltLoopTransition1.begin+1.8s",to:"M17 11h1.5M17 11h-1.5M17 11v1.5M17 11v-1.5"},null),t.createVNode("set",{fill:"freeze",attributeName:"d",begin:"lineMdSunnyOutlineToMoonAltLoopTransition1.begin+3.8s",to:"M18 12h1.5M18 12h-1.5M18 12v1.5M18 12v-1.5"},null),t.createVNode("set",{fill:"freeze",attributeName:"d",begin:"lineMdSunnyOutlineToMoonAltLoopTransition1.begin+5.8s",to:"M19 11h1.5M19 11h-1.5M19 11v1.5M19 11v-1.5"},null)]),t.createVNode("path",{d:"M19 4h1.5M19 4h-1.5M19 4v1.5M19 4v-1.5"},[t.createVNode("animate",{id:"lineMdSunnyOutlineToMoonAltLoopTransition2",fill:"freeze",attributeName:"stroke-dashoffset",begin:"2.8s;lineMdSunnyOutlineToMoonAltLoopTransition2.begin+6s",dur:"0.4s",values:"4;0"},null),t.createVNode("animate",{fill:"freeze",attributeName:"stroke-dashoffset",begin:"lineMdSunnyOutlineToMoonAltLoopTransition2.begin+2s",dur:"0.4s",values:"4;0"},null),t.createVNode("animate",{fill:"freeze",attributeName:"stroke-dashoffset",begin:"lineMdSunnyOutlineToMoonAltLoopTransition2.begin+1.2s;lineMdSunnyOutlineToMoonAltLoopTransition2.begin+3.2s",dur:"0.4s",values:"0;4"},null),t.createVNode("set",{fill:"freeze",attributeName:"d",begin:"lineMdSunnyOutlineToMoonAltLoopTransition2.begin+1.8s",to:"M20 5h1.5M20 5h-1.5M20 5v1.5M20 5v-1.5"},null),t.createVNode("set",{fill:"freeze",attributeName:"d",begin:"lineMdSunnyOutlineToMoonAltLoopTransition2.begin+5.8s",to:"M19 4h1.5M19 4h-1.5M19 4v1.5M19 4v-1.5"},null)])]),t.createVNode("g",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2"},[t.createVNode("g",null,[t.createVNode("path",{"stroke-dasharray":"2","stroke-dashoffset":"4",d:"M12 21v1M21 12h1M12 3v-1M3 12h-1"},[t.createVNode("animate",{fill:"freeze",attributeName:"stroke-dashoffset",dur:"0.2s",values:"4;2"},null)]),t.createVNode("path",{"stroke-dasharray":"2","stroke-dashoffset":"4",d:"M18.5 18.5l0.5 0.5M18.5 5.5l0.5 -0.5M5.5 5.5l-0.5 -0.5M5.5 18.5l-0.5 0.5"},[t.createVNode("animate",{fill:"freeze",attributeName:"stroke-dashoffset",begin:"0.2s",dur:"0.2s",values:"4;2"},null)]),t.createVNode("set",{fill:"freeze",attributeName:"opacity",begin:"0.5s",to:"0"},null)]),t.createVNode("path",{d:"M7 6 C7 12.08 11.92 17 18 17 C18.53 17 19.05 16.96 19.56 16.89 C17.95 19.36 15.17 21 12 21 C7.03 21 3 16.97 3 12 C3 8.83 4.64 6.05 7.11 4.44 C7.04 4.95 7 5.47 7 6 Z",opacity:"0"},[t.createVNode("set",{fill:"freeze",attributeName:"opacity",begin:"0.5s",to:"1"},null)])]),t.createVNode("mask",{id:"lineMdSunnyOutlineToMoonAltLoopTransition3"},[t.createVNode("circle",{cx:"12",cy:"12",r:"12",fill:"#fff"},null),t.createVNode("circle",{cx:"12",cy:"12",r:"4"},[t.createVNode("animate",{fill:"freeze",attributeName:"r",begin:"0.1s",dur:"0.4s",values:"4;8"},null)]),t.createVNode("circle",{cx:"22",cy:"2",r:"3",fill:"#fff"},[t.createVNode("animate",{fill:"freeze",attributeName:"cx",begin:"0.1s",dur:"0.4s",values:"22;18"},null),t.createVNode("animate",{fill:"freeze",attributeName:"cy",begin:"0.1s",dur:"0.4s",values:"2;6"},null),t.createVNode("animate",{fill:"freeze",attributeName:"r",begin:"0.1s",dur:"0.4s",values:"3;12"},null)]),t.createVNode("circle",{cx:"22",cy:"2",r:"1"},[t.createVNode("animate",{fill:"freeze",attributeName:"cx",begin:"0.1s",dur:"0.4s",values:"22;18"},null),t.createVNode("animate",{fill:"freeze",attributeName:"cy",begin:"0.1s",dur:"0.4s",values:"2;6"},null),t.createVNode("animate",{fill:"freeze",attributeName:"r",begin:"0.1s",dur:"0.4s",values:"1;10"},null)])]),t.createVNode("circle",{cx:"12",cy:"12",r:"6",mask:"url(#lineMdSunnyOutlineToMoonAltLoopTransition3)",fill:"currentColor"},[t.createVNode("animate",{fill:"freeze",attributeName:"r",begin:"0.1s",dur:"0.4s",values:"6;10"},null),t.createVNode("set",{fill:"freeze",attributeName:"opacity",begin:"0.5s",to:"0"},null)])])}function rt(e){return t.createVNode("svg",t.mergeProps({xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24"},e),[t.createVNode("g",{fill:"none","fill-rule":"evenodd"},[t.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),t.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)])])}const ae={dataSource:{type:Array,default:()=>[]},historyKey:String},Ne=()=>({...T.darkThemeProps,...ae,actions:{type:Object,default:()=>({})},shortsKey:{type:Object,default:()=>({disabled:!1})},name:{type:String,default:"gx·design"},themeEditorOpen:{type:Boolean,default:!0},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,onClickSettings:Function});function it(e,n){const a=new Map;return e.filter(r=>{const i=r[n];return a.has(i)?!1:(a.set(i,r),!0)})}function ot(e){return e?/^https?:\/\/.*$/.test(e):!1}const lt=new Set(["$","(",")","*","+",".","?","[","\\","]","^","{","|","}"]),st=({className:e,value:n})=>n?t.createVNode(p.Empty,{image:p.Empty.PRESENTED_IMAGE_SIMPLE,description:`未找到搜索结果 "${n}"`},null):t.createVNode("div",{class:e},[t.createTextVNode("没有搜索历史")]),ct=t.defineComponent({props:{...ae,className:String,hashId:String,keyword:String,onClose:Function},setup(e){const n=ze.useRouter(),a=k.useLocalStorage(e.historyKey||d.getPrefixCls({suffixCls:"layout-search-history",isPor:!0}),[]),r=t.ref(0),i=t.ref([]),l=k.useThrottleFn(o,200);function o(h){if(h=h.trim(),!h){i.value=[];return}const g=b(h),C=[];e.dataSource.forEach(F=>{if(F.meta?.hideInMenu)return;const K=F.meta?.title||F.name||"";if(g.test(K.toLowerCase())){let w=[];const j=F?.key?.split("-")||[];for(let E=0;E<j.length;E++)w.push(j.slice(0,E+1).join("-"));w=w.map(E=>e.dataSource.find(x=>x?.key===E)?.meta?.title||""),C.push(d.merge(F,{meta:{title:w.join("**")}}))}}),i.value=C,C.length>0&&(r.value=0),r.value=0}t.watch(()=>e.keyword,h=>{h?l(h):i.value=[...a.value]});function s(){i.value=[],e.onClose?.()}function c(){const h=document.querySelector(`[data-search-item="${r.value}"]`);h&&h.scrollIntoView({block:"nearest"})}async function u(){if(i.value.length===0)return;const h=i.value,g=r.value;if(h.length===0||g<0)return;const C=h[g];C&&(a.value.push(C),s(),await t.nextTick(),ot(C.path)?window.open(C.path,"_blank"):n.push({path:C.path,replace:!0}))}function f(h){return lt.has(h)?`\\${h}`:h}function b(h){const g=[...h].map(C=>f(C)).join(".*");return new RegExp(`.*${g}.*`)}function S(){i.value.length!==0&&(r.value--,r.value<0&&(r.value=i.value.length-1),c())}function O(){i.value.length!==0&&(r.value++,r.value>i.value.length-1&&(r.value=0),c())}t.onMounted(()=>{a.value.length>0&&(i.value=a.value),k.onKeyStroke("Enter",u),k.onKeyStroke("ArrowUp",S),k.onKeyStroke("ArrowDown",O)});function B(h){r.value=h}function A(h,g){h.stopPropagation(),e.keyword?i.value.splice(g,1):a.value.splice(g,1),r.value=r.value-1>=0?r.value-1:0,c()}const V=h=>d.classNames(`${e.className}${h?`-${h}`:""}`,e.hashId);return()=>t.createVNode(t.Fragment,null,[i.value.length>0?t.createVNode(t.Fragment,null,[a.value.length>0&&!e.keyword&&t.createVNode("div",{class:V("panel-title")},[t.createTextVNode("搜索历史")]),t.createVNode("div",{class:V("panel-list")},[it(i.value,"path").map((h,g)=>t.createVNode("div",{key:h.name,class:V(d.classNames("panel-item",g===r.value&&"active")),"data-search-item":g,onClick:()=>u(),onMouseenter:()=>B(g)},[t.createVNode("div",{class:V("panel-item-left")},[t.createVNode(T.LazyIcon,t.mergeProps(h.meta||{},{icon:h.meta?.icon||t.createVNode(y.MenuOutlined,null,null),classNames:V("panel-icon")}),null),h.meta?.title?.split("**")?.map((C,F)=>t.createVNode(t.Fragment,null,[C,F<h.meta?.title?.split("**")?.length-1&&t.createVNode(y.ArrowRightOutlined,null,null)])),t.createVNode("span",null,null)]),t.createVNode(y.CloseOutlined,{onClick:C=>A(C,g)},null)]))])]):t.createVNode(st,{className:V("result"),value:e.keyword},null)])}}),dt=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:m.getProSolidColor(e,e.colorBgLayout),transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,">.anticon":{fontSize:e.fontSize,color:e.colorTextTertiary},"&-word":{lineHeight:e.lineHeight},"&-word-icon":{padding:"4px 6px",lineHeight:m.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.colorBgLayout,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 ut(e){return m.useStyle("SearchPageInput",n=>{const a=m.mergeToken(n,{});return[dt(a)]},e)}const ht=({className:e,hashId:n})=>t.createVNode("div",{class:d.classNames(`${e}-footer`,n)},[t.createVNode("div",{class:d.classNames(`${e}-footer-icon`,n)},[t.createVNode(y.EnterOutlined,null,null),t.createTextVNode("选择")]),t.createVNode("div",{class:d.classNames(`${e}-footer-icon`,n)},[t.createVNode(y.ArrowUpOutlined,null,null),t.createVNode(y.ArrowUpOutlined,{rotate:180},null),t.createTextVNode("导航")])]),ft=t.defineComponent({name:"SearchPageInput",props:{...ae,dark:{type:Boolean,default:void 0},disabledShortKey:{type:Boolean,default:!1}},setup(e){const n=d.getPrefixCls({suffixCls:"page-search",isPor:!0}),{wrapSSR:a,hashId:r}=ut(n),[i,l]=I.useState(""),[o,s]=I.useState(!1),c=T.useProLayoutContext(),u=k.useMagicKeys(),f=d.isWindowsOs()?u["ctrl+k"]:u["cmd+k"],b=t.ref(),S=t.computed(()=>d.getLevelData(e.dataSource?.length?e.dataSource:c?.menuProps?.value?.menuData));k.whenever(f,()=>{e.disabledShortKey||s(!0)}),k.whenever(o,()=>{t.nextTick(()=>{b.value?.focus()})});const O=()=>{s(!1),i.value=""};return()=>{const B={className:`${n}`,hashId:r.value},A=`${n}-modal`;return a(t.createVNode(t.Fragment,null,[t.createVNode("div",{class:d.classNames(n,r.value),onClick:()=>s(!0)},[t.createVNode(y.SearchOutlined,null,null),t.createVNode("span",{class:d.classNames(`${n}-word`,r.value)},[t.createTextVNode("搜索")]),t.createVNode("span",{class:d.classNames(`${n}-word-icon`,r.value)},[t.createTextVNode("⌘")," ",t.createVNode("kbd",null,[t.createTextVNode("K")])])]),t.createVNode(ce.GProModal,{class:d.classNames(`${A}`,r.value),width:600,scrollProps:{maxHeight:400,minHeight:200},centered:!1,title:t.createVNode(p.Input,{style:{width:`${600*.8}px`,padding:0},ref:b,bordered:!1,size:"large",placeholder:"搜索导航菜单",value:i.value,prefix:t.createVNode(y.SearchOutlined,null,null),onChange:V=>l(V.target.value)},null),open:o.value,footer:t.createVNode(ht,{className:A,hashId:r.value},null),onCancel:()=>O()},{default:()=>[t.createVNode(ct,t.mergeProps(B,{keyword:i.value,dataSource:S.value,onClose:()=>O()}),null)]})]))}}}),gt=e=>{const{dark:n}=T.getTokenLayoutTheme(e),a=T.checkMenuDark(e,"header");return{[`${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:n||a?e.colorWhite:e.colorTextTertiary,fontSize:"16px",cursor:"pointer",lineHeight:1,borderRadius:e.borderRadius,".anticon":{color:n||a?e.colorWhite:e.colorTextTertiary},[`${e.componentCls}-header-actions-icon`]:{fontSize:e.fontSizeXL},"> *":{paddingInline:6,paddingBlock:6,borderRadius:e.borderRadius,transition:`color ${e.motionDurationMid}, background-color ${e.motionDurationMid}`,"&:hover":{background:a?te.getAlphaColor("#fff",.12):e.colorBgTextHover}}},[`&>${e.antCls}-dropdown-trigger`]:{color:e.colorTextTertiary,paddingInline:8,paddingBlock:8,cursor:"pointer",display:"flex",alignItems:"center",height:44,lineHeight:m.unit(44),borderRadius:e.borderRadius,paddingInlineEnd:e.padding,"&:hover":{backgroundColor:m.setAlpha(e.colorTextBase,.03)}},"&-avatar":{display:"inline-flex",alignItems:"center",justifyContent:"center",gap:e.paddingXS,cursor:"pointer",color:e.colorTextTertiary,"> div":{color:n||a?e.colorWhite:e.colorTextTertiary}}}}}};function mt(e){return m.useStyle("RightContent",n=>{const a=m.mergeToken(n);return[gt(a)]},e)}const pt=t.defineComponent({name:"GlobalRightContent",props:Ne(),inheritAttrs:!1,emits:["logout","darkChange","clickSettings","update:dark","lockOpenChange"],slots:Object,setup(e,{slots:n}){const{isFullscreen:a,toggle:r}=k.useFullscreen(),i=m.useProConfigContext(),l=T.useProLayoutContext(),o=I.useMediaQuery(),s=d.getPrefixCls({suffixCls:"global-header",isPor:!0}),{wrapSSR:c,hashId:u}=mt(s),[f,b]=I.useState(!1),[S,O]=I.useState("auto"),{isDark:B,toggleMode:A}=T.useDarkTheme(t.computed(()=>T.hasDarkValue(e.dark)?e.dark:l?.dark?.value),{change:w=>{e.onDarkChange?.(w),e?.["onUpdate:dark"]?.(w),l?.onDarkChange?.(w)}}),V=t.computed(()=>d.isBoolean(l?.isMobile?.value)?l?.isMobile?.value:o.value==="sm"||o.value==="xs"),h=t.computed(()=>T.hasDarkValue(e.dark)?B.value:i?.dark?.value),g=t.computed(()=>e.actions===!1?{}:{...{lock:!0,theme:!0,search:!0,settings:!0,fullScreen:!0},...e.actions}),C=k.useDebounceFn(async w=>{O(w)},160),F=w=>{T.toggleLayoutTheme({event:w,isDark:h,toggle:A})};function K(w){d.isFunction(e.onClickSettings)&&e.onClickSettings?.(w)}return()=>{const w=d.getSlotsProps({slots:n,props:e,keys:["dropdownRender","dropdownMenuRender","dropdownMenuExtraItemRender"],render:!0}),j=d.getSlot({slots:n,props:e,key:"actionsRender"}),E=a.value?y.CompressOutlined:y.ExpandOutlined,x=g.value.lock?t.defineAsyncComponent(()=>Promise.resolve().then(()=>gn)):t.createVNode("div",null,null);return c(t.createVNode("div",{class:`${s}-right-content ${u.value}`.trim(),style:{minWidth:S.value,height:"100%"}},[t.createVNode("div",{style:{height:"100%"}},[t.createVNode(nt,{key:"resize-observer",onResize:({width:v})=>{C(v)}},{default:()=>[t.createVNode("div",{class:`${s}-header-actions ${u.value}`.trim()},[n.default?.()??t.createVNode(t.Fragment,null,[g.value.search&&!V.value&&t.createVNode(ft,{dataSource:e.dataSource,disabledShortKey:e.shortsKey?.disabled},null),g.value.theme&&t.createVNode("div",{class:`${s}-header-actions-item ${u.value}`.trim()},[t.createVNode(y,{class:`${s}-header-actions-icon ${u.value}`.trim(),component:h.value?xe:ye,onClick:v=>F(v)},null)]),g.value.settings&&!V.value&&t.createVNode("div",{class:`${s}-header-actions-item ${u.value}`.trim()},[t.createVNode(y.SettingOutlined,{onClick:()=>K("settings")},null)]),g.value.fullScreen&&!V.value&&t.createVNode("div",{class:`${s}-header-actions-item ${u.value}`.trim()},[t.createVNode(E,{onClick:()=>r()},null)]),j?j?.([`${s}-header-actions-item`,u.value]):null]),t.createVNode(p.Dropdown,t.mergeProps({placement:"bottomRight",overlayStyle:{maxWidth:120,minWidth:120}},e.dropdownProps,{overlay:w.dropdownMenuRender||t.createVNode(p.Menu,null,{default:()=>[w.dropdownMenuExtraItemRender,g.value.lock&&t.createVNode(t.Fragment,null,[t.createVNode(p.MenuItem,{key:"lock",icon:t.createVNode(y.LockOutlined,null,null),onClick:()=>b(!0)},{default:()=>[t.createTextVNode("锁定屏幕")]}),t.createVNode(p.Menu.Divider,null,null)]),t.createVNode(p.MenuItem,{key:"logout",icon:t.createVNode(y.LogoutOutlined,null,null),onClick:()=>e.onLogout?.()},{default:()=>[t.createTextVNode("退出登录")]})]})}),{default:()=>[w.dropdownRender||t.createVNode("div",{class:`${s}-header-actions-avatar ${u.value}`.trim()},[t.createVNode(p.Avatar,{size:28,icon:t.createVNode(y.UserOutlined,null,null),src:e.avatar},null),t.createVNode("div",{class:`${s}-header-actions-name ${u.value}`.trim()},[e.name])])]})])]})]),t.createVNode(x,{open:f.value,onOpenChange:v=>b(v)},null)]))}}}),G={appList:{type:Array,default:void 0},onItemClick:Function},Ce=t.defineComponent({props:{hashId:String,baseClassName:String,appList:G.appList,onItemClick:G.onItemClick},setup(e){return()=>t.createVNode("div",{class:`${e.baseClassName}-content ${e.hashId}`.trim()},[t.createVNode("ul",{class:`${e.baseClassName}-content-list ${e.hashId}`.trim()},[e.appList?.map((n,a)=>n?.children?.length?t.createVNode("div",{key:a,class:`${e.baseClassName}-content-list-item-group ${e.hashId}`.trim()},[t.createVNode("div",{class:`${e.baseClassName}-content-list-item-group-title ${e.hashId}`.trim()},[n.title]),t.createVNode(Ce,{hashId:e.hashId,onItemClick:e.onItemClick,appList:n?.children,baseClassName:e.baseClassName},null)]):t.createVNode("li",{key:a,class:`${e.baseClassName}-content-list-item ${e.hashId}`.trim(),onClick:r=>{r.stopPropagation(),e.onItemClick?.(n)}},[t.createVNode("a",{href:e.onItemClick?void 0:n.url,target:n.target,rel:"noreferrer"},[t.createVNode(Vt,{logo:n.icon},null),t.createVNode("div",null,[t.createVNode("div",null,[n.title]),n.desc?t.createVNode("span",null,[n.desc]):null])])]))])])}}),bt=(e,n)=>{if(e&&typeof e=="string"&&d.isUrl(e))return t.createVNode("img",{src:e,alt:"logo"},null);if(typeof e=="function")return e();if(e&&typeof e=="string")return t.createVNode("div",{id:"avatarLogo"},[e]);if(!e&&n&&typeof n=="string"){const a=n.substring(0,1);return t.createVNode("div",{id:"avatarLogo"},[a])}return e},Se=t.defineComponent({props:{hashId:String,baseClassName:String,appList:G.appList,onItemClick:G.onItemClick},setup(e){return()=>t.createVNode("div",{class:`${e.baseClassName}-content ${e.hashId}`.trim()},[t.createVNode("ul",{class:`${e.baseClassName}-content-list ${e.hashId}`.trim()},[e.appList?.map((n,a)=>n?.children?.length?t.createVNode("div",{key:a,class:`${e.baseClassName}-content-list-item-group ${e.hashId}`.trim()},[t.createVNode("div",{class:`${e.baseClassName}-content-list-item-group-title ${e.hashId}`.trim()},[n.title]),t.createVNode(Se,{hashId:e.hashId,onItemClick:e.onItemClick,appList:n?.children,baseClassName:e.baseClassName},null)]):t.createVNode("li",{key:a,class:`${e.baseClassName}-content-list-item ${e.hashId}`.trim(),onClick:r=>{r.stopPropagation(),e.onItemClick?.(n)}},[t.createVNode("a",{href:e.onItemClick?"javascript:;":n.url,target:n.target,rel:"noreferrer"},[bt(n.icon,n.title),t.createVNode("div",null,[t.createVNode("div",null,[n.title])])])]))])])}}),yt=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":m.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"}}}}}}),xt=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"}}}}}}),Nt=e=>({[e.componentCls]:{"&-simple":xt(e),"&-default":yt(e)}}),Ct=e=>{const{theme:n}=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:n==="dark"?e.colorWhite:e.layout?.colorTextAppListIcon,borderRadius:e.borderRadius,"&:hover":{color:n==="dark"?e.colorWhite:e.layout?.colorTextAppListIconHover,backgroundColor:n==="dark"?te.getAlphaColor("#fff",.12):e.layout?.colorBgAppListIconHover},[`&-active${e.proComponentsCls}-layout-app-icon`]:{fontSize:18,color:n==="dark"?e.colorWhite:e.layout?.colorTextAppListIconHover,backgroundColor:n==="dark"?te.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"}}}}},St=t.defineComponent({props:G,emits:["itemClick"],setup(e){const n=d.getPrefixCls({suffixCls:"layout-app",isPor:!0}),{wrapSSR:a,hashId:r}=m.useProStyle("AppsLogoList",[Nt],n),i=l=>{e.onItemClick?.(l)};return()=>e.appList?.some(o=>!o?.desc)?a(t.createVNode(Se,{hashId:r.value,appList:e.appList,onItemClick:e.onItemClick?i:void 0,baseClassName:`${n}-simple`},null)):a(t.createVNode(Ce,{hashId:r.value,appList:e.appList,onItemClick:e.onItemClick?i:void 0,baseClassName:`${n}-default`},null))}}),wt=()=>t.createVNode(y.AppstoreOutlined,null,null),Vt=({logo:e})=>typeof e=="string"?t.createVNode("img",{width:"auto",height:22,src:e,alt:"logo"},null):typeof e=="function"?e():e,vt=t.defineComponent({name:"AppsLogoIcon",inheritAttrs:!1,props:G,setup(e){const n=d.getPrefixCls({suffixCls:"layout-app",isPor:!0}),{wrapSSR:a,hashId:r}=m.useProStyle("AppsLogoIcon",[Ct],n),[i,l]=I.useState(!1),o=t.ref(),s=t.ref();return()=>a(t.createVNode(t.Fragment,null,[t.createVNode("div",{ref:o,onClick:c=>{c.stopPropagation(),c.preventDefault()}},null),t.createVNode(p.Popover,{placement:"bottomRight",trigger:["click"],arrow:!1,destroyTooltipOnHide:!0,open:i.value,onOpenChange:l,overlayClassName:`${n}-popover ${r.value}`.trim(),content:t.createVNode(St,e,null),getPopupContainer:()=>o.value||document.body},{default:()=>[t.createVNode("span",{ref:s,onClick:c=>{c.stopPropagation()},class:d.classNames(`${n}-icon`,r.value,{[`${n}-icon-active`]:i.value})},[t.createVNode(wt,null,null)])]})]))}}),we={prefixCls:String,hashId:String,width:Number,open:{type:Boolean,default:void 0},onOpenChange:{type:Function,default:void 0}},Ve={open:{type:Boolean,default:void 0},onChange:{type:Function},"onUpdate:open":{type:Function},extraSettingState:{type:Object},weakMode:{type:Boolean,default:!0},copyButton:{type:Boolean,default:!0},progress:{type:Boolean,default:!0},onChangeThemeState:{type:Function},onChangeSettingState:{type:Function}},Mt=[{value:"light",label:()=>t.createVNode("div",{style:{display:"flex",alignItems:"center",gap:"6px"}},[t.createVNode(y,{component:ye},null),t.createTextVNode("亮色")])},{value:"dark",label:()=>t.createVNode("div",{style:{display:"flex",alignItems:"center",gap:"6px"}},[t.createVNode(y,{component:xe},null),t.createTextVNode("深色")])},{value:"system",label:()=>t.createVNode("div",{style:{display:"flex",alignItems:"center",gap:"6px"}},[t.createVNode(y.DesktopOutlined,null,null),t.createTextVNode("自动")])}],Tt=[{key:"light",title:"亮色菜单风格"},{key:"dark",title:"暗色菜单风格"}],kt=[{key:"side",title:"侧边菜单布局"},{key:"mix",title:"混合菜单布局"},{key:"top",title:"顶部菜单布局"},{key:"wide",title:"定宽菜单布局"},{key:"simple",title:"简单菜单布局"}],At=[{label:"fixedHeader",title:"固定 Header"},{label:"fixSiderbar",title:"固定侧边菜单"},{label:"splitMenus",title:"自动分割菜单"}],It=[{label:"showTabsBar",title:"多标签"},{label:"fixedTabsBar",title:"固定多标签"}],Rt=[{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:"酱紫"}],ve=t.defineComponent({name:"BlockCheckbox",props:{value:String,list:{type:Array,default:()=>[]},configType:String,prefixCls:String,hashId:String,onChange:Function},setup(e){return()=>{const n=`${e.prefixCls}-block-checkbox`;return t.createVNode("div",{class:[n,e.hashId]},[e.list.map(a=>t.createVNode(p.Tooltip,{title:a.title,key:a.key},{default:()=>[t.createVNode("div",{class:d.classNames(e.hashId,`${n}-item`,`${n}-item-${a.key}`,`${n}-${e.configType}-item`),onClick:r=>e.onChange?.(a.key,r)},[a.key==="wide"&&t.createVNode("div",{class:[`${n}-item-${a.key}-content`,e.hashId]},null),t.createVNode(y.CheckOutlined,{class:`${n}-selectIcon ${e.hashId}`.trim(),style:{display:e.value===a.key?"block":"none"}},null),a?.icon?t.createVNode("div",{class:`${n}-icon ${e.hashId}`.trim()},[a.icon]):null])]}))])}}}),J=t.defineComponent({name:"RegionalChange",props:{label:String,value:Boolean,prefixCls:String,valueKey:String,hashId:String,disabled:Boolean,onChange:Function},setup(e){return()=>t.createVNode(p.List,{class:`${e.prefixCls}-list ${e.hashId}`.trim(),split:!1,size:"small",renderItem:({item:n})=>t.createVNode(p.Tooltip,{title:n.disabled?n.disabledReason:"",placement:"left"},{default:()=>[t.createVNode(p.List.Item,{actions:[n.action]},{default:()=>[t.createVNode("span",{style:{opacity:n.disabled?.5:1}},[n.title])]})]}),dataSource:[{title:e.label,action:t.createVNode(p.Switch,{size:"small",disabled:e.disabled,checked:!!e.value,onChange:n=>{e.onChange&&e.onChange(e.valueKey,n)}},null)}]},null)}}),Bt=["copyButton","progress","weakMode","extraSettingState"],Ot=t.defineComponent({props:{...we,...L.pick(Ve,["copyButton","progress","weakMode","extraSettingState"]),disabled:Object,dark:Boolean,onChangeDark:Function,onChangeConfig:Function,onChangeExtraConfig:Function},setup(e){const n=T.useProLayoutContext(),{copy:a,copied:r,isSupported:i}=k.useClipboard();t.watch(r,o=>{o&&p.message.success("拷贝成功,请到 config/default/themeConfig.js 中替换默认配置")});const l=()=>{i.value&&a(JSON.stringify(t.unref(n?.settings?.value)))};return()=>{const{prefixCls:o,hashId:s}=e;return t.createVNode(p.Drawer,{width:e.width,closable:!1,placement:"right",open:e.open,bodyStyle:{padding:0,overflow:"hidden"},maskStyle:{background:"transparent"},onClose:()=>e.onOpenChange?.(!1)},{default:()=>[t.createVNode("div",{class:d.classNames([`${o}-wrapper`,s])},[t.createVNode(de.GScrollbars,null,{default:()=>[t.createVNode("div",{class:d.classNames([`${o}-content`,s])},[t.createVNode("div",{class:d.classNames([`${o}-card`,s])},[t.createVNode("div",{class:d.classNames(`${o}-card-header`,s)},[t.createVNode("div",{class:d.classNames(`${o}-card-header-title`,s)},[t.createTextVNode("系统配置")]),t.createVNode("div",{class:d.classNames(`${o}-card-header-subtitle`,s)},[t.createTextVNode("GxDesign Pro")])]),t.createVNode("div",{class:d.classNames(`${o}-card-content`,s)},[t.createVNode(X,{prefixCls:`${o}`,hashId:s,title:"整体风格"},{default:()=>[t.createVNode(p.Segmented,{value:d.isBoolean(e.dark)?e.dark?"dark":"light":"system",options:Mt,onChange:c=>e.onChangeDark?.(c)},null)]}),t.createVNode(X,{prefixCls:o,hashId:s,title:"菜单风格"},{default:()=>[t.createVNode(ve,{value:n?.settings?.value.theme,hashId:s,prefixCls:o,list:Tt,configType:"menuTheme",key:"menuTheme",onChange:c=>e.onChangeConfig?.({theme:c})},null)]}),t.createVNode(p.Divider,null,null),t.createVNode(X,{hashId:s,prefixCls:o,title:"导航模式"},{default:()=>[t.createVNode(ve,{value:n?.settings?.value.layout,prefixCls:o,key:"layout",hashId:s,configType:"layout",list:kt,onChange:c=>e.onChangeConfig?.({layout:c})},null)]}),At.map(({label:c,title:u})=>t.createVNode(J,{label:u,prefixCls:o,hashId:s,valueKey:c,value:n?.settings?.value[c],disabled:e.disabled?.[c],onChange:(f,b)=>e.onChangeConfig?.({[f]:b})},null)),t.createVNode(p.Divider,null,null),t.createVNode(X,{hashId:s,prefixCls:o,title:"其他设置"},{default:()=>[It.map(({label:c,title:u})=>t.createVNode(J,{label:u,prefixCls:o,hashId:s,valueKey:c,value:n?.settings?.value[c],disabled:e.disabled?.[c],onChange:(f,b)=>e.onChangeConfig?.({[f]:b})},null)),e.weakMode&&t.createVNode(J,{label:"色弱模式",prefixCls:o,hashId:s,valueKey:"colorWeak",value:e.extraSettingState?.colorWeak,onChange:(c,u)=>e.onChangeExtraConfig?.({[c]:u})},null),e.progress&&t.createVNode(J,{label:"顶部进度条",prefixCls:o,hashId:s,valueKey:"progress",value:e.extraSettingState?.progress,onChange:(c,u)=>e.onChangeExtraConfig?.({[c]:u})},null)]}),e.copyButton&&t.createVNode(p.Divider,null,null),t.createVNode("div",{style:{display:"flex",gap:"10px"}},[e.copyButton&&t.createVNode(p.Button,{onClick:()=>l(),block:!0},{default:()=>[t.createVNode(y.CopyOutlined,null,null),t.createTextVNode("拷贝设置")]}),t.createVNode(p.Button,{block:!0},{default:()=>[t.createVNode(y.ClearOutlined,null,null),t.createTextVNode("清空缓存")]})])])])])]})])]})}}}),Ft=t.defineComponent({name:"ColorSvg",setup(){return()=>t.createVNode("svg",{width:"1em",height:"1em",viewBox:"0 0 64 64",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[t.createVNode("rect",{width:"8",height:"8",fill:"#DBE1FC"},null),t.createVNode("rect",{y:"8",width:"8",height:"8",fill:"#B6C5FA"},null),t.createVNode("rect",{y:"16",width:"8",height:"8",fill:"#90A9F9"},null),t.createVNode("rect",{y:"24",width:"8",height:"8",fill:"#688DF7"},null),t.createVNode("rect",{y:"32",width:"8",height:"8",fill:"#4471EC"},null),t.createVNode("rect",{y:"40",width:"8",height:"8",fill:"#2257D2"},null),t.createVNode("rect",{y:"48",width:"8",height:"8",fill:"#1640A6"},null),t.createVNode("rect",{y:"56",width:"8",height:"8",fill:"#0D2B76"},null),t.createVNode("rect",{x:"48",width:"8",height:"8",fill:"#CBEAD3"},null),t.createVNode("rect",{x:"48",y:"8",width:"8",height:"8",fill:"#A4D7B5"},null),t.createVNode("rect",{x:"48",y:"16",width:"8",height:"8",fill:"#77BE92"},null),t.createVNode("rect",{x:"48",y:"24",width:"8",height:"8",fill:"#57A075"},null),t.createVNode("rect",{x:"48",y:"32",width:"8",height:"8",fill:"#3F855C"},null),t.createVNode("rect",{x:"48",y:"40",width:"8",height:"8",fill:"#306948"},null),t.createVNode("rect",{x:"48",y:"48",width:"8",height:"8",fill:"#235136"},null),t.createVNode("rect",{x:"48",y:"56",width:"8",height:"8",fill:"#163724"},null),t.createVNode("rect",{x:"32",width:"8",height:"8",fill:"#F8DCCA"},null),t.createVNode("rect",{x:"32",y:"8",width:"8",height:"8",fill:"#F3BA94"},null),t.createVNode("rect",{x:"32",y:"16",width:"8",height:"8",fill:"#EC9B66"},null),t.createVNode("rect",{x:"32",y:"24",width:"8",height:"8",fill:"#D97E40"},null),t.createVNode("rect",{x:"32",y:"32",width:"8",height:"8",fill:"#B9642A"},null),t.createVNode("rect",{x:"32",y:"40",width:"8",height:"8",fill:"#944A1A"},null),t.createVNode("rect",{x:"32",y:"48",width:"8",height:"8",fill:"#713712"},null),t.createVNode("rect",{x:"32",y:"56",width:"8",height:"8",fill:"#51270A"},null),t.createVNode("rect",{x:"56",width:"8",height:"8",fill:"#D5E3FC"},null),t.createVNode("rect",{x:"56",y:"8",width:"8",height:"8",fill:"#A3C7FA"},null),t.createVNode("rect",{x:"56",y:"16",width:"8",height:"8",fill:"#6EAAF8"},null),t.createVNode("rect",{x:"56",y:"24",width:"8",height:"8",fill:"#4C91E7"},null),t.createVNode("rect",{x:"56",y:"32",width:"8",height:"8",fill:"#3577C8"},null),t.createVNode("rect",{x:"56",y:"40",width:"8",height:"8",fill:"#295EA0"},null),t.createVNode("rect",{x:"56",y:"48",width:"8",height:"8",fill:"#1C4679"},null),t.createVNode("rect",{x:"56",y:"56",width:"8",height:"8",fill:"#123258"},null),t.createVNode("rect",{x:"24",width:"8",height:"8",fill:"#F8DADB"},null),t.createVNode("rect",{x:"24",y:"8",width:"8",height:"8",fill:"#F1B2B3"},null),t.createVNode("rect",{x:"24",y:"16",width:"8",height:"8",fill:"#ED8B8D"},null),t.createVNode("rect",{x:"24",y:"24",width:"8",height:"8",fill:"#D96B6D"},null),t.createVNode("rect",{x:"24",y:"32",width:"8",height:"8",fill:"#BD5156"},null),t.createVNode("rect",{x:"24",y:"40",width:"8",height:"8",fill:"#96373C"},null),t.createVNode("rect",{x:"24",y:"48",width:"8",height:"8",fill:"#752027"},null),t.createVNode("rect",{x:"24",y:"56",width:"8",height:"8",fill:"#581119"},null),t.createVNode("rect",{x:"8",width:"8",height:"8",fill:"#EBDDFC"},null),t.createVNode("rect",{x:"8",y:"8",width:"8",height:"8",fill:"#D6BDFA"},null),t.createVNode("rect",{x:"8",y:"16",width:"8",height:"8",fill:"#BE9AF8"},null),t.createVNode("rect",{x:"8",y:"24",width:"8",height:"8",fill:"#A079E4"},null),t.createVNode("rect",{x:"8",y:"32",width:"8",height:"8",fill:"#8862CA"},null),t.createVNode("rect",{x:"8",y:"40",width:"8",height:"8",fill:"#6A44AB"},null),t.createVNode("rect",{x:"8",y:"48",width:"8",height:"8",fill:"#512A91"},null),t.createVNode("rect",{x:"8",y:"56",width:"8",height:"8",fill:"#360F72"},null),t.createVNode("rect",{x:"40",width:"8",height:"8",fill:"#FBE8BF"},null),t.createVNode("rect",{x:"40",y:"8",width:"8",height:"8",fill:"#F7D582"},null),t.createVNode("rect",{x:"40",y:"16",width:"8",height:"8",fill:"#ECBB46"},null),t.createVNode("rect",{x:"40",y:"24",width:"8",height:"8",fill:"#CA9E35"},null),t.createVNode("rect",{x:"40",y:"32",width:"8",height:"8",fill:"#9B7926"},null),t.createVNode("rect",{x:"40",y:"40",width:"8",height:"8",fill:"#74591A"},null),t.createVNode("rect",{x:"40",y:"48",width:"8",height:"8",fill:"#584312"},null),t.createVNode("rect",{x:"40",y:"56",width:"8",height:"8",fill:"#3D2E09"},null),t.createVNode("rect",{x:"16",width:"8",height:"8",fill:"#F8D9EA"},null),t.createVNode("rect",{x:"16",y:"8",width:"8",height:"8",fill:"#F1AED7"},null),t.createVNode("rect",{x:"16",y:"16",width:"8",height:"8",fill:"#EC7EC7"},null),t.createVNode("rect",{x:"16",y:"24",width:"8",height:"8",fill:"#D95EB1"},null),t.createVNode("rect",{x:"16",y:"32",width:"8",height:"8",fill:"#BB4998"},null),t.createVNode("rect",{x:"16",y:"40",width:"8",height:"8",fill:"#943477"},null),t.createVNode("rect",{x:"16",y:"48",width:"8",height:"8",fill:"#72215B"},null),t.createVNode("rect",{x:"16",y:"56",width:"8",height:"8",fill:"#571042"},null)])}}),$t=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:m.getProSolidColor(e,e.colorBgContainer)},svg:{fontSize:48,borderRadius:9},"&-title":{fontSize:e.fontSizeSM,marginBlockStart:e.marginXXS,lineHeight:`${e.controlHeightSM}px`,color:e.colorText}},"&-content":{flex:1,height:`calc(100% - ${e.paddingXS}px)`,color:e.colorText,marginInlineEnd:e.marginXS,borderRadius:e.borderRadius*2,backgroundColor:m.getProSolidColor(e,e.colorBgContainer)}}}),zt=t.defineComponent({props:{activeKey:{type:String,default:""},dataSource:{type:Array,default:()=>[]},renderItem:{type:Function},renderContent:{type:Function},onChange:{type:Function}},setup(e){const n=d.getPrefixCls({suffixCls:"switch-tab",isPor:!0}),{wrapSSR:a,hashId:r}=m.useProStyle("SwitchTab",[$t],n),i=t.ref(e.activeKey);t.watch(()=>e.activeKey,o=>{i.value=o});function l(o){i.value=o,e.onChange?.(o)}return()=>a(t.createVNode("div",{class:d.classNames(`${n}`,r.value)},[t.createVNode("div",{class:d.classNames(`${n}-nav`,r.value)},[e.dataSource.map(o=>t.createVNode("div",{key:o.value,class:d.classNames(`${n}-panel`,r.value,i.value===o.value&&`${n}-panel-active`),onClick:()=>l(o.value)},[e.renderItem?.(o),t.createVNode("div",{class:d.classNames(`${n}-panel-title`,r.value)},[o.label])])),t.createVNode("div",{class:d.classNames(`${n}-line`,r.value),style:{top:`${88*e.dataSource.findIndex(o=>o.value===i.value)}px`}},null)]),t.createVNode("div",{class:d.classNames(`${n}-content`,r.value)},[t.createVNode(de.GScrollbars,null,{default:()=>[e.renderContent?.(i.value)]})])]))}}),Et=t.defineComponent({props:{...we,onChange:{type:Function,default:void 0}},setup(e){const{token:n}=m.useProConfigContext(),a=t.computed(()=>{const i=new ue.AggregationColor(n.value.colorPrimary);return{hsb:i.toHsbString(),rgb:i.toRgbString(),hex:i.toHexString()}}),r=i=>{e.onChange?.(i)};return()=>{const{width:i,open:l,prefixCls:o,hashId:s,onOpenChange:c}=e;return t.createVNode(p.Drawer,{width:i,closable:!1,placement:"right",open:l,bodyStyle:{padding:0},maskStyle:{background:"transparent"},onClose:()=>c?.(!1)},{default:()=>[t.createVNode("div",{class:d.classNames([`${o}-wrapper`,s])},[t.createVNode("div",{style:{paddingInline:"8px",paddingTop:"8px"}},[t.createVNode("div",{class:d.classNames(`${o}-card-header`,s)},[t.createVNode("div",{class:d.classNames(`${o}-card-header-title`,s)},[t.createTextVNode("主题配置")]),t.createVNode("div",{class:d.classNames(`${o}-card-header-subtitle`,s)},[t.createTextVNode("GxDesign Pro")])])]),t.createVNode(zt,{activeKey:"color",dataSource:[{label:"色彩",value:"color"}],renderItem:u=>u.value==="color"?t.createVNode(Ft,null,null):null,renderContent:()=>t.createVNode("div",{style:{padding:m.unit(n.value.padding)}},[t.createVNode(X,{hashId:s,prefixCls:o,title:"主题色"},{default:()=>[t.createVNode("div",{class:d.classNames(`${o}-color-list`,s)},[Rt.map(u=>t.createVNode(p.Tooltip,{title:u.title,key:u.key},{default:()=>[t.createVNode("div",{class:d.classNames(`${o}-color-item`,s),style:{background:u.color}},[u.color.toLowerCase()===n.value.colorPrimary.toLowerCase()?t.createVNode(y.CheckOutlined,{style:{color:n.value.colorWhite,fontSize:"12px"}},null):null])]}))]),t.createVNode(ue.GColorPicker,{value:n.value.colorPrimary,onChangeComplete:u=>{r({colorPrimary:u.toHexString()})}},{default:()=>[t.createVNode("div",{class:d.classNames(`${o}-color-picker`,s)},[t.createVNode("div",{class:d.classNames(`${o}-color-picker-inner`,s)},[t.createVNode("div",{class:d.classNames(`${o}-color-picker-top`,s),style:{background:n.value.colorPrimary}},[t.createVNode("p",null,[t.createTextVNode("hsb:"),a.value.hsb]),t.createVNode("p",null,[t.createTextVNode("rgb:"),a.value.rgb])]),t.createVNode("div",{class:d.classNames(`${o}-color-picker-bottom`,s)},[t.createVNode("div",null,[t.createVNode("p",null,[t.createTextVNode("自定义主题颜色")]),t.createVNode("p",{style:{color:n.value.colorPrimary}},[t.createTextVNode("HEX:"),a.value.hex])]),t.createVNode(y.EditOutlined,{style:{fontSize:"18px"}},null)])])])]})]})])},null)])]})}}}),Lt=t.defineComponent({name:"Trigger",inheritAttrs:!1,props:{type:String,open:Boolean,hashId:String,prefixCls:String,onTypeChange:Function,onOpenChange:Function,onClose:Function},setup(e){function n(a){return{width:a?m.unit(216):m.unit(48),transition:"width 0.3s"}}return()=>{const a=m.getTransitionProps(`${e.prefixCls}-dock-zoom`);return t.createVNode(t.Fragment,null,[t.createVNode("div",{class:d.classNames(e.hashId,`${e.prefixCls}-button`),onClick:()=>e.onOpenChange?.(!0)},[t.createVNode("sup",{class:d.classNames(e.hashId,`${e.prefixCls}-dot`)},null),t.createVNode("div",{class:d.classNames(e.hashId,`${e.prefixCls}-icon`)},[t.createVNode(y,{component:rt},null)])]),t.createVNode(t.Transition,a,{default:()=>[t.withDirectives(t.createVNode("div",{class:d.classNames(e.hashId,`${e.prefixCls}-dock`)},[t.createVNode("div",{class:d.classNames(e.hashId,`${e.prefixCls}-dock-btn`,e.type==="setting"&&`${e.prefixCls}-dock-btn-active`),style:n(e.type==="setting"),onClick:()=>e.onTypeChange?.("setting")},[t.createVNode("div",{class:d.classNames(e.hashId,`${e.prefixCls}-dock-icon`)},[t.createVNode(y.SettingOutlined,null,null),e.type==="setting"&&t.createVNode("span",{class:d.classNames(e.hashId,`${e.prefixCls}-dock-icon-text`)},[t.createTextVNode("系统配置")])])]),t.createVNode("div",{class:d.classNames(e.hashId,`${e.prefixCls}-dock-btn`,e.type==="theme"&&`${e.prefixCls}-dock-btn-active`),style:n(e.type==="theme"),onClick:()=>e.onTypeChange?.("theme")},[t.createVNode("div",{class:d.classNames(e.hashId,`${e.prefixCls}-dock-icon`)},[t.createVNode(y,{component:at},null),e.type==="theme"&&t.createVNode("span",{class:d.classNames(e.hashId,`${e.prefixCls}-dock-icon-text`)},[t.createTextVNode("主题配置")])])])]),[[t.vShow,e.open]])]})])}}});function M(e,n){Pt(e)&&(e="100%");var a=Ht(e);return e=n===360?e:Math.min(n,Math.max(0,parseFloat(e))),a&&(e=parseInt(String(e*n),10)/100),Math.abs(e-n)<1e-6?1:(n===360?e=(e<0?e%n+n:e%n)/parseFloat(String(n)):e=e%n/parseFloat(String(n)),e)}function U(e){return Math.min(1,Math.max(0,e))}function Pt(e){return typeof e=="string"&&e.indexOf(".")!==-1&&parseFloat(e)===1}function Ht(e){return typeof e=="string"&&e.indexOf("%")!==-1}function Me(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function ee(e){return e<=1?"".concat(Number(e)*100,"%"):e}function _(e){return e.length===1?"0"+e:String(e)}function Dt(e,n,a){return{r:M(e,255)*255,g:M(n,255)*255,b:M(a,255)*255}}function Te(e,n,a){e=M(e,255),n=M(n,255),a=M(a,255);var r=Math.max(e,n,a),i=Math.min(e,n,a),l=0,o=0,s=(r+i)/2;if(r===i)o=0,l=0;else{var c=r-i;switch(o=s>.5?c/(2-r-i):c/(r+i),r){case e:l=(n-a)/c+(n<a?6:0);break;case n:l=(a-e)/c+2;break;case a:l=(e-n)/c+4;break}l/=6}return{h:l,s:o,l:s}}function re(e,n,a){return a<0&&(a+=1),a>1&&(a-=1),a<1/6?e+(n-e)*(6*a):a<1/2?n:a<2/3?e+(n-e)*(2/3-a)*6:e}function _t(e,n,a){var r,i,l;if(e=M(e,360),n=M(n,100),a=M(a,100),n===0)i=a,l=a,r=a;else{var o=a<.5?a*(1+n):a+n-a*n,s=2*a-o;r=re(s,o,e+1/3),i=re(s,o,e),l=re(s,o,e-1/3)}return{r:r*255,g:i*255,b:l*255}}function ke(e,n,a){e=M(e,255),n=M(n,255),a=M(a,255);var r=Math.max(e,n,a),i=Math.min(e,n,a),l=0,o=r,s=r-i,c=r===0?0:s/r;if(r===i)l=0;else{switch(r){case e:l=(n-a)/s+(n<a?6:0);break;case n:l=(a-e)/s+2;break;case a:l=(e-n)/s+4;break}l/=6}return{h:l,s:c,v:o}}function jt(e,n,a){e=M(e,360)*6,n=M(n,100),a=M(a,100);var r=Math.floor(e),i=e-r,l=a*(1-n),o=a*(1-i*n),s=a*(1-(1-i)*n),c=r%6,u=[a,o,l,l,s,a][c],f=[s,a,a,o,l,l][c],b=[l,l,s,a,a,o][c];return{r:u*255,g:f*255,b:b*255}}function Ae(e,n,a,r){var i=[_(Math.round(e).toString(16)),_(Math.round(n).toString(16)),_(Math.round(a).toString(16))];return r&&i[0].startsWith(i[0].charAt(1))&&i[1].startsWith(i[1].charAt(1))&&i[2].startsWith(i[2].charAt(1))?i[0].charAt(0)+i[1].charAt(0)+i[2].charAt(0):i.join("")}function Wt(e,n,a,r,i){var l=[_(Math.round(e).toString(16)),_(Math.round(n).toString(16)),_(Math.round(a).toString(16)),_(Gt(r))];return i&&l[0].startsWith(l[0].charAt(1))&&l[1].startsWith(l[1].charAt(1))&&l[2].startsWith(l[2].charAt(1))&&l[3].startsWith(l[3].charAt(1))?l[0].charAt(0)+l[1].charAt(0)+l[2].charAt(0)+l[3].charAt(0):l.join("")}function Gt(e){return Math.round(parseFloat(e)*255).toString(16)}function Ie(e){return R(e)/255}function R(e){return parseInt(e,16)}function qt(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 Xt(e){var n={r:0,g:0,b:0},a=1,r=null,i=null,l=null,o=!1,s=!1;return typeof e=="string"&&(e=Yt(e)),typeof e=="object"&&(z(e.r)&&z(e.g)&&z(e.b)?(n=Dt(e.r,e.g,e.b),o=!0,s=String(e.r).substr(-1)==="%"?"prgb":"rgb"):z(e.h)&&z(e.s)&&z(e.v)?(r=ee(e.s),i=ee(e.v),n=jt(e.h,r,i),o=!0,s="hsv"):z(e.h)&&z(e.s)&&z(e.l)&&(r=ee(e.s),l=ee(e.l),n=_t(e.h,r,l),o=!0,s="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(a=e.a)),a=Me(a),{ok:o,format:e.format||s,r:Math.min(255,Math.max(n.r,0)),g:Math.min(255,Math.max(n.g,0)),b:Math.min(255,Math.max(n.b,0)),a}}var Kt="[-\\+]?\\d+%?",Zt="[-\\+]?\\d*\\.\\d+%?",P="(?:".concat(Zt,")|(?:").concat(Kt,")"),oe="[\\s|\\(]+(".concat(P,")[,|\\s]+(").concat(P,")[,|\\s]+(").concat(P,")\\s*\\)?"),le="[\\s|\\(]+(".concat(P,")[,|\\s]+(").concat(P,")[,|\\s]+(").concat(P,")[,|\\s]+(").concat(P,")\\s*\\)?"),$={CSS_UNIT:new RegExp(P),rgb:new RegExp("rgb"+oe),rgba:new RegExp("rgba"+le),hsl:new RegExp("hsl"+oe),hsla:new RegExp("hsla"+le),hsv:new RegExp("hsv"+oe),hsva:new RegExp("hsva"+le),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 Yt(e){if(e=e.trim().toLowerCase(),e.length===0)return!1;var n=!1;if(ie[e])e=ie[e],n=!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:R(a[1]),g:R(a[2]),b:R(a[3]),a:Ie(a[4]),format:n?"name":"hex8"}:(a=$.hex6.exec(e),a?{r:R(a[1]),g:R(a[2]),b:R(a[3]),format:n?"name":"hex"}:(a=$.hex4.exec(e),a?{r:R(a[1]+a[1]),g:R(a[2]+a[2]),b:R(a[3]+a[3]),a:Ie(a[4]+a[4]),format:n?"name":"hex8"}:(a=$.hex3.exec(e),a?{r:R(a[1]+a[1]),g:R(a[2]+a[2]),b:R(a[3]+a[3]),format:n?"name":"hex"}:!1)))))))))}function z(e){return!!$.CSS_UNIT.exec(String(e))}var H=(function(){function e(n,a){n===void 0&&(n=""),a===void 0&&(a={});var r;if(n instanceof e)return n;typeof n=="number"&&(n=qt(n)),this.originalInput=n;var i=Xt(n);this.originalInput=n,this.r=i.r,this.g=i.g,this.b=i.b,this.a=i.a,this.roundA=Math.round(100*this.a)/100,this.format=(r=a.format)!==null&&r!==void 0?r:i.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=i.ok}return e.prototype.isDark=function(){return this.getBrightness()<128},e.prototype.isLight=function(){return!this.isDark()},e.prototype.getBrightness=function(){var n=this.toRgb();return(n.r*299+n.g*587+n.b*114)/1e3},e.prototype.getLuminance=function(){var n=this.toRgb(),a,r,i,l=n.r/255,o=n.g/255,s=n.b/255;return l<=.03928?a=l/12.92:a=Math.pow((l+.055)/1.055,2.4),o<=.03928?r=o/12.92:r=Math.pow((o+.055)/1.055,2.4),s<=.03928?i=s/12.92:i=Math.pow((s+.055)/1.055,2.4),.2126*a+.7152*r+.0722*i},e.prototype.getAlpha=function(){return this.a},e.prototype.setAlpha=function(n){return this.a=Me(n),this.roundA=Math.round(100*this.a)/100,this},e.prototype.isMonochrome=function(){var n=this.toHsl().s;return n===0},e.prototype.toHsv=function(){var n=ke(this.r,this.g,this.b);return{h:n.h*360,s:n.s,v:n.v,a:this.a}},e.prototype.toHsvString=function(){var n=ke(this.r,this.g,this.b),a=Math.round(n.h*360),r=Math.round(n.s*100),i=Math.round(n.v*100);return this.a===1?"hsv(".concat(a,", ").concat(r,"%, ").concat(i,"%)"):"hsva(".concat(a,", ").concat(r,"%, ").concat(i,"%, ").concat(this.roundA,")")},e.prototype.toHsl=function(){var n=Te(this.r,this.g,this.b);return{h:n.h*360,s:n.s,l:n.l,a:this.a}},e.prototype.toHslString=function(){var n=Te(this.r,this.g,this.b),a=Math.round(n.h*360),r=Math.round(n.s*100),i=Math.round(n.l*100);return this.a===1?"hsl(".concat(a,", ").concat(r,"%, ").concat(i,"%)"):"hsla(".concat(a,", ").concat(r,"%, ").concat(i,"%, ").concat(this.roundA,")")},e.prototype.toHex=function(n){return n===void 0&&(n=!1),Ae(this.r,this.g,this.b,n)},e.prototype.toHexString=function(n){return n===void 0&&(n=!1),"#"+this.toHex(n)},e.prototype.toHex8=function(n){return n===void 0&&(n=!1),Wt(this.r,this.g,this.b,this.a,n)},e.prototype.toHex8String=function(n){return n===void 0&&(n=!1),"#"+this.toHex8(n)},e.prototype.toHexShortString=function(n){return n===void 0&&(n=!1),this.a===1?this.toHexString(n):this.toHex8String(n)},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 n=Math.round(this.r),a=Math.round(this.g),r=Math.round(this.b);return this.a===1?"rgb(".concat(n,", ").concat(a,", ").concat(r,")"):"rgba(".concat(n,", ").concat(a,", ").concat(r,", ").concat(this.roundA,")")},e.prototype.toPercentageRgb=function(){var n=function(a){return"".concat(Math.round(M(a,255)*100),"%")};return{r:n(this.r),g:n(this.g),b:n(this.b),a:this.a}},e.prototype.toPercentageRgbString=function(){var n=function(a){return Math.round(M(a,255)*100)};return this.a===1?"rgb(".concat(n(this.r),"%, ").concat(n(this.g),"%, ").concat(n(this.b),"%)"):"rgba(".concat(n(this.r),"%, ").concat(n(this.g),"%, ").concat(n(this.b),"%, ").concat(this.roundA,")")},e.prototype.toName=function(){if(this.a===0)return"transparent";if(this.a<1)return!1;for(var n="#"+Ae(this.r,this.g,this.b,!1),a=0,r=Object.entries(ie);a<r.length;a++){var i=r[a],l=i[0],o=i[1];if(n===o)return l}return!1},e.prototype.toString=function(n){var a=!!n;n=n??this.format;var r=!1,i=this.a<1&&this.a>=0,l=!a&&i&&(n.startsWith("hex")||n==="name");return l?n==="name"&&this.a===0?this.toName():this.toRgbString():(n==="rgb"&&(r=this.toRgbString()),n==="prgb"&&(r=this.toPercentageRgbString()),(n==="hex"||n==="hex6")&&(r=this.toHexString()),n==="hex3"&&(r=this.toHexString(!0)),n==="hex4"&&(r=this.toHex8String(!0)),n==="hex8"&&(r=this.toHex8String()),n==="name"&&(r=this.toName()),n==="hsl"&&(r=this.toHslString()),n==="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(n){n===void 0&&(n=10);var a=this.toHsl();return a.l+=n/100,a.l=U(a.l),new e(a)},e.prototype.brighten=function(n){n===void 0&&(n=10);var a=this.toRgb();return a.r=Math.max(0,Math.min(255,a.r-Math.round(255*-(n/100)))),a.g=Math.max(0,Math.min(255,a.g-Math.round(255*-(n/100)))),a.b=Math.max(0,Math.min(255,a.b-Math.round(255*-(n/100)))),new e(a)},e.prototype.darken=function(n){n===void 0&&(n=10);var a=this.toHsl();return a.l-=n/100,a.l=U(a.l),new e(a)},e.prototype.tint=function(n){return n===void 0&&(n=10),this.mix("white",n)},e.prototype.shade=function(n){return n===void 0&&(n=10),this.mix("black",n)},e.prototype.desaturate=function(n){n===void 0&&(n=10);var a=this.toHsl();return a.s-=n/100,a.s=U(a.s),new e(a)},e.prototype.saturate=function(n){n===void 0&&(n=10);var a=this.toHsl();return a.s+=n/100,a.s=U(a.s),new e(a)},e.prototype.greyscale=function(){return this.desaturate(100)},e.prototype.spin=function(n){var a=this.toHsl(),r=(a.h+n)%360;return a.h=r<0?360+r:r,new e(a)},e.prototype.mix=function(n,a){a===void 0&&(a=50);var r=this.toRgb(),i=new e(n).toRgb(),l=a/100,o={r:(i.r-r.r)*l+r.r,g:(i.g-r.g)*l+r.g,b:(i.b-r.b)*l+r.b,a:(i.a-r.a)*l+r.a};return new e(o)},e.prototype.analogous=function(n,a){n===void 0&&(n=6),a===void 0&&(a=30);var r=this.toHsl(),i=360/a,l=[this];for(r.h=(r.h-(i*n>>1)+720)%360;--n;)r.h=(r.h+i)%360,l.push(new e(r));return l},e.prototype.complement=function(){var n=this.toHsl();return n.h=(n.h+180)%360,new e(n)},e.prototype.monochromatic=function(n){n===void 0&&(n=6);for(var a=this.toHsv(),r=a.h,i=a.s,l=a.v,o=[],s=1/n;n--;)o.push(new e({h:r,s:i,v:l})),l=(l+s)%1;return o},e.prototype.splitcomplement=function(){var n=this.toHsl(),a=n.h;return[this,new e({h:(a+72)%360,s:n.s,l:n.l}),new e({h:(a+216)%360,s:n.s,l:n.l})]},e.prototype.onBackground=function(n){var a=this.toRgb(),r=new e(n).toRgb(),i=a.a+r.a*(1-a.a);return new e({r:(a.r*a.a+r.r*r.a*(1-a.a))/i,g:(a.g*a.a+r.g*r.a*(1-a.a))/i,b:(a.b*a.a+r.b*r.a*(1-a.a))/i,a:i})},e.prototype.triad=function(){return this.polyad(3)},e.prototype.tetrad=function(){return this.polyad(4)},e.prototype.polyad=function(n){for(var a=this.toHsl(),r=a.h,i=[this],l=360/n,o=1;o<n;o++)i.push(new e({h:(r+o*l)%360,s:a.s,l:a.l}));return i},e.prototype.equals=function(n){return this.toRgbString()===new e(n).toRgbString()},e})();const Re=new m.Keyframe("toConic",{"0%":{backgroundPosition:"0 0"},"100%":{backgroundPosition:"100% 50%"}}),Qt=new m.Keyframe("dockIconText",{"0%":{display:"none",opacity:0},"80%":{overflow:"hidden"},"100%":{display:"unset",opacity:1}}),Jt=new m.Keyframe("dockZoomIn",{"0%":{transform:"translateX(-50%) scale(0)",opacity:0},"100%":{transform:"translateX(-50%) scale(1)",opacity:1}}),Ut=new m.Keyframe("dockZoomOut",{"0%":{transform:"translateX(-50%) scale(1)"},"100%":{transform:"translateX(-50%) scale(0)",opacity:0}}),Be=e=>e===0?0:e-Math.sqrt(e**2/2),en=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 ${m.unit(e.lineWidth)} ${e.colorBorderBg}`,top:Be(e.controlHeightLG/2),insetInlineEnd:Be(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}}}}),tn=e=>{const n=new H(new H("rgb(0, 0, 0)").setAlpha(.06).toRgbString()),a=new H(new H(e.colorBgBase).setAlpha(.6).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,backgroundColor:a.toRgbString(),borderRadius:e.controlHeight,backdropFilter:"blur(10px)","&-zoom-appear, &-zoom-enter":{animationName:Jt,opacity:0,animationTimingFunction:e.motionEaseOutCirc,animationFillMode:"both",transform:"none",animationDuration:e.motionDurationMid,userSelect:"none"},"&-zoom-enter-active":{animationPlayState:"running"},"&-zoom-leave":{animationName:Ut,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseInOutCirc,animationFillMode:"both"},"&-btn":{height:e.controlHeightLG,color:e.colorText,borderRadius:e.controlHeight,padding:1,background:`linear-gradient(135deg,${n},${n},${n},#006cfc,#05c4f4,#7ee94c)`,backgroundSize:"400%","&:hover":{animationTimingFunction:"cubic-bezier(.38,0,.24,1)",animationDuration:"0.5s",animationFillMode:"forwards",animationName:Re},"&-active":{animationTimingFunction:"cubic-bezier(.38,0,.24,1)",animationDuration:"0.5s",animationFillMode:"forwards",animationName:Re}},"&-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:Qt,animationDuration:".4s",animationTimingFunction:"ease"}}}}}},nn=e=>{const{dark:n}=T.getTokenLayoutTheme(e),a=`${e.componentCls}-drawer`,r=new H(new H(e.colorWhite).setAlpha(.55).toRgbString());return{[a]:{"&-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:n?e.colorBgBase:void 0,[`${e.antCls}-segmented-item-selected`]:{backgroundColor:n?"#1f1f1f":void 0}}},"&-card":{display:"flex",flexDirection:"column",borderRadius:e.borderRadiusLG,minHeight:`calc(100vh - ${e.padding}px)`,[`${a}-card-content`]:{flex:1,borderRadius:e.borderRadiusLG,backgroundColor:m.getProSolidColor(e,e.colorBgContainer),padding:e.padding}},"&-card-header":{borderRadius:e.borderRadiusLG,backgroundColor:e.colorPrimary,paddingBlock:e.paddingXS,paddingInline:e.padding-4,marginBlockEnd:e.marginXS,"&-title":{color:e.colorWhite,fontSize:e.fontSizeXL,lineHeight:e.lineHeight,marginBlockEnd:e.marginXS,fontWeight:e.fontWeightStrong},"&-subtitle":{color:r.toString()}},"&-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:"0 1px 2.5px rgba(0,0,0,.18)",cursor:"pointer",fontSize:56,lineHeight:"56px","&::before":{position:"absolute",insetBlockStart:0,insetInlineStart:0,width:"33%",height:"100%",content:"''"},"&::after":{position:"absolute",insetBlockStart:0,insetInlineStart:0,width:"100%",height:"25%",content:"''"},"&-dark":{backgroundColor:"rgba(0, 21, 41, 0.85)","&::before":{backgroundColor:"rgba(0, 0, 0, 0.65)"},"&::after":{backgroundColor:"rgba(0, 0, 0, 0.85)"}},"&-light":{backgroundColor:"#f7f8fa","&::before":{backgroundColor:"#fff"},"&::after":{backgroundColor:"#fff"}},"&-realDark":{backgroundColor:"rgba(0, 21, 41, 0.85)","&::before":{backgroundColor:"rgba(0, 0, 0, 0.65)"},"&::after":{backgroundColor:"rgba(0, 0, 0, 0.85)"}},"&-dark,&-side":{backgroundColor:"#f7f8fa","&::before":{zIndex:"1",backgroundColor:"#001529"},"&::after":{backgroundColor:"#fff"}},"&-wide":{backgroundColor:"#f7f8fa","&::before":{backgroundColor:"#fff",left:"15%",width:"15%",height:"calc(100% - 38%)",top:"38%"},"&::after":{backgroundColor:"#fff"},"&-content":{position:"absolute",height:"calc(100% - 38%)",top:"38%",right:"15%",width:"calc(100% - 15% - 15% - 10% - 15%)",backgroundColor:"#fff"}},"&-simple":{backgroundColor:"#f7f8fa","&::before":{backgroundColor:"#fff"},"&::after":{display:"none"}},"&-mix":{backgroundColor:"#f7f8fa","&::before":{backgroundColor:"#fff"},"&::after":{backgroundColor:"#001529"}},"&-top":{backgroundColor:"#f7f8fa","&::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}}}}},an=e=>{const n=`${e.componentCls}-drawer`,a=new H(new H(e.colorWhite).setAlpha(.55).toRgbString());return{[n]:{"&-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:m.getProSolidColor(e,e.colorBgContainer),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}}}}}}};function rn(e){const n=["showTabsBar","fixedMultiTab","fixSiderbar","fixedHeader","splitMenus"];let r=Object.keys(e).reduce((i,l)=>(i[l]=!1,i),{});return r=L.pick(r,n),e.layout==="mix"&&(r.fixSiderbar=!0,r.fixedHeader=!0),e.layout==="top"&&(r.fixSiderbar=!0,r.splitMenus=!0),e.layout==="side"&&(r.splitMenus=!0),e.layout==="simple"&&(r.splitMenus=!0,r.fixedHeader=!0,r.showTabsBar=!0,r.fixedTabsBar=!0),e.layout==="wide"&&(r.splitMenus=!0,r.fixedHeader=!0,r.fixSiderbar=!0,r.showTabsBar=!0,r.fixedTabsBar=!0),r}function se(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 X=(e,{slots:n})=>t.createVNode("div",{style:{marginBottom:"24px"}},[t.createVNode("h3",{class:`${e.prefixCls}-body-title ${e.hashId}`.trim()},[e.title]),n.default?.()]),on=t.defineComponent({name:"ThemeEditor",inheritAttrs:!1,props:Ve,emits:["update:open","change","changeSettingState","changeThemeState"],setup(e){const a=d.getPrefixCls({suffixCls:"theme-setting",isPor:!0}),r=d.getPrefixCls({suffixCls:"theme-editor",isPor:!0}),{wrapSSR:i,hashId:l}=m.useProStyle("ProThemeEditor",[nn,en,tn,an],r),o=k.useLocalStorage(a,{}),s=T.useProLayoutContext(),[c,u]=I.useState(!0),[f,b]=I.useState(!1),[S,O]=I.useState("setting");Object.keys(o.value).length&&e.onChangeSettingState?.(se({...t.toRaw(o.value)}));const B=t.computed(()=>({progress:!!e.extraSettingState?.progress,colorWeak:!!e.extraSettingState?.colorWeak})),A=t.computed(()=>rn({...t.toRaw(s.settings.value),...t.toRaw(B.value)}));t.watch(()=>e.open,x=>{x&&(S.value==="theme"?b(x):u(x))}),t.watch([()=>c.value,()=>f.value],()=>{e.onChange&&e.onChange(c.value||f.value),e?.["onUpdate:open"]?.(c.value||f.value)});const{dark:V,isDark:h,toggleMode:g}=T.useDarkTheme(t.computed(()=>s?.dark?.value),{change:x=>{s?.onDarkChange?.(x)}});function C(x){b(!x),u(x)}function F(x){b(x),u(!x)}const K=(x,v)=>T.toggleLayoutTheme({event:x,isDark:h,toggle:g,value:v}),w=x=>{K(null,x==="system"?x:x==="dark")};function j(x){e.onChangeSettingState?.(x),t.nextTick(()=>{s&&(o.value=se(d.deepMerge(L.cloneDeep(o.value),{...t.toRaw(s.settings.value),...t.toRaw(B.value)})))})}function E(x){e.onChangeSettingState?.(x),t.nextTick(()=>{s&&(o.value=se(d.deepMerge(L.cloneDeep(o.value),{...t.toRaw(s.settings.value),...t.toRaw(B.value),...t.toRaw(x)})))})}return()=>{const x=`${r}-drawer`;return i(t.createVNode("div",{class:d.classNames(l.value,r)},[t.createVNode(Lt,{hashId:l.value,prefixCls:r,type:S.value,open:c.value||f.value,onTypeChange:v=>{O(v),v==="setting"?C(!0):v==="theme"&&F(!0)},onOpenChange:v=>{S.value==="setting"?C(v):S.value==="theme"&&F(v)},onClose:()=>{u(!1),b(!1)}},null),t.createVNode(Ot,t.mergeProps({width:348,dark:V.value,open:c.value,prefixCls:x,hashId:l.value,disabled:A.value},L.pick(e,Bt),{onChangeDark:w,onChangeConfig:j,onOpenChange:v=>u(!!v),onChangeExtraConfig:E}),null),t.createVNode(Et,{width:348,open:f.value,prefixCls:x,hashId:l.value,onChange:v=>e.onChangeThemeState?.(v),onOpenChange:v=>b(!!v)},null)]))}}});D.locale("zh-cn");function ln(){const e=t.reactive({hh:"",mm:"",ss:"",dddd:"",day:"",a:""});function n(){e.hh=D().format("HH"),e.mm=D().format("mm"),e.ss=D().format("ss"),e.a=D().format("a").toUpperCase(),e.day=D().format("YYYY-MM-DD"),e.dddd=D().format("dddd"),requestAnimationFrame(n)}return requestAnimationFrame(n),e}const sn=Ne(),Oe={hashId:String,className:String},Fe={open:{type:Boolean,default:void 0},onOpenChange:Function,"onUpdate:open":Function,cryptoFn:Function,...L.pick(sn,["name","avatar"])},cn={...Fe,shortsKey:{type:Object,default:()=>({disabled:!1})}};function dn(e){const n=t.reactive({password:""}),{validate:a,resetFields:r,validateInfos:i}=m.useProForm(n,{password:[{validator:(l,o)=>(e&&o?e?.(o):o)?Promise.resolve():Promise.reject(e&&o?"密码错误":"请输入锁屏密码")}]});return{formState:n,validate:a,resetFields:r,validateInfos:i}}const $e=t.defineComponent({props:{...Oe,name:String,avatar:String,avatarSize:{type:Number,default:60},submitText:String,validator:Function,onSubmit:Function},setup(e,{expose:n,slots:a}){const{formState:r,validate:i,validateInfos:l,resetFields:o}=dn(e.validator),s=f=>{Object.assign(r,f)},c=(f="",b)=>{const S=f?`${e.className}-${f}`:e.className;return d.classNames(S,e.hashId,"")},u=()=>{i().then(()=>{e.onSubmit?.(r)}).catch(()=>{})};return n({formState:r,resetFields:o,merageFormState:s}),()=>t.createVNode("div",{class:c("user-form")},[t.createVNode("div",{class:c("user-info")},[t.createVNode(p.Avatar,{size:e.avatarSize,icon:t.createVNode(y.UserOutlined,null,null),src:e.avatar},null),e.name&&t.createVNode("div",{class:c("user-name")},[e.name])]),t.createVNode(p.Form,null,{default:()=>[t.createVNode(p.Form.Item,l.password,{default:()=>[t.createVNode(p.Input.Password,{value:r.password,placeholder:"请输入锁屏密码",onChange:f=>r.password=f.target.value},null)]})]}),t.createVNode(p.Button,{block:!0,type:"primary",onClick:()=>u(),style:{marginBlockStart:"24px"}},{default:()=>[e.submitText]}),a.default?.()])}}),un=t.defineComponent({name:"PageLockPopup",props:{...Oe,...Fe,password:String},setup(e){const[n,a]=I.useMergedState(!1,{value:t.computed(()=>d.isBoolean(e.open)?e.open:!1),onChange:e.onOpenChange}),[r,i]=I.useState(!1),l=ln(),o=(s="",c)=>{const u=s?`${e.className}-popup-${s}`:`${e.className}-popup`;return d.classNames(u,e.hashId,c||"")};return()=>n.value?t.createVNode("div",{class:o()},[r.value?t.createVNode("div",{class:o("form")},[t.createVNode($e,{avatarSize:70,submitText:"进入系统",avatar:e.avatar,hashId:e.hashId,className:e.className,validator:s=>e.cryptoFn?.(s)===e.password,onSubmit:()=>a(!1)},{default:()=>[t.createVNode(p.Button,{style:{marginBlockStart:"16px"},type:"text",block:!0,onClick:()=>i(!1)},{default:()=>[t.createTextVNode("返回")]})]}),t.createVNode("div",{class:o("form-time")},[t.createVNode("span",{style:{fontSize:"26px"}},[`${l.hh}:${l.mm}`,t.createTextVNode(" "),l.a]),t.createVNode("span",{style:{fontSize:"30px"}},[l.day,t.createTextVNode(" "),l.dddd])])]):t.createVNode(t.Fragment,null,[t.createVNode("div",{class:o("head")},[t.createVNode("span",null,[l.day,t.createTextVNode(" "),l.dddd]),t.createVNode("span",{class:o("lock-icon"),onClick:()=>i(!0)},[t.createVNode(y.LockOutlined,{style:{position:"relative",top:"1px",marginInlineEnd:"4px"}},null),t.createTextVNode("点击解锁")])]),t.createVNode("div",{class:o("time",o("enter","fadeIn"))},[t.createVNode("div",{class:o("time-card")},[l.hh,t.createVNode("span",{class:o("time-range")},[l.a])]),t.createVNode("div",{class:o("time-card")},[l.mm])])])]):null}}),hn=new m.Keyframe("fadeIn",{from:{opacity:0},to:{opacity:1}}),fn=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",zIndex:2200,width:"100%",height:"100%","&-enter":{animationDuration:".3s",animationFillMode:"both",animationName:hn},"&-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"}}}}}),gn=Object.freeze(Object.defineProperty({__proto__:null,default:t.defineComponent({name:"PageLock",props:cn,emits:["update:open","openChange"],setup(e){const n=d.getPrefixCls({suffixCls:"page-lock",isPor:!0}),{wrapSSR:a,hashId:r}=m.useProStyle("ProPageLock",[fn],n),i=k.useLocalStorage(n,{open:!1,password:""}),[l,o,s]=I.useMergedState(!1,{value:t.computed(()=>e.open),onChange:g=>{e.onOpenChange?.(g),e["onUpdate:open"]?.(g)}}),[c,u]=I.useState(!1),f=t.ref();function b(g){return e.cryptoFn?e.cryptoFn(g):g}function S(g){i.value.open=c.value,i.value.password=b(g)}const O=t.computed(()=>e.shortsKey),B=t.computed(()=>i.value.open&&!!i.value.password),A=k.useMagicKeys();k.whenever(A["Alt+KeyL"],()=>{O.value?.disabled||s.value||o(!0)}),t.watch(c,g=>{S(g&&(f.value?.formState?.password||i.value.password)||"")}),t.onMounted(()=>{B.value?u(!0):S("")});const V=()=>{o(!1),u(!0)},h=()=>{o(!1),S(""),f.value?.resetFields()};return()=>a(t.createVNode(t.Fragment,null,[t.createVNode(un,t.mergeProps(L.pick(e,["name","avatar"]),{open:c.value,hashId:r.value,className:n,password:i.value.password,cryptoFn:b,onOpenChange:u}),null),t.createVNode(ce.GProModal,{width:400,type:"normal",title:"锁定屏幕",open:s.value,footer:!1,onCancel:h},{default:()=>[t.createVNode($e,t.mergeProps({ref:f},L.pick(e,["name","avatar"]),{submitText:"锁定",hashId:r.value,className:n,onSubmit:V}),null)]})]))}})},Symbol.toStringTag,{value:"Module"}));N.GAppsLogoComponents=vt,N.GProThemeEditor=on,N.GRightContent=pt,Object.defineProperty(N,Symbol.toStringTag,{value:"Module"})}));
|
package/package.json
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
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.2",
|
|
5
5
|
"description": "Gx Design Pro Layout Components",
|
|
6
6
|
"exports": {
|
|
7
7
|
".": {
|
|
8
8
|
"types": "./dist/index.d.ts",
|
|
9
|
-
"import": "./dist/pro-layout-components.
|
|
10
|
-
"require": "./dist/pro-layout-components.umd.
|
|
9
|
+
"import": "./dist/pro-layout-components.js",
|
|
10
|
+
"require": "./dist/pro-layout-components.umd.cjs"
|
|
11
11
|
}
|
|
12
12
|
},
|
|
13
|
-
"main": "./dist/pro-layout-components.umd.
|
|
14
|
-
"module": "./dist/pro-layout-components.
|
|
13
|
+
"main": "./dist/pro-layout-components.umd.cjs",
|
|
14
|
+
"module": "./dist/pro-layout-components.js",
|
|
15
15
|
"types": "./dist",
|
|
16
16
|
"files": [
|
|
17
17
|
"dist"
|
|
@@ -28,13 +28,13 @@
|
|
|
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.145"
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
34
|
"@gx-design-vue/color-picker": "^0.2.0-beta.38",
|
|
35
35
|
"@gx-design-vue/pro-hooks": "^0.2.0-beta.54",
|
|
36
36
|
"@gx-design-vue/pro-modal": "^0.2.0-beta.35",
|
|
37
|
-
"@gx-design-vue/pro-provider": "^0.1.0-beta.
|
|
37
|
+
"@gx-design-vue/pro-provider": "^0.1.0-beta.122",
|
|
38
38
|
"@gx-design-vue/pro-utils": "^0.2.0-beta.80",
|
|
39
39
|
"@gx-design-vue/scrollbar": "^0.2.0-beta.21",
|
|
40
40
|
"@vueuse/core": "^11.1.0",
|