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.
5 lines
41 KiB
5 lines
41 KiB
(window.webpackJsonp=window.webpackJsonp||[]).push([[82],{"+M/w":function(te,ne,o){te.exports={flexRow:"flexRow___1Kwk7",flexColumn:"flexColumn___1x58l",action:"action___osaCD",setScore:"setScore___kmMlR",delete:"delete___XpFlx",content:"content___9Naj3",titleWrap:"titleWrap___32PZL",titleNumber:"titleNumber___3HPb0",score:"score___3zGYh",titleHtml:"titleHtml___2vgPo",answerWrap:"answerWrap___2vM8f",answer:"answer___1Q0Tc"}},"00WW":function(te,ne,o){"use strict";var Ce=o("+L6B"),Ee=o("2/Rp"),ve=o("q1tI"),v=o.n(ve),oe=o("ORPY"),de=o.n(oe),R=o("rd/4"),O=o.n(R),_e=o("3pxb"),me=o.n(_e),W=function(U){var B=U.createState,ye=U.refreshLoading,y=U.onRefresh,pe=y===void 0?function(){}:y,N=U.onCreate,H=N===void 0?function(){}:N;return v.a.createElement("div",{className:de.a.sendToClass},B?v.a.createElement(v.a.Fragment,null,v.a.createElement("img",{src:O.a,alt:"\u7A7A"}),v.a.createElement("div",null,"\u60A8\u8FD8\u6CA1\u6709\u521B\u5EFA\u6559\u5B66\u8BFE\u5802\uFF0C\u65E0\u6CD5\u5C06\u8BD5\u5377\u53D1\u9001\u81F3\u6559\u5B66\u8BFE\u5802\u3002"),v.a.createElement(Ee.a,{onClick:H,type:"primary",ghost:!0},"\u7ACB\u5373\u521B\u5EFA")):v.a.createElement(v.a.Fragment,null,v.a.createElement("img",{src:me.a,alt:"\u7A7A"}),v.a.createElement("div",null,"\u5DF2\u521B\u5EFA\u6559\u5B66\u8BFE\u5802\uFF1F\u8BF7\u5237\u65B0\u5217\u8868"),v.a.createElement(Ee.a,{loading:ye,onClick:pe,type:"primary",ghost:!0},"\u7ACB\u5373\u5237\u65B0")))};ne.a=W},"3pxb":function(te,ne,o){te.exports=o.p+"static/refresh.c0b88523.png"},"9Bee":function(te,ne,o){"use strict";var Ce=o("q1tI"),Ee=o.n(Ce),ve=o("vg9a"),v=o("tJVT"),oe=o("DlQD"),de=o.n(oe),R=o("rUJ1");function O(s,_){var p=s.match(/^(\s+)(?:```)/);if(p===null)return _;var g=p[1];return _.split(`
|
|
`).map(function(x){var w=x.match(/^\s+/);if(w===null)return x;var j=Object(v.a)(w,1),P=j[0];return P.length>=g.length?x.slice(g.length):x}).join(`
|
|
`)}var _e=[],me=["<ul>"],W=new de.a.Renderer,I=/^ *(#{1,6}) *([^\n]+?) *(?:#+ *)?(?:\n+|$)/;function U(){_e.length=0,me=["<ul>"]}function B(s,_,p,g){if(_>=s.length||s[_].level<=p)return _;var x=s[_];g.push("<li><a href='#"+x.anchor+"'>"+x.text+"</a>"),_++;var w=[];return _=B(s,_,x.level,w),w.length>0&&(g.push("<ul>"),w.forEach(function(j){g.push(j)}),g.push("</ul>")),g.push("</li>"),_=B(s,_,p,g),_}function ye(){return B(_e,0,0,me),me.push("</ul>"),me.join("")}var y={heading:function(_){var p=I.exec(_);if(p)return{type:"heading",raw:p[0],depth:p[1].length,text:p[2]}},fences:function(_){var p=this.rules.block.fences.exec(_);if(p){var g=p[0],x=O(g,p[3]||""),w=p[2]?p[2].trim():p[2];if(["latex","katex","math"].indexOf(w)>=0){var j=H(),P=x;x=j,X[j]={type:"block",expression:P}}return{type:"code",raw:g,lang:w,text:x}}}},pe=/(?:\${2})([^\n`]+?)(?:\${2})/gi,N=0,H=function(){return"__special_katext_id_".concat(N++,"__")},X={};function ae(){return X}function ee(){N=0,X={}}function se(s){return s=s.replace(pe,function(_,p){var g=H();return X[g]={type:"inline",expression:p},g}),s}var ie=W.listitem;W.listitem=function(s){return ie(se(s))};var F=W.paragraph;W.paragraph=function(s){return F(se(s))};var fe=W.tablecell;W.tablecell=function(s,_){return fe(se(s),_)},W.code=function(s,_,p){var g=(_||"").match(/\S*/)[0];return g?["latex","katex","math"].indexOf(g)>=0?"<p class='editormd-tex'>".concat(s,"</p>"):'<pre class="prettyprint linenums"><code class="language-'.concat(_,'">').concat(p?s:Object(R.escape)(s,!0),`</code></pre>
|
|
`):'<pre class="prettyprint linenums"><code>'+(p?s:Object(R.escape)(s,!0))+"</code></pre>"},W.heading=function(s,_,p){var g=this.options.headerPrefix+p.toLowerCase().replace(/[^\w\\u4e00-\\u9fa5]]+/g,"-");return _e.push({anchor:g,level:_,text:s}),"<h"+_+' id="'+g+'">'+s+"</h"+_+">"},de.a.setOptions({silent:!0,smartypants:!0,gfm:!0,pedantic:!1}),de.a.use({tokenizer:y,renderer:W});var ue=de.a,J=o("SJMd"),le=o("m3rI"),Q=o("Oy/b"),Y=/<pre[^>]*>/g;function M(s){var _=document.createElement("div");return _.innerHTML=s,_.childNodes.length===0?"":_.childNodes[0].nodeValue}var V=ne.a=function(s){var _=s.value,p=_===void 0?"":_,g=s.className,x=s.style,w=x===void 0?{}:x,j=String(p),P=Object(Ce.useMemo)(function(){try{var r=/\(\s+\/api\/attachments\/|\(\/api\/attachments\/|\(\/attachments\/download\//g,n=/\"\/api\/attachments\/|\"\/attachments\/download\//g,l=/\(\s+\/files\/uploads\/|\(\/files\/uploads\//g;j=j.replace(r,"("+le.a.API_SERVER+"/api/attachments/").replace(n,'"'+le.a.API_SERVER+"/api/attachments/").replace(l,'"'+le.a.API_SERVER+"/files/uploads/")}catch(h){}var u=ue(j),m=ae();return j.match(/\[TOC\]/)&&(u=u.replace("<p>[TOC]</p>",ye()),U()),u=u.replace(/(__special_katext_id_\d+__)/g,function(h,b){var A=m[b],Z=A.type,D=A.expression;return Object(Q.renderToString)(M(D)||"",{displayMode:Z==="block",throwOnError:!1,output:"html"})}),u=u.replace(/▁/g,"\u2581\u2581\u2581"),ee(),u},[j]),L=Object(Ce.useRef)();function S(r){var n=r.target;if(n.tagName.toUpperCase()==="A"){var l=n.getAttribute("href");if(l.startsWith("#")){r.preventDefault();var u=document.getElementById(l.replace("#",""));u&&u.scrollIntoView(!0)}}}return Object(Ce.useEffect)(function(){if(L.current&&P&&(P.match(Y)&&window.PR.prettyPrint()),L.current)return L.current.addEventListener("click",S),function(){L.current.removeEventListener("click",S),ee(),U()}},[P,L.current,S]),Ee.a.createElement("div",{ref:L,style:w,className:"".concat(g||""," markdown-body"),dangerouslySetInnerHTML:{__html:P}})}},"9ZNV":function(te,ne,o){"use strict";o.d(ne,"a",function(){return me});var Ce=o("+L6B"),Ee=o("2/Rp"),ve=o("0Owb"),v=o("q1tI"),oe=o.n(v),de=o("UUDw"),R=o.n(de),O=o("TSYQ"),_e=o.n(O),me=function(I){var U=I.cancelText,B=U===void 0?"\u53D6\u6D88":U,ye=I.okText,y=ye===void 0?"\u786E\u5B9A":ye,pe=I.loading,N=pe===void 0?!1:pe,H=I.hasOkBtn,X=H===void 0?!0:H,ae=I.okButtonProps,ee=ae===void 0?{}:ae,se=I.cancelButtonProps,ie=se===void 0?{}:se,F=I.onCancel,fe=F===void 0?function(){}:F,ue=I.onOk,J=ue===void 0?function(){}:ue,le=I.className,Q=le===void 0?"":le;return oe.a.createElement("div",{className:_e()(R.a.buttonFixed,Q)},oe.a.createElement("div",{className:R.a.buttonWrap},oe.a.createElement(Ee.a,Object(ve.a)({size:"large",className:"".concat(R.a.button," mr20"),onClick:fe},ie),B),X&&oe.a.createElement(Ee.a,Object(ve.a)({size:"large",type:"primary",className:"".concat(R.a.button," mr20"),loading:N,onClick:J},ee),y)))}},D3Jc:function(te,ne,o){te.exports={bg:"bg___2N4xV",wrap:"wrap___197Yw",title:"title___SRViJ",flexRow:"flexRow___2VcOb",flexColumn:"flexColumn___3sATC",flexJustifyBetween:"flexJustifyBetween___28Fc2",relative:"relative___1Z6Yd",questionNumber:"questionNumber___3JZ7u",score:"score___JiHU1",selectTopicButton:"selectTopicButton___2FHxM",line:"line___2fHJL",dragTip:"dragTip___3K-IA",typeActive:"typeActive___3Sew8",mouseTypeActive:"mouseTypeActive___2R64u",typeName:"typeName___1laV6",typeNumber:"typeNumber___slW4Y",typeAction:"typeAction___HFUjV",setScore:"setScore___3TxSu",delete:"delete___gIO9w",modal:"modal___2NK84"}},NNiE:function(te,ne,o){"use strict";var Ce=o("7Kak"),Ee=o("9yH6"),ve=o("q1tI"),v=o.n(ve),oe=o("9Bee"),de=o("+M/w"),R=o.n(de),O=["A\uFF0E","B\uFF0E","C\uFF0E","D\uFF0E","E\uFF0E","F\uFF0E","G\uFF0E","H\uFF0E","I\uFF0E","J\uFF0E","K\uFF0E","L\uFF0E","M\uFF0E","N\uFF0E","O\uFF0E","P\uFF0E","Q\uFF0E","R\uFF0E","S\uFF0E","T\uFF0E","U\uFF0E","V\uFF0E","W\uFF0E","X\uFF0E","Y\uFF0E","Z\uFF0E"],_e=function(W){var I=W.index,U=W.typeName,B=W.type,ye=W.data,y=ye===void 0?{}:ye,pe=W.inMouseId,N=W.onSetScore,H=N===void 0?function(){}:N,X=W.onDelete,ae=X===void 0?function(){}:X,ee=W.onMouseEnter,se=ee===void 0?function(){}:ee,ie=function(){var M;return v.a.createElement("div",{className:R.a.answerWrap},y==null||((M=y.choices)===null||M===void 0)?void 0:M.map(function(V,s){return v.a.createElement("div",{className:"".concat(R.a.flexRow," mt15"),key:s},O[s],v.a.createElement("div",{className:"".concat(R.a.answer," ml5")},v.a.createElement(oe.a,{value:V==null?void 0:V.choice_text})))}))},F=function(){var M;return v.a.createElement("div",{className:R.a.answerWrap},v.a.createElement("div",{className:"".concat(R.a.flexRow," mt15")},y==null||((M=y.choices)===null||M===void 0)?void 0:M.map(function(V,s){return v.a.createElement(Ee.a,{disabled:!0,key:s},V==null?void 0:V.choice_text)})))},fe=function(){var M;return v.a.createElement("div",{className:R.a.answerWrap},v.a.createElement("div",{className:"".concat(R.a.flexRow," mt15")},v.a.createElement(oe.a,{value:y==null||((M=y.program_attr)===null||M===void 0)?void 0:M.description})))},ue=function(){var M;return v.a.createElement("div",{className:R.a.answerWrap},v.a.createElement("div",{className:"".concat(R.a.flexColumn," mt15")},y==null||((M=y.standard_answer)===null||M===void 0)?void 0:M.map(function(V,s){return v.a.createElement(oe.a,{key:s,value:"\u7B54\u6848\uFF08\u586B\u7A7A".concat(V.position,"\uFF09\uFF1A").concat(V.answer_text.join("\u3001"))})})))},J=function(){var M;return v.a.createElement("div",{className:R.a.answerWrap},v.a.createElement("div",{className:"mt15"},v.a.createElement("div",null,"\u7B54\u6848\uFF1A"),v.a.createElement(oe.a,{value:y==null||((M=y.answer_texts)===null||M===void 0)?void 0:M[0]})))},le=function(){var M;return v.a.createElement("div",{className:R.a.answerWrap},v.a.createElement("div",{className:"mt10"},"\u5173\u5361"),y==null||((M=y.shixun)===null||M===void 0)?void 0:M.map(function(V,s){return v.a.createElement("div",{key:s,className:"mt10 font14"},s+1,". ",V==null?void 0:V.challenge_name)}))},Q=function(){var M={SINGLE:ie,MULTIPLE:ie,JUDGMENT:F,PROGRAM:fe,COMPLETION:ue,SUBJECTIVE:J,PRACTICAL:le};return M[B]?M[B]():null};return v.a.createElement("div",{onMouseEnter:function(){return se(y.id)}},pe===y.id&&v.a.createElement("div",{className:R.a.action},v.a.createElement("div",{className:R.a.setScore,onClick:function(){return H(y.id,U,y==null?void 0:y.shixun,y.score)}},"\u8BBE\u7F6E\u5F97\u5206"),v.a.createElement("div",{className:R.a.delete,onClick:function(){return ae(y.id)}},"\u5220\u9664")),v.a.createElement("div",{className:R.a.content},v.a.createElement("div",{className:R.a.titleWrap},v.a.createElement("p",{className:R.a.titleNumber},I+1),"\u3001",v.a.createElement("div",{className:R.a.score},"(",y.score,"\u5206)"),v.a.createElement(oe.a,{className:R.a.titleHtml,value:y.name||(y==null?void 0:y.shixun_name)})),Q()))};ne.a=_e},ORPY:function(te,ne,o){te.exports={sendToClass:"sendToClass___2FQ8x"}},PEfE:function(te,ne,o){te.exports={wrap:"wrap___1KBbe",title:"title___316_5",radioWrap:"radioWrap___2b58p",radio:"radio___3wz7l",colorFF0000:"colorFF0000___3JfbP",pagination:"pagination___3UF9N"}},UUDw:function(te,ne,o){te.exports={buttonFixed:"buttonFixed___2zLVJ",button:"button___-JgFH",buttonWrap:"buttonWrap___aZhhk"}},VN4U:function(te,ne,o){"use strict";o.r(ne);var Ce=o("0Owb"),Ee=o("sPJy"),ve=o("bE4q"),v=o("9og8"),oe=o("tJVT"),de=o("PpiC"),R=o("q1tI"),O=o.n(R),_e=o("9kvl"),me=o("ngQI"),W=o("NNiE"),I=o("9ZNV"),U=o("D3Jc"),B=o.n(U),ye=o("kHHm");function y(){"use strict";/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */y=function(){return N};var N={},H=Object.prototype,X=H.hasOwnProperty,ae=typeof Symbol=="function"?Symbol:{},ee=ae.iterator||"@@iterator",se=ae.asyncIterator||"@@asyncIterator",ie=ae.toStringTag||"@@toStringTag";function F(r,n,l){return Object.defineProperty(r,n,{value:l,enumerable:!0,configurable:!0,writable:!0}),r[n]}try{F({},"")}catch(r){F=function(l,u,m){return l[u]=m}}function fe(r,n,l,u){var m=n&&n.prototype instanceof le?n:le,h=Object.create(m.prototype),b=new P(u||[]);return h._invoke=function(A,Z,D){var k="suspendedStart";return function(ce,ge){if(k==="executing")throw new Error("Generator is already running");if(k==="completed"){if(ce==="throw")throw ge;return S()}for(D.method=ce,D.arg=ge;;){var Pe=D.delegate;if(Pe){var he=x(Pe,D);if(he){if(he===J)continue;return he}}if(D.method==="next")D.sent=D._sent=D.arg;else if(D.method==="throw"){if(k==="suspendedStart")throw k="completed",D.arg;D.dispatchException(D.arg)}else D.method==="return"&&D.abrupt("return",D.arg);k="executing";var be=ue(A,Z,D);if(be.type==="normal"){if(k=D.done?"completed":"suspendedYield",be.arg===J)continue;return{value:be.arg,done:D.done}}be.type==="throw"&&(k="completed",D.method="throw",D.arg=be.arg)}}}(r,l,b),h}function ue(r,n,l){try{return{type:"normal",arg:r.call(n,l)}}catch(u){return{type:"throw",arg:u}}}N.wrap=fe;var J={};function le(){}function Q(){}function Y(){}var M={};F(M,ee,function(){return this});var V=Object.getPrototypeOf,s=V&&V(V(L([])));s&&s!==H&&X.call(s,ee)&&(M=s);var _=Y.prototype=le.prototype=Object.create(M);function p(r){["next","throw","return"].forEach(function(n){F(r,n,function(l){return this._invoke(n,l)})})}function g(r,n){function l(m,h,b,A){var Z=ue(r[m],r,h);if(Z.type!=="throw"){var D=Z.arg,k=D.value;return k&&typeof k=="object"&&X.call(k,"__await")?n.resolve(k.__await).then(function(ce){l("next",ce,b,A)},function(ce){l("throw",ce,b,A)}):n.resolve(k).then(function(ce){D.value=ce,b(D)},function(ce){return l("throw",ce,b,A)})}A(Z.arg)}var u;this._invoke=function(m,h){function b(){return new n(function(A,Z){l(m,h,A,Z)})}return u=u?u.then(b,b):b()}}function x(r,n){var l=r.iterator[n.method];if(l===void 0){if(n.delegate=null,n.method==="throw"){if(r.iterator.return&&(n.method="return",n.arg=void 0,x(r,n),n.method==="throw"))return J;n.method="throw",n.arg=new TypeError("The iterator does not provide a 'throw' method")}return J}var u=ue(l,r.iterator,n.arg);if(u.type==="throw")return n.method="throw",n.arg=u.arg,n.delegate=null,J;var m=u.arg;return m?m.done?(n[r.resultName]=m.value,n.next=r.nextLoc,n.method!=="return"&&(n.method="next",n.arg=void 0),n.delegate=null,J):m:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,J)}function w(r){var n={tryLoc:r[0]};1 in r&&(n.catchLoc=r[1]),2 in r&&(n.finallyLoc=r[2],n.afterLoc=r[3]),this.tryEntries.push(n)}function j(r){var n=r.completion||{};n.type="normal",delete n.arg,r.completion=n}function P(r){this.tryEntries=[{tryLoc:"root"}],r.forEach(w,this),this.reset(!0)}function L(r){if(r){var n=r[ee];if(n)return n.call(r);if(typeof r.next=="function")return r;if(!isNaN(r.length)){var l=-1,u=function m(){for(;++l<r.length;)if(X.call(r,l))return m.value=r[l],m.done=!1,m;return m.value=void 0,m.done=!0,m};return u.next=u}}return{next:S}}function S(){return{value:void 0,done:!0}}return Q.prototype=Y,F(_,"constructor",Y),F(Y,"constructor",Q),Q.displayName=F(Y,ie,"GeneratorFunction"),N.isGeneratorFunction=function(r){var n=typeof r=="function"&&r.constructor;return!!n&&(n===Q||(n.displayName||n.name)==="GeneratorFunction")},N.mark=function(r){return Object.setPrototypeOf?Object.setPrototypeOf(r,Y):(r.__proto__=Y,F(r,ie,"GeneratorFunction")),r.prototype=Object.create(_),r},N.awrap=function(r){return{__await:r}},p(g.prototype),F(g.prototype,se,function(){return this}),N.AsyncIterator=g,N.async=function(r,n,l,u,m){m===void 0&&(m=Promise);var h=new g(fe(r,n,l,u),m);return N.isGeneratorFunction(n)?h:h.next().then(function(b){return b.done?b.value:h.next()})},p(_),F(_,ie,"Generator"),F(_,ee,function(){return this}),F(_,"toString",function(){return"[object Generator]"}),N.keys=function(r){var n=[];for(var l in r)n.push(l);return n.reverse(),function u(){for(;n.length;){var m=n.pop();if(m in r)return u.value=m,u.done=!1,u}return u.done=!0,u}},N.values=L,P.prototype={constructor:P,reset:function(n){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(j),!n)for(var l in this)l.charAt(0)==="t"&&X.call(this,l)&&!isNaN(+l.slice(1))&&(this[l]=void 0)},stop:function(){this.done=!0;var n=this.tryEntries[0].completion;if(n.type==="throw")throw n.arg;return this.rval},dispatchException:function(n){if(this.done)throw n;var l=this;function u(D,k){return b.type="throw",b.arg=n,l.next=D,k&&(l.method="next",l.arg=void 0),!!k}for(var m=this.tryEntries.length-1;m>=0;--m){var h=this.tryEntries[m],b=h.completion;if(h.tryLoc==="root")return u("end");if(h.tryLoc<=this.prev){var A=X.call(h,"catchLoc"),Z=X.call(h,"finallyLoc");if(A&&Z){if(this.prev<h.catchLoc)return u(h.catchLoc,!0);if(this.prev<h.finallyLoc)return u(h.finallyLoc)}else if(A){if(this.prev<h.catchLoc)return u(h.catchLoc,!0)}else{if(!Z)throw new Error("try statement without catch or finally");if(this.prev<h.finallyLoc)return u(h.finallyLoc)}}}},abrupt:function(n,l){for(var u=this.tryEntries.length-1;u>=0;--u){var m=this.tryEntries[u];if(m.tryLoc<=this.prev&&X.call(m,"finallyLoc")&&this.prev<m.finallyLoc){var h=m;break}}h&&(n==="break"||n==="continue")&&h.tryLoc<=l&&l<=h.finallyLoc&&(h=null);var b=h?h.completion:{};return b.type=n,b.arg=l,h?(this.method="next",this.next=h.finallyLoc,J):this.complete(b)},complete:function(n,l){if(n.type==="throw")throw n.arg;return n.type==="break"||n.type==="continue"?this.next=n.arg:n.type==="return"?(this.rval=this.arg=n.arg,this.method="return",this.next="end"):n.type==="normal"&&l&&(this.next=l),J},finish:function(n){for(var l=this.tryEntries.length-1;l>=0;--l){var u=this.tryEntries[l];if(u.finallyLoc===n)return this.complete(u.completion,u.afterLoc),j(u),J}},catch:function(n){for(var l=this.tryEntries.length-1;l>=0;--l){var u=this.tryEntries[l];if(u.tryLoc===n){var m=u.completion;if(m.type==="throw"){var h=m.arg;j(u)}return h}}throw new Error("illegal catch attempt")},delegateYield:function(n,l,u){return this.delegate={iterator:L(n),resultName:l,nextLoc:u},this.method==="next"&&(this.arg=void 0),J}},N}var pe=function(H){var X,ae,ee,se,ie,F,fe,ue,J=H.paperlibrary,le=H.user,Q=H.globalSetting,Y=H.loading,M=H.dispatch,V=Object(de.a)(H,["paperlibrary","user","globalSetting","loading","dispatch"]),s=Object(R.useState)(),_=Object(oe.a)(s,2),p=_[0],g=_[1],x=Object(R.useRef)();Object(R.useEffect)(function(){return M({type:"globalSetting/footerToggle",payload:!1}),function(){M({type:"globalSetting/footerToggle",payload:!0})}},[]),Object(R.useEffect)(function(){var L,S,r,n;x.current=(L=V.match)===null||L===void 0||((S=L.params)===null||S===void 0)?void 0:S.id,g((r=V.location)===null||r===void 0||((n=r.query)===null||n===void 0)?void 0:n.defaultActiveKey),w()},[]);var w=function(){M({type:"paperlibrary/getPaperData",payload:{id:x.current}})},j=function(){var L=Object(v.a)(y().mark(function S(r,n){var l,u,m;return y().wrap(function(b){for(;;)switch(b.prev=b.next){case 0:if(!(!r.destination||!r.source)){b.next=2;break}return b.abrupt("return");case 2:return l=n.questions[r.source.index].id,u=r.destination.index+1,b.next=6,M({type:"paperlibrary/adjustPosition",payload:{id:x.current,itemId:l,position:u}});case 6:if(m=b.sent,!(m.status===-1)){b.next=9;break}return b.abrupt("return");case 9:w();case 10:case"end":return b.stop()}},S)}));return function(r,n){return L.apply(this,arguments)}}(),P=function(){M({type:"paperlibrary/setActionTabs",payload:{key:"Paperlibrary-SendToClass",params:{id:x.current}}})};return O.a.createElement("section",{className:B.a.bg},O.a.createElement(ve.a,{className:"mt30",separator:">"},O.a.createElement(ve.a.Item,null,"\u8BD5\u5377\u5E93"),O.a.createElement(ve.a.Item,{href:"/paperlibrary?defaultActiveKey=".concat(p)},p==="1"?"\u516C\u5F00\u8BD5\u5377\u5E93":"\u6211\u7684\u8BD5\u5377\u5E93"),O.a.createElement(ve.a.Item,null,"\u8BD5\u5377\u67E5\u770B")),O.a.createElement("div",{className:B.a.title},(X=J.paperData)===null||X===void 0||((ae=X.exam)===null||ae===void 0)?void 0:ae.name),O.a.createElement("div",{className:B.a.wrap},O.a.createElement("div",{className:"pt20 pb20"},O.a.createElement("div",{className:"".concat(B.a.flexRow," ").concat(B.a.flexJustifyBetween)},O.a.createElement("div",null,O.a.createElement("span",{className:B.a.questionNumber},"\u9898\u6570\uFF1A",(ee=J.paperData)===null||ee===void 0||((se=ee.exam)===null||se===void 0)?void 0:se.all_questions_count),O.a.createElement("span",{className:B.a.score},"\u603B\u5206\uFF1A",(ie=J.paperData)===null||ie===void 0||((F=ie.exam)===null||F===void 0)?void 0:F.all_score))),O.a.createElement("div",{className:B.a.line}),O.a.createElement("div",{className:B.a.dragTip},"\u5C0F\u9898\u4E4B\u95F4\u53EF\u4EE5\u62D6\u52A8\u6392\u5E8F"),(fe=J.paperData)===null||fe===void 0||((ue=fe.questionList)===null||ue===void 0)?void 0:ue.map(function(L,S){return O.a.createElement("div",{className:"".concat(B.a.relative," mt20 mb20"),key:S},O.a.createElement("div",{className:B.a.typeActive},O.a.createElement("span",{className:B.a.typeName},L.number,"\u3001",L.name),O.a.createElement("span",{className:B.a.typeNumber},"\uFF08\u5171",L.questions_count,"\u9898\uFF1B\u5171",L.questions_score,"\u5206\uFF09")),O.a.createElement(me.a,{onDragEnd:function(n){return j(n,L)}},O.a.createElement(me.c,{droppableId:S.toString()},function(r,n){var l;return O.a.createElement("div",Object(Ce.a)({className:"mt20",ref:r.innerRef},r.droppableProps,{onScroll:function(){}}),(l=L.questions)===null||l===void 0?void 0:l.map(function(u,m){return O.a.createElement(me.b,{draggableId:u.id.toString(),index:m,key:u.id},function(h){return O.a.createElement("div",Object(Ce.a)({ref:h.innerRef},h.draggableProps,h.dragHandleProps),O.a.createElement(W.a,{index:m,typeName:L.name,type:L.type,data:u}))})}))})))}))),O.a.createElement(I.a,{okText:"\u53D1\u9001\u8BFE\u5802",onCancel:function(){return _e.c.replace("/paperlibrary")},onOk:P}),O.a.createElement(ye.a,null))};ne.default=Object(_e.a)(function(N){var H=N.paperlibrary,X=N.user,ae=N.loading,ee=N.globalSetting;return{paperlibrary:H,user:X,globalSetting:ee,loading:ae.effects}})(pe)},kHHm:function(te,ne,o){"use strict";var Ce=o("2qtc"),Ee=o("kLXV"),ve=o("7Kak"),v=o("9yH6"),oe=o("miYZ"),de=o("tsqr"),R=o("9og8"),O=o("tJVT"),_e=o("PpiC"),me=o("5NDa"),W=o("5rEg"),I=o("q1tI"),U=o.n(I),B=o("9kvl"),ye=o("PEfE"),y=o.n(ye),pe=o("1vsH"),N=o("+L6B"),H=o("2/Rp"),X=o("iQDF"),ae=o("+eQT"),ee=o("Ty5D"),se=o("wd/R"),ie=o.n(se);function F(){"use strict";/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */F=function(){return s};var s={},_=Object.prototype,p=_.hasOwnProperty,g=typeof Symbol=="function"?Symbol:{},x=g.iterator||"@@iterator",w=g.asyncIterator||"@@asyncIterator",j=g.toStringTag||"@@toStringTag";function P(t,e,a){return Object.defineProperty(t,e,{value:a,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{P({},"")}catch(t){P=function(a,i,c){return a[i]=c}}function L(t,e,a,i){var c=e&&e.prototype instanceof n?e:n,d=Object.create(c.prototype),C=new Pe(i||[]);return d._invoke=function($,G,f){var E="suspendedStart";return function(T,q){if(E==="executing")throw new Error("Generator is already running");if(E==="completed"){if(T==="throw")throw q;return be()}for(f.method=T,f.arg=q;;){var re=f.delegate;if(re){var K=k(re,f);if(K){if(K===r)continue;return K}}if(f.method==="next")f.sent=f._sent=f.arg;else if(f.method==="throw"){if(E==="suspendedStart")throw E="completed",f.arg;f.dispatchException(f.arg)}else f.method==="return"&&f.abrupt("return",f.arg);E="executing";var z=S($,G,f);if(z.type==="normal"){if(E=f.done?"completed":"suspendedYield",z.arg===r)continue;return{value:z.arg,done:f.done}}z.type==="throw"&&(E="completed",f.method="throw",f.arg=z.arg)}}}(t,a,C),d}function S(t,e,a){try{return{type:"normal",arg:t.call(e,a)}}catch(i){return{type:"throw",arg:i}}}s.wrap=L;var r={};function n(){}function l(){}function u(){}var m={};P(m,x,function(){return this});var h=Object.getPrototypeOf,b=h&&h(h(he([])));b&&b!==_&&p.call(b,x)&&(m=b);var A=u.prototype=n.prototype=Object.create(m);function Z(t){["next","throw","return"].forEach(function(e){P(t,e,function(a){return this._invoke(e,a)})})}function D(t,e){function a(c,d,C,$){var G=S(t[c],t,d);if(G.type!=="throw"){var f=G.arg,E=f.value;return E&&typeof E=="object"&&p.call(E,"__await")?e.resolve(E.__await).then(function(T){a("next",T,C,$)},function(T){a("throw",T,C,$)}):e.resolve(E).then(function(T){f.value=T,C(f)},function(T){return a("throw",T,C,$)})}$(G.arg)}var i;this._invoke=function(c,d){function C(){return new e(function($,G){a(c,d,$,G)})}return i=i?i.then(C,C):C()}}function k(t,e){var a=t.iterator[e.method];if(a===void 0){if(e.delegate=null,e.method==="throw"){if(t.iterator.return&&(e.method="return",e.arg=void 0,k(t,e),e.method==="throw"))return r;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return r}var i=S(a,t.iterator,e.arg);if(i.type==="throw")return e.method="throw",e.arg=i.arg,e.delegate=null,r;var c=i.arg;return c?c.done?(e[t.resultName]=c.value,e.next=t.nextLoc,e.method!=="return"&&(e.method="next",e.arg=void 0),e.delegate=null,r):c:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,r)}function ce(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 ge(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function Pe(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(ce,this),this.reset(!0)}function he(t){if(t){var e=t[x];if(e)return e.call(t);if(typeof t.next=="function")return t;if(!isNaN(t.length)){var a=-1,i=function c(){for(;++a<t.length;)if(p.call(t,a))return c.value=t[a],c.done=!1,c;return c.value=void 0,c.done=!0,c};return i.next=i}}return{next:be}}function be(){return{value:void 0,done:!0}}return l.prototype=u,P(A,"constructor",u),P(u,"constructor",l),l.displayName=P(u,j,"GeneratorFunction"),s.isGeneratorFunction=function(t){var e=typeof t=="function"&&t.constructor;return!!e&&(e===l||(e.displayName||e.name)==="GeneratorFunction")},s.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,u):(t.__proto__=u,P(t,j,"GeneratorFunction")),t.prototype=Object.create(A),t},s.awrap=function(t){return{__await:t}},Z(D.prototype),P(D.prototype,w,function(){return this}),s.AsyncIterator=D,s.async=function(t,e,a,i,c){c===void 0&&(c=Promise);var d=new D(L(t,e,a,i),c);return s.isGeneratorFunction(e)?d:d.next().then(function(C){return C.done?C.value:d.next()})},Z(A),P(A,j,"Generator"),P(A,x,function(){return this}),P(A,"toString",function(){return"[object Generator]"}),s.keys=function(t){var e=[];for(var a in t)e.push(a);return e.reverse(),function i(){for(;e.length;){var c=e.pop();if(c in t)return i.value=c,i.done=!1,i}return i.done=!0,i}},s.values=he,Pe.prototype={constructor:Pe,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(ge),!e)for(var a in this)a.charAt(0)==="t"&&p.call(this,a)&&!isNaN(+a.slice(1))&&(this[a]=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 a=this;function i(f,E){return C.type="throw",C.arg=e,a.next=f,E&&(a.method="next",a.arg=void 0),!!E}for(var c=this.tryEntries.length-1;c>=0;--c){var d=this.tryEntries[c],C=d.completion;if(d.tryLoc==="root")return i("end");if(d.tryLoc<=this.prev){var $=p.call(d,"catchLoc"),G=p.call(d,"finallyLoc");if($&&G){if(this.prev<d.catchLoc)return i(d.catchLoc,!0);if(this.prev<d.finallyLoc)return i(d.finallyLoc)}else if($){if(this.prev<d.catchLoc)return i(d.catchLoc,!0)}else{if(!G)throw new Error("try statement without catch or finally");if(this.prev<d.finallyLoc)return i(d.finallyLoc)}}}},abrupt:function(e,a){for(var i=this.tryEntries.length-1;i>=0;--i){var c=this.tryEntries[i];if(c.tryLoc<=this.prev&&p.call(c,"finallyLoc")&&this.prev<c.finallyLoc){var d=c;break}}d&&(e==="break"||e==="continue")&&d.tryLoc<=a&&a<=d.finallyLoc&&(d=null);var C=d?d.completion:{};return C.type=e,C.arg=a,d?(this.method="next",this.next=d.finallyLoc,r):this.complete(C)},complete:function(e,a){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"&&a&&(this.next=a),r},finish:function(e){for(var a=this.tryEntries.length-1;a>=0;--a){var i=this.tryEntries[a];if(i.finallyLoc===e)return this.complete(i.completion,i.afterLoc),ge(i),r}},catch:function(e){for(var a=this.tryEntries.length-1;a>=0;--a){var i=this.tryEntries[a];if(i.tryLoc===e){var c=i.completion;if(c.type==="throw"){var d=c.arg;ge(i)}return d}}throw new Error("illegal catch attempt")},delegateYield:function(e,a,i){return this.delegate={iterator:he(e),resultName:a,nextLoc:i},this.method==="next"&&(this.arg=void 0),r}},s}var fe=function(_){var p=_.user,g=_.dispatch,x=_.classroomList,w=_.onModalOk,j=Object(ee.m)(),P=Object(I.useState)(),L=Object(O.a)(P,2),S=L[0],r=L[1];function n(l){return l&&l<ie()().subtract(1,"days")}return U.a.createElement(Ee.a,{title:"\u6E29\u99A8\u63D0\u793A",zIndex:8888,footer:null,visible:x.actionTabs.key==="\u9884\u7EA6\u5F39\u7A97",onCancel:function(){g({type:"classroomList/setActionTabs",payload:{}})}},U.a.createElement("div",null,U.a.createElement("span",null,"EduCoder\u6CE8\u610F\u5230\u60A8\u7684\u8BFE\u5802\u4E2D\u5B66\u751F\u4EBA\u6570\u8F83\u591A\u3002\u4E3A\u66F4\u597D\u5730\u4E3A\u60A8\u548C\u60A8\u7684\u5B66\u751F\u670D\u52A1\uFF0C\u7ED9\u540C\u5B66\u4EEC\u5E26\u6765\u66F4\u597D\u7684\u8003\u8BD5\u4F53\u9A8C\uFF0C\u6211\u4EEC\u5C06\u63D0\u524D\u4E3A\u60A8\u548C\u60A8\u7684\u5B66\u751F\u51C6\u5907\u597D\u670D\u52A1\u5668\u8D44\u6E90\u3002 \u8BF7\u60A8\u544A\u77E5\u6211\u4EEC\uFF0C\u8FD9\u4EFD\u8BD5\u5377\u7684\u9884\u8BA1\u8003\u8BD5\u65F6\u95F4\u662F\uFF1A"),U.a.createElement("br",null),U.a.createElement(ae.a,{popupStyle:{zIndex:9999},style:{marginTop:"10px",marginBottom:"10px"},disabledDate:n,format:"YYYY-MM-DD HH:mm:ss",onChange:function(u,m){r(m)},showTime:{defaultValue:ie()("00:00:00","HH:mm:ss")}}),U.a.createElement("br",null),U.a.createElement("span",null,"\u611F\u8C22\u60A8\u7684\u914D\u5408"),U.a.createElement("br",null),U.a.createElement("div",{style:{textAlign:"end"}},U.a.createElement(H.a,{type:"primary",onClick:Object(R.a)(F().mark(function l(){return F().wrap(function(m){for(;;)switch(m.prev=m.next){case 0:w(S),g({type:"classroomList/setActionTabs",payload:{}});case 2:case"end":return m.stop()}},l)}))},"\u786E\u8BA4"))))},ue=Object(B.a)(function(s){var _=s.user,p=s.classroomList;return{user:_,classroomList:p}})(fe),J=o("00WW"),le=o("ErOA");function Q(){"use strict";/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */Q=function(){return s};var s={},_=Object.prototype,p=_.hasOwnProperty,g=typeof Symbol=="function"?Symbol:{},x=g.iterator||"@@iterator",w=g.asyncIterator||"@@asyncIterator",j=g.toStringTag||"@@toStringTag";function P(t,e,a){return Object.defineProperty(t,e,{value:a,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{P({},"")}catch(t){P=function(a,i,c){return a[i]=c}}function L(t,e,a,i){var c=e&&e.prototype instanceof n?e:n,d=Object.create(c.prototype),C=new Pe(i||[]);return d._invoke=function($,G,f){var E="suspendedStart";return function(T,q){if(E==="executing")throw new Error("Generator is already running");if(E==="completed"){if(T==="throw")throw q;return be()}for(f.method=T,f.arg=q;;){var re=f.delegate;if(re){var K=k(re,f);if(K){if(K===r)continue;return K}}if(f.method==="next")f.sent=f._sent=f.arg;else if(f.method==="throw"){if(E==="suspendedStart")throw E="completed",f.arg;f.dispatchException(f.arg)}else f.method==="return"&&f.abrupt("return",f.arg);E="executing";var z=S($,G,f);if(z.type==="normal"){if(E=f.done?"completed":"suspendedYield",z.arg===r)continue;return{value:z.arg,done:f.done}}z.type==="throw"&&(E="completed",f.method="throw",f.arg=z.arg)}}}(t,a,C),d}function S(t,e,a){try{return{type:"normal",arg:t.call(e,a)}}catch(i){return{type:"throw",arg:i}}}s.wrap=L;var r={};function n(){}function l(){}function u(){}var m={};P(m,x,function(){return this});var h=Object.getPrototypeOf,b=h&&h(h(he([])));b&&b!==_&&p.call(b,x)&&(m=b);var A=u.prototype=n.prototype=Object.create(m);function Z(t){["next","throw","return"].forEach(function(e){P(t,e,function(a){return this._invoke(e,a)})})}function D(t,e){function a(c,d,C,$){var G=S(t[c],t,d);if(G.type!=="throw"){var f=G.arg,E=f.value;return E&&typeof E=="object"&&p.call(E,"__await")?e.resolve(E.__await).then(function(T){a("next",T,C,$)},function(T){a("throw",T,C,$)}):e.resolve(E).then(function(T){f.value=T,C(f)},function(T){return a("throw",T,C,$)})}$(G.arg)}var i;this._invoke=function(c,d){function C(){return new e(function($,G){a(c,d,$,G)})}return i=i?i.then(C,C):C()}}function k(t,e){var a=t.iterator[e.method];if(a===void 0){if(e.delegate=null,e.method==="throw"){if(t.iterator.return&&(e.method="return",e.arg=void 0,k(t,e),e.method==="throw"))return r;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return r}var i=S(a,t.iterator,e.arg);if(i.type==="throw")return e.method="throw",e.arg=i.arg,e.delegate=null,r;var c=i.arg;return c?c.done?(e[t.resultName]=c.value,e.next=t.nextLoc,e.method!=="return"&&(e.method="next",e.arg=void 0),e.delegate=null,r):c:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,r)}function ce(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 ge(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function Pe(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(ce,this),this.reset(!0)}function he(t){if(t){var e=t[x];if(e)return e.call(t);if(typeof t.next=="function")return t;if(!isNaN(t.length)){var a=-1,i=function c(){for(;++a<t.length;)if(p.call(t,a))return c.value=t[a],c.done=!1,c;return c.value=void 0,c.done=!0,c};return i.next=i}}return{next:be}}function be(){return{value:void 0,done:!0}}return l.prototype=u,P(A,"constructor",u),P(u,"constructor",l),l.displayName=P(u,j,"GeneratorFunction"),s.isGeneratorFunction=function(t){var e=typeof t=="function"&&t.constructor;return!!e&&(e===l||(e.displayName||e.name)==="GeneratorFunction")},s.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,u):(t.__proto__=u,P(t,j,"GeneratorFunction")),t.prototype=Object.create(A),t},s.awrap=function(t){return{__await:t}},Z(D.prototype),P(D.prototype,w,function(){return this}),s.AsyncIterator=D,s.async=function(t,e,a,i,c){c===void 0&&(c=Promise);var d=new D(L(t,e,a,i),c);return s.isGeneratorFunction(e)?d:d.next().then(function(C){return C.done?C.value:d.next()})},Z(A),P(A,j,"Generator"),P(A,x,function(){return this}),P(A,"toString",function(){return"[object Generator]"}),s.keys=function(t){var e=[];for(var a in t)e.push(a);return e.reverse(),function i(){for(;e.length;){var c=e.pop();if(c in t)return i.value=c,i.done=!1,i}return i.done=!0,i}},s.values=he,Pe.prototype={constructor:Pe,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(ge),!e)for(var a in this)a.charAt(0)==="t"&&p.call(this,a)&&!isNaN(+a.slice(1))&&(this[a]=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 a=this;function i(f,E){return C.type="throw",C.arg=e,a.next=f,E&&(a.method="next",a.arg=void 0),!!E}for(var c=this.tryEntries.length-1;c>=0;--c){var d=this.tryEntries[c],C=d.completion;if(d.tryLoc==="root")return i("end");if(d.tryLoc<=this.prev){var $=p.call(d,"catchLoc"),G=p.call(d,"finallyLoc");if($&&G){if(this.prev<d.catchLoc)return i(d.catchLoc,!0);if(this.prev<d.finallyLoc)return i(d.finallyLoc)}else if($){if(this.prev<d.catchLoc)return i(d.catchLoc,!0)}else{if(!G)throw new Error("try statement without catch or finally");if(this.prev<d.finallyLoc)return i(d.finallyLoc)}}}},abrupt:function(e,a){for(var i=this.tryEntries.length-1;i>=0;--i){var c=this.tryEntries[i];if(c.tryLoc<=this.prev&&p.call(c,"finallyLoc")&&this.prev<c.finallyLoc){var d=c;break}}d&&(e==="break"||e==="continue")&&d.tryLoc<=a&&a<=d.finallyLoc&&(d=null);var C=d?d.completion:{};return C.type=e,C.arg=a,d?(this.method="next",this.next=d.finallyLoc,r):this.complete(C)},complete:function(e,a){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"&&a&&(this.next=a),r},finish:function(e){for(var a=this.tryEntries.length-1;a>=0;--a){var i=this.tryEntries[a];if(i.finallyLoc===e)return this.complete(i.completion,i.afterLoc),ge(i),r}},catch:function(e){for(var a=this.tryEntries.length-1;a>=0;--a){var i=this.tryEntries[a];if(i.tryLoc===e){var c=i.completion;if(c.type==="throw"){var d=c.arg;ge(i)}return d}}throw new Error("illegal catch attempt")},delegateYield:function(e,a,i){return this.delegate={iterator:he(e),resultName:a,nextLoc:i},this.method==="next"&&(this.arg=void 0),r}},s}var Y=W.a.Search,M=function(_){var p=_.paperlibrary,g=_.globalSetting,x=_.loading,w=_.dispatch,j=Object(_e.a)(_,["paperlibrary","globalSetting","loading","dispatch"]),P=Object(I.useState)(""),L=Object(O.a)(P,2),S=L[0],r=L[1],n=Object(I.useState)([]),l=Object(O.a)(n,2),u=l[0],m=l[1],h=Object(I.useState)(),b=Object(O.a)(h,2),A=b[0],Z=b[1],D=Object(I.useState)(!1),k=Object(O.a)(D,2),ce=k[0],ge=k[1],Pe=Object(I.useState)(!0),he=Object(O.a)(Pe,2),be=he[0],t=he[1],e=Object(I.useState)(!1),a=Object(O.a)(e,2),i=a[0],c=a[1];Object(I.useEffect)(function(){d()},[]);var d=function(){var E=Object(R.a)(Q().mark(function T(){var q;return Q().wrap(function(K){for(;;)switch(K.prev=K.next){case 0:return K.next=2,w({type:"paperlibrary/getCourseList",payload:{search:S}});case 2:q=K.sent,q&&(m((q==null?void 0:q.courses)||[]),t(!0),c(!1));case 4:case"end":return K.stop()}},T)}));return function(){return E.apply(this,arguments)}}(),C=function(){var E=Object(R.a)(Q().mark(function T(){var q,re,K,z,Me,Le,De;return Q().wrap(function(Oe){for(;;)switch(Oe.prev=Oe.next){case 0:if(A){Oe.next=4;break}return de.b.info("\u60A8\u9700\u8981\u521B\u5EFA\u8BFE\u5802\uFF0C\u624D\u80FD\u53D1\u9001"),ge(!0),Oe.abrupt("return");case 4:return Oe.next=6,Object(le.a)("/api/courses/".concat(A,"/exercises/overload_alert.json"),{method:"get",params:{course_id:A}});case 6:if(q=Oe.sent,!(q==null?void 0:q.alert)){Oe.next=11;break}w({type:"classroomList/setActionTabs",payload:{key:"\u9884\u7EA6\u5F39\u7A97"}}),Oe.next=16;break;case 11:return Oe.next=13,w({type:"paperlibrary/sendToClass",payload:{course_id:A,id:(re=p.actionTabs)===null||re===void 0||((K=re.params)===null||K===void 0)?void 0:K.id}});case 13:z=Oe.sent,w({type:"paperlibrary/setActionTabs",payload:{}}),z&&z.status===0&&(De=z==null||((Me=z.first_category_url)===null||Me===void 0||((Le=Me.split("/"))===null||Le===void 0))?void 0:Le[2],Object(pe.C)("/classrooms/".concat(De,"/exercise")));case 16:case"end":return Oe.stop()}},T)}));return function(){return E.apply(this,arguments)}}();function $(E){return G.apply(this,arguments)}function G(){return G=Object(R.a)(Q().mark(function E(T){var q,re,K,z,Me,Le;return Q().wrap(function(Re){for(;;)switch(Re.prev=Re.next){case 0:return Re.next=2,w({type:"paperlibrary/sendToClass",payload:{course_id:A,id:(q=p.actionTabs)===null||q===void 0||((re=q.params)===null||re===void 0)?void 0:re.id}});case 2:if(K=Re.sent,w({type:"paperlibrary/setActionTabs",payload:{}}),!(K&&K.status===0)){Re.next=9;break}return Re.next=7,Object(le.a)("/api/courses/".concat(A,"/exercises/notice_at.json"),{method:"POST",body:{course_id:A,id:K.exercise_id,time:T}});case 7:Le=K==null||((z=K.first_category_url)===null||z===void 0||((Me=z.split("/"))===null||Me===void 0))?void 0:Me[2],Object(pe.C)("/classrooms/".concat(Le,"/exercise"));case 9:case"end":return Re.stop()}},E)})),G.apply(this,arguments)}var f=function(){var E=Object(R.a)(Q().mark(function T(){return Q().wrap(function(re){for(;;)switch(re.prev=re.next){case 0:return c(!0),re.next=3,d();case 3:case"end":return re.stop()}},T)}));return function(){return E.apply(this,arguments)}}();return U.a.createElement("div",null,U.a.createElement(ue,{onModalOk:$}),U.a.createElement(Ee.a,{centered:!0,keyboard:!1,closable:!1,visible:p.actionTabs.key==="Paperlibrary-SendToClass",title:"\u53D1\u9001\u81F3\u8BFE\u5802",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",confirmLoading:x["paperlibrary/sendToClass"],width:600,onOk:C,destroyOnClose:!0,onCancel:function(){Z(""),w({type:"paperlibrary/setActionTabs",payload:{}})}},U.a.createElement("div",{className:y.a.wrap},U.a.createElement("div",{className:y.a.title},"\u6E29\u99A8\u63D0\u793A\uFF1A\u9009\u62E9\u7684\u8BD5\u5377\u5C06\u4F1A\u53D1\u9001\u5230\u6307\u5B9A\u8BFE\u5802"),U.a.createElement("div",{className:"mb10"},U.a.createElement(Y,{placeholder:"\u8F93\u5165\u8BFE\u5802\u540D\u79F0\u7684\u5173\u952E\u5B57\u8FDB\u884C\u641C\u7D22",value:S,onChange:function(T){return r(T.target.value)},onSearch:function(T){r(T),d()}})),u.length?U.a.createElement("div",{className:y.a.radioWrap},U.a.createElement(v.a.Group,{value:A,onChange:function(T){Z(T.target.value),ge(!1)}},u.map(function(E,T){return U.a.createElement(v.a,{className:y.a.radio,value:E.course_id,key:E.course_id},E.course_name)}))):!S&&U.a.createElement(J.a,{createState:be,refreshLoading:i,onRefresh:f,onCreate:function(){t(!1),Object(pe.C)("/classrooms/new")}}),ce&&U.a.createElement("div",{className:y.a.colorFF0000},"\u8BF7\u5148\u9009\u62E9\u8BFE\u5802"))))},V=ne.a=Object(B.a)(function(s){var _=s.paperlibrary,p=s.loading,g=s.globalSetting;return{paperlibrary:_,globalSetting:g,loading:p.effects}})(M)},"rd/4":function(te,ne,o){te.exports=o.p+"static/noData.dc777645.png"}}]);
|