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
9.1 KiB
2 lines
9.1 KiB
(window.webpackJsonp=window.webpackJsonp||[]).push([[161],{JA47:function(Q,N,_){"use strict";_.r(N);var at=_("+L6B"),$=_("2/Rp"),it=_("sPJy"),A=_("bE4q"),Z=_("9og8"),q=_("PpiC"),C=_("q1tI"),m=_.n(C),S=_("9kvl"),tt=_("jRFs"),et=_("iFfe"),D=_.n(et);function B(){"use strict";/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */B=function(){return l};var u,l={},g=Object.prototype,p=g.hasOwnProperty,v=Object.defineProperty||function(r,t,e){r[t]=e.value},R=typeof Symbol=="function"?Symbol:{},d=R.iterator||"@@iterator",H=R.asyncIterator||"@@asyncIterator",P=R.toStringTag||"@@toStringTag";function f(r,t,e){return Object.defineProperty(r,t,{value:e,enumerable:!0,configurable:!0,writable:!0}),r[t]}try{f({},"")}catch(r){f=function(e,n,a){return e[n]=a}}function M(r,t,e,n){var a=t&&t.prototype instanceof F?t:F,o=Object.create(a.prototype),i=new Y(n||[]);return v(o,"_invoke",{value:nt(r,e,i)}),o}function O(r,t,e){try{return{type:"normal",arg:r.call(t,e)}}catch(n){return{type:"throw",arg:n}}}l.wrap=M;var L="suspendedStart",k="suspendedYield",x="executing",j="completed",c={};function F(){}function U(){}function E(){}var G={};f(G,d,function(){return this});var K=Object.getPrototypeOf,T=K&&K(K(z([])));T&&T!==g&&p.call(T,d)&&(G=T);var I=E.prototype=F.prototype=Object.create(G);function V(r){["next","throw","return"].forEach(function(t){f(r,t,function(e){return this._invoke(t,e)})})}function W(r,t){function e(a,o,i,s){var h=O(r[a],r,o);if(h.type!=="throw"){var b=h.arg,y=b.value;return y&&typeof y=="object"&&p.call(y,"__await")?t.resolve(y.__await).then(function(w){e("next",w,i,s)},function(w){e("throw",w,i,s)}):t.resolve(y).then(function(w){b.value=w,i(b)},function(w){return e("throw",w,i,s)})}s(h.arg)}var n;v(this,"_invoke",{value:function(o,i){function s(){return new t(function(h,b){e(o,i,h,b)})}return n=n?n.then(s,s):s()}})}function nt(r,t,e){var n=L;return function(a,o){if(n===x)throw new Error("Generator is already running");if(n===j){if(a==="throw")throw o;return{value:u,done:!0}}for(e.method=a,e.arg=o;;){var i=e.delegate;if(i){var s=X(i,e);if(s){if(s===c)continue;return s}}if(e.method==="next")e.sent=e._sent=e.arg;else if(e.method==="throw"){if(n===L)throw n=j,e.arg;e.dispatchException(e.arg)}else e.method==="return"&&e.abrupt("return",e.arg);n=x;var h=O(r,t,e);if(h.type==="normal"){if(n=e.done?j:k,h.arg===c)continue;return{value:h.arg,done:e.done}}h.type==="throw"&&(n=j,e.method="throw",e.arg=h.arg)}}}function X(r,t){var e=t.method,n=r.iterator[e];if(n===u)return t.delegate=null,e==="throw"&&r.iterator.return&&(t.method="return",t.arg=u,X(r,t),t.method==="throw")||e!=="return"&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+e+"' method")),c;var a=O(n,r.iterator,t.arg);if(a.type==="throw")return t.method="throw",t.arg=a.arg,t.delegate=null,c;var o=a.arg;return o?o.done?(t[r.resultName]=o.value,t.next=r.nextLoc,t.method!=="return"&&(t.method="next",t.arg=u),t.delegate=null,c):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,c)}function ot(r){var t={tryLoc:r[0]};1 in r&&(t.catchLoc=r[1]),2 in r&&(t.finallyLoc=r[2],t.afterLoc=r[3]),this.tryEntries.push(t)}function J(r){var t=r.completion||{};t.type="normal",delete t.arg,r.completion=t}function Y(r){this.tryEntries=[{tryLoc:"root"}],r.forEach(ot,this),this.reset(!0)}function z(r){if(r||r===""){var t=r[d];if(t)return t.call(r);if(typeof r.next=="function")return r;if(!isNaN(r.length)){var e=-1,n=function a(){for(;++e<r.length;)if(p.call(r,e))return a.value=r[e],a.done=!1,a;return a.value=u,a.done=!0,a};return n.next=n}}throw new TypeError(typeof r+" is not iterable")}return U.prototype=E,v(I,"constructor",{value:E,configurable:!0}),v(E,"constructor",{value:U,configurable:!0}),U.displayName=f(E,P,"GeneratorFunction"),l.isGeneratorFunction=function(r){var t=typeof r=="function"&&r.constructor;return!!t&&(t===U||(t.displayName||t.name)==="GeneratorFunction")},l.mark=function(r){return Object.setPrototypeOf?Object.setPrototypeOf(r,E):(r.__proto__=E,f(r,P,"GeneratorFunction")),r.prototype=Object.create(I),r},l.awrap=function(r){return{__await:r}},V(W.prototype),f(W.prototype,H,function(){return this}),l.AsyncIterator=W,l.async=function(r,t,e,n,a){a===void 0&&(a=Promise);var o=new W(M(r,t,e,n),a);return l.isGeneratorFunction(t)?o:o.next().then(function(i){return i.done?i.value:o.next()})},V(I),f(I,P,"Generator"),f(I,d,function(){return this}),f(I,"toString",function(){return"[object Generator]"}),l.keys=function(r){var t=Object(r),e=[];for(var n in t)e.push(n);return e.reverse(),function a(){for(;e.length;){var o=e.pop();if(o in t)return a.value=o,a.done=!1,a}return a.done=!0,a}},l.values=z,Y.prototype={constructor:Y,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=u,this.done=!1,this.delegate=null,this.method="next",this.arg=u,this.tryEntries.forEach(J),!t)for(var e in this)e.charAt(0)==="t"&&p.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=u)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if(t.type==="throw")throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(b,y){return i.type="throw",i.arg=t,e.next=b,y&&(e.method="next",e.arg=u),!!y}for(var a=this.tryEntries.length-1;a>=0;--a){var o=this.tryEntries[a],i=o.completion;if(o.tryLoc==="root")return n("end");if(o.tryLoc<=this.prev){var s=p.call(o,"catchLoc"),h=p.call(o,"finallyLoc");if(s&&h){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!h)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var a=this.tryEntries[n];if(a.tryLoc<=this.prev&&p.call(a,"finallyLoc")&&this.prev<a.finallyLoc){var o=a;break}}o&&(t==="break"||t==="continue")&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var i=o?o.completion:{};return i.type=t,i.arg=e,o?(this.method="next",this.next=o.finallyLoc,c):this.complete(i)},complete:function(t,e){if(t.type==="throw")throw t.arg;return t.type==="break"||t.type==="continue"?this.next=t.arg:t.type==="return"?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):t.type==="normal"&&e&&(this.next=e),c},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),J(n),c}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var a=n.completion;if(a.type==="throw"){var o=a.arg;J(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:z(t),resultName:e,nextLoc:n},this.method==="next"&&(this.arg=u),c}},l}var rt=function(l){var g=l.problemsetPreview,p=l.user,v=l.globalSetting,R=l.loading,d=l.dispatch,H=Object(q.a)(l,["problemsetPreview","user","globalSetting","loading","dispatch"]),P=Object(C.useRef)();Object(C.useEffect)(function(){return d({type:"globalSetting/footerToggle",payload:!1}),function(){d({type:"globalSetting/footerToggle",payload:!0})}},[]),Object(C.useEffect)(function(){d({type:"problemsetPreview/getEditDisciplines",payload:{source:"question"}})},[]);var f=function(){var M=Object(Z.a)(B().mark(function O(){var L,k,x;return B().wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return c.next=2,(L=P.current)===null||L===void 0?void 0:L.onSubmit();case 2:return k=c.sent,c.next=5,d({type:"problemsetPreview/newPreviewProblemset",payload:k});case 5:x=c.sent,x.status===0&&S.c.replace("/paperlibrary/see/".concat(x.exam_id));case 7:case"end":return c.stop()}},O)}));return function(){return M.apply(this,arguments)}}();return m.a.createElement("section",{className:D.a.bg},m.a.createElement(A.a,{className:"mb20 mt30",separator:">"},m.a.createElement(A.a.Item,{href:"/problemset"},"\u8BD5\u9898\u5E93"),m.a.createElement(A.a.Item,null,"\u65B0\u589E\u8BD5\u5377")),m.a.createElement(tt.a,{ref:P,courseOptions:g.courseOptions,disciplinesData:g.disciplinesData}),m.a.createElement("div",{className:D.a.buttonFixed},m.a.createElement("div",{className:D.a.buttonWrap},m.a.createElement($.a,{size:"large",className:"".concat(D.a.button," mr20"),onClick:function(){return S.c.push("/problemset/preview")}},"\u53D6\u6D88"),m.a.createElement($.a,{size:"large",type:"primary",className:"".concat(D.a.button," mr20"),onClick:f,loading:R["problemsetPreview/newPreviewProblemset"]},"\u5B8C\u6210"))))};N.default=Object(S.a)(function(u){var l=u.problemsetPreview,g=u.user,p=u.loading,v=u.globalSetting;return{problemsetPreview:l,user:g,globalSetting:v,loading:p.effects}})(rt)},iFfe:function(Q,N,_){Q.exports={bg:"bg___3pQw6",flexRow:"flexRow___137mQ",main:"main___1EiJg",formWrap:"formWrap___3bwkM",knowledgeWrap:"knowledgeWrap___2Pjdp",knowledgeIcon:"knowledgeIcon___laJmd",knowledgeContent:"knowledgeContent___3aAH5",knowledgeItem:"knowledgeItem___37gvd",knowledgeItemName:"knowledgeItemName___1egDp",knowledgeItemIcon:"knowledgeItemIcon___qSbCt",button:"button___2dOn0",buttonFixed:"buttonFixed___1any3",buttonWrap:"buttonWrap___30J7o",duration:"duration___1bM3D"}}}]);
|