(window.webpackJsonp=window.webpackJsonp||[]).push([[176],{JA47:function(c,m,e){"use strict";e.r(m);var C=e("+L6B"),E=e("2/Rp"),B=e("sPJy"),i=e("bE4q"),O=e("WmNS"),b=e.n(O),R=e("9og8"),h=e("PpiC"),r=e("q1tI"),t=e.n(r),u=e("9kvl"),w=e("jRFs"),U=e("iFfe"),o=e.n(U),M=function(_){var l=_.problemsetPreview,P=_.user,g=_.globalSetting,I=_.loading,s=_.dispatch,T=Object(h.a)(_,["problemsetPreview","user","globalSetting","loading","dispatch"]),v=Object(r.useRef)();Object(r.useEffect)(function(){return s({type:"globalSetting/footerToggle",payload:!1}),function(){s({type:"globalSetting/footerToggle",payload:!0})}},[]),Object(r.useEffect)(function(){s({type:"problemsetPreview/getEditDisciplines",payload:{source:"question"}})},[]);var W=function(){var D=Object(R.a)(b.a.mark(function f(){var d,y,p;return b.a.wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.next=2,(d=v.current)===null||d===void 0?void 0:d.onSubmit();case 2:return y=a.sent,a.next=5,s({type:"problemsetPreview/newPreviewProblemset",payload:y});case 5:p=a.sent,p.status===0&&u.c.replace("/paperlibrary/see/".concat(p.exam_id));case 7:case"end":return a.stop()}},f)}));return function(){return D.apply(this,arguments)}}();return t.a.createElement("section",{className:o.a.bg},t.a.createElement(i.a,{className:"mb20 mt30",separator:">"},t.a.createElement(i.a.Item,{href:"/problemset"},"\u8BD5\u9898\u5E93"),t.a.createElement(i.a.Item,null,"\u65B0\u589E\u8BD5\u5377")),t.a.createElement(w.a,{ref:v,courseOptions:l.courseOptions,disciplinesData:l.disciplinesData}),t.a.createElement("div",{className:o.a.buttonFixed},t.a.createElement("div",{className:o.a.buttonWrap},t.a.createElement(E.a,{size:"large",className:"".concat(o.a.button," mr20"),onClick:function(){return u.c.push("/problemset/preview")}},"\u53D6\u6D88"),t.a.createElement(E.a,{size:"large",type:"primary",className:"".concat(o.a.button," mr20"),onClick:W,loading:I["problemsetPreview/newPreviewProblemset"]},"\u5B8C\u6210"))))};m.default=Object(u.a)(function(n){var _=n.problemsetPreview,l=n.user,P=n.loading,g=n.globalSetting;return{problemsetPreview:_,user:l,globalSetting:g,loading:P.effects}})(M)},iFfe:function(c,m,e){c.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"}}}]);
