@gx-design-vue/pro-layout-components 0.1.0-beta.13 → 0.1.0-beta.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/Icon/index.d.ts
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
|
+
import type { IconBaseType } from '@gx-design-vue/pro-layout';
|
|
1
2
|
import type { PropType } from 'vue';
|
|
2
3
|
import type { IconType } from './components';
|
|
3
4
|
declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
4
5
|
type: {
|
|
5
|
-
type: PropType<IconType>;
|
|
6
|
+
type: PropType<IconType | IconBaseType>;
|
|
6
7
|
required: true;
|
|
7
8
|
};
|
|
8
9
|
className: PropType<string | string[]>;
|
|
@@ -14,7 +15,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
14
15
|
};
|
|
15
16
|
}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
16
17
|
type: {
|
|
17
|
-
type: PropType<IconType>;
|
|
18
|
+
type: PropType<IconType | IconBaseType>;
|
|
18
19
|
required: true;
|
|
19
20
|
};
|
|
20
21
|
className: PropType<string | string[]>;
|
|
@@ -774,6 +774,7 @@ const On = (e) => {
|
|
|
774
774
|
},
|
|
775
775
|
setup(e) {
|
|
776
776
|
return () => r(Ht, Z(e, {
|
|
777
|
+
type: e.type,
|
|
777
778
|
components: Dn
|
|
778
779
|
}), null);
|
|
779
780
|
}
|
|
@@ -1281,7 +1282,7 @@ const Zi = /* @__PURE__ */ x({
|
|
|
1281
1282
|
slots: t,
|
|
1282
1283
|
props: e,
|
|
1283
1284
|
key: "actionsRender"
|
|
1284
|
-
}), D = n.value ? jt : Gt, ue = v.value.lock ? q(() => import("./index-
|
|
1285
|
+
}), D = n.value ? jt : Gt, ue = v.value.lock ? q(() => import("./index-Clhe_0HU.js")) : r("div", null, null);
|
|
1285
1286
|
return u(r("div", {
|
|
1286
1287
|
class: `${p}-right-content ${g.value}`.trim(),
|
|
1287
1288
|
style: {
|
|
@@ -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-0yCkF6yK.js";
|
|
13
13
|
f.locale("zh-cn");
|
|
14
14
|
function Z() {
|
|
15
15
|
const e = F({
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Gx Design Pro
|
|
3
|
-
* Version: 0.1.0-beta.
|
|
3
|
+
* Version: 0.1.0-beta.13
|
|
4
4
|
* Author: gx12358
|
|
5
5
|
* Copyright (C) 2024 gx12358
|
|
6
6
|
* License: MIT License
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
* Homepage:
|
|
10
10
|
* Contact: gx12358@gmail.com
|
|
11
11
|
*/
|
|
12
|
-
import { D as t, A as s, T as a, G as n } from "./index
|
|
12
|
+
import { D as t, A as s, T as a, G as n } from "./index-0yCkF6yK.js";
|
|
13
13
|
export {
|
|
14
14
|
t as DefaultRenderLogo,
|
|
15
15
|
s as GAppsLogoComponents,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Gx Design Pro
|
|
3
|
-
* Version: 0.1.0-beta.
|
|
3
|
+
* Version: 0.1.0-beta.13
|
|
4
4
|
* Author: gx12358
|
|
5
5
|
* Copyright (C) 2024 gx12358
|
|
6
6
|
* License: MIT License
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
* Homepage:
|
|
10
10
|
* Contact: gx12358@gmail.com
|
|
11
11
|
*/
|
|
12
|
-
(function(x,t){typeof exports=="object"&&typeof module<"u"?t(exports,require("vue"),require("@gx-design-vue/pro-hooks"),require("@gx-design-vue/pro-provider"),require("@gx-design-vue/pro-utils"),require("ant-design-vue"),require("@gx-design-vue/pro-layout"),require("ant-design-vue/es/theme/themes/dark/colorAlgorithm"),require("@ant-design/icons-vue"),require("@vueuse/core"),require("@gx-design-vue/pro-modal"),require("vue-router"),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","@gx-design-vue/pro-hooks","@gx-design-vue/pro-provider","@gx-design-vue/pro-utils","ant-design-vue","@gx-design-vue/pro-layout","ant-design-vue/es/theme/themes/dark/colorAlgorithm","@ant-design/icons-vue","@vueuse/core","@gx-design-vue/pro-modal","vue-router","lodash-es","@gx-design-vue/scrollbar","@gx-design-vue/color-picker","dayjs","dayjs/locale/zh-cn"],t):(x=typeof globalThis<"u"?globalThis:x||self,t(x.proLayoutComponents={},x.vue,x.proHooks,x.proProvider,x.proUtils,x.antDesignVue,x.proLayout,x.colorAlgorithm,x.iconsVue,x.core,x.proModal,x.vueRouter,x.lodashEs,x.scrollbar,x.colorPicker,x.dayjs))})(this,(function(x,t,k,y,c,b,I,de,C,M,ue,ze,$,he,fe,z){"use strict";const H={appList:{type:Array,default:void 0},onItemClick:Function},ge=t.defineComponent({props:{hashId:String,baseClassName:String,appList:H.appList,onItemClick:H.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(ge,{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(pe,{logo:n.icon},null),t.createVNode("div",null,[t.createVNode("div",null,[n.title]),n.desc?t.createVNode("span",null,[n.desc]):null])])]))])])}}),Le=(e,n)=>{if(e&&typeof e=="string"&&c.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},me=t.defineComponent({props:{hashId:String,baseClassName:String,appList:H.appList,onItemClick:H.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(me,{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"},[Le(n.icon,n.title),t.createVNode("div",null,[t.createVNode("div",null,[n.title])])])]))])])}}),Pe=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":y.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"}}}}}}),_e=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"}}}}}}),He=e=>({[e.componentCls]:{"&-simple":_e(e),"&-default":Pe(e)}}),De=e=>{const{theme:n}=I.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"?de.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"?de.getAlphaColor("#fff",.12):e.layout?.colorBgAppListIconHover}},"&-item-title":{marginInlineStart:"16px",marginInlineEnd:"8px",marginBlockStart:0,marginBlockEnd:"12px",fontWeight:600,color:"rgba(0, 0, 0, 0.88)",fontSize:16,opacity:.85,lineHeight:1.5,"&:first-child":{marginBlockStart:12}},"&-popover":{width:"max-content",maxWidth:"100vw",[`${e.antCls}-popover-arrow`]:{display:"none"}}}}},je=t.defineComponent({props:H,emits:["itemClick"],setup(e){const n=c.getPrefixCls({suffixCls:"layout-app",isPor:!0}),{wrapSSR:a,hashId:r}=y.useProStyle("AppsLogoList",[He],n),o=i=>{e.onItemClick?.(i)};return()=>e.appList?.some(l=>!l?.desc)?a(t.createVNode(me,{hashId:r.value,appList:e.appList,onItemClick:e.onItemClick?o:void 0,baseClassName:`${n}-simple`},null)):a(t.createVNode(ge,{hashId:r.value,appList:e.appList,onItemClick:e.onItemClick?o:void 0,baseClassName:`${n}-default`},null))}}),We=()=>t.createVNode(C.AppstoreOutlined,null,null),pe=({logo:e})=>typeof e=="string"?t.createVNode("img",{width:"auto",height:22,src:e,alt:"logo"},null):typeof e=="function"?e():e,Ge=t.defineComponent({name:"AppsLogoIcon",inheritAttrs:!1,props:H,setup(e){const n=c.getPrefixCls({suffixCls:"layout-app",isPor:!0}),{wrapSSR:a,hashId:r}=y.useProStyle("AppsLogoIcon",[De],n),[o,i]=k.useState(!1),l=t.ref(),s=t.ref();return()=>a(t.createVNode(t.Fragment,null,[t.createVNode("div",{ref:l,onClick:u=>{u.stopPropagation(),u.preventDefault()}},null),t.createVNode(b.Popover,{placement:"bottomRight",trigger:["click"],arrow:!1,destroyTooltipOnHide:!0,open:o.value,onOpenChange:i,overlayClassName:`${n}-popover ${r.value}`.trim(),content:t.createVNode(je,e,null),getPopupContainer:()=>l.value||document.body},{default:()=>[t.createVNode("span",{ref:s,onClick:u=>{u.stopPropagation()},class:c.classNames(`${n}-icon`,r.value,{[`${n}-icon-active`]:o.value})},[t.createVNode(We,null,null)])]})]))}});function W(){return W=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},W.apply(null,arguments)}var be=(function(){if(typeof Map<"u")return Map;function e(n,a){var r=-1;return n.some(function(o,i){return o[0]===a?(r=i,!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),o=this.__entries__[r];return o&&o[1]},n.prototype.set=function(a,r){var o=e(this.__entries__,a);~o?this.__entries__[o][1]=r:this.__entries__.push([a,r])},n.prototype.delete=function(a){var r=this.__entries__,o=e(r,a);~o&&r.splice(o,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 o=0,i=this.__entries__;o<i.length;o++){var l=i[o];a.call(r,l[1],l[0])}},n})()})(),te=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")()})(),qe=(function(){return typeof requestAnimationFrame=="function"?requestAnimationFrame.bind(Z):function(e){return setTimeout(function(){return e(Date.now())},1e3/60)}})(),Ke=2;function Xe(e,n){var a=!1,r=!1,o=0;function i(){a&&(a=!1,e()),r&&s()}function l(){qe(i)}function s(){var u=Date.now();if(a){if(u-o<Ke)return;r=!0}else a=!0,r=!1,setTimeout(l,n);o=u}return s}var Ze=20,Ye=["top","right","bottom","left","width","height","size","weight"],Qe=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=Xe(this.refresh.bind(this),Ze)}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(){!te||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),Qe?(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(){!te||!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,o=Ye.some(function(i){return!!~r.indexOf(i)});o&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e})(),ye=(function(e,n){for(var a=0,r=Object.keys(n);a<r.length;a++){var o=r[a];Object.defineProperty(e,o,{value:n[o],enumerable:!1,writable:!1,configurable:!0})}return e}),D=(function(e){var n=e&&e.ownerDocument&&e.ownerDocument.defaultView;return n||Z}),Ne=Q(0,0,0,0);function Y(e){return parseFloat(e)||0}function xe(e){for(var n=[],a=1;a<arguments.length;a++)n[a-1]=arguments[a];return n.reduce(function(r,o){var i=e["border-"+o+"-width"];return r+Y(i)},0)}function Ue(e){for(var n=["top","right","bottom","left"],a={},r=0,o=n;r<o.length;r++){var i=o[r],l=e["padding-"+i];a[i]=Y(l)}return a}function et(e){var n=e.getBBox();return Q(0,0,n.width,n.height)}function tt(e){var n=e.clientWidth,a=e.clientHeight;if(!n&&!a)return Ne;var r=D(e).getComputedStyle(e),o=Ue(r),i=o.left+o.right,l=o.top+o.bottom,s=Y(r.width),u=Y(r.height);if(r.boxSizing==="border-box"&&(Math.round(s+i)!==n&&(s-=xe(r,"left","right")+i),Math.round(u+l)!==a&&(u-=xe(r,"top","bottom")+l)),!at(e)){var h=Math.round(s+i)-n,d=Math.round(u+l)-a;Math.abs(h)!==1&&(s-=h),Math.abs(d)!==1&&(u-=d)}return Q(o.left,o.top,s,u)}var nt=(function(){return typeof SVGGraphicsElement<"u"?function(e){return e instanceof D(e).SVGGraphicsElement}:function(e){return e instanceof D(e).SVGElement&&typeof e.getBBox=="function"}})();function at(e){return e===D(e).document.documentElement}function rt(e){return te?nt(e)?et(e):tt(e):Ne}function ot(e){var n=e.x,a=e.y,r=e.width,o=e.height,i=typeof DOMRectReadOnly<"u"?DOMRectReadOnly:Object,l=Object.create(i.prototype);return ye(l,{x:n,y:a,width:r,height:o,top:a,right:n+r,bottom:o+a,left:n}),l}function Q(e,n,a,r){return{x:e,y:n,width:a,height:r}}var it=(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=rt(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})(),lt=(function(){function e(n,a){var r=ot(a);ye(this,{target:n,contentRect:r})}return e})(),st=(function(){function e(n,a,r){if(this.activeObservations_=[],this.observations_=new be,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 D(n).Element))throw new TypeError('parameter 1 is not of type "Element".');var a=this.observations_;a.has(n)||(a.set(n,new it(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 D(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 lt(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})(),Ce=typeof WeakMap<"u"?new WeakMap:new be,Se=(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 st(n,a,this);Ce.set(this,r)}return e})();["observe","unobserve","disconnect"].forEach(function(e){Se.prototype[e]=function(){var n;return(n=Ce.get(this))[e].apply(n,arguments)}});var ct=(function(){return typeof Z.ResizeObserver<"u"?Z.ResizeObserver:Se})();const dt=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},ut=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 o=null,i=null;const l=()=>{i&&(i.disconnect(),i=null)},s=d=>{const{onResize:m}=e,N=d[0].target,{width:v,height:T}=N.getBoundingClientRect(),{offsetWidth:A,offsetHeight:w}=N,f=Math.floor(v),p=Math.floor(T);if(r.width!==f||r.height!==p||r.offsetWidth!==A||r.offsetHeight!==w){const S={width:f,height:p,offsetWidth:A,offsetHeight:w};W(r,S),m&&Promise.resolve().then(()=>{m(W(W({},S),{offsetWidth:A,offsetHeight:w}),N)})}},u=t.getCurrentInstance(),h=()=>{const{disabled:d}=e;if(d){l();return}const m=dt(u);m!==o&&(l(),o=m),!i&&m&&(i=new ct(s),i.observe(m))};return t.onMounted(()=>{h()}),t.onUpdated(()=>{h()}),t.onUnmounted(()=>{l()}),t.watch(()=>e.disabled,()=>{h()},{flush:"post"}),()=>{var d;return(d=a.default)===null||d===void 0?void 0:d.call(a)[0]}}}),ht={moon:t.defineAsyncComponent(()=>Promise.resolve().then(()=>gn)),sunny:t.defineAsyncComponent(()=>Promise.resolve().then(()=>mn)),paintbrush:t.defineAsyncComponent(()=>Promise.resolve().then(()=>pn)),palette:t.defineAsyncComponent(()=>Promise.resolve().then(()=>bn))},G=t.defineComponent({inheritAttrs:!1,props:{...I.defaultIconProps,type:{type:String,required:!0}},setup(e){return()=>t.createVNode(I.GIcon,t.mergeProps(e,{components:ht}),null)}}),ne={dataSource:{type:Array,default:()=>[]},historyKey:String},ve=()=>({...ne,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 ft(e,n){const a=new Map;return e.filter(r=>{const o=r[n];return a.has(o)?!1:(a.set(o,r),!0)})}function gt(e){return e?/^https?:\/\/.*$/.test(e):!1}const mt=new Set(["$","(",")","*","+",".","?","[","\\","]","^","{","|","}"]),pt=({className:e,value:n})=>n?t.createVNode(b.Empty,{image:b.Empty.PRESENTED_IMAGE_SIMPLE,description:`未找到搜索结果 "${n}"`},null):t.createVNode("div",{class:e},[t.createTextVNode("没有搜索历史")]),bt=t.defineComponent({props:{...ne,className:String,hashId:String,keyword:String,onClose:Function},setup(e){const n=ze.useRouter(),a=M.useLocalStorage(e.historyKey||c.getPrefixCls({suffixCls:"layout-search-history",isPor:!0}),[]),r=t.ref(0),o=t.ref([]),i=M.useThrottleFn(l,200);function l(f){if(f=f.trim(),!f){o.value=[];return}const p=m(f),S=[];e.dataSource.forEach(O=>{if(O.meta?.hideInMenu)return;const K=O.meta?.title||O.name||"";if(p.test(K.toLowerCase())){let g=[];const X=O?.key?.split("-")||[];for(let _=0;_<X.length;_++)g.push(X.slice(0,_+1).join("-"));g=g.map(_=>e.dataSource.find(se=>se?.key===_)?.meta?.title||""),S.push(c.merge(O,{meta:{title:g.join("**")}}))}}),o.value=S,S.length>0&&(r.value=0),r.value=0}t.watch(()=>e.keyword,f=>{f?i(f):o.value=[...a.value]});function s(){o.value=[],e.onClose?.()}function u(){const f=document.querySelector(`[data-search-item="${r.value}"]`);f&&f.scrollIntoView({block:"nearest"})}async function h(){if(o.value.length===0)return;const f=o.value,p=r.value;if(f.length===0||p<0)return;const S=f[p];S&&(a.value.push(S),s(),await t.nextTick(),gt(S.path)?window.open(S.path,"_blank"):n.push({path:S.path,replace:!0}))}function d(f){return mt.has(f)?`\\${f}`:f}function m(f){const p=[...f].map(S=>d(S)).join(".*");return new RegExp(`.*${p}.*`)}function N(){o.value.length!==0&&(r.value--,r.value<0&&(r.value=o.value.length-1),u())}function v(){o.value.length!==0&&(r.value++,r.value>o.value.length-1&&(r.value=0),u())}t.onMounted(()=>{a.value.length>0&&(o.value=a.value),M.onKeyStroke("Enter",h),M.onKeyStroke("ArrowUp",N),M.onKeyStroke("ArrowDown",v)});function T(f){r.value=f}function A(f,p){f.stopPropagation(),e.keyword?o.value.splice(p,1):a.value.splice(p,1),r.value=r.value-1>=0?r.value-1:0,u()}const w=f=>c.classNames(`${e.className}${f?`-${f}`:""}`,e.hashId);return()=>t.createVNode(t.Fragment,null,[o.value.length>0?t.createVNode(t.Fragment,null,[a.value.length>0&&!e.keyword&&t.createVNode("div",{class:w("panel-title")},[t.createTextVNode("搜索历史")]),t.createVNode("div",{class:w("panel-list")},[ft(o.value,"path").map((f,p)=>t.createVNode("div",{key:f.name,class:w(c.classNames("panel-item",p===r.value&&"active")),"data-search-item":p,onClick:()=>h(),onMouseenter:()=>T(p)},[t.createVNode("div",{class:w("panel-item-left")},[t.createVNode(I.LazyIcon,t.mergeProps(f.meta||{},{icon:f.meta?.icon||t.createVNode(C.MenuOutlined,null,null),classNames:w("panel-icon")}),null),f.meta?.title?.split("**")?.map((S,O)=>t.createVNode(t.Fragment,null,[S,O<f.meta?.title?.split("**")?.length-1&&t.createVNode(C.ArrowRightOutlined,null,null)])),t.createVNode("span",null,null)]),t.createVNode(C.CloseOutlined,{onClick:S=>A(S,p)},null)]))])]):t.createVNode(pt,{className:w("result"),value:e.keyword},null)])}}),yt=e=>({[e.componentCls]:{display:"flex",alignItems:"center",justifyContent:"center",height:36,gap:12,cursor:"pointer",fontSize:e.fontSizeSM,color:e.colorTextTertiary,paddingBlock:e.paddingXXS/2,paddingInline:e.paddingXS,borderRadius:e.borderRadiusLG*2,backgroundColor:e.layout?.header?.colorBgRightActionsItemHover,transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,">.anticon":{fontSize:e.fontSize,color:e.colorTextTertiary},"&-word":{lineHeight:e.lineHeight},"&-word-icon":{padding:"4px 6px",lineHeight:y.unit(e.fontSizeSM),borderTopLeftRadius:e.borderRadiusSM,borderBottomLeftRadius:e.borderRadiusSM,borderTopRightRadius:e.borderRadiusLG*2,borderBottomRightRadius:e.borderRadiusLG*2,backgroundColor:e.colorBgContainer},"&:hover":{color:e.colorTextSecondary},"&-panel":{"&-title":{color:e.colorTextQuaternary,lineHeight:e.lineHeight,marginBlockEnd:e.marginXS},"&-list":{display:"flex",flexDirection:"column",gap:12},"&-item":{display:"flex",alignItems:"center",justifyContent:"space-between",cursor:"pointer",fontSize:e.fontSize,lineHeight:e.lineHeight,padding:e.paddingXS,borderRadius:e.borderRadiusLG,backgroundColor:e.colorBgContainer,transition:`all ${e.motionDurationFast} ${e.motionEaseInOut}`,"&-left":{display:"flex",alignItems:"center",gap:e.sizeStep},"&.active":{backgroundColor:e.colorPrimary,color:e.colorTextLightSolid}}},"&-result":{display:"flex",alignItems:"center",justifyContent:"center",paddingBlockStart:60,color:e.colorTextQuaternary},"&-modal-footer":{display:"flex",alignItems:"center",gap:e.marginXS,fontSize:12,color:e.colorTextSecondary},"&-modal-footer-icon":{display:"flex",alignItems:"center",gap:4}}});function Nt(e){return y.useStyle("SearchPageInput",n=>{const a=y.mergeToken(n,{});return[yt(a)]},e)}const xt=({className:e,hashId:n})=>t.createVNode("div",{class:c.classNames(`${e}-footer`,n)},[t.createVNode("div",{class:c.classNames(`${e}-footer-icon`,n)},[t.createVNode(C.EnterOutlined,null,null),t.createTextVNode("选择")]),t.createVNode("div",{class:c.classNames(`${e}-footer-icon`,n)},[t.createVNode(C.ArrowUpOutlined,null,null),t.createVNode(C.ArrowUpOutlined,{rotate:180},null),t.createTextVNode("导航")])]),Ct=t.defineComponent({name:"SearchPageInput",props:{...ne,dark:{type:Boolean,default:void 0},disabledShortKey:{type:Boolean,default:!1}},setup(e){const n=c.getPrefixCls({suffixCls:"page-search",isPor:!0}),{wrapSSR:a,hashId:r}=Nt(n),[o,i]=k.useState(""),[l,s]=k.useState(!1),u=I.useProLayoutContext(),h=M.useMagicKeys(),d=c.isWindowsOs()?h["ctrl+k"]:h["cmd+k"],m=t.ref(),N=t.computed(()=>c.getLevelData(e.dataSource?.length?e.dataSource:u?.menuProps?.value?.menuData));M.whenever(d,()=>{e.disabledShortKey||s(!0)}),M.whenever(l,()=>{t.nextTick(()=>{m.value?.focus()})});const v=()=>{s(!1),o.value=""};return()=>{const T={className:`${n}`,hashId:r.value},A=`${n}-modal`;return a(t.createVNode(t.Fragment,null,[t.createVNode("div",{class:c.classNames(n,r.value),onClick:()=>s(!0)},[t.createVNode(C.SearchOutlined,null,null),t.createVNode("span",{class:c.classNames(`${n}-word`,r.value)},[t.createTextVNode("搜索")]),t.createVNode("span",{class:c.classNames(`${n}-word-icon`,r.value)},[t.createTextVNode("⌘")," ",t.createVNode("kbd",null,[t.createTextVNode("K")])])]),t.createVNode(ue.GProModal,{class:c.classNames(`${A}`,r.value),width:600,scrollProps:{maxHeight:400,minHeight:200},centered:!1,title:t.createVNode(b.Input,{style:{width:`${600*.8}px`,padding:0},ref:m,bordered:!1,size:"large",placeholder:"搜索导航菜单",value:o.value,prefix:t.createVNode(C.SearchOutlined,null,null),onChange:w=>i(w.target.value)},null),open:l.value,footer:t.createVNode(xt,{className:A,hashId:r.value},null),onCancel:()=>v()},{default:()=>[t.createVNode(bt,t.mergeProps(T,{keyword:o.value,dataSource:N.value,onClose:()=>v()}),null)]})]))}}}),St=e=>({[`${e.componentCls}`]:{"&-header-actions":{display:"flex",alignItems:"center",justifyContent:"flex-end",height:"100%",gap:e.paddingXS,"&-item":{display:"inline-flex",alignItems:"center",justifyContent:"center",paddingBlock:0,paddingInline:2,color:e.layout?.header?.colorTextRightActionsItem,fontSize:14,cursor:"pointer",borderRadius:e.borderRadius,".anticon":{color:e.layout?.header?.colorTextRightActionsItem,transition:`color ${e.motionDurationMid}, background-color ${e.motionDurationMid}`,"&:hover":{color:e.layout?.header?.colorTextRightActionsItemHover}},[`&${e.componentCls}-header-actions-theme`]:{fontSize:18,[`${e.componentCls}-header-actions-icon`]:{paddingInline:4,paddingBlock:4}},"> *":{paddingInline:6,paddingBlock:6,borderRadius:e.borderRadius,transition:`color ${e.motionDurationMid}, background-color ${e.motionDurationMid}`,"&:hover":{color:e.layout?.header?.colorTextRightActionsItemHover,backgroundColor:e.layout?.header?.colorBgRightActionsItemHover}}},[`&>${e.antCls}-dropdown-trigger`]:{color:e.colorTextTertiary,paddingInline:8,paddingBlock:8,cursor:"pointer",display:"flex",alignItems:"center",height:44,lineHeight:y.unit(44),borderRadius:e.borderRadius,paddingInlineEnd:e.padding,"&:hover":{backgroundColor:y.setAlpha(e.colorTextBase,.03)}},"&-avatar":{display:"inline-flex",alignItems:"center",justifyContent:"center",paddingInlineStart:e.padding,paddingInlineEnd:e.padding,cursor:"pointer",color:e.layout?.header?.colorTextRightActionsItem,[`${e.componentCls}-header-actions-name`]:{marginInlineStart:8},"> div":{height:"44px",color:e.layout?.header?.colorTextRightActionsItem,paddingInline:8,paddingBlock:8,cursor:"pointer",display:"flex",alignItems:"center",lineHeight:"44px",borderRadius:e.borderRadius,"&:hover":{backgroundColor:e.layout?.header?.colorBgRightActionsItemHover}}}}}});function vt(e){return y.useStyle("RightContent",n=>{const a=y.mergeToken(n);return[St(a)]},e)}const wt=t.defineComponent({name:"GlobalRightContent",props:ve(),inheritAttrs:!1,emits:{clickSettings:e=>e.length>0,logout:e=>typeof e=="function"},slots:Object,setup(e,{slots:n}){const{isFullscreen:a,toggle:r}=M.useFullscreen(),o=I.useProLayoutContext(),i=k.useMediaQuery(),{setTheme:l,isDark:s,resolvedTheme:u}=I.useThemeContext(),h=c.getPrefixCls({suffixCls:"global",isPor:!0}),{wrapSSR:d,hashId:m}=vt(h),N=t.ref(),[v,T]=k.useState(!1),[A,w]=k.useState("auto"),f=t.computed(()=>c.isBoolean(o?.isMobile?.value)?o?.isMobile?.value:i.value==="sm"||i.value==="xs"),p=t.computed(()=>e.actions===!1?{}:{...{lock:!0,theme:!0,search:!0,settings:!0,fullScreen:!0},...e.actions}),S=M.useDebounceFn(async g=>{w(g)},160),O=()=>{N.value&&I.toggleAnimateTheme(N.value,{isDark:u.value==="light",setTheme:l})};function K(g){c.isFunction(e.onClickSettings)&&e.onClickSettings?.(g)}return()=>{const g=c.getSlotsProps({slots:n,props:e,keys:["dropdownRender","dropdownMenuRender","dropdownMenuExtraItemRender"],render:!0}),X=c.getSlot({slots:n,props:e,key:"actionsRender"}),_=a.value?C.CompressOutlined:C.ExpandOutlined,se=p.value.lock?t.defineAsyncComponent(()=>Promise.resolve().then(()=>Vn)):t.createVNode("div",null,null);return d(t.createVNode("div",{class:`${h}-right-content ${m.value}`.trim(),style:{minWidth:A.value,height:"100%"}},[t.createVNode("div",{style:{height:"100%"}},[t.createVNode(ut,{key:"resize-observer",onResize:({width:ce})=>{S(ce)}},{default:()=>[t.createVNode("div",{class:`${h}-header-actions ${m.value}`.trim()},[n.default?.()??t.createVNode(t.Fragment,null,[p.value.search&&!f.value&&t.createVNode(Ct,{dataSource:e.dataSource,disabledShortKey:e.shortsKey?.disabled},null),p.value.theme&&t.createVNode("div",{ref:N,class:`${h}-header-actions-item ${h}-header-actions-theme ${m.value}`.trim()},[t.createVNode(G,{class:`${h}-header-actions-icon ${m.value}`.trim(),type:s.value?"moon":"sunny",onClick:()=>O()},null)]),p.value.settings&&!f.value&&t.createVNode("div",{class:`${h}-header-actions-item ${m.value}`.trim()},[t.createVNode(C.SettingOutlined,{onClick:()=>K("settings")},null)]),p.value.fullScreen&&!f.value&&t.createVNode("div",{class:`${h}-header-actions-item ${m.value}`.trim()},[t.createVNode(_,{onClick:()=>r()},null)]),X?X?.([`${h}-header-actions-item`,m.value]):null]),t.createVNode(b.Dropdown,t.mergeProps({placement:"bottomRight"},e.dropdownProps,{overlay:g.dropdownMenuRender||t.createVNode(b.Menu,null,{default:()=>[g.dropdownMenuExtraItemRender,p.value.lock&&t.createVNode(t.Fragment,null,[t.createVNode(b.MenuItem,{key:"lock",icon:t.createVNode(C.LockOutlined,null,null),onClick:()=>T(!0)},{default:()=>[t.createTextVNode("锁定屏幕")]}),t.createVNode(b.Menu.Divider,null,null)]),t.createVNode(b.MenuItem,{key:"logout",icon:t.createVNode(C.LogoutOutlined,null,null),onClick:()=>e.onLogout?.()},{default:()=>[t.createTextVNode("退出登录")]})]})}),{default:()=>[g.dropdownRender||t.createVNode("div",{class:`${h}-header-actions-avatar ${m.value}`.trim()},[t.createVNode(b.Avatar,{size:28,icon:t.createVNode(C.UserOutlined,null,null),src:e.avatar},null),t.createVNode("span",{class:`${h}-header-actions-name ${m.value}`.trim()},[e.name])])]})])]})]),t.createVNode(se,{open:v.value,onOpenChange:ce=>T(ce)},null)]))}}}),{provideContext:Vt,useInjectContext:L}=y.useContext("theme-editor"),we={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(G,{type:"moon"},null),t.createTextVNode("亮色")])},{value:"dark",label:()=>t.createVNode("div",{style:{display:"flex",alignItems:"center",gap:"6px"}},[t.createVNode(G,{type:"sunny"},null),t.createTextVNode("深色")])},{value:"system",label:()=>t.createVNode("div",{style:{display:"flex",alignItems:"center",gap:"6px"}},[t.createVNode(C.DesktopOutlined,null,null),t.createTextVNode("自动")])}],Tt=[{key:"light",title:"亮色"},{key:"dark",title:"深色"}],Me=[{key:"side",title:"侧边菜单布局"},{key:"mix",title:"混合菜单布局"},{key:"top",title:"顶部菜单布局"},{key:"wide",title:"定宽菜单布局"},{key:"simple",title:"简单菜单布局"}],It=[{label:"fixedHeader",title:"固定 Header"},{label:"fixSiderbar",title:"固定侧边菜单"},{label:"splitMenus",title:"自动分割菜单"}],At=[{label:"showTabsBar",title:"多标签"},{label:"fixedTabsBar",title:"固定多标签"}],kt=[{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:"酱紫"}],Bt=t.defineComponent({name:"BlockCheckbox",props:{value:String,list:{type:Array,default:()=>[]},configType:String,onChange:Function},setup(e){const{hashId:n,prefixCls:a}=L();return()=>{const r=`${a}-block-checkbox`;return t.createVNode("div",{class:[r,n.value]},[e.list.map(o=>t.createVNode(b.Tooltip,{title:o.title,key:o.key},{default:()=>[t.createVNode("div",{class:c.classNames(n.value,`${r}-item`,`${r}-item-${o.key}`,`${r}-${e.configType}-item`),onClick:i=>e.onChange?.(o.key,i)},[o.key==="wide"&&t.createVNode("div",{class:[`${r}-item-${o.key}-content`,n.value]},null),t.createVNode(C.CheckOutlined,{class:`${r}-selectIcon ${n.value}`.trim(),style:{display:e.value===o.key?"block":"none"}},null),o?.icon?t.createVNode("div",{class:`${r}-icon ${n.value}`.trim()},[o.icon]):null])]}))])}}}),J=t.defineComponent({name:"RegionalChange",props:{label:String,value:Boolean,valueKey:String,disabled:Boolean,onChange:Function},setup(e){const{hashId:n,prefixCls:a}=L();return()=>t.createVNode(b.List,{class:`${a}-list ${n.value}`.trim(),split:!1,size:"small",renderItem:({item:r})=>t.createVNode(b.Tooltip,{title:r.disabled?r.disabledReason:"",placement:"left"},{default:()=>[t.createVNode(b.List.Item,{actions:[r.action]},{default:()=>[t.createVNode("span",{style:{opacity:r.disabled?.5:1}},[r.title])]})]}),dataSource:[{title:e.label,action:t.createVNode(b.Switch,{size:"small",disabled:e.disabled,checked:!!e.value,onChange:r=>{e.onChange&&e.onChange(e.valueKey,r)}},null)}]},null)}}),Rt=["copyButton","progress","weakMode","extraSettingState"],Ot=t.defineComponent({props:{...we,...$.pick(Ve,["copyButton","progress","weakMode","extraSettingState"]),disabled:Object,theme:[Boolean,String],onChangeTheme:Function,onChangeConfig:Function,onChangeExtraConfig:Function},setup(e){const{hashId:n,drawerClass:a,prefixCls:r}=L(),o=I.useProLayoutContext(),{copy:i,copied:l,isSupported:s}=M.useClipboard(),u=t.computed(()=>o?.settings?.value);t.watch(l,d=>{d&&b.message.success("拷贝成功,请到 config/default/themeConfig.js 中替换默认配置")});const h=()=>{s.value&&i(JSON.stringify(u.value))};return()=>t.createVNode(b.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:c.classNames([`${a}-wrapper`,n.value])},[t.createVNode(he.GScrollbars,null,{default:()=>[t.createVNode("div",{class:c.classNames([`${a}-content`,n.value])},[t.createVNode("div",{class:c.classNames([`${r}-card`,n.value])},[t.createVNode("div",{class:c.classNames(`${r}-card-header`,n.value)},[t.createVNode("div",{class:c.classNames(`${r}-card-header-title`,n.value)},[t.createTextVNode("系统配置")]),t.createVNode("div",{class:c.classNames(`${r}-card-header-subtitle`,n.value)},[u.value?.title])]),t.createVNode("div",{class:c.classNames(`${r}-card-content`,n.value)},[t.createVNode(q,{prefixCls:`${r}`,hashId:n.value,title:"整体风格"},{default:()=>[t.createVNode(b.Segmented,{value:e.theme,options:Mt,onChange:d=>e.onChangeTheme?.(d)},null)]}),t.createVNode(b.Divider,null,null),t.createVNode(q,{hashId:n.value,prefixCls:r,title:"导航模式"},{default:()=>[t.createVNode(Bt,{value:o?.settings?.value.layout,key:"layout",configType:"layout",list:Me,onChange:d=>e.onChangeConfig?.({layout:d})},null)]}),It.map(({label:d,title:m})=>t.createVNode(J,{label:m,valueKey:d,value:o?.settings?.value[d],disabled:e.disabled?.[d],onChange:(N,v)=>e.onChangeConfig?.({[N]:v})},null)),t.createVNode(b.Divider,null,null),t.createVNode(q,{hashId:n.value,prefixCls:r,title:"其他设置"},{default:()=>[At.map(({label:d,title:m})=>t.createVNode(J,{label:m,valueKey:d,value:o?.settings?.value[d],disabled:e.disabled?.[d],onChange:(N,v)=>e.onChangeConfig?.({[N]:v})},null)),e.weakMode&&t.createVNode(J,{label:"色弱模式",valueKey:"colorWeak",value:e.extraSettingState?.colorWeak,onChange:(d,m)=>e.onChangeExtraConfig?.({[d]:m})},null),e.progress&&t.createVNode(J,{label:"顶部进度条",valueKey:"progress",value:e.extraSettingState?.progress,onChange:(d,m)=>e.onChangeExtraConfig?.({[d]:m})},null)]}),e.copyButton&&t.createVNode(b.Divider,null,null),t.createVNode("div",{style:{display:"flex",gap:"10px"}},[e.copyButton&&t.createVNode(b.Button,{onClick:()=>h(),block:!0},{default:()=>[t.createVNode(C.CopyOutlined,null,null),t.createTextVNode("拷贝设置")]}),t.createVNode(b.Button,{block:!0},{default:()=>[t.createVNode(C.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:e.layout?.header?.colorBgRightActionsItemHover},svg:{fontSize:48,borderRadius:9},"&-title":{fontSize:e.fontSizeSM,marginBlockStart:e.marginXXS-2,lineHeight:"20px",color:e.colorText}},"&-content":{flex:1,height:`calc(100% - ${e.paddingXS}px)`,color:e.colorText,marginInlineEnd:e.marginXS,borderRadius:e.borderRadius*2,backgroundColor:e.layout?.header?.colorBgRightActionsItemHover}}}),Et=t.defineComponent({props:{activeKey:{type:String,default:""},dataSource:{type:Array,default:()=>[]},renderItem:{type:Function},renderContent:{type:Function},onChange:{type:Function}},setup(e){const n=c.getPrefixCls({suffixCls:"switch-tab",isPor:!0}),{wrapSSR:a,hashId:r}=y.useProStyle("SwitchTab",[$t],n),o=t.ref(e.activeKey);t.watch(()=>e.activeKey,l=>{o.value=l});function i(l){o.value=l,e.onChange?.(l)}return()=>a(t.createVNode("div",{class:c.classNames(`${n}`,r.value)},[t.createVNode("div",{class:c.classNames(`${n}-nav`,r.value)},[e.dataSource.map(l=>t.createVNode("div",{key:l.value,class:c.classNames(`${n}-panel`,r.value,o.value===l.value&&`${n}-panel-active`),onClick:()=>i(l.value)},[e.renderItem?.(l),t.createVNode("div",{class:c.classNames(`${n}-panel-title`,r.value)},[l.label])])),t.createVNode("div",{class:c.classNames(`${n}-line`,r.value),style:{top:`${88*e.dataSource.findIndex(l=>l.value===o.value)}px`}},null)]),t.createVNode("div",{class:c.classNames(`${n}-content`,r.value)},[t.createVNode(he.GScrollbars,null,{default:()=>[e.renderContent?.(o.value)]})])]))}}),{provideContext:zt,useInjectContext:Lt}=y.useContext("theme-setting"),Pt=t.defineComponent({setup(){const{prefixCls:e,hashId:n}=L(),{onChange:a}=Lt(),{token:r}=y.useProConfigContext(),o=t.computed(()=>{const i=new fe.AggregationColor(r.value.colorPrimary);return{hsb:i.toHsbString(),rgb:i.toRgbString(),hex:i.toHexString()}});return()=>t.createVNode(q,{hashId:n.value,prefixCls:e,title:"主题色"},{default:()=>[t.createVNode("div",{class:c.classNames(`${e}-color-list`,n.value)},[kt.map(i=>t.createVNode(b.Tooltip,{title:i.title,key:i.key},{default:()=>[t.createVNode("div",{class:c.classNames(`${e}-color-item`,n.value),style:{background:i.color},onClick:()=>{a?.({colorPrimary:i.color})}},[i.color.toLowerCase()===r.value.colorPrimary.toLowerCase()?t.createVNode(C.CheckOutlined,{style:{color:r.value.colorWhite,fontSize:"12px"}},null):null])]}))]),t.createVNode(fe.GColorPicker,{value:r.value.colorPrimary,onChangeComplete:i=>{a?.({colorPrimary:i.toHexString()})}},{default:()=>[t.createVNode("div",{class:c.classNames(`${e}-color-picker`,n.value)},[t.createVNode("div",{class:c.classNames(`${e}-color-picker-inner`,n.value)},[t.createVNode("div",{class:c.classNames(`${e}-color-picker-top`,n.value),style:{background:r.value.colorPrimary}},[t.createVNode("p",null,[t.createTextVNode("hsb:"),o.value.hsb]),t.createVNode("p",null,[t.createTextVNode("rgb:"),o.value.rgb])]),t.createVNode("div",{class:c.classNames(`${e}-color-picker-bottom`,n.value)},[t.createVNode("div",null,[t.createVNode("p",null,[t.createTextVNode("自定义主题颜色")]),t.createVNode("p",null,[t.createTextVNode("HEX:"),o.value.hex])]),t.createVNode(C.EditOutlined,{style:{fontSize:"18px"}},null)])])])]})]})}}),_t=t.defineComponent({setup(){const{prefixCls:e,hashId:n}=L();return()=>t.createVNode(q,{hashId:n.value,prefixCls:e,title:"侧边主题色"},null)}}),Ht=t.defineComponent({setup(){const{token:e}=y.useProConfigContext();return()=>t.createVNode("div",{style:{padding:y.unit(e.value.padding)}},[t.createVNode(Pt,null,null),t.createVNode(_t,null,null)])}}),Dt=t.defineComponent({props:{...we,onChange:{type:Function,default:void 0}},setup(e){const{hashId:n,prefixCls:a,drawerClass:r}=L(),{token:o}=y.useProConfigContext(),i=t.computed(()=>I.getTokenLayoutTheme(o.value)),l=t.computed(()=>{const s=Me.find(h=>h.key===i.value.layout)?.title;return`${Tt.find(h=>h.key===i.value.theme)?.title}/${s}`});return zt({onChange:e.onChange}),()=>{const{width:s,open:u,onOpenChange:h}=e;return t.createVNode(b.Drawer,{width:s,closable:!1,placement:"right",open:u,bodyStyle:{padding:0},maskStyle:{background:"transparent"},onClose:()=>h?.(!1)},{default:()=>[t.createVNode("div",{class:c.classNames([`${r}-wrapper`,n.value])},[t.createVNode("div",{style:{paddingInline:"8px",paddingTop:"8px"}},[t.createVNode("div",{class:c.classNames(`${a}-card-header`,n.value)},[t.createVNode("div",{class:c.classNames(`${a}-card-header-title`,n.value)},[t.createTextVNode("主题配置")]),t.createVNode("div",{class:c.classNames(`${a}-card-header-subtitle`,n.value)},[l.value])])]),t.createVNode(Et,{activeKey:"color",dataSource:[{label:"色彩",value:"color"}],renderItem:d=>{if(d.value==="color")return t.createVNode(Ft,null,null)},renderContent:d=>{if(d==="color")return t.createVNode(Ht,null,null)}},null)])]})}}}),jt=t.defineComponent({name:"Trigger",inheritAttrs:!1,props:{type:String,open:Boolean,onTypeChange:Function,onOpenChange:Function,onClose:Function},setup(e){const{prefixCls:n,hashId:a}=L();function r(o){return{width:o?y.unit(216):y.unit(48),transition:"width 0.3s"}}return()=>{const o=y.getTransitionProps(`${n}-dock-zoom`);return t.createVNode(t.Fragment,null,[t.createVNode("div",{class:c.classNames(a.value,`${n}-button`),onClick:()=>e.onOpenChange?.(!0)},[t.createVNode("sup",{class:c.classNames(a.value,`${n}-dot`)},null),t.createVNode("div",{class:c.classNames(a.value,`${n}-icon`)},[t.createVNode(G,{type:"paintbrush"},null)])]),t.createVNode(t.Transition,o,{default:()=>[t.withDirectives(t.createVNode("div",{class:c.classNames(a.value,`${n}-dock`)},[t.createVNode("div",{class:c.classNames(a.value,`${n}-dock-btn`,e.type==="setting"&&`${n}-dock-btn-active`),style:r(e.type==="setting"),onClick:()=>e.onTypeChange?.("setting")},[t.createVNode("div",{class:c.classNames(a.value,`${n}-dock-icon`)},[t.createVNode(C.SettingOutlined,null,null),e.type==="setting"&&t.createVNode("span",{class:c.classNames(a.value,`${n}-dock-icon-text`)},[t.createTextVNode("系统配置")])])]),t.createVNode("div",{class:c.classNames(a.value,`${n}-dock-btn`,e.type==="theme"&&`${n}-dock-btn-active`),style:r(e.type==="theme"),onClick:()=>e.onTypeChange?.("theme")},[t.createVNode("div",{class:c.classNames(a.value,`${n}-dock-icon`)},[t.createVNode(G,{type:"palette"},null),e.type==="theme"&&t.createVNode("span",{class:c.classNames(a.value,`${n}-dock-icon-text`)},[t.createTextVNode("主题配置")])])])]),[[t.vShow,e.open]])]})])}}});function V(e,n){Wt(e)&&(e="100%");var a=Gt(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 Wt(e){return typeof e=="string"&&e.indexOf(".")!==-1&&parseFloat(e)===1}function Gt(e){return typeof e=="string"&&e.indexOf("%")!==-1}function Te(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 P(e){return e.length===1?"0"+e:String(e)}function qt(e,n,a){return{r:V(e,255)*255,g:V(n,255)*255,b:V(a,255)*255}}function Ie(e,n,a){e=V(e,255),n=V(n,255),a=V(a,255);var r=Math.max(e,n,a),o=Math.min(e,n,a),i=0,l=0,s=(r+o)/2;if(r===o)l=0,i=0;else{var u=r-o;switch(l=s>.5?u/(2-r-o):u/(r+o),r){case e:i=(n-a)/u+(n<a?6:0);break;case n:i=(a-e)/u+2;break;case a:i=(e-n)/u+4;break}i/=6}return{h:i,s:l,l:s}}function ae(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 Kt(e,n,a){var r,o,i;if(e=V(e,360),n=V(n,100),a=V(a,100),n===0)o=a,i=a,r=a;else{var l=a<.5?a*(1+n):a+n-a*n,s=2*a-l;r=ae(s,l,e+1/3),o=ae(s,l,e),i=ae(s,l,e-1/3)}return{r:r*255,g:o*255,b:i*255}}function Ae(e,n,a){e=V(e,255),n=V(n,255),a=V(a,255);var r=Math.max(e,n,a),o=Math.min(e,n,a),i=0,l=r,s=r-o,u=r===0?0:s/r;if(r===o)i=0;else{switch(r){case e:i=(n-a)/s+(n<a?6:0);break;case n:i=(a-e)/s+2;break;case a:i=(e-n)/s+4;break}i/=6}return{h:i,s:u,v:l}}function Xt(e,n,a){e=V(e,360)*6,n=V(n,100),a=V(a,100);var r=Math.floor(e),o=e-r,i=a*(1-n),l=a*(1-o*n),s=a*(1-(1-o)*n),u=r%6,h=[a,l,i,i,s,a][u],d=[s,a,a,l,i,i][u],m=[i,i,s,a,a,l][u];return{r:h*255,g:d*255,b:m*255}}function ke(e,n,a,r){var o=[P(Math.round(e).toString(16)),P(Math.round(n).toString(16)),P(Math.round(a).toString(16))];return r&&o[0].startsWith(o[0].charAt(1))&&o[1].startsWith(o[1].charAt(1))&&o[2].startsWith(o[2].charAt(1))?o[0].charAt(0)+o[1].charAt(0)+o[2].charAt(0):o.join("")}function Zt(e,n,a,r,o){var i=[P(Math.round(e).toString(16)),P(Math.round(n).toString(16)),P(Math.round(a).toString(16)),P(Yt(r))];return o&&i[0].startsWith(i[0].charAt(1))&&i[1].startsWith(i[1].charAt(1))&&i[2].startsWith(i[2].charAt(1))&&i[3].startsWith(i[3].charAt(1))?i[0].charAt(0)+i[1].charAt(0)+i[2].charAt(0)+i[3].charAt(0):i.join("")}function Yt(e){return Math.round(parseFloat(e)*255).toString(16)}function Be(e){return B(e)/255}function B(e){return parseInt(e,16)}function Qt(e){return{r:e>>16,g:(e&65280)>>8,b:e&255}}var re={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 Jt(e){var n={r:0,g:0,b:0},a=1,r=null,o=null,i=null,l=!1,s=!1;return typeof e=="string"&&(e=tn(e)),typeof e=="object"&&(F(e.r)&&F(e.g)&&F(e.b)?(n=qt(e.r,e.g,e.b),l=!0,s=String(e.r).substr(-1)==="%"?"prgb":"rgb"):F(e.h)&&F(e.s)&&F(e.v)?(r=ee(e.s),o=ee(e.v),n=Xt(e.h,r,o),l=!0,s="hsv"):F(e.h)&&F(e.s)&&F(e.l)&&(r=ee(e.s),i=ee(e.l),n=Kt(e.h,r,i),l=!0,s="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(a=e.a)),a=Te(a),{ok:l,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 Ut="[-\\+]?\\d+%?",en="[-\\+]?\\d*\\.\\d+%?",E="(?:".concat(en,")|(?:").concat(Ut,")"),oe="[\\s|\\(]+(".concat(E,")[,|\\s]+(").concat(E,")[,|\\s]+(").concat(E,")\\s*\\)?"),ie="[\\s|\\(]+(".concat(E,")[,|\\s]+(").concat(E,")[,|\\s]+(").concat(E,")[,|\\s]+(").concat(E,")\\s*\\)?"),R={CSS_UNIT:new RegExp(E),rgb:new RegExp("rgb"+oe),rgba:new RegExp("rgba"+ie),hsl:new RegExp("hsl"+oe),hsla:new RegExp("hsla"+ie),hsv:new RegExp("hsv"+oe),hsva:new RegExp("hsva"+ie),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 tn(e){if(e=e.trim().toLowerCase(),e.length===0)return!1;var n=!1;if(re[e])e=re[e],n=!0;else if(e==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var a=R.rgb.exec(e);return a?{r:a[1],g:a[2],b:a[3]}:(a=R.rgba.exec(e),a?{r:a[1],g:a[2],b:a[3],a:a[4]}:(a=R.hsl.exec(e),a?{h:a[1],s:a[2],l:a[3]}:(a=R.hsla.exec(e),a?{h:a[1],s:a[2],l:a[3],a:a[4]}:(a=R.hsv.exec(e),a?{h:a[1],s:a[2],v:a[3]}:(a=R.hsva.exec(e),a?{h:a[1],s:a[2],v:a[3],a:a[4]}:(a=R.hex8.exec(e),a?{r:B(a[1]),g:B(a[2]),b:B(a[3]),a:Be(a[4]),format:n?"name":"hex8"}:(a=R.hex6.exec(e),a?{r:B(a[1]),g:B(a[2]),b:B(a[3]),format:n?"name":"hex"}:(a=R.hex4.exec(e),a?{r:B(a[1]+a[1]),g:B(a[2]+a[2]),b:B(a[3]+a[3]),a:Be(a[4]+a[4]),format:n?"name":"hex8"}:(a=R.hex3.exec(e),a?{r:B(a[1]+a[1]),g:B(a[2]+a[2]),b:B(a[3]+a[3]),format:n?"name":"hex"}:!1)))))))))}function F(e){return!!R.CSS_UNIT.exec(String(e))}var j=(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 o=Jt(n);this.originalInput=n,this.r=o.r,this.g=o.g,this.b=o.b,this.a=o.a,this.roundA=Math.round(100*this.a)/100,this.format=(r=a.format)!==null&&r!==void 0?r:o.format,this.gradientType=a.gradientType,this.r<1&&(this.r=Math.round(this.r)),this.g<1&&(this.g=Math.round(this.g)),this.b<1&&(this.b=Math.round(this.b)),this.isValid=o.ok}return e.prototype.isDark=function(){return this.getBrightness()<128},e.prototype.isLight=function(){return!this.isDark()},e.prototype.getBrightness=function(){var n=this.toRgb();return(n.r*299+n.g*587+n.b*114)/1e3},e.prototype.getLuminance=function(){var n=this.toRgb(),a,r,o,i=n.r/255,l=n.g/255,s=n.b/255;return i<=.03928?a=i/12.92:a=Math.pow((i+.055)/1.055,2.4),l<=.03928?r=l/12.92:r=Math.pow((l+.055)/1.055,2.4),s<=.03928?o=s/12.92:o=Math.pow((s+.055)/1.055,2.4),.2126*a+.7152*r+.0722*o},e.prototype.getAlpha=function(){return this.a},e.prototype.setAlpha=function(n){return this.a=Te(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=Ae(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=Ae(this.r,this.g,this.b),a=Math.round(n.h*360),r=Math.round(n.s*100),o=Math.round(n.v*100);return this.a===1?"hsv(".concat(a,", ").concat(r,"%, ").concat(o,"%)"):"hsva(".concat(a,", ").concat(r,"%, ").concat(o,"%, ").concat(this.roundA,")")},e.prototype.toHsl=function(){var n=Ie(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=Ie(this.r,this.g,this.b),a=Math.round(n.h*360),r=Math.round(n.s*100),o=Math.round(n.l*100);return this.a===1?"hsl(".concat(a,", ").concat(r,"%, ").concat(o,"%)"):"hsla(".concat(a,", ").concat(r,"%, ").concat(o,"%, ").concat(this.roundA,")")},e.prototype.toHex=function(n){return n===void 0&&(n=!1),ke(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),Zt(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(V(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(V(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="#"+ke(this.r,this.g,this.b,!1),a=0,r=Object.entries(re);a<r.length;a++){var o=r[a],i=o[0],l=o[1];if(n===l)return i}return!1},e.prototype.toString=function(n){var a=!!n;n=n??this.format;var r=!1,o=this.a<1&&this.a>=0,i=!a&&o&&(n.startsWith("hex")||n==="name");return i?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(),o=new e(n).toRgb(),i=a/100,l={r:(o.r-r.r)*i+r.r,g:(o.g-r.g)*i+r.g,b:(o.b-r.b)*i+r.b,a:(o.a-r.a)*i+r.a};return new e(l)},e.prototype.analogous=function(n,a){n===void 0&&(n=6),a===void 0&&(a=30);var r=this.toHsl(),o=360/a,i=[this];for(r.h=(r.h-(o*n>>1)+720)%360;--n;)r.h=(r.h+o)%360,i.push(new e(r));return i},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,o=a.s,i=a.v,l=[],s=1/n;n--;)l.push(new e({h:r,s:o,v:i})),i=(i+s)%1;return l},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(),o=a.a+r.a*(1-a.a);return new e({r:(a.r*a.a+r.r*r.a*(1-a.a))/o,g:(a.g*a.a+r.g*r.a*(1-a.a))/o,b:(a.b*a.a+r.b*r.a*(1-a.a))/o,a:o})},e.prototype.triad=function(){return this.polyad(3)},e.prototype.tetrad=function(){return this.polyad(4)},e.prototype.polyad=function(n){for(var a=this.toHsl(),r=a.h,o=[this],i=360/n,l=1;l<n;l++)o.push(new e({h:(r+l*i)%360,s:a.s,l:a.l}));return o},e.prototype.equals=function(n){return this.toRgbString()===new e(n).toRgbString()},e})();const Re=new y.Keyframe("toConic",{"0%":{backgroundPosition:"0 0"},"100%":{backgroundPosition:"100% 50%"}}),nn=new y.Keyframe("dockIconText",{"0%":{display:"none",opacity:0},"80%":{overflow:"hidden"},"100%":{display:"unset",opacity:1}}),an=new y.Keyframe("dockZoomIn",{"0%":{transform:"translateX(-50%) scale(0)",opacity:0},"100%":{transform:"translateX(-50%) scale(1)",opacity:1}}),rn=new y.Keyframe("dockZoomOut",{"0%":{transform:"translateX(-50%) scale(1)"},"100%":{transform:"translateX(-50%) scale(0)",opacity:0}}),Oe=e=>e===0?0:e-Math.sqrt(e**2/2),on=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 ${y.unit(e.lineWidth)} ${e.colorBorderBg}`,top:Oe(e.controlHeightLG/2),insetInlineEnd:Oe(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}}}}),ln=e=>{const n=new j(new j("rgb(0, 0, 0)").setAlpha(.06).toRgbString());return{[e.componentCls]:{"&-dock":{position:"fixed",bottom:e.marginXL,left:"50%",zIndex:e.zIndexPopupBase+80,color:e.colorWhite,transform:"translateX(-50%)",display:"flex",alignItems:"center",gap:e.sizeXS,padding:e.paddingXS,borderRadius:e.controlHeight,background:e.colorBgLayout,backdropFilter:"blur(10px)","&-zoom-appear, &-zoom-enter":{animationName:an,opacity:0,animationTimingFunction:e.motionEaseOutCirc,animationFillMode:"both",transform:"none",animationDuration:e.motionDurationMid,userSelect:"none"},"&-zoom-enter-active":{animationPlayState:"running"},"&-zoom-leave":{animationName:rn,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:nn,animationDuration:".4s",animationTimingFunction:"ease"}}}}}},sn=e=>{const{theme:n}=I.getTokenLayoutTheme(e);return{[e.componentCls]:{"&-body-title":{margin:0,marginBlockEnd:e.marginSM,fontSize:"14px",lineHeight:"22px",fontWeight:800,color:e.colorText},"&-block-checkbox":{display:"flex",minHeight:42,gap:e.marginSM,"& &-item":{position:"relative",width:"44px",height:"36px",overflow:"hidden",borderRadius:"4px",boxShadow:`
|
|
12
|
+
(function(x,t){typeof exports=="object"&&typeof module<"u"?t(exports,require("vue"),require("@gx-design-vue/pro-hooks"),require("@gx-design-vue/pro-provider"),require("@gx-design-vue/pro-utils"),require("ant-design-vue"),require("@gx-design-vue/pro-layout"),require("ant-design-vue/es/theme/themes/dark/colorAlgorithm"),require("@ant-design/icons-vue"),require("@vueuse/core"),require("@gx-design-vue/pro-modal"),require("vue-router"),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","@gx-design-vue/pro-hooks","@gx-design-vue/pro-provider","@gx-design-vue/pro-utils","ant-design-vue","@gx-design-vue/pro-layout","ant-design-vue/es/theme/themes/dark/colorAlgorithm","@ant-design/icons-vue","@vueuse/core","@gx-design-vue/pro-modal","vue-router","lodash-es","@gx-design-vue/scrollbar","@gx-design-vue/color-picker","dayjs","dayjs/locale/zh-cn"],t):(x=typeof globalThis<"u"?globalThis:x||self,t(x.proLayoutComponents={},x.vue,x.proHooks,x.proProvider,x.proUtils,x.antDesignVue,x.proLayout,x.colorAlgorithm,x.iconsVue,x.core,x.proModal,x.vueRouter,x.lodashEs,x.scrollbar,x.colorPicker,x.dayjs))})(this,(function(x,t,k,y,c,b,I,de,C,M,ue,ze,$,he,fe,z){"use strict";const H={appList:{type:Array,default:void 0},onItemClick:Function},ge=t.defineComponent({props:{hashId:String,baseClassName:String,appList:H.appList,onItemClick:H.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(ge,{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(pe,{logo:n.icon},null),t.createVNode("div",null,[t.createVNode("div",null,[n.title]),n.desc?t.createVNode("span",null,[n.desc]):null])])]))])])}}),Le=(e,n)=>{if(e&&typeof e=="string"&&c.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},me=t.defineComponent({props:{hashId:String,baseClassName:String,appList:H.appList,onItemClick:H.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(me,{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"},[Le(n.icon,n.title),t.createVNode("div",null,[t.createVNode("div",null,[n.title])])])]))])])}}),Pe=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":y.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"}}}}}}),_e=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"}}}}}}),He=e=>({[e.componentCls]:{"&-simple":_e(e),"&-default":Pe(e)}}),De=e=>{const{theme:n}=I.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"?de.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"?de.getAlphaColor("#fff",.12):e.layout?.colorBgAppListIconHover}},"&-item-title":{marginInlineStart:"16px",marginInlineEnd:"8px",marginBlockStart:0,marginBlockEnd:"12px",fontWeight:600,color:"rgba(0, 0, 0, 0.88)",fontSize:16,opacity:.85,lineHeight:1.5,"&:first-child":{marginBlockStart:12}},"&-popover":{width:"max-content",maxWidth:"100vw",[`${e.antCls}-popover-arrow`]:{display:"none"}}}}},je=t.defineComponent({props:H,emits:["itemClick"],setup(e){const n=c.getPrefixCls({suffixCls:"layout-app",isPor:!0}),{wrapSSR:a,hashId:r}=y.useProStyle("AppsLogoList",[He],n),o=i=>{e.onItemClick?.(i)};return()=>e.appList?.some(l=>!l?.desc)?a(t.createVNode(me,{hashId:r.value,appList:e.appList,onItemClick:e.onItemClick?o:void 0,baseClassName:`${n}-simple`},null)):a(t.createVNode(ge,{hashId:r.value,appList:e.appList,onItemClick:e.onItemClick?o:void 0,baseClassName:`${n}-default`},null))}}),We=()=>t.createVNode(C.AppstoreOutlined,null,null),pe=({logo:e})=>typeof e=="string"?t.createVNode("img",{width:"auto",height:22,src:e,alt:"logo"},null):typeof e=="function"?e():e,Ge=t.defineComponent({name:"AppsLogoIcon",inheritAttrs:!1,props:H,setup(e){const n=c.getPrefixCls({suffixCls:"layout-app",isPor:!0}),{wrapSSR:a,hashId:r}=y.useProStyle("AppsLogoIcon",[De],n),[o,i]=k.useState(!1),l=t.ref(),s=t.ref();return()=>a(t.createVNode(t.Fragment,null,[t.createVNode("div",{ref:l,onClick:u=>{u.stopPropagation(),u.preventDefault()}},null),t.createVNode(b.Popover,{placement:"bottomRight",trigger:["click"],arrow:!1,destroyTooltipOnHide:!0,open:o.value,onOpenChange:i,overlayClassName:`${n}-popover ${r.value}`.trim(),content:t.createVNode(je,e,null),getPopupContainer:()=>l.value||document.body},{default:()=>[t.createVNode("span",{ref:s,onClick:u=>{u.stopPropagation()},class:c.classNames(`${n}-icon`,r.value,{[`${n}-icon-active`]:o.value})},[t.createVNode(We,null,null)])]})]))}});function W(){return W=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},W.apply(null,arguments)}var be=(function(){if(typeof Map<"u")return Map;function e(n,a){var r=-1;return n.some(function(o,i){return o[0]===a?(r=i,!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),o=this.__entries__[r];return o&&o[1]},n.prototype.set=function(a,r){var o=e(this.__entries__,a);~o?this.__entries__[o][1]=r:this.__entries__.push([a,r])},n.prototype.delete=function(a){var r=this.__entries__,o=e(r,a);~o&&r.splice(o,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 o=0,i=this.__entries__;o<i.length;o++){var l=i[o];a.call(r,l[1],l[0])}},n})()})(),te=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")()})(),qe=(function(){return typeof requestAnimationFrame=="function"?requestAnimationFrame.bind(Z):function(e){return setTimeout(function(){return e(Date.now())},1e3/60)}})(),Ke=2;function Xe(e,n){var a=!1,r=!1,o=0;function i(){a&&(a=!1,e()),r&&s()}function l(){qe(i)}function s(){var u=Date.now();if(a){if(u-o<Ke)return;r=!0}else a=!0,r=!1,setTimeout(l,n);o=u}return s}var Ze=20,Ye=["top","right","bottom","left","width","height","size","weight"],Qe=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=Xe(this.refresh.bind(this),Ze)}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(){!te||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),Qe?(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(){!te||!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,o=Ye.some(function(i){return!!~r.indexOf(i)});o&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e})(),ye=(function(e,n){for(var a=0,r=Object.keys(n);a<r.length;a++){var o=r[a];Object.defineProperty(e,o,{value:n[o],enumerable:!1,writable:!1,configurable:!0})}return e}),D=(function(e){var n=e&&e.ownerDocument&&e.ownerDocument.defaultView;return n||Z}),Ne=Q(0,0,0,0);function Y(e){return parseFloat(e)||0}function xe(e){for(var n=[],a=1;a<arguments.length;a++)n[a-1]=arguments[a];return n.reduce(function(r,o){var i=e["border-"+o+"-width"];return r+Y(i)},0)}function Ue(e){for(var n=["top","right","bottom","left"],a={},r=0,o=n;r<o.length;r++){var i=o[r],l=e["padding-"+i];a[i]=Y(l)}return a}function et(e){var n=e.getBBox();return Q(0,0,n.width,n.height)}function tt(e){var n=e.clientWidth,a=e.clientHeight;if(!n&&!a)return Ne;var r=D(e).getComputedStyle(e),o=Ue(r),i=o.left+o.right,l=o.top+o.bottom,s=Y(r.width),u=Y(r.height);if(r.boxSizing==="border-box"&&(Math.round(s+i)!==n&&(s-=xe(r,"left","right")+i),Math.round(u+l)!==a&&(u-=xe(r,"top","bottom")+l)),!at(e)){var h=Math.round(s+i)-n,d=Math.round(u+l)-a;Math.abs(h)!==1&&(s-=h),Math.abs(d)!==1&&(u-=d)}return Q(o.left,o.top,s,u)}var nt=(function(){return typeof SVGGraphicsElement<"u"?function(e){return e instanceof D(e).SVGGraphicsElement}:function(e){return e instanceof D(e).SVGElement&&typeof e.getBBox=="function"}})();function at(e){return e===D(e).document.documentElement}function rt(e){return te?nt(e)?et(e):tt(e):Ne}function ot(e){var n=e.x,a=e.y,r=e.width,o=e.height,i=typeof DOMRectReadOnly<"u"?DOMRectReadOnly:Object,l=Object.create(i.prototype);return ye(l,{x:n,y:a,width:r,height:o,top:a,right:n+r,bottom:o+a,left:n}),l}function Q(e,n,a,r){return{x:e,y:n,width:a,height:r}}var it=(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=rt(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})(),lt=(function(){function e(n,a){var r=ot(a);ye(this,{target:n,contentRect:r})}return e})(),st=(function(){function e(n,a,r){if(this.activeObservations_=[],this.observations_=new be,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 D(n).Element))throw new TypeError('parameter 1 is not of type "Element".');var a=this.observations_;a.has(n)||(a.set(n,new it(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 D(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 lt(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})(),Ce=typeof WeakMap<"u"?new WeakMap:new be,Se=(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 st(n,a,this);Ce.set(this,r)}return e})();["observe","unobserve","disconnect"].forEach(function(e){Se.prototype[e]=function(){var n;return(n=Ce.get(this))[e].apply(n,arguments)}});var ct=(function(){return typeof Z.ResizeObserver<"u"?Z.ResizeObserver:Se})();const dt=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},ut=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 o=null,i=null;const l=()=>{i&&(i.disconnect(),i=null)},s=d=>{const{onResize:m}=e,N=d[0].target,{width:v,height:T}=N.getBoundingClientRect(),{offsetWidth:A,offsetHeight:w}=N,f=Math.floor(v),p=Math.floor(T);if(r.width!==f||r.height!==p||r.offsetWidth!==A||r.offsetHeight!==w){const S={width:f,height:p,offsetWidth:A,offsetHeight:w};W(r,S),m&&Promise.resolve().then(()=>{m(W(W({},S),{offsetWidth:A,offsetHeight:w}),N)})}},u=t.getCurrentInstance(),h=()=>{const{disabled:d}=e;if(d){l();return}const m=dt(u);m!==o&&(l(),o=m),!i&&m&&(i=new ct(s),i.observe(m))};return t.onMounted(()=>{h()}),t.onUpdated(()=>{h()}),t.onUnmounted(()=>{l()}),t.watch(()=>e.disabled,()=>{h()},{flush:"post"}),()=>{var d;return(d=a.default)===null||d===void 0?void 0:d.call(a)[0]}}}),ht={moon:t.defineAsyncComponent(()=>Promise.resolve().then(()=>gn)),sunny:t.defineAsyncComponent(()=>Promise.resolve().then(()=>mn)),paintbrush:t.defineAsyncComponent(()=>Promise.resolve().then(()=>pn)),palette:t.defineAsyncComponent(()=>Promise.resolve().then(()=>bn))},G=t.defineComponent({inheritAttrs:!1,props:{...I.defaultIconProps,type:{type:String,required:!0}},setup(e){return()=>t.createVNode(I.GIcon,t.mergeProps(e,{type:e.type,components:ht}),null)}}),ne={dataSource:{type:Array,default:()=>[]},historyKey:String},ve=()=>({...ne,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 ft(e,n){const a=new Map;return e.filter(r=>{const o=r[n];return a.has(o)?!1:(a.set(o,r),!0)})}function gt(e){return e?/^https?:\/\/.*$/.test(e):!1}const mt=new Set(["$","(",")","*","+",".","?","[","\\","]","^","{","|","}"]),pt=({className:e,value:n})=>n?t.createVNode(b.Empty,{image:b.Empty.PRESENTED_IMAGE_SIMPLE,description:`未找到搜索结果 "${n}"`},null):t.createVNode("div",{class:e},[t.createTextVNode("没有搜索历史")]),bt=t.defineComponent({props:{...ne,className:String,hashId:String,keyword:String,onClose:Function},setup(e){const n=ze.useRouter(),a=M.useLocalStorage(e.historyKey||c.getPrefixCls({suffixCls:"layout-search-history",isPor:!0}),[]),r=t.ref(0),o=t.ref([]),i=M.useThrottleFn(l,200);function l(f){if(f=f.trim(),!f){o.value=[];return}const p=m(f),S=[];e.dataSource.forEach(O=>{if(O.meta?.hideInMenu)return;const K=O.meta?.title||O.name||"";if(p.test(K.toLowerCase())){let g=[];const X=O?.key?.split("-")||[];for(let _=0;_<X.length;_++)g.push(X.slice(0,_+1).join("-"));g=g.map(_=>e.dataSource.find(se=>se?.key===_)?.meta?.title||""),S.push(c.merge(O,{meta:{title:g.join("**")}}))}}),o.value=S,S.length>0&&(r.value=0),r.value=0}t.watch(()=>e.keyword,f=>{f?i(f):o.value=[...a.value]});function s(){o.value=[],e.onClose?.()}function u(){const f=document.querySelector(`[data-search-item="${r.value}"]`);f&&f.scrollIntoView({block:"nearest"})}async function h(){if(o.value.length===0)return;const f=o.value,p=r.value;if(f.length===0||p<0)return;const S=f[p];S&&(a.value.push(S),s(),await t.nextTick(),gt(S.path)?window.open(S.path,"_blank"):n.push({path:S.path,replace:!0}))}function d(f){return mt.has(f)?`\\${f}`:f}function m(f){const p=[...f].map(S=>d(S)).join(".*");return new RegExp(`.*${p}.*`)}function N(){o.value.length!==0&&(r.value--,r.value<0&&(r.value=o.value.length-1),u())}function v(){o.value.length!==0&&(r.value++,r.value>o.value.length-1&&(r.value=0),u())}t.onMounted(()=>{a.value.length>0&&(o.value=a.value),M.onKeyStroke("Enter",h),M.onKeyStroke("ArrowUp",N),M.onKeyStroke("ArrowDown",v)});function T(f){r.value=f}function A(f,p){f.stopPropagation(),e.keyword?o.value.splice(p,1):a.value.splice(p,1),r.value=r.value-1>=0?r.value-1:0,u()}const w=f=>c.classNames(`${e.className}${f?`-${f}`:""}`,e.hashId);return()=>t.createVNode(t.Fragment,null,[o.value.length>0?t.createVNode(t.Fragment,null,[a.value.length>0&&!e.keyword&&t.createVNode("div",{class:w("panel-title")},[t.createTextVNode("搜索历史")]),t.createVNode("div",{class:w("panel-list")},[ft(o.value,"path").map((f,p)=>t.createVNode("div",{key:f.name,class:w(c.classNames("panel-item",p===r.value&&"active")),"data-search-item":p,onClick:()=>h(),onMouseenter:()=>T(p)},[t.createVNode("div",{class:w("panel-item-left")},[t.createVNode(I.LazyIcon,t.mergeProps(f.meta||{},{icon:f.meta?.icon||t.createVNode(C.MenuOutlined,null,null),classNames:w("panel-icon")}),null),f.meta?.title?.split("**")?.map((S,O)=>t.createVNode(t.Fragment,null,[S,O<f.meta?.title?.split("**")?.length-1&&t.createVNode(C.ArrowRightOutlined,null,null)])),t.createVNode("span",null,null)]),t.createVNode(C.CloseOutlined,{onClick:S=>A(S,p)},null)]))])]):t.createVNode(pt,{className:w("result"),value:e.keyword},null)])}}),yt=e=>({[e.componentCls]:{display:"flex",alignItems:"center",justifyContent:"center",height:36,gap:12,cursor:"pointer",fontSize:e.fontSizeSM,color:e.colorTextTertiary,paddingBlock:e.paddingXXS/2,paddingInline:e.paddingXS,borderRadius:e.borderRadiusLG*2,backgroundColor:e.layout?.header?.colorBgRightActionsItemHover,transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,">.anticon":{fontSize:e.fontSize,color:e.colorTextTertiary},"&-word":{lineHeight:e.lineHeight},"&-word-icon":{padding:"4px 6px",lineHeight:y.unit(e.fontSizeSM),borderTopLeftRadius:e.borderRadiusSM,borderBottomLeftRadius:e.borderRadiusSM,borderTopRightRadius:e.borderRadiusLG*2,borderBottomRightRadius:e.borderRadiusLG*2,backgroundColor:e.colorBgContainer},"&:hover":{color:e.colorTextSecondary},"&-panel":{"&-title":{color:e.colorTextQuaternary,lineHeight:e.lineHeight,marginBlockEnd:e.marginXS},"&-list":{display:"flex",flexDirection:"column",gap:12},"&-item":{display:"flex",alignItems:"center",justifyContent:"space-between",cursor:"pointer",fontSize:e.fontSize,lineHeight:e.lineHeight,padding:e.paddingXS,borderRadius:e.borderRadiusLG,backgroundColor:e.colorBgContainer,transition:`all ${e.motionDurationFast} ${e.motionEaseInOut}`,"&-left":{display:"flex",alignItems:"center",gap:e.sizeStep},"&.active":{backgroundColor:e.colorPrimary,color:e.colorTextLightSolid}}},"&-result":{display:"flex",alignItems:"center",justifyContent:"center",paddingBlockStart:60,color:e.colorTextQuaternary},"&-modal-footer":{display:"flex",alignItems:"center",gap:e.marginXS,fontSize:12,color:e.colorTextSecondary},"&-modal-footer-icon":{display:"flex",alignItems:"center",gap:4}}});function Nt(e){return y.useStyle("SearchPageInput",n=>{const a=y.mergeToken(n,{});return[yt(a)]},e)}const xt=({className:e,hashId:n})=>t.createVNode("div",{class:c.classNames(`${e}-footer`,n)},[t.createVNode("div",{class:c.classNames(`${e}-footer-icon`,n)},[t.createVNode(C.EnterOutlined,null,null),t.createTextVNode("选择")]),t.createVNode("div",{class:c.classNames(`${e}-footer-icon`,n)},[t.createVNode(C.ArrowUpOutlined,null,null),t.createVNode(C.ArrowUpOutlined,{rotate:180},null),t.createTextVNode("导航")])]),Ct=t.defineComponent({name:"SearchPageInput",props:{...ne,dark:{type:Boolean,default:void 0},disabledShortKey:{type:Boolean,default:!1}},setup(e){const n=c.getPrefixCls({suffixCls:"page-search",isPor:!0}),{wrapSSR:a,hashId:r}=Nt(n),[o,i]=k.useState(""),[l,s]=k.useState(!1),u=I.useProLayoutContext(),h=M.useMagicKeys(),d=c.isWindowsOs()?h["ctrl+k"]:h["cmd+k"],m=t.ref(),N=t.computed(()=>c.getLevelData(e.dataSource?.length?e.dataSource:u?.menuProps?.value?.menuData));M.whenever(d,()=>{e.disabledShortKey||s(!0)}),M.whenever(l,()=>{t.nextTick(()=>{m.value?.focus()})});const v=()=>{s(!1),o.value=""};return()=>{const T={className:`${n}`,hashId:r.value},A=`${n}-modal`;return a(t.createVNode(t.Fragment,null,[t.createVNode("div",{class:c.classNames(n,r.value),onClick:()=>s(!0)},[t.createVNode(C.SearchOutlined,null,null),t.createVNode("span",{class:c.classNames(`${n}-word`,r.value)},[t.createTextVNode("搜索")]),t.createVNode("span",{class:c.classNames(`${n}-word-icon`,r.value)},[t.createTextVNode("⌘")," ",t.createVNode("kbd",null,[t.createTextVNode("K")])])]),t.createVNode(ue.GProModal,{class:c.classNames(`${A}`,r.value),width:600,scrollProps:{maxHeight:400,minHeight:200},centered:!1,title:t.createVNode(b.Input,{style:{width:`${600*.8}px`,padding:0},ref:m,bordered:!1,size:"large",placeholder:"搜索导航菜单",value:o.value,prefix:t.createVNode(C.SearchOutlined,null,null),onChange:w=>i(w.target.value)},null),open:l.value,footer:t.createVNode(xt,{className:A,hashId:r.value},null),onCancel:()=>v()},{default:()=>[t.createVNode(bt,t.mergeProps(T,{keyword:o.value,dataSource:N.value,onClose:()=>v()}),null)]})]))}}}),St=e=>({[`${e.componentCls}`]:{"&-header-actions":{display:"flex",alignItems:"center",justifyContent:"flex-end",height:"100%",gap:e.paddingXS,"&-item":{display:"inline-flex",alignItems:"center",justifyContent:"center",paddingBlock:0,paddingInline:2,color:e.layout?.header?.colorTextRightActionsItem,fontSize:14,cursor:"pointer",borderRadius:e.borderRadius,".anticon":{color:e.layout?.header?.colorTextRightActionsItem,transition:`color ${e.motionDurationMid}, background-color ${e.motionDurationMid}`,"&:hover":{color:e.layout?.header?.colorTextRightActionsItemHover}},[`&${e.componentCls}-header-actions-theme`]:{fontSize:18,[`${e.componentCls}-header-actions-icon`]:{paddingInline:4,paddingBlock:4}},"> *":{paddingInline:6,paddingBlock:6,borderRadius:e.borderRadius,transition:`color ${e.motionDurationMid}, background-color ${e.motionDurationMid}`,"&:hover":{color:e.layout?.header?.colorTextRightActionsItemHover,backgroundColor:e.layout?.header?.colorBgRightActionsItemHover}}},[`&>${e.antCls}-dropdown-trigger`]:{color:e.colorTextTertiary,paddingInline:8,paddingBlock:8,cursor:"pointer",display:"flex",alignItems:"center",height:44,lineHeight:y.unit(44),borderRadius:e.borderRadius,paddingInlineEnd:e.padding,"&:hover":{backgroundColor:y.setAlpha(e.colorTextBase,.03)}},"&-avatar":{display:"inline-flex",alignItems:"center",justifyContent:"center",paddingInlineStart:e.padding,paddingInlineEnd:e.padding,cursor:"pointer",color:e.layout?.header?.colorTextRightActionsItem,[`${e.componentCls}-header-actions-name`]:{marginInlineStart:8},"> div":{height:"44px",color:e.layout?.header?.colorTextRightActionsItem,paddingInline:8,paddingBlock:8,cursor:"pointer",display:"flex",alignItems:"center",lineHeight:"44px",borderRadius:e.borderRadius,"&:hover":{backgroundColor:e.layout?.header?.colorBgRightActionsItemHover}}}}}});function vt(e){return y.useStyle("RightContent",n=>{const a=y.mergeToken(n);return[St(a)]},e)}const wt=t.defineComponent({name:"GlobalRightContent",props:ve(),inheritAttrs:!1,emits:{clickSettings:e=>e.length>0,logout:e=>typeof e=="function"},slots:Object,setup(e,{slots:n}){const{isFullscreen:a,toggle:r}=M.useFullscreen(),o=I.useProLayoutContext(),i=k.useMediaQuery(),{setTheme:l,isDark:s,resolvedTheme:u}=I.useThemeContext(),h=c.getPrefixCls({suffixCls:"global",isPor:!0}),{wrapSSR:d,hashId:m}=vt(h),N=t.ref(),[v,T]=k.useState(!1),[A,w]=k.useState("auto"),f=t.computed(()=>c.isBoolean(o?.isMobile?.value)?o?.isMobile?.value:i.value==="sm"||i.value==="xs"),p=t.computed(()=>e.actions===!1?{}:{...{lock:!0,theme:!0,search:!0,settings:!0,fullScreen:!0},...e.actions}),S=M.useDebounceFn(async g=>{w(g)},160),O=()=>{N.value&&I.toggleAnimateTheme(N.value,{isDark:u.value==="light",setTheme:l})};function K(g){c.isFunction(e.onClickSettings)&&e.onClickSettings?.(g)}return()=>{const g=c.getSlotsProps({slots:n,props:e,keys:["dropdownRender","dropdownMenuRender","dropdownMenuExtraItemRender"],render:!0}),X=c.getSlot({slots:n,props:e,key:"actionsRender"}),_=a.value?C.CompressOutlined:C.ExpandOutlined,se=p.value.lock?t.defineAsyncComponent(()=>Promise.resolve().then(()=>Vn)):t.createVNode("div",null,null);return d(t.createVNode("div",{class:`${h}-right-content ${m.value}`.trim(),style:{minWidth:A.value,height:"100%"}},[t.createVNode("div",{style:{height:"100%"}},[t.createVNode(ut,{key:"resize-observer",onResize:({width:ce})=>{S(ce)}},{default:()=>[t.createVNode("div",{class:`${h}-header-actions ${m.value}`.trim()},[n.default?.()??t.createVNode(t.Fragment,null,[p.value.search&&!f.value&&t.createVNode(Ct,{dataSource:e.dataSource,disabledShortKey:e.shortsKey?.disabled},null),p.value.theme&&t.createVNode("div",{ref:N,class:`${h}-header-actions-item ${h}-header-actions-theme ${m.value}`.trim()},[t.createVNode(G,{class:`${h}-header-actions-icon ${m.value}`.trim(),type:s.value?"moon":"sunny",onClick:()=>O()},null)]),p.value.settings&&!f.value&&t.createVNode("div",{class:`${h}-header-actions-item ${m.value}`.trim()},[t.createVNode(C.SettingOutlined,{onClick:()=>K("settings")},null)]),p.value.fullScreen&&!f.value&&t.createVNode("div",{class:`${h}-header-actions-item ${m.value}`.trim()},[t.createVNode(_,{onClick:()=>r()},null)]),X?X?.([`${h}-header-actions-item`,m.value]):null]),t.createVNode(b.Dropdown,t.mergeProps({placement:"bottomRight"},e.dropdownProps,{overlay:g.dropdownMenuRender||t.createVNode(b.Menu,null,{default:()=>[g.dropdownMenuExtraItemRender,p.value.lock&&t.createVNode(t.Fragment,null,[t.createVNode(b.MenuItem,{key:"lock",icon:t.createVNode(C.LockOutlined,null,null),onClick:()=>T(!0)},{default:()=>[t.createTextVNode("锁定屏幕")]}),t.createVNode(b.Menu.Divider,null,null)]),t.createVNode(b.MenuItem,{key:"logout",icon:t.createVNode(C.LogoutOutlined,null,null),onClick:()=>e.onLogout?.()},{default:()=>[t.createTextVNode("退出登录")]})]})}),{default:()=>[g.dropdownRender||t.createVNode("div",{class:`${h}-header-actions-avatar ${m.value}`.trim()},[t.createVNode(b.Avatar,{size:28,icon:t.createVNode(C.UserOutlined,null,null),src:e.avatar},null),t.createVNode("span",{class:`${h}-header-actions-name ${m.value}`.trim()},[e.name])])]})])]})]),t.createVNode(se,{open:v.value,onOpenChange:ce=>T(ce)},null)]))}}}),{provideContext:Vt,useInjectContext:L}=y.useContext("theme-editor"),we={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(G,{type:"moon"},null),t.createTextVNode("亮色")])},{value:"dark",label:()=>t.createVNode("div",{style:{display:"flex",alignItems:"center",gap:"6px"}},[t.createVNode(G,{type:"sunny"},null),t.createTextVNode("深色")])},{value:"system",label:()=>t.createVNode("div",{style:{display:"flex",alignItems:"center",gap:"6px"}},[t.createVNode(C.DesktopOutlined,null,null),t.createTextVNode("自动")])}],Tt=[{key:"light",title:"亮色"},{key:"dark",title:"深色"}],Me=[{key:"side",title:"侧边菜单布局"},{key:"mix",title:"混合菜单布局"},{key:"top",title:"顶部菜单布局"},{key:"wide",title:"定宽菜单布局"},{key:"simple",title:"简单菜单布局"}],It=[{label:"fixedHeader",title:"固定 Header"},{label:"fixSiderbar",title:"固定侧边菜单"},{label:"splitMenus",title:"自动分割菜单"}],At=[{label:"showTabsBar",title:"多标签"},{label:"fixedTabsBar",title:"固定多标签"}],kt=[{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:"酱紫"}],Bt=t.defineComponent({name:"BlockCheckbox",props:{value:String,list:{type:Array,default:()=>[]},configType:String,onChange:Function},setup(e){const{hashId:n,prefixCls:a}=L();return()=>{const r=`${a}-block-checkbox`;return t.createVNode("div",{class:[r,n.value]},[e.list.map(o=>t.createVNode(b.Tooltip,{title:o.title,key:o.key},{default:()=>[t.createVNode("div",{class:c.classNames(n.value,`${r}-item`,`${r}-item-${o.key}`,`${r}-${e.configType}-item`),onClick:i=>e.onChange?.(o.key,i)},[o.key==="wide"&&t.createVNode("div",{class:[`${r}-item-${o.key}-content`,n.value]},null),t.createVNode(C.CheckOutlined,{class:`${r}-selectIcon ${n.value}`.trim(),style:{display:e.value===o.key?"block":"none"}},null),o?.icon?t.createVNode("div",{class:`${r}-icon ${n.value}`.trim()},[o.icon]):null])]}))])}}}),J=t.defineComponent({name:"RegionalChange",props:{label:String,value:Boolean,valueKey:String,disabled:Boolean,onChange:Function},setup(e){const{hashId:n,prefixCls:a}=L();return()=>t.createVNode(b.List,{class:`${a}-list ${n.value}`.trim(),split:!1,size:"small",renderItem:({item:r})=>t.createVNode(b.Tooltip,{title:r.disabled?r.disabledReason:"",placement:"left"},{default:()=>[t.createVNode(b.List.Item,{actions:[r.action]},{default:()=>[t.createVNode("span",{style:{opacity:r.disabled?.5:1}},[r.title])]})]}),dataSource:[{title:e.label,action:t.createVNode(b.Switch,{size:"small",disabled:e.disabled,checked:!!e.value,onChange:r=>{e.onChange&&e.onChange(e.valueKey,r)}},null)}]},null)}}),Rt=["copyButton","progress","weakMode","extraSettingState"],Ot=t.defineComponent({props:{...we,...$.pick(Ve,["copyButton","progress","weakMode","extraSettingState"]),disabled:Object,theme:[Boolean,String],onChangeTheme:Function,onChangeConfig:Function,onChangeExtraConfig:Function},setup(e){const{hashId:n,drawerClass:a,prefixCls:r}=L(),o=I.useProLayoutContext(),{copy:i,copied:l,isSupported:s}=M.useClipboard(),u=t.computed(()=>o?.settings?.value);t.watch(l,d=>{d&&b.message.success("拷贝成功,请到 config/default/themeConfig.js 中替换默认配置")});const h=()=>{s.value&&i(JSON.stringify(u.value))};return()=>t.createVNode(b.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:c.classNames([`${a}-wrapper`,n.value])},[t.createVNode(he.GScrollbars,null,{default:()=>[t.createVNode("div",{class:c.classNames([`${a}-content`,n.value])},[t.createVNode("div",{class:c.classNames([`${r}-card`,n.value])},[t.createVNode("div",{class:c.classNames(`${r}-card-header`,n.value)},[t.createVNode("div",{class:c.classNames(`${r}-card-header-title`,n.value)},[t.createTextVNode("系统配置")]),t.createVNode("div",{class:c.classNames(`${r}-card-header-subtitle`,n.value)},[u.value?.title])]),t.createVNode("div",{class:c.classNames(`${r}-card-content`,n.value)},[t.createVNode(q,{prefixCls:`${r}`,hashId:n.value,title:"整体风格"},{default:()=>[t.createVNode(b.Segmented,{value:e.theme,options:Mt,onChange:d=>e.onChangeTheme?.(d)},null)]}),t.createVNode(b.Divider,null,null),t.createVNode(q,{hashId:n.value,prefixCls:r,title:"导航模式"},{default:()=>[t.createVNode(Bt,{value:o?.settings?.value.layout,key:"layout",configType:"layout",list:Me,onChange:d=>e.onChangeConfig?.({layout:d})},null)]}),It.map(({label:d,title:m})=>t.createVNode(J,{label:m,valueKey:d,value:o?.settings?.value[d],disabled:e.disabled?.[d],onChange:(N,v)=>e.onChangeConfig?.({[N]:v})},null)),t.createVNode(b.Divider,null,null),t.createVNode(q,{hashId:n.value,prefixCls:r,title:"其他设置"},{default:()=>[At.map(({label:d,title:m})=>t.createVNode(J,{label:m,valueKey:d,value:o?.settings?.value[d],disabled:e.disabled?.[d],onChange:(N,v)=>e.onChangeConfig?.({[N]:v})},null)),e.weakMode&&t.createVNode(J,{label:"色弱模式",valueKey:"colorWeak",value:e.extraSettingState?.colorWeak,onChange:(d,m)=>e.onChangeExtraConfig?.({[d]:m})},null),e.progress&&t.createVNode(J,{label:"顶部进度条",valueKey:"progress",value:e.extraSettingState?.progress,onChange:(d,m)=>e.onChangeExtraConfig?.({[d]:m})},null)]}),e.copyButton&&t.createVNode(b.Divider,null,null),t.createVNode("div",{style:{display:"flex",gap:"10px"}},[e.copyButton&&t.createVNode(b.Button,{onClick:()=>h(),block:!0},{default:()=>[t.createVNode(C.CopyOutlined,null,null),t.createTextVNode("拷贝设置")]}),t.createVNode(b.Button,{block:!0},{default:()=>[t.createVNode(C.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:e.layout?.header?.colorBgRightActionsItemHover},svg:{fontSize:48,borderRadius:9},"&-title":{fontSize:e.fontSizeSM,marginBlockStart:e.marginXXS-2,lineHeight:"20px",color:e.colorText}},"&-content":{flex:1,height:`calc(100% - ${e.paddingXS}px)`,color:e.colorText,marginInlineEnd:e.marginXS,borderRadius:e.borderRadius*2,backgroundColor:e.layout?.header?.colorBgRightActionsItemHover}}}),Et=t.defineComponent({props:{activeKey:{type:String,default:""},dataSource:{type:Array,default:()=>[]},renderItem:{type:Function},renderContent:{type:Function},onChange:{type:Function}},setup(e){const n=c.getPrefixCls({suffixCls:"switch-tab",isPor:!0}),{wrapSSR:a,hashId:r}=y.useProStyle("SwitchTab",[$t],n),o=t.ref(e.activeKey);t.watch(()=>e.activeKey,l=>{o.value=l});function i(l){o.value=l,e.onChange?.(l)}return()=>a(t.createVNode("div",{class:c.classNames(`${n}`,r.value)},[t.createVNode("div",{class:c.classNames(`${n}-nav`,r.value)},[e.dataSource.map(l=>t.createVNode("div",{key:l.value,class:c.classNames(`${n}-panel`,r.value,o.value===l.value&&`${n}-panel-active`),onClick:()=>i(l.value)},[e.renderItem?.(l),t.createVNode("div",{class:c.classNames(`${n}-panel-title`,r.value)},[l.label])])),t.createVNode("div",{class:c.classNames(`${n}-line`,r.value),style:{top:`${88*e.dataSource.findIndex(l=>l.value===o.value)}px`}},null)]),t.createVNode("div",{class:c.classNames(`${n}-content`,r.value)},[t.createVNode(he.GScrollbars,null,{default:()=>[e.renderContent?.(o.value)]})])]))}}),{provideContext:zt,useInjectContext:Lt}=y.useContext("theme-setting"),Pt=t.defineComponent({setup(){const{prefixCls:e,hashId:n}=L(),{onChange:a}=Lt(),{token:r}=y.useProConfigContext(),o=t.computed(()=>{const i=new fe.AggregationColor(r.value.colorPrimary);return{hsb:i.toHsbString(),rgb:i.toRgbString(),hex:i.toHexString()}});return()=>t.createVNode(q,{hashId:n.value,prefixCls:e,title:"主题色"},{default:()=>[t.createVNode("div",{class:c.classNames(`${e}-color-list`,n.value)},[kt.map(i=>t.createVNode(b.Tooltip,{title:i.title,key:i.key},{default:()=>[t.createVNode("div",{class:c.classNames(`${e}-color-item`,n.value),style:{background:i.color},onClick:()=>{a?.({colorPrimary:i.color})}},[i.color.toLowerCase()===r.value.colorPrimary.toLowerCase()?t.createVNode(C.CheckOutlined,{style:{color:r.value.colorWhite,fontSize:"12px"}},null):null])]}))]),t.createVNode(fe.GColorPicker,{value:r.value.colorPrimary,onChangeComplete:i=>{a?.({colorPrimary:i.toHexString()})}},{default:()=>[t.createVNode("div",{class:c.classNames(`${e}-color-picker`,n.value)},[t.createVNode("div",{class:c.classNames(`${e}-color-picker-inner`,n.value)},[t.createVNode("div",{class:c.classNames(`${e}-color-picker-top`,n.value),style:{background:r.value.colorPrimary}},[t.createVNode("p",null,[t.createTextVNode("hsb:"),o.value.hsb]),t.createVNode("p",null,[t.createTextVNode("rgb:"),o.value.rgb])]),t.createVNode("div",{class:c.classNames(`${e}-color-picker-bottom`,n.value)},[t.createVNode("div",null,[t.createVNode("p",null,[t.createTextVNode("自定义主题颜色")]),t.createVNode("p",null,[t.createTextVNode("HEX:"),o.value.hex])]),t.createVNode(C.EditOutlined,{style:{fontSize:"18px"}},null)])])])]})]})}}),_t=t.defineComponent({setup(){const{prefixCls:e,hashId:n}=L();return()=>t.createVNode(q,{hashId:n.value,prefixCls:e,title:"侧边主题色"},null)}}),Ht=t.defineComponent({setup(){const{token:e}=y.useProConfigContext();return()=>t.createVNode("div",{style:{padding:y.unit(e.value.padding)}},[t.createVNode(Pt,null,null),t.createVNode(_t,null,null)])}}),Dt=t.defineComponent({props:{...we,onChange:{type:Function,default:void 0}},setup(e){const{hashId:n,prefixCls:a,drawerClass:r}=L(),{token:o}=y.useProConfigContext(),i=t.computed(()=>I.getTokenLayoutTheme(o.value)),l=t.computed(()=>{const s=Me.find(h=>h.key===i.value.layout)?.title;return`${Tt.find(h=>h.key===i.value.theme)?.title}/${s}`});return zt({onChange:e.onChange}),()=>{const{width:s,open:u,onOpenChange:h}=e;return t.createVNode(b.Drawer,{width:s,closable:!1,placement:"right",open:u,bodyStyle:{padding:0},maskStyle:{background:"transparent"},onClose:()=>h?.(!1)},{default:()=>[t.createVNode("div",{class:c.classNames([`${r}-wrapper`,n.value])},[t.createVNode("div",{style:{paddingInline:"8px",paddingTop:"8px"}},[t.createVNode("div",{class:c.classNames(`${a}-card-header`,n.value)},[t.createVNode("div",{class:c.classNames(`${a}-card-header-title`,n.value)},[t.createTextVNode("主题配置")]),t.createVNode("div",{class:c.classNames(`${a}-card-header-subtitle`,n.value)},[l.value])])]),t.createVNode(Et,{activeKey:"color",dataSource:[{label:"色彩",value:"color"}],renderItem:d=>{if(d.value==="color")return t.createVNode(Ft,null,null)},renderContent:d=>{if(d==="color")return t.createVNode(Ht,null,null)}},null)])]})}}}),jt=t.defineComponent({name:"Trigger",inheritAttrs:!1,props:{type:String,open:Boolean,onTypeChange:Function,onOpenChange:Function,onClose:Function},setup(e){const{prefixCls:n,hashId:a}=L();function r(o){return{width:o?y.unit(216):y.unit(48),transition:"width 0.3s"}}return()=>{const o=y.getTransitionProps(`${n}-dock-zoom`);return t.createVNode(t.Fragment,null,[t.createVNode("div",{class:c.classNames(a.value,`${n}-button`),onClick:()=>e.onOpenChange?.(!0)},[t.createVNode("sup",{class:c.classNames(a.value,`${n}-dot`)},null),t.createVNode("div",{class:c.classNames(a.value,`${n}-icon`)},[t.createVNode(G,{type:"paintbrush"},null)])]),t.createVNode(t.Transition,o,{default:()=>[t.withDirectives(t.createVNode("div",{class:c.classNames(a.value,`${n}-dock`)},[t.createVNode("div",{class:c.classNames(a.value,`${n}-dock-btn`,e.type==="setting"&&`${n}-dock-btn-active`),style:r(e.type==="setting"),onClick:()=>e.onTypeChange?.("setting")},[t.createVNode("div",{class:c.classNames(a.value,`${n}-dock-icon`)},[t.createVNode(C.SettingOutlined,null,null),e.type==="setting"&&t.createVNode("span",{class:c.classNames(a.value,`${n}-dock-icon-text`)},[t.createTextVNode("系统配置")])])]),t.createVNode("div",{class:c.classNames(a.value,`${n}-dock-btn`,e.type==="theme"&&`${n}-dock-btn-active`),style:r(e.type==="theme"),onClick:()=>e.onTypeChange?.("theme")},[t.createVNode("div",{class:c.classNames(a.value,`${n}-dock-icon`)},[t.createVNode(G,{type:"palette"},null),e.type==="theme"&&t.createVNode("span",{class:c.classNames(a.value,`${n}-dock-icon-text`)},[t.createTextVNode("主题配置")])])])]),[[t.vShow,e.open]])]})])}}});function V(e,n){Wt(e)&&(e="100%");var a=Gt(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 Wt(e){return typeof e=="string"&&e.indexOf(".")!==-1&&parseFloat(e)===1}function Gt(e){return typeof e=="string"&&e.indexOf("%")!==-1}function Te(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 P(e){return e.length===1?"0"+e:String(e)}function qt(e,n,a){return{r:V(e,255)*255,g:V(n,255)*255,b:V(a,255)*255}}function Ie(e,n,a){e=V(e,255),n=V(n,255),a=V(a,255);var r=Math.max(e,n,a),o=Math.min(e,n,a),i=0,l=0,s=(r+o)/2;if(r===o)l=0,i=0;else{var u=r-o;switch(l=s>.5?u/(2-r-o):u/(r+o),r){case e:i=(n-a)/u+(n<a?6:0);break;case n:i=(a-e)/u+2;break;case a:i=(e-n)/u+4;break}i/=6}return{h:i,s:l,l:s}}function ae(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 Kt(e,n,a){var r,o,i;if(e=V(e,360),n=V(n,100),a=V(a,100),n===0)o=a,i=a,r=a;else{var l=a<.5?a*(1+n):a+n-a*n,s=2*a-l;r=ae(s,l,e+1/3),o=ae(s,l,e),i=ae(s,l,e-1/3)}return{r:r*255,g:o*255,b:i*255}}function Ae(e,n,a){e=V(e,255),n=V(n,255),a=V(a,255);var r=Math.max(e,n,a),o=Math.min(e,n,a),i=0,l=r,s=r-o,u=r===0?0:s/r;if(r===o)i=0;else{switch(r){case e:i=(n-a)/s+(n<a?6:0);break;case n:i=(a-e)/s+2;break;case a:i=(e-n)/s+4;break}i/=6}return{h:i,s:u,v:l}}function Xt(e,n,a){e=V(e,360)*6,n=V(n,100),a=V(a,100);var r=Math.floor(e),o=e-r,i=a*(1-n),l=a*(1-o*n),s=a*(1-(1-o)*n),u=r%6,h=[a,l,i,i,s,a][u],d=[s,a,a,l,i,i][u],m=[i,i,s,a,a,l][u];return{r:h*255,g:d*255,b:m*255}}function ke(e,n,a,r){var o=[P(Math.round(e).toString(16)),P(Math.round(n).toString(16)),P(Math.round(a).toString(16))];return r&&o[0].startsWith(o[0].charAt(1))&&o[1].startsWith(o[1].charAt(1))&&o[2].startsWith(o[2].charAt(1))?o[0].charAt(0)+o[1].charAt(0)+o[2].charAt(0):o.join("")}function Zt(e,n,a,r,o){var i=[P(Math.round(e).toString(16)),P(Math.round(n).toString(16)),P(Math.round(a).toString(16)),P(Yt(r))];return o&&i[0].startsWith(i[0].charAt(1))&&i[1].startsWith(i[1].charAt(1))&&i[2].startsWith(i[2].charAt(1))&&i[3].startsWith(i[3].charAt(1))?i[0].charAt(0)+i[1].charAt(0)+i[2].charAt(0)+i[3].charAt(0):i.join("")}function Yt(e){return Math.round(parseFloat(e)*255).toString(16)}function Be(e){return B(e)/255}function B(e){return parseInt(e,16)}function Qt(e){return{r:e>>16,g:(e&65280)>>8,b:e&255}}var re={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 Jt(e){var n={r:0,g:0,b:0},a=1,r=null,o=null,i=null,l=!1,s=!1;return typeof e=="string"&&(e=tn(e)),typeof e=="object"&&(F(e.r)&&F(e.g)&&F(e.b)?(n=qt(e.r,e.g,e.b),l=!0,s=String(e.r).substr(-1)==="%"?"prgb":"rgb"):F(e.h)&&F(e.s)&&F(e.v)?(r=ee(e.s),o=ee(e.v),n=Xt(e.h,r,o),l=!0,s="hsv"):F(e.h)&&F(e.s)&&F(e.l)&&(r=ee(e.s),i=ee(e.l),n=Kt(e.h,r,i),l=!0,s="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(a=e.a)),a=Te(a),{ok:l,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 Ut="[-\\+]?\\d+%?",en="[-\\+]?\\d*\\.\\d+%?",E="(?:".concat(en,")|(?:").concat(Ut,")"),oe="[\\s|\\(]+(".concat(E,")[,|\\s]+(").concat(E,")[,|\\s]+(").concat(E,")\\s*\\)?"),ie="[\\s|\\(]+(".concat(E,")[,|\\s]+(").concat(E,")[,|\\s]+(").concat(E,")[,|\\s]+(").concat(E,")\\s*\\)?"),R={CSS_UNIT:new RegExp(E),rgb:new RegExp("rgb"+oe),rgba:new RegExp("rgba"+ie),hsl:new RegExp("hsl"+oe),hsla:new RegExp("hsla"+ie),hsv:new RegExp("hsv"+oe),hsva:new RegExp("hsva"+ie),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 tn(e){if(e=e.trim().toLowerCase(),e.length===0)return!1;var n=!1;if(re[e])e=re[e],n=!0;else if(e==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var a=R.rgb.exec(e);return a?{r:a[1],g:a[2],b:a[3]}:(a=R.rgba.exec(e),a?{r:a[1],g:a[2],b:a[3],a:a[4]}:(a=R.hsl.exec(e),a?{h:a[1],s:a[2],l:a[3]}:(a=R.hsla.exec(e),a?{h:a[1],s:a[2],l:a[3],a:a[4]}:(a=R.hsv.exec(e),a?{h:a[1],s:a[2],v:a[3]}:(a=R.hsva.exec(e),a?{h:a[1],s:a[2],v:a[3],a:a[4]}:(a=R.hex8.exec(e),a?{r:B(a[1]),g:B(a[2]),b:B(a[3]),a:Be(a[4]),format:n?"name":"hex8"}:(a=R.hex6.exec(e),a?{r:B(a[1]),g:B(a[2]),b:B(a[3]),format:n?"name":"hex"}:(a=R.hex4.exec(e),a?{r:B(a[1]+a[1]),g:B(a[2]+a[2]),b:B(a[3]+a[3]),a:Be(a[4]+a[4]),format:n?"name":"hex8"}:(a=R.hex3.exec(e),a?{r:B(a[1]+a[1]),g:B(a[2]+a[2]),b:B(a[3]+a[3]),format:n?"name":"hex"}:!1)))))))))}function F(e){return!!R.CSS_UNIT.exec(String(e))}var j=(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 o=Jt(n);this.originalInput=n,this.r=o.r,this.g=o.g,this.b=o.b,this.a=o.a,this.roundA=Math.round(100*this.a)/100,this.format=(r=a.format)!==null&&r!==void 0?r:o.format,this.gradientType=a.gradientType,this.r<1&&(this.r=Math.round(this.r)),this.g<1&&(this.g=Math.round(this.g)),this.b<1&&(this.b=Math.round(this.b)),this.isValid=o.ok}return e.prototype.isDark=function(){return this.getBrightness()<128},e.prototype.isLight=function(){return!this.isDark()},e.prototype.getBrightness=function(){var n=this.toRgb();return(n.r*299+n.g*587+n.b*114)/1e3},e.prototype.getLuminance=function(){var n=this.toRgb(),a,r,o,i=n.r/255,l=n.g/255,s=n.b/255;return i<=.03928?a=i/12.92:a=Math.pow((i+.055)/1.055,2.4),l<=.03928?r=l/12.92:r=Math.pow((l+.055)/1.055,2.4),s<=.03928?o=s/12.92:o=Math.pow((s+.055)/1.055,2.4),.2126*a+.7152*r+.0722*o},e.prototype.getAlpha=function(){return this.a},e.prototype.setAlpha=function(n){return this.a=Te(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=Ae(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=Ae(this.r,this.g,this.b),a=Math.round(n.h*360),r=Math.round(n.s*100),o=Math.round(n.v*100);return this.a===1?"hsv(".concat(a,", ").concat(r,"%, ").concat(o,"%)"):"hsva(".concat(a,", ").concat(r,"%, ").concat(o,"%, ").concat(this.roundA,")")},e.prototype.toHsl=function(){var n=Ie(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=Ie(this.r,this.g,this.b),a=Math.round(n.h*360),r=Math.round(n.s*100),o=Math.round(n.l*100);return this.a===1?"hsl(".concat(a,", ").concat(r,"%, ").concat(o,"%)"):"hsla(".concat(a,", ").concat(r,"%, ").concat(o,"%, ").concat(this.roundA,")")},e.prototype.toHex=function(n){return n===void 0&&(n=!1),ke(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),Zt(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(V(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(V(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="#"+ke(this.r,this.g,this.b,!1),a=0,r=Object.entries(re);a<r.length;a++){var o=r[a],i=o[0],l=o[1];if(n===l)return i}return!1},e.prototype.toString=function(n){var a=!!n;n=n??this.format;var r=!1,o=this.a<1&&this.a>=0,i=!a&&o&&(n.startsWith("hex")||n==="name");return i?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(),o=new e(n).toRgb(),i=a/100,l={r:(o.r-r.r)*i+r.r,g:(o.g-r.g)*i+r.g,b:(o.b-r.b)*i+r.b,a:(o.a-r.a)*i+r.a};return new e(l)},e.prototype.analogous=function(n,a){n===void 0&&(n=6),a===void 0&&(a=30);var r=this.toHsl(),o=360/a,i=[this];for(r.h=(r.h-(o*n>>1)+720)%360;--n;)r.h=(r.h+o)%360,i.push(new e(r));return i},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,o=a.s,i=a.v,l=[],s=1/n;n--;)l.push(new e({h:r,s:o,v:i})),i=(i+s)%1;return l},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(),o=a.a+r.a*(1-a.a);return new e({r:(a.r*a.a+r.r*r.a*(1-a.a))/o,g:(a.g*a.a+r.g*r.a*(1-a.a))/o,b:(a.b*a.a+r.b*r.a*(1-a.a))/o,a:o})},e.prototype.triad=function(){return this.polyad(3)},e.prototype.tetrad=function(){return this.polyad(4)},e.prototype.polyad=function(n){for(var a=this.toHsl(),r=a.h,o=[this],i=360/n,l=1;l<n;l++)o.push(new e({h:(r+l*i)%360,s:a.s,l:a.l}));return o},e.prototype.equals=function(n){return this.toRgbString()===new e(n).toRgbString()},e})();const Re=new y.Keyframe("toConic",{"0%":{backgroundPosition:"0 0"},"100%":{backgroundPosition:"100% 50%"}}),nn=new y.Keyframe("dockIconText",{"0%":{display:"none",opacity:0},"80%":{overflow:"hidden"},"100%":{display:"unset",opacity:1}}),an=new y.Keyframe("dockZoomIn",{"0%":{transform:"translateX(-50%) scale(0)",opacity:0},"100%":{transform:"translateX(-50%) scale(1)",opacity:1}}),rn=new y.Keyframe("dockZoomOut",{"0%":{transform:"translateX(-50%) scale(1)"},"100%":{transform:"translateX(-50%) scale(0)",opacity:0}}),Oe=e=>e===0?0:e-Math.sqrt(e**2/2),on=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 ${y.unit(e.lineWidth)} ${e.colorBorderBg}`,top:Oe(e.controlHeightLG/2),insetInlineEnd:Oe(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}}}}),ln=e=>{const n=new j(new j("rgb(0, 0, 0)").setAlpha(.06).toRgbString());return{[e.componentCls]:{"&-dock":{position:"fixed",bottom:e.marginXL,left:"50%",zIndex:e.zIndexPopupBase+80,color:e.colorWhite,transform:"translateX(-50%)",display:"flex",alignItems:"center",gap:e.sizeXS,padding:e.paddingXS,borderRadius:e.controlHeight,background:e.colorBgLayout,backdropFilter:"blur(10px)","&-zoom-appear, &-zoom-enter":{animationName:an,opacity:0,animationTimingFunction:e.motionEaseOutCirc,animationFillMode:"both",transform:"none",animationDuration:e.motionDurationMid,userSelect:"none"},"&-zoom-enter-active":{animationPlayState:"running"},"&-zoom-leave":{animationName:rn,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:nn,animationDuration:".4s",animationTimingFunction:"ease"}}}}}},sn=e=>{const{theme:n}=I.getTokenLayoutTheme(e);return{[e.componentCls]:{"&-body-title":{margin:0,marginBlockEnd:e.marginSM,fontSize:"14px",lineHeight:"22px",fontWeight:800,color:e.colorText},"&-block-checkbox":{display:"flex",minHeight:42,gap:e.marginSM,"& &-item":{position:"relative",width:"44px",height:"36px",overflow:"hidden",borderRadius:"4px",boxShadow:`
|
|
13
13
|
0 6px 16px 0 rgba(0, 0, 0, 0.08),
|
|
14
14
|
0 3px 6px -4px rgba(0, 0, 0, 0.12),
|
|
15
15
|
0 9px 28px 8px rgba(0, 0, 0, 0.05)
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gx-design-vue/pro-layout-components",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.1.0-beta.
|
|
4
|
+
"version": "0.1.0-beta.14",
|
|
5
5
|
"description": "Gx Design Pro Layout Components",
|
|
6
6
|
"exports": {
|
|
7
7
|
".": {
|
|
@@ -28,7 +28,7 @@
|
|
|
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.163"
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
34
|
"@gx-design-vue/color-picker": "^0.2.0-beta.38",
|