@gx-design-vue/pro-layout 0.1.0-beta.145 → 0.1.0-beta.147
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/ProLayout.d.ts +2 -2
- package/dist/index.d.ts +5 -4
- package/dist/pro-layout.js +16 -9
- package/dist/pro-layout.umd.cjs +3 -3
- package/dist/types/SlotsTypings.d.ts +7 -2
- package/package.json +2 -2
package/dist/ProLayout.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import type { CustomRender } from '@gx-design-vue/pro-utils';
|
|
2
2
|
import type { CSSProperties, SlotsType } from 'vue';
|
|
3
|
-
import type { LogoContentProps } from './components/LogoContent';
|
|
4
3
|
import type { BreadcrumbProps, ProRoute } from './types/Breadcrumb';
|
|
5
4
|
import type { AppRouteModule } from './types/RouteTypings';
|
|
5
|
+
import type { LogoRenderProps } from './types/SlotsTypings';
|
|
6
6
|
import type { BasicLayoutProps, HeaderLayoutProps, SiderLayoutProps } from './types/typings';
|
|
7
7
|
declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
8
8
|
settings: {
|
|
@@ -572,7 +572,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
572
572
|
extraRightDropdownRender(): void;
|
|
573
573
|
siderActionsRender(): void;
|
|
574
574
|
collapsedIconRender(): void;
|
|
575
|
-
logoRender(
|
|
575
|
+
logoRender(props: LogoRenderProps): void;
|
|
576
576
|
footerRender(props?: BasicLayoutProps): void;
|
|
577
577
|
rightContentRender(props?: HeaderLayoutProps): void;
|
|
578
578
|
tabsRouteItemRender(route: AppRouteModule): void;
|
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { MenuMode } from './_utils';
|
|
2
2
|
import type { PageContainerProps } from './components/PageContainer';
|
|
3
|
-
import
|
|
3
|
+
import { LazyIcon } from './components/BaseMenu';
|
|
4
4
|
import PageContainer from './components/PageContainer';
|
|
5
5
|
import SiderMenuWrapper from './components/SiderMenu';
|
|
6
6
|
import { useProLayoutMenuContext } from './hooks/menu/context';
|
|
@@ -8,10 +8,11 @@ import useDarkTheme, { hasDarkValue, toggleLayoutTheme } from './hooks/theme';
|
|
|
8
8
|
import GProLayout from './ProLayout';
|
|
9
9
|
import { darkThemeProps } from './props/darkTheme';
|
|
10
10
|
export * from './Context';
|
|
11
|
-
export { default as
|
|
11
|
+
export { default as GBaseMenu } from './components/BaseMenu';
|
|
12
|
+
export { default as GProAppPage } from './components/AppPage';
|
|
12
13
|
export { baseMenuProps } from './components/BaseMenu/props';
|
|
13
14
|
export { default as GlobalFooter } from './components/GlobalFooter';
|
|
14
|
-
export { default as
|
|
15
|
+
export { default as GPageTransition } from './components/PageTranstion';
|
|
15
16
|
export { default as useProLayout } from './hooks/layout';
|
|
16
17
|
export { default as useLayoutMenu } from './hooks/menu';
|
|
17
18
|
export * from './utils';
|
|
@@ -19,7 +20,7 @@ export * from './config';
|
|
|
19
20
|
export * from './config/animate';
|
|
20
21
|
export * from './types/typings';
|
|
21
22
|
export * from './types/RouteTypings';
|
|
22
|
-
export {
|
|
23
|
+
export { darkThemeProps, GProLayout, hasDarkValue, LazyIcon, PageContainer, SiderMenuWrapper, toggleLayoutTheme, useDarkTheme, useProLayoutMenuContext };
|
|
23
24
|
export type { ProSettingsProps } from './props/defaultSettings';
|
|
24
25
|
export type { GlobalFooterProps } from './components/GlobalFooter';
|
|
25
26
|
export type { TabsRouteProps } from './components/TabsRoute';
|
package/dist/pro-layout.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Gx Design Pro
|
|
3
|
-
* Version: 0.1.0-beta.
|
|
3
|
+
* Version: 0.1.0-beta.146
|
|
4
4
|
* Author: gx12358
|
|
5
5
|
* Copyright (C) 2024 gx12358
|
|
6
6
|
* License: MIT License
|
|
7
7
|
* Description: Gx Design Pro Layout
|
|
8
|
-
* Date Created: 2025-
|
|
8
|
+
* Date Created: 2025-09-24
|
|
9
9
|
* Homepage:
|
|
10
10
|
* Contact: gx12358@gmail.com
|
|
11
11
|
*/
|
|
@@ -1322,7 +1322,10 @@ const Ma = (e) => {
|
|
|
1322
1322
|
key: "logo",
|
|
1323
1323
|
onClick: () => t.onLogoClick?.(),
|
|
1324
1324
|
class: e
|
|
1325
|
-
}, [a("a", null, [Qt(t.logo, t.logoStyle)])]), Fa = (e, t) => e === !1 ? null : e ? e(
|
|
1325
|
+
}, [a("a", null, [Qt(t.logo, t.logoStyle)])]), Fa = (e, t) => e === !1 ? null : e ? e({
|
|
1326
|
+
logo: t,
|
|
1327
|
+
title: null
|
|
1328
|
+
}) : t, Ba = (e) => {
|
|
1326
1329
|
const {
|
|
1327
1330
|
logo: t,
|
|
1328
1331
|
logoStyle: n,
|
|
@@ -1333,7 +1336,11 @@ const Ma = (e) => {
|
|
|
1333
1336
|
} = e, m = e.logoRender;
|
|
1334
1337
|
if (m === !1) return null;
|
|
1335
1338
|
const S = Qt(t, n), f = o && a("h1", null, [o]);
|
|
1336
|
-
return typeof m == "function" ? m(
|
|
1339
|
+
return typeof m == "function" ? m({
|
|
1340
|
+
logo: S,
|
|
1341
|
+
title: e.collapsed ? null : f,
|
|
1342
|
+
props: e
|
|
1343
|
+
}) : m || a(G, null, [(l && r || !l) && (S || null), e.collapsed && (s === "side" || s === "simple") ? null : f]);
|
|
1337
1344
|
}, it = /* @__PURE__ */ U({
|
|
1338
1345
|
name: "LogoContent",
|
|
1339
1346
|
props: {
|
|
@@ -2082,7 +2089,7 @@ const ja = (e) => {
|
|
|
2082
2089
|
}, X = () => {
|
|
2083
2090
|
t("collapse", !e.collapsed);
|
|
2084
2091
|
}, u = () => {
|
|
2085
|
-
const v = e.headerContentRender !== !1 ? a("div", {
|
|
2092
|
+
const v = e.headerContentRender !== !1 && typeof e.headerContentRender == "function" ? a("div", {
|
|
2086
2093
|
style: {
|
|
2087
2094
|
flex: 1
|
|
2088
2095
|
}
|
|
@@ -2254,7 +2261,7 @@ const {
|
|
|
2254
2261
|
}), w = h(() => F.value ? 0 : void 0), j = () => {
|
|
2255
2262
|
const b = a(Xa, K(e, {
|
|
2256
2263
|
onCollapse: e.onCollapse,
|
|
2257
|
-
headerContentRender: e.headerContentRender
|
|
2264
|
+
headerContentRender: e.headerContentRender
|
|
2258
2265
|
}), null);
|
|
2259
2266
|
return e.headerRender ? e.headerRender(e, b) : b;
|
|
2260
2267
|
};
|
|
@@ -4697,13 +4704,13 @@ function Pl(e) {
|
|
|
4697
4704
|
};
|
|
4698
4705
|
}
|
|
4699
4706
|
export {
|
|
4700
|
-
Ht as
|
|
4707
|
+
Ht as GBaseMenu,
|
|
4708
|
+
Fl as GPageTransition,
|
|
4709
|
+
$l as GProAppPage,
|
|
4701
4710
|
Ol as GProLayout,
|
|
4702
4711
|
xa as GlobalFooter,
|
|
4703
4712
|
Ee as LazyIcon,
|
|
4704
4713
|
Il as PageContainer,
|
|
4705
|
-
Fl as PageTransition,
|
|
4706
|
-
$l as ProAppPage,
|
|
4707
4714
|
Ha as SiderMenuWrapper,
|
|
4708
4715
|
go as animateSetting,
|
|
4709
4716
|
na as baseMenuProps,
|
package/dist/pro-layout.umd.cjs
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Gx Design Pro
|
|
3
|
-
* Version: 0.1.0-beta.
|
|
3
|
+
* Version: 0.1.0-beta.146
|
|
4
4
|
* Author: gx12358
|
|
5
5
|
* Copyright (C) 2024 gx12358
|
|
6
6
|
* License: MIT License
|
|
7
7
|
* Description: Gx Design Pro Layout
|
|
8
|
-
* Date Created: 2025-
|
|
8
|
+
* Date Created: 2025-09-24
|
|
9
9
|
* Homepage:
|
|
10
10
|
* Contact: gx12358@gmail.com
|
|
11
11
|
*/
|
|
@@ -28,4 +28,4 @@ html[data-theme="dark"]::view-transition-old(root) {
|
|
|
28
28
|
|
|
29
29
|
html[data-theme="dark"]::view-transition-new(root) {
|
|
30
30
|
z-index: 1;
|
|
31
|
-
}`;function tt(e,n){const a=new Set;return e.filter(o=>a.has(o[n])?!1:(a.add(o[n]),!0))}const Ve={collapsedType:{type:[Object,Boolean,String],default:"fixed"},collapsed:Boolean,collapsedWidth:{type:Number,default:64},collapsedButtonRender:{type:[Function,Object,Boolean],default:()=>{}},collapsedIconRender:{type:[Function,Object,Boolean],default:()=>{}},onCollapse:{type:Function}},be={logo:{type:[Object,String,Function],default:()=>{}},logoStyle:{type:Object,default:()=>{}},logoRender:{type:[Object,Function,Array,Boolean],default:()=>{}},onLogoClick:Function},At={...A.pick(ge,["title","layout"]),...be},ke={...be,...Ve,...he,suppressSiderWhenMenuEmpty:{type:Boolean,default:!0},breakpoint:{type:[Object,Boolean],default:()=>!1},appsLogoComponents:{type:[Object,Function,Boolean],default:()=>{}},siderActionsRender:{type:[Function,Object,Array],default:()=>{}},menuLinksRender:{type:[Function,Object,Array],default:()=>{}},menuFooterRender:{type:[Function,Object,Boolean],default:()=>{}},menuContentRender:{type:[Function,Object,Boolean],default:()=>{}},menuHeaderRender:{type:[Function,Object,Boolean],default:()=>{}}},jt=e=>({[e.componentCls]:{marginBlock:0,marginBlockStart:48,marginBlockEnd:24,marginInline:0,paddingBlock:0,paddingInline:16,textAlign:"center","&-links":{marginBottom:8,a:{color:e.colorTextSecondary,textDecoration:e.linkDecoration,"&:hover":{color:e.colorPrimary}},"a:not(:last-child)":{marginInlineEnd:40}},"&-copyright":{fontSize:"14px",color:e.colorTextSecondary,a:{color:e.colorTextSecondary,textDecoration:e.linkDecoration}}}}),nt=[{key:"Ant Design Pro",title:"Ant Design Pro",href:"https://pro.ant.design",blankTarget:!0},{key:"github",title:t.createVNode(K.GithubOutlined,null,null),href:"https://github.com/gx12358/vue3-antd-admin",blankTarget:!0},{key:"Ant Design Vue",title:"Ant Design Vue",href:"https://next.antdv.com/components/overview-cn/",blankTarget:!0}],at=t.defineComponent({name:"GlobalFooter",props:{links:{type:[Array,Boolean],default:nt},copyright:{type:[Object,Function,Boolean,String],default:"********"}},setup(e){const o=(G()?.getPrefixCls||d.getPrefixCls)({suffixCls:"global-footer",isPor:!0}),{wrapSSR:c,hashId:r}=i.useProStyle("ProLayoutFooter",[jt],o);return()=>c(t.createVNode(v.LayoutFooter,{style:{padding:0}},{default:()=>[t.createVNode("div",{class:[o,r.value]},[e.links&&t.createVNode("div",{class:`${o}-links ${r.value}`},[e.links.map(s=>t.createVNode("a",{key:s.key,title:s.key,target:s.blankTarget?"_blank":"_self",href:s.href},[s.title]))]),e.copyright&&t.createVNode("div",{class:`${o}-copyright ${r.value}`},[t.createTextVNode("Copyright "),$t().format("YYYY"),t.createTextVNode(" "),t.createVNode("a",{href:"https://beian.miit.gov.cn/"},[e.copyright])])])]}))}}),Ce={...be,...he,...Ve,autoHideHeader:Boolean,headerMainWidth:{type:[Number,String],default:void 0},headerRender:{type:[Object,Function,Boolean],default:()=>{}},headerContentRender:{type:[Object,Function,Boolean],default:()=>{}},appsLogoComponents:{type:[Object,Function,Boolean],default:()=>{}},extraRightDropdownRender:{type:[Object,Function,Boolean],default:()=>{}},rightContentRender:{type:[Object,Function,Boolean],default:()=>{}}},Xt={visible:{type:Boolean,default:void 0},type:{type:String,default:"button"},destroyOnHide:{type:Boolean,default:!1},storage:{type:Boolean,default:!0},itemRender:{type:[Function,Boolean,Object,Array],default:()=>{}}},ot={onReloadPage:{type:Function},onTabsChange:{type:Function,default:void 0},"onUpdate:tabs":{type:Function}},it={...Xt,loading:{type:Boolean,default:void 0},fixedTabsBar:ge.fixedTabsBar,...ot},lt={dark:{type:[Boolean,String],default:void 0},onDarkChange:Function,"onUpdate:dark":Function},xe={...{id:String,class:String,style:{type:Object,default:()=>({})}},...lt,...ke,...Ce,...ot,...he,...Xe,settings:{type:Object,default:()=>z},menu:{type:Object,default:()=>Tt},route:{type:Object,default:()=>[]},tabsRoute:{type:Object,default:()=>({})},pageContainer:{type:Object},pure:Boolean,token:Object,cssVar:{type:Array,default:()=>[]},waterMark:{type:[Boolean,Object],default:()=>{}},layoutStyle:{type:Object,default:()=>({sider:{},header:{},content:{}})},disableMobile:{type:Boolean},breadcrumb:[Object,Function],isChildrenLayout:Boolean,loading:Boolean,footerLinks:{type:[Array,Boolean],default:nt},pageLockRender:{type:[Object,Function,Boolean,String],default:void 0},copyrightRender:{type:[Object,Function,Boolean,String],default:()=>{}},footerRender:{type:[Object,Function,Boolean,String],default:()=>{}},onContentFullScreenChange:le.onContentFullScreenChange};function Yt(){return t.createVNode(K.ArrowLeftOutlined,null,null)}const _t=e=>{const n=e.layout?.sider;return{[e.componentCls]:{position:"absolute",insetBlockStart:18,zIndex:101,width:24,height:24,fontSize:["14px","16px"],textAlign:"center",borderRadius:"40px",insetInlineEnd:-13,transition:"all 0.3s",display:"flex",alignItems:"center",justifyContent:"center",cursor:"pointer",color:n?.colorTextCollapsedButton,backgroundColor:i.getProSolidColor(e,n?.colorBgCollapsedButton||""),boxShadow:"0 2px 8px -2px rgba(0,0,0,0.05), 0 1px 4px -1px rgba(25,15,15,0.07), 0 0 1px 0 rgba(0,0,0,0.08)","&:hover":{color:n?.colorTextCollapsedButtonHover,boxShadow:"0 4px 16px -4px rgba(0,0,0,0.05), 0 2px 8px -2px rgba(25,15,15,0.07), 0 1px 2px 0 rgba(0,0,0,0.08)"},".anticon":{fontSize:"14px"},"& > .anticon":{transition:"transform 0.3s"},"&-collapsed":{"& > .anticon":{transform:"rotate(-180deg)"}}}}},rt=(e,n,a)=>e!==!1?typeof e=="function"?e(n,a):e||a:a,Ke=e=>e.iconRender?typeof e?.iconRender=="function"?e?.iconRender():e.iconRender:e.collapsed?t.createVNode(K.MenuUnfoldOutlined,null,null):t.createVNode(K.MenuFoldOutlined,null,null),Gt=t.defineComponent({name:"CollapsedIcon",inheritAttrs:!1,props:{isMobile:Boolean,collapsed:xe.collapsed,onClick:Function,iconRender:Ve.collapsedIconRender},setup(e){const{getPrefixCls:n}=G(),a=n({suffixCls:"collapsed-button",isPor:!0}),{wrapSSR:o,hashId:c}=i.useProStyle("SiderMenuCollapsedIcon",[_t],a);return()=>o(t.createVNode("div",{class:d.classNames(a,c.value,{[`${a}-collapsed`]:e.collapsed,[`${a}-is-mobile`]:e.isMobile}),onClick:r=>e.onClick?.(r)},[Ke({collapsed:e.collapsed,iconRender:e.iconRender?e.iconRender:()=>t.createVNode(Yt,null,null)})]))}}),st=(e,n)=>e===!1?null:typeof e=="string"?t.createVNode("img",{src:e,alt:"logo",style:n},null):typeof e=="function"?e():e,qt=(e,n)=>t.createVNode("span",{key:"logo",onClick:()=>n.onLogoClick?.(),class:e},[t.createVNode("a",null,[st(n.logo,n.logoStyle)])]),Et=(e,n)=>e===!1?null:e?e(n,null):n,Zt=e=>{const{logo:n,logoStyle:a,title:o,layout:c,collapsed:r,collapsedWidth:s}=e,f=e.logoRender;if(f===!1)return null;const N=st(n,a),h=o&&t.createVNode("h1",null,[o]);return typeof f=="function"?f(N,e.collapsed?null:h,e):f||t.createVNode(t.Fragment,null,[(r&&s||!r)&&(N||null),e.collapsed&&(c==="side"||c==="simple")?null:h])},De=t.defineComponent({name:"LogoContent",props:{...At,hashId:String,baseClassName:String},setup(e,{slots:n}){const{collapsed:a,settings:o,collapsedWidth:c}=G();return()=>t.createVNode("div",{id:"logo",class:{[`${e.hashId}`]:!0,[`${e.baseClassName}-logo`]:!0,[`${e.baseClassName}-logo-collapsed`]:d.convertValueBoolean(a.value)},onClick:()=>e.onLogoClick?.()},[t.createVNode("a",{key:"title"},[Zt({...e,title:e.title||o.value.title,collapsed:a.value,collapsedWidth:c.value})||null]),n.default?.()])}});De.inheritAttrs=!1;const Pe=e=>({paddingInline:6,paddingBlock:6,lineHeight:"16px",fontSize:16,cursor:"pointer",borderRadius:e.borderRadius,transition:`color ${e.motionDurationMid}, background-color ${e.motionDurationMid}`,"&:hover":{background:i.getProSolidColor(e,e.colorBgTextHover)}}),Qt=e=>({[e.componentCls]:{display:"flex",flexDirection:"column",width:"100%",minHeight:"100vh"}}),Jt=e=>{const{layout:n}=Q(e),a=e.layout?.pageContainer;return{[e.componentCls]:{backgroundColor:e.colorBgLayout,[`${e.antCls}-card`]:{backgroundColor:i.getProSolidColor(e,e.colorBgContainer)},a:{color:e.colorPrimary,"&:hover":{color:e.colorPrimaryHover}},[`${e.antCls}-menu-submenu-title`]:{[`${e.proComponentsCls}-menu-item-badge`]:{right:40}},[`${e.componentCls}-container`]:{position:"relative",width:"100%",display:"flex",flexGrow:1,flexDirection:"column",minWidth:0,minHeight:0,backgroundColor:"transparent",[`&${e.componentCls}-container-has-silder`]:{marginInlineStart:n==="wide"?a?.paddingInlinePageContainerContent:0}}}}},ct=new i.Keyframe("pro-layout-title-hide",{"0%":{display:"none",opacity:0},"80%":{overflow:"hidden"},"100%":{display:"unset",opacity:1}}),dt=()=>({display:"flex",alignItems:"center",justifyContent:"space-between",paddingBlock:4,paddingInline:8,marginInline:0}),Ut=e=>{const n=fe(e,"sider"),{layout:a}=Q(e),o=e.layout?.pageContainer;return{[`${e.proComponentsCls}-basic-layout`]:{[`&${e.proComponentsCls}-basic-layout-wide`]:{[e.componentCls]:{position:"sticky",zIndex:100,borderRadius:o?.borderRadius}},[e.componentCls]:{position:"relative",borderRight:0,zIndex:9,"&-menu":{position:"relative",zIndex:10,minHeight:"100%","&-icon":{verticalAlign:"unset"},"&-container":{borderRadius:a==="wide"?o?.borderRadius:"unset","&::-webkit-scrollbar":{width:6,height:6},"&::-webkit-scrollbar-thumb":{backgroundColor:"rgba(0, 0, 0, 0.2)",borderRadius:"1em"},"&::-webkit-scrollbar-track":{background:"hsla(0, 0%, 100%, 0.15)",borderRadius:"1em"}}},[`& ${e.antCls}-layout-sider-children`]:{position:"relative",display:"flex",flexDirection:"column",height:"100%",paddingBlock:0},"&-extra":{padding:a==="wide"?e.padding:void 0,paddingBlockEnd:a==="wide"?e.paddingSM:void 0,borderBlockEnd:a==="wide"?`1px solid ${e.colorSplit}`:void 0,marginBlockEnd:a==="wide"?e.margin:void 0},"&-content":{position:"relative",display:"flex",flexDirection:"column",height:"100%"},"&-links":{width:"100%",ul:{height:"auto"},[`+${e.proComponentsCls}-sider-actions`]:{borderBlockStart:0}},"&-link-menu":{border:"none",boxShadow:"none",background:"transparent"},"&-actions":{...dt(),color:n?We.getAlphaColor("#fff",.85):e.colorTextBase,"&-item":Pe(e)},"&-collapsed-button":{flexDirection:"row-reverse",...dt(),"&.collapsed":{flexDirection:"none",justifyContent:"center"},"&>:first-child":Pe(e)},"&-footer":{paddingBlockEnd:16,fontSize:e.fontSize,animationName:ct,animationDuration:".4s",animationTimingFunction:"ease"}},[`${e.componentCls}${e.componentCls}-fixed`]:{position:"fixed",insetBlockStart:0,insetInlineStart:0,zIndex:"100",height:"100%","&-mix":{height:`calc(100% - ${e.layout?.header?.heightLayoutHeader||z.headerHeight}px)`,insetBlockStart:`${e.layout?.header?.heightLayoutHeader||z.headerHeight}px`}}}}},ut=e=>{const{theme:n,layout:a}=Q(e),o=e.layout?.sider;return{[`${e.componentCls}-logo`]:{position:"relative",display:"flex",alignItems:"center",justifyContent:"space-between",cursor:"pointer",paddingInline:a==="wide"?0:12+(a==="side"?8:0),paddingBlock:a==="wide"?0:16,color:e.colorText,"> a":{display:"flex",alignItems:"center",justifyContent:"center",minHeight:22,fontSize:22,"> img":{display:"inline-block",height:22,verticalAlign:"middle"},"> h1":{display:"inline-block",height:22,marginBlock:0,marginInlineEnd:0,marginInlineStart:8,color:n==="dark"?e.colorWhite:o?.colorTextMenuTitle,animationName:ct,animationDuration:".4s",animationTimingFunction:"ease",fontWeight:600,fontSize:16,lineHeight:"22px",verticalAlign:"middle"}},"&-collapsed":{flexDirection:"column-reverse",margin:0,padding:12,[`${e.proComponentsCls}-layout-app-icon`]:{marginBlockEnd:8,fontSize:16,transition:"font-size 0.2s ease-in-out,color 0.2s ease-in-out"}},[`&${e.antCls}-layout-sider-collapsed`]:{[`${e.proComponentsCls}-sider-logo`]:{padding:"16px 8px"}}}}},en=e=>{const n=`${e.antCls}-menu`,a=`${e.proComponentsCls}-menu-item`,{layout:o}=Q(e),c=e?.layout?.sider;return{[`${e.proComponentsCls}-basic-layout`]:{[`${e.proComponentsCls}-sider`]:{[`${n}${n}-root`]:{...i.calcUnit(c?.paddingMenu,"padding"),[`${e.proComponentsCls}-menu-item-badge`]:{position:"absolute",right:e.marginXS,top:"50%",transform:"translateY(-50%)",[`${e.antCls}-scroll-number`]:{transform:"none"}},[`${n}-item,${n}-submenu-title`]:{...o==="wide"&&{width:"100%"},height:c?.menuItemHeight,lineHeight:i.unit(c?.menuItemHeight),[`${n}-title-content`]:{position:"relative"}},[`&:not(${n}-inline-collapsed)`]:{[`${n}-item`]:{...i.calcUnit(c?.paddingMenuItem,"padding"),...i.calcUnit(c?.marginMenuItem,"margin")},[`${n}-submenu-title`]:{...i.calcUnit(c?.paddingSubMenu,"padding"),...i.calcUnit(c?.marginSubMenu,"margin")}},[`${n}-submenu`]:{[`${n}${n}-sub`]:{[`${n}-item`]:{...i.calcUnit(c?.paddingSubMenuItem,"padding"),...i.calcUnit(c?.marginSubMenuItem,"margin")}}},[`${n}-item:last-child`]:o==="wide"?{marginBottom:e.marginXXS}:{},[`${a}-title:not(${a}-title-no-icon)`]:{fontWeight:o==="wide"?500:"normal"},[`${n}-item-selected ${a}-title:not(${a}-title-no-icon)`]:{fontWeight:"normal"},[`${n}-item a`]:{transition:"none"}}}}}},tn=e=>({[`${e.proComponentsCls}-basic-layout`]:{[`${e.antCls}-menu`]:{[`${e.proComponentsCls}-menu-item-icon${e.antCls}-menu-item-icon`]:{verticalAlign:"unset",lineHeight:1,fontSize:e.fontSizeLG}}}});function mt(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!t.isVNode(e)}const{Sider:nn}=v.Layout,ft=t.defineComponent({props:ke,inheritAttrs:!1,setup(e){const{getPrefixCls:n,isMobile:a,layoutProps:o,selectedKeys:c,settings:r,openKeys:s,menuProps:f,layoutStyle:N,contentFullScreen:h}=G(),y=se.useProAppContext(),{token:p}=i.useProConfigContext(),{breakpoint:B,collapsed:b,collapsedWidth:l}=t.toRefs(e),{layout:S,fixedHeader:$,splitMenus:w,fixSiderbar:V}=t.toRefs(r.value),M=n({suffixCls:"sider",isPor:!0}),X=t.computed(()=>S.value==="mix"&&!a.value&&w.value),C=t.computed(()=>S.value==="side"||S.value==="simple"),D=t.computed(()=>a.value||o.value.isWide?!1:V.value),Y=t.computed(()=>(S.value==="mix"||o.value.isWide)&&"light"||f.value.baseTheme),{wrapSSR:m,hashId:x}=i.useProStyle("ProLayoutSiderMenu",[tn,en,Ut,ut,W=>{const _=W?.layout?.sider,H=i.getDefaultLayoutToken("sider",W,W.layout?.key),{dark:ee}=Q(W),re=fe(W,"sider");return{[`${W.proComponentsCls}-basic-layout`]:{[W.componentCls]:{background:_?.colorBgMenu||H?.colorBgMenu,boxShadow:re||ee?"#0d0d0da6 0 2px 8px":"2px 0 8px 0 rgba(29,35,41,.05)",[`${W.componentCls}-footer`]:{color:_?.colorTextMenu}}}}}],M),P=t.computed(()=>S.value==="top"?[]:f.value.menuData),U=t.computed(()=>e.collapsed?i.unit(l.value):o.value.siderWidth),F=t.computed(()=>d.classNames([x.value,M,a.value?"shadow":null,`${M}-${f.value.theme}`,D.value?`${M}-fixed`:null])),q=ie.useMemo(()=>S.value==="simple"||!e.appsLogoComponents?null:typeof e.appsLogoComponents=="function"?e.appsLogoComponents?.():e.appsLogoComponents,[()=>e.appsLogoComponents]);function E(){e.onCollapse&&e.onCollapse?.(!b.value)}const Z=ie.useMemo(()=>{if(e.collapsedButtonRender===!1)return null;const W=e.collapsedIconRender,_=e.collapsedButtonRender,H=t.createVNode(Gt,{iconRender:W,isMobile:a.value,collapsed:b.value,onClick:()=>E()},null);return _?_?.(!!b.value,H):H},[()=>e.collapsedButtonRender,()=>a.value,()=>e.collapsed]),ae=W=>{if(e.onSelect){const _=W.selectedKeys;if(t.unref(X)){e.onSelect([c?.value?.[0],..._]);return}e.onSelect(_)}};return()=>{let W;const _=C.value&&S.value!=="simple"&&t.createVNode(De,t.mergeProps({title:r.value.title,hashId:x.value,layout:S.value,baseClassName:M},A.pick(e,Object.keys(be))),{default:()=>[q.value]}),H=e.menuHeaderRender&&e.menuHeaderRender?.(e),ee=e.menuLinksRender,re=e.siderActionsRender,de=t.createVNode(Me,{class:`${M}-menu ${x.value}`,theme:Y.value,mode:"inline",menuData:X.value?f.value.flatMenuData:P.value,iconfontUrl:r.value.iconfontUrl,openKeys:s.value,selectedKeys:c.value,menuItemRender:e.menuItemRender,subMenuItemRender:e.subMenuItemRender,style:{width:"100%"},onOpenKeys:te=>e.onOpenKeys&&e.onOpenKeys?.(te),onSelect:ae},null);return X.value&&t.unref(f.value.flatMenuData).length===0&&e.suppressSiderWhenMenuEmpty||P.value.length===0&&e.suppressSiderWhenMenuEmpty?null:m(t.createVNode(v.ConfigProvider,{theme:{components:{Menu:Ie({token:p?.value||{},staticToken:d.deepMerge({radiusItem:4,colorActiveBarWidth:0,colorActiveBarHeight:0,colorActiveBarBorderSize:0},p?.value?.Menu||{}),dark:f.value.baseTheme==="dark",type:"sider"})}}},{default:()=>[D.value&&t.createVNode("div",{style:{width:`${i.unit(U.value)}`,overflow:"hidden",flex:`0 0 ${i.unit(U.value)}`,maxWidth:`${i.unit(U.value)}`,minWidth:`${i.unit(U.value)}`,transition:"all 0.2s ease 0s"}},null),t.createVNode(nn,{collapsible:!0,trigger:null,class:F.value,style:{zIndex:D.value?101:void 0,paddingTop:D.value&&$.value&&S.value==="mix"||D.value&&S.value==="simple"?o.value.headerHeight:0,top:S.value==="wide"?pe(o.value.headerHeight,20):void 0,height:S.value==="wide"?`calc(100vh - ${pe(o.value.headerHeight,40)})`:void 0,...N.value?.sider||{}},theme:Y.value,breakpoint:B.value||void 0,collapsed:b.value,width:Le(o.value.siderWidth),collapsedWidth:l.value},{default:()=>[f.value.loading&&t.createVNode("div",{class:[`${M}-loading`,x.value]},[t.createVNode(v.Spin,{spinning:f.value.loading,indicator:y?.indicator?.value},null)]),_||null,t.createVNode("div",{class:`${M}-content`,style:{flex:"1 1 0%",overflow:"hidden"}},[d.convertValueBoolean(e.menuHeaderRender)&&t.createVNode("div",{class:d.classNames([x.value,`${M}-extra`,!_&&`${M}-extra-no-logo`])},[H]),t.createVNode("div",{style:{flex:"1 1 0%",overflow:"hidden auto"},class:d.classNames(`${M}-menu-container`)},[e.menuContentRender&&e.menuContentRender?.(e,de)||de])]),S.value!=="wide"&&t.createVNode(t.Fragment,null,[ee&&d.isArray(ee)&&ee.length>0&&t.createVNode("div",{class:`${M}-links ${x.value}`},[t.createVNode(v.Menu,{theme:Y.value,inlineIndent:16,class:`${M}-link-menu ${x.value}`,selectedKeys:[],openKeys:[],mode:"inline"},mt(W=(ee||[]).map((te,Re)=>t.createVNode(v.Menu.Item,{class:`${M}-link ${x.value}`,key:Re},mt(te)?te:{default:()=>[te]})))?W:{default:()=>[W]})]),a.value?null:re&&t.createVNode("div",{class:d.classNames(`${M}-actions`,x.value)},[re]),e.collapsedType==="sider"&&!a.value&&t.createVNode(t.Fragment,null,[t.createVNode("div",{class:d.classNames(`${M}-collapsed-button`,b.value&&"collapsed",x.value)},[t.createVNode("span",{onClick:()=>E()},[rt(e.collapsedButtonRender,!!b.value,Ke({collapsed:b.value,iconRender:e.collapsedIconRender}))])])])]),e.menuFooterRender&&t.createVNode("div",{class:`${M}-footer ${x.value}`},[e.menuFooterRender?.(e)]),h.value||S.value==="wide"?null:e.collapsedType==="fixed"&&Z.value]})]}))}}}),gt=t.defineComponent({name:"SiderMenuWrapper",inheritAttrs:!1,props:{...ke,isMobile:Boolean,siderWidth:ge.siderWidth},setup(e){return()=>{const n=A.omit(e,["siderWidth","isMobile"]);return t.createVNode(t.Fragment,null,[e.isMobile?t.createVNode(v.Drawer,{maskClosable:!0,open:!e.collapsed,closable:!1,placement:"left",style:{padding:0,height:"100vh"},getContainer:!1,onClose:()=>e.onCollapse&&e.onCollapse(!0),width:Le(e.siderWidth),bodyStyle:{height:"100vh",padding:0,display:"flex",flexDirection:"row"}},{default:()=>[t.createVNode(ft,t.mergeProps(n,{collapsed:e.isMobile?!1:e.collapsed}),null)]}):t.createVNode(ft,n,null)])}}}),{provideContext:an,useInjectContext:Se}=i.useContext("pro-layout-menu");function ht(e,{change:n}){const{system:a}=me.useColorMode(),[o,c,r]=ie.useMergedState("system",{value:t.computed(()=>yt(e.value)?e.value:"system"),onChange:f=>{n?.(f)}});return{isDark:t.computed(()=>r.value==="system"?a.value==="dark":r.value),dark:r,toggleMode:c}}function yt(e){return d.isBoolean(e)||e==="system"}function on({event:e,isDark:n,value:a,toggle:o}){if(!(document.startViewTransition&&!window.matchMedia("(prefers-reduced-motion: reduce)").matches)||!e||e&&!e.clientX){o?.(d.isBoolean(a)||a==="system"?a:!n?.value);return}const r=e.clientX,s=e.clientY,f=Math.hypot(Math.max(r,innerWidth-r),Math.max(s,innerHeight-s));document.startViewTransition(async()=>{o?.(d.isBoolean(a)||a==="system"?a:!n?.value),await t.nextTick()}).ready.then(()=>{const h=[`circle(0px at ${r}px ${s}px)`,`circle(${f}px at ${r}px ${s}px)`];document.documentElement.animate({clipPath:n?.value?[...h].reverse():h},{duration:450,easing:"ease-in",pseudoElement:n?.value?"::view-transition-old(root)":"::view-transition-new(root)"})})}const ln=e=>{const{layout:n}=Q(e);return{[`${e.proComponentsCls}-header`]:{"&-light":{[`${e.componentCls}-logo`]:{h1:{color:e.colorBgSpotlight}}}},[e.componentCls]:{position:"relative",background:"transparent",display:"flex",marginBlock:0,paddingInline:16,width:"100%",height:"100%",boxShadow:"0 1px 4px rgba(0,21,41,.12)","&-mix":{display:"flex",alignItems:"center"},"&-wide":{padding:0,[`${e.componentCls}-main`]:{margin:"0 auto"}},"&-main":{display:"flex",width:"100%",height:"100%","&-left":{display:"flex",alignItems:"center",[`${e.proComponentsCls}-layout-app-icon`]:{marginInlineEnd:16},[`${e.componentCls}-collapsed-button`]:{...Pe(e)}}},"&-menu":{[`${e.proComponentsCls}-menu-item-badge`]:{position:"relative",top:"-0.1em",marginInlineStart:12,[`${e.antCls}-scroll-number`]:{transform:"none"}}},"> a":{height:"100%"},"> *":{height:"100%"},[`${e.proComponentsCls}-layout-apps-icon`]:{marginInlineEnd:16},"&-collapsed-button":{display:"flex",alignItems:"center",fontSize:"20px",marginInlineEnd:"16px"},"&-logo":{marginInlineEnd:n==="wide"?void 0:"16px",a:{display:"flex",alignItems:"center",height:"100%",minHeight:"22px",fontSize:"20px"},img:{height:"28px"},h1:{marginBlock:0,marginInline:0,marginInlineStart:12,fontWeight:"500",color:e.colorWhite,fontSize:16}},"&-logo-mobile":{minWidth:"24px",marginInlineEnd:0}}}},rn=["mix","top","wide"],sn=t.defineComponent({props:Ce,setup(e){return()=>e.rightContentRender&&typeof e.rightContentRender=="function"?e.rightContentRender(e):t.createVNode(t.Fragment,null,null)}}),cn=t.defineComponent({props:Ce,inheritAttrs:!1,setup(e,{emit:n}){const a=ne.useRouter(),o=Se(),{token:c}=i.useProConfigContext(),{getPrefixCls:r,settings:s,isMobile:f,openKeys:N,selectedKeys:h,menuProps:y,breadcrumb:p,breadcrumbRender:B}=G(),{layout:b,splitMenus:l}=t.toRefs(s.value),S=r({suffixCls:"global-header",isPor:!0}),{wrapSSR:$,hashId:w}=i.useProStyle("ProGlobalHeader",[ln,ut],S),V=t.computed(()=>b.value==="side"||b.value==="simple"),M=t.computed(()=>V.value&&"light"||y.value.baseTheme),X=t.computed(()=>({[`${w.value}`]:!0,[`${S}`]:!0,[`${S}-${b.value}`]:!0})),C=t.computed(()=>l.value&&b.value==="mix"?Qe(A.cloneDeep(y.value.menuData)):b.value==="top"?y.value.menuData:[]),D=(x,P,U)=>{const F=a.currentRoute.value,q=b.value==="mix",E=o?.matchedMenu?.value||Fe({menuData:C.value,levelMenuData:y.value.levelMenuData},{path:Oe(F),name:F.name});if(e.onSelect&&x==="select"){const Z=C.value.find(ae=>ae.name===U)?.redirect;e.onSelect(q&&Z?E.map(ae=>ae.name):P)}e.onOpenKeys&&x==="openKeys"&&e.onOpenKeys(q?E.filter(Z=>Z.name!==F.name).map(Z=>Z.name):P)},Y=()=>{n("collapse",!e.collapsed)},m=()=>{const x=e.headerContentRender!==!1?t.createVNode("div",{style:{flex:1}},[e.headerContentRender?.(e)]):t.createVNode("div",{style:{flex:1},class:[`${S}-menu`,w.value]},[C.value?.length>0&&t.createVNode(v.ConfigProvider,{theme:{components:{Layout:{headerBg:"transparent",bodyBg:"transparent"},Menu:Ie({token:c?.value||{},staticToken:d.deepMerge({radiusItem:4,colorActiveBarWidth:0,colorActiveBarHeight:2,colorActiveBarBorderSize:0,horizontalItemBorderRadius:4},c?.value?.Menu||{}),dark:y.value.baseTheme==="dark",type:"header"})}}},{default:()=>[t.createVNode(Me,{theme:M.value,mode:"horizontal",menuData:C.value,openKeys:N.value,selectedKeys:h.value,iconfontUrl:s.value?.iconfontUrl,menuItemRender:e.menuItemRender,subMenuItemRender:e.subMenuItemRender,onSelect:P=>D("select",P.selectedKeys,P.key),onOpenKeys:P=>D("openKeys",P)},null)]})]);return t.createVNode(t.Fragment,null,[x,s.value.layout!=="simple"&&t.createVNode(sn,t.mergeProps(e,{extraRightDropdownRender:e.extraRightDropdownRender,rightContentRender:e.rightContentRender}),null)])};return()=>{const x=rt(e.collapsedButtonRender,!!e.collapsed,Ke({collapsed:!!e.collapsed,iconRender:e.collapsedIconRender}));return $(t.createVNode("div",{class:X.value},[f.value?t.createVNode(t.Fragment,null,[Et(e.logoRender,qt(d.classNames([`${S}-logo`,f.value&&"mobile",w.value]),e)),e.collapsedButtonRender!==!1&&t.createVNode("span",{class:`${S}-collapsed-button ${w.value}`,onClick:Y},[x]),m()]):t.createVNode("div",{class:`${S}-main ${w.value}`,style:{width:e.headerMainWidth||e.headerMainWidth===0?i.unit(e.headerMainWidth):s.value.layout==="wide"?J(s.value.wideWidth):void 0}},[t.createVNode("div",{class:`${S}-main-left ${w.value}`},[e.collapsedType==="header"&&V.value&&(b.value!=="mix"?y.value.menuData:y.value.flatMenuData).length>0&&t.createVNode("div",{class:`${S}-collapsed-button ${w.value}`,onClick:Y},[x]),rn.includes(s.value.layout)&&t.createVNode(t.Fragment,null,[s.value.layout!=="wide"&&e.appsLogoComponents&&t.createVNode(t.Fragment,null,[typeof e.appsLogoComponents=="function"?e.appsLogoComponents?.():e.appsLogoComponents]),t.createVNode(De,t.mergeProps({hashId:w.value,baseClassName:S},e,{title:s.value.title}),null)]),p.value?.position==="header"&&s.value.layout==="side"&&t.createVNode(_e,{breadcrumb:B.value},null)]),m()])]))}}});function dn(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!t.isVNode(e)}const{Header:pt}=v.Layout,un=t.defineComponent({name:"GlobalHeader",inheritAttrs:!1,props:Ce,setup(e){const{dark:n}=i.useProConfigContext(),{getPrefixCls:a,menuProps:o,contentFullScreen:c,settings:r,isMobile:s,layoutProps:f}=G(),{layout:N,fixedHeader:h}=t.toRefs(r.value),y=a({suffixCls:"header",isPor:!0}),p=a({suffixCls:"fixed-header",isPor:!0}),B=t.computed(()=>h.value),b=t.computed(()=>N.value==="side"||N.value==="simple"),{wrapSSR:l,hashId:S}=i.useStyle("ProLayoutHeader",C=>{const D=C.layout?.header,Y=i.getDefaultLayoutToken("header",C,C.layout?.key),m=fe(C,"header");return{[`${C.proComponentsCls}-basic-layout`]:{[`${C.antCls}-layout-header${C.componentCls}${C.componentCls}-${t.unref(o.value.key)}`]:{color:m?C.colorWhite:C.colorText,backgroundColor:D?.colorBgMenu||Y?.colorBgMenu,boxShadow:n.value?"#0d0d0da6 0 2px 8px":"",[`${C.proComponentsCls}-global-header-collapsed-button`]:{color:m?C.colorWhite:void 0}},[`${C.antCls}-layout-header${C.componentCls}`]:{zIndex:19,paddingBlock:0,paddingInline:0,WebkitBackdropFilter:"blur(8px)",backdropFilter:"blur(8px)",transition:"background-color 0.2s cubic-bezier(.645,.045,.355,1)",[`&${C.proComponentsCls}`]:{"&-fixed-header":{position:"fixed",width:"100%",zIndex:9,top:0,transition:"width .2s","&-action":{transition:"width .3s cubic-bezier(.645,.045,.355,1)"}},"&-header-actions":{display:"flex",alignItems:"center",fontSize:"16",cursor:"pointer","& &-item":{paddingBlock:0,paddingInline:8,"&:hover":{color:C.colorText}}},"&-header-actions-header-action":{transition:"width 0.3s cubic-bezier(0.645, 0.045, 0.355, 1)"}}}}}},y),$=t.computed(()=>({[`${S.value}`]:!0,[`${y}`]:!0,[`${y}-${o.value.key}`]:!0,[`${p}`]:B.value})),w=t.computed(()=>B.value&&!s.value),V=t.computed(()=>{const C=e.collapsed?e.collapsedWidth:f.value.siderWidth;return b.value&&w.value?e.collapsed?C?`calc(100% - ${i.unit(C)})`:"100%":C?`calc(100% - ${i.unit(C)})`:"100%":"100%"}),M=t.computed(()=>B.value?0:void 0),X=()=>{const C=t.createVNode(cn,t.mergeProps(e,{onCollapse:e.onCollapse,headerContentRender:e.headerContentRender&&typeof e.headerContentRender=="function"?e.headerContentRender(e):e.headerContentRender}),null);return e.headerRender?e.headerRender(e,C):C};return()=>{let C;return l(t.createVNode(t.Fragment,null,[B.value&&!f.value.isWide&&t.createVNode(pt,{style:{height:`${f.value.headerHeight}`,lineHeight:`${f.value.headerHeight}`,background:"transparent",marginTop:c.value?`-${f.value.headerHeight}`:void 0}},null),t.createVNode(pt,{class:$.value,style:{height:`${f.value.headerHeight}`,lineHeight:`${f.value.headerHeight}`,width:V.value,zIndex:b.value?100:101,right:M.value,marginTop:c.value?`-${f.value.headerHeight}`:void 0}},dn(C=X())?C:{default:()=>[C]})]))}}}),bt=["menuLinksRender","appsLogoComponents","siderActionsRender"],Ct=["appsLogoComponents","extraRightDropdownRender"],xt=d.arrayRepeat([...Ct,...bt,"pageHeaderRender","copyrightRender"]),mn=["footerRender","menuExtraRender","menuFooterRender","tabsRouteItemRender","headerRender","menuContentRender","subMenuItemRender","menuItemRender","logoRender","breadcrumbRender","collapsedButtonRender"];[...xt,...mn];function St(e){return t.createVNode("svg",t.mergeProps({xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 256 256"},e),[t.createVNode("path",{fill:"currentColor",d:"m238.15 78.54l-60.69-60.68a20 20 0 0 0-28.3 0L97.2 70c-12.43-3.33-36.68-5.72-61.74 14.5a20 20 0 0 0-1.6 29.73l45.46 45.47l-39.8 39.8a12 12 0 0 0 17 17l39.8-39.81l45.47 45.46a20 20 0 0 0 14.12 5.85c.46 0 .93 0 1.4-.05a20 20 0 0 0 14.56-7.95c4.69-6.23 11-16.13 14.44-28s3.45-22.88.16-33.4l51.7-51.87a20 20 0 0 0-.02-28.19m-74.26 68.79a12 12 0 0 0-2.23 13.84c3.43 6.86 6.9 21-6.28 40.65L54.08 100.53c21.09-14.59 39.53-6.64 41-6a11.67 11.67 0 0 0 13.81-2.29l54.43-54.61l55 55Z"},null)])}function fn(e){return t.createVNode("svg",t.mergeProps({xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 256 256"},e),[t.createVNode("path",{fill:"currentColor",d:"M56.88 31.93a12 12 0 1 0-17.76 16.14L60 71a76 76 0 0 0-24.54 13.51a20 20 0 0 0-1.6 29.73l45.46 45.47l-39.8 39.8a12 12 0 0 0 17 17l39.8-39.81l45.47 45.46A20 20 0 0 0 155.9 228c.47 0 .94 0 1.41-.05a20 20 0 0 0 14.56-7.95a97.5 97.5 0 0 0 9.54-15.46l17.72 19.49a12 12 0 1 0 17.76-16.14Zm98.49 169.88L54.08 100.52C62 95 70.31 92.12 78.91 91.83l84.51 93a62 62 0 0 1-8.05 16.98m82.78-95l-39 39.11a12 12 0 1 1-17-16.95l36.19-36.3l-55-55l-32.75 32.83a12 12 0 0 1-17-16.94l35.57-35.69a20 20 0 0 1 28.3 0l60.69 60.68a20 20 0 0 1 0 28.28Z"},null)])}const Rt=40,gn=e=>{const n=i.getProSolidColor(e,e.colorBgBase);return{[`${e.componentTitleCls}`]:{display:"flex",alignItems:"center",gap:8},[`${e.componentTitleCls}-icon`]:{color:e.colorTextSecondary,fontSize:16,transition:"all .3s cubic-bezier(.645,.045,.355,1)"},[`${e.componentCls}`]:{"&-fixed":{width:"100%",height:Rt,background:"transparent"}},[`${e.componentWrapCls}`]:{borderBottom:`${e.lineWidth}px ${e.lineType} ${e.colorSplit}`,[`&${e.antCls}-tabs`]:{paddingBlock:6,background:e.colorBgContainer,[`>${e.antCls}-tabs-nav`]:{paddingLeft:16,marginBlockEnd:0,"&::before":{display:"none"},[`${e.antCls}-tabs-ink-bar`]:{display:"none"},[`${e.antCls}-tabs-tab`]:{paddingInline:8,paddingBlock:2,lineHeight:"20px",border:`1px solid ${e.colorBorder}`,backgroundColor:n,borderRadius:e.borderRadiusSM,"&:hover":{borderColor:e.colorPrimary,[`${e.antCls}-tabs-tab-btn`]:{color:e.colorPrimary,[`${e.componentTitleCls}`]:{[`${e.componentCls}-icon`]:{color:e.colorPrimary},".anticon":{color:e.colorPrimary}}}},[`+${e.antCls}-tabs-tab`]:{marginInlineStart:8},[`${e.antCls}-tabs-tab-btn`]:{color:e.colorText,[`${e.componentTitleCls}`]:{fontSize:e.fontSizeSM,[`${e.componentCls}-icon`]:{color:e.colorText,fontSize:e.fontSizeSM,cursor:"pointer",transition:"color .3s"}}},[`&${e.antCls}-tabs-tab-active`]:{borderColor:"transparent",backgroundColor:e.colorPrimary,"&:hover":{[`${e.antCls}-tabs-tab-btn`]:{color:e.colorWhite,[`${e.componentTitleCls}`]:{[`${e.componentCls}-icon`]:{color:e.colorWhite},".anticon":{color:e.colorWhite}}}},[`${e.antCls}-tabs-tab-btn`]:{color:e.colorWhite,[`${e.componentTitleCls}`]:{[`${e.componentCls}-icon`]:{color:e.colorWhite},".anticon":{color:e.colorWhite}}}},".anticon":{margin:0,fontSize:e.fontSizeSM-2}},[`${e.antCls}-tabs-nav-list ${e.antCls}-tabs-tab`]:{transition:"all .2s cubic-bezier(.645,.045,.355,1)","&:hover":{[`${e.componentTitleCls}-icon`]:{color:e.colorPrimaryHover}},"&-active":{[`${e.componentTitleCls}-icon`]:{color:e.colorPrimary}}},[`${e.componentCls}-dropdown-menu`]:{display:"flex",alignItems:"center",gap:e.marginXS,paddingInlineEnd:e.margin},[`${e.componentCls}-dropdown-menu-btn`]:{color:e.colorTextDescription,fontWeight:e.fontWeightStrong,textDecoration:"none",background:"transparent",borderRadius:e.borderRadiusSM,padding:6,cursor:"pointer",transition:`color ${e.motionDurationMid}, background-color ${e.motionDurationMid}`,"&:hover":{color:e.colorIconHover,backgroundColor:e.wireframe?"transparent":e.colorFillContent,textDecoration:"none"},"&:active":{backgroundColor:e.wireframe?"transparent":e.colorFillContentHover}}},[`${e.antCls}-tabs-content-holder`]:{display:"none"}},"&-fixed":{position:"fixed",height:Rt,top:J(e.layout?.header?.heightLayoutHeader||z.headerHeight),right:0,zIndex:9,transition:"width .2s"}}}};function hn(e){return i.useStyle("ProMultiTabs",n=>{const a=i.mergeToken(n,{componentWrapCls:`${n.componentCls}-wrap`,componentTitleCls:`${n.componentCls}-title`});return[gn(a)]},e)}const yn=[{key:"fixed",label:"置顶",icon:e=>t.createVNode(K,{component:e?fn:St},null)},{key:"close",label:"关闭",icon:t.createVNode(K.CloseOutlined,null,null)},{key:"fullScreen",icon:e=>e?t.createVNode(K.FullscreenExitOutlined,null,null):t.createVNode(K.FullscreenOutlined,null,null)},{key:"reloadPage",label:"重新加载",icon:t.createVNode(K.ReloadOutlined,null,null)},{key:"newBlank",label:"新窗口打开",icon:t.createVNode(K.ExportOutlined,null,null)},{key:"divider"},{key:"closeLeftTabs",label:"关闭左侧",icon:t.createVNode(K.VerticalRightOutlined,null,null)},{key:"closeRightTabs",label:"关闭右侧",icon:t.createVNode(K.VerticalLeftOutlined,null,null)},{key:"divider"},{key:"closeOthersTabs",label:"关闭其他",icon:t.createVNode(K.VerticalAlignMiddleOutlined,{rotate:90},null)},{key:"closeAllTabs",label:"关闭全部",icon:t.createVNode(K.SwapOutlined,null,null)}];function pn(e,n){const{fixed:a}=n.tabs,o=d.isBoolean(a)?a:a===0;return e.key==="fixed"?o?"取消置顶":"置顶":e.key==="fullScreen"?n.fullScreen?"还原":"最大化":e.label}function bn(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!t.isVNode(e)}const Cn=v.Tabs.TabPane,xn=v.Menu.Item;function L(e){return e.name}const Sn=t.defineComponent({props:it,inheritAttrs:!1,setup(e,{expose:n}){const{fixedTabsBar:a,storage:o}=t.toRefs(e),c=t.ref(!1),r=t.reactive({activeKey:"",contextMenuActiveKey:""}),s=ne.useRouter(),{isMobile:f,collapsed:N,collapsedWidth:h,layoutProps:y,contentFullScreen:p,settings:B,menuProps:b,renderRouterView:l,getPrefixCls:S}=G(),$=Se(),{layout:w,splitMenus:V}=t.toRefs(B.value),M=S({isPor:!0,suffixCls:"tabs-route"}),{wrapSSR:X,hashId:C}=hn(M),D=me.useLocalStorage(M,{fixed:[],normal:[]});function Y(u){return $?.menuMap?.value?.get(u.name)||b.value?.levelMenuData?.some(R=>R.name===u.name)}const m=t.reactive({fixed:o.value&&D.value?.fixed?D.value?.fixed:[],normal:o.value&&D.value?.normal?D.value?.normal:[]});t.watch(()=>b.value.levelMenuData,()=>{m.fixed.length&&(m.fixed=m.fixed.filter(u=>Y(u))),m.normal.length&&(m.normal=m.normal.filter(u=>Y(u)))},{immediate:!0,deep:!0}),t.watch(o,u=>{D.value=u?A.cloneDeep(t.toRaw(m)):{fixed:[],normal:[]}},{immediate:!0});const x=t.computed(()=>m.fixed.concat(m.normal)),P=t.computed(()=>w.value==="mix"&&!f.value&&V.value),U=t.computed(()=>L(s.currentRoute.value)),F=t.computed(()=>a.value&&!f.value),q=t.computed(()=>{const u=!(P.value&&b.value.flatMenuData.length===0||b.value.menuData.length===0||w.value==="top");return F.value&&u?p.value?"100%":`calc(100% - ${N.value?i.unit(h.value):i.unit(y.value.siderWidth)})`:"100%"}),E=t.computed(()=>d.classNames(`${M}-wrap`,{[`${C.value}`]:!0,[`${M}-wrap-${e.type}`]:e.type,[`${M}-wrap-fixed`]:a.value,[`${M}-wrap-loading`]:e.loading})),Z=t.computed(()=>e.destroyOnHide===!1&&e.visible),ae=t.computed(()=>{const u={display:Z.value?void 0:"none"};return a.value?{margin:0,width:q.value,paddingTop:"6px",zIndex:99,top:p.value?0:void 0,...u}:u});t.watch(()=>m,u=>{o.value&&(D.value=A.cloneDeep(u)),e.onTabsChange?.([...m.fixed,...m.normal])},{deep:!0});const W=u=>x.value.find(R=>L(R)===u),_=u=>L(u)===U.value,H=u=>{const{fixed:R}=u?.meta?.tabState||{};return u?.meta?d.isBoolean(R)?R:R===0:!1},ee=u=>{const{hidden:R}=u?.meta?.tabState||{};if(u.name&&u.meta&&R!==!0){const I=H(u),T=L(u),O=W(T),k={name:T,path:u.path,fullPath:u.fullPath,query:u.query,params:u.params,meta:d.merge(u.meta,{tabState:u.meta?.tabState})};O?d.merge(O,k):I?m.fixed.push(k):m.normal.push(k),_(u)&&(r.activeKey=T)}},re=u=>{u.forEach(R=>{H(R)&&ee(t.unref(R))})};t.watch(()=>b.value.levelMenuData,u=>{re(u)},{deep:!0,immediate:!0}),t.watch(()=>s.currentRoute.value,u=>{ee(u)},{deep:!0,immediate:!0});const de=u=>{const R=x.value.find(I=>(u||r.activeKey)===L(I));return R?.redirect||R?.fullPath||R?.path||""};function te(u){const R={};return u.query&&(R.query=u.query),u.params&&(R.params=u.params),R}const Re=(u,{type:R,addType:I,params:T})=>{const O=H(u)?"fixed":"normal";R==="add"&&I?m[O][I](T):R==="merge"?m[O]=m[O].map(k=>L(k)===L(u)?d.merge(k,T):k):R==="remove"&&(m[O]=m[O].filter(k=>L(k)!==L(u)))},Nt=()=>{const u=x.value.slice(-1)[0];u?s.push({path:de(L(u)),...te(u)}):s.push("/")},Mt=(u,R)=>{const I=x.value.find(T=>u===L(T));I&&(Re(I,{type:"remove",params:I}),R?.(I))},To=()=>{m.fixed=[],m.normal=[]},It=async u=>{Mt(u,R=>{_(R)&&Nt()})},Lo=u=>{const R=x.value.find(I=>L(I)===u);R&&r.activeKey!==L(R)&&s.push({path:de(L(R)),...te(R)})},Vo=me.useThrottleFn(()=>{l.value=!1,c.value=!0,e.onReloadPage&&e.onReloadPage?.(),setTimeout(()=>{l.value=!0},200),setTimeout(()=>{c.value=!1},500)},500),ue=u=>r[u],He=u=>{s.push({path:u.path,...te(u)})},ze=(u,R)=>{let I=m.normal.findIndex(j=>L(j)===ue(R));const T=x.value.find(j=>L(j)===ue(R)),O=H(T);let k=!1;switch(u){case"fixed":O?(I=m.fixed.findIndex(j=>L(j)===ue(R)),m.normal.unshift(d.merge(T,{meta:{tabState:{fixed:!O}}})),m.fixed=m.fixed.filter((j,oe)=>oe!==I)):(m.fixed.push(d.merge(T,{meta:{tabState:{fixed:!O}}})),m.normal=m.normal.filter((j,oe)=>oe!==I));break;case"close":It(L(T)||"");break;case"closeOthersTabs":m.normal=m.normal.filter(j=>L(j)===ue(R)||H(j)),k=r[R]!==r.activeKey,k&&He(T);break;case"closeLeftTabs":d.isNumber(I)&&(m.normal=m.normal.filter((j,oe)=>oe>=I||H(j)),k=!x.value.some(j=>L(j)===r.activeKey),k&&He(T));break;case"closeRightTabs":d.isNumber(I)&&(m.normal=m.normal.filter((j,oe)=>oe<=I||H(j))),k=!x.value.some(j=>L(j)===r.activeKey),k&&He(T);break;case"closeAllTabs":m.normal=m.normal.filter(j=>H(j)),Nt();break;case"reloadPage":(I===0||I)&&r.activeKey===ue(R)&&Vo();break;case"newBlank":window.open(location.href);break;case"fullScreen":p.value=!p.value;break}},ko=(u,R)=>{const I=x.value.findIndex(T=>L(T)===R);if(u==="closeOthersTabs")return x.value.filter((O,k)=>k!==I&&!H(O)).length===0;if(u==="closeLeftTabs")return x.value.filter((O,k)=>k<I&&!H(O)).length===0;if(u==="closeRightTabs")return x.value.filter((O,k)=>k>I&&!H(O)).length===0},Ot=u=>{let R;const{name:I,stateType:T}=u;return t.createVNode(v.Menu,{selectedKeys:[],onClick:O=>ze(O.key,T)},bn(R=yn.map(O=>{if(O.key==="divider")return t.createVNode(v.Menu.Divider,{key:O.key},null);const k=O.icon;return O.key==="close"&&H(W(I))?null:t.createVNode(xn,{key:O.key,disabled:ko(O.key,I)},{default:()=>[O.icon&&typeof O.icon=="function"?O.key==="fullScreen"?O.icon(p.value):O.key==="fixed"?O.icon(H(W(I))):null:t.createVNode(k,null,null),t.createVNode("span",{style:{marginInlineStart:"8px"}},[pn(O,{tabs:W(I)?.meta?.tabState||{},fullScreen:p.value})])]})}))?R:{default:()=>[R]})},Ko=({router:u})=>{const R=e.itemRender?e.itemRender(u):null,I=H(u);return t.createVNode(v.Dropdown,{trigger:"contextmenu",overlay:t.createVNode(Ot,{name:L(u)||"",stateType:"contextMenuActiveKey"},null),onOpenChange:T=>{r.contextMenuActiveKey=T&&L(u)||""}},{default:()=>[R||t.createVNode("div",{class:[`${M}-title`,C.value]},[u.meta?.title,I&&t.createVNode(K,{class:[`${M}-icon`,C.value],component:St},null),x.value.length>1&&!H(u)&&t.createVNode(K.CloseOutlined,{class:[`${M}-close-btn`,C.value],onClick:T=>{T.stopPropagation(),It(L(u)||"")}},null)])]})};return n({clean:To,close:Mt,change:Re}),()=>{const u=p.value?K.FullscreenExitOutlined:K.FullscreenOutlined;return X(t.createVNode(t.Fragment,null,[a.value&&t.createVNode("div",{style:{display:Z.value?void 0:"none"},class:[`${M}-fixed`,C.value]},null),t.createVNode(v.Tabs,{hideAdd:!0,style:ae.value,class:E.value,activeKey:r.activeKey,onTabClick:Lo},{default:()=>[x.value.map(R=>t.createVNode(Cn,{key:L(R),closable:!1,tab:t.createVNode(Ko,{router:R},null)},null))],rightExtra:()=>t.createVNode("div",{class:d.classNames(`${M}-dropdown-menu`,C.value)},[t.createVNode(K.ReloadOutlined,{class:[`${M}-dropdown-menu-btn`,C.value],onClick:()=>ze("reloadPage","activeKey")},null),t.createVNode(v.Dropdown,{overlay:t.createVNode(Ot,{name:r.activeKey,stateType:"activeKey"},null)},{default:()=>[t.createVNode(K.DownOutlined,{class:[`${M}-dropdown-menu-btn`,C.value]},null)]}),t.createVNode(u,{class:[`${M}-dropdown-menu-btn`,C.value],onClick:()=>ze("fullScreen","activeKey")},null)])})]))}}}),Rn=["isChildrenLayout","loading","onTabsChange","onReloadPage"],wn=t.defineComponent({inheritAttrs:!1,displayName:"wrap-content",props:{...A.omit(it,["visible","destroyOnHide","storage","itemRender"]),hashId:String,prefixCls:String,isChildrenLayout:Boolean,tabsRoute:xe.tabsRoute},setup(e,{slots:n}){const{tabsComRef:a,contentFullScreen:o,layoutProps:c,settings:r,fullScreenOnTabsHide:s}=G(),f=t.computed(()=>d.isBoolean(e.tabsRoute?.visible)?e.tabsRoute?.visible:!(o.value&&s.value));return()=>{if(e.isChildrenLayout)return n.default?.();const{prefixCls:N,hashId:h,tabsRoute:y,...p}=e;return t.createVNode("div",{class:d.classNames(`${N}-container`,h,c.value.siderWidth&&`${N}-container-has-silder`)},[!r.value.showTabsBar||c.value.isWide||r.value.layout==="simple"?null:t.createVNode(Sn,t.mergeProps({ref:a},p,e.tabsRoute,{visible:f.value}),null),n.default?.()])}}}),{Content:Nn}=v.Layout,Mn=t.defineComponent({name:"BaseProLayout",inheritAttrs:!1,props:xe,slots:Object,setup(e,{slots:n,expose:a}){const o=d.getPrefixCls({suffixCls:"basic-layout",isPor:!0});me.useStyleTag(et);const{wrapSSR:c,hashId:r}=i.useProStyle("ProLayout",[Qt,Jt],o),s=ie.useMediaQuery(),f=Se(),N=ie.useSlotsProps({slots:n,props:e,keys:xt,render:!0}),{dark:h}=i.useProConfigContext(),y=t.ref(),p=t.ref(!0),B=t.ref(!1),b=t.ref(!1),l=t.ref(),S=t.ref(d.getRandomNumber().uuid(10)),$=t.reactive({position:"relative"});t.watchEffect(()=>{const m=document.querySelector("html");m&&m.setAttribute("data-theme",h.value?"dark":"light")});const w=t.computed(()=>{let m=0;return b.value?m=0:e.settings.siderWidth||e.settings.siderWidth===0?m=e.settings.siderWidth===0?0:J(e.settings.siderWidth):e.settings.layout==="wide"?m=208:m=J(z.siderWidth),{isWide:e.settings.layout==="wide",headerHeight:e.settings.headerHeight||e.settings.headerHeight===0?e.settings.headerHeight===0?0:J(e.settings.headerHeight):J(z.headerHeight),siderWidth:m,hasSilder:e.settings.layout==="mix"||e.settings.layout==="side"||e.settings.layout==="wide"||!1}}),V=t.computed(()=>{const m=e.route||f?.menuData?.value||[],x=f?.levelMenuData?.value??d.getLevelData(m);return{...e.menu,menuData:m,levelMenuData:x,key:we(h.value,e.settings?.theme),baseTheme:h.value?"dark":e.settings.theme,flatMenuData:w.value.hasSilder&&e?.selectedKeys?Je(m,e.selectedKeys[0]):[]}}),M=t.computed(()=>(s.value==="sm"||s.value==="xs")&&!e.disableMobile&&!w.value.isWide),X=t.computed(()=>({position:e.breadcrumb?.position&&d.isString(e.breadcrumb?.position)?e.breadcrumb?.position:e.settings.layout==="side"?"header":"pageHeader",...A.omit(e.breadcrumb||{},"position"),itemRender:d.getSlot({slots:n,props:{breadcrumbRender:e.pageContainer?.breadcrumbRender},key:"breadcrumbRender"})}));t.watch([()=>e.settings.layout,()=>e.settings.theme],([m])=>{(m==="wide"||m==="simple")&&(b.value=!1),S.value=d.getRandomNumber().uuid(10)}),t.watch(()=>w.value.isWide,m=>{if(m){const x=document.querySelector('meta[name="viewport"]');x&&(x.content="")}},{immediate:!0}),t.watch(b,m=>{e.onContentFullScreenChange?.(m)}),t.watch([()=>e.layoutStyle?.content,()=>e.isChildrenLayout],([m,x])=>{(e.isChildrenLayout||m&&m.minHeight)&&($.minHeight=0)},{immediate:!0,deep:!0});function C(){return d.getSlotsProps({slots:n,props:e,keys:["menuItemRender","subMenuItemRender","collapsedIconRender","collapsedButtonRender"]})}const D=()=>{if(e.headerRender===!1||e.pure||e.settings.layout==="simple"||!w.value.headerHeight||w.value.headerHeight===0)return null;const m=d.getSlotsProps({slots:n,props:e,keys:["logoRender","headerRender","headerContentRender","rightContentRender"]}),x=d.getSlotsProps({slots:n,props:e,keys:Ct,render:!0});return t.createVNode(un,t.mergeProps(e,x,C(),{logoRender:m.logoRender,headerRender:m.headerRender,rightContentRender:m.rightContentRender,headerContentRender:m.headerContentRender}),null)},Y=()=>{if(!w.value.siderWidth||w.value.siderWidth===0)return null;const m=d.getSlotsProps({slots:n,props:e,keys:bt,render:!0}),x=d.getSlotsProps({slots:n,props:e,keys:["logoRender","menuHeaderRender","menuFooterRender","menuContentRender"]});return t.createVNode(gt,t.mergeProps(e,m,C(),{isMobile:M.value,logoRender:x.logoRender,siderWidth:w.value.siderWidth,menuHeaderRender:x.menuHeaderRender,menuFooterRender:x.menuFooterRender,menuContentRender:x.menuContentRender}),null)};return je({...A.pick(t.toRefs(e),Ae),getPrefixCls:d.getPrefixCls,settings:t.toRef(e,"settings"),layoutStyle:t.toRef(e,"layoutStyle"),menuProps:V,tabsComRef:y,contentFullScreen:b,layoutProps:w,isMobile:M,renderRouterView:p,breadcrumb:X,fullScreenOnTabsHide:B,breadcrumbRender:l,onDarkChange:e.onDarkChange,pageHeaderRender:t.computed(()=>d.getSlotVNode({slots:n,props:{pageHeaderRender:e.pageContainer?.pageHeaderRender},key:"pageHeaderRender"}))}),a({tabsComRef:()=>y.value}),()=>{const m={minWidth:w.value.isWide?J(e.settings.wideWidth):void 0,minHeight:e.settings.layout==="simple"?`calc(100vh - ${J(e.settings.headerHeight)})`:void 0,...e.style},x=d.getSlot({slots:n,props:e,key:"footerRender",render:!1}),P=x===!1?null:x?typeof x=="function"?x(e):x:t.createVNode(at,{copyright:N.value.copyrightRender,links:e.footerLinks},null);return c(t.createVNode(t.Fragment,null,[e.pure?n.default?.():t.createVNode("div",{id:e.id,class:d.classNames({[`${r.value}`]:!0,[`${e.class}`]:!!e.class,[`${o}`]:!0,[`${o}-${e.settings.layout}`]:!0}),style:m},[t.createVNode(v.Layout,{style:w.value.isWide?{width:J(e.settings.wideWidth),paddingTop:pe(w.value.headerHeight,20),margin:w.value.isWide?"0 auto":void 0}:void 0},{default:()=>[Y(),t.createVNode(v.Layout,{style:$},{default:()=>[D(),t.createVNode(wn,t.mergeProps(A.pick(e,Rn),{tabsRoute:{...e.tabsRoute,itemRender:n.tabsRouteItemRender||e.tabsRoute?.itemRender},hashId:r.value,prefixCls:o}),{default:()=>[t.createVNode(Nn,{class:d.classNames(`${o}-content`,r.value)},{default:()=>[n.default?.()]})]}),!w.value.isWide&&P]})]}),w.value.isWide&&P,e.waterMark!==!1&&t.createVNode(vt.GPorWaterMark,t.mergeProps({zIndex:120},d.isObject(e.waterMark)?e.waterMark:{}),null)])]))}}}),In=t.defineComponent({name:"GProLayout",compatConfig:{MODE:3},inheritAttrs:!1,props:xe,emits:{select:e=>!0,"update:selected-keys":e=>!0,openKeys:e=>!0,"update:open-keys":e=>!0,collapse:e=>!0,"update:collapsed":e=>!0,reloadPage:()=>!0,logoClick:()=>!0,tabsChange:e=>e.length>0,"update:tabs":e=>e.length>0,darkChange:e=>!0,"update:dark":e=>!0,contentFullScreenChange:e=>!0},slots:Object,setup(e,{slots:n,emit:a,expose:o}){const c=t.ref(),{isDark:r,dark:s,toggleMode:f}=ht(t.computed(()=>e.dark),{change:l=>{a("darkChange",l),a("update:dark",l)}}),N=t.computed(()=>{let l=e.token||{};return l.layout?.header?.heightLayoutHeader||(l=d.deepMerge(l,{layout:{header:{heightLayoutHeader:e.settings.headerHeight}}})),d.merge(l,{layout:{key:`${we(r.value,e.settings.theme)}:${e.settings.layout}`}})}),h=l=>{a("update:collapsed",l),a("collapse",l)},y=l=>{a("update:open-keys",l),a("openKeys",l)},p=l=>{a("update:selected-keys",l),a("select",l)},B=l=>{a("update:tabs",l),a("tabsChange",l)},b=l=>{a("contentFullScreenChange",l)};return o({tabsComRef:()=>c.value?.tabsComRef?.()}),()=>{const l=["onSelect","onOpenKeys","onCollapse","onTabsChange","onDarkChange","dark","onContentFullScreenChange"];return t.createVNode(v.ConfigProvider,{theme:e.settings.primaryColor?{token:{colorPrimary:e.settings.primaryColor}}:void 0},{default:()=>[t.createVNode(i.GProConfigProvider,{token:N.value,dark:r.value,cssVar:e.cssVar},{default:()=>[t.createVNode(Mn,t.mergeProps({ref:c},A.omit(e,l),{dark:s.value,onSelect:p,onOpenKeys:y,onCollapse:h,onTabsChange:B,onContentFullScreenChange:b,onDarkChange:f}),n)]})]})}}}),On=e=>({[e.componentCls]:{height:"100%",[`&${e.componentCls}-loading`]:{position:"relative",height:"100%",overflow:"hidden"},"&-blur":{position:"absolute",top:0,left:0,width:"100%",height:"100%",zIndex:200,backgroundColor:We.getAlphaColor(e.colorBgContainer,.5),[`& > ${e.antCls}-spin`]:{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)"}}}});function $n(e){return i.useStyle("PageLoading",n=>[On(n)],e)}const vn=t.defineComponent({name:"GProAppPage",props:{...se.proAppProps,spinning:{type:Object,default:()=>({})},spinProps:Object},inheritAttrs:!1,slots:Object,setup(e,{slots:n,attrs:a}){const o=d.getPrefixCls({isPor:!0,suffixCls:"app-page"}),{hashId:c,wrapSSR:r}=$n(o);return Vt({spinning:t.computed(()=>e.spinning?.loading)}),()=>{const s=d.getSlotsProps({slots:n,props:e,keys:se.proAppSlots,render:!0});return r(t.createVNode(se.GProApp,t.mergeProps({style:a.style,class:d.classNames(a.class,e.spinning?.loading&&`${o}-loading`,o,c.value)},s),{default:()=>[t.createVNode(Ft.GScrollbars,{barStyle:{x:{zIndex:110},y:{zIndex:110}}},{default:()=>[n.default?.()]}),e.spinning?.loading&&t.createVNode("div",{class:d.classNames(`${o}-blur`,c.value),style:{backgroundColor:e.spinning?.blur?void 0:"unset",...e.spinning?.style||{}}},[t.createVNode(v.Spin,t.mergeProps(A.omit(e.spinProps,"spinning","iconStyle","iconClass"),{spinning:!0,indicator:s.indicator&&t.h(s.indicator,{style:e.spinProps?.iconStyle,class:e.spinProps?.iconClass})}),null)])]}))}}}),Fn=["left","right"],ce=["left","right","down","up"],Bn=["downBig","upBig","leftBig","rightBig"],Tn=["topLeft","bottomRight","topRight","bottomLeft"],Ln=["downLeft","upRight","downRight","upLeft"],wt={preset:[{name:"back",alias:"渐近",directions:ce},{name:"bounce",alias:"弹跳",directions:ce.concat("default")},{name:"fade",alias:"淡化",directions:ce.concat(Bn).concat(Tn).concat("default")},{name:"flip",alias:"翻转",directions:["x","y"]},{name:"lightSpeed",alias:"光速",directions:Fn},{name:"rotate",alias:"旋转",directions:Ln.concat("default")},{name:"roll",alias:"翻滚",directions:["default"]},{name:"zoom",alias:"缩放",directions:ce.concat("default")},{name:"slide",alias:"滑动",directions:ce}]},Vn=new i.Keyframe("backInLeft",{"0%":{opacity:.7,transform:"translateX(-2000px) scale(0.7)"},"80%":{opacity:.7,transform:"translateX(0px) scale(0.7)"},"100%":{opacity:1,transform:"scale(1)"}}),kn=new i.Keyframe("backInRight",{"0%":{opacity:.7,transform:"translateX(2000px) scale(0.7)"},"80%":{opacity:.7,transform:"translateX(0px) scale(0.7)"},"100%":{opacity:1,transform:"scale(1)"}}),Kn=new i.Keyframe("backInUp",{"0%":{opacity:.7,transform:"translateY(1200px) scale(0.7)"},"80%":{opacity:.7,transform:"translateY(0px) scale(0.7)"},"100%":{opacity:1,transform:"scale(1)"}}),Dn=new i.Keyframe("backInDown",{"0%":{opacity:.7,transform:"translateY(-1200px) scale(0.7)"},"80%":{opacity:.7,transform:"translateY(0px) scale(0.7)"},"100%":{opacity:1,transform:"scale(1)"}}),Pn=new i.Keyframe("backOutLeft",{"0%":{opacity:1,transform:"scale(1)"},"20%":{opacity:.7,transform:"translateX(0px) scale(0.7)"},"100%":{opacity:.7,transform:"translateX(-2000px) scale(0.7)"}}),Hn=new i.Keyframe("backOutRight",{"0%":{opacity:1,transform:"scale(1)"},"20%":{opacity:.7,transform:"translateX(0px) scale(0.7)"},"100%":{opacity:.7,transform:"translateX(2000px) scale(0.7)"}}),zn=new i.Keyframe("backOutUp",{"0%":{opacity:1,transform:"scale(1)"},"20%":{opacity:.7,transform:"translateY(0px) scale(0.7)"},"100%":{opacity:.7,transform:"translateY(-700px) scale(0.7)"}}),Wn=new i.Keyframe("backOutDown",{"0%":{opacity:1,transform:"scale(1)"},"20%":{opacity:.7,transform:"translateY(0px) scale(0.7)"},"100%":{opacity:.7,transform:"translateY(700px) scale(0.7)"}}),An=()=>({"&.backInLeft":{animationFillMode:"both",animationName:Vn},"&.backInRight":{animationFillMode:"both",animationName:kn},"&.backInUp":{animationFillMode:"both",animationName:Kn},"&.backInDown":{animationFillMode:"both",animationName:Dn}}),jn=()=>({"&.backOutLeft":{animationFillMode:"both",animationName:Pn},"&.backOutRight":{animationFillMode:"both",animationName:Hn},"&.backOutUp":{animationFillMode:"both",animationName:zn},"&.backOutDown":{animationFillMode:"both",animationName:Wn}}),Xn=new i.Keyframe("bounceIn",{"from,20%,40%,60%,80%,to":{animationTimingFunction:"cubic-bezier(0.215, 0.61, 0.355, 1)"},"0%":{opacity:0,transform:"scale3d(0.3, 0.3, 0.3)"},"20%":{transform:"scale3d(1.1, 1.1, 1.1)"},"40%":{transform:"scale3d(0.9, 0.9, 0.9)"},"60%":{transform:"scale3d(1.03, 1.03, 1.03)"},"80%":{transform:"scale3d(0.97, 0.97, 0.97)"},to:{opacity:1,transform:"scale3d(1, 1, 1)"}}),Yn=new i.Keyframe("bounceInLeft",{"from,60%,75%,90%,to":{animationTimingFunction:"cubic-bezier(0.215, 0.61, 0.355, 1)"},"0%":{opacity:0,transform:"translate3d(-3000px, 0, 0) scaleX(3)"},"60%":{opacity:1,transform:"translate3d(25px, 0, 0) scaleX(1)"},"75%":{transform:"translate3d(-10px, 0, 0) scaleX(0.98)"},"90%":{transform:"translate3d(5px, 0, 0) scaleX(0.995)"},to:{transform:"translate3d(0, 0, 0)"}}),_n=new i.Keyframe("bounceInRight",{"from,60%,75%,90%,to":{animationTimingFunction:"cubic-bezier(0.215, 0.61, 0.355, 1)"},from:{opacity:0,transform:"translate3d(3000px, 0, 0) scaleX(3)"},"60%":{opacity:1,transform:"translate3d(-25px, 0, 0) scaleX(1)"},"75%":{transform:"translate3d(10px, 0, 0) scaleX(0.98)"},"90%":{transform:"translate3d(-5px, 0, 0) scaleX(0.995)"},to:{transform:"translate3d(0, 0, 0)"}}),Gn=new i.Keyframe("bounceInDown",{"from,60%,75%,90%,to":{animationTimingFunction:"cubic-bezier(0.215, 0.61, 0.355, 1)"},"0%":{opacity:0,transform:"translate3d(0, -3000px, 0) scaleY(3)"},"60%":{opacity:1,transform:"translate3d(0, 25px, 0) scaleY(0.9)"},"75%":{transform:"translate3d(0, -10px, 0) scaleY(0.95)"},"90%":{transform:"translate3d(0, 5px, 0) scaleY(0.985)"},to:{transform:"translate3d(0, 0, 0)"}}),qn=new i.Keyframe("bounceInUp",{"from,60%,75%,90%,to":{animationTimingFunction:"cubic-bezier(0.215, 0.61, 0.355, 1)"},from:{opacity:0,transform:"translate3d(0, 3000px, 0) scaleY(5)"},"60%":{opacity:1,transform:"translate3d(0, -20px, 0) scaleY(0.9)"},"75%":{transform:"translate3d(0, 10px, 0) scaleY(0.95)"},"90%":{transform:"translate3d(0, -5px, 0) scaleY(0.985)"},to:{transform:"translate3d(0, 0, 0)"}}),En=new i.Keyframe("bounceOut",{"20%":{transform:"scale3d(0.9, 0.9, 0.9)"},"50%,55%":{transform:"scale3d(1.1, 1.1, 1.1)"},"60%":{transform:"scale3d(1.03, 1.03, 1.03)"},to:{opacity:0,transform:"scale3d(0.3, 0.3, 0.3)"}}),Zn=new i.Keyframe("bounceOutLeft",{"20%":{opacity:1,transform:"translate3d(20px, 0, 0) scaleX(0.9)"},to:{opacity:0,transform:"translate3d(-2000px, 0, 0) scaleX(2)"}}),Qn=new i.Keyframe("bounceOutRight",{"20%":{opacity:1,transform:"translate3d(-20px, 0, 0) scaleX(0.9)"},to:{opacity:0,transform:"translate3d(2000px, 0, 0) scaleX(2)"}}),Jn=new i.Keyframe("bounceOutDown",{"20%":{transform:"translate3d(0, 10px, 0) scaleY(0.985)"},"40%,45%":{opacity:1,transform:"translate3d(0, -20px, 0) scaleY(0.9)"},to:{opacity:0,transform:"translate3d(0, 2000px, 0) scaleY(3)"}}),Un=new i.Keyframe("bounceOutUp",{"20%":{transform:"translate3d(0, -10px, 0) scaleY(0.985)"},"40%,45%":{opacity:1,transform:"translate3d(0, 20px, 0) scaleY(0.9)"},to:{opacity:0,transform:"translate3d(0, -2000px, 0) scaleY(3)"}}),ea=()=>({"&.bounceIn":{animationFillMode:"both",animationDuration:`${.3*.75}s !important`,animationName:Xn},"&.bounceInLeft":{animationFillMode:"both",animationName:Yn},"&.bounceInRight":{animationFillMode:"both",animationName:_n},"&.bounceInDown":{animationFillMode:"both",animationName:Gn},"&.bounceInUp":{animationFillMode:"both",animationName:qn}}),ta=()=>({"&.bounceOut":{animationFillMode:"both",animationDuration:`${.3*.75}s !important`,animationName:En},"&.bounceOutLeft":{animationFillMode:"both",animationName:Zn},"&.bounceOutRight":{animationFillMode:"both",animationName:Qn},"&.bounceOutDown":{animationFillMode:"both",animationName:Jn},"&.bounceOutUp":{animationFillMode:"both",animationName:Un}}),na=new i.Keyframe("fadeIn",{from:{opacity:0},to:{opacity:1}}),aa=new i.Keyframe("fadeInLeft",{from:{opacity:0,transform:"translate3d(-100%, 0, 0)"},to:{opacity:1,transform:"translate3d(0, 0, 0)"}}),oa=new i.Keyframe("fadeInRight",{from:{opacity:0,transform:"translate3d(100%, 0, 0)"},to:{opacity:1,transform:"translate3d(0, 0, 0)"}}),ia=new i.Keyframe("fadeInDown",{from:{opacity:0,transform:"translate3d(0, -100%, 0)"},to:{opacity:1,transform:"translate3d(0, 0, 0)"}}),la=new i.Keyframe("fadeInUp",{from:{opacity:0,transform:"translate3d(0, 100%, 0)"},to:{opacity:1,transform:"translate3d(0, 0, 0)"}}),ra=new i.Keyframe("fadeInDownBig",{from:{opacity:0,transform:"translate3d(0, -2000px, 0)"},to:{opacity:1,transform:"translate3d(0, 0, 0)"}}),sa=new i.Keyframe("fadeInUpBig",{from:{opacity:0,transform:"translate3d(0, 2000px, 0)"},to:{opacity:1,transform:"translate3d(0, 0, 0)"}}),ca=new i.Keyframe("fadeInLeftBig",{from:{opacity:0,transform:"translate3d(-2000px, 0, 0)"},to:{opacity:1,transform:"translate3d(0, 0, 0)"}}),da=new i.Keyframe("fadeInRightBig",{from:{opacity:0,transform:"translate3d(2000px, 0, 0)"},to:{opacity:1,transform:"translate3d(0, 0, 0)"}}),ua=new i.Keyframe("fadeInTopLeft",{from:{opacity:0,transform:"translate3d(-100%, -100%, 0)"},to:{opacity:1,transform:"translate3d(0, 0, 0)"}}),ma=new i.Keyframe("fadeInBottomRight",{from:{opacity:0,transform:"translate3d(100%, 100%, 0)"},to:{opacity:1,transform:"translate3d(0, 0, 0)"}}),fa=new i.Keyframe("fadeInTopRight",{from:{opacity:0,transform:"translate3d(100%, -100%, 0)"},to:{opacity:1,transform:"translate3d(0, 0, 0)"}}),ga=new i.Keyframe("fadeInBottomLeft",{from:{opacity:0,transform:"translate3d(-100%, 100%, 0)"},to:{opacity:1,transform:"translate3d(0, 0, 0)"}}),ha=new i.Keyframe("fadeOut",{from:{opacity:1},to:{opacity:0}}),ya=new i.Keyframe("fadeOutLeft",{from:{opacity:1},to:{opacity:0,transform:"translate3d(-100%, 0, 0)"}}),pa=new i.Keyframe("fadeOutRight",{from:{opacity:1},to:{opacity:0,transform:"translate3d(100%, 0, 0)"}}),ba=new i.Keyframe("fadeOutDown",{from:{opacity:1},to:{opacity:0,transform:"translate3d(0, 100%, 0)"}}),Ca=new i.Keyframe("fadeOutUp",{from:{opacity:1},to:{opacity:0,transform:"translate3d(0, -100%, 0)"}}),xa=new i.Keyframe("fadeOutDownBig",{from:{opacity:1},to:{opacity:0,transform:"translate3d(0, 2000px, 0)"}}),Sa=new i.Keyframe("fadeOutUpBig",{from:{opacity:1},to:{opacity:0,transform:"translate3d(0, -2000px, 0)"}}),Ra=new i.Keyframe("fadeOutLeftBig",{from:{opacity:1},to:{opacity:0,transform:"translate3d(-2000px, 0, 0)"}}),wa=new i.Keyframe("fadeOutRightBig",{from:{opacity:1},to:{opacity:0,transform:"translate3d(2000px, 0, 0)"}}),Na=new i.Keyframe("fadeOutTopLeft",{from:{opacity:1,transform:"translate3d(0, 0, 0)"},to:{opacity:0,transform:"translate3d(-100%, -100%, 0)"}}),Ma=new i.Keyframe("fadeOutBottomRight",{from:{opacity:1,transform:"translate3d(0, 0, 0)"},to:{opacity:0,transform:"translate3d(100%, 100%, 0)"}}),Ia=new i.Keyframe("fadeOutTopRight",{from:{opacity:1,transform:"translate3d(0, 0, 0)"},to:{opacity:0,transform:"translate3d(100%, -100%, 0)"}}),Oa=new i.Keyframe("fadeOutBottomLeft",{from:{opacity:1,transform:"translate3d(0, 0, 0)"},to:{opacity:0,transform:"translate3d(-100%, 100%, 0)"}}),$a=()=>({"&.fadeIn":{animationFillMode:"both",animationName:na},"&.fadeInLeft":{animationFillMode:"both",animationName:aa},"&.fadeInRight":{animationFillMode:"both",animationName:oa},"&.fadeInDown":{animationFillMode:"both",animationName:ia},"&.fadeInUp":{animationFillMode:"both",animationName:la},"&.fadeInLeftBig":{animationFillMode:"both",animationName:ca},"&.fadeInRightBig":{animationFillMode:"both",animationName:da},"&.fadeInUpBig":{animationFillMode:"both",animationName:sa},"&.fadeInDownBig":{animationFillMode:"both",animationName:ra},"&.fadeInTopLeft":{animationFillMode:"both",animationName:ua},"&.fadeInBottomRight":{animationFillMode:"both",animationName:ma},"&.fadeInTopRight":{animationFillMode:"both",animationName:fa},"&.fadeInBottomLeft":{animationFillMode:"both",animationName:ga}}),va=()=>({"&.fadeOut":{animationFillMode:"both",animationName:ha},"&.fadeOutLeft":{animationFillMode:"both",animationName:ya},"&.fadeOutRight":{animationFillMode:"both",animationName:pa},"&.fadeOutDown":{animationFillMode:"both",animationName:ba},"&.fadeOutUp":{animationFillMode:"both",animationName:Ca},"&.fadeOutDownBig":{animationFillMode:"both",animationName:xa},"&.fadeOutUpBig":{animationFillMode:"both",animationName:Sa},"&.fadeOutLeftBig":{animationFillMode:"both",animationName:Ra},"&.fadeOutRightBig":{animationFillMode:"both",animationName:wa},"&.fadeOutTopLeft":{animationFillMode:"both",animationName:Na},"&.fadeOutBottomRight":{animationFillMode:"both",animationName:Ma},"&.fadeOutTopRight":{animationFillMode:"both",animationName:Ia},"&.fadeOutBottomLeft":{animationFillMode:"both",animationName:Oa}}),Fa=new i.Keyframe("flipInX",{from:{opacity:0,animationTimingFunction:"ease-in",transform:"perspective(400px) rotate3d(1, 0, 0, 90deg)"},"40%":{animationTimingFunction:"ease-in",transform:"perspective(400px) rotate3d(1, 0, 0, -20deg)"},"60%":{opacity:1,transform:"perspective(400px) rotate3d(1, 0, 0, 10deg)"},"80%":{transform:"perspective(400px) rotate3d(1, 0, 0, -5deg)"},to:{transform:"perspective(400px)"}}),Ba=new i.Keyframe("flipInY",{from:{opacity:0,animationTimingFunction:"ease-in",transform:"perspective(400px) rotate3d(0, 1, 0, 90deg)"},"40%":{animationTimingFunction:"ease-in",transform:"perspective(400px) rotate3d(0, 1, 0, -20deg)"},"60%":{opacity:1,transform:"perspective(400px) rotate3d(0, 1, 0, 10deg)"},"80%":{transform:"perspective(400px) rotate3d(0, 1, 0, -5deg)"},to:{transform:"perspective(400px)"}}),Ta=new i.Keyframe("flipOutX",{from:{transform:"perspective(400px)"},"40%":{opacity:1,transform:"perspective(400px) rotate3d(1, 0, 0, -20deg)"},to:{opacity:0,transform:"perspective(400px) rotate3d(1, 0, 0, 90deg)"}}),La=new i.Keyframe("flipOutY",{from:{transform:"perspective(400px)"},"40%":{opacity:1,transform:"perspective(400px) rotate3d(0, 1, 0, -15deg)"},to:{opacity:0,transform:"perspective(400px) rotate3d(0, 1, 0, 90deg)"}}),Va=()=>({"&.flipInX":{animationFillMode:"both",backfaceVisibility:"visible !important",animationName:Fa},"&.flipInY":{animationFillMode:"both",backfaceVisibility:"visible !important",animationName:Ba}}),ka=()=>({"&.flipOutX":{animationFillMode:"both",backfaceVisibility:"visible !important",animationDuration:`${.3*.75}s !important`,animationName:Ta},"&.flipOutY":{animationFillMode:"both",backfaceVisibility:"visible !important",animationDuration:`${.3*.75}s !important`,animationName:La}}),Ka=new i.Keyframe("lightSpeedInLeft",{from:{opacity:0,transform:"translate3d(-100%, 0, 0) skewX(30deg)"},"60%":{opacity:1,transform:"skewX(-20deg)"},"80%":{transform:"skewX(5deg)"},to:{transform:"translate3d(0, 0, 0)"}}),Da=new i.Keyframe("lightSpeedInRight",{from:{opacity:0,transform:"translate3d(100%, 0, 0) skewX(-30deg)"},"60%":{opacity:1,transform:"skewX(20deg)"},"80%":{transform:"skewX(-5deg)"},to:{transform:"translate3d(0, 0, 0)"}}),Pa=new i.Keyframe("lightSpeedOutLeft",{from:{opacity:1},to:{opacity:0,transform:"translate3d(-100%, 0, 0) skewX(-30deg)"}}),Ha=new i.Keyframe("lightSpeedOutRight",{from:{opacity:1},to:{opacity:0,transform:"translate3d(100%, 0, 0) skewX(30deg)"}}),za=()=>({"&.lightSpeedInLeft":{animationFillMode:"both",animationTimingFunction:"ease-out",animationName:Ka},"&.lightSpeedInRight":{animationFillMode:"both",animationTimingFunction:"ease-out",animationName:Da}}),Wa=()=>({"&.lightSpeedOutLeft":{animationFillMode:"both",animationTimingFunction:"ease-in",animationName:Pa},"&.lightSpeedOutRight":{animationFillMode:"both",animationTimingFunction:"ease-in",animationName:Ha}}),Aa=new i.Keyframe("rollIn",{from:{opacity:0,transform:"translate3d(-100%, 0, 0) rotate3d(0, 0, 1, -120deg)"},to:{opacity:1,transform:"translate3d(0, 0, 0)"}}),ja=new i.Keyframe("rollOut",{from:{opacity:1},to:{opacity:0,transform:"translate3d(100%, 0, 0) rotate3d(0, 0, 1, 120deg)"}}),Xa=()=>({"&.rollIn":{animationFillMode:"both",animationName:Aa}}),Ya=()=>({"&.rollOut":{animationFillMode:"both",animationName:ja}}),_a=new i.Keyframe("rotateIn",{from:{opacity:0,transform:"rotate3d(0, 0, 1, -200deg)"},to:{opacity:1,transform:"translate3d(0, 0, 0)"}}),Ga=new i.Keyframe("rotateInDownLeft",{from:{opacity:0,transform:"rotate3d(0, 0, 1, -45deg)"},to:{opacity:1,transform:"translate3d(0, 0, 0)"}}),qa=new i.Keyframe("rotateInDownRight",{from:{opacity:0,transform:"rotate3d(0, 0, 1, 45deg)"},to:{opacity:1,transform:"translate3d(0, 0, 0)"}}),Ea=new i.Keyframe("rotateInUpLeft",{from:{opacity:0,transform:"rotate3d(0, 0, 1, 45deg)"},to:{opacity:1,transform:"translate3d(0, 0, 0)"}}),Za=new i.Keyframe("rotateInUpRight",{from:{opacity:0,transform:"rotate3d(0, 0, 1, -90deg)"},to:{opacity:1,transform:"translate3d(0, 0, 0)"}}),Qa=new i.Keyframe("rotateOut",{from:{opacity:1},to:{opacity:0,transform:"rotate3d(0, 0, 1, 200deg)"}}),Ja=new i.Keyframe("rotateOutDownLeft",{from:{opacity:1},to:{opacity:0,transform:"rotate3d(0, 0, 1, 45deg)"}}),Ua=new i.Keyframe("rotateOutDownRight",{from:{opacity:1},to:{opacity:0,transform:"rotate3d(0, 0, 1, -45deg)"}}),eo=new i.Keyframe("rotateOutUpLeft",{from:{opacity:1},to:{opacity:0,transform:"rotate3d(0, 0, 1, -45deg)"}}),to=new i.Keyframe("rotateOutUpRight",{from:{opacity:1},to:{opacity:0,transform:"rotate3d(0, 0, 1, 90deg)"}}),no=()=>({"&.rotateIn":{animationFillMode:"both",transformOrigin:"center",animationName:_a},"&.rotateInDownLeft":{animationFillMode:"both",transformOrigin:"left bottom",animationName:Ga},"&.rotateInDownRight":{animationFillMode:"both",transformOrigin:"right bottom",animationName:qa},"&.rotateInUpLeft":{animationFillMode:"both",transformOrigin:"left bottom",animationName:Ea},"&.rotateInUpRight":{animationFillMode:"both",transformOrigin:"right bottom",animationName:Za}}),ao=()=>({"&.rotateOut":{animationFillMode:"both",transformOrigin:"center",animationName:Qa},"&.rotateOutDownLeft":{animationFillMode:"both",transformOrigin:"left bottom",animationName:Ja},"&.rotateOutDownRight":{animationFillMode:"both",transformOrigin:"right bottom",animationName:Ua},"&.rotateOutUpLeft":{animationFillMode:"both",transformOrigin:"left bottom",animationName:eo},"&.rotateOutUpRight":{animationFillMode:"both",transformOrigin:"right bottom",animationName:to}}),oo=new i.Keyframe("slideInDown",{from:{transform:"translate3d(0, -100%, 0)",visibility:"visible"},to:{transform:"translate3d(0, 0, 0)"}}),io=new i.Keyframe("slideInLeft",{from:{transform:"translate3d(-100%, 0, 0)",visibility:"visible"},to:{transform:"translate3d(0, 0, 0)"}}),lo=new i.Keyframe("slideInRight",{from:{transform:"translate3d(100%, 0, 0)",visibility:"visible"},to:{transform:"translate3d(0, 0, 0)"}}),ro=new i.Keyframe("slideInUp",{from:{transform:"translate3d(0, 100%, 0)",visibility:"visible"},to:{transform:"translate3d(0, 0, 0)"}}),so=new i.Keyframe("slideOutDown",{from:{transform:"translate3d(0, 0, 0)"},to:{transform:"translate3d(0, 100%, 0)",visibility:"hidden"}}),co=new i.Keyframe("slideOutLeft",{from:{transform:"translate3d(0, 0, 0)"},to:{transform:"translate3d(-100%, 0, 0)",visibility:"hidden"}}),uo=new i.Keyframe("slideOutRight",{from:{transform:"translate3d(0, 0, 0)"},to:{transform:"translate3d(100%, 0, 0)",visibility:"hidden"}}),mo=new i.Keyframe("slideOutUp",{from:{transform:"translate3d(0, 0, 0)"},to:{transform:"translate3d(0, -100%, 0)",visibility:"hidden"}}),fo=()=>({"&.slideInDown":{animationFillMode:"both",animationName:oo},"&.slideInLeft":{animationFillMode:"both",animationName:io},"&.slideInRight":{animationFillMode:"both",animationName:lo},"&.slideInUp":{animationFillMode:"both",animationName:ro}}),go=()=>({"&.slideOutDown":{animationFillMode:"both",animationName:so},"&.slideOutLeft":{animationFillMode:"both",animationName:co},"&.slideOutRight":{animationFillMode:"both",animationName:uo},"&.slideOutUp":{animationFillMode:"both",animationName:mo}}),ho=new i.Keyframe("zoomIn",{from:{opacity:0,transform:"scale3d(0.3, 0.3, 0.3)"},"50%":{opacity:1}}),yo=new i.Keyframe("zoomInDown",{from:{opacity:0,transform:"scale3d(0.1, 0.1, 0.1) translate3d(0, -1000px, 0)",animationTimingFunction:"cubic-bezier(0.55, 0.055, 0.675, 0.19)"},"60%":{opacity:1,transform:"scale3d(0.475, 0.475, 0.475) translate3d(0, 60px, 0)",animationTimingFunction:"cubic-bezier(0.175, 0.885, 0.32, 1)"}}),po=new i.Keyframe("zoomInLeft",{from:{opacity:0,transform:"scale3d(0.1, 0.1, 0.1) translate3d(-1000px, 0, 0)",animationTimingFunction:"cubic-bezier(0.55, 0.055, 0.675, 0.19)"},"60%":{opacity:1,transform:"scale3d(0.475, 0.475, 0.475) translate3d(10px, 0, 0)",animationTimingFunction:"cubic-bezier(0.175, 0.885, 0.32, 1)"}}),bo=new i.Keyframe("zoomInRight",{from:{opacity:0,transform:"scale3d(0.1, 0.1, 0.1) translate3d(1000px, 0, 0)",animationTimingFunction:"cubic-bezier(0.55, 0.055, 0.675, 0.19)"},"60%":{opacity:1,transform:"scale3d(0.475, 0.475, 0.475) translate3d(-10px, 0, 0)",animationTimingFunction:"cubic-bezier(0.175, 0.885, 0.32, 1)"}}),Co=new i.Keyframe("zoomInUp",{from:{opacity:0,transform:"scale3d(0.1, 0.1, 0.1) translate3d(0, 1000px, 0)",animationTimingFunction:"cubic-bezier(0.55, 0.055, 0.675, 0.19)"},"60%":{opacity:1,transform:"scale3d(0.475, 0.475, 0.475) translate3d(0, -60px, 0)",animationTimingFunction:"cubic-bezier(0.175, 0.885, 0.32, 1)"}}),xo=new i.Keyframe("zoomOut",{from:{opacity:1},"50%":{opacity:0,transform:"scale3d(0.3, 0.3, 0.3)"},to:{opacity:0}}),So=new i.Keyframe("zoomOutDown",{"40%":{opacity:1,transform:"scale3d(0.475, 0.475, 0.475) translate3d(0, -60px, 0)",animationTimingFunction:"cubic-bezier(0.55, 0.055, 0.675, 0.19)"},to:{opacity:0,transform:"scale3d(0.1, 0.1, 0.1) translate3d(0, 2000px, 0)",animationTimingFunction:"cubic-bezier(0.175, 0.885, 0.32, 1)"}}),Ro=new i.Keyframe("zoomOutLeft",{"40%":{opacity:1,transform:"scale3d(0.475, 0.475, 0.475) translate3d(42px, 0, 0)"},to:{opacity:0,transform:"scale(0.1) translate3d(-2000px, 0, 0)"}}),wo=new i.Keyframe("zoomOutRight",{"40%":{opacity:1,transform:"scale3d(0.475, 0.475, 0.475) translate3d(-42px, 0, 0)"},to:{opacity:0,transform:"scale(0.1) translate3d(2000px, 0, 0)"}}),No=new i.Keyframe("zoomOutUp",{"40%":{opacity:1,transform:"scale3d(0.475, 0.475, 0.475) translate3d(0, 60px, 0)",animationTimingFunction:"cubic-bezier(0.55, 0.055, 0.675, 0.19)"},to:{opacity:0,transform:"scale3d(0.1, 0.1, 0.1) translate3d(0, -2000px, 0)",animationTimingFunction:"cubic-bezier(0.175, 0.885, 0.32, 1)"}}),Mo=()=>({"&.zoomIn":{animationFillMode:"both",animationName:ho},"&.zoomInDown":{animationFillMode:"both",animationName:yo},"&.zoomInLeft":{animationFillMode:"both",animationName:po},"&.zoomInRight":{animationFillMode:"both",animationName:bo},"&.zoomInUp":{animationFillMode:"both",animationName:Co}}),Io=()=>({"&.zoomOut":{animationFillMode:"both",animationName:xo},"&.zoomOutDown":{animationFillMode:"both",transformOrigin:"center bottom",animationName:So},"&.zoomOutLeft":{animationFillMode:"both",transformOrigin:"left center",animationName:Ro},"&.zoomOutRight":{animationFillMode:"both",transformOrigin:"right center",animationName:wo},"&.zoomOutUp":{animationFillMode:"both",transformOrigin:"center bottom",animationName:No}}),Oo=e=>({[e.componentCls]:{"&-enter":{background:"transparent",animationDuration:".3s !important",...An(),...ea(),...$a(),...Va(),...za(),...no(),...Xa(),...Mo(),...fo()},"&-leave":{display:"none",background:"transparent",animationDuration:".3s !important",...jn(),...ta(),...va(),...ka(),...Wa(),...ao(),...Ya(),...Io(),...go()}}});function $o(e){return i.useStyle("LayoutPageTranstion",n=>{const a=i.mergeToken(n);return[Oo(a)]},e)}const vo=t.defineComponent({name:"PageTransition",props:{disabled:{type:Boolean,default:!1},reverse:{type:Boolean,default:!0},name:{type:String,default:"bounce"},direction:String},setup(e,{slots:n}){const a=d.getPrefixCls({suffixCls:"page-transition",isPor:!0}),{wrapSSR:o,hashId:c}=$o(a),r=(h,y)=>{if(h.length===0||h==="x"||h==="y")return h;let p=y.indexOf(h);return p=p%2===1?p-1:p+1,y[p]},s=h=>{const y=wt.preset.find(b=>e.name===b.name);if(y===void 0)return"";let p="";e.direction===void 0?p=y.directions[0]:p=y.directions.find(b=>b===e.direction)||"",p=p===void 0||p==="default"?"":p,p!==""&&(p=h&&e.reverse?r(p,y.directions):p,p=p[0].toUpperCase()+p.substring(1));const B=h?"Out":"In";return y.name+B+p},f=t.computed(()=>[s(!1),`${a}-enter`,c.value].join(" ")),N=t.computed(()=>[s(!0),`${a}-leave`,c.value].join(" "));return()=>e.disabled?n.default?.():o(t.createVNode(t.Transition,{enterActiveClass:f.value,leaveActiveClass:N.value},{default:()=>[n.default?.()]}))}});function Fo(e){const n=ne.useRoute(),a=ne.useRouter(),o=()=>e.value?.tabsComRef();return{tabsRouter:{clean:()=>o()?.clean(),close:c=>o()?.close(c?.name||n.name,c?.callback),change:(c,r)=>o()?.change(r||a.currentRoute.value,{type:"merge",params:c})}}}function Bo(e){const n=ne.useRouter(),a=e?.defaultOpen??!0,o=e?.autoClose??!0,c=n.getRoutes(),r=t.ref([]),s=t.reactive({menuMap:new Map,levelMenuData:[]}),f=t.reactive({openKeys:[],selectedKeys:[]}),N=t.computed(()=>n.currentRoute.value),h=b=>{const l=Ee(Ze(b));r.value=A.cloneDeep(l.menuData),s.menuMap=l.menuMap,s.levelMenuData=l.getLevel()};e?.menuData&&t.isRef(e.menuData)&&t.watch(()=>e.menuData.value,b=>h(b),{deep:!0}),h(e?.menuData?t.isRef(e.menuData)?e.menuData.value:e.menuData:c);const y=t.computed(()=>Fe({menuData:r.value,menuMap:s.menuMap,levelMenuData:s.levelMenuData},{path:N.value.path,name:N.value.name})),p=t.computed(()=>{const b=y.value.map(l=>{const S=$e(l.meta?.hideChildrenInMenu?[]:l.children||[]);return{name:l.name,icon:l.meta?.icon,path:l.redirect||S||l.path||"",breadcrumbName:l.meta?.title||""}}).filter(l=>l.breadcrumbName);return tt(b,"breadcrumbName")}),B=()=>{f.openKeys=y.value.filter(b=>b.name!==N.value.name).map(b=>b.name)};return t.watch(()=>N.value,b=>{b&&(f.selectedKeys=y.value.map(l=>l.name),o&&B())},{immediate:!0,deep:!0}),t.onMounted(()=>{a&&B()}),an({...t.toRefs(s),menuData:r,matchedMenu:y,matchedKeys:f}),{menuState:s,menuData:r,matchedKeys:f,matchedMenu:y,breadcrumbRouters:p}}g.BaseMenu=Me,g.GProLayout=In,g.GlobalFooter=at,g.LazyIcon=ye,g.PageContainer=Wt,g.PageTransition=vo,g.ProAppPage=vn,g.SiderMenuWrapper=gt,g.animateSetting=wt,g.baseMenuProps=Ye,g.calculateCss=pe,g.checkMenuDark=fe,g.clearMenuItem=Ze,g.colorList=Bt,g.coverToNewToken=Ie,g.cssValueToNumber=Le,g.darkThemeProps=lt,g.defaultContextKey=Ae,g.defaultSettings=z,g.extractCSSVariableName=Te,g.filterTree=Ue,g.findLastKey=ve,g.flatMap=Qe,g.getCssVarOrUnit=J,g.getCssVariableValue=Be,g.getLastPath=$e,g.getLayoutTheme=we,g.getMatchedList=Fe,g.getMenuData=Ee,g.getMenuFirstChildren=Je,g.getTokenLayoutTheme=Q,g.handlePathKey=Oe,g.hasDarkValue=yt,g.layout=et,g.provideProLayoutContext=je,g.removeDuplicatesByName=tt,g.toggleLayoutTheme=on,g.useDarkTheme=ht,g.useLayoutMenu=Bo,g.useProLayout=Fo,g.useProLayoutContext=G,g.useProLayoutMenuContext=Se,Object.defineProperty(g,Symbol.toStringTag,{value:"Module"})}));
|
|
31
|
+
}`;function tt(e,n){const a=new Set;return e.filter(o=>a.has(o[n])?!1:(a.add(o[n]),!0))}const Ve={collapsedType:{type:[Object,Boolean,String],default:"fixed"},collapsed:Boolean,collapsedWidth:{type:Number,default:64},collapsedButtonRender:{type:[Function,Object,Boolean],default:()=>{}},collapsedIconRender:{type:[Function,Object,Boolean],default:()=>{}},onCollapse:{type:Function}},be={logo:{type:[Object,String,Function],default:()=>{}},logoStyle:{type:Object,default:()=>{}},logoRender:{type:[Object,Function,Array,Boolean],default:()=>{}},onLogoClick:Function},At={...A.pick(ge,["title","layout"]),...be},ke={...be,...Ve,...he,suppressSiderWhenMenuEmpty:{type:Boolean,default:!0},breakpoint:{type:[Object,Boolean],default:()=>!1},appsLogoComponents:{type:[Object,Function,Boolean],default:()=>{}},siderActionsRender:{type:[Function,Object,Array],default:()=>{}},menuLinksRender:{type:[Function,Object,Array],default:()=>{}},menuFooterRender:{type:[Function,Object,Boolean],default:()=>{}},menuContentRender:{type:[Function,Object,Boolean],default:()=>{}},menuHeaderRender:{type:[Function,Object,Boolean],default:()=>{}}},jt=e=>({[e.componentCls]:{marginBlock:0,marginBlockStart:48,marginBlockEnd:24,marginInline:0,paddingBlock:0,paddingInline:16,textAlign:"center","&-links":{marginBottom:8,a:{color:e.colorTextSecondary,textDecoration:e.linkDecoration,"&:hover":{color:e.colorPrimary}},"a:not(:last-child)":{marginInlineEnd:40}},"&-copyright":{fontSize:"14px",color:e.colorTextSecondary,a:{color:e.colorTextSecondary,textDecoration:e.linkDecoration}}}}),nt=[{key:"Ant Design Pro",title:"Ant Design Pro",href:"https://pro.ant.design",blankTarget:!0},{key:"github",title:t.createVNode(K.GithubOutlined,null,null),href:"https://github.com/gx12358/vue3-antd-admin",blankTarget:!0},{key:"Ant Design Vue",title:"Ant Design Vue",href:"https://next.antdv.com/components/overview-cn/",blankTarget:!0}],at=t.defineComponent({name:"GlobalFooter",props:{links:{type:[Array,Boolean],default:nt},copyright:{type:[Object,Function,Boolean,String],default:"********"}},setup(e){const o=(G()?.getPrefixCls||d.getPrefixCls)({suffixCls:"global-footer",isPor:!0}),{wrapSSR:c,hashId:r}=i.useProStyle("ProLayoutFooter",[jt],o);return()=>c(t.createVNode(v.LayoutFooter,{style:{padding:0}},{default:()=>[t.createVNode("div",{class:[o,r.value]},[e.links&&t.createVNode("div",{class:`${o}-links ${r.value}`},[e.links.map(s=>t.createVNode("a",{key:s.key,title:s.key,target:s.blankTarget?"_blank":"_self",href:s.href},[s.title]))]),e.copyright&&t.createVNode("div",{class:`${o}-copyright ${r.value}`},[t.createTextVNode("Copyright "),$t().format("YYYY"),t.createTextVNode(" "),t.createVNode("a",{href:"https://beian.miit.gov.cn/"},[e.copyright])])])]}))}}),Ce={...be,...he,...Ve,autoHideHeader:Boolean,headerMainWidth:{type:[Number,String],default:void 0},headerRender:{type:[Object,Function,Boolean],default:()=>{}},headerContentRender:{type:[Object,Function,Boolean],default:()=>{}},appsLogoComponents:{type:[Object,Function,Boolean],default:()=>{}},extraRightDropdownRender:{type:[Object,Function,Boolean],default:()=>{}},rightContentRender:{type:[Object,Function,Boolean],default:()=>{}}},Xt={visible:{type:Boolean,default:void 0},type:{type:String,default:"button"},destroyOnHide:{type:Boolean,default:!1},storage:{type:Boolean,default:!0},itemRender:{type:[Function,Boolean,Object,Array],default:()=>{}}},ot={onReloadPage:{type:Function},onTabsChange:{type:Function,default:void 0},"onUpdate:tabs":{type:Function}},it={...Xt,loading:{type:Boolean,default:void 0},fixedTabsBar:ge.fixedTabsBar,...ot},lt={dark:{type:[Boolean,String],default:void 0},onDarkChange:Function,"onUpdate:dark":Function},xe={...{id:String,class:String,style:{type:Object,default:()=>({})}},...lt,...ke,...Ce,...ot,...he,...Xe,settings:{type:Object,default:()=>z},menu:{type:Object,default:()=>Tt},route:{type:Object,default:()=>[]},tabsRoute:{type:Object,default:()=>({})},pageContainer:{type:Object},pure:Boolean,token:Object,cssVar:{type:Array,default:()=>[]},waterMark:{type:[Boolean,Object],default:()=>{}},layoutStyle:{type:Object,default:()=>({sider:{},header:{},content:{}})},disableMobile:{type:Boolean},breadcrumb:[Object,Function],isChildrenLayout:Boolean,loading:Boolean,footerLinks:{type:[Array,Boolean],default:nt},pageLockRender:{type:[Object,Function,Boolean,String],default:void 0},copyrightRender:{type:[Object,Function,Boolean,String],default:()=>{}},footerRender:{type:[Object,Function,Boolean,String],default:()=>{}},onContentFullScreenChange:le.onContentFullScreenChange};function Yt(){return t.createVNode(K.ArrowLeftOutlined,null,null)}const _t=e=>{const n=e.layout?.sider;return{[e.componentCls]:{position:"absolute",insetBlockStart:18,zIndex:101,width:24,height:24,fontSize:["14px","16px"],textAlign:"center",borderRadius:"40px",insetInlineEnd:-13,transition:"all 0.3s",display:"flex",alignItems:"center",justifyContent:"center",cursor:"pointer",color:n?.colorTextCollapsedButton,backgroundColor:i.getProSolidColor(e,n?.colorBgCollapsedButton||""),boxShadow:"0 2px 8px -2px rgba(0,0,0,0.05), 0 1px 4px -1px rgba(25,15,15,0.07), 0 0 1px 0 rgba(0,0,0,0.08)","&:hover":{color:n?.colorTextCollapsedButtonHover,boxShadow:"0 4px 16px -4px rgba(0,0,0,0.05), 0 2px 8px -2px rgba(25,15,15,0.07), 0 1px 2px 0 rgba(0,0,0,0.08)"},".anticon":{fontSize:"14px"},"& > .anticon":{transition:"transform 0.3s"},"&-collapsed":{"& > .anticon":{transform:"rotate(-180deg)"}}}}},rt=(e,n,a)=>e!==!1?typeof e=="function"?e(n,a):e||a:a,Ke=e=>e.iconRender?typeof e?.iconRender=="function"?e?.iconRender():e.iconRender:e.collapsed?t.createVNode(K.MenuUnfoldOutlined,null,null):t.createVNode(K.MenuFoldOutlined,null,null),Gt=t.defineComponent({name:"CollapsedIcon",inheritAttrs:!1,props:{isMobile:Boolean,collapsed:xe.collapsed,onClick:Function,iconRender:Ve.collapsedIconRender},setup(e){const{getPrefixCls:n}=G(),a=n({suffixCls:"collapsed-button",isPor:!0}),{wrapSSR:o,hashId:c}=i.useProStyle("SiderMenuCollapsedIcon",[_t],a);return()=>o(t.createVNode("div",{class:d.classNames(a,c.value,{[`${a}-collapsed`]:e.collapsed,[`${a}-is-mobile`]:e.isMobile}),onClick:r=>e.onClick?.(r)},[Ke({collapsed:e.collapsed,iconRender:e.iconRender?e.iconRender:()=>t.createVNode(Yt,null,null)})]))}}),st=(e,n)=>e===!1?null:typeof e=="string"?t.createVNode("img",{src:e,alt:"logo",style:n},null):typeof e=="function"?e():e,qt=(e,n)=>t.createVNode("span",{key:"logo",onClick:()=>n.onLogoClick?.(),class:e},[t.createVNode("a",null,[st(n.logo,n.logoStyle)])]),Et=(e,n)=>e===!1?null:e?e({logo:n,title:null}):n,Zt=e=>{const{logo:n,logoStyle:a,title:o,layout:c,collapsed:r,collapsedWidth:s}=e,f=e.logoRender;if(f===!1)return null;const N=st(n,a),h=o&&t.createVNode("h1",null,[o]);return typeof f=="function"?f({logo:N,title:e.collapsed?null:h,props:e}):f||t.createVNode(t.Fragment,null,[(r&&s||!r)&&(N||null),e.collapsed&&(c==="side"||c==="simple")?null:h])},De=t.defineComponent({name:"LogoContent",props:{...At,hashId:String,baseClassName:String},setup(e,{slots:n}){const{collapsed:a,settings:o,collapsedWidth:c}=G();return()=>t.createVNode("div",{id:"logo",class:{[`${e.hashId}`]:!0,[`${e.baseClassName}-logo`]:!0,[`${e.baseClassName}-logo-collapsed`]:d.convertValueBoolean(a.value)},onClick:()=>e.onLogoClick?.()},[t.createVNode("a",{key:"title"},[Zt({...e,title:e.title||o.value.title,collapsed:a.value,collapsedWidth:c.value})||null]),n.default?.()])}});De.inheritAttrs=!1;const Pe=e=>({paddingInline:6,paddingBlock:6,lineHeight:"16px",fontSize:16,cursor:"pointer",borderRadius:e.borderRadius,transition:`color ${e.motionDurationMid}, background-color ${e.motionDurationMid}`,"&:hover":{background:i.getProSolidColor(e,e.colorBgTextHover)}}),Qt=e=>({[e.componentCls]:{display:"flex",flexDirection:"column",width:"100%",minHeight:"100vh"}}),Jt=e=>{const{layout:n}=Q(e),a=e.layout?.pageContainer;return{[e.componentCls]:{backgroundColor:e.colorBgLayout,[`${e.antCls}-card`]:{backgroundColor:i.getProSolidColor(e,e.colorBgContainer)},a:{color:e.colorPrimary,"&:hover":{color:e.colorPrimaryHover}},[`${e.antCls}-menu-submenu-title`]:{[`${e.proComponentsCls}-menu-item-badge`]:{right:40}},[`${e.componentCls}-container`]:{position:"relative",width:"100%",display:"flex",flexGrow:1,flexDirection:"column",minWidth:0,minHeight:0,backgroundColor:"transparent",[`&${e.componentCls}-container-has-silder`]:{marginInlineStart:n==="wide"?a?.paddingInlinePageContainerContent:0}}}}},ct=new i.Keyframe("pro-layout-title-hide",{"0%":{display:"none",opacity:0},"80%":{overflow:"hidden"},"100%":{display:"unset",opacity:1}}),dt=()=>({display:"flex",alignItems:"center",justifyContent:"space-between",paddingBlock:4,paddingInline:8,marginInline:0}),Ut=e=>{const n=fe(e,"sider"),{layout:a}=Q(e),o=e.layout?.pageContainer;return{[`${e.proComponentsCls}-basic-layout`]:{[`&${e.proComponentsCls}-basic-layout-wide`]:{[e.componentCls]:{position:"sticky",zIndex:100,borderRadius:o?.borderRadius}},[e.componentCls]:{position:"relative",borderRight:0,zIndex:9,"&-menu":{position:"relative",zIndex:10,minHeight:"100%","&-icon":{verticalAlign:"unset"},"&-container":{borderRadius:a==="wide"?o?.borderRadius:"unset","&::-webkit-scrollbar":{width:6,height:6},"&::-webkit-scrollbar-thumb":{backgroundColor:"rgba(0, 0, 0, 0.2)",borderRadius:"1em"},"&::-webkit-scrollbar-track":{background:"hsla(0, 0%, 100%, 0.15)",borderRadius:"1em"}}},[`& ${e.antCls}-layout-sider-children`]:{position:"relative",display:"flex",flexDirection:"column",height:"100%",paddingBlock:0},"&-extra":{padding:a==="wide"?e.padding:void 0,paddingBlockEnd:a==="wide"?e.paddingSM:void 0,borderBlockEnd:a==="wide"?`1px solid ${e.colorSplit}`:void 0,marginBlockEnd:a==="wide"?e.margin:void 0},"&-content":{position:"relative",display:"flex",flexDirection:"column",height:"100%"},"&-links":{width:"100%",ul:{height:"auto"},[`+${e.proComponentsCls}-sider-actions`]:{borderBlockStart:0}},"&-link-menu":{border:"none",boxShadow:"none",background:"transparent"},"&-actions":{...dt(),color:n?We.getAlphaColor("#fff",.85):e.colorTextBase,"&-item":Pe(e)},"&-collapsed-button":{flexDirection:"row-reverse",...dt(),"&.collapsed":{flexDirection:"none",justifyContent:"center"},"&>:first-child":Pe(e)},"&-footer":{paddingBlockEnd:16,fontSize:e.fontSize,animationName:ct,animationDuration:".4s",animationTimingFunction:"ease"}},[`${e.componentCls}${e.componentCls}-fixed`]:{position:"fixed",insetBlockStart:0,insetInlineStart:0,zIndex:"100",height:"100%","&-mix":{height:`calc(100% - ${e.layout?.header?.heightLayoutHeader||z.headerHeight}px)`,insetBlockStart:`${e.layout?.header?.heightLayoutHeader||z.headerHeight}px`}}}}},ut=e=>{const{theme:n,layout:a}=Q(e),o=e.layout?.sider;return{[`${e.componentCls}-logo`]:{position:"relative",display:"flex",alignItems:"center",justifyContent:"space-between",cursor:"pointer",paddingInline:a==="wide"?0:12+(a==="side"?8:0),paddingBlock:a==="wide"?0:16,color:e.colorText,"> a":{display:"flex",alignItems:"center",justifyContent:"center",minHeight:22,fontSize:22,"> img":{display:"inline-block",height:22,verticalAlign:"middle"},"> h1":{display:"inline-block",height:22,marginBlock:0,marginInlineEnd:0,marginInlineStart:8,color:n==="dark"?e.colorWhite:o?.colorTextMenuTitle,animationName:ct,animationDuration:".4s",animationTimingFunction:"ease",fontWeight:600,fontSize:16,lineHeight:"22px",verticalAlign:"middle"}},"&-collapsed":{flexDirection:"column-reverse",margin:0,padding:12,[`${e.proComponentsCls}-layout-app-icon`]:{marginBlockEnd:8,fontSize:16,transition:"font-size 0.2s ease-in-out,color 0.2s ease-in-out"}},[`&${e.antCls}-layout-sider-collapsed`]:{[`${e.proComponentsCls}-sider-logo`]:{padding:"16px 8px"}}}}},en=e=>{const n=`${e.antCls}-menu`,a=`${e.proComponentsCls}-menu-item`,{layout:o}=Q(e),c=e?.layout?.sider;return{[`${e.proComponentsCls}-basic-layout`]:{[`${e.proComponentsCls}-sider`]:{[`${n}${n}-root`]:{...i.calcUnit(c?.paddingMenu,"padding"),[`${e.proComponentsCls}-menu-item-badge`]:{position:"absolute",right:e.marginXS,top:"50%",transform:"translateY(-50%)",[`${e.antCls}-scroll-number`]:{transform:"none"}},[`${n}-item,${n}-submenu-title`]:{...o==="wide"&&{width:"100%"},height:c?.menuItemHeight,lineHeight:i.unit(c?.menuItemHeight),[`${n}-title-content`]:{position:"relative"}},[`&:not(${n}-inline-collapsed)`]:{[`${n}-item`]:{...i.calcUnit(c?.paddingMenuItem,"padding"),...i.calcUnit(c?.marginMenuItem,"margin")},[`${n}-submenu-title`]:{...i.calcUnit(c?.paddingSubMenu,"padding"),...i.calcUnit(c?.marginSubMenu,"margin")}},[`${n}-submenu`]:{[`${n}${n}-sub`]:{[`${n}-item`]:{...i.calcUnit(c?.paddingSubMenuItem,"padding"),...i.calcUnit(c?.marginSubMenuItem,"margin")}}},[`${n}-item:last-child`]:o==="wide"?{marginBottom:e.marginXXS}:{},[`${a}-title:not(${a}-title-no-icon)`]:{fontWeight:o==="wide"?500:"normal"},[`${n}-item-selected ${a}-title:not(${a}-title-no-icon)`]:{fontWeight:"normal"},[`${n}-item a`]:{transition:"none"}}}}}},tn=e=>({[`${e.proComponentsCls}-basic-layout`]:{[`${e.antCls}-menu`]:{[`${e.proComponentsCls}-menu-item-icon${e.antCls}-menu-item-icon`]:{verticalAlign:"unset",lineHeight:1,fontSize:e.fontSizeLG}}}});function mt(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!t.isVNode(e)}const{Sider:nn}=v.Layout,ft=t.defineComponent({props:ke,inheritAttrs:!1,setup(e){const{getPrefixCls:n,isMobile:a,layoutProps:o,selectedKeys:c,settings:r,openKeys:s,menuProps:f,layoutStyle:N,contentFullScreen:h}=G(),y=se.useProAppContext(),{token:p}=i.useProConfigContext(),{breakpoint:B,collapsed:b,collapsedWidth:l}=t.toRefs(e),{layout:S,fixedHeader:$,splitMenus:w,fixSiderbar:V}=t.toRefs(r.value),M=n({suffixCls:"sider",isPor:!0}),X=t.computed(()=>S.value==="mix"&&!a.value&&w.value),C=t.computed(()=>S.value==="side"||S.value==="simple"),D=t.computed(()=>a.value||o.value.isWide?!1:V.value),Y=t.computed(()=>(S.value==="mix"||o.value.isWide)&&"light"||f.value.baseTheme),{wrapSSR:m,hashId:x}=i.useProStyle("ProLayoutSiderMenu",[tn,en,Ut,ut,W=>{const _=W?.layout?.sider,H=i.getDefaultLayoutToken("sider",W,W.layout?.key),{dark:ee}=Q(W),re=fe(W,"sider");return{[`${W.proComponentsCls}-basic-layout`]:{[W.componentCls]:{background:_?.colorBgMenu||H?.colorBgMenu,boxShadow:re||ee?"#0d0d0da6 0 2px 8px":"2px 0 8px 0 rgba(29,35,41,.05)",[`${W.componentCls}-footer`]:{color:_?.colorTextMenu}}}}}],M),P=t.computed(()=>S.value==="top"?[]:f.value.menuData),U=t.computed(()=>e.collapsed?i.unit(l.value):o.value.siderWidth),F=t.computed(()=>d.classNames([x.value,M,a.value?"shadow":null,`${M}-${f.value.theme}`,D.value?`${M}-fixed`:null])),q=ie.useMemo(()=>S.value==="simple"||!e.appsLogoComponents?null:typeof e.appsLogoComponents=="function"?e.appsLogoComponents?.():e.appsLogoComponents,[()=>e.appsLogoComponents]);function E(){e.onCollapse&&e.onCollapse?.(!b.value)}const Z=ie.useMemo(()=>{if(e.collapsedButtonRender===!1)return null;const W=e.collapsedIconRender,_=e.collapsedButtonRender,H=t.createVNode(Gt,{iconRender:W,isMobile:a.value,collapsed:b.value,onClick:()=>E()},null);return _?_?.(!!b.value,H):H},[()=>e.collapsedButtonRender,()=>a.value,()=>e.collapsed]),ae=W=>{if(e.onSelect){const _=W.selectedKeys;if(t.unref(X)){e.onSelect([c?.value?.[0],..._]);return}e.onSelect(_)}};return()=>{let W;const _=C.value&&S.value!=="simple"&&t.createVNode(De,t.mergeProps({title:r.value.title,hashId:x.value,layout:S.value,baseClassName:M},A.pick(e,Object.keys(be))),{default:()=>[q.value]}),H=e.menuHeaderRender&&e.menuHeaderRender?.(e),ee=e.menuLinksRender,re=e.siderActionsRender,de=t.createVNode(Me,{class:`${M}-menu ${x.value}`,theme:Y.value,mode:"inline",menuData:X.value?f.value.flatMenuData:P.value,iconfontUrl:r.value.iconfontUrl,openKeys:s.value,selectedKeys:c.value,menuItemRender:e.menuItemRender,subMenuItemRender:e.subMenuItemRender,style:{width:"100%"},onOpenKeys:te=>e.onOpenKeys&&e.onOpenKeys?.(te),onSelect:ae},null);return X.value&&t.unref(f.value.flatMenuData).length===0&&e.suppressSiderWhenMenuEmpty||P.value.length===0&&e.suppressSiderWhenMenuEmpty?null:m(t.createVNode(v.ConfigProvider,{theme:{components:{Menu:Ie({token:p?.value||{},staticToken:d.deepMerge({radiusItem:4,colorActiveBarWidth:0,colorActiveBarHeight:0,colorActiveBarBorderSize:0},p?.value?.Menu||{}),dark:f.value.baseTheme==="dark",type:"sider"})}}},{default:()=>[D.value&&t.createVNode("div",{style:{width:`${i.unit(U.value)}`,overflow:"hidden",flex:`0 0 ${i.unit(U.value)}`,maxWidth:`${i.unit(U.value)}`,minWidth:`${i.unit(U.value)}`,transition:"all 0.2s ease 0s"}},null),t.createVNode(nn,{collapsible:!0,trigger:null,class:F.value,style:{zIndex:D.value?101:void 0,paddingTop:D.value&&$.value&&S.value==="mix"||D.value&&S.value==="simple"?o.value.headerHeight:0,top:S.value==="wide"?pe(o.value.headerHeight,20):void 0,height:S.value==="wide"?`calc(100vh - ${pe(o.value.headerHeight,40)})`:void 0,...N.value?.sider||{}},theme:Y.value,breakpoint:B.value||void 0,collapsed:b.value,width:Le(o.value.siderWidth),collapsedWidth:l.value},{default:()=>[f.value.loading&&t.createVNode("div",{class:[`${M}-loading`,x.value]},[t.createVNode(v.Spin,{spinning:f.value.loading,indicator:y?.indicator?.value},null)]),_||null,t.createVNode("div",{class:`${M}-content`,style:{flex:"1 1 0%",overflow:"hidden"}},[d.convertValueBoolean(e.menuHeaderRender)&&t.createVNode("div",{class:d.classNames([x.value,`${M}-extra`,!_&&`${M}-extra-no-logo`])},[H]),t.createVNode("div",{style:{flex:"1 1 0%",overflow:"hidden auto"},class:d.classNames(`${M}-menu-container`)},[e.menuContentRender&&e.menuContentRender?.(e,de)||de])]),S.value!=="wide"&&t.createVNode(t.Fragment,null,[ee&&d.isArray(ee)&&ee.length>0&&t.createVNode("div",{class:`${M}-links ${x.value}`},[t.createVNode(v.Menu,{theme:Y.value,inlineIndent:16,class:`${M}-link-menu ${x.value}`,selectedKeys:[],openKeys:[],mode:"inline"},mt(W=(ee||[]).map((te,Re)=>t.createVNode(v.Menu.Item,{class:`${M}-link ${x.value}`,key:Re},mt(te)?te:{default:()=>[te]})))?W:{default:()=>[W]})]),a.value?null:re&&t.createVNode("div",{class:d.classNames(`${M}-actions`,x.value)},[re]),e.collapsedType==="sider"&&!a.value&&t.createVNode(t.Fragment,null,[t.createVNode("div",{class:d.classNames(`${M}-collapsed-button`,b.value&&"collapsed",x.value)},[t.createVNode("span",{onClick:()=>E()},[rt(e.collapsedButtonRender,!!b.value,Ke({collapsed:b.value,iconRender:e.collapsedIconRender}))])])])]),e.menuFooterRender&&t.createVNode("div",{class:`${M}-footer ${x.value}`},[e.menuFooterRender?.(e)]),h.value||S.value==="wide"?null:e.collapsedType==="fixed"&&Z.value]})]}))}}}),gt=t.defineComponent({name:"SiderMenuWrapper",inheritAttrs:!1,props:{...ke,isMobile:Boolean,siderWidth:ge.siderWidth},setup(e){return()=>{const n=A.omit(e,["siderWidth","isMobile"]);return t.createVNode(t.Fragment,null,[e.isMobile?t.createVNode(v.Drawer,{maskClosable:!0,open:!e.collapsed,closable:!1,placement:"left",style:{padding:0,height:"100vh"},getContainer:!1,onClose:()=>e.onCollapse&&e.onCollapse(!0),width:Le(e.siderWidth),bodyStyle:{height:"100vh",padding:0,display:"flex",flexDirection:"row"}},{default:()=>[t.createVNode(ft,t.mergeProps(n,{collapsed:e.isMobile?!1:e.collapsed}),null)]}):t.createVNode(ft,n,null)])}}}),{provideContext:an,useInjectContext:Se}=i.useContext("pro-layout-menu");function ht(e,{change:n}){const{system:a}=me.useColorMode(),[o,c,r]=ie.useMergedState("system",{value:t.computed(()=>yt(e.value)?e.value:"system"),onChange:f=>{n?.(f)}});return{isDark:t.computed(()=>r.value==="system"?a.value==="dark":r.value),dark:r,toggleMode:c}}function yt(e){return d.isBoolean(e)||e==="system"}function on({event:e,isDark:n,value:a,toggle:o}){if(!(document.startViewTransition&&!window.matchMedia("(prefers-reduced-motion: reduce)").matches)||!e||e&&!e.clientX){o?.(d.isBoolean(a)||a==="system"?a:!n?.value);return}const r=e.clientX,s=e.clientY,f=Math.hypot(Math.max(r,innerWidth-r),Math.max(s,innerHeight-s));document.startViewTransition(async()=>{o?.(d.isBoolean(a)||a==="system"?a:!n?.value),await t.nextTick()}).ready.then(()=>{const h=[`circle(0px at ${r}px ${s}px)`,`circle(${f}px at ${r}px ${s}px)`];document.documentElement.animate({clipPath:n?.value?[...h].reverse():h},{duration:450,easing:"ease-in",pseudoElement:n?.value?"::view-transition-old(root)":"::view-transition-new(root)"})})}const ln=e=>{const{layout:n}=Q(e);return{[`${e.proComponentsCls}-header`]:{"&-light":{[`${e.componentCls}-logo`]:{h1:{color:e.colorBgSpotlight}}}},[e.componentCls]:{position:"relative",background:"transparent",display:"flex",marginBlock:0,paddingInline:16,width:"100%",height:"100%",boxShadow:"0 1px 4px rgba(0,21,41,.12)","&-mix":{display:"flex",alignItems:"center"},"&-wide":{padding:0,[`${e.componentCls}-main`]:{margin:"0 auto"}},"&-main":{display:"flex",width:"100%",height:"100%","&-left":{display:"flex",alignItems:"center",[`${e.proComponentsCls}-layout-app-icon`]:{marginInlineEnd:16},[`${e.componentCls}-collapsed-button`]:{...Pe(e)}}},"&-menu":{[`${e.proComponentsCls}-menu-item-badge`]:{position:"relative",top:"-0.1em",marginInlineStart:12,[`${e.antCls}-scroll-number`]:{transform:"none"}}},"> a":{height:"100%"},"> *":{height:"100%"},[`${e.proComponentsCls}-layout-apps-icon`]:{marginInlineEnd:16},"&-collapsed-button":{display:"flex",alignItems:"center",fontSize:"20px",marginInlineEnd:"16px"},"&-logo":{marginInlineEnd:n==="wide"?void 0:"16px",a:{display:"flex",alignItems:"center",height:"100%",minHeight:"22px",fontSize:"20px"},img:{height:"28px"},h1:{marginBlock:0,marginInline:0,marginInlineStart:12,fontWeight:"500",color:e.colorWhite,fontSize:16}},"&-logo-mobile":{minWidth:"24px",marginInlineEnd:0}}}},rn=["mix","top","wide"],sn=t.defineComponent({props:Ce,setup(e){return()=>e.rightContentRender&&typeof e.rightContentRender=="function"?e.rightContentRender(e):t.createVNode(t.Fragment,null,null)}}),cn=t.defineComponent({props:Ce,inheritAttrs:!1,setup(e,{emit:n}){const a=ne.useRouter(),o=Se(),{token:c}=i.useProConfigContext(),{getPrefixCls:r,settings:s,isMobile:f,openKeys:N,selectedKeys:h,menuProps:y,breadcrumb:p,breadcrumbRender:B}=G(),{layout:b,splitMenus:l}=t.toRefs(s.value),S=r({suffixCls:"global-header",isPor:!0}),{wrapSSR:$,hashId:w}=i.useProStyle("ProGlobalHeader",[ln,ut],S),V=t.computed(()=>b.value==="side"||b.value==="simple"),M=t.computed(()=>V.value&&"light"||y.value.baseTheme),X=t.computed(()=>({[`${w.value}`]:!0,[`${S}`]:!0,[`${S}-${b.value}`]:!0})),C=t.computed(()=>l.value&&b.value==="mix"?Qe(A.cloneDeep(y.value.menuData)):b.value==="top"?y.value.menuData:[]),D=(x,P,U)=>{const F=a.currentRoute.value,q=b.value==="mix",E=o?.matchedMenu?.value||Fe({menuData:C.value,levelMenuData:y.value.levelMenuData},{path:Oe(F),name:F.name});if(e.onSelect&&x==="select"){const Z=C.value.find(ae=>ae.name===U)?.redirect;e.onSelect(q&&Z?E.map(ae=>ae.name):P)}e.onOpenKeys&&x==="openKeys"&&e.onOpenKeys(q?E.filter(Z=>Z.name!==F.name).map(Z=>Z.name):P)},Y=()=>{n("collapse",!e.collapsed)},m=()=>{const x=e.headerContentRender!==!1&&typeof e.headerContentRender=="function"?t.createVNode("div",{style:{flex:1}},[e.headerContentRender?.(e)]):t.createVNode("div",{style:{flex:1},class:[`${S}-menu`,w.value]},[C.value?.length>0&&t.createVNode(v.ConfigProvider,{theme:{components:{Layout:{headerBg:"transparent",bodyBg:"transparent"},Menu:Ie({token:c?.value||{},staticToken:d.deepMerge({radiusItem:4,colorActiveBarWidth:0,colorActiveBarHeight:2,colorActiveBarBorderSize:0,horizontalItemBorderRadius:4},c?.value?.Menu||{}),dark:y.value.baseTheme==="dark",type:"header"})}}},{default:()=>[t.createVNode(Me,{theme:M.value,mode:"horizontal",menuData:C.value,openKeys:N.value,selectedKeys:h.value,iconfontUrl:s.value?.iconfontUrl,menuItemRender:e.menuItemRender,subMenuItemRender:e.subMenuItemRender,onSelect:P=>D("select",P.selectedKeys,P.key),onOpenKeys:P=>D("openKeys",P)},null)]})]);return t.createVNode(t.Fragment,null,[x,s.value.layout!=="simple"&&t.createVNode(sn,t.mergeProps(e,{extraRightDropdownRender:e.extraRightDropdownRender,rightContentRender:e.rightContentRender}),null)])};return()=>{const x=rt(e.collapsedButtonRender,!!e.collapsed,Ke({collapsed:!!e.collapsed,iconRender:e.collapsedIconRender}));return $(t.createVNode("div",{class:X.value},[f.value?t.createVNode(t.Fragment,null,[Et(e.logoRender,qt(d.classNames([`${S}-logo`,f.value&&"mobile",w.value]),e)),e.collapsedButtonRender!==!1&&t.createVNode("span",{class:`${S}-collapsed-button ${w.value}`,onClick:Y},[x]),m()]):t.createVNode("div",{class:`${S}-main ${w.value}`,style:{width:e.headerMainWidth||e.headerMainWidth===0?i.unit(e.headerMainWidth):s.value.layout==="wide"?J(s.value.wideWidth):void 0}},[t.createVNode("div",{class:`${S}-main-left ${w.value}`},[e.collapsedType==="header"&&V.value&&(b.value!=="mix"?y.value.menuData:y.value.flatMenuData).length>0&&t.createVNode("div",{class:`${S}-collapsed-button ${w.value}`,onClick:Y},[x]),rn.includes(s.value.layout)&&t.createVNode(t.Fragment,null,[s.value.layout!=="wide"&&e.appsLogoComponents&&t.createVNode(t.Fragment,null,[typeof e.appsLogoComponents=="function"?e.appsLogoComponents?.():e.appsLogoComponents]),t.createVNode(De,t.mergeProps({hashId:w.value,baseClassName:S},e,{title:s.value.title}),null)]),p.value?.position==="header"&&s.value.layout==="side"&&t.createVNode(_e,{breadcrumb:B.value},null)]),m()])]))}}});function dn(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!t.isVNode(e)}const{Header:pt}=v.Layout,un=t.defineComponent({name:"GlobalHeader",inheritAttrs:!1,props:Ce,setup(e){const{dark:n}=i.useProConfigContext(),{getPrefixCls:a,menuProps:o,contentFullScreen:c,settings:r,isMobile:s,layoutProps:f}=G(),{layout:N,fixedHeader:h}=t.toRefs(r.value),y=a({suffixCls:"header",isPor:!0}),p=a({suffixCls:"fixed-header",isPor:!0}),B=t.computed(()=>h.value),b=t.computed(()=>N.value==="side"||N.value==="simple"),{wrapSSR:l,hashId:S}=i.useStyle("ProLayoutHeader",C=>{const D=C.layout?.header,Y=i.getDefaultLayoutToken("header",C,C.layout?.key),m=fe(C,"header");return{[`${C.proComponentsCls}-basic-layout`]:{[`${C.antCls}-layout-header${C.componentCls}${C.componentCls}-${t.unref(o.value.key)}`]:{color:m?C.colorWhite:C.colorText,backgroundColor:D?.colorBgMenu||Y?.colorBgMenu,boxShadow:n.value?"#0d0d0da6 0 2px 8px":"",[`${C.proComponentsCls}-global-header-collapsed-button`]:{color:m?C.colorWhite:void 0}},[`${C.antCls}-layout-header${C.componentCls}`]:{zIndex:19,paddingBlock:0,paddingInline:0,WebkitBackdropFilter:"blur(8px)",backdropFilter:"blur(8px)",transition:"background-color 0.2s cubic-bezier(.645,.045,.355,1)",[`&${C.proComponentsCls}`]:{"&-fixed-header":{position:"fixed",width:"100%",zIndex:9,top:0,transition:"width .2s","&-action":{transition:"width .3s cubic-bezier(.645,.045,.355,1)"}},"&-header-actions":{display:"flex",alignItems:"center",fontSize:"16",cursor:"pointer","& &-item":{paddingBlock:0,paddingInline:8,"&:hover":{color:C.colorText}}},"&-header-actions-header-action":{transition:"width 0.3s cubic-bezier(0.645, 0.045, 0.355, 1)"}}}}}},y),$=t.computed(()=>({[`${S.value}`]:!0,[`${y}`]:!0,[`${y}-${o.value.key}`]:!0,[`${p}`]:B.value})),w=t.computed(()=>B.value&&!s.value),V=t.computed(()=>{const C=e.collapsed?e.collapsedWidth:f.value.siderWidth;return b.value&&w.value?e.collapsed?C?`calc(100% - ${i.unit(C)})`:"100%":C?`calc(100% - ${i.unit(C)})`:"100%":"100%"}),M=t.computed(()=>B.value?0:void 0),X=()=>{const C=t.createVNode(cn,t.mergeProps(e,{onCollapse:e.onCollapse,headerContentRender:e.headerContentRender}),null);return e.headerRender?e.headerRender(e,C):C};return()=>{let C;return l(t.createVNode(t.Fragment,null,[B.value&&!f.value.isWide&&t.createVNode(pt,{style:{height:`${f.value.headerHeight}`,lineHeight:`${f.value.headerHeight}`,background:"transparent",marginTop:c.value?`-${f.value.headerHeight}`:void 0}},null),t.createVNode(pt,{class:$.value,style:{height:`${f.value.headerHeight}`,lineHeight:`${f.value.headerHeight}`,width:V.value,zIndex:b.value?100:101,right:M.value,marginTop:c.value?`-${f.value.headerHeight}`:void 0}},dn(C=X())?C:{default:()=>[C]})]))}}}),bt=["menuLinksRender","appsLogoComponents","siderActionsRender"],Ct=["appsLogoComponents","extraRightDropdownRender"],xt=d.arrayRepeat([...Ct,...bt,"pageHeaderRender","copyrightRender"]),mn=["footerRender","menuExtraRender","menuFooterRender","tabsRouteItemRender","headerRender","menuContentRender","subMenuItemRender","menuItemRender","logoRender","breadcrumbRender","collapsedButtonRender"];[...xt,...mn];function St(e){return t.createVNode("svg",t.mergeProps({xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 256 256"},e),[t.createVNode("path",{fill:"currentColor",d:"m238.15 78.54l-60.69-60.68a20 20 0 0 0-28.3 0L97.2 70c-12.43-3.33-36.68-5.72-61.74 14.5a20 20 0 0 0-1.6 29.73l45.46 45.47l-39.8 39.8a12 12 0 0 0 17 17l39.8-39.81l45.47 45.46a20 20 0 0 0 14.12 5.85c.46 0 .93 0 1.4-.05a20 20 0 0 0 14.56-7.95c4.69-6.23 11-16.13 14.44-28s3.45-22.88.16-33.4l51.7-51.87a20 20 0 0 0-.02-28.19m-74.26 68.79a12 12 0 0 0-2.23 13.84c3.43 6.86 6.9 21-6.28 40.65L54.08 100.53c21.09-14.59 39.53-6.64 41-6a11.67 11.67 0 0 0 13.81-2.29l54.43-54.61l55 55Z"},null)])}function fn(e){return t.createVNode("svg",t.mergeProps({xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 256 256"},e),[t.createVNode("path",{fill:"currentColor",d:"M56.88 31.93a12 12 0 1 0-17.76 16.14L60 71a76 76 0 0 0-24.54 13.51a20 20 0 0 0-1.6 29.73l45.46 45.47l-39.8 39.8a12 12 0 0 0 17 17l39.8-39.81l45.47 45.46A20 20 0 0 0 155.9 228c.47 0 .94 0 1.41-.05a20 20 0 0 0 14.56-7.95a97.5 97.5 0 0 0 9.54-15.46l17.72 19.49a12 12 0 1 0 17.76-16.14Zm98.49 169.88L54.08 100.52C62 95 70.31 92.12 78.91 91.83l84.51 93a62 62 0 0 1-8.05 16.98m82.78-95l-39 39.11a12 12 0 1 1-17-16.95l36.19-36.3l-55-55l-32.75 32.83a12 12 0 0 1-17-16.94l35.57-35.69a20 20 0 0 1 28.3 0l60.69 60.68a20 20 0 0 1 0 28.28Z"},null)])}const Rt=40,gn=e=>{const n=i.getProSolidColor(e,e.colorBgBase);return{[`${e.componentTitleCls}`]:{display:"flex",alignItems:"center",gap:8},[`${e.componentTitleCls}-icon`]:{color:e.colorTextSecondary,fontSize:16,transition:"all .3s cubic-bezier(.645,.045,.355,1)"},[`${e.componentCls}`]:{"&-fixed":{width:"100%",height:Rt,background:"transparent"}},[`${e.componentWrapCls}`]:{borderBottom:`${e.lineWidth}px ${e.lineType} ${e.colorSplit}`,[`&${e.antCls}-tabs`]:{paddingBlock:6,background:e.colorBgContainer,[`>${e.antCls}-tabs-nav`]:{paddingLeft:16,marginBlockEnd:0,"&::before":{display:"none"},[`${e.antCls}-tabs-ink-bar`]:{display:"none"},[`${e.antCls}-tabs-tab`]:{paddingInline:8,paddingBlock:2,lineHeight:"20px",border:`1px solid ${e.colorBorder}`,backgroundColor:n,borderRadius:e.borderRadiusSM,"&:hover":{borderColor:e.colorPrimary,[`${e.antCls}-tabs-tab-btn`]:{color:e.colorPrimary,[`${e.componentTitleCls}`]:{[`${e.componentCls}-icon`]:{color:e.colorPrimary},".anticon":{color:e.colorPrimary}}}},[`+${e.antCls}-tabs-tab`]:{marginInlineStart:8},[`${e.antCls}-tabs-tab-btn`]:{color:e.colorText,[`${e.componentTitleCls}`]:{fontSize:e.fontSizeSM,[`${e.componentCls}-icon`]:{color:e.colorText,fontSize:e.fontSizeSM,cursor:"pointer",transition:"color .3s"}}},[`&${e.antCls}-tabs-tab-active`]:{borderColor:"transparent",backgroundColor:e.colorPrimary,"&:hover":{[`${e.antCls}-tabs-tab-btn`]:{color:e.colorWhite,[`${e.componentTitleCls}`]:{[`${e.componentCls}-icon`]:{color:e.colorWhite},".anticon":{color:e.colorWhite}}}},[`${e.antCls}-tabs-tab-btn`]:{color:e.colorWhite,[`${e.componentTitleCls}`]:{[`${e.componentCls}-icon`]:{color:e.colorWhite},".anticon":{color:e.colorWhite}}}},".anticon":{margin:0,fontSize:e.fontSizeSM-2}},[`${e.antCls}-tabs-nav-list ${e.antCls}-tabs-tab`]:{transition:"all .2s cubic-bezier(.645,.045,.355,1)","&:hover":{[`${e.componentTitleCls}-icon`]:{color:e.colorPrimaryHover}},"&-active":{[`${e.componentTitleCls}-icon`]:{color:e.colorPrimary}}},[`${e.componentCls}-dropdown-menu`]:{display:"flex",alignItems:"center",gap:e.marginXS,paddingInlineEnd:e.margin},[`${e.componentCls}-dropdown-menu-btn`]:{color:e.colorTextDescription,fontWeight:e.fontWeightStrong,textDecoration:"none",background:"transparent",borderRadius:e.borderRadiusSM,padding:6,cursor:"pointer",transition:`color ${e.motionDurationMid}, background-color ${e.motionDurationMid}`,"&:hover":{color:e.colorIconHover,backgroundColor:e.wireframe?"transparent":e.colorFillContent,textDecoration:"none"},"&:active":{backgroundColor:e.wireframe?"transparent":e.colorFillContentHover}}},[`${e.antCls}-tabs-content-holder`]:{display:"none"}},"&-fixed":{position:"fixed",height:Rt,top:J(e.layout?.header?.heightLayoutHeader||z.headerHeight),right:0,zIndex:9,transition:"width .2s"}}}};function hn(e){return i.useStyle("ProMultiTabs",n=>{const a=i.mergeToken(n,{componentWrapCls:`${n.componentCls}-wrap`,componentTitleCls:`${n.componentCls}-title`});return[gn(a)]},e)}const yn=[{key:"fixed",label:"置顶",icon:e=>t.createVNode(K,{component:e?fn:St},null)},{key:"close",label:"关闭",icon:t.createVNode(K.CloseOutlined,null,null)},{key:"fullScreen",icon:e=>e?t.createVNode(K.FullscreenExitOutlined,null,null):t.createVNode(K.FullscreenOutlined,null,null)},{key:"reloadPage",label:"重新加载",icon:t.createVNode(K.ReloadOutlined,null,null)},{key:"newBlank",label:"新窗口打开",icon:t.createVNode(K.ExportOutlined,null,null)},{key:"divider"},{key:"closeLeftTabs",label:"关闭左侧",icon:t.createVNode(K.VerticalRightOutlined,null,null)},{key:"closeRightTabs",label:"关闭右侧",icon:t.createVNode(K.VerticalLeftOutlined,null,null)},{key:"divider"},{key:"closeOthersTabs",label:"关闭其他",icon:t.createVNode(K.VerticalAlignMiddleOutlined,{rotate:90},null)},{key:"closeAllTabs",label:"关闭全部",icon:t.createVNode(K.SwapOutlined,null,null)}];function pn(e,n){const{fixed:a}=n.tabs,o=d.isBoolean(a)?a:a===0;return e.key==="fixed"?o?"取消置顶":"置顶":e.key==="fullScreen"?n.fullScreen?"还原":"最大化":e.label}function bn(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!t.isVNode(e)}const Cn=v.Tabs.TabPane,xn=v.Menu.Item;function L(e){return e.name}const Sn=t.defineComponent({props:it,inheritAttrs:!1,setup(e,{expose:n}){const{fixedTabsBar:a,storage:o}=t.toRefs(e),c=t.ref(!1),r=t.reactive({activeKey:"",contextMenuActiveKey:""}),s=ne.useRouter(),{isMobile:f,collapsed:N,collapsedWidth:h,layoutProps:y,contentFullScreen:p,settings:B,menuProps:b,renderRouterView:l,getPrefixCls:S}=G(),$=Se(),{layout:w,splitMenus:V}=t.toRefs(B.value),M=S({isPor:!0,suffixCls:"tabs-route"}),{wrapSSR:X,hashId:C}=hn(M),D=me.useLocalStorage(M,{fixed:[],normal:[]});function Y(u){return $?.menuMap?.value?.get(u.name)||b.value?.levelMenuData?.some(R=>R.name===u.name)}const m=t.reactive({fixed:o.value&&D.value?.fixed?D.value?.fixed:[],normal:o.value&&D.value?.normal?D.value?.normal:[]});t.watch(()=>b.value.levelMenuData,()=>{m.fixed.length&&(m.fixed=m.fixed.filter(u=>Y(u))),m.normal.length&&(m.normal=m.normal.filter(u=>Y(u)))},{immediate:!0,deep:!0}),t.watch(o,u=>{D.value=u?A.cloneDeep(t.toRaw(m)):{fixed:[],normal:[]}},{immediate:!0});const x=t.computed(()=>m.fixed.concat(m.normal)),P=t.computed(()=>w.value==="mix"&&!f.value&&V.value),U=t.computed(()=>L(s.currentRoute.value)),F=t.computed(()=>a.value&&!f.value),q=t.computed(()=>{const u=!(P.value&&b.value.flatMenuData.length===0||b.value.menuData.length===0||w.value==="top");return F.value&&u?p.value?"100%":`calc(100% - ${N.value?i.unit(h.value):i.unit(y.value.siderWidth)})`:"100%"}),E=t.computed(()=>d.classNames(`${M}-wrap`,{[`${C.value}`]:!0,[`${M}-wrap-${e.type}`]:e.type,[`${M}-wrap-fixed`]:a.value,[`${M}-wrap-loading`]:e.loading})),Z=t.computed(()=>e.destroyOnHide===!1&&e.visible),ae=t.computed(()=>{const u={display:Z.value?void 0:"none"};return a.value?{margin:0,width:q.value,paddingTop:"6px",zIndex:99,top:p.value?0:void 0,...u}:u});t.watch(()=>m,u=>{o.value&&(D.value=A.cloneDeep(u)),e.onTabsChange?.([...m.fixed,...m.normal])},{deep:!0});const W=u=>x.value.find(R=>L(R)===u),_=u=>L(u)===U.value,H=u=>{const{fixed:R}=u?.meta?.tabState||{};return u?.meta?d.isBoolean(R)?R:R===0:!1},ee=u=>{const{hidden:R}=u?.meta?.tabState||{};if(u.name&&u.meta&&R!==!0){const I=H(u),T=L(u),O=W(T),k={name:T,path:u.path,fullPath:u.fullPath,query:u.query,params:u.params,meta:d.merge(u.meta,{tabState:u.meta?.tabState})};O?d.merge(O,k):I?m.fixed.push(k):m.normal.push(k),_(u)&&(r.activeKey=T)}},re=u=>{u.forEach(R=>{H(R)&&ee(t.unref(R))})};t.watch(()=>b.value.levelMenuData,u=>{re(u)},{deep:!0,immediate:!0}),t.watch(()=>s.currentRoute.value,u=>{ee(u)},{deep:!0,immediate:!0});const de=u=>{const R=x.value.find(I=>(u||r.activeKey)===L(I));return R?.redirect||R?.fullPath||R?.path||""};function te(u){const R={};return u.query&&(R.query=u.query),u.params&&(R.params=u.params),R}const Re=(u,{type:R,addType:I,params:T})=>{const O=H(u)?"fixed":"normal";R==="add"&&I?m[O][I](T):R==="merge"?m[O]=m[O].map(k=>L(k)===L(u)?d.merge(k,T):k):R==="remove"&&(m[O]=m[O].filter(k=>L(k)!==L(u)))},Nt=()=>{const u=x.value.slice(-1)[0];u?s.push({path:de(L(u)),...te(u)}):s.push("/")},Mt=(u,R)=>{const I=x.value.find(T=>u===L(T));I&&(Re(I,{type:"remove",params:I}),R?.(I))},To=()=>{m.fixed=[],m.normal=[]},It=async u=>{Mt(u,R=>{_(R)&&Nt()})},Lo=u=>{const R=x.value.find(I=>L(I)===u);R&&r.activeKey!==L(R)&&s.push({path:de(L(R)),...te(R)})},Vo=me.useThrottleFn(()=>{l.value=!1,c.value=!0,e.onReloadPage&&e.onReloadPage?.(),setTimeout(()=>{l.value=!0},200),setTimeout(()=>{c.value=!1},500)},500),ue=u=>r[u],He=u=>{s.push({path:u.path,...te(u)})},ze=(u,R)=>{let I=m.normal.findIndex(j=>L(j)===ue(R));const T=x.value.find(j=>L(j)===ue(R)),O=H(T);let k=!1;switch(u){case"fixed":O?(I=m.fixed.findIndex(j=>L(j)===ue(R)),m.normal.unshift(d.merge(T,{meta:{tabState:{fixed:!O}}})),m.fixed=m.fixed.filter((j,oe)=>oe!==I)):(m.fixed.push(d.merge(T,{meta:{tabState:{fixed:!O}}})),m.normal=m.normal.filter((j,oe)=>oe!==I));break;case"close":It(L(T)||"");break;case"closeOthersTabs":m.normal=m.normal.filter(j=>L(j)===ue(R)||H(j)),k=r[R]!==r.activeKey,k&&He(T);break;case"closeLeftTabs":d.isNumber(I)&&(m.normal=m.normal.filter((j,oe)=>oe>=I||H(j)),k=!x.value.some(j=>L(j)===r.activeKey),k&&He(T));break;case"closeRightTabs":d.isNumber(I)&&(m.normal=m.normal.filter((j,oe)=>oe<=I||H(j))),k=!x.value.some(j=>L(j)===r.activeKey),k&&He(T);break;case"closeAllTabs":m.normal=m.normal.filter(j=>H(j)),Nt();break;case"reloadPage":(I===0||I)&&r.activeKey===ue(R)&&Vo();break;case"newBlank":window.open(location.href);break;case"fullScreen":p.value=!p.value;break}},ko=(u,R)=>{const I=x.value.findIndex(T=>L(T)===R);if(u==="closeOthersTabs")return x.value.filter((O,k)=>k!==I&&!H(O)).length===0;if(u==="closeLeftTabs")return x.value.filter((O,k)=>k<I&&!H(O)).length===0;if(u==="closeRightTabs")return x.value.filter((O,k)=>k>I&&!H(O)).length===0},Ot=u=>{let R;const{name:I,stateType:T}=u;return t.createVNode(v.Menu,{selectedKeys:[],onClick:O=>ze(O.key,T)},bn(R=yn.map(O=>{if(O.key==="divider")return t.createVNode(v.Menu.Divider,{key:O.key},null);const k=O.icon;return O.key==="close"&&H(W(I))?null:t.createVNode(xn,{key:O.key,disabled:ko(O.key,I)},{default:()=>[O.icon&&typeof O.icon=="function"?O.key==="fullScreen"?O.icon(p.value):O.key==="fixed"?O.icon(H(W(I))):null:t.createVNode(k,null,null),t.createVNode("span",{style:{marginInlineStart:"8px"}},[pn(O,{tabs:W(I)?.meta?.tabState||{},fullScreen:p.value})])]})}))?R:{default:()=>[R]})},Ko=({router:u})=>{const R=e.itemRender?e.itemRender(u):null,I=H(u);return t.createVNode(v.Dropdown,{trigger:"contextmenu",overlay:t.createVNode(Ot,{name:L(u)||"",stateType:"contextMenuActiveKey"},null),onOpenChange:T=>{r.contextMenuActiveKey=T&&L(u)||""}},{default:()=>[R||t.createVNode("div",{class:[`${M}-title`,C.value]},[u.meta?.title,I&&t.createVNode(K,{class:[`${M}-icon`,C.value],component:St},null),x.value.length>1&&!H(u)&&t.createVNode(K.CloseOutlined,{class:[`${M}-close-btn`,C.value],onClick:T=>{T.stopPropagation(),It(L(u)||"")}},null)])]})};return n({clean:To,close:Mt,change:Re}),()=>{const u=p.value?K.FullscreenExitOutlined:K.FullscreenOutlined;return X(t.createVNode(t.Fragment,null,[a.value&&t.createVNode("div",{style:{display:Z.value?void 0:"none"},class:[`${M}-fixed`,C.value]},null),t.createVNode(v.Tabs,{hideAdd:!0,style:ae.value,class:E.value,activeKey:r.activeKey,onTabClick:Lo},{default:()=>[x.value.map(R=>t.createVNode(Cn,{key:L(R),closable:!1,tab:t.createVNode(Ko,{router:R},null)},null))],rightExtra:()=>t.createVNode("div",{class:d.classNames(`${M}-dropdown-menu`,C.value)},[t.createVNode(K.ReloadOutlined,{class:[`${M}-dropdown-menu-btn`,C.value],onClick:()=>ze("reloadPage","activeKey")},null),t.createVNode(v.Dropdown,{overlay:t.createVNode(Ot,{name:r.activeKey,stateType:"activeKey"},null)},{default:()=>[t.createVNode(K.DownOutlined,{class:[`${M}-dropdown-menu-btn`,C.value]},null)]}),t.createVNode(u,{class:[`${M}-dropdown-menu-btn`,C.value],onClick:()=>ze("fullScreen","activeKey")},null)])})]))}}}),Rn=["isChildrenLayout","loading","onTabsChange","onReloadPage"],wn=t.defineComponent({inheritAttrs:!1,displayName:"wrap-content",props:{...A.omit(it,["visible","destroyOnHide","storage","itemRender"]),hashId:String,prefixCls:String,isChildrenLayout:Boolean,tabsRoute:xe.tabsRoute},setup(e,{slots:n}){const{tabsComRef:a,contentFullScreen:o,layoutProps:c,settings:r,fullScreenOnTabsHide:s}=G(),f=t.computed(()=>d.isBoolean(e.tabsRoute?.visible)?e.tabsRoute?.visible:!(o.value&&s.value));return()=>{if(e.isChildrenLayout)return n.default?.();const{prefixCls:N,hashId:h,tabsRoute:y,...p}=e;return t.createVNode("div",{class:d.classNames(`${N}-container`,h,c.value.siderWidth&&`${N}-container-has-silder`)},[!r.value.showTabsBar||c.value.isWide||r.value.layout==="simple"?null:t.createVNode(Sn,t.mergeProps({ref:a},p,e.tabsRoute,{visible:f.value}),null),n.default?.()])}}}),{Content:Nn}=v.Layout,Mn=t.defineComponent({name:"BaseProLayout",inheritAttrs:!1,props:xe,slots:Object,setup(e,{slots:n,expose:a}){const o=d.getPrefixCls({suffixCls:"basic-layout",isPor:!0});me.useStyleTag(et);const{wrapSSR:c,hashId:r}=i.useProStyle("ProLayout",[Qt,Jt],o),s=ie.useMediaQuery(),f=Se(),N=ie.useSlotsProps({slots:n,props:e,keys:xt,render:!0}),{dark:h}=i.useProConfigContext(),y=t.ref(),p=t.ref(!0),B=t.ref(!1),b=t.ref(!1),l=t.ref(),S=t.ref(d.getRandomNumber().uuid(10)),$=t.reactive({position:"relative"});t.watchEffect(()=>{const m=document.querySelector("html");m&&m.setAttribute("data-theme",h.value?"dark":"light")});const w=t.computed(()=>{let m=0;return b.value?m=0:e.settings.siderWidth||e.settings.siderWidth===0?m=e.settings.siderWidth===0?0:J(e.settings.siderWidth):e.settings.layout==="wide"?m=208:m=J(z.siderWidth),{isWide:e.settings.layout==="wide",headerHeight:e.settings.headerHeight||e.settings.headerHeight===0?e.settings.headerHeight===0?0:J(e.settings.headerHeight):J(z.headerHeight),siderWidth:m,hasSilder:e.settings.layout==="mix"||e.settings.layout==="side"||e.settings.layout==="wide"||!1}}),V=t.computed(()=>{const m=e.route||f?.menuData?.value||[],x=f?.levelMenuData?.value??d.getLevelData(m);return{...e.menu,menuData:m,levelMenuData:x,key:we(h.value,e.settings?.theme),baseTheme:h.value?"dark":e.settings.theme,flatMenuData:w.value.hasSilder&&e?.selectedKeys?Je(m,e.selectedKeys[0]):[]}}),M=t.computed(()=>(s.value==="sm"||s.value==="xs")&&!e.disableMobile&&!w.value.isWide),X=t.computed(()=>({position:e.breadcrumb?.position&&d.isString(e.breadcrumb?.position)?e.breadcrumb?.position:e.settings.layout==="side"?"header":"pageHeader",...A.omit(e.breadcrumb||{},"position"),itemRender:d.getSlot({slots:n,props:{breadcrumbRender:e.pageContainer?.breadcrumbRender},key:"breadcrumbRender"})}));t.watch([()=>e.settings.layout,()=>e.settings.theme],([m])=>{(m==="wide"||m==="simple")&&(b.value=!1),S.value=d.getRandomNumber().uuid(10)}),t.watch(()=>w.value.isWide,m=>{if(m){const x=document.querySelector('meta[name="viewport"]');x&&(x.content="")}},{immediate:!0}),t.watch(b,m=>{e.onContentFullScreenChange?.(m)}),t.watch([()=>e.layoutStyle?.content,()=>e.isChildrenLayout],([m,x])=>{(e.isChildrenLayout||m&&m.minHeight)&&($.minHeight=0)},{immediate:!0,deep:!0});function C(){return d.getSlotsProps({slots:n,props:e,keys:["menuItemRender","subMenuItemRender","collapsedIconRender","collapsedButtonRender"]})}const D=()=>{if(e.headerRender===!1||e.pure||e.settings.layout==="simple"||!w.value.headerHeight||w.value.headerHeight===0)return null;const m=d.getSlotsProps({slots:n,props:e,keys:["logoRender","headerRender","headerContentRender","rightContentRender"]}),x=d.getSlotsProps({slots:n,props:e,keys:Ct,render:!0});return t.createVNode(un,t.mergeProps(e,x,C(),{logoRender:m.logoRender,headerRender:m.headerRender,rightContentRender:m.rightContentRender,headerContentRender:m.headerContentRender}),null)},Y=()=>{if(!w.value.siderWidth||w.value.siderWidth===0)return null;const m=d.getSlotsProps({slots:n,props:e,keys:bt,render:!0}),x=d.getSlotsProps({slots:n,props:e,keys:["logoRender","menuHeaderRender","menuFooterRender","menuContentRender"]});return t.createVNode(gt,t.mergeProps(e,m,C(),{isMobile:M.value,logoRender:x.logoRender,siderWidth:w.value.siderWidth,menuHeaderRender:x.menuHeaderRender,menuFooterRender:x.menuFooterRender,menuContentRender:x.menuContentRender}),null)};return je({...A.pick(t.toRefs(e),Ae),getPrefixCls:d.getPrefixCls,settings:t.toRef(e,"settings"),layoutStyle:t.toRef(e,"layoutStyle"),menuProps:V,tabsComRef:y,contentFullScreen:b,layoutProps:w,isMobile:M,renderRouterView:p,breadcrumb:X,fullScreenOnTabsHide:B,breadcrumbRender:l,onDarkChange:e.onDarkChange,pageHeaderRender:t.computed(()=>d.getSlotVNode({slots:n,props:{pageHeaderRender:e.pageContainer?.pageHeaderRender},key:"pageHeaderRender"}))}),a({tabsComRef:()=>y.value}),()=>{const m={minWidth:w.value.isWide?J(e.settings.wideWidth):void 0,minHeight:e.settings.layout==="simple"?`calc(100vh - ${J(e.settings.headerHeight)})`:void 0,...e.style},x=d.getSlot({slots:n,props:e,key:"footerRender",render:!1}),P=x===!1?null:x?typeof x=="function"?x(e):x:t.createVNode(at,{copyright:N.value.copyrightRender,links:e.footerLinks},null);return c(t.createVNode(t.Fragment,null,[e.pure?n.default?.():t.createVNode("div",{id:e.id,class:d.classNames({[`${r.value}`]:!0,[`${e.class}`]:!!e.class,[`${o}`]:!0,[`${o}-${e.settings.layout}`]:!0}),style:m},[t.createVNode(v.Layout,{style:w.value.isWide?{width:J(e.settings.wideWidth),paddingTop:pe(w.value.headerHeight,20),margin:w.value.isWide?"0 auto":void 0}:void 0},{default:()=>[Y(),t.createVNode(v.Layout,{style:$},{default:()=>[D(),t.createVNode(wn,t.mergeProps(A.pick(e,Rn),{tabsRoute:{...e.tabsRoute,itemRender:n.tabsRouteItemRender||e.tabsRoute?.itemRender},hashId:r.value,prefixCls:o}),{default:()=>[t.createVNode(Nn,{class:d.classNames(`${o}-content`,r.value)},{default:()=>[n.default?.()]})]}),!w.value.isWide&&P]})]}),w.value.isWide&&P,e.waterMark!==!1&&t.createVNode(vt.GPorWaterMark,t.mergeProps({zIndex:120},d.isObject(e.waterMark)?e.waterMark:{}),null)])]))}}}),In=t.defineComponent({name:"GProLayout",compatConfig:{MODE:3},inheritAttrs:!1,props:xe,emits:{select:e=>!0,"update:selected-keys":e=>!0,openKeys:e=>!0,"update:open-keys":e=>!0,collapse:e=>!0,"update:collapsed":e=>!0,reloadPage:()=>!0,logoClick:()=>!0,tabsChange:e=>e.length>0,"update:tabs":e=>e.length>0,darkChange:e=>!0,"update:dark":e=>!0,contentFullScreenChange:e=>!0},slots:Object,setup(e,{slots:n,emit:a,expose:o}){const c=t.ref(),{isDark:r,dark:s,toggleMode:f}=ht(t.computed(()=>e.dark),{change:l=>{a("darkChange",l),a("update:dark",l)}}),N=t.computed(()=>{let l=e.token||{};return l.layout?.header?.heightLayoutHeader||(l=d.deepMerge(l,{layout:{header:{heightLayoutHeader:e.settings.headerHeight}}})),d.merge(l,{layout:{key:`${we(r.value,e.settings.theme)}:${e.settings.layout}`}})}),h=l=>{a("update:collapsed",l),a("collapse",l)},y=l=>{a("update:open-keys",l),a("openKeys",l)},p=l=>{a("update:selected-keys",l),a("select",l)},B=l=>{a("update:tabs",l),a("tabsChange",l)},b=l=>{a("contentFullScreenChange",l)};return o({tabsComRef:()=>c.value?.tabsComRef?.()}),()=>{const l=["onSelect","onOpenKeys","onCollapse","onTabsChange","onDarkChange","dark","onContentFullScreenChange"];return t.createVNode(v.ConfigProvider,{theme:e.settings.primaryColor?{token:{colorPrimary:e.settings.primaryColor}}:void 0},{default:()=>[t.createVNode(i.GProConfigProvider,{token:N.value,dark:r.value,cssVar:e.cssVar},{default:()=>[t.createVNode(Mn,t.mergeProps({ref:c},A.omit(e,l),{dark:s.value,onSelect:p,onOpenKeys:y,onCollapse:h,onTabsChange:B,onContentFullScreenChange:b,onDarkChange:f}),n)]})]})}}}),On=e=>({[e.componentCls]:{height:"100%",[`&${e.componentCls}-loading`]:{position:"relative",height:"100%",overflow:"hidden"},"&-blur":{position:"absolute",top:0,left:0,width:"100%",height:"100%",zIndex:200,backgroundColor:We.getAlphaColor(e.colorBgContainer,.5),[`& > ${e.antCls}-spin`]:{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)"}}}});function $n(e){return i.useStyle("PageLoading",n=>[On(n)],e)}const vn=t.defineComponent({name:"GProAppPage",props:{...se.proAppProps,spinning:{type:Object,default:()=>({})},spinProps:Object},inheritAttrs:!1,slots:Object,setup(e,{slots:n,attrs:a}){const o=d.getPrefixCls({isPor:!0,suffixCls:"app-page"}),{hashId:c,wrapSSR:r}=$n(o);return Vt({spinning:t.computed(()=>e.spinning?.loading)}),()=>{const s=d.getSlotsProps({slots:n,props:e,keys:se.proAppSlots,render:!0});return r(t.createVNode(se.GProApp,t.mergeProps({style:a.style,class:d.classNames(a.class,e.spinning?.loading&&`${o}-loading`,o,c.value)},s),{default:()=>[t.createVNode(Ft.GScrollbars,{barStyle:{x:{zIndex:110},y:{zIndex:110}}},{default:()=>[n.default?.()]}),e.spinning?.loading&&t.createVNode("div",{class:d.classNames(`${o}-blur`,c.value),style:{backgroundColor:e.spinning?.blur?void 0:"unset",...e.spinning?.style||{}}},[t.createVNode(v.Spin,t.mergeProps(A.omit(e.spinProps,"spinning","iconStyle","iconClass"),{spinning:!0,indicator:s.indicator&&t.h(s.indicator,{style:e.spinProps?.iconStyle,class:e.spinProps?.iconClass})}),null)])]}))}}}),Fn=["left","right"],ce=["left","right","down","up"],Bn=["downBig","upBig","leftBig","rightBig"],Tn=["topLeft","bottomRight","topRight","bottomLeft"],Ln=["downLeft","upRight","downRight","upLeft"],wt={preset:[{name:"back",alias:"渐近",directions:ce},{name:"bounce",alias:"弹跳",directions:ce.concat("default")},{name:"fade",alias:"淡化",directions:ce.concat(Bn).concat(Tn).concat("default")},{name:"flip",alias:"翻转",directions:["x","y"]},{name:"lightSpeed",alias:"光速",directions:Fn},{name:"rotate",alias:"旋转",directions:Ln.concat("default")},{name:"roll",alias:"翻滚",directions:["default"]},{name:"zoom",alias:"缩放",directions:ce.concat("default")},{name:"slide",alias:"滑动",directions:ce}]},Vn=new i.Keyframe("backInLeft",{"0%":{opacity:.7,transform:"translateX(-2000px) scale(0.7)"},"80%":{opacity:.7,transform:"translateX(0px) scale(0.7)"},"100%":{opacity:1,transform:"scale(1)"}}),kn=new i.Keyframe("backInRight",{"0%":{opacity:.7,transform:"translateX(2000px) scale(0.7)"},"80%":{opacity:.7,transform:"translateX(0px) scale(0.7)"},"100%":{opacity:1,transform:"scale(1)"}}),Kn=new i.Keyframe("backInUp",{"0%":{opacity:.7,transform:"translateY(1200px) scale(0.7)"},"80%":{opacity:.7,transform:"translateY(0px) scale(0.7)"},"100%":{opacity:1,transform:"scale(1)"}}),Dn=new i.Keyframe("backInDown",{"0%":{opacity:.7,transform:"translateY(-1200px) scale(0.7)"},"80%":{opacity:.7,transform:"translateY(0px) scale(0.7)"},"100%":{opacity:1,transform:"scale(1)"}}),Pn=new i.Keyframe("backOutLeft",{"0%":{opacity:1,transform:"scale(1)"},"20%":{opacity:.7,transform:"translateX(0px) scale(0.7)"},"100%":{opacity:.7,transform:"translateX(-2000px) scale(0.7)"}}),Hn=new i.Keyframe("backOutRight",{"0%":{opacity:1,transform:"scale(1)"},"20%":{opacity:.7,transform:"translateX(0px) scale(0.7)"},"100%":{opacity:.7,transform:"translateX(2000px) scale(0.7)"}}),zn=new i.Keyframe("backOutUp",{"0%":{opacity:1,transform:"scale(1)"},"20%":{opacity:.7,transform:"translateY(0px) scale(0.7)"},"100%":{opacity:.7,transform:"translateY(-700px) scale(0.7)"}}),Wn=new i.Keyframe("backOutDown",{"0%":{opacity:1,transform:"scale(1)"},"20%":{opacity:.7,transform:"translateY(0px) scale(0.7)"},"100%":{opacity:.7,transform:"translateY(700px) scale(0.7)"}}),An=()=>({"&.backInLeft":{animationFillMode:"both",animationName:Vn},"&.backInRight":{animationFillMode:"both",animationName:kn},"&.backInUp":{animationFillMode:"both",animationName:Kn},"&.backInDown":{animationFillMode:"both",animationName:Dn}}),jn=()=>({"&.backOutLeft":{animationFillMode:"both",animationName:Pn},"&.backOutRight":{animationFillMode:"both",animationName:Hn},"&.backOutUp":{animationFillMode:"both",animationName:zn},"&.backOutDown":{animationFillMode:"both",animationName:Wn}}),Xn=new i.Keyframe("bounceIn",{"from,20%,40%,60%,80%,to":{animationTimingFunction:"cubic-bezier(0.215, 0.61, 0.355, 1)"},"0%":{opacity:0,transform:"scale3d(0.3, 0.3, 0.3)"},"20%":{transform:"scale3d(1.1, 1.1, 1.1)"},"40%":{transform:"scale3d(0.9, 0.9, 0.9)"},"60%":{transform:"scale3d(1.03, 1.03, 1.03)"},"80%":{transform:"scale3d(0.97, 0.97, 0.97)"},to:{opacity:1,transform:"scale3d(1, 1, 1)"}}),Yn=new i.Keyframe("bounceInLeft",{"from,60%,75%,90%,to":{animationTimingFunction:"cubic-bezier(0.215, 0.61, 0.355, 1)"},"0%":{opacity:0,transform:"translate3d(-3000px, 0, 0) scaleX(3)"},"60%":{opacity:1,transform:"translate3d(25px, 0, 0) scaleX(1)"},"75%":{transform:"translate3d(-10px, 0, 0) scaleX(0.98)"},"90%":{transform:"translate3d(5px, 0, 0) scaleX(0.995)"},to:{transform:"translate3d(0, 0, 0)"}}),_n=new i.Keyframe("bounceInRight",{"from,60%,75%,90%,to":{animationTimingFunction:"cubic-bezier(0.215, 0.61, 0.355, 1)"},from:{opacity:0,transform:"translate3d(3000px, 0, 0) scaleX(3)"},"60%":{opacity:1,transform:"translate3d(-25px, 0, 0) scaleX(1)"},"75%":{transform:"translate3d(10px, 0, 0) scaleX(0.98)"},"90%":{transform:"translate3d(-5px, 0, 0) scaleX(0.995)"},to:{transform:"translate3d(0, 0, 0)"}}),Gn=new i.Keyframe("bounceInDown",{"from,60%,75%,90%,to":{animationTimingFunction:"cubic-bezier(0.215, 0.61, 0.355, 1)"},"0%":{opacity:0,transform:"translate3d(0, -3000px, 0) scaleY(3)"},"60%":{opacity:1,transform:"translate3d(0, 25px, 0) scaleY(0.9)"},"75%":{transform:"translate3d(0, -10px, 0) scaleY(0.95)"},"90%":{transform:"translate3d(0, 5px, 0) scaleY(0.985)"},to:{transform:"translate3d(0, 0, 0)"}}),qn=new i.Keyframe("bounceInUp",{"from,60%,75%,90%,to":{animationTimingFunction:"cubic-bezier(0.215, 0.61, 0.355, 1)"},from:{opacity:0,transform:"translate3d(0, 3000px, 0) scaleY(5)"},"60%":{opacity:1,transform:"translate3d(0, -20px, 0) scaleY(0.9)"},"75%":{transform:"translate3d(0, 10px, 0) scaleY(0.95)"},"90%":{transform:"translate3d(0, -5px, 0) scaleY(0.985)"},to:{transform:"translate3d(0, 0, 0)"}}),En=new i.Keyframe("bounceOut",{"20%":{transform:"scale3d(0.9, 0.9, 0.9)"},"50%,55%":{transform:"scale3d(1.1, 1.1, 1.1)"},"60%":{transform:"scale3d(1.03, 1.03, 1.03)"},to:{opacity:0,transform:"scale3d(0.3, 0.3, 0.3)"}}),Zn=new i.Keyframe("bounceOutLeft",{"20%":{opacity:1,transform:"translate3d(20px, 0, 0) scaleX(0.9)"},to:{opacity:0,transform:"translate3d(-2000px, 0, 0) scaleX(2)"}}),Qn=new i.Keyframe("bounceOutRight",{"20%":{opacity:1,transform:"translate3d(-20px, 0, 0) scaleX(0.9)"},to:{opacity:0,transform:"translate3d(2000px, 0, 0) scaleX(2)"}}),Jn=new i.Keyframe("bounceOutDown",{"20%":{transform:"translate3d(0, 10px, 0) scaleY(0.985)"},"40%,45%":{opacity:1,transform:"translate3d(0, -20px, 0) scaleY(0.9)"},to:{opacity:0,transform:"translate3d(0, 2000px, 0) scaleY(3)"}}),Un=new i.Keyframe("bounceOutUp",{"20%":{transform:"translate3d(0, -10px, 0) scaleY(0.985)"},"40%,45%":{opacity:1,transform:"translate3d(0, 20px, 0) scaleY(0.9)"},to:{opacity:0,transform:"translate3d(0, -2000px, 0) scaleY(3)"}}),ea=()=>({"&.bounceIn":{animationFillMode:"both",animationDuration:`${.3*.75}s !important`,animationName:Xn},"&.bounceInLeft":{animationFillMode:"both",animationName:Yn},"&.bounceInRight":{animationFillMode:"both",animationName:_n},"&.bounceInDown":{animationFillMode:"both",animationName:Gn},"&.bounceInUp":{animationFillMode:"both",animationName:qn}}),ta=()=>({"&.bounceOut":{animationFillMode:"both",animationDuration:`${.3*.75}s !important`,animationName:En},"&.bounceOutLeft":{animationFillMode:"both",animationName:Zn},"&.bounceOutRight":{animationFillMode:"both",animationName:Qn},"&.bounceOutDown":{animationFillMode:"both",animationName:Jn},"&.bounceOutUp":{animationFillMode:"both",animationName:Un}}),na=new i.Keyframe("fadeIn",{from:{opacity:0},to:{opacity:1}}),aa=new i.Keyframe("fadeInLeft",{from:{opacity:0,transform:"translate3d(-100%, 0, 0)"},to:{opacity:1,transform:"translate3d(0, 0, 0)"}}),oa=new i.Keyframe("fadeInRight",{from:{opacity:0,transform:"translate3d(100%, 0, 0)"},to:{opacity:1,transform:"translate3d(0, 0, 0)"}}),ia=new i.Keyframe("fadeInDown",{from:{opacity:0,transform:"translate3d(0, -100%, 0)"},to:{opacity:1,transform:"translate3d(0, 0, 0)"}}),la=new i.Keyframe("fadeInUp",{from:{opacity:0,transform:"translate3d(0, 100%, 0)"},to:{opacity:1,transform:"translate3d(0, 0, 0)"}}),ra=new i.Keyframe("fadeInDownBig",{from:{opacity:0,transform:"translate3d(0, -2000px, 0)"},to:{opacity:1,transform:"translate3d(0, 0, 0)"}}),sa=new i.Keyframe("fadeInUpBig",{from:{opacity:0,transform:"translate3d(0, 2000px, 0)"},to:{opacity:1,transform:"translate3d(0, 0, 0)"}}),ca=new i.Keyframe("fadeInLeftBig",{from:{opacity:0,transform:"translate3d(-2000px, 0, 0)"},to:{opacity:1,transform:"translate3d(0, 0, 0)"}}),da=new i.Keyframe("fadeInRightBig",{from:{opacity:0,transform:"translate3d(2000px, 0, 0)"},to:{opacity:1,transform:"translate3d(0, 0, 0)"}}),ua=new i.Keyframe("fadeInTopLeft",{from:{opacity:0,transform:"translate3d(-100%, -100%, 0)"},to:{opacity:1,transform:"translate3d(0, 0, 0)"}}),ma=new i.Keyframe("fadeInBottomRight",{from:{opacity:0,transform:"translate3d(100%, 100%, 0)"},to:{opacity:1,transform:"translate3d(0, 0, 0)"}}),fa=new i.Keyframe("fadeInTopRight",{from:{opacity:0,transform:"translate3d(100%, -100%, 0)"},to:{opacity:1,transform:"translate3d(0, 0, 0)"}}),ga=new i.Keyframe("fadeInBottomLeft",{from:{opacity:0,transform:"translate3d(-100%, 100%, 0)"},to:{opacity:1,transform:"translate3d(0, 0, 0)"}}),ha=new i.Keyframe("fadeOut",{from:{opacity:1},to:{opacity:0}}),ya=new i.Keyframe("fadeOutLeft",{from:{opacity:1},to:{opacity:0,transform:"translate3d(-100%, 0, 0)"}}),pa=new i.Keyframe("fadeOutRight",{from:{opacity:1},to:{opacity:0,transform:"translate3d(100%, 0, 0)"}}),ba=new i.Keyframe("fadeOutDown",{from:{opacity:1},to:{opacity:0,transform:"translate3d(0, 100%, 0)"}}),Ca=new i.Keyframe("fadeOutUp",{from:{opacity:1},to:{opacity:0,transform:"translate3d(0, -100%, 0)"}}),xa=new i.Keyframe("fadeOutDownBig",{from:{opacity:1},to:{opacity:0,transform:"translate3d(0, 2000px, 0)"}}),Sa=new i.Keyframe("fadeOutUpBig",{from:{opacity:1},to:{opacity:0,transform:"translate3d(0, -2000px, 0)"}}),Ra=new i.Keyframe("fadeOutLeftBig",{from:{opacity:1},to:{opacity:0,transform:"translate3d(-2000px, 0, 0)"}}),wa=new i.Keyframe("fadeOutRightBig",{from:{opacity:1},to:{opacity:0,transform:"translate3d(2000px, 0, 0)"}}),Na=new i.Keyframe("fadeOutTopLeft",{from:{opacity:1,transform:"translate3d(0, 0, 0)"},to:{opacity:0,transform:"translate3d(-100%, -100%, 0)"}}),Ma=new i.Keyframe("fadeOutBottomRight",{from:{opacity:1,transform:"translate3d(0, 0, 0)"},to:{opacity:0,transform:"translate3d(100%, 100%, 0)"}}),Ia=new i.Keyframe("fadeOutTopRight",{from:{opacity:1,transform:"translate3d(0, 0, 0)"},to:{opacity:0,transform:"translate3d(100%, -100%, 0)"}}),Oa=new i.Keyframe("fadeOutBottomLeft",{from:{opacity:1,transform:"translate3d(0, 0, 0)"},to:{opacity:0,transform:"translate3d(-100%, 100%, 0)"}}),$a=()=>({"&.fadeIn":{animationFillMode:"both",animationName:na},"&.fadeInLeft":{animationFillMode:"both",animationName:aa},"&.fadeInRight":{animationFillMode:"both",animationName:oa},"&.fadeInDown":{animationFillMode:"both",animationName:ia},"&.fadeInUp":{animationFillMode:"both",animationName:la},"&.fadeInLeftBig":{animationFillMode:"both",animationName:ca},"&.fadeInRightBig":{animationFillMode:"both",animationName:da},"&.fadeInUpBig":{animationFillMode:"both",animationName:sa},"&.fadeInDownBig":{animationFillMode:"both",animationName:ra},"&.fadeInTopLeft":{animationFillMode:"both",animationName:ua},"&.fadeInBottomRight":{animationFillMode:"both",animationName:ma},"&.fadeInTopRight":{animationFillMode:"both",animationName:fa},"&.fadeInBottomLeft":{animationFillMode:"both",animationName:ga}}),va=()=>({"&.fadeOut":{animationFillMode:"both",animationName:ha},"&.fadeOutLeft":{animationFillMode:"both",animationName:ya},"&.fadeOutRight":{animationFillMode:"both",animationName:pa},"&.fadeOutDown":{animationFillMode:"both",animationName:ba},"&.fadeOutUp":{animationFillMode:"both",animationName:Ca},"&.fadeOutDownBig":{animationFillMode:"both",animationName:xa},"&.fadeOutUpBig":{animationFillMode:"both",animationName:Sa},"&.fadeOutLeftBig":{animationFillMode:"both",animationName:Ra},"&.fadeOutRightBig":{animationFillMode:"both",animationName:wa},"&.fadeOutTopLeft":{animationFillMode:"both",animationName:Na},"&.fadeOutBottomRight":{animationFillMode:"both",animationName:Ma},"&.fadeOutTopRight":{animationFillMode:"both",animationName:Ia},"&.fadeOutBottomLeft":{animationFillMode:"both",animationName:Oa}}),Fa=new i.Keyframe("flipInX",{from:{opacity:0,animationTimingFunction:"ease-in",transform:"perspective(400px) rotate3d(1, 0, 0, 90deg)"},"40%":{animationTimingFunction:"ease-in",transform:"perspective(400px) rotate3d(1, 0, 0, -20deg)"},"60%":{opacity:1,transform:"perspective(400px) rotate3d(1, 0, 0, 10deg)"},"80%":{transform:"perspective(400px) rotate3d(1, 0, 0, -5deg)"},to:{transform:"perspective(400px)"}}),Ba=new i.Keyframe("flipInY",{from:{opacity:0,animationTimingFunction:"ease-in",transform:"perspective(400px) rotate3d(0, 1, 0, 90deg)"},"40%":{animationTimingFunction:"ease-in",transform:"perspective(400px) rotate3d(0, 1, 0, -20deg)"},"60%":{opacity:1,transform:"perspective(400px) rotate3d(0, 1, 0, 10deg)"},"80%":{transform:"perspective(400px) rotate3d(0, 1, 0, -5deg)"},to:{transform:"perspective(400px)"}}),Ta=new i.Keyframe("flipOutX",{from:{transform:"perspective(400px)"},"40%":{opacity:1,transform:"perspective(400px) rotate3d(1, 0, 0, -20deg)"},to:{opacity:0,transform:"perspective(400px) rotate3d(1, 0, 0, 90deg)"}}),La=new i.Keyframe("flipOutY",{from:{transform:"perspective(400px)"},"40%":{opacity:1,transform:"perspective(400px) rotate3d(0, 1, 0, -15deg)"},to:{opacity:0,transform:"perspective(400px) rotate3d(0, 1, 0, 90deg)"}}),Va=()=>({"&.flipInX":{animationFillMode:"both",backfaceVisibility:"visible !important",animationName:Fa},"&.flipInY":{animationFillMode:"both",backfaceVisibility:"visible !important",animationName:Ba}}),ka=()=>({"&.flipOutX":{animationFillMode:"both",backfaceVisibility:"visible !important",animationDuration:`${.3*.75}s !important`,animationName:Ta},"&.flipOutY":{animationFillMode:"both",backfaceVisibility:"visible !important",animationDuration:`${.3*.75}s !important`,animationName:La}}),Ka=new i.Keyframe("lightSpeedInLeft",{from:{opacity:0,transform:"translate3d(-100%, 0, 0) skewX(30deg)"},"60%":{opacity:1,transform:"skewX(-20deg)"},"80%":{transform:"skewX(5deg)"},to:{transform:"translate3d(0, 0, 0)"}}),Da=new i.Keyframe("lightSpeedInRight",{from:{opacity:0,transform:"translate3d(100%, 0, 0) skewX(-30deg)"},"60%":{opacity:1,transform:"skewX(20deg)"},"80%":{transform:"skewX(-5deg)"},to:{transform:"translate3d(0, 0, 0)"}}),Pa=new i.Keyframe("lightSpeedOutLeft",{from:{opacity:1},to:{opacity:0,transform:"translate3d(-100%, 0, 0) skewX(-30deg)"}}),Ha=new i.Keyframe("lightSpeedOutRight",{from:{opacity:1},to:{opacity:0,transform:"translate3d(100%, 0, 0) skewX(30deg)"}}),za=()=>({"&.lightSpeedInLeft":{animationFillMode:"both",animationTimingFunction:"ease-out",animationName:Ka},"&.lightSpeedInRight":{animationFillMode:"both",animationTimingFunction:"ease-out",animationName:Da}}),Wa=()=>({"&.lightSpeedOutLeft":{animationFillMode:"both",animationTimingFunction:"ease-in",animationName:Pa},"&.lightSpeedOutRight":{animationFillMode:"both",animationTimingFunction:"ease-in",animationName:Ha}}),Aa=new i.Keyframe("rollIn",{from:{opacity:0,transform:"translate3d(-100%, 0, 0) rotate3d(0, 0, 1, -120deg)"},to:{opacity:1,transform:"translate3d(0, 0, 0)"}}),ja=new i.Keyframe("rollOut",{from:{opacity:1},to:{opacity:0,transform:"translate3d(100%, 0, 0) rotate3d(0, 0, 1, 120deg)"}}),Xa=()=>({"&.rollIn":{animationFillMode:"both",animationName:Aa}}),Ya=()=>({"&.rollOut":{animationFillMode:"both",animationName:ja}}),_a=new i.Keyframe("rotateIn",{from:{opacity:0,transform:"rotate3d(0, 0, 1, -200deg)"},to:{opacity:1,transform:"translate3d(0, 0, 0)"}}),Ga=new i.Keyframe("rotateInDownLeft",{from:{opacity:0,transform:"rotate3d(0, 0, 1, -45deg)"},to:{opacity:1,transform:"translate3d(0, 0, 0)"}}),qa=new i.Keyframe("rotateInDownRight",{from:{opacity:0,transform:"rotate3d(0, 0, 1, 45deg)"},to:{opacity:1,transform:"translate3d(0, 0, 0)"}}),Ea=new i.Keyframe("rotateInUpLeft",{from:{opacity:0,transform:"rotate3d(0, 0, 1, 45deg)"},to:{opacity:1,transform:"translate3d(0, 0, 0)"}}),Za=new i.Keyframe("rotateInUpRight",{from:{opacity:0,transform:"rotate3d(0, 0, 1, -90deg)"},to:{opacity:1,transform:"translate3d(0, 0, 0)"}}),Qa=new i.Keyframe("rotateOut",{from:{opacity:1},to:{opacity:0,transform:"rotate3d(0, 0, 1, 200deg)"}}),Ja=new i.Keyframe("rotateOutDownLeft",{from:{opacity:1},to:{opacity:0,transform:"rotate3d(0, 0, 1, 45deg)"}}),Ua=new i.Keyframe("rotateOutDownRight",{from:{opacity:1},to:{opacity:0,transform:"rotate3d(0, 0, 1, -45deg)"}}),eo=new i.Keyframe("rotateOutUpLeft",{from:{opacity:1},to:{opacity:0,transform:"rotate3d(0, 0, 1, -45deg)"}}),to=new i.Keyframe("rotateOutUpRight",{from:{opacity:1},to:{opacity:0,transform:"rotate3d(0, 0, 1, 90deg)"}}),no=()=>({"&.rotateIn":{animationFillMode:"both",transformOrigin:"center",animationName:_a},"&.rotateInDownLeft":{animationFillMode:"both",transformOrigin:"left bottom",animationName:Ga},"&.rotateInDownRight":{animationFillMode:"both",transformOrigin:"right bottom",animationName:qa},"&.rotateInUpLeft":{animationFillMode:"both",transformOrigin:"left bottom",animationName:Ea},"&.rotateInUpRight":{animationFillMode:"both",transformOrigin:"right bottom",animationName:Za}}),ao=()=>({"&.rotateOut":{animationFillMode:"both",transformOrigin:"center",animationName:Qa},"&.rotateOutDownLeft":{animationFillMode:"both",transformOrigin:"left bottom",animationName:Ja},"&.rotateOutDownRight":{animationFillMode:"both",transformOrigin:"right bottom",animationName:Ua},"&.rotateOutUpLeft":{animationFillMode:"both",transformOrigin:"left bottom",animationName:eo},"&.rotateOutUpRight":{animationFillMode:"both",transformOrigin:"right bottom",animationName:to}}),oo=new i.Keyframe("slideInDown",{from:{transform:"translate3d(0, -100%, 0)",visibility:"visible"},to:{transform:"translate3d(0, 0, 0)"}}),io=new i.Keyframe("slideInLeft",{from:{transform:"translate3d(-100%, 0, 0)",visibility:"visible"},to:{transform:"translate3d(0, 0, 0)"}}),lo=new i.Keyframe("slideInRight",{from:{transform:"translate3d(100%, 0, 0)",visibility:"visible"},to:{transform:"translate3d(0, 0, 0)"}}),ro=new i.Keyframe("slideInUp",{from:{transform:"translate3d(0, 100%, 0)",visibility:"visible"},to:{transform:"translate3d(0, 0, 0)"}}),so=new i.Keyframe("slideOutDown",{from:{transform:"translate3d(0, 0, 0)"},to:{transform:"translate3d(0, 100%, 0)",visibility:"hidden"}}),co=new i.Keyframe("slideOutLeft",{from:{transform:"translate3d(0, 0, 0)"},to:{transform:"translate3d(-100%, 0, 0)",visibility:"hidden"}}),uo=new i.Keyframe("slideOutRight",{from:{transform:"translate3d(0, 0, 0)"},to:{transform:"translate3d(100%, 0, 0)",visibility:"hidden"}}),mo=new i.Keyframe("slideOutUp",{from:{transform:"translate3d(0, 0, 0)"},to:{transform:"translate3d(0, -100%, 0)",visibility:"hidden"}}),fo=()=>({"&.slideInDown":{animationFillMode:"both",animationName:oo},"&.slideInLeft":{animationFillMode:"both",animationName:io},"&.slideInRight":{animationFillMode:"both",animationName:lo},"&.slideInUp":{animationFillMode:"both",animationName:ro}}),go=()=>({"&.slideOutDown":{animationFillMode:"both",animationName:so},"&.slideOutLeft":{animationFillMode:"both",animationName:co},"&.slideOutRight":{animationFillMode:"both",animationName:uo},"&.slideOutUp":{animationFillMode:"both",animationName:mo}}),ho=new i.Keyframe("zoomIn",{from:{opacity:0,transform:"scale3d(0.3, 0.3, 0.3)"},"50%":{opacity:1}}),yo=new i.Keyframe("zoomInDown",{from:{opacity:0,transform:"scale3d(0.1, 0.1, 0.1) translate3d(0, -1000px, 0)",animationTimingFunction:"cubic-bezier(0.55, 0.055, 0.675, 0.19)"},"60%":{opacity:1,transform:"scale3d(0.475, 0.475, 0.475) translate3d(0, 60px, 0)",animationTimingFunction:"cubic-bezier(0.175, 0.885, 0.32, 1)"}}),po=new i.Keyframe("zoomInLeft",{from:{opacity:0,transform:"scale3d(0.1, 0.1, 0.1) translate3d(-1000px, 0, 0)",animationTimingFunction:"cubic-bezier(0.55, 0.055, 0.675, 0.19)"},"60%":{opacity:1,transform:"scale3d(0.475, 0.475, 0.475) translate3d(10px, 0, 0)",animationTimingFunction:"cubic-bezier(0.175, 0.885, 0.32, 1)"}}),bo=new i.Keyframe("zoomInRight",{from:{opacity:0,transform:"scale3d(0.1, 0.1, 0.1) translate3d(1000px, 0, 0)",animationTimingFunction:"cubic-bezier(0.55, 0.055, 0.675, 0.19)"},"60%":{opacity:1,transform:"scale3d(0.475, 0.475, 0.475) translate3d(-10px, 0, 0)",animationTimingFunction:"cubic-bezier(0.175, 0.885, 0.32, 1)"}}),Co=new i.Keyframe("zoomInUp",{from:{opacity:0,transform:"scale3d(0.1, 0.1, 0.1) translate3d(0, 1000px, 0)",animationTimingFunction:"cubic-bezier(0.55, 0.055, 0.675, 0.19)"},"60%":{opacity:1,transform:"scale3d(0.475, 0.475, 0.475) translate3d(0, -60px, 0)",animationTimingFunction:"cubic-bezier(0.175, 0.885, 0.32, 1)"}}),xo=new i.Keyframe("zoomOut",{from:{opacity:1},"50%":{opacity:0,transform:"scale3d(0.3, 0.3, 0.3)"},to:{opacity:0}}),So=new i.Keyframe("zoomOutDown",{"40%":{opacity:1,transform:"scale3d(0.475, 0.475, 0.475) translate3d(0, -60px, 0)",animationTimingFunction:"cubic-bezier(0.55, 0.055, 0.675, 0.19)"},to:{opacity:0,transform:"scale3d(0.1, 0.1, 0.1) translate3d(0, 2000px, 0)",animationTimingFunction:"cubic-bezier(0.175, 0.885, 0.32, 1)"}}),Ro=new i.Keyframe("zoomOutLeft",{"40%":{opacity:1,transform:"scale3d(0.475, 0.475, 0.475) translate3d(42px, 0, 0)"},to:{opacity:0,transform:"scale(0.1) translate3d(-2000px, 0, 0)"}}),wo=new i.Keyframe("zoomOutRight",{"40%":{opacity:1,transform:"scale3d(0.475, 0.475, 0.475) translate3d(-42px, 0, 0)"},to:{opacity:0,transform:"scale(0.1) translate3d(2000px, 0, 0)"}}),No=new i.Keyframe("zoomOutUp",{"40%":{opacity:1,transform:"scale3d(0.475, 0.475, 0.475) translate3d(0, 60px, 0)",animationTimingFunction:"cubic-bezier(0.55, 0.055, 0.675, 0.19)"},to:{opacity:0,transform:"scale3d(0.1, 0.1, 0.1) translate3d(0, -2000px, 0)",animationTimingFunction:"cubic-bezier(0.175, 0.885, 0.32, 1)"}}),Mo=()=>({"&.zoomIn":{animationFillMode:"both",animationName:ho},"&.zoomInDown":{animationFillMode:"both",animationName:yo},"&.zoomInLeft":{animationFillMode:"both",animationName:po},"&.zoomInRight":{animationFillMode:"both",animationName:bo},"&.zoomInUp":{animationFillMode:"both",animationName:Co}}),Io=()=>({"&.zoomOut":{animationFillMode:"both",animationName:xo},"&.zoomOutDown":{animationFillMode:"both",transformOrigin:"center bottom",animationName:So},"&.zoomOutLeft":{animationFillMode:"both",transformOrigin:"left center",animationName:Ro},"&.zoomOutRight":{animationFillMode:"both",transformOrigin:"right center",animationName:wo},"&.zoomOutUp":{animationFillMode:"both",transformOrigin:"center bottom",animationName:No}}),Oo=e=>({[e.componentCls]:{"&-enter":{background:"transparent",animationDuration:".3s !important",...An(),...ea(),...$a(),...Va(),...za(),...no(),...Xa(),...Mo(),...fo()},"&-leave":{display:"none",background:"transparent",animationDuration:".3s !important",...jn(),...ta(),...va(),...ka(),...Wa(),...ao(),...Ya(),...Io(),...go()}}});function $o(e){return i.useStyle("LayoutPageTranstion",n=>{const a=i.mergeToken(n);return[Oo(a)]},e)}const vo=t.defineComponent({name:"PageTransition",props:{disabled:{type:Boolean,default:!1},reverse:{type:Boolean,default:!0},name:{type:String,default:"bounce"},direction:String},setup(e,{slots:n}){const a=d.getPrefixCls({suffixCls:"page-transition",isPor:!0}),{wrapSSR:o,hashId:c}=$o(a),r=(h,y)=>{if(h.length===0||h==="x"||h==="y")return h;let p=y.indexOf(h);return p=p%2===1?p-1:p+1,y[p]},s=h=>{const y=wt.preset.find(b=>e.name===b.name);if(y===void 0)return"";let p="";e.direction===void 0?p=y.directions[0]:p=y.directions.find(b=>b===e.direction)||"",p=p===void 0||p==="default"?"":p,p!==""&&(p=h&&e.reverse?r(p,y.directions):p,p=p[0].toUpperCase()+p.substring(1));const B=h?"Out":"In";return y.name+B+p},f=t.computed(()=>[s(!1),`${a}-enter`,c.value].join(" ")),N=t.computed(()=>[s(!0),`${a}-leave`,c.value].join(" "));return()=>e.disabled?n.default?.():o(t.createVNode(t.Transition,{enterActiveClass:f.value,leaveActiveClass:N.value},{default:()=>[n.default?.()]}))}});function Fo(e){const n=ne.useRoute(),a=ne.useRouter(),o=()=>e.value?.tabsComRef();return{tabsRouter:{clean:()=>o()?.clean(),close:c=>o()?.close(c?.name||n.name,c?.callback),change:(c,r)=>o()?.change(r||a.currentRoute.value,{type:"merge",params:c})}}}function Bo(e){const n=ne.useRouter(),a=e?.defaultOpen??!0,o=e?.autoClose??!0,c=n.getRoutes(),r=t.ref([]),s=t.reactive({menuMap:new Map,levelMenuData:[]}),f=t.reactive({openKeys:[],selectedKeys:[]}),N=t.computed(()=>n.currentRoute.value),h=b=>{const l=Ee(Ze(b));r.value=A.cloneDeep(l.menuData),s.menuMap=l.menuMap,s.levelMenuData=l.getLevel()};e?.menuData&&t.isRef(e.menuData)&&t.watch(()=>e.menuData.value,b=>h(b),{deep:!0}),h(e?.menuData?t.isRef(e.menuData)?e.menuData.value:e.menuData:c);const y=t.computed(()=>Fe({menuData:r.value,menuMap:s.menuMap,levelMenuData:s.levelMenuData},{path:N.value.path,name:N.value.name})),p=t.computed(()=>{const b=y.value.map(l=>{const S=$e(l.meta?.hideChildrenInMenu?[]:l.children||[]);return{name:l.name,icon:l.meta?.icon,path:l.redirect||S||l.path||"",breadcrumbName:l.meta?.title||""}}).filter(l=>l.breadcrumbName);return tt(b,"breadcrumbName")}),B=()=>{f.openKeys=y.value.filter(b=>b.name!==N.value.name).map(b=>b.name)};return t.watch(()=>N.value,b=>{b&&(f.selectedKeys=y.value.map(l=>l.name),o&&B())},{immediate:!0,deep:!0}),t.onMounted(()=>{a&&B()}),an({...t.toRefs(s),menuData:r,matchedMenu:y,matchedKeys:f}),{menuState:s,menuData:r,matchedKeys:f,matchedMenu:y,breadcrumbRouters:p}}g.GBaseMenu=Me,g.GPageTransition=vo,g.GProAppPage=vn,g.GProLayout=In,g.GlobalFooter=at,g.LazyIcon=ye,g.PageContainer=Wt,g.SiderMenuWrapper=gt,g.animateSetting=wt,g.baseMenuProps=Ye,g.calculateCss=pe,g.checkMenuDark=fe,g.clearMenuItem=Ze,g.colorList=Bt,g.coverToNewToken=Ie,g.cssValueToNumber=Le,g.darkThemeProps=lt,g.defaultContextKey=Ae,g.defaultSettings=z,g.extractCSSVariableName=Te,g.filterTree=Ue,g.findLastKey=ve,g.flatMap=Qe,g.getCssVarOrUnit=J,g.getCssVariableValue=Be,g.getLastPath=$e,g.getLayoutTheme=we,g.getMatchedList=Fe,g.getMenuData=Ee,g.getMenuFirstChildren=Je,g.getTokenLayoutTheme=Q,g.handlePathKey=Oe,g.hasDarkValue=yt,g.layout=et,g.provideProLayoutContext=je,g.removeDuplicatesByName=tt,g.toggleLayoutTheme=on,g.useDarkTheme=ht,g.useLayoutMenu=Bo,g.useProLayout=Fo,g.useProLayoutContext=G,g.useProLayoutMenuContext=Se,Object.defineProperty(g,Symbol.toStringTag,{value:"Module"})}));
|
|
@@ -6,6 +6,11 @@ import type { BreadcrumbProps, ProRoute } from './Breadcrumb';
|
|
|
6
6
|
import type { AppRouteModule, MenuMeta } from './RouteTypings';
|
|
7
7
|
import type { HeaderLayoutProps, SiderLayoutProps } from './typings';
|
|
8
8
|
export type DefaultRender = WithFalse<CustomRender>;
|
|
9
|
+
export interface LogoRenderProps {
|
|
10
|
+
logo: CustomRender;
|
|
11
|
+
title: CustomRender;
|
|
12
|
+
props?: LogoContentProps;
|
|
13
|
+
}
|
|
9
14
|
export type BreadcrumbRender = BreadcrumbProps['itemRender'];
|
|
10
15
|
export type HeaderRender = WithFalse<(props: HeaderLayoutProps, defaultDom: CustomRender) => CustomRender>;
|
|
11
16
|
export type HeaderContentRender = WithFalse<(props?: HeaderLayoutProps) => CustomRender>;
|
|
@@ -25,7 +30,7 @@ export type SubMenuItemRender = WithFalse<(args: {
|
|
|
25
30
|
export type MenuContentRender = WithFalse<(props: SiderLayoutProps, defaultDom: CustomRender) => CustomRender>;
|
|
26
31
|
export type MenuFooterRender = WithFalse<(props?: SiderLayoutProps) => CustomRender>;
|
|
27
32
|
export type MenuHeaderRender = WithFalse<(props?: SiderLayoutProps) => CustomRender>;
|
|
28
|
-
export type LogoRender = WithFalse<(
|
|
33
|
+
export type LogoRender = WithFalse<(props: LogoRenderProps) => CustomRender>;
|
|
29
34
|
export type CollapsedIconRender = WithFalse<() => CustomRender>;
|
|
30
35
|
export type CollapsedButtonRender = WithFalse<(collapsed: boolean, dom?: CustomRender) => CustomRender>;
|
|
31
36
|
export type ProSlots = Readonly<{
|
|
@@ -69,7 +74,7 @@ export type ProLayoutSlotsType = SlotsType<{
|
|
|
69
74
|
extraRightDropdownRender(): void;
|
|
70
75
|
siderActionsRender(): void;
|
|
71
76
|
collapsedIconRender(): void;
|
|
72
|
-
logoRender(
|
|
77
|
+
logoRender(props: LogoRenderProps): void;
|
|
73
78
|
footerRender(props?: BasicLayoutProps): void;
|
|
74
79
|
rightContentRender(props?: HeaderLayoutProps): void;
|
|
75
80
|
tabsRouteItemRender(route: AppRouteModule): void;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gx-design-vue/pro-layout",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.1.0-beta.
|
|
4
|
+
"version": "0.1.0-beta.147",
|
|
5
5
|
"description": "Gx Design Pro Layout",
|
|
6
6
|
"publishConfig": {
|
|
7
7
|
"access": "public",
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
"@gx-design-vue/color-picker": "^0.2.0-beta.38",
|
|
38
38
|
"@gx-design-vue/pro-app": "^0.1.0-beta.33",
|
|
39
39
|
"@gx-design-vue/pro-hooks": "^0.2.0-beta.54",
|
|
40
|
-
"@gx-design-vue/pro-modal": "^0.2.0-beta.
|
|
40
|
+
"@gx-design-vue/pro-modal": "^0.2.0-beta.36",
|
|
41
41
|
"@gx-design-vue/pro-provider": "^0.1.0-beta.122",
|
|
42
42
|
"@gx-design-vue/pro-utils": "^0.2.0-beta.80",
|
|
43
43
|
"@gx-design-vue/pro-watermark": "^0.2.0-beta.14",
|