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