text: (self.webpackChunkgosh_esp=self.webpackChunkgosh_esp||[]).push([[767],{72842:function(U){U.exports={linkGroup:"linkGroup___3u5k3"}},54178:function(U){U.exports={activitiesList:"activitiesList___1iz4w",username:"username___2CaQo",event:"event___37Bra",pageHeaderContent:"pageHeaderContent___1v9Rj",avatar:"avatar___2REGU",content:"content___2JXYM",contentTitle:"contentTitle___2ZQYk",extraContent:"extraContent___171XZ",statItem:"statItem___WnzK8",members:"members___pCbZL",member:"member___1PrAP",projectList:"projectList___1-phY",cardTitle:"cardTitle___i2mGR",projectGrid:"projectGrid___2_ET-",projectItemContent:"projectItemContent___1Af7z",datetime:"datetime___3wNS1",activeCard:"activeCard___2L47N"}},68122:function(U,b,r){"use strict";r.r(b),r.d(b,{default:function(){return Q}});var D=r(13062),G=r(71230),f=r(89032),A=r(15746),et=r(72012),E=r(39144),W=r(54421),L=r(38272),J=r(95300),H=r(7277),it=r(94233),C=r(51890),V=r(71748),K=r(33860),N=r(6505),Z=r(58086),P=r(19611),X=r(15103),rt=r(30381),k=r.n(rt),w=r(57663),T=r(71577),q=r(67294),_=r(49101),at=r(72842),e=r.n(at),t=r(85893),s=function(v){var n=v.links,g=v.linkElement,M=v.onAdd;return(0,t.jsxs)("div",{className:e().linkGroup,children:[n.map(function(x){return(0,q.createElement)(g,{key:"linkGroup-item-".concat(x.id||x.title),to:x.href,href:x.href},x.title)}),(0,t.jsxs)(T.Z,{size:"small",type:"primary",ghost:!0,onClick:M,children:[(0,t.jsx)(_.Z,{})," \u6DFB\u52A0"]})]})};s.defaultProps={links:[],onAdd:function(){},linkElement:"a"};var i=s,u=r(54178),a=r.n(u),l=r(3182),p=r(94043),c=r.n(p);function d(){return j.apply(this,arguments)}function j(){return j=(0,l.Z)(c().mark(function m(){return c().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",(0,Z.WY)("/api/project/notice"));case 1:case"end":return n.stop()}},m)})),j.apply(this,arguments)}function S(){return y.apply(this,arguments)}function y(){return y=(0,l.Z)(c().mark(function m(){return c().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",(0,Z.WY)("/api/activities"));case 1:case"end":return n.stop()}},m)})),y.apply(this,arguments)}function z(){return R.apply(this,arguments)}function R(){return R=(0,l.Z)(c().mark(function m(){return c().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",(0,Z.WY)("/api/fake_workplace_chart_data"));case 1:case"end":return n.stop()}},m)})),R.apply(this,arguments)}var B=[{title:"\u64CD\u4F5C\u4E00",href:""},{title:"\u64CD\u4F5C\u4E8C",href:""},{title:"\u64CD\u4F5C\u4E09",href:""},{title:"\u64CD\u4F5C\u56DB",href:""},{title:"\u64CD\u4F5C\u4E94",href:""},{title:"\u64CD\u4F5C\u516D",href:""}],tt=function(v){var n=v.currentUser,g=n&&Object.keys(n).length;return g?(0,t.jsxs)("div",{className:a().pageHeaderContent,children:[(0,t.jsx)("div",{className:a().avatar,children:(0,t.jsx)(C.C,{size:"large",src:n.avatar})}),(0,t.jsxs)("div",{className:a().content,children:[(0,t.jsxs)("div",{className:a().contentTitle,children:["\u65E9\u5B89\uFF0C",n.name,"\uFF0C\u795D\u4F60\u5F00\u5FC3\u6BCF\u4E00\u5929\uFF01"]}),(0,t.jsxs)("div",{children:[n.title," |",n.group]})]})]}):(0,t.jsx)(K.Z,{avatar:!0,paragraph:{rows:1},active:!0})},Y=function(){return(0,t.jsxs)("div",{className:a().extraContent,children:[(0,t.jsx)("div",{className:a().statItem,children:(0,t.jsx)(H.Z,{title:"\u9879\u76EE\u6570",value:56})}),(0,t.jsx)("div",{className:a().statItem,children:(0,t.jsx)(H.Z,{title:"\u56E2\u961F\u5185\u6392\u540D",value:8,suffix:"/ 24"})}),(0,t.jsx)("div",{className:a().statItem,children:(0,t.jsx)(H.Z,{title:"\u9879\u76EE\u8BBF\u95EE",value:2223})})]})},F=function(){var v,n=(0,Z.QT)(d),g=n.loading,M=n.data,x=M===void 0?[]:M,I=(0,Z.QT)(S),nt=I.loading,st=I.data,lt=st===void 0?[]:st,ot=(0,Z.QT)(z),O=ot.data,ut=function(h){var ct=h.template.split(/@\{([^{}]*)\}/gi).map(function($){return h[$]?(0,t.jsx)("a",{href:h[$].link,children:h[$].name},h[$].name):$});return(0,t.jsx)(L.ZP.Item,{children:(0,t.jsx)(L.ZP.Item.Meta,{avatar:(0,t.jsx)(C.C,{src:h.user.avatar}),title:(0,t.jsxs)("span",{children:[(0,t.jsx)("a",{className:a().username,children:h.user.name}),"\xA0",(0,t.jsx)("span",{className:a().event,children:ct})]}),description:(0,t.jsx)("span",{className:a().datetime,title:h.updatedAt,children:k()(h.updatedAt).fromNow()})})},h.id)};return(0,t.jsx)(X.ZP,{content:(0,t.jsx)(tt,{currentUser:{avatar:"https://gw.alipayobjects.com/zos/rmsportal/BiazfanxmamNRoxxVxka.png",name:"\u5434\u5F66\u7956",userid:"00000001",email:"antdesign@alipay.com",signature:"\u6D77\u7EB3\u767E\u5DDD\uFF0C\u6709\u5BB9\u4E43\u5927",title:"\u4E13\u5BB6",group:"\u4E2D\u76F4\u673A\u5173\uFF0D\u67D0\u67D0\u90E8\uFF0D\u67D0\u67D0\u5385\uFF0D\u7EFC\u5408\u5904"}}),extraContent:(0,t.jsx)(Y,{}),children:(0,t.jsxs)(G.Z,{gutter:24,children:[(0,t.jsxs)(A.Z,{xl:16,lg:24,md:24,sm:24,xs:24,children:[(0,t.jsx)(E.Z,{className:a().projectList,style:{marginBottom:24},title:"\u8FDB\u884C\u4E2D\u7684\u9879\u76EE",bordered:!1,extra:(0,t.jsx)(P.rU,{to:"/",children:"\u5168\u90E8\u9879\u76EE"}),loading:g,bodyStyle:{padding:0},children:x.map(function(o){return(0,t.jsx)(E.Z.Grid,{className:a().projectGrid,children:(0,t.jsxs)(E.Z,{bodyStyle:{padding:0},bordered:!1,children:[(0,t.jsx)(E.Z.Meta,{title:(0,t.jsxs)("div",{className:a().cardTitle,children:[(0,t.jsx)(C.C,{size:"small",src:o.logo}),(0,t.jsx)(P.rU,{to:o.href,children:o.title})]}),description:o.description}),(0,t.jsxs)("div",{className:a().projectItemContent,children:[(0,t.jsx)(P.rU,{to:o.memberLink,children:o.member||""}),o.updatedAt&&(0,t.jsx)("span",{className:a().datetime,title:o.updatedAt,children:k()(o.updatedAt).fromNow()})]})]})},o.id)})}),(0,t.jsx)(E.Z,{bodyStyle:{padding:0},bordered:!1,className:a().activeCard,title:"\u52A8\u6001",loading:nt,children:(0,t.jsx)(L.ZP,{loading:nt,renderItem:function(h){return ut(h)},dataSource:lt,className:a().activitiesList,size:"large"})})]}),(0,t.jsxs)(A.Z,{xl:8,lg:24,md:24,sm:24,xs:24,children:[(0,t.jsx)(E.Z,{style:{marginBottom:24},title:"\u5FEB\u901F\u5F00\u59CB / \u4FBF\u6377\u5BFC\u822A",bordered:!1,bodyStyle:{padding:0},children:(0,t.jsx)(i,{onAdd:function(){},links:B,linkElement:P.rU})}),(0,t.jsx)(E.Z,{style:{marginBottom:24},bordered:!1,title:"XX \u6307\u6570",loading:(O==null||(v=O.radarData)===null||v===void 0?void 0:v.length)===0,children:(0,t.jsx)("div",{className:a().chart,children:(0,t.jsx)(N.Fk,{height:343,data:(O==null?void 0:O.radarData)||[],angleField:"label",seriesField:"name",radiusField:"value",area:{visible:!1},point:{visible:!0},legend:{position:"bottom-center"}})})}),(0,t.jsx)(E.Z,{bodyStyle:{paddingTop:12,paddingBottom:12},bordered:!1,title:"\u56E2\u961F",loading:g,children:(0,t.jsx)("div",{className:a().members,children:(0,t.jsx)(G.Z,{gutter:48,children:x.map(function(o){return(0,t.jsx)(A.Z,{span:12,children:(0,t.jsxs)(P.rU,{to:o.href,children:[(0,t.jsx)(C.C,{src:o.logo,size:"small"}),(0,t.jsx)("span",{className:a().member,children:o.member})]})},"members-item-".concat(o.id))})})})})]})]})})},Q=F},19611:function(U,b,r){"use strict";r.d(b,{rU:function(){return X},OL:function(){return _}});var D=r(19630),G=r(41788),f=r(67294),A=r(97175),et=r(45697),E=r.n(et),W=r(22122),L=r(19756),J=r(2177),H=function(e){(0,G.Z)(t,e);function t(){for(var i,u=arguments.length,a=new Array(u),l=0;l<u;l++)a[l]=arguments[l];return i=e.call.apply(e,[this].concat(a))||this,i.history=(0,A.lX)(i.props),i}var s=t.prototype;return s.render=function(){return f.createElement(D.F0,{history:this.history,children:this.props.children})},t}(f.Component),it=function(e){(0,G.Z)(t,e);function t(){for(var i,u=arguments.length,a=new Array(u),l=0;l<u;l++)a[l]=arguments[l];return i=e.call.apply(e,[this].concat(a))||this,i.history=(0,A.q_)(i.props),i}var s=t.prototype;return s.render=function(){return f.createElement(D.F0,{history:this.history,children:this.props.children})},t}(f.Component),C=function(t,s){return typeof t=="function"?t(s):t},V=function(t,s){return typeof t=="string"?(0,A.ob)(t,null,null,s):t},K=function(t){return t},N=f.forwardRef;typeof N=="undefined"&&(N=K);function Z(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}var P=N(function(e,t){var s=e.innerRef,i=e.navigate,u=e.onClick,a=(0,L.Z)(e,["innerRef","navigate","onClick"]),l=a.target,p=(0,W.Z)({},a,{onClick:function(d){try{u&&u(d)}catch(j){throw d.preventDefault(),j}!d.defaultPrevented&&d.button===0&&(!l||l==="_self")&&!Z(d)&&(d.preventDefault(),i())}});return K!==N?p.ref=t||s:p.ref=s,f.createElement("a",p)}),X=N(function(e,t){var s=e.component,i=s===void 0?P:s,u=e.replace,a=e.to,l=e.innerRef,p=(0,L.Z)(e,["component","replace","to","innerRef"]);return f.createElement(D.s6.Consumer,null,function(c){c||(0,J.Z)(!1);var d=c.history,j=V(C(a,c.location),c.location),S=j?d.createHref(j):"",y=(0,W.Z)({},p,{href:S,navigate:function(){var R=C(a,c.location),B=u?d.replace:d.push;B(R)}});return K!==N?y.ref=t||l:y.innerRef=l,f.createElement(i,y)})});if(!1)var rt,k;var w=function(t){return t},T=f.forwardRef;typeof T=="undefined"&&(T=w);function q(){for(var e=arguments.length,t=new Array(e),s=0;s<e;s++)t[s]=arguments[s];return t.filter(function(i){return i}).join(" ")}var _=T(function(e,t){var s=e["aria-current"],i=s===void 0?"page":s,u=e.activeClassName,a=u===void 0?"active":u,l=e.activeStyle,p=e.className,c=e.exact,d=e.isActive,j=e.location,S=e.sensitive,y=e.strict,z=e.style,R=e.to,B=e.innerRef,tt=(0,L.Z)(e,["aria-current","activeClassName","activeStyle","className","exact","isActive","location","sensitive","strict","style","to","innerRef"]);return f.createElement(D.s6.Consumer,null,function(Y){Y||(0,J.Z)(!1);var F=j||Y.location,Q=V(C(R,F),F),m=Q.pathname,v=m&&m.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1"),n=v?(0,D.LX)(F.pathname,{path:v,exact:c,sensitive:S,strict:y}):null,g=!!(d?d(n,F):n),M=g?q(p,a):p,x=g?(0,W.Z)({},z,{},l):z,I=(0,W.Z)({"aria-current":g&&i||null,className:M,style:x,to:Q},tt);return w!==T?I.ref=t||B:I.innerRef=B,f.createElement(X,I)})});if(!1)var at}}]);
  