@gx-design-vue/pro-layout-components 0.1.0-beta.3 → 0.1.0-beta.4

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.
@@ -1627,7 +1627,7 @@ const ir = /* @__PURE__ */ C({
1627
1627
  slots: t,
1628
1628
  props: e,
1629
1629
  key: "actionsRender"
1630
- }), E = n.value ? Zt : Qt, f = v.value.lock ? yt(() => import("./index-DGTA64F5.js")) : i("div", null, null);
1630
+ }), E = n.value ? Zt : Qt, f = v.value.lock ? yt(() => import("./index-D7DswqyL.js")) : i("div", null, null);
1631
1631
  return c(i("div", {
1632
1632
  class: `${s}-right-content ${u.value}`.trim(),
1633
1633
  style: {
@@ -3738,7 +3738,7 @@ const G = (e, {
3738
3738
  }), {
3739
3739
  wrapSSR: a,
3740
3740
  hashId: o
3741
- } = oe("ProThemeEditor", [Di, Hi, Fi, Li, Ni, _i], r), l = Ye(n, {}), s = ce(), [c, u] = D(!1), [g, p] = D(!0), [x, B] = D("theme");
3741
+ } = oe("ProThemeEditor", [Di, Hi, Fi, Li, Ni, _i], r), l = Ye(n, {}), s = ce(), [c, u] = D(!1), [g, p] = D(!1), [x, B] = D("theme");
3742
3742
  Object.keys(l.value).length && e.onChangeSettingState?.(me({
3743
3743
  ...O(l.value)
3744
3744
  }));
@@ -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-r39WgWpL.js";
12
+ import { g as Q } from "./index-Bc7hR1Ge.js";
13
13
  f.locale("zh-cn");
14
14
  function Z() {
15
15
  const e = F({
@@ -1,15 +1,15 @@
1
1
  /*!
2
2
  * Gx Design Pro
3
- * Version: 0.1.0-beta.2
3
+ * Version: 0.1.0-beta.3
4
4
  * Author: gx12358
5
5
  * Copyright (C) 2024 gx12358
6
6
  * License: MIT License
7
7
  * Description: Gx Design Pro Layout Components
8
- * Date Created: 2025-09-28
8
+ * Date Created: 2025-09-30
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-r39WgWpL.js";
12
+ import { D as t, A as s, T as a, G as n } from "./index-Bc7hR1Ge.js";
13
13
  export {
14
14
  t as DefaultRenderLogo,
15
15
  s as GAppsLogoComponents,
@@ -1,12 +1,12 @@
1
1
  /*!
2
2
  * Gx Design Pro
3
- * Version: 0.1.0-beta.2
3
+ * Version: 0.1.0-beta.3
4
4
  * Author: gx12358
5
5
  * Copyright (C) 2024 gx12358
6
6
  * License: MIT License
7
7
  * Description: Gx Design Pro Layout Components
8
- * Date Created: 2025-09-28
8
+ * Date Created: 2025-09-30
9
9
  * Homepage:
10
10
  * Contact: gx12358@gmail.com
11
11
  */
12
- (function(C,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):(C=typeof globalThis<"u"?globalThis:C||self,t(C.proLayoutComponents={},C.vue,C.proHooks,C.proProvider,C.proUtils,C.antDesignVue,C.proLayout,C.colorAlgorithm,C.Icon,C.core,C.proModal,C.vueRouter,C.lodashEs,C.scrollbar,C.colorPicker,C.dayjs))})(this,(function(C,t,A,p,c,b,V,ne,N,T,de,He,z,ue,he,H){"use strict";const G={appList:{type:Array,default:void 0},onItemClick:Function},fe=t.defineComponent({props:{hashId:String,baseClassName:String,appList:G.appList,onItemClick:G.onItemClick},setup(e){return()=>t.createVNode("div",{class:`${e.baseClassName}-content ${e.hashId}`.trim()},[t.createVNode("ul",{class:`${e.baseClassName}-content-list ${e.hashId}`.trim()},[e.appList?.map((n,a)=>n?.children?.length?t.createVNode("div",{key:a,class:`${e.baseClassName}-content-list-item-group ${e.hashId}`.trim()},[t.createVNode("div",{class:`${e.baseClassName}-content-list-item-group-title ${e.hashId}`.trim()},[n.title]),t.createVNode(fe,{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(me,{logo:n.icon},null),t.createVNode("div",null,[t.createVNode("div",null,[n.title]),n.desc?t.createVNode("span",null,[n.desc]):null])])]))])])}}),De=(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},ge=t.defineComponent({props:{hashId:String,baseClassName:String,appList:G.appList,onItemClick:G.onItemClick},setup(e){return()=>t.createVNode("div",{class:`${e.baseClassName}-content ${e.hashId}`.trim()},[t.createVNode("ul",{class:`${e.baseClassName}-content-list ${e.hashId}`.trim()},[e.appList?.map((n,a)=>n?.children?.length?t.createVNode("div",{key:a,class:`${e.baseClassName}-content-list-item-group ${e.hashId}`.trim()},[t.createVNode("div",{class:`${e.baseClassName}-content-list-item-group-title ${e.hashId}`.trim()},[n.title]),t.createVNode(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?"javascript:;":n.url,target:n.target,rel:"noreferrer"},[De(n.icon,n.title),t.createVNode("div",null,[t.createVNode("div",null,[n.title])])])]))])])}}),_e=e=>({"&-content":{maxHeight:"calc(100vh - 48px)",overflow:"auto","&-list":{boxSizing:"content-box",maxWidth:656,marginBlock:0,marginInline:0,paddingBlock:0,paddingInline:0,listStyle:"none","&-item":{position:"relative",display:"inline-block",width:328,height:72,paddingInline:16,paddingBlock:16,verticalAlign:"top",listStyleType:"none",transition:"transform 0.2s cubic-bezier(0.333, 0, 0, 1)",borderRadius:e.borderRadius,"&-group":{marginBottom:16,"&-title":{margin:"16px 0 8px 12px",fontWeight:600,color:"rgba(0, 0, 0, 0.88)",fontSize:16,opacity:.85,lineHeight:1.5,"&:first-child":{marginTop:12}}},"&:hover":{backgroundColor:e.colorBgTextHover},"* div":p.resetComponent?.(e),a:{display:"flex",height:"100%",fontSize:12,textDecoration:"none","& > img":{width:40,height:40},"& > div":{marginInlineStart:14,color:e.colorTextHeading,fontSize:14,lineHeight:"22px",whiteSpace:"nowrap",textOverflow:"ellipsis"},"& > div > span":{color:e.colorTextSecondary,fontSize:12,lineHeight:"20px"}}}}}}),je=e=>({"&-content":{maxHeight:"calc(100vh - 48px)",overflow:"auto","&-list":{boxSizing:"border-box",maxWidth:376,marginBlock:0,marginInline:0,paddingBlock:0,paddingInline:0,listStyle:"none","&-item":{position:"relative",display:"inline-block",width:104,height:104,marginBlock:8,marginInline:8,paddingInline:24,paddingBlock:24,verticalAlign:"top",listStyleType:"none",transition:"transform 0.2s cubic-bezier(0.333, 0, 0, 1)",borderRadius:e.borderRadius,"&-group":{marginBottom:16,"&-title":{margin:"16px 0 8px 12px",fontWeight:600,color:"rgba(0, 0, 0, 0.88)",fontSize:16,opacity:.85,lineHeight:1.5,"&:first-child":{marginTop:12}}},"&:hover":{backgroundColor:e.colorBgTextHover},a:{display:"flex",flexDirection:"column",alignItems:"center",height:"100%",fontSize:12,textDecoration:"none","& > #avatarLogo":{width:40,height:40,margin:"0 auto",color:e.colorPrimary,fontSize:22,lineHeight:"40px",textAlign:"center",backgroundImage:"linear-gradient(180deg, #E8F0FB 0%, #F6F8FC 100%)",borderRadius:e.borderRadius},"& > img":{width:40,height:40},"& > div":{marginBlockStart:5,marginInlineStart:0,color:e.colorTextHeading,fontSize:14,lineHeight:"22px",whiteSpace:"nowrap",textOverflow:"ellipsis"},"& > div > span":{color:e.colorTextSecondary,fontSize:12,lineHeight:"20px"}}}}}}),We=e=>({[e.componentCls]:{"&-simple":je(e),"&-default":_e(e)}}),Ge=e=>{const{theme:n}=V.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"?ne.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"?ne.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"}}}}},qe=t.defineComponent({props:G,emits:["itemClick"],setup(e){const n=c.getPrefixCls({suffixCls:"layout-app",isPor:!0}),{wrapSSR:a,hashId:r}=p.useProStyle("AppsLogoList",[We],n),o=i=>{e.onItemClick?.(i)};return()=>e.appList?.some(l=>!l?.desc)?a(t.createVNode(ge,{hashId:r.value,appList:e.appList,onItemClick:e.onItemClick?o:void 0,baseClassName:`${n}-simple`},null)):a(t.createVNode(fe,{hashId:r.value,appList:e.appList,onItemClick:e.onItemClick?o:void 0,baseClassName:`${n}-default`},null))}}),Xe=()=>t.createVNode(N.AppstoreOutlined,null,null),me=({logo:e})=>typeof e=="string"?t.createVNode("img",{width:"auto",height:22,src:e,alt:"logo"},null):typeof e=="function"?e():e,Ke=t.defineComponent({name:"AppsLogoIcon",inheritAttrs:!1,props:G,setup(e){const n=c.getPrefixCls({suffixCls:"layout-app",isPor:!0}),{wrapSSR:a,hashId:r}=p.useProStyle("AppsLogoIcon",[Ge],n),[o,i]=A.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(qe,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(Xe,null,null)])]})]))}});function K(){return K=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},K.apply(null,arguments)}var pe=(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})()})(),ae=typeof window<"u"&&typeof document<"u"&&window.document===document,Y=(function(){return typeof global<"u"&&global.Math===Math?global:typeof self<"u"&&self.Math===Math?self:typeof window<"u"&&window.Math===Math?window:Function("return this")()})(),Ze=(function(){return typeof requestAnimationFrame=="function"?requestAnimationFrame.bind(Y):function(e){return setTimeout(function(){return e(Date.now())},1e3/60)}})(),Ye=2;function Qe(e,n){var a=!1,r=!1,o=0;function i(){a&&(a=!1,e()),r&&s()}function l(){Ze(i)}function s(){var u=Date.now();if(a){if(u-o<Ye)return;r=!0}else a=!0,r=!1,setTimeout(l,n);o=u}return s}var Je=20,Ue=["top","right","bottom","left","width","height","size","weight"],et=typeof MutationObserver<"u",tt=(function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=Qe(this.refresh.bind(this),Je)}return e.prototype.addObserver=function(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(){!ae||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),et?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},e.prototype.disconnect_=function(){!ae||!this.connected_||(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(n){var a=n.propertyName,r=a===void 0?"":a,o=Ue.some(function(i){return!!~r.indexOf(i)});o&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e})(),be=(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}),q=(function(e){var n=e&&e.ownerDocument&&e.ownerDocument.defaultView;return n||Y}),ye=J(0,0,0,0);function Q(e){return parseFloat(e)||0}function Ne(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+Q(i)},0)}function nt(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]=Q(l)}return a}function at(e){var n=e.getBBox();return J(0,0,n.width,n.height)}function rt(e){var n=e.clientWidth,a=e.clientHeight;if(!n&&!a)return ye;var r=q(e).getComputedStyle(e),o=nt(r),i=o.left+o.right,l=o.top+o.bottom,s=Q(r.width),u=Q(r.height);if(r.boxSizing==="border-box"&&(Math.round(s+i)!==n&&(s-=Ne(r,"left","right")+i),Math.round(u+l)!==a&&(u-=Ne(r,"top","bottom")+l)),!it(e)){var d=Math.round(s+i)-n,h=Math.round(u+l)-a;Math.abs(d)!==1&&(s-=d),Math.abs(h)!==1&&(u-=h)}return J(o.left,o.top,s,u)}var ot=(function(){return typeof SVGGraphicsElement<"u"?function(e){return e instanceof q(e).SVGGraphicsElement}:function(e){return e instanceof q(e).SVGElement&&typeof e.getBBox=="function"}})();function it(e){return e===q(e).document.documentElement}function lt(e){return ae?ot(e)?at(e):rt(e):ye}function st(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 be(l,{x:n,y:a,width:r,height:o,top:a,right:n+r,bottom:o+a,left:n}),l}function J(e,n,a,r){return{x:e,y:n,width:a,height:r}}var ct=(function(){function e(n){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=J(0,0,0,0),this.target=n}return e.prototype.isActive=function(){var n=lt(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})(),dt=(function(){function e(n,a){var r=st(a);be(this,{target:n,contentRect:r})}return e})(),ut=(function(){function e(n,a,r){if(this.activeObservations_=[],this.observations_=new pe,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 q(n).Element))throw new TypeError('parameter 1 is not of type "Element".');var a=this.observations_;a.has(n)||(a.set(n,new ct(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 q(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 dt(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})(),xe=typeof WeakMap<"u"?new WeakMap:new pe,Ce=(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=tt.getInstance(),r=new ut(n,a,this);xe.set(this,r)}return e})();["observe","unobserve","disconnect"].forEach(function(e){Ce.prototype[e]=function(){var n;return(n=xe.get(this))[e].apply(n,arguments)}});var ht=(function(){return typeof Y.ResizeObserver<"u"?Y.ResizeObserver:Ce})();const ft=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},gt=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=h=>{const{onResize:y}=e,x=h[0].target,{width:O,height:R}=x.getBoundingClientRect(),{offsetWidth:k,offsetHeight:v}=x,f=Math.floor(O),m=Math.floor(R);if(r.width!==f||r.height!==m||r.offsetWidth!==k||r.offsetHeight!==v){const S={width:f,height:m,offsetWidth:k,offsetHeight:v};K(r,S),y&&Promise.resolve().then(()=>{y(K(K({},S),{offsetWidth:k,offsetHeight:v}),x)})}},u=t.getCurrentInstance(),d=()=>{const{disabled:h}=e;if(h){l();return}const y=ft(u);y!==o&&(l(),o=y),!i&&y&&(i=new ht(s),i.observe(y))};return t.onMounted(()=>{d()}),t.onUpdated(()=>{d()}),t.onUnmounted(()=>{l()}),t.watch(()=>e.disabled,()=>{d()},{flush:"post"}),()=>{var h;return(h=a.default)===null||h===void 0?void 0:h.call(a)[0]}}});function mt(e){return t.createVNode("svg",t.mergeProps({xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 16 16"},e),[t.createVNode("path",{fill:"currentColor","fill-rule":"evenodd",d:"m14.489 8.388l-.001.006a.1.1 0 0 1-.027.028a.43.43 0 0 1-.264.082h-3.186c-3.118 0-4.68 3.77-2.476 5.974a6.5 6.5 0 1 1 5.953-6.09Zm-.292 1.616c.913 0 1.736-.618 1.79-1.529a8 8 0 1 0-7.032 7.468c1.243-.147 1.527-1.639.641-2.525c-1.26-1.26-.367-3.414 1.415-3.414zM10 5a1 1 0 1 1-2 0a1 1 0 0 1 2 0M6 7a1 1 0 1 0 0-2a1 1 0 0 0 0 2m0 2a1 1 0 1 1-2 0a1 1 0 0 1 2 0","clip-rule":"evenodd"},null)])}function Se(e){return t.createVNode("svg",t.mergeProps({xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24"},e),[t.createVNode("g",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2"},[t.createVNode("path",{"stroke-dasharray":"2","stroke-dashoffset":"2",d:"M12 19v1M19 12h1M12 5v-1M5 12h-1"},[t.createVNode("animate",{fill:"freeze",attributeName:"d",begin:"0.6s",dur:"0.2s",values:"M12 19v1M19 12h1M12 5v-1M5 12h-1;M12 21v1M21 12h1M12 3v-1M3 12h-1"},null),t.createVNode("animate",{fill:"freeze",attributeName:"stroke-dashoffset",begin:"0.6s",dur:"0.2s",values:"2;0"},null)]),t.createVNode("path",{"stroke-dasharray":"2","stroke-dashoffset":"2",d:"M17 17l0.5 0.5M17 7l0.5 -0.5M7 7l-0.5 -0.5M7 17l-0.5 0.5"},[t.createVNode("animate",{fill:"freeze",attributeName:"d",begin:"0.8s",dur:"0.2s",values:"M17 17l0.5 0.5M17 7l0.5 -0.5M7 7l-0.5 -0.5M7 17l-0.5 0.5;M18.5 18.5l0.5 0.5M18.5 5.5l0.5 -0.5M5.5 5.5l-0.5 -0.5M5.5 18.5l-0.5 0.5"},null),t.createVNode("animate",{fill:"freeze",attributeName:"stroke-dashoffset",begin:"0.8s",dur:"0.2s",values:"2;0"},null)]),t.createVNode("animateTransform",{attributeName:"transform",dur:"30s",repeatCount:"indefinite",type:"rotate",values:"0 12 12;360 12 12"},null)]),t.createVNode("mask",{id:"lineMdMoonAltToSunnyOutlineLoopTransition0"},[t.createVNode("circle",{cx:"12",cy:"12",r:"12",fill:"#fff"},null),t.createVNode("circle",{cx:"12",cy:"12",r:"8"},[t.createVNode("animate",{fill:"freeze",attributeName:"r",dur:"0.4s",values:"8;4"},null)]),t.createVNode("circle",{cx:"18",cy:"6",r:"12",fill:"#fff"},[t.createVNode("animate",{fill:"freeze",attributeName:"cx",dur:"0.4s",values:"18;22"},null),t.createVNode("animate",{fill:"freeze",attributeName:"cy",dur:"0.4s",values:"6;2"},null),t.createVNode("animate",{fill:"freeze",attributeName:"r",dur:"0.4s",values:"12;3"},null)]),t.createVNode("circle",{cx:"18",cy:"6",r:"10"},[t.createVNode("animate",{fill:"freeze",attributeName:"cx",dur:"0.4s",values:"18;22"},null),t.createVNode("animate",{fill:"freeze",attributeName:"cy",dur:"0.4s",values:"6;2"},null),t.createVNode("animate",{fill:"freeze",attributeName:"r",dur:"0.4s",values:"10;1"},null)])]),t.createVNode("circle",{cx:"12",cy:"12",r:"10",mask:"url(#lineMdMoonAltToSunnyOutlineLoopTransition0)",fill:"currentColor"},[t.createVNode("animate",{fill:"freeze",attributeName:"r",dur:"0.4s",values:"10;6"},null)])])}function we(e){return t.createVNode("svg",t.mergeProps({xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24"},e),[t.createVNode("g",{fill:"none",stroke:"currentColor","stroke-dasharray":"4","stroke-dashoffset":"4","stroke-linecap":"round","stroke-linejoin":"round"},[t.createVNode("path",{d:"M13 4h1.5M13 4h-1.5M13 4v1.5M13 4v-1.5"},[t.createVNode("animate",{id:"lineMdSunnyOutlineToMoonAltLoopTransition0",fill:"freeze",attributeName:"stroke-dashoffset",begin:"0.6s;lineMdSunnyOutlineToMoonAltLoopTransition0.begin+6s",dur:"0.4s",values:"4;0"},null),t.createVNode("animate",{fill:"freeze",attributeName:"stroke-dashoffset",begin:"lineMdSunnyOutlineToMoonAltLoopTransition0.begin+2s;lineMdSunnyOutlineToMoonAltLoopTransition0.begin+4s",dur:"0.4s",values:"4;0"},null),t.createVNode("animate",{fill:"freeze",attributeName:"stroke-dashoffset",begin:"lineMdSunnyOutlineToMoonAltLoopTransition0.begin+1.2s;lineMdSunnyOutlineToMoonAltLoopTransition0.begin+3.2s;lineMdSunnyOutlineToMoonAltLoopTransition0.begin+5.2s",dur:"0.4s",values:"0;4"},null),t.createVNode("set",{fill:"freeze",attributeName:"d",begin:"lineMdSunnyOutlineToMoonAltLoopTransition0.begin+1.8s",to:"M12 5h1.5M12 5h-1.5M12 5v1.5M12 5v-1.5"},null),t.createVNode("set",{fill:"freeze",attributeName:"d",begin:"lineMdSunnyOutlineToMoonAltLoopTransition0.begin+3.8s",to:"M12 4h1.5M12 4h-1.5M12 4v1.5M12 4v-1.5"},null),t.createVNode("set",{fill:"freeze",attributeName:"d",begin:"lineMdSunnyOutlineToMoonAltLoopTransition0.begin+5.8s",to:"M13 4h1.5M13 4h-1.5M13 4v1.5M13 4v-1.5"},null)]),t.createVNode("path",{d:"M19 11h1.5M19 11h-1.5M19 11v1.5M19 11v-1.5"},[t.createVNode("animate",{id:"lineMdSunnyOutlineToMoonAltLoopTransition1",fill:"freeze",attributeName:"stroke-dashoffset",begin:"1s;lineMdSunnyOutlineToMoonAltLoopTransition1.begin+6s",dur:"0.4s",values:"4;0"},null),t.createVNode("animate",{fill:"freeze",attributeName:"stroke-dashoffset",begin:"lineMdSunnyOutlineToMoonAltLoopTransition1.begin+2s;lineMdSunnyOutlineToMoonAltLoopTransition1.begin+4s",dur:"0.4s",values:"4;0"},null),t.createVNode("animate",{fill:"freeze",attributeName:"stroke-dashoffset",begin:"lineMdSunnyOutlineToMoonAltLoopTransition1.begin+1.2s;lineMdSunnyOutlineToMoonAltLoopTransition1.begin+3.2s;lineMdSunnyOutlineToMoonAltLoopTransition1.begin+5.2s",dur:"0.4s",values:"0;4"},null),t.createVNode("set",{fill:"freeze",attributeName:"d",begin:"lineMdSunnyOutlineToMoonAltLoopTransition1.begin+1.8s",to:"M17 11h1.5M17 11h-1.5M17 11v1.5M17 11v-1.5"},null),t.createVNode("set",{fill:"freeze",attributeName:"d",begin:"lineMdSunnyOutlineToMoonAltLoopTransition1.begin+3.8s",to:"M18 12h1.5M18 12h-1.5M18 12v1.5M18 12v-1.5"},null),t.createVNode("set",{fill:"freeze",attributeName:"d",begin:"lineMdSunnyOutlineToMoonAltLoopTransition1.begin+5.8s",to:"M19 11h1.5M19 11h-1.5M19 11v1.5M19 11v-1.5"},null)]),t.createVNode("path",{d:"M19 4h1.5M19 4h-1.5M19 4v1.5M19 4v-1.5"},[t.createVNode("animate",{id:"lineMdSunnyOutlineToMoonAltLoopTransition2",fill:"freeze",attributeName:"stroke-dashoffset",begin:"2.8s;lineMdSunnyOutlineToMoonAltLoopTransition2.begin+6s",dur:"0.4s",values:"4;0"},null),t.createVNode("animate",{fill:"freeze",attributeName:"stroke-dashoffset",begin:"lineMdSunnyOutlineToMoonAltLoopTransition2.begin+2s",dur:"0.4s",values:"4;0"},null),t.createVNode("animate",{fill:"freeze",attributeName:"stroke-dashoffset",begin:"lineMdSunnyOutlineToMoonAltLoopTransition2.begin+1.2s;lineMdSunnyOutlineToMoonAltLoopTransition2.begin+3.2s",dur:"0.4s",values:"0;4"},null),t.createVNode("set",{fill:"freeze",attributeName:"d",begin:"lineMdSunnyOutlineToMoonAltLoopTransition2.begin+1.8s",to:"M20 5h1.5M20 5h-1.5M20 5v1.5M20 5v-1.5"},null),t.createVNode("set",{fill:"freeze",attributeName:"d",begin:"lineMdSunnyOutlineToMoonAltLoopTransition2.begin+5.8s",to:"M19 4h1.5M19 4h-1.5M19 4v1.5M19 4v-1.5"},null)])]),t.createVNode("g",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2"},[t.createVNode("g",null,[t.createVNode("path",{"stroke-dasharray":"2","stroke-dashoffset":"4",d:"M12 21v1M21 12h1M12 3v-1M3 12h-1"},[t.createVNode("animate",{fill:"freeze",attributeName:"stroke-dashoffset",dur:"0.2s",values:"4;2"},null)]),t.createVNode("path",{"stroke-dasharray":"2","stroke-dashoffset":"4",d:"M18.5 18.5l0.5 0.5M18.5 5.5l0.5 -0.5M5.5 5.5l-0.5 -0.5M5.5 18.5l-0.5 0.5"},[t.createVNode("animate",{fill:"freeze",attributeName:"stroke-dashoffset",begin:"0.2s",dur:"0.2s",values:"4;2"},null)]),t.createVNode("set",{fill:"freeze",attributeName:"opacity",begin:"0.5s",to:"0"},null)]),t.createVNode("path",{d:"M7 6 C7 12.08 11.92 17 18 17 C18.53 17 19.05 16.96 19.56 16.89 C17.95 19.36 15.17 21 12 21 C7.03 21 3 16.97 3 12 C3 8.83 4.64 6.05 7.11 4.44 C7.04 4.95 7 5.47 7 6 Z",opacity:"0"},[t.createVNode("set",{fill:"freeze",attributeName:"opacity",begin:"0.5s",to:"1"},null)])]),t.createVNode("mask",{id:"lineMdSunnyOutlineToMoonAltLoopTransition3"},[t.createVNode("circle",{cx:"12",cy:"12",r:"12",fill:"#fff"},null),t.createVNode("circle",{cx:"12",cy:"12",r:"4"},[t.createVNode("animate",{fill:"freeze",attributeName:"r",begin:"0.1s",dur:"0.4s",values:"4;8"},null)]),t.createVNode("circle",{cx:"22",cy:"2",r:"3",fill:"#fff"},[t.createVNode("animate",{fill:"freeze",attributeName:"cx",begin:"0.1s",dur:"0.4s",values:"22;18"},null),t.createVNode("animate",{fill:"freeze",attributeName:"cy",begin:"0.1s",dur:"0.4s",values:"2;6"},null),t.createVNode("animate",{fill:"freeze",attributeName:"r",begin:"0.1s",dur:"0.4s",values:"3;12"},null)]),t.createVNode("circle",{cx:"22",cy:"2",r:"1"},[t.createVNode("animate",{fill:"freeze",attributeName:"cx",begin:"0.1s",dur:"0.4s",values:"22;18"},null),t.createVNode("animate",{fill:"freeze",attributeName:"cy",begin:"0.1s",dur:"0.4s",values:"2;6"},null),t.createVNode("animate",{fill:"freeze",attributeName:"r",begin:"0.1s",dur:"0.4s",values:"1;10"},null)])]),t.createVNode("circle",{cx:"12",cy:"12",r:"6",mask:"url(#lineMdSunnyOutlineToMoonAltLoopTransition3)",fill:"currentColor"},[t.createVNode("animate",{fill:"freeze",attributeName:"r",begin:"0.1s",dur:"0.4s",values:"6;10"},null),t.createVNode("set",{fill:"freeze",attributeName:"opacity",begin:"0.5s",to:"0"},null)])])}function pt(e){return t.createVNode("svg",t.mergeProps({xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24"},e),[t.createVNode("g",{fill:"none","fill-rule":"evenodd"},[t.createVNode("path",{d:"m12.594 23.258l-.012.002l-.071.035l-.02.004l-.014-.004l-.071-.036q-.016-.004-.024.006l-.004.01l-.017.428l.005.02l.01.013l.104.074l.015.004l.012-.004l.104-.074l.012-.016l.004-.017l-.017-.427q-.004-.016-.016-.018m.264-.113l-.014.002l-.184.093l-.01.01l-.003.011l.018.43l.005.012l.008.008l.201.092q.019.005.029-.008l.004-.014l-.034-.614q-.005-.019-.02-.022m-.715.002a.02.02 0 0 0-.027.006l-.006.014l-.034.614q.001.018.017.024l.015-.002l.201-.093l.01-.008l.003-.011l.018-.43l-.003-.012l-.01-.01z"},null),t.createVNode("path",{fill:"currentColor",d:"m8.464 4.222l12.021 12.02a1.01 1.01 0 0 1 0 1.415l-2.828 2.828a1 1 0 0 1-1.414 0L4.222 8.465a2 2 0 0 1 0-2.829l1.414-1.414a2 2 0 0 1 2.828 0M5 11.5c.444 0 .758.269.95.632l.053.112a3.87 3.87 0 0 0 1.385 1.672l.21.128c.358.202.62.525.62.955c0 .38-.203.68-.5.882l-.115.072a3.8 3.8 0 0 0-1.49 1.573l-.105.22c-.187.422-.512.754-1.008.754c-.452 0-.761-.274-.954-.641l-.054-.113a3.83 3.83 0 0 0-1.384-1.664l-.206-.126c-.359-.202-.621-.526-.621-.957c0-.383.208-.68.505-.883l.116-.072a3.76 3.76 0 0 0 1.482-1.565l.113-.236C4.18 11.826 4.51 11.5 5 11.5m5.586-2.328l-1.414 1.414l7.778 7.778l1.414-1.414zm6.845-1.77c.238-.481.8-.513 1.082-.097l.056.096c.216.435.574.804 1.043 1.04c.494.246.501.87.004 1.116a2.35 2.35 0 0 0-.954.872l-.09.164c-.24.486-.804.518-1.085.102l-.056-.096a2.3 2.3 0 0 0-.872-.945l-.17-.094c-.466-.232-.497-.79-.097-1.063l.092-.054a2.33 2.33 0 0 0 .957-.878l.09-.164ZM7.051 5.635L5.635 7.05l2.121 2.122l1.415-1.415L7.05 5.636ZM13.5 2c.294 0 .51.167.654.399l.06.11c.238.477.618.894 1.11 1.187l.196.107c.275.137.48.373.48.697c0 .283-.157.5-.38.64l-.105.06c-.52.26-.932.654-1.205 1.115l-.1.183c-.14.284-.374.502-.71.502c-.294 0-.51-.167-.654-.399l-.06-.11a2.9 2.9 0 0 0-1.11-1.187l-.196-.107c-.275-.137-.48-.374-.48-.698c0-.282.157-.499.38-.64l.105-.058c.52-.262.932-.654 1.205-1.116l.1-.183c.14-.284.374-.502.71-.502"},null)])])}const re={dataSource:{type:Array,default:()=>[]},historyKey:String},ve=()=>({...V.darkThemeProps,...re,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 bt(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 yt(e){return e?/^https?:\/\/.*$/.test(e):!1}const Nt=new Set(["$","(",")","*","+",".","?","[","\\","]","^","{","|","}"]),xt=({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("没有搜索历史")]),Ct=t.defineComponent({props:{...re,className:String,hashId:String,keyword:String,onClose:Function},setup(e){const n=He.useRouter(),a=T.useLocalStorage(e.historyKey||c.getPrefixCls({suffixCls:"layout-search-history",isPor:!0}),[]),r=t.ref(0),o=t.ref([]),i=T.useThrottleFn(l,200);function l(f){if(f=f.trim(),!f){o.value=[];return}const m=y(f),S=[];e.dataSource.forEach(F=>{if(F.meta?.hideInMenu)return;const Z=F.meta?.title||F.name||"";if(m.test(Z.toLowerCase())){let w=[];const j=F?.key?.split("-")||[];for(let E=0;E<j.length;E++)w.push(j.slice(0,E+1).join("-"));w=w.map(E=>e.dataSource.find(g=>g?.key===E)?.meta?.title||""),S.push(c.merge(F,{meta:{title:w.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 d(){if(o.value.length===0)return;const f=o.value,m=r.value;if(f.length===0||m<0)return;const S=f[m];S&&(a.value.push(S),s(),await t.nextTick(),yt(S.path)?window.open(S.path,"_blank"):n.push({path:S.path,replace:!0}))}function h(f){return Nt.has(f)?`\\${f}`:f}function y(f){const m=[...f].map(S=>h(S)).join(".*");return new RegExp(`.*${m}.*`)}function x(){o.value.length!==0&&(r.value--,r.value<0&&(r.value=o.value.length-1),u())}function O(){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),T.onKeyStroke("Enter",d),T.onKeyStroke("ArrowUp",x),T.onKeyStroke("ArrowDown",O)});function R(f){r.value=f}function k(f,m){f.stopPropagation(),e.keyword?o.value.splice(m,1):a.value.splice(m,1),r.value=r.value-1>=0?r.value-1:0,u()}const v=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:v("panel-title")},[t.createTextVNode("搜索历史")]),t.createVNode("div",{class:v("panel-list")},[bt(o.value,"path").map((f,m)=>t.createVNode("div",{key:f.name,class:v(c.classNames("panel-item",m===r.value&&"active")),"data-search-item":m,onClick:()=>d(),onMouseenter:()=>R(m)},[t.createVNode("div",{class:v("panel-item-left")},[t.createVNode(V.LazyIcon,t.mergeProps(f.meta||{},{icon:f.meta?.icon||t.createVNode(N.MenuOutlined,null,null),classNames:v("panel-icon")}),null),f.meta?.title?.split("**")?.map((S,F)=>t.createVNode(t.Fragment,null,[S,F<f.meta?.title?.split("**")?.length-1&&t.createVNode(N.ArrowRightOutlined,null,null)])),t.createVNode("span",null,null)]),t.createVNode(N.CloseOutlined,{onClick:S=>k(S,m)},null)]))])]):t.createVNode(xt,{className:v("result"),value:e.keyword},null)])}}),St=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:p.getProSolidColor(e,e.colorBgLayout),transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,">.anticon":{fontSize:e.fontSize,color:e.colorTextTertiary},"&-word":{lineHeight:e.lineHeight},"&-word-icon":{padding:"4px 6px",lineHeight:p.unit(e.fontSizeSM),borderTopLeftRadius:e.borderRadiusSM,borderBottomLeftRadius:e.borderRadiusSM,borderTopRightRadius:e.borderRadiusLG*2,borderBottomRightRadius:e.borderRadiusLG*2,backgroundColor:e.colorBgContainer},"&:hover":{color:e.colorTextSecondary},"&-panel":{"&-title":{color:e.colorTextQuaternary,lineHeight:e.lineHeight,marginBlockEnd:e.marginXS},"&-list":{display:"flex",flexDirection:"column",gap:12},"&-item":{display:"flex",alignItems:"center",justifyContent:"space-between",cursor:"pointer",fontSize:e.fontSize,lineHeight:e.lineHeight,padding:e.paddingXS,borderRadius:e.borderRadiusLG,backgroundColor:e.colorBgLayout,transition:`all ${e.motionDurationFast} ${e.motionEaseInOut}`,"&-left":{display:"flex",alignItems:"center",gap:e.sizeStep},"&.active":{backgroundColor:e.colorPrimary,color:e.colorTextLightSolid}}},"&-result":{display:"flex",alignItems:"center",justifyContent:"center",paddingBlockStart:60,color:e.colorTextQuaternary},"&-modal-footer":{display:"flex",alignItems:"center",gap:e.marginXS,fontSize:12,color:e.colorTextSecondary},"&-modal-footer-icon":{display:"flex",alignItems:"center",gap:4}}});function wt(e){return p.useStyle("SearchPageInput",n=>{const a=p.mergeToken(n,{});return[St(a)]},e)}const vt=({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(N.EnterOutlined,null,null),t.createTextVNode("选择")]),t.createVNode("div",{class:c.classNames(`${e}-footer-icon`,n)},[t.createVNode(N.ArrowUpOutlined,null,null),t.createVNode(N.ArrowUpOutlined,{rotate:180},null),t.createTextVNode("导航")])]),Vt=t.defineComponent({name:"SearchPageInput",props:{...re,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}=wt(n),[o,i]=A.useState(""),[l,s]=A.useState(!1),u=V.useProLayoutContext(),d=T.useMagicKeys(),h=c.isWindowsOs()?d["ctrl+k"]:d["cmd+k"],y=t.ref(),x=t.computed(()=>c.getLevelData(e.dataSource?.length?e.dataSource:u?.menuProps?.value?.menuData));T.whenever(h,()=>{e.disabledShortKey||s(!0)}),T.whenever(l,()=>{t.nextTick(()=>{y.value?.focus()})});const O=()=>{s(!1),o.value=""};return()=>{const R={className:`${n}`,hashId:r.value},k=`${n}-modal`;return a(t.createVNode(t.Fragment,null,[t.createVNode("div",{class:c.classNames(n,r.value),onClick:()=>s(!0)},[t.createVNode(N.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(de.GProModal,{class:c.classNames(`${k}`,r.value),width:600,scrollProps:{maxHeight:400,minHeight:200},centered:!1,title:t.createVNode(b.Input,{style:{width:`${600*.8}px`,padding:0},ref:y,bordered:!1,size:"large",placeholder:"搜索导航菜单",value:o.value,prefix:t.createVNode(N.SearchOutlined,null,null),onChange:v=>i(v.target.value)},null),open:l.value,footer:t.createVNode(vt,{className:k,hashId:r.value},null),onCancel:()=>O()},{default:()=>[t.createVNode(Ct,t.mergeProps(R,{keyword:o.value,dataSource:x.value,onClose:()=>O()}),null)]})]))}}}),Mt=e=>{const{dark:n}=V.getTokenLayoutTheme(e),a=V.checkMenuDark(e,"header");return{[`${e.componentCls}`]:{"&-header-actions":{display:"flex",alignItems:"center",justifyContent:"flex-end",height:"100%",gap:e.paddingXS,"&-item":{display:"inline-flex",alignItems:"center",justifyContent:"center",paddingBlock:0,paddingInline:2,color:n||a?e.colorWhite:e.colorTextTertiary,fontSize:"16px",cursor:"pointer",lineHeight:1,borderRadius:e.borderRadius,".anticon":{color:n||a?e.colorWhite:e.colorTextTertiary},[`${e.componentCls}-header-actions-icon`]:{fontSize:e.fontSizeXL},"> *":{paddingInline:6,paddingBlock:6,borderRadius:e.borderRadius,transition:`color ${e.motionDurationMid}, background-color ${e.motionDurationMid}`,"&:hover":{background:a?ne.getAlphaColor("#fff",.12):e.colorBgTextHover}}},[`&>${e.antCls}-dropdown-trigger`]:{color:e.colorTextTertiary,paddingInline:8,paddingBlock:8,cursor:"pointer",display:"flex",alignItems:"center",height:44,lineHeight:p.unit(44),borderRadius:e.borderRadius,paddingInlineEnd:e.padding,"&:hover":{backgroundColor:p.setAlpha(e.colorTextBase,.03)}},"&-avatar":{display:"inline-flex",alignItems:"center",justifyContent:"center",gap:e.paddingXS,cursor:"pointer",color:e.colorTextTertiary,"> div":{color:n||a?e.colorWhite:e.colorTextTertiary}}}}}};function Tt(e){return p.useStyle("RightContent",n=>{const a=p.mergeToken(n);return[Mt(a)]},e)}const kt=t.defineComponent({name:"GlobalRightContent",props:ve(),inheritAttrs:!1,emits:["logout","darkChange","clickSettings","update:dark","lockOpenChange"],slots:Object,setup(e,{slots:n}){const{isFullscreen:a,toggle:r}=T.useFullscreen(),o=p.useProConfigContext(),i=V.useProLayoutContext(),l=A.useMediaQuery(),s=c.getPrefixCls({suffixCls:"global-header",isPor:!0}),{wrapSSR:u,hashId:d}=Tt(s),[h,y]=A.useState(!1),[x,O]=A.useState("auto"),{isDark:R,toggleMode:k}=V.useDarkTheme(t.computed(()=>V.hasDarkValue(e.dark)?e.dark:i?.dark?.value),{change:w=>{e.onDarkChange?.(w),e?.["onUpdate:dark"]?.(w),i?.onDarkChange?.(w)}}),v=t.computed(()=>c.isBoolean(i?.isMobile?.value)?i?.isMobile?.value:l.value==="sm"||l.value==="xs"),f=t.computed(()=>V.hasDarkValue(e.dark)?R.value:o?.dark?.value),m=t.computed(()=>e.actions===!1?{}:{...{lock:!0,theme:!0,search:!0,settings:!0,fullScreen:!0},...e.actions}),S=T.useDebounceFn(async w=>{O(w)},160),F=w=>{V.toggleLayoutTheme({event:w,isDark:f,toggle:k})};function Z(w){c.isFunction(e.onClickSettings)&&e.onClickSettings?.(w)}return()=>{const w=c.getSlotsProps({slots:n,props:e,keys:["dropdownRender","dropdownMenuRender","dropdownMenuExtraItemRender"],render:!0}),j=c.getSlot({slots:n,props:e,key:"actionsRender"}),E=a.value?N.CompressOutlined:N.ExpandOutlined,g=m.value.lock?t.defineAsyncComponent(()=>Promise.resolve().then(()=>wn)):t.createVNode("div",null,null);return u(t.createVNode("div",{class:`${s}-right-content ${d.value}`.trim(),style:{minWidth:x.value,height:"100%"}},[t.createVNode("div",{style:{height:"100%"}},[t.createVNode(gt,{key:"resize-observer",onResize:({width:W})=>{S(W)}},{default:()=>[t.createVNode("div",{class:`${s}-header-actions ${d.value}`.trim()},[n.default?.()??t.createVNode(t.Fragment,null,[m.value.search&&!v.value&&t.createVNode(Vt,{dataSource:e.dataSource,disabledShortKey:e.shortsKey?.disabled},null),m.value.theme&&t.createVNode("div",{class:`${s}-header-actions-item ${d.value}`.trim()},[t.createVNode(N,{class:`${s}-header-actions-icon ${d.value}`.trim(),component:f.value?we:Se,onClick:W=>F(W)},null)]),m.value.settings&&!v.value&&t.createVNode("div",{class:`${s}-header-actions-item ${d.value}`.trim()},[t.createVNode(N.SettingOutlined,{onClick:()=>Z("settings")},null)]),m.value.fullScreen&&!v.value&&t.createVNode("div",{class:`${s}-header-actions-item ${d.value}`.trim()},[t.createVNode(E,{onClick:()=>r()},null)]),j?j?.([`${s}-header-actions-item`,d.value]):null]),t.createVNode(b.Dropdown,t.mergeProps({placement:"bottomRight",overlayStyle:{maxWidth:120,minWidth:120}},e.dropdownProps,{overlay:w.dropdownMenuRender||t.createVNode(b.Menu,null,{default:()=>[w.dropdownMenuExtraItemRender,m.value.lock&&t.createVNode(t.Fragment,null,[t.createVNode(b.MenuItem,{key:"lock",icon:t.createVNode(N.LockOutlined,null,null),onClick:()=>y(!0)},{default:()=>[t.createTextVNode("锁定屏幕")]}),t.createVNode(b.Menu.Divider,null,null)]),t.createVNode(b.MenuItem,{key:"logout",icon:t.createVNode(N.LogoutOutlined,null,null),onClick:()=>e.onLogout?.()},{default:()=>[t.createTextVNode("退出登录")]})]})}),{default:()=>[w.dropdownRender||t.createVNode("div",{class:`${s}-header-actions-avatar ${d.value}`.trim()},[t.createVNode(b.Avatar,{size:28,icon:t.createVNode(N.UserOutlined,null,null),src:e.avatar},null),t.createVNode("div",{class:`${s}-header-actions-name ${d.value}`.trim()},[e.name])])]})])]})]),t.createVNode(g,{open:h.value,onOpenChange:W=>y(W)},null)]))}}}),{provideContext:At,useInjectContext:D}=p.useContext("theme-editor"),Ve={width:Number,open:{type:Boolean,default:void 0},onOpenChange:{type:Function,default:void 0}},Me={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}},Bt=[{value:"light",label:()=>t.createVNode("div",{style:{display:"flex",alignItems:"center",gap:"6px"}},[t.createVNode(N,{component:Se},null),t.createTextVNode("亮色")])},{value:"dark",label:()=>t.createVNode("div",{style:{display:"flex",alignItems:"center",gap:"6px"}},[t.createVNode(N,{component:we},null),t.createTextVNode("深色")])},{value:"system",label:()=>t.createVNode("div",{style:{display:"flex",alignItems:"center",gap:"6px"}},[t.createVNode(N.DesktopOutlined,null,null),t.createTextVNode("自动")])}],Te=[{key:"light",title:"亮色菜单风格"},{key:"dark",title:"暗色菜单风格"}],ke=[{key:"side",title:"侧边菜单布局"},{key:"mix",title:"混合菜单布局"},{key:"top",title:"顶部菜单布局"},{key:"wide",title:"定宽菜单布局"},{key:"simple",title:"简单菜单布局"}],Rt=[{label:"fixedHeader",title:"固定 Header"},{label:"fixSiderbar",title:"固定侧边菜单"},{label:"splitMenus",title:"自动分割菜单"}],Ot=[{label:"showTabsBar",title:"多标签"},{label:"fixedTabsBar",title:"固定多标签"}],Ft=[{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:"酱紫"}],Ae=t.defineComponent({name:"BlockCheckbox",props:{value:String,list:{type:Array,default:()=>[]},configType:String,onChange:Function},setup(e){const{hashId:n,prefixCls:a}=D();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(N.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])]}))])}}}),U=t.defineComponent({name:"RegionalChange",props:{label:String,value:Boolean,valueKey:String,disabled:Boolean,onChange:Function},setup(e){const{hashId:n,prefixCls:a}=D();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)}}),It=["copyButton","progress","weakMode","extraSettingState"],$t=t.defineComponent({props:{...Ve,...z.pick(Me,["copyButton","progress","weakMode","extraSettingState"]),disabled:Object,dark:Boolean,onChangeDark:Function,onChangeConfig:Function,onChangeExtraConfig:Function},setup(e){const{hashId:n,drawerClass:a,prefixCls:r}=D(),o=V.useProLayoutContext(),{copy:i,copied:l,isSupported:s}=T.useClipboard();t.watch(l,d=>{d&&b.message.success("拷贝成功,请到 config/default/themeConfig.js 中替换默认配置")});const u=()=>{s.value&&i(JSON.stringify(t.unref(o?.settings?.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(ue.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)},[t.createTextVNode("GxDesign Pro")])]),t.createVNode("div",{class:c.classNames(`${r}-card-content`,n.value)},[t.createVNode(X,{prefixCls:`${r}`,hashId:n.value,title:"整体风格"},{default:()=>[t.createVNode(b.Segmented,{value:c.isBoolean(e.dark)?e.dark?"dark":"light":"system",options:Bt,onChange:d=>e.onChangeDark?.(d)},null)]}),t.createVNode(X,{prefixCls:r,hashId:n.value,title:"菜单风格"},{default:()=>[t.createVNode(Ae,{value:o?.settings?.value.theme,list:Te,configType:"menuTheme",key:"menuTheme",onChange:d=>e.onChangeConfig?.({theme:d})},null)]}),t.createVNode(b.Divider,null,null),t.createVNode(X,{hashId:n.value,prefixCls:r,title:"导航模式"},{default:()=>[t.createVNode(Ae,{value:o?.settings?.value.layout,key:"layout",configType:"layout",list:ke,onChange:d=>e.onChangeConfig?.({layout:d})},null)]}),Rt.map(({label:d,title:h})=>t.createVNode(U,{label:h,valueKey:d,value:o?.settings?.value[d],disabled:e.disabled?.[d],onChange:(y,x)=>e.onChangeConfig?.({[y]:x})},null)),t.createVNode(b.Divider,null,null),t.createVNode(X,{hashId:n.value,prefixCls:r,title:"其他设置"},{default:()=>[Ot.map(({label:d,title:h})=>t.createVNode(U,{label:h,valueKey:d,value:o?.settings?.value[d],disabled:e.disabled?.[d],onChange:(y,x)=>e.onChangeConfig?.({[y]:x})},null)),e.weakMode&&t.createVNode(U,{label:"色弱模式",valueKey:"colorWeak",value:e.extraSettingState?.colorWeak,onChange:(d,h)=>e.onChangeExtraConfig?.({[d]:h})},null),e.progress&&t.createVNode(U,{label:"顶部进度条",valueKey:"progress",value:e.extraSettingState?.progress,onChange:(d,h)=>e.onChangeExtraConfig?.({[d]:h})},null)]}),e.copyButton&&t.createVNode(b.Divider,null,null),t.createVNode("div",{style:{display:"flex",gap:"10px"}},[e.copyButton&&t.createVNode(b.Button,{onClick:()=>u(),block:!0},{default:()=>[t.createVNode(N.CopyOutlined,null,null),t.createTextVNode("拷贝设置")]}),t.createVNode(b.Button,{block:!0},{default:()=>[t.createVNode(N.ClearOutlined,null,null),t.createTextVNode("清空缓存")]})])])])])]})])]})}}),Et=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)])}}),zt=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:p.getProSolidColor(e,e.colorBgContainer)},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:p.getProSolidColor(e,e.colorBgContainer)}}}),Lt=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}=p.useProStyle("SwitchTab",[zt],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(ue.GScrollbars,null,{default:()=>[e.renderContent?.(o.value)]})])]))}}),{provideContext:Pt,useInjectContext:Ht}=p.useContext("theme-setting"),Dt=t.defineComponent({setup(){const{prefixCls:e,hashId:n}=D(),{onChange:a}=Ht(),{token:r}=p.useProConfigContext(),o=t.computed(()=>{const i=new he.AggregationColor(r.value.colorPrimary);return{hsb:i.toHsbString(),rgb:i.toRgbString(),hex:i.toHexString()}});return()=>t.createVNode(X,{hashId:n.value,prefixCls:e,title:"主题色"},{default:()=>[t.createVNode("div",{class:c.classNames(`${e}-color-list`,n.value)},[Ft.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(N.CheckOutlined,{style:{color:r.value.colorWhite,fontSize:"12px"}},null):null])]}))]),t.createVNode(he.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",{style:{color:r.value.colorPrimary}},[t.createTextVNode("HEX:"),o.value.hex])]),t.createVNode(N.EditOutlined,{style:{fontSize:"18px"}},null)])])])]})]})}}),_t=t.defineComponent({setup(){const{prefixCls:e,hashId:n}=D();return()=>t.createVNode(X,{hashId:n.value,prefixCls:e,title:"侧边主题色"},null)}}),jt=t.defineComponent({setup(){const{token:e}=p.useProConfigContext();return()=>t.createVNode("div",{style:{padding:p.unit(e.value.padding)}},[t.createVNode(Dt,null,null),t.createVNode(_t,null,null)])}}),Wt=t.defineComponent({props:{...Ve,onChange:{type:Function,default:void 0}},setup(e){const{hashId:n,prefixCls:a,drawerClass:r}=D(),{token:o}=p.useProConfigContext(),i=t.computed(()=>V.getTokenLayoutTheme(o.value)),l=t.computed(()=>{const s=ke.find(d=>d.key===i.value.layout)?.title;return`${Te.find(d=>d.key===i.value.theme)?.title}/${s}`});return Pt({onChange:e.onChange}),()=>{const{width:s,open:u,onOpenChange:d}=e;return t.createVNode(b.Drawer,{width:s,closable:!1,placement:"right",open:u,bodyStyle:{padding:0},maskStyle:{background:"transparent"},onClose:()=>d?.(!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(Lt,{activeKey:"color",dataSource:[{label:"色彩",value:"color"}],renderItem:h=>{if(h.value==="color")return t.createVNode(Et,null,null)},renderContent:h=>{if(h==="color")return t.createVNode(jt,null,null)}},null)])]})}}}),Gt=t.defineComponent({name:"Trigger",inheritAttrs:!1,props:{type:String,open:Boolean,onTypeChange:Function,onOpenChange:Function,onClose:Function},setup(e){const{prefixCls:n,hashId:a}=D();function r(o){return{width:o?p.unit(216):p.unit(48),transition:"width 0.3s"}}return()=>{const o=p.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(N,{component:pt},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(N.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(N,{component:mt},null),e.type==="theme"&&t.createVNode("span",{class:c.classNames(a.value,`${n}-dock-icon-text`)},[t.createTextVNode("主题配置")])])])]),[[t.vShow,e.open]])]})])}}});function M(e,n){qt(e)&&(e="100%");var a=Xt(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 ee(e){return Math.min(1,Math.max(0,e))}function qt(e){return typeof e=="string"&&e.indexOf(".")!==-1&&parseFloat(e)===1}function Xt(e){return typeof e=="string"&&e.indexOf("%")!==-1}function Be(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function te(e){return e<=1?"".concat(Number(e)*100,"%"):e}function _(e){return e.length===1?"0"+e:String(e)}function Kt(e,n,a){return{r:M(e,255)*255,g:M(n,255)*255,b:M(a,255)*255}}function Re(e,n,a){e=M(e,255),n=M(n,255),a=M(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 oe(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 Zt(e,n,a){var r,o,i;if(e=M(e,360),n=M(n,100),a=M(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=oe(s,l,e+1/3),o=oe(s,l,e),i=oe(s,l,e-1/3)}return{r:r*255,g:o*255,b:i*255}}function Oe(e,n,a){e=M(e,255),n=M(n,255),a=M(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 Yt(e,n,a){e=M(e,360)*6,n=M(n,100),a=M(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,d=[a,l,i,i,s,a][u],h=[s,a,a,l,i,i][u],y=[i,i,s,a,a,l][u];return{r:d*255,g:h*255,b:y*255}}function Fe(e,n,a,r){var o=[_(Math.round(e).toString(16)),_(Math.round(n).toString(16)),_(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 Qt(e,n,a,r,o){var i=[_(Math.round(e).toString(16)),_(Math.round(n).toString(16)),_(Math.round(a).toString(16)),_(Jt(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 Jt(e){return Math.round(parseFloat(e)*255).toString(16)}function Ie(e){return B(e)/255}function B(e){return parseInt(e,16)}function Ut(e){return{r:e>>16,g:(e&65280)>>8,b:e&255}}var ie={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",goldenrod:"#daa520",gold:"#ffd700",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavenderblush:"#fff0f5",lavender:"#e6e6fa",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"};function en(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=an(e)),typeof e=="object"&&($(e.r)&&$(e.g)&&$(e.b)?(n=Kt(e.r,e.g,e.b),l=!0,s=String(e.r).substr(-1)==="%"?"prgb":"rgb"):$(e.h)&&$(e.s)&&$(e.v)?(r=te(e.s),o=te(e.v),n=Yt(e.h,r,o),l=!0,s="hsv"):$(e.h)&&$(e.s)&&$(e.l)&&(r=te(e.s),i=te(e.l),n=Zt(e.h,r,i),l=!0,s="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(a=e.a)),a=Be(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 tn="[-\\+]?\\d+%?",nn="[-\\+]?\\d*\\.\\d+%?",L="(?:".concat(nn,")|(?:").concat(tn,")"),le="[\\s|\\(]+(".concat(L,")[,|\\s]+(").concat(L,")[,|\\s]+(").concat(L,")\\s*\\)?"),se="[\\s|\\(]+(".concat(L,")[,|\\s]+(").concat(L,")[,|\\s]+(").concat(L,")[,|\\s]+(").concat(L,")\\s*\\)?"),I={CSS_UNIT:new RegExp(L),rgb:new RegExp("rgb"+le),rgba:new RegExp("rgba"+se),hsl:new RegExp("hsl"+le),hsla:new RegExp("hsla"+se),hsv:new RegExp("hsv"+le),hsva:new RegExp("hsva"+se),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/};function an(e){if(e=e.trim().toLowerCase(),e.length===0)return!1;var n=!1;if(ie[e])e=ie[e],n=!0;else if(e==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var a=I.rgb.exec(e);return a?{r:a[1],g:a[2],b:a[3]}:(a=I.rgba.exec(e),a?{r:a[1],g:a[2],b:a[3],a:a[4]}:(a=I.hsl.exec(e),a?{h:a[1],s:a[2],l:a[3]}:(a=I.hsla.exec(e),a?{h:a[1],s:a[2],l:a[3],a:a[4]}:(a=I.hsv.exec(e),a?{h:a[1],s:a[2],v:a[3]}:(a=I.hsva.exec(e),a?{h:a[1],s:a[2],v:a[3],a:a[4]}:(a=I.hex8.exec(e),a?{r:B(a[1]),g:B(a[2]),b:B(a[3]),a:Ie(a[4]),format:n?"name":"hex8"}:(a=I.hex6.exec(e),a?{r:B(a[1]),g:B(a[2]),b:B(a[3]),format:n?"name":"hex"}:(a=I.hex4.exec(e),a?{r:B(a[1]+a[1]),g:B(a[2]+a[2]),b:B(a[3]+a[3]),a:Ie(a[4]+a[4]),format:n?"name":"hex8"}:(a=I.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 $(e){return!!I.CSS_UNIT.exec(String(e))}var P=(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=Ut(n)),this.originalInput=n;var o=en(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=Be(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=Oe(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=Oe(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=Re(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=Re(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),Fe(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),Qt(this.r,this.g,this.b,this.a,n)},e.prototype.toHex8String=function(n){return n===void 0&&(n=!1),"#"+this.toHex8(n)},e.prototype.toHexShortString=function(n){return n===void 0&&(n=!1),this.a===1?this.toHexString(n):this.toHex8String(n)},e.prototype.toRgb=function(){return{r:Math.round(this.r),g:Math.round(this.g),b:Math.round(this.b),a:this.a}},e.prototype.toRgbString=function(){var n=Math.round(this.r),a=Math.round(this.g),r=Math.round(this.b);return this.a===1?"rgb(".concat(n,", ").concat(a,", ").concat(r,")"):"rgba(".concat(n,", ").concat(a,", ").concat(r,", ").concat(this.roundA,")")},e.prototype.toPercentageRgb=function(){var n=function(a){return"".concat(Math.round(M(a,255)*100),"%")};return{r:n(this.r),g:n(this.g),b:n(this.b),a:this.a}},e.prototype.toPercentageRgbString=function(){var n=function(a){return Math.round(M(a,255)*100)};return this.a===1?"rgb(".concat(n(this.r),"%, ").concat(n(this.g),"%, ").concat(n(this.b),"%)"):"rgba(".concat(n(this.r),"%, ").concat(n(this.g),"%, ").concat(n(this.b),"%, ").concat(this.roundA,")")},e.prototype.toName=function(){if(this.a===0)return"transparent";if(this.a<1)return!1;for(var n="#"+Fe(this.r,this.g,this.b,!1),a=0,r=Object.entries(ie);a<r.length;a++){var o=r[a],i=o[0],l=o[1];if(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=ee(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=ee(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=ee(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=ee(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 $e=new p.Keyframe("toConic",{"0%":{backgroundPosition:"0 0"},"100%":{backgroundPosition:"100% 50%"}}),rn=new p.Keyframe("dockIconText",{"0%":{display:"none",opacity:0},"80%":{overflow:"hidden"},"100%":{display:"unset",opacity:1}}),on=new p.Keyframe("dockZoomIn",{"0%":{transform:"translateX(-50%) scale(0)",opacity:0},"100%":{transform:"translateX(-50%) scale(1)",opacity:1}}),ln=new p.Keyframe("dockZoomOut",{"0%":{transform:"translateX(-50%) scale(1)"},"100%":{transform:"translateX(-50%) scale(0)",opacity:0}}),Ee=e=>e===0?0:e-Math.sqrt(e**2/2),sn=e=>({[e.componentCls]:{"&-button":{border:"none",position:"fixed",cursor:"pointer",zIndex:e.zIndexPopupBase,width:e.controlHeightLG,height:e.controlHeightLG,insetInlineEnd:e.marginLG,bottom:e.marginXXL,boxShadow:e.boxShadowSecondary,borderRadius:"50%",display:"flex",alignItems:"center",justifyContent:"center",textAlign:"center",backgroundColor:e.colorPrimary,transition:`background-color ${e.motionDurationMid}`,"&:hover":{backgroundColor:e.colorPrimary},[`${e.componentCls}-dot`]:{position:"absolute",transform:"translate(50%, -50%)",transformOrigin:"100% 0%",zIndex:"auto",width:e.fontSizeSM/2,minWidth:e.fontSizeSM/2,height:e.fontSizeSM/2,background:e.colorError,borderRadius:"100%",boxShadow:`0 0 0 ${p.unit(e.lineWidth)} ${e.colorBorderBg}`,top:Ee(e.controlHeightLG/2),insetInlineEnd:Ee(e.controlHeightLG/2)},[`${e.componentCls}-icon`]:{margin:"auto",color:e.colorTextLightSolid,width:e.calc(e.fontSizeIcon).mul(1.5).equal(),fontSize:e.calc(e.fontSizeIcon).mul(1.5).equal(),lineHeight:1}}}}),cn=e=>{const n=new P(new P("rgb(0, 0, 0)").setAlpha(.06).toRgbString()),a=new P(new P(e.colorBgBase).setAlpha(.6).toRgbString());return{[e.componentCls]:{"&-dock":{position:"fixed",bottom:e.marginXL,left:"50%",zIndex:e.zIndexPopupBase+80,color:e.colorWhite,transform:"translateX(-50%)",display:"flex",alignItems:"center",gap:e.sizeXS,padding:e.paddingXS,backgroundColor:a.toRgbString(),borderRadius:e.controlHeight,backdropFilter:"blur(10px)","&-zoom-appear, &-zoom-enter":{animationName:on,opacity:0,animationTimingFunction:e.motionEaseOutCirc,animationFillMode:"both",transform:"none",animationDuration:e.motionDurationMid,userSelect:"none"},"&-zoom-enter-active":{animationPlayState:"running"},"&-zoom-leave":{animationName:ln,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:$e},"&-active":{animationTimingFunction:"cubic-bezier(.38,0,.24,1)",animationDuration:"0.5s",animationFillMode:"forwards",animationName:$e}},"&-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:rn,animationDuration:".4s",animationTimingFunction:"ease"}}}}}},dn=e=>({[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:"0 1px 2.5px rgba(0,0,0,.18)",cursor:"pointer",fontSize:56,lineHeight:"56px","&::before":{position:"absolute",insetBlockStart:0,insetInlineStart:0,width:"33%",height:"100%",content:"''"},"&::after":{position:"absolute",insetBlockStart:0,insetInlineStart:0,width:"100%",height:"25%",content:"''"},"&-dark":{backgroundColor:"rgba(0, 21, 41, 0.85)","&::before":{backgroundColor:"rgba(0, 0, 0, 0.65)"},"&::after":{backgroundColor:"rgba(0, 0, 0, 0.85)"}},"&-light":{backgroundColor:"#f7f8fa","&::before":{backgroundColor:"#fff"},"&::after":{backgroundColor:"#fff"}},"&-realDark":{backgroundColor:"rgba(0, 21, 41, 0.85)","&::before":{backgroundColor:"rgba(0, 0, 0, 0.65)"},"&::after":{backgroundColor:"rgba(0, 0, 0, 0.85)"}},"&-dark,&-side":{backgroundColor:"#f7f8fa","&::before":{zIndex:"1",backgroundColor:"#001529"},"&::after":{backgroundColor:"#fff"}},"&-wide":{backgroundColor:"#f7f8fa","&::before":{backgroundColor:"#fff",left:"15%",width:"15%",height:"calc(100% - 38%)",top:"38%"},"&::after":{backgroundColor:"#fff"},"&-content":{position:"absolute",height:"calc(100% - 38%)",top:"38%",right:"15%",width:"calc(100% - 15% - 15% - 10% - 15%)",backgroundColor:"#fff"}},"&-simple":{backgroundColor:"#f7f8fa","&::before":{backgroundColor:"#fff"},"&::after":{display:"none"}},"&-mix":{backgroundColor:"#f7f8fa","&::before":{backgroundColor:"#fff"},"&::after":{backgroundColor:"#001529"}},"&-top":{backgroundColor:"#f7f8fa","&::after":{backgroundColor:"#001529"}}},"& &-selectIcon":{position:"absolute",insetInlineEnd:"6px",bottom:"4px",color:e.colorPrimary,fontWeight:"bold",fontSize:"14px",pointerEvents:"none",".action":{color:e.colorPrimary}},"& &-icon":{fontSize:56,lineHeight:"56px"}},"&-list":{[`&${e.antCls}-list-sm ${e.antCls}-list-item`]:{paddingInline:0}}}}),un=e=>{const{dark:n}=V.getTokenLayoutTheme(e);return{[`${e.componentCls}-drawer`]:{"&-wrapper":{display:"flex",flexDirection:"column",position:"relative",height:"100%",overflow:"hidden",backgroundColor:e.colorBgLayout,"*":{boxSizing:"border-box"}},"&-content":{position:"relative",height:"100%",padding:e.paddingXS,[`${e.antCls}-segmented-item`]:{flex:1},[`${e.antCls}-segmented`]:{backgroundColor:n?e.colorBgBase:void 0,[`${e.antCls}-segmented-item-selected`]:{backgroundColor:n?"#1f1f1f":void 0}}}}}},hn=e=>{const n=`${e.componentCls}`,a=new P(new P(e.colorWhite).setAlpha(.55).toRgbString());return{[n]:{"&-card":{display:"flex",flexDirection:"column",borderRadius:e.borderRadiusLG,minHeight:`calc(100vh - ${e.padding}px)`,[`${n}-card-content`]:{flex:1,borderRadius:e.borderRadiusLG,backgroundColor:p.getProSolidColor(e,e.colorBgContainer),padding:e.padding}},"&-card-header":{borderRadius:e.borderRadiusLG,backgroundColor:e.colorPrimary,paddingBlock:e.paddingXS,paddingInline:e.padding-4,marginBlockEnd:e.marginXS,"&-title":{color:e.colorWhite,fontSize:e.fontSizeXL,lineHeight:e.lineHeight,marginBlockEnd:e.marginXS,fontWeight:e.fontWeightStrong},"&-subtitle":{color:a.toString()}}}}},fn=e=>{const n=`${e.componentCls}`,a=new P(new P(e.colorWhite).setAlpha(.55).toRgbString());return{[n]:{"&-color-list":{display:"flex",gap:8,marginBlockEnd:e.margin},"&-color-item":{width:20,height:20,display:"flex",alignItems:"center",justifyContent:"center",borderRadius:2,cursor:"pointer",color:e.colorWhite,fontWeight:"bold"},"&-color-picker":{marginBlock:e.marginXS,padding:2,height:106,background:`conic-gradient(from 180deg at 50% 50%,#00c3ff 0,${e.colorPrimary} 120deg,${e.colorPrimary} 180deg,#4ceb1b 290.62deg,#00c3ff 1turn)`,borderRadius:9,cursor:"pointer",transition:`padding ${e.motionDurationMid}`,"&:hover":{padding:4},"&-inner":{backgroundColor:p.getProSolidColor(e,e.colorBgContainer),padding:"2px 2px 4px 2px",borderRadius:7,maxHeight:"100%"},"&-top":{width:"100%",borderRadius:6,padding:"4px 8px",p:{color:a.toString(),lineHeight:"20px",fontSize:e.fontSizeSM,margin:0}},"&-bottom":{display:"flex",alignItems:"center",justifyContent:"space-between",padding:"4px 8px",p:{margin:0,fontSize:e.fontSize,lineHeight:"22px","&:first-child":{color:e.colorText,fontWeight:600},"&:last-child":{color:e.colorTextDescription}}}}}}};function gn(e){const n=["showTabsBar","fixedMultiTab","fixSiderbar","fixedHeader","splitMenus"];let r=Object.keys(e).reduce((o,i)=>(o[i]=!1,o),{});return r=z.pick(r,n),e.layout==="mix"&&(r.fixSiderbar=!0,r.fixedHeader=!0),e.layout==="top"&&(r.fixSiderbar=!0,r.splitMenus=!0),e.layout==="side"&&(r.splitMenus=!0),e.layout==="simple"&&(r.splitMenus=!0,r.fixedHeader=!0,r.showTabsBar=!0,r.fixedTabsBar=!0),e.layout==="wide"&&(r.splitMenus=!0,r.fixedHeader=!0,r.fixSiderbar=!0,r.showTabsBar=!0,r.fixedTabsBar=!0),r}function ce(e){return e.layout==="mix"&&(e.fixSiderbar=!0,e.fixedHeader=!0,e.splitMenus=!0),e.layout==="top"&&(e.fixSiderbar=!1,e.fixedHeader=!0,e.splitMenus=!1),e.layout==="simple"&&(e.splitMenus=!1,e.showTabsBar=!1,e.fixedHeader=!1,e.fixSiderbar=!1),e.layout==="side"&&(e.splitMenus=!1,e.fixedHeader=!0,e.fixSiderbar=!0),e.layout==="wide"&&(e.splitMenus=!1,e.fixSiderbar=!1,e.fixedHeader=!0,e.showTabsBar=!1,e.fixedTabsBar=!1),e}const X=(e,{slots:n})=>t.createVNode("div",{style:{marginBottom:"24px"}},[t.createVNode("h3",{class:`${e.prefixCls}-body-title ${e.hashId}`.trim()},[e.title]),n.default?.()]),mn=t.defineComponent({name:"ThemeEditor",inheritAttrs:!1,props:Me,emits:["update:open","change","changeSettingState","changeThemeState"],setup(e){const a=c.getPrefixCls({suffixCls:"theme-setting",isPor:!0}),r=c.getPrefixCls({suffixCls:"theme-editor",isPor:!0}),{wrapSSR:o,hashId:i}=p.useProStyle("ProThemeEditor",[dn,un,sn,cn,fn,hn],r),l=T.useLocalStorage(a,{}),s=V.useProLayoutContext(),[u,d]=A.useState(!1),[h,y]=A.useState(!0),[x,O]=A.useState("theme");Object.keys(l.value).length&&e.onChangeSettingState?.(ce({...t.toRaw(l.value)}));const R=t.computed(()=>({progress:!!e.extraSettingState?.progress,colorWeak:!!e.extraSettingState?.colorWeak})),k=t.computed(()=>gn({...t.toRaw(s.settings.value),...t.toRaw(R.value)}));t.watch(()=>e.open,g=>{g&&(x.value==="theme"?y(g):d(g))}),t.watch([()=>u.value,()=>h.value],()=>{e.onChange&&e.onChange(u.value||h.value),e?.["onUpdate:open"]?.(u.value||h.value)});const{dark:v,isDark:f,toggleMode:m}=V.useDarkTheme(t.computed(()=>s?.dark?.value),{change:g=>{s?.onDarkChange?.(g)}});function S(g){y(!g),d(g)}function F(g){y(g),d(!g)}const Z=(g,W)=>V.toggleLayoutTheme({event:g,isDark:f,toggle:m,value:W}),w=g=>{Z(null,g==="system"?g:g==="dark")};function j(g){e.onChangeSettingState?.(g),t.nextTick(()=>{s&&(l.value=ce(c.deepMerge(z.cloneDeep(l.value),{...t.toRaw(s.settings.value),...t.toRaw(R.value)})))})}function E(g){e.onChangeSettingState?.(g),t.nextTick(()=>{s&&(l.value=ce(c.deepMerge(z.cloneDeep(l.value),{...t.toRaw(s.settings.value),...t.toRaw(R.value),...t.toRaw(g)})))})}return At({hashId:i,prefixCls:r,drawerClass:`${r}-drawer`}),()=>o(t.createVNode("div",{class:c.classNames(i.value,r)},[t.createVNode(Gt,{type:x.value,open:u.value||h.value,onTypeChange:g=>{O(g),g==="setting"?S(!0):g==="theme"&&F(!0)},onOpenChange:g=>{x.value==="setting"?S(g):x.value==="theme"&&F(g)},onClose:()=>{d(!1),y(!1)}},null),t.createVNode($t,t.mergeProps({width:348,dark:v.value,open:u.value,disabled:k.value},z.pick(e,It),{onChangeDark:w,onChangeConfig:j,onOpenChange:g=>d(!!g),onChangeExtraConfig:E}),null),t.createVNode(Wt,{width:348,open:h.value,onChange:g=>e.onChangeThemeState?.(g),onOpenChange:g=>y(!!g)},null)]))}});H.locale("zh-cn");function pn(){const e=t.reactive({hh:"",mm:"",ss:"",dddd:"",day:"",a:""});function n(){e.hh=H().format("HH"),e.mm=H().format("mm"),e.ss=H().format("ss"),e.a=H().format("a").toUpperCase(),e.day=H().format("YYYY-MM-DD"),e.dddd=H().format("dddd"),requestAnimationFrame(n)}return requestAnimationFrame(n),e}const bn=ve(),ze={hashId:String,className:String},Le={open:{type:Boolean,default:void 0},onOpenChange:Function,"onUpdate:open":Function,cryptoFn:Function,...z.pick(bn,["name","avatar"])},yn={...Le,shortsKey:{type:Object,default:()=>({disabled:!1})}};function Nn(e){const n=t.reactive({password:""}),{validate:a,resetFields:r,validateInfos:o}=p.useProForm(n,{password:[{validator:(i,l)=>(e&&l?e?.(l):l)?Promise.resolve():Promise.reject(e&&l?"密码错误":"请输入锁屏密码")}]});return{formState:n,validate:a,resetFields:r,validateInfos:o}}const Pe=t.defineComponent({props:{...ze,name:String,avatar:String,avatarSize:{type:Number,default:60},submitText:String,validator:Function,onSubmit:Function},setup(e,{expose:n,slots:a}){const{formState:r,validate:o,validateInfos:i,resetFields:l}=Nn(e.validator),s=h=>{Object.assign(r,h)},u=(h="",y)=>{const x=h?`${e.className}-${h}`:e.className;return c.classNames(x,e.hashId,"")},d=()=>{o().then(()=>{e.onSubmit?.(r)}).catch(()=>{})};return n({formState:r,resetFields:l,merageFormState:s}),()=>t.createVNode("div",{class:u("user-form")},[t.createVNode("div",{class:u("user-info")},[t.createVNode(b.Avatar,{size:e.avatarSize,icon:t.createVNode(N.UserOutlined,null,null),src:e.avatar},null),e.name&&t.createVNode("div",{class:u("user-name")},[e.name])]),t.createVNode(b.Form,null,{default:()=>[t.createVNode(b.Form.Item,i.password,{default:()=>[t.createVNode(b.Input.Password,{value:r.password,placeholder:"请输入锁屏密码",onChange:h=>r.password=h.target.value},null)]})]}),t.createVNode(b.Button,{block:!0,type:"primary",onClick:()=>d(),style:{marginBlockStart:"24px"}},{default:()=>[e.submitText]}),a.default?.()])}}),xn=t.defineComponent({name:"PageLockPopup",props:{...ze,...Le,password:String},setup(e){const[n,a]=A.useMergedState(!1,{value:t.computed(()=>c.isBoolean(e.open)?e.open:!1),onChange:e.onOpenChange}),[r,o]=A.useState(!1),i=pn(),l=(s="",u)=>{const d=s?`${e.className}-popup-${s}`:`${e.className}-popup`;return c.classNames(d,e.hashId,u||"")};return()=>n.value?t.createVNode("div",{class:l()},[r.value?t.createVNode("div",{class:l("form")},[t.createVNode(Pe,{avatarSize:70,submitText:"进入系统",avatar:e.avatar,hashId:e.hashId,className:e.className,validator:s=>e.cryptoFn?.(s)===e.password,onSubmit:()=>a(!1)},{default:()=>[t.createVNode(b.Button,{style:{marginBlockStart:"16px"},type:"text",block:!0,onClick:()=>o(!1)},{default:()=>[t.createTextVNode("返回")]})]}),t.createVNode("div",{class:l("form-time")},[t.createVNode("span",{style:{fontSize:"26px"}},[`${i.hh}:${i.mm}`,t.createTextVNode("  "),i.a]),t.createVNode("span",{style:{fontSize:"30px"}},[i.day,t.createTextVNode("  "),i.dddd])])]):t.createVNode(t.Fragment,null,[t.createVNode("div",{class:l("head")},[t.createVNode("span",null,[i.day,t.createTextVNode("  "),i.dddd]),t.createVNode("span",{class:l("lock-icon"),onClick:()=>o(!0)},[t.createVNode(N.LockOutlined,{style:{position:"relative",top:"1px",marginInlineEnd:"4px"}},null),t.createTextVNode("点击解锁")])]),t.createVNode("div",{class:l("time",l("enter","fadeIn"))},[t.createVNode("div",{class:l("time-card")},[i.hh,t.createVNode("span",{class:l("time-range")},[i.a])]),t.createVNode("div",{class:l("time-card")},[i.mm])])])]):null}}),Cn=new p.Keyframe("fadeIn",{from:{opacity:0},to:{opacity:1}}),Sn=e=>({[e.componentCls]:{"&-user-form":{[`${e.antCls}-form-item`]:{marginBlockEnd:0}},"&-user-info":{display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",gap:20,marginBlockEnd:e.marginLG},"&-user-name":{fontWeight:500,fontSize:18},"&-popup":{display:"flex",flexDirection:"column",background:e.colorBgContainer,position:"fixed",zIndex:2200,width:"100%",height:"100%","&-enter":{animationDuration:".3s",animationFillMode:"both",animationName:Cn},"&-head":{display:"flex",alignItems:"center",justifyContent:"space-between",marginBlock:e.marginLG,color:e.colorTextSecondary,paddingInline:20,fontSize:20,lineHeight:"28px",fontWeight:600},"&-lock-icon":{cursor:"pointer",transition:"all .3s","&:hover":{transform:"scale(1.1)",color:e.colorText}},"&-time":{display:"flex",paddingInline:"10%",gap:"5rem",flex:1,paddingBottom:"40px",[`${e.componentCls}-popup-time-card`]:{position:"relative",width:"40%",height:"100%",display:"flex",alignItems:"center",justifyContent:"center",flex:"1 1 auto",fontSize:260,borderRadius:e.borderRadiusLG,background:e.colorFillContent},"&-range":{position:"absolute",left:"2%",top:"2%",fontSize:16,fontWeight:600,color:e.colorText}},"&-form":{position:"relative",display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",gap:e.marginLG,height:"100%",[`${e.componentCls}-user-form`]:{width:300},[`${e.componentCls}-popup-form-time`]:{position:"absolute",bottom:e.marginLG,left:"50%",transform:"translateX(-50%)",display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center"}}}}}),wn=Object.freeze(Object.defineProperty({__proto__:null,default:t.defineComponent({name:"PageLock",props:yn,emits:["update:open","openChange"],setup(e){const n=c.getPrefixCls({suffixCls:"page-lock",isPor:!0}),{wrapSSR:a,hashId:r}=p.useProStyle("ProPageLock",[Sn],n),o=T.useLocalStorage(n,{open:!1,password:""}),[i,l,s]=A.useMergedState(!1,{value:t.computed(()=>e.open),onChange:m=>{e.onOpenChange?.(m),e["onUpdate:open"]?.(m)}}),[u,d]=A.useState(!1),h=t.ref();function y(m){return e.cryptoFn?e.cryptoFn(m):m}function x(m){o.value.open=u.value,o.value.password=y(m)}const O=t.computed(()=>e.shortsKey),R=t.computed(()=>o.value.open&&!!o.value.password),k=T.useMagicKeys();T.whenever(k["Alt+KeyL"],()=>{O.value?.disabled||s.value||l(!0)}),t.watch(u,m=>{x(m&&(h.value?.formState?.password||o.value.password)||"")}),t.onMounted(()=>{R.value?d(!0):x("")});const v=()=>{l(!1),d(!0)},f=()=>{l(!1),x(""),h.value?.resetFields()};return()=>a(t.createVNode(t.Fragment,null,[t.createVNode(xn,t.mergeProps(z.pick(e,["name","avatar"]),{open:u.value,hashId:r.value,className:n,password:o.value.password,cryptoFn:y,onOpenChange:d}),null),t.createVNode(de.GProModal,{width:400,type:"normal",title:"锁定屏幕",open:s.value,footer:!1,onCancel:f},{default:()=>[t.createVNode(Pe,t.mergeProps({ref:h},z.pick(e,["name","avatar"]),{submitText:"锁定",hashId:r.value,className:n,onSubmit:v}),null)]})]))}})},Symbol.toStringTag,{value:"Module"}));C.DefaultRenderLogo=me,C.GAppsLogoComponents=Ke,C.GProThemeEditor=mn,C.GRightContent=kt,Object.defineProperty(C,Symbol.toStringTag,{value:"Module"})}));
12
+ (function(C,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):(C=typeof globalThis<"u"?globalThis:C||self,t(C.proLayoutComponents={},C.vue,C.proHooks,C.proProvider,C.proUtils,C.antDesignVue,C.proLayout,C.colorAlgorithm,C.Icon,C.core,C.proModal,C.vueRouter,C.lodashEs,C.scrollbar,C.colorPicker,C.dayjs))})(this,(function(C,t,A,p,c,b,V,ne,N,T,de,He,z,ue,he,H){"use strict";const G={appList:{type:Array,default:void 0},onItemClick:Function},fe=t.defineComponent({props:{hashId:String,baseClassName:String,appList:G.appList,onItemClick:G.onItemClick},setup(e){return()=>t.createVNode("div",{class:`${e.baseClassName}-content ${e.hashId}`.trim()},[t.createVNode("ul",{class:`${e.baseClassName}-content-list ${e.hashId}`.trim()},[e.appList?.map((n,a)=>n?.children?.length?t.createVNode("div",{key:a,class:`${e.baseClassName}-content-list-item-group ${e.hashId}`.trim()},[t.createVNode("div",{class:`${e.baseClassName}-content-list-item-group-title ${e.hashId}`.trim()},[n.title]),t.createVNode(fe,{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(me,{logo:n.icon},null),t.createVNode("div",null,[t.createVNode("div",null,[n.title]),n.desc?t.createVNode("span",null,[n.desc]):null])])]))])])}}),De=(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},ge=t.defineComponent({props:{hashId:String,baseClassName:String,appList:G.appList,onItemClick:G.onItemClick},setup(e){return()=>t.createVNode("div",{class:`${e.baseClassName}-content ${e.hashId}`.trim()},[t.createVNode("ul",{class:`${e.baseClassName}-content-list ${e.hashId}`.trim()},[e.appList?.map((n,a)=>n?.children?.length?t.createVNode("div",{key:a,class:`${e.baseClassName}-content-list-item-group ${e.hashId}`.trim()},[t.createVNode("div",{class:`${e.baseClassName}-content-list-item-group-title ${e.hashId}`.trim()},[n.title]),t.createVNode(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?"javascript:;":n.url,target:n.target,rel:"noreferrer"},[De(n.icon,n.title),t.createVNode("div",null,[t.createVNode("div",null,[n.title])])])]))])])}}),_e=e=>({"&-content":{maxHeight:"calc(100vh - 48px)",overflow:"auto","&-list":{boxSizing:"content-box",maxWidth:656,marginBlock:0,marginInline:0,paddingBlock:0,paddingInline:0,listStyle:"none","&-item":{position:"relative",display:"inline-block",width:328,height:72,paddingInline:16,paddingBlock:16,verticalAlign:"top",listStyleType:"none",transition:"transform 0.2s cubic-bezier(0.333, 0, 0, 1)",borderRadius:e.borderRadius,"&-group":{marginBottom:16,"&-title":{margin:"16px 0 8px 12px",fontWeight:600,color:"rgba(0, 0, 0, 0.88)",fontSize:16,opacity:.85,lineHeight:1.5,"&:first-child":{marginTop:12}}},"&:hover":{backgroundColor:e.colorBgTextHover},"* div":p.resetComponent?.(e),a:{display:"flex",height:"100%",fontSize:12,textDecoration:"none","& > img":{width:40,height:40},"& > div":{marginInlineStart:14,color:e.colorTextHeading,fontSize:14,lineHeight:"22px",whiteSpace:"nowrap",textOverflow:"ellipsis"},"& > div > span":{color:e.colorTextSecondary,fontSize:12,lineHeight:"20px"}}}}}}),je=e=>({"&-content":{maxHeight:"calc(100vh - 48px)",overflow:"auto","&-list":{boxSizing:"border-box",maxWidth:376,marginBlock:0,marginInline:0,paddingBlock:0,paddingInline:0,listStyle:"none","&-item":{position:"relative",display:"inline-block",width:104,height:104,marginBlock:8,marginInline:8,paddingInline:24,paddingBlock:24,verticalAlign:"top",listStyleType:"none",transition:"transform 0.2s cubic-bezier(0.333, 0, 0, 1)",borderRadius:e.borderRadius,"&-group":{marginBottom:16,"&-title":{margin:"16px 0 8px 12px",fontWeight:600,color:"rgba(0, 0, 0, 0.88)",fontSize:16,opacity:.85,lineHeight:1.5,"&:first-child":{marginTop:12}}},"&:hover":{backgroundColor:e.colorBgTextHover},a:{display:"flex",flexDirection:"column",alignItems:"center",height:"100%",fontSize:12,textDecoration:"none","& > #avatarLogo":{width:40,height:40,margin:"0 auto",color:e.colorPrimary,fontSize:22,lineHeight:"40px",textAlign:"center",backgroundImage:"linear-gradient(180deg, #E8F0FB 0%, #F6F8FC 100%)",borderRadius:e.borderRadius},"& > img":{width:40,height:40},"& > div":{marginBlockStart:5,marginInlineStart:0,color:e.colorTextHeading,fontSize:14,lineHeight:"22px",whiteSpace:"nowrap",textOverflow:"ellipsis"},"& > div > span":{color:e.colorTextSecondary,fontSize:12,lineHeight:"20px"}}}}}}),We=e=>({[e.componentCls]:{"&-simple":je(e),"&-default":_e(e)}}),Ge=e=>{const{theme:n}=V.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"?ne.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"?ne.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"}}}}},qe=t.defineComponent({props:G,emits:["itemClick"],setup(e){const n=c.getPrefixCls({suffixCls:"layout-app",isPor:!0}),{wrapSSR:a,hashId:r}=p.useProStyle("AppsLogoList",[We],n),o=i=>{e.onItemClick?.(i)};return()=>e.appList?.some(l=>!l?.desc)?a(t.createVNode(ge,{hashId:r.value,appList:e.appList,onItemClick:e.onItemClick?o:void 0,baseClassName:`${n}-simple`},null)):a(t.createVNode(fe,{hashId:r.value,appList:e.appList,onItemClick:e.onItemClick?o:void 0,baseClassName:`${n}-default`},null))}}),Xe=()=>t.createVNode(N.AppstoreOutlined,null,null),me=({logo:e})=>typeof e=="string"?t.createVNode("img",{width:"auto",height:22,src:e,alt:"logo"},null):typeof e=="function"?e():e,Ke=t.defineComponent({name:"AppsLogoIcon",inheritAttrs:!1,props:G,setup(e){const n=c.getPrefixCls({suffixCls:"layout-app",isPor:!0}),{wrapSSR:a,hashId:r}=p.useProStyle("AppsLogoIcon",[Ge],n),[o,i]=A.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(qe,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(Xe,null,null)])]})]))}});function K(){return K=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},K.apply(null,arguments)}var pe=(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})()})(),ae=typeof window<"u"&&typeof document<"u"&&window.document===document,Y=(function(){return typeof global<"u"&&global.Math===Math?global:typeof self<"u"&&self.Math===Math?self:typeof window<"u"&&window.Math===Math?window:Function("return this")()})(),Ze=(function(){return typeof requestAnimationFrame=="function"?requestAnimationFrame.bind(Y):function(e){return setTimeout(function(){return e(Date.now())},1e3/60)}})(),Ye=2;function Qe(e,n){var a=!1,r=!1,o=0;function i(){a&&(a=!1,e()),r&&s()}function l(){Ze(i)}function s(){var u=Date.now();if(a){if(u-o<Ye)return;r=!0}else a=!0,r=!1,setTimeout(l,n);o=u}return s}var Je=20,Ue=["top","right","bottom","left","width","height","size","weight"],et=typeof MutationObserver<"u",tt=(function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=Qe(this.refresh.bind(this),Je)}return e.prototype.addObserver=function(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(){!ae||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),et?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},e.prototype.disconnect_=function(){!ae||!this.connected_||(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(n){var a=n.propertyName,r=a===void 0?"":a,o=Ue.some(function(i){return!!~r.indexOf(i)});o&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e})(),be=(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}),q=(function(e){var n=e&&e.ownerDocument&&e.ownerDocument.defaultView;return n||Y}),ye=J(0,0,0,0);function Q(e){return parseFloat(e)||0}function Ne(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+Q(i)},0)}function nt(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]=Q(l)}return a}function at(e){var n=e.getBBox();return J(0,0,n.width,n.height)}function rt(e){var n=e.clientWidth,a=e.clientHeight;if(!n&&!a)return ye;var r=q(e).getComputedStyle(e),o=nt(r),i=o.left+o.right,l=o.top+o.bottom,s=Q(r.width),u=Q(r.height);if(r.boxSizing==="border-box"&&(Math.round(s+i)!==n&&(s-=Ne(r,"left","right")+i),Math.round(u+l)!==a&&(u-=Ne(r,"top","bottom")+l)),!it(e)){var d=Math.round(s+i)-n,h=Math.round(u+l)-a;Math.abs(d)!==1&&(s-=d),Math.abs(h)!==1&&(u-=h)}return J(o.left,o.top,s,u)}var ot=(function(){return typeof SVGGraphicsElement<"u"?function(e){return e instanceof q(e).SVGGraphicsElement}:function(e){return e instanceof q(e).SVGElement&&typeof e.getBBox=="function"}})();function it(e){return e===q(e).document.documentElement}function lt(e){return ae?ot(e)?at(e):rt(e):ye}function st(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 be(l,{x:n,y:a,width:r,height:o,top:a,right:n+r,bottom:o+a,left:n}),l}function J(e,n,a,r){return{x:e,y:n,width:a,height:r}}var ct=(function(){function e(n){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=J(0,0,0,0),this.target=n}return e.prototype.isActive=function(){var n=lt(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})(),dt=(function(){function e(n,a){var r=st(a);be(this,{target:n,contentRect:r})}return e})(),ut=(function(){function e(n,a,r){if(this.activeObservations_=[],this.observations_=new pe,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 q(n).Element))throw new TypeError('parameter 1 is not of type "Element".');var a=this.observations_;a.has(n)||(a.set(n,new ct(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 q(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 dt(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})(),xe=typeof WeakMap<"u"?new WeakMap:new pe,Ce=(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=tt.getInstance(),r=new ut(n,a,this);xe.set(this,r)}return e})();["observe","unobserve","disconnect"].forEach(function(e){Ce.prototype[e]=function(){var n;return(n=xe.get(this))[e].apply(n,arguments)}});var ht=(function(){return typeof Y.ResizeObserver<"u"?Y.ResizeObserver:Ce})();const ft=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},gt=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=h=>{const{onResize:y}=e,x=h[0].target,{width:O,height:R}=x.getBoundingClientRect(),{offsetWidth:k,offsetHeight:v}=x,f=Math.floor(O),m=Math.floor(R);if(r.width!==f||r.height!==m||r.offsetWidth!==k||r.offsetHeight!==v){const S={width:f,height:m,offsetWidth:k,offsetHeight:v};K(r,S),y&&Promise.resolve().then(()=>{y(K(K({},S),{offsetWidth:k,offsetHeight:v}),x)})}},u=t.getCurrentInstance(),d=()=>{const{disabled:h}=e;if(h){l();return}const y=ft(u);y!==o&&(l(),o=y),!i&&y&&(i=new ht(s),i.observe(y))};return t.onMounted(()=>{d()}),t.onUpdated(()=>{d()}),t.onUnmounted(()=>{l()}),t.watch(()=>e.disabled,()=>{d()},{flush:"post"}),()=>{var h;return(h=a.default)===null||h===void 0?void 0:h.call(a)[0]}}});function mt(e){return t.createVNode("svg",t.mergeProps({xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 16 16"},e),[t.createVNode("path",{fill:"currentColor","fill-rule":"evenodd",d:"m14.489 8.388l-.001.006a.1.1 0 0 1-.027.028a.43.43 0 0 1-.264.082h-3.186c-3.118 0-4.68 3.77-2.476 5.974a6.5 6.5 0 1 1 5.953-6.09Zm-.292 1.616c.913 0 1.736-.618 1.79-1.529a8 8 0 1 0-7.032 7.468c1.243-.147 1.527-1.639.641-2.525c-1.26-1.26-.367-3.414 1.415-3.414zM10 5a1 1 0 1 1-2 0a1 1 0 0 1 2 0M6 7a1 1 0 1 0 0-2a1 1 0 0 0 0 2m0 2a1 1 0 1 1-2 0a1 1 0 0 1 2 0","clip-rule":"evenodd"},null)])}function Se(e){return t.createVNode("svg",t.mergeProps({xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24"},e),[t.createVNode("g",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2"},[t.createVNode("path",{"stroke-dasharray":"2","stroke-dashoffset":"2",d:"M12 19v1M19 12h1M12 5v-1M5 12h-1"},[t.createVNode("animate",{fill:"freeze",attributeName:"d",begin:"0.6s",dur:"0.2s",values:"M12 19v1M19 12h1M12 5v-1M5 12h-1;M12 21v1M21 12h1M12 3v-1M3 12h-1"},null),t.createVNode("animate",{fill:"freeze",attributeName:"stroke-dashoffset",begin:"0.6s",dur:"0.2s",values:"2;0"},null)]),t.createVNode("path",{"stroke-dasharray":"2","stroke-dashoffset":"2",d:"M17 17l0.5 0.5M17 7l0.5 -0.5M7 7l-0.5 -0.5M7 17l-0.5 0.5"},[t.createVNode("animate",{fill:"freeze",attributeName:"d",begin:"0.8s",dur:"0.2s",values:"M17 17l0.5 0.5M17 7l0.5 -0.5M7 7l-0.5 -0.5M7 17l-0.5 0.5;M18.5 18.5l0.5 0.5M18.5 5.5l0.5 -0.5M5.5 5.5l-0.5 -0.5M5.5 18.5l-0.5 0.5"},null),t.createVNode("animate",{fill:"freeze",attributeName:"stroke-dashoffset",begin:"0.8s",dur:"0.2s",values:"2;0"},null)]),t.createVNode("animateTransform",{attributeName:"transform",dur:"30s",repeatCount:"indefinite",type:"rotate",values:"0 12 12;360 12 12"},null)]),t.createVNode("mask",{id:"lineMdMoonAltToSunnyOutlineLoopTransition0"},[t.createVNode("circle",{cx:"12",cy:"12",r:"12",fill:"#fff"},null),t.createVNode("circle",{cx:"12",cy:"12",r:"8"},[t.createVNode("animate",{fill:"freeze",attributeName:"r",dur:"0.4s",values:"8;4"},null)]),t.createVNode("circle",{cx:"18",cy:"6",r:"12",fill:"#fff"},[t.createVNode("animate",{fill:"freeze",attributeName:"cx",dur:"0.4s",values:"18;22"},null),t.createVNode("animate",{fill:"freeze",attributeName:"cy",dur:"0.4s",values:"6;2"},null),t.createVNode("animate",{fill:"freeze",attributeName:"r",dur:"0.4s",values:"12;3"},null)]),t.createVNode("circle",{cx:"18",cy:"6",r:"10"},[t.createVNode("animate",{fill:"freeze",attributeName:"cx",dur:"0.4s",values:"18;22"},null),t.createVNode("animate",{fill:"freeze",attributeName:"cy",dur:"0.4s",values:"6;2"},null),t.createVNode("animate",{fill:"freeze",attributeName:"r",dur:"0.4s",values:"10;1"},null)])]),t.createVNode("circle",{cx:"12",cy:"12",r:"10",mask:"url(#lineMdMoonAltToSunnyOutlineLoopTransition0)",fill:"currentColor"},[t.createVNode("animate",{fill:"freeze",attributeName:"r",dur:"0.4s",values:"10;6"},null)])])}function we(e){return t.createVNode("svg",t.mergeProps({xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24"},e),[t.createVNode("g",{fill:"none",stroke:"currentColor","stroke-dasharray":"4","stroke-dashoffset":"4","stroke-linecap":"round","stroke-linejoin":"round"},[t.createVNode("path",{d:"M13 4h1.5M13 4h-1.5M13 4v1.5M13 4v-1.5"},[t.createVNode("animate",{id:"lineMdSunnyOutlineToMoonAltLoopTransition0",fill:"freeze",attributeName:"stroke-dashoffset",begin:"0.6s;lineMdSunnyOutlineToMoonAltLoopTransition0.begin+6s",dur:"0.4s",values:"4;0"},null),t.createVNode("animate",{fill:"freeze",attributeName:"stroke-dashoffset",begin:"lineMdSunnyOutlineToMoonAltLoopTransition0.begin+2s;lineMdSunnyOutlineToMoonAltLoopTransition0.begin+4s",dur:"0.4s",values:"4;0"},null),t.createVNode("animate",{fill:"freeze",attributeName:"stroke-dashoffset",begin:"lineMdSunnyOutlineToMoonAltLoopTransition0.begin+1.2s;lineMdSunnyOutlineToMoonAltLoopTransition0.begin+3.2s;lineMdSunnyOutlineToMoonAltLoopTransition0.begin+5.2s",dur:"0.4s",values:"0;4"},null),t.createVNode("set",{fill:"freeze",attributeName:"d",begin:"lineMdSunnyOutlineToMoonAltLoopTransition0.begin+1.8s",to:"M12 5h1.5M12 5h-1.5M12 5v1.5M12 5v-1.5"},null),t.createVNode("set",{fill:"freeze",attributeName:"d",begin:"lineMdSunnyOutlineToMoonAltLoopTransition0.begin+3.8s",to:"M12 4h1.5M12 4h-1.5M12 4v1.5M12 4v-1.5"},null),t.createVNode("set",{fill:"freeze",attributeName:"d",begin:"lineMdSunnyOutlineToMoonAltLoopTransition0.begin+5.8s",to:"M13 4h1.5M13 4h-1.5M13 4v1.5M13 4v-1.5"},null)]),t.createVNode("path",{d:"M19 11h1.5M19 11h-1.5M19 11v1.5M19 11v-1.5"},[t.createVNode("animate",{id:"lineMdSunnyOutlineToMoonAltLoopTransition1",fill:"freeze",attributeName:"stroke-dashoffset",begin:"1s;lineMdSunnyOutlineToMoonAltLoopTransition1.begin+6s",dur:"0.4s",values:"4;0"},null),t.createVNode("animate",{fill:"freeze",attributeName:"stroke-dashoffset",begin:"lineMdSunnyOutlineToMoonAltLoopTransition1.begin+2s;lineMdSunnyOutlineToMoonAltLoopTransition1.begin+4s",dur:"0.4s",values:"4;0"},null),t.createVNode("animate",{fill:"freeze",attributeName:"stroke-dashoffset",begin:"lineMdSunnyOutlineToMoonAltLoopTransition1.begin+1.2s;lineMdSunnyOutlineToMoonAltLoopTransition1.begin+3.2s;lineMdSunnyOutlineToMoonAltLoopTransition1.begin+5.2s",dur:"0.4s",values:"0;4"},null),t.createVNode("set",{fill:"freeze",attributeName:"d",begin:"lineMdSunnyOutlineToMoonAltLoopTransition1.begin+1.8s",to:"M17 11h1.5M17 11h-1.5M17 11v1.5M17 11v-1.5"},null),t.createVNode("set",{fill:"freeze",attributeName:"d",begin:"lineMdSunnyOutlineToMoonAltLoopTransition1.begin+3.8s",to:"M18 12h1.5M18 12h-1.5M18 12v1.5M18 12v-1.5"},null),t.createVNode("set",{fill:"freeze",attributeName:"d",begin:"lineMdSunnyOutlineToMoonAltLoopTransition1.begin+5.8s",to:"M19 11h1.5M19 11h-1.5M19 11v1.5M19 11v-1.5"},null)]),t.createVNode("path",{d:"M19 4h1.5M19 4h-1.5M19 4v1.5M19 4v-1.5"},[t.createVNode("animate",{id:"lineMdSunnyOutlineToMoonAltLoopTransition2",fill:"freeze",attributeName:"stroke-dashoffset",begin:"2.8s;lineMdSunnyOutlineToMoonAltLoopTransition2.begin+6s",dur:"0.4s",values:"4;0"},null),t.createVNode("animate",{fill:"freeze",attributeName:"stroke-dashoffset",begin:"lineMdSunnyOutlineToMoonAltLoopTransition2.begin+2s",dur:"0.4s",values:"4;0"},null),t.createVNode("animate",{fill:"freeze",attributeName:"stroke-dashoffset",begin:"lineMdSunnyOutlineToMoonAltLoopTransition2.begin+1.2s;lineMdSunnyOutlineToMoonAltLoopTransition2.begin+3.2s",dur:"0.4s",values:"0;4"},null),t.createVNode("set",{fill:"freeze",attributeName:"d",begin:"lineMdSunnyOutlineToMoonAltLoopTransition2.begin+1.8s",to:"M20 5h1.5M20 5h-1.5M20 5v1.5M20 5v-1.5"},null),t.createVNode("set",{fill:"freeze",attributeName:"d",begin:"lineMdSunnyOutlineToMoonAltLoopTransition2.begin+5.8s",to:"M19 4h1.5M19 4h-1.5M19 4v1.5M19 4v-1.5"},null)])]),t.createVNode("g",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2"},[t.createVNode("g",null,[t.createVNode("path",{"stroke-dasharray":"2","stroke-dashoffset":"4",d:"M12 21v1M21 12h1M12 3v-1M3 12h-1"},[t.createVNode("animate",{fill:"freeze",attributeName:"stroke-dashoffset",dur:"0.2s",values:"4;2"},null)]),t.createVNode("path",{"stroke-dasharray":"2","stroke-dashoffset":"4",d:"M18.5 18.5l0.5 0.5M18.5 5.5l0.5 -0.5M5.5 5.5l-0.5 -0.5M5.5 18.5l-0.5 0.5"},[t.createVNode("animate",{fill:"freeze",attributeName:"stroke-dashoffset",begin:"0.2s",dur:"0.2s",values:"4;2"},null)]),t.createVNode("set",{fill:"freeze",attributeName:"opacity",begin:"0.5s",to:"0"},null)]),t.createVNode("path",{d:"M7 6 C7 12.08 11.92 17 18 17 C18.53 17 19.05 16.96 19.56 16.89 C17.95 19.36 15.17 21 12 21 C7.03 21 3 16.97 3 12 C3 8.83 4.64 6.05 7.11 4.44 C7.04 4.95 7 5.47 7 6 Z",opacity:"0"},[t.createVNode("set",{fill:"freeze",attributeName:"opacity",begin:"0.5s",to:"1"},null)])]),t.createVNode("mask",{id:"lineMdSunnyOutlineToMoonAltLoopTransition3"},[t.createVNode("circle",{cx:"12",cy:"12",r:"12",fill:"#fff"},null),t.createVNode("circle",{cx:"12",cy:"12",r:"4"},[t.createVNode("animate",{fill:"freeze",attributeName:"r",begin:"0.1s",dur:"0.4s",values:"4;8"},null)]),t.createVNode("circle",{cx:"22",cy:"2",r:"3",fill:"#fff"},[t.createVNode("animate",{fill:"freeze",attributeName:"cx",begin:"0.1s",dur:"0.4s",values:"22;18"},null),t.createVNode("animate",{fill:"freeze",attributeName:"cy",begin:"0.1s",dur:"0.4s",values:"2;6"},null),t.createVNode("animate",{fill:"freeze",attributeName:"r",begin:"0.1s",dur:"0.4s",values:"3;12"},null)]),t.createVNode("circle",{cx:"22",cy:"2",r:"1"},[t.createVNode("animate",{fill:"freeze",attributeName:"cx",begin:"0.1s",dur:"0.4s",values:"22;18"},null),t.createVNode("animate",{fill:"freeze",attributeName:"cy",begin:"0.1s",dur:"0.4s",values:"2;6"},null),t.createVNode("animate",{fill:"freeze",attributeName:"r",begin:"0.1s",dur:"0.4s",values:"1;10"},null)])]),t.createVNode("circle",{cx:"12",cy:"12",r:"6",mask:"url(#lineMdSunnyOutlineToMoonAltLoopTransition3)",fill:"currentColor"},[t.createVNode("animate",{fill:"freeze",attributeName:"r",begin:"0.1s",dur:"0.4s",values:"6;10"},null),t.createVNode("set",{fill:"freeze",attributeName:"opacity",begin:"0.5s",to:"0"},null)])])}function pt(e){return t.createVNode("svg",t.mergeProps({xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24"},e),[t.createVNode("g",{fill:"none","fill-rule":"evenodd"},[t.createVNode("path",{d:"m12.594 23.258l-.012.002l-.071.035l-.02.004l-.014-.004l-.071-.036q-.016-.004-.024.006l-.004.01l-.017.428l.005.02l.01.013l.104.074l.015.004l.012-.004l.104-.074l.012-.016l.004-.017l-.017-.427q-.004-.016-.016-.018m.264-.113l-.014.002l-.184.093l-.01.01l-.003.011l.018.43l.005.012l.008.008l.201.092q.019.005.029-.008l.004-.014l-.034-.614q-.005-.019-.02-.022m-.715.002a.02.02 0 0 0-.027.006l-.006.014l-.034.614q.001.018.017.024l.015-.002l.201-.093l.01-.008l.003-.011l.018-.43l-.003-.012l-.01-.01z"},null),t.createVNode("path",{fill:"currentColor",d:"m8.464 4.222l12.021 12.02a1.01 1.01 0 0 1 0 1.415l-2.828 2.828a1 1 0 0 1-1.414 0L4.222 8.465a2 2 0 0 1 0-2.829l1.414-1.414a2 2 0 0 1 2.828 0M5 11.5c.444 0 .758.269.95.632l.053.112a3.87 3.87 0 0 0 1.385 1.672l.21.128c.358.202.62.525.62.955c0 .38-.203.68-.5.882l-.115.072a3.8 3.8 0 0 0-1.49 1.573l-.105.22c-.187.422-.512.754-1.008.754c-.452 0-.761-.274-.954-.641l-.054-.113a3.83 3.83 0 0 0-1.384-1.664l-.206-.126c-.359-.202-.621-.526-.621-.957c0-.383.208-.68.505-.883l.116-.072a3.76 3.76 0 0 0 1.482-1.565l.113-.236C4.18 11.826 4.51 11.5 5 11.5m5.586-2.328l-1.414 1.414l7.778 7.778l1.414-1.414zm6.845-1.77c.238-.481.8-.513 1.082-.097l.056.096c.216.435.574.804 1.043 1.04c.494.246.501.87.004 1.116a2.35 2.35 0 0 0-.954.872l-.09.164c-.24.486-.804.518-1.085.102l-.056-.096a2.3 2.3 0 0 0-.872-.945l-.17-.094c-.466-.232-.497-.79-.097-1.063l.092-.054a2.33 2.33 0 0 0 .957-.878l.09-.164ZM7.051 5.635L5.635 7.05l2.121 2.122l1.415-1.415L7.05 5.636ZM13.5 2c.294 0 .51.167.654.399l.06.11c.238.477.618.894 1.11 1.187l.196.107c.275.137.48.373.48.697c0 .283-.157.5-.38.64l-.105.06c-.52.26-.932.654-1.205 1.115l-.1.183c-.14.284-.374.502-.71.502c-.294 0-.51-.167-.654-.399l-.06-.11a2.9 2.9 0 0 0-1.11-1.187l-.196-.107c-.275-.137-.48-.374-.48-.698c0-.282.157-.499.38-.64l.105-.058c.52-.262.932-.654 1.205-1.116l.1-.183c.14-.284.374-.502.71-.502"},null)])])}const re={dataSource:{type:Array,default:()=>[]},historyKey:String},ve=()=>({...V.darkThemeProps,...re,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 bt(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 yt(e){return e?/^https?:\/\/.*$/.test(e):!1}const Nt=new Set(["$","(",")","*","+",".","?","[","\\","]","^","{","|","}"]),xt=({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("没有搜索历史")]),Ct=t.defineComponent({props:{...re,className:String,hashId:String,keyword:String,onClose:Function},setup(e){const n=He.useRouter(),a=T.useLocalStorage(e.historyKey||c.getPrefixCls({suffixCls:"layout-search-history",isPor:!0}),[]),r=t.ref(0),o=t.ref([]),i=T.useThrottleFn(l,200);function l(f){if(f=f.trim(),!f){o.value=[];return}const m=y(f),S=[];e.dataSource.forEach(F=>{if(F.meta?.hideInMenu)return;const Z=F.meta?.title||F.name||"";if(m.test(Z.toLowerCase())){let w=[];const j=F?.key?.split("-")||[];for(let E=0;E<j.length;E++)w.push(j.slice(0,E+1).join("-"));w=w.map(E=>e.dataSource.find(g=>g?.key===E)?.meta?.title||""),S.push(c.merge(F,{meta:{title:w.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 d(){if(o.value.length===0)return;const f=o.value,m=r.value;if(f.length===0||m<0)return;const S=f[m];S&&(a.value.push(S),s(),await t.nextTick(),yt(S.path)?window.open(S.path,"_blank"):n.push({path:S.path,replace:!0}))}function h(f){return Nt.has(f)?`\\${f}`:f}function y(f){const m=[...f].map(S=>h(S)).join(".*");return new RegExp(`.*${m}.*`)}function x(){o.value.length!==0&&(r.value--,r.value<0&&(r.value=o.value.length-1),u())}function O(){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),T.onKeyStroke("Enter",d),T.onKeyStroke("ArrowUp",x),T.onKeyStroke("ArrowDown",O)});function R(f){r.value=f}function k(f,m){f.stopPropagation(),e.keyword?o.value.splice(m,1):a.value.splice(m,1),r.value=r.value-1>=0?r.value-1:0,u()}const v=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:v("panel-title")},[t.createTextVNode("搜索历史")]),t.createVNode("div",{class:v("panel-list")},[bt(o.value,"path").map((f,m)=>t.createVNode("div",{key:f.name,class:v(c.classNames("panel-item",m===r.value&&"active")),"data-search-item":m,onClick:()=>d(),onMouseenter:()=>R(m)},[t.createVNode("div",{class:v("panel-item-left")},[t.createVNode(V.LazyIcon,t.mergeProps(f.meta||{},{icon:f.meta?.icon||t.createVNode(N.MenuOutlined,null,null),classNames:v("panel-icon")}),null),f.meta?.title?.split("**")?.map((S,F)=>t.createVNode(t.Fragment,null,[S,F<f.meta?.title?.split("**")?.length-1&&t.createVNode(N.ArrowRightOutlined,null,null)])),t.createVNode("span",null,null)]),t.createVNode(N.CloseOutlined,{onClick:S=>k(S,m)},null)]))])]):t.createVNode(xt,{className:v("result"),value:e.keyword},null)])}}),St=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:p.getProSolidColor(e,e.colorBgLayout),transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,">.anticon":{fontSize:e.fontSize,color:e.colorTextTertiary},"&-word":{lineHeight:e.lineHeight},"&-word-icon":{padding:"4px 6px",lineHeight:p.unit(e.fontSizeSM),borderTopLeftRadius:e.borderRadiusSM,borderBottomLeftRadius:e.borderRadiusSM,borderTopRightRadius:e.borderRadiusLG*2,borderBottomRightRadius:e.borderRadiusLG*2,backgroundColor:e.colorBgContainer},"&:hover":{color:e.colorTextSecondary},"&-panel":{"&-title":{color:e.colorTextQuaternary,lineHeight:e.lineHeight,marginBlockEnd:e.marginXS},"&-list":{display:"flex",flexDirection:"column",gap:12},"&-item":{display:"flex",alignItems:"center",justifyContent:"space-between",cursor:"pointer",fontSize:e.fontSize,lineHeight:e.lineHeight,padding:e.paddingXS,borderRadius:e.borderRadiusLG,backgroundColor:e.colorBgLayout,transition:`all ${e.motionDurationFast} ${e.motionEaseInOut}`,"&-left":{display:"flex",alignItems:"center",gap:e.sizeStep},"&.active":{backgroundColor:e.colorPrimary,color:e.colorTextLightSolid}}},"&-result":{display:"flex",alignItems:"center",justifyContent:"center",paddingBlockStart:60,color:e.colorTextQuaternary},"&-modal-footer":{display:"flex",alignItems:"center",gap:e.marginXS,fontSize:12,color:e.colorTextSecondary},"&-modal-footer-icon":{display:"flex",alignItems:"center",gap:4}}});function wt(e){return p.useStyle("SearchPageInput",n=>{const a=p.mergeToken(n,{});return[St(a)]},e)}const vt=({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(N.EnterOutlined,null,null),t.createTextVNode("选择")]),t.createVNode("div",{class:c.classNames(`${e}-footer-icon`,n)},[t.createVNode(N.ArrowUpOutlined,null,null),t.createVNode(N.ArrowUpOutlined,{rotate:180},null),t.createTextVNode("导航")])]),Vt=t.defineComponent({name:"SearchPageInput",props:{...re,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}=wt(n),[o,i]=A.useState(""),[l,s]=A.useState(!1),u=V.useProLayoutContext(),d=T.useMagicKeys(),h=c.isWindowsOs()?d["ctrl+k"]:d["cmd+k"],y=t.ref(),x=t.computed(()=>c.getLevelData(e.dataSource?.length?e.dataSource:u?.menuProps?.value?.menuData));T.whenever(h,()=>{e.disabledShortKey||s(!0)}),T.whenever(l,()=>{t.nextTick(()=>{y.value?.focus()})});const O=()=>{s(!1),o.value=""};return()=>{const R={className:`${n}`,hashId:r.value},k=`${n}-modal`;return a(t.createVNode(t.Fragment,null,[t.createVNode("div",{class:c.classNames(n,r.value),onClick:()=>s(!0)},[t.createVNode(N.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(de.GProModal,{class:c.classNames(`${k}`,r.value),width:600,scrollProps:{maxHeight:400,minHeight:200},centered:!1,title:t.createVNode(b.Input,{style:{width:`${600*.8}px`,padding:0},ref:y,bordered:!1,size:"large",placeholder:"搜索导航菜单",value:o.value,prefix:t.createVNode(N.SearchOutlined,null,null),onChange:v=>i(v.target.value)},null),open:l.value,footer:t.createVNode(vt,{className:k,hashId:r.value},null),onCancel:()=>O()},{default:()=>[t.createVNode(Ct,t.mergeProps(R,{keyword:o.value,dataSource:x.value,onClose:()=>O()}),null)]})]))}}}),Mt=e=>{const{dark:n}=V.getTokenLayoutTheme(e),a=V.checkMenuDark(e,"header");return{[`${e.componentCls}`]:{"&-header-actions":{display:"flex",alignItems:"center",justifyContent:"flex-end",height:"100%",gap:e.paddingXS,"&-item":{display:"inline-flex",alignItems:"center",justifyContent:"center",paddingBlock:0,paddingInline:2,color:n||a?e.colorWhite:e.colorTextTertiary,fontSize:"16px",cursor:"pointer",lineHeight:1,borderRadius:e.borderRadius,".anticon":{color:n||a?e.colorWhite:e.colorTextTertiary},[`${e.componentCls}-header-actions-icon`]:{fontSize:e.fontSizeXL},"> *":{paddingInline:6,paddingBlock:6,borderRadius:e.borderRadius,transition:`color ${e.motionDurationMid}, background-color ${e.motionDurationMid}`,"&:hover":{background:a?ne.getAlphaColor("#fff",.12):e.colorBgTextHover}}},[`&>${e.antCls}-dropdown-trigger`]:{color:e.colorTextTertiary,paddingInline:8,paddingBlock:8,cursor:"pointer",display:"flex",alignItems:"center",height:44,lineHeight:p.unit(44),borderRadius:e.borderRadius,paddingInlineEnd:e.padding,"&:hover":{backgroundColor:p.setAlpha(e.colorTextBase,.03)}},"&-avatar":{display:"inline-flex",alignItems:"center",justifyContent:"center",gap:e.paddingXS,cursor:"pointer",color:e.colorTextTertiary,"> div":{color:n||a?e.colorWhite:e.colorTextTertiary}}}}}};function Tt(e){return p.useStyle("RightContent",n=>{const a=p.mergeToken(n);return[Mt(a)]},e)}const kt=t.defineComponent({name:"GlobalRightContent",props:ve(),inheritAttrs:!1,emits:["logout","darkChange","clickSettings","update:dark","lockOpenChange"],slots:Object,setup(e,{slots:n}){const{isFullscreen:a,toggle:r}=T.useFullscreen(),o=p.useProConfigContext(),i=V.useProLayoutContext(),l=A.useMediaQuery(),s=c.getPrefixCls({suffixCls:"global-header",isPor:!0}),{wrapSSR:u,hashId:d}=Tt(s),[h,y]=A.useState(!1),[x,O]=A.useState("auto"),{isDark:R,toggleMode:k}=V.useDarkTheme(t.computed(()=>V.hasDarkValue(e.dark)?e.dark:i?.dark?.value),{change:w=>{e.onDarkChange?.(w),e?.["onUpdate:dark"]?.(w),i?.onDarkChange?.(w)}}),v=t.computed(()=>c.isBoolean(i?.isMobile?.value)?i?.isMobile?.value:l.value==="sm"||l.value==="xs"),f=t.computed(()=>V.hasDarkValue(e.dark)?R.value:o?.dark?.value),m=t.computed(()=>e.actions===!1?{}:{...{lock:!0,theme:!0,search:!0,settings:!0,fullScreen:!0},...e.actions}),S=T.useDebounceFn(async w=>{O(w)},160),F=w=>{V.toggleLayoutTheme({event:w,isDark:f,toggle:k})};function Z(w){c.isFunction(e.onClickSettings)&&e.onClickSettings?.(w)}return()=>{const w=c.getSlotsProps({slots:n,props:e,keys:["dropdownRender","dropdownMenuRender","dropdownMenuExtraItemRender"],render:!0}),j=c.getSlot({slots:n,props:e,key:"actionsRender"}),E=a.value?N.CompressOutlined:N.ExpandOutlined,g=m.value.lock?t.defineAsyncComponent(()=>Promise.resolve().then(()=>wn)):t.createVNode("div",null,null);return u(t.createVNode("div",{class:`${s}-right-content ${d.value}`.trim(),style:{minWidth:x.value,height:"100%"}},[t.createVNode("div",{style:{height:"100%"}},[t.createVNode(gt,{key:"resize-observer",onResize:({width:W})=>{S(W)}},{default:()=>[t.createVNode("div",{class:`${s}-header-actions ${d.value}`.trim()},[n.default?.()??t.createVNode(t.Fragment,null,[m.value.search&&!v.value&&t.createVNode(Vt,{dataSource:e.dataSource,disabledShortKey:e.shortsKey?.disabled},null),m.value.theme&&t.createVNode("div",{class:`${s}-header-actions-item ${d.value}`.trim()},[t.createVNode(N,{class:`${s}-header-actions-icon ${d.value}`.trim(),component:f.value?we:Se,onClick:W=>F(W)},null)]),m.value.settings&&!v.value&&t.createVNode("div",{class:`${s}-header-actions-item ${d.value}`.trim()},[t.createVNode(N.SettingOutlined,{onClick:()=>Z("settings")},null)]),m.value.fullScreen&&!v.value&&t.createVNode("div",{class:`${s}-header-actions-item ${d.value}`.trim()},[t.createVNode(E,{onClick:()=>r()},null)]),j?j?.([`${s}-header-actions-item`,d.value]):null]),t.createVNode(b.Dropdown,t.mergeProps({placement:"bottomRight",overlayStyle:{maxWidth:120,minWidth:120}},e.dropdownProps,{overlay:w.dropdownMenuRender||t.createVNode(b.Menu,null,{default:()=>[w.dropdownMenuExtraItemRender,m.value.lock&&t.createVNode(t.Fragment,null,[t.createVNode(b.MenuItem,{key:"lock",icon:t.createVNode(N.LockOutlined,null,null),onClick:()=>y(!0)},{default:()=>[t.createTextVNode("锁定屏幕")]}),t.createVNode(b.Menu.Divider,null,null)]),t.createVNode(b.MenuItem,{key:"logout",icon:t.createVNode(N.LogoutOutlined,null,null),onClick:()=>e.onLogout?.()},{default:()=>[t.createTextVNode("退出登录")]})]})}),{default:()=>[w.dropdownRender||t.createVNode("div",{class:`${s}-header-actions-avatar ${d.value}`.trim()},[t.createVNode(b.Avatar,{size:28,icon:t.createVNode(N.UserOutlined,null,null),src:e.avatar},null),t.createVNode("div",{class:`${s}-header-actions-name ${d.value}`.trim()},[e.name])])]})])]})]),t.createVNode(g,{open:h.value,onOpenChange:W=>y(W)},null)]))}}}),{provideContext:At,useInjectContext:D}=p.useContext("theme-editor"),Ve={width:Number,open:{type:Boolean,default:void 0},onOpenChange:{type:Function,default:void 0}},Me={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}},Bt=[{value:"light",label:()=>t.createVNode("div",{style:{display:"flex",alignItems:"center",gap:"6px"}},[t.createVNode(N,{component:Se},null),t.createTextVNode("亮色")])},{value:"dark",label:()=>t.createVNode("div",{style:{display:"flex",alignItems:"center",gap:"6px"}},[t.createVNode(N,{component:we},null),t.createTextVNode("深色")])},{value:"system",label:()=>t.createVNode("div",{style:{display:"flex",alignItems:"center",gap:"6px"}},[t.createVNode(N.DesktopOutlined,null,null),t.createTextVNode("自动")])}],Te=[{key:"light",title:"亮色菜单风格"},{key:"dark",title:"暗色菜单风格"}],ke=[{key:"side",title:"侧边菜单布局"},{key:"mix",title:"混合菜单布局"},{key:"top",title:"顶部菜单布局"},{key:"wide",title:"定宽菜单布局"},{key:"simple",title:"简单菜单布局"}],Rt=[{label:"fixedHeader",title:"固定 Header"},{label:"fixSiderbar",title:"固定侧边菜单"},{label:"splitMenus",title:"自动分割菜单"}],Ot=[{label:"showTabsBar",title:"多标签"},{label:"fixedTabsBar",title:"固定多标签"}],Ft=[{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:"酱紫"}],Ae=t.defineComponent({name:"BlockCheckbox",props:{value:String,list:{type:Array,default:()=>[]},configType:String,onChange:Function},setup(e){const{hashId:n,prefixCls:a}=D();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(N.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])]}))])}}}),U=t.defineComponent({name:"RegionalChange",props:{label:String,value:Boolean,valueKey:String,disabled:Boolean,onChange:Function},setup(e){const{hashId:n,prefixCls:a}=D();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)}}),It=["copyButton","progress","weakMode","extraSettingState"],$t=t.defineComponent({props:{...Ve,...z.pick(Me,["copyButton","progress","weakMode","extraSettingState"]),disabled:Object,dark:Boolean,onChangeDark:Function,onChangeConfig:Function,onChangeExtraConfig:Function},setup(e){const{hashId:n,drawerClass:a,prefixCls:r}=D(),o=V.useProLayoutContext(),{copy:i,copied:l,isSupported:s}=T.useClipboard();t.watch(l,d=>{d&&b.message.success("拷贝成功,请到 config/default/themeConfig.js 中替换默认配置")});const u=()=>{s.value&&i(JSON.stringify(t.unref(o?.settings?.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(ue.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)},[t.createTextVNode("GxDesign Pro")])]),t.createVNode("div",{class:c.classNames(`${r}-card-content`,n.value)},[t.createVNode(X,{prefixCls:`${r}`,hashId:n.value,title:"整体风格"},{default:()=>[t.createVNode(b.Segmented,{value:c.isBoolean(e.dark)?e.dark?"dark":"light":"system",options:Bt,onChange:d=>e.onChangeDark?.(d)},null)]}),t.createVNode(X,{prefixCls:r,hashId:n.value,title:"菜单风格"},{default:()=>[t.createVNode(Ae,{value:o?.settings?.value.theme,list:Te,configType:"menuTheme",key:"menuTheme",onChange:d=>e.onChangeConfig?.({theme:d})},null)]}),t.createVNode(b.Divider,null,null),t.createVNode(X,{hashId:n.value,prefixCls:r,title:"导航模式"},{default:()=>[t.createVNode(Ae,{value:o?.settings?.value.layout,key:"layout",configType:"layout",list:ke,onChange:d=>e.onChangeConfig?.({layout:d})},null)]}),Rt.map(({label:d,title:h})=>t.createVNode(U,{label:h,valueKey:d,value:o?.settings?.value[d],disabled:e.disabled?.[d],onChange:(y,x)=>e.onChangeConfig?.({[y]:x})},null)),t.createVNode(b.Divider,null,null),t.createVNode(X,{hashId:n.value,prefixCls:r,title:"其他设置"},{default:()=>[Ot.map(({label:d,title:h})=>t.createVNode(U,{label:h,valueKey:d,value:o?.settings?.value[d],disabled:e.disabled?.[d],onChange:(y,x)=>e.onChangeConfig?.({[y]:x})},null)),e.weakMode&&t.createVNode(U,{label:"色弱模式",valueKey:"colorWeak",value:e.extraSettingState?.colorWeak,onChange:(d,h)=>e.onChangeExtraConfig?.({[d]:h})},null),e.progress&&t.createVNode(U,{label:"顶部进度条",valueKey:"progress",value:e.extraSettingState?.progress,onChange:(d,h)=>e.onChangeExtraConfig?.({[d]:h})},null)]}),e.copyButton&&t.createVNode(b.Divider,null,null),t.createVNode("div",{style:{display:"flex",gap:"10px"}},[e.copyButton&&t.createVNode(b.Button,{onClick:()=>u(),block:!0},{default:()=>[t.createVNode(N.CopyOutlined,null,null),t.createTextVNode("拷贝设置")]}),t.createVNode(b.Button,{block:!0},{default:()=>[t.createVNode(N.ClearOutlined,null,null),t.createTextVNode("清空缓存")]})])])])])]})])]})}}),Et=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)])}}),zt=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:p.getProSolidColor(e,e.colorBgContainer)},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:p.getProSolidColor(e,e.colorBgContainer)}}}),Lt=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}=p.useProStyle("SwitchTab",[zt],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(ue.GScrollbars,null,{default:()=>[e.renderContent?.(o.value)]})])]))}}),{provideContext:Pt,useInjectContext:Ht}=p.useContext("theme-setting"),Dt=t.defineComponent({setup(){const{prefixCls:e,hashId:n}=D(),{onChange:a}=Ht(),{token:r}=p.useProConfigContext(),o=t.computed(()=>{const i=new he.AggregationColor(r.value.colorPrimary);return{hsb:i.toHsbString(),rgb:i.toRgbString(),hex:i.toHexString()}});return()=>t.createVNode(X,{hashId:n.value,prefixCls:e,title:"主题色"},{default:()=>[t.createVNode("div",{class:c.classNames(`${e}-color-list`,n.value)},[Ft.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(N.CheckOutlined,{style:{color:r.value.colorWhite,fontSize:"12px"}},null):null])]}))]),t.createVNode(he.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",{style:{color:r.value.colorPrimary}},[t.createTextVNode("HEX:"),o.value.hex])]),t.createVNode(N.EditOutlined,{style:{fontSize:"18px"}},null)])])])]})]})}}),_t=t.defineComponent({setup(){const{prefixCls:e,hashId:n}=D();return()=>t.createVNode(X,{hashId:n.value,prefixCls:e,title:"侧边主题色"},null)}}),jt=t.defineComponent({setup(){const{token:e}=p.useProConfigContext();return()=>t.createVNode("div",{style:{padding:p.unit(e.value.padding)}},[t.createVNode(Dt,null,null),t.createVNode(_t,null,null)])}}),Wt=t.defineComponent({props:{...Ve,onChange:{type:Function,default:void 0}},setup(e){const{hashId:n,prefixCls:a,drawerClass:r}=D(),{token:o}=p.useProConfigContext(),i=t.computed(()=>V.getTokenLayoutTheme(o.value)),l=t.computed(()=>{const s=ke.find(d=>d.key===i.value.layout)?.title;return`${Te.find(d=>d.key===i.value.theme)?.title}/${s}`});return Pt({onChange:e.onChange}),()=>{const{width:s,open:u,onOpenChange:d}=e;return t.createVNode(b.Drawer,{width:s,closable:!1,placement:"right",open:u,bodyStyle:{padding:0},maskStyle:{background:"transparent"},onClose:()=>d?.(!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(Lt,{activeKey:"color",dataSource:[{label:"色彩",value:"color"}],renderItem:h=>{if(h.value==="color")return t.createVNode(Et,null,null)},renderContent:h=>{if(h==="color")return t.createVNode(jt,null,null)}},null)])]})}}}),Gt=t.defineComponent({name:"Trigger",inheritAttrs:!1,props:{type:String,open:Boolean,onTypeChange:Function,onOpenChange:Function,onClose:Function},setup(e){const{prefixCls:n,hashId:a}=D();function r(o){return{width:o?p.unit(216):p.unit(48),transition:"width 0.3s"}}return()=>{const o=p.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(N,{component:pt},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(N.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(N,{component:mt},null),e.type==="theme"&&t.createVNode("span",{class:c.classNames(a.value,`${n}-dock-icon-text`)},[t.createTextVNode("主题配置")])])])]),[[t.vShow,e.open]])]})])}}});function M(e,n){qt(e)&&(e="100%");var a=Xt(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 ee(e){return Math.min(1,Math.max(0,e))}function qt(e){return typeof e=="string"&&e.indexOf(".")!==-1&&parseFloat(e)===1}function Xt(e){return typeof e=="string"&&e.indexOf("%")!==-1}function Be(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function te(e){return e<=1?"".concat(Number(e)*100,"%"):e}function _(e){return e.length===1?"0"+e:String(e)}function Kt(e,n,a){return{r:M(e,255)*255,g:M(n,255)*255,b:M(a,255)*255}}function Re(e,n,a){e=M(e,255),n=M(n,255),a=M(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 oe(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 Zt(e,n,a){var r,o,i;if(e=M(e,360),n=M(n,100),a=M(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=oe(s,l,e+1/3),o=oe(s,l,e),i=oe(s,l,e-1/3)}return{r:r*255,g:o*255,b:i*255}}function Oe(e,n,a){e=M(e,255),n=M(n,255),a=M(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 Yt(e,n,a){e=M(e,360)*6,n=M(n,100),a=M(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,d=[a,l,i,i,s,a][u],h=[s,a,a,l,i,i][u],y=[i,i,s,a,a,l][u];return{r:d*255,g:h*255,b:y*255}}function Fe(e,n,a,r){var o=[_(Math.round(e).toString(16)),_(Math.round(n).toString(16)),_(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 Qt(e,n,a,r,o){var i=[_(Math.round(e).toString(16)),_(Math.round(n).toString(16)),_(Math.round(a).toString(16)),_(Jt(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 Jt(e){return Math.round(parseFloat(e)*255).toString(16)}function Ie(e){return B(e)/255}function B(e){return parseInt(e,16)}function Ut(e){return{r:e>>16,g:(e&65280)>>8,b:e&255}}var ie={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",goldenrod:"#daa520",gold:"#ffd700",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavenderblush:"#fff0f5",lavender:"#e6e6fa",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"};function en(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=an(e)),typeof e=="object"&&($(e.r)&&$(e.g)&&$(e.b)?(n=Kt(e.r,e.g,e.b),l=!0,s=String(e.r).substr(-1)==="%"?"prgb":"rgb"):$(e.h)&&$(e.s)&&$(e.v)?(r=te(e.s),o=te(e.v),n=Yt(e.h,r,o),l=!0,s="hsv"):$(e.h)&&$(e.s)&&$(e.l)&&(r=te(e.s),i=te(e.l),n=Zt(e.h,r,i),l=!0,s="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(a=e.a)),a=Be(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 tn="[-\\+]?\\d+%?",nn="[-\\+]?\\d*\\.\\d+%?",L="(?:".concat(nn,")|(?:").concat(tn,")"),le="[\\s|\\(]+(".concat(L,")[,|\\s]+(").concat(L,")[,|\\s]+(").concat(L,")\\s*\\)?"),se="[\\s|\\(]+(".concat(L,")[,|\\s]+(").concat(L,")[,|\\s]+(").concat(L,")[,|\\s]+(").concat(L,")\\s*\\)?"),I={CSS_UNIT:new RegExp(L),rgb:new RegExp("rgb"+le),rgba:new RegExp("rgba"+se),hsl:new RegExp("hsl"+le),hsla:new RegExp("hsla"+se),hsv:new RegExp("hsv"+le),hsva:new RegExp("hsva"+se),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/};function an(e){if(e=e.trim().toLowerCase(),e.length===0)return!1;var n=!1;if(ie[e])e=ie[e],n=!0;else if(e==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var a=I.rgb.exec(e);return a?{r:a[1],g:a[2],b:a[3]}:(a=I.rgba.exec(e),a?{r:a[1],g:a[2],b:a[3],a:a[4]}:(a=I.hsl.exec(e),a?{h:a[1],s:a[2],l:a[3]}:(a=I.hsla.exec(e),a?{h:a[1],s:a[2],l:a[3],a:a[4]}:(a=I.hsv.exec(e),a?{h:a[1],s:a[2],v:a[3]}:(a=I.hsva.exec(e),a?{h:a[1],s:a[2],v:a[3],a:a[4]}:(a=I.hex8.exec(e),a?{r:B(a[1]),g:B(a[2]),b:B(a[3]),a:Ie(a[4]),format:n?"name":"hex8"}:(a=I.hex6.exec(e),a?{r:B(a[1]),g:B(a[2]),b:B(a[3]),format:n?"name":"hex"}:(a=I.hex4.exec(e),a?{r:B(a[1]+a[1]),g:B(a[2]+a[2]),b:B(a[3]+a[3]),a:Ie(a[4]+a[4]),format:n?"name":"hex8"}:(a=I.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 $(e){return!!I.CSS_UNIT.exec(String(e))}var P=(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=Ut(n)),this.originalInput=n;var o=en(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=Be(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=Oe(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=Oe(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=Re(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=Re(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),Fe(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),Qt(this.r,this.g,this.b,this.a,n)},e.prototype.toHex8String=function(n){return n===void 0&&(n=!1),"#"+this.toHex8(n)},e.prototype.toHexShortString=function(n){return n===void 0&&(n=!1),this.a===1?this.toHexString(n):this.toHex8String(n)},e.prototype.toRgb=function(){return{r:Math.round(this.r),g:Math.round(this.g),b:Math.round(this.b),a:this.a}},e.prototype.toRgbString=function(){var n=Math.round(this.r),a=Math.round(this.g),r=Math.round(this.b);return this.a===1?"rgb(".concat(n,", ").concat(a,", ").concat(r,")"):"rgba(".concat(n,", ").concat(a,", ").concat(r,", ").concat(this.roundA,")")},e.prototype.toPercentageRgb=function(){var n=function(a){return"".concat(Math.round(M(a,255)*100),"%")};return{r:n(this.r),g:n(this.g),b:n(this.b),a:this.a}},e.prototype.toPercentageRgbString=function(){var n=function(a){return Math.round(M(a,255)*100)};return this.a===1?"rgb(".concat(n(this.r),"%, ").concat(n(this.g),"%, ").concat(n(this.b),"%)"):"rgba(".concat(n(this.r),"%, ").concat(n(this.g),"%, ").concat(n(this.b),"%, ").concat(this.roundA,")")},e.prototype.toName=function(){if(this.a===0)return"transparent";if(this.a<1)return!1;for(var n="#"+Fe(this.r,this.g,this.b,!1),a=0,r=Object.entries(ie);a<r.length;a++){var o=r[a],i=o[0],l=o[1];if(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=ee(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=ee(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=ee(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=ee(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 $e=new p.Keyframe("toConic",{"0%":{backgroundPosition:"0 0"},"100%":{backgroundPosition:"100% 50%"}}),rn=new p.Keyframe("dockIconText",{"0%":{display:"none",opacity:0},"80%":{overflow:"hidden"},"100%":{display:"unset",opacity:1}}),on=new p.Keyframe("dockZoomIn",{"0%":{transform:"translateX(-50%) scale(0)",opacity:0},"100%":{transform:"translateX(-50%) scale(1)",opacity:1}}),ln=new p.Keyframe("dockZoomOut",{"0%":{transform:"translateX(-50%) scale(1)"},"100%":{transform:"translateX(-50%) scale(0)",opacity:0}}),Ee=e=>e===0?0:e-Math.sqrt(e**2/2),sn=e=>({[e.componentCls]:{"&-button":{border:"none",position:"fixed",cursor:"pointer",zIndex:e.zIndexPopupBase,width:e.controlHeightLG,height:e.controlHeightLG,insetInlineEnd:e.marginLG,bottom:e.marginXXL,boxShadow:e.boxShadowSecondary,borderRadius:"50%",display:"flex",alignItems:"center",justifyContent:"center",textAlign:"center",backgroundColor:e.colorPrimary,transition:`background-color ${e.motionDurationMid}`,"&:hover":{backgroundColor:e.colorPrimary},[`${e.componentCls}-dot`]:{position:"absolute",transform:"translate(50%, -50%)",transformOrigin:"100% 0%",zIndex:"auto",width:e.fontSizeSM/2,minWidth:e.fontSizeSM/2,height:e.fontSizeSM/2,background:e.colorError,borderRadius:"100%",boxShadow:`0 0 0 ${p.unit(e.lineWidth)} ${e.colorBorderBg}`,top:Ee(e.controlHeightLG/2),insetInlineEnd:Ee(e.controlHeightLG/2)},[`${e.componentCls}-icon`]:{margin:"auto",color:e.colorTextLightSolid,width:e.calc(e.fontSizeIcon).mul(1.5).equal(),fontSize:e.calc(e.fontSizeIcon).mul(1.5).equal(),lineHeight:1}}}}),cn=e=>{const n=new P(new P("rgb(0, 0, 0)").setAlpha(.06).toRgbString()),a=new P(new P(e.colorBgBase).setAlpha(.6).toRgbString());return{[e.componentCls]:{"&-dock":{position:"fixed",bottom:e.marginXL,left:"50%",zIndex:e.zIndexPopupBase+80,color:e.colorWhite,transform:"translateX(-50%)",display:"flex",alignItems:"center",gap:e.sizeXS,padding:e.paddingXS,backgroundColor:a.toRgbString(),borderRadius:e.controlHeight,backdropFilter:"blur(10px)","&-zoom-appear, &-zoom-enter":{animationName:on,opacity:0,animationTimingFunction:e.motionEaseOutCirc,animationFillMode:"both",transform:"none",animationDuration:e.motionDurationMid,userSelect:"none"},"&-zoom-enter-active":{animationPlayState:"running"},"&-zoom-leave":{animationName:ln,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:$e},"&-active":{animationTimingFunction:"cubic-bezier(.38,0,.24,1)",animationDuration:"0.5s",animationFillMode:"forwards",animationName:$e}},"&-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:rn,animationDuration:".4s",animationTimingFunction:"ease"}}}}}},dn=e=>({[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:"0 1px 2.5px rgba(0,0,0,.18)",cursor:"pointer",fontSize:56,lineHeight:"56px","&::before":{position:"absolute",insetBlockStart:0,insetInlineStart:0,width:"33%",height:"100%",content:"''"},"&::after":{position:"absolute",insetBlockStart:0,insetInlineStart:0,width:"100%",height:"25%",content:"''"},"&-dark":{backgroundColor:"rgba(0, 21, 41, 0.85)","&::before":{backgroundColor:"rgba(0, 0, 0, 0.65)"},"&::after":{backgroundColor:"rgba(0, 0, 0, 0.85)"}},"&-light":{backgroundColor:"#f7f8fa","&::before":{backgroundColor:"#fff"},"&::after":{backgroundColor:"#fff"}},"&-realDark":{backgroundColor:"rgba(0, 21, 41, 0.85)","&::before":{backgroundColor:"rgba(0, 0, 0, 0.65)"},"&::after":{backgroundColor:"rgba(0, 0, 0, 0.85)"}},"&-dark,&-side":{backgroundColor:"#f7f8fa","&::before":{zIndex:"1",backgroundColor:"#001529"},"&::after":{backgroundColor:"#fff"}},"&-wide":{backgroundColor:"#f7f8fa","&::before":{backgroundColor:"#fff",left:"15%",width:"15%",height:"calc(100% - 38%)",top:"38%"},"&::after":{backgroundColor:"#fff"},"&-content":{position:"absolute",height:"calc(100% - 38%)",top:"38%",right:"15%",width:"calc(100% - 15% - 15% - 10% - 15%)",backgroundColor:"#fff"}},"&-simple":{backgroundColor:"#f7f8fa","&::before":{backgroundColor:"#fff"},"&::after":{display:"none"}},"&-mix":{backgroundColor:"#f7f8fa","&::before":{backgroundColor:"#fff"},"&::after":{backgroundColor:"#001529"}},"&-top":{backgroundColor:"#f7f8fa","&::after":{backgroundColor:"#001529"}}},"& &-selectIcon":{position:"absolute",insetInlineEnd:"6px",bottom:"4px",color:e.colorPrimary,fontWeight:"bold",fontSize:"14px",pointerEvents:"none",".action":{color:e.colorPrimary}},"& &-icon":{fontSize:56,lineHeight:"56px"}},"&-list":{[`&${e.antCls}-list-sm ${e.antCls}-list-item`]:{paddingInline:0}}}}),un=e=>{const{dark:n}=V.getTokenLayoutTheme(e);return{[`${e.componentCls}-drawer`]:{"&-wrapper":{display:"flex",flexDirection:"column",position:"relative",height:"100%",overflow:"hidden",backgroundColor:e.colorBgLayout,"*":{boxSizing:"border-box"}},"&-content":{position:"relative",height:"100%",padding:e.paddingXS,[`${e.antCls}-segmented-item`]:{flex:1},[`${e.antCls}-segmented`]:{backgroundColor:n?e.colorBgBase:void 0,[`${e.antCls}-segmented-item-selected`]:{backgroundColor:n?"#1f1f1f":void 0}}}}}},hn=e=>{const n=`${e.componentCls}`,a=new P(new P(e.colorWhite).setAlpha(.55).toRgbString());return{[n]:{"&-card":{display:"flex",flexDirection:"column",borderRadius:e.borderRadiusLG,minHeight:`calc(100vh - ${e.padding}px)`,[`${n}-card-content`]:{flex:1,borderRadius:e.borderRadiusLG,backgroundColor:p.getProSolidColor(e,e.colorBgContainer),padding:e.padding}},"&-card-header":{borderRadius:e.borderRadiusLG,backgroundColor:e.colorPrimary,paddingBlock:e.paddingXS,paddingInline:e.padding-4,marginBlockEnd:e.marginXS,"&-title":{color:e.colorWhite,fontSize:e.fontSizeXL,lineHeight:e.lineHeight,marginBlockEnd:e.marginXS,fontWeight:e.fontWeightStrong},"&-subtitle":{color:a.toString()}}}}},fn=e=>{const n=`${e.componentCls}`,a=new P(new P(e.colorWhite).setAlpha(.55).toRgbString());return{[n]:{"&-color-list":{display:"flex",gap:8,marginBlockEnd:e.margin},"&-color-item":{width:20,height:20,display:"flex",alignItems:"center",justifyContent:"center",borderRadius:2,cursor:"pointer",color:e.colorWhite,fontWeight:"bold"},"&-color-picker":{marginBlock:e.marginXS,padding:2,height:106,background:`conic-gradient(from 180deg at 50% 50%,#00c3ff 0,${e.colorPrimary} 120deg,${e.colorPrimary} 180deg,#4ceb1b 290.62deg,#00c3ff 1turn)`,borderRadius:9,cursor:"pointer",transition:`padding ${e.motionDurationMid}`,"&:hover":{padding:4},"&-inner":{backgroundColor:p.getProSolidColor(e,e.colorBgContainer),padding:"2px 2px 4px 2px",borderRadius:7,maxHeight:"100%"},"&-top":{width:"100%",borderRadius:6,padding:"4px 8px",p:{color:a.toString(),lineHeight:"20px",fontSize:e.fontSizeSM,margin:0}},"&-bottom":{display:"flex",alignItems:"center",justifyContent:"space-between",padding:"4px 8px",p:{margin:0,fontSize:e.fontSize,lineHeight:"22px","&:first-child":{color:e.colorText,fontWeight:600},"&:last-child":{color:e.colorTextDescription}}}}}}};function gn(e){const n=["showTabsBar","fixedMultiTab","fixSiderbar","fixedHeader","splitMenus"];let r=Object.keys(e).reduce((o,i)=>(o[i]=!1,o),{});return r=z.pick(r,n),e.layout==="mix"&&(r.fixSiderbar=!0,r.fixedHeader=!0),e.layout==="top"&&(r.fixSiderbar=!0,r.splitMenus=!0),e.layout==="side"&&(r.splitMenus=!0),e.layout==="simple"&&(r.splitMenus=!0,r.fixedHeader=!0,r.showTabsBar=!0,r.fixedTabsBar=!0),e.layout==="wide"&&(r.splitMenus=!0,r.fixedHeader=!0,r.fixSiderbar=!0,r.showTabsBar=!0,r.fixedTabsBar=!0),r}function ce(e){return e.layout==="mix"&&(e.fixSiderbar=!0,e.fixedHeader=!0,e.splitMenus=!0),e.layout==="top"&&(e.fixSiderbar=!1,e.fixedHeader=!0,e.splitMenus=!1),e.layout==="simple"&&(e.splitMenus=!1,e.showTabsBar=!1,e.fixedHeader=!1,e.fixSiderbar=!1),e.layout==="side"&&(e.splitMenus=!1,e.fixedHeader=!0,e.fixSiderbar=!0),e.layout==="wide"&&(e.splitMenus=!1,e.fixSiderbar=!1,e.fixedHeader=!0,e.showTabsBar=!1,e.fixedTabsBar=!1),e}const X=(e,{slots:n})=>t.createVNode("div",{style:{marginBottom:"24px"}},[t.createVNode("h3",{class:`${e.prefixCls}-body-title ${e.hashId}`.trim()},[e.title]),n.default?.()]),mn=t.defineComponent({name:"ThemeEditor",inheritAttrs:!1,props:Me,emits:["update:open","change","changeSettingState","changeThemeState"],setup(e){const a=c.getPrefixCls({suffixCls:"theme-setting",isPor:!0}),r=c.getPrefixCls({suffixCls:"theme-editor",isPor:!0}),{wrapSSR:o,hashId:i}=p.useProStyle("ProThemeEditor",[dn,un,sn,cn,fn,hn],r),l=T.useLocalStorage(a,{}),s=V.useProLayoutContext(),[u,d]=A.useState(!1),[h,y]=A.useState(!1),[x,O]=A.useState("theme");Object.keys(l.value).length&&e.onChangeSettingState?.(ce({...t.toRaw(l.value)}));const R=t.computed(()=>({progress:!!e.extraSettingState?.progress,colorWeak:!!e.extraSettingState?.colorWeak})),k=t.computed(()=>gn({...t.toRaw(s.settings.value),...t.toRaw(R.value)}));t.watch(()=>e.open,g=>{g&&(x.value==="theme"?y(g):d(g))}),t.watch([()=>u.value,()=>h.value],()=>{e.onChange&&e.onChange(u.value||h.value),e?.["onUpdate:open"]?.(u.value||h.value)});const{dark:v,isDark:f,toggleMode:m}=V.useDarkTheme(t.computed(()=>s?.dark?.value),{change:g=>{s?.onDarkChange?.(g)}});function S(g){y(!g),d(g)}function F(g){y(g),d(!g)}const Z=(g,W)=>V.toggleLayoutTheme({event:g,isDark:f,toggle:m,value:W}),w=g=>{Z(null,g==="system"?g:g==="dark")};function j(g){e.onChangeSettingState?.(g),t.nextTick(()=>{s&&(l.value=ce(c.deepMerge(z.cloneDeep(l.value),{...t.toRaw(s.settings.value),...t.toRaw(R.value)})))})}function E(g){e.onChangeSettingState?.(g),t.nextTick(()=>{s&&(l.value=ce(c.deepMerge(z.cloneDeep(l.value),{...t.toRaw(s.settings.value),...t.toRaw(R.value),...t.toRaw(g)})))})}return At({hashId:i,prefixCls:r,drawerClass:`${r}-drawer`}),()=>o(t.createVNode("div",{class:c.classNames(i.value,r)},[t.createVNode(Gt,{type:x.value,open:u.value||h.value,onTypeChange:g=>{O(g),g==="setting"?S(!0):g==="theme"&&F(!0)},onOpenChange:g=>{x.value==="setting"?S(g):x.value==="theme"&&F(g)},onClose:()=>{d(!1),y(!1)}},null),t.createVNode($t,t.mergeProps({width:348,dark:v.value,open:u.value,disabled:k.value},z.pick(e,It),{onChangeDark:w,onChangeConfig:j,onOpenChange:g=>d(!!g),onChangeExtraConfig:E}),null),t.createVNode(Wt,{width:348,open:h.value,onChange:g=>e.onChangeThemeState?.(g),onOpenChange:g=>y(!!g)},null)]))}});H.locale("zh-cn");function pn(){const e=t.reactive({hh:"",mm:"",ss:"",dddd:"",day:"",a:""});function n(){e.hh=H().format("HH"),e.mm=H().format("mm"),e.ss=H().format("ss"),e.a=H().format("a").toUpperCase(),e.day=H().format("YYYY-MM-DD"),e.dddd=H().format("dddd"),requestAnimationFrame(n)}return requestAnimationFrame(n),e}const bn=ve(),ze={hashId:String,className:String},Le={open:{type:Boolean,default:void 0},onOpenChange:Function,"onUpdate:open":Function,cryptoFn:Function,...z.pick(bn,["name","avatar"])},yn={...Le,shortsKey:{type:Object,default:()=>({disabled:!1})}};function Nn(e){const n=t.reactive({password:""}),{validate:a,resetFields:r,validateInfos:o}=p.useProForm(n,{password:[{validator:(i,l)=>(e&&l?e?.(l):l)?Promise.resolve():Promise.reject(e&&l?"密码错误":"请输入锁屏密码")}]});return{formState:n,validate:a,resetFields:r,validateInfos:o}}const Pe=t.defineComponent({props:{...ze,name:String,avatar:String,avatarSize:{type:Number,default:60},submitText:String,validator:Function,onSubmit:Function},setup(e,{expose:n,slots:a}){const{formState:r,validate:o,validateInfos:i,resetFields:l}=Nn(e.validator),s=h=>{Object.assign(r,h)},u=(h="",y)=>{const x=h?`${e.className}-${h}`:e.className;return c.classNames(x,e.hashId,"")},d=()=>{o().then(()=>{e.onSubmit?.(r)}).catch(()=>{})};return n({formState:r,resetFields:l,merageFormState:s}),()=>t.createVNode("div",{class:u("user-form")},[t.createVNode("div",{class:u("user-info")},[t.createVNode(b.Avatar,{size:e.avatarSize,icon:t.createVNode(N.UserOutlined,null,null),src:e.avatar},null),e.name&&t.createVNode("div",{class:u("user-name")},[e.name])]),t.createVNode(b.Form,null,{default:()=>[t.createVNode(b.Form.Item,i.password,{default:()=>[t.createVNode(b.Input.Password,{value:r.password,placeholder:"请输入锁屏密码",onChange:h=>r.password=h.target.value},null)]})]}),t.createVNode(b.Button,{block:!0,type:"primary",onClick:()=>d(),style:{marginBlockStart:"24px"}},{default:()=>[e.submitText]}),a.default?.()])}}),xn=t.defineComponent({name:"PageLockPopup",props:{...ze,...Le,password:String},setup(e){const[n,a]=A.useMergedState(!1,{value:t.computed(()=>c.isBoolean(e.open)?e.open:!1),onChange:e.onOpenChange}),[r,o]=A.useState(!1),i=pn(),l=(s="",u)=>{const d=s?`${e.className}-popup-${s}`:`${e.className}-popup`;return c.classNames(d,e.hashId,u||"")};return()=>n.value?t.createVNode("div",{class:l()},[r.value?t.createVNode("div",{class:l("form")},[t.createVNode(Pe,{avatarSize:70,submitText:"进入系统",avatar:e.avatar,hashId:e.hashId,className:e.className,validator:s=>e.cryptoFn?.(s)===e.password,onSubmit:()=>a(!1)},{default:()=>[t.createVNode(b.Button,{style:{marginBlockStart:"16px"},type:"text",block:!0,onClick:()=>o(!1)},{default:()=>[t.createTextVNode("返回")]})]}),t.createVNode("div",{class:l("form-time")},[t.createVNode("span",{style:{fontSize:"26px"}},[`${i.hh}:${i.mm}`,t.createTextVNode("  "),i.a]),t.createVNode("span",{style:{fontSize:"30px"}},[i.day,t.createTextVNode("  "),i.dddd])])]):t.createVNode(t.Fragment,null,[t.createVNode("div",{class:l("head")},[t.createVNode("span",null,[i.day,t.createTextVNode("  "),i.dddd]),t.createVNode("span",{class:l("lock-icon"),onClick:()=>o(!0)},[t.createVNode(N.LockOutlined,{style:{position:"relative",top:"1px",marginInlineEnd:"4px"}},null),t.createTextVNode("点击解锁")])]),t.createVNode("div",{class:l("time",l("enter","fadeIn"))},[t.createVNode("div",{class:l("time-card")},[i.hh,t.createVNode("span",{class:l("time-range")},[i.a])]),t.createVNode("div",{class:l("time-card")},[i.mm])])])]):null}}),Cn=new p.Keyframe("fadeIn",{from:{opacity:0},to:{opacity:1}}),Sn=e=>({[e.componentCls]:{"&-user-form":{[`${e.antCls}-form-item`]:{marginBlockEnd:0}},"&-user-info":{display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",gap:20,marginBlockEnd:e.marginLG},"&-user-name":{fontWeight:500,fontSize:18},"&-popup":{display:"flex",flexDirection:"column",background:e.colorBgContainer,position:"fixed",zIndex:2200,width:"100%",height:"100%","&-enter":{animationDuration:".3s",animationFillMode:"both",animationName:Cn},"&-head":{display:"flex",alignItems:"center",justifyContent:"space-between",marginBlock:e.marginLG,color:e.colorTextSecondary,paddingInline:20,fontSize:20,lineHeight:"28px",fontWeight:600},"&-lock-icon":{cursor:"pointer",transition:"all .3s","&:hover":{transform:"scale(1.1)",color:e.colorText}},"&-time":{display:"flex",paddingInline:"10%",gap:"5rem",flex:1,paddingBottom:"40px",[`${e.componentCls}-popup-time-card`]:{position:"relative",width:"40%",height:"100%",display:"flex",alignItems:"center",justifyContent:"center",flex:"1 1 auto",fontSize:260,borderRadius:e.borderRadiusLG,background:e.colorFillContent},"&-range":{position:"absolute",left:"2%",top:"2%",fontSize:16,fontWeight:600,color:e.colorText}},"&-form":{position:"relative",display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",gap:e.marginLG,height:"100%",[`${e.componentCls}-user-form`]:{width:300},[`${e.componentCls}-popup-form-time`]:{position:"absolute",bottom:e.marginLG,left:"50%",transform:"translateX(-50%)",display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center"}}}}}),wn=Object.freeze(Object.defineProperty({__proto__:null,default:t.defineComponent({name:"PageLock",props:yn,emits:["update:open","openChange"],setup(e){const n=c.getPrefixCls({suffixCls:"page-lock",isPor:!0}),{wrapSSR:a,hashId:r}=p.useProStyle("ProPageLock",[Sn],n),o=T.useLocalStorage(n,{open:!1,password:""}),[i,l,s]=A.useMergedState(!1,{value:t.computed(()=>e.open),onChange:m=>{e.onOpenChange?.(m),e["onUpdate:open"]?.(m)}}),[u,d]=A.useState(!1),h=t.ref();function y(m){return e.cryptoFn?e.cryptoFn(m):m}function x(m){o.value.open=u.value,o.value.password=y(m)}const O=t.computed(()=>e.shortsKey),R=t.computed(()=>o.value.open&&!!o.value.password),k=T.useMagicKeys();T.whenever(k["Alt+KeyL"],()=>{O.value?.disabled||s.value||l(!0)}),t.watch(u,m=>{x(m&&(h.value?.formState?.password||o.value.password)||"")}),t.onMounted(()=>{R.value?d(!0):x("")});const v=()=>{l(!1),d(!0)},f=()=>{l(!1),x(""),h.value?.resetFields()};return()=>a(t.createVNode(t.Fragment,null,[t.createVNode(xn,t.mergeProps(z.pick(e,["name","avatar"]),{open:u.value,hashId:r.value,className:n,password:o.value.password,cryptoFn:y,onOpenChange:d}),null),t.createVNode(de.GProModal,{width:400,type:"normal",title:"锁定屏幕",open:s.value,footer:!1,onCancel:f},{default:()=>[t.createVNode(Pe,t.mergeProps({ref:h},z.pick(e,["name","avatar"]),{submitText:"锁定",hashId:r.value,className:n,onSubmit:v}),null)]})]))}})},Symbol.toStringTag,{value:"Module"}));C.DefaultRenderLogo=me,C.GAppsLogoComponents=Ke,C.GProThemeEditor=mn,C.GRightContent=kt,Object.defineProperty(C,Symbol.toStringTag,{value:"Module"})}));
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@gx-design-vue/pro-layout-components",
3
3
  "type": "module",
4
- "version": "0.1.0-beta.3",
4
+ "version": "0.1.0-beta.4",
5
5
  "description": "Gx Design Pro Layout Components",
6
6
  "exports": {
7
7
  ".": {