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