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.
educoder/public/react/dist/static/js/8.ab9d8617.chunk.js

1 line
48 KiB

(this.webpackJsonph5=this.webpackJsonph5||[]).push([[8],{681:function(e,t,a){},695:function(e,t,a){"use strict";a(104);var n=a(60),o=a(4),s=a(8),i=a(7),r=a(10),c=a(9),l=a(11),u=a(0),p=a.n(u),d=(a(50),a(29)),h=(a(268),a(95)),m=(a(63),a(21)),f=(a(103),a(47)),g=(a(470),a(462)),v=a(74),b=a(176),y=a(191),E=a(28),w=a(6),k=a.n(w),_=a(190),N=a(180),x=a(784),S=(a(681),window.$),C=g.a.Group,j=f.a.Search;window._header_componentHandler=null;var O=function(e){function t(e){var a;return Object(s.a)(this,t),(a=Object(r.a)(this,Object(c.a)(t).call(this,e))).componentDidUpdate=function(e){void 0===a.state.mygetHelmetapi2&&a.getAppdata()},a.componentDidUpdate=function(e){},a.openNotification=function(e){m.a.open({message:"\u63d0\u793a",description:e})},a.getCookie=function(e){var t,a=RegExp("(^| )"+e+"=([^;]+)(;|$)");return(t=document.cookie.match(a))?decodeURIComponent(t[2]):null},a.delCookie=function(e){var t=new Date;t.setTime(t.getTime()-1);var n=a.getCookie(e);null!=n&&(document.cookie=e+"="+n+";expires="+t.toGMTString())},a.onLogout=function(){a.delCookie("autologin_trustie"),k.a.get("/accounts/logout.json",{}).then((function(e){1===e.data.status&&(a.setState({user:void 0}),window.location.href="/login",h.a.success("\u9000\u51fa\u6210\u529f"))}))},a.tojoinclass=function(){var e=a.state.user;void 0===e||e&&""===e.login?a.setState({isRender:!0}):e&&!1===e.profile_completed?a.setState({AccountProfiletype:!0}):a.setState({Addcoursestypes:!0})},a.tojoinitem=function(){if(a.props.user&&void 0===a.props.user.email||a.props.user&&null===a.props.user.email||a.props.user&&""===a.props.user.email)a.openNotification("\u8bf7\u5148\u7ed1\u5b9a\u90ae\u7bb1\uff0c\u8c22\u8c22");else{var e=a.state.user;void 0===e||e&&""===e.login?a.setState({isRender:!0}):e&&!1===e.profile_completed?a.setState({AccountProfiletype:!0}):a.setState({tojoinitemtype:!0})}},a.submitstatevalue=function(e,t,n){a.setState({Addcoursestypes:!1,tojoinitemtype:!1,tojoinclasstitle:void 0,rolearr:["",""],Checkboxteacherchecked:!1,Checkboxstudentchecked:!1,Checkboxteachingchecked:!1,Checkboxteachertype:!1,Checkboxteachingtype:!1,code_notice:!1,checked_notice:!1,submitapplicationssum:e,submitapplications:!0,submitapplicationsvalue:t,submitapplicationsvaluedata:n,RadioGroupvalue:void 0})},a.onChangeRadioGroup=function(e){a.setState({RadioGroupvalue:e.target.value})},a.submitsubmitapplications=function(){var e=a.state,t=e.submitapplicationssum,n=e.submitapplicationsvaluedata;a.setState({submitapplications:!1,RadioGroupvalue:void 0}),0===t?null!=n&&(window.location.href="/courses/"+n):1===t&&null!=n&&(window.location.href="/projects/"+n)},a.hidesubmitapplications=function(){a.setState({Addcoursestypes:!1,tojoinitemtype:!1,tojoinclasstitle:void 0,rolearr:["",""],Checkboxteacherchecked:!1,Checkboxstudentchecked:!1,Checkboxteachingchecked:!1,Checkboxteachertype:!1,Checkboxteachingtype:!1,code_notice:!1,checked_notice:!1,submitapplications:!1,RadioGroupvalue:void 0})},a.educoderlogin=function(){a.setState({isRender:!0})},a.educoderloginysl=function(){k.a.get("/accounts/logout.json").then((function(e){void 0!==e&&(window.location.href="/")})).catch((function(e){}))},a.hideAddcoursestypes=function(){a.setState({Addcoursestypes:!1})},a.HideAddcoursestypess=function(e){a.setState({Addcoursestypes:!1,mydisplay:!0,occupation:e})},a.ModalCancelsy=function(){a.setState({mydisplay:!1})},a.hidetojoinclass=function(){a.setState({tojoinclasstype:!1,tojoinitemtype:!1,tojoinclasstitle:void 0,rolearr:["",""],Checkboxteacherchecked:!1,Checkboxstudentchecked:!1,Checkboxteachingchecked:!1,Checkboxteachertype:!1,Checkboxteachingtype:!1,code_notice:!1,checked_notice:!1,RadioGroupvalue:void 0})},a.submittojoinclass=function(e){var t=a.state,n=t.tojoinclasstitle,o=t.rolearr,s=t.RadioGroupvalue;if(void 0!==n){var i=o;if(n.length<6)a.setState({code_notice:!0});else if(""!==n&&void 0!==n){a.setState({code_notice:!1});for(var r=[],c=0,l=0;l<i.length;l++)""!=i[l]?r.push(i[l]):c+=1;(2!==c||0!==e)&&(1!==e||void 0!==s)?(1===e&&k.a.post("/project_applies.json",{code:n,role:s}).then((function(e){1===e.data.status?a.submitstatevalue(1,"\u60a8\u8f93\u5165\u7684\u9080\u8bf7\u7801\u9519\u8bef"):2===e.data.status?a.submitstatevalue(1,"\u60a8\u5df2\u7ecf\u662f\u8be5\u9879\u76ee\u6210\u5458",e.data.project):3===e.data.status?a.submitstatevalue(1,"\u8bf7\u9009\u62e9\u4e00\u4e2a\u89d2\u8272"):4===e.data.status?a.submitstatevalue(1,"\u60a8\u7684\u7533\u8bf7\u5df2\u63d0\u4ea4\uff0c\u8bf7\u7b49\u5f85\u9879\u76ee\u7ba1\u7406\u5458\u5ba1\u6279"):5===e.data.status?a.submitstatevalue(1,"\u60a8\u5df2\u7ecf\u7533\u8bf7\u52a0\u5165\u8be5\u9879\u76ee\u4e86\uff0c\u8bf7\u8010\u5fc3\u7b49\u5f85"):6===e.data.status?a.submitstatevalue(1,"\u60a8\u5df2\u6210\u529f\u52a0\u5165\u9879\u76ee",e.data.project):0===e.data.status&&("reporter"===s?(a.openNotification("\u60a8\u52a0\u5165\u9879\u76ee\u6210\u529f!"),window.location.href="/projects/".concat(e.data.project_id)):a.openNotification("\u60a8\u7684\u7533\u8bf7\u5df2\u63d0\u4ea4\uff0c\u8bf7\u7b49\u5f85\u9879\u76ee\u7ba1\u7406\u5458\u5ba1\u6279!"))})),a.hidetojoinclass()):a.setState({checked_notice:!0})}else a.setState({code_notice:!0})}else a.setState({code_notice:!0})},a.cancelModulationModels=function(){a.setState({isRenders:!1})},a.inputjoinclassvalue=function(e){7<=e.target.value.length?a.openNotification("\u8bf7\u8f93\u51656\u4f4d\u9879\u76ee\u9080\u8bf7\u7801!"):a.setState({tojoinclasstitle:e.target.value})},a.showSearchOpen=function(e){a.setState({showSearchOpentype:!0})},a.hideshowSearchOpen=function(e){!0===a.state.setevaluatinghides&&a.setState({showSearchOpentype:!1,setevaluatinghides:!1})},a.onKeywordSearchKeyDown=function(e){var t="/search?value=".concat(e);a.props.history.push(t)},a.onKeywordSearchKeyDowns=function(){a.setState({setevaluatinghides:!1})},a.setevaluatinghides=function(){a.setState({setevaluatinghides:!0})},a.getUser=function(e,t){if("projects"===t&&(a.props.user&&void 0===a.props.user.email||a.props.user&&null===a.props.user.email||a.props.user&&""===a.props.user.email))a.openNotification("\u8bf7\u5148\u7ed1\u5b9a\u90ae\u7bb1\uff0c\u8c22\u8c22");else{var n=a.state.user;void 0===n||n&&""===n.login?a.setState({isRender:!0}):n&&!1===n.profile_completed?a.setState({AccountProfiletype:!0}):"newshixuns"===t&&a.props&&a.props.current_user&&!1===a.props.current_user.is_shixun_marker?a.setgoshowqqgtounp(!0):void 0===e&&""===e||(window.location.href=e)}},a.Modifyloginvalue=function(){a.setState({isRender:!1})},a.hideAccountProfile=function(){a.setState({AccountProfiletype:!1})},a.headtypesonClick=function(e,t){a.setState({headtypess:e,headtypesonClickbool:t})},a.gettablogourlnull=function(){a.setState({mygetHelmetapi2:void 0}),document.title="EduCoder";var e=document.createElement("link"),t=document.getElementById("dynamic-favicon");e.id="dynamic-favicon",e.rel="shortcut icon",e.href="/react/build/./favicon.ico",t&&document.head.removeChild(t),document.head.appendChild(e)},a.gettablogourldata=function(e){document.title=e.data.setting.name;var t=document.createElement("link"),a=document.getElementById("dynamic-favicon");t.id="dynamic-favicon",t.rel="shortcut icon",t.href="/"+e.data.setting.tab_logo_url,a&&document.head.removeChild(a),document.head.appendChild(t)},a.handleVisibleChanges=function(e){a.setState({visiblemyss:e})},a.getAppdata=function(){try{var e=JSON.parse(localStorage.getItem("chromesetting")),t=JSON.parse(localStorage.getItem("chromesettingresponse"));a.setState({mygetHelmetapi2:e}),e.tab_logo_url?a.gettablogourldata(t):a.gettablogourlnull()}catch(e){a.geturlsdata()}},a.geturlsdata=function(){k.a.get("/setting.json").then((function(e){if(e)if(e.data){a.setState({mygetHelmetapi2:e.data.setting}),localStorage.setItem("chromesetting",JSON.stringify(e.data.setting)),localStorage.setItem("chromesettingresponse",JSON.stringify(e));try{e.data.setting.tab_logo_url?a.gettablogourldata(e):a.gettablogourlnull()}catch(e){a.gettablogourlnull()}}else a.gettablogourlnull();else a.gettablogourlnull()})).catch((function(e){a.gettablogourlnull()}))},a.matchpaths=function(e){var t=a.props.match;return"/forums"===e&&"/forums"===t.path||!(!e.startsWith("/shixuns")||!t.path.startsWith("/shixuns"))||!(!e.startsWith("/paths")||!t.path.startsWith("/paths"))||!(!e.startsWith("/courses")||!t.path.startsWith("/courses"))||!(!e.startsWith("/competitions")||!t.path.startsWith("/competitions"))||!(!e.startsWith("/crowdsourcing")||!t.path.startsWith("/crowdsourcing"))||!(!e.startsWith("/moop_cases")||!t.path.startsWith("/moop_cases"))||!(!e.startsWith("/developer")||!t.path.startsWith("/developer"))},a.setgoshowqqgtounp=function(e){a.setState({goshowqqgtounp:e})},a.state={Addcoursestypes:!1,tojoinitemtype:!1,tojoinclasstitle:void 0,rolearr:["",""],Checkboxteacherchecked:!1,Checkboxstudentchecked:!1,Checkboxteachingchecked:!1,Checkboxteachertype:!1,Checkboxteachingtype:!1,code_notice:!1,checked_notice:!1,RadioGroupvalue:void 0,submitapplications:!1,isRender:!1,showSearchOpentype:!1,showTrial:!1,setevaluatinghides:!1,occupation:0,mydisplay:!1,headtypesonClickbool:!1,headtypess:"/",mygetHelmetapi2:null,goshowqqgtounp:!1,visiblemyss:!1},a}return Object(l.a)(t,e),Object(i.a)(t,[{key:"componentDidMount",value:function(){var e,t;this.getAppdata(),window._header_componentHandler=this,S(".edu-menu-panel").hover((function(){e&&(t&&t!=this&&S(t).find(".edu-menu-list").hide(),clearTimeout(e),e=null),S(t=this).find(".edu-menu-list").show()}),(function(){var t=this;e=setTimeout((function(){S(t).find(".edu-menu-list").hide()}),800)}));try{window.sessionStorage.setItem("yslgeturls",JSON.stringify(window.location.href))}catch(t){}}},{key:"componentWillReceiveProps",value:function(e){this.setState({user:e.user})}},{key:"render",value:function(){var e=this,t=this.props.match,a=this.state,n=a.Addcoursestypes,o=a.tojoinitemtype,s=a.tojoinclasstitle,i=a.code_notice,r=a.checked_notice,c=a.AccountProfiletype,l=a.submitapplications,u=a.submitapplicationsvalue,h=a.user,m=a.isRender,w=a.showSearchOpentype,k=(a.headtypesonClickbool,a.headtypess,a.mygetHelmetapi2),S=a.goshowqqgtounp,O=!1,H=!1,A=!1,P=!1,L=!1,q=!1;if("/forums"===t.path?O=!0:t.path.startsWith("/shixuns")?H=!0:t.path.startsWith("/paths")?A=!0:t.path.startsWith("/courses")?P=!0:t.path.startsWith("/crowdsourcing")||(t.path.startsWith("/moop_cases")?L=!0:t.path.startsWith("/competitions")&&(q=!0)),k&&k.navbar&&0<k.navbar.length)if("/"===t.path);else for(var I=0;I<k.navbar.length;I++)if(t.path===k.navbar[I].link){k.navbar[I].link;break}var D=!1,R=!1,T=!1;return this.props&&null!=this.props.mygetHelmetapi&&this.props.mygetHelmetapi.navbar.map((function(e,t){var a=RegExp(e.link);"/shixuns".match(a)&&!0===e.hidden&&(D=!0),"/paths".match(a)&&!0===e.hidden&&(R=!0),"/courses".match(a)&&!0===e.hidden&&(T=!0)})),p.a.createElement("div",{className:"questiontypes",style:{width:"93px",height:"80px"}},p.a.createElement("a",{href:"/question"},p.a.createElement("p",{className:"questiontype"},"\u8bd5\u9898\u5e93")),p.a.createElement("p",{className:"questiontypeheng"}),p.a.createElement("a",{href:"/paperlibrary"},p.a.createElement("p",{className:"questiontype"},"\u8bd5\u5377\u5e93")),p.a.createElement("p",{className:"questiontypeheng"})),p.a.createElement("div",{className:"newHeaders",id:"nHeader"},p.a.createElement("style",null,"\n\t\t\t\t\t body .questionbanks .ant-popover-inner-content {\n\t\t\t\t\t\t padding:0px !important;\n\t\t\t\t\t }\n\t\t\t\t\t"),!0===m?p.a.createElement(N.a,Object.assign({Modifyloginvalue:function(){return e.Modifyloginvalue()}},this.props,this.state)):"",!0===c?p.a.createElement(b.a,Object.assign({hideAccountProfile:function(){return e.hideAccountProfile()}},this.props,this.state)):"",!0===S?p.a.createElement(x.a,Object.assign({},this.state,this.props,{setgoshowqqgtounp:function(t){return e.setgoshowqqgtounp(t)}})):"",p.a.createElement("a",{href:"/",onClick:function(){return e.headtypesonClick("/",!1)},className:"fl mr30 ml25 mt10"},null===k?"":void 0===k||null===k.nav_logo_url||void 0===k.nav_logo_url?p.a.createElement("img",{alt:"\u9ad8\u6821\u667a\u80fd\u5316\u6559\u5b66\u4e0e\u5b9e\u8bad\u5e73\u53f0",className:"logoimg",style:{heigth:"40px"},src:Object(E.L)("images/educoder/headNavLogo.png?1526520218")}):p.a.createElement("img",{alt:"\u9ad8\u6821\u667a\u80fd\u5316\u6559\u5b66\u4e0e\u5b9e\u8bad\u5e73\u53f0",className:"logoimg",style:{heigth:"40px"},src:Object(E.L)(k.nav_logo_url)})),p.a.createElement("style",null,"\n\t\t\t\t\t\t.educontents{\n\t\t\t\t\t\t\tmargin: 0px auto;\n\t\t\t\t\t\t\tbox-sizing: border-box;\n\n\t\t\t\t\t\t}\n\t\t\t\t\t\t"),null===k?"":void 0!==k&&null!==k.navbar&&void 0!==k.navbar&&0<k.navbar.length?p.a.createElement("div",{className:"head-nav pr",id:"head-navpre1"},p.a.createElement("ul",{id:"header-nav"},k.navbar&&k.navbar.map((function(t,a){var n=new RegExp("http"),o=!1;return t.link&&(o=!0===n.test(t.link)),p.a.createElement("li",{key:a,onClick:function(){return e.headtypesonClick(t.link,!0)},className:"".concat(!0===e.matchpaths(t.link)?"pr active":"pr"),style:0==t.hidden?{display:"block"}:{display:"none"}},!0===o?p.a.createElement("a",{href:t.link},t.name):p.a.createElement(v.b,{to:t.link},t.name))})),p.a.createElement("style",null,"\n\t\t\t\t\t\t\t\t\t\t\t\t.queyppors {\n top: 63px !important;\n }\n\n\t\t\t\t\t\t\t\t\t\t\t .questionbanks .ant-popover-inner-content {\n\t\t\t\t\t\t\t\t\t\t\t padding:0px !important;\n\t\t\t\t\t\t\t\t\t\t\t }\n\t\t\t\t\t\t\t\t\t\t\t\t"),p.a.createElement("li",{style:{display:void 0===this.props.Headertop||null===this.props.Headertop.auth?"none":"block"}},p.a.createElement("a",{href:void 0===this.props.Headertop?"":this.props.Headertop.auth},"\u5de5\u7a0b\u8ba4\u8bc1")),p.a.createElement("li",{className:"fl edu-menu-panel careershover ",style:{display:void 0!==this.props.Headertop&&0<this.props.Headertop.career_url.length?"block":"none"}},p.a.createElement("a",null,"\u804c\u4e1a\u8def\u5f84"),p.a.createElement("div",{style:{display:void 0!==this.props.Headertop&&0<this.props.Headertop.career_url.length?"block":"none"}},p.a.createElement("ul",{className:"edu-menu-list edu-menu-listnew ",style:{top:"60px"}},void 0===this.props.Headertop?"":this.props.Headertop.career_url.map((function(e,t){return p.a.createElement("li",{key:t},p.a.createElement("i",{className:"iconfont icon-java left careersiconfont",style:{color:"#000 important"}}),p.a.createElement("a",{style:{width:"83%"},href:e.url},e.name))}))))))):p.a.createElement("div",{className:"head-nav pr",id:"head-navpre3"},p.a.createElement("ul",{id:"header-nav"},p.a.createElement("li",{className:"".concat(!0===A?"pr active":"pr")},p.a.createElement(v.b,{to:void 0===this.props.Headertop?"":"/paths"},"\u5b9e\u8df5\u8bfe\u7a0b")),p.a.createElement("li",{className:"".concat(!0===P?"pr active":"pr")},p.a.createElement(v.b,{to:void 0===this.props.Headertop?"":"/courses"},"\u6559\u5b66\u8bfe\u5802")),p.a.createElement("li",{className:"".concat(!0===H?"pr active":"pr")},p.a.createElement(v.b,{to:"/shixuns"},"\u5b9e\u8bad\u9879\u76ee")),p.a.createElement("li",{className:"fl edu-menu-panel careershover ",style:{display:void 0!==this.props.Headertop&&0<this.props.Headertop.career_url.length?"block":"none"}},p.a.createElement("a",null,"\u804c\u4e1a\u8def\u5f84"),p.a.createElement("div",{style:{display:void 0!==this.props.Headertop&&0<this.props.Headertop.career_url.length?"block":"none"}},p.a.createElement("ul",{className:"edu-menu-list edu-menu-listnew ",style:{top:"60px"}},void 0===this.props.Headertop?"":this.props.Headertop.career_url.map((function(e,t){return p.a.createElement("li",{key:t},p.a.createElement("i",{className:"iconfont icon-java left careersiconfont",style:{color:"#000 important"}}),p.a.createElement("a",{style:{width:"83%"},href:e.url},e.name))}))))),p.a.createElement("li",{className:"".concat(!0===q?"pr active":"pr")},p.a.createElement("a",{href:void 0===this.props.Headertop?"":this.props.Headertop.competitions_url},"\u5728\u7ebf\u7ade\u8d5b")),p.a.createElement("li",{className:"".concat(!0===L?"pr active":"pr")}," ",p.a.createElement(v.b,{to:"/moop_cases"},"\u6559\u5b66\u6848\u4f8b")),p.a.createElement("li",{className:"".concat(!0===O?"active":"")}," ",p.a.createElement(v.b,{to:void 0===this.props.Headertop?"":this.props.Headertop.topic_url},"\u4ea4\u6d41\u95ee\u7b54")),p.a.createElement("li",{style:{display:void 0===this.props.Headertop||null===this.props.Headertop.auth?"none":"block"}},p.a.createElement("a",{href:void 0===this.props.Headertop?"":this.props.Headertop.auth},"\u5de5\u7a0b\u8ba4\u8bc1")))),p.a.createElement("style",null,"\n .posi-searchs{\n opacity: 1;\n position: absolute;\n top: -2px;\n background: #fff;\n z-index:10000;\n right: 185px;\n }\n\t\t\t\t\t\t\t\t"),p.a.createElement("div",{className:"posi-searchs"},p.a.createElement("div",{className:"search-all clearfix"},p.a.createElement("div",{className:"fl pr search-clear edu-menu-panel",style:{display:"none"}},p.a.createElement("input",{type:"hidden",id:"search_type",value:"1"}),p.a.createElement("span",{className:"searchkey"},"\u5b9e\u8bad"),p.a.createElement("i",{className:"fa fa-angle-down ml5 font-16"}),p.a.createElement("ul",{id:"searchkey",className:"edu-menu-list edu-txt-center",style:{minWidth:"80px",right:"-10px",top:"50px"}},p.a.createElement("li",null,p.a.createElement("a",null,"\u5b9e\u8bad")),p.a.createElement("li",null,p.a.createElement("a",null,"\u8bfe\u5802")),p.a.createElement("li",null,p.a.createElement("a",null,"\u7528\u6237")))),!0===w?p.a.createElement("div",{className:"HeaderSearch",onBlur:function(t){return e.hideshowSearchOpen(t)},onMouseLeave:function(){return e.setevaluatinghides()}},p.a.createElement(j,{id:"HeaderSearchs",placeholder:"\u5b9e\u8df5\u8bfe\u7a0b/\u6559\u5b66\u8bfe\u5802/\u5b9e\u8bad\u9879\u76ee/\u4ea4\u6d41\u95ee\u7b54",onInput:function(){return e.onKeywordSearchKeyDowns()},onSearch:function(t){return e.onKeywordSearchKeyDown(t)},style:{width:300,height:32},autoFocus:!0})):"")),void 0===h||""===h.login?p.a.createElement("span",{className:"font-15 fr mt17 ml5 mr25"},p.a.createElement("a",{onClick:function(){return e.educoderlogin()},className:"mr5 color-white"},"\u767b\u5f55"),p.a.createElement("em",{className:"vertical-line"}),p.a.createElement("a",{href:"/register",className:"mr5 color-white"},"\u6ce8\u518c")):p.a.createElement("div",{className:"fr edu-menu-panel mr25",style:{height:"60px"}},p.a.createElement("a",{href:"/users/".concat(void 0===this.props.current_user?"":this.props.current_user.login,"/courses"),className:"fl ml15"},p.a.createElement("img",{alt:"\u5934\u50cf",className:"radius mt13",height:"34",id:"nh_user_logo",name:"avatar_image",src:Object(E.L)("images/"+h.image_url),width:"34"})),p.a.createElement("ul",{className:"edu-menu-list",style:{top:"60px"}},p.a.createElement("li",null,p.a.createElement(v.b,{to:"/users/".concat(this.props.current_user.login,"/courses")},"\u6211\u7684\u4e2a\u4eba\u4e3b\u9875")),!0===T?"":p.a.createElement("li",null,p.a.createElement(v.b,{to:"/users/".concat(void 0===this.props.current_user?"":this.props.current_user.login,"/courses")},this.props.user&&!1===this.props.user.main_site?"\u6211\u7684\u8bfe\u5802":"\u6211\u7684\u6559\u5b66\u8bfe\u5802")),!0===D?"":p.a.createElement("li",null,p.a.createElement(v.b,{to:"/users/".concat(void 0===this.props.current_user?"":this.props.current_user.login,"/shixuns")},"\u6211\u7684\u5b9e\u8bad\u9879\u76ee")),!0===R?"":p.a.createElement("li",null,p.a.createElement(v.b,{to:"/users/".concat(void 0===this.props.current_user?"":this.props.current_user.login,"/paths")},this.props.user&&!1===this.props.user.main_site?"\u6211\u7684\u8bfe\u7a0b":"\u6211\u7684\u5b9e\u8df5\u8bfe\u7a0b")),this.props.user&&!0===this.props.user.main_site?p.a.createElement("li",null,p.a.createElement(v.b,{to:"/users/".concat(void 0===this.props.current_user?"":this.props.current_user.login,"/projects")},"\u6211\u7684\u5f00\u53d1\u9879\u76ee")):"",p.a.createElement("li",{style:{display:void 0===this.props.Headertop||null===this.props.Headertop.customer_management_url||""===this.props.Headertop.customer_management_url?"none":"block"}},p.a.createElement("a",{href:void 0===this.props.Headertop?"":this.props.Headertop.customer_management_url},"\u5ba2\u6237\u7ba1\u7406")),this.props.Headertop&&this.props.Headertop.college_identifier&&p.a.createElement("li",null,p.a.createElement("a",{href:"/colleges/".concat(this.props.Headertop.college_identifier,"/statistics")},"\u5b66\u9662\u7edf\u8ba1")),this.props.Headertop&&this.props.Headertop.laboratory_user&&p.a.createElement("li",null,p.a.createElement("a",{href:this.props.Headertop.laboratory_admin_url},"\u540e\u53f0\u7ba1\u7406")),p.a.createElement("li",null,p.a.createElement("a",{href:"/account/profile"},"\u8d26\u53f7\u7ba1\u7406")),p.a.createElement("li",{className:"bor-top-greyE"},p.a.createElement("a",{onClick:function(){return e.educoderloginysl()}},"\u9000\u51fa")))),p.a.createElement("div",{className:"fr head-right"},!0!==w&&this.props.user&&!0===this.props.user.main_site?p.a.createElement("a",{id:"search-open",className:"fl mr30 headIcon",onClick:function(t){return e.showSearchOpen(t)}},p.a.createElement("i",{className:"iconfont icon-sousuo color-white"})):"",p.a.createElement("div",{className:"fl mr30 edu-menu-panel headIcon"},p.a.createElement("i",{className:"iconfont icon-tianjiafangda color-white"}),p.a.createElement("div",{className:"edu-menu-list",style:{top:"60px",width:"240px"}},p.a.createElement("div",{className:"overPart"}),p.a.createElement("ul",{className:!0===T&&this.props.user&&!1===this.props.user.main_site?"fl headwith100b edu-txt-center pr ul-leftline":"fl with50 edu-txt-center pr ul-leftline"},this.props.current_user&&"\u5b66\u751f"===this.props.current_user.user_identity||!1!==T?"":p.a.createElement("li",null,p.a.createElement("a",{onClick:function(){return e.getUser("/courses/new")}},this.props.user&&!1===this.props.user.main_site?"\u65b0\u5efa\u8bfe\u5802":"\u65b0\u5efa\u6559\u5b66\u8bfe\u5802")),!0===D?"":p.a.createElement("li",null,p.a.createElement("a",{onClick:function(){return e.getUser("/shixuns/new","newshixuns")}},"\u65b0\u5efa\u5b9e\u8bad\u9879\u76ee")),this.props.user&&!1===this.props.user.main_site||void 0===this.props.Headertop?"":p.a.createElement("li",null,p.a.createElement("a",{onClick:function(){return e.getUser("/paths/new")}},"\u65b0\u5efa\u5b9e\u8df5\u8bfe\u7a0b")),this.props.user&&!0===this.props.user.main_site||void 0===this.props.Headertop||!0===R||!(this.props.user&&!0===this.props.user.admin||this.props.user&&!0===this.props.user.is_teacher||this.props.user&&!0===this.props.user.business)?"":p.a.createElement("li",null,p.a.createElement("a",{onClick:function(){return e.getUser("/paths/new")}},"\u65b0\u5efa\u5b9e\u8df5\u8bfe\u7a0b")),this.props.user&&!0===this.props.user.main_site?p.a.createElement("li",null,p.a.createElement("a",{onClick:function(){return e.getUser("/projects/new","projects")},target:"_blank"},"\u65b0\u5efa\u5f00\u53d1\u9879\u76ee")):""),!0===T&&this.props.user&&!1===this.props.user.main_site?"":p.a.createElement("ul",{className:"fl with50 edu-txt-center"},!0===T?"":p.a.createElement("li",null,p.a.createElement("a",{onClick:this.tojoinclass},this.props.user&&!1===this.props.user.main_site?"\u52a0\u5165\u8bfe\u5802":"\u52a0\u5165\u6559\u5b66\u8bfe\u5802")),!0===n?p.a.createElement(_.a,{Addcoursestype:n,hideAddcoursestype:this.hideAddcoursestypes,HideAddcoursestypess:function(t){return e.HideAddcoursestypess(t)}}):"",p.a.createElement(y.a,Object.assign({},this.props,this.state,{ModalCancelsy:this.ModalCancelsy})),this.props.user&&!0===this.props.user.main_site?p.a.createElement("li",null,p.a.createElement("a",{onClick:this.tojoinitem},"\u52a0\u5165\u5f00\u53d1\u9879\u76ee")):"",!0===o?p.a.createElement(d.a,{keyboard:!1,title:"\u52a0\u5165\u9879\u76ee",visible:o,closable:!1,footer:null},p.a.createElement("div",{className:"task_popup_con"},p.a.createElement("div",{className:"mr15"},p.a.createElement("ul",null,p.a.createElement("li",{className:"clearfix mb10"},p.a.createElement("label",{className:"panel-form-label fl"},"\u9879\u76ee\u9080\u8bf7\u7801\uff1a"),p.a.createElement(f.a,{type:"text",className:"input-60-40 fl mt5",name:"invite_code",style:{width:"275px"},placeholder:"\u8bf7\u8f93\u51656\u4f4d\u5f00\u53d1\u9879\u76ee\u9080\u8bf7\u7801",value:s,onInput:this.inputjoinclassvalue})),p.a.createElement("p",{id:"none_invite_code_notice",className:"color-orange none f12",style:{marginLeft:"90px",display:!0===i?"block":"none"}},"\u8bf7\u8f93\u51656\u4f4d\u9879\u76ee\u9080\u8bf7\u7801"),p.a.createElement("li",{className:"clearfix "},p.a.createElement("label",{className:"panel-form-label fl"},"\u8eab\u4efd\uff1a"),p.a.createElement(C,{className:"mt10",onChange:this.onChangeRadioGroup},p.a.createElement(g.a,{value:"manager"},"\u7ba1\u7406\u4eba\u5458"),p.a.createElement(g.a,{value:"developer"},"\u5f00\u53d1\u4eba\u5458"),p.a.createElement(g.a,{value:"reporter"},"\u62a5\u544a\u4eba\u5458"))),p.a.createElement("p",{id:"none_checked_notice",className:"color-orange none f12",style:{marginLeft:"90px",display:!0===r?"block":"none"}},"\u8bf7\u9009\u62e9\u4e00\u4e2a\u8eab\u4efd"),p.a.createElement("li",{className:"clearfix mt10 edu-txt-center"},p.a.createElement("a",{className:"task-btn mr10",onClick:function(){return e.hidetojoinclass(1)}},"\u53d6\u6d88"),p.a.createElement("a",{className:"task-btn task-btn-orange ml20",onClick:function(){return e.submittojoinclass(1)}},"\u786e\u5b9a")))))):""))),this.props.user&&!0===this.props.user.main_site?p.a.createElement("div",{className:"fl mr30 edu-menu-panel headIcon"},void 0===h||""===h.login?"":p.a.createElement("a",{href:"/messages/".concat(h.login,"/user_tidings"),style:{position:"relative"}},p.a.createElement("i",{className:"iconfont icon-xiaoxilingdang color-white"}),p.a.createElement("span",{className:"newslight",style:{display:void 0!==this.props.Headertop&&!0===this.props.Headertop.new_message?"block":"none"}}))):"",p.a.createElement(d.a,{keyboard:!1,title:"\u63d0\u793a",visible:l,closable:!1,footer:null},p.a.createElement("div",{className:"task_popup_con ml30"},p.a.createElement("div",{className:"mr15"},p.a.createElement("ul",null,p.a.createElement("div",{className:"task-popup-content"},p.a.createElement("p",{className:"task-popup-text-center font-16"},u)),p.a.createElement("li",{className:"clearfix mt10 edu-txt-center"},p.a.createElement("a",{className:"task-btn mr10",onClick:this.hidesubmitapplications},"\u53d6\u6d88"),p.a.createElement("a",{className:"task-btn task-btn-orange ml20",onClick:this.submitsubmitapplications},"\u786e\u5b9a"))))))))}}]),t}(u.Component),H=a(832),A=a(833),P=function(e){function t(e){var a;return Object(s.a)(this,t),(a=Object(r.a)(this,Object(c.a)(t).call(this,e))).gotoback=function(){null!=a.props.AccountPhoneemailtype?(a.setState({AccountPhoneemailtype:!1}),a.props.hideAccountProfile()):(window.location.href="/",a.setState({AccountPhoneemailtype:!1}))},a.state={AccountPhoneemailtype:!1},a}return Object(l.a)(t,e),Object(i.a)(t,[{key:"componentDidMount",value:function(){var e=this;null!=this.props.AccountPhoneemailtype&&this.setState({AccountPhoneemailtype:this.props.AccountPhoneemailtype}),k.a.interceptors.response.use((function(t){return null!=t&&t&&402===t.data.status&&e.setState({AccountPhoneemailtype:!0}),t}),(function(e){}))}},{key:"render",value:function(){var e=this,t=this.props;return t.content,t.okText,t.okHref,p.a.createElement(d.a,{keyboard:!1,title:"\u63d0\u793a",visible:this.state.AccountPhoneemailtype,closable:!1,footer:null,destroyOnClose:!0,centered:!0,width:"530px"},p.a.createElement("div",{className:"task-popup-content"},p.a.createElement("p",{className:"task-popup-text-center font-16"}," \u60a8\u9700\u8981\u5b8c\u6210\u624b\u673a\u53f7\u7801\u6216\u8005\u90ae\u7bb1\u7684\u7ed1\u5b9a\uff0c\u624d\u80fd\u4f7f\u7528\u6b64\u529f\u80fd"),p.a.createElement("div",{className:"clearfix mt30 edu-txt-center"},p.a.createElement("a",{className:"task-btn mr30",onClick:function(){return e.gotoback()}},"\u7a0d\u540e\u7ed1\u5b9a"),p.a.createElement("a",{className:"task-btn task-btn-orange",href:"/account/secure"}," ","\u7acb\u5373\u7ed1\u5b9a"))))}}]),t}(u.Component);a.d(t,"a",(function(){return I}));var L=window.$,q="";function I(e){return function(t){function a(e){var t;return Object(s.a)(this,a),(t=Object(r.a)(this,Object(c.a)(a).call(this,e))).showShixun=function(){var e=t.props.match.params.shixunId,a="/api/v1/shixuns/".concat(e,"/show_shixun");t.setState({tpmLoading:!0}),k.a.get(a,{withCredentials:!0}).then((function(e){e.data&&e.data.shixun&&(t.initCommonState(e.data.current_user),e.data.tpmLoading=!1,t.setState(e.data))})).catch((function(e){}))},t.aboutFocus=function(){var e=t.state,a=e.creator,n=e.watched,o="/api/v1/users/".concat(a.owner_id,"/").concat(n?"unwatch":"watch","?object_id=").concat(a.owner_id,"&object_type=user");k.a.get(o,{}).then((function(e){1==e.data.status&&t.setState({watched:!n})})).catch((function(e){}))},t.keyupListener=function(e){"Escape"===e.key&&t.setState({globalLoading:!1})},t.isSuperAdmin=function(){return t.state.coursedata&&0===t.state.coursedata.course_identity},t.isCourseAdmin=function(){return t.state.coursedata&&2===t.state.coursedata.course_identity},t.isClassManagement=function(){return t.state.coursedata&&t.state.coursedata.course_identity<2},t.isAdminOrCreator=function(){return t.state.coursedata&&t.state.coursedata.course_identity<3},t.isAdminOrTeacher=function(){return t.state.coursedata&&t.state.coursedata.course_identity<4},t.isAdmin=function(){return t.state.coursedata&&t.state.coursedata.course_identity<5},t.isStudent=function(){return t.state.coursedata&&5===t.state.coursedata.course_identity},t.isAdminOrStudent=function(){return t.state.coursedata&&t.state.coursedata.course_identity<=5},t.isNotMember=function(){return t.state.coursedata&&6<=t.state.coursedata.course_identity},t.isCourseEnd=function(){return!!t.state.current_user&&t.state.current_user.course_is_end},t.gettablogourlnull=function(){t.setState({mygetHelmetapi:void 0}),document.title="EduCoder";var e=document.createElement("link"),a=document.getElementById("dynamic-favicon");e.id="dynamic-favicon",e.rel="shortcut icon",e.href="/react/build/./favicon.ico",a&&document.head.removeChild(a),document.head.appendChild(e)},t.gettablogourldata=function(e){document.title=e.data.setting.name;var t=document.createElement("link"),a=document.getElementById("dynamic-favicon");t.id="dynamic-favicon",t.rel="shortcut icon",t.href="/"+e.data.setting.tab_logo_url,a&&document.head.removeChild(a),document.head.appendChild(t)},t.getAppdata=function(){try{var e=JSON.parse(localStorage.getItem("chromesetting")),a=JSON.parse(localStorage.getItem("chromesettingresponse"));t.setState({mygetHelmetapi:e}),e.tab_logo_url?t.gettablogourldata(a):t.gettablogourlnull()}catch(e){t.getAppdatausr()}},t.getAppdatausr=function(){k.a.get("/setting.json").then((function(e){if(e)if(e.data){t.setState({mygetHelmetapi:e.data.setting}),localStorage.setItem("chromesetting",JSON.stringify(e.data.setting)),localStorage.setItem("chromesettingresponse",JSON.stringify(e));try{e.data.setting.tab_logo_url?t.gettablogourldata(e):t.gettablogourlnull()}catch(e){t.gettablogourlnull()}}else t.gettablogourlnull();else t.gettablogourlnull()})).catch((function(e){t.gettablogourlnull()}))},t.fetchUser=function(){var e,a=t.props.location.pathname.split("/");"courses"==a[1]&&a[2]&&(e=parseInt(a[2]));var n;n="{}"===JSON.stringify(t.state.dataquerys)?{course_id:isNaN(e)?void 0:e,school:1}:{course_id:isNaN(e)?void 0:e,school:1,chinaoocTimestamp:t.state.dataquerys.chinaoocTimestamp,websiteName:t.state.dataquerys.websiteName,chinaoocKey:t.state.dataquerys.chinaoocKey},k.a.get("/users/get_user_info.json",{params:n}).then((function(e){void 0!==e&&e.data&&(t.initCommonState(e.data),t.setState({tpmLoading:!1,coursedata:{course_identity:0<=e.data.course_identity?e.data.course_identity:void 0,course_public:e.data.course_public,name:e.data.course_name,userid:e.data.user_id}}))})).catch((function(e){}))},t.foo=function(e){var t,a={},n=/[\?\&](\w+)(=?)(\w*)/g;do{if(t=n.exec(e)){var o=t[1],s=t[3];t[2]||(s=void 0),a[o]=s}}while(t);return a},t.hideLoginDialog=function(){t.setState({isRender:!1,isloginCancel:void 0})},t.showLoginDialog=function(){t.setState({isRender:!0,isloginCancel:"iscancel"})},t.checkIfLogin=function(){return t.state.current_user&&""!=t.state.current_user.login},t.hideAccountProfile=function(){t.setState({AccountProfiletype:!1})},t.showProfileCompleteDialog=function(){t.dialogObj={},t.setState({AccountProfiletype:!0})},t.showhideAccountPhoneemailDialog=function(){t.dialogObj={},t.setState({AccountPhoneemailtype:!0})},t.hideAccountPhoneemailtype=function(){t.setState({AccountPhoneemailtype:!1})},t.checkIfProfileCompleted=function(){return t.state.current_user&&t.state.current_user.profile_completed},t.showaccountprofileDialog=function(){t.dialogObj={content:"\u60a8\u9700\u8981\u53bb\u5b8c\u6210\u60a8\u7684\u4e2a\u4eba\u8d44\u6599\uff0c\u624d\u80fd\u4f7f\u7528\u6b64\u529f\u80fd",okText:"\u7acb\u5373\u5b8c\u6210",okHref:"/account/profile"},t.setState({AccountProfiletype:!0})},t.showProfessionalCertificationDialog=function(){t.dialogObj={content:"\u60a8\u9700\u8981\u53bb\u5b8c\u6210\u60a8\u7684\u804c\u4e1a\u8ba4\u8bc1\uff0c\u624d\u80fd\u4f7f\u7528\u6b64\u529f\u80fd",okText:"\u7acb\u5373\u5b8c\u6210",okHref:"/account/certification"},t.setState({AccountProfiletype:!0})},t.checkIfProfessionalCertification=function(){return t.state.current_user&&t.state.current_user.professional_certification},t.ShowOnlinePdf=function(e){return k()({method:"get",url:e,responseType:"arraybuffer"}).then((function(e){var a=[];a.push(e.data),t.url=window.URL.createObjectURL(new Blob(a,{type:"application/pdf"})),window.open(t.url)}))},t.DownloadFileA=function(e,t){var a=document.createElement("a");document.body.appendChild(a),a.href=t,a.download=e;var n=document.createEvent("MouseEvents");n.initEvent("click",!1,!1),a.dispatchEvent(n),document.body.removeChild(a)},t.DownloadOpenPdf=function(e,t){!0===e?window.open(t):window.location.href=t},t.slowDownload=function(e,a){t._gLoadingTip=a||"\u6b63\u5728\u751f\u6210\u6587\u4ef6\uff0c\u8bf7\u7a0d\u540e...",t.setState({globalLoading:!0});var n=e;Object(E.I)({url:n,successCallback:function(){t.setState({globalLoading:!1})},failCallback:function(){t.setState({globalLoading:!1})}})},t.yslslowCheckresults=function(e){t._gLoadingTip=e||"\u6210\u7ee9\u8ba1\u7b97\u4e2d\uff0c\u8bf7\u7a0d\u5019...",t.setState({globalLoading:!0})},t.yslslowCheckresultsNo=function(){t.setState({globalLoading:!1})},t.showGlobalLoading=function(e){t._gLoadingTip=e||"\u52a0\u8f7d\u4e2d\uff0c\u8bf7\u7a0d\u540e...",t.setState({globalLoading:!0})},t.hideGlobalLoading=function(){t.setState({globalLoading:!1})},t.MdifHasAnchorJustScorll=function(){var e=decodeURI(t.props.location.hash).replace("#","");if(e){var a=document.getElementsByName(e);a&&0<a.length&&a[a.length-1].scrollIntoView()}},t.scrollToAnchor=function(e){if(e){var t=document.getElementById(e);t&&t.scrollIntoView()}},window.$("#root").css("position","relative"),t.state={tpmLoading:!0,resLoading:!0,Headertop:void 0,Footerdown:void 0,coursedata:{},isRender:!1,AccountProfiletype:!1,AccountPhoneemailtype:!1,globalLoading:!1,dataquerys:{},isloginCancel:void 0,mygetHelmetapi:null},t}return Object(l.a)(a,t),Object(i.a)(a,[{key:"initCommonState",value:function(e){var t=Object.assign({},Object(o.a)({},e),{image_url:"".concat(e.image_url)});this.setState({user:t,current_user:t})}},{key:"componentWillUnmount",value:function(){window.removeEventListener("keyup",this.keyupListener)}},{key:"componentDidMount",value:function(){var e=this;window.addEventListener("keyup",this.keyupListener),"/"===this.props.match.path||("/403"===this.props.match.path?document.title="\u4f60\u6ca1\u6709\u6743\u9650\u8bbf\u95ee":"/nopage"===this.props.match.path?document.title="\u6ca1\u6709\u627e\u5230\u8be5\u9875\u9762":"/shixuns"===this.props.match.path?document.title="\u5b9e\u8bad\u9879\u76ee":"/paths"===this.props.match.path?document.title="\u5b9e\u8df5\u8bfe\u7a0b":"/courses"===this.props.match.path&&(document.title="\u7ffb\u8f6c\u8bfe\u5802")),L.ajaxSetup({cache:!0});var t=this.props.location.search,a={};try{var n=this.foo(t);"{}"===JSON.stringify(n)?this.setState({dataquerys:{}}):(this.setState({dataquerys:n}),a=n)}catch(t){this.setState({dataquerys:{}})}this.fetchUser(a),k.a.get("/users/get_navigation_info.json",{}).then((function(t){null!=t&&200===t.status&&e.setState({Headertop:t.data.top,Footerdown:t.data.down})})),this.getAppdata()}},{key:"render",value:function(){var t=this,a=this.state,o=a.Headertop,s=a.Footerdown,i=a.isRender,r=a.AccountProfiletype,c=a.AccountPhoneemailtype,l={isSuperAdmin:this.isSuperAdmin,isAdminOrCreator:this.isAdminOrCreator,isClassManagement:this.isClassManagement,isCourseAdmin:this.isCourseAdmin,isAdmin:this.isAdmin,isAdminOrTeacher:this.isAdminOrTeacher,isStudent:this.isStudent,isAdminOrStudent:this.isAdminOrStudent,isNotMember:this.isNotMember,isCourseEnd:this.isCourseEnd,isUserid:this.state.coursedata&&this.state.coursedata.userid,fetchUser:this.fetchUser,showLoginDialog:this.showLoginDialog,checkIfLogin:this.checkIfLogin,showProfileCompleteDialog:this.showProfileCompleteDialog,showhideAccountPhoneemailDialog:this.showhideAccountPhoneemailDialog,checkIfProfileCompleted:this.checkIfProfileCompleted,showaccountprofileDialog:this.showaccountprofileDialog,checkIfProfessionalCertification:this.checkIfProfessionalCertification,showProfessionalCertificationDialog:this.showProfessionalCertificationDialog,ShowOnlinePdf:function(e){return t.ShowOnlinePdf(e)},DownloadFileA:function(e,a){return t.DownloadFileA(e,a)},DownloadOpenPdf:function(e,a){return t.DownloadOpenPdf(e,a)},slowDownload:this.slowDownload,showGlobalLoading:this.showGlobalLoading,hideGlobalLoading:this.hideGlobalLoading,yslslowCheckresults:this.yslslowCheckresults,yslslowCheckresultsNo:this.yslslowCheckresultsNo,MdifHasAnchorJustScorll:this.MdifHasAnchorJustScorll,scrollToAnchor:this.scrollToAnchor},u=this.props&&this.props.match&&this.props.match.path;return p.a.createElement("div",{className:"indexHOC"},!0===i?p.a.createElement(N.a,Object.assign({Modifyloginvalue:function(){return t.hideLoginDialog()}},this.props,this.state)):"",!0===r?p.a.createElement(b.a,Object.assign({hideAccountProfile:function(){return t.hideAccountProfile()}},this.props,this.state,this.dialogObj)):"",!0===c?p.a.createElement(P,Object.assign({hideAccountProfile:function(){return t.hideAccountPhoneemailtype()}},this.props,this.state,this.dialogObj)):"",u&&"/question"===u?"":p.a.createElement(A.a,Object.assign({},this.props,this.state,{Headertop:o})),p.a.createElement("style",null,"\n\t\t\t\t\t\t\t.newContainers{\n\t\t\t\t\t\t\t min-width: 1200px;\n max-width: unset;\n height: 100%;\n min-height: 100%;\n\t\t\t\t\t\t\t\toverflow: hidden;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t.newHeaders{\n\t\t\t\t\t\t\t // position: fixed;\n\t\t\t\t\t\t\t\tmax-width: unset;\n\t\t\t\t\t\t\t\tbackground: #24292D !important;\n\t\t\t\t\t\t\t\twidth: 100%;\n\t\t\t\t\t\t\t\theight: 60px !important;\n\t\t\t\t\t\t\t\tmin-width: 1200px;\n\t\t\t\t\t\t\t\tz-index: 1000;\n\t\t\t\t\t\t\t\t-moz-box-shadow: 0px 0px 12px rgba(0,0,0,0.1);\n\t\t\t\t\t\t\t\tbox-shadow: 0px 0px 12px rgba(0,0,0,0.1);\n\t\t\t\t\t\t\t}\n\n .globalSpin {\n max-height: 700px !important;\n }\n .indexHOC > .ant-spin-nested-loading {\n background: #000;\n }\n .indexHOC > .ant-spin-nested-loading > div > .ant-spin .ant-spin-dot {\n top: 50% !important;\n }\n\n .globalSpin .ant-spin-text {\n text-shadow: none !important;\n color: #fff;\n }\n .globalSpin .ant-spin-dot-item {\n background-color: #fff;\n }\n\t\t\t\t\t\t\t"),p.a.createElement(O,Object.assign({},this.state,this.props)),p.a.createElement(n.a,{spinning:this.state.globalLoading,delay:0,className:"globalSpin",size:"large",tip:this._gLoadingTip||"\u52a0\u8f7d\u4e2d..."},p.a.createElement("div",{className:"newContainer newContainers"},p.a.createElement(e,Object.assign({initCommonState:function(e){return t.initCommonState(e)}},this.props,this.state,{showShixun:this.showShixun,aboutFocus:this.aboutFocus},l)))),p.a.createElement(H.a,Object.assign({},this.state,this.props,{Footerdown:s})))}}]),a}(p.a.Component)}"3007"===window.location.port&&(q="https://test-newweb.educoder.net"),window.indexHOCLoaded||(window.indexHOCLoaded=!0,L("head").append(L('<link rel="stylesheet" type="text/css" />').attr("href","".concat(q,"/stylesheets/css/edu-common.css?3"))),L("head").append(L('<link rel="stylesheet" type="text/css" />').attr("href","".concat(q,"/stylesheets/educoder/edu-main.css?3"))),L("head").append(L('<link rel="stylesheet" type="text/css" />').attr("href","".concat(q,"/stylesheets/educoder/edu-all.css?3"))))},763:function(e,t,a){},784:function(e,t,a){"use strict";a(50);var n=a(29),o=a(8),s=a(7),i=a(10),r=a(9),c=a(11),l=a(0),u=a.n(l),p=a(28),d=(a(763),a(859),function(e){function t(e){var a;return Object(o.a)(this,t),(a=Object(i.a)(this,Object(r.a)(t).call(this,e))).modalCancel=function(){try{a.props.setgoshowqqgtounp(!1)}catch(e){}},a.setDownload=function(){try{a.props.setgoshowqqgtounp(!1)}catch(e){}},a.state={},a}return Object(c.a)(t,e),Object(s.a)(t,[{key:"render",value:function(){var e=this;return u.a.createElement(n.a,{keyboard:!1,closable:!1,footer:null,destroyOnClose:!0,title:"\u63d0\u793a",centered:!0,visible:void 0!==this.props.goshowqqgtounp&&this.props.goshowqqgtounp,width:"530px"},u.a.createElement("div",{className:"educouddiv intermediatecenter verticallayout"},u.a.createElement("div",{className:"tabeltext-alignleft mt10"},u.a.createElement("p",null,"\u60a8\u53ef\u4ee5\u5728QQ\u670d\u52a1\u7fa4\u5411\u7ba1\u7406\u5458\u7533\u8bf7\uff0c\u83b7\u5f97\u7ee7\u7eed\u64cd\u4f5c\u7684\u6743\u9650")),u.a.createElement("img",{width:"200px",className:"mt10",src:Object(p.L)("images/educoder/qqqun20191230.png")}),u.a.createElement("div",{className:"tabeltext-alignleft mt10"},u.a.createElement("p",null,"\u7fa4\u53f7\uff1a612934990")),u.a.createElement("div",{className:"clearfix mt30 edu-txt-center"},u.a.createElement("a",{className:"task-btn mr30",onClick:function(){return e.modalCancel()}},"\u53d6\u6d88"),u.a.createElement("a",{className:"task-btn task-btn-orange",target:"_blank",href:"//shang.qq.com/wpa/qunwpa?idkey=2f2043d88c1bd61d182b98bf1e061c6185e23055bec832c07d8148fe11c5a6cd"},"\u7acb\u5373\u8054\u7cfb"))))}}]),t}(l.Component));t.a=d},832:function(e,t,a){"use strict";var n=a(8),o=a(7),s=a(10),i=a(9),r=a(11),c=a(0),l=a.n(c),u=a(49),p=a.n(u),d=a(74),h=function(e){function t(e){return Object(n.a)(this,t),Object(s.a)(this,Object(i.a)(t).call(this,e))}return Object(r.a)(t,e),Object(o.a)(t,[{key:"componentWillReceiveProps",value:function(){}},{key:"render",value:function(){return l.a.createElement("div",{className:"newFooter edu-txt-center "},l.a.createElement("style",null,"\n\t\t\t\t\t\t.newFooter {\n\t\t\t\t\t\t\t\tmax-height: 140px !important;\n\t\t\t\t\t\t\t\tpadding-bottom: 20px !important;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tp {\n\t\t\t\t\t\t\t\tmargin-top: 0;\n\t\t\t\t\t\t\t\tmargin-bottom:0px !important;\n\t\t\t\t\t\t}\n\t\t\t\t\t\t"),l.a.createElement("div",{className:"inner-footer_con"},this.props.user&&!0===this.props.user.main_site?l.a.createElement("div",{className:"footercon"},l.a.createElement("ul",{className:"clearfix inner-footernav"},l.a.createElement("li",null,l.a.createElement("a",{href:"/",className:"fl",target:"_blank"},"\u7f51\u7ad9\u9996\u9875")),l.a.createElement("li",null,l.a.createElement(d.b,{to:"/help/about_us",className:"fl",target:"_blank"},"\u5173\u4e8e\u6211\u4eec")),l.a.createElement("li",null,l.a.createElement(d.b,{to:"/help/contact_us",className:"fl",target:"_blank"},"\u8054\u7cfb\u6211\u4eec")),l.a.createElement("li",null,l.a.createElement(d.b,{to:"/help/cooperatives",className:"fl",target:"_blank"},"\u5408\u4f5c\u4f19\u4f34")),l.a.createElement("li",null,l.a.createElement(d.b,{to:"/help/agreement",className:"fl",target:"_blank"},"\u670d\u52a1\u534f\u8bae")),l.a.createElement("li",null,l.a.createElement(d.b,{to:"/help/help_center",className:"fl",target:"_blank"},"\u5e2e\u52a9\u4e2d\u5fc3")),l.a.createElement("li",null,l.a.createElement(d.b,{to:"/help/feedback",className:"fl",target:"_blank"},"\u610f\u89c1\u53cd\u9988")))):"",l.a.createElement("div",null,null===this.props.mygetHelmetapi?"":void 0===this.props.mygetHelmetapi||null===this.props.mygetHelmetapi.footer||void 0===this.props.mygetHelmetapi.footer?l.a.createElement("p",{className:"footer_con-p inline lineh-30 font-14"},l.a.createElement("span",{className:"font-18 fl"},"\xa9"),"\xa0",p()().year(),"\xa0EduCoder",l.a.createElement("a",{style:{color:"#888"},target:"_blank",href:"http://beian.miit.gov.cn/",className:"ml15 mr15"},"\u6e58ICP\u590717009477\u53f7"),l.a.createElement("a",{style:{color:"#888"},target:"_blank",href:"http://www.beian.gov.cn/portal/registerSystemInfo?recordcode=43019002000962",className:"mr15"},l.a.createElement("img",{className:"vertical4",src:a(860)}),"\u6e58\u516c\u7f51\u5b89\u590743019002000962\u53f7"),l.a.createElement("a",{href:"https://team.trustie.net",style:{color:"#888"},target:"_blank"},"Trustie"),"\xa0\xa0\xa0&\xa0\xa0\xa0IntelliDE inside. ",l.a.createElement("span",{className:"mr15"},"\u7248\u6743\u6240\u6709 \u6e56\u5357\u667a\u64ce\u79d1\u6280\u6709\u9650\u516c\u53f8")):l.a.createElement("div",{dangerouslySetInnerHTML:{__html:this.props.mygetHelmetapi.footer}})),l.a.createElement("div",{className:"cl"})))}}]),t}(c.Component);t.a=h},833:function(e,t,a){"use strict";a(259);var n=a(167),o=a(8),s=a(7),i=a(10),r=a(9),c=a(11),l=a(0),u=a.n(l),p=a(28),d=(a(681),window.$);function h(){var e=parseInt((parseInt(d(window).width())-1200)/2)-81;0<e?d(".-task-sidebar").css("right",e):d(".-task-sidebar").css("right","0px"),d(".-task-sidebar").show()}d(window).resize((function(){h()})),d(window).scroll((function(){0<d(".gotop").length&&(0<d(document).scrollTop()&&(d(".-task-sidebar .gotop").show(),d(".gotop").click((function(){d("html,body").scrollTop(0)}))),0==d(document).scrollTop()&&d(".-task-sidebar .gotop").hide())}));var m=function(e){function t(e){return Object(o.a)(this,t),Object(i.a)(this,Object(r.a)(t).call(this,e))}return Object(c.a)(t,e),Object(s.a)(t,[{key:"componentDidMount",value:function(){var e;e=d("<div class='-task-desc'></div>").appendTo("body"),d(".-task-sidebar>div").hover((function(){if(d(this).hasClass("scan"))d(".scan_ewm").show().css({right:"75px",opacity:0}).stop().animate({right:"45px",opacity:1});else{var t=d(this).attr("tooltips");e.html(t+"<div><img src='/images/edu_user/jt.png'></div>"),e.data("_dom",this),e.show().css({left:d(this).offset().left-e.width()-30,opacity:0,top:d(this).offset().top}).stop().animate({left:d(this).offset().left-e.width()-5,opacity:1},400)}}),(function(){d(this).hasClass("scan")&&d(".scan_ewm").stop().animate({right:"75px",opacity:0},200).hide(),e.stop().animate({left:d(this).offset().left-e.width()-30,opacity:0},200).hide()})),h(),d(window).scroll((function(){if(e.height()){var t=e.data("_dom");e.css("top",d(t).offset().top)}}))}},{key:"render",value:function(){return this.props&&this.props.match&&this.props.match.path,u.a.createElement("div",{className:"-task-sidebar"},this.props.mygetHelmetapi&&!0===this.props.mygetHelmetapi.main_site?u.a.createElement("div",null,u.a.createElement(n.a,{placement:"right",title:"\u8fd4\u56de\u9876\u90e8"},u.a.createElement("div",{className:"gotop"},u.a.createElement("a",null,u.a.createElement("i",{className:"iconfont icon-shangjiantou color-white"})))),u.a.createElement(n.a,{placement:"right",title:"\u610f\u89c1\u53cd\u9988"},u.a.createElement("div",{className:"feedback"},u.a.createElement("a",{target:"_blank",className:"color_white",href:"/help/feedback"},u.a.createElement("i",{className:"iconfont icon-yijianfankui color-white font-22"})))),u.a.createElement("div",{className:"scan pr"},u.a.createElement(n.a,{placement:"right",title:u.a.createElement("pre",null,u.a.createElement("p",{className:"scan_ewm"},u.a.createElement("p",{className:"pr padding10"},u.a.createElement("style",null,"\n .WeChatstyle{\n margin-bottom: 0 !important;\n }\n "),u.a.createElement("img",{src:Object(p.L)("images/educoder/EWM.jpg"),width:"158px",height:"158px"}),u.a.createElement("p",{className:"WeChatstyle wechatcenter"},"\u5fae\u4fe1\u626b\u4e00\u626b"),u.a.createElement("p",{className:"WeChatstyle wechatcenter"},"\u5173\u6ce8\u516c\u4f17\u53f7"))))},u.a.createElement("span",{className:"inline erweima"},u.a.createElement("i",{className:"iconfont icon-erweima color-white font-22 fl"})))),u.a.createElement(n.a,{placement:"right",title:"\u5728\u7ebf\u54a8\u8be2"},u.a.createElement("div",{className:"consult"},u.a.createElement("a",{target:"_blank",className:"color_white",href:"//shang.qq.com/wpa/qunwpa?idkey=2f2043d88c1bd61d182b98bf1e061c6185e23055bec832c07d8148fe11c5a6cd"},u.a.createElement("i",{className:"iconfont icon-qqzaixianzixun color-white font-22"}))))):"")}}]),t}(l.Component);t.a=m},859:function(e,t,a){},860:function(e,t,a){e.exports=a.p+"static/media/beian.d0289dc0.png"}}]);