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.
12 lines
51 KiB
12 lines
51 KiB
(window.webpackJsonp=window.webpackJsonp||[]).push([[23,13],{"1Sn+":function(g,M,t){},"2tKv":function(g,M,t){g.exports=t.p+"static/Code.584c4f34.png"},"498V":function(g,M,t){g.exports=t.p+"static/logo.22b9a281.svg"},"55Ip":function(g,M,t){"use strict";t.d(M,"a",function(){return Ae});var te=t("Ty5D"),ne=t("dI71"),F=t("q1tI"),H=t.n(F),c=t("YS25"),e=t("17x9"),re=t.n(e),X=t("wx14"),d=t("zLVn"),ae=t("9R94"),I=function(m){Object(ne.a)(x,m);function x(){for(var z,G=arguments.length,V=new Array(G),j=0;j<G;j++)V[j]=arguments[j];return z=m.call.apply(m,[this].concat(V))||this,z.history=Object(c.a)(z.props),z}var O=x.prototype;return O.render=function(){return H.a.createElement(te.c,{history:this.history,children:this.props.children})},x}(H.a.Component),qe=function(m){Object(ne.a)(x,m);function x(){for(var z,G=arguments.length,V=new Array(G),j=0;j<G;j++)V[j]=arguments[j];return z=m.call.apply(m,[this].concat(V))||this,z.history=Object(c.b)(z.props),z}var O=x.prototype;return O.render=function(){return H.a.createElement(te.c,{history:this.history,children:this.props.children})},x}(H.a.Component),be=function(x,O){return typeof x=="function"?x(O):x},ce=function(x,O){return typeof x=="string"?Object(c.c)(x,null,null,O):x},ke=function(x){return x},_e=H.a.forwardRef;typeof _e=="undefined"&&(_e=ke);function ct(m){return!!(m.metaKey||m.altKey||m.ctrlKey||m.shiftKey)}var mt=_e(function(m,x){var O=m.innerRef,z=m.navigate,G=m.onClick,V=Object(d.a)(m,["innerRef","navigate","onClick"]),j=V.target,L=Object(X.a)({},V,{onClick:function(D){try{G&&G(D)}catch(Ue){throw D.preventDefault(),Ue}!D.defaultPrevented&&D.button===0&&(!j||j==="_self")&&!ct(D)&&(D.preventDefault(),z())}});return ke!==_e?L.ref=x||O:L.ref=O,H.a.createElement("a",L)}),Ae=_e(function(m,x){var O=m.component,z=O===void 0?mt:O,G=m.replace,V=m.to,j=m.innerRef,L=Object(d.a)(m,["component","replace","to","innerRef"]);return H.a.createElement(te.e.Consumer,null,function(ve){ve||Object(ae.a)(!1);var D=ve.history,Ue=ce(be(V,ve.location),ve.location),We=Ue?D.createHref(Ue):"",$=Object(X.a)({},L,{href:We,navigate:function(){var we=be(V,ve.location),Oe=G?D.replace:D.push;Oe(we)}});return ke!==_e?$.ref=x||j:$.innerRef=j,H.a.createElement(z,$)})});if(!1)var Et,ye;var Me=function(x){return x},me=H.a.forwardRef;typeof me=="undefined"&&(me=Me);function et(){for(var m=arguments.length,x=new Array(m),O=0;O<m;O++)x[O]=arguments[O];return x.filter(function(z){return z}).join(" ")}var Ee=me(function(m,x){var O=m["aria-current"],z=O===void 0?"page":O,G=m.activeClassName,V=G===void 0?"active":G,j=m.activeStyle,L=m.className,ve=m.exact,D=m.isActive,Ue=m.location,We=m.sensitive,$=m.strict,Ve=m.style,we=m.to,Oe=m.innerRef,vt=Object(d.a)(m,["aria-current","activeClassName","activeStyle","className","exact","isActive","location","sensitive","strict","style","to","innerRef"]);return H.a.createElement(te.e.Consumer,null,function(i){i||Object(ae.a)(!1);var u=Ue||i.location,s=ce(be(we,u),u),a=s.pathname,o=a&&a.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1"),n=o?Object(te.f)(u.pathname,{path:o,exact:ve,sensitive:We,strict:$}):null,h=!!(D?D(n,u):n),C=h?et(L,V):L,U=h?Object(X.a)({},Ve,{},j):Ve,A=Object(X.a)({"aria-current":h&&z||null,className:C,style:U,to:s},vt);return Me!==me?A.ref=x||Oe:A.innerRef=Oe,H.a.createElement(Ae,A)})});if(!1)var tt},B1O0:function(g,M,t){g.exports=t.p+"static/advertisement.ef242f7f.jpg"},BJfS:function(g,M){var t=function(te){return te.replace(/[A-Z]/g,function(ne){return"-"+ne.toLowerCase()}).toLowerCase()};g.exports=t},BLHT:function(g,M,t){g.exports={flex_box_center:"flex_box_center___tGua6",flex_space_between:"flex_space_between___sLRzb",flex_box_vertical_center:"flex_box_vertical_center___3RJH-",flex_box_center_end:"flex_box_center_end___2FaoL",flex_box_column:"flex_box_column____9_T2",footer:"footer___3QRzm",fastLink:"fastLink___MJhMZ",cooperation:"cooperation___208jm",copyright:"copyright___27kZ0"}},CAjq:function(g,M,t){g.exports=t.p+"static/qqCode.a1502573.png"},"Cs+z":function(g,M,t){g.exports=t.p+"static/jqr.b801d45b.png"},H8y1:function(g,M,t){"use strict";t.r(M);var te=t("GNNt"),ne=t("wEI+"),F=t("tJVT"),H=t("PpiC"),c=t("q1tI"),e=t.n(c),re=t("+Gva"),X=t("ruvs"),d=t("9kvl"),ae=t("wd/R"),I=t.n(ae),qe=t("d5bv"),be=t.n(qe),ce=t("BLHT"),ke=t.n(ce),_e=function(p){var R,_,E,y,oe=p.user,b=p.globalSetting;return e.a.createElement("div",{className:ke.a.footer,style:{height:b!=null&&(R=b.setting)!==null&&R!==void 0&&R.main_site?"":"80px",lineHeight:b!=null&&(_=b.setting)!==null&&_!==void 0&&_.main_site?"":"80px"}},(E=b.setting)!==null&&E!==void 0&&E.footer?e.a.createElement("div",{dangerouslySetInnerHTML:{__html:(y=b.setting)===null||y===void 0?void 0:y.footer}}):e.a.createElement("div",null,e.a.createElement("p",{className:"footer_con-p inline lineh-30 font-14"},e.a.createElement("span",{className:"font-18 fl"},"\xA9"),"\xA0",I()().year(),"\xA0\u542F\u667A",e.a.createElement("a",{style:{color:"#888"},target:"_blank",href:"http://beian.miit.gov.cn/",className:"ml15 mr15"},"\u4EACICP\u590718004880\u53F7"),e.a.createElement("a",{style:{color:"#888"},target:"_blank",href:"https://beian.miit.gov.cn/",className:"mr15"},e.a.createElement("img",{className:"vertical4",src:be.a}),"\u4EACICP\u590718004880\u53F7"),e.a.createElement("a",{href:"https://team.trustie.net",style:{color:"#888"},target:"_blank"},"Trustie"),"\xA0\xA0\xA0&\xA0\xA0\xA0IntelliDE inside. ",e.a.createElement("span",{className:"mr15"},"\u7248\u6743\u6240\u6709 Powered_by \u9E4F\u57CE\u5B9E\u9A8C\u5BA4\u4E91\u8111"))))},ct=_e,mt=t("2qtc"),Ae=t("kLXV"),Et=t("NaGD"),ye=t.n(Et),Me=t("m3rI"),me=t("1vsH"),et=t("CAjq"),Ee=t.n(et),tt=function(p){var R,_,E=p.user,y=p.globalSetting,oe=Object(c.useState)(!1),b=Object(F.a)(oe,2),v=b[0],Fe=b[1];Object(c.useEffect)(function(){return window.addEventListener("click",Le),function(){window.removeEventListener("click",Le)}},[]);var w=function(){var P=function(){return/macintosh|mac os x/i.test(navigator.userAgent)}();if(P){Fe(!0);return}var W="//shang.qq.com/wpa/qunwpa?idkey=2f2043d88c1bd61d182b98bf1e061c6185e23055bec832c07d8148fe11c5a6cd";Object(me.Q)(W)},he=function(P,W){if(P.className===W)return P;for(var q=0,ee=P;ee=ee.parentNode;q++){if(ee.className===W)return ee;if(ee==document.documentElement)return!1}},Le=function(P){var W,q,ee;P!=null&&P.target&&((P==null||((W=P.target)===null||W===void 0)?void 0:W.innerText)==="\u6559\u5E08\u4EA4\u6D41\u793E\u533A"||(P==null||((q=P.target)===null||q===void 0||((ee=q.nextElementSibling)===null||ee===void 0))?void 0:ee.innerText)==="\u6559\u5E08\u4EA4\u6D41\u793E\u533A")&&(he(P.target,"module-introduce")&&w())};return e.a.createElement(e.a.Fragment,null,e.a.createElement(Ae.a,{centered:!0,destroyOnClose:!0,visible:v,title:"\u6559\u5E08\u4EA4\u6D41\u793E\u533A",width:"500px",footer:null,onCancel:function(){return Fe(!1)}},e.a.createElement("div",{style:{display:"flex",flexDirection:"column",alignItems:"center"}},e.a.createElement("p",null,"\u626B\u7801\u6216\u641C\u7D22\u52A0\u5165\u6559\u5E08\u4EA4\u6D41QQ\u7FA4\uFF1A612934990 "),e.a.createElement("img",{src:Ee.a,width:200,height:200}))),e.a.createElement("div",{className:ye.a.newFooter,dangerouslySetInnerHTML:{__html:(R=y.setting)===null||R===void 0||((_=R.footer)===null||_===void 0)?void 0:_.replaceAll("/api/attachments/",Me.a.IMG_SERVER+"/api/attachments/")}}))},m=tt,x=function(p){var R=p.user,_=p.globalSetting,E=p.loading,y=p.dispatch;if(_.showFooter&&_.showHeaderFooter){var oe,b;return e.a.createElement("section",{id:"footer"},_!=null&&(oe=_.setting)!==null&&oe!==void 0&&oe.main_site&&!(_!=null&&(b=_.setting)!==null&&b!==void 0&&b.is_local)?e.a.createElement(m,{user:R,globalSetting:_}):e.a.createElement(ct,{user:R,globalSetting:_}))}else return e.a.createElement(e.a.Fragment,null," ")},O=Object(d.a)(function(S){var p=S.user,R=S.loading,_=S.globalSetting;return{user:p,globalSetting:_,loading:R.models.index}})(x),z=t("4eJr"),G=t("3LgI"),V=t("5Dmo"),j=t("3S7+"),L=t("Ty5D"),ve=t("iHkK"),D=t.n(ve),Ue=t("Cs+z"),We=t.n(Ue),$=t("yTi+"),Ve=t.n($),we=t("odpV"),Oe=t.n(we),vt=function(p){var R,_,E,y,oe,b=p.globalSetting,v=p.loading,Fe=p.shixunHomeworks,w=p.user,he=p.dispatch,Le=Object(c.useState)(!1),pe=Object(F.a)(Le,2),P=pe[0],W=pe[1],q=Object(c.useState)(!1),ee=Object(F.a)(q,2),Ge=ee[0],Ye=ee[1],ft=Object(c.useState)(localStorage.hideCustom?JSON.parse(localStorage.hideCustom):[]),nt=Object(F.a)(ft,1),Xe=nt[0],le=Object(c.useState)(((R=localStorage)===null||R===void 0?void 0:R.hidesidebar)!="1"),ht=Object(F.a)(le,2),gt=ht[0],pt=ht[1],Ce=Object(c.useState)(!1),bt=Object(F.a)(Ce,2),ut=bt[0],at=bt[1],rt=Object(c.useRef)(),ue=Object(L.h)();Object(c.useEffect)(function(){return window.addEventListener("scroll",xt),function(){return window.removeEventListener("scroll",xt)}},[]),Object(c.useEffect)(function(){setTimeout(function(){localStorage.setItem("hidesidebar","1"),pt(!1)},5e3)},[]),Object(c.useEffect)(function(){Fe.actionTabs.type===99&&(at(!0),setTimeout(function(){at(!1)},5e3))},[Fe.actionTabs]),console.log("-----",ut),Object(c.useEffect)(function(){var l;if(w!=null&&(l=w.userInfo)!==null&&l!==void 0&&l.login){var f,r;!Xe.includes(w==null||((f=w.userInfo)===null||f===void 0)?void 0:f.login)&&!(b!=null&&(r=b.setting)!==null&&r!==void 0&&r.is_local)&&setTimeout(function(){var T,K=document.createEvent("Events");if(K.initEvent("mouseout",!0,!1),rt){var B;(B=rt.current)===null||B===void 0||B.dispatchEvent(K)}Xe.push(w==null||((T=w.userInfo)===null||T===void 0)?void 0:T.login),localStorage.hideCustom=JSON.stringify(Xe)},5e3)}},[w]),console.log("------location",ue);var xt=function(){var f,r;if(ue.pathname==="/Activities"){W(!1);return}W(((f=document)===null||f===void 0||((r=f.documentElement)===null||r===void 0)?void 0:r.scrollTop)>0)},Q=function(){var f=function(){return/macintosh|mac os x/i.test(navigator.userAgent)}();if(console.log(f),f){Ye(!0);return}var r="//shang.qq.com/wpa/qunwpa?idkey=2f2043d88c1bd61d182b98bf1e061c6185e23055bec832c07d8148fe11c5a6cd";Object(me.Q)(r)};return e.a.createElement("div",{className:D.a.sideBar},e.a.createElement("div",{id:"wechat_QR_code_ids"},!b.onlyShowBackTop&&(b==null?void 0:b.onlyShowBackTopIcons)&>&&e.a.createElement(e.a.Fragment,null,parseInt(localStorage.getItem("Noviceguide"))===0&&w.userInfo.user_id!=2&&w.userInfo.is_teacher&&e.a.createElement("div",{id:"wechat_QR_code",onClick:function(){localStorage.setItem("Noviceguide","1"),(ue==null?void 0:ue.pathname)==="/classrooms"?he({type:"shixunHomeworks/setActionTabs",payload:{key:"\u5E95\u90E8\u5F39\u7A97",type:5,text:e.a.createElement("div",null,"\u975E\u5E38\u68D2\uFF0C\u54B1\u4EEC\u5DF2\u7ECF\u5230\u8FBE\u3010\u6559\u5B66\u8BFE\u5802\u3011\uFF0C\u5E73\u53F0\u4E0A\u5DF2\u7ECF\u6709\u51E0\u5343\u4F4D\u8001\u5E08\u521B\u5EFA\u4E86\u81EA\u5DF1\u7684\u6559\u5B66\u8BFE\u5802\uFF0C\u4F60\u4E5F\u53EF\u4EE5\u8F7B\u677E\u5B8C\u6210\u54DF\uFF01\u73B0\u5728\u8BF7\u60A8\u70B9\u51FB\u9875\u9762\u4E0A \u201C\u65B0\u5EFA\u8BFE\u5802\u201D\u6309\u94AE\u5F00\u59CB\u65B0\u5EFA\u81EA\u5DF1\u7684\u8BFE\u5802~")}}):(ue==null?void 0:ue.pathname)==="/classrooms/new"?he({type:"shixunHomeworks/setActionTabs",payload:{key:"\u5E95\u90E8\u5F39\u7A97",type:6,text:e.a.createElement("div",null,"\u6559\u5B66\u8BFE\u5802\u5FC5\u586B\u7684\u5185\u5BB9\u5305\u62EC\uFF1A\u8BFE\u7A0B\u540D\u79F0\u3001\u8BFE\u5802\u540D\u79F0\u548C\u8BFE\u5802\u6240\u5C5E\u5355\u4F4D\u3002\u5176\u4ED6\u5185\u5BB9\u4F60\u53EF\u4EE5\u6839\u636E\u5B9E\u9645\u9700\u6C42\u8FDB\u884C\u5B89\u6392\u3002\u586B\u5199\u5B8C\u6210\u540E\uFF0C\u70B9\u51FB\u9875\u9762\u5E95\u90E8 \u201C\u63D0\u4EA4\u201D\u6309\u94AE\u5373\u53EF\u3002")}}):he({type:"shixunHomeworks/setActionTabs",payload:{key:"\u5E95\u90E8\u5F39\u7A97",type:4,text:e.a.createElement("div",null,"OK\uFF0C\u63A5\u4E0B\u6765\uFF0C\u8BA9\u6211\u4EEC\u5F00\u59CB\u65B0\u5EFA\u3010\u6559\u5B66\u8BFE\u5802\u3011\uFF0C\u8BF7\u60A8\u627E\u5230\u95EA\u5149\u6846\u5E76\u70B9\u51FB \u201C\u6559\u5B66\u8BFE\u5802\u201D\u3002")}})},ref:rt},e.a.createElement(j.a,{placement:"left",getPopupContainer:function(){return document.getElementById("wechat_QR_code_ids")},title:e.a.createElement("div",null,"\u65B0\u624B\u5F15\u5BFC")},e.a.createElement("img",{id:"textaa",style:{position:"absolute",top:"-140px",left:"-10px",width:"86px",height:"120px"},src:We.a}))),!!(w!=null&&(_=w.userInfo)!==null&&_!==void 0&&_.login)&&e.a.createElement(j.a,{placement:"left",defaultVisible:!(Xe!=null&&Xe.includes(w==null||((E=w.userInfo)===null||E===void 0)?void 0:E.login)),getPopupContainer:function(){return document.getElementById("wechat_QR_code_ids")},title:e.a.createElement("div",null,e.a.createElement("div",{className:"tc"},e.a.createElement("img",{className:"mt10",src:Ve.a,width:"188px",height:"188px"})),e.a.createElement("div",{className:"tc font15 mt10"},"\u514D\u8D39\u6559\u7814\u52A9\u7406"),e.a.createElement("div",{className:"tc font15"},"\u5FAE\u4FE1\u626B\u4E00\u626B\u6DFB\u52A0"),e.a.createElement("div",{className:"pt10 font12"},e.a.createElement("ul",{className:D.a.ul},e.a.createElement("li",null,"\u89E3\u7B54\u8001\u5E08\u7591\u60D1\u3001\u5E2E\u52A9\u8001\u5E08\u66F4\u5FEB\u719F\u6089\u548C\u4F7F\u7528\u5E73\u53F0\u6559\u5B66"),e.a.createElement("li",null,"\u534F\u52A9\u8001\u5E08\u521B\u5EFA\u8BFE\u5802\u3001\u8BFE\u7A0B\u8BBE\u8BA1\u3001\u505A\u597D\u6559\u5B66\u5DE5\u4F5C\u3002"),e.a.createElement("li",null,"\u6839\u636E\u8001\u5E08\u6559\u5B66\u65B9\u5411\uFF0C\u5206\u4EAB\u5E73\u53F0C9\u9662\u6821\u3001985\u9AD8\u6821\u3001211\u9AD8\u6821\u3001\u53CC\u4E00\u6D41\u9AD8\u6821\u8001\u5E08\u7ECF\u5178\u5B9E\u8DF5\u6559\u5B66\u6848\u4F8B\u3002"))))},e.a.createElement("div",{className:D.a.wrap,ref:rt},e.a.createElement("a",{href:"javascript:void(0)"},e.a.createElement("i",{className:"iconfont icon-yijianfankui1 c-light-primary font22"})))),!(b!=null&&(y=b.setting)!==null&&y!==void 0&&y.is_local)&&e.a.createElement(j.a,{placement:"left",getPopupContainer:function(){return document.getElementById("wechat_QR_code_ids")},title:e.a.createElement("div",null,e.a.createElement("img",{src:"".concat(Me.a.IMG_SERVER,"/images/educoder/EWM.jpg"),width:"158px",height:"158px"}),e.a.createElement("div",{className:"tc font15"},"\u5FAE\u4FE1\u626B\u4E00\u626B"),e.a.createElement("div",{className:"tc font15"},"\u5173\u6CE8\u516C\u4F17\u53F7"))},e.a.createElement("div",{className:D.a.wrap},e.a.createElement("i",{className:"iconfont icon-erweima1 c-light-primary font22"}))),!(b!=null&&(oe=b.setting)!==null&&oe!==void 0&&oe.is_local)&&e.a.createElement(j.a,{placement:"left",title:"\u5728\u7EBF\u54A8\u8BE2"},e.a.createElement("div",{className:D.a.wrap},e.a.createElement("a",{onClick:Q,className:"c-white"},e.a.createElement("i",{className:"iconfont icon-QQ1 c-light-primary font22"})))),e.a.createElement("div",{onClick:function(){pt(!1),localStorage.setItem("hidesidebar","1")},style:{textAlign:"center",fontSize:"14px",color:"#0152d9",margin:"10px 0px",cursor:"pointer"}},"\u6536\u8D77")),(ue==null?void 0:ue.pathname.includes("/vspaces/"))&&ut&&e.a.createElement(j.a,{visible:!0,overlayClassName:D.a.tooltipclass,placement:"left",getPopupContainer:function(){return document.getElementById("wechat_QR_code_ids")},title:e.a.createElement("div",null,e.a.createElement("div",{style:{fontSize:"12px",marginBottom:"15px"},className:"tc "},"\u4E2A\u4EBA\u521B\u5EFA\u6216\u52A0\u5165\u7684\u865A\u62DF\u793E\u533A\uFF0C\u53EF\u4EE5\u5728\u201C ",e.a.createElement("span",{style:{fontSize:"14px"}},"\u4E2A\u4EBA\u4E2D\u5FC3-\u66F4\u591A-\u865A\u62DF\u793E\u533A"),"\u201D\u4E2D\u67E5\u770B\u54E6\u3002"),e.a.createElement("img",{src:Oe.a,width:"426px",height:"335px"}))},e.a.createElement("div",{style:{display:"flex",alignItems:"center",justifyContent:"center",height:"50px"}},e.a.createElement("i",{className:"iconfont icon-tishi6 c-light-primary font22"}))),(ue==null?void 0:ue.pathname.includes("/vspaces/"))&&!ut&&e.a.createElement(j.a,{overlayClassName:D.a.tooltipclass,placement:"left",getPopupContainer:function(){return document.getElementById("wechat_QR_code_ids")},title:e.a.createElement("div",null,e.a.createElement("div",{style:{fontSize:"12px",marginBottom:"15px"},className:"tc "},"\u4E2A\u4EBA\u521B\u5EFA\u6216\u52A0\u5165\u7684\u865A\u62DF\u793E\u533A\uFF0C\u53EF\u4EE5\u5728\u201C",e.a.createElement("span",{style:{fontSize:"14px",fontWeight:600}},"\u4E2A\u4EBA\u4E2D\u5FC3-\u66F4\u591A-\u865A\u62DF\u793E\u533A"),"\u201D\u4E2D\u67E5\u770B\u54E6\u3002"),e.a.createElement("img",{src:Oe.a,width:"426px",height:"335px"}))},e.a.createElement("div",{style:{display:"flex",alignItems:"center",justifyContent:"center",height:"50px"}},e.a.createElement("i",{className:"iconfont icon-tishi6 c-light-primary font22"}))),P&&e.a.createElement(j.a,{placement:"left",title:"\u8FD4\u56DE\u9876\u90E8"},e.a.createElement(G.a,{className:"".concat(D.a.wrap," ").concat(D.a.backTop),visibilityHeight:0},e.a.createElement("i",{className:"iconfont icon-huidaodingbu c-light-primary font14"})))),e.a.createElement(Ae.a,{centered:!0,destroyOnClose:!0,visible:Ge,title:"\u6559\u5E08\u4EA4\u6D41\u793E\u533A",width:"500px",footer:null,onCancel:function(){return Ye(!1)}},e.a.createElement("div",{style:{display:"flex",flexDirection:"column",alignItems:"center"}},e.a.createElement("p",null,"\u626B\u7801\u6216\u641C\u7D22\u52A0\u5165\u6559\u5E08\u4EA4\u6D41QQ\u7FA4\uFF1A612934990 "),e.a.createElement("img",{src:Ee.a,width:200,height:200}))))},i=Object(d.a)(function(S){var p=S.loading,R=S.globalSetting,_=S.user,E=S.shixunHomeworks;return{globalSetting:R,user:_,loading:p.models.index,shixunHomeworks:E}})(vt),u=t("+L6B"),s=t("2/Rp"),a=t("9og8"),o=t("WmNS"),n=t.n(o),h=function(p){var R=p.user,_=p.dispatch,E=p.classroomList;return e.a.createElement(Ae.a,{title:"\u6E29\u99A8\u63D0\u793A",zIndex:9999,footer:null,visible:E.actionTabs.key==="\u5BFC\u51FA\u63D0\u9192",onCancel:function(){_({type:"classroomList/setActionTabs",payload:{}})}},e.a.createElement("div",null,e.a.createElement("span",null,"\u60A8\u5728\u5F53\u524D\u680F\u76EE\u4E2D\u6709\u5DF2\u5BFC\u51FA\u7684\u8868\u683C\u672A\u4E0B\u8F7D\uFF0C\u8BF7\u5148\u4E0B\u8F7D\u5DF2\u6709\u8868\u683C\uFF0C\u7136\u540E\u518D\u5BFC\u51FA\u65B0\u7684\u8868\u683C\u3002"),e.a.createElement("br",null),e.a.createElement("div",{style:{textAlign:"end"}},e.a.createElement(s.a,{type:"primary",onClick:Object(a.a)(n.a.mark(function y(){return n.a.wrap(function(b){for(;;)switch(b.prev=b.next){case 0:_({type:"classroomList/setActionTabs",payload:{}});case 1:case"end":return b.stop()}},y)}))},"\u77E5\u9053\u4E86"))))},C=Object(d.a)(function(S){var p=S.user,R=S.classroomList;return{user:p,classroomList:R}})(h),U=t("14J3"),A=t("BMrR"),Y=t("sRBo"),J=t("kaz8"),k=t("2tKv"),je=t.n(k),ie=t("O9QN"),Z=t.n(ie),Qe=function(p){var R,_,E=p.user,y=Object(c.useState)(!1),oe=Object(F.a)(y,2),b=oe[0],v=oe[1],Fe=Object(c.useState)(""),w=Object(F.a)(Fe,2),he=w[0],Le=w[1];Object(c.useEffect)(function(){var P,W,q=localStorage.getItem("extension-modal");if(!(E!=null&&(P=E.userInfo)!==null&&P!==void 0&&P.login)||!q)return;var ee=I()(),Ge="".concat(E==null||((W=E.userInfo)===null||W===void 0)?void 0:W.login,"-extend-date"),Ye=localStorage.getItem(Ge);if(Ye)if(ee<=I()(Ye))v(!1);else{v(!0),localStorage.removeItem(Ge),localStorage.removeItem("extension-modal");var ft=I()(localStorage.getItem("extension-date")).format("YYYY\u5E74MM\u6708DD\u65E5");Le(ft)}else{v(!0),localStorage.removeItem("extension-modal");var nt=I()(localStorage.getItem("extension-date")).format("YYYY\u5E74MM\u6708DD\u65E5");Le(nt)}return function(){v(!1)}},[E==null||((R=E.userInfo)===null||R===void 0)?void 0:R.login]);var pe=function(W){var q,ee="".concat(E==null||((q=E.userInfo)===null||q===void 0)?void 0:q.login,"-extend-date"),Ge=I()().endOf("day").format("YYYY-MM-DD HH:mm:ss");W.target.checked?localStorage.setItem(ee,Ge):localStorage.removeItem(ee)};return e.a.createElement(Ae.a,{title:"\u6E29\u99A8\u63D0\u793A",visible:b,zIndex:9999,centered:!0,width:594,onCancel:function(){v(!1)},footer:e.a.createElement(A.a,{align:"middle",justify:"space-between"},e.a.createElement(J.a,{onChange:pe},"\u4ECA\u65E5\u4E0D\u518D\u63D0\u9192"),e.a.createElement(s.a,{onClick:function(){v(!1)},style:{borderRadius:4},type:"primary"}," \u5173\u95ED"))},e.a.createElement("div",{className:"font14",style:{paddingLeft:16}},e.a.createElement("div",null,"\u8001\u5E08\u60A8\u597D\uFF01"),e.a.createElement("div",{style:{textIndent:28}},"\u611F\u8C22\u60A8\u5BF9\u5E73\u53F0\u7684\u8BA4\u53EF\u4E0E\u652F\u6301\uFF01\u6839\u636E\u5E73\u53F0",e.a.createElement("a",{href:"/help/agreement",target:"_blank"},"\u670D\u52A1\u534F\u8BAE"),"\uFF0C\u8D35\u5355\u4F4D\u514D\u8D39\u8BD5\u7528\u671F\u5DF2\u7ED3\u675F\uFF0C\u5C06\u9650\u5236\u5BF9\u76F8\u5173\u529F\u80FD\u548C\u8D44\u6E90\u7684\u4F7F\u7528\u3002"),e.a.createElement("div",{style:{textIndent:28}},"\u8BF7\u60A8\u6DFB\u52A0\u4EE5\u4E0B\u5FAE\u4FE1\u5BA2\u670D\uFF0C\u534F\u52A9\u60A8\u5B8C\u6210\u540E\u7EED\u4F7F\u7528\u53CA\u7533\u8BF7\u6D41\u7A0B\uFF0C\u611F\u8C22\u652F\u6301\u4E0E\u7406\u89E3\u3002"),e.a.createElement("img",{style:{margin:"8px auto",display:"block"},width:160,src:((_=E.userInfo)===null||_===void 0?void 0:_.school_province)==="\u5B89\u5FBD"?Z.a:je.a,alt:"\u4E8C\u7EF4\u7801"}),e.a.createElement("div",{style:{textAlign:"right"}},"\u8FD0\u8425\u4E2D\u5FC3"),e.a.createElement("div",{style:{textAlign:"right"}},he)))},de=Object(d.a)(function(S){var p=S.user;return{user:p}})(Qe),Ke=t("fV52"),Ne=t("3I+P"),De=t("xnZT"),se=t.n(De),Te=t("9Bee"),Be=t("ErOA"),lt=t("LvDl"),st=t.n(lt),Ie=function(p){var R,_=p.dispatch,E=p.user,y=p.globalSetting,oe=Object(c.useState)({}),b=Object(F.a)(oe,2),v=b[0],Fe=b[1],w=Object(c.useState)([]),he=Object(F.a)(w,2),Le=he[0],pe=he[1],P=Object(c.useState)(0),W=Object(F.a)(P,2),q=W[0],ee=W[1],Ge=Object(c.useState)(!1),Ye=Object(F.a)(Ge,2),ft=Ye[0],nt=Ye[1],Xe=Object(c.useRef)(null),le=Object(L.h)(),ht=function(l,f){var r=null;return l===0&&(r=I()().add(100,"month").unix()),l===1&&(r=I()().add(f,"hour").unix()),l===2&&(r=I()().add(f,"days").unix()),l===3&&(r=I()().add(f*7,"days").unix()),l===4&&(r=I()().add(f,"month").unix()),l===5&&(r=I()().add(f*3,"month").unix()),r},gt=function(l){var f,r,T,K="".concat(E==null||((f=E.userInfo)===null||f===void 0)?void 0:f.login,"-deadline-operate"),B=localStorage.getItem(K)?JSON.parse(localStorage.getItem(K)):[];B=(r=B)===null||r===void 0?void 0:r.filter(function(Re){return Re.id!==(l==null?void 0:l.id)});var Je=ht(l==null?void 0:l.show_type,l==null?void 0:l.show_count),ge={id:l==null?void 0:l.id,deadline:Je,type:l==null?void 0:l.show_type};(T=B)===null||T===void 0||T.push(ge),localStorage.setItem(K,JSON.stringify(B))},pt=function(){at(v==null?void 0:v.id,"close");var l=Le[q+1];l?(gt(l),Fe(l),ee(q+1),at(l==null?void 0:l.id,"popup")):nt(!1)},Ce=[{name:"\u9996\u9875",key:0,path:"/"},{name:"\u5B9E\u8DF5\u8BFE\u7A0B",key:1,path:"/paths"},{name:"\u5B9E\u8DF5\u9879\u76EE",key:2,path:"/shixuns"},{name:"\u6559\u5B66\u8BFE\u5802",key:3,path:"/classrooms"},{name:"\u5728\u7EBF\u7ADE\u8D5B",key:4,path:"/competitions"},{name:"\u6559\u5B66\u6848\u4F8B",key:5,path:"/moop_cases"},{name:"\u4EA4\u6D41\u95EE\u7B54",key:6,path:"/forums/categories"},{name:"\u4E2A\u4EBA\u4E2D\u5FC3",key:7,path:"/users"}];Object(c.useEffect)(function(){var Q,l,f;console.log(y==null?void 0:y.operateModelPath,E==null||((Q=E.userInfo)===null||Q===void 0)?void 0:Q.login,11444),!!(y!=null&&y.operateModelPath)&&!!(y!=null&&(l=y.setting)!==null&&l!==void 0&&l.main_site)&&E!==null&&E!==void 0&&(f=E.userInfo)!==null&&f!==void 0&&f.login&&rt()},[y==null?void 0:y.operateModelPath,E==null||((R=E.userInfo)===null||R===void 0)?void 0:R.login]),Object(c.useEffect)(function(){return function(){_({type:"globalSetting/setOperateModelPath",payload:""})}},[]),Object(c.useEffect)(function(){var Q,l,f,r;if(le!=null&&(Q=le.pathname)!==null&&Q!==void 0&&Q.includes("/users")&&(le==null||((l=le.pathname)===null||l===void 0||((f=l.split("/"))===null||f===void 0))?void 0:f.length)===4){_({type:"globalSetting/setOperateModelPath",payload:"/users"});return}if(le!=null&&(r=le.pathname)!==null&&r!==void 0&&r.includes("/forums/categories")){_({type:"globalSetting/setOperateModelPath",payload:"/forums/categories"});return}for(var T=0;T<Ce.length;T++){var K;if((Ce==null||((K=Ce[T])===null||K===void 0)?void 0:K.path)===(le==null?void 0:le.pathname)){var B;_({type:"globalSetting/setOperateModelPath",payload:Ce==null||((B=Ce[T])===null||B===void 0)?void 0:B.path});return}}},[le==null?void 0:le.pathname]),Object(c.useEffect)(function(){return window.addEventListener("click",ut),function(){window.removeEventListener("click",ut)}},[v]);var bt=function(l){if(l!=null&&l.getAttribute("data-operate-type"))return l;for(var f=0,r=l;r=r.parentNode;f++){var T;if((T=r)!==null&&T!==void 0&&T.getAttribute("data-operate-type"))return r;if(r==document.documentElement)return!1}},ut=function(){var Q=Object(a.a)(n.a.mark(function l(f){var r,T,K,B,Je;return n.a.wrap(function(Re){for(;;)switch(Re.prev=Re.next){case 0:if(r=bt(f.target),!r){Re.next=11;break}if(T=r==null?void 0:r.getAttribute("data-operate-type"),!(T==="click")){Re.next=11;break}return f.preventDefault(),K=r==null?void 0:r.getAttribute("href"),B=r==null?void 0:r.getAttribute("target"),Re.next=9,at(v==null?void 0:v.id,"enter");case 9:r!=null&&r.getAttribute("data-operate-data")&&(K=K+"?login="+(E==null||((Je=E.userInfo)===null||Je===void 0)?void 0:Je.login)),B==="_blank"?Object(me.Q)(K):(nt(!1),window.location.href=K);case 11:case"end":return Re.stop()}},l)}));return function(f){return Q.apply(this,arguments)}}(),at=function(){var Q=Object(a.a)(n.a.mark(function l(f,r){var T;return n.a.wrap(function(B){for(;;)switch(B.prev=B.next){case 0:return B.next=2,Object(Be.a)("/api/popup_windows/popup_windows_counts.json",{method:"get",params:{id:f,count_type:r}});case 2:return T=B.sent,B.abrupt("return",T);case 4:case"end":return B.stop()}},l)}));return function(f,r){return Q.apply(this,arguments)}}(),rt=function(){var Q=Object(a.a)(n.a.mark(function l(){var f,r,T,K,B,Je,ge,Re,$e,Ct,Rt,At,yt,Mt;return n.a.wrap(function(_t){for(;;)switch(_t.prev=_t.next){case 0:return _t.next=2,Object(Be.a)("/api/popup_windows/get_popup_windows.json",{method:"get"});case 2:r=_t.sent,(r==null?void 0:r.status)===0&&(r==null||((f=r.data)===null||f===void 0)?void 0:f.length)!==0&&(Je=Ce==null?void 0:Ce.findIndex(function(dt){return dt.path===(y==null?void 0:y.operateModelPath)}),ge=st.a.cloneDeep(r==null?void 0:r.data),ge=(T=ge)===null||T===void 0?void 0:T.filter(function(dt){var Ze;return(Ze=dt.show_page)===null||Ze===void 0?void 0:Ze.includes(Je)}),Re="".concat(E==null||((K=E.userInfo)===null||K===void 0)?void 0:K.login,"-deadline-operate"),$e=localStorage.getItem(Re)?JSON.parse(localStorage.getItem(Re)):[],console.log($e,"record"),($e==null?void 0:$e.length)!==0&&(ge=(Ct=ge)===null||Ct===void 0?void 0:Ct.filter(function(dt){var Ze=!0,it=$e==null?void 0:$e.find(function(jt){return jt.id===dt.id});if(it){var Ot=I()().unix();Ot<=(it==null?void 0:it.deadline)&&(Ze=!1),(it==null?void 0:it.type)===0&&(dt.show_type===0?Ze=!1:Ze=!0)}return Ze})),(B=ge)!==null&&B!==void 0&&B.length&&(Fe((Rt=ge)===null||Rt===void 0?void 0:Rt[q]),gt((At=ge)===null||At===void 0?void 0:At[q]),at((yt=ge)===null||yt===void 0||((Mt=yt[q])===null||Mt===void 0)?void 0:Mt.id,"popup"),nt(!0),pe(ge)));case 4:case"end":return _t.stop()}},l)}));return function(){return Q.apply(this,arguments)}}(),ue=function(){var l;return e.a.createElement("div",{className:se.a.modalityModal},e.a.createElement("div",{className:se.a.modal,style:{width:v==null?void 0:v.width,height:v==null?void 0:v.height}},e.a.createElement("div",{className:se.a.close,onClick:pt},e.a.createElement("i",{className:"iconfont icon-guanbi1"})),e.a.createElement(Ne.a,{ref:Xe,dots:!0,autoplay:!0,pauseOnDotsHover:!0},v==null||((l=v.content)===null||l===void 0)?void 0:l.map(function(f,r){return e.a.createElement("aside",{key:r,className:se.a.itemWarp},e.a.createElement(Te.a,{style:{height:v==null?void 0:v.height},value:f}))}))))},xt=function(){var l;return e.a.createElement("div",{className:se.a.selfdomModal},e.a.createElement("div",{className:se.a.modal,style:{width:v==null?void 0:v.width,height:v==null?void 0:v.height}},e.a.createElement("div",{className:se.a.close,onClick:pt},e.a.createElement("i",{className:"iconfont icon-htmal5icon19"})),e.a.createElement(Ne.a,{ref:Xe,dots:!0,autoplay:!0,pauseOnDotsHover:!0},v==null||((l=v.content)===null||l===void 0)?void 0:l.map(function(f,r){return e.a.createElement("aside",{key:r,className:se.a.itemWarp},e.a.createElement(Te.a,{style:{height:v==null?void 0:v.height},value:f}))}))))};return e.a.createElement(c.Fragment,null,ft&&((v==null?void 0:v.windows_style)===0?ue():xt()))},ot=Object(d.a)(function(S){var p=S.user,R=S.globalSetting;return{user:p,globalSetting:R}})(Ie),ze=t("H4Hi"),He=t.n(ze),fe=t("B1O0"),xe=t.n(fe),N=t("syqs"),Pe=t.n(N),Se=function(p){var R,_,E=p.loading,y=p.children,oe=p.globalSetting,b=p.user,v=Object(H.a)(p,["loading","children","globalSetting","user"]),Fe=Object(L.h)(),w=Object(c.useState)(!0),he=Object(F.a)(w,2),Le=he[0],pe=he[1];return Object(c.useEffect)(function(){var P=I()().add(0,"days").unix(),W=localStorage.getItem("mainclose");if(!W){pe(!0);return}P>parseInt(W)&&pe(!0)},[]),e.a.createElement(ne.b,{locale:re.default},((R=b.userInfo)===null||R===void 0?void 0:R.change_password)&&Le&&e.a.createElement("div",{style:{backgroundImage:"url(".concat(xe.a,")"),width:"100%",height:60,margin:"0px auto",display:"flex"}},e.a.createElement("div",{style:{width:1200,margin:"0px auto",height:60,display:"flex",alignItems:"center",justifyContent:"space-between",position:"relative"}},e.a.createElement("div",{style:{fontSize:24,fontWeight:"bold",color:"#fff"}},"\u68C0\u6D4B\u5230\u60A8\u5DF2\u7ECF\u8D85\u8FC7",(_=b.userInfo)===null||_===void 0?void 0:_.change_password_duration,"\u5929\u6CA1\u4FEE\u6539\u8FC7\u5BC6\u7801\uFF0C\u4E3A\u4E86\u4F60\u7684\u8D26\u53F7\u5B89\u5168\uFF0C\u8BF7\u53CA\u65F6\u66F4\u6362\u5BC6\u7801"),e.a.createElement("div",{onClick:function(){window.open("/account/secure")},style:{width:"154px",height:"40px",position:"absolute",right:-15,top:10,borderRadius:15,display:"flex",alignItems:"center",justifyContent:"center",color:"#FFFFFF",cursor:"pointer"}})),e.a.createElement("img",{src:Pe.a,onClick:function(){localStorage.setItem("mainclose",I()().add(1,"days").unix()+""),pe(!1)},style:{width:16,height:16,marginRight:6,marginTop:6,cursor:"pointer"}})),document.domain!=="kepukehuan.educoder.net"&&e.a.createElement(X.a,v),e.a.createElement("section",{className:He.a.layoutMainClass},y),e.a.createElement(i,null),!Object(me.p)()&&document.domain!=="kepukehuan.educoder.net"&&!oe.isCourseOpeni&&e.a.createElement(O,null),e.a.createElement(C,null),e.a.createElement(de,null),e.a.createElement(ot,null))},Ut=M.default=Object(d.a)(function(S){var p=S.loading,R=S.globalSetting,_=S.user;return{loading:p,user:_,globalSetting:R}})(Se)},NaGD:function(g,M,t){g.exports={flex_box_center:"flex_box_center___VTqUm",flex_space_between:"flex_space_between___3f-Ja",flex_box_vertical_center:"flex_box_vertical_center___u4Jjr",flex_box_center_end:"flex_box_center_end___1QKJE",flex_box_column:"flex_box_column___1OBJc",newFooter:"newFooter___UNzWw"}},O9QN:function(g,M,t){g.exports=t.p+"static/AnhuiContact.80900438.jpg"},Y1PL:function(g,M,t){"use strict";t.r(M),t.d(M,"ResizableTextArea",function(){return we});var te=t("wx14"),ne=t("1OyB"),F=t("vuIU"),H=t("Ji7U"),c=t("LK+K"),e=t("q1tI"),re=t("VTBJ"),X=t("rePB"),d=t("Zm9Q"),ae=t("Kwbf"),I=t("c+Xe"),qe=t("m+aA"),be=t("bdgK"),ce=new Map;function ke(i){i.forEach(function(u){var s,a=u.target;(s=ce.get(a))===null||s===void 0||s.forEach(function(o){return o(a)})})}var _e=new be.default(ke),ct=null,mt=null;function Ae(i,u){ce.has(i)||(ce.set(i,new Set),_e.observe(i)),ce.get(i).add(u)}function Et(i,u){ce.has(i)&&(ce.get(i).delete(u),ce.get(i).size||(_e.unobserve(i),ce.delete(i)))}var ye=function(i){Object(H.a)(s,i);var u=Object(c.a)(s);function s(){return Object(ne.a)(this,s),u.apply(this,arguments)}return Object(F.a)(s,[{key:"render",value:function(){return this.props.children}}]),s}(e.Component),Me=e.createContext(null);function me(i){var u=i.children,s=i.onBatchResize,a=e.useRef(0),o=e.useRef([]),n=e.useContext(Me),h=e.useCallback(function(C,U,A){a.current+=1;var Y=a.current;o.current.push({size:C,element:U,data:A}),Promise.resolve().then(function(){Y===a.current&&(s==null||s(o.current),o.current=[])}),n==null||n(C,U,A)},[s,n]);return e.createElement(Me.Provider,{value:h},u)}function et(i){var u=i.children,s=i.disabled,a=e.useRef(null),o=e.useRef(null),n=e.useContext(Me),h=e.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),C=e.isValidElement(u)&&Object(I.c)(u),U=C?u.ref:null,A=e.useMemo(function(){return Object(I.a)(U,a)},[U,a]),Y=e.useRef(i);Y.current=i;var J=e.useCallback(function(k){var je=Y.current,ie=je.onResize,Z=je.data,Qe=k.getBoundingClientRect(),de=Qe.width,Ke=Qe.height,Ne=k.offsetWidth,De=k.offsetHeight,se=Math.floor(de),Te=Math.floor(Ke);if(h.current.width!==se||h.current.height!==Te||h.current.offsetWidth!==Ne||h.current.offsetHeight!==De){var Be={width:se,height:Te,offsetWidth:Ne,offsetHeight:De};h.current=Be;var lt=Ne===Math.round(de)?de:Ne,st=De===Math.round(Ke)?Ke:De,Ie=Object(re.a)(Object(re.a)({},Be),{},{offsetWidth:lt,offsetHeight:st});n==null||n(Ie,k,Z),ie&&Promise.resolve().then(function(){ie(Ie,k)})}},[]);return e.useEffect(function(){var k=Object(qe.a)(a.current)||Object(qe.a)(o.current);return k&&!s&&Ae(k,J),function(){return Et(k,J)}},[a.current,s]),e.createElement(ye,{ref:o},C?e.cloneElement(u,{ref:A}):u)}var Ee="rc-observer-key";function tt(i){var u=i.children,s=Object(d.a)(u);return s.map(function(a,o){var n=(a==null?void 0:a.key)||"".concat(Ee,"-").concat(o);return e.createElement(et,Object(te.a)({},i,{key:n}),a)})}tt.Collection=me;var m=tt,x=t("bT9E"),O=t("TSYQ"),z=t.n(O),G=`
|
|
min-height:0 !important;
|
|
max-height:none !important;
|
|
height:0 !important;
|
|
visibility:hidden !important;
|
|
overflow:hidden !important;
|
|
position:absolute !important;
|
|
z-index:-1000 !important;
|
|
top:0 !important;
|
|
right:0 !important
|
|
`,V=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","font-variant","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing","word-break"],j={},L;function ve(i){var u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,s=i.getAttribute("id")||i.getAttribute("data-reactid")||i.getAttribute("name");if(u&&j[s])return j[s];var a=window.getComputedStyle(i),o=a.getPropertyValue("box-sizing")||a.getPropertyValue("-moz-box-sizing")||a.getPropertyValue("-webkit-box-sizing"),n=parseFloat(a.getPropertyValue("padding-bottom"))+parseFloat(a.getPropertyValue("padding-top")),h=parseFloat(a.getPropertyValue("border-bottom-width"))+parseFloat(a.getPropertyValue("border-top-width")),C=V.map(function(A){return"".concat(A,":").concat(a.getPropertyValue(A))}).join(";"),U={sizingStyle:C,paddingSize:n,borderSize:h,boxSizing:o};return u&&s&&(j[s]=U),U}function D(i){var u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;L||(L=document.createElement("textarea"),L.setAttribute("tab-index","-1"),L.setAttribute("aria-hidden","true"),document.body.appendChild(L)),i.getAttribute("wrap")?L.setAttribute("wrap",i.getAttribute("wrap")):L.removeAttribute("wrap");var o=ve(i,u),n=o.paddingSize,h=o.borderSize,C=o.boxSizing,U=o.sizingStyle;L.setAttribute("style","".concat(U,";").concat(G)),L.value=i.value||i.placeholder||"";var A=Number.MIN_SAFE_INTEGER,Y=Number.MAX_SAFE_INTEGER,J=L.scrollHeight,k;if(C==="border-box"?J+=h:C==="content-box"&&(J-=n),s!==null||a!==null){L.value=" ";var je=L.scrollHeight-n;s!==null&&(A=je*s,C==="border-box"&&(A=A+n+h),J=Math.max(A,J)),a!==null&&(Y=je*a,C==="border-box"&&(Y=Y+n+h),k=J>Y?"":"hidden",J=Math.min(Y,J))}return{height:J,minHeight:A,maxHeight:Y,overflowY:k,resize:"none"}}var Ue=t("Gytx"),We=t.n(Ue),$;(function(i){i[i.NONE=0]="NONE",i[i.RESIZING=1]="RESIZING",i[i.RESIZED=2]="RESIZED"})($||($={}));var Ve=function(i){Object(H.a)(s,i);var u=Object(c.a)(s);function s(a){var o;return Object(ne.a)(this,s),o=u.call(this,a),o.nextFrameActionId=void 0,o.resizeFrameId=void 0,o.textArea=void 0,o.saveTextArea=function(n){o.textArea=n},o.handleResize=function(n){var h=o.state.resizeStatus,C=o.props,U=C.autoSize,A=C.onResize;if(h!==$.NONE)return;typeof A=="function"&&A(n),U&&o.resizeOnNextFrame()},o.resizeOnNextFrame=function(){cancelAnimationFrame(o.nextFrameActionId),o.nextFrameActionId=requestAnimationFrame(o.resizeTextarea)},o.resizeTextarea=function(){var n=o.props.autoSize;if(!n||!o.textArea)return;var h=n.minRows,C=n.maxRows,U=D(o.textArea,!1,h,C);o.setState({textareaStyles:U,resizeStatus:$.RESIZING},function(){cancelAnimationFrame(o.resizeFrameId),o.resizeFrameId=requestAnimationFrame(function(){o.setState({resizeStatus:$.RESIZED},function(){o.resizeFrameId=requestAnimationFrame(function(){o.setState({resizeStatus:$.NONE}),o.fixFirefoxAutoScroll()})})})})},o.renderTextArea=function(){var n=o.props,h=n.prefixCls,C=h===void 0?"rc-textarea":h,U=n.autoSize,A=n.onResize,Y=n.className,J=n.disabled,k=o.state,je=k.textareaStyles,ie=k.resizeStatus,Z=Object(x.a)(o.props,["prefixCls","onPressEnter","autoSize","defaultValue","onResize"]),Qe=z()(C,Y,Object(X.a)({},"".concat(C,"-disabled"),J));"value"in Z&&(Z.value=Z.value||"");var de=Object(re.a)(Object(re.a)(Object(re.a)({},o.props.style),je),ie===$.RESIZING?{overflowX:"hidden",overflowY:"hidden"}:null);return e.createElement(m,{onResize:o.handleResize,disabled:!(U||A)},e.createElement("textarea",Object(te.a)({},Z,{className:Qe,style:de,ref:o.saveTextArea})))},o.state={textareaStyles:{},resizeStatus:$.NONE},o}return Object(F.a)(s,[{key:"componentDidUpdate",value:function(o){(o.value!==this.props.value||!We()(o.autoSize,this.props.autoSize))&&this.resizeTextarea()}},{key:"componentWillUnmount",value:function(){cancelAnimationFrame(this.nextFrameActionId),cancelAnimationFrame(this.resizeFrameId)}},{key:"fixFirefoxAutoScroll",value:function(){try{if(document.activeElement===this.textArea){var o=this.textArea.selectionStart,n=this.textArea.selectionEnd;this.textArea.setSelectionRange(o,n)}}catch(h){}}},{key:"render",value:function(){return this.renderTextArea()}}]),s}(e.Component),we=Ve,Oe=function(i){Object(H.a)(s,i);var u=Object(c.a)(s);function s(a){var o;Object(ne.a)(this,s),o=u.call(this,a),o.resizableTextArea=void 0,o.focus=function(){o.resizableTextArea.textArea.focus()},o.saveTextArea=function(h){o.resizableTextArea=h},o.handleChange=function(h){var C=o.props.onChange;o.setValue(h.target.value,function(){o.resizableTextArea.resizeTextarea()}),C&&C(h)},o.handleKeyDown=function(h){var C=o.props,U=C.onPressEnter,A=C.onKeyDown;h.keyCode===13&&U&&U(h),A&&A(h)};var n=typeof a.value=="undefined"||a.value===null?a.defaultValue:a.value;return o.state={value:n},o}return Object(F.a)(s,[{key:"setValue",value:function(o,n){"value"in this.props||this.setState({value:o},n)}},{key:"blur",value:function(){this.resizableTextArea.textArea.blur()}},{key:"render",value:function(){return e.createElement(we,Object(te.a)({},this.props,{value:this.state.value,onKeyDown:this.handleKeyDown,onChange:this.handleChange,ref:this.saveTextArea}))}}],[{key:"getDerivedStateFromProps",value:function(o){return"value"in o?{value:o.value}:null}}]),s}(e.Component),vt=M.default=Oe},bT9E:function(g,M,t){"use strict";t.d(M,"a",function(){return ne});var te=t("VTBJ");function ne(F,H){var c=Object(te.a)({},F);return Array.isArray(H)&&H.forEach(function(e){delete c[e]}),c}},d5bv:function(g,M,t){g.exports=t.p+"static/beian.0c577066.png"},iHkK:function(g,M,t){g.exports={sideBar:"sideBar___DNWGT",wrap:"wrap___2rWVP",backTop:"backTop___3cAkP",ul:"ul___Bsaot",tooltipclass:"tooltipclass___1I8Rx"}},odpV:function(g,M,t){g.exports=t.p+"static/sidbra.7ad1c820.png"},pIsd:function(g,M,t){var te=t("BJfS"),ne=function(c){var e=/[height|width]$/;return e.test(c)},F=function(c){var e="",re=Object.keys(c);return re.forEach(function(X,d){var ae=c[X];X=te(X),ne(X)&&typeof ae=="number"&&(ae=ae+"px"),ae===!0?e+=X:ae===!1?e+="not "+X:e+="("+X+": "+ae+")",d<re.length-1&&(e+=" and ")}),e},H=function(c){var e="";return typeof c=="string"?c:c instanceof Array?(c.forEach(function(re,X){e+=F(re),X<c.length-1&&(e+=", ")}),e):F(c)};g.exports=H},ruvs:function(g,M,t){"use strict";t.d(M,"b",function(){return $});var te=t("tJVT"),ne=t("PpiC"),F=t("k1fw"),H=t("5NDa"),c=t("5rEg"),e=t("B9cy"),re=t("Ol7k"),X=t("q1tI"),d=t.n(X),ae=t("55Ip"),I=t("9kvl"),qe=t("xrsn"),be=t.n(qe),ce=t("1Sn+"),ke=t("qVdP"),_e=t("jsC+"),ct=t("miYZ"),mt=t("tsqr"),Ae=t("9og8"),Et=t("lUTK"),ye=t("BvKs"),Me=t("WmNS"),me=t.n(Me),et=t("vToQ"),Ee=t.n(et),tt=t("xKgJ"),m=t("jb+D"),x=t("m3rI"),O=t("1vsH"),z=function(u){var s,a=RegExp("(^| )"+u+"=([^;]+)(;|$)");return(s=document.cookie.match(a))?decodeURIComponent(s[2]):null},G=function(u){var s=new Date;s.setTime(s.getTime()-1);var a=z(u);a!=null&&(document.cookie=u+"="+a+";expires="+s.toGMTString())},V;(function(i){i.Classrooms="classrooms",i.Shixuns="shixuns",i.Paths="paths",i.Projects="projects",i.Videos="videos",i.Topics="topics"})(V||(V={}));var j=function(u){var s,a,o,n,h,C,U,A,Y,J,k,je=u.homePage,ie=u.user,Z=u.globalSetting,Qe=u.loading,de=u.dispatch,Ke=u.shixunHomeworks,Ne=u.location,De=u.payload,se=De===void 0?{}:De,Te=Object(ne.a)(u,["homePage","user","globalSetting","loading","dispatch","shixunHomeworks","location","payload"]),Be=(s=(((a=Z.setting)===null||a===void 0?void 0:a.navbar)||[]).find(function(fe){return fe.link==="/".concat(V.Classrooms)}))===null||s===void 0?void 0:s.hidden,lt=(o=(((n=Z.setting)===null||n===void 0?void 0:n.navbar)||[]).find(function(fe){return fe.link==="/".concat(V.Shixuns)}))===null||o===void 0?void 0:o.hidden,st=(h=(((C=Z.setting)===null||C===void 0?void 0:C.navbar)||[]).find(function(fe){return fe.link==="/".concat(V.Paths)}))===null||h===void 0?void 0:h.hidden,Ie=((U=ie.userInfo)===null||U===void 0?void 0:U.admin)||((A=ie.userInfo)===null||A===void 0?void 0:A.business)||((Y=ie.userInfo)===null||Y===void 0?void 0:Y.is_shixun_marker)||((J=ie.userInfo)===null||J===void 0?void 0:J.is_teacher)||((k=ie.userInfo)===null||k===void 0?void 0:k.user_identity)!=="\u5B66\u751F",ot=function(){return Object(O.p)()?d.a.createElement(ye.a,{className:"".concat(Ee.a.rightMenu," ").concat(Ee.a.menuWrap)},d.a.createElement(ye.a.Item,null,d.a.createElement(ae.a,{to:"/account/profile"},"\u8D26\u53F7\u7BA1\u7406"))):d.a.createElement(ye.a,{className:"".concat(Ee.a.rightMenu," ").concat(Ee.a.menuWrap)},d.a.createElement(ye.a.Item,null,d.a.createElement("a",{target:"_blank",href:"https://openi.pcl.ac.cn/cloudbrains"},"\u4EFB\u52A1\u5217\u8868")),d.a.createElement(ye.a.Item,null,d.a.createElement(ae.a,{onClick:function(){localStorage.getItem("Noviceguide")==="0"||de({type:"shixunHomeworks/setActionTabs",payload:{key:"\u5E95\u90E8\u5F39\u7A97",type:2,href:"/classrooms",text:d.a.createElement("div",null,"OK\uFF0C\u63A5\u4E0B\u6765\uFF0C\u8BA9\u6211\u4EEC\u5F00\u59CB\u65B0\u5EFA\u3010\u6559\u5B66\u8BFE\u5802\u3011\uFF0C\u8BF7\u60A8\u627E\u5230\u95EA\u5149\u6846\u5E76\u70B9\u51FB \u201C\u6559\u5B66\u8BFE\u5802\u201D\u3002")}})},to:"/account/profile"},"\u8D26\u53F7\u7BA1\u7406")),d.a.createElement(ye.a.Item,{className:Ee.a.exit},d.a.createElement("a",{onClick:Object(Ae.a)(me.a.mark(function xe(){var N;return me.a.wrap(function(Se){for(;;)switch(Se.prev=Se.next){case 0:return Se.next=2,Object(m.c)({});case 2:N=Se.sent,(N==null?void 0:N.status)===1&&(de({type:"user/getUserInfo",payload:Object(F.a)({},se)}),de({type:"user/getNavigationInfo",payload:Object(F.a)({},se)}),G("autologin_trustie"),G("_educoder_session"),localStorage.removeItem("isfirst"),localStorage.removeItem("SystemUpdateadvtime"),localStorage.removeItem("item"),localStorage.removeItem("iscreate"),mt.b.success(N==null?void 0:N.message),I.d.replace("/"));case 4:case"end":return Se.stop()}},xe)}))},"\u9000\u51FA")))};if(Object(tt.p)()){var ze,He;return d.a.createElement(_e.a,{overlay:ot,placement:"bottomRight"},d.a.createElement("section",null,d.a.createElement("aside",null,d.a.createElement("div",{className:Ke.actionTabs.type===1?Ee.a.classromediv:""},d.a.createElement("img",{className:"".concat(Ee.a.userPic," current ml15"),src:"".concat(x.a===null||x.a===void 0?void 0:x.a.IMG_SERVER,"/images/").concat((ze=ie.userInfo)===null||ze===void 0?void 0:ze.image_url),alt:"",onClick:function(){var xe;return I.d.push(Object(O.p)()?"/account/profile":"/users/".concat((xe=ie.userInfo)===null||xe===void 0?void 0:xe.login,"/classrooms"))}}),Object(O.p)()&&d.a.createElement("span",{className:"ml10 font16"},(He=ie.userInfo)===null||He===void 0?void 0:He.username)))))}else return d.a.createElement("div",{className:"font15 ".concat(Z.isIlearning?Ee.a.login:""," ml30")},d.a.createElement("span",{className:"ml10 mr5 current c-white",onClick:function(){Z.isCourseOpeni?window.open("https://openi.pcl.ac.cn/login/oauth/authorize?client_id=9c23803d-b190-4b33-a59a-01a65f439bce&redirect_uri=https://course.openi.org.cn/auth/openi/login&response_type=code&state=STATE","_self"):de({type:"user/showPopLogin",payload:{showPopLogin:!0,showClosable:!0}})}},"\u767B\u5F55"),!Z.isCourseOpeni&&d.a.createElement(d.a.Fragment,null,d.a.createElement("span",{style:{color:"rgba(255, 255, 255, 0.7)"},className:"ml5 mr5"},"|"),d.a.createElement(ae.a,{to:"/user/register",className:"ml5 current c-white"},"\u6CE8\u518C")))},L=Object(I.a)(function(i){var u=i.homePage,s=i.loading,a=i.user,o=i.globalSetting,n=i.shixunHomeworks;return{homePage:u,user:a,globalSetting:o,shixunHomeworks:n,loading:s.models.index}})(j),ve=t("498V"),D=t.n(ve),Ue=re.a.Header,We=c.a.Search;function $(){var i,u,s=window.location.pathname,a=s.split("/"),o={};return a[1]=="classrooms"&&a.length>3&&!((i=a[4])!==null&&i!==void 0&&i.includes("newgold"))&&!((u=a[5])!==null&&u!==void 0&&u.includes("newgold"))&&a[2]!=="coursesId"&&(o.course_id=a[2]),a[1]==="shixuns"&&a.length>3&&(o.objective_type="shixun",o.objective_id=a[2]),a[1]==="paths"&&a.length>3&&(o.objective_type="path",o.objective_id=a[2]),Object(F.a)(Object(F.a)({},o),{school:1})}var Ve={\u9996\u9875:"/","/paths":{link:"/paths",key:1},"/shixuns":{link:"/shixuns",key:2},"/classrooms":{link:"/classrooms",key:3},"/competitions":{link:"/competitions",key:4},"/moop_cases":{link:"/moop_cases",key:5},"/forums":{link:"/forums",key:6},"/recruitment":{link:"/competitions/index",key:7},"/three":{link:"/three",key:7}},we=["/","/classrooms","/account/profile","/account/profile/edit","/classrooms/new"],Oe=function(u){var s,a=u.homePage,o=u.user,n=u.globalSetting,h=u.loading,C=u.dispatch,U=u.location,A=u.isLogin,Y=A===void 0?!1:A,J=u.shixunHomeworks,k=u.competitions,je=Object(ne.a)(u,["homePage","user","globalSetting","loading","dispatch","location","isLogin","shixunHomeworks","competitions"]),ie=$(),Z=U.pathname,Qe=Z==null?void 0:Z.includes("/forums"),de=k.qs,Ke=U.pathname.includes("/course"),Ne=U.pathname.includes("/shixuns"),De=U.pathname.includes("/competitions"),se=Object(X.useState)(-1),Te=Object(te.a)(se,2),Be=Te[0],lt=Te[1];Object(X.useEffect)(function(){if(n!=null&&n.setting){var N,Pe;if(n==null||((N=n.setting)===null||N===void 0||((Pe=N.navbar)===null||Pe===void 0))||Pe.map(function(Ut,S){U.pathname.indexOf(Ut.link)>-1&<(S)}),Be===-1)Object(O.V)(n.setting.name);else{var Se;Object(O.V)(((Se=n.setting.navbar[Be])===null||Se===void 0?void 0:Se.name)||n.setting.name)}}},[n==null?void 0:n.setting]);var st=Object(X.useMemo)(function(){var N;if(n!=null&&(N=n.setting)!==null&&N!==void 0&&N.nav_logo_url){var Pe;return"".concat(x.a.IMG_SERVER,"/").concat(n==null||((Pe=n.setting)===null||Pe===void 0)?void 0:Pe.nav_logo_url)}else return"".concat(x.a.IMG_SERVER,"/images/avatars/LaboratorySetting/1nav?t=").concat(new Date().getTime())},[n==null||((s=n.setting)===null||s===void 0)?void 0:s.nav_logo_url]);if(n.showHeader&&n.showHeaderFooter){var Ie,ot,ze,He,fe,xe;return d.a.createElement("div",{className:"".concat(be.a.header," ").concat(n.isCourseOpeni?be.a.headerFixed:"")},d.a.createElement("div",{className:be.a.wrap},d.a.createElement("div",{className:"menu",style:{}},d.a.createElement("a",{className:"logo",href:""},d.a.createElement("img",{style:{height:Ke?48:36},title:(Ie=n.setting)===null||Ie===void 0?void 0:Ie.name,src:st||D.a})),n.setting&&((ot=n.setting.navbar)===null||ot===void 0?void 0:ot.map(function(N,Pe){return!N.hidden&&d.a.createElement("a",{target:N.link.indexOf("http")>-1?"_blank":"_self",href:N.link},N==null?void 0:N.name)})),d.a.createElement("div",{className:"right"},!n.isCourseOpeni&&d.a.createElement(d.a.Fragment,null,d.a.createElement("a",{style:{color:de.\u9996\u9875==="\u9996\u9875"?"rgba(255, 255, 255, 1)":"rgba(255, 255, 255, 0.7)"},onClick:function(){C({type:"competitions/switchLanguage",payload:!0})}},"\u4E2D\u6587"),d.a.createElement("span",{style:{color:"rgba(255, 255, 255, 0.7)"}},"|"),d.a.createElement("a",{style:{color:de.\u9996\u9875==="Home"?"rgba(255, 255, 255, 1)":"rgba(255, 255, 255, 0.7)"},onClick:function(){C({type:"competitions/switchLanguage",payload:!1})}},"English"),!Y&&!!(o!=null&&(ze=o.userInfo)!==null&&ze!==void 0&&ze.login)&&d.a.createElement(ae.a,{className:"iconfont icon-xiaoxilingdang c-white ml15 mr15 font18 relative",to:"/messages/".concat(o==null||((He=o.userInfo)===null||He===void 0)?void 0:He.login,"/user_tidings")},(o==null||((fe=o.navigationInfo)===null||fe===void 0||((xe=fe.top)===null||xe===void 0))?void 0:xe.new_message)&&d.a.createElement("span",{className:be.a.newslight}))),d.a.createElement(L,{payload:ie})))))}else return d.a.createElement(d.a.Fragment,null)},vt=M.a=Object(I.a)(function(i){var u=i.homePage,s=i.loading,a=i.user,o=i.globalSetting,n=i.shixunHomeworks,h=i.competitions;return{homePage:u,user:a,globalSetting:o,loading:s.models.index,shixunHomeworks:n,competitions:h}})(Oe)},syqs:function(g,M){g.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAAXNSR0IArs4c6QAAA0lJREFUWEfFl0tIVFEYx7/vDnNNIWRUdB4hRYQunAHz0ULBFoWMoozgg6k2LhQLXCS0CBcqIUMQCuqEWUtDJBBXiYuidkpORD7KCK0BdRZpEPiYuXS/ODPdaR73zr1XJmYWl7ncc77/73yvcw6Cxl9FRYVxd1ewE8EVIioGgDxEyGPTieAAAA4Q0Y8Iy1arcdXn8wlaTKPaoOJiuykUQjcAXSWibLXx7DsiHgPgG56nGb9/9WeqOYoAkRUHO4jARQRZWoQTxyBCEBHmrdasWSWPyAL8XXU/kVhyGuFkEG6T52lYzhtJAEVFjguINEBE+ekQl2wg4j6AYTAQ+PAt1m4cQGTlMJpu8VgInoe7sZ6IArCY7+wInnS5Xcl7iNymzWa8L+VEFMBiKbslitCRTrcr2eI4mN3bW5sOVwx7RFxPT+WyvbPTbamsdJj6+gY/BYNB0grY0HAt3+1uOdfTc2/18PBIjIs7QpDnsYuFIgxgNjvuEIlOOeNTU4/Kmpvrzy8vvw+0tnb5BCGkCtHcXF/g9XqqmL2amqbXfv9OUKYyFgKBj48xEvvQc6Umk52dw83NPassL7cXaoFg4hMTnipEgN7e/nfz8ws/5BbGmpXNxt9Ei8VxWRTFoVSujYVYWvIF2tq6ZT2hVVzS4jhuAM1mx20isUEttmoQesUjLZt7iUVFdg8AlakBsO9KEE1N9fler6daze3JGrjGAJ4AkFULQDLESmB6eu77yMhQpX7xsA920Wy2vyCiM1oBEiHYuyAIv1MlnHJTwpNTATCDbrercHT0QTX7v7HxZd/pvLGkp09EcgCPdYeATXS5nAXj48PhOt/a8v8qKbloYiXa3t7t0weBu7qSUBIfGxuO1vni4tuD2D6hDwLXNJehnLjUZBKblVaIcBlqaUSpxKUEOw1EuBGpteLEmKfKdj0Q0Vasthk1Nl7Pn5x8GM52LaWWCOFyda4QxW2GYachcpHNiL2k2o5nZibLa2urzVrE5cJRV9fyanPz63FsL2CH1bjtmH1UOpDk5p415OWZjNvb/hM9zcpgMEBp6aWc9fXPR4nzkg4kbEDGj2T/QpGhQ6nkpoweyyWIjF5MJIiMXs1iszZjl9PE0vlf1/M/hZhM6N1gtVgAAAAASUVORK5CYII="},vToQ:function(g,M,t){g.exports={flex_box_center:"flex_box_center___3UWMh",flex_space_between:"flex_space_between___2nh9S",flex_box_vertical_center:"flex_box_vertical_center___2Neiq",flex_box_center_end:"flex_box_center_end___2_1FS",flex_box_column:"flex_box_column___2E-v7",userPic:"userPic___3Pu9t",rightMenu:"rightMenu___1qaVl",menuWrap:"menuWrap___3r9jm",exit:"exit___38Urs",classromediv:"classromediv___2R8_g",glow:"glow___323IR",height67:"height67___1DFRI",login:"login___20J7t"}},xnZT:function(g,M,t){g.exports={modalityModal:"modalityModal___wjui6",modal:"modal___sNGOo",itemWarp:"itemWarp___Fnx0H",close:"close___1_R1B",selfdomModal:"selfdomModal___5WR35"}},xrsn:function(g,M,t){g.exports={flex_box_center:"flex_box_center___2cC1r",flex_space_between:"flex_space_between___9TeDx",flex_box_vertical_center:"flex_box_vertical_center___3EIYv",flex_box_center_end:"flex_box_center_end___1Uph0",flex_box_column:"flex_box_column___17_5w",header:"header___1E4MV",wrap:"wrap___1Pb_X",headerFixed:"headerFixed___1V7d4"}},"yTi+":function(g,M,t){g.exports=t.p+"static/AssistantCode3.9bae6615.jpeg"}}]);
|