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.f2fe...

2 lines
11 KiB

(window.webpackJsonp=window.webpackJsonp||[]).push([[29],{"2tKv":function(w,S,u){w.exports=u.p+"static/Code.584c4f34.png"},H8y1:function(w,S,u){"use strict";u.r(S);var _e=u("GNNt"),q=u("wEI+"),ee=u("PpiC"),j=u("q1tI"),i=u.n(j),te=u("+Gva"),ne=u("ruvs"),re=u("fRFI"),z=u.n(re),oe=function(){return i.a.createElement("div",{className:z.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:z.a.inc},"Powered by \u5934\u6B4C"))},ae=oe,Le=u("2qtc"),J=u("kLXV"),Fe=u("+L6B"),W=u("2/Rp"),ue=u("9og8"),B=u("9kvl");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 d};var d={},E=Object.prototype,h=E.hasOwnProperty,c=typeof Symbol=="function"?Symbol:{},_=c.iterator||"@@iterator",R=c.asyncIterator||"@@asyncIterator",U=c.toStringTag||"@@toStringTag";function l(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=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),f=new H(r||[]);return a._invoke=function(y,L,s){var m="suspendedStart";return function(F,Q){if(m==="executing")throw new Error("Generator is already running");if(m==="completed"){if(F==="throw")throw Q;return K()}for(s.method=F,s.arg=Q;;){var Z=s.delegate;if(Z){var $=X(Z,s);if($){if($===p)continue;return $}}if(s.method==="next")s.sent=s._sent=s.arg;else if(s.method==="throw"){if(m==="suspendedStart")throw m="completed",s.arg;s.dispatchException(s.arg)}else s.method==="return"&&s.abrupt("return",s.arg);m="executing";var M=b(y,L,s);if(M.type==="normal"){if(m=s.done?"completed":"suspendedYield",M.arg===p)continue;return{value:M.arg,done:s.done}}M.type==="throw"&&(m="completed",s.method="throw",s.arg=M.arg)}}}(t,n,f),a}function b(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(r){return{type:"throw",arg:r}}}d.wrap=I;var p={};function C(){}function O(){}function v(){}var x={};l(x,_,function(){return this});var A=Object.getPrototypeOf,D=A&&A(A(V([])));D&&D!==E&&h.call(D,_)&&(x=D);var g=v.prototype=C.prototype=Object.create(x);function N(t){["next","throw","return"].forEach(function(e){l(t,e,function(n){return this._invoke(e,n)})})}function P(t,e){function n(o,a,f,y){var L=b(t[o],t,a);if(L.type!=="throw"){var s=L.arg,m=s.value;return m&&typeof m=="object"&&h.call(m,"__await")?e.resolve(m.__await).then(function(F){n("next",F,f,y)},function(F){n("throw",F,f,y)}):e.resolve(m).then(function(F){s.value=F,f(s)},function(F){return n("throw",F,f,y)})}y(L.arg)}var r;this._invoke=function(o,a){function f(){return new e(function(y,L){n(o,a,y,L)})}return r=r?r.then(f,f):f()}}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=b(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 ye(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(ye,this),this.reset(!0)}function V(t){if(t){var e=t[_];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(h.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 O.prototype=v,l(g,"constructor",v),l(v,"constructor",O),O.displayName=l(v,U,"GeneratorFunction"),d.isGeneratorFunction=function(t){var e=typeof t=="function"&&t.constructor;return!!e&&(e===O||(e.displayName||e.name)==="GeneratorFunction")},d.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,v):(t.__proto__=v,l(t,U,"GeneratorFunction")),t.prototype=Object.create(g),t},d.awrap=function(t){return{__await:t}},N(P.prototype),l(P.prototype,R,function(){return this}),d.AsyncIterator=P,d.async=function(t,e,n,r,o){o===void 0&&(o=Promise);var a=new P(I(t,e,n,r),o);return d.isGeneratorFunction(e)?a:a.next().then(function(f){return f.done?f.value:a.next()})},N(g),l(g,U,"Generator"),l(g,_,function(){return this}),l(g,"toString",function(){return"[object Generator]"}),d.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}},d.values=V,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"&&h.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(s,m){return f.type="throw",f.arg=e,n.next=s,m&&(n.method="next",n.arg=void 0),!!m}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],f=a.completion;if(a.tryLoc==="root")return r("end");if(a.tryLoc<=this.prev){var y=h.call(a,"catchLoc"),L=h.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&&h.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 f=a?a.completion:{};return f.type=e,f.arg=n,a?(this.method="next",this.next=a.finallyLoc,p):this.complete(f)},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:V(e),resultName:n,nextLoc:r},this.method==="next"&&(this.arg=void 0),p}},d}var ie=function(E){var h=E.user,c=E.dispatch,_=E.classroomList;return i.a.createElement(J.a,{title:"\u6E29\u99A8\u63D0\u793A",zIndex:9999,footer:null,visible:_.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(W.a,{type:"primary",onClick:Object(ue.a)(G().mark(function R(){return G().wrap(function(l){for(;;)switch(l.prev=l.next){case 0:c({type:"classroomList/setActionTabs",payload:{}});case 1:case"end":return l.stop()}},R)}))},"\u77E5\u9053\u4E86"))))},se=Object(B.a)(function(d){var E=d.user,h=d.classroomList;return{user:E,classroomList:h}})(ie),xe=u("14J3"),le=u("BMrR"),Ae=u("sRBo"),de=u("kaz8"),k=u("tJVT"),ce=u("wd/R"),T=u.n(ce),fe=u("2tKv"),Ee=u.n(fe),me=function(E){var h,c=E.user,_=Object(j.useState)(!1),R=Object(k.a)(_,2),U=R[0],l=R[1],I=Object(j.useState)(""),b=Object(k.a)(I,2),p=b[0],C=b[1];Object(j.useEffect)(function(){var v,x,A=localStorage.getItem("extension-modal");if(!(c==null||((v=c.userInfo)===null||v===void 0)?void 0:v.login)||!A)return;var D=T()(),g="".concat(c==null||((x=c.userInfo)===null||x===void 0)?void 0:x.login,"-extend-date"),N=localStorage.getItem(g);if(N)if(D<=T()(N))l(!1);else{l(!0),localStorage.removeItem(g),localStorage.removeItem("extension-modal");var P=T()(localStorage.getItem("extension-date")).format("YYYY\u5E74MM\u6708DD\u65E5");C(P)}else{l(!0),localStorage.removeItem("extension-modal");var X=T()(localStorage.getItem("extension-date")).format("YYYY\u5E74MM\u6708DD\u65E5");C(X)}return function(){l(!1)}},[c==null||((h=c.userInfo)===null||h===void 0)?void 0:h.login]);var O=function(x){var A,D="".concat(c==null||((A=c.userInfo)===null||A===void 0)?void 0:A.login,"-extend-date"),g=T()().endOf("day").format("YYYY-MM-DD HH:mm:ss");x.target.checked?localStorage.setItem(D,g):localStorage.removeItem(D)};return i.a.createElement(J.a,{title:"\u6E29\u99A8\u63D0\u793A",visible:U,zIndex:9999,centered:!0,width:594,onCancel:function(){l(!1)},footer:i.a.createElement(le.a,{align:"middle",justify:"space-between"},i.a.createElement(de.a,{onChange:O},"\u4ECA\u65E5\u4E0D\u518D\u63D0\u9192"),i.a.createElement(W.a,{onClick:function(){l(!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:Ee.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)))},he=Object(B.a)(function(d){var E=d.user;return{user:E}})(me),ve=u("H4Hi"),pe=u.n(ve),ge=function(E){var h=E.loading,c=E.children,_=Object(ee.a)(E,["loading","children"]);return i.a.createElement(q.b,{locale:te.default},i.a.createElement(ne.a,_),i.a.createElement("section",{className:pe.a.layoutMainClass},c),i.a.createElement(ae,null),i.a.createElement(se,null),i.a.createElement(he,null))},De=S.default=Object(B.a)(function(d){var E=d.loading;return{loading:E}})(ge)},fRFI:function(w,S,u){w.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"}}}]);