@gx-design-vue/pro-layout 0.1.0-beta.36 → 0.1.0-beta.37

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