@gx-design-vue/pro-layout 0.1.0-beta.4 → 0.1.0-beta.6
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/index.d.ts +1 -1
- package/dist/pro-layout.mjs +70 -74
- package/dist/pro-layout.umd.js +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -8,6 +8,7 @@ import GProLayout from './ProLayout';
|
|
|
8
8
|
import { handleThemeConfig } from './utils';
|
|
9
9
|
export * from './Context';
|
|
10
10
|
export * from './typings';
|
|
11
|
+
export * from './route';
|
|
11
12
|
export * from './utils/getMenuData';
|
|
12
13
|
export { createContext, useContext } from './hooks/context';
|
|
13
14
|
export type { ContextType, CreateContext } from './hooks/context';
|
|
@@ -24,6 +25,5 @@ export type { DefaultHeaderProps } from './components/GlobalHeader/DefaultHeader
|
|
|
24
25
|
export type { GlobalFooterProps } from './components/GlobalFooter';
|
|
25
26
|
export type { ProSettings } from './defaultSettings';
|
|
26
27
|
export type { BasicLayoutProps } from './ProLayout';
|
|
27
|
-
export type { AppRouteModule, MenuDataItem } from './route';
|
|
28
28
|
export { GProLayout, BaseMenu, PageLoading, handleThemeConfig, SiderMenuWrapper, PageContainer, };
|
|
29
29
|
export type { PageContainerProps, AnimateConfig };
|
package/dist/pro-layout.mjs
CHANGED
|
@@ -4598,92 +4598,88 @@ const Zd = (e) => {
|
|
|
4598
4598
|
return (v = n.default) === null || v === void 0 ? void 0 : v.call(n)[0];
|
|
4599
4599
|
};
|
|
4600
4600
|
}
|
|
4601
|
-
}), ef = (e) => {
|
|
4602
|
-
|
|
4603
|
-
|
|
4604
|
-
|
|
4605
|
-
|
|
4606
|
-
|
|
4607
|
-
h1: {
|
|
4608
|
-
color: e.colorBgSpotlight
|
|
4609
|
-
}
|
|
4601
|
+
}), ef = (e) => ({
|
|
4602
|
+
[`${e.proComponentsCls}-header`]: {
|
|
4603
|
+
"&-light": {
|
|
4604
|
+
[`${e.componentCls}-logo`]: {
|
|
4605
|
+
h1: {
|
|
4606
|
+
color: e.colorBgSpotlight
|
|
4610
4607
|
}
|
|
4611
4608
|
}
|
|
4609
|
+
}
|
|
4610
|
+
},
|
|
4611
|
+
[e.componentCls]: {
|
|
4612
|
+
position: "relative",
|
|
4613
|
+
background: "transparent",
|
|
4614
|
+
marginBlock: 0,
|
|
4615
|
+
paddingInline: 16,
|
|
4616
|
+
width: "100%",
|
|
4617
|
+
height: "100%",
|
|
4618
|
+
boxShadow: "0 1px 4px rgba(0,21,41,.08)",
|
|
4619
|
+
boxSizing: "border-box",
|
|
4620
|
+
"&-mix": {
|
|
4621
|
+
boxShadow: "0 1px 4px 0 rgba(0,21,41,.12)"
|
|
4612
4622
|
},
|
|
4613
|
-
|
|
4614
|
-
|
|
4615
|
-
|
|
4623
|
+
"&-wide": {
|
|
4624
|
+
boxShadow: "0 1px 4px 0 rgba(0,21,41,.12)",
|
|
4625
|
+
padding: 0,
|
|
4626
|
+
[`${e.componentCls}-main`]: {
|
|
4627
|
+
margin: "0 auto"
|
|
4628
|
+
}
|
|
4629
|
+
},
|
|
4630
|
+
["&-main"]: {
|
|
4631
|
+
display: "flex",
|
|
4632
|
+
height: "100%",
|
|
4633
|
+
"&-left": {
|
|
4634
|
+
display: "flex",
|
|
4635
|
+
minWidth: 192
|
|
4636
|
+
}
|
|
4637
|
+
},
|
|
4638
|
+
"> a": {
|
|
4639
|
+
height: "100%"
|
|
4640
|
+
},
|
|
4641
|
+
"> *": {
|
|
4642
|
+
height: "100%"
|
|
4643
|
+
},
|
|
4644
|
+
[`${e.proComponentsCls}-layout-apps-icon`]: {
|
|
4645
|
+
marginInlineEnd: 16
|
|
4646
|
+
},
|
|
4647
|
+
"&-collapsed-button": {
|
|
4616
4648
|
display: "flex",
|
|
4617
4649
|
alignItems: "center",
|
|
4618
|
-
|
|
4619
|
-
|
|
4620
|
-
|
|
4621
|
-
|
|
4622
|
-
|
|
4623
|
-
"
|
|
4624
|
-
|
|
4625
|
-
},
|
|
4626
|
-
"&-wide": {
|
|
4627
|
-
boxShadow: "0 1px 4px 0 rgba(0,21,41,.12)",
|
|
4628
|
-
padding: 0,
|
|
4629
|
-
[`${e.componentCls}-main`]: {
|
|
4630
|
-
margin: "0 auto"
|
|
4631
|
-
}
|
|
4632
|
-
},
|
|
4633
|
-
["&-main"]: {
|
|
4650
|
+
fontSize: "20px",
|
|
4651
|
+
marginInlineEnd: "16px"
|
|
4652
|
+
},
|
|
4653
|
+
"&-logo": {
|
|
4654
|
+
position: "relative",
|
|
4655
|
+
marginInlineEnd: "16px",
|
|
4656
|
+
a: {
|
|
4634
4657
|
display: "flex",
|
|
4658
|
+
alignItems: "center",
|
|
4635
4659
|
height: "100%",
|
|
4636
|
-
"
|
|
4637
|
-
|
|
4638
|
-
minWidth: 192
|
|
4639
|
-
}
|
|
4640
|
-
},
|
|
4641
|
-
"> a": {
|
|
4642
|
-
height: "100%"
|
|
4660
|
+
minHeight: "22px",
|
|
4661
|
+
fontSize: "20px"
|
|
4643
4662
|
},
|
|
4644
|
-
|
|
4645
|
-
|
|
4663
|
+
img: { height: "28px" },
|
|
4664
|
+
h1: {
|
|
4665
|
+
marginBlock: 0,
|
|
4666
|
+
marginInline: 0,
|
|
4667
|
+
marginInlineStart: 12,
|
|
4668
|
+
fontWeight: "500",
|
|
4669
|
+
color: e.colorWhite,
|
|
4670
|
+
fontSize: 16
|
|
4646
4671
|
},
|
|
4647
|
-
|
|
4648
|
-
marginInlineEnd: 16
|
|
4649
|
-
},
|
|
4650
|
-
"&-collapsed-button": {
|
|
4672
|
+
"&-mix": {
|
|
4651
4673
|
display: "flex",
|
|
4652
|
-
alignItems: "center"
|
|
4653
|
-
fontSize: "20px",
|
|
4654
|
-
marginInlineEnd: "16px"
|
|
4655
|
-
},
|
|
4656
|
-
"&-logo": {
|
|
4657
|
-
position: "relative",
|
|
4658
|
-
marginInlineEnd: "16px",
|
|
4659
|
-
a: {
|
|
4660
|
-
display: "flex",
|
|
4661
|
-
alignItems: "center",
|
|
4662
|
-
height: "100%",
|
|
4663
|
-
minHeight: "22px",
|
|
4664
|
-
fontSize: "20px"
|
|
4665
|
-
},
|
|
4666
|
-
img: { height: "28px" },
|
|
4667
|
-
h1: {
|
|
4668
|
-
marginBlock: 0,
|
|
4669
|
-
marginInline: 0,
|
|
4670
|
-
marginInlineStart: 12,
|
|
4671
|
-
fontWeight: "500",
|
|
4672
|
-
color: e.colorWhite,
|
|
4673
|
-
fontSize: 16
|
|
4674
|
-
},
|
|
4675
|
-
"&-mix": {
|
|
4676
|
-
display: "flex",
|
|
4677
|
-
alignItems: "center"
|
|
4678
|
-
}
|
|
4679
|
-
},
|
|
4680
|
-
"&-logo-mobile": {
|
|
4681
|
-
minWidth: "24px",
|
|
4682
|
-
marginInlineEnd: 0
|
|
4674
|
+
alignItems: "center"
|
|
4683
4675
|
}
|
|
4676
|
+
},
|
|
4677
|
+
"&-logo-mobile": {
|
|
4678
|
+
minWidth: "24px",
|
|
4679
|
+
marginInlineEnd: 0
|
|
4684
4680
|
}
|
|
4685
|
-
}
|
|
4686
|
-
}, Ro = {
|
|
4681
|
+
}
|
|
4682
|
+
}), Ro = {
|
|
4687
4683
|
...Z,
|
|
4688
4684
|
...bn
|
|
4689
4685
|
}, tf = (e, t) => e === !1 ? null : e ? e(t, null) : t, nf = /* @__PURE__ */ W({
|
package/dist/pro-layout.umd.js
CHANGED
|
@@ -16,4 +16,4 @@
|
|
|
16
16
|
${e.antCls}-menu-submenu-title:hover`]:{color:(se=(Y=e.layout)==null?void 0:Y.header)==null?void 0:se.colorTextMenuActive,borderRadius:e.borderRadius,transition:"none",backgroundColor:(Oe=(Ie=e.layout)==null?void 0:Ie.header)==null?void 0:Oe.colorBgMenuItemSelected,[`${e.antCls}-menu-submenu-arrow`]:{color:(Te=(Ne=e.layout)==null?void 0:Ne.header)==null?void 0:Te.colorTextMenuActive}},[`${e.antCls}-menu-item-selected`]:{color:(De=(ze=e.layout)==null?void 0:ze.header)==null?void 0:De.colorTextMenuSelected,borderRadius:e.borderRadius,backgroundColor:(to=(Ee=e.layout)==null?void 0:Ee.header)==null?void 0:to.colorBgMenuItemSelected}}}},[`${e.antCls}-menu-sub${e.antCls}-menu-inline`]:{backgroundColor:"transparent!important"},[`${e.antCls}-menu-submenu-popup`]:{backgroundColor:"rgba(255, 255, 255, 0.42)","-webkit-backdrop-filter":"blur(8px)",backdropFilter:"blur(8px)",[`${e.antCls}-menu`]:{background:"transparent !important",backgroundColor:"transparent !important",[`${e.antCls}-menu-item:active,
|
|
17
17
|
${e.antCls}-menu-submenu-title:active`]:{backgroundColor:"transparent!important"}},[`${e.antCls}-menu-item-selected`]:{color:(ao=(no=e.layout)==null?void 0:no.sider)==null?void 0:ao.colorTextMenuSelected},[`${e.antCls}-menu-submenu-selected`]:{color:(ro=(oo=e.layout)==null?void 0:oo.sider)==null?void 0:ro.colorTextMenuSelected},[`${e.antCls}-menu:not(${e.antCls}-menu-horizontal)`]:{[`${e.antCls}-menu-item-selected`]:{backgroundColor:"rgba(0, 0, 0, 0.04)",borderRadius:e.borderRadius,color:(lo=(io=e.layout)==null?void 0:io.sider)==null?void 0:lo.colorTextMenuSelected},[`${e.antCls}-menu-item:hover,
|
|
18
18
|
${e.antCls}-menu-item-active,
|
|
19
|
-
${e.antCls}-menu-submenu-title:hover`]:{color:(so=(co=e.layout)==null?void 0:co.sider)==null?void 0:so.colorTextMenuActive,borderRadius:e.borderRadius,[`${e.antCls}-menu-submenu-arrow`]:{color:(fo=(uo=e.layout)==null?void 0:uo.sider)==null?void 0:fo.colorTextMenuActive}}}}}},hd=e=>{var t,n;return{[e.componentCls]:{[`&${e.componentCls}-wide`]:{backgroundColor:e.colorBgLayout,[`${e.componentCls}-content`]:{margin:0,marginInlineStart:20}},[`${e.componentCls}-content`]:{position:"relative",margin:(n=(t=e.layout)==null?void 0:t.pageContainer)==null?void 0:n.paddingBlockPageContainerContent},[`${e.componentCls}-container`]:{width:"100%",display:"flex",flexDirection:"column",minWidth:0,minHeight:0,backgroundColor:"transparent"}}}},gd=e=>{var t,n;return{[`${e.componentCls}`]:{"&-fixed":{width:"100%",height:62,background:"transparent"}},[`${e.componentWrapCls}`]:{background:e.colorBgContainer,[`${e.antCls}-tabs-nav`]:{paddingLeft:16,[`${e.antCls}-tabs-tab:not(${e.antCls}-tabs-tab-active)`]:{borderBottomColor:"transparent"},[`${e.componentCls}-title`]:{display:"flex",alignItems:"center",gap:8,[`${e.componentCls}-reload-btn,${e.componentCls}-close-btn`]:{color:e.colorTextSecondary,fontSize:12,margin:0,cursor:"pointer",transition:"color .3s","&:hover":{color:e.colorPrimary}}},[`${e.componentCls}-dropdown-menu-btn`]:{marginInlineEnd:8,padding:12,fontSize:16,cursor:"pointer"}},"&-fixed":{position:"fixed",height:62,top:((n=(t=e.layout)==null?void 0:t.header)==null?void 0:n.heightLayoutHeader)||K.headerHeight,right:0,zIndex:9,transition:"width .2s"}}}};function bd(e){return Ke("ProMultiTabs",t=>{const n=pt(t,{componentWrapCls:`${t.componentCls}-wrap`});return[gd(n)]},e)}const pd=[{key:"closeOthersTabs",label:"关闭其他"},{key:"closeLeftTabs",label:"关闭左侧"},{key:"closeRightTabs",label:"关闭右侧"},{key:"reloadPage",label:"刷新当前页"}];function yd(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!o.isVNode(e)}const vd=w.Tabs.TabPane,xd=w.Menu.Item,Cd=o.defineComponent({props:{..._a,visible:{type:Boolean,default:!0}},inheritAttrs:!1,setup(e){const{isMobile:t,isFixedMultiTab:n}=o.toRefs(e),a=o.ref(!1),r=o.reactive({activeKey:"",contextMenuActiveKey:""}),i=We.useRouter(),{menuData:l,getPrefixCls:c}=ee(),d=c({isPor:!0,suffixCls:"multi-tab"}),{wrapSSR:m,hashId:v}=bd(d),s=o.ref([]);o.watch(s,()=>{var p;(p=e.onChangeTabs)==null||p.call(e,te.cloneDeep(o.unref(s)))},{deep:!0});const O=o.computed(()=>i.currentRoute.value.path),b=o.computed(()=>n.value&&!t.value),T=o.computed(()=>b.value?`calc(100% - ${e.collapsed?e.collapsedWidth:e.siderWidth}px)`:"100%"),u=o.computed(()=>L.classNames(`${d}-wrap`,{[`${v.value}`]:!0,[`${d}-wrap-fixed`]:e.isFixedMultiTab,[`${d}-wrap-loading`]:e.loading})),h=o.computed(()=>{const p={display:e.visible?void 0:"none"};return e.isFixedMultiTab?{margin:0,width:T.value,paddingTop:"6px",zIndex:100,...p}:p}),f=p=>p.fullPath===O.value,y=p=>{if(p.name&&p.meta&&p.meta.tagHidden!==!0){const C=p.fullPath||p.path,P=s.value.find(A=>A.fullPath===C),R={path:p.path,fullPath:C,query:p.query,params:p.params,name:p.name,meta:{...p.meta}};P?Object.assign(P,R):p.meta.tagFixed?s.value.unshift(R):s.value.push(R),f(p)&&(r.activeKey=C)}},x=p=>{p.forEach(C=>{C.meta&&C.meta.tagFixed&&y(C),C.children&&x(C.children)})};o.watch(()=>l.value,p=>{x(p)},{deep:!0,immediate:!0}),o.watch(()=>i.currentRoute.value,p=>{y(p)},{deep:!0,immediate:!0});const S=()=>{const p=s.value.slice(-1)[0];p?i.push(p):i.push("/")},k=async p=>{const C=s.value.find(P=>p===P.fullPath);s.value=s.value.filter(P=>P.fullPath!==p),C&&f(C)&&S()},M=p=>{const C=s.value.find(P=>P.path===p);r.activeKey!==(C==null?void 0:C.fullPath)&&(C!=null&&C.fullPath)&&i.push(C==null?void 0:C.fullPath)},I=()=>{var p;a.value=!0,e.onReloadPage&&((p=e.onReloadPage)==null||p.call(e)),setTimeout(()=>{a.value=!1},500)},F=p=>p.meta&&p.meta.tagFixed,B=p=>r[p],N=(p,C)=>{const P=s.value.findIndex(R=>R.fullPath===B(C));switch(p){case"closeOthersTabs":s.value=s.value.filter(R=>{var A;return R.fullPath===B(C)||((A=R.meta)==null?void 0:A.tagFixed)});break;case"closeLeftTabs":P&&(s.value=s.value.filter((R,A)=>{var U;return A>=P||((U=R.meta)==null?void 0:U.tagFixed)}));break;case"closeRightTabs":P&&(s.value=s.value.filter((R,A)=>{var U;return A<=P||((U=R.meta)==null?void 0:U.tagFixed)}));break;case"reloadPage":(P===0||P)&&r.activeKey===B(C)&&I();break}r.activeKey!==B(C)&&i.push(B(C))},_=(p,C)=>{const P=s.value.findIndex(R=>R.fullPath===C);switch(p){case"closeOthersTabs":return s.value.filter((X,E)=>{var H;return E!==P&&!((H=X.meta)!=null&&H.tagFixed)}).length===0;case"closeLeftTabs":return s.value.filter((X,E)=>{var H;return E<P&&!((H=X.meta)!=null&&H.tagFixed)}).length===0;case"closeRightTabs":return s.value.filter((X,E)=>{var H;return E>P&&!((H=X.meta)!=null&&H.tagFixed)}).length===0}},z=p=>{let C;const{path:P,stateType:R}=p;return o.createVNode(w.Menu,{selectedKeys:[],onClick:({key:A})=>N(A,R)},yd(C=pd.map(A=>o.createVNode(xd,{key:A.key,disabled:_(A.key,P)},{default:()=>[A.label]})))?C:{default:()=>[C]})},j=p=>{const{router:C}=p;return o.createVNode(w.Dropdown,{trigger:"contextmenu",overlay:o.createVNode(z,{path:(C==null?void 0:C.fullPath)||"",stateType:"contextMenuActiveKey"},null),onOpenChange:P=>{r.contextMenuActiveKey=P&&C.fullPath||""}},{default:()=>{var P;return[o.createVNode("div",{class:[`${d}-title`,v.value]},[(P=C.meta)==null?void 0:P.title,r.activeKey===C.fullPath&&o.createVNode(Q.ReloadOutlined,{class:[`${d}-reload-btn`,v.value],spin:a.value,onClick:R=>{R.stopPropagation(),!a.value&&I()}},null),s.value.length>1&&!F(C)&&o.createVNode(Q.CloseOutlined,{class:[`${d}-close-btn`,v.value],onClick:R=>{R.stopPropagation(),!a.value&&k((C==null?void 0:C.fullPath)||"")}},null)])]}})};return()=>m(o.createVNode(o.Fragment,null,[!!e.isFixedMultiTab&&o.withDirectives(o.createVNode("div",{class:[`${d}-fixed`,v.value]},null),[[o.vShow,e.visible]]),o.createVNode(w.Tabs,{hideAdd:!0,type:"editable-card",style:h.value,class:u.value,activeKey:r.activeKey,onTabClick:M},{default:()=>[s.value.map(p=>o.createVNode(vd,{key:p.fullPath,closable:!1,tab:o.createVNode(j,{router:p},null)},null))],rightExtra:()=>o.createVNode(w.Dropdown,{overlay:o.createVNode(z,{path:r.activeKey,stateType:"activeKey"},null)},{default:()=>[o.createVNode(Q.EllipsisOutlined,{class:[`${d}-dropdown-menu-btn`,v.value],rotate:90},null)]})})]))}}),{Content:wd}=w.Layout,rt=(e,{slots:t,attrs:n})=>{var T;const{hashId:a,prefixCls:r,isMobile:i,loading:l,collapsed:c,siderWidth:d,isShowTabsBar:m,isFixedMultiTab:v,onReloadPage:s,onChangeTabs:O}=e;if(e.isChildrenLayout)return(T=t.default)==null?void 0:T.call(t);const{flatMenuData:b}=ee();return o.createVNode(o.Fragment,null,[o.createVNode(Cd,{visible:o.unref(b).length>0&&m,isMobile:i,loading:l,isFixedMultiTab:v,siderWidth:d,collapsed:c,onReloadPage:s,onChangeTabs:O},null),o.createVNode(wd,{style:n.style,class:[`${r}-content`]},{default:()=>{var u;return[l&&o.createVNode(Qt,null,null),o.createVNode("div",{class:[`${r}-content-spin-container`,a],style:{opacity:l?"0":void 0}},[(u=t.default)==null?void 0:u.call(t)])]}})])};rt.inheritAttrs=!1,rt.displayName="wrap-content";const Sd=e=>{var t,n,a,r;return{[`${e.proComponentsCls}-basic-layout`]:{[`${e.antCls}-layout-header${e.componentCls}${e.componentCls}-light`]:{background:((n=(t=e.layout)==null?void 0:t.header)==null?void 0:n.colorBgMenu)||e.colorBgElevated},[`${e.antCls}-layout-header${e.componentCls}${e.componentCls}-dark`]:{background:(r=(a=e.layout)==null?void 0:a.header)==null?void 0:r.colorDarkBgMenu,[`${e.proComponentsCls}-global-header-collapsed-button`]:{color:"#fff"}},[`${e.antCls}-layout-header${e.componentCls}`]:{zIndex:19,paddingBlock:0,paddingInline:0,WebkitBackdropFilter:"blur(8px)",backdropFilter:"blur(8px)",transition:"background-color 0.3s cubic-bezier(0.645, 0.045, 0.355, 1)",[`&${e.proComponentsCls}`]:{"&-fixed-header":{position:"fixed",width:"100%",zIndex:9,top:0,"&-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:e.colorText}}},"&-header-realDark":{boxShadow:"0 2px 8px 0 rgba(0, 0, 0, 65%)"},"&-header-actions-header-action":{transition:"width 0.3s cubic-bezier(0.645, 0.045, 0.355, 1)"}}}}}};function He(){return He=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},He.apply(this,arguments)}var Va=function(){if(typeof Map<"u")return Map;function e(t,n){var a=-1;return t.some(function(r,i){return r[0]===n?(a=i,!0):!1}),a}return function(){function t(){this.__entries__=[]}return Object.defineProperty(t.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(n){var a=e(this.__entries__,n),r=this.__entries__[a];return r&&r[1]},t.prototype.set=function(n,a){var r=e(this.__entries__,n);~r?this.__entries__[r][1]=a:this.__entries__.push([n,a])},t.prototype.delete=function(n){var a=this.__entries__,r=e(a,n);~r&&a.splice(r,1)},t.prototype.has=function(n){return!!~e(this.__entries__,n)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(n,a){a===void 0&&(a=null);for(var r=0,i=this.__entries__;r<i.length;r++){var l=i[r];n.call(a,l[1],l[0])}},t}()}(),Ut=typeof window<"u"&&typeof document<"u"&&window.document===document,it=function(){return typeof global<"u"&&global.Math===Math?global:typeof self<"u"&&self.Math===Math?self:typeof window<"u"&&window.Math===Math?window:Function("return this")()}(),Md=function(){return typeof requestAnimationFrame=="function"?requestAnimationFrame.bind(it):function(e){return setTimeout(function(){return e(Date.now())},1e3/60)}}(),Id=2;function Od(e,t){var n=!1,a=!1,r=0;function i(){n&&(n=!1,e()),a&&c()}function l(){Md(i)}function c(){var d=Date.now();if(n){if(d-r<Id)return;a=!0}else n=!0,a=!1,setTimeout(l,t);r=d}return c}var Nd=20,Td=["top","right","bottom","left","width","height","size","weight"],$d=typeof MutationObserver<"u",Bd=function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=Od(this.refresh.bind(this),Nd)}return e.prototype.addObserver=function(t){~this.observers_.indexOf(t)||this.observers_.push(t),this.connected_||this.connect_()},e.prototype.removeObserver=function(t){var n=this.observers_,a=n.indexOf(t);~a&&n.splice(a,1),!n.length&&this.connected_&&this.disconnect_()},e.prototype.refresh=function(){var t=this.updateObservers_();t&&this.refresh()},e.prototype.updateObservers_=function(){var t=this.observers_.filter(function(n){return n.gatherActive(),n.hasActive()});return t.forEach(function(n){return n.broadcastActive()}),t.length>0},e.prototype.connect_=function(){!Ut||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),$d?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},e.prototype.disconnect_=function(){!Ut||!this.connected_||(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(t){var n=t.propertyName,a=n===void 0?"":n,r=Td.some(function(i){return!!~a.indexOf(i)});r&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),La=function(e,t){for(var n=0,a=Object.keys(t);n<a.length;n++){var r=a[n];Object.defineProperty(e,r,{value:t[r],enumerable:!1,writable:!1,configurable:!0})}return e},Pe=function(e){var t=e&&e.ownerDocument&&e.ownerDocument.defaultView;return t||it},Ha=ct(0,0,0,0);function lt(e){return parseFloat(e)||0}function za(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return t.reduce(function(a,r){var i=e["border-"+r+"-width"];return a+lt(i)},0)}function Rd(e){for(var t=["top","right","bottom","left"],n={},a=0,r=t;a<r.length;a++){var i=r[a],l=e["padding-"+i];n[i]=lt(l)}return n}function Pd(e){var t=e.getBBox();return ct(0,0,t.width,t.height)}function kd(e){var t=e.clientWidth,n=e.clientHeight;if(!t&&!n)return Ha;var a=Pe(e).getComputedStyle(e),r=Rd(a),i=r.left+r.right,l=r.top+r.bottom,c=lt(a.width),d=lt(a.height);if(a.boxSizing==="border-box"&&(Math.round(c+i)!==t&&(c-=za(a,"left","right")+i),Math.round(d+l)!==n&&(d-=za(a,"top","bottom")+l)),!_d(e)){var m=Math.round(c+i)-t,v=Math.round(d+l)-n;Math.abs(m)!==1&&(c-=m),Math.abs(v)!==1&&(d-=v)}return ct(r.left,r.top,c,d)}var Fd=function(){return typeof SVGGraphicsElement<"u"?function(e){return e instanceof Pe(e).SVGGraphicsElement}:function(e){return e instanceof Pe(e).SVGElement&&typeof e.getBBox=="function"}}();function _d(e){return e===Pe(e).document.documentElement}function Ad(e){return Ut?Fd(e)?Pd(e):kd(e):Ha}function jd(e){var t=e.x,n=e.y,a=e.width,r=e.height,i=typeof DOMRectReadOnly<"u"?DOMRectReadOnly:Object,l=Object.create(i.prototype);return La(l,{x:t,y:n,width:a,height:r,top:n,right:t+a,bottom:r+n,left:t}),l}function ct(e,t,n,a){return{x:e,y:t,width:n,height:a}}var Vd=function(){function e(t){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=ct(0,0,0,0),this.target=t}return e.prototype.isActive=function(){var t=Ad(this.target);return this.contentRect_=t,t.width!==this.broadcastWidth||t.height!==this.broadcastHeight},e.prototype.broadcastRect=function(){var t=this.contentRect_;return this.broadcastWidth=t.width,this.broadcastHeight=t.height,t},e}(),Ld=function(){function e(t,n){var a=jd(n);La(this,{target:t,contentRect:a})}return e}(),Hd=function(){function e(t,n,a){if(this.activeObservations_=[],this.observations_=new Va,typeof t!="function")throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=t,this.controller_=n,this.callbackCtx_=a}return e.prototype.observe=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(t instanceof Pe(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var n=this.observations_;n.has(t)||(n.set(t,new Vd(t)),this.controller_.addObserver(this),this.controller_.refresh())}},e.prototype.unobserve=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(t instanceof Pe(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var n=this.observations_;n.has(t)&&(n.delete(t),n.size||this.controller_.removeObserver(this))}},e.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},e.prototype.gatherActive=function(){var t=this;this.clearActive(),this.observations_.forEach(function(n){n.isActive()&&t.activeObservations_.push(n)})},e.prototype.broadcastActive=function(){if(this.hasActive()){var t=this.callbackCtx_,n=this.activeObservations_.map(function(a){return new Ld(a.target,a.broadcastRect())});this.callback_.call(t,n,t),this.clearActive()}},e.prototype.clearActive=function(){this.activeObservations_.splice(0)},e.prototype.hasActive=function(){return this.activeObservations_.length>0},e}(),Da=typeof WeakMap<"u"?new WeakMap:new Va,Ea=function(){function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var n=Bd.getInstance(),a=new Hd(t,n,this);Da.set(this,a)}return e}();["observe","unobserve","disconnect"].forEach(function(e){Ea.prototype[e]=function(){var t;return(t=Da.get(this))[e].apply(t,arguments)}});var zd=function(){return typeof it.ResizeObserver<"u"?it.ResizeObserver:Ea}();const Dd=e=>{var t;let n=((t=e==null?void 0:e.vnode)===null||t===void 0?void 0:t.el)||e&&(e.$el||e);for(;n&&!n.tagName;)n=n.nextSibling;return n},Ed=o.defineComponent({compatConfig:{MODE:3},name:"ResizeObserver",props:{disabled:Boolean,onResize:Function},emits:["resize"],setup(e,t){let{slots:n}=t;const a=o.reactive({width:0,height:0,offsetHeight:0,offsetWidth:0});let r=null,i=null;const l=()=>{i&&(i.disconnect(),i=null)},c=v=>{const{onResize:s}=e,O=v[0].target,{width:b,height:T}=O.getBoundingClientRect(),{offsetWidth:u,offsetHeight:h}=O,f=Math.floor(b),y=Math.floor(T);if(a.width!==f||a.height!==y||a.offsetWidth!==u||a.offsetHeight!==h){const x={width:f,height:y,offsetWidth:u,offsetHeight:h};He(a,x),s&&Promise.resolve().then(()=>{s(He(He({},x),{offsetWidth:u,offsetHeight:h}),O)})}},d=o.getCurrentInstance(),m=()=>{const{disabled:v}=e;if(v){l();return}const s=Dd(d);s!==r&&(l(),r=s),!i&&s&&(i=new zd(c),i.observe(s))};return o.onMounted(()=>{m()}),o.onUpdated(()=>{m()}),o.onUnmounted(()=>{l()}),o.watch(()=>e.disabled,()=>{m()},{flush:"post"}),()=>{var v;return(v=n.default)===null||v===void 0?void 0:v.call(n)[0]}}}),Wd=e=>{var t,n;return{[`${e.proComponentsCls}-header`]:{"&-light":{[`${e.componentCls}-logo`]:{h1:{color:e.colorBgSpotlight}}}},[e.componentCls]:{position:"relative",background:"transparent",display:"flex",alignItems:"center",marginBlock:0,paddingInline:16,height:((n=(t=e.layout)==null?void 0:t.header)==null?void 0:n.heightLayoutHeader)||56,boxShadow:"0 1px 4px rgba(0,21,41,.08)",boxSizing:"border-box","&-mix":{boxShadow:"0 1px 4px 0 rgba(0,21,41,.12)"},"&-wide":{boxShadow:"0 1px 4px 0 rgba(0,21,41,.12)",padding:0,[`${e.componentCls}-main`]:{margin:"0 auto"}},["&-main"]:{display:"flex",height:"100%","&-left":{display:"flex",minWidth:192}},"> a":{height:"100%"},"> *":{height:"100%"},[`${e.proComponentsCls}-layout-apps-icon`]:{marginInlineEnd:16},"&-collapsed-button":{display:"flex",alignItems:"center",fontSize:"20px",marginInlineEnd:"16px"},"&-logo":{position:"relative",marginInlineEnd:"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},"&-mix":{display:"flex",alignItems:"center"}},"&-logo-mobile":{minWidth:"24px",marginInlineEnd:0}}}},Wa={...q,...Kt},Kd=(e,t)=>e===!1?null:e?e(t,null):t,Ud=o.defineComponent({props:Wa,setup(e){const t=o.ref("auto"),n=({width:a})=>{t.value=a};return()=>o.createVNode("div",{style:{minWidth:typeof t.value=="string"?t.value:`${t.value}px`}},[o.createVNode("div",{style:{paddingRight:"8px"}},[o.createVNode(Ed,{onResize:n},{default:()=>[e.rightContentRender&&typeof e.rightContentRender=="function"?o.createVNode("div",null,[e.rightContentRender({...e})]):o.createVNode("div",null,null)]})])])}}),Ka=o.defineComponent({props:Wa,inheritAttrs:!1,setup(e,{slots:t,emit:n}){const a=We.useRouter(),{token:r}=me(),{getPrefixCls:i,openKeys:l,selectedKeys:c}=ee(),{width:d}=Yt.useWindowSize(),m=i({suffixCls:"global-header",isPor:!0}),{wrapSSR:v,hashId:s}=ae("ProGlobalHeader",[Wd],m),O=o.computed(()=>({[`${s.value}`]:!0,[`${m}`]:!0,[`${m}-${e.layout}`]:!0})),b=f=>{var y;if(a.currentRoute){const x=a.currentRoute.value.matched.concat();e.onSelect&&f==="select"&&e.onSelect(x.filter(S=>S.name!=="index").map(S=>S.path)),e.onOpenKeys&&f==="openKeys"&&((y=e.onOpenKeys)==null||y.call(e,x.filter(S=>S.path!==a.currentRoute.value.path).map(S=>S.path)))}},T=()=>{n("collapse",!e.collapsed)},u=o.computed(()=>e.collapsedButtonRender||Pa),h=()=>{var f;return o.createVNode(o.Fragment,null,[e.layout==="mix"&&!e.isMobile&&e.splitMenus?o.createVNode("div",{style:{flex:1},class:[`${m}-menu`,s.value]},[o.createVNode(w.ConfigProvider,{theme:{components:{Layout:{headerBg:"transparent",bodyBg:"transparent"},Menu:ya({radiusItem:4,colorActiveBarWidth:0,colorActiveBarHeight:2,colorActiveBarBorderSize:0,horizontalItemBorderRadius:4},r.value||{},e.theme,"header")}}},{default:()=>[o.createVNode(Et,o.mergeProps({theme:e.theme,mode:e.mode,collapsed:e.collapsed,menuData:e.menuData,openKeys:l.value,selectedKeys:c.value,iconfontUrl:e.iconfontUrl,menuItemRender:e.menuItemRender,subMenuItemRender:e.subMenuItemRender,class:{"top-nav-menu":e.mode==="horizontal",[`${s.value}`]:!0}},{"onUpdate:openKeys":()=>b("openKeys"),"onUpdate:selectedKeys":()=>b("select")}),null)]})]):o.createVNode("div",{style:{flex:1}},[(f=t.default)==null?void 0:f.call(t)]),e.layout!=="simple"&&o.createVNode(Ud,o.mergeProps(e,{extraRightDropdownRender:e.extraRightDropdownRender,rightContentRender:e.rightContentRender}),null)])};return()=>{const f=o.createVNode("span",{class:[`${m}-logo`,e.isMobile?"mobile":"",s.value],key:"logo"},[o.createVNode("a",null,[Ba(e.logo)])]);return v(o.createVNode("div",{class:O.value},[e.isMobile?o.createVNode(o.Fragment,null,[Kd(e.menuHeaderRender,f),e.isMobile&&o.unref(u)&&o.createVNode("span",{class:`${m}-collapsed-button ${s.value}`,onClick:T},[o.unref(u)(e.collapsed)]),h()]):e.layout==="mix"||e.layout==="wide"?o.createVNode(o.Fragment,null,[o.createVNode("div",{style:{width:e.layout==="wide"?`${e.wideWidth}px`:void 0,padding:e.layout==="wide"&&d.value<e.wideWidth?"0 50px":void 0},class:`${m}-main ${s.value}`},[o.createVNode("div",{class:`${m}-main-left ${s.value}`},[o.createVNode(Wt,o.mergeProps(te.omit(e,"onMenuHeaderClick"),{renderKey:"headerTitleRender"}),null)]),h()])]):h()]))}}});function Xd(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!o.isVNode(e)}const{Header:Ua}=w.Layout,Xt=o.defineComponent({inheritAttrs:!1,props:Fa,setup(e){const{theme:t,isMobile:n,fixedHeader:a,headerHeight:r,layout:i,onCollapse:l,splitMenus:c}=o.toRefs(e),{getPrefixCls:d,menuData:m}=ee(),v=d({suffixCls:"header",isPor:!0}),s=d({suffixCls:"fixed-header",isPor:!0}),{wrapSSR:O,hashId:b}=ae("ProLayoutHeader",[Sd],v),T=o.computed(()=>i.value==="wide"),u=o.computed(()=>a.value),h=o.computed(()=>i.value==="mix"||T.value),f=o.computed(()=>i.value==="side"||i.value==="simple"),y=o.computed(()=>f.value&&"light"||t.value),x=o.computed(()=>({[`${b.value}`]:!0,[`${v}-${y.value}`]:!0,[`${v}`]:!0,[`${s}`]:u.value})),S=o.computed(()=>u.value&&!n.value),k=o.computed(()=>c.value?m.value&&xa(m.value)||[]:[]),M=o.computed(()=>f.value&&S.value?`calc(100% - ${e.collapsed?e.collapsedWidth:e.siderWidth}px)`:"100%"),I=o.computed(()=>u.value?0:void 0),F=()=>{const B=o.createVNode(Ka,o.mergeProps(e,{theme:y.value,mode:"horizontal",onCollapse:l.value,menuData:k.value}),{default:()=>[h.value?null:e.headerContentRender&&typeof e.headerContentRender=="function"?e.headerContentRender(e):e.headerContentRender]});return e.headerRender?e.headerRender(e,B):B};return()=>{let B;return O(o.createVNode(o.Fragment,null,[u.value&&!T.value&&o.createVNode(Ua,{theme:y.value,style:{height:`${r.value}px`,lineHeight:`${r.value}px`,background:"transparent"}},null),o.createVNode(Ua,{theme:y.value,class:x.value,style:{height:`${r.value}px`,lineHeight:`${r.value}px`,width:M.value,zIndex:f.value?100:101,right:I.value}},Xd(B=F())?B:{default:()=>[B]})]))}}}),Gd=o.defineComponent({name:"BaseProLayout",inheritAttrs:!1,components:{GlobalHeader:Xt,GlobalFooter:ot,SiderMenuWrapper:nt},props:ja,emits:["update:collapsed","update:open-keys","update:selected-keys","collapse","openKeys","reloadPage","select","menuHeaderClick","menuClick","changeTabs"],setup(e,{emit:t,slots:n}){const a=L.getPrefixCls({suffixCls:"basic-layout",isPor:!0}),{wrapSSR:r,hashId:i}=ae("ProLayout",[md,hd],a),l=fe.useMediaQuery(),c=o.ref(document.body.getBoundingClientRect().width),d=o.computed(()=>e.layout==="mix"||e.layout==="side"||e.layout==="wide"||!1),m=o.computed(()=>e.layout==="wide"),v=o.computed(()=>d.value),s=o.computed(()=>e.collapsed?e.collapsedWidth:e.siderWidth),O=o.computed(()=>(e.theme||"dark").toLocaleLowerCase().includes("dark")?"dark":"light");o.onMounted(()=>{window.addEventListener("resize",u),u()}),o.onBeforeUnmount(()=>{window.removeEventListener("resize",u)});const b=o.computed(()=>(l.value==="sm"||l.value==="xs")&&!e.disableMobile&&!m.value),T=o.reactive({position:"relative"});(e.isChildrenLayout||e.contentStyle&&e.contentStyle.minHeight)&&(T.minHeight=0);const u=()=>{const N=document.body.getBoundingClientRect().width;c.value!==N&&(l.value=fe.useMediaQuery().value,c.value=N)},h=(N,_)=>N.headerRender===!1||N.pure?null:o.createVNode(Xt,o.mergeProps(N,{matchMenuKeys:_||[]}),null),f=o.computed(()=>({...e.breadcrumb,itemRender:L.getSlot(n,e,"breadcrumbRender")})),y=o.computed(()=>v.value&&e.selectedKeys?Ca(e.menuData,e.selectedKeys[0]):[]),x=N=>{var _;(_=e.onCollapse)==null||_.call(e,N)},S=N=>{var _;(_=e.onOpenKeys)==null||_.call(e,N)},k=N=>{var _;(_=e.onSelect)==null||_.call(e,N)},M=N=>{t("menuHeaderClick",N)},I=N=>{t("menuClick",N)},F=N=>{t("changeTabs",N)},B=()=>{t("reloadPage")};return Na({getPrefixCls:L.getPrefixCls,...Sa(o.toRefs(e),["layout","waterMark","menuData","openKeys","headerHeight","selectedKeys","disableMobile","fixSiderbar","fixedHeader"].concat(Object.keys(at))),theme:O.value,hasContentWide:m,isMobile:b,siderWidth:s,breadcrumb:f,flatMenuData:y,hasSide:d,flatMenu:v}),()=>{var De;const N=L.getSlot(n,e,"collapsedButtonRender"),_=L.getSlot(n,e,"headerContentRender"),z=L.getSlot(n,e,"rightContentRender"),j=L.getSlot(n,e,"headerRender"),p=L.getSlot(n,e,"footerRender"),C=L.getSlot(n,e,"links"),P=L.getSlot(n,e,"copyrightRender"),R=L.getSlot(n,e,"extraRightDropdownRender"),A=L.getSlot(n,e,"menuHeaderRender"),U=L.getSlot(n,e,"menuExtraRender"),X=L.getSlot(n,e,"menuContentRender"),E=L.getSlot(n,e,"menuFooterRender"),H=L.getSlot(n,e,"menuItemRender"),Y=L.getSlot(n,e,"subMenuItemRender"),se={menuItemRender:H,subMenuItemRender:Y},Ie=o.computed(()=>h({...e,...se,hasSiderMenu:d.value,menuData:e.menuData,isMobile:o.unref(b),onCollapse:x,onOpenKeys:S,onSelect:k,onMenuHeaderClick:M,rightContentRender:z,extraRightDropdownRender:R,headerTitleRender:A,headerContentRender:_,headerRender:j,theme:O.value},e.matchMenuKeys)),Oe=o.computed(()=>({[`${i.value}`]:!0,[`${a}`]:!0,[`${a}-${e.layout}`]:!0})),Ne=o.computed(()=>m.value?{minWidth:`${e.wideWidth}px`}:void 0),Te=o.computed(()=>m.value?{width:e.menuData.length?`${e.wideWidth}px`:`${e.wideWidth-e.siderWidth-20}px`,paddingTop:`${e.headerHeight+20}px`,margin:m.value?"0 auto":void 0}:void 0),ze=o.computed(()=>m.value?{minHeight:"835px"}:{});return r(o.createVNode(o.Fragment,null,[e.pure?(De=n.default)==null?void 0:De.call(n):o.createVNode("div",{class:Oe.value,style:Ne.value},[o.createVNode(w.Layout,{style:Te.value},{default:()=>[o.createVNode(nt,o.mergeProps(te.omit(e,["pure","onCollapse","onSelect","onOpenKeys","onMenuClick","theme"]),{links:C,theme:O.value,isMobile:b.value,menuHeaderRender:A,menuContentRender:X,menuExtraRender:U,menuFooterRender:E,collapsedButtonRender:N,onCollapse:x,onSelect:k,onOpenKeys:S,onMenuClick:I}),null),o.createVNode(w.Layout,{style:T},{default:()=>[Ie.value,o.createVNode(rt,{hashId:i.value,isMobile:b.value,prefixCls:a,collapsedWidth:e.collapsedWidth,isChildrenLayout:e.isChildrenLayout,loading:e.loading,isShowTabsBar:e.showTabsBar,isFixedMultiTab:e.fixedMultiTab,siderWidth:e.siderWidth,collapsed:e.collapsed,style:e.disableContentMargin?ze.value:{...e.contentStyle,...ze.value},onReloadPage:B,onChangeTabs:F},{default:()=>{var Ee;return[(Ee=n.default)==null?void 0:Ee.call(n)]}}),p===!1?null:p?p(e):o.createVNode(ot,{copyright:P},null)]})]})])]))}}}),Yd=o.defineComponent({components:{GlobalHeader:Xt,GlobalFooter:ot,SiderMenuWrapper:nt},props:ja,emits:["update:collapsed","update:open-keys","update:selected-keys","collapse","openKeys","reloadPage","select","menuHeaderClick","menuClick","changeTabs"],setup(e,{slots:t,emit:n}){const a=o.computed(()=>e.theme!==void 0?{dark:e.theme==="realDark"}:{}),r=c=>{n("update:collapsed",c),n("collapse",c)},i=c=>{n("update:open-keys",c),n("openKeys",c)},l=c=>{n("update:selected-keys",c),n("select",c)};return()=>o.createVNode(w.ConfigProvider,{theme:e.primaryColor?{token:{colorPrimary:e.primaryColor}}:void 0},{default:()=>[o.createVNode(Je,o.mergeProps({token:e.token},a.value),{default:()=>[o.createVNode(Gd,o.mergeProps(te.omit(e,["onSelect","onOpenKeys","onCollapse"]),{onSelect:l,onOpenKeys:i,onCollapse:r}),t)]})]})}}),Xa=(e,t)=>e.map(n=>(n.path=n.path.replace("//","/"),n.children&&n.children.length>0&&(n.children=Xa(n.children,t)),t[`${n.path}`]=n,n)),qd=e=>{const t=e.find(a=>a.path==="/"),n={};return{menuData:Xa((t==null?void 0:t.children)||[],n),breadcrumb:n}},Ga=[{key:"light",title:"亮色菜单风格"},{key:"dark",title:"暗色菜单风格"},{key:"realDark",title:"暗黑模式"}],Ya=[{key:"side",title:"侧边菜单布局"},{key:"mix",title:"混合菜单布局"},{key:"wide",title:"定宽菜单布局"},{key:"simple",title:"简单菜单布局"}],Qd=[{key:"header",title:"顶部主题"},{key:"sider",title:"左侧主题"}],Zd=e=>({[e.componentCls]:{[`${e.antCls}-drawer-content-wrapper`]:{transform:"translate(100%)",display:"block !important"},"&-show":{[`${e.antCls}-drawer-content-wrapper`]:{transform:"translate(0%)"}},"&-trantion-none":{[`${e.antCls}-drawer-content-wrapper`]:{transition:"none !important;"}},["&-handle"]:{position:"absolute",top:240,right:300,zIndex:0,display:"flex",alignItems:"center",justifyContent:"center",width:"48px",height:"48px",fontSize:"16px",textAlign:"center",backgroundColor:e.colorPrimary,borderEndStartRadius:e.borderRadiusLG,borderStartStartRadius:e.borderRadiusLG,"-webkit-backdropilter":"saturate(180%) blur(20px)",backdropFilter:"saturate(180%) blur(20px)",cursor:"pointer",pointerEvents:"auto"},"&-wrapper":{position:"relative",height:`calc(100vh - ${e.marginLG*2}px)`},"&-content":{padding:e.marginLG},"&-body-title":{margin:0,marginBlockEnd:e.marginSM,fontSize:"14px",lineHeight:"22px",color:e.colorBgSpotlight},"&-block-checkbox":{display:"flex",minHeight:42,gap:e.marginSM,"& &-item":{position:"relative",width:"44px",height:"36px",overflow:"hidden",borderRadius:"4px",boxShadow:"0 1px 2.5px rgba(0,0,0,.18)",cursor:"pointer",fontSize:56,lineHeight:"56px","&::before":{position:"absolute",insetBlockStart:0,insetInlineStart:0,width:"33%",height:"100%",content:"''"},"&::after":{position:"absolute",insetBlockStart:0,insetInlineStart:0,width:"100%",height:"25%",content:"''"},"&-dark":{backgroundColor:"rgba(0, 21, 41, 0.85)","&::before":{backgroundColor:"rgba(0, 0, 0, 0.65)"},"&::after":{backgroundColor:"rgba(0, 0, 0, 0.85)"}},"&-light":{backgroundColor:"#f7f8fa","&::before":{backgroundColor:"#fff"},"&::after":{backgroundColor:"#fff"}},"&-realDark":{backgroundColor:"rgba(0, 21, 41, 0.85)","&::before":{backgroundColor:"rgba(0, 0, 0, 0.65)"},"&::after":{backgroundColor:"rgba(0, 0, 0, 0.85)"}},"&-dark,&-side":{backgroundColor:"#f7f8fa","&::before":{zIndex:"1",backgroundColor:"#001529"},"&::after":{backgroundColor:"#fff"}},"&-wide":{backgroundColor:"#f7f8fa","&::before":{backgroundColor:"#fff",left:"15%",width:"15%",height:"calc(100% - 38%)",top:"38%"},"&::after":{backgroundColor:"#fff"},"&-content":{position:"absolute",height:"calc(100% - 38%)",top:"38%",right:"15%",width:"calc(100% - 15% - 15% - 10% - 15%)",backgroundColor:"#fff"}},"&-simple":{backgroundColor:"#f7f8fa","&::before":{backgroundColor:"#fff"},"&::after":{display:"none"}},"&-mix":{backgroundColor:"#f7f8fa","&::before":{backgroundColor:"#fff"},"&::after":{backgroundColor:"#001529"}}},"& &-selectIcon":{position:"absolute",insetInlineEnd:"6px",bottom:"4px",color:e.colorPrimary,fontWeight:"bold",fontSize:"14px",pointerEvents:"none",".action":{color:e.colorPrimary}},"& &-icon":{fontSize:56,lineHeight:"56px"}},"&-theme-color":{marginBlockStart:"16px",display:"flex",gap:8,"&-label":{marginBlock:"16px"},"&-block":{display:"flex",alignItems:"center",justifyContent:"center",width:"20px",height:"20px",color:"#fff",fontWeight:"bold",textAlign:"center",borderRadius:"2px",cursor:"pointer"}},"&-list":{[`&${e.antCls}-list-sm ${e.antCls}-list-item`]:{paddingInline:0}}}}),qa=o.defineComponent({name:"BlockCheckbox",props:{value:V.string,list:{type:Array,default:()=>[]},configType:V.string,prefixCls:V.string,hashId:V.string,onChange:Function},setup(e){return()=>{const t=`${e.prefixCls}-block-checkbox`;return o.createVNode("div",{class:[t,e.hashId]},[e.list.map(n=>o.createVNode(w.Tooltip,{title:n.title,key:n.key},{default:()=>[o.createVNode("div",{class:L.classNames(e.hashId,`${t}-item`,`${t}-item-${n.key}`,`${t}-${e.configType}-item`),onClick:()=>{var a;return(a=e.onChange)==null?void 0:a.call(e,n.key)}},[n.key==="wide"&&o.createVNode("div",{class:[`${t}-item-${n.key}-content`,e.hashId]},null),o.createVNode(Q.CheckOutlined,{class:`${t}-selectIcon ${e.hashId}`.trim(),style:{display:e.value===n.key?"block":"none"}},null),n!=null&&n.icon?o.createVNode("div",{class:`${t}-icon ${e.hashId}`.trim()},[n.icon]):null])]}))])}}}),Jd=o.defineComponent({name:"ThemeColor",inheritAttrs:!1,props:{settingValue:Object,colorList:{type:Array,default:()=>[]},prefixCls:V.string,hashId:V.string,onChange:Function},setup(e){return()=>{var n;const t=`${e.prefixCls}-theme-color`;return o.createVNode(o.Fragment,null,[o.createVNode("div",{class:`${t} ${e.hashId}`.trim()},[(n=e.colorList)==null?void 0:n.map(({key:a,color:r,title:i})=>a?o.createVNode(w.Tooltip,{key:r,title:i},{default:()=>{var l,c;return[o.createVNode("div",{class:[`${t}-block ${e.hashId}`.trim(),((l=e.settingValue)==null?void 0:l.primaryColor)===r?`${t}-block-checked`:""],style:{backgroundColor:r},onClick:()=>e.onChange&&e.onChange(r)},[((c=e.settingValue)==null?void 0:c.primaryColor)===r&&o.createVNode(Q.CheckOutlined,null,null)])]}}):null)])])}}}),st=o.defineComponent({name:"RegionalChange",props:{label:V.string,value:V.bool,prefixCls:V.string,valueKey:String,hashId:V.string,disabled:V.bool,onChange:Function},setup(e){return()=>o.createVNode(w.List,{class:`${e.prefixCls}-list ${e.hashId}`.trim(),split:!1,size:"small",renderItem:({item:t})=>o.createVNode(w.Tooltip,{title:t.disabled?t.disabledReason:"",placement:"left"},{default:()=>[o.createVNode(w.List.Item,{actions:[t.action]},{default:()=>[o.createVNode("span",{style:{opacity:t.disabled?.5:1}},[t.title])]})]}),dataSource:[{title:e.label,action:o.createVNode(w.Switch,{size:"small",disabled:e.disabled,checked:!!e.value,onChange:t=>{e.onChange&&e.onChange(e.valueKey,t)}},null)}]},null)}}),eu=e=>({[e.componentCls]:{padding:e.marginLG,"&-title":{display:"flex",alignItems:"center",margin:0,gap:10,marginBlockEnd:e.marginSM,fontSize:"14px",lineHeight:"22px",color:e.colorBgSpotlight},"&-sub-title":{margin:0,display:"flex",alignItems:"center",fontSize:12,fontWeight:"normal",color:e.colorTextDescription},"&-list":{[`&${e.antCls}-list-sm ${e.antCls}-list-item`]:{paddingInline:0,[`${e.antCls}-list-item-action`]:{marginInlineStart:10}}}}});function tu(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!o.isVNode(e)}const nu=o.defineComponent({name:"ThemeEditor",props:{settingValue:Object,onChange:Function},setup(e){const{getPrefixCls:t}=ee(),[n,a]=fe.useState("header"),r=t({suffixCls:"theme-editor",isPor:!0}),{wrapSSR:i,hashId:l}=ae("ProThemeEditor",[eu],r),{token:c}=me(),d=o.computed(()=>{var b;return(b=c.value)==null?void 0:b.layout}),m=o.computed(()=>{var b,T,u,h,f,y,x,S,k,M,I,F,B,N,_,z,j,p,C,P,R,A,U,X,E;return[{key:"colorBgMenu",title:"全部背景",disabled:((b=e.settingValue)==null?void 0:b.theme)==="dark"&&["mix","wide"].includes((T=e.settingValue)==null?void 0:T.layout)},{key:"colorDarkBgMenu",title:"全部背景",disabled:((u=e.settingValue)==null?void 0:u.theme)==="light"||((h=e.settingValue)==null?void 0:h.theme)==="dark"&&["side","simple"].includes((f=e.settingValue)==null?void 0:f.layout)},{key:"colorSubItemBg",title:"子菜单背景",disabled:!0},{key:"colorDarkSubItemBg",title:"子菜单背景",disabled:!0},{key:"colorBgMenuItemSelected",title:"菜单选中背景",disabled:((y=e.settingValue)==null?void 0:y.theme)==="dark"&&["mix","wide"].includes((x=e.settingValue)==null?void 0:x.layout)},{key:"colorDarkBgMenuItemSelected",title:"菜单选中背景",disabled:((S=e.settingValue)==null?void 0:S.theme)==="light"||((k=e.settingValue)==null?void 0:k.theme)==="dark"&&["side","simple"].includes((M=e.settingValue)==null?void 0:M.layout)},{key:"colorTextMenu",title:"菜单文字颜色",disabled:((I=e.settingValue)==null?void 0:I.theme)==="dark"&&["mix","wide"].includes((F=e.settingValue)==null?void 0:F.layout)},{key:"colorDarkTextMenu",title:"菜单文字颜色",disabled:((B=e.settingValue)==null?void 0:B.theme)==="light"||((N=e.settingValue)==null?void 0:N.theme)==="dark"&&["side","simple"].includes((_=e.settingValue)==null?void 0:_.layout)},{key:"colorTextMenuHover",title:"菜单文字移入颜色",disabled:((z=e.settingValue)==null?void 0:z.theme)==="dark"&&["mix","wide"].includes((j=e.settingValue)==null?void 0:j.layout)},{key:"colorDarkTextMenuHover",title:"菜单文字移入颜色",disabled:((p=e.settingValue)==null?void 0:p.theme)==="light"||((C=e.settingValue)==null?void 0:C.theme)==="dark"&&["side","simple"].includes((P=e.settingValue)==null?void 0:P.layout)},{key:"colorTextMenuSelected",title:"菜单文字选中颜色",disabled:((R=e.settingValue)==null?void 0:R.theme)==="dark"&&["mix","wide"].includes((A=e.settingValue)==null?void 0:A.layout)},{key:"colorDarkTextMenuSelected",title:"菜单文字选中颜色",disabled:((U=e.settingValue)==null?void 0:U.theme)==="light"||((X=e.settingValue)==null?void 0:X.theme)==="dark"&&["side","simple"].includes((E=e.settingValue)==null?void 0:E.layout)}]}),v=o.computed(()=>{var b,T,u,h,f,y,x,S,k,M,I,F,B,N,_,z,j,p,C,P,R,A,U,X,E,H,Y,se,Ie,Oe,Ne,Te;return[{key:"colorBgMenu",title:"全部背景",disabled:((b=e.settingValue)==null?void 0:b.theme)==="dark"&&["side","simple"].includes((T=e.settingValue)==null?void 0:T.layout)},{key:"colorDarkBgMenu",title:"全部背景",disabled:((u=e.settingValue)==null?void 0:u.theme)==="light"||((h=e.settingValue)==null?void 0:h.theme)==="dark"&&["mix","wide"].includes((f=e.settingValue)==null?void 0:f.layout)},{key:"colorSubItemBg",title:"子菜单背景",disabled:((y=e.settingValue)==null?void 0:y.theme)==="dark"&&["side","simple"].includes((x=e.settingValue)==null?void 0:x.layout)},{key:"colorDarkSubItemBg",title:"子菜单背景",disabled:((S=e.settingValue)==null?void 0:S.theme)==="light"||((k=e.settingValue)==null?void 0:k.theme)==="dark"&&["mix","wide"].includes((M=e.settingValue)==null?void 0:M.layout)},{key:"colorBgMenuItemHover",title:"菜单移入背景",disabled:((I=e.settingValue)==null?void 0:I.theme)==="dark"&&((F=e.settingValue)==null?void 0:F.layout)!=="mix"},{key:"colorBgMenuItemSelected",title:"菜单选中背景",disabled:((B=e.settingValue)==null?void 0:B.theme)==="dark"&&((N=e.settingValue)==null?void 0:N.layout)!=="mix"},{key:"colorDarkBgMenuItemSelected",title:"菜单选中背景",disabled:((_=e.settingValue)==null?void 0:_.theme)==="light"||((z=e.settingValue)==null?void 0:z.theme)==="dark"&&["mix","wide"].includes((j=e.settingValue)==null?void 0:j.layout)},{key:"colorTextMenu",title:"菜单文字颜色",disabled:((p=e.settingValue)==null?void 0:p.theme)==="dark"&&((C=e.settingValue)==null?void 0:C.layout)!=="mix"},{key:"colorDarkTextMenu",title:"菜单文字颜色",disabled:((P=e.settingValue)==null?void 0:P.theme)==="light"||((R=e.settingValue)==null?void 0:R.theme)==="dark"&&["mix","wide"].includes((A=e.settingValue)==null?void 0:A.layout)},{key:"colorTextMenuHover",title:"菜单文字移入颜色",disabled:((U=e.settingValue)==null?void 0:U.theme)==="dark"&&((X=e.settingValue)==null?void 0:X.layout)!=="mix"},{key:"colorDarkTextMenuHover",title:"菜单文字移入颜色",disabled:((E=e.settingValue)==null?void 0:E.theme)==="light"||((H=e.settingValue)==null?void 0:H.theme)==="dark"&&["mix","wide"].includes((Y=e.settingValue)==null?void 0:Y.layout)},{key:"colorTextMenuSelected",title:"菜单文字选中颜色",disabled:((se=e.settingValue)==null?void 0:se.theme)==="dark"&&((Ie=e.settingValue)==null?void 0:Ie.layout)!=="mix"},{key:"colorDarkTextMenuSelected",title:"菜单文字选中颜色",disabled:((Oe=e.settingValue)==null?void 0:Oe.theme)==="light"||((Ne=e.settingValue)==null?void 0:Ne.theme)==="dark"&&["mix","wide"].includes((Te=e.settingValue)==null?void 0:Te.layout)}]}),s=o.computed(()=>n.value==="header"?m.value:n.value==="sider"?v.value:[]),O=b=>{var T,u;return(u=(T=d.value)==null?void 0:T[n.value])==null?void 0:u[b]};return()=>{var T,u,h;let b;return i(o.createVNode("div",{class:[r,l.value]},[o.createVNode("h3",{class:[`${r}-title`,l.value]},[o.createTextVNode("主题编辑器"),o.createVNode("div",{class:[`${r}-sub-title`,l.value]},[o.createVNode("span",null,[(T=Ga.find(f=>{var y;return f.key===((y=e.settingValue)==null?void 0:y.theme)}))==null?void 0:T.title]),o.createVNode("span",{style:{marginInline:"8px"}},[o.createTextVNode("/")]),o.createVNode("span",null,[(u=Ya.find(f=>{var y;return f.key===((y=e.settingValue)==null?void 0:y.layout)}))==null?void 0:u.title])])]),o.createVNode("div",{class:[`${r}-content`,l.value]},[o.createVNode(w.List,{class:`${r}-list ${l.value}`.trim(),split:!1,size:"small",renderItem:({item:f})=>o.createVNode(w.List.Item,{actions:[f.action]},{default:()=>[o.createVNode("span",{style:{opacity:f.disabled?.5:1}},[f.title])]}),dataSource:[{title:"自定义主题色",action:o.createVNode(qt.GColorPicker,{value:(h=e.settingValue)==null?void 0:h.primaryColor,actions:["confirm"],modes:["rgb"],size:"small",onConfirm:f=>e.onChange&&e.onChange(f,"primaryColor")},null)}]},null),o.createVNode(w.Tabs,{activeKey:n.value,onChange:a},tu(b=Qd.map(f=>o.createVNode(w.TabPane,{key:f.key,tab:f.title},{default:()=>[o.createVNode(w.List,{class:`${r}-list ${l.value}`.trim(),split:!1,size:"small",renderItem:({item:y})=>o.createVNode(w.List.Item,{actions:[y.action]},{default:()=>[o.createVNode("span",{style:{opacity:y.disabled?.5:1}},[y.title])]}),dataSource:s.value.filter(y=>!y.disabled).map(y=>({...y,action:o.createVNode(qt.GColorPicker,{value:O(y.key),actions:["confirm"],modes:["rgb"],size:"small",onConfirm:x=>e.onChange&&e.onChange(x,n.value,y.key)},null)}))},null)]})))?b:{default:()=>[b]})])]))}}}),au=e=>({[e.componentCls]:{padding:e.marginLG,"&-title":{display:"flex",alignItems:"center",margin:0,gap:10,marginBlockEnd:e.marginSM,fontSize:"14px",lineHeight:"22px",color:e.colorBgSpotlight},"&-sub-title":{margin:0,display:"flex",alignItems:"center",fontSize:12,fontWeight:"normal",color:e.colorTextDescription},"&-list":{[`&${e.antCls}-list-sm ${e.antCls}-list-item`]:{paddingInline:0,[`${e.antCls}-list-item-action`]:{marginInlineStart:10}}}}});function Qa(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!o.isVNode(e)}const{preset:Za}=zt,ou=o.defineComponent({name:"OthersChange",props:{prefixCls:V.string,settingValue:Object,onChange:Function},setup(e){const t=L.getPrefixCls({suffixCls:"others",isPor:!0}),{wrapSSR:n,hashId:a}=ae("SettingsDrawOthers",[au],t);return()=>{var i,l,c,d,m,v,s,O,b,T,u,h,f,y;let r;return n(o.createVNode("div",{class:[t,a.value]},[o.createVNode("h3",{class:[`${t}-title`,a.value]},[o.createTextVNode("页面动画设置")]),o.createVNode(w.List,{class:`${t}-list ${a.value}`.trim(),split:!1,size:"small",renderItem:({item:x})=>o.createVNode(w.Tooltip,{title:x.disabled?x.disabledReason:"",placement:"left"},{default:()=>[o.createVNode(w.List.Item,{actions:[x.action]},{default:()=>[o.createVNode("span",{style:{opacity:x.disabled?.5:1}},[x.title])]})]}),dataSource:[{title:"禁用动画",action:o.createVNode(w.Switch,{checked:!((l=(i=e.settingValue)==null?void 0:i.animate)!=null&&l.disabled),size:"small",onChange:x=>{var S;return(S=e.onChange)==null?void 0:S.call(e,"animate","disabled",!x)}},null)},{title:"动画效果",disabled:(d=(c=e.settingValue)==null?void 0:c.animate)==null?void 0:d.disabled,action:o.createVNode(w.Select,{value:(v=(m=e.settingValue)==null?void 0:m.animate)==null?void 0:v.name,style:{width:"100px"},size:"small",disabled:(O=(s=e.settingValue)==null?void 0:s.animate)==null?void 0:O.disabled,getPopupContainer:x=>x&&x.parentNode?x.parentNode:x,onChange:x=>{var S;return(S=e.onChange)==null?void 0:S.call(e,"animate","name",x)}},Qa(r=Za.map(x=>o.createVNode(w.Select.Option,{value:x.name},{default:()=>[x.alias]})))?r:{default:()=>[r]})},{title:"动画方向",disabled:(T=(b=e.settingValue)==null?void 0:b.animate)==null?void 0:T.disabled,action:o.createVNode(w.Select,{value:(h=(u=e.settingValue)==null?void 0:u.animate)==null?void 0:h.direction,style:{width:"100px"},size:"small",dropdownStyle:{minWidth:"120px"},disabled:(y=(f=e.settingValue)==null?void 0:f.animate)==null?void 0:y.disabled,getPopupContainer:x=>x&&x.parentNode?x.parentNode:x,onChange:x=>{var S;return(S=e.onChange)==null?void 0:S.call(e,"animate","direction",x)}},{default:()=>{var x;return[(x=Za.find(S=>{var k,M;return S.name===((M=(k=e.settingValue)==null?void 0:k.animate)==null?void 0:M.name)}))==null?void 0:x.directions.map(S=>o.createVNode(w.Select.Option,{value:S},Qa(S)?S:{default:()=>[S]}))]}})}]},null)]))}}}),{preset:ru}=zt,Gt=Object.keys(K).filter(e=>e!=="title"),Ja={color:"#fff",fontSize:20},iu=[{label:"fixedHeader",title:"固定 Header"},{label:"fixSiderbar",title:"固定侧边菜单"},{label:"splitMenus",title:"自动分割菜单"}],lu=[{label:"showTabsBar",title:"多标签"},{label:"fixedMultiTab",title:"固定多标签"}],eo=e=>L.isBrowser()?{...te.pick(K,Gt),...e||{}}:te.cloneDeep(K),dt=(e,{slots:t})=>{var n;return o.createVNode("div",{style:{marginBottom:"24px"}},[o.createVNode("h3",{class:`${e.prefixCls}-body-title ${e.hashId}`.trim()},[e.title]),(n=t.default)==null?void 0:n.call(t)])},cu=o.defineComponent({name:"SettingDrawer",props:{themeOnly:Boolean,hideHintAlert:Boolean,hideCopyButton:Boolean,weakmode:Boolean,showProgress:Boolean,settings:{type:Object},colorList:{type:[Boolean,Array],default:()=>Ao},onChange:Function,onChangeLayout:Function},emits:["change","changeLayout"],setup(e){const{getPrefixCls:t}=ee(),n=t({suffixCls:"setting-drawer",isPor:!0}),{wrapSSR:a,hashId:r}=ae("ProSettingDraw",[Zd],n),i=o.ref(!1),[l,c]=fe.useState(!1),[d,m]=fe.useState(!1),[v,s]=fe.useState(!1),O=o.computed(()=>eo(te.pick(e.settings,Gt))),[b,T]=fe.useMergedState(()=>eo(te.pick(e.settings,Gt)),{value:O,onChange:e.onChange}),u=o.computed(()=>e.colorList&&L.isArray(e.colorList)?e.colorList:[]),h=o.computed(()=>Zs(o.unref(b))),{copy:f,copied:y,isSupported:x}=Yt.useClipboard();o.watch(l,()=>{i.value||(i.value=!0)});const S=(M,I,F)=>{var _,z;const B=["header","sider"],N={};if(F&&B.includes(M)){N[M]={},N[M][F]=I,e.onChangeLayout&&e.onChangeLayout(te.pick(N,B));return}else M==="animate"?(N[M]={},N[M][F]=I,F==="name"&&(N[M].direction=(z=(_=ru.find(j=>j.name===I))==null?void 0:_.directions)==null?void 0:z[0])):N[M]=I;if(M==="colorWeak"){const j=document.querySelector("body");j&&(j.dataset.prosettingdrawer=I===!0?j.style.filter:j.dataset.prosettingdrawer||"none",I===!0&&(j.dataset.prosettingdrawer=j.style.filter),j.style.filter=I===!0?"invert(80%)":j.dataset.prosettingdrawer||"none",I||delete j.dataset.prosettingdrawer)}T(L.merge(o.unref(b),{...wa(te.omit(N,B))}))},k=()=>{x.value&&f(JSON.stringify(o.unref(b)))};return o.watch(y,M=>{M&&w.message.success("拷贝成功,请到 config/default/themeConfig.js 中替换默认配置")}),()=>a(o.createVNode(w.Drawer,{width:300,closable:!1,open:l.value,rootClassName:`${n} ${r.value} ${l.value&&`${n}-show`} ${!i.value&&`${n}-trantion-none`}`,placement:"right",rootStyle:{zIndex:999},bodyStyle:{padding:0},contentWrapperStyle:{transform:"translateX(100%)"},onClose:()=>c(!1),handle:o.createVNode("div",{class:[`${n}-handle`,r.value],onClick:()=>c(!l.value)},[l.value?o.createVNode(Q.CloseOutlined,{style:Ja},null):o.createVNode(Q.SettingOutlined,{style:Ja},null)])},{default:()=>[o.createVNode("div",{class:[`${n}-wrapper`,r.value]},[o.createVNode(go,null,{default:()=>[o.createVNode("div",{class:[`${n}-content`,r.value]},[o.createVNode(dt,{prefixCls:n,hashId:r.value,title:"整体风格设置"},{default:()=>[o.createVNode(qa,{hashId:r.value,prefixCls:n,list:Ga,value:b.value.theme,configType:"theme",key:"navTheme",onChange:M=>S("theme",M)},null)]}),o.createVNode(dt,{hashId:r.value,title:o.createVNode("span",null,[o.createTextVNode("主题色 "),o.createVNode("a",{style:{fontSize:"12px"},onClick:()=>m(!0)},[o.createTextVNode("更多配置")])]),prefixCls:n},{default:()=>[o.createVNode(Jd,{hashId:r.value,prefixCls:n,colorList:u.value,settingValue:b.value,onChange:(M,I)=>S(I||"primaryColor",M)},null)]}),!e.themeOnly&&o.createVNode(o.Fragment,null,[o.createVNode(w.Divider,null,null),o.createVNode(dt,{hashId:r.value,prefixCls:n,title:"导航模式"},{default:()=>[o.createVNode(qa,{prefixCls:n,value:o.unref(b).layout,key:"layout",hashId:r.value,configType:"layout",list:Ya,onChange:M=>S("layout",M)},null)]}),iu.map(({label:M,title:I})=>o.createVNode(st,{label:I,disabled:o.unref(h)[M],value:o.unref(b)[M],prefixCls:n,hashId:r.value,valueKey:M,onChange:(F,B)=>S(F,B)},null)),o.createVNode(w.Divider,null,null),o.createVNode(dt,{hashId:r.value,prefixCls:n,title:o.createVNode("span",null,[o.createTextVNode("其他设置 "),o.createVNode("a",{style:{fontSize:"12px"},onClick:()=>s(!0)},[o.createTextVNode("更多配置")])])},{default:()=>[lu.map(({label:M,title:I})=>o.createVNode(st,{label:I,disabled:o.unref(h)[M],value:o.unref(b)[M],prefixCls:n,hashId:r.value,valueKey:M,onChange:(F,B)=>S(F,B)},null)),e.weakmode&&o.createVNode(st,{label:"色弱模式",value:o.unref(b).colorWeak,prefixCls:n,hashId:r.value,valueKey:"colorWeak",onChange:(M,I)=>S(M,I)},null),e.showProgress&&o.createVNode(st,{label:"顶部进度条",value:o.unref(b).showProgressBar,prefixCls:n,hashId:r.value,valueKey:"showProgressBar",onChange:(M,I)=>S(M,I)},null)]})]),e.hideHintAlert&&e.hideCopyButton?null:o.createVNode(w.Divider,null,null),e.hideHintAlert?null:o.createVNode(w.Alert,{type:"warning",message:"配置栏只在开发环境用于预览,生产环境不会展现,请拷贝后手动修改配置文件",icon:o.createVNode(Q.NotificationOutlined,null,null),showIcon:!0,style:{marginBottom:"16px"}},null),e.hideCopyButton?null:o.createVNode(w.Button,{onClick:()=>k(),block:!0},{default:()=>[o.createVNode(Q.CopyOutlined,null,null),o.createTextVNode("拷贝设置")]})])]})]),o.createVNode(w.Drawer,{width:320,closable:!1,placement:"right",open:d.value,bodyStyle:{padding:0},onClose:()=>m(!1)},{default:()=>[o.createVNode(nu,{settingValue:b.value,onChange:(M,I,F)=>S(I||"primaryColor",M,F)},null)]}),o.createVNode(w.Drawer,{width:320,closable:!1,placement:"right",open:v.value,bodyStyle:{padding:0},onClose:()=>s(!1)},{default:()=>[o.createVNode(ou,{settingValue:b.value,onChange:(M,I,F)=>S(M,F,I)},null)]})]}))}}),su=new g("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)"}}),du=new g("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)"}}),uu=new g("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)"}}),fu=new g("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)"}}),mu=new g("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)"}}),hu=new g("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)"}}),gu=new g("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)"}}),bu=new g("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)"}}),pu=()=>({"&.backInLeft":{animationFillMode:"both",animationName:su},"&.backInRight":{animationFillMode:"both",animationName:du},"&.backInUp":{animationFillMode:"both",animationName:uu},"&.backInDown":{animationFillMode:"both",animationName:fu}}),yu=()=>({"&.backOutLeft":{animationFillMode:"both",animationName:mu},"&.backOutRight":{animationFillMode:"both",animationName:hu},"&.backOutUp":{animationFillMode:"both",animationName:gu},"&.backOutDown":{animationFillMode:"both",animationName:bu}}),vu=new g("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)"}}),xu=new g("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)"}}),Cu=new g("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)"}}),wu=new g("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)"}}),Su=new g("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)"}}),Mu=new g("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)"}}),Iu=new g("bounceOutLeft",{"20%":{opacity:1,transform:"translate3d(20px, 0, 0) scaleX(0.9)"},to:{opacity:0,transform:"translate3d(-2000px, 0, 0) scaleX(2)"}}),Ou=new g("bounceOutRight",{"20%":{opacity:1,transform:"translate3d(-20px, 0, 0) scaleX(0.9)"},to:{opacity:0,transform:"translate3d(2000px, 0, 0) scaleX(2)"}}),Nu=new g("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)"}}),Tu=new g("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)"}}),$u=()=>({"&.bounceIn":{animationFillMode:"both",animationDuration:`${.3*.75}s !important`,animationName:vu},"&.bounceInLeft":{animationFillMode:"both",animationName:xu},"&.bounceInRight":{animationFillMode:"both",animationName:Cu},"&.bounceInDown":{animationFillMode:"both",animationName:wu},"&.bounceInUp":{animationFillMode:"both",animationName:Su}}),Bu=()=>({"&.bounceOut":{animationFillMode:"both",animationDuration:`${.3*.75}s !important`,animationName:Mu},"&.bounceOutLeft":{animationFillMode:"both",animationName:Iu},"&.bounceOutRight":{animationFillMode:"both",animationName:Ou},"&.bounceOutDown":{animationFillMode:"both",animationName:Nu},"&.bounceOutUp":{animationFillMode:"both",animationName:Tu}}),Ru=new g("fadeIn",{from:{opacity:0},to:{opacity:1}}),Pu=new g("fadeInLeft",{from:{opacity:0,transform:"translate3d(-100%, 0, 0)"},to:{opacity:1,transform:"translate3d(0, 0, 0)"}}),ku=new g("fadeInRight",{from:{opacity:0,transform:"translate3d(100%, 0, 0)"},to:{opacity:1,transform:"translate3d(0, 0, 0)"}}),Fu=new g("fadeInDown",{from:{opacity:0,transform:"translate3d(0, -100%, 0)"},to:{opacity:1,transform:"translate3d(0, 0, 0)"}}),_u=new g("fadeInUp",{from:{opacity:0,transform:"translate3d(0, 100%, 0)"},to:{opacity:1,transform:"translate3d(0, 0, 0)"}}),Au=new g("fadeInDownBig",{from:{opacity:0,transform:"translate3d(0, -2000px, 0)"},to:{opacity:1,transform:"translate3d(0, 0, 0)"}}),ju=new g("fadeInUpBig",{from:{opacity:0,transform:"translate3d(0, 2000px, 0)"},to:{opacity:1,transform:"translate3d(0, 0, 0)"}}),Vu=new g("fadeInLeftBig",{from:{opacity:0,transform:"translate3d(-2000px, 0, 0)"},to:{opacity:1,transform:"translate3d(0, 0, 0)"}}),Lu=new g("fadeInRightBig",{from:{opacity:0,transform:"translate3d(2000px, 0, 0)"},to:{opacity:1,transform:"translate3d(0, 0, 0)"}}),Hu=new g("fadeInTopLeft",{from:{opacity:0,transform:"translate3d(-100%, -100%, 0)"},to:{opacity:1,transform:"translate3d(0, 0, 0)"}}),zu=new g("fadeInBottomRight",{from:{opacity:0,transform:"translate3d(100%, 100%, 0)"},to:{opacity:1,transform:"translate3d(0, 0, 0)"}}),Du=new g("fadeInTopRight",{from:{opacity:0,transform:"translate3d(100%, -100%, 0)"},to:{opacity:1,transform:"translate3d(0, 0, 0)"}}),Eu=new g("fadeInBottomLeft",{from:{opacity:0,transform:"translate3d(-100%, 100%, 0)"},to:{opacity:1,transform:"translate3d(0, 0, 0)"}}),Wu=new g("fadeOut",{from:{opacity:1},to:{opacity:0}}),Ku=new g("fadeOutLeft",{from:{opacity:1},to:{opacity:0,transform:"translate3d(-100%, 0, 0)"}}),Uu=new g("fadeOutRight",{from:{opacity:1},to:{opacity:0,transform:"translate3d(100%, 0, 0)"}}),Xu=new g("fadeOutDown",{from:{opacity:1},to:{opacity:0,transform:"translate3d(0, 100%, 0)"}}),Gu=new g("fadeOutUp",{from:{opacity:1},to:{opacity:0,transform:"translate3d(0, -100%, 0)"}}),Yu=new g("fadeOutDownBig",{from:{opacity:1},to:{opacity:0,transform:"translate3d(0, 2000px, 0)"}}),qu=new g("fadeOutUpBig",{from:{opacity:1},to:{opacity:0,transform:"translate3d(0, -2000px, 0)"}}),Qu=new g("fadeOutLeftBig",{from:{opacity:1},to:{opacity:0,transform:"translate3d(-2000px, 0, 0)"}}),Zu=new g("fadeOutRightBig",{from:{opacity:1},to:{opacity:0,transform:"translate3d(2000px, 0, 0)"}}),Ju=new g("fadeOutTopLeft",{from:{opacity:1,transform:"translate3d(0, 0, 0)"},to:{opacity:0,transform:"translate3d(-100%, -100%, 0)"}}),ef=new g("fadeOutBottomRight",{from:{opacity:1,transform:"translate3d(0, 0, 0)"},to:{opacity:0,transform:"translate3d(100%, 100%, 0)"}}),tf=new g("fadeOutTopRight",{from:{opacity:1,transform:"translate3d(0, 0, 0)"},to:{opacity:0,transform:"translate3d(100%, -100%, 0)"}}),nf=new g("fadeOutBottomLeft",{from:{opacity:1,transform:"translate3d(0, 0, 0)"},to:{opacity:0,transform:"translate3d(-100%, 100%, 0)"}}),af=()=>({"&.fadeIn":{animationFillMode:"both",animationName:Ru},"&.fadeInLeft":{animationFillMode:"both",animationName:Pu},"&.fadeInRight":{animationFillMode:"both",animationName:ku},"&.fadeInDown":{animationFillMode:"both",animationName:Fu},"&.fadeInUp":{animationFillMode:"both",animationName:_u},"&.fadeInLeftBig":{animationFillMode:"both",animationName:Vu},"&.fadeInRightBig":{animationFillMode:"both",animationName:Lu},"&.fadeInUpBig":{animationFillMode:"both",animationName:ju},"&.fadeInDownBig":{animationFillMode:"both",animationName:Au},"&.fadeInTopLeft":{animationFillMode:"both",animationName:Hu},"&.fadeInBottomRight":{animationFillMode:"both",animationName:zu},"&.fadeInTopRight":{animationFillMode:"both",animationName:Du},"&.fadeInBottomLeft":{animationFillMode:"both",animationName:Eu}}),of=()=>({"&.fadeOut":{animationFillMode:"both",animationName:Wu},"&.fadeOutLeft":{animationFillMode:"both",animationName:Ku},"&.fadeOutRight":{animationFillMode:"both",animationName:Uu},"&.fadeOutDown":{animationFillMode:"both",animationName:Xu},"&.fadeOutUp":{animationFillMode:"both",animationName:Gu},"&.fadeOutDownBig":{animationFillMode:"both",animationName:Yu},"&.fadeOutUpBig":{animationFillMode:"both",animationName:qu},"&.fadeOutLeftBig":{animationFillMode:"both",animationName:Qu},"&.fadeOutRightBig":{animationFillMode:"both",animationName:Zu},"&.fadeOutTopLeft":{animationFillMode:"both",animationName:Ju},"&.fadeOutBottomRight":{animationFillMode:"both",animationName:ef},"&.fadeOutTopRight":{animationFillMode:"both",animationName:tf},"&.fadeOutBottomLeft":{animationFillMode:"both",animationName:nf}}),rf=new g("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)"}}),lf=new g("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)"}}),cf=new g("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)"}}),sf=new g("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)"}}),df=()=>({"&.flipInX":{animationFillMode:"both",backfaceVisibility:"visible !important",animationName:rf},"&.flipInY":{animationFillMode:"both",backfaceVisibility:"visible !important",animationName:lf}}),uf=()=>({"&.flipOutX":{animationFillMode:"both",backfaceVisibility:"visible !important",animationDuration:`${.3*.75}s !important`,animationName:cf},"&.flipOutY":{animationFillMode:"both",backfaceVisibility:"visible !important",animationDuration:`${.3*.75}s !important`,animationName:sf}}),ff=new g("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)"}}),mf=new g("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)"}}),hf=new g("lightSpeedOutLeft",{from:{opacity:1},to:{opacity:0,transform:"translate3d(-100%, 0, 0) skewX(-30deg)"}}),gf=new g("lightSpeedOutRight",{from:{opacity:1},to:{opacity:0,transform:"translate3d(100%, 0, 0) skewX(30deg)"}}),bf=()=>({"&.lightSpeedInLeft":{animationFillMode:"both",animationTimingFunction:"ease-out",animationName:ff},"&.lightSpeedInRight":{animationFillMode:"both",animationTimingFunction:"ease-out",animationName:mf}}),pf=()=>({"&.lightSpeedOutLeft":{animationFillMode:"both",animationTimingFunction:"ease-in",animationName:hf},"&.lightSpeedOutRight":{animationFillMode:"both",animationTimingFunction:"ease-in",animationName:gf}}),yf=new g("rotateIn",{from:{opacity:0,transform:"rotate3d(0, 0, 1, -200deg)"},to:{opacity:1,transform:"translate3d(0, 0, 0)"}}),vf=new g("rotateInDownLeft",{from:{opacity:0,transform:"rotate3d(0, 0, 1, -45deg)"},to:{opacity:1,transform:"translate3d(0, 0, 0)"}}),xf=new g("rotateInDownRight",{from:{opacity:0,transform:"rotate3d(0, 0, 1, 45deg)"},to:{opacity:1,transform:"translate3d(0, 0, 0)"}}),Cf=new g("rotateInUpLeft",{from:{opacity:0,transform:"rotate3d(0, 0, 1, 45deg)"},to:{opacity:1,transform:"translate3d(0, 0, 0)"}}),wf=new g("rotateInUpRight",{from:{opacity:0,transform:"rotate3d(0, 0, 1, -90deg)"},to:{opacity:1,transform:"translate3d(0, 0, 0)"}}),Sf=new g("rotateOut",{from:{opacity:1},to:{opacity:0,transform:"rotate3d(0, 0, 1, 200deg)"}}),Mf=new g("rotateOutDownLeft",{from:{opacity:1},to:{opacity:0,transform:"rotate3d(0, 0, 1, 45deg)"}}),If=new g("rotateOutDownRight",{from:{opacity:1},to:{opacity:0,transform:"rotate3d(0, 0, 1, -45deg)"}}),Of=new g("rotateOutUpLeft",{from:{opacity:1},to:{opacity:0,transform:"rotate3d(0, 0, 1, -45deg)"}}),Nf=new g("rotateOutUpRight",{from:{opacity:1},to:{opacity:0,transform:"rotate3d(0, 0, 1, 90deg)"}}),Tf=()=>({"&.rotateIn":{animationFillMode:"both",transformOrigin:"center",animationName:yf},"&.rotateInDownLeft":{animationFillMode:"both",transformOrigin:"left bottom",animationName:vf},"&.rotateInDownRight":{animationFillMode:"both",transformOrigin:"right bottom",animationName:xf},"&.rotateInUpLeft":{animationFillMode:"both",transformOrigin:"left bottom",animationName:Cf},"&.rotateInUpRight":{animationFillMode:"both",transformOrigin:"right bottom",animationName:wf}}),$f=()=>({"&.rotateOut":{animationFillMode:"both",transformOrigin:"center",animationName:Sf},"&.rotateOutDownLeft":{animationFillMode:"both",transformOrigin:"left bottom",animationName:Mf},"&.rotateOutDownRight":{animationFillMode:"both",transformOrigin:"right bottom",animationName:If},"&.rotateOutUpLeft":{animationFillMode:"both",transformOrigin:"left bottom",animationName:Of},"&.rotateOutUpRight":{animationFillMode:"both",transformOrigin:"right bottom",animationName:Nf}}),Bf=new g("rollIn",{from:{opacity:0,transform:"translate3d(-100%, 0, 0) rotate3d(0, 0, 1, -120deg)"},to:{opacity:1,transform:"translate3d(0, 0, 0)"}}),Rf=new g("rollOut",{from:{opacity:1},to:{opacity:0,transform:"translate3d(100%, 0, 0) rotate3d(0, 0, 1, 120deg)"}}),Pf=()=>({"&.rollIn":{animationFillMode:"both",animationName:Bf}}),kf=()=>({"&.rollOut":{animationFillMode:"both",animationName:Rf}}),Ff=new g("zoomIn",{from:{opacity:0,transform:"scale3d(0.3, 0.3, 0.3)"},"50%":{opacity:1}}),_f=new g("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)"}}),Af=new g("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)"}}),jf=new g("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)"}}),Vf=new g("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)"}}),Lf=new g("zoomOut",{from:{opacity:1},"50%":{opacity:0,transform:"scale3d(0.3, 0.3, 0.3)"},to:{opacity:0}}),Hf=new g("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)"}}),zf=new g("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)"}}),Df=new g("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)"}}),Ef=new g("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)"}}),Wf=()=>({"&.zoomIn":{animationFillMode:"both",animationName:Ff},"&.zoomInDown":{animationFillMode:"both",animationName:_f},"&.zoomInLeft":{animationFillMode:"both",animationName:Af},"&.zoomInRight":{animationFillMode:"both",animationName:jf},"&.zoomInUp":{animationFillMode:"both",animationName:Vf}}),Kf=()=>({"&.zoomOut":{animationFillMode:"both",animationName:Lf},"&.zoomOutDown":{animationFillMode:"both",transformOrigin:"center bottom",animationName:Hf},"&.zoomOutLeft":{animationFillMode:"both",transformOrigin:"left center",animationName:zf},"&.zoomOutRight":{animationFillMode:"both",transformOrigin:"right center",animationName:Df},"&.zoomOutUp":{animationFillMode:"both",transformOrigin:"center bottom",animationName:Ef}}),Uf=new g("slideInDown",{from:{transform:"translate3d(0, -100%, 0)",visibility:"visible"},to:{transform:"translate3d(0, 0, 0)"}}),Xf=new g("slideInLeft",{from:{transform:"translate3d(-100%, 0, 0)",visibility:"visible"},to:{transform:"translate3d(0, 0, 0)"}}),Gf=new g("slideInRight",{from:{transform:"translate3d(100%, 0, 0)",visibility:"visible"},to:{transform:"translate3d(0, 0, 0)"}}),Yf=new g("slideInUp",{from:{transform:"translate3d(0, 100%, 0)",visibility:"visible"},to:{transform:"translate3d(0, 0, 0)"}}),qf=new g("slideOutDown",{from:{transform:"translate3d(0, 0, 0)"},to:{transform:"translate3d(0, 100%, 0)",visibility:"hidden"}}),Qf=new g("slideOutLeft",{from:{transform:"translate3d(0, 0, 0)"},to:{transform:"translate3d(-100%, 0, 0)",visibility:"hidden"}}),Zf=new g("slideOutRight",{from:{transform:"translate3d(0, 0, 0)"},to:{transform:"translate3d(100%, 0, 0)",visibility:"hidden"}}),Jf=new g("slideOutUp",{from:{transform:"translate3d(0, 0, 0)"},to:{transform:"translate3d(0, -100%, 0)",visibility:"hidden"}}),e0=()=>({"&.slideInDown":{animationFillMode:"both",animationName:Uf},"&.slideInLeft":{animationFillMode:"both",animationName:Xf},"&.slideInRight":{animationFillMode:"both",animationName:Gf},"&.slideInUp":{animationFillMode:"both",animationName:Yf}}),t0=()=>({"&.slideOutDown":{animationFillMode:"both",animationName:qf},"&.slideOutLeft":{animationFillMode:"both",animationName:Qf},"&.slideOutRight":{animationFillMode:"both",animationName:Zf},"&.slideOutUp":{animationFillMode:"both",animationName:Jf}}),n0=e=>({[e.componentCls]:{"&-enter":{background:"transparent",animationDuration:".3s !important",...pu(),...$u(),...af(),...df(),...bf(),...Tf(),...Pf(),...Wf(),...e0()},"&-leave":{display:"none",background:"transparent",animationDuration:".3s !important",...yu(),...Bu(),...of(),...uf(),...pf(),...$f(),...kf(),...Kf(),...t0()}}});function a0(e){return Ke("LayoutPageTranstion",t=>{const n=pt(t);return[n0(n)]},e)}const o0=o.defineComponent({name:"PageTranstion",props:{disabled:{type:Boolean,default:!1},reverse:{type:Boolean,default:!0},name:{type:String,default:"bounce"},direction:String},setup(e,{slots:t}){const n=L.getPrefixCls({suffixCls:"page-transtion",isPor:!0}),{wrapSSR:a,hashId:r}=a0(n),i=o.computed(()=>[c(!1),`${n}-enter`,r.value].join(" ")),l=o.computed(()=>[c(!0),`${n}-leave`,r.value].join(" ")),c=m=>{const v=zt.preset.find(b=>e.name==b.name);if(v==null)return"";let s="";e.direction==null?s=v.directions[0]:s=v.directions.find(b=>b==e.direction)||"",s=s==null||s==="default"?"":s,s!=""&&(s=m&&e.reverse?d(s,v.directions):s,s=s[0].toUpperCase()+s.substring(1));const O=m?"Out":"In";return v.name+O+s},d=(m,v)=>{if(m.length==0||m=="x"||m=="y")return m;let s=v.indexOf(m);return s=s%2==1?s-1:s+1,v[s]};return()=>e.disabled?null:a(o.createVNode(o.Transition,{enterActiveClass:i.value,leaveActiveClass:l.value},{default:()=>{var m;return[(m=t.default)==null?void 0:m.call(t)]}}))}});$.BaseMenu=Et,$.DefaultHeader=Ka,$.GProLayout=Yd,$.GlobalFooter=ot,$.PageContainer=ud,$.PageLoading=Qt,$.PageTranstion=o0,$.SettingDrawer=cu,$.SiderMenuWrapper=nt,$.WrapContent=rt,$.baseMenuProps=et,$.clearMenuItem=va,$.createContext=Ma,$.createRouteContext=Oa,$.flatMap=xa,$.getMenuData=qd,$.getMenuFirstChildren=Ca,$.handleThemeConfig=wa,$.provideProLayoutContext=Na,$.useContext=Ia,$.useProLayoutContext=ee,Object.defineProperty($,Symbol.toStringTag,{value:"Module"})});
|
|
19
|
+
${e.antCls}-menu-submenu-title:hover`]:{color:(so=(co=e.layout)==null?void 0:co.sider)==null?void 0:so.colorTextMenuActive,borderRadius:e.borderRadius,[`${e.antCls}-menu-submenu-arrow`]:{color:(fo=(uo=e.layout)==null?void 0:uo.sider)==null?void 0:fo.colorTextMenuActive}}}}}},hd=e=>{var t,n;return{[e.componentCls]:{[`&${e.componentCls}-wide`]:{backgroundColor:e.colorBgLayout,[`${e.componentCls}-content`]:{margin:0,marginInlineStart:20}},[`${e.componentCls}-content`]:{position:"relative",margin:(n=(t=e.layout)==null?void 0:t.pageContainer)==null?void 0:n.paddingBlockPageContainerContent},[`${e.componentCls}-container`]:{width:"100%",display:"flex",flexDirection:"column",minWidth:0,minHeight:0,backgroundColor:"transparent"}}}},gd=e=>{var t,n;return{[`${e.componentCls}`]:{"&-fixed":{width:"100%",height:62,background:"transparent"}},[`${e.componentWrapCls}`]:{background:e.colorBgContainer,[`${e.antCls}-tabs-nav`]:{paddingLeft:16,[`${e.antCls}-tabs-tab:not(${e.antCls}-tabs-tab-active)`]:{borderBottomColor:"transparent"},[`${e.componentCls}-title`]:{display:"flex",alignItems:"center",gap:8,[`${e.componentCls}-reload-btn,${e.componentCls}-close-btn`]:{color:e.colorTextSecondary,fontSize:12,margin:0,cursor:"pointer",transition:"color .3s","&:hover":{color:e.colorPrimary}}},[`${e.componentCls}-dropdown-menu-btn`]:{marginInlineEnd:8,padding:12,fontSize:16,cursor:"pointer"}},"&-fixed":{position:"fixed",height:62,top:((n=(t=e.layout)==null?void 0:t.header)==null?void 0:n.heightLayoutHeader)||K.headerHeight,right:0,zIndex:9,transition:"width .2s"}}}};function bd(e){return Ke("ProMultiTabs",t=>{const n=pt(t,{componentWrapCls:`${t.componentCls}-wrap`});return[gd(n)]},e)}const pd=[{key:"closeOthersTabs",label:"关闭其他"},{key:"closeLeftTabs",label:"关闭左侧"},{key:"closeRightTabs",label:"关闭右侧"},{key:"reloadPage",label:"刷新当前页"}];function yd(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!o.isVNode(e)}const vd=w.Tabs.TabPane,xd=w.Menu.Item,Cd=o.defineComponent({props:{..._a,visible:{type:Boolean,default:!0}},inheritAttrs:!1,setup(e){const{isMobile:t,isFixedMultiTab:n}=o.toRefs(e),a=o.ref(!1),r=o.reactive({activeKey:"",contextMenuActiveKey:""}),i=We.useRouter(),{menuData:l,getPrefixCls:c}=ee(),d=c({isPor:!0,suffixCls:"multi-tab"}),{wrapSSR:m,hashId:v}=bd(d),s=o.ref([]);o.watch(s,()=>{var p;(p=e.onChangeTabs)==null||p.call(e,te.cloneDeep(o.unref(s)))},{deep:!0});const O=o.computed(()=>i.currentRoute.value.path),b=o.computed(()=>n.value&&!t.value),T=o.computed(()=>b.value?`calc(100% - ${e.collapsed?e.collapsedWidth:e.siderWidth}px)`:"100%"),u=o.computed(()=>L.classNames(`${d}-wrap`,{[`${v.value}`]:!0,[`${d}-wrap-fixed`]:e.isFixedMultiTab,[`${d}-wrap-loading`]:e.loading})),h=o.computed(()=>{const p={display:e.visible?void 0:"none"};return e.isFixedMultiTab?{margin:0,width:T.value,paddingTop:"6px",zIndex:100,...p}:p}),f=p=>p.fullPath===O.value,y=p=>{if(p.name&&p.meta&&p.meta.tagHidden!==!0){const C=p.fullPath||p.path,P=s.value.find(A=>A.fullPath===C),R={path:p.path,fullPath:C,query:p.query,params:p.params,name:p.name,meta:{...p.meta}};P?Object.assign(P,R):p.meta.tagFixed?s.value.unshift(R):s.value.push(R),f(p)&&(r.activeKey=C)}},x=p=>{p.forEach(C=>{C.meta&&C.meta.tagFixed&&y(C),C.children&&x(C.children)})};o.watch(()=>l.value,p=>{x(p)},{deep:!0,immediate:!0}),o.watch(()=>i.currentRoute.value,p=>{y(p)},{deep:!0,immediate:!0});const S=()=>{const p=s.value.slice(-1)[0];p?i.push(p):i.push("/")},k=async p=>{const C=s.value.find(P=>p===P.fullPath);s.value=s.value.filter(P=>P.fullPath!==p),C&&f(C)&&S()},M=p=>{const C=s.value.find(P=>P.path===p);r.activeKey!==(C==null?void 0:C.fullPath)&&(C!=null&&C.fullPath)&&i.push(C==null?void 0:C.fullPath)},I=()=>{var p;a.value=!0,e.onReloadPage&&((p=e.onReloadPage)==null||p.call(e)),setTimeout(()=>{a.value=!1},500)},F=p=>p.meta&&p.meta.tagFixed,B=p=>r[p],N=(p,C)=>{const P=s.value.findIndex(R=>R.fullPath===B(C));switch(p){case"closeOthersTabs":s.value=s.value.filter(R=>{var A;return R.fullPath===B(C)||((A=R.meta)==null?void 0:A.tagFixed)});break;case"closeLeftTabs":P&&(s.value=s.value.filter((R,A)=>{var U;return A>=P||((U=R.meta)==null?void 0:U.tagFixed)}));break;case"closeRightTabs":P&&(s.value=s.value.filter((R,A)=>{var U;return A<=P||((U=R.meta)==null?void 0:U.tagFixed)}));break;case"reloadPage":(P===0||P)&&r.activeKey===B(C)&&I();break}r.activeKey!==B(C)&&i.push(B(C))},_=(p,C)=>{const P=s.value.findIndex(R=>R.fullPath===C);switch(p){case"closeOthersTabs":return s.value.filter((X,E)=>{var H;return E!==P&&!((H=X.meta)!=null&&H.tagFixed)}).length===0;case"closeLeftTabs":return s.value.filter((X,E)=>{var H;return E<P&&!((H=X.meta)!=null&&H.tagFixed)}).length===0;case"closeRightTabs":return s.value.filter((X,E)=>{var H;return E>P&&!((H=X.meta)!=null&&H.tagFixed)}).length===0}},z=p=>{let C;const{path:P,stateType:R}=p;return o.createVNode(w.Menu,{selectedKeys:[],onClick:({key:A})=>N(A,R)},yd(C=pd.map(A=>o.createVNode(xd,{key:A.key,disabled:_(A.key,P)},{default:()=>[A.label]})))?C:{default:()=>[C]})},j=p=>{const{router:C}=p;return o.createVNode(w.Dropdown,{trigger:"contextmenu",overlay:o.createVNode(z,{path:(C==null?void 0:C.fullPath)||"",stateType:"contextMenuActiveKey"},null),onOpenChange:P=>{r.contextMenuActiveKey=P&&C.fullPath||""}},{default:()=>{var P;return[o.createVNode("div",{class:[`${d}-title`,v.value]},[(P=C.meta)==null?void 0:P.title,r.activeKey===C.fullPath&&o.createVNode(Q.ReloadOutlined,{class:[`${d}-reload-btn`,v.value],spin:a.value,onClick:R=>{R.stopPropagation(),!a.value&&I()}},null),s.value.length>1&&!F(C)&&o.createVNode(Q.CloseOutlined,{class:[`${d}-close-btn`,v.value],onClick:R=>{R.stopPropagation(),!a.value&&k((C==null?void 0:C.fullPath)||"")}},null)])]}})};return()=>m(o.createVNode(o.Fragment,null,[!!e.isFixedMultiTab&&o.withDirectives(o.createVNode("div",{class:[`${d}-fixed`,v.value]},null),[[o.vShow,e.visible]]),o.createVNode(w.Tabs,{hideAdd:!0,type:"editable-card",style:h.value,class:u.value,activeKey:r.activeKey,onTabClick:M},{default:()=>[s.value.map(p=>o.createVNode(vd,{key:p.fullPath,closable:!1,tab:o.createVNode(j,{router:p},null)},null))],rightExtra:()=>o.createVNode(w.Dropdown,{overlay:o.createVNode(z,{path:r.activeKey,stateType:"activeKey"},null)},{default:()=>[o.createVNode(Q.EllipsisOutlined,{class:[`${d}-dropdown-menu-btn`,v.value],rotate:90},null)]})})]))}}),{Content:wd}=w.Layout,rt=(e,{slots:t,attrs:n})=>{var T;const{hashId:a,prefixCls:r,isMobile:i,loading:l,collapsed:c,siderWidth:d,isShowTabsBar:m,isFixedMultiTab:v,onReloadPage:s,onChangeTabs:O}=e;if(e.isChildrenLayout)return(T=t.default)==null?void 0:T.call(t);const{flatMenuData:b}=ee();return o.createVNode(o.Fragment,null,[o.createVNode(Cd,{visible:o.unref(b).length>0&&m,isMobile:i,loading:l,isFixedMultiTab:v,siderWidth:d,collapsed:c,onReloadPage:s,onChangeTabs:O},null),o.createVNode(wd,{style:n.style,class:[`${r}-content`]},{default:()=>{var u;return[l&&o.createVNode(Qt,null,null),o.createVNode("div",{class:[`${r}-content-spin-container`,a],style:{opacity:l?"0":void 0}},[(u=t.default)==null?void 0:u.call(t)])]}})])};rt.inheritAttrs=!1,rt.displayName="wrap-content";const Sd=e=>{var t,n,a,r;return{[`${e.proComponentsCls}-basic-layout`]:{[`${e.antCls}-layout-header${e.componentCls}${e.componentCls}-light`]:{background:((n=(t=e.layout)==null?void 0:t.header)==null?void 0:n.colorBgMenu)||e.colorBgElevated},[`${e.antCls}-layout-header${e.componentCls}${e.componentCls}-dark`]:{background:(r=(a=e.layout)==null?void 0:a.header)==null?void 0:r.colorDarkBgMenu,[`${e.proComponentsCls}-global-header-collapsed-button`]:{color:"#fff"}},[`${e.antCls}-layout-header${e.componentCls}`]:{zIndex:19,paddingBlock:0,paddingInline:0,WebkitBackdropFilter:"blur(8px)",backdropFilter:"blur(8px)",transition:"background-color 0.3s cubic-bezier(0.645, 0.045, 0.355, 1)",[`&${e.proComponentsCls}`]:{"&-fixed-header":{position:"fixed",width:"100%",zIndex:9,top:0,"&-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:e.colorText}}},"&-header-realDark":{boxShadow:"0 2px 8px 0 rgba(0, 0, 0, 65%)"},"&-header-actions-header-action":{transition:"width 0.3s cubic-bezier(0.645, 0.045, 0.355, 1)"}}}}}};function He(){return He=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},He.apply(this,arguments)}var Va=function(){if(typeof Map<"u")return Map;function e(t,n){var a=-1;return t.some(function(r,i){return r[0]===n?(a=i,!0):!1}),a}return function(){function t(){this.__entries__=[]}return Object.defineProperty(t.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(n){var a=e(this.__entries__,n),r=this.__entries__[a];return r&&r[1]},t.prototype.set=function(n,a){var r=e(this.__entries__,n);~r?this.__entries__[r][1]=a:this.__entries__.push([n,a])},t.prototype.delete=function(n){var a=this.__entries__,r=e(a,n);~r&&a.splice(r,1)},t.prototype.has=function(n){return!!~e(this.__entries__,n)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(n,a){a===void 0&&(a=null);for(var r=0,i=this.__entries__;r<i.length;r++){var l=i[r];n.call(a,l[1],l[0])}},t}()}(),Ut=typeof window<"u"&&typeof document<"u"&&window.document===document,it=function(){return typeof global<"u"&&global.Math===Math?global:typeof self<"u"&&self.Math===Math?self:typeof window<"u"&&window.Math===Math?window:Function("return this")()}(),Md=function(){return typeof requestAnimationFrame=="function"?requestAnimationFrame.bind(it):function(e){return setTimeout(function(){return e(Date.now())},1e3/60)}}(),Id=2;function Od(e,t){var n=!1,a=!1,r=0;function i(){n&&(n=!1,e()),a&&c()}function l(){Md(i)}function c(){var d=Date.now();if(n){if(d-r<Id)return;a=!0}else n=!0,a=!1,setTimeout(l,t);r=d}return c}var Nd=20,Td=["top","right","bottom","left","width","height","size","weight"],$d=typeof MutationObserver<"u",Bd=function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=Od(this.refresh.bind(this),Nd)}return e.prototype.addObserver=function(t){~this.observers_.indexOf(t)||this.observers_.push(t),this.connected_||this.connect_()},e.prototype.removeObserver=function(t){var n=this.observers_,a=n.indexOf(t);~a&&n.splice(a,1),!n.length&&this.connected_&&this.disconnect_()},e.prototype.refresh=function(){var t=this.updateObservers_();t&&this.refresh()},e.prototype.updateObservers_=function(){var t=this.observers_.filter(function(n){return n.gatherActive(),n.hasActive()});return t.forEach(function(n){return n.broadcastActive()}),t.length>0},e.prototype.connect_=function(){!Ut||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),$d?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},e.prototype.disconnect_=function(){!Ut||!this.connected_||(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(t){var n=t.propertyName,a=n===void 0?"":n,r=Td.some(function(i){return!!~a.indexOf(i)});r&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),La=function(e,t){for(var n=0,a=Object.keys(t);n<a.length;n++){var r=a[n];Object.defineProperty(e,r,{value:t[r],enumerable:!1,writable:!1,configurable:!0})}return e},Pe=function(e){var t=e&&e.ownerDocument&&e.ownerDocument.defaultView;return t||it},Ha=ct(0,0,0,0);function lt(e){return parseFloat(e)||0}function za(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return t.reduce(function(a,r){var i=e["border-"+r+"-width"];return a+lt(i)},0)}function Rd(e){for(var t=["top","right","bottom","left"],n={},a=0,r=t;a<r.length;a++){var i=r[a],l=e["padding-"+i];n[i]=lt(l)}return n}function Pd(e){var t=e.getBBox();return ct(0,0,t.width,t.height)}function kd(e){var t=e.clientWidth,n=e.clientHeight;if(!t&&!n)return Ha;var a=Pe(e).getComputedStyle(e),r=Rd(a),i=r.left+r.right,l=r.top+r.bottom,c=lt(a.width),d=lt(a.height);if(a.boxSizing==="border-box"&&(Math.round(c+i)!==t&&(c-=za(a,"left","right")+i),Math.round(d+l)!==n&&(d-=za(a,"top","bottom")+l)),!_d(e)){var m=Math.round(c+i)-t,v=Math.round(d+l)-n;Math.abs(m)!==1&&(c-=m),Math.abs(v)!==1&&(d-=v)}return ct(r.left,r.top,c,d)}var Fd=function(){return typeof SVGGraphicsElement<"u"?function(e){return e instanceof Pe(e).SVGGraphicsElement}:function(e){return e instanceof Pe(e).SVGElement&&typeof e.getBBox=="function"}}();function _d(e){return e===Pe(e).document.documentElement}function Ad(e){return Ut?Fd(e)?Pd(e):kd(e):Ha}function jd(e){var t=e.x,n=e.y,a=e.width,r=e.height,i=typeof DOMRectReadOnly<"u"?DOMRectReadOnly:Object,l=Object.create(i.prototype);return La(l,{x:t,y:n,width:a,height:r,top:n,right:t+a,bottom:r+n,left:t}),l}function ct(e,t,n,a){return{x:e,y:t,width:n,height:a}}var Vd=function(){function e(t){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=ct(0,0,0,0),this.target=t}return e.prototype.isActive=function(){var t=Ad(this.target);return this.contentRect_=t,t.width!==this.broadcastWidth||t.height!==this.broadcastHeight},e.prototype.broadcastRect=function(){var t=this.contentRect_;return this.broadcastWidth=t.width,this.broadcastHeight=t.height,t},e}(),Ld=function(){function e(t,n){var a=jd(n);La(this,{target:t,contentRect:a})}return e}(),Hd=function(){function e(t,n,a){if(this.activeObservations_=[],this.observations_=new Va,typeof t!="function")throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=t,this.controller_=n,this.callbackCtx_=a}return e.prototype.observe=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(t instanceof Pe(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var n=this.observations_;n.has(t)||(n.set(t,new Vd(t)),this.controller_.addObserver(this),this.controller_.refresh())}},e.prototype.unobserve=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(t instanceof Pe(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var n=this.observations_;n.has(t)&&(n.delete(t),n.size||this.controller_.removeObserver(this))}},e.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},e.prototype.gatherActive=function(){var t=this;this.clearActive(),this.observations_.forEach(function(n){n.isActive()&&t.activeObservations_.push(n)})},e.prototype.broadcastActive=function(){if(this.hasActive()){var t=this.callbackCtx_,n=this.activeObservations_.map(function(a){return new Ld(a.target,a.broadcastRect())});this.callback_.call(t,n,t),this.clearActive()}},e.prototype.clearActive=function(){this.activeObservations_.splice(0)},e.prototype.hasActive=function(){return this.activeObservations_.length>0},e}(),Da=typeof WeakMap<"u"?new WeakMap:new Va,Ea=function(){function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var n=Bd.getInstance(),a=new Hd(t,n,this);Da.set(this,a)}return e}();["observe","unobserve","disconnect"].forEach(function(e){Ea.prototype[e]=function(){var t;return(t=Da.get(this))[e].apply(t,arguments)}});var zd=function(){return typeof it.ResizeObserver<"u"?it.ResizeObserver:Ea}();const Dd=e=>{var t;let n=((t=e==null?void 0:e.vnode)===null||t===void 0?void 0:t.el)||e&&(e.$el||e);for(;n&&!n.tagName;)n=n.nextSibling;return n},Ed=o.defineComponent({compatConfig:{MODE:3},name:"ResizeObserver",props:{disabled:Boolean,onResize:Function},emits:["resize"],setup(e,t){let{slots:n}=t;const a=o.reactive({width:0,height:0,offsetHeight:0,offsetWidth:0});let r=null,i=null;const l=()=>{i&&(i.disconnect(),i=null)},c=v=>{const{onResize:s}=e,O=v[0].target,{width:b,height:T}=O.getBoundingClientRect(),{offsetWidth:u,offsetHeight:h}=O,f=Math.floor(b),y=Math.floor(T);if(a.width!==f||a.height!==y||a.offsetWidth!==u||a.offsetHeight!==h){const x={width:f,height:y,offsetWidth:u,offsetHeight:h};He(a,x),s&&Promise.resolve().then(()=>{s(He(He({},x),{offsetWidth:u,offsetHeight:h}),O)})}},d=o.getCurrentInstance(),m=()=>{const{disabled:v}=e;if(v){l();return}const s=Dd(d);s!==r&&(l(),r=s),!i&&s&&(i=new zd(c),i.observe(s))};return o.onMounted(()=>{m()}),o.onUpdated(()=>{m()}),o.onUnmounted(()=>{l()}),o.watch(()=>e.disabled,()=>{m()},{flush:"post"}),()=>{var v;return(v=n.default)===null||v===void 0?void 0:v.call(n)[0]}}}),Wd=e=>({[`${e.proComponentsCls}-header`]:{"&-light":{[`${e.componentCls}-logo`]:{h1:{color:e.colorBgSpotlight}}}},[e.componentCls]:{position:"relative",background:"transparent",marginBlock:0,paddingInline:16,width:"100%",height:"100%",boxShadow:"0 1px 4px rgba(0,21,41,.08)",boxSizing:"border-box","&-mix":{boxShadow:"0 1px 4px 0 rgba(0,21,41,.12)"},"&-wide":{boxShadow:"0 1px 4px 0 rgba(0,21,41,.12)",padding:0,[`${e.componentCls}-main`]:{margin:"0 auto"}},["&-main"]:{display:"flex",height:"100%","&-left":{display:"flex",minWidth:192}},"> a":{height:"100%"},"> *":{height:"100%"},[`${e.proComponentsCls}-layout-apps-icon`]:{marginInlineEnd:16},"&-collapsed-button":{display:"flex",alignItems:"center",fontSize:"20px",marginInlineEnd:"16px"},"&-logo":{position:"relative",marginInlineEnd:"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},"&-mix":{display:"flex",alignItems:"center"}},"&-logo-mobile":{minWidth:"24px",marginInlineEnd:0}}}),Wa={...q,...Kt},Kd=(e,t)=>e===!1?null:e?e(t,null):t,Ud=o.defineComponent({props:Wa,setup(e){const t=o.ref("auto"),n=({width:a})=>{t.value=a};return()=>o.createVNode("div",{style:{minWidth:typeof t.value=="string"?t.value:`${t.value}px`}},[o.createVNode("div",{style:{paddingRight:"8px"}},[o.createVNode(Ed,{onResize:n},{default:()=>[e.rightContentRender&&typeof e.rightContentRender=="function"?o.createVNode("div",null,[e.rightContentRender({...e})]):o.createVNode("div",null,null)]})])])}}),Ka=o.defineComponent({props:Wa,inheritAttrs:!1,setup(e,{slots:t,emit:n}){const a=We.useRouter(),{token:r}=me(),{getPrefixCls:i,openKeys:l,selectedKeys:c}=ee(),{width:d}=Yt.useWindowSize(),m=i({suffixCls:"global-header",isPor:!0}),{wrapSSR:v,hashId:s}=ae("ProGlobalHeader",[Wd],m),O=o.computed(()=>({[`${s.value}`]:!0,[`${m}`]:!0,[`${m}-${e.layout}`]:!0})),b=f=>{var y;if(a.currentRoute){const x=a.currentRoute.value.matched.concat();e.onSelect&&f==="select"&&e.onSelect(x.filter(S=>S.name!=="index").map(S=>S.path)),e.onOpenKeys&&f==="openKeys"&&((y=e.onOpenKeys)==null||y.call(e,x.filter(S=>S.path!==a.currentRoute.value.path).map(S=>S.path)))}},T=()=>{n("collapse",!e.collapsed)},u=o.computed(()=>e.collapsedButtonRender||Pa),h=()=>{var f;return o.createVNode(o.Fragment,null,[e.layout==="mix"&&!e.isMobile&&e.splitMenus?o.createVNode("div",{style:{flex:1},class:[`${m}-menu`,s.value]},[o.createVNode(w.ConfigProvider,{theme:{components:{Layout:{headerBg:"transparent",bodyBg:"transparent"},Menu:ya({radiusItem:4,colorActiveBarWidth:0,colorActiveBarHeight:2,colorActiveBarBorderSize:0,horizontalItemBorderRadius:4},r.value||{},e.theme,"header")}}},{default:()=>[o.createVNode(Et,o.mergeProps({theme:e.theme,mode:e.mode,collapsed:e.collapsed,menuData:e.menuData,openKeys:l.value,selectedKeys:c.value,iconfontUrl:e.iconfontUrl,menuItemRender:e.menuItemRender,subMenuItemRender:e.subMenuItemRender,class:{"top-nav-menu":e.mode==="horizontal",[`${s.value}`]:!0}},{"onUpdate:openKeys":()=>b("openKeys"),"onUpdate:selectedKeys":()=>b("select")}),null)]})]):o.createVNode("div",{style:{flex:1}},[(f=t.default)==null?void 0:f.call(t)]),e.layout!=="simple"&&o.createVNode(Ud,o.mergeProps(e,{extraRightDropdownRender:e.extraRightDropdownRender,rightContentRender:e.rightContentRender}),null)])};return()=>{const f=o.createVNode("span",{class:[`${m}-logo`,e.isMobile?"mobile":"",s.value],key:"logo"},[o.createVNode("a",null,[Ba(e.logo)])]);return v(o.createVNode("div",{class:O.value},[e.isMobile?o.createVNode(o.Fragment,null,[Kd(e.menuHeaderRender,f),e.isMobile&&o.unref(u)&&o.createVNode("span",{class:`${m}-collapsed-button ${s.value}`,onClick:T},[o.unref(u)(e.collapsed)]),h()]):e.layout==="mix"||e.layout==="wide"?o.createVNode(o.Fragment,null,[o.createVNode("div",{style:{width:e.layout==="wide"?`${e.wideWidth}px`:void 0,padding:e.layout==="wide"&&d.value<e.wideWidth?"0 50px":void 0},class:`${m}-main ${s.value}`},[o.createVNode("div",{class:`${m}-main-left ${s.value}`},[o.createVNode(Wt,o.mergeProps(te.omit(e,"onMenuHeaderClick"),{renderKey:"headerTitleRender"}),null)]),h()])]):h()]))}}});function Xd(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!o.isVNode(e)}const{Header:Ua}=w.Layout,Xt=o.defineComponent({inheritAttrs:!1,props:Fa,setup(e){const{theme:t,isMobile:n,fixedHeader:a,headerHeight:r,layout:i,onCollapse:l,splitMenus:c}=o.toRefs(e),{getPrefixCls:d,menuData:m}=ee(),v=d({suffixCls:"header",isPor:!0}),s=d({suffixCls:"fixed-header",isPor:!0}),{wrapSSR:O,hashId:b}=ae("ProLayoutHeader",[Sd],v),T=o.computed(()=>i.value==="wide"),u=o.computed(()=>a.value),h=o.computed(()=>i.value==="mix"||T.value),f=o.computed(()=>i.value==="side"||i.value==="simple"),y=o.computed(()=>f.value&&"light"||t.value),x=o.computed(()=>({[`${b.value}`]:!0,[`${v}-${y.value}`]:!0,[`${v}`]:!0,[`${s}`]:u.value})),S=o.computed(()=>u.value&&!n.value),k=o.computed(()=>c.value?m.value&&xa(m.value)||[]:[]),M=o.computed(()=>f.value&&S.value?`calc(100% - ${e.collapsed?e.collapsedWidth:e.siderWidth}px)`:"100%"),I=o.computed(()=>u.value?0:void 0),F=()=>{const B=o.createVNode(Ka,o.mergeProps(e,{theme:y.value,mode:"horizontal",onCollapse:l.value,menuData:k.value}),{default:()=>[h.value?null:e.headerContentRender&&typeof e.headerContentRender=="function"?e.headerContentRender(e):e.headerContentRender]});return e.headerRender?e.headerRender(e,B):B};return()=>{let B;return O(o.createVNode(o.Fragment,null,[u.value&&!T.value&&o.createVNode(Ua,{theme:y.value,style:{height:`${r.value}px`,lineHeight:`${r.value}px`,background:"transparent"}},null),o.createVNode(Ua,{theme:y.value,class:x.value,style:{height:`${r.value}px`,lineHeight:`${r.value}px`,width:M.value,zIndex:f.value?100:101,right:I.value}},Xd(B=F())?B:{default:()=>[B]})]))}}}),Gd=o.defineComponent({name:"BaseProLayout",inheritAttrs:!1,components:{GlobalHeader:Xt,GlobalFooter:ot,SiderMenuWrapper:nt},props:ja,emits:["update:collapsed","update:open-keys","update:selected-keys","collapse","openKeys","reloadPage","select","menuHeaderClick","menuClick","changeTabs"],setup(e,{emit:t,slots:n}){const a=L.getPrefixCls({suffixCls:"basic-layout",isPor:!0}),{wrapSSR:r,hashId:i}=ae("ProLayout",[md,hd],a),l=fe.useMediaQuery(),c=o.ref(document.body.getBoundingClientRect().width),d=o.computed(()=>e.layout==="mix"||e.layout==="side"||e.layout==="wide"||!1),m=o.computed(()=>e.layout==="wide"),v=o.computed(()=>d.value),s=o.computed(()=>e.collapsed?e.collapsedWidth:e.siderWidth),O=o.computed(()=>(e.theme||"dark").toLocaleLowerCase().includes("dark")?"dark":"light");o.onMounted(()=>{window.addEventListener("resize",u),u()}),o.onBeforeUnmount(()=>{window.removeEventListener("resize",u)});const b=o.computed(()=>(l.value==="sm"||l.value==="xs")&&!e.disableMobile&&!m.value),T=o.reactive({position:"relative"});(e.isChildrenLayout||e.contentStyle&&e.contentStyle.minHeight)&&(T.minHeight=0);const u=()=>{const N=document.body.getBoundingClientRect().width;c.value!==N&&(l.value=fe.useMediaQuery().value,c.value=N)},h=(N,_)=>N.headerRender===!1||N.pure?null:o.createVNode(Xt,o.mergeProps(N,{matchMenuKeys:_||[]}),null),f=o.computed(()=>({...e.breadcrumb,itemRender:L.getSlot(n,e,"breadcrumbRender")})),y=o.computed(()=>v.value&&e.selectedKeys?Ca(e.menuData,e.selectedKeys[0]):[]),x=N=>{var _;(_=e.onCollapse)==null||_.call(e,N)},S=N=>{var _;(_=e.onOpenKeys)==null||_.call(e,N)},k=N=>{var _;(_=e.onSelect)==null||_.call(e,N)},M=N=>{t("menuHeaderClick",N)},I=N=>{t("menuClick",N)},F=N=>{t("changeTabs",N)},B=()=>{t("reloadPage")};return Na({getPrefixCls:L.getPrefixCls,...Sa(o.toRefs(e),["layout","waterMark","menuData","openKeys","headerHeight","selectedKeys","disableMobile","fixSiderbar","fixedHeader"].concat(Object.keys(at))),theme:O.value,hasContentWide:m,isMobile:b,siderWidth:s,breadcrumb:f,flatMenuData:y,hasSide:d,flatMenu:v}),()=>{var De;const N=L.getSlot(n,e,"collapsedButtonRender"),_=L.getSlot(n,e,"headerContentRender"),z=L.getSlot(n,e,"rightContentRender"),j=L.getSlot(n,e,"headerRender"),p=L.getSlot(n,e,"footerRender"),C=L.getSlot(n,e,"links"),P=L.getSlot(n,e,"copyrightRender"),R=L.getSlot(n,e,"extraRightDropdownRender"),A=L.getSlot(n,e,"menuHeaderRender"),U=L.getSlot(n,e,"menuExtraRender"),X=L.getSlot(n,e,"menuContentRender"),E=L.getSlot(n,e,"menuFooterRender"),H=L.getSlot(n,e,"menuItemRender"),Y=L.getSlot(n,e,"subMenuItemRender"),se={menuItemRender:H,subMenuItemRender:Y},Ie=o.computed(()=>h({...e,...se,hasSiderMenu:d.value,menuData:e.menuData,isMobile:o.unref(b),onCollapse:x,onOpenKeys:S,onSelect:k,onMenuHeaderClick:M,rightContentRender:z,extraRightDropdownRender:R,headerTitleRender:A,headerContentRender:_,headerRender:j,theme:O.value},e.matchMenuKeys)),Oe=o.computed(()=>({[`${i.value}`]:!0,[`${a}`]:!0,[`${a}-${e.layout}`]:!0})),Ne=o.computed(()=>m.value?{minWidth:`${e.wideWidth}px`}:void 0),Te=o.computed(()=>m.value?{width:e.menuData.length?`${e.wideWidth}px`:`${e.wideWidth-e.siderWidth-20}px`,paddingTop:`${e.headerHeight+20}px`,margin:m.value?"0 auto":void 0}:void 0),ze=o.computed(()=>m.value?{minHeight:"835px"}:{});return r(o.createVNode(o.Fragment,null,[e.pure?(De=n.default)==null?void 0:De.call(n):o.createVNode("div",{class:Oe.value,style:Ne.value},[o.createVNode(w.Layout,{style:Te.value},{default:()=>[o.createVNode(nt,o.mergeProps(te.omit(e,["pure","onCollapse","onSelect","onOpenKeys","onMenuClick","theme"]),{links:C,theme:O.value,isMobile:b.value,menuHeaderRender:A,menuContentRender:X,menuExtraRender:U,menuFooterRender:E,collapsedButtonRender:N,onCollapse:x,onSelect:k,onOpenKeys:S,onMenuClick:I}),null),o.createVNode(w.Layout,{style:T},{default:()=>[Ie.value,o.createVNode(rt,{hashId:i.value,isMobile:b.value,prefixCls:a,collapsedWidth:e.collapsedWidth,isChildrenLayout:e.isChildrenLayout,loading:e.loading,isShowTabsBar:e.showTabsBar,isFixedMultiTab:e.fixedMultiTab,siderWidth:e.siderWidth,collapsed:e.collapsed,style:e.disableContentMargin?ze.value:{...e.contentStyle,...ze.value},onReloadPage:B,onChangeTabs:F},{default:()=>{var Ee;return[(Ee=n.default)==null?void 0:Ee.call(n)]}}),p===!1?null:p?p(e):o.createVNode(ot,{copyright:P},null)]})]})])]))}}}),Yd=o.defineComponent({components:{GlobalHeader:Xt,GlobalFooter:ot,SiderMenuWrapper:nt},props:ja,emits:["update:collapsed","update:open-keys","update:selected-keys","collapse","openKeys","reloadPage","select","menuHeaderClick","menuClick","changeTabs"],setup(e,{slots:t,emit:n}){const a=o.computed(()=>e.theme!==void 0?{dark:e.theme==="realDark"}:{}),r=c=>{n("update:collapsed",c),n("collapse",c)},i=c=>{n("update:open-keys",c),n("openKeys",c)},l=c=>{n("update:selected-keys",c),n("select",c)};return()=>o.createVNode(w.ConfigProvider,{theme:e.primaryColor?{token:{colorPrimary:e.primaryColor}}:void 0},{default:()=>[o.createVNode(Je,o.mergeProps({token:e.token},a.value),{default:()=>[o.createVNode(Gd,o.mergeProps(te.omit(e,["onSelect","onOpenKeys","onCollapse"]),{onSelect:l,onOpenKeys:i,onCollapse:r}),t)]})]})}}),Xa=(e,t)=>e.map(n=>(n.path=n.path.replace("//","/"),n.children&&n.children.length>0&&(n.children=Xa(n.children,t)),t[`${n.path}`]=n,n)),qd=e=>{const t=e.find(a=>a.path==="/"),n={};return{menuData:Xa((t==null?void 0:t.children)||[],n),breadcrumb:n}},Ga=[{key:"light",title:"亮色菜单风格"},{key:"dark",title:"暗色菜单风格"},{key:"realDark",title:"暗黑模式"}],Ya=[{key:"side",title:"侧边菜单布局"},{key:"mix",title:"混合菜单布局"},{key:"wide",title:"定宽菜单布局"},{key:"simple",title:"简单菜单布局"}],Qd=[{key:"header",title:"顶部主题"},{key:"sider",title:"左侧主题"}],Zd=e=>({[e.componentCls]:{[`${e.antCls}-drawer-content-wrapper`]:{transform:"translate(100%)",display:"block !important"},"&-show":{[`${e.antCls}-drawer-content-wrapper`]:{transform:"translate(0%)"}},"&-trantion-none":{[`${e.antCls}-drawer-content-wrapper`]:{transition:"none !important;"}},["&-handle"]:{position:"absolute",top:240,right:300,zIndex:0,display:"flex",alignItems:"center",justifyContent:"center",width:"48px",height:"48px",fontSize:"16px",textAlign:"center",backgroundColor:e.colorPrimary,borderEndStartRadius:e.borderRadiusLG,borderStartStartRadius:e.borderRadiusLG,"-webkit-backdropilter":"saturate(180%) blur(20px)",backdropFilter:"saturate(180%) blur(20px)",cursor:"pointer",pointerEvents:"auto"},"&-wrapper":{position:"relative",height:`calc(100vh - ${e.marginLG*2}px)`},"&-content":{padding:e.marginLG},"&-body-title":{margin:0,marginBlockEnd:e.marginSM,fontSize:"14px",lineHeight:"22px",color:e.colorBgSpotlight},"&-block-checkbox":{display:"flex",minHeight:42,gap:e.marginSM,"& &-item":{position:"relative",width:"44px",height:"36px",overflow:"hidden",borderRadius:"4px",boxShadow:"0 1px 2.5px rgba(0,0,0,.18)",cursor:"pointer",fontSize:56,lineHeight:"56px","&::before":{position:"absolute",insetBlockStart:0,insetInlineStart:0,width:"33%",height:"100%",content:"''"},"&::after":{position:"absolute",insetBlockStart:0,insetInlineStart:0,width:"100%",height:"25%",content:"''"},"&-dark":{backgroundColor:"rgba(0, 21, 41, 0.85)","&::before":{backgroundColor:"rgba(0, 0, 0, 0.65)"},"&::after":{backgroundColor:"rgba(0, 0, 0, 0.85)"}},"&-light":{backgroundColor:"#f7f8fa","&::before":{backgroundColor:"#fff"},"&::after":{backgroundColor:"#fff"}},"&-realDark":{backgroundColor:"rgba(0, 21, 41, 0.85)","&::before":{backgroundColor:"rgba(0, 0, 0, 0.65)"},"&::after":{backgroundColor:"rgba(0, 0, 0, 0.85)"}},"&-dark,&-side":{backgroundColor:"#f7f8fa","&::before":{zIndex:"1",backgroundColor:"#001529"},"&::after":{backgroundColor:"#fff"}},"&-wide":{backgroundColor:"#f7f8fa","&::before":{backgroundColor:"#fff",left:"15%",width:"15%",height:"calc(100% - 38%)",top:"38%"},"&::after":{backgroundColor:"#fff"},"&-content":{position:"absolute",height:"calc(100% - 38%)",top:"38%",right:"15%",width:"calc(100% - 15% - 15% - 10% - 15%)",backgroundColor:"#fff"}},"&-simple":{backgroundColor:"#f7f8fa","&::before":{backgroundColor:"#fff"},"&::after":{display:"none"}},"&-mix":{backgroundColor:"#f7f8fa","&::before":{backgroundColor:"#fff"},"&::after":{backgroundColor:"#001529"}}},"& &-selectIcon":{position:"absolute",insetInlineEnd:"6px",bottom:"4px",color:e.colorPrimary,fontWeight:"bold",fontSize:"14px",pointerEvents:"none",".action":{color:e.colorPrimary}},"& &-icon":{fontSize:56,lineHeight:"56px"}},"&-theme-color":{marginBlockStart:"16px",display:"flex",gap:8,"&-label":{marginBlock:"16px"},"&-block":{display:"flex",alignItems:"center",justifyContent:"center",width:"20px",height:"20px",color:"#fff",fontWeight:"bold",textAlign:"center",borderRadius:"2px",cursor:"pointer"}},"&-list":{[`&${e.antCls}-list-sm ${e.antCls}-list-item`]:{paddingInline:0}}}}),qa=o.defineComponent({name:"BlockCheckbox",props:{value:V.string,list:{type:Array,default:()=>[]},configType:V.string,prefixCls:V.string,hashId:V.string,onChange:Function},setup(e){return()=>{const t=`${e.prefixCls}-block-checkbox`;return o.createVNode("div",{class:[t,e.hashId]},[e.list.map(n=>o.createVNode(w.Tooltip,{title:n.title,key:n.key},{default:()=>[o.createVNode("div",{class:L.classNames(e.hashId,`${t}-item`,`${t}-item-${n.key}`,`${t}-${e.configType}-item`),onClick:()=>{var a;return(a=e.onChange)==null?void 0:a.call(e,n.key)}},[n.key==="wide"&&o.createVNode("div",{class:[`${t}-item-${n.key}-content`,e.hashId]},null),o.createVNode(Q.CheckOutlined,{class:`${t}-selectIcon ${e.hashId}`.trim(),style:{display:e.value===n.key?"block":"none"}},null),n!=null&&n.icon?o.createVNode("div",{class:`${t}-icon ${e.hashId}`.trim()},[n.icon]):null])]}))])}}}),Jd=o.defineComponent({name:"ThemeColor",inheritAttrs:!1,props:{settingValue:Object,colorList:{type:Array,default:()=>[]},prefixCls:V.string,hashId:V.string,onChange:Function},setup(e){return()=>{var n;const t=`${e.prefixCls}-theme-color`;return o.createVNode(o.Fragment,null,[o.createVNode("div",{class:`${t} ${e.hashId}`.trim()},[(n=e.colorList)==null?void 0:n.map(({key:a,color:r,title:i})=>a?o.createVNode(w.Tooltip,{key:r,title:i},{default:()=>{var l,c;return[o.createVNode("div",{class:[`${t}-block ${e.hashId}`.trim(),((l=e.settingValue)==null?void 0:l.primaryColor)===r?`${t}-block-checked`:""],style:{backgroundColor:r},onClick:()=>e.onChange&&e.onChange(r)},[((c=e.settingValue)==null?void 0:c.primaryColor)===r&&o.createVNode(Q.CheckOutlined,null,null)])]}}):null)])])}}}),st=o.defineComponent({name:"RegionalChange",props:{label:V.string,value:V.bool,prefixCls:V.string,valueKey:String,hashId:V.string,disabled:V.bool,onChange:Function},setup(e){return()=>o.createVNode(w.List,{class:`${e.prefixCls}-list ${e.hashId}`.trim(),split:!1,size:"small",renderItem:({item:t})=>o.createVNode(w.Tooltip,{title:t.disabled?t.disabledReason:"",placement:"left"},{default:()=>[o.createVNode(w.List.Item,{actions:[t.action]},{default:()=>[o.createVNode("span",{style:{opacity:t.disabled?.5:1}},[t.title])]})]}),dataSource:[{title:e.label,action:o.createVNode(w.Switch,{size:"small",disabled:e.disabled,checked:!!e.value,onChange:t=>{e.onChange&&e.onChange(e.valueKey,t)}},null)}]},null)}}),eu=e=>({[e.componentCls]:{padding:e.marginLG,"&-title":{display:"flex",alignItems:"center",margin:0,gap:10,marginBlockEnd:e.marginSM,fontSize:"14px",lineHeight:"22px",color:e.colorBgSpotlight},"&-sub-title":{margin:0,display:"flex",alignItems:"center",fontSize:12,fontWeight:"normal",color:e.colorTextDescription},"&-list":{[`&${e.antCls}-list-sm ${e.antCls}-list-item`]:{paddingInline:0,[`${e.antCls}-list-item-action`]:{marginInlineStart:10}}}}});function tu(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!o.isVNode(e)}const nu=o.defineComponent({name:"ThemeEditor",props:{settingValue:Object,onChange:Function},setup(e){const{getPrefixCls:t}=ee(),[n,a]=fe.useState("header"),r=t({suffixCls:"theme-editor",isPor:!0}),{wrapSSR:i,hashId:l}=ae("ProThemeEditor",[eu],r),{token:c}=me(),d=o.computed(()=>{var b;return(b=c.value)==null?void 0:b.layout}),m=o.computed(()=>{var b,T,u,h,f,y,x,S,k,M,I,F,B,N,_,z,j,p,C,P,R,A,U,X,E;return[{key:"colorBgMenu",title:"全部背景",disabled:((b=e.settingValue)==null?void 0:b.theme)==="dark"&&["mix","wide"].includes((T=e.settingValue)==null?void 0:T.layout)},{key:"colorDarkBgMenu",title:"全部背景",disabled:((u=e.settingValue)==null?void 0:u.theme)==="light"||((h=e.settingValue)==null?void 0:h.theme)==="dark"&&["side","simple"].includes((f=e.settingValue)==null?void 0:f.layout)},{key:"colorSubItemBg",title:"子菜单背景",disabled:!0},{key:"colorDarkSubItemBg",title:"子菜单背景",disabled:!0},{key:"colorBgMenuItemSelected",title:"菜单选中背景",disabled:((y=e.settingValue)==null?void 0:y.theme)==="dark"&&["mix","wide"].includes((x=e.settingValue)==null?void 0:x.layout)},{key:"colorDarkBgMenuItemSelected",title:"菜单选中背景",disabled:((S=e.settingValue)==null?void 0:S.theme)==="light"||((k=e.settingValue)==null?void 0:k.theme)==="dark"&&["side","simple"].includes((M=e.settingValue)==null?void 0:M.layout)},{key:"colorTextMenu",title:"菜单文字颜色",disabled:((I=e.settingValue)==null?void 0:I.theme)==="dark"&&["mix","wide"].includes((F=e.settingValue)==null?void 0:F.layout)},{key:"colorDarkTextMenu",title:"菜单文字颜色",disabled:((B=e.settingValue)==null?void 0:B.theme)==="light"||((N=e.settingValue)==null?void 0:N.theme)==="dark"&&["side","simple"].includes((_=e.settingValue)==null?void 0:_.layout)},{key:"colorTextMenuHover",title:"菜单文字移入颜色",disabled:((z=e.settingValue)==null?void 0:z.theme)==="dark"&&["mix","wide"].includes((j=e.settingValue)==null?void 0:j.layout)},{key:"colorDarkTextMenuHover",title:"菜单文字移入颜色",disabled:((p=e.settingValue)==null?void 0:p.theme)==="light"||((C=e.settingValue)==null?void 0:C.theme)==="dark"&&["side","simple"].includes((P=e.settingValue)==null?void 0:P.layout)},{key:"colorTextMenuSelected",title:"菜单文字选中颜色",disabled:((R=e.settingValue)==null?void 0:R.theme)==="dark"&&["mix","wide"].includes((A=e.settingValue)==null?void 0:A.layout)},{key:"colorDarkTextMenuSelected",title:"菜单文字选中颜色",disabled:((U=e.settingValue)==null?void 0:U.theme)==="light"||((X=e.settingValue)==null?void 0:X.theme)==="dark"&&["side","simple"].includes((E=e.settingValue)==null?void 0:E.layout)}]}),v=o.computed(()=>{var b,T,u,h,f,y,x,S,k,M,I,F,B,N,_,z,j,p,C,P,R,A,U,X,E,H,Y,se,Ie,Oe,Ne,Te;return[{key:"colorBgMenu",title:"全部背景",disabled:((b=e.settingValue)==null?void 0:b.theme)==="dark"&&["side","simple"].includes((T=e.settingValue)==null?void 0:T.layout)},{key:"colorDarkBgMenu",title:"全部背景",disabled:((u=e.settingValue)==null?void 0:u.theme)==="light"||((h=e.settingValue)==null?void 0:h.theme)==="dark"&&["mix","wide"].includes((f=e.settingValue)==null?void 0:f.layout)},{key:"colorSubItemBg",title:"子菜单背景",disabled:((y=e.settingValue)==null?void 0:y.theme)==="dark"&&["side","simple"].includes((x=e.settingValue)==null?void 0:x.layout)},{key:"colorDarkSubItemBg",title:"子菜单背景",disabled:((S=e.settingValue)==null?void 0:S.theme)==="light"||((k=e.settingValue)==null?void 0:k.theme)==="dark"&&["mix","wide"].includes((M=e.settingValue)==null?void 0:M.layout)},{key:"colorBgMenuItemHover",title:"菜单移入背景",disabled:((I=e.settingValue)==null?void 0:I.theme)==="dark"&&((F=e.settingValue)==null?void 0:F.layout)!=="mix"},{key:"colorBgMenuItemSelected",title:"菜单选中背景",disabled:((B=e.settingValue)==null?void 0:B.theme)==="dark"&&((N=e.settingValue)==null?void 0:N.layout)!=="mix"},{key:"colorDarkBgMenuItemSelected",title:"菜单选中背景",disabled:((_=e.settingValue)==null?void 0:_.theme)==="light"||((z=e.settingValue)==null?void 0:z.theme)==="dark"&&["mix","wide"].includes((j=e.settingValue)==null?void 0:j.layout)},{key:"colorTextMenu",title:"菜单文字颜色",disabled:((p=e.settingValue)==null?void 0:p.theme)==="dark"&&((C=e.settingValue)==null?void 0:C.layout)!=="mix"},{key:"colorDarkTextMenu",title:"菜单文字颜色",disabled:((P=e.settingValue)==null?void 0:P.theme)==="light"||((R=e.settingValue)==null?void 0:R.theme)==="dark"&&["mix","wide"].includes((A=e.settingValue)==null?void 0:A.layout)},{key:"colorTextMenuHover",title:"菜单文字移入颜色",disabled:((U=e.settingValue)==null?void 0:U.theme)==="dark"&&((X=e.settingValue)==null?void 0:X.layout)!=="mix"},{key:"colorDarkTextMenuHover",title:"菜单文字移入颜色",disabled:((E=e.settingValue)==null?void 0:E.theme)==="light"||((H=e.settingValue)==null?void 0:H.theme)==="dark"&&["mix","wide"].includes((Y=e.settingValue)==null?void 0:Y.layout)},{key:"colorTextMenuSelected",title:"菜单文字选中颜色",disabled:((se=e.settingValue)==null?void 0:se.theme)==="dark"&&((Ie=e.settingValue)==null?void 0:Ie.layout)!=="mix"},{key:"colorDarkTextMenuSelected",title:"菜单文字选中颜色",disabled:((Oe=e.settingValue)==null?void 0:Oe.theme)==="light"||((Ne=e.settingValue)==null?void 0:Ne.theme)==="dark"&&["mix","wide"].includes((Te=e.settingValue)==null?void 0:Te.layout)}]}),s=o.computed(()=>n.value==="header"?m.value:n.value==="sider"?v.value:[]),O=b=>{var T,u;return(u=(T=d.value)==null?void 0:T[n.value])==null?void 0:u[b]};return()=>{var T,u,h;let b;return i(o.createVNode("div",{class:[r,l.value]},[o.createVNode("h3",{class:[`${r}-title`,l.value]},[o.createTextVNode("主题编辑器"),o.createVNode("div",{class:[`${r}-sub-title`,l.value]},[o.createVNode("span",null,[(T=Ga.find(f=>{var y;return f.key===((y=e.settingValue)==null?void 0:y.theme)}))==null?void 0:T.title]),o.createVNode("span",{style:{marginInline:"8px"}},[o.createTextVNode("/")]),o.createVNode("span",null,[(u=Ya.find(f=>{var y;return f.key===((y=e.settingValue)==null?void 0:y.layout)}))==null?void 0:u.title])])]),o.createVNode("div",{class:[`${r}-content`,l.value]},[o.createVNode(w.List,{class:`${r}-list ${l.value}`.trim(),split:!1,size:"small",renderItem:({item:f})=>o.createVNode(w.List.Item,{actions:[f.action]},{default:()=>[o.createVNode("span",{style:{opacity:f.disabled?.5:1}},[f.title])]}),dataSource:[{title:"自定义主题色",action:o.createVNode(qt.GColorPicker,{value:(h=e.settingValue)==null?void 0:h.primaryColor,actions:["confirm"],modes:["rgb"],size:"small",onConfirm:f=>e.onChange&&e.onChange(f,"primaryColor")},null)}]},null),o.createVNode(w.Tabs,{activeKey:n.value,onChange:a},tu(b=Qd.map(f=>o.createVNode(w.TabPane,{key:f.key,tab:f.title},{default:()=>[o.createVNode(w.List,{class:`${r}-list ${l.value}`.trim(),split:!1,size:"small",renderItem:({item:y})=>o.createVNode(w.List.Item,{actions:[y.action]},{default:()=>[o.createVNode("span",{style:{opacity:y.disabled?.5:1}},[y.title])]}),dataSource:s.value.filter(y=>!y.disabled).map(y=>({...y,action:o.createVNode(qt.GColorPicker,{value:O(y.key),actions:["confirm"],modes:["rgb"],size:"small",onConfirm:x=>e.onChange&&e.onChange(x,n.value,y.key)},null)}))},null)]})))?b:{default:()=>[b]})])]))}}}),au=e=>({[e.componentCls]:{padding:e.marginLG,"&-title":{display:"flex",alignItems:"center",margin:0,gap:10,marginBlockEnd:e.marginSM,fontSize:"14px",lineHeight:"22px",color:e.colorBgSpotlight},"&-sub-title":{margin:0,display:"flex",alignItems:"center",fontSize:12,fontWeight:"normal",color:e.colorTextDescription},"&-list":{[`&${e.antCls}-list-sm ${e.antCls}-list-item`]:{paddingInline:0,[`${e.antCls}-list-item-action`]:{marginInlineStart:10}}}}});function Qa(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!o.isVNode(e)}const{preset:Za}=zt,ou=o.defineComponent({name:"OthersChange",props:{prefixCls:V.string,settingValue:Object,onChange:Function},setup(e){const t=L.getPrefixCls({suffixCls:"others",isPor:!0}),{wrapSSR:n,hashId:a}=ae("SettingsDrawOthers",[au],t);return()=>{var i,l,c,d,m,v,s,O,b,T,u,h,f,y;let r;return n(o.createVNode("div",{class:[t,a.value]},[o.createVNode("h3",{class:[`${t}-title`,a.value]},[o.createTextVNode("页面动画设置")]),o.createVNode(w.List,{class:`${t}-list ${a.value}`.trim(),split:!1,size:"small",renderItem:({item:x})=>o.createVNode(w.Tooltip,{title:x.disabled?x.disabledReason:"",placement:"left"},{default:()=>[o.createVNode(w.List.Item,{actions:[x.action]},{default:()=>[o.createVNode("span",{style:{opacity:x.disabled?.5:1}},[x.title])]})]}),dataSource:[{title:"禁用动画",action:o.createVNode(w.Switch,{checked:!((l=(i=e.settingValue)==null?void 0:i.animate)!=null&&l.disabled),size:"small",onChange:x=>{var S;return(S=e.onChange)==null?void 0:S.call(e,"animate","disabled",!x)}},null)},{title:"动画效果",disabled:(d=(c=e.settingValue)==null?void 0:c.animate)==null?void 0:d.disabled,action:o.createVNode(w.Select,{value:(v=(m=e.settingValue)==null?void 0:m.animate)==null?void 0:v.name,style:{width:"100px"},size:"small",disabled:(O=(s=e.settingValue)==null?void 0:s.animate)==null?void 0:O.disabled,getPopupContainer:x=>x&&x.parentNode?x.parentNode:x,onChange:x=>{var S;return(S=e.onChange)==null?void 0:S.call(e,"animate","name",x)}},Qa(r=Za.map(x=>o.createVNode(w.Select.Option,{value:x.name},{default:()=>[x.alias]})))?r:{default:()=>[r]})},{title:"动画方向",disabled:(T=(b=e.settingValue)==null?void 0:b.animate)==null?void 0:T.disabled,action:o.createVNode(w.Select,{value:(h=(u=e.settingValue)==null?void 0:u.animate)==null?void 0:h.direction,style:{width:"100px"},size:"small",dropdownStyle:{minWidth:"120px"},disabled:(y=(f=e.settingValue)==null?void 0:f.animate)==null?void 0:y.disabled,getPopupContainer:x=>x&&x.parentNode?x.parentNode:x,onChange:x=>{var S;return(S=e.onChange)==null?void 0:S.call(e,"animate","direction",x)}},{default:()=>{var x;return[(x=Za.find(S=>{var k,M;return S.name===((M=(k=e.settingValue)==null?void 0:k.animate)==null?void 0:M.name)}))==null?void 0:x.directions.map(S=>o.createVNode(w.Select.Option,{value:S},Qa(S)?S:{default:()=>[S]}))]}})}]},null)]))}}}),{preset:ru}=zt,Gt=Object.keys(K).filter(e=>e!=="title"),Ja={color:"#fff",fontSize:20},iu=[{label:"fixedHeader",title:"固定 Header"},{label:"fixSiderbar",title:"固定侧边菜单"},{label:"splitMenus",title:"自动分割菜单"}],lu=[{label:"showTabsBar",title:"多标签"},{label:"fixedMultiTab",title:"固定多标签"}],eo=e=>L.isBrowser()?{...te.pick(K,Gt),...e||{}}:te.cloneDeep(K),dt=(e,{slots:t})=>{var n;return o.createVNode("div",{style:{marginBottom:"24px"}},[o.createVNode("h3",{class:`${e.prefixCls}-body-title ${e.hashId}`.trim()},[e.title]),(n=t.default)==null?void 0:n.call(t)])},cu=o.defineComponent({name:"SettingDrawer",props:{themeOnly:Boolean,hideHintAlert:Boolean,hideCopyButton:Boolean,weakmode:Boolean,showProgress:Boolean,settings:{type:Object},colorList:{type:[Boolean,Array],default:()=>Ao},onChange:Function,onChangeLayout:Function},emits:["change","changeLayout"],setup(e){const{getPrefixCls:t}=ee(),n=t({suffixCls:"setting-drawer",isPor:!0}),{wrapSSR:a,hashId:r}=ae("ProSettingDraw",[Zd],n),i=o.ref(!1),[l,c]=fe.useState(!1),[d,m]=fe.useState(!1),[v,s]=fe.useState(!1),O=o.computed(()=>eo(te.pick(e.settings,Gt))),[b,T]=fe.useMergedState(()=>eo(te.pick(e.settings,Gt)),{value:O,onChange:e.onChange}),u=o.computed(()=>e.colorList&&L.isArray(e.colorList)?e.colorList:[]),h=o.computed(()=>Zs(o.unref(b))),{copy:f,copied:y,isSupported:x}=Yt.useClipboard();o.watch(l,()=>{i.value||(i.value=!0)});const S=(M,I,F)=>{var _,z;const B=["header","sider"],N={};if(F&&B.includes(M)){N[M]={},N[M][F]=I,e.onChangeLayout&&e.onChangeLayout(te.pick(N,B));return}else M==="animate"?(N[M]={},N[M][F]=I,F==="name"&&(N[M].direction=(z=(_=ru.find(j=>j.name===I))==null?void 0:_.directions)==null?void 0:z[0])):N[M]=I;if(M==="colorWeak"){const j=document.querySelector("body");j&&(j.dataset.prosettingdrawer=I===!0?j.style.filter:j.dataset.prosettingdrawer||"none",I===!0&&(j.dataset.prosettingdrawer=j.style.filter),j.style.filter=I===!0?"invert(80%)":j.dataset.prosettingdrawer||"none",I||delete j.dataset.prosettingdrawer)}T(L.merge(o.unref(b),{...wa(te.omit(N,B))}))},k=()=>{x.value&&f(JSON.stringify(o.unref(b)))};return o.watch(y,M=>{M&&w.message.success("拷贝成功,请到 config/default/themeConfig.js 中替换默认配置")}),()=>a(o.createVNode(w.Drawer,{width:300,closable:!1,open:l.value,rootClassName:`${n} ${r.value} ${l.value&&`${n}-show`} ${!i.value&&`${n}-trantion-none`}`,placement:"right",rootStyle:{zIndex:999},bodyStyle:{padding:0},contentWrapperStyle:{transform:"translateX(100%)"},onClose:()=>c(!1),handle:o.createVNode("div",{class:[`${n}-handle`,r.value],onClick:()=>c(!l.value)},[l.value?o.createVNode(Q.CloseOutlined,{style:Ja},null):o.createVNode(Q.SettingOutlined,{style:Ja},null)])},{default:()=>[o.createVNode("div",{class:[`${n}-wrapper`,r.value]},[o.createVNode(go,null,{default:()=>[o.createVNode("div",{class:[`${n}-content`,r.value]},[o.createVNode(dt,{prefixCls:n,hashId:r.value,title:"整体风格设置"},{default:()=>[o.createVNode(qa,{hashId:r.value,prefixCls:n,list:Ga,value:b.value.theme,configType:"theme",key:"navTheme",onChange:M=>S("theme",M)},null)]}),o.createVNode(dt,{hashId:r.value,title:o.createVNode("span",null,[o.createTextVNode("主题色 "),o.createVNode("a",{style:{fontSize:"12px"},onClick:()=>m(!0)},[o.createTextVNode("更多配置")])]),prefixCls:n},{default:()=>[o.createVNode(Jd,{hashId:r.value,prefixCls:n,colorList:u.value,settingValue:b.value,onChange:(M,I)=>S(I||"primaryColor",M)},null)]}),!e.themeOnly&&o.createVNode(o.Fragment,null,[o.createVNode(w.Divider,null,null),o.createVNode(dt,{hashId:r.value,prefixCls:n,title:"导航模式"},{default:()=>[o.createVNode(qa,{prefixCls:n,value:o.unref(b).layout,key:"layout",hashId:r.value,configType:"layout",list:Ya,onChange:M=>S("layout",M)},null)]}),iu.map(({label:M,title:I})=>o.createVNode(st,{label:I,disabled:o.unref(h)[M],value:o.unref(b)[M],prefixCls:n,hashId:r.value,valueKey:M,onChange:(F,B)=>S(F,B)},null)),o.createVNode(w.Divider,null,null),o.createVNode(dt,{hashId:r.value,prefixCls:n,title:o.createVNode("span",null,[o.createTextVNode("其他设置 "),o.createVNode("a",{style:{fontSize:"12px"},onClick:()=>s(!0)},[o.createTextVNode("更多配置")])])},{default:()=>[lu.map(({label:M,title:I})=>o.createVNode(st,{label:I,disabled:o.unref(h)[M],value:o.unref(b)[M],prefixCls:n,hashId:r.value,valueKey:M,onChange:(F,B)=>S(F,B)},null)),e.weakmode&&o.createVNode(st,{label:"色弱模式",value:o.unref(b).colorWeak,prefixCls:n,hashId:r.value,valueKey:"colorWeak",onChange:(M,I)=>S(M,I)},null),e.showProgress&&o.createVNode(st,{label:"顶部进度条",value:o.unref(b).showProgressBar,prefixCls:n,hashId:r.value,valueKey:"showProgressBar",onChange:(M,I)=>S(M,I)},null)]})]),e.hideHintAlert&&e.hideCopyButton?null:o.createVNode(w.Divider,null,null),e.hideHintAlert?null:o.createVNode(w.Alert,{type:"warning",message:"配置栏只在开发环境用于预览,生产环境不会展现,请拷贝后手动修改配置文件",icon:o.createVNode(Q.NotificationOutlined,null,null),showIcon:!0,style:{marginBottom:"16px"}},null),e.hideCopyButton?null:o.createVNode(w.Button,{onClick:()=>k(),block:!0},{default:()=>[o.createVNode(Q.CopyOutlined,null,null),o.createTextVNode("拷贝设置")]})])]})]),o.createVNode(w.Drawer,{width:320,closable:!1,placement:"right",open:d.value,bodyStyle:{padding:0},onClose:()=>m(!1)},{default:()=>[o.createVNode(nu,{settingValue:b.value,onChange:(M,I,F)=>S(I||"primaryColor",M,F)},null)]}),o.createVNode(w.Drawer,{width:320,closable:!1,placement:"right",open:v.value,bodyStyle:{padding:0},onClose:()=>s(!1)},{default:()=>[o.createVNode(ou,{settingValue:b.value,onChange:(M,I,F)=>S(M,F,I)},null)]})]}))}}),su=new g("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)"}}),du=new g("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)"}}),uu=new g("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)"}}),fu=new g("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)"}}),mu=new g("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)"}}),hu=new g("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)"}}),gu=new g("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)"}}),bu=new g("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)"}}),pu=()=>({"&.backInLeft":{animationFillMode:"both",animationName:su},"&.backInRight":{animationFillMode:"both",animationName:du},"&.backInUp":{animationFillMode:"both",animationName:uu},"&.backInDown":{animationFillMode:"both",animationName:fu}}),yu=()=>({"&.backOutLeft":{animationFillMode:"both",animationName:mu},"&.backOutRight":{animationFillMode:"both",animationName:hu},"&.backOutUp":{animationFillMode:"both",animationName:gu},"&.backOutDown":{animationFillMode:"both",animationName:bu}}),vu=new g("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)"}}),xu=new g("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)"}}),Cu=new g("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)"}}),wu=new g("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)"}}),Su=new g("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)"}}),Mu=new g("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)"}}),Iu=new g("bounceOutLeft",{"20%":{opacity:1,transform:"translate3d(20px, 0, 0) scaleX(0.9)"},to:{opacity:0,transform:"translate3d(-2000px, 0, 0) scaleX(2)"}}),Ou=new g("bounceOutRight",{"20%":{opacity:1,transform:"translate3d(-20px, 0, 0) scaleX(0.9)"},to:{opacity:0,transform:"translate3d(2000px, 0, 0) scaleX(2)"}}),Nu=new g("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)"}}),Tu=new g("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)"}}),$u=()=>({"&.bounceIn":{animationFillMode:"both",animationDuration:`${.3*.75}s !important`,animationName:vu},"&.bounceInLeft":{animationFillMode:"both",animationName:xu},"&.bounceInRight":{animationFillMode:"both",animationName:Cu},"&.bounceInDown":{animationFillMode:"both",animationName:wu},"&.bounceInUp":{animationFillMode:"both",animationName:Su}}),Bu=()=>({"&.bounceOut":{animationFillMode:"both",animationDuration:`${.3*.75}s !important`,animationName:Mu},"&.bounceOutLeft":{animationFillMode:"both",animationName:Iu},"&.bounceOutRight":{animationFillMode:"both",animationName:Ou},"&.bounceOutDown":{animationFillMode:"both",animationName:Nu},"&.bounceOutUp":{animationFillMode:"both",animationName:Tu}}),Ru=new g("fadeIn",{from:{opacity:0},to:{opacity:1}}),Pu=new g("fadeInLeft",{from:{opacity:0,transform:"translate3d(-100%, 0, 0)"},to:{opacity:1,transform:"translate3d(0, 0, 0)"}}),ku=new g("fadeInRight",{from:{opacity:0,transform:"translate3d(100%, 0, 0)"},to:{opacity:1,transform:"translate3d(0, 0, 0)"}}),Fu=new g("fadeInDown",{from:{opacity:0,transform:"translate3d(0, -100%, 0)"},to:{opacity:1,transform:"translate3d(0, 0, 0)"}}),_u=new g("fadeInUp",{from:{opacity:0,transform:"translate3d(0, 100%, 0)"},to:{opacity:1,transform:"translate3d(0, 0, 0)"}}),Au=new g("fadeInDownBig",{from:{opacity:0,transform:"translate3d(0, -2000px, 0)"},to:{opacity:1,transform:"translate3d(0, 0, 0)"}}),ju=new g("fadeInUpBig",{from:{opacity:0,transform:"translate3d(0, 2000px, 0)"},to:{opacity:1,transform:"translate3d(0, 0, 0)"}}),Vu=new g("fadeInLeftBig",{from:{opacity:0,transform:"translate3d(-2000px, 0, 0)"},to:{opacity:1,transform:"translate3d(0, 0, 0)"}}),Lu=new g("fadeInRightBig",{from:{opacity:0,transform:"translate3d(2000px, 0, 0)"},to:{opacity:1,transform:"translate3d(0, 0, 0)"}}),Hu=new g("fadeInTopLeft",{from:{opacity:0,transform:"translate3d(-100%, -100%, 0)"},to:{opacity:1,transform:"translate3d(0, 0, 0)"}}),zu=new g("fadeInBottomRight",{from:{opacity:0,transform:"translate3d(100%, 100%, 0)"},to:{opacity:1,transform:"translate3d(0, 0, 0)"}}),Du=new g("fadeInTopRight",{from:{opacity:0,transform:"translate3d(100%, -100%, 0)"},to:{opacity:1,transform:"translate3d(0, 0, 0)"}}),Eu=new g("fadeInBottomLeft",{from:{opacity:0,transform:"translate3d(-100%, 100%, 0)"},to:{opacity:1,transform:"translate3d(0, 0, 0)"}}),Wu=new g("fadeOut",{from:{opacity:1},to:{opacity:0}}),Ku=new g("fadeOutLeft",{from:{opacity:1},to:{opacity:0,transform:"translate3d(-100%, 0, 0)"}}),Uu=new g("fadeOutRight",{from:{opacity:1},to:{opacity:0,transform:"translate3d(100%, 0, 0)"}}),Xu=new g("fadeOutDown",{from:{opacity:1},to:{opacity:0,transform:"translate3d(0, 100%, 0)"}}),Gu=new g("fadeOutUp",{from:{opacity:1},to:{opacity:0,transform:"translate3d(0, -100%, 0)"}}),Yu=new g("fadeOutDownBig",{from:{opacity:1},to:{opacity:0,transform:"translate3d(0, 2000px, 0)"}}),qu=new g("fadeOutUpBig",{from:{opacity:1},to:{opacity:0,transform:"translate3d(0, -2000px, 0)"}}),Qu=new g("fadeOutLeftBig",{from:{opacity:1},to:{opacity:0,transform:"translate3d(-2000px, 0, 0)"}}),Zu=new g("fadeOutRightBig",{from:{opacity:1},to:{opacity:0,transform:"translate3d(2000px, 0, 0)"}}),Ju=new g("fadeOutTopLeft",{from:{opacity:1,transform:"translate3d(0, 0, 0)"},to:{opacity:0,transform:"translate3d(-100%, -100%, 0)"}}),ef=new g("fadeOutBottomRight",{from:{opacity:1,transform:"translate3d(0, 0, 0)"},to:{opacity:0,transform:"translate3d(100%, 100%, 0)"}}),tf=new g("fadeOutTopRight",{from:{opacity:1,transform:"translate3d(0, 0, 0)"},to:{opacity:0,transform:"translate3d(100%, -100%, 0)"}}),nf=new g("fadeOutBottomLeft",{from:{opacity:1,transform:"translate3d(0, 0, 0)"},to:{opacity:0,transform:"translate3d(-100%, 100%, 0)"}}),af=()=>({"&.fadeIn":{animationFillMode:"both",animationName:Ru},"&.fadeInLeft":{animationFillMode:"both",animationName:Pu},"&.fadeInRight":{animationFillMode:"both",animationName:ku},"&.fadeInDown":{animationFillMode:"both",animationName:Fu},"&.fadeInUp":{animationFillMode:"both",animationName:_u},"&.fadeInLeftBig":{animationFillMode:"both",animationName:Vu},"&.fadeInRightBig":{animationFillMode:"both",animationName:Lu},"&.fadeInUpBig":{animationFillMode:"both",animationName:ju},"&.fadeInDownBig":{animationFillMode:"both",animationName:Au},"&.fadeInTopLeft":{animationFillMode:"both",animationName:Hu},"&.fadeInBottomRight":{animationFillMode:"both",animationName:zu},"&.fadeInTopRight":{animationFillMode:"both",animationName:Du},"&.fadeInBottomLeft":{animationFillMode:"both",animationName:Eu}}),of=()=>({"&.fadeOut":{animationFillMode:"both",animationName:Wu},"&.fadeOutLeft":{animationFillMode:"both",animationName:Ku},"&.fadeOutRight":{animationFillMode:"both",animationName:Uu},"&.fadeOutDown":{animationFillMode:"both",animationName:Xu},"&.fadeOutUp":{animationFillMode:"both",animationName:Gu},"&.fadeOutDownBig":{animationFillMode:"both",animationName:Yu},"&.fadeOutUpBig":{animationFillMode:"both",animationName:qu},"&.fadeOutLeftBig":{animationFillMode:"both",animationName:Qu},"&.fadeOutRightBig":{animationFillMode:"both",animationName:Zu},"&.fadeOutTopLeft":{animationFillMode:"both",animationName:Ju},"&.fadeOutBottomRight":{animationFillMode:"both",animationName:ef},"&.fadeOutTopRight":{animationFillMode:"both",animationName:tf},"&.fadeOutBottomLeft":{animationFillMode:"both",animationName:nf}}),rf=new g("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)"}}),lf=new g("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)"}}),cf=new g("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)"}}),sf=new g("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)"}}),df=()=>({"&.flipInX":{animationFillMode:"both",backfaceVisibility:"visible !important",animationName:rf},"&.flipInY":{animationFillMode:"both",backfaceVisibility:"visible !important",animationName:lf}}),uf=()=>({"&.flipOutX":{animationFillMode:"both",backfaceVisibility:"visible !important",animationDuration:`${.3*.75}s !important`,animationName:cf},"&.flipOutY":{animationFillMode:"both",backfaceVisibility:"visible !important",animationDuration:`${.3*.75}s !important`,animationName:sf}}),ff=new g("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)"}}),mf=new g("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)"}}),hf=new g("lightSpeedOutLeft",{from:{opacity:1},to:{opacity:0,transform:"translate3d(-100%, 0, 0) skewX(-30deg)"}}),gf=new g("lightSpeedOutRight",{from:{opacity:1},to:{opacity:0,transform:"translate3d(100%, 0, 0) skewX(30deg)"}}),bf=()=>({"&.lightSpeedInLeft":{animationFillMode:"both",animationTimingFunction:"ease-out",animationName:ff},"&.lightSpeedInRight":{animationFillMode:"both",animationTimingFunction:"ease-out",animationName:mf}}),pf=()=>({"&.lightSpeedOutLeft":{animationFillMode:"both",animationTimingFunction:"ease-in",animationName:hf},"&.lightSpeedOutRight":{animationFillMode:"both",animationTimingFunction:"ease-in",animationName:gf}}),yf=new g("rotateIn",{from:{opacity:0,transform:"rotate3d(0, 0, 1, -200deg)"},to:{opacity:1,transform:"translate3d(0, 0, 0)"}}),vf=new g("rotateInDownLeft",{from:{opacity:0,transform:"rotate3d(0, 0, 1, -45deg)"},to:{opacity:1,transform:"translate3d(0, 0, 0)"}}),xf=new g("rotateInDownRight",{from:{opacity:0,transform:"rotate3d(0, 0, 1, 45deg)"},to:{opacity:1,transform:"translate3d(0, 0, 0)"}}),Cf=new g("rotateInUpLeft",{from:{opacity:0,transform:"rotate3d(0, 0, 1, 45deg)"},to:{opacity:1,transform:"translate3d(0, 0, 0)"}}),wf=new g("rotateInUpRight",{from:{opacity:0,transform:"rotate3d(0, 0, 1, -90deg)"},to:{opacity:1,transform:"translate3d(0, 0, 0)"}}),Sf=new g("rotateOut",{from:{opacity:1},to:{opacity:0,transform:"rotate3d(0, 0, 1, 200deg)"}}),Mf=new g("rotateOutDownLeft",{from:{opacity:1},to:{opacity:0,transform:"rotate3d(0, 0, 1, 45deg)"}}),If=new g("rotateOutDownRight",{from:{opacity:1},to:{opacity:0,transform:"rotate3d(0, 0, 1, -45deg)"}}),Of=new g("rotateOutUpLeft",{from:{opacity:1},to:{opacity:0,transform:"rotate3d(0, 0, 1, -45deg)"}}),Nf=new g("rotateOutUpRight",{from:{opacity:1},to:{opacity:0,transform:"rotate3d(0, 0, 1, 90deg)"}}),Tf=()=>({"&.rotateIn":{animationFillMode:"both",transformOrigin:"center",animationName:yf},"&.rotateInDownLeft":{animationFillMode:"both",transformOrigin:"left bottom",animationName:vf},"&.rotateInDownRight":{animationFillMode:"both",transformOrigin:"right bottom",animationName:xf},"&.rotateInUpLeft":{animationFillMode:"both",transformOrigin:"left bottom",animationName:Cf},"&.rotateInUpRight":{animationFillMode:"both",transformOrigin:"right bottom",animationName:wf}}),$f=()=>({"&.rotateOut":{animationFillMode:"both",transformOrigin:"center",animationName:Sf},"&.rotateOutDownLeft":{animationFillMode:"both",transformOrigin:"left bottom",animationName:Mf},"&.rotateOutDownRight":{animationFillMode:"both",transformOrigin:"right bottom",animationName:If},"&.rotateOutUpLeft":{animationFillMode:"both",transformOrigin:"left bottom",animationName:Of},"&.rotateOutUpRight":{animationFillMode:"both",transformOrigin:"right bottom",animationName:Nf}}),Bf=new g("rollIn",{from:{opacity:0,transform:"translate3d(-100%, 0, 0) rotate3d(0, 0, 1, -120deg)"},to:{opacity:1,transform:"translate3d(0, 0, 0)"}}),Rf=new g("rollOut",{from:{opacity:1},to:{opacity:0,transform:"translate3d(100%, 0, 0) rotate3d(0, 0, 1, 120deg)"}}),Pf=()=>({"&.rollIn":{animationFillMode:"both",animationName:Bf}}),kf=()=>({"&.rollOut":{animationFillMode:"both",animationName:Rf}}),Ff=new g("zoomIn",{from:{opacity:0,transform:"scale3d(0.3, 0.3, 0.3)"},"50%":{opacity:1}}),_f=new g("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)"}}),Af=new g("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)"}}),jf=new g("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)"}}),Vf=new g("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)"}}),Lf=new g("zoomOut",{from:{opacity:1},"50%":{opacity:0,transform:"scale3d(0.3, 0.3, 0.3)"},to:{opacity:0}}),Hf=new g("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)"}}),zf=new g("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)"}}),Df=new g("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)"}}),Ef=new g("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)"}}),Wf=()=>({"&.zoomIn":{animationFillMode:"both",animationName:Ff},"&.zoomInDown":{animationFillMode:"both",animationName:_f},"&.zoomInLeft":{animationFillMode:"both",animationName:Af},"&.zoomInRight":{animationFillMode:"both",animationName:jf},"&.zoomInUp":{animationFillMode:"both",animationName:Vf}}),Kf=()=>({"&.zoomOut":{animationFillMode:"both",animationName:Lf},"&.zoomOutDown":{animationFillMode:"both",transformOrigin:"center bottom",animationName:Hf},"&.zoomOutLeft":{animationFillMode:"both",transformOrigin:"left center",animationName:zf},"&.zoomOutRight":{animationFillMode:"both",transformOrigin:"right center",animationName:Df},"&.zoomOutUp":{animationFillMode:"both",transformOrigin:"center bottom",animationName:Ef}}),Uf=new g("slideInDown",{from:{transform:"translate3d(0, -100%, 0)",visibility:"visible"},to:{transform:"translate3d(0, 0, 0)"}}),Xf=new g("slideInLeft",{from:{transform:"translate3d(-100%, 0, 0)",visibility:"visible"},to:{transform:"translate3d(0, 0, 0)"}}),Gf=new g("slideInRight",{from:{transform:"translate3d(100%, 0, 0)",visibility:"visible"},to:{transform:"translate3d(0, 0, 0)"}}),Yf=new g("slideInUp",{from:{transform:"translate3d(0, 100%, 0)",visibility:"visible"},to:{transform:"translate3d(0, 0, 0)"}}),qf=new g("slideOutDown",{from:{transform:"translate3d(0, 0, 0)"},to:{transform:"translate3d(0, 100%, 0)",visibility:"hidden"}}),Qf=new g("slideOutLeft",{from:{transform:"translate3d(0, 0, 0)"},to:{transform:"translate3d(-100%, 0, 0)",visibility:"hidden"}}),Zf=new g("slideOutRight",{from:{transform:"translate3d(0, 0, 0)"},to:{transform:"translate3d(100%, 0, 0)",visibility:"hidden"}}),Jf=new g("slideOutUp",{from:{transform:"translate3d(0, 0, 0)"},to:{transform:"translate3d(0, -100%, 0)",visibility:"hidden"}}),e0=()=>({"&.slideInDown":{animationFillMode:"both",animationName:Uf},"&.slideInLeft":{animationFillMode:"both",animationName:Xf},"&.slideInRight":{animationFillMode:"both",animationName:Gf},"&.slideInUp":{animationFillMode:"both",animationName:Yf}}),t0=()=>({"&.slideOutDown":{animationFillMode:"both",animationName:qf},"&.slideOutLeft":{animationFillMode:"both",animationName:Qf},"&.slideOutRight":{animationFillMode:"both",animationName:Zf},"&.slideOutUp":{animationFillMode:"both",animationName:Jf}}),n0=e=>({[e.componentCls]:{"&-enter":{background:"transparent",animationDuration:".3s !important",...pu(),...$u(),...af(),...df(),...bf(),...Tf(),...Pf(),...Wf(),...e0()},"&-leave":{display:"none",background:"transparent",animationDuration:".3s !important",...yu(),...Bu(),...of(),...uf(),...pf(),...$f(),...kf(),...Kf(),...t0()}}});function a0(e){return Ke("LayoutPageTranstion",t=>{const n=pt(t);return[n0(n)]},e)}const o0=o.defineComponent({name:"PageTranstion",props:{disabled:{type:Boolean,default:!1},reverse:{type:Boolean,default:!0},name:{type:String,default:"bounce"},direction:String},setup(e,{slots:t}){const n=L.getPrefixCls({suffixCls:"page-transtion",isPor:!0}),{wrapSSR:a,hashId:r}=a0(n),i=o.computed(()=>[c(!1),`${n}-enter`,r.value].join(" ")),l=o.computed(()=>[c(!0),`${n}-leave`,r.value].join(" ")),c=m=>{const v=zt.preset.find(b=>e.name==b.name);if(v==null)return"";let s="";e.direction==null?s=v.directions[0]:s=v.directions.find(b=>b==e.direction)||"",s=s==null||s==="default"?"":s,s!=""&&(s=m&&e.reverse?d(s,v.directions):s,s=s[0].toUpperCase()+s.substring(1));const O=m?"Out":"In";return v.name+O+s},d=(m,v)=>{if(m.length==0||m=="x"||m=="y")return m;let s=v.indexOf(m);return s=s%2==1?s-1:s+1,v[s]};return()=>e.disabled?null:a(o.createVNode(o.Transition,{enterActiveClass:i.value,leaveActiveClass:l.value},{default:()=>{var m;return[(m=t.default)==null?void 0:m.call(t)]}}))}});$.BaseMenu=Et,$.DefaultHeader=Ka,$.GProLayout=Yd,$.GlobalFooter=ot,$.PageContainer=ud,$.PageLoading=Qt,$.PageTranstion=o0,$.SettingDrawer=cu,$.SiderMenuWrapper=nt,$.WrapContent=rt,$.baseMenuProps=et,$.clearMenuItem=va,$.createContext=Ma,$.createRouteContext=Oa,$.flatMap=xa,$.getMenuData=qd,$.getMenuFirstChildren=Ca,$.handleThemeConfig=wa,$.provideProLayoutContext=Na,$.useContext=Ia,$.useProLayoutContext=ee,Object.defineProperty($,Symbol.toStringTag,{value:"Module"})});
|