(this.webpackJsonp=this.webpackJsonp||[]).push([[165],{CyMe:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var n in a)Object.prototype.hasOwnProperty.call(a,n)&&(e[n]=a[n])}return e},l=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var a=[],n=!0,l=!1,r=void 0;try{for(var c,i=e[Symbol.iterator]();!(n=(c=i.next()).done)&&(a.push(c.value),!t||a.length!==t);n=!0);}catch(e){l=!0,r=e}finally{try{!n&&i.return&&i.return()}finally{if(l)throw r}}return a}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},r=a("cDcd"),c=d(r),i=a("eO8H"),u=d(a("CnBM")),s=d(a("HUFq"));a("VUSe");var o=d(a("vDqi")),m=d(a("eGzb"));function d(e){return e&&e.__esModule?e:{default:e}}var f=(0,u.default)({loader:function(){return Promise.all([a.e(6),a.e(137)]).then(a.t.bind(null,"8Or8",7))},loading:s.default});t.default=function(e){var t=e.match.params.OIdentifier,a=e.match.params.groupId,u=e.location.pathname,s=(0,r.useState)(void 0),d=l(s,2),p=d[0],v=d[1],E=(0,r.useState)(!1),g=l(E,2),b=g[0],h=g[1];return(0,r.useEffect)((function(){u&&(u.indexOf("/"+t+"/teams/"+a+"/setting")>-1?h(!1):h(!0))}),[u]),(0,r.useEffect)((function(){var e;t&&a&&(e="/organizations/"+t+"/teams/"+a+".json",o.default.get(e).then((function(e){e&&e.data&&v(e.data)})).catch((function(e){})))}),[t,a]),(0,r.useEffect)((function(){if(p){var e=p.nickname,t=p.organization;document.title="团队设置-"+e+"-"+t.nickname}}),[p]),c.default.createElement("div",{className:"teamDetail",style:{paddingTop:"0px"}},c.default.createElement("div",null,c.default.createElement("i",{className:"iconfont icon-zuobiao mr5"}),c.default.createElement(i.Link,{to:"/"+t},p&&p.organization&&p.organization.nickname),c.default.createElement("i",{className:"iconfont icon-youjiantou ml3 mr3 font-12 color-grey-9"}),c.default.createElement("span",{className:"color-grey-9"},p?p.nickname:"新建团队")),p&&c.default.createElement(m.default,{src:"/"+t+"/teams/"+a,title:p.nickname||p.name,rightBtn:b&&c.default.createElement("span",{className:"subNavs"},c.default.createElement(i.Link,{to:"/"+t+"/members",className:u==="/"+t+"/members"?"active":""},c.default.createElement("span",null,"组织成员"),p.num_users&&c.default.createElement("lable",null,p.num_users)),c.default.createElement(i.Link,{to:"/"+t+"/teams",className:u==="/"+t+"/teams"?"active":""},c.default.createElement("span",null,"组织团队"),p.num_teams&&c.default.createElement("lable",null,p.num_teams))),desc:!b&&p.description}),c.default.createElement(i.Switch,e,c.default.createElement(i.Route,{path:"/:OIdentifier/teams/:groupId/setting",render:function(t){return c.default.createElement(f,n({},e,t,{includesAllProject:p&&p.includes_all_project}))}})))}},eGzb:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n,l=(n=a("cDcd"))&&n.__esModule?n:{default:n},r=a("sYIF"),c=a("eO8H");a("KkuB"),t.default=function(e){var t=e.img,a=e.title,n=e.desc,i=e.rightBtn,u=e.src,s=e.bottomInfos;return l.default.createElement("div",{className:"cards"},t&&l.default.createElement("div",{className:"img"},l.default.createElement("img",{src:(0,r.getImageUrl)("/"+t),alt:""})),l.default.createElement("div",{className:"content"},l.default.createElement("p",{className:"titles"},l.default.createElement(c.Link,{to:u},a),i),l.default.createElement("div",{className:"desc"},n),s))}}}]);