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.
NewEduCoderBuild/layouts__SimpleLayouts.838b...

2 lines
12 KiB

(window.webpackJsonp=window.webpackJsonp||[]).push([[28],{"2tKv":function(j,w,u){j.exports=u.p+"static/Code.584c4f34.png"},H8y1:function(j,w,u){"use strict";u.r(w);var Le=u("GNNt"),ee=u("wEI+"),te=u("PpiC"),I=u("q1tI"),l=u.n(I),ne=u("+Gva"),oe=u("ruvs"),re=u("fRFI"),J=u.n(re),ae=function(){return l.a.createElement("div",{className:J.a.footer},l.a.createElement("span",null,"\u57FA\u4E8E\u4E91\u9645\u6A21\u5F0F\u7684\u5728\u7EBF\u6559\u5B66\u5B9E\u9A8C\u5E73\u53F0"),l.a.createElement("span",{className:J.a.inc},"Powered by \u5934\u6B4C"))},ue=ae,Fe=u("2qtc"),W=u("kLXV"),Ae=u("+L6B"),K=u("2/Rp"),le=u("9og8"),Y=u("9kvl");function H(){"use strict";/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */H=function(){return s};var c,s={},y=Object.prototype,i=y.hasOwnProperty,p=Object.defineProperty||function(n,e,t){n[e]=t.value},_=typeof Symbol=="function"?Symbol:{},D=_.iterator||"@@iterator",v=_.asyncIterator||"@@asyncIterator",T=_.toStringTag||"@@toStringTag";function h(n,e,t){return Object.defineProperty(n,e,{value:t,enumerable:!0,configurable:!0,writable:!0}),n[e]}try{h({},"")}catch(n){h=function(t,o,a){return t[o]=a}}function S(n,e,t,o){var a=e&&e.prototype instanceof A?e:A,r=Object.create(a.prototype),d=new z(o||[]);return p(r,"_invoke",{value:_e(n,t,d)}),r}function O(n,e,t){try{return{type:"normal",arg:n.call(e,t)}}catch(o){return{type:"throw",arg:o}}}s.wrap=S;var X="suspendedStart",L="suspendedYield",F="executing",g="completed",f={};function A(){}function R(){}function x(){}var N={};h(N,D,function(){return this});var k=Object.getPrototypeOf,B=k&&k(k($([])));B&&B!==y&&i.call(B,D)&&(N=B);var P=x.prototype=A.prototype=Object.create(N);function Z(n){["next","throw","return"].forEach(function(e){h(n,e,function(t){return this._invoke(e,t)})})}function G(n,e){function t(a,r,d,E){var m=O(n[a],n,r);if(m.type!=="throw"){var U=m.arg,b=U.value;return b&&typeof b=="object"&&i.call(b,"__await")?e.resolve(b.__await).then(function(C){t("next",C,d,E)},function(C){t("throw",C,d,E)}):e.resolve(b).then(function(C){U.value=C,d(U)},function(C){return t("throw",C,d,E)})}E(m.arg)}var o;p(this,"_invoke",{value:function(r,d){function E(){return new e(function(m,U){t(r,d,m,U)})}return o=o?o.then(E,E):E()}})}function _e(n,e,t){var o=X;return function(a,r){if(o===F)throw new Error("Generator is already running");if(o===g){if(a==="throw")throw r;return{value:c,done:!0}}for(t.method=a,t.arg=r;;){var d=t.delegate;if(d){var E=q(d,t);if(E){if(E===f)continue;return E}}if(t.method==="next")t.sent=t._sent=t.arg;else if(t.method==="throw"){if(o===X)throw o=g,t.arg;t.dispatchException(t.arg)}else t.method==="return"&&t.abrupt("return",t.arg);o=F;var m=O(n,e,t);if(m.type==="normal"){if(o=t.done?g:L,m.arg===f)continue;return{value:m.arg,done:t.done}}m.type==="throw"&&(o=g,t.method="throw",t.arg=m.arg)}}}function q(n,e){var t=e.method,o=n.iterator[t];if(o===c)return e.delegate=null,t==="throw"&&n.iterator.return&&(e.method="return",e.arg=c,q(n,e),e.method==="throw")||t!=="return"&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+t+"' method")),f;var a=O(o,n.iterator,e.arg);if(a.type==="throw")return e.method="throw",e.arg=a.arg,e.delegate=null,f;var r=a.arg;return r?r.done?(e[n.resultName]=r.value,e.next=n.nextLoc,e.method!=="return"&&(e.method="next",e.arg=c),e.delegate=null,f):r:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,f)}function xe(n){var e={tryLoc:n[0]};1 in n&&(e.catchLoc=n[1]),2 in n&&(e.finallyLoc=n[2],e.afterLoc=n[3]),this.tryEntries.push(e)}function V(n){var e=n.completion||{};e.type="normal",delete e.arg,n.completion=e}function z(n){this.tryEntries=[{tryLoc:"root"}],n.forEach(xe,this),this.reset(!0)}function $(n){if(n||n===""){var e=n[D];if(e)return e.call(n);if(typeof n.next=="function")return n;if(!isNaN(n.length)){var t=-1,o=function a(){for(;++t<n.length;)if(i.call(n,t))return a.value=n[t],a.done=!1,a;return a.value=c,a.done=!0,a};return o.next=o}}throw new TypeError(typeof n+" is not iterable")}return R.prototype=x,p(P,"constructor",{value:x,configurable:!0}),p(x,"constructor",{value:R,configurable:!0}),R.displayName=h(x,T,"GeneratorFunction"),s.isGeneratorFunction=function(n){var e=typeof n=="function"&&n.constructor;return!!e&&(e===R||(e.displayName||e.name)==="GeneratorFunction")},s.mark=function(n){return Object.setPrototypeOf?Object.setPrototypeOf(n,x):(n.__proto__=x,h(n,T,"GeneratorFunction")),n.prototype=Object.create(P),n},s.awrap=function(n){return{__await:n}},Z(G.prototype),h(G.prototype,v,function(){return this}),s.AsyncIterator=G,s.async=function(n,e,t,o,a){a===void 0&&(a=Promise);var r=new G(S(n,e,t,o),a);return s.isGeneratorFunction(e)?r:r.next().then(function(d){return d.done?d.value:r.next()})},Z(P),h(P,T,"Generator"),h(P,D,function(){return this}),h(P,"toString",function(){return"[object Generator]"}),s.keys=function(n){var e=Object(n),t=[];for(var o in e)t.push(o);return t.reverse(),function a(){for(;t.length;){var r=t.pop();if(r in e)return a.value=r,a.done=!1,a}return a.done=!0,a}},s.values=$,z.prototype={constructor:z,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=c,this.done=!1,this.delegate=null,this.method="next",this.arg=c,this.tryEntries.forEach(V),!e)for(var t in this)t.charAt(0)==="t"&&i.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=c)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if(e.type==="throw")throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function o(U,b){return d.type="throw",d.arg=e,t.next=U,b&&(t.method="next",t.arg=c),!!b}for(var a=this.tryEntries.length-1;a>=0;--a){var r=this.tryEntries[a],d=r.completion;if(r.tryLoc==="root")return o("end");if(r.tryLoc<=this.prev){var E=i.call(r,"catchLoc"),m=i.call(r,"finallyLoc");if(E&&m){if(this.prev<r.catchLoc)return o(r.catchLoc,!0);if(this.prev<r.finallyLoc)return o(r.finallyLoc)}else if(E){if(this.prev<r.catchLoc)return o(r.catchLoc,!0)}else{if(!m)throw new Error("try statement without catch or finally");if(this.prev<r.finallyLoc)return o(r.finallyLoc)}}}},abrupt:function(e,t){for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o];if(a.tryLoc<=this.prev&&i.call(a,"finallyLoc")&&this.prev<a.finallyLoc){var r=a;break}}r&&(e==="break"||e==="continue")&&r.tryLoc<=t&&t<=r.finallyLoc&&(r=null);var d=r?r.completion:{};return d.type=e,d.arg=t,r?(this.method="next",this.next=r.finallyLoc,f):this.complete(d)},complete:function(e,t){if(e.type==="throw")throw e.arg;return e.type==="break"||e.type==="continue"?this.next=e.arg:e.type==="return"?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):e.type==="normal"&&t&&(this.next=t),f},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var o=this.tryEntries[t];if(o.finallyLoc===e)return this.complete(o.completion,o.afterLoc),V(o),f}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var o=this.tryEntries[t];if(o.tryLoc===e){var a=o.completion;if(a.type==="throw"){var r=a.arg;V(o)}return r}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,o){return this.delegate={iterator:$(e),resultName:t,nextLoc:o},this.method==="next"&&(this.arg=c),f}},s}var se=function(s){var y=s.user,i=s.dispatch,p=s.classroomList;return l.a.createElement(W.a,{title:"\u6E29\u99A8\u63D0\u793A",zIndex:9999,footer:null,visible:p.actionTabs.key==="\u5BFC\u51FA\u63D0\u9192",onCancel:function(){i({type:"classroomList/setActionTabs",payload:{}})}},l.a.createElement("div",null,l.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"),l.a.createElement("br",null),l.a.createElement("div",{style:{textAlign:"end"}},l.a.createElement(K.a,{type:"primary",onClick:Object(le.a)(H().mark(function _(){return H().wrap(function(v){for(;;)switch(v.prev=v.next){case 0:i({type:"classroomList/setActionTabs",payload:{}});case 1:case"end":return v.stop()}},_)}))},"\u77E5\u9053\u4E86"))))},ie=Object(Y.a)(function(c){var s=c.user,y=c.classroomList;return{user:s,classroomList:y}})(se),be=u("14J3"),ce=u("BMrR"),De=u("sRBo"),de=u("kaz8"),Q=u("tJVT"),fe=u("wd/R"),M=u.n(fe),Ee=u("2tKv"),me=u.n(Ee),he=function(s){var y,i=s.user,p=Object(I.useState)(!1),_=Object(Q.a)(p,2),D=_[0],v=_[1],T=Object(I.useState)(""),h=Object(Q.a)(T,2),S=h[0],O=h[1];Object(I.useEffect)(function(){var L,F,g=localStorage.getItem("extension-modal");if(!(i==null||((L=i.userInfo)===null||L===void 0)?void 0:L.login)||!g)return;var f=M()(),A="".concat(i==null||((F=i.userInfo)===null||F===void 0)?void 0:F.login,"-extend-date"),R=localStorage.getItem(A);if(R)if(f<=M()(R))v(!1);else{v(!0),localStorage.removeItem(A),localStorage.removeItem("extension-modal");var x=M()(localStorage.getItem("extension-date")).format("YYYY\u5E74MM\u6708DD\u65E5");O(x)}else{v(!0),localStorage.removeItem("extension-modal");var N=M()(localStorage.getItem("extension-date")).format("YYYY\u5E74MM\u6708DD\u65E5");O(N)}return function(){v(!1)}},[i==null||((y=i.userInfo)===null||y===void 0)?void 0:y.login]);var X=function(F){var g,f="".concat(i==null||((g=i.userInfo)===null||g===void 0)?void 0:g.login,"-extend-date"),A=M()().endOf("day").format("YYYY-MM-DD HH:mm:ss");F.target.checked?localStorage.setItem(f,A):localStorage.removeItem(f)};return l.a.createElement(W.a,{title:"\u6E29\u99A8\u63D0\u793A",visible:D,zIndex:9999,centered:!0,width:594,onCancel:function(){v(!1)},footer:l.a.createElement(ce.a,{align:"middle",justify:"space-between"},l.a.createElement(de.a,{onChange:X},"\u4ECA\u65E5\u4E0D\u518D\u63D0\u9192"),l.a.createElement(K.a,{onClick:function(){v(!1)},style:{borderRadius:4},type:"primary"}," \u5173\u95ED"))},l.a.createElement("div",{className:"font14",style:{paddingLeft:16}},l.a.createElement("div",null,"\u8001\u5E08\u60A8\u597D\uFF01"),l.a.createElement("div",{style:{textIndent:28}},"\u611F\u8C22\u60A8\u5BF9\u5934\u6B4C\u5E73\u53F0\u7684\u8BA4\u53EF\u4E0E\u652F\u6301\uFF01\u6839\u636E\u5E73\u53F0",l.a.createElement("a",{href:"https://www.educoder.net/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"),l.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"),l.a.createElement("img",{style:{margin:"8px auto",display:"block"},width:160,src:me.a,alt:"\u4E8C\u7EF4\u7801"}),l.a.createElement("div",{style:{textAlign:"right"}},"\u5934\u6B4C\u8FD0\u8425\u4E2D\u5FC3"),l.a.createElement("div",{style:{textAlign:"right"}},S)))},ve=Object(Y.a)(function(c){var s=c.user;return{user:s}})(he),ye=u("H4Hi"),pe=u.n(ye),ge=function(s){var y=s.loading,i=s.children,p=Object(te.a)(s,["loading","children"]);return l.a.createElement(ee.b,{locale:ne.default},l.a.createElement(oe.a,p),l.a.createElement("section",{className:pe.a.layoutMainClass},i),l.a.createElement(ue,null),l.a.createElement(ie,null),l.a.createElement(ve,null))},Re=w.default=Object(Y.a)(function(c){var s=c.loading;return{loading:s}})(ge)},fRFI:function(j,w,u){j.exports={flex_box_center:"flex_box_center___27xWq",flex_space_between:"flex_space_between___2F9VF",flex_box_vertical_center:"flex_box_vertical_center___-IYya",flex_box_center_end:"flex_box_center_end___2yrax",flex_box_column:"flex_box_column___2VTdL",footer:"footer___3eLdm",inc:"inc___XGVov"}}}]);