@gx-design-vue/pro-layout 0.1.0-beta.52 → 0.1.0-beta.53
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/ProLayout.d.ts +2 -9
- package/dist/pro-layout.js +1 -5
- package/dist/pro-layout.umd.cjs +1 -1
- package/dist/props.d.ts +1 -4
- package/package.json +1 -1
package/dist/ProLayout.d.ts
CHANGED
|
@@ -762,10 +762,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
762
762
|
type: import("vue").PropType<CSSProperties>;
|
|
763
763
|
default: () => null;
|
|
764
764
|
};
|
|
765
|
-
breadcrumb:
|
|
766
|
-
type: import("vue").PropType<BreadcrumbProps>;
|
|
767
|
-
default: () => undefined;
|
|
768
|
-
};
|
|
765
|
+
breadcrumb: import("vue").PropType<BreadcrumbProps>;
|
|
769
766
|
disableContentMargin: import("vue-types").VueTypeValidableDef<boolean>;
|
|
770
767
|
isChildrenLayout: import("vue-types").VueTypeValidableDef<boolean>;
|
|
771
768
|
loading: import("vue-types").VueTypeValidableDef<boolean>;
|
|
@@ -1856,10 +1853,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1856
1853
|
type: import("vue").PropType<CSSProperties>;
|
|
1857
1854
|
default: () => null;
|
|
1858
1855
|
};
|
|
1859
|
-
breadcrumb:
|
|
1860
|
-
type: import("vue").PropType<BreadcrumbProps>;
|
|
1861
|
-
default: () => undefined;
|
|
1862
|
-
};
|
|
1856
|
+
breadcrumb: import("vue").PropType<BreadcrumbProps>;
|
|
1863
1857
|
disableContentMargin: import("vue-types").VueTypeValidableDef<boolean>;
|
|
1864
1858
|
isChildrenLayout: import("vue-types").VueTypeValidableDef<boolean>;
|
|
1865
1859
|
loading: import("vue-types").VueTypeValidableDef<boolean>;
|
|
@@ -2204,7 +2198,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
2204
2198
|
"onUpdate:open-keys"?: ((...args: any[]) => any) | undefined;
|
|
2205
2199
|
"onUpdate:selected-keys"?: ((...args: any[]) => any) | undefined;
|
|
2206
2200
|
}, {
|
|
2207
|
-
breadcrumb: BreadcrumbProps;
|
|
2208
2201
|
selectedKeys: string[];
|
|
2209
2202
|
openKeys: boolean | string[];
|
|
2210
2203
|
menuData: import("src").AppRouteModule[];
|
package/dist/pro-layout.js
CHANGED
|
@@ -1308,11 +1308,7 @@ const Mi = /* @__PURE__ */ W({
|
|
|
1308
1308
|
type: [String, Object],
|
|
1309
1309
|
default: () => null
|
|
1310
1310
|
},
|
|
1311
|
-
breadcrumb:
|
|
1312
|
-
type: [Object, Function],
|
|
1313
|
-
default: () => {
|
|
1314
|
-
}
|
|
1315
|
-
},
|
|
1311
|
+
breadcrumb: [Object, Function],
|
|
1316
1312
|
disableContentMargin: L.looseBool,
|
|
1317
1313
|
isChildrenLayout: L.looseBool,
|
|
1318
1314
|
loading: L.looseBool,
|
package/dist/pro-layout.umd.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(V,t){typeof exports=="object"&&typeof module<"u"?t(exports,require("vue"),require("ant-design-vue"),require("@gx-design-vue/pro-app"),require("vue-router"),require("@ant-design/icons-vue"),require("@gx-design-vue/pro-provider"),require("vue-types"),require("lodash-es"),require("@gx-design-vue/pro-watermark"),require("@gx-design-vue/pro-utils"),require("@gx-design-vue/pro-hooks"),require("@vueuse/core"),require("@gx-design-vue/scrollbar"),require("@gx-design-vue/color-picker")):typeof define=="function"&&define.amd?define(["exports","vue","ant-design-vue","@gx-design-vue/pro-app","vue-router","@ant-design/icons-vue","@gx-design-vue/pro-provider","vue-types","lodash-es","@gx-design-vue/pro-watermark","@gx-design-vue/pro-utils","@gx-design-vue/pro-hooks","@vueuse/core","@gx-design-vue/scrollbar","@gx-design-vue/color-picker"],t):(V=typeof globalThis<"u"?globalThis:V||self,t(V.ProLayout={},V.vue,V.antDesignVue,V.proApp,V.vueRouter,V.iconsVue,V.ProConfigProvider,V.vueTypes,V.lodashEs,V.proWatermark,V.proUtils,V.proHooks,V.core,V.GScrollbars,V.colorPicker))})(this,function(V,t,p,he,ie,Z,i,lt,J,it,K,ne,we,rt,Ne){"use strict";const Ie=t.defineComponent({name:"PageLoading",props:{...p.Spin.props},setup(e){const{indicator:a}=he.useProAppContext();return t.createVNode("div",{style:{paddingTop:"100px",textAlign:"center"}},[t.createVNode(p.Spin,t.mergeProps(e,{indicator:a==null?void 0:a.value}),null)])}}),D=lt.createTypes({func:void 0,bool:void 0,string:void 0,number:void 0,array:void 0,object:void 0,integer:void 0});D.extend([{name:"looseBool",getter:!0,type:Boolean,default:void 0},{name:"style",getter:!0,type:[String,Object],default:void 0},{name:"VueNode",getter:!0,type:null}]);const te={theme:{type:String,default:i.themeConfig.theme},layout:{type:String,default:i.themeConfig.layout},wideWidth:{type:Number,default:i.themeConfig.wideWidth},splitMenus:{type:Boolean,default:i.themeConfig.splitMenus},fixedMultiTab:{type:Boolean,default:i.themeConfig.fixedMultiTab},showProgressBar:{type:Boolean,default:i.themeConfig.showProgressBar},fixedHeader:{type:Boolean,default:i.themeConfig.fixedHeader},fixSiderbar:{type:Boolean,default:i.themeConfig.fixSiderbar},showTabsBar:{type:Boolean,default:i.themeConfig.showTabsBar},showFullScreen:{type:Boolean,default:i.themeConfig.showFullScreen},autoHideHeader:{type:Boolean,default:i.themeConfig.autoHideHeader},headerHeight:{type:Number,default:i.themeConfig.headerHeight},title:{type:String,default:i.themeConfig.title},iconfontUrl:{type:String,default:i.themeConfig.iconfontUrl},animate:{type:Object,default:i.themeConfig.animate},primaryColor:{type:String,default:i.themeConfig.primaryColor}},ae={renderKey:D.string.def("menuHeaderRender"),title:te.title,layout:te.layout,logo:{type:[Object,String,Function],default:()=>{}},logoStyle:{type:Object,default:()=>{}},logoDirection:{type:String,default:"horizontal"},drawer:D.looseBool,collapsed:D.looseBool,menuHeaderRender:{type:[Object,Function],default:()=>{}},onMenuHeaderClick:Function},oe={...te,mode:{type:String,default:"inline"},menuData:{type:Array,default:()=>[]},theme:{type:String,default:"dark"},layout:{type:String,default:"mix"},collapsed:{type:Boolean,default:()=>!1},openKeys:{type:[Array,Boolean],default:()=>[]},selectedKeys:{type:Array,default:()=>[]},menuProps:{type:Object,default:()=>null},menuItemRender:{type:[Function,Boolean],default:()=>{}},subMenuItemRender:{type:[Function,Boolean],default:()=>{}},onClick:[Function,Object],onOpenKeys:{type:Function},onSelect:{type:Function}},_={...te,...oe,menuLoading:D.looseBool,logo:ae.logo,logoStyle:ae.logoStyle,logoDirection:ae.logoDirection,siderWidth:D.number.def(208),headerHeight:D.number.def(48),collapsedWidth:D.number.def(48),links:{type:[Function,Object,Array],default:()=>{}},menuHeaderRender:{type:[Function,Object],default:()=>{}},menuFooterRender:{type:[Function,Object,Boolean],default:()=>!1},menuContentRender:{type:[Function,Object,Boolean],default:()=>!1},menuExtraRender:{type:[Function,Object,Boolean],default:()=>!1},collapsedButtonRender:{type:[Function,Object,Boolean],default:()=>{}},breakpoint:{type:[Object,Boolean],default:()=>!1},isMobile:D.looseBool,matchMenuKeys:{type:Array,default:()=>[]},onMenuHeaderClick:D.func,onMenuClick:D.func,onCollapse:{type:Function}},dt=/(((^https?:(?:\/\/)?)(?:[-;:&=\+\$,\w]+@)?[A-Za-z0-9.-]+(?::\d+)?|(?:www.|[-;:&=\+\$,\w]+@)[A-Za-z0-9.-]+)((?:\/[\+~%\/.\w-_]*)?\??(?:[-\+=&;%@.\w_]*)#?(?:[\w]*))?)$/,Me=e=>dt.test(e);function ct(e){return/\w.(png|jpg|jpeg|svg|webp|gif|bmp)$/i.test(e)}function ke(e,a,n,l){var c,h,m,w,b,O,g,$,r,d,I,R,C,y,f,S,F,s,N,M,k,L,W,H,z,A,E,Y,U,q,u,x,B,T;const o={...e};return n==="light"?(o.colorItemBg=(h=(c=a.layout)==null?void 0:c[l])==null?void 0:h.colorBgMenu,o.colorSubItemBg=(w=(m=a.layout)==null?void 0:m[l])==null?void 0:w.colorSubItemBg,o.colorItemBgSelected=(O=(b=a.layout)==null?void 0:b[l])==null?void 0:O.colorBgMenuItemSelected,o.colorItemBgSelectedHorizontal=($=(g=a.layout)==null?void 0:g[l])==null?void 0:$.colorBgMenuItemSelected,o.colorItemText=(d=(r=a.layout)==null?void 0:r[l])==null?void 0:d.colorTextMenu,o.colorItemTextHover=(R=(I=a.layout)==null?void 0:I[l])==null?void 0:R.colorTextMenuHover,o.colorItemTextSelected=(y=(C=a.layout)==null?void 0:C[l])==null?void 0:y.colorTextMenuSelected,o.colorItemTextSelectedHorizontal=(S=(f=a.layout)==null?void 0:f[l])==null?void 0:S.colorTextMenuSelected,l==="sider"&&(o.colorItemBgHover=(s=(F=a.layout)==null?void 0:F[l])==null?void 0:s.colorBgMenuItemHover)):n==="dark"&&(o.colorItemBg=(M=(N=a.layout)==null?void 0:N[l])==null?void 0:M.colorDarkBgMenu,o.colorSubItemBg=(L=(k=a.layout)==null?void 0:k[l])==null?void 0:L.colorDarkSubItemBg,o.colorItemBgSelected=(H=(W=a.layout)==null?void 0:W[l])==null?void 0:H.colorDarkBgMenuItemSelected,o.colorItemBgSelectedHorizontal=(A=(z=a.layout)==null?void 0:z[l])==null?void 0:A.colorDarkBgMenuItemSelected,o.colorItemText=(Y=(E=a.layout)==null?void 0:E[l])==null?void 0:Y.colorDarkTextMenu,o.colorItemTextHover=(q=(U=a.layout)==null?void 0:U[l])==null?void 0:q.colorDarkTextMenuHover,o.colorItemTextSelected=(x=(u=a.layout)==null?void 0:u[l])==null?void 0:x.colorDarkTextMenuSelected,o.colorItemTextSelectedHorizontal=(T=(B=a.layout)==null?void 0:B[l])==null?void 0:T.colorDarkTextMenuSelected,l==="header"&&(o.colorActiveBarHeight=0)),o}const st=["left","right"],le=["left","right","down","up"],ut=["downBig","upBig","leftBig","rightBig"],mt=["topLeft","bottomRight","topRight","bottomLeft"],ft=["downLeft","upRight","downRight","upLeft"],ge={preset:[{name:"back",alias:"渐近",directions:le},{name:"bounce",alias:"弹跳",directions:le.concat("default")},{name:"fade",alias:"淡化",directions:le.concat(ut).concat(mt).concat("default")},{name:"flip",alias:"翻转",directions:["x","y"]},{name:"lightSpeed",alias:"光速",directions:st},{name:"rotate",alias:"旋转",directions:ft.concat("default")},{name:"roll",alias:"翻滚",directions:["default"]},{name:"zoom",alias:"缩放",directions:le.concat("default")},{name:"slide",alias:"滑动",directions:le}]};function Oe(e){return e.map(a=>{var l;const n={...a};if((l=n.meta)!=null&&l.hideInMenu)return null;if(n&&(n!=null&&n.children)){if(n.children.some(o=>{var c;return o&&!((c=o.meta)!=null&&c.hideInMenu)}))return{...n,children:Oe(n.children)};delete n.children}return n}).filter(a=>a)}function Re(e){return e.map(a=>{var l;const n={...a};return(l=n.meta)!=null&&l.hideInMenu?null:(n.linkPath=Ve(n.children||[]),n.children&&delete n.children,n)}).filter(a=>a)}function Be(e,a){const n=(a||"").split("/").length===2?a||"":`/${(a||"").split("/")[1]}`,l=e.find(o=>o.path===n);return a===void 0?[]:(l==null?void 0:l.children)||[]}function Ve(e){let a="";const n=function(o){let c="";return o.children&&o.children.length>0?c=n(o.children[0]):c=o.path,c},l=e==null?void 0:e.filter(o=>!o.hidden);if(l.length>0&&l[0].children&&l[0].children.length>0)a=n(l[0].children[0]);else{const o=l.length>0?l[0]:void 0;a=(o==null?void 0:o.path)||""}return a}function ht(e,a){var l,o;const n=((o=(l=e.find(c=>c.path===a))==null?void 0:l.meta)==null?void 0:o.key)||"";if(n){const c=[],h=n.split("-");for(let m=0;m<h.length;m+=1)c.push(J.cloneDeep(h).splice(0,m+1).join("-"));return e.filter(m=>c.some(w=>{var b;return w===((b=m==null?void 0:m.meta)==null?void 0:b.key)||""}))}return[]}function Fe(e){return e.layout==="mix"&&(e.fixSiderbar=!0,e.fixedHeader=!0,e.splitMenus=!0),e.layout==="top"&&(e.fixSiderbar=!1,e.fixedHeader=!0,e.splitMenus=!1),e.layout==="simple"&&(e.splitMenus=!1,e.showTabsBar=!1),e.layout==="side"&&(e.splitMenus=!1),e.layout==="wide"&&(e.splitMenus=!1,e.fixSiderbar=!1,e.fixedHeader=!0,e.showTabsBar=!1,e.fixedMultiTab=!1),{...e}}function gt(e){const a=["showTabsBar","fixedMultiTab","fixSiderbar","fixedHeader","splitMenus"];let l=Object.keys(e).reduce((o,c)=>(o[c]=!1,o),{});return l=yt(l,a),e.layout==="mix"&&(l.fixSiderbar=!0,l.fixedHeader=!0),e.layout==="side"&&(l.splitMenus=!0),e.layout==="simple"&&(l.splitMenus=!0,l.fixedHeader=!0,l.showTabsBar=!0,l.fixedMultiTab=!0),e.layout==="wide"&&(l.splitMenus=!0,l.fixedHeader=!0,l.fixSiderbar=!0,l.showTabsBar=!0,l.fixedMultiTab=!0),l}function yt(e,a){return{...a.reduce((n,l)=>({...n,[l]:e[l]}),{})}}const Te=(e=Symbol(),a="Context.Provider")=>t.defineComponent({name:a,props:{value:{type:Object,required:!0}},setup(l,{slots:o}){return t.provide(e,t.readonly(l.value)),()=>{var c;return(c=o.default)==null?void 0:c.call(o)}}}),$e=(e=Symbol(),a)=>t.inject(e,a||{}),ye=Symbol("pro-layout-context"),Le=()=>Te(ye,"ProLayoutContext.Provider"),Ke=e=>{t.provide(ye,e)},Q=()=>$e(ye);Le();function De(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!t.isVNode(e)}const re=e=>{const{icon:a,iconType:n,iconfontUrl:l}=e;if(!a)return null;if(typeof a=="string"&&a!==""){if(Me(a)||ct(a))return t.createVNode("img",{src:a,alt:"icon",class:`${e.className}-icon-image`},null);if(n===1){const c=Z.createFromIconfontCN({scriptUrl:l||i.themeConfig.iconfontUrl});return l?t.createVNode(c,{type:a},null):t.createVNode("i",{class:`iconfont ${a} ${e.className}-icon`},null)}}if(t.isVNode(a))return a;const o=t.resolveComponent(a);return typeof re=="function"&&t.createVNode(o,null,null)||null};re.props={icon:{type:[String,Function,Object]},iconType:Number,className:String,iconfontUrl:String};const be=t.defineComponent({name:"BaseMenu",props:oe,setup(e){const a=ie.useRouter(),{getPrefixCls:n}=Q(),l=n({suffixCls:"menu-item",isPor:!0}),o=r=>{var d;(d=e.onOpenKeys)==null||d.call(e,r)},c=r=>{var d;(d=e.onSelect)==null||d.call(e,r.selectedKeys)},h=r=>{var d;(d=e.onClick)==null||d.call(e,...r)},m=(r,d)=>{var C;const I=r.target||"",R=Me(I);((C=a.currentRoute.value)==null?void 0:C.fullPath)!==d.to&&R&&I&&r.targetStatus===1&&window.open(I)},w=t.resolveComponent("router-link"),b=(r=[])=>r.map(d=>O(d)).filter(d=>d),O=r=>{var R,C,y,f,S,F,s,N,M;if(Array.isArray(r.children)&&r.children.length>0&&!((R=r==null?void 0:r.meta)!=null&&R.hideInMenu)&&!((C=r==null?void 0:r.meta)!=null&&C.hideChildrenInMenu)){let k;if(e.subMenuItemRender)return e.subMenuItemRender({item:r,children:b(r.children)});const L=(y=r.meta)==null?void 0:y.title,W=(f=r.meta)!=null&&f.icon?t.createVNode("span",{class:"gx-pro-sider-menu-item"},[t.createVNode("span",{class:"gx-pro-sider-menu-item-title"},[L])]):t.createVNode("span",{class:"gx-pro-sider-menu-item"},[L]),H=((S=r.meta)==null?void 0:S.type)==="group",z=H?p.Menu.ItemGroup:p.Menu.SubMenu;return t.createVNode(z,{title:W,key:r.path,icon:H?null:t.createVNode(re,{className:l,icon:(F=r.meta)==null?void 0:F.icon,iconfontUrl:e.iconfontUrl,iconType:(s=r.meta)==null?void 0:s.iconType},null)},De(k=b(r.children))?k:{default:()=>[k]})}const[d,I]=g(r);return e.menuItemRender&&e.menuItemRender({item:r,title:d,icon:I})||t.createVNode(p.Menu.Item,{disabled:(N=r.meta)==null?void 0:N.disabled,danger:(M=r.meta)==null?void 0:M.danger,key:r.path,icon:I},De(d)?d:{default:()=>[d]})},g=r=>{var S,F,s,N,M;const d={...r.meta},I=d.targetStatus===1&&d.target?"a":w,R={to:r.linkPath||r.path||""},C=(S=r.meta)==null?void 0:S.title,y=(F=r.meta)!=null&&F.icon?t.createVNode(I,t.mergeProps(R,{class:"gx-pro-sider-menu-item",onClick:()=>m(d,R)}),{default:()=>[t.createVNode("span",{class:"gx-pro-sider-menu-item-title"},[C])]}):t.createVNode(I,t.mergeProps(R,{class:"gx-pro-sider-menu-item",onClick:()=>m(d,R)}),{default:()=>[t.createVNode("span",null,[C])]}),f=((s=r.meta)==null?void 0:s.icon)&&t.createVNode(re,{className:l,icon:(N=r.meta)==null?void 0:N.icon,iconfontUrl:e.iconfontUrl,iconType:(M=r.meta)==null?void 0:M.iconType},null)||void 0;return[y,f]},$=t.computed(()=>b(e.menuData));return()=>t.createVNode(p.Menu,t.mergeProps({key:"Menu",inlineIndent:16,mode:e.mode,theme:e.theme,openKeys:e.openKeys===!1?[]:e.openKeys,selectedKeys:e.selectedKeys||[],onOpenChange:o,onSelect:c,onClick:h},e.menuProps),{default:()=>[$.value]})}}),ze=new i.Keyframe("pro-layout-title-hide",{"0%":{display:"none",opacity:0},"99%":{display:"none",opacity:0},"100%":{display:"block",opacity:1}}),bt=e=>{const a=`${e.antCls}-menu`;return{[`${e.proComponentsCls}-basic-layout`]:{[`${a}${a}-root`]:{[`${a}-item a`]:{transition:"none"}}}}},pt=e=>{var a,n,l,o,c,h,m,w,b,O,g,$;return{[`${e.proComponentsCls}-basic-layout`]:{[`&${e.proComponentsCls}-basic-layout-wide`]:{[e.componentCls]:{position:"sticky",zIndex:100,borderRadius:e.borderRadiusSM}},[e.componentCls]:{position:"relative",borderRight:0,background:(n=(a=e.layout)==null?void 0:a.sider)==null?void 0:n.colorDarkBgMenu,zIndex:9,"&-menu":{position:"relative",zIndex:10,minHeight:"100%","&-icon":{verticalAlign:"unset"}},[`& ${e.antCls}-layout-sider-children`]:{position:"relative",display:"flex",flexDirection:"column",height:"100%"},"&-light":{background:(o=(l=e.layout)==null?void 0:l.sider)==null?void 0:o.colorBgMenu,boxShadow:"2px 0 8px 0 rgba(29,35,41,.05)",[`${e.componentCls}-footer`]:{color:(h=(c=e.layout)==null?void 0:c.sider)==null?void 0:h.colorTextMenu}},"&-links":{width:"100%",borderTop:"1px solid rgba(0,0,0,.06)",ul:{height:"auto"}},"&-link-menu":{border:"none",boxShadow:"none",background:"transparent"},"&-footer":{color:(w=(m=e.layout)==null?void 0:m.sider)==null?void 0:w.colorDarkTextMenu,paddingBlockEnd:16,fontSize:e.fontSize,animationName:ze,animationDuration:".4s",animationTimingFunction:"ease"}},[`${e.componentCls}${e.componentCls}-fixed`]:{position:"fixed",insetBlockStart:0,insetInlineStart:0,zIndex:"100",height:"100%","&-mix":{height:`calc(100% - ${((O=(b=e.layout)==null?void 0:b.header)==null?void 0:O.heightLayoutHeader)||i.themeConfig.headerHeight}px)`,insetBlockStart:`${(($=(g=e.layout)==null?void 0:g.header)==null?void 0:$.heightLayoutHeader)||i.themeConfig.headerHeight}px`}}}}},xt=e=>({[`${e.proComponentsCls}-basic-layout`]:{[`${e.antCls}-menu`]:{[`${e.proComponentsCls}-menu-item-icon${e.antCls}-menu-item-icon`]:{verticalAlign:"unset",lineHeight:1}}}}),Ct=e=>({[`${e.proComponentsCls}-sider`]:{"&-light":{[`${e.proComponentsCls}-sider-logo`]:{h1:{color:e.colorPrimary}}},"&-logo":{position:"relative",display:"flex",alignItems:"center",justifyContent:"space-between",padding:"16px 8px",cursor:"pointer",transition:"padding .3s cubic-bezier(.645,.045,.355,1)","> a":{display:"flex",alignItems:"center",justifyContent:"center",maxHeight:32,"> img":{display:"inline-block",height:32,verticalAlign:"middle"},"> h1":{display:"inline-block",lineHeight:"32px",marginBlock:0,marginInlineEnd:0,marginInlineStart:12,color:e.colorWhite,animationName:ze,animationDuration:".2s",fontWeight:600,fontSize:18,overflow:"hidden",verticalAlign:"middle"}},"&-collapsed":{flexDirection:"column-reverse",margin:0,padding:12,[`${e.proComponentsCls}-layout-apps-icon`]:{marginBlockEnd:8,fontSize:16,transition:"font-size 0.2s ease-in-out,color 0.2s ease-in-out"}}},[`&${e.antCls}-layout-sider-collapsed`]:{[`${e.proComponentsCls}-sider-logo`]:{padding:"16px 8px"}}}}),He=(e,a)=>e?typeof e=="string"?t.createVNode("img",{src:e,alt:"logo",style:a},null):typeof e=="function"?e():e:null,St=(e,a="menuHeaderRender")=>{const{logo:n,logoStyle:l,title:o,layout:c}=e,h=e[a||""];if(h===!1)return null;const m=He(n,l),w=o&&t.createVNode("h1",null,[o]);return typeof h=="function"?h(m,e.collapsed?null:w,e):t.createVNode(t.Fragment,null,[m||null,e.collapsed&&c==="side"?null:w])},pe=t.defineComponent({name:"LogoContent",props:ae,setup(e){const{getPrefixCls:a}=Q(),n=t.computed(()=>e.layout==="side"||e.layout==="simple"),l=t.computed(()=>a({suffixCls:n.value||e.drawer?"sider":"global-header",isPor:!0})),{wrapSSR:o,hashId:c}=i.useProStyle("ProLayoutLogo",[Ct]),h=t.computed(()=>St(e,e.renderKey));return()=>o(t.createVNode("div",{id:"logo",class:{[`${c.value}`]:!0,[`${l.value}-logo`]:!0,[`${l.value}-logo-collapsed`]:!!e.collapsed},onClick:()=>{var m;return(m=e.onMenuHeaderClick)==null?void 0:m.call(e)}},[t.createVNode("a",null,[h.value||null])]))}});pe.inheritAttrs=!1;function wt(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!t.isVNode(e)}const{Sider:Nt}=p.Layout,{Item:je}=p.Menu,We=e=>e?t.createVNode(Z.MenuUnfoldOutlined,null,null):t.createVNode(Z.MenuFoldOutlined,null,null),Ae=t.defineComponent({props:_,inheritAttrs:!1,setup(e){const{getPrefixCls:a,selectedKeys:n,flatMenuData:l,menuData:o,openKeys:c}=Q(),{indicator:h}=he.useProAppContext(),{token:m}=i.useProConfigContext(),{theme:w,layout:b,isMobile:O,menuLoading:g,breakpoint:$,fixSiderbar:r,collapsed:d,siderWidth:I,collapsedWidth:R,menuExtraRender:C,menuContentRender:y,menuFooterRender:f,collapsedButtonRender:S,links:F}=t.toRefs(e),s=a({suffixCls:"sider",isPor:!0}),{wrapSSR:N,hashId:M}=i.useProStyle("ProLayoutSiderMenu",[bt,pt,xt],s),k=t.computed(()=>e.layout==="wide"),L=t.computed(()=>e.layout==="mix"&&!e.isMobile&&e.splitMenus),W=t.computed(()=>b.value==="side"||b.value==="simple"),H=t.computed(()=>(e.layout==="mix"||k.value)&&"light"||w.value),z=t.computed(()=>b.value==="top"?[]:o.value),A=t.computed(()=>e.collapsed?e.collapsedWidth:e.siderWidth),E=t.computed(()=>[M.value,s,O.value?"shadow":null,`${s}-${H.value}`,r.value&&e.layout!=="wide"?`${s}-fixed`:null]),Y=t.computed(()=>{var u;return typeof F.value=="function"?(u=F.value)==null?void 0:u.call(F):F.value}),U=t.computed(()=>S.value!==!1?S.value||We:!1),q=u=>{var x;if(e.onSelect){if(t.unref(L)){e.onSelect([(x=n==null?void 0:n.value)==null?void 0:x[0],...u]);return}e.onSelect(u)}};return()=>{var T;const u=W.value?t.createVNode(pe,t.mergeProps({drawer:O.value},e),null):null,x=C.value&&((T=C.value)==null?void 0:T.call(C,e)),B=t.createVNode(be,{class:`${s}-menu ${M.value}`,theme:H.value,mode:"inline",menuData:L.value?l.value:z.value,iconfontUrl:e.iconfontUrl,openKeys:c.value,selectedKeys:n.value,menuItemRender:e.menuItemRender,subMenuItemRender:e.subMenuItemRender,onClick:e.onMenuClick,style:{width:"100%"},onOpenKeys:j=>{var G;return e.onOpenKeys&&((G=e.onOpenKeys)==null?void 0:G.call(e,j))},onSelect:q},null);return L.value&&t.unref(l.value).length===0||z.value.length===0?null:N(t.createVNode(p.ConfigProvider,{theme:{components:{Menu:ke({radiusItem:4,colorActiveBarWidth:0,colorActiveBarHeight:0,colorActiveBarBorderSize:0},(m==null?void 0:m.value)||{},H.value,"sider")}}},{default:()=>[r.value&&t.createVNode("div",{style:{width:`${A.value}px`,overflow:"hidden",flex:`0 0 ${A.value}px`,maxWidth:`${A.value}px`,minWidth:`${A.value}px`,transition:"background-color 0.2s, min-width 0.2s, max-width 0.2s"}},null),t.createVNode(Nt,{collapsible:!0,trigger:null,class:E.value,style:{overflow:"hidden",zIndex:r.value?101:void 0,paddingTop:W.value||e.isMobile||k.value?0:`${e.headerHeight}px`,top:e.layout==="wide"?`${e.headerHeight+20}px`:void 0,height:e.layout==="wide"?`calc(100vh - ${e.headerHeight+20*2}px)`:void 0},theme:H.value,breakpoint:$.value||void 0,collapsed:d.value,width:I.value,collapsedWidth:R.value},{default:()=>{var j,G;return[g.value&&t.createVNode("div",{class:["gx-pro-sider-loading",M.value]},[t.createVNode(p.Spin,{spinning:g.value,indicator:h==null?void 0:h.value},null)]),u||null,x&&!e.collapsed&&t.createVNode("div",{class:{[`${M.value}`]:!0,[`${s}-extra`]:!0,[`${s}-extra-no-logo`]:!u}},[x]),t.createVNode("div",{style:{flex:"1 1 0%",overflow:"hidden auto"}},[y.value&&((j=y.value)==null?void 0:j.call(y,e,B))||B]),e.layout!=="wide"&&t.createVNode("div",{class:`${s}-links ${M.value}`},[t.createVNode(p.Menu,{theme:H.value,inlineIndent:16,class:`${s}-link-menu ${M.value}`,selectedKeys:[],openKeys:[],mode:"inline"},{default:()=>[(Y.value||[]).map((X,ee)=>t.createVNode(je,{class:`${s}-link ${M.value}`,key:ee},wt(X)?X:{default:()=>[X]})),U.value&&!O.value&&t.createVNode(je,{class:`${s}-collapsed-button ${M.value}`,title:!1,key:"collapsed",onClick:()=>{var X;e.onCollapse&&((X=e.onCollapse)==null||X.call(e,!d.value))}},{default:()=>{var X;return[(X=U.value)==null?void 0:X.call(U,d.value)]}})]})]),f.value&&t.createVNode("div",{class:`${s}-footer ${M.value}`},[(G=f.value)==null?void 0:G.call(f,e)])]}})]}))}}}),de=t.defineComponent({name:"SiderMenuWrapper",inheritAttrs:!1,props:{..._,matchMenuKeys:{type:Array,default:()=>[]}},setup(e){return()=>t.createVNode(t.Fragment,null,[e.isMobile?t.createVNode(p.Drawer,{maskClosable:!0,open:!e.collapsed,closable:!1,placement:"left",style:{padding:0,height:"100vh"},getContainer:!1,onClose:()=>e.onCollapse&&e.onCollapse(!0),width:e.siderWidth,bodyStyle:{height:"100vh",padding:0,display:"flex",flexDirection:"row"}},{default:()=>[t.createVNode(Ae,t.mergeProps(e,{collapsed:e.isMobile?!1:e.collapsed}),null)]}):t.createVNode(Ae,e,null)])}}),ve={usePageCard:{type:Boolean,default:()=>{}},pageCardProps:Object,pageContentStyle:D.style,pageChildrenContentStyle:D.style,waterMarkProps:{type:Object},waterMark:D.bool.def(!0),pageHeaderRender:{type:[Object,Function,Boolean],default:()=>{}}},ce={pageChildrenExtraRender:{type:[Object,Function,Boolean],default:()=>{}},contentRender:{type:[Object,Function,Boolean],default:()=>{}},breadcrumbRender:{type:[Object,Function,Boolean],default:()=>{}},pageHeaderStyle:D.style,loading:D.bool.def(!1),...ve},It=e=>({[e.componentCls]:{background:e.colorBgContainer,padding:`${e.paddingLG}px`,"&-has-breadcrumb":{paddingBlock:`${e.paddingSM}px`},"&-content":{marginTop:"8px"}}}),Mt=t.defineComponent({name:"ProPageHeader",props:{content:ce.contentRender,breadcrumb:ce.breadcrumbRender},setup(e){const{breadcrumb:a,getPrefixCls:n}=Q(),l=n({isPor:!0,suffixCls:"page-header"}),{wrapSSR:o,hashId:c}=i.useProStyle("ProPageHeader",[It],l),h=t.computed(()=>{var m;return{...a.value,itemRender:((m=a.value)==null?void 0:m.itemRender)||(({route:w})=>w.path?t.createVNode(ie.RouterLink,{to:w.path},{default:()=>[w.breadcrumbName]}):w.breadcrumbName)}});return()=>{var m,w;return o(t.createVNode("div",{class:[`${l}`,c.value,`${l}-has-breadcrumb`]},[e.breadcrumb?(m=e.breadcrumb)==null?void 0:m.call(e,h.value):t.createVNode(p.Breadcrumb,h.value,null),e.content&&t.createVNode("div",{class:[`${l}-content`,c.value]},[(w=e.content)==null?void 0:w.call(e)])]))}}}),kt=e=>{var a,n,l,o,c,h,m,w;return{[`${e.proComponentsCls}-basic-layout`]:{[e.componentCls]:{marginInline:-(((n=(a=e.layout)==null?void 0:a.pageContainer)==null?void 0:n.paddingBlockPageContainerContent)??24),marginBlockStart:-(((o=(l=e.layout)==null?void 0:l.pageContainer)==null?void 0:o.paddingBlockPageContainerContent)??24)},[e.gridContent]:{width:"100%"}},[e.componentCls]:{"&-children-content":{marginInline:((h=(c=e.layout)==null?void 0:c.pageContainer)==null?void 0:h.marginInlinePageContainerContent)??24,marginBlockStart:((w=(m=e.layout)==null?void 0:m.pageContainer)==null?void 0:w.marginBlockPageContainerContent)??24,padding:"inherit"}}}};function Ot(e){return i.useStyle("ProPageContainter",a=>{const n=i.mergeToken(a,{gridContent:`${a.proComponentsCls}-grid-content`});return[kt(n)]},e)}function Rt(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!t.isVNode(e)}const Bt=t.defineComponent({inheritAttrs:!1,name:"GProPageContainer",props:ce,setup(e,{slots:a,attrs:n}){const{getPrefixCls:l,hasContentWide:o,waterMark:c,pageHeaderRender:h,pageContentStyle:m,pageChildrenContentStyle:w,pageCardProps:b,usePageCard:O,waterMarkProps:g}=Q(),{indicator:$}=he.useProAppContext(),r=i.useProConfigContext(),d=l({suffixCls:"page-container",isPor:!0}),I=l({suffixCls:"grid-content",isPor:!0}),R=t.computed(()=>e.pageCardProps||b.value),C=t.computed(()=>e.waterMarkProps||g.value||{}),y=t.computed(()=>e.pageContentStyle||m.value),f=t.computed(()=>e.pageChildrenContentStyle||w.value||{}),S=t.computed(()=>K.isBoolean(e.usePageCard)?e.usePageCard:K.isBoolean(O.value)?O.value:!0),{wrapSSR:F,hashId:s}=Ot(d),N=()=>{var L,W,H,z,A,E;const k=K.getSlot(a,e,"pageChildrenExtraRender");return t.createVNode("div",{class:`${d}-children-content ${s.value}`,style:f.value},[k&&(k==null?void 0:k()),S.value?t.createVNode(p.Card,t.mergeProps(R.value?J.pick(R.value,["loading","bodyStyle"]):{},{style:o.value?{minHeight:"853px"}:void 0,bordered:!1}),{default:()=>{var Y;return[(Y=a.default)==null?void 0:Y.call(a)]}}):k?t.createVNode("div",{style:{marginBlockStart:`${(z=(H=(W=(L=r==null?void 0:r.token)==null?void 0:L.value)==null?void 0:W.layout)==null?void 0:H.pageContainer)==null?void 0:z.marginBlockPageContainerContent}px`}},[(A=a.default)==null?void 0:A.call(a)]):(E=a.default)==null?void 0:E.call(a)])},M=()=>{let k;return t.createVNode(t.Fragment,null,[e.waterMark&&c.value?t.createVNode(it.GPorWaterMark,C.value,Rt(k=N())?k:{default:()=>[k]}):N()])};return()=>{const k=K.getSlot(a,e,"pageHeaderRender")||h.value,L=K.getSlot(a,e,"breadcrumbRender"),W=K.getSlot(a,e,"contentRender");return F(t.createVNode(p.Spin,{spinning:e.loading,indicator:$==null?void 0:$.value},{default:()=>[t.createVNode("div",{style:n.style,class:{[`${s.value}`]:!0,[`${d}`]:!0}},[!o.value&&k!==!1&&(k||t.createVNode(Mt,{style:e.pageHeaderStyle,breadcrumb:L,content:W},null)),t.createVNode("div",{class:[I,s.value]},[t.createVNode("div",{class:`${I}-children ${s.value}`,style:y.value},[M()])])])]}))}}}),xe={...te,...oe,logo:ae.logo,logoStyle:ae.logoStyle,logoDirection:ae.logoDirection,menuLoading:Boolean,autoHideHeader:Boolean,collapsed:Boolean,isMobile:Boolean,siderWidth:_.siderWidth,headerTheme:{type:String,default:"dark"},menuData:{type:Array,default:()=>[]},menuRender:{type:[Object,Function],default:()=>{}},extraRightDropdownRender:{type:[Object,Function],default:()=>{}},rightContentRender:{type:[Object,Function],default:()=>{}},collapsedButtonRender:_.collapsedButtonRender,matchMenuKeys:_.matchMenuKeys,onCollapse:_.onCollapse,onOpenKeys:_.onOpenKeys,onMenuHeaderClick:Function,onSelect:_.onSelect},Ue={...xe,headerTitleRender:{type:[Object,Function],default:()=>{}},headerRender:{type:[Object,Function],default:()=>{}},headerContentRender:{type:[Object,Function],default:()=>{}},hasSiderMenu:Boolean,collapsedWidth:_.collapsedWidth,siderWidth:_.siderWidth},Xe={loading:D.looseBool,isMobile:_.isMobile,collapsed:oe.collapsed,siderWidth:_.siderWidth,collapsedWidth:_.collapsedWidth,isFixedMultiTab:te.fixedMultiTab,onReloadPage:{type:Function},onChangeTabs:{type:Function},"onUpdate:tabs":{type:Function}},Vt=e=>({[e.componentCls]:{marginBlock:0,marginBlockStart:48,marginBlockEnd:24,marginInline:0,paddingBlock:0,paddingInline:16,textAlign:"center","&-links":{marginBottom:8,a:{color:e.colorTextSecondary,textDecoration:e.linkDecoration,"&:hover":{color:e.colorPrimary}},"a:not(:last-child)":{marginInlineEnd:40}},"&-copyright":{fontSize:"14px",color:e.colorTextSecondary,a:{color:e.colorTextSecondary,textDecoration:e.linkDecoration}}}}),Ee=[{key:"Ant Design Pro",title:"Ant Design Pro",href:"https://pro.ant.design",blankTarget:!0},{key:"gitee",title:t.createVNode(Z.GithubOutlined,null,null),href:"https://gitee.com/gx12358/vue-antd-admin",blankTarget:!0},{key:"Ant Design Vue",title:"Ant Design Vue",href:"https://next.antdv.com/components/overview-cn/",blankTarget:!0}],se=t.defineComponent({name:"GlobalFooter",props:{links:{type:[Array,Boolean],default:Ee},copyright:{type:[Object,Function,Boolean,String],default:"皖ICP备2022010510号-1"}},setup(e){const a=K.getPrefixCls({suffixCls:"global-footer",isPor:!0}),{wrapSSR:n,hashId:l}=i.useProStyle("ProLayoutFooter",[Vt],a);return()=>n(t.createVNode(p.LayoutFooter,{style:{padding:0}},{default:()=>[t.createVNode("div",{class:[a,l.value]},[e.links&&t.createVNode("div",{class:`${a}-links ${l.value}`},[e.links.map(o=>t.createVNode("a",{key:o.key,title:o.key,target:o.blankTarget?"_blank":"_self",href:o.href},[o.title]))]),e.copyright&&t.createVNode("div",{class:`${a}-copyright ${l.value}`},[t.createTextVNode("Copyright 2022 "),t.createVNode("a",{href:"https://beian.miit.gov.cn/"},[e.copyright])])])]}))}}),Ye={...te,...xe,..._,...Ue,...Xe,...ce,pure:Boolean,token:Object,waterMark:{type:Boolean,default:!0},disableMobile:{type:Boolean,required:!1},contentStyle:{type:[String,Object],default:()=>null},breadcrumb:{type:[Object,Function],default:()=>{}},disableContentMargin:D.looseBool,isChildrenLayout:D.looseBool,loading:D.looseBool,footerLinks:{type:[Array,Boolean],default:Ee},copyrightRender:{type:[Object,Function,Boolean,String],default:()=>{}},footerRender:{type:[Object,Function,Boolean],default:()=>{}},menuData:{type:Array,default:()=>[]},levelMenuData:{type:Array,default:()=>[]},collapsed:D.looseBool},Ft=e=>({[e.componentCls]:{display:"flex",flexDirection:"column",width:"100%",minHeight:"100vh"}}),Tt=e=>{var a,n;return{[e.componentCls]:{a:{color:e.colorPrimary,"&:hover":{color:e.colorPrimaryHover}},[`&${e.componentCls}-wide`]:{backgroundColor:e.colorBgLayout,[`${e.componentCls}-content`]:{margin:0,marginInlineStart:20}},[`${e.componentCls}-content`]:{position:"relative",margin:(n=(a=e.layout)==null?void 0:a.pageContainer)==null?void 0:n.paddingBlockPageContainerContent},[`${e.componentCls}-container`]:{width:"100%",display:"flex",flexDirection:"column",minWidth:0,minHeight:0,backgroundColor:"transparent"}}}},$t=e=>{var a,n;return{[`${e.componentCls}-title`]:{display:"flex",alignItems:"center",gap:8,[`${e.componentCls}-reload-btn,${e.componentCls}-close-btn`]:{color:e.colorTextSecondary,fontSize:12,cursor:"pointer",transition:"color .3s cubic-bezier(.645,.045,.355,1)","&:hover":{color:e.colorPrimary}}},[`${e.componentCls}`]:{"&-fixed":{width:"100%",height:62,background:"transparent"}},[`${e.componentWrapCls}`]:{background:e.colorBgContainer,[`${e.antCls}-tabs-nav`]:{paddingLeft:16,".ant-tabs-tab .anticon":{margin:0},[`${e.antCls}-tabs-tab:not(${e.antCls}-tabs-tab-active)`]:{borderBottomColor:"transparent"},[`${e.componentCls}-dropdown-menu-btn`]:{marginInlineEnd:8,padding:12,fontSize:16,cursor:"pointer"}},"&-fixed":{position:"fixed",height:62,top:((n=(a=e.layout)==null?void 0:a.header)==null?void 0:n.heightLayoutHeader)||i.themeConfig.headerHeight,right:0,zIndex:9,transition:"width .2s"}}}};function Lt(e){return i.useStyle("ProMultiTabs",a=>{const n=i.mergeToken(a,{componentWrapCls:`${a.componentCls}-wrap`});return[$t(n)]},e)}const Kt=[{key:"closeOthersTabs",label:"关闭其他"},{key:"closeLeftTabs",label:"关闭左侧"},{key:"closeRightTabs",label:"关闭右侧"},{key:"reloadPage",label:"刷新当前页"}];function Dt(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!t.isVNode(e)}function v(e){var a;return((a=e==null?void 0:e.meta)==null?void 0:a.currenFulltPath)||e.fullPath||e.path}const zt=p.Tabs.TabPane,Ht=p.Menu.Item,jt=t.defineComponent({props:{...Xe,visible:{type:Boolean,default:!0}},inheritAttrs:!1,setup(e){const{isMobile:a,isFixedMultiTab:n}=t.toRefs(e),l=t.ref(!1),o=t.reactive({activeKey:"",contextMenuActiveKey:""}),c=ie.useRouter(),{menuData:h,flatMenuData:m,layout:w,splitMenus:b,getPrefixCls:O}=Q(),g=O({isPor:!0,suffixCls:"multi-tab"}),{wrapSSR:$,hashId:r}=Lt(g),d=t.ref([]);t.watch(d,()=>{var u;(u=e.onChangeTabs)==null||u.call(e,J.cloneDeep(t.unref(d)))},{deep:!0});const I=t.computed(()=>w.value==="mix"&&!e.isMobile&&b.value),R=t.computed(()=>v(c.currentRoute.value)),C=t.computed(()=>n.value&&!a.value),y=t.computed(()=>{const u=!(I.value&&t.unref(m.value).length===0||h.value.length===0||w.value==="top");return C.value&&u?`calc(100% - ${e.collapsed?e.collapsedWidth:e.siderWidth}px)`:"100%"}),f=t.computed(()=>K.classNames(`${g}-wrap`,{[`${r.value}`]:!0,[`${g}-wrap-fixed`]:e.isFixedMultiTab,[`${g}-wrap-loading`]:e.loading})),S=t.computed(()=>{const u={display:e.visible?void 0:"none"};return e.isFixedMultiTab?{margin:0,width:y.value,paddingTop:"6px",zIndex:99,...u}:u}),F=u=>v(u)===R.value,s=u=>{if(u.name&&u.meta&&u.meta.tagHidden!==!0){const x=v(u),B=d.value.find(j=>v(j)===x),T={path:u.path,fullPath:x,query:u.query,params:u.params,name:u.name,meta:{...u.meta,originTagPath:u.fullPath}};B?Object.assign(B,T):u.meta.tagFixed?d.value.unshift(T):d.value.push(T),F(u)&&(o.activeKey=x)}},N=u=>{u.forEach(x=>{x.meta&&x.meta.tagFixed&&s(x),x.children&&N(x.children)})};t.watch(()=>h.value,u=>{N(u)},{deep:!0,immediate:!0}),t.watch(()=>c.currentRoute.value,u=>{s(u)},{deep:!0,immediate:!0});const M=u=>{var x,B;return((B=(x=d.value.find(T=>(u||o.activeKey)===v(T)))==null?void 0:x.meta)==null?void 0:B.originTagPath)||u||o.activeKey},k=()=>{const u=d.value.slice(-1)[0];u?c.push({path:M(v(u))}):c.push("/")},L=async u=>{const x=d.value.find(B=>u===v(B));d.value=d.value.filter(B=>v(B)!==u),x&&F(x)&&k()},W=u=>{const x=d.value.find(B=>v(B)===u);x&&o.activeKey!==v(x)&&c.push({path:M(v(x))})},H=()=>{var u;l.value=!0,e.onReloadPage&&((u=e.onReloadPage)==null||u.call(e)),setTimeout(()=>{l.value=!1},500)},z=u=>u.meta&&u.meta.tagFixed,A=u=>o[u],E=(u,x)=>{const B=d.value.findIndex(T=>v(T)===A(x));switch(u){case"closeOthersTabs":d.value=d.value.filter(T=>{var j;return v(T)===A(x)||((j=T.meta)==null?void 0:j.tagFixed)});break;case"closeLeftTabs":B&&(d.value=d.value.filter((T,j)=>{var G;return j>=B||((G=T.meta)==null?void 0:G.tagFixed)}));break;case"closeRightTabs":B&&(d.value=d.value.filter((T,j)=>{var G;return j<=B||((G=T.meta)==null?void 0:G.tagFixed)}));break;case"reloadPage":(B===0||B)&&o.activeKey===A(x)&&H();break}o.activeKey!==A(x)&&c.push(M(A(x)))},Y=(u,x)=>{const B=d.value.findIndex(T=>v(T)===x);switch(u){case"closeOthersTabs":return d.value.filter((X,ee)=>{var P;return ee!==B&&!((P=X.meta)!=null&&P.tagFixed)}).length===0;case"closeLeftTabs":return d.value.filter((X,ee)=>{var P;return ee<B&&!((P=X.meta)!=null&&P.tagFixed)}).length===0;case"closeRightTabs":return d.value.filter((X,ee)=>{var P;return ee>B&&!((P=X.meta)!=null&&P.tagFixed)}).length===0}},U=u=>{let x;const{path:B,stateType:T}=u;return t.createVNode(p.Menu,{selectedKeys:[],onClick:({key:j})=>E(j,T)},Dt(x=Kt.map(j=>t.createVNode(Ht,{key:j.key,disabled:Y(j.key,B)},{default:()=>[j.label]})))?x:{default:()=>[x]})},q=u=>{const{router:x}=u;return t.createVNode(p.Dropdown,{trigger:"contextmenu",overlay:t.createVNode(U,{path:v(x)||"",stateType:"contextMenuActiveKey"},null),onOpenChange:B=>{o.contextMenuActiveKey=B&&v(x)||""}},{default:()=>{var B;return[t.createVNode("div",{class:[`${g}-title`,r.value]},[(B=x.meta)==null?void 0:B.title,o.activeKey===v(x)&&t.createVNode(Z.ReloadOutlined,{class:[`${g}-reload-btn`,r.value],spin:l.value,onClick:T=>{T.stopPropagation(),!l.value&&H()}},null),d.value.length>1&&!z(x)&&t.createVNode(Z.CloseOutlined,{class:[`${g}-close-btn`,r.value],onClick:T=>{T.stopPropagation(),!l.value&&L(v(x)||"")}},null)])]}})};return()=>$(t.createVNode(t.Fragment,null,[!!e.isFixedMultiTab&&t.withDirectives(t.createVNode("div",{class:[`${g}-fixed`,r.value]},null),[[t.vShow,e.visible]]),t.createVNode(p.Tabs,{hideAdd:!0,type:"editable-card",style:S.value,class:f.value,activeKey:o.activeKey,onTabClick:W},{default:()=>[d.value.map(u=>t.createVNode(zt,{key:v(u),closable:!1,tab:t.createVNode(q,{router:u},null)},null))],rightExtra:()=>t.createVNode(p.Dropdown,{overlay:t.createVNode(U,{path:o.activeKey,stateType:"activeKey"},null)},{default:()=>[t.createVNode(Z.EllipsisOutlined,{class:[`${g}-dropdown-menu-btn`,r.value],rotate:90},null)]})})]))}}),{Content:Wt}=p.Layout,ue=(e,{slots:a,attrs:n})=>{var I;const{hashId:l,prefixCls:o,isMobile:c,loading:h,collapsed:m,siderWidth:w,isShowTabsBar:b,isFixedMultiTab:O,onReloadPage:g,onChangeTabs:$}=e;if(e.isChildrenLayout)return(I=a.default)==null?void 0:I.call(a);const{flatMenuData:r,layout:d}=Q();return t.createVNode(t.Fragment,null,[t.createVNode(jt,{visible:(t.unref(d)==="mix"?t.unref(r).length>0:!0)&&b,isMobile:c,loading:h,isFixedMultiTab:O,siderWidth:w,collapsed:m,onReloadPage:g,onChangeTabs:$},null),t.createVNode(Wt,{style:n.style,class:[`${o}-content`]},{default:()=>{var R;return[h&&t.createVNode(Ie,null,null),t.createVNode("div",{class:[`${o}-content-spin-container`,l],style:{opacity:h?"0":void 0}},[(R=a.default)==null?void 0:R.call(a)])]}})])};ue.inheritAttrs=!1,ue.displayName="wrap-content";const At=e=>{var a,n,l,o;return{[`${e.proComponentsCls}-basic-layout`]:{[`${e.antCls}-layout-header${e.componentCls}${e.componentCls}-light`]:{backgroundColor:((n=(a=e.layout)==null?void 0:a.header)==null?void 0:n.colorBgMenu)||e.colorBgElevated},[`${e.antCls}-layout-header${e.componentCls}${e.componentCls}-dark`]:{backgroundColor:(o=(l=e.layout)==null?void 0:l.header)==null?void 0:o.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.2s cubic-bezier(.645,.045,.355,1)",[`&${e.proComponentsCls}`]:{"&-fixed-header":{position:"fixed",width:"100%",zIndex:9,top:0,transition:"width .2s","&-action":{transition:"width .3s cubic-bezier(.645,.045,.355,1)"}},"&-header-actions":{display:"flex",alignItems:"center",fontSize:"16",cursor:"pointer","& &-item":{paddingBlock:0,paddingInline:8,"&:hover":{color: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)"}}}}}},vt=e=>({[`${e.proComponentsCls}-header`]:{"&-light":{[`${e.componentCls}-logo`]:{h1:{color:e.colorBgSpotlight}}}},[e.componentCls]:{position:"relative",background:"transparent",display:"flex",marginBlock:0,paddingInline:16,width:"100%",height:"100%",boxShadow:"0 1px 4px rgba(0,21,41,.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",width:"100%",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}}}),_e={..._,...xe},Ut=(e,a)=>e===!1?null:e?e(a,null):a,Xt=t.defineComponent({props:_e,setup(e){return()=>e.rightContentRender&&typeof e.rightContentRender=="function"&&t.createVNode(t.Fragment,null,[e.rightContentRender({...e})])}}),Ge=t.defineComponent({props:_e,inheritAttrs:!1,setup(e,{slots:a,emit:n}){const l=ie.useRouter(),{token:o}=i.useProConfigContext(),{getPrefixCls:c,openKeys:h,selectedKeys:m}=Q(),{width:w}=we.useWindowSize(),b=c({suffixCls:"global-header",isPor:!0}),{wrapSSR:O,hashId:g}=i.useProStyle("ProGlobalHeader",[vt],b),$=t.computed(()=>e.isMobile?!1:e.layout==="top"||e.layout==="mix"&&e.splitMenus),r=t.computed(()=>({[`${g.value}`]:!0,[`${b}`]:!0,[`${b}-${e.layout}`]:!0})),d=y=>{var f;if(l.currentRoute){const S=l.currentRoute.value.matched.concat();e.onSelect&&y==="select"&&e.onSelect(S.filter(F=>F.name!=="index").map(F=>F.path)),e.onOpenKeys&&y==="openKeys"&&((f=e.onOpenKeys)==null||f.call(e,S.filter(F=>F.path!==l.currentRoute.value.path).map(F=>F.path)))}},I=()=>{n("collapse",!e.collapsed)},R=t.computed(()=>e.collapsedButtonRender||We),C=()=>{var y,f;return t.createVNode(t.Fragment,null,[$.value?t.createVNode("div",{style:{flex:1},class:[`${b}-menu`,g.value]},[((y=e.menuData)==null?void 0:y.length)>0&&t.createVNode(p.ConfigProvider,{theme:{components:{Layout:{headerBg:"transparent",bodyBg:"transparent"},Menu:ke({radiusItem:4,colorActiveBarWidth:0,colorActiveBarHeight:2,colorActiveBarBorderSize:0,horizontalItemBorderRadius:4},o.value||{},e.theme,"header")}}},{default:()=>[t.createVNode(be,t.mergeProps({theme:e.theme,mode:e.mode,collapsed:e.collapsed,menuData:e.menuData,openKeys:h.value,selectedKeys:m.value,iconfontUrl:e.iconfontUrl,menuItemRender:e.menuItemRender,subMenuItemRender:e.subMenuItemRender,class:{"top-nav-menu":e.mode==="horizontal",[`${g.value}`]:!0}},{"onUpdate:openKeys":()=>d("openKeys"),"onUpdate:selectedKeys":()=>d("select")}),null)]})]):t.createVNode("div",{style:{flex:1}},[(f=a.default)==null?void 0:f.call(a)]),e.layout!=="simple"&&t.createVNode(Xt,t.mergeProps(e,{extraRightDropdownRender:e.extraRightDropdownRender,rightContentRender:e.rightContentRender}),null)])};return()=>{const y=t.createVNode("span",{key:"logo",onClick:()=>{var f;return(f=e.onMenuHeaderClick)==null?void 0:f.call(e)},class:[`${b}-logo`,e.isMobile?"mobile":"",g.value]},[t.createVNode("a",null,[He(e.logo)])]);return O(t.createVNode("div",{class:r.value},[e.isMobile?t.createVNode(t.Fragment,null,[Ut(e.menuHeaderRender,y),e.isMobile&&t.unref(R)&&t.createVNode("span",{class:`${b}-collapsed-button ${g.value}`,onClick:I},[t.unref(R)(e.collapsed)]),C()]):["mix","wide","top"].includes(e.layout)?t.createVNode(t.Fragment,null,[t.createVNode("div",{style:{width:e.layout==="wide"?`${e.wideWidth}px`:void 0,padding:e.layout==="wide"&&w.value<e.wideWidth?"0 50px":void 0},class:`${b}-main ${g.value}`},[t.createVNode("div",{class:`${b}-main-left ${g.value}`},[t.createVNode(pe,t.mergeProps(e,{renderKey:"headerTitleRender"}),null)]),C()])]):C()]))}}});function Et(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!t.isVNode(e)}const{Header:qe}=p.Layout,Ce=t.defineComponent({inheritAttrs:!1,props:Ue,setup(e){const{theme:a,isMobile:n,fixedHeader:l,headerHeight:o,layout:c,onCollapse:h,splitMenus:m}=t.toRefs(e),{getPrefixCls:w,menuData:b}=Q(),O=w({suffixCls:"header",isPor:!0}),g=w({suffixCls:"fixed-header",isPor:!0}),{wrapSSR:$,hashId:r}=i.useProStyle("ProLayoutHeader",[At],O),d=t.computed(()=>c.value==="wide"),I=t.computed(()=>l.value),R=t.computed(()=>c.value==="mix"||d.value),C=t.computed(()=>c.value==="side"||c.value==="simple"),y=t.computed(()=>C.value&&"light"||a.value),f=t.computed(()=>({[`${r.value}`]:!0,[`${O}-${y.value}`]:!0,[`${O}`]:!0,[`${g}`]:I.value})),S=t.computed(()=>I.value&&!n.value),F=t.computed(()=>m.value?b.value&&Re(b.value)||[]:c.value==="top"?b.value:[]),s=t.computed(()=>C.value&&S.value?`calc(100% - ${e.collapsed?e.collapsedWidth:e.siderWidth}px)`:"100%"),N=t.computed(()=>I.value?0:void 0),M=()=>{const k=t.createVNode(Ge,t.mergeProps(e,{theme:y.value,mode:"horizontal",onCollapse:h.value,menuData:F.value}),{default:()=>[R.value?null:e.headerContentRender&&typeof e.headerContentRender=="function"?e.headerContentRender(e):e.headerContentRender]});return e.headerRender?e.headerRender(e,k):k};return()=>{let k;return $(t.createVNode(t.Fragment,null,[I.value&&!d.value&&t.createVNode(qe,{theme:y.value,style:{height:`${o.value}px`,lineHeight:`${o.value}px`,background:"transparent"}},null),t.createVNode(qe,{theme:y.value,class:f.value,style:{height:`${o.value}px`,lineHeight:`${o.value}px`,width:s.value,zIndex:C.value?100:101,right:N.value}},Et(k=M())?k:{default:()=>[k]})]))}}}),Yt=t.defineComponent({name:"BaseProLayout",inheritAttrs:!1,components:{GlobalHeader:Ce,GlobalFooter:se,SiderMenuWrapper:de},props:Ye,emits:["update:collapsed","update:open-keys","update:selected-keys","collapse","openKeys","reloadPage","select","menuHeaderClick","menuClick","changeTabs"],setup(e,{slots:a}){const n=K.getPrefixCls({suffixCls:"basic-layout",isPor:!0}),{wrapSSR:l,hashId:o}=i.useProStyle("ProLayout",[Ft,Tt],n),c=ne.useMediaQuery(),{token:h}=i.useProConfigContext(),m=t.computed(()=>{var y;return(y=h==null?void 0:h.value)==null?void 0:y.colorPrimary});t.watchEffect(()=>{m.value&&document.querySelector("html")&&document.querySelector("html").style.setProperty("--gx-primary-color",m.value)});const w=t.computed(()=>e.layout==="mix"||e.layout==="side"||e.layout==="wide"||!1),b=t.computed(()=>e.layout==="wide"),O=t.computed(()=>w.value),g=t.computed(()=>e.collapsed?e.collapsedWidth:e.siderWidth),$=t.computed(()=>(e.theme||"dark").toLocaleLowerCase().includes("dark")?"dark":"light"),r=t.computed(()=>(c.value==="sm"||c.value==="xs")&&!e.disableMobile&&!b.value),d=t.reactive({position:"relative"});(e.isChildrenLayout||e.contentStyle&&e.contentStyle.minHeight)&&(d.minHeight=0);const I=(y,f)=>y.headerRender===!1||y.pure?null:t.createVNode(Ce,t.mergeProps(y,{matchMenuKeys:f||[]}),null),R=t.computed(()=>({...e.breadcrumb,itemRender:K.getSlot(a,e,"breadcrumbRender")})),C=t.computed(()=>O.value&&e.selectedKeys?Be(e.menuData,e.selectedKeys[0]):[]);return Ke({getPrefixCls:K.getPrefixCls,...J.pick(t.toRefs(e),["layout","waterMark","menuData","openKeys","splitMenus","headerHeight","selectedKeys","disableMobile","fixSiderbar","fixedHeader","waterMarkProps"].concat(Object.keys(ve))),theme:$,hasContentWide:b,isMobile:r,siderWidth:g,breadcrumb:R,flatMenuData:C,hasSide:w,flatMenu:O,pageHeaderRender:t.computed(()=>K.getSlot(a,e,"pageHeaderRender"))}),()=>{var T;const y=K.getSlot(a,e,"collapsedButtonRender"),f=K.getSlot(a,e,"headerContentRender"),S=K.getSlot(a,e,"rightContentRender"),F=K.getSlot(a,e,"headerRender"),s=K.getSlot(a,e,"footerRender"),N=K.getSlot(a,e,"links"),M=K.getSlot(a,e,"copyrightRender"),k=K.getSlot(a,e,"extraRightDropdownRender"),L=K.getSlot(a,e,"menuHeaderRender"),W=K.getSlot(a,e,"menuExtraRender"),H=K.getSlot(a,e,"menuContentRender"),z=K.getSlot(a,e,"menuFooterRender"),A=K.getSlot(a,e,"menuItemRender"),E=K.getSlot(a,e,"subMenuItemRender"),Y={menuItemRender:A,subMenuItemRender:E},U=t.computed(()=>I({...e,...Y,hasSiderMenu:w.value,menuData:e.menuData,isMobile:t.unref(r),rightContentRender:S,extraRightDropdownRender:k,headerTitleRender:L,headerContentRender:f,headerRender:F,theme:$.value},e.matchMenuKeys)),q=t.computed(()=>({[`${o.value}`]:!0,[`${n}`]:!0,[`${n}-${e.layout}`]:!0})),u=t.computed(()=>b.value?{minWidth:`${e.wideWidth}px`}:void 0),x=t.computed(()=>b.value?{width:e.menuData.length?`${e.wideWidth}px`:`${e.wideWidth-e.siderWidth-20}px`,paddingTop:`${e.headerHeight+20}px`,margin:b.value?"0 auto":void 0}:void 0),B=t.computed(()=>b.value?{minHeight:"835px"}:{});return l(t.createVNode(t.Fragment,null,[e.pure?(T=a.default)==null?void 0:T.call(a):t.createVNode("div",{class:q.value,style:u.value},[t.createVNode(p.Layout,{style:x.value},{default:()=>[t.createVNode(de,t.mergeProps(J.omit(e,["pure","theme"]),{links:N,theme:$.value,isMobile:r.value,menuHeaderRender:L,menuContentRender:H,menuExtraRender:W,menuFooterRender:z,collapsedButtonRender:y}),null),t.createVNode(p.Layout,{style:d},{default:()=>[U.value,t.createVNode(ue,t.mergeProps({hashId:o.value,isMobile:r.value,prefixCls:n,collapsedWidth:e.collapsedWidth,isChildrenLayout:e.isChildrenLayout,loading:e.loading,isShowTabsBar:e.showTabsBar,isFixedMultiTab:e.fixedMultiTab,siderWidth:e.siderWidth,collapsed:e.collapsed,style:e.disableContentMargin?B.value:{...e.contentStyle,...B.value}},J.pick(e,["onReloadPage","onChangeTabs"])),{default:()=>{var j;return[(j=a.default)==null?void 0:j.call(a)]}}),s===!1?null:s?s(e):t.createVNode(se,{copyright:M},null)]})]})])]))}}}),_t=t.defineComponent({components:{GlobalHeader:Ce,GlobalFooter:se,SiderMenuWrapper:de},props:Ye,emits:["update:collapsed","update:open-keys","update:selected-keys","collapse","openKeys","reloadPage","select","menuHeaderClick","menuClick","changeTabs"],setup(e,{slots:a,emit:n}){const l=t.computed(()=>e.theme!==void 0?{dark:e.theme==="realDark"}:{}),o=m=>{n("update:collapsed",m),n("collapse",m)},c=m=>{n("update:open-keys",m),n("openKeys",m)},h=m=>{n("update:selected-keys",m),n("select",m)};return()=>t.createVNode(p.ConfigProvider,{theme:e.primaryColor?{token:{colorPrimary:e.primaryColor}}:void 0},{default:()=>[t.createVNode(i,t.mergeProps({token:e.token},l.value),{default:()=>[t.createVNode(Yt,t.mergeProps(J.omit(e,["onSelect","onOpenKeys","onCollapse"]),{onSelect:h,onOpenKeys:c,onCollapse:o}),a)]})]})}}),Ze=(e,a,n)=>e.map((l,o)=>{var c;return l.meta&&(l.meta.key=n?`${n}-${o}`:`${o}`),l.path=l.path.replace("//","/"),l.children&&l.children.length>0&&(l.children=Ze(l.children,a,(c=l.meta)==null?void 0:c.key)),a[`${l.path}`]=l,l}),Gt=e=>{const a=e.find(o=>{var c;return o.path==="/"&&((c=o.children)==null?void 0:c.length)}),n={},l=Ze((a==null?void 0:a.children)||[],n);return{menuData:l,breadcrumb:n,levelMenuData:K.getLevelData(l)}},Je=[{key:"light",title:"亮色菜单风格"},{key:"dark",title:"暗色菜单风格"},{key:"realDark",title:"暗黑模式"}],Qe=[{key:"side",title:"侧边菜单布局"},{key:"mix",title:"混合菜单布局"},{key:"wide",title:"定宽菜单布局"},{key:"simple",title:"简单菜单布局"}],qt=[{key:"header",title:"顶部主题"},{key:"sider",title:"左侧主题"}],Zt=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}}}}),Pe=t.defineComponent({name:"BlockCheckbox",props:{value:D.string,list:{type:Array,default:()=>[]},configType:D.string,prefixCls:D.string,hashId:D.string,onChange:Function},setup(e){return()=>{const a=`${e.prefixCls}-block-checkbox`;return t.createVNode("div",{class:[a,e.hashId]},[e.list.map(n=>t.createVNode(p.Tooltip,{title:n.title,key:n.key},{default:()=>[t.createVNode("div",{class:K.classNames(e.hashId,`${a}-item`,`${a}-item-${n.key}`,`${a}-${e.configType}-item`),onClick:()=>{var l;return(l=e.onChange)==null?void 0:l.call(e,n.key)}},[n.key==="wide"&&t.createVNode("div",{class:[`${a}-item-${n.key}-content`,e.hashId]},null),t.createVNode(Z.CheckOutlined,{class:`${a}-selectIcon ${e.hashId}`.trim(),style:{display:e.value===n.key?"block":"none"}},null),n!=null&&n.icon?t.createVNode("div",{class:`${a}-icon ${e.hashId}`.trim()},[n.icon]):null])]}))])}}}),Jt=t.defineComponent({name:"ThemeColor",inheritAttrs:!1,props:{settingValue:Object,colorList:{type:Array,default:()=>[]},prefixCls:D.string,hashId:D.string,onChange:Function},setup(e){return()=>{var n;const a=`${e.prefixCls}-theme-color`;return t.createVNode(t.Fragment,null,[t.createVNode("div",{class:`${a} ${e.hashId}`.trim()},[(n=e.colorList)==null?void 0:n.map(({key:l,color:o,title:c})=>l?t.createVNode(p.Tooltip,{key:o,title:c},{default:()=>{var h,m;return[t.createVNode("div",{class:[`${a}-block ${e.hashId}`.trim(),((h=e.settingValue)==null?void 0:h.primaryColor)===o?`${a}-block-checked`:""],style:{backgroundColor:o},onClick:()=>e.onChange&&e.onChange(o)},[((m=e.settingValue)==null?void 0:m.primaryColor)===o&&t.createVNode(Z.CheckOutlined,null,null)])]}}):null)])])}}}),me=t.defineComponent({name:"RegionalChange",props:{label:D.string,value:D.bool,prefixCls:D.string,valueKey:String,hashId:D.string,disabled:D.bool,onChange:Function},setup(e){return()=>t.createVNode(p.List,{class:`${e.prefixCls}-list ${e.hashId}`.trim(),split:!1,size:"small",renderItem:({item:a})=>t.createVNode(p.Tooltip,{title:a.disabled?a.disabledReason:"",placement:"left"},{default:()=>[t.createVNode(p.List.Item,{actions:[a.action]},{default:()=>[t.createVNode("span",{style:{opacity:a.disabled?.5:1}},[a.title])]})]}),dataSource:[{title:e.label,action:t.createVNode(p.Switch,{size:"small",disabled:e.disabled,checked:!!e.value,onChange:a=>{e.onChange&&e.onChange(e.valueKey,a)}},null)}]},null)}}),Qt=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 Pt(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!t.isVNode(e)}const ea=t.defineComponent({name:"ThemeEditor",props:{settingValue:Object,onChange:Function},setup(e){const{getPrefixCls:a}=Q(),[n,l]=ne.useState("header"),o=a({suffixCls:"theme-editor",isPor:!0}),{wrapSSR:c,hashId:h}=i.useProStyle("ProThemeEditor",[Qt],o),{token:m}=i.useProConfigContext(),w=t.computed(()=>{var r;return(r=m.value)==null?void 0:r.layout}),b=t.computed(()=>{var r,d,I,R,C,y,f,S,F,s,N,M,k,L,W,H,z,A,E,Y,U,q,u,x,B;return[{key:"colorBgMenu",title:"全部背景",disabled:((r=e.settingValue)==null?void 0:r.theme)==="dark"&&["mix","wide"].includes((d=e.settingValue)==null?void 0:d.layout)},{key:"colorDarkBgMenu",title:"全部背景",disabled:((I=e.settingValue)==null?void 0:I.theme)==="light"||((R=e.settingValue)==null?void 0:R.theme)==="dark"&&["side","simple"].includes((C=e.settingValue)==null?void 0:C.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((f=e.settingValue)==null?void 0:f.layout)},{key:"colorDarkBgMenuItemSelected",title:"菜单选中背景",disabled:((S=e.settingValue)==null?void 0:S.theme)==="light"||((F=e.settingValue)==null?void 0:F.theme)==="dark"&&["side","simple"].includes((s=e.settingValue)==null?void 0:s.layout)},{key:"colorTextMenu",title:"菜单文字颜色",disabled:((N=e.settingValue)==null?void 0:N.theme)==="dark"&&["mix","wide"].includes((M=e.settingValue)==null?void 0:M.layout)},{key:"colorDarkTextMenu",title:"菜单文字颜色",disabled:((k=e.settingValue)==null?void 0:k.theme)==="light"||((L=e.settingValue)==null?void 0:L.theme)==="dark"&&["side","simple"].includes((W=e.settingValue)==null?void 0:W.layout)},{key:"colorTextMenuHover",title:"菜单文字移入颜色",disabled:((H=e.settingValue)==null?void 0:H.theme)==="dark"&&["mix","wide"].includes((z=e.settingValue)==null?void 0:z.layout)},{key:"colorDarkTextMenuHover",title:"菜单文字移入颜色",disabled:((A=e.settingValue)==null?void 0:A.theme)==="light"||((E=e.settingValue)==null?void 0:E.theme)==="dark"&&["side","simple"].includes((Y=e.settingValue)==null?void 0:Y.layout)},{key:"colorTextMenuSelected",title:"菜单文字选中颜色",disabled:((U=e.settingValue)==null?void 0:U.theme)==="dark"&&["mix","wide"].includes((q=e.settingValue)==null?void 0:q.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((B=e.settingValue)==null?void 0:B.layout)}]}),O=t.computed(()=>{var r,d,I,R,C,y,f,S,F,s,N,M,k,L,W,H,z,A,E,Y,U,q,u,x,B,T,j,G,X,ee,P,ot;return[{key:"colorBgMenu",title:"全部背景",disabled:((r=e.settingValue)==null?void 0:r.theme)==="dark"&&["side","simple"].includes((d=e.settingValue)==null?void 0:d.layout)},{key:"colorDarkBgMenu",title:"全部背景",disabled:((I=e.settingValue)==null?void 0:I.theme)==="light"||((R=e.settingValue)==null?void 0:R.theme)==="dark"&&["mix","wide"].includes((C=e.settingValue)==null?void 0:C.layout)},{key:"colorSubItemBg",title:"子菜单背景",disabled:((y=e.settingValue)==null?void 0:y.theme)==="dark"&&["side","simple"].includes((f=e.settingValue)==null?void 0:f.layout)},{key:"colorDarkSubItemBg",title:"子菜单背景",disabled:((S=e.settingValue)==null?void 0:S.theme)==="light"||((F=e.settingValue)==null?void 0:F.theme)==="dark"&&["mix","wide"].includes((s=e.settingValue)==null?void 0:s.layout)},{key:"colorBgMenuItemHover",title:"菜单移入背景",disabled:((N=e.settingValue)==null?void 0:N.theme)==="dark"&&((M=e.settingValue)==null?void 0:M.layout)!=="mix"},{key:"colorBgMenuItemSelected",title:"菜单选中背景",disabled:((k=e.settingValue)==null?void 0:k.theme)==="dark"&&((L=e.settingValue)==null?void 0:L.layout)!=="mix"},{key:"colorDarkBgMenuItemSelected",title:"菜单选中背景",disabled:((W=e.settingValue)==null?void 0:W.theme)==="light"||((H=e.settingValue)==null?void 0:H.theme)==="dark"&&["mix","wide"].includes((z=e.settingValue)==null?void 0:z.layout)},{key:"colorTextMenu",title:"菜单文字颜色",disabled:((A=e.settingValue)==null?void 0:A.theme)==="dark"&&((E=e.settingValue)==null?void 0:E.layout)!=="mix"},{key:"colorDarkTextMenu",title:"菜单文字颜色",disabled:((Y=e.settingValue)==null?void 0:Y.theme)==="light"||((U=e.settingValue)==null?void 0:U.theme)==="dark"&&["mix","wide"].includes((q=e.settingValue)==null?void 0:q.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:((B=e.settingValue)==null?void 0:B.theme)==="light"||((T=e.settingValue)==null?void 0:T.theme)==="dark"&&["mix","wide"].includes((j=e.settingValue)==null?void 0:j.layout)},{key:"colorTextMenuSelected",title:"菜单文字选中颜色",disabled:((G=e.settingValue)==null?void 0:G.theme)==="dark"&&((X=e.settingValue)==null?void 0:X.layout)!=="mix"},{key:"colorDarkTextMenuSelected",title:"菜单文字选中颜色",disabled:((ee=e.settingValue)==null?void 0:ee.theme)==="light"||((P=e.settingValue)==null?void 0:P.theme)==="dark"&&["mix","wide"].includes((ot=e.settingValue)==null?void 0:ot.layout)}]}),g=t.computed(()=>n.value==="header"?b.value:n.value==="sider"?O.value:[]),$=r=>{var d,I;return(I=(d=w.value)==null?void 0:d[n.value])==null?void 0:I[r]};return()=>{var d,I,R;let r;return c(t.createVNode("div",{class:[o,h.value]},[t.createVNode("h3",{class:[`${o}-title`,h.value]},[t.createTextVNode("主题编辑器"),t.createVNode("div",{class:[`${o}-sub-title`,h.value]},[t.createVNode("span",null,[(d=Je.find(C=>{var y;return C.key===((y=e.settingValue)==null?void 0:y.theme)}))==null?void 0:d.title]),t.createVNode("span",{style:{marginInline:"8px"}},[t.createTextVNode("/")]),t.createVNode("span",null,[(I=Qe.find(C=>{var y;return C.key===((y=e.settingValue)==null?void 0:y.layout)}))==null?void 0:I.title])])]),t.createVNode("div",{class:[`${o}-content`,h.value]},[t.createVNode(p.List,{class:`${o}-list ${h.value}`.trim(),split:!1,size:"small",renderItem:({item:C})=>t.createVNode(p.List.Item,{actions:[C.action]},{default:()=>[t.createVNode("span",{style:{opacity:C.disabled?.5:1}},[C.title])]}),dataSource:[{title:"自定义主题色",action:t.createVNode(Ne.GColorPicker,{value:(R=e.settingValue)==null?void 0:R.primaryColor,actions:["confirm"],modes:["rgb"],size:"small",onConfirm:C=>e.onChange&&e.onChange(C,"primaryColor")},null)}]},null),t.createVNode(p.Tabs,{activeKey:n.value,onChange:l},Pt(r=qt.map(C=>t.createVNode(p.TabPane,{key:C.key,tab:C.title},{default:()=>[t.createVNode(p.List,{class:`${o}-list ${h.value}`.trim(),split:!1,size:"small",renderItem:({item:y})=>t.createVNode(p.List.Item,{actions:[y.action]},{default:()=>[t.createVNode("span",{style:{opacity:y.disabled?.5:1}},[y.title])]}),dataSource:g.value.filter(y=>!y.disabled).map(y=>({...y,action:t.createVNode(Ne.GColorPicker,{value:$(y.key),actions:["confirm"],modes:["rgb"],size:"small",onConfirm:f=>e.onChange&&e.onChange(f,n.value,y.key)},null)}))},null)]})))?r:{default:()=>[r]})])]))}}}),ta=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 et(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!t.isVNode(e)}const{preset:tt}=ge,aa=t.defineComponent({name:"OthersChange",props:{prefixCls:D.string,settingValue:Object,onChange:Function},setup(e){const a=K.getPrefixCls({suffixCls:"others",isPor:!0}),{wrapSSR:n,hashId:l}=i.useProStyle("SettingsDrawOthers",[ta],a);return()=>{var c,h,m,w,b,O,g,$,r,d,I,R,C,y;let o;return n(t.createVNode("div",{class:[a,l.value]},[t.createVNode("h3",{class:[`${a}-title`,l.value]},[t.createTextVNode("页面动画设置")]),t.createVNode(p.List,{class:`${a}-list ${l.value}`.trim(),split:!1,size:"small",renderItem:({item:f})=>t.createVNode(p.Tooltip,{title:f.disabled?f.disabledReason:"",placement:"left"},{default:()=>[t.createVNode(p.List.Item,{actions:[f.action]},{default:()=>[t.createVNode("span",{style:{opacity:f.disabled?.5:1}},[f.title])]})]}),dataSource:[{title:"禁用动画",action:t.createVNode(p.Switch,{checked:!((h=(c=e.settingValue)==null?void 0:c.animate)!=null&&h.disabled),size:"small",onChange:f=>{var S;return(S=e.onChange)==null?void 0:S.call(e,"animate","disabled",!f)}},null)},{title:"动画效果",disabled:(w=(m=e.settingValue)==null?void 0:m.animate)==null?void 0:w.disabled,action:t.createVNode(p.Select,{value:(O=(b=e.settingValue)==null?void 0:b.animate)==null?void 0:O.name,style:{width:"100px"},size:"small",disabled:($=(g=e.settingValue)==null?void 0:g.animate)==null?void 0:$.disabled,getPopupContainer:f=>f&&f.parentNode?f.parentNode:f,onChange:f=>{var S;return(S=e.onChange)==null?void 0:S.call(e,"animate","name",f)}},et(o=tt.map(f=>t.createVNode(p.Select.Option,{value:f.name},{default:()=>[f.alias]})))?o:{default:()=>[o]})},{title:"动画方向",disabled:(d=(r=e.settingValue)==null?void 0:r.animate)==null?void 0:d.disabled,action:t.createVNode(p.Select,{value:(R=(I=e.settingValue)==null?void 0:I.animate)==null?void 0:R.direction,style:{width:"100px"},size:"small",dropdownStyle:{minWidth:"120px"},disabled:(y=(C=e.settingValue)==null?void 0:C.animate)==null?void 0:y.disabled,getPopupContainer:f=>f&&f.parentNode?f.parentNode:f,onChange:f=>{var S;return(S=e.onChange)==null?void 0:S.call(e,"animate","direction",f)}},{default:()=>{var f;return[(f=tt.find(S=>{var F,s;return S.name===((s=(F=e.settingValue)==null?void 0:F.animate)==null?void 0:s.name)}))==null?void 0:f.directions.map(S=>t.createVNode(p.Select.Option,{value:S},et(S)?S:{default:()=>[S]}))]}})}]},null)]))}}}),{preset:na}=ge,Se=Object.keys(i.themeConfig).filter(e=>e!=="title"),at={color:"#fff",fontSize:20},oa=[{label:"fixedHeader",title:"固定 Header"},{label:"fixSiderbar",title:"固定侧边菜单"},{label:"splitMenus",title:"自动分割菜单"}],la=[{label:"showTabsBar",title:"多标签"},{label:"fixedMultiTab",title:"固定多标签"}],nt=e=>K.isBrowser()?{...J.pick(i.themeConfig,Se),...e||{}}:J.cloneDeep(i.themeConfig),fe=(e,{slots:a})=>{var n;return t.createVNode("div",{style:{marginBottom:"24px"}},[t.createVNode("h3",{class:`${e.prefixCls}-body-title ${e.hashId}`.trim()},[e.title]),(n=a.default)==null?void 0:n.call(a)])},ia=t.defineComponent({name:"SettingDrawer",props:{themeOnly:Boolean,hideHintAlert:Boolean,hideCopyButton:Boolean,weakmode:Boolean,showProgress:Boolean,settings:{type:Object},colorList:{type:[Boolean,Array],default:()=>i.colorList},onChange:Function,onChangeLayout:Function},emits:["change","changeLayout"],setup(e){const{getPrefixCls:a}=Q(),n=a({suffixCls:"setting-drawer",isPor:!0}),{wrapSSR:l,hashId:o}=i.useProStyle("ProSettingDraw",[Zt],n),c=t.ref(!1),[h,m]=ne.useState(!1),[w,b]=ne.useState(!1),[O,g]=ne.useState(!1),$=t.computed(()=>nt(J.pick(e.settings,Se))),[r,d]=ne.useMergedState(()=>nt(J.pick(e.settings,Se)),{value:$,onChange:e.onChange}),I=t.computed(()=>e.colorList&&K.isArray(e.colorList)?e.colorList:[]),R=t.computed(()=>gt(t.unref(r))),{copy:C,copied:y,isSupported:f}=we.useClipboard();t.watch(h,()=>{c.value||(c.value=!0)});const S=(s,N,M)=>{var W,H;const k=["header","sider"],L={};if(M&&k.includes(s)){L[s]={},L[s][M]=N,e.onChangeLayout&&e.onChangeLayout(J.pick(L,k));return}else s==="animate"?(L[s]={},L[s][M]=N,M==="name"&&(L[s].direction=(H=(W=na.find(z=>z.name===N))==null?void 0:W.directions)==null?void 0:H[0])):L[s]=N;if(s==="colorWeak"){const z=document.querySelector("body");z&&(z.dataset.prosettingdrawer=N===!0?z.style.filter:z.dataset.prosettingdrawer||"none",N===!0&&(z.dataset.prosettingdrawer=z.style.filter),z.style.filter=N===!0?"invert(80%)":z.dataset.prosettingdrawer||"none",N||delete z.dataset.prosettingdrawer)}d(K.merge(t.unref(r),{...Fe(J.omit(L,k))}))},F=()=>{f.value&&C(JSON.stringify(t.unref(r)))};return t.watch(y,s=>{s&&p.message.success("拷贝成功,请到 config/default/themeConfig.js 中替换默认配置")}),()=>l(t.createVNode(p.Drawer,{width:300,closable:!1,open:h.value,rootClassName:`${n} ${o.value} ${h.value&&`${n}-show`} ${!c.value&&`${n}-trantion-none`}`,placement:"right",rootStyle:{zIndex:999},bodyStyle:{padding:0},onClose:()=>m(!1),handle:t.createVNode("div",{class:[`${n}-handle`,o.value],onClick:()=>m(!h.value)},[h.value?t.createVNode(Z.CloseOutlined,{style:at},null):t.createVNode(Z.SettingOutlined,{style:at},null)])},{default:()=>[t.createVNode("div",{class:[`${n}-wrapper`,o.value]},[t.createVNode(rt,null,{default:()=>[t.createVNode("div",{class:[`${n}-content`,o.value]},[t.createVNode(fe,{prefixCls:n,hashId:o.value,title:"整体风格设置"},{default:()=>[t.createVNode(Pe,{hashId:o.value,prefixCls:n,list:Je,value:r.value.theme,configType:"theme",key:"navTheme",onChange:s=>S("theme",s)},null)]}),t.createVNode(fe,{hashId:o.value,title:t.createVNode("span",null,[t.createTextVNode("主题色 "),t.createVNode("a",{style:{fontSize:"12px"},onClick:()=>b(!0)},[t.createTextVNode("更多配置")])]),prefixCls:n},{default:()=>[t.createVNode(Jt,{hashId:o.value,prefixCls:n,colorList:I.value,settingValue:r.value,onChange:(s,N)=>S(N||"primaryColor",s)},null)]}),!e.themeOnly&&t.createVNode(t.Fragment,null,[t.createVNode(p.Divider,null,null),t.createVNode(fe,{hashId:o.value,prefixCls:n,title:"导航模式"},{default:()=>[t.createVNode(Pe,{prefixCls:n,value:t.unref(r).layout,key:"layout",hashId:o.value,configType:"layout",list:Qe,onChange:s=>S("layout",s)},null)]}),oa.map(({label:s,title:N})=>t.createVNode(me,{label:N,disabled:t.unref(R)[s],value:t.unref(r)[s],prefixCls:n,hashId:o.value,valueKey:s,onChange:(M,k)=>S(M,k)},null)),t.createVNode(p.Divider,null,null),t.createVNode(fe,{hashId:o.value,prefixCls:n,title:t.createVNode("span",null,[t.createTextVNode("其他设置 "),t.createVNode("a",{style:{fontSize:"12px"},onClick:()=>g(!0)},[t.createTextVNode("更多配置")])])},{default:()=>[la.map(({label:s,title:N})=>t.createVNode(me,{label:N,disabled:t.unref(R)[s],value:t.unref(r)[s],prefixCls:n,hashId:o.value,valueKey:s,onChange:(M,k)=>S(M,k)},null)),e.weakmode&&t.createVNode(me,{label:"色弱模式",value:t.unref(r).colorWeak,prefixCls:n,hashId:o.value,valueKey:"colorWeak",onChange:(s,N)=>S(s,N)},null),e.showProgress&&t.createVNode(me,{label:"顶部进度条",value:t.unref(r).showProgressBar,prefixCls:n,hashId:o.value,valueKey:"showProgressBar",onChange:(s,N)=>S(s,N)},null)]})]),e.hideHintAlert&&e.hideCopyButton?null:t.createVNode(p.Divider,null,null),e.hideHintAlert?null:t.createVNode(p.Alert,{type:"warning",message:"配置栏只在开发环境用于预览,生产环境不会展现,请拷贝后手动修改配置文件",icon:t.createVNode(Z.NotificationOutlined,null,null),showIcon:!0,style:{marginBottom:"16px"}},null),e.hideCopyButton?null:t.createVNode(p.Button,{onClick:()=>F(),block:!0},{default:()=>[t.createVNode(Z.CopyOutlined,null,null),t.createTextVNode("拷贝设置")]})])]})]),t.createVNode(p.Drawer,{width:320,closable:!1,placement:"right",open:w.value,bodyStyle:{padding:0},onClose:()=>b(!1)},{default:()=>[t.createVNode(ea,{settingValue:r.value,onChange:(s,N,M)=>S(N||"primaryColor",s,M)},null)]}),t.createVNode(p.Drawer,{width:320,closable:!1,placement:"right",open:O.value,bodyStyle:{padding:0},onClose:()=>g(!1)},{default:()=>[t.createVNode(aa,{settingValue:r.value,onChange:(s,N,M)=>S(s,M,N)},null)]})]}))}}),ra=new i.Keyframe("backInLeft",{"0%":{opacity:.7,transform:"translateX(-2000px) scale(0.7)"},"80%":{opacity:.7,transform:"translateX(0px) scale(0.7)"},"100%":{opacity:1,transform:"scale(1)"}}),da=new i.Keyframe("backInRight",{"0%":{opacity:.7,transform:"translateX(2000px) scale(0.7)"},"80%":{opacity:.7,transform:"translateX(0px) scale(0.7)"},"100%":{opacity:1,transform:"scale(1)"}}),ca=new i.Keyframe("backInUp",{"0%":{opacity:.7,transform:"translateY(1200px) scale(0.7)"},"80%":{opacity:.7,transform:"translateY(0px) scale(0.7)"},"100%":{opacity:1,transform:"scale(1)"}}),sa=new i.Keyframe("backInDown",{"0%":{opacity:.7,transform:"translateY(-1200px) scale(0.7)"},"80%":{opacity:.7,transform:"translateY(0px) scale(0.7)"},"100%":{opacity:1,transform:"scale(1)"}}),ua=new i.Keyframe("backOutLeft",{"0%":{opacity:1,transform:"scale(1)"},"20%":{opacity:.7,transform:"translateX(0px) scale(0.7)"},"100%":{opacity:.7,transform:"translateX(-2000px) scale(0.7)"}}),ma=new i.Keyframe("backOutRight",{"0%":{opacity:1,transform:"scale(1)"},"20%":{opacity:.7,transform:"translateX(0px) scale(0.7)"},"100%":{opacity:.7,transform:"translateX(2000px) scale(0.7)"}}),fa=new i.Keyframe("backOutUp",{"0%":{opacity:1,transform:"scale(1)"},"20%":{opacity:.7,transform:"translateY(0px) scale(0.7)"},"100%":{opacity:.7,transform:"translateY(-700px) scale(0.7)"}}),ha=new i.Keyframe("backOutDown",{"0%":{opacity:1,transform:"scale(1)"},"20%":{opacity:.7,transform:"translateY(0px) scale(0.7)"},"100%":{opacity:.7,transform:"translateY(700px) scale(0.7)"}}),ga=()=>({"&.backInLeft":{animationFillMode:"both",animationName:ra},"&.backInRight":{animationFillMode:"both",animationName:da},"&.backInUp":{animationFillMode:"both",animationName:ca},"&.backInDown":{animationFillMode:"both",animationName:sa}}),ya=()=>({"&.backOutLeft":{animationFillMode:"both",animationName:ua},"&.backOutRight":{animationFillMode:"both",animationName:ma},"&.backOutUp":{animationFillMode:"both",animationName:fa},"&.backOutDown":{animationFillMode:"both",animationName:ha}}),ba=new i.Keyframe("bounceIn",{"from,20%,40%,60%,80%,to":{animationTimingFunction:"cubic-bezier(0.215, 0.61, 0.355, 1)"},"0%":{opacity:0,transform:"scale3d(0.3, 0.3, 0.3)"},"20%":{transform:"scale3d(1.1, 1.1, 1.1)"},"40%":{transform:"scale3d(0.9, 0.9, 0.9)"},"60%":{transform:"scale3d(1.03, 1.03, 1.03)"},"80%":{transform:"scale3d(0.97, 0.97, 0.97)"},to:{opacity:1,transform:"scale3d(1, 1, 1)"}}),pa=new i.Keyframe("bounceInLeft",{"from,60%,75%,90%,to":{animationTimingFunction:"cubic-bezier(0.215, 0.61, 0.355, 1)"},"0%":{opacity:0,transform:"translate3d(-3000px, 0, 0) scaleX(3)"},"60%":{opacity:1,transform:"translate3d(25px, 0, 0) scaleX(1)"},"75%":{transform:"translate3d(-10px, 0, 0) scaleX(0.98)"},"90%":{transform:"translate3d(5px, 0, 0) scaleX(0.995)"},to:{transform:"translate3d(0, 0, 0)"}}),xa=new i.Keyframe("bounceInRight",{"from,60%,75%,90%,to":{animationTimingFunction:"cubic-bezier(0.215, 0.61, 0.355, 1)"},from:{opacity:0,transform:"translate3d(3000px, 0, 0) scaleX(3)"},"60%":{opacity:1,transform:"translate3d(-25px, 0, 0) scaleX(1)"},"75%":{transform:"translate3d(10px, 0, 0) scaleX(0.98)"},"90%":{transform:"translate3d(-5px, 0, 0) scaleX(0.995)"},to:{transform:"translate3d(0, 0, 0)"}}),Ca=new i.Keyframe("bounceInDown",{"from,60%,75%,90%,to":{animationTimingFunction:"cubic-bezier(0.215, 0.61, 0.355, 1)"},"0%":{opacity:0,transform:"translate3d(0, -3000px, 0) scaleY(3)"},"60%":{opacity:1,transform:"translate3d(0, 25px, 0) scaleY(0.9)"},"75%":{transform:"translate3d(0, -10px, 0) scaleY(0.95)"},"90%":{transform:"translate3d(0, 5px, 0) scaleY(0.985)"},to:{transform:"translate3d(0, 0, 0)"}}),Sa=new i.Keyframe("bounceInUp",{"from,60%,75%,90%,to":{animationTimingFunction:"cubic-bezier(0.215, 0.61, 0.355, 1)"},from:{opacity:0,transform:"translate3d(0, 3000px, 0) scaleY(5)"},"60%":{opacity:1,transform:"translate3d(0, -20px, 0) scaleY(0.9)"},"75%":{transform:"translate3d(0, 10px, 0) scaleY(0.95)"},"90%":{transform:"translate3d(0, -5px, 0) scaleY(0.985)"},to:{transform:"translate3d(0, 0, 0)"}}),wa=new i.Keyframe("bounceOut",{"20%":{transform:"scale3d(0.9, 0.9, 0.9)"},"50%,55%":{transform:"scale3d(1.1, 1.1, 1.1)"},"60%":{transform:"scale3d(1.03, 1.03, 1.03)"},to:{opacity:0,transform:"scale3d(0.3, 0.3, 0.3)"}}),Na=new i.Keyframe("bounceOutLeft",{"20%":{opacity:1,transform:"translate3d(20px, 0, 0) scaleX(0.9)"},to:{opacity:0,transform:"translate3d(-2000px, 0, 0) scaleX(2)"}}),Ia=new i.Keyframe("bounceOutRight",{"20%":{opacity:1,transform:"translate3d(-20px, 0, 0) scaleX(0.9)"},to:{opacity:0,transform:"translate3d(2000px, 0, 0) scaleX(2)"}}),Ma=new i.Keyframe("bounceOutDown",{"20%":{transform:"translate3d(0, 10px, 0) scaleY(0.985)"},"40%,45%":{opacity:1,transform:"translate3d(0, -20px, 0) scaleY(0.9)"},to:{opacity:0,transform:"translate3d(0, 2000px, 0) scaleY(3)"}}),ka=new i.Keyframe("bounceOutUp",{"20%":{transform:"translate3d(0, -10px, 0) scaleY(0.985)"},"40%,45%":{opacity:1,transform:"translate3d(0, 20px, 0) scaleY(0.9)"},to:{opacity:0,transform:"translate3d(0, -2000px, 0) scaleY(3)"}}),Oa=()=>({"&.bounceIn":{animationFillMode:"both",animationDuration:`${.3*.75}s !important`,animationName:ba},"&.bounceInLeft":{animationFillMode:"both",animationName:pa},"&.bounceInRight":{animationFillMode:"both",animationName:xa},"&.bounceInDown":{animationFillMode:"both",animationName:Ca},"&.bounceInUp":{animationFillMode:"both",animationName:Sa}}),Ra=()=>({"&.bounceOut":{animationFillMode:"both",animationDuration:`${.3*.75}s !important`,animationName:wa},"&.bounceOutLeft":{animationFillMode:"both",animationName:Na},"&.bounceOutRight":{animationFillMode:"both",animationName:Ia},"&.bounceOutDown":{animationFillMode:"both",animationName:Ma},"&.bounceOutUp":{animationFillMode:"both",animationName:ka}}),Ba=new i.Keyframe("fadeIn",{from:{opacity:0},to:{opacity:1}}),Va=new i.Keyframe("fadeInLeft",{from:{opacity:0,transform:"translate3d(-100%, 0, 0)"},to:{opacity:1,transform:"translate3d(0, 0, 0)"}}),Fa=new i.Keyframe("fadeInRight",{from:{opacity:0,transform:"translate3d(100%, 0, 0)"},to:{opacity:1,transform:"translate3d(0, 0, 0)"}}),Ta=new i.Keyframe("fadeInDown",{from:{opacity:0,transform:"translate3d(0, -100%, 0)"},to:{opacity:1,transform:"translate3d(0, 0, 0)"}}),$a=new i.Keyframe("fadeInUp",{from:{opacity:0,transform:"translate3d(0, 100%, 0)"},to:{opacity:1,transform:"translate3d(0, 0, 0)"}}),La=new i.Keyframe("fadeInDownBig",{from:{opacity:0,transform:"translate3d(0, -2000px, 0)"},to:{opacity:1,transform:"translate3d(0, 0, 0)"}}),Ka=new i.Keyframe("fadeInUpBig",{from:{opacity:0,transform:"translate3d(0, 2000px, 0)"},to:{opacity:1,transform:"translate3d(0, 0, 0)"}}),Da=new i.Keyframe("fadeInLeftBig",{from:{opacity:0,transform:"translate3d(-2000px, 0, 0)"},to:{opacity:1,transform:"translate3d(0, 0, 0)"}}),za=new i.Keyframe("fadeInRightBig",{from:{opacity:0,transform:"translate3d(2000px, 0, 0)"},to:{opacity:1,transform:"translate3d(0, 0, 0)"}}),Ha=new i.Keyframe("fadeInTopLeft",{from:{opacity:0,transform:"translate3d(-100%, -100%, 0)"},to:{opacity:1,transform:"translate3d(0, 0, 0)"}}),ja=new i.Keyframe("fadeInBottomRight",{from:{opacity:0,transform:"translate3d(100%, 100%, 0)"},to:{opacity:1,transform:"translate3d(0, 0, 0)"}}),Wa=new i.Keyframe("fadeInTopRight",{from:{opacity:0,transform:"translate3d(100%, -100%, 0)"},to:{opacity:1,transform:"translate3d(0, 0, 0)"}}),Aa=new i.Keyframe("fadeInBottomLeft",{from:{opacity:0,transform:"translate3d(-100%, 100%, 0)"},to:{opacity:1,transform:"translate3d(0, 0, 0)"}}),va=new i.Keyframe("fadeOut",{from:{opacity:1},to:{opacity:0}}),Ua=new i.Keyframe("fadeOutLeft",{from:{opacity:1},to:{opacity:0,transform:"translate3d(-100%, 0, 0)"}}),Xa=new i.Keyframe("fadeOutRight",{from:{opacity:1},to:{opacity:0,transform:"translate3d(100%, 0, 0)"}}),Ea=new i.Keyframe("fadeOutDown",{from:{opacity:1},to:{opacity:0,transform:"translate3d(0, 100%, 0)"}}),Ya=new i.Keyframe("fadeOutUp",{from:{opacity:1},to:{opacity:0,transform:"translate3d(0, -100%, 0)"}}),_a=new i.Keyframe("fadeOutDownBig",{from:{opacity:1},to:{opacity:0,transform:"translate3d(0, 2000px, 0)"}}),Ga=new i.Keyframe("fadeOutUpBig",{from:{opacity:1},to:{opacity:0,transform:"translate3d(0, -2000px, 0)"}}),qa=new i.Keyframe("fadeOutLeftBig",{from:{opacity:1},to:{opacity:0,transform:"translate3d(-2000px, 0, 0)"}}),Za=new i.Keyframe("fadeOutRightBig",{from:{opacity:1},to:{opacity:0,transform:"translate3d(2000px, 0, 0)"}}),Ja=new i.Keyframe("fadeOutTopLeft",{from:{opacity:1,transform:"translate3d(0, 0, 0)"},to:{opacity:0,transform:"translate3d(-100%, -100%, 0)"}}),Qa=new i.Keyframe("fadeOutBottomRight",{from:{opacity:1,transform:"translate3d(0, 0, 0)"},to:{opacity:0,transform:"translate3d(100%, 100%, 0)"}}),Pa=new i.Keyframe("fadeOutTopRight",{from:{opacity:1,transform:"translate3d(0, 0, 0)"},to:{opacity:0,transform:"translate3d(100%, -100%, 0)"}}),en=new i.Keyframe("fadeOutBottomLeft",{from:{opacity:1,transform:"translate3d(0, 0, 0)"},to:{opacity:0,transform:"translate3d(-100%, 100%, 0)"}}),tn=()=>({"&.fadeIn":{animationFillMode:"both",animationName:Ba},"&.fadeInLeft":{animationFillMode:"both",animationName:Va},"&.fadeInRight":{animationFillMode:"both",animationName:Fa},"&.fadeInDown":{animationFillMode:"both",animationName:Ta},"&.fadeInUp":{animationFillMode:"both",animationName:$a},"&.fadeInLeftBig":{animationFillMode:"both",animationName:Da},"&.fadeInRightBig":{animationFillMode:"both",animationName:za},"&.fadeInUpBig":{animationFillMode:"both",animationName:Ka},"&.fadeInDownBig":{animationFillMode:"both",animationName:La},"&.fadeInTopLeft":{animationFillMode:"both",animationName:Ha},"&.fadeInBottomRight":{animationFillMode:"both",animationName:ja},"&.fadeInTopRight":{animationFillMode:"both",animationName:Wa},"&.fadeInBottomLeft":{animationFillMode:"both",animationName:Aa}}),an=()=>({"&.fadeOut":{animationFillMode:"both",animationName:va},"&.fadeOutLeft":{animationFillMode:"both",animationName:Ua},"&.fadeOutRight":{animationFillMode:"both",animationName:Xa},"&.fadeOutDown":{animationFillMode:"both",animationName:Ea},"&.fadeOutUp":{animationFillMode:"both",animationName:Ya},"&.fadeOutDownBig":{animationFillMode:"both",animationName:_a},"&.fadeOutUpBig":{animationFillMode:"both",animationName:Ga},"&.fadeOutLeftBig":{animationFillMode:"both",animationName:qa},"&.fadeOutRightBig":{animationFillMode:"both",animationName:Za},"&.fadeOutTopLeft":{animationFillMode:"both",animationName:Ja},"&.fadeOutBottomRight":{animationFillMode:"both",animationName:Qa},"&.fadeOutTopRight":{animationFillMode:"both",animationName:Pa},"&.fadeOutBottomLeft":{animationFillMode:"both",animationName:en}}),nn=new i.Keyframe("flipInX",{from:{opacity:0,animationTimingFunction:"ease-in",transform:"perspective(400px) rotate3d(1, 0, 0, 90deg)"},"40%":{animationTimingFunction:"ease-in",transform:"perspective(400px) rotate3d(1, 0, 0, -20deg)"},"60%":{opacity:1,transform:"perspective(400px) rotate3d(1, 0, 0, 10deg)"},"80%":{transform:"perspective(400px) rotate3d(1, 0, 0, -5deg)"},to:{transform:"perspective(400px)"}}),on=new i.Keyframe("flipInY",{from:{opacity:0,animationTimingFunction:"ease-in",transform:"perspective(400px) rotate3d(0, 1, 0, 90deg)"},"40%":{animationTimingFunction:"ease-in",transform:"perspective(400px) rotate3d(0, 1, 0, -20deg)"},"60%":{opacity:1,transform:"perspective(400px) rotate3d(0, 1, 0, 10deg)"},"80%":{transform:"perspective(400px) rotate3d(0, 1, 0, -5deg)"},to:{transform:"perspective(400px)"}}),ln=new i.Keyframe("flipOutX",{from:{transform:"perspective(400px)"},"40%":{opacity:1,transform:"perspective(400px) rotate3d(1, 0, 0, -20deg)"},to:{opacity:0,transform:"perspective(400px) rotate3d(1, 0, 0, 90deg)"}}),rn=new i.Keyframe("flipOutY",{from:{transform:"perspective(400px)"},"40%":{opacity:1,transform:"perspective(400px) rotate3d(0, 1, 0, -15deg)"},to:{opacity:0,transform:"perspective(400px) rotate3d(0, 1, 0, 90deg)"}}),dn=()=>({"&.flipInX":{animationFillMode:"both",backfaceVisibility:"visible !important",animationName:nn},"&.flipInY":{animationFillMode:"both",backfaceVisibility:"visible !important",animationName:on}}),cn=()=>({"&.flipOutX":{animationFillMode:"both",backfaceVisibility:"visible !important",animationDuration:`${.3*.75}s !important`,animationName:ln},"&.flipOutY":{animationFillMode:"both",backfaceVisibility:"visible !important",animationDuration:`${.3*.75}s !important`,animationName:rn}}),sn=new i.Keyframe("lightSpeedInLeft",{from:{opacity:0,transform:"translate3d(-100%, 0, 0) skewX(30deg)"},"60%":{opacity:1,transform:"skewX(-20deg)"},"80%":{transform:"skewX(5deg)"},to:{transform:"translate3d(0, 0, 0)"}}),un=new i.Keyframe("lightSpeedInRight",{from:{opacity:0,transform:"translate3d(100%, 0, 0) skewX(-30deg)"},"60%":{opacity:1,transform:"skewX(20deg)"},"80%":{transform:"skewX(-5deg)"},to:{transform:"translate3d(0, 0, 0)"}}),mn=new i.Keyframe("lightSpeedOutLeft",{from:{opacity:1},to:{opacity:0,transform:"translate3d(-100%, 0, 0) skewX(-30deg)"}}),fn=new i.Keyframe("lightSpeedOutRight",{from:{opacity:1},to:{opacity:0,transform:"translate3d(100%, 0, 0) skewX(30deg)"}}),hn=()=>({"&.lightSpeedInLeft":{animationFillMode:"both",animationTimingFunction:"ease-out",animationName:sn},"&.lightSpeedInRight":{animationFillMode:"both",animationTimingFunction:"ease-out",animationName:un}}),gn=()=>({"&.lightSpeedOutLeft":{animationFillMode:"both",animationTimingFunction:"ease-in",animationName:mn},"&.lightSpeedOutRight":{animationFillMode:"both",animationTimingFunction:"ease-in",animationName:fn}}),yn=new i.Keyframe("rotateIn",{from:{opacity:0,transform:"rotate3d(0, 0, 1, -200deg)"},to:{opacity:1,transform:"translate3d(0, 0, 0)"}}),bn=new i.Keyframe("rotateInDownLeft",{from:{opacity:0,transform:"rotate3d(0, 0, 1, -45deg)"},to:{opacity:1,transform:"translate3d(0, 0, 0)"}}),pn=new i.Keyframe("rotateInDownRight",{from:{opacity:0,transform:"rotate3d(0, 0, 1, 45deg)"},to:{opacity:1,transform:"translate3d(0, 0, 0)"}}),xn=new i.Keyframe("rotateInUpLeft",{from:{opacity:0,transform:"rotate3d(0, 0, 1, 45deg)"},to:{opacity:1,transform:"translate3d(0, 0, 0)"}}),Cn=new i.Keyframe("rotateInUpRight",{from:{opacity:0,transform:"rotate3d(0, 0, 1, -90deg)"},to:{opacity:1,transform:"translate3d(0, 0, 0)"}}),Sn=new i.Keyframe("rotateOut",{from:{opacity:1},to:{opacity:0,transform:"rotate3d(0, 0, 1, 200deg)"}}),wn=new i.Keyframe("rotateOutDownLeft",{from:{opacity:1},to:{opacity:0,transform:"rotate3d(0, 0, 1, 45deg)"}}),Nn=new i.Keyframe("rotateOutDownRight",{from:{opacity:1},to:{opacity:0,transform:"rotate3d(0, 0, 1, -45deg)"}}),In=new i.Keyframe("rotateOutUpLeft",{from:{opacity:1},to:{opacity:0,transform:"rotate3d(0, 0, 1, -45deg)"}}),Mn=new i.Keyframe("rotateOutUpRight",{from:{opacity:1},to:{opacity:0,transform:"rotate3d(0, 0, 1, 90deg)"}}),kn=()=>({"&.rotateIn":{animationFillMode:"both",transformOrigin:"center",animationName:yn},"&.rotateInDownLeft":{animationFillMode:"both",transformOrigin:"left bottom",animationName:bn},"&.rotateInDownRight":{animationFillMode:"both",transformOrigin:"right bottom",animationName:pn},"&.rotateInUpLeft":{animationFillMode:"both",transformOrigin:"left bottom",animationName:xn},"&.rotateInUpRight":{animationFillMode:"both",transformOrigin:"right bottom",animationName:Cn}}),On=()=>({"&.rotateOut":{animationFillMode:"both",transformOrigin:"center",animationName:Sn},"&.rotateOutDownLeft":{animationFillMode:"both",transformOrigin:"left bottom",animationName:wn},"&.rotateOutDownRight":{animationFillMode:"both",transformOrigin:"right bottom",animationName:Nn},"&.rotateOutUpLeft":{animationFillMode:"both",transformOrigin:"left bottom",animationName:In},"&.rotateOutUpRight":{animationFillMode:"both",transformOrigin:"right bottom",animationName:Mn}}),Rn=new i.Keyframe("rollIn",{from:{opacity:0,transform:"translate3d(-100%, 0, 0) rotate3d(0, 0, 1, -120deg)"},to:{opacity:1,transform:"translate3d(0, 0, 0)"}}),Bn=new i.Keyframe("rollOut",{from:{opacity:1},to:{opacity:0,transform:"translate3d(100%, 0, 0) rotate3d(0, 0, 1, 120deg)"}}),Vn=()=>({"&.rollIn":{animationFillMode:"both",animationName:Rn}}),Fn=()=>({"&.rollOut":{animationFillMode:"both",animationName:Bn}}),Tn=new i.Keyframe("zoomIn",{from:{opacity:0,transform:"scale3d(0.3, 0.3, 0.3)"},"50%":{opacity:1}}),$n=new i.Keyframe("zoomInDown",{from:{opacity:0,transform:"scale3d(0.1, 0.1, 0.1) translate3d(0, -1000px, 0)",animationTimingFunction:"cubic-bezier(0.55, 0.055, 0.675, 0.19)"},"60%":{opacity:1,transform:"scale3d(0.475, 0.475, 0.475) translate3d(0, 60px, 0)",animationTimingFunction:"cubic-bezier(0.175, 0.885, 0.32, 1)"}}),Ln=new i.Keyframe("zoomInLeft",{from:{opacity:0,transform:"scale3d(0.1, 0.1, 0.1) translate3d(-1000px, 0, 0)",animationTimingFunction:"cubic-bezier(0.55, 0.055, 0.675, 0.19)"},"60%":{opacity:1,transform:"scale3d(0.475, 0.475, 0.475) translate3d(10px, 0, 0)",animationTimingFunction:"cubic-bezier(0.175, 0.885, 0.32, 1)"}}),Kn=new i.Keyframe("zoomInRight",{from:{opacity:0,transform:"scale3d(0.1, 0.1, 0.1) translate3d(1000px, 0, 0)",animationTimingFunction:"cubic-bezier(0.55, 0.055, 0.675, 0.19)"},"60%":{opacity:1,transform:"scale3d(0.475, 0.475, 0.475) translate3d(-10px, 0, 0)",animationTimingFunction:"cubic-bezier(0.175, 0.885, 0.32, 1)"}}),Dn=new i.Keyframe("zoomInUp",{from:{opacity:0,transform:"scale3d(0.1, 0.1, 0.1) translate3d(0, 1000px, 0)",animationTimingFunction:"cubic-bezier(0.55, 0.055, 0.675, 0.19)"},"60%":{opacity:1,transform:"scale3d(0.475, 0.475, 0.475) translate3d(0, -60px, 0)",animationTimingFunction:"cubic-bezier(0.175, 0.885, 0.32, 1)"}}),zn=new i.Keyframe("zoomOut",{from:{opacity:1},"50%":{opacity:0,transform:"scale3d(0.3, 0.3, 0.3)"},to:{opacity:0}}),Hn=new i.Keyframe("zoomOutDown",{"40%":{opacity:1,transform:"scale3d(0.475, 0.475, 0.475) translate3d(0, -60px, 0)",animationTimingFunction:"cubic-bezier(0.55, 0.055, 0.675, 0.19)"},to:{opacity:0,transform:"scale3d(0.1, 0.1, 0.1) translate3d(0, 2000px, 0)",animationTimingFunction:"cubic-bezier(0.175, 0.885, 0.32, 1)"}}),jn=new i.Keyframe("zoomOutLeft",{"40%":{opacity:1,transform:"scale3d(0.475, 0.475, 0.475) translate3d(42px, 0, 0)"},to:{opacity:0,transform:"scale(0.1) translate3d(-2000px, 0, 0)"}}),Wn=new i.Keyframe("zoomOutRight",{"40%":{opacity:1,transform:"scale3d(0.475, 0.475, 0.475) translate3d(-42px, 0, 0)"},to:{opacity:0,transform:"scale(0.1) translate3d(2000px, 0, 0)"}}),An=new i.Keyframe("zoomOutUp",{"40%":{opacity:1,transform:"scale3d(0.475, 0.475, 0.475) translate3d(0, 60px, 0)",animationTimingFunction:"cubic-bezier(0.55, 0.055, 0.675, 0.19)"},to:{opacity:0,transform:"scale3d(0.1, 0.1, 0.1) translate3d(0, -2000px, 0)",animationTimingFunction:"cubic-bezier(0.175, 0.885, 0.32, 1)"}}),vn=()=>({"&.zoomIn":{animationFillMode:"both",animationName:Tn},"&.zoomInDown":{animationFillMode:"both",animationName:$n},"&.zoomInLeft":{animationFillMode:"both",animationName:Ln},"&.zoomInRight":{animationFillMode:"both",animationName:Kn},"&.zoomInUp":{animationFillMode:"both",animationName:Dn}}),Un=()=>({"&.zoomOut":{animationFillMode:"both",animationName:zn},"&.zoomOutDown":{animationFillMode:"both",transformOrigin:"center bottom",animationName:Hn},"&.zoomOutLeft":{animationFillMode:"both",transformOrigin:"left center",animationName:jn},"&.zoomOutRight":{animationFillMode:"both",transformOrigin:"right center",animationName:Wn},"&.zoomOutUp":{animationFillMode:"both",transformOrigin:"center bottom",animationName:An}}),Xn=new i.Keyframe("slideInDown",{from:{transform:"translate3d(0, -100%, 0)",visibility:"visible"},to:{transform:"translate3d(0, 0, 0)"}}),En=new i.Keyframe("slideInLeft",{from:{transform:"translate3d(-100%, 0, 0)",visibility:"visible"},to:{transform:"translate3d(0, 0, 0)"}}),Yn=new i.Keyframe("slideInRight",{from:{transform:"translate3d(100%, 0, 0)",visibility:"visible"},to:{transform:"translate3d(0, 0, 0)"}}),_n=new i.Keyframe("slideInUp",{from:{transform:"translate3d(0, 100%, 0)",visibility:"visible"},to:{transform:"translate3d(0, 0, 0)"}}),Gn=new i.Keyframe("slideOutDown",{from:{transform:"translate3d(0, 0, 0)"},to:{transform:"translate3d(0, 100%, 0)",visibility:"hidden"}}),qn=new i.Keyframe("slideOutLeft",{from:{transform:"translate3d(0, 0, 0)"},to:{transform:"translate3d(-100%, 0, 0)",visibility:"hidden"}}),Zn=new i.Keyframe("slideOutRight",{from:{transform:"translate3d(0, 0, 0)"},to:{transform:"translate3d(100%, 0, 0)",visibility:"hidden"}}),Jn=new i.Keyframe("slideOutUp",{from:{transform:"translate3d(0, 0, 0)"},to:{transform:"translate3d(0, -100%, 0)",visibility:"hidden"}}),Qn=()=>({"&.slideInDown":{animationFillMode:"both",animationName:Xn},"&.slideInLeft":{animationFillMode:"both",animationName:En},"&.slideInRight":{animationFillMode:"both",animationName:Yn},"&.slideInUp":{animationFillMode:"both",animationName:_n}}),Pn=()=>({"&.slideOutDown":{animationFillMode:"both",animationName:Gn},"&.slideOutLeft":{animationFillMode:"both",animationName:qn},"&.slideOutRight":{animationFillMode:"both",animationName:Zn},"&.slideOutUp":{animationFillMode:"both",animationName:Jn}}),eo=e=>({[e.componentCls]:{"&-enter":{background:"transparent",animationDuration:".3s !important",...ga(),...Oa(),...tn(),...dn(),...hn(),...kn(),...Vn(),...vn(),...Qn()},"&-leave":{display:"none",background:"transparent",animationDuration:".3s !important",...ya(),...Ra(),...an(),...cn(),...gn(),...On(),...Fn(),...Un(),...Pn()}}});function to(e){return i.useStyle("LayoutPageTranstion",a=>{const n=i.mergeToken(a);return[eo(n)]},e)}const ao=t.defineComponent({name:"PageTranstion",props:{disabled:{type:Boolean,default:!1},reverse:{type:Boolean,default:!0},name:{type:String,default:"bounce"},direction:String},setup(e,{slots:a}){const n=K.getPrefixCls({suffixCls:"page-transtion",isPor:!0}),{wrapSSR:l,hashId:o}=to(n),c=t.computed(()=>[m(!1),`${n}-enter`,o.value].join(" ")),h=t.computed(()=>[m(!0),`${n}-leave`,o.value].join(" ")),m=b=>{const O=ge.preset.find(r=>e.name==r.name);if(O==null)return"";let g="";e.direction==null?g=O.directions[0]:g=O.directions.find(r=>r==e.direction)||"",g=g==null||g==="default"?"":g,g!=""&&(g=b&&e.reverse?w(g,O.directions):g,g=g[0].toUpperCase()+g.substring(1));const $=b?"Out":"In";return O.name+$+g},w=(b,O)=>{if(b.length==0||b=="x"||b=="y")return b;let g=O.indexOf(b);return g=g%2==1?g-1:g+1,O[g]};return()=>{var b;return e.disabled?(b=a.default)==null?void 0:b.call(a):l(t.createVNode(t.Transition,{enterActiveClass:c.value,leaveActiveClass:h.value},{default:()=>{var O;return[(O=a.default)==null?void 0:O.call(a)]}}))}}});V.BaseMenu=be,V.DefaultHeader=Ge,V.GProLayout=_t,V.GlobalFooter=se,V.PageContainer=Bt,V.PageLoading=Ie,V.PageTranstion=ao,V.SettingDrawer=ia,V.SiderMenuWrapper=de,V.WrapContent=ue,V.baseMenuProps=oe,V.clearMenuItem=Oe,V.createContext=Te,V.createRouteContext=Le,V.flatMap=Re,V.getMatchedList=ht,V.getMenuData=Gt,V.getMenuFirstChildren=Be,V.getMenuFirstLastChildPath=Ve,V.handleThemeConfig=Fe,V.hanlePathKey=v,V.provideProLayoutContext=Ke,V.useContext=$e,V.useProLayoutContext=Q,Object.defineProperty(V,Symbol.toStringTag,{value:"Module"})});
|
|
1
|
+
(function(V,t){typeof exports=="object"&&typeof module<"u"?t(exports,require("vue"),require("ant-design-vue"),require("@gx-design-vue/pro-app"),require("vue-router"),require("@ant-design/icons-vue"),require("@gx-design-vue/pro-provider"),require("vue-types"),require("lodash-es"),require("@gx-design-vue/pro-watermark"),require("@gx-design-vue/pro-utils"),require("@gx-design-vue/pro-hooks"),require("@vueuse/core"),require("@gx-design-vue/scrollbar"),require("@gx-design-vue/color-picker")):typeof define=="function"&&define.amd?define(["exports","vue","ant-design-vue","@gx-design-vue/pro-app","vue-router","@ant-design/icons-vue","@gx-design-vue/pro-provider","vue-types","lodash-es","@gx-design-vue/pro-watermark","@gx-design-vue/pro-utils","@gx-design-vue/pro-hooks","@vueuse/core","@gx-design-vue/scrollbar","@gx-design-vue/color-picker"],t):(V=typeof globalThis<"u"?globalThis:V||self,t(V.ProLayout={},V.vue,V.antDesignVue,V.proApp,V.vueRouter,V.iconsVue,V.ProConfigProvider,V.vueTypes,V.lodashEs,V.proWatermark,V.proUtils,V.proHooks,V.core,V.GScrollbars,V.colorPicker))})(this,function(V,t,p,he,ie,Z,i,lt,J,it,K,ne,we,rt,Ne){"use strict";const Ie=t.defineComponent({name:"PageLoading",props:{...p.Spin.props},setup(e){const{indicator:a}=he.useProAppContext();return t.createVNode("div",{style:{paddingTop:"100px",textAlign:"center"}},[t.createVNode(p.Spin,t.mergeProps(e,{indicator:a==null?void 0:a.value}),null)])}}),D=lt.createTypes({func:void 0,bool:void 0,string:void 0,number:void 0,array:void 0,object:void 0,integer:void 0});D.extend([{name:"looseBool",getter:!0,type:Boolean,default:void 0},{name:"style",getter:!0,type:[String,Object],default:void 0},{name:"VueNode",getter:!0,type:null}]);const te={theme:{type:String,default:i.themeConfig.theme},layout:{type:String,default:i.themeConfig.layout},wideWidth:{type:Number,default:i.themeConfig.wideWidth},splitMenus:{type:Boolean,default:i.themeConfig.splitMenus},fixedMultiTab:{type:Boolean,default:i.themeConfig.fixedMultiTab},showProgressBar:{type:Boolean,default:i.themeConfig.showProgressBar},fixedHeader:{type:Boolean,default:i.themeConfig.fixedHeader},fixSiderbar:{type:Boolean,default:i.themeConfig.fixSiderbar},showTabsBar:{type:Boolean,default:i.themeConfig.showTabsBar},showFullScreen:{type:Boolean,default:i.themeConfig.showFullScreen},autoHideHeader:{type:Boolean,default:i.themeConfig.autoHideHeader},headerHeight:{type:Number,default:i.themeConfig.headerHeight},title:{type:String,default:i.themeConfig.title},iconfontUrl:{type:String,default:i.themeConfig.iconfontUrl},animate:{type:Object,default:i.themeConfig.animate},primaryColor:{type:String,default:i.themeConfig.primaryColor}},ae={renderKey:D.string.def("menuHeaderRender"),title:te.title,layout:te.layout,logo:{type:[Object,String,Function],default:()=>{}},logoStyle:{type:Object,default:()=>{}},logoDirection:{type:String,default:"horizontal"},drawer:D.looseBool,collapsed:D.looseBool,menuHeaderRender:{type:[Object,Function],default:()=>{}},onMenuHeaderClick:Function},oe={...te,mode:{type:String,default:"inline"},menuData:{type:Array,default:()=>[]},theme:{type:String,default:"dark"},layout:{type:String,default:"mix"},collapsed:{type:Boolean,default:()=>!1},openKeys:{type:[Array,Boolean],default:()=>[]},selectedKeys:{type:Array,default:()=>[]},menuProps:{type:Object,default:()=>null},menuItemRender:{type:[Function,Boolean],default:()=>{}},subMenuItemRender:{type:[Function,Boolean],default:()=>{}},onClick:[Function,Object],onOpenKeys:{type:Function},onSelect:{type:Function}},_={...te,...oe,menuLoading:D.looseBool,logo:ae.logo,logoStyle:ae.logoStyle,logoDirection:ae.logoDirection,siderWidth:D.number.def(208),headerHeight:D.number.def(48),collapsedWidth:D.number.def(48),links:{type:[Function,Object,Array],default:()=>{}},menuHeaderRender:{type:[Function,Object],default:()=>{}},menuFooterRender:{type:[Function,Object,Boolean],default:()=>!1},menuContentRender:{type:[Function,Object,Boolean],default:()=>!1},menuExtraRender:{type:[Function,Object,Boolean],default:()=>!1},collapsedButtonRender:{type:[Function,Object,Boolean],default:()=>{}},breakpoint:{type:[Object,Boolean],default:()=>!1},isMobile:D.looseBool,matchMenuKeys:{type:Array,default:()=>[]},onMenuHeaderClick:D.func,onMenuClick:D.func,onCollapse:{type:Function}},dt=/(((^https?:(?:\/\/)?)(?:[-;:&=\+\$,\w]+@)?[A-Za-z0-9.-]+(?::\d+)?|(?:www.|[-;:&=\+\$,\w]+@)[A-Za-z0-9.-]+)((?:\/[\+~%\/.\w-_]*)?\??(?:[-\+=&;%@.\w_]*)#?(?:[\w]*))?)$/,Me=e=>dt.test(e);function ct(e){return/\w.(png|jpg|jpeg|svg|webp|gif|bmp)$/i.test(e)}function ke(e,a,n,l){var c,h,m,w,b,O,g,$,r,d,I,R,C,y,f,S,F,s,N,M,k,L,W,H,z,A,E,Y,U,q,u,x,B,T;const o={...e};return n==="light"?(o.colorItemBg=(h=(c=a.layout)==null?void 0:c[l])==null?void 0:h.colorBgMenu,o.colorSubItemBg=(w=(m=a.layout)==null?void 0:m[l])==null?void 0:w.colorSubItemBg,o.colorItemBgSelected=(O=(b=a.layout)==null?void 0:b[l])==null?void 0:O.colorBgMenuItemSelected,o.colorItemBgSelectedHorizontal=($=(g=a.layout)==null?void 0:g[l])==null?void 0:$.colorBgMenuItemSelected,o.colorItemText=(d=(r=a.layout)==null?void 0:r[l])==null?void 0:d.colorTextMenu,o.colorItemTextHover=(R=(I=a.layout)==null?void 0:I[l])==null?void 0:R.colorTextMenuHover,o.colorItemTextSelected=(y=(C=a.layout)==null?void 0:C[l])==null?void 0:y.colorTextMenuSelected,o.colorItemTextSelectedHorizontal=(S=(f=a.layout)==null?void 0:f[l])==null?void 0:S.colorTextMenuSelected,l==="sider"&&(o.colorItemBgHover=(s=(F=a.layout)==null?void 0:F[l])==null?void 0:s.colorBgMenuItemHover)):n==="dark"&&(o.colorItemBg=(M=(N=a.layout)==null?void 0:N[l])==null?void 0:M.colorDarkBgMenu,o.colorSubItemBg=(L=(k=a.layout)==null?void 0:k[l])==null?void 0:L.colorDarkSubItemBg,o.colorItemBgSelected=(H=(W=a.layout)==null?void 0:W[l])==null?void 0:H.colorDarkBgMenuItemSelected,o.colorItemBgSelectedHorizontal=(A=(z=a.layout)==null?void 0:z[l])==null?void 0:A.colorDarkBgMenuItemSelected,o.colorItemText=(Y=(E=a.layout)==null?void 0:E[l])==null?void 0:Y.colorDarkTextMenu,o.colorItemTextHover=(q=(U=a.layout)==null?void 0:U[l])==null?void 0:q.colorDarkTextMenuHover,o.colorItemTextSelected=(x=(u=a.layout)==null?void 0:u[l])==null?void 0:x.colorDarkTextMenuSelected,o.colorItemTextSelectedHorizontal=(T=(B=a.layout)==null?void 0:B[l])==null?void 0:T.colorDarkTextMenuSelected,l==="header"&&(o.colorActiveBarHeight=0)),o}const st=["left","right"],le=["left","right","down","up"],ut=["downBig","upBig","leftBig","rightBig"],mt=["topLeft","bottomRight","topRight","bottomLeft"],ft=["downLeft","upRight","downRight","upLeft"],ge={preset:[{name:"back",alias:"渐近",directions:le},{name:"bounce",alias:"弹跳",directions:le.concat("default")},{name:"fade",alias:"淡化",directions:le.concat(ut).concat(mt).concat("default")},{name:"flip",alias:"翻转",directions:["x","y"]},{name:"lightSpeed",alias:"光速",directions:st},{name:"rotate",alias:"旋转",directions:ft.concat("default")},{name:"roll",alias:"翻滚",directions:["default"]},{name:"zoom",alias:"缩放",directions:le.concat("default")},{name:"slide",alias:"滑动",directions:le}]};function Oe(e){return e.map(a=>{var l;const n={...a};if((l=n.meta)!=null&&l.hideInMenu)return null;if(n&&(n!=null&&n.children)){if(n.children.some(o=>{var c;return o&&!((c=o.meta)!=null&&c.hideInMenu)}))return{...n,children:Oe(n.children)};delete n.children}return n}).filter(a=>a)}function Re(e){return e.map(a=>{var l;const n={...a};return(l=n.meta)!=null&&l.hideInMenu?null:(n.linkPath=Ve(n.children||[]),n.children&&delete n.children,n)}).filter(a=>a)}function Be(e,a){const n=(a||"").split("/").length===2?a||"":`/${(a||"").split("/")[1]}`,l=e.find(o=>o.path===n);return a===void 0?[]:(l==null?void 0:l.children)||[]}function Ve(e){let a="";const n=function(o){let c="";return o.children&&o.children.length>0?c=n(o.children[0]):c=o.path,c},l=e==null?void 0:e.filter(o=>!o.hidden);if(l.length>0&&l[0].children&&l[0].children.length>0)a=n(l[0].children[0]);else{const o=l.length>0?l[0]:void 0;a=(o==null?void 0:o.path)||""}return a}function ht(e,a){var l,o;const n=((o=(l=e.find(c=>c.path===a))==null?void 0:l.meta)==null?void 0:o.key)||"";if(n){const c=[],h=n.split("-");for(let m=0;m<h.length;m+=1)c.push(J.cloneDeep(h).splice(0,m+1).join("-"));return e.filter(m=>c.some(w=>{var b;return w===((b=m==null?void 0:m.meta)==null?void 0:b.key)||""}))}return[]}function Fe(e){return e.layout==="mix"&&(e.fixSiderbar=!0,e.fixedHeader=!0,e.splitMenus=!0),e.layout==="top"&&(e.fixSiderbar=!1,e.fixedHeader=!0,e.splitMenus=!1),e.layout==="simple"&&(e.splitMenus=!1,e.showTabsBar=!1),e.layout==="side"&&(e.splitMenus=!1),e.layout==="wide"&&(e.splitMenus=!1,e.fixSiderbar=!1,e.fixedHeader=!0,e.showTabsBar=!1,e.fixedMultiTab=!1),{...e}}function gt(e){const a=["showTabsBar","fixedMultiTab","fixSiderbar","fixedHeader","splitMenus"];let l=Object.keys(e).reduce((o,c)=>(o[c]=!1,o),{});return l=yt(l,a),e.layout==="mix"&&(l.fixSiderbar=!0,l.fixedHeader=!0),e.layout==="side"&&(l.splitMenus=!0),e.layout==="simple"&&(l.splitMenus=!0,l.fixedHeader=!0,l.showTabsBar=!0,l.fixedMultiTab=!0),e.layout==="wide"&&(l.splitMenus=!0,l.fixedHeader=!0,l.fixSiderbar=!0,l.showTabsBar=!0,l.fixedMultiTab=!0),l}function yt(e,a){return{...a.reduce((n,l)=>({...n,[l]:e[l]}),{})}}const Te=(e=Symbol(),a="Context.Provider")=>t.defineComponent({name:a,props:{value:{type:Object,required:!0}},setup(l,{slots:o}){return t.provide(e,t.readonly(l.value)),()=>{var c;return(c=o.default)==null?void 0:c.call(o)}}}),$e=(e=Symbol(),a)=>t.inject(e,a||{}),ye=Symbol("pro-layout-context"),Le=()=>Te(ye,"ProLayoutContext.Provider"),Ke=e=>{t.provide(ye,e)},Q=()=>$e(ye);Le();function De(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!t.isVNode(e)}const re=e=>{const{icon:a,iconType:n,iconfontUrl:l}=e;if(!a)return null;if(typeof a=="string"&&a!==""){if(Me(a)||ct(a))return t.createVNode("img",{src:a,alt:"icon",class:`${e.className}-icon-image`},null);if(n===1){const c=Z.createFromIconfontCN({scriptUrl:l||i.themeConfig.iconfontUrl});return l?t.createVNode(c,{type:a},null):t.createVNode("i",{class:`iconfont ${a} ${e.className}-icon`},null)}}if(t.isVNode(a))return a;const o=t.resolveComponent(a);return typeof re=="function"&&t.createVNode(o,null,null)||null};re.props={icon:{type:[String,Function,Object]},iconType:Number,className:String,iconfontUrl:String};const be=t.defineComponent({name:"BaseMenu",props:oe,setup(e){const a=ie.useRouter(),{getPrefixCls:n}=Q(),l=n({suffixCls:"menu-item",isPor:!0}),o=r=>{var d;(d=e.onOpenKeys)==null||d.call(e,r)},c=r=>{var d;(d=e.onSelect)==null||d.call(e,r.selectedKeys)},h=r=>{var d;(d=e.onClick)==null||d.call(e,...r)},m=(r,d)=>{var C;const I=r.target||"",R=Me(I);((C=a.currentRoute.value)==null?void 0:C.fullPath)!==d.to&&R&&I&&r.targetStatus===1&&window.open(I)},w=t.resolveComponent("router-link"),b=(r=[])=>r.map(d=>O(d)).filter(d=>d),O=r=>{var R,C,y,f,S,F,s,N,M;if(Array.isArray(r.children)&&r.children.length>0&&!((R=r==null?void 0:r.meta)!=null&&R.hideInMenu)&&!((C=r==null?void 0:r.meta)!=null&&C.hideChildrenInMenu)){let k;if(e.subMenuItemRender)return e.subMenuItemRender({item:r,children:b(r.children)});const L=(y=r.meta)==null?void 0:y.title,W=(f=r.meta)!=null&&f.icon?t.createVNode("span",{class:"gx-pro-sider-menu-item"},[t.createVNode("span",{class:"gx-pro-sider-menu-item-title"},[L])]):t.createVNode("span",{class:"gx-pro-sider-menu-item"},[L]),H=((S=r.meta)==null?void 0:S.type)==="group",z=H?p.Menu.ItemGroup:p.Menu.SubMenu;return t.createVNode(z,{title:W,key:r.path,icon:H?null:t.createVNode(re,{className:l,icon:(F=r.meta)==null?void 0:F.icon,iconfontUrl:e.iconfontUrl,iconType:(s=r.meta)==null?void 0:s.iconType},null)},De(k=b(r.children))?k:{default:()=>[k]})}const[d,I]=g(r);return e.menuItemRender&&e.menuItemRender({item:r,title:d,icon:I})||t.createVNode(p.Menu.Item,{disabled:(N=r.meta)==null?void 0:N.disabled,danger:(M=r.meta)==null?void 0:M.danger,key:r.path,icon:I},De(d)?d:{default:()=>[d]})},g=r=>{var S,F,s,N,M;const d={...r.meta},I=d.targetStatus===1&&d.target?"a":w,R={to:r.linkPath||r.path||""},C=(S=r.meta)==null?void 0:S.title,y=(F=r.meta)!=null&&F.icon?t.createVNode(I,t.mergeProps(R,{class:"gx-pro-sider-menu-item",onClick:()=>m(d,R)}),{default:()=>[t.createVNode("span",{class:"gx-pro-sider-menu-item-title"},[C])]}):t.createVNode(I,t.mergeProps(R,{class:"gx-pro-sider-menu-item",onClick:()=>m(d,R)}),{default:()=>[t.createVNode("span",null,[C])]}),f=((s=r.meta)==null?void 0:s.icon)&&t.createVNode(re,{className:l,icon:(N=r.meta)==null?void 0:N.icon,iconfontUrl:e.iconfontUrl,iconType:(M=r.meta)==null?void 0:M.iconType},null)||void 0;return[y,f]},$=t.computed(()=>b(e.menuData));return()=>t.createVNode(p.Menu,t.mergeProps({key:"Menu",inlineIndent:16,mode:e.mode,theme:e.theme,openKeys:e.openKeys===!1?[]:e.openKeys,selectedKeys:e.selectedKeys||[],onOpenChange:o,onSelect:c,onClick:h},e.menuProps),{default:()=>[$.value]})}}),ze=new i.Keyframe("pro-layout-title-hide",{"0%":{display:"none",opacity:0},"99%":{display:"none",opacity:0},"100%":{display:"block",opacity:1}}),bt=e=>{const a=`${e.antCls}-menu`;return{[`${e.proComponentsCls}-basic-layout`]:{[`${a}${a}-root`]:{[`${a}-item a`]:{transition:"none"}}}}},pt=e=>{var a,n,l,o,c,h,m,w,b,O,g,$;return{[`${e.proComponentsCls}-basic-layout`]:{[`&${e.proComponentsCls}-basic-layout-wide`]:{[e.componentCls]:{position:"sticky",zIndex:100,borderRadius:e.borderRadiusSM}},[e.componentCls]:{position:"relative",borderRight:0,background:(n=(a=e.layout)==null?void 0:a.sider)==null?void 0:n.colorDarkBgMenu,zIndex:9,"&-menu":{position:"relative",zIndex:10,minHeight:"100%","&-icon":{verticalAlign:"unset"}},[`& ${e.antCls}-layout-sider-children`]:{position:"relative",display:"flex",flexDirection:"column",height:"100%"},"&-light":{background:(o=(l=e.layout)==null?void 0:l.sider)==null?void 0:o.colorBgMenu,boxShadow:"2px 0 8px 0 rgba(29,35,41,.05)",[`${e.componentCls}-footer`]:{color:(h=(c=e.layout)==null?void 0:c.sider)==null?void 0:h.colorTextMenu}},"&-links":{width:"100%",borderTop:"1px solid rgba(0,0,0,.06)",ul:{height:"auto"}},"&-link-menu":{border:"none",boxShadow:"none",background:"transparent"},"&-footer":{color:(w=(m=e.layout)==null?void 0:m.sider)==null?void 0:w.colorDarkTextMenu,paddingBlockEnd:16,fontSize:e.fontSize,animationName:ze,animationDuration:".4s",animationTimingFunction:"ease"}},[`${e.componentCls}${e.componentCls}-fixed`]:{position:"fixed",insetBlockStart:0,insetInlineStart:0,zIndex:"100",height:"100%","&-mix":{height:`calc(100% - ${((O=(b=e.layout)==null?void 0:b.header)==null?void 0:O.heightLayoutHeader)||i.themeConfig.headerHeight}px)`,insetBlockStart:`${(($=(g=e.layout)==null?void 0:g.header)==null?void 0:$.heightLayoutHeader)||i.themeConfig.headerHeight}px`}}}}},xt=e=>({[`${e.proComponentsCls}-basic-layout`]:{[`${e.antCls}-menu`]:{[`${e.proComponentsCls}-menu-item-icon${e.antCls}-menu-item-icon`]:{verticalAlign:"unset",lineHeight:1}}}}),Ct=e=>({[`${e.proComponentsCls}-sider`]:{"&-light":{[`${e.proComponentsCls}-sider-logo`]:{h1:{color:e.colorPrimary}}},"&-logo":{position:"relative",display:"flex",alignItems:"center",justifyContent:"space-between",padding:"16px 8px",cursor:"pointer",transition:"padding .3s cubic-bezier(.645,.045,.355,1)","> a":{display:"flex",alignItems:"center",justifyContent:"center",maxHeight:32,"> img":{display:"inline-block",height:32,verticalAlign:"middle"},"> h1":{display:"inline-block",lineHeight:"32px",marginBlock:0,marginInlineEnd:0,marginInlineStart:12,color:e.colorWhite,animationName:ze,animationDuration:".2s",fontWeight:600,fontSize:18,overflow:"hidden",verticalAlign:"middle"}},"&-collapsed":{flexDirection:"column-reverse",margin:0,padding:12,[`${e.proComponentsCls}-layout-apps-icon`]:{marginBlockEnd:8,fontSize:16,transition:"font-size 0.2s ease-in-out,color 0.2s ease-in-out"}}},[`&${e.antCls}-layout-sider-collapsed`]:{[`${e.proComponentsCls}-sider-logo`]:{padding:"16px 8px"}}}}),He=(e,a)=>e?typeof e=="string"?t.createVNode("img",{src:e,alt:"logo",style:a},null):typeof e=="function"?e():e:null,St=(e,a="menuHeaderRender")=>{const{logo:n,logoStyle:l,title:o,layout:c}=e,h=e[a||""];if(h===!1)return null;const m=He(n,l),w=o&&t.createVNode("h1",null,[o]);return typeof h=="function"?h(m,e.collapsed?null:w,e):t.createVNode(t.Fragment,null,[m||null,e.collapsed&&c==="side"?null:w])},pe=t.defineComponent({name:"LogoContent",props:ae,setup(e){const{getPrefixCls:a}=Q(),n=t.computed(()=>e.layout==="side"||e.layout==="simple"),l=t.computed(()=>a({suffixCls:n.value||e.drawer?"sider":"global-header",isPor:!0})),{wrapSSR:o,hashId:c}=i.useProStyle("ProLayoutLogo",[Ct]),h=t.computed(()=>St(e,e.renderKey));return()=>o(t.createVNode("div",{id:"logo",class:{[`${c.value}`]:!0,[`${l.value}-logo`]:!0,[`${l.value}-logo-collapsed`]:!!e.collapsed},onClick:()=>{var m;return(m=e.onMenuHeaderClick)==null?void 0:m.call(e)}},[t.createVNode("a",null,[h.value||null])]))}});pe.inheritAttrs=!1;function wt(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!t.isVNode(e)}const{Sider:Nt}=p.Layout,{Item:je}=p.Menu,We=e=>e?t.createVNode(Z.MenuUnfoldOutlined,null,null):t.createVNode(Z.MenuFoldOutlined,null,null),Ae=t.defineComponent({props:_,inheritAttrs:!1,setup(e){const{getPrefixCls:a,selectedKeys:n,flatMenuData:l,menuData:o,openKeys:c}=Q(),{indicator:h}=he.useProAppContext(),{token:m}=i.useProConfigContext(),{theme:w,layout:b,isMobile:O,menuLoading:g,breakpoint:$,fixSiderbar:r,collapsed:d,siderWidth:I,collapsedWidth:R,menuExtraRender:C,menuContentRender:y,menuFooterRender:f,collapsedButtonRender:S,links:F}=t.toRefs(e),s=a({suffixCls:"sider",isPor:!0}),{wrapSSR:N,hashId:M}=i.useProStyle("ProLayoutSiderMenu",[bt,pt,xt],s),k=t.computed(()=>e.layout==="wide"),L=t.computed(()=>e.layout==="mix"&&!e.isMobile&&e.splitMenus),W=t.computed(()=>b.value==="side"||b.value==="simple"),H=t.computed(()=>(e.layout==="mix"||k.value)&&"light"||w.value),z=t.computed(()=>b.value==="top"?[]:o.value),A=t.computed(()=>e.collapsed?e.collapsedWidth:e.siderWidth),E=t.computed(()=>[M.value,s,O.value?"shadow":null,`${s}-${H.value}`,r.value&&e.layout!=="wide"?`${s}-fixed`:null]),Y=t.computed(()=>{var u;return typeof F.value=="function"?(u=F.value)==null?void 0:u.call(F):F.value}),U=t.computed(()=>S.value!==!1?S.value||We:!1),q=u=>{var x;if(e.onSelect){if(t.unref(L)){e.onSelect([(x=n==null?void 0:n.value)==null?void 0:x[0],...u]);return}e.onSelect(u)}};return()=>{var T;const u=W.value?t.createVNode(pe,t.mergeProps({drawer:O.value},e),null):null,x=C.value&&((T=C.value)==null?void 0:T.call(C,e)),B=t.createVNode(be,{class:`${s}-menu ${M.value}`,theme:H.value,mode:"inline",menuData:L.value?l.value:z.value,iconfontUrl:e.iconfontUrl,openKeys:c.value,selectedKeys:n.value,menuItemRender:e.menuItemRender,subMenuItemRender:e.subMenuItemRender,onClick:e.onMenuClick,style:{width:"100%"},onOpenKeys:j=>{var G;return e.onOpenKeys&&((G=e.onOpenKeys)==null?void 0:G.call(e,j))},onSelect:q},null);return L.value&&t.unref(l.value).length===0||z.value.length===0?null:N(t.createVNode(p.ConfigProvider,{theme:{components:{Menu:ke({radiusItem:4,colorActiveBarWidth:0,colorActiveBarHeight:0,colorActiveBarBorderSize:0},(m==null?void 0:m.value)||{},H.value,"sider")}}},{default:()=>[r.value&&t.createVNode("div",{style:{width:`${A.value}px`,overflow:"hidden",flex:`0 0 ${A.value}px`,maxWidth:`${A.value}px`,minWidth:`${A.value}px`,transition:"background-color 0.2s, min-width 0.2s, max-width 0.2s"}},null),t.createVNode(Nt,{collapsible:!0,trigger:null,class:E.value,style:{overflow:"hidden",zIndex:r.value?101:void 0,paddingTop:W.value||e.isMobile||k.value?0:`${e.headerHeight}px`,top:e.layout==="wide"?`${e.headerHeight+20}px`:void 0,height:e.layout==="wide"?`calc(100vh - ${e.headerHeight+20*2}px)`:void 0},theme:H.value,breakpoint:$.value||void 0,collapsed:d.value,width:I.value,collapsedWidth:R.value},{default:()=>{var j,G;return[g.value&&t.createVNode("div",{class:["gx-pro-sider-loading",M.value]},[t.createVNode(p.Spin,{spinning:g.value,indicator:h==null?void 0:h.value},null)]),u||null,x&&!e.collapsed&&t.createVNode("div",{class:{[`${M.value}`]:!0,[`${s}-extra`]:!0,[`${s}-extra-no-logo`]:!u}},[x]),t.createVNode("div",{style:{flex:"1 1 0%",overflow:"hidden auto"}},[y.value&&((j=y.value)==null?void 0:j.call(y,e,B))||B]),e.layout!=="wide"&&t.createVNode("div",{class:`${s}-links ${M.value}`},[t.createVNode(p.Menu,{theme:H.value,inlineIndent:16,class:`${s}-link-menu ${M.value}`,selectedKeys:[],openKeys:[],mode:"inline"},{default:()=>[(Y.value||[]).map((X,ee)=>t.createVNode(je,{class:`${s}-link ${M.value}`,key:ee},wt(X)?X:{default:()=>[X]})),U.value&&!O.value&&t.createVNode(je,{class:`${s}-collapsed-button ${M.value}`,title:!1,key:"collapsed",onClick:()=>{var X;e.onCollapse&&((X=e.onCollapse)==null||X.call(e,!d.value))}},{default:()=>{var X;return[(X=U.value)==null?void 0:X.call(U,d.value)]}})]})]),f.value&&t.createVNode("div",{class:`${s}-footer ${M.value}`},[(G=f.value)==null?void 0:G.call(f,e)])]}})]}))}}}),de=t.defineComponent({name:"SiderMenuWrapper",inheritAttrs:!1,props:{..._,matchMenuKeys:{type:Array,default:()=>[]}},setup(e){return()=>t.createVNode(t.Fragment,null,[e.isMobile?t.createVNode(p.Drawer,{maskClosable:!0,open:!e.collapsed,closable:!1,placement:"left",style:{padding:0,height:"100vh"},getContainer:!1,onClose:()=>e.onCollapse&&e.onCollapse(!0),width:e.siderWidth,bodyStyle:{height:"100vh",padding:0,display:"flex",flexDirection:"row"}},{default:()=>[t.createVNode(Ae,t.mergeProps(e,{collapsed:e.isMobile?!1:e.collapsed}),null)]}):t.createVNode(Ae,e,null)])}}),ve={usePageCard:{type:Boolean,default:()=>{}},pageCardProps:Object,pageContentStyle:D.style,pageChildrenContentStyle:D.style,waterMarkProps:{type:Object},waterMark:D.bool.def(!0),pageHeaderRender:{type:[Object,Function,Boolean],default:()=>{}}},ce={pageChildrenExtraRender:{type:[Object,Function,Boolean],default:()=>{}},contentRender:{type:[Object,Function,Boolean],default:()=>{}},breadcrumbRender:{type:[Object,Function,Boolean],default:()=>{}},pageHeaderStyle:D.style,loading:D.bool.def(!1),...ve},It=e=>({[e.componentCls]:{background:e.colorBgContainer,padding:`${e.paddingLG}px`,"&-has-breadcrumb":{paddingBlock:`${e.paddingSM}px`},"&-content":{marginTop:"8px"}}}),Mt=t.defineComponent({name:"ProPageHeader",props:{content:ce.contentRender,breadcrumb:ce.breadcrumbRender},setup(e){const{breadcrumb:a,getPrefixCls:n}=Q(),l=n({isPor:!0,suffixCls:"page-header"}),{wrapSSR:o,hashId:c}=i.useProStyle("ProPageHeader",[It],l),h=t.computed(()=>{var m;return{...a.value,itemRender:((m=a.value)==null?void 0:m.itemRender)||(({route:w})=>w.path?t.createVNode(ie.RouterLink,{to:w.path},{default:()=>[w.breadcrumbName]}):w.breadcrumbName)}});return()=>{var m,w;return o(t.createVNode("div",{class:[`${l}`,c.value,`${l}-has-breadcrumb`]},[e.breadcrumb?(m=e.breadcrumb)==null?void 0:m.call(e,h.value):t.createVNode(p.Breadcrumb,h.value,null),e.content&&t.createVNode("div",{class:[`${l}-content`,c.value]},[(w=e.content)==null?void 0:w.call(e)])]))}}}),kt=e=>{var a,n,l,o,c,h,m,w;return{[`${e.proComponentsCls}-basic-layout`]:{[e.componentCls]:{marginInline:-(((n=(a=e.layout)==null?void 0:a.pageContainer)==null?void 0:n.paddingBlockPageContainerContent)??24),marginBlockStart:-(((o=(l=e.layout)==null?void 0:l.pageContainer)==null?void 0:o.paddingBlockPageContainerContent)??24)},[e.gridContent]:{width:"100%"}},[e.componentCls]:{"&-children-content":{marginInline:((h=(c=e.layout)==null?void 0:c.pageContainer)==null?void 0:h.marginInlinePageContainerContent)??24,marginBlockStart:((w=(m=e.layout)==null?void 0:m.pageContainer)==null?void 0:w.marginBlockPageContainerContent)??24,padding:"inherit"}}}};function Ot(e){return i.useStyle("ProPageContainter",a=>{const n=i.mergeToken(a,{gridContent:`${a.proComponentsCls}-grid-content`});return[kt(n)]},e)}function Rt(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!t.isVNode(e)}const Bt=t.defineComponent({inheritAttrs:!1,name:"GProPageContainer",props:ce,setup(e,{slots:a,attrs:n}){const{getPrefixCls:l,hasContentWide:o,waterMark:c,pageHeaderRender:h,pageContentStyle:m,pageChildrenContentStyle:w,pageCardProps:b,usePageCard:O,waterMarkProps:g}=Q(),{indicator:$}=he.useProAppContext(),r=i.useProConfigContext(),d=l({suffixCls:"page-container",isPor:!0}),I=l({suffixCls:"grid-content",isPor:!0}),R=t.computed(()=>e.pageCardProps||b.value),C=t.computed(()=>e.waterMarkProps||g.value||{}),y=t.computed(()=>e.pageContentStyle||m.value),f=t.computed(()=>e.pageChildrenContentStyle||w.value||{}),S=t.computed(()=>K.isBoolean(e.usePageCard)?e.usePageCard:K.isBoolean(O.value)?O.value:!0),{wrapSSR:F,hashId:s}=Ot(d),N=()=>{var L,W,H,z,A,E;const k=K.getSlot(a,e,"pageChildrenExtraRender");return t.createVNode("div",{class:`${d}-children-content ${s.value}`,style:f.value},[k&&(k==null?void 0:k()),S.value?t.createVNode(p.Card,t.mergeProps(R.value?J.pick(R.value,["loading","bodyStyle"]):{},{style:o.value?{minHeight:"853px"}:void 0,bordered:!1}),{default:()=>{var Y;return[(Y=a.default)==null?void 0:Y.call(a)]}}):k?t.createVNode("div",{style:{marginBlockStart:`${(z=(H=(W=(L=r==null?void 0:r.token)==null?void 0:L.value)==null?void 0:W.layout)==null?void 0:H.pageContainer)==null?void 0:z.marginBlockPageContainerContent}px`}},[(A=a.default)==null?void 0:A.call(a)]):(E=a.default)==null?void 0:E.call(a)])},M=()=>{let k;return t.createVNode(t.Fragment,null,[e.waterMark&&c.value?t.createVNode(it.GPorWaterMark,C.value,Rt(k=N())?k:{default:()=>[k]}):N()])};return()=>{const k=K.getSlot(a,e,"pageHeaderRender")||h.value,L=K.getSlot(a,e,"breadcrumbRender"),W=K.getSlot(a,e,"contentRender");return F(t.createVNode(p.Spin,{spinning:e.loading,indicator:$==null?void 0:$.value},{default:()=>[t.createVNode("div",{style:n.style,class:{[`${s.value}`]:!0,[`${d}`]:!0}},[!o.value&&k!==!1&&(k||t.createVNode(Mt,{style:e.pageHeaderStyle,breadcrumb:L,content:W},null)),t.createVNode("div",{class:[I,s.value]},[t.createVNode("div",{class:`${I}-children ${s.value}`,style:y.value},[M()])])])]}))}}}),xe={...te,...oe,logo:ae.logo,logoStyle:ae.logoStyle,logoDirection:ae.logoDirection,menuLoading:Boolean,autoHideHeader:Boolean,collapsed:Boolean,isMobile:Boolean,siderWidth:_.siderWidth,headerTheme:{type:String,default:"dark"},menuData:{type:Array,default:()=>[]},menuRender:{type:[Object,Function],default:()=>{}},extraRightDropdownRender:{type:[Object,Function],default:()=>{}},rightContentRender:{type:[Object,Function],default:()=>{}},collapsedButtonRender:_.collapsedButtonRender,matchMenuKeys:_.matchMenuKeys,onCollapse:_.onCollapse,onOpenKeys:_.onOpenKeys,onMenuHeaderClick:Function,onSelect:_.onSelect},Ue={...xe,headerTitleRender:{type:[Object,Function],default:()=>{}},headerRender:{type:[Object,Function],default:()=>{}},headerContentRender:{type:[Object,Function],default:()=>{}},hasSiderMenu:Boolean,collapsedWidth:_.collapsedWidth,siderWidth:_.siderWidth},Xe={loading:D.looseBool,isMobile:_.isMobile,collapsed:oe.collapsed,siderWidth:_.siderWidth,collapsedWidth:_.collapsedWidth,isFixedMultiTab:te.fixedMultiTab,onReloadPage:{type:Function},onChangeTabs:{type:Function},"onUpdate:tabs":{type:Function}},Vt=e=>({[e.componentCls]:{marginBlock:0,marginBlockStart:48,marginBlockEnd:24,marginInline:0,paddingBlock:0,paddingInline:16,textAlign:"center","&-links":{marginBottom:8,a:{color:e.colorTextSecondary,textDecoration:e.linkDecoration,"&:hover":{color:e.colorPrimary}},"a:not(:last-child)":{marginInlineEnd:40}},"&-copyright":{fontSize:"14px",color:e.colorTextSecondary,a:{color:e.colorTextSecondary,textDecoration:e.linkDecoration}}}}),Ee=[{key:"Ant Design Pro",title:"Ant Design Pro",href:"https://pro.ant.design",blankTarget:!0},{key:"gitee",title:t.createVNode(Z.GithubOutlined,null,null),href:"https://gitee.com/gx12358/vue-antd-admin",blankTarget:!0},{key:"Ant Design Vue",title:"Ant Design Vue",href:"https://next.antdv.com/components/overview-cn/",blankTarget:!0}],se=t.defineComponent({name:"GlobalFooter",props:{links:{type:[Array,Boolean],default:Ee},copyright:{type:[Object,Function,Boolean,String],default:"皖ICP备2022010510号-1"}},setup(e){const a=K.getPrefixCls({suffixCls:"global-footer",isPor:!0}),{wrapSSR:n,hashId:l}=i.useProStyle("ProLayoutFooter",[Vt],a);return()=>n(t.createVNode(p.LayoutFooter,{style:{padding:0}},{default:()=>[t.createVNode("div",{class:[a,l.value]},[e.links&&t.createVNode("div",{class:`${a}-links ${l.value}`},[e.links.map(o=>t.createVNode("a",{key:o.key,title:o.key,target:o.blankTarget?"_blank":"_self",href:o.href},[o.title]))]),e.copyright&&t.createVNode("div",{class:`${a}-copyright ${l.value}`},[t.createTextVNode("Copyright 2022 "),t.createVNode("a",{href:"https://beian.miit.gov.cn/"},[e.copyright])])])]}))}}),Ye={...te,...xe,..._,...Ue,...Xe,...ce,pure:Boolean,token:Object,waterMark:{type:Boolean,default:!0},disableMobile:{type:Boolean,required:!1},contentStyle:{type:[String,Object],default:()=>null},breadcrumb:[Object,Function],disableContentMargin:D.looseBool,isChildrenLayout:D.looseBool,loading:D.looseBool,footerLinks:{type:[Array,Boolean],default:Ee},copyrightRender:{type:[Object,Function,Boolean,String],default:()=>{}},footerRender:{type:[Object,Function,Boolean],default:()=>{}},menuData:{type:Array,default:()=>[]},levelMenuData:{type:Array,default:()=>[]},collapsed:D.looseBool},Ft=e=>({[e.componentCls]:{display:"flex",flexDirection:"column",width:"100%",minHeight:"100vh"}}),Tt=e=>{var a,n;return{[e.componentCls]:{a:{color:e.colorPrimary,"&:hover":{color:e.colorPrimaryHover}},[`&${e.componentCls}-wide`]:{backgroundColor:e.colorBgLayout,[`${e.componentCls}-content`]:{margin:0,marginInlineStart:20}},[`${e.componentCls}-content`]:{position:"relative",margin:(n=(a=e.layout)==null?void 0:a.pageContainer)==null?void 0:n.paddingBlockPageContainerContent},[`${e.componentCls}-container`]:{width:"100%",display:"flex",flexDirection:"column",minWidth:0,minHeight:0,backgroundColor:"transparent"}}}},$t=e=>{var a,n;return{[`${e.componentCls}-title`]:{display:"flex",alignItems:"center",gap:8,[`${e.componentCls}-reload-btn,${e.componentCls}-close-btn`]:{color:e.colorTextSecondary,fontSize:12,cursor:"pointer",transition:"color .3s cubic-bezier(.645,.045,.355,1)","&:hover":{color:e.colorPrimary}}},[`${e.componentCls}`]:{"&-fixed":{width:"100%",height:62,background:"transparent"}},[`${e.componentWrapCls}`]:{background:e.colorBgContainer,[`${e.antCls}-tabs-nav`]:{paddingLeft:16,".ant-tabs-tab .anticon":{margin:0},[`${e.antCls}-tabs-tab:not(${e.antCls}-tabs-tab-active)`]:{borderBottomColor:"transparent"},[`${e.componentCls}-dropdown-menu-btn`]:{marginInlineEnd:8,padding:12,fontSize:16,cursor:"pointer"}},"&-fixed":{position:"fixed",height:62,top:((n=(a=e.layout)==null?void 0:a.header)==null?void 0:n.heightLayoutHeader)||i.themeConfig.headerHeight,right:0,zIndex:9,transition:"width .2s"}}}};function Lt(e){return i.useStyle("ProMultiTabs",a=>{const n=i.mergeToken(a,{componentWrapCls:`${a.componentCls}-wrap`});return[$t(n)]},e)}const Kt=[{key:"closeOthersTabs",label:"关闭其他"},{key:"closeLeftTabs",label:"关闭左侧"},{key:"closeRightTabs",label:"关闭右侧"},{key:"reloadPage",label:"刷新当前页"}];function Dt(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!t.isVNode(e)}function v(e){var a;return((a=e==null?void 0:e.meta)==null?void 0:a.currenFulltPath)||e.fullPath||e.path}const zt=p.Tabs.TabPane,Ht=p.Menu.Item,jt=t.defineComponent({props:{...Xe,visible:{type:Boolean,default:!0}},inheritAttrs:!1,setup(e){const{isMobile:a,isFixedMultiTab:n}=t.toRefs(e),l=t.ref(!1),o=t.reactive({activeKey:"",contextMenuActiveKey:""}),c=ie.useRouter(),{menuData:h,flatMenuData:m,layout:w,splitMenus:b,getPrefixCls:O}=Q(),g=O({isPor:!0,suffixCls:"multi-tab"}),{wrapSSR:$,hashId:r}=Lt(g),d=t.ref([]);t.watch(d,()=>{var u;(u=e.onChangeTabs)==null||u.call(e,J.cloneDeep(t.unref(d)))},{deep:!0});const I=t.computed(()=>w.value==="mix"&&!e.isMobile&&b.value),R=t.computed(()=>v(c.currentRoute.value)),C=t.computed(()=>n.value&&!a.value),y=t.computed(()=>{const u=!(I.value&&t.unref(m.value).length===0||h.value.length===0||w.value==="top");return C.value&&u?`calc(100% - ${e.collapsed?e.collapsedWidth:e.siderWidth}px)`:"100%"}),f=t.computed(()=>K.classNames(`${g}-wrap`,{[`${r.value}`]:!0,[`${g}-wrap-fixed`]:e.isFixedMultiTab,[`${g}-wrap-loading`]:e.loading})),S=t.computed(()=>{const u={display:e.visible?void 0:"none"};return e.isFixedMultiTab?{margin:0,width:y.value,paddingTop:"6px",zIndex:99,...u}:u}),F=u=>v(u)===R.value,s=u=>{if(u.name&&u.meta&&u.meta.tagHidden!==!0){const x=v(u),B=d.value.find(j=>v(j)===x),T={path:u.path,fullPath:x,query:u.query,params:u.params,name:u.name,meta:{...u.meta,originTagPath:u.fullPath}};B?Object.assign(B,T):u.meta.tagFixed?d.value.unshift(T):d.value.push(T),F(u)&&(o.activeKey=x)}},N=u=>{u.forEach(x=>{x.meta&&x.meta.tagFixed&&s(x),x.children&&N(x.children)})};t.watch(()=>h.value,u=>{N(u)},{deep:!0,immediate:!0}),t.watch(()=>c.currentRoute.value,u=>{s(u)},{deep:!0,immediate:!0});const M=u=>{var x,B;return((B=(x=d.value.find(T=>(u||o.activeKey)===v(T)))==null?void 0:x.meta)==null?void 0:B.originTagPath)||u||o.activeKey},k=()=>{const u=d.value.slice(-1)[0];u?c.push({path:M(v(u))}):c.push("/")},L=async u=>{const x=d.value.find(B=>u===v(B));d.value=d.value.filter(B=>v(B)!==u),x&&F(x)&&k()},W=u=>{const x=d.value.find(B=>v(B)===u);x&&o.activeKey!==v(x)&&c.push({path:M(v(x))})},H=()=>{var u;l.value=!0,e.onReloadPage&&((u=e.onReloadPage)==null||u.call(e)),setTimeout(()=>{l.value=!1},500)},z=u=>u.meta&&u.meta.tagFixed,A=u=>o[u],E=(u,x)=>{const B=d.value.findIndex(T=>v(T)===A(x));switch(u){case"closeOthersTabs":d.value=d.value.filter(T=>{var j;return v(T)===A(x)||((j=T.meta)==null?void 0:j.tagFixed)});break;case"closeLeftTabs":B&&(d.value=d.value.filter((T,j)=>{var G;return j>=B||((G=T.meta)==null?void 0:G.tagFixed)}));break;case"closeRightTabs":B&&(d.value=d.value.filter((T,j)=>{var G;return j<=B||((G=T.meta)==null?void 0:G.tagFixed)}));break;case"reloadPage":(B===0||B)&&o.activeKey===A(x)&&H();break}o.activeKey!==A(x)&&c.push(M(A(x)))},Y=(u,x)=>{const B=d.value.findIndex(T=>v(T)===x);switch(u){case"closeOthersTabs":return d.value.filter((X,ee)=>{var P;return ee!==B&&!((P=X.meta)!=null&&P.tagFixed)}).length===0;case"closeLeftTabs":return d.value.filter((X,ee)=>{var P;return ee<B&&!((P=X.meta)!=null&&P.tagFixed)}).length===0;case"closeRightTabs":return d.value.filter((X,ee)=>{var P;return ee>B&&!((P=X.meta)!=null&&P.tagFixed)}).length===0}},U=u=>{let x;const{path:B,stateType:T}=u;return t.createVNode(p.Menu,{selectedKeys:[],onClick:({key:j})=>E(j,T)},Dt(x=Kt.map(j=>t.createVNode(Ht,{key:j.key,disabled:Y(j.key,B)},{default:()=>[j.label]})))?x:{default:()=>[x]})},q=u=>{const{router:x}=u;return t.createVNode(p.Dropdown,{trigger:"contextmenu",overlay:t.createVNode(U,{path:v(x)||"",stateType:"contextMenuActiveKey"},null),onOpenChange:B=>{o.contextMenuActiveKey=B&&v(x)||""}},{default:()=>{var B;return[t.createVNode("div",{class:[`${g}-title`,r.value]},[(B=x.meta)==null?void 0:B.title,o.activeKey===v(x)&&t.createVNode(Z.ReloadOutlined,{class:[`${g}-reload-btn`,r.value],spin:l.value,onClick:T=>{T.stopPropagation(),!l.value&&H()}},null),d.value.length>1&&!z(x)&&t.createVNode(Z.CloseOutlined,{class:[`${g}-close-btn`,r.value],onClick:T=>{T.stopPropagation(),!l.value&&L(v(x)||"")}},null)])]}})};return()=>$(t.createVNode(t.Fragment,null,[!!e.isFixedMultiTab&&t.withDirectives(t.createVNode("div",{class:[`${g}-fixed`,r.value]},null),[[t.vShow,e.visible]]),t.createVNode(p.Tabs,{hideAdd:!0,type:"editable-card",style:S.value,class:f.value,activeKey:o.activeKey,onTabClick:W},{default:()=>[d.value.map(u=>t.createVNode(zt,{key:v(u),closable:!1,tab:t.createVNode(q,{router:u},null)},null))],rightExtra:()=>t.createVNode(p.Dropdown,{overlay:t.createVNode(U,{path:o.activeKey,stateType:"activeKey"},null)},{default:()=>[t.createVNode(Z.EllipsisOutlined,{class:[`${g}-dropdown-menu-btn`,r.value],rotate:90},null)]})})]))}}),{Content:Wt}=p.Layout,ue=(e,{slots:a,attrs:n})=>{var I;const{hashId:l,prefixCls:o,isMobile:c,loading:h,collapsed:m,siderWidth:w,isShowTabsBar:b,isFixedMultiTab:O,onReloadPage:g,onChangeTabs:$}=e;if(e.isChildrenLayout)return(I=a.default)==null?void 0:I.call(a);const{flatMenuData:r,layout:d}=Q();return t.createVNode(t.Fragment,null,[t.createVNode(jt,{visible:(t.unref(d)==="mix"?t.unref(r).length>0:!0)&&b,isMobile:c,loading:h,isFixedMultiTab:O,siderWidth:w,collapsed:m,onReloadPage:g,onChangeTabs:$},null),t.createVNode(Wt,{style:n.style,class:[`${o}-content`]},{default:()=>{var R;return[h&&t.createVNode(Ie,null,null),t.createVNode("div",{class:[`${o}-content-spin-container`,l],style:{opacity:h?"0":void 0}},[(R=a.default)==null?void 0:R.call(a)])]}})])};ue.inheritAttrs=!1,ue.displayName="wrap-content";const At=e=>{var a,n,l,o;return{[`${e.proComponentsCls}-basic-layout`]:{[`${e.antCls}-layout-header${e.componentCls}${e.componentCls}-light`]:{backgroundColor:((n=(a=e.layout)==null?void 0:a.header)==null?void 0:n.colorBgMenu)||e.colorBgElevated},[`${e.antCls}-layout-header${e.componentCls}${e.componentCls}-dark`]:{backgroundColor:(o=(l=e.layout)==null?void 0:l.header)==null?void 0:o.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.2s cubic-bezier(.645,.045,.355,1)",[`&${e.proComponentsCls}`]:{"&-fixed-header":{position:"fixed",width:"100%",zIndex:9,top:0,transition:"width .2s","&-action":{transition:"width .3s cubic-bezier(.645,.045,.355,1)"}},"&-header-actions":{display:"flex",alignItems:"center",fontSize:"16",cursor:"pointer","& &-item":{paddingBlock:0,paddingInline:8,"&:hover":{color: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)"}}}}}},vt=e=>({[`${e.proComponentsCls}-header`]:{"&-light":{[`${e.componentCls}-logo`]:{h1:{color:e.colorBgSpotlight}}}},[e.componentCls]:{position:"relative",background:"transparent",display:"flex",marginBlock:0,paddingInline:16,width:"100%",height:"100%",boxShadow:"0 1px 4px rgba(0,21,41,.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",width:"100%",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}}}),_e={..._,...xe},Ut=(e,a)=>e===!1?null:e?e(a,null):a,Xt=t.defineComponent({props:_e,setup(e){return()=>e.rightContentRender&&typeof e.rightContentRender=="function"&&t.createVNode(t.Fragment,null,[e.rightContentRender({...e})])}}),Ge=t.defineComponent({props:_e,inheritAttrs:!1,setup(e,{slots:a,emit:n}){const l=ie.useRouter(),{token:o}=i.useProConfigContext(),{getPrefixCls:c,openKeys:h,selectedKeys:m}=Q(),{width:w}=we.useWindowSize(),b=c({suffixCls:"global-header",isPor:!0}),{wrapSSR:O,hashId:g}=i.useProStyle("ProGlobalHeader",[vt],b),$=t.computed(()=>e.isMobile?!1:e.layout==="top"||e.layout==="mix"&&e.splitMenus),r=t.computed(()=>({[`${g.value}`]:!0,[`${b}`]:!0,[`${b}-${e.layout}`]:!0})),d=y=>{var f;if(l.currentRoute){const S=l.currentRoute.value.matched.concat();e.onSelect&&y==="select"&&e.onSelect(S.filter(F=>F.name!=="index").map(F=>F.path)),e.onOpenKeys&&y==="openKeys"&&((f=e.onOpenKeys)==null||f.call(e,S.filter(F=>F.path!==l.currentRoute.value.path).map(F=>F.path)))}},I=()=>{n("collapse",!e.collapsed)},R=t.computed(()=>e.collapsedButtonRender||We),C=()=>{var y,f;return t.createVNode(t.Fragment,null,[$.value?t.createVNode("div",{style:{flex:1},class:[`${b}-menu`,g.value]},[((y=e.menuData)==null?void 0:y.length)>0&&t.createVNode(p.ConfigProvider,{theme:{components:{Layout:{headerBg:"transparent",bodyBg:"transparent"},Menu:ke({radiusItem:4,colorActiveBarWidth:0,colorActiveBarHeight:2,colorActiveBarBorderSize:0,horizontalItemBorderRadius:4},o.value||{},e.theme,"header")}}},{default:()=>[t.createVNode(be,t.mergeProps({theme:e.theme,mode:e.mode,collapsed:e.collapsed,menuData:e.menuData,openKeys:h.value,selectedKeys:m.value,iconfontUrl:e.iconfontUrl,menuItemRender:e.menuItemRender,subMenuItemRender:e.subMenuItemRender,class:{"top-nav-menu":e.mode==="horizontal",[`${g.value}`]:!0}},{"onUpdate:openKeys":()=>d("openKeys"),"onUpdate:selectedKeys":()=>d("select")}),null)]})]):t.createVNode("div",{style:{flex:1}},[(f=a.default)==null?void 0:f.call(a)]),e.layout!=="simple"&&t.createVNode(Xt,t.mergeProps(e,{extraRightDropdownRender:e.extraRightDropdownRender,rightContentRender:e.rightContentRender}),null)])};return()=>{const y=t.createVNode("span",{key:"logo",onClick:()=>{var f;return(f=e.onMenuHeaderClick)==null?void 0:f.call(e)},class:[`${b}-logo`,e.isMobile?"mobile":"",g.value]},[t.createVNode("a",null,[He(e.logo)])]);return O(t.createVNode("div",{class:r.value},[e.isMobile?t.createVNode(t.Fragment,null,[Ut(e.menuHeaderRender,y),e.isMobile&&t.unref(R)&&t.createVNode("span",{class:`${b}-collapsed-button ${g.value}`,onClick:I},[t.unref(R)(e.collapsed)]),C()]):["mix","wide","top"].includes(e.layout)?t.createVNode(t.Fragment,null,[t.createVNode("div",{style:{width:e.layout==="wide"?`${e.wideWidth}px`:void 0,padding:e.layout==="wide"&&w.value<e.wideWidth?"0 50px":void 0},class:`${b}-main ${g.value}`},[t.createVNode("div",{class:`${b}-main-left ${g.value}`},[t.createVNode(pe,t.mergeProps(e,{renderKey:"headerTitleRender"}),null)]),C()])]):C()]))}}});function Et(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!t.isVNode(e)}const{Header:qe}=p.Layout,Ce=t.defineComponent({inheritAttrs:!1,props:Ue,setup(e){const{theme:a,isMobile:n,fixedHeader:l,headerHeight:o,layout:c,onCollapse:h,splitMenus:m}=t.toRefs(e),{getPrefixCls:w,menuData:b}=Q(),O=w({suffixCls:"header",isPor:!0}),g=w({suffixCls:"fixed-header",isPor:!0}),{wrapSSR:$,hashId:r}=i.useProStyle("ProLayoutHeader",[At],O),d=t.computed(()=>c.value==="wide"),I=t.computed(()=>l.value),R=t.computed(()=>c.value==="mix"||d.value),C=t.computed(()=>c.value==="side"||c.value==="simple"),y=t.computed(()=>C.value&&"light"||a.value),f=t.computed(()=>({[`${r.value}`]:!0,[`${O}-${y.value}`]:!0,[`${O}`]:!0,[`${g}`]:I.value})),S=t.computed(()=>I.value&&!n.value),F=t.computed(()=>m.value?b.value&&Re(b.value)||[]:c.value==="top"?b.value:[]),s=t.computed(()=>C.value&&S.value?`calc(100% - ${e.collapsed?e.collapsedWidth:e.siderWidth}px)`:"100%"),N=t.computed(()=>I.value?0:void 0),M=()=>{const k=t.createVNode(Ge,t.mergeProps(e,{theme:y.value,mode:"horizontal",onCollapse:h.value,menuData:F.value}),{default:()=>[R.value?null:e.headerContentRender&&typeof e.headerContentRender=="function"?e.headerContentRender(e):e.headerContentRender]});return e.headerRender?e.headerRender(e,k):k};return()=>{let k;return $(t.createVNode(t.Fragment,null,[I.value&&!d.value&&t.createVNode(qe,{theme:y.value,style:{height:`${o.value}px`,lineHeight:`${o.value}px`,background:"transparent"}},null),t.createVNode(qe,{theme:y.value,class:f.value,style:{height:`${o.value}px`,lineHeight:`${o.value}px`,width:s.value,zIndex:C.value?100:101,right:N.value}},Et(k=M())?k:{default:()=>[k]})]))}}}),Yt=t.defineComponent({name:"BaseProLayout",inheritAttrs:!1,components:{GlobalHeader:Ce,GlobalFooter:se,SiderMenuWrapper:de},props:Ye,emits:["update:collapsed","update:open-keys","update:selected-keys","collapse","openKeys","reloadPage","select","menuHeaderClick","menuClick","changeTabs"],setup(e,{slots:a}){const n=K.getPrefixCls({suffixCls:"basic-layout",isPor:!0}),{wrapSSR:l,hashId:o}=i.useProStyle("ProLayout",[Ft,Tt],n),c=ne.useMediaQuery(),{token:h}=i.useProConfigContext(),m=t.computed(()=>{var y;return(y=h==null?void 0:h.value)==null?void 0:y.colorPrimary});t.watchEffect(()=>{m.value&&document.querySelector("html")&&document.querySelector("html").style.setProperty("--gx-primary-color",m.value)});const w=t.computed(()=>e.layout==="mix"||e.layout==="side"||e.layout==="wide"||!1),b=t.computed(()=>e.layout==="wide"),O=t.computed(()=>w.value),g=t.computed(()=>e.collapsed?e.collapsedWidth:e.siderWidth),$=t.computed(()=>(e.theme||"dark").toLocaleLowerCase().includes("dark")?"dark":"light"),r=t.computed(()=>(c.value==="sm"||c.value==="xs")&&!e.disableMobile&&!b.value),d=t.reactive({position:"relative"});(e.isChildrenLayout||e.contentStyle&&e.contentStyle.minHeight)&&(d.minHeight=0);const I=(y,f)=>y.headerRender===!1||y.pure?null:t.createVNode(Ce,t.mergeProps(y,{matchMenuKeys:f||[]}),null),R=t.computed(()=>({...e.breadcrumb,itemRender:K.getSlot(a,e,"breadcrumbRender")})),C=t.computed(()=>O.value&&e.selectedKeys?Be(e.menuData,e.selectedKeys[0]):[]);return Ke({getPrefixCls:K.getPrefixCls,...J.pick(t.toRefs(e),["layout","waterMark","menuData","openKeys","splitMenus","headerHeight","selectedKeys","disableMobile","fixSiderbar","fixedHeader","waterMarkProps"].concat(Object.keys(ve))),theme:$,hasContentWide:b,isMobile:r,siderWidth:g,breadcrumb:R,flatMenuData:C,hasSide:w,flatMenu:O,pageHeaderRender:t.computed(()=>K.getSlot(a,e,"pageHeaderRender"))}),()=>{var T;const y=K.getSlot(a,e,"collapsedButtonRender"),f=K.getSlot(a,e,"headerContentRender"),S=K.getSlot(a,e,"rightContentRender"),F=K.getSlot(a,e,"headerRender"),s=K.getSlot(a,e,"footerRender"),N=K.getSlot(a,e,"links"),M=K.getSlot(a,e,"copyrightRender"),k=K.getSlot(a,e,"extraRightDropdownRender"),L=K.getSlot(a,e,"menuHeaderRender"),W=K.getSlot(a,e,"menuExtraRender"),H=K.getSlot(a,e,"menuContentRender"),z=K.getSlot(a,e,"menuFooterRender"),A=K.getSlot(a,e,"menuItemRender"),E=K.getSlot(a,e,"subMenuItemRender"),Y={menuItemRender:A,subMenuItemRender:E},U=t.computed(()=>I({...e,...Y,hasSiderMenu:w.value,menuData:e.menuData,isMobile:t.unref(r),rightContentRender:S,extraRightDropdownRender:k,headerTitleRender:L,headerContentRender:f,headerRender:F,theme:$.value},e.matchMenuKeys)),q=t.computed(()=>({[`${o.value}`]:!0,[`${n}`]:!0,[`${n}-${e.layout}`]:!0})),u=t.computed(()=>b.value?{minWidth:`${e.wideWidth}px`}:void 0),x=t.computed(()=>b.value?{width:e.menuData.length?`${e.wideWidth}px`:`${e.wideWidth-e.siderWidth-20}px`,paddingTop:`${e.headerHeight+20}px`,margin:b.value?"0 auto":void 0}:void 0),B=t.computed(()=>b.value?{minHeight:"835px"}:{});return l(t.createVNode(t.Fragment,null,[e.pure?(T=a.default)==null?void 0:T.call(a):t.createVNode("div",{class:q.value,style:u.value},[t.createVNode(p.Layout,{style:x.value},{default:()=>[t.createVNode(de,t.mergeProps(J.omit(e,["pure","theme"]),{links:N,theme:$.value,isMobile:r.value,menuHeaderRender:L,menuContentRender:H,menuExtraRender:W,menuFooterRender:z,collapsedButtonRender:y}),null),t.createVNode(p.Layout,{style:d},{default:()=>[U.value,t.createVNode(ue,t.mergeProps({hashId:o.value,isMobile:r.value,prefixCls:n,collapsedWidth:e.collapsedWidth,isChildrenLayout:e.isChildrenLayout,loading:e.loading,isShowTabsBar:e.showTabsBar,isFixedMultiTab:e.fixedMultiTab,siderWidth:e.siderWidth,collapsed:e.collapsed,style:e.disableContentMargin?B.value:{...e.contentStyle,...B.value}},J.pick(e,["onReloadPage","onChangeTabs"])),{default:()=>{var j;return[(j=a.default)==null?void 0:j.call(a)]}}),s===!1?null:s?s(e):t.createVNode(se,{copyright:M},null)]})]})])]))}}}),_t=t.defineComponent({components:{GlobalHeader:Ce,GlobalFooter:se,SiderMenuWrapper:de},props:Ye,emits:["update:collapsed","update:open-keys","update:selected-keys","collapse","openKeys","reloadPage","select","menuHeaderClick","menuClick","changeTabs"],setup(e,{slots:a,emit:n}){const l=t.computed(()=>e.theme!==void 0?{dark:e.theme==="realDark"}:{}),o=m=>{n("update:collapsed",m),n("collapse",m)},c=m=>{n("update:open-keys",m),n("openKeys",m)},h=m=>{n("update:selected-keys",m),n("select",m)};return()=>t.createVNode(p.ConfigProvider,{theme:e.primaryColor?{token:{colorPrimary:e.primaryColor}}:void 0},{default:()=>[t.createVNode(i,t.mergeProps({token:e.token},l.value),{default:()=>[t.createVNode(Yt,t.mergeProps(J.omit(e,["onSelect","onOpenKeys","onCollapse"]),{onSelect:h,onOpenKeys:c,onCollapse:o}),a)]})]})}}),Ze=(e,a,n)=>e.map((l,o)=>{var c;return l.meta&&(l.meta.key=n?`${n}-${o}`:`${o}`),l.path=l.path.replace("//","/"),l.children&&l.children.length>0&&(l.children=Ze(l.children,a,(c=l.meta)==null?void 0:c.key)),a[`${l.path}`]=l,l}),Gt=e=>{const a=e.find(o=>{var c;return o.path==="/"&&((c=o.children)==null?void 0:c.length)}),n={},l=Ze((a==null?void 0:a.children)||[],n);return{menuData:l,breadcrumb:n,levelMenuData:K.getLevelData(l)}},Je=[{key:"light",title:"亮色菜单风格"},{key:"dark",title:"暗色菜单风格"},{key:"realDark",title:"暗黑模式"}],Qe=[{key:"side",title:"侧边菜单布局"},{key:"mix",title:"混合菜单布局"},{key:"wide",title:"定宽菜单布局"},{key:"simple",title:"简单菜单布局"}],qt=[{key:"header",title:"顶部主题"},{key:"sider",title:"左侧主题"}],Zt=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}}}}),Pe=t.defineComponent({name:"BlockCheckbox",props:{value:D.string,list:{type:Array,default:()=>[]},configType:D.string,prefixCls:D.string,hashId:D.string,onChange:Function},setup(e){return()=>{const a=`${e.prefixCls}-block-checkbox`;return t.createVNode("div",{class:[a,e.hashId]},[e.list.map(n=>t.createVNode(p.Tooltip,{title:n.title,key:n.key},{default:()=>[t.createVNode("div",{class:K.classNames(e.hashId,`${a}-item`,`${a}-item-${n.key}`,`${a}-${e.configType}-item`),onClick:()=>{var l;return(l=e.onChange)==null?void 0:l.call(e,n.key)}},[n.key==="wide"&&t.createVNode("div",{class:[`${a}-item-${n.key}-content`,e.hashId]},null),t.createVNode(Z.CheckOutlined,{class:`${a}-selectIcon ${e.hashId}`.trim(),style:{display:e.value===n.key?"block":"none"}},null),n!=null&&n.icon?t.createVNode("div",{class:`${a}-icon ${e.hashId}`.trim()},[n.icon]):null])]}))])}}}),Jt=t.defineComponent({name:"ThemeColor",inheritAttrs:!1,props:{settingValue:Object,colorList:{type:Array,default:()=>[]},prefixCls:D.string,hashId:D.string,onChange:Function},setup(e){return()=>{var n;const a=`${e.prefixCls}-theme-color`;return t.createVNode(t.Fragment,null,[t.createVNode("div",{class:`${a} ${e.hashId}`.trim()},[(n=e.colorList)==null?void 0:n.map(({key:l,color:o,title:c})=>l?t.createVNode(p.Tooltip,{key:o,title:c},{default:()=>{var h,m;return[t.createVNode("div",{class:[`${a}-block ${e.hashId}`.trim(),((h=e.settingValue)==null?void 0:h.primaryColor)===o?`${a}-block-checked`:""],style:{backgroundColor:o},onClick:()=>e.onChange&&e.onChange(o)},[((m=e.settingValue)==null?void 0:m.primaryColor)===o&&t.createVNode(Z.CheckOutlined,null,null)])]}}):null)])])}}}),me=t.defineComponent({name:"RegionalChange",props:{label:D.string,value:D.bool,prefixCls:D.string,valueKey:String,hashId:D.string,disabled:D.bool,onChange:Function},setup(e){return()=>t.createVNode(p.List,{class:`${e.prefixCls}-list ${e.hashId}`.trim(),split:!1,size:"small",renderItem:({item:a})=>t.createVNode(p.Tooltip,{title:a.disabled?a.disabledReason:"",placement:"left"},{default:()=>[t.createVNode(p.List.Item,{actions:[a.action]},{default:()=>[t.createVNode("span",{style:{opacity:a.disabled?.5:1}},[a.title])]})]}),dataSource:[{title:e.label,action:t.createVNode(p.Switch,{size:"small",disabled:e.disabled,checked:!!e.value,onChange:a=>{e.onChange&&e.onChange(e.valueKey,a)}},null)}]},null)}}),Qt=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 Pt(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!t.isVNode(e)}const ea=t.defineComponent({name:"ThemeEditor",props:{settingValue:Object,onChange:Function},setup(e){const{getPrefixCls:a}=Q(),[n,l]=ne.useState("header"),o=a({suffixCls:"theme-editor",isPor:!0}),{wrapSSR:c,hashId:h}=i.useProStyle("ProThemeEditor",[Qt],o),{token:m}=i.useProConfigContext(),w=t.computed(()=>{var r;return(r=m.value)==null?void 0:r.layout}),b=t.computed(()=>{var r,d,I,R,C,y,f,S,F,s,N,M,k,L,W,H,z,A,E,Y,U,q,u,x,B;return[{key:"colorBgMenu",title:"全部背景",disabled:((r=e.settingValue)==null?void 0:r.theme)==="dark"&&["mix","wide"].includes((d=e.settingValue)==null?void 0:d.layout)},{key:"colorDarkBgMenu",title:"全部背景",disabled:((I=e.settingValue)==null?void 0:I.theme)==="light"||((R=e.settingValue)==null?void 0:R.theme)==="dark"&&["side","simple"].includes((C=e.settingValue)==null?void 0:C.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((f=e.settingValue)==null?void 0:f.layout)},{key:"colorDarkBgMenuItemSelected",title:"菜单选中背景",disabled:((S=e.settingValue)==null?void 0:S.theme)==="light"||((F=e.settingValue)==null?void 0:F.theme)==="dark"&&["side","simple"].includes((s=e.settingValue)==null?void 0:s.layout)},{key:"colorTextMenu",title:"菜单文字颜色",disabled:((N=e.settingValue)==null?void 0:N.theme)==="dark"&&["mix","wide"].includes((M=e.settingValue)==null?void 0:M.layout)},{key:"colorDarkTextMenu",title:"菜单文字颜色",disabled:((k=e.settingValue)==null?void 0:k.theme)==="light"||((L=e.settingValue)==null?void 0:L.theme)==="dark"&&["side","simple"].includes((W=e.settingValue)==null?void 0:W.layout)},{key:"colorTextMenuHover",title:"菜单文字移入颜色",disabled:((H=e.settingValue)==null?void 0:H.theme)==="dark"&&["mix","wide"].includes((z=e.settingValue)==null?void 0:z.layout)},{key:"colorDarkTextMenuHover",title:"菜单文字移入颜色",disabled:((A=e.settingValue)==null?void 0:A.theme)==="light"||((E=e.settingValue)==null?void 0:E.theme)==="dark"&&["side","simple"].includes((Y=e.settingValue)==null?void 0:Y.layout)},{key:"colorTextMenuSelected",title:"菜单文字选中颜色",disabled:((U=e.settingValue)==null?void 0:U.theme)==="dark"&&["mix","wide"].includes((q=e.settingValue)==null?void 0:q.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((B=e.settingValue)==null?void 0:B.layout)}]}),O=t.computed(()=>{var r,d,I,R,C,y,f,S,F,s,N,M,k,L,W,H,z,A,E,Y,U,q,u,x,B,T,j,G,X,ee,P,ot;return[{key:"colorBgMenu",title:"全部背景",disabled:((r=e.settingValue)==null?void 0:r.theme)==="dark"&&["side","simple"].includes((d=e.settingValue)==null?void 0:d.layout)},{key:"colorDarkBgMenu",title:"全部背景",disabled:((I=e.settingValue)==null?void 0:I.theme)==="light"||((R=e.settingValue)==null?void 0:R.theme)==="dark"&&["mix","wide"].includes((C=e.settingValue)==null?void 0:C.layout)},{key:"colorSubItemBg",title:"子菜单背景",disabled:((y=e.settingValue)==null?void 0:y.theme)==="dark"&&["side","simple"].includes((f=e.settingValue)==null?void 0:f.layout)},{key:"colorDarkSubItemBg",title:"子菜单背景",disabled:((S=e.settingValue)==null?void 0:S.theme)==="light"||((F=e.settingValue)==null?void 0:F.theme)==="dark"&&["mix","wide"].includes((s=e.settingValue)==null?void 0:s.layout)},{key:"colorBgMenuItemHover",title:"菜单移入背景",disabled:((N=e.settingValue)==null?void 0:N.theme)==="dark"&&((M=e.settingValue)==null?void 0:M.layout)!=="mix"},{key:"colorBgMenuItemSelected",title:"菜单选中背景",disabled:((k=e.settingValue)==null?void 0:k.theme)==="dark"&&((L=e.settingValue)==null?void 0:L.layout)!=="mix"},{key:"colorDarkBgMenuItemSelected",title:"菜单选中背景",disabled:((W=e.settingValue)==null?void 0:W.theme)==="light"||((H=e.settingValue)==null?void 0:H.theme)==="dark"&&["mix","wide"].includes((z=e.settingValue)==null?void 0:z.layout)},{key:"colorTextMenu",title:"菜单文字颜色",disabled:((A=e.settingValue)==null?void 0:A.theme)==="dark"&&((E=e.settingValue)==null?void 0:E.layout)!=="mix"},{key:"colorDarkTextMenu",title:"菜单文字颜色",disabled:((Y=e.settingValue)==null?void 0:Y.theme)==="light"||((U=e.settingValue)==null?void 0:U.theme)==="dark"&&["mix","wide"].includes((q=e.settingValue)==null?void 0:q.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:((B=e.settingValue)==null?void 0:B.theme)==="light"||((T=e.settingValue)==null?void 0:T.theme)==="dark"&&["mix","wide"].includes((j=e.settingValue)==null?void 0:j.layout)},{key:"colorTextMenuSelected",title:"菜单文字选中颜色",disabled:((G=e.settingValue)==null?void 0:G.theme)==="dark"&&((X=e.settingValue)==null?void 0:X.layout)!=="mix"},{key:"colorDarkTextMenuSelected",title:"菜单文字选中颜色",disabled:((ee=e.settingValue)==null?void 0:ee.theme)==="light"||((P=e.settingValue)==null?void 0:P.theme)==="dark"&&["mix","wide"].includes((ot=e.settingValue)==null?void 0:ot.layout)}]}),g=t.computed(()=>n.value==="header"?b.value:n.value==="sider"?O.value:[]),$=r=>{var d,I;return(I=(d=w.value)==null?void 0:d[n.value])==null?void 0:I[r]};return()=>{var d,I,R;let r;return c(t.createVNode("div",{class:[o,h.value]},[t.createVNode("h3",{class:[`${o}-title`,h.value]},[t.createTextVNode("主题编辑器"),t.createVNode("div",{class:[`${o}-sub-title`,h.value]},[t.createVNode("span",null,[(d=Je.find(C=>{var y;return C.key===((y=e.settingValue)==null?void 0:y.theme)}))==null?void 0:d.title]),t.createVNode("span",{style:{marginInline:"8px"}},[t.createTextVNode("/")]),t.createVNode("span",null,[(I=Qe.find(C=>{var y;return C.key===((y=e.settingValue)==null?void 0:y.layout)}))==null?void 0:I.title])])]),t.createVNode("div",{class:[`${o}-content`,h.value]},[t.createVNode(p.List,{class:`${o}-list ${h.value}`.trim(),split:!1,size:"small",renderItem:({item:C})=>t.createVNode(p.List.Item,{actions:[C.action]},{default:()=>[t.createVNode("span",{style:{opacity:C.disabled?.5:1}},[C.title])]}),dataSource:[{title:"自定义主题色",action:t.createVNode(Ne.GColorPicker,{value:(R=e.settingValue)==null?void 0:R.primaryColor,actions:["confirm"],modes:["rgb"],size:"small",onConfirm:C=>e.onChange&&e.onChange(C,"primaryColor")},null)}]},null),t.createVNode(p.Tabs,{activeKey:n.value,onChange:l},Pt(r=qt.map(C=>t.createVNode(p.TabPane,{key:C.key,tab:C.title},{default:()=>[t.createVNode(p.List,{class:`${o}-list ${h.value}`.trim(),split:!1,size:"small",renderItem:({item:y})=>t.createVNode(p.List.Item,{actions:[y.action]},{default:()=>[t.createVNode("span",{style:{opacity:y.disabled?.5:1}},[y.title])]}),dataSource:g.value.filter(y=>!y.disabled).map(y=>({...y,action:t.createVNode(Ne.GColorPicker,{value:$(y.key),actions:["confirm"],modes:["rgb"],size:"small",onConfirm:f=>e.onChange&&e.onChange(f,n.value,y.key)},null)}))},null)]})))?r:{default:()=>[r]})])]))}}}),ta=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 et(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!t.isVNode(e)}const{preset:tt}=ge,aa=t.defineComponent({name:"OthersChange",props:{prefixCls:D.string,settingValue:Object,onChange:Function},setup(e){const a=K.getPrefixCls({suffixCls:"others",isPor:!0}),{wrapSSR:n,hashId:l}=i.useProStyle("SettingsDrawOthers",[ta],a);return()=>{var c,h,m,w,b,O,g,$,r,d,I,R,C,y;let o;return n(t.createVNode("div",{class:[a,l.value]},[t.createVNode("h3",{class:[`${a}-title`,l.value]},[t.createTextVNode("页面动画设置")]),t.createVNode(p.List,{class:`${a}-list ${l.value}`.trim(),split:!1,size:"small",renderItem:({item:f})=>t.createVNode(p.Tooltip,{title:f.disabled?f.disabledReason:"",placement:"left"},{default:()=>[t.createVNode(p.List.Item,{actions:[f.action]},{default:()=>[t.createVNode("span",{style:{opacity:f.disabled?.5:1}},[f.title])]})]}),dataSource:[{title:"禁用动画",action:t.createVNode(p.Switch,{checked:!((h=(c=e.settingValue)==null?void 0:c.animate)!=null&&h.disabled),size:"small",onChange:f=>{var S;return(S=e.onChange)==null?void 0:S.call(e,"animate","disabled",!f)}},null)},{title:"动画效果",disabled:(w=(m=e.settingValue)==null?void 0:m.animate)==null?void 0:w.disabled,action:t.createVNode(p.Select,{value:(O=(b=e.settingValue)==null?void 0:b.animate)==null?void 0:O.name,style:{width:"100px"},size:"small",disabled:($=(g=e.settingValue)==null?void 0:g.animate)==null?void 0:$.disabled,getPopupContainer:f=>f&&f.parentNode?f.parentNode:f,onChange:f=>{var S;return(S=e.onChange)==null?void 0:S.call(e,"animate","name",f)}},et(o=tt.map(f=>t.createVNode(p.Select.Option,{value:f.name},{default:()=>[f.alias]})))?o:{default:()=>[o]})},{title:"动画方向",disabled:(d=(r=e.settingValue)==null?void 0:r.animate)==null?void 0:d.disabled,action:t.createVNode(p.Select,{value:(R=(I=e.settingValue)==null?void 0:I.animate)==null?void 0:R.direction,style:{width:"100px"},size:"small",dropdownStyle:{minWidth:"120px"},disabled:(y=(C=e.settingValue)==null?void 0:C.animate)==null?void 0:y.disabled,getPopupContainer:f=>f&&f.parentNode?f.parentNode:f,onChange:f=>{var S;return(S=e.onChange)==null?void 0:S.call(e,"animate","direction",f)}},{default:()=>{var f;return[(f=tt.find(S=>{var F,s;return S.name===((s=(F=e.settingValue)==null?void 0:F.animate)==null?void 0:s.name)}))==null?void 0:f.directions.map(S=>t.createVNode(p.Select.Option,{value:S},et(S)?S:{default:()=>[S]}))]}})}]},null)]))}}}),{preset:na}=ge,Se=Object.keys(i.themeConfig).filter(e=>e!=="title"),at={color:"#fff",fontSize:20},oa=[{label:"fixedHeader",title:"固定 Header"},{label:"fixSiderbar",title:"固定侧边菜单"},{label:"splitMenus",title:"自动分割菜单"}],la=[{label:"showTabsBar",title:"多标签"},{label:"fixedMultiTab",title:"固定多标签"}],nt=e=>K.isBrowser()?{...J.pick(i.themeConfig,Se),...e||{}}:J.cloneDeep(i.themeConfig),fe=(e,{slots:a})=>{var n;return t.createVNode("div",{style:{marginBottom:"24px"}},[t.createVNode("h3",{class:`${e.prefixCls}-body-title ${e.hashId}`.trim()},[e.title]),(n=a.default)==null?void 0:n.call(a)])},ia=t.defineComponent({name:"SettingDrawer",props:{themeOnly:Boolean,hideHintAlert:Boolean,hideCopyButton:Boolean,weakmode:Boolean,showProgress:Boolean,settings:{type:Object},colorList:{type:[Boolean,Array],default:()=>i.colorList},onChange:Function,onChangeLayout:Function},emits:["change","changeLayout"],setup(e){const{getPrefixCls:a}=Q(),n=a({suffixCls:"setting-drawer",isPor:!0}),{wrapSSR:l,hashId:o}=i.useProStyle("ProSettingDraw",[Zt],n),c=t.ref(!1),[h,m]=ne.useState(!1),[w,b]=ne.useState(!1),[O,g]=ne.useState(!1),$=t.computed(()=>nt(J.pick(e.settings,Se))),[r,d]=ne.useMergedState(()=>nt(J.pick(e.settings,Se)),{value:$,onChange:e.onChange}),I=t.computed(()=>e.colorList&&K.isArray(e.colorList)?e.colorList:[]),R=t.computed(()=>gt(t.unref(r))),{copy:C,copied:y,isSupported:f}=we.useClipboard();t.watch(h,()=>{c.value||(c.value=!0)});const S=(s,N,M)=>{var W,H;const k=["header","sider"],L={};if(M&&k.includes(s)){L[s]={},L[s][M]=N,e.onChangeLayout&&e.onChangeLayout(J.pick(L,k));return}else s==="animate"?(L[s]={},L[s][M]=N,M==="name"&&(L[s].direction=(H=(W=na.find(z=>z.name===N))==null?void 0:W.directions)==null?void 0:H[0])):L[s]=N;if(s==="colorWeak"){const z=document.querySelector("body");z&&(z.dataset.prosettingdrawer=N===!0?z.style.filter:z.dataset.prosettingdrawer||"none",N===!0&&(z.dataset.prosettingdrawer=z.style.filter),z.style.filter=N===!0?"invert(80%)":z.dataset.prosettingdrawer||"none",N||delete z.dataset.prosettingdrawer)}d(K.merge(t.unref(r),{...Fe(J.omit(L,k))}))},F=()=>{f.value&&C(JSON.stringify(t.unref(r)))};return t.watch(y,s=>{s&&p.message.success("拷贝成功,请到 config/default/themeConfig.js 中替换默认配置")}),()=>l(t.createVNode(p.Drawer,{width:300,closable:!1,open:h.value,rootClassName:`${n} ${o.value} ${h.value&&`${n}-show`} ${!c.value&&`${n}-trantion-none`}`,placement:"right",rootStyle:{zIndex:999},bodyStyle:{padding:0},onClose:()=>m(!1),handle:t.createVNode("div",{class:[`${n}-handle`,o.value],onClick:()=>m(!h.value)},[h.value?t.createVNode(Z.CloseOutlined,{style:at},null):t.createVNode(Z.SettingOutlined,{style:at},null)])},{default:()=>[t.createVNode("div",{class:[`${n}-wrapper`,o.value]},[t.createVNode(rt,null,{default:()=>[t.createVNode("div",{class:[`${n}-content`,o.value]},[t.createVNode(fe,{prefixCls:n,hashId:o.value,title:"整体风格设置"},{default:()=>[t.createVNode(Pe,{hashId:o.value,prefixCls:n,list:Je,value:r.value.theme,configType:"theme",key:"navTheme",onChange:s=>S("theme",s)},null)]}),t.createVNode(fe,{hashId:o.value,title:t.createVNode("span",null,[t.createTextVNode("主题色 "),t.createVNode("a",{style:{fontSize:"12px"},onClick:()=>b(!0)},[t.createTextVNode("更多配置")])]),prefixCls:n},{default:()=>[t.createVNode(Jt,{hashId:o.value,prefixCls:n,colorList:I.value,settingValue:r.value,onChange:(s,N)=>S(N||"primaryColor",s)},null)]}),!e.themeOnly&&t.createVNode(t.Fragment,null,[t.createVNode(p.Divider,null,null),t.createVNode(fe,{hashId:o.value,prefixCls:n,title:"导航模式"},{default:()=>[t.createVNode(Pe,{prefixCls:n,value:t.unref(r).layout,key:"layout",hashId:o.value,configType:"layout",list:Qe,onChange:s=>S("layout",s)},null)]}),oa.map(({label:s,title:N})=>t.createVNode(me,{label:N,disabled:t.unref(R)[s],value:t.unref(r)[s],prefixCls:n,hashId:o.value,valueKey:s,onChange:(M,k)=>S(M,k)},null)),t.createVNode(p.Divider,null,null),t.createVNode(fe,{hashId:o.value,prefixCls:n,title:t.createVNode("span",null,[t.createTextVNode("其他设置 "),t.createVNode("a",{style:{fontSize:"12px"},onClick:()=>g(!0)},[t.createTextVNode("更多配置")])])},{default:()=>[la.map(({label:s,title:N})=>t.createVNode(me,{label:N,disabled:t.unref(R)[s],value:t.unref(r)[s],prefixCls:n,hashId:o.value,valueKey:s,onChange:(M,k)=>S(M,k)},null)),e.weakmode&&t.createVNode(me,{label:"色弱模式",value:t.unref(r).colorWeak,prefixCls:n,hashId:o.value,valueKey:"colorWeak",onChange:(s,N)=>S(s,N)},null),e.showProgress&&t.createVNode(me,{label:"顶部进度条",value:t.unref(r).showProgressBar,prefixCls:n,hashId:o.value,valueKey:"showProgressBar",onChange:(s,N)=>S(s,N)},null)]})]),e.hideHintAlert&&e.hideCopyButton?null:t.createVNode(p.Divider,null,null),e.hideHintAlert?null:t.createVNode(p.Alert,{type:"warning",message:"配置栏只在开发环境用于预览,生产环境不会展现,请拷贝后手动修改配置文件",icon:t.createVNode(Z.NotificationOutlined,null,null),showIcon:!0,style:{marginBottom:"16px"}},null),e.hideCopyButton?null:t.createVNode(p.Button,{onClick:()=>F(),block:!0},{default:()=>[t.createVNode(Z.CopyOutlined,null,null),t.createTextVNode("拷贝设置")]})])]})]),t.createVNode(p.Drawer,{width:320,closable:!1,placement:"right",open:w.value,bodyStyle:{padding:0},onClose:()=>b(!1)},{default:()=>[t.createVNode(ea,{settingValue:r.value,onChange:(s,N,M)=>S(N||"primaryColor",s,M)},null)]}),t.createVNode(p.Drawer,{width:320,closable:!1,placement:"right",open:O.value,bodyStyle:{padding:0},onClose:()=>g(!1)},{default:()=>[t.createVNode(aa,{settingValue:r.value,onChange:(s,N,M)=>S(s,M,N)},null)]})]}))}}),ra=new i.Keyframe("backInLeft",{"0%":{opacity:.7,transform:"translateX(-2000px) scale(0.7)"},"80%":{opacity:.7,transform:"translateX(0px) scale(0.7)"},"100%":{opacity:1,transform:"scale(1)"}}),da=new i.Keyframe("backInRight",{"0%":{opacity:.7,transform:"translateX(2000px) scale(0.7)"},"80%":{opacity:.7,transform:"translateX(0px) scale(0.7)"},"100%":{opacity:1,transform:"scale(1)"}}),ca=new i.Keyframe("backInUp",{"0%":{opacity:.7,transform:"translateY(1200px) scale(0.7)"},"80%":{opacity:.7,transform:"translateY(0px) scale(0.7)"},"100%":{opacity:1,transform:"scale(1)"}}),sa=new i.Keyframe("backInDown",{"0%":{opacity:.7,transform:"translateY(-1200px) scale(0.7)"},"80%":{opacity:.7,transform:"translateY(0px) scale(0.7)"},"100%":{opacity:1,transform:"scale(1)"}}),ua=new i.Keyframe("backOutLeft",{"0%":{opacity:1,transform:"scale(1)"},"20%":{opacity:.7,transform:"translateX(0px) scale(0.7)"},"100%":{opacity:.7,transform:"translateX(-2000px) scale(0.7)"}}),ma=new i.Keyframe("backOutRight",{"0%":{opacity:1,transform:"scale(1)"},"20%":{opacity:.7,transform:"translateX(0px) scale(0.7)"},"100%":{opacity:.7,transform:"translateX(2000px) scale(0.7)"}}),fa=new i.Keyframe("backOutUp",{"0%":{opacity:1,transform:"scale(1)"},"20%":{opacity:.7,transform:"translateY(0px) scale(0.7)"},"100%":{opacity:.7,transform:"translateY(-700px) scale(0.7)"}}),ha=new i.Keyframe("backOutDown",{"0%":{opacity:1,transform:"scale(1)"},"20%":{opacity:.7,transform:"translateY(0px) scale(0.7)"},"100%":{opacity:.7,transform:"translateY(700px) scale(0.7)"}}),ga=()=>({"&.backInLeft":{animationFillMode:"both",animationName:ra},"&.backInRight":{animationFillMode:"both",animationName:da},"&.backInUp":{animationFillMode:"both",animationName:ca},"&.backInDown":{animationFillMode:"both",animationName:sa}}),ya=()=>({"&.backOutLeft":{animationFillMode:"both",animationName:ua},"&.backOutRight":{animationFillMode:"both",animationName:ma},"&.backOutUp":{animationFillMode:"both",animationName:fa},"&.backOutDown":{animationFillMode:"both",animationName:ha}}),ba=new i.Keyframe("bounceIn",{"from,20%,40%,60%,80%,to":{animationTimingFunction:"cubic-bezier(0.215, 0.61, 0.355, 1)"},"0%":{opacity:0,transform:"scale3d(0.3, 0.3, 0.3)"},"20%":{transform:"scale3d(1.1, 1.1, 1.1)"},"40%":{transform:"scale3d(0.9, 0.9, 0.9)"},"60%":{transform:"scale3d(1.03, 1.03, 1.03)"},"80%":{transform:"scale3d(0.97, 0.97, 0.97)"},to:{opacity:1,transform:"scale3d(1, 1, 1)"}}),pa=new i.Keyframe("bounceInLeft",{"from,60%,75%,90%,to":{animationTimingFunction:"cubic-bezier(0.215, 0.61, 0.355, 1)"},"0%":{opacity:0,transform:"translate3d(-3000px, 0, 0) scaleX(3)"},"60%":{opacity:1,transform:"translate3d(25px, 0, 0) scaleX(1)"},"75%":{transform:"translate3d(-10px, 0, 0) scaleX(0.98)"},"90%":{transform:"translate3d(5px, 0, 0) scaleX(0.995)"},to:{transform:"translate3d(0, 0, 0)"}}),xa=new i.Keyframe("bounceInRight",{"from,60%,75%,90%,to":{animationTimingFunction:"cubic-bezier(0.215, 0.61, 0.355, 1)"},from:{opacity:0,transform:"translate3d(3000px, 0, 0) scaleX(3)"},"60%":{opacity:1,transform:"translate3d(-25px, 0, 0) scaleX(1)"},"75%":{transform:"translate3d(10px, 0, 0) scaleX(0.98)"},"90%":{transform:"translate3d(-5px, 0, 0) scaleX(0.995)"},to:{transform:"translate3d(0, 0, 0)"}}),Ca=new i.Keyframe("bounceInDown",{"from,60%,75%,90%,to":{animationTimingFunction:"cubic-bezier(0.215, 0.61, 0.355, 1)"},"0%":{opacity:0,transform:"translate3d(0, -3000px, 0) scaleY(3)"},"60%":{opacity:1,transform:"translate3d(0, 25px, 0) scaleY(0.9)"},"75%":{transform:"translate3d(0, -10px, 0) scaleY(0.95)"},"90%":{transform:"translate3d(0, 5px, 0) scaleY(0.985)"},to:{transform:"translate3d(0, 0, 0)"}}),Sa=new i.Keyframe("bounceInUp",{"from,60%,75%,90%,to":{animationTimingFunction:"cubic-bezier(0.215, 0.61, 0.355, 1)"},from:{opacity:0,transform:"translate3d(0, 3000px, 0) scaleY(5)"},"60%":{opacity:1,transform:"translate3d(0, -20px, 0) scaleY(0.9)"},"75%":{transform:"translate3d(0, 10px, 0) scaleY(0.95)"},"90%":{transform:"translate3d(0, -5px, 0) scaleY(0.985)"},to:{transform:"translate3d(0, 0, 0)"}}),wa=new i.Keyframe("bounceOut",{"20%":{transform:"scale3d(0.9, 0.9, 0.9)"},"50%,55%":{transform:"scale3d(1.1, 1.1, 1.1)"},"60%":{transform:"scale3d(1.03, 1.03, 1.03)"},to:{opacity:0,transform:"scale3d(0.3, 0.3, 0.3)"}}),Na=new i.Keyframe("bounceOutLeft",{"20%":{opacity:1,transform:"translate3d(20px, 0, 0) scaleX(0.9)"},to:{opacity:0,transform:"translate3d(-2000px, 0, 0) scaleX(2)"}}),Ia=new i.Keyframe("bounceOutRight",{"20%":{opacity:1,transform:"translate3d(-20px, 0, 0) scaleX(0.9)"},to:{opacity:0,transform:"translate3d(2000px, 0, 0) scaleX(2)"}}),Ma=new i.Keyframe("bounceOutDown",{"20%":{transform:"translate3d(0, 10px, 0) scaleY(0.985)"},"40%,45%":{opacity:1,transform:"translate3d(0, -20px, 0) scaleY(0.9)"},to:{opacity:0,transform:"translate3d(0, 2000px, 0) scaleY(3)"}}),ka=new i.Keyframe("bounceOutUp",{"20%":{transform:"translate3d(0, -10px, 0) scaleY(0.985)"},"40%,45%":{opacity:1,transform:"translate3d(0, 20px, 0) scaleY(0.9)"},to:{opacity:0,transform:"translate3d(0, -2000px, 0) scaleY(3)"}}),Oa=()=>({"&.bounceIn":{animationFillMode:"both",animationDuration:`${.3*.75}s !important`,animationName:ba},"&.bounceInLeft":{animationFillMode:"both",animationName:pa},"&.bounceInRight":{animationFillMode:"both",animationName:xa},"&.bounceInDown":{animationFillMode:"both",animationName:Ca},"&.bounceInUp":{animationFillMode:"both",animationName:Sa}}),Ra=()=>({"&.bounceOut":{animationFillMode:"both",animationDuration:`${.3*.75}s !important`,animationName:wa},"&.bounceOutLeft":{animationFillMode:"both",animationName:Na},"&.bounceOutRight":{animationFillMode:"both",animationName:Ia},"&.bounceOutDown":{animationFillMode:"both",animationName:Ma},"&.bounceOutUp":{animationFillMode:"both",animationName:ka}}),Ba=new i.Keyframe("fadeIn",{from:{opacity:0},to:{opacity:1}}),Va=new i.Keyframe("fadeInLeft",{from:{opacity:0,transform:"translate3d(-100%, 0, 0)"},to:{opacity:1,transform:"translate3d(0, 0, 0)"}}),Fa=new i.Keyframe("fadeInRight",{from:{opacity:0,transform:"translate3d(100%, 0, 0)"},to:{opacity:1,transform:"translate3d(0, 0, 0)"}}),Ta=new i.Keyframe("fadeInDown",{from:{opacity:0,transform:"translate3d(0, -100%, 0)"},to:{opacity:1,transform:"translate3d(0, 0, 0)"}}),$a=new i.Keyframe("fadeInUp",{from:{opacity:0,transform:"translate3d(0, 100%, 0)"},to:{opacity:1,transform:"translate3d(0, 0, 0)"}}),La=new i.Keyframe("fadeInDownBig",{from:{opacity:0,transform:"translate3d(0, -2000px, 0)"},to:{opacity:1,transform:"translate3d(0, 0, 0)"}}),Ka=new i.Keyframe("fadeInUpBig",{from:{opacity:0,transform:"translate3d(0, 2000px, 0)"},to:{opacity:1,transform:"translate3d(0, 0, 0)"}}),Da=new i.Keyframe("fadeInLeftBig",{from:{opacity:0,transform:"translate3d(-2000px, 0, 0)"},to:{opacity:1,transform:"translate3d(0, 0, 0)"}}),za=new i.Keyframe("fadeInRightBig",{from:{opacity:0,transform:"translate3d(2000px, 0, 0)"},to:{opacity:1,transform:"translate3d(0, 0, 0)"}}),Ha=new i.Keyframe("fadeInTopLeft",{from:{opacity:0,transform:"translate3d(-100%, -100%, 0)"},to:{opacity:1,transform:"translate3d(0, 0, 0)"}}),ja=new i.Keyframe("fadeInBottomRight",{from:{opacity:0,transform:"translate3d(100%, 100%, 0)"},to:{opacity:1,transform:"translate3d(0, 0, 0)"}}),Wa=new i.Keyframe("fadeInTopRight",{from:{opacity:0,transform:"translate3d(100%, -100%, 0)"},to:{opacity:1,transform:"translate3d(0, 0, 0)"}}),Aa=new i.Keyframe("fadeInBottomLeft",{from:{opacity:0,transform:"translate3d(-100%, 100%, 0)"},to:{opacity:1,transform:"translate3d(0, 0, 0)"}}),va=new i.Keyframe("fadeOut",{from:{opacity:1},to:{opacity:0}}),Ua=new i.Keyframe("fadeOutLeft",{from:{opacity:1},to:{opacity:0,transform:"translate3d(-100%, 0, 0)"}}),Xa=new i.Keyframe("fadeOutRight",{from:{opacity:1},to:{opacity:0,transform:"translate3d(100%, 0, 0)"}}),Ea=new i.Keyframe("fadeOutDown",{from:{opacity:1},to:{opacity:0,transform:"translate3d(0, 100%, 0)"}}),Ya=new i.Keyframe("fadeOutUp",{from:{opacity:1},to:{opacity:0,transform:"translate3d(0, -100%, 0)"}}),_a=new i.Keyframe("fadeOutDownBig",{from:{opacity:1},to:{opacity:0,transform:"translate3d(0, 2000px, 0)"}}),Ga=new i.Keyframe("fadeOutUpBig",{from:{opacity:1},to:{opacity:0,transform:"translate3d(0, -2000px, 0)"}}),qa=new i.Keyframe("fadeOutLeftBig",{from:{opacity:1},to:{opacity:0,transform:"translate3d(-2000px, 0, 0)"}}),Za=new i.Keyframe("fadeOutRightBig",{from:{opacity:1},to:{opacity:0,transform:"translate3d(2000px, 0, 0)"}}),Ja=new i.Keyframe("fadeOutTopLeft",{from:{opacity:1,transform:"translate3d(0, 0, 0)"},to:{opacity:0,transform:"translate3d(-100%, -100%, 0)"}}),Qa=new i.Keyframe("fadeOutBottomRight",{from:{opacity:1,transform:"translate3d(0, 0, 0)"},to:{opacity:0,transform:"translate3d(100%, 100%, 0)"}}),Pa=new i.Keyframe("fadeOutTopRight",{from:{opacity:1,transform:"translate3d(0, 0, 0)"},to:{opacity:0,transform:"translate3d(100%, -100%, 0)"}}),en=new i.Keyframe("fadeOutBottomLeft",{from:{opacity:1,transform:"translate3d(0, 0, 0)"},to:{opacity:0,transform:"translate3d(-100%, 100%, 0)"}}),tn=()=>({"&.fadeIn":{animationFillMode:"both",animationName:Ba},"&.fadeInLeft":{animationFillMode:"both",animationName:Va},"&.fadeInRight":{animationFillMode:"both",animationName:Fa},"&.fadeInDown":{animationFillMode:"both",animationName:Ta},"&.fadeInUp":{animationFillMode:"both",animationName:$a},"&.fadeInLeftBig":{animationFillMode:"both",animationName:Da},"&.fadeInRightBig":{animationFillMode:"both",animationName:za},"&.fadeInUpBig":{animationFillMode:"both",animationName:Ka},"&.fadeInDownBig":{animationFillMode:"both",animationName:La},"&.fadeInTopLeft":{animationFillMode:"both",animationName:Ha},"&.fadeInBottomRight":{animationFillMode:"both",animationName:ja},"&.fadeInTopRight":{animationFillMode:"both",animationName:Wa},"&.fadeInBottomLeft":{animationFillMode:"both",animationName:Aa}}),an=()=>({"&.fadeOut":{animationFillMode:"both",animationName:va},"&.fadeOutLeft":{animationFillMode:"both",animationName:Ua},"&.fadeOutRight":{animationFillMode:"both",animationName:Xa},"&.fadeOutDown":{animationFillMode:"both",animationName:Ea},"&.fadeOutUp":{animationFillMode:"both",animationName:Ya},"&.fadeOutDownBig":{animationFillMode:"both",animationName:_a},"&.fadeOutUpBig":{animationFillMode:"both",animationName:Ga},"&.fadeOutLeftBig":{animationFillMode:"both",animationName:qa},"&.fadeOutRightBig":{animationFillMode:"both",animationName:Za},"&.fadeOutTopLeft":{animationFillMode:"both",animationName:Ja},"&.fadeOutBottomRight":{animationFillMode:"both",animationName:Qa},"&.fadeOutTopRight":{animationFillMode:"both",animationName:Pa},"&.fadeOutBottomLeft":{animationFillMode:"both",animationName:en}}),nn=new i.Keyframe("flipInX",{from:{opacity:0,animationTimingFunction:"ease-in",transform:"perspective(400px) rotate3d(1, 0, 0, 90deg)"},"40%":{animationTimingFunction:"ease-in",transform:"perspective(400px) rotate3d(1, 0, 0, -20deg)"},"60%":{opacity:1,transform:"perspective(400px) rotate3d(1, 0, 0, 10deg)"},"80%":{transform:"perspective(400px) rotate3d(1, 0, 0, -5deg)"},to:{transform:"perspective(400px)"}}),on=new i.Keyframe("flipInY",{from:{opacity:0,animationTimingFunction:"ease-in",transform:"perspective(400px) rotate3d(0, 1, 0, 90deg)"},"40%":{animationTimingFunction:"ease-in",transform:"perspective(400px) rotate3d(0, 1, 0, -20deg)"},"60%":{opacity:1,transform:"perspective(400px) rotate3d(0, 1, 0, 10deg)"},"80%":{transform:"perspective(400px) rotate3d(0, 1, 0, -5deg)"},to:{transform:"perspective(400px)"}}),ln=new i.Keyframe("flipOutX",{from:{transform:"perspective(400px)"},"40%":{opacity:1,transform:"perspective(400px) rotate3d(1, 0, 0, -20deg)"},to:{opacity:0,transform:"perspective(400px) rotate3d(1, 0, 0, 90deg)"}}),rn=new i.Keyframe("flipOutY",{from:{transform:"perspective(400px)"},"40%":{opacity:1,transform:"perspective(400px) rotate3d(0, 1, 0, -15deg)"},to:{opacity:0,transform:"perspective(400px) rotate3d(0, 1, 0, 90deg)"}}),dn=()=>({"&.flipInX":{animationFillMode:"both",backfaceVisibility:"visible !important",animationName:nn},"&.flipInY":{animationFillMode:"both",backfaceVisibility:"visible !important",animationName:on}}),cn=()=>({"&.flipOutX":{animationFillMode:"both",backfaceVisibility:"visible !important",animationDuration:`${.3*.75}s !important`,animationName:ln},"&.flipOutY":{animationFillMode:"both",backfaceVisibility:"visible !important",animationDuration:`${.3*.75}s !important`,animationName:rn}}),sn=new i.Keyframe("lightSpeedInLeft",{from:{opacity:0,transform:"translate3d(-100%, 0, 0) skewX(30deg)"},"60%":{opacity:1,transform:"skewX(-20deg)"},"80%":{transform:"skewX(5deg)"},to:{transform:"translate3d(0, 0, 0)"}}),un=new i.Keyframe("lightSpeedInRight",{from:{opacity:0,transform:"translate3d(100%, 0, 0) skewX(-30deg)"},"60%":{opacity:1,transform:"skewX(20deg)"},"80%":{transform:"skewX(-5deg)"},to:{transform:"translate3d(0, 0, 0)"}}),mn=new i.Keyframe("lightSpeedOutLeft",{from:{opacity:1},to:{opacity:0,transform:"translate3d(-100%, 0, 0) skewX(-30deg)"}}),fn=new i.Keyframe("lightSpeedOutRight",{from:{opacity:1},to:{opacity:0,transform:"translate3d(100%, 0, 0) skewX(30deg)"}}),hn=()=>({"&.lightSpeedInLeft":{animationFillMode:"both",animationTimingFunction:"ease-out",animationName:sn},"&.lightSpeedInRight":{animationFillMode:"both",animationTimingFunction:"ease-out",animationName:un}}),gn=()=>({"&.lightSpeedOutLeft":{animationFillMode:"both",animationTimingFunction:"ease-in",animationName:mn},"&.lightSpeedOutRight":{animationFillMode:"both",animationTimingFunction:"ease-in",animationName:fn}}),yn=new i.Keyframe("rotateIn",{from:{opacity:0,transform:"rotate3d(0, 0, 1, -200deg)"},to:{opacity:1,transform:"translate3d(0, 0, 0)"}}),bn=new i.Keyframe("rotateInDownLeft",{from:{opacity:0,transform:"rotate3d(0, 0, 1, -45deg)"},to:{opacity:1,transform:"translate3d(0, 0, 0)"}}),pn=new i.Keyframe("rotateInDownRight",{from:{opacity:0,transform:"rotate3d(0, 0, 1, 45deg)"},to:{opacity:1,transform:"translate3d(0, 0, 0)"}}),xn=new i.Keyframe("rotateInUpLeft",{from:{opacity:0,transform:"rotate3d(0, 0, 1, 45deg)"},to:{opacity:1,transform:"translate3d(0, 0, 0)"}}),Cn=new i.Keyframe("rotateInUpRight",{from:{opacity:0,transform:"rotate3d(0, 0, 1, -90deg)"},to:{opacity:1,transform:"translate3d(0, 0, 0)"}}),Sn=new i.Keyframe("rotateOut",{from:{opacity:1},to:{opacity:0,transform:"rotate3d(0, 0, 1, 200deg)"}}),wn=new i.Keyframe("rotateOutDownLeft",{from:{opacity:1},to:{opacity:0,transform:"rotate3d(0, 0, 1, 45deg)"}}),Nn=new i.Keyframe("rotateOutDownRight",{from:{opacity:1},to:{opacity:0,transform:"rotate3d(0, 0, 1, -45deg)"}}),In=new i.Keyframe("rotateOutUpLeft",{from:{opacity:1},to:{opacity:0,transform:"rotate3d(0, 0, 1, -45deg)"}}),Mn=new i.Keyframe("rotateOutUpRight",{from:{opacity:1},to:{opacity:0,transform:"rotate3d(0, 0, 1, 90deg)"}}),kn=()=>({"&.rotateIn":{animationFillMode:"both",transformOrigin:"center",animationName:yn},"&.rotateInDownLeft":{animationFillMode:"both",transformOrigin:"left bottom",animationName:bn},"&.rotateInDownRight":{animationFillMode:"both",transformOrigin:"right bottom",animationName:pn},"&.rotateInUpLeft":{animationFillMode:"both",transformOrigin:"left bottom",animationName:xn},"&.rotateInUpRight":{animationFillMode:"both",transformOrigin:"right bottom",animationName:Cn}}),On=()=>({"&.rotateOut":{animationFillMode:"both",transformOrigin:"center",animationName:Sn},"&.rotateOutDownLeft":{animationFillMode:"both",transformOrigin:"left bottom",animationName:wn},"&.rotateOutDownRight":{animationFillMode:"both",transformOrigin:"right bottom",animationName:Nn},"&.rotateOutUpLeft":{animationFillMode:"both",transformOrigin:"left bottom",animationName:In},"&.rotateOutUpRight":{animationFillMode:"both",transformOrigin:"right bottom",animationName:Mn}}),Rn=new i.Keyframe("rollIn",{from:{opacity:0,transform:"translate3d(-100%, 0, 0) rotate3d(0, 0, 1, -120deg)"},to:{opacity:1,transform:"translate3d(0, 0, 0)"}}),Bn=new i.Keyframe("rollOut",{from:{opacity:1},to:{opacity:0,transform:"translate3d(100%, 0, 0) rotate3d(0, 0, 1, 120deg)"}}),Vn=()=>({"&.rollIn":{animationFillMode:"both",animationName:Rn}}),Fn=()=>({"&.rollOut":{animationFillMode:"both",animationName:Bn}}),Tn=new i.Keyframe("zoomIn",{from:{opacity:0,transform:"scale3d(0.3, 0.3, 0.3)"},"50%":{opacity:1}}),$n=new i.Keyframe("zoomInDown",{from:{opacity:0,transform:"scale3d(0.1, 0.1, 0.1) translate3d(0, -1000px, 0)",animationTimingFunction:"cubic-bezier(0.55, 0.055, 0.675, 0.19)"},"60%":{opacity:1,transform:"scale3d(0.475, 0.475, 0.475) translate3d(0, 60px, 0)",animationTimingFunction:"cubic-bezier(0.175, 0.885, 0.32, 1)"}}),Ln=new i.Keyframe("zoomInLeft",{from:{opacity:0,transform:"scale3d(0.1, 0.1, 0.1) translate3d(-1000px, 0, 0)",animationTimingFunction:"cubic-bezier(0.55, 0.055, 0.675, 0.19)"},"60%":{opacity:1,transform:"scale3d(0.475, 0.475, 0.475) translate3d(10px, 0, 0)",animationTimingFunction:"cubic-bezier(0.175, 0.885, 0.32, 1)"}}),Kn=new i.Keyframe("zoomInRight",{from:{opacity:0,transform:"scale3d(0.1, 0.1, 0.1) translate3d(1000px, 0, 0)",animationTimingFunction:"cubic-bezier(0.55, 0.055, 0.675, 0.19)"},"60%":{opacity:1,transform:"scale3d(0.475, 0.475, 0.475) translate3d(-10px, 0, 0)",animationTimingFunction:"cubic-bezier(0.175, 0.885, 0.32, 1)"}}),Dn=new i.Keyframe("zoomInUp",{from:{opacity:0,transform:"scale3d(0.1, 0.1, 0.1) translate3d(0, 1000px, 0)",animationTimingFunction:"cubic-bezier(0.55, 0.055, 0.675, 0.19)"},"60%":{opacity:1,transform:"scale3d(0.475, 0.475, 0.475) translate3d(0, -60px, 0)",animationTimingFunction:"cubic-bezier(0.175, 0.885, 0.32, 1)"}}),zn=new i.Keyframe("zoomOut",{from:{opacity:1},"50%":{opacity:0,transform:"scale3d(0.3, 0.3, 0.3)"},to:{opacity:0}}),Hn=new i.Keyframe("zoomOutDown",{"40%":{opacity:1,transform:"scale3d(0.475, 0.475, 0.475) translate3d(0, -60px, 0)",animationTimingFunction:"cubic-bezier(0.55, 0.055, 0.675, 0.19)"},to:{opacity:0,transform:"scale3d(0.1, 0.1, 0.1) translate3d(0, 2000px, 0)",animationTimingFunction:"cubic-bezier(0.175, 0.885, 0.32, 1)"}}),jn=new i.Keyframe("zoomOutLeft",{"40%":{opacity:1,transform:"scale3d(0.475, 0.475, 0.475) translate3d(42px, 0, 0)"},to:{opacity:0,transform:"scale(0.1) translate3d(-2000px, 0, 0)"}}),Wn=new i.Keyframe("zoomOutRight",{"40%":{opacity:1,transform:"scale3d(0.475, 0.475, 0.475) translate3d(-42px, 0, 0)"},to:{opacity:0,transform:"scale(0.1) translate3d(2000px, 0, 0)"}}),An=new i.Keyframe("zoomOutUp",{"40%":{opacity:1,transform:"scale3d(0.475, 0.475, 0.475) translate3d(0, 60px, 0)",animationTimingFunction:"cubic-bezier(0.55, 0.055, 0.675, 0.19)"},to:{opacity:0,transform:"scale3d(0.1, 0.1, 0.1) translate3d(0, -2000px, 0)",animationTimingFunction:"cubic-bezier(0.175, 0.885, 0.32, 1)"}}),vn=()=>({"&.zoomIn":{animationFillMode:"both",animationName:Tn},"&.zoomInDown":{animationFillMode:"both",animationName:$n},"&.zoomInLeft":{animationFillMode:"both",animationName:Ln},"&.zoomInRight":{animationFillMode:"both",animationName:Kn},"&.zoomInUp":{animationFillMode:"both",animationName:Dn}}),Un=()=>({"&.zoomOut":{animationFillMode:"both",animationName:zn},"&.zoomOutDown":{animationFillMode:"both",transformOrigin:"center bottom",animationName:Hn},"&.zoomOutLeft":{animationFillMode:"both",transformOrigin:"left center",animationName:jn},"&.zoomOutRight":{animationFillMode:"both",transformOrigin:"right center",animationName:Wn},"&.zoomOutUp":{animationFillMode:"both",transformOrigin:"center bottom",animationName:An}}),Xn=new i.Keyframe("slideInDown",{from:{transform:"translate3d(0, -100%, 0)",visibility:"visible"},to:{transform:"translate3d(0, 0, 0)"}}),En=new i.Keyframe("slideInLeft",{from:{transform:"translate3d(-100%, 0, 0)",visibility:"visible"},to:{transform:"translate3d(0, 0, 0)"}}),Yn=new i.Keyframe("slideInRight",{from:{transform:"translate3d(100%, 0, 0)",visibility:"visible"},to:{transform:"translate3d(0, 0, 0)"}}),_n=new i.Keyframe("slideInUp",{from:{transform:"translate3d(0, 100%, 0)",visibility:"visible"},to:{transform:"translate3d(0, 0, 0)"}}),Gn=new i.Keyframe("slideOutDown",{from:{transform:"translate3d(0, 0, 0)"},to:{transform:"translate3d(0, 100%, 0)",visibility:"hidden"}}),qn=new i.Keyframe("slideOutLeft",{from:{transform:"translate3d(0, 0, 0)"},to:{transform:"translate3d(-100%, 0, 0)",visibility:"hidden"}}),Zn=new i.Keyframe("slideOutRight",{from:{transform:"translate3d(0, 0, 0)"},to:{transform:"translate3d(100%, 0, 0)",visibility:"hidden"}}),Jn=new i.Keyframe("slideOutUp",{from:{transform:"translate3d(0, 0, 0)"},to:{transform:"translate3d(0, -100%, 0)",visibility:"hidden"}}),Qn=()=>({"&.slideInDown":{animationFillMode:"both",animationName:Xn},"&.slideInLeft":{animationFillMode:"both",animationName:En},"&.slideInRight":{animationFillMode:"both",animationName:Yn},"&.slideInUp":{animationFillMode:"both",animationName:_n}}),Pn=()=>({"&.slideOutDown":{animationFillMode:"both",animationName:Gn},"&.slideOutLeft":{animationFillMode:"both",animationName:qn},"&.slideOutRight":{animationFillMode:"both",animationName:Zn},"&.slideOutUp":{animationFillMode:"both",animationName:Jn}}),eo=e=>({[e.componentCls]:{"&-enter":{background:"transparent",animationDuration:".3s !important",...ga(),...Oa(),...tn(),...dn(),...hn(),...kn(),...Vn(),...vn(),...Qn()},"&-leave":{display:"none",background:"transparent",animationDuration:".3s !important",...ya(),...Ra(),...an(),...cn(),...gn(),...On(),...Fn(),...Un(),...Pn()}}});function to(e){return i.useStyle("LayoutPageTranstion",a=>{const n=i.mergeToken(a);return[eo(n)]},e)}const ao=t.defineComponent({name:"PageTranstion",props:{disabled:{type:Boolean,default:!1},reverse:{type:Boolean,default:!0},name:{type:String,default:"bounce"},direction:String},setup(e,{slots:a}){const n=K.getPrefixCls({suffixCls:"page-transtion",isPor:!0}),{wrapSSR:l,hashId:o}=to(n),c=t.computed(()=>[m(!1),`${n}-enter`,o.value].join(" ")),h=t.computed(()=>[m(!0),`${n}-leave`,o.value].join(" ")),m=b=>{const O=ge.preset.find(r=>e.name==r.name);if(O==null)return"";let g="";e.direction==null?g=O.directions[0]:g=O.directions.find(r=>r==e.direction)||"",g=g==null||g==="default"?"":g,g!=""&&(g=b&&e.reverse?w(g,O.directions):g,g=g[0].toUpperCase()+g.substring(1));const $=b?"Out":"In";return O.name+$+g},w=(b,O)=>{if(b.length==0||b=="x"||b=="y")return b;let g=O.indexOf(b);return g=g%2==1?g-1:g+1,O[g]};return()=>{var b;return e.disabled?(b=a.default)==null?void 0:b.call(a):l(t.createVNode(t.Transition,{enterActiveClass:c.value,leaveActiveClass:h.value},{default:()=>{var O;return[(O=a.default)==null?void 0:O.call(a)]}}))}}});V.BaseMenu=be,V.DefaultHeader=Ge,V.GProLayout=_t,V.GlobalFooter=se,V.PageContainer=Bt,V.PageLoading=Ie,V.PageTranstion=ao,V.SettingDrawer=ia,V.SiderMenuWrapper=de,V.WrapContent=ue,V.baseMenuProps=oe,V.clearMenuItem=Oe,V.createContext=Te,V.createRouteContext=Le,V.flatMap=Re,V.getMatchedList=ht,V.getMenuData=Gt,V.getMenuFirstChildren=Be,V.getMenuFirstLastChildPath=Ve,V.handleThemeConfig=Fe,V.hanlePathKey=v,V.provideProLayoutContext=Ke,V.useContext=$e,V.useProLayoutContext=Q,Object.defineProperty(V,Symbol.toStringTag,{value:"Module"})});
|
package/dist/props.d.ts
CHANGED
|
@@ -764,10 +764,7 @@ export declare const basicLayoutProps: {
|
|
|
764
764
|
type: PropType<CSSProperties>;
|
|
765
765
|
default: () => null;
|
|
766
766
|
};
|
|
767
|
-
breadcrumb:
|
|
768
|
-
type: PropType<BreadcrumbProps>;
|
|
769
|
-
default: () => undefined;
|
|
770
|
-
};
|
|
767
|
+
breadcrumb: PropType<BreadcrumbProps>;
|
|
771
768
|
disableContentMargin: import("vue-types").VueTypeValidableDef<boolean>;
|
|
772
769
|
isChildrenLayout: import("vue-types").VueTypeValidableDef<boolean>;
|
|
773
770
|
loading: import("vue-types").VueTypeValidableDef<boolean>;
|