(this.webpackJsonp=this.webpackJsonp||[]).push([[48],{"/oTB":function(e,t,a){},"3Diz":function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=s(a("jsC+")),r=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var a=[],n=!0,r=!1,l=void 0;try{for(var o,u=e[Symbol.iterator]();!(n=(o=u.next()).done)&&(a.push(o.value),!t||a.length!==t);n=!0);}catch(e){r=!0,l=e}finally{try{!n&&u.return&&u.return()}finally{if(r)throw l}}return a}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")};a("aIZi");var l=a("q1tI"),o=s(l);a("MN5C");var u=s(a("cJAJ")),i=a("i8i4"),c=a("sYIF");function s(e){return e&&e.__esModule?e:{default:e}}t.default=function(e){var t=e.projectsId,a=e.branch,s=e.owner,f=e.changeBranch,d=e.branchList,m=e.tagflag,p=void 0===m||m,h=(0,l.useState)(a),v=r(h,2),g=v[0],E=v[1],y=(0,l.useState)(!1),b=r(y,2),w=b[0],_=b[1],N=(0,l.useRef)(null),x=(0,l.useRef)(null);(0,l.useEffect)((function(){document.addEventListener("click",j,!1)}),[]);var j=function(e){var t=e.target,a=(0,i.findDOMNode)(N.current),n=(0,i.findDOMNode)(x.current);if(a&&n){var r=a.contains(t),l=n.contains(t);r||l||_(!1)}};(0,l.useEffect)((function(){E(a)}),[a]);var k=o.default.createElement("div",{ref:N},o.default.createElement(u.default,{visible:w,changeBranch:function(e){_(!1);var t=(0,c.turnbar)(e);f(t)},tagflag:p,projectsId:t,owner:s,branchList:d}));return o.default.createElement(n.default,{placement:"bottomLeft",visible:w,overlay:k,overlayClassName:"branch-tagBox-list",trigger:["click"]},o.default.createElement("div",{className:"branch-tagBox",ref:x,onClick:function(){return _(!w)}},o.default.createElement("span",{className:"color-grey-9 mr3 ml8"},o.default.createElement("i",{className:"iconfont icon-fenzhi2 font-18"})),o.default.createElement("span",{className:"ant-dropdown-link task-hide",style:{fontWeight:"500",minWidth:"45px",maxWidth:"270px"}},g),o.default.createElement("i",{className:"showtag iconfont icon-sanjiaoxing-down font-15 color-grey-9 mr5 ml5 mt1"})))}},"760K":function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n,r=a("q1tI"),l=(n=r)&&n.__esModule?n:{default:n},o=a("sYIF");t.default=function(e){var t=e.treeValuePath,a=e.returnUlr,n=e.returnMain,r=e.getPathUrl,u=e.identifier;return l.default.createElement("li",{className:"listtablepath"},l.default.createElement("p",null,l.default.createElement("a",{onClick:n,className:"color-blue"},u),t.map((function(e,n){return l.default.createElement(l.default.Fragment,null,n===t.length-1?l.default.createElement("span",{className:"color-grey-6 subFileName",key:n},(0,o.returnbar)(e)):l.default.createElement("a",{onClick:function(){return a(""+r(t,n+1))},className:"color-blue subFileName"},(0,o.returnbar)(e)))}))))}},BtkW:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=v(a("W9HT")),r=v(a("2/Rp")),l=v(a("CtXQ")),o=v(a("9yH6")),u=v(a("Vl3Y")),i=v(a("5rEg")),c=function(){function e(e,t){for(var a=0;a-1)return void a(f.default.createElement("span",null,"分支名不能包含下列任何字符:^*\\/"))}}a()},a.state={submitType:"0",filename:"",isSpin:!1},a}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),c(t,[{key:"render",value:function(){var e=this,t=this.state,a=t.submitType,c=t.filename,s=t.isSpin,p=this.props.form.getFieldDecorator,h=this.props.match.params,v=h.branch,E=h.projectsId,y=h.owner,b=this.props,w=b.current_user,_=b.filepath,N=b.projectDetail,x=b.currentBranch,j=this.props.editor_type,k=x||v;return f.default.createElement("div",null,f.default.createElement("span",{className:"df",style:{alignItems:"center"}},f.default.createElement(m.Link,{to:"/"+(w&&w.login),className:"show-user-link"},f.default.createElement("img",{src:(0,d.getImageUrl)("/"+(w&&w.image_url)),alt:"",className:"screwImg"}),f.default.createElement("span",{className:"color-grey-3 ver-middle"},w&&w.username,":")),f.default.createElement("span",{className:"color-grey-8"},"提交变更")),f.default.createElement(n.default,{spinning:s},f.default.createElement("div",{className:"userScrew"},f.default.createElement("div",{className:"screwPanel"},f.default.createElement(u.default,null,f.default.createElement(u.default.Item,{style:{display:"upload"===j?"block":"none"}},p("path",{rules:[]})(f.default.createElement("div",{className:"setInputAddon"},f.default.createElement(i.default,{addonBefore:"/"+(N&&N.identifier)+"/",value:c||_,onChange:this.changeFileName,placeholder:"文件路径..."})))),f.default.createElement(u.default.Item,null,p("desc",{rules:[{required:!0,message:"请添加描述信息"}]})(f.default.createElement(g,{placeholder:"必填,描述主要修改类型和内容",authSize:{minRows:3,maxRows:5}}))),f.default.createElement(o.default.Group,{value:a,onChange:this.changeSubmittype},f.default.createElement(o.default,{value:"0",className:"mb10"},f.default.createElement("i",{className:"iconfont icon-banbenku font-16 mr5"}),"直接提交至",f.default.createElement("span",{className:"color-orange"},(0,d.returnbar)(k)),"分支"),f.default.createElement(o.default,{value:"1"},f.default.createElement(l.default,{type:"pull-request",className:"mr5"}),"为此提交创建一个",f.default.createElement("span",{className:"font-bd"},"新的分支"),"并发起合并请求")),"1"===a?f.default.createElement("div",{className:"mt15"},f.default.createElement(u.default.Item,{style:{paddingLeft:"24px"}},p("branchname",{rules:[{required:!0,message:"请输入分支名称"},{validator:this.checkBranchName}]})(f.default.createElement(i.default,{placeholder:"请输入分支名称",style:{width:"220px"}})))):""))),f.default.createElement("div",{className:"mt20"},f.default.createElement(r.default,{type:"primary",onClick:"update"===j?this.UpdateFile:this.subMitFrom,className:"mr30"},"提交变更"),f.default.createElement(r.default,{type:"primary grey",onClick:function(){e.props.history.push("/"+y+"/"+E)},className:"mr20"},"取消"))))}}]),t}(s.Component),y=u.default.create({name:"UserSubmitForm"})(E);t.default=y},Eitf:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=v(a("JsLm")),r=v(a("NJEC")),l=v(a("jsC+")),o=v(a("2fM7")),u=v(a("W9HT")),i=Object.assign||function(e){for(var t=1;t0?f.default.createElement(h.default,{menuList:e,hash:a.props.history.location.hash}):f.default.createElement(u.default,null)},a.state={value:void 0,language:void 0,languages:void 0,description:e.detail.replace_content,menuList:void 0},a}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),c(t,[{key:"render",value:function(){var e=this,t=this.props,a=t.readOnly,u=t.detail,c=t.current_user,s=t.isManager,d=t.isDeveloper,h=t.currentBranch,v=t.platform,g=t.md,E=t.type,y=this.state,b=y.language,w=y.languages,_=y.description,N=c&&c.login&&(s||d),x=o.default.Option;return f.default.createElement(f.default.Fragment,null,f.default.createElement(n.default,{className:"griditemAnchor",offsetTop:58},f.default.createElement("div",{className:"griditemCate"},g&&a&&f.default.createElement(l.default,{overlay:this.menu(),trigger:["hover"],overlayClassName:"menuslist"},f.default.createElement("span",{className:"catelogue mr20"},f.default.createElement("i",{className:"iconfont icon-muluicon font-12 mr5"}),f.default.createElement("span",null,"目录"))),f.default.createElement("span",{className:"color-grey-6 font-16"},function(e){if(0===e)return"0 B";var t=Math.floor(Math.log(e)/Math.log(1024));return(e/Math.pow(1024,t)).toFixed(2)+" "+["B","KB","MB","GB","TB","PB","EB","ZB","YB"][t]}(u&&u.size))),f.default.createElement("p",{className:"text-right"},N&&v&&f.default.createElement("div",null,a?f.default.createElement("span",null,u.direct_download?"":f.default.createElement("span",null,f.default.createElement("a",{onClick:function(){return e.DownLoadFile(u.download_url)},className:"ml20"},f.default.createElement("i",{className:"iconfont icon-xiazai1 font-15 color-grey-6"})),2!==E&&f.default.createElement("a",{onClick:function(){return e.EditFile(!1)},className:"ml20"},f.default.createElement("i",{className:"iconfont icon-bianji1 font-15 color-grey-6"})))):f.default.createElement(f.default.Fragment,null,f.default.createElement(o.default,{showSearch:!0,placeholder:"请选择文本语言",style:{width:200},value:b,onChange:this.select_language},f.default.createElement(x,{value:void 0},"请选择文本语言"),w&&w.map((function(e,t){return f.default.createElement(x,{value:e,key:t},e)}))),f.default.createElement("button",{type:"button",className:"ant-btn ant-btn-sm ml20",onClick:function(){return e.EditFile(!0)}},f.default.createElement("span",null,"取 消"))),2!==E&&f.default.createElement(r.default,{title:"确认删除这个文件?",className:"ml20",okText:"确定",cancelText:"取消",onConfirm:this.deleteFile},f.default.createElement("a",null,f.default.createElement("i",{className:"iconfont icon-shanchu font-15 color-grey-6"})))))),f.default.createElement("div",null,u.image_type?f.default.createElement("div",{className:"edu-txt-center pt20 pb20"},f.default.createElement("img",{alt:"",src:u.download_url,style:{maxWidth:"80%"}})):u.direct_download?f.default.createElement("div",{className:"mt20 text-center"},f.default.createElement("a",{href:u.download_url,className:"color-blue font-15"},"下载原始文件")):g&&a?f.default.createElement("div",{className:"files-md",id:"files-md"},f.default.createElement(p.default,{className:"file-md imageLayerParent",value:_,url:this.props.history.location})):f.default.createElement(m.default,i({},this.props,this.state,{language:b||"javascript",filepath:"/"+u.path,content:u.content,readOnly:a,editorType:"update",currentBranch:h,descName:u&&"Update "+u.name}))))}}]),t}(s.Component);t.default=E},FRFo:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=u(a("3S7+")),r=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var a=[],n=!0,r=!1,l=void 0;try{for(var o,u=e[Symbol.iterator]();!(n=(o=u.next()).done)&&(a.push(o.value),!t||a.length!==t);n=!0);}catch(e){r=!0,l=e}finally{try{!n&&u.return&&u.return()}finally{if(r)throw l}}return a}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")};a("TfFZ");var l=a("q1tI"),o=u(l);function u(e){return e&&e.__esModule?e:{default:e}}function i(e){var t=e.beforeText,a=e.afterText,u=e.className,i=e.inputId,c=e.timeOut,s=(0,l.useState)((function(){return t})),f=r(s,2),d=f[0],m=f[1],p=(0,l.useCallback)((function(){var e=document.querySelector("#"+i);e?(e.select(),document.execCommand("copy")&&document.execCommand("copy"),document.getSelection().removeAllRanges(),m(a),c&&setTimeout((function(){m(t)}),1500)):console.error("您的CopyTool未设置正确的inputId")}),[]);return o.default.createElement(n.default,{placement:"top",title:d,onVisibleChange:function(){m(t)}},o.default.createElement("i",{className:"iconfont icon-fuzhiicon "+u,style:{color:"#466aff"},onClick:p}))}i.defaultProps={beforeText:"复制链接",afterText:"复制成功",className:"",inputId:"copyText",timeOut:!0},t.default=(0,l.memo)(i)},KhU6:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=f(a("/wGt")),r=f(a("W9HT")),l=f(a("MJZm")),o=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var a=[],n=!0,r=!1,l=void 0;try{for(var o,u=e[Symbol.iterator]();!(n=(o=u.next()).done)&&(a.push(o.value),!t||a.length!==t);n=!0);}catch(e){r=!0,l=e}finally{try{!n&&u.return&&u.return()}finally{if(r)throw l}}return a}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")};a("Re5i"),a("04bd"),a("dlhN");var u=a("q1tI"),i=f(u),c=a("sYIF");a("KkuB");var s=f(a("vDqi"));function f(e){return e&&e.__esModule?e:{default:e}}var d=l.default.TreeNode,m=l.default.DirectoryTree;t.default=function(e){var t=e.visible,a=e.onClose,l=e.branch,f=e.owner,p=e.projectsId,h=e.history,v=e.name,g=e.list,E=(0,u.useState)(void 0),y=o(E,2),b=y[0],w=y[1],_=(0,u.useState)(!0),N=o(_,2),x=N[0],j=N[1],k=(0,u.useState)(!0),S=o(k,2),O=S[0],I=S[1];return(0,u.useEffect)((function(){var e;t&&O&&(g?(w(g),j(!1)):(e="/"+f+"/"+p+"/entries.json",s.default.get(e,{params:{ref:l}}).then((function(e){e&&w(e.data.entries),j(!1)})).catch((function(e){}))),I(!1))}),[t]),i.default.createElement(n.default,{placement:"left",visible:t,closable:!1,onClose:a,width:"320px",maskStyle:{backgroundColor:"rgba(0,0,0,0.09)"}},i.default.createElement(r.default,{spinning:x},i.default.createElement("div",{className:"drawerHead"},i.default.createElement("p",{className:"font-20"},v),i.default.createElement("p",null,i.default.createElement("i",{class:"iconfont icon-fenzhi2 font-18 color-grey-9 mr3"}),l)),i.default.createElement(m,{loadData:function(e){return new Promise((function(t){if(e.props.children)t();else{var a=[],n="/"+f+"/"+p+"/sub_entries.json";s.default.get(n,{params:{filepath:e.props.dataRef.path,ref:l,type:"dir"}}).then((function(e){e&&(a=e.data.entries)})).catch((function(e){})),setTimeout((function(){e.props.dataRef.children=a,w([].concat(function(e){if(Array.isArray(e)){for(var t=0,a=Array(e.length);t0&&t.map((function(t){return i.default.createElement(d,{title:t.name,key:t.key,dataRef:t,isLeaf:"file"===t.type},e(t.children))}))}(b))))}},KusB:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n,r=a("q1tI"),l=(n=r)&&n.__esModule?n:{default:n},o=a("eO8H"),u=a("PhNK");var i={submodule:"icon-file-submodule font-17",file:"icon-wenjian6 font-15 color-blue-file",dir:"icon-wenjianjia4 font-15 color-blue_4C"};t.default=function(e){var t,a=e.item,n=e.goToSubRoot,r=e.owner,c=e.projectsId,s=e.platform;return l.default.createElement("li",null,l.default.createElement("span",null,!s&&a.image_type?l.default.createElement("span",null,l.default.createElement("i",{className:"iconfont "+i[""+a.type]+" mr8"}),a.name):l.default.createElement("a",{onClick:function(){return n(a.path,a.type,a.name)},className:"submodule"===a.type&&"submoduleStyle"},l.default.createElement("i",{className:"iconfont "+i[""+a.type]+" mr8"}),a.name)),l.default.createElement("span",{title:"init project"},l.default.createElement(o.Link,{to:"/"+r+"/"+c+"/commits/"+(0,u.truncateCommitId)(""+(a.commit&&a.commit.sha)),title:a.commit&&a.commit.message},((t=a.commit&&a.commit.message).indexOf("\n")>0&&t.split("\n"))[0])),l.default.createElement("span",{title:a.commit&&a.commit.created_at},a.commit&&a.commit.time_from_now))}},MN5C:function(e,t,a){},NAAl:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(a("kLXV")),r=i(a("Vl3Y")),l=i(a("5rEg"));a("k3Gp"),a("tULf"),a("1vPl");var o=a("q1tI"),u=i(o);function i(e){return e&&e.__esModule?e:{default:e}}a("dEUZ");var c=l.default.TextArea;t.default=r.default.create()((0,o.forwardRef)((function(e){var t=e.form,a=e.visible,i=e.onCancel,s=e.onOk,f=e.desc,d=e.website,m=e.lesson_url,p=t.getFieldDecorator,h=t.validateFields,v=t.setFieldsValue;return(0,o.useEffect)((function(){(f||d)&&v({website:d,desc:f,lesson_url:m})}),[f,d]),u.default.createElement(n.default,{title:"修改信息",closable:!1,visible:a,centered:!0,onCancel:i,onOk:function(){h((function(e,t){e||(i(),s(t.desc,t.website,t.lesson_url))}))},okText:"确定",cancelText:"取消",width:"400px",className:"descmodal"},u.default.createElement(r.default,null,u.default.createElement(r.default.Item,{label:"项目简介"},p("desc",{rules:[]})(u.default.createElement(c,{placeholder:"请输入项目简介",rows:4,maxLength:200}))),u.default.createElement(r.default.Item,{label:"website"},p("website",{rules:[]})(u.default.createElement(l.default,{placeholder:"website链接",maxLength:200}))),u.default.createElement(r.default.Item,{label:"实践课程"},p("lesson_url",{rules:[]})(u.default.createElement(l.default,{placeholder:"实践课程链接",maxLength:200})))))})))},OZBj:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=d(a("JsLm")),r=d(a("jsC+")),l=d(a("W9HT")),o=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var a=[],n=!0,r=!1,l=void 0;try{for(var o,u=e[Symbol.iterator]();!(n=(o=u.next()).done)&&(a.push(o.value),!t||a.length!==t);n=!0);}catch(e){r=!0,l=e}finally{try{!n&&u.return&&u.return()}finally{if(r)throw l}}return a}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")};a("mJp1"),a("aIZi"),a("04bd");var u=a("q1tI"),i=d(u),c=d(a("bjH3")),s=a("spEH"),f=d(a("mJXK"));function d(e){return e&&e.__esModule?e:{default:e}}var m=window.$;t.default=function(e){var t=e.operate,a=e.history,d=e.readme,p=e.ChangeFile,h=(0,u.useState)(void 0),v=o(h,2),g=v[0],E=v[1],y=(0,u.useState)(void 0),b=o(y,2),w=b[0],_=b[1];return(0,u.useEffect)((function(){d&&d.replace_content?_(d.replace_content):_(void 0)}),[d]),(0,u.useEffect)((function(){a.location.pathname;var e=m.map(m("#readme").find("h1,h2,h3,h4,h5,h6"),(function(e,t){var a=e.id,n=e.tagName.replace("H","");return{href:""+("#"+a),text:e.textContent,level:n}}));E(e)}),[w]),i.default.createElement("div",{className:"commonBox readBox",id:"readme"},i.default.createElement(n.default,{offsetTop:58},i.default.createElement("div",{className:"commonBox-title boxTitle"},i.default.createElement(s.AlignCenter,null,i.default.createElement(r.default,{overlay:g&&g.length>0?i.default.createElement(f.default,{menuList:g,hash:a.location.hash}):i.default.createElement(l.default,null),trigger:["hover"],overlayClassName:"menuslist"},i.default.createElement("span",{className:"catelogue"},i.default.createElement("i",{className:"iconfont icon-muluicon font-12 mr5"}),i.default.createElement("span",null,"目录"))),i.default.createElement("span",{className:"commonBox-title-read"},i.default.createElement("a",{href:"#readme "},"README.md"))),t?i.default.createElement("a",{className:"ml20 pull-right",onClick:function(){return p(d&&d.path,!1)}},i.default.createElement("i",{className:"iconfont icon-a-bianji font-17 color-grey-6"})):"")),w&&i.default.createElement("div",{className:"commonBox-info"},i.default.createElement(c.default,{className:"break_word_comments imageLayerParent",value:w,url:a.location})))}},PhNK:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.truncateCommitId=function(e){return e&&e.length>11?e.substring(0,10):e},t.timeFormat=function(e){var t=new Date(1e3*e),a=t.getHours()<10?"0".concat(t.getHours()):t.getHours(),n=t.getMinutes()<10?"0".concat(t.getMinutes()):t.getMinutes();return t.getFullYear()+"-"+(t.getMonth()+1)+"-"+t.getDate()+" "+a+":"+n}},"R/Rt":function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t0&&l.default.createElement("span",{className:"infoCount"},n.total_count)),n&&n.total_count>0?n.list.map((function(e,n){return 0===n&&l.default.createElement(o.AlignTop,{className:"mt10"},l.default.createElement("div",null,l.default.createElement("p",{className:"font-16 color-grey-6",style:{display:"flex",alignItems:"center"}},l.default.createElement(u.Link,{to:{pathname:"/"+t+"/"+a+"/releases",query:{turnFromNew:!0}},style:{maxWidth:"200px",overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"}},e.name),l.default.createElement("span",{className:"font-12 laterest ml5"},"最新")),l.default.createElement("p",{className:"color-grey-3 font-12"},e.created_at)))})):l.default.createElement("div",{className:"mt8"},"您暂未发布任何版本",r&&l.default.createElement(u.Link,{className:"color-blue ml20",to:{pathname:"/"+t+"/"+a+"/releases/new",state:{stable:!0}}},"创建新版本")))}},YIv0:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=c(a("PArb")),r=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var a=[],n=!0,r=!1,l=void 0;try{for(var o,u=e[Symbol.iterator]();!(n=(o=u.next()).done)&&(a.push(o.value),!t||a.length!==t);n=!0);}catch(e){r=!0,l=e}finally{try{!n&&u.return&&u.return()}finally{if(r)throw l}}return a}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")};a("qNb/");var l=a("q1tI"),o=c(l),u=a("spEH"),i=c(a("vDqi"));function c(e){return e&&e.__esModule?e:{default:e}}t.default=function(e){var t=e.owner,a=e.projectsId,c=(0,l.useState)(void 0),s=r(c,2),f=s[0],d=s[1];function m(){for(var e="#",t=["1","2","3","4","4","5","6","7","8","9","a","b","c","d","e","f"],a=0;a<6;a++){e+=t[parseInt(16*Math.random())]}return e}return(0,l.useEffect)((function(){var e;e="/"+t+"/"+a+"/languages.json",i.default.get(e).then((function(e){if(e){var t=e.data;if(t){var a=[];Object.keys(t).map((function(e,n){a.push({name:e,percent:t[e],color:m()})})),d(a)}}})).catch((function(e){}))}),[]),f&&f.length>0?o.default.createElement("div",null,o.default.createElement(n.default,null),o.default.createElement("p",{className:"font-16 color-ooo aboutSubTitle"},"开发语言"),o.default.createElement("div",{className:"progress"},f&&f.map((function(e,t){return o.default.createElement("span",{style:{width:e.percent,backgroundColor:e.color}})}))),f&&f.length>0&&o.default.createElement(u.FlexAJ,{className:"progresstip"},f.map((function(e,t){return o.default.createElement("span",null,o.default.createElement("i",{className:"zero",style:{backgroundColor:""+e.color}}),o.default.createElement("span",null,e.name),o.default.createElement("span",null,e.percent))})))):""}},cJAJ:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=f(a("W9HT")),r=f(a("BvKs")),l=f(a("5rEg")),o=f(a("14Xm")),u=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var a=[],n=!0,r=!1,l=void 0;try{for(var o,u=e[Symbol.iterator]();!(n=(o=u.next()).done)&&(a.push(o.value),!t||a.length!==t);n=!0);}catch(e){r=!0,l=e}finally{try{!n&&u.return&&u.return()}finally{if(r)throw l}}return a}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")};a("04bd"),a("2WkQ"),a("1vPl");var i=a("q1tI"),c=f(i),s=a("tnhM");function f(e){return e&&e.__esModule?e:{default:e}}function d(e){return function(){var t=e.apply(this,arguments);return new Promise((function(e,a){return function n(r,l){try{var o=t[r](l),u=o.value}catch(e){return void a(e)}if(!o.done)return Promise.resolve(u).then((function(e){n("next",e)}),(function(e){n("throw",e)}));e(u)}("next")}))}}t.default=function(e){var t,a,f=(t=d(o.default.mark((function e(t,a){var n;return o.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,s.getBranch)(t,a);case 2:n=e.sent,B(n),H(n),C(!1);case 6:case"end":return e.stop()}}),e,this)}))),function(e,a){return t.apply(this,arguments)}),m=(a=d(o.default.mark((function e(t,a){var n;return o.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,s.getTag)(t,a);case 2:n=e.sent,B(n),H(n),C(!1);case 6:case"end":return e.stop()}}),e,this)}))),function(e,t){return a.apply(this,arguments)}),p=e.changeBranch,h=e.tagflag,v=e.projectsId,g=e.owner,E=e.visible,y=(0,i.useState)(void 0),b=u(y,2),w=b[0],_=b[1],N=(0,i.useState)(0),x=u(N,2),j=x[0],k=x[1],S=(0,i.useState)(!0),O=u(S,2),I=O[0],C=O[1],M=(0,i.useState)(void 0),T=u(M,2),P=T[0],B=T[1],L=(0,i.useState)(void 0),A=u(L,2),F=A[0],H=A[1],D=(0,i.useState)("branch"),q=u(D,2),R=q[0],U=q[1];return(0,i.useEffect)((function(){E&&(U("branch"),f(v,g),C(!0))}),[E]),c.default.createElement("div",{className:"overlayBranch"},c.default.createElement("div",{className:"padding15",style:{paddingBottom:"0px"}},c.default.createElement(l.default,{prefix:c.default.createElement("i",{className:"iconfont icon-sousuo_icon1 font-14"}),placeholder:"请输入分支"+(h?"或标签":"")+"名称搜索",autocomplete:"off",className:"OptionsInput",value:w,onChange:function(e){_(e.target.value);var t=e.target.value?P&&P.length>0&&P.filter((function(t){return t.name.indexOf(e.target.value)>-1})):P;H(t)}})),c.default.createElement(r.default,{mode:"horizontal",className:"navUl",selectedKeys:[R],onClick:function(e){U(e.key),C(!0),"branch"===e.key?(f(v,g),k(0)):(m(v,g),k(1))}},c.default.createElement(r.default.Item,{key:"branch"},"分支"),h&&c.default.createElement(r.default.Item,{key:"tag"},"标签")),c.default.createElement(n.default,{spinning:I},c.default.createElement("ul",{className:"OptionsUl",id:"ul-btn"},F&&F.length>0&&F.map((function(e,t){return c.default.createElement("li",{key:t,onClick:function(){return t=e.name,void p(t);var t}},c.default.createElement("a",{className:"task-hide ulALink"},e.name))})),F&&0===F.length&&c.default.createElement("p",{className:"listTips"},"暂无",w,0===j?"分支":"标签","~"))))}},dEUZ:function(e,t,a){},eIPa:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=v(a("diRs")),r=v(a("W9HT")),l=v(a("2/Rp")),o=v(a("14Xm")),u=Object.assign||function(e){for(var t=1;t0&&s.default.createElement("p",{className:"task-hide",style:{maxWidth:"215px"}},"所属组织:",function(e){var t="";return e.map((function(e){t=t+e.name+"、"})),t&&t.substr(0,t.length-1)}(e.organizations))))),s.default.createElement(f.AlignCenter,{className:"menuinfos"},s.default.createElement(d.Link,{to:"/"+e.login+"/projects"},s.default.createElement("span",null,e.projects_count),s.default.createElement("span",null,"项目数")),s.default.createElement(d.Link,{to:"/"+e.login+"/followers"},s.default.createElement("span",null,e.followers_count),s.default.createElement("span",null,"粉丝数")),s.default.createElement(d.Link,{to:"/"+e.login+"/following"},s.default.createElement("span",null,e.following_count),s.default.createElement("span",null,"关注数"))),s.default.createElement("div",{className:"pb20",style:{display:"flex",justifyContent:"center"}},y&&y===e.login?s.default.createElement(l.default,{className:"currentBtn"},"当前用户"):e.is_watch?s.default.createElement(l.default,{type:"default",onClick:function(){return K(!1,e.login)}},"已关注"):s.default.createElement(l.default,{type:"primary",onClick:function(){return K(!0,e.login)}},"关注TA")));L(t)}}function K(e,t){(0,h.default)({method:e?"post":"delete",url:"/watchers/"+(e?"follow":"unfollow")+".json",params:{target_type:"user",id:t}}).then((function(a){if(a&&(0===a.data.status||2===a.data.status)){var n=_&&_.filter((function(e){return e.login===t}));n&&(n[0].is_watch=e),W(n[0])}})).catch((function(e){console.log(e)}))}function J(e,t,a){t!==H&&D(t);var n=k.concat();n.map((function(e){return e.visible=!1})),e&&(n[a].visible=e),n.splice(),S(n)}return(0,c.useEffect)((function(){var e;e="/"+g+"/"+E+"/contributors.json",h.default.get(e).then((function(e){e&&(M(e.data.total_count),S(e.data.list))})).catch((function(e){}))}),[]),(0,c.useEffect)((function(){H?v(H):L(void 0)}),[H]),C>0?s.default.createElement("div",{className:"halfs"},s.default.createElement(d.Link,{to:"/"+g+"/"+E+"/contribute",className:"font-16 color-ooo hoverA"},s.default.createElement("span",null,"贡献者"),C>0&&s.default.createElement("span",{className:"infoCount"},C)),s.default.createElement("div",{className:"attrPerson",onMouseLeave:function(){return J(!1)}},k&&k.length>0&&k.map((function(e,t){return s.default.createElement(n.default,{content:B,visible:e.visible,overlayClassName:"menuPanels",placement:"top"},s.default.createElement(d.Link,{key:t,to:"/"+e.login},s.default.createElement("img",{src:(0,m.getImageUrl)("/"+e.image_url),alt:"",onMouseOver:function(){return J(!0,e.login,t)}})))})))):""}},gUMM:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=P(a("W9HT")),r=P(a("PArb")),l=P(a("2/Rp")),o=P(a("jsC+")),u=P(a("BvKs")),i=Object.assign||function(e){for(var t=1;t0){var e=Rt.filter((function(e){return"pulls"===e.menu_name})),t=Rt.filter((function(e){return"issues"===e.menu_name}));e&&0===e.length&&kt(!1),t&&0===t.length&&(Ct(!1),console.log(Rt))}}),[Rt]),(0,s.useEffect)((function(){Ht&&(B(Ht),at(Ht.description),ot(Ht.website),st(Ht.lesson_url),Et(Ht.default_branch),H(Ht.invite_code))}),[Ht]),(0,s.useEffect)((function(){J(R?(0,m.returnbar)(R).split("/"):void 0)}),[R]),(0,s.useEffect)((function(){if(At&&Lt&>){var e=(0,m.turnbar)(Ft);if(Dt.indexOf("/"+Lt+"/"+At)>-1&&Dt.indexOf("/tree/"+e+"/")>-1){var t=Dt.split("/tree/"+e+"/")[1];U(t),function(e,t){qe(!0);var a="/"+Lt+"/"+At+"/sub_entries.json";y.default.get(a,{params:{filepath:(0,m.returnbar)(e),ref:t||Ft,type:ne}}).then((function(t){if(t){var a=t.data.entries;a.type?(be(void 0),xe(a),re(a.type),pt(void 0)):(xe(void 0),be(a),re("dir"),Ut(e,Ft||gt));var n=t.data.last_commit;X(n&&n.commit),ee(n&&n.committer),Ze(!1),Ae(!0),Ae(!wt),ie(!0)}setTimeout((function(){qe(!1)}),500)})).catch((function(e){qe(!1)}))}(t,Ft),re("file")}else U(void 0),function(e){qe(!0);var t="/"+Lt+"/"+At+"/entries.json";y.default.get(t,{params:{ref:e}}).then((function(e){if(e){ve(e.data.commits_count),be(e.data.entries),xe(void 0),Te(e.data.tar_url),Oe(e.data.zip_url);var t=e.data.last_commit;X(t&&t.commit),ee(t&&t.committer),Ze(!0),Ae(!0),_t(!1),ie(!0),Ut("",Ft||gt)}setTimeout((function(){qe(!1)}),500)})).catch((function(e){qe(!1)}))}(Ft||gt),re("dir")}}),[At,Lt,Dt,gt]),(0,s.useEffect)((function(){y.default.get("/"+Lt+"/"+At+"/releases.json").then((function(e){if(e&&e.data){var t={list:e.data.releases,total_count:e.data.releases&&e.data.releases.length};Bt(t)}}))}),[]),(0,s.useEffect)((function(){if(P&&Y){var e=document.getElementById("ptxt");if(e)e.offsetHeight>36&&de(!0)}}),[P,Y]);var Kt,Jt,Vt=f.default.createElement(v.default,{http_url:P&&P.clone_url,ssh_url:P&&e&&e.platform&&P.ssh_url,zip_url:e&&e.platform&&Se,tar_url:e&&e.platform&&Me,showNotification:e.showNotification}),Zt=Ne&&Ne.name,Yt=Zt&&".md"===Zt.substring(Zt.length-3,Zt.length),Xt=e.current_user,Qt=Xt&&Xt.login&&It,Gt=P&&P.permission&&"Reporter"!==P.permission&&2!==P.type&&jt&&e.platform,$t="dir"===ne&&P&&2!==P.type&&(P.permission&&"Reporter"!==P.permission||Xt&&Xt.admin);return f.default.createElement(d.WhiteBack,null,f.default.createElement(O.default,{desc:tt,website:lt,lesson_url:ct,visible:Qe,onCancel:function(){return Ge(!1)},onOk:function(e,t,a){var n="/"+Lt+"/"+At+".json";y.default.put(n,{description:e,website:t||"",lesson_url:a||""}).then((function(e){e&&e.data&&e.data.id&&(at(e.data.description),ot(e.data.website),st(e.data.lesson_url))}))}}),f.default.createElement(n.default,{spinning:De},(ye||Ne)&&f.default.createElement(f.default.Fragment,null,f.default.createElement(S.default,{history:e.history,owner:Lt,projectsId:At,name:P&&P.name,branch:Ft||gt,visible:ze,onClose:function(){return We(!1)},list:Ve?ye:void 0}),f.default.createElement("div",{className:"drawerBtn",onClick:function(){return We(!0)}},f.default.createElement("i",{className:"iconfont icon-zuohuaicon font-14"}),f.default.createElement("span",null,"目录"))),f.default.createElement("div",{style:{minHeight:"500px"}},P&&f.default.createElement(d.Box,{className:"Panels"},f.default.createElement(d.LongWidth,null,f.default.createElement("div",{className:"panelmenu"},f.default.createElement(d.FlexAJ,null,f.default.createElement(d.AlignCenter,null,f.default.createElement("div",{className:"mr30"},e&&e.platform?f.default.createElement(g.default,{repo_id:P&&P.repo_id,projectsId:At,branch:Ft||gt,changeBranch:function(t){var a="/"+Lt+"/"+At+(t&&"/tree/"+t)+(R?"/"+R:"");e.history.push(a)},owner:Lt,history:e.history,branchList:P&&P.branches&&P.branches.list}):f.default.createElement("span",null,"分支:",f.default.createElement("span",{className:"color-grey-6"},Ft||gt))),K&&K.length>0?f.default.createElement(b.default,{identifier:P&&P.identifier,treeValuePath:K,returnUlr:function(t){var a=(0,m.turnbar)(Ft);re("dir"),e.history.push("/"+Lt+"/"+At+"/tree"+(a?"/"+a:"")+"/"+t)},returnMain:function(){U(void 0);var t=Ft||gt,a=(0,m.turnbar)(t);e.history.push("/"+Lt+"/"+At+"/tree/"+a)},getPathUrl:function(e,t){if(e&&e.length>0&&t){for(var a="",n=0;n0||Ne?f.default.createElement("div",{className:"listtable"},(Y&&Y.message||$)&&f.default.createElement("div",{className:"listtablehead"},$&&f.default.createElement(E.default,{url:(0,m.getImageUrl)("/"+$.image_url),name:$.name,id:$.id,login:$.login}),Y&&Y.message&&f.default.createElement("div",{className:fe&&ue?"ellipsistxt hidetxt":"ellipsistxt"},f.default.createElement("pre",{id:"ptxt"},f.default.createElement(p.Link,{to:"/"+Lt+"/"+At+"/commits/"+(0,h.truncateCommitId)(Y.sha)},f.default.createElement(T.default,{value:Y&&Y.message})))),fe&&f.default.createElement("span",{className:"ellipsis",onClick:function(){return function(e){ie(!e)}(ue)}},f.default.createElement("i",{className:"iconfont icon-shenglvehao"})),f.default.createElement("span",{className:"ml20 color-grey-6 font-12 mt3"},Y&&Y.time_from_now),he?f.default.createElement(p.Link,{to:"/"+Lt+"/"+At+"/commits/branch/"+(0,m.turnbar)(Ft||gt),className:"ml20 color-grey-3",style:{height:"28px",lineHeight:"28px"}},f.default.createElement("i",{className:"iconfont icon-tijiaoicon mr3 font-16"}),f.default.createElement("span",{style:{fontWeight:"500"}},he,"次提交")):""),f.default.createElement("ul",{className:"listtablebody"},ye&&ye.length>0&&ye.map((function(t,a){return f.default.createElement(w.default,{owner:Lt,item:t,projectsId:At,goToSubRoot:zt,platform:e.platform})})),Ne&&f.default.createElement(N.default,i({},e,{detail:Ne,readOnly:Le,md:Yt,onEdit:function(e){Ae(e),_t(!1)},currentBranch:Ft||gt,type:P.type})))):"",ye&&0===ye.length&&!Ne?f.default.createElement(I.default,{_html:"暂未发现文件"}):"",mt&&mt.replace_content?f.default.createElement(_.default,{ChangeFile:function(t,a){var n=Ft||gt,r=(0,m.turnbar)(n);e.history.push("/"+Lt+"/"+At+"/tree/"+r+"/"+t),re("file"),_t(!0)},readme:mt,operate:e&&(e.isManager||e.isDeveloper)&&2!==P.type,history:e.history}):"")),!(K&&K.length>0)&&!Ne&&f.default.createElement(d.ShortWidth,null,f.default.createElement(d.Gap,{style:{paddingLeft:"30px"}},f.default.createElement("div",{className:"panelmenu"},f.default.createElement(d.FlexAJ,{className:"font-18 color-ooo mb20",style:{lineHeight:"28px"}},"关于",P.permission&&("Admin"===P.permission||"Owner"===P.permission||"Manager"===P.permission)&&f.default.createElement("i",{onClick:function(){return Ge(!0)},className:"iconfont icon-a-shezhi color-grey-9 font-15 pointer"})),tt&&f.default.createElement("p",{className:"font-14 color-grey-3 mb15 task-hide-2",style:{lineHeight:"24px",WebkitLineClamp:"4",textAlign:"justify",wordBreak:"break-all"},title:tt},tt),lt&&f.default.createElement("div",{className:"color-grey-6 df pinfos mb5"},f.default.createElement("i",{className:"iconfont icon-lianjie2 font-15 mr10"}),f.default.createElement("a",{href:lt,target:"_blank",style:{wordBreak:"break-all",lineHeight:"20px",marginTop:"5px",textDecoration:"underline"}},lt)),f.default.createElement("div",{className:"pinfos mb5"},f.default.createElement("i",{className:"iconfont icon-zishuwenjian_icon font-15 mr10"}),f.default.createElement("a",{href:"#readme"},"README.md")),f.default.createElement("div",{className:"color-grey-6 mb5"},f.default.createElement("i",{className:"iconfont icon-neicunicon font-15 mr10"}),f.default.createElement("span",null,P&&P.size)),P&&P.license_name&&f.default.createElement("div",{className:"pinfos"},f.default.createElement("i",{className:"iconfont icon-xieyiicon font-16 mr10"}),f.default.createElement(p.Link,{to:"/"+Lt+"/"+At+"/tree/"+(0,m.turnbar)(Ft||gt)+"/LICENSE",className:"color-grey-6"},P.license_name))),F&&f.default.createElement("div",null,f.default.createElement(r.default,null),f.default.createElement(C.default,{code:F})),ct&&f.default.createElement("div",null,f.default.createElement(r.default,null),f.default.createElement("p",{className:"font-16 color-ooo"},"实践课程"),f.default.createElement("a",{href:ct,target:"_blank",className:"color-grey-6",style:{textDecoration:"underline",wordBreak:"break-all"}},ct)),Pt&&e.platform&&f.default.createElement(f.default.Fragment,null,f.default.createElement(r.default,null),f.default.createElement(x.default,{owner:Lt,projectsId:At,releaseVersions:Pt,history:e.history,distribution:qt})),f.default.createElement(j.default,{owner:Lt,projectsId:At}),f.default.createElement(k.default,{owner:Lt,projectsId:At})))))))}},lH0x:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(a("BvKs")),r=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var a=[],n=!0,r=!1,l=void 0;try{for(var o,u=e[Symbol.iterator]();!(n=(o=u.next()).done)&&(a.push(o.value),!t||a.length!==t);n=!0);}catch(e){r=!0,l=e}finally{try{!n&&u.return&&u.return()}finally{if(r)throw l}}return a}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")};a("2WkQ");var l=a("q1tI"),o=i(l);a("MN5C");var u=i(a("FRFo"));function i(e){return e&&e.__esModule?e:{default:e}}t.default=function(e){var t=e.http_url,a=e.ssh_url,i=e.zip_url,c=e.tar_url,s=(0,l.useState)("HTTP"),f=r(s,2),d=f[0],m=f[1];return o.default.createElement("div",{className:"downMenu"},o.default.createElement("div",null,o.default.createElement(n.default,{className:"urlMenu",selectedKeys:[d],mode:"horizontal"},o.default.createElement(n.default.Item,{key:"HTTP",onClick:function(e){m(e.key)}},"HTTP"),a&&o.default.createElement(n.default.Item,{key:"SSH",onClick:function(e){m(e.key)}},"SSH")),o.default.createElement("div",{className:"gitAddressClone"},o.default.createElement("input",{type:"text",id:"copy_rep_content",value:"HTTP"===d?t:a}),o.default.createElement(u.default,{inputId:"copy_rep_content",className:"copytool"}))),o.default.createElement(n.default,{className:"edu-txt-center"},i&&o.default.createElement(n.default.Item,{style:{borderTop:"1px solid #eee"}},o.default.createElement("a",{href:i},"下载 ZIP")),c&&o.default.createElement(n.default.Item,null,o.default.createElement("a",{href:c},"下载 TAR.GZ"))))}},lr0e:function(e,t,a){},mJXK:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(a("5rEg")),r=i(a("JsLm")),l=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var a=[],n=!0,r=!1,l=void 0;try{for(var o,u=e[Symbol.iterator]();!(n=(o=u.next()).done)&&(a.push(o.value),!t||a.length!==t);n=!0);}catch(e){r=!0,l=e}finally{try{!n&&u.return&&u.return()}finally{if(r)throw l}}return a}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")};a("1vPl"),a("mJp1");var o=a("q1tI"),u=i(o);function i(e){return e&&e.__esModule?e:{default:e}}a("dEUZ");var c=r.default.Link;t.default=function(e){var t=e.menuList,a=(e.hash,(0,o.useState)("")),i=l(a,2),s=i[0],f=i[1],d=(0,o.useState)(""),m=l(d,2),p=m[0],h=m[1],v=(0,o.useState)(t),g=l(v,2),E=g[0],y=g[1];return u.default.createElement("div",null,u.default.createElement("div",{className:"searchBox"},u.default.createElement(n.default,{placeholder:"请输入关键字",value:p,onChange:function(e){if(h(e.target.value),e.target.value){var a=t.filter((function(t){return t.text.toLowerCase().indexOf(e.target.value.toLowerCase())>-1}));y(a)}else y(t)},prefix:u.default.createElement("i",{className:"iconfont icon-sousuo_icon1 font-14"})})),E&&E.length>0?u.default.createElement("div",{className:"anchorBox"},u.default.createElement(r.default,{affix:!1,onChange:function(e){f(e)},offsetTop:140},E.map((function(e,t){return u.default.createElement("div",{style:{paddingLeft:15*e.level+"px"},className:s===e.href?"items active":"items"},u.default.createElement(c,{href:"#"+e.text,title:e.text}))})))):"")}},tnhM:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getUser=t.getSubEntries=t.getHooks=t.getTag=t.getBranch=void 0;var n=l(a("14Xm")),r=l(a("vDqi"));function l(e){return e&&e.__esModule?e:{default:e}}function o(e){return function(){var t=e.apply(this,arguments);return new Promise((function(e,a){return function n(r,l){try{var o=t[r](l),u=o.value}catch(e){return void a(e)}if(!o.done)return Promise.resolve(u).then((function(e){n("next",e)}),(function(e){n("throw",e)}));e(u)}("next")}))}}var u,i,c,s,f;t.getBranch=(u=o(n.default.mark((function e(t,a){return n.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r.default.get("/"+a+"/"+t+"/branches.json");case 2:return e.abrupt("return",e.sent.data);case 3:case"end":return e.stop()}}),e,void 0)}))),function(e,t){return u.apply(this,arguments)}),t.getTag=(i=o(n.default.mark((function e(t,a){return n.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r.default.get("/"+a+"/"+t+"/tags.json");case 2:return e.abrupt("return",e.sent.data);case 3:case"end":return e.stop()}}),e,void 0)}))),function(e,t){return i.apply(this,arguments)}),t.getHooks=(c=o(n.default.mark((function e(t,a){return n.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r.default.get("/projects/"+t+"/hooks.json",{params:a});case 2:return e.abrupt("return",e.sent.data);case 3:case"end":return e.stop()}}),e,void 0)}))),function(e,t){return c.apply(this,arguments)}),t.getSubEntries=(s=o(n.default.mark((function e(t,a,l){return n.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r.default.get("/"+t+"/"+a+"/sub_entries.json",{params:l});case 2:return e.abrupt("return",e.sent.data);case 3:case"end":return e.stop()}}),e,void 0)}))),function(e,t,a){return s.apply(this,arguments)}),t.getUser=(f=o(n.default.mark((function e(t){return n.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r.default.get("/users/"+t+"/hovercard.json");case 2:return e.abrupt("return",e.sent.data);case 3:case"end":return e.stop()}}),e,void 0)}))),function(e){return f.apply(this,arguments)})},z2sw:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=l(a("q1tI"));a("dEUZ");var r=l(a("FRFo"));function l(e){return e&&e.__esModule?e:{default:e}}t.default=function(e){var t=e.code,a=e.className;return n.default.createElement("div",{className:a},n.default.createElement("span",{className:"font-16 color-ooo"},"邀请码"),n.default.createElement("div",null,n.default.createElement("input",{value:t,id:"devitecode",style:{width:"62px",border:"none",cursor:"default"},readOnly:!0}),n.default.createElement(r.default,{timeOut:!0,beforeText:n.default.createElement("p",{className:"edu-txt-center"},"可以通过邀请码邀请成员加入项目",n.default.createElement("br",null),"点击复制邀请码。"),className:"ml8 font-16",inputId:"devitecode"})))}}}]);