You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

2 lines
8.7 KiB

(self.webpackChunk=self.webpackChunk||[]).push([[301],{64014:function(m,F,e){"use strict";e.r(F),e.d(F,{default:function(){return w}});var S=e(5574),L=e.n(S),u=e(97857),h=e.n(u),c=e(19632),p=e.n(c),j=e(64599),C=e.n(j),d=e(88593),x=e(67294),v=e(8702),t=e(85893),Z=function(){return(0,t.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 200 200",children:[(0,t.jsxs)("defs",{children:[(0,t.jsxs)("linearGradient",{id:"linearGradient-1",x1:"62.102%",x2:"108.197%",y1:"0%",y2:"37.864%",children:[(0,t.jsx)("stop",{offset:"0%",stopColor:"#4285EB"}),(0,t.jsx)("stop",{offset:"100%",stopColor:"#2EC7FF"})]}),(0,t.jsxs)("linearGradient",{id:"linearGradient-2",x1:"69.644%",x2:"54.043%",y1:"0%",y2:"108.457%",children:[(0,t.jsx)("stop",{offset:"0%",stopColor:"#29CDFF"}),(0,t.jsx)("stop",{offset:"37.86%",stopColor:"#148EFF"}),(0,t.jsx)("stop",{offset:"100%",stopColor:"#0A60FF"})]}),(0,t.jsxs)("linearGradient",{id:"linearGradient-3",x1:"69.691%",x2:"16.723%",y1:"-12.974%",y2:"117.391%",children:[(0,t.jsx)("stop",{offset:"0%",stopColor:"#FA816E"}),(0,t.jsx)("stop",{offset:"41.473%",stopColor:"#F74A5C"}),(0,t.jsx)("stop",{offset:"100%",stopColor:"#F51D2C"})]}),(0,t.jsxs)("linearGradient",{id:"linearGradient-4",x1:"68.128%",x2:"30.44%",y1:"-35.691%",y2:"114.943%",children:[(0,t.jsx)("stop",{offset:"0%",stopColor:"#FA8E7D"}),(0,t.jsx)("stop",{offset:"51.264%",stopColor:"#F74A5C"}),(0,t.jsx)("stop",{offset:"100%",stopColor:"#F51D2C"})]})]}),(0,t.jsx)("g",{fill:"none",fillRule:"evenodd",stroke:"none",strokeWidth:"1",children:(0,t.jsx)("g",{transform:"translate(-20 -20)",children:(0,t.jsx)("g",{transform:"translate(20 20)",children:(0,t.jsxs)("g",{children:[(0,t.jsxs)("g",{fillRule:"nonzero",children:[(0,t.jsxs)("g",{children:[(0,t.jsx)("path",{fill:"url(#linearGradient-1)",d:"M91.588 4.177L4.18 91.513a11.981 11.981 0 000 16.974l87.408 87.336a12.005 12.005 0 0016.989 0l36.648-36.618c4.209-4.205 4.209-11.023 0-15.228-4.208-4.205-11.031-4.205-15.24 0l-27.783 27.76c-1.17 1.169-2.945 1.169-4.114 0l-69.802-69.744c-1.17-1.169-1.17-2.942 0-4.11l69.802-69.745c1.17-1.169 2.944-1.169 4.114 0l27.783 27.76c4.209 4.205 11.032 4.205 15.24 0 4.209-4.205 4.209-11.022 0-15.227L108.581 4.056c-4.719-4.594-12.312-4.557-16.993.12z"}),(0,t.jsx)("path",{fill:"url(#linearGradient-2)",d:"M91.588 4.177L4.18 91.513a11.981 11.981 0 000 16.974l87.408 87.336a12.005 12.005 0 0016.989 0l36.648-36.618c4.209-4.205 4.209-11.023 0-15.228-4.208-4.205-11.031-4.205-15.24 0l-27.783 27.76c-1.17 1.169-2.945 1.169-4.114 0l-69.802-69.744c-1.17-1.169-1.17-2.942 0-4.11l69.802-69.745c2.912-2.51 7.664-7.596 14.642-8.786 5.186-.883 10.855 1.062 17.009 5.837L108.58 4.056c-4.719-4.594-12.312-4.557-16.993.12z"})]}),(0,t.jsx)("path",{fill:"url(#linearGradient-3)",d:"M153.686 135.855c4.208 4.205 11.031 4.205 15.24 0l27.034-27.012c4.7-4.696 4.7-12.28 0-16.974l-27.27-27.15c-4.218-4.2-11.043-4.195-15.254.013-4.209 4.205-4.209 11.022 0 15.227l18.418 18.403c1.17 1.169 1.17 2.943 0 4.111l-18.168 18.154c-4.209 4.205-4.209 11.023 0 15.228z"})]}),(0,t.jsx)("ellipse",{cx:"100.519",cy:"100.437",fill:"url(#linearGradient-4)",rx:"23.6",ry:"23.581"})]})})})})]})},b=Z,H=e(33859),D=e(71577),T=function(n){return!n.route&&(n.noFound||n.notFound)||n.route.unaccessible&&(n.unAccessible||n.noAccessible)||(!n.route||n.route.unaccessible)&&(0,t.jsx)(H.ZP,{status:n.route?"403":"404",title:n.route?"403":"404",subTitle:n.route?"\u62B1\u6B49\uFF0C\u4F60\u65E0\u6743\u8BBF\u95EE\u8BE5\u9875\u9762":"\u62B1\u6B49\uFF0C\u4F60\u8BBF\u95EE\u7684\u9875\u9762\u4E0D\u5B58\u5728",extra:(0,t.jsx)(D.Z,{type:"primary",onClick:function(){return d.history.push("/")},children:"\u8FD4\u56DE\u9996\u9875"})})||n.children},B=T,I=e(66516),$=e(24093),W=e(11382),V=e(13013),G=e(1413),X={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M868 732h-70.3c-4.8 0-9.3 2.1-12.3 5.8-7 8.5-14.5 16.7-22.4 24.5a353.84 353.84 0 01-112.7 75.9A352.8 352.8 0 01512.4 866c-47.9 0-94.3-9.4-137.9-27.8a353.84 353.84 0 01-112.7-75.9 353.28 353.28 0 01-76-112.5C167.3 606.2 158 559.9 158 512s9.4-94.2 27.8-137.8c17.8-42.1 43.4-80 76-112.5s70.5-58.1 112.7-75.9c43.6-18.4 90-27.8 137.9-27.8 47.9 0 94.3 9.3 137.9 27.8 42.2 17.8 80.1 43.4 112.7 75.9 7.9 7.9 15.3 16.1 22.4 24.5 3 3.7 7.6 5.8 12.3 5.8H868c6.3 0 10.2-7 6.7-12.3C798 160.5 663.8 81.6 511.3 82 271.7 82.6 79.6 277.1 82 516.4 84.4 751.9 276.2 942 512.4 942c152.1 0 285.7-78.8 362.3-197.7 3.4-5.3-.4-12.3-6.7-12.3zm88.9-226.3L815 393.7c-5.3-4.2-13-.4-13 6.3v76H488c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h314v76c0 6.7 7.8 10.5 13 6.3l141.9-112a8 8 0 000-12.6z"}}]},name:"logout",theme:"outlined"},U=X,J=e(84089),E=function(n,r){return x.createElement(J.Z,(0,G.Z)((0,G.Z)({},n),{},{ref:r,icon:U}))};E.displayName="LogoutOutlined";var K=x.forwardRef(E);function P(a){var n,r;if(a.runtimeConfig.rightRender)return a.runtimeConfig.rightRender(a.initialState,a.setInitialState,a.runtimeConfig);var s=(0,t.jsx)(I.Z,{className:"umi-plugin-layout-menu",children:(0,t.jsxs)(I.Z.Item,{onClick:function(){var i;return a.runtimeConfig.logout&&((i=a.runtimeConfig)===null||i===void 0?void 0:i.logout(a.initialState))},children:[(0,t.jsx)(K,{}),"\u9000\u51FA\u767B\u5F55"]},"logout")}),f=(0,t.jsxs)("span",{className:"umi-plugin-layout-action",children:[(0,t.jsx)($.C,{size:"small",className:"umi-plugin-layout-avatar",src:((n=a.initialState)===null||n===void 0?void 0:n.avatar)||"https://gw.alipayobjects.com/zos/antfincdn/XAosXuNZyF/BiazfanxmamNRoxxVxka.png",alt:"avatar"}),(0,t.jsx)("span",{className:"umi-plugin-layout-name",children:(r=a.initialState)===null||r===void 0?void 0:r.name})]});return a.loading?(0,t.jsx)("div",{className:"umi-plugin-layout-right",children:(0,t.jsx)(W.Z,{size:"small",style:{marginLeft:8,marginRight:8}})}):(0,t.jsx)("div",{className:"umi-plugin-layout-right anticon",children:a.runtimeConfig.logout?(0,t.jsx)(V.Z,{overlay:s,overlayClassName:"umi-plugin-layout-container",children:f}):f})}var N=e(44886),Q=e(83228),Y=function a(n,r){if(n.length===0)return[];var s=[],f=C()(n),y;try{for(f.s();!(y=f.n()).done;){var i=y.value;r(i)?Array.isArray(i.routes)&&s.push.apply(s,p()(a(i.routes,r))):(s.push(i),Array.isArray(i.routes)&&(i.routes=a(i.routes,r)))}}catch(R){f.e(R)}finally{f.f()}return s},k=function a(n){return n.length===0?[]:n.map(function(r){var s=h()({},r);return r.originPath&&(s.path=r.originPath),Array.isArray(r.routes)&&(s.routes=a(r.routes)),s})},w=function(a){var n=(0,d.useLocation)(),r=(0,d.useNavigate)(),s=(0,d.useAppData)(),f=s.clientRoutes,y=s.pluginManager,i=N.t&&(0,N.t)("@@initialState")||{initialState:void 0,loading:!1,setInitialState:null},R=i.initialState,O=i.loading,z=i.setInitialState,A={locale:!1,primaryColor:"#FF4144",title:" "},q=void 0,g=y.applyPlugins({key:"layout",type:"modify",initialValue:h()({},i)}),_=(0,x.useMemo)(function(){var l;return(l=(0,d.matchRoutes)(f,n.pathname).pop())===null||l===void 0?void 0:l.route},[n.pathname]),tt=Y(f.filter(function(l){return l.id==="ant-design-pro-layout"}),function(l){return!!l.isLayout&&l.id!=="ant-design-pro-layout"||!!l.isWrapper}),nt=(0,Q.Mf)(k(tt)),et=L()(nt,1),at=et[0];return(0,t.jsx)(v.fGx,h()(h()({route:at,location:n,title:A.title||"plugin-layout",navTheme:"dark",siderWidth:256,onMenuHeaderClick:function(o){o.stopPropagation(),o.preventDefault(),r("/")},formatMessage:A.formatMessage||q,menu:{locale:A.locale},logo:b,menuItemRender:function(o,M){return o.isUrl||o.children?M:o.path&&n.pathname!==o.path?(0,t.jsx)(d.Link,{to:o.path.replace("/*",""),target:o.target,children:M}):M},itemRender:function(o){return(0,t.jsx)(d.Link,{to:o.path,children:o.breadcrumbName})},disableContentMargin:!0,fixSiderbar:!0,fixedHeader:!0},g),{},{rightContentRender:g.rightContentRender!==!1&&function(l){var o=P({runtimeConfig:g,loading:O,initialState:R,setInitialState:z});return g.rightContentRender?g.rightContentRender(l,o,{userConfig:A,runtimeConfig:g,loading:O,initialState:R,setInitialState:z}):o},children:(0,t.jsx)(B,{route:_,notFound:g.notFound,noAccessible:g.noAccessible,children:g.childrenRender?g.childrenRender((0,t.jsx)(d.Outlet,{}),a):(0,t.jsx)(d.Outlet,{})})}))}},64599:function(m,F,e){var S=e(96263);function L(u,h){var c=typeof Symbol<"u"&&u[Symbol.iterator]||u["@@iterator"];if(!c){if(Array.isArray(u)||(c=S(u))||h&&u&&typeof u.length=="number"){c&&(u=c);var p=0,j=function(){};return{s:j,n:function(){return p>=u.length?{done:!0}:{done:!1,value:u[p++]}},e:function(t){throw t},f:j}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var C=!0,d=!1,x;return{s:function(){c=c.call(u)},n:function(){var t=c.next();return C=t.done,t},e:function(t){d=!0,x=t},f:function(){try{!C&&c.return!=null&&c.return()}finally{if(d)throw x}}}}m.exports=L,m.exports.__esModule=!0,m.exports.default=m.exports}}]);