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